@solana/rpc-graphql 2.0.0-experimental.8c5ac55 → 2.0.0-experimental.9c8a30e
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.
- package/dist/index.browser.cjs +160 -33
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +160 -33
- package/dist/index.browser.js.map +1 -1
- package/dist/index.native.js +160 -33
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +160 -33
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +160 -33
- package/dist/index.node.js.map +1 -1
- package/dist/types/context.d.ts +3 -2
- package/dist/types/schema/account/query.d.ts +1 -1
- package/dist/types/schema/program-accounts/query.d.ts +1 -1
- package/package.json +6 -6
- package/dist/types/schema/program-accounts/types.d.ts +0 -3
package/dist/types/context.d.ts
CHANGED
|
@@ -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
|
|
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>;
|
|
@@ -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<{} | undefined>;
|
|
34
|
+
resolve: (_parent: unknown, args: AccountQueryArgs, context: RpcGraphQLContext, info: any) => Promise<{} | undefined>;
|
|
35
35
|
type: import("graphql").GraphQLInterfaceType;
|
|
36
36
|
};
|
|
37
37
|
};
|
|
@@ -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").
|
|
44
|
+
type: GraphQLList<import("graphql").GraphQLInterfaceType>;
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
47
|
//# sourceMappingURL=query.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/rpc-graphql",
|
|
3
|
-
"version": "2.0.0-experimental.
|
|
3
|
+
"version": "2.0.0-experimental.9c8a30e",
|
|
4
4
|
"description": "A library for resolving GraphQl query calls to the Solana JSON RPC API",
|
|
5
5
|
"exports": {
|
|
6
6
|
"browser": {
|
|
@@ -67,11 +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.
|
|
71
|
-
"@solana/rpc-core": "2.0.0-experimental.
|
|
72
|
-
"@solana/rpc-types": "2.0.0-experimental.
|
|
73
|
-
"@solana/rpc-transport": "2.0.0-experimental.
|
|
74
|
-
"@solana/transactions": "2.0.0-experimental.
|
|
70
|
+
"@solana/addresses": "2.0.0-experimental.9c8a30e",
|
|
71
|
+
"@solana/rpc-core": "2.0.0-experimental.9c8a30e",
|
|
72
|
+
"@solana/rpc-types": "2.0.0-experimental.9c8a30e",
|
|
73
|
+
"@solana/rpc-transport": "2.0.0-experimental.9c8a30e",
|
|
74
|
+
"@solana/transactions": "2.0.0-experimental.9c8a30e",
|
|
75
75
|
"build-scripts": "0.0.0",
|
|
76
76
|
"test-config": "0.0.0",
|
|
77
77
|
"tsconfig": "0.0.0"
|