Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions packages/state/source/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,4 @@ describe("Index", ({ assert, it }) => {
it("should export ServiceProvider", () => {
assert.defined(index.ServiceProvider);
});

it("should export Wallets", () => {
assert.defined(index.Wallets);
});

it("should export Wallets", () => {
assert.defined(index.Wallets);
});
});
1 change: 0 additions & 1 deletion packages/state/source/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from "./service-provider.js";
export * from "./store.js";
export * as Wallets from "./wallets/index.js";
1 change: 0 additions & 1 deletion packages/state/source/wallets/index.ts

This file was deleted.

1 change: 0 additions & 1 deletion packages/transaction-pool-service/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"@mainsail/container": "workspace:*",
"@mainsail/exceptions": "workspace:*",
"@mainsail/kernel": "workspace:*",
"@mainsail/state": "workspace:*",
"@mainsail/utils": "workspace:*",
"better-sqlite3": "12.11.1",
"fs-extra": "11.4.0",
Expand Down
9 changes: 4 additions & 5 deletions packages/transaction-pool-service/source/sender-state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ import {
TransactionFailedToPreverifyError,
UnexpectedLegacySecondSignatureError,
} from "@mainsail/exceptions";
import { Wallets } from "@mainsail/state";

import { Wallet } from "./wallet.js";

@injectable()
export class SenderState implements Contracts.TransactionPool.SenderState {
Expand All @@ -37,7 +38,7 @@ export class SenderState implements Contracts.TransactionPool.SenderState {
#wallet!: Contracts.State.Wallet;

public async configure(address: string, legacyAddress?: string): Promise<SenderState> {
this.#wallet = await this.app.resolve(Wallets.Wallet).init(address, legacyAddress);
this.#wallet = await this.app.resolve(Wallet).init(address, legacyAddress);
return this;
}

Expand All @@ -46,9 +47,7 @@ export class SenderState implements Contracts.TransactionPool.SenderState {
}

public async reset(): Promise<void> {
this.#wallet = await this.app
.resolve(Wallets.Wallet)
.init(this.#wallet.getAddress(), this.#wallet.getLegacyAddress());
this.#wallet = await this.app.resolve(Wallet).init(this.#wallet.getAddress(), this.#wallet.getLegacyAddress());
}

public async apply(transaction: Contracts.Crypto.Transaction): Promise<void> {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Identifiers } from "@mainsail/constants";
import { Application } from "@mainsail/kernel";
import { describe } from "@mainsail/test-runner";
import { Wallet } from ".";
import { Wallet } from "./wallet.js";

describe<{
app: Application;
Expand Down
3 changes: 0 additions & 3 deletions packages/transaction-pool-service/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@
{
"path": "../kernel"
},
{
"path": "../state"
},
{
"path": "../utils"
}
Expand Down
Loading