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: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryNegotiation = "queryNegotiation"
)

Variables

This section is empty.

Functions

func NewQuerier

func NewQuerier(k Keeper) cTypes.Querier

Types

type Keeper

type Keeper struct {
	// contains filtered or unexported fields
}

func NewKeeper

func NewKeeper(storeKey cTypes.StoreKey, ak auth.AccountKeeper, cdc *codec.Codec) Keeper

func (Keeper) GetNegotiation

func (k Keeper) GetNegotiation(ctx cTypes.Context, negotiationID negTypes.NegotiationID) (negotiation negTypes.Negotiation, err cTypes.Error)

returns negotiation by negotiationID

func (Keeper) GetNegotiationDetails

func (k Keeper) GetNegotiationDetails(ctx cTypes.Context, buyerAddress cTypes.AccAddress, sellerAddress cTypes.AccAddress,
	hash types.PegHash) (negTypes.Negotiation, cTypes.Error)

func (Keeper) GetNegotiations

func (k Keeper) GetNegotiations(ctx cTypes.Context) (negotiations []negTypes.Negotiation)

get all negotiations => []Negotiations from store

func (Keeper) GetNegotiatorAccount

func (k Keeper) GetNegotiatorAccount(ctx cTypes.Context, address cTypes.AccAddress) auth.Account

func (Keeper) IterateNegotiations

func (k Keeper) IterateNegotiations(ctx cTypes.Context, handler func(negotiation negTypes.Negotiation) (stop bool))

func (Keeper) SetNegotiation

func (k Keeper) SetNegotiation(ctx cTypes.Context, negotiation negTypes.Negotiation)

negotiation/{0x01}/{buyerAddress+sellerAddress+pegHash} => negotiation

type QueryNegotiationParams

type QueryNegotiationParams struct {
	BuyerAddress  cTypes.AccAddress
	SellerAddress cTypes.AccAddress
	PegHash       types.PegHash
}

func NewQueryNegotiationParams

func NewQueryNegotiationParams(buyerAddress, sellerAddress cTypes.AccAddress, pegHash types.PegHash) QueryNegotiationParams

Jump to

Keyboard shortcuts

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