bid_rpc

package
v0.18.15 Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrGettingBidConvInQuery       = codes.ProtocolError{bid_error.BidErrGettingBidConvInQuery, "failed to get bid conversation in query"}
	ErrGettingActiveOfferInQuery   = codes.ProtocolError{bid_error.BidErrGettingActiveOfferInQuery, "failed to get active offer in query"}
	ErrInvalidOwnerAddressInQuery  = codes.ProtocolError{bid_error.BidErrInvalidOwnerAddressInQuery, "invalid owner address"}
	ErrInvalidBidderAddressInQuery = codes.ProtocolError{bid_error.BidErrInvalidBidderAddressInQuery, "invalid bidder address"}
)

Functions

This section is empty.

Types

type BidConvStat

type BidConvStat struct {
	BidConv        bid_data.BidConv    `json:"bidConv"`
	ActiveOffer    bid_data.BidOffer   `json:"activeOffer"`
	InactiveOffers []bid_data.BidOffer `json:"inactiveOffers"`
}

type BidderDecisionRequest

type BidderDecisionRequest struct {
	BidConvId bid_data.BidConvId   `json:"bidConvId"`
	Bidder    keys.Address         `json:"bidder"`
	Decision  bid_data.BidDecision `json:"decision"`
	GasPrice  action.Amount        `json:"gasPrice"`
	Gas       int64                `json:"gas"`
}

type CancelBidRequest

type CancelBidRequest struct {
	BidConvId bid_data.BidConvId `json:"bidConvId"`
	Bidder    keys.Address       `json:"bidder"`
	GasPrice  action.Amount      `json:"gasPrice"`
	Gas       int64              `json:"gas"`
}

type CounterOfferRequest

type CounterOfferRequest struct {
	BidConvId  bid_data.BidConvId `json:"bidConvId"`
	AssetOwner keys.Address       `json:"assetOwner"`
	Amount     action.Amount      `json:"amount"`
	GasPrice   action.Amount      `json:"gasPrice"`
	Gas        int64              `json:"gas"`
}

type CreateBidRequest

type CreateBidRequest struct {
	BidConvId  bid_data.BidConvId    `json:"bidConvId"`
	AssetOwner keys.Address          `json:"assetOwner"`
	AssetName  string                `json:"assetName"`
	AssetType  bid_data.BidAssetType `json:"assetType"`
	Bidder     keys.Address          `json:"bidder"`
	Amount     action.Amount         `json:"amount"`
	Deadline   int64                 `json:"deadline"`
	GasPrice   action.Amount         `json:"gasPrice"`
	Gas        int64                 `json:"gas"`
}

type ListBidConvRequest

type ListBidConvRequest struct {
	BidConvId bid_data.BidConvId `json:"bidConvId"`
}

type ListBidConvsReply

type ListBidConvsReply struct {
	BidConvStats []BidConvStat `json:"bidConvStats"`
	Height       int64         `json:"height"`
}

type ListBidConvsRequest

type ListBidConvsRequest struct {
	State     bid_data.BidConvState `json:"state"`
	Owner     keys.Address          `json:"owner"`
	AssetName string                `json:"assetName"`
	AssetType bid_data.BidAssetType `json:"assetType"`
	Bidder    keys.Address          `json:"bidder"`
}

type OwnerDecisionRequest

type OwnerDecisionRequest struct {
	BidConvId bid_data.BidConvId   `json:"bidConvId"`
	Owner     keys.Address         `json:"owner"`
	Decision  bid_data.BidDecision `json:"decision"`
	GasPrice  action.Amount        `json:"gasPrice"`
	Gas       int64                `json:"gas"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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