管理与风险
谁能修改规则?
No admin risk controls detected from the verified ABI.
概览
读取函数
Block #25,189,715 · just nowReturns the domain separator for the current chain.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 |
The mapping is indexed in the above order see: allowance[ownerAddress][tokenAddress][spenderAddress]
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | |
| — | address | |
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| amount | uint160 | |
| expiration | uint48 | |
| nonce | uint48 |
A map from token owner address and a caller specified word index to a bitmap. Used to set bits in the bitmap to prevent against signature replay protection
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | |
| — | uint256 |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 |
写入函数
///////////////////////////////////////////////////////////
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| token | address | |
| spender | address | |
| amount | uint160 | |
| expiration | uint48 |
Invalidate nonces for a given (token, spender) pair
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| token | address | The token to invalidate nonces for |
| spender | address | The spender to invalidate nonces for |
| newNonce | uint48 | The new nonce to set. Invalidates all nonces less than it. |
Invalidates the bits specified in mask for the bitmap at the word position
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| wordPos | uint256 | A number to index the nonceBitmap at |
| mask | uint256 | A bitmap masked against msg.sender's current bitmap at the word position |
Enables performing a "lockdown" of the sender's Permit2 identity by batch revoking approvals
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| approvals | tuple[] | Array of approvals to revoke. |
///////////////////////////////////////////////////////////
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | |
| permitBatch | tuple | |
| signature | bytes |
///////////////////////////////////////////////////////////
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | |
| permitSingle | tuple | |
| signature | bytes |
Transfers a token using a signed permit message
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| permit | tuple | The permit data signed over by the owner |
| transferDetails | tuple | The spender's requested transfer details for the permitted token |
| owner | address | The owner of the tokens to transfer |
| signature | bytes | The signature to verify |
Transfers a token using a signed permit message
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| permit | tuple | The permit data signed over by the owner |
| transferDetails | tuple[] | The spender's requested transfer details for the permitted token |
| owner | address | The owner of the tokens to transfer |
| signature | bytes | The signature to verify |
Includes extra data provided by the caller to verify signature over
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| permit | tuple | The permit data signed over by the owner |
| transferDetails | tuple | The spender's requested transfer details for the permitted token |
| owner | address | The owner of the tokens to transfer |
| witness | bytes32 | Extra data to include when checking the user signature |
| witnessTypeString | string | The EIP-712 type definition for remaining string stub of the typehash |
| signature | bytes | The signature to verify |
Includes extra data provided by the caller to verify signature over
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| permit | tuple | The permit data signed over by the owner |
| transferDetails | tuple[] | The spender's requested transfer details for the permitted token |
| owner | address | The owner of the tokens to transfer |
| witness | bytes32 | Extra data to include when checking the user signature |
| witnessTypeString | string | The EIP-712 type definition for remaining string stub of the typehash |
| signature | bytes | The signature to verify |
Transfer approved tokens from one address to another
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| transferDetails | tuple[] |
Transfer approved tokens from one address to another
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | The address to transfer from |
| to | address | The address of the recipient |
| amount | uint160 | The amount of the token to transfer |
| token | address | The token address to transfer |
事件
Emits an event when the owner successfully sets permissions on a token for the spender.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| token | address | ✓ | |
| spender | address | ✓ | |
| amount | uint160 | ||
| expiration | uint48 |
Emits an event when the owner sets the allowance back to 0 with the lockdown function.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| token | address | ||
| spender | address |
Emits an event when the owner successfully invalidates an ordered nonce.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| token | address | ✓ | |
| spender | address | ✓ | |
| newNonce | uint48 | ||
| oldNonce | uint48 |
Emits an event when the owner successfully sets permissions using a permit signature on a token for the spender.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| token | address | ✓ | |
| spender | address | ✓ | |
| amount | uint160 | ||
| expiration | uint48 | ||
| nonce | uint48 |
Emits an event when the owner successfully invalidates an unordered nonce.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| word | uint256 | ||
| mask | uint256 |