From 8c7d374dfbaef917f8d91e2eb8e449216cb4965a Mon Sep 17 00:00:00 2001 From: Dkwcs Date: Mon, 25 Nov 2024 10:30:48 +0200 Subject: [PATCH] dprint --- docs/examples/move/nft_marketplace/Move.toml | 1 - docs/examples/move/nft_marketplace/README.md | 13 +++++++++---- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/docs/examples/move/nft_marketplace/Move.toml b/docs/examples/move/nft_marketplace/Move.toml index 045bb6a0158..11388926dfb 100644 --- a/docs/examples/move/nft_marketplace/Move.toml +++ b/docs/examples/move/nft_marketplace/Move.toml @@ -33,4 +33,3 @@ nft_marketplace = "0x0" # The dev-addresses section allows overwriting named addresses for the `--test` # and `--dev` modes. # alice = "0xB0B" - diff --git a/docs/examples/move/nft_marketplace/README.md b/docs/examples/move/nft_marketplace/README.md index b0efd25e3ad..de2c1383061 100644 --- a/docs/examples/move/nft_marketplace/README.md +++ b/docs/examples/move/nft_marketplace/README.md @@ -4,13 +4,14 @@ The `nft_marketplace.move` module provides a straightforward implementation of a The `item_for_market.move` contains mocked item data for use within the marketplace. The `rental_extension.move` is an extension adds functionality to enable item rentals. - ## Steps to Use the Marketplace ### 1. Connect to the Network + Connect to the IOTA network (e.g., using a faucet to obtain tokens). ### 2. Install Kiosk + Run the following command to install the Kiosk module: ```bash @@ -46,6 +47,7 @@ After creation, export the following variables: ### 5. Create a Transfer Policy Set up a transfer policy for the created item using the command: + ```bash iota client call \ --package 0x2 \ @@ -57,7 +59,9 @@ iota client call \ ``` ### 6. Publish marketplac extension + Publish the nft_marketplace.move module: + ```bash iota client publish` ``` @@ -65,6 +69,7 @@ iota client publish` ### 7. Install the Extension on the Kiosk Install the marketplace extension on the created kiosk using the command: + ```bash iota client call \ --package $MARKETPLACE_ID \ @@ -76,6 +81,7 @@ iota client call \ ### 8. Set a Price for the Item Set the price for the item: + ```bash iota client call \ --package $MARKETPLACE_ID \ @@ -83,7 +89,6 @@ iota client call \ --function set_price \ --args $KIOSK_ID $KIOSK_CAP_ID $ITEM_ID 50000 \ --type-args "&ITEM_FOR_MARKET_PACKAGE_ID::market_items::Jeans" - ``` ### 9.(Optional) Set Royalties @@ -102,6 +107,7 @@ iota client call \ ### 10. Buy an Item: To purchase the item: + ```bash iota client call \ --package $MARKETPLACE \ @@ -109,5 +115,4 @@ iota client call \ --function buy_item \ --args $KIOSK_ID $ITEM_TRANS_POLICY_ID &ITEM_ID $COIN_ID \ --type-args "ITEM_FOR_MARKET_PACKAGE_ID::market_items::Jeans" - -``` \ No newline at end of file +```