L2ERC721Bridge
Blast0x4200000000000000000000000000000000000014
Proxy 實作合約: 0xc0d3c0d3c0d3c0d3c0d3c0d3c0d3c0d3c2d30014
Solidity v0.8.15+commit.e14f2714
概覽
讀取函式
Getter for messenger contract.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address |
Returns the address of the paired other-layer bridge contract.✨ AI
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | The address of the corresponding bridge contract on the other layer.✨ AI |
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 |
Getter for other bridge address.
回傳值
| 名稱 | 類型 | 描述 |
|---|---|---|
| — | address | Address of the bridge on the other network. |
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. |
寫入函式
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. |
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. |
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. |
Initializes the contract.
事件
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. |
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. |
| 名稱 | 類型 | 已索引 | 描述 |
|---|---|---|---|
| version | uint8 |