Skip to content

chore(pricefee&entropy) Deploy Sonic Mainnet #2164

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 3, 2024
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 contract_manager/scripts/deploy_evm_entropy_contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
getOrDeployWormholeContract,
BaseDeployConfig,
} from "./common";
import Web3 from "web3";

Check warning on line 21 in contract_manager/scripts/deploy_evm_entropy_contracts.ts

View workflow job for this annotation

GitHub Actions / test

'Web3' is defined but never used

interface DeploymentConfig extends BaseDeployConfig {
type: DeploymentType;
Expand Down Expand Up @@ -134,7 +134,7 @@
const accountAddress = chain.isMainnet()
? defaultAddresses.mainnet
: defaultAddresses.testnet;
const web3 = new Web3(chain.getRpcUrl());
const web3 = chain.getWeb3();
const balance = Number(
web3.utils.fromWei(await web3.eth.getBalance(accountAddress), "ether")
);
Expand Down
5 changes: 5 additions & 0 deletions contract_manager/store/chains/EvmChains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -810,3 +810,8 @@
rpcUrl: https://rpc.blaze.soniclabs.com
networkId: 57054
type: EvmChain
- id: fantom_sonic_mainnet
mainnet: true
rpcUrl: https://rpc.soniclabs.com
networkId: 146
type: EvmChain
3 changes: 3 additions & 0 deletions contract_manager/store/contracts/EvmEntropyContracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,6 @@
- chain: unichain_sepolia
address: "0x8D254a21b3C86D32F7179855531CE99164721933"
type: EvmEntropyContract
- chain: fantom_sonic_mainnet
address: "0x36825bf3Fbdf5a29E2d5148bfe7Dcf7B5639e320"
type: EvmEntropyContract
7 changes: 5 additions & 2 deletions contract_manager/store/contracts/EvmPriceFeedContracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@
- chain: mathematician_in_heart
address: "0x8739d5024B5143278E2b15Bd9e7C26f6CEc658F1"
type: EvmPriceFeedContract
- chain: happy_bird_song_ends_with_tio # stable contract
- chain: happy_bird_song_ends_with_tio
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
type: EvmPriceFeedContract
- chain: eventum_testnet
Expand All @@ -448,6 +448,9 @@
- chain: fantom_sonic_devnet
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
type: EvmPriceFeedContract
- chain: happy_bird_song_ends_with_tio # beta contract
- chain: happy_bird_song_ends_with_tio
address: "0xDd24F84d36BF92C65F92307595335bdFab5Bbd21"
type: EvmPriceFeedContract
- chain: fantom_sonic_mainnet
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
type: EvmPriceFeedContract
7 changes: 5 additions & 2 deletions contract_manager/store/contracts/EvmWormholeContracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@
- chain: mathematician_in_heart
address: "0x056f829183Ec806A78c26C98961678c24faB71af"
type: EvmWormholeContract
- chain: happy_bird_song_ends_with_tio # stable wormhole
- chain: happy_bird_song_ends_with_tio
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
type: EvmWormholeContract
- chain: eventum_testnet
Expand All @@ -442,6 +442,9 @@
- chain: fantom_sonic_devnet
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
type: EvmWormholeContract
- chain: happy_bird_song_ends_with_tio # beta wormhole
- chain: happy_bird_song_ends_with_tio
address: "0x0708325268dF9F66270F1401206434524814508b"
type: EvmWormholeContract
- chain: fantom_sonic_mainnet
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
type: EvmWormholeContract
1 change: 1 addition & 0 deletions governance/xc_admin/packages/xc_admin_common/src/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ export const RECEIVER_CHAINS = {
ton_mainnet: 60069,
horse_dream: 60070,
mathematician_in_heart: 60071,
fantom_sonic_mainnet: 60072,

// Testnets as a separate chain ids (to use stable data sources and governance for them)
injective_testnet: 60013,
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.77.0",
"version": "1.78.0",
"description": "Pyth Network EVM Utils in JS",
"homepage": "https://pyth.network",
"author": {
Expand Down
1 change: 1 addition & 0 deletions target_chains/ethereum/sdk/js/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export const CONTRACT_ADDR: Record<string, string> = {
ethereum: "0x4305FB66699C3B2702D4d05CF36551390A4c69C6",
etherlink: "0x2880aB155794e7179c9eE2e38200202908C17B43",
fantom: "0xff1a0f4744e8582DF1aE09D5611b887B6a12925C",
fantom_sonic_mainnet: "0x2880aB155794e7179c9eE2e38200202908C17B43",
filecoin: "0xA2aa501b19aff244D90cc15a4Cf739D2725B5729",
flow_mainnet: "0x2880aB155794e7179c9eE2e38200202908C17B43",
gnosis: "0x2880aB155794e7179c9eE2e38200202908C17B43",
Expand Down
Loading