keeper

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2023 License: Apache-2.0 Imports: 14 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.

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,
	bankKeeper types.BankKeeper,
	sudoKeeper types.SudoKeeper,
	relayersKeeper types.RelayersKeeper,
) *Keeper

func (Keeper) AddBannedDenom

func (k Keeper) AddBannedDenom(ctx sdk.Context, chainId uint8, denom string)

func (Keeper) AddChainId

func (k Keeper) AddChainId(ctx sdk.Context, chainId uint8)

func (Keeper) ChaindIds

func (Keeper) GetBannedDenomList

func (k Keeper) GetBannedDenomList(ctx sdk.Context) []*types.BannedDenom

func (Keeper) GetChainIdList

func (k Keeper) GetChainIdList(ctx sdk.Context) []uint32

func (Keeper) GetDepositCountById added in v0.2.3

func (k Keeper) GetDepositCountById(ctx sdk.Context, chainId uint8) uint64

func (Keeper) GetDepositCountList

func (k Keeper) GetDepositCountList(ctx sdk.Context) []*types.DepositCount

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetProposal

func (k Keeper) GetProposal(ctx sdk.Context, chainId uint8, depositNonce uint64, resourceId [32]byte, content types.ProposalContent) (*types.Proposal, bool)

func (Keeper) GetProposalList

func (k Keeper) GetProposalList(ctx sdk.Context) []*types.GenesisProposal

func (Keeper) GetRelayFee

func (k Keeper) GetRelayFee(ctx sdk.Context, chainId uint8) (value sdk.Coin)

func (Keeper) GetRelayFeeList

func (k Keeper) GetRelayFeeList(ctx sdk.Context) []*types.RelayFee

func (Keeper) GetRelayFeeReceiver

func (k Keeper) GetRelayFeeReceiver(ctx sdk.Context) (sdk.AccAddress, bool)

func (Keeper) GetResourceIdToDenomByDenom

func (k Keeper) GetResourceIdToDenomByDenom(ctx sdk.Context, denom string) (*types.ResourceIdToDenom, bool)

func (Keeper) GetResourceIdToDenomByResourceId

func (k Keeper) GetResourceIdToDenomByResourceId(ctx sdk.Context, resourceId string) (*types.ResourceIdToDenom, bool)

func (Keeper) GetResourceIdToDenomList

func (k Keeper) GetResourceIdToDenomList(ctx sdk.Context) []*types.ResourceIdToDenom

func (Keeper) HasBannedDenom

func (k Keeper) HasBannedDenom(ctx sdk.Context, chainId uint8, denom string) bool

func (Keeper) HasChainId

func (k Keeper) HasChainId(ctx sdk.Context, chainId uint8) bool

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) RelayFee

func (Keeper) RmBannedDenom

func (k Keeper) RmBannedDenom(ctx sdk.Context, chainId uint8, denom string)

func (Keeper) RmChainId

func (k Keeper) RmChainId(ctx sdk.Context, chainId uint8)

func (Keeper) SetDepositCount

func (k Keeper) SetDepositCount(ctx sdk.Context, chainId uint8, count uint64)

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) SetProposal

func (k Keeper) SetProposal(ctx sdk.Context, chainId uint8, depositNonce uint64, resourceId [32]byte, prop *types.Proposal)

func (Keeper) SetRelayFee

func (k Keeper) SetRelayFee(ctx sdk.Context, chainId uint8, value sdk.Coin)

func (Keeper) SetRelayFeeReceiver

func (k Keeper) SetRelayFeeReceiver(ctx sdk.Context, address sdk.AccAddress)

func (Keeper) SetResourceIdToDenom

func (k Keeper) SetResourceIdToDenom(ctx sdk.Context, rs *types.ResourceIdToDenom)

Jump to

Keyboard shortcuts

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