From 5390c14f1482da51aaed7d06b8e2e918f566081e Mon Sep 17 00:00:00 2001 From: ridel1e Date: Tue, 6 Feb 2024 13:15:27 +0300 Subject: [PATCH] update deps and remove unnecessary code --- package.json | 4 ++-- src/applicationConfig.ts | 13 ------------- yarn.lock | 8 ++++---- 3 files changed, 6 insertions(+), 19 deletions(-) diff --git a/package.json b/package.json index 8152e781d..83d5946b3 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ "@sentry/react": "^6.16.1", "@sentry/tracing": "^6.16.1", "@spectrumlabs/analytics": "^1.1.9", - "@spectrumlabs/cardano-dex-sdk": "^0.1.278", + "@spectrumlabs/cardano-dex-sdk": "^0.1.279", "@types/file-saver": "^2.0.5", "@types/lodash": "^4.14.172", "@types/numeral": "^2.0.2", @@ -113,6 +113,6 @@ ] }, "engines": { - "node": "^20" + "node": "^19" } } diff --git a/src/applicationConfig.ts b/src/applicationConfig.ts index e0fa3f0a0..24dbbd3cf 100644 --- a/src/applicationConfig.ts +++ b/src/applicationConfig.ts @@ -3,8 +3,6 @@ import { DateTime } from 'luxon'; import { Dictionary } from './common/utils/Dictionary'; import { isProductionEnv } from './common/utils/env'; import { DefaultTokenListItem } from './network/cardano/api/common/defaultTokenList.ts'; -import { RustModule } from "@spectrumlabs/cardano-dex-sdk/build/main/utils/rustLoader"; -import { ScriptHash } from "@emurgo/cardano-serialization-lib-browser"; const isProductionHost = 'app.spectrum.fi' === location.host; @@ -298,14 +296,3 @@ export const applicationConfig: ApplicationConfig = { ], cardanoAmmSwapsOpenTime: DateTime.utc(2023, 6, 21, 19, 59, 0), }; - -RustModule -.load() -.then(() => { - console.log('here1') - console.log( - RustModule.CardanoWasm.BaseAddress.from_address(RustModule.CardanoWasm.Address.from_bech32('addr1x94ec3t25egvhqy2n265xfhq882jxhkknurfe9ny4rl9k6dj764lvrxdayh2ux30fl0ktuh27csgmpevdu89jlxppvrst84slu')) - ) - console.log('here2') - // RustModule.CardanoWasm.EnterpriseAddress.new(0, RustModule.CardanoWasm.StakeCredential.from_scripthash() -}).catch(console.log) diff --git a/yarn.lock b/yarn.lock index a4ba58c04..0806c649e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3337,10 +3337,10 @@ dependencies: "@amplitude/analytics-browser" "^1.9.0" -"@spectrumlabs/cardano-dex-sdk@^0.1.278": - version "0.1.278" - resolved "https://registry.yarnpkg.com/@spectrumlabs/cardano-dex-sdk/-/cardano-dex-sdk-0.1.278.tgz#92777dda16e6df01ef48b606e9e29d1f63a3d07a" - integrity sha512-dQUSwK+p32kcgOq8OKW2J2ONn9b4X6v0qT1CEhunR8tjbJVlIbGg39ixSVI0U5bpohpW5d8PpmoQunptwuiVeQ== +"@spectrumlabs/cardano-dex-sdk@^0.1.279": + version "0.1.279" + resolved "https://registry.yarnpkg.com/@spectrumlabs/cardano-dex-sdk/-/cardano-dex-sdk-0.1.279.tgz#b723b92b969640080286f15670752a9889c37776" + integrity sha512-22QJysrgOOJ91st6hMrCPV7nTJx6untbIbJDdmAIWxZJLDQom16G3LWCS59gGBNoBWLgLD5nwIIBKJ5Vde587Q== dependencies: "@emurgo/cardano-serialization-lib-browser" "^11.5.0" axios "^0.21.1"