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

Add command to populate database with actor codes and versions #1148

Closed
3 tasks
frrist opened this issue Mar 1, 2023 · 2 comments · Fixed by #1155
Closed
3 tasks

Add command to populate database with actor codes and versions #1148

frrist opened this issue Mar 1, 2023 · 2 comments · Fixed by #1155
Assignees
Labels
P2 P2: Should be resolved

Comments

@frrist
Copy link
Member

frrist commented Mar 1, 2023

Description

We want the output of the lily chain actor-codes command in a database table somewhere. Perhaps this could be a part of the migrate command.

Acceptance criteria

  • define a scheme for actor codes to versions
  • define a schema for actor method names to numbers
  • share schema in issue before implementing

Where to begin

Here is where the information is currently collected for CLI inspection: https://github.com/filecoin-project/lily/blob/master/commands/chain.go#L47

@kasteph
Copy link
Contributor

kasteph commented Mar 2, 2023

We need to have a table produced from builtin actors that map from actor versions to CIDs.

A table that looks like below:

image

I.e.:

cid string
code string

Where to begin

@kasteph kasteph self-assigned this Mar 13, 2023
@kasteph
Copy link
Contributor

kasteph commented Mar 13, 2023

note: no need to make a migration since this should not be required for somebody to operate a lily node?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
P2 P2: Should be resolved
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants