lotus/chain/actors/builtin/multisig/v0.go

29 lines
664 B
Go
Raw Normal View History

2020-09-15 21:44:03 +00:00
package multisig
import (
"github.com/filecoin-project/go-state-types/abi"
"github.com/filecoin-project/lotus/chain/actors/adt"
"github.com/filecoin-project/specs-actors/actors/builtin/multisig"
)
type v0State struct {
multisig.State
store adt.Store
}
func (s *v0State) LockedBalance(currEpoch abi.ChainEpoch) (abi.TokenAmount, error) {
2020-09-17 06:50:59 +00:00
return s.State.AmountLocked(currEpoch - s.State.StartEpoch), nil
}
func (s *v0State) StartEpoch() abi.ChainEpoch {
return s.State.StartEpoch
}
func (s *v0State) UnlockDuration() abi.ChainEpoch {
return s.State.UnlockDuration
}
func (s *v0State) InitialBalance() abi.TokenAmount {
return s.State.InitialBalance
2020-09-15 21:44:03 +00:00
}