basketv1

package
v1.1.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: 22 Imported by: 9

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var File_regen_ecocredit_basket_v1_events_proto protoreflect.FileDescriptor
View Source
var File_regen_ecocredit_basket_v1_query_proto protoreflect.FileDescriptor
View Source
var File_regen_ecocredit_basket_v1_state_proto protoreflect.FileDescriptor
View Source
var File_regen_ecocredit_basket_v1_tx_proto protoreflect.FileDescriptor
View Source
var File_regen_ecocredit_basket_v1_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "regen.ecocredit.basket.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Create",
			Handler:    _Msg_Create_Handler,
		},
		{
			MethodName: "Put",
			Handler:    _Msg_Put_Handler,
		},
		{
			MethodName: "Take",
			Handler:    _Msg_Take_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "regen/ecocredit/basket/v1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "regen.ecocredit.basket.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Basket",
			Handler:    _Query_Basket_Handler,
		},
		{
			MethodName: "Baskets",
			Handler:    _Query_Baskets_Handler,
		},
		{
			MethodName: "BasketBalances",
			Handler:    _Query_BasketBalances_Handler,
		},
		{
			MethodName: "BasketBalance",
			Handler:    _Query_BasketBalance_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "regen/ecocredit/basket/v1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer added in v0.2.0

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

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.
	//
	// Deprecated: Do not use.
	Exponent uint32 `protobuf:"varint,7,opt,name=exponent,proto3" json:"exponent,omitempty"`
	// 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"`
	// contains filtered or unexported fields
}

Basket represents a basket in state.

func (*Basket) Descriptor deprecated

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

Deprecated: Use Basket.ProtoReflect.Descriptor instead.

func (*Basket) GetBasketDenom

func (x *Basket) GetBasketDenom() string

func (*Basket) GetCreditTypeAbbrev added in v0.4.0

func (x *Basket) GetCreditTypeAbbrev() string

func (*Basket) GetCurator added in v1.0.0

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

func (*Basket) GetDateCriteria added in v0.2.0

func (x *Basket) GetDateCriteria() *DateCriteria

func (*Basket) GetDisableAutoRetire

func (x *Basket) GetDisableAutoRetire() bool

func (*Basket) GetExponent deprecated

func (x *Basket) GetExponent() uint32

Deprecated: Do not use.

func (*Basket) GetId

func (x *Basket) GetId() uint64

func (*Basket) GetName added in v0.5.0

func (x *Basket) GetName() string

func (*Basket) ProtoMessage

func (*Basket) ProtoMessage()

func (*Basket) ProtoReflect

func (x *Basket) ProtoReflect() protoreflect.Message

func (*Basket) Reset

func (x *Basket) Reset()

func (*Basket) String

func (x *Basket) String() string

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 *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=batch_start_date,json=batchStartDate,proto3" json:"batch_start_date,omitempty"`
	// contains filtered or unexported fields
}

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

func (*BasketBalance) Descriptor deprecated

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

Deprecated: Use BasketBalance.ProtoReflect.Descriptor instead.

func (*BasketBalance) GetBalance

func (x *BasketBalance) GetBalance() string

func (*BasketBalance) GetBasketId

func (x *BasketBalance) GetBasketId() uint64

func (*BasketBalance) GetBatchDenom

func (x *BasketBalance) GetBatchDenom() string

func (*BasketBalance) GetBatchStartDate

func (x *BasketBalance) GetBatchStartDate() *timestamppb.Timestamp

func (*BasketBalance) ProtoMessage

func (*BasketBalance) ProtoMessage()

func (*BasketBalance) ProtoReflect

func (x *BasketBalance) ProtoReflect() protoreflect.Message

func (*BasketBalance) Reset

func (x *BasketBalance) Reset()

func (*BasketBalance) String

func (x *BasketBalance) String() string

type BasketBalanceBasketIdBatchDenomIndexKey

type BasketBalanceBasketIdBatchDenomIndexKey struct {
	// contains filtered or unexported fields
}

func (BasketBalanceBasketIdBatchDenomIndexKey) WithBasketId

func (BasketBalanceBasketIdBatchDenomIndexKey) WithBasketIdBatchDenom

func (this BasketBalanceBasketIdBatchDenomIndexKey) WithBasketIdBatchDenom(basket_id uint64, batch_denom string) BasketBalanceBasketIdBatchDenomIndexKey

type BasketBalanceBasketIdBatchStartDateIndexKey added in v0.3.0

type BasketBalanceBasketIdBatchStartDateIndexKey struct {
	// contains filtered or unexported fields
}

func (BasketBalanceBasketIdBatchStartDateIndexKey) WithBasketId added in v0.3.0

func (BasketBalanceBasketIdBatchStartDateIndexKey) WithBasketIdBatchStartDate added in v0.3.0

func (this BasketBalanceBasketIdBatchStartDateIndexKey) WithBasketIdBatchStartDate(basket_id uint64, batch_start_date *timestamppb.Timestamp) BasketBalanceBasketIdBatchStartDateIndexKey

type BasketBalanceIndexKey

type BasketBalanceIndexKey interface {
	// contains filtered or unexported methods
}

type BasketBalanceInfo added in v1.0.0

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"`
	// contains filtered or unexported fields
}

BasketBalanceInfo is the human-readable basket balance information.

func (*BasketBalanceInfo) Descriptor deprecated added in v1.0.0

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

Deprecated: Use BasketBalanceInfo.ProtoReflect.Descriptor instead.

func (*BasketBalanceInfo) GetBalance added in v1.0.0

func (x *BasketBalanceInfo) GetBalance() string

func (*BasketBalanceInfo) GetBatchDenom added in v1.0.0

func (x *BasketBalanceInfo) GetBatchDenom() string

func (*BasketBalanceInfo) ProtoMessage added in v1.0.0

func (*BasketBalanceInfo) ProtoMessage()

func (*BasketBalanceInfo) ProtoReflect added in v1.0.0

func (x *BasketBalanceInfo) ProtoReflect() protoreflect.Message

func (*BasketBalanceInfo) Reset added in v1.0.0

func (x *BasketBalanceInfo) Reset()

func (*BasketBalanceInfo) String added in v1.0.0

func (x *BasketBalanceInfo) String() string

type BasketBalanceIterator

type BasketBalanceIterator struct {
	ormtable.Iterator
}

func (BasketBalanceIterator) Value

type BasketBalancePrimaryKey

type BasketBalancePrimaryKey = BasketBalanceBasketIdBatchDenomIndexKey

primary key starting index..

type BasketBalanceTable added in v1.0.0

type BasketBalanceTable interface {
	Insert(ctx context.Context, basketBalance *BasketBalance) error
	Update(ctx context.Context, basketBalance *BasketBalance) error
	Save(ctx context.Context, basketBalance *BasketBalance) error
	Delete(ctx context.Context, basketBalance *BasketBalance) error
	Has(ctx context.Context, basket_id uint64, batch_denom string) (found bool, err error)
	// Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	Get(ctx context.Context, basket_id uint64, batch_denom string) (*BasketBalance, error)
	List(ctx context.Context, prefixKey BasketBalanceIndexKey, opts ...ormlist.Option) (BasketBalanceIterator, error)
	ListRange(ctx context.Context, from, to BasketBalanceIndexKey, opts ...ormlist.Option) (BasketBalanceIterator, error)
	DeleteBy(ctx context.Context, prefixKey BasketBalanceIndexKey) error
	DeleteRange(ctx context.Context, from, to BasketBalanceIndexKey) error
	// contains filtered or unexported methods
}

func NewBasketBalanceTable added in v1.0.0

func NewBasketBalanceTable(db ormtable.Schema) (BasketBalanceTable, error)

type BasketBasketDenomIndexKey

type BasketBasketDenomIndexKey struct {
	// contains filtered or unexported fields
}

func (BasketBasketDenomIndexKey) WithBasketDenom

func (this BasketBasketDenomIndexKey) WithBasketDenom(basket_denom string) BasketBasketDenomIndexKey

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"`
	// contains filtered or unexported fields
}

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

func (*BasketClass) Descriptor deprecated

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

Deprecated: Use BasketClass.ProtoReflect.Descriptor instead.

func (*BasketClass) GetBasketId

func (x *BasketClass) GetBasketId() uint64

func (*BasketClass) GetClassId

func (x *BasketClass) GetClassId() string

func (*BasketClass) ProtoMessage

func (*BasketClass) ProtoMessage()

func (*BasketClass) ProtoReflect

func (x *BasketClass) ProtoReflect() protoreflect.Message

func (*BasketClass) Reset

func (x *BasketClass) Reset()

func (*BasketClass) String

func (x *BasketClass) String() string

type BasketClassBasketIdClassIdIndexKey

type BasketClassBasketIdClassIdIndexKey struct {
	// contains filtered or unexported fields
}

func (BasketClassBasketIdClassIdIndexKey) WithBasketId

func (BasketClassBasketIdClassIdIndexKey) WithBasketIdClassId

func (this BasketClassBasketIdClassIdIndexKey) WithBasketIdClassId(basket_id uint64, class_id string) BasketClassBasketIdClassIdIndexKey

type BasketClassIndexKey

type BasketClassIndexKey interface {
	// contains filtered or unexported methods
}

type BasketClassIterator

type BasketClassIterator struct {
	ormtable.Iterator
}

func (BasketClassIterator) Value

func (i BasketClassIterator) Value() (*BasketClass, error)

type BasketClassPrimaryKey

type BasketClassPrimaryKey = BasketClassBasketIdClassIdIndexKey

primary key starting index..

type BasketClassTable added in v1.0.0

type BasketClassTable interface {
	Insert(ctx context.Context, basketClass *BasketClass) error
	Update(ctx context.Context, basketClass *BasketClass) error
	Save(ctx context.Context, basketClass *BasketClass) error
	Delete(ctx context.Context, basketClass *BasketClass) error
	Has(ctx context.Context, basket_id uint64, class_id string) (found bool, err error)
	// Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	Get(ctx context.Context, basket_id uint64, class_id string) (*BasketClass, error)
	List(ctx context.Context, prefixKey BasketClassIndexKey, opts ...ormlist.Option) (BasketClassIterator, error)
	ListRange(ctx context.Context, from, to BasketClassIndexKey, opts ...ormlist.Option) (BasketClassIterator, error)
	DeleteBy(ctx context.Context, prefixKey BasketClassIndexKey) error
	DeleteRange(ctx context.Context, from, to BasketClassIndexKey) error
	// contains filtered or unexported methods
}

func NewBasketClassTable added in v1.0.0

func NewBasketClassTable(db ormtable.Schema) (BasketClassTable, 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"`
	// contains filtered or unexported fields
}

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

func (*BasketCredit) Descriptor deprecated

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

Deprecated: Use BasketCredit.ProtoReflect.Descriptor instead.

func (*BasketCredit) GetAmount

func (x *BasketCredit) GetAmount() string

func (*BasketCredit) GetBatchDenom

func (x *BasketCredit) GetBatchDenom() string

func (*BasketCredit) ProtoMessage

func (*BasketCredit) ProtoMessage()

func (*BasketCredit) ProtoReflect

func (x *BasketCredit) ProtoReflect() protoreflect.Message

func (*BasketCredit) Reset

func (x *BasketCredit) Reset()

func (*BasketCredit) String

func (x *BasketCredit) String() string

type BasketIdIndexKey

type BasketIdIndexKey struct {
	// contains filtered or unexported fields
}

func (BasketIdIndexKey) WithId

func (this BasketIdIndexKey) WithId(id uint64) BasketIdIndexKey

type BasketIndexKey

type BasketIndexKey interface {
	// contains filtered or unexported methods
}

type BasketInfo added in v1.0.0

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"`
	// contains filtered or unexported fields
}

BasketInfo is the human-readable basket information.

func (*BasketInfo) Descriptor deprecated added in v1.0.0

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

Deprecated: Use BasketInfo.ProtoReflect.Descriptor instead.

func (*BasketInfo) GetBasketDenom added in v1.0.0

func (x *BasketInfo) GetBasketDenom() string

func (*BasketInfo) GetCreditTypeAbbrev added in v1.0.0

func (x *BasketInfo) GetCreditTypeAbbrev() string

func (*BasketInfo) GetCurator added in v1.0.0

func (x *BasketInfo) GetCurator() string

func (*BasketInfo) GetDateCriteria added in v1.0.0

func (x *BasketInfo) GetDateCriteria() *DateCriteria

func (*BasketInfo) GetDisableAutoRetire added in v1.0.0

func (x *BasketInfo) GetDisableAutoRetire() bool

func (*BasketInfo) GetExponent added in v1.0.0

func (x *BasketInfo) GetExponent() uint32

func (*BasketInfo) GetName added in v1.0.0

func (x *BasketInfo) GetName() string

func (*BasketInfo) ProtoMessage added in v1.0.0

func (*BasketInfo) ProtoMessage()

func (*BasketInfo) ProtoReflect added in v1.0.0

func (x *BasketInfo) ProtoReflect() protoreflect.Message

func (*BasketInfo) Reset added in v1.0.0

func (x *BasketInfo) Reset()

func (*BasketInfo) String added in v1.0.0

func (x *BasketInfo) String() string

type BasketIterator

type BasketIterator struct {
	ormtable.Iterator
}

func (BasketIterator) Value

func (i BasketIterator) Value() (*Basket, error)

type BasketNameIndexKey added in v0.5.0

type BasketNameIndexKey struct {
	// contains filtered or unexported fields
}

func (BasketNameIndexKey) WithName added in v0.5.0

func (this BasketNameIndexKey) WithName(name string) BasketNameIndexKey

type BasketPrimaryKey

type BasketPrimaryKey = BasketIdIndexKey

primary key starting index..

type BasketTable added in v1.0.0

type BasketTable interface {
	Insert(ctx context.Context, basket *Basket) error
	InsertReturningID(ctx context.Context, basket *Basket) (uint64, error)
	Update(ctx context.Context, basket *Basket) error
	Save(ctx context.Context, basket *Basket) error
	Delete(ctx context.Context, basket *Basket) error
	Has(ctx context.Context, id uint64) (found bool, err error)
	// Get returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	Get(ctx context.Context, id uint64) (*Basket, error)
	HasByBasketDenom(ctx context.Context, basket_denom string) (found bool, err error)
	// GetByBasketDenom returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	GetByBasketDenom(ctx context.Context, basket_denom string) (*Basket, error)
	HasByName(ctx context.Context, name string) (found bool, err error)
	// GetByName returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	GetByName(ctx context.Context, name string) (*Basket, error)
	List(ctx context.Context, prefixKey BasketIndexKey, opts ...ormlist.Option) (BasketIterator, error)
	ListRange(ctx context.Context, from, to BasketIndexKey, opts ...ormlist.Option) (BasketIterator, error)
	DeleteBy(ctx context.Context, prefixKey BasketIndexKey) error
	DeleteRange(ctx context.Context, from, to BasketIndexKey) error
	// contains filtered or unexported methods
}

func NewBasketTable added in v1.0.0

func NewBasketTable(db ormtable.Schema) (BasketTable, error)

type DateCriteria added in v0.2.0

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 *timestamppb.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 *durationpb.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"`
	// contains filtered or unexported fields
}

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

func (*DateCriteria) Descriptor deprecated added in v0.2.0

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

Deprecated: Use DateCriteria.ProtoReflect.Descriptor instead.

func (*DateCriteria) GetMinStartDate added in v0.2.0

func (x *DateCriteria) GetMinStartDate() *timestamppb.Timestamp

func (*DateCriteria) GetStartDateWindow added in v0.2.0

func (x *DateCriteria) GetStartDateWindow() *durationpb.Duration

func (*DateCriteria) GetYearsInThePast added in v1.0.0

func (x *DateCriteria) GetYearsInThePast() uint32

func (*DateCriteria) ProtoMessage added in v0.2.0

func (*DateCriteria) ProtoMessage()

func (*DateCriteria) ProtoReflect added in v0.2.0

func (x *DateCriteria) ProtoReflect() protoreflect.Message

func (*DateCriteria) Reset added in v0.2.0

func (x *DateCriteria) Reset()

func (*DateCriteria) String added in v0.2.0

func (x *DateCriteria) String() string

type EventCreate added in v0.2.0

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.
	//
	// Deprecated: Do not use.
	Curator string `protobuf:"bytes,2,opt,name=curator,proto3" json:"curator,omitempty"`
	// contains filtered or unexported fields
}

EventCreate is an event emitted when a basket is created.

func (*EventCreate) Descriptor deprecated added in v0.2.0

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

Deprecated: Use EventCreate.ProtoReflect.Descriptor instead.

func (*EventCreate) GetBasketDenom added in v0.2.0

func (x *EventCreate) GetBasketDenom() string

func (*EventCreate) GetCurator deprecated added in v0.2.0

func (x *EventCreate) GetCurator() string

Deprecated: Do not use.

func (*EventCreate) ProtoMessage added in v0.2.0

func (*EventCreate) ProtoMessage()

func (*EventCreate) ProtoReflect added in v0.2.0

func (x *EventCreate) ProtoReflect() protoreflect.Message

func (*EventCreate) Reset added in v0.2.0

func (x *EventCreate) Reset()

func (*EventCreate) String added in v0.2.0

func (x *EventCreate) String() string

type EventPut added in v0.2.0

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.
	//
	// Deprecated: Do not use.
	Credits []*BasketCredit `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"`
	// 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.
	//
	// Deprecated: Do not use.
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

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

func (*EventPut) Descriptor deprecated added in v0.2.0

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

Deprecated: Use EventPut.ProtoReflect.Descriptor instead.

func (*EventPut) GetAmount deprecated added in v0.2.0

func (x *EventPut) GetAmount() string

Deprecated: Do not use.

func (*EventPut) GetBasketDenom added in v0.2.0

func (x *EventPut) GetBasketDenom() string

func (*EventPut) GetCredits deprecated added in v0.2.0

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

Deprecated: Do not use.

func (*EventPut) GetOwner added in v0.2.0

func (x *EventPut) GetOwner() string

func (*EventPut) ProtoMessage added in v0.2.0

func (*EventPut) ProtoMessage()

func (*EventPut) ProtoReflect added in v0.2.0

func (x *EventPut) ProtoReflect() protoreflect.Message

func (*EventPut) Reset added in v0.2.0

func (x *EventPut) Reset()

func (*EventPut) String added in v0.2.0

func (x *EventPut) String() string

type EventTake added in v0.2.0

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.
	//
	// Deprecated: Do not use.
	Credits []*BasketCredit `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"`
	// 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.
	//
	// Deprecated: Do not use.
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

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

func (*EventTake) Descriptor deprecated added in v0.2.0

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

Deprecated: Use EventTake.ProtoReflect.Descriptor instead.

func (*EventTake) GetAmount deprecated added in v0.2.0

func (x *EventTake) GetAmount() string

Deprecated: Do not use.

func (*EventTake) GetBasketDenom added in v0.2.0

func (x *EventTake) GetBasketDenom() string

func (*EventTake) GetCredits deprecated added in v0.2.0

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

Deprecated: Do not use.

func (*EventTake) GetOwner added in v0.2.0

func (x *EventTake) GetOwner() string

func (*EventTake) ProtoMessage added in v0.2.0

func (*EventTake) ProtoMessage()

func (*EventTake) ProtoReflect added in v0.2.0

func (x *EventTake) ProtoReflect() protoreflect.Message

func (*EventTake) Reset added in v0.2.0

func (x *EventTake) Reset()

func (*EventTake) String added in v0.2.0

func (x *EventTake) String() string

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) 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.
	//
	// Deprecated: Do not use.
	Exponent uint32 `protobuf:"varint,4,opt,name=exponent,proto3" json:"exponent,omitempty"`
	// 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 []*v1beta1.Coin `protobuf:"bytes,9,rep,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateBasket is the Msg/CreateBasket request type.

func (*MsgCreate) Descriptor deprecated

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

Deprecated: Use MsgCreate.ProtoReflect.Descriptor instead.

func (*MsgCreate) GetAllowedClasses

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

func (*MsgCreate) GetCreditTypeAbbrev added in v0.4.0

func (x *MsgCreate) GetCreditTypeAbbrev() string

func (*MsgCreate) GetCurator

func (x *MsgCreate) GetCurator() string

func (*MsgCreate) GetDateCriteria added in v0.2.0

func (x *MsgCreate) GetDateCriteria() *DateCriteria

func (*MsgCreate) GetDescription added in v0.4.0

func (x *MsgCreate) GetDescription() string

func (*MsgCreate) GetDisableAutoRetire

func (x *MsgCreate) GetDisableAutoRetire() bool

func (*MsgCreate) GetExponent deprecated

func (x *MsgCreate) GetExponent() uint32

Deprecated: Do not use.

func (*MsgCreate) GetFee

func (x *MsgCreate) GetFee() []*v1beta1.Coin

func (*MsgCreate) GetName

func (x *MsgCreate) GetName() string

func (*MsgCreate) ProtoMessage

func (*MsgCreate) ProtoMessage()

func (*MsgCreate) ProtoReflect

func (x *MsgCreate) ProtoReflect() protoreflect.Message

func (*MsgCreate) Reset

func (x *MsgCreate) Reset()

func (*MsgCreate) String

func (x *MsgCreate) String() string

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"`
	// contains filtered or unexported fields
}

MsgCreateBasketResponse is the Msg/CreateBasket response type.

func (*MsgCreateResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateResponse) GetBasketDenom

func (x *MsgCreateResponse) GetBasketDenom() string

func (*MsgCreateResponse) ProtoMessage

func (*MsgCreateResponse) ProtoMessage()

func (*MsgCreateResponse) ProtoReflect

func (x *MsgCreateResponse) ProtoReflect() protoreflect.Message

func (*MsgCreateResponse) Reset

func (x *MsgCreateResponse) Reset()

func (*MsgCreateResponse) String

func (x *MsgCreateResponse) String() string

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"`
	// contains filtered or unexported fields
}

MsgAddToBasket is the Msg/AddToBasket request type.

func (*MsgPut) Descriptor deprecated

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

Deprecated: Use MsgPut.ProtoReflect.Descriptor instead.

func (*MsgPut) GetBasketDenom

func (x *MsgPut) GetBasketDenom() string

func (*MsgPut) GetCredits

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

func (*MsgPut) GetOwner

func (x *MsgPut) GetOwner() string

func (*MsgPut) ProtoMessage

func (*MsgPut) ProtoMessage()

func (*MsgPut) ProtoReflect

func (x *MsgPut) ProtoReflect() protoreflect.Message

func (*MsgPut) Reset

func (x *MsgPut) Reset()

func (*MsgPut) String

func (x *MsgPut) String() string

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"`
	// contains filtered or unexported fields
}

MsgAddToBasketResponse is the Msg/AddToBasket response type.

func (*MsgPutResponse) Descriptor deprecated

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

Deprecated: Use MsgPutResponse.ProtoReflect.Descriptor instead.

func (*MsgPutResponse) GetAmountReceived

func (x *MsgPutResponse) GetAmountReceived() string

func (*MsgPutResponse) ProtoMessage

func (*MsgPutResponse) ProtoMessage()

func (*MsgPutResponse) ProtoReflect

func (x *MsgPutResponse) ProtoReflect() protoreflect.Message

func (*MsgPutResponse) Reset

func (x *MsgPutResponse) Reset()

func (*MsgPutResponse) String

func (x *MsgPutResponse) String() string

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)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

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.
	//
	// Deprecated: Do not use.
	RetirementLocation string `protobuf:"bytes,4,opt,name=retirement_location,json=retirementLocation,proto3" json:"retirement_location,omitempty"`
	// 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 */
	// contains filtered or unexported fields
}

MsgTakeFromBasket is the Msg/TakeFromBasket request type.

func (*MsgTake) Descriptor deprecated

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

Deprecated: Use MsgTake.ProtoReflect.Descriptor instead.

func (*MsgTake) GetAmount

func (x *MsgTake) GetAmount() string

func (*MsgTake) GetBasketDenom

func (x *MsgTake) GetBasketDenom() string

func (*MsgTake) GetOwner

func (x *MsgTake) GetOwner() string

func (*MsgTake) GetRetireOnTake

func (x *MsgTake) GetRetireOnTake() bool

func (*MsgTake) GetRetirementJurisdiction added in v1.0.0

func (x *MsgTake) GetRetirementJurisdiction() string

func (*MsgTake) GetRetirementLocation deprecated

func (x *MsgTake) GetRetirementLocation() string

Deprecated: Do not use.

func (*MsgTake) ProtoMessage

func (*MsgTake) ProtoMessage()

func (*MsgTake) ProtoReflect

func (x *MsgTake) ProtoReflect() protoreflect.Message

func (*MsgTake) Reset

func (x *MsgTake) Reset()

func (*MsgTake) String

func (x *MsgTake) String() string

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"`
	// contains filtered or unexported fields
}

MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type.

func (*MsgTakeResponse) Descriptor deprecated

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

Deprecated: Use MsgTakeResponse.ProtoReflect.Descriptor instead.

func (*MsgTakeResponse) GetCredits

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

func (*MsgTakeResponse) ProtoMessage

func (*MsgTakeResponse) ProtoMessage()

func (*MsgTakeResponse) ProtoReflect

func (x *MsgTakeResponse) ProtoReflect() protoreflect.Message

func (*MsgTakeResponse) Reset

func (x *MsgTakeResponse) Reset()

func (*MsgTakeResponse) String

func (x *MsgTakeResponse) String() string

type QueryBasketBalanceRequest added in v0.2.0

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"`
	// contains filtered or unexported fields
}

QueryBasketBalanceRequest is the Query/BasketBalance request type.

func (*QueryBasketBalanceRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use QueryBasketBalanceRequest.ProtoReflect.Descriptor instead.

func (*QueryBasketBalanceRequest) GetBasketDenom added in v0.2.0

func (x *QueryBasketBalanceRequest) GetBasketDenom() string

func (*QueryBasketBalanceRequest) GetBatchDenom added in v0.2.0

func (x *QueryBasketBalanceRequest) GetBatchDenom() string

func (*QueryBasketBalanceRequest) ProtoMessage added in v0.2.0

func (*QueryBasketBalanceRequest) ProtoMessage()

func (*QueryBasketBalanceRequest) ProtoReflect added in v0.2.0

func (*QueryBasketBalanceRequest) Reset added in v0.2.0

func (x *QueryBasketBalanceRequest) Reset()

func (*QueryBasketBalanceRequest) String added in v0.2.0

func (x *QueryBasketBalanceRequest) String() string

type QueryBasketBalanceResponse added in v0.2.0

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"`
	// contains filtered or unexported fields
}

QueryBasketBalanceResponse is the Query/BasketBalance response type.

func (*QueryBasketBalanceResponse) Descriptor deprecated added in v0.2.0

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

Deprecated: Use QueryBasketBalanceResponse.ProtoReflect.Descriptor instead.

func (*QueryBasketBalanceResponse) GetBalance added in v0.2.0

func (x *QueryBasketBalanceResponse) GetBalance() string

func (*QueryBasketBalanceResponse) ProtoMessage added in v0.2.0

func (*QueryBasketBalanceResponse) ProtoMessage()

func (*QueryBasketBalanceResponse) ProtoReflect added in v0.2.0

func (*QueryBasketBalanceResponse) Reset added in v0.2.0

func (x *QueryBasketBalanceResponse) Reset()

func (*QueryBasketBalanceResponse) String added in v0.2.0

func (x *QueryBasketBalanceResponse) String() string

type QueryBasketBalancesRequest added in v0.2.0

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 *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryBasketBalancesRequest is the Query/BasketBalances request type.

func (*QueryBasketBalancesRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use QueryBasketBalancesRequest.ProtoReflect.Descriptor instead.

func (*QueryBasketBalancesRequest) GetBasketDenom added in v0.2.0

func (x *QueryBasketBalancesRequest) GetBasketDenom() string

func (*QueryBasketBalancesRequest) GetPagination added in v0.2.0

func (x *QueryBasketBalancesRequest) GetPagination() *v1beta1.PageRequest

func (*QueryBasketBalancesRequest) ProtoMessage added in v0.2.0

func (*QueryBasketBalancesRequest) ProtoMessage()

func (*QueryBasketBalancesRequest) ProtoReflect added in v0.2.0

func (*QueryBasketBalancesRequest) Reset added in v0.2.0

func (x *QueryBasketBalancesRequest) Reset()

func (*QueryBasketBalancesRequest) String added in v0.2.0

func (x *QueryBasketBalancesRequest) String() string

type QueryBasketBalancesResponse added in v0.2.0

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.
	//
	// Deprecated: Do not use.
	Balances []*BasketBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.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"`
	// contains filtered or unexported fields
}

QueryBasketBalancesResponse is the Query/BasketBalances response type.

func (*QueryBasketBalancesResponse) Descriptor deprecated added in v0.2.0

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

Deprecated: Use QueryBasketBalancesResponse.ProtoReflect.Descriptor instead.

func (*QueryBasketBalancesResponse) GetBalances deprecated added in v0.2.0

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

Deprecated: Do not use.

func (*QueryBasketBalancesResponse) GetBalancesInfo added in v1.0.0

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

func (*QueryBasketBalancesResponse) GetPagination added in v0.2.0

func (x *QueryBasketBalancesResponse) GetPagination() *v1beta1.PageResponse

func (*QueryBasketBalancesResponse) ProtoMessage added in v0.2.0

func (*QueryBasketBalancesResponse) ProtoMessage()

func (*QueryBasketBalancesResponse) ProtoReflect added in v0.2.0

func (*QueryBasketBalancesResponse) Reset added in v0.2.0

func (x *QueryBasketBalancesResponse) Reset()

func (*QueryBasketBalancesResponse) String added in v0.2.0

func (x *QueryBasketBalancesResponse) String() string

type QueryBasketRequest added in v0.2.0

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"`
	// contains filtered or unexported fields
}

QueryBasketRequest is the Query/Basket request type.

func (*QueryBasketRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use QueryBasketRequest.ProtoReflect.Descriptor instead.

func (*QueryBasketRequest) GetBasketDenom added in v0.2.0

func (x *QueryBasketRequest) GetBasketDenom() string

func (*QueryBasketRequest) ProtoMessage added in v0.2.0

func (*QueryBasketRequest) ProtoMessage()

func (*QueryBasketRequest) ProtoReflect added in v0.2.0

func (x *QueryBasketRequest) ProtoReflect() protoreflect.Message

func (*QueryBasketRequest) Reset added in v0.2.0

func (x *QueryBasketRequest) Reset()

func (*QueryBasketRequest) String added in v0.2.0

func (x *QueryBasketRequest) String() string

type QueryBasketResponse added in v0.2.0

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.
	//
	// Deprecated: Do not use.
	Basket *Basket `protobuf:"bytes,1,opt,name=basket,proto3" json:"basket,omitempty"`
	// 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"`
	// contains filtered or unexported fields
}

QueryBasketResponse is the Query/Basket response type.

func (*QueryBasketResponse) Descriptor deprecated added in v0.2.0

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

Deprecated: Use QueryBasketResponse.ProtoReflect.Descriptor instead.

func (*QueryBasketResponse) GetBasket deprecated added in v0.2.0

func (x *QueryBasketResponse) GetBasket() *Basket

Deprecated: Do not use.

func (*QueryBasketResponse) GetBasketInfo added in v1.0.0

func (x *QueryBasketResponse) GetBasketInfo() *BasketInfo

func (*QueryBasketResponse) GetClasses added in v0.7.0

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

func (*QueryBasketResponse) ProtoMessage added in v0.2.0

func (*QueryBasketResponse) ProtoMessage()

func (*QueryBasketResponse) ProtoReflect added in v0.2.0

func (x *QueryBasketResponse) ProtoReflect() protoreflect.Message

func (*QueryBasketResponse) Reset added in v0.2.0

func (x *QueryBasketResponse) Reset()

func (*QueryBasketResponse) String added in v0.2.0

func (x *QueryBasketResponse) String() string

type QueryBasketsRequest added in v0.2.0

type QueryBasketsRequest struct {

	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryBasketsRequest is the Query/Baskets request type.

func (*QueryBasketsRequest) Descriptor deprecated added in v0.2.0

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

Deprecated: Use QueryBasketsRequest.ProtoReflect.Descriptor instead.

func (*QueryBasketsRequest) GetPagination added in v0.2.0

func (x *QueryBasketsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryBasketsRequest) ProtoMessage added in v0.2.0

func (*QueryBasketsRequest) ProtoMessage()

func (*QueryBasketsRequest) ProtoReflect added in v0.2.0

func (x *QueryBasketsRequest) ProtoReflect() protoreflect.Message

func (*QueryBasketsRequest) Reset added in v0.2.0

func (x *QueryBasketsRequest) Reset()

func (*QueryBasketsRequest) String added in v0.2.0

func (x *QueryBasketsRequest) String() string

type QueryBasketsResponse added in v0.2.0

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.
	//
	// Deprecated: Do not use.
	Baskets []*Basket `protobuf:"bytes,1,rep,name=baskets,proto3" json:"baskets,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.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"`
	// contains filtered or unexported fields
}

QueryBasketsResponse is the Query/Baskets response type.

func (*QueryBasketsResponse) Descriptor deprecated added in v0.2.0

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

Deprecated: Use QueryBasketsResponse.ProtoReflect.Descriptor instead.

func (*QueryBasketsResponse) GetBaskets deprecated added in v0.2.0

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

Deprecated: Do not use.

func (*QueryBasketsResponse) GetBasketsInfo added in v1.0.0

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

func (*QueryBasketsResponse) GetPagination added in v0.2.0

func (x *QueryBasketsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryBasketsResponse) ProtoMessage added in v0.2.0

func (*QueryBasketsResponse) ProtoMessage()

func (*QueryBasketsResponse) ProtoReflect added in v0.2.0

func (x *QueryBasketsResponse) ProtoReflect() protoreflect.Message

func (*QueryBasketsResponse) Reset added in v0.2.0

func (x *QueryBasketsResponse) Reset()

func (*QueryBasketsResponse) String added in v0.2.0

func (x *QueryBasketsResponse) String() string

type QueryClient added in v0.2.0

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://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient added in v0.2.0

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryServer added in v0.2.0

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)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type StateStore

type StateStore interface {
	BasketTable() BasketTable
	BasketClassTable() BasketClassTable
	BasketBalanceTable() BasketBalanceTable
	// contains filtered or unexported methods
}

func NewStateStore

func NewStateStore(db ormtable.Schema) (StateStore, error)

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) Create

func (UnimplementedMsgServer) Put

func (UnimplementedMsgServer) Take

type UnimplementedQueryServer added in v0.2.0

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Basket added in v0.2.0

func (UnimplementedQueryServer) BasketBalance added in v0.2.0

func (UnimplementedQueryServer) BasketBalances added in v0.2.0

func (UnimplementedQueryServer) Baskets added in v0.2.0

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer added in v0.2.0

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

Jump to

Keyboard shortcuts

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