From 9dd137dceb33167923f16d7a46b0bd1010834b11 Mon Sep 17 00:00:00 2001 From: JC Baillie Date: Tue, 11 Jul 2023 14:18:08 +0400 Subject: [PATCH 1/3] add tutorial sections blueprint for FT and NFT --- docs/tutorial/fungible-token.mdx | 32 ++++++++++++++++++++++++++++ docs/tutorial/home.mdx | 12 +++++++++++ docs/tutorial/non-fungible-token.mdx | 28 ++++++++++++++++++++++++ sidebars.js | 8 +++++++ 4 files changed, 80 insertions(+) create mode 100644 docs/tutorial/fungible-token.mdx create mode 100644 docs/tutorial/non-fungible-token.mdx diff --git a/docs/tutorial/fungible-token.mdx b/docs/tutorial/fungible-token.mdx new file mode 100644 index 000000000..2110d99ae --- /dev/null +++ b/docs/tutorial/fungible-token.mdx @@ -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 command line instructions on how to interact with the above sc* + +# Check balance +*provide cli + explanations* + +# Transfering tokens between accounts +*provide cli + explanations* + + + + + + diff --git a/docs/tutorial/home.mdx b/docs/tutorial/home.mdx index 5707f8ccd..5f6764e06 100644 --- a/docs/tutorial/home.mdx +++ b/docs/tutorial/home.mdx @@ -10,6 +10,18 @@ import { FeatureList, Feature } from "@site/src/components/featurelist"; Here you will find various examples of decentralized apps built on Massa. + + Tutorials ", }, + { + type: "doc", + id: "tutorial/fungible-token", + }, + { + type: "doc", + id: "tutorial/non-fungible-token", + }, { type: "doc", id: "tutorial/trading-bot", From 80566ab3a33dfc5a34fd71dde8de95b49483cf4d Mon Sep 17 00:00:00 2001 From: JC Baillie Date: Tue, 11 Jul 2023 19:13:31 +0400 Subject: [PATCH 2/3] add massa-web3 request for doc in NT/NFT tuto, change icons --- docs/tutorial/fungible-token.mdx | 6 +++--- docs/tutorial/home.mdx | 4 ++-- docs/tutorial/non-fungible-token.mdx | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/docs/tutorial/fungible-token.mdx b/docs/tutorial/fungible-token.mdx index 2110d99ae..91c9e9f07 100644 --- a/docs/tutorial/fungible-token.mdx +++ b/docs/tutorial/fungible-token.mdx @@ -17,13 +17,13 @@ took place. *give ref to github implementation, and explain again how to build and deploy* # Register a new account -*provide command line instructions on how to interact with the above sc* +*provide command line instructions and massa-web3 examples on how to interact with the above sc* # Check balance -*provide cli + explanations* +*provide cli/massa-web3 + explanations* # Transfering tokens between accounts -*provide cli + explanations* +*provide cli/massa-web3 + explanations* diff --git a/docs/tutorial/home.mdx b/docs/tutorial/home.mdx index 5f6764e06..342a431ce 100644 --- a/docs/tutorial/home.mdx +++ b/docs/tutorial/home.mdx @@ -14,13 +14,13 @@ Here you will find various examples of decentralized apps built on Massa. url="./fungible-token" title="Fungible Token" content="Create a fungible token." - icon="🤖" + icon="💰" /> Date: Wed, 12 Jul 2023 06:18:43 +0400 Subject: [PATCH 3/3] remove ref to cli, add subsections --- docs/tutorial/fungible-token.mdx | 14 +++++++------- docs/tutorial/non-fungible-token.mdx | 18 +++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/docs/tutorial/fungible-token.mdx b/docs/tutorial/fungible-token.mdx index 91c9e9f07..f250f45e6 100644 --- a/docs/tutorial/fungible-token.mdx +++ b/docs/tutorial/fungible-token.mdx @@ -13,17 +13,17 @@ Because of their fungible nature, fungible tokens are usually traded on fluid ma 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 +## 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 command line instructions and massa-web3 examples on how to interact with the above sc* +## Register a new account +*provide massa-web3 examples on how to interact with the above sc* -# Check balance -*provide cli/massa-web3 + explanations* +## Check balance +*provide massa-web3 examples + explanations* -# Transfering tokens between accounts -*provide cli/massa-web3 + explanations* +## Transfering tokens between accounts +*provide massa-web3 examples + explanations* diff --git a/docs/tutorial/non-fungible-token.mdx b/docs/tutorial/non-fungible-token.mdx index 77c6b2b21..dbe6bc147 100644 --- a/docs/tutorial/non-fungible-token.mdx +++ b/docs/tutorial/non-fungible-token.mdx @@ -10,19 +10,19 @@ They are commonly known as "NFTs" and can be bound to digital or even real-life 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 +## Create a new NFT smart contract *give ref to github implementation, and explain again how to build and deploy* -# Register a new account -*provide command line instructions and massa-web3 examples on how to interact with the above sc* +## Register a new account +*provide massa-web3 examples on how to interact with the above sc* -# Check NFTs owned by a given account -*provide cli/massa-web3 + explanations* +## Check NFTs owned by a given account +*provide massa-web3 examples + explanations* -# Mint an NFT -*provide cli/massa-web3 + explanations* +## Mint an NFT +*provide massa-web3 examples + explanations* -# Transfering NFTs between accounts -*provide cli/massa-web3 + explanations* +## Transfering NFTs between accounts +*provide massa-web3 examples + explanations*