zano_web3 8.2.0 → 8.3.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/README.md CHANGED
@@ -395,4 +395,17 @@ const alias = "alias";
395
395
 
396
396
  ## Requirements
397
397
 
398
- - Correct RPC URLs for the wallet and daemon.
398
+ - Correct RPC URLs for the wallet and daemon.
399
+
400
+ # Shared logic
401
+ ## Usage
402
+ ### validateTokensInput util
403
+ validateTokensInput function checks whether a numeric or string value can be used as an amount for an asset with the specified DP.
404
+
405
+ ```typescript
406
+ import { validateTokensInput } from "zano_web3/shared";
407
+
408
+ let isValidAmount = validateTokensInput("18446744.073709551615", 12); // true
409
+
410
+ isValidAmount = validateTokensInput("18446744.073709551616", 12); // false
411
+ ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zano_web3",
3
- "version": "8.2.0",
3
+ "version": "8.3.0",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "scripts": {
package/web/src/types.ts CHANGED
@@ -23,7 +23,7 @@ export interface Transaction {
23
23
  comment: string;
24
24
  fee: string;
25
25
  isInitiator: boolean;
26
- transfers: Transfer[];
26
+ subtransfers: Transfer[];
27
27
  }
28
28
 
29
29
  export interface Wallet {