Documentation ¶
Index ¶
- Constants
- func NewQuerier(k Keeper) cTypes.Querier
- type Keeper
- func (k Keeper) GetOrder(ctx cTypes.Context, negotiationID negotiation.NegotiationID) orderTypes.Order
- func (keeper Keeper) GetOrderDetails(ctx cTypes.Context, buyerAddress cTypes.AccAddress, ...) (cTypes.Error, types.AssetPegWallet, types.FiatPegWallet, string, string)
- func (k Keeper) IterateOrders(ctx cTypes.Context, process func(orderTypes.Order) (stop bool))
- func (k Keeper) NewOrder(buyerAddress cTypes.AccAddress, sellerAddress cTypes.AccAddress, ...) orderTypes.Order
- func (keeper Keeper) SendAssetFromOrder(ctx cTypes.Context, fromAddress cTypes.AccAddress, toAddress cTypes.AccAddress, ...) types.AssetPegWallet
- func (keeper Keeper) SendAssetsToOrder(ctx cTypes.Context, fromAddress cTypes.AccAddress, toAddress cTypes.AccAddress, ...) cTypes.Error
- func (keeper Keeper) SendFiatsFromOrder(ctx cTypes.Context, fromAddress cTypes.AccAddress, toAddress cTypes.AccAddress, ...) types.FiatPegWallet
- func (keeper Keeper) SendFiatsToOrder(ctx cTypes.Context, fromAddress cTypes.AccAddress, toAddress cTypes.AccAddress, ...) cTypes.Error
- func (k Keeper) SetOrder(ctx cTypes.Context, order orderTypes.Order)
- func (keeper Keeper) SetOrderAWBProofHash(ctx cTypes.Context, buyerAddress cTypes.AccAddress, ...)
- func (keeper Keeper) SetOrderFiatProofHash(ctx cTypes.Context, buyerAddress cTypes.AccAddress, ...)
Constants ¶
View Source
const (
QueryOrder = "orderQuery"
)
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
Types ¶
type Keeper ¶
type Keeper struct { NegotiationKeeper negotiation.Keeper ACLKeeper acl.Keeper AccountKeeper auth.AccountKeeper // contains filtered or unexported fields }
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 (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) 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) 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
Click to show internal directories.
Click to hide internal directories.