Skip to content

Commit 07c5690

Browse files
Jorge Soaresgitbook-bot
authored andcommitted
GITBOOK-23: Formatting the tutorial
1 parent 8e64043 commit 07c5690

5 files changed

Lines changed: 15 additions & 11 deletions

File tree

SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
* [Overview](README.md)
44
* [Quickstarts](quickstarts/README.md)
55
* [Deploy a subnet](quickstarts/deploy-a-subnet.md)
6-
* [Deploy smart contracts to Mycelium](quickstarts/deploy-smart-contracts-to-mycelium.md)
6+
* [Deploy smart contract to Mycelium](quickstarts/deploy-smart-contract-to-mycelium.md)
77
* [Key Concepts](key-concepts/README.md)
88
* [Architecture](key-concepts/architecture.md)
99
* [Subnets](key-concepts/subnets.md)

key-concepts/subnets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ To ensure security of a subnet, child subnets within a single hierarchy treee, p
2525
## Subnet usage
2626

2727
* **Deploying and operating a subnet.** This is for developers who want to operate their own private or public subnet, as they can be temporarily deployed and closed down, to increase network throughput as needed. See the quickstart tutorial [here](../quickstarts/deploy-a-subnet.md).
28-
* **Deploying smart contracts to an existing subnet.** This is for developers who want to build dApps on top of an existings subnets. See the quickstart tutorial [here](../quickstarts/deploy-smart-contracts-to-mycelium.md).
28+
* **Deploying smart contracts to an existing subnet.** This is for developers who want to build dApps on top of an existings subnets. See the quickstart tutorial [here](../quickstarts/deploy-smart-contract-to-mycelium.md).
2929
* For more on how fees work with IPC subnets, see [here](fees.md).

quickstarts/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ description: Start building the basics on IPC.
77
This section covers quickstarts to get started on core functionalities of IPC. We will cover:
88

99
1. [How to deploy a subnet](deploy-a-subnet.md). This is for developers who want to operate their own private subnet. 
10-
2. [How to deploy smart contracts to a subnet](deploy-smart-contracts-to-mycelium.md). This is for developers who want to build dApps on top of an existing subnet. 
10+
2. [How to deploy smart contracts to a subnet](deploy-smart-contract-to-mycelium.md). This is for developers who want to build dApps on top of an existing subnet. 

quickstarts/deploy-a-subnet.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Before delving into this tutorial, you should have a [basic understanding of IPC](../). 
44

5-
Please note that you do not need to deploy your own subnet, in order to build on one. For deploying smart contracts to an existing subnet, check out [the next quickstart](deploy-smart-contracts-to-mycelium.md).
5+
Please note that you do not need to deploy your own subnet, in order to build on one. For deploying smart contracts to an existing subnet, check out [the next quickstart](deploy-smart-contract-to-mycelium.md).
66

77
In this tutorial, we will guide you through the process of spinning up your own IPC subnet validator node and anchoring it to the [Filecoin Calibration testnet](../reference/networks.md). We will use a repository with a pre-built docker image to simplify deployment of the IPC tooling. Steps include:
88

quickstarts/deploy-smart-contracts-to-mycelium.md renamed to quickstarts/deploy-smart-contract-to-mycelium.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# Deploy smart contracts to Mycelium
1+
# Deploy smart contract to Mycelium
22

33
Before delving into this tutorial, you should have a [basic understanding of IPC](../) and [subnets](../key-concepts/subnets.md). You may want to familiarize yourself with the fundamentals of setting up an IPC subnet, in the [previous quickstart](deploy-a-subnet.md). 
44

55
In this tutorial, we will guide you through the simple process of connecting to the Mycelium Calibration testnet and deploying smart contracts on it. We will use the ERC20 contract as an example to illustrate the steps, including:
66

77
* Connect to the Mycelium Calibration
88
* Fund your address on the Mycelium Calibration
9-
* Deploy a ERC20 contract on the Mycelium Calibration
9+
* Deploy an ERC20 contract on the Mycelium Calibration
1010

1111
## Prerequisites
1212

@@ -176,9 +176,11 @@ After acquiring some test tokens in the MetaMask wallet, we can begin working on
176176

177177
## Deploy ERC20 contract on the Mycelium Calibration 
178178

179-
As mentioned earlier, IPC subnets are EVM-compatible, allowing us to utilize various tools and frameworks that support Solidity development for building and deploying smart contracts on the IPC subnets. Let's take Remix and hardhat as examples for developing an ERC20 token contract on the IPC Mycelium Calibration.
179+
As mentioned earlier, IPC subnets are EVM-compatible, allowing us to utilize various tools and frameworks that support Solidity development for building and deploying smart contracts on the IPC subnets. Let's take Remix and hardhat as examples for developing an ERC20 token contract on the Mycelium Calibration.
180180
181-
### Using Remix & MetaMask
181+
{% tabs %}
182+
{% tab title="Remix" %}
183+
We will use Remix & MetaMask for this step. So ensure your MetaMask connects to the Mycelium Calibration & loaded with some tFIL.
182184
183185
#### **1. Create a new workspace** on Remix
184186
@@ -218,9 +220,9 @@ After successfully deploying your contract to the Mycelium Calibration, you will
218220
<figure><img src="../.gitbook/assets/invoke (1).png" alt=""><figcaption><p>Invoke smart contract</p></figcaption></figure>
219221

220222
After the transaction is confirmed on the Mycelium Calibration, we will be able to call `balanceOf` to check if the tokens have been successfully minted to our wallet address.
223+
{% endtab %}
221224

222-
### Using hardhat
223-
225+
{% tab title="HardHat" %}
224226
In addition to using the Remix UI, there are more programmable approaches to develop smart contracts using frameworks like [hardhat](https://hardhat.org/) and [foundry](https://github.com/foundry-rs/foundry). Let's take hardhat as an example to develop and deploy a basic ERC20 token on the Mycelium Calibration.
225227
226228
Before moving forward, ensure we have the following dependencies installed on the machine.
@@ -258,7 +260,7 @@ Considering the security of your project, we will use the `.evn` file to store s
258260
PRIVATE_KEY="<your-wallet-private-key>"
259261
```
260262

261-
Open `hardhat.config.js` with VsCode, we will add IPC network configuration in this file. Make sure you have installed the `dotenv` package in your project by running `npm install dotenv`. Next, let's retrieve the ChainId and URL for the Mycelium Calibration from the [previous step](deploy-smart-contracts-to-mycelium.md#1.-getting-rpc-url-and-chain-id). We will use them to configure the IPC network.
263+
Open `hardhat.config.js` with VsCode, we will add IPC network configuration in this file. Make sure you have installed the `dotenv` package in your project by running `npm install dotenv`. Next, let's retrieve the ChainId and URL for the Mycelium Calibration from the [previous step](deploy-smart-contract-to-mycelium.md#1.-getting-rpc-url-and-chain-id). We will use them to configure the IPC network.
262264
263265
In the `hardhat.config.js` file, add the following code.
264266
@@ -423,6 +425,8 @@ My balance is 0.0
423425
0xf41b192bbefa2777a1c0984f4d12a32b3e213f94ba1045309f38dd5fa458b0e3
424426
My new balance is 100.0
425427
```
428+
{% endtab %}
429+
{% endtabs %}
426430

427431
Congratulations! You have successfully deployed your first ERC20 contract on the Mycelium Calibration and even interacted with it. \
428432
\

0 commit comments

Comments
 (0)