forked from cerc-io/laconicd
e511051f3e
* Add message service with a create bond command * Add query proto file with bonds list query * Remove legacy amino coded registration * Add bond to auth module config * Use collections package for bond module state
24 lines
645 B
Go
24 lines
645 B
Go
package keeper
|
|
|
|
import (
|
|
"git.vdb.to/cerc-io/laconic2d/x/bond"
|
|
sdk "github.com/cosmos/cosmos-sdk/types"
|
|
)
|
|
|
|
// GetMaxBondAmount max bond amount
|
|
func (k Keeper) GetMaxBondAmount(ctx sdk.Context) (res sdk.Coin) {
|
|
// TODO: Implement
|
|
return sdk.NewCoin(sdk.DefaultBondDenom, bond.DefaultMaxBondAmountTokens)
|
|
}
|
|
|
|
// GetParams - Get all parameter as types.Params.
|
|
func (k Keeper) GetParams(ctx sdk.Context) (params bond.Params) {
|
|
getMaxBondAmount := k.GetMaxBondAmount(ctx)
|
|
return bond.Params{MaxBondAmount: getMaxBondAmount}
|
|
}
|
|
|
|
// SetParams - set the params.
|
|
func (k Keeper) SetParams(ctx sdk.Context, params bond.Params) {
|
|
// TODO: Implement
|
|
}
|