ERC20ExPPOMWrapped
Fraxtal ERC-20 Token0xfc00000000000000000000000000000000000002
Proxy 實作合約: 0x1af97083ddb4fb40aad9644bacc8ef9edcf595d4
Solidity v0.8.29+commit.ab55807c
Fungible token following the ERC-20 standard.
概覽
讀取函式
Returns the EIP-712 domain separator used to sign typed data.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The current EIP-712 domain separator as a bytes32 value used for constructing typed-data signatures.✨ AI |
Returns the remaining number of tokens that spender is allowed to transfer from owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address of the token holder who approved a spender.✨ AI |
| spender | address | Address authorized to transfer tokens on behalf of the owner.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Remaining allowance expressed in the token's smallest unit (uint256).✨ AI |
Returns the token balance of the specified account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address to query the token balance for.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The token balance of the account as an unsigned 256-bit integer.✨ AI |
Return the number of decimal places used by the token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | Number of decimal places (uint8) the token uses for display and calculations.✨ AI |
Return the EIP-712 domain components used for typed-data signing by this contract.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| fields | bytes1 | bytes1: single-byte domain field used as a discriminator or reserved marker for the domain.✨ AI |
| name | string | name: human-readable name of the signing domain (typically the token or contract name).✨ AI |
| version | string | version: semantic version string that identifies the domain version for signatures.✨ AI |
| chainId | uint256 | chainId: numeric chain identifier (EIP-155) that the domain is bound to.✨ AI |
| verifyingContract | address | verifyingContract: address of the contract designated to verify EIP-712 signatures.✨ AI |
| salt | bytes32 | salt: 32-byte salt value included in the domain to provide additional uniqueness.✨ AI |
| extensions | uint256[] | extensions: array of numeric extension fields reserved for extra domain parameters.✨ AI |
Returns the ERC-20 token name used for display in wallets and user interfaces.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token name as a human-readable string for display (e.g., MyToken).✨ AI |
Returns the current permit nonce for an account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address whose permit nonce is returned.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | The current nonce for owner used to validate off-chain permit signatures.✨ AI |
Returns the token's short symbol used by wallets and user interfaces.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token symbol as a string (e.g., "WPPOM").✨ AI |
Returns the total number of tokens in circulation.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total number of tokens in existence as a uint256, expressed in the token's smallest unit (base units).✨ AI |
Getter for the semantic version of the contract. This is not meant to be used onchain but instead meant to be used by offchain tooling.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | Semver contract version as a string. |
寫入函式
Approve a spender to transfer up to value tokens from your account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address authorized to spend tokens on behalf of the caller.✨ AI |
| value | uint256 | Maximum number of tokens the spender is allowed to transfer.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the approval succeeded, otherwise false.✨ AI |
Backwards compatibility function for burn. Calls withdraw
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _value | uint256 | Amount of tokens to burn / withdraw |
Deposit gas token for wrapped ERC20. Uses msg.value
Donate ETH for nothing in return
Initializer.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _nameIn | string | ERC20 name |
| _symbolIn | string | ERC20 symbol |
| _versionIn | string | Version |
Permit allows a spender to be approved by the owner using an off-chain signature.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address of the token holder who signed the permit.✨ AI |
| spender | address | Address authorized to spend the owner's tokens.✨ AI |
| value | uint256 | Amount of tokens the spender is approved to spend.✨ AI |
| deadline | uint256 | Unix timestamp after which the permit is no longer valid.✨ AI |
| v | uint8 | Recovery byte v of the owner's signature.✨ AI |
| r | bytes32 | First 32 bytes of the owner's signature.✨ AI |
| s | bytes32 | Second 32 bytes of the owner's signature.✨ AI |
Transfer tokens from the caller's account to the specified recipient and return success.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| to | address | Recipient address that will receive the tokens.✨ AI |
| value | uint256 | Amount of tokens to transfer, expressed in the token's smallest unit.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded; false otherwise.✨ AI |
Transfer tokens from one address to another using the caller's allowance.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address | Source address to debit tokens from.✨ AI |
| to | address | Destination address to credit tokens to.✨ AI |
| value | uint256 | Number of tokens to transfer.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the token transfer operation succeeded.✨ AI |
Withdraw ERC20 for gas token.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| wad | uint256 | Amount of gas token to receive / wrapped ERC20 to burn. |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
Emitted when the gas token is wrapped
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| dst | address | ✓ | Sender/depositor |
| wad | uint256 | Amount of tokens wrapped |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint64 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
Emitted when the gas token is unwrapped
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| src | address | ✓ | Sender / withdrawer |
| wad | uint256 | Amount of tokens unwrapped |