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.52 to 0.0.53

14

package.json
{
"name": "@harmony-js/contract",
"version": "0.0.52",
"version": "0.0.53",
"description": "contract libraries for harmony",

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

"dependencies": {
"@harmony-js/account": "0.0.52",
"@harmony-js/crypto": "0.0.52",
"@harmony-js/network": "0.0.52",
"@harmony-js/transaction": "0.0.52",
"@harmony-js/utils": "0.0.52"
"@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"
},
"gitHead": "ec668de5cd839641520a2ccf3871a3c1c191b96f"
"gitHead": "8a654d794462b7e4536b4046d86d7175aff4c68e"
}

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

abiItem: AbiItemModel;
rawResponse: any;
callResponse?: any;
callPayload?: any;
callData?: string;

@@ -39,4 +41,5 @@ protected transaction: Transaction;

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

@@ -145,3 +148,4 @@ send(params: any): Emitter {

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

@@ -184,3 +188,3 @@ throw result.message;

encodeABI() {
return methodEncoder(
const encodedABI = methodEncoder(
this.contract.abiCoder,

@@ -190,4 +194,14 @@ this.abiItem,

);
this.callData = encodedABI;
return encodedABI;
}
public debug() {
return {
callResponse: this.callResponse,
callPayload: this.callPayload,
callData: this.callData,
};
}
protected async signTransaction(updateNonce: boolean) {

@@ -194,0 +208,0 @@ try {

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