ERC20ExWrappedPPOM
Fraxtal ERC-20 Token0xfc00000000000000000000000000000000000006
Proxy implementation: 0x588f85f17c8778d16a03887959c19c256cb9fda9
Solidity v0.8.29+commit.ab55807c
Fungible token following the ERC-20 standard.
Overview
Read Functions
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| spender | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Parameters
| Name | Type | Description |
|---|---|---|
| account | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Legacy getter for BRIDGE
Returns
| Name | Type | Description |
|---|---|---|
| — | address | address The bridge address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 |
Returns
| Name | Type | Description |
|---|---|---|
| fields | bytes1 | |
| name | string | |
| version | string | |
| chainId | uint256 | |
| verifyingContract | address | |
| salt | bytes32 | |
| extensions | uint256[] |
Legacy getter for the remote token. Use REMOTE_TOKEN going forward.
Returns
| Name | Type | Description |
|---|---|---|
| — | address | address The L1 remote token address |
Legacy getter for the bridge. Use BRIDGE going forward.
Returns
| Name | Type | Description |
|---|---|---|
| — | address | address The bridge address |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Legacy getter for REMOTE_TOKEN
Returns
| Name | Type | Description |
|---|---|---|
| — | address | address The L1 remote token address |
ERC165 interface check function.
Parameters
| Name | Type | Description |
|---|---|---|
| _interfaceId | bytes4 | Interface ID to check. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | Whether or not the interface is supported by this contract. |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
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.
Returns
| Name | Type | Description |
|---|---|---|
| — | string | Semver contract version as a string. |
Write Functions
Adds a non-bridge minter
Parameters
| Name | Type | Description |
|---|---|---|
| minter_address | address | Address of minter to add |
Adjust the totalSupply
Parameters
| Name | Type | Description |
|---|---|---|
| _newTotalSupplyDiff | int256 |
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| value | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Allows the StandardBridge on this network to burn tokens. No approval needed
Parameters
| Name | Type | Description |
|---|---|---|
| value | uint256 |
Allows the StandardBridge on this network to burn tokens. No approval needed
Parameters
| Name | Type | Description |
|---|---|---|
| _from | address | Address to burn tokens from. |
| _amount | uint256 | Amount of tokens to burn. |
Parameters
| Name | Type | Description |
|---|---|---|
| account | address | |
| value | uint256 |
Initializer.
Parameters
| Name | Type | Description |
|---|---|---|
| _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.
Parameters
| Name | Type | Description |
|---|---|---|
| _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.
Parameters
| Name | Type | Description |
|---|---|---|
| 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
Parameters
| Name | Type | Description |
|---|---|---|
| m_address | address | Address of the account to mint to |
| m_amount | uint256 | Amount of tokens to mint |
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address |
Parameters
| Name | Type | Description |
|---|---|---|
| owner | address | |
| spender | address | |
| value | uint256 | |
| deadline | uint256 | |
| v | uint8 | |
| r | bytes32 | |
| s | bytes32 |
Removes a non-bridge minter
Parameters
| Name | Type | Description |
|---|---|---|
| minter_address | address | Address of minter to remove |
Sets the timelock address
Parameters
| Name | Type | Description |
|---|---|---|
| _timelock_address | address | Address of the timelock |
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | |
| value | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| value | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
Emitted whenever the bridge burns tokens from an account
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ✓ | Address of the account tokens are being burned from |
| amount | uint256 | Amount of tokens burned |
| Name | Type | Indexed | Description |
|---|---|---|---|
| version | uint64 |
Emitted whenever the bridge mints tokens to an account
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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
| Name | Type | Indexed | Description |
|---|---|---|---|
| minter_address | address | Address of the new minter |
Emitted when a non-bridge minter is removed
| Name | Type | Indexed | Description |
|---|---|---|---|
| minter_address | address | Address of the removed minter |
| Name | Type | Indexed | Description |
|---|---|---|---|
| oldOwner | address | ||
| newOwner | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| newOwner | address |
Emitted when the timelock address changes
| Name | Type | Indexed | Description |
|---|---|---|---|
| timelock_address | address | Address of the new timelock |
Emitted when a non-bridge minter burns tokens
| Name | Type | Indexed | Description |
|---|---|---|---|
| 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
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | The minter doing the minting |
| to | address | ✓ | The account that gets the newly minted tokens |
| amount | uint256 | Amount of tokens minted |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |