Skip to content

Commit f587b86

Browse files
authored
(chore)(pricefeed & entropy) etherlink_testnet (#1685)
1 parent 9765aca commit f587b86

File tree

8 files changed

+25
-2
lines changed

8 files changed

+25
-2
lines changed

contract_manager/scripts/deploy_evm_entropy_contracts.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,12 +148,19 @@ async function topupAccountsIfNecessary(
148148
deploymentConfig.privateKey
149149
);
150150
web3.eth.accounts.wallet.add(signer);
151+
const estimatedGas = await web3.eth.estimateGas({
152+
from: signer.address,
153+
to: accountAddress,
154+
value: web3.utils.toWei(`${MIN_BALANCE}`, "ether"),
155+
});
156+
151157
const tx = await web3.eth.sendTransaction({
152158
from: signer.address,
153159
to: accountAddress,
154-
gas: 30000,
160+
gas: estimatedGas * deploymentConfig.gasMultiplier,
155161
value: web3.utils.toWei(`${MIN_BALANCE}`, "ether"),
156162
});
163+
157164
console.log(
158165
`Topped up the ${accountName} address. Tx: `,
159166
tx.transactionHash

contract_manager/store/chains/EvmChains.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -624,3 +624,8 @@
624624
rpcUrl: https://rpc.gravity.xyz/
625625
networkId: 1625
626626
type: EvmChain
627+
- id: etherlink_testnet
628+
mainnet: false
629+
rpcUrl: https://node.ghostnet.etherlink.com/
630+
networkId: 128123
631+
type: EvmChain

contract_manager/store/contracts/EvmEntropyContracts.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,6 @@
8282
- chain: berachain_testnet_v2
8383
address: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320"
8484
type: EvmEntropyContract
85+
- chain: etherlink_testnet
86+
address: "0x23f0e8FAeE7bbb405E7A7C3d60138FCfd43d7509"
87+
type: EvmEntropyContract

contract_manager/store/contracts/EvmPriceFeedContracts.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,3 +352,6 @@
352352
- chain: opbnb_testnet
353353
address: "0x41c9e39574F40Ad34c79f1C99B66A45eFB830d4c"
354354
type: EvmPriceFeedContract
355+
- chain: etherlink_testnet
356+
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
357+
type: EvmPriceFeedContract

contract_manager/store/contracts/EvmWormholeContracts.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,3 +331,6 @@
331331
- chain: opbnb_testnet
332332
address: "0x74f09cb3c7e2A01865f424FD14F6dc9A14E3e94E"
333333
type: EvmWormholeContract
334+
- chain: etherlink_testnet
335+
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
336+
type: EvmWormholeContract

governance/xc_admin/packages/xc_admin_common/src/chains.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ export const RECEIVER_CHAINS = {
160160
dela_mithreum_deperp_testnet: 50080,
161161
berachain_testnet_v2: 50081,
162162
opbnb_testnet: 50082,
163+
etherlink_testnet: 50083,
163164
};
164165

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

target_chains/ethereum/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/pyth-evm-js",
3-
"version": "1.52.0",
3+
"version": "1.53.0",
44
"description": "Pyth Network EVM Utils in JS",
55
"homepage": "https://pyth.network",
66
"author": {

target_chains/ethereum/sdk/js/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export const CONTRACT_ADDR: Record<string, string> = {
8383
cronos_testnet: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320",
8484
dela_deperp_testnet: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
8585
dela_mithreum_deperp_testnet: "0xe9d69CdD6Fe41e7B621B4A688C5D1a68cB5c8ADc",
86+
etherlink_testnet: "0x2880aB155794e7179c9eE2e38200202908C17B43",
8687
eos_testnet: "0x0708325268dF9F66270F1401206434524814508b",
8788
evmos_testnet: "0x74f09cb3c7e2A01865f424FD14F6dc9A14E3e94E",
8889
fantom_sonic_testnet: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320",

0 commit comments

Comments
 (0)