@solana/rpc-graphql 2.0.0-experimental.ef2569b → 2.0.0-experimental.f2a2e5b

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 +360 -125
  2. package/dist/index.browser.cjs.map +1 -1
  3. package/dist/index.browser.js +359 -124
  4. package/dist/index.browser.js.map +1 -1
  5. package/dist/index.native.js +359 -124
  6. package/dist/index.native.js.map +1 -1
  7. package/dist/index.node.cjs +360 -125
  8. package/dist/index.node.cjs.map +1 -1
  9. package/dist/index.node.js +359 -124
  10. package/dist/index.node.js.map +1 -1
  11. package/dist/types/context.d.ts +8 -8
  12. package/dist/types/context.d.ts.map +1 -1
  13. package/dist/types/loaders/account.d.ts +10 -2
  14. package/dist/types/loaders/account.d.ts.map +1 -1
  15. package/dist/types/loaders/block.d.ts +9 -2
  16. package/dist/types/loaders/block.d.ts.map +1 -1
  17. package/dist/types/loaders/common/cache-key-fn.d.ts +2 -0
  18. package/dist/types/loaders/common/cache-key-fn.d.ts.map +1 -0
  19. package/dist/types/loaders/program-accounts.d.ts +13 -3
  20. package/dist/types/loaders/program-accounts.d.ts.map +1 -1
  21. package/dist/types/loaders/transaction.d.ts +8 -2
  22. package/dist/types/loaders/transaction.d.ts.map +1 -1
  23. package/dist/types/loaders/transformers/account.d.ts +2 -2
  24. package/dist/types/loaders/transformers/account.d.ts.map +1 -1
  25. package/dist/types/loaders/transformers/transaction.d.ts.map +1 -1
  26. package/dist/types/resolvers/account.d.ts +2 -2
  27. package/dist/types/resolvers/account.d.ts.map +1 -1
  28. package/dist/types/schema/account.d.ts +45 -54
  29. package/dist/types/schema/account.d.ts.map +1 -1
  30. package/dist/types/schema/block.d.ts +1 -9
  31. package/dist/types/schema/block.d.ts.map +1 -1
  32. package/dist/types/schema/common/types.d.ts +2 -2
  33. package/dist/types/schema/index.d.ts.map +1 -1
  34. package/dist/types/schema/instruction.d.ts +256 -256
  35. package/dist/types/schema/instruction.d.ts.map +1 -1
  36. package/dist/types/schema/transaction.d.ts +1 -8
  37. package/dist/types/schema/transaction.d.ts.map +1 -1
  38. package/package.json +11 -11
  39. package/dist/types/schema/program-accounts.d.ts +0 -12
  40. package/dist/types/schema/program-accounts.d.ts.map +0 -1
@@ -1,19 +1,19 @@
1
1
  import { GraphQLResolveInfo } from 'graphql';
2
+ import { AccountLoaderArgs } from './loaders/account.js';
3
+ import { BlockLoaderArgs } from './loaders/block.js';
4
+ import { ProgramAccountsLoaderArgs } from './loaders/program-accounts.js';
5
+ import { TransactionLoaderArgs } from './loaders/transaction.js';
2
6
  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> = {
10
10
  load: LoadFn<TArgs>;
11
11
  };
12
12
  type RpcGraphQLLoaders = {
13
- account: Loader<AccountQueryArgs>;
14
- block: Loader<BlockQueryArgs>;
15
- programAccounts: Loader<ProgramAccountsQueryArgs>;
16
- transaction: Loader<TransactionQueryArgs>;
13
+ account: Loader<AccountLoaderArgs>;
14
+ block: Loader<BlockLoaderArgs>;
15
+ programAccounts: Loader<ProgramAccountsLoaderArgs>;
16
+ transaction: Loader<TransactionLoaderArgs>;
17
17
  };
18
18
  export interface RpcGraphQLContext {
19
19
  loaders: RpcGraphQLLoaders;
@@ -1 +1 @@
1
- {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAM7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,MAAM,GAAG,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEzD,KAAK,MAAM,CAAC,KAAK,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,kBAAkB,GAAG,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAC9F,KAAK,MAAM,CAAC,KAAK,IAAI;IAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;CAAE,CAAC;AAC7C,KAAK,iBAAiB,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC,gBAAgB,CAAC,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC;IAC9B,eAAe,EAAE,MAAM,CAAC,wBAAwB,CAAC,CAAC;IAClD,WAAW,EAAE,MAAM,CAAC,oBAAoB,CAAC,CAAC;CAC7C,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,GAAG,EAAE,GAAG,CAAC;CACZ;AAED,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,GAAG,GAAG,iBAAiB,CAUtE"}
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAEzC,MAAM,MAAM,GAAG,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEzD,KAAK,MAAM,CAAC,KAAK,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,kBAAkB,GAAG,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAC9F,KAAK,MAAM,CAAC,KAAK,IAAI;IAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;CAAE,CAAC;AAC7C,KAAK,iBAAiB,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC,yBAAyB,CAAC,CAAC;IACnD,WAAW,EAAE,MAAM,CAAC,qBAAqB,CAAC,CAAC;CAC9C,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,GAAG,EAAE,GAAG,CAAC;CACZ;AAED,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,GAAG,GAAG,iBAAiB,CAUtE"}
@@ -1,7 +1,15 @@
1
+ import { Address } from '@solana/addresses';
2
+ import { DataSlice, Slot } from '@solana/rpc-core';
1
3
  import { GraphQLResolveInfo } from 'graphql';
2
4
  import type { Rpc } from '../context.js';
3
- import { AccountQueryArgs } from '../schema/account.js';
5
+ export type AccountLoaderArgs = {
6
+ address: Address;
7
+ dataSlice?: DataSlice;
8
+ encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed';
9
+ commitment?: 'processed' | 'confirmed' | 'finalized';
10
+ minContextSlot?: Slot;
11
+ };
4
12
  export declare function createAccountLoader(rpc: Rpc): {
5
- load: (args: AccountQueryArgs, info?: GraphQLResolveInfo) => Promise<any>;
13
+ load: (args: AccountLoaderArgs, info?: GraphQLResolveInfo) => Promise<any>;
6
14
  };
7
15
  //# sourceMappingURL=account.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/loaders/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAKtC,MAAM,MAAM,iBAAiB,GAAG;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,CAAC;IAC9D,UAAU,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;IACrD,cAAc,CAAC,EAAE,IAAI,CAAC;CACzB,CAAC;AAgCF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,GAAG;iBAGjB,iBAAiB,SAAS,kBAAkB;EAStE"}
@@ -1,7 +1,14 @@
1
+ import { Slot } from '@solana/rpc-core';
2
+ import { Commitment } from '@solana/rpc-types';
1
3
  import { GraphQLResolveInfo } from 'graphql';
2
4
  import type { Rpc } from '../context.js';
3
- import { BlockQueryArgs } from '../schema/block.js';
5
+ export type BlockLoaderArgs = {
6
+ slot: Slot;
7
+ commitment?: Commitment;
8
+ encoding?: 'base58' | 'base64' | 'jsonParsed';
9
+ transactionDetails?: 'accounts' | 'full' | 'none' | 'signatures';
10
+ };
4
11
  export declare function createBlockLoader(rpc: Rpc): {
5
- load: (args: BlockQueryArgs, info?: GraphQLResolveInfo) => Promise<any>;
12
+ load: (args: BlockLoaderArgs, info?: GraphQLResolveInfo) => Promise<any>;
6
13
  };
7
14
  //# sourceMappingURL=block.d.ts.map
@@ -1 +1 @@
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
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/loaders/block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAKtC,MAAM,MAAM,eAAe,GAAG;IAC1B,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;AA4CF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG;iBAGf,eAAe,SAAS,kBAAkB;EASpE"}
@@ -0,0 +1,2 @@
1
+ export declare const cacheKeyFn: (obj: any) => any;
2
+ //# sourceMappingURL=cache-key-fn.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cache-key-fn.d.ts","sourceRoot":"","sources":["../../../../src/loaders/common/cache-key-fn.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,UAAU,QAAS,GAAG,QAAiC,CAAC"}
@@ -1,9 +1,19 @@
1
+ import { Address } from '@solana/addresses';
2
+ import { DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, Slot } from '@solana/rpc-core';
3
+ import { Commitment } from '@solana/rpc-types';
1
4
  import { GraphQLResolveInfo } from 'graphql';
2
5
  import type { Rpc } from '../context.js';
3
- import { ProgramAccountsQueryArgs } from '../schema/program-accounts.js';
6
+ export type ProgramAccountsLoaderArgs = {
7
+ programAddress: Address;
8
+ commitment?: Commitment;
9
+ dataSlice?: DataSlice;
10
+ encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed';
11
+ filters: (GetProgramAccountsMemcmpFilter | GetProgramAccountsDatasizeFilter)[];
12
+ minContextSlot?: Slot;
13
+ };
4
14
  export declare function createProgramAccountsLoader(rpc: Rpc): {
5
- load: (args: ProgramAccountsQueryArgs, info?: GraphQLResolveInfo) => Promise<any[] | {
6
- programAddress: import("@solana/addresses").Address;
15
+ load: (args: ProgramAccountsLoaderArgs, info?: GraphQLResolveInfo) => Promise<any[] | {
16
+ programAddress: Address;
7
17
  }>;
8
18
  };
9
19
  //# 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;AAiDtE,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,GAAG;iBAGzB,wBAAwB,SAAS,kBAAkB;;;EAS7E"}
1
+ {"version":3,"file":"program-accounts.d.ts","sourceRoot":"","sources":["../../../src/loaders/program-accounts.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,gCAAgC,EAAE,8BAA8B,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACrH,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAKtC,MAAM,MAAM,yBAAyB,GAAG;IACpC,cAAc,EAAE,OAAO,CAAC;IACxB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,CAAC;IAC9D,OAAO,EAAE,CAAC,8BAA8B,GAAG,gCAAgC,CAAC,EAAE,CAAC;IAC/E,cAAc,CAAC,EAAE,IAAI,CAAC;CACzB,CAAC;AAyCF,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,GAAG;iBAGzB,yBAAyB,SAAS,kBAAkB;;;EAS9E"}
@@ -1,7 +1,13 @@
1
+ import { Signature } from '@solana/keys';
2
+ import { Commitment } from '@solana/rpc-types';
1
3
  import { GraphQLResolveInfo } from 'graphql';
2
4
  import type { Rpc } from '../context.js';
3
- import { TransactionQueryArgs } from '../schema/transaction.js';
5
+ export type TransactionLoaderArgs = {
6
+ signature: Signature;
7
+ commitment?: Commitment;
8
+ encoding?: 'base58' | 'base64' | 'jsonParsed';
9
+ };
4
10
  export declare function createTransactionLoader(rpc: Rpc): {
5
- load: (args: TransactionQueryArgs, info?: GraphQLResolveInfo) => Promise<any>;
11
+ load: (args: TransactionLoaderArgs, info?: GraphQLResolveInfo) => Promise<any>;
6
12
  };
7
13
  //# sourceMappingURL=transaction.d.ts.map
@@ -1 +1 @@
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;AAwD7D,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,GAAG;iBAGrB,oBAAoB,SAAS,kBAAkB;EASzE"}
1
+ {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/loaders/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAKtC,MAAM,MAAM,qBAAqB,GAAG;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;CACjD,CAAC;AA+DF,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,GAAG;iBAGrB,qBAAqB,SAAS,kBAAkB;EAS1E"}
@@ -1,8 +1,8 @@
1
1
  import { Address } from '@solana/addresses';
2
- import { AccountQueryArgs } from '../../schema/account.js';
2
+ import { AccountLoaderArgs } from '../../loaders/account.js';
3
3
  export declare function transformLoadedAccount({ account, address, encoding, }: {
4
4
  account: any;
5
5
  address: Address;
6
- encoding: AccountQueryArgs['encoding'];
6
+ encoding: AccountLoaderArgs['encoding'];
7
7
  }): any;
8
8
  //# sourceMappingURL=account.d.ts.map
@@ -1 +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"}
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,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAkB1D,wBAAgB,sBAAsB,CAAC,EACnC,OAAO,EACP,OAAO,EACP,QAAQ,GACX,EAAE;IACC,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;CAC3C,OA0BA"}
@@ -1 +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
+ {"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../src/loaders/transformers/transaction.ts"],"names":[],"mappings":"AAgCA,wBAAgB,0BAA0B,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,GAAG,CAAA;CAAE,OAW3G"}
@@ -1,8 +1,8 @@
1
1
  import { Address } from '@solana/addresses';
2
2
  import { GraphQLResolveInfo } from 'graphql';
3
3
  import { RpcGraphQLContext } from '../context.js';
4
- import { AccountQueryArgs } from '../schema/account.js';
4
+ import { AccountLoaderArgs } from '../loaders/account.js';
5
5
  export declare const resolveAccount: (fieldName: string) => (parent: {
6
6
  [x: string]: Address;
7
- }, args: AccountQueryArgs, context: RpcGraphQLContext, info: GraphQLResolveInfo | undefined) => Promise<unknown> | null;
7
+ }, args: AccountLoaderArgs, context: RpcGraphQLContext, info: GraphQLResolveInfo | undefined) => Promise<unknown> | null;
8
8
  //# sourceMappingURL=account.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/resolvers/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,eAAO,MAAM,cAAc,cAAe,MAAM;;SAGlC,gBAAgB,WACb,iBAAiB,QACpB,kBAAkB,GAAG,SAAS,4BAG3C,CAAC"}
1
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/resolvers/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,eAAO,MAAM,cAAc,cAAe,MAAM;;SAGlC,iBAAiB,WACd,iBAAiB,QACpB,kBAAkB,GAAG,SAAS,4BAG3C,CAAC"}
@@ -1,13 +1,4 @@
1
- import { Address } from '@solana/addresses';
2
- import type { DataSlice, Slot } from '@solana/rpc-core';
3
- export type AccountQueryArgs = {
4
- address: Address;
5
- dataSlice?: DataSlice;
6
- encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed';
7
- commitment?: 'processed' | 'confirmed' | 'finalized';
8
- minContextSlot?: Slot;
9
- };
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";
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";
11
2
  export declare const accountResolvers: {
12
3
  Account: {
13
4
  __resolveType(account: {
@@ -18,95 +9,95 @@ export declare const accountResolvers: {
18
9
  };
19
10
  AccountBase58: {
20
11
  ownerProgram: (parent: {
21
- [x: string]: Address;
22
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
12
+ [x: string]: import("@solana/addresses").Address;
13
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
23
14
  };
24
15
  AccountBase64: {
25
16
  ownerProgram: (parent: {
26
- [x: string]: Address;
27
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
17
+ [x: string]: import("@solana/addresses").Address;
18
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
28
19
  };
29
20
  AccountBase64Zstd: {
30
21
  ownerProgram: (parent: {
31
- [x: string]: Address;
32
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
22
+ [x: string]: import("@solana/addresses").Address;
23
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
33
24
  };
34
25
  NonceAccount: {
35
26
  authority: (parent: {
36
- [x: string]: Address;
37
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
27
+ [x: string]: import("@solana/addresses").Address;
28
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
38
29
  ownerProgram: (parent: {
39
- [x: string]: Address;
40
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
30
+ [x: string]: import("@solana/addresses").Address;
31
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
41
32
  };
42
33
  LookupTableAccount: {
43
34
  authority: (parent: {
44
- [x: string]: Address;
45
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
35
+ [x: string]: import("@solana/addresses").Address;
36
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
46
37
  ownerProgram: (parent: {
47
- [x: string]: Address;
48
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
38
+ [x: string]: import("@solana/addresses").Address;
39
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
49
40
  };
50
41
  MintAccount: {
51
42
  freezeAuthority: (parent: {
52
- [x: string]: Address;
53
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
43
+ [x: string]: import("@solana/addresses").Address;
44
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
54
45
  mintAuthority: (parent: {
55
- [x: string]: Address;
56
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
46
+ [x: string]: import("@solana/addresses").Address;
47
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
57
48
  ownerProgram: (parent: {
58
- [x: string]: Address;
59
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
49
+ [x: string]: import("@solana/addresses").Address;
50
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
60
51
  };
61
52
  TokenAccount: {
62
53
  mint: (parent: {
63
- [x: string]: Address;
64
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
54
+ [x: string]: import("@solana/addresses").Address;
55
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
65
56
  owner: (parent: {
66
- [x: string]: Address;
67
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
57
+ [x: string]: import("@solana/addresses").Address;
58
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
68
59
  ownerProgram: (parent: {
69
- [x: string]: Address;
70
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
60
+ [x: string]: import("@solana/addresses").Address;
61
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
71
62
  };
72
63
  StakeAccountDataMetaAuthorized: {
73
64
  staker: (parent: {
74
- [x: string]: Address;
75
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
65
+ [x: string]: import("@solana/addresses").Address;
66
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
76
67
  withdrawer: (parent: {
77
- [x: string]: Address;
78
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
68
+ [x: string]: import("@solana/addresses").Address;
69
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
79
70
  };
80
71
  StakeAccountDataMetaLockup: {
81
72
  custodian: (parent: {
82
- [x: string]: Address;
83
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
73
+ [x: string]: import("@solana/addresses").Address;
74
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
84
75
  };
85
76
  StakeAccountDataStakeDelegation: {
86
77
  voter: (parent: {
87
- [x: string]: Address;
88
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
78
+ [x: string]: import("@solana/addresses").Address;
79
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
89
80
  };
90
81
  StakeAccount: {
91
82
  ownerProgram: (parent: {
92
- [x: string]: Address;
93
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
83
+ [x: string]: import("@solana/addresses").Address;
84
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
94
85
  };
95
86
  VoteAccountDataAuthorizedVoter: {
96
87
  authorizedVoter: (parent: {
97
- [x: string]: Address;
98
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
88
+ [x: string]: import("@solana/addresses").Address;
89
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
99
90
  };
100
91
  VoteAccount: {
101
92
  authorizedWithdrawer: (parent: {
102
- [x: string]: Address;
103
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
93
+ [x: string]: import("@solana/addresses").Address;
94
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
104
95
  node: (parent: {
105
- [x: string]: Address;
106
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
96
+ [x: string]: import("@solana/addresses").Address;
97
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
107
98
  ownerProgram: (parent: {
108
- [x: string]: Address;
109
- }, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
99
+ [x: string]: import("@solana/addresses").Address;
100
+ }, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
110
101
  };
111
102
  };
112
103
  //# sourceMappingURL=account.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schema/account.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAIxD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,CAAC;IAC9D,UAAU,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;IACrD,cAAc,CAAC,EAAE,IAAI,CAAC;CACzB,CAAC;AAEF,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
+ {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schema/account.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,q3JAqM3B,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,12 +1,4 @@
1
- import type { Slot } from '@solana/rpc-core';
2
- import { Commitment } from '@solana/rpc-types';
3
- export type BlockQueryArgs = {
4
- slot: Slot;
5
- commitment?: Commitment;
6
- encoding?: 'base58' | 'base64' | 'jsonParsed';
7
- transactionDetails?: 'accounts' | 'full' | 'none' | 'signatures';
8
- };
9
- 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 # Block interface\n interface Block {\n blockhash: String\n blockHeight: BigInt\n blockTime: Int\n parentSlot: BigInt\n previousBlockhash: String\n rewards: [Reward]\n transactionDetails: String\n }\n\n # A block with account transaction details\n type BlockWithAccounts implements Block {\n blockhash: String\n blockHeight: BigInt\n blockTime: Int\n parentSlot: BigInt\n previousBlockhash: String\n rewards: [Reward]\n transactions: [BlockTransactionAccounts]\n transactionDetails: String\n }\n\n # A block with full transaction details\n type BlockWithFull implements Block {\n blockhash: String\n blockHeight: BigInt\n blockTime: Int\n parentSlot: BigInt\n previousBlockhash: String\n rewards: [Reward]\n transactions: [Transaction]\n transactionDetails: String\n }\n\n # A block with none transaction details\n type BlockWithNone implements Block {\n blockhash: String\n blockHeight: BigInt\n blockTime: Int\n parentSlot: BigInt\n previousBlockhash: String\n rewards: [Reward]\n transactionDetails: String\n }\n\n # A block with signature transaction details\n type BlockWithSignatures implements Block {\n blockhash: String\n blockHeight: BigInt\n blockTime: Int\n parentSlot: BigInt\n previousBlockhash: String\n rewards: [Reward]\n signatures: [String]\n transactionDetails: String\n }\n";
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: Int\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: Int\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: Int\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: Int\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: Int\n parentSlot: BigInt\n previousBlockhash: String\n rewards: [Reward]\n signatures: [String]\n transactionDetails: String\n }\n";
10
2
  export declare const blockResolvers: {
11
3
  Block: {
12
4
  __resolveType(block: {
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/schema/block.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,mtEAyFzB,CAAC;AAEF,eAAO,MAAM,cAAc;;6BAEE;YAAE,kBAAkB,EAAE,MAAM,CAAA;SAAE;;CAa1D,CAAC"}
@@ -9,10 +9,10 @@ export declare const commonResolvers: {
9
9
  TokenBalance: {
10
10
  mint: (parent: {
11
11
  [x: string]: import("@solana/addresses").Address;
12
- }, args: import("../account").AccountQueryArgs, context: import("../../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
12
+ }, args: import("../../loaders/account").AccountLoaderArgs, context: import("../../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
13
13
  owner: (parent: {
14
14
  [x: string]: import("@solana/addresses").Address;
15
- }, args: import("../account").AccountQueryArgs, context: import("../../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
15
+ }, args: import("../../loaders/account").AccountLoaderArgs, context: import("../../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
16
16
  };
17
17
  TransactionEncoding: {
18
18
  BASE_58: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":"AAuFA,wBAAgB,yBAAyB,oCAuBxC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":"AA0FA,wBAAgB,yBAAyB,oCAuBxC"}