@tari-project/tarijs-types 0.12.0 → 0.12.1

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/Amount.d.ts CHANGED
@@ -2,7 +2,7 @@ export declare class Amount {
2
2
  private value;
3
3
  constructor(value: number);
4
4
  static readonly MAX: Amount;
5
- static new(amount: number): Amount;
5
+ static of(amount: number): Amount;
6
6
  static zero(): Amount;
7
7
  isZero(): boolean;
8
8
  isPositive(): boolean;
package/dist/Amount.js CHANGED
@@ -4,7 +4,7 @@ export class Amount {
4
4
  this.value = value;
5
5
  }
6
6
  static MAX = new Amount(Number.MAX_SAFE_INTEGER);
7
- static new(amount) {
7
+ static of(amount) {
8
8
  return new Amount(amount);
9
9
  }
10
10
  static zero() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tari-project/tarijs-types",
3
- "version": "0.12.0",
3
+ "version": "0.12.1",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "publishConfig": {