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

[Morse->Shannon Migration] state export/import - collect accounts #1039

Merged
merged 43 commits into from
Feb 12, 2025

Conversation

bryanchriswhite
Copy link
Contributor

@bryanchriswhite bryanchriswhite commented Jan 23, 2025

Summary

Add poktrolld migrate collect-morse-accounts command to convert Morse state export into a MorseAccountState for import into Shannon.

Issue

Type of change

Select one or more from the following:

Testing

  • Documentation: make docusaurus_start; only needed if you make doc changes
  • Unit Tests: make go_develop_and_test
  • LocalNet E2E Tests: make test_e2e
  • DevNet E2E Tests: Add the devnet-test-e2e label to the PR.

Sanity Checklist

  • I have tested my changes using the available tooling
  • I have commented my code
  • I have performed a self-review of my own code; both comments & source code
  • I create and reference any new tickets, if applicable
  • I have left TODOs throughout the codebase, if applicable

@bryanchriswhite bryanchriswhite self-assigned this Jan 23, 2025
@bryanchriswhite bryanchriswhite force-pushed the chore/migration/state-prep branch from f648aa5 to e35ca54 Compare January 24, 2025 15:19
@bryanchriswhite bryanchriswhite changed the base branch from scaffold/migration/morse-state to scaffold/migration-module January 27, 2025 11:31
@bryanchriswhite bryanchriswhite force-pushed the chore/migration/state-prep branch from 12a072c to 900c66b Compare January 27, 2025 11:32
@bryanchriswhite bryanchriswhite force-pushed the chore/migration/state-prep branch 2 times, most recently from 3515058 to 20aa71d Compare January 27, 2025 11:55
@bryanchriswhite bryanchriswhite linked an issue Jan 27, 2025 that may be closed by this pull request
9 tasks
@bryanchriswhite bryanchriswhite force-pushed the chore/migration/state-prep branch from 08b72b7 to b19a003 Compare January 27, 2025 15:50
@bryanchriswhite bryanchriswhite force-pushed the chore/migration/state-prep branch from b19a003 to 890d5b5 Compare January 27, 2025 15:52
@bryanchriswhite bryanchriswhite marked this pull request as ready for review January 27, 2025 15:56
@Olshansk Olshansk added on-chain On-chain business logic consensus-breaking IMPORTANT! If the PR with this tag is merged, next release WILL HAVE TO BE an upgrade. labels Jan 28, 2025
cmd/poktrolld/cmd/migrate/migrate.go Show resolved Hide resolved
proto/poktroll/migration/legacy.proto Outdated Show resolved Hide resolved
proto/poktroll/migration/legacy.proto Outdated Show resolved Hide resolved
proto/poktroll/migration/legacy.proto Outdated Show resolved Hide resolved
proto/poktroll/migration/legacy.proto Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/migrate.go Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/migrate.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/migrate.go Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/migrate.go Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/migrate.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/types.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/types.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/types.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/types.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/types.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/types.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/types.go Outdated Show resolved Hide resolved
Copy link
Member

@Olshansk Olshansk left a comment

Choose a reason for hiding this comment

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

@bryanchriswhite Lots of good iteration.

I'm going to do a full E2E review of this once it's ready again.

I have a few asks

  1. Please keep in mind that while you are aware of ongoing work in this PR and other PRs, it is not as easy for the reader/reviewer.

  2. Wehere possible, please use bullet points for the docs rather than long sentences + paragraphs to reduce cognitive overload. Consider using the claude project.

  3. Prior to the next round of reviews, lets:

  • Close existing threads (if possible) due to the amount of cross-linging and outdateness
  • Add TODO_IN_THIS_PR discuss for ongoing tidscussions
  • Add TODO_MAINNET or TODO_MIGRATION for things you know are happening in future PRS
  1. If you think something needs an offline call/discussion for clearer alignment, lmk!

cmd/poktrolld/cmd/migrate/errors.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/migrate.go Show resolved Hide resolved
x/migration/types/morse_account_state.go Outdated Show resolved Hide resolved
x/migration/types/morse_account_state.go Outdated Show resolved Hide resolved
x/migration/types/morse_account_state.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/types.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/types.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/types.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/types.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/migrate.go Outdated Show resolved Hide resolved
bryanchriswhite and others added 5 commits February 7, 2025 13:23
Co-authored-by: Daniel Olshansky <olshansky.daniel@gmail.com>
Co-authored-by: Daniel Olshansky <olshansky.daniel@gmail.com>
* pokt/main:
  [Documentation] Refactoring `dev.poktroll.com` during Beta TestNet #1 of N (#1058)
cmd/poktrolld/cmd/migrate/migrate_test.go Outdated Show resolved Hide resolved
cmd/poktrolld/cmd/migrate/migrate.go Outdated Show resolved Hide resolved
proto/poktroll/migration/morse_onchain.proto Outdated Show resolved Hide resolved
proto/poktroll/migration/morse_onchain.proto Outdated Show resolved Hide resolved
proto/poktroll/migration/morse_onchain.proto Outdated Show resolved Hide resolved
Copy link

The CI will now also run the e2e tests on devnet, which increases the time it takes to complete all CI checks.

You may need to run make trigger_ci to submit an empty commit that'll trigger the tests.

GCP workloads (requires changing the namespace to 1039)
Grafana network dashboard for devnet-issue-1039

@github-actions github-actions bot added devnet push-image CI related - pushes images to ghcr.io labels Feb 11, 2025
Copy link
Member

@Olshansk Olshansk left a comment

Choose a reason for hiding this comment

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

Updated all the TODOs and triggered the CI!

Co-authored-by: Daniel Olshansky <olshansky.daniel@gmail.com>
@bryanchriswhite bryanchriswhite dismissed red-0ne’s stale review February 12, 2025 10:41

comments addressed

@bryanchriswhite bryanchriswhite merged commit 67dbfb6 into main Feb 12, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consensus-breaking IMPORTANT! If the PR with this tag is merged, next release WILL HAVE TO BE an upgrade. devnet devnet-test-e2e migration Morse to Shannon migration related work on-chain On-chain business logic push-image CI related - pushes images to ghcr.io
Projects
Status: ✅ Done
Development

Successfully merging this pull request may close these issues.

[Morse->Shannon Migration] Migration module
3 participants