@settlemint/sdk-portal 2.2.1-mainfa37c298 → 2.2.2-mainedc2bc7c
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 +14 -14
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -366,7 +366,7 @@ console.log("Transaction hash:", result.StableCoinFactoryCreate?.transactionHash
|
|
|
366
366
|
|
|
367
367
|
> **createPortalClient**\<`Setup`\>(`options`, `clientOptions?`): `object`
|
|
368
368
|
|
|
369
|
-
Defined in: [sdk/portal/src/portal.ts:71](https://github.com/settlemint/sdk/blob/v2.2.
|
|
369
|
+
Defined in: [sdk/portal/src/portal.ts:71](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/portal.ts#L71)
|
|
370
370
|
|
|
371
371
|
Creates a Portal GraphQL client with the provided configuration.
|
|
372
372
|
|
|
@@ -394,8 +394,8 @@ An object containing the configured GraphQL client and graphql helper function
|
|
|
394
394
|
|
|
395
395
|
| Name | Type | Defined in |
|
|
396
396
|
| ------ | ------ | ------ |
|
|
397
|
-
| `client` | `GraphQLClient` | [sdk/portal/src/portal.ts:75](https://github.com/settlemint/sdk/blob/v2.2.
|
|
398
|
-
| `graphql` | `initGraphQLTada`\<`Setup`\> | [sdk/portal/src/portal.ts:76](https://github.com/settlemint/sdk/blob/v2.2.
|
|
397
|
+
| `client` | `GraphQLClient` | [sdk/portal/src/portal.ts:75](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/portal.ts#L75) |
|
|
398
|
+
| `graphql` | `initGraphQLTada`\<`Setup`\> | [sdk/portal/src/portal.ts:76](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/portal.ts#L76) |
|
|
399
399
|
|
|
400
400
|
##### Throws
|
|
401
401
|
|
|
@@ -447,7 +447,7 @@ const result = await portalClient.request(query);
|
|
|
447
447
|
|
|
448
448
|
> **handleWalletVerificationChallenge**\<`Setup`\>(`options`): `Promise`\<\{ `challengeResponse`: `string`; `verificationId?`: `string`; \}\>
|
|
449
449
|
|
|
450
|
-
Defined in: [sdk/portal/src/utils/wallet-verification-challenge.ts:106](https://github.com/settlemint/sdk/blob/v2.2.
|
|
450
|
+
Defined in: [sdk/portal/src/utils/wallet-verification-challenge.ts:106](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/utils/wallet-verification-challenge.ts#L106)
|
|
451
451
|
|
|
452
452
|
Handles a wallet verification challenge by generating an appropriate response
|
|
453
453
|
|
|
@@ -500,7 +500,7 @@ const result = await handleWalletVerificationChallenge({
|
|
|
500
500
|
|
|
501
501
|
> **waitForTransactionReceipt**(`transactionHash`, `options`): `Promise`\<[`Transaction`](#transaction)\>
|
|
502
502
|
|
|
503
|
-
Defined in: [sdk/portal/src/utils/wait-for-transaction-receipt.ts:82](https://github.com/settlemint/sdk/blob/v2.2.
|
|
503
|
+
Defined in: [sdk/portal/src/utils/wait-for-transaction-receipt.ts:82](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/utils/wait-for-transaction-receipt.ts#L82)
|
|
504
504
|
|
|
505
505
|
Waits for a blockchain transaction receipt by subscribing to transaction updates via GraphQL.
|
|
506
506
|
This function polls until the transaction is confirmed or the timeout is reached.
|
|
@@ -538,7 +538,7 @@ const transaction = await waitForTransactionReceipt("0x123...", {
|
|
|
538
538
|
|
|
539
539
|
#### HandleWalletVerificationChallengeOptions\<Setup\>
|
|
540
540
|
|
|
541
|
-
Defined in: [sdk/portal/src/utils/wallet-verification-challenge.ts:73](https://github.com/settlemint/sdk/blob/v2.2.
|
|
541
|
+
Defined in: [sdk/portal/src/utils/wallet-verification-challenge.ts:73](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/utils/wallet-verification-challenge.ts#L73)
|
|
542
542
|
|
|
543
543
|
Options for handling a wallet verification challenge
|
|
544
544
|
|
|
@@ -552,7 +552,7 @@ Options for handling a wallet verification challenge
|
|
|
552
552
|
|
|
553
553
|
#### Transaction
|
|
554
554
|
|
|
555
|
-
Defined in: [sdk/portal/src/utils/wait-for-transaction-receipt.ts:25](https://github.com/settlemint/sdk/blob/v2.2.
|
|
555
|
+
Defined in: [sdk/portal/src/utils/wait-for-transaction-receipt.ts:25](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/utils/wait-for-transaction-receipt.ts#L25)
|
|
556
556
|
|
|
557
557
|
Represents the structure of a blockchain transaction with its receipt
|
|
558
558
|
|
|
@@ -560,7 +560,7 @@ Represents the structure of a blockchain transaction with its receipt
|
|
|
560
560
|
|
|
561
561
|
#### WaitForTransactionReceiptOptions
|
|
562
562
|
|
|
563
|
-
Defined in: [sdk/portal/src/utils/wait-for-transaction-receipt.ts:58](https://github.com/settlemint/sdk/blob/v2.2.
|
|
563
|
+
Defined in: [sdk/portal/src/utils/wait-for-transaction-receipt.ts:58](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/utils/wait-for-transaction-receipt.ts#L58)
|
|
564
564
|
|
|
565
565
|
Options for waiting for a transaction receipt
|
|
566
566
|
|
|
@@ -570,7 +570,7 @@ Options for waiting for a transaction receipt
|
|
|
570
570
|
|
|
571
571
|
> **ClientOptions** = `object`
|
|
572
572
|
|
|
573
|
-
Defined in: [sdk/portal/src/portal.ts:24](https://github.com/settlemint/sdk/blob/v2.2.
|
|
573
|
+
Defined in: [sdk/portal/src/portal.ts:24](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/portal.ts#L24)
|
|
574
574
|
|
|
575
575
|
Type representing the validated client options.
|
|
576
576
|
|
|
@@ -578,9 +578,9 @@ Type representing the validated client options.
|
|
|
578
578
|
|
|
579
579
|
| Name | Type | Default value | Defined in |
|
|
580
580
|
| ------ | ------ | ------ | ------ |
|
|
581
|
-
| <a id="accesstoken"></a> `accessToken` | `string` | `ApplicationAccessTokenSchema` | [sdk/portal/src/portal.ts:17](https://github.com/settlemint/sdk/blob/v2.2.
|
|
582
|
-
| <a id="cache"></a> `cache?` | `"default"` \| `"force-cache"` \| `"no-cache"` \| `"no-store"` \| `"only-if-cached"` \| `"reload"` | - | [sdk/portal/src/portal.ts:18](https://github.com/settlemint/sdk/blob/v2.2.
|
|
583
|
-
| <a id="instance"></a> `instance` | `string` | `UrlOrPathSchema` | [sdk/portal/src/portal.ts:16](https://github.com/settlemint/sdk/blob/v2.2.
|
|
581
|
+
| <a id="accesstoken"></a> `accessToken` | `string` | `ApplicationAccessTokenSchema` | [sdk/portal/src/portal.ts:17](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/portal.ts#L17) |
|
|
582
|
+
| <a id="cache"></a> `cache?` | `"default"` \| `"force-cache"` \| `"no-cache"` \| `"no-store"` \| `"only-if-cached"` \| `"reload"` | - | [sdk/portal/src/portal.ts:18](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/portal.ts#L18) |
|
|
583
|
+
| <a id="instance"></a> `instance` | `string` | `UrlOrPathSchema` | [sdk/portal/src/portal.ts:16](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/portal.ts#L16) |
|
|
584
584
|
|
|
585
585
|
***
|
|
586
586
|
|
|
@@ -588,7 +588,7 @@ Type representing the validated client options.
|
|
|
588
588
|
|
|
589
589
|
> **RequestConfig** = `ConstructorParameters`\<*typeof* `GraphQLClient`\>\[`1`\]
|
|
590
590
|
|
|
591
|
-
Defined in: [sdk/portal/src/portal.ts:10](https://github.com/settlemint/sdk/blob/v2.2.
|
|
591
|
+
Defined in: [sdk/portal/src/portal.ts:10](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/portal.ts#L10)
|
|
592
592
|
|
|
593
593
|
Configuration options for the GraphQL client, excluding 'url' and 'exchanges'.
|
|
594
594
|
|
|
@@ -598,7 +598,7 @@ Configuration options for the GraphQL client, excluding 'url' and 'exchanges'.
|
|
|
598
598
|
|
|
599
599
|
> `const` **ClientOptionsSchema**: `ZodObject`\<[`ClientOptions`](#clientoptions)\>
|
|
600
600
|
|
|
601
|
-
Defined in: [sdk/portal/src/portal.ts:15](https://github.com/settlemint/sdk/blob/v2.2.
|
|
601
|
+
Defined in: [sdk/portal/src/portal.ts:15](https://github.com/settlemint/sdk/blob/v2.2.2/sdk/portal/src/portal.ts#L15)
|
|
602
602
|
|
|
603
603
|
Schema for validating Portal client configuration options.
|
|
604
604
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@settlemint/sdk-portal",
|
|
3
3
|
"description": "Portal API client module for SettleMint SDK, providing access to smart contract portal services and APIs",
|
|
4
|
-
"version": "2.2.
|
|
4
|
+
"version": "2.2.2-mainedc2bc7c",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
7
7
|
"license": "FSL-1.1-MIT",
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"gql.tada": "^1",
|
|
58
58
|
"graphql-ws": "^6",
|
|
59
|
-
"@settlemint/sdk-utils": "2.2.
|
|
59
|
+
"@settlemint/sdk-utils": "2.2.2-mainedc2bc7c",
|
|
60
60
|
"graphql-request": "^7",
|
|
61
61
|
"zod": "^3"
|
|
62
62
|
},
|