BridgedERC20
Taiko ERC-20 Token0x2def195713cf4a606b49d07e520e22c17899a736
Proxy implementation: 0x0167000000000000000000000000000000010096
Solidity v0.8.24+commit.e11b9ed9
Fungible token following the ERC-20 standard.
Overview
Read Functions
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 |
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 |
Gets the canonical token's address and chain ID.
Returns
| Name | Type | Description |
|---|---|---|
| — | address | The canonical token's address. |
| — | uint256 | The canonical token's chain ID. |
Gets the number of decimal places of the token.
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 | The number of decimal places of the token. |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint64 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns true if the contract is paused, and false otherwise.
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | true if paused, false otherwise. |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Resolves a name to its address deployed on this chain.
Parameters
| Name | Type | Description |
|---|---|---|
| _chainId | uint64 | |
| _name | bytes32 | Name whose address is to be resolved. |
| _allowZeroAddress | bool | If set to true, does not throw if the resolved address is `address(0)`. |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | Address associated with the given name. |
Resolves a name to its address deployed on this chain.
Parameters
| Name | Type | Description |
|---|---|---|
| _name | bytes32 | Name whose address is to be resolved. |
| _allowZeroAddress | bool | If set to true, does not throw if the resolved address is `address(0)`. |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | Address associated with the given name. |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| _interfaceId | bytes4 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Returns
| Name | Type | Description |
|---|---|---|
| — | string |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Write Functions
Parameters
| Name | Type | Description |
|---|---|---|
| spender | address | |
| amount | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Burns tokens from msg.sender. This is only allowed if: - 1) tokens are migrating out to a new bridged token - 2) The token is burned by ERC20Vault to bridge back to the canonical chain.
Parameters
| Name | Type | Description |
|---|---|---|
| _amount | uint256 | The amount of tokens to burn. |
Starts or stops migration to/from a specified contract.
Parameters
| Name | Type | Description |
|---|---|---|
| _migratingAddress | address | |
| _migratingInbound | bool |
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 |
Initializes the contract.
Parameters
| Name | Type | Description |
|---|---|---|
| _owner | address | The owner of this contract. msg.sender will be used if this value is zero. |
| _addressManager | address | The address of the {AddressManager} contract. |
| _srcToken | address | The source token address. |
| _srcChainId | uint256 | The source chain ID. |
| _decimals | uint8 | The number of decimal places of the source token. |
| _symbol | string | The symbol of the token. |
| _name | string | The name of the token. |
Mints `amount` tokens and assigns them to the `account` address.
Parameters
| Name | Type | Description |
|---|---|---|
| _account | address | The account to receive the minted tokens. |
| _amount | uint256 | The amount of tokens to mint. |
Pauses the contract.
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 |
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address |
Unpauses the contract.
Parameters
| Name | Type | Description |
|---|---|---|
| newImplementation | address |
Parameters
| Name | Type | Description |
|---|---|---|
| newImplementation | address | |
| data | bytes |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousAdmin | address | ||
| newAdmin | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| beacon | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| version | uint8 |
Emitted when tokens are migrated from the old bridged token.
| Name | Type | Indexed | Description |
|---|---|---|---|
| migratedFrom | address | ✓ | The address of the bridged token. |
| account | address | ✓ | The address of the account. |
| amount | uint256 | The amount of tokens migrated. |
Emitted when tokens are migrated to the new bridged token.
| Name | Type | Indexed | Description |
|---|---|---|---|
| migratedTo | address | ✓ | The address of the bridged token. |
| account | address | ✓ | The address of the account. |
| amount | uint256 | The amount of tokens migrated. |
Emitted when the migration status is changed.
| Name | Type | Indexed | Description |
|---|---|---|---|
| addr | address | The address migrating 'to' or 'from'. | |
| inbound | bool | If false then signals migrating 'from', true if migrating 'into'. |
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
Emitted when the contract is paused.
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | The account that paused the contract. |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
Emitted when the contract is unpaused.
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | The account that unpaused the contract. |
| Name | Type | Indexed | Description |
|---|---|---|---|
| implementation | address | ✓ |