keeper

package
v0.2.2-0...-13ba25a Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryOrder = "orderQuery"
)

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) cTypes.Querier

Types

type Keeper

type Keeper struct {
	NegotiationKeeper negotiation.Keeper
	ACLKeeper         acl.Keeper
	AccountKeeper     auth.AccountKeeper
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(storeKey cTypes.StoreKey, cdc *codec.Codec, negotiationKeeper negotiation.Keeper,
	aclKeeper acl.Keeper, accountKeeper auth.AccountKeeper) Keeper

func (Keeper) GetOrder

func (k Keeper) GetOrder(ctx cTypes.Context, negotiationID negotiation.NegotiationID) orderTypes.Order

func (Keeper) GetOrderDetails

func (keeper Keeper) GetOrderDetails(ctx cTypes.Context, buyerAddress cTypes.AccAddress, sellerAddress cTypes.AccAddress, pegHash types.PegHash) (cTypes.Error, types.AssetPegWallet, types.FiatPegWallet, string, string)

GetOrderDetails : get the order details

func (Keeper) IterateOrders

func (k Keeper) IterateOrders(ctx cTypes.Context, process func(orderTypes.Order) (stop bool))

func (Keeper) NewOrder

func (k Keeper) NewOrder(buyerAddress cTypes.AccAddress, sellerAddress cTypes.AccAddress, pegHash types.PegHash) orderTypes.Order

func (Keeper) SendAssetFromOrder

func (keeper Keeper) SendAssetFromOrder(ctx cTypes.Context, fromAddress cTypes.AccAddress, toAddress cTypes.AccAddress, assetPeg types.AssetPeg) types.AssetPegWallet

SendAssetFromOrder asset peg to buyer

func (Keeper) SendAssetsToOrder

func (keeper Keeper) SendAssetsToOrder(ctx cTypes.Context, fromAddress cTypes.AccAddress, toAddress cTypes.AccAddress, assetPeg types.AssetPeg) cTypes.Error

func (Keeper) SendFiatsFromOrder

func (keeper Keeper) SendFiatsFromOrder(ctx cTypes.Context, fromAddress cTypes.AccAddress, toAddress cTypes.AccAddress, pegHash types.PegHash, fiatPegWallet types.FiatPegWallet) types.FiatPegWallet

SendFiatsFromOrder fiat pegs to seller

func (Keeper) SendFiatsToOrder

func (keeper Keeper) SendFiatsToOrder(ctx cTypes.Context, fromAddress cTypes.AccAddress, toAddress cTypes.AccAddress, pegHash types.PegHash, fiatPegWallet types.FiatPegWallet) cTypes.Error

SendFiatsToOrder fiat pegs to order

func (Keeper) SetOrder

func (k Keeper) SetOrder(ctx cTypes.Context, order orderTypes.Order)

func (Keeper) SetOrderAWBProofHash

func (keeper Keeper) SetOrderAWBProofHash(ctx cTypes.Context, buyerAddress cTypes.AccAddress, sellerAddress cTypes.AccAddress, pegHash types.PegHash, awbProofHash string)

SetOrderAWBProofHash : Set AWBProofHash to Order

func (Keeper) SetOrderFiatProofHash

func (keeper Keeper) SetOrderFiatProofHash(ctx cTypes.Context, buyerAddress cTypes.AccAddress, sellerAddress cTypes.AccAddress, pegHash types.PegHash, fiatProofHash string)

SetOrderFiatProofHash : Set FiatProofHash to Order

Jump to

Keyboard shortcuts

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