L2BlastBridge

Blast

0x4300000000000000000000000000000000000005

Proxy 實作合約: 0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c3d30005

Solidity v0.8.15+commit.e14f2714

🤖
透過你的 AI 查詢此合約
參考: 0x4300000000000000000000000000000000000005
範例提示詞: "Tell me the current state of blast/0x4300000000000000000000000000000000000005"
還沒有接入 AI?→ mcp.smarts.md
Blast 在 Smarts 上是僅文件鏈:原始碼和 ABI 已索引,但目前不提供即時鏈上資料(狀態、最新事件、管理員概覽)。AI 代理仍可透過 MCP 呼叫 get_contract_info 和 get_contract_source。

概覽

讀取函式
6
寫入函式
8
事件
5

讀取函式

MESSENGER() view

Getter for messenger contract.

回傳值

名稱 類型 描述
address Messenger contract on this domain.
OTHER_BRIDGE() view

Returns the address of the configured other bridge contract.✨ AI

回傳值

名稱 類型 描述
address Address of the other bridge contract that this L2 bridge interacts with.✨ AI
deposits(address, address) view

Return the amount of a specified token that is deposited for a given account on the bridge.✨ AI

參數

名稱 類型 描述
address
address

回傳值

名稱 類型 描述
uint256 Total amount of the specified token recorded as deposited for the provided account.✨ AI
messenger() view

Returns the messenger contract address used for cross-domain messaging.✨ AI

回傳值

名稱 類型 描述
address The messenger contract address that the bridge uses to send and receive cross-domain messages.✨ AI
otherBridge() view

Getter for the remote domain bridge contract.

回傳值

名稱 類型 描述
address
version() view

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.

回傳值

名稱 類型 描述
string Semver contract version as a string.

寫入函式

bridgeERC20(_localToken: address, _remoteToken: address, _amount: uint256, _minGasLimit: uint32, _extraData: bytes) nonpayable

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.

參數

名稱 類型 描述
_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.
bridgeERC20To(_localToken: address, _remoteToken: address, _to: address, _amount: uint256, _minGasLimit: uint32, _extraData: bytes) nonpayable

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.

參數

名稱 類型 描述
_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.
bridgeETH(_minGasLimit: uint32, _extraData: bytes) payable

Sends ETH to the sender's address on the other chain.

參數

名稱 類型 描述
_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.
bridgeETHTo(_to: address, _minGasLimit: uint32, _extraData: bytes) payable

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.

參數

名稱 類型 描述
_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.
finalizeBridgeERC20(_localToken: address, _remoteToken: address, _from: address, _to: address, _amount: uint256, _extraData: bytes) nonpayable

Finalizes an ERC20 bridge on this chain. Can only be triggered by the other StandardBridge contract on the remote chain.

參數

名稱 類型 描述
_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.
finalizeBridgeETH(_from: address, _to: address, _amount: uint256, _extraData: bytes) payable

Finalizes an ETH bridge on this chain. Can only be triggered by the other StandardBridge contract on the remote chain.

參數

名稱 類型 描述
_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.
finalizeBridgeETHDirect(_from: address, _to: address, _amount: uint256, _extraData: bytes) payable

See { StandardBridge-finalizeBridgeETH }

參數

名稱 類型 描述
_from address
_to address
_amount uint256
_extraData bytes
initialize() nonpayable

Initializer

事件

ERC20BridgeFinalized(localToken: address, remoteToken: address, from: address, to: address, amount: uint256, extraData: bytes)

Emitted when an ERC20 bridge is finalized on this chain.

名稱 類型 已索引 描述
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.
ERC20BridgeInitiated(localToken: address, remoteToken: address, from: address, to: address, amount: uint256, extraData: bytes)

Emitted when an ERC20 bridge is initiated to the other chain.

名稱 類型 已索引 描述
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.
ETHBridgeFinalized(from: address, to: address, amount: uint256, extraData: bytes)

Emitted when an ETH bridge is finalized on this chain.

名稱 類型 已索引 描述
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.
ETHBridgeInitiated(from: address, to: address, amount: uint256, extraData: bytes)

Emitted when an ETH bridge is initiated to the other chain.

名稱 類型 已索引 描述
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.
Initialized(version: uint8)
名稱 類型 已索引 描述
version uint8