Documentation ¶
Index ¶
- func ApplyRequest(ctx sdk.Context, k Keeper, chainID string, request types.Request) error
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- type Keeper
- func (k Keeper) AppendRequest(ctx sdk.Context, request types.Request) uint64
- func (k Keeper) Chain(c context.Context, req *types.QueryGetChainRequest) (*types.QueryGetChainResponse, error)
- func (k Keeper) ChainAll(c context.Context, req *types.QueryAllChainRequest) (*types.QueryAllChainResponse, error)
- func (k Keeper) GenesisAccount(c context.Context, req *types.QueryGetGenesisAccountRequest) (*types.QueryGetGenesisAccountResponse, error)
- func (k Keeper) GenesisAccountAll(c context.Context, req *types.QueryAllGenesisAccountRequest) (*types.QueryAllGenesisAccountResponse, error)
- func (k Keeper) GenesisValidator(c context.Context, req *types.QueryGetGenesisValidatorRequest) (*types.QueryGetGenesisValidatorResponse, error)
- func (k Keeper) GenesisValidatorAll(c context.Context, req *types.QueryAllGenesisValidatorRequest) (*types.QueryAllGenesisValidatorResponse, error)
- func (k Keeper) GetAllChain(ctx sdk.Context) (list []types.Chain)
- func (k Keeper) GetAllChainNameCount(ctx sdk.Context) (list []types.ChainNameCount)
- func (k Keeper) GetAllGenesisAccount(ctx sdk.Context) (list []types.GenesisAccount)
- func (k Keeper) GetAllGenesisValidator(ctx sdk.Context) (list []types.GenesisValidator)
- func (k Keeper) GetAllRequest(ctx sdk.Context) (list []types.Request)
- func (k Keeper) GetAllVestedAccount(ctx sdk.Context) (list []types.VestedAccount)
- func (k Keeper) GetChain(ctx sdk.Context, chainID string) (val types.Chain, found bool)
- func (k Keeper) GetChainNameCount(ctx sdk.Context, chainName string) (val types.ChainNameCount, found bool)
- func (k Keeper) GetGenesisAccount(ctx sdk.Context, chainID string, address string) (val types.GenesisAccount, found bool)
- func (k Keeper) GetGenesisValidator(ctx sdk.Context, chainID string, address string) (val types.GenesisValidator, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetRequest(ctx sdk.Context, chainID string, requestID uint64) (val types.Request, found bool)
- func (k Keeper) GetRequestCount(ctx sdk.Context, chainID string) uint64
- func (k Keeper) GetVestedAccount(ctx sdk.Context, chainID, address string) (val types.VestedAccount, found bool)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) MaxLaunchTime(ctx sdk.Context) (res uint64)
- func (k Keeper) MinLaunchTime(ctx sdk.Context) (res uint64)
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveChain(ctx sdk.Context, chainID string)
- func (k Keeper) RemoveChainNameCount(ctx sdk.Context, chainName string)
- func (k Keeper) RemoveGenesisAccount(ctx sdk.Context, chainID string, address string)
- func (k Keeper) RemoveGenesisValidator(ctx sdk.Context, chainID string, address string)
- func (k Keeper) RemoveRequest(ctx sdk.Context, chainID string, requestID uint64)
- func (k Keeper) RemoveVestedAccount(ctx sdk.Context, chainID, address string)
- func (k Keeper) Request(c context.Context, req *types.QueryGetRequestRequest) (*types.QueryGetRequestResponse, error)
- func (k Keeper) RequestAll(c context.Context, req *types.QueryAllRequestRequest) (*types.QueryAllRequestResponse, error)
- func (k Keeper) SetChain(ctx sdk.Context, chain types.Chain)
- func (k Keeper) SetChainNameCount(ctx sdk.Context, chainNameCount types.ChainNameCount)
- func (k Keeper) SetGenesisAccount(ctx sdk.Context, genesisAccount types.GenesisAccount)
- func (k Keeper) SetGenesisValidator(ctx sdk.Context, genesisValidator types.GenesisValidator)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetRequest(ctx sdk.Context, request types.Request)
- func (k Keeper) SetRequestCount(ctx sdk.Context, chainID string, count uint64)
- func (k Keeper) SetVestedAccount(ctx sdk.Context, vestedAccount types.VestedAccount)
- func (k Keeper) VestedAccount(c context.Context, req *types.QueryGetVestedAccountRequest) (*types.QueryGetVestedAccountResponse, error)
- func (k Keeper) VestedAccountAll(c context.Context, req *types.QueryAllVestedAccountRequest) (*types.QueryAllVestedAccountResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyRequest ¶
ApplyRequest approves the request and performs the launch information changes
func NewMsgServerImpl ¶
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 ¶
AppendRequest appends a request for a chain in the store with a new id and update the count
func (Keeper) Chain ¶
func (k Keeper) Chain(c context.Context, req *types.QueryGetChainRequest) (*types.QueryGetChainResponse, error)
func (Keeper) ChainAll ¶
func (k Keeper) ChainAll(c context.Context, req *types.QueryAllChainRequest) (*types.QueryAllChainResponse, error)
func (Keeper) GenesisAccount ¶
func (k Keeper) GenesisAccount(c context.Context, req *types.QueryGetGenesisAccountRequest) (*types.QueryGetGenesisAccountResponse, error)
func (Keeper) GenesisAccountAll ¶
func (k Keeper) GenesisAccountAll(c context.Context, req *types.QueryAllGenesisAccountRequest) (*types.QueryAllGenesisAccountResponse, error)
func (Keeper) GenesisValidator ¶
func (k Keeper) GenesisValidator(c context.Context, req *types.QueryGetGenesisValidatorRequest) (*types.QueryGetGenesisValidatorResponse, error)
func (Keeper) GenesisValidatorAll ¶
func (k Keeper) GenesisValidatorAll(c context.Context, req *types.QueryAllGenesisValidatorRequest) (*types.QueryAllGenesisValidatorResponse, error)
func (Keeper) GetAllChain ¶
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 ¶
GetAllRequest returns all request
func (Keeper) GetAllVestedAccount ¶
func (k Keeper) GetAllVestedAccount(ctx sdk.Context) (list []types.VestedAccount)
GetAllVestedAccount returns all vestedAccount
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) 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 ¶
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) MaxLaunchTime ¶
MaxLaunchTime returns the maximum launch time param
func (Keeper) MinLaunchTime ¶
MinLaunchTime returns the minimum launch time param
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveChain ¶
RemoveChain removes a chain from the store
func (Keeper) RemoveChainNameCount ¶
RemoveChainNameCount removes a chainNameCount from the store
func (Keeper) RemoveGenesisAccount ¶
RemoveGenesisAccount removes a genesisAccount from the store
func (Keeper) RemoveGenesisValidator ¶
RemoveGenesisValidator removes a genesisValidator from the store
func (Keeper) RemoveRequest ¶
RemoveRequest removes a request from the store
func (Keeper) RemoveVestedAccount ¶
RemoveVestedAccount removes a vestedAccount from the store
func (Keeper) Request ¶
func (k Keeper) Request(c context.Context, req *types.QueryGetRequestRequest) (*types.QueryGetRequestResponse, error)
func (Keeper) RequestAll ¶
func (k Keeper) RequestAll(c context.Context, req *types.QueryAllRequestRequest) (*types.QueryAllRequestResponse, error)
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) SetRequest ¶
SetRequest set a specific request in the store from its index
func (Keeper) SetRequestCount ¶
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
func (Keeper) VestedAccount ¶
func (k Keeper) VestedAccount(c context.Context, req *types.QueryGetVestedAccountRequest) (*types.QueryGetVestedAccountResponse, error)
func (Keeper) VestedAccountAll ¶
func (k Keeper) VestedAccountAll(c context.Context, req *types.QueryAllVestedAccountRequest) (*types.QueryAllVestedAccountResponse, error)
Source Files ¶
- chain.go
- chain_name_count.go
- genesis_account.go
- genesis_validator.go
- grpc_query.go
- grpc_query_chain.go
- grpc_query_genesis_account.go
- grpc_query_genesis_validator.go
- grpc_query_params.go
- grpc_query_request.go
- grpc_query_vested_account.go
- keeper.go
- msg_server.go
- msg_server_create_chain.go
- msg_server_edit_chain.go
- msg_server_request_add_account.go
- msg_server_request_add_validator.go
- msg_server_request_add_vested_account.go
- msg_server_request_remove_account.go
- msg_server_request_remove_validator.go
- msg_server_revert_launch.go
- msg_server_settle_request.go
- msg_server_trigger_launch.go
- params.go
- request.go
- vested_account.go