ERC20ExWrappedPPOM
Fraxtal ERC-20 Token0xfc00000000000000000000000000000000000006
Proxy 實作合約: 0x588f85f17c8778d16a03887959c19c256cb9fda9
Solidity v0.8.29+commit.ab55807c
Fungible token following the ERC-20 standard.
概覽
讀取函式
Returns the configured bridge contract address used for cross-chain token operations.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the bridge contract authorized to perform cross-chain bridge actions.✨ AI |
Returns the EIP-712 domain separator used for permit (EIP-2612) and other typed-data signatures.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The EIP-712 domain separator as a bytes32 value binding signatures to this contract and chain.✨ AI |
Returns the address of the remote token contract associated with this wrapped token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The remote token contract address that this wrapped ERC-20 represents.✨ AI |
Return the total number of tokens in existence.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total token supply as an unsigned 256-bit integer.✨ AI |
Returns the remaining token allowance that owner gave to spender.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address of the token holder who approved an allowance.✨ AI |
| spender | address | Address allowed to transfer tokens from the owner's balance.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Remaining number of tokens that spender is allowed to transfer from owner.✨ 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 a uint256.✨ AI |
Legacy getter for BRIDGE
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | address The bridge address |
Returns the number of decimal places used by the token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | The token's decimals as an unsigned 8-bit integer (number of decimal places).✨ AI |
Return the EIP-712 domain fields used for signing off-chain messages.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| fields | bytes1 | Domain field indicator byte used for domain structure or flags.✨ AI |
| name | string | Human-readable name of the signing domain (typically the token name).✨ AI |
| version | string | Version string of the EIP-712 domain.✨ AI |
| chainId | uint256 | Chain ID where the domain and signatures are valid.✨ AI |
| verifyingContract | address | Contract address authorized to verify signatures for this domain.✨ AI |
| salt | bytes32 | Optional 32-byte salt used for additional domain separation.✨ AI |
| extensions | uint256[] | Array of numeric extension values or IDs for optional domain features.✨ AI |
Legacy getter for the remote token. Use REMOTE_TOKEN going forward.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | address The L1 remote token address |
Legacy getter for the bridge. Use BRIDGE going forward.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | address The bridge address |
Checks whether an address is authorized to mint new tokens.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the address is a registered minter; otherwise false.✨ AI |
Get the minter address at the specified index.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the minter at the given index.✨ AI |
Returns the token's name as a human-readable string.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token name (human-readable string), for example "Wrapped PPOM".✨ AI |
Returns the address nominated to become the contract owner.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address nominated to become the contract owner, or the zero address if no nomination exists.✨ AI |
Returns the current nonce for an owner's permit signature.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address whose current permit nonce is returned.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Current uint256 nonce for the owner, used to prevent replay of permit signatures.✨ AI |
Returns the address of the contract owner.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the contract owner who holds administrative privileges.✨ AI |
Legacy getter for REMOTE_TOKEN
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | address The L1 remote token address |
ERC165 interface check function.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _interfaceId | bytes4 | Interface ID to check. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | Whether or not the interface is supported by this contract. |
Returns the token's short symbol (ticker) used in user interfaces.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token's symbol as a string (ticker) used to identify the token.✨ AI |
Returns the address used as the contract's timelock controller.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the timelock contract that controls timelocked administrative actions.✨ AI |
Returns the total number of tokens in existence.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total token supply as a uint256 value.✨ 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. |
寫入函式
Accept the pending ownership transfer and make the caller the new contract owner.✨ AI
Adds a non-bridge minter
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| minter_address | address | Address of minter to add |
Adjust the totalSupply
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _newTotalSupplyDiff | int256 |
Approve spender to transfer up to value tokens from your account.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| spender | address | Address allowed to spend tokens.✨ AI |
| value | uint256 | Maximum number of tokens the spender is allowed to transfer.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the allowance was successfully set.✨ AI |
Allows the StandardBridge on this network to burn tokens. No approval needed
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| value | uint256 |
Allows the StandardBridge on this network to burn tokens. No approval needed
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _from | address | Address to burn tokens from. |
| _amount | uint256 | Amount of tokens to burn. |
Burns tokens from account using the caller's allowance, decreasing the account balance and the total supply.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| account | address | Address whose tokens will be burned.✨ AI |
| value | uint256 | Token amount to burn (in smallest unit).✨ AI |
Initializer.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _creator_address | address | |
| _timelock_address | address | The timelock |
| _bridge | address | Address of the L2 standard bridge |
| _remoteToken | address | Address of the corresponding L1 token |
| _initTotalSupply | uint256 | The totalSupply |
| _nameIn | string | ERC20 name |
| _symbolIn | string | ERC20 symbol |
| _versionIn | string | Version |
Allows the StandardBridge on this network to mint tokens.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _to | address | Address to mint tokens to. |
| _amount | uint256 | Amount of tokens to mint. |
Sames as burnFrom. Left here for backwards-compatibility. Used by non-bridge minters to burn tokens. Must have approval first.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| b_address | address | Address of the account to burn from |
| b_amount | uint256 | Amount of tokens to burn |
Used by non-bridge minters to mint new tokens
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| m_address | address | Address of the account to mint to |
| m_amount | uint256 | Amount of tokens to mint |
Nominate a new pending owner by setting the given address as the contract's pending owner.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owner | address | Address to be set as the pending owner.✨ AI |
Allows owner to approve spender via an off-chain signature, enabling gasless approval.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| owner | address | Address granting the approval.✨ AI |
| spender | address | Address receiving the allowance.✨ AI |
| value | uint256 | Amount of tokens approved.✨ AI |
| deadline | uint256 | Timestamp after which the permit is invalid.✨ AI |
| v | uint8 | Signature recovery byte.✨ AI |
| r | bytes32 | First 32 bytes of the ECDSA signature.✨ AI |
| s | bytes32 | Second 32 bytes of the ECDSA signature.✨ AI |
Removes a non-bridge minter
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| minter_address | address | Address of minter to remove |
Sets the timelock address
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _timelock_address | address | Address of the timelock |
Transfer tokens from the caller to the specified recipient address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| to | address | 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.✨ AI |
Transfer tokens from one address to another using the caller's allowance.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| from | address | Address to debit tokens from.✨ AI |
| to | address | Address to credit tokens to.✨ AI |
| value | uint256 | Amount of tokens to transfer.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded; the call reverts on failure.✨ AI |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
Emitted whenever the bridge burns tokens from an account
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | Address of the account tokens are being burned from |
| amount | uint256 | Amount of tokens burned |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint64 |
Emitted whenever the bridge mints tokens to an account
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | Address of the account tokens are being minted for |
| amount | uint256 | Amount of tokens minted. |
Emitted when a non-bridge minter is added
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| minter_address | address | Address of the new minter |
Emitted when a non-bridge minter is removed
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| minter_address | address | Address of the removed minter |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| oldOwner | address | ||
| newOwner | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| newOwner | address |
Emitted when the timelock address changes
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| timelock_address | address | Address of the new timelock |
Emitted when a non-bridge minter burns tokens
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | The account whose tokens are burned |
| to | address | ✓ | The minter doing the burning |
| amount | uint256 | Amount of tokens burned |
Emitted when a non-bridge minter mints tokens
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | The minter doing the minting |
| to | address | ✓ | The account that gets the newly minted tokens |
| amount | uint256 | Amount of tokens minted |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |