Skip to content

Commit 9b330f3

Browse files
authored
feat: sonic network config [skip cypress] (#2347)
1 parent 21da706 commit 9b330f3

File tree

8 files changed

+33
-9
lines changed

8 files changed

+33
-9
lines changed

cypress/e2e/1-v3-markets/6-base-v3-market/0-assets/usdbc.base-v3.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const testData = {
7676
},
7777
};
7878

79-
describe('USDbC INTEGRATION SPEC, BASE V3 MARKET', () => {
79+
describe.skip('USDbC INTEGRATION SPEC, BASE V3 MARKET', () => {
8080
const skipTestState = skipState(false);
8181
configEnvWithTenderlyBaseFork({
8282
v3: true,

cypress/e2e/1-v3-markets/8-bnb-v3-market/0-assets/bnb.bnb-v3.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ const testData = {
106106
},
107107
};
108108
//due oracle
109-
describe('BNB INTEGRATION SPEC, BNB V3 MARKET', () => {
109+
describe.skip('BNB INTEGRATION SPEC, BNB V3 MARKET', () => {
110110
const skipTestState = skipState(false);
111111
configEnvWithTenderlyBnbFork({ v3: true });
112112

cypress/e2e/1-v3-markets/8-bnb-v3-market/0-assets/usdc.bnb-v3.cy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const testData = {
7676
},
7777
};
7878

79-
describe.skip('USDbC INTEGRATION SPEC, BASE V3 MARKET', () => {
79+
describe('USDbC INTEGRATION SPEC, BASE V3 MARKET', () => {
8080
const skipTestState = skipState(true);
8181
configEnvWithTenderlyBnbFork({
8282
v3: true,

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"@aave/contract-helpers": "1.32.1",
3535
"@aave/math-utils": "1.32.1",
36-
"@bgd-labs/aave-address-book": "4.10.0",
36+
"@bgd-labs/aave-address-book": "4.13.1",
3737
"@emotion/cache": "11.10.3",
3838
"@emotion/react": "11.10.4",
3939
"@emotion/server": "latest",

public/icons/networks/sonic.svg

Lines changed: 1 addition & 0 deletions
Loading

src/ui-config/governanceConfig.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import {
1313
GovernanceV3Optimism,
1414
GovernanceV3Polygon,
1515
GovernanceV3Scroll,
16+
GovernanceV3Sonic,
1617
GovernanceV3ZkSync,
1718
} from '@bgd-labs/aave-address-book';
1819

@@ -137,7 +138,8 @@ export const governanceChainConfig: GovernanceChainConfig = {
137138
[ChainId.bnb]: GovernanceV3BNB.PC_DATA_HELPER,
138139
[ChainId.scroll]: GovernanceV3Scroll.PC_DATA_HELPER,
139140
[ChainId.zksync]: GovernanceV3ZkSync.PC_DATA_HELPER,
140-
[59144]: GovernanceV3Linea.PC_DATA_HELPER,
141+
[ChainId.linea]: GovernanceV3Linea.PC_DATA_HELPER,
142+
[ChainId.sonic]: GovernanceV3Sonic.PC_DATA_HELPER,
141143
},
142144
votingAssets: {
143145
aaveTokenAddress: AaveV3Ethereum.ASSETS.AAVE.UNDERLYING,

src/ui-config/networksConfig.ts

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
scroll,
1919
scrollSepolia,
2020
sepolia,
21+
sonic,
2122
zksync,
2223
} from 'wagmi/chains';
2324

@@ -416,6 +417,26 @@ export const prodNetworkConfig: Record<string, BaseNetworkConfig> = {
416417
ratesHistoryApiUrl,
417418
wagmiChain: linea,
418419
},
420+
[ChainId.sonic]: {
421+
name: 'Sonic',
422+
privateJsonRPCUrl: 'https://sonic-mainnet.g.alchemy.com/v2/L7wpvN30xWzkijd2cRwD8n0VLFM9UTmv',
423+
publicJsonRPCUrl: [
424+
'https://rpc.soniclabs.com',
425+
'https://sonic.drpc.org',
426+
'https://sonic-rpc.publicnode.com',
427+
],
428+
baseAssetSymbol: 'S',
429+
wrappedBaseAssetSymbol: 'wS',
430+
baseAssetDecimals: 18,
431+
explorerLink: 'https://sonicscan.org',
432+
networkLogoPath: '/icons/networks/sonic.svg',
433+
bridge: {
434+
icon: '/icons/networks/sonic.svg',
435+
name: 'Sonic Bridge',
436+
url: 'https://gateway.soniclabs.com',
437+
},
438+
wagmiChain: sonic,
439+
},
419440
};
420441

421442
export const networkConfigs = {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1066,10 +1066,10 @@
10661066
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
10671067
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
10681068

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

10741074
"@coinbase/[email protected]":
10751075
version "4.2.3"

0 commit comments

Comments
 (0)