@solana/rpc-graphql 2.0.0-experimental.b153bb7 → 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 +229 -114
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +224 -114
- package/dist/index.browser.js.map +1 -1
- package/dist/index.native.js +224 -114
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +229 -114
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +224 -114
- package/dist/index.node.js.map +1 -1
- package/dist/types/context.d.ts +6 -4
- package/dist/types/loaders/account.d.ts +16 -2
- package/dist/types/loaders/block.d.ts +12 -2
- package/dist/types/loaders/common/resolve-info.d.ts +3 -0
- package/dist/types/loaders/program-accounts.d.ts +1 -1
- package/dist/types/loaders/transaction.d.ts +10 -6
- package/dist/types/resolvers/account.d.ts +1 -1
- package/dist/types/schema/account.d.ts +22 -22
- package/dist/types/schema/block.d.ts +8 -2
- package/dist/types/schema/common/types.d.ts +2 -2
- package/dist/types/schema/instruction.d.ts +256 -256
- package/package.json +9 -7
package/dist/types/context.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { GraphQLResolveInfo } from 'graphql';
|
|
2
2
|
import { GraphQLCache } from './cache';
|
|
3
|
-
import { loadAccount } from './loaders/account';
|
|
4
|
-
import { loadBlock } from './loaders/block';
|
|
5
3
|
import { loadProgramAccounts } from './loaders/program-accounts';
|
|
6
4
|
import { loadTransaction } from './loaders/transaction';
|
|
7
5
|
import { createRpcGraphQL } from './rpc';
|
|
@@ -10,13 +8,17 @@ import { BlockQueryArgs } from './schema/block';
|
|
|
10
8
|
import { ProgramAccountsQueryArgs } from './schema/program-accounts';
|
|
11
9
|
import { TransactionQueryArgs } from './schema/transaction';
|
|
12
10
|
export type Rpc = Parameters<typeof createRpcGraphQL>[0];
|
|
11
|
+
type Loader<TArgs> = {
|
|
12
|
+
load: (args: TArgs, info?: GraphQLResolveInfo | undefined) => Promise<unknown>;
|
|
13
|
+
};
|
|
13
14
|
export interface RpcGraphQLContext {
|
|
14
15
|
cache: GraphQLCache;
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
accountLoader: Loader<AccountQueryArgs>;
|
|
17
|
+
blockLoader: Loader<BlockQueryArgs>;
|
|
17
18
|
loadProgramAccounts(args: ProgramAccountsQueryArgs, info?: GraphQLResolveInfo): ReturnType<typeof loadProgramAccounts>;
|
|
18
19
|
loadTransaction(args: TransactionQueryArgs, info?: GraphQLResolveInfo): ReturnType<typeof loadTransaction>;
|
|
19
20
|
rpc: Rpc;
|
|
20
21
|
}
|
|
21
22
|
export declare function createSolanaGraphQLContext(rpc: Rpc): RpcGraphQLContext;
|
|
23
|
+
export {};
|
|
22
24
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -1,7 +1,17 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
1
2
|
import { GraphQLResolveInfo } from 'graphql';
|
|
2
|
-
import { GraphQLCache } from '../cache';
|
|
3
3
|
import type { Rpc } from '../context';
|
|
4
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
|
+
};
|
|
5
15
|
export declare function refineJsonParsedAccountData(jsonParsedAccountData: any): {
|
|
6
16
|
data: any;
|
|
7
17
|
meta: {
|
|
@@ -10,5 +20,9 @@ export declare function refineJsonParsedAccountData(jsonParsedAccountData: any):
|
|
|
10
20
|
type: any;
|
|
11
21
|
};
|
|
12
22
|
};
|
|
13
|
-
export declare function loadAccount({ address,
|
|
23
|
+
export declare function loadAccount(rpc: Rpc, { address, ...config }: ReturnType<typeof normalizeArgs>): Promise<any>;
|
|
24
|
+
export declare function createAccountLoader(rpc: Rpc): {
|
|
25
|
+
load: (args: AccountQueryArgs, info?: GraphQLResolveInfo) => Promise<any>;
|
|
26
|
+
};
|
|
27
|
+
export {};
|
|
14
28
|
//# sourceMappingURL=account.d.ts.map
|
|
@@ -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
|
|
@@ -2,5 +2,5 @@ import { GraphQLResolveInfo } from 'graphql';
|
|
|
2
2
|
import { GraphQLCache } from '../cache';
|
|
3
3
|
import type { Rpc } from '../context';
|
|
4
4
|
import { ProgramAccountsQueryArgs } from '../schema/program-accounts';
|
|
5
|
-
export declare function loadProgramAccounts({ programAddress,
|
|
5
|
+
export declare function loadProgramAccounts({ programAddress, ...config }: ProgramAccountsQueryArgs, cache: GraphQLCache, rpc: Rpc, _info?: GraphQLResolveInfo): Promise<{} | undefined>;
|
|
6
6
|
//# sourceMappingURL=program-accounts.d.ts.map
|
|
@@ -2,11 +2,15 @@ import { GraphQLResolveInfo } from 'graphql';
|
|
|
2
2
|
import { GraphQLCache } from '../cache';
|
|
3
3
|
import type { Rpc } from '../context';
|
|
4
4
|
import { TransactionQueryArgs } from '../schema/transaction';
|
|
5
|
-
export declare function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
export declare function refineJsonParsedTransaction({ encoding, transaction }: {
|
|
6
|
+
encoding: string;
|
|
7
|
+
transaction: any;
|
|
8
|
+
}): {
|
|
9
|
+
data: any;
|
|
10
|
+
encoding: string;
|
|
11
|
+
meta: any;
|
|
12
|
+
slot: any;
|
|
13
|
+
version: any;
|
|
9
14
|
};
|
|
10
|
-
export declare function
|
|
11
|
-
export declare function loadTransaction({ signature, encoding, ...config }: TransactionQueryArgs, cache: GraphQLCache, rpc: Rpc, _info?: GraphQLResolveInfo): Promise<any>;
|
|
15
|
+
export declare function loadTransaction({ signature, ...config }: TransactionQueryArgs, cache: GraphQLCache, rpc: Rpc, _info?: GraphQLResolveInfo): Promise<{} | null | undefined>;
|
|
12
16
|
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -4,5 +4,5 @@ import { RpcGraphQLContext } from '../context';
|
|
|
4
4
|
import { AccountQueryArgs } from '../schema/account';
|
|
5
5
|
export declare const resolveAccount: (fieldName: string) => (parent: {
|
|
6
6
|
[x: string]: Address;
|
|
7
|
-
}, args: AccountQueryArgs, context: RpcGraphQLContext, info: GraphQLResolveInfo | undefined) => Promise<
|
|
7
|
+
}, args: AccountQueryArgs, context: RpcGraphQLContext, info: GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
8
8
|
//# sourceMappingURL=account.d.ts.map
|
|
@@ -21,104 +21,104 @@ export declare const accountResolvers: {
|
|
|
21
21
|
AccountBase58: {
|
|
22
22
|
owner: (parent: {
|
|
23
23
|
[x: string]: Address;
|
|
24
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
24
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
25
25
|
};
|
|
26
26
|
AccountBase64: {
|
|
27
27
|
owner: (parent: {
|
|
28
28
|
[x: string]: Address;
|
|
29
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
29
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
30
30
|
};
|
|
31
31
|
AccountBase64Zstd: {
|
|
32
32
|
owner: (parent: {
|
|
33
33
|
[x: string]: Address;
|
|
34
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
34
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
35
35
|
};
|
|
36
36
|
NonceAccountData: {
|
|
37
37
|
authority: (parent: {
|
|
38
38
|
[x: string]: Address;
|
|
39
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
39
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
40
40
|
};
|
|
41
41
|
NonceAccount: {
|
|
42
42
|
owner: (parent: {
|
|
43
43
|
[x: string]: Address;
|
|
44
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
44
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
45
45
|
};
|
|
46
46
|
LookupTableAccountData: {
|
|
47
47
|
authority: (parent: {
|
|
48
48
|
[x: string]: Address;
|
|
49
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
49
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
50
50
|
};
|
|
51
51
|
LookupTableAccount: {
|
|
52
52
|
owner: (parent: {
|
|
53
53
|
[x: string]: Address;
|
|
54
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
54
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
55
55
|
};
|
|
56
56
|
MintAccountData: {
|
|
57
57
|
freezeAuthority: (parent: {
|
|
58
58
|
[x: string]: Address;
|
|
59
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
59
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
60
60
|
mintAuthority: (parent: {
|
|
61
61
|
[x: string]: Address;
|
|
62
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
62
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
63
63
|
};
|
|
64
64
|
MintAccount: {
|
|
65
65
|
owner: (parent: {
|
|
66
66
|
[x: string]: Address;
|
|
67
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
67
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
68
68
|
};
|
|
69
69
|
TokenAccountData: {
|
|
70
70
|
mint: (parent: {
|
|
71
71
|
[x: string]: Address;
|
|
72
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
72
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
73
73
|
owner: (parent: {
|
|
74
74
|
[x: string]: Address;
|
|
75
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
75
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
76
76
|
};
|
|
77
77
|
TokenAccount: {
|
|
78
78
|
owner: (parent: {
|
|
79
79
|
[x: string]: Address;
|
|
80
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
80
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
81
81
|
};
|
|
82
82
|
StakeAccountDataMetaAuthorized: {
|
|
83
83
|
staker: (parent: {
|
|
84
84
|
[x: string]: Address;
|
|
85
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
85
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
86
86
|
withdrawer: (parent: {
|
|
87
87
|
[x: string]: Address;
|
|
88
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
88
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
89
89
|
};
|
|
90
90
|
StakeAccountDataMetaLockup: {
|
|
91
91
|
custodian: (parent: {
|
|
92
92
|
[x: string]: Address;
|
|
93
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
93
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
94
94
|
};
|
|
95
95
|
StakeAccountDataStakeDelegation: {
|
|
96
96
|
voter: (parent: {
|
|
97
97
|
[x: string]: Address;
|
|
98
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
98
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
99
99
|
};
|
|
100
100
|
StakeAccount: {
|
|
101
101
|
owner: (parent: {
|
|
102
102
|
[x: string]: Address;
|
|
103
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
103
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
104
104
|
};
|
|
105
105
|
VoteAccountDataAuthorizedVoter: {
|
|
106
106
|
authorizedVoter: (parent: {
|
|
107
107
|
[x: string]: Address;
|
|
108
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
108
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
109
109
|
};
|
|
110
110
|
VoteAccountData: {
|
|
111
111
|
authorizedWithdrawer: (parent: {
|
|
112
112
|
[x: string]: Address;
|
|
113
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
113
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
114
114
|
node: (parent: {
|
|
115
115
|
[x: string]: Address;
|
|
116
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
116
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
117
117
|
};
|
|
118
118
|
VoteAccount: {
|
|
119
119
|
owner: (parent: {
|
|
120
120
|
[x: string]: Address;
|
|
121
|
-
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
121
|
+
}, args: AccountQueryArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
122
122
|
};
|
|
123
123
|
};
|
|
124
124
|
//# sourceMappingURL=account.d.ts.map
|
|
@@ -6,6 +6,12 @@ export type BlockQueryArgs = {
|
|
|
6
6
|
encoding?: 'base58' | 'base64' | 'jsonParsed';
|
|
7
7
|
transactionDetails?: 'accounts' | 'full' | 'none' | 'signatures';
|
|
8
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: [String]\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
|
|
10
|
-
export declare const blockResolvers: {
|
|
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: [String]\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";
|
|
10
|
+
export declare const blockResolvers: {
|
|
11
|
+
Block: {
|
|
12
|
+
__resolveType(block: {
|
|
13
|
+
transactionDetails: string;
|
|
14
|
+
}): "BlockWithAccounts" | "BlockWithNone" | "BlockWithSignatures" | "BlockWithFull";
|
|
15
|
+
};
|
|
16
|
+
};
|
|
11
17
|
//# sourceMappingURL=block.d.ts.map
|
|
@@ -3,10 +3,10 @@ export declare const commonResolvers: {
|
|
|
3
3
|
TokenBalance: {
|
|
4
4
|
mint: (parent: {
|
|
5
5
|
[x: string]: import("@solana/addresses").Address;
|
|
6
|
-
}, args: import("../account").AccountQueryArgs, context: import("../../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
6
|
+
}, args: import("../account").AccountQueryArgs, context: import("../../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
7
7
|
owner: (parent: {
|
|
8
8
|
[x: string]: import("@solana/addresses").Address;
|
|
9
|
-
}, args: import("../account").AccountQueryArgs, context: import("../../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<
|
|
9
|
+
}, args: import("../account").AccountQueryArgs, context: import("../../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
//# sourceMappingURL=types.d.ts.map
|