You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Part II, you will add the contracts and scripts to manually bridge NFTs from the BNB Testnet to the IOTA EVM Testnet and list them on the marketplace. The architecture will evolve to look like this:
First, create a `scripts` folder in the root of the project and add the following files under it:
200
200
201
-
### deploy_marketplace_shimmer.js
201
+
### deploy_marketplace_iota.js
202
202
203
-
The `deploy_marketplace_shimmer.js` script will deploy the NFTMarketplace contract to the ShimmerEVM Testnet and save the contract address to a file called `NFTMarketplace.txt`.
203
+
The `deploy_marketplace_iota.js` script will deploy the NFTMarketplace contract to the IotaEVM Testnet and save the contract address to a file called `NFTMarketplace.txt`.
You can run the script by executing the following command:
281
281
282
282
```bash
283
-
npx hardhat run scripts/buy_item.js --network shimmerevm-testnet
283
+
npx hardhat run scripts/buy_item.js --network iotaevm-testnet
284
284
```
285
285
286
286
## Conclusion
287
287
288
-
In this first part of the cross-chain NFT marketplace tutorial, we have set up the project and deployed the NFTMarketplace contract to the ShimmerEVM Testnet. We have also deployed the MyERC721 contract, minted an NFT and then listed it on the marketplace. In the next part, we will manually bridge NFTs from BNB Testnet and Shimmer Testnet to the ShimmerEVM Testnet and list them on the same marketplace.
288
+
In this first part of the cross-chain NFT marketplace tutorial, we have set up the project and deployed the NFTMarketplace contract to the IotaEVM Testnet. We have also deployed the MyERC721 contract, minted an NFT and then listed it on the marketplace. In the next part, we will manually bridge NFTs from BNB Testnet and Iota Testnet to the IotaEVM Testnet and list them on the same marketplace.
Copy file name to clipboardExpand all lines: docs/content/iota-evm/tutorials/cross-chain-nft-marketplace-part-2.md
+21-21Lines changed: 21 additions & 21 deletions
Original file line number
Diff line number
Diff line change
@@ -139,10 +139,10 @@ You will add scripts that perform the following tasks in order:
139
139
1. Deploy the `MyERC721` contract to the BNB Testnet. [deploy_erc721_bnb.js](#deploy_erc721_bnbjs)
140
140
2. Mint an NFT using the `MyERC721` contract. [mint_nft.js](#mint_nftjs)
141
141
3. Deploy the `MyProxyONFT721` contract to the BNB Testnet. [deploy_proxyonft_bnb.js](#deploy_proxyonft_bnbjs)
142
-
4. Deploy the `MyONFT721` contract, the receiver, to the IOTA EVM Testnet. [deploy_onft721_shimmer.js](#deploy_onft721_shimmerjs)
142
+
4. Deploy the `MyONFT721` contract, the receiver, to the IOTA EVM Testnet. [deploy_onft721_iota.js](#deploy_onft721_iotajs)
143
143
5. Configure the `MyProxyONFT721` contract to send NFTs to the `MyONFT721` contract. [set_trusted_remote_bnb.js](#set_trusted_remote_bnbjs)
144
-
6. Configure the `MyONFT721` contract to receive NFTs from the `MyProxyONFT721` contract. [set_trusted_remote_shimmer.js](#set_trusted_remote_shimmerjs)
145
-
7. Send an NFT from the BNB Testnet to the ShimmerEVM Testnet. [send_nft_bnb_to_shimmer.js](#send_nftjs)
144
+
6. Configure the `MyONFT721` contract to receive NFTs from the `MyProxyONFT721` contract. [set_trusted_remote_iota.js](#set_trusted_remote_iotajs)
145
+
7. Send an NFT from the BNB Testnet to the IotaEVM Testnet. [send_nft_bnb_to_iota.js](#send_nftjs)
146
146
8. List the received NFT on the NFT marketplace. [list_nft_marketplace.js](#create_listingjs)
147
147
148
148
:::note
@@ -193,18 +193,18 @@ You can run the script by executing the following command:
193
193
npx hardhat run scripts/deploy_proxyonft_bnb.js --network bnbTestnet
194
194
```
195
195
196
-
### deploy_onft721_shimmer.js
196
+
### deploy_onft721_iota.js
197
197
198
-
Deploy the `MyONFT721` contract to the Shimmer EVM Testnet and save its address in a file called `MyONFT721_Shimmer.txt` using the following script:
198
+
Deploy the `MyONFT721` contract to the Iota EVM Testnet and save its address in a file called `MyONFT721_Iota.txt` using the following script:
You can run the script by executing the following command:
205
205
206
206
```bash
207
-
npx hardhat run scripts/deploy_onft_shimmer.js --network shimmerevm-testnet
207
+
npx hardhat run scripts/deploy_onft_iota.js --network iotaevm-testnet
208
208
```
209
209
210
210
### set_trusted_remote_bnb.js
@@ -221,23 +221,23 @@ You can run the script by executing the following command:
221
221
npx hardhat run scripts/set_trusted_remote_bnb.js --network bnbTestnet
222
222
```
223
223
224
-
### set_trusted_remote_shimmer.js
224
+
### set_trusted_remote_iota.js
225
225
226
-
On the ShimmerEVM Testnet, call the `MyONFT721` contract to set the `MyProxyONFT721` contract as a trusted remote contract. This will allow the `MyONFT721` contract to receive NFTs from the `MyProxyONFT721` contract.
226
+
On the IotaEVM Testnet, call the `MyONFT721` contract to set the `MyProxyONFT721` contract as a trusted remote contract. This will allow the `MyONFT721` contract to receive NFTs from the `MyProxyONFT721` contract.
You can run the script by executing the following command:
233
233
234
234
```bash
235
-
npx hardhat run scripts/set_trusted_remote_shimmer.js --network shimmerevm-testnet
235
+
npx hardhat run scripts/set_trusted_remote_iota.js --network iotaevm-testnet
236
236
```
237
237
238
238
### set_min_dest_gas_bnb.js
239
239
240
-
On the BNB Testnet, call the `MyProxyONFT721` contract to set the minimum gas required to send an NFT to the ShimmerEVM Testnet. This is ensures that the sender has enough gas to complete the transfer.
240
+
On the BNB Testnet, call the `MyProxyONFT721` contract to set the minimum gas required to send an NFT to the IotaEVM Testnet. This is ensures that the sender has enough gas to complete the transfer.
@@ -249,23 +249,23 @@ You can run the script by executing the following command:
249
249
npx hardhat run scripts/set_min_dest_gas_bnb.js --network bnbTestnet
250
250
```
251
251
252
-
### set_min_dest_gas_shimmer.js
252
+
### set_min_dest_gas_iota.js
253
253
254
-
On the ShimmerEVM Testnet, call the `MyONFT721` contract to set the minimum gas required to receive an NFT from the BNB Testnet. This is necessary to ensure that the receiver has enough gas to complete the transfer.
254
+
On the IotaEVM Testnet, call the `MyONFT721` contract to set the minimum gas required to receive an NFT from the BNB Testnet. This is necessary to ensure that the receiver has enough gas to complete the transfer.
You can run the script by executing the following command:
261
261
262
262
```bash
263
-
npx hardhat run scripts/set_min_dest_gas_shimmer.js --network shimmerevm-testnet
263
+
npx hardhat run scripts/set_min_dest_gas_iota.js --network iotaevm-testnet
264
264
```
265
265
266
266
### send_nft.js
267
267
268
-
Finally, call the `MyProxyONFT721` contract on the BNB Testnet to send an NFT to the `MyONFT721` contract on the ShimmerEVM Testnet. This script approves the `MyProxyONFT721` contract to transfer the NFT and then sends the NFT to the `MyONFT721` contract.
268
+
Finally, call the `MyProxyONFT721` contract on the BNB Testnet to send an NFT to the `MyONFT721` contract on the IotaEVM Testnet. This script approves the `MyProxyONFT721` contract to transfer the NFT and then sends the NFT to the `MyONFT721` contract.
You can run the script by executing the following command:
309
309
310
310
```bash
311
-
npx hardhat run scripts/buy_item.js --network shimmerevm-testnet
311
+
npx hardhat run scripts/buy_item.js --network iotaevm-testnet
312
312
```
313
313
314
314
## Conclusion
315
315
316
-
In the second part of this tutorial, you manually bridged an NFT from the BNB Testnet to the ShimmerEVM Testnet and listed it on the NFT marketplace. The final part of the series will explore how to create a cross-chain swap contract that allows users to trade NFTs across chains.
316
+
In the second part of this tutorial, you manually bridged an NFT from the BNB Testnet to the IotaEVM Testnet and listed it on the NFT marketplace. The final part of the series will explore how to create a cross-chain swap contract that allows users to trade NFTs across chains.
0 commit comments