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

Updates market actor #496

Merged
merged 12 commits into from
Jun 18, 2020
1 change: 1 addition & 0 deletions vm/actor/src/builtin/codes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ lazy_static! {
pub static ref PAYCH_ACTOR_CODE_ID: Cid = make_builtin(b"fil/1/paymentchannel");
pub static ref MULTISIG_ACTOR_CODE_ID: Cid = make_builtin(b"fil/1/multisig");
pub static ref REWARD_ACTOR_CODE_ID: Cid = make_builtin(b"fil/1/reward");
pub static ref VERIFIED_ACTOR_CODE_ID: Cid = make_builtin(b"fil/1/verifiedregistry");
dutterbutter marked this conversation as resolved.
Show resolved Hide resolved

// Set of actor code types that can represent external signing parties.
pub static ref CALLER_TYPES_SIGNABLE: [Cid; 2] =
Expand Down
3 changes: 3 additions & 0 deletions vm/actor/src/builtin/market/deal.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use cid::Cid;
use clock::ChainEpoch;
use crypto::Signature;
use encoding::tuple::*;
use encoding::Cbor;
use fil_types::PaddedPieceSize;
use num_bigint::biguint_ser;
use vm::TokenAmount;
Expand Down Expand Up @@ -42,6 +43,8 @@ pub struct DealProposal {
pub client_collateral: TokenAmount,
}

impl Cbor for DealProposal {}

impl DealProposal {
pub fn duration(&self) -> ChainEpoch {
self.end_epoch - self.start_epoch
Expand Down
Loading