keeper

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2026 License: MIT Imports: 19 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 module MsgServer interface.

Types

type Keeper

type Keeper struct {

	// state management
	Params       collections.Item[types.Params]
	ChainConfigs collections.Map[string, types.ChainConfig]
	TokenConfigs collections.Map[string, types.TokenConfig]
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeService storetypes.KVStoreService,
	logger log.Logger,
	authority string,
	evmKeeper types.EVMKeeper,
) Keeper

NewKeeper creates a new Keeper instance

func (Keeper) AddChainConfig

func (k Keeper) AddChainConfig(ctx context.Context, chainConfig *types.ChainConfig) error

addChainConfig is for adding a new chain configuration

func (Keeper) AddTokenConfig

func (k Keeper) AddTokenConfig(ctx context.Context, tokenConfig *types.TokenConfig) error

AddTokenConfig adds a new token configuration to the uregistry.

func (*Keeper) ExportGenesis

func (k *Keeper) ExportGenesis(ctx context.Context) *types.GenesisState

ExportGenesis exports the module's state to a genesis state.

func (Keeper) FixReservedBytecode added in v0.0.16

func (k Keeper) FixReservedBytecode(ctx context.Context) error

func (Keeper) GetChainConfig

func (k Keeper) GetChainConfig(ctx context.Context, chain string) (types.ChainConfig, error)

func (Keeper) GetTokenConfig

func (k Keeper) GetTokenConfig(ctx context.Context, chain, address string) (types.TokenConfig, error)

func (Keeper) GetTokenConfigByPRC20 added in v0.0.13

func (k Keeper) GetTokenConfigByPRC20(
	ctx context.Context,
	chain string,
	prc20Addr string,
) (types.TokenConfig, error)

func (*Keeper) InitGenesis

func (k *Keeper) InitGenesis(ctx context.Context, data *types.GenesisState) error

InitGenesis initializes the module's state from a genesis state.

func (Keeper) IsChainInboundEnabled

func (k Keeper) IsChainInboundEnabled(ctx context.Context, chain string) (bool, error)

IsChainInboundEnabled checks if inbound is enabled for a given chain

func (Keeper) IsChainOutboundEnabled

func (k Keeper) IsChainOutboundEnabled(ctx context.Context, chain string) (bool, error)

IsChainOutboundEnabled checks if outbound is enabled for a given chain

func (Keeper) Logger

func (k Keeper) Logger() log.Logger

func (Keeper) RemoveTokenConfig

func (k Keeper) RemoveTokenConfig(ctx context.Context, chain, tokenAddress string) error

RemoveTokenConfig removes an existing token configuration in the uregistry.

func (Keeper) ReserveUGPC added in v0.0.14

func (k Keeper) ReserveUGPC(ctx context.Context) error

func (Keeper) SchemaBuilder

func (k Keeper) SchemaBuilder() *collections.SchemaBuilder

func (Keeper) UpdateChainConfig

func (k Keeper) UpdateChainConfig(ctx context.Context, chainConfig *types.ChainConfig) error

UpdateChainConfig updates the configuration for a specific chain.

func (Keeper) UpdateParams

func (k Keeper) UpdateParams(ctx context.Context, params types.Params) error

updateParams is for updating params collections of the module

func (Keeper) UpdateTokenConfig

func (k Keeper) UpdateTokenConfig(ctx context.Context, tokenConfig *types.TokenConfig) error

UpdateTokenConfig updates an existing token configuration in the uregistry.

type Querier

type Querier struct {
	Keeper
}

func NewQuerier

func NewQuerier(keeper Keeper) Querier

func (Querier) AllChainConfigs

AllChainConfigs implements types.QueryServer.

func (Querier) AllTokenConfigs

AllTokenConfigs implements types.QueryServer.

func (Querier) ChainConfig

ChainConfig implements types.QueryServer.

func (Querier) Params

func (Querier) TokenConfig

TokenConfig implements types.QueryServer.

func (Querier) TokenConfigsByChain

TokenConfigsByChain implements types.QueryServer.

Jump to

Keyboard shortcuts

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