USDT0
Polygon PoS ERC-20 Token0xc2132d05d31c914a87c6611c10748aeb04b58e8f
Proxy 實作合約: 0x90040487a6c9f949c4f07cadcfb0f3b8eeab4229
Solidity v0.6.6+commit.6c089d02
Fungible token following the ERC-20 standard.
管理與風險
誰能修改規則?
Detected upgradeable, mintable, and role based controls from the verified ABI.
當前控制
- Implementation
- 0x90040487a6c9f949c4f07cadcfb0f3b8eeab4229 ↗ Polygonscan → smarts proxy
概覽
讀取函式
Block #87,448,984 · just nowReturns the bytes32 identifier for the BLOCK_ROLE used to check or grant blocking permissions.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 role identifier representing the BLOCK_ROLE constant used for access-control checks✨ AI |
Returns the role identifier used as the contract's default admin role.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | Bytes32 identifier for the DEFAULT_ADMIN_ROLE used for access control.✨ AI |
Return the role identifier constant for the DEPOSITOR_ROLE used by contract access control.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 role identifier constant for DEPOSITOR_ROLE, used in AccessControl permission checks.✨ AI |
Returns the EIP-712 domain separator used to hash and sign typed structured data for this token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The EIP-712 domain separator (bytes32) used in domain-specific typed data hashing and signature verification.✨ AI |
Provides the ERC-712 version string used for typed data signing.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | ERC-712 version identifier string used when constructing domain separators and signatures.✨ AI |
Returns the EIP-2612 permit typehash used to compute signed permit digests.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The keccak256 bytes32 type hash for the permit signature structure (EIP-2612).✨ AI |
Returns the numeric version identifier of the USDT0 token contract.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The uint256 version number representing the contract implementation version.✨ AI |
Returns the remaining number of tokens that spender is allowed to spend on behalf of owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address that owns the tokens.✨ AI |
| spender | address | Address approved to spend tokens from the owner's balance.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Remaining token allowance represented as an unsigned 256-bit integer (uint256).✨ AI |
Returns the token balance held by the given account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address to query the token balance for.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The account's token balance as an unsigned 256-bit integer.✨ AI |
Returns the token's number of decimal places used for display and calculations.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | The number of decimal places (uint8) the token uses.✨ AI |
Return the chain identifier for the current network.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The chain ID as a uint256 representing the current chain/network identifier.✨ AI |
Retrieve the contract's EIP-712 domain separator used for typed-data signing.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | EIP-712 domain separator (bytes32) used to compute typed-data hashes and verify signatures.✨ AI |
Returns the current nonce for the user's address, used to prevent replay of signed messages.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| user | address | Address whose nonce is requested.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| nonce | uint256 | The current uint256 nonce assigned to the user, incremented to prevent replay.✨ AI |
Gets the admin role that controls a specific role.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier as a bytes32 value to query its admin role.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | Admin role identifier (bytes32) that can grant or revoke the given role.✨ AI |
Return the address of the account holding the given role at the specified index.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | The role identifier (bytes32) to query.✨ AI |
| index | uint256 | Zero-based index into the role's member list.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the role member at the given index.✨ AI |
Return the number of accounts assigned the given role.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier as a bytes32 value (typically keccak256 hash of the role name).✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Number of accounts that currently hold the specified role.✨ AI |
Return whether an account has a specific role.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier as a bytes32 value.✨ AI |
| account | address | Address of the account to check for the role.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the account has the role, otherwise false.✨ AI |
Checks whether the given address is blocked from token transfers.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the address is blocked and cannot transact, otherwise false.✨ AI |
Returns the token's name.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token name as a string.✨ AI |
Returns the current replay nonce for the given address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Current uint256 nonce for the address; increments after each signed permit/use.✨ AI |
Returns the OFT contract address (the address with DEPOSITOR_ROLE)
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the OFT contract |
Return whether the contract implements the interface identified by the provided interfaceId.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| interfaceId | bytes4 | The ERC-165 interface identifier (4-byte) to query for support.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the contract implements the specified interfaceId, otherwise false.✨ AI |
Returns the token's short symbol used by user interfaces.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token symbol as a string.✨ AI |
Returns the total number of tokens in existence.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total token supply as a uint256, expressed in the token's smallest unit (per decimals).✨ AI |
寫入函式
Add an address to the token contract's blocked list to prevent transfers by that address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _user | address | Address to mark as blocked; blocked addresses are prevented from transferring tokens.✨ AI |
Approve an address (spender) to spend up to amount of your tokens on your behalf.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address being approved to transfer tokens from the caller's balance.✨ AI |
| amount | uint256 | Maximum number of tokens the spender is allowed to transfer.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the approval succeeded, otherwise false.✨ AI |
Set the token's public name to the provided string.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| name_ | string | The new token name to store and expose via name().✨ AI |
Change the token's symbol to a new string.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| symbol_ | string | New symbol to assign to the token.✨ AI |
Burn tokens through a crosschain transfer.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| user | address | user address for whom burn is being done |
| amount | uint256 | amount of tokens to burn |
called when token is deposited on root chain
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| user | address | user address for whom deposit is being done |
| amount | uint256 | amount of tokens to mint |
Decrease the caller's token allowance granted to spender by subtractedValue.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address whose allowance will be decreased.✨ AI |
| subtractedValue | uint256 | Amount to subtract from the current allowance, in the token's smallest units.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the allowance was decreased successfully.✨ AI |
Mint tokens to a recipient when tokens are deposited from the root chain.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| user | address | Recipient address that will receive the minted tokens.✨ AI |
| depositData | bytes | ABI-encoded deposit payload, typically the uint256 amount to mint.✨ AI |
Permanently remove all tokens held by a blocked address and reduce the total token supply.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _blockedUser | address | Address whose token balance will be permanently destroyed.✨ AI |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| userAddress | address | |
| functionSignature | bytes | |
| sigR | bytes32 | |
| sigS | bytes32 | |
| sigV | uint8 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | |
| account | address |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | |
| addedValue | uint256 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _destination | address | |
| _amount | uint256 |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _recipients | address[] | |
| _values | uint256[] |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | |
| spender | address | |
| value | uint256 | |
| deadline | uint256 | |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _amount | uint256 |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _user | address |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | |
| account | address |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | |
| account | address |
Sets the OFT contract address by granting it the DEPOSITOR_ROLE
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _oftContract | address | The address of the OFT contract |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| recipient | address | |
| amount | uint256 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _sender | address | |
| _recipient | address | |
| _amount | uint256 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newAdmin | address | |
| oftContract | address |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| _user | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| _user | address | ✓ |
Emitted when a crosschain transfer burns tokens.
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| 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.
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| 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. |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| _blockedUser | address | ✓ | |
| _balance | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| oftContract | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| userAddress | address | ✓ | |
| relayerAddress | address | ✓ | |
| functionSignature | bytes |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| _destination | address | ✓ | |
| _amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| _amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| previousAdminRole | bytes32 | ✓ | |
| newAdminRole | bytes32 | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |