0x000000000000000000000000000000000000800a
Solidity v0.8.20+commit.a1b79de6
Overview
Read Functions
Returns ETH balance of an account
Parameters
| Name | Type | Description |
|---|---|---|
| _account | uint256 | The address of the account to return the balance of. |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns the number of decimals used by the token.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint8 | The token's decimals (number of decimal places) as a uint8.✨ AI |
Returns the token's name as a human-readable string.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The token name as a string.✨ AI |
Returns the token's symbol.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | string | The token symbol string.✨ AI |
Returns the total number of tokens in circulation.✨ AI
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 | Total supply of tokens as a uint256, expressed in the token's smallest indivisible unit.✨ AI |
Write Functions
Increase the total supply of tokens and balance of the receiver.
Parameters
| Name | Type | Description |
|---|---|---|
| _account | address | The address which to mint the funds to. |
| _amount | uint256 | The amount of ETH in wei to be minted. |
Transfer tokens from one address to another.
Parameters
| Name | Type | Description |
|---|---|---|
| _from | address | The address to transfer the ETH from. |
| _to | address | The address to transfer the ETH to. |
| _amount | uint256 | The amount of ETH in wei being transferred. |
Initiate the withdrawal of the base token, funds will be available to claim on L1 `finalizeEthWithdrawal` method.
Parameters
| Name | Type | Description |
|---|---|---|
| _l1Receiver | address | The address on L1 to receive the funds. |
Initiate the withdrawal of the base token, with the sent message. The funds will be available to claim on L1 `finalizeEthWithdrawal` method.
Parameters
| Name | Type | Description |
|---|---|---|
| _l1Receiver | address | The address on L1 to receive the funds. |
| _additionalData | bytes | Additional data to be sent to L1 with the withdrawal. |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | ✓ | |
| amount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _l2Sender | address | ✓ | |
| _l1Receiver | address | ✓ | |
| _amount | uint256 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| _l2Sender | address | ✓ | |
| _l1Receiver | address | ✓ | |
| _amount | uint256 | ||
| _additionalData | bytes |