keeper

package
v12.1.16-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2025 License: LGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.

func NewQueryServerImpl

func NewQueryServerImpl(keeper Keeper) types.QueryServer

NewQueryServerImpl returns an implementation of the QueryServer interface for the provided Keeper.

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey storetypes.StoreKey,
	ps paramtypes.Subspace,

) *Keeper

func (Keeper) GetAllChains

func (k Keeper) GetAllChains(sdkCtx sdk.Context) (chains []types.Chain)

func (Keeper) GetChain

func (k Keeper) GetChain(sdkCtx sdk.Context, id string) (chain types.Chain, found bool)

func (Keeper) GetChainsWithPagination

func (k Keeper) GetChainsWithPagination(ctx sdk.Context, pagination *query.PageRequest) ([]types.Chain, *query.PageResponse, error)

func (Keeper) GetDstToken

func (k Keeper) GetDstToken(sdkCtx sdk.Context, srcAddr, srcChain, dscChain string) (info types.TokenInfo, found bool)

func (Keeper) GetPaginatedTransactions

func (k Keeper) GetPaginatedTransactions(
	sdkCtx sdk.Context, pagination *query.PageRequest,
) (
	[]types.Transaction, *query.PageResponse, error,
)

func (Keeper) GetParams

func (k Keeper) GetParams(ctx sdk.Context) types.Params

GetParams get all parameters as types.Params

func (Keeper) GetToken

func (k Keeper) GetToken(sdkCtx sdk.Context, id uint64) (token types.Token, found bool)

func (Keeper) GetTokenInfo

func (k Keeper) GetTokenInfo(sdkCtx sdk.Context, chain, address string) (tokenInfo types.TokenInfo, found bool)

func (Keeper) GetTokensWithPagination

func (k Keeper) GetTokensWithPagination(ctx sdk.Context, pagination *query.PageRequest) ([]types.Token, *query.PageResponse, error)

func (Keeper) GetTransaction

func (k Keeper) GetTransaction(sdkCtx sdk.Context, id string) (types.Transaction, bool)

func (Keeper) IsParty

func (k Keeper) IsParty(sender string, ctx sdk.Context) bool

func (Keeper) Logger

func (k Keeper) Logger(ctx sdk.Context) log.Logger

func (Keeper) ModuleAdmin

func (k Keeper) ModuleAdmin(ctx sdk.Context) (adminAddress string)

func (Keeper) PartiesList

func (k Keeper) PartiesList(ctx sdk.Context) (parties []*types.Party)

func (Keeper) RemoveChain

func (k Keeper) RemoveChain(sdkCtx sdk.Context, id string)

func (Keeper) RemoveToken

func (k Keeper) RemoveToken(sdkCtx sdk.Context, id uint64)

func (Keeper) RemoveTokenInfo

func (k Keeper) RemoveTokenInfo(sdkCtx sdk.Context, chain, addr string)

func (Keeper) RemoveTokenPairs

func (k Keeper) RemoveTokenPairs(sdkCtx sdk.Context, current types.TokenInfo, pairs ...types.TokenInfo)

func (Keeper) SetChain

func (k Keeper) SetChain(sdkCtx sdk.Context, chain types.Chain)

func (Keeper) SetParams

func (k Keeper) SetParams(ctx sdk.Context, params types.Params)

SetParams set the params

func (Keeper) SetToken

func (k Keeper) SetToken(sdkCtx sdk.Context, token types.Token)

func (Keeper) SetTokenInfo

func (k Keeper) SetTokenInfo(sdkCtx sdk.Context, tokenInfo types.TokenInfo)

func (Keeper) SetTokenPairs

func (k Keeper) SetTokenPairs(sdkCtx sdk.Context, current types.TokenInfo, pairs ...types.TokenInfo)

func (Keeper) SetTransaction

func (k Keeper) SetTransaction(sdkCtx sdk.Context, transaction types.Transaction)

type Migrator

type Migrator struct {
	// contains filtered or unexported fields
}

func NewMigrator

func NewMigrator(keeper Keeper) Migrator

func (Migrator) Migrate1to2

func (m Migrator) Migrate1to2(ctx sdk.Context) error

func (Migrator) Migrate2to3

func (m Migrator) Migrate2to3(ctx sdk.Context) error

func (Migrator) Migrate3to4

func (m Migrator) Migrate3to4(ctx sdk.Context) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL