Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion governance/xc_governance_sdk_js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/xc-governance-sdk",
"version": "0.1.0",
"version": "0.2.0",
"description": "Pyth Cross-chain Governance SDK",
"homepage": "https://pyth.network",
"main": "lib/index.js",
Expand Down
2 changes: 2 additions & 0 deletions governance/xc_governance_sdk_js/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ export const RECEIVER_CHAINS = {
cronos: 60001,
kcc: 60002,
zksync: 60003,
shimmer: 60004,
gnosis: 60005,
};

// If there is any overlapping value the receiver chain will replace the wormhole
Expand Down
6 changes: 2 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions target_chains/ethereum/contracts/.env.prod.chiado
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Chiado is gnosis testnet

MIGRATIONS_DIR=./migrations/prod-receiver
MIGRATIONS_NETWORK=chiado
WORMHOLE_CHAIN_NAME=gnosis
CLUSTER=testnet
VALID_TIME_PERIOD_SECONDS=60
5 changes: 5 additions & 0 deletions target_chains/ethereum/contracts/.env.prod.shimmer_testnet
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
MIGRATIONS_DIR=./migrations/prod-receiver
MIGRATIONS_NETWORK=shimmer_testnet
WORMHOLE_CHAIN_NAME=shimmer
CLUSTER=testnet
VALID_TIME_PERIOD_SECONDS=60
2 changes: 1 addition & 1 deletion target_chains/ethereum/contracts/Deploying.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ This is the deployment process:
If the deployment script runs successfully you should see many ✅s and no ❌s with a successful message.
Please note that if you need to deploy/upgrade a zkSync network contract, you should deploy/upgrade it manually first
as described below.
7. On first time deployments for a network with Wormhole Receiver contract, run this command:
7. On first time deployments for a **mainnet** network with Wormhole Receiver contract, run this command:
```bash
npm run receiver-submit-guardian-sets -- --network <network>
```
Expand Down
16 changes: 16 additions & 0 deletions target_chains/ethereum/contracts/networks/10200.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"contractName": "Migrations",
"address": "0x5e92a04Cb8591cb7d9FD40B77B474cde0fE44D36"
},
{
"contractName": "WormholeReceiver",
"address": "0x556c444542f27137519eCF07A49E29a0e70E55Aa",
"transactionHash": "0x81fb99aeb0091777b2855a20b3b41ea3686d5bc8c7672ed753af9d8a3d15954e"
},
{
"contractName": "PythUpgradable",
"address": "0xdDAf6D29b8bc81c1F0798a5e4c264ae89c16a72B",
"transactionHash": "0xcdfe6e47a60d81de9167f2d6e5735083524d22c5d5d2852668df1f83b0985917"
}
]
16 changes: 16 additions & 0 deletions target_chains/ethereum/contracts/networks/1070.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[
{
"contractName": "Migrations",
"address": "0x5e92a04Cb8591cb7d9FD40B77B474cde0fE44D36"
},
{
"contractName": "WormholeReceiver",
"address": "0xfD4EC459371580925319059306388D9753f72405",
"transactionHash": "0x5c78255a6dae47e47e1b5c528ef053554575dc0a1663c476595823204cab7795"
},
{
"contractName": "PythUpgradable",
"address": "0x354bF866A4B006C9AF9d9e06d9364217A8616E12",
"transactionHash": "0x5896bfc116287c1bd6637f4e45f9a6ff21a8ac787266fec3f7f2f2fe372731d5"
}
]
2 changes: 1 addition & 1 deletion target_chains/ethereum/contracts/scripts/syncPythState.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ async function execMultisigCommand(cmd) {
console.log(`Executing "${fullCmd}"`);

const { stdout, stderr } = await exec(fullCmd, {
cwd: "../../governance/multisig_wh_message_builder",
cwd: "../../../governance/multisig_wh_message_builder",
});

console.log("stdout:");
Expand Down
13 changes: 13 additions & 0 deletions target_chains/ethereum/contracts/truffle-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,19 @@ module.exports = {
provider: payerProvider(`https://evm-t3.cronos.org`),
network_id: 338,
},
shimmer_testnet: {
provider: payerProvider(`https://json-rpc.evm.testnet.shimmer.network`),
network_id: 1070,
},
gnosis: {
provider: payerProvider(`https://rpc.gnosischain.com`),
network_id: 100,
},
chiado: {
// gnosis testnet
provider: payerProvider(`https://rpc.chiadochain.net`),
network_id: 10200,
},
base_goerli: {
provider: payerProvider(`https://goerli.base.org`),
network_id: 84531,
Expand Down
2 changes: 1 addition & 1 deletion target_chains/ethereum/sdk/js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pythnetwork/pyth-evm-js",
"version": "1.1.0",
"version": "1.2.0",
"description": "Pyth Network EVM Utils in JS",
"homepage": "https://pyth.network",
"author": {
Expand Down
9 changes: 6 additions & 3 deletions target_chains/ethereum/sdk/js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ export {

export const CONTRACT_ADDR: Record<string, string> = {
bnb_testnet: "0xd7308b14BF4008e7C7196eC35610B1427C5702EA",
fuji: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
fuji: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C", // Avalanche testnet
fantom_testnet: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
goerli: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
mumbai: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
mumbai: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C", // Polygon testnet
aurora_testnet: "0x4305FB66699C3B2702D4d05CF36551390A4c69C6",
bnb: "0x4D7E825f80bDf85e913E0DD2A2D54927e9dE1594",
avalanche: "0x4305FB66699C3B2702D4d05CF36551390A4c69C6",
Expand All @@ -26,11 +26,14 @@ export const CONTRACT_ADDR: Record<string, string> = {
arbitrum: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
optimism_goerli: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
celo: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
celo_alfajores: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
celo_alfajores: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C", // Celo testnet
kcc: "0xE0d0e68297772Dd5a1f1D99897c581E2082dbA5B",
kcc_testnet: "0x15D35b8985e350f783fe3d95401401E194ff1E6f",
cronos: "0xE0d0e68297772Dd5a1f1D99897c581E2082dbA5B",
cronos_testnet: "0xBAEA4A1A2Eaa4E9bb78f2303C213Da152933170E",
arbitrum_goerli: "0x939C0e902FF5B3F7BA666Cc8F6aC75EE76d3f900",
zksync_goerli: "0xF532F2C1bB7b67E08f7D8B76f9fF804D0831725e",
base_goerli: "0x5955C1478F0dAD753C7E2B4dD1b4bC530C64749f",
shimmer_testnet: "0x354bF866A4B006C9AF9d9e06d9364217A8616E12",
chiado: "0xdDAf6D29b8bc81c1F0798a5e4c264ae89c16a72B", // Gnosis testnet
};