github.com/cosmos/cosmos-sdk@v0.50.10/x/distribution/types/delegator.go (about)

     1  package types
     2  
     3  import sdkmath "cosmossdk.io/math"
     4  
     5  // create a new DelegatorStartingInfo
     6  func NewDelegatorStartingInfo(previousPeriod uint64, stake sdkmath.LegacyDec, height uint64) DelegatorStartingInfo {
     7  	return DelegatorStartingInfo{
     8  		PreviousPeriod: previousPeriod,
     9  		Stake:          stake,
    10  		Height:         height,
    11  	}
    12  }