Skip to content

Commit 7290d17

Browse files
authored
Merge pull request #31 from ourzora/01-30-add_abstract_main_testnet_and_uni_chains
Add abstract main, testnet and uni chains
2 parents 1e8e478 + 8fd9bcd commit 7290d17

File tree

3 files changed

+66
-31
lines changed

3 files changed

+66
-31
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"react-router-dom": "^6.20.0",
1818
"reshaped": "^2.6.0",
1919
"toastify-js": "^1.12.0",
20-
"viem": "^2.21.43",
20+
"viem": "^2.22.17",
2121
"yup": "^1.3.2"
2222
},
2323
"scripts": {

src/chains.ts

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,15 @@ const zkAddresses: ContractNetworkConfig = {
2828

2929
// Example how to add new networks before they are merged and released from `safe-global/safe-deployments` package.
3030
export const contractNetworks: ContractNetworksConfig = {
31+
[`${chains.abstractTestnet.id}`]: zkAddresses,
32+
[`${chains.abstract.id}`]: zkAddresses,
3133
[`${chains.zoraSepolia.id}`]: defaultL2Addresses,
3234
[`${chains.blastSepolia.id}`]: defaultL2Addresses,
3335
[`${chains.optimismSepolia.id}`]: defaultL2Addresses,
3436
[`${chains.blast.id}`]: defaultL2Addresses,
37+
[`${chains.unichainSepolia.id}`]: defaultL2Addresses,
3538
[`${chains.zksyncSepoliaTestnet.id}`]: zkAddresses,
3639
[`${chains.zksync.id}`]: zkAddresses,
37-
[`${chains.abstractTestnet.id}`]: zkAddresses,
3840
};
3941

4042
export const allowedNetworks: { [chainId: number]: chains.Chain } = {
@@ -54,6 +56,9 @@ export const allowedNetworks: { [chainId: number]: chains.Chain } = {
5456
[chains.blast.id]: chains.blast,
5557
[chains.zksync.id]: chains.zkSync,
5658
[chains.zksyncSepoliaTestnet.id]: chains.zksyncSepoliaTestnet,
59+
[chains.unichainSepolia.id]: chains.unichainSepolia,
60+
[chains.abstractTestnet.id]: chains.abstractTestnet,
61+
[chains.abstract.id]: chains.abstract,
5762
};
5863

5964
Object.keys(contractNetworks).map((network) => {
@@ -62,7 +67,7 @@ Object.keys(contractNetworks).map((network) => {
6267
return;
6368
}
6469
const viemChain = Object.values(chains).find(
65-
(chain) => chain.id.toString() === network,
70+
(chain) => chain.id.toString() === network
6671
);
6772

6873
if (!viemChain) {

yarn.lock

Lines changed: 58 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,14 @@
526526
dependencies:
527527
"@noble/hashes" "1.3.3"
528528

529-
"@noble/[email protected]", "@noble/curves@^1.4.0", "@noble/curves@^1.6.0", "@noble/curves@~1.6.0":
529+
"@noble/[email protected]", "@noble/curves@~1.8.1":
530+
version "1.8.1"
531+
resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.8.1.tgz#19bc3970e205c99e4bdb1c64a4785706bce497ff"
532+
integrity sha512-warwspo+UYUPep0Q+vtdVB4Ugn8GGQj8iyB3gnRWsztmUHTI3S1nhdiWNsPUGL0vud7JlRRk1XEu7Lq1KGTnMQ==
533+
dependencies:
534+
"@noble/hashes" "1.7.1"
535+
536+
"@noble/curves@^1.6.0", "@noble/curves@~1.6.0":
530537
version "1.6.0"
531538
resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.6.0.tgz#be5296ebcd5a1730fccea4786d420f87abfeb40b"
532539
integrity sha512-TlaHRXDehJuRNR9TfZDNQ45mMEd5dwUwmicsafcIX4SsNiqnCHKjE/1alYPd/lDRVhxdhUAlv8uEhMCI5zjIJQ==
@@ -543,11 +550,16 @@
543550
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.3.tgz#39908da56a4adc270147bb07968bf3b16cfe1699"
544551
integrity sha512-V7/fPHgl+jsVPXqqeOzT8egNj2iBIVt+ECeMMG8TdcnTikP3oaBtUVqpT/gYCR68aEBJSF+XbYUxStjbFMqIIA==
545552

546-
"@noble/[email protected]", "@noble/hashes@^1.4.0", "@noble/hashes@^1.5.0", "@noble/hashes@~1.5.0":
553+
"@noble/[email protected]", "@noble/hashes@^1.5.0", "@noble/hashes@~1.5.0":
547554
version "1.5.0"
548555
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.5.0.tgz#abadc5ca20332db2b1b2aa3e496e9af1213570b0"
549556
integrity sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA==
550557

558+
"@noble/[email protected]", "@noble/hashes@~1.7.1":
559+
version "1.7.1"
560+
resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.7.1.tgz#5738f6d765710921e7a751e00c20ae091ed8db0f"
561+
integrity sha512-B8XBPsn4vT/KJAGqDzbwztd+6Yte3P4V7iafm24bxgDe/mlRuK6xmWPuCNrKt2vDafZ8MfJLlchDG/vYafQEjQ==
562+
551563
"@nodelib/[email protected]":
552564
version "2.1.5"
553565
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
@@ -1265,6 +1277,11 @@
12651277
resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.9.tgz#e5e142fbbfe251091f9c5f1dd4c834ac04c3dbd1"
12661278
integrity sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==
12671279

1280+
"@scure/base@~1.2.2", "@scure/base@~1.2.4":
1281+
version "1.2.4"
1282+
resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.2.4.tgz#002eb571a35d69bdb4c214d0995dff76a8dcd2a9"
1283+
integrity sha512-5Yy9czTO47mqz+/J8GM6GIId4umdCk1wc1q8rKERQulIoc8VP9pzDcghv10Tl2E7R96ZUx/PhND3ESYUQX8NuQ==
1284+
12681285
12691286
version "1.3.3"
12701287
resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.3.3.tgz#a9624991dc8767087c57999a5d79488f48eae6c8"
@@ -1274,7 +1291,16 @@
12741291
"@noble/hashes" "~1.3.2"
12751292
"@scure/base" "~1.1.4"
12761293

1277-
"@scure/[email protected]", "@scure/bip32@^1.5.0":
1294+
1295+
version "1.6.2"
1296+
resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.6.2.tgz#093caa94961619927659ed0e711a6e4bf35bffd0"
1297+
integrity sha512-t96EPDMbtGgtb7onKKqxRLfE5g05k7uHnHRM2xdE6BP/ZmxaLtPek4J4KfVn/90IQNrU1IOAqMgiDtUdtbe3nw==
1298+
dependencies:
1299+
"@noble/curves" "~1.8.1"
1300+
"@noble/hashes" "~1.7.1"
1301+
"@scure/base" "~1.2.2"
1302+
1303+
"@scure/bip32@^1.5.0":
12781304
version "1.5.0"
12791305
resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.5.0.tgz#dd4a2e1b8a9da60e012e776d954c4186db6328e6"
12801306
integrity sha512-8EnFYkqEQdnkuGBVpCzKxyIwDCBLDVj3oiX0EKUFre/tOjL/Hqba1D6n/8RcmaQy4f95qQFrO2A8Sr6ybh4NRw==
@@ -1291,7 +1317,15 @@
12911317
"@noble/hashes" "~1.3.2"
12921318
"@scure/base" "~1.1.4"
12931319

1294-
"@scure/[email protected]", "@scure/bip39@^1.4.0":
1320+
1321+
version "1.5.4"
1322+
resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.5.4.tgz#07fd920423aa671be4540d59bdd344cc1461db51"
1323+
integrity sha512-TFM4ni0vKvCfBpohoh+/lY05i9gRbSwXWngAsF4CABQxoaOHijxuaZ2R6cStDQ5CHtHO9aGJTr4ksVJASRRyMA==
1324+
dependencies:
1325+
"@noble/hashes" "~1.7.1"
1326+
"@scure/base" "~1.2.4"
1327+
1328+
"@scure/bip39@^1.4.0":
12951329
version "1.4.0"
12961330
resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.4.0.tgz#664d4f851564e2e1d4bffa0339f9546ea55960a6"
12971331
integrity sha512-BEEm6p8IueV/ZTfQLp/0vhw4NPnT9oWf5+28nvmeUICjP99f4vr2d+qc7AVGDDtwRep6ifR43Yed9ERVmiITzw==
@@ -1716,7 +1750,12 @@
17161750
"@types/tinycolor2" "^1.4.3"
17171751
tinycolor2 "^1.4.2"
17181752

1719-
[email protected], abitype@^1.0.6:
1753+
1754+
version "1.0.8"
1755+
resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.8.tgz#3554f28b2e9d6e9f35eb59878193eabd1b9f46ba"
1756+
integrity sha512-ZeiI6h3GnW06uYDLx0etQtX/p8E24UaHHBj57RSjK7YBFe7iuVn07EDpOeP451D06sF27VOz9JJPlIKJmXgkEg==
1757+
1758+
abitype@^1.0.6:
17201759
version "1.0.6"
17211760
resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.6.tgz#76410903e1d88e34f1362746e2d407513c38565b"
17221761
integrity sha512-MMSqYh4+C/aVqI2RQaWqbvI4Kxo5cQV40WQ4QFtDnNzCkqChm8MuENhElmynZlO0qUy/ObkEUaXtKqYnx1Kp3A==
@@ -4562,10 +4601,10 @@ os-browserify@^0.3.0:
45624601
resolved "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz"
45634602
integrity sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==
45644603

4565-
ox@0.1.0:
4566-
version "0.1.0"
4567-
resolved "https://registry.yarnpkg.com/ox/-/ox-0.1.0.tgz#ff6d914b57f973a2e0af5532e4d60b9aea05e84f"
4568-
integrity sha512-xs+STnBP8XG38N+7W5c/5LRN68XOleiTfKJlSBw5rcorIfGvpJPB45lRE3AlziiiuZ+KrEd/1ZLrD+LkN5XFzQ==
4604+
ox@0.6.7:
4605+
version "0.6.7"
4606+
resolved "https://registry.yarnpkg.com/ox/-/ox-0.6.7.tgz#afd53f2ecef68b8526660e9d29dee6e6b599a832"
4607+
integrity sha512-17Gk/eFsFRAZ80p5eKqv89a57uXjd3NgIf1CaXojATPBuujVc/fQSVhBeAU9JCRB+k7J50WQAyWTxK19T9GgbA==
45694608
dependencies:
45704609
"@adraffy/ens-normalize" "^1.10.1"
45714610
"@noble/curves" "^1.6.0"
@@ -5927,19 +5966,18 @@ [email protected]:
59275966
core-util-is "1.0.2"
59285967
extsprintf "^1.2.0"
59295968

5930-
viem@^2.21.43:
5931-
version "2.21.43"
5932-
resolved "https://registry.yarnpkg.com/viem/-/viem-2.21.43.tgz#02a977bd8e1fa94836cd97c515ca7c0a2ff1a63d"
5933-
integrity sha512-dSLb5bMRSr2Jw65xSZs6YMynhLMewvmlmYMtBK3IblFqa3b1O/N+Fn9qkTZxP5BUzKp8AB2eRTipESzGkLtfAg==
5969+
viem@^2.22.17:
5970+
version "2.22.17"
5971+
resolved "https://registry.yarnpkg.com/viem/-/viem-2.22.17.tgz#71cb5793d898e7850d440653b0043803c2d00c8d"
5972+
integrity sha512-eqNhlPGgRLR29XEVUT2uuaoEyMiaQZEKx63xT1py9OYsE+ZwlVgjnfrqbXad7Flg2iJ0Bs5Hh7o0FfRWUJGHvg==
59345973
dependencies:
5935-
"@noble/curves" "1.6.0"
5936-
"@noble/hashes" "1.5.0"
5937-
"@scure/bip32" "1.5.0"
5938-
"@scure/bip39" "1.4.0"
5939-
abitype "1.0.6"
5974+
"@noble/curves" "1.8.1"
5975+
"@noble/hashes" "1.7.1"
5976+
"@scure/bip32" "1.6.2"
5977+
"@scure/bip39" "1.5.4"
5978+
abitype "1.0.8"
59405979
isows "1.0.6"
5941-
ox "0.1.0"
5942-
webauthn-p256 "0.0.10"
5980+
ox "0.6.7"
59435981
ws "8.18.0"
59445982

59455983
vite@^5.0.2:
@@ -6295,14 +6333,6 @@ web3@^1.10.3:
62956333
web3-shh "1.10.4"
62966334
web3-utils "1.10.4"
62976335

6298-
6299-
version "0.0.10"
6300-
resolved "https://registry.yarnpkg.com/webauthn-p256/-/webauthn-p256-0.0.10.tgz#877e75abe8348d3e14485932968edf3325fd2fdd"
6301-
integrity sha512-EeYD+gmIT80YkSIDb2iWq0lq2zbHo1CxHlQTeJ+KkCILWpVy3zASH3ByD4bopzfk0uCwXxLqKGLqp2W4O28VFA==
6302-
dependencies:
6303-
"@noble/curves" "^1.4.0"
6304-
"@noble/hashes" "^1.4.0"
6305-
63066336
webidl-conversions@^3.0.0:
63076337
version "3.0.1"
63086338
resolved "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz"

0 commit comments

Comments
 (0)