@solana/rpc-graphql 2.0.0-experimental.fbd3974 → 2.0.0-experimental.fcff844
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/README.md +193 -277
- package/dist/index.browser.cjs +2370 -4782
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +2357 -4774
- package/dist/index.browser.js.map +1 -1
- package/dist/index.native.js +2357 -4770
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +2361 -4769
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +2357 -4770
- package/dist/index.node.js.map +1 -1
- package/dist/types/context.d.ts +17 -16
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/loaders/account.d.ts +7 -0
- package/dist/types/loaders/account.d.ts.map +1 -0
- package/dist/types/loaders/block.d.ts +7 -0
- package/dist/types/loaders/block.d.ts.map +1 -0
- package/dist/types/loaders/common/resolve-info.d.ts +3 -0
- package/dist/types/loaders/common/resolve-info.d.ts.map +1 -0
- package/dist/types/loaders/program-accounts.d.ts +9 -0
- package/dist/types/loaders/program-accounts.d.ts.map +1 -0
- package/dist/types/loaders/transaction.d.ts +7 -0
- package/dist/types/loaders/transaction.d.ts.map +1 -0
- package/dist/types/loaders/transformers/account.d.ts +8 -0
- package/dist/types/loaders/transformers/account.d.ts.map +1 -0
- package/dist/types/loaders/transformers/block.d.ts +6 -0
- package/dist/types/loaders/transformers/block.d.ts.map +1 -0
- package/dist/types/loaders/transformers/transaction.d.ts +5 -0
- package/dist/types/loaders/transformers/transaction.d.ts.map +1 -0
- package/dist/types/resolvers/account.d.ts +8 -0
- package/dist/types/resolvers/account.d.ts.map +1 -0
- package/dist/types/rpc.d.ts +5 -3
- package/dist/types/rpc.d.ts.map +1 -1
- package/dist/types/schema/account.d.ts +112 -0
- package/dist/types/schema/account.d.ts.map +1 -0
- package/dist/types/schema/block.d.ts +17 -0
- package/dist/types/schema/block.d.ts.map +1 -0
- package/dist/types/schema/common/inputs.d.ts +3 -0
- package/dist/types/schema/common/inputs.d.ts.map +1 -0
- package/dist/types/schema/common/scalars.d.ts +45 -0
- package/dist/types/schema/common/scalars.d.ts.map +1 -0
- package/dist/types/schema/common/types.d.ts +27 -0
- package/dist/types/schema/common/types.d.ts.map +1 -0
- package/dist/types/schema/index.d.ts +2 -0
- package/dist/types/schema/index.d.ts.map +1 -0
- package/dist/types/schema/instruction.d.ts +949 -0
- package/dist/types/schema/instruction.d.ts.map +1 -0
- package/dist/types/schema/program-accounts.d.ts +12 -0
- package/dist/types/schema/program-accounts.d.ts.map +1 -0
- package/dist/types/schema/transaction.d.ts +16 -0
- package/dist/types/schema/transaction.d.ts.map +1 -0
- package/package.json +14 -10
- package/dist/types/cache.d.ts +0 -7
- package/dist/types/cache.d.ts.map +0 -1
- package/dist/types/schema/account/index.d.ts +0 -3
- package/dist/types/schema/account/index.d.ts.map +0 -1
- package/dist/types/schema/account/query.d.ts +0 -38
- package/dist/types/schema/account/query.d.ts.map +0 -1
- package/dist/types/schema/account/types.d.ts +0 -5
- package/dist/types/schema/account/types.d.ts.map +0 -1
- package/dist/types/schema/block/index.d.ts +0 -3
- package/dist/types/schema/block/index.d.ts.map +0 -1
- package/dist/types/schema/block/query.d.ts +0 -42
- package/dist/types/schema/block/query.d.ts.map +0 -1
- package/dist/types/schema/block/types.d.ts +0 -7
- package/dist/types/schema/block/types.d.ts.map +0 -1
- package/dist/types/schema/inputs.d.ts +0 -9
- package/dist/types/schema/inputs.d.ts.map +0 -1
- package/dist/types/schema/picks.d.ts +0 -36
- package/dist/types/schema/picks.d.ts.map +0 -1
- package/dist/types/schema/program-accounts/index.d.ts +0 -2
- package/dist/types/schema/program-accounts/index.d.ts.map +0 -1
- package/dist/types/schema/program-accounts/query.d.ts +0 -47
- package/dist/types/schema/program-accounts/query.d.ts.map +0 -1
- package/dist/types/schema/scalars.d.ts +0 -3
- package/dist/types/schema/scalars.d.ts.map +0 -1
- package/dist/types/schema/transaction/index.d.ts +0 -3
- package/dist/types/schema/transaction/index.d.ts.map +0 -1
- package/dist/types/schema/transaction/query.d.ts +0 -33
- package/dist/types/schema/transaction/query.d.ts.map +0 -1
- package/dist/types/schema/transaction/types.d.ts +0 -12
- package/dist/types/schema/transaction/types.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/schema/instruction.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,mBAAmB,s6xBAi2B/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;mCAEE;YAAE,WAAW,EAAE,MAAM,CAAC;YAAC,eAAe,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwsBlF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
import { DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, Slot } from '@solana/rpc-core';
|
|
3
|
+
import { Commitment } from '@solana/rpc-types';
|
|
4
|
+
export type ProgramAccountsQueryArgs = {
|
|
5
|
+
programAddress: Address;
|
|
6
|
+
commitment?: Commitment;
|
|
7
|
+
dataSlice?: DataSlice;
|
|
8
|
+
encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed';
|
|
9
|
+
filters: (GetProgramAccountsMemcmpFilter | GetProgramAccountsDatasizeFilter)[];
|
|
10
|
+
minContextSlot?: Slot;
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=program-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program-accounts.d.ts","sourceRoot":"","sources":["../../../src/schema/program-accounts.ts"],"names":[],"mappings":"AAAA,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,MAAM,MAAM,wBAAwB,GAAG;IACnC,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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Signature } from '@solana/keys';
|
|
2
|
+
import { Commitment } from '@solana/rpc-types';
|
|
3
|
+
export type TransactionQueryArgs = {
|
|
4
|
+
signature: Signature;
|
|
5
|
+
commitment?: Commitment;
|
|
6
|
+
encoding?: 'base58' | 'base64' | 'jsonParsed';
|
|
7
|
+
};
|
|
8
|
+
export declare const transactionTypeDefs = "\n type TransactionStatusOk {\n Ok: String\n }\n type TransactionStatusErr {\n Err: String\n }\n union TransactionStatus = TransactionStatusOk | TransactionStatusErr\n\n type TransactionLoadedAddresses {\n readonly: [String]\n writable: [String]\n }\n\n type TransactionInnerInstruction {\n index: Int\n instructions: [TransactionInstruction]\n }\n\n type TransactionMeta {\n computeUnitsConsumed: BigInt\n err: String\n fee: BigInt\n innerInstructions: [TransactionInnerInstruction]\n loadedAddresses: TransactionLoadedAddresses\n logMessages: [String]\n postBalances: [BigInt]\n postTokenBalances: [TokenBalance]\n preBalances: [BigInt]\n preTokenBalances: [TokenBalance]\n returnData: ReturnData\n rewards: [Reward]\n status: TransactionStatus\n }\n\n type TransactionMessageAccountKey {\n pubkey: Address\n signer: Boolean\n source: String\n writable: Boolean\n }\n\n type TransactionMessageAddressTableLookup {\n accountKey: Address\n readableIndexes: [Int]\n writableIndexes: [Int]\n }\n\n type TransactionMessageHeader {\n numReadonlySignedAccounts: Int\n numReadonlyUnsignedAccounts: Int\n numRequiredSignatures: Int\n }\n\n type TransactionMessage {\n accountKeys: [TransactionMessageAccountKey]\n addressTableLookups: [TransactionMessageAddressTableLookup]\n header: TransactionMessageHeader\n instructions: [TransactionInstruction]\n recentBlockhash: String\n }\n\n # Transaction interface\n interface Transaction {\n blockTime: String\n meta: TransactionMeta\n slot: BigInt\n version: String\n }\n\n # A transaction with base58 encoded data\n type TransactionBase58 implements Transaction {\n blockTime: String\n data: Base58EncodedBytes\n meta: TransactionMeta\n slot: BigInt\n version: String\n }\n\n # A transaction with base64 encoded data\n type TransactionBase64 implements Transaction {\n blockTime: String\n data: Base64EncodedBytes\n meta: TransactionMeta\n slot: BigInt\n version: String\n }\n\n # A transaction with JSON encoded data\n type TransactionDataParsed {\n message: TransactionMessage\n signatures: [String]\n }\n type TransactionParsed implements Transaction {\n blockTime: String\n data: TransactionDataParsed\n meta: TransactionMeta\n slot: BigInt\n version: String\n }\n";
|
|
9
|
+
export declare const transactionResolvers: {
|
|
10
|
+
Transaction: {
|
|
11
|
+
__resolveType(transaction: {
|
|
12
|
+
encoding: string;
|
|
13
|
+
}): "TransactionBase58" | "TransactionBase64" | "TransactionParsed";
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/schema/transaction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,MAAM,oBAAoB,GAAG;IAC/B,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;CACjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,woFAoG/B,CAAC;AAEF,eAAO,MAAM,oBAAoB;;mCAEE;YAAE,QAAQ,EAAE,MAAM,CAAA;SAAE;;CAWtD,CAAC"}
|
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.fcff844",
|
|
4
4
|
"description": "A library for resolving GraphQl query calls to the Solana JSON RPC API",
|
|
5
5
|
"exports": {
|
|
6
6
|
"browser": {
|
|
@@ -46,6 +46,9 @@
|
|
|
46
46
|
"maintained node versions"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
+
"@graphql-tools/schema": "^10.0.0",
|
|
50
|
+
"dataloader": "^2.2.2",
|
|
51
|
+
"fast-stable-stringify": "^1.0.0",
|
|
49
52
|
"graphql": "^16.8.0"
|
|
50
53
|
},
|
|
51
54
|
"devDependencies": {
|
|
@@ -63,18 +66,19 @@
|
|
|
63
66
|
"jest-fetch-mock-fork": "^3.0.4",
|
|
64
67
|
"jest-runner-eslint": "^2.1.2",
|
|
65
68
|
"jest-runner-prettier": "^1.0.0",
|
|
66
|
-
"prettier": "^
|
|
67
|
-
"tsup": "
|
|
69
|
+
"prettier": "^3.1",
|
|
70
|
+
"tsup": "^8.0.1",
|
|
68
71
|
"typescript": "^5.1.6",
|
|
69
72
|
"version-from-git": "^1.1.1",
|
|
70
|
-
"@solana/
|
|
71
|
-
"@solana/
|
|
72
|
-
"@solana/rpc-
|
|
73
|
-
"@solana/rpc-transport": "2.0.0-experimental.
|
|
74
|
-
"@solana/
|
|
73
|
+
"@solana/keys": "2.0.0-experimental.fcff844",
|
|
74
|
+
"@solana/addresses": "2.0.0-experimental.fcff844",
|
|
75
|
+
"@solana/rpc-core": "2.0.0-experimental.fcff844",
|
|
76
|
+
"@solana/rpc-transport": "2.0.0-experimental.fcff844",
|
|
77
|
+
"@solana/rpc-types": "2.0.0-experimental.fcff844",
|
|
78
|
+
"@solana/transactions": "2.0.0-experimental.fcff844",
|
|
75
79
|
"build-scripts": "0.0.0",
|
|
76
|
-
"
|
|
77
|
-
"
|
|
80
|
+
"test-config": "0.0.0",
|
|
81
|
+
"tsconfig": "0.0.0"
|
|
78
82
|
},
|
|
79
83
|
"bundlewatch": {
|
|
80
84
|
"defaultCompression": "gzip",
|
package/dist/types/cache.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export interface GraphQLCache {
|
|
2
|
-
flush(): void;
|
|
3
|
-
get(key: string | bigint, variables: unknown): unknown | null;
|
|
4
|
-
insert(key: string | bigint, variables: unknown, value: unknown): void;
|
|
5
|
-
}
|
|
6
|
-
export declare function createGraphQLCache(): GraphQLCache;
|
|
7
|
-
//# sourceMappingURL=cache.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["../../src/cache.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,YAAY;IACzB,KAAK,IAAI,IAAI,CAAC;IACd,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,EAAE,OAAO,GAAG,OAAO,GAAG,IAAI,CAAC;IAC9D,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAAC;CAC1E;AAwBD,wBAAgB,kBAAkB,IAAI,YAAY,CAkCjD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/account/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Base58EncodedAddress } from '@solana/addresses';
|
|
2
|
-
import { DataSlice, Slot } from '@solana/rpc-core/dist/types/rpc-methods/common';
|
|
3
|
-
import { Commitment } from '@solana/rpc-types';
|
|
4
|
-
import { RpcGraphQLContext } from '../../context';
|
|
5
|
-
export type AccountQueryArgs = {
|
|
6
|
-
address: Base58EncodedAddress;
|
|
7
|
-
commitment?: Commitment;
|
|
8
|
-
dataSlice?: DataSlice;
|
|
9
|
-
encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed';
|
|
10
|
-
minContextSlot?: Slot;
|
|
11
|
-
};
|
|
12
|
-
/**
|
|
13
|
-
* Account root query for GraphQL
|
|
14
|
-
*/
|
|
15
|
-
export declare const accountQuery: () => {
|
|
16
|
-
account: {
|
|
17
|
-
args: {
|
|
18
|
-
address: {
|
|
19
|
-
type: import("graphql").GraphQLList<import("graphql").GraphQLScalarType<string, string>>;
|
|
20
|
-
};
|
|
21
|
-
commitment: {
|
|
22
|
-
type: import("graphql").GraphQLEnumType;
|
|
23
|
-
};
|
|
24
|
-
dataSlice: {
|
|
25
|
-
type: import("graphql").GraphQLInputObjectType;
|
|
26
|
-
};
|
|
27
|
-
encoding: {
|
|
28
|
-
type: import("graphql").GraphQLEnumType;
|
|
29
|
-
};
|
|
30
|
-
minContextSlot: {
|
|
31
|
-
type: import("graphql").GraphQLScalarType<unknown, unknown>;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
resolve: (_parent: unknown, args: AccountQueryArgs, context: RpcGraphQLContext, info: any) => Promise<{} | undefined>;
|
|
35
|
-
type: import("graphql").GraphQLInterfaceType;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/schema/account/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,gDAAgD,CAAC;AACjF,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAKlD,MAAM,MAAM,gBAAgB,GAAG;IAC3B,OAAO,EAAE,oBAAoB,CAAC;IAC9B,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,CAAC;IAC9D,cAAc,CAAC,EAAE,IAAI,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;2BAUE,OAAO,QAAQ,gBAAgB,WAAW,iBAAiB,QAAQ,GAAG;;;CAI/F,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { GraphQLInterfaceType, GraphQLObjectType } from 'graphql';
|
|
2
|
-
export declare const tokenAmountType: () => GraphQLObjectType<any, any>;
|
|
3
|
-
export declare const accountInterface: () => GraphQLInterfaceType;
|
|
4
|
-
export declare const accountTypes: () => GraphQLObjectType<any, any>[];
|
|
5
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/schema/account/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAqB,MAAM,SAAS,CAAC;AAMrF,eAAO,MAAM,eAAe,mCAa3B,CAAC;AAuBF,eAAO,MAAM,gBAAgB,QAAO,oBA4CnC,CAAC;AAoWF,eAAO,MAAM,YAAY,qCAcxB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/block/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Slot } from '@solana/rpc-core/dist/types/rpc-methods/common';
|
|
2
|
-
import { Commitment } from '@solana/rpc-types';
|
|
3
|
-
import { TransactionVersion } from '@solana/transactions';
|
|
4
|
-
import { RpcGraphQLContext } from '../../context';
|
|
5
|
-
export type BlockQueryArgs = {
|
|
6
|
-
slot: Slot;
|
|
7
|
-
commitment?: Commitment;
|
|
8
|
-
encoding?: 'base58' | 'base64' | 'json' | 'jsonParsed';
|
|
9
|
-
maxSupportedTransactionVersion?: Exclude<TransactionVersion, 'legacy'>;
|
|
10
|
-
rewards?: boolean;
|
|
11
|
-
transactionDetails?: 'accounts' | 'full' | 'none' | 'signatures';
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* Block root query for GraphQL
|
|
15
|
-
*/
|
|
16
|
-
export declare const blockQuery: () => {
|
|
17
|
-
block: {
|
|
18
|
-
args: {
|
|
19
|
-
commitment: {
|
|
20
|
-
type: import("graphql").GraphQLEnumType;
|
|
21
|
-
};
|
|
22
|
-
encoding: {
|
|
23
|
-
type: import("graphql").GraphQLEnumType;
|
|
24
|
-
};
|
|
25
|
-
maxSupportedTransactionVersion: {
|
|
26
|
-
type: import("graphql").GraphQLScalarType<string, string>;
|
|
27
|
-
};
|
|
28
|
-
rewards: {
|
|
29
|
-
type: import("graphql").GraphQLScalarType<boolean, boolean>;
|
|
30
|
-
};
|
|
31
|
-
slot: {
|
|
32
|
-
type: import("graphql").GraphQLList<import("graphql").GraphQLScalarType<unknown, unknown>>;
|
|
33
|
-
};
|
|
34
|
-
transactionDetails: {
|
|
35
|
-
type: import("graphql").GraphQLEnumType;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
resolve: (_parent: unknown, args: BlockQueryArgs, context: RpcGraphQLContext) => Promise<{} | null | undefined>;
|
|
39
|
-
type: import("graphql").GraphQLInterfaceType;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/schema/block/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,gDAAgD,CAAC;AACtE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAKlD,MAAM,MAAM,cAAc,GAAG;IACzB,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,YAAY,CAAC;IACvD,8BAA8B,CAAC,EAAE,OAAO,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC;IACvE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;CACpE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;2BAUI,OAAO,QAAQ,cAAc,WAAW,iBAAiB;;;CAGlF,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { GraphQLInterfaceType, GraphQLObjectType } from 'graphql';
|
|
2
|
-
/**
|
|
3
|
-
* Interface for a block
|
|
4
|
-
*/
|
|
5
|
-
export declare const blockInterface: () => GraphQLInterfaceType;
|
|
6
|
-
export declare const blockTypes: () => GraphQLObjectType<any, any>[];
|
|
7
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/schema/block/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AA0DlE;;GAEG;AACH,eAAO,MAAM,cAAc,4BAqB1B,CAAC;AA0DF,eAAO,MAAM,UAAU,qCAStB,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { GraphQLEnumType, GraphQLInputObjectType } from 'graphql';
|
|
2
|
-
export declare const accountEncodingInputType: () => GraphQLEnumType;
|
|
3
|
-
export declare const blockTransactionDetailsInputType: () => GraphQLEnumType;
|
|
4
|
-
export declare const commitmentInputType: () => GraphQLEnumType;
|
|
5
|
-
export declare const dataSliceInputType: () => GraphQLInputObjectType;
|
|
6
|
-
export declare const maxSupportedTransactionVersionInputType: () => GraphQLEnumType;
|
|
7
|
-
export declare const programAccountFilterInputType: () => GraphQLInputObjectType;
|
|
8
|
-
export declare const transactionEncodingInputType: () => GraphQLEnumType;
|
|
9
|
-
//# sourceMappingURL=inputs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../src/schema/inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAKlE,eAAO,MAAM,wBAAwB,uBAoBpC,CAAC;AAGF,eAAO,MAAM,gCAAgC,uBAoB5C,CAAC;AAGF,eAAO,MAAM,mBAAmB,uBAiB/B,CAAC;AAGF,eAAO,MAAM,kBAAkB,8BAU9B,CAAC;AAGF,eAAO,MAAM,uCAAuC,uBAcnD,CAAC;AAGF,eAAO,MAAM,6BAA6B,8BAYzC,CAAC;AAGF,eAAO,MAAM,4BAA4B,uBAoBxC,CAAC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { GraphQLEnumType, GraphQLInputObjectType, GraphQLInterfaceType, GraphQLList, GraphQLObjectType, GraphQLScalarType, GraphQLUnionType } from 'graphql';
|
|
2
|
-
type GraphQLType = GraphQLEnumType | GraphQLInputObjectType | GraphQLInterfaceType | GraphQLObjectType | GraphQLScalarType | GraphQLUnionType;
|
|
3
|
-
export declare function boolean(): {
|
|
4
|
-
type: GraphQLScalarType<boolean, boolean>;
|
|
5
|
-
};
|
|
6
|
-
export declare function bigint(): {
|
|
7
|
-
type: GraphQLScalarType<unknown, unknown>;
|
|
8
|
-
};
|
|
9
|
-
export declare function float(): {
|
|
10
|
-
type: GraphQLScalarType<number, number>;
|
|
11
|
-
};
|
|
12
|
-
export declare function number(): {
|
|
13
|
-
type: GraphQLScalarType<number, number>;
|
|
14
|
-
};
|
|
15
|
-
export declare function string(): {
|
|
16
|
-
type: GraphQLScalarType<string, string>;
|
|
17
|
-
};
|
|
18
|
-
export declare function type<TFieldType extends GraphQLType>(fieldType: TFieldType): {
|
|
19
|
-
type: TFieldType;
|
|
20
|
-
};
|
|
21
|
-
export declare function nonNull<TFieldType extends GraphQLType>(fieldType: {
|
|
22
|
-
type: TFieldType;
|
|
23
|
-
}): {
|
|
24
|
-
type: GraphQLList<TFieldType>;
|
|
25
|
-
};
|
|
26
|
-
export declare function list<TElementType extends GraphQLType>(elementType: {
|
|
27
|
-
type: TElementType;
|
|
28
|
-
}): {
|
|
29
|
-
type: GraphQLList<TElementType>;
|
|
30
|
-
};
|
|
31
|
-
type ConstructorParametersOf<T> = T extends new (...args: infer P) => unknown ? P : never;
|
|
32
|
-
export declare function object(name: string, fields: ConstructorParametersOf<typeof GraphQLObjectType>[0]['fields']): {
|
|
33
|
-
type: GraphQLObjectType;
|
|
34
|
-
};
|
|
35
|
-
export {};
|
|
36
|
-
//# sourceMappingURL=picks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"picks.d.ts","sourceRoot":"","sources":["../../../src/schema/picks.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,eAAe,EAEf,sBAAsB,EAEtB,oBAAoB,EACpB,WAAW,EAEX,iBAAiB,EACjB,iBAAiB,EAEjB,gBAAgB,EACnB,MAAM,SAAS,CAAC;AAIjB,KAAK,WAAW,GACV,eAAe,GACf,sBAAsB,GACtB,oBAAoB,GACpB,iBAAiB,GACjB,iBAAiB,GACjB,gBAAgB,CAAC;AAEvB,wBAAgB,OAAO;;EAEtB;AAGD,wBAAgB,MAAM;;EAGrB;AAED,wBAAgB,KAAK;;EAEpB;AACD,wBAAgB,MAAM;;EAErB;AAED,wBAAgB,MAAM;;EAErB;AAED,wBAAgB,IAAI,CAAC,UAAU,SAAS,WAAW,EAC/C,SAAS,EAAE,UAAU,GACtB;IACC,IAAI,EAAE,UAAU,CAAC;CACpB,CAIA;AAED,wBAAgB,OAAO,CAAC,UAAU,SAAS,WAAW,EAAE,SAAS,EAAE;IAC/D,IAAI,EAAE,UAAU,CAAC;CACpB,GAAG;IACA,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC;CACjC,CAIA;AAED,wBAAgB,IAAI,CAAC,YAAY,SAAS,WAAW,EAAE,WAAW,EAAE;IAChE,IAAI,EAAE,YAAY,CAAC;CACtB,GAAG;IACA,IAAI,EAAE,WAAW,CAAC,YAAY,CAAC,CAAC;CACnC,CAIA;AAED,KAAK,uBAAuB,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,GAAG,IAAI,EAAE,MAAM,CAAC,KAAK,OAAO,GAAG,CAAC,GAAG,KAAK,CAAC;AAE1F,wBAAgB,MAAM,CAClB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,uBAAuB,CAAC,OAAO,iBAAiB,CAAC,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GACvE;IAAE,IAAI,EAAE,iBAAiB,CAAA;CAAE,CAO7B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/program-accounts/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Base58EncodedAddress } from '@solana/addresses';
|
|
2
|
-
import { DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, Slot } from '@solana/rpc-core/dist/types/rpc-methods/common';
|
|
3
|
-
import { Commitment } from '@solana/rpc-types';
|
|
4
|
-
import { GraphQLList } from 'graphql';
|
|
5
|
-
import { RpcGraphQLContext } from '../../context';
|
|
6
|
-
export type ProgramAccountsQueryArgs = {
|
|
7
|
-
programAddress: Base58EncodedAddress;
|
|
8
|
-
commitment?: Commitment;
|
|
9
|
-
dataSlice?: DataSlice;
|
|
10
|
-
encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed';
|
|
11
|
-
filters: (GetProgramAccountsMemcmpFilter | GetProgramAccountsDatasizeFilter)[];
|
|
12
|
-
minContextSlot?: Slot;
|
|
13
|
-
withContext?: boolean;
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* Program accounts root query for GraphQL
|
|
17
|
-
*/
|
|
18
|
-
export declare const programAccountsQuery: () => {
|
|
19
|
-
programAccounts: {
|
|
20
|
-
args: {
|
|
21
|
-
commitment: {
|
|
22
|
-
type: import("graphql").GraphQLEnumType;
|
|
23
|
-
};
|
|
24
|
-
dataSlice: {
|
|
25
|
-
type: import("graphql").GraphQLInputObjectType;
|
|
26
|
-
};
|
|
27
|
-
encoding: {
|
|
28
|
-
type: import("graphql").GraphQLEnumType;
|
|
29
|
-
};
|
|
30
|
-
filters: {
|
|
31
|
-
type: GraphQLList<import("graphql").GraphQLInputObjectType>;
|
|
32
|
-
};
|
|
33
|
-
minContextSlot: {
|
|
34
|
-
type: import("graphql").GraphQLScalarType<unknown, unknown>;
|
|
35
|
-
};
|
|
36
|
-
programAddress: {
|
|
37
|
-
type: GraphQLList<import("graphql").GraphQLScalarType<string, string>>;
|
|
38
|
-
};
|
|
39
|
-
withContext: {
|
|
40
|
-
type: import("graphql").GraphQLScalarType<string, string>;
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
resolve: (_parent: unknown, args: ProgramAccountsQueryArgs, context: RpcGraphQLContext) => Promise<{} | undefined>;
|
|
44
|
-
type: GraphQLList<import("graphql").GraphQLInterfaceType>;
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/schema/program-accounts/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EACH,SAAS,EACT,gCAAgC,EAChC,8BAA8B,EAC9B,IAAI,EACP,MAAM,gDAAgD,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAUlD,MAAM,MAAM,wBAAwB,GAAG;IACnC,cAAc,EAAE,oBAAoB,CAAC;IACrC,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;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;2BAWN,OAAO,QAAQ,wBAAwB,WAAW,iBAAiB;;;CAI5F,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scalars.d.ts","sourceRoot":"","sources":["../../../src/schema/scalars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAQ,MAAM,SAAS,CAAC;AAElD,eAAO,MAAM,YAAY,gDAkBnB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/transaction/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,SAAS,CAAC"}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { Commitment } from '@solana/rpc-types';
|
|
2
|
-
import { TransactionSignature, TransactionVersion } from '@solana/transactions';
|
|
3
|
-
import { RpcGraphQLContext } from '../../context';
|
|
4
|
-
export type TransactionQueryArgs = {
|
|
5
|
-
signature: TransactionSignature;
|
|
6
|
-
commitment?: Commitment;
|
|
7
|
-
encoding?: 'base58' | 'base64' | 'json' | 'jsonParsed';
|
|
8
|
-
maxSupportedTransactionVersion?: Exclude<TransactionVersion, 'legacy'>;
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* Transaction root query for GraphQL
|
|
12
|
-
*/
|
|
13
|
-
export declare const transactionQuery: () => {
|
|
14
|
-
transaction: {
|
|
15
|
-
args: {
|
|
16
|
-
commitment: {
|
|
17
|
-
type: import("graphql").GraphQLEnumType;
|
|
18
|
-
};
|
|
19
|
-
encoding: {
|
|
20
|
-
type: import("graphql").GraphQLEnumType;
|
|
21
|
-
};
|
|
22
|
-
maxSupportedTransactionVersion: {
|
|
23
|
-
type: import("graphql").GraphQLEnumType;
|
|
24
|
-
};
|
|
25
|
-
signature: {
|
|
26
|
-
type: import("graphql").GraphQLList<import("graphql").GraphQLScalarType<string, string>>;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
resolve: (_parent: unknown, args: TransactionQueryArgs, context: RpcGraphQLContext) => Promise<{} | null | undefined>;
|
|
30
|
-
type: import("graphql").GraphQLInterfaceType;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
//# sourceMappingURL=query.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../../src/schema/transaction/query.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAEhF,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAKlD,MAAM,MAAM,oBAAoB,GAAG;IAC/B,SAAS,EAAE,oBAAoB,CAAC;IAChC,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,YAAY,CAAC;IACvD,8BAA8B,CAAC,EAAE,OAAO,CAAC,kBAAkB,EAAE,QAAQ,CAAC,CAAC;CAC1E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;2BAQF,OAAO,QAAQ,oBAAoB,WAAW,iBAAiB;;;CAIxF,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { GraphQLInterfaceType, GraphQLObjectType, GraphQLUnionType } from 'graphql';
|
|
2
|
-
export declare const tokenBalance: () => GraphQLObjectType<any, any>;
|
|
3
|
-
export declare const transactionStatus: () => GraphQLUnionType;
|
|
4
|
-
export declare const reward: () => GraphQLObjectType<any, any>;
|
|
5
|
-
export declare const returnData: () => GraphQLObjectType<any, any>;
|
|
6
|
-
export declare const transactionMetaLoadedAddresses: () => GraphQLObjectType<any, any>;
|
|
7
|
-
/**
|
|
8
|
-
* Interface for a transaction
|
|
9
|
-
*/
|
|
10
|
-
export declare const transactionInterface: () => GraphQLInterfaceType;
|
|
11
|
-
export declare const transactionTypes: () => GraphQLObjectType<any, any>[];
|
|
12
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/schema/transaction/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAe,iBAAiB,EAAqB,gBAAgB,EAAE,MAAM,SAAS,CAAC;AAOpH,eAAO,MAAM,YAAY,mCAqCxB,CAAC;AAGF,eAAO,MAAM,iBAAiB,wBAoB7B,CAAC;AAGF,eAAO,MAAM,MAAM,mCAalB,CAAC;AAiBF,eAAO,MAAM,UAAU,mCAUtB,CAAC;AAiBF,eAAO,MAAM,8BAA8B,mCAU1C,CAAC;AAkpIF;;GAEG;AACH,eAAO,MAAM,oBAAoB,4BAqBhC,CAAC;AAqEF,eAAO,MAAM,gBAAgB,qCAuB5B,CAAC"}
|