L2BaseToken

Abstract

0x000000000000000000000000000000000000800a

Solidity v0.8.20+commit.a1b79de6

🤖
Query this contract from your AI
Reference: 0x000000000000000000000000000000000000800a
Sample prompt: "Tell me the current state of abstract/0x000000000000000000000000000000000000800a"
No AI wired up yet? → mcp.smarts.md
Abstract is a docs-only chain on Smarts: source code and ABI are indexed, but live on-chain data (state, recent events, admin profile) is not currently available. AI agents can still query get_contract_info and get_contract_source via MCP.

Overview

Read Functions
5
Write Functions
4
Events
4

Read Functions

balanceOf(_account: uint256) view

Returns ETH balance of an account

dev: It takes `uint256` as an argument to be able to properly simulate the behaviour of the Ethereum's `BALANCE` opcode that accepts uint256 as an argument and truncates any upper bits

Parameters

Name Type Description
_account uint256 The address of the account to return the balance of.

Returns

Name Type Description
uint256
decimals() pure
dev: This method has not been stabilized and might be removed later on.

Returns

Name Type Description
uint8
name() pure
dev: This method has not been stabilized and might be removed later on.

Returns

Name Type Description
string
symbol() pure
dev: This method has not been stabilized and might be removed later on.

Returns

Name Type Description
string
totalSupply() view
dev: Returns the amount of tokens in existence.

Returns

Name Type Description
uint256

Write Functions

mint(_account: address, _amount: uint256) nonpayable

Increase the total supply of tokens and balance of the receiver.

dev: This method is only callable by the bootloader.

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.
transferFromTo(_from: address, _to: address, _amount: uint256) nonpayable

Transfer tokens from one address to another.

dev: This function also emits "Transfer" event, which might be removed later on.

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.
withdraw(_l1Receiver: address) payable

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.
withdrawWithMessage(_l1Receiver: address, _additionalData: bytes) payable

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

Mint(account: address, amount: uint256)
Name Type Indexed Description
account address
amount uint256
Transfer(from: address, to: address, value: uint256)
Name Type Indexed Description
from address
to address
value uint256
Withdrawal(_l2Sender: address, _l1Receiver: address, _amount: uint256)
Name Type Indexed Description
_l2Sender address
_l1Receiver address
_amount uint256
WithdrawalWithMessage(_l2Sender: address, _l1Receiver: address, _amount: uint256, _additionalData: bytes)
Name Type Indexed Description
_l2Sender address
_l1Receiver address
_amount uint256
_additionalData bytes