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
refactor: streamline documentation and improve CLI-first workflow (#49)
Update CONTRIBUTING.md to simplify setup instructions and adopt a CLI-first approach. Refactor documentation and messaging across templates, recipes, and codebase for consistency and clarity.
Copy file name to clipboardExpand all lines: templates/recipe-templates/solidity-template/README.guide.md.template
+4-41Lines changed: 4 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -4,12 +4,11 @@
4
4
5
5
## Overview
6
6
7
-
A focused guide for implementing Solidity smart contracts on Polkadot using pallet-revive. This guide shows you how to quickly set up, develop, test, and deploy EVM-compatible contracts.
7
+
A focused guide for implementing Solidity smart contracts. This guide shows you how to quickly set up, develop, test, and deploy EVM-compatible contracts.
8
8
9
9
**Prerequisites:**
10
10
- Node.js 20+
11
11
- Solidity knowledge
12
-
- Hardhat experience
13
12
14
13
## Quick Start
15
14
@@ -92,27 +91,12 @@ npm test
92
91
### Local Node
93
92
94
93
```bash
95
-
# Terminal 1: Start node
96
-
npx hardhat node
97
-
98
-
# Terminal 2: Deploy
99
94
npm run deploy:local
100
95
```
101
96
102
97
### Testnet
103
98
104
-
Configure network in `hardhat.config.ts`:
105
-
106
-
```typescript
107
-
networks: {
108
-
testnet: {
109
-
url: "https://rpc.testnet.example",
110
-
accounts: [process.env.PRIVATE_KEY]
111
-
}
112
-
}
113
-
```
114
-
115
-
Deploy:
99
+
Deploy to testnet:
116
100
```bash
117
101
npm run deploy:testnet
118
102
```
@@ -318,33 +302,12 @@ function batchUpdate(uint256[] calldata values) external {
318
302
**Transaction reverts:**
319
303
- Check require/revert messages
320
304
- Verify function parameters
321
-
- Test with hardhat console
322
-
323
-
## Integration with Polkadot
324
-
325
-
### Using pallet-revive
326
-
327
-
pallet-revive provides EVM compatibility on Polkadot:
328
-
329
-
- Deploy Solidity contracts as on Ethereum
330
-
- Use standard tools (Hardhat, Ethers.js)
331
-
- Interact via JSON-RPC
332
-
- Access Polkadot-specific features (optional)
333
-
334
-
### Cross-Chain Features
335
-
336
-
```solidity
337
-
// Example: Interact with Polkadot runtime
338
-
interface IPolkadot {
339
-
function callPallet(bytes calldata data) external;
Copy file name to clipboardExpand all lines: templates/recipe-templates/solidity-template/README.tutorial.md.template
+11-22Lines changed: 11 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
## Overview
6
6
7
-
This tutorial teaches you Solidity smart contract development on Polkadot using **pallet-revive** - an EVM-compatible smart contract execution environment. You'll learn to write, test, deploy, and interact with Solidity contracts in the Polkadot ecosystem.
7
+
This tutorial teaches you Solidity smart contract development. You'll learn to write, test, deploy, and interact with Solidity contracts.
8
8
9
9
## Prerequisites
10
10
@@ -19,10 +19,10 @@ Before starting, ensure you have:
19
19
20
20
By completing this tutorial, you will understand:
21
21
22
-
- How to set up a Solidity development environment for Polkadot
23
-
- How to write EVM-compatible contracts for pallet-revive
22
+
- How to set up a Solidity development environment
23
+
- How to write EVM-compatible contracts
24
24
- How to compile contracts and generate TypeScript types
25
-
- How to write comprehensive tests using Hardhat
25
+
- How to write comprehensive tests for your contracts
26
26
- How to deploy contracts to local and remote networks
27
27
- How to interact with deployed contracts using Ethers.js
28
28
@@ -38,10 +38,9 @@ npm install
38
38
```
39
39
40
40
**What's installed:**
41
-
- **Hardhat** - Development environment and test runner
42
41
- **Ethers.js** - Library for blockchain interactions
0 commit comments