Xianny
0e90b0e7d0
Make wrappers small again ( #2243 )
...
* introduce --debug option to abi-gen and remove debug functions from @0x/abi-gen-wrappers
* make evmExecAsync protected; ignore deployedBytecode in doc comment
* trim deployedBytecode so it's undefined unless a contract has pure functions
* remove validateAndSendTransactionAsync
* Create `AwaitTransactionSuccessOpts` and `SendTransactionOpts` types
* Remove duplicate types `IndexedFilterValues`, `DecodedLogEvent`, `EventCallback` from `@0x/base-contract`
2019-10-16 09:38:34 -07:00
Lawrence Forman
53df2130ea
@0x/contracts-asset-proxy
: Remove only
modifier on uniswap tests.
2019-10-08 09:27:53 +09:00
Lawrence Forman
dbf22583b5
@0x/contracts-asset-proxy
: Remove unecessary token allowance when coming from WETH.
2019-10-05 22:37:51 -05:00
Lawrence Forman
e67888d65f
@0x/contracs-asset-proxy
: Pass in minimum buy amounts in the UniswapBridge
.
...
`@0x/contracs-asset-proxy`: Slight refactors in `UniswapBridge`.
2019-10-05 16:27:24 -05:00
Lawrence Forman
584f8b13fe
@0x/contracts-asset-proxy
: Rebase and update Eth2DaiBridge
to use IWallet
from exchange-libs
.
2019-10-05 13:57:51 -05:00
Lawrence Forman
035dc607db
@0x/contracts-asset-proxy
: Use IWallet
from exchange-libs
.
...
`@0x/contracts-asset-proxy`: Fix some comment typos in `UniswapBridge`.
`@0x/contracts-asset-proxy`: Add more allowance tests to the `UniswapBridge` tests.
2019-10-05 13:57:51 -05:00
Lawrence Forman
80cb6b654b
@0x/contracts-asset-proxy
: Fix linter errors.
2019-10-05 13:57:51 -05:00
Lawrence Forman
ab70c4df74
@0x/contracts-asset-proxy
: Remove only
modifier on tests.
2019-10-05 13:57:51 -05:00
Lawrence Forman
95e461072f
@0x/contracts-asset-proxy
: Always set allowance.
2019-10-05 13:57:50 -05:00
Lawrence Forman
c2261a6bbe
@0x/contracts-asset-proxy
: Finish off UniswapBridge
tests.
2019-10-05 13:57:50 -05:00
Lawrence Forman
17362bcf44
@0x/contracts-asset-proxy
: Create UniswapBridge
.
2019-10-05 13:57:50 -05:00
Lawrence Forman
4098238019
@0x/contracts-asset-proxy
: Set allowance every time.
2019-10-01 19:46:14 -07:00
Lawrence Forman
1356237ec9
@0x/contracts-asset-proxy
: Rebase and use IERC20Bridge
2019-10-01 19:46:14 -07:00
Lawrence Forman
35daecd5ae
@0x/contracts-asset-proxy
: Rebase and use @0x/types.AssetProxyId
.
2019-10-01 19:46:14 -07:00
Lawrence Forman
bb87c8e7b5
@0x/contracts-asset-proxy
: Switch Eth2DaiBridge to support arbitrary tokens.
...
`@0x/contracts-asset-proxy`: Support non-conformant tokens in Eth2DaiBridge
2019-10-01 19:46:14 -07:00
Lawrence Forman
48f7a24505
@0x/contracts-asset-proxy
: Rebase and update tests for new proxy selector.
2019-10-01 19:46:14 -07:00
Lawrence Forman
29bcc1b5b7
@0x/contracts-asset-proxy
: omg these insidious only
modifiers.
2019-10-01 19:46:14 -07:00
Lawrence Forman
6e4186adbe
@0x/contracts-asset-proxy
: Add some more unit tests for Eth2DaiBridge
.
2019-10-01 19:46:14 -07:00
Lawrence Forman
38e540ad9f
@0x/contracts-asset-proxy
: Remove only
modifier on tests.
2019-10-01 19:46:14 -07:00
Lawrence Forman
7762b7b665
@0x/contracts-asset-proxy
: Add signature validation.
2019-10-01 19:46:14 -07:00
Lawrence Forman
82ac8e29e3
@0x/contracts-asset-proxy
: Add Eth2DaiBridge
and tests.
2019-10-01 19:46:14 -07:00
Lawrence Forman
579dba1473
@0x/contracts-asset-proxy
: Minor ERC20BridgeProxy
test changes.
2019-09-30 17:06:31 -07:00
Lawrence Forman
8006e4fe3b
@0x/contracts-asset-proxy
: Change proxy ID and add proxy signature to IAssetData
.
2019-09-29 21:53:42 -04:00
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