TetherTokenOFTExtension
Unichain ERC-20 Token0x9151434b16b9763660705744891fa906f660ecc5
Proxy implementation: 0xaf37e8b6c9ed7f6318979f56fc287d76c30847ff
Solidity v0.8.4+commit.c7e474f2
Fungible token following the ERC-20 standard.
Overview
Read Functions
Return the EIP-712 type hash used for cancelAuthorization messages.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The bytes32 EIP-712 type hash for the cancelAuthorization struct (used to compute signed message digests).✨ AI |
Returns the EIP-712 domain separator used for signing typed data for this token.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | EIP-712 domain separator (bytes32) used in signature verification such as permit.✨ AI |
Get the EIP-712 type hash used to sign receiveWithAuthorization messages.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | bytes32 EIP-712 type hash constant for the receiveWithAuthorization struct used in authorization signatures.✨ AI |
Returns the EIP-712 typehash used for transferWithAuthorization.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | bytes32 EIP-712 typehash for the transferWithAuthorization struct.✨ AI |
Return the remaining number of tokens that spender is allowed to spend on behalf of owner.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | Address which owns the tokens.✨ AI |
| spender | address | Address which will spend the tokens.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Remaining allowance in token base units (uint256) that spender may transfer from owner.✨ AI |
Returns the state of an authorization
Parameters
| Name | Type | Description |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the nonce is used |
Returns the token balance of the given account.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | Address whose token balance will be returned.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The account's token balance as a uint256 in the token's smallest indivisible units.✨ AI |
Get the number of decimal places used by the token.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 | The token's decimals as an unsigned 8-bit integer.✨ AI |
Checks if an address is blocked from token transfers.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | true if the address is blocked from transfers; false otherwise.✨ AI |
Check whether a given address is marked as trusted by the token contract.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the address is trusted by the contract, otherwise false.✨ AI |
Returns the token's name as a human-readable string.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The token's name as a UTF-8 string.✨ AI |
Returns the current nonce used for an owner's signature-based approvals.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | Address of the token owner whose nonce is returned.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | The current uint256 nonce for the owner, used to prevent signature replay and enforce ordering.✨ AI |
Get the OFT contract address linked to this TetherToken extension.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The address of the OFT contract associated with this extension.✨ AI |
Returns the address of the contract owner.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The owner account address with administrative privileges.✨ AI |
Report whether the contract implements the interface identified by interfaceId according to ERC-165.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| interfaceId | bytes4 | ERC-165 interface identifier to query (4-byte value).✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the contract implements the interface with the given interfaceId per ERC-165, otherwise false.✨ AI |
Return the token symbol.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The token symbol string (e.g., "USDT").✨ AI |
Returns the total number of tokens in existence.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Total token supply as a uint256 value.✨ AI |
Write Functions
Add an address to the token's blocked list to prevent it from transferring tokens.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _user | address | Address to add to the blocked list.✨ AI |
Authorize spender to transfer up to amount tokens from caller's account.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | Address granted permission to spend tokens on caller's behalf.✨ AI |
| amount | uint256 | Maximum number of tokens the spender is allowed to transfer.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the approval succeeded, otherwise false.✨ AI |
Attempt to cancel an authorization
Parameters
| Name | Type | Description |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| v | uint8 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
Attempt to cancel an authorization
Parameters
| Name | Type | Description |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| signature | bytes |
Burn tokens through a crosschain transfer.
Parameters
| Name | Type | Description |
|---|---|---|
| _from | address | Address to burn tokens from. |
| _amount | uint256 | Amount of tokens to burn. |
Mint tokens through a crosschain transfer.
Parameters
| Name | Type | Description |
|---|---|---|
| _destination | address | |
| _amount | uint256 | Amount of tokens to mint. |
Decrease the caller's allowance for a spender by a specified amount.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | Address allowed to spend the caller's tokens.✨ AI |
| subtractedValue | uint256 | Amount to subtract from the spender's current allowance.✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the allowance was decreased successfully.✨ AI |
Permanently destroys the token balance of a blocked address and reduces the total token supply.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _blockedUser | address | Address whose blocked token balance will be permanently burned.✨ AI |
Increase the caller's ERC20 allowance for a spender by a specified amount.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | Address allowed to spend the caller's tokens.✨ AI |
| addedValue | uint256 | Amount to add to the current allowance (in token smallest units).✨ AI |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | True if the allowance was increased successfully.✨ AI |
Initialize the token with a name, symbol, and decimals.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _name | string | Token name to set.✨ AI |
| _symbol | string | Token symbol to set.✨ AI |
| _decimals | uint8 | Number of decimal places used by the token.✨ AI |
Mint tokens to the specified address, increasing the total supply and the recipient's balance.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _destination | address | Address that will receive the newly minted tokens.✨ AI |
| _amount | uint256 | Amount of tokens to mint, expressed in the token's smallest unit.✨ AI |
Transfer tokens from the caller to multiple recipients in a single transaction.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _recipients | address[] | Array of recipient addresses to receive tokens.✨ AI |
| _values | uint256[] | Array of token amounts to send to each corresponding recipient.✨ AI |
Allow a spender to use the owner's signed permit to set an allowance before the deadline.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| owner_ | address | Address of the token owner who produced the off-chain signature.✨ AI |
| spender | address | Address approved to spend the owner's tokens.✨ AI |
| value | uint256 | Amount of tokens to approve for the spender.✨ AI |
| deadline | uint256 | Unix timestamp after which the provided signature is invalid.✨ AI |
| signature | bytes |
Allow a spender to use the owner's signed permit to set an allowance before the deadline.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| owner_ | address | Address of the token owner who produced the off-chain signature.✨ AI |
| spender | address | Address approved to spend the owner's tokens.✨ AI |
| value | uint256 | Amount of tokens to approve for the spender.✨ AI |
| deadline | uint256 | Unix timestamp after which the provided signature is invalid.✨ AI |
| v | uint8 | Recovery byte of the owner's ECDSA signature.✨ AI |
| r | bytes32 | First 32 bytes of the owner's ECDSA signature.✨ AI |
| s | bytes32 | Second 32 bytes of the owner's ECDSA signature.✨ AI |
Receive a transfer with a signed authorization from the payer
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The time after which this is valid (unix time) |
| validBefore | uint256 | The time before which this is valid (unix time) |
| nonce | bytes32 | Unique nonce |
| signature | bytes |
Receive a transfer with a signed authorization from the payer
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The time after which this is valid (unix time) |
| validBefore | uint256 | The time before which this is valid (unix time) |
| nonce | bytes32 | Unique nonce |
| v | uint8 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
Redeems the specified amount of tokens from the caller, decreasing their balance and the total supply.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _amount | uint256 | Amount of tokens to redeem.✨ AI |
Remove an address from the token's blocked list.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _user | address | Address to remove from the blocked list.✨ AI |
Renounce ownership, making the contract ownerless.✨ AI
Set the OFT contract address used by this token extension.✨ AI
Parameters
| Name | Type | Description |
|---|---|---|
| _oftContract | address | Address of the new OFT contract to be associated with this token.✨ AI |
Parameters
| Name | Type | Description |
|---|---|---|
| recipient | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| _sender | address | |
| _recipient | address | |
| _amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address |
Execute a transfer with a signed authorization
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The time after which this is valid (unix time) |
| validBefore | uint256 | The time before which this is valid (unix time) |
| nonce | bytes32 | Unique nonce |
| signature | bytes |
Execute a transfer with a signed authorization
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | Payer's address (Authorizer) |
| to | address | Payee's address |
| value | uint256 | Amount to be transferred |
| validAfter | uint256 | The time after which this is valid (unix time) |
| validBefore | uint256 | The time before which this is valid (unix time) |
| nonce | bytes32 | Unique nonce |
| v | uint8 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
Parameters
| Name | Type | Description |
|---|---|---|
| _name | string | |
| _symbol | string |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _user | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _user | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| amount | uint256 |
Emitted when a crosschain transfer burns tokens.
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | Address of the account tokens are being burned from. |
| amount | uint256 | Amount of tokens burned. | |
| sender | address | ✓ | Address of the caller (msg.sender) who invoked crosschainBurn. |
Emitted when a crosschain transfer mints tokens.
| Name | Type | Indexed | Description |
|---|---|---|---|
| to | address | ✓ | Address of the account tokens are being minted for. |
| amount | uint256 | Amount of tokens minted. | |
| sender | address | ✓ | Address of the caller (msg.sender) who invoked crosschainMint. |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _blockedUser | address | ✓ | |
| _balance | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| oftContract | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| name | string | ||
| symbol | string |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _destination | address | ✓ | |
| _amount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _amount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |