wallaby-cash 1.7.21 → 1.7.23
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/index.cjs.js +118 -55
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +118 -55
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +118 -55
- package/dist/index.js.map +1 -1
- package/dist/lib/utils/storage.service.d.ts +4 -2
- package/dist/lib/wallet/index.d.ts +4 -0
- package/dist/types/wallet.d.ts +10 -0
- package/package.json +2 -1
|
@@ -47,12 +47,13 @@ declare class StorageService {
|
|
|
47
47
|
* @returns { string | undefined } It returns the decrypted private key as a string or undefined if it can't decrypt it or find it
|
|
48
48
|
*/
|
|
49
49
|
getDecryptedPrivateKey(password: string): Promise<string | undefined>;
|
|
50
|
-
setEncryptedSeedPhrase({ decryptedSeedPhrase, seedPhraseType, password, deviceAuthPublicKey, getUserSalt, }: {
|
|
50
|
+
setEncryptedSeedPhrase({ decryptedSeedPhrase, seedPhraseType, password, deviceAuthPublicKey, getUserSalt, salt, }: {
|
|
51
51
|
decryptedSeedPhrase: string;
|
|
52
52
|
seedPhraseType: SeedPhraseType;
|
|
53
53
|
password: string;
|
|
54
54
|
deviceAuthPublicKey: string;
|
|
55
55
|
getUserSalt: () => Promise<string>;
|
|
56
|
+
salt?: string;
|
|
56
57
|
}): Promise<boolean>;
|
|
57
58
|
/**
|
|
58
59
|
*
|
|
@@ -66,10 +67,11 @@ declare class StorageService {
|
|
|
66
67
|
* @param {SeedPhraseType} seedPhraseType
|
|
67
68
|
* @returns { string | undefined } It returns the decrypted seed phrase as a string or undefined
|
|
68
69
|
*/
|
|
69
|
-
getDecryptedSeedPhrase({ password, seedPhraseType, getUserSalt, }: {
|
|
70
|
+
getDecryptedSeedPhrase({ password, seedPhraseType, getUserSalt, salt, }: {
|
|
70
71
|
password: string;
|
|
71
72
|
seedPhraseType: SeedPhraseType;
|
|
72
73
|
getUserSalt: () => Promise<string>;
|
|
74
|
+
salt?: string;
|
|
73
75
|
}): Promise<string | undefined>;
|
|
74
76
|
setAccessToken(accessToken: string): Promise<boolean>;
|
|
75
77
|
getAccessToken(): Promise<string | undefined>;
|
|
@@ -118,6 +118,10 @@ export declare class Wallet extends Base {
|
|
|
118
118
|
seedPhrase: string;
|
|
119
119
|
decryptedAlgorandSeedphrase: string;
|
|
120
120
|
}) | undefined>;
|
|
121
|
+
changePassword({ oldPassword, newPassword }: {
|
|
122
|
+
oldPassword: string;
|
|
123
|
+
newPassword: string;
|
|
124
|
+
}): Promise<boolean>;
|
|
121
125
|
/**
|
|
122
126
|
*
|
|
123
127
|
* Get all user assets across all wallets by specifying user id
|
package/dist/types/wallet.d.ts
CHANGED
|
@@ -51,6 +51,13 @@ export declare type QueryUserRequest = {
|
|
|
51
51
|
};
|
|
52
52
|
export declare type UserAssetsResponse = {
|
|
53
53
|
assets: Array<UserAsset>;
|
|
54
|
+
walletAddressInfo?: WalletAddressInfo;
|
|
55
|
+
};
|
|
56
|
+
export declare type WalletAddressInfo = {
|
|
57
|
+
evmAddress: string | null;
|
|
58
|
+
btcAddress: string | null;
|
|
59
|
+
algoAddress: string | null;
|
|
60
|
+
suiAddress: string | null;
|
|
54
61
|
};
|
|
55
62
|
export declare type UserWalletsResponse = {
|
|
56
63
|
wallets: Array<Wallet>;
|
|
@@ -63,6 +70,7 @@ export declare type QueryWalletRequest = {
|
|
|
63
70
|
};
|
|
64
71
|
export declare type WalletAssetsResponse = {
|
|
65
72
|
assets: Array<UserAsset>;
|
|
73
|
+
walletAddressInfo?: WalletAddressInfo;
|
|
66
74
|
};
|
|
67
75
|
export declare type CreateWalletRequest = AuthRequest & {
|
|
68
76
|
userId?: string;
|
|
@@ -77,6 +85,7 @@ export declare type ImportWalletRequest = {
|
|
|
77
85
|
export declare type ImportWalletResponse = {
|
|
78
86
|
wallabyAuthPubKey: string;
|
|
79
87
|
assets: Array<UserAsset>;
|
|
88
|
+
walletAddressInfo?: WalletAddressInfo;
|
|
80
89
|
encryptedSeed: Encrypted;
|
|
81
90
|
wallet: Wallet;
|
|
82
91
|
error?: any;
|
|
@@ -106,6 +115,7 @@ export declare type CreateWalletResponse = {
|
|
|
106
115
|
decryptedSeedPhrase: string | undefined;
|
|
107
116
|
decryptedMnemonicSeedPhrase: string | undefined;
|
|
108
117
|
wallet: Wallet;
|
|
118
|
+
walletAddressInfo?: WalletAddressInfo;
|
|
109
119
|
error?: any;
|
|
110
120
|
};
|
|
111
121
|
export declare type ConvertMnemonicSeedPhraseRequest = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wallaby-cash",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.23",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"build:prod": "npm run build --compact --environment production",
|
|
37
37
|
"build:dev": "rollup --config --bundleConfigAsCjs --watch",
|
|
38
38
|
"test": "NODE_ENV=test jest",
|
|
39
|
+
"test:coverage": "NODE_ENV=test jest --coverage",
|
|
39
40
|
"test:watch": "NODE_ENV=test jest --watch",
|
|
40
41
|
"lint": "eslint .",
|
|
41
42
|
"typecheck": "tsc --noEmit",
|