diff --git a/governance/xc_governance_sdk_js/src/chains.ts b/governance/xc_governance_sdk_js/src/chains.ts index 9588acfd..90ab4638 100644 --- a/governance/xc_governance_sdk_js/src/chains.ts +++ b/governance/xc_governance_sdk_js/src/chains.ts @@ -11,6 +11,7 @@ export const RECEIVER_CHAINS = { neon: 60007, polygon_zkevm: 60008, canto: 60009, + meter: 60010, }; // If there is any overlapping value the receiver chain will replace the wormhole diff --git a/package-lock.json b/package-lock.json index 0d9691c7..522936a8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -49988,7 +49988,7 @@ }, "target_chains/ethereum/sdk/js": { "name": "@pythnetwork/pyth-evm-js", - "version": "1.11.0", + "version": "1.12.0", "license": "Apache-2.0", "dependencies": { "@pythnetwork/price-service-client": "*", diff --git a/target_chains/ethereum/contracts/.env.prod.meter b/target_chains/ethereum/contracts/.env.prod.meter new file mode 100644 index 00000000..b37d2bc1 --- /dev/null +++ b/target_chains/ethereum/contracts/.env.prod.meter @@ -0,0 +1,5 @@ +MIGRATIONS_DIR=./migrations/prod-receiver +MIGRATIONS_NETWORK=meter +WORMHOLE_CHAIN_NAME=meter +CLUSTER=mainnet +VALID_TIME_PERIOD_SECONDS=60 diff --git a/target_chains/ethereum/contracts/.env.prod.meter_testnet b/target_chains/ethereum/contracts/.env.prod.meter_testnet new file mode 100644 index 00000000..f57e6c21 --- /dev/null +++ b/target_chains/ethereum/contracts/.env.prod.meter_testnet @@ -0,0 +1,5 @@ +MIGRATIONS_DIR=./migrations/prod-receiver +MIGRATIONS_NETWORK=meter_testnet +WORMHOLE_CHAIN_NAME=meter +CLUSTER=testnet +VALID_TIME_PERIOD_SECONDS=60 diff --git a/target_chains/ethereum/contracts/networks/82.json b/target_chains/ethereum/contracts/networks/82.json new file mode 100644 index 00000000..2b323e1b --- /dev/null +++ b/target_chains/ethereum/contracts/networks/82.json @@ -0,0 +1,16 @@ +[ + { + "contractName": "Migrations", + "address": "0x838D664DcEbc6f1a0D50E99d8A8f28Fa2DDFFdd9" + }, + { + "contractName": "WormholeReceiver", + "address": "0xd890EF14cbA5899B0ffa97D5c83dc10c3d24baCb", + "transactionHash": "0x3913d5b1c8802a79e5ac4116678c9b83a7d139baf005b29f0151f085bce2cf5e" + }, + { + "contractName": "PythUpgradable", + "address": "0xbFe3f445653f2136b2FD1e6DdDb5676392E3AF16", + "transactionHash": "0x58571799a1e93a330c804eb3bfda17e4b4aad6eac43f1338075eceef83aea29f" + } +] diff --git a/target_chains/ethereum/contracts/networks/83.json b/target_chains/ethereum/contracts/networks/83.json new file mode 100644 index 00000000..5287283c --- /dev/null +++ b/target_chains/ethereum/contracts/networks/83.json @@ -0,0 +1,16 @@ +[ + { + "contractName": "Migrations", + "address": "0x411DDe0Ffe69FBD22bd5132dCA5070A63daCC35C" + }, + { + "contractName": "WormholeReceiver", + "address": "0xe2a119872F5119398ea70669ae3BF0b0cca5ADeB", + "transactionHash": "0x7128125aec6faff8b5ee8541b13bd2d1072e38271f579d2292ad29a642199fa5" + }, + { + "contractName": "PythUpgradable", + "address": "0x5fF5B9039FbD8256864A4460B7EA77093A65B1b5", + "transactionHash": "0x561cb8b1936bb3979d603a9e871cb61c2d485b0e51ef011982a1970e30ea5f5e" + } +] diff --git a/target_chains/ethereum/contracts/truffle-config.js b/target_chains/ethereum/contracts/truffle-config.js index c10a2de3..0a671c30 100644 --- a/target_chains/ethereum/contracts/truffle-config.js +++ b/target_chains/ethereum/contracts/truffle-config.js @@ -239,6 +239,14 @@ module.exports = { provider: payerProvider(`https://devnet.neonevm.org`), network_id: 245022926, }, + meter_testnet: { + provider: payerProvider("https://rpctest.meter.io"), + network_id: 83, + }, + meter: { + provider: payerProvider("https://rpc-meter.jellypool.xyz"), + network_id: 82, + }, }, compilers: { diff --git a/target_chains/ethereum/sdk/js/package.json b/target_chains/ethereum/sdk/js/package.json index dec91a6f..c269a5fc 100644 --- a/target_chains/ethereum/sdk/js/package.json +++ b/target_chains/ethereum/sdk/js/package.json @@ -1,6 +1,6 @@ { "name": "@pythnetwork/pyth-evm-js", - "version": "1.11.0", + "version": "1.12.0", "description": "Pyth Network EVM Utils in JS", "homepage": "https://pyth.network", "author": { diff --git a/target_chains/ethereum/sdk/js/src/index.ts b/target_chains/ethereum/sdk/js/src/index.ts index cbfe1a43..f8db3226 100644 --- a/target_chains/ethereum/sdk/js/src/index.ts +++ b/target_chains/ethereum/sdk/js/src/index.ts @@ -43,4 +43,6 @@ export const CONTRACT_ADDR: Record = { polygon_zkevm_testnet: "0xd54bf1758b1C932F86B178F8b1D5d1A7e2F62C2E", polygon_zkevm: "0xC5E56d6b40F3e3B5fbfa266bCd35C37426537c65", canto_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729", + meter_testnet: "0x5fF5B9039FbD8256864A4460B7EA77093A65B1b5", + meter: "0xbFe3f445653f2136b2FD1e6DdDb5676392E3AF16", };