Bridge
Taiko0x1670000000000000000000000000000000000001
Proxy implementation: 0x95ae2918dcbc6aff8b4c1f1bcc1bf819b6e08b83
Solidity v0.8.27+commit.40a35a09
Overview
Read Functions
Returns
| Name | Type | Description |
|---|---|---|
| — | uint32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint32 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Gets the current context.
Returns
| Name | Type | Description |
|---|---|---|
| ctx_ | tuple |
Returns the minimal gas limit required for sending a given message.
Parameters
| Name | Type | Description |
|---|---|---|
| dataLength | uint256 | The length of message.data. |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint32 | The minimal gas limit required for sending this message. |
Hash the message
Parameters
| Name | Type | Description |
|---|---|---|
| _message | tuple | The message struct variable to be hashed. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The message's hash. |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool |
Checks if the destination chain is enabled.
Parameters
| Name | Type | Description |
|---|---|---|
| _chainId | uint64 | The destination chain ID. |
Returns
| Name | Type | Description |
|---|---|---|
| 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.
Parameters
| Name | Type | Description |
|---|---|---|
| _message | tuple | The message. |
| _proof | bytes | The merkle inclusion proof. |
Returns
| Name | Type | Description |
|---|---|---|
| — | 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.
Parameters
| Name | Type | Description |
|---|---|---|
| _message | tuple | The message. |
| _proof | bytes | The merkle inclusion proof. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | true if the message has been received, false otherwise. |
Checks if the message was sent.
Parameters
| Name | Type | Description |
|---|---|---|
| _message | tuple | The message. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | true if the message was sent. |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint64 |
Parameters
| Name | Type | Description |
|---|---|---|
| msgHash | bytes32 |
Returns
| Name | Type | Description |
|---|---|---|
| status | uint8 |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint64 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns true if the contract is paused, and false otherwise.
Returns
| Name | Type | Description |
|---|---|---|
| — | bool | true if paused, false otherwise. |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 |
Resolves a name to its address deployed on this chain.
Parameters
| Name | Type | Description |
|---|---|---|
| _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)`. |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | Address associated with the given name. |
Resolves a name to its address deployed on this chain.
Parameters
| Name | Type | Description |
|---|---|---|
| _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)`. |
Returns
| Name | Type | Description |
|---|---|---|
| — | address | Address associated with the given name. |
Returns a signal representing a failed/recalled message.
Parameters
| Name | Type | Description |
|---|---|---|
| _msgHash | bytes32 | The message hash. |
Returns
| Name | Type | Description |
|---|---|---|
| — | bytes32 | The failed representation of it as bytes32. |
Write Functions
Mark a message as failed if the message is currently retriable.
Parameters
| Name | Type | Description |
|---|---|---|
| _message | tuple | The message to fail. message. |
Initializes the contract.
Parameters
| Name | Type | Description |
|---|---|---|
| _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.
Parameters
| Name | Type | Description |
|---|---|---|
| _message | tuple | |
| _proof | bytes |
Returns
| Name | Type | Description |
|---|---|---|
| status_ | uint8 | |
| reason_ | uint8 |
Recalls a failed message on its source chain, releasing associated assets.
Parameters
| Name | Type | Description |
|---|---|---|
| _message | tuple | The message whose associated Ether should be released. |
| _proof | bytes | The merkle inclusion proof. |
Retries to invoke the messageCall after releasing associated Ether and tokens.
Parameters
| Name | Type | Description |
|---|---|---|
| _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.
Parameters
| Name | Type | Description |
|---|---|---|
| _anyToken | address | Any token that supports delegation. |
Sends a message to the destination chain and takes custody of Ether required in this contract.
Parameters
| Name | Type | Description |
|---|---|---|
| _message | tuple | The message to be sent. |
Returns
| Name | Type | Description |
|---|---|---|
| msgHash_ | bytes32 | msgHash_ The hash of the sent message. |
| message_ | tuple | message_ The updated message sent. |
Parameters
| Name | Type | Description |
|---|---|---|
| newOwner | address |
Unpauses the contract.
Parameters
| Name | Type | Description |
|---|---|---|
| newImplementation | address |
Parameters
| Name | Type | Description |
|---|---|---|
| newImplementation | address | |
| data | bytes |
Events
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousAdmin | address | ||
| newAdmin | address |
| Name | Type | Indexed | Description |
|---|---|---|---|
| beacon | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| version | uint8 |
| Name | Type | Indexed | Description |
|---|---|---|---|
| msgHash | bytes32 | ✓ | |
| message | tuple | ||
| stats | tuple |
Emitted when a message is sent.
| Name | Type | Indexed | Description |
|---|---|---|---|
| msgHash | bytes32 | ✓ | The hash of the message. |
| message | tuple | The message. |
Emitted when the status of a message changes.
| Name | Type | Indexed | Description |
|---|---|---|---|
| msgHash | bytes32 | ✓ | The hash of the message. |
| status | uint8 | The new status of the message. |
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
| Name | Type | Indexed | Description |
|---|---|---|---|
| previousOwner | address | ✓ | |
| newOwner | address | ✓ |
Emitted when the contract is paused.
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | The account that paused the contract. |
Emitted when the contract is unpaused.
| Name | Type | Indexed | Description |
|---|---|---|---|
| account | address | The account that unpaused the contract. |
| Name | Type | Indexed | Description |
|---|---|---|---|
| implementation | address | ✓ |