New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@harmony-js/utils

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmony-js/utils - npm Package Compare versions

Comparing version 0.0.45 to 0.0.46

3

dist/chain.d.ts

@@ -16,3 +16,4 @@ export declare const enum ChainType {

EtcTestnet = 62,
Geth = 1337
Geth = 1337,
Ganache = 0
}

@@ -19,0 +20,0 @@ export declare abstract class HarmonyCore {

@@ -21,2 +21,3 @@ "use strict";

ChainID[ChainID["Geth"] = 1337] = "Geth";
ChainID[ChainID["Ganache"] = 0] = "Ganache";
})(ChainID = exports.ChainID || (exports.ChainID = {}));

@@ -23,0 +24,0 @@ var HarmonyCore = /** @class */ (function () {

@@ -154,7 +154,7 @@ /**

var isBech32Address = function (raw) {
return !!raw.match(/^hmy1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/);
return !!raw.match(/^one1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/);
};
isBech32Address.validator = 'isBech32Address';
var isBech32TestNetAddress = function (raw) {
return !!raw.match(/^thmy1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/);
return !!raw.match(/^tone1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/);
};

@@ -684,2 +684,3 @@ isBech32TestNetAddress.validator = 'isBech32TestNetAddress';

ChainID[ChainID["Geth"] = 1337] = "Geth";
ChainID[ChainID["Ganache"] = 0] = "Ganache";
})(exports.ChainID || (exports.ChainID = {}));

@@ -718,3 +719,12 @@ var HarmonyCore = /** @class */ (function () {

}());
var HDPath = "m/44'/60'/0'/0/";
function defineReadOnly(object, name, value) {
Object.defineProperty(object, name, {
enumerable: true,
value: value,
writable: false,
});
}
exports.isKeyString = isKeyString;

@@ -756,2 +766,4 @@ exports.isAddress = isAddress;

exports.HarmonyCore = HarmonyCore;
exports.HDPath = HDPath;
exports.defineReadOnly = defineReadOnly;
//# sourceMappingURL=index.cjs.js.map

@@ -0,0 +0,0 @@ export * from './validators';

@@ -149,7 +149,7 @@ /**

var isBech32Address = function (raw) {
return !!raw.match(/^hmy1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/);
return !!raw.match(/^one1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/);
};
isBech32Address.validator = 'isBech32Address';
var isBech32TestNetAddress = function (raw) {
return !!raw.match(/^thmy1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/);
return !!raw.match(/^tone1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/);
};

@@ -683,2 +683,3 @@ isBech32TestNetAddress.validator = 'isBech32TestNetAddress';

ChainID[ChainID["Geth"] = 1337] = "Geth";
ChainID[ChainID["Ganache"] = 0] = "Ganache";
})(ChainID || (ChainID = {}));

@@ -717,4 +718,13 @@ var HarmonyCore = /** @class */ (function () {

}());
var HDPath = "m/44'/60'/0'/0/";
export { isKeyString, isAddress, isPrivateKey, isPublicKey, isHash, isNumber, isInt, isString, isBoolean, isArray, isJsonString, isObject, isFunction, isHex, isHttp, isWs, DefaultBlockParams, isBlockNumber, isBech32Address, isBech32TestNetAddress, isValidAddress, Units, unitMap, numberToString, numToStr, add0xToString, strip0x, numberToHex, hexToNumber, hexToBN, toWei, fromWei, Unit, AssertType, validatorArray, validateArgs, generateValidateObjects, assertObject, ChainType, ChainID, HarmonyCore };
function defineReadOnly(object, name, value) {
Object.defineProperty(object, name, {
enumerable: true,
value: value,
writable: false,
});
}
export { isKeyString, isAddress, isPrivateKey, isPublicKey, isHash, isNumber, isInt, isString, isBoolean, isArray, isJsonString, isObject, isFunction, isHex, isHttp, isWs, DefaultBlockParams, isBlockNumber, isBech32Address, isBech32TestNetAddress, isValidAddress, Units, unitMap, numberToString, numToStr, add0xToString, strip0x, numberToHex, hexToNumber, hexToBN, toWei, fromWei, Unit, AssertType, validatorArray, validateArgs, generateValidateObjects, assertObject, ChainType, ChainID, HarmonyCore, HDPath, defineReadOnly };
//# sourceMappingURL=index.esm.js.map

@@ -154,7 +154,7 @@ /**

var isBech32Address = function (raw) {
return !!raw.match(/^hmy1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/);
return !!raw.match(/^one1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/);
};
isBech32Address.validator = 'isBech32Address';
var isBech32TestNetAddress = function (raw) {
return !!raw.match(/^thmy1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/);
return !!raw.match(/^tone1[qpzry9x8gf2tvdw0s3jn54khce6mua7l]{38}/);
};

@@ -684,2 +684,3 @@ isBech32TestNetAddress.validator = 'isBech32TestNetAddress';

ChainID[ChainID["Geth"] = 1337] = "Geth";
ChainID[ChainID["Ganache"] = 0] = "Ganache";
})(exports.ChainID || (exports.ChainID = {}));

@@ -718,3 +719,12 @@ var HarmonyCore = /** @class */ (function () {

}());
var HDPath = "m/44'/60'/0'/0/";
function defineReadOnly(object, name, value) {
Object.defineProperty(object, name, {
enumerable: true,
value: value,
writable: false,
});
}
exports.isKeyString = isKeyString;

@@ -756,2 +766,4 @@ exports.isAddress = isAddress;

exports.HarmonyCore = HarmonyCore;
exports.HDPath = HDPath;
exports.defineReadOnly = defineReadOnly;

@@ -758,0 +770,0 @@ Object.defineProperty(exports, '__esModule', { value: true });

export declare function defineReadOnly(object: any, name: string, value: any): void;
//# sourceMappingURL=tools.d.ts.map

@@ -0,0 +0,0 @@ import BN from 'bn.js';

@@ -0,0 +0,0 @@ export declare const enum AssertType {

@@ -0,0 +0,0 @@ export declare const isKeyString: {

{
"name": "@harmony-js/utils",
"version": "0.0.45",
"version": "0.0.46",
"description": "utils for harmony",

@@ -24,3 +24,3 @@ "main": "dist/index.js",

},
"gitHead": "5d065a5e36ae02cab0fba2ebd56256a1c4169335"
"gitHead": "e5d47c94bb0c804bc0b3189687f624624cbdc4d0"
}

@@ -18,2 +18,3 @@ export const enum ChainType {

Geth = 1337,
Ganache = 0,
}

@@ -20,0 +21,0 @@

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc