update abi-gen with new method interfaces (#2325)
* update abi-gen with new method interfaces * wip: get all packages to build * wip: get all packages to build * Fix two contract wrapper calls * Export necessary types part of the contract wrapper public interfaces * Revive and fix wrapper_unit_tests * Remove duplicate type * Fix lib_exchange_rich_error_decoder tests * Fix remaining test failures in contracts-* packages * Prettier fixes * remove transactionHelper * lint and update changelogs * Fix prettier * Revert changes to reference docs * Add back changelog already published and add revert changelog entry * Add missing CHANGELOG entries * Add missing comma * Update mesh-rpc-client dep * Update Mesh RPC logic in @0x/orderbook to v6.0.1-beta * Align package versions
This commit is contained in:
		| @@ -76,7 +76,7 @@ export class ERC1155ProxyWrapper { | ||||
|             txDefaults, | ||||
|             artifacts, | ||||
|         ); | ||||
|         this._proxyIdIfExists = await this._proxyContract.getProxyId.callAsync(); | ||||
|         this._proxyIdIfExists = await this._proxyContract.getProxyId().callAsync(); | ||||
|         return this._proxyContract; | ||||
|     } | ||||
|     /** | ||||
| @@ -113,19 +113,13 @@ export class ERC1155ProxyWrapper { | ||||
|         this._validateProxyContractExistsOrThrow(); | ||||
|         const assetData = | ||||
|             assetData_ === undefined | ||||
|                 ? await this._devUtils.encodeERC1155AssetData.callAsync( | ||||
|                       contractAddress, | ||||
|                       tokensToTransfer, | ||||
|                       valuesToTransfer, | ||||
|                       receiverCallbackData, | ||||
|                   ) | ||||
|                 ? await this._devUtils | ||||
|                       .encodeERC1155AssetData(contractAddress, tokensToTransfer, valuesToTransfer, receiverCallbackData) | ||||
|                       .callAsync() | ||||
|                 : assetData_; | ||||
|         const data = this._assetProxyInterface.transferFrom.getABIEncodedTransactionData( | ||||
|             assetData, | ||||
|             from, | ||||
|             to, | ||||
|             valueMultiplier, | ||||
|         ); | ||||
|         const data = this._assetProxyInterface | ||||
|             .transferFrom(assetData, from, to, valueMultiplier) | ||||
|             .getABIEncodedTransactionData(); | ||||
|         return data; | ||||
|     } | ||||
|     /** | ||||
| @@ -173,19 +167,13 @@ export class ERC1155ProxyWrapper { | ||||
|         this._validateProxyContractExistsOrThrow(); | ||||
|         const assetData = | ||||
|             assetData_ === undefined | ||||
|                 ? await this._devUtils.encodeERC1155AssetData.callAsync( | ||||
|                       contractAddress, | ||||
|                       tokensToTransfer, | ||||
|                       valuesToTransfer, | ||||
|                       receiverCallbackData, | ||||
|                   ) | ||||
|                 ? await this._devUtils | ||||
|                       .encodeERC1155AssetData(contractAddress, tokensToTransfer, valuesToTransfer, receiverCallbackData) | ||||
|                       .callAsync() | ||||
|                 : assetData_; | ||||
|         const data = this._assetProxyInterface.transferFrom.getABIEncodedTransactionData( | ||||
|             assetData, | ||||
|             from, | ||||
|             to, | ||||
|             valueMultiplier, | ||||
|         ); | ||||
|         const data = this._assetProxyInterface | ||||
|             .transferFrom(assetData, from, to, valueMultiplier) | ||||
|             .getABIEncodedTransactionData(); | ||||
|         const txHash = await this._web3Wrapper.sendTransactionAsync({ | ||||
|             to: (this._proxyContract as ERC1155ProxyContract).address, | ||||
|             data, | ||||
| @@ -366,7 +354,7 @@ export class ERC1155ProxyWrapper { | ||||
|         this._validateProxyContractExistsOrThrow(); | ||||
|         const tokenContract = this._getContractFromAddress(contractAddress); | ||||
|         const operator = (this._proxyContract as ERC1155ProxyContract).address; | ||||
|         const didApproveAll = await tokenContract.isApprovedForAll.callAsync(userAddress, operator); | ||||
|         const didApproveAll = await tokenContract.isApprovedForAll(userAddress, operator).callAsync(); | ||||
|         return didApproveAll; | ||||
|     } | ||||
|     public getFungibleTokenIds(): BigNumber[] { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user