@harmony-js/contract
Advanced tools
Comparing version 0.0.53 to 0.0.54
@@ -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,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
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
16685562
12682
+ Added@harmony-js/account@0.0.54(transitive)
+ Added@harmony-js/core@0.0.54(transitive)
+ Added@harmony-js/crypto@0.0.54(transitive)
+ Added@harmony-js/network@0.0.54(transitive)
+ Added@harmony-js/transaction@0.0.54(transitive)
+ Added@harmony-js/utils@0.0.54(transitive)
- Removed@harmony-js/account@0.0.53(transitive)
- Removed@harmony-js/core@0.0.53(transitive)
- Removed@harmony-js/crypto@0.0.53(transitive)
- Removed@harmony-js/network@0.0.53(transitive)
- Removed@harmony-js/transaction@0.0.53(transitive)
- Removed@harmony-js/utils@0.0.53(transitive)
Updated@harmony-js/account@0.0.54
Updated@harmony-js/crypto@0.0.54
Updated@harmony-js/network@0.0.54
Updated@harmony-js/utils@0.0.54