Skip to content

Commit

Permalink
Merge pull request #354 from massalabs/organize-massa-web3
Browse files Browse the repository at this point in the history
Move massa-web3 section
  • Loading branch information
Ben-Rey authored Oct 3, 2024
2 parents aca3627 + 5c5ef85 commit ad48603
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
id: massa-web3-main
id: intro
title: Introduction
---

Expand All @@ -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?
Expand All @@ -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.
Expand Down Expand Up @@ -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

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/build/wallet/intro.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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.
63 changes: 28 additions & 35 deletions sidebars.js
Original file line number Diff line number Diff line change
Expand Up @@ -266,89 +266,89 @@ 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,
label: "Contracts-wrappers",
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: "<hr/>",
},
{
type: "html",
value:
"<span class='menu__link'><b><small> Developer Tools </small></b></span>",
},
{
type: "category",
label: "Massa-Web3 (legacy)",
items: [
{
type: "doc",
id: "build/massa-web3/massa-web3-main",
id: "build/massa-web3-legacy/intro",
},
{
type: "doc",
id: "build/massa-web3/dapp-usage-massa-web3",
id: "build/massa-web3-legacy/dapp-usage-massa-web3",
},
{
type: "doc",
id: "build/massa-web3/backend-usage-massa-web3",
id: "build/massa-web3-legacy/backend-usage-massa-web3",
},
{
type: "doc",
id: "build/massa-web3/wallet-provider",
id: "build/massa-web3-legacy/wallet-provider",
},
{
type: "doc",
id: "build/massa-web3/massa-web3-utils",
id: "build/massa-web3-legacy/massa-web3-utils",
},
],
},
{
type: "html",
value: "<hr/>",
},
{
type: "html",
value:
"<span class='menu__link'><b><small> Developer Tools </small></b></span>",
},

{
type: "category",
label: "Wallets",
Expand Down Expand Up @@ -509,35 +509,28 @@ const sidebars = {
type: "category",
label: "Getting Started",
collapsed: false,
items: [
"deweb/getting-started/overview",
],
items: ["deweb/getting-started/overview"],
},
{
type: "category",
label: "Acccessing the DeWeb locally",
collapsed: false,
items: [
"deweb/local-server-config/setup-local-server",
"deweb/local-server-config/server-config"
"deweb/local-server-config/setup-local-server",
"deweb/local-server-config/server-config",
],
},
{
type: "category",
label: "Becoming a provider",
collapsed: false,
items: [
"deweb/provider/setup-public-instance",
],
items: ["deweb/provider/setup-public-instance"],
},
{
type: "category",
label: "Uploading to the DeWeb",
collapsed: false,
items: [
"deweb/upload/cli",
"deweb/upload/mns",
],
items: ["deweb/upload/cli", "deweb/upload/mns"],
},
// {
// type: "doc",
Expand Down

0 comments on commit ad48603

Please sign in to comment.