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

feat(f3): forest-cli f3 certs list #5010

Merged
merged 3 commits into from
Nov 27, 2024
Merged

feat(f3): forest-cli f3 certs list #5010

merged 3 commits into from
Nov 27, 2024

Conversation

hanabi1224
Copy link
Contributor

@hanabi1224 hanabi1224 commented Nov 27, 2024

Summary of changes

Closes #5000

Changes introduced in this pull request:

  • implement forest-cli f3 certs list

lotus ouput:

➜  lotus git:(master) lotus f3 c list --output text 5000..5002
Instance:     5002
Power Table:
  Next:       bafy2bzaceaiaeoyryp6ojvoqxvr6yarzqhat2zq3aaszhz3jol2u46v2gu4ry
  Delta:      None
Finalized Chain:
  Length:     2
  Epochs:     2087720-2087721
  Chain:
    ├──2087720 (length: 4): [bafy2bzaceagtkrcgrdaeqjyq2xra4jrqni53m5tlw3dcx3wtbqpidhj65uemg, bafy2bzacedtxz7jfcxeishfjiba33e6oq2jsx6pwt4gnnrcitf4ruyfva7mzg, ...]
    └──2087721 (length: 3): [bafy2bzacedioj63g772b4zss4vtt5w7u7yklaajablkpuq73yp5np4x7fplj4, bafy2bzaceckybf34ub7ob5rhhe4cb7mtpsqvqyd54432q57qfkkonctqusmqk, ...]
Signed by 3 miner(s).

Instance:     5001
Power Table:
  Next:       bafy2bzaceaiaeoyryp6ojvoqxvr6yarzqhat2zq3aaszhz3jol2u46v2gu4ry
  Delta:      None
Finalized Chain:
  Length:     2
  Epochs:     2087719-2087720
  Chain:
    ├──2087719 (length: 1): [bafy2bzacea2yry7n4se24q5e4qqyo3xqs4aglsgi75o7a4ibcg6udqstdqrcc]
    └──2087720 (length: 4): [bafy2bzaceagtkrcgrdaeqjyq2xra4jrqni53m5tlw3dcx3wtbqpidhj65uemg, bafy2bzacedtxz7jfcxeishfjiba33e6oq2jsx6pwt4gnnrcitf4ruyfva7mzg, ...]
Signed by 3 miner(s).

Instance:     5000
Power Table:
  Next:       bafy2bzaceaiaeoyryp6ojvoqxvr6yarzqhat2zq3aaszhz3jol2u46v2gu4ry
  Delta:      None
Finalized Chain:
  Length:     2
  Epochs:     2087718-2087719
  Chain:
    ├──2087718 (length: 4): [bafy2bzaceanqgxfleleom3yorw2t6dly2n7hxkf6rbq3bv5pu2xarostkp2b2, bafy2bzacecvla57ta4y7mou2crg5h3cz4aup6xbtjd776w5mj3acrp7zhjqxw, ...]
    └──2087719 (length: 1): [bafy2bzacea2yry7n4se24q5e4qqyo3xqs4aglsgi75o7a4ibcg6udqstdqrcc]
Signed by 3 miner(s).

forest output:

➜  forest git:(hm/cli-f3-certs-list) cargo run --bin forest-cli --no-default-features --profile quick -- f3 c list 5000..5002
    Finished `quick` profile [optimized] target(s) in 0.48s
     Running `target/quick/forest-cli f3 c list 5000..5002`
Instance:     5002
Power Table:
  Next:       bafy2bzaceaiaeoyryp6ojvoqxvr6yarzqhat2zq3aaszhz3jol2u46v2gu4ry
  Delta:      None
Finalized Chain:
  Length:     2
  Epochs:     2087720-2087721
  Chain:
    ├──2087720 (length: 4): [bafy2bzaceagtkrcgrdaeqjyq2xra4jrqni53m5tlw3dcx3wtbqpidhj65uemg, bafy2bzacedtxz7jfcxeishfjiba33e6oq2jsx6pwt4gnnrcitf4ruyfva7mzg, ...]
    └──2087721 (length: 3): [bafy2bzacedioj63g772b4zss4vtt5w7u7yklaajablkpuq73yp5np4x7fplj4, bafy2bzaceckybf34ub7ob5rhhe4cb7mtpsqvqyd54432q57qfkkonctqusmqk, ...]
Signed by 3 miner(s).

Instance:     5001
Power Table:
  Next:       bafy2bzaceaiaeoyryp6ojvoqxvr6yarzqhat2zq3aaszhz3jol2u46v2gu4ry
  Delta:      None
Finalized Chain:
  Length:     2
  Epochs:     2087719-2087720
  Chain:
    ├──2087719 (length: 1): [bafy2bzacea2yry7n4se24q5e4qqyo3xqs4aglsgi75o7a4ibcg6udqstdqrcc]
    └──2087720 (length: 4): [bafy2bzaceagtkrcgrdaeqjyq2xra4jrqni53m5tlw3dcx3wtbqpidhj65uemg, bafy2bzacedtxz7jfcxeishfjiba33e6oq2jsx6pwt4gnnrcitf4ruyfva7mzg, ...]
Signed by 3 miner(s).

Instance:     5000
Power Table:
  Next:       bafy2bzaceaiaeoyryp6ojvoqxvr6yarzqhat2zq3aaszhz3jol2u46v2gu4ry
  Delta:      None
Finalized Chain:
  Length:     2
  Epochs:     2087718-2087719
  Chain:
    ├──2087718 (length: 4): [bafy2bzaceanqgxfleleom3yorw2t6dly2n7hxkf6rbq3bv5pu2xarostkp2b2, bafy2bzacecvla57ta4y7mou2crg5h3cz4aup6xbtjd776w5mj3acrp7zhjqxw, ...]
    └──2087719 (length: 1): [bafy2bzacea2yry7n4se24q5e4qqyo3xqs4aglsgi75o7a4ibcg6udqstdqrcc]
Signed by 3 miner(s).

Reference issue to close (if applicable)

Closes #5000

Other information and links

Change checklist

  • I have performed a self-review of my own code,
  • I have made corresponding changes to the documentation. All new code adheres to the team's documentation standards,
  • I have added tests that prove my fix is effective or that my feature works (if possible),
  • I have made sure the CHANGELOG is up-to-date. All user-facing changes should be reflected in this document.

@hanabi1224 hanabi1224 marked this pull request as ready for review November 27, 2024 10:47
@hanabi1224 hanabi1224 requested a review from a team as a code owner November 27, 2024 10:47
@hanabi1224 hanabi1224 requested review from ruseinov and elmattic and removed request for a team November 27, 2024 10:47
@elmattic
Copy link
Contributor

lgtm, but there are some lints to fix.

@hanabi1224
Copy link
Contributor Author

there are some lints to fix.

Fixed!

@hanabi1224 hanabi1224 added this pull request to the merge queue Nov 27, 2024
Merged via the queue into main with commit 8b8bbbc Nov 27, 2024
35 checks passed
@hanabi1224 hanabi1224 deleted the hm/cli-f3-certs-list branch November 27, 2024 11:45
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.

[F3] port lotus f3 certs list CLI command
3 participants