Skip to content

Commit b2086f4

Browse files
committed
fix: add ink support
1 parent 842f14b commit b2086f4

File tree

3 files changed

+42
-48
lines changed

3 files changed

+42
-48
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"devDependencies": {
4949
"@bgd-labs/aave-address-book": "^4.30.1",
5050
"@bgd-labs/js-utils": "^1.4.7",
51-
"@bgd-labs/toolbox": "^0.0.38",
51+
"@bgd-labs/toolbox": "^0.0.46",
5252
"@types/lodash": "^4.17.15",
5353
"@types/node": "^22.12.0",
5454
"bignumber.js": "^9.1.2",
@@ -78,4 +78,4 @@
7878
"gray-matter": "^4.0.3"
7979
},
8080
"packageManager": "[email protected]+sha1.ac34549e6aa8e7ead463a7407e1c7390f61a6610"
81-
}
81+
}

src/utils/viem/appConfig.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import {
88
GovernanceV3Celo,
99
GovernanceV3Ethereum,
1010
GovernanceV3Gnosis,
11+
GovernanceV3Ink,
1112
GovernanceV3Linea,
1213
GovernanceV3Metis,
1314
GovernanceV3Optimism,
@@ -28,6 +29,7 @@ import {
2829
bsc,
2930
celo,
3031
gnosis,
32+
ink,
3133
linea,
3234
mainnet,
3335
metis,
@@ -147,6 +149,10 @@ export const payloadsControllerConfig: Record<
147149
dataHelperContractAddress: GovernanceV3Plasma.PC_DATA_HELPER,
148150
contractAddresses: [GovernanceV3Plasma.PAYLOADS_CONTROLLER],
149151
},
152+
[ink.id]: {
153+
dataHelperContractAddress: GovernanceV3Ink.PC_DATA_HELPER,
154+
contractAddresses: [GovernanceV3Ink.PAYLOADS_CONTROLLER],
155+
},
150156
},
151157
// testnets
152158
sepolia: {

yarn.lock

Lines changed: 34 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@
4545
resolved "https://registry.yarnpkg.com/@bgd-labs/rpc-env/-/rpc-env-2.3.1.tgz#006571086c9aa6d92687ebcaa45b457a7248afb3"
4646
integrity sha512-jWygItqoHd+KC6f/O8NSN2/q0GFzvxDlEYJRLI693QkptfWu1TJkse2JCz8+f6IYGl0JksW9X0O8VY/5iBWZcQ==
4747

48-
"@bgd-labs/toolbox@^0.0.38":
49-
version "0.0.38"
50-
resolved "https://registry.yarnpkg.com/@bgd-labs/toolbox/-/toolbox-0.0.38.tgz#e5001522f47c769d59bb025b0b55d4e83164ea01"
51-
integrity sha512-mDKnmFdiGkxFmG2tvZNDNX/JbsUbBIUNeR1zqPKNEk+/pqWaNACC1benjIKeFf05dA4ZzzjZGiarwrZ9t3pH9A==
48+
"@bgd-labs/toolbox@^0.0.46":
49+
version "0.0.46"
50+
resolved "https://registry.yarnpkg.com/@bgd-labs/toolbox/-/toolbox-0.0.46.tgz#be7f4227ddd608d1e73ea8a5186780fe976ae658"
51+
integrity sha512-JSn4zObwV8trIF9ERT3glanB9c/H/sdIBN6D4xmKkZBRo9hs65TzrJ7JLexMUr+CiZNeOs28Fcjk852z+azS5w==
5252
dependencies:
5353
arktype "^2.1.20"
5454
blockstore-core "^5.0.2"
@@ -57,7 +57,7 @@
5757
gray-matter "^4.0.3"
5858
ipfs-unixfs-importer "^15.3.2"
5959
ts-pattern "^5.8.0"
60-
viem "^2.30.0"
60+
viem "^2.37.6"
6161

6262
"@chainsafe/is-ip@^2.0.1":
6363
version "2.1.0"
@@ -874,14 +874,7 @@
874874
dependencies:
875875
"@noble/hashes" "1.8.0"
876876

877-
878-
version "1.9.2"
879-
resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.9.2.tgz#73388356ce733922396214a933ff7c95afcef911"
880-
integrity sha512-HxngEd2XUcg9xi20JkwlLCtYwfoFw4JGkuZpT+WlsPD4gB/cxkvTD8fSsoAnphGZhFdZYKeQIPCuFlWPm1uE0g==
881-
dependencies:
882-
"@noble/hashes" "1.8.0"
883-
884-
"@noble/curves@^1.9.1", "@noble/curves@~1.9.0":
877+
"@noble/curves@~1.9.0":
885878
version "1.9.6"
886879
resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.9.6.tgz#b45ebedca85bb75782f6be7e7f120f0c423c99e0"
887880
integrity sha512-GIKz/j99FRthB8icyJQA51E8Uk5hXmdyThjgQXRKiv9h0zeRlzSCLIzFw6K1LotZ3XuB7yzlf76qk7uBmTdFqA==
@@ -1178,16 +1171,16 @@
11781171
"@typescript-eslint/types" "8.22.0"
11791172
eslint-visitor-keys "^4.2.0"
11801173

1181-
[email protected], abitype@^1.0.8:
1182-
version "1.0.8"
1183-
resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.8.tgz#3554f28b2e9d6e9f35eb59878193eabd1b9f46ba"
1184-
integrity sha512-ZeiI6h3GnW06uYDLx0etQtX/p8E24UaHHBj57RSjK7YBFe7iuVn07EDpOeP451D06sF27VOz9JJPlIKJmXgkEg==
1185-
11861174
[email protected], abitype@^1.0.9:
11871175
version "1.1.0"
11881176
resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.1.0.tgz#510c5b3f92901877977af5e864841f443bf55406"
11891177
integrity sha512-6Vh4HcRxNMLA0puzPjM5GBgT4aAcFGKZzSgAXvuZ27shJP6NEpielTuqbBmZILR5/xd0PizkBGy5hReKz9jl5A==
11901178

1179+
abitype@^1.0.8:
1180+
version "1.0.8"
1181+
resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.8.tgz#3554f28b2e9d6e9f35eb59878193eabd1b9f46ba"
1182+
integrity sha512-ZeiI6h3GnW06uYDLx0etQtX/p8E24UaHHBj57RSjK7YBFe7iuVn07EDpOeP451D06sF27VOz9JJPlIKJmXgkEg==
1183+
11911184
abort-error@^1.0.1:
11921185
version "1.0.1"
11931186
resolved "https://registry.yarnpkg.com/abort-error/-/abort-error-1.0.1.tgz#526c17caf2ac9eb1fab1ffdff18c5076157a324e"
@@ -3456,24 +3449,24 @@ own-keys@^1.0.1:
34563449
object-keys "^1.1.1"
34573450
safe-push-apply "^1.0.0"
34583451

3459-
ox@0.8.6:
3460-
version "0.8.6"
3461-
resolved "https://registry.yarnpkg.com/ox/-/ox-0.8.6.tgz#7dd666216ee8cda2eb2e5fef3fe4cb20dec3dcad"
3462-
integrity sha512-eiKcgiVVEGDtEpEdFi1EGoVVI48j6icXHce9nFwCNM7CKG3uoCXKdr4TPhS00Iy1TR2aWSF1ltPD0x/YgqIL9w==
3452+
ox@0.9.3:
3453+
version "0.9.3"
3454+
resolved "https://registry.yarnpkg.com/ox/-/ox-0.9.3.tgz#92cc1008dcd913e919364fd4175c860b3eeb18db"
3455+
integrity sha512-KzyJP+fPV4uhuuqrTZyok4DC7vFzi7HLUFiUNEmpbyh59htKWkOC98IONC1zgXJPbHAhQgqs6B0Z6StCGhmQvg==
34633456
dependencies:
34643457
"@adraffy/ens-normalize" "^1.11.0"
34653458
"@noble/ciphers" "^1.3.0"
3466-
"@noble/curves" "^1.9.1"
3459+
"@noble/curves" "1.9.1"
34673460
"@noble/hashes" "^1.8.0"
34683461
"@scure/bip32" "^1.7.0"
34693462
"@scure/bip39" "^1.6.0"
3470-
abitype "^1.0.8"
3463+
abitype "^1.0.9"
34713464
eventemitter3 "5.0.1"
34723465

3473-
3474-
version "0.9.3"
3475-
resolved "https://registry.yarnpkg.com/ox/-/ox-0.9.3.tgz#92cc1008dcd913e919364fd4175c860b3eeb18db"
3476-
integrity sha512-KzyJP+fPV4uhuuqrTZyok4DC7vFzi7HLUFiUNEmpbyh59htKWkOC98IONC1zgXJPbHAhQgqs6B0Z6StCGhmQvg==
3466+
3467+
version "0.9.6"
3468+
resolved "https://registry.yarnpkg.com/ox/-/ox-0.9.6.tgz#5cf02523b6db364c10ee7f293ff1e664e0e1eab7"
3469+
integrity sha512-8SuCbHPvv2eZLYXrNmC0EC12rdzXQLdhnOMlHDW2wiCPLxBrOOJwX5L5E61by+UjTPOryqQiRSnjIKCI+GykKg==
34773470
dependencies:
34783471
"@adraffy/ens-normalize" "^1.11.0"
34793472
"@noble/ciphers" "^1.3.0"
@@ -4464,32 +4457,32 @@ util-deprecate@^1.0.1:
44644457
resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf"
44654458
integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==
44664459

4467-
viem@^2.30.0:
4468-
version "2.33.3"
4469-
resolved "https://registry.yarnpkg.com/viem/-/viem-2.33.3.tgz#b69d7ff9edf649d1b7d9218e0225bcadc83a8caa"
4470-
integrity sha512-aWDr6i6r3OfNCs0h9IieHFhn7xQJJ8YsuA49+9T5JRyGGAkWhLgcbLq2YMecgwM7HdUZpx1vPugZjsShqNi7Gw==
4460+
viem@^2.37.3:
4461+
version "2.37.6"
4462+
resolved "https://registry.yarnpkg.com/viem/-/viem-2.37.6.tgz#3b05586555bd4b2c1b7351ed148f9fa98df72027"
4463+
integrity sha512-b+1IozQ8TciVQNdQUkOH5xtFR0z7ZxR8pyloENi/a+RA408lv4LoX12ofwoiT3ip0VRhO5ni1em//X0jn/eW0g==
44714464
dependencies:
4472-
"@noble/curves" "1.9.2"
4465+
"@noble/curves" "1.9.1"
44734466
"@noble/hashes" "1.8.0"
44744467
"@scure/bip32" "1.7.0"
44754468
"@scure/bip39" "1.6.0"
4476-
abitype "1.0.8"
4469+
abitype "1.1.0"
44774470
isows "1.0.7"
4478-
ox "0.8.6"
4479-
ws "8.18.2"
4471+
ox "0.9.3"
4472+
ws "8.18.3"
44804473

4481-
viem@^2.37.3:
4482-
version "2.37.6"
4483-
resolved "https://registry.yarnpkg.com/viem/-/viem-2.37.6.tgz#3b05586555bd4b2c1b7351ed148f9fa98df72027"
4484-
integrity sha512-b+1IozQ8TciVQNdQUkOH5xtFR0z7ZxR8pyloENi/a+RA408lv4LoX12ofwoiT3ip0VRhO5ni1em//X0jn/eW0g==
4474+
viem@^2.37.6:
4475+
version "2.37.7"
4476+
resolved "https://registry.yarnpkg.com/viem/-/viem-2.37.7.tgz#1933b6780cbcf39c6a5eabc45fa3357b33448705"
4477+
integrity sha512-KmTK/xc6790I0V9iaiJz8C3RdGevpU+fPvg53eOlfEfsfz0wCypXqOlOmCcjzkpmf2XFoEtu9MAxhMqk8YdNNA==
44854478
dependencies:
44864479
"@noble/curves" "1.9.1"
44874480
"@noble/hashes" "1.8.0"
44884481
"@scure/bip32" "1.7.0"
44894482
"@scure/bip39" "1.6.0"
44904483
abitype "1.1.0"
44914484
isows "1.0.7"
4492-
ox "0.9.3"
4485+
ox "0.9.6"
44934486
ws "8.18.3"
44944487

44954488
weald@^1.0.4:
@@ -4636,11 +4629,6 @@ [email protected]:
46364629
resolved "https://registry.yarnpkg.com/ws/-/ws-7.4.6.tgz#5654ca8ecdeee47c33a9a4bf6d28e2be2980377c"
46374630
integrity sha512-YmhHDO4MzaDLB+M9ym/mDA5z0naX8j7SIlT8f8z+I0VtzsRbekxEutHSme7NPS2qE8StCYQNUnfWdXta/Yu85A==
46384631

4639-
4640-
version "8.18.2"
4641-
resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.2.tgz#42738b2be57ced85f46154320aabb51ab003705a"
4642-
integrity sha512-DMricUmwGZUVr++AEAe2uiVM7UoO9MAVZMDu05UQOaUII0lp+zOzLLU4Xqh/JvTqklB1T4uELaaPBKyjE1r4fQ==
4643-
46444632
46454633
version "8.18.3"
46464634
resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.3.tgz#b56b88abffde62791c639170400c93dcb0c95472"

0 commit comments

Comments
 (0)