Skip to content

Commit

Permalink
Merge pull request #1404 from ipopescu/1299_NFT_tutorial
Browse files Browse the repository at this point in the history
1299 - A full NFT workflow
  • Loading branch information
ipopescu authored Mar 20, 2024
2 parents 9a19f81 + 4c9215d commit c1b6d1f
Show file tree
Hide file tree
Showing 11 changed files with 2,539 additions and 236 deletions.
17 changes: 16 additions & 1 deletion config/sidebar.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,22 @@ module.exports = {
},
items: [
"resources/tokens/cep78/modalities",
"resources/tokens/cep78/using-casper-client",
{
type: "category",
label: "On-chain Installation",
collapsible: true,
collapsed: true,
link: {
type: "doc",
id: "resources/tokens/cep78/using-casper-client/quickstart-guide",
},
items: [
"resources/tokens/cep78/using-casper-client/full-installation-tutorial",
"resources/tokens/cep78/using-casper-client/interacting-with-NFTs",
"resources/tokens/cep78/using-casper-client/querying-NFTs",
"resources/tokens/cep78/using-casper-client/testing-NFTs",
],
},
"resources/tokens/cep78/reverse-lookup",
"resources/tokens/cep78/js-tutorial",
],
Expand Down
2 changes: 1 addition & 1 deletion source/docs/casper/concepts/dictionaries.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The [Casper CEP-78 Enhanced NFT Standard](https://github.com/casper-ecosystem/ce

Simple examples for dictionary use within CEP-78 include the [`approve`](https://github.com/casper-ecosystem/cep-78-enhanced-nft/blob/dev/contract/src/main.rs#L772) dictionary.

More advanced dictionary functionality can be found in the [CEP-78 Page System](https://github.com/casper-ecosystem/cep-78-enhanced-nft#the-cep-78-page-system), which uses a series of dictionaries to keep track of token ownership. These dictionaries form the basis of the reverse lookup mode, which allows users to easily view a list of owned tokens by account or contract.
More advanced dictionary functionality can be found in the [CEP-78 Page System](https://github.com/casper-ecosystem/cep-78-enhanced-nft/blob/dev/docs/reverse-lookup.md#the-cep-78-page-system), which uses a series of dictionaries to keep track of token ownership. These dictionaries form the basis of the reverse lookup mode, which allows users to easily view a list of owned tokens by account or contract.

## Creating Dictionaries in a Contract's Context

Expand Down
6 changes: 4 additions & 2 deletions source/docs/casper/resources/tokens/cep78/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ The pre-built Wasm for the contract and all other utility session code can be fo

The `call` method will install the contract with the necessary entrypoints and call the `init()` entrypoint, which allows the contract to self-initialize and set up the necessary state variables for operation.

The [Full Installation Tutorial](./using-casper-client/full-installation-tutorial.md) provides a step-by-step workflow.

### Required Runtime Arguments

The following are the required runtime arguments that must be passed to the installer session code to correctly install the NFT contract. For more information on the modalities that these arguments set, please refer to the [Modalities](./modalities.md) documentation.
Expand Down Expand Up @@ -46,7 +48,7 @@ The following are the optional parameters that can be passed in at the time of i

#### Example deploy

The following is an example of installing the NFT contract via a deploy using the Rust CLI Casper client. You can find more examples [here](./using-casper-client.md).
The following is an example of installing the NFT contract via a deploy using the Rust CLI Casper client. You can find more examples [here](./using-casper-client/full-installation-tutorial.md).

```bash
casper-client put-deploy -n http://65.108.0.148:7777/rpc --chain-name "casper-test" --payment-amount 500000000000 -k keys/secret_key.pem --session-path contract/target/wasm32-unknown-unknown/release/contract.wasm \
Expand Down Expand Up @@ -89,7 +91,7 @@ Upgrade to v1.1.1 using a [Standard NamedKey Convention](https://github.com/casp

## Installing and Interacting with the Contract using the Rust Casper Client

You can find instructions on installing an instance of the CEP-78 contract using the Rust CLI Casper client [here](./using-casper-client.md).
You can find instructions on installing an instance of the CEP-78 contract using the Rust CLI Casper client [here](./using-casper-client/full-installation-tutorial.md).

## Test Suite and Specification

Expand Down
231 changes: 0 additions & 231 deletions source/docs/casper/resources/tokens/cep78/using-casper-client.md

This file was deleted.

Loading

0 comments on commit c1b6d1f

Please sign in to comment.