You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 9, 2021. It is now read-only.
We have been working on improving our generated wrappers with the goal of eventually deprecating '@0x/contract-wrappers'.
To minimise the disruptiveness of this change, we should minimise interface differences between the generated wrappers and existing wrappers in `@0x/contract-wrappers.
This issue will be used to track all diffs as we address them.
xianny
changed the title
Minimise API diffs between contract wrappers and generated wrappers
Minimise API diffs between contract wrappers and TS generated wrappers
Jun 29, 2019
We have been working on improving our generated wrappers with the goal of eventually deprecating '@0x/contract-wrappers'.
To minimise the disruptiveness of this change, we should minimise interface differences between the generated wrappers and existing wrappers in `@0x/contract-wrappers.
This issue will be used to track all diffs as we address them.
To-Do
decodeDutchAuctionData
&encodeDutchAuctionAssetData
to order-utils Move Dutch Auction util methods to order-utils #1933addresses
inputs to lowercase Normalize addresses inabi-gen-wrappers
to lowercase #1932validateFillOrderThrowIfInvalidAsync
,validateMakerTransferThrowIfInvalidAsync
andvalidateOrderFillableOrThrowAsync
to order-utils Move validation methods from Exchange contract wrapper to order-utils #1873asset-buyer
and use it before calling the contract-wrapper Expose forwarder order optimizations inasset-buyer
#1934All other difference will be ignored - won't support them after deprecating
contract-wrappers
.coordinator_wrapper
dutch_auction_wrapper
* depends on
ethereumjs-util
* depends on
{ assetDataUtils } from '@0x/order-utils'
* depends on
ethereumjs-util
assetData
erc20_proxy_wrapper | erc721_proxy_wrapper
() => Promise<AssetProxyId>
() => Promise<string>
(string) => Promise<boolean>
(string) => Promise<boolean>
exchangeContractAddress
to lowercase.* Renames input param from
exchangeContractAddress
toinput_0
erc20_token_wrapper
contract-wrappers/utils/constants
tokenAddress
as argument anymoretokenAddress
as argument anymore* does not normalize
ownerAddress
to lower caseownerAddress
is set as part of TxData instead of an arggetAllowanceAsync
setAllowanceAsync
setAllowanceAsync
setAllowanceAsync
erc721_token_wrapper
undefined
ownerAddress
to lowercaseowner
andoperator
addresses to lower caseapprovedAddress
to lowercaseoperatorAddress
to lowercasegetApprovedIfExistsAsync
isApprovedForAllAsync
setApprovalAsync
setApprovalForAllAsync
* doesn't normalize addresses to lowercase
ether_token_wrapper
* doesn't enforce sufficient balance
* doesn't enforce sufficient balance
exchange_wrapper
Conditional is not generated:
shouldValidate ? callAsync : sendTransactionAsync
*
makerAddress
=>index_0
*
senderAddress
=>index_1
* relies on
assetDataUtils
forwarder_wrapper
Missing type assertions
assert.isHexString
=>assert.isString
assert.doesConformToSchema('orders', orders, schemas.ordersSchema);
=>assert.isArray
The text was updated successfully, but these errors were encountered: