celo-org / optimism

Optimism is Ethereum, scaled.
https://optimism.io
MIT License
3 stars 2 forks source link

Add more powerful MockSortedOracles #102

Closed karlb closed 3 months ago

karlb commented 3 months ago

This allows testing of newly deployed fee currencies even when MockSortedOracles is used. This is the some implementation used in celo-monorepo with the following differences:

codecov-commenter commented 3 months ago

Codecov Report

Attention: Patch coverage is 0% with 9 lines in your changes are missing coverage. Please review.

Project coverage is 25.39%. Comparing base (063933d) to head (0b3fbe3).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## celo4 #102 +/- ## ========================================== - Coverage 25.40% 25.39% -0.01% ========================================== Files 184 184 Lines 8136 8139 +3 Branches 1415 1415 ========================================== Hits 2067 2067 - Misses 5948 5951 +3 Partials 121 121 ``` | [Flag](https://app.codecov.io/gh/celo-org/optimism/pull/102/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | Coverage Δ | | |---|---|---| | [cannon-go-tests](https://app.codecov.io/gh/celo-org/optimism/pull/102/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `62.56% <ø> (ø)` | | | [chain-mon-tests](https://app.codecov.io/gh/celo-org/optimism/pull/102/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `27.14% <ø> (ø)` | | | [common-ts-tests](https://app.codecov.io/gh/celo-org/optimism/pull/102/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `26.72% <ø> (ø)` | | | [contracts-bedrock-tests](https://app.codecov.io/gh/celo-org/optimism/pull/102/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `0.49% <0.00%> (-0.01%)` | :arrow_down: | | [contracts-ts-tests](https://app.codecov.io/gh/celo-org/optimism/pull/102/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `12.25% <ø> (ø)` | | | [core-utils-tests](https://app.codecov.io/gh/celo-org/optimism/pull/102/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `44.03% <ø> (ø)` | | | [sdk-next-tests](https://app.codecov.io/gh/celo-org/optimism/pull/102/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `41.53% <ø> (ø)` | | | [sdk-tests](https://app.codecov.io/gh/celo-org/optimism/pull/102/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `41.53% <ø> (ø)` | | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/celo-org/optimism/pull/102?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | Coverage Δ | | |---|---|---| | [...cts-bedrock/src/celo/testing/MockSortedOracles.sol](https://app.codecov.io/gh/celo-org/optimism/pull/102?src=pr&el=tree&filepath=packages%2Fcontracts-bedrock%2Fsrc%2Fcelo%2Ftesting%2FMockSortedOracles.sol&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org#diff-cGFja2FnZXMvY29udHJhY3RzLWJlZHJvY2svc3JjL2NlbG8vdGVzdGluZy9Nb2NrU29ydGVkT3JhY2xlcy5zb2w=) | `0.00% <0.00%> (ø)` | |