L2ERC721Bridge

Blast

0x4200000000000000000000000000000000000014

Proxy 實作合約: 0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c2d30014

Solidity v0.8.15+commit.e14f2714

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

概覽

讀取函式
5
寫入函式
4
事件
3

讀取函式

MESSENGER() view

Getter for messenger contract.

回傳值

名稱 類型 描述
address
OTHER_BRIDGE() view

Returns the address of the paired other-layer bridge contract.✨ AI

回傳值

名稱 類型 描述
address The address of the corresponding bridge contract on the other layer.✨ AI
messenger() view

Returns the address of the cross-domain messenger used by the bridge.✨ AI

回傳值

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

Getter for other bridge address.

回傳值

名稱 類型 描述
address Address of the bridge on the other network.
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.

寫入函式

bridgeERC721(_localToken: address, _remoteToken: address, _tokenId: uint256, _minGasLimit: uint32, _extraData: bytes) nonpayable

Initiates a bridge of an NFT to the caller's account on the other chain. Note that this function can only be called by EOAs. Smart contract wallets should use the `bridgeERC721To` function after ensuring that the recipient address on the remote chain exists. Also note that the current owner of the token on this chain must approve this contract to operate the NFT before it can be bridged. *WARNING**: Do not bridge an ERC721 that was originally deployed on Optimism. This bridge only supports ERC721s originally deployed on Ethereum. Users will need to wait for the one-week challenge period to elapse before their Optimism-native NFT can be refunded on L2.

參數

名稱 類型 描述
_localToken address Address of the ERC721 on this domain.
_remoteToken address Address of the ERC721 on the remote domain.
_tokenId uint256 Token ID to bridge.
_minGasLimit uint32 Minimum gas limit for the bridge message on the other domain.
_extraData bytes Optional data to forward to the other chain. Data supplied here will not be used to execute any code on the other chain and is only emitted as extra data for the convenience of off-chain tooling.
bridgeERC721To(_localToken: address, _remoteToken: address, _to: address, _tokenId: uint256, _minGasLimit: uint32, _extraData: bytes) nonpayable

Initiates a bridge of an NFT to some recipient's account on the other chain. Note that the current owner of the token on this chain must approve this contract to operate the NFT before it can be bridged. *WARNING**: Do not bridge an ERC721 that was originally deployed on Optimism. This bridge only supports ERC721s originally deployed on Ethereum. Users will need to wait for the one-week challenge period to elapse before their Optimism-native NFT can be refunded on L2.

參數

名稱 類型 描述
_localToken address Address of the ERC721 on this domain.
_remoteToken address Address of the ERC721 on the remote domain.
_to address Address to receive the token on the other domain.
_tokenId uint256 Token ID to bridge.
_minGasLimit uint32 Minimum gas limit for the bridge message on the other domain.
_extraData bytes Optional data to forward to the other chain. Data supplied here will not be used to execute any code on the other chain and is only emitted as extra data for the convenience of off-chain tooling.
finalizeBridgeERC721(_localToken: address, _remoteToken: address, _from: address, _to: address, _tokenId: uint256, _extraData: bytes) nonpayable

Completes an ERC721 bridge from the other domain and sends the ERC721 token to the recipient on this domain.

參數

名稱 類型 描述
_localToken address Address of the ERC721 token on this domain.
_remoteToken address Address of the ERC721 token on the other domain.
_from address Address that triggered the bridge on the other domain.
_to address Address to receive the token on this domain.
_tokenId uint256 ID of the token being deposited.
_extraData bytes Optional data to forward to L1. Data supplied here will not be used to execute any code on L1 and is only emitted as extra data for the convenience of off-chain tooling.
initialize() nonpayable

Initializes the contract.

事件

ERC721BridgeFinalized(localToken: address, remoteToken: address, from: address, to: address, tokenId: uint256, extraData: bytes)

Emitted when an ERC721 bridge from the other network is finalized.

名稱 類型 已索引 描述
localToken address Address of the token on this domain.
remoteToken address Address of the token on the remote domain.
from address Address that initiated bridging action.
to address Address to receive the token.
tokenId uint256 ID of the specific token deposited.
extraData bytes Extra data for use on the client-side.
ERC721BridgeInitiated(localToken: address, remoteToken: address, from: address, to: address, tokenId: uint256, extraData: bytes)

Emitted when an ERC721 bridge to the other network is initiated.

名稱 類型 已索引 描述
localToken address Address of the token on this domain.
remoteToken address Address of the token on the remote domain.
from address Address that initiated bridging action.
to address Address to receive the token.
tokenId uint256 ID of the specific token deposited.
extraData bytes Extra data for use on the client-side.
Initialized(version: uint8)
名稱 類型 已索引 描述
version uint8