expose NextID from nice market actor interface
This commit is contained in:
parent
43d9cc36a4
commit
6bcf92f71a
@ -61,6 +61,7 @@ type State interface {
|
|||||||
VerifyDealsForActivation(
|
VerifyDealsForActivation(
|
||||||
minerAddr address.Address, deals []abi.DealID, currEpoch, sectorExpiry abi.ChainEpoch,
|
minerAddr address.Address, deals []abi.DealID, currEpoch, sectorExpiry abi.ChainEpoch,
|
||||||
) (weight, verifiedWeight abi.DealWeight, err error)
|
) (weight, verifiedWeight abi.DealWeight, err error)
|
||||||
|
NextID() (abi.DealID, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type BalanceTable interface {
|
type BalanceTable interface {
|
||||||
|
@ -105,6 +105,10 @@ func (s *state0) VerifyDealsForActivation(
|
|||||||
return market0.ValidateDealsForActivation(&s.State, s.store, deals, minerAddr, sectorExpiry, currEpoch)
|
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 {
|
type balanceTable0 struct {
|
||||||
*adt0.BalanceTable
|
*adt0.BalanceTable
|
||||||
}
|
}
|
||||||
|
@ -106,6 +106,10 @@ func (s *state2) VerifyDealsForActivation(
|
|||||||
return w, vw, err
|
return w, vw, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *state2) NextID() (abi.DealID, error) {
|
||||||
|
return s.State.NextID, nil
|
||||||
|
}
|
||||||
|
|
||||||
type balanceTable2 struct {
|
type balanceTable2 struct {
|
||||||
*adt2.BalanceTable
|
*adt2.BalanceTable
|
||||||
}
|
}
|
||||||
|
@ -106,6 +106,10 @@ func (s *state3) VerifyDealsForActivation(
|
|||||||
return w, vw, err
|
return w, vw, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *state3) NextID() (abi.DealID, error) {
|
||||||
|
return s.State.NextID, nil
|
||||||
|
}
|
||||||
|
|
||||||
type balanceTable3 struct {
|
type balanceTable3 struct {
|
||||||
*adt3.BalanceTable
|
*adt3.BalanceTable
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user