Skip to content

Commit

Permalink
feat: sonic network config [skip cypress] (#2347)
Browse files Browse the repository at this point in the history
  • Loading branch information
grothem authored Feb 24, 2025
1 parent 21da706 commit 9b330f3
Show file tree
Hide file tree
Showing 8 changed files with 33 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const testData = {
},
};

describe('USDbC INTEGRATION SPEC, BASE V3 MARKET', () => {
describe.skip('USDbC INTEGRATION SPEC, BASE V3 MARKET', () => {
const skipTestState = skipState(false);
configEnvWithTenderlyBaseFork({
v3: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ const testData = {
},
};
//due oracle
describe('BNB INTEGRATION SPEC, BNB V3 MARKET', () => {
describe.skip('BNB INTEGRATION SPEC, BNB V3 MARKET', () => {
const skipTestState = skipState(false);
configEnvWithTenderlyBnbFork({ v3: true });

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const testData = {
},
};

describe.skip('USDbC INTEGRATION SPEC, BASE V3 MARKET', () => {
describe('USDbC INTEGRATION SPEC, BASE V3 MARKET', () => {
const skipTestState = skipState(true);
configEnvWithTenderlyBnbFork({
v3: true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"dependencies": {
"@aave/contract-helpers": "1.32.1",
"@aave/math-utils": "1.32.1",
"@bgd-labs/aave-address-book": "4.10.0",
"@bgd-labs/aave-address-book": "4.13.1",
"@emotion/cache": "11.10.3",
"@emotion/react": "11.10.4",
"@emotion/server": "latest",
Expand Down
1 change: 1 addition & 0 deletions public/icons/networks/sonic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 3 additions & 1 deletion src/ui-config/governanceConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import {
GovernanceV3Optimism,
GovernanceV3Polygon,
GovernanceV3Scroll,
GovernanceV3Sonic,
GovernanceV3ZkSync,
} from '@bgd-labs/aave-address-book';

Expand Down Expand Up @@ -137,7 +138,8 @@ export const governanceChainConfig: GovernanceChainConfig = {
[ChainId.bnb]: GovernanceV3BNB.PC_DATA_HELPER,
[ChainId.scroll]: GovernanceV3Scroll.PC_DATA_HELPER,
[ChainId.zksync]: GovernanceV3ZkSync.PC_DATA_HELPER,
[59144]: GovernanceV3Linea.PC_DATA_HELPER,
[ChainId.linea]: GovernanceV3Linea.PC_DATA_HELPER,
[ChainId.sonic]: GovernanceV3Sonic.PC_DATA_HELPER,
},
votingAssets: {
aaveTokenAddress: AaveV3Ethereum.ASSETS.AAVE.UNDERLYING,
Expand Down
21 changes: 21 additions & 0 deletions src/ui-config/networksConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import {
scroll,
scrollSepolia,
sepolia,
sonic,
zksync,
} from 'wagmi/chains';

Expand Down Expand Up @@ -416,6 +417,26 @@ export const prodNetworkConfig: Record<string, BaseNetworkConfig> = {
ratesHistoryApiUrl,
wagmiChain: linea,
},
[ChainId.sonic]: {
name: 'Sonic',
privateJsonRPCUrl: 'https://sonic-mainnet.g.alchemy.com/v2/L7wpvN30xWzkijd2cRwD8n0VLFM9UTmv',
publicJsonRPCUrl: [
'https://rpc.soniclabs.com',
'https://sonic.drpc.org',
'https://sonic-rpc.publicnode.com',
],
baseAssetSymbol: 'S',
wrappedBaseAssetSymbol: 'wS',
baseAssetDecimals: 18,
explorerLink: 'https://sonicscan.org',
networkLogoPath: '/icons/networks/sonic.svg',
bridge: {
icon: '/icons/networks/sonic.svg',
name: 'Sonic Bridge',
url: 'https://gateway.soniclabs.com',
},
wagmiChain: sonic,
},
};

export const networkConfigs = {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1066,10 +1066,10 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@bgd-labs/aave-address-book@4.10.0":
version "4.10.0"
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-4.10.0.tgz#3df9b6afda47d779f39b78aa48c4f0982a18c6e1"
integrity sha512-+WtMRtXLFpic/PLhNn32FIFzNFIgqlgC5Z9RLOsPgbdkvDDAW83w1emoxqxbW0jYGGNcYJUTTrtXqlhDeQGwkg==
"@bgd-labs/aave-address-book@4.13.1":
version "4.13.1"
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-4.13.1.tgz#7ac9e148d0d4c4ab16c83e7eedafc62bbfbebc08"
integrity sha512-ssg586aumbC2j4ZDfe0xgaX8KJgtrK3BocSNJVtgtPsbtnCBkPNT+ogUsBp8uNHF8lfCGkZ92rzHgwlFOf2YfQ==

"@coinbase/[email protected]":
version "4.2.3"
Expand Down

1 comment on commit 9b330f3

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This commit was deployed on ipfs

Please sign in to comment.