@explorins/pers-sdk-react-native 1.5.4 → 1.5.5
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/hooks/useTransactionSigner.d.ts.map +1 -1
- package/dist/hooks/useTransactionSigner.js +10 -2
- package/dist/index.js +10 -2
- package/dist/index.js.map +1 -1
- package/dist/react-native.esm-BtyCg4n1.js +10062 -0
- package/dist/react-native.esm-BtyCg4n1.js.map +1 -0
- package/package.json +1 -1
- package/src/hooks/useTransactionSigner.ts +11 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTransactionSigner.d.ts","sourceRoot":"","sources":["../../src/hooks/useTransactionSigner.ts"],"names":[],"mappings":"AA6EA,UAAU,wBAAwB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAKD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,oBAAoB;
|
|
1
|
+
{"version":3,"file":"useTransactionSigner.d.ts","sourceRoot":"","sources":["../../src/hooks/useTransactionSigner.ts"],"names":[],"mappings":"AA6EA,UAAU,wBAAwB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAKD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AACH,eAAO,MAAM,oBAAoB;IA0K7B;;OAEG;2BAtE2C,MAAM,KAAG,QAAQ,wBAAwB,CAAC;IAyExF;;OAEG;gCAvIgD;QACnD,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;KAC5B;IAsIC;;OAEG;;IAGH;;OAEG;;CAGN,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAE5E;;GAEG;AACH,YAAY,EAAE,wBAAwB,EAAE,CAAC"}
|
|
@@ -114,10 +114,18 @@ export const useTransactionSigner = () => {
|
|
|
114
114
|
}
|
|
115
115
|
try {
|
|
116
116
|
console.log('[useTransactionSigner] Initializing PERS transaction signer...');
|
|
117
|
-
//
|
|
117
|
+
// Configure the PERS service with the project key before creating SDK
|
|
118
|
+
if (config?.projectKey) {
|
|
119
|
+
console.log('[useTransactionSigner] Configuring PERS service with project key:', config.projectKey);
|
|
120
|
+
// Import and configure the PERS service
|
|
121
|
+
const { PersService } = await import('@explorins/pers-signer/react-native');
|
|
122
|
+
PersService.configure({
|
|
123
|
+
projectKey: config.projectKey
|
|
124
|
+
});
|
|
125
|
+
console.log('[useTransactionSigner] PERS service configured with project key');
|
|
126
|
+
}
|
|
118
127
|
const signerSDK = await createPersSignerSDK({
|
|
119
128
|
tenantId: config?.tenantId,
|
|
120
|
-
// projectKey: config?.projectKey,
|
|
121
129
|
ethersProviderUrl: config?.ethersProviderUrl || DEFAULT_ETHERS_PROVIDER
|
|
122
130
|
});
|
|
123
131
|
signerSDKRef.current = signerSDK;
|
package/dist/index.js
CHANGED
|
@@ -30356,10 +30356,18 @@ const useTransactionSigner = () => {
|
|
|
30356
30356
|
}
|
|
30357
30357
|
try {
|
|
30358
30358
|
console.log('[useTransactionSigner] Initializing PERS transaction signer...');
|
|
30359
|
-
//
|
|
30359
|
+
// Configure the PERS service with the project key before creating SDK
|
|
30360
|
+
if (config?.projectKey) {
|
|
30361
|
+
console.log('[useTransactionSigner] Configuring PERS service with project key:', config.projectKey);
|
|
30362
|
+
// Import and configure the PERS service
|
|
30363
|
+
const { PersService } = await Promise.resolve().then(function () { return require('./react-native.esm-BtyCg4n1.js'); });
|
|
30364
|
+
PersService.configure({
|
|
30365
|
+
projectKey: config.projectKey
|
|
30366
|
+
});
|
|
30367
|
+
console.log('[useTransactionSigner] PERS service configured with project key');
|
|
30368
|
+
}
|
|
30360
30369
|
const signerSDK = await createPersSignerSDK({
|
|
30361
30370
|
tenantId: config?.tenantId,
|
|
30362
|
-
// projectKey: config?.projectKey,
|
|
30363
30371
|
ethersProviderUrl: config?.ethersProviderUrl || DEFAULT_ETHERS_PROVIDER
|
|
30364
30372
|
});
|
|
30365
30373
|
signerSDKRef.current = signerSDK;
|