StandardArbERC20

Arbitrum One ERC-20 Token

0x3f770ac673856f105b586bb393d122721265ad46

Solidity v0.6.11+commit.5ef660b1

Fungible token following the ERC-20 standard.

🤖
通过你的 AI 查询此合约
引用: 0x3f770ac673856f105b586bb393d122721265ad46
示例提示词: "Tell me the current state of arbitrum/0x3f770ac673856f105b586bb393d122721265ad46"
还没有接入 AI?→ mcp.smarts.md

管理与风险

谁能修改规则?

No admin risk controls detected from the verified ABI.

概览

读取函数
11
写入函数
10
事件
3

读取函数

Block #25,177,103 · just now
DOMAIN_SEPARATOR() view → 0x60a7ceacab02397e9248573e99be565f18250840b49a2ad0b3475658573dbceb

Returns the EIP-712 domain separator used for signing typed data.✨ AI

返回值

名称 类型 描述
bytes32 The domain separator (bytes32) used in EIP-712 typed data hashing for signatures and permits.✨ AI
allowance(owner: address, spender: address) view

Returns the remaining number of tokens that spender is allowed to spend on behalf of owner.✨ AI

开发者: See {IERC20-allowance}.

参数

名称 类型 描述
owner address Token holder address whose allowance is being queried.✨ AI
spender address Address approved to spend tokens from the owner.✨ AI

返回值

名称 类型 描述
uint256 Remaining allowance amount (in the token's smallest unit) that spender may transfer from owner.✨ AI
balanceOf(account: address) view

Returns the token balance of the specified account.✨ AI

开发者: See {IERC20-balanceOf}.

参数

名称 类型 描述
account address Address whose token balance will be returned.✨ AI

返回值

名称 类型 描述
uint256 The number of tokens owned by the account as a uint256.✨ AI
decimals() view → 0

Return the number of decimal places the token uses.✨ AI

开发者: Returns the number of decimals used to get its user representation. For example, if `decimals` equals `2`, a balance of `505` tokens should be displayed to a user as `5,05` (`505 / 10 ** 2`). Tokens usually opt for a value of 18, imitating the relationship between Ether and Wei. This is the value {ERC20} uses, unless {_setupDecimals} is called. NOTE: This information is only used for _display_ purposes: it in no way affects any of the arithmetic of the contract, including {IERC20-balanceOf} and {IERC20-transfer}.

返回值

名称 类型 描述
uint8 Number of decimal places the token uses (uint8) for displaying balances and amounts.✨ AI
isMaster() view → true

Return whether this contract is the master implementation of the token.✨ AI

返回值

名称 类型 描述
bool True if this contract is the master implementation; false otherwise.✨ AI
l1Address() view → 0x0000000000000000000000000000000000000000

Returns the L1 token contract address corresponding to this L2 ERC-20 token.✨ AI

返回值

名称 类型 描述
address address of layer 1 token
l2Gateway() view → 0x0000000000000000000000000000000000000000

Returns the L2 gateway address associated with this token.✨ AI

返回值

名称 类型 描述
address The address of the L2 gateway contract used for bridging this token.✨ AI
name() view

Returns the name of the token.✨ AI

开发者: Returns the name of the token.

返回值

名称 类型 描述
string The token's descriptive name as a string.✨ AI
nonces(owner: address) view

Return the current permit nonce for the specified owner address.✨ AI

开发者: See {IERC20Permit-nonces}.

参数

名称 类型 描述
owner address Address whose permit nonce to retrieve.✨ AI

返回值

名称 类型 描述
uint256 Current uint256 nonce for the owner, used to validate off-chain permit signatures; increments on successful permit.✨ AI
symbol() view

Returns the ERC-20 token symbol used to identify the token in user interfaces.✨ AI

开发者: Returns the symbol of the token, usually a shorter version of the name.

返回值

名称 类型 描述
string The token symbol as a short string (e.g., "ETH"), suitable for display in wallets and user interfaces.✨ AI
totalSupply() view → 0

Returns the total supply of tokens.✨ AI

开发者: See {IERC20-totalSupply}.

返回值

名称 类型 描述
uint256 Total supply as a uint256 denominated in the token's smallest unit (e.g., wei).✨ AI

写入函数

approve(spender: address, amount: uint256) nonpayable

Approve spender to spend up to amount tokens from your account.✨ AI

开发者: See {IERC20-approve}. Requirements: - `spender` cannot be the zero address.

参数

名称 类型 描述
spender address Address approved to spend tokens on caller's behalf.✨ AI
amount uint256 Maximum number of tokens the spender is allowed to transfer.✨ AI

返回值

名称 类型 描述
bool True if approval succeeded, false otherwise.✨ AI
bridgeBurn(account: address, amount: uint256) nonpayable

Burn tokens on L2.

开发者: only the token bridge can call this

参数

名称 类型 描述
account address owner of tokens
amount uint256 amount of tokens burnt
bridgeInit(_l1Address: address, _data: bytes) nonpayable

initialize the token

开发者: the L2 bridge assumes this does not fail or revert

参数

名称 类型 描述
_l1Address address L1 address of ERC20
_data bytes encoded symbol/name/decimal data for initial deploy
bridgeMint(account: address, amount: uint256) nonpayable

Mint tokens on L2. Callable path is L1Gateway depositToken (which handles L1 escrow), which triggers L2Gateway, which calls this

参数

名称 类型 描述
account address recipient of tokens
amount uint256 amount of tokens minted
decreaseAllowance(spender: address, subtractedValue: uint256) nonpayable

Decrease the caller's ERC-20 allowance for spender by subtractedValue and return true.✨ AI

开发者: Atomically decreases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address. - `spender` must have allowance for the caller of at least `subtractedValue`.

参数

名称 类型 描述
spender address Address which will have its allowance decreased.✨ AI
subtractedValue uint256 Amount of tokens to subtract from the spender's current allowance.✨ AI

返回值

名称 类型 描述
bool True if the allowance was decreased; reverts if subtractedValue exceeds current allowance and emits Approval.✨ AI
increaseAllowance(spender: address, addedValue: uint256) nonpayable

Increase the caller's ERC-20 allowance for spender by addedValue and return true on success.✨ AI

开发者: Atomically increases the allowance granted to `spender` by the caller. This is an alternative to {approve} that can be used as a mitigation for problems described in {IERC20-approve}. Emits an {Approval} event indicating the updated allowance. Requirements: - `spender` cannot be the zero address.

参数

名称 类型 描述
spender address Address allowed to spend tokens on behalf of the caller.✨ AI
addedValue uint256 Amount to add to the current allowance, in the token's smallest unit.✨ AI

返回值

名称 类型 描述
bool True if the allowance was successfully increased.✨ AI
permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Permit spender to spend tokens on owner's behalf using an off-chain signature (EIP-2612).✨ AI

开发者: See {IERC20Permit-permit}.

参数

名称 类型 描述
owner address Address granting the allowance.✨ AI
spender address Address receiving the allowance.✨ AI
value uint256 Amount of tokens to approve.✨ AI
deadline uint256 Unix timestamp when the permit expires.✨ AI
v uint8 ECDSA signature parameter v.✨ AI
r bytes32 ECDSA signature parameter r.✨ AI
s bytes32 ECDSA signature parameter s.✨ AI
transfer(recipient: address, amount: uint256) nonpayable

Transfers a specified amount of tokens from the caller to the recipient.✨ AI

开发者: See {IERC20-transfer}. Requirements: - `recipient` cannot be the zero address. - the caller must have a balance of at least `amount`.

参数

名称 类型 描述
recipient address Address receiving the tokens.✨ AI
amount uint256 Amount of tokens to transfer, expressed in the token's smallest unit.✨ AI

返回值

名称 类型 描述
bool True if the transfer succeeded.✨ AI
transferAndCall(_to: address, _value: uint256, _data: bytes) nonpayable

Transfers tokens to a recipient and then calls the recipient contract with the provided data.✨ AI

开发者: transfer token to a contract address with additional data if the recipient is a contact.

参数

名称 类型 描述
_to address The address to transfer to.
_value uint256 The amount to be transferred.
_data bytes The extra data to be passed to the receiving contract.

返回值

名称 类型 描述
success bool success: true if the token transfer and the subsequent call to the recipient succeeded, otherwise false.✨ AI
transferFrom(sender: address, recipient: address, amount: uint256) nonpayable

Transfers amount tokens from sender to recipient using the caller's allowance.✨ AI

开发者: See {IERC20-transferFrom}. Emits an {Approval} event indicating the updated allowance. This is not required by the EIP. See the note at the beginning of {ERC20}. Requirements: - `sender` and `recipient` cannot be the zero address. - `sender` must have a balance of at least `amount`. - the caller must have allowance for ``sender``'s tokens of at least `amount`.

参数

名称 类型 描述
sender address Address tokens are taken from.✨ AI
recipient address Address tokens are sent to.✨ AI
amount uint256 Number of tokens to transfer.✨ AI

返回值

名称 类型 描述
bool True if the transfer succeeded.✨ AI

事件

Approval(owner: address, spender: address, value: uint256)
名称 类型 已索引 描述
owner address
spender address
value uint256
Transfer(from: address, to: address, value: uint256, data: bytes)
名称 类型 已索引 描述
from address
to address
value uint256
data bytes
Transfer(from: address, to: address, value: uint256)
名称 类型 已索引 描述
from address
to address
value uint256