keeper

package
v0.0.2-beta Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Log

func Log(text string)

func LogCreateFileOnPath

func LogCreateFileOnPath(data string, path string)

func LogLoop

func LogLoop(s []string)

func NewMsgServerImpl

func NewMsgServerImpl(keeper Keeper) types.MsgServer

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) AddBatchHelper

func (k Keeper) AddBatchHelper(ctx sdk.Context, msg *types.MsgAddBatch) *sdkerrors.Error

func (Keeper) AddExecutionLayerHelper

func (k Keeper) AddExecutionLayerHelper(ctx sdk.Context, exelayer types.Exelayer, creator string) *sdkerrors.Error

func (Keeper) DecrementExecutionLayerCount

func (k Keeper) DecrementExecutionLayerCount(ctx sdk.Context)

func (Keeper) DeleteExecutionLayerHelper

func (k Keeper) DeleteExecutionLayerHelper(ctx sdk.Context, address string, chainId string)

func (Keeper) GetBatch

func (Keeper) GetBatchHelper

func (k Keeper) GetBatchHelper(ctx sdk.Context, chainId string, batchNumber uint64) (*types.BatchMax, bool)

func (Keeper) GetExecutionlayers

func (k Keeper) GetExecutionlayers(ctx sdk.Context, id string) (val types.Exelayer, found bool)

func (Keeper) GetExelayerById

func (k Keeper) GetExelayerById(ctx sdk.Context, id string) (val types.Exelayer, found bool)

func (Keeper) GetExelayerIdByAddress

func (k Keeper) GetExelayerIdByAddress(ctx sdk.Context, address string) (val string, found bool)

func (Keeper) GetParams

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

GetParams get all parameters as types.Params

func (Keeper) GetPoll

func (Keeper) GetPollHelper

func (k Keeper) GetPollHelper(ctx sdk.Context, chainId string, pollId string) (types.Poll, error)

func (Keeper) GetVerificationKeyById

func (k Keeper) GetVerificationKeyById(ctx sdk.Context, id string) (val types.Vkey, found bool)

func (Keeper) ListPolls

func (Keeper) Logger

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

func (Keeper) Params

func (Keeper) QueryVerifyBatchHelper

func (k Keeper) QueryVerifyBatchHelper(ctx sdk.Context, request *types.QueryQVerifyBatchRequest) *sdkerrors.Error

func (Keeper) SetParams

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

SetParams set the params

func (Keeper) UpdateExecutionLayer

func (k Keeper) UpdateExecutionLayer(ctx sdk.Context, executionLayer types.Exelayer) *sdkerrors.Error

func (Keeper) VerifyBatchHelper

func (k Keeper) VerifyBatchHelper(ctx sdk.Context, msg *types.MsgVerifyBatch) *sdkerrors.Error

Jump to

Keyboard shortcuts

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