ecocreditv1

package
v1.1.0 Latest Latest
Warning

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

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

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_v1_events_proto protoreflect.FileDescriptor
View Source
var File_regen_ecocredit_v1_query_proto protoreflect.FileDescriptor
View Source
var File_regen_ecocredit_v1_state_proto protoreflect.FileDescriptor
View Source
var File_regen_ecocredit_v1_tx_proto protoreflect.FileDescriptor
View Source
var File_regen_ecocredit_v1_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "regen.ecocredit.v1.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: "MintBatchCredits",
			Handler:    _Msg_MintBatchCredits_Handler,
		},
		{
			MethodName: "SealBatch",
			Handler:    _Msg_SealBatch_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,
		},
		{
			MethodName: "UpdateProjectAdmin",
			Handler:    _Msg_UpdateProjectAdmin_Handler,
		},
		{
			MethodName: "UpdateProjectMetadata",
			Handler:    _Msg_UpdateProjectMetadata_Handler,
		},
		{
			MethodName: "Bridge",
			Handler:    _Msg_Bridge_Handler,
		},
		{
			MethodName: "BridgeReceive",
			Handler:    _Msg_BridgeReceive_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "regen/ecocredit/v1/tx.proto",
}

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

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "regen.ecocredit.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Classes",
			Handler:    _Query_Classes_Handler,
		},
		{
			MethodName: "ClassesByAdmin",
			Handler:    _Query_ClassesByAdmin_Handler,
		},
		{
			MethodName: "Class",
			Handler:    _Query_Class_Handler,
		},
		{
			MethodName: "ClassIssuers",
			Handler:    _Query_ClassIssuers_Handler,
		},
		{
			MethodName: "Projects",
			Handler:    _Query_Projects_Handler,
		},
		{
			MethodName: "ProjectsByClass",
			Handler:    _Query_ProjectsByClass_Handler,
		},
		{
			MethodName: "ProjectsByReferenceId",
			Handler:    _Query_ProjectsByReferenceId_Handler,
		},
		{
			MethodName: "ProjectsByAdmin",
			Handler:    _Query_ProjectsByAdmin_Handler,
		},
		{
			MethodName: "Project",
			Handler:    _Query_Project_Handler,
		},
		{
			MethodName: "Batches",
			Handler:    _Query_Batches_Handler,
		},
		{
			MethodName: "BatchesByIssuer",
			Handler:    _Query_BatchesByIssuer_Handler,
		},
		{
			MethodName: "BatchesByClass",
			Handler:    _Query_BatchesByClass_Handler,
		},
		{
			MethodName: "BatchesByProject",
			Handler:    _Query_BatchesByProject_Handler,
		},
		{
			MethodName: "Batch",
			Handler:    _Query_Batch_Handler,
		},
		{
			MethodName: "Balance",
			Handler:    _Query_Balance_Handler,
		},
		{
			MethodName: "Balances",
			Handler:    _Query_Balances_Handler,
		},
		{
			MethodName: "Supply",
			Handler:    _Query_Supply_Handler,
		},
		{
			MethodName: "CreditTypes",
			Handler:    _Query_CreditTypes_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "CreditType",
			Handler:    _Query_CreditType_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "regen/ecocredit/v1/query.proto",
}

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

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type Batch

type Batch struct {

	// key is the table row identifier of the credit batch used internally for
	// efficient lookups. This identifier is auto-incrementing.
	Key uint64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"`
	// issuer is the address that created the batch and which is
	// authorized to mint more credits if open=true.
	Issuer []byte `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// project_key is the table row identifier of the credit class used internally
	// for efficient lookups. This links a credit batch to a project.
	ProjectKey uint64 `protobuf:"varint,3,opt,name=project_key,json=projectKey,proto3" json:"project_key,omitempty"`
	// denom is the unique identifier of the credit batch formed from the
	// project id, the batch sequence number, and the start and end date of the
	// credit batch.
	Denom string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"`
	// metadata is any arbitrary metadata attached to the credit batch.
	Metadata string `protobuf:"bytes,5,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,6,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,7,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// issuance_date is the timestamp when the credit batch was issued.
	IssuanceDate *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=issuance_date,json=issuanceDate,proto3" json:"issuance_date,omitempty"`
	// open tells if it's possible to mint new credits in the future.
	// Once `open` is set to false, it can't be toggled any more.
	Open bool `protobuf:"varint,9,opt,name=open,proto3" json:"open,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Batch) Descriptor deprecated

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

Deprecated: Use Batch.ProtoReflect.Descriptor instead.

func (*Batch) GetDenom

func (x *Batch) GetDenom() string

func (*Batch) GetEndDate

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

func (*Batch) GetIssuanceDate

func (x *Batch) GetIssuanceDate() *timestamppb.Timestamp

func (*Batch) GetIssuer

func (x *Batch) GetIssuer() []byte

func (*Batch) GetKey

func (x *Batch) GetKey() uint64

func (*Batch) GetMetadata

func (x *Batch) GetMetadata() string

func (*Batch) GetOpen

func (x *Batch) GetOpen() bool

func (*Batch) GetProjectKey

func (x *Batch) GetProjectKey() uint64

func (*Batch) GetStartDate

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

func (*Batch) ProtoMessage

func (*Batch) ProtoMessage()

func (*Batch) ProtoReflect

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

func (*Batch) Reset

func (x *Batch) Reset()

func (*Batch) String

func (x *Batch) String() string

type BatchBalance

type BatchBalance struct {

	// batch_key is the table row identifier of the credit batch used internally
	// for efficient lookups. This links a batch balance to a credit batch.
	BatchKey uint64 `protobuf:"varint,1,opt,name=batch_key,json=batchKey,proto3" json:"batch_key,omitempty"`
	// address is the address of the account that owns the credits.
	Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// tradable_amount is the total number of tradable credits owned by address.
	TradableAmount string `protobuf:"bytes,3,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"`
	// retired_amount is the total number of retired credits owned by address.
	RetiredAmount string `protobuf:"bytes,4,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
	// escrowed_amount is the total number of escrowed credits owned by address
	// and held in escrow by the marketplace. Credits are held in escrow when a
	// sell order is created and taken out of escrow when the sell order is either
	// cancelled, updated with a reduced quantity, or processed.
	EscrowedAmount string `protobuf:"bytes,5,opt,name=escrowed_amount,json=escrowedAmount,proto3" json:"escrowed_amount,omitempty"`
	// contains filtered or unexported fields
}

BatchBalance stores each accounts 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) GetBatchKey

func (x *BatchBalance) GetBatchKey() uint64

func (*BatchBalance) GetEscrowedAmount

func (x *BatchBalance) GetEscrowedAmount() string

func (*BatchBalance) GetRetiredAmount

func (x *BatchBalance) GetRetiredAmount() string

func (*BatchBalance) GetTradableAmount

func (x *BatchBalance) GetTradableAmount() 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 BatchBalanceAddressBatchKeyIndexKey

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

func (BatchBalanceAddressBatchKeyIndexKey) WithAddress

func (BatchBalanceAddressBatchKeyIndexKey) WithAddressBatchKey

func (this BatchBalanceAddressBatchKeyIndexKey) WithAddressBatchKey(address []byte, batch_key uint64) BatchBalanceAddressBatchKeyIndexKey

type BatchBalanceBatchKeyAddressIndexKey

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

func (BatchBalanceBatchKeyAddressIndexKey) WithBatchKey

func (BatchBalanceBatchKeyAddressIndexKey) WithBatchKeyAddress

func (this BatchBalanceBatchKeyAddressIndexKey) WithBatchKeyAddress(batch_key uint64, address []byte) BatchBalanceBatchKeyAddressIndexKey

type BatchBalanceIndexKey

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

type BatchBalanceInfo

type BatchBalanceInfo struct {

	// address is the address of the account that owns the credits.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// batch_denom is the unique identifier of the credit batch.
	BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// tradable_amount is the total number of tradable credits owned by address.
	TradableAmount string `protobuf:"bytes,3,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"`
	// retired_amount is the total number of retired credits owned by address.
	RetiredAmount string `protobuf:"bytes,4,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
	// escrowed_amount is the total number of escrowed credits owned by address
	// and held in escrow by the marketplace. Credits are held in escrow when a
	// sell order is created and taken out of escrow when the sell order is either
	// cancelled, updated with a reduced quantity, or processed.
	EscrowedAmount string `protobuf:"bytes,5,opt,name=escrowed_amount,json=escrowedAmount,proto3" json:"escrowed_amount,omitempty"`
	// contains filtered or unexported fields
}

BatchBalanceInfo is the human-readable batch balance information.

func (*BatchBalanceInfo) Descriptor deprecated

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

Deprecated: Use BatchBalanceInfo.ProtoReflect.Descriptor instead.

func (*BatchBalanceInfo) GetAddress

func (x *BatchBalanceInfo) GetAddress() string

func (*BatchBalanceInfo) GetBatchDenom

func (x *BatchBalanceInfo) GetBatchDenom() string

func (*BatchBalanceInfo) GetEscrowedAmount

func (x *BatchBalanceInfo) GetEscrowedAmount() string

func (*BatchBalanceInfo) GetRetiredAmount

func (x *BatchBalanceInfo) GetRetiredAmount() string

func (*BatchBalanceInfo) GetTradableAmount

func (x *BatchBalanceInfo) GetTradableAmount() string

func (*BatchBalanceInfo) ProtoMessage

func (*BatchBalanceInfo) ProtoMessage()

func (*BatchBalanceInfo) ProtoReflect

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

func (*BatchBalanceInfo) Reset

func (x *BatchBalanceInfo) Reset()

func (*BatchBalanceInfo) String

func (x *BatchBalanceInfo) String() string

type BatchBalanceIterator

type BatchBalanceIterator struct {
	ormtable.Iterator
}

func (BatchBalanceIterator) Value

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

type BatchBalancePrimaryKey

type BatchBalancePrimaryKey = BatchBalanceAddressBatchKeyIndexKey

primary key starting index..

type BatchBalanceTable

type BatchBalanceTable 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_key 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_key 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 NewBatchBalanceTable

func NewBatchBalanceTable(db ormtable.Schema) (BatchBalanceTable, error)

type BatchContract

type BatchContract struct {

	// batch_key is the table row identifier of the credit batch used internally
	// for efficient lookups. This links an external contract to a credit batch.
	BatchKey uint64 `protobuf:"varint,1,opt,name=batch_key,json=batchKey,proto3" json:"batch_key,omitempty"`
	// class_key is the table row identifier of the credit class within which the
	// credit batch exists. A contract is unique within the scope of a credit class
	// to prevent malicious credit class issuers from blocking bridge operations
	// taking place within another credit class.
	ClassKey uint64 `protobuf:"varint,2,opt,name=class_key,json=classKey,proto3" json:"class_key,omitempty"`
	// contract is the address of the contract on the source chain that was
	// executed when creating the transaction. This address will be used when
	// sending credits back to the source chain.
	Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"`
	// contains filtered or unexported fields
}

BatchContract stores the contract address from which credits were bridged when credits are bridged from a contract-based chain, therefore ensuring that each credit batch corresponds to a single contract and credits that have been bridged will always be bridged back to the original contract.

func (*BatchContract) Descriptor deprecated

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

Deprecated: Use BatchContract.ProtoReflect.Descriptor instead.

func (*BatchContract) GetBatchKey

func (x *BatchContract) GetBatchKey() uint64

func (*BatchContract) GetClassKey

func (x *BatchContract) GetClassKey() uint64

func (*BatchContract) GetContract

func (x *BatchContract) GetContract() string

func (*BatchContract) ProtoMessage

func (*BatchContract) ProtoMessage()

func (*BatchContract) ProtoReflect

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

func (*BatchContract) Reset

func (x *BatchContract) Reset()

func (*BatchContract) String

func (x *BatchContract) String() string

type BatchContractBatchKeyIndexKey

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

func (BatchContractBatchKeyIndexKey) WithBatchKey

type BatchContractClassKeyContractIndexKey

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

func (BatchContractClassKeyContractIndexKey) WithClassKey

func (BatchContractClassKeyContractIndexKey) WithClassKeyContract

func (this BatchContractClassKeyContractIndexKey) WithClassKeyContract(class_key uint64, contract string) BatchContractClassKeyContractIndexKey

type BatchContractIndexKey

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

type BatchContractIterator

type BatchContractIterator struct {
	ormtable.Iterator
}

func (BatchContractIterator) Value

type BatchContractPrimaryKey

type BatchContractPrimaryKey = BatchContractBatchKeyIndexKey

primary key starting index..

type BatchContractTable

type BatchContractTable interface {
	Insert(ctx context.Context, batchContract *BatchContract) error
	Update(ctx context.Context, batchContract *BatchContract) error
	Save(ctx context.Context, batchContract *BatchContract) error
	Delete(ctx context.Context, batchContract *BatchContract) error
	Has(ctx context.Context, batch_key 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_key uint64) (*BatchContract, error)
	HasByClassKeyContract(ctx context.Context, class_key uint64, contract string) (found bool, err error)
	// GetByClassKeyContract returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	GetByClassKeyContract(ctx context.Context, class_key uint64, contract string) (*BatchContract, error)
	List(ctx context.Context, prefixKey BatchContractIndexKey, opts ...ormlist.Option) (BatchContractIterator, error)
	ListRange(ctx context.Context, from, to BatchContractIndexKey, opts ...ormlist.Option) (BatchContractIterator, error)
	DeleteBy(ctx context.Context, prefixKey BatchContractIndexKey) error
	DeleteRange(ctx context.Context, from, to BatchContractIndexKey) error
	// contains filtered or unexported methods
}

func NewBatchContractTable

func NewBatchContractTable(db ormtable.Schema) (BatchContractTable, error)

type BatchDenomIndexKey

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

func (BatchDenomIndexKey) WithDenom

func (this BatchDenomIndexKey) WithDenom(denom string) BatchDenomIndexKey

type BatchIndexKey

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

type BatchInfo

type BatchInfo struct {

	// issuer is the address that created the batch and the address authorized to
	// mint new credits to the credit batch if the credit batch is open.
	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// project_id is the unique identifier of the project within which this credit
	// batch was created.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// denom is the unique identifier of the credit batch formed from the project
	// name, batch sequence number and dates.
	Denom string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
	// metadata is any arbitrary metadata attached to the credit batch.
	Metadata string `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"`
	// issuance_date is the timestamp when the credit batch was issued.
	IssuanceDate *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=issuance_date,json=issuanceDate,proto3" json:"issuance_date,omitempty"`
	// open determines whether or not the credit batch is open, i.e. whether or
	// not new credits can be minted to the credit batch.
	Open bool `protobuf:"varint,8,opt,name=open,proto3" json:"open,omitempty"`
	// contains filtered or unexported fields
}

BatchInfo is the human-readable credit batch information.

func (*BatchInfo) Descriptor deprecated

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

Deprecated: Use BatchInfo.ProtoReflect.Descriptor instead.

func (*BatchInfo) GetDenom

func (x *BatchInfo) GetDenom() string

func (*BatchInfo) GetEndDate

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

func (*BatchInfo) GetIssuanceDate

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

func (*BatchInfo) GetIssuer

func (x *BatchInfo) GetIssuer() string

func (*BatchInfo) GetMetadata

func (x *BatchInfo) GetMetadata() string

func (*BatchInfo) GetOpen

func (x *BatchInfo) GetOpen() bool

func (*BatchInfo) GetProjectId

func (x *BatchInfo) GetProjectId() string

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 BatchIssuance

type BatchIssuance struct {

	// recipient is the address of the account receiving the issued credits.
	Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// tradable_amount is the amount of credits that the recipient will receive in
	// a tradable state. The number of decimal places must be less than or equal
	// to the credit type precision.
	TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"`
	// retired_amount is the amount of credits that the recipient will receive in
	// a retired state. The number of decimal places must be less than or equal to
	// the credit type precision.
	RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
	// retirement_jurisdiction is the jurisdiction of the recipient and is only
	// required if retired_amount is positive. A jurisdiction has the following
	// format: <country-code>[-<sub-national-code>[ <postal-code>]]
	// The country-code must be 2 alphabetic characters, the sub-national-code
	// can be 1-3 alphanumeric characters, and the postal-code can be up to 64
	// alphanumeric characters. Only the country-code is required, while the
	// sub-national-code and postal-code are optional and can be added for
	// increased precision.
	RetirementJurisdiction string `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

BatchIssuance represents a simple structure for a credit batch issuance.

func (*BatchIssuance) Descriptor deprecated

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

Deprecated: Use BatchIssuance.ProtoReflect.Descriptor instead.

func (*BatchIssuance) GetRecipient

func (x *BatchIssuance) GetRecipient() string

func (*BatchIssuance) GetRetiredAmount

func (x *BatchIssuance) GetRetiredAmount() string

func (*BatchIssuance) GetRetirementJurisdiction

func (x *BatchIssuance) GetRetirementJurisdiction() string

func (*BatchIssuance) GetTradableAmount

func (x *BatchIssuance) GetTradableAmount() string

func (*BatchIssuance) ProtoMessage

func (*BatchIssuance) ProtoMessage()

func (*BatchIssuance) ProtoReflect

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

func (*BatchIssuance) Reset

func (x *BatchIssuance) Reset()

func (*BatchIssuance) String

func (x *BatchIssuance) String() string

type BatchIssuerIndexKey

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

func (BatchIssuerIndexKey) WithIssuer

func (this BatchIssuerIndexKey) WithIssuer(issuer []byte) BatchIssuerIndexKey

type BatchIterator

type BatchIterator struct {
	ormtable.Iterator
}

func (BatchIterator) Value

func (i BatchIterator) Value() (*Batch, error)

type BatchKeyIndexKey

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

func (BatchKeyIndexKey) WithKey

func (this BatchKeyIndexKey) WithKey(key uint64) BatchKeyIndexKey

type BatchPrimaryKey

type BatchPrimaryKey = BatchKeyIndexKey

primary key starting index..

type BatchProjectKeyIndexKey

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

func (BatchProjectKeyIndexKey) WithProjectKey

func (this BatchProjectKeyIndexKey) WithProjectKey(project_key uint64) BatchProjectKeyIndexKey

type BatchSequence

type BatchSequence struct {

	// project_key is the table row identifier of the project used internally for
	// efficient lookups. This links a batch sequence to a project.
	ProjectKey uint64 `protobuf:"varint,1,opt,name=project_key,json=projectKey,proto3" json:"project_key,omitempty"`
	// next_sequence is the next sequence number for a credit batch within the
	// project. The sequence number is used to generate a batch denom.
	NextSequence uint64 `protobuf:"varint,2,opt,name=next_sequence,json=nextSequence,proto3" json:"next_sequence,omitempty"`
	// contains filtered or unexported fields
}

BatchSequence stores and increments the sequence number for credit batches within a project.

func (*BatchSequence) Descriptor deprecated

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

Deprecated: Use BatchSequence.ProtoReflect.Descriptor instead.

func (*BatchSequence) GetNextSequence

func (x *BatchSequence) GetNextSequence() uint64

func (*BatchSequence) GetProjectKey

func (x *BatchSequence) GetProjectKey() uint64

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 = BatchSequenceProjectKeyIndexKey

primary key starting index..

type BatchSequenceProjectKeyIndexKey

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

func (BatchSequenceProjectKeyIndexKey) WithProjectKey

type BatchSequenceTable

type BatchSequenceTable 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_key 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, project_key uint64) (*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 NewBatchSequenceTable

func NewBatchSequenceTable(db ormtable.Schema) (BatchSequenceTable, error)

type BatchStartDateIndexKey

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

func (BatchStartDateIndexKey) WithStartDate

func (this BatchStartDateIndexKey) WithStartDate(start_date *timestamppb.Timestamp) BatchStartDateIndexKey

type BatchSupply

type BatchSupply struct {

	// batch_key is the table row identifier of the credit batch used internally
	// for efficient lookups. This links a batch supply to a credit batch.
	BatchKey uint64 `protobuf:"varint,1,opt,name=batch_key,json=batchKey,proto3" json:"batch_key,omitempty"`
	// tradable_amount is the total number of tradable credits in the credit
	// batch. Tradable credits may be retired in which case they will be removed
	// from tradable_amount and tracked in retired_amount. Tradable credits may
	// also be cancelled in which case they will be removed from tradable_amount
	// and tracked in cancelled_amount. The sum of the tradable, retired, and
	// cancelled amounts will always equal 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 in the
	// credit batch. The sum of the tradable, retired, and cancelled amounts will
	// always equal the original credit issuance amount.
	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 the tradable,
	// retired, and cancelled amounts 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 stores the supply of credits for a credit batch.

func (*BatchSupply) Descriptor deprecated

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

Deprecated: Use BatchSupply.ProtoReflect.Descriptor instead.

func (*BatchSupply) GetBatchKey

func (x *BatchSupply) GetBatchKey() 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 BatchSupplyBatchKeyIndexKey

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

func (BatchSupplyBatchKeyIndexKey) WithBatchKey

func (this BatchSupplyBatchKeyIndexKey) WithBatchKey(batch_key uint64) BatchSupplyBatchKeyIndexKey

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 = BatchSupplyBatchKeyIndexKey

primary key starting index..

type BatchSupplyTable

type BatchSupplyTable 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_key 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_key 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 NewBatchSupplyTable

func NewBatchSupplyTable(db ormtable.Schema) (BatchSupplyTable, error)

type BatchTable

type BatchTable interface {
	Insert(ctx context.Context, batch *Batch) error
	InsertReturningID(ctx context.Context, batch *Batch) (uint64, error)
	Update(ctx context.Context, batch *Batch) error
	Save(ctx context.Context, batch *Batch) error
	Delete(ctx context.Context, batch *Batch) error
	Has(ctx context.Context, key 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, key uint64) (*Batch, error)
	HasByDenom(ctx context.Context, denom string) (found bool, err error)
	// GetByDenom returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	GetByDenom(ctx context.Context, denom string) (*Batch, error)
	List(ctx context.Context, prefixKey BatchIndexKey, opts ...ormlist.Option) (BatchIterator, error)
	ListRange(ctx context.Context, from, to BatchIndexKey, opts ...ormlist.Option) (BatchIterator, error)
	DeleteBy(ctx context.Context, prefixKey BatchIndexKey) error
	DeleteRange(ctx context.Context, from, to BatchIndexKey) error
	// contains filtered or unexported methods
}

func NewBatchTable

func NewBatchTable(db ormtable.Schema) (BatchTable, error)

type Class

type Class struct {

	// key is the table row identifier of the credit class used internally for
	// efficient lookups. This identifier is auto-incrementing.
	Key uint64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"`
	// id is the unique identifier of the credit class auto-generated from the
	// credit type abbreviation and the credit class sequence number.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// admin is the admin of the credit class.
	Admin []byte `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"`
	// metadata is any arbitrary metadata to attached to the credit class.
	Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// credit_type_abbrev is the abbreviation of the credit type.
	CreditTypeAbbrev string `protobuf:"bytes,5,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Class) Descriptor deprecated

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

Deprecated: Use Class.ProtoReflect.Descriptor instead.

func (*Class) GetAdmin

func (x *Class) GetAdmin() []byte

func (*Class) GetCreditTypeAbbrev

func (x *Class) GetCreditTypeAbbrev() string

func (*Class) GetId

func (x *Class) GetId() string

func (*Class) GetKey

func (x *Class) GetKey() uint64

func (*Class) GetMetadata

func (x *Class) GetMetadata() string

func (*Class) ProtoMessage

func (*Class) ProtoMessage()

func (*Class) ProtoReflect

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

func (*Class) Reset

func (x *Class) Reset()

func (*Class) String

func (x *Class) String() string

type ClassAdminIndexKey

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

func (ClassAdminIndexKey) WithAdmin

func (this ClassAdminIndexKey) WithAdmin(admin []byte) ClassAdminIndexKey

type ClassCreditTypeAbbrevIndexKey

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

func (ClassCreditTypeAbbrevIndexKey) WithCreditTypeAbbrev

func (this ClassCreditTypeAbbrevIndexKey) WithCreditTypeAbbrev(credit_type_abbrev string) ClassCreditTypeAbbrevIndexKey

type ClassIdIndexKey

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

func (ClassIdIndexKey) WithId

func (this ClassIdIndexKey) WithId(id string) ClassIdIndexKey

type ClassIndexKey

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

type ClassInfo

type ClassInfo struct {

	// id is the unique identifier of the credit class.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// admin is the admin of the credit class.
	Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"`
	// metadata is the arbitrary metadata attached to the credit class.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// credit_type_abbrev is the abbreviation of the credit type within which this
	// credit class was created.
	CreditTypeAbbrev string `protobuf:"bytes,4,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"`
	// contains filtered or unexported fields
}

ClassInfo is the human-readable credit class information.

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) GetCreditTypeAbbrev

func (x *ClassInfo) GetCreditTypeAbbrev() string

func (*ClassInfo) GetId

func (x *ClassInfo) GetId() string

func (*ClassInfo) GetMetadata

func (x *ClassInfo) GetMetadata() 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 ClassIssuer

type ClassIssuer struct {

	// class_key is the table row identifier of the credit class used internally
	// for efficient lookups. This links a class issuer to a credit class.
	ClassKey uint64 `protobuf:"varint,1,opt,name=class_key,json=classKey,proto3" json:"class_key,omitempty"`
	// issuer is the approved issuer of the credit class.
	Issuer []byte `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) GetClassKey

func (x *ClassIssuer) GetClassKey() uint64

func (*ClassIssuer) GetIssuer

func (x *ClassIssuer) GetIssuer() []byte

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 ClassIssuerClassKeyIssuerIndexKey

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

func (ClassIssuerClassKeyIssuerIndexKey) WithClassKey

func (ClassIssuerClassKeyIssuerIndexKey) WithClassKeyIssuer

func (this ClassIssuerClassKeyIssuerIndexKey) WithClassKeyIssuer(class_key uint64, issuer []byte) ClassIssuerClassKeyIssuerIndexKey

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 = ClassIssuerClassKeyIssuerIndexKey

primary key starting index..

type ClassIssuerTable

type ClassIssuerTable 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_key uint64, issuer []byte) (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_key uint64, issuer []byte) (*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 NewClassIssuerTable

func NewClassIssuerTable(db ormtable.Schema) (ClassIssuerTable, error)

type ClassIterator

type ClassIterator struct {
	ormtable.Iterator
}

func (ClassIterator) Value

func (i ClassIterator) Value() (*Class, error)

type ClassKeyIndexKey

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

func (ClassKeyIndexKey) WithKey

func (this ClassKeyIndexKey) WithKey(key uint64) ClassKeyIndexKey

type ClassPrimaryKey

type ClassPrimaryKey = ClassKeyIndexKey

primary key starting index..

type ClassSequence

type ClassSequence struct {

	// credit_type_abbrev is the credit type abbreviation. This links a class
	// sequence to a credit type.
	CreditTypeAbbrev string `protobuf:"bytes,1,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"`
	// next_sequence is the next sequence number for a credit class within the
	// credit type. The sequence number is used to generate a class id.
	NextSequence uint64 `protobuf:"varint,2,opt,name=next_sequence,json=nextSequence,proto3" json:"next_sequence,omitempty"`
	// contains filtered or unexported fields
}

ClassSequence stores and increments the sequence number for credit classes within a credit type.

func (*ClassSequence) Descriptor deprecated

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

Deprecated: Use ClassSequence.ProtoReflect.Descriptor instead.

func (*ClassSequence) GetCreditTypeAbbrev

func (x *ClassSequence) GetCreditTypeAbbrev() string

func (*ClassSequence) GetNextSequence

func (x *ClassSequence) GetNextSequence() 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 ClassSequenceCreditTypeAbbrevIndexKey

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

func (ClassSequenceCreditTypeAbbrevIndexKey) WithCreditTypeAbbrev

func (this ClassSequenceCreditTypeAbbrevIndexKey) WithCreditTypeAbbrev(credit_type_abbrev string) ClassSequenceCreditTypeAbbrevIndexKey

type ClassSequenceIndexKey

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

type ClassSequenceIterator

type ClassSequenceIterator struct {
	ormtable.Iterator
}

func (ClassSequenceIterator) Value

type ClassSequencePrimaryKey

type ClassSequencePrimaryKey = ClassSequenceCreditTypeAbbrevIndexKey

primary key starting index..

type ClassSequenceTable

type ClassSequenceTable 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_abbrev 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_abbrev 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 NewClassSequenceTable

func NewClassSequenceTable(db ormtable.Schema) (ClassSequenceTable, error)

type ClassTable

type ClassTable interface {
	Insert(ctx context.Context, class *Class) error
	InsertReturningID(ctx context.Context, class *Class) (uint64, error)
	Update(ctx context.Context, class *Class) error
	Save(ctx context.Context, class *Class) error
	Delete(ctx context.Context, class *Class) error
	Has(ctx context.Context, key 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, key uint64) (*Class, error)
	HasById(ctx context.Context, id string) (found bool, err error)
	// GetById returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	GetById(ctx context.Context, id string) (*Class, error)
	List(ctx context.Context, prefixKey ClassIndexKey, opts ...ormlist.Option) (ClassIterator, error)
	ListRange(ctx context.Context, from, to ClassIndexKey, opts ...ormlist.Option) (ClassIterator, error)
	DeleteBy(ctx context.Context, prefixKey ClassIndexKey) error
	DeleteRange(ctx context.Context, from, to ClassIndexKey) error
	// contains filtered or unexported methods
}

func NewClassTable

func NewClassTable(db ormtable.Schema) (ClassTable, 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"`
	// name is the name of the credit type (e.g. carbon, biodiversity).
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// unit is the measurement unit of the credit type (e.g. kg, ton).
	Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"`
	// precision is the decimal precision of the credit type.
	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 CreditTypeProposal

type CreditTypeProposal struct {

	// title is the title of the proposal.
	Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	// description is the description of the proposal.
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// credit_type is the credit type to be added to the network if the proposal
	// passes.
	CreditType *CreditType `protobuf:"bytes,3,opt,name=credit_type,json=creditType,proto3" json:"credit_type,omitempty"`
	// contains filtered or unexported fields
}

CreditTypeProposal is a gov Content type for adding a credit type.

func (*CreditTypeProposal) Descriptor deprecated

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

Deprecated: Use CreditTypeProposal.ProtoReflect.Descriptor instead.

func (*CreditTypeProposal) GetCreditType

func (x *CreditTypeProposal) GetCreditType() *CreditType

func (*CreditTypeProposal) GetDescription

func (x *CreditTypeProposal) GetDescription() string

func (*CreditTypeProposal) GetTitle

func (x *CreditTypeProposal) GetTitle() string

func (*CreditTypeProposal) ProtoMessage

func (*CreditTypeProposal) ProtoMessage()

func (*CreditTypeProposal) ProtoReflect

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

func (*CreditTypeProposal) Reset

func (x *CreditTypeProposal) Reset()

func (*CreditTypeProposal) String

func (x *CreditTypeProposal) String() string

type CreditTypeTable

type CreditTypeTable 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 NewCreditTypeTable

func NewCreditTypeTable(db ormtable.Schema) (CreditTypeTable, error)

type Credits

type Credits struct {

	// batch_denom is the denom of the credit batch.
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// amount is the amount of credits.
	Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Credits represents a simple structure for credits.

func (*Credits) Descriptor deprecated

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

Deprecated: Use Credits.ProtoReflect.Descriptor instead.

func (*Credits) GetAmount

func (x *Credits) GetAmount() string

func (*Credits) GetBatchDenom

func (x *Credits) GetBatchDenom() string

func (*Credits) ProtoMessage

func (*Credits) ProtoMessage()

func (*Credits) ProtoReflect

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

func (*Credits) Reset

func (x *Credits) Reset()

func (*Credits) String

func (x *Credits) String() string

type EventAddCreditType

type EventAddCreditType struct {

	// abbreviation is the abbreviation of the credit type.
	Abbreviation string `protobuf:"bytes,1,opt,name=abbreviation,proto3" json:"abbreviation,omitempty"`
	// contains filtered or unexported fields
}

EventAddCreditType is emitted when governance approves a new credit type.

func (*EventAddCreditType) Descriptor deprecated

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

Deprecated: Use EventAddCreditType.ProtoReflect.Descriptor instead.

func (*EventAddCreditType) GetAbbreviation

func (x *EventAddCreditType) GetAbbreviation() string

func (*EventAddCreditType) ProtoMessage

func (*EventAddCreditType) ProtoMessage()

func (*EventAddCreditType) ProtoReflect

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

func (*EventAddCreditType) Reset

func (x *EventAddCreditType) Reset()

func (*EventAddCreditType) String

func (x *EventAddCreditType) String() string

type EventBridge

type EventBridge struct {

	// target is the target chain.
	Target string `protobuf:"bytes,1,opt,name=target,proto3" json:"target,omitempty"`
	// recipient is the recipient address.
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// contract is the contract address.
	Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"`
	// amount is the amount of credits.
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// owner is the owner address.
	//
	// Since Revision 1
	Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

EventBridge is emitted when credits are bridged to another chain.

func (*EventBridge) Descriptor deprecated

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

Deprecated: Use EventBridge.ProtoReflect.Descriptor instead.

func (*EventBridge) GetAmount

func (x *EventBridge) GetAmount() string

func (*EventBridge) GetContract

func (x *EventBridge) GetContract() string

func (*EventBridge) GetOwner added in v1.1.0

func (x *EventBridge) GetOwner() string

func (*EventBridge) GetRecipient

func (x *EventBridge) GetRecipient() string

func (*EventBridge) GetTarget

func (x *EventBridge) GetTarget() string

func (*EventBridge) ProtoMessage

func (*EventBridge) ProtoMessage()

func (*EventBridge) ProtoReflect

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

func (*EventBridge) Reset

func (x *EventBridge) Reset()

func (*EventBridge) String

func (x *EventBridge) String() string

type EventBridgeReceive

type EventBridgeReceive struct {

	// project_id is the unique identifier of the project that was either created
	// or the existing project within which the credit batch exists.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// batch_denom is the unique identifier of the credit batch either created
	// or within which the credits were dynamically minted.
	BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// contains filtered or unexported fields
}

EventBridgeReceive is emitted when credits are bridged from another chain.

func (*EventBridgeReceive) Descriptor deprecated

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

Deprecated: Use EventBridgeReceive.ProtoReflect.Descriptor instead.

func (*EventBridgeReceive) GetBatchDenom

func (x *EventBridgeReceive) GetBatchDenom() string

func (*EventBridgeReceive) GetProjectId

func (x *EventBridgeReceive) GetProjectId() string

func (*EventBridgeReceive) ProtoMessage

func (*EventBridgeReceive) ProtoMessage()

func (*EventBridgeReceive) ProtoReflect

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

func (*EventBridgeReceive) Reset

func (x *EventBridgeReceive) Reset()

func (*EventBridgeReceive) String

func (x *EventBridgeReceive) String() string

type EventCancel

type EventCancel struct {

	// owner is the address of the account that cancelled the credits.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// batch_denom is the unique identifier of the credit batch within which the
	// credits were cancelled.
	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"`
	// reason is the reason the credits were cancelled.
	Reason string `protobuf:"bytes,4,opt,name=reason,proto3" json:"reason,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) GetOwner

func (x *EventCancel) GetOwner() string

func (*EventCancel) GetReason

func (x *EventCancel) GetReason() 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 {

	// batch_denom is the unique identifier of the credit batch.
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// origin_tx is the transaction from another chain or registry that triggered
	// the creation of the credit batch.
	OriginTx *OriginTx `protobuf:"bytes,2,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,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) GetOriginTx

func (x *EventCreateBatch) GetOriginTx() *OriginTx

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 identifier of the credit class.
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,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) 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 identifier of the project.
	ProjectId string `protobuf:"bytes,1,opt,name=project_id,json=projectId,proto3" json:"project_id,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) GetProjectId

func (x *EventCreateProject) GetProjectId() 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 EventMint

type EventMint struct {

	// batch_denom is the unique identifier of the credit batch within which the
	// credits were minted.
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// tradable_amount is the amount of tradable credits minted.
	TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"`
	// retired_amount is the amount of retired credits minted.
	RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
	// contains filtered or unexported fields
}

EventMint is an event emitted when credits are minted either when creating a credit batch or when bridging assets from another chain or registry.

func (*EventMint) Descriptor deprecated

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

Deprecated: Use EventMint.ProtoReflect.Descriptor instead.

func (*EventMint) GetBatchDenom

func (x *EventMint) GetBatchDenom() string

func (*EventMint) GetRetiredAmount

func (x *EventMint) GetRetiredAmount() string

func (*EventMint) GetTradableAmount

func (x *EventMint) GetTradableAmount() string

func (*EventMint) ProtoMessage

func (*EventMint) ProtoMessage()

func (*EventMint) ProtoReflect

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

func (*EventMint) Reset

func (x *EventMint) Reset()

func (*EventMint) String

func (x *EventMint) String() string

type EventMintBatchCredits

type EventMintBatchCredits struct {

	// batch_denom is the unique identifier of the credit batch within which the
	// credits were minted.
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// origin_tx is the transaction from another chain or registry that triggered
	// the minting of credits within the credit batch.
	OriginTx *OriginTx `protobuf:"bytes,2,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"`
	// contains filtered or unexported fields
}

EventMintBatchCredits is an event emitted when credits are minted to an existing open credit batch.

func (*EventMintBatchCredits) Descriptor deprecated

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

Deprecated: Use EventMintBatchCredits.ProtoReflect.Descriptor instead.

func (*EventMintBatchCredits) GetBatchDenom

func (x *EventMintBatchCredits) GetBatchDenom() string

func (*EventMintBatchCredits) GetOriginTx

func (x *EventMintBatchCredits) GetOriginTx() *OriginTx

func (*EventMintBatchCredits) ProtoMessage

func (*EventMintBatchCredits) ProtoMessage()

func (*EventMintBatchCredits) ProtoReflect

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

func (*EventMintBatchCredits) Reset

func (x *EventMintBatchCredits) Reset()

func (*EventMintBatchCredits) String

func (x *EventMintBatchCredits) String() string

type EventRetire

type EventRetire struct {

	// owner is the address of the account that owns the retired credits. This
	// will be the account receiving credits in the case that credits were retired
	// upon issuance using Msg/CreateBatch, retired upon transfer using Msg/Send,
	// retired upon taking from a basket using basket.Msg/Take, or retired upon
	// purchase using marketplace.Msg/BuyDirect.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// batch_denom is the unique identifier of the credit batch within which the
	// credits were retired.
	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"`
	// jurisdiction is the jurisdiction 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.
	Jurisdiction string `protobuf:"bytes,4,opt,name=jurisdiction,proto3" json:"jurisdiction,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) GetJurisdiction

func (x *EventRetire) GetJurisdiction() string

func (*EventRetire) GetOwner

func (x *EventRetire) GetOwner() 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 EventSealBatch

type EventSealBatch struct {

	// batch_denom is the denom of the batch that was sealed.
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// contains filtered or unexported fields
}

EventSealBatch is emitted when a batch is sealed.

func (*EventSealBatch) Descriptor deprecated

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

Deprecated: Use EventSealBatch.ProtoReflect.Descriptor instead.

func (*EventSealBatch) GetBatchDenom

func (x *EventSealBatch) GetBatchDenom() string

func (*EventSealBatch) ProtoMessage

func (*EventSealBatch) ProtoMessage()

func (*EventSealBatch) ProtoReflect

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

func (*EventSealBatch) Reset

func (x *EventSealBatch) Reset()

func (*EventSealBatch) String

func (x *EventSealBatch) String() string

type EventTransfer

type EventTransfer struct {

	// sender is the sender of the credits. In the case that the credits were
	// transferred from a base account, this will be the account address. In the
	// case that the credits were transferred from a module, this will be the
	// module address (i.e. either the ecocredit module or basket submodule).
	Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
	// recipient is the recipient of the credits. In the case that the credits
	// were transferred to a base account, this will be the account address. In
	// the case that the credits were transferred to a module, this will be the
	// module address (i.e. either the ecocredit module or basket submodule).
	Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// batch_denom is the unique identifier of the 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
}

EventTransfer is an event emitted when credits are transferred from one account to another including transfers to or from a module account.

func (*EventTransfer) Descriptor deprecated

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

Deprecated: Use EventTransfer.ProtoReflect.Descriptor instead.

func (*EventTransfer) GetBatchDenom

func (x *EventTransfer) GetBatchDenom() string

func (*EventTransfer) GetRecipient

func (x *EventTransfer) GetRecipient() string

func (*EventTransfer) GetRetiredAmount

func (x *EventTransfer) GetRetiredAmount() string

func (*EventTransfer) GetSender

func (x *EventTransfer) GetSender() string

func (*EventTransfer) GetTradableAmount

func (x *EventTransfer) GetTradableAmount() string

func (*EventTransfer) ProtoMessage

func (*EventTransfer) ProtoMessage()

func (*EventTransfer) ProtoReflect

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

func (*EventTransfer) Reset

func (x *EventTransfer) Reset()

func (*EventTransfer) String

func (x *EventTransfer) String() string

type EventUpdateClassAdmin

type EventUpdateClassAdmin struct {

	// class_id is the unique identifier of the class that was updated.
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// contains filtered or unexported fields
}

EventUpdateClassAdmin is emitted when the admin address of a credit class is changed.

func (*EventUpdateClassAdmin) Descriptor deprecated

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

Deprecated: Use EventUpdateClassAdmin.ProtoReflect.Descriptor instead.

func (*EventUpdateClassAdmin) GetClassId

func (x *EventUpdateClassAdmin) GetClassId() string

func (*EventUpdateClassAdmin) ProtoMessage

func (*EventUpdateClassAdmin) ProtoMessage()

func (*EventUpdateClassAdmin) ProtoReflect

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

func (*EventUpdateClassAdmin) Reset

func (x *EventUpdateClassAdmin) Reset()

func (*EventUpdateClassAdmin) String

func (x *EventUpdateClassAdmin) String() string

type EventUpdateClassIssuers

type EventUpdateClassIssuers struct {

	// class_id is the unique identifier of the class that was updated.
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// contains filtered or unexported fields
}

EventUpdateClassIssuers is emitted when the issuer list for a credit class is updated.

func (*EventUpdateClassIssuers) Descriptor deprecated

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

Deprecated: Use EventUpdateClassIssuers.ProtoReflect.Descriptor instead.

func (*EventUpdateClassIssuers) GetClassId

func (x *EventUpdateClassIssuers) GetClassId() string

func (*EventUpdateClassIssuers) ProtoMessage

func (*EventUpdateClassIssuers) ProtoMessage()

func (*EventUpdateClassIssuers) ProtoReflect

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

func (*EventUpdateClassIssuers) Reset

func (x *EventUpdateClassIssuers) Reset()

func (*EventUpdateClassIssuers) String

func (x *EventUpdateClassIssuers) String() string

type EventUpdateClassMetadata

type EventUpdateClassMetadata struct {

	// class_id is the unique identifier of the class that was updated.
	ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// contains filtered or unexported fields
}

EventUpdateClassMetadata is emitted when the credit class metadata is changed.

func (*EventUpdateClassMetadata) Descriptor deprecated

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

Deprecated: Use EventUpdateClassMetadata.ProtoReflect.Descriptor instead.

func (*EventUpdateClassMetadata) GetClassId

func (x *EventUpdateClassMetadata) GetClassId() string

func (*EventUpdateClassMetadata) ProtoMessage

func (*EventUpdateClassMetadata) ProtoMessage()

func (*EventUpdateClassMetadata) ProtoReflect

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

func (*EventUpdateClassMetadata) Reset

func (x *EventUpdateClassMetadata) Reset()

func (*EventUpdateClassMetadata) String

func (x *EventUpdateClassMetadata) String() string

type EventUpdateProjectAdmin

type EventUpdateProjectAdmin struct {

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

EventUpdateProjectAdmin is emitted when the project admin is changed.

func (*EventUpdateProjectAdmin) Descriptor deprecated

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

Deprecated: Use EventUpdateProjectAdmin.ProtoReflect.Descriptor instead.

func (*EventUpdateProjectAdmin) GetProjectId

func (x *EventUpdateProjectAdmin) GetProjectId() string

func (*EventUpdateProjectAdmin) ProtoMessage

func (*EventUpdateProjectAdmin) ProtoMessage()

func (*EventUpdateProjectAdmin) ProtoReflect

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

func (*EventUpdateProjectAdmin) Reset

func (x *EventUpdateProjectAdmin) Reset()

func (*EventUpdateProjectAdmin) String

func (x *EventUpdateProjectAdmin) String() string

type EventUpdateProjectMetadata

type EventUpdateProjectMetadata struct {

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

EventUpdateProjectMetadata is emitted when the project metadata is changed.

func (*EventUpdateProjectMetadata) Descriptor deprecated

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

Deprecated: Use EventUpdateProjectMetadata.ProtoReflect.Descriptor instead.

func (*EventUpdateProjectMetadata) GetProjectId

func (x *EventUpdateProjectMetadata) GetProjectId() string

func (*EventUpdateProjectMetadata) ProtoMessage

func (*EventUpdateProjectMetadata) ProtoMessage()

func (*EventUpdateProjectMetadata) ProtoReflect

func (*EventUpdateProjectMetadata) Reset

func (x *EventUpdateProjectMetadata) Reset()

func (*EventUpdateProjectMetadata) String

func (x *EventUpdateProjectMetadata) String() string

type MsgBridge

type MsgBridge struct {

	// owner is the address of the account that owns the credits being bridged.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// target is the name of the target chain or registry.
	Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// recipient is the address of the account receiving the bridged credits.
	Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// credits specifies a credit batch and the number of credits being bridged.
	Credits []*Credits `protobuf:"bytes,4,rep,name=credits,proto3" json:"credits,omitempty"`
	// contains filtered or unexported fields
}

MsgBridge is the Msg/Bridge request type.

func (*MsgBridge) Descriptor deprecated

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

Deprecated: Use MsgBridge.ProtoReflect.Descriptor instead.

func (*MsgBridge) GetCredits

func (x *MsgBridge) GetCredits() []*Credits

func (*MsgBridge) GetOwner

func (x *MsgBridge) GetOwner() string

func (*MsgBridge) GetRecipient

func (x *MsgBridge) GetRecipient() string

func (*MsgBridge) GetTarget

func (x *MsgBridge) GetTarget() string

func (*MsgBridge) ProtoMessage

func (*MsgBridge) ProtoMessage()

func (*MsgBridge) ProtoReflect

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

func (*MsgBridge) Reset

func (x *MsgBridge) Reset()

func (*MsgBridge) String

func (x *MsgBridge) String() string

type MsgBridgeReceive

type MsgBridgeReceive struct {

	// issuer is the account address of the service bridging the credits.
	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// class_id is the unique identifier of the credit class within which the
	// project and credit batch already exist or will be created.
	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// project defines the project information for the bridged credits.
	Project *MsgBridgeReceive_Project `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"`
	// batch defines the credit batch information for the bridged credits.
	Batch *MsgBridgeReceive_Batch `protobuf:"bytes,4,opt,name=batch,proto3" json:"batch,omitempty"`
	// origin_tx is a reference to a transaction which caused the transfer from
	// another chain or registry.
	OriginTx *OriginTx `protobuf:"bytes,5,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"`
	// contains filtered or unexported fields
}

MsgBridgeReceive is the Msg/BridgeReceive request type.

func (*MsgBridgeReceive) Descriptor deprecated

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

Deprecated: Use MsgBridgeReceive.ProtoReflect.Descriptor instead.

func (*MsgBridgeReceive) GetBatch

func (*MsgBridgeReceive) GetClassId

func (x *MsgBridgeReceive) GetClassId() string

func (*MsgBridgeReceive) GetIssuer

func (x *MsgBridgeReceive) GetIssuer() string

func (*MsgBridgeReceive) GetOriginTx

func (x *MsgBridgeReceive) GetOriginTx() *OriginTx

func (*MsgBridgeReceive) GetProject

func (x *MsgBridgeReceive) GetProject() *MsgBridgeReceive_Project

func (*MsgBridgeReceive) ProtoMessage

func (*MsgBridgeReceive) ProtoMessage()

func (*MsgBridgeReceive) ProtoReflect

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

func (*MsgBridgeReceive) Reset

func (x *MsgBridgeReceive) Reset()

func (*MsgBridgeReceive) String

func (x *MsgBridgeReceive) String() string

type MsgBridgeReceiveResponse

type MsgBridgeReceiveResponse struct {

	// batch_denom is the unique identifier of the credit batch either created
	// or within which the credits were dynamically minted.
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// project_id is the unique identifier of the project that was either created
	// or the existing project within which the credit batch exists.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// contains filtered or unexported fields
}

MsgBridgeReceiveResponse is the Msg/BridgeReceive response type.

func (*MsgBridgeReceiveResponse) Descriptor deprecated

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

Deprecated: Use MsgBridgeReceiveResponse.ProtoReflect.Descriptor instead.

func (*MsgBridgeReceiveResponse) GetBatchDenom

func (x *MsgBridgeReceiveResponse) GetBatchDenom() string

func (*MsgBridgeReceiveResponse) GetProjectId

func (x *MsgBridgeReceiveResponse) GetProjectId() string

func (*MsgBridgeReceiveResponse) ProtoMessage

func (*MsgBridgeReceiveResponse) ProtoMessage()

func (*MsgBridgeReceiveResponse) ProtoReflect

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

func (*MsgBridgeReceiveResponse) Reset

func (x *MsgBridgeReceiveResponse) Reset()

func (*MsgBridgeReceiveResponse) String

func (x *MsgBridgeReceiveResponse) String() string

type MsgBridgeReceive_Batch

type MsgBridgeReceive_Batch struct {

	// recipient is the recipient of the bridged credits.
	Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"`
	// amount is the amount of credits being bridged.
	Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
	// start_date is the beginning of the period during which this credit batch
	// was quantified and verified.
	StartDate *timestamppb.Timestamp `protobuf:"bytes,3,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,4,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"`
	// metadata is the metadata for the credit batch.
	Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

Batch defines the credit batch information for the bridged credits. This information will be used to create a credit batch or to dynamically mint credits to an existing credit batch.

func (*MsgBridgeReceive_Batch) Descriptor deprecated

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

Deprecated: Use MsgBridgeReceive_Batch.ProtoReflect.Descriptor instead.

func (*MsgBridgeReceive_Batch) GetAmount

func (x *MsgBridgeReceive_Batch) GetAmount() string

func (*MsgBridgeReceive_Batch) GetEndDate

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

func (*MsgBridgeReceive_Batch) GetMetadata

func (x *MsgBridgeReceive_Batch) GetMetadata() string

func (*MsgBridgeReceive_Batch) GetRecipient

func (x *MsgBridgeReceive_Batch) GetRecipient() string

func (*MsgBridgeReceive_Batch) GetStartDate

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

func (*MsgBridgeReceive_Batch) ProtoMessage

func (*MsgBridgeReceive_Batch) ProtoMessage()

func (*MsgBridgeReceive_Batch) ProtoReflect

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

func (*MsgBridgeReceive_Batch) Reset

func (x *MsgBridgeReceive_Batch) Reset()

func (*MsgBridgeReceive_Batch) String

func (x *MsgBridgeReceive_Batch) String() string

type MsgBridgeReceive_Project

type MsgBridgeReceive_Project struct {

	// reference_id is the reference id of the project.
	ReferenceId string `protobuf:"bytes,1,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"`
	// jurisdiction is the project jurisdiction.
	Jurisdiction string `protobuf:"bytes,2,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"`
	// metadata is the metadata for the project.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// contains filtered or unexported fields
}

Project defines the project information for the bridged credits. This information will be used to find an existing project or to create a new project if a project with the same reference id does not already exist.

func (*MsgBridgeReceive_Project) Descriptor deprecated

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

Deprecated: Use MsgBridgeReceive_Project.ProtoReflect.Descriptor instead.

func (*MsgBridgeReceive_Project) GetJurisdiction

func (x *MsgBridgeReceive_Project) GetJurisdiction() string

func (*MsgBridgeReceive_Project) GetMetadata

func (x *MsgBridgeReceive_Project) GetMetadata() string

func (*MsgBridgeReceive_Project) GetReferenceId

func (x *MsgBridgeReceive_Project) GetReferenceId() string

func (*MsgBridgeReceive_Project) ProtoMessage

func (*MsgBridgeReceive_Project) ProtoMessage()

func (*MsgBridgeReceive_Project) ProtoReflect

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

func (*MsgBridgeReceive_Project) Reset

func (x *MsgBridgeReceive_Project) Reset()

func (*MsgBridgeReceive_Project) String

func (x *MsgBridgeReceive_Project) String() string

type MsgBridgeResponse

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

MsgBridgeResponse is the Msg/Bridge response type.

func (*MsgBridgeResponse) Descriptor deprecated

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

Deprecated: Use MsgBridgeResponse.ProtoReflect.Descriptor instead.

func (*MsgBridgeResponse) ProtoMessage

func (*MsgBridgeResponse) ProtoMessage()

func (*MsgBridgeResponse) ProtoReflect

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

func (*MsgBridgeResponse) Reset

func (x *MsgBridgeResponse) Reset()

func (*MsgBridgeResponse) String

func (x *MsgBridgeResponse) String() string

type MsgCancel

type MsgCancel struct {

	// owner is the address of the account that owns the credits being cancelled.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// credits specifies a credit batch and the number of credits being cancelled.
	Credits []*Credits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"`
	// reason is any arbitrary string that specifies the reason for cancelling
	// credits.
	Reason string `protobuf:"bytes,3,opt,name=reason,proto3" json:"reason,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() []*Credits

func (*MsgCancel) GetOwner

func (x *MsgCancel) GetOwner() string

func (*MsgCancel) GetReason

func (x *MsgCancel) GetReason() 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 MsgClient

type MsgClient interface {
	// CreateClass creates a new credit class under the given credit type with an
	// approved list of issuers and optional metadata. The fee denom must be one
	// of the denoms listed in Params.credit_class_fee and greater than or equal
	// to the fee amount but only the minimum amount is charged. The creator of
	// the credit class becomes the admin of the credit class upon creation.
	CreateClass(ctx context.Context, in *MsgCreateClass, opts ...grpc.CallOption) (*MsgCreateClassResponse, error)
	// CreateProject creates a new project under the given credit class with a
	// jurisdiction, optional metadata, and an optional reference ID. The creator
	// of the project must be an approved credit class issuer for the given credit
	// class and the creator becomes the admin of the project upon creation.
	CreateProject(ctx context.Context, in *MsgCreateProject, opts ...grpc.CallOption) (*MsgCreateProjectResponse, error)
	// CreateBatch creates a new batch of credits under the given project with a
	// start and end date representing the monitoring period, a list of credits to
	// be issued with each issuance specifying a recipient, the amount of tradable
	// and retired credits, and the retirement jurisdiction (if credits are to be
	// retired upon receipt), and optional metadata. The credit batch creator must
	// be listed as an approved issuer within the credit class of the project that
	// the credits are being issued under.
	//
	// The default behavior is for a new credit batch to be "sealed" as opposed to
	// being "open". When a credit batch is "open", new credits can be dynamically
	// minted to the credit batch following the creation of the credit batch. This
	// "open" option should only be set to true when bridging credits from another
	// chain or registry as a result of a bridge operation and is not intended for
	// native credit issuance.
	CreateBatch(ctx context.Context, in *MsgCreateBatch, opts ...grpc.CallOption) (*MsgCreateBatchResponse, error)
	// MintBatchCredits dynamically mints credits to an "open" credit batch. This
	// feature is only meant to be used when bridging credits from another chain
	// or registry and is not intended for native credit issuance. When bridging
	// credits from the same vintage (or monitoring period) as an existing credit
	// batch, the credits can be dynamically minted to the existing credit batch
	// if the credit batch is "open".
	MintBatchCredits(ctx context.Context, in *MsgMintBatchCredits, opts ...grpc.CallOption) (*MsgMintBatchCreditsResponse, error)
	// MsgSealBatch seals an "open" credit batch. Once a credit batch is sealed
	// (i.e. once "open" is set to false), credits can no longer be dynamically
	// minted to the credit batch. A sealed credit batch cannot be unsealed and
	// only the credit batch issuer can seal a credit batch.
	SealBatch(ctx context.Context, in *MsgSealBatch, opts ...grpc.CallOption) (*MsgSealBatchResponse, error)
	// Send sends a specified amount of tradable credits from the credit owner's
	// account to another account. Sent credits can either remain tradable or be
	// retired upon receipt.
	Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error)
	// Retire retires a specified amount of tradable credits, removing the amount
	// from the credit owner's tradable balance and adding it to their retired
	// balance. Retiring credits is permanent and implies the credits are being
	// consumed as a offset.
	Retire(ctx context.Context, in *MsgRetire, opts ...grpc.CallOption) (*MsgRetireResponse, error)
	// Cancel cancels a specified amount of tradable credits, removing the amount
	// from the credit owner's tradable balance and removing the amount from the
	// credit batch's tradable supply. Cancelling credits is permanent and implies
	// the credits have been moved to another chain or registry.
	Cancel(ctx context.Context, in *MsgCancel, opts ...grpc.CallOption) (*MsgCancelResponse, error)
	// UpdateClassAdmin updates the credit class admin. Only the admin of the
	// credit class can update the credit class.
	UpdateClassAdmin(ctx context.Context, in *MsgUpdateClassAdmin, opts ...grpc.CallOption) (*MsgUpdateClassAdminResponse, error)
	// UpdateClassIssuers updates the credit class issuer list. Only the admin of
	// the credit class can update the credit class.
	UpdateClassIssuers(ctx context.Context, in *MsgUpdateClassIssuers, opts ...grpc.CallOption) (*MsgUpdateClassIssuersResponse, error)
	// UpdateClassMetadata updates the credit class metadata. Only the admin of
	// the credit class can update the credit class.
	UpdateClassMetadata(ctx context.Context, in *MsgUpdateClassMetadata, opts ...grpc.CallOption) (*MsgUpdateClassMetadataResponse, error)
	// UpdateProjectAdmin updates the project admin address. Only the admin of the
	// project can update the project.
	UpdateProjectAdmin(ctx context.Context, in *MsgUpdateProjectAdmin, opts ...grpc.CallOption) (*MsgUpdateProjectAdminResponse, error)
	// UpdateProjectMetadata updates the project metadata. Only the admin of the
	// project can update the project.
	UpdateProjectMetadata(ctx context.Context, in *MsgUpdateProjectMetadata, opts ...grpc.CallOption) (*MsgUpdateProjectMetadataResponse, error)
	// Bridge processes credits being sent back to the source chain. When credits
	// are sent back to the source chain, the credits are cancelled and an event
	// is emitted to be handled by an external bridge service.
	Bridge(ctx context.Context, in *MsgBridge, opts ...grpc.CallOption) (*MsgBridgeResponse, error)
	// BridgeReceive processes credits being sent from another chain. When the
	// credits are sent from the same vintage as an existing credit batch within
	// the scope of the provided credit class, the credits will be minted to the
	// existing credit batch, otherwise the credits will be issued in a new credit
	// batch. The new credit batch will be created under an existing project if a
	// project with a matching reference id already exists within the scope of the
	// credit class, otherwise a new project will be created.
	BridgeReceive(ctx context.Context, in *MsgBridgeReceive, opts ...grpc.CallOption) (*MsgBridgeReceiveResponse, 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 account issuing the credits and must be an
	// approved issuer within the credit class of the project.
	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// project_id is the unique identifier of the project under which the credit
	// batch will be created.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// issuance specifies the amount of tradable and retired credits that will be
	// issued to each recipient and the jurisdiction in which the credits will be
	// retired if credits are to be retired upon receipt.
	Issuance []*BatchIssuance `protobuf:"bytes,3,rep,name=issuance,proto3" json:"issuance,omitempty"`
	// metadata is any arbitrary string with a maximum length of 256 characters
	// that includes or references metadata to attach to the credit batch.
	Metadata string `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"`
	// open determines whether or not the credits can be dynamically minted to the
	// credit batch following the creation of the credit batch. This field should
	// only be set to true when bridging credits from another chain or registry as
	// a result of a bridge operation and is not intended for native issuance.
	Open bool `protobuf:"varint,7,opt,name=open,proto3" json:"open,omitempty"`
	// origin_tx is the transaction from another chain or registry that triggered
	// the creation of the credit batch. This field can be ignored when natively
	// issuing credits and should only be set when bridging assets from another
	// chain or registry as a result of a bridge operation.
	OriginTx *OriginTx `protobuf:"bytes,8,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,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() []*BatchIssuance

func (*MsgCreateBatch) GetIssuer

func (x *MsgCreateBatch) GetIssuer() string

func (*MsgCreateBatch) GetMetadata

func (x *MsgCreateBatch) GetMetadata() string

func (*MsgCreateBatch) GetOpen

func (x *MsgCreateBatch) GetOpen() bool

func (*MsgCreateBatch) GetOriginTx

func (x *MsgCreateBatch) GetOriginTx() *OriginTx

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 identifier of the credit 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 MsgCreateClass

type MsgCreateClass struct {

	// admin is the address of the account creating the credit class that will
	// become the admin of the credit class upon creation. The admin will have
	// permissions within the credit class to update the credit class including
	// the list of approved issuers. If Params.allowlist_enabled is set to true,
	// this address must be included in Params.allowed_class_creators.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// issuers are the addresses of the accounts that will have permissions within
	// the credit class to create projects and issue credits.
	Issuers []string `protobuf:"bytes,2,rep,name=issuers,proto3" json:"issuers,omitempty"`
	// metadata is any arbitrary string with a maximum length of 256 characters
	// that includes or references metadata to attach to the credit class.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// credit_type_abbrev is the abbreviation of the credit type under which the
	// credit class will be created (e.g. "C", "BIO").
	CreditTypeAbbrev string `protobuf:"bytes,4,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"`
	// fee is the credit class creation fee. The specified fee must be one of the
	// fees listed in Params.credit_class_fee. The specified amount can be greater
	// than or equal to the listed amount but the credit class creator will only
	// be charged the listed amount (i.e. the minimum amount).
	Fee *v1beta1.Coin `protobuf:"bytes,5,opt,name=fee,proto3" json:"fee,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) GetCreditTypeAbbrev

func (x *MsgCreateClass) GetCreditTypeAbbrev() string

func (*MsgCreateClass) GetFee

func (x *MsgCreateClass) GetFee() *v1beta1.Coin

func (*MsgCreateClass) GetIssuers

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

func (*MsgCreateClass) GetMetadata

func (x *MsgCreateClass) GetMetadata() string

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 identifier of the 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 {

	// admin is the address of the account creating the project that will become
	// the admin of the project upon creation. The creator of the project must be
	// an approved issuer within the credit class under which the project is being
	// created. The admin will have permissions to update the project including
	// the ability to reassign the admin role to another account.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// class_id is the unique identifier of the credit class under which the
	// project will be created.
	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// metadata is any arbitrary string with a maximum length of 256 characters
	// that includes or references metadata to attach to the project.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// jurisdiction is the jurisdiction of the project. A jurisdiction has with
	// the format: <country-code>[-<sub-national-code>[ <postal-code>]]
	// The country-code must be 2 alphabetic characters, the sub-national-code
	// can be 1-3 alphanumeric characters, and the postal-code can be up to 64
	// alphanumeric characters. Only the country-code is required, while the
	// sub-national-code and postal-code are optional and can be added for
	// increased precision.
	Jurisdiction string `protobuf:"bytes,4,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"`
	// reference_id is any arbitrary string used to reference the project with a
	// maximum length of 32 characters.
	ReferenceId string `protobuf:"bytes,5,opt,name=reference_id,json=referenceId,proto3" json:"reference_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) GetAdmin

func (x *MsgCreateProject) GetAdmin() string

func (*MsgCreateProject) GetClassId

func (x *MsgCreateProject) GetClassId() string

func (*MsgCreateProject) GetJurisdiction

func (x *MsgCreateProject) GetJurisdiction() string

func (*MsgCreateProject) GetMetadata

func (x *MsgCreateProject) GetMetadata() string

func (*MsgCreateProject) GetReferenceId

func (x *MsgCreateProject) GetReferenceId() 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 unique identifier of the 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 MsgMintBatchCredits

type MsgMintBatchCredits struct {

	// issuer is the address of the account minting the credits and must be the
	// same issuer who created the credit batch.
	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// batch_denom is the unique identifier of the credit batch.
	BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// issuance specifies the amount of tradable and retired credits that will be
	// issued to each recipient and the jurisdiction in which the credits will be
	// retired if credits are to be retired upon receipt.
	Issuance []*BatchIssuance `protobuf:"bytes,3,rep,name=issuance,proto3" json:"issuance,omitempty"`
	// origin_tx is the transaction from another chain or registry that triggered
	// the minting of credits.
	OriginTx *OriginTx `protobuf:"bytes,4,opt,name=origin_tx,json=originTx,proto3" json:"origin_tx,omitempty"`
	// contains filtered or unexported fields
}

MsgMintBatchCredits is the Msg/MintBatchCredits request type.

func (*MsgMintBatchCredits) Descriptor deprecated

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

Deprecated: Use MsgMintBatchCredits.ProtoReflect.Descriptor instead.

func (*MsgMintBatchCredits) GetBatchDenom

func (x *MsgMintBatchCredits) GetBatchDenom() string

func (*MsgMintBatchCredits) GetIssuance

func (x *MsgMintBatchCredits) GetIssuance() []*BatchIssuance

func (*MsgMintBatchCredits) GetIssuer

func (x *MsgMintBatchCredits) GetIssuer() string

func (*MsgMintBatchCredits) GetOriginTx

func (x *MsgMintBatchCredits) GetOriginTx() *OriginTx

func (*MsgMintBatchCredits) ProtoMessage

func (*MsgMintBatchCredits) ProtoMessage()

func (*MsgMintBatchCredits) ProtoReflect

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

func (*MsgMintBatchCredits) Reset

func (x *MsgMintBatchCredits) Reset()

func (*MsgMintBatchCredits) String

func (x *MsgMintBatchCredits) String() string

type MsgMintBatchCreditsResponse

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

MsgMintBatchCreditsResponse is the Msg/MintBatchCredits response type.

func (*MsgMintBatchCreditsResponse) Descriptor deprecated

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

Deprecated: Use MsgMintBatchCreditsResponse.ProtoReflect.Descriptor instead.

func (*MsgMintBatchCreditsResponse) ProtoMessage

func (*MsgMintBatchCreditsResponse) ProtoMessage()

func (*MsgMintBatchCreditsResponse) ProtoReflect

func (*MsgMintBatchCreditsResponse) Reset

func (x *MsgMintBatchCreditsResponse) Reset()

func (*MsgMintBatchCreditsResponse) String

func (x *MsgMintBatchCreditsResponse) String() string

type MsgRetire

type MsgRetire struct {

	// owner is the address of the account that owns the credits being retired.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// credits specifies a credit batch and the number of credits being retired.
	Credits []*Credits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"`
	// jurisdiction is the jurisdiction of the credit owner. A jurisdiction has
	// the format: <country-code>[-<sub-national-code>[ <postal-code>]]
	// The country-code must be 2 alphabetic characters, the sub-national-code
	// can be 1-3 alphanumeric characters, and the postal-code can be up to 64
	// alphanumeric characters. Only the country-code is required, while the
	// sub-national-code and postal-code are optional and can be added for
	// increased precision.
	Jurisdiction string `protobuf:"bytes,3,opt,name=jurisdiction,proto3" json:"jurisdiction,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() []*Credits

func (*MsgRetire) GetJurisdiction

func (x *MsgRetire) GetJurisdiction() string

func (*MsgRetire) GetOwner

func (x *MsgRetire) GetOwner() 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 MsgSealBatch

type MsgSealBatch struct {

	// issuer is the address of the account that created the credit batch and the
	// only account with permissions to seal the credit batch.
	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"`
	// batch_denom is the unique identifier of the credit batch.
	BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// contains filtered or unexported fields
}

MsgSealBatch is the Msg/MintBatchCredits request type.

func (*MsgSealBatch) Descriptor deprecated

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

Deprecated: Use MsgSealBatch.ProtoReflect.Descriptor instead.

func (*MsgSealBatch) GetBatchDenom

func (x *MsgSealBatch) GetBatchDenom() string

func (*MsgSealBatch) GetIssuer

func (x *MsgSealBatch) GetIssuer() string

func (*MsgSealBatch) ProtoMessage

func (*MsgSealBatch) ProtoMessage()

func (*MsgSealBatch) ProtoReflect

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

func (*MsgSealBatch) Reset

func (x *MsgSealBatch) Reset()

func (*MsgSealBatch) String

func (x *MsgSealBatch) String() string

type MsgSealBatchResponse

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

MsgSealBatchResponse is the Msg/SealBatch response type.

func (*MsgSealBatchResponse) Descriptor deprecated

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

Deprecated: Use MsgSealBatchResponse.ProtoReflect.Descriptor instead.

func (*MsgSealBatchResponse) ProtoMessage

func (*MsgSealBatchResponse) ProtoMessage()

func (*MsgSealBatchResponse) ProtoReflect

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

func (*MsgSealBatchResponse) Reset

func (x *MsgSealBatchResponse) Reset()

func (*MsgSealBatchResponse) String

func (x *MsgSealBatchResponse) 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"`
	// recipient 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 to the recipient.
	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 identifier of the credit batch.
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// tradable_amount is the amount of credits in this transfer that can be
	// traded by the recipient. The number of decimal places must be less than
	// or equal to the credit type precision.
	TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"`
	// retired_amount is the amount of credits in this transfer that are retired
	// upon receipt. The number of decimal places must be less than or equal to
	// the credit type precision.
	RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
	// retirement_jurisdiction is the jurisdiction of the recipient and is only
	// required if retired_amount is positive. A jurisdiction has the format:
	// <country-code>[-<sub-national-code>[ <postal-code>]]
	// The country-code and sub-national-code must conform to ISO 3166-2 and the
	// postal-code can be up to 64 alphanumeric characters. Only the
	// country-code is required, while the sub-national-code and postal-code are
	// optional and can be added for increased precision.
	RetirementJurisdiction string `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

SendCredits specifies the amount of tradable and retired credits of a credit batch that will be sent to the recipient and the jurisdiction in which the credits will be retired upon 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) GetRetirementJurisdiction

func (x *MsgSend_SendCredits) GetRetirementJurisdiction() 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 under the given credit type with an
	// approved list of issuers and optional metadata. The fee denom must be one
	// of the denoms listed in Params.credit_class_fee and greater than or equal
	// to the fee amount but only the minimum amount is charged. The creator of
	// the credit class becomes the admin of the credit class upon creation.
	CreateClass(context.Context, *MsgCreateClass) (*MsgCreateClassResponse, error)
	// CreateProject creates a new project under the given credit class with a
	// jurisdiction, optional metadata, and an optional reference ID. The creator
	// of the project must be an approved credit class issuer for the given credit
	// class and the creator becomes the admin of the project upon creation.
	CreateProject(context.Context, *MsgCreateProject) (*MsgCreateProjectResponse, error)
	// CreateBatch creates a new batch of credits under the given project with a
	// start and end date representing the monitoring period, a list of credits to
	// be issued with each issuance specifying a recipient, the amount of tradable
	// and retired credits, and the retirement jurisdiction (if credits are to be
	// retired upon receipt), and optional metadata. The credit batch creator must
	// be listed as an approved issuer within the credit class of the project that
	// the credits are being issued under.
	//
	// The default behavior is for a new credit batch to be "sealed" as opposed to
	// being "open". When a credit batch is "open", new credits can be dynamically
	// minted to the credit batch following the creation of the credit batch. This
	// "open" option should only be set to true when bridging credits from another
	// chain or registry as a result of a bridge operation and is not intended for
	// native credit issuance.
	CreateBatch(context.Context, *MsgCreateBatch) (*MsgCreateBatchResponse, error)
	// MintBatchCredits dynamically mints credits to an "open" credit batch. This
	// feature is only meant to be used when bridging credits from another chain
	// or registry and is not intended for native credit issuance. When bridging
	// credits from the same vintage (or monitoring period) as an existing credit
	// batch, the credits can be dynamically minted to the existing credit batch
	// if the credit batch is "open".
	MintBatchCredits(context.Context, *MsgMintBatchCredits) (*MsgMintBatchCreditsResponse, error)
	// MsgSealBatch seals an "open" credit batch. Once a credit batch is sealed
	// (i.e. once "open" is set to false), credits can no longer be dynamically
	// minted to the credit batch. A sealed credit batch cannot be unsealed and
	// only the credit batch issuer can seal a credit batch.
	SealBatch(context.Context, *MsgSealBatch) (*MsgSealBatchResponse, error)
	// Send sends a specified amount of tradable credits from the credit owner's
	// account to another account. Sent credits can either remain tradable or be
	// retired upon receipt.
	Send(context.Context, *MsgSend) (*MsgSendResponse, error)
	// Retire retires a specified amount of tradable credits, removing the amount
	// from the credit owner's tradable balance and adding it to their retired
	// balance. Retiring credits is permanent and implies the credits are being
	// consumed as a offset.
	Retire(context.Context, *MsgRetire) (*MsgRetireResponse, error)
	// Cancel cancels a specified amount of tradable credits, removing the amount
	// from the credit owner's tradable balance and removing the amount from the
	// credit batch's tradable supply. Cancelling credits is permanent and implies
	// the credits have been moved to another chain or registry.
	Cancel(context.Context, *MsgCancel) (*MsgCancelResponse, error)
	// UpdateClassAdmin updates the credit class admin. Only the admin of the
	// credit class can update the credit class.
	UpdateClassAdmin(context.Context, *MsgUpdateClassAdmin) (*MsgUpdateClassAdminResponse, error)
	// UpdateClassIssuers updates the credit class issuer list. Only the admin of
	// the credit class can update the credit class.
	UpdateClassIssuers(context.Context, *MsgUpdateClassIssuers) (*MsgUpdateClassIssuersResponse, error)
	// UpdateClassMetadata updates the credit class metadata. Only the admin of
	// the credit class can update the credit class.
	UpdateClassMetadata(context.Context, *MsgUpdateClassMetadata) (*MsgUpdateClassMetadataResponse, error)
	// UpdateProjectAdmin updates the project admin address. Only the admin of the
	// project can update the project.
	UpdateProjectAdmin(context.Context, *MsgUpdateProjectAdmin) (*MsgUpdateProjectAdminResponse, error)
	// UpdateProjectMetadata updates the project metadata. Only the admin of the
	// project can update the project.
	UpdateProjectMetadata(context.Context, *MsgUpdateProjectMetadata) (*MsgUpdateProjectMetadataResponse, error)
	// Bridge processes credits being sent back to the source chain. When credits
	// are sent back to the source chain, the credits are cancelled and an event
	// is emitted to be handled by an external bridge service.
	Bridge(context.Context, *MsgBridge) (*MsgBridgeResponse, error)
	// BridgeReceive processes credits being sent from another chain. When the
	// credits are sent from the same vintage as an existing credit batch within
	// the scope of the provided credit class, the credits will be minted to the
	// existing credit batch, otherwise the credits will be issued in a new credit
	// batch. The new credit batch will be created under an existing project if a
	// project with a matching reference id already exists within the scope of the
	// credit class, otherwise a new project will be created.
	BridgeReceive(context.Context, *MsgBridgeReceive) (*MsgBridgeReceiveResponse, 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 currently the admin of the
	// credit class.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// class_id is the unique identifier 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 account that will become 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 identifier of the credit class.
	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// add_issuers are the addresses of the accounts that will be added to the
	// list of approved credit class issuers.
	AddIssuers []string `protobuf:"bytes,3,rep,name=add_issuers,json=addIssuers,proto3" json:"add_issuers,omitempty"`
	// remove_issuers are the addresses of the accounts that will be removed from
	// the list of approved credit class issuers.
	RemoveIssuers []string `protobuf:"bytes,4,rep,name=remove_issuers,json=removeIssuers,proto3" json:"remove_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) GetAddIssuers

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

func (*MsgUpdateClassIssuers) GetAdmin

func (x *MsgUpdateClassIssuers) GetAdmin() string

func (*MsgUpdateClassIssuers) GetClassId

func (x *MsgUpdateClassIssuers) GetClassId() string

func (*MsgUpdateClassIssuers) GetRemoveIssuers

func (x *MsgUpdateClassIssuers) GetRemoveIssuers() []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 identifier of the credit class.
	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// new_metadata is new metadata that will replace the existing metadata. It
	// can be any arbitrary string with a maximum length of 256 characters that
	// includes or references the metadata to attach to the credit class.
	NewMetadata string `protobuf:"bytes,3,opt,name=new_metadata,json=newMetadata,proto3" json:"new_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) GetNewMetadata

func (x *MsgUpdateClassMetadata) GetNewMetadata() string

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 Msg/UpdateClassMetadata 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 MsgUpdateProjectAdmin

type MsgUpdateProjectAdmin struct {

	// admin is the address of the account that is the currently the admin of the
	// project.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// project_id is the unique identifier of the project.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// new_admin is the address of the account that will become the new admin of
	// the project.
	NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin request type.

func (*MsgUpdateProjectAdmin) Descriptor deprecated

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

Deprecated: Use MsgUpdateProjectAdmin.ProtoReflect.Descriptor instead.

func (*MsgUpdateProjectAdmin) GetAdmin

func (x *MsgUpdateProjectAdmin) GetAdmin() string

func (*MsgUpdateProjectAdmin) GetNewAdmin

func (x *MsgUpdateProjectAdmin) GetNewAdmin() string

func (*MsgUpdateProjectAdmin) GetProjectId

func (x *MsgUpdateProjectAdmin) GetProjectId() string

func (*MsgUpdateProjectAdmin) ProtoMessage

func (*MsgUpdateProjectAdmin) ProtoMessage()

func (*MsgUpdateProjectAdmin) ProtoReflect

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

func (*MsgUpdateProjectAdmin) Reset

func (x *MsgUpdateProjectAdmin) Reset()

func (*MsgUpdateProjectAdmin) String

func (x *MsgUpdateProjectAdmin) String() string

type MsgUpdateProjectAdminResponse

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

MsgUpdateProjectAdmin is the Msg/UpdateProjectAdmin response type.

func (*MsgUpdateProjectAdminResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateProjectAdminResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateProjectAdminResponse) ProtoMessage

func (*MsgUpdateProjectAdminResponse) ProtoMessage()

func (*MsgUpdateProjectAdminResponse) ProtoReflect

func (*MsgUpdateProjectAdminResponse) Reset

func (x *MsgUpdateProjectAdminResponse) Reset()

func (*MsgUpdateProjectAdminResponse) String

type MsgUpdateProjectMetadata

type MsgUpdateProjectMetadata struct {

	// admin is the address of the account that is the admin of the project.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"`
	// project_id is the unique identifier of the project.
	ProjectId string `protobuf:"bytes,2,opt,name=project_id,json=projectId,proto3" json:"project_id,omitempty"`
	// new_metadata is new metadata that will replace the existing metadata. It
	// can be any arbitrary string with a maximum length of 256 characters that
	// includes or references the metadata to attach to the project.
	NewMetadata string `protobuf:"bytes,3,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateProjectMetadata is the Msg/UpdateProjectMetadata request type.

func (*MsgUpdateProjectMetadata) Descriptor deprecated

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

Deprecated: Use MsgUpdateProjectMetadata.ProtoReflect.Descriptor instead.

func (*MsgUpdateProjectMetadata) GetAdmin

func (x *MsgUpdateProjectMetadata) GetAdmin() string

func (*MsgUpdateProjectMetadata) GetNewMetadata

func (x *MsgUpdateProjectMetadata) GetNewMetadata() string

func (*MsgUpdateProjectMetadata) GetProjectId

func (x *MsgUpdateProjectMetadata) GetProjectId() string

func (*MsgUpdateProjectMetadata) ProtoMessage

func (*MsgUpdateProjectMetadata) ProtoMessage()

func (*MsgUpdateProjectMetadata) ProtoReflect

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

func (*MsgUpdateProjectMetadata) Reset

func (x *MsgUpdateProjectMetadata) Reset()

func (*MsgUpdateProjectMetadata) String

func (x *MsgUpdateProjectMetadata) String() string

type MsgUpdateProjectMetadataResponse

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

MsgUpdateProjectMetadataResponse is the Msg/UpdateProjectMetadataResponse response type.

func (*MsgUpdateProjectMetadataResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateProjectMetadataResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateProjectMetadataResponse) ProtoMessage

func (*MsgUpdateProjectMetadataResponse) ProtoMessage()

func (*MsgUpdateProjectMetadataResponse) ProtoReflect

func (*MsgUpdateProjectMetadataResponse) Reset

func (*MsgUpdateProjectMetadataResponse) String

type OriginTx

type OriginTx struct {

	// id is the transaction ID of an originating transaction or operation based
	// on a type (i.e. transaction ID, serial number).
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// source is the source chain or registry of the transaction originating the
	// mint process (e.g. polygon, ethereum, verra).
	Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
	// contract is the address of the contract on the source chain that was
	// executed when creating the transaction. This address will be stored in
	// state separately from the origin tx and on a per credit batch basis to be
	// used when sending credits back to the source chain. This field can be left
	// blank if credits are bridged from a non-contract-based source.
	Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"`
	// note is a reference note for accounting that will be included in an event
	// emitted from either Msg/CreateBatch or Msg/MintBatchCredits.
	Note string `protobuf:"bytes,4,opt,name=note,proto3" json:"note,omitempty"`
	// contains filtered or unexported fields
}

OriginTx is the transaction from another chain or registry that triggered the minting of credits.

func (*OriginTx) Descriptor deprecated

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

Deprecated: Use OriginTx.ProtoReflect.Descriptor instead.

func (*OriginTx) GetContract

func (x *OriginTx) GetContract() string

func (*OriginTx) GetId

func (x *OriginTx) GetId() string

func (*OriginTx) GetNote

func (x *OriginTx) GetNote() string

func (*OriginTx) GetSource

func (x *OriginTx) GetSource() string

func (*OriginTx) ProtoMessage

func (*OriginTx) ProtoMessage()

func (*OriginTx) ProtoReflect

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

func (*OriginTx) Reset

func (x *OriginTx) Reset()

func (*OriginTx) String

func (x *OriginTx) String() string

type OriginTxIndex

type OriginTxIndex struct {

	// class_key is the table row identifier of the credit class within which the
	// credits were issued or minted. The class_key is included within the index
	// to prevent malicious credit class issuers from blocking bridge operations
	// taking place within another credit class.
	ClassKey uint64 `protobuf:"varint,1,opt,name=class_key,json=classKey,proto3" json:"class_key,omitempty"`
	// id is the transaction ID of an originating transaction or operation
	// based on a type (i.e. transaction ID, serial number).
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// source is the source chain or registry of the transaction originating
	// the mint process (e.g. polygon, ethereum, verra).
	Source string `protobuf:"bytes,3,opt,name=source,proto3" json:"source,omitempty"`
	// contains filtered or unexported fields
}

OriginTxIndex indexes the transaction ID and source from the OriginTx included in Msg/CreateBatch and Msg/MintBatchCredits to prevent double minting errors. The index is scoped to a credit class (it includes the class_key) to prevent malicious credit class issuers from blocking any bridge operations taking place within another credit class.

func (*OriginTxIndex) Descriptor deprecated

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

Deprecated: Use OriginTxIndex.ProtoReflect.Descriptor instead.

func (*OriginTxIndex) GetClassKey

func (x *OriginTxIndex) GetClassKey() uint64

func (*OriginTxIndex) GetId

func (x *OriginTxIndex) GetId() string

func (*OriginTxIndex) GetSource

func (x *OriginTxIndex) GetSource() string

func (*OriginTxIndex) ProtoMessage

func (*OriginTxIndex) ProtoMessage()

func (*OriginTxIndex) ProtoReflect

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

func (*OriginTxIndex) Reset

func (x *OriginTxIndex) Reset()

func (*OriginTxIndex) String

func (x *OriginTxIndex) String() string

type OriginTxIndexClassKeyIdSourceIndexKey

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

func (OriginTxIndexClassKeyIdSourceIndexKey) WithClassKey

func (OriginTxIndexClassKeyIdSourceIndexKey) WithClassKeyId

func (OriginTxIndexClassKeyIdSourceIndexKey) WithClassKeyIdSource

func (this OriginTxIndexClassKeyIdSourceIndexKey) WithClassKeyIdSource(class_key uint64, id string, source string) OriginTxIndexClassKeyIdSourceIndexKey

type OriginTxIndexIndexKey

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

type OriginTxIndexIterator

type OriginTxIndexIterator struct {
	ormtable.Iterator
}

func (OriginTxIndexIterator) Value

type OriginTxIndexPrimaryKey

type OriginTxIndexPrimaryKey = OriginTxIndexClassKeyIdSourceIndexKey

primary key starting index..

type OriginTxIndexTable

type OriginTxIndexTable interface {
	Insert(ctx context.Context, originTxIndex *OriginTxIndex) error
	Update(ctx context.Context, originTxIndex *OriginTxIndex) error
	Save(ctx context.Context, originTxIndex *OriginTxIndex) error
	Delete(ctx context.Context, originTxIndex *OriginTxIndex) error
	Has(ctx context.Context, class_key uint64, id string, source 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_key uint64, id string, source string) (*OriginTxIndex, error)
	List(ctx context.Context, prefixKey OriginTxIndexIndexKey, opts ...ormlist.Option) (OriginTxIndexIterator, error)
	ListRange(ctx context.Context, from, to OriginTxIndexIndexKey, opts ...ormlist.Option) (OriginTxIndexIterator, error)
	DeleteBy(ctx context.Context, prefixKey OriginTxIndexIndexKey) error
	DeleteRange(ctx context.Context, from, to OriginTxIndexIndexKey) error
	// contains filtered or unexported methods
}

func NewOriginTxIndexTable

func NewOriginTxIndexTable(db ormtable.Schema) (OriginTxIndexTable, error)

type Params

type Params struct {

	// credit_class_fee is a list of credit class creation fees accepted when
	// creating a credit class. Any fee listed is accepted and charged to the
	// credit class creator when creating a credit class.
	CreditClassFee []*v1beta1.Coin `protobuf:"bytes,1,rep,name=credit_class_fee,json=creditClassFee,proto3" json:"credit_class_fee,omitempty"`
	// basket_fee is a list of basket creation fees accepted when creating a
	// basket. Any fee listed is accepted and charged to the basket creator when
	// creating a basket.
	BasketFee []*v1beta1.Coin `protobuf:"bytes,2,rep,name=basket_fee,json=basketFee,proto3" json:"basket_fee,omitempty"`
	// allowed_class_creators is an allowlist defining the addresses with the
	// required permissions to create credit classes when allowlist_enabled is set
	// to true. If allowlist_enabled is set to false, this list has no effect.
	AllowedClassCreators []string `protobuf:"bytes,3,rep,name=allowed_class_creators,json=allowedClassCreators,proto3" json:"allowed_class_creators,omitempty"`
	// allowlist_enabled determines whether or not the allowlist for creating
	// credit classes is enabled. When set to true, only the addresses listed in
	// allowed_class_creators can create credit classes. When set to false, any
	// address can create credit classes.
	AllowlistEnabled bool `protobuf:"varint,4,opt,name=allowlist_enabled,json=allowlistEnabled,proto3" json:"allowlist_enabled,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) GetBasketFee

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

func (*Params) GetCreditClassFee

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

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 Project

type Project struct {

	// key is the table row identifier of the project used internally for
	// efficient lookups. This identifier is auto-incrementing.
	Key uint64 `protobuf:"varint,1,opt,name=key,proto3" json:"key,omitempty"`
	// id is the unique identifier of the project either auto-generated from the
	// credit class id and project sequence number or provided upon creation.
	Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	// admin is the admin of the project.
	Admin []byte `protobuf:"bytes,3,opt,name=admin,proto3" json:"admin,omitempty"`
	// class_key is the table row identifier of the credit class used internally
	// for efficient lookups. This links a project to a credit class.
	ClassKey uint64 `protobuf:"varint,4,opt,name=class_key,json=classKey,proto3" json:"class_key,omitempty"`
	// jurisdiction is the jurisdiction of the project.
	// Full documentation can be found in MsgCreateProject.jurisdiction.
	Jurisdiction string `protobuf:"bytes,5,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"`
	// metadata is any arbitrary metadata attached to the project.
	Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// reference_id is any arbitrary string used to reference the project.
	ReferenceId string `protobuf:"bytes,7,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"`
	// contains filtered or unexported fields
}

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

func (*Project) Descriptor deprecated

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

Deprecated: Use Project.ProtoReflect.Descriptor instead.

func (*Project) GetAdmin

func (x *Project) GetAdmin() []byte

func (*Project) GetClassKey

func (x *Project) GetClassKey() uint64

func (*Project) GetId

func (x *Project) GetId() string

func (*Project) GetJurisdiction

func (x *Project) GetJurisdiction() string

func (*Project) GetKey

func (x *Project) GetKey() uint64

func (*Project) GetMetadata

func (x *Project) GetMetadata() string

func (*Project) GetReferenceId

func (x *Project) GetReferenceId() string

func (*Project) ProtoMessage

func (*Project) ProtoMessage()

func (*Project) ProtoReflect

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

func (*Project) Reset

func (x *Project) Reset()

func (*Project) String

func (x *Project) String() string

type ProjectAdminIndexKey

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

func (ProjectAdminIndexKey) WithAdmin

func (this ProjectAdminIndexKey) WithAdmin(admin []byte) ProjectAdminIndexKey

type ProjectClassKeyIdIndexKey

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

func (ProjectClassKeyIdIndexKey) WithClassKey

func (this ProjectClassKeyIdIndexKey) WithClassKey(class_key uint64) ProjectClassKeyIdIndexKey

func (ProjectClassKeyIdIndexKey) WithClassKeyId

func (this ProjectClassKeyIdIndexKey) WithClassKeyId(class_key uint64, id string) ProjectClassKeyIdIndexKey

type ProjectClassKeyReferenceIdIndexKey

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

func (ProjectClassKeyReferenceIdIndexKey) WithClassKey

func (ProjectClassKeyReferenceIdIndexKey) WithClassKeyReferenceId

func (this ProjectClassKeyReferenceIdIndexKey) WithClassKeyReferenceId(class_key uint64, reference_id string) ProjectClassKeyReferenceIdIndexKey

type ProjectIdIndexKey

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

func (ProjectIdIndexKey) WithId

func (this ProjectIdIndexKey) WithId(id string) ProjectIdIndexKey

type ProjectIndexKey

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

type ProjectInfo

type ProjectInfo struct {

	// id is the unique identifier of the project.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// admin is the admin of the project.
	Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"`
	// class_id is the unique identifier of the credit class within which the
	// project was created.
	ClassId string `protobuf:"bytes,3,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
	// jurisdiction is the jurisdiction of the project. Full documentation can be
	// found in MsgCreateProject.jurisdiction.
	Jurisdiction string `protobuf:"bytes,4,opt,name=jurisdiction,proto3" json:"jurisdiction,omitempty"`
	// metadata is the arbitrary metadata attached to the project.
	Metadata string `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// reference_id is any arbitrary string that can be use to reference project.
	ReferenceId string `protobuf:"bytes,6,opt,name=reference_id,json=referenceId,proto3" json:"reference_id,omitempty"`
	// contains filtered or unexported fields
}

ProjectInfo is the human-readable project information.

func (*ProjectInfo) Descriptor deprecated

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

Deprecated: Use ProjectInfo.ProtoReflect.Descriptor instead.

func (*ProjectInfo) GetAdmin

func (x *ProjectInfo) GetAdmin() string

func (*ProjectInfo) GetClassId

func (x *ProjectInfo) GetClassId() string

func (*ProjectInfo) GetId

func (x *ProjectInfo) GetId() string

func (*ProjectInfo) GetJurisdiction

func (x *ProjectInfo) GetJurisdiction() string

func (*ProjectInfo) GetMetadata

func (x *ProjectInfo) GetMetadata() string

func (*ProjectInfo) GetReferenceId

func (x *ProjectInfo) GetReferenceId() 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 ProjectIterator

type ProjectIterator struct {
	ormtable.Iterator
}

func (ProjectIterator) Value

func (i ProjectIterator) Value() (*Project, error)

type ProjectKeyIndexKey

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

func (ProjectKeyIndexKey) WithKey

func (this ProjectKeyIndexKey) WithKey(key uint64) ProjectKeyIndexKey

type ProjectPrimaryKey

type ProjectPrimaryKey = ProjectKeyIndexKey

primary key starting index..

type ProjectReferenceIdIndexKey

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

func (ProjectReferenceIdIndexKey) WithReferenceId

func (this ProjectReferenceIdIndexKey) WithReferenceId(reference_id string) ProjectReferenceIdIndexKey

type ProjectSequence

type ProjectSequence struct {

	// class_key is the table row identifier of the credit class used internally
	// for efficient lookups. This links a project sequence to a credit class.
	ClassKey uint64 `protobuf:"varint,1,opt,name=class_key,json=classKey,proto3" json:"class_key,omitempty"`
	// next_sequence is the next sequence number for a project within the credit
	// class. The sequence number is used to generate a project id.
	NextSequence uint64 `protobuf:"varint,2,opt,name=next_sequence,json=nextSequence,proto3" json:"next_sequence,omitempty"`
	// contains filtered or unexported fields
}

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

func (*ProjectSequence) Descriptor deprecated

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

Deprecated: Use ProjectSequence.ProtoReflect.Descriptor instead.

func (*ProjectSequence) GetClassKey

func (x *ProjectSequence) GetClassKey() uint64

func (*ProjectSequence) GetNextSequence

func (x *ProjectSequence) GetNextSequence() 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 ProjectSequenceClassKeyIndexKey

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

func (ProjectSequenceClassKeyIndexKey) WithClassKey

type ProjectSequenceIndexKey

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

type ProjectSequenceIterator

type ProjectSequenceIterator struct {
	ormtable.Iterator
}

func (ProjectSequenceIterator) Value

type ProjectSequencePrimaryKey

type ProjectSequencePrimaryKey = ProjectSequenceClassKeyIndexKey

primary key starting index..

type ProjectSequenceTable

type ProjectSequenceTable 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_key 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_key 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 NewProjectSequenceTable

func NewProjectSequenceTable(db ormtable.Schema) (ProjectSequenceTable, error)

type ProjectTable

type ProjectTable interface {
	Insert(ctx context.Context, project *Project) error
	InsertReturningID(ctx context.Context, project *Project) (uint64, error)
	Update(ctx context.Context, project *Project) error
	Save(ctx context.Context, project *Project) error
	Delete(ctx context.Context, project *Project) error
	Has(ctx context.Context, key 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, key uint64) (*Project, error)
	HasById(ctx context.Context, id string) (found bool, err error)
	// GetById returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	GetById(ctx context.Context, id string) (*Project, error)
	HasByClassKeyId(ctx context.Context, class_key uint64, id string) (found bool, err error)
	// GetByClassKeyId returns nil and an error which responds true to ormerrors.IsNotFound() if the record was not found.
	GetByClassKeyId(ctx context.Context, class_key uint64, id string) (*Project, error)
	List(ctx context.Context, prefixKey ProjectIndexKey, opts ...ormlist.Option) (ProjectIterator, error)
	ListRange(ctx context.Context, from, to ProjectIndexKey, opts ...ormlist.Option) (ProjectIterator, error)
	DeleteBy(ctx context.Context, prefixKey ProjectIndexKey) error
	DeleteRange(ctx context.Context, from, to ProjectIndexKey) error
	// contains filtered or unexported methods
}

func NewProjectTable

func NewProjectTable(db ormtable.Schema) (ProjectTable, error)

type QueryBalanceRequest

type QueryBalanceRequest struct {

	// address is the address of the account whose balance is being queried.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// batch_denom is the unique identifier of the credit batch 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) GetAddress

func (x *QueryBalanceRequest) GetAddress() 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 {

	// balance is the balance of the given account.
	Balance *BatchBalanceInfo `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,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) GetBalance

func (x *QueryBalanceResponse) GetBalance() *BatchBalanceInfo

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 QueryBalancesRequest

type QueryBalancesRequest struct {

	// address is the address of the account whose balance is being queried.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,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
}

QueryBalancesRequest is the Query/Balances request type.

func (*QueryBalancesRequest) Descriptor deprecated

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

Deprecated: Use QueryBalancesRequest.ProtoReflect.Descriptor instead.

func (*QueryBalancesRequest) GetAddress

func (x *QueryBalancesRequest) GetAddress() string

func (*QueryBalancesRequest) GetPagination

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

func (*QueryBalancesRequest) ProtoMessage

func (*QueryBalancesRequest) ProtoMessage()

func (*QueryBalancesRequest) ProtoReflect

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

func (*QueryBalancesRequest) Reset

func (x *QueryBalancesRequest) Reset()

func (*QueryBalancesRequest) String

func (x *QueryBalancesRequest) String() string

type QueryBalancesResponse

type QueryBalancesResponse struct {

	// balances are a list of balances from different credit batches that the
	// account holds.
	Balances []*BatchBalanceInfo `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryBalancesResponse is the Query/Balances response type.

func (*QueryBalancesResponse) Descriptor deprecated

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

Deprecated: Use QueryBalancesResponse.ProtoReflect.Descriptor instead.

func (*QueryBalancesResponse) GetBalances

func (x *QueryBalancesResponse) GetBalances() []*BatchBalanceInfo

func (*QueryBalancesResponse) GetPagination

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

func (*QueryBalancesResponse) ProtoMessage

func (*QueryBalancesResponse) ProtoMessage()

func (*QueryBalancesResponse) ProtoReflect

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

func (*QueryBalancesResponse) Reset

func (x *QueryBalancesResponse) Reset()

func (*QueryBalancesResponse) String

func (x *QueryBalancesResponse) String() string

type QueryBatchRequest

type QueryBatchRequest struct {

	// batch_denom is the unique identifier of the 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
}

QueryBatchRequest is the Query/Batch request type.

func (*QueryBatchRequest) Descriptor deprecated

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

Deprecated: Use QueryBatchRequest.ProtoReflect.Descriptor instead.

func (*QueryBatchRequest) GetBatchDenom

func (x *QueryBatchRequest) GetBatchDenom() string

func (*QueryBatchRequest) ProtoMessage

func (*QueryBatchRequest) ProtoMessage()

func (*QueryBatchRequest) ProtoReflect

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

func (*QueryBatchRequest) Reset

func (x *QueryBatchRequest) Reset()

func (*QueryBatchRequest) String

func (x *QueryBatchRequest) String() string

type QueryBatchResponse

type QueryBatchResponse struct {

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

QueryBatchResponse is the Query/Batch response type.

func (*QueryBatchResponse) Descriptor deprecated

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

Deprecated: Use QueryBatchResponse.ProtoReflect.Descriptor instead.

func (*QueryBatchResponse) GetBatch

func (x *QueryBatchResponse) GetBatch() *BatchInfo

func (*QueryBatchResponse) ProtoMessage

func (*QueryBatchResponse) ProtoMessage()

func (*QueryBatchResponse) ProtoReflect

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

func (*QueryBatchResponse) Reset

func (x *QueryBatchResponse) Reset()

func (*QueryBatchResponse) String

func (x *QueryBatchResponse) String() string

type QueryBatchesByClassRequest

type QueryBatchesByClassRequest struct {

	// class_id is the unique identifier of the 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
}

QueryBatchesByClassRequest is the Query/BatchesByClass request type.

func (*QueryBatchesByClassRequest) Descriptor deprecated

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

Deprecated: Use QueryBatchesByClassRequest.ProtoReflect.Descriptor instead.

func (*QueryBatchesByClassRequest) GetClassId

func (x *QueryBatchesByClassRequest) GetClassId() string

func (*QueryBatchesByClassRequest) GetPagination

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

func (*QueryBatchesByClassRequest) ProtoMessage

func (*QueryBatchesByClassRequest) ProtoMessage()

func (*QueryBatchesByClassRequest) ProtoReflect

func (*QueryBatchesByClassRequest) Reset

func (x *QueryBatchesByClassRequest) Reset()

func (*QueryBatchesByClassRequest) String

func (x *QueryBatchesByClassRequest) String() string

type QueryBatchesByClassResponse

type QueryBatchesByClassResponse struct {

	// batches are the fetched credit batches.
	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
}

QueryBatchesByClassResponse is the Query/BatchesByClass response type.

func (*QueryBatchesByClassResponse) Descriptor deprecated

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

Deprecated: Use QueryBatchesByClassResponse.ProtoReflect.Descriptor instead.

func (*QueryBatchesByClassResponse) GetBatches

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

func (*QueryBatchesByClassResponse) GetPagination

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

func (*QueryBatchesByClassResponse) ProtoMessage

func (*QueryBatchesByClassResponse) ProtoMessage()

func (*QueryBatchesByClassResponse) ProtoReflect

func (*QueryBatchesByClassResponse) Reset

func (x *QueryBatchesByClassResponse) Reset()

func (*QueryBatchesByClassResponse) String

func (x *QueryBatchesByClassResponse) String() string

type QueryBatchesByIssuerRequest

type QueryBatchesByIssuerRequest struct {

	// issuer is the address that issued the batch
	Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,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
}

QueryBatchesByIssuerRequest is the Query/BatchesByIssuer request type.

func (*QueryBatchesByIssuerRequest) Descriptor deprecated

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

Deprecated: Use QueryBatchesByIssuerRequest.ProtoReflect.Descriptor instead.

func (*QueryBatchesByIssuerRequest) GetIssuer

func (x *QueryBatchesByIssuerRequest) GetIssuer() string

func (*QueryBatchesByIssuerRequest) GetPagination

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

func (*QueryBatchesByIssuerRequest) ProtoMessage

func (*QueryBatchesByIssuerRequest) ProtoMessage()

func (*QueryBatchesByIssuerRequest) ProtoReflect

func (*QueryBatchesByIssuerRequest) Reset

func (x *QueryBatchesByIssuerRequest) Reset()

func (*QueryBatchesByIssuerRequest) String

func (x *QueryBatchesByIssuerRequest) String() string

type QueryBatchesByIssuerResponse

type QueryBatchesByIssuerResponse struct {

	// batches are the fetched credit batches.
	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
}

QueryBatchesByIssuerResponse is the Query/BatchesByIssuer response type.

func (*QueryBatchesByIssuerResponse) Descriptor deprecated

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

Deprecated: Use QueryBatchesByIssuerResponse.ProtoReflect.Descriptor instead.

func (*QueryBatchesByIssuerResponse) GetBatches

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

func (*QueryBatchesByIssuerResponse) GetPagination

func (*QueryBatchesByIssuerResponse) ProtoMessage

func (*QueryBatchesByIssuerResponse) ProtoMessage()

func (*QueryBatchesByIssuerResponse) ProtoReflect

func (*QueryBatchesByIssuerResponse) Reset

func (x *QueryBatchesByIssuerResponse) Reset()

func (*QueryBatchesByIssuerResponse) String

type QueryBatchesByProjectRequest

type QueryBatchesByProjectRequest struct {

	// project_id is the unique identifier 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
}

QueryBatchesByProjectRequest is the Query/BatchesByProject request type.

func (*QueryBatchesByProjectRequest) Descriptor deprecated

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

Deprecated: Use QueryBatchesByProjectRequest.ProtoReflect.Descriptor instead.

func (*QueryBatchesByProjectRequest) GetPagination

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

func (*QueryBatchesByProjectRequest) GetProjectId

func (x *QueryBatchesByProjectRequest) GetProjectId() string

func (*QueryBatchesByProjectRequest) ProtoMessage

func (*QueryBatchesByProjectRequest) ProtoMessage()

func (*QueryBatchesByProjectRequest) ProtoReflect

func (*QueryBatchesByProjectRequest) Reset

func (x *QueryBatchesByProjectRequest) Reset()

func (*QueryBatchesByProjectRequest) String

type QueryBatchesByProjectResponse

type QueryBatchesByProjectResponse struct {

	// batches are the fetched credit batches.
	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
}

QueryBatchesByProjectResponse is the Query/BatchesByProject response type.

func (*QueryBatchesByProjectResponse) Descriptor deprecated

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

Deprecated: Use QueryBatchesByProjectResponse.ProtoReflect.Descriptor instead.

func (*QueryBatchesByProjectResponse) GetBatches

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

func (*QueryBatchesByProjectResponse) GetPagination

func (*QueryBatchesByProjectResponse) ProtoMessage

func (*QueryBatchesByProjectResponse) ProtoMessage()

func (*QueryBatchesByProjectResponse) ProtoReflect

func (*QueryBatchesByProjectResponse) Reset

func (x *QueryBatchesByProjectResponse) Reset()

func (*QueryBatchesByProjectResponse) String

type QueryBatchesRequest

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

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) 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.
	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 QueryClassIssuersRequest

type QueryClassIssuersRequest struct {

	// class_id is the unique identifier of the 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
}

QueryClassIssuersRequest is the Query/ClassIssuers request type.

func (*QueryClassIssuersRequest) Descriptor deprecated

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

Deprecated: Use QueryClassIssuersRequest.ProtoReflect.Descriptor instead.

func (*QueryClassIssuersRequest) GetClassId

func (x *QueryClassIssuersRequest) GetClassId() string

func (*QueryClassIssuersRequest) GetPagination

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

func (*QueryClassIssuersRequest) ProtoMessage

func (*QueryClassIssuersRequest) ProtoMessage()

func (*QueryClassIssuersRequest) ProtoReflect

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

func (*QueryClassIssuersRequest) Reset

func (x *QueryClassIssuersRequest) Reset()

func (*QueryClassIssuersRequest) String

func (x *QueryClassIssuersRequest) String() string

type QueryClassIssuersResponse

type QueryClassIssuersResponse struct {

	// issuers is a list of issuers for the credit class
	Issuers []string `protobuf:"bytes,1,rep,name=issuers,proto3" json:"issuers,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
}

QueryClassIssuersRequest is the Query/ClassIssuers response type.

func (*QueryClassIssuersResponse) Descriptor deprecated

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

Deprecated: Use QueryClassIssuersResponse.ProtoReflect.Descriptor instead.

func (*QueryClassIssuersResponse) GetIssuers

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

func (*QueryClassIssuersResponse) GetPagination

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

func (*QueryClassIssuersResponse) ProtoMessage

func (*QueryClassIssuersResponse) ProtoMessage()

func (*QueryClassIssuersResponse) ProtoReflect

func (*QueryClassIssuersResponse) Reset

func (x *QueryClassIssuersResponse) Reset()

func (*QueryClassIssuersResponse) String

func (x *QueryClassIssuersResponse) String() string

type QueryClassRequest

type QueryClassRequest struct {

	// class_id is the unique identifier of the 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
}

QueryClassRequest is the Query/Class request type.

func (*QueryClassRequest) Descriptor deprecated

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

Deprecated: Use QueryClassRequest.ProtoReflect.Descriptor instead.

func (*QueryClassRequest) GetClassId

func (x *QueryClassRequest) GetClassId() string

func (*QueryClassRequest) ProtoMessage

func (*QueryClassRequest) ProtoMessage()

func (*QueryClassRequest) ProtoReflect

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

func (*QueryClassRequest) Reset

func (x *QueryClassRequest) Reset()

func (*QueryClassRequest) String

func (x *QueryClassRequest) String() string

type QueryClassResponse

type QueryClassResponse struct {

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

QueryClassResponse is the Query/Class request type.

func (*QueryClassResponse) Descriptor deprecated

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

Deprecated: Use QueryClassResponse.ProtoReflect.Descriptor instead.

func (*QueryClassResponse) GetClass

func (x *QueryClassResponse) GetClass() *ClassInfo

func (*QueryClassResponse) ProtoMessage

func (*QueryClassResponse) ProtoMessage()

func (*QueryClassResponse) ProtoReflect

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

func (*QueryClassResponse) Reset

func (x *QueryClassResponse) Reset()

func (*QueryClassResponse) String

func (x *QueryClassResponse) String() string

type QueryClassesByAdminRequest

type QueryClassesByAdminRequest struct {

	// admin is the address of the admin of the class.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,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
}

QueryClassesByAdminRequest is the Query/ClassesByAdmin request type.

func (*QueryClassesByAdminRequest) Descriptor deprecated

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

Deprecated: Use QueryClassesByAdminRequest.ProtoReflect.Descriptor instead.

func (*QueryClassesByAdminRequest) GetAdmin

func (x *QueryClassesByAdminRequest) GetAdmin() string

func (*QueryClassesByAdminRequest) GetPagination

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

func (*QueryClassesByAdminRequest) ProtoMessage

func (*QueryClassesByAdminRequest) ProtoMessage()

func (*QueryClassesByAdminRequest) ProtoReflect

func (*QueryClassesByAdminRequest) Reset

func (x *QueryClassesByAdminRequest) Reset()

func (*QueryClassesByAdminRequest) String

func (x *QueryClassesByAdminRequest) String() string

type QueryClassesByAdminResponse

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

QueryClassesByAdminResponse is the Query/ClassesByAdmin response type.

func (*QueryClassesByAdminResponse) Descriptor deprecated

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

Deprecated: Use QueryClassesByAdminResponse.ProtoReflect.Descriptor instead.

func (*QueryClassesByAdminResponse) GetClasses

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

func (*QueryClassesByAdminResponse) GetPagination

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

func (*QueryClassesByAdminResponse) ProtoMessage

func (*QueryClassesByAdminResponse) ProtoMessage()

func (*QueryClassesByAdminResponse) ProtoReflect

func (*QueryClassesByAdminResponse) Reset

func (x *QueryClassesByAdminResponse) Reset()

func (*QueryClassesByAdminResponse) String

func (x *QueryClassesByAdminResponse) 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)
	// ClassesByAdmin queries for all credit classes with a specific admin
	// address.
	ClassesByAdmin(ctx context.Context, in *QueryClassesByAdminRequest, opts ...grpc.CallOption) (*QueryClassesByAdminResponse, error)
	// Class queries for information on a credit class.
	Class(ctx context.Context, in *QueryClassRequest, opts ...grpc.CallOption) (*QueryClassResponse, error)
	// ClassIssuers queries for the addresses of the issuers for a credit class.
	ClassIssuers(ctx context.Context, in *QueryClassIssuersRequest, opts ...grpc.CallOption) (*QueryClassIssuersResponse, error)
	// Projects queries for all projects with pagination.
	Projects(ctx context.Context, in *QueryProjectsRequest, opts ...grpc.CallOption) (*QueryProjectsResponse, error)
	// ProjectsByClass queries for all projects within a class with pagination.
	ProjectsByClass(ctx context.Context, in *QueryProjectsByClassRequest, opts ...grpc.CallOption) (*QueryProjectsByClassResponse, error)
	// ProjectsByReferenceId queries for all projects by reference-id with
	// pagination.
	ProjectsByReferenceId(ctx context.Context, in *QueryProjectsByReferenceIdRequest, opts ...grpc.CallOption) (*QueryProjectsByReferenceIdResponse, error)
	// ProjectsByAdmin queries for all projects by admin with
	// pagination.
	ProjectsByAdmin(ctx context.Context, in *QueryProjectsByAdminRequest, opts ...grpc.CallOption) (*QueryProjectsByAdminResponse, error)
	// Project queries for information on a project.
	Project(ctx context.Context, in *QueryProjectRequest, opts ...grpc.CallOption) (*QueryProjectResponse, error)
	// Batches queries for all batches with pagination.
	Batches(ctx context.Context, in *QueryBatchesRequest, opts ...grpc.CallOption) (*QueryBatchesResponse, error)
	// BatchesByIssuer queries all batches issued from a given issuer address.
	BatchesByIssuer(ctx context.Context, in *QueryBatchesByIssuerRequest, opts ...grpc.CallOption) (*QueryBatchesByIssuerResponse, error)
	// BatchesByClass queries all batches issued from a given class.
	BatchesByClass(ctx context.Context, in *QueryBatchesByClassRequest, opts ...grpc.CallOption) (*QueryBatchesByClassResponse, error)
	// BatchesByProject queries for all batches from a given project with
	// pagination.
	BatchesByProject(ctx context.Context, in *QueryBatchesByProjectRequest, opts ...grpc.CallOption) (*QueryBatchesByProjectResponse, error)
	// Batch queries for information on a credit batch.
	Batch(ctx context.Context, in *QueryBatchRequest, opts ...grpc.CallOption) (*QueryBatchResponse, error)
	// Balance queries the balance (both tradable and retired) of a given credit
	// batch for a given account address.
	Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error)
	// Balances queries all credit balances the given account holds.
	Balances(ctx context.Context, in *QueryBalancesRequest, opts ...grpc.CallOption) (*QueryBalancesResponse, 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)
	// CreditType queries credit type information by abbreviation.
	CreditType(ctx context.Context, in *QueryCreditTypeRequest, opts ...grpc.CallOption) (*QueryCreditTypeResponse, 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 QueryCreditTypeRequest

type QueryCreditTypeRequest struct {

	// abbreviation is the abbreviation of the credit type.
	Abbreviation string `protobuf:"bytes,1,opt,name=abbreviation,proto3" json:"abbreviation,omitempty"`
	// contains filtered or unexported fields
}

QueryCreditTypeRequest is the Query/CreditType request type

func (*QueryCreditTypeRequest) Descriptor deprecated

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

Deprecated: Use QueryCreditTypeRequest.ProtoReflect.Descriptor instead.

func (*QueryCreditTypeRequest) GetAbbreviation

func (x *QueryCreditTypeRequest) GetAbbreviation() string

func (*QueryCreditTypeRequest) ProtoMessage

func (*QueryCreditTypeRequest) ProtoMessage()

func (*QueryCreditTypeRequest) ProtoReflect

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

func (*QueryCreditTypeRequest) Reset

func (x *QueryCreditTypeRequest) Reset()

func (*QueryCreditTypeRequest) String

func (x *QueryCreditTypeRequest) String() string

type QueryCreditTypeResponse

type QueryCreditTypeResponse struct {

	// credit_type is the fetched credit type.
	CreditType *CreditType `protobuf:"bytes,1,opt,name=credit_type,json=creditType,proto3" json:"credit_type,omitempty"`
	// contains filtered or unexported fields
}

QueryCreditTypeResponse is the Query/CreditType response type

func (*QueryCreditTypeResponse) Descriptor deprecated

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

Deprecated: Use QueryCreditTypeResponse.ProtoReflect.Descriptor instead.

func (*QueryCreditTypeResponse) GetCreditType

func (x *QueryCreditTypeResponse) GetCreditType() *CreditType

func (*QueryCreditTypeResponse) ProtoMessage

func (*QueryCreditTypeResponse) ProtoMessage()

func (*QueryCreditTypeResponse) ProtoReflect

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

func (*QueryCreditTypeResponse) Reset

func (x *QueryCreditTypeResponse) Reset()

func (*QueryCreditTypeResponse) String

func (x *QueryCreditTypeResponse) String() string

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 {

	// credit_types are the fetched 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 QueryProjectRequest

type QueryProjectRequest struct {

	// project_id is the unique identifier 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
}

QueryProjectRequest is the Query/Project request type.

func (*QueryProjectRequest) Descriptor deprecated

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

Deprecated: Use QueryProjectRequest.ProtoReflect.Descriptor instead.

func (*QueryProjectRequest) GetProjectId

func (x *QueryProjectRequest) GetProjectId() string

func (*QueryProjectRequest) ProtoMessage

func (*QueryProjectRequest) ProtoMessage()

func (*QueryProjectRequest) ProtoReflect

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

func (*QueryProjectRequest) Reset

func (x *QueryProjectRequest) Reset()

func (*QueryProjectRequest) String

func (x *QueryProjectRequest) String() string

type QueryProjectResponse

type QueryProjectResponse struct {

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

QueryProjectResponse is the Query/Project response type.

func (*QueryProjectResponse) Descriptor deprecated

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

Deprecated: Use QueryProjectResponse.ProtoReflect.Descriptor instead.

func (*QueryProjectResponse) GetProject

func (x *QueryProjectResponse) GetProject() *ProjectInfo

func (*QueryProjectResponse) ProtoMessage

func (*QueryProjectResponse) ProtoMessage()

func (*QueryProjectResponse) ProtoReflect

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

func (*QueryProjectResponse) Reset

func (x *QueryProjectResponse) Reset()

func (*QueryProjectResponse) String

func (x *QueryProjectResponse) String() string

type QueryProjectsByAdminRequest

type QueryProjectsByAdminRequest struct {

	// admin is the account address of project admin.
	Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,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
}

QueryProjectsByAdminRequest is the Query/ProjectByAdmin request type.

func (*QueryProjectsByAdminRequest) Descriptor deprecated

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

Deprecated: Use QueryProjectsByAdminRequest.ProtoReflect.Descriptor instead.

func (*QueryProjectsByAdminRequest) GetAdmin

func (x *QueryProjectsByAdminRequest) GetAdmin() string

func (*QueryProjectsByAdminRequest) GetPagination

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

func (*QueryProjectsByAdminRequest) ProtoMessage

func (*QueryProjectsByAdminRequest) ProtoMessage()

func (*QueryProjectsByAdminRequest) ProtoReflect

func (*QueryProjectsByAdminRequest) Reset

func (x *QueryProjectsByAdminRequest) Reset()

func (*QueryProjectsByAdminRequest) String

func (x *QueryProjectsByAdminRequest) String() string

type QueryProjectsByAdminResponse

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

QueryProjectsByAdminResponse is the Query/ProjectByAdmin response type.

func (*QueryProjectsByAdminResponse) Descriptor deprecated

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

Deprecated: Use QueryProjectsByAdminResponse.ProtoReflect.Descriptor instead.

func (*QueryProjectsByAdminResponse) GetPagination

func (*QueryProjectsByAdminResponse) GetProjects

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

func (*QueryProjectsByAdminResponse) ProtoMessage

func (*QueryProjectsByAdminResponse) ProtoMessage()

func (*QueryProjectsByAdminResponse) ProtoReflect

func (*QueryProjectsByAdminResponse) Reset

func (x *QueryProjectsByAdminResponse) Reset()

func (*QueryProjectsByAdminResponse) String

type QueryProjectsByClassRequest

type QueryProjectsByClassRequest struct {

	// class_id is the unique identifier of the 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
}

QueryProjectsByClassRequest is the Query/ProjectsByClass request type.

func (*QueryProjectsByClassRequest) Descriptor deprecated

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

Deprecated: Use QueryProjectsByClassRequest.ProtoReflect.Descriptor instead.

func (*QueryProjectsByClassRequest) GetClassId

func (x *QueryProjectsByClassRequest) GetClassId() string

func (*QueryProjectsByClassRequest) GetPagination

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

func (*QueryProjectsByClassRequest) ProtoMessage

func (*QueryProjectsByClassRequest) ProtoMessage()

func (*QueryProjectsByClassRequest) ProtoReflect

func (*QueryProjectsByClassRequest) Reset

func (x *QueryProjectsByClassRequest) Reset()

func (*QueryProjectsByClassRequest) String

func (x *QueryProjectsByClassRequest) String() string

type QueryProjectsByClassResponse

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

QueryProjectsByClassResponse is the Query/ProjectsByClass response type.

func (*QueryProjectsByClassResponse) Descriptor deprecated

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

Deprecated: Use QueryProjectsByClassResponse.ProtoReflect.Descriptor instead.

func (*QueryProjectsByClassResponse) GetPagination

func (*QueryProjectsByClassResponse) GetProjects

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

func (*QueryProjectsByClassResponse) ProtoMessage

func (*QueryProjectsByClassResponse) ProtoMessage()

func (*QueryProjectsByClassResponse) ProtoReflect

func (*QueryProjectsByClassResponse) Reset

func (x *QueryProjectsByClassResponse) Reset()

func (*QueryProjectsByClassResponse) String

type QueryProjectsByReferenceIdRequest

type QueryProjectsByReferenceIdRequest struct {

	// reference_id is the project reference id.
	ReferenceId string `protobuf:"bytes,1,opt,name=reference_id,json=referenceId,proto3" json:"reference_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
}

QueryProjectsByReferenceIdRequest is the Query/ProjectsByReferenceId request type.

func (*QueryProjectsByReferenceIdRequest) Descriptor deprecated

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

Deprecated: Use QueryProjectsByReferenceIdRequest.ProtoReflect.Descriptor instead.

func (*QueryProjectsByReferenceIdRequest) GetPagination

func (*QueryProjectsByReferenceIdRequest) GetReferenceId

func (x *QueryProjectsByReferenceIdRequest) GetReferenceId() string

func (*QueryProjectsByReferenceIdRequest) ProtoMessage

func (*QueryProjectsByReferenceIdRequest) ProtoMessage()

func (*QueryProjectsByReferenceIdRequest) ProtoReflect

func (*QueryProjectsByReferenceIdRequest) Reset

func (*QueryProjectsByReferenceIdRequest) String

type QueryProjectsByReferenceIdResponse

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

QueryProjectsByReferenceIdResponse is the Query/ProjectsByReferenceId response type.

func (*QueryProjectsByReferenceIdResponse) Descriptor deprecated

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

Deprecated: Use QueryProjectsByReferenceIdResponse.ProtoReflect.Descriptor instead.

func (*QueryProjectsByReferenceIdResponse) GetPagination

func (*QueryProjectsByReferenceIdResponse) GetProjects

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

func (*QueryProjectsByReferenceIdResponse) ProtoMessage

func (*QueryProjectsByReferenceIdResponse) ProtoMessage()

func (*QueryProjectsByReferenceIdResponse) ProtoReflect

func (*QueryProjectsByReferenceIdResponse) Reset

func (*QueryProjectsByReferenceIdResponse) String

type QueryProjectsRequest

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

QueryProjectsRequest is the Query/Projects request type.

func (*QueryProjectsRequest) Descriptor deprecated

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

Deprecated: Use QueryProjectsRequest.ProtoReflect.Descriptor instead.

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)
	// ClassesByAdmin queries for all credit classes with a specific admin
	// address.
	ClassesByAdmin(context.Context, *QueryClassesByAdminRequest) (*QueryClassesByAdminResponse, error)
	// Class queries for information on a credit class.
	Class(context.Context, *QueryClassRequest) (*QueryClassResponse, error)
	// ClassIssuers queries for the addresses of the issuers for a credit class.
	ClassIssuers(context.Context, *QueryClassIssuersRequest) (*QueryClassIssuersResponse, error)
	// Projects queries for all projects with pagination.
	Projects(context.Context, *QueryProjectsRequest) (*QueryProjectsResponse, error)
	// ProjectsByClass queries for all projects within a class with pagination.
	ProjectsByClass(context.Context, *QueryProjectsByClassRequest) (*QueryProjectsByClassResponse, error)
	// ProjectsByReferenceId queries for all projects by reference-id with
	// pagination.
	ProjectsByReferenceId(context.Context, *QueryProjectsByReferenceIdRequest) (*QueryProjectsByReferenceIdResponse, error)
	// ProjectsByAdmin queries for all projects by admin with
	// pagination.
	ProjectsByAdmin(context.Context, *QueryProjectsByAdminRequest) (*QueryProjectsByAdminResponse, error)
	// Project queries for information on a project.
	Project(context.Context, *QueryProjectRequest) (*QueryProjectResponse, error)
	// Batches queries for all batches with pagination.
	Batches(context.Context, *QueryBatchesRequest) (*QueryBatchesResponse, error)
	// BatchesByIssuer queries all batches issued from a given issuer address.
	BatchesByIssuer(context.Context, *QueryBatchesByIssuerRequest) (*QueryBatchesByIssuerResponse, error)
	// BatchesByClass queries all batches issued from a given class.
	BatchesByClass(context.Context, *QueryBatchesByClassRequest) (*QueryBatchesByClassResponse, error)
	// BatchesByProject queries for all batches from a given project with
	// pagination.
	BatchesByProject(context.Context, *QueryBatchesByProjectRequest) (*QueryBatchesByProjectResponse, error)
	// Batch queries for information on a credit batch.
	Batch(context.Context, *QueryBatchRequest) (*QueryBatchResponse, error)
	// Balance queries the balance (both tradable and retired) of a given credit
	// batch for a given account address.
	Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
	// Balances queries all credit balances the given account holds.
	Balances(context.Context, *QueryBalancesRequest) (*QueryBalancesResponse, 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)
	// CreditType queries credit type information by abbreviation.
	CreditType(context.Context, *QueryCreditTypeRequest) (*QueryCreditTypeResponse, 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 identifier of the 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_amount is the decimal number of tradable credits in the batch
	// supply.
	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 in the batch
	// supply.
	RetiredAmount string `protobuf:"bytes,2,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"`
	// cancelled_amount is the decimal number of cancelled credits in the batch
	// supply.
	CancelledAmount string `protobuf:"bytes,3,opt,name=cancelled_amount,json=cancelledAmount,proto3" json:"cancelled_amount,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) GetCancelledAmount

func (x *QuerySupplyResponse) GetCancelledAmount() string

func (*QuerySupplyResponse) GetRetiredAmount

func (x *QuerySupplyResponse) GetRetiredAmount() string

func (*QuerySupplyResponse) GetTradableAmount

func (x *QuerySupplyResponse) GetTradableAmount() 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 {
	CreditTypeTable() CreditTypeTable
	ClassTable() ClassTable
	ClassIssuerTable() ClassIssuerTable
	ProjectTable() ProjectTable
	BatchTable() BatchTable
	ClassSequenceTable() ClassSequenceTable
	ProjectSequenceTable() ProjectSequenceTable
	BatchSequenceTable() BatchSequenceTable
	BatchBalanceTable() BatchBalanceTable
	BatchSupplyTable() BatchSupplyTable
	OriginTxIndexTable() OriginTxIndexTable
	BatchContractTable() BatchContractTable
	// 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) Bridge

func (UnimplementedMsgServer) BridgeReceive

func (UnimplementedMsgServer) Cancel

func (UnimplementedMsgServer) CreateBatch

func (UnimplementedMsgServer) CreateClass

func (UnimplementedMsgServer) CreateProject

func (UnimplementedMsgServer) MintBatchCredits

func (UnimplementedMsgServer) Retire

func (UnimplementedMsgServer) SealBatch

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) Balances

func (UnimplementedQueryServer) Batch

func (UnimplementedQueryServer) Batches

func (UnimplementedQueryServer) Class

func (UnimplementedQueryServer) Classes

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Project

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