@solana/rpc-graphql 2.0.0-experimental.efe6f4d → 2.0.0-experimental.f5d64e6

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 (40) hide show
  1. package/dist/index.browser.cjs +599 -1021
  2. package/dist/index.browser.cjs.map +1 -1
  3. package/dist/index.browser.js +599 -1021
  4. package/dist/index.browser.js.map +1 -1
  5. package/dist/index.native.js +599 -1021
  6. package/dist/index.native.js.map +1 -1
  7. package/dist/index.node.cjs +599 -1021
  8. package/dist/index.node.cjs.map +1 -1
  9. package/dist/index.node.js +599 -1021
  10. package/dist/index.node.js.map +1 -1
  11. package/dist/types/context.d.ts +5 -5
  12. package/dist/types/index.d.ts +1 -1
  13. package/dist/types/loaders/account.d.ts +2 -23
  14. package/dist/types/loaders/account.d.ts.map +1 -1
  15. package/dist/types/loaders/block.d.ts +2 -11
  16. package/dist/types/loaders/block.d.ts.map +1 -1
  17. package/dist/types/loaders/program-accounts.d.ts +2 -21
  18. package/dist/types/loaders/program-accounts.d.ts.map +1 -1
  19. package/dist/types/loaders/transaction.d.ts +3 -35
  20. package/dist/types/loaders/transaction.d.ts.map +1 -1
  21. package/dist/types/loaders/transformers/account.d.ts +8 -0
  22. package/dist/types/loaders/transformers/account.d.ts.map +1 -0
  23. package/dist/types/loaders/transformers/block.d.ts +6 -0
  24. package/dist/types/loaders/transformers/block.d.ts.map +1 -0
  25. package/dist/types/loaders/transformers/transaction.d.ts +5 -0
  26. package/dist/types/loaders/transformers/transaction.d.ts.map +1 -0
  27. package/dist/types/resolvers/account.d.ts +2 -2
  28. package/dist/types/rpc.d.ts +3 -6
  29. package/dist/types/rpc.d.ts.map +1 -1
  30. package/dist/types/schema/account.d.ts +18 -30
  31. package/dist/types/schema/account.d.ts.map +1 -1
  32. package/dist/types/schema/block.d.ts +1 -1
  33. package/dist/types/schema/block.d.ts.map +1 -1
  34. package/dist/types/schema/instruction.d.ts +87 -92
  35. package/dist/types/schema/instruction.d.ts.map +1 -1
  36. package/dist/types/schema/program-accounts.d.ts +1 -1
  37. package/dist/types/schema/program-accounts.d.ts.map +1 -1
  38. package/dist/types/schema/transaction.d.ts +1 -1
  39. package/dist/types/schema/transaction.d.ts.map +1 -1
  40. package/package.json +14 -14
@@ -1,9 +1,9 @@
1
1
  import { GraphQLResolveInfo } from 'graphql';
2
- import { createRpcGraphQL } from './rpc';
3
- import { AccountQueryArgs } from './schema/account';
4
- import { BlockQueryArgs } from './schema/block';
5
- import { ProgramAccountsQueryArgs } from './schema/program-accounts';
6
- import { TransactionQueryArgs } from './schema/transaction';
2
+ import { createRpcGraphQL } from './rpc.js';
3
+ import { AccountQueryArgs } from './schema/account.js';
4
+ import { BlockQueryArgs } from './schema/block.js';
5
+ import { ProgramAccountsQueryArgs } from './schema/program-accounts.js';
6
+ import { TransactionQueryArgs } from './schema/transaction.js';
7
7
  export type Rpc = Parameters<typeof createRpcGraphQL>[0];
8
8
  type LoadFn<TArgs> = (args: TArgs, info?: GraphQLResolveInfo | undefined) => Promise<unknown>;
9
9
  type Loader<TArgs> = {
@@ -1,2 +1,2 @@
1
- export * from './rpc';
1
+ export * from './rpc.js';
2
2
  //# sourceMappingURL=index.d.ts.map
@@ -1,28 +1,7 @@
1
- import { Address } from '@solana/addresses';
2
1
  import { GraphQLResolveInfo } from 'graphql';
3
- import type { Rpc } from '../context';
4
- import { AccountQueryArgs } from '../schema/account';
5
- declare function normalizeArgs(args: AccountQueryArgs): {
6
- address: Address;
7
- commitment: "processed" | "confirmed" | "finalized";
8
- dataSlice: Readonly<{
9
- offset: number;
10
- length: number;
11
- }> | undefined;
12
- encoding: "base58" | "base64" | "base64+zstd" | "jsonParsed";
13
- minContextSlot: bigint | undefined;
14
- };
15
- export declare function refineJsonParsedAccountData(jsonParsedAccountData: any): {
16
- data: any;
17
- meta: {
18
- program: any;
19
- space: any;
20
- type: any;
21
- };
22
- };
23
- export declare function loadAccount(rpc: Rpc, { address, ...config }: ReturnType<typeof normalizeArgs>): Promise<any>;
2
+ import type { Rpc } from '../context.js';
3
+ import { AccountQueryArgs } from '../schema/account.js';
24
4
  export declare function createAccountLoader(rpc: Rpc): {
25
5
  load: (args: AccountQueryArgs, info?: GraphQLResolveInfo) => Promise<any>;
26
6
  };
27
- export {};
28
7
  //# sourceMappingURL=account.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/loaders/account.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAM5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAGrD,iBAAS,aAAa,CAAC,IAAI,EAAE,gBAAgB;;;;;;;;;EAS5C;AAED,wBAAgB,2BAA2B,CAAC,qBAAqB,EAAE,GAAG;;;;;;;EAQrE;AA2BD,wBAAsB,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,GAAG,MAAM,EAAE,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,gBAiBnG;AASD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,GAAG;iBAGjB,gBAAgB,SAAS,kBAAkB;EAQrE"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/loaders/account.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAkCrD,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,GAAG;iBAGjB,gBAAgB,SAAS,kBAAkB;EASrE"}
@@ -1,16 +1,7 @@
1
1
  import { GraphQLResolveInfo } from 'graphql';
2
- import type { Rpc } from '../context';
3
- import { BlockQueryArgs } from '../schema/block';
4
- declare function normalizeArgs(args: BlockQueryArgs): {
5
- commitment: import("@solana/rpc-types").Commitment;
6
- encoding: "base58" | "base64" | "jsonParsed";
7
- maxSupportedTransactionVersion: number;
8
- slot: bigint;
9
- transactionDetails: "accounts" | "full" | "none" | "signatures";
10
- };
11
- export declare function loadBlock(rpc: Rpc, { slot, ...config }: ReturnType<typeof normalizeArgs>): Promise<any>;
2
+ import type { Rpc } from '../context.js';
3
+ import { BlockQueryArgs } from '../schema/block.js';
12
4
  export declare function createBlockLoader(rpc: Rpc): {
13
5
  load: (args: BlockQueryArgs, info?: GraphQLResolveInfo) => Promise<any>;
14
6
  };
15
- export {};
16
7
  //# sourceMappingURL=block.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/loaders/block.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAIjD,iBAAS,aAAa,CAAC,IAAI,EAAE,cAAc;;;;;;EAU1C;AAuCD,wBAAsB,SAAS,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,MAAM,EAAE,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,gBAiB9F;AASD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG;iBAGf,cAAc,SAAS,kBAAkB;EAQnE"}
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/loaders/block.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AA0CjD,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG;iBAGf,cAAc,SAAS,kBAAkB;EASnE"}
@@ -1,28 +1,9 @@
1
1
  import { GraphQLResolveInfo } from 'graphql';
2
- import type { Rpc } from '../context';
3
- import { ProgramAccountsQueryArgs } from '../schema/program-accounts';
4
- declare function normalizeArgs(args: ProgramAccountsQueryArgs): {
5
- commitment: import("@solana/rpc-types").Commitment;
6
- dataSlice: Readonly<{
7
- offset: number;
8
- length: number;
9
- }> | undefined;
10
- encoding: "base58" | "base64" | "base64+zstd" | "jsonParsed";
11
- filters: (Readonly<{
12
- offset: bigint;
13
- bytes: string;
14
- encoding: "base58" | "base64";
15
- }> | Readonly<{
16
- dataSize: bigint;
17
- }>)[];
18
- minContextSlot: bigint | undefined;
19
- programAddress: import("@solana/addresses").Address;
20
- };
21
- export declare function loadProgramAccounts(rpc: Rpc, { programAddress, ...config }: ReturnType<typeof normalizeArgs>): Promise<any[]>;
2
+ import type { Rpc } from '../context.js';
3
+ import { ProgramAccountsQueryArgs } from '../schema/program-accounts.js';
22
4
  export declare function createProgramAccountsLoader(rpc: Rpc): {
23
5
  load: (args: ProgramAccountsQueryArgs, info?: GraphQLResolveInfo) => Promise<any[] | {
24
6
  programAddress: import("@solana/addresses").Address;
25
7
  }>;
26
8
  };
27
- export {};
28
9
  //# sourceMappingURL=program-accounts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"program-accounts.d.ts","sourceRoot":"","sources":["../../../src/loaders/program-accounts.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAItE,iBAAS,aAAa,CAAC,IAAI,EAAE,wBAAwB;;;;;;;;;;;;;;;;EAUpD;AA4BD,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,cAAc,EAAE,GAAG,MAAM,EAAE,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC,kBAmBlH;AAWD,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,GAAG;iBAGzB,wBAAwB,SAAS,kBAAkB;;;EAQ7E"}
1
+ {"version":3,"file":"program-accounts.d.ts","sourceRoot":"","sources":["../../../src/loaders/program-accounts.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AAiDtE,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,GAAG;iBAGzB,wBAAwB,SAAS,kBAAkB;;;EAS7E"}
@@ -1,39 +1,7 @@
1
1
  import { GraphQLResolveInfo } from 'graphql';
2
- import type { Rpc } from '../context';
3
- import { TransactionQueryArgs } from '../schema/transaction';
4
- declare function normalizeArgs(args: TransactionQueryArgs): {
5
- commitment: import("@solana/rpc-types").Commitment;
6
- encoding: "base58" | "base64" | "jsonParsed";
7
- maxSupportedTransactionVersion: number;
8
- signature: import("@solana/keys").Signature;
9
- };
10
- export declare function refineJsonParsedTransaction({ encoding, transaction }: {
11
- encoding: string;
12
- transaction: any;
13
- }): {
14
- data: any;
15
- encoding: string;
16
- meta: any;
17
- slot: any;
18
- version: any;
19
- };
20
- export declare function loadTransaction(rpc: Rpc, { signature, ...config }: ReturnType<typeof normalizeArgs>): Promise<{
21
- data: any;
22
- encoding: string;
23
- meta: any;
24
- slot: any;
25
- version: any;
26
- } | null>;
2
+ import type { Rpc } from '../context.js';
3
+ import { TransactionQueryArgs } from '../schema/transaction.js';
27
4
  export declare function createTransactionLoader(rpc: Rpc): {
28
- load: (args: TransactionQueryArgs, info?: GraphQLResolveInfo) => Promise<{
29
- data: any;
30
- encoding: string;
31
- meta: any;
32
- slot: any;
33
- version: any;
34
- } | {
35
- signature: import("@solana/keys").Signature;
36
- } | null>;
5
+ load: (args: TransactionQueryArgs, info?: GraphQLResolveInfo) => Promise<any>;
37
6
  };
38
- export {};
39
7
  //# sourceMappingURL=transaction.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/loaders/transaction.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAG7D,iBAAS,aAAa,CAAC,IAAI,EAAE,oBAAoB;;;;;EAShD;AA2CD,wBAAgB,2BAA2B,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,GAAG,CAAA;CAAE;;;;;;EAW5G;AAOD,wBAAsB,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,SAAS,EAAE,GAAG,MAAM,EAAE,EAAE,UAAU,CAAC,OAAO,aAAa,CAAC;;;;;;UAqCzG;AASD,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,GAAG;iBAGrB,oBAAoB,SAAS,kBAAkB;;;;;;;;;EAQzE"}
1
+ {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/loaders/transaction.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAyD7D,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,GAAG;iBAGrB,oBAAoB,SAAS,kBAAkB;EASzE"}
@@ -0,0 +1,8 @@
1
+ import { Address } from '@solana/addresses';
2
+ import { AccountQueryArgs } from '../../schema/account.js';
3
+ export declare function transformLoadedAccount({ account, address, encoding, }: {
4
+ account: any;
5
+ address: Address;
6
+ encoding: AccountQueryArgs['encoding'];
7
+ }): any;
8
+ //# sourceMappingURL=account.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/loaders/transformers/account.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAkBxD,wBAAgB,sBAAsB,CAAC,EACnC,OAAO,EACP,OAAO,EACP,QAAQ,GACX,EAAE;IACC,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;CAC1C,OA0BA"}
@@ -0,0 +1,6 @@
1
+ export declare function transformLoadedBlock({ encoding, block, transactionDetails, }: {
2
+ block: any;
3
+ encoding: string;
4
+ transactionDetails: string;
5
+ }): any;
6
+ //# sourceMappingURL=block.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../src/loaders/transformers/block.ts"],"names":[],"mappings":"AAGA,wBAAgB,oBAAoB,CAAC,EACjC,QAAQ,EACR,KAAK,EACL,kBAAkB,GACrB,EAAE;IACC,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,CAAC;CAC9B,OAiBA"}
@@ -0,0 +1,5 @@
1
+ export declare function transformLoadedTransaction({ encoding, transaction }: {
2
+ encoding: string;
3
+ transaction: any;
4
+ }): any;
5
+ //# sourceMappingURL=transaction.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../src/loaders/transformers/transaction.ts"],"names":[],"mappings":"AA2BA,wBAAgB,0BAA0B,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,GAAG,CAAA;CAAE,OAW3G"}
@@ -1,7 +1,7 @@
1
1
  import { Address } from '@solana/addresses';
2
2
  import { GraphQLResolveInfo } from 'graphql';
3
- import { RpcGraphQLContext } from '../context';
4
- import { AccountQueryArgs } from '../schema/account';
3
+ import { RpcGraphQLContext } from '../context.js';
4
+ import { AccountQueryArgs } from '../schema/account.js';
5
5
  export declare const resolveAccount: (fieldName: string) => (parent: {
6
6
  [x: string]: Address;
7
7
  }, args: AccountQueryArgs, context: RpcGraphQLContext, info: GraphQLResolveInfo | undefined) => Promise<unknown> | null;
@@ -1,10 +1,7 @@
1
- import { GetAccountInfoApi } from '@solana/rpc-core/dist/types/rpc-methods/getAccountInfo';
2
- import { GetBlockApi } from '@solana/rpc-core/dist/types/rpc-methods/getBlock';
3
- import { GetProgramAccountsApi } from '@solana/rpc-core/dist/types/rpc-methods/getProgramAccounts';
4
- import { GetTransactionApi } from '@solana/rpc-core/dist/types/rpc-methods/getTransaction';
5
- import { Rpc } from '@solana/rpc-transport/dist/types/json-rpc-types';
1
+ import type { GetAccountInfoApi, GetBlockApi, GetProgramAccountsApi, GetTransactionApi } from '@solana/rpc-core';
2
+ import type { Rpc } from '@solana/rpc-transport';
6
3
  import { graphql, GraphQLSchema, Source } from 'graphql';
7
- import { RpcGraphQLContext } from './context';
4
+ import { RpcGraphQLContext } from './context.js';
8
5
  type RpcMethods = GetAccountInfoApi & GetBlockApi & GetProgramAccountsApi & GetTransactionApi;
9
6
  export interface RpcGraphQL {
10
7
  context: RpcGraphQLContext;
@@ -1 +1 @@
1
- {"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../src/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,wDAAwD,CAAC;AAC3F,OAAO,EAAE,WAAW,EAAE,MAAM,kDAAkD,CAAC;AAC/E,OAAO,EAAE,qBAAqB,EAAE,MAAM,4D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AAC,EAAE;QAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAC1D,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;IAC9B,MAAM,EAAE,aAAa,CAAC;CACzB;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,GAAG,UAAU,CAejE"}
@@ -1,5 +1,5 @@
1
1
  import { Address } from '@solana/addresses';
2
- import { DataSlice, Slot } from '@solana/rpc-core/dist/types/rpc-methods/common';
2
+ import type { DataSlice, Slot } from '@solana/rpc-core';
3
3
  export type AccountQueryArgs = {
4
4
  address: Address;
5
5
  dataSlice?: DataSlice;
@@ -7,75 +7,65 @@ export type AccountQueryArgs = {
7
7
  commitment?: 'processed' | 'confirmed' | 'finalized';
8
8
  minContextSlot?: Slot;
9
9
  };
10
- export declare const accountTypeDefs = "\n # Account interface\n interface Account {\n address: Address\n encoding: AccountEncoding\n executable: Boolean\n lamports: BigInt\n owner: Account\n rentEpoch: BigInt\n }\n\n # An account with base58 encoded data\n type AccountBase58 implements Account {\n address: Address\n data: Base58EncodedBytes\n encoding: AccountEncoding\n executable: Boolean\n lamports: BigInt\n owner: Account\n rentEpoch: BigInt\n }\n\n # An account with base64 encoded data\n type AccountBase64 implements Account {\n address: Address\n data: Base64EncodedBytes\n encoding: AccountEncoding\n executable: Boolean\n lamports: BigInt\n owner: Account\n rentEpoch: BigInt\n }\n\n # An account with base64+zstd encoded data\n type AccountBase64Zstd implements Account {\n address: Address\n data: Base64ZstdEncodedBytes\n encoding: AccountEncoding\n executable: Boolean\n lamports: BigInt\n owner: Account\n rentEpoch: BigInt\n }\n\n # Interface for JSON-parsed meta\n type JsonParsedAccountMeta {\n program: String\n space: BigInt\n type: String\n }\n interface AccountJsonParsed {\n meta: JsonParsedAccountMeta\n }\n\n # A nonce account\n type NonceAccountFeeCalculator {\n lamportsPerSignature: String\n }\n type NonceAccountData {\n authority: Account\n blockhash: String\n feeCalculator: NonceAccountFeeCalculator\n }\n type NonceAccount implements Account & AccountJsonParsed {\n address: Address\n data: NonceAccountData\n encoding: AccountEncoding\n executable: Boolean\n lamports: BigInt\n meta: JsonParsedAccountMeta\n owner: Account\n rentEpoch: BigInt\n }\n\n # A lookup table account\n type LookupTableAccountData {\n addresses: [String]\n authority: Account\n deactivationSlot: String\n lastExtendedSlot: String\n lastExtendedSlotStartIndex: Int\n }\n type LookupTableAccount implements Account & AccountJsonParsed {\n address: Address\n data: LookupTableAccountData\n encoding: AccountEncoding\n executable: Boolean\n lamports: BigInt\n meta: JsonParsedAccountMeta\n owner: Account\n rentEpoch: BigInt\n }\n\n # A mint account\n type MintAccountData {\n decimals: Int\n freezeAuthority: Account\n isInitialized: Boolean\n mintAuthority: Account\n supply: String\n }\n type MintAccount implements Account & AccountJsonParsed {\n address: Address\n data: MintAccountData\n encoding: AccountEncoding\n executable: Boolean\n lamports: BigInt\n meta: JsonParsedAccountMeta\n owner: Account\n rentEpoch: BigInt\n }\n\n # A token account\n type TokenAccountData {\n isNative: Boolean\n mint: Account\n owner: Account\n state: String\n tokenAmount: TokenAmount\n }\n type TokenAccount implements Account & AccountJsonParsed {\n address: Address\n data: TokenAccountData\n encoding: AccountEncoding\n executable: Boolean\n lamports: BigInt\n meta: JsonParsedAccountMeta\n owner: Account\n rentEpoch: BigInt\n }\n\n # A stake account\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 type StakeAccountData {\n meta: StakeAccountDataMeta\n stake: StakeAccountDataStake\n }\n type StakeAccount implements Account & AccountJsonParsed {\n address: Address\n data: StakeAccountData\n encoding: AccountEncoding\n executable: Boolean\n lamports: BigInt\n meta: JsonParsedAccountMeta\n owner: Account\n rentEpoch: BigInt\n }\n\n # A vote account\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 type VoteAccountData {\n authorizedVoters: [VoteAccountDataAuthorizedVoter]\n authorizedWithdrawer: Account\n commission: Int\n epochCredits: [VoteAccountDataEpochCredit]\n lastTimestamp: VoteAccountDataLastTimestamp\n node: Account\n priorVoters: [String]\n rootSlot: BigInt\n votes: [VoteAccountDataVote]\n }\n type VoteAccount implements Account & AccountJsonParsed {\n address: Address\n data: VoteAccountData\n encoding: AccountEncoding\n executable: Boolean\n lamports: BigInt\n meta: JsonParsedAccountMeta\n owner: Account\n rentEpoch: BigInt\n }\n";
10
+ export declare const accountTypeDefs = "\n # Account interface\n interface Account {\n address: Address\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n }\n\n # An account with base58 encoded data\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 # An account with base64 encoded data\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 # An account with base64+zstd encoded data\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 # A nonce account\n type NonceAccountFeeCalculator {\n lamportsPerSignature: String\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 # A lookup table account\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 # A mint account\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 # A token account\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 # A stake account\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 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 # A vote account\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 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";
11
11
  export declare const accountResolvers: {
12
12
  Account: {
13
13
  __resolveType(account: {
14
14
  encoding: string;
15
- meta: {
16
- program: string;
17
- type: string;
18
- };
15
+ programName: string;
16
+ accountType: string;
19
17
  }): "AccountBase58" | "AccountBase64" | "AccountBase64Zstd" | "NonceAccount" | "MintAccount" | "TokenAccount" | "StakeAccount" | "VoteAccount" | "LookupTableAccount";
20
18
  };
21
19
  AccountBase58: {
22
- owner: (parent: {
20
+ ownerProgram: (parent: {
23
21
  [x: string]: Address;
24
22
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
25
23
  };
26
24
  AccountBase64: {
27
- owner: (parent: {
25
+ ownerProgram: (parent: {
28
26
  [x: string]: Address;
29
27
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
30
28
  };
31
29
  AccountBase64Zstd: {
32
- owner: (parent: {
30
+ ownerProgram: (parent: {
33
31
  [x: string]: Address;
34
32
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
35
33
  };
36
- NonceAccountData: {
34
+ NonceAccount: {
37
35
  authority: (parent: {
38
36
  [x: string]: Address;
39
37
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
40
- };
41
- NonceAccount: {
42
- owner: (parent: {
38
+ ownerProgram: (parent: {
43
39
  [x: string]: Address;
44
40
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
45
41
  };
46
- LookupTableAccountData: {
42
+ LookupTableAccount: {
47
43
  authority: (parent: {
48
44
  [x: string]: Address;
49
45
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
50
- };
51
- LookupTableAccount: {
52
- owner: (parent: {
46
+ ownerProgram: (parent: {
53
47
  [x: string]: Address;
54
48
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
55
49
  };
56
- MintAccountData: {
50
+ MintAccount: {
57
51
  freezeAuthority: (parent: {
58
52
  [x: string]: Address;
59
53
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
60
54
  mintAuthority: (parent: {
61
55
  [x: string]: Address;
62
56
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
63
- };
64
- MintAccount: {
65
- owner: (parent: {
57
+ ownerProgram: (parent: {
66
58
  [x: string]: Address;
67
59
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
68
60
  };
69
- TokenAccountData: {
61
+ TokenAccount: {
70
62
  mint: (parent: {
71
63
  [x: string]: Address;
72
64
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
73
65
  owner: (parent: {
74
66
  [x: string]: Address;
75
67
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
76
- };
77
- TokenAccount: {
78
- owner: (parent: {
68
+ ownerProgram: (parent: {
79
69
  [x: string]: Address;
80
70
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
81
71
  };
@@ -98,7 +88,7 @@ export declare const accountResolvers: {
98
88
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
99
89
  };
100
90
  StakeAccount: {
101
- owner: (parent: {
91
+ ownerProgram: (parent: {
102
92
  [x: string]: Address;
103
93
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
104
94
  };
@@ -107,16 +97,14 @@ export declare const accountResolvers: {
107
97
  [x: string]: Address;
108
98
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
109
99
  };
110
- VoteAccountData: {
100
+ VoteAccount: {
111
101
  authorizedWithdrawer: (parent: {
112
102
  [x: string]: Address;
113
103
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
114
104
  node: (parent: {
115
105
  [x: string]: Address;
116
106
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
117
- };
118
- VoteAccount: {
119
- owner: (parent: {
107
+ ownerProgram: (parent: {
120
108
  [x: string]: Address;
121
109
  }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
122
110
  };
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schema/account.ts"],"names":[],"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F,eAAO,MAAM,eAAe,ypJAiL3B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;+BAEE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiF5F,CAAC"}
@@ -1,4 +1,4 @@
1
- import { Slot } from '@solana/rpc-core/dist/types/rpc-methods/common';
1
+ import type { Slot } from '@solana/rpc-core';
2
2
  import { Commitment } from '@solana/rpc-types';
3
3
  export type BlockQueryArgs = {
4
4
  slot: Slot;
@@ -1 +1 @@
1
- {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/schema/block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gDAAgD,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;IAC9C,kBAAkB,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;CACpE,CAAC;AAEF,eAAO,MAAM,aAAa,umEA+EzB,CAAC;AAEF,eAAO,MAAM,cAAc;;6BAEE;YAAE,kBAAkB,EAAE,MAAM,CAAA;SAAE;;CAa1D,CAAC"}
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/schema/block.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;IAC9C,kBAAkB,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;CACpE,CAAC;AAEF,eAAO,MAAM,aAAa,umEA+EzB,CAAC;AAEF,eAAO,MAAM,cAAc;;6BAEE;YAAE,kBAAkB,EAAE,MAAM,CAAA;SAAE;;CAa1D,CAAC"}