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] Release 11 vs 12 - just to know how much has changed #11035

Draft
wants to merge 115 commits into
base: release/core-contracts/11
Choose a base branch
from

Conversation

pahor167
Copy link
Contributor

Description

A few sentences describing the overall effects and goals of the pull request's commits.
What is the current behavior, and what is the updated/expected behavior with this PR?

Other changes

Describe any minor or "drive-by" changes here.

Tested

An explanation of how the changes were tested or an explanation as to why they don't need to be.

Related issues

  • Fixes #[issue number here]

Backwards compatibility

Brief explanation of why these changes are/are not backwards compatible.

Documentation

The set of community facing docs that have been added/modified because of this change

jcortejoso and others added 30 commits January 29, 2024 11:31
* Remove references to packages deleted

* Remove circleci dockerfiles and workflow

* Delete reference to patches folder
* fix & cleanup

* fixed resolved field in lock file
* fixed gold token actors

* ++ doubleSigningSlasher test

* ∆ conflicting function name

* set epochSize manually
* adding ignore files for docker files and github

* update to use new workflow with security restrictions on container builds

* updating 2.0 to 2.1 workflow
* adding ignore files for docker files and github

* update to use new workflow with security restrictions on container builds

* updating 2.0 to 2.1 workflow

* fixing container versions
)

* docs(SECURITY): deletes `SECURITY.md` to inherit the default file

Maintained in https://github.com/celo-org/.github/blob/main/SECURITY.md

---------

Co-authored-by: arthurgousset <[email protected]>
* upgrade celo deps from dt repo

* remove exchange env test. the Contract is defunkt and mento owns the replacement. no need for a test here

* exchange no longer exists so we dont need to freeze or thaw it
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Fee Handler Foundry

* adds some tests, getting node-gyp errors so can't test

* saving progress

* saving progress

* fix compiler errors

* fix up through distribute test

* saving progress

* saving progress

* fixes a couple tests

* removes TODO

* get rid of last TODO

* add README

* deletes old tests

* fix build

* address README feedback

* addresses some feedback

* follow revert naming convention

* clarify distribute when balance is zero

* add event tests

* Update packages/protocol/test-sol/common/FeeHandler.t.sol

Co-authored-by: soloseng <[email protected]>

---------

Co-authored-by: pahor167 <[email protected]>
Co-authored-by: soloseng <[email protected]>
* fix: update USDCUSD config

* chore: update docker image version

Co-authored-by: Nelson Taveras <[email protected]>

---------

Co-authored-by: Nelson Taveras <[email protected]>
Co-authored-by: Nelson Taveras <[email protected]>
* Load test refactor. Included ordinals loadtest case

* Trigger container build

* Using maxFeePerGas and maxPriorityFeePerGas for ordinals txs

* Fix gas config

* Fix linter

* Prepare load-test small improvements
* Election up till activate

* ElectionValidatorSigners mostly done

* ElectionValidatorSigners done

* Last test batch missing

* All tests are working

* removal of election ts tests

* compilation CI fix

* utils added

* constants added

* minor refactor

* Update packages/protocol/test-sol/voting/Election.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/voting/Election.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/voting/Election.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/voting/Election.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/voting/Election.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/voting/Election.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/voting/Election.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/voting/Election.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/voting/Election.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/voting/Election.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/voting/Election.t.sol

Co-authored-by: soloseng <[email protected]>

* buildable

* PR comments 2

* Missing tests added

* Split of the tests

---------

Co-authored-by: soloseng <[email protected]>
* test init

* deployed successful with correct owner

* passing initialize test using a tunnel

* passing setMembershipHistoryLength tests

* ++ more test

* enable skip

* ++ constants; more tests; cleanup

* ++ address to pubkey helper

* stuck on invalid blspop during registration

* Pinned submodule to specific tag/commit

* ++ more tests

* ++ tests

* reworked layout + test

* ++ affiliate tests

* ++ deaffiliate

* remove submodule

* re add submodule

* removed secp256k1 submodule

* adding the library directly to repo, as foundry does not build it otherwise

* ++ dev note

* updated yarn

* update contract name

* ++ updateEcdsaPublicKey; updatePublicKeys

* format

* ++ registerValidatorGroup

* yarn install

* ++deregisterValidatorGroup tests

* cleanup

* ++ add members tests

* comment

* ++ removeMember test

* cleanup

* ++ reorder tests

* ++ SetNextCommissionUpdate tests

* ++ updateCommission tests

* ++ calculateEpochScore tests

* ++ calculateGroupEpochScore tests

* ++ updateValidatorScoreFromSigner tests

* clean up

* ++ updateMembershipHistory tests

* ++ getMembershipInLastEpoch tests

* ++ getEpochSize test

* ++ getAccountLockedGoldRequirement tests

* ++ passing test

* ++ distributeEpochPaymentsFromSigner tests ;
++ forceDeaffiliateIfValidator tests

* ++ groupMembershipInEpoch tests

* ++ all other tests

* revert debug chages to contract

* cleanup

* Updated `celo-foundry` git module to point to `v0.5.13` branch

* ++ suggestions

* updated test name format

* PR feedback

* fixed redundant code
* Batched pending withdrawals

* Update packages/protocol/test-sol/governance/voting/LockedGold.t.sol

Co-authored-by: soloseng <[email protected]>

* PR comments

---------

Co-authored-by: soloseng <[email protected]>
* wip

* WIP: Failing last test

* removed shadowed var

* using foundry invariant on pragma ^0.8.0

* working invariant tests

* code cleanup

* delete js test

* added most test for 0.5.13 pragma version as well

* following naming convention

* re-org files to avoid migration conflict

* restricted version to 0.8.0 or above

* ++ vs code settings ∆

* PR feedback
* Some tests

* addressToPublicKey tests

* Authorization tests yet missing

* All tests

* Move of ReleaseGold.t.sol

* removal of truffle test

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/governance/voting/ReleaseGold.t.sol

Co-authored-by: soloseng <[email protected]>

* build fix

* PR comments

* PR comments 2

* Removal of secp reference

* Removal of CI step

---------

Co-authored-by: soloseng <[email protected]>
It will be moved to the developer tooling repo as its more used there than here.

The one function that is used here has been lined in the place its used.
* Remove codecov status badge

* Remove deprecated codecov integration
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Victoria <[email protected]>
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Victoria <[email protected]>
…hanging workflow (#10636)

Update celo-blockchain version in test, and trigger tests when changing workflow file
* deleted comment

* Revert "deleted comment"

This reverts commit 2d0da96.

* WIP

* Finished tests

* cleanup

* Fixed constants file

* small lint

* removed ts tests

* fixed constants

* added day to constant

* Rename BlockchainParameters.t.Sol to BlockchainParameters.t.sol

* packages/protocol/test-sol/governance/network/BlockchainParameters.t.sol

* Check for tests with wrong extensions

* Fixed tests

* lint

* fixed broken test

* bad comment

* naming

* Reformatting and tests

* Removed ganache test job from the CI

* Delete packages/protocol/test-sol/fail.t.sol

* fail with wrong extension

* More rename and lint

* More formatting

* cleanup

* renamed SortedListedLink mock

* more renaming

* Delete packages/protocol/test-sol/common/fail.SOl

* Moved ElectionMock

* Moving more staff around

* Rolled back mock election

* typo

* Changed LinkedList name

* Delete packages/protocol/test-sol/common/Integration.t.sol

* Refactor Registry

* Fix multisig

* fix

* typos

* pr comments

* version update

* foundry config update

* foundry version hardcoded

* test fix

---------

Co-authored-by: pahor167 <[email protected]>
* Release: Sorted oracles update (#10891)

* Sorted oracles update

* integration test fixes

* constants added

* Update packages/protocol/contracts/stability/SortedOracles.sol

Co-authored-by: Martín Volpe <[email protected]>

* Removal of Mento reference

* Update packages/protocol/test-sol/stability/SortedOracles.t.sol

Co-authored-by: soloseng <[email protected]>

* Update packages/protocol/test-sol/stability/SortedOracles.t.sol

Co-authored-by: soloseng <[email protected]>

* PR comments

* Equivalent tokens on top of updated sorted oracles  (Based of CR10) (#10904)

* Brought changes from https://github.com/celo-org/celo-monorepo/pull/10895/files#diff-ba272032c5f1b7e89d5777b3c886685b581324bdf22733ee272e2790f5d631df

* Fuzzy added

---------

Co-authored-by: pahor167 <[email protected]>

* prettify fix

---------

Co-authored-by: Martín Volpe <[email protected]>
Co-authored-by: soloseng <[email protected]>

* FeeCurrency Adapter (#10907)

* FeeCurrency Adapter

* PR comments

* Format documents

* gitmodules

* submodules added

* solidity version fix

* OZ contracts same commit as master

* Revert "OZ contracts same commit as master"

This reverts commit 8d8f2d6.

* OZ to same commit as master

* Getter&Setter for wrapped token

* Proxy added

* split of FeeCurrencyAdapter

* prettier fix

* refactor

* Update packages/protocol/test-sol/stability/FeeCurrencyAdapter.t.sol

Co-authored-by: Martín Volpe <[email protected]>

* PR comments

* PR comments

* Decimals + Total supply added

* Update packages/protocol/contracts-0.8/stability/FeeCurrencyAdapter.sol

* Update packages/protocol/contracts-0.8/stability/FeeCurrencyAdapter.sol

* Trigger

* Wrapper reference removed

* interface added

---------

Co-authored-by: Martín Volpe <[email protected]>
Co-authored-by: Tim Moreton <[email protected]>
Co-authored-by: alvarof2 <[email protected]>

* Calculation of unlockable gold (#10731)

* Fix for historical vote records

* contractkit fix

* lint fix

* Governance version update

* PR comments

* extended test

* Remove console.log

* Test

* lint fix

* version fix

* version fix

---------

Co-authored-by: Martín Volpe <[email protected]>

* Gas Price Minimum should never be zero (#10909)

* GasPriceMinimum backward compatibility fix (#10922)

* Update Dockerfiles (#10915)

* Remove references to packages deleted

* Remove circleci dockerfiles and workflow

* Delete reference to patches folder

* Update workload-id-provider in metadata-crawler-build job (#10916)

Use `master` workload-id-provider pool

* fix ganache dependency resolution (#10917)

* fix & cleanup

* fixed resolved field in lock file

* test

* Tooling fix

* lint fix

* revert of gas price minimum

* Update packages/protocol/lib/compatibility/ast-code.ts

Co-authored-by: Martín Volpe <[email protected]>

---------

Co-authored-by: Javier Cortejoso <[email protected]>
Co-authored-by: soloseng <[email protected]>
Co-authored-by: Martín Volpe <[email protected]>

* Storage gap for FeeCurrencyAdapter (#10933)

Storage gap

* Debit 0 value check (#10930)

* Removal of SortedOracle multiplier (#10931)

* Removal of SortedOracle multiplier

* removal of comment

* Make super of FeeCurrencyAdapterOwnable.sol explicit (#10944)

* Added note to FeeCurrencyAdapter.sol initializer (#10943)

* FeeAdapter debit round up (#10940)

* Round up of debit

* PR comments

* Code quality post audit (#10945)

Code quality

* SortedOracles sourced from Mento core for CR10 (#10946)

* SortedOracles sourced from Mento core

* PR comments

* Update gap size to follow 50 rule (#10948)

* CR11 fix verification (#10951)

* Force AddressSortedLinkedListWithMedian library redeploy for CR11

* CI fix

* PR comments

* yarn lock

* Updates specification of SrotedOracles (#10970)

* Update Natspec for FeeAdapter (#10969)

* dockerfile

---------

Co-authored-by: Martín Volpe <[email protected]>
Co-authored-by: soloseng <[email protected]>
Co-authored-by: Tim Moreton <[email protected]>
Co-authored-by: alvarof2 <[email protected]>
Co-authored-by: Javier Cortejoso <[email protected]>
* ++ @celo/dev-utils to dev dependencies

* - updated to use CR 11 instead of 10
- removed general test

* Bump lockedGold contract version

* revert version ∆

* removed unused env var

* bump contract versions
* L2 migration infra

* refactor

* refactor
shazarre and others added 30 commits August 21, 2024 15:44
* L2 devchain fix

* fixes

* artifact fixes
* Bring back getHotfixRecord function

* Bring back getMaxGroupSize

* Bring back getRegisteredValidatorSigners

---------

Co-authored-by: Martín Volpe <[email protected]>
* Gas usage test

* prettify

* Isolate test run

* removal of struct

* Update gas test

* prettify

* refactor test a bit

* added another gas test

* prettify
* Score manager gas optimization

* prettify

* PR comments

---------

Co-authored-by: Martín Volpe <[email protected]>
* added `getEpochInfoOfEpoch(uint256)` to get epoch info of specific epochs

* updated natspec

* PR feedback

* Use constant

* breakup test; added more

* ++ registry to precompile contract

* added elected to epoch info

* numberValidatorsInSet backwards compatibility

* validator address & validatorSigner address from set

* support `getEpochNumber()` backwards compatibility in UsingRegistry

* using `getEpochByBlockNumber` instead of `getEpochByNumber`

* limit span of loop only to L2 blocks

* use binary search instead of blind loop

* ++ natspec

* added getEpochNumberOfBlock() backwards compatibility support

* ++ electedSigners

* make usingPrecompile onlyL1 contract

* ++ precompile override contract

* fix epoch manager bug and mock

* using precompileOverride in validators contract

* wording

* using indexed function when querying specific validator accounts or signers on L2

* fixed failing test

* using independent mapping for elected accounts and signers

* removed old elected list

* support 0.5.13 contracts using precompiles

* -- registry import

* ++ registry in PrecompilesOverride

* ++ more tests

* increase gaslimit

* moved election history update to epoch processing start.

* unused var

* clean up

* fixed e2e test

* simplify code

* Removed support for election historical data after that it's unlikely to be in use by external parties

* PR feedback

* -- spacing

* reorder state var

* stat var reorder

* small fix

* delete electedSigners at end of epochprocessing

* CI fix

* added comment

---------

Co-authored-by: Martín Volpe <[email protected]>
Co-authored-by: pahor167 <[email protected]>
* added `getEpochInfoOfEpoch(uint256)` to get epoch info of specific epochs

* updated natspec

* PR feedback

* Use constant

* breakup test; added more

* ++ registry to precompile contract

* added elected to epoch info

* numberValidatorsInSet backwards compatibility

* validator address & validatorSigner address from set

* support `getEpochNumber()` backwards compatibility in UsingRegistry

* using `getEpochByBlockNumber` instead of `getEpochByNumber`

* limit span of loop only to L2 blocks

* use binary search instead of blind loop

* ++ natspec

* added getEpochNumberOfBlock() backwards compatibility support

* ++ electedSigners

* make usingPrecompile onlyL1 contract

* ++ precompile override contract

* fix epoch manager bug and mock

* using precompileOverride in validators contract

* wording

* using indexed function when querying specific validator accounts or signers on L2

* fixed failing test

* using independent mapping for elected accounts and signers

* removed old elected list

* support 0.5.13 contracts using precompiles

* -- registry import

* ++ registry in PrecompilesOverride

* ++ more tests

* increase gaslimit

* moved election history update to epoch processing start.

* unused var

* clean up

* fixed e2e test

* simplify code

* Finish epoch processing split

* FinishEpochProcessing split e2e test

* setToProcessGroups unit tests

* process group unit tests

* Removed support for election historical data after that it's unlikely to be in use by external parties

* PR feedback

* -- spacing

* reorder state var

* stat var reorder

* small fix

* delete electedSigners at end of epochprocessing

* CI fix

* added comment

* prettify

* Pr comments

---------

Co-authored-by: soloseng <[email protected]>
Co-authored-by: Martín Volpe <[email protected]>
* first compiling draft
no working test.

Co-authored-by: Martín Volpe <[email protected]>

* Compiler fixes + finishNextEpochProcess

* allocateValidatorsRewards compilable

* First few tests

* test fix

* uisng registry instead

* updated registry ID var names

* typo

* ++ mock contracts in 0.8

* ++ passing test using mock

* Removal of using precompiles

* ScoreManager refactor

* Decouple epoch manager initializer from registry

* isReadyToStartEpoch fix

* startNextEpochProcess fixes

* rename score manager to score reader

* Rename transfer to release on CeloDistribution schedule

* Celo distribution schedule renamed to CeloUnreleasedTreasure

* conditions to getFirstBlockAtEpoch and getLastBlockAtEpoch

* ScoreManager update

* getFirstBlockOfEpoch in EpochManager initializer

* extra checks

* introduce new getValidatorsGroup

* systemAlreadyInitialized update

* Removal of IEpochManagerInterface

* Made CI run on feature branch

* merge fix

* Added target for the CI

* Fixed quote celo-monorepo.yml

* 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]>

* Fix CI

* Fixed interfaces and imports

* Build fix

* lint

* prettify

* prettify 2

* Attempt to fix truffle build and migrations l2 epoch (#11190)

* Added Blocking to LockedGold, Election (#11186)

* add EpochManager to abis

* force deploy abis

* build fix

* 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]>

* force release of canary abi

* force new canary version

* npm tag revert

* 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 ∆

* ++ TODO and comment

* add score manager to abis

* Split initEpochManager Function (#11199)

* ++ contract function

* ++ comment

* 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

* E2E EpochManager test + Epoch truffle migrations & Anvil L2 migration build fix (#11198)

* 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

* Implement sending of allocated validator payments (#11197)

* EpochManager fixes (#11208)

* truffle build fix

* build fix

* PR comments

* prettify

* rename of registerValidator overload

* bug fix

* extensing epochManager e2e test

* yarn lint

* Reset pending payment to 0 after sending (#11209)

Reset pending payment to 0 when sending

* Deleted duplicated import

* Make captureEpochAndValidators work in constant time (#11210)

* Use more general interface for token transfer (#11216)

* 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

* Make sendValidatorPayment nonReentrant (#11217)

* Martinvol/return account instead of signer (#11215)

* EpochManager e2e tests add/remove validators between ecpochs (#11214)

* Send validator payment on actions that would modify reward distribution (#11211)

* Rename `CeloUnreleasedTreasure` to `CeloUnreleasedTreasury` (#11220)

* updated `CeloUnrealeasedTreasure` to `CeloUnreleasedTreasury`

* update `CeloUnreleasedTreasury` initial balance to use defined constant

* renamed file

* prevent CELO transfers to `CeloUnreleasedTreasury`

* ++ comment

* unused import

* using internal accounting for released amount

* updated integration test

* PR feedback

* PR feedback

* reverted due to gas consideration

* more revert

---------

Co-authored-by: Martín Volpe <[email protected]>
Co-authored-by: pahor167 <[email protected]>
Co-authored-by: Martín Volpe <[email protected]>
Co-authored-by: Martín Volpe <[email protected]>
Co-authored-by: Martin <[email protected]>
Co-authored-by: pahor167 <[email protected]>
* Removal of build warnings

* prettify

* removal of IEC20 in FeeHandler distribute
* ++natspec

* more natspec and cleanup

* scoreManager changes

* PR feedback

* PR feedback
* Add top level NatSpec

* Celo -> CELO

* Add note about naming

---------

Co-authored-by: Martín Volpe <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.