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

@harmony-js/contract

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@harmony-js/contract - npm Package Compare versions

Comparing version 0.0.53 to 0.0.54

9

dist/methods/method.d.ts

@@ -12,3 +12,5 @@ import { Wallet } from '@harmony-js/account';

abiItem: AbiItemModel;
rawResponse: any;
callResponse?: any;
callPayload?: any;
callData?: string;
protected transaction: Transaction;

@@ -20,2 +22,7 @@ constructor(methodKey: string, params: any, abiItem: AbiItemModel, contract: Contract);

encodeABI(): string;
debug(): {
callResponse: any;
callPayload: any;
callData: string | undefined;
};
protected signTransaction(updateNonce: boolean): Promise<Transaction>;

@@ -22,0 +29,0 @@ protected sendTransaction(signed: Transaction): Promise<[Transaction, string]>;

19

dist/methods/method.js

@@ -19,4 +19,5 @@ "use strict";

this.transaction = this.createTransaction();
this.rawResponse = undefined;
// this.addEventListeners();
this.callPayload = undefined;
this.callResponse = undefined;
this.callData = undefined;
}

@@ -116,3 +117,4 @@ ContractMethod.prototype.send = function (params) {

result = _e.sent();
this.rawResponse = result;
this.callPayload = sendPayload;
this.callResponse = result;
if (result.isError()) {

@@ -173,4 +175,13 @@ throw result.message;

ContractMethod.prototype.encodeABI = function () {
return encoder_1.methodEncoder(this.contract.abiCoder, this.abiItem, this.contract.data);
var encodedABI = encoder_1.methodEncoder(this.contract.abiCoder, this.abiItem, this.contract.data);
this.callData = encodedABI;
return encodedABI;
};
ContractMethod.prototype.debug = function () {
return {
callResponse: this.callResponse,
callPayload: this.callPayload,
callData: this.callData,
};
};
ContractMethod.prototype.signTransaction = function (updateNonce) {

@@ -177,0 +188,0 @@ return tslib_1.__awaiter(this, void 0, void 0, function () {

{
"name": "@harmony-js/contract",
"version": "0.0.53",
"version": "0.0.54",
"description": "contract libraries for harmony",

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

"dependencies": {
"@harmony-js/account": "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/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"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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