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
Union Members
Section titled “Union Members”Type Literal
Section titled “Type Literal”{ lockupAllowance?: bigint; maxLockupPeriod?: bigint; mutation?: Omit<MutateOptions<TransactionReceipt, Error>, "mutationFn">; onHash?: (hash) => void; operator?: Address; rateAllowance?: bigint; token?: Address; }
lockupAllowance?
Section titled “lockupAllowance?”
optionallockupAllowance?:bigint
Maximum lockup amount the operator can use (in token base units). If not provided, maxUint256 will be used.
maxLockupPeriod?
Section titled “maxLockupPeriod?”
optionalmaxLockupPeriod?: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.
mutation?
Section titled “mutation?”
optionalmutation?:Omit<MutateOptions<TransactionReceipt,Error>,"mutationFn">
The mutation options.
onHash?
Section titled “onHash?”
optionalonHash?: (hash) =>void
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
hash | string |
Returns
Section titled “Returns”void
operator?
Section titled “operator?”
optionaloperator?:Address
The address of the operator to approve. If not provided, the operator will be the Warm Storage contract.
rateAllowance?
Section titled “rateAllowance?”
optionalrateAllowance?:bigint
Maximum rate the operator can use per epoch (in token base units). If not provided, maxUint256 will be used.
token?
Section titled “token?”
optionaltoken?:Address
The address of the ERC20 token to query. If not provided, the USDFC token address will be used.
undefined