Skip to content

Commit

Permalink
feat(marmalade-docs): fix code + images + links
Browse files Browse the repository at this point in the history
  • Loading branch information
realdreamer committed Aug 9, 2023
1 parent 2252136 commit 8bc623a
Show file tree
Hide file tree
Showing 18 changed files with 22 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Versatile tools that empower developers to innovate
menu: Developer tools
label: Developer tools
order: 8
layout: normal
layout: full
---

# Developer tools
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ Once you find the contracts, click on "View" to proceed.
The first step in interacting with the Marmalade v2 contracts is to create a
token ID. You can do this by calling the `create-token-id` function.

![Screenshot Placeholder](img/token-id-02.png)
![Screenshot Placeholder](/assets/marmalade/token-id-02.png)

You can find this function on the left-hand side of the screen. Click on "Call"
to bring up a popup where you can enter the token details.
Expand Down Expand Up @@ -85,11 +85,11 @@ documentation on GitHub.
Next, go to the Configuration tab. Paste your account name and change the gas
settings to match the screenshot below.

![Screenshot Placeholder](img/token-id-03.png)
![Screenshot Placeholder](/assets/marmalade/token-id-03.png)

On the Sign tab, choose your keyset from the Grant Capabilities dropdown.

![Screenshot Placeholder](img/token-id-04.png)
![Screenshot Placeholder](/assets/marmalade/token-id-04.png)

Finally, if there are no errors on the Preview screen, submit your transaction.
You will need to wait for the transaction to go through in order to receive the
Expand All @@ -100,7 +100,7 @@ token ID that you created.
After creating a token ID, the next step is to create a token. You can do this
by calling the `create-token` function.

![Screenshot Placeholder](img/create-token-01.png)
![Screenshot Placeholder](/assets/marmalade/create-token-01.png)

You can find this function in the same menu as the `create-token-id` function.
Click on "Call" to bring up a similar popup as before. In the Parameters screen,
Expand Down Expand Up @@ -135,7 +135,7 @@ enter `nfp-mint-guard` and hit "Create". Once this is created, you will see your
keysets below it. Please tick the keyset that matches the account we have been
using for this entire process.

![Screenshot Placeholder for Gas Settings](img/create-token-02.png)
![Screenshot Placeholder for Gas Settings](/assets/marmalade/create-token-02.png)

Then, you can go to the Sign tab and follow the same steps as before.

Expand All @@ -147,7 +147,7 @@ errors. Wait for the transaction to finish. The server result should be true.
The final step is to mint the token. You can do this by calling the `mint`
function.

![Screenshot Placeholder](img/mint-token-01.png)
![Screenshot Placeholder](/assets/marmalade/mint-token-01.png)

You can find this function in the same menu as the previous functions. Click on
"Call" to bring up a popup. In the Parameters screen, you'll need to enter the
Expand Down Expand Up @@ -194,4 +194,4 @@ quotes. For example:
(n_fa5008565e171dca599c6accfd71d6006ddecce0.non-fungible-policy-v1.MINT "myTokenAccount")
```

![Screenshot Placeholder](img/mint-token-02.png)
![Screenshot Placeholder](/assets/marmalade/mint-token-02.png)
10 changes: 6 additions & 4 deletions packages/apps/docs/src/pages/docs/marmalade/guides/index.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
---
title: The Policy Manager
description: The Power of the Policy Manager in Marmalade V2
menu: The Policy Manager
label: The Policy Manager
title: Guides
description: Marmalade Guide
menu: Guides
label: Guides
order: 7
layout: normal
---

## Guides
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,12 @@ To get a sense of the Guard Policy, let's navigate through the journey of an
NFT - from creation to secure transactions. For illustrative purposes, we can
refer to a sample guard configuration:

```code
'mint-guard': {"keys": ["mint"], "pred": "keys-all"},
'burn-guard': {"keys": ["burn"], "pred": "keys-all"},
'sale-guard': {"keys": ["sale"], "pred": "keys-all"},
'transfer-guard': {"keys": ["transfer"], "pred": "keys-all"}
```

**Token Creation and Initialization**: As the owner of a unique digital asset,
your journey begins with the creation of your NFT. While defining the creation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,14 @@ To put this into context, let's walk through a simplified journey of an artwork
– from creation to sale – in the digital art space. And let's use a sample
royalty specification as an example:

```code
"royalty_spec": {
"fungible": "coin",
"creator": "k:creator",
"creator-guard": {"keys": ["creator"], "pred": "keys-all"},
"royalty-rate": 0.05
"fungible": "coin",
"creator": "k:creator",
"creator-guard": {"keys": ["creator"], "pred": "keys-all"},
"royalty-rate": 0.05
}
```

**Creation of Artwork**: As an artist, your creative journey commences with the
creation of a unique piece of digital art, materialising as an NFT (Non-Fungible
Expand Down

0 comments on commit 8bc623a

Please sign in to comment.