wallaby-cash 2.3.8 → 2.3.10
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/helpers/omit.d.ts +1 -0
- package/dist/index.cjs.js +14 -3
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +13 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +13 -2
- package/dist/index.js.map +1 -1
- package/dist/lib/system/index.d.ts +1 -0
- package/dist/package.json +9 -7
- package/dist/types/wallet.d.ts +1 -0
- package/package.json +9 -7
package/dist/index.js
CHANGED
|
@@ -4,7 +4,6 @@ import log from 'loglevel';
|
|
|
4
4
|
import { AES, enc } from 'crypto-js';
|
|
5
5
|
import { jwtDecode } from 'jwt-decode';
|
|
6
6
|
import * as NativeWebAuthn from 'react-native-passkey';
|
|
7
|
-
import { omit } from 'lodash';
|
|
8
7
|
import { atob, toUint8Array } from 'js-base64';
|
|
9
8
|
import { v4 } from 'uuid';
|
|
10
9
|
|
|
@@ -577,7 +576,7 @@ const env = {
|
|
|
577
576
|
isNative: false,
|
|
578
577
|
isWeb,
|
|
579
578
|
};
|
|
580
|
-
const currentPackageVersion = "2.3.
|
|
579
|
+
const currentPackageVersion = "2.3.10" ;
|
|
581
580
|
|
|
582
581
|
/**
|
|
583
582
|
* Storage keys adapter for Storage interface across different platforms.
|
|
@@ -7377,6 +7376,13 @@ const SwapRoutes = {
|
|
|
7377
7376
|
},
|
|
7378
7377
|
};
|
|
7379
7378
|
|
|
7379
|
+
function omit(obj, keys) {
|
|
7380
|
+
if (!obj)
|
|
7381
|
+
return {};
|
|
7382
|
+
const keysSet = new Set(keys);
|
|
7383
|
+
return Object.fromEntries(Object.entries(obj).filter(([k]) => !keysSet.has(k)));
|
|
7384
|
+
}
|
|
7385
|
+
|
|
7380
7386
|
/**
|
|
7381
7387
|
* React Native Authenticator Implementation
|
|
7382
7388
|
*
|
|
@@ -8661,6 +8667,7 @@ class WalletHandlersService extends Base {
|
|
|
8661
8667
|
});
|
|
8662
8668
|
const importWalletPayload = {
|
|
8663
8669
|
reference: v4(),
|
|
8670
|
+
walletId: importWalletInput.walletId,
|
|
8664
8671
|
message,
|
|
8665
8672
|
signature,
|
|
8666
8673
|
encryptedSeed: readyForTransportSeedPhrase,
|
|
@@ -10352,6 +10359,7 @@ class WalletService extends Base {
|
|
|
10352
10359
|
publicKey: clientPublicKey,
|
|
10353
10360
|
privateKey: decryptedClientAuthPrivKey,
|
|
10354
10361
|
}, {
|
|
10362
|
+
walletId: input.walletId,
|
|
10355
10363
|
authenticationOptions: authentication,
|
|
10356
10364
|
seedPhrase: decryptedSeedPhrase,
|
|
10357
10365
|
storeSeedPhrase: false,
|
|
@@ -11517,6 +11525,9 @@ class System extends Base {
|
|
|
11517
11525
|
if ((options === null || options === void 0 ? void 0 : options.chainName) !== undefined) {
|
|
11518
11526
|
queryParams.chainName = options.chainName;
|
|
11519
11527
|
}
|
|
11528
|
+
if ((options === null || options === void 0 ? void 0 : options.contractAddress) !== undefined) {
|
|
11529
|
+
queryParams.contractAddress = options.contractAddress;
|
|
11530
|
+
}
|
|
11520
11531
|
const response = await this.request(SystemRoutes.getSupportedTokens, {
|
|
11521
11532
|
queryParams: Object.keys(queryParams).length > 0 ? queryParams : undefined,
|
|
11522
11533
|
});
|