Skip to content

@lelantos-org/sdk / advanced / Permit2SignArgs

Interface: Permit2SignArgs ​

Defined in: @lelantos-org/sdk/dist/chain/types.d.ts:41

Properties ​

deadline ​

ts
deadline: bigint;

Defined in: @lelantos-org/sdk/dist/chain/types.d.ts:63

Unix-seconds expiry.


feeToken? ​

ts
optional feeToken?: EvmAddress;

Defined in: @lelantos-org/sdk/dist/chain/types.d.ts:59

The fee token, when the relayer note is paid in an asset other than the deposit's. Set together with maxFee; the adapter then signs a PermitBatchWitnessTransferFrom over [token: maxTotal, feeToken: maxFee] instead of the single-token permit.

May equal token: a plain id and a yield id can share one ERC-20, and the pool still pulls them as two entries.


maxFee? ​

ts
optional maxFee?: TokenAmount;

Defined in: @lelantos-org/sdk/dist/chain/types.d.ts:61

Ceiling on the fee token's pull, in its base units. Requires feeToken.


maxTotal ​

ts
maxTotal: TokenAmount;

Defined in: @lelantos-org/sdk/dist/chain/types.d.ts:49

Ceiling on the deposit token's pull, in its base units: inAmt + fee, plus the relayer note when it is paid in the same asset. Bound into the sig as that token's permitted.amount.


nonce ​

ts
nonce: bigint;

Defined in: @lelantos-org/sdk/dist/chain/types.d.ts:70

Fresh value; Permit2 uses an unordered bitmap.


piHash ​

ts
piHash: Hex32;

Defined in: @lelantos-org/sdk/dist/chain/types.d.ts:68

keccak256(abi.encode(DepositRequest, aux, feeAux)). Binds the sig to a specific deposit.


token ​

ts
token: EvmAddress;

Defined in: @lelantos-org/sdk/dist/chain/types.d.ts:43

ERC-20 being pulled into escrow.