@solana/rpc-graphql 2.0.0-experimental.f2a2e5b → 2.0.0-experimental.f4436f4
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 +3008 -2497
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +3009 -2498
- package/dist/index.browser.js.map +1 -1
- package/dist/index.native.js +3009 -2498
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +3008 -2497
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +3009 -2498
- package/dist/index.node.js.map +1 -1
- package/dist/types/context.d.ts +14 -18
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/index.d.ts +6 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/loaders/account.d.ts +11 -12
- package/dist/types/loaders/account.d.ts.map +1 -1
- package/dist/types/loaders/block.d.ts +3 -13
- package/dist/types/loaders/block.d.ts.map +1 -1
- package/dist/types/loaders/coalescer.d.ts +55 -0
- package/dist/types/loaders/coalescer.d.ts.map +1 -0
- package/dist/types/loaders/index.d.ts +6 -0
- package/dist/types/loaders/index.d.ts.map +1 -0
- package/dist/types/loaders/loader.d.ts +82 -0
- package/dist/types/loaders/loader.d.ts.map +1 -0
- package/dist/types/loaders/program-accounts.d.ts +6 -17
- package/dist/types/loaders/program-accounts.d.ts.map +1 -1
- package/dist/types/loaders/transaction.d.ts +3 -12
- package/dist/types/loaders/transaction.d.ts.map +1 -1
- package/dist/types/resolvers/account.d.ts +227 -3
- package/dist/types/resolvers/account.d.ts.map +1 -1
- package/dist/types/resolvers/block.d.ts +104 -0
- package/dist/types/resolvers/block.d.ts.map +1 -0
- package/dist/types/resolvers/index.d.ts +3 -0
- package/dist/types/resolvers/index.d.ts.map +1 -0
- package/dist/types/resolvers/instruction.d.ts +2220 -0
- package/dist/types/resolvers/instruction.d.ts.map +1 -0
- package/dist/types/resolvers/program-accounts.d.ts +19 -0
- package/dist/types/resolvers/program-accounts.d.ts.map +1 -0
- package/dist/types/resolvers/resolve-info/account.d.ts +15 -0
- package/dist/types/resolvers/resolve-info/account.d.ts.map +1 -0
- package/dist/types/resolvers/resolve-info/block.d.ts +13 -0
- package/dist/types/resolvers/resolve-info/block.d.ts.map +1 -0
- package/dist/types/resolvers/resolve-info/index.d.ts +6 -0
- package/dist/types/resolvers/resolve-info/index.d.ts.map +1 -0
- package/dist/types/resolvers/resolve-info/program-accounts.d.ts +20 -0
- package/dist/types/resolvers/resolve-info/program-accounts.d.ts.map +1 -0
- package/dist/types/resolvers/resolve-info/transaction.d.ts +15 -0
- package/dist/types/resolvers/resolve-info/transaction.d.ts.map +1 -0
- package/dist/types/resolvers/resolve-info/visitor.d.ts +18 -0
- package/dist/types/resolvers/resolve-info/visitor.d.ts.map +1 -0
- package/dist/types/resolvers/root.d.ts +3 -0
- package/dist/types/resolvers/root.d.ts.map +1 -0
- package/dist/types/resolvers/transaction.d.ts +42 -0
- package/dist/types/resolvers/transaction.d.ts.map +1 -0
- package/dist/types/resolvers/types.d.ts +94 -0
- package/dist/types/resolvers/types.d.ts.map +1 -0
- package/dist/types/schema/account.d.ts +1 -102
- package/dist/types/schema/account.d.ts.map +1 -1
- package/dist/types/schema/block.d.ts +1 -8
- package/dist/types/schema/block.d.ts.map +1 -1
- package/dist/types/schema/index.d.ts +1 -1
- package/dist/types/schema/index.d.ts.map +1 -1
- package/dist/types/schema/instruction.d.ts +1 -948
- package/dist/types/schema/instruction.d.ts.map +1 -1
- package/dist/types/schema/root.d.ts +2 -0
- package/dist/types/schema/root.d.ts.map +1 -0
- package/dist/types/schema/transaction.d.ts +1 -8
- package/dist/types/schema/transaction.d.ts.map +1 -1
- package/dist/types/schema/types.d.ts +2 -0
- package/dist/types/schema/types.d.ts.map +1 -0
- package/package.json +12 -39
- package/dist/types/loaders/common/cache-key-fn.d.ts +0 -2
- package/dist/types/loaders/common/cache-key-fn.d.ts.map +0 -1
- package/dist/types/loaders/common/resolve-info.d.ts +0 -3
- package/dist/types/loaders/common/resolve-info.d.ts.map +0 -1
- package/dist/types/loaders/transformers/account.d.ts +0 -8
- package/dist/types/loaders/transformers/account.d.ts.map +0 -1
- package/dist/types/loaders/transformers/block.d.ts +0 -6
- package/dist/types/loaders/transformers/block.d.ts.map +0 -1
- package/dist/types/loaders/transformers/transaction.d.ts +0 -5
- package/dist/types/loaders/transformers/transaction.d.ts.map +0 -1
- package/dist/types/rpc.d.ts +0 -15
- package/dist/types/rpc.d.ts.map +0 -1
- package/dist/types/schema/common/inputs.d.ts +0 -3
- package/dist/types/schema/common/inputs.d.ts.map +0 -1
- package/dist/types/schema/common/scalars.d.ts +0 -45
- package/dist/types/schema/common/scalars.d.ts.map +0 -1
- package/dist/types/schema/common/types.d.ts +0 -27
- package/dist/types/schema/common/types.d.ts.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instruction.d.ts","sourceRoot":"","sources":["../../../src/resolvers/instruction.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yCAwXQ,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2XzD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
import { Commitment, Slot } from '@solana/rpc-types';
|
|
3
|
+
import type { GraphQLResolveInfo } from 'graphql';
|
|
4
|
+
import { RpcGraphQLContext } from '../context.js';
|
|
5
|
+
import { AccountResult } from './account.js';
|
|
6
|
+
export declare function resolveProgramAccounts(fieldName?: string): (parent: {
|
|
7
|
+
[x: string]: Address;
|
|
8
|
+
}, args: {
|
|
9
|
+
commitment?: Commitment;
|
|
10
|
+
filters?: readonly {
|
|
11
|
+
memcmp: {
|
|
12
|
+
offset: number;
|
|
13
|
+
bytes: string;
|
|
14
|
+
};
|
|
15
|
+
}[];
|
|
16
|
+
minContextSlot?: Slot;
|
|
17
|
+
programAddress: Address;
|
|
18
|
+
}, context: RpcGraphQLContext, info: GraphQLResolveInfo) => Promise<AccountResult[] | null>;
|
|
19
|
+
//# sourceMappingURL=program-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program-accounts.d.ts","sourceRoot":"","sources":["../../../src/resolvers/program-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAG1C,wBAAgB,sBAAsB,CAAC,SAAS,CAAC,EAAE,MAAM;;SAG3C;IACF,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS;QAAE,MAAM,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,EAAE,CAAC;IACnE,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;CAC3B,WACQ,iBAAiB,QACpB,kBAAkB,KACzB,QAAQ,aAAa,EAAE,GAAG,IAAI,CAAC,CAkErC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
import { Commitment, Slot } from '@solana/rpc-types';
|
|
3
|
+
import { GraphQLResolveInfo } from 'graphql';
|
|
4
|
+
import { AccountLoaderArgs, ProgramAccountsLoaderArgs } from '../../loaders/index.js';
|
|
5
|
+
export declare function buildAccountArgSetWithVisitor<TArgs extends AccountLoaderArgs | ProgramAccountsLoaderArgs>(args: TArgs, info: GraphQLResolveInfo): TArgs[];
|
|
6
|
+
/**
|
|
7
|
+
* Build a set of account loader args by inspecting which fields have
|
|
8
|
+
* been requested in the query (ie. `data` or inline fragments).
|
|
9
|
+
*/
|
|
10
|
+
export declare function buildAccountLoaderArgSetFromResolveInfo(args: {
|
|
11
|
+
address: Address;
|
|
12
|
+
commitment?: Commitment;
|
|
13
|
+
minContextSlot?: Slot;
|
|
14
|
+
}, info: GraphQLResolveInfo): AccountLoaderArgs[];
|
|
15
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/resolve-info/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAa,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAChE,OAAO,EAAgB,kBAAkB,EAAmB,MAAM,SAAS,CAAC;AAE5E,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAmE7E,wBAAgB,6BAA6B,CAAC,KAAK,SAAS,iBAAiB,GAAG,yBAAyB,EACrG,IAAI,EAAE,KAAK,EACX,IAAI,EAAE,kBAAkB,GACzB,KAAK,EAAE,CAsCT;AAED;;;GAGG;AACH,wBAAgB,uCAAuC,CACnD,IAAI,EAAE;IACF,OAAO,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,cAAc,CAAC,EAAE,IAAI,CAAC;CACzB,EACD,IAAI,EAAE,kBAAkB,GACzB,iBAAiB,EAAE,CAErB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Commitment, Slot } from '@solana/rpc-types';
|
|
2
|
+
import { GraphQLResolveInfo } from 'graphql';
|
|
3
|
+
import { BlockLoaderArgs } from '../../loaders/index.js';
|
|
4
|
+
/**
|
|
5
|
+
* Build a set of block loader args by inspecting which fields have
|
|
6
|
+
* been requested in the query (ie. `data` or inline fragments).
|
|
7
|
+
*/
|
|
8
|
+
export declare function buildBlockLoaderArgSetFromResolveInfo(args: {
|
|
9
|
+
commitment?: Omit<Commitment, 'processed'>;
|
|
10
|
+
minContextSlot?: Slot;
|
|
11
|
+
slot: Slot;
|
|
12
|
+
}, info: GraphQLResolveInfo): BlockLoaderArgs[];
|
|
13
|
+
//# sourceMappingURL=block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/resolve-info/block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAIhD;;;GAGG;AACH,wBAAgB,qCAAqC,CACjD,IAAI,EAAE;IACF,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAC3C,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,IAAI,EAAE,IAAI,CAAC;CACd,EACD,IAAI,EAAE,kBAAkB,GACzB,eAAe,EAAE,CA0BnB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/resolve-info/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
import { Commitment, Slot } from '@solana/rpc-types';
|
|
3
|
+
import { GraphQLResolveInfo } from 'graphql';
|
|
4
|
+
import { ProgramAccountsLoaderArgs } from '../../loaders/index.js';
|
|
5
|
+
/**
|
|
6
|
+
* Build a set of account loader args by inspecting which fields have
|
|
7
|
+
* been requested in the query (ie. `data` or inline fragments).
|
|
8
|
+
*/
|
|
9
|
+
export declare function buildProgramAccountsLoaderArgSetFromResolveInfo(args: {
|
|
10
|
+
commitment?: Commitment;
|
|
11
|
+
filters?: readonly {
|
|
12
|
+
memcmp: {
|
|
13
|
+
offset: number;
|
|
14
|
+
bytes: string;
|
|
15
|
+
};
|
|
16
|
+
}[];
|
|
17
|
+
minContextSlot?: Slot;
|
|
18
|
+
programAddress: Address;
|
|
19
|
+
}, info: GraphQLResolveInfo): ProgramAccountsLoaderArgs[];
|
|
20
|
+
//# sourceMappingURL=program-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program-accounts.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/resolve-info/program-accounts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAG1D;;;GAGG;AACH,wBAAgB,+CAA+C,CAC3D,IAAI,EAAE;IACF,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,OAAO,CAAC,EAAE,SAAS;QAAE,MAAM,EAAE;YAAE,MAAM,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,EAAE,CAAC;IACnE,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,cAAc,EAAE,OAAO,CAAC;CAC3B,EACD,IAAI,EAAE,kBAAkB,GACzB,yBAAyB,EAAE,CAE7B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Signature } from '@solana/keys';
|
|
2
|
+
import { Commitment, Slot } from '@solana/rpc-types';
|
|
3
|
+
import { GraphQLResolveInfo } from 'graphql';
|
|
4
|
+
import { BlockLoaderArgs, TransactionLoaderArgs } from '../../loaders/index.js';
|
|
5
|
+
export declare function buildTransactionArgSetWithVisitor<TArgs extends BlockLoaderArgs | TransactionLoaderArgs>(args: TArgs, info: GraphQLResolveInfo): TArgs[];
|
|
6
|
+
/**
|
|
7
|
+
* Build a set of transaction loader args by inspecting which fields have
|
|
8
|
+
* been requested in the query (ie. `data` or inline fragments).
|
|
9
|
+
*/
|
|
10
|
+
export declare function buildTransactionLoaderArgSetFromResolveInfo(args: {
|
|
11
|
+
commitment?: Omit<Commitment, 'processed'>;
|
|
12
|
+
minContextSlot?: Slot;
|
|
13
|
+
signature: Signature;
|
|
14
|
+
}, info: GraphQLResolveInfo): TransactionLoaderArgs[];
|
|
15
|
+
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/resolve-info/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AA+BvE,wBAAgB,iCAAiC,CAAC,KAAK,SAAS,eAAe,GAAG,qBAAqB,EACnG,IAAI,EAAE,KAAK,EACX,IAAI,EAAE,kBAAkB,GACzB,KAAK,EAAE,CAkCT;AAED;;;GAGG;AACH,wBAAgB,2CAA2C,CACvD,IAAI,EAAE;IACF,UAAU,CAAC,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAC3C,cAAc,CAAC,EAAE,IAAI,CAAC;IACtB,SAAS,EAAE,SAAS,CAAC;CACxB,EACD,IAAI,EAAE,kBAAkB,GACzB,qBAAqB,EAAE,CAEzB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ASTVisitFn, FieldNode, FragmentDefinitionNode, FragmentSpreadNode, GraphQLResolveInfo, InlineFragmentNode } from 'graphql';
|
|
2
|
+
type InjectableVisitorOperations = {
|
|
3
|
+
fieldNodeOperation: (info: GraphQLResolveInfo, ...args: Parameters<ASTVisitFn<FieldNode>>) => void;
|
|
4
|
+
fragmentSpreadNodeOperation: (info: GraphQLResolveInfo, fragment: FragmentDefinitionNode, ...args: Parameters<ASTVisitFn<FragmentSpreadNode>>) => void;
|
|
5
|
+
inlineFragmentNodeOperation: (info: GraphQLResolveInfo, ...args: Parameters<ASTVisitFn<InlineFragmentNode>>) => void;
|
|
6
|
+
};
|
|
7
|
+
type RootNode = FieldNode | FragmentDefinitionNode | InlineFragmentNode;
|
|
8
|
+
/**
|
|
9
|
+
* An AST visitor that keys on the root field provided.
|
|
10
|
+
* This visitor can be injected with custom logic for various types of nodes.
|
|
11
|
+
*/
|
|
12
|
+
export declare function injectableRootVisitor(info: GraphQLResolveInfo, rootNode: RootNode | null, operations: InjectableVisitorOperations): void;
|
|
13
|
+
/**
|
|
14
|
+
* Determine if the query only requests the provided field names
|
|
15
|
+
*/
|
|
16
|
+
export declare function onlyFieldsRequested(fieldNames: string[], info: GraphQLResolveInfo, rootNode?: RootNode): boolean;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=visitor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visitor.d.ts","sourceRoot":"","sources":["../../../../src/resolvers/resolve-info/visitor.ts"],"names":[],"mappings":"AAAA,OAAO,EAEH,UAAU,EAEV,SAAS,EACT,sBAAsB,EACtB,kBAAkB,EAClB,kBAAkB,EAClB,kBAAkB,EAErB,MAAM,SAAS,CAAC;AAEjB,KAAK,2BAA2B,GAAG;IAC/B,kBAAkB,EAAE,CAAC,IAAI,EAAE,kBAAkB,EAAE,GAAG,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC,KAAK,IAAI,CAAC;IACnG,2BAA2B,EAAE,CACzB,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAE,sBAAsB,EAChC,GAAG,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,KAClD,IAAI,CAAC;IACV,2BAA2B,EAAE,CACzB,IAAI,EAAE,kBAAkB,EACxB,GAAG,IAAI,EAAE,UAAU,CAAC,UAAU,CAAC,kBAAkB,CAAC,CAAC,KAClD,IAAI,CAAC;CACb,CAAC;AACF,KAAK,QAAQ,GAAG,SAAS,GAAG,sBAAsB,GAAG,kBAAkB,CAAC;AAExE;;;GAGG;AACH,wBAAgB,qBAAqB,CACjC,IAAI,EAAE,kBAAkB,EACxB,QAAQ,EAAE,QAAQ,GAAG,IAAI,EACzB,UAAU,EAAE,2BAA2B,QAoB1C;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,UAAU,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,kBAAkB,EAAE,QAAQ,CAAC,EAAE,QAAQ,GAAG,OAAO,CAuBhH"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.d.ts","sourceRoot":"","sources":["../../../src/resolvers/root.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAOlE,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,CAOjF,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
import { Signature } from '@solana/keys';
|
|
3
|
+
import { Commitment } from '@solana/rpc-types';
|
|
4
|
+
import type { GraphQLResolveInfo } from 'graphql';
|
|
5
|
+
import { RpcGraphQLContext } from '../context.js';
|
|
6
|
+
import { TransactionLoaderValue } from '../loaders/index.js';
|
|
7
|
+
export type EncodedTransactionData = {
|
|
8
|
+
[key: string]: string;
|
|
9
|
+
};
|
|
10
|
+
export type InstructionResult = {
|
|
11
|
+
jsonParsedConfigs?: {
|
|
12
|
+
instructionType: string;
|
|
13
|
+
programId: Address;
|
|
14
|
+
programName: string;
|
|
15
|
+
};
|
|
16
|
+
programId?: Address;
|
|
17
|
+
} & {
|
|
18
|
+
[key: string]: unknown;
|
|
19
|
+
};
|
|
20
|
+
export type TransactionResult = {
|
|
21
|
+
signature?: Signature;
|
|
22
|
+
encodedData?: EncodedTransactionData;
|
|
23
|
+
} & Partial<TransactionLoaderValue>;
|
|
24
|
+
export declare function mapJsonParsedInstructions(instructions: readonly any[]): InstructionResult[];
|
|
25
|
+
export declare function mapJsonParsedInnerInstructions(innerInstructions: readonly any[]): {
|
|
26
|
+
index: number;
|
|
27
|
+
instructions: InstructionResult[];
|
|
28
|
+
}[];
|
|
29
|
+
export declare function resolveTransaction(fieldName?: string): (parent: {
|
|
30
|
+
[x: string]: Signature;
|
|
31
|
+
}, args: {
|
|
32
|
+
signature?: Signature;
|
|
33
|
+
commitment?: Omit<Commitment, 'processed'>;
|
|
34
|
+
}, context: RpcGraphQLContext, info: GraphQLResolveInfo) => Promise<TransactionResult | null>;
|
|
35
|
+
export declare const transactionResolvers: {
|
|
36
|
+
Transaction: {
|
|
37
|
+
data: (parent: TransactionResult | null, args: {
|
|
38
|
+
encoding: 'base58' | 'base64';
|
|
39
|
+
}) => string | null;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/resolvers/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAElD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAc,sBAAsB,EAAE,MAAM,YAAY,CAAC;AAGhE,MAAM,MAAM,sBAAsB,GAAG;IACjC,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,iBAAiB,CAAC,EAAE;QAChB,eAAe,EAAE,MAAM,CAAC;QACxB,SAAS,EAAE,OAAO,CAAC;QACnB,WAAW,EAAE,MAAM,CAAC;KACvB,CAAC;IACF,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB,GAAG;IACA,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CAC1B,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC5B,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,WAAW,CAAC,EAAE,sBAAsB,CAAC;CACxC,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AAGpC,wBAAgB,yBAAyB,CAAC,YAAY,EAAE,SAAS,GAAG,EAAE,GAAG,iBAAiB,EAAE,CA8B3F;AAED,wBAAgB,8BAA8B,CAE1C,iBAAiB,EAAE,SAAS,GAAG,EAAE,GAClC;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,iBAAiB,EAAE,CAAA;CAAE,EAAE,CAMxD;AAaD,wBAAgB,kBAAkB,CAAC,SAAS,CAAC,EAAE,MAAM;;SAGvC;IACF,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,UAAU,CAAC,EAAE,KAAK,UAAU,EAAE,WAAW,CAAC,CAAC;CAC9C,WACQ,iBAAiB,QACpB,kBAAkB,KACzB,QAAQ,iBAAiB,GAAG,IAAI,CAAC,CAwEvC;AAED,eAAO,MAAM,oBAAoB;;uBA5FjB,iBAAiB,GAAG,IAAI,QAC1B;YACF,QAAQ,EAAE,QAAQ,GAAG,QAAQ,CAAC;SACjC;;CA6FR,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Kind } from 'graphql';
|
|
2
|
+
export declare const typeTypeResolvers: {
|
|
3
|
+
AccountEncoding: {
|
|
4
|
+
BASE_58: string;
|
|
5
|
+
BASE_64: string;
|
|
6
|
+
BASE_64_ZSTD: string;
|
|
7
|
+
};
|
|
8
|
+
Address: {
|
|
9
|
+
__parseLiteral(ast: {
|
|
10
|
+
kind: Kind;
|
|
11
|
+
value: string | number | bigint | boolean;
|
|
12
|
+
}): string | null;
|
|
13
|
+
__parseValue(value: string): string;
|
|
14
|
+
__serialize(value: string): string;
|
|
15
|
+
};
|
|
16
|
+
Base58EncodedBytes: {
|
|
17
|
+
__parseLiteral(ast: {
|
|
18
|
+
kind: Kind;
|
|
19
|
+
value: string | number | bigint | boolean;
|
|
20
|
+
}): string | null;
|
|
21
|
+
__parseValue(value: string): string;
|
|
22
|
+
__serialize(value: string): string;
|
|
23
|
+
};
|
|
24
|
+
Base64EncodedBytes: {
|
|
25
|
+
__parseLiteral(ast: {
|
|
26
|
+
kind: Kind;
|
|
27
|
+
value: string | number | bigint | boolean;
|
|
28
|
+
}): string | null;
|
|
29
|
+
__parseValue(value: string): string;
|
|
30
|
+
__serialize(value: string): string;
|
|
31
|
+
};
|
|
32
|
+
Base64ZstdEncodedBytes: {
|
|
33
|
+
__parseLiteral(ast: {
|
|
34
|
+
kind: Kind;
|
|
35
|
+
value: string | number | bigint | boolean;
|
|
36
|
+
}): string | null;
|
|
37
|
+
__parseValue(value: string): string;
|
|
38
|
+
__serialize(value: string): string;
|
|
39
|
+
};
|
|
40
|
+
BigInt: {
|
|
41
|
+
__parseLiteral(ast: {
|
|
42
|
+
kind: Kind;
|
|
43
|
+
value: string | number | bigint | boolean;
|
|
44
|
+
}): bigint | null;
|
|
45
|
+
__parseValue(value: string): bigint;
|
|
46
|
+
__serialize(value: string): bigint;
|
|
47
|
+
};
|
|
48
|
+
Commitment: {
|
|
49
|
+
CONFIRMED: string;
|
|
50
|
+
FINALIZED: string;
|
|
51
|
+
PROCESSED: string;
|
|
52
|
+
};
|
|
53
|
+
CommitmentWithoutProcessed: {
|
|
54
|
+
CONFIRMED: string;
|
|
55
|
+
FINALIZED: string;
|
|
56
|
+
};
|
|
57
|
+
Signature: {
|
|
58
|
+
__parseLiteral(ast: {
|
|
59
|
+
kind: Kind;
|
|
60
|
+
value: string | number | bigint | boolean;
|
|
61
|
+
}): string | null;
|
|
62
|
+
__parseValue(value: string): string;
|
|
63
|
+
__serialize(value: string): string;
|
|
64
|
+
};
|
|
65
|
+
Slot: {
|
|
66
|
+
__parseLiteral(ast: {
|
|
67
|
+
kind: Kind;
|
|
68
|
+
value: string | number | bigint | boolean;
|
|
69
|
+
}): bigint | null;
|
|
70
|
+
__parseValue(value: string): bigint;
|
|
71
|
+
__serialize(value: string): bigint;
|
|
72
|
+
};
|
|
73
|
+
TokenBalance: {
|
|
74
|
+
mint: (parent: {
|
|
75
|
+
[x: string]: import("@solana/addresses").Address;
|
|
76
|
+
}, args: {
|
|
77
|
+
address?: import("@solana/addresses").Address | undefined;
|
|
78
|
+
commitment?: import("@solana/rpc-types").Commitment | undefined;
|
|
79
|
+
minContextSlot?: bigint | undefined;
|
|
80
|
+
}, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo) => Promise<import("./account").AccountResult | null>;
|
|
81
|
+
owner: (parent: {
|
|
82
|
+
[x: string]: import("@solana/addresses").Address;
|
|
83
|
+
}, args: {
|
|
84
|
+
address?: import("@solana/addresses").Address | undefined;
|
|
85
|
+
commitment?: import("@solana/rpc-types").Commitment | undefined;
|
|
86
|
+
minContextSlot?: bigint | undefined;
|
|
87
|
+
}, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo) => Promise<import("./account").AccountResult | null>;
|
|
88
|
+
};
|
|
89
|
+
TransactionEncoding: {
|
|
90
|
+
BASE_58: string;
|
|
91
|
+
BASE_64: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/resolvers/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAkC/B,eAAO,MAAM,iBAAiB;;;;;;;4BA7BN;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;4BATd;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;4BATd;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;4BATd;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;4BAMd;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;;;;;;;;;;4BAxBd;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;4BAMd;YAAE,IAAI,EAAE,IAAI,CAAC;YAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;SAAE,GAAG,MAAM,GAAG,IAAI;4BAMzE,MAAM,GAAG,MAAM;2BAGhB,MAAM,GAAG,MAAM;;;;;;;;;;;;;;;;;;;;;;CAmCrC,CAAC"}
|
|
@@ -1,103 +1,2 @@
|
|
|
1
|
-
export declare const accountTypeDefs = "\n \"\"\"\n Account interface\n \"\"\"\n interface Account {\n address: Address\n
|
|
2
|
-
export declare const accountResolvers: {
|
|
3
|
-
Account: {
|
|
4
|
-
__resolveType(account: {
|
|
5
|
-
encoding: string;
|
|
6
|
-
programName: string;
|
|
7
|
-
accountType: string;
|
|
8
|
-
}): "AccountBase58" | "AccountBase64" | "AccountBase64Zstd" | "NonceAccount" | "MintAccount" | "TokenAccount" | "StakeAccount" | "VoteAccount" | "LookupTableAccount";
|
|
9
|
-
};
|
|
10
|
-
AccountBase58: {
|
|
11
|
-
ownerProgram: (parent: {
|
|
12
|
-
[x: string]: import("@solana/addresses").Address;
|
|
13
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
14
|
-
};
|
|
15
|
-
AccountBase64: {
|
|
16
|
-
ownerProgram: (parent: {
|
|
17
|
-
[x: string]: import("@solana/addresses").Address;
|
|
18
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
19
|
-
};
|
|
20
|
-
AccountBase64Zstd: {
|
|
21
|
-
ownerProgram: (parent: {
|
|
22
|
-
[x: string]: import("@solana/addresses").Address;
|
|
23
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
24
|
-
};
|
|
25
|
-
NonceAccount: {
|
|
26
|
-
authority: (parent: {
|
|
27
|
-
[x: string]: import("@solana/addresses").Address;
|
|
28
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
29
|
-
ownerProgram: (parent: {
|
|
30
|
-
[x: string]: import("@solana/addresses").Address;
|
|
31
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
32
|
-
};
|
|
33
|
-
LookupTableAccount: {
|
|
34
|
-
authority: (parent: {
|
|
35
|
-
[x: string]: import("@solana/addresses").Address;
|
|
36
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
37
|
-
ownerProgram: (parent: {
|
|
38
|
-
[x: string]: import("@solana/addresses").Address;
|
|
39
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
40
|
-
};
|
|
41
|
-
MintAccount: {
|
|
42
|
-
freezeAuthority: (parent: {
|
|
43
|
-
[x: string]: import("@solana/addresses").Address;
|
|
44
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
45
|
-
mintAuthority: (parent: {
|
|
46
|
-
[x: string]: import("@solana/addresses").Address;
|
|
47
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
48
|
-
ownerProgram: (parent: {
|
|
49
|
-
[x: string]: import("@solana/addresses").Address;
|
|
50
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
51
|
-
};
|
|
52
|
-
TokenAccount: {
|
|
53
|
-
mint: (parent: {
|
|
54
|
-
[x: string]: import("@solana/addresses").Address;
|
|
55
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
56
|
-
owner: (parent: {
|
|
57
|
-
[x: string]: import("@solana/addresses").Address;
|
|
58
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
59
|
-
ownerProgram: (parent: {
|
|
60
|
-
[x: string]: import("@solana/addresses").Address;
|
|
61
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
62
|
-
};
|
|
63
|
-
StakeAccountDataMetaAuthorized: {
|
|
64
|
-
staker: (parent: {
|
|
65
|
-
[x: string]: import("@solana/addresses").Address;
|
|
66
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
67
|
-
withdrawer: (parent: {
|
|
68
|
-
[x: string]: import("@solana/addresses").Address;
|
|
69
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
70
|
-
};
|
|
71
|
-
StakeAccountDataMetaLockup: {
|
|
72
|
-
custodian: (parent: {
|
|
73
|
-
[x: string]: import("@solana/addresses").Address;
|
|
74
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
75
|
-
};
|
|
76
|
-
StakeAccountDataStakeDelegation: {
|
|
77
|
-
voter: (parent: {
|
|
78
|
-
[x: string]: import("@solana/addresses").Address;
|
|
79
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
80
|
-
};
|
|
81
|
-
StakeAccount: {
|
|
82
|
-
ownerProgram: (parent: {
|
|
83
|
-
[x: string]: import("@solana/addresses").Address;
|
|
84
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
85
|
-
};
|
|
86
|
-
VoteAccountDataAuthorizedVoter: {
|
|
87
|
-
authorizedVoter: (parent: {
|
|
88
|
-
[x: string]: import("@solana/addresses").Address;
|
|
89
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
90
|
-
};
|
|
91
|
-
VoteAccount: {
|
|
92
|
-
authorizedWithdrawer: (parent: {
|
|
93
|
-
[x: string]: import("@solana/addresses").Address;
|
|
94
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
95
|
-
node: (parent: {
|
|
96
|
-
[x: string]: import("@solana/addresses").Address;
|
|
97
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
98
|
-
ownerProgram: (parent: {
|
|
99
|
-
[x: string]: import("@solana/addresses").Address;
|
|
100
|
-
}, args: import("../loaders/account").AccountLoaderArgs, context: import("../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
101
|
-
};
|
|
102
|
-
};
|
|
1
|
+
export declare const accountTypeDefs = "\n \"\"\"\n Account interface\n \"\"\"\n interface Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n }\n\n \"\"\"\n Generic base account type\n \"\"\"\n type GenericAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n }\n\n type NonceAccountFeeCalculator {\n lamportsPerSignature: String\n }\n \"\"\"\n A nonce account\n \"\"\"\n type NonceAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n authority: Account\n blockhash: String\n feeCalculator: NonceAccountFeeCalculator\n }\n\n \"\"\"\n A lookup table account\n \"\"\"\n type LookupTableAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n addresses: [Address]\n authority: Account\n deactivationSlot: String\n lastExtendedSlot: String\n lastExtendedSlotStartIndex: Int\n }\n\n \"\"\"\n A mint account\n \"\"\"\n type MintAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n decimals: Int\n freezeAuthority: Account\n isInitialized: Boolean\n mintAuthority: Account\n supply: String\n }\n\n \"\"\"\n A token account\n \"\"\"\n type TokenAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n isNative: Boolean\n mint: Account\n owner: Account\n state: String\n tokenAmount: TokenAmount\n }\n\n type StakeAccountDataMetaAuthorized {\n staker: Account\n withdrawer: Account\n }\n type StakeAccountDataMetaLockup {\n custodian: Account\n epoch: BigInt\n unixTimestamp: BigInt\n }\n type StakeAccountDataMeta {\n authorized: StakeAccountDataMetaAuthorized\n lockup: StakeAccountDataMetaLockup\n rentExemptReserve: String\n }\n type StakeAccountDataStakeDelegation {\n activationEpoch: BigInt\n deactivationEpoch: BigInt\n stake: String\n voter: Account\n warmupCooldownRate: Int\n }\n type StakeAccountDataStake {\n creditsObserved: BigInt\n delegation: StakeAccountDataStakeDelegation\n }\n \"\"\"\n A stake account\n \"\"\"\n type StakeAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n meta: StakeAccountDataMeta\n stake: StakeAccountDataStake\n }\n\n type VoteAccountDataAuthorizedVoter {\n authorizedVoter: Account\n epoch: BigInt\n }\n type VoteAccountDataEpochCredit {\n credits: String\n epoch: BigInt\n previousCredits: String\n }\n type VoteAccountDataLastTimestamp {\n slot: BigInt\n timestamp: BigInt\n }\n type VoteAccountDataVote {\n confirmationCount: Int\n slot: BigInt\n }\n \"\"\"\n A vote account\n \"\"\"\n type VoteAccount implements Account {\n address: Address\n data(encoding: AccountEncoding!, dataSlice: DataSlice): String\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n authorizedVoters: [VoteAccountDataAuthorizedVoter]\n authorizedWithdrawer: Account\n commission: Int\n epochCredits: [VoteAccountDataEpochCredit]\n lastTimestamp: VoteAccountDataLastTimestamp\n node: Account\n priorVoters: [Address]\n rootSlot: BigInt\n votes: [VoteAccountDataVote]\n }\n";
|
|
103
2
|
//# sourceMappingURL=account.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schema/account.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schema/account.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,uwJAkL3B,CAAC"}
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
export declare const blockTypeDefs = "\n
|
|
2
|
-
export declare const blockResolvers: {
|
|
3
|
-
Block: {
|
|
4
|
-
__resolveType(block: {
|
|
5
|
-
transactionDetails: string;
|
|
6
|
-
}): "BlockWithAccounts" | "BlockWithNone" | "BlockWithSignatures" | "BlockWithFull";
|
|
7
|
-
};
|
|
8
|
-
};
|
|
1
|
+
export declare const blockTypeDefs = "\n \"\"\"\n A Solana block\n \"\"\"\n type Block {\n blockhash: String\n blockHeight: BigInt\n blockTime: BigInt\n parentSlot: Slot\n previousBlockhash: String\n rewards: [Reward]\n signatures: [Signature]\n transactions: [Transaction]\n }\n";
|
|
9
2
|
//# sourceMappingURL=block.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/schema/block.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/schema/block.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,6TAczB,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function
|
|
1
|
+
export declare function createSolanaGraphQLTypeDefs(): string[];
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":"AAOA,wBAAgB,2BAA2B,aAE1C"}
|