L2BlastBridge
Blast0x4300000000000000000000000000000000000005
Proxy implementation: 0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c3d30005
Solidity v0.8.15+commit.e14f2714
Overview
Read Functions
Getter for messenger contract.
Returns
| Name | Type | Description |
|---|---|---|
| — | address | Messenger contract on this domain. |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Parameters
| Name | Type | Description |
|---|---|---|
| — | address | |
| — | address |
Returns
| Name | Type | Description |
|---|---|---|
| — | uint256 |
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Getter for the remote domain bridge contract.
Returns
| Name | Type | Description |
|---|---|---|
| — | address |
Getter for the semantic version of the contract. This is not meant to be used onchain but instead meant to be used by offchain tooling.
Returns
| Name | Type | Description |
|---|---|---|
| — | string | Semver contract version as a string. |
Write Functions
Sends ERC20 tokens to the sender's address on the other chain. Note that if the ERC20 token on the other chain does not recognize the local token as the correct pair token, the ERC20 bridge will fail and the tokens will be returned to sender on this chain.
Parameters
| Name | Type | Description |
|---|---|---|
| _localToken | address | Address of the ERC20 on this chain. |
| _remoteToken | address | Address of the corresponding token on the remote chain. |
| _amount | uint256 | Amount of local tokens to deposit. |
| _minGasLimit | uint32 | Minimum amount of gas that the bridge can be relayed with. |
| _extraData | bytes | Extra data to be sent with the transaction. Note that the recipient will not be triggered with this data, but it will be emitted and can be used to identify the transaction. |
Sends ERC20 tokens to a receiver's address on the other chain. Note that if the ERC20 token on the other chain does not recognize the local token as the correct pair token, the ERC20 bridge will fail and the tokens will be returned to sender on this chain.
Parameters
| Name | Type | Description |
|---|---|---|
| _localToken | address | Address of the ERC20 on this chain. |
| _remoteToken | address | Address of the corresponding token on the remote chain. |
| _to | address | Address of the receiver. |
| _amount | uint256 | Amount of local tokens to deposit. |
| _minGasLimit | uint32 | Minimum amount of gas that the bridge can be relayed with. |
| _extraData | bytes | Extra data to be sent with the transaction. Note that the recipient will not be triggered with this data, but it will be emitted and can be used to identify the transaction. |
Sends ETH to the sender's address on the other chain.
Parameters
| Name | Type | Description |
|---|---|---|
| _minGasLimit | uint32 | Minimum amount of gas that the bridge can be relayed with. |
| _extraData | bytes | Extra data to be sent with the transaction. Note that the recipient will not be triggered with this data, but it will be emitted and can be used to identify the transaction. |
Sends ETH to a receiver's address on the other chain. Note that if ETH is sent to a smart contract and the call fails, the ETH will be temporarily locked in the StandardBridge on the other chain until the call is replayed. If the call cannot be replayed with any amount of gas (call always reverts), then the ETH will be permanently locked in the StandardBridge on the other chain. ETH will also be locked if the receiver is the other bridge, because finalizeBridgeETH will revert in that case.
Parameters
| Name | Type | Description |
|---|---|---|
| _to | address | Address of the receiver. |
| _minGasLimit | uint32 | Minimum amount of gas that the bridge can be relayed with. |
| _extraData | bytes | Extra data to be sent with the transaction. Note that the recipient will not be triggered with this data, but it will be emitted and can be used to identify the transaction. |
Finalizes an ERC20 bridge on this chain. Can only be triggered by the other StandardBridge contract on the remote chain.
Parameters
| Name | Type | Description |
|---|---|---|
| _localToken | address | Address of the ERC20 on this chain. |
| _remoteToken | address | Address of the corresponding token on the remote chain. |
| _from | address | Address of the sender. |
| _to | address | Address of the receiver. |
| _amount | uint256 | Amount of the ERC20 being bridged. |
| _extraData | bytes | Extra data to be sent with the transaction. Note that the recipient will not be triggered with this data, but it will be emitted and can be used to identify the transaction. |
Finalizes an ETH bridge on this chain. Can only be triggered by the other StandardBridge contract on the remote chain.
Parameters
| Name | Type | Description |
|---|---|---|
| _from | address | Address of the sender. |
| _to | address | Address of the receiver. |
| _amount | uint256 | Amount of ETH being bridged. |
| _extraData | bytes | Extra data to be sent with the transaction. Note that the recipient will not be triggered with this data, but it will be emitted and can be used to identify the transaction. |
See { StandardBridge-finalizeBridgeETH }
Parameters
| Name | Type | Description |
|---|---|---|
| _from | address | |
| _to | address | |
| _amount | uint256 | |
| _extraData | bytes |
Initializer
Events
Emitted when an ERC20 bridge is finalized on this chain.
| Name | Type | Indexed | Description |
|---|---|---|---|
| localToken | address | ✓ | Address of the ERC20 on this chain. |
| remoteToken | address | ✓ | Address of the ERC20 on the remote chain. |
| from | address | ✓ | Address of the sender. |
| to | address | Address of the receiver. | |
| amount | uint256 | Amount of the ERC20 sent. | |
| extraData | bytes | Extra data sent with the transaction. |
Emitted when an ERC20 bridge is initiated to the other chain.
| Name | Type | Indexed | Description |
|---|---|---|---|
| localToken | address | ✓ | Address of the ERC20 on this chain. |
| remoteToken | address | ✓ | Address of the ERC20 on the remote chain. |
| from | address | ✓ | Address of the sender. |
| to | address | Address of the receiver. | |
| amount | uint256 | Amount of the ERC20 sent. | |
| extraData | bytes | Extra data sent with the transaction. |
Emitted when an ETH bridge is finalized on this chain.
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | Address of the sender. |
| to | address | ✓ | Address of the receiver. |
| amount | uint256 | Amount of ETH sent. | |
| extraData | bytes | Extra data sent with the transaction. |
Emitted when an ETH bridge is initiated to the other chain.
| Name | Type | Indexed | Description |
|---|---|---|---|
| from | address | ✓ | Address of the sender. |
| to | address | ✓ | Address of the receiver. |
| amount | uint256 | Amount of ETH sent. | |
| extraData | bytes | Extra data sent with the transaction. |
| Name | Type | Indexed | Description |
|---|---|---|---|
| version | uint8 |