From 69707d80dfb0754fe6058174c224eb26911ee4ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B8b=C4=97rt=C3=B8?= <106074508+EchoDex@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:17:45 +0400 Subject: [PATCH 1/9] feat: testing new release --- package.json | 2 +- pnpm-lock.yaml | 607 +++++++++--------- script/getConfig.ts | 3 +- src/blockchain/FuelNetwork.ts | 2 +- src/config.json | 30 +- .../BottomTables/SpotTable/SpotTableVM.tsx | 2 + .../RightBlock/CreateOrder/CreateOrderVM.tsx | 1 + src/stores/SpotOrderBookStore.ts | 1 + src/stores/SwapStore.ts | 1 + src/utils/getConfig.ts | 2 +- vite.config.ts | 6 +- 11 files changed, 340 insertions(+), 317 deletions(-) diff --git a/package.json b/package.json index a74a0435..8ffa8fc8 100644 --- a/package.json +++ b/package.json @@ -34,7 +34,7 @@ "copy-to-clipboard": "^3.3.3", "dayjs": "^1.11.10", "framer-motion": "^11.0.3", - "fuels": "^0.93.0", + "fuels": "^0.94.8", "gh-pages": "^6.1.1", "lodash": "^4.17.21", "mixpanel-browser": "^2.53.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f42ea1a6..a4d452d5 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,7 +10,7 @@ importers: dependencies: '@compolabs/spark-orderbook-ts-sdk': specifier: ^1.8.8 - version: 1.8.8(@types/react@18.3.4)(fuels@0.93.0)(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 1.8.8(@types/react@18.3.4)(fuels@0.94.8)(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@emotion/react': specifier: ^11.11.3 version: 11.13.3(@types/react@18.3.4)(react@18.3.1) @@ -19,10 +19,10 @@ importers: version: 11.13.0(@emotion/react@11.13.3(@types/react@18.3.4)(react@18.3.1))(@types/react@18.3.4)(react@18.3.1) '@fuels/connectors': specifier: ^0.9.1 - version: 0.9.1(@tanstack/query-core@5.52.0)(@types/react@18.3.4)(@wagmi/connectors@5.0.26(@types/react@18.3.4)(@wagmi/core@2.12.2(@tanstack/query-core@5.52.0)(@types/react@18.3.4)(react@18.3.1)(typescript@5.5.4)(viem@2.10.2(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.22.4)))(bufferutil@4.0.8)(react-dom@18.3.1(react@18.3.1))(react-native@0.75.2(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.3.4)(bufferutil@4.0.8)(react@18.3.1)(typescript@5.5.4)(utf-8-validate@5.0.10))(react@18.3.1)(rollup@4.21.0)(typescript@5.5.4)(utf-8-validate@5.0.10)(viem@2.10.2(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4))(bufferutil@4.0.8)(fuels@0.93.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.22.4) + version: 0.9.1(@tanstack/query-core@5.52.0)(@types/react@18.3.4)(@wagmi/connectors@5.0.26(@types/react@18.3.4)(@wagmi/core@2.12.2(@tanstack/query-core@5.52.0)(@types/react@18.3.4)(react@18.3.1)(typescript@5.5.4)(viem@2.10.2(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.22.4)))(bufferutil@4.0.8)(react-dom@18.3.1(react@18.3.1))(react-native@0.75.2(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.3.4)(bufferutil@4.0.8)(react@18.3.1)(typescript@5.5.4)(utf-8-validate@5.0.10))(react@18.3.1)(rollup@4.21.0)(typescript@5.5.4)(utf-8-validate@5.0.10)(viem@2.10.2(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4))(bufferutil@4.0.8)(fuels@0.94.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.22.4) '@fuels/react': specifier: ^0.20.0 - version: 0.20.0(@tanstack/react-query@5.52.1(react@18.3.1))(@types/react-dom@18.3.0)(@types/react@18.3.4)(fuels@0.93.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + version: 0.20.0(@tanstack/react-query@5.52.1(react@18.3.1))(@types/react-dom@18.3.0)(@types/react@18.3.4)(fuels@0.94.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@pythnetwork/pyth-evm-js': specifier: ^1.33.0 version: 1.63.0(bufferutil@4.0.8)(utf-8-validate@5.0.10) @@ -63,8 +63,8 @@ importers: specifier: ^11.0.3 version: 11.3.30(@emotion/is-prop-valid@1.3.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) fuels: - specifier: ^0.93.0 - version: 0.93.0 + specifier: ^0.94.8 + version: 0.94.8 gh-pages: specifier: ^6.1.1 version: 6.1.1 @@ -1054,8 +1054,8 @@ packages: cpu: [ppc64] os: [aix] - '@esbuild/aix-ppc64@0.22.0': - resolution: {integrity: sha512-uvQR2crZ/zgzSHDvdygHyNI+ze9zwS8mqz0YtGXotSqvEE0UkYE9s+FZKQNTt1VtT719mfP3vHrUdCpxBNQZhQ==} + '@esbuild/aix-ppc64@0.24.0': + resolution: {integrity: sha512-WtKdFM7ls47zkKHFVzMz8opM7LkcsIp9amDUBIAWirg70RM71WRSjdILPsY5Uv1D42ZpUfaPILDlfactHgsRkw==} engines: {node: '>=18'} cpu: [ppc64] os: [aix] @@ -1066,8 +1066,8 @@ packages: cpu: [arm64] os: [android] - '@esbuild/android-arm64@0.22.0': - resolution: {integrity: sha512-UKhPb3o2gAB/bfXcl58ZXTn1q2oVu1rEu/bKrCtmm+Nj5MKUbrOwR5WAixE2v+lk0amWuwPvhnPpBRLIGiq7ig==} + '@esbuild/android-arm64@0.24.0': + resolution: {integrity: sha512-Vsm497xFM7tTIPYK9bNTYJyF/lsP590Qc1WxJdlB6ljCbdZKU9SY8i7+Iin4kyhV/KV5J2rOKsBQbB77Ab7L/w==} engines: {node: '>=18'} cpu: [arm64] os: [android] @@ -1078,8 +1078,8 @@ packages: cpu: [arm] os: [android] - '@esbuild/android-arm@0.22.0': - resolution: {integrity: sha512-PBnyP+r8vJE4ifxsWys9l+Mc2UY/yYZOpX82eoyGISXXb3dRr0M21v+s4fgRKWMFPMSf/iyowqPW/u7ScSUkjQ==} + '@esbuild/android-arm@0.24.0': + resolution: {integrity: sha512-arAtTPo76fJ/ICkXWetLCc9EwEHKaeya4vMrReVlEIUCAUncH7M4bhMQ+M9Vf+FFOZJdTNMXNBrWwW+OXWpSew==} engines: {node: '>=18'} cpu: [arm] os: [android] @@ -1090,8 +1090,8 @@ packages: cpu: [x64] os: [android] - '@esbuild/android-x64@0.22.0': - resolution: {integrity: sha512-IjTYtvIrjhR41Ijy2dDPgYjQHWG/x/A4KXYbs1fiU3efpRdoxMChK3oEZV6GPzVEzJqxFgcuBaiX1kwEvWUxSw==} + '@esbuild/android-x64@0.24.0': + resolution: {integrity: sha512-t8GrvnFkiIY7pa7mMgJd7p8p8qqYIz1NYiAoKc75Zyv73L3DZW++oYMSHPRarcotTKuSs6m3hTOa5CKHaS02TQ==} engines: {node: '>=18'} cpu: [x64] os: [android] @@ -1102,8 +1102,8 @@ packages: cpu: [arm64] os: [darwin] - '@esbuild/darwin-arm64@0.22.0': - resolution: {integrity: sha512-mqt+Go4y9wRvEz81bhKd9RpHsQR1LwU8Xm6jZRUV/xpM7cIQFbFH6wBCLPTNsdELBvfoHeumud7X78jQQJv2TA==} + '@esbuild/darwin-arm64@0.24.0': + resolution: {integrity: sha512-CKyDpRbK1hXwv79soeTJNHb5EiG6ct3efd/FTPdzOWdbZZfGhpbcqIpiD0+vwmpu0wTIL97ZRPZu8vUt46nBSw==} engines: {node: '>=18'} cpu: [arm64] os: [darwin] @@ -1114,8 +1114,8 @@ packages: cpu: [x64] os: [darwin] - '@esbuild/darwin-x64@0.22.0': - resolution: {integrity: sha512-vTaTQ9OgYc3VTaWtOE5pSuDT6H3d/qSRFRfSBbnxFfzAvYoB3pqKXA0LEbi/oT8GUOEAutspfRMqPj2ezdFaMw==} + '@esbuild/darwin-x64@0.24.0': + resolution: {integrity: sha512-rgtz6flkVkh58od4PwTRqxbKH9cOjaXCMZgWD905JOzjFKW+7EiUObfd/Kav+A6Gyud6WZk9w+xu6QLytdi2OA==} engines: {node: '>=18'} cpu: [x64] os: [darwin] @@ -1126,8 +1126,8 @@ packages: cpu: [arm64] os: [freebsd] - '@esbuild/freebsd-arm64@0.22.0': - resolution: {integrity: sha512-0e1ZgoobJzaGnR4reD7I9rYZ7ttqdh1KPvJWnquUoDJhL0rYwdneeLailBzd2/4g/U5p4e5TIHEWa68NF2hFpQ==} + '@esbuild/freebsd-arm64@0.24.0': + resolution: {integrity: sha512-6Mtdq5nHggwfDNLAHkPlyLBpE5L6hwsuXZX8XNmHno9JuL2+bg2BX5tRkwjyfn6sKbxZTq68suOjgWqCicvPXA==} engines: {node: '>=18'} cpu: [arm64] os: [freebsd] @@ -1138,8 +1138,8 @@ packages: cpu: [x64] os: [freebsd] - '@esbuild/freebsd-x64@0.22.0': - resolution: {integrity: sha512-BFgyYwlCwRWyPQJtkzqq2p6pJbiiWgp0P9PNf7a5FQ1itKY4czPuOMAlFVItirSmEpRPCeImuwePNScZS0pL5Q==} + '@esbuild/freebsd-x64@0.24.0': + resolution: {integrity: sha512-D3H+xh3/zphoX8ck4S2RxKR6gHlHDXXzOf6f/9dbFt/NRBDIE33+cVa49Kil4WUjxMGW0ZIYBYtaGCa2+OsQwQ==} engines: {node: '>=18'} cpu: [x64] os: [freebsd] @@ -1150,8 +1150,8 @@ packages: cpu: [arm64] os: [linux] - '@esbuild/linux-arm64@0.22.0': - resolution: {integrity: sha512-V/K2rctCUgC0PCXpN7AqT4hoazXKgIYugFGu/myk2+pfe6jTW2guz/TBwq4cZ7ESqusR/IzkcQaBkcjquuBWsw==} + '@esbuild/linux-arm64@0.24.0': + resolution: {integrity: sha512-TDijPXTOeE3eaMkRYpcy3LarIg13dS9wWHRdwYRnzlwlA370rNdZqbcp0WTyyV/k2zSxfko52+C7jU5F9Tfj1g==} engines: {node: '>=18'} cpu: [arm64] os: [linux] @@ -1162,8 +1162,8 @@ packages: cpu: [arm] os: [linux] - '@esbuild/linux-arm@0.22.0': - resolution: {integrity: sha512-KEMWiA9aGuPUD4BH5yjlhElLgaRXe+Eri6gKBoDazoPBTo1BXc/e6IW5FcJO9DoL19FBeCxgONyh95hLDNepIg==} + '@esbuild/linux-arm@0.24.0': + resolution: {integrity: sha512-gJKIi2IjRo5G6Glxb8d3DzYXlxdEj2NlkixPsqePSZMhLudqPhtZ4BUrpIuTjJYXxvF9njql+vRjB2oaC9XpBw==} engines: {node: '>=18'} cpu: [arm] os: [linux] @@ -1174,8 +1174,8 @@ packages: cpu: [ia32] os: [linux] - '@esbuild/linux-ia32@0.22.0': - resolution: {integrity: sha512-r2ZZqkOMOrpUhzNwxI7uLAHIDwkfeqmTnrv1cjpL/rjllPWszgqmprd/om9oviKXUBpMqHbXmppvjAYgISb26Q==} + '@esbuild/linux-ia32@0.24.0': + resolution: {integrity: sha512-K40ip1LAcA0byL05TbCQ4yJ4swvnbzHscRmUilrmP9Am7//0UjPreh4lpYzvThT2Quw66MhjG//20mrufm40mA==} engines: {node: '>=18'} cpu: [ia32] os: [linux] @@ -1186,8 +1186,8 @@ packages: cpu: [loong64] os: [linux] - '@esbuild/linux-loong64@0.22.0': - resolution: {integrity: sha512-qaowLrV/YOMAL2RfKQ4C/VaDzAuLDuylM2sd/LH+4OFirMl6CuDpRlCq4u49ZBaVV8pkI/Y+hTdiibvQRhojCA==} + '@esbuild/linux-loong64@0.24.0': + resolution: {integrity: sha512-0mswrYP/9ai+CU0BzBfPMZ8RVm3RGAN/lmOMgW4aFUSOQBjA31UP8Mr6DDhWSuMwj7jaWOT0p0WoZ6jeHhrD7g==} engines: {node: '>=18'} cpu: [loong64] os: [linux] @@ -1198,8 +1198,8 @@ packages: cpu: [mips64el] os: [linux] - '@esbuild/linux-mips64el@0.22.0': - resolution: {integrity: sha512-hgrezzjQTRxjkQ5k08J6rtZN5PNnkWx/Rz6Kmj9gnsdCAX1I4Dn4ZPqvFRkXo55Q3pnVQJBwbdtrTO7tMGtyVA==} + '@esbuild/linux-mips64el@0.24.0': + resolution: {integrity: sha512-hIKvXm0/3w/5+RDtCJeXqMZGkI2s4oMUGj3/jM0QzhgIASWrGO5/RlzAzm5nNh/awHE0A19h/CvHQe6FaBNrRA==} engines: {node: '>=18'} cpu: [mips64el] os: [linux] @@ -1210,8 +1210,8 @@ packages: cpu: [ppc64] os: [linux] - '@esbuild/linux-ppc64@0.22.0': - resolution: {integrity: sha512-ewxg6FLLUio883XgSjfULEmDl3VPv/TYNnRprVAS3QeGFLdCYdx1tIudBcd7n9jIdk82v1Ajov4jx87qW7h9+g==} + '@esbuild/linux-ppc64@0.24.0': + resolution: {integrity: sha512-HcZh5BNq0aC52UoocJxaKORfFODWXZxtBaaZNuN3PUX3MoDsChsZqopzi5UupRhPHSEHotoiptqikjN/B77mYQ==} engines: {node: '>=18'} cpu: [ppc64] os: [linux] @@ -1222,8 +1222,8 @@ packages: cpu: [riscv64] os: [linux] - '@esbuild/linux-riscv64@0.22.0': - resolution: {integrity: sha512-Az5XbgSJC2lE8XK8pdcutsf9RgdafWdTpUK/+6uaDdfkviw/B4JCwAfh1qVeRWwOohwdsl4ywZrWBNWxwrPLFg==} + '@esbuild/linux-riscv64@0.24.0': + resolution: {integrity: sha512-bEh7dMn/h3QxeR2KTy1DUszQjUrIHPZKyO6aN1X4BCnhfYhuQqedHaa5MxSQA/06j3GpiIlFGSsy1c7Gf9padw==} engines: {node: '>=18'} cpu: [riscv64] os: [linux] @@ -1234,8 +1234,8 @@ packages: cpu: [s390x] os: [linux] - '@esbuild/linux-s390x@0.22.0': - resolution: {integrity: sha512-8j4a2ChT9+V34NNNY9c/gMldutaJFmfMacTPq4KfNKwv2fitBCLYjee7c+Vxaha2nUhPK7cXcZpJtJ3+Y7ZdVQ==} + '@esbuild/linux-s390x@0.24.0': + resolution: {integrity: sha512-ZcQ6+qRkw1UcZGPyrCiHHkmBaj9SiCD8Oqd556HldP+QlpUIe2Wgn3ehQGVoPOvZvtHm8HPx+bH20c9pvbkX3g==} engines: {node: '>=18'} cpu: [s390x] os: [linux] @@ -1246,8 +1246,8 @@ packages: cpu: [x64] os: [linux] - '@esbuild/linux-x64@0.22.0': - resolution: {integrity: sha512-JUQyOnpbAkkRFOk/AhsEemz5TfWN4FJZxVObUlnlNCbe7QBl61ZNfM4cwBXayQA6laMJMUcqLHaYQHAB6YQ95Q==} + '@esbuild/linux-x64@0.24.0': + resolution: {integrity: sha512-vbutsFqQ+foy3wSSbmjBXXIJ6PL3scghJoM8zCL142cGaZKAdCZHyf+Bpu/MmX9zT9Q0zFBVKb36Ma5Fzfa8xA==} engines: {node: '>=18'} cpu: [x64] os: [linux] @@ -1258,14 +1258,14 @@ packages: cpu: [x64] os: [netbsd] - '@esbuild/netbsd-x64@0.22.0': - resolution: {integrity: sha512-11PoCoHXo4HFNbLsXuMB6bpMPWGDiw7xETji6COdJss4SQZLvcgNoeSqWtATRm10Jj1uEHiaIk4N0PiN6x4Fcg==} + '@esbuild/netbsd-x64@0.24.0': + resolution: {integrity: sha512-hjQ0R/ulkO8fCYFsG0FZoH+pWgTTDreqpqY7UnQntnaKv95uP5iW3+dChxnx7C3trQQU40S+OgWhUVwCjVFLvg==} engines: {node: '>=18'} cpu: [x64] os: [netbsd] - '@esbuild/openbsd-arm64@0.22.0': - resolution: {integrity: sha512-Ezlhu/YyITmXwKSB+Zu/QqD7cxrjrpiw85cc0Rbd3AWr2wsgp+dWbWOE8MqHaLW9NKMZvuL0DhbJbvzR7F6Zvg==} + '@esbuild/openbsd-arm64@0.24.0': + resolution: {integrity: sha512-MD9uzzkPQbYehwcN583yx3Tu5M8EIoTD+tUgKF982WYL9Pf5rKy9ltgD0eUgs8pvKnmizxjXZyLt0z6DC3rRXg==} engines: {node: '>=18'} cpu: [arm64] os: [openbsd] @@ -1276,8 +1276,8 @@ packages: cpu: [x64] os: [openbsd] - '@esbuild/openbsd-x64@0.22.0': - resolution: {integrity: sha512-ufjdW5tFJGUjlH9j/5cCE9lrwRffyZh+T4vYvoDKoYsC6IXbwaFeV/ENxeNXcxotF0P8CDzoICXVSbJaGBhkrw==} + '@esbuild/openbsd-x64@0.24.0': + resolution: {integrity: sha512-4ir0aY1NGUhIC1hdoCzr1+5b43mw99uNwVzhIq1OY3QcEwPDO3B7WNXBzaKY5Nsf1+N11i1eOfFcq+D/gOS15Q==} engines: {node: '>=18'} cpu: [x64] os: [openbsd] @@ -1288,8 +1288,8 @@ packages: cpu: [x64] os: [sunos] - '@esbuild/sunos-x64@0.22.0': - resolution: {integrity: sha512-zY6ly/AoSmKnmNTowDJsK5ehra153/5ZhqxNLfq9NRsTTltetr+yHHcQ4RW7QDqw4JC8A1uC1YmeSfK9NRcK1w==} + '@esbuild/sunos-x64@0.24.0': + resolution: {integrity: sha512-jVzdzsbM5xrotH+W5f1s+JtUy1UWgjU0Cf4wMvffTB8m6wP5/kx0KiaLHlbJO+dMgtxKV8RQ/JvtlFcdZ1zCPA==} engines: {node: '>=18'} cpu: [x64] os: [sunos] @@ -1300,8 +1300,8 @@ packages: cpu: [arm64] os: [win32] - '@esbuild/win32-arm64@0.22.0': - resolution: {integrity: sha512-Kml5F7tv/1Maam0pbbCrvkk9vj046dPej30kFzlhXnhuCtYYBP6FGy/cLbc5yUT1lkZznGLf2OvuvmLjscO5rw==} + '@esbuild/win32-arm64@0.24.0': + resolution: {integrity: sha512-iKc8GAslzRpBytO2/aN3d2yb2z8XTVfNV0PjGlCxKo5SgWmNXx82I/Q3aG1tFfS+A2igVCY97TJ8tnYwpUWLCA==} engines: {node: '>=18'} cpu: [arm64] os: [win32] @@ -1312,8 +1312,8 @@ packages: cpu: [ia32] os: [win32] - '@esbuild/win32-ia32@0.22.0': - resolution: {integrity: sha512-IOgwn+mYTM3RrcydP4Og5IpXh+ftN8oF+HELTXSmbWBlujuci4Qa3DTeO+LEErceisI7KUSfEIiX+WOUlpELkw==} + '@esbuild/win32-ia32@0.24.0': + resolution: {integrity: sha512-vQW36KZolfIudCcTnaTpmLQ24Ha1RjygBo39/aLkM2kmjkWmZGEJ5Gn9l5/7tzXA42QGIoWbICfg6KLLkIw6yw==} engines: {node: '>=18'} cpu: [ia32] os: [win32] @@ -1324,8 +1324,8 @@ packages: cpu: [x64] os: [win32] - '@esbuild/win32-x64@0.22.0': - resolution: {integrity: sha512-4bDHJrk2WHBXJPhy1y80X7/5b5iZTZP3LGcKIlAP1J+KqZ4zQAPMLEzftGyjjfcKbA4JDlPt/+2R/F1ZTeRgrw==} + '@esbuild/win32-x64@0.24.0': + resolution: {integrity: sha512-7IAFPrjSQIJrGsK6flwg7NFmwBoSTyF3rl7If0hNUFQU4ilTsEPL6GuMuU9BfIWVVGuRnuIidkSMC+c0Otu8IA==} engines: {node: '>=18'} cpu: [x64] os: [win32] @@ -1382,69 +1382,69 @@ packages: '@ethersproject/sha2@5.7.0': resolution: {integrity: sha512-gKlH42riwb3KYp0reLsFTokByAKoJdgFCwI+CCiX/k+Jm2mbNs6oOaCjYQSlI1+XBVejwH2KrmCbMAT/GnRDQw==} - '@fuel-ts/abi-coder@0.93.0': - resolution: {integrity: sha512-31rVc0fjWFLnr3YL4INm59xN9f/VPfUiS8+Auw14oFdQagYP28NSDhn7OEHYep3iWk5oz2V44qeMQfjfXcR/kQ==} + '@fuel-ts/abi-coder@0.94.8': + resolution: {integrity: sha512-tyqDHfGyHyEOrH+CjgoMLuoBHBmHJgcsqdR6jGWw4gvvctvo8j0GIk2H9HBc4t9mK5+IGCCnURSvUvAdh5S8bQ==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/abi-typegen@0.93.0': - resolution: {integrity: sha512-ayrHh60XoJeWs2s95X0w1snFtfns4es2oEvBzXo59I7k0fP2LOzhgmzwFEKJAZuY5TFvblU5xCw4eGtHAA+GAQ==} + '@fuel-ts/abi-typegen@0.94.8': + resolution: {integrity: sha512-8h3r5xmKYXqGsTAGVp0v3zz1PuC6cdPDB3W/fxIOEhLjj0yp0MYSLDVq+ngtgyBcfTekNrASihK61N3ZSNbHfg==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} hasBin: true - '@fuel-ts/account@0.93.0': - resolution: {integrity: sha512-1Kiy/vWM7+QHgA/Bkw2l7+Q8dd6WVOYWQKS1r+b2DzS9MhCfJVxbWb9AoBKLgy7FiG53pKWVYbhkzx/beycnzw==} + '@fuel-ts/account@0.94.8': + resolution: {integrity: sha512-Ftr1wZ/9Tc5UZRGRDiANPMaqFrM3TD0EMq5clb/dj3ECnUaalLUqAbAIGgIMSOuR37BLEXPeBPOVbQJL9DBHQg==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/address@0.93.0': - resolution: {integrity: sha512-v6Xs92B50prU1UGBCPASsfGiUPQ4SLf8iEiDK+9EobxQmirqnh8Mq10trdtxsI3R17J2W6x+rDcXpT9t2rGQEA==} + '@fuel-ts/address@0.94.8': + resolution: {integrity: sha512-dXFztzCGNsIuMAgd0XRK9DCJ5L4KWYYeGsbhYLttdsctK2SUw6z4iY/tHKiDNC7Q6AAeCccvma4aVtiXHS2c4Q==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/contract@0.93.0': - resolution: {integrity: sha512-X0FPrHlKsbup4y3njEFC8ROkALhebf4b+eMA8tcdgM4qtm6ECuQhQEkVOxPvkb+RcQ1N+e5qwI8gXiQCiSVwbQ==} + '@fuel-ts/contract@0.94.8': + resolution: {integrity: sha512-2mXtQT7OABaDwsiRYqf8161+6zJnL8R8tKIYcY9Y6Mr+CdLZt8SmZ9QGE8A/XCtQU/drTCCP8xa/BSpkmqGhOw==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/crypto@0.93.0': - resolution: {integrity: sha512-WYR+xz0J7ZIhE6Nnrow0nfFswK9AKGQxYE8eZkhdckx7/8rbbWyTMue5VS0CPifUS51PO8kzaHQ2PtNglJemrQ==} + '@fuel-ts/crypto@0.94.8': + resolution: {integrity: sha512-DrsfbPXFd0LAZd9Pus4nm58OPv3+qpBPFEh465P8FnsnZ+RxjwtWgWe1vjTPre0P6/QHscAr0G5aVag3eUWtGw==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/errors@0.93.0': - resolution: {integrity: sha512-izR2qVKA1XlB3FDmpFZFF5CSCknC3InouuulF/dbX1mEsGMkYAcCykDezBc32JgyiVM0vXfs5bTHpICoeg3dQg==} + '@fuel-ts/errors@0.94.8': + resolution: {integrity: sha512-A5GVqdvQ8gviAue48EznNDD6ZVAXLHPli0Wfu/PBYcpziSr0UB3fEehoV7GcipdYaKvJTLso3iq+gAlf37LVjA==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/hasher@0.93.0': - resolution: {integrity: sha512-rUyf2ARoqyMDfK17NWMaVSJ0m0aTVllxW9DGzv3LOQfPs5KrNp8CDt1z95+iRrK9IfTyIE9vS2FUt8SzRmWPZA==} + '@fuel-ts/hasher@0.94.8': + resolution: {integrity: sha512-h0iuDE7MMcquS/Wo2pDrfln6VpkwN+SNLpLZrTTQAVWzAHcQmQqtHvr5TkzzboYMT4uEahaxrncBfMikot4Smg==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/interfaces@0.93.0': - resolution: {integrity: sha512-HAkyFrtZxzPp+9U4Lwv0z1lebNC3wpUIyC2dyS4gSgOU2g9Uyp4h81xK5M/ddvoWUd2fsZAN2sfjBzPGVPqSSw==} + '@fuel-ts/interfaces@0.94.8': + resolution: {integrity: sha512-gSkp6cp0g+vYK7yzoBwvW7x43AzJL6EoPE7HTHoJWUMbLPWhgqOGJtWoNnobGRO1Pxl0etmBLaVyZmrhJdVQqQ==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/math@0.93.0': - resolution: {integrity: sha512-niFLZXkuEnJ5kTiXTc2HqfxO9YiSWZAMkYwjy7veXY0Dlb89LUnpCY+zSlqW15VurrpgbtwMYcajzRU0tFA4SA==} + '@fuel-ts/math@0.94.8': + resolution: {integrity: sha512-bYmYXk6g1INk1RtqsOPK65tZ+nOYecc/lwSdEZswagg6KPR+l0ckc3D1o8i3BA2JxQDWzuwDWNZ+ZVHYpTVVyQ==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/merkle@0.93.0': - resolution: {integrity: sha512-IvtrDpUFI4pqjCdabEOMge/6R19wZ0pxnX1z7J6LGFSdlLHj3lZyGewSf4uHYBlXkg8hBqJecAyl47SYHag76A==} + '@fuel-ts/merkle@0.94.8': + resolution: {integrity: sha512-6OFM0jKu/wCcmfhZc3H8XzZ8IPlpdLPeTMmIXBOFgA8MdhdMgMiKNFJpAjOOGqrovVheThS/RNl03Ukn3dmu6Q==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/program@0.93.0': - resolution: {integrity: sha512-FT4xNqIJXVRGv098LXHDasB4fTVRamt5XSRgcwPWvcf3xyI2VYaRb8mNI+fD/C99e0/U4OzTjvEcSKfrPaPaJA==} + '@fuel-ts/program@0.94.8': + resolution: {integrity: sha512-QIgBi1TlxowkyO19cyMTAeyRiR4Ct9x5YH6lMjkaigwujepSTDclghCuCR8c7R7RlFEChbz3m/y/CH5LBL6OBw==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/script@0.93.0': - resolution: {integrity: sha512-dJyB55qTyU38iWu13fkGy52Pn6BxBlevqIHwNgDw9pMr4gWVBzQwM9Lp8K/68uv/ST3JIdV4R1NaELUb40dpNQ==} + '@fuel-ts/script@0.94.8': + resolution: {integrity: sha512-wIvtA0hFRKYXoUvWH4bdEEcuHyBTrunZZkd7oXxIKjlZeon1kk5Ry+B7bTSXHJGhqA4P2SfHTenidUs/WKc15A==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/transactions@0.93.0': - resolution: {integrity: sha512-6vEZVQ3YxcUSaYa0fG7P12QKvx+AxPaceAQ4AC5KO//i3+B/wsEiqpC2WCDW08SyzZU5YNzDUsKbnw8GVMqYyw==} + '@fuel-ts/transactions@0.94.8': + resolution: {integrity: sha512-qE+gpEu5QEVBBTPfVuO0k4dnwR6ZwFLquWIWLYE47wPt2gkSf2uY76Fv9PHP+ouxp5V1LAFL/k3ZotXoe/Om7A==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/utils@0.93.0': - resolution: {integrity: sha512-vLul2S45S51j1jPXRyntguCOai0GHPGq7uAdSpShleouP3c4SMnUDlWAP2X3VKMz4odFpNey6PykVWoVS8WykQ==} + '@fuel-ts/utils@0.94.8': + resolution: {integrity: sha512-AvsM/fNDR4u3urQMbFVkxTusmd6eEQZ4ZAOitytu+8VeOEuzYvQV8T4NwFgs0WeN3SfW0lFLrI6SR2Pkh9qFgg==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} - '@fuel-ts/versions@0.93.0': - resolution: {integrity: sha512-3215zKyFxe2yPT25noagYBdfqLdYRNuCyH0+1waL87TDLcTIywdaNRLZ9G4CZMuTGv40CBKN5kv+tymXzs4o6g==} + '@fuel-ts/versions@0.94.8': + resolution: {integrity: sha512-pIHx16H1NxiAkMNiQ0rAd2JiKc3Gd28e2NJh7OZQZU3zKZQkmMqqf4F5y+zdj6Mlka//csSp750pnVgVK/3Tbg==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} hasBin: true @@ -1460,8 +1460,8 @@ packages: fuels: '>=0.86.0' react: ^18.2.0 - '@fuels/vm-asm@0.55.0': - resolution: {integrity: sha512-k+n+ZF+s9ovPoURcRIUKxNHeniY3M8Fw6OBTdmc4jPtrNQnPb7BErGV7O6RnVGn/DEWp/zs6xHOmTjoZLR6UNg==} + '@fuels/vm-asm@0.57.1': + resolution: {integrity: sha512-+TSJSfamSaHrG4j274NEDW0ndZXLEXfNq5TvgjA4HN4JTnGudm41pFM7+Xgrfi0AxkpxJCaZLBTycGj6SZNmBw==} '@graphql-typed-document-node/core@3.2.0': resolution: {integrity: sha512-mB9oAsNCm9aM3/SOv4YtBMqZbYj10R7dkq8byBqxGY/ncFwhf2oQzMV+LCRlWoDSEBJ3COiR1yeDvMtsoOsuFQ==} @@ -1687,6 +1687,10 @@ packages: '@noble/curves@1.5.0': resolution: {integrity: sha512-J5EKamIHnKPyClwVrzmaf5wSdQXgdHcPZIZLu3bwnbeCx8/7NPK5q2ZBWF+5FvYGByjiQQsJYX6jfgB2wDPn3A==} + '@noble/curves@1.6.0': + resolution: {integrity: sha512-TlaHRXDehJuRNR9TfZDNQ45mMEd5dwUwmicsafcIX4SsNiqnCHKjE/1alYPd/lDRVhxdhUAlv8uEhMCI5zjIJQ==} + engines: {node: ^14.21.3 || >=16} + '@noble/hashes@1.3.2': resolution: {integrity: sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==} engines: {node: '>= 16'} @@ -1695,6 +1699,10 @@ packages: resolution: {integrity: sha512-V1JJ1WTRUqHHrOSh597hURcMqVKVGL/ea3kv0gSnEdsEZ0/+VyPghM1lMNGc00z7CIQorSvbKpuJkxvuHbvdbg==} engines: {node: '>= 16'} + '@noble/hashes@1.5.0': + resolution: {integrity: sha512-1j6kQFb7QRru7eKN3ZDvRcP13rugwdxZqCjbiAVZfIJwgj2A65UmT4TgARXGlXgnRkORLTDTrO19ZErt7+QXgA==} + engines: {node: ^14.21.3 || >=16} + '@nodelib/fs.scandir@2.1.5': resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'} @@ -2500,8 +2508,8 @@ packages: '@types/babel__traverse@7.20.6': resolution: {integrity: sha512-r1bzfrm0tomOI8g1SzvCaQHo6Lcv6zu0EA+W2kHrt8dyrHQxGzBBL4kdkzIS+jBMV+EYcMAEAqXqYaLJq5rOZg==} - '@types/bn.js@5.1.5': - resolution: {integrity: sha512-V46N0zwKRF5Q00AZ6hWtN0T8gGmDUaUzLWQvHFo5yThtVwK/VCenFY3wXVbOvNfajEpsTfQM4IN9k/d6gUVX3A==} + '@types/bn.js@5.1.6': + resolution: {integrity: sha512-Xh8vSwUeMKeYYrj3cX4lGQgFSF/N03r+tv4AiLl1SucqV+uTQpxRcnM8AkXKHwYP9ZPXOYXRr2KPXpVlIvqh9w==} '@types/connect@3.4.38': resolution: {integrity: sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug==} @@ -3955,8 +3963,8 @@ packages: engines: {node: '>=12'} hasBin: true - esbuild@0.22.0: - resolution: {integrity: sha512-zNYA6bFZsVnsU481FnGAQjLDW0Pl/8BGG7EvAp15RzUvGC+ME7hf1q7LvIfStEQBz/iEHuBJCYcOwPmNCf1Tlw==} + esbuild@0.24.0: + resolution: {integrity: sha512-FuLPevChGDshgSicjisSooU0cemp/sGXR841D5LHMB7mTVOmsEHcAxaH3irL53+8YDIeVNQEySh4DaYU/iuPqQ==} engines: {node: '>=18'} hasBin: true @@ -4296,6 +4304,9 @@ packages: fflate@0.4.8: resolution: {integrity: sha512-FJqqoDBR00Mdj9ppamLa/Y7vxm+PRmNWA67N846RvsoYVMKB4q3y/de5PA7gUmRMYK/8CMz2GDZQmCRN1wBcWA==} + fflate@0.8.2: + resolution: {integrity: sha512-cPJU47OaAoCbg0pBvzsgpTPhmhqI5eJjh/JIu8tPj5q+T7iLvW/JAYUqmE7KOB4R1ZyEhzBaIQpQpardBF5z8A==} + file-entry-cache@6.0.1: resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} engines: {node: ^10.12.0 || >=12.0.0} @@ -4418,8 +4429,8 @@ packages: engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0} os: [darwin] - fuels@0.93.0: - resolution: {integrity: sha512-BvIE/oK3iqSkaXdQURB6PalheL7WQSQH1B9RdRdlsqHxXLHP28XV+MHAeafwb3b9EtwgH6U/F2rhifwBPIZL/w==} + fuels@0.94.8: + resolution: {integrity: sha512-qdzFxP58G1B7NFhMW28OudZUEW3RlAdZHoiRx0RlmEI8cx8sK5uh4IGDYF5MUnn7K5Q2HVn05JK7CmbDp2ofjQ==} engines: {node: ^18.20.3 || ^20.0.0 || ^22.0.0} hasBin: true @@ -5353,6 +5364,11 @@ packages: engines: {node: '>=10'} hasBin: true + mkdirp@3.0.1: + resolution: {integrity: sha512-+NsyUUAZDmo6YVHzL/stxSu3t9YS1iljliy3BSDrXJ/dkn1KYdmtZODGGjLcc9XLgVVpH4KshHB8XmZgMhaBXg==} + engines: {node: '>=10'} + hasBin: true + mlly@1.7.1: resolution: {integrity: sha512-rrVRZRELyQzrIUAVMHxP97kv+G786pHmOKzuFII8zDYahFBS7qnHh2AlYSl1GAHhaMPCz6/oHjVMcfFYgFYHgA==} @@ -6684,9 +6700,9 @@ packages: resolution: {integrity: sha512-RAH822pAdBgcNMAfWnCBU3CFZcfZ/i1eZjwFU/dsLKumyuuP3niueg2UAukXYF0E2AAoc82ZSSf9J0WQBinzHA==} engines: {node: '>=12.20'} - type-fest@3.13.1: - resolution: {integrity: sha512-tLq3bSNx+xSpwvAJnzrK0Ep5CLNWjvFTOp71URMaAEWBfRb9nnJiBoUe0tF8bI4ZFO3omgBR6NvnbzVUT3Ly4g==} - engines: {node: '>=14.16'} + type-fest@4.26.1: + resolution: {integrity: sha512-yOGpmOAL7CkKe/91I5O3gPICmJNLJ1G4zFYVAsRHg7M64biSnPtRj0WNQt++bRkjYOqjWXrhnUw1utzmVErAdg==} + engines: {node: '>=16'} typed-array-buffer@1.0.2: resolution: {integrity: sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ==} @@ -6712,8 +6728,8 @@ packages: ufo@1.5.4: resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==} - uglify-js@3.19.2: - resolution: {integrity: sha512-S8KA6DDI47nQXJSi2ctQ629YzwOVs+bQML6DAtvy0wgNdpi+0ySpQK0g2pxBq2xfF2z3YCscu7NNA8nXT9PlIQ==} + uglify-js@3.19.3: + resolution: {integrity: sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==} engines: {node: '>=0.8.0'} hasBin: true @@ -6874,10 +6890,6 @@ packages: resolution: {integrity: sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA==} engines: {node: '>= 0.4.0'} - uuid@10.0.0: - resolution: {integrity: sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ==} - hasBin: true - uuid@8.3.2: resolution: {integrity: sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==} hasBin: true @@ -8264,11 +8276,11 @@ snapshots: preact: 10.23.2 sha.js: 2.4.11 - '@compolabs/spark-orderbook-ts-sdk@1.8.8(@types/react@18.3.4)(fuels@0.93.0)(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@compolabs/spark-orderbook-ts-sdk@1.8.8(@types/react@18.3.4)(fuels@0.94.8)(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@apollo/client': 3.11.8(@types/react@18.3.4)(graphql-ws@5.16.0(graphql@16.9.0))(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) bignumber.js: 9.1.2 - fuels: 0.93.0 + fuels: 0.94.8 graphql-ws: 5.16.0(graphql@16.9.0) tsdef: 0.0.14 optionalDependencies: @@ -8366,142 +8378,142 @@ snapshots: '@esbuild/aix-ppc64@0.21.5': optional: true - '@esbuild/aix-ppc64@0.22.0': + '@esbuild/aix-ppc64@0.24.0': optional: true '@esbuild/android-arm64@0.21.5': optional: true - '@esbuild/android-arm64@0.22.0': + '@esbuild/android-arm64@0.24.0': optional: true '@esbuild/android-arm@0.21.5': optional: true - '@esbuild/android-arm@0.22.0': + '@esbuild/android-arm@0.24.0': optional: true '@esbuild/android-x64@0.21.5': optional: true - '@esbuild/android-x64@0.22.0': + '@esbuild/android-x64@0.24.0': optional: true '@esbuild/darwin-arm64@0.21.5': optional: true - '@esbuild/darwin-arm64@0.22.0': + '@esbuild/darwin-arm64@0.24.0': optional: true '@esbuild/darwin-x64@0.21.5': optional: true - '@esbuild/darwin-x64@0.22.0': + '@esbuild/darwin-x64@0.24.0': optional: true '@esbuild/freebsd-arm64@0.21.5': optional: true - '@esbuild/freebsd-arm64@0.22.0': + '@esbuild/freebsd-arm64@0.24.0': optional: true '@esbuild/freebsd-x64@0.21.5': optional: true - '@esbuild/freebsd-x64@0.22.0': + '@esbuild/freebsd-x64@0.24.0': optional: true '@esbuild/linux-arm64@0.21.5': optional: true - '@esbuild/linux-arm64@0.22.0': + '@esbuild/linux-arm64@0.24.0': optional: true '@esbuild/linux-arm@0.21.5': optional: true - '@esbuild/linux-arm@0.22.0': + '@esbuild/linux-arm@0.24.0': optional: true '@esbuild/linux-ia32@0.21.5': optional: true - '@esbuild/linux-ia32@0.22.0': + '@esbuild/linux-ia32@0.24.0': optional: true '@esbuild/linux-loong64@0.21.5': optional: true - '@esbuild/linux-loong64@0.22.0': + '@esbuild/linux-loong64@0.24.0': optional: true '@esbuild/linux-mips64el@0.21.5': optional: true - '@esbuild/linux-mips64el@0.22.0': + '@esbuild/linux-mips64el@0.24.0': optional: true '@esbuild/linux-ppc64@0.21.5': optional: true - '@esbuild/linux-ppc64@0.22.0': + '@esbuild/linux-ppc64@0.24.0': optional: true '@esbuild/linux-riscv64@0.21.5': optional: true - '@esbuild/linux-riscv64@0.22.0': + '@esbuild/linux-riscv64@0.24.0': optional: true '@esbuild/linux-s390x@0.21.5': optional: true - '@esbuild/linux-s390x@0.22.0': + '@esbuild/linux-s390x@0.24.0': optional: true '@esbuild/linux-x64@0.21.5': optional: true - '@esbuild/linux-x64@0.22.0': + '@esbuild/linux-x64@0.24.0': optional: true '@esbuild/netbsd-x64@0.21.5': optional: true - '@esbuild/netbsd-x64@0.22.0': + '@esbuild/netbsd-x64@0.24.0': optional: true - '@esbuild/openbsd-arm64@0.22.0': + '@esbuild/openbsd-arm64@0.24.0': optional: true '@esbuild/openbsd-x64@0.21.5': optional: true - '@esbuild/openbsd-x64@0.22.0': + '@esbuild/openbsd-x64@0.24.0': optional: true '@esbuild/sunos-x64@0.21.5': optional: true - '@esbuild/sunos-x64@0.22.0': + '@esbuild/sunos-x64@0.24.0': optional: true '@esbuild/win32-arm64@0.21.5': optional: true - '@esbuild/win32-arm64@0.22.0': + '@esbuild/win32-arm64@0.24.0': optional: true '@esbuild/win32-ia32@0.21.5': optional: true - '@esbuild/win32-ia32@0.22.0': + '@esbuild/win32-ia32@0.24.0': optional: true '@esbuild/win32-x64@0.21.5': optional: true - '@esbuild/win32-x64@0.22.0': + '@esbuild/win32-x64@0.24.0': optional: true '@eslint-community/eslint-utils@4.4.0(eslint@8.57.0)': @@ -8566,168 +8578,165 @@ snapshots: '@ethersproject/logger': 5.7.0 hash.js: 1.1.7 - '@fuel-ts/abi-coder@0.93.0': + '@fuel-ts/abi-coder@0.94.8': dependencies: - '@fuel-ts/crypto': 0.93.0 - '@fuel-ts/errors': 0.93.0 - '@fuel-ts/hasher': 0.93.0 - '@fuel-ts/interfaces': 0.93.0 - '@fuel-ts/math': 0.93.0 - '@fuel-ts/utils': 0.93.0 - type-fest: 3.13.1 + '@fuel-ts/crypto': 0.94.8 + '@fuel-ts/errors': 0.94.8 + '@fuel-ts/hasher': 0.94.8 + '@fuel-ts/interfaces': 0.94.8 + '@fuel-ts/math': 0.94.8 + '@fuel-ts/utils': 0.94.8 + type-fest: 4.26.1 - '@fuel-ts/abi-typegen@0.93.0': + '@fuel-ts/abi-typegen@0.94.8': dependencies: - '@fuel-ts/errors': 0.93.0 - '@fuel-ts/interfaces': 0.93.0 - '@fuel-ts/utils': 0.93.0 - '@fuel-ts/versions': 0.93.0 + '@fuel-ts/errors': 0.94.8 + '@fuel-ts/interfaces': 0.94.8 + '@fuel-ts/utils': 0.94.8 + '@fuel-ts/versions': 0.94.8 commander: 12.1.0 glob: 10.4.5 handlebars: 4.7.8 - mkdirp: 1.0.4 + mkdirp: 3.0.1 ramda: 0.30.1 rimraf: 5.0.10 - '@fuel-ts/account@0.93.0': - dependencies: - '@fuel-ts/abi-coder': 0.93.0 - '@fuel-ts/address': 0.93.0 - '@fuel-ts/crypto': 0.93.0 - '@fuel-ts/errors': 0.93.0 - '@fuel-ts/hasher': 0.93.0 - '@fuel-ts/interfaces': 0.93.0 - '@fuel-ts/math': 0.93.0 - '@fuel-ts/merkle': 0.93.0 - '@fuel-ts/transactions': 0.93.0 - '@fuel-ts/utils': 0.93.0 - '@fuel-ts/versions': 0.93.0 - '@fuels/vm-asm': 0.55.0 - '@noble/curves': 1.5.0 + '@fuel-ts/account@0.94.8': + dependencies: + '@fuel-ts/abi-coder': 0.94.8 + '@fuel-ts/address': 0.94.8 + '@fuel-ts/crypto': 0.94.8 + '@fuel-ts/errors': 0.94.8 + '@fuel-ts/hasher': 0.94.8 + '@fuel-ts/interfaces': 0.94.8 + '@fuel-ts/math': 0.94.8 + '@fuel-ts/merkle': 0.94.8 + '@fuel-ts/transactions': 0.94.8 + '@fuel-ts/utils': 0.94.8 + '@fuel-ts/versions': 0.94.8 + '@fuels/vm-asm': 0.57.1 + '@noble/curves': 1.6.0 events: 3.3.0 graphql: 16.9.0 graphql-request: 5.0.0(graphql@16.9.0) graphql-tag: 2.12.6(graphql@16.9.0) - portfinder: 1.0.32 ramda: 0.30.1 - uuid: 10.0.0 transitivePeerDependencies: - encoding - - supports-color - '@fuel-ts/address@0.93.0': + '@fuel-ts/address@0.94.8': dependencies: - '@fuel-ts/crypto': 0.93.0 - '@fuel-ts/errors': 0.93.0 - '@fuel-ts/interfaces': 0.93.0 - '@fuel-ts/utils': 0.93.0 - '@noble/hashes': 1.4.0 + '@fuel-ts/crypto': 0.94.8 + '@fuel-ts/errors': 0.94.8 + '@fuel-ts/interfaces': 0.94.8 + '@fuel-ts/utils': 0.94.8 + '@noble/hashes': 1.5.0 bech32: 2.0.0 - '@fuel-ts/contract@0.93.0': - dependencies: - '@fuel-ts/abi-coder': 0.93.0 - '@fuel-ts/account': 0.93.0 - '@fuel-ts/crypto': 0.93.0 - '@fuel-ts/errors': 0.93.0 - '@fuel-ts/hasher': 0.93.0 - '@fuel-ts/interfaces': 0.93.0 - '@fuel-ts/merkle': 0.93.0 - '@fuel-ts/program': 0.93.0 - '@fuel-ts/transactions': 0.93.0 - '@fuel-ts/utils': 0.93.0 - '@fuel-ts/versions': 0.93.0 + '@fuel-ts/contract@0.94.8': + dependencies: + '@fuel-ts/abi-coder': 0.94.8 + '@fuel-ts/account': 0.94.8 + '@fuel-ts/crypto': 0.94.8 + '@fuel-ts/errors': 0.94.8 + '@fuel-ts/hasher': 0.94.8 + '@fuel-ts/interfaces': 0.94.8 + '@fuel-ts/math': 0.94.8 + '@fuel-ts/merkle': 0.94.8 + '@fuel-ts/program': 0.94.8 + '@fuel-ts/transactions': 0.94.8 + '@fuel-ts/utils': 0.94.8 + '@fuel-ts/versions': 0.94.8 + '@fuels/vm-asm': 0.57.1 ramda: 0.30.1 transitivePeerDependencies: - encoding - - supports-color - '@fuel-ts/crypto@0.93.0': + '@fuel-ts/crypto@0.94.8': dependencies: - '@fuel-ts/errors': 0.93.0 - '@fuel-ts/interfaces': 0.93.0 - '@fuel-ts/math': 0.93.0 - '@fuel-ts/utils': 0.93.0 - '@noble/hashes': 1.4.0 + '@fuel-ts/errors': 0.94.8 + '@fuel-ts/interfaces': 0.94.8 + '@fuel-ts/math': 0.94.8 + '@fuel-ts/utils': 0.94.8 + '@noble/hashes': 1.5.0 - '@fuel-ts/errors@0.93.0': + '@fuel-ts/errors@0.94.8': dependencies: - '@fuel-ts/versions': 0.93.0 + '@fuel-ts/versions': 0.94.8 - '@fuel-ts/hasher@0.93.0': + '@fuel-ts/hasher@0.94.8': dependencies: - '@fuel-ts/crypto': 0.93.0 - '@fuel-ts/interfaces': 0.93.0 - '@fuel-ts/utils': 0.93.0 - '@noble/hashes': 1.4.0 + '@fuel-ts/crypto': 0.94.8 + '@fuel-ts/interfaces': 0.94.8 + '@fuel-ts/utils': 0.94.8 + '@noble/hashes': 1.5.0 - '@fuel-ts/interfaces@0.93.0': {} + '@fuel-ts/interfaces@0.94.8': {} - '@fuel-ts/math@0.93.0': + '@fuel-ts/math@0.94.8': dependencies: - '@fuel-ts/errors': 0.93.0 - '@types/bn.js': 5.1.5 + '@fuel-ts/errors': 0.94.8 + '@types/bn.js': 5.1.6 bn.js: 5.2.1 - '@fuel-ts/merkle@0.93.0': + '@fuel-ts/merkle@0.94.8': dependencies: - '@fuel-ts/hasher': 0.93.0 - '@fuel-ts/math': 0.93.0 + '@fuel-ts/hasher': 0.94.8 + '@fuel-ts/math': 0.94.8 - '@fuel-ts/program@0.93.0': + '@fuel-ts/program@0.94.8': dependencies: - '@fuel-ts/abi-coder': 0.93.0 - '@fuel-ts/account': 0.93.0 - '@fuel-ts/address': 0.93.0 - '@fuel-ts/errors': 0.93.0 - '@fuel-ts/interfaces': 0.93.0 - '@fuel-ts/math': 0.93.0 - '@fuel-ts/transactions': 0.93.0 - '@fuel-ts/utils': 0.93.0 - '@fuels/vm-asm': 0.55.0 + '@fuel-ts/abi-coder': 0.94.8 + '@fuel-ts/account': 0.94.8 + '@fuel-ts/address': 0.94.8 + '@fuel-ts/errors': 0.94.8 + '@fuel-ts/interfaces': 0.94.8 + '@fuel-ts/math': 0.94.8 + '@fuel-ts/transactions': 0.94.8 + '@fuel-ts/utils': 0.94.8 + '@fuels/vm-asm': 0.57.1 ramda: 0.30.1 transitivePeerDependencies: - encoding - - supports-color - '@fuel-ts/script@0.93.0': + '@fuel-ts/script@0.94.8': dependencies: - '@fuel-ts/abi-coder': 0.93.0 - '@fuel-ts/account': 0.93.0 - '@fuel-ts/address': 0.93.0 - '@fuel-ts/errors': 0.93.0 - '@fuel-ts/interfaces': 0.93.0 - '@fuel-ts/math': 0.93.0 - '@fuel-ts/program': 0.93.0 - '@fuel-ts/transactions': 0.93.0 - '@fuel-ts/utils': 0.93.0 + '@fuel-ts/abi-coder': 0.94.8 + '@fuel-ts/account': 0.94.8 + '@fuel-ts/address': 0.94.8 + '@fuel-ts/errors': 0.94.8 + '@fuel-ts/interfaces': 0.94.8 + '@fuel-ts/math': 0.94.8 + '@fuel-ts/program': 0.94.8 + '@fuel-ts/transactions': 0.94.8 + '@fuel-ts/utils': 0.94.8 transitivePeerDependencies: - encoding - - supports-color - '@fuel-ts/transactions@0.93.0': + '@fuel-ts/transactions@0.94.8': dependencies: - '@fuel-ts/abi-coder': 0.93.0 - '@fuel-ts/address': 0.93.0 - '@fuel-ts/errors': 0.93.0 - '@fuel-ts/hasher': 0.93.0 - '@fuel-ts/interfaces': 0.93.0 - '@fuel-ts/math': 0.93.0 - '@fuel-ts/utils': 0.93.0 + '@fuel-ts/abi-coder': 0.94.8 + '@fuel-ts/address': 0.94.8 + '@fuel-ts/errors': 0.94.8 + '@fuel-ts/hasher': 0.94.8 + '@fuel-ts/interfaces': 0.94.8 + '@fuel-ts/math': 0.94.8 + '@fuel-ts/utils': 0.94.8 - '@fuel-ts/utils@0.93.0': + '@fuel-ts/utils@0.94.8': dependencies: - '@fuel-ts/errors': 0.93.0 - '@fuel-ts/interfaces': 0.93.0 - '@fuel-ts/math': 0.93.0 - '@fuel-ts/versions': 0.93.0 + '@fuel-ts/errors': 0.94.8 + '@fuel-ts/interfaces': 0.94.8 + '@fuel-ts/math': 0.94.8 + '@fuel-ts/versions': 0.94.8 + fflate: 0.8.2 - '@fuel-ts/versions@0.93.0': + '@fuel-ts/versions@0.94.8': dependencies: chalk: 4.1.2 cli-table: 0.3.11 - '@fuels/connectors@0.9.1(@tanstack/query-core@5.52.0)(@types/react@18.3.4)(@wagmi/connectors@5.0.26(@types/react@18.3.4)(@wagmi/core@2.12.2(@tanstack/query-core@5.52.0)(@types/react@18.3.4)(react@18.3.1)(typescript@5.5.4)(viem@2.10.2(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.22.4)))(bufferutil@4.0.8)(react-dom@18.3.1(react@18.3.1))(react-native@0.75.2(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.3.4)(bufferutil@4.0.8)(react@18.3.1)(typescript@5.5.4)(utf-8-validate@5.0.10))(react@18.3.1)(rollup@4.21.0)(typescript@5.5.4)(utf-8-validate@5.0.10)(viem@2.10.2(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4))(bufferutil@4.0.8)(fuels@0.93.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.22.4)': + '@fuels/connectors@0.9.1(@tanstack/query-core@5.52.0)(@types/react@18.3.4)(@wagmi/connectors@5.0.26(@types/react@18.3.4)(@wagmi/core@2.12.2(@tanstack/query-core@5.52.0)(@types/react@18.3.4)(react@18.3.1)(typescript@5.5.4)(viem@2.10.2(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.22.4)))(bufferutil@4.0.8)(react-dom@18.3.1(react@18.3.1))(react-native@0.75.2(@babel/core@7.25.2)(@babel/preset-env@7.25.4(@babel/core@7.25.2))(@types/react@18.3.4)(bufferutil@4.0.8)(react@18.3.1)(typescript@5.5.4)(utf-8-validate@5.0.10))(react@18.3.1)(rollup@4.21.0)(typescript@5.5.4)(utf-8-validate@5.0.10)(viem@2.10.2(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.22.4))(zod@3.22.4))(bufferutil@4.0.8)(fuels@0.94.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.22.4)': dependencies: '@ethereumjs/util': 9.0.3 '@ethersproject/bytes': 5.7.0 @@ -8737,7 +8746,7 @@ snapshots: '@web3modal/scaffold': 5.0.0(@types/react@18.3.4)(react@18.3.1) '@web3modal/solana': 5.0.0(@types/react@18.3.4)(bufferutil@4.0.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)(utf-8-validate@5.0.10) '@web3modal/wagmi': 5.0.0(r7jszoll5hbuqf7zqzwbzy7gz4) - fuels: 0.93.0 + fuels: 0.94.8 rpc-websockets: 7.11.0 socket.io-client: 4.7.2(bufferutil@4.0.8)(utf-8-validate@5.0.10) viem: 2.10.2(bufferutil@4.0.8)(typescript@5.5.4)(utf-8-validate@5.0.10)(zod@3.22.4) @@ -8770,19 +8779,19 @@ snapshots: - vue - zod - '@fuels/react@0.20.0(@tanstack/react-query@5.52.1(react@18.3.1))(@types/react-dom@18.3.0)(@types/react@18.3.4)(fuels@0.93.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@fuels/react@0.20.0(@tanstack/react-query@5.52.1(react@18.3.1))(@types/react-dom@18.3.0)(@types/react@18.3.4)(fuels@0.94.8)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@radix-ui/react-dialog': 1.1.1(@types/react-dom@18.3.0)(@types/react@18.3.4)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@tanstack/react-query': 5.52.1(react@18.3.1) events: 3.3.0 - fuels: 0.93.0 + fuels: 0.94.8 react: 18.3.1 transitivePeerDependencies: - '@types/react' - '@types/react-dom' - react-dom - '@fuels/vm-asm@0.55.0': {} + '@fuels/vm-asm@0.57.1': {} '@graphql-typed-document-node/core@3.2.0(graphql@16.9.0)': dependencies: @@ -9153,10 +9162,16 @@ snapshots: dependencies: '@noble/hashes': 1.4.0 + '@noble/curves@1.6.0': + dependencies: + '@noble/hashes': 1.5.0 + '@noble/hashes@1.3.2': {} '@noble/hashes@1.4.0': {} + '@noble/hashes@1.5.0': {} + '@nodelib/fs.scandir@2.1.5': dependencies: '@nodelib/fs.stat': 2.0.5 @@ -10218,7 +10233,7 @@ snapshots: dependencies: '@babel/types': 7.25.4 - '@types/bn.js@5.1.5': + '@types/bn.js@5.1.6': dependencies: '@types/node': 20.16.2 @@ -11956,9 +11971,9 @@ snapshots: dependencies: semver: 7.6.3 - bundle-require@5.0.0(esbuild@0.22.0): + bundle-require@5.0.0(esbuild@0.24.0): dependencies: - esbuild: 0.22.0 + esbuild: 0.24.0 load-tsconfig: 0.2.5 bytes@3.0.0: {} @@ -12641,32 +12656,32 @@ snapshots: '@esbuild/win32-ia32': 0.21.5 '@esbuild/win32-x64': 0.21.5 - esbuild@0.22.0: + esbuild@0.24.0: optionalDependencies: - '@esbuild/aix-ppc64': 0.22.0 - '@esbuild/android-arm': 0.22.0 - '@esbuild/android-arm64': 0.22.0 - '@esbuild/android-x64': 0.22.0 - '@esbuild/darwin-arm64': 0.22.0 - '@esbuild/darwin-x64': 0.22.0 - '@esbuild/freebsd-arm64': 0.22.0 - '@esbuild/freebsd-x64': 0.22.0 - '@esbuild/linux-arm': 0.22.0 - '@esbuild/linux-arm64': 0.22.0 - '@esbuild/linux-ia32': 0.22.0 - '@esbuild/linux-loong64': 0.22.0 - '@esbuild/linux-mips64el': 0.22.0 - '@esbuild/linux-ppc64': 0.22.0 - '@esbuild/linux-riscv64': 0.22.0 - '@esbuild/linux-s390x': 0.22.0 - '@esbuild/linux-x64': 0.22.0 - '@esbuild/netbsd-x64': 0.22.0 - '@esbuild/openbsd-arm64': 0.22.0 - '@esbuild/openbsd-x64': 0.22.0 - '@esbuild/sunos-x64': 0.22.0 - '@esbuild/win32-arm64': 0.22.0 - '@esbuild/win32-ia32': 0.22.0 - '@esbuild/win32-x64': 0.22.0 + '@esbuild/aix-ppc64': 0.24.0 + '@esbuild/android-arm': 0.24.0 + '@esbuild/android-arm64': 0.24.0 + '@esbuild/android-x64': 0.24.0 + '@esbuild/darwin-arm64': 0.24.0 + '@esbuild/darwin-x64': 0.24.0 + '@esbuild/freebsd-arm64': 0.24.0 + '@esbuild/freebsd-x64': 0.24.0 + '@esbuild/linux-arm': 0.24.0 + '@esbuild/linux-arm64': 0.24.0 + '@esbuild/linux-ia32': 0.24.0 + '@esbuild/linux-loong64': 0.24.0 + '@esbuild/linux-mips64el': 0.24.0 + '@esbuild/linux-ppc64': 0.24.0 + '@esbuild/linux-riscv64': 0.24.0 + '@esbuild/linux-s390x': 0.24.0 + '@esbuild/linux-x64': 0.24.0 + '@esbuild/netbsd-x64': 0.24.0 + '@esbuild/openbsd-arm64': 0.24.0 + '@esbuild/openbsd-x64': 0.24.0 + '@esbuild/sunos-x64': 0.24.0 + '@esbuild/win32-arm64': 0.24.0 + '@esbuild/win32-ia32': 0.24.0 + '@esbuild/win32-x64': 0.24.0 escalade@3.1.2: {} @@ -13131,6 +13146,8 @@ snapshots: fflate@0.4.8: {} + fflate@0.8.2: {} + file-entry-cache@6.0.1: dependencies: flat-cache: 3.2.0 @@ -13253,36 +13270,36 @@ snapshots: fsevents@2.3.3: optional: true - fuels@0.93.0: - dependencies: - '@fuel-ts/abi-coder': 0.93.0 - '@fuel-ts/abi-typegen': 0.93.0 - '@fuel-ts/account': 0.93.0 - '@fuel-ts/address': 0.93.0 - '@fuel-ts/contract': 0.93.0 - '@fuel-ts/crypto': 0.93.0 - '@fuel-ts/errors': 0.93.0 - '@fuel-ts/hasher': 0.93.0 - '@fuel-ts/interfaces': 0.93.0 - '@fuel-ts/math': 0.93.0 - '@fuel-ts/merkle': 0.93.0 - '@fuel-ts/program': 0.93.0 - '@fuel-ts/script': 0.93.0 - '@fuel-ts/transactions': 0.93.0 - '@fuel-ts/utils': 0.93.0 - '@fuel-ts/versions': 0.93.0 - bundle-require: 5.0.0(esbuild@0.22.0) + fuels@0.94.8: + dependencies: + '@fuel-ts/abi-coder': 0.94.8 + '@fuel-ts/abi-typegen': 0.94.8 + '@fuel-ts/account': 0.94.8 + '@fuel-ts/address': 0.94.8 + '@fuel-ts/contract': 0.94.8 + '@fuel-ts/crypto': 0.94.8 + '@fuel-ts/errors': 0.94.8 + '@fuel-ts/hasher': 0.94.8 + '@fuel-ts/interfaces': 0.94.8 + '@fuel-ts/math': 0.94.8 + '@fuel-ts/merkle': 0.94.8 + '@fuel-ts/program': 0.94.8 + '@fuel-ts/script': 0.94.8 + '@fuel-ts/transactions': 0.94.8 + '@fuel-ts/utils': 0.94.8 + '@fuel-ts/versions': 0.94.8 + bundle-require: 5.0.0(esbuild@0.24.0) chalk: 4.1.2 chokidar: 3.6.0 commander: 12.1.0 - esbuild: 0.22.0 + esbuild: 0.24.0 glob: 10.4.5 handlebars: 4.7.8 joycon: 3.1.1 lodash.camelcase: 4.3.0 portfinder: 1.0.32 toml: 3.0.0 - uglify-js: 3.19.2 + uglify-js: 3.19.3 yup: 1.4.0 transitivePeerDependencies: - encoding @@ -13448,7 +13465,7 @@ snapshots: source-map: 0.6.1 wordwrap: 1.0.0 optionalDependencies: - uglify-js: 3.19.2 + uglify-js: 3.19.3 has-bigints@1.0.2: {} @@ -14394,6 +14411,8 @@ snapshots: mkdirp@1.0.4: {} + mkdirp@3.0.1: {} + mlly@1.7.1: dependencies: acorn: 8.12.1 @@ -15836,7 +15855,7 @@ snapshots: type-fest@2.19.0: {} - type-fest@3.13.1: {} + type-fest@4.26.1: {} typed-array-buffer@1.0.2: dependencies: @@ -15874,7 +15893,7 @@ snapshots: ufo@1.5.4: {} - uglify-js@3.19.2: {} + uglify-js@3.19.3: {} uint8arrays@3.1.0: dependencies: @@ -16001,8 +16020,6 @@ snapshots: utils-merge@1.0.1: {} - uuid@10.0.0: {} - uuid@8.3.2: {} uuid@9.0.1: {} diff --git a/script/getConfig.ts b/script/getConfig.ts index 08bbdc05..c7956e35 100644 --- a/script/getConfig.ts +++ b/script/getConfig.ts @@ -4,7 +4,8 @@ export default function getConfig() { return { name: "download-config", async buildStart() { - const url = "https://raw.githubusercontent.com/compolabs/spark-frontend-config/main/config.json"; + const url = + "https://raw.githubusercontent.com/compolabs/spark-frontend-config/f1a72867493281ea07adb697387dda0f5621fdc0/config-dev.json"; const res = await fetch(url); const json = await res.json(); diff --git a/src/blockchain/FuelNetwork.ts b/src/blockchain/FuelNetwork.ts index 20eb19b3..81ec06ce 100644 --- a/src/blockchain/FuelNetwork.ts +++ b/src/blockchain/FuelNetwork.ts @@ -29,7 +29,7 @@ export class FuelNetwork { this.orderbookSdk = new SparkOrderBookSdk({ networkUrl: CONFIG.APP.networkUrl, contractAddresses: { - orderbook: CONFIG.APP.contracts.orderbook, + registry: CONFIG.APP.contracts.registry, multiAsset: CONFIG.APP.contracts.multiAsset, }, }); diff --git a/src/config.json b/src/config.json index 02e7907d..55b8cc22 100644 --- a/src/config.json +++ b/src/config.json @@ -1,6 +1,6 @@ { - "version": "1.2.0", - "contractVer": 769, + "version": "1.3.0", + "contractVer": 1280, "tokens": [ { "name": "Ethereum", @@ -30,39 +30,39 @@ "markets": [ { "marketName": "ETHUSDC", - "owner": "0xd1ebb551a2d58f024875bcc6798e4e2f8c8feec9da718a9f29d362f14531a3ef", + "owner": "0xf47e0ef744ac8c993550e03d17f1c4844494553a12cac11ab8c568c8999fdbbf", "baseAssetId": "0xf8f8b6283d7fa5b672b530cbb84fcccb4ff8dc40f8176ef4544ddb1f1952ad07", "baseAssetDecimals": 9, "quoteAssetId": "0x336b7c06352a4b736ff6f688ba6885788b3df16e136e95310ade51aa32dc6f05", "quoteAssetDecimals": 6, "priceDecimals": 9, - "version": 769, - "contractId": "0x7d1da52a221897ebc88dc6a5d4623e704f7d64022d498b0438827dd79b6e5457" + "version": 1281, + "contractId": "0x10860c51de3a37c47ebff2e08a810d9e2963ef161ee3a88274520938c85914e8" }, { "marketName": "BTCUSDC", - "owner": "0xd1ebb551a2d58f024875bcc6798e4e2f8c8feec9da718a9f29d362f14531a3ef", + "owner": "0xf47e0ef744ac8c993550e03d17f1c4844494553a12cac11ab8c568c8999fdbbf", "baseAssetId": "0x38e4ca985b22625fff93205e997bfc5cc8453a953da638ad297ca60a9f2600bc", "baseAssetDecimals": 8, "quoteAssetId": "0x336b7c06352a4b736ff6f688ba6885788b3df16e136e95310ade51aa32dc6f05", "quoteAssetDecimals": 6, "priceDecimals": 9, - "version": 769, - "contractId": "0x416ccdaf69881ae345537b1844d1511b4103379fca43b8c2190aae8b42f08173" + "version": 1281, + "contractId": "0xbc69e42348c9a992100970e8469247b58a517c2f7dd373741c6707cda35ccfc6" } ], "indexers": { - "0x416ccdaf69881ae345537b1844d1511b4103379fca43b8c2190aae8b42f08173": { - "httpUrl": "https://indexer.bigdevenergy.link/4cba550/v1/graphql", - "wsUrl": "wss://indexer.bigdevenergy.link/4cba550/v1/graphql" + "0xbc69e42348c9a992100970e8469247b58a517c2f7dd373741c6707cda35ccfc6": { + "httpUrl": "https://indexer.bigdevenergy.link/67b693c/v1/graphql", + "wsUrl": "wss://indexer.bigdevenergy.link/67b693c/v1/graphql" }, - "0x7d1da52a221897ebc88dc6a5d4623e704f7d64022d498b0438827dd79b6e5457": { - "httpUrl": "https://indexer.bigdevenergy.link/4991bb0/v1/graphql", - "wsUrl": "wss://indexer.bigdevenergy.link/4991bb0/v1/graphql" + "0x10860c51de3a37c47ebff2e08a810d9e2963ef161ee3a88274520938c85914e8": { + "httpUrl": "https://indexer.bigdevenergy.link/67b693c/v1/graphql", + "wsUrl": "wss://indexer.bigdevenergy.link/67b693c/v1/graphql" } }, "contracts": { - "orderbook": "0x8f7935292f3da69aec797926029c864d7ec6d03c72f7347b4fd517ba4a7b78fb", + "registry": "0xfc3439e66c15c0b8e8e02e0fe4951eecd6001639a6aa8a650885af62ea92540f", "multiAsset": "0xdc527289bdef8ec452f350c9b2d36d464a9ebed88eb389615e512a78e26e3509" }, "networkUrl": "https://testnet.fuel.network/v1/graphql", diff --git a/src/screens/SpotScreen/BottomTables/SpotTable/SpotTableVM.tsx b/src/screens/SpotScreen/BottomTables/SpotTable/SpotTableVM.tsx index b4b8c477..4dcd5ea1 100644 --- a/src/screens/SpotScreen/BottomTables/SpotTable/SpotTableVM.tsx +++ b/src/screens/SpotScreen/BottomTables/SpotTable/SpotTableVM.tsx @@ -119,6 +119,7 @@ class SpotTableVM { .subscribeSpotOrders({ limit: this.limit, offset: this.offset, + market: tradeStore.market!.contractAddress, asset: tradeStore.market!.baseToken.assetId, user: accountStore.address!, status: ["Active"], @@ -148,6 +149,7 @@ class SpotTableVM { .subscribeSpotOrders({ limit: this.limit, offset: this.offset, + market: tradeStore.market!.contractAddress, asset: tradeStore.market!.baseToken.assetId, user: accountStore.address!, status: ["Closed", "Canceled"], diff --git a/src/screens/SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx b/src/screens/SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx index 0a627f95..b27205e8 100644 --- a/src/screens/SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx +++ b/src/screens/SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx @@ -387,6 +387,7 @@ class CreateOrderVM { const params: GetOrdersParams = { limit: 50, + market: market.contractAddress, asset: market.baseToken.assetId ?? "", status: ["Active"], }; diff --git a/src/stores/SpotOrderBookStore.ts b/src/stores/SpotOrderBookStore.ts index 9698f9bd..e44e4585 100644 --- a/src/stores/SpotOrderBookStore.ts +++ b/src/stores/SpotOrderBookStore.ts @@ -115,6 +115,7 @@ class SpotOrderBookStore { const params: Omit = { limit: 100, + market: market.contractAddress, asset: market.baseToken.assetId, }; diff --git a/src/stores/SwapStore.ts b/src/stores/SwapStore.ts index 4f9f79c4..29c377fe 100644 --- a/src/stores/SwapStore.ts +++ b/src/stores/SwapStore.ts @@ -141,6 +141,7 @@ class SwapStore { const bcNetwork = FuelNetwork.getInstance(); const params: GetOrdersParams = { limit: 50, // or more if needed + market: tradeStore.market!.contractAddress, asset: baseToken?.assetId, status: ["Active"], }; diff --git a/src/utils/getConfig.ts b/src/utils/getConfig.ts index e513338b..2ec2b231 100644 --- a/src/utils/getConfig.ts +++ b/src/utils/getConfig.ts @@ -6,7 +6,7 @@ import { Token } from "@entity"; import configJSON from "@src/config.json"; -const CURRENT_CONFIG_VER = "1.2.0"; +const CURRENT_CONFIG_VER = "1.3.0"; function createConfig() { assert(configJSON.version === CURRENT_CONFIG_VER, "Version mismatch"); diff --git a/vite.config.ts b/vite.config.ts index c410bad4..2dca908f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -39,7 +39,7 @@ export default defineConfig({ ], // It should help resolve issues with linking the SDK // - // optimizeDeps: { - // exclude: ["@compolabs/spark-orderbook-ts-sdk"], - // }, + optimizeDeps: { + exclude: ["@compolabs/spark-orderbook-ts-sdk"], + }, }); From ec1ddaf6b75ac625c34443148a376e49a1b9bcb9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B8b=C4=97rt=C3=B8?= <106074508+EchoDex@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:40:05 +0400 Subject: [PATCH 2/9] feat: add market for trades --- src/blockchain/FuelNetwork.ts | 4 ++-- src/components/Header/MenuNav.tsx | 1 - .../SpotTrades/SpotTradesVM.tsx | 13 +++++++++++-- src/stores/TradeStore.ts | 5 ++++- 4 files changed, 17 insertions(+), 6 deletions(-) diff --git a/src/blockchain/FuelNetwork.ts b/src/blockchain/FuelNetwork.ts index 81ec06ce..79e88b77 100644 --- a/src/blockchain/FuelNetwork.ts +++ b/src/blockchain/FuelNetwork.ts @@ -181,8 +181,8 @@ export class FuelNetwork { } }; - fetchSpotVolume = async (): Promise => { - const data = await this.orderbookSdk.fetchVolume(); + fetchSpotVolume = async (...params: Parameters): Promise => { + const data = await this.orderbookSdk.fetchVolume(...params); return { low: new BN(data.low24h), diff --git a/src/components/Header/MenuNav.tsx b/src/components/Header/MenuNav.tsx index 60807fe0..73488919 100644 --- a/src/components/Header/MenuNav.tsx +++ b/src/components/Header/MenuNav.tsx @@ -149,7 +149,6 @@ export const MenuNav: React.FC = observer(({ isMobile, onMenuClick }) => setOpenDropdown(openDropdown === title ? null : title); }; - console.log("isGradient", isGradient); const titleComponent = isGradient ? {title} : title; if (children) { diff --git a/src/screens/SpotScreen/OrderbookAndTradesInterface/SpotTrades/SpotTradesVM.tsx b/src/screens/SpotScreen/OrderbookAndTradesInterface/SpotTrades/SpotTradesVM.tsx index b98c2aa4..a54c70ba 100644 --- a/src/screens/SpotScreen/OrderbookAndTradesInterface/SpotTrades/SpotTradesVM.tsx +++ b/src/screens/SpotScreen/OrderbookAndTradesInterface/SpotTrades/SpotTradesVM.tsx @@ -1,5 +1,6 @@ import React, { PropsWithChildren, useMemo } from "react"; import { makeAutoObservable, reaction } from "mobx"; +import { Nullable } from "tsdef"; import useVM from "@hooks/useVM"; import { RootStore, useStores } from "@stores"; @@ -7,6 +8,8 @@ import { RootStore, useStores } from "@stores"; import { FuelNetwork } from "@blockchain"; import { SpotMarketTrade } from "@entity"; +import { Subscription } from "@src/typings/utils"; + const ctx = React.createContext(null); export const SpotTradesVMProvider: React.FC = ({ children }) => { @@ -18,8 +21,9 @@ export const SpotTradesVMProvider: React.FC = ({ children }) export const useSpotTradesVM = () => useVM(ctx); class SpotTradesVM { - public trades: SpotMarketTrade[] = []; + private subscriptionToTradeOrderEvents: Nullable = null; + trades: SpotMarketTrade[] = []; isInitialLoadComplete = false; constructor(private rootStore: RootStore) { @@ -42,9 +46,14 @@ class SpotTradesVM { const bcNetwork = FuelNetwork.getInstance(); - bcNetwork + if (this.subscriptionToTradeOrderEvents) { + this.subscriptionToTradeOrderEvents.unsubscribe(); + } + + this.subscriptionToTradeOrderEvents = bcNetwork .subscribeSpotTradeOrderEvents({ limit: 50, + market: market!.contractAddress, }) .subscribe({ next: ({ data }) => { diff --git a/src/stores/TradeStore.ts b/src/stores/TradeStore.ts index 53f23583..3d06e4f4 100644 --- a/src/stores/TradeStore.ts +++ b/src/stores/TradeStore.ts @@ -124,7 +124,10 @@ class TradeStore { if (!this.market) return; - const info = await FuelNetwork.getInstance().fetchSpotVolume(); + const info = await FuelNetwork.getInstance().fetchSpotVolume({ + limit: 1000, + market: this.market.contractAddress, + }); const baseTokenAmount = BN.formatUnits(info.volume, this.market.baseToken.decimals); const price = BN.formatUnits(oracleStore.getTokenIndexPrice(this.market.baseToken.priceFeed), DEFAULT_DECIMALS); const volume = baseTokenAmount.multipliedBy(price); From 30a8f9ec86edba788fcaeec92e265cbb338ad4c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B8b=C4=97rt=C3=B8?= <106074508+EchoDex@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:47:13 +0400 Subject: [PATCH 3/9] chore: update sdk version --- package.json | 2 +- pnpm-lock.yaml | 12 ++++++------ script/getConfig.ts | 3 +-- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/package.json b/package.json index 8ffa8fc8..6b0c02c3 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "pnpm": ">=9.7.0" }, "dependencies": { - "@compolabs/spark-orderbook-ts-sdk": "^1.8.8", + "@compolabs/spark-orderbook-ts-sdk": "^1.9.0", "@emotion/react": "^11.11.3", "@emotion/styled": "^11.11.0", "@fuels/connectors": "^0.9.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a4d452d5..a36eee9f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@compolabs/spark-orderbook-ts-sdk': - specifier: ^1.8.8 - version: 1.8.8(@types/react@18.3.4)(fuels@0.94.8)(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^1.9.0 + version: 1.9.0(@types/react@18.3.4)(fuels@0.94.8)(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@emotion/react': specifier: ^11.11.3 version: 11.13.3(@types/react@18.3.4)(react@18.3.1) @@ -988,11 +988,11 @@ packages: '@coinbase/wallet-sdk@4.0.4': resolution: {integrity: sha512-74c040CRnGhfRjr3ArnkAgud86erIqdkPHNt5HR1k9u97uTIZCJww9eGYT67Qf7gHPpGS/xW8Be1D4dvRm63FA==} - '@compolabs/spark-orderbook-ts-sdk@1.8.8': - resolution: {integrity: sha512-fDIsMg+GuZeqtwRGuv3/q6NydKbM7w8SLtPrwfV7LRWpHLbTi3cVik9BbrJMlUfqV5tqQsroEwBxfH2zZTBHiw==} + '@compolabs/spark-orderbook-ts-sdk@1.9.0': + resolution: {integrity: sha512-TtK6OTufIPaeNWzLvCTwvC7fczEJEwiLt3yMOAn4LJKC7Jqt6lgRo7NFCaemNeeui7hNGLd9nGPADjHGkU5n9w==} engines: {node: '>=18'} peerDependencies: - fuels: '>=0.93.0' + fuels: '>=0.94.8' '@emotion/babel-plugin@11.12.0': resolution: {integrity: sha512-y2WQb+oP8Jqvvclh8Q55gLUyb7UFvgv7eJfsj7td5TToBrIUtPay2kMrZi4xjq9qw2vD0ZR5fSho0yqoFgX7Rw==} @@ -8276,7 +8276,7 @@ snapshots: preact: 10.23.2 sha.js: 2.4.11 - '@compolabs/spark-orderbook-ts-sdk@1.8.8(@types/react@18.3.4)(fuels@0.94.8)(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@compolabs/spark-orderbook-ts-sdk@1.9.0(@types/react@18.3.4)(fuels@0.94.8)(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@apollo/client': 3.11.8(@types/react@18.3.4)(graphql-ws@5.16.0(graphql@16.9.0))(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) bignumber.js: 9.1.2 diff --git a/script/getConfig.ts b/script/getConfig.ts index c7956e35..b4e9707b 100644 --- a/script/getConfig.ts +++ b/script/getConfig.ts @@ -4,8 +4,7 @@ export default function getConfig() { return { name: "download-config", async buildStart() { - const url = - "https://raw.githubusercontent.com/compolabs/spark-frontend-config/f1a72867493281ea07adb697387dda0f5621fdc0/config-dev.json"; + const url = "https://raw.githubusercontent.com/compolabs/spark-frontend-config/refs/heads/main/config-dev.json"; const res = await fetch(url); const json = await res.json(); From 826f8e3b064c6738ed054d05033bdb68860a3bc8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B8b=C4=97rt=C3=B8?= <106074508+EchoDex@users.noreply.github.com> Date: Wed, 2 Oct 2024 16:49:26 +0400 Subject: [PATCH 4/9] chore: revert changes --- vite.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 2dca908f..c410bad4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -39,7 +39,7 @@ export default defineConfig({ ], // It should help resolve issues with linking the SDK // - optimizeDeps: { - exclude: ["@compolabs/spark-orderbook-ts-sdk"], - }, + // optimizeDeps: { + // exclude: ["@compolabs/spark-orderbook-ts-sdk"], + // }, }); From 4a3788268f53f8a24f7ad593224f74e213ea7dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B8b=C4=97rt=C3=B8?= <106074508+EchoDex@users.noreply.github.com> Date: Thu, 3 Oct 2024 19:41:05 +0400 Subject: [PATCH 5/9] fix: trying to fix bug with deposits --- src/blockchain/FuelNetwork.ts | 4 ---- .../RightBlock/CreateOrder/CreateOrderVM.tsx | 11 ++++++----- src/stores/BalanceStore.ts | 19 +------------------ src/stores/TradeStore.ts | 15 +++++++++------ vite.config.ts | 6 +++--- 5 files changed, 19 insertions(+), 36 deletions(-) diff --git a/src/blockchain/FuelNetwork.ts b/src/blockchain/FuelNetwork.ts index 79e88b77..81f34496 100644 --- a/src/blockchain/FuelNetwork.ts +++ b/src/blockchain/FuelNetwork.ts @@ -161,10 +161,6 @@ export class FuelNetwork { return this.orderbookSdk.subscribeTradeOrderEvents(...params); }; - fetchSpotMarketPrice = async (...params: Parameters): Promise => { - return this.orderbookSdk.fetchMarketPrice(...params); - }; - fetchSpotOrders = async (params: GetActiveOrdersParams): Promise => { const { data } = await this.orderbookSdk.fetchActiveOrders(params); diff --git a/src/screens/SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx b/src/screens/SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx index b27205e8..794f958f 100644 --- a/src/screens/SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx +++ b/src/screens/SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx @@ -330,6 +330,8 @@ class CreateOrderVM { try { let hash: Undefinable = ""; + console.log(marketContracts); + if (timeInForce === LimitType.GTC) { hash = await this.createGTCOrder(type, deposit, marketContracts); } else { @@ -408,24 +410,23 @@ class CreateOrderVM { }) .filter((el) => el !== null); + console.log(orderList.map((el) => el.id)); + const price = settingsStore.orderType === ORDER_TYPE.Market ? orderList[orderList.length - 1].price.toString() : this.inputPrice.toString(); - deposit = { - ...deposit, - }; - const order: FulfillOrderManyWithDepositParams = { + ...deposit, amount: this.inputAmount.toString(), orderType: type, limitType: settingsStore.timeInForce, price, orders: orderList.map((el) => el.id), slippage: "10000", - ...deposit, }; + console.log("123123123"); const data = await bcNetwork.fulfillOrderManyWithDeposit(order, marketContracts); return data.transactionId; }; diff --git a/src/stores/BalanceStore.ts b/src/stores/BalanceStore.ts index 5a508396..a7a9279c 100644 --- a/src/stores/BalanceStore.ts +++ b/src/stores/BalanceStore.ts @@ -117,8 +117,7 @@ export class BalanceStore { if (!accountStore.address || !wallet) return; - const [balances] = await Promise.all([this.fetchBalances(), this.fetchUserMarketBalance()]); - await this.fetchUserMarketBalanceByContracts(); + const [balances] = await Promise.all([this.fetchBalances(), this.fetchUserMarketBalanceByContracts()]); try { for (const [tokenAddress, balance] of Object.entries(balances)) { @@ -307,22 +306,6 @@ export class BalanceStore { return bcNetwork.getBalances(); }; - private fetchUserMarketBalance = async () => { - const { accountStore } = this.rootStore; - const bcNetwork = FuelNetwork.getInstance(); - - if (!accountStore.address) return; - - try { - // TODO: After type fix in sdk - const address = Address.fromB256(accountStore.address); - const balanceData = await bcNetwork.fetchSpotUserMarketBalance(address.bech32Address); - this.setMyMarketBalance(balanceData); - } catch (error) { - console.error(error); - } - }; - private fetchUserMarketBalanceByContracts = async () => { const { accountStore } = this.rootStore; const bcNetwork = FuelNetwork.getInstance(); diff --git a/src/stores/TradeStore.ts b/src/stores/TradeStore.ts index 3d06e4f4..79ca225c 100644 --- a/src/stores/TradeStore.ts +++ b/src/stores/TradeStore.ts @@ -78,12 +78,13 @@ class TradeStore { } get initialized() { - const isMarketInfoReady = !( - this.spotMarketInfo.high.isZero() || - this.spotMarketInfo.low.isZero() || - this.spotMarketInfo.volume.isZero() - ); - return Boolean(this.spotMarkets.length && isMarketInfoReady); + // const isMarketInfoReady = !( + // this.spotMarketInfo.high.isZero() || + // this.spotMarketInfo.low.isZero() || + // this.spotMarketInfo.volume.isZero() + // ); + // return Boolean(this.spotMarkets.length && isMarketInfoReady); + return true; } setMarketSymbol = (v: string) => (this.marketSymbol = v); @@ -176,6 +177,8 @@ class TradeStore { const decimals = this.market.quoteToken.decimals; + console.log("fee", tradeFee, quoteAmount); + this.tradeFee = { makerFee: BN.formatUnits(tradeFee.makerFee, decimals), takerFee: BN.formatUnits(tradeFee.takerFee, decimals), diff --git a/vite.config.ts b/vite.config.ts index c410bad4..2dca908f 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -39,7 +39,7 @@ export default defineConfig({ ], // It should help resolve issues with linking the SDK // - // optimizeDeps: { - // exclude: ["@compolabs/spark-orderbook-ts-sdk"], - // }, + optimizeDeps: { + exclude: ["@compolabs/spark-orderbook-ts-sdk"], + }, }); From 30e2ae436bf33b23382a386cbac453a2ad239656 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B8b=C4=97rt=C3=B8?= <106074508+EchoDex@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:05:16 +0400 Subject: [PATCH 6/9] feat: update version --- package.json | 2 +- pnpm-lock.yaml | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 6b0c02c3..92410adb 100644 --- a/package.json +++ b/package.json @@ -16,7 +16,7 @@ "pnpm": ">=9.7.0" }, "dependencies": { - "@compolabs/spark-orderbook-ts-sdk": "^1.9.0", + "@compolabs/spark-orderbook-ts-sdk": "^1.9.1", "@emotion/react": "^11.11.3", "@emotion/styled": "^11.11.0", "@fuels/connectors": "^0.9.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a36eee9f..035be142 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: '@compolabs/spark-orderbook-ts-sdk': - specifier: ^1.9.0 - version: 1.9.0(@types/react@18.3.4)(fuels@0.94.8)(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) + specifier: ^1.9.1 + version: 1.9.1(@types/react@18.3.4)(fuels@0.94.8)(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) '@emotion/react': specifier: ^11.11.3 version: 11.13.3(@types/react@18.3.4)(react@18.3.1) @@ -988,8 +988,8 @@ packages: '@coinbase/wallet-sdk@4.0.4': resolution: {integrity: sha512-74c040CRnGhfRjr3ArnkAgud86erIqdkPHNt5HR1k9u97uTIZCJww9eGYT67Qf7gHPpGS/xW8Be1D4dvRm63FA==} - '@compolabs/spark-orderbook-ts-sdk@1.9.0': - resolution: {integrity: sha512-TtK6OTufIPaeNWzLvCTwvC7fczEJEwiLt3yMOAn4LJKC7Jqt6lgRo7NFCaemNeeui7hNGLd9nGPADjHGkU5n9w==} + '@compolabs/spark-orderbook-ts-sdk@1.9.1': + resolution: {integrity: sha512-8SpZix2vvZ//3y+ObBdu7VA8FcKiRjeV+ioEFk4z+UmJlc6n3jRp2XROLJVnBPVYbXOmJ5jOVg2IY5jMtl4jSA==} engines: {node: '>=18'} peerDependencies: fuels: '>=0.94.8' @@ -8276,7 +8276,7 @@ snapshots: preact: 10.23.2 sha.js: 2.4.11 - '@compolabs/spark-orderbook-ts-sdk@1.9.0(@types/react@18.3.4)(fuels@0.94.8)(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': + '@compolabs/spark-orderbook-ts-sdk@1.9.1(@types/react@18.3.4)(fuels@0.94.8)(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1)': dependencies: '@apollo/client': 3.11.8(@types/react@18.3.4)(graphql-ws@5.16.0(graphql@16.9.0))(graphql@16.9.0)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) bignumber.js: 9.1.2 From 1622a7c992f71334500163d5571c6418c50eda3d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B8b=C4=97rt=C3=B8?= <106074508+EchoDex@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:05:49 +0400 Subject: [PATCH 7/9] chore: remove logs --- .../SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx | 5 ----- src/stores/TradeStore.ts | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/screens/SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx b/src/screens/SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx index 794f958f..e6d7c3d2 100644 --- a/src/screens/SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx +++ b/src/screens/SpotScreen/RightBlock/CreateOrder/CreateOrderVM.tsx @@ -330,8 +330,6 @@ class CreateOrderVM { try { let hash: Undefinable = ""; - console.log(marketContracts); - if (timeInForce === LimitType.GTC) { hash = await this.createGTCOrder(type, deposit, marketContracts); } else { @@ -410,8 +408,6 @@ class CreateOrderVM { }) .filter((el) => el !== null); - console.log(orderList.map((el) => el.id)); - const price = settingsStore.orderType === ORDER_TYPE.Market ? orderList[orderList.length - 1].price.toString() @@ -426,7 +422,6 @@ class CreateOrderVM { orders: orderList.map((el) => el.id), slippage: "10000", }; - console.log("123123123"); const data = await bcNetwork.fulfillOrderManyWithDeposit(order, marketContracts); return data.transactionId; }; diff --git a/src/stores/TradeStore.ts b/src/stores/TradeStore.ts index 79ca225c..3514c19a 100644 --- a/src/stores/TradeStore.ts +++ b/src/stores/TradeStore.ts @@ -177,8 +177,6 @@ class TradeStore { const decimals = this.market.quoteToken.decimals; - console.log("fee", tradeFee, quoteAmount); - this.tradeFee = { makerFee: BN.formatUnits(tradeFee.makerFee, decimals), takerFee: BN.formatUnits(tradeFee.takerFee, decimals), From e7f72402750ae05517c1520d48b8e8d67e2fcfb1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B8b=C4=97rt=C3=B8?= <106074508+EchoDex@users.noreply.github.com> Date: Fri, 4 Oct 2024 10:09:31 +0400 Subject: [PATCH 8/9] chore: reset config --- vite.config.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vite.config.ts b/vite.config.ts index 2dca908f..c410bad4 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -39,7 +39,7 @@ export default defineConfig({ ], // It should help resolve issues with linking the SDK // - optimizeDeps: { - exclude: ["@compolabs/spark-orderbook-ts-sdk"], - }, + // optimizeDeps: { + // exclude: ["@compolabs/spark-orderbook-ts-sdk"], + // }, }); From 982b74156d45c2513f9591c8f8ecfcb782717c0d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=B8b=C4=97rt=C3=B8?= <106074508+EchoDex@users.noreply.github.com> Date: Mon, 7 Oct 2024 14:32:58 +0400 Subject: [PATCH 9/9] chore: update config script --- script/getConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/getConfig.ts b/script/getConfig.ts index b4e9707b..09393bce 100644 --- a/script/getConfig.ts +++ b/script/getConfig.ts @@ -4,7 +4,7 @@ export default function getConfig() { return { name: "download-config", async buildStart() { - const url = "https://raw.githubusercontent.com/compolabs/spark-frontend-config/refs/heads/main/config-dev.json"; + const url = "https://raw.githubusercontent.com/compolabs/spark-frontend-config/refs/heads/main/config.json"; const res = await fetch(url); const json = await res.json();