Skip to content

Commit 7b504aa

Browse files
authored
feat: plasma network config (#2646)
1 parent 3b58ab3 commit 7b504aa

5 files changed

Lines changed: 114 additions & 8 deletions

File tree

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
"@aave/math-utils": "1.36.1",
3636
"@aave/react": "0.6.1",
3737
"@amplitude/analytics-browser": "^2.13.0",
38-
"@bgd-labs/aave-address-book": "^4.29.1",
38+
"@bgd-labs/aave-address-book": "^4.30.3",
3939
"@cowprotocol/app-data": "^3.1.0",
4040
"@cowprotocol/cow-sdk": "6.0.0-RC.47",
4141
"@emotion/cache": "11.10.3",
@@ -89,7 +89,7 @@
8989
"remark-gfm": "^3.0.1",
9090
"sonner": "^2.0.3",
9191
"tiny-invariant": "^1.3.1",
92-
"viem": "^2.29.2",
92+
"viem": "^2.37.6",
9393
"wagmi": "^2.15.2",
9494
"zustand": "^5.0.2"
9595
},

public/icons/networks/plasma.svg

Lines changed: 4 additions & 0 deletions
Loading

src/ui-config/governanceConfig.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import {
1212
GovernanceV3Linea,
1313
GovernanceV3Metis,
1414
GovernanceV3Optimism,
15+
GovernanceV3Plasma,
1516
GovernanceV3Polygon,
1617
GovernanceV3Scroll,
1718
GovernanceV3Soneium,
@@ -144,6 +145,7 @@ export const governanceChainConfig: GovernanceChainConfig = {
144145
[ChainId.sonic]: GovernanceV3Sonic.PC_DATA_HELPER,
145146
[ChainId.celo]: GovernanceV3Celo.PC_DATA_HELPER,
146147
[ChainId.soneium]: GovernanceV3Soneium.PC_DATA_HELPER,
148+
[9745]: GovernanceV3Plasma.PC_DATA_HELPER,
147149
},
148150
votingAssets: {
149151
aaveTokenAddress: AaveV3Ethereum.ASSETS.AAVE.UNDERLYING,

src/ui-config/networksConfig.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import {
1515
metis,
1616
optimism,
1717
optimismSepolia,
18+
plasma,
1819
polygon,
1920
scroll,
2021
scrollSepolia,
@@ -426,6 +427,16 @@ export const prodNetworkConfig: Record<string, BaseNetworkConfig> = {
426427
},
427428
wagmiChain: soneium,
428429
},
430+
[9745]: {
431+
name: 'Plasma',
432+
publicJsonRPCUrl: ['https://rpc.plasma.to'],
433+
baseAssetSymbol: 'XPL',
434+
wrappedBaseAssetSymbol: 'WXPL',
435+
baseAssetDecimals: 18,
436+
explorerLink: 'https://plasma.to',
437+
networkLogoPath: '/icons/networks/plasma.svg',
438+
wagmiChain: plasma,
439+
},
429440
};
430441

431442
export const networkConfigs = {

yarn.lock

Lines changed: 95 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.9.2.tgz#60111a5d9db45b2e5cbb6231b0bb8d97e8659316"
7676
integrity sha512-0h+FrQDqe2Wn+IIGFkTCd4aAwTJ+7834Ek1COohCyV26AXhwQ7WQaz+4F/nLOeVl/3BtWHOHLPsq46V8YB46Eg==
7777

78-
"@adraffy/ens-normalize@^1.10.1":
78+
"@adraffy/ens-normalize@^1.10.1", "@adraffy/ens-normalize@^1.11.0":
7979
version "1.11.0"
8080
resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.11.0.tgz#42cc67c5baa407ac25059fcd7d405cc5ecdb0c33"
8181
integrity sha512-/3DDPKHqqIqxUULp8yP4zODUY1i+2xvVWsv8A79xGWdCAG+8sb0hRh0Rk2QyOJUnnbyPUAZYcpBuRe3nS2OIUg==
@@ -1199,10 +1199,10 @@
11991199
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
12001200
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
12011201

1202-
"@bgd-labs/aave-address-book@^4.29.1":
1203-
version "4.29.1"
1204-
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-4.29.1.tgz#e7ab0c0a1f498f1f0f86efb547c223ee6d5a8954"
1205-
integrity sha512-sI2Suqk5wOwSH7O6+SvqcdaCRr4P2T6a6Ko6EFvZ2wPmde3lAfAov6u8Zan5LN1fS0AP8C5pNbzRJmgnwrNaWg==
1202+
"@bgd-labs/aave-address-book@^4.30.3":
1203+
version "4.30.3"
1204+
resolved "https://registry.yarnpkg.com/@bgd-labs/aave-address-book/-/aave-address-book-4.30.3.tgz#80c4f2af7620db9bed79b34512f634c9f5ea3514"
1205+
integrity sha512-CrfiNgIT7L6rigVs/yT90prMBJRgqrTu2uAQ7+urhDANf/1+ps0eEMvYDVtLaROGOu6NfPWSC2gbCrEsBbZung==
12061206

12071207
"@coinbase/wallet-sdk@4.3.0":
12081208
version "4.3.0"
@@ -3355,6 +3355,11 @@
33553355
resolved "https://registry.yarnpkg.com/@noble/ciphers/-/ciphers-1.1.3.tgz#eb27085aa7ce94d8c6eaeb64299bab0589920ec1"
33563356
integrity sha512-Ygv6WnWJHLLiW4fnNDC1z+i13bud+enXOFRBlpxI+NJliPWx5wdR+oWlTjLuBPTqjUjtHXtjkU6w3kuuH6upZA==
33573357

3358+
"@noble/ciphers@^1.3.0":
3359+
version "1.3.0"
3360+
resolved "https://registry.yarnpkg.com/@noble/ciphers/-/ciphers-1.3.0.tgz#f64b8ff886c240e644e5573c097f86e5b43676dc"
3361+
integrity sha512-2I0gnIVPtfnMw9ee9h1dJG7tp81+8Ob3OJb3Mv37rx5L40/b0i7djjCVvGOVqc9AEIQyvyu1i6ypKdFw8R8gQw==
3362+
33583363
"@noble/curves@1.4.2", "@noble/curves@~1.4.0":
33593364
version "1.4.2"
33603365
resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.4.2.tgz#40309198c76ed71bc6dbf7ba24e81ceb4d0d1fe9"
@@ -3390,13 +3395,27 @@
33903395
dependencies:
33913396
"@noble/hashes" "1.7.2"
33923397

3398+
"@noble/curves@1.9.1":
3399+
version "1.9.1"
3400+
resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.9.1.tgz#9654a0bc6c13420ae252ddcf975eaf0f58f0a35c"
3401+
integrity sha512-k11yZxZg+t+gWvBbIswW0yoJlu8cHOC7dhunwOzoWH/mXGBiYyR4YY6hAEK/3EUs4UpB8la1RfdRpeGsFHkWsA==
3402+
dependencies:
3403+
"@noble/hashes" "1.8.0"
3404+
33933405
"@noble/curves@^1.4.0", "@noble/curves@^1.6.0", "@noble/curves@~1.7.0":
33943406
version "1.7.0"
33953407
resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.7.0.tgz#0512360622439256df892f21d25b388f52505e45"
33963408
integrity sha512-UTMhXK9SeDhFJVrHeUJ5uZlI6ajXg10O6Ddocf9S6GjbSBVZsJo88HzKwXznNfGpMTRDyJkqMjNDPYgf0qFWnw==
33973409
dependencies:
33983410
"@noble/hashes" "1.6.0"
33993411

3412+
"@noble/curves@~1.9.0":
3413+
version "1.9.7"
3414+
resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.9.7.tgz#79d04b4758a43e4bca2cbdc62e7771352fa6b951"
3415+
integrity sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==
3416+
dependencies:
3417+
"@noble/hashes" "1.8.0"
3418+
34003419
"@noble/hashes@1.1.2":
34013420
version "1.1.2"
34023421
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.1.2.tgz#e9e035b9b166ca0af657a7848eb2718f0f22f183"
@@ -3432,6 +3451,11 @@
34323451
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.7.2.tgz#d53c65a21658fb02f3303e7ee3ba89d6754c64b4"
34333452
integrity sha512-biZ0NUSxyjLLqo6KxEJ1b+C2NAx0wtDoFvCaXHGgUkeHzf3Xc1xKumFKREuT7f7DARNZ/slvYUwFG6B0f2b6hQ==
34343453

3454+
"@noble/hashes@1.8.0", "@noble/hashes@^1.8.0", "@noble/hashes@~1.8.0":
3455+
version "1.8.0"
3456+
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.8.0.tgz#cee43d801fcef9644b11b8194857695acd5f815a"
3457+
integrity sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A==
3458+
34353459
"@noble/hashes@^1.3.1", "@noble/hashes@^1.4.0", "@noble/hashes@^1.5.0", "@noble/hashes@~1.6.0":
34363460
version "1.6.1"
34373461
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.6.1.tgz#df6e5943edcea504bac61395926d6fd67869a0d5"
@@ -3807,6 +3831,11 @@
38073831
resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.2.4.tgz#002eb571a35d69bdb4c214d0995dff76a8dcd2a9"
38083832
integrity sha512-5Yy9czTO47mqz+/J8GM6GIId4umdCk1wc1q8rKERQulIoc8VP9pzDcghv10Tl2E7R96ZUx/PhND3ESYUQX8NuQ==
38093833

3834+
"@scure/base@~1.2.5":
3835+
version "1.2.6"
3836+
resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.2.6.tgz#ca917184b8231394dd8847509c67a0be522e59f6"
3837+
integrity sha512-g/nm5FgUa//MCj1gV09zTJTaM6KBAHqLN907YVQqf7zC49+DcO4B1so4ZX07Ef10Twr6nuqYEH9GEggFXA4Fmg==
3838+
38103839
"@scure/bip32@1.4.0":
38113840
version "1.4.0"
38123841
resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.4.0.tgz#4e1f1e196abedcef395b33b9674a042524e20d67"
@@ -3834,6 +3863,15 @@
38343863
"@noble/hashes" "~1.7.1"
38353864
"@scure/base" "~1.2.2"
38363865

3866+
"@scure/bip32@1.7.0", "@scure/bip32@^1.7.0":
3867+
version "1.7.0"
3868+
resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.7.0.tgz#b8683bab172369f988f1589640e53c4606984219"
3869+
integrity sha512-E4FFX/N3f4B80AKWp5dP6ow+flD1LQZo/w8UnLGYZO674jS6YnYeepycOOksv+vLPSpgN35wgKgy+ybfTb2SMw==
3870+
dependencies:
3871+
"@noble/curves" "~1.9.0"
3872+
"@noble/hashes" "~1.8.0"
3873+
"@scure/base" "~1.2.5"
3874+
38373875
"@scure/bip32@^1.5.0":
38383876
version "1.6.0"
38393877
resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.6.0.tgz#6dbc6b4af7c9101b351f41231a879d8da47e0891"
@@ -3867,6 +3905,14 @@
38673905
"@noble/hashes" "~1.7.1"
38683906
"@scure/base" "~1.2.4"
38693907

3908+
"@scure/bip39@1.6.0", "@scure/bip39@^1.6.0":
3909+
version "1.6.0"
3910+
resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.6.0.tgz#475970ace440d7be87a6086cbee77cb8f1a684f9"
3911+
integrity sha512-+lF0BbLiJNwVlev4eKelw1WWLaiKXw7sSl8T6FvBlWkdX+94aGJ4o8XjUdlyhTCjd8c+B3KT3JfS8P0bLRNU6A==
3912+
dependencies:
3913+
"@noble/hashes" "~1.8.0"
3914+
"@scure/base" "~1.2.5"
3915+
38703916
"@scure/bip39@^1.4.0":
38713917
version "1.5.0"
38723918
resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.5.0.tgz#c8f9533dbd787641b047984356531d84485f19be"
@@ -5098,6 +5144,11 @@ abitype@1.0.8:
50985144
resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.8.tgz#3554f28b2e9d6e9f35eb59878193eabd1b9f46ba"
50995145
integrity sha512-ZeiI6h3GnW06uYDLx0etQtX/p8E24UaHHBj57RSjK7YBFe7iuVn07EDpOeP451D06sF27VOz9JJPlIKJmXgkEg==
51005146

5147+
abitype@1.1.0, abitype@^1.0.9:
5148+
version "1.1.0"
5149+
resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.1.0.tgz#510c5b3f92901877977af5e864841f443bf55406"
5150+
integrity sha512-6Vh4HcRxNMLA0puzPjM5GBgT4aAcFGKZzSgAXvuZ27shJP6NEpielTuqbBmZILR5/xd0PizkBGy5hReKz9jl5A==
5151+
51015152
abort-controller@^3.0.0:
51025153
version "3.0.0"
51035154
resolved "https://registry.yarnpkg.com/abort-controller/-/abort-controller-3.0.0.tgz#eaf54d53b62bae4138e809ca225c8439a6efb392"
@@ -9110,6 +9161,11 @@ isows@1.0.6:
91109161
resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.6.tgz#0da29d706fa51551c663c627ace42769850f86e7"
91119162
integrity sha512-lPHCayd40oW98/I0uvgaHKWCSvkzY27LjWLbtzOm64yQ+G3Q5npjjbdppU65iZXkK1Zt+kH9pfegli0AYfwYYw==
91129163

9164+
isows@1.0.7:
9165+
version "1.0.7"
9166+
resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.7.tgz#1c06400b7eed216fbba3bcbd68f12490fc342915"
9167+
integrity sha512-I1fSfDCZL5P0v33sVqeTDSpcstAg/N+wF5HS033mogOVIp4B+oHC7oOCsA3axAbBSGTJ8QubbNmnIRN/h8U7hg==
9168+
91139169
isstream@~0.1.2:
91149170
version "0.1.2"
91159171
resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a"
@@ -11149,6 +11205,20 @@ ox@0.6.9:
1114911205
abitype "^1.0.6"
1115011206
eventemitter3 "5.0.1"
1115111207

11208+
ox@0.9.3:
11209+
version "0.9.3"
11210+
resolved "https://registry.yarnpkg.com/ox/-/ox-0.9.3.tgz#92cc1008dcd913e919364fd4175c860b3eeb18db"
11211+
integrity sha512-KzyJP+fPV4uhuuqrTZyok4DC7vFzi7HLUFiUNEmpbyh59htKWkOC98IONC1zgXJPbHAhQgqs6B0Z6StCGhmQvg==
11212+
dependencies:
11213+
"@adraffy/ens-normalize" "^1.11.0"
11214+
"@noble/ciphers" "^1.3.0"
11215+
"@noble/curves" "1.9.1"
11216+
"@noble/hashes" "^1.8.0"
11217+
"@scure/bip32" "^1.7.0"
11218+
"@scure/bip39" "^1.6.0"
11219+
abitype "^1.0.9"
11220+
eventemitter3 "5.0.1"
11221+
1115211222
p-limit@^2.0.0, p-limit@^2.2.0:
1115311223
version "2.3.0"
1115411224
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1"
@@ -13401,7 +13471,7 @@ viem@2.23.2:
1340113471
ox "0.6.7"
1340213472
ws "8.18.0"
1340313473

13404-
viem@>=2.23.11, viem@^2.29.2:
13474+
viem@>=2.23.11:
1340513475
version "2.29.2"
1340613476
resolved "https://registry.yarnpkg.com/viem/-/viem-2.29.2.tgz#e3033f68d6baf95c412593b213865e91634ac35e"
1340713477
integrity sha512-cukRxab90jvQ+TDD84sU3qB3UmejYqgCw4cX8SfWzvh7JPfZXI3kAMUaT5OSR2As1Mgvx1EJawccwPjGqkSSwA==
@@ -13430,6 +13500,20 @@ viem@^2.1.1:
1343013500
webauthn-p256 "0.0.10"
1343113501
ws "8.18.0"
1343213502

13503+
viem@^2.37.6:
13504+
version "2.37.6"
13505+
resolved "https://registry.yarnpkg.com/viem/-/viem-2.37.6.tgz#3b05586555bd4b2c1b7351ed148f9fa98df72027"
13506+
integrity sha512-b+1IozQ8TciVQNdQUkOH5xtFR0z7ZxR8pyloENi/a+RA408lv4LoX12ofwoiT3ip0VRhO5ni1em//X0jn/eW0g==
13507+
dependencies:
13508+
"@noble/curves" "1.9.1"
13509+
"@noble/hashes" "1.8.0"
13510+
"@scure/bip32" "1.7.0"
13511+
"@scure/bip39" "1.6.0"
13512+
abitype "1.1.0"
13513+
isows "1.0.7"
13514+
ox "0.9.3"
13515+
ws "8.18.3"
13516+
1343313517
w3c-xmlserializer@^4.0.0:
1343413518
version "4.0.0"
1343513519
resolved "https://registry.yarnpkg.com/w3c-xmlserializer/-/w3c-xmlserializer-4.0.0.tgz#aebdc84920d806222936e3cdce408e32488a3073"
@@ -13673,6 +13757,11 @@ ws@8.18.1:
1367313757
resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.1.tgz#ea131d3784e1dfdff91adb0a4a116b127515e3cb"
1367413758
integrity sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w==
1367513759

13760+
ws@8.18.3:
13761+
version "8.18.3"
13762+
resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.3.tgz#b56b88abffde62791c639170400c93dcb0c95472"
13763+
integrity sha512-PEIGCY5tSlUt50cqyMXfCzX+oOPqN0vuGqWzbcJ2xvnkzkq46oOpz7dQaTDBdfICb4N14+GARUDw2XV2N4tvzg==
13764+
1367613765
ws@8.5.0:
1367713766
version "8.5.0"
1367813767
resolved "https://registry.yarnpkg.com/ws/-/ws-8.5.0.tgz#bfb4be96600757fe5382de12c670dab984a1ed4f"

0 commit comments

Comments
 (0)