Lawrence Forman
3e8f9a6b53
Cherry-pick changes from feat/dev-utils/dydx-bridge-validation
2020-02-07 22:10:10 -05:00
Michael Zhu
1d023e6db5
Add optional parameter to sample and sampleSize
2019-12-18 11:38:33 -08:00
Michael Zhu
8ecbde8e1e
Chagne StoredBalance functions to not mutate in place
2019-12-12 15:21:42 -08:00
Michael Zhu
49538f272e
address comments
2019-12-11 16:54:48 -08:00
Michael Zhu
2f9891f0aa
fix CI failures
2019-12-10 00:32:48 -08:00
Michael Zhu
865a2b1fb0
add/update comments
2019-12-09 23:45:38 -08:00
Michael Zhu
6754cd48e2
refactor + fix lint
2019-12-09 23:45:38 -08:00
Michael Zhu
4663eec950
Add function assertions required for staking rewards fuzzing: withdrawDelegatorRewards, finalizePool, and endEpoch. Also adds payProtocolFee-related assertions to fillOrder
2019-12-09 23:45:37 -08:00
Michael Zhu
fff3c1eb36
update pool membership simulation to use multiple makers and takers, partial fills
2019-12-09 23:43:16 -08:00
Jacob Evans
ad8caa2b51
Remove moved RevertErrors
2019-11-27 11:52:14 +11:00
fabioberger
443c3c2802
Add missing export from stakiong
2019-11-19 00:02:43 +01:00
fabioberger
adaf304b4e
Add missing staking exports
2019-11-18 22:44:48 +01:00
fabioberger
e1ea65525f
Add doc generation to several more packages and fix up their index.ts files so all public interface types are exported
2019-11-18 10:29:25 +00:00
F. Eugene Aumson
f11d8a5bd8
@0x/order-utils refactors for v3: orderParsingUtils, signatureUtils, orderHashUtils, RevertErrors, transactionHashUtils ( #2321 )
...
* move orderParsingUtils from order-utils to connect
* Remove many functions from signatureUtils
Removed from the exported object, that is. All of them are used in
other existing code, so they were all moved to be as local to their
usage as possible.
* remove orderHashUtils.isValidOrderHash()
* Move all *RevertErrors from order-utils...
...into their respective @0x/contracts- packages.
* Refactor @0x/order-utils' orderHashUtils away
- Move existing routines into @0x/contracts-test-utils
- Migrate non-contract-test callers to a newly-exposed getOrderHash()
method in DevUtils.
* Move all *RevertErrors from @0x/utils...
...into their respective @0x/contracts- packages.
* rm transactionHashUtils.isValidTransactionHash()
* DevUtils.sol: Fail yarn test if too big to deploy
* Refactor @0x/order-utils transactionHashUtils away
- Move existing routines into @0x/contracts-test-utils
- Migrate non-contract-test callers to a newly-exposed
getTransactionHash() method in DevUtils.
* Consolidate `Removed export...` CHANGELOG entries
* Rm EthBalanceChecker from devutils wrapper exports
* Stop importing from '.' or '.../src'
* fix builds
* fix prettier; dangling promise
* increase max bundle size
2019-11-14 17:14:24 -05:00
Michael Zhu
4f10d7f859
post-rebase woes
2019-11-12 13:10:34 -08:00
Michael Zhu
1f5a0987cb
static tests, my nemesis
2019-11-12 12:05:39 -08:00
Michael Zhu
f33a9d162a
moveStake assertion; use SimulationEnvironment to track global stake and staking pools
2019-11-12 12:05:38 -08:00
fabioberger
6324a92ec5
Refactor contracts-* exports so none in test dir so npmignore works as intended
2019-11-11 21:49:29 +00:00
fabioberger
e07f7b54e0
Stop using directory level exports
2019-11-11 19:50:13 +00:00
fabioberger
86b76a3e75
Introduce publicFacingContracts config in all package.jsons, refactor all imports from src in contracts packages
2019-11-11 15:10:15 +00:00
Greg Hysen
a7f0717afb
Unit tests for MixinCumulativeRewards
2019-11-05 15:32:04 -08:00
Greg Hysen
c123200f38
Unit tests for MixinScheduler
2019-11-04 15:44:46 -08:00
Lawrence Forman
8c4c3d56c6
@0x/contracts-staking
: Create MixinStakingPoolRewards
unit tests.
2019-11-04 10:43:37 -05:00
Greg Hysen
7bfbf0ad3a
Staking Proxy unit tests + Staking Proxy fallback reverts if no staking contract is attached
2019-10-31 18:22:49 -07:00
Michael Zhu
7aa88307f6
Flesh out fillOrder integration tests
2019-10-31 15:27:39 -07:00
Lawrence Forman
6f2e79208a
@0x/contracts-staking
: Add MixinStakeBalances
unit tests.
2019-10-29 07:37:06 -04:00
Greg Hysen
9c181f09ba
Removed LibProxy and inlined proxy call in StakingProxy.
2019-10-28 16:42:52 -07:00
Amir Bandeali
33a0c22021
Remove tests related to read-only mode
2019-10-27 11:12:22 -07:00
Lawrence Forman
b1b1162b60
@0x/contracts-staking
: Add MixinStakingPool
unit tests.
2019-10-25 10:55:03 -04:00
Greg Hysen
8e8ea6a3ab
Created IZrxVaultBackstop and updated IStaking.
2019-10-24 15:58:51 -07:00
Lawrence Forman
703e890918
@0x/contracts-staking
: Call StakingProxy.assertValidStorageParams()
in MixinParams.setParams()
2019-10-23 04:40:47 -04:00
Lawrence Forman
b793a31cdd
@0x/contracts-staking
: Create MixinStake
unit tests.
2019-10-16 22:53:36 +10:00
Amir Bandeali
9e41c648dc
Add backstop tests
2019-10-09 17:27:37 +09:00
Alex Towle
3c6957095d
@0x:contracts-integrations
Addressed review feedback
2019-10-04 15:42:36 -07:00
Michael Zhu
6cfc17de35
MixinStakeStorage unit tests
2019-09-27 13:01:20 -07:00
Alex Towle
b178d025b5
@0x:contracts-staking
Added unit tests for MixinExchangeManager
2019-09-25 15:32:02 -07:00
Michael Zhu
dc06497cae
consolidate MixinVaultCore and ZrxVault
2019-09-24 23:04:17 -07:00
Alex Towle
b62486923f
@0x:contracts-staking
Removed storage assertions from Staking and moved them to a test contract
2019-09-24 18:12:00 -07:00
Amir Bandeali
7f1afb57b0
Consolidate MixinStakingPool, MixinStakingPoolMakers, and MixinStakingPoolModifiers
2019-09-24 13:36:54 -07:00
Amir Bandeali
639026ea66
Delete vaults and fix contract build
2019-09-23 15:29:36 -07:00
Lawrence Forman
eac4520406
@0x/contracts-staking
: Rebase against 3.0
2019-09-22 13:11:42 -04:00
Lawrence Forman
ac7f6aef9e
@0x/contracts-staking
: It compiles!
2019-09-22 12:11:47 -04:00
Lawrence Forman
d548ddac0d
@0x/contracts-staking
: Fixing tests.
2019-09-22 12:07:46 -04:00
Lawrence Forman
06b4d241af
@0x/contracts-staking
: Working on MBF v2
2019-09-22 12:07:11 -04:00
Lawrence Forman
294be37afc
@0x/contracts-staking
: Got the solidity compiling.
2019-09-22 12:06:34 -04:00
Amir Bandeali
522994262d
Update tests
2019-09-20 16:55:30 -07:00
Michael Zhu
49d223f344
MixinVaultCore unit tests
2019-09-20 16:02:54 -07:00
Lawrence Forman
7a33f68138
@0x/contracts-staking
: Extract MixinExchangeFees._cobbDouglas()
into its own library.
2019-09-20 15:56:26 -04:00
Greg Hysen
877abeda63
Removed MixinStakingPoolRewards
2019-09-17 17:37:24 -07:00
Greg Hysen
be1a70c461
refactored the staking vault
2019-09-17 17:36:46 -07:00