Skip to content

[Morse -> Shannon Migration] account import & claim E2E tests (part 1)#1133

Merged
bryanchriswhite merged 72 commits intomainfrom
issues/1034/test/e2e
Apr 2, 2025
Merged

[Morse -> Shannon Migration] account import & claim E2E tests (part 1)#1133
bryanchriswhite merged 72 commits intomainfrom
issues/1034/test/e2e

Conversation

@bryanchriswhite
Copy link
Copy Markdown
Collaborator

@bryanchriswhite bryanchriswhite commented Mar 18, 2025

Summary

E2E test coverage for migration module importing and claiming of Morse accounts.

Implemented coverage:

  • pocketd tx migration collect-morse-accounts ...
  • pocketd tx migration import-morse-accounts ...
  • pocketd tx migration claim-account ...

Pending coverage:

Issue

Type of change

Select one or more from the following:

Sanity Checklist

  • I have updated the GitHub Issue assignees, reviewers, labels, project, iteration and milestone
  • For docs, I have run make docusaurus_start
  • For code, I have run make go_develop_and_test and make test_e2e
  • For code, I have added the devnet-test-e2e label to run E2E tests in CI
  • For configurations, I have update the documentation
  • I added TODOs where applicable

@bryanchriswhite bryanchriswhite added testing Test (or test utils) additions, fixes, improvements or other e2e_story E2E User Story migration Morse to Shannon migration related work labels Mar 18, 2025
@bryanchriswhite bryanchriswhite self-assigned this Mar 18, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Shannon Mar 18, 2025
@bryanchriswhite bryanchriswhite changed the base branch from issues/1034/cli/claim_account to issues/1034/cli/import March 18, 2025 12:02
@bryanchriswhite bryanchriswhite changed the title [Morse -> Shannon Migration] Morse account import & claim E2E tests [Morse -> Shannon Migration] account import & claim E2E tests Mar 18, 2025
@bryanchriswhite bryanchriswhite added the tooling Tooling - CLI, scripts, helpers, off-chain, etc... label Mar 18, 2025
@bryanchriswhite bryanchriswhite moved this from 📋 Backlog to 🏗 In progress in Shannon Mar 18, 2025
@bryanchriswhite bryanchriswhite changed the title [Morse -> Shannon Migration] account import & claim E2E tests [Morse -> Shannon Migration] account import & claim E2E tests (part 1) Mar 18, 2025
(cherry picked from commit 04e632861eb5529640b0cffcbd42d47409c6c799)
Copy link
Copy Markdown
Collaborator

@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 Approving in order to get the merge train moving.

  1. PTAL at my last commit here: e59090b (#1133). It has UNTESTED nits & edits.

  2. Once we get things merged in, I'm sure we'll find issues, so I'm delaying that investigation since this is "good enough" for now.

Let's push through!

bryanchriswhite added a commit that referenced this pull request Apr 2, 2025
## Summary

### NOTE: @Reviewer, E2E test coverage is included in #1133

```bash
$ poktrolld tx migration claim-account ./pocket-account-8b257c7f4e884e49bafc540d874f33f91436e1dc.json --from app1
Enter Decrypt Passphrase: 
MsgClaimMorseAccount {
  "shannon_dest_address": "pokt1mrqt5f7qh8uxs27cjm9t7v9e74a9vvdnq5jva4",
  "morse_src_address": "8B257C7F4E884E49BAFC540D874F33F91436E1DC",
  "morse_signature": "hLGhLRjP6jgP6wgOIaYFxIxT3z4jb4IBDKovMkX5AqUsOqdF+rEIO5aofOKnmYW9BkqL0v2DfUfE3nj25FNhBA=="
}
Confirm MsgClaimMorseAccount: y/[n]: 

```

Changes:
- Refactor existing `migrate` cmd code to be more consistent with
cosmos-sdk conventions.
- Add `migrate claim-account` sub-cmd fof executing
`MsgClaimMorseAccount`s on-chain.

## Issue

- Issue: #1034

## Type of change

Select one or more from the following:

- [x] New feature, functionality or library
- [ ] Consensus breaking; add the `consensus-breaking` label if so. See
#791 for details
- [ ] Bug fix
- [ ] Code health or cleanup
- [ ] Documentation
- [ ] Other (specify)

## Sanity Checklist

- [ ] I have updated the GitHub Issue `assignees`, `reviewers`,
`labels`, `project`, `iteration` and `milestone`
- [ ] For docs, I have run `make docusaurus_start`
- [ ] For code, I have run `make go_develop_and_test` and `make
test_e2e`
- [ ] For code, I have added the `devnet-test-e2e` label to run E2E
tests in CI
- [ ] For configurations, I have update the documentation
- [ ] I added TODOs where applicable

---------

Co-authored-by: Daniel Olshansky <olshansky.daniel@gmail.com>
Co-authored-by: red-0ne <red-0ne@users.noreply.github.com>
bryanchriswhite added a commit that referenced this pull request Apr 2, 2025
…1132)

## Summary

### NOTE: @Reviewer, E2E test coverage is included in #1133

```shell
Import the Morse accounts contained within the Morse account state JSON file.
The Morse account state JSON can be generated by transforming the "Morse state export".
See: `pocket util export-genesis-for-reset -h` and `poktrolld tx migration collect-morse-accounts`.

This will construct, sign, and broadcast a tx containing a MsgImportMorseClaimableAccounts message.
See: https://dev.poktroll.com/operate/morse_migration/overview.md for more information.

Usage:
  pocketd tx migration import-morse-accounts [morse-account-state-json-path] [flags]
```


Changes:
- Add logging to `MsgImportMorseClaimableAccounts` handler.
- Add `pocketd tx migration import-morse-accounts` CLI sub-command.

## Issue

- Issue: #1034

## Type of change

Select one or more from the following:

- [x] New feature, functionality or library
- [ ] Consensus breaking; add the `consensus-breaking` label if so. See
#791 for details
- [ ] Bug fix
- [ ] Code health or cleanup
- [ ] Documentation
- [ ] Other (specify)

## Sanity Checklist

- [x] I have updated the GitHub Issue `assignees`, `reviewers`,
`labels`, `project`, `iteration` and `milestone`
- [ ] For docs, I have run `make docusaurus_start`
- [x] For code, I have run `make go_develop_and_test` and `make
test_e2e`
- [ ] For code, I have added the `devnet-test-e2e` label to run E2E
tests in CI
- [ ] For configurations, I have update the documentation
- [ ] I added TODOs where applicable

---------

Co-authored-by: Daniel Olshansky <olshansky.daniel@gmail.com>
Co-authored-by: Redouane Lakrache <r3d0ne@gmail.com>
Co-authored-by: red-0ne <red-0ne@users.noreply.github.com>
* pokt/main:
  [Morse -> Shannon Migration] Authority CLI: `import-morse-accounts` (#1132)
@bryanchriswhite bryanchriswhite changed the base branch from issues/1034/cli/import to main April 2, 2025 14:36
@bryanchriswhite bryanchriswhite merged commit 0211bf3 into main Apr 2, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from 👀 In review to ✅ Done in Shannon Apr 2, 2025
bryanchriswhite added a commit that referenced this pull request Apr 2, 2025
* pokt/main:
  [Morse -> Shannon Migration] account import & claim E2E tests (part 1) (#1133)
@bryanchriswhite bryanchriswhite deleted the issues/1034/test/e2e branch April 2, 2025 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

e2e_story E2E User Story migration Morse to Shannon migration related work testing Test (or test utils) additions, fixes, improvements or other tooling Tooling - CLI, scripts, helpers, off-chain, etc...

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants