@solana/rpc-graphql 2.0.0-experimental.eb5fd16 → 2.0.0-experimental.eb951b0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +1088 -30
  3. package/dist/index.browser.cjs +3364 -51
  4. package/dist/index.browser.cjs.map +1 -1
  5. package/dist/index.browser.js +3361 -53
  6. package/dist/index.browser.js.map +1 -1
  7. package/dist/index.native.js +3365 -53
  8. package/dist/index.native.js.map +1 -1
  9. package/dist/index.node.cjs +3365 -48
  10. package/dist/index.node.cjs.map +1 -1
  11. package/dist/index.node.js +3365 -53
  12. package/dist/index.node.js.map +1 -1
  13. package/dist/types/context.d.ts +17 -6
  14. package/dist/types/context.d.ts.map +1 -0
  15. package/dist/types/index.d.ts +6 -1
  16. package/dist/types/index.d.ts.map +1 -0
  17. package/dist/types/loaders/account.d.ts +14 -0
  18. package/dist/types/loaders/account.d.ts.map +1 -0
  19. package/dist/types/loaders/block.d.ts +4 -0
  20. package/dist/types/loaders/block.d.ts.map +1 -0
  21. package/dist/types/loaders/coalescer.d.ts +55 -0
  22. package/dist/types/loaders/coalescer.d.ts.map +1 -0
  23. package/dist/types/loaders/index.d.ts +6 -0
  24. package/dist/types/loaders/index.d.ts.map +1 -0
  25. package/dist/types/loaders/loader.d.ts +82 -0
  26. package/dist/types/loaders/loader.d.ts.map +1 -0
  27. package/dist/types/loaders/program-accounts.d.ts +8 -0
  28. package/dist/types/loaders/program-accounts.d.ts.map +1 -0
  29. package/dist/types/loaders/transaction.d.ts +4 -0
  30. package/dist/types/loaders/transaction.d.ts.map +1 -0
  31. package/dist/types/resolvers/account.d.ts +232 -0
  32. package/dist/types/resolvers/account.d.ts.map +1 -0
  33. package/dist/types/resolvers/block.d.ts +104 -0
  34. package/dist/types/resolvers/block.d.ts.map +1 -0
  35. package/dist/types/resolvers/index.d.ts +3 -0
  36. package/dist/types/resolvers/index.d.ts.map +1 -0
  37. package/dist/types/resolvers/instruction.d.ts +2220 -0
  38. package/dist/types/resolvers/instruction.d.ts.map +1 -0
  39. package/dist/types/resolvers/program-accounts.d.ts +19 -0
  40. package/dist/types/resolvers/program-accounts.d.ts.map +1 -0
  41. package/dist/types/resolvers/resolve-info/account.d.ts +15 -0
  42. package/dist/types/resolvers/resolve-info/account.d.ts.map +1 -0
  43. package/dist/types/resolvers/resolve-info/block.d.ts +13 -0
  44. package/dist/types/resolvers/resolve-info/block.d.ts.map +1 -0
  45. package/dist/types/resolvers/resolve-info/index.d.ts +6 -0
  46. package/dist/types/resolvers/resolve-info/index.d.ts.map +1 -0
  47. package/dist/types/resolvers/resolve-info/program-accounts.d.ts +20 -0
  48. package/dist/types/resolvers/resolve-info/program-accounts.d.ts.map +1 -0
  49. package/dist/types/resolvers/resolve-info/transaction.d.ts +15 -0
  50. package/dist/types/resolvers/resolve-info/transaction.d.ts.map +1 -0
  51. package/dist/types/resolvers/resolve-info/visitor.d.ts +18 -0
  52. package/dist/types/resolvers/resolve-info/visitor.d.ts.map +1 -0
  53. package/dist/types/resolvers/root.d.ts +3 -0
  54. package/dist/types/resolvers/root.d.ts.map +1 -0
  55. package/dist/types/resolvers/transaction.d.ts +42 -0
  56. package/dist/types/resolvers/transaction.d.ts.map +1 -0
  57. package/dist/types/resolvers/types.d.ts +94 -0
  58. package/dist/types/resolvers/types.d.ts.map +1 -0
  59. package/dist/types/schema/account.d.ts +2 -0
  60. package/dist/types/schema/account.d.ts.map +1 -0
  61. package/dist/types/schema/block.d.ts +2 -0
  62. package/dist/types/schema/block.d.ts.map +1 -0
  63. package/dist/types/schema/index.d.ts +2 -0
  64. package/dist/types/schema/index.d.ts.map +1 -0
  65. package/dist/types/schema/instruction.d.ts +2 -0
  66. package/dist/types/schema/instruction.d.ts.map +1 -0
  67. package/dist/types/schema/root.d.ts +2 -0
  68. package/dist/types/schema/root.d.ts.map +1 -0
  69. package/dist/types/schema/transaction.d.ts +2 -0
  70. package/dist/types/schema/transaction.d.ts.map +1 -0
  71. package/dist/types/schema/types.d.ts +2 -0
  72. package/dist/types/schema/types.d.ts.map +1 -0
  73. package/package.json +15 -36
  74. package/dist/types/cache.d.ts +0 -7
  75. package/dist/types/rpc.d.ts +0 -13
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/resolvers/instruction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAwXQ,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2XzD,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Address } from '@solana/addresses';
2
+ import { Commitment, Slot } from '@solana/rpc-types';
3
+ import type { GraphQLResolveInfo } from 'graphql';
4
+ import { RpcGraphQLContext } from '../context.js';
5
+ import { AccountResult } from './account.js';
6
+ export declare function resolveProgramAccounts(fieldName?: string): (parent: {
7
+ [x: string]: Address;
8
+ }, args: {
9
+ commitment?: Commitment;
10
+ filters?: readonly {
11
+ memcmp: {
12
+ offset: number;
13
+ bytes: string;
14
+ };
15
+ }[];
16
+ minContextSlot?: Slot;
17
+ programAddress: Address;
18
+ }, context: RpcGraphQLContext, info: GraphQLResolveInfo) => Promise<AccountResult[] | null>;
19
+ //# sourceMappingURL=program-accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"program-accounts.d.ts","sourceRoot":"","sources":["../../../src/resolvers/program-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG1C,wBAAgB,sBAAsB,CAAC,SAAS,CAAC,EAAE,MAAM;;SAG3C;IACF,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS;QAAE,MAAM,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,EAAE,CAAC;IACnE,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;CAC3B,WACQ,iBAAiB,QACpB,kBAAkB,KACzB,QAAQ,aAAa,EAAE,GAAG,IAAI,CAAC,CAkErC"}
@@ -0,0 +1,15 @@
1
+ import { Address } from '@solana/addresses';
2
+ import { Commitment, Slot } from '@solana/rpc-types';
3
+ import { GraphQLResolveInfo } from 'graphql';
4
+ import { AccountLoaderArgs, ProgramAccountsLoaderArgs } from '../../loaders/index.js';
5
+ export declare function buildAccountArgSetWithVisitor<TArgs extends AccountLoaderArgs | ProgramAccountsLoaderArgs>(args: TArgs, info: GraphQLResolveInfo): TArgs[];
6
+ /**
7
+ * Build a set of account loader args by inspecting which fields have
8
+ * been requested in the query (ie. `data` or inline fragments).
9
+ */
10
+ export declare function buildAccountLoaderArgSetFromResolveInfo(args: {
11
+ address: Address;
12
+ commitment?: Commitment;
13
+ minContextSlot?: Slot;
14
+ }, info: GraphQLResolveInfo): AccountLoaderArgs[];
15
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/resolve-info/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAa,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAgB,kBAAkB,EAAmB,MAAM,SAAS,CAAC;AAE5E,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAmE7E,wBAAgB,6BAA6B,CAAC,KAAK,SAAS,iBAAiB,GAAG,yBAAyB,EACrG,IAAI,EAAE,KAAK,EACX,IAAI,EAAE,kBAAkB,GACzB,KAAK,EAAE,CAsCT;AAED;;;GAGG;AACH,wBAAgB,uCAAuC,CACnD,IAAI,EAAE;IACF,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,cAAc,CAAC,EAAE,IAAI,CAAC;CACzB,EACD,IAAI,EAAE,kBAAkB,GACzB,iBAAiB,EAAE,CAErB"}
@@ -0,0 +1,13 @@
1
+ import { Commitment, Slot } from '@solana/rpc-types';
2
+ import { GraphQLResolveInfo } from 'graphql';
3
+ import { BlockLoaderArgs } from '../../loaders/index.js';
4
+ /**
5
+ * Build a set of block loader args by inspecting which fields have
6
+ * been requested in the query (ie. `data` or inline fragments).
7
+ */
8
+ export declare function buildBlockLoaderArgSetFromResolveInfo(args: {
9
+ commitment?: Omit<Commitment, 'processed'>;
10
+ minContextSlot?: Slot;
11
+ slot: Slot;
12
+ }, info: GraphQLResolveInfo): BlockLoaderArgs[];
13
+ //# sourceMappingURL=block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/resolve-info/block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIhD;;;GAGG;AACH,wBAAgB,qCAAqC,CACjD,IAAI,EAAE;IACF,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAC3C,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,IAAI,EAAE,IAAI,CAAC;CACd,EACD,IAAI,EAAE,kBAAkB,GACzB,eAAe,EAAE,CA0BnB"}
@@ -0,0 +1,6 @@
1
+ export * from './account.js';
2
+ export * from './block.js';
3
+ export * from './program-accounts.js';
4
+ export * from './transaction.js';
5
+ export * from './visitor.js';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/resolve-info/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
@@ -0,0 +1,20 @@
1
+ import { Address } from '@solana/addresses';
2
+ import { Commitment, Slot } from '@solana/rpc-types';
3
+ import { GraphQLResolveInfo } from 'graphql';
4
+ import { ProgramAccountsLoaderArgs } from '../../loaders/index.js';
5
+ /**
6
+ * Build a set of account loader args by inspecting which fields have
7
+ * been requested in the query (ie. `data` or inline fragments).
8
+ */
9
+ export declare function buildProgramAccountsLoaderArgSetFromResolveInfo(args: {
10
+ commitment?: Commitment;
11
+ filters?: readonly {
12
+ memcmp: {
13
+ offset: number;
14
+ bytes: string;
15
+ };
16
+ }[];
17
+ minContextSlot?: Slot;
18
+ programAddress: Address;
19
+ }, info: GraphQLResolveInfo): ProgramAccountsLoaderArgs[];
20
+ //# sourceMappingURL=program-accounts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"program-accounts.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/resolve-info/program-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAG1D;;;GAGG;AACH,wBAAgB,+CAA+C,CAC3D,IAAI,EAAE;IACF,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS;QAAE,MAAM,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,EAAE,CAAC;IACnE,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;CAC3B,EACD,IAAI,EAAE,kBAAkB,GACzB,yBAAyB,EAAE,CAE7B"}
@@ -0,0 +1,15 @@
1
+ import { Signature } from '@solana/keys';
2
+ import { Commitment, Slot } from '@solana/rpc-types';
3
+ import { GraphQLResolveInfo } from 'graphql';
4
+ import { BlockLoaderArgs, TransactionLoaderArgs } from '../../loaders/index.js';
5
+ export declare function buildTransactionArgSetWithVisitor<TArgs extends BlockLoaderArgs | TransactionLoaderArgs>(args: TArgs, info: GraphQLResolveInfo): TArgs[];
6
+ /**
7
+ * Build a set of transaction loader args by inspecting which fields have
8
+ * been requested in the query (ie. `data` or inline fragments).
9
+ */
10
+ export declare function buildTransactionLoaderArgSetFromResolveInfo(args: {
11
+ commitment?: Omit<Commitment, 'processed'>;
12
+ minContextSlot?: Slot;
13
+ signature: Signature;
14
+ }, info: GraphQLResolveInfo): TransactionLoaderArgs[];
15
+ //# sourceMappingURL=transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/resolve-info/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AA+BvE,wBAAgB,iCAAiC,CAAC,KAAK,SAAS,eAAe,GAAG,qBAAqB,EACnG,IAAI,EAAE,KAAK,EACX,IAAI,EAAE,kBAAkB,GACzB,KAAK,EAAE,CAkCT;AAED;;;GAGG;AACH,wBAAgB,2CAA2C,CACvD,IAAI,EAAE;IACF,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAC3C,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,SAAS,EAAE,SAAS,CAAC;CACxB,EACD,IAAI,EAAE,kBAAkB,GACzB,qBAAqB,EAAE,CAEzB"}
@@ -0,0 +1,18 @@
1
+ import { ASTVisitFn, FieldNode, FragmentDefinitionNode, FragmentSpreadNode, GraphQLResolveInfo, InlineFragmentNode } from 'graphql';
2
+ type InjectableVisitorOperations = {
3
+ fieldNodeOperation: (info: GraphQLResolveInfo, ...args: Parameters<ASTVisitFn<FieldNode>>) => void;
4
+ fragmentSpreadNodeOperation: (info: GraphQLResolveInfo, fragment: FragmentDefinitionNode, ...args: Parameters<ASTVisitFn<FragmentSpreadNode>>) => void;
5
+ inlineFragmentNodeOperation: (info: GraphQLResolveInfo, ...args: Parameters<ASTVisitFn<InlineFragmentNode>>) => void;
6
+ };
7
+ type RootNode = FieldNode | FragmentDefinitionNode | InlineFragmentNode;
8
+ /**
9
+ * An AST visitor that keys on the root field provided.
10
+ * This visitor can be injected with custom logic for various types of nodes.
11
+ */
12
+ export declare function injectableRootVisitor(info: GraphQLResolveInfo, rootNode: RootNode | null, operations: InjectableVisitorOperations): void;
13
+ /**
14
+ * Determine if the query only requests the provided field names
15
+ */
16
+ export declare function onlyFieldsRequested(fieldNames: string[], info: GraphQLResolveInfo, rootNode?: RootNode): boolean;
17
+ export {};
18
+ //# sourceMappingURL=visitor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"visitor.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/resolve-info/visitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,UAAU,EAEV,SAAS,EACT,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAErB,MAAM,SAAS,CAAC;AAEjB,KAAK,2BAA2B,GAAG;IAC/B,kBAAkB,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,IAAI,CAAC;IACnG,2BAA2B,EAAE,CACzB,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAE,sBAAsB,EAChC,GAAG,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,KAClD,IAAI,CAAC;IACV,2BAA2B,EAAE,CACzB,IAAI,EAAE,kBAAkB,EACxB,GAAG,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,KAClD,IAAI,CAAC;CACb,CAAC;AACF,KAAK,QAAQ,GAAG,SAAS,GAAG,sBAAsB,GAAG,kBAAkB,CAAC;AAExE;;;GAGG;AACH,wBAAgB,qBAAqB,CACjC,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAE,QAAQ,GAAG,IAAI,EACzB,UAAU,EAAE,2BAA2B,QAoB1C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAuBhH"}
@@ -0,0 +1,3 @@
1
+ import type { makeExecutableSchema } from '@graphql-tools/schema';
2
+ export declare const rootResolvers: Parameters<typeof makeExecutableSchema>[0]['resolvers'];
3
+ //# sourceMappingURL=root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../src/resolvers/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAOlE,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAOjF,CAAC"}
@@ -0,0 +1,42 @@
1
+ import { Address } from '@solana/addresses';
2
+ import { Signature } from '@solana/keys';
3
+ import { Commitment } from '@solana/rpc-types';
4
+ import type { GraphQLResolveInfo } from 'graphql';
5
+ import { RpcGraphQLContext } from '../context.js';
6
+ import { TransactionLoaderValue } from '../loaders/index.js';
7
+ export type EncodedTransactionData = {
8
+ [key: string]: string;
9
+ };
10
+ export type InstructionResult = {
11
+ jsonParsedConfigs?: {
12
+ instructionType: string;
13
+ programId: Address;
14
+ programName: string;
15
+ };
16
+ programId?: Address;
17
+ } & {
18
+ [key: string]: unknown;
19
+ };
20
+ export type TransactionResult = {
21
+ signature?: Signature;
22
+ encodedData?: EncodedTransactionData;
23
+ } & Partial<TransactionLoaderValue>;
24
+ export declare function mapJsonParsedInstructions(instructions: readonly any[]): InstructionResult[];
25
+ export declare function mapJsonParsedInnerInstructions(innerInstructions: readonly any[]): {
26
+ index: number;
27
+ instructions: InstructionResult[];
28
+ }[];
29
+ export declare function resolveTransaction(fieldName?: string): (parent: {
30
+ [x: string]: Signature;
31
+ }, args: {
32
+ signature?: Signature;
33
+ commitment?: Omit<Commitment, 'processed'>;
34
+ }, context: RpcGraphQLContext, info: GraphQLResolveInfo) => Promise<TransactionResult | null>;
35
+ export declare const transactionResolvers: {
36
+ Transaction: {
37
+ data: (parent: TransactionResult | null, args: {
38
+ encoding: 'base58' | 'base64';
39
+ }) => string | null;
40
+ };
41
+ };
42
+ //# sourceMappingURL=transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/resolvers/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAc,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAGhE,MAAM,MAAM,sBAAsB,GAAG;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,iBAAiB,CAAC,EAAE;QAChB,eAAe,EAAE,MAAM,CAAC;QACxB,SAAS,EAAE,OAAO,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG;IACA,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,WAAW,CAAC,EAAE,sBAAsB,CAAC;CACxC,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAGpC,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,SAAS,GAAG,EAAE,GAAG,iBAAiB,EAAE,CA8B3F;AAED,wBAAgB,8BAA8B,CAE1C,iBAAiB,EAAE,SAAS,GAAG,EAAE,GAClC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,iBAAiB,EAAE,CAAA;CAAE,EAAE,CAMxD;AAaD,wBAAgB,kBAAkB,CAAC,SAAS,CAAC,EAAE,MAAM;;SAGvC;IACF,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,KAAK,UAAU,EAAE,WAAW,CAAC,CAAC;CAC9C,WACQ,iBAAiB,QACpB,kBAAkB,KACzB,QAAQ,iBAAiB,GAAG,IAAI,CAAC,CAwEvC;AAED,eAAO,MAAM,oBAAoB;;uBA5FjB,iBAAiB,GAAG,IAAI,QAC1B;YACF,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC;SACjC;;CA6FR,CAAC"}
@@ -0,0 +1,94 @@
1
+ import { Kind } from 'graphql';
2
+ export declare const typeTypeResolvers: {
3
+ AccountEncoding: {
4
+ BASE_58: string;
5
+ BASE_64: string;
6
+ BASE_64_ZSTD: string;
7
+ };
8
+ Address: {
9
+ __parseLiteral(ast: {
10
+ kind: Kind;
11
+ value: string | number | bigint | boolean;
12
+ }): string | null;
13
+ __parseValue(value: string): string;
14
+ __serialize(value: string): string;
15
+ };
16
+ Base58EncodedBytes: {
17
+ __parseLiteral(ast: {
18
+ kind: Kind;
19
+ value: string | number | bigint | boolean;
20
+ }): string | null;
21
+ __parseValue(value: string): string;
22
+ __serialize(value: string): string;
23
+ };
24
+ Base64EncodedBytes: {
25
+ __parseLiteral(ast: {
26
+ kind: Kind;
27
+ value: string | number | bigint | boolean;
28
+ }): string | null;
29
+ __parseValue(value: string): string;
30
+ __serialize(value: string): string;
31
+ };
32
+ Base64ZstdEncodedBytes: {
33
+ __parseLiteral(ast: {
34
+ kind: Kind;
35
+ value: string | number | bigint | boolean;
36
+ }): string | null;
37
+ __parseValue(value: string): string;
38
+ __serialize(value: string): string;
39
+ };
40
+ BigInt: {
41
+ __parseLiteral(ast: {
42
+ kind: Kind;
43
+ value: string | number | bigint | boolean;
44
+ }): bigint | null;
45
+ __parseValue(value: string): bigint;
46
+ __serialize(value: string): bigint;
47
+ };
48
+ Commitment: {
49
+ CONFIRMED: string;
50
+ FINALIZED: string;
51
+ PROCESSED: string;
52
+ };
53
+ CommitmentWithoutProcessed: {
54
+ CONFIRMED: string;
55
+ FINALIZED: string;
56
+ };
57
+ Signature: {
58
+ __parseLiteral(ast: {
59
+ kind: Kind;
60
+ value: string | number | bigint | boolean;
61
+ }): string | null;
62
+ __parseValue(value: string): string;
63
+ __serialize(value: string): string;
64
+ };
65
+ Slot: {
66
+ __parseLiteral(ast: {
67
+ kind: Kind;
68
+ value: string | number | bigint | boolean;
69
+ }): bigint | null;
70
+ __parseValue(value: string): bigint;
71
+ __serialize(value: string): bigint;
72
+ };
73
+ TokenBalance: {
74
+ mint: (parent: {
75
+ [x: string]: import("@solana/addresses").Address;
76
+ }, args: {
77
+ address?: import("@solana/addresses").Address | undefined;
78
+ commitment?: import("@solana/rpc-types").Commitment | undefined;
79
+ minContextSlot?: bigint | undefined;
80
+ }, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo) => Promise<import("./account").AccountResult | null>;
81
+ owner: (parent: {
82
+ [x: string]: import("@solana/addresses").Address;
83
+ }, args: {
84
+ address?: import("@solana/addresses").Address | undefined;
85
+ commitment?: import("@solana/rpc-types").Commitment | undefined;
86
+ minContextSlot?: bigint | undefined;
87
+ }, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo) => Promise<import("./account").AccountResult | null>;
88
+ };
89
+ TransactionEncoding: {
90
+ BASE_58: string;
91
+ BASE_64: string;
92
+ };
93
+ };
94
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAkC/B,eAAO,MAAM,iBAAiB;;;;;;;4BA7BN;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;4BATd;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;4BATd;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;4BATd;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;4BAMd;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;;;;;;;;;;4BAxBd;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;4BAMd;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;CAmCrC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const accountTypeDefs = "\n \"\"\"\n Account interface\n \"\"\"\n interface Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n }\n\n \"\"\"\n Generic base account type\n \"\"\"\n type GenericAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n }\n\n type NonceAccountFeeCalculator {\n lamportsPerSignature: String\n }\n \"\"\"\n A nonce account\n \"\"\"\n type NonceAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n authority: Account\n blockhash: String\n feeCalculator: NonceAccountFeeCalculator\n }\n\n \"\"\"\n A lookup table account\n \"\"\"\n type LookupTableAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n addresses: [Address]\n authority: Account\n deactivationSlot: String\n lastExtendedSlot: String\n lastExtendedSlotStartIndex: Int\n }\n\n \"\"\"\n A mint account\n \"\"\"\n type MintAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n decimals: Int\n freezeAuthority: Account\n isInitialized: Boolean\n mintAuthority: Account\n supply: String\n }\n\n \"\"\"\n A token account\n \"\"\"\n type TokenAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n isNative: Boolean\n mint: Account\n owner: Account\n state: String\n tokenAmount: TokenAmount\n }\n\n type StakeAccountDataMetaAuthorized {\n staker: Account\n withdrawer: Account\n }\n type StakeAccountDataMetaLockup {\n custodian: Account\n epoch: BigInt\n unixTimestamp: BigInt\n }\n type StakeAccountDataMeta {\n authorized: StakeAccountDataMetaAuthorized\n lockup: StakeAccountDataMetaLockup\n rentExemptReserve: String\n }\n type StakeAccountDataStakeDelegation {\n activationEpoch: BigInt\n deactivationEpoch: BigInt\n stake: String\n voter: Account\n warmupCooldownRate: Int\n }\n type StakeAccountDataStake {\n creditsObserved: BigInt\n delegation: StakeAccountDataStakeDelegation\n }\n \"\"\"\n A stake account\n \"\"\"\n type StakeAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n meta: StakeAccountDataMeta\n stake: StakeAccountDataStake\n }\n\n type VoteAccountDataAuthorizedVoter {\n authorizedVoter: Account\n epoch: BigInt\n }\n type VoteAccountDataEpochCredit {\n credits: String\n epoch: BigInt\n previousCredits: String\n }\n type VoteAccountDataLastTimestamp {\n slot: BigInt\n timestamp: BigInt\n }\n type VoteAccountDataVote {\n confirmationCount: Int\n slot: BigInt\n }\n \"\"\"\n A vote account\n \"\"\"\n type VoteAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n authorizedVoters: [VoteAccountDataAuthorizedVoter]\n authorizedWithdrawer: Account\n commission: Int\n epochCredits: [VoteAccountDataEpochCredit]\n lastTimestamp: VoteAccountDataLastTimestamp\n node: Account\n priorVoters: [Address]\n rootSlot: BigInt\n votes: [VoteAccountDataVote]\n }\n";
2
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schema/account.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,uwJAkL3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const blockTypeDefs = "\n \"\"\"\n A Solana block\n \"\"\"\n type Block {\n blockhash: String\n blockHeight: BigInt\n blockTime: BigInt\n parentSlot: Slot\n previousBlockhash: String\n rewards: [Reward]\n signatures: [Signature]\n transactions: [Transaction]\n }\n";
2
+ //# sourceMappingURL=block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/schema/block.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,6TAczB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function createSolanaGraphQLTypeDefs(): string[];
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":"AAOA,wBAAgB,2BAA2B,aAE1C"}
@@ -0,0 +1,2 @@
1
+ export declare const instructionTypeDefs = "\n \"\"\"\n Transaction instruction interface\n \"\"\"\n interface TransactionInstruction {\n programId: Address\n }\n\n \"\"\"\n Generic transaction instruction\n \"\"\"\n type GenericInstruction implements TransactionInstruction {\n accounts: [Address]\n data: Base64EncodedBytes\n programId: Address\n }\n\n \"\"\"\n AddressLookupTable: CreateLookupTable instruction\n \"\"\"\n type CreateLookupTableInstruction implements TransactionInstruction {\n programId: Address\n bumpSeed: BigInt # FIXME:*\n lookupTableAccount: Account\n lookupTableAuthority: Account\n payerAccount: Account\n recentSlot: BigInt\n systemProgram: Account\n }\n\n \"\"\"\n AddressLookupTable: ExtendLookupTable instruction\n \"\"\"\n type ExtendLookupTableInstruction implements TransactionInstruction {\n programId: Address\n lookupTableAccount: Account\n lookupTableAuthority: Account\n newAddresses: [Address]\n payerAccount: Account\n systemProgram: Account\n }\n\n \"\"\"\n AddressLookupTable: FreezeLookupTable instruction\n \"\"\"\n type FreezeLookupTableInstruction implements TransactionInstruction {\n programId: Address\n lookupTableAccount: Account\n lookupTableAuthority: Account\n }\n\n \"\"\"\n AddressLookupTable: DeactivateLookupTable instruction\n \"\"\"\n type DeactivateLookupTableInstruction implements TransactionInstruction {\n programId: Address\n lookupTableAccount: Account\n lookupTableAuthority: Account\n }\n\n \"\"\"\n AddressLookupTable: CloseLookupTable instruction\n \"\"\"\n type CloseLookupTableInstruction implements TransactionInstruction {\n programId: Address\n lookupTableAccount: Account\n lookupTableAuthority: Account\n recipient: Account\n }\n\n \"\"\"\n BpfLoader: Write instruction\n \"\"\"\n type BpfLoaderWriteInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n bytes: Base64EncodedBytes\n offset: BigInt # FIXME:*\n }\n\n \"\"\"\n BpfLoader: Finalize instruction\n \"\"\"\n type BpfLoaderFinalizeInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n }\n\n \"\"\"\n BpfUpgradeableLoader: InitializeBuffer instruction\n \"\"\"\n type BpfUpgradeableLoaderInitializeBufferInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n }\n\n \"\"\"\n BpfUpgradeableLoader: Write instruction\n \"\"\"\n type BpfUpgradeableLoaderWriteInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n authority: Account\n bytes: Base64EncodedBytes\n offset: BigInt # FIXME:*\n }\n\n \"\"\"\n BpfUpgradeableLoader: DeployWithMaxDataLen instruction\n \"\"\"\n type BpfUpgradeableLoaderDeployWithMaxDataLenInstruction implements TransactionInstruction {\n programId: Address\n authority: Account\n bufferAccount: Account\n clockSysvar: Account\n maxDataLen: BigInt\n payerAccount: Account\n programAccount: Account\n programDataAccount: Account\n rentSysvar: Account\n }\n\n \"\"\"\n BpfUpgradeableLoader: Upgrade instruction\n \"\"\"\n type BpfUpgradeableLoaderUpgradeInstruction implements TransactionInstruction {\n programId: Address\n authority: Account\n bufferAccount: Account\n clockSysvar: Account\n programAccount: Account\n programDataAccount: Account\n rentSysvar: Account\n spillAccount: Account\n }\n\n \"\"\"\n BpfUpgradeableLoader: SetAuthority instruction\n \"\"\"\n type BpfUpgradeableLoaderSetAuthorityInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n authority: Account\n newAuthority: Account\n }\n\n \"\"\"\n BpfUpgradeableLoader: SetAuthorityChecked instruction\n \"\"\"\n type BpfUpgradeableLoaderSetAuthorityCheckedInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n authority: Account\n newAuthority: Account\n }\n\n \"\"\"\n BpfUpgradeableLoader: Close instruction\n \"\"\"\n type BpfUpgradeableLoaderCloseInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n authority: Account\n programAccount: Account\n recipient: Account\n }\n\n \"\"\"\n BpfUpgradeableLoader: ExtendProgram instruction\n \"\"\"\n type BpfUpgradeableLoaderExtendProgramInstruction implements TransactionInstruction {\n programId: Address\n additionalBytes: BigInt\n payerAccount: Account\n programAccount: Account\n programDataAccount: Account\n systemProgram: Account\n }\n\n \"\"\"\n SplAssociatedTokenAccount: Create instruction\n \"\"\"\n type SplAssociatedTokenCreateInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n mint: Account\n source: Account\n systemProgram: Account\n tokenProgram: Account\n wallet: Account\n }\n\n \"\"\"\n SplAssociatedTokenAccount: CreateIdempotent instruction\n \"\"\"\n type SplAssociatedTokenCreateIdempotentInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n mint: Account\n source: Account\n systemProgram: Account\n tokenProgram: Account\n wallet: Account\n }\n\n \"\"\"\n SplAssociatedTokenAccount: RecoverNested instruction\n \"\"\"\n type SplAssociatedTokenRecoverNestedInstruction implements TransactionInstruction {\n programId: Address\n destination: Account\n nestedMint: Account\n nestedOwner: Account\n nestedSource: Account\n ownerMint: Account\n tokenProgram: Account\n wallet: Account\n }\n\n \"\"\"\n SplMemo instruction\n \"\"\"\n type SplMemoInstruction implements TransactionInstruction {\n programId: Address\n memo: String\n }\n\n \"\"\"\n SplToken: InitializeMint instruction\n \"\"\"\n type SplTokenInitializeMintInstruction implements TransactionInstruction {\n programId: Address\n decimals: BigInt # FIXME:*\n freezeAuthority: Account\n mint: Account\n mintAuthority: Account\n rentSysvar: Account\n }\n\n \"\"\"\n SplToken: InitializeMint2 instruction\n \"\"\"\n type SplTokenInitializeMint2Instruction implements TransactionInstruction {\n programId: Address\n decimals: BigInt # FIXME:*\n freezeAuthority: Account\n mint: Account\n mintAuthority: Account\n }\n\n \"\"\"\n SplToken: InitializeAccount instruction\n \"\"\"\n type SplTokenInitializeAccountInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n mint: Account\n owner: Account\n rentSysvar: Account\n }\n\n \"\"\"\n SplToken: InitializeAccount2 instruction\n \"\"\"\n type SplTokenInitializeAccount2Instruction implements TransactionInstruction {\n programId: Address\n account: Account\n mint: Account\n owner: Account\n rentSysvar: Account\n }\n\n \"\"\"\n SplToken: InitializeAccount3 instruction\n \"\"\"\n type SplTokenInitializeAccount3Instruction implements TransactionInstruction {\n programId: Address\n account: Account\n mint: Account\n owner: Account\n }\n\n \"\"\"\n SplToken: InitializeMultisig instruction\n \"\"\"\n type SplTokenInitializeMultisigInstruction implements TransactionInstruction {\n programId: Address\n m: BigInt # FIXME:*\n multisig: Account\n rentSysvar: Account\n signers: [Address]\n }\n\n \"\"\"\n SplToken: InitializeMultisig2 instruction\n \"\"\"\n type SplTokenInitializeMultisig2Instruction implements TransactionInstruction {\n programId: Address\n m: BigInt # FIXME:*\n multisig: Account\n signers: [Address]\n }\n\n \"\"\"\n SplToken: Transfer instruction\n \"\"\"\n type SplTokenTransferInstruction implements TransactionInstruction {\n programId: Address\n amount: String\n authority: Account\n destination: Account\n multisigAuthority: Account\n source: Account\n }\n\n \"\"\"\n SplToken: Approve instruction\n \"\"\"\n type SplTokenApproveInstruction implements TransactionInstruction {\n programId: Address\n amount: String\n delegate: Account\n multisigOwner: Account\n owner: Account\n source: Account\n }\n\n \"\"\"\n SplToken: Revoke instruction\n \"\"\"\n type SplTokenRevokeInstruction implements TransactionInstruction {\n programId: Address\n multisigOwner: Account\n owner: Account\n source: Account\n }\n\n \"\"\"\n SplToken: SetAuthority instruction\n \"\"\"\n type SplTokenSetAuthorityInstruction implements TransactionInstruction {\n programId: Address\n authority: Account\n authorityType: String\n multisigAuthority: Account\n newAuthority: Account\n }\n\n \"\"\"\n SplToken: MintTo instruction\n \"\"\"\n type SplTokenMintToInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n amount: String\n authority: Account\n mint: Account\n mintAuthority: Account\n multisigMintAuthority: Account\n }\n\n \"\"\"\n SplToken: Burn instruction\n \"\"\"\n type SplTokenBurnInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n amount: String\n authority: Account\n mint: Account\n multisigAuthority: Account\n }\n\n \"\"\"\n SplToken: CloseAccount instruction\n \"\"\"\n type SplTokenCloseAccountInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n destination: Account\n multisigOwner: Account\n owner: Account\n }\n\n \"\"\"\n SplToken: FreezeAccount instruction\n \"\"\"\n type SplTokenFreezeAccountInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n freezeAuthority: Account\n mint: Account\n multisigFreezeAuthority: Account\n }\n\n \"\"\"\n SplToken: ThawAccount instruction\n \"\"\"\n type SplTokenThawAccountInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n freezeAuthority: Account\n mint: Account\n multisigFreezeAuthority: Account\n }\n\n \"\"\"\n SplToken: TransferChecked instruction\n \"\"\"\n type SplTokenTransferCheckedInstruction implements TransactionInstruction {\n programId: Address\n amount: String\n authority: Account\n decimals: BigInt # FIXME:*\n destination: Account\n mint: Account\n multisigAuthority: Account\n source: Account\n tokenAmount: String\n }\n\n \"\"\"\n SplToken: ApproveChecked instruction\n \"\"\"\n type SplTokenApproveCheckedInstruction implements TransactionInstruction {\n programId: Address\n delegate: Account\n mint: Account\n multisigOwner: Account\n owner: Account\n source: Account\n tokenAmount: String\n }\n\n \"\"\"\n SplToken: MintToChecked instruction\n \"\"\"\n type SplTokenMintToCheckedInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n authority: Account\n mint: Account\n mintAuthority: Account\n multisigMintAuthority: Account\n tokenAmount: String\n }\n\n \"\"\"\n SplToken: BurnChecked instruction\n \"\"\"\n type SplTokenBurnCheckedInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n authority: Account\n mint: Account\n multisigAuthority: Account\n tokenAmount: String\n }\n\n \"\"\"\n SplToken: SyncNative instruction\n \"\"\"\n type SplTokenSyncNativeInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n }\n\n \"\"\"\n SplToken: GetAccountDataSize instruction\n \"\"\"\n type SplTokenGetAccountDataSizeInstruction implements TransactionInstruction {\n programId: Address\n extensionTypes: [String]\n mint: Account\n }\n\n \"\"\"\n SplToken: InitializeImmutableOwner instruction\n \"\"\"\n type SplTokenInitializeImmutableOwnerInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n }\n\n \"\"\"\n SplToken: AmountToUiAmount instruction\n \"\"\"\n type SplTokenAmountToUiAmountInstruction implements TransactionInstruction {\n programId: Address\n amount: String\n mint: Account\n }\n\n \"\"\"\n SplToken: UiAmountToAmount instruction\n \"\"\"\n type SplTokenUiAmountToAmountInstruction implements TransactionInstruction {\n programId: Address\n mint: Account\n uiAmount: String\n }\n\n \"\"\"\n SplToken: InitializeMintCloseAuthority instruction\n \"\"\"\n type SplTokenInitializeMintCloseAuthorityInstruction implements TransactionInstruction {\n programId: Address\n mint: Account\n newAuthority: Account\n }\n\n # TODO: Extensions!\n # - TransferFeeExtension\n # - ConfidentialTransferFeeExtension\n # - DefaultAccountStateExtension\n # - Reallocate\n # - MemoTransferExtension\n # - CreateNativeMint\n # - InitializeNonTransferableMint\n # - InterestBearingMintExtension\n # - CpiGuardExtension\n # - InitializePermanentDelegate\n # - TransferHookExtension\n # - ConfidentialTransferFeeExtension\n # - WithdrawExcessLamports\n # - MetadataPointerExtension\n\n type Lockup {\n custodian: Account\n epoch: BigInt\n unixTimestamp: BigInt\n }\n\n \"\"\"\n Stake: Initialize instruction\n \"\"\"\n type StakeInitializeInstructionDataAuthorized {\n staker: Account\n withdrawer: Account\n }\n type StakeInitializeInstruction implements TransactionInstruction {\n programId: Address\n authorized: StakeInitializeInstructionDataAuthorized\n lockup: Lockup\n rentSysvar: Account\n stakeAccount: Account\n }\n\n \"\"\"\n Stake: Authorize instruction\n \"\"\"\n type StakeAuthorizeInstruction implements TransactionInstruction {\n programId: Address\n authority: Account\n authorityType: String\n clockSysvar: Account\n custodian: Account\n newAuthority: Account\n stakeAccount: Account\n }\n\n \"\"\"\n Stake: DelegateStake instruction\n \"\"\"\n type StakeDelegateStakeInstruction implements TransactionInstruction {\n programId: Address\n clockSysvar: Account\n stakeAccount: Account\n stakeAuthority: Account\n stakeConfigAccount: Account\n stakeHistorySysvar: Account\n voteAccount: Account\n }\n\n \"\"\"\n Stake: Split instruction\n \"\"\"\n type StakeSplitInstruction implements TransactionInstruction {\n programId: Address\n lamports: BigInt\n newSplitAccount: Account\n stakeAccount: Account\n stakeAuthority: Account\n }\n\n \"\"\"\n Stake: Withdraw instruction\n \"\"\"\n type StakeWithdrawInstruction implements TransactionInstruction {\n programId: Address\n clockSysvar: Account\n destination: Account\n lamports: BigInt\n stakeAccount: Account\n withdrawAuthority: Account\n }\n\n \"\"\"\n Stake: Deactivate instruction\n \"\"\"\n type StakeDeactivateInstruction implements TransactionInstruction {\n programId: Address\n clockSysvar: Account\n stakeAccount: Account\n stakeAuthority: Account\n }\n\n \"\"\"\n Stake: SetLockup instruction\n \"\"\"\n type StakeSetLockupInstruction implements TransactionInstruction {\n programId: Address\n custodian: Account\n lockup: Lockup\n stakeAccount: Account\n }\n\n \"\"\"\n Stake: Merge instruction\n \"\"\"\n type StakeMergeInstruction implements TransactionInstruction {\n programId: Address\n clockSysvar: Account\n destination: Account\n source: Account\n stakeAuthority: Account\n stakeHistorySysvar: Account\n }\n\n \"\"\"\n Stake: AuthorizeWithSeed instruction\n \"\"\"\n type StakeAuthorizeWithSeedInstruction implements TransactionInstruction {\n programId: Address\n authorityBase: Account\n authorityOwner: Account\n authoritySeed: String\n authorityType: String\n clockSysvar: Account\n custodian: Account\n newAuthorized: Account\n stakeAccount: Account\n }\n\n \"\"\"\n Stake: InitializeChecked instruction\n \"\"\"\n type StakeInitializeCheckedInstructionDataAuthorized {\n staker: Account\n withdrawer: Account\n }\n type StakeInitializeCheckedInstruction implements TransactionInstruction {\n programId: Address\n authorized: StakeInitializeCheckedInstructionDataAuthorized\n lockup: Lockup\n rentSysvar: Account\n stakeAccount: Account\n }\n\n \"\"\"\n Stake: AuthorizeChecked instruction\n \"\"\"\n type StakeAuthorizeCheckedInstruction implements TransactionInstruction {\n programId: Address\n authority: Account\n authorityType: String\n clockSysvar: Account\n custodian: Account\n newAuthority: Account\n stakeAccount: Account\n }\n\n \"\"\"\n Stake: AuthorizeCheckedWithSeed instruction\n \"\"\"\n type StakeAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {\n programId: Address\n authorityBase: Account\n authorityOwner: Account\n authoritySeed: String\n authorityType: String\n clockSysvar: Account\n custodian: Account\n newAuthorized: Account\n stakeAccount: Account\n }\n\n \"\"\"\n Stake: SetLockupChecked instruction\n \"\"\"\n type StakeSetLockupCheckedInstruction implements TransactionInstruction {\n programId: Address\n custodian: Account\n lockup: Lockup\n stakeAccount: Account\n }\n\n \"\"\"\n Stake: DeactivateDelinquent instruction\n \"\"\"\n type StakeDeactivateDelinquentInstruction implements TransactionInstruction {\n programId: Address\n referenceVoteAccount: Account\n stakeAccount: Account\n voteAccount: Account\n }\n\n \"\"\"\n Stake: Redelegate instruction\n \"\"\"\n type StakeRedelegateInstruction implements TransactionInstruction {\n programId: Address\n newStakeAccount: Account\n stakeAccount: Account\n stakeAuthority: Account\n stakeConfigAccount: Account\n voteAccount: Account\n }\n\n \"\"\"\n System: CreateAccount instruction\n \"\"\"\n type CreateAccountInstruction implements TransactionInstruction {\n programId: Address\n lamports: BigInt\n newAccount: Account\n owner: Account\n source: Account\n space: BigInt\n }\n\n \"\"\"\n System: Assign instruction\n \"\"\"\n type AssignInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n owner: Account\n }\n\n \"\"\"\n System: Transfer instruction\n \"\"\"\n type TransferInstruction implements TransactionInstruction {\n programId: Address\n destination: Account\n lamports: BigInt\n source: Account\n }\n\n \"\"\"\n System: CreateAccountWithSeed instruction\n \"\"\"\n type CreateAccountWithSeedInstruction implements TransactionInstruction {\n programId: Address\n base: Account\n lamports: BigInt\n owner: Account\n seed: String\n space: BigInt\n }\n\n \"\"\"\n System: AdvanceNonceAccount instruction\n \"\"\"\n type AdvanceNonceAccountInstruction implements TransactionInstruction {\n programId: Address\n nonceAccount: Account\n nonceAuthority: Account\n recentBlockhashesSysvar: Account\n }\n\n \"\"\"\n System: WithdrawNonceAccount instruction\n \"\"\"\n type WithdrawNonceAccountInstruction implements TransactionInstruction {\n programId: Address\n destination: Account\n lamports: BigInt\n nonceAccount: Account\n nonceAuthority: Account\n recentBlockhashesSysvar: Account\n rentSysvar: Account\n }\n\n \"\"\"\n System: InitializeNonceAccount instruction\n \"\"\"\n type InitializeNonceAccountInstruction implements TransactionInstruction {\n programId: Address\n nonceAccount: Account\n nonceAuthority: Account\n recentBlockhashesSysvar: Account\n rentSysvar: Account\n }\n\n \"\"\"\n System: AuthorizeNonceAccount instruction\n \"\"\"\n type AuthorizeNonceAccountInstruction implements TransactionInstruction {\n programId: Address\n newAuthorized: Account\n nonceAccount: Account\n nonceAuthority: Account\n }\n\n \"\"\"\n System: UpgradeNonceAccount instruction\n \"\"\"\n type UpgradeNonceAccountInstruction implements TransactionInstruction {\n programId: Address\n nonceAccount: Account\n nonceAuthority: Account\n }\n\n \"\"\"\n System: Allocate instruction\n \"\"\"\n type AllocateInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n space: BigInt\n }\n\n \"\"\"\n System: AllocateWithSeed instruction\n \"\"\"\n type AllocateWithSeedInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n base: Address\n owner: Account\n seed: String\n space: BigInt\n }\n\n \"\"\"\n System: AssignWithSeed instruction\n \"\"\"\n type AssignWithSeedInstruction implements TransactionInstruction {\n programId: Address\n account: Account\n base: Address\n owner: Account\n seed: String\n }\n\n \"\"\"\n System: TransferWithSeed instruction\n \"\"\"\n type TransferWithSeedInstruction implements TransactionInstruction {\n programId: Address\n destination: Account\n lamports: BigInt\n source: Account\n sourceBase: Address\n sourceOwner: Account\n sourceSeed: String\n }\n\n \"\"\"\n Vote: InitializeAccount instruction\n \"\"\"\n type VoteInitializeAccountInstruction implements TransactionInstruction {\n programId: Address\n authorizedVoter: Account\n authorizedWithdrawer: Account\n clockSysvar: Account\n commission: BigInt # FIXME:*\n node: Account\n rentSysvar: Account\n voteAccount: Account\n }\n\n \"\"\"\n Vote: Authorize instruction\n \"\"\"\n type VoteAuthorizeInstruction implements TransactionInstruction {\n programId: Address\n authority: Account\n authorityType: String\n clockSysvar: Account\n newAuthority: Account\n voteAccount: Account\n }\n\n \"\"\"\n Vote: AuthorizeWithSeed instruction\n \"\"\"\n type VoteAuthorizeWithSeedInstruction implements TransactionInstruction {\n programId: Address\n authorityBaseKey: String\n authorityOwner: Account\n authoritySeed: String\n authorityType: String\n clockSysvar: Account\n newAuthority: Account\n voteAccount: Account\n }\n\n \"\"\"\n Vote: AuthorizeCheckedWithSeed instruction\n \"\"\"\n type VoteAuthorizeCheckedWithSeedInstruction implements TransactionInstruction {\n programId: Address\n authorityBaseKey: String\n authorityOwner: Account\n authoritySeed: String\n authorityType: String\n clockSysvar: Account\n newAuthority: Account\n voteAccount: Account\n }\n\n type Vote {\n hash: String\n slots: [BigInt]\n timestamp: BigInt\n }\n\n \"\"\"\n Vote: Vote instruction\n \"\"\"\n type VoteVoteInstruction implements TransactionInstruction {\n programId: Address\n clockSysvar: Account\n slotHashesSysvar: Account\n vote: Vote\n voteAccount: Account\n voteAuthority: Account\n }\n\n type VoteStateUpdateLockout {\n confirmationCount: BigInt # FIXME:*\n slot: BigInt\n }\n type VoteStateUpdate {\n hash: String\n lockouts: [VoteStateUpdateLockout]\n root: BigInt\n timestamp: BigInt\n }\n\n \"\"\"\n Vote: UpdateVoteState instruction\n \"\"\"\n type VoteUpdateVoteStateInstruction implements TransactionInstruction {\n programId: Address\n hash: String\n voteAccount: Account\n voteAuthority: Account\n voteStateUpdate: VoteStateUpdate\n }\n\n \"\"\"\n Vote: UpdateVoteStateSwitch instruction\n \"\"\"\n type VoteUpdateVoteStateSwitchInstruction implements TransactionInstruction {\n programId: Address\n hash: String\n voteAccount: Account\n voteAuthority: Account\n voteStateUpdate: VoteStateUpdate\n }\n\n \"\"\"\n Vote: CompactUpdateVoteState instruction\n \"\"\"\n type VoteCompactUpdateVoteStateInstruction implements TransactionInstruction {\n programId: Address\n hash: String\n voteAccount: Account\n voteAuthority: Account\n voteStateUpdate: VoteStateUpdate\n }\n\n \"\"\"\n Vote: CompactUpdateVoteStateSwitch instruction\n \"\"\"\n type VoteCompactUpdateVoteStateSwitchInstruction implements TransactionInstruction {\n programId: Address\n hash: String\n voteAccount: Account\n voteAuthority: Account\n voteStateUpdate: VoteStateUpdate\n }\n\n \"\"\"\n Vote: Withdraw instruction\n \"\"\"\n type VoteWithdrawInstruction implements TransactionInstruction {\n programId: Address\n destination: Account\n lamports: BigInt\n voteAccount: Account\n withdrawAuthority: Account\n }\n\n \"\"\"\n Vote: UpdateValidatorIdentity instruction\n \"\"\"\n type VoteUpdateValidatorIdentityInstruction implements TransactionInstruction {\n programId: Address\n newValidatorIdentity: Account\n voteAccount: Account\n withdrawAuthority: Account\n }\n\n \"\"\"\n Vote: UpdateCommission instruction\n \"\"\"\n type VoteUpdateCommissionInstruction implements TransactionInstruction {\n programId: Address\n commission: BigInt # FIXME:*\n voteAccount: Account\n withdrawAuthority: Account\n }\n\n \"\"\"\n Vote: VoteSwitch instruction\n \"\"\"\n type VoteVoteSwitchInstruction implements TransactionInstruction {\n programId: Address\n clockSysvar: Account\n hash: String\n slotHashesSysvar: Account\n vote: Vote\n voteAccount: Account\n voteAuthority: Account\n }\n\n \"\"\"\n Vote: AuthorizeChecked instruction\n \"\"\"\n type VoteAuthorizeCheckedInstruction implements TransactionInstruction {\n programId: Address\n authority: Account\n authorityType: String\n clockSysvar: Account\n newAuthority: Account\n voteAccount: Account\n }\n";
2
+ //# sourceMappingURL=instruction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/schema/instruction.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,mBAAmB,813BAkhC/B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const rootTypeDefs = "\n type Query {\n account(address: Address!, commitment: Commitment, minContextSlot: Slot): Account\n block(slot: Slot!, commitment: CommitmentWithoutProcessed): Block\n programAccounts(\n programAddress: Address!\n commitment: Commitment\n filters: [ProgramAccountsFilter]\n minContextSlot: Slot\n ): [Account]\n transaction(signature: Signature!, commitment: CommitmentWithoutProcessed): Transaction\n }\n\n schema {\n query: Query\n }\n";
2
+ //# sourceMappingURL=root.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../src/schema/root.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,8hBAgBxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const transactionTypeDefs = "\n type TransactionStatusOk {\n Ok: String\n }\n type TransactionStatusErr {\n Err: String\n }\n union TransactionStatus = TransactionStatusOk | TransactionStatusErr\n\n type TransactionLoadedAddresses {\n readonly: [String]\n writable: [String]\n }\n\n type TransactionInnerInstruction {\n index: Int\n instructions: [TransactionInstruction]\n }\n\n type TransactionMeta {\n computeUnitsConsumed: BigInt\n err: String\n fee: BigInt\n innerInstructions: [TransactionInnerInstruction]\n loadedAddresses: TransactionLoadedAddresses\n logMessages: [String]\n postBalances: [BigInt]\n postTokenBalances: [TokenBalance]\n preBalances: [BigInt]\n preTokenBalances: [TokenBalance]\n returnData: ReturnData\n rewards: [Reward]\n status: TransactionStatus\n }\n\n type TransactionMessageAccountKey {\n pubkey: Address\n signer: Boolean\n source: String\n writable: Boolean\n }\n\n type TransactionMessageAddressTableLookup {\n accountKey: Address\n readableIndexes: [Int]\n writableIndexes: [Int]\n }\n\n type TransactionMessageHeader {\n numReadonlySignedAccounts: Int\n numReadonlyUnsignedAccounts: Int\n numRequiredSignatures: Int\n }\n\n type TransactionMessage {\n accountKeys: [TransactionMessageAccountKey]\n addressTableLookups: [TransactionMessageAddressTableLookup]\n header: TransactionMessageHeader\n instructions: [TransactionInstruction]\n recentBlockhash: String\n }\n\n \"\"\"\n A Solana transaction\n \"\"\"\n type Transaction {\n blockTime: BigInt\n data(encoding: TransactionEncoding!): String\n message: TransactionMessage\n meta: TransactionMeta\n signatures: [Signature]\n slot: Slot\n version: String\n }\n";
2
+ //# sourceMappingURL=transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/schema/transaction.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,mBAAmB,g8DA0E/B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const typeTypeDefs = "\n enum AccountEncoding {\n BASE_58\n BASE_64\n BASE_64_ZSTD\n }\n\n scalar Address\n\n scalar Base58EncodedBytes\n\n scalar Base64EncodedBytes\n\n scalar Base64ZstdEncodedBytes\n\n scalar BigInt\n\n enum Commitment {\n CONFIRMED\n FINALIZED\n PROCESSED\n }\n\n enum CommitmentWithoutProcessed {\n CONFIRMED\n FINALIZED\n }\n\n input DataSlice {\n offset: Int!\n length: Int!\n }\n\n input ProgramAccountsFilter {\n bytes: BigInt\n dataSize: BigInt\n encoding: AccountEncoding\n offset: BigInt\n }\n\n type ReturnData {\n data: Base64EncodedBytes\n programId: Address\n }\n\n type Reward {\n commission: Int\n lamports: BigInt\n postBalance: BigInt\n pubkey: Address\n rewardType: String\n }\n\n scalar Signature\n\n scalar Slot\n\n type TokenAmount {\n amount: String\n decimals: Int\n uiAmount: BigInt\n uiAmountString: String\n }\n\n type TokenBalance {\n accountIndex: Int\n mint: Account\n owner: Account\n programId: Address\n uiTokenAmount: TokenAmount\n }\n\n enum TransactionEncoding {\n BASE_58\n BASE_64\n }\n";
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/schema/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,kzCA4ExB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/rpc-graphql",
3
- "version": "2.0.0-experimental.eb5fd16",
3
+ "version": "2.0.0-experimental.eb951b0",
4
4
  "description": "A library for resolving GraphQl query calls to the Solana JSON RPC API",
5
5
  "exports": {
6
6
  "browser": {
@@ -46,33 +46,11 @@
46
46
  "maintained node versions"
47
47
  ],
48
48
  "dependencies": {
49
- "graphql": "^16.8.0"
50
- },
51
- "devDependencies": {
52
- "@solana/eslint-config-solana": "^1.0.2",
53
- "@swc/jest": "^0.2.28",
54
- "@types/jest": "^29.5.3",
55
- "@typescript-eslint/eslint-plugin": "^6.3.0",
56
- "@typescript-eslint/parser": "^6.3.0",
57
- "agadoo": "^3.0.0",
58
- "eslint": "^8.45.0",
59
- "eslint-plugin-jest": "^27.2.3",
60
- "eslint-plugin-sort-keys-fix": "^1.1.2",
61
- "jest": "^29.6.1",
62
- "jest-environment-jsdom": "^29.6.2",
63
- "jest-fetch-mock-fork": "^3.0.4",
64
- "jest-runner-eslint": "^2.1.0",
65
- "jest-runner-prettier": "^1.0.0",
66
- "prettier": "^2.8",
67
- "tsup": "7.2.0",
68
- "typescript": "^5.1.6",
69
- "version-from-git": "^1.1.1",
70
- "@solana/addresses": "2.0.0-experimental.eb5fd16",
71
- "@solana/rpc-core": "2.0.0-experimental.eb5fd16",
72
- "@solana/rpc-transport": "2.0.0-experimental.eb5fd16",
73
- "build-scripts": "0.0.0",
74
- "test-config": "0.0.0",
75
- "tsconfig": "0.0.0"
49
+ "@graphql-tools/schema": "^10.0.3",
50
+ "dataloader": "^2.2.2",
51
+ "graphql": "^16.8.0",
52
+ "json-stable-stringify": "^1.1.1",
53
+ "@solana/codecs-strings": "2.0.0-experimental.eb951b0"
76
54
  },
77
55
  "bundlewatch": {
78
56
  "defaultCompression": "gzip",
@@ -84,17 +62,18 @@
84
62
  },
85
63
  "scripts": {
86
64
  "compile:js": "tsup --config build-scripts/tsup.config.package.ts",
87
- "compile:typedefs": "tsc -p ./tsconfig.declarations.json",
88
- "dev": "jest -c node_modules/test-config/jest-dev.config.ts --globalSetup test-config/test-validator-setup.js --globalTeardown test-config/test-validator-teardown.js --rootDir . --watch",
89
- "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
90
- "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
91
- "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
92
- "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
65
+ "compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/@solana/build-scripts/add-js-extension-to-types.mjs",
66
+ "dev": "jest -c node_modules/@solana/test-config/jest-dev.config.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --watch",
67
+ "publish-impl": "npm view $npm_package_name@$npm_package_version > /dev/null 2>&1 || pnpm publish --tag experimental --access public --no-git-checks",
68
+ "publish-packages": "pnpm prepublishOnly && pnpm publish-impl",
69
+ "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
70
+ "test:lint": "jest -c node_modules/@solana/test-config/jest-lint.config.ts --rootDir . --silent",
71
+ "test:prettier": "jest -c node_modules/@solana/test-config/jest-prettier.config.ts --rootDir . --silent",
93
72
  "test:treeshakability:browser": "agadoo dist/index.browser.js",
94
73
  "test:treeshakability:native": "agadoo dist/index.native.js",
95
74
  "test:treeshakability:node": "agadoo dist/index.node.js",
96
75
  "test:typecheck": "tsc --noEmit",
97
- "test:unit:browser": "jest -c node_modules/test-config/jest-unit.config.browser.ts --globalSetup test-config/test-validator-setup.js --globalTeardown test-config/test-validator-teardown.js --rootDir . --silent --passWithNoTests",
98
- "test:unit:node": "jest -c node_modules/test-config/jest-unit.config.node.ts --globalSetup test-config/test-validator-setup.js --globalTeardown test-config/test-validator-teardown.js --rootDir . --silent --passWithNoTests"
76
+ "test:unit:browser": "jest -c node_modules/@solana/test-config/jest-unit.config.browser.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent",
77
+ "test:unit:node": "jest -c node_modules/@solana/test-config/jest-unit.config.node.ts --globalSetup @solana/test-config/test-validator-setup.js --globalTeardown @solana/test-config/test-validator-teardown.js --rootDir . --silent"
99
78
  }
100
79
  }
@@ -1,7 +0,0 @@
1
- export interface GraphQLCache {
2
- flush(): void;
3
- get(key: string | bigint, variables: unknown): unknown | null;
4
- insert(key: string | bigint, variables: unknown, value: unknown): void;
5
- }
6
- export declare function createGraphQLCache(): GraphQLCache;
7
- //# sourceMappingURL=cache.d.ts.map
@@ -1,13 +0,0 @@
1
- import { SolanaRpcMethods } from '@solana/rpc-core';
2
- import { Rpc } from '@solana/rpc-transport/dist/types/json-rpc-types';
3
- import { graphql, GraphQLSchema, Source } from 'graphql';
4
- import { RpcGraphQLContext } from './context';
5
- export interface RpcGraphQL {
6
- context: RpcGraphQLContext;
7
- query(source: string | Source, variableValues?: {
8
- readonly [variable: string]: unknown;
9
- }): ReturnType<typeof graphql>;
10
- schema: GraphQLSchema;
11
- }
12
- export declare function createRpcGraphQL(rpc: Rpc<SolanaRpcMethods>): RpcGraphQL;
13
- //# sourceMappingURL=rpc.d.ts.map