Lawrence Forman
901d400d62
Address spot check feedback ( #251 )
...
* UniswapV3 VIP (#237 )
* `@0x/contracts-zero-ex`: Add UniswapV3Feature
* `@0x/contracts-zero-ex`: Add UniswapV3 VIP
`@0x/contract-artifacts`: Regenerate.
`@0x/contract-wrappers`: Regenerate.
`@0x/asset-swapper`: Add UniswapV3 VIP support.
* address review comments and appease linter
* `@0x/contracts-zero-ex`: Add UniswapV3Feature tests
* Multiplex UniswapV3 (#241 )
* Add UniswapV3 support to Multiplex batchFill
* Add AssetSwapper support for Multiplex UniswapV3
* fix repo scripts that use PKG= env var (#242 )
Co-authored-by: Lawrence Forman <me@merklejerk.com>
* `@0x/asset-swapper`: Adjust uniswap gas overhead
Co-authored-by: Lawrence Forman <me@merklejerk.com>
Co-authored-by: mzhu25 <mchl.zhu.96@gmail.com>
* OTC orders feature (#244 )
* Add OTC orders feature contracts
* Address PR feedback
* Remove partial fills for takerSigned variant
* Add function to query the min valid nonce
* Add ETH support
* Tightly pack expiry, nonceBucket, and nonce
* Address PR feedback
* OTC orders unit tests
* Bump prettier version
* Skip unnecessary math if takerTokenFillAmount == order.takerAmount
* appease CI
* Update contract-artifacts and contract-wrappers and CHANGELOGs
* `@0x/contracts-zero-ex`: Address spot check feedback
* `regen wrappers
* prettier
* `@0x/asset-swapper`: prettier and tweak gas schedule slightly for uni3
Co-authored-by: Lawrence Forman <me@merklejerk.com>
Co-authored-by: mzhu25 <mchl.zhu.96@gmail.com>
2021-06-02 14:21:14 +10:00
Xianny
f0d7d10fe7
update abi-gen with new method interfaces ( #2325 )
...
* update abi-gen with new method interfaces
* wip: get all packages to build
* wip: get all packages to build
* Fix two contract wrapper calls
* Export necessary types part of the contract wrapper public interfaces
* Revive and fix wrapper_unit_tests
* Remove duplicate type
* Fix lib_exchange_rich_error_decoder tests
* Fix remaining test failures in contracts-* packages
* Prettier fixes
* remove transactionHelper
* lint and update changelogs
* Fix prettier
* Revert changes to reference docs
* Add back changelog already published and add revert changelog entry
* Add missing CHANGELOG entries
* Add missing comma
* Update mesh-rpc-client dep
* Update Mesh RPC logic in @0x/orderbook to v6.0.1-beta
* Align package versions
2019-11-14 11:22:29 -05:00
fabioberger
fc824b8d06
Fix prettier issues
2019-11-12 11:35:34 +00:00
fabioberger
6324a92ec5
Refactor contracts-* exports so none in test dir so npmignore works as intended
2019-11-11 21:49:29 +00:00
Greg Hysen
6617ad9531
Refactored finalization state.
...
1. Removes state variables:
- totalWeightedStakeThisEpoch
- totalFeesCollectedThisEpoch
- numActivePoolsThisEpoch
2. No longer indexes by epoch % 2
3. Renamed event StakingPoolActivated → StakingPoolEarnedRewards.
4. Renamed structs:
- ActivePool → PoolStats. This holds stats for a pool that earned rewards.
- UnfinalizedState → AggregatedStats. This aggregates stats from the former struct.
2019-10-22 11:02:25 -07:00
Amir Bandeali
a7aa7feff4
Remove getAvailableRewardsBalance public function, make wethReservedForPoolRewards public
2019-09-24 13:36:54 -07:00
Amir Bandeali
abb2b46ed3
Remove vaults from variable names and comments
2019-09-23 17:37:04 -07:00
Amir Bandeali
e9f0f4af86
Rename functions and variables for clarity
2019-09-23 16:38:22 -07:00
Amir Bandeali
5ce988957f
Fix tests
2019-09-23 15:55:28 -07:00
Amir Bandeali
62663ed6d2
Fix rewards tests
2019-09-23 15:34:12 -07:00
Amir Bandeali
ef645e601c
Fix all tests except for reward tests (skipped)
2019-09-23 15:30:55 -07:00
Lawrence Forman
3883297991
@0x/contracts-staking
: Remove getTotalBalance()
function.
...
`@0x/contracts-staking`: Fix linter errors.
2019-09-23 14:21:18 -04:00
Lawrence Forman
3ad7728a0e
@0x/contracts-staking
: Remove IStructs.CumulativeRewardInfo
, etc.
...
`@0x/contracts-staking`: Convert all rewards to WETH.
`@0x/contracts-staking`: Style changes.
`@0x/contracts-staking`: Address misc. review comments.
`@0x/contracts-staking`: Make `LibFractions` scaling a separate step.
2019-09-22 12:17:05 -04:00
Lawrence Forman
86106713dd
@0x/contracts-staking
: Gag! All tests passing?
2019-09-22 12:13:24 -04:00
Lawrence Forman
b43fa88606
@0x/contracts-staking
: All tests but rewards_test
working.
2019-09-22 12:13:24 -04:00
Lawrence Forman
993f05d5ac
@0x/contracts-staking
: Fixing tests.
2019-09-22 12:11:47 -04:00
Lawrence Forman
a43b494302
@0x/contracts-staking
: All tests passing!
2019-09-22 12:11:06 -04:00
Lawrence Forman
7ef3c12722
@0x/contracts-staking
: Well, it almost worked.
2019-09-22 12:10:41 -04:00
Lawrence Forman
d548ddac0d
@0x/contracts-staking
: Fixing tests.
2019-09-22 12:07:46 -04:00
Greg Hysen
be1a70c461
refactored the staking vault
2019-09-17 17:36:46 -07:00
Amir Bandeali
9b2672841d
Fix build and tests
2019-09-17 15:51:46 -07:00
Amir Bandeali
fd4141e1f3
Fix build
2019-09-16 22:50:11 -07:00
Michael Zhu
6d83b2676e
rip staking_wrapper.ts, use wrapped staking proxy pattern instead
2019-09-09 15:47:15 -07:00
Greg Hysen
49baafadc1
updated changelogs
2019-09-05 12:37:54 -07:00
Greg Hysen
5ac4c72f1a
current -> currentEpochBalance and next -> nextEpochBalance
2019-09-05 12:27:43 -07:00
Greg Hysen
4bc84cd526
Rich reverts in tests plus readability
2019-09-05 12:27:43 -07:00
Greg Hysen
293c428186
Tests for new staking mechanics
2019-09-05 12:27:43 -07:00