From f1eeb9421088c340d00b81acd91da739bd5220a0 Mon Sep 17 00:00:00 2001 From: Ali Behjati Date: Mon, 7 Aug 2023 21:41:22 +0200 Subject: [PATCH] chore(eth): add scroll sepolia --- contract_manager/store/chains/EvmChains.yaml | 6 ++++++ .../store/contracts/EvmContracts.yaml | 3 +++ .../packages/xc_admin_common/src/chains.ts | 1 + package-lock.json | 2 +- .../ethereum/contracts/networks/534351.json | 16 ++++++++++++++++ target_chains/ethereum/sdk/js/package.json | 2 +- target_chains/ethereum/sdk/js/src/index.ts | 1 + 7 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 target_chains/ethereum/contracts/networks/534351.json diff --git a/contract_manager/store/chains/EvmChains.yaml b/contract_manager/store/chains/EvmChains.yaml index f87aa331..6b4f64e0 100644 --- a/contract_manager/store/chains/EvmChains.yaml +++ b/contract_manager/store/chains/EvmChains.yaml @@ -310,3 +310,9 @@ rpcUrl: https://json-rpc.evm.testnet.shimmer.network networkId: 1072 type: EvmChain +- id: scroll_sepolia + wormholeChainName: scroll + mainnet: false + rpcUrl: https://sepolia-rpc.scroll.io/ + networkId: 534351 + type: EvmChain diff --git a/contract_manager/store/contracts/EvmContracts.yaml b/contract_manager/store/contracts/EvmContracts.yaml index b2cbdd68..42a01656 100644 --- a/contract_manager/store/contracts/EvmContracts.yaml +++ b/contract_manager/store/contracts/EvmContracts.yaml @@ -154,3 +154,6 @@ - chain: shimmer_testnet address: "0x5f3c61944CEb01B3eAef861251Fb1E0f14b848fb" type: EvmContract +- chain: scroll_sepolia + address: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729" + type: EvmContract diff --git a/governance/xc_admin/packages/xc_admin_common/src/chains.ts b/governance/xc_admin/packages/xc_admin_common/src/chains.ts index aa69b307..74e403d0 100644 --- a/governance/xc_admin/packages/xc_admin_common/src/chains.ts +++ b/governance/xc_admin/packages/xc_admin_common/src/chains.ts @@ -40,6 +40,7 @@ export const RECEIVER_CHAINS = { neutron_testnet_pion_1: 60025, eos: 60026, syndr: 60027, + scroll: 60028, }; // If there is any overlapping value the receiver chain will replace the wormhole diff --git a/package-lock.json b/package-lock.json index ed34686a..a0dba16f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -59528,7 +59528,7 @@ }, "target_chains/ethereum/sdk/js": { "name": "@pythnetwork/pyth-evm-js", - "version": "1.24.0", + "version": "1.25.0", "license": "Apache-2.0", "dependencies": { "@pythnetwork/price-service-client": "*", diff --git a/target_chains/ethereum/contracts/networks/534351.json b/target_chains/ethereum/contracts/networks/534351.json new file mode 100644 index 00000000..81e148f7 --- /dev/null +++ b/target_chains/ethereum/contracts/networks/534351.json @@ -0,0 +1,16 @@ +[ + { + "contractName": "Migrations", + "address": "0xf5BBe9558F4Bf37F1eB82fb2CEdb1C775FA56832" + }, + { + "contractName": "WormholeReceiver", + "address": "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a", + "transactionHash": "0xb8f76498bf67a70d502f0182570371a6e37947bdd66b3daceac39751d0ba5c4b" + }, + { + "contractName": "PythUpgradable", + "address": "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729", + "transactionHash": "0x59eefaa21c17deed2ecce2c766450e78b66d5c9790e7dfbf10114a72b785838f" + } +] diff --git a/target_chains/ethereum/sdk/js/package.json b/target_chains/ethereum/sdk/js/package.json index 70101c27..56d3c123 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.24.0", + "version": "1.25.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 90337c5f..5f4a218f 100644 --- a/target_chains/ethereum/sdk/js/src/index.ts +++ b/target_chains/ethereum/sdk/js/src/index.ts @@ -61,4 +61,5 @@ export const CONTRACT_ADDR: Record = { eos_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729", base: "0x8250f4aF4B972684F7b336503E2D6dFeDeB1487a", syndr_nitro_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729", + scroll_sepolia: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729", };