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

[DO NOT MERGE] Epoch manager WIP #11189

Merged
merged 75 commits into from
Sep 25, 2024

Commits on Aug 15, 2024

  1. first compiling draft

    no working test.
    
    Co-authored-by: Martín Volpe <[email protected]>
    soloseng and martinvol committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    5f7e5d1 View commit details
    Browse the repository at this point in the history

Commits on Aug 16, 2024

  1. Configuration menu
    Copy the full SHA
    4084bac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f3fed48 View commit details
    Browse the repository at this point in the history
  3. First few tests

    pahor167 committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    0b473c2 View commit details
    Browse the repository at this point in the history
  4. test fix

    pahor167 committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    b012f29 View commit details
    Browse the repository at this point in the history
  5. uisng registry instead

    soloseng committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    3a4f87a View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    ad8831d View commit details
    Browse the repository at this point in the history
  7. typo

    soloseng committed Aug 16, 2024
    Configuration menu
    Copy the full SHA
    5fa905d View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2024

  1. ++ mock contracts in 0.8

    soloseng committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    b3023c2 View commit details
    Browse the repository at this point in the history
  2. ++ passing test using mock

    soloseng committed Aug 17, 2024
    Configuration menu
    Copy the full SHA
    9681185 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. Removal of using precompiles

    pahor167 committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    18ba704 View commit details
    Browse the repository at this point in the history
  2. ScoreManager refactor

    pahor167 committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    8d862d1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    70b12a5 View commit details
    Browse the repository at this point in the history
  4. isReadyToStartEpoch fix

    pahor167 committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    0c74a5e View commit details
    Browse the repository at this point in the history
  5. startNextEpochProcess fixes

    pahor167 committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    7379aff View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    7205bb7 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b89cc74 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    758d097 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d7b32fb View commit details
    Browse the repository at this point in the history
  10. ScoreManager update

    pahor167 committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    a66e578 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    de3ae19 View commit details
    Browse the repository at this point in the history
  12. extra checks

    pahor167 committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    8e86672 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    0fae892 View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    0e55b36 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    973c21e View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    315aaee View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    efebfb7 View commit details
    Browse the repository at this point in the history
  18. merge fix

    pahor167 committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    4c9ee98 View commit details
    Browse the repository at this point in the history
  19. Added target for the CI

    martinvol committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    c6fd893 View commit details
    Browse the repository at this point in the history
  20. Merge branch 'feat/epoch-manager' of github.com:celo-org/celo-monorep…

    …o into feat/epoch-manager
    martinvol committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    04af0f7 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    29aadbb View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    41fe5e6 View commit details
    Browse the repository at this point in the history
  23. Allow Validator registration in L2 without BLS key (#11181)

    * Allow validator registration in L2 without BLS key
    
    * Reallow ECDSA key change in L2
    
    ---------
    
    Co-authored-by: Martín Volpe <[email protected]>
    m-chrzan and martinvol authored Aug 19, 2024
    Configuration menu
    Copy the full SHA
    05dcde2 View commit details
    Browse the repository at this point in the history
  24. Fix CI

    martinvol committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    ce59f2e View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    01a3098 View commit details
    Browse the repository at this point in the history

Commits on Aug 20, 2024

  1. Build fix

    pahor167 committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    f7454fc View commit details
    Browse the repository at this point in the history
  2. lint

    pahor167 committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    ff4fb8f View commit details
    Browse the repository at this point in the history
  3. prettify

    pahor167 committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    55d462a View commit details
    Browse the repository at this point in the history
  4. prettify 2

    pahor167 committed Aug 20, 2024
    Configuration menu
    Copy the full SHA
    a2522a2 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    dc9ece5 View commit details
    Browse the repository at this point in the history

Commits on Aug 21, 2024

  1. Configuration menu
    Copy the full SHA
    85303f9 View commit details
    Browse the repository at this point in the history

Commits on Aug 23, 2024

  1. add EpochManager to abis

    pahor167 committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    7979ffb View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    f7cb22c View commit details
    Browse the repository at this point in the history
  3. force deploy abis

    pahor167 committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    9403236 View commit details
    Browse the repository at this point in the history
  4. build fix

    pahor167 committed Aug 23, 2024
    Configuration menu
    Copy the full SHA
    b63e487 View commit details
    Browse the repository at this point in the history

Commits on Aug 26, 2024

  1. Move Validators.sol to 0.8 (#11192)

    * WIP
    
    * Validator test WIP, forge doesn't compile yet
    
    * buildable
    
    * most of the foundry tests working
    
    * Validator related tests fixed
    
    * truffle build working
    
    * cache bump
    
    * lint + prettify+ migrations
    
    * Enable optimization for Solidity 0.8
    
    * prettify
    
    * Ci bump
    
    * CI bump 2
    
    * Validators to 0.8 config
    
    * CI bump
    
    * foundry fix
    
    * Truffle migrations are partly fixed
    
    * Added import for ValidatorsMock08 in EpochManager.t.sol, I think it was removed by mistake
    
    * Added yarn.lock
    
    * Changes to mock with full implementation
    
    * Attempt to fix linking libraries not working with deployCodeTo foundry-rs/foundry#4049
    
    * truffle migrations fixed
    
    * CI bump
    
    * lint
    
    * forge test fixes
    
    * artifacts test fix
    
    * lint
    
    * update of foundry version
    
    * add ProxyFactory import to tests
    
    * library linking fix
    
    * Foundry migrations fix
    
    * migration tests fix
    
    * CI bump
    
    * Little cleanup + retrigger CI
    
    * forgot to commit Validators.sol
    
    * Fixed the ABI encoded
    
    * lint
    
    * Fix contract versions
    
    * add Adapter to ignored contracts
    
    * revert of ReentrancyGuard change
    
    * lint fix
    
    * remove adapters from check
    
    * storage layout fix
    
    ---------
    
    Co-authored-by: pahor167 <[email protected]>
    martinvol and pahor167 authored Aug 26, 2024
    Configuration menu
    Copy the full SHA
    96eb887 View commit details
    Browse the repository at this point in the history
  2. force release of canary abi

    pahor167 committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    62bfb44 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    7e5e8ea View commit details
    Browse the repository at this point in the history
  4. force new canary version

    pahor167 committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    40e692b View commit details
    Browse the repository at this point in the history
  5. npm tag revert

    pahor167 committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    a536b5f View commit details
    Browse the repository at this point in the history
  6. Soloseng/update-l2-getepochnumber-logic (#11195)

    * disable getEpochSize on L2
    
    * update registry
    
    * update relevant interfaces
    
    * update contracts with L2 `getEpochNumber()` logic
    
    * update tests with L2 `getEpochNumber()` logic
    
    * ++ TODO
    
    * moved constants to constants file
    
    * updated allocated supply function to handle L1 & L2 cases
    
    * made `epochManager.currenEpochNumber()` private, to avoid returning 0 when not initialized.
    
    * PR feedback
    
    * Passing validators test using mockEpochManager for L2 tests
    
    * clean up
    
    * fixed other failing tests
    
    * using mockEpochManager instead of interface.
    
    Fixed failing tests.
    
    * happy linter
    
    * revert npm tag ∆
    soloseng authored Aug 26, 2024
    Configuration menu
    Copy the full SHA
    2c49e64 View commit details
    Browse the repository at this point in the history
  7. ++ TODO and comment

    soloseng committed Aug 26, 2024
    Configuration menu
    Copy the full SHA
    4e1cf6a View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. add score manager to abis

    pahor167 committed Aug 27, 2024
    Configuration menu
    Copy the full SHA
    2eab03f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    49a49ed View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Split initEpochManager Function (#11199)

    * ++ contract function
    
    * ++ comment
    soloseng authored Sep 11, 2024
    Configuration menu
    Copy the full SHA
    4cbc6d9 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. startNextEpochProcess unit & integration test (#11191)

    * unit test with mocks
    
    * ++ integration tests
    
    * clean up
    
    * -- logging
    
    * removed duplicate interface
    
    * using `MockCeloToken` to get test to pass.
    
    Fails when it hits a precompile in `EpochRewards.sol`
    
    * removed endEpochTimestamp
    
    * moved IEpochManager to 0.5 folder
    
    * added L2 conditions for EpochRewards functions using precompiles
    
    Still missing tests
    
    * renamed EpochManagerInitializer due to name conflict
    
    * ++ more unit test
    
    * setup anvil migration
    fix name conflict
    
    * compiles
    
    * ++ require fund in unreleased treasury
    
    * Updated regex
    
    * ++ registry 0.8 for testing only
    
    * clean up
    
    * ++ unit test
    
    * initial integration test using L1 devchain
    
    * ++ comment
    
    * -- forge based integration test
    
    * ++ to const
    
    * happy linter
    
    * update contract name
    
    * ++ PR feedback
    
    * ++ checks
    
    * updated carbon address
    
    * proxy stableToken mint call via Validators contract
    
    * -- duplicate imports
    
    * removed registry08. replaced with vm call
    
    * PR feedback
    
    * -- coment
    
    * passing unit tests
    
    * clean up
    
    * ++ mintStable test
    
    * -- TODO; compiles test when filtering
    
    * PR feedback
    
    * updated migration script to add more validators
    
    * passing integration test
    
    * removed test for zero amount
    
    * yarn build fix
    
    * clean up comments && TODO
    
    * revert change as out of scope
    soloseng authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    080b430 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5dc389f View commit details
    Browse the repository at this point in the history
  3. Soloseng/dynamically-fetch-epochmanagerenabler-address (#11207)

    * dynamically fetch epochManagerEnabler && carbonOffsettingPartner
    
    ++ to registry
    
    * PR feedback
    
    * removed onlyL1 modifier in setter functions
    
    * updated unit test to reflect changes
    
    * fixing tests
    
    * fix test
    
    * fixed migration data
    
    * fixed migration script error
    
    * removed unused modifier
    
    * removed duplicate or unused code
    soloseng authored Sep 17, 2024
    Configuration menu
    Copy the full SHA
    f4b4564 View commit details
    Browse the repository at this point in the history

Commits on Sep 18, 2024

  1. Configuration menu
    Copy the full SHA
    59ea380 View commit details
    Browse the repository at this point in the history
  2. EpochManager fixes (#11208)

    * truffle build fix
    
    * build fix
    
    * PR comments
    
    * prettify
    
    * rename of registerValidator overload
    
    * bug fix
    
    * extensing epochManager e2e test
    
    * yarn lint
    pahor167 authored Sep 18, 2024
    Configuration menu
    Copy the full SHA
    cfe3b30 View commit details
    Browse the repository at this point in the history
  3. Reset pending payment to 0 after sending (#11209)

    Reset pending payment to 0 when sending
    m-chrzan authored Sep 18, 2024
    Configuration menu
    Copy the full SHA
    7fe7a29 View commit details
    Browse the repository at this point in the history
  4. Deleted duplicated import

    martinvol authored Sep 18, 2024
    Configuration menu
    Copy the full SHA
    d2fd5c4 View commit details
    Browse the repository at this point in the history

Commits on Sep 20, 2024

  1. Configuration menu
    Copy the full SHA
    df84c5d View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c85d594 View commit details
    Browse the repository at this point in the history
  3. Epoch manager enabler tests (#11213)

    * ++ basic test
    
    * -- celoToken balance check
    
    * cleanup comments
    
    * use celoToken instead of native token for `initializeSystem` balance check
    
    * ++ more test
    
    * removed additional epochs
    soloseng authored Sep 20, 2024
    Configuration menu
    Copy the full SHA
    032f543 View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Configuration menu
    Copy the full SHA
    91baa1b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    acd1f86 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    a35fdba View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    02454f4 View commit details
    Browse the repository at this point in the history
  5. Rename CeloUnreleasedTreasure to CeloUnreleasedTreasury (#11220)

    * updated `CeloUnrealeasedTreasure` to `CeloUnreleasedTreasury`
    
    * update `CeloUnreleasedTreasury` initial balance to use defined constant
    soloseng authored Sep 23, 2024
    Configuration menu
    Copy the full SHA
    cac4a13 View commit details
    Browse the repository at this point in the history
  6. renamed file

    soloseng committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    580bd9d View commit details
    Browse the repository at this point in the history

Commits on Sep 25, 2024

  1. Update score manager behaviour (#11224)

    * Update score manager behavior
    
    * scoremanager events
    
    * Remove magic number
    
    ---------
    
    Co-authored-by: Martín Volpe <[email protected]>
    pahor167 and martinvol authored Sep 25, 2024
    Configuration menu
    Copy the full SHA
    74ca26b View commit details
    Browse the repository at this point in the history
  2. PR-feedback (#11223)

    soloseng authored Sep 25, 2024
    Configuration menu
    Copy the full SHA
    916b71d View commit details
    Browse the repository at this point in the history
  3. L1-L2-checks (#11225)

    soloseng authored Sep 25, 2024
    Configuration menu
    Copy the full SHA
    b82b51d View commit details
    Browse the repository at this point in the history
  4. Merge branch 'release/core-contracts/12' of github.com:celo-org/celo-…

    …monorepo into feat/l2-epoch-system
    martinvol committed Sep 25, 2024
    Configuration menu
    Copy the full SHA
    4e4b960 View commit details
    Browse the repository at this point in the history