Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC-201/205] Staking and validator storage rework #1442

Merged
merged 27 commits into from
May 3, 2023

Commits on Apr 20, 2023

  1. Configuration menu
    Copy the full SHA
    4dd4745 View commit details
    Browse the repository at this point in the history
  2. 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
    goran-ethernal committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    5528422 View commit details
    Browse the repository at this point in the history
  3. Rebase fix

    goran-ethernal committed Apr 20, 2023
    Configuration menu
    Copy the full SHA
    a9d5796 View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2023

  1. [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ć <[email protected]>
    Co-authored-by: Igor Crevar <[email protected]>
    3 people authored Apr 21, 2023
    Configuration menu
    Copy the full SHA
    d57faa2 View commit details
    Browse the repository at this point in the history
  2. [RFC-201/205]: EVM-603-Register supernet and child chain (#1406)

    * Register child chain to StakeManager
    
    * Lint fix
    
    * Small fix
    
    * Comments fix
    goran-ethernal authored Apr 21, 2023
    Configuration menu
    Copy the full SHA
    560e1f0 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2023

  1. [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
    goran-ethernal authored Apr 24, 2023
    Configuration menu
    Copy the full SHA
    38788d8 View commit details
    Browse the repository at this point in the history
  2. [RFC-201/205]: EVM-608-Supernet command (#1409)

    * Supernet command
    
    * Use GetECDSAKey in whitelist command
    
    * Validate jsonRPC address
    
    * Comments fix
    
    * Comments fix
    
    * Rebase fix
    goran-ethernal authored Apr 24, 2023
    Configuration menu
    Copy the full SHA
    8585cf5 View commit details
    Browse the repository at this point in the history
  3. [RFC201/205]: EVM-613-Change validator info command (#1421)

    * Change validator info command
    
    * Lint fix
    goran-ethernal authored Apr 24, 2023
    Configuration menu
    Copy the full SHA
    5b8b458 View commit details
    Browse the repository at this point in the history

Commits on Apr 25, 2023

  1. [RFC-201/205]: EVM-582-Validate validator set delta (#1423)

    * Validate validator set delta
    
    * Lint fix
    
    * Remove comment
    
    * Add test
    goran-ethernal authored Apr 25, 2023
    Configuration menu
    Copy the full SHA
    a36277e View commit details
    Browse the repository at this point in the history

Commits on Apr 26, 2023

  1. [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 <[email protected]>
    goran-ethernal and igorcrevar authored Apr 26, 2023
    Configuration menu
    Copy the full SHA
    1e742a8 View commit details
    Browse the repository at this point in the history

Commits on Apr 27, 2023

  1. [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
    goran-ethernal authored Apr 27, 2023
    Configuration menu
    Copy the full SHA
    1d8a63f View commit details
    Browse the repository at this point in the history

Commits on Apr 28, 2023

  1. [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 <[email protected]>
    goran-ethernal and igorcrevar authored Apr 28, 2023
    Configuration menu
    Copy the full SHA
    a27c59f View commit details
    Browse the repository at this point in the history
  2. [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
    goran-ethernal authored Apr 28, 2023
    Configuration menu
    Copy the full SHA
    0115395 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a0fa765 View commit details
    Browse the repository at this point in the history
  4. [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
    goran-ethernal authored Apr 28, 2023
    Configuration menu
    Copy the full SHA
    46f1fbf View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    f19e7d5 View commit details
    Browse the repository at this point in the history
  6. Fix KOSK signature

    goran-ethernal committed Apr 28, 2023
    Configuration menu
    Copy the full SHA
    1fa9674 View commit details
    Browse the repository at this point in the history

Commits on May 2, 2023

  1. [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 <[email protected]>
    Co-authored-by: Stefan Negovanović <[email protected]>
    
    * Update README
    
    ---------
    
    Co-authored-by: Stefan Negovanović <[email protected]>
    Co-authored-by: Goran Rojovic <[email protected]>
    3 people authored May 2, 2023
    Configuration menu
    Copy the full SHA
    f664e5b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4d68e68 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    900ad3f View commit details
    Browse the repository at this point in the history
  4. Lint fix

    goran-ethernal committed May 2, 2023
    Configuration menu
    Copy the full SHA
    7785969 View commit details
    Browse the repository at this point in the history

Commits on May 3, 2023

  1. Configuration menu
    Copy the full SHA
    414221a View commit details
    Browse the repository at this point in the history
  2. Small code cleanup

    goran-ethernal committed May 3, 2023
    Configuration menu
    Copy the full SHA
    d207743 View commit details
    Browse the repository at this point in the history
  3. Reward config fix

    goran-ethernal committed May 3, 2023
    Configuration menu
    Copy the full SHA
    0c31697 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b38fca0 View commit details
    Browse the repository at this point in the history
  5. Lint fix

    goran-ethernal committed May 3, 2023
    Configuration menu
    Copy the full SHA
    a315f23 View commit details
    Browse the repository at this point in the history
  6. New stake manager UTs

    goran-ethernal committed May 3, 2023
    Configuration menu
    Copy the full SHA
    f3e2ba5 View commit details
    Browse the repository at this point in the history