Skip to content

Commit 91a4359

Browse files
committed
fix links
1 parent 74b3332 commit 91a4359

4 files changed

Lines changed: 15 additions & 14 deletions

File tree

docs/build/hello-world-dapp.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ Here we are importing the necessary functions from the Massa AssemblyScript SDK.
124124

125125
:::info
126126
If you are familiar with Solidity smart contracts, you will soon notice that some object provided by Massa AssemblyScript SDK are very similar to the ones provided by the Solidity SDK. For example, the `Context` object is very similar to the `msg` object in Solidity. It exposes methods such as `Context.transferredCoins()` which would translate to `msg.value` in Solidity. `Context.caller()` would return the address of the function caller like `msg.sender` in solidity. Similarly, the `generateEvent` function is very similar to the `emit` function in Solidity, etc.
127-
You can learn more about the Massa AssemblyScript SDK [here](docs/build/smart-contract/as-sdk.md).
127+
You can learn more about the Massa AssemblyScript SDK [here](./smart-contract/as-sdk.md).
128128
:::
129129

130130
- **The constructor function**
@@ -146,19 +146,19 @@ Storage.set("greeting", "Hello, World!");
146146
This line sets the greeting message in the contract storage. The `Storage.set()` function takes two parameters: the key and the value. The key is a string that will be used to retrieve the value from the storage. The value can be of any type. In this example, we are using a string.
147147
148148
:::info
149-
In Massa, if you want some data to be persistent on the blockchain, you need to store it in the contract storage. If you are familiar with web development, you can think of the storage as the database of your application. The contract storage is a key-value store that can be used to store simple objects such as our "Hello, World!" string, or more complex objects such as serializable object arrays. Then the data can be retrieved from the storage using methods such has `Storage.get()` or `Storage.has()` provided by the SDK. You can learn more about how to handle the storage with Massa AS-SDK [here](docs/build/smart-contract/as-sdk.md#storage).
149+
In Massa, if you want some data to be persistent on the blockchain, you need to store it in the contract storage. If you are familiar with web development, you can think of the storage as the database of your application. The contract storage is a key-value store that can be used to store simple objects such as our "Hello, World!" string, or more complex objects such as serializable object arrays. Then the data can be retrieved from the storage using methods such has `Storage.get()` or `Storage.has()` provided by the SDK. You can learn more about how to handle the storage with Massa AS-SDK [here](/docs/build/smart-contract/as-sdk.md#storage).
150150
:::
151151
152152
:::info
153-
In Massa, when writing to the persistent storage a.k.a the ledger, you need to pay for the storage space you will be using. The more data you store, the more you will have to pay. Similarly when you free-up some space from the ledger, you recover the amount of coins you paid to allocate the space. The price of storage is a fixed amount of Massa coins for each byte of data (0.001 MAS per byte). You can learn more about storage cost in Massa smart contracts [here](docs/learn/storage-costs.mdx).
153+
In Massa, when writing to the persistent storage a.k.a the ledger, you need to pay for the storage space you will be using. The more data you store, the more you will have to pay. Similarly when you free-up some space from the ledger, you recover the amount of coins you paid to allocate the space. The price of storage is a fixed amount of Massa coins for each byte of data (0.001 MAS per byte). You can learn more about storage cost in Massa smart contracts [here](/docs/learn/storage-costs.mdx).
154154
:::
155155
156156
- **Emitting an event**
157157
158158
```tsx
159159
generateEvent(`Greeting has been set`);
160160
```
161-
Here, we are emitting an event to notify that the greeting message has been set. Events are a great way to notify the front ends of a dApp that something has happened. They are similar to events in Solidity. You can learn more about events [here](docs/build/smart-contract/as-sdk.md#utilities).
161+
Here, we are emitting an event to notify that the greeting message has been set. Events are a great way to notify the front ends of a dApp that something has happened. They are similar to events in Solidity. You can learn more about events [here](/docs/build/smart-contract/as-sdk.md#utilities).
162162
163163
Now that we have written our smart contract, let's deploy it to the blockchain.
164164

docusaurus.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const config = {
5656
// Please change this to your repo.
5757
// Remove this to remove the "edit this page" links.
5858
editUrl: "https://github.com/massalabs/docu-dev/tree/main/",
59+
editLocalizedFiles: true,
5960
showLastUpdateAuthor: true,
6061
showLastUpdateTime: true,
6162
remarkPlugins: [math, remarkGridTables],

i18n/fr/docusaurus-plugin-content-docs/current/build/hello-world-dapp.mdx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Before we start, here's what you'll need:
3939
You'll need a funded Massa wallet and your secret key before you deploy your smart contract to the Massa blockchain.
4040

4141
:::info
42-
Not sure how to create and fund a Massa wallet? Check our guide [here](/docs/build/wallet/intro).
42+
Not sure how to create and fund a Massa wallet? Check our guide [here](./wallet/intro).
4343
:::
4444

4545
### Setting up Your Project
@@ -124,7 +124,7 @@ Here we are importing the necessary functions from the Massa AssemblyScript SDK.
124124

125125
:::info
126126
If you are familiar with Solidity smart contracts, you will soon notice that some object provided by Massa AssemblyScript SDK are very similar to the ones provided by the Solidity SDK. For example, the `Context` object is very similar to the `msg` object in Solidity. It exposes methods such as `Context.transferredCoins()` which would translate to `msg.value` in Solidity. `Context.caller()` would return the address of the function caller like `msg.sender` in solidity. Similarly, the `generateEvent` function is very similar to the `emit` function in Solidity, etc.
127-
You can learn more about the Massa AssemblyScript SDK [here](docs/build/smart-contract/as-sdk.md).
127+
You can learn more about the Massa AssemblyScript SDK [here](./smart-contract/as-sdk.md).
128128
:::
129129

130130
- **The constructor function**
@@ -146,19 +146,19 @@ Storage.set("greeting", "Hello, World!");
146146
This line sets the greeting message in the contract storage. The `Storage.set()` function takes two parameters: the key and the value. The key is a string that will be used to retrieve the value from the storage. The value can be of any type. In this example, we are using a string.
147147
148148
:::info
149-
In Massa, if you want some data to be persistent on the blockchain, you need to store it in the contract storage. If you are familiar with web development, you can think of the storage as the database of your application. The contract storage is a key-value store that can be used to store simple objects such as our "Hello, World!" string, or more complex objects such as serializable object arrays. Then the data can be retrieved from the storage using methods such has `Storage.get()` or `Storage.has()` provided by the SDK. You can learn more about how to handle the storage with Massa AS-SDK [here](docs/build/smart-contract/as-sdk.md#storage).
149+
In Massa, if you want some data to be persistent on the blockchain, you need to store it in the contract storage. If you are familiar with web development, you can think of the storage as the database of your application. The contract storage is a key-value store that can be used to store simple objects such as our "Hello, World!" string, or more complex objects such as serializable object arrays. Then the data can be retrieved from the storage using methods such has `Storage.get()` or `Storage.has()` provided by the SDK. You can learn more about how to handle the storage with Massa AS-SDK [here](./smart-contract/as-sdk.md#storage).
150150
:::
151151
152152
:::info
153-
In Massa, when writing to the persistent storage a.k.a the ledger, you need to pay for the storage space you will be using. The more data you store, the more you will have to pay. Similarly when you free-up some space from the ledger, you recover the amount of coins you paid to allocate the space. The price of storage is a fixed amount of Massa coins for each byte of data (0.001 MAS per byte). You can learn more about storage cost in Massa smart contracts [here](docs/learn/storage-costs.mdx).
153+
In Massa, when writing to the persistent storage a.k.a the ledger, you need to pay for the storage space you will be using. The more data you store, the more you will have to pay. Similarly when you free-up some space from the ledger, you recover the amount of coins you paid to allocate the space. The price of storage is a fixed amount of Massa coins for each byte of data (0.001 MAS per byte). You can learn more about storage cost in Massa smart contracts [here](../learn/storage-costs.mdx).
154154
:::
155155
156156
- **Emitting an event**
157157
158158
```tsx
159159
generateEvent(`Greeting has been set`);
160160
```
161-
Here, we are emitting an event to notify that the greeting message has been set. Events are a great way to notify the front ends of a dApp that something has happened. They are similar to events in Solidity. You can learn more about events [here](docs/build/smart-contract/as-sdk.md#utilities).
161+
Here, we are emitting an event to notify that the greeting message has been set. Events are a great way to notify the front ends of a dApp that something has happened. They are similar to events in Solidity. You can learn more about events [here](./smart-contract/as-sdk.md#utilities).
162162
163163
Now that we have written our smart contract, let's deploy it to the blockchain.
164164
@@ -177,7 +177,7 @@ This command compiles your `main.ts` contract into a `main.wasm` file generated
177177
#### Step 3: Deploy the Smart Contract
178178
179179
Now that your smart contract is compiled and ready, let's deploy it to the Massa blockchain.
180-
You first need some funds in your wallet that you can request from the [faucet](/docs/build/networks-faucets/public-networks).
180+
You first need some funds in your wallet that you can request from the [faucet](./networks-faucets/public-networks).
181181
You can then run the following command in your project directory:
182182
183183
```bash
@@ -359,7 +359,7 @@ We are using the `DefaultProviderUrls.BUILDNET` constant as our provider URL. Th
359359
The boolean is a flag that indicates whether or not we want to provide an wallet account to sign transactions. Here it is set to false because we are not going to sign any transactions. Finally, we are setting the client object to the `web3client` state variable using the `setWeb3client` function, so that the web3 client is available to the rest of our application.
360360
361361
:::info
362-
The buildnet is a test network that is used to test smart contracts before deploying them to the mainnet. It is similar to the Ethereum Sepolia network. You can learn more about Massa networks [here](/docs/build/networks-faucets/public-networks).
362+
The buildnet is a test network that is used to test smart contracts before deploying them to the mainnet. It is similar to the Ethereum Sepolia network. You can learn more about Massa networks [here](./networks-faucets/public-networks).
363363
:::
364364
365365
@@ -415,5 +415,5 @@ Congratulations on writing and testing your first dApp using the Massa blockchai
415415
416416
There's always more to learn. To continue exploring and expanding your knowledge, you can:
417417
418-
- Review more detailed guides on [smart contract development](/docs/build/smart-contract/intro).
419-
- Check out more [complex examples](/docs/tutorial/home) of dApps built on Massa.
418+
- Review more detailed guides on [smart contract development](./smart-contract/intro).
419+
- Check out more [complex examples](../tutorial/home) of dApps built on Massa.

i18n/fr/docusaurus-plugin-content-docs/current/massaStation/hello-world-plugin.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ any language, be more web2 or web3-oriented, and can be as simple or complex as
1414
we are going to build the simplest of the programs; a "Hello, World!" *Massa Station* plugin.
1515

1616
:::info
17-
If you don't know what are Massa Station and Massa Station Plugins, you can read this quick introduction [here](/docs/massaStation/home.mdx).
17+
If you don't know what are Massa Station and Massa Station Plugins, you can read this quick introduction [here](/docs/massaStation/home).
1818
:::
1919

2020
## What are we going to do?

0 commit comments

Comments
 (0)