Lawrence Forman
2ff3735adc
Rebase against 3.0
2019-07-23 15:53:24 -07:00
Lawrence Forman
c2752d5931
Update changelogs
2019-07-23 15:53:24 -07:00
Lawrence Forman
309dd7f300
Run prettier/linter
2019-07-23 15:53:24 -07:00
Lawrence Forman
bd5babf65d
@0x/order-utils
: Rename SignatureWalletOrderValidatorError
to SignatureOrderWalletError
RevertError
type.
2019-07-23 15:53:24 -07:00
Lawrence Forman
3c07cbde47
@0x/types
: Rename WalletOrderValidator
to OrderWallet
in SignatureType
...
`@0x/types`: Add `EIP1271Wallet` and `EIP1271OrderWallet` to `SignatureType`
2019-07-23 15:53:24 -07:00
Lawrence Forman
073930004d
@0x/order-utils
: Add validator
field to SignatureOrderValidatorError
and SignatureValidatorError
RevertError
types.
...
`@0x/order-utils`: Add `SignatureOrderValidatorNotApprovedError` and `SignatureValidatorNotApprovedError` `RevertError` types.
2019-07-23 15:53:24 -07:00
Lawrence Forman
3a49369e68
@0x/utils
: Add toStringTag
symbol to RevertError
2019-07-23 15:53:24 -07:00
Lawrence Forman
5f8ebc3601
@0x/base-contract
: Make PromiseWithTransactionHash
fully compatible with regular Promise
types.
...
`@0x/contracts/exchange` Make `OrderValidator` and `WalletOrderValidator` signature types checked for every fill (not just first)'
2019-07-23 15:53:24 -07:00
Lawrence Forman
2e5645108b
Update generated wrappers for coordinator and exchange.
2019-07-23 15:53:24 -07:00
Amir Bandeali
2b7114b704
Update CHANGELOGs
2019-07-23 15:52:20 -07:00
Amir Bandeali
1940458306
Add tests for OrderTransferSimulationUtils
2019-07-23 15:52:20 -07:00
Amir Bandeali
f01743e27c
Add tests for simulateTransferFromCalls
2019-07-23 15:52:20 -07:00
James Towle
e229d2d59f
Updated tests to work with LibMathRichErrors
2019-07-23 15:52:20 -07:00
James Towle
a46b13967a
Refactored the SafeMath errors
2019-07-23 15:51:43 -07:00
James Towle
03ea97734c
Ran yarn prettier
2019-07-23 15:51:43 -07:00
James Towle
b7bac3abf6
Updated the asset-proxy tests to use RichErrors
2019-07-23 15:51:43 -07:00
James Towle
b3da4bb5b7
Updated the erc1155 tests to expect RichErrors
2019-07-23 15:51:43 -07:00
Amir Bandeali
949946589f
Fix order-utils tests
2019-07-23 15:50:36 -07:00
Amir Bandeali
09d970f056
Update abi-gen-wrappers
2019-07-23 15:50:36 -07:00
Amir Bandeali
e6443a2612
Update CHANGELOGs
2019-07-23 15:46:16 -07:00
Amir Bandeali
d463d4c46b
Add transaction expiration tests
2019-07-23 15:46:15 -07:00
Amir Bandeali
6ddaa6f52a
Add expirationTimeSeconds to ZeroExTransaction schema throughout codebase
2019-07-23 15:46:15 -07:00
Lawrence Forman
df9698ab1f
@0x/order-utils
: Add ERC1155
to ExchangeTransferSimulator and fix MultiAssetProxy
transfer accounting.
2019-07-23 15:45:39 -07:00
Lawrence Forman
930736060c
@0x/abi-gen-templates
: Automatically catch and decode ganache revert Error
s in transaction methods.
2019-07-23 15:44:58 -07:00
Lawrence Forman
3de13967bc
@0x/base-contract
: Re-wrap StringRevertError
s as plain Error
s for backwards compatibility
2019-07-23 15:43:23 -07:00
Lawrence Forman
cdb938ea28
@0x/base-contract
: Add a method for converting Error
types to RevertError
s.
...
`@0x/abi-gen-templates`: Automatically try to convert `Error`s thrown in `callAsync()` to `RevertError`s.
`@0x/abi-gen-wrappers`: Update generated wrappers.
2019-07-23 15:43:23 -07:00
Lawrence Forman
882dd4597e
@0x/dev-utils
: Move Error
-> RevertError
coercion logic to @0x/utils
.
2019-07-23 15:27:39 -07:00
Lawrence Forman
409efb8c67
@0x/order-utils
: Update RevertError
types for new RevertError
constructor.
2019-07-23 15:27:39 -07:00
Lawrence Forman
eaa4373a18
@0x/utils
: Tweak RevertError
to produce a meaningful Error
message/stack trace.
...
`@0x/utils`: Add more `RevertError` decoding/transforming functions (such as `decodeThrownErrorAsRevertError()`)
2019-07-23 15:27:39 -07:00
Lawrence Forman
d480f8d82a
@0x/web3-wrapper
: Let toBaseUnitAmount()
accept a number
as well as a BigNumber
2019-07-23 15:27:39 -07:00
Lawrence Forman
339fc9ff14
@0x/assert
: Add isNumberLike
assertion
2019-07-23 15:27:00 -07:00
Lawrence Forman
7c0f075d1f
Update changelogs with PR #s
2019-07-23 15:26:59 -07:00
Lawrence Forman
a5c0b95f8b
Update changelogs
2019-07-23 15:26:59 -07:00
Lawrence Forman
3654005c3d
@0x/order-utils
: Move order expiration check to top in order validation.
2019-07-23 15:23:40 -07:00
Lawrence Forman
3381ab5093
@0x/typescript-typings
: Add more overloads for ethereumjs-util
setLengthLeft
, setLengthRight
, setLength
.
2019-07-23 15:23:40 -07:00
Lawrence Forman
1c1ab3cd87
json-schemas
: Update changelog.
2019-07-23 15:23:40 -07:00
Lawrence Forman
f5c215fe65
Update fill-scenarios
for ZEIP-28
2019-07-23 15:23:40 -07:00
Lawrence Forman
9952de615a
Update order-utils
for ZEIP-28
2019-07-23 15:23:40 -07:00
Lawrence Forman
94d0db2dba
In @0x/order-utils
: Fix order hash tests.
...
In `@0x/contracts-exchange-libs`: Add fee asset datas to `LibOrder` type.
2019-07-23 15:23:40 -07:00
Amir Bandeali
64c596c922
temp
2019-07-23 15:23:40 -07:00
Amir Bandeali
e30b8999d4
Update order utils to use new order schema
2019-07-23 15:23:40 -07:00
Amir Bandeali
2f0ee84b71
Add fee assetData fields to order JSON schema
2019-07-23 15:23:40 -07:00
Amir Bandeali
c570478aaa
Add fee assetData fields to OrderWithoutDomain and Order types
2019-07-23 15:23:40 -07:00
Lawrence Forman
25e2baaea7
Fix linter errors.
2019-07-23 15:21:14 -07:00
Lawrence Forman
9af51aaca1
Add PRs to changelogs.
2019-07-23 15:21:14 -07:00
Lawrence Forman
3bacf09710
Update changelogs
2019-07-23 15:21:14 -07:00
Lawrence Forman
61bdbd2d74
Rebased against 3.0
.
...
Run prettier/linter.
2019-07-23 15:21:14 -07:00
Lawrence Forman
d942c47f08
In @0x/contracts-exchange
: Change parameter order and naming of some rich revert errors.
...
In `@0x/order-utils`: Change parameter order for `OrderStatusError`.
2019-07-23 15:21:14 -07:00
Lawrence Forman
0cb8586f68
Unpin coordinator deps.
...
Update coordinator tests for new tooling.
Remove unecessary `chainId` parameter in `eip712_utils.createCoordinatorApprovalTypeData`
2019-07-23 15:21:14 -07:00
Lawrence Forman
0bcd47b394
Add OrderValidator and WalletOrderValidator signature strategies to Exchange ( #1774 )
...
* In `@0x/contracts-exchange`: Add `SignatureType.OrderValidator` support to contracts and refactor signature validation functions.
* In `@0x/types`: Add `SignatureType.OrderValidator` and `RevertReason.InappropriateSignature`.
* In `@0x/contracts-exchange`: Fix contracts and update tests for `SignatureType.OrderValidator`.
* Ran prettier/linter
* Update changelogs
* In `@0x/order-utils`: Add `SignatureOrderValidatorError` to `ExchangeRevertErrors`.
* In `@0x/contracts-exchange`: Add `SignatureOrderValidatorError` rich revert. Fix rebase issues. Rename `IValidator.isValidOrder` to `IValidator.isValidOrderSignature`.
* In `@0x/contracts-exchange`: Add revert test cases for `OrderValidator` signature type.
* In `@0x/order-utils`: Update changelog.
* In `@0x/contracts-exchange`: Split off `SignatureType.OrderValidator` scheme into its own interface and registry.
* In `@0x/types`: Add `SignatureType.WalletOrderValidator`.
* In `@0x/order-utils`: Add `SignatureWalletOrderValidatorError`.
* In `@0x/contracts-exchange`: Add `SignatureType.WalletOrderValidator` support.
* Ran prettier
* In `@0x/types`: Remove `RevertReason.WalletOrderValidator`.
* Update/fix changelogs in `@0x/contracts-exchange`, `@0x/order-utils`, and `@0x/types`.
* In `@0x/contracts-exchange`: Make `isValidOrderSignature` `external` instead of `public`.
* In `@0x/contracts-exchange`: Change `isValidOrderSignature` back to `public` because passing `calldata` to internal functions isn't supported.
2019-07-23 15:18:26 -07:00