New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.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.18 to 0.0.19

1

dist/blockchain.d.ts

@@ -75,2 +75,3 @@ import { Messenger, NewPendingTransactions, NewHeaders, LogSub, Syncing } from '@harmony-js/network';

sendRawTransaction(transaction: Transaction): Promise<string | undefined>;
createObservedTransaction(transaction: Transaction): import("@harmony-js/network/dist/providers/emitter").Emitter;
estimateGas({ to, data }: {

@@ -77,0 +78,0 @@ to: string;

@@ -260,2 +260,18 @@ "use strict";

};
Blockchain.prototype.createObservedTransaction = function (transaction) {
try {
var signed_1 = transaction;
signed_1.sendTransaction().then(function (response) {
var _a = tslib_1.__read(response, 2), txReturned = _a[0], TranID = _a[1];
signed_1 = txReturned;
signed_1.confirm(TranID).then(function () {
signed_1.emitter.resolve(signed_1);
});
});
return signed_1.emitter;
}
catch (err) {
throw err;
}
};
Blockchain.prototype.estimateGas = function (_a) {

@@ -262,0 +278,0 @@ var to = _a.to, data = _a.data;

@@ -364,2 +364,18 @@ /**

};
Blockchain.prototype.createObservedTransaction = function (transaction$$1) {
try {
var signed_1 = transaction$$1;
signed_1.sendTransaction().then(function (response) {
var _a = __read(response, 2), txReturned = _a[0], TranID = _a[1];
signed_1 = txReturned;
signed_1.confirm(TranID).then(function () {
signed_1.emitter.resolve(signed_1);
});
});
return signed_1.emitter;
}
catch (err) {
throw err;
}
};
Blockchain.prototype.estimateGas = function (_a) {

@@ -366,0 +382,0 @@ var to = _a.to, data = _a.data;

@@ -361,2 +361,18 @@ /**

};
Blockchain.prototype.createObservedTransaction = function (transaction) {
try {
var signed_1 = transaction;
signed_1.sendTransaction().then(function (response) {
var _a = __read(response, 2), txReturned = _a[0], TranID = _a[1];
signed_1 = txReturned;
signed_1.confirm(TranID).then(function () {
signed_1.emitter.resolve(signed_1);
});
});
return signed_1.emitter;
}
catch (err) {
throw err;
}
};
Blockchain.prototype.estimateGas = function (_a) {

@@ -363,0 +379,0 @@ var to = _a.to, data = _a.data;

@@ -359,2 +359,18 @@ /**

};
Blockchain.prototype.createObservedTransaction = function (transaction$$1) {
try {
var signed_1 = transaction$$1;
signed_1.sendTransaction().then(function (response) {
var _a = __read(response, 2), txReturned = _a[0], TranID = _a[1];
signed_1 = txReturned;
signed_1.confirm(TranID).then(function () {
signed_1.emitter.resolve(signed_1);
});
});
return signed_1.emitter;
}
catch (err) {
throw err;
}
};
Blockchain.prototype.estimateGas = function (_a) {

@@ -361,0 +377,0 @@ var to = _a.to, data = _a.data;

import { HttpProvider, Messenger } from '@harmony-js/network';
import { TransactionFactory, Transaction } from '@harmony-js/transaction';
import { Wallet, Account } from '@harmony-js/account';
import { ChainType, ChainID } from '@harmony-js/utils';
import { Blockchain } from './blockchain';

@@ -18,2 +19,6 @@ export interface HarmonyModule {

}
export interface HarmonySetting<T extends ChainType, I extends ChainID> {
type: T;
id: I;
}
//# sourceMappingURL=types.d.ts.map

16

package.json
{
"name": "@harmony-js/core",
"version": "0.0.18",
"version": "0.0.19",
"description": "harmony core package",

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

"dependencies": {
"@harmony-js/account": "0.0.18",
"@harmony-js/contract": "0.0.18",
"@harmony-js/crypto": "0.0.18",
"@harmony-js/network": "0.0.18",
"@harmony-js/transaction": "0.0.18",
"@harmony-js/utils": "0.0.18"
"@harmony-js/account": "0.0.19",
"@harmony-js/contract": "0.0.19",
"@harmony-js/crypto": "0.0.19",
"@harmony-js/network": "0.0.19",
"@harmony-js/transaction": "0.0.19",
"@harmony-js/utils": "0.0.19"
},
"gitHead": "7ee72320c544d88853e57d4f1c14bbc23249ee15"
"gitHead": "18e2f2d197fd3271506ba11706a6fad7ab1879db"
}

@@ -290,2 +290,19 @@ import {

}
createObservedTransaction(transaction: Transaction) {
try {
let signed = transaction;
signed.sendTransaction().then((response) => {
const [txReturned, TranID] = response;
signed = txReturned;
signed.confirm(TranID).then(() => {
signed.emitter.resolve(signed);
});
});
return signed.emitter;
} catch (err) {
throw err;
}
}
@assertObject({

@@ -292,0 +309,0 @@ to: ['isAddress', AssertType.optional],

import { HttpProvider, Messenger } from '@harmony-js/network';
import { TransactionFactory, Transaction } from '@harmony-js/transaction';
import { Wallet, Account } from '@harmony-js/account';
import { ChainType, ChainID } from '@harmony-js/utils';
import { Blockchain } from './blockchain';

@@ -20,1 +21,6 @@

}
export interface HarmonySetting<T extends ChainType, I extends ChainID> {
type: T;
id: I;
}

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