Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@harmony-js/core

Package Overview
Dependencies
Maintainers
1
Versions
95
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmony-js/core - npm Package Compare versions

Comparing version 0.0.53 to 0.0.54

11

dist/harmony.js

@@ -11,11 +11,10 @@ "use strict";

var blockchain_1 = require("./blockchain");
var defaultUrl = 'http://localhost:9500';
var Harmony = /** @class */ (function (_super) {
tslib_1.__extends(Harmony, _super);
function Harmony(url, config) {
if (url === void 0) { url = defaultUrl; }
if (url === void 0) { url = utils.defaultConfig.Default.Chain_URL; }
if (config === void 0) { config = {
chainUrl: defaultUrl,
chainId: 0 /* Default */,
chainType: "hmy" /* Harmony */,
chainUrl: utils.defaultConfig.Default.Chain_URL,
chainId: utils.defaultConfig.Default.Chain_ID,
chainType: utils.defaultConfig.Default.Chain_Type,
}; }

@@ -68,3 +67,3 @@ var _this = _super.call(this, config.chainType, config.chainId) || this;

? new network_1.WSProvider(providerUrl)
: new network_1.HttpProvider(defaultUrl);
: new network_1.HttpProvider(utils.defaultConfig.Default.Chain_URL);
};

@@ -71,0 +70,0 @@ return Harmony;

@@ -593,11 +593,10 @@ /**

var defaultUrl = 'http://localhost:9500';
var Harmony = /** @class */ (function (_super) {
__extends(Harmony, _super);
function Harmony(url, config) {
if (url === void 0) { url = defaultUrl; }
if (url === void 0) { url = utils.defaultConfig.Default.Chain_URL; }
if (config === void 0) { config = {
chainUrl: defaultUrl,
chainId: 0 /* Default */,
chainType: "hmy" /* Harmony */,
chainUrl: utils.defaultConfig.Default.Chain_URL,
chainId: utils.defaultConfig.Default.Chain_ID,
chainType: utils.defaultConfig.Default.Chain_Type,
}; }

@@ -650,3 +649,3 @@ var _this = _super.call(this, config.chainType, config.chainId) || this;

? new network.WSProvider(providerUrl)
: new network.HttpProvider(defaultUrl);
: new network.HttpProvider(utils.defaultConfig.Default.Chain_URL);
};

@@ -653,0 +652,0 @@ return Harmony;

@@ -7,3 +7,3 @@ /**

import * as utils from '@harmony-js/utils';
import { assertObject, HarmonyCore, isHttp, isWs } from '@harmony-js/utils';
import { assertObject, HarmonyCore, defaultConfig, isHttp, isWs } from '@harmony-js/utils';
import * as crypto from '@harmony-js/crypto';

@@ -592,11 +592,10 @@ import { getAddress } from '@harmony-js/crypto';

var defaultUrl = 'http://localhost:9500';
var Harmony = /** @class */ (function (_super) {
__extends(Harmony, _super);
function Harmony(url, config) {
if (url === void 0) { url = defaultUrl; }
if (url === void 0) { url = defaultConfig.Default.Chain_URL; }
if (config === void 0) { config = {
chainUrl: defaultUrl,
chainId: 0 /* Default */,
chainType: "hmy" /* Harmony */,
chainUrl: defaultConfig.Default.Chain_URL,
chainId: defaultConfig.Default.Chain_ID,
chainType: defaultConfig.Default.Chain_Type,
}; }

@@ -649,3 +648,3 @@ var _this = _super.call(this, config.chainType, config.chainId) || this;

? new WSProvider(providerUrl)
: new HttpProvider(defaultUrl);
: new HttpProvider(defaultConfig.Default.Chain_URL);
};

@@ -652,0 +651,0 @@ return Harmony;

@@ -588,11 +588,10 @@ /**

var defaultUrl = 'http://localhost:9500';
var Harmony = /** @class */ (function (_super) {
__extends(Harmony, _super);
function Harmony(url, config) {
if (url === void 0) { url = defaultUrl; }
if (url === void 0) { url = utils.defaultConfig.Default.Chain_URL; }
if (config === void 0) { config = {
chainUrl: defaultUrl,
chainId: 0 /* Default */,
chainType: "hmy" /* Harmony */,
chainUrl: utils.defaultConfig.Default.Chain_URL,
chainId: utils.defaultConfig.Default.Chain_ID,
chainType: utils.defaultConfig.Default.Chain_Type,
}; }

@@ -645,3 +644,3 @@ var _this = _super.call(this, config.chainType, config.chainId) || this;

? new network.WSProvider(providerUrl)
: new network.HttpProvider(defaultUrl);
: new network.HttpProvider(utils.defaultConfig.Default.Chain_URL);
};

@@ -648,0 +647,0 @@ return Harmony;

{
"name": "@harmony-js/core",
"version": "0.0.53",
"version": "0.0.54",
"description": "harmony core package",

@@ -21,10 +21,10 @@ "main": "dist/index.js",

"dependencies": {
"@harmony-js/account": "0.0.53",
"@harmony-js/contract": "0.0.53",
"@harmony-js/crypto": "0.0.53",
"@harmony-js/network": "0.0.53",
"@harmony-js/transaction": "0.0.53",
"@harmony-js/utils": "0.0.53"
"@harmony-js/account": "0.0.54",
"@harmony-js/contract": "0.0.54",
"@harmony-js/crypto": "0.0.54",
"@harmony-js/network": "0.0.54",
"@harmony-js/transaction": "0.0.54",
"@harmony-js/utils": "0.0.54"
},
"gitHead": "8a654d794462b7e4536b4046d86d7175aff4c68e"
"gitHead": "dfdde42131a9fd0df5ed9d008e5bf251cad8a69e"
}

@@ -11,4 +11,2 @@ import * as crypto from '@harmony-js/crypto';

const defaultUrl = 'http://localhost:9500';
export class Harmony extends utils.HarmonyCore {

@@ -35,7 +33,7 @@ Modules = {

constructor(
url: string = defaultUrl,
url: string = utils.defaultConfig.Default.Chain_URL,
config: HarmonyConfig = {
chainUrl: defaultUrl,
chainId: utils.ChainID.Default,
chainType: utils.ChainType.Harmony,
chainUrl: utils.defaultConfig.Default.Chain_URL,
chainId: utils.defaultConfig.Default.Chain_ID,
chainType: utils.defaultConfig.Default.Chain_Type,
},

@@ -76,4 +74,4 @@ ) {

? new WSProvider(providerUrl)
: new HttpProvider(defaultUrl);
: new HttpProvider(utils.defaultConfig.Default.Chain_URL);
}
}

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