wallaby-cash 2.3.4 → 2.3.6
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 +34 -142
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +32 -142
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +32 -142
- package/dist/index.js.map +1 -1
- package/dist/lib/wallet/wallet-data.service.d.ts +1 -1
- package/dist/lib/wallet/wallet.service.d.ts +4 -7
- package/dist/package.json +3 -1
- package/dist/routes/swap.d.ts +1 -3
- package/dist/routes/wallet.d.ts +1 -1
- package/dist/types/wallet.d.ts +1 -15
- package/package.json +3 -1
|
@@ -20,7 +20,7 @@ export declare class WalletDataService extends Base {
|
|
|
20
20
|
* @param { BlockchainName } chainName the chain name enum. i.e. 'ETHEREUM', 'BITCOIN'
|
|
21
21
|
* @returns { TokenBalance } Balance of the token
|
|
22
22
|
*/
|
|
23
|
-
getTokenBalance({ address,
|
|
23
|
+
getTokenBalance({ address, assetSymbol, tokenStandard, chainName }: TokenBalanceRequest): Promise<TokenBalance>;
|
|
24
24
|
/**
|
|
25
25
|
*
|
|
26
26
|
* @public
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Base } from '../../base';
|
|
2
|
-
import {
|
|
2
|
+
import { CreateWalletRequest, CreateWalletResponse, Encrypted, WallabyConfig, ExportWalletRequest, ImportWalletRequest, AddNewDeviceRequest, RecoverWalletRequest, AsymmetricKeyPair, InitAddNewDeviceResponse, GenerateMissingAddressResponseDto, AuthenticationResponse, BlockchainName, ImportWalletResponse, RecoverWalletResponse } from '../../types';
|
|
3
3
|
import { KeyShareDto } from '../../generated/api';
|
|
4
4
|
export declare class WalletService extends Base {
|
|
5
5
|
private authService;
|
|
@@ -130,13 +130,10 @@ export declare class WalletService extends Base {
|
|
|
130
130
|
*
|
|
131
131
|
* @public
|
|
132
132
|
* Convert BIP39 Standard seed phrase to Algorand fixed 25 words mnemonic phrase
|
|
133
|
-
* @param {
|
|
134
|
-
*
|
|
135
|
-
* - {string} walletId - The Wallaby wallet ID.
|
|
136
|
-
* - {AuthenticationResponse} authenticationOptions - The authentication options carried from the authentication request (`signIn` | `signUp`)
|
|
137
|
-
* @returns {ConvertMnemonicSeedPhraseResponse} The mnemonic seed phrase has been converted successfully.
|
|
133
|
+
* @param {string} bip39Mnemonic - The decrypted standard seed phrase (bip32 standard 24 words mnemonic) to be transformed.
|
|
134
|
+
* @returns {string} The Algorand fixed 25 words mnemonic phrase.
|
|
138
135
|
*/
|
|
139
|
-
getAlgorandSeedPhrase(
|
|
136
|
+
getAlgorandSeedPhrase(bip39Mnemonic: string): string;
|
|
140
137
|
/**
|
|
141
138
|
* @public
|
|
142
139
|
* Initializes the process of adding a new device to the wallet.
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wallaby-cash",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"
|
|
@@ -101,6 +101,8 @@
|
|
|
101
101
|
"underscore": "^1.13.8"
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
|
+
"algosdk": "^3.5.2",
|
|
105
|
+
"bip39": "^3.1.0",
|
|
104
106
|
"crypto-js": "4.2.0",
|
|
105
107
|
"ethereum-cryptography": "^3.0.0",
|
|
106
108
|
"js-base64": "^3.7.7",
|
package/dist/routes/swap.d.ts
CHANGED
package/dist/routes/wallet.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare const WalletRoutes: {
|
|
|
51
51
|
requiresAccessToken: boolean;
|
|
52
52
|
};
|
|
53
53
|
getTokenBalance: {
|
|
54
|
-
fullPath: ({ address,
|
|
54
|
+
fullPath: ({ address, assetSymbol, chainName, tokenStandard }: TokenBalanceRequest) => string;
|
|
55
55
|
method: RequestMethod;
|
|
56
56
|
requiresAccessToken: boolean;
|
|
57
57
|
};
|
package/dist/types/wallet.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare type AddTokenToWalletResponse = {
|
|
|
44
44
|
};
|
|
45
45
|
export declare type TokenBalanceRequest = {
|
|
46
46
|
address: string;
|
|
47
|
-
|
|
47
|
+
assetSymbol: string;
|
|
48
48
|
chainName?: BlockchainName;
|
|
49
49
|
tokenStandard?: TokenStandard;
|
|
50
50
|
};
|
|
@@ -203,20 +203,6 @@ export declare type Wallet = {
|
|
|
203
203
|
user: User;
|
|
204
204
|
merchant?: Merchant;
|
|
205
205
|
};
|
|
206
|
-
export declare type ConvertToAlgorandSeedPhraseRequest = {
|
|
207
|
-
authenticationOptions: AuthenticationResponse;
|
|
208
|
-
standardSeedPhrase: string;
|
|
209
|
-
walletId: string;
|
|
210
|
-
};
|
|
211
|
-
export declare type ConvertMnemonicSeedPhraseResponse = {
|
|
212
|
-
message: string;
|
|
213
|
-
clientAuthPubKey: string;
|
|
214
|
-
signature: string;
|
|
215
|
-
reference: string;
|
|
216
|
-
convertedEncryptedSeed: Encrypted;
|
|
217
|
-
/** @deprecated */
|
|
218
|
-
error?: any;
|
|
219
|
-
};
|
|
220
206
|
export declare type InitAddNewDeviceResponse = {
|
|
221
207
|
walletId: string;
|
|
222
208
|
backupUrl: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "wallaby-cash",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.6",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git@github.com:WALLABY-WaaS/wallaby-sdk-js.git"
|
|
@@ -101,6 +101,8 @@
|
|
|
101
101
|
"underscore": "^1.13.8"
|
|
102
102
|
},
|
|
103
103
|
"dependencies": {
|
|
104
|
+
"algosdk": "^3.5.2",
|
|
105
|
+
"bip39": "^3.1.0",
|
|
104
106
|
"crypto-js": "4.2.0",
|
|
105
107
|
"ethereum-cryptography": "^3.0.0",
|
|
106
108
|
"js-base64": "^3.7.7",
|