Skip to content

Commit

Permalink
refactor: improve imports
Browse files Browse the repository at this point in the history
  • Loading branch information
solidsnakedev committed Jan 9, 2024
1 parent 69f1322 commit 7a7d304
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion src/core/core.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as C from "./libs/cardano_multiplatform_lib/cardano_multiplatform_lib.generated.js";
import * as M from "./libs/cardano_message_signing/cardano_message_signing.generated.js";
import * as CML from "npm:@dcspark/[email protected]"
import packageJson from "../../package.json" assert { type: "json" };

async function unsafeInstantiate(module: any, url: string) {
Expand Down Expand Up @@ -27,4 +28,4 @@ await Promise.all([
),
]);

export { C, M };
export { C, M , CML};
2 changes: 1 addition & 1 deletion src/lucid/tx_complete.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { C } from "../core/mod.ts";
import * as CML from "npm:@dcspark/[email protected]"
import { CML } from "../core/mod.ts "
import {
Credential,
PrivateKey,
Expand Down
2 changes: 1 addition & 1 deletion src/lucid/tx_signed.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { C } from "../core/mod.ts";
import * as CML from "npm:@dcspark/[email protected]"
import { CML } from "../core/mod.ts"
import { Transaction, TxHash } from "../types/mod.ts";
import { Lucid } from "./lucid.ts";
import { toHex } from "../utils/mod.ts";
Expand Down
2 changes: 1 addition & 1 deletion src/types/types.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { C } from "../core/mod.ts";
import * as CML from "npm:@dcspark/[email protected]"
import { CML } from "../core/mod.ts"
type CostModel = Record<string, number>;

export type CostModels = Record<PlutusVersion, CostModel>;
Expand Down
2 changes: 1 addition & 1 deletion src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
encodeToString,
} from "https://deno.land/[email protected]/encoding/hex.ts";
import { C } from "../core/mod.ts";
import * as CML from "npm:@dcspark/[email protected]"
import { CML } from "../core/mod.ts"
import { Lucid, TxComplete } from "../lucid/mod.ts";
import { generateMnemonic } from "../misc/bip39.ts";
import { crc8 } from "../misc/crc8.ts";
Expand Down

0 comments on commit 7a7d304

Please sign in to comment.