Skip to content

Commit

Permalink
update marketplace.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MedovTimur committed Nov 25, 2024
1 parent 1cb96ba commit 22535fb
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docs/examples/NFTs/nft-marketplace/marketplace.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ pub struct Market {
The marketplace item has the following struct:
```rust title="nft-marketplace/app/src/utils.rs"
pub struct Item {
pub frozen: bool,
pub token_id: TokenId,
pub owner: ActorId,
pub ft_contract_id: Option<ContractId>,
Expand All @@ -95,12 +96,13 @@ pub struct Item {
pub offers: HashMap<(Option<ContractId>, Price), ActorId>,
}
```
- `token_id` is the ID of the NFT within its contract.
- `owner` - an NFT item owner;
- `ft_contract_id` - a contract of fungible tokens for which that item can be bought. If that field is `None` then the item can be sold for native Vara tokens;
- `price` - the item price. `None` field means that the item is not on the sale;
- `auction` - a field containing information on the current auction. `None` field means that there is no current auction on the item;
- `offers` - purchase offers made on that item;
- `frozen` is freeze indicator (required for asynchronous messages)
- `token_id` is the ID of the NFT within its contract
- `owner` - an NFT item owner
- `ft_contract_id` - a contract of fungible tokens for which that item can be bought. If that field is `None` then the item can be sold for native Vara tokens
- `price` - the item price. `None` field means that the item is not on the sale
- `auction` - a field containing information on the current auction. `None` field means that there is no current auction on the item
- `offers` - purchase offers made on that item

### Listing NFTs, changing the price or stopping the sale.

Expand All @@ -125,7 +127,7 @@ To list NFTs on the marketplace or modify the terms of sale, invoke the followin
}
```

### Listing NFTs, changing the price or stopping the sale.
### Withdrawal of an item from market

To withdraw an item from the marketplace and reclaim the associated token, invoke the following function:

Expand Down

0 comments on commit 22535fb

Please sign in to comment.