ecocreditv1beta1

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

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_v1beta1_events_proto protoreflect.FileDescriptor
View Source
var File_regen_ecocredit_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_regen_ecocredit_v1beta1_state_proto protoreflect.FileDescriptor
View Source
var File_regen_ecocredit_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var File_regen_ecocredit_v1beta1_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "regen.ecocredit.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateClass",
			Handler:    _Msg_CreateClass_Handler,
		},
		{
			MethodName: "CreateProject",
			Handler:    _Msg_CreateProject_Handler,
		},
		{
			MethodName: "CreateBatch",
			Handler:    _Msg_CreateBatch_Handler,
		},
		{
			MethodName: "Send",
			Handler:    _Msg_Send_Handler,
		},
		{
			MethodName: "Retire",
			Handler:    _Msg_Retire_Handler,
		},
		{
			MethodName: "Cancel",
			Handler:    _Msg_Cancel_Handler,
		},
		{
			MethodName: "UpdateClassAdmin",
			Handler:    _Msg_UpdateClassAdmin_Handler,
		},
		{
			MethodName: "UpdateClassIssuers",
			Handler:    _Msg_UpdateClassIssuers_Handler,
		},
		{
			MethodName: "UpdateClassMetadata",
			Handler:    _Msg_UpdateClassMetadata_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "regen/ecocredit/v1beta1/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.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Classes",
			Handler:    _Query_Classes_Handler,
		},
		{
			MethodName: "ClassInfo",
			Handler:    _Query_ClassInfo_Handler,
		},
		{
			MethodName: "Projects",
			Handler:    _Query_Projects_Handler,
		},
		{
			MethodName: "ProjectInfo",
			Handler:    _Query_ProjectInfo_Handler,
		},
		{
			MethodName: "Batches",
			Handler:    _Query_Batches_Handler,
		},
		{
			MethodName: "BatchInfo",
			Handler:    _Query_BatchInfo_Handler,
		},
		{
			MethodName: "Balance",
			Handler:    _Query_Balance_Handler,
		},
		{
			MethodName: "Supply",
			Handler:    _Query_Supply_Handler,
		},
		{
			MethodName: "CreditTypes",
			Handler:    _Query_CreditTypes_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "regen/ecocredit/v1beta1/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

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type BatchBalance

type BatchBalance struct {

	// address is the address of the credit holder
	Address []byte `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// batch_id is the id of the credit batch
	BatchId uint64 `protobuf:"varint,2,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// tradable is the tradable amount of credits
	Tradable string `protobuf:"bytes,3,opt,name=tradable,proto3" json:"tradable,omitempty"`
	// retired is the retired amount of credits
	Retired string `protobuf:"bytes,4,opt,name=retired,proto3" json:"retired,omitempty"`
	// contains filtered or unexported fields
}

BatchBalance stores each users credit balance

func (*BatchBalance) Descriptor deprecated

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

Deprecated: Use BatchBalance.ProtoReflect.Descriptor instead.

func (*BatchBalance) GetAddress

func (x *BatchBalance) GetAddress() []byte

func (*BatchBalance) GetBatchId

func (x *BatchBalance) GetBatchId() uint64

func (*BatchBalance) GetRetired

func (x *BatchBalance) GetRetired() string

func (*BatchBalance) GetTradable

func (x *BatchBalance) GetTradable() string

func (*BatchBalance) ProtoMessage

func (*BatchBalance) ProtoMessage()

func (*BatchBalance) ProtoReflect

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

func (*BatchBalance) Reset

func (x *BatchBalance) Reset()

func (*BatchBalance) String

func (x *BatchBalance) String() string

type BatchBalanceAddressBatchIdIndexKey

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

func (BatchBalanceAddressBatchIdIndexKey) WithAddress

func (BatchBalanceAddressBatchIdIndexKey) WithAddressBatchId

func (this BatchBalanceAddressBatchIdIndexKey) WithAddressBatchId(address []byte, batch_id uint64) BatchBalanceAddressBatchIdIndexKey

type BatchBalanceBatchIdAddressIndexKey

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

func (BatchBalanceBatchIdAddressIndexKey) WithBatchId

func (BatchBalanceBatchIdAddressIndexKey) WithBatchIdAddress

func (this BatchBalanceBatchIdAddressIndexKey) WithBatchIdAddress(batch_id uint64, address []byte) BatchBalanceBatchIdAddressIndexKey

type BatchBalanceIndexKey

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

type BatchBalanceIterator

type BatchBalanceIterator struct {
	ormtable.Iterator
}

func (BatchBalanceIterator) Value

func (i BatchBalanceIterator) Value() (*BatchBalance, error)

type BatchBalancePrimaryKey

type BatchBalancePrimaryKey = BatchBalanceAddressBatchIdIndexKey

primary key starting index..

type BatchBalanceStore

type BatchBalanceStore interface {
	Insert(ctx context.Context, batchBalance *BatchBalance) error
	Update(ctx context.Context, batchBalance *BatchBalance) error
	Save(ctx context.Context, batchBalance *BatchBalance) error
	Delete(ctx context.Context, batchBalance *BatchBalance) error
	Has(ctx context.Context, address []byte, batch_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, address []byte, batch_id uint64) (*BatchBalance, error)
	List(ctx context.Context, prefixKey BatchBalanceIndexKey, opts ...ormlist.Option) (BatchBalanceIterator, error)
	ListRange(ctx context.Context, from, to BatchBalanceIndexKey, opts ...ormlist.Option) (BatchBalanceIterator, error)
	DeleteBy(ctx context.Context, prefixKey BatchBalanceIndexKey) error
	DeleteRange(ctx context.Context, from, to BatchBalanceIndexKey) error
	// contains filtered or unexported methods
}

func NewBatchBalanceStore

func NewBatchBalanceStore(db ormtable.Schema) (BatchBalanceStore, error)

type BatchInfo

type BatchInfo struct {

	// id is an auto-incrementing integer to succinctly identify the batch
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// project_id is the unique ID of the project this batch belongs to.
	ProjectId uint64 `protobuf:"varint,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// batch_denom is the unique string identifier of the credit batch formed
	// from the project name, batch sequence number and dates.
	BatchDenom string `protobuf:"bytes,3,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// metadata is any arbitrary metadata attached to the credit batch.
	Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// start_date is the beginning of the period during which this credit batch
	// was quantified and verified.
	StartDate *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	// end_date is the end of the period during which this credit batch was
	// quantified and verified.
	EndDate *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// contains filtered or unexported fields
}

BatchInfo represents the high-level on-chain information for a credit batch.

func (*BatchInfo) Descriptor deprecated

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

Deprecated: Use BatchInfo.ProtoReflect.Descriptor instead.

func (*BatchInfo) GetBatchDenom

func (x *BatchInfo) GetBatchDenom() string

func (*BatchInfo) GetEndDate

func (x *BatchInfo) GetEndDate() *timestamppb.Timestamp

func (*BatchInfo) GetId

func (x *BatchInfo) GetId() uint64

func (*BatchInfo) GetMetadata

func (x *BatchInfo) GetMetadata() []byte

func (*BatchInfo) GetProjectId

func (x *BatchInfo) GetProjectId() uint64

func (*BatchInfo) GetStartDate

func (x *BatchInfo) GetStartDate() *timestamppb.Timestamp

func (*BatchInfo) ProtoMessage

func (*BatchInfo) ProtoMessage()

func (*BatchInfo) ProtoReflect

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

func (*BatchInfo) Reset

func (x *BatchInfo) Reset()

func (*BatchInfo) String

func (x *BatchInfo) String() string

type BatchInfoBatchDenomIndexKey

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

func (BatchInfoBatchDenomIndexKey) WithBatchDenom

func (this BatchInfoBatchDenomIndexKey) WithBatchDenom(batch_denom string) BatchInfoBatchDenomIndexKey

type BatchInfoIdIndexKey

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

func (BatchInfoIdIndexKey) WithId

type BatchInfoIndexKey

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

type BatchInfoIterator

type BatchInfoIterator struct {
	ormtable.Iterator
}

func (BatchInfoIterator) Value

func (i BatchInfoIterator) Value() (*BatchInfo, error)

type BatchInfoPrimaryKey

type BatchInfoPrimaryKey = BatchInfoIdIndexKey

primary key starting index..

type BatchInfoProjectIdIndexKey

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

func (BatchInfoProjectIdIndexKey) WithProjectId

func (this BatchInfoProjectIdIndexKey) WithProjectId(project_id uint64) BatchInfoProjectIdIndexKey

type BatchInfoStartDateIndexKey

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

func (BatchInfoStartDateIndexKey) WithStartDate

type BatchInfoStore

type BatchInfoStore interface {
	Insert(ctx context.Context, batchInfo *BatchInfo) error
	InsertReturningID(ctx context.Context, batchInfo *BatchInfo) (uint64, error)
	Update(ctx context.Context, batchInfo *BatchInfo) error
	Save(ctx context.Context, batchInfo *BatchInfo) error
	Delete(ctx context.Context, batchInfo *BatchInfo) 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) (*BatchInfo, error)
	HasByBatchDenom(ctx context.Context, batch_denom string) (found bool, err error)
	// GetByBatchDenom returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	GetByBatchDenom(ctx context.Context, batch_denom string) (*BatchInfo, error)
	List(ctx context.Context, prefixKey BatchInfoIndexKey, opts ...ormlist.Option) (BatchInfoIterator, error)
	ListRange(ctx context.Context, from, to BatchInfoIndexKey, opts ...ormlist.Option) (BatchInfoIterator, error)
	DeleteBy(ctx context.Context, prefixKey BatchInfoIndexKey) error
	DeleteRange(ctx context.Context, from, to BatchInfoIndexKey) error
	// contains filtered or unexported methods
}

func NewBatchInfoStore

func NewBatchInfoStore(db ormtable.Schema) (BatchInfoStore, error)

type BatchSequence

type BatchSequence struct {

	// project_id is the id of the project for a batch
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// next_batch_id is a sequence number incrementing on each issued batch
	NextBatchId uint64 `protobuf:"varint,2,opt,name=next_batch_id,json=nextBatchId,proto3" json:"next_batch_id,omitempty"`
	// contains filtered or unexported fields
}

BatchSequence tracks the sequence number for batches within a project

func (*BatchSequence) Descriptor deprecated

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

Deprecated: Use BatchSequence.ProtoReflect.Descriptor instead.

func (*BatchSequence) GetNextBatchId

func (x *BatchSequence) GetNextBatchId() uint64

func (*BatchSequence) GetProjectId

func (x *BatchSequence) GetProjectId() string

func (*BatchSequence) ProtoMessage

func (*BatchSequence) ProtoMessage()

func (*BatchSequence) ProtoReflect

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

func (*BatchSequence) Reset

func (x *BatchSequence) Reset()

func (*BatchSequence) String

func (x *BatchSequence) String() string

type BatchSequenceIndexKey

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

type BatchSequenceIterator

type BatchSequenceIterator struct {
	ormtable.Iterator
}

func (BatchSequenceIterator) Value

type BatchSequencePrimaryKey

type BatchSequencePrimaryKey = BatchSequenceProjectIdIndexKey

primary key starting index..

type BatchSequenceProjectIdIndexKey

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

func (BatchSequenceProjectIdIndexKey) WithProjectId

type BatchSequenceStore

type BatchSequenceStore interface {
	Insert(ctx context.Context, batchSequence *BatchSequence) error
	Update(ctx context.Context, batchSequence *BatchSequence) error
	Save(ctx context.Context, batchSequence *BatchSequence) error
	Delete(ctx context.Context, batchSequence *BatchSequence) error
	Has(ctx context.Context, project_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, project_id string) (*BatchSequence, error)
	List(ctx context.Context, prefixKey BatchSequenceIndexKey, opts ...ormlist.Option) (BatchSequenceIterator, error)
	ListRange(ctx context.Context, from, to BatchSequenceIndexKey, opts ...ormlist.Option) (BatchSequenceIterator, error)
	DeleteBy(ctx context.Context, prefixKey BatchSequenceIndexKey) error
	DeleteRange(ctx context.Context, from, to BatchSequenceIndexKey) error
	// contains filtered or unexported methods
}

func NewBatchSequenceStore

func NewBatchSequenceStore(db ormtable.Schema) (BatchSequenceStore, error)

type BatchSupply

type BatchSupply struct {

	// batch_id is the id of the batch
	BatchId uint64 `protobuf:"varint,1,opt,name=batch_id,json=batchId,proto3" json:"batch_id,omitempty"`
	// tradable_amount is the total number of tradable credits in the credit batch.
	// Some of the issued credits may be cancelled and will be removed from
	// tradable_amount and tracked in amount_cancelled. tradable_amount + retired_amount +
	// amount_cancelled will always sum to the original credit issuance amount.
	TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"`
	// retired_amount is the total amount of credits that have been retired from the credit batch.
	RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
	// cancelled_amount is the number of credits in the batch that have been
	// cancelled, effectively undoing the issuance. The sum of total_amount and
	// amount_cancelled will always equal the original credit issuance amount.
	CancelledAmount string `protobuf:"bytes,4,opt,name=cancelled_amount,json=cancelledAmount,proto3" json:"cancelled_amount,omitempty"`
	// contains filtered or unexported fields
}

BatchSupply tracks the supply of a credit batch

func (*BatchSupply) Descriptor deprecated

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

Deprecated: Use BatchSupply.ProtoReflect.Descriptor instead.

func (*BatchSupply) GetBatchId

func (x *BatchSupply) GetBatchId() uint64

func (*BatchSupply) GetCancelledAmount

func (x *BatchSupply) GetCancelledAmount() string

func (*BatchSupply) GetRetiredAmount

func (x *BatchSupply) GetRetiredAmount() string

func (*BatchSupply) GetTradableAmount

func (x *BatchSupply) GetTradableAmount() string

func (*BatchSupply) ProtoMessage

func (*BatchSupply) ProtoMessage()

func (*BatchSupply) ProtoReflect

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

func (*BatchSupply) Reset

func (x *BatchSupply) Reset()

func (*BatchSupply) String

func (x *BatchSupply) String() string

type BatchSupplyBatchIdIndexKey

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

func (BatchSupplyBatchIdIndexKey) WithBatchId

type BatchSupplyIndexKey

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

type BatchSupplyIterator

type BatchSupplyIterator struct {
	ormtable.Iterator
}

func (BatchSupplyIterator) Value

func (i BatchSupplyIterator) Value() (*BatchSupply, error)

type BatchSupplyPrimaryKey

type BatchSupplyPrimaryKey = BatchSupplyBatchIdIndexKey

primary key starting index..

type BatchSupplyStore

type BatchSupplyStore interface {
	Insert(ctx context.Context, batchSupply *BatchSupply) error
	Update(ctx context.Context, batchSupply *BatchSupply) error
	Save(ctx context.Context, batchSupply *BatchSupply) error
	Delete(ctx context.Context, batchSupply *BatchSupply) error
	Has(ctx context.Context, batch_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, batch_id uint64) (*BatchSupply, error)
	List(ctx context.Context, prefixKey BatchSupplyIndexKey, opts ...ormlist.Option) (BatchSupplyIterator, error)
	ListRange(ctx context.Context, from, to BatchSupplyIndexKey, opts ...ormlist.Option) (BatchSupplyIterator, error)
	DeleteBy(ctx context.Context, prefixKey BatchSupplyIndexKey) error
	DeleteRange(ctx context.Context, from, to BatchSupplyIndexKey) error
	// contains filtered or unexported methods
}

func NewBatchSupplyStore

func NewBatchSupplyStore(db ormtable.Schema) (BatchSupplyStore, error)

type ClassInfo

type ClassInfo struct {

	// id is the unique ID of credit class.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// abbrev is the unique string name for this credit class formed from its credit type
	// and an auto-generated integer.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// admin is the admin of the credit class.
	Admin string `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"`
	// metadata is any arbitrary metadata to attached to the credit class.
	Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// credit_type is the abbreviation of the credit type.
	CreditType string `protobuf:"bytes,5,opt,name=credit_type,json=creditType,proto3" json:"credit_type,omitempty"`
	// contains filtered or unexported fields
}

ClassInfo represents the high-level on-chain information for a credit class.

func (*ClassInfo) Descriptor deprecated

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

Deprecated: Use ClassInfo.ProtoReflect.Descriptor instead.

func (*ClassInfo) GetAdmin

func (x *ClassInfo) GetAdmin() string

func (*ClassInfo) GetCreditType

func (x *ClassInfo) GetCreditType() string

func (*ClassInfo) GetId

func (x *ClassInfo) GetId() uint64

func (*ClassInfo) GetMetadata

func (x *ClassInfo) GetMetadata() []byte

func (*ClassInfo) GetName

func (x *ClassInfo) GetName() string

func (*ClassInfo) ProtoMessage

func (*ClassInfo) ProtoMessage()

func (*ClassInfo) ProtoReflect

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

func (*ClassInfo) Reset

func (x *ClassInfo) Reset()

func (*ClassInfo) String

func (x *ClassInfo) String() string

type ClassInfoAdminIndexKey

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

func (ClassInfoAdminIndexKey) WithAdmin

type ClassInfoCreditTypeIndexKey

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

func (ClassInfoCreditTypeIndexKey) WithCreditType

func (this ClassInfoCreditTypeIndexKey) WithCreditType(credit_type string) ClassInfoCreditTypeIndexKey

type ClassInfoIdIndexKey

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

func (ClassInfoIdIndexKey) WithId

type ClassInfoIndexKey

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

type ClassInfoIterator

type ClassInfoIterator struct {
	ormtable.Iterator
}

func (ClassInfoIterator) Value

func (i ClassInfoIterator) Value() (*ClassInfo, error)

type ClassInfoNameIndexKey

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

func (ClassInfoNameIndexKey) WithName

type ClassInfoPrimaryKey

type ClassInfoPrimaryKey = ClassInfoIdIndexKey

primary key starting index..

type ClassInfoStore

type ClassInfoStore interface {
	Insert(ctx context.Context, classInfo *ClassInfo) error
	InsertReturningID(ctx context.Context, classInfo *ClassInfo) (uint64, error)
	Update(ctx context.Context, classInfo *ClassInfo) error
	Save(ctx context.Context, classInfo *ClassInfo) error
	Delete(ctx context.Context, classInfo *ClassInfo) 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) (*ClassInfo, 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) (*ClassInfo, error)
	List(ctx context.Context, prefixKey ClassInfoIndexKey, opts ...ormlist.Option) (ClassInfoIterator, error)
	ListRange(ctx context.Context, from, to ClassInfoIndexKey, opts ...ormlist.Option) (ClassInfoIterator, error)
	DeleteBy(ctx context.Context, prefixKey ClassInfoIndexKey) error
	DeleteRange(ctx context.Context, from, to ClassInfoIndexKey) error
	// contains filtered or unexported methods
}

func NewClassInfoStore

func NewClassInfoStore(db ormtable.Schema) (ClassInfoStore, error)

type ClassIssuer

type ClassIssuer struct {

	// class_id is the unique ID of credit class.
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// issuer is the approved issuer of the credit class.
	Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// contains filtered or unexported fields
}

ClassIssuers is a JOIN table for Class Info that stores the credit class issuers

func (*ClassIssuer) Descriptor deprecated

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

Deprecated: Use ClassIssuer.ProtoReflect.Descriptor instead.

func (*ClassIssuer) GetClassId

func (x *ClassIssuer) GetClassId() string

func (*ClassIssuer) GetIssuer

func (x *ClassIssuer) GetIssuer() string

func (*ClassIssuer) ProtoMessage

func (*ClassIssuer) ProtoMessage()

func (*ClassIssuer) ProtoReflect

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

func (*ClassIssuer) Reset

func (x *ClassIssuer) Reset()

func (*ClassIssuer) String

func (x *ClassIssuer) String() string

type ClassIssuerClassIdIssuerIndexKey

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

func (ClassIssuerClassIdIssuerIndexKey) WithClassId

func (ClassIssuerClassIdIssuerIndexKey) WithClassIdIssuer

func (this ClassIssuerClassIdIssuerIndexKey) WithClassIdIssuer(class_id string, issuer string) ClassIssuerClassIdIssuerIndexKey

type ClassIssuerIndexKey

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

type ClassIssuerIterator

type ClassIssuerIterator struct {
	ormtable.Iterator
}

func (ClassIssuerIterator) Value

func (i ClassIssuerIterator) Value() (*ClassIssuer, error)

type ClassIssuerPrimaryKey

type ClassIssuerPrimaryKey = ClassIssuerClassIdIssuerIndexKey

primary key starting index..

type ClassIssuerStore

type ClassIssuerStore interface {
	Insert(ctx context.Context, classIssuer *ClassIssuer) error
	Update(ctx context.Context, classIssuer *ClassIssuer) error
	Save(ctx context.Context, classIssuer *ClassIssuer) error
	Delete(ctx context.Context, classIssuer *ClassIssuer) error
	Has(ctx context.Context, class_id string, issuer 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, class_id string, issuer string) (*ClassIssuer, error)
	List(ctx context.Context, prefixKey ClassIssuerIndexKey, opts ...ormlist.Option) (ClassIssuerIterator, error)
	ListRange(ctx context.Context, from, to ClassIssuerIndexKey, opts ...ormlist.Option) (ClassIssuerIterator, error)
	DeleteBy(ctx context.Context, prefixKey ClassIssuerIndexKey) error
	DeleteRange(ctx context.Context, from, to ClassIssuerIndexKey) error
	// contains filtered or unexported methods
}

func NewClassIssuerStore

func NewClassIssuerStore(db ormtable.Schema) (ClassIssuerStore, error)

type ClassSequence

type ClassSequence struct {

	// credit_type is the credit type abbreviation
	CreditType string `protobuf:"bytes,1,opt,name=credit_type,json=creditType,proto3" json:"credit_type,omitempty"`
	// next_class_id is the next class ID for this credit type
	NextClassId uint64 `protobuf:"varint,2,opt,name=next_class_id,json=nextClassId,proto3" json:"next_class_id,omitempty"`
	// contains filtered or unexported fields
}

ClassSequence is a sequence number for creating credit class identifiers for each credit type.

func (*ClassSequence) Descriptor deprecated

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

Deprecated: Use ClassSequence.ProtoReflect.Descriptor instead.

func (*ClassSequence) GetCreditType

func (x *ClassSequence) GetCreditType() string

func (*ClassSequence) GetNextClassId

func (x *ClassSequence) GetNextClassId() uint64

func (*ClassSequence) ProtoMessage

func (*ClassSequence) ProtoMessage()

func (*ClassSequence) ProtoReflect

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

func (*ClassSequence) Reset

func (x *ClassSequence) Reset()

func (*ClassSequence) String

func (x *ClassSequence) String() string

type ClassSequenceCreditTypeIndexKey

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

func (ClassSequenceCreditTypeIndexKey) WithCreditType

type ClassSequenceIndexKey

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

type ClassSequenceIterator

type ClassSequenceIterator struct {
	ormtable.Iterator
}

func (ClassSequenceIterator) Value

type ClassSequencePrimaryKey

type ClassSequencePrimaryKey = ClassSequenceCreditTypeIndexKey

primary key starting index..

type ClassSequenceStore

type ClassSequenceStore interface {
	Insert(ctx context.Context, classSequence *ClassSequence) error
	Update(ctx context.Context, classSequence *ClassSequence) error
	Save(ctx context.Context, classSequence *ClassSequence) error
	Delete(ctx context.Context, classSequence *ClassSequence) error
	Has(ctx context.Context, credit_type 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, credit_type string) (*ClassSequence, error)
	List(ctx context.Context, prefixKey ClassSequenceIndexKey, opts ...ormlist.Option) (ClassSequenceIterator, error)
	ListRange(ctx context.Context, from, to ClassSequenceIndexKey, opts ...ormlist.Option) (ClassSequenceIterator, error)
	DeleteBy(ctx context.Context, prefixKey ClassSequenceIndexKey) error
	DeleteRange(ctx context.Context, from, to ClassSequenceIndexKey) error
	// contains filtered or unexported methods
}

func NewClassSequenceStore

func NewClassSequenceStore(db ormtable.Schema) (ClassSequenceStore, error)

type CreditType

type CreditType struct {

	// abbreviation is a 1-3 character uppercase abbreviation of the CreditType
	// name, used in batch denominations within the CreditType. It must be unique.
	Abbreviation string `protobuf:"bytes,1,opt,name=abbreviation,proto3" json:"abbreviation,omitempty"`
	// the type of credit (e.g. carbon, biodiversity, etc)
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// the measurement unit (e.g. kg, ton, etc)
	Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
	// the decimal precision
	Precision uint32 `protobuf:"varint,4,opt,name=precision,proto3" json:"precision,omitempty"`
	// contains filtered or unexported fields
}

CreditType defines the measurement unit/precision of a certain credit type (e.g. carbon, biodiversity...)

func (*CreditType) Descriptor deprecated

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

Deprecated: Use CreditType.ProtoReflect.Descriptor instead.

func (*CreditType) GetAbbreviation

func (x *CreditType) GetAbbreviation() string

func (*CreditType) GetName

func (x *CreditType) GetName() string

func (*CreditType) GetPrecision

func (x *CreditType) GetPrecision() uint32

func (*CreditType) GetUnit

func (x *CreditType) GetUnit() string

func (*CreditType) ProtoMessage

func (*CreditType) ProtoMessage()

func (*CreditType) ProtoReflect

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

func (*CreditType) Reset

func (x *CreditType) Reset()

func (*CreditType) String

func (x *CreditType) String() string

type CreditTypeAbbreviationIndexKey

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

func (CreditTypeAbbreviationIndexKey) WithAbbreviation

func (this CreditTypeAbbreviationIndexKey) WithAbbreviation(abbreviation string) CreditTypeAbbreviationIndexKey

type CreditTypeIndexKey

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

type CreditTypeIterator

type CreditTypeIterator struct {
	ormtable.Iterator
}

func (CreditTypeIterator) Value

func (i CreditTypeIterator) Value() (*CreditType, error)

type CreditTypeNameIndexKey

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

func (CreditTypeNameIndexKey) WithName

type CreditTypePrimaryKey

type CreditTypePrimaryKey = CreditTypeAbbreviationIndexKey

primary key starting index..

type CreditTypeStore

type CreditTypeStore interface {
	Insert(ctx context.Context, creditType *CreditType) error
	Update(ctx context.Context, creditType *CreditType) error
	Save(ctx context.Context, creditType *CreditType) error
	Delete(ctx context.Context, creditType *CreditType) error
	Has(ctx context.Context, abbreviation 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, abbreviation string) (*CreditType, 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) (*CreditType, error)
	List(ctx context.Context, prefixKey CreditTypeIndexKey, opts ...ormlist.Option) (CreditTypeIterator, error)
	ListRange(ctx context.Context, from, to CreditTypeIndexKey, opts ...ormlist.Option) (CreditTypeIterator, error)
	DeleteBy(ctx context.Context, prefixKey CreditTypeIndexKey) error
	DeleteRange(ctx context.Context, from, to CreditTypeIndexKey) error
	// contains filtered or unexported methods
}

func NewCreditTypeStore

func NewCreditTypeStore(db ormtable.Schema) (CreditTypeStore, error)

type EventCancel

type EventCancel struct {

	// canceller is the account which has cancelled the credits, which should be
	// the holder of the credits.
	Canceller string `protobuf:"bytes,1,opt,name=canceller,proto3" json:"canceller,omitempty"`
	// batch_denom is the unique ID of credit batch.
	BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// amount is the decimal number of credits that have been cancelled.
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

EventCancel is an event emitted when credits are cancelled. When credits are cancelled from multiple batches in the same transaction, a separate event is emitted for each batch_denom. This allows for easier indexing.

func (*EventCancel) Descriptor deprecated

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

Deprecated: Use EventCancel.ProtoReflect.Descriptor instead.

func (*EventCancel) GetAmount

func (x *EventCancel) GetAmount() string

func (*EventCancel) GetBatchDenom

func (x *EventCancel) GetBatchDenom() string

func (*EventCancel) GetCanceller

func (x *EventCancel) GetCanceller() string

func (*EventCancel) ProtoMessage

func (*EventCancel) ProtoMessage()

func (*EventCancel) ProtoReflect

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

func (*EventCancel) Reset

func (x *EventCancel) Reset()

func (*EventCancel) String

func (x *EventCancel) String() string

type EventCreateBatch

type EventCreateBatch struct {

	// class_id is the unique ID of credit class.
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// batch_denom is the unique ID of credit batch.
	BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// issuer is the account address of the issuer of the credit batch.
	Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// total_amount is the total number of credits in the credit batch.
	TotalAmount string `protobuf:"bytes,4,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"`
	// start_date is the beginning of the period during which this credit batch
	// was quantified and verified.
	StartDate string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	// end_date is the end of the period during which this credit batch was
	// quantified and verified.
	EndDate string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// project_location is the location of the project.
	// Full documentation can be found in MsgCreateProject.project_location.
	ProjectLocation string `protobuf:"bytes,7,opt,name=project_location,json=projectLocation,proto3" json:"project_location,omitempty"`
	// project_id is the unique ID of the project this batch belongs to.
	ProjectId string `protobuf:"bytes,8,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

EventCreateBatch is an event emitted when a credit batch is created.

func (*EventCreateBatch) Descriptor deprecated

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

Deprecated: Use EventCreateBatch.ProtoReflect.Descriptor instead.

func (*EventCreateBatch) GetBatchDenom

func (x *EventCreateBatch) GetBatchDenom() string

func (*EventCreateBatch) GetClassId

func (x *EventCreateBatch) GetClassId() string

func (*EventCreateBatch) GetEndDate

func (x *EventCreateBatch) GetEndDate() string

func (*EventCreateBatch) GetIssuer

func (x *EventCreateBatch) GetIssuer() string

func (*EventCreateBatch) GetProjectId

func (x *EventCreateBatch) GetProjectId() string

func (*EventCreateBatch) GetProjectLocation

func (x *EventCreateBatch) GetProjectLocation() string

func (*EventCreateBatch) GetStartDate

func (x *EventCreateBatch) GetStartDate() string

func (*EventCreateBatch) GetTotalAmount

func (x *EventCreateBatch) GetTotalAmount() string

func (*EventCreateBatch) ProtoMessage

func (*EventCreateBatch) ProtoMessage()

func (*EventCreateBatch) ProtoReflect

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

func (*EventCreateBatch) Reset

func (x *EventCreateBatch) Reset()

func (*EventCreateBatch) String

func (x *EventCreateBatch) String() string

type EventCreateClass

type EventCreateClass struct {

	// class_id is the unique ID of credit class.
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// admin is the admin of the credit class.
	Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"`
	// contains filtered or unexported fields
}

EventCreateClass is an event emitted when a credit class is created.

func (*EventCreateClass) Descriptor deprecated

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

Deprecated: Use EventCreateClass.ProtoReflect.Descriptor instead.

func (*EventCreateClass) GetAdmin

func (x *EventCreateClass) GetAdmin() string

func (*EventCreateClass) GetClassId

func (x *EventCreateClass) GetClassId() string

func (*EventCreateClass) ProtoMessage

func (*EventCreateClass) ProtoMessage()

func (*EventCreateClass) ProtoReflect

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

func (*EventCreateClass) Reset

func (x *EventCreateClass) Reset()

func (*EventCreateClass) String

func (x *EventCreateClass) String() string

type EventCreateProject

type EventCreateProject struct {

	// project_id is the unique ID of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// class_id is the unique ID of credit class for this project.
	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// issuer is the issuer of the credit batches for this project.
	Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// project_location is the location of the project.
	// Full documentation can be found in MsgCreateProject.project_location.
	ProjectLocation string `protobuf:"bytes,4,opt,name=project_location,json=projectLocation,proto3" json:"project_location,omitempty"`
	// contains filtered or unexported fields
}

EventCreateProject is an event emitted when a project is created.

func (*EventCreateProject) Descriptor deprecated

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

Deprecated: Use EventCreateProject.ProtoReflect.Descriptor instead.

func (*EventCreateProject) GetClassId

func (x *EventCreateProject) GetClassId() string

func (*EventCreateProject) GetIssuer

func (x *EventCreateProject) GetIssuer() string

func (*EventCreateProject) GetProjectId

func (x *EventCreateProject) GetProjectId() string

func (*EventCreateProject) GetProjectLocation

func (x *EventCreateProject) GetProjectLocation() string

func (*EventCreateProject) ProtoMessage

func (*EventCreateProject) ProtoMessage()

func (*EventCreateProject) ProtoReflect

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

func (*EventCreateProject) Reset

func (x *EventCreateProject) Reset()

func (*EventCreateProject) String

func (x *EventCreateProject) String() string

type EventReceive

type EventReceive struct {

	// sender is the sender of the credits in the case that this event is the
	// result of a transfer. It will not be set when credits are received at
	// initial issuance.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// recipient is the recipient of the credits
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// batch_denom is the unique ID of credit batch.
	BatchDenom string `protobuf:"bytes,3,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// tradable_amount is the decimal number of tradable credits received.
	TradableAmount string `protobuf:"bytes,4,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"`
	// retired_amount is the decimal number of retired credits received.
	RetiredAmount string `protobuf:"bytes,5,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
	// contains filtered or unexported fields
}

EventReceive is an event emitted when credits are received either upon creation of a new batch or upon transfer. Each batch_denom created or transferred will result in a separate EventReceive for easy indexing.

func (*EventReceive) Descriptor deprecated

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

Deprecated: Use EventReceive.ProtoReflect.Descriptor instead.

func (*EventReceive) GetBatchDenom

func (x *EventReceive) GetBatchDenom() string

func (*EventReceive) GetRecipient

func (x *EventReceive) GetRecipient() string

func (*EventReceive) GetRetiredAmount

func (x *EventReceive) GetRetiredAmount() string

func (*EventReceive) GetSender

func (x *EventReceive) GetSender() string

func (*EventReceive) GetTradableAmount

func (x *EventReceive) GetTradableAmount() string

func (*EventReceive) ProtoMessage

func (*EventReceive) ProtoMessage()

func (*EventReceive) ProtoReflect

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

func (*EventReceive) Reset

func (x *EventReceive) Reset()

func (*EventReceive) String

func (x *EventReceive) String() string

type EventRetire

type EventRetire struct {

	// retirer is the account which has done the "retiring". This will be the
	// account receiving credits in the case that credits were retired upon
	// issuance using Msg/CreateBatch or retired upon transfer using Msg/Send.
	Retirer string `protobuf:"bytes,1,opt,name=retirer,proto3" json:"retirer,omitempty"`
	// batch_denom is the unique ID of credit batch.
	BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// amount is the decimal number of credits that have been retired.
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// location is the location of the beneficiary or buyer of the retired
	// credits. It is a string of the form
	// <country-code>[-<sub-national-code>[ <postal-code>]], with the first two
	// fields conforming to ISO 3166-2, and postal-code being up to 64
	// alphanumeric characters.
	Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

EventRetire is an event emitted when credits are retired. When credits are retired from multiple batches in the same transaction, a separate event is emitted for each batch_denom. This allows for easier indexing.

func (*EventRetire) Descriptor deprecated

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

Deprecated: Use EventRetire.ProtoReflect.Descriptor instead.

func (*EventRetire) GetAmount

func (x *EventRetire) GetAmount() string

func (*EventRetire) GetBatchDenom

func (x *EventRetire) GetBatchDenom() string

func (*EventRetire) GetLocation

func (x *EventRetire) GetLocation() string

func (*EventRetire) GetRetirer

func (x *EventRetire) GetRetirer() string

func (*EventRetire) ProtoMessage

func (*EventRetire) ProtoMessage()

func (*EventRetire) ProtoReflect

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

func (*EventRetire) Reset

func (x *EventRetire) Reset()

func (*EventRetire) String

func (x *EventRetire) String() string

type MsgCancel

type MsgCancel struct {

	// holder is the credit holder address.
	Holder string `protobuf:"bytes,1,opt,name=holder,proto3" json:"holder,omitempty"`
	// credits are the credits being cancelled.
	Credits []*MsgCancel_CancelCredits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"`
	// contains filtered or unexported fields
}

MsgCancel is the Msg/Cancel request type.

func (*MsgCancel) Descriptor deprecated

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

Deprecated: Use MsgCancel.ProtoReflect.Descriptor instead.

func (*MsgCancel) GetCredits

func (x *MsgCancel) GetCredits() []*MsgCancel_CancelCredits

func (*MsgCancel) GetHolder

func (x *MsgCancel) GetHolder() string

func (*MsgCancel) ProtoMessage

func (*MsgCancel) ProtoMessage()

func (*MsgCancel) ProtoReflect

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

func (*MsgCancel) Reset

func (x *MsgCancel) Reset()

func (*MsgCancel) String

func (x *MsgCancel) String() string

type MsgCancelResponse

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

MsgCancelResponse is the Msg/Cancel response type.

func (*MsgCancelResponse) Descriptor deprecated

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

Deprecated: Use MsgCancelResponse.ProtoReflect.Descriptor instead.

func (*MsgCancelResponse) ProtoMessage

func (*MsgCancelResponse) ProtoMessage()

func (*MsgCancelResponse) ProtoReflect

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

func (*MsgCancelResponse) Reset

func (x *MsgCancelResponse) Reset()

func (*MsgCancelResponse) String

func (x *MsgCancelResponse) String() string

type MsgCancel_CancelCredits

type MsgCancel_CancelCredits 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 cancelled.
	// Decimal values are acceptable within the precision returned by
	// Query/Precision.
	Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

CancelCredits specifies a batch and the number of credits being cancelled.

func (*MsgCancel_CancelCredits) Descriptor deprecated

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

Deprecated: Use MsgCancel_CancelCredits.ProtoReflect.Descriptor instead.

func (*MsgCancel_CancelCredits) GetAmount

func (x *MsgCancel_CancelCredits) GetAmount() string

func (*MsgCancel_CancelCredits) GetBatchDenom

func (x *MsgCancel_CancelCredits) GetBatchDenom() string

func (*MsgCancel_CancelCredits) ProtoMessage

func (*MsgCancel_CancelCredits) ProtoMessage()

func (*MsgCancel_CancelCredits) ProtoReflect

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

func (*MsgCancel_CancelCredits) Reset

func (x *MsgCancel_CancelCredits) Reset()

func (*MsgCancel_CancelCredits) String

func (x *MsgCancel_CancelCredits) String() string

type MsgClient

type MsgClient interface {
	// CreateClass creates a new credit class with an approved list of issuers and
	// optional metadata.
	CreateClass(ctx context.Context, in *MsgCreateClass, opts ...grpc.CallOption) (*MsgCreateClassResponse, error)
	// CreateProject creates a new project within a credit class.
	CreateProject(ctx context.Context, in *MsgCreateProject, opts ...grpc.CallOption) (*MsgCreateProjectResponse, error)
	// CreateBatch creates a new batch of credits for an existing project.
	// This will create a new batch denom with a fixed supply. Issued credits can
	// be distributed to recipients in either tradable or retired form.
	CreateBatch(ctx context.Context, in *MsgCreateBatch, opts ...grpc.CallOption) (*MsgCreateBatchResponse, error)
	// Send sends tradable credits from one account to another account. Sent
	// credits can either be tradable or retired on receipt.
	Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error)
	// Retire retires a specified number of credits in the holder's account.
	Retire(ctx context.Context, in *MsgRetire, opts ...grpc.CallOption) (*MsgRetireResponse, error)
	// Cancel removes a number of credits from the holder's account and also
	// deducts them from the tradable supply, effectively cancelling their
	// issuance on Regen Ledger
	Cancel(ctx context.Context, in *MsgCancel, opts ...grpc.CallOption) (*MsgCancelResponse, error)
	// UpdateClassAdmin updates the credit class admin
	UpdateClassAdmin(ctx context.Context, in *MsgUpdateClassAdmin, opts ...grpc.CallOption) (*MsgUpdateClassAdminResponse, error)
	// UpdateClassIssuers updates the credit class issuer list
	UpdateClassIssuers(ctx context.Context, in *MsgUpdateClassIssuers, opts ...grpc.CallOption) (*MsgUpdateClassIssuersResponse, error)
	// UpdateClassMetadata updates the credit class metadata
	UpdateClassMetadata(ctx context.Context, in *MsgUpdateClassMetadata, opts ...grpc.CallOption) (*MsgUpdateClassMetadataResponse, 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 MsgCreateBatch

type MsgCreateBatch struct {

	// issuer is the address of the batch issuer.
	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// project_id is the unique ID of the project this batch belongs to.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// issuance are the credits issued in the batch.
	Issuance []*MsgCreateBatch_BatchIssuance `protobuf:"bytes,3,rep,name=issuance,proto3" json:"issuance,omitempty"`
	// metadata is any arbitrary metadata attached to the credit batch.
	Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// start_date is the beginning of the period during which this credit batch
	// was quantified and verified.
	StartDate *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"`
	// end_date is the end of the period during which this credit batch was
	// quantified and verified.
	EndDate *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateBatch is the Msg/CreateBatch request type.

func (*MsgCreateBatch) Descriptor deprecated

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

Deprecated: Use MsgCreateBatch.ProtoReflect.Descriptor instead.

func (*MsgCreateBatch) GetEndDate

func (x *MsgCreateBatch) GetEndDate() *timestamppb.Timestamp

func (*MsgCreateBatch) GetIssuance

func (x *MsgCreateBatch) GetIssuance() []*MsgCreateBatch_BatchIssuance

func (*MsgCreateBatch) GetIssuer

func (x *MsgCreateBatch) GetIssuer() string

func (*MsgCreateBatch) GetMetadata

func (x *MsgCreateBatch) GetMetadata() []byte

func (*MsgCreateBatch) GetProjectId

func (x *MsgCreateBatch) GetProjectId() string

func (*MsgCreateBatch) GetStartDate

func (x *MsgCreateBatch) GetStartDate() *timestamppb.Timestamp

func (*MsgCreateBatch) ProtoMessage

func (*MsgCreateBatch) ProtoMessage()

func (*MsgCreateBatch) ProtoReflect

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

func (*MsgCreateBatch) Reset

func (x *MsgCreateBatch) Reset()

func (*MsgCreateBatch) String

func (x *MsgCreateBatch) String() string

type MsgCreateBatchResponse

type MsgCreateBatchResponse struct {

	// batch_denom is the unique denomination ID of the newly created batch.
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateBatchResponse is the Msg/CreateBatch response type.

func (*MsgCreateBatchResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateBatchResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateBatchResponse) GetBatchDenom

func (x *MsgCreateBatchResponse) GetBatchDenom() string

func (*MsgCreateBatchResponse) ProtoMessage

func (*MsgCreateBatchResponse) ProtoMessage()

func (*MsgCreateBatchResponse) ProtoReflect

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

func (*MsgCreateBatchResponse) Reset

func (x *MsgCreateBatchResponse) Reset()

func (*MsgCreateBatchResponse) String

func (x *MsgCreateBatchResponse) String() string

type MsgCreateBatch_BatchIssuance

type MsgCreateBatch_BatchIssuance struct {

	// recipient is the account of the recipient.
	Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// tradable_amount is the number of credits in this issuance that can be
	// traded by this recipient. Decimal values are acceptable.
	TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"`
	// retired_amount is the number of credits in this issuance that are
	// effectively retired by the issuer on receipt. Decimal values are
	// acceptable.
	RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
	// retirement_location is the location of the beneficiary or buyer of the
	// retired credits. This must be provided if retired_amount is positive. It
	// is a string of the form
	// <country-code>[-<sub-national-code>[ <postal-code>]], with the first two
	// fields conforming to ISO 3166-2, and postal-code being up to 64
	// alphanumeric characters.
	RetirementLocation string `protobuf:"bytes,4,opt,name=retirement_location,json=retirementLocation,proto3" json:"retirement_location,omitempty"`
	// contains filtered or unexported fields
}

BatchIssuance represents the issuance of some credits in a batch to a single recipient.

func (*MsgCreateBatch_BatchIssuance) Descriptor deprecated

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

Deprecated: Use MsgCreateBatch_BatchIssuance.ProtoReflect.Descriptor instead.

func (*MsgCreateBatch_BatchIssuance) GetRecipient

func (x *MsgCreateBatch_BatchIssuance) GetRecipient() string

func (*MsgCreateBatch_BatchIssuance) GetRetiredAmount

func (x *MsgCreateBatch_BatchIssuance) GetRetiredAmount() string

func (*MsgCreateBatch_BatchIssuance) GetRetirementLocation

func (x *MsgCreateBatch_BatchIssuance) GetRetirementLocation() string

func (*MsgCreateBatch_BatchIssuance) GetTradableAmount

func (x *MsgCreateBatch_BatchIssuance) GetTradableAmount() string

func (*MsgCreateBatch_BatchIssuance) ProtoMessage

func (*MsgCreateBatch_BatchIssuance) ProtoMessage()

func (*MsgCreateBatch_BatchIssuance) ProtoReflect

func (*MsgCreateBatch_BatchIssuance) Reset

func (x *MsgCreateBatch_BatchIssuance) Reset()

func (*MsgCreateBatch_BatchIssuance) String

type MsgCreateClass

type MsgCreateClass struct {

	// admin is the address of the account that created the credit class.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// issuers are the account addresses of the approved issuers.
	Issuers []string `protobuf:"bytes,2,rep,name=issuers,proto3" json:"issuers,omitempty"`
	// metadata is any arbitrary metadata to attached to the credit class.
	Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// credit_type_name describes the type of credit (e.g. "carbon", "biodiversity").
	CreditTypeName string `protobuf:"bytes,4,opt,name=credit_type_name,json=creditTypeName,proto3" json:"credit_type_name,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateClass is the Msg/CreateClass request type.

func (*MsgCreateClass) Descriptor deprecated

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

Deprecated: Use MsgCreateClass.ProtoReflect.Descriptor instead.

func (*MsgCreateClass) GetAdmin

func (x *MsgCreateClass) GetAdmin() string

func (*MsgCreateClass) GetCreditTypeName

func (x *MsgCreateClass) GetCreditTypeName() string

func (*MsgCreateClass) GetIssuers

func (x *MsgCreateClass) GetIssuers() []string

func (*MsgCreateClass) GetMetadata

func (x *MsgCreateClass) GetMetadata() []byte

func (*MsgCreateClass) ProtoMessage

func (*MsgCreateClass) ProtoMessage()

func (*MsgCreateClass) ProtoReflect

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

func (*MsgCreateClass) Reset

func (x *MsgCreateClass) Reset()

func (*MsgCreateClass) String

func (x *MsgCreateClass) String() string

type MsgCreateClassResponse

type MsgCreateClassResponse struct {

	// class_id is the unique ID of the newly created credit class.
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateClassResponse is the Msg/CreateClass response type.

func (*MsgCreateClassResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateClassResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateClassResponse) GetClassId

func (x *MsgCreateClassResponse) GetClassId() string

func (*MsgCreateClassResponse) ProtoMessage

func (*MsgCreateClassResponse) ProtoMessage()

func (*MsgCreateClassResponse) ProtoReflect

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

func (*MsgCreateClassResponse) Reset

func (x *MsgCreateClassResponse) Reset()

func (*MsgCreateClassResponse) String

func (x *MsgCreateClassResponse) String() string

type MsgCreateProject

type MsgCreateProject struct {

	// issuer is the address of an approved issuer for the credit class through
	// which batches will be issued. It is not required, however, that this same
	// issuer issue all batches for a project.
	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// class_id is the unique ID of the class within which the project is created.
	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// metadata is any arbitrary metadata attached to the project.
	Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// project_location is the location of the project backing the credits in this
	// batch. It is a string of the form
	// <country-code>[-<sub-national-code>[ <postal-code>]], with the first two
	// fields conforming to ISO 3166-2, and postal-code being up to 64
	// alphanumeric characters. country-code is required, while sub-national-code
	// and postal-code can be added for increasing precision.
	ProjectLocation string `protobuf:"bytes,4,opt,name=project_location,json=projectLocation,proto3" json:"project_location,omitempty"`
	// project_id is an optional user-specified project ID which can be used
	// instead of an auto-generated ID. If project_id is provided, it must be
	// unique within the credit class and match the regex [A-Za-z0-9]{2,16}
	// or else the operation will fail. If project_id is omitted an ID will
	// automatically be generated.
	ProjectId string `protobuf:"bytes,5,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateProjectResponse is the Msg/CreateProject request type.

func (*MsgCreateProject) Descriptor deprecated

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

Deprecated: Use MsgCreateProject.ProtoReflect.Descriptor instead.

func (*MsgCreateProject) GetClassId

func (x *MsgCreateProject) GetClassId() string

func (*MsgCreateProject) GetIssuer

func (x *MsgCreateProject) GetIssuer() string

func (*MsgCreateProject) GetMetadata

func (x *MsgCreateProject) GetMetadata() []byte

func (*MsgCreateProject) GetProjectId

func (x *MsgCreateProject) GetProjectId() string

func (*MsgCreateProject) GetProjectLocation

func (x *MsgCreateProject) GetProjectLocation() string

func (*MsgCreateProject) ProtoMessage

func (*MsgCreateProject) ProtoMessage()

func (*MsgCreateProject) ProtoReflect

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

func (*MsgCreateProject) Reset

func (x *MsgCreateProject) Reset()

func (*MsgCreateProject) String

func (x *MsgCreateProject) String() string

type MsgCreateProjectResponse

type MsgCreateProjectResponse struct {

	// project_id is the ID of the newly created project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateProjectResponse is the Msg/CreateProject response type.

func (*MsgCreateProjectResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateProjectResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateProjectResponse) GetProjectId

func (x *MsgCreateProjectResponse) GetProjectId() string

func (*MsgCreateProjectResponse) ProtoMessage

func (*MsgCreateProjectResponse) ProtoMessage()

func (*MsgCreateProjectResponse) ProtoReflect

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

func (*MsgCreateProjectResponse) Reset

func (x *MsgCreateProjectResponse) Reset()

func (*MsgCreateProjectResponse) String

func (x *MsgCreateProjectResponse) String() string

type MsgRetire

type MsgRetire struct {

	// holder is the credit holder address.
	Holder string `protobuf:"bytes,1,opt,name=holder,proto3" json:"holder,omitempty"`
	// credits are the credits being retired.
	Credits []*MsgRetire_RetireCredits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"`
	// location is the location of the beneficiary or buyer of the retired
	// credits. It is a string of the form
	// <country-code>[-<sub-national-code>[ <postal-code>]], with the first two
	// fields conforming to ISO 3166-2, and postal-code being up to 64
	// alphanumeric characters.
	Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"`
	// contains filtered or unexported fields
}

MsgRetire is the Msg/Retire request type.

func (*MsgRetire) Descriptor deprecated

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

Deprecated: Use MsgRetire.ProtoReflect.Descriptor instead.

func (*MsgRetire) GetCredits

func (x *MsgRetire) GetCredits() []*MsgRetire_RetireCredits

func (*MsgRetire) GetHolder

func (x *MsgRetire) GetHolder() string

func (*MsgRetire) GetLocation

func (x *MsgRetire) GetLocation() string

func (*MsgRetire) ProtoMessage

func (*MsgRetire) ProtoMessage()

func (*MsgRetire) ProtoReflect

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

func (*MsgRetire) Reset

func (x *MsgRetire) Reset()

func (*MsgRetire) String

func (x *MsgRetire) String() string

type MsgRetireResponse

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

MsgRetire is the Msg/Retire response type.

func (*MsgRetireResponse) Descriptor deprecated

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

Deprecated: Use MsgRetireResponse.ProtoReflect.Descriptor instead.

func (*MsgRetireResponse) ProtoMessage

func (*MsgRetireResponse) ProtoMessage()

func (*MsgRetireResponse) ProtoReflect

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

func (*MsgRetireResponse) Reset

func (x *MsgRetireResponse) Reset()

func (*MsgRetireResponse) String

func (x *MsgRetireResponse) String() string

type MsgRetire_RetireCredits

type MsgRetire_RetireCredits 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 retired.
	// Decimal values are acceptable within the precision returned by
	// Query/Precision.
	Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

RetireCredits specifies a batch and the number of credits being retired.

func (*MsgRetire_RetireCredits) Descriptor deprecated

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

Deprecated: Use MsgRetire_RetireCredits.ProtoReflect.Descriptor instead.

func (*MsgRetire_RetireCredits) GetAmount

func (x *MsgRetire_RetireCredits) GetAmount() string

func (*MsgRetire_RetireCredits) GetBatchDenom

func (x *MsgRetire_RetireCredits) GetBatchDenom() string

func (*MsgRetire_RetireCredits) ProtoMessage

func (*MsgRetire_RetireCredits) ProtoMessage()

func (*MsgRetire_RetireCredits) ProtoReflect

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

func (*MsgRetire_RetireCredits) Reset

func (x *MsgRetire_RetireCredits) Reset()

func (*MsgRetire_RetireCredits) String

func (x *MsgRetire_RetireCredits) String() string

type MsgSend

type MsgSend struct {

	// sender is the address of the account sending credits.
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// sender is the address of the account receiving credits.
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// credits are the credits being sent.
	Credits []*MsgSend_SendCredits `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"`
	// contains filtered or unexported fields
}

MsgSend is the Msg/Send request type.

func (*MsgSend) Descriptor deprecated

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

Deprecated: Use MsgSend.ProtoReflect.Descriptor instead.

func (*MsgSend) GetCredits

func (x *MsgSend) GetCredits() []*MsgSend_SendCredits

func (*MsgSend) GetRecipient

func (x *MsgSend) GetRecipient() string

func (*MsgSend) GetSender

func (x *MsgSend) GetSender() string

func (*MsgSend) ProtoMessage

func (*MsgSend) ProtoMessage()

func (*MsgSend) ProtoReflect

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

func (*MsgSend) Reset

func (x *MsgSend) Reset()

func (*MsgSend) String

func (x *MsgSend) String() string

type MsgSendResponse

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

MsgSendResponse is the Msg/Send response type.

func (*MsgSendResponse) Descriptor deprecated

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

Deprecated: Use MsgSendResponse.ProtoReflect.Descriptor instead.

func (*MsgSendResponse) ProtoMessage

func (*MsgSendResponse) ProtoMessage()

func (*MsgSendResponse) ProtoReflect

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

func (*MsgSendResponse) Reset

func (x *MsgSendResponse) Reset()

func (*MsgSendResponse) String

func (x *MsgSendResponse) String() string

type MsgSend_SendCredits

type MsgSend_SendCredits 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"`
	// tradable_amount is the number of credits in this transfer that can be
	// traded by the recipient. Decimal values are acceptable within the
	// precision returned by Query/Precision.
	TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"`
	// retired_amount is the number of credits in this transfer that are
	// effectively retired by the issuer on receipt. Decimal values are
	// acceptable within the precision returned by Query/Precision.
	RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
	// retirement_location is the location of the beneficiary or buyer of the
	// retired credits. This must be provided if retired_amount is positive. It
	// is a string of the form
	// <country-code>[-<sub-national-code>[ <postal-code>]], with the first two
	// fields conforming to ISO 3166-2, and postal-code being up to 64
	// alphanumeric characters.
	RetirementLocation string `protobuf:"bytes,4,opt,name=retirement_location,json=retirementLocation,proto3" json:"retirement_location,omitempty"`
	// contains filtered or unexported fields
}

SendCredits specifies a batch and the number of credits being transferred. This is split into tradable credits, which will remain tradable on receipt, and retired credits, which will be retired on receipt.

func (*MsgSend_SendCredits) Descriptor deprecated

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

Deprecated: Use MsgSend_SendCredits.ProtoReflect.Descriptor instead.

func (*MsgSend_SendCredits) GetBatchDenom

func (x *MsgSend_SendCredits) GetBatchDenom() string

func (*MsgSend_SendCredits) GetRetiredAmount

func (x *MsgSend_SendCredits) GetRetiredAmount() string

func (*MsgSend_SendCredits) GetRetirementLocation

func (x *MsgSend_SendCredits) GetRetirementLocation() string

func (*MsgSend_SendCredits) GetTradableAmount

func (x *MsgSend_SendCredits) GetTradableAmount() string

func (*MsgSend_SendCredits) ProtoMessage

func (*MsgSend_SendCredits) ProtoMessage()

func (*MsgSend_SendCredits) ProtoReflect

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

func (*MsgSend_SendCredits) Reset

func (x *MsgSend_SendCredits) Reset()

func (*MsgSend_SendCredits) String

func (x *MsgSend_SendCredits) String() string

type MsgServer

type MsgServer interface {
	// CreateClass creates a new credit class with an approved list of issuers and
	// optional metadata.
	CreateClass(context.Context, *MsgCreateClass) (*MsgCreateClassResponse, error)
	// CreateProject creates a new project within a credit class.
	CreateProject(context.Context, *MsgCreateProject) (*MsgCreateProjectResponse, error)
	// CreateBatch creates a new batch of credits for an existing project.
	// This will create a new batch denom with a fixed supply. Issued credits can
	// be distributed to recipients in either tradable or retired form.
	CreateBatch(context.Context, *MsgCreateBatch) (*MsgCreateBatchResponse, error)
	// Send sends tradable credits from one account to another account. Sent
	// credits can either be tradable or retired on receipt.
	Send(context.Context, *MsgSend) (*MsgSendResponse, error)
	// Retire retires a specified number of credits in the holder's account.
	Retire(context.Context, *MsgRetire) (*MsgRetireResponse, error)
	// Cancel removes a number of credits from the holder's account and also
	// deducts them from the tradable supply, effectively cancelling their
	// issuance on Regen Ledger
	Cancel(context.Context, *MsgCancel) (*MsgCancelResponse, error)
	// UpdateClassAdmin updates the credit class admin
	UpdateClassAdmin(context.Context, *MsgUpdateClassAdmin) (*MsgUpdateClassAdminResponse, error)
	// UpdateClassIssuers updates the credit class issuer list
	UpdateClassIssuers(context.Context, *MsgUpdateClassIssuers) (*MsgUpdateClassIssuersResponse, error)
	// UpdateClassMetadata updates the credit class metadata
	UpdateClassMetadata(context.Context, *MsgUpdateClassMetadata) (*MsgUpdateClassMetadataResponse, error)
	// contains filtered or unexported methods
}

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

type MsgUpdateClassAdmin

type MsgUpdateClassAdmin struct {

	// admin is the address of the account that is the admin of the credit class.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// class_id is the unique ID of the credit class.
	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// new_admin is the address of the new admin of the credit class.
	NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type.

func (*MsgUpdateClassAdmin) Descriptor deprecated

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

Deprecated: Use MsgUpdateClassAdmin.ProtoReflect.Descriptor instead.

func (*MsgUpdateClassAdmin) GetAdmin

func (x *MsgUpdateClassAdmin) GetAdmin() string

func (*MsgUpdateClassAdmin) GetClassId

func (x *MsgUpdateClassAdmin) GetClassId() string

func (*MsgUpdateClassAdmin) GetNewAdmin

func (x *MsgUpdateClassAdmin) GetNewAdmin() string

func (*MsgUpdateClassAdmin) ProtoMessage

func (*MsgUpdateClassAdmin) ProtoMessage()

func (*MsgUpdateClassAdmin) ProtoReflect

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

func (*MsgUpdateClassAdmin) Reset

func (x *MsgUpdateClassAdmin) Reset()

func (*MsgUpdateClassAdmin) String

func (x *MsgUpdateClassAdmin) String() string

type MsgUpdateClassAdminResponse

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

MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type.

func (*MsgUpdateClassAdminResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateClassAdminResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateClassAdminResponse) ProtoMessage

func (*MsgUpdateClassAdminResponse) ProtoMessage()

func (*MsgUpdateClassAdminResponse) ProtoReflect

func (*MsgUpdateClassAdminResponse) Reset

func (x *MsgUpdateClassAdminResponse) Reset()

func (*MsgUpdateClassAdminResponse) String

func (x *MsgUpdateClassAdminResponse) String() string

type MsgUpdateClassIssuers

type MsgUpdateClassIssuers struct {

	// admin is the address of the account that is the admin of the credit class.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// class_id is the unique ID of the credit class.
	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// issuers are the updated account addresses of the approved issuers.
	Issuers []string `protobuf:"bytes,3,rep,name=issuers,proto3" json:"issuers,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type.

func (*MsgUpdateClassIssuers) Descriptor deprecated

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

Deprecated: Use MsgUpdateClassIssuers.ProtoReflect.Descriptor instead.

func (*MsgUpdateClassIssuers) GetAdmin

func (x *MsgUpdateClassIssuers) GetAdmin() string

func (*MsgUpdateClassIssuers) GetClassId

func (x *MsgUpdateClassIssuers) GetClassId() string

func (*MsgUpdateClassIssuers) GetIssuers

func (x *MsgUpdateClassIssuers) GetIssuers() []string

func (*MsgUpdateClassIssuers) ProtoMessage

func (*MsgUpdateClassIssuers) ProtoMessage()

func (*MsgUpdateClassIssuers) ProtoReflect

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

func (*MsgUpdateClassIssuers) Reset

func (x *MsgUpdateClassIssuers) Reset()

func (*MsgUpdateClassIssuers) String

func (x *MsgUpdateClassIssuers) String() string

type MsgUpdateClassIssuersResponse

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

MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type.

func (*MsgUpdateClassIssuersResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateClassIssuersResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateClassIssuersResponse) ProtoMessage

func (*MsgUpdateClassIssuersResponse) ProtoMessage()

func (*MsgUpdateClassIssuersResponse) ProtoReflect

func (*MsgUpdateClassIssuersResponse) Reset

func (x *MsgUpdateClassIssuersResponse) Reset()

func (*MsgUpdateClassIssuersResponse) String

type MsgUpdateClassMetadata

type MsgUpdateClassMetadata struct {

	// admin is the address of the account that is the admin of the credit class.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// class_id is the unique ID of the credit class.
	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// metadata is the updated arbitrary metadata to be attached to the credit class.
	Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type.

func (*MsgUpdateClassMetadata) Descriptor deprecated

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

Deprecated: Use MsgUpdateClassMetadata.ProtoReflect.Descriptor instead.

func (*MsgUpdateClassMetadata) GetAdmin

func (x *MsgUpdateClassMetadata) GetAdmin() string

func (*MsgUpdateClassMetadata) GetClassId

func (x *MsgUpdateClassMetadata) GetClassId() string

func (*MsgUpdateClassMetadata) GetMetadata

func (x *MsgUpdateClassMetadata) GetMetadata() []byte

func (*MsgUpdateClassMetadata) ProtoMessage

func (*MsgUpdateClassMetadata) ProtoMessage()

func (*MsgUpdateClassMetadata) ProtoReflect

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

func (*MsgUpdateClassMetadata) Reset

func (x *MsgUpdateClassMetadata) Reset()

func (*MsgUpdateClassMetadata) String

func (x *MsgUpdateClassMetadata) String() string

type MsgUpdateClassMetadataResponse

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

MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type.

func (*MsgUpdateClassMetadataResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateClassMetadataResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateClassMetadataResponse) ProtoMessage

func (*MsgUpdateClassMetadataResponse) ProtoMessage()

func (*MsgUpdateClassMetadataResponse) ProtoReflect

func (*MsgUpdateClassMetadataResponse) Reset

func (x *MsgUpdateClassMetadataResponse) Reset()

func (*MsgUpdateClassMetadataResponse) String

type Params

type Params struct {

	// credit_class_fee is the fixed fee charged on creation of a new credit class
	CreditClassFee []*v1beta1.Coin `protobuf:"bytes,1,rep,name=credit_class_fee,json=creditClassFee,proto3" json:"credit_class_fee,omitempty"`
	// allowed_class_creators is an allowlist defining the addresses with
	// the required permissions to create credit classes
	AllowedClassCreators []string `protobuf:"bytes,2,rep,name=allowed_class_creators,json=allowedClassCreators,proto3" json:"allowed_class_creators,omitempty"`
	// allowlist_enabled is a param that enables/disables the allowlist for credit
	// creation
	AllowlistEnabled bool `protobuf:"varint,3,opt,name=allowlist_enabled,json=allowlistEnabled,proto3" json:"allowlist_enabled,omitempty"`
	// credit_types is a list of definitions for credit types
	CreditTypes []*CreditType `protobuf:"bytes,4,rep,name=credit_types,json=creditTypes,proto3" json:"credit_types,omitempty"`
	// contains filtered or unexported fields
}

Params defines the updatable global parameters of the ecocredit module for use with the x/params module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetAllowedClassCreators

func (x *Params) GetAllowedClassCreators() []string

func (*Params) GetAllowlistEnabled

func (x *Params) GetAllowlistEnabled() bool

func (*Params) GetCreditClassFee

func (x *Params) GetCreditClassFee() []*v1beta1.Coin

func (*Params) GetCreditTypes

func (x *Params) GetCreditTypes() []*CreditType

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

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

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type ProjectInfo

type ProjectInfo struct {

	// id is the unique ID of the project
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// name is an unique name of this project formed from its credit class
	// name and either an auto-generated number or user provided string.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// class_id is the ID of credit class for this project.
	ClassId uint64 `protobuf:"varint,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// project_location is the location of the project.
	// Full documentation can be found in MsgCreateProject.project_location.
	ProjectLocation string `protobuf:"bytes,4,opt,name=project_location,json=projectLocation,proto3" json:"project_location,omitempty"`
	// metadata is any arbitrary metadata attached to the project.
	Metadata []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

ProjectInfo represents the high-level on-chain information for a project.

func (*ProjectInfo) Descriptor deprecated

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

Deprecated: Use ProjectInfo.ProtoReflect.Descriptor instead.

func (*ProjectInfo) GetClassId

func (x *ProjectInfo) GetClassId() uint64

func (*ProjectInfo) GetId

func (x *ProjectInfo) GetId() uint64

func (*ProjectInfo) GetMetadata

func (x *ProjectInfo) GetMetadata() []byte

func (*ProjectInfo) GetName

func (x *ProjectInfo) GetName() string

func (*ProjectInfo) GetProjectLocation

func (x *ProjectInfo) GetProjectLocation() string

func (*ProjectInfo) ProtoMessage

func (*ProjectInfo) ProtoMessage()

func (*ProjectInfo) ProtoReflect

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

func (*ProjectInfo) Reset

func (x *ProjectInfo) Reset()

func (*ProjectInfo) String

func (x *ProjectInfo) String() string

type ProjectInfoClassIdNameIndexKey

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

func (ProjectInfoClassIdNameIndexKey) WithClassId

func (ProjectInfoClassIdNameIndexKey) WithClassIdName

func (this ProjectInfoClassIdNameIndexKey) WithClassIdName(class_id uint64, name string) ProjectInfoClassIdNameIndexKey

type ProjectInfoIdIndexKey

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

func (ProjectInfoIdIndexKey) WithId

type ProjectInfoIndexKey

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

type ProjectInfoIterator

type ProjectInfoIterator struct {
	ormtable.Iterator
}

func (ProjectInfoIterator) Value

func (i ProjectInfoIterator) Value() (*ProjectInfo, error)

type ProjectInfoNameIndexKey

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

func (ProjectInfoNameIndexKey) WithName

type ProjectInfoPrimaryKey

type ProjectInfoPrimaryKey = ProjectInfoIdIndexKey

primary key starting index..

type ProjectInfoStore

type ProjectInfoStore interface {
	Insert(ctx context.Context, projectInfo *ProjectInfo) error
	InsertReturningID(ctx context.Context, projectInfo *ProjectInfo) (uint64, error)
	Update(ctx context.Context, projectInfo *ProjectInfo) error
	Save(ctx context.Context, projectInfo *ProjectInfo) error
	Delete(ctx context.Context, projectInfo *ProjectInfo) 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) (*ProjectInfo, 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) (*ProjectInfo, error)
	HasByClassIdName(ctx context.Context, class_id uint64, name string) (found bool, err error)
	// GetByClassIdName returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	GetByClassIdName(ctx context.Context, class_id uint64, name string) (*ProjectInfo, error)
	List(ctx context.Context, prefixKey ProjectInfoIndexKey, opts ...ormlist.Option) (ProjectInfoIterator, error)
	ListRange(ctx context.Context, from, to ProjectInfoIndexKey, opts ...ormlist.Option) (ProjectInfoIterator, error)
	DeleteBy(ctx context.Context, prefixKey ProjectInfoIndexKey) error
	DeleteRange(ctx context.Context, from, to ProjectInfoIndexKey) error
	// contains filtered or unexported methods
}

func NewProjectInfoStore

func NewProjectInfoStore(db ormtable.Schema) (ProjectInfoStore, error)

type ProjectSequence

type ProjectSequence struct {

	// class_id is the id of the credit class
	ClassId uint64 `protobuf:"varint,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// next_project_id is the sequence number for the project
	NextProjectId uint64 `protobuf:"varint,2,opt,name=next_project_id,json=nextProjectId,proto3" json:"next_project_id,omitempty"`
	// contains filtered or unexported fields
}

ProjectSequence stores and increments the sequence number for projects within a given credit class.

func (*ProjectSequence) Descriptor deprecated

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

Deprecated: Use ProjectSequence.ProtoReflect.Descriptor instead.

func (*ProjectSequence) GetClassId

func (x *ProjectSequence) GetClassId() uint64

func (*ProjectSequence) GetNextProjectId

func (x *ProjectSequence) GetNextProjectId() uint64

func (*ProjectSequence) ProtoMessage

func (*ProjectSequence) ProtoMessage()

func (*ProjectSequence) ProtoReflect

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

func (*ProjectSequence) Reset

func (x *ProjectSequence) Reset()

func (*ProjectSequence) String

func (x *ProjectSequence) String() string

type ProjectSequenceClassIdIndexKey

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

func (ProjectSequenceClassIdIndexKey) WithClassId

type ProjectSequenceIndexKey

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

type ProjectSequenceIterator

type ProjectSequenceIterator struct {
	ormtable.Iterator
}

func (ProjectSequenceIterator) Value

type ProjectSequencePrimaryKey

type ProjectSequencePrimaryKey = ProjectSequenceClassIdIndexKey

primary key starting index..

type ProjectSequenceStore

type ProjectSequenceStore interface {
	Insert(ctx context.Context, projectSequence *ProjectSequence) error
	Update(ctx context.Context, projectSequence *ProjectSequence) error
	Save(ctx context.Context, projectSequence *ProjectSequence) error
	Delete(ctx context.Context, projectSequence *ProjectSequence) error
	Has(ctx context.Context, class_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, class_id uint64) (*ProjectSequence, error)
	List(ctx context.Context, prefixKey ProjectSequenceIndexKey, opts ...ormlist.Option) (ProjectSequenceIterator, error)
	ListRange(ctx context.Context, from, to ProjectSequenceIndexKey, opts ...ormlist.Option) (ProjectSequenceIterator, error)
	DeleteBy(ctx context.Context, prefixKey ProjectSequenceIndexKey) error
	DeleteRange(ctx context.Context, from, to ProjectSequenceIndexKey) error
	// contains filtered or unexported methods
}

func NewProjectSequenceStore

func NewProjectSequenceStore(db ormtable.Schema) (ProjectSequenceStore, error)

type QueryBalanceRequest

type QueryBalanceRequest struct {

	// account is the address of the account whose balance is being queried.
	Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
	// batch_denom is the unique ID of credit batch balance to query.
	BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// contains filtered or unexported fields
}

QueryBalanceRequest is the Query/Balance request type.

func (*QueryBalanceRequest) Descriptor deprecated

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

Deprecated: Use QueryBalanceRequest.ProtoReflect.Descriptor instead.

func (*QueryBalanceRequest) GetAccount

func (x *QueryBalanceRequest) GetAccount() string

func (*QueryBalanceRequest) GetBatchDenom

func (x *QueryBalanceRequest) GetBatchDenom() string

func (*QueryBalanceRequest) ProtoMessage

func (*QueryBalanceRequest) ProtoMessage()

func (*QueryBalanceRequest) ProtoReflect

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

func (*QueryBalanceRequest) Reset

func (x *QueryBalanceRequest) Reset()

func (*QueryBalanceRequest) String

func (x *QueryBalanceRequest) String() string

type QueryBalanceResponse

type QueryBalanceResponse struct {

	// tradable_amount is the decimal number of tradable credits.
	TradableAmount string `protobuf:"bytes,1,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"`
	// retired_amount is the decimal number of retired credits.
	RetiredAmount string `protobuf:"bytes,2,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
	// contains filtered or unexported fields
}

QueryBalanceResponse is the Query/Balance response type.

func (*QueryBalanceResponse) Descriptor deprecated

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

Deprecated: Use QueryBalanceResponse.ProtoReflect.Descriptor instead.

func (*QueryBalanceResponse) GetRetiredAmount

func (x *QueryBalanceResponse) GetRetiredAmount() string

func (*QueryBalanceResponse) GetTradableAmount

func (x *QueryBalanceResponse) GetTradableAmount() string

func (*QueryBalanceResponse) ProtoMessage

func (*QueryBalanceResponse) ProtoMessage()

func (*QueryBalanceResponse) ProtoReflect

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

func (*QueryBalanceResponse) Reset

func (x *QueryBalanceResponse) Reset()

func (*QueryBalanceResponse) String

func (x *QueryBalanceResponse) String() string

type QueryBatchInfoRequest

type QueryBatchInfoRequest struct {

	// batch_denom is the unique ID of credit batch to query.
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// contains filtered or unexported fields
}

QueryBatchInfoRequest is the Query/BatchInfo request type.

func (*QueryBatchInfoRequest) Descriptor deprecated

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

Deprecated: Use QueryBatchInfoRequest.ProtoReflect.Descriptor instead.

func (*QueryBatchInfoRequest) GetBatchDenom

func (x *QueryBatchInfoRequest) GetBatchDenom() string

func (*QueryBatchInfoRequest) ProtoMessage

func (*QueryBatchInfoRequest) ProtoMessage()

func (*QueryBatchInfoRequest) ProtoReflect

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

func (*QueryBatchInfoRequest) Reset

func (x *QueryBatchInfoRequest) Reset()

func (*QueryBatchInfoRequest) String

func (x *QueryBatchInfoRequest) String() string

type QueryBatchInfoResponse

type QueryBatchInfoResponse struct {

	// info is the BatchInfo for the credit batch.
	Info *BatchInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

QueryBatchInfoResponse is the Query/BatchInfo response type.

func (*QueryBatchInfoResponse) Descriptor deprecated

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

Deprecated: Use QueryBatchInfoResponse.ProtoReflect.Descriptor instead.

func (*QueryBatchInfoResponse) GetInfo

func (x *QueryBatchInfoResponse) GetInfo() *BatchInfo

func (*QueryBatchInfoResponse) ProtoMessage

func (*QueryBatchInfoResponse) ProtoMessage()

func (*QueryBatchInfoResponse) ProtoReflect

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

func (*QueryBatchInfoResponse) Reset

func (x *QueryBatchInfoResponse) Reset()

func (*QueryBatchInfoResponse) String

func (x *QueryBatchInfoResponse) String() string

type QueryBatchesRequest

type QueryBatchesRequest struct {

	// project_id is the unique ID of the project to query.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,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
}

QueryBatchesRequest is the Query/Batches request type.

func (*QueryBatchesRequest) Descriptor deprecated

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

Deprecated: Use QueryBatchesRequest.ProtoReflect.Descriptor instead.

func (*QueryBatchesRequest) GetPagination

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

func (*QueryBatchesRequest) GetProjectId

func (x *QueryBatchesRequest) GetProjectId() string

func (*QueryBatchesRequest) ProtoMessage

func (*QueryBatchesRequest) ProtoMessage()

func (*QueryBatchesRequest) ProtoReflect

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

func (*QueryBatchesRequest) Reset

func (x *QueryBatchesRequest) Reset()

func (*QueryBatchesRequest) String

func (x *QueryBatchesRequest) String() string

type QueryBatchesResponse

type QueryBatchesResponse struct {

	// batches are the fetched credit batches within the project.
	Batches []*BatchInfo `protobuf:"bytes,1,rep,name=batches,proto3" json:"batches,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
}

QueryBatchesResponse is the Query/Batches response type.

func (*QueryBatchesResponse) Descriptor deprecated

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

Deprecated: Use QueryBatchesResponse.ProtoReflect.Descriptor instead.

func (*QueryBatchesResponse) GetBatches

func (x *QueryBatchesResponse) GetBatches() []*BatchInfo

func (*QueryBatchesResponse) GetPagination

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

func (*QueryBatchesResponse) ProtoMessage

func (*QueryBatchesResponse) ProtoMessage()

func (*QueryBatchesResponse) ProtoReflect

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

func (*QueryBatchesResponse) Reset

func (x *QueryBatchesResponse) Reset()

func (*QueryBatchesResponse) String

func (x *QueryBatchesResponse) String() string

type QueryClassInfoRequest

type QueryClassInfoRequest struct {

	// class_id is the unique ID of credit class to query.
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// contains filtered or unexported fields
}

QueryClassInfoRequest is the Query/ClassInfo request type.

func (*QueryClassInfoRequest) Descriptor deprecated

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

Deprecated: Use QueryClassInfoRequest.ProtoReflect.Descriptor instead.

func (*QueryClassInfoRequest) GetClassId

func (x *QueryClassInfoRequest) GetClassId() string

func (*QueryClassInfoRequest) ProtoMessage

func (*QueryClassInfoRequest) ProtoMessage()

func (*QueryClassInfoRequest) ProtoReflect

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

func (*QueryClassInfoRequest) Reset

func (x *QueryClassInfoRequest) Reset()

func (*QueryClassInfoRequest) String

func (x *QueryClassInfoRequest) String() string

type QueryClassInfoResponse

type QueryClassInfoResponse struct {

	// info is the ClassInfo for the credit class.
	Info *ClassInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

QueryClassInfoResponse is the Query/ClassInfo request type.

func (*QueryClassInfoResponse) Descriptor deprecated

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

Deprecated: Use QueryClassInfoResponse.ProtoReflect.Descriptor instead.

func (*QueryClassInfoResponse) GetInfo

func (x *QueryClassInfoResponse) GetInfo() *ClassInfo

func (*QueryClassInfoResponse) ProtoMessage

func (*QueryClassInfoResponse) ProtoMessage()

func (*QueryClassInfoResponse) ProtoReflect

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

func (*QueryClassInfoResponse) Reset

func (x *QueryClassInfoResponse) Reset()

func (*QueryClassInfoResponse) String

func (x *QueryClassInfoResponse) String() string

type QueryClassesRequest

type QueryClassesRequest 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
}

QueryClassesRequest is the Query/Classes request type.

func (*QueryClassesRequest) Descriptor deprecated

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

Deprecated: Use QueryClassesRequest.ProtoReflect.Descriptor instead.

func (*QueryClassesRequest) GetPagination

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

func (*QueryClassesRequest) ProtoMessage

func (*QueryClassesRequest) ProtoMessage()

func (*QueryClassesRequest) ProtoReflect

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

func (*QueryClassesRequest) Reset

func (x *QueryClassesRequest) Reset()

func (*QueryClassesRequest) String

func (x *QueryClassesRequest) String() string

type QueryClassesResponse

type QueryClassesResponse struct {

	// classes are the fetched credit classes.
	Classes []*ClassInfo `protobuf:"bytes,1,rep,name=classes,proto3" json:"classes,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
}

QueryClassesResponse is the Query/Classes response type.

func (*QueryClassesResponse) Descriptor deprecated

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

Deprecated: Use QueryClassesResponse.ProtoReflect.Descriptor instead.

func (*QueryClassesResponse) GetClasses

func (x *QueryClassesResponse) GetClasses() []*ClassInfo

func (*QueryClassesResponse) GetPagination

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

func (*QueryClassesResponse) ProtoMessage

func (*QueryClassesResponse) ProtoMessage()

func (*QueryClassesResponse) ProtoReflect

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

func (*QueryClassesResponse) Reset

func (x *QueryClassesResponse) Reset()

func (*QueryClassesResponse) String

func (x *QueryClassesResponse) String() string

type QueryClient

type QueryClient interface {
	// Classes queries for all credit classes with pagination.
	Classes(ctx context.Context, in *QueryClassesRequest, opts ...grpc.CallOption) (*QueryClassesResponse, error)
	// ClassInfo queries for information on a credit class.
	ClassInfo(ctx context.Context, in *QueryClassInfoRequest, opts ...grpc.CallOption) (*QueryClassInfoResponse, error)
	// Projects queries for all projects within a class with pagination.
	Projects(ctx context.Context, in *QueryProjectsRequest, opts ...grpc.CallOption) (*QueryProjectsResponse, error)
	// ClassInfo queries for information on a project.
	ProjectInfo(ctx context.Context, in *QueryProjectInfoRequest, opts ...grpc.CallOption) (*QueryProjectInfoResponse, error)
	// Batches queries for all batches in the given project with pagination.
	Batches(ctx context.Context, in *QueryBatchesRequest, opts ...grpc.CallOption) (*QueryBatchesResponse, error)
	// BatchInfo queries for information on a credit batch.
	BatchInfo(ctx context.Context, in *QueryBatchInfoRequest, opts ...grpc.CallOption) (*QueryBatchInfoResponse, error)
	// Balance queries the balance (both tradable and retired) of a given credit
	// batch for a given account.
	Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error)
	// Supply queries the tradable and retired supply of a credit batch.
	Supply(ctx context.Context, in *QuerySupplyRequest, opts ...grpc.CallOption) (*QuerySupplyResponse, error)
	// CreditTypes returns the list of allowed types that credit classes can have.
	// See Types/CreditType for more details.
	CreditTypes(ctx context.Context, in *QueryCreditTypesRequest, opts ...grpc.CallOption) (*QueryCreditTypesResponse, error)
	// Params queries the ecocredit module parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryCreditTypesRequest

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

QueryCreditTypesRequest is the Query/Credit_Types request type

func (*QueryCreditTypesRequest) Descriptor deprecated

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

Deprecated: Use QueryCreditTypesRequest.ProtoReflect.Descriptor instead.

func (*QueryCreditTypesRequest) ProtoMessage

func (*QueryCreditTypesRequest) ProtoMessage()

func (*QueryCreditTypesRequest) ProtoReflect

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

func (*QueryCreditTypesRequest) Reset

func (x *QueryCreditTypesRequest) Reset()

func (*QueryCreditTypesRequest) String

func (x *QueryCreditTypesRequest) String() string

type QueryCreditTypesResponse

type QueryCreditTypesResponse struct {

	// list of credit types
	CreditTypes []*CreditType `protobuf:"bytes,1,rep,name=credit_types,json=creditTypes,proto3" json:"credit_types,omitempty"`
	// contains filtered or unexported fields
}

QueryCreditTypesRequest is the Query/Credit_Types response type

func (*QueryCreditTypesResponse) Descriptor deprecated

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

Deprecated: Use QueryCreditTypesResponse.ProtoReflect.Descriptor instead.

func (*QueryCreditTypesResponse) GetCreditTypes

func (x *QueryCreditTypesResponse) GetCreditTypes() []*CreditType

func (*QueryCreditTypesResponse) ProtoMessage

func (*QueryCreditTypesResponse) ProtoMessage()

func (*QueryCreditTypesResponse) ProtoReflect

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

func (*QueryCreditTypesResponse) Reset

func (x *QueryCreditTypesResponse) Reset()

func (*QueryCreditTypesResponse) String

func (x *QueryCreditTypesResponse) String() string

type QueryParamsRequest

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

QueryParamsRequest is the Query/Params request type.

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

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

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params defines the parameters of the ecocredit module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is the Query/Params response type.

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

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

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryProjectInfoRequest

type QueryProjectInfoRequest struct {

	// project_id is the unique ID of the project to query.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

QueryProjectInfoRequest is the Query/Project request type.

func (*QueryProjectInfoRequest) Descriptor deprecated

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

Deprecated: Use QueryProjectInfoRequest.ProtoReflect.Descriptor instead.

func (*QueryProjectInfoRequest) GetProjectId

func (x *QueryProjectInfoRequest) GetProjectId() string

func (*QueryProjectInfoRequest) ProtoMessage

func (*QueryProjectInfoRequest) ProtoMessage()

func (*QueryProjectInfoRequest) ProtoReflect

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

func (*QueryProjectInfoRequest) Reset

func (x *QueryProjectInfoRequest) Reset()

func (*QueryProjectInfoRequest) String

func (x *QueryProjectInfoRequest) String() string

type QueryProjectInfoResponse

type QueryProjectInfoResponse struct {

	// info is the ProjectInfo for the project.
	Info *ProjectInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"`
	// contains filtered or unexported fields
}

QueryProjectInfoResponse is the Query/Project response type.

func (*QueryProjectInfoResponse) Descriptor deprecated

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

Deprecated: Use QueryProjectInfoResponse.ProtoReflect.Descriptor instead.

func (*QueryProjectInfoResponse) GetInfo

func (x *QueryProjectInfoResponse) GetInfo() *ProjectInfo

func (*QueryProjectInfoResponse) ProtoMessage

func (*QueryProjectInfoResponse) ProtoMessage()

func (*QueryProjectInfoResponse) ProtoReflect

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

func (*QueryProjectInfoResponse) Reset

func (x *QueryProjectInfoResponse) Reset()

func (*QueryProjectInfoResponse) String

func (x *QueryProjectInfoResponse) String() string

type QueryProjectsRequest

type QueryProjectsRequest struct {

	// class_id is the unique ID of credit class to query.
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,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
}

QueryProjectsRequest is the Query/Projects request type.

func (*QueryProjectsRequest) Descriptor deprecated

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

Deprecated: Use QueryProjectsRequest.ProtoReflect.Descriptor instead.

func (*QueryProjectsRequest) GetClassId

func (x *QueryProjectsRequest) GetClassId() string

func (*QueryProjectsRequest) GetPagination

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

func (*QueryProjectsRequest) ProtoMessage

func (*QueryProjectsRequest) ProtoMessage()

func (*QueryProjectsRequest) ProtoReflect

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

func (*QueryProjectsRequest) Reset

func (x *QueryProjectsRequest) Reset()

func (*QueryProjectsRequest) String

func (x *QueryProjectsRequest) String() string

type QueryProjectsResponse

type QueryProjectsResponse struct {

	// projects are the fetched projects.
	Projects []*ProjectInfo `protobuf:"bytes,1,rep,name=projects,proto3" json:"projects,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
}

QueryProjectsResponse is the Query/Projects response type.

func (*QueryProjectsResponse) Descriptor deprecated

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

Deprecated: Use QueryProjectsResponse.ProtoReflect.Descriptor instead.

func (*QueryProjectsResponse) GetPagination

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

func (*QueryProjectsResponse) GetProjects

func (x *QueryProjectsResponse) GetProjects() []*ProjectInfo

func (*QueryProjectsResponse) ProtoMessage

func (*QueryProjectsResponse) ProtoMessage()

func (*QueryProjectsResponse) ProtoReflect

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

func (*QueryProjectsResponse) Reset

func (x *QueryProjectsResponse) Reset()

func (*QueryProjectsResponse) String

func (x *QueryProjectsResponse) String() string

type QueryServer

type QueryServer interface {
	// Classes queries for all credit classes with pagination.
	Classes(context.Context, *QueryClassesRequest) (*QueryClassesResponse, error)
	// ClassInfo queries for information on a credit class.
	ClassInfo(context.Context, *QueryClassInfoRequest) (*QueryClassInfoResponse, error)
	// Projects queries for all projects within a class with pagination.
	Projects(context.Context, *QueryProjectsRequest) (*QueryProjectsResponse, error)
	// ClassInfo queries for information on a project.
	ProjectInfo(context.Context, *QueryProjectInfoRequest) (*QueryProjectInfoResponse, error)
	// Batches queries for all batches in the given project with pagination.
	Batches(context.Context, *QueryBatchesRequest) (*QueryBatchesResponse, error)
	// BatchInfo queries for information on a credit batch.
	BatchInfo(context.Context, *QueryBatchInfoRequest) (*QueryBatchInfoResponse, error)
	// Balance queries the balance (both tradable and retired) of a given credit
	// batch for a given account.
	Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
	// Supply queries the tradable and retired supply of a credit batch.
	Supply(context.Context, *QuerySupplyRequest) (*QuerySupplyResponse, error)
	// CreditTypes returns the list of allowed types that credit classes can have.
	// See Types/CreditType for more details.
	CreditTypes(context.Context, *QueryCreditTypesRequest) (*QueryCreditTypesResponse, error)
	// Params queries the ecocredit module parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// contains filtered or unexported methods
}

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

type QuerySupplyRequest

type QuerySupplyRequest struct {

	// batch_denom is the unique ID of credit batch to query.
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// contains filtered or unexported fields
}

QuerySupplyRequest is the Query/Supply request type.

func (*QuerySupplyRequest) Descriptor deprecated

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

Deprecated: Use QuerySupplyRequest.ProtoReflect.Descriptor instead.

func (*QuerySupplyRequest) GetBatchDenom

func (x *QuerySupplyRequest) GetBatchDenom() string

func (*QuerySupplyRequest) ProtoMessage

func (*QuerySupplyRequest) ProtoMessage()

func (*QuerySupplyRequest) ProtoReflect

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

func (*QuerySupplyRequest) Reset

func (x *QuerySupplyRequest) Reset()

func (*QuerySupplyRequest) String

func (x *QuerySupplyRequest) String() string

type QuerySupplyResponse

type QuerySupplyResponse struct {

	// tradable_supply is the decimal number of tradable credits in the batch
	// supply.
	TradableSupply string `protobuf:"bytes,1,opt,name=tradable_supply,json=tradableSupply,proto3" json:"tradable_supply,omitempty"`
	// retired_supply is the decimal number of retired credits in the batch
	// supply.
	RetiredSupply string `protobuf:"bytes,2,opt,name=retired_supply,json=retiredSupply,proto3" json:"retired_supply,omitempty"`
	// contains filtered or unexported fields
}

QuerySupplyResponse is the Query/Supply response type.

func (*QuerySupplyResponse) Descriptor deprecated

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

Deprecated: Use QuerySupplyResponse.ProtoReflect.Descriptor instead.

func (*QuerySupplyResponse) GetRetiredSupply

func (x *QuerySupplyResponse) GetRetiredSupply() string

func (*QuerySupplyResponse) GetTradableSupply

func (x *QuerySupplyResponse) GetTradableSupply() string

func (*QuerySupplyResponse) ProtoMessage

func (*QuerySupplyResponse) ProtoMessage()

func (*QuerySupplyResponse) ProtoReflect

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

func (*QuerySupplyResponse) Reset

func (x *QuerySupplyResponse) Reset()

func (*QuerySupplyResponse) String

func (x *QuerySupplyResponse) String() string

type StateStore

type StateStore interface {
	CreditTypeStore() CreditTypeStore
	ClassInfoStore() ClassInfoStore
	ClassIssuerStore() ClassIssuerStore
	ProjectInfoStore() ProjectInfoStore
	BatchInfoStore() BatchInfoStore
	ClassSequenceStore() ClassSequenceStore
	ProjectSequenceStore() ProjectSequenceStore
	BatchSequenceStore() BatchSequenceStore
	BatchBalanceStore() BatchBalanceStore
	BatchSupplyStore() BatchSupplyStore
	// 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) Cancel

func (UnimplementedMsgServer) CreateBatch

func (UnimplementedMsgServer) CreateClass

func (UnimplementedMsgServer) CreateProject

func (UnimplementedMsgServer) Retire

func (UnimplementedMsgServer) Send

func (UnimplementedMsgServer) UpdateClassAdmin

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Balance

func (UnimplementedQueryServer) BatchInfo

func (UnimplementedQueryServer) Batches

func (UnimplementedQueryServer) ClassInfo

func (UnimplementedQueryServer) Classes

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Projects

func (UnimplementedQueryServer) Supply

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

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