@zilliqa-js/util
Advanced tools
Comparing version 0.10.1 to 0.11.0
@@ -316,5 +316,5 @@ import BN from 'bn.js'; | ||
var unitMap = new Map([ | ||
["qa" /* Qa */, '1'], | ||
["li" /* Li */, '1000000'], | ||
["zil" /* Zil */, '1000000000000'], | ||
[Units.Qa, '1'], | ||
[Units.Li, '1000000'], | ||
[Units.Zil, '1000000000000'], | ||
]); | ||
@@ -321,0 +321,0 @@ var numToStr = function (input) { |
@@ -320,5 +320,5 @@ (function (global, factory) { | ||
var unitMap = new Map([ | ||
["qa" /* Qa */, '1'], | ||
["li" /* Li */, '1000000'], | ||
["zil" /* Zil */, '1000000000000'], | ||
[Units.Qa, '1'], | ||
[Units.Li, '1000000'], | ||
[Units.Zil, '1000000000000'], | ||
]); | ||
@@ -325,0 +325,0 @@ var numToStr = function (input) { |
@@ -5,3 +5,3 @@ /** | ||
import BN from 'bn.js'; | ||
export declare const enum Units { | ||
export declare enum Units { | ||
Zil = "zil", | ||
@@ -8,0 +8,0 @@ Li = "li", |
@@ -32,5 +32,5 @@ "use strict"; | ||
var unitMap = new Map([ | ||
["qa" /* Qa */, '1'], | ||
["li" /* Li */, '1000000'], | ||
["zil" /* Zil */, '1000000000000'], | ||
[Units.Qa, '1'], | ||
[Units.Li, '1000000'], | ||
[Units.Zil, '1000000000000'], | ||
]); | ||
@@ -37,0 +37,0 @@ var numToStr = function (input) { |
{ | ||
"name": "@zilliqa-js/util", | ||
"version": "0.10.1", | ||
"version": "0.11.0", | ||
"description": "Utilities for working with Zilliqa.", | ||
@@ -34,5 +34,5 @@ "author": "Ian Tan (https://github.com/iantanwx)", | ||
"engines": { | ||
"node": ">=10.0.0 <=12.16.3" | ||
"node": ">=10.0.0 <13" | ||
}, | ||
"gitHead": "2c8e5329af545adaad9013aff65d92b38254d90c" | ||
"gitHead": "8546f884024213c7e97e9584e330002048feb5bd" | ||
} |
@@ -21,3 +21,3 @@ // This file is part of Zilliqa-Javascript-Library. | ||
export const enum Units { | ||
export enum Units { | ||
Zil = 'zil', | ||
@@ -24,0 +24,0 @@ Li = 'li', |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
231843