Skip to content

Commit

Permalink
feat: Fixed imports in api
Browse files Browse the repository at this point in the history
  • Loading branch information
rpanic committed Oct 24, 2023
1 parent dfe4818 commit f389034
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 11 deletions.
1 change: 1 addition & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions packages/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"peerDependencies": {
"@proto-kit/common": "*",
"@proto-kit/sequencer": "*",
"snarkyjs": "0.12.0",
"tsyringe": "^4.7.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/graphql/GraphqlSequencerModule.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { SequencerModule } from "@proto-kit/sequencer/dist/sequencer/builder/SequencerModule.js";
import { SequencerModule } from "@proto-kit/sequencer";

import {
ChildContainerProvider,
Expand Down
2 changes: 1 addition & 1 deletion packages/api/src/graphql/GraphqlServer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { buildSchemaSync } from "type-graphql";
import { DependencyContainer, injectable } from "tsyringe";

import type { GraphqlModule } from "./GraphqlModule";
import { SequencerModule } from "@proto-kit/sequencer/dist/sequencer/builder/SequencerModule";
import { SequencerModule } from "@proto-kit/sequencer";
import { log, noop } from "@proto-kit/common";
import { GraphQLSchema } from "graphql/type";
import { stitchSchemas } from "@graphql-tools/stitch";
Expand Down
4 changes: 1 addition & 3 deletions packages/api/src/graphql/modules/BlockStorageResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,9 @@ import { TransactionObject } from "./MempoolResolver";
import {
BlockStorage,
HistoricalBlockStorage,
} from "@proto-kit/sequencer/dist/storage/repositories/BlockStorage";
import {
ComputedBlock,
ComputedBlockTransaction,
} from "@proto-kit/sequencer/dist/storage/model/Block";
} from "@proto-kit/sequencer";

@ObjectType()
export class ComputedBlockTransactionModel {
Expand Down
4 changes: 2 additions & 2 deletions packages/api/src/graphql/modules/MempoolResolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { Arg, Field, InputType, Mutation, ObjectType, Query, Resolver } from "ty
import { inject, injectable } from "tsyringe";
import { IsNumberString } from "class-validator";

import { Mempool } from "@proto-kit/sequencer/dist/mempool/Mempool.js";
import { PendingTransaction } from "@proto-kit/sequencer/dist/mempool/PendingTransaction.js";
import { Mempool } from "@proto-kit/sequencer";
import { PendingTransaction } from "@proto-kit/sequencer";
import { GraphqlModule } from "../GraphqlModule.js";

@ObjectType()
Expand Down
8 changes: 4 additions & 4 deletions packages/api/src/graphql/modules/QueryGraphqlModule.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ import {
QueryBuilderFactory,
QueryGetterState,
QueryGetterStateMap,
} from "@proto-kit/sequencer/dist/helpers/query/QueryBuilderFactory";
import { QueryTransportModule } from "@proto-kit/sequencer/dist/helpers/query/QueryTransportModule";
QueryTransportModule,
NetworkStateQuery,
BlockStorage
} from "@proto-kit/sequencer";
import { SchemaGeneratingGraphqlModule } from "../GraphqlModule";
import {
BaseModuleType,
Expand All @@ -46,8 +48,6 @@ import {
TypedClass,
} from "@proto-kit/common";
import { ObjMap } from "graphql/jsutils/ObjMap";
import { NetworkStateQuery } from "@proto-kit/sequencer/dist/helpers/query/NetworkStateQuery";
import { BlockStorage } from "@proto-kit/sequencer/dist/storage/repositories/BlockStorage";

interface ProvableExtension<T, TJson = any> {
toInput: (x: T) => { fields?: Field[]; packed?: [Field, number][] };
Expand Down

0 comments on commit f389034

Please sign in to comment.