@compilot/react-sdk 2.21.4 → 2.25.2-dev
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/compilot-react-sdk.cjs.dev.js +2 -0
- package/dist/compilot-react-sdk.cjs.prod.js +2 -0
- package/dist/compilot-react-sdk.esm.js +2 -0
- package/dist/declarations/src/hooks/useGetTxAuthDataSignature.d.ts +5 -3
- package/dist/declarations/src/hooks/useGetTxAuthDataSignature.d.ts.map +1 -1
- package/dist/package.json +1 -1
- package/package.json +5 -5
|
@@ -1090,6 +1090,7 @@ var useDisconnect = function useDisconnect() {
|
|
|
1090
1090
|
*
|
|
1091
1091
|
* // Get signature for the given parameters
|
|
1092
1092
|
* const signatureResponse = await getTxAuthDataSignature({
|
|
1093
|
+
* workflowId: "123", // this has to be a workflow of type "SignatureGating"
|
|
1093
1094
|
* namespace: "eip155",
|
|
1094
1095
|
* contractAbi,
|
|
1095
1096
|
* contractAddress,
|
|
@@ -1158,6 +1159,7 @@ var useDisconnect = function useDisconnect() {
|
|
|
1158
1159
|
*
|
|
1159
1160
|
* // Get signature for the given parameters
|
|
1160
1161
|
* const signatureResponse = await getTxAuthDataSignature({
|
|
1162
|
+
* workflowId: "123", // this has to be a workflow of type "SignatureGating"
|
|
1161
1163
|
* namespace: "tezos",
|
|
1162
1164
|
* contractAddress: "KT1JN7a2es4Ne8SuePZU7YrHKG49hfgCCyBK",
|
|
1163
1165
|
* functionName: "%mint_gated%",
|
|
@@ -1090,6 +1090,7 @@ var useDisconnect = function useDisconnect() {
|
|
|
1090
1090
|
*
|
|
1091
1091
|
* // Get signature for the given parameters
|
|
1092
1092
|
* const signatureResponse = await getTxAuthDataSignature({
|
|
1093
|
+
* workflowId: "123", // this has to be a workflow of type "SignatureGating"
|
|
1093
1094
|
* namespace: "eip155",
|
|
1094
1095
|
* contractAbi,
|
|
1095
1096
|
* contractAddress,
|
|
@@ -1158,6 +1159,7 @@ var useDisconnect = function useDisconnect() {
|
|
|
1158
1159
|
*
|
|
1159
1160
|
* // Get signature for the given parameters
|
|
1160
1161
|
* const signatureResponse = await getTxAuthDataSignature({
|
|
1162
|
+
* workflowId: "123", // this has to be a workflow of type "SignatureGating"
|
|
1161
1163
|
* namespace: "tezos",
|
|
1162
1164
|
* contractAddress: "KT1JN7a2es4Ne8SuePZU7YrHKG49hfgCCyBK",
|
|
1163
1165
|
* functionName: "%mint_gated%",
|
|
@@ -1087,6 +1087,7 @@ var useDisconnect = function useDisconnect() {
|
|
|
1087
1087
|
*
|
|
1088
1088
|
* // Get signature for the given parameters
|
|
1089
1089
|
* const signatureResponse = await getTxAuthDataSignature({
|
|
1090
|
+
* workflowId: "123", // this has to be a workflow of type "SignatureGating"
|
|
1090
1091
|
* namespace: "eip155",
|
|
1091
1092
|
* contractAbi,
|
|
1092
1093
|
* contractAddress,
|
|
@@ -1155,6 +1156,7 @@ var useDisconnect = function useDisconnect() {
|
|
|
1155
1156
|
*
|
|
1156
1157
|
* // Get signature for the given parameters
|
|
1157
1158
|
* const signatureResponse = await getTxAuthDataSignature({
|
|
1159
|
+
* workflowId: "123", // this has to be a workflow of type "SignatureGating"
|
|
1158
1160
|
* namespace: "tezos",
|
|
1159
1161
|
* contractAddress: "KT1JN7a2es4Ne8SuePZU7YrHKG49hfgCCyBK",
|
|
1160
1162
|
* functionName: "%mint_gated%",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { Eip155TxAuthInputJsSdk, ExtendedTezosTxAuthDataSignatureResponse, ExtendedTxAuthDataSignatureResponse, TezosTxAuthInputJsSdk } from "@nexeraid/identity-schemas";
|
|
2
2
|
/**
|
|
3
3
|
* A callback that returns a transaction authorization data signature.
|
|
4
4
|
*
|
|
@@ -8,11 +8,11 @@ export type TxAuthDataSignatureCallback = {
|
|
|
8
8
|
/**
|
|
9
9
|
* Returns a transaction authorization data signature for eip155 transactions.
|
|
10
10
|
*/
|
|
11
|
-
(input:
|
|
11
|
+
(input: Eip155TxAuthInputJsSdk): Promise<ExtendedTxAuthDataSignatureResponse>;
|
|
12
12
|
/**
|
|
13
13
|
* Returns a transaction authorization data signature for Tezos transactions.
|
|
14
14
|
*/
|
|
15
|
-
(input:
|
|
15
|
+
(input: TezosTxAuthInputJsSdk): Promise<ExtendedTezosTxAuthDataSignatureResponse>;
|
|
16
16
|
};
|
|
17
17
|
/**
|
|
18
18
|
* A hook that returns a function that returns a transaction authorization data signature.
|
|
@@ -41,6 +41,7 @@ export type TxAuthDataSignatureCallback = {
|
|
|
41
41
|
*
|
|
42
42
|
* // Get signature for the given parameters
|
|
43
43
|
* const signatureResponse = await getTxAuthDataSignature({
|
|
44
|
+
* workflowId: "123", // this has to be a workflow of type "SignatureGating"
|
|
44
45
|
* namespace: "eip155",
|
|
45
46
|
* contractAbi,
|
|
46
47
|
* contractAddress,
|
|
@@ -109,6 +110,7 @@ export type TxAuthDataSignatureCallback = {
|
|
|
109
110
|
*
|
|
110
111
|
* // Get signature for the given parameters
|
|
111
112
|
* const signatureResponse = await getTxAuthDataSignature({
|
|
113
|
+
* workflowId: "123", // this has to be a workflow of type "SignatureGating"
|
|
112
114
|
* namespace: "tezos",
|
|
113
115
|
* contractAddress: "KT1JN7a2es4Ne8SuePZU7YrHKG49hfgCCyBK",
|
|
114
116
|
* functionName: "%mint_gated%",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetTxAuthDataSignature.d.ts","sourceRoot":"../../../../src/hooks","sources":["useGetTxAuthDataSignature.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,wCAAwC,EACxC,
|
|
1
|
+
{"version":3,"file":"useGetTxAuthDataSignature.d.ts","sourceRoot":"../../../../src/hooks","sources":["useGetTxAuthDataSignature.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,sBAAsB,EACtB,wCAAwC,EACxC,mCAAmC,EACnC,qBAAqB,EACtB,MAAM,4BAA4B,CAAC;AAKpC;;;;GAIG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,CAAC,KAAK,EAAE,sBAAsB,GAAG,OAAO,CAAC,mCAAmC,CAAC,CAAC;IAC9E;;OAEG;IACH,CACE,KAAK,EAAE,qBAAqB,GAC3B,OAAO,CAAC,wCAAwC,CAAC,CAAC;CACtD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuJG;AACH,eAAO,MAAM,yBAAyB,6HAgBrC,CAAC"}
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@compilot/react-sdk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.25.2-dev",
|
|
4
4
|
"description": "ComPilot React SDK",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "ISC",
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"pino": "^9.5.0",
|
|
35
35
|
"zod": "^3.23.8",
|
|
36
|
-
"@compilot/web-sdk": "2.
|
|
37
|
-
"@nexeraid/identity-api-client": "2.
|
|
38
|
-
"@nexeraid/identity-schemas": "2.
|
|
39
|
-
"@nexeraid/logger": "2.
|
|
36
|
+
"@compilot/web-sdk": "2.25.2-dev",
|
|
37
|
+
"@nexeraid/identity-api-client": "2.25.1-dev",
|
|
38
|
+
"@nexeraid/identity-schemas": "2.26.0-dev",
|
|
39
|
+
"@nexeraid/logger": "2.25.1-dev"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"react": ">=17.0.0 <20.0.0"
|