celo-org / optimism

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

Add `MockSortedOracles` #90

Closed palango closed 7 months ago

palango commented 8 months ago

This will be used in op-geth.

This is the simplest possible implementation to get the test in https://github.com/celo-org/op-geth/pull/30 green. It currently hardcodes the fee currency token, as there's currently no need to make this more dynamic.

codecov-commenter commented 8 months ago

Codecov Report

Merging #90 (234922c) into celo3 (86a037b) will increase coverage by 2.93%. The diff coverage is n/a.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## celo3 #90 +/- ## ========================================== + Coverage 46.83% 49.76% +2.93% ========================================== Files 178 76 -102 Lines 6799 4109 -2690 Branches 1098 526 -572 ========================================== - Hits 3184 2045 -1139 + Misses 3477 2018 -1459 + Partials 138 46 -92 ``` | [Flag](https://app.codecov.io/gh/celo-org/optimism/pull/90/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/90/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `63.48% <ø> (ø)` | | | [chain-mon-tests](https://app.codecov.io/gh/celo-org/optimism/pull/90/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `26.95% <ø> (ø)` | | | [common-ts-tests](https://app.codecov.io/gh/celo-org/optimism/pull/90/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `26.74% <ø> (ø)` | | | [contracts-bedrock-tests](https://app.codecov.io/gh/celo-org/optimism/pull/90/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `∅ <ø> (∅)` | | | [contracts-ts-tests](https://app.codecov.io/gh/celo-org/optimism/pull/90/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `100.00% <ø> (ø)` | | | [core-utils-tests](https://app.codecov.io/gh/celo-org/optimism/pull/90/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/90/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `41.95% <ø> (ø)` | | | [sdk-tests](https://app.codecov.io/gh/celo-org/optimism/pull/90/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org) | `41.95% <ø> (ø)` | | 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. [see 102 files with indirect coverage changes](https://app.codecov.io/gh/celo-org/optimism/pull/90/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=celo-org)