Skip to content

Commit 1771a8a

Browse files
authored
[eth] Add new testnets (#669)
- Add chiado (gnosis testnet) and shimmer testnet - Add chiado and shimmer_testnet and base_goerli addr to js sdk
1 parent 70c0061 commit 1771a8a

File tree

12 files changed

+71
-11
lines changed

12 files changed

+71
-11
lines changed

governance/xc_governance_sdk_js/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@pythnetwork/xc-governance-sdk",
3-
"version": "0.1.0",
3+
"version": "0.2.0",
44
"description": "Pyth Cross-chain Governance SDK",
55
"homepage": "https://pyth.network",
66
"main": "lib/index.js",

governance/xc_governance_sdk_js/src/chains.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ export const RECEIVER_CHAINS = {
55
cronos: 60001,
66
kcc: 60002,
77
zksync: 60003,
8+
shimmer: 60004,
9+
gnosis: 60005,
810
};
911

1012
// If there is any overlapping value the receiver chain will replace the wormhole

package-lock.json

Lines changed: 2 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Chiado is gnosis testnet
2+
3+
MIGRATIONS_DIR=./migrations/prod-receiver
4+
MIGRATIONS_NETWORK=chiado
5+
WORMHOLE_CHAIN_NAME=gnosis
6+
CLUSTER=testnet
7+
VALID_TIME_PERIOD_SECONDS=60
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
MIGRATIONS_DIR=./migrations/prod-receiver
2+
MIGRATIONS_NETWORK=shimmer_testnet
3+
WORMHOLE_CHAIN_NAME=shimmer
4+
CLUSTER=testnet
5+
VALID_TIME_PERIOD_SECONDS=60

target_chains/ethereum/contracts/Deploying.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ This is the deployment process:
8484
If the deployment script runs successfully you should see many ✅s and no ❌s with a successful message.
8585
Please note that if you need to deploy/upgrade a zkSync network contract, you should deploy/upgrade it manually first
8686
as described below.
87-
7. On first time deployments for a network with Wormhole Receiver contract, run this command:
87+
7. On first time deployments for a **mainnet** network with Wormhole Receiver contract, run this command:
8888
```bash
8989
npm run receiver-submit-guardian-sets -- --network <network>
9090
```
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"contractName": "Migrations",
4+
"address": "0x5e92a04Cb8591cb7d9FD40B77B474cde0fE44D36"
5+
},
6+
{
7+
"contractName": "WormholeReceiver",
8+
"address": "0x556c444542f27137519eCF07A49E29a0e70E55Aa",
9+
"transactionHash": "0x81fb99aeb0091777b2855a20b3b41ea3686d5bc8c7672ed753af9d8a3d15954e"
10+
},
11+
{
12+
"contractName": "PythUpgradable",
13+
"address": "0xdDAf6D29b8bc81c1F0798a5e4c264ae89c16a72B",
14+
"transactionHash": "0xcdfe6e47a60d81de9167f2d6e5735083524d22c5d5d2852668df1f83b0985917"
15+
}
16+
]
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"contractName": "Migrations",
4+
"address": "0x5e92a04Cb8591cb7d9FD40B77B474cde0fE44D36"
5+
},
6+
{
7+
"contractName": "WormholeReceiver",
8+
"address": "0xfD4EC459371580925319059306388D9753f72405",
9+
"transactionHash": "0x5c78255a6dae47e47e1b5c528ef053554575dc0a1663c476595823204cab7795"
10+
},
11+
{
12+
"contractName": "PythUpgradable",
13+
"address": "0x354bF866A4B006C9AF9d9e06d9364217A8616E12",
14+
"transactionHash": "0x5896bfc116287c1bd6637f4e45f9a6ff21a8ac787266fec3f7f2f2fe372731d5"
15+
}
16+
]

target_chains/ethereum/contracts/scripts/syncPythState.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function execMultisigCommand(cmd) {
3939
console.log(`Executing "${fullCmd}"`);
4040

4141
const { stdout, stderr } = await exec(fullCmd, {
42-
cwd: "../../governance/multisig_wh_message_builder",
42+
cwd: "../../../governance/multisig_wh_message_builder",
4343
});
4444

4545
console.log("stdout:");

target_chains/ethereum/contracts/truffle-config.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,19 @@ module.exports = {
181181
provider: payerProvider(`https://evm-t3.cronos.org`),
182182
network_id: 338,
183183
},
184+
shimmer_testnet: {
185+
provider: payerProvider(`https://json-rpc.evm.testnet.shimmer.network`),
186+
network_id: 1070,
187+
},
188+
gnosis: {
189+
provider: payerProvider(`https://rpc.gnosischain.com`),
190+
network_id: 100,
191+
},
192+
chiado: {
193+
// gnosis testnet
194+
provider: payerProvider(`https://rpc.chiadochain.net`),
195+
network_id: 10200,
196+
},
184197
base_goerli: {
185198
provider: payerProvider(`https://goerli.base.org`),
186199
network_id: 84531,

0 commit comments

Comments
 (0)