keeper

package
v0.0.0-...-782c84e Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetBytesFromUInt64

func GetBytesFromUInt64(id uint64) []byte

GetBytesFromUInt64 returns the byte representation of the Uint64

func GetUInt64FromBytes

func GetUInt64FromBytes(bz []byte) uint64

GetUInt64FromBytes returns uint64 format from a byte array

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 sdk.StoreKey,

) *Keeper

func (Keeper) AppendContractLog

func (k Keeper) AppendContractLog(ctx sdk.Context, contractLog types.ContractLog) uint64

func (Keeper) CheckCommonError

func (k Keeper) CheckCommonError(msg *types.MsgAddContractLog) error

func (Keeper) GetAllContractFile

func (k Keeper) GetAllContractFile(ctx sdk.Context) (list []types.ContractFile)

GetAllContractFile returns all contractFile

func (Keeper) GetAllContractLog

func (k Keeper) GetAllContractLog(ctx sdk.Context) (list []types.ContractLog)

func (Keeper) GetContractFile

func (k Keeper) GetContractFile(ctx sdk.Context, index string) (val types.ContractFile, found bool)

GetContractFile returns a contractFile from its index

func (Keeper) GetContractLog

func (k Keeper) GetContractLog(ctx sdk.Context, id uint64) types.ContractLog

func (Keeper) GetContractLogCount

func (k Keeper) GetContractLogCount(ctx sdk.Context) uint64

GetContractLogCount get the total number of TypeName.LowerCamel

func (Keeper) GetContractLogOwner

func (k Keeper) GetContractLogOwner(ctx sdk.Context, id uint64) string

func (Keeper) HasContractLog

func (k Keeper) HasContractLog(ctx sdk.Context, id uint64) bool

func (Keeper) Logger

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

func (Keeper) RemoveContractFile

func (k Keeper) RemoveContractFile(ctx sdk.Context, index string)

RemoveContractFile removes a contractFile from the store

func (Keeper) SetContractFile

func (k Keeper) SetContractFile(ctx sdk.Context, contractFile types.ContractFile)

SetContractFile set a specific contractFile in the store from its index

func (Keeper) SetContractLog

func (k Keeper) SetContractLog(ctx sdk.Context, contractLog types.ContractLog)

func (Keeper) SetContractLogCount

func (k Keeper) SetContractLogCount(ctx sdk.Context, count uint64)

func (Keeper) SetContractLogToHashStore

func (k Keeper) SetContractLogToHashStore(ctx sdk.Context, contractLog types.ContractLog)

Jump to

Keyboard shortcuts

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