Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func ParseEvent(ev sdkutil.Event) (sdkutil.ModuleEvent, error)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type Bid
- func (*Bid) Descriptor() ([]byte, []int)
- func (m *Bid) GetBidID() BidID
- func (m *Bid) GetPrice() types.Coin
- func (m *Bid) GetState() Bid_State
- func (obj Bid) ID() BidID
- func (m *Bid) Marshal() (dAtA []byte, err error)
- func (m *Bid) MarshalTo(dAtA []byte) (int, error)
- func (m *Bid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Bid) ProtoMessage()
- func (m *Bid) Reset()
- func (m *Bid) Size() (n int)
- func (obj Bid) String() string
- func (m *Bid) Unmarshal(dAtA []byte) error
- func (m *Bid) XXX_DiscardUnknown()
- func (m *Bid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Bid) XXX_Merge(src proto.Message)
- func (m *Bid) XXX_Size() int
- func (m *Bid) XXX_Unmarshal(b []byte) error
- type BidFilters
- func (filters BidFilters) Accept(obj Bid, stateVal Bid_State) bool
- func (*BidFilters) Descriptor() ([]byte, []int)
- func (m *BidFilters) GetDSeq() uint64
- func (m *BidFilters) GetGSeq() uint32
- func (m *BidFilters) GetOSeq() uint32
- func (m *BidFilters) GetOwner() string
- func (m *BidFilters) GetProvider() string
- func (m *BidFilters) GetState() string
- func (m *BidFilters) Marshal() (dAtA []byte, err error)
- func (m *BidFilters) MarshalTo(dAtA []byte) (int, error)
- func (m *BidFilters) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BidFilters) ProtoMessage()
- func (m *BidFilters) Reset()
- func (m *BidFilters) Size() (n int)
- func (m *BidFilters) String() string
- func (m *BidFilters) Unmarshal(dAtA []byte) error
- func (m *BidFilters) XXX_DiscardUnknown()
- func (m *BidFilters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BidFilters) XXX_Merge(src proto.Message)
- func (m *BidFilters) XXX_Size() int
- func (m *BidFilters) XXX_Unmarshal(b []byte) error
- type BidID
- func (id BidID) DeploymentID() dtypes.DeploymentID
- func (*BidID) Descriptor() ([]byte, []int)
- func (id BidID) Equals(other BidID) bool
- func (m *BidID) GetDSeq() uint64
- func (m *BidID) GetGSeq() uint32
- func (m *BidID) GetOSeq() uint32
- func (m *BidID) GetOwner() string
- func (m *BidID) GetProvider() string
- func (id BidID) GroupID() dtypes.GroupID
- func (id BidID) LeaseID() LeaseID
- func (m *BidID) Marshal() (dAtA []byte, err error)
- func (m *BidID) MarshalTo(dAtA []byte) (int, error)
- func (m *BidID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (id BidID) OrderID() OrderID
- func (*BidID) ProtoMessage()
- func (m *BidID) Reset()
- func (m *BidID) Size() (n int)
- func (id BidID) String() string
- func (m *BidID) Unmarshal(dAtA []byte) error
- func (id BidID) Validate() error
- func (m *BidID) XXX_DiscardUnknown()
- func (m *BidID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BidID) XXX_Merge(src proto.Message)
- func (m *BidID) XXX_Size() int
- func (m *BidID) XXX_Unmarshal(b []byte) error
- type Bid_State
- type Bids
- type EventBidClosed
- type EventBidCreated
- type EventLeaseClosed
- type EventLeaseCreated
- type EventOrderClosed
- type EventOrderCreated
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetLeases() []Lease
- func (m *GenesisState) GetOrders() []Order
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type Lease
- func (*Lease) Descriptor() ([]byte, []int)
- func (m *Lease) GetLeaseID() LeaseID
- func (m *Lease) GetPrice() types.Coin
- func (m *Lease) GetState() Lease_State
- func (obj Lease) ID() LeaseID
- func (m *Lease) Marshal() (dAtA []byte, err error)
- func (m *Lease) MarshalTo(dAtA []byte) (int, error)
- func (m *Lease) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Lease) ProtoMessage()
- func (m *Lease) Reset()
- func (m *Lease) Size() (n int)
- func (obj Lease) String() string
- func (m *Lease) Unmarshal(dAtA []byte) error
- func (m *Lease) XXX_DiscardUnknown()
- func (m *Lease) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Lease) XXX_Merge(src proto.Message)
- func (m *Lease) XXX_Size() int
- func (m *Lease) XXX_Unmarshal(b []byte) error
- type LeaseFilters
- func (filters LeaseFilters) Accept(obj Lease, stateVal Lease_State) bool
- func (*LeaseFilters) Descriptor() ([]byte, []int)
- func (m *LeaseFilters) GetDSeq() uint64
- func (m *LeaseFilters) GetGSeq() uint32
- func (m *LeaseFilters) GetOSeq() uint32
- func (m *LeaseFilters) GetOwner() string
- func (m *LeaseFilters) GetProvider() string
- func (m *LeaseFilters) GetState() string
- func (m *LeaseFilters) Marshal() (dAtA []byte, err error)
- func (m *LeaseFilters) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseFilters) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LeaseFilters) ProtoMessage()
- func (m *LeaseFilters) Reset()
- func (m *LeaseFilters) Size() (n int)
- func (m *LeaseFilters) String() string
- func (m *LeaseFilters) Unmarshal(dAtA []byte) error
- func (m *LeaseFilters) XXX_DiscardUnknown()
- func (m *LeaseFilters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseFilters) XXX_Merge(src proto.Message)
- func (m *LeaseFilters) XXX_Size() int
- func (m *LeaseFilters) XXX_Unmarshal(b []byte) error
- type LeaseID
- func (id LeaseID) BidID() BidID
- func (id LeaseID) DeploymentID() dtypes.DeploymentID
- func (*LeaseID) Descriptor() ([]byte, []int)
- func (id LeaseID) Equals(other LeaseID) bool
- func (m *LeaseID) GetDSeq() uint64
- func (m *LeaseID) GetGSeq() uint32
- func (m *LeaseID) GetOSeq() uint32
- func (m *LeaseID) GetOwner() string
- func (m *LeaseID) GetProvider() string
- func (id LeaseID) GroupID() dtypes.GroupID
- func (m *LeaseID) Marshal() (dAtA []byte, err error)
- func (m *LeaseID) MarshalTo(dAtA []byte) (int, error)
- func (m *LeaseID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (id LeaseID) OrderID() OrderID
- func (*LeaseID) ProtoMessage()
- func (m *LeaseID) Reset()
- func (m *LeaseID) Size() (n int)
- func (id LeaseID) String() string
- func (m *LeaseID) Unmarshal(dAtA []byte) error
- func (id LeaseID) Validate() error
- func (m *LeaseID) XXX_DiscardUnknown()
- func (m *LeaseID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaseID) XXX_Merge(src proto.Message)
- func (m *LeaseID) XXX_Size() int
- func (m *LeaseID) XXX_Unmarshal(b []byte) error
- type Lease_State
- type Leases
- type MsgClient
- type MsgCloseBid
- func (*MsgCloseBid) Descriptor() ([]byte, []int)
- func (m *MsgCloseBid) GetBidID() BidID
- func (msg MsgCloseBid) GetSignBytes() []byte
- func (msg MsgCloseBid) GetSigners() []sdk.AccAddress
- func (m *MsgCloseBid) Marshal() (dAtA []byte, err error)
- func (m *MsgCloseBid) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCloseBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCloseBid) ProtoMessage()
- func (m *MsgCloseBid) Reset()
- func (msg MsgCloseBid) Route() string
- func (m *MsgCloseBid) Size() (n int)
- func (m *MsgCloseBid) String() string
- func (msg MsgCloseBid) Type() string
- func (m *MsgCloseBid) Unmarshal(dAtA []byte) error
- func (msg MsgCloseBid) ValidateBasic() error
- func (m *MsgCloseBid) XXX_DiscardUnknown()
- func (m *MsgCloseBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCloseBid) XXX_Merge(src proto.Message)
- func (m *MsgCloseBid) XXX_Size() int
- func (m *MsgCloseBid) XXX_Unmarshal(b []byte) error
- type MsgCloseBidResponse
- func (*MsgCloseBidResponse) Descriptor() ([]byte, []int)
- func (m *MsgCloseBidResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCloseBidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCloseBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCloseBidResponse) ProtoMessage()
- func (m *MsgCloseBidResponse) Reset()
- func (m *MsgCloseBidResponse) Size() (n int)
- func (m *MsgCloseBidResponse) String() string
- func (m *MsgCloseBidResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCloseBidResponse) XXX_DiscardUnknown()
- func (m *MsgCloseBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCloseBidResponse) XXX_Merge(src proto.Message)
- func (m *MsgCloseBidResponse) XXX_Size() int
- func (m *MsgCloseBidResponse) XXX_Unmarshal(b []byte) error
- type MsgCloseOrder
- func (*MsgCloseOrder) Descriptor() ([]byte, []int)
- func (m *MsgCloseOrder) GetOrderID() OrderID
- func (msg MsgCloseOrder) GetSignBytes() []byte
- func (msg MsgCloseOrder) GetSigners() []sdk.AccAddress
- func (m *MsgCloseOrder) Marshal() (dAtA []byte, err error)
- func (m *MsgCloseOrder) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCloseOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCloseOrder) ProtoMessage()
- func (m *MsgCloseOrder) Reset()
- func (msg MsgCloseOrder) Route() string
- func (m *MsgCloseOrder) Size() (n int)
- func (m *MsgCloseOrder) String() string
- func (msg MsgCloseOrder) Type() string
- func (m *MsgCloseOrder) Unmarshal(dAtA []byte) error
- func (msg MsgCloseOrder) ValidateBasic() error
- func (m *MsgCloseOrder) XXX_DiscardUnknown()
- func (m *MsgCloseOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCloseOrder) XXX_Merge(src proto.Message)
- func (m *MsgCloseOrder) XXX_Size() int
- func (m *MsgCloseOrder) XXX_Unmarshal(b []byte) error
- type MsgCloseOrderResponse
- func (*MsgCloseOrderResponse) Descriptor() ([]byte, []int)
- func (m *MsgCloseOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCloseOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCloseOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCloseOrderResponse) ProtoMessage()
- func (m *MsgCloseOrderResponse) Reset()
- func (m *MsgCloseOrderResponse) Size() (n int)
- func (m *MsgCloseOrderResponse) String() string
- func (m *MsgCloseOrderResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCloseOrderResponse) XXX_DiscardUnknown()
- func (m *MsgCloseOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCloseOrderResponse) XXX_Merge(src proto.Message)
- func (m *MsgCloseOrderResponse) XXX_Size() int
- func (m *MsgCloseOrderResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateBid
- func (*MsgCreateBid) Descriptor() ([]byte, []int)
- func (m *MsgCreateBid) GetOrder() OrderID
- func (m *MsgCreateBid) GetPrice() types.Coin
- func (m *MsgCreateBid) GetProvider() string
- func (msg MsgCreateBid) GetSignBytes() []byte
- func (msg MsgCreateBid) GetSigners() []sdk.AccAddress
- func (m *MsgCreateBid) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateBid) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateBid) ProtoMessage()
- func (m *MsgCreateBid) Reset()
- func (msg MsgCreateBid) Route() string
- func (m *MsgCreateBid) Size() (n int)
- func (m *MsgCreateBid) String() string
- func (msg MsgCreateBid) Type() string
- func (m *MsgCreateBid) Unmarshal(dAtA []byte) error
- func (msg MsgCreateBid) ValidateBasic() error
- func (m *MsgCreateBid) XXX_DiscardUnknown()
- func (m *MsgCreateBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateBid) XXX_Merge(src proto.Message)
- func (m *MsgCreateBid) XXX_Size() int
- func (m *MsgCreateBid) XXX_Unmarshal(b []byte) error
- type MsgCreateBidResponse
- func (*MsgCreateBidResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateBidResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateBidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateBidResponse) ProtoMessage()
- func (m *MsgCreateBidResponse) Reset()
- func (m *MsgCreateBidResponse) Size() (n int)
- func (m *MsgCreateBidResponse) String() string
- func (m *MsgCreateBidResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateBidResponse) XXX_DiscardUnknown()
- func (m *MsgCreateBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateBidResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateBidResponse) XXX_Size() int
- func (m *MsgCreateBidResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Order
- func (*Order) Descriptor() ([]byte, []int)
- func (m *Order) GetCloseAt() int64
- func (m *Order) GetOrderID() OrderID
- func (m *Order) GetSpec() types.GroupSpec
- func (m *Order) GetStartAt() int64
- func (m *Order) GetState() Order_State
- func (o Order) ID() OrderID
- func (m *Order) Marshal() (dAtA []byte, err error)
- func (m *Order) MarshalTo(dAtA []byte) (int, error)
- func (m *Order) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (o Order) MatchAttributes(attrs []types.Attribute) bool
- func (o Order) MatchRequirements(prov []atypes.Provider) bool
- func (o Order) Price() sdk.Coin
- func (*Order) ProtoMessage()
- func (m *Order) Reset()
- func (m *Order) Size() (n int)
- func (o Order) String() string
- func (m *Order) Unmarshal(dAtA []byte) error
- func (o Order) ValidateCanBid() error
- func (o Order) ValidateCanMatch(height int64) error
- func (o Order) ValidateInactive() error
- func (m *Order) XXX_DiscardUnknown()
- func (m *Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Order) XXX_Merge(src proto.Message)
- func (m *Order) XXX_Size() int
- func (m *Order) XXX_Unmarshal(b []byte) error
- type OrderFilters
- func (filters OrderFilters) Accept(obj Order, stateVal Order_State) bool
- func (*OrderFilters) Descriptor() ([]byte, []int)
- func (m *OrderFilters) GetDSeq() uint64
- func (m *OrderFilters) GetGSeq() uint32
- func (m *OrderFilters) GetOSeq() uint32
- func (m *OrderFilters) GetOwner() string
- func (m *OrderFilters) GetState() string
- func (m *OrderFilters) Marshal() (dAtA []byte, err error)
- func (m *OrderFilters) MarshalTo(dAtA []byte) (int, error)
- func (m *OrderFilters) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrderFilters) ProtoMessage()
- func (m *OrderFilters) Reset()
- func (m *OrderFilters) Size() (n int)
- func (m *OrderFilters) String() string
- func (m *OrderFilters) Unmarshal(dAtA []byte) error
- func (m *OrderFilters) XXX_DiscardUnknown()
- func (m *OrderFilters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderFilters) XXX_Merge(src proto.Message)
- func (m *OrderFilters) XXX_Size() int
- func (m *OrderFilters) XXX_Unmarshal(b []byte) error
- type OrderID
- func (*OrderID) Descriptor() ([]byte, []int)
- func (id OrderID) Equals(other OrderID) bool
- func (m *OrderID) GetDSeq() uint64
- func (m *OrderID) GetGSeq() uint32
- func (m *OrderID) GetOSeq() uint32
- func (m *OrderID) GetOwner() string
- func (id OrderID) GroupID() dtypes.GroupID
- func (m *OrderID) Marshal() (dAtA []byte, err error)
- func (m *OrderID) MarshalTo(dAtA []byte) (int, error)
- func (m *OrderID) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OrderID) ProtoMessage()
- func (m *OrderID) Reset()
- func (m *OrderID) Size() (n int)
- func (id OrderID) String() string
- func (m *OrderID) Unmarshal(dAtA []byte) error
- func (id OrderID) Validate() error
- func (m *OrderID) XXX_DiscardUnknown()
- func (m *OrderID) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OrderID) XXX_Merge(src proto.Message)
- func (m *OrderID) XXX_Size() int
- func (m *OrderID) XXX_Unmarshal(b []byte) error
- type Order_State
- type Orders
- type QueryBidRequest
- func (*QueryBidRequest) Descriptor() ([]byte, []int)
- func (m *QueryBidRequest) GetID() BidID
- func (m *QueryBidRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBidRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBidRequest) ProtoMessage()
- func (m *QueryBidRequest) Reset()
- func (m *QueryBidRequest) Size() (n int)
- func (m *QueryBidRequest) String() string
- func (m *QueryBidRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBidRequest) XXX_DiscardUnknown()
- func (m *QueryBidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBidRequest) XXX_Merge(src proto.Message)
- func (m *QueryBidRequest) XXX_Size() int
- func (m *QueryBidRequest) XXX_Unmarshal(b []byte) error
- type QueryBidResponse
- func (*QueryBidResponse) Descriptor() ([]byte, []int)
- func (m *QueryBidResponse) GetBid() Bid
- func (m *QueryBidResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBidResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBidResponse) ProtoMessage()
- func (m *QueryBidResponse) Reset()
- func (m *QueryBidResponse) Size() (n int)
- func (m *QueryBidResponse) String() string
- func (m *QueryBidResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBidResponse) XXX_DiscardUnknown()
- func (m *QueryBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBidResponse) XXX_Merge(src proto.Message)
- func (m *QueryBidResponse) XXX_Size() int
- func (m *QueryBidResponse) XXX_Unmarshal(b []byte) error
- type QueryBidsRequest
- func (*QueryBidsRequest) Descriptor() ([]byte, []int)
- func (m *QueryBidsRequest) GetFilters() BidFilters
- func (m *QueryBidsRequest) GetPagination() *query.PageRequest
- func (m *QueryBidsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBidsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBidsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBidsRequest) ProtoMessage()
- func (m *QueryBidsRequest) Reset()
- func (m *QueryBidsRequest) Size() (n int)
- func (m *QueryBidsRequest) String() string
- func (m *QueryBidsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBidsRequest) XXX_DiscardUnknown()
- func (m *QueryBidsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBidsRequest) XXX_Merge(src proto.Message)
- func (m *QueryBidsRequest) XXX_Size() int
- func (m *QueryBidsRequest) XXX_Unmarshal(b []byte) error
- type QueryBidsResponse
- func (*QueryBidsResponse) Descriptor() ([]byte, []int)
- func (m *QueryBidsResponse) GetBids() Bids
- func (m *QueryBidsResponse) GetPagination() *query.PageResponse
- func (m *QueryBidsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBidsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBidsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBidsResponse) ProtoMessage()
- func (m *QueryBidsResponse) Reset()
- func (m *QueryBidsResponse) Size() (n int)
- func (m *QueryBidsResponse) String() string
- func (m *QueryBidsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBidsResponse) XXX_DiscardUnknown()
- func (m *QueryBidsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBidsResponse) XXX_Merge(src proto.Message)
- func (m *QueryBidsResponse) XXX_Size() int
- func (m *QueryBidsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryLeaseRequest
- func (*QueryLeaseRequest) Descriptor() ([]byte, []int)
- func (m *QueryLeaseRequest) GetID() LeaseID
- func (m *QueryLeaseRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryLeaseRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLeaseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLeaseRequest) ProtoMessage()
- func (m *QueryLeaseRequest) Reset()
- func (m *QueryLeaseRequest) Size() (n int)
- func (m *QueryLeaseRequest) String() string
- func (m *QueryLeaseRequest) Unmarshal(dAtA []byte) error
- func (m *QueryLeaseRequest) XXX_DiscardUnknown()
- func (m *QueryLeaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLeaseRequest) XXX_Merge(src proto.Message)
- func (m *QueryLeaseRequest) XXX_Size() int
- func (m *QueryLeaseRequest) XXX_Unmarshal(b []byte) error
- type QueryLeaseResponse
- func (*QueryLeaseResponse) Descriptor() ([]byte, []int)
- func (m *QueryLeaseResponse) GetLease() Lease
- func (m *QueryLeaseResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryLeaseResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLeaseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLeaseResponse) ProtoMessage()
- func (m *QueryLeaseResponse) Reset()
- func (m *QueryLeaseResponse) Size() (n int)
- func (m *QueryLeaseResponse) String() string
- func (m *QueryLeaseResponse) Unmarshal(dAtA []byte) error
- func (m *QueryLeaseResponse) XXX_DiscardUnknown()
- func (m *QueryLeaseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLeaseResponse) XXX_Merge(src proto.Message)
- func (m *QueryLeaseResponse) XXX_Size() int
- func (m *QueryLeaseResponse) XXX_Unmarshal(b []byte) error
- type QueryLeasesRequest
- func (*QueryLeasesRequest) Descriptor() ([]byte, []int)
- func (m *QueryLeasesRequest) GetFilters() LeaseFilters
- func (m *QueryLeasesRequest) GetPagination() *query.PageRequest
- func (m *QueryLeasesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryLeasesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLeasesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLeasesRequest) ProtoMessage()
- func (m *QueryLeasesRequest) Reset()
- func (m *QueryLeasesRequest) Size() (n int)
- func (m *QueryLeasesRequest) String() string
- func (m *QueryLeasesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryLeasesRequest) XXX_DiscardUnknown()
- func (m *QueryLeasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLeasesRequest) XXX_Merge(src proto.Message)
- func (m *QueryLeasesRequest) XXX_Size() int
- func (m *QueryLeasesRequest) XXX_Unmarshal(b []byte) error
- type QueryLeasesResponse
- func (*QueryLeasesResponse) Descriptor() ([]byte, []int)
- func (m *QueryLeasesResponse) GetLeases() Leases
- func (m *QueryLeasesResponse) GetPagination() *query.PageResponse
- func (m *QueryLeasesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryLeasesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryLeasesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryLeasesResponse) ProtoMessage()
- func (m *QueryLeasesResponse) Reset()
- func (m *QueryLeasesResponse) Size() (n int)
- func (m *QueryLeasesResponse) String() string
- func (m *QueryLeasesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryLeasesResponse) XXX_DiscardUnknown()
- func (m *QueryLeasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryLeasesResponse) XXX_Merge(src proto.Message)
- func (m *QueryLeasesResponse) XXX_Size() int
- func (m *QueryLeasesResponse) XXX_Unmarshal(b []byte) error
- type QueryOrderRequest
- func (*QueryOrderRequest) Descriptor() ([]byte, []int)
- func (m *QueryOrderRequest) GetID() OrderID
- func (m *QueryOrderRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderRequest) ProtoMessage()
- func (m *QueryOrderRequest) Reset()
- func (m *QueryOrderRequest) Size() (n int)
- func (m *QueryOrderRequest) String() string
- func (m *QueryOrderRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOrderRequest) XXX_DiscardUnknown()
- func (m *QueryOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderRequest) XXX_Merge(src proto.Message)
- func (m *QueryOrderRequest) XXX_Size() int
- func (m *QueryOrderRequest) XXX_Unmarshal(b []byte) error
- type QueryOrderResponse
- func (*QueryOrderResponse) Descriptor() ([]byte, []int)
- func (m *QueryOrderResponse) GetOrder() Order
- func (m *QueryOrderResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOrderResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrderResponse) ProtoMessage()
- func (m *QueryOrderResponse) Reset()
- func (m *QueryOrderResponse) Size() (n int)
- func (m *QueryOrderResponse) String() string
- func (m *QueryOrderResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOrderResponse) XXX_DiscardUnknown()
- func (m *QueryOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrderResponse) XXX_Merge(src proto.Message)
- func (m *QueryOrderResponse) XXX_Size() int
- func (m *QueryOrderResponse) XXX_Unmarshal(b []byte) error
- type QueryOrdersRequest
- func (*QueryOrdersRequest) Descriptor() ([]byte, []int)
- func (m *QueryOrdersRequest) GetFilters() OrderFilters
- func (m *QueryOrdersRequest) GetPagination() *query.PageRequest
- func (m *QueryOrdersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOrdersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrdersRequest) ProtoMessage()
- func (m *QueryOrdersRequest) Reset()
- func (m *QueryOrdersRequest) Size() (n int)
- func (m *QueryOrdersRequest) String() string
- func (m *QueryOrdersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOrdersRequest) XXX_DiscardUnknown()
- func (m *QueryOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrdersRequest) XXX_Merge(src proto.Message)
- func (m *QueryOrdersRequest) XXX_Size() int
- func (m *QueryOrdersRequest) XXX_Unmarshal(b []byte) error
- type QueryOrdersResponse
- func (*QueryOrdersResponse) Descriptor() ([]byte, []int)
- func (m *QueryOrdersResponse) GetOrders() Orders
- func (m *QueryOrdersResponse) GetPagination() *query.PageResponse
- func (m *QueryOrdersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOrdersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOrdersResponse) ProtoMessage()
- func (m *QueryOrdersResponse) Reset()
- func (m *QueryOrdersResponse) Size() (n int)
- func (m *QueryOrdersResponse) String() string
- func (m *QueryOrdersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOrdersResponse) XXX_DiscardUnknown()
- func (m *QueryOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOrdersResponse) XXX_Merge(src proto.Message)
- func (m *QueryOrdersResponse) XXX_Size() int
- func (m *QueryOrdersResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CloseBid(ctx context.Context, req *MsgCloseBid) (*MsgCloseBidResponse, error)
- func (*UnimplementedMsgServer) CloseOrder(ctx context.Context, req *MsgCloseOrder) (*MsgCloseOrderResponse, error)
- func (*UnimplementedMsgServer) CreateBid(ctx context.Context, req *MsgCreateBid) (*MsgCreateBidResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Bid(ctx context.Context, req *QueryBidRequest) (*QueryBidResponse, error)
- func (*UnimplementedQueryServer) Bids(ctx context.Context, req *QueryBidsRequest) (*QueryBidsResponse, error)
- func (*UnimplementedQueryServer) Lease(ctx context.Context, req *QueryLeaseRequest) (*QueryLeaseResponse, error)
- func (*UnimplementedQueryServer) Leases(ctx context.Context, req *QueryLeasesRequest) (*QueryLeasesResponse, error)
- func (*UnimplementedQueryServer) Order(ctx context.Context, req *QueryOrderRequest) (*QueryOrderResponse, error)
- func (*UnimplementedQueryServer) Orders(ctx context.Context, req *QueryOrdersRequest) (*QueryOrdersResponse, error)
Constants ¶
const ( // ModuleName is the module name constant used in many places ModuleName = "market" // StoreKey is the store key string for market StoreKey = ModuleName // RouterKey is the message route for market RouterKey = ModuleName )
const ( MsgTypeCreateBid = "create-bid" MsgTypeCloseBid = "close-bid" MsgTypeCloseOrder = "close-order" )
Variables ¶
var ( ErrInvalidLengthBid = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowBid = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupBid = fmt.Errorf("proto: unexpected end of group") )
var ( // ErrInvalidOrder is the error when order id is invalid ErrInvalidOrder = sdkerrors.Register(ModuleName, errCodeInvalidOrder, "invalid: order id") // ErrEmptyProvider is the error when provider is empty ErrEmptyProvider = sdkerrors.Register(ModuleName, errCodeEmptyProvider, "empty provider") // ErrSameAccount is the error when owner and provider are the same account ErrSameAccount = sdkerrors.Register(ModuleName, errCodeSameAccount, "owner and provider are the same account") // ErrInternal is the error for internal error ErrInternal = sdkerrors.Register(ModuleName, errCodeInternal, "internal error") // ErrBidOverOrder is the error when bid price is above max order price ErrBidOverOrder = sdkerrors.Register(ModuleName, errCodeOverOrder, "bid price above max order price") // ErrAttributeMismatch is the error for attribute mismatch ErrAttributeMismatch = sdkerrors.Register(ModuleName, errCodeAttributeMismatch, "attribute mismatch") // ErrUnknownBid is the error for unknown bid ErrUnknownBid = sdkerrors.Register(ModuleName, errCodeUnknownBid, "unknown bid") // ErrUnknownLeaseForBid is the error when lease is unknown for bid ErrUnknownLeaseForBid = sdkerrors.Register(ModuleName, errCodeUnknownLeaseForOrder, "unknown lease for bid") // ErrUnknownOrderForBid is the error when order is unknown for bid ErrUnknownOrderForBid = sdkerrors.Register(ModuleName, errCodeUnknownOrderForBid, "unknown order for bid") // ErrLeaseNotActive is the error when lease is not active ErrLeaseNotActive = sdkerrors.Register(ModuleName, errCodeLeaseNotActive, "lease not active") // ErrBidNotMatched is the error when bid is not matched ErrBidNotMatched = sdkerrors.Register(ModuleName, errCodeBidNotMatched, "bid not matched") // ErrUnknownOrder is the error when order is unknown ErrUnknownOrder = sdkerrors.Register(ModuleName, errCodeUnknownOrder, "unknown order") // ErrNoLeaseForOrder is the error when there is no lease for order ErrNoLeaseForOrder = sdkerrors.Register(ModuleName, errCodeNoLeaseForOrder, "no lease for order") // ErrOrderNotFound order not found ErrOrderNotFound = sdkerrors.Register(ModuleName, errCodeOrderNotFound, "invalid order: order not found") // ErrBidNotFound bid not found ErrBidNotFound = sdkerrors.Register(ModuleName, errCodeBidNotFound, "invalid bid: bid not found") // ErrLeaseNotFound lease not found ErrLeaseNotFound = sdkerrors.Register(ModuleName, errCodeLeaseNotFound, "invalid lease: lease not found") // ErrBidExists bid exists ErrBidExists = sdkerrors.Register(ModuleName, errCodeBidExists, "invalid bid: bid exists from provider") // ErrBidInvalidPrice bid invalid price ErrBidInvalidPrice = sdkerrors.Register(ModuleName, errCodeInvalidPrice, "bid price is invalid") // ErrOrderMatched order matched ErrOrderMatched = sdkerrors.New(ModuleName, errCodeOrderMatched, "order matched") // ErrOrderClosed order closed ErrOrderClosed = sdkerrors.New(ModuleName, errCodeOrderClosed, "order closed") // ErrOrderExists indicates a new order was proposed overwrite the existing store key ErrOrderExists = sdkerrors.New(ModuleName, errCodeOrderExists, "order already exists in store") // ErrOrderTooEarly to match bid ErrOrderTooEarly = sdkerrors.New(ModuleName, errCodeOrderTooEarly, "order: chain height to low for bidding") // ErrOrderDurationExceeded order should be closed ErrOrderDurationExceeded = sdkerrors.New(ModuleName, errCodeOrderDurationExceeded, "order duration has exceeded the bidding duration") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthLease = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowLease = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupLease = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthOrder = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOrder = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupOrder = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var Bid_State_name = map[int32]string{
0: "invalid",
1: "open",
2: "matched",
3: "lost",
4: "closed",
}
var Bid_State_value = map[string]int32{
"invalid": 0,
"open": 1,
"matched": 2,
"lost": 3,
"closed": 4,
}
var (
ErrParsingPrice = errors.New("error parsing price")
)
var Lease_State_name = map[int32]string{
0: "invalid",
1: "active",
2: "insufficient_funds",
3: "closed",
}
var Lease_State_value = map[string]int32{
"invalid": 0,
"active": 1,
"insufficient_funds": 2,
"closed": 3,
}
var ( // ModuleCdc references the global x/market module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/market and // defined at the application level. ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var Order_State_name = map[int32]string{
0: "invalid",
1: "open",
2: "matched",
3: "closed",
}
var Order_State_value = map[string]int32{
"invalid": 0,
"open": 1,
"matched": 2,
"closed": 3,
}
Functions ¶
func ParseEvent ¶
func ParseEvent(ev sdkutil.Event) (sdkutil.ModuleEvent, error)
ParseEvent parses event and returns details of event and error if occurred
func RegisterInterfaces ¶ added in v0.9.1
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
RegisterInterfaces registers the x/market interfaces types with the interface registry
func RegisterLegacyAminoCodec ¶ added in v0.9.1
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterCodec registers the necessary x/market interfaces and concrete types on the provided Amino codec. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶ added in v0.9.1
func RegisterQueryHandler ¶ added in v0.9.1
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v0.9.1
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶ added in v0.9.1
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶ added in v0.9.1
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶ added in v0.9.1
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type Bid ¶
type Bid struct { BidID BidID `protobuf:"bytes,1,opt,name=bid_id,json=bidId,proto3" json:"id" yaml:"id"` State Bid_State `protobuf:"varint,2,opt,name=state,proto3,enum=akash.market.v1beta1.Bid_State" json:"state" yaml:"state"` Price types.Coin `protobuf:"bytes,3,opt,name=price,proto3" json:"price" yaml:"price"` }
Bid stores BidID, state of bid and price
func (*Bid) Descriptor ¶ added in v0.9.1
func (*Bid) MarshalToSizedBuffer ¶ added in v0.9.1
func (*Bid) ProtoMessage ¶ added in v0.9.1
func (*Bid) ProtoMessage()
func (*Bid) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *Bid) XXX_DiscardUnknown()
func (*Bid) XXX_Marshal ¶ added in v0.9.1
func (*Bid) XXX_Unmarshal ¶ added in v0.9.1
type BidFilters ¶
type BidFilters struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` DSeq uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"` GSeq uint32 `protobuf:"varint,3,opt,name=gseq,proto3" json:"gseq" yaml:"gseq"` OSeq uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"` Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider" yaml:"provider"` State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state" yaml:"state"` }
BidFilters defines flags for bid list filter
func (BidFilters) Accept ¶ added in v0.9.1
func (filters BidFilters) Accept(obj Bid, stateVal Bid_State) bool
Accept returns whether bid filters valid or not
func (*BidFilters) Descriptor ¶ added in v0.9.1
func (*BidFilters) Descriptor() ([]byte, []int)
func (*BidFilters) GetDSeq ¶ added in v0.9.1
func (m *BidFilters) GetDSeq() uint64
func (*BidFilters) GetGSeq ¶ added in v0.9.1
func (m *BidFilters) GetGSeq() uint32
func (*BidFilters) GetOSeq ¶ added in v0.9.1
func (m *BidFilters) GetOSeq() uint32
func (*BidFilters) GetOwner ¶ added in v0.9.1
func (m *BidFilters) GetOwner() string
func (*BidFilters) GetProvider ¶ added in v0.9.1
func (m *BidFilters) GetProvider() string
func (*BidFilters) GetState ¶ added in v0.9.1
func (m *BidFilters) GetState() string
func (*BidFilters) Marshal ¶ added in v0.9.1
func (m *BidFilters) Marshal() (dAtA []byte, err error)
func (*BidFilters) MarshalTo ¶ added in v0.9.1
func (m *BidFilters) MarshalTo(dAtA []byte) (int, error)
func (*BidFilters) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *BidFilters) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*BidFilters) ProtoMessage ¶ added in v0.9.1
func (*BidFilters) ProtoMessage()
func (*BidFilters) Reset ¶ added in v0.9.1
func (m *BidFilters) Reset()
func (*BidFilters) Size ¶ added in v0.9.1
func (m *BidFilters) Size() (n int)
func (*BidFilters) String ¶ added in v0.9.1
func (m *BidFilters) String() string
func (*BidFilters) Unmarshal ¶ added in v0.9.1
func (m *BidFilters) Unmarshal(dAtA []byte) error
func (*BidFilters) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *BidFilters) XXX_DiscardUnknown()
func (*BidFilters) XXX_Marshal ¶ added in v0.9.1
func (m *BidFilters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*BidFilters) XXX_Merge ¶ added in v0.9.1
func (m *BidFilters) XXX_Merge(src proto.Message)
func (*BidFilters) XXX_Size ¶ added in v0.9.1
func (m *BidFilters) XXX_Size() int
func (*BidFilters) XXX_Unmarshal ¶ added in v0.9.1
func (m *BidFilters) XXX_Unmarshal(b []byte) error
type BidID ¶
type BidID struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` DSeq uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"` GSeq uint32 `protobuf:"varint,3,opt,name=gseq,proto3" json:"gseq" yaml:"gseq"` OSeq uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"` Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider" yaml:"provider"` }
BidID stores owner and all other seq numbers A successful bid becomes a Lease(ID).
func MakeBidID ¶
func MakeBidID(id OrderID, provider sdk.AccAddress) BidID
MakeBidID returns BidID instance with provided order details and provider
func (BidID) DeploymentID ¶
func (id BidID) DeploymentID() dtypes.DeploymentID
DeploymentID method returns deployment details with specific bid details
func (*BidID) Descriptor ¶ added in v0.9.1
func (*BidID) GetProvider ¶ added in v0.9.1
func (*BidID) MarshalToSizedBuffer ¶ added in v0.9.1
func (*BidID) ProtoMessage ¶ added in v0.9.1
func (*BidID) ProtoMessage()
func (*BidID) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *BidID) XXX_DiscardUnknown()
func (*BidID) XXX_Marshal ¶ added in v0.9.1
func (*BidID) XXX_Unmarshal ¶ added in v0.9.1
type Bid_State ¶ added in v0.9.1
type Bid_State int32
State is an enum which refers to state of bid
const ( // Prefix should start with 0 in enum. So declaring dummy state BidStateInvalid Bid_State = 0 // BidOpen denotes state for bid open BidOpen Bid_State = 1 // BidMatched denotes state for bid open BidMatched Bid_State = 2 // BidLost denotes state for bid lost BidLost Bid_State = 3 // BidClosed denotes state for bid closed BidClosed Bid_State = 4 )
func (Bid_State) EnumDescriptor ¶ added in v0.9.1
type EventBidClosed ¶
type EventBidClosed struct { Context sdkutil.BaseModuleEvent `json:"context"` ID BidID `json:"id"` Price sdk.Coin `json:"price"` }
EventBidClosed struct
func NewEventBidClosed ¶ added in v0.7.5
func NewEventBidClosed(id BidID, price sdk.Coin) EventBidClosed
func (EventBidClosed) ToSDKEvent ¶
func (e EventBidClosed) ToSDKEvent() sdk.Event
ToSDKEvent method creates new sdk event for EventBidClosed struct
type EventBidCreated ¶
type EventBidCreated struct { Context sdkutil.BaseModuleEvent `json:"context"` ID BidID `json:"id"` Price sdk.Coin `json:"price"` }
EventBidCreated struct
func NewEventBidCreated ¶ added in v0.7.5
func NewEventBidCreated(id BidID, price sdk.Coin) EventBidCreated
func (EventBidCreated) ToSDKEvent ¶
func (e EventBidCreated) ToSDKEvent() sdk.Event
ToSDKEvent method creates new sdk event for EventBidCreated struct
type EventLeaseClosed ¶
type EventLeaseClosed struct { Context sdkutil.BaseModuleEvent `json:"context"` ID LeaseID `json:"id"` Price sdk.Coin `json:"price"` }
EventLeaseClosed struct
func NewEventLeaseClosed ¶ added in v0.7.5
func NewEventLeaseClosed(id LeaseID, price sdk.Coin) EventLeaseClosed
func (EventLeaseClosed) ToSDKEvent ¶
func (e EventLeaseClosed) ToSDKEvent() sdk.Event
ToSDKEvent method creates new sdk event for EventLeaseClosed struct
type EventLeaseCreated ¶
type EventLeaseCreated struct { Context sdkutil.BaseModuleEvent `json:"context"` ID LeaseID `json:"id"` Price sdk.Coin `json:"price"` }
EventLeaseCreated struct
func NewEventLeaseCreated ¶ added in v0.7.5
func NewEventLeaseCreated(id LeaseID, price sdk.Coin) EventLeaseCreated
func (EventLeaseCreated) ToSDKEvent ¶
func (e EventLeaseCreated) ToSDKEvent() sdk.Event
ToSDKEvent method creates new sdk event for EventLeaseCreated struct
type EventOrderClosed ¶
type EventOrderClosed struct { Context sdkutil.BaseModuleEvent `json:"context"` ID OrderID `json:"id"` }
EventOrderClosed struct
func NewEventOrderClosed ¶ added in v0.7.5
func NewEventOrderClosed(id OrderID) EventOrderClosed
func (EventOrderClosed) ToSDKEvent ¶
func (e EventOrderClosed) ToSDKEvent() sdk.Event
ToSDKEvent method creates new sdk event for EventOrderClosed struct
type EventOrderCreated ¶
type EventOrderCreated struct { Context sdkutil.BaseModuleEvent `json:"context"` ID OrderID `json:"id"` }
EventOrderCreated struct
func NewEventOrderCreated ¶ added in v0.7.5
func NewEventOrderCreated(id OrderID) EventOrderCreated
func (EventOrderCreated) ToSDKEvent ¶
func (e EventOrderCreated) ToSDKEvent() sdk.Event
ToSDKEvent method creates new sdk event for EventOrderCreated struct
type GenesisState ¶ added in v0.9.1
type GenesisState struct { Orders []Order `protobuf:"bytes,1,rep,name=orders,proto3" json:"orders" yaml:"orders"` Leases []Lease `protobuf:"bytes,2,rep,name=leases,proto3" json:"leases" yaml:"leases"` }
GenesisState defines the basic genesis state used by market module
func (*GenesisState) Descriptor ¶ added in v0.9.1
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetLeases ¶ added in v0.9.1
func (m *GenesisState) GetLeases() []Lease
func (*GenesisState) GetOrders ¶ added in v0.9.1
func (m *GenesisState) GetOrders() []Order
func (*GenesisState) Marshal ¶ added in v0.9.1
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalTo ¶ added in v0.9.1
func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
func (*GenesisState) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶ added in v0.9.1
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶ added in v0.9.1
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶ added in v0.9.1
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶ added in v0.9.1
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶ added in v0.9.1
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶ added in v0.9.1
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶ added in v0.9.1
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶ added in v0.9.1
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶ added in v0.9.1
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type Lease ¶
type Lease struct { LeaseID LeaseID `protobuf:"bytes,1,opt,name=lease_id,json=leaseId,proto3" json:"id" yaml:"id"` State Lease_State `protobuf:"varint,2,opt,name=state,proto3,enum=akash.market.v1beta1.Lease_State" json:"state" yaml:"state"` Price types.Coin `protobuf:"bytes,3,opt,name=price,proto3" json:"price" yaml:"price"` }
Lease stores LeaseID, state of lease and price
func (*Lease) Descriptor ¶ added in v0.9.1
func (*Lease) GetLeaseID ¶ added in v0.9.1
func (*Lease) GetState ¶ added in v0.9.1
func (m *Lease) GetState() Lease_State
func (*Lease) MarshalToSizedBuffer ¶ added in v0.9.1
func (*Lease) ProtoMessage ¶ added in v0.9.1
func (*Lease) ProtoMessage()
func (*Lease) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *Lease) XXX_DiscardUnknown()
func (*Lease) XXX_Marshal ¶ added in v0.9.1
func (*Lease) XXX_Unmarshal ¶ added in v0.9.1
type LeaseFilters ¶
type LeaseFilters struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` DSeq uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"` GSeq uint32 `protobuf:"varint,3,opt,name=gseq,proto3" json:"gseq" yaml:"gseq"` OSeq uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"` Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider" yaml:"provider"` State string `protobuf:"bytes,6,opt,name=state,proto3" json:"state" yaml:"state"` }
LeaseFilters defines flags for lease list filter
func (LeaseFilters) Accept ¶ added in v0.9.1
func (filters LeaseFilters) Accept(obj Lease, stateVal Lease_State) bool
Accept returns whether lease filters valid or not
func (*LeaseFilters) Descriptor ¶ added in v0.9.1
func (*LeaseFilters) Descriptor() ([]byte, []int)
func (*LeaseFilters) GetDSeq ¶ added in v0.9.1
func (m *LeaseFilters) GetDSeq() uint64
func (*LeaseFilters) GetGSeq ¶ added in v0.9.1
func (m *LeaseFilters) GetGSeq() uint32
func (*LeaseFilters) GetOSeq ¶ added in v0.9.1
func (m *LeaseFilters) GetOSeq() uint32
func (*LeaseFilters) GetOwner ¶ added in v0.9.1
func (m *LeaseFilters) GetOwner() string
func (*LeaseFilters) GetProvider ¶ added in v0.9.1
func (m *LeaseFilters) GetProvider() string
func (*LeaseFilters) GetState ¶ added in v0.9.1
func (m *LeaseFilters) GetState() string
func (*LeaseFilters) Marshal ¶ added in v0.9.1
func (m *LeaseFilters) Marshal() (dAtA []byte, err error)
func (*LeaseFilters) MarshalTo ¶ added in v0.9.1
func (m *LeaseFilters) MarshalTo(dAtA []byte) (int, error)
func (*LeaseFilters) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *LeaseFilters) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LeaseFilters) ProtoMessage ¶ added in v0.9.1
func (*LeaseFilters) ProtoMessage()
func (*LeaseFilters) Reset ¶ added in v0.9.1
func (m *LeaseFilters) Reset()
func (*LeaseFilters) Size ¶ added in v0.9.1
func (m *LeaseFilters) Size() (n int)
func (*LeaseFilters) String ¶ added in v0.9.1
func (m *LeaseFilters) String() string
func (*LeaseFilters) Unmarshal ¶ added in v0.9.1
func (m *LeaseFilters) Unmarshal(dAtA []byte) error
func (*LeaseFilters) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *LeaseFilters) XXX_DiscardUnknown()
func (*LeaseFilters) XXX_Marshal ¶ added in v0.9.1
func (m *LeaseFilters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaseFilters) XXX_Merge ¶ added in v0.9.1
func (m *LeaseFilters) XXX_Merge(src proto.Message)
func (*LeaseFilters) XXX_Size ¶ added in v0.9.1
func (m *LeaseFilters) XXX_Size() int
func (*LeaseFilters) XXX_Unmarshal ¶ added in v0.9.1
func (m *LeaseFilters) XXX_Unmarshal(b []byte) error
type LeaseID ¶
type LeaseID struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` DSeq uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"` GSeq uint32 `protobuf:"varint,3,opt,name=gseq,proto3" json:"gseq" yaml:"gseq"` OSeq uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"` Provider string `protobuf:"bytes,5,opt,name=provider,proto3" json:"provider" yaml:"provider"` }
LeaseID stores bid details of lease
func MakeLeaseID ¶
MakeLeaseID returns LeaseID instance with provided bid details
func (LeaseID) DeploymentID ¶
func (id LeaseID) DeploymentID() dtypes.DeploymentID
DeploymentID method returns deployment details with specific lease details
func (*LeaseID) Descriptor ¶ added in v0.9.1
func (*LeaseID) GetProvider ¶ added in v0.9.1
func (*LeaseID) MarshalToSizedBuffer ¶ added in v0.9.1
func (*LeaseID) ProtoMessage ¶ added in v0.9.1
func (*LeaseID) ProtoMessage()
func (LeaseID) String ¶ added in v0.7.8
String method provides human readable representation of LeaseID.
func (LeaseID) Validate ¶ added in v0.6.2
Validate calls the BidID's validator and returns any error.
func (*LeaseID) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *LeaseID) XXX_DiscardUnknown()
func (*LeaseID) XXX_Marshal ¶ added in v0.9.1
func (*LeaseID) XXX_Unmarshal ¶ added in v0.9.1
type Lease_State ¶ added in v0.9.1
type Lease_State int32
State is an enum which refers to state of lease
const ( // Prefix should start with 0 in enum. So declaring dummy state LeaseStateInvalid Lease_State = 0 // LeaseActive denotes state for lease active LeaseActive Lease_State = 1 // LeaseInsufficientFunds denotes state for lease insufficient_funds LeaseInsufficientFunds Lease_State = 2 // LeaseClosed denotes state for lease closed LeaseClosed Lease_State = 3 )
func (Lease_State) EnumDescriptor ¶ added in v0.9.1
func (Lease_State) EnumDescriptor() ([]byte, []int)
func (Lease_State) String ¶ added in v0.9.1
func (x Lease_State) String() string
type MsgClient ¶ added in v0.9.1
type MsgClient interface { // CreateBid defines a method to create a bid given proper inputs. CreateBid(ctx context.Context, in *MsgCreateBid, opts ...grpc.CallOption) (*MsgCreateBidResponse, error) // CloseBid defines a method to close a bid given proper inputs. CloseBid(ctx context.Context, in *MsgCloseBid, opts ...grpc.CallOption) (*MsgCloseBidResponse, error) // CloseOrder defines a method to close an order given proper inputs. CloseOrder(ctx context.Context, in *MsgCloseOrder, opts ...grpc.CallOption) (*MsgCloseOrderResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶ added in v0.9.1
func NewMsgClient(cc grpc1.ClientConn) MsgClient
type MsgCloseBid ¶
type MsgCloseBid struct {
BidID BidID `protobuf:"bytes,1,opt,name=bid_id,json=bidId,proto3" json:"id" yaml:"id"`
}
MsgCloseBid defines an SDK message for closing bid
func NewMsgCloseBid ¶ added in v0.9.1
func NewMsgCloseBid(id BidID) *MsgCloseBid
NewMsgCloseBid creates a new MsgCloseBid instance
func (*MsgCloseBid) Descriptor ¶ added in v0.9.1
func (*MsgCloseBid) Descriptor() ([]byte, []int)
func (*MsgCloseBid) GetBidID ¶ added in v0.9.1
func (m *MsgCloseBid) GetBidID() BidID
func (MsgCloseBid) GetSignBytes ¶
func (msg MsgCloseBid) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgCloseBid) GetSigners ¶
func (msg MsgCloseBid) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgCloseBid) Marshal ¶ added in v0.9.1
func (m *MsgCloseBid) Marshal() (dAtA []byte, err error)
func (*MsgCloseBid) MarshalTo ¶ added in v0.9.1
func (m *MsgCloseBid) MarshalTo(dAtA []byte) (int, error)
func (*MsgCloseBid) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgCloseBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCloseBid) ProtoMessage ¶ added in v0.9.1
func (*MsgCloseBid) ProtoMessage()
func (*MsgCloseBid) Reset ¶ added in v0.9.1
func (m *MsgCloseBid) Reset()
func (MsgCloseBid) Route ¶
func (msg MsgCloseBid) Route() string
Route implements the sdk.Msg interface
func (*MsgCloseBid) Size ¶ added in v0.9.1
func (m *MsgCloseBid) Size() (n int)
func (*MsgCloseBid) String ¶ added in v0.9.1
func (m *MsgCloseBid) String() string
func (MsgCloseBid) Type ¶
func (msg MsgCloseBid) Type() string
Type implements the sdk.Msg interface
func (*MsgCloseBid) Unmarshal ¶ added in v0.9.1
func (m *MsgCloseBid) Unmarshal(dAtA []byte) error
func (MsgCloseBid) ValidateBasic ¶
func (msg MsgCloseBid) ValidateBasic() error
ValidateBasic method for MsgCloseBid
func (*MsgCloseBid) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgCloseBid) XXX_DiscardUnknown()
func (*MsgCloseBid) XXX_Marshal ¶ added in v0.9.1
func (m *MsgCloseBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCloseBid) XXX_Merge ¶ added in v0.9.1
func (m *MsgCloseBid) XXX_Merge(src proto.Message)
func (*MsgCloseBid) XXX_Size ¶ added in v0.9.1
func (m *MsgCloseBid) XXX_Size() int
func (*MsgCloseBid) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgCloseBid) XXX_Unmarshal(b []byte) error
type MsgCloseBidResponse ¶ added in v0.9.1
type MsgCloseBidResponse struct { }
MsgCloseBidResponse defines the Msg/CloseBid response type.
func (*MsgCloseBidResponse) Descriptor ¶ added in v0.9.1
func (*MsgCloseBidResponse) Descriptor() ([]byte, []int)
func (*MsgCloseBidResponse) Marshal ¶ added in v0.9.1
func (m *MsgCloseBidResponse) Marshal() (dAtA []byte, err error)
func (*MsgCloseBidResponse) MarshalTo ¶ added in v0.9.1
func (m *MsgCloseBidResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCloseBidResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgCloseBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCloseBidResponse) ProtoMessage ¶ added in v0.9.1
func (*MsgCloseBidResponse) ProtoMessage()
func (*MsgCloseBidResponse) Reset ¶ added in v0.9.1
func (m *MsgCloseBidResponse) Reset()
func (*MsgCloseBidResponse) Size ¶ added in v0.9.1
func (m *MsgCloseBidResponse) Size() (n int)
func (*MsgCloseBidResponse) String ¶ added in v0.9.1
func (m *MsgCloseBidResponse) String() string
func (*MsgCloseBidResponse) Unmarshal ¶ added in v0.9.1
func (m *MsgCloseBidResponse) Unmarshal(dAtA []byte) error
func (*MsgCloseBidResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgCloseBidResponse) XXX_DiscardUnknown()
func (*MsgCloseBidResponse) XXX_Marshal ¶ added in v0.9.1
func (m *MsgCloseBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCloseBidResponse) XXX_Merge ¶ added in v0.9.1
func (m *MsgCloseBidResponse) XXX_Merge(src proto.Message)
func (*MsgCloseBidResponse) XXX_Size ¶ added in v0.9.1
func (m *MsgCloseBidResponse) XXX_Size() int
func (*MsgCloseBidResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgCloseBidResponse) XXX_Unmarshal(b []byte) error
type MsgCloseOrder ¶
type MsgCloseOrder struct {
OrderID OrderID `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"id" yaml:"id"`
}
MsgCloseOrder defines an SDK message for closing order
func NewMsgCloseOrder ¶ added in v0.9.1
func NewMsgCloseOrder(id OrderID) *MsgCloseOrder
NewMsgCloseOrder creates a new MsgCloseOrder instance
func (*MsgCloseOrder) Descriptor ¶ added in v0.9.1
func (*MsgCloseOrder) Descriptor() ([]byte, []int)
func (*MsgCloseOrder) GetOrderID ¶ added in v0.9.1
func (m *MsgCloseOrder) GetOrderID() OrderID
func (MsgCloseOrder) GetSignBytes ¶
func (msg MsgCloseOrder) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgCloseOrder) GetSigners ¶
func (msg MsgCloseOrder) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgCloseOrder) Marshal ¶ added in v0.9.1
func (m *MsgCloseOrder) Marshal() (dAtA []byte, err error)
func (*MsgCloseOrder) MarshalTo ¶ added in v0.9.1
func (m *MsgCloseOrder) MarshalTo(dAtA []byte) (int, error)
func (*MsgCloseOrder) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgCloseOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCloseOrder) ProtoMessage ¶ added in v0.9.1
func (*MsgCloseOrder) ProtoMessage()
func (*MsgCloseOrder) Reset ¶ added in v0.9.1
func (m *MsgCloseOrder) Reset()
func (MsgCloseOrder) Route ¶
func (msg MsgCloseOrder) Route() string
Route implements the sdk.Msg interface
func (*MsgCloseOrder) Size ¶ added in v0.9.1
func (m *MsgCloseOrder) Size() (n int)
func (*MsgCloseOrder) String ¶ added in v0.9.1
func (m *MsgCloseOrder) String() string
func (MsgCloseOrder) Type ¶
func (msg MsgCloseOrder) Type() string
Type implements the sdk.Msg interface
func (*MsgCloseOrder) Unmarshal ¶ added in v0.9.1
func (m *MsgCloseOrder) Unmarshal(dAtA []byte) error
func (MsgCloseOrder) ValidateBasic ¶
func (msg MsgCloseOrder) ValidateBasic() error
ValidateBasic method for MsgCloseOrder
func (*MsgCloseOrder) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgCloseOrder) XXX_DiscardUnknown()
func (*MsgCloseOrder) XXX_Marshal ¶ added in v0.9.1
func (m *MsgCloseOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCloseOrder) XXX_Merge ¶ added in v0.9.1
func (m *MsgCloseOrder) XXX_Merge(src proto.Message)
func (*MsgCloseOrder) XXX_Size ¶ added in v0.9.1
func (m *MsgCloseOrder) XXX_Size() int
func (*MsgCloseOrder) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgCloseOrder) XXX_Unmarshal(b []byte) error
type MsgCloseOrderResponse ¶ added in v0.9.1
type MsgCloseOrderResponse struct { }
MsgCloseOrderResponse defines the Msg/CloseOrder response type.
func (*MsgCloseOrderResponse) Descriptor ¶ added in v0.9.1
func (*MsgCloseOrderResponse) Descriptor() ([]byte, []int)
func (*MsgCloseOrderResponse) Marshal ¶ added in v0.9.1
func (m *MsgCloseOrderResponse) Marshal() (dAtA []byte, err error)
func (*MsgCloseOrderResponse) MarshalTo ¶ added in v0.9.1
func (m *MsgCloseOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCloseOrderResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgCloseOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCloseOrderResponse) ProtoMessage ¶ added in v0.9.1
func (*MsgCloseOrderResponse) ProtoMessage()
func (*MsgCloseOrderResponse) Reset ¶ added in v0.9.1
func (m *MsgCloseOrderResponse) Reset()
func (*MsgCloseOrderResponse) Size ¶ added in v0.9.1
func (m *MsgCloseOrderResponse) Size() (n int)
func (*MsgCloseOrderResponse) String ¶ added in v0.9.1
func (m *MsgCloseOrderResponse) String() string
func (*MsgCloseOrderResponse) Unmarshal ¶ added in v0.9.1
func (m *MsgCloseOrderResponse) Unmarshal(dAtA []byte) error
func (*MsgCloseOrderResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgCloseOrderResponse) XXX_DiscardUnknown()
func (*MsgCloseOrderResponse) XXX_Marshal ¶ added in v0.9.1
func (m *MsgCloseOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCloseOrderResponse) XXX_Merge ¶ added in v0.9.1
func (m *MsgCloseOrderResponse) XXX_Merge(src proto.Message)
func (*MsgCloseOrderResponse) XXX_Size ¶ added in v0.9.1
func (m *MsgCloseOrderResponse) XXX_Size() int
func (*MsgCloseOrderResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgCloseOrderResponse) XXX_Unmarshal(b []byte) error
type MsgCreateBid ¶
type MsgCreateBid struct { Order OrderID `protobuf:"bytes,1,opt,name=order,proto3" json:"order" yaml:"order"` Provider string `protobuf:"bytes,2,opt,name=provider,proto3" json:"provider" yaml:"provider"` Price types.Coin `protobuf:"bytes,3,opt,name=price,proto3" json:"price" yaml:"price"` }
MsgCreateBid defines an SDK message for creating Bid
func NewMsgCreateBid ¶ added in v0.9.1
func NewMsgCreateBid(id OrderID, provider sdk.AccAddress, price sdk.Coin) *MsgCreateBid
NewMsgCreateBid creates a new MsgCreateBid instance
func (*MsgCreateBid) Descriptor ¶ added in v0.9.1
func (*MsgCreateBid) Descriptor() ([]byte, []int)
func (*MsgCreateBid) GetOrder ¶ added in v0.9.1
func (m *MsgCreateBid) GetOrder() OrderID
func (*MsgCreateBid) GetPrice ¶ added in v0.9.1
func (m *MsgCreateBid) GetPrice() types.Coin
func (*MsgCreateBid) GetProvider ¶ added in v0.9.1
func (m *MsgCreateBid) GetProvider() string
func (MsgCreateBid) GetSignBytes ¶
func (msg MsgCreateBid) GetSignBytes() []byte
GetSignBytes encodes the message for signing
func (MsgCreateBid) GetSigners ¶
func (msg MsgCreateBid) GetSigners() []sdk.AccAddress
GetSigners defines whose signature is required
func (*MsgCreateBid) Marshal ¶ added in v0.9.1
func (m *MsgCreateBid) Marshal() (dAtA []byte, err error)
func (*MsgCreateBid) MarshalTo ¶ added in v0.9.1
func (m *MsgCreateBid) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateBid) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgCreateBid) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateBid) ProtoMessage ¶ added in v0.9.1
func (*MsgCreateBid) ProtoMessage()
func (*MsgCreateBid) Reset ¶ added in v0.9.1
func (m *MsgCreateBid) Reset()
func (MsgCreateBid) Route ¶
func (msg MsgCreateBid) Route() string
Route implements the sdk.Msg interface
func (*MsgCreateBid) Size ¶ added in v0.9.1
func (m *MsgCreateBid) Size() (n int)
func (*MsgCreateBid) String ¶ added in v0.9.1
func (m *MsgCreateBid) String() string
func (MsgCreateBid) Type ¶
func (msg MsgCreateBid) Type() string
Type implements the sdk.Msg interface
func (*MsgCreateBid) Unmarshal ¶ added in v0.9.1
func (m *MsgCreateBid) Unmarshal(dAtA []byte) error
func (MsgCreateBid) ValidateBasic ¶
func (msg MsgCreateBid) ValidateBasic() error
ValidateBasic does basic validation of provider and order
func (*MsgCreateBid) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgCreateBid) XXX_DiscardUnknown()
func (*MsgCreateBid) XXX_Marshal ¶ added in v0.9.1
func (m *MsgCreateBid) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateBid) XXX_Merge ¶ added in v0.9.1
func (m *MsgCreateBid) XXX_Merge(src proto.Message)
func (*MsgCreateBid) XXX_Size ¶ added in v0.9.1
func (m *MsgCreateBid) XXX_Size() int
func (*MsgCreateBid) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgCreateBid) XXX_Unmarshal(b []byte) error
type MsgCreateBidResponse ¶ added in v0.9.1
type MsgCreateBidResponse struct { }
MsgCreateBidResponse defines the Msg/CreateBid response type.
func (*MsgCreateBidResponse) Descriptor ¶ added in v0.9.1
func (*MsgCreateBidResponse) Descriptor() ([]byte, []int)
func (*MsgCreateBidResponse) Marshal ¶ added in v0.9.1
func (m *MsgCreateBidResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateBidResponse) MarshalTo ¶ added in v0.9.1
func (m *MsgCreateBidResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateBidResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *MsgCreateBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateBidResponse) ProtoMessage ¶ added in v0.9.1
func (*MsgCreateBidResponse) ProtoMessage()
func (*MsgCreateBidResponse) Reset ¶ added in v0.9.1
func (m *MsgCreateBidResponse) Reset()
func (*MsgCreateBidResponse) Size ¶ added in v0.9.1
func (m *MsgCreateBidResponse) Size() (n int)
func (*MsgCreateBidResponse) String ¶ added in v0.9.1
func (m *MsgCreateBidResponse) String() string
func (*MsgCreateBidResponse) Unmarshal ¶ added in v0.9.1
func (m *MsgCreateBidResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateBidResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *MsgCreateBidResponse) XXX_DiscardUnknown()
func (*MsgCreateBidResponse) XXX_Marshal ¶ added in v0.9.1
func (m *MsgCreateBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateBidResponse) XXX_Merge ¶ added in v0.9.1
func (m *MsgCreateBidResponse) XXX_Merge(src proto.Message)
func (*MsgCreateBidResponse) XXX_Size ¶ added in v0.9.1
func (m *MsgCreateBidResponse) XXX_Size() int
func (*MsgCreateBidResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *MsgCreateBidResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶ added in v0.9.1
type MsgServer interface { // CreateBid defines a method to create a bid given proper inputs. CreateBid(context.Context, *MsgCreateBid) (*MsgCreateBidResponse, error) // CloseBid defines a method to close a bid given proper inputs. CloseBid(context.Context, *MsgCloseBid) (*MsgCloseBidResponse, error) // CloseOrder defines a method to close an order given proper inputs. CloseOrder(context.Context, *MsgCloseOrder) (*MsgCloseOrderResponse, error) }
MsgServer is the server API for Msg service.
type Order ¶
type Order struct { OrderID OrderID `protobuf:"bytes,1,opt,name=order_id,json=orderId,proto3" json:"id" yaml:"id"` State Order_State `protobuf:"varint,2,opt,name=state,proto3,enum=akash.market.v1beta1.Order_State" json:"state" yaml:"state"` StartAt int64 `protobuf:"varint,3,opt,name=start_at,json=startAt,proto3" json:"start-at" yaml:"start-at"` Spec types.GroupSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec" yaml:"spec"` CloseAt int64 `protobuf:"varint,5,opt,name=close_at,json=closeAt,proto3" json:"close-at" yaml:"close-at"` }
Order stores orderID, state of order and other details
func (*Order) Descriptor ¶ added in v0.9.1
func (*Order) GetCloseAt ¶ added in v0.9.1
func (*Order) GetOrderID ¶ added in v0.9.1
func (*Order) GetStartAt ¶ added in v0.9.1
func (*Order) GetState ¶ added in v0.9.1
func (m *Order) GetState() Order_State
func (*Order) MarshalToSizedBuffer ¶ added in v0.9.1
func (Order) MatchAttributes ¶
MatchAttributes method compares provided attributes with specific order attributes
func (Order) MatchRequirements ¶ added in v0.9.1
MatchRequirements method compares provided attributes with specific order attributes
func (*Order) ProtoMessage ¶ added in v0.9.1
func (*Order) ProtoMessage()
func (Order) ValidateCanBid ¶
ValidateCanBid method validates whether order is open or not and returns error if not
func (Order) ValidateCanMatch ¶
ValidateCanMatch method validates whether to match order for provided height
func (Order) ValidateInactive ¶ added in v0.6.3
ValidateInactive method validates whether order is open or not and returns error if not
func (*Order) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *Order) XXX_DiscardUnknown()
func (*Order) XXX_Marshal ¶ added in v0.9.1
func (*Order) XXX_Unmarshal ¶ added in v0.9.1
type OrderFilters ¶
type OrderFilters struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` DSeq uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"` GSeq uint32 `protobuf:"varint,3,opt,name=gseq,proto3" json:"gseq" yaml:"gseq"` OSeq uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"` State string `protobuf:"bytes,5,opt,name=state,proto3" json:"state" yaml:"state"` }
OrderFilters defines flags for order list filter
func (OrderFilters) Accept ¶ added in v0.9.1
func (filters OrderFilters) Accept(obj Order, stateVal Order_State) bool
Accept returns whether order filters valid or not
func (*OrderFilters) Descriptor ¶ added in v0.9.1
func (*OrderFilters) Descriptor() ([]byte, []int)
func (*OrderFilters) GetDSeq ¶ added in v0.9.1
func (m *OrderFilters) GetDSeq() uint64
func (*OrderFilters) GetGSeq ¶ added in v0.9.1
func (m *OrderFilters) GetGSeq() uint32
func (*OrderFilters) GetOSeq ¶ added in v0.9.1
func (m *OrderFilters) GetOSeq() uint32
func (*OrderFilters) GetOwner ¶ added in v0.9.1
func (m *OrderFilters) GetOwner() string
func (*OrderFilters) GetState ¶ added in v0.9.1
func (m *OrderFilters) GetState() string
func (*OrderFilters) Marshal ¶ added in v0.9.1
func (m *OrderFilters) Marshal() (dAtA []byte, err error)
func (*OrderFilters) MarshalTo ¶ added in v0.9.1
func (m *OrderFilters) MarshalTo(dAtA []byte) (int, error)
func (*OrderFilters) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *OrderFilters) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OrderFilters) ProtoMessage ¶ added in v0.9.1
func (*OrderFilters) ProtoMessage()
func (*OrderFilters) Reset ¶ added in v0.9.1
func (m *OrderFilters) Reset()
func (*OrderFilters) Size ¶ added in v0.9.1
func (m *OrderFilters) Size() (n int)
func (*OrderFilters) String ¶ added in v0.9.1
func (m *OrderFilters) String() string
func (*OrderFilters) Unmarshal ¶ added in v0.9.1
func (m *OrderFilters) Unmarshal(dAtA []byte) error
func (*OrderFilters) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *OrderFilters) XXX_DiscardUnknown()
func (*OrderFilters) XXX_Marshal ¶ added in v0.9.1
func (m *OrderFilters) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OrderFilters) XXX_Merge ¶ added in v0.9.1
func (m *OrderFilters) XXX_Merge(src proto.Message)
func (*OrderFilters) XXX_Size ¶ added in v0.9.1
func (m *OrderFilters) XXX_Size() int
func (*OrderFilters) XXX_Unmarshal ¶ added in v0.9.1
func (m *OrderFilters) XXX_Unmarshal(b []byte) error
type OrderID ¶
type OrderID struct { Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner" yaml:"owner"` DSeq uint64 `protobuf:"varint,2,opt,name=dseq,proto3" json:"dseq" yaml:"dseq"` GSeq uint32 `protobuf:"varint,3,opt,name=gseq,proto3" json:"gseq" yaml:"gseq"` OSeq uint32 `protobuf:"varint,4,opt,name=oseq,proto3" json:"oseq" yaml:"oseq"` }
OrderID stores owner and all other seq numbers
func MakeOrderID ¶
MakeOrderID returns OrderID instance with provided groupID details and oseq
func (*OrderID) Descriptor ¶ added in v0.9.1
func (*OrderID) MarshalToSizedBuffer ¶ added in v0.9.1
func (*OrderID) ProtoMessage ¶ added in v0.9.1
func (*OrderID) ProtoMessage()
func (OrderID) String ¶ added in v0.7.8
String provides stringer interface to save reflected formatting.
func (*OrderID) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *OrderID) XXX_DiscardUnknown()
func (*OrderID) XXX_Marshal ¶ added in v0.9.1
func (*OrderID) XXX_Unmarshal ¶ added in v0.9.1
type Order_State ¶ added in v0.9.1
type Order_State int32
State is an enum which refers to state of order
const ( // Prefix should start with 0 in enum. So declaring dummy state OrderStateInvalid Order_State = 0 // OrderOpen denotes state for order open OrderOpen Order_State = 1 // OrderMatched denotes state for order matched OrderMatched Order_State = 2 // OrderClosed denotes state for order lost OrderClosed Order_State = 3 )
func (Order_State) EnumDescriptor ¶ added in v0.9.1
func (Order_State) EnumDescriptor() ([]byte, []int)
func (Order_State) String ¶ added in v0.9.1
func (x Order_State) String() string
type QueryBidRequest ¶ added in v0.9.1
type QueryBidRequest struct {
ID BidID `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
}
QueryBidRequest is request type for the Query/Bid RPC method
func (*QueryBidRequest) Descriptor ¶ added in v0.9.1
func (*QueryBidRequest) Descriptor() ([]byte, []int)
func (*QueryBidRequest) GetID ¶ added in v0.9.1
func (m *QueryBidRequest) GetID() BidID
func (*QueryBidRequest) Marshal ¶ added in v0.9.1
func (m *QueryBidRequest) Marshal() (dAtA []byte, err error)
func (*QueryBidRequest) MarshalTo ¶ added in v0.9.1
func (m *QueryBidRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBidRequest) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryBidRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBidRequest) ProtoMessage ¶ added in v0.9.1
func (*QueryBidRequest) ProtoMessage()
func (*QueryBidRequest) Reset ¶ added in v0.9.1
func (m *QueryBidRequest) Reset()
func (*QueryBidRequest) Size ¶ added in v0.9.1
func (m *QueryBidRequest) Size() (n int)
func (*QueryBidRequest) String ¶ added in v0.9.1
func (m *QueryBidRequest) String() string
func (*QueryBidRequest) Unmarshal ¶ added in v0.9.1
func (m *QueryBidRequest) Unmarshal(dAtA []byte) error
func (*QueryBidRequest) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryBidRequest) XXX_DiscardUnknown()
func (*QueryBidRequest) XXX_Marshal ¶ added in v0.9.1
func (m *QueryBidRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBidRequest) XXX_Merge ¶ added in v0.9.1
func (m *QueryBidRequest) XXX_Merge(src proto.Message)
func (*QueryBidRequest) XXX_Size ¶ added in v0.9.1
func (m *QueryBidRequest) XXX_Size() int
func (*QueryBidRequest) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryBidRequest) XXX_Unmarshal(b []byte) error
type QueryBidResponse ¶ added in v0.9.1
type QueryBidResponse struct {
Bid Bid `protobuf:"bytes,1,opt,name=bid,proto3" json:"bid"`
}
QueryBidResponse is response type for the Query/Bid RPC method
func (*QueryBidResponse) Descriptor ¶ added in v0.9.1
func (*QueryBidResponse) Descriptor() ([]byte, []int)
func (*QueryBidResponse) GetBid ¶ added in v0.9.1
func (m *QueryBidResponse) GetBid() Bid
func (*QueryBidResponse) Marshal ¶ added in v0.9.1
func (m *QueryBidResponse) Marshal() (dAtA []byte, err error)
func (*QueryBidResponse) MarshalTo ¶ added in v0.9.1
func (m *QueryBidResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBidResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryBidResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBidResponse) ProtoMessage ¶ added in v0.9.1
func (*QueryBidResponse) ProtoMessage()
func (*QueryBidResponse) Reset ¶ added in v0.9.1
func (m *QueryBidResponse) Reset()
func (*QueryBidResponse) Size ¶ added in v0.9.1
func (m *QueryBidResponse) Size() (n int)
func (*QueryBidResponse) String ¶ added in v0.9.1
func (m *QueryBidResponse) String() string
func (*QueryBidResponse) Unmarshal ¶ added in v0.9.1
func (m *QueryBidResponse) Unmarshal(dAtA []byte) error
func (*QueryBidResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryBidResponse) XXX_DiscardUnknown()
func (*QueryBidResponse) XXX_Marshal ¶ added in v0.9.1
func (m *QueryBidResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBidResponse) XXX_Merge ¶ added in v0.9.1
func (m *QueryBidResponse) XXX_Merge(src proto.Message)
func (*QueryBidResponse) XXX_Size ¶ added in v0.9.1
func (m *QueryBidResponse) XXX_Size() int
func (*QueryBidResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryBidResponse) XXX_Unmarshal(b []byte) error
type QueryBidsRequest ¶ added in v0.9.1
type QueryBidsRequest struct { Filters BidFilters `protobuf:"bytes,1,opt,name=filters,proto3" json:"filters"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBidsRequest is request type for the Query/Bids RPC method
func (*QueryBidsRequest) Descriptor ¶ added in v0.9.1
func (*QueryBidsRequest) Descriptor() ([]byte, []int)
func (*QueryBidsRequest) GetFilters ¶ added in v0.9.1
func (m *QueryBidsRequest) GetFilters() BidFilters
func (*QueryBidsRequest) GetPagination ¶ added in v0.9.1
func (m *QueryBidsRequest) GetPagination() *query.PageRequest
func (*QueryBidsRequest) Marshal ¶ added in v0.9.1
func (m *QueryBidsRequest) Marshal() (dAtA []byte, err error)
func (*QueryBidsRequest) MarshalTo ¶ added in v0.9.1
func (m *QueryBidsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBidsRequest) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryBidsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBidsRequest) ProtoMessage ¶ added in v0.9.1
func (*QueryBidsRequest) ProtoMessage()
func (*QueryBidsRequest) Reset ¶ added in v0.9.1
func (m *QueryBidsRequest) Reset()
func (*QueryBidsRequest) Size ¶ added in v0.9.1
func (m *QueryBidsRequest) Size() (n int)
func (*QueryBidsRequest) String ¶ added in v0.9.1
func (m *QueryBidsRequest) String() string
func (*QueryBidsRequest) Unmarshal ¶ added in v0.9.1
func (m *QueryBidsRequest) Unmarshal(dAtA []byte) error
func (*QueryBidsRequest) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryBidsRequest) XXX_DiscardUnknown()
func (*QueryBidsRequest) XXX_Marshal ¶ added in v0.9.1
func (m *QueryBidsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBidsRequest) XXX_Merge ¶ added in v0.9.1
func (m *QueryBidsRequest) XXX_Merge(src proto.Message)
func (*QueryBidsRequest) XXX_Size ¶ added in v0.9.1
func (m *QueryBidsRequest) XXX_Size() int
func (*QueryBidsRequest) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryBidsRequest) XXX_Unmarshal(b []byte) error
type QueryBidsResponse ¶ added in v0.9.1
type QueryBidsResponse struct { Bids Bids `protobuf:"bytes,1,rep,name=bids,proto3,castrepeated=Bids" json:"bids"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBidsResponse is response type for the Query/Bids RPC method
func (*QueryBidsResponse) Descriptor ¶ added in v0.9.1
func (*QueryBidsResponse) Descriptor() ([]byte, []int)
func (*QueryBidsResponse) GetBids ¶ added in v0.9.1
func (m *QueryBidsResponse) GetBids() Bids
func (*QueryBidsResponse) GetPagination ¶ added in v0.9.1
func (m *QueryBidsResponse) GetPagination() *query.PageResponse
func (*QueryBidsResponse) Marshal ¶ added in v0.9.1
func (m *QueryBidsResponse) Marshal() (dAtA []byte, err error)
func (*QueryBidsResponse) MarshalTo ¶ added in v0.9.1
func (m *QueryBidsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBidsResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryBidsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBidsResponse) ProtoMessage ¶ added in v0.9.1
func (*QueryBidsResponse) ProtoMessage()
func (*QueryBidsResponse) Reset ¶ added in v0.9.1
func (m *QueryBidsResponse) Reset()
func (*QueryBidsResponse) Size ¶ added in v0.9.1
func (m *QueryBidsResponse) Size() (n int)
func (*QueryBidsResponse) String ¶ added in v0.9.1
func (m *QueryBidsResponse) String() string
func (*QueryBidsResponse) Unmarshal ¶ added in v0.9.1
func (m *QueryBidsResponse) Unmarshal(dAtA []byte) error
func (*QueryBidsResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryBidsResponse) XXX_DiscardUnknown()
func (*QueryBidsResponse) XXX_Marshal ¶ added in v0.9.1
func (m *QueryBidsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBidsResponse) XXX_Merge ¶ added in v0.9.1
func (m *QueryBidsResponse) XXX_Merge(src proto.Message)
func (*QueryBidsResponse) XXX_Size ¶ added in v0.9.1
func (m *QueryBidsResponse) XXX_Size() int
func (*QueryBidsResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryBidsResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶ added in v0.9.1
type QueryClient interface { // Orders queries orders with filters Orders(ctx context.Context, in *QueryOrdersRequest, opts ...grpc.CallOption) (*QueryOrdersResponse, error) // Order queries order details Order(ctx context.Context, in *QueryOrderRequest, opts ...grpc.CallOption) (*QueryOrderResponse, error) // Bids queries bids with filters Bids(ctx context.Context, in *QueryBidsRequest, opts ...grpc.CallOption) (*QueryBidsResponse, error) // Bid queries bid details Bid(ctx context.Context, in *QueryBidRequest, opts ...grpc.CallOption) (*QueryBidResponse, error) // Leases queries leases with filters Leases(ctx context.Context, in *QueryLeasesRequest, opts ...grpc.CallOption) (*QueryLeasesResponse, error) // Lease queries lease details Lease(ctx context.Context, in *QueryLeaseRequest, opts ...grpc.CallOption) (*QueryLeaseResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶ added in v0.9.1
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryLeaseRequest ¶ added in v0.9.1
type QueryLeaseRequest struct {
ID LeaseID `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
}
QueryLeaseRequest is request type for the Query/Lease RPC method
func (*QueryLeaseRequest) Descriptor ¶ added in v0.9.1
func (*QueryLeaseRequest) Descriptor() ([]byte, []int)
func (*QueryLeaseRequest) GetID ¶ added in v0.9.1
func (m *QueryLeaseRequest) GetID() LeaseID
func (*QueryLeaseRequest) Marshal ¶ added in v0.9.1
func (m *QueryLeaseRequest) Marshal() (dAtA []byte, err error)
func (*QueryLeaseRequest) MarshalTo ¶ added in v0.9.1
func (m *QueryLeaseRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryLeaseRequest) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryLeaseRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLeaseRequest) ProtoMessage ¶ added in v0.9.1
func (*QueryLeaseRequest) ProtoMessage()
func (*QueryLeaseRequest) Reset ¶ added in v0.9.1
func (m *QueryLeaseRequest) Reset()
func (*QueryLeaseRequest) Size ¶ added in v0.9.1
func (m *QueryLeaseRequest) Size() (n int)
func (*QueryLeaseRequest) String ¶ added in v0.9.1
func (m *QueryLeaseRequest) String() string
func (*QueryLeaseRequest) Unmarshal ¶ added in v0.9.1
func (m *QueryLeaseRequest) Unmarshal(dAtA []byte) error
func (*QueryLeaseRequest) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryLeaseRequest) XXX_DiscardUnknown()
func (*QueryLeaseRequest) XXX_Marshal ¶ added in v0.9.1
func (m *QueryLeaseRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLeaseRequest) XXX_Merge ¶ added in v0.9.1
func (m *QueryLeaseRequest) XXX_Merge(src proto.Message)
func (*QueryLeaseRequest) XXX_Size ¶ added in v0.9.1
func (m *QueryLeaseRequest) XXX_Size() int
func (*QueryLeaseRequest) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryLeaseRequest) XXX_Unmarshal(b []byte) error
type QueryLeaseResponse ¶ added in v0.9.1
type QueryLeaseResponse struct {
Lease Lease `protobuf:"bytes,1,opt,name=lease,proto3" json:"lease"`
}
QueryLeaseResponse is response type for the Query/Lease RPC method
func (*QueryLeaseResponse) Descriptor ¶ added in v0.9.1
func (*QueryLeaseResponse) Descriptor() ([]byte, []int)
func (*QueryLeaseResponse) GetLease ¶ added in v0.9.1
func (m *QueryLeaseResponse) GetLease() Lease
func (*QueryLeaseResponse) Marshal ¶ added in v0.9.1
func (m *QueryLeaseResponse) Marshal() (dAtA []byte, err error)
func (*QueryLeaseResponse) MarshalTo ¶ added in v0.9.1
func (m *QueryLeaseResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryLeaseResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryLeaseResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLeaseResponse) ProtoMessage ¶ added in v0.9.1
func (*QueryLeaseResponse) ProtoMessage()
func (*QueryLeaseResponse) Reset ¶ added in v0.9.1
func (m *QueryLeaseResponse) Reset()
func (*QueryLeaseResponse) Size ¶ added in v0.9.1
func (m *QueryLeaseResponse) Size() (n int)
func (*QueryLeaseResponse) String ¶ added in v0.9.1
func (m *QueryLeaseResponse) String() string
func (*QueryLeaseResponse) Unmarshal ¶ added in v0.9.1
func (m *QueryLeaseResponse) Unmarshal(dAtA []byte) error
func (*QueryLeaseResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryLeaseResponse) XXX_DiscardUnknown()
func (*QueryLeaseResponse) XXX_Marshal ¶ added in v0.9.1
func (m *QueryLeaseResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLeaseResponse) XXX_Merge ¶ added in v0.9.1
func (m *QueryLeaseResponse) XXX_Merge(src proto.Message)
func (*QueryLeaseResponse) XXX_Size ¶ added in v0.9.1
func (m *QueryLeaseResponse) XXX_Size() int
func (*QueryLeaseResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryLeaseResponse) XXX_Unmarshal(b []byte) error
type QueryLeasesRequest ¶ added in v0.9.1
type QueryLeasesRequest struct { Filters LeaseFilters `protobuf:"bytes,1,opt,name=filters,proto3" json:"filters"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryLeasesRequest is request type for the Query/Leases RPC method
func (*QueryLeasesRequest) Descriptor ¶ added in v0.9.1
func (*QueryLeasesRequest) Descriptor() ([]byte, []int)
func (*QueryLeasesRequest) GetFilters ¶ added in v0.9.1
func (m *QueryLeasesRequest) GetFilters() LeaseFilters
func (*QueryLeasesRequest) GetPagination ¶ added in v0.9.1
func (m *QueryLeasesRequest) GetPagination() *query.PageRequest
func (*QueryLeasesRequest) Marshal ¶ added in v0.9.1
func (m *QueryLeasesRequest) Marshal() (dAtA []byte, err error)
func (*QueryLeasesRequest) MarshalTo ¶ added in v0.9.1
func (m *QueryLeasesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryLeasesRequest) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryLeasesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLeasesRequest) ProtoMessage ¶ added in v0.9.1
func (*QueryLeasesRequest) ProtoMessage()
func (*QueryLeasesRequest) Reset ¶ added in v0.9.1
func (m *QueryLeasesRequest) Reset()
func (*QueryLeasesRequest) Size ¶ added in v0.9.1
func (m *QueryLeasesRequest) Size() (n int)
func (*QueryLeasesRequest) String ¶ added in v0.9.1
func (m *QueryLeasesRequest) String() string
func (*QueryLeasesRequest) Unmarshal ¶ added in v0.9.1
func (m *QueryLeasesRequest) Unmarshal(dAtA []byte) error
func (*QueryLeasesRequest) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryLeasesRequest) XXX_DiscardUnknown()
func (*QueryLeasesRequest) XXX_Marshal ¶ added in v0.9.1
func (m *QueryLeasesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLeasesRequest) XXX_Merge ¶ added in v0.9.1
func (m *QueryLeasesRequest) XXX_Merge(src proto.Message)
func (*QueryLeasesRequest) XXX_Size ¶ added in v0.9.1
func (m *QueryLeasesRequest) XXX_Size() int
func (*QueryLeasesRequest) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryLeasesRequest) XXX_Unmarshal(b []byte) error
type QueryLeasesResponse ¶ added in v0.9.1
type QueryLeasesResponse struct { Leases Leases `protobuf:"bytes,1,rep,name=leases,proto3,castrepeated=Leases" json:"leases"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryLeasesResponse is response type for the Query/Leases RPC method
func (*QueryLeasesResponse) Descriptor ¶ added in v0.9.1
func (*QueryLeasesResponse) Descriptor() ([]byte, []int)
func (*QueryLeasesResponse) GetLeases ¶ added in v0.9.1
func (m *QueryLeasesResponse) GetLeases() Leases
func (*QueryLeasesResponse) GetPagination ¶ added in v0.9.1
func (m *QueryLeasesResponse) GetPagination() *query.PageResponse
func (*QueryLeasesResponse) Marshal ¶ added in v0.9.1
func (m *QueryLeasesResponse) Marshal() (dAtA []byte, err error)
func (*QueryLeasesResponse) MarshalTo ¶ added in v0.9.1
func (m *QueryLeasesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryLeasesResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryLeasesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryLeasesResponse) ProtoMessage ¶ added in v0.9.1
func (*QueryLeasesResponse) ProtoMessage()
func (*QueryLeasesResponse) Reset ¶ added in v0.9.1
func (m *QueryLeasesResponse) Reset()
func (*QueryLeasesResponse) Size ¶ added in v0.9.1
func (m *QueryLeasesResponse) Size() (n int)
func (*QueryLeasesResponse) String ¶ added in v0.9.1
func (m *QueryLeasesResponse) String() string
func (*QueryLeasesResponse) Unmarshal ¶ added in v0.9.1
func (m *QueryLeasesResponse) Unmarshal(dAtA []byte) error
func (*QueryLeasesResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryLeasesResponse) XXX_DiscardUnknown()
func (*QueryLeasesResponse) XXX_Marshal ¶ added in v0.9.1
func (m *QueryLeasesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryLeasesResponse) XXX_Merge ¶ added in v0.9.1
func (m *QueryLeasesResponse) XXX_Merge(src proto.Message)
func (*QueryLeasesResponse) XXX_Size ¶ added in v0.9.1
func (m *QueryLeasesResponse) XXX_Size() int
func (*QueryLeasesResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryLeasesResponse) XXX_Unmarshal(b []byte) error
type QueryOrderRequest ¶ added in v0.9.1
type QueryOrderRequest struct {
ID OrderID `protobuf:"bytes,1,opt,name=id,proto3" json:"id"`
}
QueryOrderRequest is request type for the Query/Order RPC method
func (*QueryOrderRequest) Descriptor ¶ added in v0.9.1
func (*QueryOrderRequest) Descriptor() ([]byte, []int)
func (*QueryOrderRequest) GetID ¶ added in v0.9.1
func (m *QueryOrderRequest) GetID() OrderID
func (*QueryOrderRequest) Marshal ¶ added in v0.9.1
func (m *QueryOrderRequest) Marshal() (dAtA []byte, err error)
func (*QueryOrderRequest) MarshalTo ¶ added in v0.9.1
func (m *QueryOrderRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderRequest) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderRequest) ProtoMessage ¶ added in v0.9.1
func (*QueryOrderRequest) ProtoMessage()
func (*QueryOrderRequest) Reset ¶ added in v0.9.1
func (m *QueryOrderRequest) Reset()
func (*QueryOrderRequest) Size ¶ added in v0.9.1
func (m *QueryOrderRequest) Size() (n int)
func (*QueryOrderRequest) String ¶ added in v0.9.1
func (m *QueryOrderRequest) String() string
func (*QueryOrderRequest) Unmarshal ¶ added in v0.9.1
func (m *QueryOrderRequest) Unmarshal(dAtA []byte) error
func (*QueryOrderRequest) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryOrderRequest) XXX_DiscardUnknown()
func (*QueryOrderRequest) XXX_Marshal ¶ added in v0.9.1
func (m *QueryOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderRequest) XXX_Merge ¶ added in v0.9.1
func (m *QueryOrderRequest) XXX_Merge(src proto.Message)
func (*QueryOrderRequest) XXX_Size ¶ added in v0.9.1
func (m *QueryOrderRequest) XXX_Size() int
func (*QueryOrderRequest) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryOrderRequest) XXX_Unmarshal(b []byte) error
type QueryOrderResponse ¶ added in v0.9.1
type QueryOrderResponse struct {
Order Order `protobuf:"bytes,1,opt,name=order,proto3" json:"order"`
}
QueryOrderResponse is response type for the Query/Order RPC method
func (*QueryOrderResponse) Descriptor ¶ added in v0.9.1
func (*QueryOrderResponse) Descriptor() ([]byte, []int)
func (*QueryOrderResponse) GetOrder ¶ added in v0.9.1
func (m *QueryOrderResponse) GetOrder() Order
func (*QueryOrderResponse) Marshal ¶ added in v0.9.1
func (m *QueryOrderResponse) Marshal() (dAtA []byte, err error)
func (*QueryOrderResponse) MarshalTo ¶ added in v0.9.1
func (m *QueryOrderResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrderResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrderResponse) ProtoMessage ¶ added in v0.9.1
func (*QueryOrderResponse) ProtoMessage()
func (*QueryOrderResponse) Reset ¶ added in v0.9.1
func (m *QueryOrderResponse) Reset()
func (*QueryOrderResponse) Size ¶ added in v0.9.1
func (m *QueryOrderResponse) Size() (n int)
func (*QueryOrderResponse) String ¶ added in v0.9.1
func (m *QueryOrderResponse) String() string
func (*QueryOrderResponse) Unmarshal ¶ added in v0.9.1
func (m *QueryOrderResponse) Unmarshal(dAtA []byte) error
func (*QueryOrderResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryOrderResponse) XXX_DiscardUnknown()
func (*QueryOrderResponse) XXX_Marshal ¶ added in v0.9.1
func (m *QueryOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrderResponse) XXX_Merge ¶ added in v0.9.1
func (m *QueryOrderResponse) XXX_Merge(src proto.Message)
func (*QueryOrderResponse) XXX_Size ¶ added in v0.9.1
func (m *QueryOrderResponse) XXX_Size() int
func (*QueryOrderResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryOrderResponse) XXX_Unmarshal(b []byte) error
type QueryOrdersRequest ¶ added in v0.9.1
type QueryOrdersRequest struct { Filters OrderFilters `protobuf:"bytes,1,opt,name=filters,proto3" json:"filters"` Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryOrdersRequest is request type for the Query/Orders RPC method
func (*QueryOrdersRequest) Descriptor ¶ added in v0.9.1
func (*QueryOrdersRequest) Descriptor() ([]byte, []int)
func (*QueryOrdersRequest) GetFilters ¶ added in v0.9.1
func (m *QueryOrdersRequest) GetFilters() OrderFilters
func (*QueryOrdersRequest) GetPagination ¶ added in v0.9.1
func (m *QueryOrdersRequest) GetPagination() *query.PageRequest
func (*QueryOrdersRequest) Marshal ¶ added in v0.9.1
func (m *QueryOrdersRequest) Marshal() (dAtA []byte, err error)
func (*QueryOrdersRequest) MarshalTo ¶ added in v0.9.1
func (m *QueryOrdersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrdersRequest) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrdersRequest) ProtoMessage ¶ added in v0.9.1
func (*QueryOrdersRequest) ProtoMessage()
func (*QueryOrdersRequest) Reset ¶ added in v0.9.1
func (m *QueryOrdersRequest) Reset()
func (*QueryOrdersRequest) Size ¶ added in v0.9.1
func (m *QueryOrdersRequest) Size() (n int)
func (*QueryOrdersRequest) String ¶ added in v0.9.1
func (m *QueryOrdersRequest) String() string
func (*QueryOrdersRequest) Unmarshal ¶ added in v0.9.1
func (m *QueryOrdersRequest) Unmarshal(dAtA []byte) error
func (*QueryOrdersRequest) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryOrdersRequest) XXX_DiscardUnknown()
func (*QueryOrdersRequest) XXX_Marshal ¶ added in v0.9.1
func (m *QueryOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrdersRequest) XXX_Merge ¶ added in v0.9.1
func (m *QueryOrdersRequest) XXX_Merge(src proto.Message)
func (*QueryOrdersRequest) XXX_Size ¶ added in v0.9.1
func (m *QueryOrdersRequest) XXX_Size() int
func (*QueryOrdersRequest) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryOrdersRequest) XXX_Unmarshal(b []byte) error
type QueryOrdersResponse ¶ added in v0.9.1
type QueryOrdersResponse struct { Orders Orders `protobuf:"bytes,1,rep,name=orders,proto3,castrepeated=Orders" json:"orders"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryOrdersResponse is response type for the Query/Orders RPC method
func (*QueryOrdersResponse) Descriptor ¶ added in v0.9.1
func (*QueryOrdersResponse) Descriptor() ([]byte, []int)
func (*QueryOrdersResponse) GetOrders ¶ added in v0.9.1
func (m *QueryOrdersResponse) GetOrders() Orders
func (*QueryOrdersResponse) GetPagination ¶ added in v0.9.1
func (m *QueryOrdersResponse) GetPagination() *query.PageResponse
func (*QueryOrdersResponse) Marshal ¶ added in v0.9.1
func (m *QueryOrdersResponse) Marshal() (dAtA []byte, err error)
func (*QueryOrdersResponse) MarshalTo ¶ added in v0.9.1
func (m *QueryOrdersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOrdersResponse) MarshalToSizedBuffer ¶ added in v0.9.1
func (m *QueryOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOrdersResponse) ProtoMessage ¶ added in v0.9.1
func (*QueryOrdersResponse) ProtoMessage()
func (*QueryOrdersResponse) Reset ¶ added in v0.9.1
func (m *QueryOrdersResponse) Reset()
func (*QueryOrdersResponse) Size ¶ added in v0.9.1
func (m *QueryOrdersResponse) Size() (n int)
func (*QueryOrdersResponse) String ¶ added in v0.9.1
func (m *QueryOrdersResponse) String() string
func (*QueryOrdersResponse) Unmarshal ¶ added in v0.9.1
func (m *QueryOrdersResponse) Unmarshal(dAtA []byte) error
func (*QueryOrdersResponse) XXX_DiscardUnknown ¶ added in v0.9.1
func (m *QueryOrdersResponse) XXX_DiscardUnknown()
func (*QueryOrdersResponse) XXX_Marshal ¶ added in v0.9.1
func (m *QueryOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOrdersResponse) XXX_Merge ¶ added in v0.9.1
func (m *QueryOrdersResponse) XXX_Merge(src proto.Message)
func (*QueryOrdersResponse) XXX_Size ¶ added in v0.9.1
func (m *QueryOrdersResponse) XXX_Size() int
func (*QueryOrdersResponse) XXX_Unmarshal ¶ added in v0.9.1
func (m *QueryOrdersResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v0.9.1
type QueryServer interface { // Orders queries orders with filters Orders(context.Context, *QueryOrdersRequest) (*QueryOrdersResponse, error) // Order queries order details Order(context.Context, *QueryOrderRequest) (*QueryOrderResponse, error) // Bids queries bids with filters Bids(context.Context, *QueryBidsRequest) (*QueryBidsResponse, error) // Bid queries bid details Bid(context.Context, *QueryBidRequest) (*QueryBidResponse, error) // Leases queries leases with filters Leases(context.Context, *QueryLeasesRequest) (*QueryLeasesResponse, error) // Lease queries lease details Lease(context.Context, *QueryLeaseRequest) (*QueryLeaseResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶ added in v0.9.1
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CloseBid ¶ added in v0.9.1
func (*UnimplementedMsgServer) CloseBid(ctx context.Context, req *MsgCloseBid) (*MsgCloseBidResponse, error)
func (*UnimplementedMsgServer) CloseOrder ¶ added in v0.9.1
func (*UnimplementedMsgServer) CloseOrder(ctx context.Context, req *MsgCloseOrder) (*MsgCloseOrderResponse, error)
func (*UnimplementedMsgServer) CreateBid ¶ added in v0.9.1
func (*UnimplementedMsgServer) CreateBid(ctx context.Context, req *MsgCreateBid) (*MsgCreateBidResponse, error)
type UnimplementedQueryServer ¶ added in v0.9.1
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Bid ¶ added in v0.9.1
func (*UnimplementedQueryServer) Bid(ctx context.Context, req *QueryBidRequest) (*QueryBidResponse, error)
func (*UnimplementedQueryServer) Bids ¶ added in v0.9.1
func (*UnimplementedQueryServer) Bids(ctx context.Context, req *QueryBidsRequest) (*QueryBidsResponse, error)
func (*UnimplementedQueryServer) Lease ¶ added in v0.9.1
func (*UnimplementedQueryServer) Lease(ctx context.Context, req *QueryLeaseRequest) (*QueryLeaseResponse, error)
func (*UnimplementedQueryServer) Leases ¶ added in v0.9.1
func (*UnimplementedQueryServer) Leases(ctx context.Context, req *QueryLeasesRequest) (*QueryLeasesResponse, error)
func (*UnimplementedQueryServer) Order ¶ added in v0.9.1
func (*UnimplementedQueryServer) Order(ctx context.Context, req *QueryOrderRequest) (*QueryOrderResponse, error)
func (*UnimplementedQueryServer) Orders ¶ added in v0.9.1
func (*UnimplementedQueryServer) Orders(ctx context.Context, req *QueryOrdersRequest) (*QueryOrdersResponse, error)