@solana/rpc-graphql 2.0.0-experimental.c156b67 → 2.0.0-experimental.c9bd7fa
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/types/context.d.ts +5 -5
- package/dist/types/index.d.ts +1 -1
- package/dist/types/loaders/account.d.ts +2 -2
- package/dist/types/loaders/block.d.ts +2 -2
- package/dist/types/loaders/program-accounts.d.ts +2 -2
- package/dist/types/loaders/transaction.d.ts +2 -2
- package/dist/types/loaders/transformers/account.d.ts +1 -1
- package/dist/types/resolvers/account.d.ts +2 -2
- package/dist/types/rpc.d.ts +1 -1
- package/package.json +10 -10
package/dist/types/context.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { GraphQLResolveInfo } from 'graphql';
|
|
2
|
-
import { createRpcGraphQL } from './rpc';
|
|
3
|
-
import { AccountQueryArgs } from './schema/account';
|
|
4
|
-
import { BlockQueryArgs } from './schema/block';
|
|
5
|
-
import { ProgramAccountsQueryArgs } from './schema/program-accounts';
|
|
6
|
-
import { TransactionQueryArgs } from './schema/transaction';
|
|
2
|
+
import { createRpcGraphQL } from './rpc.js';
|
|
3
|
+
import { AccountQueryArgs } from './schema/account.js';
|
|
4
|
+
import { BlockQueryArgs } from './schema/block.js';
|
|
5
|
+
import { ProgramAccountsQueryArgs } from './schema/program-accounts.js';
|
|
6
|
+
import { TransactionQueryArgs } from './schema/transaction.js';
|
|
7
7
|
export type Rpc = Parameters<typeof createRpcGraphQL>[0];
|
|
8
8
|
type LoadFn<TArgs> = (args: TArgs, info?: GraphQLResolveInfo | undefined) => Promise<unknown>;
|
|
9
9
|
type Loader<TArgs> = {
|
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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GraphQLResolveInfo } from 'graphql';
|
|
2
|
-
import type { Rpc } from '../context';
|
|
3
|
-
import { AccountQueryArgs } from '../schema/account';
|
|
2
|
+
import type { Rpc } from '../context.js';
|
|
3
|
+
import { AccountQueryArgs } from '../schema/account.js';
|
|
4
4
|
export declare function createAccountLoader(rpc: Rpc): {
|
|
5
5
|
load: (args: AccountQueryArgs, info?: GraphQLResolveInfo) => Promise<any>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GraphQLResolveInfo } from 'graphql';
|
|
2
|
-
import type { Rpc } from '../context';
|
|
3
|
-
import { BlockQueryArgs } from '../schema/block';
|
|
2
|
+
import type { Rpc } from '../context.js';
|
|
3
|
+
import { BlockQueryArgs } from '../schema/block.js';
|
|
4
4
|
export declare function createBlockLoader(rpc: Rpc): {
|
|
5
5
|
load: (args: BlockQueryArgs, info?: GraphQLResolveInfo) => Promise<any>;
|
|
6
6
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GraphQLResolveInfo } from 'graphql';
|
|
2
|
-
import type { Rpc } from '../context';
|
|
3
|
-
import { ProgramAccountsQueryArgs } from '../schema/program-accounts';
|
|
2
|
+
import type { Rpc } from '../context.js';
|
|
3
|
+
import { ProgramAccountsQueryArgs } from '../schema/program-accounts.js';
|
|
4
4
|
export declare function createProgramAccountsLoader(rpc: Rpc): {
|
|
5
5
|
load: (args: ProgramAccountsQueryArgs, info?: GraphQLResolveInfo) => Promise<any[] | {
|
|
6
6
|
programAddress: import("@solana/addresses").Address;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GraphQLResolveInfo } from 'graphql';
|
|
2
|
-
import type { Rpc } from '../context';
|
|
3
|
-
import { TransactionQueryArgs } from '../schema/transaction';
|
|
2
|
+
import type { Rpc } from '../context.js';
|
|
3
|
+
import { TransactionQueryArgs } from '../schema/transaction.js';
|
|
4
4
|
export declare function createTransactionLoader(rpc: Rpc): {
|
|
5
5
|
load: (args: TransactionQueryArgs, info?: GraphQLResolveInfo) => Promise<any>;
|
|
6
6
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Address } from '@solana/addresses';
|
|
2
|
-
import { AccountQueryArgs } from '../../schema/account';
|
|
2
|
+
import { AccountQueryArgs } from '../../schema/account.js';
|
|
3
3
|
export declare function transformLoadedAccount({ account, address, encoding, }: {
|
|
4
4
|
account: any;
|
|
5
5
|
address: Address;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Address } from '@solana/addresses';
|
|
2
2
|
import { GraphQLResolveInfo } from 'graphql';
|
|
3
|
-
import { RpcGraphQLContext } from '../context';
|
|
4
|
-
import { AccountQueryArgs } from '../schema/account';
|
|
3
|
+
import { RpcGraphQLContext } from '../context.js';
|
|
4
|
+
import { AccountQueryArgs } from '../schema/account.js';
|
|
5
5
|
export declare const resolveAccount: (fieldName: string) => (parent: {
|
|
6
6
|
[x: string]: Address;
|
|
7
7
|
}, args: AccountQueryArgs, context: RpcGraphQLContext, info: GraphQLResolveInfo | undefined) => Promise<unknown> | null;
|
package/dist/types/rpc.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { GetAccountInfoApi, GetBlockApi, GetProgramAccountsApi, GetTransactionApi } from '@solana/rpc-core';
|
|
2
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
5
|
type RpcMethods = GetAccountInfoApi & GetBlockApi & GetProgramAccountsApi & GetTransactionApi;
|
|
6
6
|
export interface RpcGraphQL {
|
|
7
7
|
context: RpcGraphQLContext;
|
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.c9bd7fa",
|
|
4
4
|
"description": "A library for resolving GraphQl query calls to the Solana JSON RPC API",
|
|
5
5
|
"exports": {
|
|
6
6
|
"browser": {
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"devDependencies": {
|
|
55
55
|
"@solana/eslint-config-solana": "^1.0.2",
|
|
56
56
|
"@swc/jest": "^0.2.29",
|
|
57
|
-
"@types/jest": "^29.5.
|
|
58
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
57
|
+
"@types/jest": "^29.5.11",
|
|
58
|
+
"@typescript-eslint/eslint-plugin": "^6.13.2",
|
|
59
59
|
"@typescript-eslint/parser": "^6.3.0",
|
|
60
60
|
"agadoo": "^3.0.0",
|
|
61
61
|
"eslint": "^8.45.0",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"tsup": "^8.0.1",
|
|
71
71
|
"typescript": "^5.1.6",
|
|
72
72
|
"version-from-git": "^1.1.1",
|
|
73
|
-
"@solana/addresses": "2.0.0-experimental.
|
|
74
|
-
"@solana/keys": "2.0.0-experimental.
|
|
75
|
-
"@solana/rpc-core": "2.0.0-experimental.
|
|
76
|
-
"@solana/rpc-transport": "2.0.0-experimental.
|
|
77
|
-
"@solana/rpc-types": "2.0.0-experimental.
|
|
78
|
-
"@solana/transactions": "2.0.0-experimental.
|
|
73
|
+
"@solana/addresses": "2.0.0-experimental.c9bd7fa",
|
|
74
|
+
"@solana/keys": "2.0.0-experimental.c9bd7fa",
|
|
75
|
+
"@solana/rpc-core": "2.0.0-experimental.c9bd7fa",
|
|
76
|
+
"@solana/rpc-transport": "2.0.0-experimental.c9bd7fa",
|
|
77
|
+
"@solana/rpc-types": "2.0.0-experimental.c9bd7fa",
|
|
78
|
+
"@solana/transactions": "2.0.0-experimental.c9bd7fa",
|
|
79
79
|
"build-scripts": "0.0.0",
|
|
80
80
|
"test-config": "0.0.0",
|
|
81
81
|
"tsconfig": "0.0.0"
|
|
@@ -90,7 +90,7 @@
|
|
|
90
90
|
},
|
|
91
91
|
"scripts": {
|
|
92
92
|
"compile:js": "tsup --config build-scripts/tsup.config.package.ts",
|
|
93
|
-
"compile:typedefs": "tsc -p ./tsconfig.declarations.json",
|
|
93
|
+
"compile:typedefs": "tsc -p ./tsconfig.declarations.json && node node_modules/build-scripts/add-js-extension-to-types.mjs",
|
|
94
94
|
"dev": "jest -c node_modules/test-config/jest-dev.config.ts --globalSetup test-config/test-validator-setup.js --globalTeardown test-config/test-validator-teardown.js --rootDir . --watch",
|
|
95
95
|
"publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
|
|
96
96
|
"style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
|