@solana/rpc-graphql 2.0.0-experimental.aa4a701 → 2.0.0-experimental.b419cd0
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 +24 -14
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +24 -14
- package/dist/index.browser.js.map +1 -1
- package/dist/index.native.js +24 -14
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +24 -14
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +24 -14
- package/dist/index.node.js.map +1 -1
- package/dist/types/context.d.ts +1 -2
- package/dist/types/loaders/block.d.ts +12 -2
- package/package.json +7 -7
package/dist/types/context.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { GraphQLResolveInfo } from 'graphql';
|
|
2
2
|
import { GraphQLCache } from './cache';
|
|
3
|
-
import { loadBlock } from './loaders/block';
|
|
4
3
|
import { loadProgramAccounts } from './loaders/program-accounts';
|
|
5
4
|
import { loadTransaction } from './loaders/transaction';
|
|
6
5
|
import { createRpcGraphQL } from './rpc';
|
|
@@ -15,7 +14,7 @@ type Loader<TArgs> = {
|
|
|
15
14
|
export interface RpcGraphQLContext {
|
|
16
15
|
cache: GraphQLCache;
|
|
17
16
|
accountLoader: Loader<AccountQueryArgs>;
|
|
18
|
-
|
|
17
|
+
blockLoader: Loader<BlockQueryArgs>;
|
|
19
18
|
loadProgramAccounts(args: ProgramAccountsQueryArgs, info?: GraphQLResolveInfo): ReturnType<typeof loadProgramAccounts>;
|
|
20
19
|
loadTransaction(args: TransactionQueryArgs, info?: GraphQLResolveInfo): ReturnType<typeof loadTransaction>;
|
|
21
20
|
rpc: Rpc;
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import { GraphQLResolveInfo } from 'graphql';
|
|
2
|
-
import { GraphQLCache } from '../cache';
|
|
3
2
|
import type { Rpc } from '../context';
|
|
4
3
|
import { BlockQueryArgs } from '../schema/block';
|
|
5
|
-
|
|
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>;
|
|
12
|
+
export declare function createBlockLoader(rpc: Rpc): {
|
|
13
|
+
load: (args: BlockQueryArgs, info?: GraphQLResolveInfo) => Promise<any>;
|
|
14
|
+
};
|
|
15
|
+
export {};
|
|
6
16
|
//# sourceMappingURL=block.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.b419cd0",
|
|
4
4
|
"description": "A library for resolving GraphQl query calls to the Solana JSON RPC API",
|
|
5
5
|
"exports": {
|
|
6
6
|
"browser": {
|
|
@@ -70,13 +70,13 @@
|
|
|
70
70
|
"tsup": "7.2.0",
|
|
71
71
|
"typescript": "^5.1.6",
|
|
72
72
|
"version-from-git": "^1.1.1",
|
|
73
|
-
"@solana/addresses": "2.0.0-experimental.
|
|
74
|
-
"@solana/rpc-core": "2.0.0-experimental.
|
|
75
|
-
"@solana/
|
|
76
|
-
"@solana/
|
|
77
|
-
"@solana/rpc-types": "2.0.0-experimental.
|
|
73
|
+
"@solana/addresses": "2.0.0-experimental.b419cd0",
|
|
74
|
+
"@solana/rpc-core": "2.0.0-experimental.b419cd0",
|
|
75
|
+
"@solana/rpc-transport": "2.0.0-experimental.b419cd0",
|
|
76
|
+
"@solana/keys": "2.0.0-experimental.b419cd0",
|
|
77
|
+
"@solana/rpc-types": "2.0.0-experimental.b419cd0",
|
|
78
78
|
"build-scripts": "0.0.0",
|
|
79
|
-
"@solana/transactions": "2.0.0-experimental.
|
|
79
|
+
"@solana/transactions": "2.0.0-experimental.b419cd0",
|
|
80
80
|
"test-config": "0.0.0",
|
|
81
81
|
"tsconfig": "0.0.0"
|
|
82
82
|
},
|