You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: smart-contracts/cookbook/smart-contracts/deploy-basic/basic-hardhat.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Deploy Basic Contract with Hardhat
3
-
description: Learn how to deploy a basic smart contract to Polkadot Hub using Hardhat, Perfect for professional workflows requiring comprehensive testing and debugging.
3
+
description: Learn how to deploy a basic smart contract to Polkadot Hub using Hardhat, ideal for professional workflows that require comprehensive testing and debugging.
4
4
categories: Smart Contracts
5
5
---
6
6
@@ -38,7 +38,7 @@ Open `hardhat.config.js` and add `polkadotHubTestnet` to the `networks` configur
38
38
```
39
39
40
40
!!! tip
41
-
Learn how to use Hardhat's [Config Variables](https://hardhat.org/docs/learn-more/configuration-variables){target=\_blank} to handle your private keys in a secure way.
41
+
Learn how to use Hardhat's [Config Variables](https://hardhat.org/docs/learn-more/configuration-variables){target=\_blank} to handle your private keys securely.
42
42
43
43
## Create the Contract
44
44
@@ -61,7 +61,7 @@ Compile your `Storage.sol` contract using the following command:
61
61
npx hardhat compile
62
62
```
63
63
64
-
You will see a message in the terminal confirming the contract was successfully compiled similar to the following:
64
+
You will see a message in the terminal confirming the contract was successfully compiled, similar to the following:
Copy file name to clipboardExpand all lines: smart-contracts/cookbook/smart-contracts/deploy-basic/basic-remix.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Deploy Basic Contract with Remix IDE
3
-
description: Learn how to deploy a basic smart contract to Polkadot Hub using Remix IDE Ideal for rapid prototyping, learning, and visual development.
3
+
description: Learn how to deploy a basic smart contract to Polkadot Hub using Remix IDE, ideal for rapid prototyping, learning, and visual development.
4
4
categories: Smart Contracts
5
5
---
6
6
@@ -22,13 +22,13 @@ Before you begin, ensure you have the following:
22
22
23
23
Navigate to [Remix](https://remix.ethereum.org/){target=\_blank} in your web browser.
24
24
25
-
The interface will load with a default workspace containing sample contracts. In this interface, you can access a file explorer, edit your code, interact with various plugins for development, and use a terminal. By default, you will see the `contracts` folder with the `Storage.sol` file, which will be used as the example contract throughout this guide.
25
+
The interface will load with a default workspace containing sample contracts. In this interface, you can access a file explorer, edit your code, interact with various development plugins, and use a terminal. By default, you will see the `contracts` folder with the `Storage.sol` file, which will be used as the example contract throughout this guide.
Copy file name to clipboardExpand all lines: smart-contracts/cookbook/smart-contracts/deploy-erc20/erc20-hardhat.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,13 +10,13 @@ tools: Hardhat
10
10
11
11
## Introduction
12
12
13
-
[ERC-20](https://eips.ethereum.org/EIPS/eip-20){target=\_blank} tokens are fungible tokens commonly used for creating cryptocurrencies, governance tokens, and staking mechanisms. Polkadot Hub enables easy ERC-20 token deployment with Ethereum-compatible smart contracts and tools via the EVM backend.
13
+
[ERC-20](https://eips.ethereum.org/EIPS/eip-20){target=\_blank} tokens are fungible tokens commonly used for creating cryptocurrencies, governance tokens, and staking mechanisms. Polkadot Hub enables easy deployment of ERC-20 tokens via Ethereum-compatible smart contracts and tools.
14
14
15
15
This tutorial covers deploying an ERC-20 contract on the Polkadot Hub TestNet using [Hardhat](https://hardhat.org/){target=\_blank}, an Ethereum development environment. The ERC-20 contract can be retrieved from OpenZeppelin's [GitHub repository]({{ dependencies.repositories.open_zeppelin_contracts.repository_url}}/tree/{{ dependencies.repositories.open_zeppelin_contracts.version}}/contracts/token/ERC20){target=\_blank} or their [Contract Wizard](https://wizard.openzeppelin.com/){target=\_blank}.
16
16
17
17
## Prerequisites
18
18
19
-
Before you begin, ensure sure you have the following:
19
+
Before you begin, ensure you have the following:
20
20
21
21
- A basic understanding of [Solidity](https://www.soliditylang.org/){target=\_blank} programming and [ERC-20](https://ethereum.org/developers/docs/standards/tokens/erc-20/) fungible tokens.
22
22
- Node.js v22.13.1 or later installed.
@@ -25,7 +25,9 @@ Before you begin, ensure sure you have the following:
25
25
26
26
## Set Up Your Project
27
27
28
-
This tutorial uses a [Hardhat ERC-20 template](https://github.com/polkadot-developers/revm-hardhat-examples/tree/master/erc20-hardhat){target=\_blank} that contains all the necessary files. To get started, take the following steps:
28
+
This tutorial uses a [Hardhat ERC-20 template](https://github.com/polkadot-developers/revm-hardhat-examples/tree/master/erc20-hardhat){target=\_blank} that contains all the necessary files.
29
+
30
+
To get started, take the following steps:
29
31
30
32
1. Clone the GitHub repository locally:
31
33
@@ -34,13 +36,13 @@ This tutorial uses a [Hardhat ERC-20 template](https://github.com/polkadot-devel
34
36
cd revm-hardhat-examples/erc20-hardhat
35
37
```
36
38
37
-
2. Install the dependencies:
39
+
2. Install the dependencies using the following command:
38
40
39
41
```bash
40
42
npm i
41
43
```
42
44
43
-
This will fetch all the necessary packages to help you deploy an ERC-20 with Hardhat to Polkadot.
45
+
This commandwill fetch all the necessary packages to help you deploy an ERC-20 with Hardhat to Polkadot.
44
46
45
47
## Configure Hardhat
46
48
@@ -53,7 +55,7 @@ If you started with the cloned Hardhat ERC-20 template, `hardhat.config.js` is a
53
55
```
54
56
55
57
!!! tip
56
-
Visit the Hardhat [Config Variables](https://hardhat.org/docs/learn-more/configuration-variables){target=\_blank} documentation to learn how to use Hardhat to handle your private keys in a secure way.
58
+
Visit the Hardhat [Config Variables](https://hardhat.org/docs/learn-more/configuration-variables){target=\_blank} documentation to learn how to use Hardhat to handle your private keys securely.
57
59
58
60
## Compile the Contract
59
61
@@ -79,7 +81,7 @@ You can view the predefined test file at [`test/MyToken.test.ts`](https://github
79
81
- The initial token supply is zero.
80
82
- The owner can mint tokens.
81
83
- The total supply increases after a mint.
82
-
- Successful mints to different test addresses with correct corresponding account balance and total supply changes.
84
+
- Successful mints to different test addresses with expected account balance and total supply changes.
Copy file name to clipboardExpand all lines: smart-contracts/cookbook/smart-contracts/deploy-erc20/erc20-remix.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ Follow the steps below to create the ERC-20 contract:
44
44
45
45
Solidity source code compiles into bytecode that can be deployed on the blockchain. During this process, the compiler checks the contract for syntax errors, ensures type safety, and generates the machine-readable instructions needed for blockchain execution.
46
46
47
-
Ensure your contract is open in the Remix IDE Editor, and use the follow steps to compile:
47
+
Ensure your contract is open in the Remix IDE Editor, and use the following steps to compile:
48
48
49
49
1. Select the **Solidity Compiler** plugin from the left panel.
50
50
2. Select the **Compile MyToken.sol** button.
@@ -72,7 +72,7 @@ Follow these steps to deploy the contract using Remix:
72
72
Once deployed, you can interact with your contract through Remix. Find your contract under **Deployed/Unpinned Contracts**, and click it to expand the available methods. In this example, you'll mint some tokens to a given address using the following steps:
73
73
74
74
1. Expand the **mint** function:
75
-
1. Enter the recipient address and the amount (remember to add 18 zeros for 1 whole token).
75
+
1. Enter the recipient address and the amount (remember to add 18 zeros for one whole token).
Copy file name to clipboardExpand all lines: smart-contracts/cookbook/smart-contracts/deploy-nft/nft-hardhat.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Deploy ERC-721 Using Hardhat
3
-
description: Learn how to deploy an ERC-721 NFT contract to Polkadot Hub with Hardhat, a comprehenive development environment with built-in deployment capabilities.
3
+
description: Learn how to deploy an ERC-721 NFT contract to Polkadot Hub using Hardhat, a comprehensive development environment with built-in deployment capabilities.
4
4
tutorial_badge: Beginner
5
5
categories: Basics, Smart Contracts
6
6
tools: EVM Wallet, Hardhat
@@ -48,7 +48,7 @@ Open `hardhat.config.js` and update to add `polkadotHubTestnet` to the `networks
48
48
```
49
49
50
50
!!! tip
51
-
Learn how to use Hardhat's [Config Variables](https://hardhat.org/docs/learn-more/configuration-variables){target=\_blank} to handle your private keys in a secure way.
51
+
Learn how to use Hardhat's [Config Variables](https://hardhat.org/docs/learn-more/configuration-variables){target=\_blank} to handle your private keys securely.
52
52
53
53
## Create the Contract
54
54
@@ -71,7 +71,7 @@ Compile your `MyNFT.sol` contract using the following command:
71
71
npx hardhat compile
72
72
```
73
73
74
-
You will see a message in the terminal confirming the contract was successfully compiled similar to the following:
74
+
You will see a message in the terminal confirming the contract was successfully compiled, similar to the following:
Copy file name to clipboardExpand all lines: smart-contracts/cookbook/smart-contracts/deploy-nft/nft-remix.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,7 +24,7 @@ This guide demonstrates how to deploy an [ERC-721](https://eips.ethereum.org/EIP
24
24
25
25
Navigate to [Remix](https://remix.ethereum.org/){target=\_blank} in your web browser.
26
26
27
-
The interface will load with a default workspace containing sample contracts. In this interface, you can access a file explorer, edit your code, interact with various plugins for development, and use a terminal.
27
+
The interface will load with a default workspace containing sample contracts. In this interface, you can access a file explorer, edit your code, interact with various development plugins, and use a terminal.
0 commit comments