@harmony-js/utils
Advanced tools
Comparing version 0.1.54 to 0.1.55
@@ -128,2 +128,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.AddressSuffix = exports.HDPath = exports.HarmonyCore = exports.defaultConfig = exports.ChainID = exports.ChainType = void 0; | ||
var ChainType; | ||
@@ -189,3 +190,3 @@ (function (ChainType) { | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -197,3 +198,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -200,0 +201,0 @@ }); |
@@ -917,3 +917,3 @@ /** | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -925,3 +925,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -928,0 +928,0 @@ }); |
@@ -917,3 +917,3 @@ /** | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -925,3 +925,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -928,0 +928,0 @@ }); |
@@ -917,3 +917,3 @@ /** | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -925,3 +925,3 @@ }); | ||
}, | ||
enumerable: true, | ||
enumerable: false, | ||
configurable: true | ||
@@ -928,0 +928,0 @@ }); |
@@ -8,2 +8,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.defineReadOnly = void 0; | ||
function defineReadOnly(object, name, value) { | ||
@@ -10,0 +11,0 @@ Object.defineProperty(object, name, { |
@@ -25,3 +25,3 @@ /** | ||
*/ | ||
export declare const numberToString: (obj: string | number | BN, radix?: number) => string; | ||
export declare const numberToString: (obj: BN | number | string, radix?: number) => string; | ||
/** | ||
@@ -48,7 +48,7 @@ * Convert Number to String | ||
*/ | ||
export declare const toWei: (input: string | BN, unit: Units) => BN; | ||
export declare const toWei: (input: BN | string, unit: Units) => BN; | ||
/** | ||
* Converts any wei value into a ONE value. | ||
*/ | ||
export declare const fromWei: (wei: string | BN, unit: Units, options?: any) => string; | ||
export declare const fromWei: (wei: BN | string, unit: Units, options?: any) => string; | ||
export declare class Unit { | ||
@@ -55,0 +55,0 @@ static from(str: BN | string): Unit; |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Unit = exports.fromWei = exports.toWei = exports.hexToBN = exports.hexToNumber = exports.numberToHex = exports.strip0x = exports.add0xToString = exports.numToStr = exports.numberToString = exports.unitMap = exports.Units = void 0; | ||
var tslib_1 = require("tslib"); | ||
@@ -9,0 +10,0 @@ var bn_js_1 = tslib_1.__importDefault(require("bn.js")); |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.assertObject = exports.generateValidateObjects = exports.validateArgs = exports.validatorArray = exports.AssertType = void 0; | ||
var validators_1 = require("./validators"); | ||
@@ -9,0 +10,0 @@ /** @hidden */ |
@@ -7,2 +7,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.isValidAddress = exports.isBech32TestNetAddress = exports.isBech32Address = exports.isBlockNumber = exports.DefaultBlockParams = exports.isWs = exports.isHttp = exports.isHex = exports.isFunction = exports.isObject = exports.isJsonString = exports.isArray = exports.isBoolean = exports.isString = exports.isInt = exports.isNumber = exports.isHash = exports.isPublicKey = exports.isPrivateKey = exports.isAddress = exports.isKeyString = void 0; | ||
exports.isKeyString = function (keyString, lengh) { | ||
@@ -9,0 +10,0 @@ return !!keyString.replace('0x', '').match("^[0-9a-fA-F]{" + lengh + "}$"); |
{ | ||
"name": "@harmony-js/utils", | ||
"version": "0.1.54", | ||
"version": "0.1.55", | ||
"description": "utils for harmony", | ||
@@ -24,3 +24,3 @@ "main": "dist/index.js", | ||
}, | ||
"gitHead": "4033b3f9712f01cfad8b97db4be5aa679c430321" | ||
"gitHead": "c49abc56916e6edf7aa959e38397ff280e47ec30" | ||
} |
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
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
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
384348
5872