Documentation
¶
Index ¶
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQueryServerImpl(keeper Keeper) types.QueryServer
- type Keeper
- func (k Keeper) GetAllChains(sdkCtx sdk.Context) (chains []types.Chain)
- func (k Keeper) GetChain(sdkCtx sdk.Context, id string) (chain types.Chain, found bool)
- func (k Keeper) GetChainsWithPagination(ctx sdk.Context, pagination *query.PageRequest) ([]types.Chain, *query.PageResponse, error)
- func (k Keeper) GetDstToken(sdkCtx sdk.Context, srcAddr, srcChain, dscChain string) (info types.TokenInfo, found bool)
- func (k Keeper) GetPaginatedTransactions(sdkCtx sdk.Context, pagination *query.PageRequest) ([]types.Transaction, *query.PageResponse, error)
- func (k Keeper) GetParams(ctx sdk.Context) types.Params
- func (k Keeper) GetToken(sdkCtx sdk.Context, id uint64) (token types.Token, found bool)
- func (k Keeper) GetTokenInfo(sdkCtx sdk.Context, chain, address string) (tokenInfo types.TokenInfo, found bool)
- func (k Keeper) GetTokensWithPagination(ctx sdk.Context, pagination *query.PageRequest) ([]types.Token, *query.PageResponse, error)
- func (k Keeper) GetTransaction(sdkCtx sdk.Context, id string) (types.Transaction, bool)
- func (k Keeper) IsParty(sender string, ctx sdk.Context) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) ModuleAdmin(ctx sdk.Context) (adminAddress string)
- func (k Keeper) PartiesList(ctx sdk.Context) (parties []*types.Party)
- func (k Keeper) RemoveChain(sdkCtx sdk.Context, id string)
- func (k Keeper) RemoveToken(sdkCtx sdk.Context, id uint64)
- func (k Keeper) RemoveTokenInfo(sdkCtx sdk.Context, chain, addr string)
- func (k Keeper) RemoveTokenPairs(sdkCtx sdk.Context, current types.TokenInfo, pairs ...types.TokenInfo)
- func (k Keeper) SetChain(sdkCtx sdk.Context, chain types.Chain)
- func (k Keeper) SetParams(ctx sdk.Context, params types.Params)
- func (k Keeper) SetToken(sdkCtx sdk.Context, token types.Token)
- func (k Keeper) SetTokenInfo(sdkCtx sdk.Context, tokenInfo types.TokenInfo)
- func (k Keeper) SetTokenPairs(sdkCtx sdk.Context, current types.TokenInfo, pairs ...types.TokenInfo)
- func (k Keeper) SetTransaction(sdkCtx sdk.Context, transaction types.Transaction)
- type Migrator
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 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 (Keeper) GetChainsWithPagination ¶
func (k Keeper) GetChainsWithPagination(ctx sdk.Context, pagination *query.PageRequest) ([]types.Chain, *query.PageResponse, error)
func (Keeper) GetDstToken ¶
func (Keeper) GetPaginatedTransactions ¶
func (k Keeper) GetPaginatedTransactions( sdkCtx sdk.Context, pagination *query.PageRequest, ) ( []types.Transaction, *query.PageResponse, error, )
func (Keeper) GetTokenInfo ¶
func (Keeper) GetTokensWithPagination ¶
func (k Keeper) GetTokensWithPagination(ctx sdk.Context, pagination *query.PageRequest) ([]types.Token, *query.PageResponse, error)
func (Keeper) GetTransaction ¶
func (Keeper) RemoveTokenInfo ¶
func (Keeper) RemoveTokenPairs ¶
func (Keeper) SetTokenInfo ¶
func (Keeper) SetTokenPairs ¶
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 ¶
Source Files
¶
- chain.go
- grpc_query.go
- grpc_query_chains.go
- grpc_query_params.go
- grpc_query_token_pairs.go
- grpc_query_tokens.go
- grpc_query_transactions.go
- keeper.go
- migrations.go
- msg_chains.go
- msg_parties.go
- msg_server.go
- msg_token_pairs.go
- msg_tokens.go
- msg_transactions.go
- params.go
- token.go
- token_pairs.go
- transaction.go
Click to show internal directories.
Click to hide internal directories.