Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RFC-201/205] Staking and validator storage rework (#1442)
* Use rework branch on core-contracts * EVM-578: Deploy new contracts for staking and supernets (#1368) * Deploy root contracts * New child contracts deployment * Lint fix * nil reference exception fix * Comments fix * Rebase fix * [RFC-201/205]: EVM-596-Change whitelist and register commands (#1404) * Change whitelist and register commands * Build fix * Lint fix * Include submodule fix * Remove leftover const * Minor change * Minor updates * Check error before checking doesMatch flag * Add private key flag to whitelist command * two new GetXYZFromSecret methods * Change whitelist command for secrets * Lint fix --------- Co-authored-by: Stefan Negovanović <stefan@ethernal.tech> Co-authored-by: Igor Crevar <crewce@gmail.com> * [RFC-201/205]: EVM-603-Register supernet and child chain (#1406) * Register child chain to StakeManager * Lint fix * Small fix * Comments fix * [RFC-201/205]: EVM-606-Change stake command (#1408) * Change stake command * Build fix * Bring commands back to polybft command * Validate jsonRPC address * Comments fix * Build fix * Lint fix * [RFC-201/205]: EVM-608-Supernet command (#1409) * Supernet command * Use GetECDSAKey in whitelist command * Validate jsonRPC address * Comments fix * Comments fix * Rebase fix * [RFC201/205]: EVM-613-Change validator info command (#1421) * Change validator info command * Lint fix * [RFC-201/205]: EVM-582-Validate validator set delta (#1423) * Validate validator set delta * Lint fix * Remove comment * Add test * [RFC-201/205]: EVM-580-Update validator set in stake manager (#1431) * Initial changes * Lint fix * Comments fix * Comments fix * Remove comment * Comments fix * Improve sorted map * Comments fix * Lint fix * Add comments in code * Comments fix * New UT * Lint fix * Call stakeManager in consensus runtime * Testing deterministic behavior of sort by stake * simple changes * even simplier things * different stakeMap and some refactoring * lower number of execution times for test * fix --------- Co-authored-by: Igor Crevar <crewce@gmail.com> * [RFC-201/205]: EVM-619-Commit-epoch-on-new-ValidatorSet-contract (#1436) * Initial changes * Change withdraw command * Unstake command change * Remove ChildValidatorSet * Deploy MockRewardContract * Deploy contract fix * Lint fix * Fix sc_integration_test * Separate unstake and withdraw * Comments fix * [RFC-201/205]: EVM-622-Save full validator set in db (#1445) * Save full validator set in db * Lint fix * Fix * Test fix * validatorStakeMap refactor * lint fix --------- Co-authored-by: Igor Crevar <crewce@gmail.com> * [RFC-201/205]: EVM-579-Change deployment steps in e2e tests (#1446) * Add whitelist and register validator steps to e2e tests * Initial staking on genesis * Finalize genesis set on supernet manager * Parallelize register and stake commands * Lint fix * Small optimization * Comments fix * Return negative case MakeKOSKSignature test * Lint fix * [RFC-201/205]: Reward token configuration (#1453) * New init of contracts * Reward token configuration * Rebase fix * Lint fix * Validate wallet amount in genesis * Comments fix * Comments fix * Comments fix * Return chainId in KOSK signature * Fix KOSK signature * [RFC-201/205] E2E test fixing (#1452) * WithoutBridge * fix fund command test * Remove WithBridge invocation * Rename error message * Rename to initializeNew (unblock whitelist) * kosk refactor * Kosk key fix * Lint fix * Kosk signature print * Remove chainID from register command * Remove leftovers and lint fixes * Remove chain-id flag from register validator command * Remove feat-polybft-release for core-contracts submodule * Remove delegation e2e test * GetValidatorInfo refactor * Remove comments * Latest SC spec * Leftover and comment * Fix Test_MakeKOSKSignature * Fix GetValidatorInfo, partially fix stake function * RewardPool updates * Withdraw child and withdraw root functions, obsolete e2e test with delegate * Increase timeout to 1.5h * Lint fix * Register and white list validators * Fix typo * ChangeVotingPower test fix * Lint fix * Fund per validator * Unstake test fix * amount should be big.Int * Update SCs and lint fix * Fix TestE2E_Consensus_MintableERC20NativeToken * Fix TestE2E_Consensus_Validator_Unstake * Unstake test fix * Fix RegisterValidator test * Lint fix * ChangeVotingPower test modification * TestIntegration_CommitEpoch fix * Fix TestE2E_Bridge_ChangeVotingPower * Minor fixes * Fix TestE2E_Bridge_ChangeVotingPower (part 2) * Update smart contracts * Remove commented code * RFC-201-205 Stake manager db fix (#1457) * stake manager db fix * bls key * Fix with Data field error on logs * Fix timeout * Fix test timeout * Copy data array * Remove log copying from bindings generator * Wait for epoch ending block in ChangeVotingPower e2e test * Persist initial validator set as epoch id 0 --------- Co-authored-by: Goran Rojovic <goran.rojovic@ethernal.tech> Co-authored-by: Stefan Negovanović <stefan@ethernal.tech> * Update README --------- Co-authored-by: Stefan Negovanović <stefan@ethernal.tech> Co-authored-by: Goran Rojovic <goran.rojovic@ethernal.tech> * Update stake in genesis based on finalized stake on StakeManager * Lint fix * Remove init function from consensus_test.go * Small code cleanup * Reward config fix * E2E test for custom reward token * Lint fix * New stake manager UTs --------- Co-authored-by: Stefan Negovanović <stefan@ethernal.tech> Co-authored-by: Igor Crevar <crewce@gmail.com> Co-authored-by: Stefan Negovanović <93934272+Stefan-Ethernal@users.noreply.github.com>
- Loading branch information