@solana/rpc-graphql 2.0.0-experimental.0cfc222

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
+ import { GraphQLObjectType } from 'graphql';
2
+ export declare const programAccount: () => GraphQLObjectType<any, any>;
3
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1,3 @@
1
+ import { GraphQLScalarType } from 'graphql';
2
+ export declare const BigIntScalar: () => GraphQLScalarType<bigint | null, bigint>;
3
+ //# sourceMappingURL=scalars.d.ts.map
@@ -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 ADDED
@@ -0,0 +1,101 @@
1
+ {
2
+ "name": "@solana/rpc-graphql",
3
+ "version": "2.0.0-experimental.0cfc222",
4
+ "description": "A library for resolving GraphQl query calls to the Solana JSON RPC API",
5
+ "exports": {
6
+ "browser": {
7
+ "import": "./dist/index.browser.js",
8
+ "require": "./dist/index.browser.cjs"
9
+ },
10
+ "node": {
11
+ "import": "./dist/index.node.js",
12
+ "require": "./dist/index.node.cjs"
13
+ },
14
+ "react-native": "./dist/index.native.js",
15
+ "types": "./dist/types/index.d.ts"
16
+ },
17
+ "browser": {
18
+ "./dist/index.node.cjs": "./dist/index.browser.cjs",
19
+ "./dist/index.node.js": "./dist/index.browser.js"
20
+ },
21
+ "main": "./dist/index.node.cjs",
22
+ "module": "./dist/index.node.js",
23
+ "react-native": "./dist/index.native.js",
24
+ "types": "./dist/types/index.d.ts",
25
+ "type": "module",
26
+ "files": [
27
+ "./dist/"
28
+ ],
29
+ "sideEffects": false,
30
+ "keywords": [
31
+ "blockchain",
32
+ "solana",
33
+ "web3"
34
+ ],
35
+ "author": "Solana Labs Maintainers <maintainers@solanalabs.com>",
36
+ "license": "MIT",
37
+ "repository": {
38
+ "type": "git",
39
+ "url": "https://github.com/solana-labs/solana-web3.js"
40
+ },
41
+ "bugs": {
42
+ "url": "http://github.com/solana-labs/solana-web3.js/issues"
43
+ },
44
+ "browserslist": [
45
+ "supports bigint and not dead",
46
+ "maintained node versions"
47
+ ],
48
+ "dependencies": {
49
+ "graphql": "^16.8.0"
50
+ },
51
+ "devDependencies": {
52
+ "@solana/eslint-config-solana": "^1.0.2",
53
+ "@swc/jest": "^0.2.28",
54
+ "@types/jest": "^29.5.3",
55
+ "@typescript-eslint/eslint-plugin": "^6.3.0",
56
+ "@typescript-eslint/parser": "^6.3.0",
57
+ "agadoo": "^3.0.0",
58
+ "eslint": "^8.45.0",
59
+ "eslint-plugin-jest": "^27.2.3",
60
+ "eslint-plugin-sort-keys-fix": "^1.1.2",
61
+ "jest": "^29.6.1",
62
+ "jest-environment-jsdom": "^29.6.2",
63
+ "jest-fetch-mock-fork": "^3.0.4",
64
+ "jest-runner-eslint": "^2.1.0",
65
+ "jest-runner-prettier": "^1.0.0",
66
+ "prettier": "^2.8",
67
+ "tsup": "7.2.0",
68
+ "typescript": "^5.1.6",
69
+ "version-from-git": "^1.1.1",
70
+ "@solana/addresses": "2.0.0-experimental.0cfc222",
71
+ "@solana/rpc-core": "2.0.0-experimental.0cfc222",
72
+ "@solana/rpc-transport": "2.0.0-experimental.0cfc222",
73
+ "@solana/transactions": "2.0.0-experimental.0cfc222",
74
+ "build-scripts": "0.0.0",
75
+ "test-config": "0.0.0",
76
+ "tsconfig": "0.0.0"
77
+ },
78
+ "bundlewatch": {
79
+ "defaultCompression": "gzip",
80
+ "files": [
81
+ {
82
+ "path": "./dist/index*.js"
83
+ }
84
+ ]
85
+ },
86
+ "scripts": {
87
+ "compile:js": "tsup --config build-scripts/tsup.config.package.ts",
88
+ "compile:typedefs": "tsc -p ./tsconfig.declarations.json",
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",
90
+ "publish-packages": "pnpm publish --tag experimental --access public --no-git-checks",
91
+ "style:fix": "pnpm eslint --fix src/* && pnpm prettier -w src/* package.json",
92
+ "test:lint": "jest -c node_modules/test-config/jest-lint.config.ts --rootDir . --silent",
93
+ "test:prettier": "jest -c node_modules/test-config/jest-prettier.config.ts --rootDir . --silent",
94
+ "test:treeshakability:browser": "agadoo dist/index.browser.js",
95
+ "test:treeshakability:native": "agadoo dist/index.native.js",
96
+ "test:treeshakability:node": "agadoo dist/index.node.js",
97
+ "test:typecheck": "tsc --noEmit",
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"
100
+ }
101
+ }