L2BaseToken
Abstract0x000000000000000000000000000000000000800a
Solidity v0.8.20+commit.a1b79de6
概覽
讀取函式
Returns ETH balance of an account
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _account | uint256 | The address of the account to return the balance of. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 |
Returns the number of decimals used by the token.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint8 | The token's decimals (number of decimal places) as a uint8.✨ AI |
Returns the token's name as a human-readable string.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token name as a string.✨ AI |
Returns the token's symbol.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | string | The token symbol string.✨ AI |
Returns the total number of tokens in circulation.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Total supply of tokens as a uint256, expressed in the token's smallest indivisible unit.✨ AI |
寫入函式
Increase the total supply of tokens and balance of the receiver.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _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.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _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.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _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.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _l1Receiver | address | The address on L1 to receive the funds. |
| _additionalData | bytes | Additional data to be sent to L1 with the withdrawal. |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | ✓ | |
| amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| _l2Sender | address | ✓ | |
| _l1Receiver | address | ✓ | |
| _amount | uint256 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| _l2Sender | address | ✓ | |
| _l1Receiver | address | ✓ | |
| _amount | uint256 | ||
| _additionalData | bytes |