Skip to content

ApproveOperatorProps

ApproveOperatorProps = { lockupAllowance?: bigint; maxLockupPeriod?: bigint; mutation?: Omit<MutateOptions<TransactionReceipt, Error>, "mutationFn">; onHash?: (hash) => void; operator?: Address; rateAllowance?: bigint; token?: Address; } | undefined

Defined in: synapse-react/src/payments/index.ts:214

{ lockupAllowance?: bigint; maxLockupPeriod?: bigint; mutation?: Omit<MutateOptions<TransactionReceipt, Error>, "mutationFn">; onHash?: (hash) => void; operator?: Address; rateAllowance?: bigint; token?: Address; }

optional lockupAllowance?: bigint

Maximum lockup amount the operator can use (in token base units). If not provided, maxUint256 will be used.

optional maxLockupPeriod?: bigint

Maximum lockup period in epochs the operator can set for payment rails. If not provided, the chain’s default lockup period will be used.

optional mutation?: Omit<MutateOptions<TransactionReceipt, Error>, "mutationFn">

The mutation options.

optional onHash?: (hash) => void

ParameterType
hashstring

void

optional operator?: Address

The address of the operator to approve. If not provided, the operator will be the Warm Storage contract.

optional rateAllowance?: bigint

Maximum rate the operator can use per epoch (in token base units). If not provided, maxUint256 will be used.

optional token?: Address

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


undefined