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

Refactor types out of actors crate to prep for v2 upgrade #790

Merged
merged 9 commits into from
Oct 29, 2020

Conversation

austinabell
Copy link
Contributor

Summary of changes
Changes introduced in this pull request:

  • We had most types that were separated by the go implementation separated already, with the exception of DeadlineInfo
    • The JSON format is updated now to include parameters, which is a necessary change to match Lotus' RPC interface
  • Puts proofs api under feature to only pull in dependency when needed (it's a huge import so avoiding for most crates that just use the types)

Reference issue to close (if applicable)

Closes #788

Other information and links

@austinabell austinabell marked this pull request as ready for review October 27, 2020 18:34
@@ -30,16 +33,16 @@ lazy_static! {
/// Number of token units in an abstract "FIL" token.
/// The network works purely in the indivisible token amounts.
/// This constant converts to a fixed decimal with more human-friendly scale.
const TOKEN_PRECISION: u64 = 1_000_000_000_000_000_000;
pub const TOKEN_PRECISION: u64 = 1_000_000_000_000_000_000;
Copy link
Member

Choose a reason for hiding this comment

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

I know it isnt really part of this PR, but while youre at it, could you make this point to the one in types? (i think reward/types.rs also redefines this

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah it was semi intentional since the go implementation redefines -- maybe they want the actors execution to not change even if the params outside changes? That was my thought, but it's not a good reason so I will share same

@austinabell austinabell merged commit 7d34126 into main Oct 29, 2020
@austinabell austinabell deleted the austin/acv2prep branch October 29, 2020 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Moving types for actors into a different crate
4 participants