wallaby-cash 3.5.2 → 3.6.0

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/base.d.ts CHANGED
@@ -3,6 +3,7 @@ import { StorageService } from './lib/utils/storage.service';
3
3
  import { LocalStorage } from './types/storage';
4
4
  import { LockManagerService } from './helpers/lock-manager.service';
5
5
  import { Cipher } from './lib/utils/cipher.service';
6
+ import { Clock, Ports } from './lib/utils/ports';
6
7
  import { Api as GeneratedApiClient } from './generated/api';
7
8
  export declare abstract class Base {
8
9
  userId: string;
@@ -13,9 +14,11 @@ export declare abstract class Base {
13
14
  protected options?: WallabyConfigOptions;
14
15
  protected lockManager: LockManagerService;
15
16
  protected cipher: Cipher;
17
+ protected transport: typeof fetch;
18
+ protected clock: Clock;
16
19
  private _localStorageService?;
17
20
  protected api: GeneratedApiClient<any>;
18
- constructor(config: WallabyConfig);
21
+ constructor(config: WallabyConfig, ports?: Partial<Ports>);
19
22
  set setClientAuthToken(token: string);
20
23
  get version(): string;
21
24
  private _initializeClientAuthToken;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Convert a 32-byte seed to Algorand's fixed 25-word mnemonic: 24 data words
3
+ * (256 bits packed into 11-bit BIP39-English word indices) plus a checksum word
4
+ * derived from the first two bytes of the seed's SHA-512/256 hash.
5
+ *
6
+ * Word-for-word compatible with algosdk's `mnemonicFromSeed`; parity is
7
+ * verified against algosdk (devDependency) in `algorand-mnemonic.spec.ts`.
8
+ */
9
+ export declare function algorandMnemonicFromSeed(seed: Uint8Array): string;