IERC20PermitDispatcherTrait
Fully qualified path: openzeppelin_interfaces::token::erc20::IERC20PermitDispatcherTrait
Part of the group: dispatchers
pub trait IERC20PermitDispatcherTrait<T>
Trait functions
permit
Sets amount as the allowance of spender over owner’s tokens, given the signature.
Requirements:
deadlinemust be a timestamp in the future.signaturemust be a valid secp256k1 signature fromownerover the EIP712-formatted function arguments.
Fully qualified path: openzeppelin_interfaces::token::erc20::IERC20PermitDispatcherTrait::permit
fn permit(
self: T,
owner: ContractAddress,
spender: ContractAddress,
amount: u256,
deadline: u64,
signature: Span<felt252>,
)
nonces
Returns the current nonce for owner.
Fully qualified path: openzeppelin_interfaces::token::erc20::IERC20PermitDispatcherTrait::nonces
fn nonces(self: T, owner: ContractAddress) -> felt252
DOMAIN_SEPARATOR
Returns the domain separator used in the encoding of the signatures for permit.
Fully qualified path: openzeppelin_interfaces::token::erc20::IERC20PermitDispatcherTrait::DOMAIN_SEPARATOR
fn DOMAIN_SEPARATOR(self: T) -> felt252