marketplace

package
v2.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: Apache-2.0 Imports: 33 Imported by: 1

Documentation

Overview

Package marketplace is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	AllowDenomProposalType = "AllowDenomProposal"
)

Variables

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthState        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowState          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupState = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

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

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

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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func RegisterTypes

func RegisterTypes(registry codectypes.InterfaceRegistry)

Types

type AllowDenomProposal

type AllowDenomProposal struct {
	// title is the title of the proposal.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// description is the description of the proposal.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// denom contains coin denom information that will be added to the
	// list of allowed denoms for use in the marketplace.
	Denom *AllowedDenom `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
}

AllowDenomProposal is a gov Content type for approving a denom for use in the marketplace.

func (*AllowDenomProposal) Descriptor

func (*AllowDenomProposal) Descriptor() ([]byte, []int)

func (*AllowDenomProposal) GetDenom

func (m *AllowDenomProposal) GetDenom() *AllowedDenom

func (*AllowDenomProposal) GetDescription

func (m *AllowDenomProposal) GetDescription() string

func (*AllowDenomProposal) GetTitle

func (m *AllowDenomProposal) GetTitle() string

func (*AllowDenomProposal) Marshal

func (m *AllowDenomProposal) Marshal() (dAtA []byte, err error)

func (*AllowDenomProposal) MarshalTo

func (m *AllowDenomProposal) MarshalTo(dAtA []byte) (int, error)

func (*AllowDenomProposal) MarshalToSizedBuffer

func (m *AllowDenomProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (AllowDenomProposal) ProposalRoute

func (m AllowDenomProposal) ProposalRoute() string

func (AllowDenomProposal) ProposalType

func (m AllowDenomProposal) ProposalType() string

func (*AllowDenomProposal) ProtoMessage

func (*AllowDenomProposal) ProtoMessage()

func (*AllowDenomProposal) Reset

func (m *AllowDenomProposal) Reset()

func (*AllowDenomProposal) Size

func (m *AllowDenomProposal) Size() (n int)

func (AllowDenomProposal) String

func (m AllowDenomProposal) String() string

func (*AllowDenomProposal) Unmarshal

func (m *AllowDenomProposal) Unmarshal(dAtA []byte) error

func (AllowDenomProposal) ValidateBasic

func (m AllowDenomProposal) ValidateBasic() error

func (*AllowDenomProposal) XXX_DiscardUnknown

func (m *AllowDenomProposal) XXX_DiscardUnknown()

func (*AllowDenomProposal) XXX_Marshal

func (m *AllowDenomProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllowDenomProposal) XXX_Merge

func (m *AllowDenomProposal) XXX_Merge(src proto.Message)

func (*AllowDenomProposal) XXX_Size

func (m *AllowDenomProposal) XXX_Size() int

func (*AllowDenomProposal) XXX_Unmarshal

func (m *AllowDenomProposal) XXX_Unmarshal(b []byte) error

type AllowedDenom

type AllowedDenom struct {
	// denom is the bank denom to allow (ex. ibc/GLKHDSG423SGS)
	BankDenom string `protobuf:"bytes,1,opt,name=bank_denom,json=bankDenom,proto3" json:"bank_denom,omitempty"`
	// display_denom is the denom to display to the user and is informational.
	// Because the denom is likely an IBC denom, this should be chosen by
	// governance to represent the consensus trusted name of the denom.
	DisplayDenom string `protobuf:"bytes,2,opt,name=display_denom,json=displayDenom,proto3" json:"display_denom,omitempty"`
	// exponent is the exponent that relates the denom to the display_denom and is
	// informational
	Exponent uint32 `protobuf:"varint,3,opt,name=exponent,proto3" json:"exponent,omitempty"`
}

AllowedDenom represents the information for an allowed ask/bid denom.

func DefaultAllowedDenoms

func DefaultAllowedDenoms() []AllowedDenom

DefaultAllowedDenoms returns a default set of allowed denoms.

func (*AllowedDenom) Descriptor

func (*AllowedDenom) Descriptor() ([]byte, []int)

func (*AllowedDenom) GetBankDenom

func (m *AllowedDenom) GetBankDenom() string

func (*AllowedDenom) GetDisplayDenom

func (m *AllowedDenom) GetDisplayDenom() string

func (*AllowedDenom) GetExponent

func (m *AllowedDenom) GetExponent() uint32

func (*AllowedDenom) Marshal

func (m *AllowedDenom) Marshal() (dAtA []byte, err error)

func (*AllowedDenom) MarshalTo

func (m *AllowedDenom) MarshalTo(dAtA []byte) (int, error)

func (*AllowedDenom) MarshalToSizedBuffer

func (m *AllowedDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AllowedDenom) ProtoMessage

func (*AllowedDenom) ProtoMessage()

func (*AllowedDenom) Reset

func (m *AllowedDenom) Reset()

func (*AllowedDenom) Size

func (m *AllowedDenom) Size() (n int)

func (*AllowedDenom) String

func (m *AllowedDenom) String() string

func (*AllowedDenom) Unmarshal

func (m *AllowedDenom) Unmarshal(dAtA []byte) error

func (AllowedDenom) Validate

func (m AllowedDenom) Validate() error

func (*AllowedDenom) XXX_DiscardUnknown

func (m *AllowedDenom) XXX_DiscardUnknown()

func (*AllowedDenom) XXX_Marshal

func (m *AllowedDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AllowedDenom) XXX_Merge

func (m *AllowedDenom) XXX_Merge(src proto.Message)

func (*AllowedDenom) XXX_Size

func (m *AllowedDenom) XXX_Size() int

func (*AllowedDenom) XXX_Unmarshal

func (m *AllowedDenom) XXX_Unmarshal(b []byte) error

type EventAllowDenom

type EventAllowDenom struct {
	// denom is the bank denom (e.g. ibc/GLKHDSG423SGS) added to the list of
	// allowed denoms for use in the marketplace.
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

EventAllowDenom is an event emitted when a new denom is added for use in the marketplace.

func (*EventAllowDenom) Descriptor

func (*EventAllowDenom) Descriptor() ([]byte, []int)

func (*EventAllowDenom) GetDenom

func (m *EventAllowDenom) GetDenom() string

func (*EventAllowDenom) Marshal

func (m *EventAllowDenom) Marshal() (dAtA []byte, err error)

func (*EventAllowDenom) MarshalTo

func (m *EventAllowDenom) MarshalTo(dAtA []byte) (int, error)

func (*EventAllowDenom) MarshalToSizedBuffer

func (m *EventAllowDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventAllowDenom) ProtoMessage

func (*EventAllowDenom) ProtoMessage()

func (*EventAllowDenom) Reset

func (m *EventAllowDenom) Reset()

func (*EventAllowDenom) Size

func (m *EventAllowDenom) Size() (n int)

func (*EventAllowDenom) String

func (m *EventAllowDenom) String() string

func (*EventAllowDenom) Unmarshal

func (m *EventAllowDenom) Unmarshal(dAtA []byte) error

func (*EventAllowDenom) XXX_DiscardUnknown

func (m *EventAllowDenom) XXX_DiscardUnknown()

func (*EventAllowDenom) XXX_Marshal

func (m *EventAllowDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventAllowDenom) XXX_Merge

func (m *EventAllowDenom) XXX_Merge(src proto.Message)

func (*EventAllowDenom) XXX_Size

func (m *EventAllowDenom) XXX_Size() int

func (*EventAllowDenom) XXX_Unmarshal

func (m *EventAllowDenom) XXX_Unmarshal(b []byte) error

type EventBuyDirect

type EventBuyDirect struct {
	// sell_order_id is the unique identifier of the sell order that credits were
	// purchased from.
	SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"`
}

EventBuyDirect is an event emitted when a direct buy order is processed.

func (*EventBuyDirect) Descriptor

func (*EventBuyDirect) Descriptor() ([]byte, []int)

func (*EventBuyDirect) GetSellOrderId

func (m *EventBuyDirect) GetSellOrderId() uint64

func (*EventBuyDirect) Marshal

func (m *EventBuyDirect) Marshal() (dAtA []byte, err error)

func (*EventBuyDirect) MarshalTo

func (m *EventBuyDirect) MarshalTo(dAtA []byte) (int, error)

func (*EventBuyDirect) MarshalToSizedBuffer

func (m *EventBuyDirect) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventBuyDirect) ProtoMessage

func (*EventBuyDirect) ProtoMessage()

func (*EventBuyDirect) Reset

func (m *EventBuyDirect) Reset()

func (*EventBuyDirect) Size

func (m *EventBuyDirect) Size() (n int)

func (*EventBuyDirect) String

func (m *EventBuyDirect) String() string

func (*EventBuyDirect) Unmarshal

func (m *EventBuyDirect) Unmarshal(dAtA []byte) error

func (*EventBuyDirect) XXX_DiscardUnknown

func (m *EventBuyDirect) XXX_DiscardUnknown()

func (*EventBuyDirect) XXX_Marshal

func (m *EventBuyDirect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventBuyDirect) XXX_Merge

func (m *EventBuyDirect) XXX_Merge(src proto.Message)

func (*EventBuyDirect) XXX_Size

func (m *EventBuyDirect) XXX_Size() int

func (*EventBuyDirect) XXX_Unmarshal

func (m *EventBuyDirect) XXX_Unmarshal(b []byte) error

type EventCancelSellOrder

type EventCancelSellOrder struct {
	// sell_order_id is the unique identifier of the sell order that was
	// cancelled.
	SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"`
}

EventCancelSellOrder is an event emitted when a sell order is cancelled.

func (*EventCancelSellOrder) Descriptor

func (*EventCancelSellOrder) Descriptor() ([]byte, []int)

func (*EventCancelSellOrder) GetSellOrderId

func (m *EventCancelSellOrder) GetSellOrderId() uint64

func (*EventCancelSellOrder) Marshal

func (m *EventCancelSellOrder) Marshal() (dAtA []byte, err error)

func (*EventCancelSellOrder) MarshalTo

func (m *EventCancelSellOrder) MarshalTo(dAtA []byte) (int, error)

func (*EventCancelSellOrder) MarshalToSizedBuffer

func (m *EventCancelSellOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventCancelSellOrder) ProtoMessage

func (*EventCancelSellOrder) ProtoMessage()

func (*EventCancelSellOrder) Reset

func (m *EventCancelSellOrder) Reset()

func (*EventCancelSellOrder) Size

func (m *EventCancelSellOrder) Size() (n int)

func (*EventCancelSellOrder) String

func (m *EventCancelSellOrder) String() string

func (*EventCancelSellOrder) Unmarshal

func (m *EventCancelSellOrder) Unmarshal(dAtA []byte) error

func (*EventCancelSellOrder) XXX_DiscardUnknown

func (m *EventCancelSellOrder) XXX_DiscardUnknown()

func (*EventCancelSellOrder) XXX_Marshal

func (m *EventCancelSellOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventCancelSellOrder) XXX_Merge

func (m *EventCancelSellOrder) XXX_Merge(src proto.Message)

func (*EventCancelSellOrder) XXX_Size

func (m *EventCancelSellOrder) XXX_Size() int

func (*EventCancelSellOrder) XXX_Unmarshal

func (m *EventCancelSellOrder) XXX_Unmarshal(b []byte) error

type EventSell

type EventSell struct {
	// sell_order_id is the unique identifier of the sell order that was created.
	SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"`
}

EventSell is an event emitted when a sell order is created.

func (*EventSell) Descriptor

func (*EventSell) Descriptor() ([]byte, []int)

func (*EventSell) GetSellOrderId

func (m *EventSell) GetSellOrderId() uint64

func (*EventSell) Marshal

func (m *EventSell) Marshal() (dAtA []byte, err error)

func (*EventSell) MarshalTo

func (m *EventSell) MarshalTo(dAtA []byte) (int, error)

func (*EventSell) MarshalToSizedBuffer

func (m *EventSell) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventSell) ProtoMessage

func (*EventSell) ProtoMessage()

func (*EventSell) Reset

func (m *EventSell) Reset()

func (*EventSell) Size

func (m *EventSell) Size() (n int)

func (*EventSell) String

func (m *EventSell) String() string

func (*EventSell) Unmarshal

func (m *EventSell) Unmarshal(dAtA []byte) error

func (*EventSell) XXX_DiscardUnknown

func (m *EventSell) XXX_DiscardUnknown()

func (*EventSell) XXX_Marshal

func (m *EventSell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventSell) XXX_Merge

func (m *EventSell) XXX_Merge(src proto.Message)

func (*EventSell) XXX_Size

func (m *EventSell) XXX_Size() int

func (*EventSell) XXX_Unmarshal

func (m *EventSell) XXX_Unmarshal(b []byte) error

type EventUpdateSellOrder

type EventUpdateSellOrder struct {
	//  sell_order_id is the unique identifier of the sell order that was updated.
	SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"`
}

EventUpdateSellOrder is an event emitted when a sell order is updated.

func (*EventUpdateSellOrder) Descriptor

func (*EventUpdateSellOrder) Descriptor() ([]byte, []int)

func (*EventUpdateSellOrder) GetSellOrderId

func (m *EventUpdateSellOrder) GetSellOrderId() uint64

func (*EventUpdateSellOrder) Marshal

func (m *EventUpdateSellOrder) Marshal() (dAtA []byte, err error)

func (*EventUpdateSellOrder) MarshalTo

func (m *EventUpdateSellOrder) MarshalTo(dAtA []byte) (int, error)

func (*EventUpdateSellOrder) MarshalToSizedBuffer

func (m *EventUpdateSellOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventUpdateSellOrder) ProtoMessage

func (*EventUpdateSellOrder) ProtoMessage()

func (*EventUpdateSellOrder) Reset

func (m *EventUpdateSellOrder) Reset()

func (*EventUpdateSellOrder) Size

func (m *EventUpdateSellOrder) Size() (n int)

func (*EventUpdateSellOrder) String

func (m *EventUpdateSellOrder) String() string

func (*EventUpdateSellOrder) Unmarshal

func (m *EventUpdateSellOrder) Unmarshal(dAtA []byte) error

func (*EventUpdateSellOrder) XXX_DiscardUnknown

func (m *EventUpdateSellOrder) XXX_DiscardUnknown()

func (*EventUpdateSellOrder) XXX_Marshal

func (m *EventUpdateSellOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventUpdateSellOrder) XXX_Merge

func (m *EventUpdateSellOrder) XXX_Merge(src proto.Message)

func (*EventUpdateSellOrder) XXX_Size

func (m *EventUpdateSellOrder) XXX_Size() int

func (*EventUpdateSellOrder) XXX_Unmarshal

func (m *EventUpdateSellOrder) XXX_Unmarshal(b []byte) error

type Market

type Market struct {
	// id is the unique ID of the market.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// credit_type_abbrev is the abbreviation of the credit type.
	CreditTypeAbbrev string `protobuf:"bytes,2,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"`
	// bank_denom is an allowed bank denom.
	BankDenom string `protobuf:"bytes,3,opt,name=bank_denom,json=bankDenom,proto3" json:"bank_denom,omitempty"`
	// precision_modifier is an optional modifier used to convert arbitrary
	// precision integer bank amounts to uint32 values used for sorting in the
	// order book. Given an arbitrary precision integer x, its uint32 conversion
	// will be x / 10^precision_modifier using round half away from zero
	// rounding.
	//
	// uint32 values range from 0 to 4,294,967,295.
	// This allows for a full 9 digits of precision. In most real world markets
	// this amount of precision is sufficient and most common downside -
	// that some orders with very miniscule price differences may be ordered
	// equivalently (because of rounding) - is acceptable.
	// Note that this rounding will not affect settlement price which will
	// always be done exactly.
	//
	// Given a USD stable coin with 6 decimal digits, a precision_modifier
	// of 0 is probably acceptable as long as credits are always less than
	// $4,294/unit. With precision down to $0.001 (a precision_modifier of 3
	// in this case), prices can rise up to $4,294,000/unit. Either scenario
	// is probably quite acceptable given that carbon prices are unlikely to
	// rise above $1000/ton any time in the near future.
	//
	// If credit prices, exceed the maximum range of uint32 with this
	// precision_modifier, orders with high prices will fail and governance
	// will need to adjust precision_modifier to allow for higher prices in
	// exchange for less precision at the lower end.
	PrecisionModifier uint32 `protobuf:"varint,4,opt,name=precision_modifier,json=precisionModifier,proto3" json:"precision_modifier,omitempty"`
}

Market describes a distinctly processed market between a credit type and allowed bank denom. Each market has its own precision in the order book and is processed independently of other markets. Governance must enable markets one by one. Every additional enabled market potentially adds more processing overhead to the blockchain and potentially weakens liquidity in competing markets. For instance, enabling side by side USD/Carbon and EUR/Carbon markets may have the end result that each market individually has less liquidity and longer settlement times. Such decisions should be taken with care.

func (*Market) Descriptor

func (*Market) Descriptor() ([]byte, []int)

func (*Market) GetBankDenom

func (m *Market) GetBankDenom() string

func (*Market) GetCreditTypeAbbrev

func (m *Market) GetCreditTypeAbbrev() string

func (*Market) GetId

func (m *Market) GetId() uint64

func (*Market) GetPrecisionModifier

func (m *Market) GetPrecisionModifier() uint32

func (*Market) Marshal

func (m *Market) Marshal() (dAtA []byte, err error)

func (*Market) MarshalTo

func (m *Market) MarshalTo(dAtA []byte) (int, error)

func (*Market) MarshalToSizedBuffer

func (m *Market) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Market) ProtoMessage

func (*Market) ProtoMessage()

func (*Market) Reset

func (m *Market) Reset()

func (*Market) Size

func (m *Market) Size() (n int)

func (*Market) String

func (m *Market) String() string

func (*Market) Unmarshal

func (m *Market) Unmarshal(dAtA []byte) error

func (*Market) XXX_DiscardUnknown

func (m *Market) XXX_DiscardUnknown()

func (*Market) XXX_Marshal

func (m *Market) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Market) XXX_Merge

func (m *Market) XXX_Merge(src proto.Message)

func (*Market) XXX_Size

func (m *Market) XXX_Size() int

func (*Market) XXX_Unmarshal

func (m *Market) XXX_Unmarshal(b []byte) error

type MsgBuyDirect

type MsgBuyDirect struct {
	// buyer is the address of the account that is buying credits.
	Buyer string `protobuf:"bytes,1,opt,name=buyer,proto3" json:"buyer,omitempty"`
	// orders is a list of orders for ecocredits.
	Orders []*MsgBuyDirect_Order `protobuf:"bytes,2,rep,name=orders,proto3" json:"orders,omitempty"`
}

MsgBuyDirect is the Msg/BuyDirect request type.

func (*MsgBuyDirect) Descriptor

func (*MsgBuyDirect) Descriptor() ([]byte, []int)

func (*MsgBuyDirect) GetBuyer

func (m *MsgBuyDirect) GetBuyer() string

func (*MsgBuyDirect) GetOrders

func (m *MsgBuyDirect) GetOrders() []*MsgBuyDirect_Order

func (MsgBuyDirect) GetSignBytes

func (m MsgBuyDirect) GetSignBytes() []byte

func (MsgBuyDirect) GetSigners

func (m MsgBuyDirect) GetSigners() []sdk.AccAddress

func (*MsgBuyDirect) Marshal

func (m *MsgBuyDirect) Marshal() (dAtA []byte, err error)

func (*MsgBuyDirect) MarshalTo

func (m *MsgBuyDirect) MarshalTo(dAtA []byte) (int, error)

func (*MsgBuyDirect) MarshalToSizedBuffer

func (m *MsgBuyDirect) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBuyDirect) ProtoMessage

func (*MsgBuyDirect) ProtoMessage()

func (*MsgBuyDirect) Reset

func (m *MsgBuyDirect) Reset()

func (MsgBuyDirect) Route

func (m MsgBuyDirect) Route() string

func (*MsgBuyDirect) Size

func (m *MsgBuyDirect) Size() (n int)

func (*MsgBuyDirect) String

func (m *MsgBuyDirect) String() string

func (MsgBuyDirect) Type

func (m MsgBuyDirect) Type() string

func (*MsgBuyDirect) Unmarshal

func (m *MsgBuyDirect) Unmarshal(dAtA []byte) error

func (MsgBuyDirect) ValidateBasic

func (m MsgBuyDirect) ValidateBasic() error

func (*MsgBuyDirect) XXX_DiscardUnknown

func (m *MsgBuyDirect) XXX_DiscardUnknown()

func (*MsgBuyDirect) XXX_Marshal

func (m *MsgBuyDirect) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBuyDirect) XXX_Merge

func (m *MsgBuyDirect) XXX_Merge(src proto.Message)

func (*MsgBuyDirect) XXX_Size

func (m *MsgBuyDirect) XXX_Size() int

func (*MsgBuyDirect) XXX_Unmarshal

func (m *MsgBuyDirect) XXX_Unmarshal(b []byte) error

type MsgBuyDirectResponse

type MsgBuyDirectResponse struct {
}

MsgBuyDirectResponse is the Msg/BuyDirect response type.

func (*MsgBuyDirectResponse) Descriptor

func (*MsgBuyDirectResponse) Descriptor() ([]byte, []int)

func (*MsgBuyDirectResponse) Marshal

func (m *MsgBuyDirectResponse) Marshal() (dAtA []byte, err error)

func (*MsgBuyDirectResponse) MarshalTo

func (m *MsgBuyDirectResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgBuyDirectResponse) MarshalToSizedBuffer

func (m *MsgBuyDirectResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBuyDirectResponse) ProtoMessage

func (*MsgBuyDirectResponse) ProtoMessage()

func (*MsgBuyDirectResponse) Reset

func (m *MsgBuyDirectResponse) Reset()

func (*MsgBuyDirectResponse) Size

func (m *MsgBuyDirectResponse) Size() (n int)

func (*MsgBuyDirectResponse) String

func (m *MsgBuyDirectResponse) String() string

func (*MsgBuyDirectResponse) Unmarshal

func (m *MsgBuyDirectResponse) Unmarshal(dAtA []byte) error

func (*MsgBuyDirectResponse) XXX_DiscardUnknown

func (m *MsgBuyDirectResponse) XXX_DiscardUnknown()

func (*MsgBuyDirectResponse) XXX_Marshal

func (m *MsgBuyDirectResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBuyDirectResponse) XXX_Merge

func (m *MsgBuyDirectResponse) XXX_Merge(src proto.Message)

func (*MsgBuyDirectResponse) XXX_Size

func (m *MsgBuyDirectResponse) XXX_Size() int

func (*MsgBuyDirectResponse) XXX_Unmarshal

func (m *MsgBuyDirectResponse) XXX_Unmarshal(b []byte) error

type MsgBuyDirect_Order

type MsgBuyDirect_Order struct {
	// sell_order_id is the sell order ID against which the buyer is trying
	// to buy.
	SellOrderId uint64 `protobuf:"varint,2,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"`
	// quantity is the quantity of credits to buy.
	Quantity string `protobuf:"bytes,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// bid_price is the price the buyer is willing to pay per credit.
	BidPrice *types.Coin `protobuf:"bytes,4,opt,name=bid_price,json=bidPrice,proto3" json:"bid_price,omitempty"`
	// disable_auto_retire allows auto-retirement to be disabled. If it is set
	// to true the credits will not auto-retire and can be resold assuming that
	// the corresponding sell order has auto-retirement disabled. If the sell
	// order hasn't disabled auto-retirement and the buy order tries to disable
	// it, that buy order will fail.
	DisableAutoRetire bool `protobuf:"varint,5,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// retirement_jurisdiction is the optional retirement jurisdiction for the
	// credits which will be used only if disable_auto_retire is false.
	RetirementJurisdiction string `` /* 127-byte string literal not displayed */
}

Order contains the information needed to purchase an ecocredit.

func (*MsgBuyDirect_Order) Descriptor

func (*MsgBuyDirect_Order) Descriptor() ([]byte, []int)

func (*MsgBuyDirect_Order) GetBidPrice

func (m *MsgBuyDirect_Order) GetBidPrice() *types.Coin

func (*MsgBuyDirect_Order) GetDisableAutoRetire

func (m *MsgBuyDirect_Order) GetDisableAutoRetire() bool

func (*MsgBuyDirect_Order) GetQuantity

func (m *MsgBuyDirect_Order) GetQuantity() string

func (*MsgBuyDirect_Order) GetRetirementJurisdiction

func (m *MsgBuyDirect_Order) GetRetirementJurisdiction() string

func (*MsgBuyDirect_Order) GetSellOrderId

func (m *MsgBuyDirect_Order) GetSellOrderId() uint64

func (*MsgBuyDirect_Order) Marshal

func (m *MsgBuyDirect_Order) Marshal() (dAtA []byte, err error)

func (*MsgBuyDirect_Order) MarshalTo

func (m *MsgBuyDirect_Order) MarshalTo(dAtA []byte) (int, error)

func (*MsgBuyDirect_Order) MarshalToSizedBuffer

func (m *MsgBuyDirect_Order) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBuyDirect_Order) ProtoMessage

func (*MsgBuyDirect_Order) ProtoMessage()

func (*MsgBuyDirect_Order) Reset

func (m *MsgBuyDirect_Order) Reset()

func (*MsgBuyDirect_Order) Size

func (m *MsgBuyDirect_Order) Size() (n int)

func (*MsgBuyDirect_Order) String

func (m *MsgBuyDirect_Order) String() string

func (*MsgBuyDirect_Order) Unmarshal

func (m *MsgBuyDirect_Order) Unmarshal(dAtA []byte) error

func (*MsgBuyDirect_Order) XXX_DiscardUnknown

func (m *MsgBuyDirect_Order) XXX_DiscardUnknown()

func (*MsgBuyDirect_Order) XXX_Marshal

func (m *MsgBuyDirect_Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBuyDirect_Order) XXX_Merge

func (m *MsgBuyDirect_Order) XXX_Merge(src proto.Message)

func (*MsgBuyDirect_Order) XXX_Size

func (m *MsgBuyDirect_Order) XXX_Size() int

func (*MsgBuyDirect_Order) XXX_Unmarshal

func (m *MsgBuyDirect_Order) XXX_Unmarshal(b []byte) error

type MsgCancelSellOrder

type MsgCancelSellOrder struct {
	// seller is the address of the account that created the sell order and is
	// therefore authorized to cancel the sell order.
	Seller string `protobuf:"bytes,1,opt,name=seller,proto3" json:"seller,omitempty"`
	// sell_order_id is the id of the seller order to cancel.
	SellOrderId uint64 `protobuf:"varint,2,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"`
}

MsgCancelSellOrder is the Msg/CancelSellOrder request type.

func (*MsgCancelSellOrder) Descriptor

func (*MsgCancelSellOrder) Descriptor() ([]byte, []int)

func (*MsgCancelSellOrder) GetSellOrderId

func (m *MsgCancelSellOrder) GetSellOrderId() uint64

func (*MsgCancelSellOrder) GetSeller

func (m *MsgCancelSellOrder) GetSeller() string

func (MsgCancelSellOrder) GetSignBytes

func (m MsgCancelSellOrder) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgCancelSellOrder) GetSigners

func (m *MsgCancelSellOrder) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgCancelSellOrder.

func (*MsgCancelSellOrder) Marshal

func (m *MsgCancelSellOrder) Marshal() (dAtA []byte, err error)

func (*MsgCancelSellOrder) MarshalTo

func (m *MsgCancelSellOrder) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelSellOrder) MarshalToSizedBuffer

func (m *MsgCancelSellOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelSellOrder) ProtoMessage

func (*MsgCancelSellOrder) ProtoMessage()

func (*MsgCancelSellOrder) Reset

func (m *MsgCancelSellOrder) Reset()

func (MsgCancelSellOrder) Route

func (m MsgCancelSellOrder) Route() string

Route implements the LegacyMsg interface.

func (*MsgCancelSellOrder) Size

func (m *MsgCancelSellOrder) Size() (n int)

func (*MsgCancelSellOrder) String

func (m *MsgCancelSellOrder) String() string

func (MsgCancelSellOrder) Type

func (m MsgCancelSellOrder) Type() string

Type implements the LegacyMsg interface.

func (*MsgCancelSellOrder) Unmarshal

func (m *MsgCancelSellOrder) Unmarshal(dAtA []byte) error

func (*MsgCancelSellOrder) ValidateBasic

func (m *MsgCancelSellOrder) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgCancelSellOrder) XXX_DiscardUnknown

func (m *MsgCancelSellOrder) XXX_DiscardUnknown()

func (*MsgCancelSellOrder) XXX_Marshal

func (m *MsgCancelSellOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelSellOrder) XXX_Merge

func (m *MsgCancelSellOrder) XXX_Merge(src proto.Message)

func (*MsgCancelSellOrder) XXX_Size

func (m *MsgCancelSellOrder) XXX_Size() int

func (*MsgCancelSellOrder) XXX_Unmarshal

func (m *MsgCancelSellOrder) XXX_Unmarshal(b []byte) error

type MsgCancelSellOrderResponse

type MsgCancelSellOrderResponse struct {
}

MsgCancelSellOrder is the Msg/CancelSellOrder response type.

func (*MsgCancelSellOrderResponse) Descriptor

func (*MsgCancelSellOrderResponse) Descriptor() ([]byte, []int)

func (*MsgCancelSellOrderResponse) Marshal

func (m *MsgCancelSellOrderResponse) Marshal() (dAtA []byte, err error)

func (*MsgCancelSellOrderResponse) MarshalTo

func (m *MsgCancelSellOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancelSellOrderResponse) MarshalToSizedBuffer

func (m *MsgCancelSellOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancelSellOrderResponse) ProtoMessage

func (*MsgCancelSellOrderResponse) ProtoMessage()

func (*MsgCancelSellOrderResponse) Reset

func (m *MsgCancelSellOrderResponse) Reset()

func (*MsgCancelSellOrderResponse) Size

func (m *MsgCancelSellOrderResponse) Size() (n int)

func (*MsgCancelSellOrderResponse) String

func (m *MsgCancelSellOrderResponse) String() string

func (*MsgCancelSellOrderResponse) Unmarshal

func (m *MsgCancelSellOrderResponse) Unmarshal(dAtA []byte) error

func (*MsgCancelSellOrderResponse) XXX_DiscardUnknown

func (m *MsgCancelSellOrderResponse) XXX_DiscardUnknown()

func (*MsgCancelSellOrderResponse) XXX_Marshal

func (m *MsgCancelSellOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancelSellOrderResponse) XXX_Merge

func (m *MsgCancelSellOrderResponse) XXX_Merge(src proto.Message)

func (*MsgCancelSellOrderResponse) XXX_Size

func (m *MsgCancelSellOrderResponse) XXX_Size() int

func (*MsgCancelSellOrderResponse) XXX_Unmarshal

func (m *MsgCancelSellOrderResponse) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	// Sell creates new sell orders.
	Sell(ctx context.Context, in *MsgSell, opts ...grpc.CallOption) (*MsgSellResponse, error)
	// UpdateSellOrders updates existing sell orders.
	UpdateSellOrders(ctx context.Context, in *MsgUpdateSellOrders, opts ...grpc.CallOption) (*MsgUpdateSellOrdersResponse, error)
	// CancelSellOrder cancels a sell order and returns the funds from escrow.
	CancelSellOrder(ctx context.Context, in *MsgCancelSellOrder, opts ...grpc.CallOption) (*MsgCancelSellOrderResponse, error)
	// BuyDirect purchases credits directly from the specified sell order.
	BuyDirect(ctx context.Context, in *MsgBuyDirect, opts ...grpc.CallOption) (*MsgBuyDirectResponse, 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

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgSell

type MsgSell struct {
	// seller is the address of the account that is selling credits.
	Seller string `protobuf:"bytes,1,opt,name=seller,proto3" json:"seller,omitempty"`
	// orders are the sell orders being created.
	Orders []*MsgSell_Order `protobuf:"bytes,2,rep,name=orders,proto3" json:"orders,omitempty"`
}

MsgSell is the Msg/Sell request type.

func (*MsgSell) Descriptor

func (*MsgSell) Descriptor() ([]byte, []int)

func (*MsgSell) GetOrders

func (m *MsgSell) GetOrders() []*MsgSell_Order

func (*MsgSell) GetSeller

func (m *MsgSell) GetSeller() string

func (MsgSell) GetSignBytes

func (m MsgSell) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgSell) GetSigners

func (m *MsgSell) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgSell.

func (*MsgSell) Marshal

func (m *MsgSell) Marshal() (dAtA []byte, err error)

func (*MsgSell) MarshalTo

func (m *MsgSell) MarshalTo(dAtA []byte) (int, error)

func (*MsgSell) MarshalToSizedBuffer

func (m *MsgSell) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSell) ProtoMessage

func (*MsgSell) ProtoMessage()

func (*MsgSell) Reset

func (m *MsgSell) Reset()

func (MsgSell) Route

func (m MsgSell) Route() string

Route implements the LegacyMsg interface.

func (*MsgSell) Size

func (m *MsgSell) Size() (n int)

func (*MsgSell) String

func (m *MsgSell) String() string

func (MsgSell) Type

func (m MsgSell) Type() string

Type implements the LegacyMsg interface.

func (*MsgSell) Unmarshal

func (m *MsgSell) Unmarshal(dAtA []byte) error

func (*MsgSell) ValidateBasic

func (m *MsgSell) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgSell) XXX_DiscardUnknown

func (m *MsgSell) XXX_DiscardUnknown()

func (*MsgSell) XXX_Marshal

func (m *MsgSell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSell) XXX_Merge

func (m *MsgSell) XXX_Merge(src proto.Message)

func (*MsgSell) XXX_Size

func (m *MsgSell) XXX_Size() int

func (*MsgSell) XXX_Unmarshal

func (m *MsgSell) XXX_Unmarshal(b []byte) error

type MsgSellResponse

type MsgSellResponse struct {
	// sell_order_ids are the sell order IDs of the newly created sell orders.
	SellOrderIds []uint64 `protobuf:"varint,1,rep,packed,name=sell_order_ids,json=sellOrderIds,proto3" json:"sell_order_ids,omitempty"`
}

MsgSellResponse is the Msg/Sell response type.

func (*MsgSellResponse) Descriptor

func (*MsgSellResponse) Descriptor() ([]byte, []int)

func (*MsgSellResponse) GetSellOrderIds

func (m *MsgSellResponse) GetSellOrderIds() []uint64

func (*MsgSellResponse) Marshal

func (m *MsgSellResponse) Marshal() (dAtA []byte, err error)

func (*MsgSellResponse) MarshalTo

func (m *MsgSellResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgSellResponse) MarshalToSizedBuffer

func (m *MsgSellResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSellResponse) ProtoMessage

func (*MsgSellResponse) ProtoMessage()

func (*MsgSellResponse) Reset

func (m *MsgSellResponse) Reset()

func (*MsgSellResponse) Size

func (m *MsgSellResponse) Size() (n int)

func (*MsgSellResponse) String

func (m *MsgSellResponse) String() string

func (*MsgSellResponse) Unmarshal

func (m *MsgSellResponse) Unmarshal(dAtA []byte) error

func (*MsgSellResponse) XXX_DiscardUnknown

func (m *MsgSellResponse) XXX_DiscardUnknown()

func (*MsgSellResponse) XXX_Marshal

func (m *MsgSellResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSellResponse) XXX_Merge

func (m *MsgSellResponse) XXX_Merge(src proto.Message)

func (*MsgSellResponse) XXX_Size

func (m *MsgSellResponse) XXX_Size() int

func (*MsgSellResponse) XXX_Unmarshal

func (m *MsgSellResponse) XXX_Unmarshal(b []byte) error

type MsgSell_Order

type MsgSell_Order struct {
	// batch_denom is the credit batch being sold.
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// quantity is the quantity of credits being sold from this batch. If it is
	// less then the balance of credits the owner has available at the time this
	// sell order is matched, the quantity will be adjusted downwards to the
	// owner's balance. However, if the balance of credits is less than this
	// quantity at the time the sell order is created, the operation will fail.
	Quantity string `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// ask_price is the price the seller is asking for each unit of the
	// batch_denom. Each credit unit of the batch will be sold for at least the
	// ask_price or more.
	AskPrice *types.Coin `protobuf:"bytes,3,opt,name=ask_price,json=askPrice,proto3" json:"ask_price,omitempty"`
	// disable_auto_retire disables auto-retirement of credits which allows a
	// buyer to disable auto-retirement in their buy order enabling them to
	// resell the credits to another buyer.
	DisableAutoRetire bool `protobuf:"varint,4,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// expiration is an optional timestamp when the sell order expires. When the
	// expiration time is reached, the sell order is removed from state.
	Expiration *time.Time `protobuf:"bytes,5,opt,name=expiration,proto3,stdtime" json:"expiration,omitempty"`
}

Order is the content of a new sell order.

func (*MsgSell_Order) Descriptor

func (*MsgSell_Order) Descriptor() ([]byte, []int)

func (*MsgSell_Order) GetAskPrice

func (m *MsgSell_Order) GetAskPrice() *types.Coin

func (*MsgSell_Order) GetBatchDenom

func (m *MsgSell_Order) GetBatchDenom() string

func (*MsgSell_Order) GetDisableAutoRetire

func (m *MsgSell_Order) GetDisableAutoRetire() bool

func (*MsgSell_Order) GetExpiration

func (m *MsgSell_Order) GetExpiration() *time.Time

func (*MsgSell_Order) GetQuantity

func (m *MsgSell_Order) GetQuantity() string

func (*MsgSell_Order) Marshal

func (m *MsgSell_Order) Marshal() (dAtA []byte, err error)

func (*MsgSell_Order) MarshalTo

func (m *MsgSell_Order) MarshalTo(dAtA []byte) (int, error)

func (*MsgSell_Order) MarshalToSizedBuffer

func (m *MsgSell_Order) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSell_Order) ProtoMessage

func (*MsgSell_Order) ProtoMessage()

func (*MsgSell_Order) Reset

func (m *MsgSell_Order) Reset()

func (*MsgSell_Order) Size

func (m *MsgSell_Order) Size() (n int)

func (*MsgSell_Order) String

func (m *MsgSell_Order) String() string

func (*MsgSell_Order) Unmarshal

func (m *MsgSell_Order) Unmarshal(dAtA []byte) error

func (*MsgSell_Order) XXX_DiscardUnknown

func (m *MsgSell_Order) XXX_DiscardUnknown()

func (*MsgSell_Order) XXX_Marshal

func (m *MsgSell_Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSell_Order) XXX_Merge

func (m *MsgSell_Order) XXX_Merge(src proto.Message)

func (*MsgSell_Order) XXX_Size

func (m *MsgSell_Order) XXX_Size() int

func (*MsgSell_Order) XXX_Unmarshal

func (m *MsgSell_Order) XXX_Unmarshal(b []byte) error

type MsgServer

type MsgServer interface {
	// Sell creates new sell orders.
	Sell(context.Context, *MsgSell) (*MsgSellResponse, error)
	// UpdateSellOrders updates existing sell orders.
	UpdateSellOrders(context.Context, *MsgUpdateSellOrders) (*MsgUpdateSellOrdersResponse, error)
	// CancelSellOrder cancels a sell order and returns the funds from escrow.
	CancelSellOrder(context.Context, *MsgCancelSellOrder) (*MsgCancelSellOrderResponse, error)
	// BuyDirect purchases credits directly from the specified sell order.
	BuyDirect(context.Context, *MsgBuyDirect) (*MsgBuyDirectResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateSellOrders

type MsgUpdateSellOrders struct {
	// seller is the address of the account that is selling credits.
	Seller string `protobuf:"bytes,1,opt,name=seller,proto3" json:"seller,omitempty"`
	// updates are updates to existing sell orders.
	Updates []*MsgUpdateSellOrders_Update `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates,omitempty"`
}

MsgUpdateSellOrders is the Msg/UpdateSellOrders request type.

func (*MsgUpdateSellOrders) Descriptor

func (*MsgUpdateSellOrders) Descriptor() ([]byte, []int)

func (*MsgUpdateSellOrders) GetSeller

func (m *MsgUpdateSellOrders) GetSeller() string

func (MsgUpdateSellOrders) GetSignBytes

func (m MsgUpdateSellOrders) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateSellOrders) GetSigners

func (m *MsgUpdateSellOrders) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgUpdateSellOrders.

func (*MsgUpdateSellOrders) GetUpdates

func (*MsgUpdateSellOrders) Marshal

func (m *MsgUpdateSellOrders) Marshal() (dAtA []byte, err error)

func (*MsgUpdateSellOrders) MarshalTo

func (m *MsgUpdateSellOrders) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateSellOrders) MarshalToSizedBuffer

func (m *MsgUpdateSellOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateSellOrders) ProtoMessage

func (*MsgUpdateSellOrders) ProtoMessage()

func (*MsgUpdateSellOrders) Reset

func (m *MsgUpdateSellOrders) Reset()

func (MsgUpdateSellOrders) Route

func (m MsgUpdateSellOrders) Route() string

Route implements the LegacyMsg interface.

func (*MsgUpdateSellOrders) Size

func (m *MsgUpdateSellOrders) Size() (n int)

func (*MsgUpdateSellOrders) String

func (m *MsgUpdateSellOrders) String() string

func (MsgUpdateSellOrders) Type

func (m MsgUpdateSellOrders) Type() string

Type implements the LegacyMsg interface.

func (*MsgUpdateSellOrders) Unmarshal

func (m *MsgUpdateSellOrders) Unmarshal(dAtA []byte) error

func (*MsgUpdateSellOrders) ValidateBasic

func (m *MsgUpdateSellOrders) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateSellOrders) XXX_DiscardUnknown

func (m *MsgUpdateSellOrders) XXX_DiscardUnknown()

func (*MsgUpdateSellOrders) XXX_Marshal

func (m *MsgUpdateSellOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateSellOrders) XXX_Merge

func (m *MsgUpdateSellOrders) XXX_Merge(src proto.Message)

func (*MsgUpdateSellOrders) XXX_Size

func (m *MsgUpdateSellOrders) XXX_Size() int

func (*MsgUpdateSellOrders) XXX_Unmarshal

func (m *MsgUpdateSellOrders) XXX_Unmarshal(b []byte) error

type MsgUpdateSellOrdersResponse

type MsgUpdateSellOrdersResponse struct {
}

MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type.

func (*MsgUpdateSellOrdersResponse) Descriptor

func (*MsgUpdateSellOrdersResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateSellOrdersResponse) Marshal

func (m *MsgUpdateSellOrdersResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateSellOrdersResponse) MarshalTo

func (m *MsgUpdateSellOrdersResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateSellOrdersResponse) MarshalToSizedBuffer

func (m *MsgUpdateSellOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateSellOrdersResponse) ProtoMessage

func (*MsgUpdateSellOrdersResponse) ProtoMessage()

func (*MsgUpdateSellOrdersResponse) Reset

func (m *MsgUpdateSellOrdersResponse) Reset()

func (*MsgUpdateSellOrdersResponse) Size

func (m *MsgUpdateSellOrdersResponse) Size() (n int)

func (*MsgUpdateSellOrdersResponse) String

func (m *MsgUpdateSellOrdersResponse) String() string

func (*MsgUpdateSellOrdersResponse) Unmarshal

func (m *MsgUpdateSellOrdersResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateSellOrdersResponse) XXX_DiscardUnknown

func (m *MsgUpdateSellOrdersResponse) XXX_DiscardUnknown()

func (*MsgUpdateSellOrdersResponse) XXX_Marshal

func (m *MsgUpdateSellOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateSellOrdersResponse) XXX_Merge

func (m *MsgUpdateSellOrdersResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateSellOrdersResponse) XXX_Size

func (m *MsgUpdateSellOrdersResponse) XXX_Size() int

func (*MsgUpdateSellOrdersResponse) XXX_Unmarshal

func (m *MsgUpdateSellOrdersResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateSellOrders_Update

type MsgUpdateSellOrders_Update struct {
	//  sell_order_id is the ID of an existing sell order.
	SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"`
	// new_quantity is the updated quantity of credits available to sell, if it
	// is set to zero then the order is cancelled.
	NewQuantity string `protobuf:"bytes,2,opt,name=new_quantity,json=newQuantity,proto3" json:"new_quantity,omitempty"`
	// new_ask_price is the new ask price for this sell order
	NewAskPrice *types.Coin `protobuf:"bytes,3,opt,name=new_ask_price,json=newAskPrice,proto3" json:"new_ask_price,omitempty"`
	// disable_auto_retire updates the disable_auto_retire field in the sell
	// order.
	DisableAutoRetire bool `protobuf:"varint,4,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// new_expiration is an optional timestamp when the sell order expires. When
	// the expiration time is reached, the sell order is removed from state.
	NewExpiration *time.Time `protobuf:"bytes,5,opt,name=new_expiration,json=newExpiration,proto3,stdtime" json:"new_expiration,omitempty"`
}

Update is an update to an existing sell order.

func (*MsgUpdateSellOrders_Update) Descriptor

func (*MsgUpdateSellOrders_Update) Descriptor() ([]byte, []int)

func (*MsgUpdateSellOrders_Update) GetDisableAutoRetire

func (m *MsgUpdateSellOrders_Update) GetDisableAutoRetire() bool

func (*MsgUpdateSellOrders_Update) GetNewAskPrice

func (m *MsgUpdateSellOrders_Update) GetNewAskPrice() *types.Coin

func (*MsgUpdateSellOrders_Update) GetNewExpiration

func (m *MsgUpdateSellOrders_Update) GetNewExpiration() *time.Time

func (*MsgUpdateSellOrders_Update) GetNewQuantity

func (m *MsgUpdateSellOrders_Update) GetNewQuantity() string

func (*MsgUpdateSellOrders_Update) GetSellOrderId

func (m *MsgUpdateSellOrders_Update) GetSellOrderId() uint64

func (*MsgUpdateSellOrders_Update) Marshal

func (m *MsgUpdateSellOrders_Update) Marshal() (dAtA []byte, err error)

func (*MsgUpdateSellOrders_Update) MarshalTo

func (m *MsgUpdateSellOrders_Update) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateSellOrders_Update) MarshalToSizedBuffer

func (m *MsgUpdateSellOrders_Update) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateSellOrders_Update) ProtoMessage

func (*MsgUpdateSellOrders_Update) ProtoMessage()

func (*MsgUpdateSellOrders_Update) Reset

func (m *MsgUpdateSellOrders_Update) Reset()

func (*MsgUpdateSellOrders_Update) Size

func (m *MsgUpdateSellOrders_Update) Size() (n int)

func (*MsgUpdateSellOrders_Update) String

func (m *MsgUpdateSellOrders_Update) String() string

func (*MsgUpdateSellOrders_Update) Unmarshal

func (m *MsgUpdateSellOrders_Update) Unmarshal(dAtA []byte) error

func (*MsgUpdateSellOrders_Update) XXX_DiscardUnknown

func (m *MsgUpdateSellOrders_Update) XXX_DiscardUnknown()

func (*MsgUpdateSellOrders_Update) XXX_Marshal

func (m *MsgUpdateSellOrders_Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateSellOrders_Update) XXX_Merge

func (m *MsgUpdateSellOrders_Update) XXX_Merge(src proto.Message)

func (*MsgUpdateSellOrders_Update) XXX_Size

func (m *MsgUpdateSellOrders_Update) XXX_Size() int

func (*MsgUpdateSellOrders_Update) XXX_Unmarshal

func (m *MsgUpdateSellOrders_Update) XXX_Unmarshal(b []byte) error

type QueryAllowedDenomsRequest

type QueryAllowedDenomsRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllowedDenomsRequest is the Query/AllowedDenoms request type.

func (*QueryAllowedDenomsRequest) Descriptor

func (*QueryAllowedDenomsRequest) Descriptor() ([]byte, []int)

func (*QueryAllowedDenomsRequest) GetPagination

func (m *QueryAllowedDenomsRequest) GetPagination() *query.PageRequest

func (*QueryAllowedDenomsRequest) Marshal

func (m *QueryAllowedDenomsRequest) Marshal() (dAtA []byte, err error)

func (*QueryAllowedDenomsRequest) MarshalTo

func (m *QueryAllowedDenomsRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllowedDenomsRequest) MarshalToSizedBuffer

func (m *QueryAllowedDenomsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllowedDenomsRequest) ProtoMessage

func (*QueryAllowedDenomsRequest) ProtoMessage()

func (*QueryAllowedDenomsRequest) Reset

func (m *QueryAllowedDenomsRequest) Reset()

func (*QueryAllowedDenomsRequest) Size

func (m *QueryAllowedDenomsRequest) Size() (n int)

func (*QueryAllowedDenomsRequest) String

func (m *QueryAllowedDenomsRequest) String() string

func (*QueryAllowedDenomsRequest) Unmarshal

func (m *QueryAllowedDenomsRequest) Unmarshal(dAtA []byte) error

func (*QueryAllowedDenomsRequest) XXX_DiscardUnknown

func (m *QueryAllowedDenomsRequest) XXX_DiscardUnknown()

func (*QueryAllowedDenomsRequest) XXX_Marshal

func (m *QueryAllowedDenomsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllowedDenomsRequest) XXX_Merge

func (m *QueryAllowedDenomsRequest) XXX_Merge(src proto.Message)

func (*QueryAllowedDenomsRequest) XXX_Size

func (m *QueryAllowedDenomsRequest) XXX_Size() int

func (*QueryAllowedDenomsRequest) XXX_Unmarshal

func (m *QueryAllowedDenomsRequest) XXX_Unmarshal(b []byte) error

type QueryAllowedDenomsResponse

type QueryAllowedDenomsResponse struct {
	// allowed_denoms is a list of coin denoms allowed to use in the ask price of
	// sell orders.
	AllowedDenoms []*AllowedDenom `protobuf:"bytes,1,rep,name=allowed_denoms,json=allowedDenoms,proto3" json:"allowed_denoms,omitempty"`
	// pagination defines an optional pagination for the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryAllowedDenomsResponse is the Query/AllowedDenoms response type.

func (*QueryAllowedDenomsResponse) Descriptor

func (*QueryAllowedDenomsResponse) Descriptor() ([]byte, []int)

func (*QueryAllowedDenomsResponse) GetAllowedDenoms

func (m *QueryAllowedDenomsResponse) GetAllowedDenoms() []*AllowedDenom

func (*QueryAllowedDenomsResponse) GetPagination

func (m *QueryAllowedDenomsResponse) GetPagination() *query.PageResponse

func (*QueryAllowedDenomsResponse) Marshal

func (m *QueryAllowedDenomsResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllowedDenomsResponse) MarshalTo

func (m *QueryAllowedDenomsResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllowedDenomsResponse) MarshalToSizedBuffer

func (m *QueryAllowedDenomsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllowedDenomsResponse) ProtoMessage

func (*QueryAllowedDenomsResponse) ProtoMessage()

func (*QueryAllowedDenomsResponse) Reset

func (m *QueryAllowedDenomsResponse) Reset()

func (*QueryAllowedDenomsResponse) Size

func (m *QueryAllowedDenomsResponse) Size() (n int)

func (*QueryAllowedDenomsResponse) String

func (m *QueryAllowedDenomsResponse) String() string

func (*QueryAllowedDenomsResponse) Unmarshal

func (m *QueryAllowedDenomsResponse) Unmarshal(dAtA []byte) error

func (*QueryAllowedDenomsResponse) XXX_DiscardUnknown

func (m *QueryAllowedDenomsResponse) XXX_DiscardUnknown()

func (*QueryAllowedDenomsResponse) XXX_Marshal

func (m *QueryAllowedDenomsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllowedDenomsResponse) XXX_Merge

func (m *QueryAllowedDenomsResponse) XXX_Merge(src proto.Message)

func (*QueryAllowedDenomsResponse) XXX_Size

func (m *QueryAllowedDenomsResponse) XXX_Size() int

func (*QueryAllowedDenomsResponse) XXX_Unmarshal

func (m *QueryAllowedDenomsResponse) XXX_Unmarshal(b []byte) error

type QueryClient

type QueryClient interface {
	// SellOrder queries a sell order by its unique identifier.
	SellOrder(ctx context.Context, in *QuerySellOrderRequest, opts ...grpc.CallOption) (*QuerySellOrderResponse, error)
	// SellOrders queries a paginated list of all sell orders.
	SellOrders(ctx context.Context, in *QuerySellOrdersRequest, opts ...grpc.CallOption) (*QuerySellOrdersResponse, error)
	// SellOrdersByBatch queries a paginated list of all sell orders based on
	// the batch denom of the credits being sold.
	SellOrdersByBatch(ctx context.Context, in *QuerySellOrdersByBatchRequest, opts ...grpc.CallOption) (*QuerySellOrdersByBatchResponse, error)
	// SellOrdersBySeller queries a paginated list of all sell orders based on the
	// account address of the seller.
	SellOrdersBySeller(ctx context.Context, in *QuerySellOrdersBySellerRequest, opts ...grpc.CallOption) (*QuerySellOrdersBySellerResponse, error)
	// AllowedDenoms queries a paginated list of all bank denoms allowed to be
	// used in the marketplace.
	AllowedDenoms(ctx context.Context, in *QueryAllowedDenomsRequest, opts ...grpc.CallOption) (*QueryAllowedDenomsResponse, 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

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QuerySellOrderRequest

type QuerySellOrderRequest struct {
	// sell_order_id is the id of the requested sell order.
	SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"`
}

QuerySellOrderRequest is the Query/SellOrder request type.

func (*QuerySellOrderRequest) Descriptor

func (*QuerySellOrderRequest) Descriptor() ([]byte, []int)

func (*QuerySellOrderRequest) GetSellOrderId

func (m *QuerySellOrderRequest) GetSellOrderId() uint64

func (*QuerySellOrderRequest) Marshal

func (m *QuerySellOrderRequest) Marshal() (dAtA []byte, err error)

func (*QuerySellOrderRequest) MarshalTo

func (m *QuerySellOrderRequest) MarshalTo(dAtA []byte) (int, error)

func (*QuerySellOrderRequest) MarshalToSizedBuffer

func (m *QuerySellOrderRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySellOrderRequest) ProtoMessage

func (*QuerySellOrderRequest) ProtoMessage()

func (*QuerySellOrderRequest) Reset

func (m *QuerySellOrderRequest) Reset()

func (*QuerySellOrderRequest) Size

func (m *QuerySellOrderRequest) Size() (n int)

func (*QuerySellOrderRequest) String

func (m *QuerySellOrderRequest) String() string

func (*QuerySellOrderRequest) Unmarshal

func (m *QuerySellOrderRequest) Unmarshal(dAtA []byte) error

func (*QuerySellOrderRequest) XXX_DiscardUnknown

func (m *QuerySellOrderRequest) XXX_DiscardUnknown()

func (*QuerySellOrderRequest) XXX_Marshal

func (m *QuerySellOrderRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySellOrderRequest) XXX_Merge

func (m *QuerySellOrderRequest) XXX_Merge(src proto.Message)

func (*QuerySellOrderRequest) XXX_Size

func (m *QuerySellOrderRequest) XXX_Size() int

func (*QuerySellOrderRequest) XXX_Unmarshal

func (m *QuerySellOrderRequest) XXX_Unmarshal(b []byte) error

type QuerySellOrderResponse

type QuerySellOrderResponse struct {
	// sell_order contains all information related to a sell order.
	SellOrder *SellOrderInfo `protobuf:"bytes,1,opt,name=sell_order,json=sellOrder,proto3" json:"sell_order,omitempty"`
}

QuerySellOrderResponse is the Query/SellOrder response type.

func (*QuerySellOrderResponse) Descriptor

func (*QuerySellOrderResponse) Descriptor() ([]byte, []int)

func (*QuerySellOrderResponse) GetSellOrder

func (m *QuerySellOrderResponse) GetSellOrder() *SellOrderInfo

func (*QuerySellOrderResponse) Marshal

func (m *QuerySellOrderResponse) Marshal() (dAtA []byte, err error)

func (*QuerySellOrderResponse) MarshalTo

func (m *QuerySellOrderResponse) MarshalTo(dAtA []byte) (int, error)

func (*QuerySellOrderResponse) MarshalToSizedBuffer

func (m *QuerySellOrderResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySellOrderResponse) ProtoMessage

func (*QuerySellOrderResponse) ProtoMessage()

func (*QuerySellOrderResponse) Reset

func (m *QuerySellOrderResponse) Reset()

func (*QuerySellOrderResponse) Size

func (m *QuerySellOrderResponse) Size() (n int)

func (*QuerySellOrderResponse) String

func (m *QuerySellOrderResponse) String() string

func (*QuerySellOrderResponse) Unmarshal

func (m *QuerySellOrderResponse) Unmarshal(dAtA []byte) error

func (*QuerySellOrderResponse) XXX_DiscardUnknown

func (m *QuerySellOrderResponse) XXX_DiscardUnknown()

func (*QuerySellOrderResponse) XXX_Marshal

func (m *QuerySellOrderResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySellOrderResponse) XXX_Merge

func (m *QuerySellOrderResponse) XXX_Merge(src proto.Message)

func (*QuerySellOrderResponse) XXX_Size

func (m *QuerySellOrderResponse) XXX_Size() int

func (*QuerySellOrderResponse) XXX_Unmarshal

func (m *QuerySellOrderResponse) XXX_Unmarshal(b []byte) error

type QuerySellOrdersByBatchRequest

type QuerySellOrdersByBatchRequest struct {
	// batch_denom is an ecocredit denom
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySellOrdersByBatchRequest is the Query/SellOrdersByBatch request type.

func (*QuerySellOrdersByBatchRequest) Descriptor

func (*QuerySellOrdersByBatchRequest) Descriptor() ([]byte, []int)

func (*QuerySellOrdersByBatchRequest) GetBatchDenom

func (m *QuerySellOrdersByBatchRequest) GetBatchDenom() string

func (*QuerySellOrdersByBatchRequest) GetPagination

func (m *QuerySellOrdersByBatchRequest) GetPagination() *query.PageRequest

func (*QuerySellOrdersByBatchRequest) Marshal

func (m *QuerySellOrdersByBatchRequest) Marshal() (dAtA []byte, err error)

func (*QuerySellOrdersByBatchRequest) MarshalTo

func (m *QuerySellOrdersByBatchRequest) MarshalTo(dAtA []byte) (int, error)

func (*QuerySellOrdersByBatchRequest) MarshalToSizedBuffer

func (m *QuerySellOrdersByBatchRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySellOrdersByBatchRequest) ProtoMessage

func (*QuerySellOrdersByBatchRequest) ProtoMessage()

func (*QuerySellOrdersByBatchRequest) Reset

func (m *QuerySellOrdersByBatchRequest) Reset()

func (*QuerySellOrdersByBatchRequest) Size

func (m *QuerySellOrdersByBatchRequest) Size() (n int)

func (*QuerySellOrdersByBatchRequest) String

func (*QuerySellOrdersByBatchRequest) Unmarshal

func (m *QuerySellOrdersByBatchRequest) Unmarshal(dAtA []byte) error

func (*QuerySellOrdersByBatchRequest) XXX_DiscardUnknown

func (m *QuerySellOrdersByBatchRequest) XXX_DiscardUnknown()

func (*QuerySellOrdersByBatchRequest) XXX_Marshal

func (m *QuerySellOrdersByBatchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySellOrdersByBatchRequest) XXX_Merge

func (m *QuerySellOrdersByBatchRequest) XXX_Merge(src proto.Message)

func (*QuerySellOrdersByBatchRequest) XXX_Size

func (m *QuerySellOrdersByBatchRequest) XXX_Size() int

func (*QuerySellOrdersByBatchRequest) XXX_Unmarshal

func (m *QuerySellOrdersByBatchRequest) XXX_Unmarshal(b []byte) error

type QuerySellOrdersByBatchResponse

type QuerySellOrdersByBatchResponse struct {
	// sell_orders is a list of sell orders.
	SellOrders []*SellOrderInfo `protobuf:"bytes,1,rep,name=sell_orders,json=sellOrders,proto3" json:"sell_orders,omitempty"`
	// pagination defines an optional pagination for the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySellOrdersByBatchResponse is the Query/SellOrdersByBatch response type.

func (*QuerySellOrdersByBatchResponse) Descriptor

func (*QuerySellOrdersByBatchResponse) Descriptor() ([]byte, []int)

func (*QuerySellOrdersByBatchResponse) GetPagination

func (*QuerySellOrdersByBatchResponse) GetSellOrders

func (m *QuerySellOrdersByBatchResponse) GetSellOrders() []*SellOrderInfo

func (*QuerySellOrdersByBatchResponse) Marshal

func (m *QuerySellOrdersByBatchResponse) Marshal() (dAtA []byte, err error)

func (*QuerySellOrdersByBatchResponse) MarshalTo

func (m *QuerySellOrdersByBatchResponse) MarshalTo(dAtA []byte) (int, error)

func (*QuerySellOrdersByBatchResponse) MarshalToSizedBuffer

func (m *QuerySellOrdersByBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySellOrdersByBatchResponse) ProtoMessage

func (*QuerySellOrdersByBatchResponse) ProtoMessage()

func (*QuerySellOrdersByBatchResponse) Reset

func (m *QuerySellOrdersByBatchResponse) Reset()

func (*QuerySellOrdersByBatchResponse) Size

func (m *QuerySellOrdersByBatchResponse) Size() (n int)

func (*QuerySellOrdersByBatchResponse) String

func (*QuerySellOrdersByBatchResponse) Unmarshal

func (m *QuerySellOrdersByBatchResponse) Unmarshal(dAtA []byte) error

func (*QuerySellOrdersByBatchResponse) XXX_DiscardUnknown

func (m *QuerySellOrdersByBatchResponse) XXX_DiscardUnknown()

func (*QuerySellOrdersByBatchResponse) XXX_Marshal

func (m *QuerySellOrdersByBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySellOrdersByBatchResponse) XXX_Merge

func (m *QuerySellOrdersByBatchResponse) XXX_Merge(src proto.Message)

func (*QuerySellOrdersByBatchResponse) XXX_Size

func (m *QuerySellOrdersByBatchResponse) XXX_Size() int

func (*QuerySellOrdersByBatchResponse) XXX_Unmarshal

func (m *QuerySellOrdersByBatchResponse) XXX_Unmarshal(b []byte) error

type QuerySellOrdersBySellerRequest

type QuerySellOrdersBySellerRequest struct {
	// seller is the address of the account that is selling credits.
	Seller string `protobuf:"bytes,1,opt,name=seller,proto3" json:"seller,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySellOrdersBySellerRequest is the Query/SellOrdersBySeller request type.

func (*QuerySellOrdersBySellerRequest) Descriptor

func (*QuerySellOrdersBySellerRequest) Descriptor() ([]byte, []int)

func (*QuerySellOrdersBySellerRequest) GetPagination

func (m *QuerySellOrdersBySellerRequest) GetPagination() *query.PageRequest

func (*QuerySellOrdersBySellerRequest) GetSeller

func (m *QuerySellOrdersBySellerRequest) GetSeller() string

func (*QuerySellOrdersBySellerRequest) Marshal

func (m *QuerySellOrdersBySellerRequest) Marshal() (dAtA []byte, err error)

func (*QuerySellOrdersBySellerRequest) MarshalTo

func (m *QuerySellOrdersBySellerRequest) MarshalTo(dAtA []byte) (int, error)

func (*QuerySellOrdersBySellerRequest) MarshalToSizedBuffer

func (m *QuerySellOrdersBySellerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySellOrdersBySellerRequest) ProtoMessage

func (*QuerySellOrdersBySellerRequest) ProtoMessage()

func (*QuerySellOrdersBySellerRequest) Reset

func (m *QuerySellOrdersBySellerRequest) Reset()

func (*QuerySellOrdersBySellerRequest) Size

func (m *QuerySellOrdersBySellerRequest) Size() (n int)

func (*QuerySellOrdersBySellerRequest) String

func (*QuerySellOrdersBySellerRequest) Unmarshal

func (m *QuerySellOrdersBySellerRequest) Unmarshal(dAtA []byte) error

func (*QuerySellOrdersBySellerRequest) XXX_DiscardUnknown

func (m *QuerySellOrdersBySellerRequest) XXX_DiscardUnknown()

func (*QuerySellOrdersBySellerRequest) XXX_Marshal

func (m *QuerySellOrdersBySellerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySellOrdersBySellerRequest) XXX_Merge

func (m *QuerySellOrdersBySellerRequest) XXX_Merge(src proto.Message)

func (*QuerySellOrdersBySellerRequest) XXX_Size

func (m *QuerySellOrdersBySellerRequest) XXX_Size() int

func (*QuerySellOrdersBySellerRequest) XXX_Unmarshal

func (m *QuerySellOrdersBySellerRequest) XXX_Unmarshal(b []byte) error

type QuerySellOrdersBySellerResponse

type QuerySellOrdersBySellerResponse struct {
	// sell_orders is a list of sell orders.
	SellOrders []*SellOrderInfo `protobuf:"bytes,1,rep,name=sell_orders,json=sellOrders,proto3" json:"sell_orders,omitempty"`
	// pagination defines an optional pagination for the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySellOrdersBySellerResponse is the Query/SellOrdersBySellerResponse response type.

func (*QuerySellOrdersBySellerResponse) Descriptor

func (*QuerySellOrdersBySellerResponse) Descriptor() ([]byte, []int)

func (*QuerySellOrdersBySellerResponse) GetPagination

func (*QuerySellOrdersBySellerResponse) GetSellOrders

func (m *QuerySellOrdersBySellerResponse) GetSellOrders() []*SellOrderInfo

func (*QuerySellOrdersBySellerResponse) Marshal

func (m *QuerySellOrdersBySellerResponse) Marshal() (dAtA []byte, err error)

func (*QuerySellOrdersBySellerResponse) MarshalTo

func (m *QuerySellOrdersBySellerResponse) MarshalTo(dAtA []byte) (int, error)

func (*QuerySellOrdersBySellerResponse) MarshalToSizedBuffer

func (m *QuerySellOrdersBySellerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySellOrdersBySellerResponse) ProtoMessage

func (*QuerySellOrdersBySellerResponse) ProtoMessage()

func (*QuerySellOrdersBySellerResponse) Reset

func (*QuerySellOrdersBySellerResponse) Size

func (m *QuerySellOrdersBySellerResponse) Size() (n int)

func (*QuerySellOrdersBySellerResponse) String

func (*QuerySellOrdersBySellerResponse) Unmarshal

func (m *QuerySellOrdersBySellerResponse) Unmarshal(dAtA []byte) error

func (*QuerySellOrdersBySellerResponse) XXX_DiscardUnknown

func (m *QuerySellOrdersBySellerResponse) XXX_DiscardUnknown()

func (*QuerySellOrdersBySellerResponse) XXX_Marshal

func (m *QuerySellOrdersBySellerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySellOrdersBySellerResponse) XXX_Merge

func (m *QuerySellOrdersBySellerResponse) XXX_Merge(src proto.Message)

func (*QuerySellOrdersBySellerResponse) XXX_Size

func (m *QuerySellOrdersBySellerResponse) XXX_Size() int

func (*QuerySellOrdersBySellerResponse) XXX_Unmarshal

func (m *QuerySellOrdersBySellerResponse) XXX_Unmarshal(b []byte) error

type QuerySellOrdersRequest

type QuerySellOrdersRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySellOrdersRequest is the Query/SellOrders request type.

func (*QuerySellOrdersRequest) Descriptor

func (*QuerySellOrdersRequest) Descriptor() ([]byte, []int)

func (*QuerySellOrdersRequest) GetPagination

func (m *QuerySellOrdersRequest) GetPagination() *query.PageRequest

func (*QuerySellOrdersRequest) Marshal

func (m *QuerySellOrdersRequest) Marshal() (dAtA []byte, err error)

func (*QuerySellOrdersRequest) MarshalTo

func (m *QuerySellOrdersRequest) MarshalTo(dAtA []byte) (int, error)

func (*QuerySellOrdersRequest) MarshalToSizedBuffer

func (m *QuerySellOrdersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySellOrdersRequest) ProtoMessage

func (*QuerySellOrdersRequest) ProtoMessage()

func (*QuerySellOrdersRequest) Reset

func (m *QuerySellOrdersRequest) Reset()

func (*QuerySellOrdersRequest) Size

func (m *QuerySellOrdersRequest) Size() (n int)

func (*QuerySellOrdersRequest) String

func (m *QuerySellOrdersRequest) String() string

func (*QuerySellOrdersRequest) Unmarshal

func (m *QuerySellOrdersRequest) Unmarshal(dAtA []byte) error

func (*QuerySellOrdersRequest) XXX_DiscardUnknown

func (m *QuerySellOrdersRequest) XXX_DiscardUnknown()

func (*QuerySellOrdersRequest) XXX_Marshal

func (m *QuerySellOrdersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySellOrdersRequest) XXX_Merge

func (m *QuerySellOrdersRequest) XXX_Merge(src proto.Message)

func (*QuerySellOrdersRequest) XXX_Size

func (m *QuerySellOrdersRequest) XXX_Size() int

func (*QuerySellOrdersRequest) XXX_Unmarshal

func (m *QuerySellOrdersRequest) XXX_Unmarshal(b []byte) error

type QuerySellOrdersResponse

type QuerySellOrdersResponse struct {
	// sell_orders is a list of sell orders.
	SellOrders []*SellOrderInfo `protobuf:"bytes,1,rep,name=sell_orders,json=sellOrders,proto3" json:"sell_orders,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QuerySellOrdersResponse is the Query/SellOrders response type.

func (*QuerySellOrdersResponse) Descriptor

func (*QuerySellOrdersResponse) Descriptor() ([]byte, []int)

func (*QuerySellOrdersResponse) GetPagination

func (m *QuerySellOrdersResponse) GetPagination() *query.PageResponse

func (*QuerySellOrdersResponse) GetSellOrders

func (m *QuerySellOrdersResponse) GetSellOrders() []*SellOrderInfo

func (*QuerySellOrdersResponse) Marshal

func (m *QuerySellOrdersResponse) Marshal() (dAtA []byte, err error)

func (*QuerySellOrdersResponse) MarshalTo

func (m *QuerySellOrdersResponse) MarshalTo(dAtA []byte) (int, error)

func (*QuerySellOrdersResponse) MarshalToSizedBuffer

func (m *QuerySellOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QuerySellOrdersResponse) ProtoMessage

func (*QuerySellOrdersResponse) ProtoMessage()

func (*QuerySellOrdersResponse) Reset

func (m *QuerySellOrdersResponse) Reset()

func (*QuerySellOrdersResponse) Size

func (m *QuerySellOrdersResponse) Size() (n int)

func (*QuerySellOrdersResponse) String

func (m *QuerySellOrdersResponse) String() string

func (*QuerySellOrdersResponse) Unmarshal

func (m *QuerySellOrdersResponse) Unmarshal(dAtA []byte) error

func (*QuerySellOrdersResponse) XXX_DiscardUnknown

func (m *QuerySellOrdersResponse) XXX_DiscardUnknown()

func (*QuerySellOrdersResponse) XXX_Marshal

func (m *QuerySellOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QuerySellOrdersResponse) XXX_Merge

func (m *QuerySellOrdersResponse) XXX_Merge(src proto.Message)

func (*QuerySellOrdersResponse) XXX_Size

func (m *QuerySellOrdersResponse) XXX_Size() int

func (*QuerySellOrdersResponse) XXX_Unmarshal

func (m *QuerySellOrdersResponse) XXX_Unmarshal(b []byte) error

type QueryServer

type QueryServer interface {
	// SellOrder queries a sell order by its unique identifier.
	SellOrder(context.Context, *QuerySellOrderRequest) (*QuerySellOrderResponse, error)
	// SellOrders queries a paginated list of all sell orders.
	SellOrders(context.Context, *QuerySellOrdersRequest) (*QuerySellOrdersResponse, error)
	// SellOrdersByBatch queries a paginated list of all sell orders based on
	// the batch denom of the credits being sold.
	SellOrdersByBatch(context.Context, *QuerySellOrdersByBatchRequest) (*QuerySellOrdersByBatchResponse, error)
	// SellOrdersBySeller queries a paginated list of all sell orders based on the
	// account address of the seller.
	SellOrdersBySeller(context.Context, *QuerySellOrdersBySellerRequest) (*QuerySellOrdersBySellerResponse, error)
	// AllowedDenoms queries a paginated list of all bank denoms allowed to be
	// used in the marketplace.
	AllowedDenoms(context.Context, *QueryAllowedDenomsRequest) (*QueryAllowedDenomsResponse, error)
}

QueryServer is the server API for Query service.

type SellOrder

type SellOrder struct {
	// id is the unique ID of sell order.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// seller is the address of the account that is selling credits.
	Seller []byte `protobuf:"bytes,2,opt,name=seller,proto3" json:"seller,omitempty"`
	// batch_key is the table row identifier of the credit batch used internally
	// for efficient lookups. This links a sell order to a credit batch.
	BatchKey uint64 `protobuf:"varint,3,opt,name=batch_key,json=batchKey,proto3" json:"batch_key,omitempty"`
	// quantity is the decimal quantity of credits being sold.
	Quantity string `protobuf:"bytes,4,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// market_id is the market in which this sell order exists and specifies
	// the bank_denom that ask_amount corresponds to forming the ask_price.
	MarketId uint64 `protobuf:"varint,5,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"`
	// ask_amount is the integer amount (encoded as a string) that the seller is
	// asking for each credit unit of the batch. Each credit unit of the batch
	// will be sold for at least the ask_amount. The ask_amount corresponds to the
	// Market.denom to form the ask price.
	AskAmount string `protobuf:"bytes,6,opt,name=ask_amount,json=askAmount,proto3" json:"ask_amount,omitempty"`
	// disable_auto_retire disables auto-retirement of credits which allows a
	// buyer to disable auto-retirement in their buy order enabling them to
	// resell the credits to another buyer.
	DisableAutoRetire bool `protobuf:"varint,7,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// expiration is an optional timestamp when the sell order expires. When the
	// expiration time is reached, the sell order is removed from state.
	Expiration *types.Timestamp `protobuf:"bytes,9,opt,name=expiration,proto3" json:"expiration,omitempty"`
	// maker indicates that this is a maker order, meaning that when it hit
	// the order book, there were no matching buy orders.
	Maker bool `protobuf:"varint,10,opt,name=maker,proto3" json:"maker,omitempty"`
}

SellOrder represents the information for a sell order.

func (*SellOrder) Descriptor

func (*SellOrder) Descriptor() ([]byte, []int)

func (*SellOrder) GetAskAmount

func (m *SellOrder) GetAskAmount() string

func (*SellOrder) GetBatchKey

func (m *SellOrder) GetBatchKey() uint64

func (*SellOrder) GetDisableAutoRetire

func (m *SellOrder) GetDisableAutoRetire() bool

func (*SellOrder) GetExpiration

func (m *SellOrder) GetExpiration() *types.Timestamp

func (*SellOrder) GetId

func (m *SellOrder) GetId() uint64

func (*SellOrder) GetMaker

func (m *SellOrder) GetMaker() bool

func (*SellOrder) GetMarketId

func (m *SellOrder) GetMarketId() uint64

func (*SellOrder) GetQuantity

func (m *SellOrder) GetQuantity() string

func (*SellOrder) GetSeller

func (m *SellOrder) GetSeller() []byte

func (*SellOrder) Marshal

func (m *SellOrder) Marshal() (dAtA []byte, err error)

func (*SellOrder) MarshalTo

func (m *SellOrder) MarshalTo(dAtA []byte) (int, error)

func (*SellOrder) MarshalToSizedBuffer

func (m *SellOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SellOrder) ProtoMessage

func (*SellOrder) ProtoMessage()

func (*SellOrder) Reset

func (m *SellOrder) Reset()

func (*SellOrder) Size

func (m *SellOrder) Size() (n int)

func (*SellOrder) String

func (m *SellOrder) String() string

func (*SellOrder) Unmarshal

func (m *SellOrder) Unmarshal(dAtA []byte) error

func (*SellOrder) XXX_DiscardUnknown

func (m *SellOrder) XXX_DiscardUnknown()

func (*SellOrder) XXX_Marshal

func (m *SellOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SellOrder) XXX_Merge

func (m *SellOrder) XXX_Merge(src proto.Message)

func (*SellOrder) XXX_Size

func (m *SellOrder) XXX_Size() int

func (*SellOrder) XXX_Unmarshal

func (m *SellOrder) XXX_Unmarshal(b []byte) error

type SellOrderInfo

type SellOrderInfo struct {
	// id is the unique ID of sell order.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// seller is the address of the account that is selling credits.
	Seller string `protobuf:"bytes,2,opt,name=seller,proto3" json:"seller,omitempty"`
	// batch_denom is denom of the credit batch being sold.
	BatchDenom string `protobuf:"bytes,3,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// quantity is the decimal quantity of credits being sold.
	Quantity string `protobuf:"bytes,4,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// ask_denom is the denom used in the ask price of the sell order.
	AskDenom string `protobuf:"bytes,5,opt,name=ask_denom,json=askDenom,proto3" json:"ask_denom,omitempty"`
	// ask_amount is the amount that the seller is asking for each credit unit of
	// the batch. Each credit unit of the batch will be sold for at least the
	// ask_amount.
	AskAmount string `protobuf:"bytes,6,opt,name=ask_amount,json=askAmount,proto3" json:"ask_amount,omitempty"`
	// disable_auto_retire disables auto-retirement of credits which allows a
	// buyer to disable auto-retirement in their buy order enabling them to
	// resell the credits to another buyer.
	DisableAutoRetire bool `protobuf:"varint,7,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// expiration is an optional timestamp when the sell order expires. When the
	// expiration time is reached, the sell order is removed from state.
	Expiration *types.Timestamp `protobuf:"bytes,9,opt,name=expiration,proto3" json:"expiration,omitempty"`
}

SellOrderInfo is the human-readable sell order information.

func (*SellOrderInfo) Descriptor

func (*SellOrderInfo) Descriptor() ([]byte, []int)

func (*SellOrderInfo) GetAskAmount

func (m *SellOrderInfo) GetAskAmount() string

func (*SellOrderInfo) GetAskDenom

func (m *SellOrderInfo) GetAskDenom() string

func (*SellOrderInfo) GetBatchDenom

func (m *SellOrderInfo) GetBatchDenom() string

func (*SellOrderInfo) GetDisableAutoRetire

func (m *SellOrderInfo) GetDisableAutoRetire() bool

func (*SellOrderInfo) GetExpiration

func (m *SellOrderInfo) GetExpiration() *types.Timestamp

func (*SellOrderInfo) GetId

func (m *SellOrderInfo) GetId() uint64

func (*SellOrderInfo) GetQuantity

func (m *SellOrderInfo) GetQuantity() string

func (*SellOrderInfo) GetSeller

func (m *SellOrderInfo) GetSeller() string

func (*SellOrderInfo) Marshal

func (m *SellOrderInfo) Marshal() (dAtA []byte, err error)

func (*SellOrderInfo) MarshalTo

func (m *SellOrderInfo) MarshalTo(dAtA []byte) (int, error)

func (*SellOrderInfo) MarshalToSizedBuffer

func (m *SellOrderInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SellOrderInfo) ProtoMessage

func (*SellOrderInfo) ProtoMessage()

func (*SellOrderInfo) Reset

func (m *SellOrderInfo) Reset()

func (*SellOrderInfo) Size

func (m *SellOrderInfo) Size() (n int)

func (*SellOrderInfo) String

func (m *SellOrderInfo) String() string

func (*SellOrderInfo) Unmarshal

func (m *SellOrderInfo) Unmarshal(dAtA []byte) error

func (*SellOrderInfo) XXX_DiscardUnknown

func (m *SellOrderInfo) XXX_DiscardUnknown()

func (*SellOrderInfo) XXX_Marshal

func (m *SellOrderInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SellOrderInfo) XXX_Merge

func (m *SellOrderInfo) XXX_Merge(src proto.Message)

func (*SellOrderInfo) XXX_Size

func (m *SellOrderInfo) XXX_Size() int

func (*SellOrderInfo) XXX_Unmarshal

func (m *SellOrderInfo) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BuyDirect

func (*UnimplementedMsgServer) CancelSellOrder

func (*UnimplementedMsgServer) Sell

func (*UnimplementedMsgServer) UpdateSellOrders

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AllowedDenoms

func (*UnimplementedQueryServer) SellOrder

func (*UnimplementedQueryServer) SellOrders

func (*UnimplementedQueryServer) SellOrdersByBatch

func (*UnimplementedQueryServer) SellOrdersBySeller

Jump to

Keyboard shortcuts

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