-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #78 from devintegral2/master
2.0.1-rc2 beta
- Loading branch information
Showing
15 changed files
with
1,733 additions
and
755 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Compiling your contracts...
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)