Documentation ¶
Index ¶
- Constants
- func NewQuerier(k Keeper) cTypes.Querier
- type Keeper
- func (k Keeper) GetNegotiation(ctx cTypes.Context, negotiationID negTypes.NegotiationID) (negotiation negTypes.Negotiation, err cTypes.Error)
- func (k Keeper) GetNegotiationDetails(ctx cTypes.Context, buyerAddress cTypes.AccAddress, ...) (negTypes.Negotiation, cTypes.Error)
- func (k Keeper) GetNegotiations(ctx cTypes.Context) (negotiations []negTypes.Negotiation)
- func (k Keeper) GetNegotiatorAccount(ctx cTypes.Context, address cTypes.AccAddress) auth.Account
- func (k Keeper) IterateNegotiations(ctx cTypes.Context, handler func(negotiation negTypes.Negotiation) (stop bool))
- func (k Keeper) SetNegotiation(ctx cTypes.Context, negotiation negTypes.Negotiation)
- type QueryNegotiationParams
Constants ¶
View Source
const (
QueryNegotiation = "queryNegotiation"
)
Variables ¶
This section is empty.
Functions ¶
func NewQuerier ¶
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
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 (Keeper) IterateNegotiations ¶
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
Click to show internal directories.
Click to hide internal directories.