keeper

package
v0.9.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyRequest

func ApplyRequest(
	ctx sdk.Context,
	k Keeper,
	chainID string,
	request types.Request,
) error

ApplyRequest approves the request and performs the launch information changes

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.Marshaler,
	storeKey,
	memKey sdk.StoreKey,
	ps paramtypes.Subspace,

	profileKeeper types.ProfileKeeper,
) *Keeper

func (Keeper) AppendRequest

func (k Keeper) AppendRequest(ctx sdk.Context, request types.Request) uint64

AppendRequest appends a request for a chain in the store with a new id and update the count

func (Keeper) GetAllChain

func (k Keeper) GetAllChain(ctx sdk.Context) (list []types.Chain)

GetAllChain returns all chain

func (Keeper) GetAllChainNameCount

func (k Keeper) GetAllChainNameCount(ctx sdk.Context) (list []types.ChainNameCount)

GetAllChainNameCount returns all chainNameCount

func (Keeper) GetAllGenesisAccount

func (k Keeper) GetAllGenesisAccount(ctx sdk.Context) (list []types.GenesisAccount)

GetAllGenesisAccount returns all genesisAccount

func (Keeper) GetAllGenesisValidator

func (k Keeper) GetAllGenesisValidator(ctx sdk.Context) (list []types.GenesisValidator)

GetAllGenesisValidator returns all genesisValidator

func (Keeper) GetAllRequest

func (k Keeper) GetAllRequest(ctx sdk.Context) (list []types.Request)

GetAllRequest returns all request

func (Keeper) GetAllVestedAccount

func (k Keeper) GetAllVestedAccount(ctx sdk.Context) (list []types.VestedAccount)

GetAllVestedAccount returns all vestedAccount

func (Keeper) GetChain

func (k Keeper) GetChain(
	ctx sdk.Context,
	chainID string,
) (val types.Chain, found bool)

GetChain returns a chain from its index

func (Keeper) GetChainNameCount

func (k Keeper) GetChainNameCount(
	ctx sdk.Context,
	chainName string,
) (val types.ChainNameCount, found bool)

GetChainNameCount returns a chainNameCount from its index

func (Keeper) GetGenesisAccount

func (k Keeper) GetGenesisAccount(
	ctx sdk.Context,
	chainID string,
	address string,
) (val types.GenesisAccount, found bool)

GetGenesisAccount returns a genesisAccount from its index

func (Keeper) GetGenesisValidator

func (k Keeper) GetGenesisValidator(
	ctx sdk.Context,
	chainID string,
	address string,

) (val types.GenesisValidator, found bool)

GetGenesisValidator returns a genesisValidator from its index

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

Get all parameteras as types.Params

func (Keeper) GetRequest

func (k Keeper) GetRequest(
	ctx sdk.Context,
	chainID string,
	requestID uint64,
) (val types.Request, found bool)

GetRequest returns a request from its index

func (Keeper) GetRequestCount

func (k Keeper) GetRequestCount(ctx sdk.Context, chainID string) uint64

GetRequestCount get the total number of request for a specific chain ID

func (Keeper) GetVestedAccount

func (k Keeper) GetVestedAccount(
	ctx sdk.Context,
	chainID,
	address string,

) (val types.VestedAccount, found bool)

GetVestedAccount returns a vestedAccount from its index

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) MaxLaunchTime

func (k Keeper) MaxLaunchTime(ctx sdk.Context) (res uint64)

MaxLaunchTime returns the maximum launch time param

func (Keeper) MinLaunchTime

func (k Keeper) MinLaunchTime(ctx sdk.Context) (res uint64)

MinLaunchTime returns the minimum launch time param

func (Keeper) Params

func (Keeper) RemoveChain

func (k Keeper) RemoveChain(
	ctx sdk.Context,
	chainID string,
)

RemoveChain removes a chain from the store

func (Keeper) RemoveChainNameCount

func (k Keeper) RemoveChainNameCount(
	ctx sdk.Context,
	chainName string,
)

RemoveChainNameCount removes a chainNameCount from the store

func (Keeper) RemoveGenesisAccount

func (k Keeper) RemoveGenesisAccount(
	ctx sdk.Context,
	chainID string,
	address string,

)

RemoveGenesisAccount removes a genesisAccount from the store

func (Keeper) RemoveGenesisValidator

func (k Keeper) RemoveGenesisValidator(
	ctx sdk.Context,
	chainID string,
	address string,

)

RemoveGenesisValidator removes a genesisValidator from the store

func (Keeper) RemoveRequest

func (k Keeper) RemoveRequest(
	ctx sdk.Context,
	chainID string,
	requestID uint64,
)

RemoveRequest removes a request from the store

func (Keeper) RemoveVestedAccount

func (k Keeper) RemoveVestedAccount(
	ctx sdk.Context,
	chainID,
	address string,

)

RemoveVestedAccount removes a vestedAccount from the store

func (Keeper) SetChain

func (k Keeper) SetChain(ctx sdk.Context, chain types.Chain)

SetChain set a specific chain in the store from its index

func (Keeper) SetChainNameCount

func (k Keeper) SetChainNameCount(ctx sdk.Context, chainNameCount types.ChainNameCount)

SetChainNameCount set a specific chainNameCount in the store from its index

func (Keeper) SetGenesisAccount

func (k Keeper) SetGenesisAccount(ctx sdk.Context, genesisAccount types.GenesisAccount)

SetGenesisAccount set a specific genesisAccount in the store from its index

func (Keeper) SetGenesisValidator

func (k Keeper) SetGenesisValidator(ctx sdk.Context, genesisValidator types.GenesisValidator)

SetGenesisValidator set a specific genesisValidator in the store from its index

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

set the params

func (Keeper) SetRequest

func (k Keeper) SetRequest(ctx sdk.Context, request types.Request)

SetRequest set a specific request in the store from its index

func (Keeper) SetRequestCount

func (k Keeper) SetRequestCount(ctx sdk.Context, chainID string, count uint64)

SetRequestCount set the total number of request for a chain

func (Keeper) SetVestedAccount

func (k Keeper) SetVestedAccount(ctx sdk.Context, vestedAccount types.VestedAccount)

SetVestedAccount set a specific vestedAccount in the store from its index

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL