OptimismMintableERC20
World Chain ERC-20 Token0x2cfc85d8e48f8eab294be644d9e25c3030863003
Solidity v0.8.15+commit.e14f2714
Fungible token following the ERC-20 standard.
Overview
Read Functions
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
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 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 |
Legacy getter for the remote token. Use REMOTE_TOKEN going forward.
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Legacy getter for the bridge. Use BRIDGE going forward.
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Legacy getter for REMOTE_TOKEN.
Returns
| Name | Type | Description |
|---|---|---|
| — | 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 |
|---|---|---|
| — | 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
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Allows the StandardBridge on this network to burn tokens.
Parameters
| Name | Type | Description |
|---|---|---|
| _from | address | Address to burn tokens from. |
| _amount | uint256 | Amount of tokens to burn. |
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| subtractedValue | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| addedValue | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
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. |
Parameters
| Name | Type | Description |
|---|---|---|
| to | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Parameters
| Name | Type | Description |
|---|---|---|
| from | address | |
| to | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
Emitted whenever tokens are burned from an account.
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ✓ | Address of the account tokens are being burned from. |
| amount | uint256 | Amount of tokens burned. |
Emitted whenever tokens are minted for an account.
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ✓ | Address of the account tokens are being minted for. |
| amount | uint256 | Amount of tokens minted. |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |