Skip to content

Commit

Permalink
Updates market actor (#496)
Browse files Browse the repository at this point in the history
* initial market actor updates

* fix market actor errs

* fix linting issue

* made requested changes

* update error msg

* added verifreg to internal send and mockrt

* updated multimap error handling
  • Loading branch information
dutterbutter authored Jun 18, 2020
1 parent 18f6aac commit 0f1dba0
Show file tree
Hide file tree
Showing 13 changed files with 582 additions and 443 deletions.
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");

// 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

0 comments on commit 0f1dba0

Please sign in to comment.