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: update sdk & shared for TokenAmount and hashing changes #588

Merged
merged 6 commits into from
Aug 31, 2022

Conversation

Stebalien
Copy link
Member

No description provided.

@@ -90,7 +90,8 @@ pub fn check_state_invariants<BS: Blockstore + Debug>(
match DealArray::load(&state.proposals, store) {
Ok(proposals) => {
let ret = proposals.for_each(|deal_id, proposal| {
let proposal_cid = proposal.cid()?;
//let proposal_cid = proposal.cid()?;
let proposal_cid = todo!();
Copy link
Member Author

Choose a reason for hiding this comment

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

Need the runtime to call deal_cid. We'll probably need to explicitly compute the blake2b hash here.

@maciejwitowski maciejwitowski added this to the M2.1 Selenium (r2) milestone Aug 30, 2022
@Stebalien Stebalien force-pushed the feat/update-sdk branch 3 times, most recently from 9c5cbdf to ec5ce00 Compare August 31, 2022 03:29
@Stebalien
Copy link
Member Author

Depends on filecoin-project/ref-fvm#819.

@Stebalien Stebalien force-pushed the feat/update-sdk branch 2 times, most recently from 716a71d to bfc5b95 Compare August 31, 2022 03:34
@Stebalien Stebalien requested a review from anorth August 31, 2022 03:36
@Stebalien
Copy link
Member Author

I still need to fix the proposal CID thing, but the TokenAmount changes are ready for review.

If you want to test, I strongly suggest that you checkout the backport/token-ops ref-fvm branch locally, and uncomment the local patch. The git-based "patch" will clone some very large git submodules, and there's no way to tell cargo to not do that at the moment.

@Stebalien Stebalien force-pushed the feat/update-sdk branch 5 times, most recently from 19fc1e9 to 3c25d0e Compare August 31, 2022 16:45
@Stebalien Stebalien changed the title WIP: update sdk feat: update sdk & shared for TokenAmount and hashing changes Aug 31, 2022
@Stebalien Stebalien marked this pull request as ready for review August 31, 2022 16:56
test_vm/tests/multisig_test.rs Outdated Show resolved Hide resolved
Rust _usually_ catches this kind of thing, but apparently not inside a
lazy_static.
We don't need these now that we have extra Mul impls.
@Stebalien Stebalien merged commit b7ad2c5 into master Aug 31, 2022
@@ -108,12 +107,9 @@ pub struct DealProposal {
// otherwise it is invalid.
pub start_epoch: ChainEpoch,
pub end_epoch: ChainEpoch,
#[serde(with = "bigint_ser")]
Copy link
Member

Choose a reason for hiding this comment

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

❤️

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.

4 participants