@settlemint/sdk-thegraph 1.1.5 → 1.1.6-mainadd09436
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 +6 -6
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ For detailed information about using TheGraph with the SettleMint platform, chec
|
|
|
54
54
|
|
|
55
55
|
> **createTheGraphClient**\<`Setup`\>(`options`, `clientOptions`?): `object`
|
|
56
56
|
|
|
57
|
-
Defined in: [sdk/thegraph/src/thegraph.ts:121](https://github.com/settlemint/sdk/blob/v1.1.
|
|
57
|
+
Defined in: [sdk/thegraph/src/thegraph.ts:121](https://github.com/settlemint/sdk/blob/v1.1.6/sdk/thegraph/src/thegraph.ts#L121)
|
|
58
58
|
|
|
59
59
|
Creates a TheGraph GraphQL client with proper type safety using gql.tada
|
|
60
60
|
|
|
@@ -81,8 +81,8 @@ An object containing:
|
|
|
81
81
|
|
|
82
82
|
| Name | Type | Defined in |
|
|
83
83
|
| ------ | ------ | ------ |
|
|
84
|
-
| `client` | `GraphQLClient` | [sdk/thegraph/src/thegraph.ts:125](https://github.com/settlemint/sdk/blob/v1.1.
|
|
85
|
-
| `graphql` | `initGraphQLTada`\<`Setup`\> | [sdk/thegraph/src/thegraph.ts:126](https://github.com/settlemint/sdk/blob/v1.1.
|
|
84
|
+
| `client` | `GraphQLClient` | [sdk/thegraph/src/thegraph.ts:125](https://github.com/settlemint/sdk/blob/v1.1.6/sdk/thegraph/src/thegraph.ts#L125) |
|
|
85
|
+
| `graphql` | `initGraphQLTada`\<`Setup`\> | [sdk/thegraph/src/thegraph.ts:126](https://github.com/settlemint/sdk/blob/v1.1.6/sdk/thegraph/src/thegraph.ts#L126) |
|
|
86
86
|
|
|
87
87
|
##### Throws
|
|
88
88
|
|
|
@@ -150,7 +150,7 @@ const result = await client.request(query);
|
|
|
150
150
|
|
|
151
151
|
> **ClientOptions**: \{ `accessToken`: `string`; `instances`: `string`[]; `runtime`: `"server"`; `subgraphName`: `string`; \} \| \{ `runtime`: `"browser"`; `subgraphName`: `string`; \}
|
|
152
152
|
|
|
153
|
-
Defined in: [sdk/thegraph/src/thegraph.ts:34](https://github.com/settlemint/sdk/blob/v1.1.
|
|
153
|
+
Defined in: [sdk/thegraph/src/thegraph.ts:34](https://github.com/settlemint/sdk/blob/v1.1.6/sdk/thegraph/src/thegraph.ts#L34)
|
|
154
154
|
|
|
155
155
|
Type definition for client options derived from the ClientOptionsSchema
|
|
156
156
|
|
|
@@ -160,7 +160,7 @@ Type definition for client options derived from the ClientOptionsSchema
|
|
|
160
160
|
|
|
161
161
|
> **RequestConfig**: `ConstructorParameters`\<*typeof* `GraphQLClient`\>\[`1`\]
|
|
162
162
|
|
|
163
|
-
Defined in: [sdk/thegraph/src/thegraph.ts:10](https://github.com/settlemint/sdk/blob/v1.1.
|
|
163
|
+
Defined in: [sdk/thegraph/src/thegraph.ts:10](https://github.com/settlemint/sdk/blob/v1.1.6/sdk/thegraph/src/thegraph.ts#L10)
|
|
164
164
|
|
|
165
165
|
Type definition for GraphQL client configuration options
|
|
166
166
|
|
|
@@ -170,7 +170,7 @@ Type definition for GraphQL client configuration options
|
|
|
170
170
|
|
|
171
171
|
> `const` **ClientOptionsSchema**: `ZodDiscriminatedUnion`\<[`ClientOptions`](README.md#clientoptions)\>
|
|
172
172
|
|
|
173
|
-
Defined in: [sdk/thegraph/src/thegraph.ts:18](https://github.com/settlemint/sdk/blob/v1.1.
|
|
173
|
+
Defined in: [sdk/thegraph/src/thegraph.ts:18](https://github.com/settlemint/sdk/blob/v1.1.6/sdk/thegraph/src/thegraph.ts#L18)
|
|
174
174
|
|
|
175
175
|
Schema for validating client options for the TheGraph client.
|
|
176
176
|
Defines two possible runtime configurations:
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/sdk-thegraph",
|
|
3
3
|
"description": "TheGraph integration module for SettleMint SDK, enabling querying and indexing of blockchain data through subgraphs",
|
|
4
|
-
"version": "1.1.
|
|
4
|
+
"version": "1.1.6-mainadd09436",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"license": "FSL-1.1-MIT",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"devDependencies": {},
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"gql.tada": "^1",
|
|
55
|
-
"@settlemint/sdk-utils": "1.1.
|
|
55
|
+
"@settlemint/sdk-utils": "1.1.6-mainadd09436",
|
|
56
56
|
"graphql-request": "^7",
|
|
57
57
|
"zod": "^3"
|
|
58
58
|
},
|