keeper

package
v2.0.1-0...-c6a7496 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 License: Apache-2.0 Imports: 23 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 {
	AuthzKeeper  authzkeeper.Keeper
	IidKeeper    iidkeeper.Keeper
	BankKeeper   bankkeeper.Keeper
	EntityKeeper entitykeeper.Keeper
	WasmKeeper   wasmtypes.ContractOpsKeeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(
	cdc codec.BinaryCodec,
	storeKey,
	memKey sdk.StoreKey,
	ps paramtypes.Subspace,
	iidKeeper iidkeeper.Keeper,
	authzKeeper authzkeeper.Keeper,
	bankKeeper bankkeeper.Keeper,
	entityKeeper entitykeeper.Keeper,
	wasmKeeper wasmkeeper.Keeper,
) Keeper

func (Keeper) Delete

func (k Keeper) Delete(
	ctx sdk.Context,
	key []byte,
	prefix []byte,
)

Delete - deletes a value form the store

func (Keeper) Get

func (k Keeper) Get(
	ctx sdk.Context,
	key []byte,
	prefix []byte,
	unmarshal UnmarshalFn,
) (i interface{}, found bool)

Get gets an item from the store by bytes

func (Keeper) GetAll

func (k Keeper) GetAll(
	ctx sdk.Context,
	prefix []byte,
) sdk.Iterator

GetAll values from with a prefix from the store

func (Keeper) GetClaim

func (k Keeper) GetClaim(ctx sdk.Context, id string) (types.Claim, error)

func (Keeper) GetClaims

func (k Keeper) GetClaims(ctx sdk.Context) []types.Claim

func (Keeper) GetClaimsIterator

func (k Keeper) GetClaimsIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) GetCollection

func (k Keeper) GetCollection(ctx sdk.Context, id string) (types.Collection, error)

func (Keeper) GetCollections

func (k Keeper) GetCollections(ctx sdk.Context) []types.Collection

func (Keeper) GetCollectionsIterator

func (k Keeper) GetCollectionsIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) GetDispute

func (k Keeper) GetDispute(ctx sdk.Context, proof string) (types.Dispute, error)

func (Keeper) GetDisputes

func (k Keeper) GetDisputes(ctx sdk.Context) []types.Dispute

func (Keeper) GetDisputesIterator

func (k Keeper) GetDisputesIterator(ctx sdk.Context) sdk.Iterator

func (Keeper) GetParams

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

GetParams returns the total set of project parameters.

func (Keeper) Logger

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

func (Keeper) Marshal

func (k Keeper) Marshal(value interface{}) (bytes []byte)

func (Keeper) Set

func (k Keeper) Set(ctx sdk.Context,
	key []byte,
	prefix []byte,
	i interface{},
	marshal MarshalFn,
)

Set sets a value in the db with a prefixed key

func (Keeper) SetClaim

func (k Keeper) SetClaim(ctx sdk.Context, data types.Claim)

func (Keeper) SetCollection

func (k Keeper) SetCollection(ctx sdk.Context, data types.Collection)

func (Keeper) SetDispute

func (k Keeper) SetDispute(ctx sdk.Context, data types.Dispute)

func (Keeper) SetParams

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

SetParams sets the total set of project parameters.

func (Keeper) Unmarshal

func (k Keeper) Unmarshal(data []byte, val codec.ProtoMarshaler) bool

Unmarshal unmarshal a byte slice to a struct, return false in case of errors

func (Keeper) UnmarshalClaim

func (k Keeper) UnmarshalClaim(value []byte) (interface{}, bool)

func (Keeper) UnmarshalCollection

func (k Keeper) UnmarshalCollection(value []byte) (interface{}, bool)

func (Keeper) UnmarshalDispute

func (k Keeper) UnmarshalDispute(value []byte) (interface{}, bool)

type MarshalFn

type MarshalFn func(value interface{}) []byte

MarshalFn is a generic function to marshal bytes

type Querier

type Querier struct {
	Keeper
}

Querier defines a wrapper around the x/claims keeper providing gRPC method handlers.

func NewQuerier

func NewQuerier(k Keeper) Querier

func (Querier) Claim

func (Querier) Dispute

func (Querier) Params

type UnmarshalFn

type UnmarshalFn func(value []byte) (interface{}, bool)

UnmarshalFn is a generic function to unmarshal bytes

Jump to

Keyboard shortcuts

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