Skip to content

Commit 2a1a659

Browse files
committed
Update Polkadot TestNet configuration and references to new RPC URL and chain ID
- Changed RPC URL from 'https://testnet-passet-hub-eth-rpc.polkadot.io' to 'https://services.polkadothub-rpc.com/testnet' across multiple files. - Updated chain ID from 420420422 to 420420417 in relevant configurations and documentation. - Adjusted deployment outputs and examples to reflect the new network settings. - Removed outdated faucet GIF and updated references in documentation for clarity.
1 parent 4fb252c commit 2a1a659

File tree

26 files changed

+83
-84
lines changed

26 files changed

+83
-84
lines changed

.snippets/code/smart-contracts/cookbook/smart-contracts/deploy-basic/basic-hardhat/deploy-output.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div id="termynal" data-termynal markdown>
22
<span data-ty="input">npx hardhat ignition deploy ignition/modules/Storage.ts --network polkadotTestnet</span>
3-
<span data-ty>✔ Confirm deploy to network polkadotTestnet (420420420)? … yes</span>
3+
<span data-ty>✔ Confirm deploy to network polkadotTestnet (420420417)? … yes</span>
44
<span data-ty>&nbsp;</span>
55
<span data-ty>Hardhat Ignition 🚀</span>
66
<span data-ty>&nbsp;</span>

.snippets/code/smart-contracts/cookbook/smart-contracts/deploy-basic/basic-hardhat/hardhat.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ const config: HardhatUserConfig = {
1717
},
1818
networks: {
1919
polkadotTestnet: {
20-
url: 'https://testnet-passet-hub-eth-rpc.polkadot.io',
21-
chainId: 420420422,
20+
url: 'https://services.polkadothub-rpc.com/testnet',
21+
chainId: 420420417,
2222
accounts: [vars.get('PRIVATE_KEY')],
2323
},
2424
},

.snippets/code/smart-contracts/cookbook/smart-contracts/deploy-erc20/erc20-hardhat/deploy-output.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<div id="termynal" data-termynal markdown>
22
<span data-ty="input">npx hardhat ignition deploy ./ignition/modules/MyToken.ts --network polkadotTestnet</span>
3-
<span data-ty>✔ Confirm deploy to network polkadotTestnet (420420420)? … yes</span>
3+
<span data-ty>✔ Confirm deploy to network polkadotTestnet (420420417)? … yes</span>
44
<span data-ty>&nbsp;</span>
55
<span data-ty>Hardhat Ignition 🚀</span>
66
<span data-ty>&nbsp;</span>

.snippets/code/smart-contracts/cookbook/smart-contracts/deploy-nft/nft-hardhat/hardhat.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ const config: HardhatUserConfig = {
1616
},
1717
networks: {
1818
polkadotTestnet: {
19-
url: 'https://testnet-passet-hub-eth-rpc.polkadot.io',
20-
chainId: 420420422,
19+
url: 'https://services.polkadothub-rpc.com/testnet',
20+
chainId: 420420417,
2121
accounts: [vars.get('PRIVATE_KEY')],
2222
},
2323
},

.snippets/code/smart-contracts/libraries/ethers-js/checkStorage.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ const interactWithStorageContract = async (
6666
};
6767

6868
const providerConfig = {
69-
name: 'asset-hub-smart-contracts',
70-
rpc: 'https://testnet-passet-hub-eth-rpc.polkadot.io',
71-
chainId: 420420422,
69+
name: 'polkadot-hub',
70+
rpc: 'https://services.polkadothub-rpc.com/testnet',
71+
chainId: 420420417,
7272
};
7373

7474
const mnemonic = 'INSERT_MNEMONIC'

.snippets/code/smart-contracts/libraries/ethers-js/deploy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ const deployContract = async (contractName, mnemonic, providerConfig) => {
8282
};
8383

8484
const providerConfig = {
85-
rpc: 'https://testnet-passet-hub-eth-rpc.polkadot.io', //TODO: replace to `https://services.polkadothub-rpc.com/testnet` when ready
86-
chainId: 420420422,
85+
rpc: 'https://services.polkadothub-rpc.com/testnet',
86+
chainId: 420420417,
8787
name: 'polkadot-hub-testnet',
8888
};
8989

.snippets/code/smart-contracts/libraries/ethers-js/fetchLastBlock.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ const createProvider = (rpcUrl, chainId, chainName) => {
1010
};
1111

1212
const PROVIDER_RPC = {
13-
rpc: 'https://testnet-passet-hub-eth-rpc.polkadot.io',
14-
chainId: 420420422,
13+
rpc: 'https://services.polkadothub-rpc.com/testnet',
14+
chainId: 420420417,
1515
name: 'polkadot-hub-testnet',
1616
};
1717

.snippets/code/smart-contracts/libraries/viem/fetchLastBlock.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
import { createPublicClient, http } from 'viem';
22

3-
const transport = http('https://testnet-passet-hub-eth-rpc.polkadot.io'); // TODO: change to paseo asset hub once ready
3+
const transport = http('https://services.polkadothub-rpc.com/testnet');
44

55
// Configure the Polkadot Hub chain
66
const polkadotHubTestnet = {
7-
id: 420420422,
7+
id: 420420417,
88
name: 'Polkadot Hub TestNet',
99
network: 'polkadot-hub-testnet',
1010
nativeCurrency: {
@@ -14,7 +14,7 @@ const polkadotHubTestnet = {
1414
},
1515
rpcUrls: {
1616
default: {
17-
http: ['https://testnet-passet-hub-eth-rpc.polkadot.io'], // TODO: change to paseo asset hub once ready
17+
http: ['https://services.polkadothub-rpc.com/testnet'],
1818
},
1919
},
2020
} as const;

.snippets/code/smart-contracts/libraries/wagmi/wagmi-testnet.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { http, createConfig } from 'wagmi';
22

33
// Configure the Polkadot Hub chain
44
const assetHub = {
5-
id: 420420422,
5+
id: 420420417,
66
name: 'polkadot-hub-testnet',
77
network: 'polkadot-hub-testnet',
88
nativeCurrency: {
@@ -12,7 +12,7 @@ const assetHub = {
1212
},
1313
rpcUrls: {
1414
default: {
15-
http: ['https://testnet-passet-hub-eth-rpc.polkadot.io'], // TODO: change to paseo asset hub once ready
15+
http: ['https://services.polkadothub-rpc.com/testnet'],
1616
},
1717
},
1818
} as const;

.snippets/code/smart-contracts/libraries/web3-js/deploy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,8 @@ const deployContract = async (contractName, privateKey, providerConfig) => {
8787
};
8888

8989
const providerConfig = {
90-
rpc: 'https://testnet-passet-hub-eth-rpc.polkadot.io', // TODO: replace to `https://services.polkadothub-rpc.com/testnet` when ready
91-
chainId: 420420422,
90+
rpc: 'https://services.polkadothub-rpc.com/testnet',
91+
chainId: 420420417,
9292
name: 'polkadotTestNet',
9393
};
9494

0 commit comments

Comments
 (0)