Lawrence Forman
616907eff8
Update coordinator tests to comply with mixed EIP712 domains.
2019-03-15 16:52:18 -04:00
Lawrence Forman
afaabb3673
Move Coordinator EIP712 constants from contracts/test-utils
to packages/order-utils
.
...
Export `constants` from `packages/types`.
Add `SignatureInvalid` to `RevertReason` in `packages/types`.
2019-03-15 16:52:18 -04:00
Lawrence Forman
1c1f625352
Add SignatureType.Invalid
to Coordinator.
...
`LibEIP712Domain.sol` can now produce hashes for both Coordinator and Exchange data through `hashEIP712CoordinatorMessage()` and `hashEIP712ExchangeMessage()`.
Coordinator now only uses its own domain for approval hashes, and the Exchange's domain for transaction hashes.
2019-03-15 16:52:18 -04:00
Amir Bandeali
65c8630534
Unpin Solidity versions for contracts that are not deployed
2019-03-13 16:53:22 -07:00
Greg Hysen
c53edf6bd9
0.5.3 -> 0.5.5 in erc1155 contracts
2019-03-12 11:39:00 -07:00
Greg Hysen
b601220845
Updated package.json dependencies
2019-03-12 11:09:39 -07:00
Greg Hysen
e77a608f45
Got build working on erc1155
2019-03-11 19:07:58 -07:00
Greg Hysen
98227928af
Added Address.sol for isContract
checks to contracts-utils package
2019-03-11 16:12:31 -07:00
Greg Hysen
430afbdc80
Replaced SafeMath in ERC1155 package with the version in contracts-utils
2019-03-11 16:06:18 -07:00
Greg Hysen
257d1b2b52
Set evm version to byzantium to avoid using unsupported opcodes in solidity 0.5.5
2019-03-11 15:00:41 -07:00
Greg Hysen
07200437b6
style improvements for erc1155 basic implementation
2019-03-11 15:00:41 -07:00
Greg Hysen
421f555d57
Ran prettier
2019-03-11 14:59:58 -07:00
Greg Hysen
4b60d941cc
erc1155 wrapper improvements - handle minting for mutliple addresses at once + more revert reasons
2019-03-11 14:59:58 -07:00
Greg Hysen
60d24ada62
tests for allowance approvals on erc1155
2019-03-11 14:59:58 -07:00
Greg Hysen
b3775a3ca5
more style cleanup of erc1155 basic implementation
2019-03-11 14:59:58 -07:00
Greg Hysen
5d36c97a46
Added license to utils
2019-03-11 14:59:58 -07:00
Greg Hysen
4bdd412c15
added pr to changelogs
2019-03-11 14:59:58 -07:00
Greg Hysen
46e3bcd6b9
cleaned up reference implementation revert reasons
2019-03-11 14:59:58 -07:00
Greg Hysen
68a85ddf90
removed unnecessary solhintignore
2019-03-11 14:59:58 -07:00
Greg Hysen
9de151cc14
ran prettier
2019-03-11 14:55:45 -07:00
Greg Hysen
b8c9a5dd1f
renamed contracts::lib -> contracts::utils
2019-03-11 14:55:45 -07:00
Greg Hysen
4dfb3507c4
updated compiler.json
2019-03-11 14:55:45 -07:00
Greg Hysen
0cac2d407b
Cleanup
2019-03-11 14:55:45 -07:00
Greg Hysen
b3106cd932
Removed DummyERC1155Token
2019-03-11 14:55:45 -07:00
Greg Hysen
c4a467fa96
Ran lint-contracts
2019-03-11 14:55:45 -07:00
Greg Hysen
cf7afbe7f6
ran linter
2019-03-11 14:55:45 -07:00
Greg Hysen
a8d58aeac4
ran prettier
2019-03-11 14:55:45 -07:00
Greg Hysen
28209e9413
cleaning
2019-03-11 14:55:45 -07:00
Greg Hysen
68ed56f2d9
some cleanup
2019-03-11 14:55:45 -07:00
Greg Hysen
0c03747807
Basic ERC1155 wrapper
2019-03-11 14:55:45 -07:00
Greg Hysen
3039d8edfa
Ran prettier
2019-03-11 14:55:45 -07:00
Greg Hysen
7c850cc082
Basic ERC1155 Implementation. Derived from reference implementation, with bug fixes.
2019-03-11 14:55:45 -07:00
Amir Bandeali
22af796302
Cleanup
2019-03-07 19:36:26 -08:00
Amir Bandeali
2f7dd177c1
Update CHANGELOGs
2019-03-07 15:17:56 -08:00
Amir Bandeali
d35a053efd
Update remaining contract Solidity versions to 0.5.5
2019-03-07 15:17:51 -08:00
Amir Bandeali
87cc1f9415
Update TEC solidity versions
2019-03-07 14:57:13 -08:00
Amir Bandeali
9e03e1c742
Merge pull request #1668 from 0xProject/feat/contracts/tec-txorigin-check
...
Add tx.origin to TEC approvals
2019-03-07 14:55:32 -08:00
Amir Bandeali
9471510086
Optimize LibAddressArray and update CHANGELOG
2019-03-07 14:29:06 -08:00
Amir Bandeali
53a70bbffb
Change InvalidSender err to invalidOrigin
2019-03-07 13:58:50 -08:00
Greg Hysen
93568f6fd0
Coordinator Registry + tests
2019-03-07 11:32:18 -08:00
Amir Bandeali
6cfc9ba47b
Use != instead of < in loops
2019-03-07 10:56:12 -08:00
Amir Bandeali
350474540b
Optimize for loops in LibAddressArray
2019-03-07 10:56:12 -08:00
Amir Bandeali
1136e58de7
Add txOrigin to approvals
2019-03-07 10:56:12 -08:00
Amir Bandeali
558ce4713c
Optimize approval hashing
2019-03-07 10:34:10 -08:00
Amir Bandeali
69c6f50dfb
Optimize transaction hashing
2019-03-07 10:30:17 -08:00
Greg Hysen
ff61dc4391
Updated coordinator name in package.json
2019-03-07 10:13:44 -08:00
Greg Hysen
4da6ede9d0
More tec -> coordinator changes
2019-03-07 10:11:15 -08:00
Greg Hysen
6c60341ce8
Changed coordinator domain name to "0x Protocol Coordinator"
2019-03-07 09:28:29 -08:00
Greg Hysen
e1c1878130
Ran linter
2019-03-07 09:11:26 -08:00
Greg Hysen
fea5a39740
Ran prettier
2019-03-07 08:57:30 -08:00