@solana/rpc-graphql 2.0.0-experimental.dacecb7 → 2.0.0-experimental.dbe6a73
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 +1088 -30
- package/dist/index.browser.cjs +2608 -1931
- package/dist/index.browser.cjs.map +1 -1
- package/dist/index.browser.js +2604 -1932
- package/dist/index.browser.js.map +1 -1
- package/dist/index.native.js +2603 -1927
- package/dist/index.native.js.map +1 -1
- package/dist/index.node.cjs +2607 -1926
- package/dist/index.node.cjs.map +1 -1
- package/dist/index.node.js +2603 -1927
- package/dist/index.node.js.map +1 -1
- package/dist/types/context.d.ts +20 -18
- package/dist/types/context.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/loaders/account.d.ts +15 -0
- package/dist/types/loaders/account.d.ts.map +1 -0
- package/dist/types/loaders/block.d.ts +14 -0
- package/dist/types/loaders/block.d.ts.map +1 -0
- package/dist/types/loaders/common/cache-key-fn.d.ts +2 -0
- package/dist/types/loaders/common/cache-key-fn.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 +19 -0
- package/dist/types/loaders/program-accounts.d.ts.map +1 -0
- package/dist/types/loaders/transaction.d.ts +13 -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 +6 -4
- package/dist/types/rpc.d.ts.map +1 -0
- package/dist/types/schema/account.d.ts +103 -0
- package/dist/types/schema/account.d.ts.map +1 -0
- package/dist/types/schema/block.d.ts +9 -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/transaction.d.ts +9 -0
- package/dist/types/schema/transaction.d.ts.map +1 -0
- package/package.json +22 -17
- package/dist/types/cache.d.ts +0 -7
- package/dist/types/schema/account/index.d.ts +0 -3
- package/dist/types/schema/account/query.d.ts +0 -38
- package/dist/types/schema/account/types.d.ts +0 -5
- package/dist/types/schema/block/index.d.ts +0 -3
- package/dist/types/schema/block/query.d.ts +0 -42
- package/dist/types/schema/block/types.d.ts +0 -7
- package/dist/types/schema/inputs.d.ts +0 -9
- package/dist/types/schema/picks.d.ts +0 -36
- package/dist/types/schema/program-accounts/index.d.ts +0 -2
- package/dist/types/schema/program-accounts/query.d.ts +0 -47
- package/dist/types/schema/program-accounts/types.d.ts +0 -3
- package/dist/types/schema/scalars.d.ts +0 -3
- package/dist/types/schema/transaction/index.d.ts +0 -3
- package/dist/types/schema/transaction/query.d.ts +0 -33
- package/dist/types/schema/transaction/types.d.ts +0 -12
package/dist/types/context.d.ts
CHANGED
|
@@ -1,22 +1,24 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
1
|
+
import { GraphQLResolveInfo } from 'graphql';
|
|
2
|
+
import { AccountLoaderArgs } from './loaders/account.js';
|
|
3
|
+
import { BlockLoaderArgs } from './loaders/block.js';
|
|
4
|
+
import { ProgramAccountsLoaderArgs } from './loaders/program-accounts.js';
|
|
5
|
+
import { TransactionLoaderArgs } from './loaders/transaction.js';
|
|
6
|
+
import { createRpcGraphQL } from './rpc.js';
|
|
7
|
+
export type Rpc = Parameters<typeof createRpcGraphQL>[0];
|
|
8
|
+
type LoadFn<TArgs> = (args: TArgs, info?: GraphQLResolveInfo | undefined) => Promise<unknown>;
|
|
9
|
+
type Loader<TArgs> = {
|
|
10
|
+
load: LoadFn<TArgs>;
|
|
11
|
+
};
|
|
12
|
+
type RpcGraphQLLoaders = {
|
|
13
|
+
account: Loader<AccountLoaderArgs>;
|
|
14
|
+
block: Loader<BlockLoaderArgs>;
|
|
15
|
+
programAccounts: Loader<ProgramAccountsLoaderArgs>;
|
|
16
|
+
transaction: Loader<TransactionLoaderArgs>;
|
|
17
|
+
};
|
|
8
18
|
export interface RpcGraphQLContext {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
resolveBlock(args: BlockQueryArgs): ReturnType<typeof resolveBlock>;
|
|
12
|
-
resolveProgramAccounts(args: ProgramAccountsQueryArgs): ReturnType<typeof resolveProgramAccounts>;
|
|
13
|
-
resolveTransaction(args: TransactionQueryArgs): ReturnType<typeof resolveTransaction>;
|
|
14
|
-
rpc: Rpc<SolanaRpcMethods>;
|
|
19
|
+
loaders: RpcGraphQLLoaders;
|
|
20
|
+
rpc: Rpc;
|
|
15
21
|
}
|
|
16
|
-
declare function
|
|
17
|
-
declare function resolveBlock({ slot, encoding, ...config }: BlockQueryArgs, cache: GraphQLCache, rpc: Rpc<SolanaRpcMethods>): Promise<{} | null | undefined>;
|
|
18
|
-
declare function resolveProgramAccounts({ programAddress, encoding, ...config }: ProgramAccountsQueryArgs, cache: GraphQLCache, rpc: Rpc<SolanaRpcMethods>): Promise<{} | undefined>;
|
|
19
|
-
declare function resolveTransaction({ signature, encoding, ...config }: TransactionQueryArgs, cache: GraphQLCache, rpc: Rpc<SolanaRpcMethods>): Promise<{} | null | undefined>;
|
|
20
|
-
export declare function createSolanaGraphQLContext(rpc: Rpc<SolanaRpcMethods>): RpcGraphQLContext;
|
|
22
|
+
export declare function createSolanaGraphQLContext(rpc: Rpc): RpcGraphQLContext;
|
|
21
23
|
export {};
|
|
22
24
|
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAEtD,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAElD,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,OAAO,CAAC;AAEzC,MAAM,MAAM,GAAG,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAC,CAAC,CAAC,CAAC;AAEzD,KAAK,MAAM,CAAC,KAAK,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,kBAAkB,GAAG,SAAS,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAC9F,KAAK,MAAM,CAAC,KAAK,IAAI;IAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,CAAA;CAAE,CAAC;AAC7C,KAAK,iBAAiB,GAAG;IACrB,OAAO,EAAE,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC;IAC/B,eAAe,EAAE,MAAM,CAAC,yBAAyB,CAAC,CAAC;IACnD,WAAW,EAAE,MAAM,CAAC,qBAAqB,CAAC,CAAC;CAC9C,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAC9B,OAAO,EAAE,iBAAiB,CAAC;IAC3B,GAAG,EAAE,GAAG,CAAC;CACZ;AAED,wBAAgB,0BAA0B,CAAC,GAAG,EAAE,GAAG,GAAG,iBAAiB,CAUtE"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './rpc';
|
|
1
|
+
export * from './rpc.js';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
import { DataSlice, Slot } from '@solana/rpc-core';
|
|
3
|
+
import { GraphQLResolveInfo } from 'graphql';
|
|
4
|
+
import type { Rpc } from '../context.js';
|
|
5
|
+
export type AccountLoaderArgs = {
|
|
6
|
+
address: Address;
|
|
7
|
+
dataSlice?: DataSlice;
|
|
8
|
+
encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed';
|
|
9
|
+
commitment?: 'processed' | 'confirmed' | 'finalized';
|
|
10
|
+
minContextSlot?: Slot;
|
|
11
|
+
};
|
|
12
|
+
export declare function createAccountLoader(rpc: Rpc): {
|
|
13
|
+
load: (args: AccountLoaderArgs, info?: GraphQLResolveInfo) => Promise<any>;
|
|
14
|
+
};
|
|
15
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/loaders/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAKtC,MAAM,MAAM,iBAAiB,GAAG;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,SAAS,CAAC;IACtB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,aAAa,GAAG,YAAY,CAAC;IAC9D,UAAU,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,WAAW,CAAC;IACrD,cAAc,CAAC,EAAE,IAAI,CAAC;CACzB,CAAC;AAgCF,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,GAAG;iBAGjB,iBAAiB,SAAS,kBAAkB;EAStE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { Slot } from '@solana/rpc-core';
|
|
2
|
+
import { Commitment } from '@solana/rpc-types';
|
|
3
|
+
import { GraphQLResolveInfo } from 'graphql';
|
|
4
|
+
import type { Rpc } from '../context.js';
|
|
5
|
+
export type BlockLoaderArgs = {
|
|
6
|
+
slot: Slot;
|
|
7
|
+
commitment?: Commitment;
|
|
8
|
+
encoding?: 'base58' | 'base64' | 'jsonParsed';
|
|
9
|
+
transactionDetails?: 'accounts' | 'full' | 'none' | 'signatures';
|
|
10
|
+
};
|
|
11
|
+
export declare function createBlockLoader(rpc: Rpc): {
|
|
12
|
+
load: (args: BlockLoaderArgs, info?: GraphQLResolveInfo) => Promise<any>;
|
|
13
|
+
};
|
|
14
|
+
//# sourceMappingURL=block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/loaders/block.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAKtC,MAAM,MAAM,eAAe,GAAG;IAC1B,IAAI,EAAE,IAAI,CAAC;IACX,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;IAC9C,kBAAkB,CAAC,EAAE,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAC;CACpE,CAAC;AA4CF,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,GAAG;iBAGf,eAAe,SAAS,kBAAkB;EASpE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cache-key-fn.d.ts","sourceRoot":"","sources":["../../../../src/loaders/common/cache-key-fn.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,UAAU,QAAS,GAAG,QAAiC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolve-info.d.ts","sourceRoot":"","sources":["../../../../src/loaders/common/resolve-info.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,wBAAgB,yBAAyB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,kBAAkB,GAAG,OAAO,CAc/F"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
import { DataSlice, GetProgramAccountsDatasizeFilter, GetProgramAccountsMemcmpFilter, Slot } from '@solana/rpc-core';
|
|
3
|
+
import { Commitment } from '@solana/rpc-types';
|
|
4
|
+
import { GraphQLResolveInfo } from 'graphql';
|
|
5
|
+
import type { Rpc } from '../context.js';
|
|
6
|
+
export type ProgramAccountsLoaderArgs = {
|
|
7
|
+
programAddress: Address;
|
|
8
|
+
commitment?: Commitment;
|
|
9
|
+
dataSlice?: DataSlice;
|
|
10
|
+
encoding?: 'base58' | 'base64' | 'base64+zstd' | 'jsonParsed';
|
|
11
|
+
filters: (GetProgramAccountsMemcmpFilter | GetProgramAccountsDatasizeFilter)[];
|
|
12
|
+
minContextSlot?: Slot;
|
|
13
|
+
};
|
|
14
|
+
export declare function createProgramAccountsLoader(rpc: Rpc): {
|
|
15
|
+
load: (args: ProgramAccountsLoaderArgs, info?: GraphQLResolveInfo) => Promise<any[] | {
|
|
16
|
+
programAddress: Address;
|
|
17
|
+
}>;
|
|
18
|
+
};
|
|
19
|
+
//# sourceMappingURL=program-accounts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"program-accounts.d.ts","sourceRoot":"","sources":["../../../src/loaders/program-accounts.ts"],"names":[],"mappings":"AACA,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,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAKtC,MAAM,MAAM,yBAAyB,GAAG;IACpC,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;AAyCF,wBAAgB,2BAA2B,CAAC,GAAG,EAAE,GAAG;iBAGzB,yBAAyB,SAAS,kBAAkB;;;EAS9E"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Signature } from '@solana/keys';
|
|
2
|
+
import { Commitment } from '@solana/rpc-types';
|
|
3
|
+
import { GraphQLResolveInfo } from 'graphql';
|
|
4
|
+
import type { Rpc } from '../context.js';
|
|
5
|
+
export type TransactionLoaderArgs = {
|
|
6
|
+
signature: Signature;
|
|
7
|
+
commitment?: Commitment;
|
|
8
|
+
encoding?: 'base58' | 'base64' | 'jsonParsed';
|
|
9
|
+
};
|
|
10
|
+
export declare function createTransactionLoader(rpc: Rpc): {
|
|
11
|
+
load: (args: TransactionLoaderArgs, info?: GraphQLResolveInfo) => Promise<any>;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=transaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../src/loaders/transaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAG7C,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAKtC,MAAM,MAAM,qBAAqB,GAAG;IAChC,SAAS,EAAE,SAAS,CAAC;IACrB,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,QAAQ,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,YAAY,CAAC;CACjD,CAAC;AA+DF,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,GAAG;iBAGrB,qBAAqB,SAAS,kBAAkB;EAS1E"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
import { AccountLoaderArgs } from '../../loaders/account.js';
|
|
3
|
+
export declare function transformLoadedAccount({ account, address, encoding, }: {
|
|
4
|
+
account: any;
|
|
5
|
+
address: Address;
|
|
6
|
+
encoding: AccountLoaderArgs['encoding'];
|
|
7
|
+
}): any;
|
|
8
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../src/loaders/transformers/account.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAkB1D,wBAAgB,sBAAsB,CAAC,EACnC,OAAO,EACP,OAAO,EACP,QAAQ,GACX,EAAE;IACC,OAAO,EAAE,GAAG,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,iBAAiB,CAAC,UAAU,CAAC,CAAC;CAC3C,OA0BA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../../src/loaders/transformers/block.ts"],"names":[],"mappings":"AAGA,wBAAgB,oBAAoB,CAAC,EACjC,QAAQ,EACR,KAAK,EACL,kBAAkB,GACrB,EAAE;IACC,KAAK,EAAE,GAAG,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB,EAAE,MAAM,CAAC;CAC9B,OAiBA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.d.ts","sourceRoot":"","sources":["../../../../src/loaders/transformers/transaction.ts"],"names":[],"mappings":"AAgCA,wBAAgB,0BAA0B,CAAC,EAAE,QAAQ,EAAE,WAAW,EAAE,EAAE;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,GAAG,CAAA;CAAE,OAW3G"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Address } from '@solana/addresses';
|
|
2
|
+
import { GraphQLResolveInfo } from 'graphql';
|
|
3
|
+
import { RpcGraphQLContext } from '../context.js';
|
|
4
|
+
import { AccountLoaderArgs } from '../loaders/account.js';
|
|
5
|
+
export declare const resolveAccount: (fieldName: string) => (parent: {
|
|
6
|
+
[x: string]: Address;
|
|
7
|
+
}, args: AccountLoaderArgs, context: RpcGraphQLContext, info: GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
8
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/resolvers/account.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAEvD,eAAO,MAAM,cAAc,cAAe,MAAM;;SAGlC,iBAAiB,WACd,iBAAiB,QACpB,kBAAkB,GAAG,SAAS,4BAG3C,CAAC"}
|
package/dist/types/rpc.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Rpc } from '@solana/rpc-transport
|
|
1
|
+
import type { GetAccountInfoApi, GetBlockApi, GetProgramAccountsApi, GetTransactionApi } from '@solana/rpc-core';
|
|
2
|
+
import type { Rpc } from '@solana/rpc-transport';
|
|
3
3
|
import { graphql, GraphQLSchema, Source } from 'graphql';
|
|
4
|
-
import { RpcGraphQLContext } from './context';
|
|
4
|
+
import { RpcGraphQLContext } from './context.js';
|
|
5
|
+
type RpcMethods = GetAccountInfoApi & GetBlockApi & GetProgramAccountsApi & GetTransactionApi;
|
|
5
6
|
export interface RpcGraphQL {
|
|
6
7
|
context: RpcGraphQLContext;
|
|
7
8
|
query(source: string | Source, variableValues?: {
|
|
@@ -9,5 +10,6 @@ export interface RpcGraphQL {
|
|
|
9
10
|
}): ReturnType<typeof graphql>;
|
|
10
11
|
schema: GraphQLSchema;
|
|
11
12
|
}
|
|
12
|
-
export declare function createRpcGraphQL(rpc: Rpc<
|
|
13
|
+
export declare function createRpcGraphQL(rpc: Rpc<RpcMethods>): RpcGraphQL;
|
|
14
|
+
export {};
|
|
13
15
|
//# sourceMappingURL=rpc.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rpc.d.ts","sourceRoot":"","sources":["../../src/rpc.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,WAAW,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AACjH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEzD,OAAO,EAA8B,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAG1E,KAAK,UAAU,GAAG,iBAAiB,GAAG,WAAW,GAAG,qBAAqB,GAAG,iBAAiB,CAAC;AAE9F,MAAM,WAAW,UAAU;IACvB,OAAO,EAAE,iBAAiB,CAAC;IAC3B,KAAK,CACD,MAAM,EAAE,MAAM,GAAG,MAAM,EACvB,cAAc,CAAC,EAAE;QAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,GAC1D,UAAU,CAAC,OAAO,OAAO,CAAC,CAAC;IAC9B,MAAM,EAAE,aAAa,CAAC;CACzB;AAED,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,GAAG,CAAC,UAAU,CAAC,GAAG,UAAU,CAejE"}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
export declare const accountTypeDefs = "\n \"\"\"\n Account interface\n \"\"\"\n interface Account {\n address: Address\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n }\n\n \"\"\"\n An account with base58 encoded data\n \"\"\"\n type AccountBase58 implements Account {\n address: Address\n data: Base58EncodedBytes\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n }\n\n \"\"\"\n An account with base64 encoded data\n \"\"\"\n type AccountBase64 implements Account {\n address: Address\n data: Base64EncodedBytes\n executable: Boolean\n lamports: BigInt\n ownerProgram: Account\n space: BigInt\n rentEpoch: BigInt\n }\n\n \"\"\"\n An account with base64+zstd encoded data\n \"\"\"\n type AccountBase64Zstd implements Account {\n address: Address\n data: Base64ZstdEncodedBytes\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 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 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 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 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 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 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";
|
|
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
|
+
};
|
|
103
|
+
//# sourceMappingURL=account.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../src/schema/account.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,eAAe,q3JAqM3B,CAAC;AAEF,eAAO,MAAM,gBAAgB;;+BAEE;YAAE,QAAQ,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAC;YAAC,WAAW,EAAE,MAAM,CAAA;SAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiF5F,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
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: [Address]\n signatures: [String]\n }\n\n type BlockTransactionAccounts {\n meta: TransactionMetaForAccounts\n data: TransactionDataForAccounts\n version: String\n }\n\n \"\"\"\n Block interface\n \"\"\"\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 \"\"\"\n A block with account transaction details\n \"\"\"\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 \"\"\"\n A block with full transaction details\n \"\"\"\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 \"\"\"\n A block with no transaction details\n \"\"\"\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 \"\"\"\n A block with signature transaction details\n \"\"\"\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";
|
|
2
|
+
export declare const blockResolvers: {
|
|
3
|
+
Block: {
|
|
4
|
+
__resolveType(block: {
|
|
5
|
+
transactionDetails: string;
|
|
6
|
+
}): "BlockWithAccounts" | "BlockWithNone" | "BlockWithSignatures" | "BlockWithFull";
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
//# sourceMappingURL=block.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block.d.ts","sourceRoot":"","sources":["../../../src/schema/block.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,mtEAyFzB,CAAC;AAEF,eAAO,MAAM,cAAc;;6BAEE;YAAE,kBAAkB,EAAE,MAAM,CAAA;SAAE;;CAa1D,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const inputTypeDefs = "\n input DataSlice {\n offset: Int\n length: Int\n }\n\n input ProgramAccountsFilter {\n bytes: BigInt\n dataSize: BigInt\n encoding: AccountEncoding\n offset: BigInt\n }\n";
|
|
2
|
+
export declare const inputResolvers: {};
|
|
3
|
+
//# sourceMappingURL=inputs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inputs.d.ts","sourceRoot":"","sources":["../../../../src/schema/common/inputs.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,uOAYzB,CAAC;AAEF,eAAO,MAAM,cAAc,IAAK,CAAC"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Kind } from 'graphql';
|
|
2
|
+
export declare const scalarTypeDefs = "\n scalar Address\n scalar Base58EncodedBytes\n scalar Base64EncodedBytes\n scalar Base64ZstdEncodedBytes\n scalar BigInt\n";
|
|
3
|
+
export declare const scalarResolvers: {
|
|
4
|
+
Address: {
|
|
5
|
+
__parseLiteral(ast: {
|
|
6
|
+
kind: Kind;
|
|
7
|
+
value: string | number | bigint | boolean;
|
|
8
|
+
}): string | null;
|
|
9
|
+
__parseValue(value: string): string;
|
|
10
|
+
__serialize(value: string): string;
|
|
11
|
+
};
|
|
12
|
+
Base58EncodedBytes: {
|
|
13
|
+
__parseLiteral(ast: {
|
|
14
|
+
kind: Kind;
|
|
15
|
+
value: string | number | bigint | boolean;
|
|
16
|
+
}): string | null;
|
|
17
|
+
__parseValue(value: string): string;
|
|
18
|
+
__serialize(value: string): string;
|
|
19
|
+
};
|
|
20
|
+
Base64EncodedBytes: {
|
|
21
|
+
__parseLiteral(ast: {
|
|
22
|
+
kind: Kind;
|
|
23
|
+
value: string | number | bigint | boolean;
|
|
24
|
+
}): string | null;
|
|
25
|
+
__parseValue(value: string): string;
|
|
26
|
+
__serialize(value: string): string;
|
|
27
|
+
};
|
|
28
|
+
Base64ZstdEncodedBytes: {
|
|
29
|
+
__parseLiteral(ast: {
|
|
30
|
+
kind: Kind;
|
|
31
|
+
value: string | number | bigint | boolean;
|
|
32
|
+
}): string | null;
|
|
33
|
+
__parseValue(value: string): string;
|
|
34
|
+
__serialize(value: string): string;
|
|
35
|
+
};
|
|
36
|
+
BigInt: {
|
|
37
|
+
__parseLiteral(ast: {
|
|
38
|
+
kind: Kind;
|
|
39
|
+
value: string | number | bigint | boolean;
|
|
40
|
+
}): bigint | null;
|
|
41
|
+
__parseValue(value: string): bigint;
|
|
42
|
+
__serialize(value: string): bigint;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
//# sourceMappingURL=scalars.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scalars.d.ts","sourceRoot":"","sources":["../../../../src/schema/common/scalars.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAE/B,eAAO,MAAM,cAAc,+IAM1B,CAAC;AAiBF,eAAO,MAAM,eAAe;;4BAdJ;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;;;4BAWV;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;;CAIzC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export declare const commonTypeDefs = "\n enum AccountEncoding {\n BASE_58\n BASE_64\n BASE_64_ZSTD\n PARSED\n }\n\n enum BlockTransactionDetails {\n accounts\n full\n none\n signatures\n }\n\n enum Commitment {\n confirmed\n finalized\n processed\n }\n\n type ReturnData {\n data: Base64EncodedBytes\n programId: Address\n }\n\n type Reward {\n commission: Int\n lamports: BigInt\n postBalance: BigInt\n pubkey: Address\n rewardType: String\n }\n\n type TokenAmount {\n amount: String\n decimals: Int\n uiAmount: BigInt\n uiAmountString: String\n }\n\n type TokenBalance {\n accountIndex: Int\n mint: Account\n owner: Account\n programId: Address\n uiTokenAmount: TokenAmount\n }\n\n enum TransactionEncoding {\n BASE_58\n BASE_64\n PARSED\n }\n\n enum TransactionVersion {\n LEGACY\n ZERO\n }\n";
|
|
2
|
+
export declare const commonResolvers: {
|
|
3
|
+
AccountEncoding: {
|
|
4
|
+
BASE_58: string;
|
|
5
|
+
BASE_64: string;
|
|
6
|
+
BASE_64_ZSTD: string;
|
|
7
|
+
PARSED: string;
|
|
8
|
+
};
|
|
9
|
+
TokenBalance: {
|
|
10
|
+
mint: (parent: {
|
|
11
|
+
[x: string]: import("@solana/addresses").Address;
|
|
12
|
+
}, args: import("../../loaders/account").AccountLoaderArgs, context: import("../../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
13
|
+
owner: (parent: {
|
|
14
|
+
[x: string]: import("@solana/addresses").Address;
|
|
15
|
+
}, args: import("../../loaders/account").AccountLoaderArgs, context: import("../../context").RpcGraphQLContext, info: import("graphql").GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
|
16
|
+
};
|
|
17
|
+
TransactionEncoding: {
|
|
18
|
+
BASE_58: string;
|
|
19
|
+
BASE_64: string;
|
|
20
|
+
PARSED: string;
|
|
21
|
+
};
|
|
22
|
+
TransactionVersion: {
|
|
23
|
+
LEGACY: string;
|
|
24
|
+
ZERO: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/schema/common/types.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,ghCA2D1B,CAAC;AAEF,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;CAoB3B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/schema/index.ts"],"names":[],"mappings":"AA0FA,wBAAgB,yBAAyB,oCAuBxC"}
|