Skip to content

Commit 44412ef

Browse files
Sunset Koi testnet (#117)
* Remove Pangolin and Koi chain documentation; update Crab chain description as primary test network * Update documentation to replace Koi references with Crab testnet across multiple files * Update documentation to replace Koi references with Crab testnet in transfer tutorial and related files * Fix formatting issue in transfer token guide by correcting image tag
1 parent c44ed8e commit 44412ef

37 files changed

+131
-176
lines changed

docs/build/ethereum-tools/interact-with-ethersjs.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ npm install [email protected]
4242
## Contract Interaction
4343

4444
!!! note
45-
The network provider used in this tutorial is the [Koi testnet](../getting-started/networks/koi.md). However, the concepts and techniques covered in this tutorial are applicable to other Darwinia networks as well.
45+
The network provider used in this tutorial is the [Crab testnet](../getting-started/networks/crab.md). However, the concepts and techniques covered in this tutorial are applicable to other Darwinia networks as well.
4646

4747
### Prepare Contract
4848

@@ -156,7 +156,7 @@ const accountFrom = {
156156
privateKey: "0xd5cef12c5641455ad949c3ce8f9056478eeda53dcbade335b06467e8d6b2accc",
157157
}
158158

159-
const provider = new JsonRpcProvider('https://koi-rpc.darwinia.network');
159+
const provider = new JsonRpcProvider('https://crab-rpc.darwinia.network');
160160
const wallet = new ethers.Wallet(accountFrom.privateKey, provider);
161161
const abi = contractMetadata.contracts["storage.sol:Storage"].abi;
162162
const bin = contractMetadata.contracts["storage.sol:Storage"].bin;
@@ -216,7 +216,7 @@ const accountFrom = {
216216
privateKey:
217217
"0xd5cef12c5641455ad949c3ce8f9056478eeda53dcbade335b06467e8d6b2accc",
218218
};
219-
const provider = new JsonRpcProvider("https://koi-rpc.darwinia.network");
219+
const provider = new JsonRpcProvider("https://crab-rpc.darwinia.network");
220220
const wallet = new ethers.Wallet(accountFrom.privateKey, provider);
221221
const abi = contractMetadata.contracts["storage.sol:Storage"].abi;
222222

@@ -265,7 +265,7 @@ const contractMetadata = require("./metadata.json");
265265
// The contract address deployed in last step
266266
const contractAddress = '0x24e263941c13bD12EEaAdba64531385e83103908';
267267

268-
const provider = new JsonRpcProvider('https://koi-rpc.darwinia.network');
268+
const provider = new JsonRpcProvider('https://crab-rpc.darwinia.network');
269269
const abi = contractMetadata.contracts["storage.sol:Storage"].abi;
270270
const retrieve = async () => {
271271
// Construct the contract instance

docs/build/ethereum-tools/interact-with-foundry.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ The four main tools in Foundry are:
1212
- [Anvil](https://github.com/foundry-rs/foundry/blob/master/crates/anvil): Anvil is a local TestNet node that can be used for development purposes. It has the ability to fork preexisting networks.
1313
- [Chisel](https://github.com/foundry-rs/foundry/blob/master/crates/chisel): Chisel is a Solidity REPL (Read-Eval-Print Loop) that allows for quick testing of Solidity snippets.
1414

15-
This guide will provide instructions on how to use Foundry's Forge and Cast tools to interact with Ethereum smart contracts on the Darwinia [Koi TestNet](../getting-started/networks/koi.md).
15+
This guide will provide instructions on how to use Foundry's Forge and Cast tools to interact with Ethereum smart contracts on the Darwinia [Crab testnet](../getting-started/networks/crab.md).
1616

1717
## Prerequisites
1818

@@ -43,7 +43,7 @@ In addition to these three folders, a git project will also be created along wit
4343
## Contract Interaction
4444

4545
!!! note
46-
The network provider used in this tutorial is the Koi Testnet. However, the concepts and techniques covered in this tutorial are applicable to other Darwinia networks as well.
46+
The network provider used in this tutorial is the Crab testnet. However, the concepts and techniques covered in this tutorial are applicable to other Darwinia networks as well.
4747

4848
### Prepare And Compile Contract
4949

@@ -106,7 +106,7 @@ Compiler run successful!
106106
Start the deployment by running the command:
107107

108108
```bash
109-
forge create --rpc-url https://koi-rpc.darwinia.network --private-key 0xd5cef12c5641455ad949c3ce8f9056478eeda53dcbade335b06467e8d6b2accc src/storage.sol:Storage
109+
forge create --rpc-url https://crab-rpc.darwinia.network --private-key 0xd5cef12c5641455ad949c3ce8f9056478eeda53dcbade335b06467e8d6b2accc src/storage.sol:Storage
110110
```
111111

112112
The output like this:
@@ -126,7 +126,7 @@ Transaction hash: 0x8a9089e9aaf1569807cf3bae0f525370a490444fb6c55702aee46aaad70e
126126
Run the command:
127127

128128
```bash
129-
cast send --private-key 0xd5cef12c5641455ad949c3ce8f9056478eeda53dcbade335b06467e8d6b2accc --rpc-url https://koi-rpc.darwinia.network 0x0De784894D8FfE792EA7cF108E96f6e4451D066E "store(uint256)" 3
129+
cast send --private-key 0xd5cef12c5641455ad949c3ce8f9056478eeda53dcbade335b06467e8d6b2accc --rpc-url https://crab-rpc.darwinia.network 0x0De784894D8FfE792EA7cF108E96f6e4451D066E "store(uint256)" 3
130130
```
131131

132132
The output:
@@ -152,7 +152,7 @@ type 2
152152
Run the command:
153153

154154
```bash
155-
cast call 0x0De784894D8FfE792EA7cF108E96f6e4451D066E "retrieve()" --rpc-url https://koi-rpc.darwinia.network
155+
cast call 0x0De784894D8FfE792EA7cF108E96f6e4451D066E "retrieve()" --rpc-url https://crab-rpc.darwinia.network
156156
```
157157

158158
The output:

docs/build/ethereum-tools/interact-with-hardhat.md

+8-8
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ These are the default paths for a Hardhat project.
5858
## Contract Interaction
5959
6060
!!! note
61-
The network provider used in this tutorial is the [Koi Testnet](../getting-started/networks/koi.md). However, the concepts and techniques covered in this tutorial are applicable to other Darwinia networks as well.
61+
The network provider used in this tutorial is the [Crab testnet](../getting-started/networks/crab.md). However, the concepts and techniques covered in this tutorial are applicable to other Darwinia networks as well.
6262
6363
6464
### Prepare And Compile Contract
@@ -114,25 +114,25 @@ Compiled 1 Solidity file successfully
114114
115115
### Update Hardhat Config
116116
117-
Before working with the contracts, there are a few basic configurations that need to be set up. Replace the default **`hardhat.config`** file with the following content. This configuration includes the Koi network RPC information and adds a test account:
117+
Before working with the contracts, there are a few basic configurations that need to be set up. Replace the default **`hardhat.config`** file with the following content. This configuration includes the Crab network RPC information and adds a test account:
118118
119119
```jsx linenums="1" title="hardhat.config"
120120
require("@nomicfoundation/hardhat-toolbox");
121121
122122
/** @type import('hardhat/config').HardhatUserConfig */
123123
module.exports = {
124124
solidity: "0.8.19",
125-
defaultNetwork: "koi",
125+
defaultNetwork: "crab",
126126
networks: {
127-
koi: {
128-
url: "https://koi-rpc.darwinia.network",
127+
crab: {
128+
url: "https://crab-rpc.darwinia.network",
129129
accounts: ["0xd5cef12c5641455ad949c3ce8f9056478eeda53dcbade335b06467e8d6b2accc"]
130130
}
131131
}
132132
};
133133
```
134134
135-
By updating the **`hardhat.config`** file with this content, you will have the necessary configurations in place to interact with the Koi network and use the test account for testing purposes.
135+
By updating the **`hardhat.config`** file with this content, you will have the necessary configurations in place to interact with the Crab network and use the test account for testing purposes.
136136
137137
### Deploy Storage Contract
138138
@@ -158,7 +158,7 @@ main().catch((error) => {
158158
Start the deployment by running the command:
159159
160160
```jsx
161-
npx hardhat run --network koi scripts/deploy.js
161+
npx hardhat run --network crab scripts/deploy.js
162162
```
163163
164164
The output like this:
@@ -206,7 +206,7 @@ ContractTransactionResponse {
206206
_initializingPromise: [Promise],
207207
provider: [BackwardsCompatibilityProviderAdapter]
208208
},
209-
_networkName: 'koi',
209+
_networkName: 'crab',
210210
_blockListeners: [],
211211
_transactionHashListeners: Map(0) {},
212212
_eventListeners: []

docs/build/ethereum-tools/interact-with-web3js.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ npm install [email protected]"
4343
4444
4545
!!! note
46-
The network provider used in this tutorial is the [Koi testnet](../getting-started/networks/koi.md). However, the concepts and techniques covered in this tutorial are applicable to other Darwinia networks as well.
46+
The network provider used in this tutorial is the [Crab testnet](../getting-started/networks/crab.md). However, the concepts and techniques covered in this tutorial are applicable to other Darwinia networks as well.
4747
4848
### Prepare Contract
4949
@@ -157,7 +157,7 @@ const accountFrom = {
157157
privateKey: "0xd5cef12c5641455ad949c3ce8f9056478eeda53dcbade335b06467e8d6b2accc",
158158
}
159159
160-
const web3 = new Web3('https://koi-rpc.darwinia.network');
160+
const web3 = new Web3('https://crab-rpc.darwinia.network');
161161
const abi = contractMetadata.contracts["storage.sol:Storage"].abi;
162162
const bin = contractMetadata.contracts["storage.sol:Storage"].bin;
163163
@@ -232,7 +232,7 @@ const accountFrom = {
232232
address: "0x6Bc9543094D17f52CF6b419FB692797E48d275d0",
233233
privateKey: "0xd5cef12c5641455ad949c3ce8f9056478eeda53dcbade335b06467e8d6b2accc",
234234
}
235-
const web3 = new Web3('https://koi-rpc.darwinia.network');
235+
const web3 = new Web3('https://crab-rpc.darwinia.network');
236236
const abi = contractMetadata.contracts["storage.sol:Storage"].abi;
237237
238238
const store = async () => {
@@ -283,7 +283,7 @@ const contractMetadata = require("./metadata.json");
283283
// The contract address deployed in last step
284284
const contractAddress = '0x677163264bcb88A6f8F71E2B7D88F51d54325AB1';
285285
286-
const web3 = new Web3('https://koi-rpc.darwinia.network');
286+
const web3 = new Web3('https://crab-rpc.darwinia.network');
287287
const abi = contractMetadata.contracts["storage.sol:Storage"].abi;
288288
289289
const retrieve = async () => {

docs/build/getting-started/networks/crab.md

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1-
# Crab Chain
2-
3-
Crab serves as Darwinia's incentivized testnet network with genuine economic significance, akin to how Kusama functions for Polkadot.
4-
5-
Crab is now a [parachain of Kusama](https://kusama.subscan.io/parachain/2105).
1+
# Crab Chain(Testnet)
2+
The Crab, a [parachain of Kusama](https://kusama.subscan.io/parachain/2105), now serves as Darwinia’s primary test network. It is officially maintained to ensure that new and innovative features are thoroughly tested before being deployed to the main production network.
63

74
## Connect Wallet Automatically
85

0 commit comments

Comments
 (0)