wallaby-cash 2.3.5 → 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.
@@ -1,5 +1,5 @@
1
1
  import { Base } from '../../base';
2
- import { ConvertToAlgorandSeedPhraseRequest, ConvertMnemonicSeedPhraseResponse, CreateWalletRequest, CreateWalletResponse, Encrypted, WallabyConfig, ExportWalletRequest, ImportWalletRequest, AddNewDeviceRequest, RecoverWalletRequest, AsymmetricKeyPair, InitAddNewDeviceResponse, GenerateMissingAddressResponseDto, AuthenticationResponse, BlockchainName, ImportWalletResponse, RecoverWalletResponse } from '../../types';
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 {ConvertToAlgorandSeedPhraseRequest} input
134
- * - {string} standardSeedPhrase - The decrypted standard seed phrase (bip32 standard 24 words mnemonic) to be transformed.
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(input: ConvertToAlgorandSeedPhraseRequest): Promise<ConvertMnemonicSeedPhraseResponse>;
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.5",
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",
@@ -8,9 +8,7 @@ export declare const SwapRoutes: {
8
8
  requiresAccessToken: boolean;
9
9
  };
10
10
  executeSwap: {
11
- fullPath: ({ walletId }: {
12
- walletId: string;
13
- }) => string;
11
+ fullPath: string;
14
12
  method: RequestMethod;
15
13
  requiresAccessToken: boolean;
16
14
  };
@@ -51,7 +51,7 @@ export declare const WalletRoutes: {
51
51
  requiresAccessToken: boolean;
52
52
  };
53
53
  getTokenBalance: {
54
- fullPath: ({ address, symbol, chainName, tokenStandard }: TokenBalanceRequest) => string;
54
+ fullPath: ({ address, assetSymbol, chainName, tokenStandard }: TokenBalanceRequest) => string;
55
55
  method: RequestMethod;
56
56
  requiresAccessToken: boolean;
57
57
  };
@@ -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.5",
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",