From 46c5d056cf75475a1c619936e481039dc8db1b84 Mon Sep 17 00:00:00 2001 From: xray-robot Date: Wed, 26 Jun 2024 02:03:05 +0300 Subject: [PATCH] Cardano-koios-client version bump --- package.json | 2 +- src/core/cw3.ts | 10 +++++++--- yarn.lock | 16 ++++++++-------- 3 files changed, 16 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 855bebc..c8d2d39 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "bignumber.js": "^9.0.1", "blake2b": "^2.1.4", "buffer": "^6.0.3", - "cardano-koios-client": "^1.0.4", + "cardano-koios-client": "^1.0.5", "cardano-nftcdn-client": "^1.0.4", "cardano-pricing-client": "^1.0.4", "cborg": "^4.2.1", diff --git a/src/core/cw3.ts b/src/core/cw3.ts index bc3aea5..4879896 100644 --- a/src/core/cw3.ts +++ b/src/core/cw3.ts @@ -17,6 +17,10 @@ import PricingExplorer from "../explorer/pricing" import { Data, Constr } from "../utils/data" import * as T from "../types" +import * as CML from "@dcspark/cardano-multiplatform-lib-nodejs" +import * as MSL from "@emurgo/cardano-message-signing-nodejs" +import * as UPLC from "uplc-node" + /** * CardanoWeb3 class * @@ -52,9 +56,9 @@ export class CardanoWeb3 { const cw3 = new CardanoWeb3() const network = config?.network || "mainnet" - cw3.CML = await import("@dcspark/cardano-multiplatform-lib-nodejs") - cw3.MSL = await import("@emurgo/cardano-message-signing-nodejs") - cw3.UPLC = await import("uplc-node") + cw3.CML = CML + cw3.MSL = MSL + cw3.UPLC = UPLC cw3.Data = Data(cw3) cw3.Constr = Constr cw3.explorer = { diff --git a/yarn.lock b/yarn.lock index 0125281..9fc861c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -591,10 +591,10 @@ cac@^6.7.12, cac@^6.7.14: resolved "https://registry.yarnpkg.com/cac/-/cac-6.7.14.tgz#804e1e6f506ee363cb0e3ccbb09cad5dd9870959" integrity sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ== -cardano-koios-client@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/cardano-koios-client/-/cardano-koios-client-1.0.4.tgz#85b2251784218d414e6a3699aad408174394c148" - integrity sha512-Thg1vISVA+EYJ+BsUfYXG9OlGmnBBSdGfv3W13jDnTxg/j/vYB5peXYDPOknP8UFQ7Fsef8WThlfIlC0D0i6aA== +cardano-koios-client@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/cardano-koios-client/-/cardano-koios-client-1.0.5.tgz#f635cab4634163db227efbc44d611367ac7d914f" + integrity sha512-p3bu9WpPbcdUCaQnR9KXGB7+WIdcrPksmhoKWEVOxOnR8gjOWZM1Nzkene78tlPwTLhu5DlK8oOxob6r8IQ1rg== dependencies: openapi-fetch "^0.9.7" @@ -1802,10 +1802,10 @@ type-detect@^4.0.0, type-detect@^4.0.8: resolved "https://registry.yarnpkg.com/type-detect/-/type-detect-4.0.8.tgz#7646fb5f18871cfbb7749e69bd39a6388eb7450c" integrity sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g== -typescript@5.4.5: - version "5.4.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.4.5.tgz#42ccef2c571fdbd0f6718b1d1f5e6e5ef006f611" - integrity sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ== +typescript@^5.4.5: + version "5.5.2" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.5.2.tgz#c26f023cb0054e657ce04f72583ea2d85f8d0507" + integrity sha512-NcRtPEOsPFFWjobJEtfihkLCZCXZt/os3zf8nTxjVH3RvTSxjrCamJpbExGvYOF+tFHc3pA65qpdwPbzjohhew== ufo@^1.5.3: version "1.5.3"