Lawrence Forman
b50e26dc2a
@0x/contracts-asset-proxy
: Rename IERC20Bridge.transfer()
-> IERC20Bridge.withdrawTo()
.
...
`@0x/contracts-asset-proxy`: Make `bridgeData` last parameter in `IERC20Bridge.withdrawTo()`.
`@0x/contracts-asset-proxy`: Reuse `PROXY_ID` as `BRIDGE_SUCCESS`.
2019-09-29 17:10:38 -04:00
Lawrence Forman
b728d13d8c
@0x/contracts-asset-proxy
: Remove only
tests modifier.
2019-09-27 23:54:32 -04:00
Lawrence Forman
1959d149f8
@0x/contracts-asset-proxy
: Fix incorrect comments in ERC20BridgeProxy
tests.
2019-09-27 19:49:23 -04:00
Lawrence Forman
d6a4d67a14
@0x/contracts-asset-proxy
: Add ERC20BridgeProxy
and tests.
2019-09-27 19:33:33 -04:00
Xianny
cb20f03a92
Use hardcoded deployedBytecode for local EVM execution ( #2198 )
...
* hardcode deployedBytecode in contracts
* log warning if bytecode is empty or invalid
* be typesafe
2019-09-26 08:38:29 -07:00
Michael Zhu
078b1af04e
Binop -> BinOp
2019-08-26 16:06:31 -07:00
Michael Zhu
98e5b26eb7
refactor SafeMath rich errors and use them in staking libs
2019-08-26 15:49:09 -07:00
Alex Towle
22c8a25a26
Merge branch 'development' into 3.0
2019-08-19 11:13:21 -07:00
Alex Towle
47ab2a1b1d
Reverted the asset-proxy back to an older version of Ownable that it was actually deployed with
2019-08-02 13:46:34 -07:00
Alex Towle
9c7df2b41e
Reverted MixinAuthorizable to old version and moved the new version to utils
2019-08-02 13:45:41 -07:00
Alex Towle
858ccfa934
Disallow the zero address in MixinAuthorizable
2019-08-02 13:45:12 -07:00
Alex Towle
8c5c81fe70
Change all instances of throw to revert in it tests
2019-08-01 15:13:16 -07:00
Lawrence Forman
9b5ba6806f
@0x/contracts-asset-proxy
: Fix broken erc1155_proxy
tests.
...
`@0x/contracts-asset-proxy`: Add `ERC1155Proxy.sol` to .solhintignore.
Fix circleci config to work with 3.0 branch.
2019-07-29 23:47:04 -04:00
Greg Hysen
d8cf9d54aa
Updated all instances of deployFrom0xArtifactAsync
2019-07-29 12:07:28 +02:00
Xianny
46384ce80d
Allow generated wrappers to subscribe/unsubscribe to events ( #1970 )
...
* Define SubscriptionManager and instantiate in generated wrappers
* expose subscribe/unsubscribe in generated wrappers
* update changelogs
* use SubscriptionManager in `@0x/contract-wrappers`
2019-07-26 16:54:31 -07:00
James Towle
a46b13967a
Refactored the SafeMath errors
2019-07-23 15:51:43 -07:00
James Towle
83bd5f5561
Fixed the last broken test in asset-proxy
2019-07-23 15:51:43 -07:00
James Towle
0ddb9f8923
Added a linting command for slower computers
2019-07-23 15:51:43 -07:00
James Towle
03ea97734c
Ran yarn prettier
2019-07-23 15:51:43 -07:00
James Towle
666b992c51
Readded Underflow RichErrors to asset-proxy
2019-07-23 15:51:43 -07:00
James Towle
aa36ebf4f2
Removed RichErrors from the erc1155 test in Authorizable
2019-07-23 15:51:43 -07:00
James Towle
cf3790c2f8
Updated the erc1155 tests in asset-proxy to use RichErrors
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
Lawrence Forman
348ec5bc3c
@0x/contracts-asset-proxy
: Add setProxyAllowanceForAllAsync()
to ERC1155ProxyWrapper
.
2019-07-23 15:45:39 -07:00
Lawrence Forman
acd857a8c0
@0x/contracts-asset-proxy
: Fix broken proxies
test.
2019-07-23 15:43:23 -07:00
Lawrence Forman
3fb34a2a83
@0x/contracts-asset-proxy
: Make setProxyAllowanceForAll()
just accept a ownerAddress
and give the proxy full control.
2019-07-23 15:43:23 -07:00
Amir Bandeali
a569815840
Fix assetData length check and improve readability
2019-07-17 09:37:42 -07:00
Greg Hysen
9e41c3093b
Conforming to error codes in ERC1155 Proxy
2019-07-17 09:37:42 -07:00
Amir Bandeali
53136caaa4
Add test for when staticCallTarget is an EOA
2019-07-16 16:00:38 -07:00
Amir Bandeali
10d767c5ab
Update ERC1155Proxy tests
2019-07-15 22:08:23 -07:00
Amir Bandeali
185e2342d9
Update StaticCallProxy tests
2019-07-15 22:07:31 -07:00
Xianny
048f5c2771
[Multilang] hardcode ABI into abi-gen-wrappers ( #1883 )
...
* Export artifacts and addresses from abi-gen-wrappers
* only export addresses, not artifacts
* abi-gen-wrappers no longer accept ContractAbi as constructor param
ABI is now hardcoded when wrapper is generated
* remove unused imports
* remove unused import
* changes after review
* fix method ordering
* update constructor args
* prettier
* statically enumerate ABI properties
* remove abi-gen-wrappers generated-wrappers from prettierignore
* add template for recursive components
* add `indexed` field for EventParameter
* prettier
* update known-good wrappers with ABIs and fix Python ABI loading
* remove generated-artifacts and update gitignore
2019-07-08 12:44:19 -07:00
Amir Bandeali
0c8bb2e675
Add unit tests for StaticCallProxy
2019-06-18 19:50:59 -07:00
Amir Bandeali
12afeb30ae
Move LibAssetData to DevUtils package
2019-06-07 08:46:20 -07:00
Amir Bandeali
f68b8d82e0
Move LibTransactionDecoder to dev-utils package
2019-06-07 08:46:20 -07:00
Amir Bandeali
0db56a781e
Cleanup LibAssetData tests
2019-06-07 08:46:19 -07:00
Greg Hysen
cfc4e345cc
ran prettier and updated changelog
2019-06-05 14:22:50 -07:00
Greg Hysen
c68278d824
Additional multiplication overflow checks
2019-06-05 14:09:09 -07:00
Greg Hysen
09600a71cd
Added tests to assert that assetData is within the boundaries of calldata
2019-06-05 14:08:25 -07:00
Greg Hysen
d66ba70f5e
Updated length to match comment + added explicit test
2019-06-05 14:08:25 -07:00
Greg Hysen
e7c4120d24
Validation checks for the length of asset data
2019-06-05 14:08:25 -07:00
Greg Hysen
1212e534a8
Adds boundary checks when copying dynamic fields (includes tests)
2019-06-05 14:08:25 -07:00
Greg Hysen
899d0f1e42
removed .only for tests
2019-06-05 14:08:25 -07:00
Greg Hysen
b596e02752
readability cleanup
2019-06-05 14:08:25 -07:00
Greg Hysen
d5afe696da
removed .only from tests
2019-06-05 14:08:25 -07:00
Greg Hysen
98c8a6387a
manually copy ids, values, and data fields
2019-06-05 14:08:25 -07:00
Greg Hysen
8bae0b81aa
Added ERC1155Proxy tests when data overlaps values in asset data
2019-06-05 14:08:25 -07:00
Greg Hysen
7ee19e1306
Added new tests for different lengths of receiver callback data, since we are now appending scaledValues after data.
2019-06-05 14:08:25 -07:00
Greg Hysen
626d0dfa93
Store scaled values and end of calldata in ERC1155 Asset Proxy
2019-06-05 14:08:25 -07:00
Fabio Berger
84d38ea878
Add assertions to abi-gen templates and fix tests
2019-06-04 13:18:01 +01:00