Merge pull request #5850 from filecoin-project/feat/markets-dealid
expose NextID from nice market actor interface
This commit is contained in:
commit
fc4f60e528
@ -61,6 +61,7 @@ type State interface {
|
||||
VerifyDealsForActivation(
|
||||
minerAddr address.Address, deals []abi.DealID, currEpoch, sectorExpiry abi.ChainEpoch,
|
||||
) (weight, verifiedWeight abi.DealWeight, err error)
|
||||
NextID() (abi.DealID, error)
|
||||
}
|
||||
|
||||
type BalanceTable interface {
|
||||
|
@ -105,6 +105,10 @@ func (s *state0) VerifyDealsForActivation(
|
||||
return market0.ValidateDealsForActivation(&s.State, s.store, deals, minerAddr, sectorExpiry, currEpoch)
|
||||
}
|
||||
|
||||
func (s *state0) NextID() (abi.DealID, error) {
|
||||
return s.State.NextID, nil
|
||||
}
|
||||
|
||||
type balanceTable0 struct {
|
||||
*adt0.BalanceTable
|
||||
}
|
||||
|
@ -106,6 +106,10 @@ func (s *state2) VerifyDealsForActivation(
|
||||
return w, vw, err
|
||||
}
|
||||
|
||||
func (s *state2) NextID() (abi.DealID, error) {
|
||||
return s.State.NextID, nil
|
||||
}
|
||||
|
||||
type balanceTable2 struct {
|
||||
*adt2.BalanceTable
|
||||
}
|
||||
|
@ -106,6 +106,10 @@ func (s *state3) VerifyDealsForActivation(
|
||||
return w, vw, err
|
||||
}
|
||||
|
||||
func (s *state3) NextID() (abi.DealID, error) {
|
||||
return s.State.NextID, nil
|
||||
}
|
||||
|
||||
type balanceTable3 struct {
|
||||
*adt3.BalanceTable
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user