Documentation ¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func PrintPanicRecoveryError(ctx sdk.Context, recoveryError interface{}) error
- type Keeper
- func (k Keeper) BeforeUpdateStateRecoverable(ctx sdk.Context, seqAddr string, rollappId string) (err error)
- func (k Keeper) BlockHeightToFinalizationQueue(c context.Context, req *types.QueryGetBlockHeightToFinalizationQueueRequest) (*types.QueryGetBlockHeightToFinalizationQueueResponse, error)
- func (k Keeper) BlockHeightToFinalizationQueueAll(c context.Context, req *types.QueryAllBlockHeightToFinalizationQueueRequest) (*types.QueryAllBlockHeightToFinalizationQueueResponse, error)
- func (k Keeper) DeployerWhitelist(ctx sdk.Context) (res []types.DeployerParams)
- func (k Keeper) DisputePeriodInBlocks(ctx sdk.Context) (res uint64)
- func (k Keeper) FindStateInfoByHeight(ctx sdk.Context, rollappId string, height uint64) (*types.StateInfo, error)
- func (k Keeper) GetAllBlockHeightToFinalizationQueue(ctx sdk.Context) (list []types.BlockHeightToFinalizationQueue)
- func (k Keeper) GetAllLatestFinalizedStateIndex(ctx sdk.Context) (list []types.StateInfoIndex)
- func (k Keeper) GetAllLatestStateInfoIndex(ctx sdk.Context) (list []types.StateInfoIndex)
- func (k Keeper) GetAllRollapp(ctx sdk.Context) (list []types.Rollapp)
- func (k Keeper) GetAllStateInfo(ctx sdk.Context) (list []types.StateInfo)
- func (k Keeper) GetBlockHeightToFinalizationQueue(ctx sdk.Context, finalizationHeight uint64) (val types.BlockHeightToFinalizationQueue, found bool)
- func (k *Keeper) GetHooks() types.RollappHooks
- func (k Keeper) GetLatestFinalizedStateIndex(ctx sdk.Context, rollappId string) (val types.StateInfoIndex, found bool)
- func (k Keeper) GetLatestStateInfoIndex(ctx sdk.Context, rollappId string) (val types.StateInfoIndex, found bool)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetRollapp(ctx sdk.Context, rollappId string) (val types.Rollapp, found bool)
- func (k Keeper) GetStateInfo(ctx sdk.Context, rollappId string, index uint64) (val types.StateInfo, found bool)
- func (k Keeper) GetStateInfoByHeight(goCtx context.Context, req *types.QueryGetStateInfoByHeightRequest) (*types.QueryGetStateInfoByHeightResponse, error)
- func (k Keeper) LatestFinalizedStateInfo(goCtx context.Context, req *types.QueryGetLatestFinalizedStateInfoRequest) (*types.QueryGetLatestFinalizedStateInfoResponse, error)
- func (k Keeper) LatestStateInfoIndex(c context.Context, req *types.QueryGetLatestStateInfoIndexRequest) (*types.QueryGetLatestStateInfoIndexResponse, error)
- func (k Keeper) LatestStateInfoIndexAll(c context.Context, req *types.QueryAllLatestStateInfoIndexRequest) (*types.QueryAllLatestStateInfoIndexResponse, error)
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
- func (k Keeper) RemoveBlockHeightToFinalizationQueue(ctx sdk.Context, finalizationHeight uint64)
- func (k Keeper) RemoveLatestFinalizedStateIndex(ctx sdk.Context, rollappId string)
- func (k Keeper) RemoveLatestStateInfoIndex(ctx sdk.Context, rollappId string)
- func (k Keeper) RemoveRollapp(ctx sdk.Context, rollappId string)
- func (k Keeper) RemoveStateInfo(ctx sdk.Context, rollappId string, index uint64)
- func (k Keeper) Rollapp(c context.Context, req *types.QueryGetRollappRequest) (*types.QueryGetRollappResponse, error)
- func (k Keeper) RollappAll(c context.Context, req *types.QueryAllRollappRequest) (*types.QueryAllRollappResponse, error)
- func (k Keeper) SetBlockHeightToFinalizationQueue(ctx sdk.Context, ...)
- func (k *Keeper) SetHooks(sh types.RollappHooks) *Keeper
- func (k Keeper) SetLatestFinalizedStateIndex(ctx sdk.Context, latestFinalizedStateIndex types.StateInfoIndex)
- func (k Keeper) SetLatestStateInfoIndex(ctx sdk.Context, latestStateInfoIndex types.StateInfoIndex)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetRollapp(ctx sdk.Context, rollapp types.Rollapp)
- func (k Keeper) SetStateInfo(ctx sdk.Context, stateInfo types.StateInfo)
- func (k Keeper) StateInfo(c context.Context, req *types.QueryGetStateInfoRequest) (*types.QueryGetStateInfoResponse, error)
- func (k Keeper) StateInfoAll(c context.Context, req *types.QueryAllStateInfoRequest) (*types.QueryAllStateInfoResponse, error)
- type RollappRecoverableHooks
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func PrintPanicRecoveryError ¶
PrintPanicRecoveryError error logs the recoveryError, along with the stacktrace, if it can be parsed. If not emits them to stdout.
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.BinaryCodec, storeKey, memKey sdk.StoreKey, ps paramtypes.Subspace, ) *Keeper
func (Keeper) BeforeUpdateStateRecoverable ¶
func (k Keeper) BeforeUpdateStateRecoverable(ctx sdk.Context, seqAddr string, rollappId string) (err error)
BeforeUpdateState - call hook if registered incase of panic, drop the state machine change and return the error.
func (Keeper) BlockHeightToFinalizationQueue ¶
func (k Keeper) BlockHeightToFinalizationQueue(c context.Context, req *types.QueryGetBlockHeightToFinalizationQueueRequest) (*types.QueryGetBlockHeightToFinalizationQueueResponse, error)
func (Keeper) BlockHeightToFinalizationQueueAll ¶
func (k Keeper) BlockHeightToFinalizationQueueAll(c context.Context, req *types.QueryAllBlockHeightToFinalizationQueueRequest) (*types.QueryAllBlockHeightToFinalizationQueueResponse, error)
func (Keeper) DeployerWhitelist ¶
func (k Keeper) DeployerWhitelist(ctx sdk.Context) (res []types.DeployerParams)
DeployerWhitelist returns the DeployerWhitelist param
func (Keeper) DisputePeriodInBlocks ¶
DisputePeriodInBlocks returns the DisputePeriodInBlocks param
func (Keeper) FindStateInfoByHeight ¶
func (Keeper) GetAllBlockHeightToFinalizationQueue ¶
func (k Keeper) GetAllBlockHeightToFinalizationQueue(ctx sdk.Context) (list []types.BlockHeightToFinalizationQueue)
GetAllBlockHeightToFinalizationQueue returns all blockHeightToFinalizationQueue
func (Keeper) GetAllLatestFinalizedStateIndex ¶
func (k Keeper) GetAllLatestFinalizedStateIndex(ctx sdk.Context) (list []types.StateInfoIndex)
GetAllLatestFinalizedStateIndex returns all latestFinalizedStateIndex
func (Keeper) GetAllLatestStateInfoIndex ¶
func (k Keeper) GetAllLatestStateInfoIndex(ctx sdk.Context) (list []types.StateInfoIndex)
GetAllLatestStateInfoIndex returns all latestStateInfoIndex
func (Keeper) GetAllRollapp ¶
GetAllRollapp returns all rollapp
func (Keeper) GetAllStateInfo ¶
GetAllStateInfo returns all stateInfo
func (Keeper) GetBlockHeightToFinalizationQueue ¶
func (k Keeper) GetBlockHeightToFinalizationQueue( ctx sdk.Context, finalizationHeight uint64, ) (val types.BlockHeightToFinalizationQueue, found bool)
GetBlockHeightToFinalizationQueue returns a blockHeightToFinalizationQueue from its index
func (*Keeper) GetHooks ¶
func (k *Keeper) GetHooks() types.RollappHooks
func (Keeper) GetLatestFinalizedStateIndex ¶
func (k Keeper) GetLatestFinalizedStateIndex( ctx sdk.Context, rollappId string, ) (val types.StateInfoIndex, found bool)
GetLatestFinalizedStateIndex returns a latestFinalizedStateIndex from its index
func (Keeper) GetLatestStateInfoIndex ¶
func (k Keeper) GetLatestStateInfoIndex( ctx sdk.Context, rollappId string, ) (val types.StateInfoIndex, found bool)
GetLatestStateInfoIndex returns a latestStateInfoIndex from its index
func (Keeper) GetRollapp ¶
GetRollapp returns a rollapp from its index
func (Keeper) GetStateInfo ¶
func (k Keeper) GetStateInfo( ctx sdk.Context, rollappId string, index uint64, ) (val types.StateInfo, found bool)
GetStateInfo returns a stateInfo from its index
func (Keeper) GetStateInfoByHeight ¶
func (k Keeper) GetStateInfoByHeight(goCtx context.Context, req *types.QueryGetStateInfoByHeightRequest) (*types.QueryGetStateInfoByHeightResponse, error)
func (Keeper) LatestFinalizedStateInfo ¶
func (k Keeper) LatestFinalizedStateInfo(goCtx context.Context, req *types.QueryGetLatestFinalizedStateInfoRequest) (*types.QueryGetLatestFinalizedStateInfoResponse, error)
func (Keeper) LatestStateInfoIndex ¶
func (k Keeper) LatestStateInfoIndex(c context.Context, req *types.QueryGetLatestStateInfoIndexRequest) (*types.QueryGetLatestStateInfoIndexResponse, error)
func (Keeper) LatestStateInfoIndexAll ¶
func (k Keeper) LatestStateInfoIndexAll(c context.Context, req *types.QueryAllLatestStateInfoIndexRequest) (*types.QueryAllLatestStateInfoIndexResponse, error)
func (Keeper) Params ¶
func (k Keeper) Params(c context.Context, req *types.QueryParamsRequest) (*types.QueryParamsResponse, error)
func (Keeper) RemoveBlockHeightToFinalizationQueue ¶
RemoveBlockHeightToFinalizationQueue removes a blockHeightToFinalizationQueue from the store
func (Keeper) RemoveLatestFinalizedStateIndex ¶
RemoveLatestFinalizedStateIndex removes a latestFinalizedStateIndex from the store
func (Keeper) RemoveLatestStateInfoIndex ¶
RemoveLatestStateInfoIndex removes a latestStateInfoIndex from the store
func (Keeper) RemoveRollapp ¶
RemoveRollapp removes a rollapp from the store
func (Keeper) RemoveStateInfo ¶
RemoveStateInfo removes a stateInfo from the store
func (Keeper) Rollapp ¶
func (k Keeper) Rollapp(c context.Context, req *types.QueryGetRollappRequest) (*types.QueryGetRollappResponse, error)
func (Keeper) RollappAll ¶
func (k Keeper) RollappAll(c context.Context, req *types.QueryAllRollappRequest) (*types.QueryAllRollappResponse, error)
func (Keeper) SetBlockHeightToFinalizationQueue ¶
func (k Keeper) SetBlockHeightToFinalizationQueue(ctx sdk.Context, blockHeightToFinalizationQueue types.BlockHeightToFinalizationQueue)
SetBlockHeightToFinalizationQueue set a specific blockHeightToFinalizationQueue in the store from its index
func (*Keeper) SetHooks ¶
func (k *Keeper) SetHooks(sh types.RollappHooks) *Keeper
Set the rollapp hooks
func (Keeper) SetLatestFinalizedStateIndex ¶
func (k Keeper) SetLatestFinalizedStateIndex(ctx sdk.Context, latestFinalizedStateIndex types.StateInfoIndex)
SetLatestFinalizedStateIndex set a specific latestFinalizedStateIndex in the store from its index
func (Keeper) SetLatestStateInfoIndex ¶
func (k Keeper) SetLatestStateInfoIndex(ctx sdk.Context, latestStateInfoIndex types.StateInfoIndex)
SetLatestStateInfoIndex set a specific latestStateInfoIndex in the store from its index
func (Keeper) SetRollapp ¶
SetRollapp set a specific rollapp in the store from its index
func (Keeper) SetStateInfo ¶
SetStateInfo set a specific stateInfo in the store from its index
func (Keeper) StateInfo ¶
func (k Keeper) StateInfo(c context.Context, req *types.QueryGetStateInfoRequest) (*types.QueryGetStateInfoResponse, error)
func (Keeper) StateInfoAll ¶
func (k Keeper) StateInfoAll(c context.Context, req *types.QueryAllStateInfoRequest) (*types.QueryAllStateInfoResponse, error)
type RollappRecoverableHooks ¶
type RollappRecoverableHooks interface {
BeforeUpdateStateRecoverable(ctx sdk.Context, seqAddr string, rollappId string) (err error) // Must be called when a rollapp's state changes
}
Implements RollappHooks interface in a recoverable manner RollappHooks event hooks for rollapp object (noalias)
Source Files ¶
- block_height_to_finalization_queue.go
- grpc_query.go
- grpc_query_block_height_to_finalization_queue.go
- grpc_query_get_state_info_by_height.go
- grpc_query_latest_finalized_state_info.go
- grpc_query_latest_state_info_index.go
- grpc_query_params.go
- grpc_query_rollapp.go
- grpc_query_state_info.go
- hooks.go
- keeper.go
- latest_finalized_state_index.go
- latest_state_info_index.go
- msg_server.go
- msg_server_create_rollapp.go
- msg_server_update_state.go
- params.go
- rollapp.go
- state_info.go