Skip to content

Interface: RefusalExplanation ​

Defined in: @meddleware/sealed-storage-client/src/refusal.ts:23

What explainApproveRefusal concluded.

Properties ​

advice? ​

optional advice?: 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? ​

optional cause?: 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? ​

optional code?: 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; see cause / raw.

message ​

message: string

Defined in: @meddleware/sealed-storage-client/src/refusal.ts:42

Human text suitable for a UI; always present.


module? ​

optional module?: 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? ​

optional raw?: 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? ​

optional reason?: 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.

2026 Meddleware. All jams preserved.