Documentation ¶
Index ¶
- Constants
- Variables
- func ParamTypeTable() params.TypeTable
- type Keeper
- func (keeper *Keeper) EndBlock(ctx sdk.Context)
- func (keeper *Keeper) EndBreatheBlock(ctx sdk.Context)
- func (keeper *Keeper) ExecuteAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult
- func (keeper *Keeper) ExecuteFailAckPackage(ctx sdk.Context, payload []byte) sdk.ExecuteResult
- func (keeper *Keeper) ExecuteSynPackage(ctx sdk.Context, payload []byte, _ int64) sdk.ExecuteResult
- func (keeper *Keeper) GetBCParams(ctx sdk.Context) ([]types.BCParam, sdk.Error)
- func (keeper *Keeper) GetCodeC() *codec.Codec
- func (keeper *Keeper) GetFeeParams(ctx sdk.Context) []types.FeeParam
- func (keeper *Keeper) GetLastBCParamChangeProposalId(ctx sdk.Context) types.LastProposalID
- func (keeper *Keeper) GetLastSCParamChangeProposalId(ctx sdk.Context) types.LastProposalID
- func (keeper *Keeper) GetSCParams(ctx sdk.Context, sideChainId string) ([]types.SCParam, sdk.Error)
- func (keeper *Keeper) GetSubscriberBCParamSpace() []*types.BCParamSpaceProto
- func (keeper *Keeper) GetSubscriberParamSpace() []*types.ParamSpaceProto
- func (keeper *Keeper) InitGenesis(ctx sdk.Context, params types.GenesisState)
- func (keeper *Keeper) Load(ctx sdk.Context)
- func (keeper *Keeper) Logger(ctx sdk.Context) log.Logger
- func (keeper *Keeper) SaveParamChangeToIbc(ctx sdk.Context, sideChainId string, paramChange types.CSCParamChange) (seq uint64, sdkErr sdk.Error)
- func (keeper *Keeper) SetFeeParams(ctx sdk.Context, fp []types.FeeParam)
- func (keeper *Keeper) SetGovKeeper(govKeeper *gov.Keeper)
- func (keeper *Keeper) SetLastBCParamChangeProposalId(ctx sdk.Context, id types.LastProposalID)
- func (keeper *Keeper) SetLastSCParamChangeProposalId(ctx sdk.Context, id types.LastProposalID)
- func (keeper *Keeper) SetupForSideChain(scKeeper *sidechain.Keeper, ibcKeeper *ibc.Keeper)
- func (keeper *Keeper) SubscribeBCParamChange(updateCb func(sdk.Context, interface{}), spaceProto *types.BCParamSpaceProto)
- func (keeper *Keeper) SubscribeGenesisEvent(c func(sdk.Context, interface{}))
- func (keeper *Keeper) SubscribeLoadEvent(c func(sdk.Context, interface{}))
- func (keeper *Keeper) SubscribeParamChange(updateCb func(sdk.Context, interface{}), spaceProto *types.ParamSpaceProto, ...)
- func (keeper *Keeper) SubscribeUpdateEvent(c func(sdk.Context, interface{}))
- func (keeper *Keeper) UpdateFeeParams(ctx sdk.Context, updates []types.FeeParam)
Constants ¶
View Source
const ( ChannelName = "params" ChannelId = sdk.ChannelID(9) )
View Source
const ( ParamSpace = "paramhub" SafeToleratePeriod = 2 * 7 * 24 * 60 * 60 * time.Second // 2 weeks )
Variables ¶
View Source
var ( ParamStoreKeyLastFeeChangeProposalID = []byte("lastFeeChangeProposalID") ParamStoreKeyFees = []byte("fees") // for side chain ParamStoreKeySCLastParamsChangeProposalID = []byte("SCLastParamsChangeProposalID") // for beacon chain ParamStoreKeyBCLastParamsChangeProposalID = []byte("BCLastParamsChangeProposalID") )
Functions ¶
func ParamTypeTable ¶
Types ¶
type Keeper ¶
type Keeper struct { params.Keeper ScKeeper *sidechain.Keeper // contains filtered or unexported fields }
func NewKeeper ¶
func NewKeeper(cdc *codec.Codec, key *sdk.KVStoreKey, tkey *sdk.TransientStoreKey) *Keeper
func (*Keeper) EndBreatheBlock ¶
func (*Keeper) ExecuteAckPackage ¶
func (*Keeper) ExecuteFailAckPackage ¶
When the ack application crash, payload is the payload of the origin package.
func (*Keeper) ExecuteSynPackage ¶
implement cross chain app
func (*Keeper) GetBCParams ¶
func (*Keeper) GetLastBCParamChangeProposalId ¶
func (keeper *Keeper) GetLastBCParamChangeProposalId(ctx sdk.Context) types.LastProposalID
func (*Keeper) GetLastSCParamChangeProposalId ¶
func (keeper *Keeper) GetLastSCParamChangeProposalId(ctx sdk.Context) types.LastProposalID
func (*Keeper) GetSCParams ¶
func (*Keeper) GetSubscriberBCParamSpace ¶
func (keeper *Keeper) GetSubscriberBCParamSpace() []*types.BCParamSpaceProto
func (*Keeper) GetSubscriberParamSpace ¶
func (keeper *Keeper) GetSubscriberParamSpace() []*types.ParamSpaceProto
func (*Keeper) InitGenesis ¶
func (keeper *Keeper) InitGenesis(ctx sdk.Context, params types.GenesisState)
func (*Keeper) SaveParamChangeToIbc ¶
func (*Keeper) SetFeeParams ¶
func (*Keeper) SetGovKeeper ¶
func (*Keeper) SetLastBCParamChangeProposalId ¶
func (keeper *Keeper) SetLastBCParamChangeProposalId(ctx sdk.Context, id types.LastProposalID)
func (*Keeper) SetLastSCParamChangeProposalId ¶
func (keeper *Keeper) SetLastSCParamChangeProposalId(ctx sdk.Context, id types.LastProposalID)
func (*Keeper) SetupForSideChain ¶
func (*Keeper) SubscribeBCParamChange ¶
func (keeper *Keeper) SubscribeBCParamChange(updateCb func(sdk.Context, interface{}), spaceProto *types.BCParamSpaceProto)
func (*Keeper) SubscribeGenesisEvent ¶
func (*Keeper) SubscribeLoadEvent ¶
func (*Keeper) SubscribeParamChange ¶
func (*Keeper) SubscribeUpdateEvent ¶
Click to show internal directories.
Click to hide internal directories.