Skip to content

Commit a90eb6f

Browse files
authored
feat: celo network [skip cypress] (#2391)
1 parent fa0f1d4 commit a90eb6f

File tree

5 files changed

+31
-10
lines changed

5 files changed

+31
-10
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131
"test:coverage": "jest --coverage"
3232
},
3333
"dependencies": {
34-
"@aave/contract-helpers": "1.32.1",
35-
"@aave/math-utils": "1.32.1",
34+
"@aave/contract-helpers": "1.33.0",
35+
"@aave/math-utils": "1.33.0",
3636
"@bgd-labs/aave-address-book": "^4.15.0",
3737
"@emotion/cache": "11.10.3",
3838
"@emotion/react": "11.10.4",

public/icons/networks/celo.svg

Lines changed: 1 addition & 0 deletions
Loading

src/ui-config/governanceConfig.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
GovernanceV3Avalanche,
77
GovernanceV3Base,
88
GovernanceV3BNB,
9+
GovernanceV3Celo,
910
GovernanceV3Ethereum,
1011
GovernanceV3Gnosis,
1112
GovernanceV3Linea,
@@ -140,6 +141,7 @@ export const governanceChainConfig: GovernanceChainConfig = {
140141
[ChainId.zksync]: GovernanceV3ZkSync.PC_DATA_HELPER,
141142
[ChainId.linea]: GovernanceV3Linea.PC_DATA_HELPER,
142143
[ChainId.sonic]: GovernanceV3Sonic.PC_DATA_HELPER,
144+
[ChainId.celo]: GovernanceV3Celo.PC_DATA_HELPER,
143145
},
144146
votingAssets: {
145147
aaveTokenAddress: AaveV3Ethereum.ASSETS.AAVE.UNDERLYING,

src/ui-config/networksConfig.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ import {
77
base,
88
baseSepolia,
99
bsc,
10+
celo,
1011
Chain,
1112
gnosis,
1213
linea,
@@ -438,6 +439,23 @@ export const prodNetworkConfig: Record<string, BaseNetworkConfig> = {
438439
ratesHistoryApiUrl,
439440
wagmiChain: sonic,
440441
},
442+
[ChainId.celo]: {
443+
name: 'Celo',
444+
privateJsonRPCUrl: 'https://celo-mainnet.g.alchemy.com/v2/QSIQ93fznmXwv9qEWBnKIOOsQGldk3wL',
445+
publicJsonRPCUrl: ['https://rpc.ankr.com/celo', 'https://celo.drpc.org'],
446+
baseAssetSymbol: '', // N/A
447+
wrappedBaseAssetSymbol: '', // N/A
448+
baseAssetDecimals: 0, // N/A
449+
explorerLink: 'https://celoscan.io/',
450+
networkLogoPath: '/icons/networks/celo.svg',
451+
bridge: {
452+
icon: '/icons/networks/celo.svg',
453+
name: 'Celo Bridge',
454+
url: 'https://docs.celo.org/protocol/bridge',
455+
},
456+
ratesHistoryApiUrl,
457+
wagmiChain: celo,
458+
},
441459
};
442460

443461
export const networkConfigs = {

yarn.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
# yarn lockfile v1
33

44

5-
"@aave/contract-helpers@1.32.1":
6-
version "1.32.1"
7-
resolved "https://registry.yarnpkg.com/@aave/contract-helpers/-/contract-helpers-1.32.1.tgz#ad3e216118f282f450b7ab160bd270930ccf5fa4"
8-
integrity sha512-iYkopRnzbfnW7Pxa/qNmqVJVSCWKqF14FNK9SKpmLAkndH8P0UZqSkIdcnvW/ekNx6cyGIc506gKc00j5OnegQ==
5+
"@aave/contract-helpers@1.33.0":
6+
version "1.33.0"
7+
resolved "https://registry.yarnpkg.com/@aave/contract-helpers/-/contract-helpers-1.33.0.tgz#d58f44c83737dfe3ab04b3776f1133064e08ebc6"
8+
integrity sha512-hwOG+B6LYv8/oZIW3OYPZqr2OwEVYLWXO230h3LfUpG9P4+MhknZeyuJHRA7uGNpj2dpP/KYuLrYYfx4G9D0aQ==
99
dependencies:
1010
isomorphic-unfetch "^3.1.0"
1111

12-
"@aave/math-utils@1.32.1":
13-
version "1.32.1"
14-
resolved "https://registry.yarnpkg.com/@aave/math-utils/-/math-utils-1.32.1.tgz#9cd4bb9343f2fabb078b6ca61b5845c7044fe643"
15-
integrity sha512-uLjwGNEOilWWguW7CX6Dwsk9uP4aT9HmOCzXpHqDrPbR2oGSLV8BlvHWx/8wzY9Cdt5Jr4ofP0vm/Xs4lrgDNg==
12+
"@aave/math-utils@1.33.0":
13+
version "1.33.0"
14+
resolved "https://registry.yarnpkg.com/@aave/math-utils/-/math-utils-1.33.0.tgz#2386f7353dfdc7bdd88079e4fd7351275b1cdbf6"
15+
integrity sha512-guDUruuQTmp8QLUNRZJFxzu/VyJPs0Mieebk+tJDplVNq+TzaSZHU3YtAxp/u6tGw166v47ALFrt7yA/oaX1TA==
1616

1717
"@adobe/css-tools@^4.0.1":
1818
version "4.4.1"

0 commit comments

Comments
 (0)