BridgedTaikoToken

Taiko ERC-20 Token 浏览链

0xa9d23408b9ba935c230493c40c73824df71a0975

Proxy 实现合约: 0x71583f1ba66f292f6c626f37e25c438b152dd917

Solidity v0.8.24+commit.e11b9ed9

Fungible token following the ERC-20 standard.

🤖
通过你的 AI 查询此合约
引用: 0xa9d23408b9ba935c230493c40c73824df71a0975
示例提示词: "Tell me the current state of taiko/0xa9d23408b9ba935c230493c40c73824df71a0975"
还没有接入 AI?→ mcp.smarts.md · 浏览链
Taiko 在 Smarts 上是仅文档链:源代码和 ABI 已索引,但当前不提供实时链上数据(状态、最新事件、管理员画像)。AI 代理仍可通过 MCP 调用 get_contract_info 和 get_contract_source。

概览

读取函数
29
写入函数
18
事件
13

读取函数

CLOCK_MODE() pure

Return the clock mode identifier string used by the contract.✨ AI

返回值

名称 类型 描述
— string Clock mode identifier string that specifies how the contract interprets time.✨ AI
DOMAIN_SEPARATOR() view

Returns the EIP-712 domain separator used for permit and typed-data signatures.✨ AI

返回值

名称 类型 描述
— bytes32 The EIP-712 domain separator (bytes32) used to compute permit signatures and typed-data hashes.✨ AI
addressManager() view

Returns the address of the AddressManager contract used by this token.✨ AI

返回值

名称 类型 描述
— address The AddressManager contract address used for resolving system component addresses.✨ AI
allowance(owner: address, spender: address) view

Returns the remaining number of tokens that spender is allowed to transfer from owner.✨ AI

开发者: See {IERC20-allowance}.

参数

名称 类型 描述
owner address Address which owns the tokens.✨ AI
spender address Address authorized to spend tokens on owner's behalf.✨ AI

返回值

名称 类型 描述
— uint256 Remaining allowance as uint256: how many token base units spender may still spend from owner.✨ AI
balanceOf(account: address) view

Returns the token balance for the specified account.✨ AI

开发者: See {IERC20-balanceOf}.

参数

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

返回值

名称 类型 描述
— uint256 The account's token balance as a uint256.✨ AI
canonical() pure

Gets the canonical token's address and chain ID.

返回值

名称 类型 描述
— address The canonical token's address.
— uint256 The canonical token's chain ID.
changeMigrationStatus(address, bool) pure

Starts or stops migration to/from a specified contract.

参数

名称 类型 描述
— address
— bool
checkpoints(account: address, pos: uint32) view

Returns the checkpoint at index pos for account, showing when it was recorded and the votes at that time.✨ AI

开发者: Get the `pos`-th checkpoint for `account`.

参数

名称 类型 描述
account address Address whose checkpoint to read.✨ AI
pos uint32 Index of the checkpoint to return (0-based).✨ AI

返回值

名称 类型 描述
— tuple fromBlock: Block number when this checkpoint was created.✨ AI
clock() view

Return the token contract's current internal clock value.✨ AI

开发者: Clock used for flagging checkpoints. Can be overridden to implement timestamp based checkpoints (and voting).

返回值

名称 类型 描述
— uint48 The contract's current internal clock value as a uint48 integer representing its internal time or epoch.✨ AI
decimals() view

Returns the token's number of decimals used for display and arithmetic.✨ 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 default value returned by this function, unless it's overridden. 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 The token's decimals as a uint8, indicating how many decimal places define the smallest unit.✨ AI
delegates(account: address) view

Return the delegatee address to which an account has delegated its voting power.✨ AI

开发者: Get the address `account` is currently delegating to.

参数

名称 类型 描述
account address Address of the token holder whose delegatee you want to look up.✨ AI

返回值

名称 类型 描述
— address The address that currently receives the account's delegated votes, or the zero address if not delegated.✨ AI
eip712Domain() view

Return the EIP-712 domain parameters the token uses for typed-data signing.✨ AI

开发者: See {EIP-5267}. _Available since v4.9._

返回值

名称 类型 描述
fields bytes1 EIP-712 domain field type identifier (bytes1) used in domain encoding.✨ AI
name string Human-readable token name included in the EIP-712 domain.✨ AI
version string Version string included in the EIP-712 domain.✨ AI
chainId uint256 Chain ID used in the domain to prevent signature replay across chains.✨ AI
verifyingContract address Verifying contract address used in the EIP-712 typed-data domain.✨ AI
salt bytes32 32-byte salt value used as a domain separator parameter.✨ AI
extensions uint256[] Array of optional extension identifiers included in the domain (may be empty).✨ AI
getPastTotalSupply(timepoint: uint256) view

Return the total token supply as of the specified past timepoint.✨ AI

开发者: Retrieve the `totalSupply` at the end of `timepoint`. Note, this value is the sum of all balances. It is NOT the sum of all the delegated votes! Requirements: - `timepoint` must be in the past

参数

名称 类型 描述
timepoint uint256 The historical timepoint (for example a block number or snapshot id) to query.✨ AI

返回值

名称 类型 描述
— uint256 Total token supply at the given timepoint.✨ AI
getPastVotes(account: address, timepoint: uint256) view

Get an account's voting power at a specified past timepoint.✨ AI

开发者: Retrieve the number of votes for `account` at the end of `timepoint`. Requirements: - `timepoint` must be in the past

参数

名称 类型 描述
account address Address whose historical vote balance to query.✨ AI
timepoint uint256 Block number or snapshot identifier at which to read the vote balance.✨ AI

返回值

名称 类型 描述
— uint256 The number of votes the account held at the given timepoint.✨ AI
getVotes(account: address) view

Returns the current voting power (number of votes) assigned to the given account.✨ AI

开发者: Gets the current votes balance for `account`

参数

名称 类型 描述
account address Address whose delegated voting balance is being queried.✨ AI

返回值

名称 类型 描述
— uint256 Current number of votes (voting power) held by the account as a uint256.✨ AI
impl() view

Returns the address of the current implementation contract.✨ AI

返回值

名称 类型 描述
— address Address of the implementation contract to which the proxy delegates calls.✨ AI
inNonReentrant() view

Checks whether the contract is currently in a non-reentrant state.✨ AI

返回值

名称 类型 描述
— bool True if the contract is in a non-reentrant state, false if a reentrant call is in progress.✨ AI
lastUnpausedAt() view

Shows when the token was last unpaused as a Unix timestamp.✨ AI

返回值

名称 类型 描述
— uint64 The Unix timestamp (seconds) when the contract was most recently unpaused; zero if never unpaused.✨ AI
name() view

Returns the token's name as a human-readable string.✨ AI

开发者: Returns the name of the token.

返回值

名称 类型 描述
— string The token's human-readable name (e.g., "Bridged Taiko Token").✨ AI
nonces(owner: address) view

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

开发者: Returns the current nonce for `owner`. This value must be included whenever a signature is generated for {permit}. Every successful call to {permit} increases ``owner``'s nonce by one. This prevents a signature from being used multiple times.

参数

名称 类型 描述
owner address Address whose permit nonce is being returned.✨ AI

返回值

名称 类型 描述
— uint256 The current nonce for the owner, used to prevent replay of signed permits.✨ AI
numCheckpoints(account: address) view

Returns the number of voting checkpoints recorded for an account.✨ AI

开发者: Get number of checkpoints for `account`.

参数

名称 类型 描述
account address Address to query for the number of recorded checkpoints.✨ AI

返回值

名称 类型 描述
— uint32 The uint32 count of voting checkpoints stored for the account.✨ AI
owner() view

Returns the address of the current contract owner.✨ AI

开发者: Returns the address of the current owner.

返回值

名称 类型 描述
— address The address of the current contract owner with administrative privileges.✨ AI
paused() view

Returns true if the contract is paused, and false otherwise.

返回值

名称 类型 描述
— bool true if paused, false otherwise.
pendingOwner() view

Returns the address nominated to become the contract owner.✨ AI

开发者: Returns the address of the pending owner.

返回值

名称 类型 描述
— address The address nominated to become owner; zero address if there is no pending owner.✨ AI
proxiableUUID() view

Returns the UUID that identifies the storage slot used by UUPS proxies for this implementation.✨ AI

开发者: Implementation of the ERC1822 {proxiableUUID} function. This returns the storage slot used by the implementation. It is used to validate the implementation's compatibility when performing an upgrade. IMPORTANT: A proxy pointing at a proxiable contract should not be considered proxiable itself, because this risks bricking a proxy that upgrades to it, by delegating to itself until out of gas. Thus it is critical that this function revert if invoked through a proxy. This is guaranteed by the `notDelegated` modifier.

返回值

名称 类型 描述
— bytes32 The 32-byte UUID (bytes32) that identifies the proxiable implementation storage slot.✨ AI
resolve(_chainId: uint64, _name: bytes32, _allowZeroAddress: bool) view

Resolves a name to its address deployed on this chain.

参数

名称 类型 描述
_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)`.

返回值

名称 类型 描述
— address Address associated with the given name.
resolve(_name: bytes32, _allowZeroAddress: bool) view

Resolves a name to its address deployed on this chain.

参数

名称 类型 描述
_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)`.

返回值

名称 类型 描述
— address Address associated with the given name.
symbol() pure

Returns the token's short symbol used by wallets and user interfaces.✨ AI

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

返回值

名称 类型 描述
— string The token symbol string used for display in wallets and user interfaces.✨ AI
totalSupply() view

Returns the total number of tokens in circulation.✨ AI

开发者: See {IERC20-totalSupply}.

返回值

名称 类型 描述
— uint256 Total token supply as a uint256 in the token's smallest unit (includes all minted tokens).✨ AI

写入函数

acceptOwnership() nonpayable

Finalize a pending ownership transfer and set the pending owner as the contract owner.✨ AI

开发者: The new owner accepts the ownership transfer.
approve(spender: address, amount: uint256) nonpayable

Approve lets you authorize spender to transfer up to amount of your tokens.✨ AI

开发者: See {IERC20-approve}. NOTE: If `amount` is the maximum `uint256`, the allowance is not updated on `transferFrom`. This is semantically equivalent to an infinite approval. Requirements: - `spender` cannot be the zero address.

参数

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

返回值

名称 类型 描述
— bool True if the approval succeeded.✨ AI
burn(_amount: uint256) nonpayable

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.

参数

名称 类型 描述
_amount uint256 The amount of tokens to burn.
decreaseAllowance(spender: address, subtractedValue: uint256) nonpayable

Decrease the caller's allowance for spender by subtractedValue.✨ 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 allowed to spend the caller's tokens.✨ AI
subtractedValue uint256 Amount to subtract from the current allowance (in token smallest units).✨ AI

返回值

名称 类型 描述
— bool True if the allowance was decreased successfully.✨ AI
delegate(delegatee: address) nonpayable

Delegate the caller's voting power to the specified delegatee.✨ AI

开发者: Delegate votes from the sender to `delegatee`.

参数

名称 类型 描述
delegatee address Address to receive the caller's delegated voting power.✨ AI
delegateBySig(delegatee: address, nonce: uint256, expiry: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable

Delegate voting power using an off-chain EIP-712 signature so the signer need not submit a transaction.✨ AI

开发者: Delegates votes from signer to `delegatee`

参数

名称 类型 描述
delegatee address Address to receive delegated voting power.✨ AI
nonce uint256 Signer nonce used to prevent replay attacks.✨ AI
expiry uint256 Unix timestamp after which the signature is invalid.✨ AI
v uint8 ECDSA signature parameter v.✨ AI
r bytes32 ECDSA signature parameter r.✨ AI
s bytes32 ECDSA signature parameter s.✨ AI
increaseAllowance(spender: address, addedValue: uint256) nonpayable

Increase the ERC-20 allowance granted to a spender by the caller.✨ 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 additional tokens.✨ AI
addedValue uint256 Amount of tokens to add to the current allowance.✨ AI

返回值

名称 类型 描述
— bool True if the allowance was successfully increased, false otherwise.✨ AI
init(_owner: address, _addressManager: address) nonpayable

Initializes the contract.

参数

名称 类型 描述
_owner address The owner of this contract. msg.sender will be used if this value is zero.
_addressManager address The address manager address.
mint(_account: address, _amount: uint256) nonpayable

Mints `amount` tokens and assigns them to the `account` address.

参数

名称 类型 描述
_account address The account to receive the minted tokens.
_amount uint256 The amount of tokens to mint.
pause() nonpayable

Pauses the contract.

permit(owner: address, spender: address, value: uint256, deadline: uint256, v: uint8, r: bytes32, s: bytes32) nonpayable
开发者: Sets `value` as the allowance of `spender` over ``owner``'s tokens, given ``owner``'s signed approval. IMPORTANT: The same issues {IERC20-approve} has related to transaction ordering also apply here. Emits an {Approval} event. Requirements: - `spender` cannot be the zero address. - `deadline` must be a timestamp in the future. - `v`, `r` and `s` must be a valid `secp256k1` signature from `owner` over the EIP712-formatted function arguments. - the signature must use ``owner``'s current nonce (see {nonces}). For more information on the signature format, see the https://eips.ethereum.org/EIPS/eip-2612#specification[relevant EIP section]. CAUTION: See Security Considerations above.

参数

名称 类型 描述
owner address
spender address
value uint256
deadline uint256
v uint8
r bytes32
s bytes32
renounceOwnership() nonpayable
开发者: Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.
transfer(to: address, amount: uint256) nonpayable
开发者: See {IERC20-transfer}. Requirements: - `to` cannot be the zero address. - the caller must have a balance of at least `amount`.

参数

名称 类型 描述
to address
amount uint256

返回值

名称 类型 描述
— bool
transferFrom(from: address, to: address, amount: uint256) nonpayable
开发者: 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}. NOTE: Does not update the allowance if the current allowance is the maximum `uint256`. Requirements: - `from` and `to` cannot be the zero address. - `from` must have a balance of at least `amount`. - the caller must have allowance for ``from``'s tokens of at least `amount`.

参数

名称 类型 描述
from address
to address
amount uint256

返回值

名称 类型 描述
— bool
transferOwnership(newOwner: address) nonpayable
开发者: Starts the ownership transfer of the contract to a new account. Replaces the pending transfer if there is one. Can only be called by the current owner.

参数

名称 类型 描述
newOwner address
unpause() nonpayable

Unpauses the contract.

upgradeTo(newImplementation: address) nonpayable
开发者: Upgrade the implementation of the proxy to `newImplementation`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.

参数

名称 类型 描述
newImplementation address
upgradeToAndCall(newImplementation: address, data: bytes) payable
开发者: Upgrade the implementation of the proxy to `newImplementation`, and subsequently execute the function call encoded in `data`. Calls {_authorizeUpgrade}. Emits an {Upgraded} event.

参数

名称 类型 描述
newImplementation address
data bytes

事件

AdminChanged(previousAdmin: address, newAdmin: address)
名称 类型 已索引 描述
previousAdmin address
newAdmin address
Approval(owner: address, spender: address, value: uint256)
名称 类型 已索引 描述
owner address ✓
spender address ✓
value uint256
BeaconUpgraded(beacon: address)
名称 类型 已索引 描述
beacon address ✓
DelegateChanged(delegator: address, fromDelegate: address, toDelegate: address)
名称 类型 已索引 描述
delegator address ✓
fromDelegate address ✓
toDelegate address ✓
DelegateVotesChanged(delegate: address, previousBalance: uint256, newBalance: uint256)
名称 类型 已索引 描述
delegate address ✓
previousBalance uint256
newBalance uint256
EIP712DomainChanged()
Initialized(version: uint8)
名称 类型 已索引 描述
version uint8
OwnershipTransferStarted(previousOwner: address, newOwner: address)
名称 类型 已索引 描述
previousOwner address ✓
newOwner address ✓
OwnershipTransferred(previousOwner: address, newOwner: address)
名称 类型 已索引 描述
previousOwner address ✓
newOwner address ✓
Paused(account: address)

Emitted when the contract is paused.

名称 类型 已索引 描述
account address The account that paused the contract.
Transfer(from: address, to: address, value: uint256)
名称 类型 已索引 描述
from address ✓
to address ✓
value uint256
Unpaused(account: address)

Emitted when the contract is unpaused.

名称 类型 已索引 描述
account address The account that unpaused the contract.
Upgraded(implementation: address)
名称 类型 已索引 描述
implementation address ✓