@harmony-js/contract
Advanced tools
Comparing version 0.0.52 to 0.0.53
{ | ||
"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 { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16681448
12631
+ Added@harmony-js/account@0.0.53(transitive)
+ Added@harmony-js/core@0.0.53(transitive)
+ Added@harmony-js/crypto@0.0.53(transitive)
+ Added@harmony-js/network@0.0.53(transitive)
+ Added@harmony-js/transaction@0.0.53(transitive)
+ Added@harmony-js/utils@0.0.53(transitive)
- Removed@harmony-js/account@0.0.52(transitive)
- Removed@harmony-js/core@0.0.52(transitive)
- Removed@harmony-js/crypto@0.0.52(transitive)
- Removed@harmony-js/network@0.0.52(transitive)
- Removed@harmony-js/transaction@0.0.52(transitive)
- Removed@harmony-js/utils@0.0.52(transitive)
Updated@harmony-js/account@0.0.53
Updated@harmony-js/crypto@0.0.53
Updated@harmony-js/network@0.0.53
Updated@harmony-js/utils@0.0.53