basketv1

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 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.
	BasketDenom string `protobuf:"bytes,2,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,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_name is the name of the credit type this basket is able to hold.
	CreditTypeName string `protobuf:"bytes,4,opt,name=credit_type_name,json=creditTypeName,proto3" json:"credit_type_name,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"`
	// 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) GetCreditTypeName

func (x *Basket) GetCreditTypeName() string

func (*Basket) GetDateCriteria added in v0.2.0

func (x *Basket) GetDateCriteria() *DateCriteria

func (*Basket) GetDisableAutoRetire

func (x *Basket) GetDisableAutoRetire() bool

func (*Basket) GetExponent

func (x *Basket) GetExponent() uint32

func (*Basket) GetId

func (x *Basket) GetId() uint64

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 BasketBalanceBatchStartDateIndexKey

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

func (BasketBalanceBatchStartDateIndexKey) WithBatchStartDate

type BasketBalanceIndexKey

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

type BasketBalanceIterator

type BasketBalanceIterator struct {
	ormtable.Iterator
}

func (BasketBalanceIterator) Value

type BasketBalancePrimaryKey

type BasketBalancePrimaryKey = BasketBalanceBasketIdBatchDenomIndexKey

primary key starting index..

type BasketBalanceStore

type BasketBalanceStore 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 NewBasketBalanceStore

func NewBasketBalanceStore(db ormtable.Schema) (BasketBalanceStore, 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 BasketClassStore

type BasketClassStore 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 NewBasketClassStore

func NewBasketClassStore(db ormtable.Schema) (BasketClassStore, 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 BasketIterator

type BasketIterator struct {
	ormtable.Iterator
}

func (BasketIterator) Value

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

type BasketPrimaryKey

type BasketPrimaryKey = BasketIdIndexKey

primary key starting index..

type BasketStore

type BasketStore 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)
	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 NewBasketStore

func NewBasketStore(db ormtable.Schema) (BasketStore, error)

type DateCriteria added in v0.2.0

type DateCriteria struct {

	// sum is the oneof representing the date criteria.
	//
	// Types that are assignable to Sum:
	//	*DateCriteria_MinStartDate
	//	*DateCriteria_StartDateWindow
	Sum isDateCriteria_Sum `protobuf_oneof:"sum"`
	// contains filtered or unexported fields
}

DateCriteria represents a basket credit batch date criteria.

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) GetSum added in v0.2.0

func (x *DateCriteria) GetSum() isDateCriteria_Sum

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 DateCriteria_MinStartDate added in v0.2.0

type DateCriteria_MinStartDate struct {
	// min_start_date is the earliest start date for batches of credits allowed
	// into the basket.
	MinStartDate *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=min_start_date,json=minStartDate,proto3,oneof"`
}

type DateCriteria_StartDateWindow added in v0.2.0

type DateCriteria_StartDateWindow struct {
	// start_date_window 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 - batch_date_window` will not be allowed into the basket.
	StartDateWindow *durationpb.Duration `protobuf:"bytes,2,opt,name=start_date_window,json=startDateWindow,proto3,oneof"`
}

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.
	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 added in v0.2.0

func (x *EventCreate) GetCurator() string

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.
	Credits []*BasketCredit `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"`
	// amount is the integer number of basket tokens converted from credits.
	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 added in v0.2.0

func (x *EventPut) GetAmount() string

func (*EventPut) GetBasketDenom added in v0.2.0

func (x *EventPut) GetBasketDenom() string

func (*EventPut) GetCredits added in v0.2.0

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

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.
	Credits []*BasketCredit `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"`
	// amount is the integer number of basket tokens converted to credits.
	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 added in v0.2.0

func (x *EventTake) GetAmount() string

func (*EventTake) GetBasketDenom added in v0.2.0

func (x *EventTake) GetBasketDenom() string

func (*EventTake) GetCredits added in v0.2.0

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

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 create a bank denom for this basket token.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// display_name will be used to create a bank Metadata display name for this
	// basket token.
	DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	// exponent is the exponent that will be used for converting credits to basket
	// tokens and for bank denom metadata. An exponent of 6 will mean that 10^6
	// units of a basket token will be issued for 1.0 credits and that
	// this should be displayed as one unit in user interfaces. The exponent
	// must be >= the precision of the credit type to minimize the need for
	// rounding (rounding may still be needed if the precision changes to be greater
	// than the exponent).
	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_name filters against credits from this credit type name.
	CreditTypeName string `protobuf:"bytes,6,opt,name=credit_type_name,json=creditTypeName,proto3" json:"credit_type_name,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.
	DateCriteria *DateCriteria `protobuf:"bytes,8,opt,name=date_criteria,json=dateCriteria,proto3" json:"date_criteria,omitempty"`
	// fee is the fee that the curator will pay to create the basket. It must be
	// >= the required Params.basket_creation_fee. We include the fee explicitly
	// here so that the curator explicitly acknowledges paying this fee and
	// is not surprised to learn that the paid a big fee and didn't know
	// beforehand.
	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) GetCreditTypeName

func (x *MsgCreate) GetCreditTypeName() string

func (*MsgCreate) GetCurator

func (x *MsgCreate) GetCurator() string

func (*MsgCreate) GetDateCriteria added in v0.2.0

func (x *MsgCreate) GetDateCriteria() *DateCriteria

func (*MsgCreate) GetDisableAutoRetire

func (x *MsgCreate) GetDisableAutoRetire() bool

func (*MsgCreate) GetDisplayName

func (x *MsgCreate) GetDisplayName() string

func (*MsgCreate) GetExponent

func (x *MsgCreate) GetExponent() uint32

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 location for the credits
	// which will be used only if retire_on_take is true for this basket.
	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"`
	// 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) GetRetirementLocation

func (x *MsgTake) GetRetirementLocation() string

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.
	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"`
	// 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 added in v0.2.0

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

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.
	Basket *Basket `protobuf:"bytes,1,opt,name=basket,proto3" json:"basket,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 added in v0.2.0

func (x *QueryBasketResponse) GetBasket() *Basket

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.
	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"`
	// 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 added in v0.2.0

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

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 {
	BasketStore() BasketStore
	BasketClassStore() BasketClassStore
	BasketBalanceStore() BasketBalanceStore
	// 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