In @0x/abi-gen-wrappers: Regenerate contract wrappers.

This commit is contained in:
Lawrence Forman
2019-04-26 15:04:52 -04:00
parent 4710b40e45
commit ddbe142c4c
16 changed files with 516 additions and 86 deletions

View File

@@ -162,12 +162,17 @@ export class AssetProxyOwnerContract extends BaseContract {
async awaitTransactionSuccessAsync(
owner: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as AssetProxyOwnerContract;
const txHash = await self.removeOwner.sendTransactionAsync(owner
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -250,12 +255,17 @@ export class AssetProxyOwnerContract extends BaseContract {
async awaitTransactionSuccessAsync(
transactionId: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as AssetProxyOwnerContract;
const txHash = await self.revokeConfirmation.sendTransactionAsync(transactionId
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -396,12 +406,17 @@ export class AssetProxyOwnerContract extends BaseContract {
async awaitTransactionSuccessAsync(
transactionId: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as AssetProxyOwnerContract;
const txHash = await self.executeRemoveAuthorizedAddressAtIndex.sendTransactionAsync(transactionId
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -544,13 +559,18 @@ export class AssetProxyOwnerContract extends BaseContract {
assetProxyContract: string,
isRegistered: boolean,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as AssetProxyOwnerContract;
const txHash = await self.registerAssetProxy.sendTransactionAsync(assetProxyContract,
isRegistered
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -639,12 +659,17 @@ export class AssetProxyOwnerContract extends BaseContract {
async awaitTransactionSuccessAsync(
owner: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as AssetProxyOwnerContract;
const txHash = await self.addOwner.sendTransactionAsync(owner
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -755,12 +780,17 @@ export class AssetProxyOwnerContract extends BaseContract {
async awaitTransactionSuccessAsync(
_secondsTimeLocked: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as AssetProxyOwnerContract;
const txHash = await self.changeTimeLock.sendTransactionAsync(_secondsTimeLocked
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -1041,12 +1071,17 @@ export class AssetProxyOwnerContract extends BaseContract {
async awaitTransactionSuccessAsync(
_required: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as AssetProxyOwnerContract;
const txHash = await self.changeRequirement.sendTransactionAsync(_required
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -1129,12 +1164,17 @@ export class AssetProxyOwnerContract extends BaseContract {
async awaitTransactionSuccessAsync(
transactionId: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as AssetProxyOwnerContract;
const txHash = await self.confirmTransaction.sendTransactionAsync(transactionId
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -1225,6 +1265,7 @@ export class AssetProxyOwnerContract extends BaseContract {
value: BigNumber,
data: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as AssetProxyOwnerContract;
const txHash = await self.submitTransaction.sendTransactionAsync(destination,
@@ -1232,7 +1273,11 @@ export class AssetProxyOwnerContract extends BaseContract {
data
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -1411,13 +1456,18 @@ export class AssetProxyOwnerContract extends BaseContract {
owner: string,
newOwner: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as AssetProxyOwnerContract;
const txHash = await self.replaceOwner.sendTransactionAsync(owner,
newOwner
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -1506,12 +1556,17 @@ export class AssetProxyOwnerContract extends BaseContract {
async awaitTransactionSuccessAsync(
transactionId: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as AssetProxyOwnerContract;
const txHash = await self.executeTransaction.sendTransactionAsync(transactionId
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -98,6 +98,7 @@ export class CoordinatorContract extends BaseContract {
approvalExpirationTimeSeconds: BigNumber[],
approvalSignatures: string[],
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as CoordinatorContract;
const txHash = await self.executeTransaction.sendTransactionAsync(transaction,
@@ -107,7 +108,11 @@ export class CoordinatorContract extends BaseContract {
approvalSignatures
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -64,12 +64,17 @@ export class CoordinatorRegistryContract extends BaseContract {
async awaitTransactionSuccessAsync(
coordinatorEndpoint: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as CoordinatorRegistryContract;
const txHash = await self.setCoordinatorEndpoint.sendTransactionAsync(coordinatorEndpoint
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -103,13 +103,18 @@ export class DummyERC20TokenContract extends BaseContract {
_spender: string,
_value: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC20TokenContract;
const txHash = await self.approve.sendTransactionAsync(_spender,
_value
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -232,6 +237,7 @@ export class DummyERC20TokenContract extends BaseContract {
_to: string,
_value: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC20TokenContract;
const txHash = await self.transferFrom.sendTransactionAsync(_from,
@@ -239,7 +245,11 @@ export class DummyERC20TokenContract extends BaseContract {
_value
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -440,12 +450,17 @@ export class DummyERC20TokenContract extends BaseContract {
async awaitTransactionSuccessAsync(
_value: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC20TokenContract;
const txHash = await self.mint.sendTransactionAsync(_value
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -532,13 +547,18 @@ export class DummyERC20TokenContract extends BaseContract {
_to: string,
_value: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC20TokenContract;
const txHash = await self.transfer.sendTransactionAsync(_to,
_value
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -661,13 +681,18 @@ export class DummyERC20TokenContract extends BaseContract {
_target: string,
_value: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC20TokenContract;
const txHash = await self.setBalance.sendTransactionAsync(_target,
_value
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -756,12 +781,17 @@ export class DummyERC20TokenContract extends BaseContract {
async awaitTransactionSuccessAsync(
newOwner: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC20TokenContract;
const txHash = await self.transferOwnership.sendTransactionAsync(newOwner
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -139,13 +139,18 @@ export class DummyERC721TokenContract extends BaseContract {
_approved: string,
_tokenId: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC721TokenContract;
const txHash = await self.approve.sendTransactionAsync(_approved,
_tokenId
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -242,6 +247,7 @@ export class DummyERC721TokenContract extends BaseContract {
_to: string,
_tokenId: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC721TokenContract;
const txHash = await self.transferFrom.sendTransactionAsync(_from,
@@ -249,7 +255,11 @@ export class DummyERC721TokenContract extends BaseContract {
_tokenId
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -348,13 +358,18 @@ export class DummyERC721TokenContract extends BaseContract {
_to: string,
_tokenId: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC721TokenContract;
const txHash = await self.mint.sendTransactionAsync(_to,
_tokenId
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -451,6 +466,7 @@ export class DummyERC721TokenContract extends BaseContract {
_to: string,
_tokenId: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC721TokenContract;
const txHash = await self.safeTransferFrom1.sendTransactionAsync(_from,
@@ -458,7 +474,11 @@ export class DummyERC721TokenContract extends BaseContract {
_tokenId
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -665,13 +685,18 @@ export class DummyERC721TokenContract extends BaseContract {
_owner: string,
_tokenId: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC721TokenContract;
const txHash = await self.burn.sendTransactionAsync(_owner,
_tokenId
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -764,13 +789,18 @@ export class DummyERC721TokenContract extends BaseContract {
_operator: string,
_approved: boolean,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC721TokenContract;
const txHash = await self.setApprovalForAll.sendTransactionAsync(_operator,
_approved
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -871,6 +901,7 @@ export class DummyERC721TokenContract extends BaseContract {
_tokenId: BigNumber,
_data: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC721TokenContract;
const txHash = await self.safeTransferFrom2.sendTransactionAsync(_from,
@@ -879,7 +910,11 @@ export class DummyERC721TokenContract extends BaseContract {
_data
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -1010,12 +1045,17 @@ export class DummyERC721TokenContract extends BaseContract {
async awaitTransactionSuccessAsync(
newOwner: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DummyERC721TokenContract;
const txHash = await self.transferOwnership.sendTransactionAsync(newOwner
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -52,12 +52,17 @@ export class DutchAuctionContract extends BaseContract {
async awaitTransactionSuccessAsync(
order: {makerAddress: string;takerAddress: string;feeRecipientAddress: string;senderAddress: string;makerAssetAmount: BigNumber;takerAssetAmount: BigNumber;makerFee: BigNumber;takerFee: BigNumber;expirationTimeSeconds: BigNumber;salt: BigNumber;makerAssetData: string;takerAssetData: string},
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DutchAuctionContract;
const txHash = await self.getAuctionDetails.sendTransactionAsync(order
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -152,6 +157,7 @@ export class DutchAuctionContract extends BaseContract {
buySignature: string,
sellSignature: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as DutchAuctionContract;
const txHash = await self.matchOrders.sendTransactionAsync(buyOrder,
@@ -160,7 +166,11 @@ export class DutchAuctionContract extends BaseContract {
sellSignature
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -71,12 +71,17 @@ export class ERC20ProxyContract extends BaseContract {
async awaitTransactionSuccessAsync(
target: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC20ProxyContract;
const txHash = await self.addAuthorizedAddress.sendTransactionAsync(target
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -187,12 +192,17 @@ export class ERC20ProxyContract extends BaseContract {
async awaitTransactionSuccessAsync(
target: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC20ProxyContract;
const txHash = await self.removeAuthorizedAddress.sendTransactionAsync(target
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -305,13 +315,18 @@ export class ERC20ProxyContract extends BaseContract {
target: string,
index: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC20ProxyContract;
const txHash = await self.removeAuthorizedAddressAtIndex.sendTransactionAsync(target,
index
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -480,12 +495,17 @@ export class ERC20ProxyContract extends BaseContract {
async awaitTransactionSuccessAsync(
newOwner: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC20ProxyContract;
const txHash = await self.transferOwnership.sendTransactionAsync(newOwner
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -77,13 +77,18 @@ export class ERC20TokenContract extends BaseContract {
_spender: string,
_value: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC20TokenContract;
const txHash = await self.approve.sendTransactionAsync(_spender,
_value
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -206,6 +211,7 @@ export class ERC20TokenContract extends BaseContract {
_to: string,
_value: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC20TokenContract;
const txHash = await self.transferFrom.sendTransactionAsync(_from,
@@ -213,7 +219,11 @@ export class ERC20TokenContract extends BaseContract {
_value
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -340,13 +350,18 @@ export class ERC20TokenContract extends BaseContract {
_to: string,
_value: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC20TokenContract;
const txHash = await self.transfer.sendTransactionAsync(_to,
_value
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -71,12 +71,17 @@ export class ERC721ProxyContract extends BaseContract {
async awaitTransactionSuccessAsync(
target: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC721ProxyContract;
const txHash = await self.addAuthorizedAddress.sendTransactionAsync(target
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -187,12 +192,17 @@ export class ERC721ProxyContract extends BaseContract {
async awaitTransactionSuccessAsync(
target: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC721ProxyContract;
const txHash = await self.removeAuthorizedAddress.sendTransactionAsync(target
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -305,13 +315,18 @@ export class ERC721ProxyContract extends BaseContract {
target: string,
index: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC721ProxyContract;
const txHash = await self.removeAuthorizedAddressAtIndex.sendTransactionAsync(target,
index
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -480,12 +495,17 @@ export class ERC721ProxyContract extends BaseContract {
async awaitTransactionSuccessAsync(
newOwner: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC721ProxyContract;
const txHash = await self.transferOwnership.sendTransactionAsync(newOwner
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -113,13 +113,18 @@ export class ERC721TokenContract extends BaseContract {
_approved: string,
_tokenId: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC721TokenContract;
const txHash = await self.approve.sendTransactionAsync(_approved,
_tokenId
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -216,6 +221,7 @@ export class ERC721TokenContract extends BaseContract {
_to: string,
_tokenId: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC721TokenContract;
const txHash = await self.transferFrom.sendTransactionAsync(_from,
@@ -223,7 +229,11 @@ export class ERC721TokenContract extends BaseContract {
_tokenId
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -326,6 +336,7 @@ export class ERC721TokenContract extends BaseContract {
_to: string,
_tokenId: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC721TokenContract;
const txHash = await self.safeTransferFrom1.sendTransactionAsync(_from,
@@ -333,7 +344,11 @@ export class ERC721TokenContract extends BaseContract {
_tokenId
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -488,13 +503,18 @@ export class ERC721TokenContract extends BaseContract {
_operator: string,
_approved: boolean,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC721TokenContract;
const txHash = await self.setApprovalForAll.sendTransactionAsync(_operator,
_approved
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -595,6 +615,7 @@ export class ERC721TokenContract extends BaseContract {
_tokenId: BigNumber,
_data: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ERC721TokenContract;
const txHash = await self.safeTransferFrom2.sendTransactionAsync(_from,
@@ -603,7 +624,11 @@ export class ERC721TokenContract extends BaseContract {
_data
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -143,6 +143,7 @@ export class ExchangeContract extends BaseContract {
takerAssetFillAmounts: BigNumber[],
signatures: string[],
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.batchFillOrders.sendTransactionAsync(orders,
@@ -150,7 +151,11 @@ export class ExchangeContract extends BaseContract {
signatures
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -281,6 +286,7 @@ export class ExchangeContract extends BaseContract {
signerAddress: string,
signature: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.preSign.sendTransactionAsync(hash,
@@ -288,7 +294,11 @@ export class ExchangeContract extends BaseContract {
signature
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -395,6 +405,7 @@ export class ExchangeContract extends BaseContract {
leftSignature: string,
rightSignature: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.matchOrders.sendTransactionAsync(leftOrder,
@@ -403,7 +414,11 @@ export class ExchangeContract extends BaseContract {
rightSignature
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -512,6 +527,7 @@ export class ExchangeContract extends BaseContract {
takerAssetFillAmount: BigNumber,
signature: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.fillOrderNoThrow.sendTransactionAsync(order,
@@ -519,7 +535,11 @@ export class ExchangeContract extends BaseContract {
signature
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -642,12 +662,17 @@ export class ExchangeContract extends BaseContract {
async awaitTransactionSuccessAsync(
orders: Array<{makerAddress: string;takerAddress: string;feeRecipientAddress: string;senderAddress: string;makerAssetAmount: BigNumber;takerAssetAmount: BigNumber;makerFee: BigNumber;takerFee: BigNumber;expirationTimeSeconds: BigNumber;salt: BigNumber;makerAssetData: string;takerAssetData: string}>,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.batchCancelOrders.sendTransactionAsync(orders
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -738,6 +763,7 @@ export class ExchangeContract extends BaseContract {
takerAssetFillAmounts: BigNumber[],
signatures: string[],
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.batchFillOrKillOrders.sendTransactionAsync(orders,
@@ -745,7 +771,11 @@ export class ExchangeContract extends BaseContract {
signatures
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -840,12 +870,17 @@ export class ExchangeContract extends BaseContract {
async awaitTransactionSuccessAsync(
targetOrderEpoch: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.cancelOrdersUpTo.sendTransactionAsync(targetOrderEpoch
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -936,6 +971,7 @@ export class ExchangeContract extends BaseContract {
takerAssetFillAmounts: BigNumber[],
signatures: string[],
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.batchFillOrdersNoThrow.sendTransactionAsync(orders,
@@ -943,7 +979,11 @@ export class ExchangeContract extends BaseContract {
signatures
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -1102,6 +1142,7 @@ export class ExchangeContract extends BaseContract {
takerAssetFillAmount: BigNumber,
signature: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.fillOrKillOrder.sendTransactionAsync(order,
@@ -1109,7 +1150,11 @@ export class ExchangeContract extends BaseContract {
signature
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -1208,13 +1253,18 @@ export class ExchangeContract extends BaseContract {
validatorAddress: string,
approval: boolean,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.setSignatureValidatorApproval.sendTransactionAsync(validatorAddress,
approval
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -1341,6 +1391,7 @@ export class ExchangeContract extends BaseContract {
takerAssetFillAmount: BigNumber,
signatures: string[],
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.marketSellOrders.sendTransactionAsync(orders,
@@ -1348,7 +1399,11 @@ export class ExchangeContract extends BaseContract {
signatures
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -1567,6 +1622,7 @@ export class ExchangeContract extends BaseContract {
makerAssetFillAmount: BigNumber,
signatures: string[],
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.marketBuyOrdersNoThrow.sendTransactionAsync(orders,
@@ -1574,7 +1630,11 @@ export class ExchangeContract extends BaseContract {
signatures
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -1677,6 +1737,7 @@ export class ExchangeContract extends BaseContract {
takerAssetFillAmount: BigNumber,
signature: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.fillOrder.sendTransactionAsync(order,
@@ -1684,7 +1745,11 @@ export class ExchangeContract extends BaseContract {
signature
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -1791,6 +1856,7 @@ export class ExchangeContract extends BaseContract {
data: string,
signature: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.executeTransaction.sendTransactionAsync(salt,
@@ -1799,7 +1865,11 @@ export class ExchangeContract extends BaseContract {
signature
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -1900,12 +1970,17 @@ export class ExchangeContract extends BaseContract {
async awaitTransactionSuccessAsync(
assetProxy: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.registerAssetProxy.sendTransactionAsync(assetProxy
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -2016,12 +2091,17 @@ export class ExchangeContract extends BaseContract {
async awaitTransactionSuccessAsync(
order: {makerAddress: string;takerAddress: string;feeRecipientAddress: string;senderAddress: string;makerAssetAmount: BigNumber;takerAssetAmount: BigNumber;makerFee: BigNumber;takerFee: BigNumber;expirationTimeSeconds: BigNumber;salt: BigNumber;makerAssetData: string;takerAssetData: string},
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.cancelOrder.sendTransactionAsync(order
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -2168,6 +2248,7 @@ export class ExchangeContract extends BaseContract {
takerAssetFillAmount: BigNumber,
signatures: string[],
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.marketSellOrdersNoThrow.sendTransactionAsync(orders,
@@ -2175,7 +2256,11 @@ export class ExchangeContract extends BaseContract {
signatures
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -2304,6 +2389,7 @@ export class ExchangeContract extends BaseContract {
makerAssetFillAmount: BigNumber,
signatures: string[],
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.marketBuyOrders.sendTransactionAsync(orders,
@@ -2311,7 +2397,11 @@ export class ExchangeContract extends BaseContract {
signatures
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -2432,12 +2522,17 @@ export class ExchangeContract extends BaseContract {
async awaitTransactionSuccessAsync(
newOwner: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ExchangeContract;
const txHash = await self.transferOwnership.sendTransactionAsync(newOwner
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -76,6 +76,7 @@ export class ForwarderContract extends BaseContract {
feePercentage: BigNumber,
feeRecipient: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ForwarderContract;
const txHash = await self.marketBuyOrdersWithEth.sendTransactionAsync(orders,
@@ -87,7 +88,11 @@ export class ForwarderContract extends BaseContract {
feeRecipient
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -210,13 +215,18 @@ export class ForwarderContract extends BaseContract {
assetData: string,
amount: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ForwarderContract;
const txHash = await self.withdrawAsset.sendTransactionAsync(assetData,
amount
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -351,6 +361,7 @@ export class ForwarderContract extends BaseContract {
feePercentage: BigNumber,
feeRecipient: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ForwarderContract;
const txHash = await self.marketSellOrdersWithEth.sendTransactionAsync(orders,
@@ -361,7 +372,11 @@ export class ForwarderContract extends BaseContract {
feeRecipient
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -474,12 +489,17 @@ export class ForwarderContract extends BaseContract {
async awaitTransactionSuccessAsync(
newOwner: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ForwarderContract;
const txHash = await self.transferOwnership.sendTransactionAsync(newOwner
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -52,12 +52,17 @@ export class IAssetProxyContract extends BaseContract {
async awaitTransactionSuccessAsync(
target: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as IAssetProxyContract;
const txHash = await self.addAuthorizedAddress.sendTransactionAsync(target
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -140,12 +145,17 @@ export class IAssetProxyContract extends BaseContract {
async awaitTransactionSuccessAsync(
target: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as IAssetProxyContract;
const txHash = await self.removeAuthorizedAddress.sendTransactionAsync(target
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -232,13 +242,18 @@ export class IAssetProxyContract extends BaseContract {
target: string,
index: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as IAssetProxyContract;
const txHash = await self.removeAuthorizedAddressAtIndex.sendTransactionAsync(target,
index
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -339,6 +354,7 @@ export class IAssetProxyContract extends BaseContract {
to: string,
amount: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as IAssetProxyContract;
const txHash = await self.transferFrom.sendTransactionAsync(assetData,
@@ -347,7 +363,11 @@ export class IAssetProxyContract extends BaseContract {
amount
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -500,12 +520,17 @@ export class IAssetProxyContract extends BaseContract {
async awaitTransactionSuccessAsync(
newOwner: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as IAssetProxyContract;
const txHash = await self.transferOwnership.sendTransactionAsync(newOwner
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -106,12 +106,17 @@ export class MultiAssetProxyContract extends BaseContract {
async awaitTransactionSuccessAsync(
target: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as MultiAssetProxyContract;
const txHash = await self.addAuthorizedAddress.sendTransactionAsync(target
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -250,12 +255,17 @@ export class MultiAssetProxyContract extends BaseContract {
async awaitTransactionSuccessAsync(
target: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as MultiAssetProxyContract;
const txHash = await self.removeAuthorizedAddress.sendTransactionAsync(target
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -368,13 +378,18 @@ export class MultiAssetProxyContract extends BaseContract {
target: string,
index: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as MultiAssetProxyContract;
const txHash = await self.removeAuthorizedAddressAtIndex.sendTransactionAsync(target,
index
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -517,12 +532,17 @@ export class MultiAssetProxyContract extends BaseContract {
async awaitTransactionSuccessAsync(
assetProxy: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as MultiAssetProxyContract;
const txHash = await self.registerAssetProxy.sendTransactionAsync(assetProxy
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -631,12 +651,17 @@ export class MultiAssetProxyContract extends BaseContract {
async awaitTransactionSuccessAsync(
newOwner: string,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as MultiAssetProxyContract;
const txHash = await self.transferOwnership.sendTransactionAsync(newOwner
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -117,13 +117,18 @@ export class WETH9Contract extends BaseContract {
guy: string,
wad: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as WETH9Contract;
const txHash = await self.approve.sendTransactionAsync(guy,
wad
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -246,6 +251,7 @@ export class WETH9Contract extends BaseContract {
dst: string,
wad: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as WETH9Contract;
const txHash = await self.transferFrom.sendTransactionAsync(src,
@@ -253,7 +259,11 @@ export class WETH9Contract extends BaseContract {
wad
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -348,12 +358,17 @@ export class WETH9Contract extends BaseContract {
async awaitTransactionSuccessAsync(
wad: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as WETH9Contract;
const txHash = await self.withdraw.sendTransactionAsync(wad
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -520,13 +535,18 @@ export class WETH9Contract extends BaseContract {
dst: string,
wad: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as WETH9Contract;
const txHash = await self.transfer.sendTransactionAsync(dst,
wad
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -611,11 +631,16 @@ export class WETH9Contract extends BaseContract {
},
async awaitTransactionSuccessAsync(
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as WETH9Contract;
const txHash = await self.deposit.sendTransactionAsync();
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},

View File

@@ -103,13 +103,18 @@ export class ZRXTokenContract extends BaseContract {
_spender: string,
_value: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ZRXTokenContract;
const txHash = await self.approve.sendTransactionAsync(_spender,
_value
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -232,6 +237,7 @@ export class ZRXTokenContract extends BaseContract {
_to: string,
_value: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ZRXTokenContract;
const txHash = await self.transferFrom.sendTransactionAsync(_from,
@@ -239,7 +245,11 @@ export class ZRXTokenContract extends BaseContract {
_value
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},
@@ -418,13 +428,18 @@ export class ZRXTokenContract extends BaseContract {
_to: string,
_value: BigNumber,
pollingIntervalMs?: number,
timeoutMs?: number,
): PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs> {
const self = this as any as ZRXTokenContract;
const txHash = await self.transfer.sendTransactionAsync(_to,
_value
);
// tslint:disable-next-line: no-unnecessary-type-assertion
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(txHash, pollingIntervalMs) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
const receiptPromise = self._web3Wrapper.awaitTransactionSuccessAsync(
txHash,
pollingIntervalMs,
timeoutMs,
) as PromiseWithTransactionHash<TransactionReceiptWithDecodedLogs>;
receiptPromise.txHash = txHash;
return receiptPromise;
},