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 ¶
- Variables
- func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)
- func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)
- type Balance
- func (*Balance) Descriptor() ([]byte, []int)deprecated
- func (x *Balance) GetAddress() string
- func (x *Balance) GetBatchDenom() string
- func (x *Balance) GetRetiredBalance() string
- func (x *Balance) GetTradableBalance() string
- func (*Balance) ProtoMessage()
- func (x *Balance) ProtoReflect() protoreflect.Message
- func (x *Balance) Reset()
- func (x *Balance) String() string
- type BatchInfo
- func (*BatchInfo) Descriptor() ([]byte, []int)deprecated
- func (x *BatchInfo) GetAmountCancelled() string
- func (x *BatchInfo) GetBatchDenom() string
- func (x *BatchInfo) GetClassId() string
- func (x *BatchInfo) GetEndDate() *timestamppb.Timestamp
- func (x *BatchInfo) GetIssuer() string
- func (x *BatchInfo) GetMetadata() []byte
- func (x *BatchInfo) GetProjectLocation() string
- func (x *BatchInfo) GetStartDate() *timestamppb.Timestamp
- func (x *BatchInfo) GetTotalAmount() string
- func (*BatchInfo) ProtoMessage()
- func (x *BatchInfo) ProtoReflect() protoreflect.Message
- func (x *BatchInfo) Reset()
- func (x *BatchInfo) String() string
- type ClassInfo
- func (*ClassInfo) Descriptor() ([]byte, []int)deprecated
- func (x *ClassInfo) GetAdmin() string
- func (x *ClassInfo) GetClassId() string
- func (x *ClassInfo) GetCreditType() *CreditType
- func (x *ClassInfo) GetIssuers() []string
- func (x *ClassInfo) GetMetadata() []byte
- func (x *ClassInfo) GetNumBatches() uint64
- func (*ClassInfo) ProtoMessage()
- func (x *ClassInfo) ProtoReflect() protoreflect.Message
- func (x *ClassInfo) Reset()
- func (x *ClassInfo) String() string
- type CreditType
- func (*CreditType) Descriptor() ([]byte, []int)deprecated
- func (x *CreditType) GetAbbreviation() string
- func (x *CreditType) GetName() string
- func (x *CreditType) GetPrecision() uint32
- func (x *CreditType) GetUnit() string
- func (*CreditType) ProtoMessage()
- func (x *CreditType) ProtoReflect() protoreflect.Message
- func (x *CreditType) Reset()
- func (x *CreditType) String() string
- type CreditTypeSeq
- func (*CreditTypeSeq) Descriptor() ([]byte, []int)deprecated
- func (x *CreditTypeSeq) GetAbbreviation() string
- func (x *CreditTypeSeq) GetSeqNumber() uint64
- func (*CreditTypeSeq) ProtoMessage()
- func (x *CreditTypeSeq) ProtoReflect() protoreflect.Message
- func (x *CreditTypeSeq) Reset()
- func (x *CreditTypeSeq) String() string
- type EventCancel
- func (*EventCancel) Descriptor() ([]byte, []int)deprecated
- func (x *EventCancel) GetAmount() string
- func (x *EventCancel) GetBatchDenom() string
- func (x *EventCancel) GetCanceller() string
- func (*EventCancel) ProtoMessage()
- func (x *EventCancel) ProtoReflect() protoreflect.Message
- func (x *EventCancel) Reset()
- func (x *EventCancel) String() string
- type EventCreateBatch
- func (*EventCreateBatch) Descriptor() ([]byte, []int)deprecated
- func (x *EventCreateBatch) GetBatchDenom() string
- func (x *EventCreateBatch) GetClassId() string
- func (x *EventCreateBatch) GetEndDate() string
- func (x *EventCreateBatch) GetIssuer() string
- func (x *EventCreateBatch) GetProjectLocation() string
- func (x *EventCreateBatch) GetStartDate() string
- func (x *EventCreateBatch) GetTotalAmount() string
- func (*EventCreateBatch) ProtoMessage()
- func (x *EventCreateBatch) ProtoReflect() protoreflect.Message
- func (x *EventCreateBatch) Reset()
- func (x *EventCreateBatch) String() string
- type EventCreateClass
- func (*EventCreateClass) Descriptor() ([]byte, []int)deprecated
- func (x *EventCreateClass) GetAdmin() string
- func (x *EventCreateClass) GetClassId() string
- func (*EventCreateClass) ProtoMessage()
- func (x *EventCreateClass) ProtoReflect() protoreflect.Message
- func (x *EventCreateClass) Reset()
- func (x *EventCreateClass) String() string
- type EventReceive
- func (*EventReceive) Descriptor() ([]byte, []int)deprecated
- func (x *EventReceive) GetBasketDenom() string
- func (x *EventReceive) GetBatchDenom() string
- func (x *EventReceive) GetRecipient() string
- func (x *EventReceive) GetRetiredAmount() string
- func (x *EventReceive) GetSender() string
- func (x *EventReceive) GetTradableAmount() string
- func (*EventReceive) ProtoMessage()
- func (x *EventReceive) ProtoReflect() protoreflect.Message
- func (x *EventReceive) Reset()
- func (x *EventReceive) String() string
- type EventRetire
- func (*EventRetire) Descriptor() ([]byte, []int)deprecated
- func (x *EventRetire) GetAmount() string
- func (x *EventRetire) GetBatchDenom() string
- func (x *EventRetire) GetLocation() string
- func (x *EventRetire) GetRetirer() string
- func (*EventRetire) ProtoMessage()
- func (x *EventRetire) ProtoReflect() protoreflect.Message
- func (x *EventRetire) Reset()
- func (x *EventRetire) String() string
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)deprecated
- func (x *GenesisState) GetBalances() []*Balance
- func (x *GenesisState) GetBatchInfo() []*BatchInfo
- func (x *GenesisState) GetClassInfo() []*ClassInfo
- func (x *GenesisState) GetParams() *Params
- func (x *GenesisState) GetSequences() []*CreditTypeSeq
- func (x *GenesisState) GetSupplies() []*Supply
- func (*GenesisState) ProtoMessage()
- func (x *GenesisState) ProtoReflect() protoreflect.Message
- func (x *GenesisState) Reset()
- func (x *GenesisState) String() string
- type MsgCancel
- func (*MsgCancel) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCancel) GetCredits() []*MsgCancel_CancelCredits
- func (x *MsgCancel) GetHolder() string
- func (*MsgCancel) ProtoMessage()
- func (x *MsgCancel) ProtoReflect() protoreflect.Message
- func (x *MsgCancel) Reset()
- func (x *MsgCancel) String() string
- type MsgCancelResponse
- type MsgCancel_CancelCredits
- func (*MsgCancel_CancelCredits) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCancel_CancelCredits) GetAmount() string
- func (x *MsgCancel_CancelCredits) GetBatchDenom() string
- func (*MsgCancel_CancelCredits) ProtoMessage()
- func (x *MsgCancel_CancelCredits) ProtoReflect() protoreflect.Message
- func (x *MsgCancel_CancelCredits) Reset()
- func (x *MsgCancel_CancelCredits) String() string
- type MsgClient
- type MsgCreateBatch
- func (*MsgCreateBatch) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateBatch) GetClassId() string
- func (x *MsgCreateBatch) GetEndDate() *timestamppb.Timestamp
- func (x *MsgCreateBatch) GetIssuance() []*MsgCreateBatch_BatchIssuance
- func (x *MsgCreateBatch) GetIssuer() string
- func (x *MsgCreateBatch) GetMetadata() []byte
- func (x *MsgCreateBatch) GetProjectLocation() string
- func (x *MsgCreateBatch) GetStartDate() *timestamppb.Timestamp
- func (*MsgCreateBatch) ProtoMessage()
- func (x *MsgCreateBatch) ProtoReflect() protoreflect.Message
- func (x *MsgCreateBatch) Reset()
- func (x *MsgCreateBatch) String() string
- type MsgCreateBatchResponse
- func (*MsgCreateBatchResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateBatchResponse) GetBatchDenom() string
- func (*MsgCreateBatchResponse) ProtoMessage()
- func (x *MsgCreateBatchResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCreateBatchResponse) Reset()
- func (x *MsgCreateBatchResponse) String() string
- type MsgCreateBatch_BatchIssuance
- func (*MsgCreateBatch_BatchIssuance) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateBatch_BatchIssuance) GetRecipient() string
- func (x *MsgCreateBatch_BatchIssuance) GetRetiredAmount() string
- func (x *MsgCreateBatch_BatchIssuance) GetRetirementLocation() string
- func (x *MsgCreateBatch_BatchIssuance) GetTradableAmount() string
- func (*MsgCreateBatch_BatchIssuance) ProtoMessage()
- func (x *MsgCreateBatch_BatchIssuance) ProtoReflect() protoreflect.Message
- func (x *MsgCreateBatch_BatchIssuance) Reset()
- func (x *MsgCreateBatch_BatchIssuance) String() string
- type MsgCreateClass
- func (*MsgCreateClass) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateClass) GetAdmin() string
- func (x *MsgCreateClass) GetCreditTypeName() string
- func (x *MsgCreateClass) GetIssuers() []string
- func (x *MsgCreateClass) GetMetadata() []byte
- func (*MsgCreateClass) ProtoMessage()
- func (x *MsgCreateClass) ProtoReflect() protoreflect.Message
- func (x *MsgCreateClass) Reset()
- func (x *MsgCreateClass) String() string
- type MsgCreateClassResponse
- func (*MsgCreateClassResponse) Descriptor() ([]byte, []int)deprecated
- func (x *MsgCreateClassResponse) GetClassId() string
- func (*MsgCreateClassResponse) ProtoMessage()
- func (x *MsgCreateClassResponse) ProtoReflect() protoreflect.Message
- func (x *MsgCreateClassResponse) Reset()
- func (x *MsgCreateClassResponse) String() string
- type MsgRetire
- func (*MsgRetire) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRetire) GetCredits() []*MsgRetire_RetireCredits
- func (x *MsgRetire) GetHolder() string
- func (x *MsgRetire) GetLocation() string
- func (*MsgRetire) ProtoMessage()
- func (x *MsgRetire) ProtoReflect() protoreflect.Message
- func (x *MsgRetire) Reset()
- func (x *MsgRetire) String() string
- type MsgRetireResponse
- type MsgRetire_RetireCredits
- func (*MsgRetire_RetireCredits) Descriptor() ([]byte, []int)deprecated
- func (x *MsgRetire_RetireCredits) GetAmount() string
- func (x *MsgRetire_RetireCredits) GetBatchDenom() string
- func (*MsgRetire_RetireCredits) ProtoMessage()
- func (x *MsgRetire_RetireCredits) ProtoReflect() protoreflect.Message
- func (x *MsgRetire_RetireCredits) Reset()
- func (x *MsgRetire_RetireCredits) String() string
- type MsgSend
- func (*MsgSend) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSend) GetCredits() []*MsgSend_SendCredits
- func (x *MsgSend) GetRecipient() string
- func (x *MsgSend) GetSender() string
- func (*MsgSend) ProtoMessage()
- func (x *MsgSend) ProtoReflect() protoreflect.Message
- func (x *MsgSend) Reset()
- func (x *MsgSend) String() string
- type MsgSendResponse
- type MsgSend_SendCredits
- func (*MsgSend_SendCredits) Descriptor() ([]byte, []int)deprecated
- func (x *MsgSend_SendCredits) GetBatchDenom() string
- func (x *MsgSend_SendCredits) GetRetiredAmount() string
- func (x *MsgSend_SendCredits) GetRetirementLocation() string
- func (x *MsgSend_SendCredits) GetTradableAmount() string
- func (*MsgSend_SendCredits) ProtoMessage()
- func (x *MsgSend_SendCredits) ProtoReflect() protoreflect.Message
- func (x *MsgSend_SendCredits) Reset()
- func (x *MsgSend_SendCredits) String() string
- type MsgServer
- type MsgUpdateClassAdmin
- func (*MsgUpdateClassAdmin) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateClassAdmin) GetAdmin() string
- func (x *MsgUpdateClassAdmin) GetClassId() string
- func (x *MsgUpdateClassAdmin) GetNewAdmin() string
- func (*MsgUpdateClassAdmin) ProtoMessage()
- func (x *MsgUpdateClassAdmin) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateClassAdmin) Reset()
- func (x *MsgUpdateClassAdmin) String() string
- type MsgUpdateClassAdminResponse
- type MsgUpdateClassIssuers
- func (*MsgUpdateClassIssuers) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateClassIssuers) GetAdmin() string
- func (x *MsgUpdateClassIssuers) GetClassId() string
- func (x *MsgUpdateClassIssuers) GetIssuers() []string
- func (*MsgUpdateClassIssuers) ProtoMessage()
- func (x *MsgUpdateClassIssuers) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateClassIssuers) Reset()
- func (x *MsgUpdateClassIssuers) String() string
- type MsgUpdateClassIssuersResponse
- func (*MsgUpdateClassIssuersResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgUpdateClassIssuersResponse) ProtoMessage()
- func (x *MsgUpdateClassIssuersResponse) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateClassIssuersResponse) Reset()
- func (x *MsgUpdateClassIssuersResponse) String() string
- type MsgUpdateClassMetadata
- func (*MsgUpdateClassMetadata) Descriptor() ([]byte, []int)deprecated
- func (x *MsgUpdateClassMetadata) GetAdmin() string
- func (x *MsgUpdateClassMetadata) GetClassId() string
- func (x *MsgUpdateClassMetadata) GetMetadata() []byte
- func (*MsgUpdateClassMetadata) ProtoMessage()
- func (x *MsgUpdateClassMetadata) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateClassMetadata) Reset()
- func (x *MsgUpdateClassMetadata) String() string
- type MsgUpdateClassMetadataResponse
- func (*MsgUpdateClassMetadataResponse) Descriptor() ([]byte, []int)deprecated
- func (*MsgUpdateClassMetadataResponse) ProtoMessage()
- func (x *MsgUpdateClassMetadataResponse) ProtoReflect() protoreflect.Message
- func (x *MsgUpdateClassMetadataResponse) Reset()
- func (x *MsgUpdateClassMetadataResponse) String() string
- type Params
- func (*Params) Descriptor() ([]byte, []int)deprecated
- func (x *Params) GetAllowedClassCreators() []string
- func (x *Params) GetAllowlistEnabled() bool
- func (x *Params) GetBasketCreationFee() []*v1beta1.Coin
- func (x *Params) GetCreditClassFee() []*v1beta1.Coin
- func (x *Params) GetCreditTypes() []*CreditType
- func (*Params) ProtoMessage()
- func (x *Params) ProtoReflect() protoreflect.Message
- func (x *Params) Reset()
- func (x *Params) String() string
- type QueryBalanceRequest
- func (*QueryBalanceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryBalanceRequest) GetAccount() string
- func (x *QueryBalanceRequest) GetBatchDenom() string
- func (*QueryBalanceRequest) ProtoMessage()
- func (x *QueryBalanceRequest) ProtoReflect() protoreflect.Message
- func (x *QueryBalanceRequest) Reset()
- func (x *QueryBalanceRequest) String() string
- type QueryBalanceResponse
- func (*QueryBalanceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryBalanceResponse) GetRetiredAmount() string
- func (x *QueryBalanceResponse) GetTradableAmount() string
- func (*QueryBalanceResponse) ProtoMessage()
- func (x *QueryBalanceResponse) ProtoReflect() protoreflect.Message
- func (x *QueryBalanceResponse) Reset()
- func (x *QueryBalanceResponse) String() string
- type QueryBatchInfoRequest
- func (*QueryBatchInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryBatchInfoRequest) GetBatchDenom() string
- func (*QueryBatchInfoRequest) ProtoMessage()
- func (x *QueryBatchInfoRequest) ProtoReflect() protoreflect.Message
- func (x *QueryBatchInfoRequest) Reset()
- func (x *QueryBatchInfoRequest) String() string
- type QueryBatchInfoResponse
- func (*QueryBatchInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryBatchInfoResponse) GetInfo() *BatchInfo
- func (*QueryBatchInfoResponse) ProtoMessage()
- func (x *QueryBatchInfoResponse) ProtoReflect() protoreflect.Message
- func (x *QueryBatchInfoResponse) Reset()
- func (x *QueryBatchInfoResponse) String() string
- type QueryBatchesRequest
- func (*QueryBatchesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryBatchesRequest) GetClassId() string
- func (x *QueryBatchesRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryBatchesRequest) ProtoMessage()
- func (x *QueryBatchesRequest) ProtoReflect() protoreflect.Message
- func (x *QueryBatchesRequest) Reset()
- func (x *QueryBatchesRequest) String() string
- type QueryBatchesResponse
- func (*QueryBatchesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryBatchesResponse) GetBatches() []*BatchInfo
- func (x *QueryBatchesResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryBatchesResponse) ProtoMessage()
- func (x *QueryBatchesResponse) ProtoReflect() protoreflect.Message
- func (x *QueryBatchesResponse) Reset()
- func (x *QueryBatchesResponse) String() string
- type QueryClassInfoRequest
- func (*QueryClassInfoRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryClassInfoRequest) GetClassId() string
- func (*QueryClassInfoRequest) ProtoMessage()
- func (x *QueryClassInfoRequest) ProtoReflect() protoreflect.Message
- func (x *QueryClassInfoRequest) Reset()
- func (x *QueryClassInfoRequest) String() string
- type QueryClassInfoResponse
- func (*QueryClassInfoResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryClassInfoResponse) GetInfo() *ClassInfo
- func (*QueryClassInfoResponse) ProtoMessage()
- func (x *QueryClassInfoResponse) ProtoReflect() protoreflect.Message
- func (x *QueryClassInfoResponse) Reset()
- func (x *QueryClassInfoResponse) String() string
- type QueryClassesRequest
- func (*QueryClassesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QueryClassesRequest) GetPagination() *v1beta1.PageRequest
- func (*QueryClassesRequest) ProtoMessage()
- func (x *QueryClassesRequest) ProtoReflect() protoreflect.Message
- func (x *QueryClassesRequest) Reset()
- func (x *QueryClassesRequest) String() string
- type QueryClassesResponse
- func (*QueryClassesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryClassesResponse) GetClasses() []*ClassInfo
- func (x *QueryClassesResponse) GetPagination() *v1beta1.PageResponse
- func (*QueryClassesResponse) ProtoMessage()
- func (x *QueryClassesResponse) ProtoReflect() protoreflect.Message
- func (x *QueryClassesResponse) Reset()
- func (x *QueryClassesResponse) String() string
- type QueryClient
- type QueryCreditTypesRequest
- type QueryCreditTypesResponse
- func (*QueryCreditTypesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryCreditTypesResponse) GetCreditTypes() []*CreditType
- func (*QueryCreditTypesResponse) ProtoMessage()
- func (x *QueryCreditTypesResponse) ProtoReflect() protoreflect.Message
- func (x *QueryCreditTypesResponse) Reset()
- func (x *QueryCreditTypesResponse) String() string
- type QueryParamsRequest
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QueryParamsResponse) GetParams() *Params
- func (*QueryParamsResponse) ProtoMessage()
- func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
- func (x *QueryParamsResponse) Reset()
- func (x *QueryParamsResponse) String() string
- type QueryServer
- type QuerySupplyRequest
- func (*QuerySupplyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySupplyRequest) GetBatchDenom() string
- func (*QuerySupplyRequest) ProtoMessage()
- func (x *QuerySupplyRequest) ProtoReflect() protoreflect.Message
- func (x *QuerySupplyRequest) Reset()
- func (x *QuerySupplyRequest) String() string
- type QuerySupplyResponse
- func (*QuerySupplyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *QuerySupplyResponse) GetRetiredSupply() string
- func (x *QuerySupplyResponse) GetTradableSupply() string
- func (*QuerySupplyResponse) ProtoMessage()
- func (x *QuerySupplyResponse) ProtoReflect() protoreflect.Message
- func (x *QuerySupplyResponse) Reset()
- func (x *QuerySupplyResponse) String() string
- type Supply
- func (*Supply) Descriptor() ([]byte, []int)deprecated
- func (x *Supply) GetBatchDenom() string
- func (x *Supply) GetRetiredSupply() string
- func (x *Supply) GetTradableSupply() string
- func (*Supply) ProtoMessage()
- func (x *Supply) ProtoReflect() protoreflect.Message
- func (x *Supply) Reset()
- func (x *Supply) String() string
- type UnimplementedMsgServer
- func (UnimplementedMsgServer) Cancel(context.Context, *MsgCancel) (*MsgCancelResponse, error)
- func (UnimplementedMsgServer) CreateBatch(context.Context, *MsgCreateBatch) (*MsgCreateBatchResponse, error)
- func (UnimplementedMsgServer) CreateClass(context.Context, *MsgCreateClass) (*MsgCreateClassResponse, error)
- func (UnimplementedMsgServer) Retire(context.Context, *MsgRetire) (*MsgRetireResponse, error)
- func (UnimplementedMsgServer) Send(context.Context, *MsgSend) (*MsgSendResponse, error)
- func (UnimplementedMsgServer) UpdateClassAdmin(context.Context, *MsgUpdateClassAdmin) (*MsgUpdateClassAdminResponse, error)
- func (UnimplementedMsgServer) UpdateClassIssuers(context.Context, *MsgUpdateClassIssuers) (*MsgUpdateClassIssuersResponse, error)
- func (UnimplementedMsgServer) UpdateClassMetadata(context.Context, *MsgUpdateClassMetadata) (*MsgUpdateClassMetadataResponse, error)
- type UnimplementedQueryServer
- func (UnimplementedQueryServer) Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
- func (UnimplementedQueryServer) BatchInfo(context.Context, *QueryBatchInfoRequest) (*QueryBatchInfoResponse, error)
- func (UnimplementedQueryServer) Batches(context.Context, *QueryBatchesRequest) (*QueryBatchesResponse, error)
- func (UnimplementedQueryServer) ClassInfo(context.Context, *QueryClassInfoRequest) (*QueryClassInfoResponse, error)
- func (UnimplementedQueryServer) Classes(context.Context, *QueryClassesRequest) (*QueryClassesResponse, error)
- func (UnimplementedQueryServer) CreditTypes(context.Context, *QueryCreditTypesRequest) (*QueryCreditTypesResponse, error)
- func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
- func (UnimplementedQueryServer) Supply(context.Context, *QuerySupplyRequest) (*QuerySupplyResponse, error)
- type UnsafeMsgServer
- type UnsafeQueryServer
Constants ¶
This section is empty.
Variables ¶
var File_regen_ecocredit_v1alpha1_events_proto protoreflect.FileDescriptor
var File_regen_ecocredit_v1alpha1_genesis_proto protoreflect.FileDescriptor
var File_regen_ecocredit_v1alpha1_query_proto protoreflect.FileDescriptor
var File_regen_ecocredit_v1alpha1_tx_proto protoreflect.FileDescriptor
var File_regen_ecocredit_v1alpha1_types_proto protoreflect.FileDescriptor
var Msg_ServiceDesc = grpc.ServiceDesc{ ServiceName: "regen.ecocredit.v1alpha1.Msg", HandlerType: (*MsgServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "CreateClass", Handler: _Msg_CreateClass_Handler, }, { MethodName: "CreateBatch", Handler: _Msg_CreateBatch_Handler, }, { MethodName: "Send", Handler: _Msg_Send_Handler, }, { MethodName: "Retire", Handler: _Msg_Retire_Handler, }, { MethodName: "Cancel", Handler: _Msg_Cancel_Handler, }, { MethodName: "UpdateClassAdmin", Handler: _Msg_UpdateClassAdmin_Handler, }, { MethodName: "UpdateClassIssuers", Handler: _Msg_UpdateClassIssuers_Handler, }, { MethodName: "UpdateClassMetadata", Handler: _Msg_UpdateClassMetadata_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "regen/ecocredit/v1alpha1/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)
var Query_ServiceDesc = grpc.ServiceDesc{ ServiceName: "regen.ecocredit.v1alpha1.Query", HandlerType: (*QueryServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Classes", Handler: _Query_Classes_Handler, }, { MethodName: "ClassInfo", Handler: _Query_ClassInfo_Handler, }, { MethodName: "Batches", Handler: _Query_Batches_Handler, }, { MethodName: "BatchInfo", Handler: _Query_BatchInfo_Handler, }, { MethodName: "Balance", Handler: _Query_Balance_Handler, }, { MethodName: "Supply", Handler: _Query_Supply_Handler, }, { MethodName: "CreditTypes", Handler: _Query_CreditTypes_Handler, }, { MethodName: "Params", Handler: _Query_Params_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "regen/ecocredit/v1alpha1/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 Balance ¶
type Balance struct { // address is the account address of the account holding credits. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // batch_denom is the unique ID of the credit batch. BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // tradable_balance is the tradable balance of the credit batch. TradableBalance string `protobuf:"bytes,3,opt,name=tradable_balance,json=tradableBalance,proto3" json:"tradable_balance,omitempty"` // retired_balance is the retired balance of the credit batch. RetiredBalance string `protobuf:"bytes,4,opt,name=retired_balance,json=retiredBalance,proto3" json:"retired_balance,omitempty"` // contains filtered or unexported fields }
Balance represents tradable or retired units of a credit batch with an account address, batch_denom, and balance.
func (*Balance) Descriptor
deprecated
func (*Balance) GetAddress ¶
func (*Balance) GetBatchDenom ¶
func (*Balance) GetRetiredBalance ¶
func (*Balance) GetTradableBalance ¶
func (*Balance) ProtoMessage ¶
func (*Balance) ProtoMessage()
func (*Balance) ProtoReflect ¶
func (x *Balance) ProtoReflect() protoreflect.Message
type BatchInfo ¶
type BatchInfo struct { // class_id is the unique ID of credit class. ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` // batch_denom is the unique ID of credit batch. BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // issuer is the issuer of the credit batch. Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"` // total_amount is the total number of active credits in the credit batch. // Some of the issued credits may be cancelled and will be removed from // total_amount and tracked in amount_cancelled. total_amount and // amount_cancelled will always sum to the original amount of credits that // were issued. TotalAmount string `protobuf:"bytes,4,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` // metadata is any arbitrary metadata attached to the credit batch. Metadata []byte `protobuf:"bytes,5,opt,name=metadata,proto3" json:"metadata,omitempty"` // amount_cancelled is the number of credits in the batch that have been // cancelled, effectively undoing there issuance. The sum of total_amount and // amount_cancelled will always sum to the original amount of credits that // were issued. AmountCancelled string `protobuf:"bytes,6,opt,name=amount_cancelled,json=amountCancelled,proto3" json:"amount_cancelled,omitempty"` // start_date is the beginning of the period during which this credit batch // was quantified and verified. StartDate *timestamppb.Timestamp `protobuf:"bytes,7,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,8,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` // project_location is the location of the project backing the credits in this // batch. Full documentation can be found in MsgCreateBatch.project_location. ProjectLocation string `protobuf:"bytes,9,opt,name=project_location,json=projectLocation,proto3" json:"project_location,omitempty"` // contains filtered or unexported fields }
BatchInfo represents the high-level on-chain information for a credit batch.
func (*BatchInfo) Descriptor
deprecated
func (*BatchInfo) GetAmountCancelled ¶
func (*BatchInfo) GetBatchDenom ¶
func (*BatchInfo) GetClassId ¶
func (*BatchInfo) GetEndDate ¶
func (x *BatchInfo) GetEndDate() *timestamppb.Timestamp
func (*BatchInfo) GetMetadata ¶
func (*BatchInfo) GetProjectLocation ¶
func (*BatchInfo) GetStartDate ¶
func (x *BatchInfo) GetStartDate() *timestamppb.Timestamp
func (*BatchInfo) GetTotalAmount ¶
func (*BatchInfo) ProtoMessage ¶
func (*BatchInfo) ProtoMessage()
func (*BatchInfo) ProtoReflect ¶
func (x *BatchInfo) ProtoReflect() protoreflect.Message
type ClassInfo ¶
type ClassInfo struct { // class_id is the unique ID of credit class. ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` // admin is the admin of the credit class. Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` // issuers are the approved issuers of the credit class. Issuers []string `protobuf:"bytes,3,rep,name=issuers,proto3" json:"issuers,omitempty"` // metadata is any arbitrary metadata to attached to the credit class. Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // credit_type describes the type of credit (e.g. carbon, biodiversity), as // well as unit and precision. CreditType *CreditType `protobuf:"bytes,5,opt,name=credit_type,json=creditType,proto3" json:"credit_type,omitempty"` // The number of batches issued in this credit class. NumBatches uint64 `protobuf:"varint,6,opt,name=num_batches,json=numBatches,proto3" json:"num_batches,omitempty"` // contains filtered or unexported fields }
ClassInfo represents the high-level on-chain information for a credit class.
func (*ClassInfo) Descriptor
deprecated
func (*ClassInfo) GetClassId ¶
func (*ClassInfo) GetCreditType ¶
func (x *ClassInfo) GetCreditType() *CreditType
func (*ClassInfo) GetIssuers ¶
func (*ClassInfo) GetMetadata ¶
func (*ClassInfo) GetNumBatches ¶
func (*ClassInfo) ProtoMessage ¶
func (*ClassInfo) ProtoMessage()
func (*ClassInfo) ProtoReflect ¶
func (x *ClassInfo) ProtoReflect() protoreflect.Message
type CreditType ¶
type CreditType struct { // the type of credit (e.g. carbon, biodiversity, etc) Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 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,2,opt,name=abbreviation,proto3" json:"abbreviation,omitempty"` // the measurement unit (e.g. kg, ton, etc) Unit string `protobuf:"bytes,3,opt,name=unit,proto3" json:"unit,omitempty"` // the decimal precision Precision uint32 `protobuf:"varint,4,opt,name=precision,proto3" json:"precision,omitempty"` // contains filtered or unexported fields }
CreditType defines the measurement unit/precision of a certain credit type (e.g. carbon, biodiversity...)
func (*CreditType) Descriptor
deprecated
func (*CreditType) Descriptor() ([]byte, []int)
Deprecated: Use CreditType.ProtoReflect.Descriptor instead.
func (*CreditType) GetAbbreviation ¶
func (x *CreditType) GetAbbreviation() string
func (*CreditType) GetName ¶
func (x *CreditType) GetName() string
func (*CreditType) GetPrecision ¶
func (x *CreditType) GetPrecision() uint32
func (*CreditType) GetUnit ¶
func (x *CreditType) GetUnit() string
func (*CreditType) ProtoMessage ¶
func (*CreditType) ProtoMessage()
func (*CreditType) ProtoReflect ¶
func (x *CreditType) ProtoReflect() protoreflect.Message
func (*CreditType) Reset ¶
func (x *CreditType) Reset()
func (*CreditType) String ¶
func (x *CreditType) String() string
type CreditTypeSeq ¶
type CreditTypeSeq struct { // The credit type abbreviation Abbreviation string `protobuf:"bytes,1,opt,name=abbreviation,proto3" json:"abbreviation,omitempty"` // The sequence number of classes of the credit type SeqNumber uint64 `protobuf:"varint,2,opt,name=seq_number,json=seqNumber,proto3" json:"seq_number,omitempty"` // contains filtered or unexported fields }
CreditTypeSeq associates a sequence number with a credit type abbreviation. This represents the number of credit classes created with that credit type.
func (*CreditTypeSeq) Descriptor
deprecated
func (*CreditTypeSeq) Descriptor() ([]byte, []int)
Deprecated: Use CreditTypeSeq.ProtoReflect.Descriptor instead.
func (*CreditTypeSeq) GetAbbreviation ¶
func (x *CreditTypeSeq) GetAbbreviation() string
func (*CreditTypeSeq) GetSeqNumber ¶
func (x *CreditTypeSeq) GetSeqNumber() uint64
func (*CreditTypeSeq) ProtoMessage ¶
func (*CreditTypeSeq) ProtoMessage()
func (*CreditTypeSeq) ProtoReflect ¶
func (x *CreditTypeSeq) ProtoReflect() protoreflect.Message
func (*CreditTypeSeq) Reset ¶
func (x *CreditTypeSeq) Reset()
func (*CreditTypeSeq) String ¶
func (x *CreditTypeSeq) String() string
type EventCancel ¶
type EventCancel struct { // canceller is the account which has cancelled the credits, which should be // the holder of the credits. Canceller string `protobuf:"bytes,1,opt,name=canceller,proto3" json:"canceller,omitempty"` // batch_denom is the unique ID of credit batch. BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // amount is the decimal number of credits that have been cancelled. Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
EventCancel is an event emitted when credits are cancelled. When credits are cancelled from multiple batches in the same transaction, a separate event is emitted for each batch_denom. This allows for easier indexing.
func (*EventCancel) Descriptor
deprecated
func (*EventCancel) Descriptor() ([]byte, []int)
Deprecated: Use EventCancel.ProtoReflect.Descriptor instead.
func (*EventCancel) GetAmount ¶
func (x *EventCancel) GetAmount() string
func (*EventCancel) GetBatchDenom ¶
func (x *EventCancel) GetBatchDenom() string
func (*EventCancel) GetCanceller ¶
func (x *EventCancel) GetCanceller() string
func (*EventCancel) ProtoMessage ¶
func (*EventCancel) ProtoMessage()
func (*EventCancel) ProtoReflect ¶
func (x *EventCancel) ProtoReflect() protoreflect.Message
func (*EventCancel) Reset ¶
func (x *EventCancel) Reset()
func (*EventCancel) String ¶
func (x *EventCancel) String() string
type EventCreateBatch ¶
type EventCreateBatch struct { // class_id is the unique ID of credit class. ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` // batch_denom is the unique ID of credit batch. BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // issuer is the account address of the issuer of the credit batch. Issuer string `protobuf:"bytes,3,opt,name=issuer,proto3" json:"issuer,omitempty"` // total_amount is the total number of credits in the credit batch. TotalAmount string `protobuf:"bytes,4,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` // start_date is the beginning of the period during which this credit batch // was quantified and verified. StartDate string `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` // end_date is the end of the period during which this credit batch was // quantified and verified. EndDate string `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` // project_location is the location of the project backing the credits in this // batch. Full documentation can be found in MsgCreateBatch.project_location. ProjectLocation string `protobuf:"bytes,7,opt,name=project_location,json=projectLocation,proto3" json:"project_location,omitempty"` // contains filtered or unexported fields }
EventCreateBatch is an event emitted when a credit batch is created.
func (*EventCreateBatch) Descriptor
deprecated
func (*EventCreateBatch) Descriptor() ([]byte, []int)
Deprecated: Use EventCreateBatch.ProtoReflect.Descriptor instead.
func (*EventCreateBatch) GetBatchDenom ¶
func (x *EventCreateBatch) GetBatchDenom() string
func (*EventCreateBatch) GetClassId ¶
func (x *EventCreateBatch) GetClassId() string
func (*EventCreateBatch) GetEndDate ¶
func (x *EventCreateBatch) GetEndDate() string
func (*EventCreateBatch) GetIssuer ¶
func (x *EventCreateBatch) GetIssuer() string
func (*EventCreateBatch) GetProjectLocation ¶
func (x *EventCreateBatch) GetProjectLocation() string
func (*EventCreateBatch) GetStartDate ¶
func (x *EventCreateBatch) GetStartDate() string
func (*EventCreateBatch) GetTotalAmount ¶
func (x *EventCreateBatch) GetTotalAmount() string
func (*EventCreateBatch) ProtoMessage ¶
func (*EventCreateBatch) ProtoMessage()
func (*EventCreateBatch) ProtoReflect ¶
func (x *EventCreateBatch) ProtoReflect() protoreflect.Message
func (*EventCreateBatch) Reset ¶
func (x *EventCreateBatch) Reset()
func (*EventCreateBatch) String ¶
func (x *EventCreateBatch) String() string
type EventCreateClass ¶
type EventCreateClass struct { // class_id is the unique ID of credit class. ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` // admin is the admin of the credit class. Admin string `protobuf:"bytes,2,opt,name=admin,proto3" json:"admin,omitempty"` // contains filtered or unexported fields }
EventCreateClass is an event emitted when a credit class is created.
func (*EventCreateClass) Descriptor
deprecated
func (*EventCreateClass) Descriptor() ([]byte, []int)
Deprecated: Use EventCreateClass.ProtoReflect.Descriptor instead.
func (*EventCreateClass) GetAdmin ¶
func (x *EventCreateClass) GetAdmin() string
func (*EventCreateClass) GetClassId ¶
func (x *EventCreateClass) GetClassId() string
func (*EventCreateClass) ProtoMessage ¶
func (*EventCreateClass) ProtoMessage()
func (*EventCreateClass) ProtoReflect ¶
func (x *EventCreateClass) ProtoReflect() protoreflect.Message
func (*EventCreateClass) Reset ¶
func (x *EventCreateClass) Reset()
func (*EventCreateClass) String ¶
func (x *EventCreateClass) String() string
type EventReceive ¶
type EventReceive struct { // sender is the sender of the credits in the case that this event is the // result of a transfer. It will not be set when credits are received at // initial issuance or taken from a basket. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // recipient is the recipient of the credits. Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` // batch_denom is the unique ID of credit batch. BatchDenom string `protobuf:"bytes,3,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // tradable_amount is the decimal number of tradable credits received. TradableAmount string `protobuf:"bytes,4,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"` // retired_amount is the decimal number of retired credits received. RetiredAmount string `protobuf:"bytes,5,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"` // basket_denom is the denom of the basket. when the basket_denom field is // set, it indicates that this event was triggered by the transfer of credits // from a basket. It will not be set if the credits were sent by a user, or by // initial issuance. BasketDenom string `protobuf:"bytes,6,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"` // contains filtered or unexported fields }
EventReceive is an event emitted when credits are received either via creation of a new batch, transfer of credits, or taking credits from a basket. Each batch_denom created, transferred or taken from a baset will result in a separate EventReceive for easy indexing.
func (*EventReceive) Descriptor
deprecated
func (*EventReceive) Descriptor() ([]byte, []int)
Deprecated: Use EventReceive.ProtoReflect.Descriptor instead.
func (*EventReceive) GetBasketDenom ¶ added in v0.6.0
func (x *EventReceive) GetBasketDenom() string
func (*EventReceive) GetBatchDenom ¶
func (x *EventReceive) GetBatchDenom() string
func (*EventReceive) GetRecipient ¶
func (x *EventReceive) GetRecipient() string
func (*EventReceive) GetRetiredAmount ¶
func (x *EventReceive) GetRetiredAmount() string
func (*EventReceive) GetSender ¶
func (x *EventReceive) GetSender() string
func (*EventReceive) GetTradableAmount ¶
func (x *EventReceive) GetTradableAmount() string
func (*EventReceive) ProtoMessage ¶
func (*EventReceive) ProtoMessage()
func (*EventReceive) ProtoReflect ¶
func (x *EventReceive) ProtoReflect() protoreflect.Message
func (*EventReceive) Reset ¶
func (x *EventReceive) Reset()
func (*EventReceive) String ¶
func (x *EventReceive) String() string
type EventRetire ¶
type EventRetire struct { // retirer is the account which has done the "retiring". This will be the // account receiving credits in the case that credits were retired upon // issuance using Msg/CreateBatch or retired upon transfer using Msg/Send. Retirer string `protobuf:"bytes,1,opt,name=retirer,proto3" json:"retirer,omitempty"` // batch_denom is the unique ID of credit batch. BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // amount is the decimal number of credits that have been retired. Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` // location is the location of the beneficiary or buyer of the retired // credits. It is a string of the form // <country-code>[-<sub-national-code>[ <postal-code>]], with the first two // fields conforming to ISO 3166-2, and postal-code being up to 64 // alphanumeric characters. Location string `protobuf:"bytes,4,opt,name=location,proto3" json:"location,omitempty"` // contains filtered or unexported fields }
EventRetire is an event emitted when credits are retired. When credits are retired from multiple batches in the same transaction, a separate event is emitted for each batch_denom. This allows for easier indexing.
func (*EventRetire) Descriptor
deprecated
func (*EventRetire) Descriptor() ([]byte, []int)
Deprecated: Use EventRetire.ProtoReflect.Descriptor instead.
func (*EventRetire) GetAmount ¶
func (x *EventRetire) GetAmount() string
func (*EventRetire) GetBatchDenom ¶
func (x *EventRetire) GetBatchDenom() string
func (*EventRetire) GetLocation ¶
func (x *EventRetire) GetLocation() string
func (*EventRetire) GetRetirer ¶
func (x *EventRetire) GetRetirer() string
func (*EventRetire) ProtoMessage ¶
func (*EventRetire) ProtoMessage()
func (*EventRetire) ProtoReflect ¶
func (x *EventRetire) ProtoReflect() protoreflect.Message
func (*EventRetire) Reset ¶
func (x *EventRetire) Reset()
func (*EventRetire) String ¶
func (x *EventRetire) String() string
type GenesisState ¶
type GenesisState struct { // Params contains the updateable global parameters for use with the x/params // module Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // class_info is the list of credit class info. ClassInfo []*ClassInfo `protobuf:"bytes,2,rep,name=class_info,json=classInfo,proto3" json:"class_info,omitempty"` // batch_info is the list of credit batch info. BatchInfo []*BatchInfo `protobuf:"bytes,3,rep,name=batch_info,json=batchInfo,proto3" json:"batch_info,omitempty"` // sequences is the list of credit type sequence. Sequences []*CreditTypeSeq `protobuf:"bytes,4,rep,name=sequences,proto3" json:"sequences,omitempty"` // balances is the list of credit batch tradable/retired units. Balances []*Balance `protobuf:"bytes,5,rep,name=balances,proto3" json:"balances,omitempty"` // supplies is the list of credit batch tradable/retired supply. Supplies []*Supply `protobuf:"bytes,6,rep,name=supplies,proto3" json:"supplies,omitempty"` // contains filtered or unexported fields }
GenesisState defines ecocredit module's genesis state.
func (*GenesisState) Descriptor
deprecated
func (*GenesisState) Descriptor() ([]byte, []int)
Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.
func (*GenesisState) GetBalances ¶
func (x *GenesisState) GetBalances() []*Balance
func (*GenesisState) GetBatchInfo ¶
func (x *GenesisState) GetBatchInfo() []*BatchInfo
func (*GenesisState) GetClassInfo ¶
func (x *GenesisState) GetClassInfo() []*ClassInfo
func (*GenesisState) GetParams ¶
func (x *GenesisState) GetParams() *Params
func (*GenesisState) GetSequences ¶
func (x *GenesisState) GetSequences() []*CreditTypeSeq
func (*GenesisState) GetSupplies ¶
func (x *GenesisState) GetSupplies() []*Supply
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) ProtoReflect ¶
func (x *GenesisState) ProtoReflect() protoreflect.Message
func (*GenesisState) Reset ¶
func (x *GenesisState) Reset()
func (*GenesisState) String ¶
func (x *GenesisState) String() string
type MsgCancel ¶
type MsgCancel struct { // holder is the credit holder address. Holder string `protobuf:"bytes,1,opt,name=holder,proto3" json:"holder,omitempty"` // credits are the credits being cancelled. Credits []*MsgCancel_CancelCredits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"` // contains filtered or unexported fields }
MsgCancel is the Msg/Cancel request type.
func (*MsgCancel) Descriptor
deprecated
func (*MsgCancel) GetCredits ¶
func (x *MsgCancel) GetCredits() []*MsgCancel_CancelCredits
func (*MsgCancel) ProtoMessage ¶
func (*MsgCancel) ProtoMessage()
func (*MsgCancel) ProtoReflect ¶
func (x *MsgCancel) ProtoReflect() protoreflect.Message
type MsgCancelResponse ¶
type MsgCancelResponse struct {
// contains filtered or unexported fields
}
MsgCancelResponse is the Msg/Cancel response type.
func (*MsgCancelResponse) Descriptor
deprecated
func (*MsgCancelResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCancelResponse.ProtoReflect.Descriptor instead.
func (*MsgCancelResponse) ProtoMessage ¶
func (*MsgCancelResponse) ProtoMessage()
func (*MsgCancelResponse) ProtoReflect ¶
func (x *MsgCancelResponse) ProtoReflect() protoreflect.Message
func (*MsgCancelResponse) Reset ¶
func (x *MsgCancelResponse) Reset()
func (*MsgCancelResponse) String ¶
func (x *MsgCancelResponse) String() string
type MsgCancel_CancelCredits ¶
type MsgCancel_CancelCredits struct { // batch_denom is the unique ID of the credit batch. BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // amount is the number of credits being cancelled. // Decimal values are acceptable within the precision returned by // Query/Precision. Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
CancelCredits specifies a batch and the number of credits being cancelled.
func (*MsgCancel_CancelCredits) Descriptor
deprecated
func (*MsgCancel_CancelCredits) Descriptor() ([]byte, []int)
Deprecated: Use MsgCancel_CancelCredits.ProtoReflect.Descriptor instead.
func (*MsgCancel_CancelCredits) GetAmount ¶
func (x *MsgCancel_CancelCredits) GetAmount() string
func (*MsgCancel_CancelCredits) GetBatchDenom ¶
func (x *MsgCancel_CancelCredits) GetBatchDenom() string
func (*MsgCancel_CancelCredits) ProtoMessage ¶
func (*MsgCancel_CancelCredits) ProtoMessage()
func (*MsgCancel_CancelCredits) ProtoReflect ¶
func (x *MsgCancel_CancelCredits) ProtoReflect() protoreflect.Message
func (*MsgCancel_CancelCredits) Reset ¶
func (x *MsgCancel_CancelCredits) Reset()
func (*MsgCancel_CancelCredits) String ¶
func (x *MsgCancel_CancelCredits) String() string
type MsgClient ¶
type MsgClient interface { // CreateClass creates a new credit class with an approved list of issuers and // optional metadata. CreateClass(ctx context.Context, in *MsgCreateClass, opts ...grpc.CallOption) (*MsgCreateClassResponse, error) // CreateBatch creates a new batch of credits for an existing credit class. // This will create a new batch denom with a fixed supply. Issued credits can // be distributed to recipients in either tradable or retired form. CreateBatch(ctx context.Context, in *MsgCreateBatch, opts ...grpc.CallOption) (*MsgCreateBatchResponse, error) // Send sends tradable credits from one account to another account. Sent // credits can either be tradable or retired on receipt. Send(ctx context.Context, in *MsgSend, opts ...grpc.CallOption) (*MsgSendResponse, error) // Retire retires a specified number of credits in the holder's account. Retire(ctx context.Context, in *MsgRetire, opts ...grpc.CallOption) (*MsgRetireResponse, error) // Cancel removes a number of credits from the holder's account and also // deducts them from the tradable supply, effectively cancelling their // issuance on Regen Ledger Cancel(ctx context.Context, in *MsgCancel, opts ...grpc.CallOption) (*MsgCancelResponse, error) // UpdateClassAdmin updates the credit class admin UpdateClassAdmin(ctx context.Context, in *MsgUpdateClassAdmin, opts ...grpc.CallOption) (*MsgUpdateClassAdminResponse, error) // UpdateClassIssuers updates the credit class issuer list UpdateClassIssuers(ctx context.Context, in *MsgUpdateClassIssuers, opts ...grpc.CallOption) (*MsgUpdateClassIssuersResponse, error) // UpdateClassMetadata updates the credit class metadata UpdateClassMetadata(ctx context.Context, in *MsgUpdateClassMetadata, opts ...grpc.CallOption) (*MsgUpdateClassMetadataResponse, error) }
MsgClient is the client API for Msg service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc.ClientConnInterface) MsgClient
type MsgCreateBatch ¶
type MsgCreateBatch struct { // issuer is the address of the batch issuer. Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` // class_id is the unique ID of the class. ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` // issuance are the credits issued in the batch. Issuance []*MsgCreateBatch_BatchIssuance `protobuf:"bytes,3,rep,name=issuance,proto3" json:"issuance,omitempty"` // metadata is any arbitrary metadata attached to the credit batch. Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // start_date is the beginning of the period during which this credit batch // was quantified and verified. StartDate *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` // end_date is the end of the period during which this credit batch was // quantified and verified. EndDate *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` // project_location is the location of the project backing the credits in this // batch. It is a string of the form // <country-code>[-<sub-national-code>[ <postal-code>]], with the first two // fields conforming to ISO 3166-2, and postal-code being up to 64 // alphanumeric characters. country-code is required, while sub-national-code // and postal-code can be added for increasing precision. ProjectLocation string `protobuf:"bytes,7,opt,name=project_location,json=projectLocation,proto3" json:"project_location,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) GetClassId ¶
func (x *MsgCreateBatch) GetClassId() string
func (*MsgCreateBatch) GetEndDate ¶
func (x *MsgCreateBatch) GetEndDate() *timestamppb.Timestamp
func (*MsgCreateBatch) GetIssuance ¶
func (x *MsgCreateBatch) GetIssuance() []*MsgCreateBatch_BatchIssuance
func (*MsgCreateBatch) GetIssuer ¶
func (x *MsgCreateBatch) GetIssuer() string
func (*MsgCreateBatch) GetMetadata ¶
func (x *MsgCreateBatch) GetMetadata() []byte
func (*MsgCreateBatch) GetProjectLocation ¶
func (x *MsgCreateBatch) GetProjectLocation() string
func (*MsgCreateBatch) GetStartDate ¶
func (x *MsgCreateBatch) GetStartDate() *timestamppb.Timestamp
func (*MsgCreateBatch) ProtoMessage ¶
func (*MsgCreateBatch) ProtoMessage()
func (*MsgCreateBatch) ProtoReflect ¶
func (x *MsgCreateBatch) ProtoReflect() protoreflect.Message
func (*MsgCreateBatch) Reset ¶
func (x *MsgCreateBatch) Reset()
func (*MsgCreateBatch) String ¶
func (x *MsgCreateBatch) String() string
type MsgCreateBatchResponse ¶
type MsgCreateBatchResponse struct { // batch_denom is the unique denomination ID of the newly created batch. BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // contains filtered or unexported fields }
MsgCreateBatchResponse is the Msg/CreateBatch response type.
func (*MsgCreateBatchResponse) Descriptor
deprecated
func (*MsgCreateBatchResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateBatchResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateBatchResponse) GetBatchDenom ¶
func (x *MsgCreateBatchResponse) GetBatchDenom() string
func (*MsgCreateBatchResponse) ProtoMessage ¶
func (*MsgCreateBatchResponse) ProtoMessage()
func (*MsgCreateBatchResponse) ProtoReflect ¶
func (x *MsgCreateBatchResponse) ProtoReflect() protoreflect.Message
func (*MsgCreateBatchResponse) Reset ¶
func (x *MsgCreateBatchResponse) Reset()
func (*MsgCreateBatchResponse) String ¶
func (x *MsgCreateBatchResponse) String() string
type MsgCreateBatch_BatchIssuance ¶
type MsgCreateBatch_BatchIssuance struct { // recipient is the account of the recipient. Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` // tradable_amount is the number of credits in this issuance that can be // traded by this recipient. Decimal values are acceptable. TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"` // retired_amount is the number of credits in this issuance that are // effectively retired by the issuer on receipt. Decimal values are // acceptable. RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"` // retirement_location is the location of the beneficiary or buyer of the // retired credits. This must be provided if retired_amount is positive. It // is a string of the form // <country-code>[-<sub-national-code>[ <postal-code>]], with the first two // fields conforming to ISO 3166-2, and postal-code being up to 64 // alphanumeric characters. RetirementLocation string `protobuf:"bytes,4,opt,name=retirement_location,json=retirementLocation,proto3" json:"retirement_location,omitempty"` // contains filtered or unexported fields }
BatchIssuance represents the issuance of some credits in a batch to a single recipient.
func (*MsgCreateBatch_BatchIssuance) Descriptor
deprecated
func (*MsgCreateBatch_BatchIssuance) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateBatch_BatchIssuance.ProtoReflect.Descriptor instead.
func (*MsgCreateBatch_BatchIssuance) GetRecipient ¶
func (x *MsgCreateBatch_BatchIssuance) GetRecipient() string
func (*MsgCreateBatch_BatchIssuance) GetRetiredAmount ¶
func (x *MsgCreateBatch_BatchIssuance) GetRetiredAmount() string
func (*MsgCreateBatch_BatchIssuance) GetRetirementLocation ¶
func (x *MsgCreateBatch_BatchIssuance) GetRetirementLocation() string
func (*MsgCreateBatch_BatchIssuance) GetTradableAmount ¶
func (x *MsgCreateBatch_BatchIssuance) GetTradableAmount() string
func (*MsgCreateBatch_BatchIssuance) ProtoMessage ¶
func (*MsgCreateBatch_BatchIssuance) ProtoMessage()
func (*MsgCreateBatch_BatchIssuance) ProtoReflect ¶
func (x *MsgCreateBatch_BatchIssuance) ProtoReflect() protoreflect.Message
func (*MsgCreateBatch_BatchIssuance) Reset ¶
func (x *MsgCreateBatch_BatchIssuance) Reset()
func (*MsgCreateBatch_BatchIssuance) String ¶
func (x *MsgCreateBatch_BatchIssuance) String() string
type MsgCreateClass ¶
type MsgCreateClass struct { // admin is the address of the account that created the credit class. Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` // issuers are the account addresses of the approved issuers. Issuers []string `protobuf:"bytes,2,rep,name=issuers,proto3" json:"issuers,omitempty"` // metadata is any arbitrary metadata to attached to the credit class. Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // credit_type_name describes the type of credit (e.g. "carbon", // "biodiversity"). CreditTypeName string `protobuf:"bytes,4,opt,name=credit_type_name,json=creditTypeName,proto3" json:"credit_type_name,omitempty"` // contains filtered or unexported fields }
MsgCreateClass is the Msg/CreateClass request type.
func (*MsgCreateClass) Descriptor
deprecated
func (*MsgCreateClass) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateClass.ProtoReflect.Descriptor instead.
func (*MsgCreateClass) GetAdmin ¶
func (x *MsgCreateClass) GetAdmin() string
func (*MsgCreateClass) GetCreditTypeName ¶
func (x *MsgCreateClass) GetCreditTypeName() string
func (*MsgCreateClass) GetIssuers ¶
func (x *MsgCreateClass) GetIssuers() []string
func (*MsgCreateClass) GetMetadata ¶
func (x *MsgCreateClass) GetMetadata() []byte
func (*MsgCreateClass) ProtoMessage ¶
func (*MsgCreateClass) ProtoMessage()
func (*MsgCreateClass) ProtoReflect ¶
func (x *MsgCreateClass) ProtoReflect() protoreflect.Message
func (*MsgCreateClass) Reset ¶
func (x *MsgCreateClass) Reset()
func (*MsgCreateClass) String ¶
func (x *MsgCreateClass) String() string
type MsgCreateClassResponse ¶
type MsgCreateClassResponse struct { // class_id is the unique ID of the newly created credit class. ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` // contains filtered or unexported fields }
MsgCreateClassResponse is the Msg/CreateClass response type.
func (*MsgCreateClassResponse) Descriptor
deprecated
func (*MsgCreateClassResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgCreateClassResponse.ProtoReflect.Descriptor instead.
func (*MsgCreateClassResponse) GetClassId ¶
func (x *MsgCreateClassResponse) GetClassId() string
func (*MsgCreateClassResponse) ProtoMessage ¶
func (*MsgCreateClassResponse) ProtoMessage()
func (*MsgCreateClassResponse) ProtoReflect ¶
func (x *MsgCreateClassResponse) ProtoReflect() protoreflect.Message
func (*MsgCreateClassResponse) Reset ¶
func (x *MsgCreateClassResponse) Reset()
func (*MsgCreateClassResponse) String ¶
func (x *MsgCreateClassResponse) String() string
type MsgRetire ¶
type MsgRetire struct { // holder is the credit holder address. Holder string `protobuf:"bytes,1,opt,name=holder,proto3" json:"holder,omitempty"` // credits are the credits being retired. Credits []*MsgRetire_RetireCredits `protobuf:"bytes,2,rep,name=credits,proto3" json:"credits,omitempty"` // location is the location of the beneficiary or buyer of the retired // credits. It is a string of the form // <country-code>[-<sub-national-code>[ <postal-code>]], with the first two // fields conforming to ISO 3166-2, and postal-code being up to 64 // alphanumeric characters. Location string `protobuf:"bytes,3,opt,name=location,proto3" json:"location,omitempty"` // contains filtered or unexported fields }
MsgRetire is the Msg/Retire request type.
func (*MsgRetire) Descriptor
deprecated
func (*MsgRetire) GetCredits ¶
func (x *MsgRetire) GetCredits() []*MsgRetire_RetireCredits
func (*MsgRetire) GetLocation ¶
func (*MsgRetire) ProtoMessage ¶
func (*MsgRetire) ProtoMessage()
func (*MsgRetire) ProtoReflect ¶
func (x *MsgRetire) ProtoReflect() protoreflect.Message
type MsgRetireResponse ¶
type MsgRetireResponse struct {
// contains filtered or unexported fields
}
MsgRetire is the Msg/Retire response type.
func (*MsgRetireResponse) Descriptor
deprecated
func (*MsgRetireResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgRetireResponse.ProtoReflect.Descriptor instead.
func (*MsgRetireResponse) ProtoMessage ¶
func (*MsgRetireResponse) ProtoMessage()
func (*MsgRetireResponse) ProtoReflect ¶
func (x *MsgRetireResponse) ProtoReflect() protoreflect.Message
func (*MsgRetireResponse) Reset ¶
func (x *MsgRetireResponse) Reset()
func (*MsgRetireResponse) String ¶
func (x *MsgRetireResponse) String() string
type MsgRetire_RetireCredits ¶
type MsgRetire_RetireCredits struct { // batch_denom is the unique ID of the credit batch. BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // amount is the number of credits being retired. // Decimal values are acceptable within the precision returned by // Query/Precision. Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"` // contains filtered or unexported fields }
RetireCredits specifies a batch and the number of credits being retired.
func (*MsgRetire_RetireCredits) Descriptor
deprecated
func (*MsgRetire_RetireCredits) Descriptor() ([]byte, []int)
Deprecated: Use MsgRetire_RetireCredits.ProtoReflect.Descriptor instead.
func (*MsgRetire_RetireCredits) GetAmount ¶
func (x *MsgRetire_RetireCredits) GetAmount() string
func (*MsgRetire_RetireCredits) GetBatchDenom ¶
func (x *MsgRetire_RetireCredits) GetBatchDenom() string
func (*MsgRetire_RetireCredits) ProtoMessage ¶
func (*MsgRetire_RetireCredits) ProtoMessage()
func (*MsgRetire_RetireCredits) ProtoReflect ¶
func (x *MsgRetire_RetireCredits) ProtoReflect() protoreflect.Message
func (*MsgRetire_RetireCredits) Reset ¶
func (x *MsgRetire_RetireCredits) Reset()
func (*MsgRetire_RetireCredits) String ¶
func (x *MsgRetire_RetireCredits) String() string
type MsgSend ¶
type MsgSend struct { // sender is the address of the account sending credits. Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` // sender is the address of the account receiving credits. Recipient string `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"` // credits are the credits being sent. Credits []*MsgSend_SendCredits `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"` // contains filtered or unexported fields }
MsgSend is the Msg/Send request type.
func (*MsgSend) Descriptor
deprecated
func (*MsgSend) GetCredits ¶
func (x *MsgSend) GetCredits() []*MsgSend_SendCredits
func (*MsgSend) GetRecipient ¶
func (*MsgSend) ProtoMessage ¶
func (*MsgSend) ProtoMessage()
func (*MsgSend) ProtoReflect ¶
func (x *MsgSend) ProtoReflect() protoreflect.Message
type MsgSendResponse ¶
type MsgSendResponse struct {
// contains filtered or unexported fields
}
MsgSendResponse is the Msg/Send response type.
func (*MsgSendResponse) Descriptor
deprecated
func (*MsgSendResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgSendResponse.ProtoReflect.Descriptor instead.
func (*MsgSendResponse) ProtoMessage ¶
func (*MsgSendResponse) ProtoMessage()
func (*MsgSendResponse) ProtoReflect ¶
func (x *MsgSendResponse) ProtoReflect() protoreflect.Message
func (*MsgSendResponse) Reset ¶
func (x *MsgSendResponse) Reset()
func (*MsgSendResponse) String ¶
func (x *MsgSendResponse) String() string
type MsgSend_SendCredits ¶
type MsgSend_SendCredits struct { // batch_denom is the unique ID of the credit batch. BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // tradable_amount is the number of credits in this transfer that can be // traded by the recipient. Decimal values are acceptable within the // precision returned by Query/Precision. TradableAmount string `protobuf:"bytes,2,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"` // retired_amount is the number of credits in this transfer that are // effectively retired by the issuer on receipt. Decimal values are // acceptable within the precision returned by Query/Precision. RetiredAmount string `protobuf:"bytes,3,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"` // retirement_location is the location of the beneficiary or buyer of the // retired credits. This must be provided if retired_amount is positive. It // is a string of the form // <country-code>[-<sub-national-code>[ <postal-code>]], with the first two // fields conforming to ISO 3166-2, and postal-code being up to 64 // alphanumeric characters. RetirementLocation string `protobuf:"bytes,4,opt,name=retirement_location,json=retirementLocation,proto3" json:"retirement_location,omitempty"` // contains filtered or unexported fields }
SendCredits specifies a batch and the number of credits being transferred. This is split into tradable credits, which will remain tradable on receipt, and retired credits, which will be retired on receipt.
func (*MsgSend_SendCredits) Descriptor
deprecated
func (*MsgSend_SendCredits) Descriptor() ([]byte, []int)
Deprecated: Use MsgSend_SendCredits.ProtoReflect.Descriptor instead.
func (*MsgSend_SendCredits) GetBatchDenom ¶
func (x *MsgSend_SendCredits) GetBatchDenom() string
func (*MsgSend_SendCredits) GetRetiredAmount ¶
func (x *MsgSend_SendCredits) GetRetiredAmount() string
func (*MsgSend_SendCredits) GetRetirementLocation ¶
func (x *MsgSend_SendCredits) GetRetirementLocation() string
func (*MsgSend_SendCredits) GetTradableAmount ¶
func (x *MsgSend_SendCredits) GetTradableAmount() string
func (*MsgSend_SendCredits) ProtoMessage ¶
func (*MsgSend_SendCredits) ProtoMessage()
func (*MsgSend_SendCredits) ProtoReflect ¶
func (x *MsgSend_SendCredits) ProtoReflect() protoreflect.Message
func (*MsgSend_SendCredits) Reset ¶
func (x *MsgSend_SendCredits) Reset()
func (*MsgSend_SendCredits) String ¶
func (x *MsgSend_SendCredits) String() string
type MsgServer ¶
type MsgServer interface { // CreateClass creates a new credit class with an approved list of issuers and // optional metadata. CreateClass(context.Context, *MsgCreateClass) (*MsgCreateClassResponse, error) // CreateBatch creates a new batch of credits for an existing credit class. // This will create a new batch denom with a fixed supply. Issued credits can // be distributed to recipients in either tradable or retired form. CreateBatch(context.Context, *MsgCreateBatch) (*MsgCreateBatchResponse, error) // Send sends tradable credits from one account to another account. Sent // credits can either be tradable or retired on receipt. Send(context.Context, *MsgSend) (*MsgSendResponse, error) // Retire retires a specified number of credits in the holder's account. Retire(context.Context, *MsgRetire) (*MsgRetireResponse, error) // Cancel removes a number of credits from the holder's account and also // deducts them from the tradable supply, effectively cancelling their // issuance on Regen Ledger Cancel(context.Context, *MsgCancel) (*MsgCancelResponse, error) // UpdateClassAdmin updates the credit class admin UpdateClassAdmin(context.Context, *MsgUpdateClassAdmin) (*MsgUpdateClassAdminResponse, error) // UpdateClassIssuers updates the credit class issuer list UpdateClassIssuers(context.Context, *MsgUpdateClassIssuers) (*MsgUpdateClassIssuersResponse, error) // UpdateClassMetadata updates the credit class metadata UpdateClassMetadata(context.Context, *MsgUpdateClassMetadata) (*MsgUpdateClassMetadataResponse, error) // contains filtered or unexported methods }
MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility
type MsgUpdateClassAdmin ¶
type MsgUpdateClassAdmin struct { // admin is the address of the account that is the admin of the credit class. Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` // class_id is the unique ID of the credit class. ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` // new_admin is the address of the new admin of the credit class. NewAdmin string `protobuf:"bytes,3,opt,name=new_admin,json=newAdmin,proto3" json:"new_admin,omitempty"` // contains filtered or unexported fields }
MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type.
func (*MsgUpdateClassAdmin) Descriptor
deprecated
func (*MsgUpdateClassAdmin) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateClassAdmin.ProtoReflect.Descriptor instead.
func (*MsgUpdateClassAdmin) GetAdmin ¶
func (x *MsgUpdateClassAdmin) GetAdmin() string
func (*MsgUpdateClassAdmin) GetClassId ¶
func (x *MsgUpdateClassAdmin) GetClassId() string
func (*MsgUpdateClassAdmin) GetNewAdmin ¶
func (x *MsgUpdateClassAdmin) GetNewAdmin() string
func (*MsgUpdateClassAdmin) ProtoMessage ¶
func (*MsgUpdateClassAdmin) ProtoMessage()
func (*MsgUpdateClassAdmin) ProtoReflect ¶
func (x *MsgUpdateClassAdmin) ProtoReflect() protoreflect.Message
func (*MsgUpdateClassAdmin) Reset ¶
func (x *MsgUpdateClassAdmin) Reset()
func (*MsgUpdateClassAdmin) String ¶
func (x *MsgUpdateClassAdmin) String() string
type MsgUpdateClassAdminResponse ¶
type MsgUpdateClassAdminResponse struct {
// contains filtered or unexported fields
}
MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type.
func (*MsgUpdateClassAdminResponse) Descriptor
deprecated
func (*MsgUpdateClassAdminResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateClassAdminResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateClassAdminResponse) ProtoMessage ¶
func (*MsgUpdateClassAdminResponse) ProtoMessage()
func (*MsgUpdateClassAdminResponse) ProtoReflect ¶
func (x *MsgUpdateClassAdminResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateClassAdminResponse) Reset ¶
func (x *MsgUpdateClassAdminResponse) Reset()
func (*MsgUpdateClassAdminResponse) String ¶
func (x *MsgUpdateClassAdminResponse) String() string
type MsgUpdateClassIssuers ¶
type MsgUpdateClassIssuers struct { // admin is the address of the account that is the admin of the credit class. Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` // class_id is the unique ID of the credit class. ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` // issuers are the updated account addresses of the approved issuers. Issuers []string `protobuf:"bytes,3,rep,name=issuers,proto3" json:"issuers,omitempty"` // contains filtered or unexported fields }
MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type.
func (*MsgUpdateClassIssuers) Descriptor
deprecated
func (*MsgUpdateClassIssuers) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateClassIssuers.ProtoReflect.Descriptor instead.
func (*MsgUpdateClassIssuers) GetAdmin ¶
func (x *MsgUpdateClassIssuers) GetAdmin() string
func (*MsgUpdateClassIssuers) GetClassId ¶
func (x *MsgUpdateClassIssuers) GetClassId() string
func (*MsgUpdateClassIssuers) GetIssuers ¶
func (x *MsgUpdateClassIssuers) GetIssuers() []string
func (*MsgUpdateClassIssuers) ProtoMessage ¶
func (*MsgUpdateClassIssuers) ProtoMessage()
func (*MsgUpdateClassIssuers) ProtoReflect ¶
func (x *MsgUpdateClassIssuers) ProtoReflect() protoreflect.Message
func (*MsgUpdateClassIssuers) Reset ¶
func (x *MsgUpdateClassIssuers) Reset()
func (*MsgUpdateClassIssuers) String ¶
func (x *MsgUpdateClassIssuers) String() string
type MsgUpdateClassIssuersResponse ¶
type MsgUpdateClassIssuersResponse struct {
// contains filtered or unexported fields
}
MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type.
func (*MsgUpdateClassIssuersResponse) Descriptor
deprecated
func (*MsgUpdateClassIssuersResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateClassIssuersResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateClassIssuersResponse) ProtoMessage ¶
func (*MsgUpdateClassIssuersResponse) ProtoMessage()
func (*MsgUpdateClassIssuersResponse) ProtoReflect ¶
func (x *MsgUpdateClassIssuersResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateClassIssuersResponse) Reset ¶
func (x *MsgUpdateClassIssuersResponse) Reset()
func (*MsgUpdateClassIssuersResponse) String ¶
func (x *MsgUpdateClassIssuersResponse) String() string
type MsgUpdateClassMetadata ¶
type MsgUpdateClassMetadata struct { // admin is the address of the account that is the admin of the credit class. Admin string `protobuf:"bytes,1,opt,name=admin,proto3" json:"admin,omitempty"` // class_id is the unique ID of the credit class. ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` // metadata is the updated arbitrary metadata to be attached to the credit // class. Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type.
func (*MsgUpdateClassMetadata) Descriptor
deprecated
func (*MsgUpdateClassMetadata) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateClassMetadata.ProtoReflect.Descriptor instead.
func (*MsgUpdateClassMetadata) GetAdmin ¶
func (x *MsgUpdateClassMetadata) GetAdmin() string
func (*MsgUpdateClassMetadata) GetClassId ¶
func (x *MsgUpdateClassMetadata) GetClassId() string
func (*MsgUpdateClassMetadata) GetMetadata ¶
func (x *MsgUpdateClassMetadata) GetMetadata() []byte
func (*MsgUpdateClassMetadata) ProtoMessage ¶
func (*MsgUpdateClassMetadata) ProtoMessage()
func (*MsgUpdateClassMetadata) ProtoReflect ¶
func (x *MsgUpdateClassMetadata) ProtoReflect() protoreflect.Message
func (*MsgUpdateClassMetadata) Reset ¶
func (x *MsgUpdateClassMetadata) Reset()
func (*MsgUpdateClassMetadata) String ¶
func (x *MsgUpdateClassMetadata) String() string
type MsgUpdateClassMetadataResponse ¶
type MsgUpdateClassMetadataResponse struct {
// contains filtered or unexported fields
}
MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type.
func (*MsgUpdateClassMetadataResponse) Descriptor
deprecated
func (*MsgUpdateClassMetadataResponse) Descriptor() ([]byte, []int)
Deprecated: Use MsgUpdateClassMetadataResponse.ProtoReflect.Descriptor instead.
func (*MsgUpdateClassMetadataResponse) ProtoMessage ¶
func (*MsgUpdateClassMetadataResponse) ProtoMessage()
func (*MsgUpdateClassMetadataResponse) ProtoReflect ¶
func (x *MsgUpdateClassMetadataResponse) ProtoReflect() protoreflect.Message
func (*MsgUpdateClassMetadataResponse) Reset ¶
func (x *MsgUpdateClassMetadataResponse) Reset()
func (*MsgUpdateClassMetadataResponse) String ¶
func (x *MsgUpdateClassMetadataResponse) String() string
type Params ¶
type Params struct { // credit_class_fee is the fixed fee charged on creation of a new credit class CreditClassFee []*v1beta1.Coin `protobuf:"bytes,1,rep,name=credit_class_fee,json=creditClassFee,proto3" json:"credit_class_fee,omitempty"` // allowed_class_creators is an allowlist defining the addresses with // the required permissions to create credit classes AllowedClassCreators []string `protobuf:"bytes,2,rep,name=allowed_class_creators,json=allowedClassCreators,proto3" json:"allowed_class_creators,omitempty"` // allowlist_enabled is a param that enables/disables the allowlist for credit // creation AllowlistEnabled bool `protobuf:"varint,3,opt,name=allowlist_enabled,json=allowlistEnabled,proto3" json:"allowlist_enabled,omitempty"` // credit_types is a list of definitions for credit types CreditTypes []*CreditType `protobuf:"bytes,4,rep,name=credit_types,json=creditTypes,proto3" json:"credit_types,omitempty"` // basket_creation_fee is the fee to create a new basket denom. BasketCreationFee []*v1beta1.Coin `protobuf:"bytes,5,rep,name=basket_creation_fee,json=basketCreationFee,proto3" json:"basket_creation_fee,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) GetAllowedClassCreators ¶
func (*Params) GetAllowlistEnabled ¶
func (*Params) GetBasketCreationFee ¶
func (*Params) GetCreditClassFee ¶
func (*Params) GetCreditTypes ¶
func (x *Params) GetCreditTypes() []*CreditType
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) ProtoReflect ¶
func (x *Params) ProtoReflect() protoreflect.Message
type QueryBalanceRequest ¶
type QueryBalanceRequest struct { // account is the address of the account whose balance is being queried. Account string `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"` // batch_denom is the unique ID of credit batch balance to query. BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // contains filtered or unexported fields }
QueryBalanceRequest is the Query/Balance request type.
func (*QueryBalanceRequest) Descriptor
deprecated
func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryBalanceRequest.ProtoReflect.Descriptor instead.
func (*QueryBalanceRequest) GetAccount ¶
func (x *QueryBalanceRequest) GetAccount() string
func (*QueryBalanceRequest) GetBatchDenom ¶
func (x *QueryBalanceRequest) GetBatchDenom() string
func (*QueryBalanceRequest) ProtoMessage ¶
func (*QueryBalanceRequest) ProtoMessage()
func (*QueryBalanceRequest) ProtoReflect ¶
func (x *QueryBalanceRequest) ProtoReflect() protoreflect.Message
func (*QueryBalanceRequest) Reset ¶
func (x *QueryBalanceRequest) Reset()
func (*QueryBalanceRequest) String ¶
func (x *QueryBalanceRequest) String() string
type QueryBalanceResponse ¶
type QueryBalanceResponse struct { // tradable_amount is the decimal number of tradable credits. TradableAmount string `protobuf:"bytes,1,opt,name=tradable_amount,json=tradableAmount,proto3" json:"tradable_amount,omitempty"` // retired_amount is the decimal number of retired credits. RetiredAmount string `protobuf:"bytes,2,opt,name=retired_amount,json=retiredAmount,proto3" json:"retired_amount,omitempty"` // contains filtered or unexported fields }
QueryBalanceResponse is the Query/Balance response type.
func (*QueryBalanceResponse) Descriptor
deprecated
func (*QueryBalanceResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryBalanceResponse.ProtoReflect.Descriptor instead.
func (*QueryBalanceResponse) GetRetiredAmount ¶
func (x *QueryBalanceResponse) GetRetiredAmount() string
func (*QueryBalanceResponse) GetTradableAmount ¶
func (x *QueryBalanceResponse) GetTradableAmount() string
func (*QueryBalanceResponse) ProtoMessage ¶
func (*QueryBalanceResponse) ProtoMessage()
func (*QueryBalanceResponse) ProtoReflect ¶
func (x *QueryBalanceResponse) ProtoReflect() protoreflect.Message
func (*QueryBalanceResponse) Reset ¶
func (x *QueryBalanceResponse) Reset()
func (*QueryBalanceResponse) String ¶
func (x *QueryBalanceResponse) String() string
type QueryBatchInfoRequest ¶
type QueryBatchInfoRequest struct { // batch_denom is the unique ID of credit batch to query. BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // contains filtered or unexported fields }
QueryBatchInfoRequest is the Query/BatchInfo request type.
func (*QueryBatchInfoRequest) Descriptor
deprecated
func (*QueryBatchInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryBatchInfoRequest.ProtoReflect.Descriptor instead.
func (*QueryBatchInfoRequest) GetBatchDenom ¶
func (x *QueryBatchInfoRequest) GetBatchDenom() string
func (*QueryBatchInfoRequest) ProtoMessage ¶
func (*QueryBatchInfoRequest) ProtoMessage()
func (*QueryBatchInfoRequest) ProtoReflect ¶
func (x *QueryBatchInfoRequest) ProtoReflect() protoreflect.Message
func (*QueryBatchInfoRequest) Reset ¶
func (x *QueryBatchInfoRequest) Reset()
func (*QueryBatchInfoRequest) String ¶
func (x *QueryBatchInfoRequest) String() string
type QueryBatchInfoResponse ¶
type QueryBatchInfoResponse struct { // info is the BatchInfo for the credit batch. Info *BatchInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
QueryBatchInfoResponse is the Query/BatchInfo response type.
func (*QueryBatchInfoResponse) Descriptor
deprecated
func (*QueryBatchInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryBatchInfoResponse.ProtoReflect.Descriptor instead.
func (*QueryBatchInfoResponse) GetInfo ¶
func (x *QueryBatchInfoResponse) GetInfo() *BatchInfo
func (*QueryBatchInfoResponse) ProtoMessage ¶
func (*QueryBatchInfoResponse) ProtoMessage()
func (*QueryBatchInfoResponse) ProtoReflect ¶
func (x *QueryBatchInfoResponse) ProtoReflect() protoreflect.Message
func (*QueryBatchInfoResponse) Reset ¶
func (x *QueryBatchInfoResponse) Reset()
func (*QueryBatchInfoResponse) String ¶
func (x *QueryBatchInfoResponse) String() string
type QueryBatchesRequest ¶
type QueryBatchesRequest struct { // class_id is the unique ID 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 }
QueryBatchesRequest is the Query/Batches request type.
func (*QueryBatchesRequest) Descriptor
deprecated
func (*QueryBatchesRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryBatchesRequest.ProtoReflect.Descriptor instead.
func (*QueryBatchesRequest) GetClassId ¶
func (x *QueryBatchesRequest) GetClassId() string
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 within the class. Batches []*BatchInfo `protobuf:"bytes,1,rep,name=batches,proto3" json:"batches,omitempty"` // pagination defines the pagination in the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryBatchesResponse is the Query/Batches response type.
func (*QueryBatchesResponse) Descriptor
deprecated
func (*QueryBatchesResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryBatchesResponse.ProtoReflect.Descriptor instead.
func (*QueryBatchesResponse) GetBatches ¶
func (x *QueryBatchesResponse) GetBatches() []*BatchInfo
func (*QueryBatchesResponse) GetPagination ¶
func (x *QueryBatchesResponse) GetPagination() *v1beta1.PageResponse
func (*QueryBatchesResponse) ProtoMessage ¶
func (*QueryBatchesResponse) ProtoMessage()
func (*QueryBatchesResponse) ProtoReflect ¶
func (x *QueryBatchesResponse) ProtoReflect() protoreflect.Message
func (*QueryBatchesResponse) Reset ¶
func (x *QueryBatchesResponse) Reset()
func (*QueryBatchesResponse) String ¶
func (x *QueryBatchesResponse) String() string
type QueryClassInfoRequest ¶
type QueryClassInfoRequest struct { // class_id is the unique ID of credit class to query. ClassId string `protobuf:"bytes,1,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"` // contains filtered or unexported fields }
QueryClassInfoRequest is the Query/ClassInfo request type.
func (*QueryClassInfoRequest) Descriptor
deprecated
func (*QueryClassInfoRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryClassInfoRequest.ProtoReflect.Descriptor instead.
func (*QueryClassInfoRequest) GetClassId ¶
func (x *QueryClassInfoRequest) GetClassId() string
func (*QueryClassInfoRequest) ProtoMessage ¶
func (*QueryClassInfoRequest) ProtoMessage()
func (*QueryClassInfoRequest) ProtoReflect ¶
func (x *QueryClassInfoRequest) ProtoReflect() protoreflect.Message
func (*QueryClassInfoRequest) Reset ¶
func (x *QueryClassInfoRequest) Reset()
func (*QueryClassInfoRequest) String ¶
func (x *QueryClassInfoRequest) String() string
type QueryClassInfoResponse ¶
type QueryClassInfoResponse struct { // info is the ClassInfo for the credit class. Info *ClassInfo `protobuf:"bytes,1,opt,name=info,proto3" json:"info,omitempty"` // contains filtered or unexported fields }
QueryClassInfoResponse is the Query/ClassInfo request type.
func (*QueryClassInfoResponse) Descriptor
deprecated
func (*QueryClassInfoResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryClassInfoResponse.ProtoReflect.Descriptor instead.
func (*QueryClassInfoResponse) GetInfo ¶
func (x *QueryClassInfoResponse) GetInfo() *ClassInfo
func (*QueryClassInfoResponse) ProtoMessage ¶
func (*QueryClassInfoResponse) ProtoMessage()
func (*QueryClassInfoResponse) ProtoReflect ¶
func (x *QueryClassInfoResponse) ProtoReflect() protoreflect.Message
func (*QueryClassInfoResponse) Reset ¶
func (x *QueryClassInfoResponse) Reset()
func (*QueryClassInfoResponse) String ¶
func (x *QueryClassInfoResponse) String() string
type QueryClassesRequest ¶
type QueryClassesRequest struct { // pagination defines an optional pagination for the request. Pagination *v1beta1.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryClassesRequest is the Query/Classes request type.
func (*QueryClassesRequest) Descriptor
deprecated
func (*QueryClassesRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryClassesRequest.ProtoReflect.Descriptor instead.
func (*QueryClassesRequest) GetPagination ¶
func (x *QueryClassesRequest) GetPagination() *v1beta1.PageRequest
func (*QueryClassesRequest) ProtoMessage ¶
func (*QueryClassesRequest) ProtoMessage()
func (*QueryClassesRequest) ProtoReflect ¶
func (x *QueryClassesRequest) ProtoReflect() protoreflect.Message
func (*QueryClassesRequest) Reset ¶
func (x *QueryClassesRequest) Reset()
func (*QueryClassesRequest) String ¶
func (x *QueryClassesRequest) String() string
type QueryClassesResponse ¶
type QueryClassesResponse struct { // classes are the fetched credit classes. Classes []*ClassInfo `protobuf:"bytes,1,rep,name=classes,proto3" json:"classes,omitempty"` // pagination defines the pagination in the response. Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` // contains filtered or unexported fields }
QueryClassesResponse is the Query/Classes response type.
func (*QueryClassesResponse) Descriptor
deprecated
func (*QueryClassesResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryClassesResponse.ProtoReflect.Descriptor instead.
func (*QueryClassesResponse) GetClasses ¶
func (x *QueryClassesResponse) GetClasses() []*ClassInfo
func (*QueryClassesResponse) GetPagination ¶
func (x *QueryClassesResponse) GetPagination() *v1beta1.PageResponse
func (*QueryClassesResponse) ProtoMessage ¶
func (*QueryClassesResponse) ProtoMessage()
func (*QueryClassesResponse) ProtoReflect ¶
func (x *QueryClassesResponse) ProtoReflect() protoreflect.Message
func (*QueryClassesResponse) Reset ¶
func (x *QueryClassesResponse) Reset()
func (*QueryClassesResponse) String ¶
func (x *QueryClassesResponse) String() string
type QueryClient ¶
type QueryClient interface { // Classes queries for all credit classes with pagination. Classes(ctx context.Context, in *QueryClassesRequest, opts ...grpc.CallOption) (*QueryClassesResponse, error) // ClassInfo queries for information on a credit class. ClassInfo(ctx context.Context, in *QueryClassInfoRequest, opts ...grpc.CallOption) (*QueryClassInfoResponse, error) // Batches queries for all batches in the given credit class with pagination. Batches(ctx context.Context, in *QueryBatchesRequest, opts ...grpc.CallOption) (*QueryBatchesResponse, error) // BatchInfo queries for information on a credit batch. BatchInfo(ctx context.Context, in *QueryBatchInfoRequest, opts ...grpc.CallOption) (*QueryBatchInfoResponse, error) // Balance queries the balance (both tradable and retired) of a given credit // batch for a given account. Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) // Supply queries the tradable and retired supply of a credit batch. Supply(ctx context.Context, in *QuerySupplyRequest, opts ...grpc.CallOption) (*QuerySupplyResponse, error) // CreditTypes returns the list of allowed types that credit classes can have. // See Types/CreditType for more details. CreditTypes(ctx context.Context, in *QueryCreditTypesRequest, opts ...grpc.CallOption) (*QueryCreditTypesResponse, error) // Params queries the ecocredit module parameters. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) }
QueryClient is the client API for Query service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc.ClientConnInterface) QueryClient
type QueryCreditTypesRequest ¶
type QueryCreditTypesRequest struct {
// contains filtered or unexported fields
}
QueryCreditTypesRequest is the Query/Credit_Types request type
func (*QueryCreditTypesRequest) Descriptor
deprecated
func (*QueryCreditTypesRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryCreditTypesRequest.ProtoReflect.Descriptor instead.
func (*QueryCreditTypesRequest) ProtoMessage ¶
func (*QueryCreditTypesRequest) ProtoMessage()
func (*QueryCreditTypesRequest) ProtoReflect ¶
func (x *QueryCreditTypesRequest) ProtoReflect() protoreflect.Message
func (*QueryCreditTypesRequest) Reset ¶
func (x *QueryCreditTypesRequest) Reset()
func (*QueryCreditTypesRequest) String ¶
func (x *QueryCreditTypesRequest) String() string
type QueryCreditTypesResponse ¶
type QueryCreditTypesResponse struct { // list of credit types CreditTypes []*CreditType `protobuf:"bytes,1,rep,name=credit_types,json=creditTypes,proto3" json:"credit_types,omitempty"` // contains filtered or unexported fields }
QueryCreditTypesRequest is the Query/Credit_Types response type
func (*QueryCreditTypesResponse) Descriptor
deprecated
func (*QueryCreditTypesResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryCreditTypesResponse.ProtoReflect.Descriptor instead.
func (*QueryCreditTypesResponse) GetCreditTypes ¶
func (x *QueryCreditTypesResponse) GetCreditTypes() []*CreditType
func (*QueryCreditTypesResponse) ProtoMessage ¶
func (*QueryCreditTypesResponse) ProtoMessage()
func (*QueryCreditTypesResponse) ProtoReflect ¶
func (x *QueryCreditTypesResponse) ProtoReflect() protoreflect.Message
func (*QueryCreditTypesResponse) Reset ¶
func (x *QueryCreditTypesResponse) Reset()
func (*QueryCreditTypesResponse) String ¶
func (x *QueryCreditTypesResponse) String() string
type QueryParamsRequest ¶
type QueryParamsRequest struct {
// contains filtered or unexported fields
}
QueryParamsRequest is the Query/Params request type.
func (*QueryParamsRequest) Descriptor
deprecated
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) ProtoReflect ¶
func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message
func (*QueryParamsRequest) Reset ¶
func (x *QueryParamsRequest) Reset()
func (*QueryParamsRequest) String ¶
func (x *QueryParamsRequest) String() string
type QueryParamsResponse ¶
type QueryParamsResponse struct { // params defines the parameters of the ecocredit module. Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"` // contains filtered or unexported fields }
QueryParamsResponse is the Query/Params response type.
func (*QueryParamsResponse) Descriptor
deprecated
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.
func (*QueryParamsResponse) GetParams ¶
func (x *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) ProtoReflect ¶
func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message
func (*QueryParamsResponse) Reset ¶
func (x *QueryParamsResponse) Reset()
func (*QueryParamsResponse) String ¶
func (x *QueryParamsResponse) String() string
type QueryServer ¶
type QueryServer interface { // Classes queries for all credit classes with pagination. Classes(context.Context, *QueryClassesRequest) (*QueryClassesResponse, error) // ClassInfo queries for information on a credit class. ClassInfo(context.Context, *QueryClassInfoRequest) (*QueryClassInfoResponse, error) // Batches queries for all batches in the given credit class with pagination. Batches(context.Context, *QueryBatchesRequest) (*QueryBatchesResponse, error) // BatchInfo queries for information on a credit batch. BatchInfo(context.Context, *QueryBatchInfoRequest) (*QueryBatchInfoResponse, error) // Balance queries the balance (both tradable and retired) of a given credit // batch for a given account. Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error) // Supply queries the tradable and retired supply of a credit batch. Supply(context.Context, *QuerySupplyRequest) (*QuerySupplyResponse, error) // CreditTypes returns the list of allowed types that credit classes can have. // See Types/CreditType for more details. CreditTypes(context.Context, *QueryCreditTypesRequest) (*QueryCreditTypesResponse, error) // Params queries the ecocredit module parameters. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) // contains filtered or unexported methods }
QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility
type QuerySupplyRequest ¶
type QuerySupplyRequest struct { // batch_denom is the unique ID of credit batch to query. BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // contains filtered or unexported fields }
QuerySupplyRequest is the Query/Supply request type.
func (*QuerySupplyRequest) Descriptor
deprecated
func (*QuerySupplyRequest) Descriptor() ([]byte, []int)
Deprecated: Use QuerySupplyRequest.ProtoReflect.Descriptor instead.
func (*QuerySupplyRequest) GetBatchDenom ¶
func (x *QuerySupplyRequest) GetBatchDenom() string
func (*QuerySupplyRequest) ProtoMessage ¶
func (*QuerySupplyRequest) ProtoMessage()
func (*QuerySupplyRequest) ProtoReflect ¶
func (x *QuerySupplyRequest) ProtoReflect() protoreflect.Message
func (*QuerySupplyRequest) Reset ¶
func (x *QuerySupplyRequest) Reset()
func (*QuerySupplyRequest) String ¶
func (x *QuerySupplyRequest) String() string
type QuerySupplyResponse ¶
type QuerySupplyResponse struct { // tradable_supply is the decimal number of tradable credits in the batch // supply. TradableSupply string `protobuf:"bytes,1,opt,name=tradable_supply,json=tradableSupply,proto3" json:"tradable_supply,omitempty"` // retired_supply is the decimal number of retired credits in the batch // supply. RetiredSupply string `protobuf:"bytes,2,opt,name=retired_supply,json=retiredSupply,proto3" json:"retired_supply,omitempty"` // contains filtered or unexported fields }
QuerySupplyResponse is the Query/Supply response type.
func (*QuerySupplyResponse) Descriptor
deprecated
func (*QuerySupplyResponse) Descriptor() ([]byte, []int)
Deprecated: Use QuerySupplyResponse.ProtoReflect.Descriptor instead.
func (*QuerySupplyResponse) GetRetiredSupply ¶
func (x *QuerySupplyResponse) GetRetiredSupply() string
func (*QuerySupplyResponse) GetTradableSupply ¶
func (x *QuerySupplyResponse) GetTradableSupply() string
func (*QuerySupplyResponse) ProtoMessage ¶
func (*QuerySupplyResponse) ProtoMessage()
func (*QuerySupplyResponse) ProtoReflect ¶
func (x *QuerySupplyResponse) ProtoReflect() protoreflect.Message
func (*QuerySupplyResponse) Reset ¶
func (x *QuerySupplyResponse) Reset()
func (*QuerySupplyResponse) String ¶
func (x *QuerySupplyResponse) String() string
type Supply ¶
type Supply struct { // batch_denom is the unique ID of the credit batch. BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"` // tradable_supply is the tradable supply of the credit batch. TradableSupply string `protobuf:"bytes,2,opt,name=tradable_supply,json=tradableSupply,proto3" json:"tradable_supply,omitempty"` // retired_supply is the retired supply of the credit batch. RetiredSupply string `protobuf:"bytes,3,opt,name=retired_supply,json=retiredSupply,proto3" json:"retired_supply,omitempty"` // contains filtered or unexported fields }
Supply represents a tradable or retired supply of a credit batch.
func (*Supply) Descriptor
deprecated
func (*Supply) GetBatchDenom ¶
func (*Supply) GetRetiredSupply ¶
func (*Supply) GetTradableSupply ¶
func (*Supply) ProtoMessage ¶
func (*Supply) ProtoMessage()
func (*Supply) ProtoReflect ¶
func (x *Supply) ProtoReflect() protoreflect.Message
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer must be embedded to have forward compatible implementations.
func (UnimplementedMsgServer) Cancel ¶
func (UnimplementedMsgServer) Cancel(context.Context, *MsgCancel) (*MsgCancelResponse, error)
func (UnimplementedMsgServer) CreateBatch ¶
func (UnimplementedMsgServer) CreateBatch(context.Context, *MsgCreateBatch) (*MsgCreateBatchResponse, error)
func (UnimplementedMsgServer) CreateClass ¶
func (UnimplementedMsgServer) CreateClass(context.Context, *MsgCreateClass) (*MsgCreateClassResponse, error)
func (UnimplementedMsgServer) Retire ¶
func (UnimplementedMsgServer) Retire(context.Context, *MsgRetire) (*MsgRetireResponse, error)
func (UnimplementedMsgServer) Send ¶
func (UnimplementedMsgServer) Send(context.Context, *MsgSend) (*MsgSendResponse, error)
func (UnimplementedMsgServer) UpdateClassAdmin ¶
func (UnimplementedMsgServer) UpdateClassAdmin(context.Context, *MsgUpdateClassAdmin) (*MsgUpdateClassAdminResponse, error)
func (UnimplementedMsgServer) UpdateClassIssuers ¶
func (UnimplementedMsgServer) UpdateClassIssuers(context.Context, *MsgUpdateClassIssuers) (*MsgUpdateClassIssuersResponse, error)
func (UnimplementedMsgServer) UpdateClassMetadata ¶
func (UnimplementedMsgServer) UpdateClassMetadata(context.Context, *MsgUpdateClassMetadata) (*MsgUpdateClassMetadataResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer must be embedded to have forward compatible implementations.
func (UnimplementedQueryServer) Balance ¶
func (UnimplementedQueryServer) Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error)
func (UnimplementedQueryServer) BatchInfo ¶
func (UnimplementedQueryServer) BatchInfo(context.Context, *QueryBatchInfoRequest) (*QueryBatchInfoResponse, error)
func (UnimplementedQueryServer) Batches ¶
func (UnimplementedQueryServer) Batches(context.Context, *QueryBatchesRequest) (*QueryBatchesResponse, error)
func (UnimplementedQueryServer) ClassInfo ¶
func (UnimplementedQueryServer) ClassInfo(context.Context, *QueryClassInfoRequest) (*QueryClassInfoResponse, error)
func (UnimplementedQueryServer) Classes ¶
func (UnimplementedQueryServer) Classes(context.Context, *QueryClassesRequest) (*QueryClassesResponse, error)
func (UnimplementedQueryServer) CreditTypes ¶
func (UnimplementedQueryServer) CreditTypes(context.Context, *QueryCreditTypesRequest) (*QueryCreditTypesResponse, error)
func (UnimplementedQueryServer) Params ¶
func (UnimplementedQueryServer) Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
func (UnimplementedQueryServer) Supply ¶
func (UnimplementedQueryServer) Supply(context.Context, *QuerySupplyRequest) (*QuerySupplyResponse, error)
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.