Bridge
Taiko0x1670000000000000000000000000000000000001
Proxy 實作合約: 0x95ae2918dcbc6aff8b4c1f1bcc1bf819b6e08b83
Solidity v0.8.27+commit.40a35a09
概覽
讀取函式
Returns the configured gas overhead used by the bridge for message execution.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint32 | The gas overhead as a uint32 value added to estimated gas for bridge message execution.✨ AI |
Shows the gas reserve value the bridge keeps as a safety buffer.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint32 | uint32 gas reserve the bridge retains (in gas units) as a buffer for internal operations.✨ AI |
Returns the maximum allowed proof size in bytes that a relayer may submit.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint256 | Maximum allowed proof size in bytes that the Bridge accepts from relayers.✨ AI |
Returns the AddressManager contract address used by the bridge.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the AddressManager contract used for bridge configuration and lookups.✨ AI |
Gets the current context.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| ctx_ | tuple |
Returns the minimal gas limit required for sending a given message.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| dataLength | uint256 | The length of message.data. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint32 | The minimal gas limit required for sending this message. |
Hash the message
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _message | tuple | The message struct variable to be hashed. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The message's hash. |
Returns the current implementation contract address used by the bridge.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the implementation contract that the bridge delegates calls to.✨ AI |
Indicates whether the contract is currently not in a reentrant call.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | True if the current call is not inside a reentrant execution; false if a reentrant call is in progress.✨ AI |
Checks if the destination chain is enabled.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _chainId | uint64 | The destination chain ID. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| enabled_ | bool | enabled_ True if the destination chain is enabled. |
| destBridge_ | address | destBridge_ The bridge of the destination chain. |
Checks if a msgHash has failed on its destination chain. This is the 'readonly' version of proveMessageFailed.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _message | tuple | The message. |
| _proof | bytes | The merkle inclusion proof. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | true if the message has failed, false otherwise. |
Checks if a msgHash has been received on its source chain. This is the 'readonly' version of proveMessageReceived.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _message | tuple | The message. |
| _proof | bytes | The merkle inclusion proof. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | true if the message has been received, false otherwise. |
Checks if the message was sent.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _message | tuple | The message. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | true if the message was sent. |
Return the UNIX timestamp when the contract was last unpaused.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint64 | Unix timestamp (seconds) of the last unpause event, stored as a uint64; zero if never unpaused.✨ AI |
Get the current processing status of a message by its hash.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| msgHash | bytes32 | Keccak256 hash of the message whose status is queried.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| status | uint8 | Status code of the message as an unsigned 8-bit integer; numeric values map to contract-defined states.✨ AI |
Returns the next message identifier that the bridge will assign.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | uint64 | Next sequential message identifier (uint64) to be assigned to the next created message.✨ AI |
Returns the current owner address of the Bridge contract.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the account that owns and administers this contract.✨ AI |
Returns true if the contract is paused, and false otherwise.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bool | true if paused, false otherwise. |
Return the address currently nominated to become the contract owner.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address nominated as pending owner who can accept ownership; zero address if no nomination exists.✨ AI |
Return the UUID that identifies the contract's proxiable implementation storage slot.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | bytes32 UUID identifying the proxiable implementation storage slot (used by UUPS/ERC1822 proxies).✨ 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. |
Returns a signal representing a failed/recalled message.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _msgHash | bytes32 | The message hash. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | bytes32 | The failed representation of it as bytes32. |
寫入函式
Accept a pending ownership transfer and make the caller the contract owner.✨ AI
Mark a message as failed if the message is currently retriable.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _message | tuple | The message to fail. message. |
Initializes the contract.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _owner | address | The owner of this contract. msg.sender will be used if this value is zero. |
| _sharedAddressManager | address | The address of the {AddressManager} contract. |
This function shall be called by previously deployed contracts.
Pauses the contract.
Validates and executes an incoming cross-chain message by verifying its proof and applying its payload.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _message | tuple | Structured message to process (contains origin, destination, nonce, payload, etc.).✨ AI |
| _proof | bytes | Cryptographic proof bytes used to validate the message origin and integrity.✨ AI |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| status_ | uint8 | status_: Execution status code where 0 = success and nonzero indicates failure.✨ AI |
| reason_ | uint8 | reason_: Subcode indicating specific failure reason or processing stage for status_.✨ AI |
Recalls a failed message on its source chain, releasing associated assets.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _message | tuple | The message whose associated Ether should be released. |
| _proof | bytes | The merkle inclusion proof. |
Renounce contract ownership to remove the owner and disable owner-only functions.✨ AI
Retries to invoke the messageCall after releasing associated Ether and tokens.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _message | tuple | The message to retry. |
| _isLastAttempt | bool | Specifies if this is the last attempt to retry the message. |
Delegates a given token's voting power to the bridge itself.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _anyToken | address | Any token that supports delegation. |
Sends a message to the destination chain and takes custody of Ether required in this contract.
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| _message | tuple | The message to be sent. |
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| msgHash_ | bytes32 | msgHash_ The hash of the sent message. |
| message_ | tuple | message_ The updated message sent. |
Transfers ownership of the Bridge contract to the specified new owner address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newOwner | address | Address to set as the new owner of the contract.✨ AI |
Unpauses the contract.
Upgrade the contract to a new implementation address.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newImplementation | address | Address of the new contract implementation to switch to.✨ AI |
Upgrade the contract implementation, optionally send Ether, and immediately call a function on the new implementation.✨ AI
參數
| 名稱 | 類型 | 描述 |
|---|---|---|
| newImplementation | address | Address of the new implementation contract to set.✨ AI |
| data | bytes | Calldata to execute on the new implementation after upgrade; can be empty.✨ AI |
事件
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| previousAdmin | address | ||
| newAdmin | address |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| beacon | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint8 |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| msgHash | bytes32 | ✓ | |
| message | tuple | ||
| stats | tuple |
Emitted when a message is sent.
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| msgHash | bytes32 | ✓ | The hash of the message. |
| message | tuple | The message. |
Emitted when the status of a message changes.
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| msgHash | bytes32 | ✓ | The hash of the message. |
| status | uint8 | The new status of the message. |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
Emitted when the contract is paused.
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | The account that paused the contract. |
Emitted when the contract is unpaused.
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| account | address | The account that unpaused the contract. |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| implementation | address | ✓ |