Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
alessandrokonrad committed Jan 22, 2025
1 parent 87c6db5 commit 29259f0
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
10 changes: 8 additions & 2 deletions examples/emulate_something.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import { Emulator, fromText, Lucid, toUnit } from "../mod.ts";
import { Addresses, Crypto } from "../mod.ts";
import {
Addresses,
Crypto,
Emulator,
fromText,
Lucid,
toUnit,
} from "../mod.ts";

const privateKey = Crypto.generatePrivateKey();

Expand Down
11 changes: 9 additions & 2 deletions examples/matching_keyhash.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
import { Blockfrost, Constr, Data, Lucid } from "../mod.ts";
import {
Addresses,
Blockfrost,
Constr,
Data,
Hasher,
Lucid,
Script,
} from "../mod.ts";
import * as helios from "https://raw.githubusercontent.com/Hyperion-BT/Helios/v0.4.0/helios.js";
import { Addresses, Hasher, Script } from "../mod.ts";

/*
MatchingPubKeyHash Example
Expand Down
2 changes: 1 addition & 1 deletion src/lucid/lucid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
PartialInstruction,
Provider,
ReadOnlyWallet,
resolveInstructions,
Script,
ScriptUtility,
SignedMessage,
Expand All @@ -31,7 +32,6 @@ import {
WalletSelection,
} from "../mod.ts";
import { signMessage, verifyMessage } from "../misc/sign_message.ts";
import { resolveInstructions } from "./mod.ts";

export class Lucid {
wallet!: Wallet;
Expand Down
3 changes: 1 addition & 2 deletions src/lucid/message.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Lucid } from "./mod.ts";
import { Addresses, Crypto, SignedMessage } from "../mod.ts";
import { Addresses, Crypto, Lucid, SignedMessage } from "../mod.ts";
import { signMessage } from "../misc/sign_message.ts";

export class Message {
Expand Down

0 comments on commit 29259f0

Please sign in to comment.