Amir Bandeali
083216a0c6
Merge pull request #2271 from 0xProject/feat/3.0/zero-ex-governor
...
Rename AssetProxyOwner to ZeroExGovernor
2019-10-19 17:05:07 -07:00
mzhu25
59a38a8db0
Merge pull request #2269 from 0xProject/refactor/balance-stores
...
BalanceStore++
2019-10-18 09:01:33 -07:00
Lawrence Forman
d0884dcb4d
Merge pull request #2267 from 0xProject/feat/3.0/staking/MixinStake-unit-tests
...
Create MixinStake unit tests
2019-10-18 11:41:18 -04:00
Lawrence Forman
c7ca625408
@0x/contracts-staking
: Fix MixinStake
unit tests typo.
2019-10-18 10:45:07 -04:00
Lawrence Forman
e46f51339a
@0x/contracts-staking
: Address review comments.
2019-10-18 10:42:47 -04:00
Michael Zhu
b45ec47eee
address comments
2019-10-17 19:53:43 -07:00
Amir Bandeali
c50cbd7a75
Rename AssetProxyOwner to ZeroExGovernor throughout all contracts packages
2019-10-17 17:41:54 -07:00
Amir Bandeali
5ddc35fdf2
Rename AssetProxyOwner to ZeroExGovernor
2019-10-17 17:41:54 -07:00
Amir Bandeali
caf6329bb3
Merge branch '3.0' into feat/3.0/testnet-migrations
2019-10-17 17:13:12 -07:00
Lawrence Forman
008938cf5b
@0x/contracts-staking
: Check order of increase and derease balance operations in MixinStake
unit tests.
2019-10-17 14:09:46 +10:00
Michael Zhu
ffac52f42e
lint
2019-10-16 20:19:04 -07:00
Michael Zhu
cde0169733
Update BlockchainBalanceStore to not rely on erc*_wrappers + better balance equality assertions
2019-10-16 18:46:55 -07:00
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
b793a31cdd
@0x/contracts-staking
: Create MixinStake
unit tests.
2019-10-16 22:53:36 +10:00
Alex Towle
523bc3f951
Updated Changelogs
2019-10-15 15:00:01 -07:00
Alex Towle
41d99e77c7
@0x:contracts-utils
Removed SafeMath and the use of the contract throughout contracts/
2019-10-15 14:31:48 -07:00
Alex Towle
90193c8197
@0x:contracts-multisig
Changed SafeMath to LibSafeMath
2019-10-15 14:31:48 -07:00
Alex Towle
6f5c62914e
@0x:contracts-multisig
Switched to SafeMath in pastTimeLock
2019-10-15 14:31:48 -07:00
Alex Towle
7283a16710
@0x:contracts-utils
Updated changelog
2019-10-14 11:57:02 -07:00
Alex Towle
52c3dc4ad8
@0x:contracts-utils
Fixed and improved the LibBytes tests
2019-10-14 11:54:02 -07:00
Alex Towle
1cf8ae5909
@0x:contracts-utils
Removed several functions from LibBytes
2019-10-14 11:54:02 -07:00
Lawrence Forman
a6603d6bd6
@0x/contracts-staking
: Fix typo in MixinCumulativeRewards
2019-10-14 15:19:34 +10:00
Lawrence Forman
54a03eacd6
@0x/contracts-staking
: Refactor MixinCumulativeRewards
and MixinStakingPoolRewards
to better encapsulate cumulative rewards.
...
`@0x/contracts-staking`: Make sure we don't overwrite an existing CR.
`@0x/contracts-staking`: Remove the need to initialize cumulative rewards when creating a pool.
`@0x/contracts-staking`: Just return an empty CR in `_getCumulativeRewardAtEpoch()` if one can't be found.
2019-10-14 12:36:26 +10:00
Amir Bandeali
9d9fe882b6
Remove unnecessary payable keywords
2019-10-14 09:58:31 +09:00
Amir Bandeali
4f6958b7b5
Do not import @0x/contracts-extensions to fix build
2019-10-14 09:46:06 +09:00
Amir Bandeali
9a5752fff9
Remove unused param in Pool struct
2019-10-14 09:45:37 +09:00
Amir Bandeali
c21932d149
Remove _creditRewardsToPool and remove return values from finalizePool
2019-10-13 17:31:55 +09:00
Amir Bandeali
ce6c05637f
Update cumulative rewards tracking tests
2019-10-13 17:31:55 +09:00
Amir Bandeali
b0699fc238
Always set cumulative rewards when _withdrawAndSyncDelegatorRewards is called
2019-10-13 17:31:55 +09:00
Amir Bandeali
8bf7c4cf48
Remove unnecessary assert
2019-10-13 17:31:55 +09:00
Lawrence Forman
9f6d113fe8
Merge pull request #2255 from 0xProject/fix/3.0-audit/staking/LibFixedMath-arithmetic-overflows
...
Fix LibFixedMath arithmetic overflows
2019-10-12 07:38:05 +09:00
James Towle
646507c41a
Merge pull request #2253 from 0xProject/fix/t8
...
Ownership Transferred Event
2019-10-10 16:58:08 -07:00
Alex Towle
65f2626544
@0x:contracts-utils
Updated the OwnershipTransferred
event to be closer to OpenZeppelin's event
2019-10-10 10:58:58 -07:00
Greg Hysen
361576814c
Removed loadSyncedBalance and loadUnsyncedBalance
2019-10-10 15:51:24 +09:00
Amir Bandeali
7e58385a78
Separate immutable contracts, only inherit as needed
2019-10-10 15:00:35 +09:00
Amir Bandeali
b5545255d0
Merge pull request #2245 from 0xProject/fix/3.0/validate-assetdata
...
Enforce assetData is padded to 32 bytes
2019-10-10 10:55:22 +09:00
Lawrence Forman
a22ba8647c
Update changelogs
2019-10-10 09:41:57 +09:00
Lawrence Forman
22fc0b4337
@0x/contracts-staking
: Add another LibFixedMath.add()
test.
2019-10-10 09:31:53 +09:00
Lawrence Forman
063d6ff24e
@0x/contracts-staking
: Add more overflow safeguards to LibFixedMath
.
2019-10-10 09:16:01 +09:00
Lawrence Forman
a42f3d189c
@0x/contracts-staking
: Implement better overflow detection in LibFixedMath
.
2019-10-10 09:16:01 +09:00
Alex Towle
7815da7257
@0x:contracts-utils
Addressed review feedback
2019-10-09 10:49:38 -07:00
Amir Bandeali
93edb083fa
Remove payable fallback from IStakingProxy, fix linting errors
2019-10-09 17:27:37 +09:00
Amir Bandeali
9e41c648dc
Add backstop tests
2019-10-09 17:27:37 +09:00
Amir Bandeali
a7ef54dbff
Implement ZrxVaultBackstop
2019-10-09 17:27:37 +09:00
Amir Bandeali
414084a7ad
Track state of read-only mode in stakingProxy
2019-10-09 17:27:37 +09:00
Amir Bandeali
681e6eab7a
Cleanup language used in comments and variable names
2019-10-09 17:15:25 +09:00
Amir Bandeali
701b203c58
Fix tests
2019-10-09 17:15:25 +09:00
Amir Bandeali
cbd0ca4b60
Make currentEpoch uint64 type, change INACTIVE => UNDELEGATED, and make global balances state a mapping from uin8 => StoredBalance
2019-10-09 17:15:25 +09:00
Amir Bandeali
1626566f93
Change getBalanceOfVault => getBalanceOfZrxVault
2019-10-09 17:15:25 +09:00
Amir Bandeali
ac75053f69
Remove unused rich revert
2019-10-09 17:15:25 +09:00