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) GetCodeC() *codec.Codec
- func (keeper *Keeper) GetFCParams(ctx sdk.Context) ([]types.FCParam, sdk.Error)
- func (keeper *Keeper) GetFeeParams(ctx sdk.Context) []types.FeeParam
- func (keeper *Keeper) GetLastFCParamChangeProposalId(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) GetSubscriberFCParamSpace() []*types.FCParamSpaceProto
- 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) SetLastFCParamChangeProposalId(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) SubscribeFCParamChange(updateCb func(sdk.Context, interface{}), spaceProto *types.FCParamSpaceProto)
- 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 Flash Chain ParamStoreKeyFCLastParamsChangeProposalID = []byte("FCLastParamsChangeProposalID") )
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) GetFCParams ¶ added in v0.1.4
func (*Keeper) GetLastFCParamChangeProposalId ¶ added in v0.1.4
func (keeper *Keeper) GetLastFCParamChangeProposalId(ctx sdk.Context) types.LastProposalID
func (*Keeper) GetLastSCParamChangeProposalId ¶
func (keeper *Keeper) GetLastSCParamChangeProposalId(ctx sdk.Context) types.LastProposalID
func (*Keeper) GetSCParams ¶
func (*Keeper) GetSubscriberFCParamSpace ¶ added in v0.1.4
func (keeper *Keeper) GetSubscriberFCParamSpace() []*types.FCParamSpaceProto
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) SetLastFCParamChangeProposalId ¶ added in v0.1.4
func (keeper *Keeper) SetLastFCParamChangeProposalId(ctx sdk.Context, id types.LastProposalID)
func (*Keeper) SetLastSCParamChangeProposalId ¶
func (keeper *Keeper) SetLastSCParamChangeProposalId(ctx sdk.Context, id types.LastProposalID)
func (*Keeper) SetupForSideChain ¶
func (*Keeper) SubscribeFCParamChange ¶ added in v0.1.4
func (keeper *Keeper) SubscribeFCParamChange(updateCb func(sdk.Context, interface{}), spaceProto *types.FCParamSpaceProto)
func (*Keeper) SubscribeGenesisEvent ¶
func (*Keeper) SubscribeLoadEvent ¶
func (*Keeper) SubscribeParamChange ¶
func (*Keeper) SubscribeUpdateEvent ¶
Click to show internal directories.
Click to hide internal directories.