@solana/rpc-graphql 2.0.0-experimental.eb5fd16 → 2.0.0-experimental.fc4e943

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.
@@ -0,0 +1,3 @@
1
+ export * from './query';
2
+ export * from './types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1,33 @@
1
+ import { Commitment } from '@solana/rpc-core';
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
@@ -0,0 +1,12 @@
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solana/rpc-graphql",
3
- "version": "2.0.0-experimental.eb5fd16",
3
+ "version": "2.0.0-experimental.fc4e943",
4
4
  "description": "A library for resolving GraphQl query calls to the Solana JSON RPC API",
5
5
  "exports": {
6
6
  "browser": {
@@ -67,9 +67,10 @@
67
67
  "tsup": "7.2.0",
68
68
  "typescript": "^5.1.6",
69
69
  "version-from-git": "^1.1.1",
70
- "@solana/addresses": "2.0.0-experimental.eb5fd16",
71
- "@solana/rpc-core": "2.0.0-experimental.eb5fd16",
72
- "@solana/rpc-transport": "2.0.0-experimental.eb5fd16",
70
+ "@solana/addresses": "2.0.0-experimental.fc4e943",
71
+ "@solana/rpc-core": "2.0.0-experimental.fc4e943",
72
+ "@solana/rpc-transport": "2.0.0-experimental.fc4e943",
73
+ "@solana/transactions": "2.0.0-experimental.fc4e943",
73
74
  "build-scripts": "0.0.0",
74
75
  "test-config": "0.0.0",
75
76
  "tsconfig": "0.0.0"
@@ -87,14 +88,14 @@
87
88
  "compile:typedefs": "tsc -p ./tsconfig.declarations.json",
88
89
  "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",
89
90
  "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
90
- "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/*",
91
+ "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
91
92
  "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
92
93
  "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
93
94
  "test:treeshakability:browser": "agadoo dist/index.browser.js",
94
95
  "test:treeshakability:native": "agadoo dist/index.native.js",
95
96
  "test:treeshakability:node": "agadoo dist/index.node.js",
96
97
  "test:typecheck": "tsc --noEmit",
97
- "test:unit:browser": "jest -c node_modules/test-config/jest-unit.config.browser.ts --globalSetup test-config/test-validator-setup.js --globalTeardown test-config/test-validator-teardown.js --rootDir . --silent --passWithNoTests",
98
- "test:unit:node": "jest -c node_modules/test-config/jest-unit.config.node.ts --globalSetup test-config/test-validator-setup.js --globalTeardown test-config/test-validator-teardown.js --rootDir . --silent --passWithNoTests"
98
+ "test:unit:browser": "jest -c node_modules/test-config/jest-unit.config.browser.ts --globalSetup test-config/test-validator-setup.js --globalTeardown test-config/test-validator-teardown.js --rootDir . --silent",
99
+ "test:unit:node": "jest -c node_modules/test-config/jest-unit.config.node.ts --globalSetup test-config/test-validator-setup.js --globalTeardown test-config/test-validator-teardown.js --rootDir . --silent"
99
100
  }
100
101
  }