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

Upgrade tests #2318

Open
wants to merge 115 commits into
base: master
Choose a base branch
from
Open

Upgrade tests #2318

wants to merge 115 commits into from

Conversation

sparrowDom
Copy link
Member

This is only a pull request to perform the upgrade tests of token contract that check that all the token balances of OUSD, OETH and Super OETH remain the same after the contract upgrade. See contracts/test/token/README.md on how to execute the procedure.

This PR should not be merged

sparrowDom and others added 30 commits October 30, 2024 23:11
…ngly be used to return true for yield delegation sources
* use safecasts for any downcasting

* use safecast when downcasting from int256. Also fix tests

* prettier

* clean up implementation
for (let i = 0; i < data.length; i++) {
const [account,,balanceBefore] = data[i].split(',');
const expectedBalance = BigNumber.from(balanceBefore);
const actualBalance = await upgradedTokenContract.balanceOf(account)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be better to do this in batches using Promise.all

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed, I didn't do that in the end because all the storage slots are already cached and this function executes quite quickly

Base automatically changed from sparrowDom/rebaseElsewhere_v2 to master January 8, 2025 13:14
Copy link

codecov bot commented Jan 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.54%. Comparing base (1817476) to head (f04f022).
Report is 5 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2318      +/-   ##
==========================================
- Coverage   52.53%   51.54%   -1.00%     
==========================================
  Files          91       91              
  Lines        4414     4414              
  Branches     1162     1162              
==========================================
- Hits         2319     2275      -44     
- Misses       2092     2136      +44     
  Partials        3        3              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

4 participants