BridgedERC20
Taiko ERC-20 Token0x2def195713cf4a606b49d07e520e22c17899a736
Proxy 实现合约: 0x0167000000000000000000000000000000010096
Solidity v0.8.24+commit.e11b9ed9
Fungible token following the ERC-20 standard.
概览
读取函数
Returns the source token's decimal precision.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | The source token's decimals as a uint8 indicating the number of decimal places.✨ AI |
Returns the address manager contract used by this token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address of the AddressManager contract used for resolving system addresses and roles.✨ AI |
Return the remaining number of tokens that spender is allowed to spend from the owner's balance.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| owner | address | Address which owns the tokens.✨ AI |
| spender | address | Address approved to spend the owner's tokens.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Remaining token allowance (uint256) that spender can transfer from owner.✨ AI |
Return the token balance for the specified account.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| account | address | Address to query the token balance of.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | Token balance of the specified account as a uint256.✨ AI |
Gets the canonical token's address and chain ID.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The canonical token's address. |
| — | uint256 | The canonical token's chain ID. |
Gets the number of decimal places of the token.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint8 | The number of decimal places of the token. |
Returns the current implementation address used by this bridged ERC-20 token.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address of the implementation contract currently used by this proxied bridged ERC-20 token.✨ AI |
Reports whether the contract is currently executing inside the non-reentrant guard.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if execution is currently inside the non-reentrant section, false otherwise.✨ AI |
Return true when the token contract is currently performing an outbound migration.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the contract is in the migrating-out state (outbound migration active), otherwise false.✨ AI |
Return the Unix timestamp when the contract was last unpaused.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint64 | uint64 Unix timestamp (seconds) of the last time the contract was unpaused; zero if never unpaused.✨ AI |
Show the address authorized to initiate token migration.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | Address authorized to initiate token migration.✨ AI |
Returns true when inbound token migration is enabled.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if inbound token migration is enabled; false otherwise.✨ AI |
Returns the token's name as a human-readable string.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token's name (human-readable string).✨ AI |
Returns the address of the contract owner.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The owner address with administrative privileges over the contract.✨ AI |
Returns true if the contract is paused, and false otherwise.
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | true if paused, false otherwise. |
Returns the address currently proposed to become the contract owner.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address proposed to become the contract owner, or the zero address if no owner is pending.✨ AI |
Return the proxiable UUID that identifies the contract's storage slot for UUPS upgrades.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 value: the UUID that specifies the implementation storage slot used for UUPS/EIP-1822 compatibility.✨ AI |
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. |
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. |
Return the source chain identifier for tokens bridged into this contract.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The uint256 chain identifier of the source chain for tokens bridged to this contract.✨ AI |
Return the source token contract address that this bridged ERC-20 represents.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | address | The address of the original/source ERC-20 token contract backing this bridged token.✨ AI |
Check whether the contract supports the interface identified by the provided interface id.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _interfaceId | bytes4 | Interface identifier (bytes4) as defined by ERC-165.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the contract implements the interface with the given id, otherwise false.✨ AI |
Returns the token's short symbol used in user interfaces.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | string | The token's short symbol as a string (for example, "USDC").✨ AI |
Returns the total number of tokens in circulation.✨ AI
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | uint256 | The total token supply as a uint256, representing the number of tokens currently in existence.✨ AI |
写入函数
Finalize ownership transfer by making the pending owner the new contract owner.✨ AI
Allow a spender to spend up to a specified amount of your tokens.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address allowed to transfer tokens from the caller's balance.✨ AI |
| amount | uint256 | Maximum number of tokens the spender is allowed to transfer.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the approval succeeded, otherwise false.✨ AI |
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. |
Starts or stops migration to/from a specified contract.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _migratingAddress | address | |
| _migratingInbound | bool |
Decrease the caller's allowance granted to spender by subtractedValue and return true on success.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address whose allowance will be decreased.✨ AI |
| subtractedValue | uint256 | Number of tokens to subtract from the allowance.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the allowance was successfully decreased.✨ AI |
Increase the caller's ERC-20 allowance for a spender by a specified amount.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| spender | address | Address allowed to spend tokens on behalf of the caller.✨ AI |
| addedValue | uint256 | Amount to add to the current allowance for the spender.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the allowance was increased successfully.✨ AI |
Initializes the contract.
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| _owner | address | The owner of this contract. msg.sender will be used if this value is zero. |
| _addressManager | address | The address of the {AddressManager} contract. |
| _srcToken | address | The source token address. |
| _srcChainId | uint256 | The source chain ID. |
| _decimals | uint8 | The number of decimal places of the source token. |
| _symbol | string | The symbol of the token. |
| _name | string | The name of the token. |
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. |
Pauses the contract.
Renounces ownership, making the contract ownerless and disabling owner-only functions.✨ AI
Transfer tokens from the caller to the specified recipient address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| to | address | Recipient address receiving the tokens.✨ AI |
| amount | uint256 | Amount of tokens to transfer, denominated in the token's smallest unit.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeded and a Transfer event was emitted.✨ AI |
Transfers tokens from one account to another using the caller's allowance.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| from | address | Source address whose token balance will be decreased.✨ AI |
| to | address | Destination address that will receive the tokens.✨ AI |
| amount | uint256 | Amount of tokens to transfer, expressed in the token's smallest unit.✨ AI |
返回值
| 名称 | 类型 | 描述 |
|---|---|---|
| — | bool | True if the transfer succeeds.✨ AI |
Transfer ownership of the contract to a new owner.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newOwner | address | Address that will become the contract owner.✨ AI |
Unpauses the contract.
Upgrade the contract implementation to a new implementation contract address.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newImplementation | address | Address of the new implementation contract to set.✨ AI |
Upgrade the token implementation to a new address, call the new implementation with provided initialization data, and optionally send Ether.✨ AI
参数
| 名称 | 类型 | 描述 |
|---|---|---|
| newImplementation | address | Address of the new implementation contract to upgrade to.✨ AI |
| data | bytes | ABI-encoded call data executed on the new implementation immediately after upgrade.✨ AI |
事件
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| previousAdmin | address | ||
| newAdmin | address |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| owner | address | ✓ | |
| spender | address | ✓ | |
| value | uint256 |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| beacon | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint8 |
Emitted when tokens are migrated from the old bridged token.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| migratedFrom | address | ✓ | The address of the bridged token. |
| account | address | ✓ | The address of the account. |
| amount | uint256 | The amount of tokens migrated. |
Emitted when tokens are migrated to the new bridged token.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| migratedTo | address | ✓ | The address of the bridged token. |
| account | address | ✓ | The address of the account. |
| amount | uint256 | The amount of tokens migrated. |
Emitted when the migration status is changed.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| addr | address | The address migrating 'to' or 'from'. | |
| inbound | bool | If false then signals migrating 'from', true if migrating 'into'. |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
Emitted when the contract is paused.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | The account that paused the contract. |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| from | address | ✓ | |
| to | address | ✓ | |
| value | uint256 |
Emitted when the contract is unpaused.
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | The account that unpaused the contract. |
| 名称 | 类型 | 已索引 | 描述 |
|---|---|---|---|
| implementation | address | ✓ |