@solana/rpc-graphql 2.0.0-experimental.ce179f2 → 2.0.0-experimental.d32897d

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.
@@ -1,5 +1,6 @@
1
1
  import { SolanaRpcMethods } from '@solana/rpc-core';
2
2
  import { Rpc } from '@solana/rpc-transport/dist/types/json-rpc-types';
3
+ import { GraphQLResolveInfo } from 'graphql';
3
4
  import { GraphQLCache } from './cache';
4
5
  import { AccountQueryArgs } from './schema/account/query';
5
6
  import { BlockQueryArgs } from './schema/block';
@@ -7,13 +8,13 @@ import { ProgramAccountsQueryArgs } from './schema/program-accounts';
7
8
  import { TransactionQueryArgs } from './schema/transaction/query';
8
9
  export interface RpcGraphQLContext {
9
10
  cache: GraphQLCache;
10
- resolveAccount(args: AccountQueryArgs): ReturnType<typeof resolveAccount>;
11
+ resolveAccount(args: AccountQueryArgs, info?: GraphQLResolveInfo): ReturnType<typeof resolveAccount>;
11
12
  resolveBlock(args: BlockQueryArgs): ReturnType<typeof resolveBlock>;
12
13
  resolveProgramAccounts(args: ProgramAccountsQueryArgs): ReturnType<typeof resolveProgramAccounts>;
13
14
  resolveTransaction(args: TransactionQueryArgs): ReturnType<typeof resolveTransaction>;
14
15
  rpc: Rpc<SolanaRpcMethods>;
15
16
  }
16
- declare function resolveAccount({ address, encoding, ...config }: AccountQueryArgs, cache: GraphQLCache, rpc: Rpc<SolanaRpcMethods>): Promise<{} | null | undefined>;
17
+ declare function resolveAccount({ address, encoding, ...config }: AccountQueryArgs, cache: GraphQLCache, rpc: Rpc<SolanaRpcMethods>, info?: GraphQLResolveInfo): Promise<{} | undefined>;
17
18
  declare function resolveBlock({ slot, encoding, ...config }: BlockQueryArgs, cache: GraphQLCache, rpc: Rpc<SolanaRpcMethods>): Promise<{} | null | undefined>;
18
19
  declare function resolveProgramAccounts({ programAddress, encoding, ...config }: ProgramAccountsQueryArgs, cache: GraphQLCache, rpc: Rpc<SolanaRpcMethods>): Promise<{} | undefined>;
19
20
  declare function resolveTransaction({ signature, encoding, ...config }: TransactionQueryArgs, cache: GraphQLCache, rpc: Rpc<SolanaRpcMethods>): Promise<{} | null | undefined>;
@@ -1,6 +1,6 @@
1
1
  import { Base58EncodedAddress } from '@solana/addresses';
2
- import { Commitment } from '@solana/rpc-core';
3
2
  import { DataSlice, Slot } from '@solana/rpc-core/dist/types/rpc-methods/common';
3
+ import { Commitment } from '@solana/rpc-types';
4
4
  import { RpcGraphQLContext } from '../../context';
5
5
  export type AccountQueryArgs = {
6
6
  address: Base58EncodedAddress;
@@ -31,7 +31,7 @@ export declare const accountQuery: () => {
31
31
  type: import("graphql").GraphQLScalarType<unknown, unknown>;
32
32
  };
33
33
  };
34
- resolve: (_parent: unknown, args: AccountQueryArgs, context: RpcGraphQLContext) => Promise<{} | null | undefined>;
34
+ resolve: (_parent: unknown, args: AccountQueryArgs, context: RpcGraphQLContext, info: any) => Promise<{} | undefined>;
35
35
  type: import("graphql").GraphQLInterfaceType;
36
36
  };
37
37
  };
@@ -1,5 +1,5 @@
1
- import { Commitment } from '@solana/rpc-core';
2
1
  import { Slot } from '@solana/rpc-core/dist/types/rpc-methods/common';
2
+ import { Commitment } from '@solana/rpc-types';
3
3
  import { TransactionVersion } from '@solana/transactions';
4
4
  import { RpcGraphQLContext } from '../../context';
5
5
  export type BlockQueryArgs = {
@@ -1,6 +1,6 @@
1
1
  import { Base58EncodedAddress } from '@solana/addresses';
2
- import { Commitment } from '@solana/rpc-core';
3
2
  import { DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, Slot } from '@solana/rpc-core/dist/types/rpc-methods/common';
3
+ import { Commitment } from '@solana/rpc-types';
4
4
  import { GraphQLList } from 'graphql';
5
5
  import { RpcGraphQLContext } from '../../context';
6
6
  export type ProgramAccountsQueryArgs = {
@@ -41,7 +41,7 @@ export declare const programAccountsQuery: () => {
41
41
  };
42
42
  };
43
43
  resolve: (_parent: unknown, args: ProgramAccountsQueryArgs, context: RpcGraphQLContext) => Promise<{} | undefined>;
44
- type: GraphQLList<import("graphql").GraphQLObjectType<any, any>>;
44
+ type: GraphQLList<import("graphql").GraphQLInterfaceType>;
45
45
  };
46
46
  };
47
47
  //# sourceMappingURL=query.d.ts.map
@@ -1,4 +1,4 @@
1
- import { Commitment } from '@solana/rpc-core';
1
+ import { Commitment } from '@solana/rpc-types';
2
2
  import { TransactionSignature, TransactionVersion } from '@solana/transactions';
3
3
  import { RpcGraphQLContext } from '../../context';
4
4
  export type TransactionQueryArgs = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/rpc-graphql",
3
- "version": "2.0.0-experimental.ce179f2",
3
+ "version": "2.0.0-experimental.d32897d",
4
4
  "description": "A library for resolving GraphQl query calls to the Solana JSON RPC API",
5
5
  "exports": {
6
6
  "browser": {
@@ -67,10 +67,11 @@
67
67
  "tsup": "7.2.0",
68
68
  "typescript": "^5.1.6",
69
69
  "version-from-git": "^1.1.1",
70
- "@solana/addresses": "2.0.0-experimental.ce179f2",
71
- "@solana/rpc-core": "2.0.0-experimental.ce179f2",
72
- "@solana/rpc-transport": "2.0.0-experimental.ce179f2",
73
- "@solana/transactions": "2.0.0-experimental.ce179f2",
70
+ "@solana/addresses": "2.0.0-experimental.d32897d",
71
+ "@solana/rpc-core": "2.0.0-experimental.d32897d",
72
+ "@solana/rpc-types": "2.0.0-experimental.d32897d",
73
+ "@solana/rpc-transport": "2.0.0-experimental.d32897d",
74
+ "@solana/transactions": "2.0.0-experimental.d32897d",
74
75
  "build-scripts": "0.0.0",
75
76
  "test-config": "0.0.0",
76
77
  "tsconfig": "0.0.0"
@@ -1,3 +0,0 @@
1
- import { GraphQLObjectType } from 'graphql';
2
- export declare const programAccount: () => GraphQLObjectType<any, any>;
3
- //# sourceMappingURL=types.d.ts.map