diff --git a/examples/node/package.json b/examples/node/package.json index d88a5b36..f216bf69 100644 --- a/examples/node/package.json +++ b/examples/node/package.json @@ -7,12 +7,12 @@ "author": "LI.FI ", "license": "MIT", "dependencies": { - "@lifi/data-types": "^6.7.0", - "@lifi/sdk": "^3.6.5", + "@lifi/data-types": "^6.8.0", + "@lifi/sdk": "^3.6.6", "@wagmi/connectors": "^5.7.12", "@wagmi/core": "^2.16.7", "dotenv": "^16.4.7", - "viem": "^2.25.0" + "viem": "^2.26.0" }, "scripts": { "example:swap": "tsx examples/swap.ts", @@ -26,7 +26,7 @@ "devDependencies": { "@types/node": "^22.14.0", "tsx": "^4.19.3", - "typescript": "^5.8.2" + "typescript": "^5.8.3" }, "packageManager": "pnpm@10.5.2" } diff --git a/examples/node/pnpm-lock.yaml b/examples/node/pnpm-lock.yaml index 78eabfcd..dd23dc22 100644 --- a/examples/node/pnpm-lock.yaml +++ b/examples/node/pnpm-lock.yaml @@ -9,23 +9,23 @@ importers: .: dependencies: '@lifi/data-types': - specifier: ^6.7.0 - version: 6.7.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + specifier: ^6.8.0 + version: 6.8.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) '@lifi/sdk': - specifier: ^3.6.5 - version: 3.6.5(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)(viem@2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)) + specifier: ^3.6.6 + version: 3.6.6(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(viem@2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)) '@wagmi/connectors': specifier: ^5.7.12 - version: 5.7.12(@wagmi/core@2.16.7(typescript@5.8.2)(use-sync-external-store@1.2.0)(viem@2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)))(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)(viem@2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)) + version: 5.7.12(@wagmi/core@2.16.7(typescript@5.8.3)(use-sync-external-store@1.2.0)(viem@2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)))(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(viem@2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)) '@wagmi/core': specifier: ^2.16.7 - version: 2.16.7(typescript@5.8.2)(use-sync-external-store@1.2.0)(viem@2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)) + version: 2.16.7(typescript@5.8.3)(use-sync-external-store@1.2.0)(viem@2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)) dotenv: specifier: ^16.4.7 version: 16.4.7 viem: - specifier: ^2.25.0 - version: 2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + specifier: ^2.26.0 + version: 2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) devDependencies: '@types/node': specifier: ^22.14.0 @@ -34,8 +34,8 @@ importers: specifier: ^4.19.3 version: 4.19.3 typescript: - specifier: ^5.8.2 - version: 5.8.2 + specifier: ^5.8.3 + version: 5.8.3 packages: @@ -227,20 +227,17 @@ packages: resolution: {integrity: sha512-zQ0IqbdX8FZ9aw11vP+dZkKDkS+kgIvQPHnSAXzP9pLu+Rfu3D3XEeLbicvoXJTYnhZiPmsZUxgdzXwNKxRPbA==} engines: {node: '>=14'} - '@lifi/data-types@6.7.0': - resolution: {integrity: sha512-nmDQkOvJWuMfNO+7U5431U5HFcYB9mDYOJnhYZQSfq2ZvzKDth7Z4IbiL0kC+9DxwOmevjrgjWLZnLtjDpHo+A==} + '@lifi/data-types@6.8.0': + resolution: {integrity: sha512-1ER0FKhbRW7NZ0PZjTX8oZ0aN83AI7Lb1LbBVGItg2rci2fojCVimCPuT0Cm0ahLKNfR1Iz4ZM6euUgG6p9lRA==} - '@lifi/sdk@3.6.5': - resolution: {integrity: sha512-IxCybe5WYRmM+ROiLP1OFZ327SkVzgQBAcNJim8dZ15Gqv2rTKxxUtILGNqABnvKKAiuNdv58IXWCSvamfovCw==} + '@lifi/sdk@3.6.6': + resolution: {integrity: sha512-mag7QJKSl+06oNYhJNMnGoKDED9tIWrqAtUpKFKY3SA4PFirG+3D4GIXoUCD3afAE5vTnJ2hzeIcqAmEHkYGVA==} peerDependencies: viem: ^2.21.0 '@lifi/types@17.10.0': resolution: {integrity: sha512-nC18YgEPkojiGEb5KG5BxuybCajz072StT8t57IW5pUywISdFfy0+1aajPZxOjCMEApBtYDz87jH+Azo3mkP3A==} - '@lifi/types@17.8.0': - resolution: {integrity: sha512-3lDpu6PqfOOu/JuM20nxAPJc44h4Wtp4qwmaup/imPHe0f/OwFO352JOcymSup5WouNO+rMrrgW1zcj6hL7yXQ==} - '@lit-labs/ssr-dom-shim@1.3.0': resolution: {integrity: sha512-nQIWonJ6eFAvUUrSlwyHDm/aE8PBDu5kRpL0vHMg6K8fK3Diq1xdPjTnsJSwxABhaZ+5eBi1btQB5ShUTKo4nQ==} @@ -1162,6 +1159,9 @@ packages: preact@10.26.4: resolution: {integrity: sha512-KJhO7LBFTjP71d83trW+Ilnjbo+ySsaAgCfXOXUlmGzJ4ygYPWmysm77yg4emwfmoz3b22yvH5IsVFHbhUaH5w==} + preact@10.26.5: + resolution: {integrity: sha512-fmpDkgfGU6JYux9teDWLhj9mKN55tyepwYbxHgQuIxbWQzgFg5vk7Mrrtfx7xRxq798ynkY4DDDxZr235Kk+4w==} + process-nextick-args@2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} @@ -1321,8 +1321,8 @@ packages: engines: {node: '>=18.0.0'} hasBin: true - typescript@5.8.2: - resolution: {integrity: sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==} + typescript@5.8.3: + resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} engines: {node: '>=14.17'} hasBin: true @@ -1459,8 +1459,8 @@ packages: typescript: optional: true - viem@2.25.0: - resolution: {integrity: sha512-TtFgfQkZOfb642s8+i+h27dRhBfZV//WWOkZ9saoS1Ml8kipj9RiOiDaSmAUly1rhq9kbnYhni1xVtb195XVGA==} + viem@2.26.0: + resolution: {integrity: sha512-Osht20EySRAcfMhCGAJaWuaREXM7y9vDloLvUTXuAfFq7JNGM5+o1wsE4LXw1KpRBrBliIAJjM+c2wMtMEvlCQ==} peerDependencies: typescript: '>=5.0.4' peerDependenciesMeta: @@ -1583,13 +1583,13 @@ snapshots: dependencies: regenerator-runtime: 0.14.1 - '@bigmi/core@0.1.1(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)': + '@bigmi/core@0.1.1(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: '@noble/hashes': 1.7.1 bech32: 2.0.0 - bitcoinjs-lib: 7.0.0-rc.0(typescript@5.8.2) + bitcoinjs-lib: 7.0.0-rc.0(typescript@5.8.3) bs58: 6.0.0 - viem: 2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + viem: 2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - typescript @@ -1605,7 +1605,7 @@ snapshots: eth-json-rpc-filters: 6.0.1 eventemitter3: 5.0.1 keccak: 3.0.4 - preact: 10.26.4 + preact: 10.26.5 sha.js: 2.4.11 transitivePeerDependencies: - supports-color @@ -1716,26 +1716,26 @@ snapshots: ethereum-cryptography: 2.2.1 micro-ftch: 0.3.1 - '@lifi/data-types@6.7.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)': + '@lifi/data-types@6.8.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: - '@lifi/types': 17.8.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + '@lifi/types': 17.10.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - typescript - utf-8-validate - zod - '@lifi/sdk@3.6.5(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)(viem@2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10))': + '@lifi/sdk@3.6.6(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(viem@2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10))': dependencies: - '@bigmi/core': 0.1.1(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) - '@lifi/types': 17.10.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + '@bigmi/core': 0.1.1(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) + '@lifi/types': 17.10.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) '@noble/curves': 1.8.1 '@solana/wallet-adapter-base': 0.9.24(@solana/web3.js@1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) '@solana/web3.js': 1.98.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) bech32: 2.0.0 - bitcoinjs-lib: 7.0.0-rc.0(typescript@5.8.2) + bitcoinjs-lib: 7.0.0-rc.0(typescript@5.8.3) bs58: 6.0.0 - viem: 2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + viem: 2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - encoding @@ -1743,18 +1743,9 @@ snapshots: - utf-8-validate - zod - '@lifi/types@17.10.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)': + '@lifi/types@17.10.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: - viem: 2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) - transitivePeerDependencies: - - bufferutil - - typescript - - utf-8-validate - - zod - - '@lifi/types@17.8.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)': - dependencies: - viem: 2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + viem: 2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - typescript @@ -1990,9 +1981,9 @@ snapshots: '@paulmillr/qr@0.2.1': {} - '@safe-global/safe-apps-provider@0.18.5(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)': + '@safe-global/safe-apps-provider@0.18.5(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: - '@safe-global/safe-apps-sdk': 9.1.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + '@safe-global/safe-apps-sdk': 9.1.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) events: 3.3.0 transitivePeerDependencies: - bufferutil @@ -2000,10 +1991,10 @@ snapshots: - utf-8-validate - zod - '@safe-global/safe-apps-sdk@9.1.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)': + '@safe-global/safe-apps-sdk@9.1.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: '@safe-global/safe-gateway-typescript-sdk': 3.22.9 - viem: 2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + viem: 2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - typescript @@ -2111,18 +2102,18 @@ snapshots: dependencies: '@types/node': 22.14.0 - '@wagmi/connectors@5.7.12(@wagmi/core@2.16.7(typescript@5.8.2)(use-sync-external-store@1.2.0)(viem@2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)))(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)(viem@2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10))': + '@wagmi/connectors@5.7.12(@wagmi/core@2.16.7(typescript@5.8.3)(use-sync-external-store@1.2.0)(viem@2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)))(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)(viem@2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10))': dependencies: '@coinbase/wallet-sdk': 4.3.0 '@metamask/sdk': 0.32.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) - '@safe-global/safe-apps-provider': 0.18.5(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) - '@safe-global/safe-apps-sdk': 9.1.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) - '@wagmi/core': 2.16.7(typescript@5.8.2)(use-sync-external-store@1.2.0)(viem@2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)) - '@walletconnect/ethereum-provider': 2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + '@safe-global/safe-apps-provider': 0.18.5(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) + '@safe-global/safe-apps-sdk': 9.1.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) + '@wagmi/core': 2.16.7(typescript@5.8.3)(use-sync-external-store@1.2.0)(viem@2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)) + '@walletconnect/ethereum-provider': 2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) cbw-sdk: '@coinbase/wallet-sdk@3.9.3' - viem: 2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + viem: 2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -2150,14 +2141,14 @@ snapshots: - utf-8-validate - zod - '@wagmi/core@2.16.7(typescript@5.8.2)(use-sync-external-store@1.2.0)(viem@2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10))': + '@wagmi/core@2.16.7(typescript@5.8.3)(use-sync-external-store@1.2.0)(viem@2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10))': dependencies: eventemitter3: 5.0.1 - mipd: 0.0.7(typescript@5.8.2) - viem: 2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + mipd: 0.0.7(typescript@5.8.3) + viem: 2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) zustand: 5.0.0(use-sync-external-store@1.2.0) optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - '@types/react' - immer @@ -2170,7 +2161,7 @@ snapshots: dependencies: '@wallet-standard/base': 1.1.0 - '@walletconnect/core@2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)': + '@walletconnect/core@2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-provider': 1.0.14 @@ -2184,7 +2175,7 @@ snapshots: '@walletconnect/safe-json': 1.0.2 '@walletconnect/time': 1.0.2 '@walletconnect/types': 2.19.2 - '@walletconnect/utils': 2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + '@walletconnect/utils': 2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) '@walletconnect/window-getters': 1.0.1 es-toolkit: 1.33.0 events: 3.3.0 @@ -2217,7 +2208,7 @@ snapshots: dependencies: tslib: 1.14.1 - '@walletconnect/ethereum-provider@2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)': + '@walletconnect/ethereum-provider@2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: '@walletconnect/jsonrpc-http-connection': 1.0.8 '@walletconnect/jsonrpc-provider': 1.0.14 @@ -2225,10 +2216,10 @@ snapshots: '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/keyvaluestorage': 1.1.1 '@walletconnect/modal': 2.7.0 - '@walletconnect/sign-client': 2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + '@walletconnect/sign-client': 2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) '@walletconnect/types': 2.19.2 - '@walletconnect/universal-provider': 2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) - '@walletconnect/utils': 2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + '@walletconnect/universal-provider': 2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) + '@walletconnect/utils': 2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) events: 3.3.0 transitivePeerDependencies: - '@azure/app-configuration' @@ -2374,16 +2365,16 @@ snapshots: dependencies: tslib: 1.14.1 - '@walletconnect/sign-client@2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)': + '@walletconnect/sign-client@2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: - '@walletconnect/core': 2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + '@walletconnect/core': 2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) '@walletconnect/events': 1.0.1 '@walletconnect/heartbeat': 1.2.2 '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/logger': 2.1.2 '@walletconnect/time': 1.0.2 '@walletconnect/types': 2.19.2 - '@walletconnect/utils': 2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + '@walletconnect/utils': 2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) events: 3.3.0 transitivePeerDependencies: - '@azure/app-configuration' @@ -2441,7 +2432,7 @@ snapshots: - ioredis - uploadthing - '@walletconnect/universal-provider@2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)': + '@walletconnect/universal-provider@2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: '@walletconnect/events': 1.0.1 '@walletconnect/jsonrpc-http-connection': 1.0.8 @@ -2450,9 +2441,9 @@ snapshots: '@walletconnect/jsonrpc-utils': 1.0.8 '@walletconnect/keyvaluestorage': 1.1.1 '@walletconnect/logger': 2.1.2 - '@walletconnect/sign-client': 2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + '@walletconnect/sign-client': 2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) '@walletconnect/types': 2.19.2 - '@walletconnect/utils': 2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + '@walletconnect/utils': 2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) es-toolkit: 1.33.0 events: 3.3.0 transitivePeerDependencies: @@ -2480,7 +2471,7 @@ snapshots: - utf-8-validate - zod - '@walletconnect/utils@2.19.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10)': + '@walletconnect/utils@2.19.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: '@noble/ciphers': 1.2.1 '@noble/curves': 1.8.1 @@ -2498,7 +2489,7 @@ snapshots: detect-browser: 5.3.0 query-string: 7.1.3 uint8arrays: 3.1.0 - viem: 2.23.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10) + viem: 2.23.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - '@azure/app-configuration' - '@azure/cosmos' @@ -2537,9 +2528,9 @@ snapshots: jsonparse: 1.3.1 through: 2.3.8 - abitype@1.0.8(typescript@5.8.2): + abitype@1.0.8(typescript@5.8.3): optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 agentkeepalive@4.6.0: dependencies: @@ -2589,14 +2580,14 @@ snapshots: uint8array-tools: 0.0.9 varuint-bitcoin: 2.0.0 - bitcoinjs-lib@7.0.0-rc.0(typescript@5.8.2): + bitcoinjs-lib@7.0.0-rc.0(typescript@5.8.3): dependencies: '@noble/hashes': 1.7.1 bech32: 2.0.0 bip174: 3.0.0-rc.1 bs58check: 4.0.0 uint8array-tools: 0.0.9 - valibot: 0.38.0(typescript@5.8.2) + valibot: 0.38.0(typescript@5.8.3) varuint-bitcoin: 2.0.0 transitivePeerDependencies: - typescript @@ -3061,9 +3052,9 @@ snapshots: micro-ftch@0.3.1: {} - mipd@0.0.7(typescript@5.8.2): + mipd@0.0.7(typescript@5.8.3): optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 motion@10.16.2: dependencies: @@ -3110,31 +3101,31 @@ snapshots: dependencies: wrappy: 1.0.2 - ox@0.6.7(typescript@5.8.2): + ox@0.6.7(typescript@5.8.3): dependencies: '@adraffy/ens-normalize': 1.11.0 '@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.8.2) + abitype: 1.0.8(typescript@5.8.3) eventemitter3: 5.0.1 optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - zod - ox@0.6.9(typescript@5.8.2): + ox@0.6.9(typescript@5.8.3): dependencies: '@adraffy/ens-normalize': 1.11.0 '@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.8.2) + abitype: 1.0.8(typescript@5.8.3) eventemitter3: 5.0.1 optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - zod @@ -3185,6 +3176,8 @@ snapshots: preact@10.26.4: {} + preact@10.26.5: {} + process-nextick-args@2.0.1: {} process-warning@1.0.0: {} @@ -3358,7 +3351,7 @@ snapshots: optionalDependencies: fsevents: 2.3.3 - typescript@5.8.2: {} + typescript@5.8.3: {} ufo@1.5.4: {} @@ -3407,9 +3400,9 @@ snapshots: uuid@9.0.1: {} - valibot@0.38.0(typescript@5.8.2): + valibot@0.38.0(typescript@5.8.3): optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 valtio@1.11.2: dependencies: @@ -3420,35 +3413,35 @@ snapshots: dependencies: uint8array-tools: 0.0.8 - viem@2.23.2(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10): + viem@2.23.2(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10): 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(typescript@5.8.2) + abitype: 1.0.8(typescript@5.8.3) isows: 1.0.6(ws@8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - ox: 0.6.7(typescript@5.8.2) + ox: 0.6.7(typescript@5.8.3) ws: 8.18.0(bufferutil@4.0.9)(utf-8-validate@5.0.10) optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - bufferutil - utf-8-validate - zod - viem@2.25.0(bufferutil@4.0.9)(typescript@5.8.2)(utf-8-validate@5.0.10): + viem@2.26.0(bufferutil@4.0.9)(typescript@5.8.3)(utf-8-validate@5.0.10): 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(typescript@5.8.2) + abitype: 1.0.8(typescript@5.8.3) isows: 1.0.6(ws@8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10)) - ox: 0.6.9(typescript@5.8.2) + ox: 0.6.9(typescript@5.8.3) ws: 8.18.1(bufferutil@4.0.9)(utf-8-validate@5.0.10) optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - bufferutil - utf-8-validate diff --git a/package.json b/package.json index 83385f46..d4abb22d 100644 --- a/package.json +++ b/package.json @@ -100,7 +100,7 @@ "bech32": "^2.0.0", "bitcoinjs-lib": "^7.0.0-rc.0", "bs58": "^6.0.0", - "viem": "^2.25.0" + "viem": "^2.26.0" }, "devDependencies": { "@biomejs/biome": "^1.9.4", @@ -117,7 +117,7 @@ "pinst": "^3.0.0", "standard-version": "^9.5.0", "ts-node": "^10.9.2", - "typescript": "^5.8.2", + "typescript": "^5.8.3", "vitest": "^3.1.1" }, "peerDependencies": { diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 55adb103..096a08fe 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,10 +10,10 @@ importers: dependencies: '@bigmi/core': specifier: ^0.1.1 - version: 0.1.1(bs58@6.0.0)(bufferutil@4.0.8)(typescript@5.8.2)(utf-8-validate@5.0.10) + version: 0.1.1(bs58@6.0.0)(bufferutil@4.0.8)(typescript@5.8.3)(utf-8-validate@5.0.10) '@lifi/types': specifier: ^17.10.0 - version: 17.10.0(bufferutil@4.0.8)(typescript@5.8.2)(utf-8-validate@5.0.10) + version: 17.10.0(bufferutil@4.0.8)(typescript@5.8.3)(utf-8-validate@5.0.10) '@noble/curves': specifier: ^1.8.1 version: 1.8.1 @@ -28,20 +28,20 @@ importers: version: 2.0.0 bitcoinjs-lib: specifier: ^7.0.0-rc.0 - version: 7.0.0-rc.0(typescript@5.8.2) + version: 7.0.0-rc.0(typescript@5.8.3) bs58: specifier: ^6.0.0 version: 6.0.0 viem: - specifier: ^2.25.0 - version: 2.25.0(bufferutil@4.0.8)(typescript@5.8.2)(utf-8-validate@5.0.10) + specifier: ^2.26.0 + version: 2.26.0(bufferutil@4.0.8)(typescript@5.8.3)(utf-8-validate@5.0.10) devDependencies: '@biomejs/biome': specifier: ^1.9.4 version: 1.9.4 '@commitlint/cli': specifier: ^19.8.0 - version: 19.8.0(@types/node@22.13.15)(typescript@5.8.2) + version: 19.8.0(@types/node@22.13.15)(typescript@5.8.3) '@commitlint/config-conventional': specifier: ^19.8.0 version: 19.8.0 @@ -53,7 +53,7 @@ importers: version: 8.18.1 '@vitest/coverage-v8': specifier: ^3.1.1 - version: 3.1.1(vitest@3.1.1(@types/node@22.13.15)(jiti@2.4.2)(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.2))(yaml@2.7.0)) + version: 3.1.1(vitest@3.1.1(@types/node@22.13.15)(jiti@2.4.2)(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.3))(yaml@2.7.0)) fs-extra: specifier: ^11.3.0 version: 11.3.0 @@ -65,10 +65,10 @@ importers: version: 15.5.0 madge: specifier: ^8.0.0 - version: 8.0.0(typescript@5.8.2) + version: 8.0.0(typescript@5.8.3) msw: specifier: ^2.7.3 - version: 2.7.3(@types/node@22.13.15)(typescript@5.8.2) + version: 2.7.3(@types/node@22.13.15)(typescript@5.8.3) pinst: specifier: ^3.0.0 version: 3.0.0 @@ -77,13 +77,13 @@ importers: version: 9.5.0 ts-node: specifier: ^10.9.2 - version: 10.9.2(@types/node@22.13.15)(typescript@5.8.2) + version: 10.9.2(@types/node@22.13.15)(typescript@5.8.3) typescript: - specifier: ^5.8.2 - version: 5.8.2 + specifier: ^5.8.3 + version: 5.8.3 vitest: specifier: ^3.1.1 - version: 3.1.1(@types/node@22.13.15)(jiti@2.4.2)(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.2))(yaml@2.7.0) + version: 3.1.1(@types/node@22.13.15)(jiti@2.4.2)(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.3))(yaml@2.7.0) packages: @@ -2691,8 +2691,8 @@ packages: typedarray@0.0.6: resolution: {integrity: sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==} - typescript@5.8.2: - resolution: {integrity: sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ==} + typescript@5.8.3: + resolution: {integrity: sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==} engines: {node: '>=14.17'} hasBin: true @@ -2758,8 +2758,8 @@ packages: varuint-bitcoin@2.0.0: resolution: {integrity: sha512-6QZbU/rHO2ZQYpWFDALCDSRsXbAs1VOEmXAxtbtjLtKuMJ/FQ8YbhfxlaiKv5nklci0M6lZtlZyxo9Q+qNnyog==} - viem@2.25.0: - resolution: {integrity: sha512-TtFgfQkZOfb642s8+i+h27dRhBfZV//WWOkZ9saoS1Ml8kipj9RiOiDaSmAUly1rhq9kbnYhni1xVtb195XVGA==} + viem@2.26.0: + resolution: {integrity: sha512-Osht20EySRAcfMhCGAJaWuaREXM7y9vDloLvUTXuAfFq7JNGM5+o1wsE4LXw1KpRBrBliIAJjM+c2wMtMEvlCQ==} peerDependencies: typescript: '>=5.0.4' peerDependenciesMeta: @@ -3019,13 +3019,13 @@ snapshots: '@bcoe/v8-coverage@1.0.2': {} - '@bigmi/core@0.1.1(bs58@6.0.0)(bufferutil@4.0.8)(typescript@5.8.2)(utf-8-validate@5.0.10)': + '@bigmi/core@0.1.1(bs58@6.0.0)(bufferutil@4.0.8)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: '@noble/hashes': 1.7.1 bech32: 2.0.0 - bitcoinjs-lib: 7.0.0-rc.0(typescript@5.8.2) + bitcoinjs-lib: 7.0.0-rc.0(typescript@5.8.3) bs58: 6.0.0 - viem: 2.25.0(bufferutil@4.0.8)(typescript@5.8.2)(utf-8-validate@5.0.10) + viem: 2.26.0(bufferutil@4.0.8)(typescript@5.8.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - typescript @@ -3080,11 +3080,11 @@ snapshots: '@types/tough-cookie': 4.0.5 tough-cookie: 4.1.4 - '@commitlint/cli@19.8.0(@types/node@22.13.15)(typescript@5.8.2)': + '@commitlint/cli@19.8.0(@types/node@22.13.15)(typescript@5.8.3)': dependencies: '@commitlint/format': 19.8.0 '@commitlint/lint': 19.8.0 - '@commitlint/load': 19.8.0(@types/node@22.13.15)(typescript@5.8.2) + '@commitlint/load': 19.8.0(@types/node@22.13.15)(typescript@5.8.3) '@commitlint/read': 19.8.0 '@commitlint/types': 19.8.0 tinyexec: 0.3.2 @@ -3131,15 +3131,15 @@ snapshots: '@commitlint/rules': 19.8.0 '@commitlint/types': 19.8.0 - '@commitlint/load@19.8.0(@types/node@22.13.15)(typescript@5.8.2)': + '@commitlint/load@19.8.0(@types/node@22.13.15)(typescript@5.8.3)': dependencies: '@commitlint/config-validator': 19.8.0 '@commitlint/execute-rule': 19.8.0 '@commitlint/resolve-extends': 19.8.0 '@commitlint/types': 19.8.0 chalk: 5.4.1 - cosmiconfig: 9.0.0(typescript@5.8.2) - cosmiconfig-typescript-loader: 6.1.0(@types/node@22.13.15)(cosmiconfig@9.0.0(typescript@5.8.2))(typescript@5.8.2) + cosmiconfig: 9.0.0(typescript@5.8.3) + cosmiconfig-typescript-loader: 6.1.0(@types/node@22.13.15)(cosmiconfig@9.0.0(typescript@5.8.3))(typescript@5.8.3) lodash.isplainobject: 4.0.6 lodash.merge: 4.6.2 lodash.uniq: 4.5.0 @@ -3335,9 +3335,9 @@ snapshots: '@jridgewell/resolve-uri': 3.1.2 '@jridgewell/sourcemap-codec': 1.5.0 - '@lifi/types@17.10.0(bufferutil@4.0.8)(typescript@5.8.2)(utf-8-validate@5.0.10)': + '@lifi/types@17.10.0(bufferutil@4.0.8)(typescript@5.8.3)(utf-8-validate@5.0.10)': dependencies: - viem: 2.25.0(bufferutil@4.0.8)(typescript@5.8.2)(utf-8-validate@5.0.10) + viem: 2.26.0(bufferutil@4.0.8)(typescript@5.8.3)(utf-8-validate@5.0.10) transitivePeerDependencies: - bufferutil - typescript @@ -3575,7 +3575,7 @@ snapshots: '@typescript-eslint/types@7.18.0': {} - '@typescript-eslint/typescript-estree@7.18.0(typescript@5.8.2)': + '@typescript-eslint/typescript-estree@7.18.0(typescript@5.8.3)': dependencies: '@typescript-eslint/types': 7.18.0 '@typescript-eslint/visitor-keys': 7.18.0 @@ -3584,9 +3584,9 @@ snapshots: is-glob: 4.0.3 minimatch: 9.0.5 semver: 7.6.3 - ts-api-utils: 1.3.0(typescript@5.8.2) + ts-api-utils: 1.3.0(typescript@5.8.3) optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - supports-color @@ -3595,7 +3595,7 @@ snapshots: '@typescript-eslint/types': 7.18.0 eslint-visitor-keys: 3.4.3 - '@vitest/coverage-v8@3.1.1(vitest@3.1.1(@types/node@22.13.15)(jiti@2.4.2)(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.2))(yaml@2.7.0))': + '@vitest/coverage-v8@3.1.1(vitest@3.1.1(@types/node@22.13.15)(jiti@2.4.2)(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.3))(yaml@2.7.0))': dependencies: '@ampproject/remapping': 2.3.0 '@bcoe/v8-coverage': 1.0.2 @@ -3609,7 +3609,7 @@ snapshots: std-env: 3.8.1 test-exclude: 7.0.1 tinyrainbow: 2.0.0 - vitest: 3.1.1(@types/node@22.13.15)(jiti@2.4.2)(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.2))(yaml@2.7.0) + vitest: 3.1.1(@types/node@22.13.15)(jiti@2.4.2)(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.3))(yaml@2.7.0) transitivePeerDependencies: - supports-color @@ -3620,13 +3620,13 @@ snapshots: chai: 5.2.0 tinyrainbow: 2.0.0 - '@vitest/mocker@3.1.1(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.2))(vite@6.2.4(@types/node@22.13.15)(jiti@2.4.2)(yaml@2.7.0))': + '@vitest/mocker@3.1.1(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.3))(vite@6.2.4(@types/node@22.13.15)(jiti@2.4.2)(yaml@2.7.0))': dependencies: '@vitest/spy': 3.1.1 estree-walker: 3.0.3 magic-string: 0.30.17 optionalDependencies: - msw: 2.7.3(@types/node@22.13.15)(typescript@5.8.2) + msw: 2.7.3(@types/node@22.13.15)(typescript@5.8.3) vite: 6.2.4(@types/node@22.13.15)(jiti@2.4.2)(yaml@2.7.0) '@vitest/pretty-format@3.1.1': @@ -3697,9 +3697,9 @@ snapshots: jsonparse: 1.3.1 through: 2.3.8 - abitype@1.0.8(typescript@5.8.2): + abitype@1.0.8(typescript@5.8.3): optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 acorn-walk@8.3.4: dependencies: @@ -3785,14 +3785,14 @@ snapshots: uint8array-tools: 0.0.9 varuint-bitcoin: 2.0.0 - bitcoinjs-lib@7.0.0-rc.0(typescript@5.8.2): + bitcoinjs-lib@7.0.0-rc.0(typescript@5.8.3): dependencies: '@noble/hashes': 1.6.1 bech32: 2.0.0 bip174: 3.0.0-rc.1 bs58check: 4.0.0 uint8array-tools: 0.0.9 - valibot: 0.38.0(typescript@5.8.2) + valibot: 0.38.0(typescript@5.8.3) varuint-bitcoin: 2.0.0 transitivePeerDependencies: - typescript @@ -4089,21 +4089,21 @@ snapshots: core-util-is@1.0.3: {} - cosmiconfig-typescript-loader@6.1.0(@types/node@22.13.15)(cosmiconfig@9.0.0(typescript@5.8.2))(typescript@5.8.2): + cosmiconfig-typescript-loader@6.1.0(@types/node@22.13.15)(cosmiconfig@9.0.0(typescript@5.8.3))(typescript@5.8.3): dependencies: '@types/node': 22.13.15 - cosmiconfig: 9.0.0(typescript@5.8.2) + cosmiconfig: 9.0.0(typescript@5.8.3) jiti: 2.4.2 - typescript: 5.8.2 + typescript: 5.8.3 - cosmiconfig@9.0.0(typescript@5.8.2): + cosmiconfig@9.0.0(typescript@5.8.3): dependencies: env-paths: 2.2.1 import-fresh: 3.3.1 js-yaml: 4.1.0 parse-json: 5.2.0 optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 create-require@1.1.1: {} @@ -4149,7 +4149,7 @@ snapshots: commander: 12.1.0 filing-cabinet: 5.0.2 precinct: 12.1.2 - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - supports-color @@ -4191,24 +4191,24 @@ snapshots: detective-stylus@5.0.0: {} - detective-typescript@13.0.0(typescript@5.8.2): + detective-typescript@13.0.0(typescript@5.8.3): dependencies: - '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.8.2) + '@typescript-eslint/typescript-estree': 7.18.0(typescript@5.8.3) ast-module-types: 6.0.0 node-source-walk: 7.0.0 - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - supports-color - detective-vue2@2.0.3(typescript@5.8.2): + detective-vue2@2.0.3(typescript@5.8.3): dependencies: '@vue/compiler-sfc': 3.5.11 detective-es6: 5.0.0 detective-sass: 6.0.0 detective-scss: 5.0.0 detective-stylus: 5.0.0 - detective-typescript: 13.0.0(typescript@5.8.2) - typescript: 5.8.2 + detective-typescript: 13.0.0(typescript@5.8.3) + typescript: 5.8.3 transitivePeerDependencies: - supports-color @@ -4368,7 +4368,7 @@ snapshots: sass-lookup: 6.0.1 stylus-lookup: 6.0.0 tsconfig-paths: 4.2.0 - typescript: 5.8.2 + typescript: 5.8.3 fill-range@7.1.1: dependencies: @@ -4803,7 +4803,7 @@ snapshots: dependencies: yallist: 4.0.0 - madge@8.0.0(typescript@5.8.2): + madge@8.0.0(typescript@5.8.3): dependencies: chalk: 4.1.2 commander: 7.2.0 @@ -4818,7 +4818,7 @@ snapshots: ts-graphviz: 2.1.4 walkdir: 0.4.1 optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - supports-color @@ -4909,7 +4909,7 @@ snapshots: ms@2.1.3: {} - msw@2.7.3(@types/node@22.13.15)(typescript@5.8.2): + msw@2.7.3(@types/node@22.13.15)(typescript@5.8.3): dependencies: '@bundled-es-modules/cookie': 2.0.1 '@bundled-es-modules/statuses': 1.0.1 @@ -4930,7 +4930,7 @@ snapshots: type-fest: 4.35.0 yargs: 17.7.2 optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - '@types/node' @@ -5001,17 +5001,17 @@ snapshots: outvariant@1.4.3: {} - ox@0.6.9(typescript@5.8.2): + ox@0.6.9(typescript@5.8.3): dependencies: '@adraffy/ens-normalize': 1.11.0 '@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.8.2) + abitype: 1.0.8(typescript@5.8.3) eventemitter3: 5.0.1 optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - zod @@ -5152,12 +5152,12 @@ snapshots: detective-sass: 6.0.0 detective-scss: 5.0.0 detective-stylus: 5.0.0 - detective-typescript: 13.0.0(typescript@5.8.2) - detective-vue2: 2.0.3(typescript@5.8.2) + detective-typescript: 13.0.0(typescript@5.8.3) + detective-vue2: 2.0.3(typescript@5.8.3) module-definition: 6.0.0 node-source-walk: 7.0.0 postcss: 8.4.47 - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - supports-color @@ -5536,9 +5536,9 @@ snapshots: trim-newlines@3.0.1: {} - ts-api-utils@1.3.0(typescript@5.8.2): + ts-api-utils@1.3.0(typescript@5.8.3): dependencies: - typescript: 5.8.2 + typescript: 5.8.3 ts-graphviz@2.1.4: dependencies: @@ -5547,7 +5547,7 @@ snapshots: '@ts-graphviz/common': 2.1.4 '@ts-graphviz/core': 2.0.5 - ts-node@10.9.2(@types/node@22.13.15)(typescript@5.8.2): + ts-node@10.9.2(@types/node@22.13.15)(typescript@5.8.3): dependencies: '@cspotcode/source-map-support': 0.8.1 '@tsconfig/node10': 1.0.11 @@ -5561,7 +5561,7 @@ snapshots: create-require: 1.1.1 diff: 4.0.2 make-error: 1.3.6 - typescript: 5.8.2 + typescript: 5.8.3 v8-compile-cache-lib: 3.0.1 yn: 3.1.1 @@ -5585,7 +5585,7 @@ snapshots: typedarray@0.0.6: {} - typescript@5.8.2: {} + typescript@5.8.3: {} uglify-js@3.19.3: optional: true @@ -5620,9 +5620,9 @@ snapshots: v8-compile-cache-lib@3.0.1: {} - valibot@0.38.0(typescript@5.8.2): + valibot@0.38.0(typescript@5.8.3): optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 validate-npm-package-license@3.0.4: dependencies: @@ -5633,18 +5633,18 @@ snapshots: dependencies: uint8array-tools: 0.0.8 - viem@2.25.0(bufferutil@4.0.8)(typescript@5.8.2)(utf-8-validate@5.0.10): + viem@2.26.0(bufferutil@4.0.8)(typescript@5.8.3)(utf-8-validate@5.0.10): 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(typescript@5.8.2) + abitype: 1.0.8(typescript@5.8.3) isows: 1.0.6(ws@8.18.1(bufferutil@4.0.8)(utf-8-validate@5.0.10)) - ox: 0.6.9(typescript@5.8.2) + ox: 0.6.9(typescript@5.8.3) ws: 8.18.1(bufferutil@4.0.8)(utf-8-validate@5.0.10) optionalDependencies: - typescript: 5.8.2 + typescript: 5.8.3 transitivePeerDependencies: - bufferutil - utf-8-validate @@ -5682,10 +5682,10 @@ snapshots: jiti: 2.4.2 yaml: 2.7.0 - vitest@3.1.1(@types/node@22.13.15)(jiti@2.4.2)(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.2))(yaml@2.7.0): + vitest@3.1.1(@types/node@22.13.15)(jiti@2.4.2)(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.3))(yaml@2.7.0): dependencies: '@vitest/expect': 3.1.1 - '@vitest/mocker': 3.1.1(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.2))(vite@6.2.4(@types/node@22.13.15)(jiti@2.4.2)(yaml@2.7.0)) + '@vitest/mocker': 3.1.1(msw@2.7.3(@types/node@22.13.15)(typescript@5.8.3))(vite@6.2.4(@types/node@22.13.15)(jiti@2.4.2)(yaml@2.7.0)) '@vitest/pretty-format': 3.1.1 '@vitest/runner': 3.1.1 '@vitest/snapshot': 3.1.1 diff --git a/src/core/EVM/EVMStepExecutor.ts b/src/core/EVM/EVMStepExecutor.ts index ef1d3e5e..d98bf405 100644 --- a/src/core/EVM/EVMStepExecutor.ts +++ b/src/core/EVM/EVMStepExecutor.ts @@ -447,20 +447,15 @@ export class EVMStepExecutor extends BaseStepExecutor { calls.push(transferCall) - const sendCallsResult = (await getAction( + const { id } = await getAction( this.client, sendCalls, 'sendCalls' )({ account: this.client.account!, calls, - })) as Address - // EIP-5792 spec was updated to return an object with id instead of string hash directly - // This check allows backwards compatibility during transition period - txHash = - typeof sendCallsResult === 'object' - ? (sendCallsResult as { id: Hash })?.id - : sendCallsResult + }) + txHash = id as Hash txType = 'batched' } else if (isRelayerTransaction) { const relayerTypedData = step.typedData.find( diff --git a/src/core/EVM/waitForBatchTransactionReceipt.ts b/src/core/EVM/waitForBatchTransactionReceipt.ts index 5b540bd6..8d199a41 100644 --- a/src/core/EVM/waitForBatchTransactionReceipt.ts +++ b/src/core/EVM/waitForBatchTransactionReceipt.ts @@ -3,11 +3,10 @@ import type { Hash, WalletCallReceipt as _WalletCallReceipt, } from 'viem' -import { getCallsStatus } from 'viem/experimental' +import { waitForCallsStatus } from 'viem/experimental' import { getAction } from 'viem/utils' import { LiFiErrorCode } from '../../errors/constants.js' import { TransactionError } from '../../errors/errors.js' -import { waitForResult } from '../../utils/waitForResult.js' export type WalletCallReceipt = _WalletCallReceipt< bigint, @@ -18,62 +17,41 @@ export const waitForBatchTransactionReceipt = async ( client: Client, batchHash: Hash ): Promise => { - return waitForResult( - async () => { - const callsDetails = await getAction( - client, - getCallsStatus, - 'getCallsStatus' - )({ - id: batchHash, - }) - - // EIP-5792 specs was updated to return 100 for pending transactions https://eips.ethereum.org/EIPS/eip-5792 - if ( - callsDetails.status === 'PENDING' || - callsDetails.status === (100 as any) - ) { - return undefined - } - - // EIP-5792 specs was updated to return 200 for confirmed transactions https://eips.ethereum.org/EIPS/eip-5792 - if (callsDetails.status === 'CONFIRMED' || callsDetails.status === 200) { - if ( - !callsDetails.receipts?.length || - !callsDetails.receipts.every((receipt) => receipt.transactionHash) || - callsDetails.receipts.some((receipt) => receipt.status === 'reverted') - ) { - throw new TransactionError( - LiFiErrorCode.TransactionFailed, - 'Transaction was reverted.' - ) - } - const transactionReceipt = callsDetails.receipts.at(-1)! - return transactionReceipt - } - - if (callsDetails.status === 400) { - throw new TransactionError( - LiFiErrorCode.TransactionCanceled, - 'Transaction was canceled.' - ) - } - if (callsDetails.status === 500) { - throw new TransactionError( - LiFiErrorCode.TransactionFailed, - 'Transaction failed.' - ) - } + const { receipts, status, statusCode } = await getAction( + client, + waitForCallsStatus, + 'waitForCallsStatus' + )({ + id: batchHash, + timeout: 300_000, + }) + if ( + status === 'success' || + // @ts-expect-error: for backwards compatibility + status === 'CONFIRMED' + ) { + if ( + !receipts?.length || + !receipts.every((receipt) => receipt.transactionHash) || + receipts.some((receipt) => receipt.status === 'reverted') + ) { throw new TransactionError( - LiFiErrorCode.TransactionNotFound, - 'Transaction not found.' + LiFiErrorCode.TransactionFailed, + 'Transaction was reverted.' ) - }, - 5000, - 3, - (_, error) => { - return !(error instanceof TransactionError) } + const transactionReceipt = receipts.at(-1)! + return transactionReceipt + } + if (statusCode >= 400 && statusCode < 500) { + throw new TransactionError( + LiFiErrorCode.TransactionCanceled, + 'Transaction was canceled.' + ) + } + throw new TransactionError( + LiFiErrorCode.TransactionFailed, + 'Transaction failed.' ) }