Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add tutorial sections blueprint for FT and NFT #114

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions docs/tutorial/fungible-token.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
id: fungible-token
sidebar_label: Fungible Token
---

# Fungible Token

Fungible Tokens are tokens that can be indifferently swaped with each other, like coins for example.
This is what is covered by standards such as ERC-20 in the ethereum ecosystem and is commonly known as
a "token" or "alt-coin" in the blockchain jargon.

Because of their fungible nature, fungible tokens are usually traded on fluid markets where they can be
bought and sold in bulks. They have a known price then, which is the price at which the last transaction
took place.

## Create a new Fungible Token smart contract
*give ref to github implementation, and explain again how to build and deploy*

## Register a new account
*provide massa-web3 examples on how to interact with the above sc*

## Check balance
*provide massa-web3 examples + explanations*

## Transfering tokens between accounts
*provide massa-web3 examples + explanations*






12 changes: 12 additions & 0 deletions docs/tutorial/home.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ import { FeatureList, Feature } from "@site/src/components/featurelist";
Here you will find various examples of decentralized apps built on Massa.

<FeatureList>
<Feature
url="./fungible-token"
title="Fungible Token"
content="Create a fungible token."
icon="💰"
/>
<Feature
url="./non-fungible-token"
title="Non Fungible Token"
content="Create a non fungible token."
icon="🖼️"
/>
<Feature
url="./trading-bot"
title="Trading Bot"
Expand Down
28 changes: 28 additions & 0 deletions docs/tutorial/non-fungible-token.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
---
id: non-fungible-token
sidebar_label: Non Fungible Token
---

# Non Fungible Token

Non Fungible Tokens are tokens that are individuated and can not be indifferently swaped with each other.
They are commonly known as "NFTs" and can be bound to digital or even real-life assets, to facilitate
trading them via the blockchain. Unlike Fungible Token, NFTs are not tradable on fluid markets, but instead
must be sold via dedicated platforms, with price established by the owner, or via auctions.

## Create a new NFT smart contract
*give ref to github implementation, and explain again how to build and deploy*

## Register a new account
*provide massa-web3 examples on how to interact with the above sc*

## Check NFTs owned by a given account
*provide massa-web3 examples + explanations*

## Mint an NFT
*provide massa-web3 examples + explanations*

## Transfering NFTs between accounts
*provide massa-web3 examples + explanations*


8 changes: 8 additions & 0 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ const sidebars = {
value:
"<span class='menu__link'><b><small> Tutorials </small></b></span>",
},
{
type: "doc",
id: "tutorial/fungible-token",
},
{
type: "doc",
id: "tutorial/non-fungible-token",
},
{
type: "doc",
id: "tutorial/trading-bot",
Expand Down