diff --git a/package.json b/package.json index 5b399b9f..4b8656b3 100644 --- a/package.json +++ b/package.json @@ -23,7 +23,7 @@ "dependencies": { "abstract-leveldown": "7.2.0", "lru-cache": "6.0.0", - "viem": "2.27.0" + "viem": "2.31.4" }, "devDependencies": { "@types/abstract-leveldown": "7.2.1", diff --git a/packages/executor/package.json b/packages/executor/package.json index cce1077c..65622f63 100644 --- a/packages/executor/package.json +++ b/packages/executor/package.json @@ -34,7 +34,7 @@ "check-readme": "typescript-docs-verifier" }, "dependencies": { - "@appliedblockchain/silentdatarollup-viem": "1.0.3", + "@appliedblockchain/silentdatarollup-viem": "1.0.8", "@flashbots/ethers-provider-bundle": "0.6.2", "@skandha/monitoring": "^2.2.3", "@skandha/params": "^2.2.3", diff --git a/packages/executor/src/config.ts b/packages/executor/src/config.ts index e31688ee..259d096e 100644 --- a/packages/executor/src/config.ts +++ b/packages/executor/src/config.ts @@ -49,7 +49,7 @@ export class Config { // replacement for getNetworkProvider() getPublicClient(): PublicClient { return createPublicClient({ - transport: this.getTransport() as any, + transport: this.getTransport(), chain: this.chain, }); } @@ -58,7 +58,7 @@ export class Config { if (this.testingMode) { return [ createWalletClient({ - transport: this.getRelayerTransport(this.config.relayers[0]) as any, + transport: this.getRelayerTransport(this.config.relayers[0]), account: this.accounts[0], }), ]; @@ -67,7 +67,7 @@ export class Config { const wallets = []; for (const privKey of this.config.relayers) { const wallet = createWalletClient({ - transport: this.getRelayerTransport(privKey) as any, + transport: this.getRelayerTransport(privKey), account: privateKeyToAccount(privKey as `0x${string}`), chain: this.chain, }); @@ -105,7 +105,7 @@ export class Config { async fetchAccounts(): Promise { if (this.testingMode) { const walletClient = createWalletClient({ - transport: this.getTransport() as any, + transport: this.getTransport(), chain: this.chain, }); this.accounts = await walletClient.getAddresses(); diff --git a/yarn.lock b/yarn.lock index a8344473..c4a669f3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -44,7 +44,7 @@ resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.10.1.tgz#63430d04bd8c5e74f8d7d049338f1cd9d4f02069" integrity sha512-96Z2IP3mYmF1Xg2cDm8f1gWGf/HUVedQ3FMifV4kG/PQ4yEP51xDtRAEfhVNt5f/uzpNkZHwWQuUcu6D6K+Ekw== -"@adraffy/ens-normalize@^1.10.1", "@adraffy/ens-normalize@^1.11.0": +"@adraffy/ens-normalize@^1.11.0": version "1.11.0" resolved "https://registry.yarnpkg.com/@adraffy/ens-normalize/-/ens-normalize-1.11.0.tgz#42cc67c5baa407ac25059fcd7d405cc5ecdb0c33" integrity sha512-/3DDPKHqqIqxUULp8yP4zODUY1i+2xvVWsv8A79xGWdCAG+8sb0hRh0Rk2QyOJUnnbyPUAZYcpBuRe3nS2OIUg== @@ -57,30 +57,29 @@ "@jridgewell/gen-mapping" "^0.3.0" "@jridgewell/trace-mapping" "^0.3.9" -"@appliedblockchain/silentdatarollup-core@1.0.3": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@appliedblockchain/silentdatarollup-core/-/silentdatarollup-core-1.0.3.tgz#2144fe0399cac0f2d8f27a2be865618f46dca4c9" - integrity sha512-WM5nc0UML0OXRZD4/KqVwBdye5BXWEtIomb7UPlIp4E692FLtmtwv8YxBBWQVXG14iDNaCZ1SSUonswSwPik1Q== +"@appliedblockchain/silentdatarollup-core@1.0.8": + version "1.0.8" + resolved "https://registry.yarnpkg.com/@appliedblockchain/silentdatarollup-core/-/silentdatarollup-core-1.0.8.tgz#cf82812846d2c1a0e85167b4bdd32304d44ed8e9" + integrity sha512-+F4eZqqj/h7rNuX3AvKzk6apg9HROITybxp+yRXKcwR9t3e0gYgXF947cz8nWiS0xD1PX7u7QfjGdiWlBBpiyA== dependencies: debug "4.3.7" ethers "6.13.2" -"@appliedblockchain/silentdatarollup-ethers-provider@1.0.3": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@appliedblockchain/silentdatarollup-ethers-provider/-/silentdatarollup-ethers-provider-1.0.3.tgz#058c65bd7fae71461142f3bf55f899b6606536df" - integrity sha512-tU0AvB4rEVVjI1cJqhT4NvCsTn0M4R2AvrHrNOdi3g2GHVwryfYBvx20MrGtFII2suosGjU5aHsP/L1A2X8kcQ== +"@appliedblockchain/silentdatarollup-ethers-provider@1.0.8": + version "1.0.8" + resolved "https://registry.yarnpkg.com/@appliedblockchain/silentdatarollup-ethers-provider/-/silentdatarollup-ethers-provider-1.0.8.tgz#4e8c311e0adf8af19c57df3796818953ae4993b5" + integrity sha512-1reU9s/mYc6QcL3yTflIG7f49vXbO6trpvMj04zlxDQisSBvZZsGi2vhvd3kS7OSmoAOZGgceZiHhe+sXGUz3g== dependencies: - "@appliedblockchain/silentdatarollup-core" "1.0.3" + "@appliedblockchain/silentdatarollup-core" "1.0.8" debug "4.3.7" ethers "6.13.2" -"@appliedblockchain/silentdatarollup-viem@1.0.3": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@appliedblockchain/silentdatarollup-viem/-/silentdatarollup-viem-1.0.3.tgz#231c229edd1c92c390f2fd7df23e5ad959cc964d" - integrity sha512-vddsaTUreNLHCVVRPUUGOnsqKA1tshkaQDyeoDZgNTVZV+dmviHJsLVY643l5tW+z/5UmfCaM08/hZoKxeuvxw== +"@appliedblockchain/silentdatarollup-viem@1.0.8": + version "1.0.8" + resolved "https://registry.yarnpkg.com/@appliedblockchain/silentdatarollup-viem/-/silentdatarollup-viem-1.0.8.tgz#a8bc824fbce0abd6207bb7ba36f4bb8c10c40789" + integrity sha512-LSTUjIogbnOZ+lguuR+hEz+gEGY37h2PUiHPfAiG8w4TjbAT8GNDdO9hblSzhakjxE8ZMaWAXx3FWGfzA5cAPA== dependencies: - "@appliedblockchain/silentdatarollup-core" "1.0.3" - "@appliedblockchain/silentdatarollup-ethers-provider" "1.0.3" + "@appliedblockchain/silentdatarollup-ethers-provider" "1.0.8" viem "2.31.4" "@arbitrum/sdk@3.1.4": @@ -1792,13 +1791,6 @@ dependencies: "@noble/hashes" "1.3.2" -"@noble/curves@1.8.1", "@noble/curves@^1.6.0", "@noble/curves@~1.8.1": - version "1.8.1" - resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.8.1.tgz#19bc3970e205c99e4bdb1c64a4785706bce497ff" - integrity sha512-warwspo+UYUPep0Q+vtdVB4Ugn8GGQj8iyB3gnRWsztmUHTI3S1nhdiWNsPUGL0vud7JlRRk1XEu7Lq1KGTnMQ== - dependencies: - "@noble/hashes" "1.7.1" - "@noble/curves@1.9.2", "@noble/curves@^1.9.1", "@noble/curves@~1.9.0": version "1.9.2" resolved "https://registry.yarnpkg.com/@noble/curves/-/curves-1.9.2.tgz#73388356ce733922396214a933ff7c95afcef911" @@ -1821,16 +1813,16 @@ resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.3.2.tgz#6f26dbc8fbc7205873ce3cee2f690eba0d421b39" integrity sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ== -"@noble/hashes@1.7.1", "@noble/hashes@^1.3.0", "@noble/hashes@^1.5.0", "@noble/hashes@~1.7.1": - version "1.7.1" - resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.7.1.tgz#5738f6d765710921e7a751e00c20ae091ed8db0f" - integrity sha512-B8XBPsn4vT/KJAGqDzbwztd+6Yte3P4V7iafm24bxgDe/mlRuK6xmWPuCNrKt2vDafZ8MfJLlchDG/vYafQEjQ== - "@noble/hashes@1.8.0", "@noble/hashes@^1.8.0", "@noble/hashes@~1.8.0": version "1.8.0" resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.8.0.tgz#cee43d801fcef9644b11b8194857695acd5f815a" integrity sha512-jCs9ldd7NwzpgXDIf6P3+NrHh9/sD6CQdxHyjQI+h/6rDNo88ypBxxz45UDuZHz9r3tNz7N/VInSVoVdtXEI4A== +"@noble/hashes@^1.3.0": + version "1.7.1" + resolved "https://registry.yarnpkg.com/@noble/hashes/-/hashes-1.7.1.tgz#5738f6d765710921e7a751e00c20ae091ed8db0f" + integrity sha512-B8XBPsn4vT/KJAGqDzbwztd+6Yte3P4V7iafm24bxgDe/mlRuK6xmWPuCNrKt2vDafZ8MfJLlchDG/vYafQEjQ== + "@noble/secp256k1@^1.5.4": version "1.7.1" resolved "https://registry.yarnpkg.com/@noble/secp256k1/-/secp256k1-1.7.1.tgz#b251c70f824ce3ca7f8dc3df08d58f005cc0507c" @@ -2323,11 +2315,6 @@ resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.1.3.tgz#8584115565228290a6c6c4961973e0903bb3df2f" integrity sha512-/+SgoRjLq7Xlf0CWuLHq2LUZeL/w65kfzAPG5NH9pcmBhs+nunQTn4gvdwgMTIXnt9b2C/1SeL2XiysZEyIC9Q== -"@scure/base@~1.2.2", "@scure/base@~1.2.4": - version "1.2.4" - resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.2.4.tgz#002eb571a35d69bdb4c214d0995dff76a8dcd2a9" - integrity sha512-5Yy9czTO47mqz+/J8GM6GIId4umdCk1wc1q8rKERQulIoc8VP9pzDcghv10Tl2E7R96ZUx/PhND3ESYUQX8NuQ== - "@scure/base@~1.2.5": version "1.2.6" resolved "https://registry.yarnpkg.com/@scure/base/-/base-1.2.6.tgz#ca917184b8231394dd8847509c67a0be522e59f6" @@ -2342,15 +2329,6 @@ "@noble/hashes" "~1.3.1" "@scure/base" "~1.1.0" -"@scure/bip32@1.6.2", "@scure/bip32@^1.5.0": - version "1.6.2" - resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.6.2.tgz#093caa94961619927659ed0e711a6e4bf35bffd0" - integrity sha512-t96EPDMbtGgtb7onKKqxRLfE5g05k7uHnHRM2xdE6BP/ZmxaLtPek4J4KfVn/90IQNrU1IOAqMgiDtUdtbe3nw== - dependencies: - "@noble/curves" "~1.8.1" - "@noble/hashes" "~1.7.1" - "@scure/base" "~1.2.2" - "@scure/bip32@1.7.0", "@scure/bip32@^1.7.0": version "1.7.0" resolved "https://registry.yarnpkg.com/@scure/bip32/-/bip32-1.7.0.tgz#b8683bab172369f988f1589640e53c4606984219" @@ -2368,14 +2346,6 @@ "@noble/hashes" "~1.3.0" "@scure/base" "~1.1.0" -"@scure/bip39@1.5.4", "@scure/bip39@^1.4.0": - version "1.5.4" - resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.5.4.tgz#07fd920423aa671be4540d59bdd344cc1461db51" - integrity sha512-TFM4ni0vKvCfBpohoh+/lY05i9gRbSwXWngAsF4CABQxoaOHijxuaZ2R6cStDQ5CHtHO9aGJTr4ksVJASRRyMA== - dependencies: - "@noble/hashes" "~1.7.1" - "@scure/base" "~1.2.4" - "@scure/bip39@1.6.0", "@scure/bip39@^1.6.0": version "1.6.0" resolved "https://registry.yarnpkg.com/@scure/bip39/-/bip39-1.6.0.tgz#475970ace440d7be87a6086cbee77cb8f1a684f9" @@ -3072,7 +3042,7 @@ abbrev@^1.0.0: resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== -abitype@1.0.8, abitype@^1.0.6, abitype@^1.0.8: +abitype@1.0.8, abitype@^1.0.8: version "1.0.8" resolved "https://registry.yarnpkg.com/abitype/-/abitype-1.0.8.tgz#3554f28b2e9d6e9f35eb59878193eabd1b9f46ba" integrity sha512-ZeiI6h3GnW06uYDLx0etQtX/p8E24UaHHBj57RSjK7YBFe7iuVn07EDpOeP451D06sF27VOz9JJPlIKJmXgkEg== @@ -6146,11 +6116,6 @@ isobject@^3.0.1: resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== -isows@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.6.tgz#0da29d706fa51551c663c627ace42769850f86e7" - integrity sha512-lPHCayd40oW98/I0uvgaHKWCSvkzY27LjWLbtzOm64yQ+G3Q5npjjbdppU65iZXkK1Zt+kH9pfegli0AYfwYYw== - isows@1.0.7: version "1.0.7" resolved "https://registry.yarnpkg.com/isows/-/isows-1.0.7.tgz#1c06400b7eed216fbba3bcbd68f12490fc342915" @@ -7825,19 +7790,6 @@ os-tmpdir@~1.0.2: resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== -ox@0.6.9: - version "0.6.9" - resolved "https://registry.yarnpkg.com/ox/-/ox-0.6.9.tgz#da1ee04fa10de30c8d04c15bfb80fe58b1f554bd" - integrity sha512-wi5ShvzE4eOcTwQVsIPdFr+8ycyX+5le/96iAJutaZAvCes1J0+RvpEPg5QDPDiaR0XQQAvZVl7AwqQcINuUug== - dependencies: - "@adraffy/ens-normalize" "^1.10.1" - "@noble/curves" "^1.6.0" - "@noble/hashes" "^1.5.0" - "@scure/bip32" "^1.5.0" - "@scure/bip39" "^1.4.0" - abitype "^1.0.6" - eventemitter3 "5.0.1" - ox@0.8.1: version "0.8.1" resolved "https://registry.yarnpkg.com/ox/-/ox-0.8.1.tgz#c1328e4c890583b9c19d338126aef4b796d53543" @@ -9894,20 +9846,6 @@ varint@6.0.0, varint@^6.0.0: resolved "https://registry.yarnpkg.com/varint/-/varint-6.0.0.tgz#9881eb0ce8feaea6512439d19ddf84bf551661d0" integrity sha512-cXEIW6cfr15lFv563k4GuVuW/fiwjknytD37jIOLSdSWuOI6WnO/oKwmP2FQTU2l01LP8/M5TSAJpzUaGe3uWg== -viem@2.27.0: - version "2.27.0" - resolved "https://registry.yarnpkg.com/viem/-/viem-2.27.0.tgz#edfca8e107d96eecff70d6c4f049c5e43422f902" - integrity sha512-pKw2dcwDi6TaWlTzLHYazOgjO1GgbUpE1zdLsLNSiCjHNrMTpL/teL0wVHnJDLiB2tR5CL19LBqefYNtRUkH5Q== - dependencies: - "@noble/curves" "1.8.1" - "@noble/hashes" "1.7.1" - "@scure/bip32" "1.6.2" - "@scure/bip39" "1.5.4" - abitype "1.0.8" - isows "1.0.6" - ox "0.6.9" - ws "8.18.1" - viem@2.31.4: version "2.31.4" resolved "https://registry.yarnpkg.com/viem/-/viem-2.31.4.tgz#a8cce5579cc495a2586a16dd4062deecc0f53f1d" @@ -10176,11 +10114,6 @@ ws@8.17.1: resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b" integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ== -ws@8.18.1: - version "8.18.1" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.1.tgz#ea131d3784e1dfdff91adb0a4a116b127515e3cb" - integrity sha512-RKW2aJZMXeMxVpnZ6bck+RswznaxmzdULiBr6KY7XkTnW8uvt0iT9H5DkHUChXrc+uurzwa0rVI16n/Xzjdz1w== - ws@8.18.2: version "8.18.2" resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.2.tgz#42738b2be57ced85f46154320aabb51ab003705a"