Skip to content

Commit

Permalink
Merge pull request #78 from devintegral2/master
Browse files Browse the repository at this point in the history
2.0.1-rc2 beta
  • Loading branch information
devintegral3 authored Jun 25, 2020
2 parents 0f22213 + 147721e commit 8d2dcec
Show file tree
Hide file tree
Showing 15 changed files with 1,733 additions and 755 deletions.
53 changes: 36 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,40 @@ Compiling your contracts...
Contract: Staker test
✓ checking Staker parameters (221ms)
✓ checking createStake function (522ms)
✓ checking increaseStake function (287ms)
✓ checking createDelegation function (472ms)
✓ checking calcTotalReward function (349ms)
✓ checking calcValidatorReward function (328ms)
✓ checking calcDelegationReward function (277ms)
✓ checking claimDelegationRewards function (592ms)
✓ checking claimValidatorRewards function (376ms)
✓ checking prepareToWithdrawStake function (180ms)
✓ checking withdrawStake function (791ms)
✓ checking prepareToWithdrawDelegation function (246ms)
✓ checking withdrawDelegation function (616ms)
13 passing (6s)
Contract: SFC

This comment has been minimized.

Copy link
@quan8

quan8 Jun 26, 2020

Contributor

Compiling your contracts...

Compiling ./contracts/ownership/Ownable.sol
Compiling ./contracts/sfc/Migrations.sol
Compiling ./contracts/sfc/SafeMath.sol
Compiling ./contracts/sfc/Staker.sol
Compiling ./contracts/sfc/StakerConstants.sol
Compiling ./contracts/test/LegacyStaker.sol
Compiling ./contracts/test/UnitTestStakers.sol
Compiling ./contracts/upgradeability/Address.sol
Compiling ./contracts/upgradeability/BaseUpgradeabilityProxy.sol
Compiling ./contracts/upgradeability/Proxy.sol
Compiling ./contracts/upgradeability/UpgradeabilityProxy.sol
Compiling ./contracts/version/Version.sol

Contract: SFC
Delegation migration tests
gas used for sfc deploying: 4901685
✓ should auto migrate legacy deposition to new model (3614ms)
✓ should manually migrate legacy deposition to new model (468ms)
✓ should not call calcDelegationRewards while delegation is in the legacy model (698ms)

Contract: SFC
Locking stake tests
✓ should start "locked stake" feature (719ms)
✓ should calc raw ValidatorEpochReward correctly after locked up started (1953ms)
✓ should lock stake (3217ms)
✓ should lock stake with right duration (709ms)
✓ should not call prepareToWithdrawStake, until locked time is pass (656ms)
✓ should not call prepareToWithdrawStakePartial, until locked time is pass (668ms)
✓ should lock delegation (4041ms)
✓ should lock delegation with right duration (1041ms)
✓ should subtract penalty if prepareToWithdrawDelegation will call earlier than locked time is pass (1074ms)
✓ should subtract penalty if prepareToWithdrawDelegationPartial will call earlier than locked time is pass (1072ms)

Contract: SFC
Methods tests
✓ checking Staker parameters (239ms)
✓ checking createStake function (801ms)
✓ checking increaseStake function (405ms)
✓ checking createDelegation function (698ms)
✓ checking createDelegation function to several stakers (787ms)
✓ checking calcRawValidatorEpochReward function (497ms)
✓ checking epoch snapshot logic (223ms)
✓ checking calcValidatorEpochReward function (735ms)
✓ checking calcDelegationEpochReward function (669ms)
✓ checking claimDelegationRewards function (949ms)
✓ checking bonded ratio (161ms)
✓ checking claimValidatorRewards function (575ms)
✓ checking prepareToWithdrawStake function (301ms)
✓ checking withdrawStake function (1336ms)
✓ checking prepareToWithdrawDelegation function (467ms)
✓ checking withdrawDelegation function (2196ms)

29 passing (37s)

Delegation migration tests
gas used for sfc deploying: 4915131
✓ should auto migrate legacy deposition to new model (1699ms)
✓ should manually migrate legacy deposition to new model (272ms)
✓ should not call calcDelegationRewards while delegation is in the legacy model (404ms)
Contract: SFC
Methods tests
✓ checking Staker parameters (127ms)
✓ checking createStake function (521ms)
✓ checking increaseStake function (316ms)
✓ checking createDelegation function (473ms)
✓ checking createDelegation function to several stakers (581ms)
✓ checking calcRawValidatorEpochReward function (385ms)
✓ checking epoch snapshot logic (148ms)
✓ checking calcValidatorEpochReward function (484ms)
✓ checking calcDelegationEpochReward function (462ms)
✓ checking claimDelegationRewards function (703ms)
✓ checking bonded ratio (107ms)
✓ checking claimValidatorRewards function (419ms)
✓ checking prepareToWithdrawStake function (272ms)
✓ checking withdrawStake function (903ms)
✓ checking prepareToWithdrawDelegation function (364ms)
✓ checking withdrawDelegation function (1498ms)
Locked stake tests
✓ should start "locked stake" feature (352ms)
✓ should calc raw ValidatorEpochReward correctly after locked up started (980ms)
✓ should lock stake (2200ms)
✓ should lock stake with right duration (505ms)
✓ should not call prepareToWithdrawStake, until locked time is pass (441ms)
✓ should not call prepareToWithdrawStakePartial, until locked time is pass (447ms)
25 passing (18s)
```
Loading

0 comments on commit 8d2dcec

Please # to comment.