Skip to content

Commit 52aebf4

Browse files
committed
Move utils back to /api
1 parent 5adbc38 commit 52aebf4

File tree

9 files changed

+7
-7
lines changed

9 files changed

+7
-7
lines changed

main/api/ironfish/Ironfish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import { v4 as uuid } from "uuid";
1818
import { logger } from "./logger";
1919
import packageJson from "../../../package.json";
2020
import { userSettingsStore } from "../../stores/userSettingsStore";
21-
import { SplitPromise, splitPromise } from "../../utils/splitPromise";
2221
import { SnapshotManager } from "../snapshot/snapshotManager";
22+
import { SplitPromise, splitPromise } from "../utils/splitPromise";
2323

2424
export class Ironfish {
2525
public snapshotManager: SnapshotManager = new SnapshotManager();

main/api/ledger/utils/ledger.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ import IronfishApp, {
1212
import { z } from "zod";
1313

1414
import { ledgerStore } from "../../../stores/ledgerStore";
15-
import { PromiseQueue } from "../../../utils/promiseQueue";
16-
import { createUnsignedTransaction } from "../../../utils/transactions";
1715
import { handleImportAccount } from "../../accounts/handleImportAccount";
1816
import { logger } from "../../ironfish/logger";
1917
import { handleSendTransactionInput } from "../../transactions/handleSendTransaction";
18+
import { PromiseQueue } from "../../utils/promiseQueue";
19+
import { createUnsignedTransaction } from "../../utils/transactions";
2020

2121
export const DERIVATION_PATH = "m/44'/1338'/0";
2222
const IRONFISH_APP_NAME = "Ironfish";

main/api/snapshot/snapshotManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
getDefaultManifestUrl,
1010
} from "./utils";
1111
import { SnapshotUpdate } from "../../../shared/types";
12-
import { SplitPromise, splitPromise } from "../../utils/splitPromise";
12+
import { SplitPromise, splitPromise } from "../utils/splitPromise";
1313

1414
export class SnapshotManager {
1515
onProgress: Event<[SnapshotUpdate]> = new Event();

main/api/transactions/handleGetTransactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { formatTransactionsToNotes } from "./utils/formatTransactionsToNotes";
2-
import { resolveContentStream } from "../../utils/resolveContentStream";
32
import { manager } from "../manager";
3+
import { resolveContentStream } from "../utils/resolveContentStream";
44

55
type Params = {
66
accountName: string;

main/api/transactions/handleSendTransaction.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { RawTransactionSerde } from "@ironfish/sdk";
22
import { z } from "zod";
33

4-
import { createRawTransaction } from "../../utils/transactions";
54
import { manager } from "../manager";
5+
import { createRawTransaction } from "../utils/transactions";
66

77
export const handleSendTransactionInput = z.object({
88
fromAccount: z.string(),
File renamed without changes.
File renamed without changes.

main/utils/transactions.ts renamed to main/api/utils/transactions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
} from "@ironfish/sdk";
66
import { z } from "zod";
77

8-
import { manager } from "../api/manager";
8+
import { manager } from "../manager";
99

1010
export const createTransactionInput = z.object({
1111
fromAccount: z.string(),

0 commit comments

Comments
 (0)