aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 00:50:22 +0800
committerLeonid Logvinov <logvinov.leon@gmail.com>2017-09-06 00:50:22 +0800
commit2f97ddb7279a95ffb93ae6bbdfa77618a7f41fe1 (patch)
treefd8f8160dd0fe2a8cf439d0882e7d5b9d8ffd520
parenta7b2131db77b72379f0d57eaff694d5a925191cd (diff)
downloaddexon-sol-tools-2f97ddb7279a95ffb93ae6bbdfa77618a7f41fe1.tar
dexon-sol-tools-2f97ddb7279a95ffb93ae6bbdfa77618a7f41fe1.tar.gz
dexon-sol-tools-2f97ddb7279a95ffb93ae6bbdfa77618a7f41fe1.tar.bz2
dexon-sol-tools-2f97ddb7279a95ffb93ae6bbdfa77618a7f41fe1.tar.lz
dexon-sol-tools-2f97ddb7279a95ffb93ae6bbdfa77618a7f41fe1.tar.xz
dexon-sol-tools-2f97ddb7279a95ffb93ae6bbdfa77618a7f41fe1.tar.zst
dexon-sol-tools-2f97ddb7279a95ffb93ae6bbdfa77618a7f41fe1.zip
Fix the return types and export the required public types
-rw-r--r--src/0x.ts9
-rw-r--r--src/index.ts4
2 files changed, 8 insertions, 5 deletions
diff --git a/src/0x.ts b/src/0x.ts
index d88683c3d..0af164b1e 100644
--- a/src/0x.ts
+++ b/src/0x.ts
@@ -270,11 +270,12 @@ export class ZeroEx {
* Waits for a transaction to be mined and returns the transaction receipt.
* @param txHash Transaction hash
* @param pollingIntervalMs How often (in ms) should we check if the transaction is mined.
- * @return TransactionReceipt
+ * @return Transaction receipt with decoded log args.
*/
- public async awaitTransactionMinedAsync(txHash: string,
- pollingIntervalMs: number = 1000): Promise<TransactionReceipt> {
- const txReceiptPromise = new Promise((resolve: (receipt: TransactionReceipt) => void, reject) => {
+ public async awaitTransactionMinedAsync(
+ txHash: string, pollingIntervalMs: number = 1000): Promise<TransactionReceiptWithDecodedLogs> {
+ const txReceiptPromise = new Promise(
+ (resolve: (receipt: TransactionReceiptWithDecodedLogs) => void, reject) => {
const intervalId = setInterval(async () => {
const transactionReceipt = await this._web3Wrapper.getTransactionReceiptAsync(txHash);
if (!_.isNull(transactionReceipt)) {
diff --git a/src/index.ts b/src/index.ts
index 44bd53547..00d4730da 100644
--- a/src/index.ts
+++ b/src/index.ts
@@ -30,5 +30,7 @@ export {
ContractEventArgs,
Web3Provider,
ZeroExConfig,
- TransactionReceipt,
+ TransactionReceiptWithDecodedLogs,
+ LogWithDecodedArgs,
+ DecodedLogArgs,
} from './types';