Skip to content

@lelantos-org/sdk / index / AllowanceSetupOptions

Interface: AllowanceSetupOptions ​

Defined in: @lelantos-org/sdk/dist/wallet/types/options.d.ts:159

One-time Permit2 AllowanceTransfer setup, so later deposits of these assets pull with no per-deposit signature (strategy: "allowance").

Runs: an ERC-20 → Permit2 approval per token still below cap (one prompt each), then one PermitBatch signature and one permit transaction covering every token. Assets sharing a token are one entry.

Properties ​

assets ​

ts
assets: readonly AssetRef[];

Defined in: @lelantos-org/sdk/dist/wallet/types/options.d.ts:161

Assets whose tokens to authorise, e.g. quote.pulls.map((p) => p.asset.id).


cap? ​

ts
optional cap?: bigint;

Defined in: @lelantos-org/sdk/dist/wallet/types/options.d.ts:163

Window cap in base units. Default 2^160 − 1, which Permit2 treats as unlimited.


deadline? ​

ts
optional deadline?: bigint;

Defined in: @lelantos-org/sdk/dist/wallet/types/options.d.ts:167

Signature deadline, unix seconds. Default now + 30 min.


expiration? ​

ts
optional expiration?: number;

Defined in: @lelantos-org/sdk/dist/wallet/types/options.d.ts:165

Window expiry, unix seconds. Default now + 90 days.


onProgress? ​

ts
optional onProgress?: (progress) => void;

Defined in: @lelantos-org/sdk/dist/wallet/types/options.d.ts:170

Fires wallet before each prompt, then confirming with the transaction hash.

Parameters ​

ParameterType
progressAllowanceSetupProgress

Returns ​

void


signal? ​

ts
optional signal?: AbortSignal;

Defined in: @lelantos-org/sdk/dist/wallet/types/options.d.ts:168