basket

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: 34 Imported by: 2

Documentation

Overview

Package basket is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const BasketSubModuleName = ecocredit.ModuleName + "-basket"

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 (
	// RegexBasketName requires the first character to be alphabetic, the rest can be alphanumeric. We
	// reduce length constraints by one to account for the first character being forced to alphabetic.
	RegexBasketName = fmt.Sprintf(`[a-zA-Z][a-zA-Z0-9]{%d,%d}`, nameMinLen-1, nameMaxLen-1)
	// RegexBasketDenom requires the first part to match the denom prefix, the second part to match the
	// format for a credit type abbreviation (with or without an exponent prefix), and the third part to
	// satisfy the basket name. Each of the three parts must also be separated by a ".".
	RegexBasketDenom = fmt.Sprintf(`%s.[a-zA-Z]{1,4}.%s`, denomPrefix, RegexBasketName)
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func FormatBasketDenom

func FormatBasketDenom(name, creditTypeAbbrev string, exponent uint32) (string, string, error)

FormatBasketDenom formats denom and display denom: - denom: eco.<m.Exponent><m.CreditTypeAbbrev>.<m.Name> - display denom: eco.<m.CreditTypeAbbrev>.<m.Name>

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)

func ValidateBasketDenom

func ValidateBasketDenom(denom string) error

ValidateBasketDenom validates a basket denomination conforms to the format described in FormatBasketDenom. The return is nil if the denom is valid.

func ValidateBasketName

func ValidateBasketName(name string) error

ValidateBasketName validates a basket denomination conforms to the format described in FormatBasketName. The return is nil if the denom is valid.

Types

type Basket

type Basket struct {
	// id is the uint64 ID of the basket. It is used internally for reducing
	// storage space.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// basket_denom is the basket bank denom formed from name and credit type with
	// the format `eco.<prefix><credit_type_abbrev>.<name>` where prefix is the
	// prefix of the bank denom exponent, a standard SI unit derived from credit
	// type precision, and mapped as follows:
	//   0 - no prefix
	//   1 - d (deci)
	//   2 - c (centi)
	//   3 - m (milli)
	//   6 - u (micro)
	//   9 - n (nano)
	//   12 - p (pico)
	//   15 - f (femto)
	//   18 - a (atto)
	//   21 - z (zepto)
	//   24 - y (yocto)
	BasketDenom string `protobuf:"bytes,2,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// name is the unique name of the basket specified in MsgCreate. Basket
	// names must be unique across all credit types and choices of exponent
	// above and beyond the uniqueness constraint on basket_denom.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// disable_auto_retire indicates whether or not the credits will be retired
	// upon withdraw from the basket.
	DisableAutoRetire bool `protobuf:"varint,4,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// credit_type_abbrev is the abbreviation of the credit type this basket is
	// able to hold.
	CreditTypeAbbrev string `protobuf:"bytes,5,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"`
	// date_criteria is the date criteria for batches admitted to the basket.
	DateCriteria *DateCriteria `protobuf:"bytes,6,opt,name=date_criteria,json=dateCriteria,proto3" json:"date_criteria,omitempty"`
	// Deprecated (Since Revision 1): This field is no longer used and will be
	// removed in the next version. The value of credit type precision is always
	// used as the exponent when converting credits to/from basket tokens. This
	// field will be set to the value of credit type precision until removed.
	Exponent uint32 `protobuf:"varint,7,opt,name=exponent,proto3" json:"exponent,omitempty"` // Deprecated: Do not use.
	// curator is the address of the basket curator who is able to change certain
	// basket settings.
	//
	// Since Revision 1
	Curator []byte `protobuf:"bytes,8,opt,name=curator,proto3" json:"curator,omitempty"`
}

Basket represents a basket in state.

func (*Basket) Descriptor

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

func (*Basket) GetBasketDenom

func (m *Basket) GetBasketDenom() string

func (*Basket) GetCreditTypeAbbrev

func (m *Basket) GetCreditTypeAbbrev() string

func (*Basket) GetCurator

func (m *Basket) GetCurator() []byte

func (*Basket) GetDateCriteria

func (m *Basket) GetDateCriteria() *DateCriteria

func (*Basket) GetDisableAutoRetire

func (m *Basket) GetDisableAutoRetire() bool

func (*Basket) GetExponent deprecated

func (m *Basket) GetExponent() uint32

Deprecated: Do not use.

func (*Basket) GetId

func (m *Basket) GetId() uint64

func (*Basket) GetName

func (m *Basket) GetName() string

func (*Basket) Marshal

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

func (*Basket) MarshalTo

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

func (*Basket) MarshalToSizedBuffer

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

func (*Basket) ProtoMessage

func (*Basket) ProtoMessage()

func (*Basket) Reset

func (m *Basket) Reset()

func (*Basket) Size

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

func (*Basket) String

func (m *Basket) String() string

func (*Basket) Unmarshal

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

func (*Basket) XXX_DiscardUnknown

func (m *Basket) XXX_DiscardUnknown()

func (*Basket) XXX_Marshal

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

func (*Basket) XXX_Merge

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

func (*Basket) XXX_Size

func (m *Basket) XXX_Size() int

func (*Basket) XXX_Unmarshal

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

type BasketBalance

type BasketBalance struct {
	// basket_id is the ID of the basket
	BasketId uint64 `protobuf:"varint,1,opt,name=basket_id,json=basketId,proto3" json:"basket_id,omitempty"`
	// batch_denom is the denom of the credit batch
	BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// balance is the amount of ecocredits held in the basket
	Balance string `protobuf:"bytes,3,opt,name=balance,proto3" json:"balance,omitempty"`
	// batch_start_date is the start date of the batch. This field is used
	// to create an index which is used to remove the oldest credits first.
	BatchStartDate *types.Timestamp `protobuf:"bytes,4,opt,name=batch_start_date,json=batchStartDate,proto3" json:"batch_start_date,omitempty"`
}

BasketBalance stores the amount of credits from a batch in a basket

func (*BasketBalance) Descriptor

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

func (*BasketBalance) GetBalance

func (m *BasketBalance) GetBalance() string

func (*BasketBalance) GetBasketId

func (m *BasketBalance) GetBasketId() uint64

func (*BasketBalance) GetBatchDenom

func (m *BasketBalance) GetBatchDenom() string

func (*BasketBalance) GetBatchStartDate

func (m *BasketBalance) GetBatchStartDate() *types.Timestamp

func (*BasketBalance) Marshal

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

func (*BasketBalance) MarshalTo

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

func (*BasketBalance) MarshalToSizedBuffer

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

func (*BasketBalance) ProtoMessage

func (*BasketBalance) ProtoMessage()

func (*BasketBalance) Reset

func (m *BasketBalance) Reset()

func (*BasketBalance) Size

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

func (*BasketBalance) String

func (m *BasketBalance) String() string

func (*BasketBalance) Unmarshal

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

func (*BasketBalance) XXX_DiscardUnknown

func (m *BasketBalance) XXX_DiscardUnknown()

func (*BasketBalance) XXX_Marshal

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

func (*BasketBalance) XXX_Merge

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

func (*BasketBalance) XXX_Size

func (m *BasketBalance) XXX_Size() int

func (*BasketBalance) XXX_Unmarshal

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

type BasketBalanceInfo

type BasketBalanceInfo struct {
	// batch_denom is the denom of the credit batch
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// balance is the amount of ecocredits held in the basket
	Balance string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
}

BasketBalanceInfo is the human-readable basket balance information.

func (*BasketBalanceInfo) Descriptor

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

func (*BasketBalanceInfo) GetBalance

func (m *BasketBalanceInfo) GetBalance() string

func (*BasketBalanceInfo) GetBatchDenom

func (m *BasketBalanceInfo) GetBatchDenom() string

func (*BasketBalanceInfo) Marshal

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

func (*BasketBalanceInfo) MarshalTo

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

func (*BasketBalanceInfo) MarshalToSizedBuffer

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

func (*BasketBalanceInfo) ProtoMessage

func (*BasketBalanceInfo) ProtoMessage()

func (*BasketBalanceInfo) Reset

func (m *BasketBalanceInfo) Reset()

func (*BasketBalanceInfo) Size

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

func (*BasketBalanceInfo) String

func (m *BasketBalanceInfo) String() string

func (*BasketBalanceInfo) Unmarshal

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

func (*BasketBalanceInfo) XXX_DiscardUnknown

func (m *BasketBalanceInfo) XXX_DiscardUnknown()

func (*BasketBalanceInfo) XXX_Marshal

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

func (*BasketBalanceInfo) XXX_Merge

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

func (*BasketBalanceInfo) XXX_Size

func (m *BasketBalanceInfo) XXX_Size() int

func (*BasketBalanceInfo) XXX_Unmarshal

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

type BasketClass

type BasketClass struct {
	// basket_id is the ID of the basket
	BasketId uint64 `protobuf:"varint,1,opt,name=basket_id,json=basketId,proto3" json:"basket_id,omitempty"`
	// class_id is the id of the credit class that is allowed to be deposited in
	// the basket
	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
}

BasketClass describes a credit class that can be deposited in a basket.

func (*BasketClass) Descriptor

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

func (*BasketClass) GetBasketId

func (m *BasketClass) GetBasketId() uint64

func (*BasketClass) GetClassId

func (m *BasketClass) GetClassId() string

func (*BasketClass) Marshal

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

func (*BasketClass) MarshalTo

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

func (*BasketClass) MarshalToSizedBuffer

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

func (*BasketClass) ProtoMessage

func (*BasketClass) ProtoMessage()

func (*BasketClass) Reset

func (m *BasketClass) Reset()

func (*BasketClass) Size

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

func (*BasketClass) String

func (m *BasketClass) String() string

func (*BasketClass) Unmarshal

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

func (*BasketClass) XXX_DiscardUnknown

func (m *BasketClass) XXX_DiscardUnknown()

func (*BasketClass) XXX_Marshal

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

func (*BasketClass) XXX_Merge

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

func (*BasketClass) XXX_Size

func (m *BasketClass) XXX_Size() int

func (*BasketClass) XXX_Unmarshal

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

type BasketCredit

type BasketCredit struct {
	// batch_denom is the unique ID of the credit batch.
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// amount is the number of credits being put into or taken out of the basket.
	// Decimal values are acceptable within the precision of the corresponding
	//  credit type for this batch.
	Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
}

BasketCredit represents the information for a credit batch inside a basket.

func (*BasketCredit) Descriptor

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

func (*BasketCredit) GetAmount

func (m *BasketCredit) GetAmount() string

func (*BasketCredit) GetBatchDenom

func (m *BasketCredit) GetBatchDenom() string

func (*BasketCredit) Marshal

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

func (*BasketCredit) MarshalTo

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

func (*BasketCredit) MarshalToSizedBuffer

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

func (*BasketCredit) ProtoMessage

func (*BasketCredit) ProtoMessage()

func (*BasketCredit) Reset

func (m *BasketCredit) Reset()

func (*BasketCredit) Size

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

func (*BasketCredit) String

func (m *BasketCredit) String() string

func (*BasketCredit) Unmarshal

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

func (*BasketCredit) XXX_DiscardUnknown

func (m *BasketCredit) XXX_DiscardUnknown()

func (*BasketCredit) XXX_Marshal

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

func (*BasketCredit) XXX_Merge

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

func (*BasketCredit) XXX_Size

func (m *BasketCredit) XXX_Size() int

func (*BasketCredit) XXX_Unmarshal

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

type BasketInfo

type BasketInfo struct {
	// basket_denom is the basket bank denom.
	BasketDenom string `protobuf:"bytes,1,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// name is the unique name of the basket specified in MsgCreate. Basket
	// names must be unique across all credit types and choices of exponent
	// above and beyond the uniqueness constraint on basket_denom.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// disable_auto_retire indicates whether or not the credits will be retired
	// upon withdraw from the basket.
	DisableAutoRetire bool `protobuf:"varint,3,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// credit_type_abbrev is the abbreviation of the credit type this basket is
	// able to hold.
	CreditTypeAbbrev string `protobuf:"bytes,4,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"`
	// date_criteria is the date criteria for batches admitted to the basket.
	DateCriteria *DateCriteria `protobuf:"bytes,5,opt,name=date_criteria,json=dateCriteria,proto3" json:"date_criteria,omitempty"`
	// exponent is the exponent for converting credits to/from basket tokens.
	Exponent uint32 `protobuf:"varint,6,opt,name=exponent,proto3" json:"exponent,omitempty"`
	// curator is the address of the basket curator who is able to change certain
	// basket settings.
	Curator string `protobuf:"bytes,7,opt,name=curator,proto3" json:"curator,omitempty"`
}

BasketInfo is the human-readable basket information.

func (*BasketInfo) Descriptor

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

func (*BasketInfo) GetBasketDenom

func (m *BasketInfo) GetBasketDenom() string

func (*BasketInfo) GetCreditTypeAbbrev

func (m *BasketInfo) GetCreditTypeAbbrev() string

func (*BasketInfo) GetCurator

func (m *BasketInfo) GetCurator() string

func (*BasketInfo) GetDateCriteria

func (m *BasketInfo) GetDateCriteria() *DateCriteria

func (*BasketInfo) GetDisableAutoRetire

func (m *BasketInfo) GetDisableAutoRetire() bool

func (*BasketInfo) GetExponent

func (m *BasketInfo) GetExponent() uint32

func (*BasketInfo) GetName

func (m *BasketInfo) GetName() string

func (*BasketInfo) Marshal

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

func (*BasketInfo) MarshalTo

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

func (*BasketInfo) MarshalToSizedBuffer

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

func (*BasketInfo) ProtoMessage

func (*BasketInfo) ProtoMessage()

func (*BasketInfo) Reset

func (m *BasketInfo) Reset()

func (*BasketInfo) Size

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

func (*BasketInfo) String

func (m *BasketInfo) String() string

func (*BasketInfo) Unmarshal

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

func (*BasketInfo) XXX_DiscardUnknown

func (m *BasketInfo) XXX_DiscardUnknown()

func (*BasketInfo) XXX_Marshal

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

func (*BasketInfo) XXX_Merge

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

func (*BasketInfo) XXX_Size

func (m *BasketInfo) XXX_Size() int

func (*BasketInfo) XXX_Unmarshal

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

type DateCriteria

type DateCriteria struct {
	// min_start_date (optional) is the earliest start date for batches of credits
	// allowed into the basket. At most only one of `start_date_window`,
	// `min_start_date`, and `years_in_the_past` can be set for a basket.
	MinStartDate *types.Timestamp `protobuf:"bytes,1,opt,name=min_start_date,json=minStartDate,proto3" json:"min_start_date,omitempty"`
	// start_date_window (optional) is a duration of time measured into the past
	// which sets a cutoff for batch start dates when adding new credits to the
	// basket. Based on the current block timestamp, credits whose start date is
	// before `block_timestamp - start_date_window` will not be allowed into the
	// basket. At most only one of `start_date_window`, `min_start_date`, and
	// `years_in_the_past` can be set for a basket.
	StartDateWindow *types.Duration `protobuf:"bytes,2,opt,name=start_date_window,json=startDateWindow,proto3" json:"start_date_window,omitempty"`
	// years_in_the_past (optional) is the number of years into the past which
	// sets a cutoff for the batch start dates when adding new credits to the
	// basket. Based on the current block timestamp, credits whose start date year
	// is less than `block_timestamp_year - years_in_the_past` will not be allowed
	// into the basket. At most only one of `start_date_window`, `min_start_date`,
	// and `years_in_the_past` can be set for a basket.
	//
	// Since Revision 1
	YearsInThePast uint32 `protobuf:"varint,3,opt,name=years_in_the_past,json=yearsInThePast,proto3" json:"years_in_the_past,omitempty"`
}

DateCriteria represents the information for credit acceptance in a basket. At most, only one of the values should be set.

func (*DateCriteria) Descriptor

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

func (*DateCriteria) GetMinStartDate

func (m *DateCriteria) GetMinStartDate() *types.Timestamp

func (*DateCriteria) GetStartDateWindow

func (m *DateCriteria) GetStartDateWindow() *types.Duration

func (*DateCriteria) GetYearsInThePast

func (m *DateCriteria) GetYearsInThePast() uint32

func (*DateCriteria) Marshal

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

func (*DateCriteria) MarshalTo

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

func (*DateCriteria) MarshalToSizedBuffer

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

func (*DateCriteria) ProtoMessage

func (*DateCriteria) ProtoMessage()

func (*DateCriteria) Reset

func (m *DateCriteria) Reset()

func (*DateCriteria) Size

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

func (*DateCriteria) String

func (m *DateCriteria) String() string

func (*DateCriteria) ToApi

func (d *DateCriteria) ToApi() *api.DateCriteria

ToApi converts to pulsar based data structure

func (*DateCriteria) Unmarshal

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

func (*DateCriteria) Validate

func (d *DateCriteria) Validate() error

Validate validates DateCriteria, ensuring only one field is set, minimum start date is after 1900-01-01, start date window is at least one day, and years in the past is at least one year

func (*DateCriteria) XXX_DiscardUnknown

func (m *DateCriteria) XXX_DiscardUnknown()

func (*DateCriteria) XXX_Marshal

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

func (*DateCriteria) XXX_Merge

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

func (*DateCriteria) XXX_Size

func (m *DateCriteria) XXX_Size() int

func (*DateCriteria) XXX_Unmarshal

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

type EventCreate

type EventCreate struct {
	// basket_denom is the basket bank denom.
	BasketDenom string `protobuf:"bytes,1,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// curator is the address of the basket curator who is able to change certain
	// basket settings.
	//
	// Deprecated (Since Revision 1): This field is still populated and will be
	// removed in the next version.
	Curator string `protobuf:"bytes,2,opt,name=curator,proto3" json:"curator,omitempty"` // Deprecated: Do not use.
}

EventCreate is an event emitted when a basket is created.

func (*EventCreate) Descriptor

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

func (*EventCreate) GetBasketDenom

func (m *EventCreate) GetBasketDenom() string

func (*EventCreate) GetCurator deprecated

func (m *EventCreate) GetCurator() string

Deprecated: Do not use.

func (*EventCreate) Marshal

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

func (*EventCreate) MarshalTo

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

func (*EventCreate) MarshalToSizedBuffer

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

func (*EventCreate) ProtoMessage

func (*EventCreate) ProtoMessage()

func (*EventCreate) Reset

func (m *EventCreate) Reset()

func (*EventCreate) Size

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

func (*EventCreate) String

func (m *EventCreate) String() string

func (*EventCreate) Unmarshal

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

func (*EventCreate) XXX_DiscardUnknown

func (m *EventCreate) XXX_DiscardUnknown()

func (*EventCreate) XXX_Marshal

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

func (*EventCreate) XXX_Merge

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

func (*EventCreate) XXX_Size

func (m *EventCreate) XXX_Size() int

func (*EventCreate) XXX_Unmarshal

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

type EventPut

type EventPut struct {
	// owner is the owner of the credits put into the basket.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// basket_denom is the basket bank denom that the credits were added to.
	BasketDenom string `protobuf:"bytes,2,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// credits are the credits that were added to the basket.
	//
	// Deprecated (Since Revision 1): This field is still populated and will be
	// removed in the next version.
	Credits []*BasketCredit `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"` // Deprecated: Do not use.
	// amount is the integer number of basket tokens converted from credits.
	//
	// Deprecated (Since Revision 1): This field is still populated and will be
	// removed in the next version.
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` // Deprecated: Do not use.
}

EventPut is an event emitted when credits are put into a basket in return for basket tokens.

func (*EventPut) Descriptor

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

func (*EventPut) GetAmount deprecated

func (m *EventPut) GetAmount() string

Deprecated: Do not use.

func (*EventPut) GetBasketDenom

func (m *EventPut) GetBasketDenom() string

func (*EventPut) GetCredits deprecated

func (m *EventPut) GetCredits() []*BasketCredit

Deprecated: Do not use.

func (*EventPut) GetOwner

func (m *EventPut) GetOwner() string

func (*EventPut) Marshal

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

func (*EventPut) MarshalTo

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

func (*EventPut) MarshalToSizedBuffer

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

func (*EventPut) ProtoMessage

func (*EventPut) ProtoMessage()

func (*EventPut) Reset

func (m *EventPut) Reset()

func (*EventPut) Size

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

func (*EventPut) String

func (m *EventPut) String() string

func (*EventPut) Unmarshal

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

func (*EventPut) XXX_DiscardUnknown

func (m *EventPut) XXX_DiscardUnknown()

func (*EventPut) XXX_Marshal

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

func (*EventPut) XXX_Merge

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

func (*EventPut) XXX_Size

func (m *EventPut) XXX_Size() int

func (*EventPut) XXX_Unmarshal

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

type EventTake

type EventTake struct {
	// owner is the owner of the credits taken from the basket.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// basket_denom is the basket bank denom that credits were taken from.
	BasketDenom string `protobuf:"bytes,2,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// credits are the credits that were taken from the basket.
	//
	// Deprecated (Since Revision 1): This field is still populated and will be
	// removed in the next version.
	Credits []*BasketCredit `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"` // Deprecated: Do not use.
	// amount is the integer number of basket tokens converted to credits.
	//
	// Deprecated (Since Revision 1): This field is still populated and will be
	// removed in the next version.
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` // Deprecated: Do not use.
}

EventTake is an event emitted when credits are taken from a basket starting from the oldest credits first.

func (*EventTake) Descriptor

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

func (*EventTake) GetAmount deprecated

func (m *EventTake) GetAmount() string

Deprecated: Do not use.

func (*EventTake) GetBasketDenom

func (m *EventTake) GetBasketDenom() string

func (*EventTake) GetCredits deprecated

func (m *EventTake) GetCredits() []*BasketCredit

Deprecated: Do not use.

func (*EventTake) GetOwner

func (m *EventTake) GetOwner() string

func (*EventTake) Marshal

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

func (*EventTake) MarshalTo

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

func (*EventTake) MarshalToSizedBuffer

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

func (*EventTake) ProtoMessage

func (*EventTake) ProtoMessage()

func (*EventTake) Reset

func (m *EventTake) Reset()

func (*EventTake) Size

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

func (*EventTake) String

func (m *EventTake) String() string

func (*EventTake) Unmarshal

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

func (*EventTake) XXX_DiscardUnknown

func (m *EventTake) XXX_DiscardUnknown()

func (*EventTake) XXX_Marshal

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

func (*EventTake) XXX_Merge

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

func (*EventTake) XXX_Size

func (m *EventTake) XXX_Size() int

func (*EventTake) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// Create creates a bank denom which wraps credits.
	Create(ctx context.Context, in *MsgCreate, opts ...grpc.CallOption) (*MsgCreateResponse, error)
	// Put puts credits into a basket in return for basket tokens.
	Put(ctx context.Context, in *MsgPut, opts ...grpc.CallOption) (*MsgPutResponse, error)
	// Take takes credits from a basket starting from the oldest
	// credits first.
	Take(ctx context.Context, in *MsgTake, opts ...grpc.CallOption) (*MsgTakeResponse, 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 MsgCreate

type MsgCreate struct {
	// curator is the address of the basket curator who is able to change certain
	// basket settings.
	Curator string `protobuf:"bytes,1,opt,name=curator,proto3" json:"curator,omitempty"`
	// name will be used to together with prefix to create a bank denom for this
	// basket token. It can be between 3-8 alphanumeric characters, with the
	// first character being alphabetic.
	//
	// The bank denom will be formed from name and credit type with the format
	// `eco.<prefix><credit_type_abbrev>.<name>` where prefix is the prefix of
	// a standard SI unit derived from credit type precision.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// description is a human-readable description of the basket denom that should
	// be at most 256 characters.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Deprecated (Since Revision 1): This field is no longer used and will be
	// removed in the next version. The value of credit type precision is always
	// used as the exponent when determining the prefix for basket denom, defining
	// bank denom metadata, and converting credits to/from basket tokens.
	Exponent uint32 `protobuf:"varint,4,opt,name=exponent,proto3" json:"exponent,omitempty"` // Deprecated: Do not use.
	// disable_auto_retire allows auto-retirement to be disabled.
	// The credits will be auto-retired if disable_auto_retire is
	// false unless the credits were previously put into the basket by the
	// address picking them from the basket, in which case they will remain
	// tradable.
	DisableAutoRetire bool `protobuf:"varint,5,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// credit_type_abbrev is the abbreviation of the credit type this basket is
	// able to hold.
	CreditTypeAbbrev string `protobuf:"bytes,6,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"`
	// allowed_classes are the credit classes allowed to be put in the basket
	AllowedClasses []string `protobuf:"bytes,7,rep,name=allowed_classes,json=allowedClasses,proto3" json:"allowed_classes,omitempty"`
	// date_criteria is the date criteria for batches admitted to the basket.
	// At most, only one of the fields in the date_criteria should be set.
	DateCriteria *DateCriteria `protobuf:"bytes,8,opt,name=date_criteria,json=dateCriteria,proto3" json:"date_criteria,omitempty"`
	// fee is the basket creation fee. A fee is not required if the list of fees
	// in Params.basket_fee is empty. The provided fee must be one of the fees
	// listed in Params.basket_fee. The provided amount can be greater than
	// or equal to the listed amount but the basket creator will only be charged
	// the listed amount (i.e. the minimum amount).
	//
	// Note (Since Revision 1): Although this field supports a list of fees, the
	// basket creator must provide no more than one fee (i.e. one Coin in a list
	// of Coins). Providing more than one fee will fail basic message validation.
	// This field will be updated to a single fee rather than a list of fees in
	// the next version to reflect these requirements.
	Fee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,9,rep,name=fee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee"`
}

MsgCreateBasket is the Msg/CreateBasket request type.

func (*MsgCreate) Descriptor

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

func (*MsgCreate) GetAllowedClasses

func (m *MsgCreate) GetAllowedClasses() []string

func (*MsgCreate) GetCreditTypeAbbrev

func (m *MsgCreate) GetCreditTypeAbbrev() string

func (*MsgCreate) GetCurator

func (m *MsgCreate) GetCurator() string

func (*MsgCreate) GetDateCriteria

func (m *MsgCreate) GetDateCriteria() *DateCriteria

func (*MsgCreate) GetDescription

func (m *MsgCreate) GetDescription() string

func (*MsgCreate) GetDisableAutoRetire

func (m *MsgCreate) GetDisableAutoRetire() bool

func (*MsgCreate) GetExponent deprecated

func (m *MsgCreate) GetExponent() uint32

Deprecated: Do not use.

func (*MsgCreate) GetFee

func (*MsgCreate) GetName

func (m *MsgCreate) GetName() string

func (MsgCreate) GetSignBytes

func (m MsgCreate) GetSignBytes() []byte

GetSignBytes implements LegacyMsg.

func (MsgCreate) GetSigners

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

GetSigners returns the expected signers for MsgCreate.

func (*MsgCreate) Marshal

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

func (*MsgCreate) MarshalTo

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

func (*MsgCreate) MarshalToSizedBuffer

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

func (*MsgCreate) ProtoMessage

func (*MsgCreate) ProtoMessage()

func (*MsgCreate) Reset

func (m *MsgCreate) Reset()

func (MsgCreate) Route

func (m MsgCreate) Route() string

Route implements LegacyMsg.

func (*MsgCreate) Size

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

func (*MsgCreate) String

func (m *MsgCreate) String() string

func (MsgCreate) Type

func (m MsgCreate) Type() string

Type implements LegacyMsg.

func (*MsgCreate) Unmarshal

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

func (MsgCreate) ValidateBasic

func (m MsgCreate) ValidateBasic() error

ValidateBasic does a stateless sanity check on the provided data.

func (*MsgCreate) XXX_DiscardUnknown

func (m *MsgCreate) XXX_DiscardUnknown()

func (*MsgCreate) XXX_Marshal

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

func (*MsgCreate) XXX_Merge

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

func (*MsgCreate) XXX_Size

func (m *MsgCreate) XXX_Size() int

func (*MsgCreate) XXX_Unmarshal

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

type MsgCreateResponse

type MsgCreateResponse struct {
	// basket_denom is the unique denomination ID of the newly created basket.
	BasketDenom string `protobuf:"bytes,1,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
}

MsgCreateBasketResponse is the Msg/CreateBasket response type.

func (*MsgCreateResponse) Descriptor

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

func (*MsgCreateResponse) GetBasketDenom

func (m *MsgCreateResponse) GetBasketDenom() string

func (*MsgCreateResponse) Marshal

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

func (*MsgCreateResponse) MarshalTo

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

func (*MsgCreateResponse) MarshalToSizedBuffer

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

func (*MsgCreateResponse) ProtoMessage

func (*MsgCreateResponse) ProtoMessage()

func (*MsgCreateResponse) Reset

func (m *MsgCreateResponse) Reset()

func (*MsgCreateResponse) Size

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

func (*MsgCreateResponse) String

func (m *MsgCreateResponse) String() string

func (*MsgCreateResponse) Unmarshal

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

func (*MsgCreateResponse) XXX_DiscardUnknown

func (m *MsgCreateResponse) XXX_DiscardUnknown()

func (*MsgCreateResponse) XXX_Marshal

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

func (*MsgCreateResponse) XXX_Merge

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

func (*MsgCreateResponse) XXX_Size

func (m *MsgCreateResponse) XXX_Size() int

func (*MsgCreateResponse) XXX_Unmarshal

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

type MsgPut

type MsgPut struct {
	// owner is the owner of credits being put into the basket.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// basket_denom is the basket denom to add credits to.
	BasketDenom string `protobuf:"bytes,2,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// credits are credits to add to the basket. If they do not match the basket's
	// admission criteria the operation will fail. If there are any "dust" credits
	// left over when converting credits to basket tokens, these credits will
	// not be converted to basket tokens and instead remain with the owner.
	Credits []*BasketCredit `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"`
}

MsgAddToBasket is the Msg/AddToBasket request type.

func (*MsgPut) Descriptor

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

func (*MsgPut) GetBasketDenom

func (m *MsgPut) GetBasketDenom() string

func (*MsgPut) GetCredits

func (m *MsgPut) GetCredits() []*BasketCredit

func (*MsgPut) GetOwner

func (m *MsgPut) GetOwner() string

func (MsgPut) GetSignBytes

func (m MsgPut) GetSignBytes() []byte

GetSignBytes implements LegacyMsg.

func (MsgPut) GetSigners

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

GetSigners returns the expected signers for MsgCreate.

func (*MsgPut) Marshal

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

func (*MsgPut) MarshalTo

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

func (*MsgPut) MarshalToSizedBuffer

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

func (*MsgPut) ProtoMessage

func (*MsgPut) ProtoMessage()

func (*MsgPut) Reset

func (m *MsgPut) Reset()

func (MsgPut) Route

func (m MsgPut) Route() string

Route implements LegacyMsg.

func (*MsgPut) Size

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

func (*MsgPut) String

func (m *MsgPut) String() string

func (MsgPut) Type

func (m MsgPut) Type() string

Type implements LegacyMsg.

func (*MsgPut) Unmarshal

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

func (MsgPut) ValidateBasic

func (m MsgPut) ValidateBasic() error

ValidateBasic does a stateless sanity check on the provided data.

func (*MsgPut) XXX_DiscardUnknown

func (m *MsgPut) XXX_DiscardUnknown()

func (*MsgPut) XXX_Marshal

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

func (*MsgPut) XXX_Merge

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

func (*MsgPut) XXX_Size

func (m *MsgPut) XXX_Size() int

func (*MsgPut) XXX_Unmarshal

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

type MsgPutResponse

type MsgPutResponse struct {
	// amount_received is the integer amount of basket tokens received.
	AmountReceived string `protobuf:"bytes,1,opt,name=amount_received,json=amountReceived,proto3" json:"amount_received,omitempty"`
}

MsgAddToBasketResponse is the Msg/AddToBasket response type.

func (*MsgPutResponse) Descriptor

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

func (*MsgPutResponse) GetAmountReceived

func (m *MsgPutResponse) GetAmountReceived() string

func (*MsgPutResponse) Marshal

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

func (*MsgPutResponse) MarshalTo

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

func (*MsgPutResponse) MarshalToSizedBuffer

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

func (*MsgPutResponse) ProtoMessage

func (*MsgPutResponse) ProtoMessage()

func (*MsgPutResponse) Reset

func (m *MsgPutResponse) Reset()

func (*MsgPutResponse) Size

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

func (*MsgPutResponse) String

func (m *MsgPutResponse) String() string

func (*MsgPutResponse) Unmarshal

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

func (*MsgPutResponse) XXX_DiscardUnknown

func (m *MsgPutResponse) XXX_DiscardUnknown()

func (*MsgPutResponse) XXX_Marshal

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

func (*MsgPutResponse) XXX_Merge

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

func (*MsgPutResponse) XXX_Size

func (m *MsgPutResponse) XXX_Size() int

func (*MsgPutResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// Create creates a bank denom which wraps credits.
	Create(context.Context, *MsgCreate) (*MsgCreateResponse, error)
	// Put puts credits into a basket in return for basket tokens.
	Put(context.Context, *MsgPut) (*MsgPutResponse, error)
	// Take takes credits from a basket starting from the oldest
	// credits first.
	Take(context.Context, *MsgTake) (*MsgTakeResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTake

type MsgTake struct {
	// owner is the owner of the basket tokens.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// basket_denom is the basket bank denom to take credits from.
	BasketDenom string `protobuf:"bytes,2,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// amount is the integer number of basket tokens to convert into credits.
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// retirement_location is the optional retirement jurisdiction for the
	// credits which will be used only if retire_on_take is true for this basket.
	//
	// Deprecated (Since Revision 1): This field will be removed in the next
	// version in favor of retirement_jurisdiction. Only one of these need to be
	// set and retirement_jurisdiction will be used if both are set.
	RetirementLocation string `protobuf:"bytes,4,opt,name=retirement_location,json=retirementLocation,proto3" json:"retirement_location,omitempty"` // Deprecated: Do not use.
	// retire_on_take is a boolean that dictates whether the ecocredits
	// received in exchange for the basket tokens will be received as
	// retired or tradable credits.
	RetireOnTake bool `protobuf:"varint,5,opt,name=retire_on_take,json=retireOnTake,proto3" json:"retire_on_take,omitempty"`
	// retirement_jurisdiction is the optional retirement jurisdiction for the
	// credits which will be used only if retire_on_take is true for this basket.
	//
	// Since Revision 1
	RetirementJurisdiction string `` /* 127-byte string literal not displayed */
}

MsgTakeFromBasket is the Msg/TakeFromBasket request type.

func (*MsgTake) Descriptor

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

func (*MsgTake) GetAmount

func (m *MsgTake) GetAmount() string

func (*MsgTake) GetBasketDenom

func (m *MsgTake) GetBasketDenom() string

func (*MsgTake) GetOwner

func (m *MsgTake) GetOwner() string

func (*MsgTake) GetRetireOnTake

func (m *MsgTake) GetRetireOnTake() bool

func (*MsgTake) GetRetirementJurisdiction

func (m *MsgTake) GetRetirementJurisdiction() string

func (*MsgTake) GetRetirementLocation deprecated

func (m *MsgTake) GetRetirementLocation() string

Deprecated: Do not use.

func (MsgTake) GetSignBytes

func (m MsgTake) GetSignBytes() []byte

GetSignBytes implements LegacyMsg.

func (MsgTake) GetSigners

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

GetSigners returns the expected signers for MsgTake.

func (*MsgTake) Marshal

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

func (*MsgTake) MarshalTo

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

func (*MsgTake) MarshalToSizedBuffer

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

func (*MsgTake) ProtoMessage

func (*MsgTake) ProtoMessage()

func (*MsgTake) Reset

func (m *MsgTake) Reset()

func (MsgTake) Route

func (m MsgTake) Route() string

Route implements LegacyMsg.

func (*MsgTake) Size

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

func (*MsgTake) String

func (m *MsgTake) String() string

func (MsgTake) Type

func (m MsgTake) Type() string

Type implements LegacyMsg.

func (*MsgTake) Unmarshal

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

func (MsgTake) ValidateBasic

func (m MsgTake) ValidateBasic() error

ValidateBasic does a stateless sanity check on the provided data.

func (*MsgTake) XXX_DiscardUnknown

func (m *MsgTake) XXX_DiscardUnknown()

func (*MsgTake) XXX_Marshal

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

func (*MsgTake) XXX_Merge

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

func (*MsgTake) XXX_Size

func (m *MsgTake) XXX_Size() int

func (*MsgTake) XXX_Unmarshal

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

type MsgTakeResponse

type MsgTakeResponse struct {
	// credits are the credits taken out of the basket.
	Credits []*BasketCredit `protobuf:"bytes,1,rep,name=credits,proto3" json:"credits,omitempty"`
}

MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type.

func (*MsgTakeResponse) Descriptor

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

func (*MsgTakeResponse) GetCredits

func (m *MsgTakeResponse) GetCredits() []*BasketCredit

func (*MsgTakeResponse) Marshal

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

func (*MsgTakeResponse) MarshalTo

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

func (*MsgTakeResponse) MarshalToSizedBuffer

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

func (*MsgTakeResponse) ProtoMessage

func (*MsgTakeResponse) ProtoMessage()

func (*MsgTakeResponse) Reset

func (m *MsgTakeResponse) Reset()

func (*MsgTakeResponse) Size

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

func (*MsgTakeResponse) String

func (m *MsgTakeResponse) String() string

func (*MsgTakeResponse) Unmarshal

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

func (*MsgTakeResponse) XXX_DiscardUnknown

func (m *MsgTakeResponse) XXX_DiscardUnknown()

func (*MsgTakeResponse) XXX_Marshal

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

func (*MsgTakeResponse) XXX_Merge

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

func (*MsgTakeResponse) XXX_Size

func (m *MsgTakeResponse) XXX_Size() int

func (*MsgTakeResponse) XXX_Unmarshal

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

type QueryBasketBalanceRequest

type QueryBasketBalanceRequest struct {
	// basket_denom is the denom of the basket.
	BasketDenom string `protobuf:"bytes,1,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// batch_denom is the denom of the credit batch.
	BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
}

QueryBasketBalanceRequest is the Query/BasketBalance request type.

func (*QueryBasketBalanceRequest) Descriptor

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

func (*QueryBasketBalanceRequest) GetBasketDenom

func (m *QueryBasketBalanceRequest) GetBasketDenom() string

func (*QueryBasketBalanceRequest) GetBatchDenom

func (m *QueryBasketBalanceRequest) GetBatchDenom() string

func (*QueryBasketBalanceRequest) Marshal

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

func (*QueryBasketBalanceRequest) MarshalTo

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

func (*QueryBasketBalanceRequest) MarshalToSizedBuffer

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

func (*QueryBasketBalanceRequest) ProtoMessage

func (*QueryBasketBalanceRequest) ProtoMessage()

func (*QueryBasketBalanceRequest) Reset

func (m *QueryBasketBalanceRequest) Reset()

func (*QueryBasketBalanceRequest) Size

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

func (*QueryBasketBalanceRequest) String

func (m *QueryBasketBalanceRequest) String() string

func (*QueryBasketBalanceRequest) Unmarshal

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

func (*QueryBasketBalanceRequest) XXX_DiscardUnknown

func (m *QueryBasketBalanceRequest) XXX_DiscardUnknown()

func (*QueryBasketBalanceRequest) XXX_Marshal

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

func (*QueryBasketBalanceRequest) XXX_Merge

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

func (*QueryBasketBalanceRequest) XXX_Size

func (m *QueryBasketBalanceRequest) XXX_Size() int

func (*QueryBasketBalanceRequest) XXX_Unmarshal

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

type QueryBasketBalanceResponse

type QueryBasketBalanceResponse struct {
	// balance is the amount of the queried credit batch in the basket.
	Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
}

QueryBasketBalanceResponse is the Query/BasketBalance response type.

func (*QueryBasketBalanceResponse) Descriptor

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

func (*QueryBasketBalanceResponse) GetBalance

func (m *QueryBasketBalanceResponse) GetBalance() string

func (*QueryBasketBalanceResponse) Marshal

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

func (*QueryBasketBalanceResponse) MarshalTo

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

func (*QueryBasketBalanceResponse) MarshalToSizedBuffer

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

func (*QueryBasketBalanceResponse) ProtoMessage

func (*QueryBasketBalanceResponse) ProtoMessage()

func (*QueryBasketBalanceResponse) Reset

func (m *QueryBasketBalanceResponse) Reset()

func (*QueryBasketBalanceResponse) Size

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

func (*QueryBasketBalanceResponse) String

func (m *QueryBasketBalanceResponse) String() string

func (*QueryBasketBalanceResponse) Unmarshal

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

func (*QueryBasketBalanceResponse) XXX_DiscardUnknown

func (m *QueryBasketBalanceResponse) XXX_DiscardUnknown()

func (*QueryBasketBalanceResponse) XXX_Marshal

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

func (*QueryBasketBalanceResponse) XXX_Merge

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

func (*QueryBasketBalanceResponse) XXX_Size

func (m *QueryBasketBalanceResponse) XXX_Size() int

func (*QueryBasketBalanceResponse) XXX_Unmarshal

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

type QueryBasketBalancesRequest

type QueryBasketBalancesRequest struct {
	// basket_denom is the denom of the basket.
	BasketDenom string `protobuf:"bytes,1,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryBasketBalancesRequest is the Query/BasketBalances request type.

func (*QueryBasketBalancesRequest) Descriptor

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

func (*QueryBasketBalancesRequest) GetBasketDenom

func (m *QueryBasketBalancesRequest) GetBasketDenom() string

func (*QueryBasketBalancesRequest) GetPagination

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

func (*QueryBasketBalancesRequest) Marshal

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

func (*QueryBasketBalancesRequest) MarshalTo

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

func (*QueryBasketBalancesRequest) MarshalToSizedBuffer

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

func (*QueryBasketBalancesRequest) ProtoMessage

func (*QueryBasketBalancesRequest) ProtoMessage()

func (*QueryBasketBalancesRequest) Reset

func (m *QueryBasketBalancesRequest) Reset()

func (*QueryBasketBalancesRequest) Size

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

func (*QueryBasketBalancesRequest) String

func (m *QueryBasketBalancesRequest) String() string

func (*QueryBasketBalancesRequest) Unmarshal

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

func (*QueryBasketBalancesRequest) XXX_DiscardUnknown

func (m *QueryBasketBalancesRequest) XXX_DiscardUnknown()

func (*QueryBasketBalancesRequest) XXX_Marshal

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

func (*QueryBasketBalancesRequest) XXX_Merge

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

func (*QueryBasketBalancesRequest) XXX_Size

func (m *QueryBasketBalancesRequest) XXX_Size() int

func (*QueryBasketBalancesRequest) XXX_Unmarshal

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

type QueryBasketBalancesResponse

type QueryBasketBalancesResponse struct {
	// balances is a list of credit balances in the basket.
	//
	// Deprecated (Since Revision 1): This field is still populated using
	// BasketBalance but will be updated to use BasketBalanceInfo in the next
	// version. In the meantime baskets_info is available using BasketBalanceInfo.
	Balances []*BasketBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` // Deprecated: Do not use.
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// balances_info is a list of credit balances in the basket.
	//
	// Since Revision 1
	BalancesInfo []*BasketBalanceInfo `protobuf:"bytes,3,rep,name=balances_info,json=balancesInfo,proto3" json:"balances_info,omitempty"`
}

QueryBasketBalancesResponse is the Query/BasketBalances response type.

func (*QueryBasketBalancesResponse) Descriptor

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

func (*QueryBasketBalancesResponse) GetBalances deprecated

func (m *QueryBasketBalancesResponse) GetBalances() []*BasketBalance

Deprecated: Do not use.

func (*QueryBasketBalancesResponse) GetBalancesInfo

func (m *QueryBasketBalancesResponse) GetBalancesInfo() []*BasketBalanceInfo

func (*QueryBasketBalancesResponse) GetPagination

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

func (*QueryBasketBalancesResponse) Marshal

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

func (*QueryBasketBalancesResponse) MarshalTo

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

func (*QueryBasketBalancesResponse) MarshalToSizedBuffer

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

func (*QueryBasketBalancesResponse) ProtoMessage

func (*QueryBasketBalancesResponse) ProtoMessage()

func (*QueryBasketBalancesResponse) Reset

func (m *QueryBasketBalancesResponse) Reset()

func (*QueryBasketBalancesResponse) Size

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

func (*QueryBasketBalancesResponse) String

func (m *QueryBasketBalancesResponse) String() string

func (*QueryBasketBalancesResponse) Unmarshal

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

func (*QueryBasketBalancesResponse) XXX_DiscardUnknown

func (m *QueryBasketBalancesResponse) XXX_DiscardUnknown()

func (*QueryBasketBalancesResponse) XXX_Marshal

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

func (*QueryBasketBalancesResponse) XXX_Merge

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

func (*QueryBasketBalancesResponse) XXX_Size

func (m *QueryBasketBalancesResponse) XXX_Size() int

func (*QueryBasketBalancesResponse) XXX_Unmarshal

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

type QueryBasketRequest

type QueryBasketRequest struct {
	// basket_denom represents the denom of the basket to query.
	BasketDenom string `protobuf:"bytes,1,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
}

QueryBasketRequest is the Query/Basket request type.

func (*QueryBasketRequest) Descriptor

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

func (*QueryBasketRequest) GetBasketDenom

func (m *QueryBasketRequest) GetBasketDenom() string

func (*QueryBasketRequest) Marshal

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

func (*QueryBasketRequest) MarshalTo

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

func (*QueryBasketRequest) MarshalToSizedBuffer

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

func (*QueryBasketRequest) ProtoMessage

func (*QueryBasketRequest) ProtoMessage()

func (*QueryBasketRequest) Reset

func (m *QueryBasketRequest) Reset()

func (*QueryBasketRequest) Size

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

func (*QueryBasketRequest) String

func (m *QueryBasketRequest) String() string

func (*QueryBasketRequest) Unmarshal

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

func (*QueryBasketRequest) XXX_DiscardUnknown

func (m *QueryBasketRequest) XXX_DiscardUnknown()

func (*QueryBasketRequest) XXX_Marshal

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

func (*QueryBasketRequest) XXX_Merge

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

func (*QueryBasketRequest) XXX_Size

func (m *QueryBasketRequest) XXX_Size() int

func (*QueryBasketRequest) XXX_Unmarshal

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

type QueryBasketResponse

type QueryBasketResponse struct {
	// basket is the queried basket.
	//
	// Deprecated (Since Revision 1): This field is still populated using Basket
	// but will be updated to use BasketInfo in the next version. In the meantime
	// basket_info is available using BasketInfo.
	Basket *Basket `protobuf:"bytes,1,opt,name=basket,proto3" json:"basket,omitempty"` // Deprecated: Do not use.
	// classes are the credit classes that can be deposited in the basket.
	Classes []string `protobuf:"bytes,2,rep,name=classes,proto3" json:"classes,omitempty"`
	// basket_info is the queried basket.
	//
	// Since Revision 1
	BasketInfo *BasketInfo `protobuf:"bytes,3,opt,name=basket_info,json=basketInfo,proto3" json:"basket_info,omitempty"`
}

QueryBasketResponse is the Query/Basket response type.

func (*QueryBasketResponse) Descriptor

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

func (*QueryBasketResponse) GetBasket deprecated

func (m *QueryBasketResponse) GetBasket() *Basket

Deprecated: Do not use.

func (*QueryBasketResponse) GetBasketInfo

func (m *QueryBasketResponse) GetBasketInfo() *BasketInfo

func (*QueryBasketResponse) GetClasses

func (m *QueryBasketResponse) GetClasses() []string

func (*QueryBasketResponse) Marshal

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

func (*QueryBasketResponse) MarshalTo

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

func (*QueryBasketResponse) MarshalToSizedBuffer

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

func (*QueryBasketResponse) ProtoMessage

func (*QueryBasketResponse) ProtoMessage()

func (*QueryBasketResponse) Reset

func (m *QueryBasketResponse) Reset()

func (*QueryBasketResponse) Size

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

func (*QueryBasketResponse) String

func (m *QueryBasketResponse) String() string

func (*QueryBasketResponse) Unmarshal

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

func (*QueryBasketResponse) XXX_DiscardUnknown

func (m *QueryBasketResponse) XXX_DiscardUnknown()

func (*QueryBasketResponse) XXX_Marshal

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

func (*QueryBasketResponse) XXX_Merge

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

func (*QueryBasketResponse) XXX_Size

func (m *QueryBasketResponse) XXX_Size() int

func (*QueryBasketResponse) XXX_Unmarshal

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

type QueryBasketsRequest

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

QueryBasketsRequest is the Query/Baskets request type.

func (*QueryBasketsRequest) Descriptor

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

func (*QueryBasketsRequest) GetPagination

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

func (*QueryBasketsRequest) Marshal

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

func (*QueryBasketsRequest) MarshalTo

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

func (*QueryBasketsRequest) MarshalToSizedBuffer

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

func (*QueryBasketsRequest) ProtoMessage

func (*QueryBasketsRequest) ProtoMessage()

func (*QueryBasketsRequest) Reset

func (m *QueryBasketsRequest) Reset()

func (*QueryBasketsRequest) Size

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

func (*QueryBasketsRequest) String

func (m *QueryBasketsRequest) String() string

func (*QueryBasketsRequest) Unmarshal

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

func (*QueryBasketsRequest) XXX_DiscardUnknown

func (m *QueryBasketsRequest) XXX_DiscardUnknown()

func (*QueryBasketsRequest) XXX_Marshal

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

func (*QueryBasketsRequest) XXX_Merge

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

func (*QueryBasketsRequest) XXX_Size

func (m *QueryBasketsRequest) XXX_Size() int

func (*QueryBasketsRequest) XXX_Unmarshal

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

type QueryBasketsResponse

type QueryBasketsResponse struct {
	// baskets are the fetched baskets.
	//
	// Deprecated (Since Revision 1): This field is still populated using Basket
	// but will be updated to use BasketInfo in the next version. In the meantime
	// baskets_info is available using BasketInfo.
	Baskets []*Basket `protobuf:"bytes,1,rep,name=baskets,proto3" json:"baskets,omitempty"` // Deprecated: Do not use.
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// baskets_info are the fetched baskets.
	//
	// Since Revision 1
	BasketsInfo []*BasketInfo `protobuf:"bytes,3,rep,name=baskets_info,json=basketsInfo,proto3" json:"baskets_info,omitempty"`
}

QueryBasketsResponse is the Query/Baskets response type.

func (*QueryBasketsResponse) Descriptor

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

func (*QueryBasketsResponse) GetBaskets deprecated

func (m *QueryBasketsResponse) GetBaskets() []*Basket

Deprecated: Do not use.

func (*QueryBasketsResponse) GetBasketsInfo

func (m *QueryBasketsResponse) GetBasketsInfo() []*BasketInfo

func (*QueryBasketsResponse) GetPagination

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

func (*QueryBasketsResponse) Marshal

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

func (*QueryBasketsResponse) MarshalTo

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

func (*QueryBasketsResponse) MarshalToSizedBuffer

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

func (*QueryBasketsResponse) ProtoMessage

func (*QueryBasketsResponse) ProtoMessage()

func (*QueryBasketsResponse) Reset

func (m *QueryBasketsResponse) Reset()

func (*QueryBasketsResponse) Size

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

func (*QueryBasketsResponse) String

func (m *QueryBasketsResponse) String() string

func (*QueryBasketsResponse) Unmarshal

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

func (*QueryBasketsResponse) XXX_DiscardUnknown

func (m *QueryBasketsResponse) XXX_DiscardUnknown()

func (*QueryBasketsResponse) XXX_Marshal

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

func (*QueryBasketsResponse) XXX_Merge

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

func (*QueryBasketsResponse) XXX_Size

func (m *QueryBasketsResponse) XXX_Size() int

func (*QueryBasketsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Basket queries one basket by denom.
	Basket(ctx context.Context, in *QueryBasketRequest, opts ...grpc.CallOption) (*QueryBasketResponse, error)
	// Baskets lists all baskets in the ecocredit module.
	Baskets(ctx context.Context, in *QueryBasketsRequest, opts ...grpc.CallOption) (*QueryBasketsResponse, error)
	// BasketBalances lists the balance of each credit batch in the basket.
	BasketBalances(ctx context.Context, in *QueryBasketBalancesRequest, opts ...grpc.CallOption) (*QueryBasketBalancesResponse, error)
	// BasketBalance queries the balance of a specific credit batch in the basket.
	BasketBalance(ctx context.Context, in *QueryBasketBalanceRequest, opts ...grpc.CallOption) (*QueryBasketBalanceResponse, 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 QueryServer

type QueryServer interface {
	// Basket queries one basket by denom.
	Basket(context.Context, *QueryBasketRequest) (*QueryBasketResponse, error)
	// Baskets lists all baskets in the ecocredit module.
	Baskets(context.Context, *QueryBasketsRequest) (*QueryBasketsResponse, error)
	// BasketBalances lists the balance of each credit batch in the basket.
	BasketBalances(context.Context, *QueryBasketBalancesRequest) (*QueryBasketBalancesResponse, error)
	// BasketBalance queries the balance of a specific credit batch in the basket.
	BasketBalance(context.Context, *QueryBasketBalanceRequest) (*QueryBasketBalanceResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Create

func (*UnimplementedMsgServer) Put

func (*UnimplementedMsgServer) Take

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Basket

func (*UnimplementedQueryServer) BasketBalance

func (*UnimplementedQueryServer) BasketBalances

func (*UnimplementedQueryServer) Baskets

Jump to

Keyboard shortcuts

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