From 5c5ef85a12025eda087ce2579e82faf1530fa7f8 Mon Sep 17 00:00:00 2001
From: BenRey
Date: Thu, 3 Oct 2024 15:31:40 +0200
Subject: [PATCH] Move massa-web3 section
---
.../backend-usage-massa-web3.mdx | 2 +-
.../dapp-usage-massa-web3.mdx | 2 +-
.../intro.mdx} | 8 +--
.../utils.mdx | 0
.../wallet-provider.mdx | 0
.../contract-wrappers-intro.md | 0
.../contracts-wrappers/mrc20.md | 0
docs/build/{web3 => massa-web3}/intro.md | 0
docs/build/{web3 => massa-web3}/operation.md | 0
.../{web3 => massa-web3}/prerequisites.md | 0
docs/build/{web3 => massa-web3}/provider.md | 0
docs/build/{web3 => massa-web3}/wallet.md | 0
docs/build/wallet/intro.mdx | 2 +-
sidebars.js | 63 +++++++++----------
14 files changed, 35 insertions(+), 42 deletions(-)
rename docs/build/{massa-web3 => massa-web3-legacy}/backend-usage-massa-web3.mdx (95%)
rename docs/build/{massa-web3 => massa-web3-legacy}/dapp-usage-massa-web3.mdx (93%)
rename docs/build/{massa-web3/massa-web3.mdx => massa-web3-legacy/intro.mdx} (96%)
rename docs/build/{massa-web3 => massa-web3-legacy}/utils.mdx (100%)
rename docs/build/{massa-web3 => massa-web3-legacy}/wallet-provider.mdx (100%)
rename docs/build/{web3 => massa-web3}/contracts-wrappers/contract-wrappers-intro.md (100%)
rename docs/build/{web3 => massa-web3}/contracts-wrappers/mrc20.md (100%)
rename docs/build/{web3 => massa-web3}/intro.md (100%)
rename docs/build/{web3 => massa-web3}/operation.md (100%)
rename docs/build/{web3 => massa-web3}/prerequisites.md (100%)
rename docs/build/{web3 => massa-web3}/provider.md (100%)
rename docs/build/{web3 => massa-web3}/wallet.md (100%)
diff --git a/docs/build/massa-web3/backend-usage-massa-web3.mdx b/docs/build/massa-web3-legacy/backend-usage-massa-web3.mdx
similarity index 95%
rename from docs/build/massa-web3/backend-usage-massa-web3.mdx
rename to docs/build/massa-web3-legacy/backend-usage-massa-web3.mdx
index 60224cbce..c775068af 100644
--- a/docs/build/massa-web3/backend-usage-massa-web3.mdx
+++ b/docs/build/massa-web3-legacy/backend-usage-massa-web3.mdx
@@ -4,7 +4,7 @@ title: Backend Usage
---
If you need to interact with the Massa network for your backend, you can use the Massa Web3 API without the wallet provider.
-Initialization of the client is shown in the [introduction](/docs/build/massa-web3#without-wallet-provider)
+Initialization of the client is shown in the [introduction](/docs/build/massa-web3-legacy/intro.mdx#without-wallet-provider)
of the Massa Web3.
## Wallet & Account Management
diff --git a/docs/build/massa-web3/dapp-usage-massa-web3.mdx b/docs/build/massa-web3-legacy/dapp-usage-massa-web3.mdx
similarity index 93%
rename from docs/build/massa-web3/dapp-usage-massa-web3.mdx
rename to docs/build/massa-web3-legacy/dapp-usage-massa-web3.mdx
index c2ce05e1a..bbddc4ef5 100644
--- a/docs/build/massa-web3/dapp-usage-massa-web3.mdx
+++ b/docs/build/massa-web3-legacy/dapp-usage-massa-web3.mdx
@@ -13,7 +13,7 @@ The [age smart contract](https://github.com/massalabs/massa-sc-examples/blob/mai
This snippets shows how to call the smart contract and change the age value of Alice.
After creating a react app and setting up the Massa Web3 API as described in the
-[installation](/docs/build/massa-web3#installation) section, we can call the smart contract method `changeAge` like this:
+[installation](/docs/build/massa-web3-legacy/intro.mdx#installation) section, we can call the smart contract method `changeAge` like this:
```typescript
let args = new Args().addString(inputName).addU32(newAge);
diff --git a/docs/build/massa-web3/massa-web3.mdx b/docs/build/massa-web3-legacy/intro.mdx
similarity index 96%
rename from docs/build/massa-web3/massa-web3.mdx
rename to docs/build/massa-web3-legacy/intro.mdx
index 02d56b228..bbba35afe 100644
--- a/docs/build/massa-web3/massa-web3.mdx
+++ b/docs/build/massa-web3-legacy/intro.mdx
@@ -1,5 +1,5 @@
---
-id: massa-web3-main
+id: intro
title: Introduction
---
@@ -17,7 +17,7 @@ import TabItem from "@theme/TabItem";
- Thank you for your patience and continued interest in the Massa Web3 JS Library.
-We already started to add the new documentation for the upcoming version. You can find it [here](/docs/build/web3/intro).
+We already started to add the new documentation for the upcoming version. You can find it [here](/docs/build/massa-web3/intro).
:::
## What is Massa-Web3?
@@ -37,7 +37,7 @@ Massa-web3 will allow you to interact with the Massa blockchain in a variety of
- Fetch events from the blockchain
- And much more!
-In addition, the library includes a [collection of handy utility functions](/docs/build/massa-web3/massa-web3-utils) (e.g conversion between different units, etc).
+In addition, the library includes a [collection of handy utility functions](/docs/build/massa-web3-legacy/massa-web3-utils) (e.g conversion between different units, etc).
:::tip
For a quick integration of Massa within a web browser, consider reading our Web Frontend Integration Guide.
@@ -79,7 +79,7 @@ console.log("Massa Web3 ", window.massa);
## Initialization
-Some usage of massa-web3 require an account. This account can be either provided using [Wallet-provider](/docs/build/web3/provider#1-from-a-wallet) or directly in the code
+Some usage of massa-web3 require an account. This account can be either provided using [Wallet-provider](/docs/build/massa-web3/provider#1-from-a-wallet) or directly in the code
### With Wallet-provider
diff --git a/docs/build/massa-web3/utils.mdx b/docs/build/massa-web3-legacy/utils.mdx
similarity index 100%
rename from docs/build/massa-web3/utils.mdx
rename to docs/build/massa-web3-legacy/utils.mdx
diff --git a/docs/build/massa-web3/wallet-provider.mdx b/docs/build/massa-web3-legacy/wallet-provider.mdx
similarity index 100%
rename from docs/build/massa-web3/wallet-provider.mdx
rename to docs/build/massa-web3-legacy/wallet-provider.mdx
diff --git a/docs/build/web3/contracts-wrappers/contract-wrappers-intro.md b/docs/build/massa-web3/contracts-wrappers/contract-wrappers-intro.md
similarity index 100%
rename from docs/build/web3/contracts-wrappers/contract-wrappers-intro.md
rename to docs/build/massa-web3/contracts-wrappers/contract-wrappers-intro.md
diff --git a/docs/build/web3/contracts-wrappers/mrc20.md b/docs/build/massa-web3/contracts-wrappers/mrc20.md
similarity index 100%
rename from docs/build/web3/contracts-wrappers/mrc20.md
rename to docs/build/massa-web3/contracts-wrappers/mrc20.md
diff --git a/docs/build/web3/intro.md b/docs/build/massa-web3/intro.md
similarity index 100%
rename from docs/build/web3/intro.md
rename to docs/build/massa-web3/intro.md
diff --git a/docs/build/web3/operation.md b/docs/build/massa-web3/operation.md
similarity index 100%
rename from docs/build/web3/operation.md
rename to docs/build/massa-web3/operation.md
diff --git a/docs/build/web3/prerequisites.md b/docs/build/massa-web3/prerequisites.md
similarity index 100%
rename from docs/build/web3/prerequisites.md
rename to docs/build/massa-web3/prerequisites.md
diff --git a/docs/build/web3/provider.md b/docs/build/massa-web3/provider.md
similarity index 100%
rename from docs/build/web3/provider.md
rename to docs/build/massa-web3/provider.md
diff --git a/docs/build/web3/wallet.md b/docs/build/massa-web3/wallet.md
similarity index 100%
rename from docs/build/web3/wallet.md
rename to docs/build/massa-web3/wallet.md
diff --git a/docs/build/wallet/intro.mdx b/docs/build/wallet/intro.mdx
index 2ec5596e3..3ca05b134 100644
--- a/docs/build/wallet/intro.mdx
+++ b/docs/build/wallet/intro.mdx
@@ -18,4 +18,4 @@ Here is a list of available wallet providers for the Massa blockchain:
- [Community Wallets](/docs/build/wallet/community-wallets): Community wallets are developed and maintained by the Massa community. These wallets can vary in features and interfaces.
-- [Wallet Provider](/docs/build/web3/provider#1-from-a-wallet): Wallet Provider offers a secure, reliable, and versatile wallet that supports the Massa blockchain.
+- [Wallet Provider](/docs/build/massa-web3/provider#1-from-a-wallet): Wallet Provider offers a secure, reliable, and versatile wallet that supports the Massa blockchain.
diff --git a/sidebars.js b/sidebars.js
index 6f085de59..319030783 100644
--- a/sidebars.js
+++ b/sidebars.js
@@ -266,35 +266,34 @@ const sidebars = {
},
{
type: "category",
- label: "Web3 v2",
+ label: "Massa-Web3",
items: [
{
type: "doc",
- id: "build/web3/intro",
+ id: "build/massa-web3/intro",
label: "Web3 Libraries Introduction",
},
{
type: "doc",
label: "Prerequisites",
- id: "build/web3/prerequisites",
+ id: "build/massa-web3/prerequisites",
},
{
type: "doc",
- id: "build/web3/provider",
+ id: "build/massa-web3/provider",
label: "Provider",
},
{
type: "doc",
- id: "build/web3/wallet",
+ id: "build/massa-web3/wallet",
label: "Wallet",
},
{
type: "doc",
- id: "build/web3/operation",
+ id: "build/massa-web3/operation",
label: "Operation",
},
-
{
type: "category",
collapsible: false,
@@ -302,53 +301,54 @@ const sidebars = {
items: [
{
type: "doc",
- id: "build/web3/contracts-wrappers/contract-wrappers-intro",
+ id: "build/massa-web3/contracts-wrappers/contract-wrappers-intro",
label: "Introduction",
},
{
type: "doc",
- id: "build/web3/contracts-wrappers/mrc20",
+ id: "build/massa-web3/contracts-wrappers/mrc20",
label: "MRC20",
},
],
},
],
},
- {
- type: "html",
- value: "