From 07ff25cccc930f504e9a48dee841f21cc3646635 Mon Sep 17 00:00:00 2001 From: c4605 Date: Wed, 26 Feb 2025 10:09:21 +0100 Subject: [PATCH] chore: upgrade viem --- package.json | 2 +- pnpm-lock.yaml | 208 +++++++++++++++++---------------- scripts/printOnChainConfigs.ts | 22 +--- 3 files changed, 114 insertions(+), 118 deletions(-) diff --git a/package.json b/package.json index 3273263..9235890 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "tsx": "^4.7.2", "typedoc": "^0.26.6", "typescript": "^5.4.5", - "viem": "^2.21.44", + "viem": "^2.23.5", "vitest": "^1.4.0" }, "optionalDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index ffe9bdf..dbb6ffd 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -20,7 +20,7 @@ importers: optionalDependencies: '@scure/btc-signer': specifier: ^1.2.2 - version: 1.4.0 + version: 1.6.0 devDependencies: '@c4605/toolconfs': specifier: ^5.3.0 @@ -60,7 +60,7 @@ importers: version: 3.3.3 tsup: specifier: ^8.2.3 - version: 8.2.3(postcss@8.4.49)(tsx@4.16.2)(typescript@5.5.4)(yaml@2.6.0) + version: 8.2.3(postcss@8.5.3)(tsx@4.16.2)(typescript@5.5.4)(yaml@2.7.0) tsx: specifier: ^4.7.2 version: 4.16.2 @@ -71,11 +71,11 @@ importers: specifier: ^5.4.5 version: 5.5.4 viem: - specifier: ^2.21.44 - version: 2.21.44(typescript@5.5.4) + specifier: ^2.23.5 + version: 2.23.5(typescript@5.5.4) vitest: specifier: ^1.4.0 - version: 1.6.0(@types/node@22.9.0) + version: 1.6.0(@types/node@22.13.5) packages: @@ -472,8 +472,8 @@ packages: '@jridgewell/trace-mapping@0.3.25': resolution: {integrity: sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ==} - '@noble/curves@1.6.0': - resolution: {integrity: sha512-TlaHRXDehJuRNR9TfZDNQ45mMEd5dwUwmicsafcIX4SsNiqnCHKjE/1alYPd/lDRVhxdhUAlv8uEhMCI5zjIJQ==} + '@noble/curves@1.8.1': + resolution: {integrity: sha512-warwspo+UYUPep0Q+vtdVB4Ugn8GGQj8iyB3gnRWsztmUHTI3S1nhdiWNsPUGL0vud7JlRRk1XEu7Lq1KGTnMQ==} engines: {node: ^14.21.3 || >=16} '@noble/hashes@1.1.5': @@ -483,8 +483,8 @@ packages: resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==} engines: {node: '>= 16'} - '@noble/hashes@1.5.0': - resolution: {integrity: sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA==} + '@noble/hashes@1.7.1': + resolution: {integrity: sha512-B8XBPsn4vT/KJAGqDzbwztd+6Yte3P4V7iafm24bxgDe/mlRuK6xmWPuCNrKt2vDafZ8MfJLlchDG/vYafQEjQ==} engines: {node: ^14.21.3 || >=16} '@noble/secp256k1@1.7.1': @@ -590,17 +590,17 @@ packages: cpu: [x64] os: [win32] - '@scure/base@1.1.9': - resolution: {integrity: sha512-8YKhl8GHiNI/pU2VMaofa2Tor7PJRAjwQLBBuilkJ9L5+13yVbC7JO/wS7piioAvPSwR3JKM1IJ/u4xQzbcXKg==} + '@scure/base@1.2.4': + resolution: {integrity: sha512-5Yy9czTO47mqz+/J8GM6GIId4umdCk1wc1q8rKERQulIoc8VP9pzDcghv10Tl2E7R96ZUx/PhND3ESYUQX8NuQ==} - '@scure/bip32@1.5.0': - resolution: {integrity: sha512-8EnFYkqEQdnkuGBVpCzKxyIwDCBLDVj3oiX0EKUFre/tOjL/Hqba1D6n/8RcmaQy4f95qQFrO2A8Sr6ybh4NRw==} + '@scure/bip32@1.6.2': + resolution: {integrity: sha512-t96EPDMbtGgtb7onKKqxRLfE5g05k7uHnHRM2xdE6BP/ZmxaLtPek4J4KfVn/90IQNrU1IOAqMgiDtUdtbe3nw==} - '@scure/bip39@1.4.0': - resolution: {integrity: sha512-BEEm6p8IueV/ZTfQLp/0vhw4NPnT9oWf5+28nvmeUICjP99f4vr2d+qc7AVGDDtwRep6ifR43Yed9ERVmiITzw==} + '@scure/bip39@1.5.4': + resolution: {integrity: sha512-TFM4ni0vKvCfBpohoh+/lY05i9gRbSwXWngAsF4CABQxoaOHijxuaZ2R6cStDQ5CHtHO9aGJTr4ksVJASRRyMA==} - '@scure/btc-signer@1.4.0': - resolution: {integrity: sha512-uSZqmiWWm1+wflQbiob0CrzQSCwDO9MmAxqsqk+tkiRcUv8GbC3Ptv9/2nUbsoUBuPN/6mBQJ/KOBzHjc5Bgow==} + '@scure/btc-signer@1.6.0': + resolution: {integrity: sha512-qd6ciJE4Onk1xdQEdjPvRbLRrH7EddPZagMuZOFv77R/76EWixENd6nuoxqHNEPGRbS09rgAhhPgT7j0oQdi1A==} '@shikijs/core@1.14.1': resolution: {integrity: sha512-KyHIIpKNaT20FtFPFjCQB5WVSTpLR/n+jQXhWHWVUMm9MaOaG9BGOG0MSyt7yA4+Lm+4c9rTc03tt3nYzeYSfw==} @@ -638,8 +638,8 @@ packages: '@types/node@18.19.42': resolution: {integrity: sha512-d2ZFc/3lnK2YCYhos8iaNIYu9Vfhr92nHiyJHRltXWjXUBjEE+A4I58Tdbnw4VhggSW+2j5y5gTrLs4biNnubg==} - '@types/node@22.9.0': - resolution: {integrity: sha512-vuyHg81vvWA1Z1ELfvLko2c8f34gyA0zaic0+Rllc5lbCnbSyuvb2Oxpm6TAUAC/2xZN3QGqxBNggD1nNR2AfQ==} + '@types/node@22.13.5': + resolution: {integrity: sha512-+lTU0PxZXn0Dr1NBtC7Y8cR21AJr87dLLU953CWA6pMxxv/UDc7jYAY90upcrie1nRcD6XNG5HOYEDtgW5TxAg==} '@types/semver@7.5.8': resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} @@ -756,8 +756,8 @@ packages: '@vitest/utils@1.6.0': resolution: {integrity: sha512-21cPiuGMoMZwiOHa2i4LXkMkMkCGzA+MVFV70jRwHo95dL4x/ts5GZhML1QWuy7yfp3WzK3lRvZi3JnXTYqrBw==} - abitype@1.0.6: - resolution: {integrity: sha512-MMSqYh4+C/aVqI2RQaWqbvI4Kxo5cQV40WQ4QFtDnNzCkqChm8MuENhElmynZlO0qUy/ObkEUaXtKqYnx1Kp3A==} + abitype@1.0.8: + resolution: {integrity: sha512-ZeiI6h3GnW06uYDLx0etQtX/p8E24UaHHBj57RSjK7YBFe7iuVn07EDpOeP451D06sF27VOz9JJPlIKJmXgkEg==} peerDependencies: typescript: '>=5.0.4' zod: ^3 >=3.22.0 @@ -934,8 +934,8 @@ packages: supports-color: optional: true - debug@4.3.7: - resolution: {integrity: sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==} + debug@4.4.0: + resolution: {integrity: sha512-6WTZ/IxCY/T6BALoZHaE4ctp9xm+Z5kY/pzYaCHRFeyVhojxlrm+46y68HA6hr0TcwEssoxNiDEUJQjfPZ/RYA==} engines: {node: '>=6.0'} peerDependencies: supports-color: '*' @@ -1341,8 +1341,8 @@ packages: resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} engines: {node: '>= 8'} - micro-packed@0.6.3: - resolution: {integrity: sha512-VmVkyc7lIzAq/XCPFuLc/CwQ7Ehs5XDK3IwqsZHiBIDttAI9Gs7go6Lv4lNRuAIKrGKcRTtthFKUNyHS0S4wJQ==} + micro-packed@0.7.2: + resolution: {integrity: sha512-HJ/u8+tMzgrJVAl6P/4l8KGjJSA3SCZaRb1m4wpbovNScCSmVOGUYbkkcoPPcknCHWPpRAdjy+yqXqyQWf+k8g==} micromatch@4.0.7: resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==} @@ -1392,6 +1392,11 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + nanoid@3.3.8: + resolution: {integrity: sha512-WNLf5Sd8oZxOm+TzppcYk8gVOgP+l58xNy58D0nbUnOxOWRWvlcCV4kUF7ltmI6PsrLl/BgKEyS4mqsGChFN0w==} + engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} + hasBin: true + natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -1435,8 +1440,8 @@ packages: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} - ox@0.1.2: - resolution: {integrity: sha512-ak/8K0Rtphg9vnRJlbOdaX9R7cmxD2MiSthjWGaQdMk3D7hrAlDoM+6Lxn7hN52Za3vrXfZ7enfke/5WjolDww==} + ox@0.6.7: + resolution: {integrity: sha512-17Gk/eFsFRAZ80p5eKqv89a57uXjd3NgIf1CaXojATPBuujVc/fQSVhBeAU9JCRB+k7J50WQAyWTxK19T9GgbA==} peerDependencies: typescript: '>=5.4.0' peerDependenciesMeta: @@ -1531,8 +1536,8 @@ packages: resolution: {integrity: sha512-YF2kKIUzAofPMpfH6hOi2cGnv/HrUlfucspc7pDyvv7kGdqXrfj8SCl/t8owkEgKEuu8ZcRjSOxFxVLqwChZ2Q==} engines: {node: ^10 || ^12 || >=14} - postcss@8.4.49: - resolution: {integrity: sha512-OCVPnIObs4N29kxTjzLfUryOkvZEq+pf8jTF0lg8E7uETuWHA+v7j3c/xJmiqpX450191LlmZfUKkXxkTry7nA==} + postcss@8.5.3: + resolution: {integrity: sha512-dle9A3yYxlBSrt8Fu+IpjGT8SY8hN0mlaA6GY8t0P5PjIOZemULz/E2Bnm/2dcUOena75OTNkHI76uZBNUUq3A==} engines: {node: ^10 || ^12 || >=14} prelude-ls@1.2.1: @@ -1610,6 +1615,11 @@ packages: engines: {node: '>=10'} hasBin: true + semver@7.7.1: + resolution: {integrity: sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==} + engines: {node: '>=10'} + hasBin: true + shebang-command@2.0.0: resolution: {integrity: sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==} engines: {node: '>=8'} @@ -1810,14 +1820,14 @@ packages: undici-types@5.26.5: resolution: {integrity: sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==} - undici-types@6.19.8: - resolution: {integrity: sha512-ve2KP6f/JnbPBFyobGHuerC9g1FYGn/F8n1LWTwNxCEzd6IfqTwUQcNXgEtmmQ6DlRrC1hrSrBnCZPokRrDHjw==} + undici-types@6.20.0: + resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==} uri-js@4.4.1: resolution: {integrity: sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==} - viem@2.21.44: - resolution: {integrity: sha512-oyLTCt7OQUetQN2m9KPNgSA//MzpnQLABAyglPKh+fAypU8cTT/hC5UyLQvaYt4WPg6dkbKOxfsahV4739pu9w==} + viem@2.23.5: + resolution: {integrity: sha512-cUfBHdFQHmBlPW0loFXda0uZcoU+uJw3NRYQRwYgkrpH6PgovH8iuVqDn6t1jZk82zny4wQL54c9dCX2W9kLMg==} peerDependencies: typescript: '>=5.0.4' peerDependenciesMeta: @@ -1882,9 +1892,6 @@ packages: jsdom: optional: true - webauthn-p256@0.0.10: - resolution: {integrity: sha512-EeYD+gmIT80YkSIDb2iWq0lq2zbHo1CxHlQTeJ+KkCILWpVy3zASH3ByD4bopzfk0uCwXxLqKGLqp2W4O28VFA==} - webidl-conversions@3.0.1: resolution: {integrity: sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==} @@ -1943,8 +1950,8 @@ packages: engines: {node: '>= 14'} hasBin: true - yaml@2.6.0: - resolution: {integrity: sha512-a6ae//JvKDEra2kdi1qzCyrJW/WZCgFi8ydDV+eXExl95t+5R+ijnqHJbz9tmMh8FUjx3iv2fCQ4dclAQlO2UQ==} + yaml@2.7.0: + resolution: {integrity: sha512-+hSoy/QHluxmC9kCIJyL/uyFmLmc+e5CFR5Wa+bpIhIj85LVb9ZH2nVnqrHoSvKogwODv0ClqZkmiSSaIH5LTA==} engines: {node: '>= 14'} hasBin: true @@ -1973,7 +1980,7 @@ snapshots: '@c4/btc-utils@0.3.1': optionalDependencies: - '@scure/btc-signer': 1.4.0 + '@scure/btc-signer': 1.6.0 '@c4605/toolconfs@5.3.0(@typescript-eslint/eslint-plugin@7.17.0(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4))(@typescript-eslint/experimental-utils@5.62.0(eslint@8.57.0)(typescript@5.5.4))(@typescript-eslint/parser@7.17.0(eslint@8.57.0)(typescript@5.5.4))(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint-plugin-prettier@5.2.1(eslint-config-prettier@9.1.0(eslint@8.57.0))(eslint@8.57.0)(prettier@3.3.3))(eslint@8.57.0)(prettier@3.3.3)': dependencies: @@ -2197,15 +2204,15 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - '@noble/curves@1.6.0': + '@noble/curves@1.8.1': dependencies: - '@noble/hashes': 1.5.0 + '@noble/hashes': 1.7.1 '@noble/hashes@1.1.5': {} '@noble/hashes@1.4.0': {} - '@noble/hashes@1.5.0': {} + '@noble/hashes@1.7.1': {} '@noble/secp256k1@1.7.1': {} @@ -2274,25 +2281,25 @@ snapshots: '@rollup/rollup-win32-x64-msvc@4.19.1': optional: true - '@scure/base@1.1.9': {} + '@scure/base@1.2.4': {} - '@scure/bip32@1.5.0': + '@scure/bip32@1.6.2': dependencies: - '@noble/curves': 1.6.0 - '@noble/hashes': 1.5.0 - '@scure/base': 1.1.9 + '@noble/curves': 1.8.1 + '@noble/hashes': 1.7.1 + '@scure/base': 1.2.4 - '@scure/bip39@1.4.0': + '@scure/bip39@1.5.4': dependencies: - '@noble/hashes': 1.5.0 - '@scure/base': 1.1.9 + '@noble/hashes': 1.7.1 + '@scure/base': 1.2.4 - '@scure/btc-signer@1.4.0': + '@scure/btc-signer@1.6.0': dependencies: - '@noble/curves': 1.6.0 - '@noble/hashes': 1.5.0 - '@scure/base': 1.1.9 - micro-packed: 0.6.3 + '@noble/curves': 1.8.1 + '@noble/hashes': 1.7.1 + '@scure/base': 1.2.4 + micro-packed: 0.7.2 optional: true '@shikijs/core@1.14.1': @@ -2344,9 +2351,9 @@ snapshots: dependencies: undici-types: 5.26.5 - '@types/node@22.9.0': + '@types/node@22.13.5': dependencies: - undici-types: 6.19.8 + undici-types: 6.20.0 optional: true '@types/semver@7.5.8': {} @@ -2422,10 +2429,10 @@ snapshots: dependencies: '@typescript-eslint/types': 5.62.0 '@typescript-eslint/visitor-keys': 5.62.0 - debug: 4.3.7 + debug: 4.4.0 globby: 11.1.0 is-glob: 4.0.3 - semver: 7.6.3 + semver: 7.7.1 tsutils: 3.21.0(typescript@5.5.4) optionalDependencies: typescript: 5.5.4 @@ -2457,7 +2464,7 @@ snapshots: '@typescript-eslint/typescript-estree': 5.62.0(typescript@5.5.4) eslint: 8.57.0 eslint-scope: 5.1.1 - semver: 7.6.3 + semver: 7.7.1 transitivePeerDependencies: - supports-color - typescript @@ -2514,7 +2521,7 @@ snapshots: loupe: 2.3.7 pretty-format: 29.7.0 - abitype@1.0.6(typescript@5.5.4): + abitype@1.0.8(typescript@5.5.4): optionalDependencies: typescript: 5.5.4 @@ -2687,7 +2694,7 @@ snapshots: dependencies: ms: 2.1.2 - debug@4.3.7: + debug@4.4.0: dependencies: ms: 2.1.3 @@ -3135,9 +3142,9 @@ snapshots: merge2@1.4.1: {} - micro-packed@0.6.3: + micro-packed@0.7.2: dependencies: - '@scure/base': 1.1.9 + '@scure/base': 1.2.4 optional: true micromatch@4.0.7: @@ -3184,6 +3191,9 @@ snapshots: nanoid@3.3.7: {} + nanoid@3.3.8: + optional: true + natural-compare@1.4.0: {} node-fetch@2.7.0: @@ -3223,14 +3233,14 @@ snapshots: type-check: 0.4.0 word-wrap: 1.2.5 - ox@0.1.2(typescript@5.5.4): + ox@0.6.7(typescript@5.5.4): dependencies: '@adraffy/ens-normalize': 1.11.0 - '@noble/curves': 1.6.0 - '@noble/hashes': 1.5.0 - '@scure/bip32': 1.5.0 - '@scure/bip39': 1.4.0 - abitype: 1.0.6(typescript@5.5.4) + '@noble/curves': 1.8.1 + '@noble/hashes': 1.7.1 + '@scure/bip32': 1.6.2 + '@scure/bip39': 1.5.4 + abitype: 1.0.8(typescript@5.5.4) eventemitter3: 5.0.1 optionalDependencies: typescript: 5.5.4 @@ -3289,13 +3299,13 @@ snapshots: mlly: 1.7.1 pathe: 1.1.2 - postcss-load-config@6.0.1(postcss@8.4.49)(tsx@4.16.2)(yaml@2.6.0): + postcss-load-config@6.0.1(postcss@8.5.3)(tsx@4.16.2)(yaml@2.7.0): dependencies: lilconfig: 3.1.2 optionalDependencies: - postcss: 8.4.49 + postcss: 8.5.3 tsx: 4.16.2 - yaml: 2.6.0 + yaml: 2.7.0 postcss@8.4.40: dependencies: @@ -3303,9 +3313,9 @@ snapshots: picocolors: 1.0.1 source-map-js: 1.2.0 - postcss@8.4.49: + postcss@8.5.3: dependencies: - nanoid: 3.3.7 + nanoid: 3.3.8 picocolors: 1.1.1 source-map-js: 1.2.1 optional: true @@ -3380,6 +3390,8 @@ snapshots: semver@7.6.3: {} + semver@7.7.1: {} + shebang-command@2.0.0: dependencies: shebang-regex: 3.0.0 @@ -3499,7 +3511,7 @@ snapshots: tslib@2.6.3: {} - tsup@8.2.3(postcss@8.4.49)(tsx@4.16.2)(typescript@5.5.4)(yaml@2.6.0): + tsup@8.2.3(postcss@8.5.3)(tsx@4.16.2)(typescript@5.5.4)(yaml@2.7.0): dependencies: bundle-require: 5.0.0(esbuild@0.23.0) cac: 6.7.14 @@ -3511,14 +3523,14 @@ snapshots: globby: 11.1.0 joycon: 3.1.1 picocolors: 1.0.1 - postcss-load-config: 6.0.1(postcss@8.4.49)(tsx@4.16.2)(yaml@2.6.0) + postcss-load-config: 6.0.1(postcss@8.5.3)(tsx@4.16.2)(yaml@2.7.0) resolve-from: 5.0.0 rollup: 4.19.1 source-map: 0.8.0-beta.0 sucrase: 3.35.0 tree-kill: 1.2.2 optionalDependencies: - postcss: 8.4.49 + postcss: 8.5.3 typescript: 5.5.4 transitivePeerDependencies: - jiti @@ -3563,23 +3575,22 @@ snapshots: undici-types@5.26.5: {} - undici-types@6.19.8: + undici-types@6.20.0: optional: true uri-js@4.4.1: dependencies: punycode: 2.3.1 - viem@2.21.44(typescript@5.5.4): + viem@2.23.5(typescript@5.5.4): dependencies: - '@noble/curves': 1.6.0 - '@noble/hashes': 1.5.0 - '@scure/bip32': 1.5.0 - '@scure/bip39': 1.4.0 - abitype: 1.0.6(typescript@5.5.4) + '@noble/curves': 1.8.1 + '@noble/hashes': 1.7.1 + '@scure/bip32': 1.6.2 + '@scure/bip39': 1.5.4 + abitype: 1.0.8(typescript@5.5.4) isows: 1.0.6(ws@8.18.0) - ox: 0.1.2(typescript@5.5.4) - webauthn-p256: 0.0.10 + ox: 0.6.7(typescript@5.5.4) ws: 8.18.0 optionalDependencies: typescript: 5.5.4 @@ -3588,13 +3599,13 @@ snapshots: - utf-8-validate - zod - vite-node@1.6.0(@types/node@22.9.0): + vite-node@1.6.0(@types/node@22.13.5): dependencies: cac: 6.7.14 debug: 4.3.6 pathe: 1.1.2 picocolors: 1.0.1 - vite: 5.3.5(@types/node@22.9.0) + vite: 5.3.5(@types/node@22.13.5) transitivePeerDependencies: - '@types/node' - less @@ -3605,16 +3616,16 @@ snapshots: - supports-color - terser - vite@5.3.5(@types/node@22.9.0): + vite@5.3.5(@types/node@22.13.5): dependencies: esbuild: 0.21.5 postcss: 8.4.40 rollup: 4.19.1 optionalDependencies: - '@types/node': 22.9.0 + '@types/node': 22.13.5 fsevents: 2.3.3 - vitest@1.6.0(@types/node@22.9.0): + vitest@1.6.0(@types/node@22.13.5): dependencies: '@vitest/expect': 1.6.0 '@vitest/runner': 1.6.0 @@ -3633,11 +3644,11 @@ snapshots: strip-literal: 2.1.0 tinybench: 2.8.0 tinypool: 0.8.4 - vite: 5.3.5(@types/node@22.9.0) - vite-node: 1.6.0(@types/node@22.9.0) + vite: 5.3.5(@types/node@22.13.5) + vite-node: 1.6.0(@types/node@22.13.5) why-is-node-running: 2.3.0 optionalDependencies: - '@types/node': 22.9.0 + '@types/node': 22.13.5 transitivePeerDependencies: - less - lightningcss @@ -3647,11 +3658,6 @@ snapshots: - supports-color - terser - webauthn-p256@0.0.10: - dependencies: - '@noble/curves': 1.6.0 - '@noble/hashes': 1.5.0 - webidl-conversions@3.0.1: {} webidl-conversions@4.0.2: {} @@ -3698,7 +3704,7 @@ snapshots: yaml@2.5.0: {} - yaml@2.6.0: + yaml@2.7.0: optional: true yargs-parser@21.1.1: {} diff --git a/scripts/printOnChainConfigs.ts b/scripts/printOnChainConfigs.ts index c79d8f7..9c0bf7e 100644 --- a/scripts/printOnChainConfigs.ts +++ b/scripts/printOnChainConfigs.ts @@ -1,5 +1,6 @@ -import { defaultEvmClients } from "../src/evmUtils/evmClients" +import { XLinkSDK } from "../src" import { getAllAddresses } from "../src/evmUtils/xlinkContractHelpers" +import { getXLinkSDKContext } from "../src/lowlevelUnstableInfos" import { _allKnownEVMChains } from "../src/utils/types/knownIds" async function print(matchers: { chain: string[] }): Promise { @@ -7,23 +8,12 @@ async function print(matchers: { chain: string[] }): Promise { matchers.chain.some(m => c.includes(m)), ) + const sdk = new XLinkSDK() + const ctx = getXLinkSDKContext(sdk) + await Promise.all( chainIds.map(chainId => - getAllAddresses( - { - backendAPI: { - runtimeEnv: "prod", - }, - stacks: {}, - btc: {}, - brc20: {}, - runes: {}, - evm: { - viemClients: defaultEvmClients, - }, - }, - chainId, - ).then(resp => { + getAllAddresses(ctx, chainId).then(resp => { console.log(chainId, resp?.onChainAddresses ?? "undefined") return resp }),