wallaby-cash 2.0.1-alpha.2 → 2.0.1-alpha.21

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.
Files changed (37) hide show
  1. package/README.md +5 -1
  2. package/dist/helpers/base64.d.ts +2 -2
  3. package/dist/helpers/json-safe-parse.d.ts +1 -0
  4. package/dist/index.cjs.js +2564 -2074
  5. package/dist/index.cjs.js.map +1 -1
  6. package/dist/index.d.ts +6 -1
  7. package/dist/index.esm.js +2564 -2075
  8. package/dist/index.esm.js.map +1 -1
  9. package/dist/index.js +2564 -2075
  10. package/dist/index.js.map +1 -1
  11. package/dist/lib/auth/auth.service.d.ts +48 -0
  12. package/dist/lib/transactions/index.d.ts +3 -3
  13. package/dist/lib/utils/cipher.service.d.ts +101 -54
  14. package/dist/lib/utils/constants.d.ts +3 -0
  15. package/dist/lib/wallet/index.d.ts +2 -0
  16. package/dist/lib/wallet/wallet-data.service.d.ts +89 -0
  17. package/dist/lib/wallet/wallet-handlers.service.d.ts +71 -0
  18. package/dist/lib/wallet/wallet.service.d.ts +83 -122
  19. package/dist/package.json +13 -2
  20. package/dist/routes/wallet.d.ts +5 -0
  21. package/dist/types/auth.d.ts +4 -0
  22. package/dist/types/base.d.ts +10 -0
  23. package/dist/types/common.d.ts +1 -1
  24. package/dist/types/storage.d.ts +3 -0
  25. package/dist/types/transactions.d.ts +4 -1
  26. package/dist/types/wallet.d.ts +32 -3
  27. package/package.json +13 -2
  28. package/dist/tests/__mocks__/localStorageMock.d.ts +0 -10
  29. package/dist/tests/data/assets.d.ts +0 -89
  30. package/dist/tests/data/auth.d.ts +0 -11
  31. package/dist/tests/data/config.d.ts +0 -2
  32. package/dist/tests/data/credentials.data.d.ts +0 -12
  33. package/dist/tests/data/index.d.ts +0 -7
  34. package/dist/tests/data/merchants.d.ts +0 -8
  35. package/dist/tests/data/system.d.ts +0 -47
  36. package/dist/tests/data/user.d.ts +0 -32
  37. package/dist/tests/data/wallet.data.d.ts +0 -69
package/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ## Overview
4
4
 
5
5
  [![npm version](https://badge.fury.io/js/wallaby-cash.svg)](https://badge.fury.io/js/wallaby-cash)
6
+ [![codecov](https://codecov.io/gh/WALLABY-WaaS/wallaby-sdk-js/branch/feat%2Fwallaby-cash-v2/graph/badge.svg?token=4HRLAUCK7S)](https://codecov.io/gh/WALLABY-WaaS/wallaby-sdk-js)
6
7
 
7
8
  The SDK leverages Wallaby API as a gateway to web3 and the blockchain.
8
9
 
@@ -10,14 +11,17 @@ The SDK currently supports the following blockchains:
10
11
 
11
12
  - Algorand
12
13
  - Avalanche
14
+ - Base
15
+ - Binance chain
13
16
  - Bitcoin
14
17
  - Ethereum
15
18
  - Polygon
19
+ - Sui
16
20
 
17
21
  ## Install the SDK
18
22
 
19
23
  ```javascript
20
- npm install wallaby-cash
24
+ npm install wallaby-cash@latest
21
25
  ```
22
26
 
23
27
  ## Client Initialization
@@ -1,2 +1,2 @@
1
- export declare function base64ToUint8Array(base64: string): Uint8Array | undefined;
2
- export declare function arrayBufferToBase64(buffer: ArrayBuffer): string;
1
+ export declare function base64ToUint8Array(base64: string): Uint8Array;
2
+ export declare function uint8ArrayToBase64(bytes: Uint8Array): string;
@@ -0,0 +1 @@
1
+ export declare function safeJsonParse<T>(jsonString: string): T | null;