Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(core-state): wallet repository search #3911

Closed
wants to merge 11 commits into from
Prev Previous commit
Next Next commit
Remove unused resources
  • Loading branch information
rainydio committed Aug 4, 2020
commit 09cc38f229d9ed32d1d7b149664c17546961e4ec
8 changes: 0 additions & 8 deletions packages/core-api/src/controllers/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,4 @@ export class Controller {
protected toCollection<T>(data: T[], transformer, transform = true): object {
return data.map((item) => this.toResource(item, transformer, transform));
}

protected toPagination<T>(data: Contracts.Search.ListResult<T>, transformer, transform = true): object {
return {
results: this.toCollection(data.rows, transformer, transform),
totalCount: data.count,
meta: { totalCountIsEstimate: data.countIsEstimate },
};
}
}
61 changes: 0 additions & 61 deletions packages/core-api/src/resources/block-with-transactions.ts

This file was deleted.

29 changes: 0 additions & 29 deletions packages/core-api/src/resources/block.ts

This file was deleted.

62 changes: 0 additions & 62 deletions packages/core-api/src/resources/delegate.ts

This file was deleted.

8 changes: 0 additions & 8 deletions packages/core-api/src/resources/index.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
export * from "./block-with-transactions";
export * from "./block";
export * from "./delegate";
export * from "./fee-statistics";
export * from "./lock";
export * from "./peer";
export * from "./ports";
export * from "./round";
export * from "./transaction-with-block";
export * from "./transaction";
export * from "./wallet";
35 changes: 0 additions & 35 deletions packages/core-api/src/resources/lock.ts

This file was deleted.

36 changes: 0 additions & 36 deletions packages/core-api/src/resources/peer.ts

This file was deleted.

50 changes: 0 additions & 50 deletions packages/core-api/src/resources/transaction-with-block.ts

This file was deleted.

62 changes: 0 additions & 62 deletions packages/core-api/src/resources/transaction.ts

This file was deleted.

Loading