Documentation ¶
Overview ¶
Package ecocredit is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func AddAndSetDecimal(store sdk.KVStore, key []byte, x math.Dec) error
- func ExponentToPrefix(exponent uint32) (string, error)
- func FormatClassID(creditType CreditType, classSeqNo uint64) string
- func FormatDenom(classId string, batchSeqNo uint64, startDate *time.Time, endDate *time.Time) (string, error)
- func GetDecimal(store sdk.KVStore, key []byte) (math.Dec, error)
- func IterateBalances(store sdk.KVStore, storeKey byte, cb func(address, denom, balance string) bool)
- func IterateSupplies(store sdk.KVStore, storeKey byte, cb func(denom, supply string) (bool, error)) error
- func NormalizeCreditTypeName(name string) string
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func RegisterTypes(registry codectypes.InterfaceRegistry)
- func RetiredBalanceKey(acc sdk.AccAddress, batchDenom BatchDenomT) []byte
- func RetiredSupplyKey(batchDenom BatchDenomT) []byte
- func SetDecimal(store sdk.KVStore, key []byte, value math.Dec)
- func SubAndSetDecimal(store sdk.KVStore, key []byte, x math.Dec) error
- func TradableBalanceKey(acc sdk.AccAddress, denom BatchDenomT) []byte
- func TradableSupplyKey(batchDenom BatchDenomT) []byte
- func ValidateClassID(classId string) error
- func ValidateCreditTypeAbbreviation(abbr string) error
- func ValidateDenom(denom string) error
- func ValidateLocation(location string) error
- type AccountKeeper
- type Balance
- func (*Balance) Descriptor() ([]byte, []int)
- func (m *Balance) GetAddress() string
- func (m *Balance) GetBatchDenom() string
- func (m *Balance) GetRetiredBalance() string
- func (m *Balance) GetTradableBalance() string
- func (m *Balance) Marshal() (dAtA []byte, err error)
- func (m *Balance) MarshalTo(dAtA []byte) (int, error)
- func (m *Balance) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Balance) ProtoMessage()
- func (m *Balance) Reset()
- func (m *Balance) Size() (n int)
- func (m *Balance) String() string
- func (m *Balance) Unmarshal(dAtA []byte) error
- func (m *Balance) XXX_DiscardUnknown()
- func (m *Balance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Balance) XXX_Merge(src proto.Message)
- func (m *Balance) XXX_Size() int
- func (m *Balance) XXX_Unmarshal(b []byte) error
- type BankKeeper
- type BatchDenomT
- type BatchInfo
- func (*BatchInfo) Descriptor() ([]byte, []int)
- func (m *BatchInfo) GetAmountCancelled() string
- func (m *BatchInfo) GetBatchDenom() string
- func (m *BatchInfo) GetClassId() string
- func (m *BatchInfo) GetEndDate() *time.Time
- func (m *BatchInfo) GetIssuer() string
- func (m *BatchInfo) GetMetadata() []byte
- func (m *BatchInfo) GetProjectLocation() string
- func (m *BatchInfo) GetStartDate() *time.Time
- func (m *BatchInfo) GetTotalAmount() string
- func (m *BatchInfo) Marshal() (dAtA []byte, err error)
- func (m *BatchInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *BatchInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m *BatchInfo) PrimaryKeyFields() []interface{}
- func (*BatchInfo) ProtoMessage()
- func (m *BatchInfo) Reset()
- func (m *BatchInfo) Size() (n int)
- func (m *BatchInfo) String() string
- func (m *BatchInfo) Unmarshal(dAtA []byte) error
- func (m *BatchInfo) XXX_DiscardUnknown()
- func (m *BatchInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BatchInfo) XXX_Merge(src proto.Message)
- func (m *BatchInfo) XXX_Size() int
- func (m *BatchInfo) XXX_Unmarshal(b []byte) error
- type ClassInfo
- func (m *ClassInfo) AssertClassIssuer(issuer string) error
- func (*ClassInfo) Descriptor() ([]byte, []int)
- func (m *ClassInfo) GetAdmin() string
- func (m *ClassInfo) GetClassId() string
- func (m *ClassInfo) GetCreditType() *CreditType
- func (m *ClassInfo) GetIssuers() []string
- func (m *ClassInfo) GetMetadata() []byte
- func (m *ClassInfo) GetNumBatches() uint64
- func (m *ClassInfo) Marshal() (dAtA []byte, err error)
- func (m *ClassInfo) MarshalTo(dAtA []byte) (int, error)
- func (m *ClassInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m *ClassInfo) PrimaryKeyFields() []interface{}
- func (*ClassInfo) ProtoMessage()
- func (m *ClassInfo) Reset()
- func (m *ClassInfo) Size() (n int)
- func (m *ClassInfo) String() string
- func (m *ClassInfo) Unmarshal(dAtA []byte) error
- func (m *ClassInfo) XXX_DiscardUnknown()
- func (m *ClassInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ClassInfo) XXX_Merge(src proto.Message)
- func (m *ClassInfo) XXX_Size() int
- func (m *ClassInfo) XXX_Unmarshal(b []byte) error
- type CreditType
- func (*CreditType) Descriptor() ([]byte, []int)
- func (m *CreditType) GetAbbreviation() string
- func (m *CreditType) GetName() string
- func (m *CreditType) GetPrecision() uint32
- func (m *CreditType) GetUnit() string
- func (m *CreditType) Marshal() (dAtA []byte, err error)
- func (m *CreditType) MarshalTo(dAtA []byte) (int, error)
- func (m *CreditType) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CreditType) ProtoMessage()
- func (m *CreditType) Reset()
- func (m *CreditType) Size() (n int)
- func (m *CreditType) String() string
- func (m *CreditType) Unmarshal(dAtA []byte) error
- func (m *CreditType) XXX_DiscardUnknown()
- func (m *CreditType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreditType) XXX_Merge(src proto.Message)
- func (m *CreditType) XXX_Size() int
- func (m *CreditType) XXX_Unmarshal(b []byte) error
- type CreditTypeSeq
- func (*CreditTypeSeq) Descriptor() ([]byte, []int)
- func (m *CreditTypeSeq) GetAbbreviation() string
- func (m *CreditTypeSeq) GetSeqNumber() uint64
- func (m *CreditTypeSeq) Marshal() (dAtA []byte, err error)
- func (m *CreditTypeSeq) MarshalTo(dAtA []byte) (int, error)
- func (m *CreditTypeSeq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (m *CreditTypeSeq) PrimaryKeyFields() []interface{}
- func (*CreditTypeSeq) ProtoMessage()
- func (m *CreditTypeSeq) Reset()
- func (m *CreditTypeSeq) Size() (n int)
- func (m *CreditTypeSeq) String() string
- func (m *CreditTypeSeq) Unmarshal(dAtA []byte) error
- func (m *CreditTypeSeq) XXX_DiscardUnknown()
- func (m *CreditTypeSeq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CreditTypeSeq) XXX_Merge(src proto.Message)
- func (m *CreditTypeSeq) XXX_Size() int
- func (m *CreditTypeSeq) XXX_Unmarshal(b []byte) error
- type DistributionKeeper
- type EventCancel
- func (*EventCancel) Descriptor() ([]byte, []int)
- func (m *EventCancel) GetAmount() string
- func (m *EventCancel) GetBatchDenom() string
- func (m *EventCancel) GetCanceller() string
- func (m *EventCancel) Marshal() (dAtA []byte, err error)
- func (m *EventCancel) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCancel) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCancel) ProtoMessage()
- func (m *EventCancel) Reset()
- func (m *EventCancel) Size() (n int)
- func (m *EventCancel) String() string
- func (m *EventCancel) Unmarshal(dAtA []byte) error
- func (m *EventCancel) XXX_DiscardUnknown()
- func (m *EventCancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCancel) XXX_Merge(src proto.Message)
- func (m *EventCancel) XXX_Size() int
- func (m *EventCancel) XXX_Unmarshal(b []byte) error
- type EventCreateBatch
- func (*EventCreateBatch) Descriptor() ([]byte, []int)
- func (m *EventCreateBatch) GetBatchDenom() string
- func (m *EventCreateBatch) GetClassId() string
- func (m *EventCreateBatch) GetEndDate() string
- func (m *EventCreateBatch) GetIssuer() string
- func (m *EventCreateBatch) GetProjectLocation() string
- func (m *EventCreateBatch) GetStartDate() string
- func (m *EventCreateBatch) GetTotalAmount() string
- func (m *EventCreateBatch) Marshal() (dAtA []byte, err error)
- func (m *EventCreateBatch) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCreateBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCreateBatch) ProtoMessage()
- func (m *EventCreateBatch) Reset()
- func (m *EventCreateBatch) Size() (n int)
- func (m *EventCreateBatch) String() string
- func (m *EventCreateBatch) Unmarshal(dAtA []byte) error
- func (m *EventCreateBatch) XXX_DiscardUnknown()
- func (m *EventCreateBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCreateBatch) XXX_Merge(src proto.Message)
- func (m *EventCreateBatch) XXX_Size() int
- func (m *EventCreateBatch) XXX_Unmarshal(b []byte) error
- type EventCreateClass
- func (*EventCreateClass) Descriptor() ([]byte, []int)
- func (m *EventCreateClass) GetAdmin() string
- func (m *EventCreateClass) GetClassId() string
- func (m *EventCreateClass) Marshal() (dAtA []byte, err error)
- func (m *EventCreateClass) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCreateClass) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCreateClass) ProtoMessage()
- func (m *EventCreateClass) Reset()
- func (m *EventCreateClass) Size() (n int)
- func (m *EventCreateClass) String() string
- func (m *EventCreateClass) Unmarshal(dAtA []byte) error
- func (m *EventCreateClass) XXX_DiscardUnknown()
- func (m *EventCreateClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCreateClass) XXX_Merge(src proto.Message)
- func (m *EventCreateClass) XXX_Size() int
- func (m *EventCreateClass) XXX_Unmarshal(b []byte) error
- type EventReceive
- func (*EventReceive) Descriptor() ([]byte, []int)
- func (m *EventReceive) GetBasketDenom() string
- func (m *EventReceive) GetBatchDenom() string
- func (m *EventReceive) GetRecipient() string
- func (m *EventReceive) GetRetiredAmount() string
- func (m *EventReceive) GetSender() string
- func (m *EventReceive) GetTradableAmount() string
- func (m *EventReceive) Marshal() (dAtA []byte, err error)
- func (m *EventReceive) MarshalTo(dAtA []byte) (int, error)
- func (m *EventReceive) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventReceive) ProtoMessage()
- func (m *EventReceive) Reset()
- func (m *EventReceive) Size() (n int)
- func (m *EventReceive) String() string
- func (m *EventReceive) Unmarshal(dAtA []byte) error
- func (m *EventReceive) XXX_DiscardUnknown()
- func (m *EventReceive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventReceive) XXX_Merge(src proto.Message)
- func (m *EventReceive) XXX_Size() int
- func (m *EventReceive) XXX_Unmarshal(b []byte) error
- type EventRetire
- func (*EventRetire) Descriptor() ([]byte, []int)
- func (m *EventRetire) GetAmount() string
- func (m *EventRetire) GetBatchDenom() string
- func (m *EventRetire) GetLocation() string
- func (m *EventRetire) GetRetirer() string
- func (m *EventRetire) Marshal() (dAtA []byte, err error)
- func (m *EventRetire) MarshalTo(dAtA []byte) (int, error)
- func (m *EventRetire) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventRetire) ProtoMessage()
- func (m *EventRetire) Reset()
- func (m *EventRetire) Size() (n int)
- func (m *EventRetire) String() string
- func (m *EventRetire) Unmarshal(dAtA []byte) error
- func (m *EventRetire) XXX_DiscardUnknown()
- func (m *EventRetire) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventRetire) XXX_Merge(src proto.Message)
- func (m *EventRetire) XXX_Size() int
- func (m *EventRetire) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetBalances() []*Balance
- func (m *GenesisState) GetBatchInfo() []*BatchInfo
- func (m *GenesisState) GetClassInfo() []*ClassInfo
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetSequences() []*CreditTypeSeq
- func (m *GenesisState) GetSupplies() []*Supply
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (s *GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgCancel
- func (*MsgCancel) Descriptor() ([]byte, []int)
- func (m *MsgCancel) GetCredits() []*MsgCancel_CancelCredits
- func (m *MsgCancel) GetHolder() string
- func (m MsgCancel) GetSignBytes() []byte
- func (m *MsgCancel) GetSigners() []sdk.AccAddress
- func (m *MsgCancel) Marshal() (dAtA []byte, err error)
- func (m *MsgCancel) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancel) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancel) ProtoMessage()
- func (m *MsgCancel) Reset()
- func (m MsgCancel) Route() string
- func (m *MsgCancel) Size() (n int)
- func (m *MsgCancel) String() string
- func (m MsgCancel) Type() string
- func (m *MsgCancel) Unmarshal(dAtA []byte) error
- func (m *MsgCancel) ValidateBasic() error
- func (m *MsgCancel) XXX_DiscardUnknown()
- func (m *MsgCancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancel) XXX_Merge(src proto.Message)
- func (m *MsgCancel) XXX_Size() int
- func (m *MsgCancel) XXX_Unmarshal(b []byte) error
- type MsgCancelResponse
- func (*MsgCancelResponse) Descriptor() ([]byte, []int)
- func (m *MsgCancelResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCancelResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancelResponse) ProtoMessage()
- func (m *MsgCancelResponse) Reset()
- func (m *MsgCancelResponse) Size() (n int)
- func (m *MsgCancelResponse) String() string
- func (m *MsgCancelResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCancelResponse) XXX_DiscardUnknown()
- func (m *MsgCancelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancelResponse) XXX_Merge(src proto.Message)
- func (m *MsgCancelResponse) XXX_Size() int
- func (m *MsgCancelResponse) XXX_Unmarshal(b []byte) error
- type MsgCancel_CancelCredits
- func (*MsgCancel_CancelCredits) Descriptor() ([]byte, []int)
- func (m *MsgCancel_CancelCredits) GetAmount() string
- func (m *MsgCancel_CancelCredits) GetBatchDenom() string
- func (m *MsgCancel_CancelCredits) Marshal() (dAtA []byte, err error)
- func (m *MsgCancel_CancelCredits) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCancel_CancelCredits) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCancel_CancelCredits) ProtoMessage()
- func (m *MsgCancel_CancelCredits) Reset()
- func (m *MsgCancel_CancelCredits) Size() (n int)
- func (m *MsgCancel_CancelCredits) String() string
- func (m *MsgCancel_CancelCredits) Unmarshal(dAtA []byte) error
- func (m *MsgCancel_CancelCredits) XXX_DiscardUnknown()
- func (m *MsgCancel_CancelCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCancel_CancelCredits) XXX_Merge(src proto.Message)
- func (m *MsgCancel_CancelCredits) XXX_Size() int
- func (m *MsgCancel_CancelCredits) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateBatch
- func (*MsgCreateBatch) Descriptor() ([]byte, []int)
- func (m *MsgCreateBatch) GetClassId() string
- func (m *MsgCreateBatch) GetEndDate() *time.Time
- func (m *MsgCreateBatch) GetIssuance() []*MsgCreateBatch_BatchIssuance
- func (m *MsgCreateBatch) GetIssuer() string
- func (m *MsgCreateBatch) GetMetadata() []byte
- func (m *MsgCreateBatch) GetProjectLocation() string
- func (m MsgCreateBatch) GetSignBytes() []byte
- func (m *MsgCreateBatch) GetSigners() []sdk.AccAddress
- func (m *MsgCreateBatch) GetStartDate() *time.Time
- func (m *MsgCreateBatch) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateBatch) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateBatch) ProtoMessage()
- func (m *MsgCreateBatch) Reset()
- func (m MsgCreateBatch) Route() string
- func (m *MsgCreateBatch) Size() (n int)
- func (m *MsgCreateBatch) String() string
- func (m MsgCreateBatch) Type() string
- func (m *MsgCreateBatch) Unmarshal(dAtA []byte) error
- func (m *MsgCreateBatch) ValidateBasic() error
- func (m *MsgCreateBatch) XXX_DiscardUnknown()
- func (m *MsgCreateBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateBatch) XXX_Merge(src proto.Message)
- func (m *MsgCreateBatch) XXX_Size() int
- func (m *MsgCreateBatch) XXX_Unmarshal(b []byte) error
- type MsgCreateBatchResponse
- func (*MsgCreateBatchResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateBatchResponse) GetBatchDenom() string
- func (m *MsgCreateBatchResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateBatchResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateBatchResponse) ProtoMessage()
- func (m *MsgCreateBatchResponse) Reset()
- func (m *MsgCreateBatchResponse) Size() (n int)
- func (m *MsgCreateBatchResponse) String() string
- func (m *MsgCreateBatchResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateBatchResponse) XXX_DiscardUnknown()
- func (m *MsgCreateBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateBatchResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateBatchResponse) XXX_Size() int
- func (m *MsgCreateBatchResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateBatch_BatchIssuance
- func (*MsgCreateBatch_BatchIssuance) Descriptor() ([]byte, []int)
- func (m *MsgCreateBatch_BatchIssuance) GetRecipient() string
- func (m *MsgCreateBatch_BatchIssuance) GetRetiredAmount() string
- func (m *MsgCreateBatch_BatchIssuance) GetRetirementLocation() string
- func (m *MsgCreateBatch_BatchIssuance) GetTradableAmount() string
- func (m *MsgCreateBatch_BatchIssuance) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateBatch_BatchIssuance) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateBatch_BatchIssuance) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateBatch_BatchIssuance) ProtoMessage()
- func (m *MsgCreateBatch_BatchIssuance) Reset()
- func (m *MsgCreateBatch_BatchIssuance) Size() (n int)
- func (m *MsgCreateBatch_BatchIssuance) String() string
- func (m *MsgCreateBatch_BatchIssuance) Unmarshal(dAtA []byte) error
- func (m *MsgCreateBatch_BatchIssuance) XXX_DiscardUnknown()
- func (m *MsgCreateBatch_BatchIssuance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateBatch_BatchIssuance) XXX_Merge(src proto.Message)
- func (m *MsgCreateBatch_BatchIssuance) XXX_Size() int
- func (m *MsgCreateBatch_BatchIssuance) XXX_Unmarshal(b []byte) error
- type MsgCreateClass
- func (*MsgCreateClass) Descriptor() ([]byte, []int)
- func (m *MsgCreateClass) GetAdmin() string
- func (m *MsgCreateClass) GetCreditTypeName() string
- func (m *MsgCreateClass) GetIssuers() []string
- func (m *MsgCreateClass) GetMetadata() []byte
- func (m MsgCreateClass) GetSignBytes() []byte
- func (m *MsgCreateClass) GetSigners() []sdk.AccAddress
- func (m *MsgCreateClass) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateClass) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateClass) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateClass) ProtoMessage()
- func (m *MsgCreateClass) Reset()
- func (m MsgCreateClass) Route() string
- func (m *MsgCreateClass) Size() (n int)
- func (m *MsgCreateClass) String() string
- func (m MsgCreateClass) Type() string
- func (m *MsgCreateClass) Unmarshal(dAtA []byte) error
- func (m *MsgCreateClass) ValidateBasic() error
- func (m *MsgCreateClass) XXX_DiscardUnknown()
- func (m *MsgCreateClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateClass) XXX_Merge(src proto.Message)
- func (m *MsgCreateClass) XXX_Size() int
- func (m *MsgCreateClass) XXX_Unmarshal(b []byte) error
- type MsgCreateClassResponse
- func (*MsgCreateClassResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateClassResponse) GetClassId() string
- func (m *MsgCreateClassResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateClassResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateClassResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateClassResponse) ProtoMessage()
- func (m *MsgCreateClassResponse) Reset()
- func (m *MsgCreateClassResponse) Size() (n int)
- func (m *MsgCreateClassResponse) String() string
- func (m *MsgCreateClassResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateClassResponse) XXX_DiscardUnknown()
- func (m *MsgCreateClassResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateClassResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateClassResponse) XXX_Size() int
- func (m *MsgCreateClassResponse) XXX_Unmarshal(b []byte) error
- type MsgRetire
- func (*MsgRetire) Descriptor() ([]byte, []int)
- func (m *MsgRetire) GetCredits() []*MsgRetire_RetireCredits
- func (m *MsgRetire) GetHolder() string
- func (m *MsgRetire) GetLocation() string
- func (m MsgRetire) GetSignBytes() []byte
- func (m *MsgRetire) GetSigners() []sdk.AccAddress
- func (m *MsgRetire) Marshal() (dAtA []byte, err error)
- func (m *MsgRetire) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRetire) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRetire) ProtoMessage()
- func (m *MsgRetire) Reset()
- func (m MsgRetire) Route() string
- func (m *MsgRetire) Size() (n int)
- func (m *MsgRetire) String() string
- func (m MsgRetire) Type() string
- func (m *MsgRetire) Unmarshal(dAtA []byte) error
- func (m *MsgRetire) ValidateBasic() error
- func (m *MsgRetire) XXX_DiscardUnknown()
- func (m *MsgRetire) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRetire) XXX_Merge(src proto.Message)
- func (m *MsgRetire) XXX_Size() int
- func (m *MsgRetire) XXX_Unmarshal(b []byte) error
- type MsgRetireResponse
- func (*MsgRetireResponse) Descriptor() ([]byte, []int)
- func (m *MsgRetireResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRetireResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRetireResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRetireResponse) ProtoMessage()
- func (m *MsgRetireResponse) Reset()
- func (m *MsgRetireResponse) Size() (n int)
- func (m *MsgRetireResponse) String() string
- func (m *MsgRetireResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRetireResponse) XXX_DiscardUnknown()
- func (m *MsgRetireResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRetireResponse) XXX_Merge(src proto.Message)
- func (m *MsgRetireResponse) XXX_Size() int
- func (m *MsgRetireResponse) XXX_Unmarshal(b []byte) error
- type MsgRetire_RetireCredits
- func (*MsgRetire_RetireCredits) Descriptor() ([]byte, []int)
- func (m *MsgRetire_RetireCredits) GetAmount() string
- func (m *MsgRetire_RetireCredits) GetBatchDenom() string
- func (m *MsgRetire_RetireCredits) Marshal() (dAtA []byte, err error)
- func (m *MsgRetire_RetireCredits) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRetire_RetireCredits) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRetire_RetireCredits) ProtoMessage()
- func (m *MsgRetire_RetireCredits) Reset()
- func (m *MsgRetire_RetireCredits) Size() (n int)
- func (m *MsgRetire_RetireCredits) String() string
- func (m *MsgRetire_RetireCredits) Unmarshal(dAtA []byte) error
- func (m *MsgRetire_RetireCredits) XXX_DiscardUnknown()
- func (m *MsgRetire_RetireCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRetire_RetireCredits) XXX_Merge(src proto.Message)
- func (m *MsgRetire_RetireCredits) XXX_Size() int
- func (m *MsgRetire_RetireCredits) XXX_Unmarshal(b []byte) error
- type MsgSend
- func (*MsgSend) Descriptor() ([]byte, []int)
- func (m *MsgSend) GetCredits() []*MsgSend_SendCredits
- func (m *MsgSend) GetRecipient() string
- func (m *MsgSend) GetSender() string
- func (m MsgSend) GetSignBytes() []byte
- func (m *MsgSend) GetSigners() []sdk.AccAddress
- func (m *MsgSend) Marshal() (dAtA []byte, err error)
- func (m *MsgSend) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSend) ProtoMessage()
- func (m *MsgSend) Reset()
- func (m MsgSend) Route() string
- func (m *MsgSend) Size() (n int)
- func (m *MsgSend) String() string
- func (m MsgSend) Type() string
- func (m *MsgSend) Unmarshal(dAtA []byte) error
- func (m *MsgSend) ValidateBasic() error
- func (m *MsgSend) XXX_DiscardUnknown()
- func (m *MsgSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSend) XXX_Merge(src proto.Message)
- func (m *MsgSend) XXX_Size() int
- func (m *MsgSend) XXX_Unmarshal(b []byte) error
- type MsgSendResponse
- func (*MsgSendResponse) Descriptor() ([]byte, []int)
- func (m *MsgSendResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSendResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSendResponse) ProtoMessage()
- func (m *MsgSendResponse) Reset()
- func (m *MsgSendResponse) Size() (n int)
- func (m *MsgSendResponse) String() string
- func (m *MsgSendResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSendResponse) XXX_DiscardUnknown()
- func (m *MsgSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSendResponse) XXX_Merge(src proto.Message)
- func (m *MsgSendResponse) XXX_Size() int
- func (m *MsgSendResponse) XXX_Unmarshal(b []byte) error
- type MsgSend_SendCredits
- func (*MsgSend_SendCredits) Descriptor() ([]byte, []int)
- func (m *MsgSend_SendCredits) GetBatchDenom() string
- func (m *MsgSend_SendCredits) GetRetiredAmount() string
- func (m *MsgSend_SendCredits) GetRetirementLocation() string
- func (m *MsgSend_SendCredits) GetTradableAmount() string
- func (m *MsgSend_SendCredits) Marshal() (dAtA []byte, err error)
- func (m *MsgSend_SendCredits) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSend_SendCredits) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSend_SendCredits) ProtoMessage()
- func (m *MsgSend_SendCredits) Reset()
- func (m *MsgSend_SendCredits) Size() (n int)
- func (m *MsgSend_SendCredits) String() string
- func (m *MsgSend_SendCredits) Unmarshal(dAtA []byte) error
- func (m *MsgSend_SendCredits) XXX_DiscardUnknown()
- func (m *MsgSend_SendCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSend_SendCredits) XXX_Merge(src proto.Message)
- func (m *MsgSend_SendCredits) XXX_Size() int
- func (m *MsgSend_SendCredits) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateClassAdmin
- func (*MsgUpdateClassAdmin) Descriptor() ([]byte, []int)
- func (m *MsgUpdateClassAdmin) GetAdmin() string
- func (m *MsgUpdateClassAdmin) GetClassId() string
- func (m *MsgUpdateClassAdmin) GetNewAdmin() string
- func (m MsgUpdateClassAdmin) GetSignBytes() []byte
- func (m *MsgUpdateClassAdmin) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateClassAdmin) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateClassAdmin) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateClassAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateClassAdmin) ProtoMessage()
- func (m *MsgUpdateClassAdmin) Reset()
- func (m MsgUpdateClassAdmin) Route() string
- func (m *MsgUpdateClassAdmin) Size() (n int)
- func (m *MsgUpdateClassAdmin) String() string
- func (m MsgUpdateClassAdmin) Type() string
- func (m *MsgUpdateClassAdmin) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateClassAdmin) ValidateBasic() error
- func (m *MsgUpdateClassAdmin) XXX_DiscardUnknown()
- func (m *MsgUpdateClassAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateClassAdmin) XXX_Merge(src proto.Message)
- func (m *MsgUpdateClassAdmin) XXX_Size() int
- func (m *MsgUpdateClassAdmin) XXX_Unmarshal(b []byte) error
- type MsgUpdateClassAdminResponse
- func (*MsgUpdateClassAdminResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateClassAdminResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateClassAdminResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateClassAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateClassAdminResponse) ProtoMessage()
- func (m *MsgUpdateClassAdminResponse) Reset()
- func (m *MsgUpdateClassAdminResponse) Size() (n int)
- func (m *MsgUpdateClassAdminResponse) String() string
- func (m *MsgUpdateClassAdminResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateClassAdminResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateClassAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateClassAdminResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateClassAdminResponse) XXX_Size() int
- func (m *MsgUpdateClassAdminResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateClassIssuers
- func (*MsgUpdateClassIssuers) Descriptor() ([]byte, []int)
- func (m *MsgUpdateClassIssuers) GetAdmin() string
- func (m *MsgUpdateClassIssuers) GetClassId() string
- func (m *MsgUpdateClassIssuers) GetIssuers() []string
- func (m MsgUpdateClassIssuers) GetSignBytes() []byte
- func (m *MsgUpdateClassIssuers) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateClassIssuers) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateClassIssuers) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateClassIssuers) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateClassIssuers) ProtoMessage()
- func (m *MsgUpdateClassIssuers) Reset()
- func (m MsgUpdateClassIssuers) Route() string
- func (m *MsgUpdateClassIssuers) Size() (n int)
- func (m *MsgUpdateClassIssuers) String() string
- func (m MsgUpdateClassIssuers) Type() string
- func (m *MsgUpdateClassIssuers) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateClassIssuers) ValidateBasic() error
- func (m *MsgUpdateClassIssuers) XXX_DiscardUnknown()
- func (m *MsgUpdateClassIssuers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateClassIssuers) XXX_Merge(src proto.Message)
- func (m *MsgUpdateClassIssuers) XXX_Size() int
- func (m *MsgUpdateClassIssuers) XXX_Unmarshal(b []byte) error
- type MsgUpdateClassIssuersResponse
- func (*MsgUpdateClassIssuersResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateClassIssuersResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateClassIssuersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateClassIssuersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateClassIssuersResponse) ProtoMessage()
- func (m *MsgUpdateClassIssuersResponse) Reset()
- func (m *MsgUpdateClassIssuersResponse) Size() (n int)
- func (m *MsgUpdateClassIssuersResponse) String() string
- func (m *MsgUpdateClassIssuersResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateClassIssuersResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateClassIssuersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateClassIssuersResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateClassIssuersResponse) XXX_Size() int
- func (m *MsgUpdateClassIssuersResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateClassMetadata
- func (*MsgUpdateClassMetadata) Descriptor() ([]byte, []int)
- func (m *MsgUpdateClassMetadata) GetAdmin() string
- func (m *MsgUpdateClassMetadata) GetClassId() string
- func (m *MsgUpdateClassMetadata) GetMetadata() []byte
- func (m MsgUpdateClassMetadata) GetSignBytes() []byte
- func (m *MsgUpdateClassMetadata) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateClassMetadata) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateClassMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateClassMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateClassMetadata) ProtoMessage()
- func (m *MsgUpdateClassMetadata) Reset()
- func (m MsgUpdateClassMetadata) Route() string
- func (m *MsgUpdateClassMetadata) Size() (n int)
- func (m *MsgUpdateClassMetadata) String() string
- func (m MsgUpdateClassMetadata) Type() string
- func (m *MsgUpdateClassMetadata) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateClassMetadata) ValidateBasic() error
- func (m *MsgUpdateClassMetadata) XXX_DiscardUnknown()
- func (m *MsgUpdateClassMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateClassMetadata) XXX_Merge(src proto.Message)
- func (m *MsgUpdateClassMetadata) XXX_Size() int
- func (m *MsgUpdateClassMetadata) XXX_Unmarshal(b []byte) error
- type MsgUpdateClassMetadataResponse
- func (*MsgUpdateClassMetadataResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateClassMetadataResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateClassMetadataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateClassMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateClassMetadataResponse) ProtoMessage()
- func (m *MsgUpdateClassMetadataResponse) Reset()
- func (m *MsgUpdateClassMetadataResponse) Size() (n int)
- func (m *MsgUpdateClassMetadataResponse) String() string
- func (m *MsgUpdateClassMetadataResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateClassMetadataResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateClassMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateClassMetadataResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateClassMetadataResponse) XXX_Size() int
- func (m *MsgUpdateClassMetadataResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAllowedClassCreators() []string
- func (m *Params) GetAllowlistEnabled() bool
- func (m *Params) GetBasketCreationFee() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Params) GetCreditClassFee() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *Params) GetCreditTypes() []*CreditType
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryBalanceRequest
- func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryBalanceRequest) GetAccount() string
- func (m *QueryBalanceRequest) GetBatchDenom() string
- func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalanceRequest) ProtoMessage()
- func (m *QueryBalanceRequest) Reset()
- func (m *QueryBalanceRequest) Size() (n int)
- func (m *QueryBalanceRequest) String() string
- func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBalanceRequest) XXX_DiscardUnknown()
- func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalanceRequest) XXX_Merge(src proto.Message)
- func (m *QueryBalanceRequest) XXX_Size() int
- func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error
- type QueryBalanceResponse
- func (*QueryBalanceResponse) Descriptor() ([]byte, []int)
- func (m *QueryBalanceResponse) GetRetiredAmount() string
- func (m *QueryBalanceResponse) GetTradableAmount() string
- func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalanceResponse) ProtoMessage()
- func (m *QueryBalanceResponse) Reset()
- func (m *QueryBalanceResponse) Size() (n int)
- func (m *QueryBalanceResponse) String() string
- func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBalanceResponse) XXX_DiscardUnknown()
- func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalanceResponse) XXX_Merge(src proto.Message)
- func (m *QueryBalanceResponse) XXX_Size() int
- func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error
- type QueryBatchInfoRequest
- func (*QueryBatchInfoRequest) Descriptor() ([]byte, []int)
- func (m *QueryBatchInfoRequest) GetBatchDenom() string
- func (m *QueryBatchInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBatchInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBatchInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBatchInfoRequest) ProtoMessage()
- func (m *QueryBatchInfoRequest) Reset()
- func (m *QueryBatchInfoRequest) Size() (n int)
- func (m *QueryBatchInfoRequest) String() string
- func (m *QueryBatchInfoRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBatchInfoRequest) XXX_DiscardUnknown()
- func (m *QueryBatchInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBatchInfoRequest) XXX_Merge(src proto.Message)
- func (m *QueryBatchInfoRequest) XXX_Size() int
- func (m *QueryBatchInfoRequest) XXX_Unmarshal(b []byte) error
- type QueryBatchInfoResponse
- func (*QueryBatchInfoResponse) Descriptor() ([]byte, []int)
- func (m *QueryBatchInfoResponse) GetInfo() *BatchInfo
- func (m *QueryBatchInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBatchInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBatchInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBatchInfoResponse) ProtoMessage()
- func (m *QueryBatchInfoResponse) Reset()
- func (m *QueryBatchInfoResponse) Size() (n int)
- func (m *QueryBatchInfoResponse) String() string
- func (m *QueryBatchInfoResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBatchInfoResponse) XXX_DiscardUnknown()
- func (m *QueryBatchInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBatchInfoResponse) XXX_Merge(src proto.Message)
- func (m *QueryBatchInfoResponse) XXX_Size() int
- func (m *QueryBatchInfoResponse) XXX_Unmarshal(b []byte) error
- type QueryBatchesRequest
- func (*QueryBatchesRequest) Descriptor() ([]byte, []int)
- func (m *QueryBatchesRequest) GetClassId() string
- func (m *QueryBatchesRequest) GetPagination() *query.PageRequest
- func (m *QueryBatchesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBatchesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBatchesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBatchesRequest) ProtoMessage()
- func (m *QueryBatchesRequest) Reset()
- func (m *QueryBatchesRequest) Size() (n int)
- func (m *QueryBatchesRequest) String() string
- func (m *QueryBatchesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBatchesRequest) XXX_DiscardUnknown()
- func (m *QueryBatchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBatchesRequest) XXX_Merge(src proto.Message)
- func (m *QueryBatchesRequest) XXX_Size() int
- func (m *QueryBatchesRequest) XXX_Unmarshal(b []byte) error
- type QueryBatchesResponse
- func (*QueryBatchesResponse) Descriptor() ([]byte, []int)
- func (m *QueryBatchesResponse) GetBatches() []*BatchInfo
- func (m *QueryBatchesResponse) GetPagination() *query.PageResponse
- func (m *QueryBatchesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBatchesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBatchesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBatchesResponse) ProtoMessage()
- func (m *QueryBatchesResponse) Reset()
- func (m *QueryBatchesResponse) Size() (n int)
- func (m *QueryBatchesResponse) String() string
- func (m *QueryBatchesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBatchesResponse) XXX_DiscardUnknown()
- func (m *QueryBatchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBatchesResponse) XXX_Merge(src proto.Message)
- func (m *QueryBatchesResponse) XXX_Size() int
- func (m *QueryBatchesResponse) XXX_Unmarshal(b []byte) error
- type QueryClassInfoRequest
- func (*QueryClassInfoRequest) Descriptor() ([]byte, []int)
- func (m *QueryClassInfoRequest) GetClassId() string
- func (m *QueryClassInfoRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryClassInfoRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClassInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClassInfoRequest) ProtoMessage()
- func (m *QueryClassInfoRequest) Reset()
- func (m *QueryClassInfoRequest) Size() (n int)
- func (m *QueryClassInfoRequest) String() string
- func (m *QueryClassInfoRequest) Unmarshal(dAtA []byte) error
- func (m *QueryClassInfoRequest) XXX_DiscardUnknown()
- func (m *QueryClassInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClassInfoRequest) XXX_Merge(src proto.Message)
- func (m *QueryClassInfoRequest) XXX_Size() int
- func (m *QueryClassInfoRequest) XXX_Unmarshal(b []byte) error
- type QueryClassInfoResponse
- func (*QueryClassInfoResponse) Descriptor() ([]byte, []int)
- func (m *QueryClassInfoResponse) GetInfo() *ClassInfo
- func (m *QueryClassInfoResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClassInfoResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClassInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClassInfoResponse) ProtoMessage()
- func (m *QueryClassInfoResponse) Reset()
- func (m *QueryClassInfoResponse) Size() (n int)
- func (m *QueryClassInfoResponse) String() string
- func (m *QueryClassInfoResponse) Unmarshal(dAtA []byte) error
- func (m *QueryClassInfoResponse) XXX_DiscardUnknown()
- func (m *QueryClassInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClassInfoResponse) XXX_Merge(src proto.Message)
- func (m *QueryClassInfoResponse) XXX_Size() int
- func (m *QueryClassInfoResponse) XXX_Unmarshal(b []byte) error
- type QueryClassesRequest
- func (*QueryClassesRequest) Descriptor() ([]byte, []int)
- func (m *QueryClassesRequest) GetPagination() *query.PageRequest
- func (m *QueryClassesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryClassesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClassesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClassesRequest) ProtoMessage()
- func (m *QueryClassesRequest) Reset()
- func (m *QueryClassesRequest) Size() (n int)
- func (m *QueryClassesRequest) String() string
- func (m *QueryClassesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryClassesRequest) XXX_DiscardUnknown()
- func (m *QueryClassesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClassesRequest) XXX_Merge(src proto.Message)
- func (m *QueryClassesRequest) XXX_Size() int
- func (m *QueryClassesRequest) XXX_Unmarshal(b []byte) error
- type QueryClassesResponse
- func (*QueryClassesResponse) Descriptor() ([]byte, []int)
- func (m *QueryClassesResponse) GetClasses() []*ClassInfo
- func (m *QueryClassesResponse) GetPagination() *query.PageResponse
- func (m *QueryClassesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryClassesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryClassesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryClassesResponse) ProtoMessage()
- func (m *QueryClassesResponse) Reset()
- func (m *QueryClassesResponse) Size() (n int)
- func (m *QueryClassesResponse) String() string
- func (m *QueryClassesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryClassesResponse) XXX_DiscardUnknown()
- func (m *QueryClassesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryClassesResponse) XXX_Merge(src proto.Message)
- func (m *QueryClassesResponse) XXX_Size() int
- func (m *QueryClassesResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryCreditTypesRequest
- func (*QueryCreditTypesRequest) Descriptor() ([]byte, []int)
- func (m *QueryCreditTypesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCreditTypesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCreditTypesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCreditTypesRequest) ProtoMessage()
- func (m *QueryCreditTypesRequest) Reset()
- func (m *QueryCreditTypesRequest) Size() (n int)
- func (m *QueryCreditTypesRequest) String() string
- func (m *QueryCreditTypesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCreditTypesRequest) XXX_DiscardUnknown()
- func (m *QueryCreditTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCreditTypesRequest) XXX_Merge(src proto.Message)
- func (m *QueryCreditTypesRequest) XXX_Size() int
- func (m *QueryCreditTypesRequest) XXX_Unmarshal(b []byte) error
- type QueryCreditTypesResponse
- func (*QueryCreditTypesResponse) Descriptor() ([]byte, []int)
- func (m *QueryCreditTypesResponse) GetCreditTypes() []*CreditType
- func (m *QueryCreditTypesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCreditTypesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCreditTypesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCreditTypesResponse) ProtoMessage()
- func (m *QueryCreditTypesResponse) Reset()
- func (m *QueryCreditTypesResponse) Size() (n int)
- func (m *QueryCreditTypesResponse) String() string
- func (m *QueryCreditTypesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCreditTypesResponse) XXX_DiscardUnknown()
- func (m *QueryCreditTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCreditTypesResponse) XXX_Merge(src proto.Message)
- func (m *QueryCreditTypesResponse) XXX_Size() int
- func (m *QueryCreditTypesResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() *Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QuerySupplyRequest
- func (*QuerySupplyRequest) Descriptor() ([]byte, []int)
- func (m *QuerySupplyRequest) GetBatchDenom() string
- func (m *QuerySupplyRequest) Marshal() (dAtA []byte, err error)
- func (m *QuerySupplyRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySupplyRequest) ProtoMessage()
- func (m *QuerySupplyRequest) Reset()
- func (m *QuerySupplyRequest) Size() (n int)
- func (m *QuerySupplyRequest) String() string
- func (m *QuerySupplyRequest) Unmarshal(dAtA []byte) error
- func (m *QuerySupplyRequest) XXX_DiscardUnknown()
- func (m *QuerySupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySupplyRequest) XXX_Merge(src proto.Message)
- func (m *QuerySupplyRequest) XXX_Size() int
- func (m *QuerySupplyRequest) XXX_Unmarshal(b []byte) error
- type QuerySupplyResponse
- func (*QuerySupplyResponse) Descriptor() ([]byte, []int)
- func (m *QuerySupplyResponse) GetRetiredSupply() string
- func (m *QuerySupplyResponse) GetTradableSupply() string
- func (m *QuerySupplyResponse) Marshal() (dAtA []byte, err error)
- func (m *QuerySupplyResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QuerySupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QuerySupplyResponse) ProtoMessage()
- func (m *QuerySupplyResponse) Reset()
- func (m *QuerySupplyResponse) Size() (n int)
- func (m *QuerySupplyResponse) String() string
- func (m *QuerySupplyResponse) Unmarshal(dAtA []byte) error
- func (m *QuerySupplyResponse) XXX_DiscardUnknown()
- func (m *QuerySupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QuerySupplyResponse) XXX_Merge(src proto.Message)
- func (m *QuerySupplyResponse) XXX_Size() int
- func (m *QuerySupplyResponse) XXX_Unmarshal(b []byte) error
- type Supply
- func (*Supply) Descriptor() ([]byte, []int)
- func (m *Supply) GetBatchDenom() string
- func (m *Supply) GetRetiredSupply() string
- func (m *Supply) GetTradableSupply() string
- func (m *Supply) Marshal() (dAtA []byte, err error)
- func (m *Supply) MarshalTo(dAtA []byte) (int, error)
- func (m *Supply) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Supply) ProtoMessage()
- func (m *Supply) Reset()
- func (m *Supply) Size() (n int)
- func (m *Supply) String() string
- func (m *Supply) Unmarshal(dAtA []byte) error
- func (m *Supply) XXX_DiscardUnknown()
- func (m *Supply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Supply) XXX_Merge(src proto.Message)
- func (m *Supply) XXX_Size() int
- func (m *Supply) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Cancel(ctx context.Context, req *MsgCancel) (*MsgCancelResponse, error)
- func (*UnimplementedMsgServer) CreateBatch(ctx context.Context, req *MsgCreateBatch) (*MsgCreateBatchResponse, error)
- func (*UnimplementedMsgServer) CreateClass(ctx context.Context, req *MsgCreateClass) (*MsgCreateClassResponse, error)
- func (*UnimplementedMsgServer) Retire(ctx context.Context, req *MsgRetire) (*MsgRetireResponse, error)
- func (*UnimplementedMsgServer) Send(ctx context.Context, req *MsgSend) (*MsgSendResponse, error)
- func (*UnimplementedMsgServer) UpdateClassAdmin(ctx context.Context, req *MsgUpdateClassAdmin) (*MsgUpdateClassAdminResponse, error)
- func (*UnimplementedMsgServer) UpdateClassIssuers(ctx context.Context, req *MsgUpdateClassIssuers) (*MsgUpdateClassIssuersResponse, error)
- func (*UnimplementedMsgServer) UpdateClassMetadata(ctx context.Context, req *MsgUpdateClassMetadata) (*MsgUpdateClassMetadataResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error)
- func (*UnimplementedQueryServer) BatchInfo(ctx context.Context, req *QueryBatchInfoRequest) (*QueryBatchInfoResponse, error)
- func (*UnimplementedQueryServer) Batches(ctx context.Context, req *QueryBatchesRequest) (*QueryBatchesResponse, error)
- func (*UnimplementedQueryServer) ClassInfo(ctx context.Context, req *QueryClassInfoRequest) (*QueryClassInfoResponse, error)
- func (*UnimplementedQueryServer) Classes(ctx context.Context, req *QueryClassesRequest) (*QueryClassesResponse, error)
- func (*UnimplementedQueryServer) CreditTypes(ctx context.Context, req *QueryCreditTypesRequest) (*QueryCreditTypesResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Supply(ctx context.Context, req *QuerySupplyRequest) (*QuerySupplyResponse, error)
Constants ¶
const ( // ModuleName is the module name constant used in many places ModuleName = "ecocredit" DefaultParamspace = ModuleName TradableBalancePrefix byte = 0x0 TradableSupplyPrefix byte = 0x1 RetiredBalancePrefix byte = 0x2 RetiredSupplyPrefix byte = 0x3 CreditTypeSeqTablePrefix byte = 0x4 ClassInfoTablePrefix byte = 0x5 BatchInfoTablePrefix byte = 0x6 ORMPrefix byte = 0x7 )
const GasCostPerIteration = uint64(10)
TODO: Revisit this once we have proper gas fee framework. Tracking issues https://github.com/cosmos/cosmos-sdk/issues/9054, https://github.com/cosmos/cosmos-sdk/discussions/9072
const MaxMetadataLength = 256
MaxMetadataLength defines the max length of the metadata bytes field for the credit-class & credit-batch. TODO: This could be used as params once x/params is upgraded to use protobuf
const (
PRECISION uint32 = 6
)
TODO: remove after we open governance changes for precision
Variables ¶
var ( ReClassID = `[A-Z]{1,3}[0-9]{2,}` ReBatchDenom = fmt.Sprintf(`%s-[0-9]{8}-[0-9]{8}-[0-9]{3,}`, ReClassID) )
var ( ErrParseFailure = sdkerrors.Register(ModuleName, 2, "parse error") ErrInsufficientFunds = sdkerrors.Register(ModuleName, 3, "insufficient credit balance") ErrMaxLimit = sdkerrors.Register(ModuleName, 4, "limit exceeded") )
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // This is a value of 20 REGEN DefaultCreditClassFeeTokens = sdk.NewInt(2e7) DefaultBasketCreationFee = sdk.NewInt(2e7) KeyCreditClassFee = []byte("CreditClassFee") KeyAllowedClassCreators = []byte("AllowedClassCreators") KeyAllowlistEnabled = []byte("AllowlistEnabled") KeyCreditTypes = []byte("CreditTypes") KeyBasketCreationFee = []byte("BasketCreationFee") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func AddAndSetDecimal ¶ added in v1.1.0
AddAndSetDecimal retrieves a decimal from the given key, adds it to x, and saves it.
func ExponentToPrefix ¶ added in v1.1.0
ExponentToPrefix returns a denom prefix for a given exponent. Returns error if the exponent is not supported.
func FormatClassID ¶
func FormatClassID(creditType CreditType, classSeqNo uint64) string
Calculate the ID to use for a new credit class, based on the credit type and sequence number. This format may evolve over time, but will maintain backwards compatibility.
The initial version has format: <credit type abbreviation><class seq no>
func FormatDenom ¶
func FormatDenom(classId string, batchSeqNo uint64, startDate *time.Time, endDate *time.Time) (string, error)
Calculate the denomination to use for a batch, based on the batch information. This format may evolve over time, but will maintain backwards compatibility.
The initial version has format: <class id>-<start date>-<end date>-<batch seq no> where:
- <class id> is the string ID of the credit class
- <start date> is the start date of the batch in form YYYYMMDD
- <end date> is the end date of the batch in form YYYYMMDD
- <batch seq no> is the sequence number of the batch, padded to at least three digits
e.g. C01-20190101-20200101-001
NB: This might differ from the actual denomination used.
func GetDecimal ¶ added in v1.1.0
GetDecimal retrieves a decimal by `key` from the given `store`
func IterateBalances ¶ added in v1.1.0
func IterateBalances(store sdk.KVStore, storeKey byte, cb func(address, denom, balance string) bool)
IterateBalances iterates over balances and calls the specified callback function `cb`
func IterateSupplies ¶ added in v1.1.0
func IterateSupplies(store sdk.KVStore, storeKey byte, cb func(denom, supply string) (bool, error)) error
IterateSupplies iterates over supplies and calls the specified callback function `cb`
func NormalizeCreditTypeName ¶
Normalize credit type name by removing whitespace and converting to lowercase
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the parameter key table.
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers all the necessary ecocredit module concrete types with the provided codec reference. These types are used for Amino JSON serialization.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
func RegisterTypes ¶
func RegisterTypes(registry codectypes.InterfaceRegistry)
func RetiredBalanceKey ¶ added in v1.1.0
func RetiredBalanceKey(acc sdk.AccAddress, batchDenom BatchDenomT) []byte
RetiredBalanceKey creates the index key for recipient address and batch-denom
func RetiredSupplyKey ¶ added in v1.1.0
func RetiredSupplyKey(batchDenom BatchDenomT) []byte
RetiredSupplyKey creates the retired supply key for a given batch-denom
func SetDecimal ¶ added in v1.1.0
SetDecimal stores a decimal by `key` in the given `store`
func SubAndSetDecimal ¶ added in v1.1.0
SubAndSetDecimal retrieves a decimal from the given key, subtracts x from it, and saves it.
func TradableBalanceKey ¶ added in v1.1.0
func TradableBalanceKey(acc sdk.AccAddress, denom BatchDenomT) []byte
TradableBalanceKey creates the index key for recipient address and batch-denom
func TradableSupplyKey ¶ added in v1.1.0
func TradableSupplyKey(batchDenom BatchDenomT) []byte
TradableSupplyKey creates the tradable supply key for a given batch-denom
func ValidateClassID ¶
Validate a class ID conforms to the format described in FormatClassID. The return is nil if the ID is valid.
func ValidateCreditTypeAbbreviation ¶ added in v1.1.0
ValidateCreditTypeAbbreviation asserts that the argument is 1-3 latin alphabet uppercase letters
func ValidateDenom ¶
Validate a batch denomination conforms to the format described in FormatDenom. The return is nil if the denom is valid.
func ValidateLocation ¶ added in v1.1.0
ValidateLocation checks that the country and region conform to ISO 3166 and the postal code is valid. This is a simple regex check and doesn't check that the country or subdivision codes actually exist. This is because the codes could change at short notice and we don't want to hardfork to keep up-to-date with that information.
Types ¶
type AccountKeeper ¶
type AccountKeeper interface { // Return a new account with the next account number. Does not save the new account to the store. NewAccount(sdk.Context, authtypes.AccountI) authtypes.AccountI // Retrieve an account from the store. GetAccount(sdk.Context, sdk.AccAddress) authtypes.AccountI // Set an account in the store. SetAccount(sdk.Context, authtypes.AccountI) }
AccountKeeper defines the expected interface needed to create and retrieve accounts.
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"` }
Balance represents tradable or retired units of a credit batch with an account address, batch_denom, and balance.
func (*Balance) Descriptor ¶
func (*Balance) GetAddress ¶
func (*Balance) GetBatchDenom ¶
func (*Balance) GetRetiredBalance ¶
func (*Balance) GetTradableBalance ¶
func (*Balance) MarshalToSizedBuffer ¶
func (*Balance) ProtoMessage ¶
func (*Balance) ProtoMessage()
func (*Balance) XXX_DiscardUnknown ¶
func (m *Balance) XXX_DiscardUnknown()
func (*Balance) XXX_Marshal ¶
func (*Balance) XXX_Unmarshal ¶
type BankKeeper ¶
type BankKeeper interface { MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata) GetSupply(ctx sdk.Context, denom string) sdk.Coin }
BankKeeper defines the expected interface needed to burn and send coins and to retrieve account balances.
type BatchDenomT ¶ added in v1.1.0
type BatchDenomT string
BatchDenomT is used to prevent errors when forming keys as accounts and denoms are both represented as strings
func ParseBalanceKey ¶ added in v1.1.0
func ParseBalanceKey(key []byte) (sdk.AccAddress, BatchDenomT)
ParseBalanceKey parses the recipient address and batch-denom from tradable or retired balance key. Balance keys take the following form: <storage prefix 1 byte><addr length 1 byte><addr><batchDenom>
func ParseSupplyKey ¶ added in v1.1.0
func ParseSupplyKey(key []byte) BatchDenomT
ParseSupplyKey parses the batch-denom from tradable or retired supply key
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 *time.Time `protobuf:"bytes,7,opt,name=start_date,json=startDate,proto3,stdtime" json:"start_date,omitempty"` // end_date is the end of the period during which this credit batch was // quantified and verified. EndDate *time.Time `protobuf:"bytes,8,opt,name=end_date,json=endDate,proto3,stdtime" 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"` }
BatchInfo represents the high-level on-chain information for a credit batch.
func (*BatchInfo) Descriptor ¶
func (*BatchInfo) GetAmountCancelled ¶
func (*BatchInfo) GetBatchDenom ¶
func (*BatchInfo) GetClassId ¶
func (*BatchInfo) GetEndDate ¶
func (*BatchInfo) GetMetadata ¶
func (*BatchInfo) GetProjectLocation ¶
func (*BatchInfo) GetStartDate ¶
func (*BatchInfo) GetTotalAmount ¶
func (*BatchInfo) MarshalToSizedBuffer ¶
func (*BatchInfo) PrimaryKeyFields ¶
func (m *BatchInfo) PrimaryKeyFields() []interface{}
PrimaryKeyFields returns the fields of the object that will make up the primary key for BatchInfo.
func (*BatchInfo) ProtoMessage ¶
func (*BatchInfo) ProtoMessage()
func (*BatchInfo) XXX_DiscardUnknown ¶
func (m *BatchInfo) XXX_DiscardUnknown()
func (*BatchInfo) XXX_Marshal ¶
func (*BatchInfo) XXX_Unmarshal ¶
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"` }
ClassInfo represents the high-level on-chain information for a credit class.
func (*ClassInfo) AssertClassIssuer ¶
AssertClassIssuer makes sure that the issuer is part of issuers of given classID. Returns ErrUnauthorized otherwise.
func (*ClassInfo) Descriptor ¶
func (*ClassInfo) GetClassId ¶
func (*ClassInfo) GetCreditType ¶
func (m *ClassInfo) GetCreditType() *CreditType
func (*ClassInfo) GetIssuers ¶
func (*ClassInfo) GetMetadata ¶
func (*ClassInfo) GetNumBatches ¶
func (*ClassInfo) MarshalToSizedBuffer ¶
func (*ClassInfo) PrimaryKeyFields ¶
func (m *ClassInfo) PrimaryKeyFields() []interface{}
PrimaryKeyFields returns the fields of the object that will make up the primary key for ClassInfo.
func (*ClassInfo) ProtoMessage ¶
func (*ClassInfo) ProtoMessage()
func (*ClassInfo) XXX_DiscardUnknown ¶
func (m *ClassInfo) XXX_DiscardUnknown()
func (*ClassInfo) XXX_Marshal ¶
func (*ClassInfo) XXX_Unmarshal ¶
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"` }
CreditType defines the measurement unit/precision of a certain credit type (e.g. carbon, biodiversity...)
func (*CreditType) Descriptor ¶
func (*CreditType) Descriptor() ([]byte, []int)
func (*CreditType) GetAbbreviation ¶
func (m *CreditType) GetAbbreviation() string
func (*CreditType) GetName ¶
func (m *CreditType) GetName() string
func (*CreditType) GetPrecision ¶
func (m *CreditType) GetPrecision() uint32
func (*CreditType) GetUnit ¶
func (m *CreditType) GetUnit() string
func (*CreditType) Marshal ¶
func (m *CreditType) Marshal() (dAtA []byte, err error)
func (*CreditType) MarshalToSizedBuffer ¶
func (m *CreditType) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreditType) ProtoMessage ¶
func (*CreditType) ProtoMessage()
func (*CreditType) Reset ¶
func (m *CreditType) Reset()
func (*CreditType) Size ¶
func (m *CreditType) Size() (n int)
func (*CreditType) String ¶
func (m *CreditType) String() string
func (*CreditType) Unmarshal ¶
func (m *CreditType) Unmarshal(dAtA []byte) error
func (*CreditType) XXX_DiscardUnknown ¶
func (m *CreditType) XXX_DiscardUnknown()
func (*CreditType) XXX_Marshal ¶
func (m *CreditType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreditType) XXX_Merge ¶
func (m *CreditType) XXX_Merge(src proto.Message)
func (*CreditType) XXX_Size ¶
func (m *CreditType) XXX_Size() int
func (*CreditType) XXX_Unmarshal ¶
func (m *CreditType) XXX_Unmarshal(b []byte) error
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"` }
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 ¶
func (*CreditTypeSeq) Descriptor() ([]byte, []int)
func (*CreditTypeSeq) GetAbbreviation ¶
func (m *CreditTypeSeq) GetAbbreviation() string
func (*CreditTypeSeq) GetSeqNumber ¶
func (m *CreditTypeSeq) GetSeqNumber() uint64
func (*CreditTypeSeq) Marshal ¶
func (m *CreditTypeSeq) Marshal() (dAtA []byte, err error)
func (*CreditTypeSeq) MarshalToSizedBuffer ¶
func (m *CreditTypeSeq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CreditTypeSeq) PrimaryKeyFields ¶
func (m *CreditTypeSeq) PrimaryKeyFields() []interface{}
PrimaryKeyFields returns the fields of the object that will make up the primary key for CreditTypeSeq.
func (*CreditTypeSeq) ProtoMessage ¶
func (*CreditTypeSeq) ProtoMessage()
func (*CreditTypeSeq) Reset ¶
func (m *CreditTypeSeq) Reset()
func (*CreditTypeSeq) Size ¶
func (m *CreditTypeSeq) Size() (n int)
func (*CreditTypeSeq) String ¶
func (m *CreditTypeSeq) String() string
func (*CreditTypeSeq) Unmarshal ¶
func (m *CreditTypeSeq) Unmarshal(dAtA []byte) error
func (*CreditTypeSeq) XXX_DiscardUnknown ¶
func (m *CreditTypeSeq) XXX_DiscardUnknown()
func (*CreditTypeSeq) XXX_Marshal ¶
func (m *CreditTypeSeq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CreditTypeSeq) XXX_Merge ¶
func (m *CreditTypeSeq) XXX_Merge(src proto.Message)
func (*CreditTypeSeq) XXX_Size ¶
func (m *CreditTypeSeq) XXX_Size() int
func (*CreditTypeSeq) XXX_Unmarshal ¶
func (m *CreditTypeSeq) XXX_Unmarshal(b []byte) error
type DistributionKeeper ¶ added in v1.1.0
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"` }
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 ¶
func (*EventCancel) Descriptor() ([]byte, []int)
func (*EventCancel) GetAmount ¶
func (m *EventCancel) GetAmount() string
func (*EventCancel) GetBatchDenom ¶
func (m *EventCancel) GetBatchDenom() string
func (*EventCancel) GetCanceller ¶
func (m *EventCancel) GetCanceller() string
func (*EventCancel) Marshal ¶
func (m *EventCancel) Marshal() (dAtA []byte, err error)
func (*EventCancel) MarshalToSizedBuffer ¶
func (m *EventCancel) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCancel) ProtoMessage ¶
func (*EventCancel) ProtoMessage()
func (*EventCancel) Reset ¶
func (m *EventCancel) Reset()
func (*EventCancel) Size ¶
func (m *EventCancel) Size() (n int)
func (*EventCancel) String ¶
func (m *EventCancel) String() string
func (*EventCancel) Unmarshal ¶
func (m *EventCancel) Unmarshal(dAtA []byte) error
func (*EventCancel) XXX_DiscardUnknown ¶
func (m *EventCancel) XXX_DiscardUnknown()
func (*EventCancel) XXX_Marshal ¶
func (m *EventCancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCancel) XXX_Merge ¶
func (m *EventCancel) XXX_Merge(src proto.Message)
func (*EventCancel) XXX_Size ¶
func (m *EventCancel) XXX_Size() int
func (*EventCancel) XXX_Unmarshal ¶
func (m *EventCancel) XXX_Unmarshal(b []byte) error
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"` }
EventCreateBatch is an event emitted when a credit batch is created.
func (*EventCreateBatch) Descriptor ¶
func (*EventCreateBatch) Descriptor() ([]byte, []int)
func (*EventCreateBatch) GetBatchDenom ¶
func (m *EventCreateBatch) GetBatchDenom() string
func (*EventCreateBatch) GetClassId ¶
func (m *EventCreateBatch) GetClassId() string
func (*EventCreateBatch) GetEndDate ¶
func (m *EventCreateBatch) GetEndDate() string
func (*EventCreateBatch) GetIssuer ¶
func (m *EventCreateBatch) GetIssuer() string
func (*EventCreateBatch) GetProjectLocation ¶
func (m *EventCreateBatch) GetProjectLocation() string
func (*EventCreateBatch) GetStartDate ¶
func (m *EventCreateBatch) GetStartDate() string
func (*EventCreateBatch) GetTotalAmount ¶
func (m *EventCreateBatch) GetTotalAmount() string
func (*EventCreateBatch) Marshal ¶
func (m *EventCreateBatch) Marshal() (dAtA []byte, err error)
func (*EventCreateBatch) MarshalToSizedBuffer ¶
func (m *EventCreateBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCreateBatch) ProtoMessage ¶
func (*EventCreateBatch) ProtoMessage()
func (*EventCreateBatch) Reset ¶
func (m *EventCreateBatch) Reset()
func (*EventCreateBatch) Size ¶
func (m *EventCreateBatch) Size() (n int)
func (*EventCreateBatch) String ¶
func (m *EventCreateBatch) String() string
func (*EventCreateBatch) Unmarshal ¶
func (m *EventCreateBatch) Unmarshal(dAtA []byte) error
func (*EventCreateBatch) XXX_DiscardUnknown ¶
func (m *EventCreateBatch) XXX_DiscardUnknown()
func (*EventCreateBatch) XXX_Marshal ¶
func (m *EventCreateBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCreateBatch) XXX_Merge ¶
func (m *EventCreateBatch) XXX_Merge(src proto.Message)
func (*EventCreateBatch) XXX_Size ¶
func (m *EventCreateBatch) XXX_Size() int
func (*EventCreateBatch) XXX_Unmarshal ¶
func (m *EventCreateBatch) XXX_Unmarshal(b []byte) error
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"` }
EventCreateClass is an event emitted when a credit class is created.
func (*EventCreateClass) Descriptor ¶
func (*EventCreateClass) Descriptor() ([]byte, []int)
func (*EventCreateClass) GetAdmin ¶
func (m *EventCreateClass) GetAdmin() string
func (*EventCreateClass) GetClassId ¶
func (m *EventCreateClass) GetClassId() string
func (*EventCreateClass) Marshal ¶
func (m *EventCreateClass) Marshal() (dAtA []byte, err error)
func (*EventCreateClass) MarshalToSizedBuffer ¶
func (m *EventCreateClass) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventCreateClass) ProtoMessage ¶
func (*EventCreateClass) ProtoMessage()
func (*EventCreateClass) Reset ¶
func (m *EventCreateClass) Reset()
func (*EventCreateClass) Size ¶
func (m *EventCreateClass) Size() (n int)
func (*EventCreateClass) String ¶
func (m *EventCreateClass) String() string
func (*EventCreateClass) Unmarshal ¶
func (m *EventCreateClass) Unmarshal(dAtA []byte) error
func (*EventCreateClass) XXX_DiscardUnknown ¶
func (m *EventCreateClass) XXX_DiscardUnknown()
func (*EventCreateClass) XXX_Marshal ¶
func (m *EventCreateClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventCreateClass) XXX_Merge ¶
func (m *EventCreateClass) XXX_Merge(src proto.Message)
func (*EventCreateClass) XXX_Size ¶
func (m *EventCreateClass) XXX_Size() int
func (*EventCreateClass) XXX_Unmarshal ¶
func (m *EventCreateClass) XXX_Unmarshal(b []byte) error
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"` }
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 ¶
func (*EventReceive) Descriptor() ([]byte, []int)
func (*EventReceive) GetBasketDenom ¶ added in v1.1.0
func (m *EventReceive) GetBasketDenom() string
func (*EventReceive) GetBatchDenom ¶
func (m *EventReceive) GetBatchDenom() string
func (*EventReceive) GetRecipient ¶
func (m *EventReceive) GetRecipient() string
func (*EventReceive) GetRetiredAmount ¶
func (m *EventReceive) GetRetiredAmount() string
func (*EventReceive) GetSender ¶
func (m *EventReceive) GetSender() string
func (*EventReceive) GetTradableAmount ¶
func (m *EventReceive) GetTradableAmount() string
func (*EventReceive) Marshal ¶
func (m *EventReceive) Marshal() (dAtA []byte, err error)
func (*EventReceive) MarshalToSizedBuffer ¶
func (m *EventReceive) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventReceive) ProtoMessage ¶
func (*EventReceive) ProtoMessage()
func (*EventReceive) Reset ¶
func (m *EventReceive) Reset()
func (*EventReceive) Size ¶
func (m *EventReceive) Size() (n int)
func (*EventReceive) String ¶
func (m *EventReceive) String() string
func (*EventReceive) Unmarshal ¶
func (m *EventReceive) Unmarshal(dAtA []byte) error
func (*EventReceive) XXX_DiscardUnknown ¶
func (m *EventReceive) XXX_DiscardUnknown()
func (*EventReceive) XXX_Marshal ¶
func (m *EventReceive) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventReceive) XXX_Merge ¶
func (m *EventReceive) XXX_Merge(src proto.Message)
func (*EventReceive) XXX_Size ¶
func (m *EventReceive) XXX_Size() int
func (*EventReceive) XXX_Unmarshal ¶
func (m *EventReceive) XXX_Unmarshal(b []byte) error
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"` }
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 ¶
func (*EventRetire) Descriptor() ([]byte, []int)
func (*EventRetire) GetAmount ¶
func (m *EventRetire) GetAmount() string
func (*EventRetire) GetBatchDenom ¶
func (m *EventRetire) GetBatchDenom() string
func (*EventRetire) GetLocation ¶
func (m *EventRetire) GetLocation() string
func (*EventRetire) GetRetirer ¶
func (m *EventRetire) GetRetirer() string
func (*EventRetire) Marshal ¶
func (m *EventRetire) Marshal() (dAtA []byte, err error)
func (*EventRetire) MarshalToSizedBuffer ¶
func (m *EventRetire) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventRetire) ProtoMessage ¶
func (*EventRetire) ProtoMessage()
func (*EventRetire) Reset ¶
func (m *EventRetire) Reset()
func (*EventRetire) Size ¶
func (m *EventRetire) Size() (n int)
func (*EventRetire) String ¶
func (m *EventRetire) String() string
func (*EventRetire) Unmarshal ¶
func (m *EventRetire) Unmarshal(dAtA []byte) error
func (*EventRetire) XXX_DiscardUnknown ¶
func (m *EventRetire) XXX_DiscardUnknown()
func (*EventRetire) XXX_Marshal ¶
func (m *EventRetire) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventRetire) XXX_Merge ¶
func (m *EventRetire) XXX_Merge(src proto.Message)
func (*EventRetire) XXX_Size ¶
func (m *EventRetire) XXX_Size() int
func (*EventRetire) XXX_Unmarshal ¶
func (m *EventRetire) XXX_Unmarshal(b []byte) error
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"` // 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"` }
GenesisState defines ecocredit module's genesis state.
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns a default ecocredit module genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetBalances ¶
func (m *GenesisState) GetBalances() []*Balance
func (*GenesisState) GetBatchInfo ¶
func (m *GenesisState) GetBatchInfo() []*BatchInfo
func (*GenesisState) GetClassInfo ¶
func (m *GenesisState) GetClassInfo() []*ClassInfo
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetSequences ¶
func (m *GenesisState) GetSequences() []*CreditTypeSeq
func (*GenesisState) GetSupplies ¶
func (m *GenesisState) GetSupplies() []*Supply
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (*GenesisState) Validate ¶
func (s *GenesisState) Validate() error
Validate performs basic validation for each credit-batch, it returns an error if credit-batch tradable or retired supply does not match the sum of all tradable or retired balances
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
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"` }
MsgCancel is the Msg/Cancel request type.
func (*MsgCancel) Descriptor ¶
func (*MsgCancel) GetCredits ¶
func (m *MsgCancel) GetCredits() []*MsgCancel_CancelCredits
func (MsgCancel) GetSignBytes ¶
GetSignBytes Implements LegacyMsg.
func (*MsgCancel) GetSigners ¶
func (m *MsgCancel) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgCancel.
func (*MsgCancel) MarshalToSizedBuffer ¶
func (*MsgCancel) ProtoMessage ¶
func (*MsgCancel) ProtoMessage()
func (*MsgCancel) ValidateBasic ¶
ValidateBasic does a sanity check on the provided data.
func (*MsgCancel) XXX_DiscardUnknown ¶
func (m *MsgCancel) XXX_DiscardUnknown()
func (*MsgCancel) XXX_Marshal ¶
func (*MsgCancel) XXX_Unmarshal ¶
type MsgCancelResponse ¶
type MsgCancelResponse struct { }
MsgCancelResponse is the Msg/Cancel response type.
func (*MsgCancelResponse) Descriptor ¶
func (*MsgCancelResponse) Descriptor() ([]byte, []int)
func (*MsgCancelResponse) Marshal ¶
func (m *MsgCancelResponse) Marshal() (dAtA []byte, err error)
func (*MsgCancelResponse) MarshalTo ¶
func (m *MsgCancelResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancelResponse) MarshalToSizedBuffer ¶
func (m *MsgCancelResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancelResponse) ProtoMessage ¶
func (*MsgCancelResponse) ProtoMessage()
func (*MsgCancelResponse) Reset ¶
func (m *MsgCancelResponse) Reset()
func (*MsgCancelResponse) Size ¶
func (m *MsgCancelResponse) Size() (n int)
func (*MsgCancelResponse) String ¶
func (m *MsgCancelResponse) String() string
func (*MsgCancelResponse) Unmarshal ¶
func (m *MsgCancelResponse) Unmarshal(dAtA []byte) error
func (*MsgCancelResponse) XXX_DiscardUnknown ¶
func (m *MsgCancelResponse) XXX_DiscardUnknown()
func (*MsgCancelResponse) XXX_Marshal ¶
func (m *MsgCancelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancelResponse) XXX_Merge ¶
func (m *MsgCancelResponse) XXX_Merge(src proto.Message)
func (*MsgCancelResponse) XXX_Size ¶
func (m *MsgCancelResponse) XXX_Size() int
func (*MsgCancelResponse) XXX_Unmarshal ¶
func (m *MsgCancelResponse) XXX_Unmarshal(b []byte) error
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"` }
CancelCredits specifies a batch and the number of credits being cancelled.
func (*MsgCancel_CancelCredits) Descriptor ¶
func (*MsgCancel_CancelCredits) Descriptor() ([]byte, []int)
func (*MsgCancel_CancelCredits) GetAmount ¶
func (m *MsgCancel_CancelCredits) GetAmount() string
func (*MsgCancel_CancelCredits) GetBatchDenom ¶
func (m *MsgCancel_CancelCredits) GetBatchDenom() string
func (*MsgCancel_CancelCredits) Marshal ¶
func (m *MsgCancel_CancelCredits) Marshal() (dAtA []byte, err error)
func (*MsgCancel_CancelCredits) MarshalTo ¶
func (m *MsgCancel_CancelCredits) MarshalTo(dAtA []byte) (int, error)
func (*MsgCancel_CancelCredits) MarshalToSizedBuffer ¶
func (m *MsgCancel_CancelCredits) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCancel_CancelCredits) ProtoMessage ¶
func (*MsgCancel_CancelCredits) ProtoMessage()
func (*MsgCancel_CancelCredits) Reset ¶
func (m *MsgCancel_CancelCredits) Reset()
func (*MsgCancel_CancelCredits) Size ¶
func (m *MsgCancel_CancelCredits) Size() (n int)
func (*MsgCancel_CancelCredits) String ¶
func (m *MsgCancel_CancelCredits) String() string
func (*MsgCancel_CancelCredits) Unmarshal ¶
func (m *MsgCancel_CancelCredits) Unmarshal(dAtA []byte) error
func (*MsgCancel_CancelCredits) XXX_DiscardUnknown ¶
func (m *MsgCancel_CancelCredits) XXX_DiscardUnknown()
func (*MsgCancel_CancelCredits) XXX_Marshal ¶
func (m *MsgCancel_CancelCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCancel_CancelCredits) XXX_Merge ¶
func (m *MsgCancel_CancelCredits) XXX_Merge(src proto.Message)
func (*MsgCancel_CancelCredits) XXX_Size ¶
func (m *MsgCancel_CancelCredits) XXX_Size() int
func (*MsgCancel_CancelCredits) XXX_Unmarshal ¶
func (m *MsgCancel_CancelCredits) XXX_Unmarshal(b []byte) error
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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewMsgClient ¶
func NewMsgClient(cc grpc1.ClientConn) 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 *time.Time `protobuf:"bytes,5,opt,name=start_date,json=startDate,proto3,stdtime" json:"start_date,omitempty"` // end_date is the end of the period during which this credit batch was // quantified and verified. EndDate *time.Time `protobuf:"bytes,6,opt,name=end_date,json=endDate,proto3,stdtime" 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"` }
MsgCreateBatch is the Msg/CreateBatch request type.
func (*MsgCreateBatch) Descriptor ¶
func (*MsgCreateBatch) Descriptor() ([]byte, []int)
func (*MsgCreateBatch) GetClassId ¶
func (m *MsgCreateBatch) GetClassId() string
func (*MsgCreateBatch) GetEndDate ¶
func (m *MsgCreateBatch) GetEndDate() *time.Time
func (*MsgCreateBatch) GetIssuance ¶
func (m *MsgCreateBatch) GetIssuance() []*MsgCreateBatch_BatchIssuance
func (*MsgCreateBatch) GetIssuer ¶
func (m *MsgCreateBatch) GetIssuer() string
func (*MsgCreateBatch) GetMetadata ¶
func (m *MsgCreateBatch) GetMetadata() []byte
func (*MsgCreateBatch) GetProjectLocation ¶
func (m *MsgCreateBatch) GetProjectLocation() string
func (MsgCreateBatch) GetSignBytes ¶
func (m MsgCreateBatch) GetSignBytes() []byte
GetSignBytes Implements LegacyMsg.
func (*MsgCreateBatch) GetSigners ¶
func (m *MsgCreateBatch) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgCreateBatch.
func (*MsgCreateBatch) GetStartDate ¶
func (m *MsgCreateBatch) GetStartDate() *time.Time
func (*MsgCreateBatch) Marshal ¶
func (m *MsgCreateBatch) Marshal() (dAtA []byte, err error)
func (*MsgCreateBatch) MarshalToSizedBuffer ¶
func (m *MsgCreateBatch) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateBatch) ProtoMessage ¶
func (*MsgCreateBatch) ProtoMessage()
func (*MsgCreateBatch) Reset ¶
func (m *MsgCreateBatch) Reset()
func (*MsgCreateBatch) Size ¶
func (m *MsgCreateBatch) Size() (n int)
func (*MsgCreateBatch) String ¶
func (m *MsgCreateBatch) String() string
func (*MsgCreateBatch) Unmarshal ¶
func (m *MsgCreateBatch) Unmarshal(dAtA []byte) error
func (*MsgCreateBatch) ValidateBasic ¶
func (m *MsgCreateBatch) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgCreateBatch) XXX_DiscardUnknown ¶
func (m *MsgCreateBatch) XXX_DiscardUnknown()
func (*MsgCreateBatch) XXX_Marshal ¶
func (m *MsgCreateBatch) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateBatch) XXX_Merge ¶
func (m *MsgCreateBatch) XXX_Merge(src proto.Message)
func (*MsgCreateBatch) XXX_Size ¶
func (m *MsgCreateBatch) XXX_Size() int
func (*MsgCreateBatch) XXX_Unmarshal ¶
func (m *MsgCreateBatch) XXX_Unmarshal(b []byte) error
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"` }
MsgCreateBatchResponse is the Msg/CreateBatch response type.
func (*MsgCreateBatchResponse) Descriptor ¶
func (*MsgCreateBatchResponse) Descriptor() ([]byte, []int)
func (*MsgCreateBatchResponse) GetBatchDenom ¶
func (m *MsgCreateBatchResponse) GetBatchDenom() string
func (*MsgCreateBatchResponse) Marshal ¶
func (m *MsgCreateBatchResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateBatchResponse) MarshalTo ¶
func (m *MsgCreateBatchResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateBatchResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateBatchResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateBatchResponse) ProtoMessage ¶
func (*MsgCreateBatchResponse) ProtoMessage()
func (*MsgCreateBatchResponse) Reset ¶
func (m *MsgCreateBatchResponse) Reset()
func (*MsgCreateBatchResponse) Size ¶
func (m *MsgCreateBatchResponse) Size() (n int)
func (*MsgCreateBatchResponse) String ¶
func (m *MsgCreateBatchResponse) String() string
func (*MsgCreateBatchResponse) Unmarshal ¶
func (m *MsgCreateBatchResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateBatchResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateBatchResponse) XXX_DiscardUnknown()
func (*MsgCreateBatchResponse) XXX_Marshal ¶
func (m *MsgCreateBatchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateBatchResponse) XXX_Merge ¶
func (m *MsgCreateBatchResponse) XXX_Merge(src proto.Message)
func (*MsgCreateBatchResponse) XXX_Size ¶
func (m *MsgCreateBatchResponse) XXX_Size() int
func (*MsgCreateBatchResponse) XXX_Unmarshal ¶
func (m *MsgCreateBatchResponse) XXX_Unmarshal(b []byte) error
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"` }
BatchIssuance represents the issuance of some credits in a batch to a single recipient.
func (*MsgCreateBatch_BatchIssuance) Descriptor ¶
func (*MsgCreateBatch_BatchIssuance) Descriptor() ([]byte, []int)
func (*MsgCreateBatch_BatchIssuance) GetRecipient ¶
func (m *MsgCreateBatch_BatchIssuance) GetRecipient() string
func (*MsgCreateBatch_BatchIssuance) GetRetiredAmount ¶
func (m *MsgCreateBatch_BatchIssuance) GetRetiredAmount() string
func (*MsgCreateBatch_BatchIssuance) GetRetirementLocation ¶
func (m *MsgCreateBatch_BatchIssuance) GetRetirementLocation() string
func (*MsgCreateBatch_BatchIssuance) GetTradableAmount ¶
func (m *MsgCreateBatch_BatchIssuance) GetTradableAmount() string
func (*MsgCreateBatch_BatchIssuance) Marshal ¶
func (m *MsgCreateBatch_BatchIssuance) Marshal() (dAtA []byte, err error)
func (*MsgCreateBatch_BatchIssuance) MarshalTo ¶
func (m *MsgCreateBatch_BatchIssuance) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateBatch_BatchIssuance) MarshalToSizedBuffer ¶
func (m *MsgCreateBatch_BatchIssuance) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateBatch_BatchIssuance) ProtoMessage ¶
func (*MsgCreateBatch_BatchIssuance) ProtoMessage()
func (*MsgCreateBatch_BatchIssuance) Reset ¶
func (m *MsgCreateBatch_BatchIssuance) Reset()
func (*MsgCreateBatch_BatchIssuance) Size ¶
func (m *MsgCreateBatch_BatchIssuance) Size() (n int)
func (*MsgCreateBatch_BatchIssuance) String ¶
func (m *MsgCreateBatch_BatchIssuance) String() string
func (*MsgCreateBatch_BatchIssuance) Unmarshal ¶
func (m *MsgCreateBatch_BatchIssuance) Unmarshal(dAtA []byte) error
func (*MsgCreateBatch_BatchIssuance) XXX_DiscardUnknown ¶
func (m *MsgCreateBatch_BatchIssuance) XXX_DiscardUnknown()
func (*MsgCreateBatch_BatchIssuance) XXX_Marshal ¶
func (m *MsgCreateBatch_BatchIssuance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateBatch_BatchIssuance) XXX_Merge ¶
func (m *MsgCreateBatch_BatchIssuance) XXX_Merge(src proto.Message)
func (*MsgCreateBatch_BatchIssuance) XXX_Size ¶
func (m *MsgCreateBatch_BatchIssuance) XXX_Size() int
func (*MsgCreateBatch_BatchIssuance) XXX_Unmarshal ¶
func (m *MsgCreateBatch_BatchIssuance) XXX_Unmarshal(b []byte) error
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"` }
MsgCreateClass is the Msg/CreateClass request type.
func (*MsgCreateClass) Descriptor ¶
func (*MsgCreateClass) Descriptor() ([]byte, []int)
func (*MsgCreateClass) GetAdmin ¶
func (m *MsgCreateClass) GetAdmin() string
func (*MsgCreateClass) GetCreditTypeName ¶
func (m *MsgCreateClass) GetCreditTypeName() string
func (*MsgCreateClass) GetIssuers ¶
func (m *MsgCreateClass) GetIssuers() []string
func (*MsgCreateClass) GetMetadata ¶
func (m *MsgCreateClass) GetMetadata() []byte
func (MsgCreateClass) GetSignBytes ¶
func (m MsgCreateClass) GetSignBytes() []byte
GetSignBytes Implements LegacyMsg.
func (*MsgCreateClass) GetSigners ¶
func (m *MsgCreateClass) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgCreateClass.
func (*MsgCreateClass) Marshal ¶
func (m *MsgCreateClass) Marshal() (dAtA []byte, err error)
func (*MsgCreateClass) MarshalToSizedBuffer ¶
func (m *MsgCreateClass) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateClass) ProtoMessage ¶
func (*MsgCreateClass) ProtoMessage()
func (*MsgCreateClass) Reset ¶
func (m *MsgCreateClass) Reset()
func (*MsgCreateClass) Size ¶
func (m *MsgCreateClass) Size() (n int)
func (*MsgCreateClass) String ¶
func (m *MsgCreateClass) String() string
func (*MsgCreateClass) Unmarshal ¶
func (m *MsgCreateClass) Unmarshal(dAtA []byte) error
func (*MsgCreateClass) ValidateBasic ¶
func (m *MsgCreateClass) ValidateBasic() error
ValidateBasic does a sanity check on the provided data.
func (*MsgCreateClass) XXX_DiscardUnknown ¶
func (m *MsgCreateClass) XXX_DiscardUnknown()
func (*MsgCreateClass) XXX_Marshal ¶
func (m *MsgCreateClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateClass) XXX_Merge ¶
func (m *MsgCreateClass) XXX_Merge(src proto.Message)
func (*MsgCreateClass) XXX_Size ¶
func (m *MsgCreateClass) XXX_Size() int
func (*MsgCreateClass) XXX_Unmarshal ¶
func (m *MsgCreateClass) XXX_Unmarshal(b []byte) error
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"` }
MsgCreateClassResponse is the Msg/CreateClass response type.
func (*MsgCreateClassResponse) Descriptor ¶
func (*MsgCreateClassResponse) Descriptor() ([]byte, []int)
func (*MsgCreateClassResponse) GetClassId ¶
func (m *MsgCreateClassResponse) GetClassId() string
func (*MsgCreateClassResponse) Marshal ¶
func (m *MsgCreateClassResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateClassResponse) MarshalTo ¶
func (m *MsgCreateClassResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateClassResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateClassResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateClassResponse) ProtoMessage ¶
func (*MsgCreateClassResponse) ProtoMessage()
func (*MsgCreateClassResponse) Reset ¶
func (m *MsgCreateClassResponse) Reset()
func (*MsgCreateClassResponse) Size ¶
func (m *MsgCreateClassResponse) Size() (n int)
func (*MsgCreateClassResponse) String ¶
func (m *MsgCreateClassResponse) String() string
func (*MsgCreateClassResponse) Unmarshal ¶
func (m *MsgCreateClassResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateClassResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateClassResponse) XXX_DiscardUnknown()
func (*MsgCreateClassResponse) XXX_Marshal ¶
func (m *MsgCreateClassResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateClassResponse) XXX_Merge ¶
func (m *MsgCreateClassResponse) XXX_Merge(src proto.Message)
func (*MsgCreateClassResponse) XXX_Size ¶
func (m *MsgCreateClassResponse) XXX_Size() int
func (*MsgCreateClassResponse) XXX_Unmarshal ¶
func (m *MsgCreateClassResponse) XXX_Unmarshal(b []byte) error
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"` }
MsgRetire is the Msg/Retire request type.
func (*MsgRetire) Descriptor ¶
func (*MsgRetire) GetCredits ¶
func (m *MsgRetire) GetCredits() []*MsgRetire_RetireCredits
func (*MsgRetire) GetLocation ¶
func (MsgRetire) GetSignBytes ¶
GetSignBytes Implements LegacyMsg.
func (*MsgRetire) GetSigners ¶
func (m *MsgRetire) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgRetire.
func (*MsgRetire) MarshalToSizedBuffer ¶
func (*MsgRetire) ProtoMessage ¶
func (*MsgRetire) ProtoMessage()
func (*MsgRetire) ValidateBasic ¶
ValidateBasic does a sanity check on the provided data.
func (*MsgRetire) XXX_DiscardUnknown ¶
func (m *MsgRetire) XXX_DiscardUnknown()
func (*MsgRetire) XXX_Marshal ¶
func (*MsgRetire) XXX_Unmarshal ¶
type MsgRetireResponse ¶
type MsgRetireResponse struct { }
MsgRetire is the Msg/Retire response type.
func (*MsgRetireResponse) Descriptor ¶
func (*MsgRetireResponse) Descriptor() ([]byte, []int)
func (*MsgRetireResponse) Marshal ¶
func (m *MsgRetireResponse) Marshal() (dAtA []byte, err error)
func (*MsgRetireResponse) MarshalTo ¶
func (m *MsgRetireResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRetireResponse) MarshalToSizedBuffer ¶
func (m *MsgRetireResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRetireResponse) ProtoMessage ¶
func (*MsgRetireResponse) ProtoMessage()
func (*MsgRetireResponse) Reset ¶
func (m *MsgRetireResponse) Reset()
func (*MsgRetireResponse) Size ¶
func (m *MsgRetireResponse) Size() (n int)
func (*MsgRetireResponse) String ¶
func (m *MsgRetireResponse) String() string
func (*MsgRetireResponse) Unmarshal ¶
func (m *MsgRetireResponse) Unmarshal(dAtA []byte) error
func (*MsgRetireResponse) XXX_DiscardUnknown ¶
func (m *MsgRetireResponse) XXX_DiscardUnknown()
func (*MsgRetireResponse) XXX_Marshal ¶
func (m *MsgRetireResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRetireResponse) XXX_Merge ¶
func (m *MsgRetireResponse) XXX_Merge(src proto.Message)
func (*MsgRetireResponse) XXX_Size ¶
func (m *MsgRetireResponse) XXX_Size() int
func (*MsgRetireResponse) XXX_Unmarshal ¶
func (m *MsgRetireResponse) XXX_Unmarshal(b []byte) error
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"` }
RetireCredits specifies a batch and the number of credits being retired.
func (*MsgRetire_RetireCredits) Descriptor ¶
func (*MsgRetire_RetireCredits) Descriptor() ([]byte, []int)
func (*MsgRetire_RetireCredits) GetAmount ¶
func (m *MsgRetire_RetireCredits) GetAmount() string
func (*MsgRetire_RetireCredits) GetBatchDenom ¶
func (m *MsgRetire_RetireCredits) GetBatchDenom() string
func (*MsgRetire_RetireCredits) Marshal ¶
func (m *MsgRetire_RetireCredits) Marshal() (dAtA []byte, err error)
func (*MsgRetire_RetireCredits) MarshalTo ¶
func (m *MsgRetire_RetireCredits) MarshalTo(dAtA []byte) (int, error)
func (*MsgRetire_RetireCredits) MarshalToSizedBuffer ¶
func (m *MsgRetire_RetireCredits) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRetire_RetireCredits) ProtoMessage ¶
func (*MsgRetire_RetireCredits) ProtoMessage()
func (*MsgRetire_RetireCredits) Reset ¶
func (m *MsgRetire_RetireCredits) Reset()
func (*MsgRetire_RetireCredits) Size ¶
func (m *MsgRetire_RetireCredits) Size() (n int)
func (*MsgRetire_RetireCredits) String ¶
func (m *MsgRetire_RetireCredits) String() string
func (*MsgRetire_RetireCredits) Unmarshal ¶
func (m *MsgRetire_RetireCredits) Unmarshal(dAtA []byte) error
func (*MsgRetire_RetireCredits) XXX_DiscardUnknown ¶
func (m *MsgRetire_RetireCredits) XXX_DiscardUnknown()
func (*MsgRetire_RetireCredits) XXX_Marshal ¶
func (m *MsgRetire_RetireCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRetire_RetireCredits) XXX_Merge ¶
func (m *MsgRetire_RetireCredits) XXX_Merge(src proto.Message)
func (*MsgRetire_RetireCredits) XXX_Size ¶
func (m *MsgRetire_RetireCredits) XXX_Size() int
func (*MsgRetire_RetireCredits) XXX_Unmarshal ¶
func (m *MsgRetire_RetireCredits) XXX_Unmarshal(b []byte) error
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"` }
MsgSend is the Msg/Send request type.
func (*MsgSend) Descriptor ¶
func (*MsgSend) GetCredits ¶
func (m *MsgSend) GetCredits() []*MsgSend_SendCredits
func (*MsgSend) GetRecipient ¶
func (MsgSend) GetSignBytes ¶
GetSignBytes Implements LegacyMsg.
func (*MsgSend) GetSigners ¶
func (m *MsgSend) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgSend.
func (*MsgSend) MarshalToSizedBuffer ¶
func (*MsgSend) ProtoMessage ¶
func (*MsgSend) ProtoMessage()
func (*MsgSend) ValidateBasic ¶
ValidateBasic does a sanity check on the provided data.
func (*MsgSend) XXX_DiscardUnknown ¶
func (m *MsgSend) XXX_DiscardUnknown()
func (*MsgSend) XXX_Marshal ¶
func (*MsgSend) XXX_Unmarshal ¶
type MsgSendResponse ¶
type MsgSendResponse struct { }
MsgSendResponse is the Msg/Send response type.
func (*MsgSendResponse) Descriptor ¶
func (*MsgSendResponse) Descriptor() ([]byte, []int)
func (*MsgSendResponse) Marshal ¶
func (m *MsgSendResponse) Marshal() (dAtA []byte, err error)
func (*MsgSendResponse) MarshalToSizedBuffer ¶
func (m *MsgSendResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSendResponse) ProtoMessage ¶
func (*MsgSendResponse) ProtoMessage()
func (*MsgSendResponse) Reset ¶
func (m *MsgSendResponse) Reset()
func (*MsgSendResponse) Size ¶
func (m *MsgSendResponse) Size() (n int)
func (*MsgSendResponse) String ¶
func (m *MsgSendResponse) String() string
func (*MsgSendResponse) Unmarshal ¶
func (m *MsgSendResponse) Unmarshal(dAtA []byte) error
func (*MsgSendResponse) XXX_DiscardUnknown ¶
func (m *MsgSendResponse) XXX_DiscardUnknown()
func (*MsgSendResponse) XXX_Marshal ¶
func (m *MsgSendResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSendResponse) XXX_Merge ¶
func (m *MsgSendResponse) XXX_Merge(src proto.Message)
func (*MsgSendResponse) XXX_Size ¶
func (m *MsgSendResponse) XXX_Size() int
func (*MsgSendResponse) XXX_Unmarshal ¶
func (m *MsgSendResponse) XXX_Unmarshal(b []byte) error
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"` }
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 ¶
func (*MsgSend_SendCredits) Descriptor() ([]byte, []int)
func (*MsgSend_SendCredits) GetBatchDenom ¶
func (m *MsgSend_SendCredits) GetBatchDenom() string
func (*MsgSend_SendCredits) GetRetiredAmount ¶
func (m *MsgSend_SendCredits) GetRetiredAmount() string
func (*MsgSend_SendCredits) GetRetirementLocation ¶
func (m *MsgSend_SendCredits) GetRetirementLocation() string
func (*MsgSend_SendCredits) GetTradableAmount ¶
func (m *MsgSend_SendCredits) GetTradableAmount() string
func (*MsgSend_SendCredits) Marshal ¶
func (m *MsgSend_SendCredits) Marshal() (dAtA []byte, err error)
func (*MsgSend_SendCredits) MarshalTo ¶
func (m *MsgSend_SendCredits) MarshalTo(dAtA []byte) (int, error)
func (*MsgSend_SendCredits) MarshalToSizedBuffer ¶
func (m *MsgSend_SendCredits) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSend_SendCredits) ProtoMessage ¶
func (*MsgSend_SendCredits) ProtoMessage()
func (*MsgSend_SendCredits) Reset ¶
func (m *MsgSend_SendCredits) Reset()
func (*MsgSend_SendCredits) Size ¶
func (m *MsgSend_SendCredits) Size() (n int)
func (*MsgSend_SendCredits) String ¶
func (m *MsgSend_SendCredits) String() string
func (*MsgSend_SendCredits) Unmarshal ¶
func (m *MsgSend_SendCredits) Unmarshal(dAtA []byte) error
func (*MsgSend_SendCredits) XXX_DiscardUnknown ¶
func (m *MsgSend_SendCredits) XXX_DiscardUnknown()
func (*MsgSend_SendCredits) XXX_Marshal ¶
func (m *MsgSend_SendCredits) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSend_SendCredits) XXX_Merge ¶
func (m *MsgSend_SendCredits) XXX_Merge(src proto.Message)
func (*MsgSend_SendCredits) XXX_Size ¶
func (m *MsgSend_SendCredits) XXX_Size() int
func (*MsgSend_SendCredits) XXX_Unmarshal ¶
func (m *MsgSend_SendCredits) XXX_Unmarshal(b []byte) error
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) }
MsgServer is the server API for Msg service.
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"` }
MsgUpdateClassAdmin is the Msg/UpdateClassAdmin request type.
func (*MsgUpdateClassAdmin) Descriptor ¶
func (*MsgUpdateClassAdmin) Descriptor() ([]byte, []int)
func (*MsgUpdateClassAdmin) GetAdmin ¶
func (m *MsgUpdateClassAdmin) GetAdmin() string
func (*MsgUpdateClassAdmin) GetClassId ¶
func (m *MsgUpdateClassAdmin) GetClassId() string
func (*MsgUpdateClassAdmin) GetNewAdmin ¶
func (m *MsgUpdateClassAdmin) GetNewAdmin() string
func (MsgUpdateClassAdmin) GetSignBytes ¶
func (m MsgUpdateClassAdmin) GetSignBytes() []byte
func (*MsgUpdateClassAdmin) GetSigners ¶
func (m *MsgUpdateClassAdmin) GetSigners() []sdk.AccAddress
func (*MsgUpdateClassAdmin) Marshal ¶
func (m *MsgUpdateClassAdmin) Marshal() (dAtA []byte, err error)
func (*MsgUpdateClassAdmin) MarshalTo ¶
func (m *MsgUpdateClassAdmin) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateClassAdmin) MarshalToSizedBuffer ¶
func (m *MsgUpdateClassAdmin) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateClassAdmin) ProtoMessage ¶
func (*MsgUpdateClassAdmin) ProtoMessage()
func (*MsgUpdateClassAdmin) Reset ¶
func (m *MsgUpdateClassAdmin) Reset()
func (MsgUpdateClassAdmin) Route ¶
func (m MsgUpdateClassAdmin) Route() string
func (*MsgUpdateClassAdmin) Size ¶
func (m *MsgUpdateClassAdmin) Size() (n int)
func (*MsgUpdateClassAdmin) String ¶
func (m *MsgUpdateClassAdmin) String() string
func (MsgUpdateClassAdmin) Type ¶
func (m MsgUpdateClassAdmin) Type() string
func (*MsgUpdateClassAdmin) Unmarshal ¶
func (m *MsgUpdateClassAdmin) Unmarshal(dAtA []byte) error
func (*MsgUpdateClassAdmin) ValidateBasic ¶
func (m *MsgUpdateClassAdmin) ValidateBasic() error
func (*MsgUpdateClassAdmin) XXX_DiscardUnknown ¶
func (m *MsgUpdateClassAdmin) XXX_DiscardUnknown()
func (*MsgUpdateClassAdmin) XXX_Marshal ¶
func (m *MsgUpdateClassAdmin) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateClassAdmin) XXX_Merge ¶
func (m *MsgUpdateClassAdmin) XXX_Merge(src proto.Message)
func (*MsgUpdateClassAdmin) XXX_Size ¶
func (m *MsgUpdateClassAdmin) XXX_Size() int
func (*MsgUpdateClassAdmin) XXX_Unmarshal ¶
func (m *MsgUpdateClassAdmin) XXX_Unmarshal(b []byte) error
type MsgUpdateClassAdminResponse ¶
type MsgUpdateClassAdminResponse struct { }
MsgUpdateClassAdminResponse is the MsgUpdateClassAdmin response type.
func (*MsgUpdateClassAdminResponse) Descriptor ¶
func (*MsgUpdateClassAdminResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateClassAdminResponse) Marshal ¶
func (m *MsgUpdateClassAdminResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateClassAdminResponse) MarshalTo ¶
func (m *MsgUpdateClassAdminResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateClassAdminResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateClassAdminResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateClassAdminResponse) ProtoMessage ¶
func (*MsgUpdateClassAdminResponse) ProtoMessage()
func (*MsgUpdateClassAdminResponse) Reset ¶
func (m *MsgUpdateClassAdminResponse) Reset()
func (*MsgUpdateClassAdminResponse) Size ¶
func (m *MsgUpdateClassAdminResponse) Size() (n int)
func (*MsgUpdateClassAdminResponse) String ¶
func (m *MsgUpdateClassAdminResponse) String() string
func (*MsgUpdateClassAdminResponse) Unmarshal ¶
func (m *MsgUpdateClassAdminResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateClassAdminResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateClassAdminResponse) XXX_DiscardUnknown()
func (*MsgUpdateClassAdminResponse) XXX_Marshal ¶
func (m *MsgUpdateClassAdminResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateClassAdminResponse) XXX_Merge ¶
func (m *MsgUpdateClassAdminResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateClassAdminResponse) XXX_Size ¶
func (m *MsgUpdateClassAdminResponse) XXX_Size() int
func (*MsgUpdateClassAdminResponse) XXX_Unmarshal ¶
func (m *MsgUpdateClassAdminResponse) XXX_Unmarshal(b []byte) error
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"` }
MsgUpdateClassIssuers is the Msg/UpdateClassIssuers request type.
func (*MsgUpdateClassIssuers) Descriptor ¶
func (*MsgUpdateClassIssuers) Descriptor() ([]byte, []int)
func (*MsgUpdateClassIssuers) GetAdmin ¶
func (m *MsgUpdateClassIssuers) GetAdmin() string
func (*MsgUpdateClassIssuers) GetClassId ¶
func (m *MsgUpdateClassIssuers) GetClassId() string
func (*MsgUpdateClassIssuers) GetIssuers ¶
func (m *MsgUpdateClassIssuers) GetIssuers() []string
func (MsgUpdateClassIssuers) GetSignBytes ¶
func (m MsgUpdateClassIssuers) GetSignBytes() []byte
func (*MsgUpdateClassIssuers) GetSigners ¶
func (m *MsgUpdateClassIssuers) GetSigners() []sdk.AccAddress
func (*MsgUpdateClassIssuers) Marshal ¶
func (m *MsgUpdateClassIssuers) Marshal() (dAtA []byte, err error)
func (*MsgUpdateClassIssuers) MarshalTo ¶
func (m *MsgUpdateClassIssuers) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateClassIssuers) MarshalToSizedBuffer ¶
func (m *MsgUpdateClassIssuers) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateClassIssuers) ProtoMessage ¶
func (*MsgUpdateClassIssuers) ProtoMessage()
func (*MsgUpdateClassIssuers) Reset ¶
func (m *MsgUpdateClassIssuers) Reset()
func (MsgUpdateClassIssuers) Route ¶
func (m MsgUpdateClassIssuers) Route() string
func (*MsgUpdateClassIssuers) Size ¶
func (m *MsgUpdateClassIssuers) Size() (n int)
func (*MsgUpdateClassIssuers) String ¶
func (m *MsgUpdateClassIssuers) String() string
func (MsgUpdateClassIssuers) Type ¶
func (m MsgUpdateClassIssuers) Type() string
func (*MsgUpdateClassIssuers) Unmarshal ¶
func (m *MsgUpdateClassIssuers) Unmarshal(dAtA []byte) error
func (*MsgUpdateClassIssuers) ValidateBasic ¶
func (m *MsgUpdateClassIssuers) ValidateBasic() error
func (*MsgUpdateClassIssuers) XXX_DiscardUnknown ¶
func (m *MsgUpdateClassIssuers) XXX_DiscardUnknown()
func (*MsgUpdateClassIssuers) XXX_Marshal ¶
func (m *MsgUpdateClassIssuers) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateClassIssuers) XXX_Merge ¶
func (m *MsgUpdateClassIssuers) XXX_Merge(src proto.Message)
func (*MsgUpdateClassIssuers) XXX_Size ¶
func (m *MsgUpdateClassIssuers) XXX_Size() int
func (*MsgUpdateClassIssuers) XXX_Unmarshal ¶
func (m *MsgUpdateClassIssuers) XXX_Unmarshal(b []byte) error
type MsgUpdateClassIssuersResponse ¶
type MsgUpdateClassIssuersResponse struct { }
MsgUpdateClassIssuersResponse is the MsgUpdateClassIssuers response type.
func (*MsgUpdateClassIssuersResponse) Descriptor ¶
func (*MsgUpdateClassIssuersResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateClassIssuersResponse) Marshal ¶
func (m *MsgUpdateClassIssuersResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateClassIssuersResponse) MarshalTo ¶
func (m *MsgUpdateClassIssuersResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateClassIssuersResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateClassIssuersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateClassIssuersResponse) ProtoMessage ¶
func (*MsgUpdateClassIssuersResponse) ProtoMessage()
func (*MsgUpdateClassIssuersResponse) Reset ¶
func (m *MsgUpdateClassIssuersResponse) Reset()
func (*MsgUpdateClassIssuersResponse) Size ¶
func (m *MsgUpdateClassIssuersResponse) Size() (n int)
func (*MsgUpdateClassIssuersResponse) String ¶
func (m *MsgUpdateClassIssuersResponse) String() string
func (*MsgUpdateClassIssuersResponse) Unmarshal ¶
func (m *MsgUpdateClassIssuersResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateClassIssuersResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateClassIssuersResponse) XXX_DiscardUnknown()
func (*MsgUpdateClassIssuersResponse) XXX_Marshal ¶
func (m *MsgUpdateClassIssuersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateClassIssuersResponse) XXX_Merge ¶
func (m *MsgUpdateClassIssuersResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateClassIssuersResponse) XXX_Size ¶
func (m *MsgUpdateClassIssuersResponse) XXX_Size() int
func (*MsgUpdateClassIssuersResponse) XXX_Unmarshal ¶
func (m *MsgUpdateClassIssuersResponse) XXX_Unmarshal(b []byte) error
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"` }
MsgUpdateClassMetadata is the Msg/UpdateClassMetadata request type.
func (*MsgUpdateClassMetadata) Descriptor ¶
func (*MsgUpdateClassMetadata) Descriptor() ([]byte, []int)
func (*MsgUpdateClassMetadata) GetAdmin ¶
func (m *MsgUpdateClassMetadata) GetAdmin() string
func (*MsgUpdateClassMetadata) GetClassId ¶
func (m *MsgUpdateClassMetadata) GetClassId() string
func (*MsgUpdateClassMetadata) GetMetadata ¶
func (m *MsgUpdateClassMetadata) GetMetadata() []byte
func (MsgUpdateClassMetadata) GetSignBytes ¶
func (m MsgUpdateClassMetadata) GetSignBytes() []byte
func (*MsgUpdateClassMetadata) GetSigners ¶
func (m *MsgUpdateClassMetadata) GetSigners() []sdk.AccAddress
func (*MsgUpdateClassMetadata) Marshal ¶
func (m *MsgUpdateClassMetadata) Marshal() (dAtA []byte, err error)
func (*MsgUpdateClassMetadata) MarshalTo ¶
func (m *MsgUpdateClassMetadata) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateClassMetadata) MarshalToSizedBuffer ¶
func (m *MsgUpdateClassMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateClassMetadata) ProtoMessage ¶
func (*MsgUpdateClassMetadata) ProtoMessage()
func (*MsgUpdateClassMetadata) Reset ¶
func (m *MsgUpdateClassMetadata) Reset()
func (MsgUpdateClassMetadata) Route ¶
func (m MsgUpdateClassMetadata) Route() string
func (*MsgUpdateClassMetadata) Size ¶
func (m *MsgUpdateClassMetadata) Size() (n int)
func (*MsgUpdateClassMetadata) String ¶
func (m *MsgUpdateClassMetadata) String() string
func (MsgUpdateClassMetadata) Type ¶
func (m MsgUpdateClassMetadata) Type() string
func (*MsgUpdateClassMetadata) Unmarshal ¶
func (m *MsgUpdateClassMetadata) Unmarshal(dAtA []byte) error
func (*MsgUpdateClassMetadata) ValidateBasic ¶
func (m *MsgUpdateClassMetadata) ValidateBasic() error
func (*MsgUpdateClassMetadata) XXX_DiscardUnknown ¶
func (m *MsgUpdateClassMetadata) XXX_DiscardUnknown()
func (*MsgUpdateClassMetadata) XXX_Marshal ¶
func (m *MsgUpdateClassMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateClassMetadata) XXX_Merge ¶
func (m *MsgUpdateClassMetadata) XXX_Merge(src proto.Message)
func (*MsgUpdateClassMetadata) XXX_Size ¶
func (m *MsgUpdateClassMetadata) XXX_Size() int
func (*MsgUpdateClassMetadata) XXX_Unmarshal ¶
func (m *MsgUpdateClassMetadata) XXX_Unmarshal(b []byte) error
type MsgUpdateClassMetadataResponse ¶
type MsgUpdateClassMetadataResponse struct { }
MsgUpdateClassMetadataResponse is the MsgUpdateClassMetadata response type.
func (*MsgUpdateClassMetadataResponse) Descriptor ¶
func (*MsgUpdateClassMetadataResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateClassMetadataResponse) Marshal ¶
func (m *MsgUpdateClassMetadataResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateClassMetadataResponse) MarshalTo ¶
func (m *MsgUpdateClassMetadataResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateClassMetadataResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateClassMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateClassMetadataResponse) ProtoMessage ¶
func (*MsgUpdateClassMetadataResponse) ProtoMessage()
func (*MsgUpdateClassMetadataResponse) Reset ¶
func (m *MsgUpdateClassMetadataResponse) Reset()
func (*MsgUpdateClassMetadataResponse) Size ¶
func (m *MsgUpdateClassMetadataResponse) Size() (n int)
func (*MsgUpdateClassMetadataResponse) String ¶
func (m *MsgUpdateClassMetadataResponse) String() string
func (*MsgUpdateClassMetadataResponse) Unmarshal ¶
func (m *MsgUpdateClassMetadataResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateClassMetadataResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateClassMetadataResponse) XXX_DiscardUnknown()
func (*MsgUpdateClassMetadataResponse) XXX_Marshal ¶
func (m *MsgUpdateClassMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateClassMetadataResponse) XXX_Merge ¶
func (m *MsgUpdateClassMetadataResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateClassMetadataResponse) XXX_Size ¶
func (m *MsgUpdateClassMetadataResponse) XXX_Size() int
func (*MsgUpdateClassMetadataResponse) XXX_Unmarshal ¶
func (m *MsgUpdateClassMetadataResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // credit_class_fee is the fixed fee charged on creation of a new credit class CreditClassFee github_com_cosmos_cosmos_sdk_types.Coins `` /* 149-byte string literal not displayed */ // 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 github_com_cosmos_cosmos_sdk_types.Coins `` /* 158-byte string literal not displayed */ }
Params defines the updatable global parameters of the ecocredit module for use with the x/params module.
func NewParams ¶
func NewParams(creditClassFee sdk.Coins, allowlist []string, allowlistEnabled bool, creditTypes []*CreditType, basketCreationFee sdk.Coins) Params
NewParams creates a new Params object.
func (*Params) Descriptor ¶
func (*Params) GetAllowedClassCreators ¶
func (*Params) GetAllowlistEnabled ¶
func (*Params) GetBasketCreationFee ¶ added in v1.1.0
func (m *Params) GetBasketCreationFee() github_com_cosmos_cosmos_sdk_types.Coins
func (*Params) GetCreditClassFee ¶
func (m *Params) GetCreditClassFee() github_com_cosmos_cosmos_sdk_types.Coins
func (*Params) GetCreditTypes ¶
func (m *Params) GetCreditTypes() []*CreditType
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
Implements params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
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"` }
QueryBalanceRequest is the Query/Balance request type.
func (*QueryBalanceRequest) Descriptor ¶
func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
func (*QueryBalanceRequest) GetAccount ¶
func (m *QueryBalanceRequest) GetAccount() string
func (*QueryBalanceRequest) GetBatchDenom ¶
func (m *QueryBalanceRequest) GetBatchDenom() string
func (*QueryBalanceRequest) Marshal ¶
func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error)
func (*QueryBalanceRequest) MarshalTo ¶
func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalanceRequest) MarshalToSizedBuffer ¶
func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalanceRequest) ProtoMessage ¶
func (*QueryBalanceRequest) ProtoMessage()
func (*QueryBalanceRequest) Reset ¶
func (m *QueryBalanceRequest) Reset()
func (*QueryBalanceRequest) Size ¶
func (m *QueryBalanceRequest) Size() (n int)
func (*QueryBalanceRequest) String ¶
func (m *QueryBalanceRequest) String() string
func (*QueryBalanceRequest) Unmarshal ¶
func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error
func (*QueryBalanceRequest) XXX_DiscardUnknown ¶
func (m *QueryBalanceRequest) XXX_DiscardUnknown()
func (*QueryBalanceRequest) XXX_Marshal ¶
func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalanceRequest) XXX_Merge ¶
func (m *QueryBalanceRequest) XXX_Merge(src proto.Message)
func (*QueryBalanceRequest) XXX_Size ¶
func (m *QueryBalanceRequest) XXX_Size() int
func (*QueryBalanceRequest) XXX_Unmarshal ¶
func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error
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"` }
QueryBalanceResponse is the Query/Balance response type.
func (*QueryBalanceResponse) Descriptor ¶
func (*QueryBalanceResponse) Descriptor() ([]byte, []int)
func (*QueryBalanceResponse) GetRetiredAmount ¶
func (m *QueryBalanceResponse) GetRetiredAmount() string
func (*QueryBalanceResponse) GetTradableAmount ¶
func (m *QueryBalanceResponse) GetTradableAmount() string
func (*QueryBalanceResponse) Marshal ¶
func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error)
func (*QueryBalanceResponse) MarshalTo ¶
func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalanceResponse) MarshalToSizedBuffer ¶
func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalanceResponse) ProtoMessage ¶
func (*QueryBalanceResponse) ProtoMessage()
func (*QueryBalanceResponse) Reset ¶
func (m *QueryBalanceResponse) Reset()
func (*QueryBalanceResponse) Size ¶
func (m *QueryBalanceResponse) Size() (n int)
func (*QueryBalanceResponse) String ¶
func (m *QueryBalanceResponse) String() string
func (*QueryBalanceResponse) Unmarshal ¶
func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error
func (*QueryBalanceResponse) XXX_DiscardUnknown ¶
func (m *QueryBalanceResponse) XXX_DiscardUnknown()
func (*QueryBalanceResponse) XXX_Marshal ¶
func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalanceResponse) XXX_Merge ¶
func (m *QueryBalanceResponse) XXX_Merge(src proto.Message)
func (*QueryBalanceResponse) XXX_Size ¶
func (m *QueryBalanceResponse) XXX_Size() int
func (*QueryBalanceResponse) XXX_Unmarshal ¶
func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error
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"` }
QueryBatchInfoRequest is the Query/BatchInfo request type.
func (*QueryBatchInfoRequest) Descriptor ¶
func (*QueryBatchInfoRequest) Descriptor() ([]byte, []int)
func (*QueryBatchInfoRequest) GetBatchDenom ¶
func (m *QueryBatchInfoRequest) GetBatchDenom() string
func (*QueryBatchInfoRequest) Marshal ¶
func (m *QueryBatchInfoRequest) Marshal() (dAtA []byte, err error)
func (*QueryBatchInfoRequest) MarshalTo ¶
func (m *QueryBatchInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBatchInfoRequest) MarshalToSizedBuffer ¶
func (m *QueryBatchInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBatchInfoRequest) ProtoMessage ¶
func (*QueryBatchInfoRequest) ProtoMessage()
func (*QueryBatchInfoRequest) Reset ¶
func (m *QueryBatchInfoRequest) Reset()
func (*QueryBatchInfoRequest) Size ¶
func (m *QueryBatchInfoRequest) Size() (n int)
func (*QueryBatchInfoRequest) String ¶
func (m *QueryBatchInfoRequest) String() string
func (*QueryBatchInfoRequest) Unmarshal ¶
func (m *QueryBatchInfoRequest) Unmarshal(dAtA []byte) error
func (*QueryBatchInfoRequest) XXX_DiscardUnknown ¶
func (m *QueryBatchInfoRequest) XXX_DiscardUnknown()
func (*QueryBatchInfoRequest) XXX_Marshal ¶
func (m *QueryBatchInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBatchInfoRequest) XXX_Merge ¶
func (m *QueryBatchInfoRequest) XXX_Merge(src proto.Message)
func (*QueryBatchInfoRequest) XXX_Size ¶
func (m *QueryBatchInfoRequest) XXX_Size() int
func (*QueryBatchInfoRequest) XXX_Unmarshal ¶
func (m *QueryBatchInfoRequest) XXX_Unmarshal(b []byte) error
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"` }
QueryBatchInfoResponse is the Query/BatchInfo response type.
func (*QueryBatchInfoResponse) Descriptor ¶
func (*QueryBatchInfoResponse) Descriptor() ([]byte, []int)
func (*QueryBatchInfoResponse) GetInfo ¶
func (m *QueryBatchInfoResponse) GetInfo() *BatchInfo
func (*QueryBatchInfoResponse) Marshal ¶
func (m *QueryBatchInfoResponse) Marshal() (dAtA []byte, err error)
func (*QueryBatchInfoResponse) MarshalTo ¶
func (m *QueryBatchInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBatchInfoResponse) MarshalToSizedBuffer ¶
func (m *QueryBatchInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBatchInfoResponse) ProtoMessage ¶
func (*QueryBatchInfoResponse) ProtoMessage()
func (*QueryBatchInfoResponse) Reset ¶
func (m *QueryBatchInfoResponse) Reset()
func (*QueryBatchInfoResponse) Size ¶
func (m *QueryBatchInfoResponse) Size() (n int)
func (*QueryBatchInfoResponse) String ¶
func (m *QueryBatchInfoResponse) String() string
func (*QueryBatchInfoResponse) Unmarshal ¶
func (m *QueryBatchInfoResponse) Unmarshal(dAtA []byte) error
func (*QueryBatchInfoResponse) XXX_DiscardUnknown ¶
func (m *QueryBatchInfoResponse) XXX_DiscardUnknown()
func (*QueryBatchInfoResponse) XXX_Marshal ¶
func (m *QueryBatchInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBatchInfoResponse) XXX_Merge ¶
func (m *QueryBatchInfoResponse) XXX_Merge(src proto.Message)
func (*QueryBatchInfoResponse) XXX_Size ¶
func (m *QueryBatchInfoResponse) XXX_Size() int
func (*QueryBatchInfoResponse) XXX_Unmarshal ¶
func (m *QueryBatchInfoResponse) XXX_Unmarshal(b []byte) error
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 *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBatchesRequest is the Query/Batches request type.
func (*QueryBatchesRequest) Descriptor ¶
func (*QueryBatchesRequest) Descriptor() ([]byte, []int)
func (*QueryBatchesRequest) GetClassId ¶
func (m *QueryBatchesRequest) GetClassId() string
func (*QueryBatchesRequest) GetPagination ¶
func (m *QueryBatchesRequest) GetPagination() *query.PageRequest
func (*QueryBatchesRequest) Marshal ¶
func (m *QueryBatchesRequest) Marshal() (dAtA []byte, err error)
func (*QueryBatchesRequest) MarshalTo ¶
func (m *QueryBatchesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBatchesRequest) MarshalToSizedBuffer ¶
func (m *QueryBatchesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBatchesRequest) ProtoMessage ¶
func (*QueryBatchesRequest) ProtoMessage()
func (*QueryBatchesRequest) Reset ¶
func (m *QueryBatchesRequest) Reset()
func (*QueryBatchesRequest) Size ¶
func (m *QueryBatchesRequest) Size() (n int)
func (*QueryBatchesRequest) String ¶
func (m *QueryBatchesRequest) String() string
func (*QueryBatchesRequest) Unmarshal ¶
func (m *QueryBatchesRequest) Unmarshal(dAtA []byte) error
func (*QueryBatchesRequest) XXX_DiscardUnknown ¶
func (m *QueryBatchesRequest) XXX_DiscardUnknown()
func (*QueryBatchesRequest) XXX_Marshal ¶
func (m *QueryBatchesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBatchesRequest) XXX_Merge ¶
func (m *QueryBatchesRequest) XXX_Merge(src proto.Message)
func (*QueryBatchesRequest) XXX_Size ¶
func (m *QueryBatchesRequest) XXX_Size() int
func (*QueryBatchesRequest) XXX_Unmarshal ¶
func (m *QueryBatchesRequest) XXX_Unmarshal(b []byte) error
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 *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBatchesResponse is the Query/Batches response type.
func (*QueryBatchesResponse) Descriptor ¶
func (*QueryBatchesResponse) Descriptor() ([]byte, []int)
func (*QueryBatchesResponse) GetBatches ¶
func (m *QueryBatchesResponse) GetBatches() []*BatchInfo
func (*QueryBatchesResponse) GetPagination ¶
func (m *QueryBatchesResponse) GetPagination() *query.PageResponse
func (*QueryBatchesResponse) Marshal ¶
func (m *QueryBatchesResponse) Marshal() (dAtA []byte, err error)
func (*QueryBatchesResponse) MarshalTo ¶
func (m *QueryBatchesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBatchesResponse) MarshalToSizedBuffer ¶
func (m *QueryBatchesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBatchesResponse) ProtoMessage ¶
func (*QueryBatchesResponse) ProtoMessage()
func (*QueryBatchesResponse) Reset ¶
func (m *QueryBatchesResponse) Reset()
func (*QueryBatchesResponse) Size ¶
func (m *QueryBatchesResponse) Size() (n int)
func (*QueryBatchesResponse) String ¶
func (m *QueryBatchesResponse) String() string
func (*QueryBatchesResponse) Unmarshal ¶
func (m *QueryBatchesResponse) Unmarshal(dAtA []byte) error
func (*QueryBatchesResponse) XXX_DiscardUnknown ¶
func (m *QueryBatchesResponse) XXX_DiscardUnknown()
func (*QueryBatchesResponse) XXX_Marshal ¶
func (m *QueryBatchesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBatchesResponse) XXX_Merge ¶
func (m *QueryBatchesResponse) XXX_Merge(src proto.Message)
func (*QueryBatchesResponse) XXX_Size ¶
func (m *QueryBatchesResponse) XXX_Size() int
func (*QueryBatchesResponse) XXX_Unmarshal ¶
func (m *QueryBatchesResponse) XXX_Unmarshal(b []byte) error
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"` }
QueryClassInfoRequest is the Query/ClassInfo request type.
func (*QueryClassInfoRequest) Descriptor ¶
func (*QueryClassInfoRequest) Descriptor() ([]byte, []int)
func (*QueryClassInfoRequest) GetClassId ¶
func (m *QueryClassInfoRequest) GetClassId() string
func (*QueryClassInfoRequest) Marshal ¶
func (m *QueryClassInfoRequest) Marshal() (dAtA []byte, err error)
func (*QueryClassInfoRequest) MarshalTo ¶
func (m *QueryClassInfoRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryClassInfoRequest) MarshalToSizedBuffer ¶
func (m *QueryClassInfoRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClassInfoRequest) ProtoMessage ¶
func (*QueryClassInfoRequest) ProtoMessage()
func (*QueryClassInfoRequest) Reset ¶
func (m *QueryClassInfoRequest) Reset()
func (*QueryClassInfoRequest) Size ¶
func (m *QueryClassInfoRequest) Size() (n int)
func (*QueryClassInfoRequest) String ¶
func (m *QueryClassInfoRequest) String() string
func (*QueryClassInfoRequest) Unmarshal ¶
func (m *QueryClassInfoRequest) Unmarshal(dAtA []byte) error
func (*QueryClassInfoRequest) XXX_DiscardUnknown ¶
func (m *QueryClassInfoRequest) XXX_DiscardUnknown()
func (*QueryClassInfoRequest) XXX_Marshal ¶
func (m *QueryClassInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClassInfoRequest) XXX_Merge ¶
func (m *QueryClassInfoRequest) XXX_Merge(src proto.Message)
func (*QueryClassInfoRequest) XXX_Size ¶
func (m *QueryClassInfoRequest) XXX_Size() int
func (*QueryClassInfoRequest) XXX_Unmarshal ¶
func (m *QueryClassInfoRequest) XXX_Unmarshal(b []byte) error
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"` }
QueryClassInfoResponse is the Query/ClassInfo request type.
func (*QueryClassInfoResponse) Descriptor ¶
func (*QueryClassInfoResponse) Descriptor() ([]byte, []int)
func (*QueryClassInfoResponse) GetInfo ¶
func (m *QueryClassInfoResponse) GetInfo() *ClassInfo
func (*QueryClassInfoResponse) Marshal ¶
func (m *QueryClassInfoResponse) Marshal() (dAtA []byte, err error)
func (*QueryClassInfoResponse) MarshalTo ¶
func (m *QueryClassInfoResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClassInfoResponse) MarshalToSizedBuffer ¶
func (m *QueryClassInfoResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClassInfoResponse) ProtoMessage ¶
func (*QueryClassInfoResponse) ProtoMessage()
func (*QueryClassInfoResponse) Reset ¶
func (m *QueryClassInfoResponse) Reset()
func (*QueryClassInfoResponse) Size ¶
func (m *QueryClassInfoResponse) Size() (n int)
func (*QueryClassInfoResponse) String ¶
func (m *QueryClassInfoResponse) String() string
func (*QueryClassInfoResponse) Unmarshal ¶
func (m *QueryClassInfoResponse) Unmarshal(dAtA []byte) error
func (*QueryClassInfoResponse) XXX_DiscardUnknown ¶
func (m *QueryClassInfoResponse) XXX_DiscardUnknown()
func (*QueryClassInfoResponse) XXX_Marshal ¶
func (m *QueryClassInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClassInfoResponse) XXX_Merge ¶
func (m *QueryClassInfoResponse) XXX_Merge(src proto.Message)
func (*QueryClassInfoResponse) XXX_Size ¶
func (m *QueryClassInfoResponse) XXX_Size() int
func (*QueryClassInfoResponse) XXX_Unmarshal ¶
func (m *QueryClassInfoResponse) XXX_Unmarshal(b []byte) error
type QueryClassesRequest ¶
type QueryClassesRequest struct { // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryClassesRequest is the Query/Classes request type.
func (*QueryClassesRequest) Descriptor ¶
func (*QueryClassesRequest) Descriptor() ([]byte, []int)
func (*QueryClassesRequest) GetPagination ¶
func (m *QueryClassesRequest) GetPagination() *query.PageRequest
func (*QueryClassesRequest) Marshal ¶
func (m *QueryClassesRequest) Marshal() (dAtA []byte, err error)
func (*QueryClassesRequest) MarshalTo ¶
func (m *QueryClassesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryClassesRequest) MarshalToSizedBuffer ¶
func (m *QueryClassesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClassesRequest) ProtoMessage ¶
func (*QueryClassesRequest) ProtoMessage()
func (*QueryClassesRequest) Reset ¶
func (m *QueryClassesRequest) Reset()
func (*QueryClassesRequest) Size ¶
func (m *QueryClassesRequest) Size() (n int)
func (*QueryClassesRequest) String ¶
func (m *QueryClassesRequest) String() string
func (*QueryClassesRequest) Unmarshal ¶
func (m *QueryClassesRequest) Unmarshal(dAtA []byte) error
func (*QueryClassesRequest) XXX_DiscardUnknown ¶
func (m *QueryClassesRequest) XXX_DiscardUnknown()
func (*QueryClassesRequest) XXX_Marshal ¶
func (m *QueryClassesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClassesRequest) XXX_Merge ¶
func (m *QueryClassesRequest) XXX_Merge(src proto.Message)
func (*QueryClassesRequest) XXX_Size ¶
func (m *QueryClassesRequest) XXX_Size() int
func (*QueryClassesRequest) XXX_Unmarshal ¶
func (m *QueryClassesRequest) XXX_Unmarshal(b []byte) error
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 *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryClassesResponse is the Query/Classes response type.
func (*QueryClassesResponse) Descriptor ¶
func (*QueryClassesResponse) Descriptor() ([]byte, []int)
func (*QueryClassesResponse) GetClasses ¶
func (m *QueryClassesResponse) GetClasses() []*ClassInfo
func (*QueryClassesResponse) GetPagination ¶
func (m *QueryClassesResponse) GetPagination() *query.PageResponse
func (*QueryClassesResponse) Marshal ¶
func (m *QueryClassesResponse) Marshal() (dAtA []byte, err error)
func (*QueryClassesResponse) MarshalTo ¶
func (m *QueryClassesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryClassesResponse) MarshalToSizedBuffer ¶
func (m *QueryClassesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryClassesResponse) ProtoMessage ¶
func (*QueryClassesResponse) ProtoMessage()
func (*QueryClassesResponse) Reset ¶
func (m *QueryClassesResponse) Reset()
func (*QueryClassesResponse) Size ¶
func (m *QueryClassesResponse) Size() (n int)
func (*QueryClassesResponse) String ¶
func (m *QueryClassesResponse) String() string
func (*QueryClassesResponse) Unmarshal ¶
func (m *QueryClassesResponse) Unmarshal(dAtA []byte) error
func (*QueryClassesResponse) XXX_DiscardUnknown ¶
func (m *QueryClassesResponse) XXX_DiscardUnknown()
func (*QueryClassesResponse) XXX_Marshal ¶
func (m *QueryClassesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryClassesResponse) XXX_Merge ¶
func (m *QueryClassesResponse) XXX_Merge(src proto.Message)
func (*QueryClassesResponse) XXX_Size ¶
func (m *QueryClassesResponse) XXX_Size() int
func (*QueryClassesResponse) XXX_Unmarshal ¶
func (m *QueryClassesResponse) XXX_Unmarshal(b []byte) error
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://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewQueryClient ¶
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryCreditTypesRequest ¶
type QueryCreditTypesRequest struct { }
QueryCreditTypesRequest is the Query/Credit_Types request type
func (*QueryCreditTypesRequest) Descriptor ¶
func (*QueryCreditTypesRequest) Descriptor() ([]byte, []int)
func (*QueryCreditTypesRequest) Marshal ¶
func (m *QueryCreditTypesRequest) Marshal() (dAtA []byte, err error)
func (*QueryCreditTypesRequest) MarshalTo ¶
func (m *QueryCreditTypesRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCreditTypesRequest) MarshalToSizedBuffer ¶
func (m *QueryCreditTypesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCreditTypesRequest) ProtoMessage ¶
func (*QueryCreditTypesRequest) ProtoMessage()
func (*QueryCreditTypesRequest) Reset ¶
func (m *QueryCreditTypesRequest) Reset()
func (*QueryCreditTypesRequest) Size ¶
func (m *QueryCreditTypesRequest) Size() (n int)
func (*QueryCreditTypesRequest) String ¶
func (m *QueryCreditTypesRequest) String() string
func (*QueryCreditTypesRequest) Unmarshal ¶
func (m *QueryCreditTypesRequest) Unmarshal(dAtA []byte) error
func (*QueryCreditTypesRequest) XXX_DiscardUnknown ¶
func (m *QueryCreditTypesRequest) XXX_DiscardUnknown()
func (*QueryCreditTypesRequest) XXX_Marshal ¶
func (m *QueryCreditTypesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCreditTypesRequest) XXX_Merge ¶
func (m *QueryCreditTypesRequest) XXX_Merge(src proto.Message)
func (*QueryCreditTypesRequest) XXX_Size ¶
func (m *QueryCreditTypesRequest) XXX_Size() int
func (*QueryCreditTypesRequest) XXX_Unmarshal ¶
func (m *QueryCreditTypesRequest) XXX_Unmarshal(b []byte) error
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"` }
QueryCreditTypesRequest is the Query/Credit_Types response type
func (*QueryCreditTypesResponse) Descriptor ¶
func (*QueryCreditTypesResponse) Descriptor() ([]byte, []int)
func (*QueryCreditTypesResponse) GetCreditTypes ¶
func (m *QueryCreditTypesResponse) GetCreditTypes() []*CreditType
func (*QueryCreditTypesResponse) Marshal ¶
func (m *QueryCreditTypesResponse) Marshal() (dAtA []byte, err error)
func (*QueryCreditTypesResponse) MarshalTo ¶
func (m *QueryCreditTypesResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCreditTypesResponse) MarshalToSizedBuffer ¶
func (m *QueryCreditTypesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCreditTypesResponse) ProtoMessage ¶
func (*QueryCreditTypesResponse) ProtoMessage()
func (*QueryCreditTypesResponse) Reset ¶
func (m *QueryCreditTypesResponse) Reset()
func (*QueryCreditTypesResponse) Size ¶
func (m *QueryCreditTypesResponse) Size() (n int)
func (*QueryCreditTypesResponse) String ¶
func (m *QueryCreditTypesResponse) String() string
func (*QueryCreditTypesResponse) Unmarshal ¶
func (m *QueryCreditTypesResponse) Unmarshal(dAtA []byte) error
func (*QueryCreditTypesResponse) XXX_DiscardUnknown ¶
func (m *QueryCreditTypesResponse) XXX_DiscardUnknown()
func (*QueryCreditTypesResponse) XXX_Marshal ¶
func (m *QueryCreditTypesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCreditTypesResponse) XXX_Merge ¶
func (m *QueryCreditTypesResponse) XXX_Merge(src proto.Message)
func (*QueryCreditTypesResponse) XXX_Size ¶
func (m *QueryCreditTypesResponse) XXX_Size() int
func (*QueryCreditTypesResponse) XXX_Unmarshal ¶
func (m *QueryCreditTypesResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is the Query/Params request type.
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
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"` }
QueryParamsResponse is the Query/Params response type.
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() *Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
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) }
QueryServer is the server API for Query service.
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"` }
QuerySupplyRequest is the Query/Supply request type.
func (*QuerySupplyRequest) Descriptor ¶
func (*QuerySupplyRequest) Descriptor() ([]byte, []int)
func (*QuerySupplyRequest) GetBatchDenom ¶
func (m *QuerySupplyRequest) GetBatchDenom() string
func (*QuerySupplyRequest) Marshal ¶
func (m *QuerySupplyRequest) Marshal() (dAtA []byte, err error)
func (*QuerySupplyRequest) MarshalTo ¶
func (m *QuerySupplyRequest) MarshalTo(dAtA []byte) (int, error)
func (*QuerySupplyRequest) MarshalToSizedBuffer ¶
func (m *QuerySupplyRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySupplyRequest) ProtoMessage ¶
func (*QuerySupplyRequest) ProtoMessage()
func (*QuerySupplyRequest) Reset ¶
func (m *QuerySupplyRequest) Reset()
func (*QuerySupplyRequest) Size ¶
func (m *QuerySupplyRequest) Size() (n int)
func (*QuerySupplyRequest) String ¶
func (m *QuerySupplyRequest) String() string
func (*QuerySupplyRequest) Unmarshal ¶
func (m *QuerySupplyRequest) Unmarshal(dAtA []byte) error
func (*QuerySupplyRequest) XXX_DiscardUnknown ¶
func (m *QuerySupplyRequest) XXX_DiscardUnknown()
func (*QuerySupplyRequest) XXX_Marshal ¶
func (m *QuerySupplyRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySupplyRequest) XXX_Merge ¶
func (m *QuerySupplyRequest) XXX_Merge(src proto.Message)
func (*QuerySupplyRequest) XXX_Size ¶
func (m *QuerySupplyRequest) XXX_Size() int
func (*QuerySupplyRequest) XXX_Unmarshal ¶
func (m *QuerySupplyRequest) XXX_Unmarshal(b []byte) error
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"` }
QuerySupplyResponse is the Query/Supply response type.
func (*QuerySupplyResponse) Descriptor ¶
func (*QuerySupplyResponse) Descriptor() ([]byte, []int)
func (*QuerySupplyResponse) GetRetiredSupply ¶
func (m *QuerySupplyResponse) GetRetiredSupply() string
func (*QuerySupplyResponse) GetTradableSupply ¶
func (m *QuerySupplyResponse) GetTradableSupply() string
func (*QuerySupplyResponse) Marshal ¶
func (m *QuerySupplyResponse) Marshal() (dAtA []byte, err error)
func (*QuerySupplyResponse) MarshalTo ¶
func (m *QuerySupplyResponse) MarshalTo(dAtA []byte) (int, error)
func (*QuerySupplyResponse) MarshalToSizedBuffer ¶
func (m *QuerySupplyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QuerySupplyResponse) ProtoMessage ¶
func (*QuerySupplyResponse) ProtoMessage()
func (*QuerySupplyResponse) Reset ¶
func (m *QuerySupplyResponse) Reset()
func (*QuerySupplyResponse) Size ¶
func (m *QuerySupplyResponse) Size() (n int)
func (*QuerySupplyResponse) String ¶
func (m *QuerySupplyResponse) String() string
func (*QuerySupplyResponse) Unmarshal ¶
func (m *QuerySupplyResponse) Unmarshal(dAtA []byte) error
func (*QuerySupplyResponse) XXX_DiscardUnknown ¶
func (m *QuerySupplyResponse) XXX_DiscardUnknown()
func (*QuerySupplyResponse) XXX_Marshal ¶
func (m *QuerySupplyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QuerySupplyResponse) XXX_Merge ¶
func (m *QuerySupplyResponse) XXX_Merge(src proto.Message)
func (*QuerySupplyResponse) XXX_Size ¶
func (m *QuerySupplyResponse) XXX_Size() int
func (*QuerySupplyResponse) XXX_Unmarshal ¶
func (m *QuerySupplyResponse) XXX_Unmarshal(b []byte) error
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"` }
Supply represents a tradable or retired supply of a credit batch.
func (*Supply) Descriptor ¶
func (*Supply) GetBatchDenom ¶
func (*Supply) GetRetiredSupply ¶
func (*Supply) GetTradableSupply ¶
func (*Supply) MarshalToSizedBuffer ¶
func (*Supply) ProtoMessage ¶
func (*Supply) ProtoMessage()
func (*Supply) XXX_DiscardUnknown ¶
func (m *Supply) XXX_DiscardUnknown()
func (*Supply) XXX_Marshal ¶
func (*Supply) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) Cancel ¶
func (*UnimplementedMsgServer) Cancel(ctx context.Context, req *MsgCancel) (*MsgCancelResponse, error)
func (*UnimplementedMsgServer) CreateBatch ¶
func (*UnimplementedMsgServer) CreateBatch(ctx context.Context, req *MsgCreateBatch) (*MsgCreateBatchResponse, error)
func (*UnimplementedMsgServer) CreateClass ¶
func (*UnimplementedMsgServer) CreateClass(ctx context.Context, req *MsgCreateClass) (*MsgCreateClassResponse, error)
func (*UnimplementedMsgServer) Retire ¶
func (*UnimplementedMsgServer) Retire(ctx context.Context, req *MsgRetire) (*MsgRetireResponse, error)
func (*UnimplementedMsgServer) Send ¶
func (*UnimplementedMsgServer) Send(ctx context.Context, req *MsgSend) (*MsgSendResponse, error)
func (*UnimplementedMsgServer) UpdateClassAdmin ¶
func (*UnimplementedMsgServer) UpdateClassAdmin(ctx context.Context, req *MsgUpdateClassAdmin) (*MsgUpdateClassAdminResponse, error)
func (*UnimplementedMsgServer) UpdateClassIssuers ¶
func (*UnimplementedMsgServer) UpdateClassIssuers(ctx context.Context, req *MsgUpdateClassIssuers) (*MsgUpdateClassIssuersResponse, error)
func (*UnimplementedMsgServer) UpdateClassMetadata ¶
func (*UnimplementedMsgServer) UpdateClassMetadata(ctx context.Context, req *MsgUpdateClassMetadata) (*MsgUpdateClassMetadataResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Balance ¶
func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error)
func (*UnimplementedQueryServer) BatchInfo ¶
func (*UnimplementedQueryServer) BatchInfo(ctx context.Context, req *QueryBatchInfoRequest) (*QueryBatchInfoResponse, error)
func (*UnimplementedQueryServer) Batches ¶
func (*UnimplementedQueryServer) Batches(ctx context.Context, req *QueryBatchesRequest) (*QueryBatchesResponse, error)
func (*UnimplementedQueryServer) ClassInfo ¶
func (*UnimplementedQueryServer) ClassInfo(ctx context.Context, req *QueryClassInfoRequest) (*QueryClassInfoResponse, error)
func (*UnimplementedQueryServer) Classes ¶
func (*UnimplementedQueryServer) Classes(ctx context.Context, req *QueryClassesRequest) (*QueryClassesResponse, error)
func (*UnimplementedQueryServer) CreditTypes ¶
func (*UnimplementedQueryServer) CreditTypes(ctx context.Context, req *QueryCreditTypesRequest) (*QueryCreditTypesResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Supply ¶
func (*UnimplementedQueryServer) Supply(ctx context.Context, req *QuerySupplyRequest) (*QuerySupplyResponse, error)
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
Package basket is a reverse proxy.
|
Package basket is a reverse proxy. |
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
basket/mocks
Package mocks is a generated GoMock package.
|
Package mocks is a generated GoMock package. |
DONTCOVER
|
DONTCOVER |