TetherTokenV2
Sonic ERC-20 Token0x6047828dc181963ba44974801ff68e538da5eaf9
Proxy 实现合约: 0xc80268ce098296e0e75d925d0d485e7bb4252fad
Solidity v0.8.4+commit.c7e474f2
Fungible token following the ERC-20 standard.
概览
读取函数
Returns the EIP-712 type hash used for cancelAuthorization signatures.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 EIP-712 type hash constant for cancelAuthorization (used in signature encoding).✨ AI |
Returns the EIP-712 domain separator used to build typed-data signatures for this token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | EIP-712 domain separator (bytes32) used to construct and verify typed-data signatures for this contract.✨ AI |
Provide the EIP-712 type hash used for receiveWithAuthorization authorizations.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 EIP-712 type hash for the receiveWithAuthorization authorization struct✨ AI |
Returns the EIP-712 type hash used to authorize off-chain transfer signatures.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 EIP-712 typehash for the TransferWithAuthorization struct used to verify off-chain transfer signatures.✨ AI |
Return the remaining number of tokens that spender is allowed to spend from owner's balance.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address of the token owner whose allowance is being queried.✨ AI |
| spender | address | Address authorized to spend tokens on behalf of the owner.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Remaining allowance as a uint256, denominated in the token's smallest unit.✨ AI |
Returns the state of an authorization
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the nonce is used |
Return the token balance for the specified account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | Address whose token balance will be retrieved.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Token balance of the specified account as a uint256.✨ AI |
Returns the number of decimal places the token uses.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | Number of decimal places (uint8) the token uses for display and arithmetic.✨ AI |
Checks whether the given address is blocked from sending or receiving tokens.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the address is blocked from transfers, false otherwise.✨ AI |
Return whether the given address is marked as trusted by the token.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the address is marked trusted by the token contract, otherwise false.✨ AI |
Returns the token's name.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | Human-readable token name (for example: Tether USD).✨ AI |
Return the current nonce for the given owner address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address whose nonce to query.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Current nonce (uint256) for the owner, used to prevent replay of signed messages.✨ AI |
Returns the contract owner's address.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address of the contract owner (the account with administrative/privileged rights).✨ AI |
Returns the token's short symbol used by wallets and interfaces.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token's symbol string (for example "USDT").✨ AI |
Returns the total supply of the token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Total number of smallest token units in existence (uint256).✨ AI |
写入函数
Adds an address to the blocked list, preventing it from transferring tokens.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _user | address | Address to add to the blocked list; blocked addresses cannot transfer tokens.✨ AI |
Allow a spender to transfer up to amount of your tokens on your behalf.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address authorized to spend tokens.✨ AI |
| amount | uint256 | Maximum token amount the spender is allowed to transfer.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the allowance was set successfully.✨ AI |
Attempt to cancel an authorization
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| authorizer | address | Authorizer's address |
| nonce | bytes32 | Nonce of the authorization |
| signature | bytes |
Decrease the caller's allowance for a spender by a specified amount.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address authorized to spend tokens on behalf of the caller.✨ AI |
| subtractedValue | uint256 | Amount to subtract from the caller's current allowance (in token smallest units).✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | Boolean indicating whether the allowance was successfully decreased.✨ AI |
Permanently burn the frozen token balance held by a blocked address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _blockedUser | address | Address whose frozen token balance will be permanently removed.✨ AI |
Increases the caller's allowance for spender by addedValue and returns true on success.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address that will be allowed to spend the caller's tokens.✨ AI |
| addedValue | uint256 | Amount to add to the existing allowance, denominated in the token's smallest units.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the allowance was successfully increased.✨ AI |
Initializes the token name, symbol, and decimals for the TetherTokenV2 contract.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _name | string | Token name to set.✨ AI |
| _symbol | string | Token symbol to set.✨ AI |
| _decimals | uint8 | Number of decimals to use for the token.✨ AI |
Mint new tokens and credit them to the specified destination address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _destination | address | Destination address that will receive the minted tokens.✨ AI |
| _amount | uint256 | Amount of tokens to mint, expressed in the token's base units.✨ AI |
Transfer specified token amounts to multiple recipient addresses in a single transaction.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _recipients | address[] | Array of recipient addresses to receive tokens.✨ AI |
| _values | uint256[] | Array of token amounts to send, matched by index to _recipients.✨ AI |
Allows an owner to approve a spender using an off-chain signature before a deadline.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner_ | address | Address of the token owner who signed the approval.✨ AI |
| spender | address | Address allowed to spend the owner's tokens.✨ AI |
| value | uint256 | Amount of tokens to approve (in smallest unit).✨ AI |
| deadline | uint256 | Unix timestamp after which the permit is invalid.✨ AI |
| signature | bytes |
Allows an owner to approve a spender using an off-chain signature before a deadline.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner_ | address | Address of the token owner who signed the approval.✨ AI |
| spender | address | Address allowed to spend the owner's tokens.✨ AI |
| value | uint256 | Amount of tokens to approve (in smallest unit).✨ AI |
| deadline | uint256 | Unix timestamp after which the permit is invalid.✨ AI |
| v | uint8 | Signature recovery id (part of the ECDSA signature).✨ AI |
| r | bytes32 | First 32 bytes of the ECDSA signature.✨ AI |
| s | bytes32 | Second 32 bytes of the ECDSA signature.✨ AI |
Receive a transfer with a signed authorization from the payer
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
Redeem the specified amount of Tether tokens from the caller, reducing their balance and initiating withdrawal.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _amount | uint256 | Amount of tokens to redeem, expressed in the token's smallest unit.✨ AI |
Remove an address from the contract's blocked list so the address can transfer tokens again.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _user | address | Address to remove from the blocked list.✨ AI |
Relinquish contract ownership, leaving the contract without an owner.✨ AI
Transfer tokens from the caller's account to the recipient.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| recipient | address | Address receiving the tokens.✨ AI |
| amount | uint256 | Number of tokens to transfer, expressed in the token's smallest unit.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded, false otherwise.✨ AI |
Transfers _amount tokens from _sender to _recipient using the caller's allowance and returns true on success.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _sender | address | Account whose tokens will be withdrawn.✨ AI |
| _recipient | address | Account that will receive the tokens.✨ AI |
| _amount | uint256 | Number of tokens to transfer.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded.✨ AI |
Transfers contract ownership to a new address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newOwner | address | Address to become the contract owner.✨ AI |
Execute a transfer with a signed authorization
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| 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 |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| _user | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| _user | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| _blockedUser | address | ✓ | |
| _balance | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| _destination | address | ✓ | |
| _amount | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| _amount | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |