0x8c35caa5fd5bdc64b6b11344ad57594a3676256a
Solidity v0.8.28+commit.7893614a
Fungible token following the ERC-20 standard.
管理與風險
誰能修改規則?
Detected mintable, pausable, freezable, ownable, and role based controls from the verified ABI.
當前控制
- Paused
- false
- Owner
- 0x0000000000000000000000000000000000000000 (無)
概覽
讀取函式
Block #25,494,042 · 31s agoReturns the asset protection role identifier used by the contract for access control.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 role identifier constant for the asset protection role, used in access checks and grants.✨ AI |
Return the EIP-712 typehash constant used for cancelAuthorization signatures.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 EIP-712 typehash for the cancelAuthorization struct used in signature verification.✨ AI |
Returns the identifier for the contract's default admin role.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 identifier of the DEFAULT_ADMIN_ROLE used for role-based access control.✨ AI |
EIP712 Domain Separator
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The domain separator for EIP-712 signatures |
Returns the deprecated EIP-712 domain hash used by the contract.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The deprecated EIP-712 domain separator hash as a bytes32 value.✨ AI |
Returns the 2-byte EIP-712 version prefix used for domain separation.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes2 | bytes2 value containing the EIP-712 version prefix used by the contract.✨ AI |
Returns the maximum allowed increment of a user's nonce.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Maximum nonce increment value as a uint256, used to limit how much a nonce can advance between actions.✨ AI |
Get the bytes32 role identifier used to grant or check the contract's pause permission.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 role identifier that represents the contract's pause permission for access control checks.✨ AI |
Returns the EIP-2612 permit typehash used by the token to validate off-chain approvals.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The keccak256 typehash (bytes32) used by permit signatures per EIP-2612.✨ AI |
Returns the EIP-712 typehash used to validate receiveWithAuthorization signatures.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The bytes32 EIP-712 typehash for the receiveWithAuthorization authorization struct.✨ AI |
Returns the EIP-712 typehash used to sign transferWithAuthorization authorizations.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 EIP-712 typehash for the transferWithAuthorization struct used in off-chain approvals.✨ AI |
Return the remaining number of tokens that spender is allowed to spend from owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | address The address which owns the funds |
| spender | address | address The address which will spend the funds |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | A uint256 specifying the amount of tokens still available for the spender |
Returns the address that currently holds the deprecated asset protection role.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the deprecated asset protection role (preserved for backwards compatibility).✨ 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 |
Gets the balance of the specified address
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| addr | address | The address to query the the balance of |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | An uint256 representing the amount owned by the passed address |
Returns the address that currently holds the deprecated beta delegate whitelister role.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the deprecated beta delegate whitelister; zero address if none is set.✨ AI |
Returns the number of decimal places used by the token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | The token's decimal precision as an unsigned 8-bit integer (uint8).✨ AI |
Returns the address of the contract's default administrator.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address currently assigned as the contract's default administrator.✨ AI |
Returns the configured delay (timelock) that must elapse before an administrative action executes.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint48 | The admin delay in seconds, returned as a uint48.✨ AI |
Returns the waiting period required before a scheduled increase to the default admin delay takes effect.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint48 | uint48 wait time (in seconds) required before a scheduled default admin delay increase becomes effective.✨ AI |
Return the admin role that controls the specified role.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier (bytes32).✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | Admin role identifier (bytes32) that can grant or revoke the specified role.✨ AI |
Return true if an account has the specified role.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | Role identifier encoded as a bytes32 value.✨ AI |
| account | address | Address to check for the specified role.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the account holds the role, false otherwise.✨ AI |
Return the freeze status of an address.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| addr | address | The address to check if frozen. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | A bool representing whether the given address is frozen. |
Returns the token's name as a human-readable string.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token's name as a human-readable string (e.g., "PYUSD").✨ AI |
Nonces for permit
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Token owner's address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Next nonce |
Returns the address of the contract owner.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address that currently has owner privileges for the contract.✨ AI |
Returns the deprecated owner address for backward compatibility.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address previously recognized as owner under the deprecated ownership scheme.✨ AI |
Indicates whether the contract is currently paused.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if contract functions are paused and restricted; otherwise false.✨ AI |
Return the address scheduled to become the contract's default admin and the scheduled activation timestamp.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| newAdmin | address | newAdmin: address that will become the default admin when the schedule activates.✨ AI |
| schedule | uint48 | schedule: uint48 activation timestamp (seconds since Unix epoch); zero if no pending admin.✨ AI |
Return the pending default admin delay and the scheduled time when it will take effect.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| newDelay | uint48 | newDelay: Pending default admin delay (uint48), typically expressed as a number of seconds.✨ AI |
| schedule | uint48 | schedule: Scheduled effective time for the new delay (uint48), represented as a Unix timestamp.✨ AI |
Returns the address proposed to become the contract owner under the deprecated ownership flow.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The proposed owner's address for the deprecated ownership mechanism, or the zero address if none is set.✨ AI |
Returns the address that controls the token supply.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address authorized to adjust the token supply (e.g., minting or burning).✨ AI |
Returns the address of the deprecated supply controller contract.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the deprecated supply controller contract.✨ AI |
Return whether the contract implements the interface specified by the ERC-165 interfaceId.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| interfaceId | bytes4 | ERC-165 interface identifier (first 4 bytes) to check support for.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the contract implements the interface identified by interfaceId, otherwise false.✨ AI |
Returns the token symbol used to identify this ERC-20 token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token symbol as a string, a short identifier such as "PYUSD".✨ AI |
Returns the total supply of the token.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | An uint256 representing the total supply of the token. |
寫入函式
Set allowance of spender to spend tokens on behalf of msg.sender
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | The address which will spend the funds |
| value | uint256 | The amount of tokens to be spent |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if successful |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newAdmin | address |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| amount | uint256 | The number of tokens to remove |
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 |
Cancel one or more pending permits
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| count | uint256 | Number of permits to cancel (must be > 0 and <= MAX_NONCE_INCREMENT) Example: - Current nonce: 5 - Call cancelPermits(3) - New nonce: 8 - Canceled permits: those signed with nonces 5, 6, and 7 |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newDelay | uint48 |
Decrease the allowance of spender to spend tokens on behalf of msg.sender
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | The address which will spend the funds |
| subtractedValue | uint256 | The amount of tokens to decrease the allowance by |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if successful |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| value | uint256 | The number of tokens to remove. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| success | bool | success A boolean that indicates if the operation was successful |
Decreases the total supply by burning the specified number of tokens. Can only be called by a supply controller. Function is marked virtual to aid in testing, but is never overridden on the actual token.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| value | uint256 | The number of tokens to remove |
| burnFromAddress | address | Address to burn tokens from. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| success | bool | success A boolean that indicates if the operation was successful |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| addr | address | The address to freeze. |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| addresses | address[] | The addresses to freeze. |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | |
| account | address |
Increase the allowance of spender to spend tokens on behalf of msg.sender
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | The address which will spend the funds |
| addedValue | uint256 | The amount of tokens to increase the allowance by |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if successful |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| value | uint256 | The number of tokens to add. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| success | bool | success A boolean that indicates if the operation was successful |
Increases the total supply by minting the specified number of tokens to the supply controller account. Function is marked virtual to aid in testing, but is never overridden on the actual token.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| value | uint256 | The number of tokens to add |
| mintToAddress | address | Address to mint tokens to. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| success | bool | success A boolean that indicates if the operation was successful |
Initialize the contract.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| initialDelay | uint48 | Initial delay for changing the owner |
| initialOwner | address | Address of the initial owner |
| pauser | address | Address of the pauser |
| assetProtector | address | Address of the asset protector |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address to mint tokens to |
| amount | uint256 | The number of tokens to add |
Pause the contract
Update allowance with a signed permit
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Token owner's address (Authorizer) |
| spender | address | Spender's address |
| value | uint256 | Amount of allowance |
| deadline | uint256 | The time at which this expires (unix time) |
| signature | bytes |
Update allowance with a signed permit
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Token owner's address (Authorizer) |
| spender | address | Spender's address |
| value | uint256 | Amount of allowance |
| deadline | uint256 | The time at which this expires (unix time) |
| v | uint8 | v of the signature |
| r | bytes32 | r of the signature |
| s | bytes32 | s of the signature |
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 |
Reclaim all tokens at the contract address
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | |
| account | address |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| role | bytes32 | |
| account | address |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| supplyControlAddress | address | Supply control contract address |
Execute a transfer
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| to | address | The address to transfer to |
| value | uint256 | The amount to be transferred |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if successful |
Transfer tokens from one address to another
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address | address The address which you want to send tokens from |
| to | address | address The address which you want to transfer to |
| value | uint256 | uint256 the amount of tokens to be transferred |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if successful |
Transfer tokens from one set of addresses to another in a single transaction
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address[] | addres[] The addresses which you want to send tokens from |
| to | address[] | address[] The addresses which you want to transfer to |
| value | uint256[] | uint256[] The amounts of tokens to be transferred |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if successful |
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 |
Execute multiple transfers with signed authorizations
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address[] | Array of Payer's addresses (Authorizers) |
| to | address[] | Array of Payee's addresses |
| value | uint256[] | Array of amounts to be transferred |
| validAfter | uint256[] | Array of times after which this is valid (unix time) |
| validBefore | uint256[] | Array of times before which this is valid (unix time) |
| nonce | bytes32[] | Array of unique nonces |
| signature | bytes[] |
Execute multiple transfers with signed authorizations
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address[] | Array of Payer's addresses (Authorizers) |
| to | address[] | Array of Payee's addresses |
| value | uint256[] | Array of amounts to be transferred |
| validAfter | uint256[] | Array of times after which this is valid (unix time) |
| validBefore | uint256[] | Array of times before which this is valid (unix time) |
| nonce | bytes32[] | Array of unique nonces |
| v | uint8[] | Array of v values of the signatures |
| r | bytes32[] | Array of r values of the signatures |
| s | bytes32[] | Array of s values of the signatures |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| addr | address | The new address to unfreeze. |
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| addresses | address[] | The addresses to unfreeze. |
Unpause the contract
Wipe the token balance of a frozen address
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| addr | address | The new frozen address to wipe |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| authorizer | address | ✓ | |
| nonce | bytes32 | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| newDelay | uint48 | ||
| effectSchedule | uint48 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| newAdmin | address | ✓ | |
| acceptSchedule | uint48 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| addr | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| addr | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint8 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | The address whose nonces were invalidated |
| newNonce | uint256 | The new nonce value after invalidation |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| previousAdminRole | bytes32 | ✓ | |
| newAdminRole | bytes32 | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| role | bytes32 | ✓ | |
| account | address | ✓ | |
| sender | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| newSanctionedAddress | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| supplyControlAddress | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| to | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| addr | address | ✓ |