github.com/InjectiveLabs/sdk-go@v1.53.0/chain/exchange/types/stake_grants.go (about) 1 package types 2 3 import ( 4 "cosmossdk.io/math" 5 sdk "github.com/cosmos/cosmos-sdk/types" 6 ) 7 8 func NewActiveGrant(granter sdk.AccAddress, amount math.Int) *ActiveGrant { 9 return &ActiveGrant{ 10 Granter: granter.String(), 11 Amount: amount, 12 } 13 } 14 15 func NewEffectiveGrant(granter string, amount math.Int, isValid bool) *EffectiveGrant { 16 return &EffectiveGrant{ 17 Granter: granter, 18 NetGrantedStake: amount, 19 IsValid: isValid, 20 } 21 }