Skip to content

OptionsType

OptionsType = object

Defined in: packages/synapse-core/src/pay/deposit-with-permit.ts:25

optional address?: Address

Defined in: packages/synapse-core/src/pay/deposit-with-permit.ts:31

The depositor address. If not provided, the client account address will be used.


amount: bigint

Defined in: packages/synapse-core/src/pay/deposit-with-permit.ts:27

The amount to deposit (in token base units). Must be greater than 0.


optional deadline?: bigint

Defined in: packages/synapse-core/src/pay/deposit-with-permit.ts:35

The permit deadline as a Unix timestamp (seconds). If not provided, defaults to now + 1 hour.


optional spender?: Address

Defined in: packages/synapse-core/src/pay/deposit-with-permit.ts:33

The spender address for the permit. If not provided, the payments contract address will be used.


optional token?: Address

Defined in: packages/synapse-core/src/pay/deposit-with-permit.ts:29

The address of the ERC20 token. If not provided, the USDFC token address will be used.