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 Remote Pool #16

Merged
merged 19 commits into from
Oct 15, 2024
Merged

Upgrade Remote Pool #16

merged 19 commits into from
Oct 15, 2024

Conversation

CheyenneAtapour
Copy link

We show the process of upgrading the old remote pool to the new one, and verify we can set the rateLimitAdmin via simple tests.

  • The UpgradeableBurnMintTokenPool.sol should be used for future deployments
  • This PR is not to be merged in, but merely to show the upgrade process

Copy link

height bot commented Jul 19, 2024

Link Height tasks by mentioning a task ID in the pull request title or commit messages, or description and comments with the keyword link (e.g. "Link T-123").

💡Tip: You can also use "Close T-X" to automatically close a task when the pull request is merged.

@CheyenneAtapour CheyenneAtapour marked this pull request as ready for review July 22, 2024 15:40
@AsafHochstadtCertora
Copy link

After reviewing the changes, the fixes seem ok to me

Base automatically changed from feat/remote-rate-limit to ccip-gho July 23, 2024 07:40
@Uzoke22
Copy link

Uzoke22 commented Sep 28, 2024

remove

@miguelmtzinf miguelmtzinf merged commit c020802 into ccip-gho Oct 15, 2024
2 checks passed
@miguelmtzinf miguelmtzinf deleted the upgrade-remote-pool-fix branch October 15, 2024 08:02
@DhairyaSethi DhairyaSethi mentioned this pull request Oct 16, 2024
DhairyaSethi added a commit that referenced this pull request Oct 16, 2024
miguelmtzinf added a commit that referenced this pull request Nov 7, 2024
* feat: enable remote rateLimitAdmin

* chore: prettier

* fix: remove unnecessary modifer

* chore: reorder state variables

* feat: upgrade remote pool

* test: add tests after upgrading

* feat: reserve storage space for future upgrades

* diff: Update diff for UpgradeableBurnMintTokenPool

* ci: Fix ci

* ci: Fix ci

* test: show init reverting after upgrade

* fix: remove gap

* fix: return to original test suite

* test: simple tests showing upgrade

* fix: add and correct comments

* fix: comments to match parent contract

* chore: prettier

* fix: allow calls 1.2 on ramp during 1.5 migration by introducing legacyOnRamp

* chore: update certora & compiler used to match forge

* test: add fork base

* wip: fork upgrade test

* fix: onlyOnRamp condition

* test: add testnet legacy pools

* test: successful send with upgrade

* test: add releaseOrMint tests

* fix: legacyOnRamp -> proxyPool

* feat: set proxy pool only once for dest chain

* feat(tokenPools): disableInitializer on constructor, upd docs

* fix: revert UpgradeableBurnMintTokenPoolOld from #16 (was accidentally merged)

* chore: update diffs

* chore: use negative conditional code style

* docs: move base contract modification doc

* Update contracts/src/v0.8/ccip/test/pools/GHO/fork/GhoTokenPoolMigrate1_4To1_5/ForkBase.t.sol

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

* chore: update diffs

* doc: for SendViaLegacyPool test

* chore: reorder imports for consistency with code style

* fix: rm immutability of pool proxy

* test: rename for consistency

* fix: use chain agnostic proxypool

* fix: import on token pools to match chainlink style convention, upd diff

* fix: test renaming to match style convention

* chore: fix import order

* chore: rm internal inline, typo

* test: for 1_2OnRamp, refactor _messageToEvent

* chore: rm unsued

* doc: rm incorrect comment on proxy pool

* test: fork test pre migration setup

* test: expect events fork before migration

* chore: revert name change in test

* chore: upd comment

* fix: rm disableInitializer as its handled by Initializable

* chore: fix diff using diff algorithm patience

* fix: add proxyPool whitelist to onlyOffRamp modifier

* test: improve off ramp tests

* chore: cleanup imports

* test: dynamically fetch dest gas amt

* fix: docs

---------

Co-authored-by: CheyenneAtapour <[email protected]>
Co-authored-by: miguelmtzinf <[email protected]>
Co-authored-by: miguelmtz <[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.

4 participants