Interface: RefusalExplanation
Defined in: @meddleware/sealed-storage-client/src/refusal.ts:23
What explainApproveRefusal concluded.
Properties
advice?
optionaladvice?:string
Defined in: @meddleware/sealed-storage-client/src/refusal.ts:44
refused with a known abort: what a client should do (developer-facing, from POLICY_ABORTS).
cause?
optionalcause?:unknown
Defined in: @meddleware/sealed-storage-client/src/refusal.ts:46
unknown only: the error that stopped the simulation (a network error, a failed build).
code?
optionalcode?:number
Defined in: @meddleware/sealed-storage-client/src/refusal.ts:40
The Move abort code, when it is a safe integer.
kind
kind:
"allowed"|"refused"|"unknown"
Defined in: @meddleware/sealed-storage-client/src/refusal.ts:30
allowed: the approve call succeeds for this address, so the policy is not what refused (look at the key servers: unreachable, fewer than the threshold answering, or a full node that has not seen a new object yet).refused: the approve call aborts (or the requester cannot present the object): the key servers refuse too.unknown: the simulation could not be run or its result could not be read; seecause/raw.
message
message:
string
Defined in: @meddleware/sealed-storage-client/src/refusal.ts:42
Human text suitable for a UI; always present.
module?
optionalmodule?:string
Defined in: @meddleware/sealed-storage-client/src/refusal.ts:38
The Move module that aborted (nft_gate, timelock, config, …), when the abort names one.
raw?
optionalraw?:unknown
Defined in: @meddleware/sealed-storage-client/src/refusal.ts:48
The simulation's execution error (refused/unknown), for logs; its shape is the client's.
reason?
optionalreason?:string
Defined in: @meddleware/sealed-storage-client/src/refusal.ts:36
refused only: the name of the policy abort (E_GATE_PAUSED, E_EXHAUSTED, E_WRONG_GATE, E_TOO_EARLY, E_WRONG_VERSION, …), or REASON_NOT_OWNER. Absent when the abort is not a sealed_storage abort that this package knows.