@solana/rpc-graphql 2.0.0-experimental.dacecb7 → 2.0.0-experimental.dd2096e

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 (83) hide show
  1. package/README.md +1088 -30
  2. package/dist/index.browser.cjs +2689 -1970
  3. package/dist/index.browser.cjs.map +1 -1
  4. package/dist/index.browser.js +2686 -1972
  5. package/dist/index.browser.js.map +1 -1
  6. package/dist/index.native.js +2657 -1939
  7. package/dist/index.native.js.map +1 -1
  8. package/dist/index.node.cjs +2660 -1937
  9. package/dist/index.node.cjs.map +1 -1
  10. package/dist/index.node.js +2657 -1939
  11. package/dist/index.node.js.map +1 -1
  12. package/dist/types/context.d.ts +5 -19
  13. package/dist/types/context.d.ts.map +1 -0
  14. package/dist/types/index.d.ts +9 -1
  15. package/dist/types/index.d.ts.map +1 -0
  16. package/dist/types/loaders/account.d.ts +5 -0
  17. package/dist/types/loaders/account.d.ts.map +1 -0
  18. package/dist/types/loaders/block.d.ts +5 -0
  19. package/dist/types/loaders/block.d.ts.map +1 -0
  20. package/dist/types/loaders/index.d.ts +6 -0
  21. package/dist/types/loaders/index.d.ts.map +1 -0
  22. package/dist/types/loaders/loader.d.ts +63 -0
  23. package/dist/types/loaders/loader.d.ts.map +1 -0
  24. package/dist/types/loaders/program-accounts.d.ts +5 -0
  25. package/dist/types/loaders/program-accounts.d.ts.map +1 -0
  26. package/dist/types/loaders/transaction.d.ts +5 -0
  27. package/dist/types/loaders/transaction.d.ts.map +1 -0
  28. package/dist/types/resolvers/account.d.ts +114 -0
  29. package/dist/types/resolvers/account.d.ts.map +1 -0
  30. package/dist/types/resolvers/block.d.ts +20 -0
  31. package/dist/types/resolvers/block.d.ts.map +1 -0
  32. package/dist/types/resolvers/index.d.ts +3 -0
  33. package/dist/types/resolvers/index.d.ts.map +1 -0
  34. package/dist/types/resolvers/instruction.d.ts +948 -0
  35. package/dist/types/resolvers/instruction.d.ts.map +1 -0
  36. package/dist/types/resolvers/program-accounts.d.ts +10 -0
  37. package/dist/types/resolvers/program-accounts.d.ts.map +1 -0
  38. package/dist/types/resolvers/resolve-info.d.ts +3 -0
  39. package/dist/types/resolvers/resolve-info.d.ts.map +1 -0
  40. package/dist/types/resolvers/root.d.ts +3 -0
  41. package/dist/types/resolvers/root.d.ts.map +1 -0
  42. package/dist/types/resolvers/scalars.d.ts +44 -0
  43. package/dist/types/resolvers/scalars.d.ts.map +1 -0
  44. package/dist/types/resolvers/transaction.d.ts +19 -0
  45. package/dist/types/resolvers/transaction.d.ts.map +1 -0
  46. package/dist/types/resolvers/types.d.ts +26 -0
  47. package/dist/types/resolvers/types.d.ts.map +1 -0
  48. package/dist/types/schema/account.d.ts +2 -0
  49. package/dist/types/schema/account.d.ts.map +1 -0
  50. package/dist/types/schema/block.d.ts +2 -0
  51. package/dist/types/schema/block.d.ts.map +1 -0
  52. package/dist/types/schema/common/inputs.d.ts +2 -0
  53. package/dist/types/schema/common/inputs.d.ts.map +1 -0
  54. package/dist/types/schema/common/scalars.d.ts +2 -0
  55. package/dist/types/schema/common/scalars.d.ts.map +1 -0
  56. package/dist/types/schema/common/types.d.ts +2 -0
  57. package/dist/types/schema/common/types.d.ts.map +1 -0
  58. package/dist/types/schema/index.d.ts +2 -0
  59. package/dist/types/schema/index.d.ts.map +1 -0
  60. package/dist/types/schema/instruction.d.ts +2 -0
  61. package/dist/types/schema/instruction.d.ts.map +1 -0
  62. package/dist/types/schema/root.d.ts +2 -0
  63. package/dist/types/schema/root.d.ts.map +1 -0
  64. package/dist/types/schema/transaction.d.ts +2 -0
  65. package/dist/types/schema/transaction.d.ts.map +1 -0
  66. package/package.json +21 -16
  67. package/dist/types/cache.d.ts +0 -7
  68. package/dist/types/rpc.d.ts +0 -13
  69. package/dist/types/schema/account/index.d.ts +0 -3
  70. package/dist/types/schema/account/query.d.ts +0 -38
  71. package/dist/types/schema/account/types.d.ts +0 -5
  72. package/dist/types/schema/block/index.d.ts +0 -3
  73. package/dist/types/schema/block/query.d.ts +0 -42
  74. package/dist/types/schema/block/types.d.ts +0 -7
  75. package/dist/types/schema/inputs.d.ts +0 -9
  76. package/dist/types/schema/picks.d.ts +0 -36
  77. package/dist/types/schema/program-accounts/index.d.ts +0 -2
  78. package/dist/types/schema/program-accounts/query.d.ts +0 -47
  79. package/dist/types/schema/program-accounts/types.d.ts +0 -3
  80. package/dist/types/schema/scalars.d.ts +0 -3
  81. package/dist/types/schema/transaction/index.d.ts +0 -3
  82. package/dist/types/schema/transaction/query.d.ts +0 -33
  83. package/dist/types/schema/transaction/types.d.ts +0 -12
@@ -0,0 +1 @@
1
+ {"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/resolvers/instruction.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCA8VE;YAAE,WAAW,EAAE,MAAM,CAAC;YAAC,eAAe,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4WlF,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { Address } from '@solana/addresses';
2
+ import type { GraphQLResolveInfo } from 'graphql';
3
+ import { RpcGraphQLContext } from '../context.js';
4
+ import { ProgramAccountsLoaderArgs } from '../loaders/index.js';
5
+ export declare function resolveProgramAccounts(fieldName?: string): (parent: {
6
+ [x: string]: Address;
7
+ }, args: ProgramAccountsLoaderArgs, context: RpcGraphQLContext, info: GraphQLResolveInfo | undefined) => Promise<any[] | {
8
+ programAddress: Address;
9
+ } | null>;
10
+ //# 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,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAIvD,wBAAgB,sBAAsB,CAAC,SAAS,CAAC,EAAE,MAAM;;SAG3C,yBAAyB,WACtB,iBAAiB,QACpB,kBAAkB,GAAG,SAAS;;UAoB3C"}
@@ -0,0 +1,3 @@
1
+ import { GraphQLResolveInfo } from 'graphql';
2
+ export declare function onlyPresentFieldRequested(fieldName: string, info?: GraphQLResolveInfo): boolean;
3
+ //# sourceMappingURL=resolve-info.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-info.d.ts","sourceRoot":"","sources":["../../../src/resolvers/resolve-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAc/F"}
@@ -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,44 @@
1
+ import { Kind } from 'graphql';
2
+ export declare const scalarResolvers: {
3
+ Address: {
4
+ __parseLiteral(ast: {
5
+ kind: Kind;
6
+ value: string | number | bigint | boolean;
7
+ }): string | null;
8
+ __parseValue(value: string): string;
9
+ __serialize(value: string): string;
10
+ };
11
+ Base58EncodedBytes: {
12
+ __parseLiteral(ast: {
13
+ kind: Kind;
14
+ value: string | number | bigint | boolean;
15
+ }): string | null;
16
+ __parseValue(value: string): string;
17
+ __serialize(value: string): string;
18
+ };
19
+ Base64EncodedBytes: {
20
+ __parseLiteral(ast: {
21
+ kind: Kind;
22
+ value: string | number | bigint | boolean;
23
+ }): string | null;
24
+ __parseValue(value: string): string;
25
+ __serialize(value: string): string;
26
+ };
27
+ Base64ZstdEncodedBytes: {
28
+ __parseLiteral(ast: {
29
+ kind: Kind;
30
+ value: string | number | bigint | boolean;
31
+ }): string | null;
32
+ __parseValue(value: string): string;
33
+ __serialize(value: string): string;
34
+ };
35
+ BigInt: {
36
+ __parseLiteral(ast: {
37
+ kind: Kind;
38
+ value: string | number | bigint | boolean;
39
+ }): bigint | null;
40
+ __parseValue(value: string): bigint;
41
+ __serialize(value: string): bigint;
42
+ };
43
+ };
44
+ //# sourceMappingURL=scalars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalars.d.ts","sourceRoot":"","sources":["../../../src/resolvers/scalars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAiB/B,eAAO,MAAM,eAAe;;4BAdJ;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;;;4BAWV;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;;CAIzC,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { Signature } from '@solana/keys';
2
+ import type { GraphQLResolveInfo } from 'graphql';
3
+ import { RpcGraphQLContext } from '../context.js';
4
+ import { TransactionLoaderArgs } from '../loaders/index.js';
5
+ export declare function transformLoadedTransaction({ encoding, transaction, }: {
6
+ encoding: TransactionLoaderArgs['encoding'];
7
+ transaction: any;
8
+ }): any;
9
+ export declare function resolveTransaction(fieldName?: string): (parent: {
10
+ [x: string]: Signature;
11
+ }, args: TransactionLoaderArgs, context: RpcGraphQLContext, info: GraphQLResolveInfo | undefined) => Promise<any>;
12
+ export declare const transactionResolvers: {
13
+ Transaction: {
14
+ __resolveType(transaction: {
15
+ encoding: string;
16
+ }): "TransactionBase58" | "TransactionBase64" | "TransactionParsed";
17
+ };
18
+ };
19
+ //# 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,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAC;AAoCnD,wBAAgB,0BAA0B,CAAC,EACvC,QAAuB,EACvB,WAAW,GACd,EAAE;IACC,QAAQ,EAAE,qBAAqB,CAAC,UAAU,CAAC,CAAC;IAE5C,WAAW,EAAE,GAAG,CAAC;CACpB,OAWA;AAED,wBAAgB,kBAAkB,CAAC,SAAS,CAAC,EAAE,MAAM;;SAGvC,qBAAqB,WAClB,iBAAiB,QACpB,kBAAkB,GAAG,SAAS,kBA8B3C;AAED,eAAO,MAAM,oBAAoB;;mCAEE;YAAE,QAAQ,EAAE,MAAM,CAAA;SAAE;;CAWtD,CAAC"}
@@ -0,0 +1,26 @@
1
+ export declare const commonTypeResolvers: {
2
+ AccountEncoding: {
3
+ BASE_58: string;
4
+ BASE_64: string;
5
+ BASE_64_ZSTD: string;
6
+ PARSED: string;
7
+ };
8
+ TokenBalance: {
9
+ mint: (parent: {
10
+ [x: string]: import("@solana/addresses").Address;
11
+ }, args: import("../loaders").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<any>;
12
+ owner: (parent: {
13
+ [x: string]: import("@solana/addresses").Address;
14
+ }, args: import("../loaders").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<any>;
15
+ };
16
+ TransactionEncoding: {
17
+ BASE_58: string;
18
+ BASE_64: string;
19
+ PARSED: string;
20
+ };
21
+ TransactionVersion: {
22
+ LEGACY: string;
23
+ ZERO: number;
24
+ };
25
+ };
26
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/types.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;CAoB/B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const accountTypeDefs = "\n \"\"\"\n Account interface\n \"\"\"\n interface Account {\n address: Address\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n }\n\n \"\"\"\n An account with base58 encoded data\n \"\"\"\n type AccountBase58 implements Account {\n address: Address\n data: Base58EncodedBytes\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n }\n\n \"\"\"\n An account with base64 encoded data\n \"\"\"\n type AccountBase64 implements Account {\n address: Address\n data: Base64EncodedBytes\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n }\n\n \"\"\"\n An account with base64+zstd encoded data\n \"\"\"\n type AccountBase64Zstd implements Account {\n address: Address\n data: Base64ZstdEncodedBytes\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 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 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 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 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 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 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,q3JAqM3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const blockTypeDefs = "\n type TransactionMetaForAccounts {\n err: String\n fee: BigInt\n postBalances: [BigInt]\n postTokenBalances: [TokenBalance]\n preBalances: [BigInt]\n preTokenBalances: [TokenBalance]\n status: TransactionStatus\n }\n\n type TransactionDataForAccounts {\n accountKeys: [Address]\n signatures: [String]\n }\n\n type BlockTransactionAccounts {\n meta: TransactionMetaForAccounts\n data: TransactionDataForAccounts\n version: String\n }\n\n \"\"\"\n Block interface\n \"\"\"\n interface Block {\n blockhash: String\n blockHeight: BigInt\n blockTime: BigInt\n parentSlot: BigInt\n previousBlockhash: String\n rewards: [Reward]\n transactionDetails: String\n }\n\n \"\"\"\n A block with account transaction details\n \"\"\"\n type BlockWithAccounts implements Block {\n blockhash: String\n blockHeight: BigInt\n blockTime: BigInt\n parentSlot: BigInt\n previousBlockhash: String\n rewards: [Reward]\n transactions: [BlockTransactionAccounts]\n transactionDetails: String\n }\n\n \"\"\"\n A block with full transaction details\n \"\"\"\n type BlockWithFull implements Block {\n blockhash: String\n blockHeight: BigInt\n blockTime: BigInt\n parentSlot: BigInt\n previousBlockhash: String\n rewards: [Reward]\n transactions: [Transaction]\n transactionDetails: String\n }\n\n \"\"\"\n A block with no transaction details\n \"\"\"\n type BlockWithNone implements Block {\n blockhash: String\n blockHeight: BigInt\n blockTime: BigInt\n parentSlot: BigInt\n previousBlockhash: String\n rewards: [Reward]\n transactionDetails: String\n }\n\n \"\"\"\n A block with signature transaction details\n \"\"\"\n type BlockWithSignatures implements Block {\n blockhash: String\n blockHeight: BigInt\n blockTime: BigInt\n parentSlot: BigInt\n previousBlockhash: String\n rewards: [Reward]\n signatures: [String]\n transactionDetails: String\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,kuEAyFzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const inputTypeDefs = "\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";
2
+ //# sourceMappingURL=inputs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../../src/schema/common/inputs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,uOAYzB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const scalarTypeDefs = "\n scalar Address\n scalar Base58EncodedBytes\n scalar Base64EncodedBytes\n scalar Base64ZstdEncodedBytes\n scalar BigInt\n";
2
+ //# sourceMappingURL=scalars.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scalars.d.ts","sourceRoot":"","sources":["../../../../src/schema/common/scalars.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,+IAM1B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const commonTypeDefs = "\n enum AccountEncoding {\n BASE_58\n BASE_64\n BASE_64_ZSTD\n PARSED\n }\n\n enum BlockTransactionDetails {\n accounts\n full\n none\n signatures\n }\n\n enum Commitment {\n confirmed\n finalized\n processed\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 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 PARSED\n }\n\n enum TransactionVersion {\n LEGACY\n ZERO\n }\n";
2
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/schema/common/types.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,ghCA2D1B,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":"AASA,wBAAgB,2BAA2B,aAW1C"}
@@ -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: Address\n maxDataLen: BigInt\n payerAccount: Account\n programAccount: Account\n programDataAccount: Account\n rentSysvar: Address\n }\n\n \"\"\"\n BpfUpgradeableLoader: Upgrade instruction\n \"\"\"\n type BpfUpgradeableLoaderUpgradeInstruction implements TransactionInstruction {\n programId: Address\n authority: Account\n bufferAccount: Account\n clockSysvar: Address\n programAccount: Account\n programDataAccount: Account\n rentSysvar: Address\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: Address\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: Address\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: Address\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: Address\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: Address\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: Address\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: Address\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: Address\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: Address\n stakeAccount: Account\n stakeAuthority: Account\n stakeConfigAccount: Account\n stakeHistorySysvar: Address\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: Address\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: Address\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: Address\n destination: Account\n source: Account\n stakeAuthority: Account\n stakeHistorySysvar: Address\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: Address\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: Address\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: Address\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: Address\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: Address\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: Address\n rentSysvar: Address\n }\n\n \"\"\"\n System: InitializeNonceAccount instruction\n \"\"\"\n type InitializeNonceAccountInstruction implements TransactionInstruction {\n programId: Address\n nonceAccount: Account\n nonceAuthority: Account\n recentBlockhashesSysvar: Address\n rentSysvar: Address\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: Address\n commission: BigInt # FIXME:*\n node: Account\n rentSysvar: Address\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: Address\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: Address\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: Address\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: Address\n slotHashesSysvar: Address\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: Address\n hash: String\n slotHashesSysvar: Address\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: Address\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(\n address: String!\n commitment: Commitment\n dataSlice: DataSlice\n encoding: AccountEncoding\n minContextSlot: BigInt\n ): Account\n block(\n slot: BigInt!\n commitment: Commitment\n encoding: TransactionEncoding\n transactionDetails: BlockTransactionDetails\n ): Block\n programAccounts(\n programAddress: String!\n commitment: Commitment\n dataSlice: DataSlice\n encoding: AccountEncoding\n filters: [ProgramAccountsFilter]\n minContextSlot: BigInt\n ): [Account]\n transaction(signature: String!, commitment: Commitment, encoding: TransactionEncoding): 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,w2BA6BxB,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 Transaction interface\n \"\"\"\n interface Transaction {\n blockTime: BigInt\n meta: TransactionMeta\n slot: BigInt\n version: String\n }\n\n \"\"\"\n A transaction with base58 encoded data\n \"\"\"\n type TransactionBase58 implements Transaction {\n blockTime: BigInt\n data: Base58EncodedBytes\n meta: TransactionMeta\n slot: BigInt\n version: String\n }\n\n \"\"\"\n A transaction with base64 encoded data\n \"\"\"\n type TransactionBase64 implements Transaction {\n blockTime: BigInt\n data: Base64EncodedBytes\n meta: TransactionMeta\n slot: BigInt\n version: String\n }\n\n \"\"\"\n A transaction with JSON encoded data\n \"\"\"\n type TransactionDataParsed {\n message: TransactionMessage\n signatures: [String]\n }\n type TransactionParsed implements Transaction {\n blockTime: BigInt\n data: TransactionDataParsed\n meta: TransactionMeta\n slot: BigInt\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,guFA4G/B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/rpc-graphql",
3
- "version": "2.0.0-experimental.dacecb7",
3
+ "version": "2.0.0-experimental.dd2096e",
4
4
  "description": "A library for resolving GraphQl query calls to the Solana JSON RPC API",
5
5
  "exports": {
6
6
  "browser": {
@@ -46,31 +46,36 @@
46
46
  "maintained node versions"
47
47
  ],
48
48
  "dependencies": {
49
- "graphql": "^16.8.0"
49
+ "@graphql-tools/schema": "^10.0.0",
50
+ "dataloader": "^2.2.2",
51
+ "graphql": "^16.8.0",
52
+ "json-stable-stringify": "^1.1.0"
50
53
  },
51
54
  "devDependencies": {
52
55
  "@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
+ "@swc/jest": "^0.2.29",
57
+ "@types/jest": "^29.5.11",
58
+ "@typescript-eslint/eslint-plugin": "^6.13.2",
56
59
  "@typescript-eslint/parser": "^6.3.0",
57
60
  "agadoo": "^3.0.0",
58
61
  "eslint": "^8.45.0",
59
- "eslint-plugin-jest": "^27.2.3",
62
+ "eslint-plugin-jest": "^27.4.2",
60
63
  "eslint-plugin-sort-keys-fix": "^1.1.2",
61
- "jest": "^29.6.1",
62
- "jest-environment-jsdom": "^29.6.2",
64
+ "jest": "^29.7.0",
65
+ "jest-environment-jsdom": "^29.7.0",
63
66
  "jest-fetch-mock-fork": "^3.0.4",
64
- "jest-runner-eslint": "^2.1.0",
67
+ "jest-runner-eslint": "^2.1.2",
65
68
  "jest-runner-prettier": "^1.0.0",
66
- "prettier": "^2.8",
67
- "tsup": "7.2.0",
69
+ "prettier": "^3.1",
70
+ "tsup": "^8.0.1",
68
71
  "typescript": "^5.1.6",
69
72
  "version-from-git": "^1.1.1",
70
- "@solana/addresses": "2.0.0-experimental.dacecb7",
71
- "@solana/rpc-core": "2.0.0-experimental.dacecb7",
72
- "@solana/rpc-transport": "2.0.0-experimental.dacecb7",
73
- "@solana/transactions": "2.0.0-experimental.dacecb7",
73
+ "@solana/addresses": "2.0.0-experimental.dd2096e",
74
+ "@solana/keys": "2.0.0-experimental.dd2096e",
75
+ "@solana/rpc-core": "2.0.0-experimental.dd2096e",
76
+ "@solana/rpc-transport": "2.0.0-experimental.dd2096e",
77
+ "@solana/rpc-types": "2.0.0-experimental.dd2096e",
78
+ "@solana/transactions": "2.0.0-experimental.dd2096e",
74
79
  "build-scripts": "0.0.0",
75
80
  "test-config": "0.0.0",
76
81
  "tsconfig": "0.0.0"
@@ -85,7 +90,7 @@
85
90
  },
86
91
  "scripts": {
87
92
  "compile:js": "tsup --config build-scripts/tsup.config.package.ts",
88
- "compile:typedefs": "tsc -p ./tsconfig.declarations.json",
93
+ "compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/build-scripts/add-js-extension-to-types.mjs",
89
94
  "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",
90
95
  "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
91
96
  "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
@@ -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
@@ -1,3 +0,0 @@
1
- export * from './query';
2
- export * from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,38 +0,0 @@
1
- import { Base58EncodedAddress } from '@solana/addresses';
2
- import { Commitment } from '@solana/rpc-core';
3
- import { DataSlice, Slot } from '@solana/rpc-core/dist/types/rpc-methods/common';
4
- import { RpcGraphQLContext } from '../../context';
5
- export type AccountQueryArgs = {
6
- address: Base58EncodedAddress;
7
- commitment?: Commitment;
8
- dataSlice?: DataSlice;
9
- encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed';
10
- minContextSlot?: Slot;
11
- };
12
- /**
13
- * Account root query for GraphQL
14
- */
15
- export declare const accountQuery: () => {
16
- account: {
17
- args: {
18
- address: {
19
- type: import("graphql").GraphQLList<import("graphql").GraphQLScalarType<string, string>>;
20
- };
21
- commitment: {
22
- type: import("graphql").GraphQLEnumType;
23
- };
24
- dataSlice: {
25
- type: import("graphql").GraphQLInputObjectType;
26
- };
27
- encoding: {
28
- type: import("graphql").GraphQLEnumType;
29
- };
30
- minContextSlot: {
31
- type: import("graphql").GraphQLScalarType<unknown, unknown>;
32
- };
33
- };
34
- resolve: (_parent: unknown, args: AccountQueryArgs, context: RpcGraphQLContext) => Promise<{} | null | undefined>;
35
- type: import("graphql").GraphQLInterfaceType;
36
- };
37
- };
38
- //# sourceMappingURL=query.d.ts.map
@@ -1,5 +0,0 @@
1
- import { GraphQLInterfaceType, GraphQLObjectType } from 'graphql';
2
- export declare const tokenAmountType: () => GraphQLObjectType<any, any>;
3
- export declare const accountInterface: () => GraphQLInterfaceType;
4
- export declare const accountTypes: () => GraphQLObjectType<any, any>[];
5
- //# sourceMappingURL=types.d.ts.map
@@ -1,3 +0,0 @@
1
- export * from './query';
2
- export * from './types';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1,42 +0,0 @@
1
- import { Commitment } from '@solana/rpc-core';
2
- import { Slot } from '@solana/rpc-core/dist/types/rpc-methods/common';
3
- import { TransactionVersion } from '@solana/transactions';
4
- import { RpcGraphQLContext } from '../../context';
5
- export type BlockQueryArgs = {
6
- slot: Slot;
7
- commitment?: Commitment;
8
- encoding?: 'base58' | 'base64' | 'json' | 'jsonParsed';
9
- maxSupportedTransactionVersion?: Exclude<TransactionVersion, 'legacy'>;
10
- rewards?: boolean;
11
- transactionDetails?: 'accounts' | 'full' | 'none' | 'signatures';
12
- };
13
- /**
14
- * Block root query for GraphQL
15
- */
16
- export declare const blockQuery: () => {
17
- block: {
18
- args: {
19
- commitment: {
20
- type: import("graphql").GraphQLEnumType;
21
- };
22
- encoding: {
23
- type: import("graphql").GraphQLEnumType;
24
- };
25
- maxSupportedTransactionVersion: {
26
- type: import("graphql").GraphQLScalarType<string, string>;
27
- };
28
- rewards: {
29
- type: import("graphql").GraphQLScalarType<boolean, boolean>;
30
- };
31
- slot: {
32
- type: import("graphql").GraphQLList<import("graphql").GraphQLScalarType<unknown, unknown>>;
33
- };
34
- transactionDetails: {
35
- type: import("graphql").GraphQLEnumType;
36
- };
37
- };
38
- resolve: (_parent: unknown, args: BlockQueryArgs, context: RpcGraphQLContext) => Promise<{} | null | undefined>;
39
- type: import("graphql").GraphQLInterfaceType;
40
- };
41
- };
42
- //# sourceMappingURL=query.d.ts.map
@@ -1,7 +0,0 @@
1
- import { GraphQLInterfaceType, GraphQLObjectType } from 'graphql';
2
- /**
3
- * Interface for a block
4
- */
5
- export declare const blockInterface: () => GraphQLInterfaceType;
6
- export declare const blockTypes: () => GraphQLObjectType<any, any>[];
7
- //# sourceMappingURL=types.d.ts.map
@@ -1,9 +0,0 @@
1
- import { GraphQLEnumType, GraphQLInputObjectType } from 'graphql';
2
- export declare const accountEncodingInputType: () => GraphQLEnumType;
3
- export declare const blockTransactionDetailsInputType: () => GraphQLEnumType;
4
- export declare const commitmentInputType: () => GraphQLEnumType;
5
- export declare const dataSliceInputType: () => GraphQLInputObjectType;
6
- export declare const maxSupportedTransactionVersionInputType: () => GraphQLEnumType;
7
- export declare const programAccountFilterInputType: () => GraphQLInputObjectType;
8
- export declare const transactionEncodingInputType: () => GraphQLEnumType;
9
- //# sourceMappingURL=inputs.d.ts.map
@@ -1,36 +0,0 @@
1
- import { GraphQLEnumType, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLList, GraphQLObjectType, GraphQLScalarType, GraphQLUnionType } from 'graphql';
2
- type GraphQLType = GraphQLEnumType | GraphQLInputObjectType | GraphQLInterfaceType | GraphQLObjectType | GraphQLScalarType | GraphQLUnionType;
3
- export declare function boolean(): {
4
- type: GraphQLScalarType<boolean, boolean>;
5
- };
6
- export declare function bigint(): {
7
- type: GraphQLScalarType<unknown, unknown>;
8
- };
9
- export declare function float(): {
10
- type: GraphQLScalarType<number, number>;
11
- };
12
- export declare function number(): {
13
- type: GraphQLScalarType<number, number>;
14
- };
15
- export declare function string(): {
16
- type: GraphQLScalarType<string, string>;
17
- };
18
- export declare function type<TFieldType extends GraphQLType>(fieldType: TFieldType): {
19
- type: TFieldType;
20
- };
21
- export declare function nonNull<TFieldType extends GraphQLType>(fieldType: {
22
- type: TFieldType;
23
- }): {
24
- type: GraphQLList<TFieldType>;
25
- };
26
- export declare function list<TElementType extends GraphQLType>(elementType: {
27
- type: TElementType;
28
- }): {
29
- type: GraphQLList<TElementType>;
30
- };
31
- type ConstructorParametersOf<T> = T extends new (...args: infer P) => unknown ? P : never;
32
- export declare function object(name: string, fields: ConstructorParametersOf<typeof GraphQLObjectType>[0]['fields']): {
33
- type: GraphQLObjectType;
34
- };
35
- export {};
36
- //# sourceMappingURL=picks.d.ts.map
@@ -1,2 +0,0 @@
1
- export * from './query';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1,47 +0,0 @@
1
- import { Base58EncodedAddress } from '@solana/addresses';
2
- import { Commitment } from '@solana/rpc-core';
3
- import { DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, Slot } from '@solana/rpc-core/dist/types/rpc-methods/common';
4
- import { GraphQLList } from 'graphql';
5
- import { RpcGraphQLContext } from '../../context';
6
- export type ProgramAccountsQueryArgs = {
7
- programAddress: Base58EncodedAddress;
8
- commitment?: Commitment;
9
- dataSlice?: DataSlice;
10
- encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed';
11
- filters: (GetProgramAccountsMemcmpFilter | GetProgramAccountsDatasizeFilter)[];
12
- minContextSlot?: Slot;
13
- withContext?: boolean;
14
- };
15
- /**
16
- * Program accounts root query for GraphQL
17
- */
18
- export declare const programAccountsQuery: () => {
19
- programAccounts: {
20
- args: {
21
- commitment: {
22
- type: import("graphql").GraphQLEnumType;
23
- };
24
- dataSlice: {
25
- type: import("graphql").GraphQLInputObjectType;
26
- };
27
- encoding: {
28
- type: import("graphql").GraphQLEnumType;
29
- };
30
- filters: {
31
- type: GraphQLList<import("graphql").GraphQLInputObjectType>;
32
- };
33
- minContextSlot: {
34
- type: import("graphql").GraphQLScalarType<unknown, unknown>;
35
- };
36
- programAddress: {
37
- type: GraphQLList<import("graphql").GraphQLScalarType<string, string>>;
38
- };
39
- withContext: {
40
- type: import("graphql").GraphQLScalarType<string, string>;
41
- };
42
- };
43
- resolve: (_parent: unknown, args: ProgramAccountsQueryArgs, context: RpcGraphQLContext) => Promise<{} | undefined>;
44
- type: GraphQLList<import("graphql").GraphQLObjectType<any, any>>;
45
- };
46
- };
47
- //# sourceMappingURL=query.d.ts.map
@@ -1,3 +0,0 @@
1
- import { GraphQLObjectType } from 'graphql';
2
- export declare const programAccount: () => GraphQLObjectType<any, any>;
3
- //# sourceMappingURL=types.d.ts.map