keeper

package
v1.1.8 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: GPL-3.0 Imports: 18 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 sdk.StoreKey,

	bankKeeper types.BankKeeper,
) *Keeper

func (Keeper) FulfillTheOrder

func (k Keeper) FulfillTheOrder(ctx sdk.Context, sender sdk.AccAddress, costPaid, amount sdk.Int, sellOrder *types.SellOrder) error

func (Keeper) GetAddedSellOrder

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

GetAddedSellOrder returns a sellOrder from its index

func (Keeper) GetAllAddedSellOrder

func (k Keeper) GetAllAddedSellOrder(ctx sdk.Context) (list []types.SellOrder)

GetAllAddedSellOrder returns all sellOrder

func (Keeper) GetAllInvoice

func (k Keeper) GetAllInvoice(ctx sdk.Context) (list []types.Invoice)

GetAllInvoice returns all invoice

func (Keeper) GetAllPlaceOrder

func (k Keeper) GetAllPlaceOrder(ctx sdk.Context) (list []types.PlaceOrder)

GetAllPlaceOrder returns all placeOrder

func (Keeper) GetAllSellOrder

func (k Keeper) GetAllSellOrder(ctx sdk.Context) (list []types.SellOrder)

GetAllSellOrder returns all sellOrder

func (Keeper) GetInvoice

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

GetInvoice returns a invoice from its index

func (Keeper) GetPlaceOrder

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

GetPlaceOrder returns a placeOrder from its index

func (Keeper) GetSellOrder

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

GetSellOrder returns a sellOrder from its index

func (Keeper) Logger

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

func (Keeper) RemoveAddedSellOrder

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

RemoveAddedSellOrder removes a sellOrder from the store

func (Keeper) RemoveExpireInvoice

func (k Keeper) RemoveExpireInvoice(ctx sdk.Context) error

func (Keeper) RemoveInvoice

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

RemoveInvoice removes an invoice from the store

func (Keeper) RemovePlaceOrder

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

RemovePlaceOrder removes a placeOrder from the store

func (Keeper) RemoveSellOrder

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

RemoveSellOrder removes a sellOrder from the store

func (Keeper) SetAddedSellOrder

func (k Keeper) SetAddedSellOrder(ctx sdk.Context, sellOrder types.SellOrder)

SetAddedSellOrder set a specific sellOrder in the store from its index

func (Keeper) SetInvoice

func (k Keeper) SetInvoice(ctx sdk.Context, invoice types.Invoice)

SetInvoice set a specific invoice in the store from its index

func (Keeper) SetPlaceOrder

func (k Keeper) SetPlaceOrder(ctx sdk.Context, placeOrder types.PlaceOrder)

SetPlaceOrder set a specific placeOrder in the store from its index

func (Keeper) SetSellOrder

func (k Keeper) SetSellOrder(ctx sdk.Context, sellOrder types.SellOrder)

SetSellOrder set a specific sellOrder in the store from its index

func (Keeper) TransferInvoice

func (k Keeper) TransferInvoice(ctx sdk.Context, claimedOwner sdk.AccAddress, sharesAllocation map[string]sdk.Int, parentInvoice *types.Invoice) error

Jump to

Keyboard shortcuts

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