Documentation ¶
Overview ¶
nolint
Index ¶
- Constants
- func ParamKeyTable() params.KeyTable
- func TestMakeCodec() *codec.Codec
- type Keeper
- func (k Keeper) AddDeposit(ctx sdk.Context, address sdk.AccAddress, coin sdk.Coin) (tags sdk.Tags, err sdk.Error)
- func (k Keeper) AddNodeIDToActiveList(ctx sdk.Context, height int64, id hub.ID)
- func (k Keeper) AddSessionIDToActiveList(ctx sdk.Context, height int64, id hub.ID)
- func (k Keeper) DeleteActiveNodeIDs(ctx sdk.Context, height int64)
- func (k Keeper) DeleteActiveSessionIDs(ctx sdk.Context, height int64)
- func (k Keeper) Deposit(ctx sdk.Context) (res sdk.Coin)
- func (k Keeper) FreeNodesCount(ctx sdk.Context) (res uint64)
- func (k Keeper) GetActiveNodeIDs(ctx sdk.Context, height int64) (ids hub.IDs)
- func (k Keeper) GetActiveSessionIDs(ctx sdk.Context, height int64) (ids hub.IDs)
- func (k Keeper) GetAllNodes(ctx sdk.Context) (nodes []types.Node)
- func (k Keeper) GetAllSessions(ctx sdk.Context) (sessions []types.Session)
- func (k Keeper) GetAllSubscriptions(ctx sdk.Context) (subscriptions []types.Subscription)
- func (k Keeper) GetNode(ctx sdk.Context, id hub.ID) (node types.Node, found bool)
- func (k Keeper) GetNodeIDByAddress(ctx sdk.Context, address sdk.AccAddress, i uint64) (id hub.ID, found bool)
- func (k Keeper) GetNodesCount(ctx sdk.Context) (count uint64)
- func (k Keeper) GetNodesCountOfAddress(ctx sdk.Context, address sdk.AccAddress) (count uint64)
- func (k Keeper) GetNodesOfAddress(ctx sdk.Context, address sdk.AccAddress) (nodes []types.Node)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetSession(ctx sdk.Context, id hub.ID) (session types.Session, found bool)
- func (k Keeper) GetSessionIDBySubscriptionID(ctx sdk.Context, i hub.ID, j uint64) (id hub.ID, found bool)
- func (k Keeper) GetSessionsCount(ctx sdk.Context) (count uint64)
- func (k Keeper) GetSessionsCountOfSubscription(ctx sdk.Context, id hub.ID) (count uint64)
- func (k Keeper) GetSessionsOfSubscription(ctx sdk.Context, id hub.ID) (sessions []types.Session)
- func (k Keeper) GetSubscription(ctx sdk.Context, id hub.ID) (subscription types.Subscription, found bool)
- func (k Keeper) GetSubscriptionIDByAddress(ctx sdk.Context, address sdk.AccAddress, i uint64) (id hub.ID, found bool)
- func (k Keeper) GetSubscriptionIDByNodeID(ctx sdk.Context, i hub.ID, j uint64) (id hub.ID, found bool)
- func (k Keeper) GetSubscriptionsCount(ctx sdk.Context) (count uint64)
- func (k Keeper) GetSubscriptionsCountOfAddress(ctx sdk.Context, address sdk.AccAddress) (count uint64)
- func (k Keeper) GetSubscriptionsCountOfNode(ctx sdk.Context, id hub.ID) (count uint64)
- func (k Keeper) GetSubscriptionsOfAddress(ctx sdk.Context, address sdk.AccAddress) (subscriptions []types.Subscription)
- func (k Keeper) GetSubscriptionsOfNode(ctx sdk.Context, id hub.ID) (subscriptions []types.Subscription)
- func (k Keeper) IterateNodes(ctx sdk.Context, fn func(index int64, node types.Node) (stop bool))
- func (k Keeper) IterateSubscriptions(ctx sdk.Context, ...)
- func (k Keeper) NodeInactiveInterval(ctx sdk.Context) (res int64)
- func (k Keeper) RemoveNodeIDFromActiveList(ctx sdk.Context, height int64, id hub.ID)
- func (k Keeper) RemoveSessionIDFromActiveList(ctx sdk.Context, height int64, id hub.ID)
- func (k Keeper) SendDeposit(ctx sdk.Context, from, toAddress sdk.AccAddress, coin sdk.Coin) (tags sdk.Tags, err sdk.Error)
- func (k Keeper) SessionInactiveInterval(ctx sdk.Context) (res int64)
- func (k Keeper) SetActiveNodeIDs(ctx sdk.Context, height int64, ids hub.IDs)
- func (k Keeper) SetActiveSessionIDs(ctx sdk.Context, height int64, ids hub.IDs)
- func (k Keeper) SetNode(ctx sdk.Context, node types.Node)
- func (k Keeper) SetNodeIDByAddress(ctx sdk.Context, address sdk.AccAddress, i uint64, id hub.ID)
- func (k Keeper) SetNodesCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetNodesCountOfAddress(ctx sdk.Context, address sdk.AccAddress, count uint64)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetSession(ctx sdk.Context, session types.Session)
- func (k Keeper) SetSessionIDBySubscriptionID(ctx sdk.Context, i hub.ID, j uint64, id hub.ID)
- func (k Keeper) SetSessionsCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetSessionsCountOfSubscription(ctx sdk.Context, id hub.ID, count uint64)
- func (k Keeper) SetSubscription(ctx sdk.Context, subscription types.Subscription)
- func (k Keeper) SetSubscriptionIDByAddress(ctx sdk.Context, address sdk.AccAddress, i uint64, id hub.ID)
- func (k Keeper) SetSubscriptionIDByNodeID(ctx sdk.Context, i hub.ID, j uint64, id hub.ID)
- func (k Keeper) SetSubscriptionsCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetSubscriptionsCountOfAddress(ctx sdk.Context, address sdk.AccAddress, count uint64)
- func (k Keeper) SetSubscriptionsCountOfNode(ctx sdk.Context, id hub.ID, count uint64)
- func (k Keeper) SubtractDeposit(ctx sdk.Context, address sdk.AccAddress, coin sdk.Coin) (tags sdk.Tags, err sdk.Error)
Constants ¶
View Source
const (
DefaultParamspace = types.ModuleName
)
Variables ¶
This section is empty.
Functions ¶
func ParamKeyTable ¶
func TestMakeCodec ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func TestCreateInput ¶
func (Keeper) AddDeposit ¶
func (Keeper) AddNodeIDToActiveList ¶
func (Keeper) AddSessionIDToActiveList ¶
func (Keeper) DeleteActiveNodeIDs ¶
func (Keeper) DeleteActiveSessionIDs ¶
func (Keeper) GetActiveNodeIDs ¶
func (Keeper) GetActiveSessionIDs ¶
func (Keeper) GetAllSessions ¶
func (Keeper) GetAllSubscriptions ¶
func (k Keeper) GetAllSubscriptions(ctx sdk.Context) (subscriptions []types.Subscription)
func (Keeper) GetNodeIDByAddress ¶
func (Keeper) GetNodesCountOfAddress ¶
func (Keeper) GetNodesOfAddress ¶
func (Keeper) GetSession ¶
func (Keeper) GetSessionIDBySubscriptionID ¶
func (Keeper) GetSessionsCountOfSubscription ¶
func (Keeper) GetSessionsOfSubscription ¶
func (Keeper) GetSubscription ¶
func (Keeper) GetSubscriptionIDByAddress ¶
func (Keeper) GetSubscriptionIDByNodeID ¶
func (Keeper) GetSubscriptionsCount ¶
func (Keeper) GetSubscriptionsCountOfAddress ¶
func (Keeper) GetSubscriptionsCountOfNode ¶
func (Keeper) GetSubscriptionsOfAddress ¶
func (k Keeper) GetSubscriptionsOfAddress(ctx sdk.Context, address sdk.AccAddress) (subscriptions []types.Subscription)
func (Keeper) GetSubscriptionsOfNode ¶
func (Keeper) IterateNodes ¶
nolint: dupl
func (Keeper) IterateSubscriptions ¶
func (k Keeper) IterateSubscriptions(ctx sdk.Context, fn func(index int64, subscription types.Subscription) (stop bool))
nolint
func (Keeper) NodeInactiveInterval ¶
func (Keeper) RemoveNodeIDFromActiveList ¶
func (Keeper) RemoveSessionIDFromActiveList ¶
func (Keeper) SendDeposit ¶
func (Keeper) SessionInactiveInterval ¶
func (Keeper) SetActiveNodeIDs ¶
func (Keeper) SetActiveSessionIDs ¶
func (Keeper) SetNodeIDByAddress ¶
func (Keeper) SetNodesCountOfAddress ¶
func (Keeper) SetSessionIDBySubscriptionID ¶
func (Keeper) SetSessionsCountOfSubscription ¶
func (Keeper) SetSubscription ¶
func (k Keeper) SetSubscription(ctx sdk.Context, subscription types.Subscription)
func (Keeper) SetSubscriptionIDByAddress ¶
func (Keeper) SetSubscriptionIDByNodeID ¶
func (Keeper) SetSubscriptionsCount ¶
func (Keeper) SetSubscriptionsCountOfAddress ¶
func (Keeper) SetSubscriptionsCountOfNode ¶
Click to show internal directories.
Click to hide internal directories.