ecocredit

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: Apache-2.0 Imports: 34 Imported by: 0

Documentation

Overview

Package ecocredit is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the module name constant used in many places
	ModuleName = "ecocredit"

	DefaultParamspace = ModuleName
)
View Source
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

View Source
const (
	PRECISION uint32 = 6
)

TODO: remove after we open governance changes for precision

Variables

View Source
var (
	ReClassID = `[A-Z]{1,3}[0-9]{2,}`

	ReBatchDenom = fmt.Sprintf(`%s-[0-9]{8}-[0-9]{8}-[0-9]{3,}`, ReClassID)
)
View Source
var (
	ErrParseFailure      = sdkerrors.Register(ModuleName, 2, "parse error")
	ErrInsufficientFunds = sdkerrors.Register(ModuleName, 3, "insufficient credit balance")
	ErrMaxLimit          = sdkerrors.Register(ModuleName, 4, "limit exceeded")
	ErrInvalidSellOrder  = sdkerrors.Register(ModuleName, 5, "invalid sell order")
)
View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// This is a value of 20 REGEN
	DefaultCreditClassFeeTokens = sdk.NewInt(2e7)
	KeyCreditClassFee           = []byte("CreditClassFee")
	KeyAllowedClassCreators     = []byte("AllowedClassCreators")
	KeyAllowlistEnabled         = []byte("AllowlistEnabled")
	KeyCreditTypes              = []byte("CreditTypes")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

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 NormalizeCreditTypeName

func NormalizeCreditTypeName(name string) string

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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 ValidateClassID

func ValidateClassID(classId string) error

Validate a class ID conforms to the format described in FormatClassID. The return is nil if the ID is valid.

func ValidateDenom

func ValidateDenom(denom string) error

Validate a batch denomination conforms to the format described in FormatDenom. The return is nil if the denom is valid.

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 AskDenom

type AskDenom struct {
	// denom is the denom to allow (ex. ibc/GLKHDSG423SGS)
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// display_denom is the denom to display to the user and is informational
	DisplayDenom string `protobuf:"bytes,2,opt,name=display_denom,json=displayDenom,proto3" json:"display_denom,omitempty"`
	// exponent is the exponent that relates the denom to the display_denom and is
	// informational
	Exponent uint32 `protobuf:"varint,3,opt,name=exponent,proto3" json:"exponent,omitempty"`
}

AskDenom represents the information for an ask denom.

func (*AskDenom) Descriptor

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

func (*AskDenom) GetDenom

func (m *AskDenom) GetDenom() string

func (*AskDenom) GetDisplayDenom

func (m *AskDenom) GetDisplayDenom() string

func (*AskDenom) GetExponent

func (m *AskDenom) GetExponent() uint32

func (*AskDenom) Marshal

func (m *AskDenom) Marshal() (dAtA []byte, err error)

func (*AskDenom) MarshalTo

func (m *AskDenom) MarshalTo(dAtA []byte) (int, error)

func (*AskDenom) MarshalToSizedBuffer

func (m *AskDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AskDenom) PrimaryKeyFields

func (m *AskDenom) PrimaryKeyFields() []interface{}

PrimaryKeyFields returns the fields of the object that will make up the primary key for AskDenom.

func (*AskDenom) ProtoMessage

func (*AskDenom) ProtoMessage()

func (*AskDenom) Reset

func (m *AskDenom) Reset()

func (*AskDenom) Size

func (m *AskDenom) Size() (n int)

func (*AskDenom) String

func (m *AskDenom) String() string

func (*AskDenom) Unmarshal

func (m *AskDenom) Unmarshal(dAtA []byte) error

func (*AskDenom) XXX_DiscardUnknown

func (m *AskDenom) XXX_DiscardUnknown()

func (*AskDenom) XXX_Marshal

func (m *AskDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AskDenom) XXX_Merge

func (m *AskDenom) XXX_Merge(src proto.Message)

func (*AskDenom) XXX_Size

func (m *AskDenom) XXX_Size() int

func (*AskDenom) XXX_Unmarshal

func (m *AskDenom) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Balance) GetAddress

func (m *Balance) GetAddress() string

func (*Balance) GetBatchDenom

func (m *Balance) GetBatchDenom() string

func (*Balance) GetRetiredBalance

func (m *Balance) GetRetiredBalance() string

func (*Balance) GetTradableBalance

func (m *Balance) GetTradableBalance() string

func (*Balance) Marshal

func (m *Balance) Marshal() (dAtA []byte, err error)

func (*Balance) MarshalTo

func (m *Balance) MarshalTo(dAtA []byte) (int, error)

func (*Balance) MarshalToSizedBuffer

func (m *Balance) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) Reset

func (m *Balance) Reset()

func (*Balance) Size

func (m *Balance) Size() (n int)

func (*Balance) String

func (m *Balance) String() string

func (*Balance) Unmarshal

func (m *Balance) Unmarshal(dAtA []byte) error

func (*Balance) XXX_DiscardUnknown

func (m *Balance) XXX_DiscardUnknown()

func (*Balance) XXX_Marshal

func (m *Balance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Balance) XXX_Merge

func (m *Balance) XXX_Merge(src proto.Message)

func (*Balance) XXX_Size

func (m *Balance) XXX_Size() int

func (*Balance) XXX_Unmarshal

func (m *Balance) XXX_Unmarshal(b []byte) error

type BankKeeper

type BankKeeper interface {
	BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
}

BankKeeper defines the expected interface needed to burn and send coins and to retrieve account balances.

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) Descriptor() ([]byte, []int)

func (*BatchInfo) GetAmountCancelled

func (m *BatchInfo) GetAmountCancelled() string

func (*BatchInfo) GetBatchDenom

func (m *BatchInfo) GetBatchDenom() string

func (*BatchInfo) GetClassId

func (m *BatchInfo) GetClassId() string

func (*BatchInfo) GetEndDate

func (m *BatchInfo) GetEndDate() *time.Time

func (*BatchInfo) GetIssuer

func (m *BatchInfo) GetIssuer() string

func (*BatchInfo) GetMetadata

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

func (*BatchInfo) GetProjectLocation

func (m *BatchInfo) GetProjectLocation() string

func (*BatchInfo) GetStartDate

func (m *BatchInfo) GetStartDate() *time.Time

func (*BatchInfo) GetTotalAmount

func (m *BatchInfo) GetTotalAmount() string

func (*BatchInfo) Marshal

func (m *BatchInfo) Marshal() (dAtA []byte, err error)

func (*BatchInfo) MarshalTo

func (m *BatchInfo) MarshalTo(dAtA []byte) (int, error)

func (*BatchInfo) MarshalToSizedBuffer

func (m *BatchInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

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

func (m *BatchInfo) Reset()

func (*BatchInfo) Size

func (m *BatchInfo) Size() (n int)

func (*BatchInfo) String

func (m *BatchInfo) String() string

func (*BatchInfo) Unmarshal

func (m *BatchInfo) Unmarshal(dAtA []byte) error

func (*BatchInfo) XXX_DiscardUnknown

func (m *BatchInfo) XXX_DiscardUnknown()

func (*BatchInfo) XXX_Marshal

func (m *BatchInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BatchInfo) XXX_Merge

func (m *BatchInfo) XXX_Merge(src proto.Message)

func (*BatchInfo) XXX_Size

func (m *BatchInfo) XXX_Size() int

func (*BatchInfo) XXX_Unmarshal

func (m *BatchInfo) XXX_Unmarshal(b []byte) error

type BuyOrder

type BuyOrder struct {
	// buy_order_id is the unique ID of buy order.
	BuyOrderId uint64 `protobuf:"varint,1,opt,name=buy_order_id,json=buyOrderId,proto3" json:"buy_order_id,omitempty"`
	// selection is the buy order selection.
	Selection *BuyOrder_Selection `protobuf:"bytes,2,opt,name=selection,proto3" json:"selection,omitempty"`
	// quantity is the quantity of credits to buy. If the quantity of credits
	// available is less than this amount the order will be partially filled
	// unless disable_partial_fill is true.
	Quantity string `protobuf:"bytes,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// bid price is the bid price for this buy order. A credit unit will be
	// settled at a purchase price that is no more than the bid price. The
	// buy order will fail if the buyer does not have enough funds available
	// to complete the purchase.
	BidPrice *types1.Coin `protobuf:"bytes,4,opt,name=bid_price,json=bidPrice,proto3" json:"bid_price,omitempty"`
	// disable_auto_retire allows auto-retirement to be disabled. If it is set to true
	// the credits will not auto-retire and can be resold assuming that the
	// corresponding sell order has auto-retirement disabled. If the sell order
	// hasn't disabled auto-retirement and the buy order tries to disable it,
	// that buy order will fail.
	DisableAutoRetire bool `protobuf:"varint,5,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// disable_partial_fill disables the default behavior of partially filling
	// buy orders if the requested quantity is not available.
	DisablePartialFill bool `protobuf:"varint,6,opt,name=disable_partial_fill,json=disablePartialFill,proto3" json:"disable_partial_fill,omitempty"`
}

BuyOrder represents the information for a buy order.

func (*BuyOrder) Descriptor

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

func (*BuyOrder) GetBidPrice

func (m *BuyOrder) GetBidPrice() *types1.Coin

func (*BuyOrder) GetBuyOrderId

func (m *BuyOrder) GetBuyOrderId() uint64

func (*BuyOrder) GetDisableAutoRetire

func (m *BuyOrder) GetDisableAutoRetire() bool

func (*BuyOrder) GetDisablePartialFill

func (m *BuyOrder) GetDisablePartialFill() bool

func (*BuyOrder) GetQuantity

func (m *BuyOrder) GetQuantity() string

func (*BuyOrder) GetSelection

func (m *BuyOrder) GetSelection() *BuyOrder_Selection

func (*BuyOrder) Marshal

func (m *BuyOrder) Marshal() (dAtA []byte, err error)

func (*BuyOrder) MarshalTo

func (m *BuyOrder) MarshalTo(dAtA []byte) (int, error)

func (*BuyOrder) MarshalToSizedBuffer

func (m *BuyOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BuyOrder) PrimaryKeyFields

func (m *BuyOrder) PrimaryKeyFields() []interface{}

PrimaryKeyFields returns the fields of the object that will make up the primary key for BuyOrder.

func (*BuyOrder) ProtoMessage

func (*BuyOrder) ProtoMessage()

func (*BuyOrder) Reset

func (m *BuyOrder) Reset()

func (*BuyOrder) Size

func (m *BuyOrder) Size() (n int)

func (*BuyOrder) String

func (m *BuyOrder) String() string

func (*BuyOrder) Unmarshal

func (m *BuyOrder) Unmarshal(dAtA []byte) error

func (*BuyOrder) XXX_DiscardUnknown

func (m *BuyOrder) XXX_DiscardUnknown()

func (*BuyOrder) XXX_Marshal

func (m *BuyOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuyOrder) XXX_Merge

func (m *BuyOrder) XXX_Merge(src proto.Message)

func (*BuyOrder) XXX_Size

func (m *BuyOrder) XXX_Size() int

func (*BuyOrder) XXX_Unmarshal

func (m *BuyOrder) XXX_Unmarshal(b []byte) error

type BuyOrder_Selection

type BuyOrder_Selection struct {
	// sum defines the type of selection.
	//
	// Types that are valid to be assigned to Sum:
	//	*BuyOrder_Selection_SellOrderId
	Sum isBuyOrder_Selection_Sum `protobuf_oneof:"sum"`
}

Selection defines a buy order selection.

func (*BuyOrder_Selection) Descriptor

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

func (*BuyOrder_Selection) GetSellOrderId

func (m *BuyOrder_Selection) GetSellOrderId() uint64

func (*BuyOrder_Selection) GetSum

func (m *BuyOrder_Selection) GetSum() isBuyOrder_Selection_Sum

func (*BuyOrder_Selection) Marshal

func (m *BuyOrder_Selection) Marshal() (dAtA []byte, err error)

func (*BuyOrder_Selection) MarshalTo

func (m *BuyOrder_Selection) MarshalTo(dAtA []byte) (int, error)

func (*BuyOrder_Selection) MarshalToSizedBuffer

func (m *BuyOrder_Selection) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BuyOrder_Selection) ProtoMessage

func (*BuyOrder_Selection) ProtoMessage()

func (*BuyOrder_Selection) Reset

func (m *BuyOrder_Selection) Reset()

func (*BuyOrder_Selection) Size

func (m *BuyOrder_Selection) Size() (n int)

func (*BuyOrder_Selection) String

func (m *BuyOrder_Selection) String() string

func (*BuyOrder_Selection) Unmarshal

func (m *BuyOrder_Selection) Unmarshal(dAtA []byte) error

func (*BuyOrder_Selection) XXX_DiscardUnknown

func (m *BuyOrder_Selection) XXX_DiscardUnknown()

func (*BuyOrder_Selection) XXX_Marshal

func (m *BuyOrder_Selection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*BuyOrder_Selection) XXX_Merge

func (m *BuyOrder_Selection) XXX_Merge(src proto.Message)

func (*BuyOrder_Selection) XXX_OneofWrappers

func (*BuyOrder_Selection) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*BuyOrder_Selection) XXX_Size

func (m *BuyOrder_Selection) XXX_Size() int

func (*BuyOrder_Selection) XXX_Unmarshal

func (m *BuyOrder_Selection) XXX_Unmarshal(b []byte) error

type BuyOrder_Selection_SellOrderId

type BuyOrder_Selection_SellOrderId struct {
	SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3,oneof" json:"sell_order_id,omitempty"`
}

func (*BuyOrder_Selection_SellOrderId) MarshalTo

func (m *BuyOrder_Selection_SellOrderId) MarshalTo(dAtA []byte) (int, error)

func (*BuyOrder_Selection_SellOrderId) MarshalToSizedBuffer

func (m *BuyOrder_Selection_SellOrderId) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*BuyOrder_Selection_SellOrderId) Size

func (m *BuyOrder_Selection_SellOrderId) Size() (n int)

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

func (m *ClassInfo) AssertClassIssuer(issuer string) error

AssertClassIssuer makes sure that the issuer is part of issuers of given classID. Returns ErrUnauthorized otherwise.

func (*ClassInfo) Descriptor

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

func (*ClassInfo) GetAdmin

func (m *ClassInfo) GetAdmin() string

func (*ClassInfo) GetClassId

func (m *ClassInfo) GetClassId() string

func (*ClassInfo) GetCreditType

func (m *ClassInfo) GetCreditType() *CreditType

func (*ClassInfo) GetIssuers

func (m *ClassInfo) GetIssuers() []string

func (*ClassInfo) GetMetadata

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

func (*ClassInfo) GetNumBatches

func (m *ClassInfo) GetNumBatches() uint64

func (*ClassInfo) Marshal

func (m *ClassInfo) Marshal() (dAtA []byte, err error)

func (*ClassInfo) MarshalTo

func (m *ClassInfo) MarshalTo(dAtA []byte) (int, error)

func (*ClassInfo) MarshalToSizedBuffer

func (m *ClassInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

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

func (m *ClassInfo) Reset()

func (*ClassInfo) Size

func (m *ClassInfo) Size() (n int)

func (*ClassInfo) String

func (m *ClassInfo) String() string

func (*ClassInfo) Unmarshal

func (m *ClassInfo) Unmarshal(dAtA []byte) error

func (*ClassInfo) XXX_DiscardUnknown

func (m *ClassInfo) XXX_DiscardUnknown()

func (*ClassInfo) XXX_Marshal

func (m *ClassInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*ClassInfo) XXX_Merge

func (m *ClassInfo) XXX_Merge(src proto.Message)

func (*ClassInfo) XXX_Size

func (m *ClassInfo) XXX_Size() int

func (*ClassInfo) XXX_Unmarshal

func (m *ClassInfo) XXX_Unmarshal(b []byte) error

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

func (m *CreditType) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *CreditTypeSeq) MarshalTo(dAtA []byte) (int, 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 EventAllowAskDenom

type EventAllowAskDenom struct {
	// denom is the denom to allow (ex. ibc/GLKHDSG423SGS)
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	// display_denom is the denom to display to the user and is informational
	DisplayDenom string `protobuf:"bytes,2,opt,name=display_denom,json=displayDenom,proto3" json:"display_denom,omitempty"`
	// exponent is the exponent that relates the denom to the display_denom and is
	// informational
	Exponent uint32 `protobuf:"varint,3,opt,name=exponent,proto3" json:"exponent,omitempty"`
}

EventAllowAskDenom is an event emitted when an ask denom is added.

func (*EventAllowAskDenom) Descriptor

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

func (*EventAllowAskDenom) GetDenom

func (m *EventAllowAskDenom) GetDenom() string

func (*EventAllowAskDenom) GetDisplayDenom

func (m *EventAllowAskDenom) GetDisplayDenom() string

func (*EventAllowAskDenom) GetExponent

func (m *EventAllowAskDenom) GetExponent() uint32

func (*EventAllowAskDenom) Marshal

func (m *EventAllowAskDenom) Marshal() (dAtA []byte, err error)

func (*EventAllowAskDenom) MarshalTo

func (m *EventAllowAskDenom) MarshalTo(dAtA []byte) (int, error)

func (*EventAllowAskDenom) MarshalToSizedBuffer

func (m *EventAllowAskDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventAllowAskDenom) ProtoMessage

func (*EventAllowAskDenom) ProtoMessage()

func (*EventAllowAskDenom) Reset

func (m *EventAllowAskDenom) Reset()

func (*EventAllowAskDenom) Size

func (m *EventAllowAskDenom) Size() (n int)

func (*EventAllowAskDenom) String

func (m *EventAllowAskDenom) String() string

func (*EventAllowAskDenom) Unmarshal

func (m *EventAllowAskDenom) Unmarshal(dAtA []byte) error

func (*EventAllowAskDenom) XXX_DiscardUnknown

func (m *EventAllowAskDenom) XXX_DiscardUnknown()

func (*EventAllowAskDenom) XXX_Marshal

func (m *EventAllowAskDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventAllowAskDenom) XXX_Merge

func (m *EventAllowAskDenom) XXX_Merge(src proto.Message)

func (*EventAllowAskDenom) XXX_Size

func (m *EventAllowAskDenom) XXX_Size() int

func (*EventAllowAskDenom) XXX_Unmarshal

func (m *EventAllowAskDenom) XXX_Unmarshal(b []byte) error

type EventBuyOrderCreated

type EventBuyOrderCreated struct {
	// buy_order_id is the unique ID of buy order.
	BuyOrderId uint64 `protobuf:"varint,1,opt,name=buy_order_id,json=buyOrderId,proto3" json:"buy_order_id,omitempty"`
	// sell_order_id is the sell order ID against which the buyer is trying to buy.
	SellOrderId uint64 `protobuf:"varint,2,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"`
	// quantity is the quantity of credits to buy. If the quantity of credits
	// available is less than this amount the order will be partially filled
	// unless disable_partial_fill is true.
	Quantity string `protobuf:"bytes,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// bid price is the bid price for this buy order. A credit unit will be
	// settled at a purchase price that is no more than the bid price. The
	// buy order will fail if the buyer does not have enough funds available
	// to complete the purchase.
	BidPrice *types.Coin `protobuf:"bytes,4,opt,name=bid_price,json=bidPrice,proto3" json:"bid_price,omitempty"`
	// disable_auto_retire allows auto-retirement to be disabled. If it is set to true
	// the credits will not auto-retire and can be resold assuming that the
	// corresponding sell order has auto-retirement disabled. If the sell order
	// hasn't disabled auto-retirement and the buy order tries to disable it,
	// that buy order will fail.
	DisableAutoRetire bool `protobuf:"varint,5,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// disable_partial_fill disables the default behavior of partially filling
	// buy orders if the requested quantity is not available.
	DisablePartialFill bool `protobuf:"varint,6,opt,name=disable_partial_fill,json=disablePartialFill,proto3" json:"disable_partial_fill,omitempty"`
}

EventBuyOrderCreated is an event emitted when a buy order is created.

func (*EventBuyOrderCreated) Descriptor

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

func (*EventBuyOrderCreated) GetBidPrice

func (m *EventBuyOrderCreated) GetBidPrice() *types.Coin

func (*EventBuyOrderCreated) GetBuyOrderId

func (m *EventBuyOrderCreated) GetBuyOrderId() uint64

func (*EventBuyOrderCreated) GetDisableAutoRetire

func (m *EventBuyOrderCreated) GetDisableAutoRetire() bool

func (*EventBuyOrderCreated) GetDisablePartialFill

func (m *EventBuyOrderCreated) GetDisablePartialFill() bool

func (*EventBuyOrderCreated) GetQuantity

func (m *EventBuyOrderCreated) GetQuantity() string

func (*EventBuyOrderCreated) GetSellOrderId

func (m *EventBuyOrderCreated) GetSellOrderId() uint64

func (*EventBuyOrderCreated) Marshal

func (m *EventBuyOrderCreated) Marshal() (dAtA []byte, err error)

func (*EventBuyOrderCreated) MarshalTo

func (m *EventBuyOrderCreated) MarshalTo(dAtA []byte) (int, error)

func (*EventBuyOrderCreated) MarshalToSizedBuffer

func (m *EventBuyOrderCreated) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventBuyOrderCreated) ProtoMessage

func (*EventBuyOrderCreated) ProtoMessage()

func (*EventBuyOrderCreated) Reset

func (m *EventBuyOrderCreated) Reset()

func (*EventBuyOrderCreated) Size

func (m *EventBuyOrderCreated) Size() (n int)

func (*EventBuyOrderCreated) String

func (m *EventBuyOrderCreated) String() string

func (*EventBuyOrderCreated) Unmarshal

func (m *EventBuyOrderCreated) Unmarshal(dAtA []byte) error

func (*EventBuyOrderCreated) XXX_DiscardUnknown

func (m *EventBuyOrderCreated) XXX_DiscardUnknown()

func (*EventBuyOrderCreated) XXX_Marshal

func (m *EventBuyOrderCreated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventBuyOrderCreated) XXX_Merge

func (m *EventBuyOrderCreated) XXX_Merge(src proto.Message)

func (*EventBuyOrderCreated) XXX_Size

func (m *EventBuyOrderCreated) XXX_Size() int

func (*EventBuyOrderCreated) XXX_Unmarshal

func (m *EventBuyOrderCreated) XXX_Unmarshal(b []byte) error

type EventBuyOrderFilled

type EventBuyOrderFilled struct {
	// buy_order_id is the unique ID of the buy order.
	BuyOrderId uint64 `protobuf:"varint,1,opt,name=buy_order_id,json=buyOrderId,proto3" json:"buy_order_id,omitempty"`
	// sell_order_id is the unique ID of the sell order.
	SellOrderId uint64 `protobuf:"varint,2,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"`
	// batch_denom is the credit batch ID of the purchased credits.
	BatchDenom string `protobuf:"bytes,3,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// quantity is the quantity of the purchased credits.
	Quantity string `protobuf:"bytes,4,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// total_price is the total price for the purchased credits.
	TotalPrice *types.Coin `protobuf:"bytes,5,opt,name=total_price,json=totalPrice,proto3" json:"total_price,omitempty"`
}

EventBuyOrderFilled is an event emitted when a buy order is filled.

func (*EventBuyOrderFilled) Descriptor

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

func (*EventBuyOrderFilled) GetBatchDenom

func (m *EventBuyOrderFilled) GetBatchDenom() string

func (*EventBuyOrderFilled) GetBuyOrderId

func (m *EventBuyOrderFilled) GetBuyOrderId() uint64

func (*EventBuyOrderFilled) GetQuantity

func (m *EventBuyOrderFilled) GetQuantity() string

func (*EventBuyOrderFilled) GetSellOrderId

func (m *EventBuyOrderFilled) GetSellOrderId() uint64

func (*EventBuyOrderFilled) GetTotalPrice

func (m *EventBuyOrderFilled) GetTotalPrice() *types.Coin

func (*EventBuyOrderFilled) Marshal

func (m *EventBuyOrderFilled) Marshal() (dAtA []byte, err error)

func (*EventBuyOrderFilled) MarshalTo

func (m *EventBuyOrderFilled) MarshalTo(dAtA []byte) (int, error)

func (*EventBuyOrderFilled) MarshalToSizedBuffer

func (m *EventBuyOrderFilled) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventBuyOrderFilled) ProtoMessage

func (*EventBuyOrderFilled) ProtoMessage()

func (*EventBuyOrderFilled) Reset

func (m *EventBuyOrderFilled) Reset()

func (*EventBuyOrderFilled) Size

func (m *EventBuyOrderFilled) Size() (n int)

func (*EventBuyOrderFilled) String

func (m *EventBuyOrderFilled) String() string

func (*EventBuyOrderFilled) Unmarshal

func (m *EventBuyOrderFilled) Unmarshal(dAtA []byte) error

func (*EventBuyOrderFilled) XXX_DiscardUnknown

func (m *EventBuyOrderFilled) XXX_DiscardUnknown()

func (*EventBuyOrderFilled) XXX_Marshal

func (m *EventBuyOrderFilled) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventBuyOrderFilled) XXX_Merge

func (m *EventBuyOrderFilled) XXX_Merge(src proto.Message)

func (*EventBuyOrderFilled) XXX_Size

func (m *EventBuyOrderFilled) XXX_Size() int

func (*EventBuyOrderFilled) XXX_Unmarshal

func (m *EventBuyOrderFilled) XXX_Unmarshal(b []byte) error

type EventCancel

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

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

func (m *EventCancel) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *EventCreateBatch) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *EventCreateClass) MarshalTo(dAtA []byte) (int, 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.
	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"`
}

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

func (*EventReceive) Descriptor

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

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

func (m *EventReceive) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *EventRetire) MarshalTo(dAtA []byte) (int, 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 EventSell

type EventSell struct {
	// order_id is the unique ID of sell order.
	OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// batch_denom is the credit batch being sold.
	BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// quantity is the quantity of credits being sold.
	Quantity string `protobuf:"bytes,3,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// ask_price is the price the seller is asking for each unit of the
	// batch_denom. Each credit unit of the batch will be sold for at least the
	// ask_price or more.
	AskPrice *types.Coin `protobuf:"bytes,4,opt,name=ask_price,json=askPrice,proto3" json:"ask_price,omitempty"`
	// disable_auto_retire disables auto-retirement of credits which allows a
	// buyer to disable auto-retirement in their buy order enabling them to
	// resell the credits to another buyer.
	DisableAutoRetire bool `protobuf:"varint,5,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
}

EventSell is an event emitted when a sell order is created.

func (*EventSell) Descriptor

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

func (*EventSell) GetAskPrice

func (m *EventSell) GetAskPrice() *types.Coin

func (*EventSell) GetBatchDenom

func (m *EventSell) GetBatchDenom() string

func (*EventSell) GetDisableAutoRetire

func (m *EventSell) GetDisableAutoRetire() bool

func (*EventSell) GetOrderId

func (m *EventSell) GetOrderId() uint64

func (*EventSell) GetQuantity

func (m *EventSell) GetQuantity() string

func (*EventSell) Marshal

func (m *EventSell) Marshal() (dAtA []byte, err error)

func (*EventSell) MarshalTo

func (m *EventSell) MarshalTo(dAtA []byte) (int, error)

func (*EventSell) MarshalToSizedBuffer

func (m *EventSell) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventSell) ProtoMessage

func (*EventSell) ProtoMessage()

func (*EventSell) Reset

func (m *EventSell) Reset()

func (*EventSell) Size

func (m *EventSell) Size() (n int)

func (*EventSell) String

func (m *EventSell) String() string

func (*EventSell) Unmarshal

func (m *EventSell) Unmarshal(dAtA []byte) error

func (*EventSell) XXX_DiscardUnknown

func (m *EventSell) XXX_DiscardUnknown()

func (*EventSell) XXX_Marshal

func (m *EventSell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventSell) XXX_Merge

func (m *EventSell) XXX_Merge(src proto.Message)

func (*EventSell) XXX_Size

func (m *EventSell) XXX_Size() int

func (*EventSell) XXX_Unmarshal

func (m *EventSell) XXX_Unmarshal(b []byte) error

type EventUpdateSellOrder

type EventUpdateSellOrder struct {
	// owner is the owner of the sell orders.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	//  sell_order_id is the ID of an existing sell order.
	SellOrderId uint64 `protobuf:"varint,2,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"`
	// batch_denom is the credit batch being sold.
	BatchDenom string `protobuf:"bytes,3,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// new_quantity is the updated quantity of credits available to sell, if it
	// is set to zero then the order is cancelled.
	NewQuantity string `protobuf:"bytes,4,opt,name=new_quantity,json=newQuantity,proto3" json:"new_quantity,omitempty"`
	// new_ask_price is the new ask price for this sell order
	NewAskPrice *types.Coin `protobuf:"bytes,5,opt,name=new_ask_price,json=newAskPrice,proto3" json:"new_ask_price,omitempty"`
	// disable_auto_retire updates the disable_auto_retire field in the sell order.
	DisableAutoRetire bool `protobuf:"varint,6,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
}

EventUpdateSellOrder is an event emitted when a sell order is updated.

func (*EventUpdateSellOrder) Descriptor

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

func (*EventUpdateSellOrder) GetBatchDenom

func (m *EventUpdateSellOrder) GetBatchDenom() string

func (*EventUpdateSellOrder) GetDisableAutoRetire

func (m *EventUpdateSellOrder) GetDisableAutoRetire() bool

func (*EventUpdateSellOrder) GetNewAskPrice

func (m *EventUpdateSellOrder) GetNewAskPrice() *types.Coin

func (*EventUpdateSellOrder) GetNewQuantity

func (m *EventUpdateSellOrder) GetNewQuantity() string

func (*EventUpdateSellOrder) GetOwner

func (m *EventUpdateSellOrder) GetOwner() string

func (*EventUpdateSellOrder) GetSellOrderId

func (m *EventUpdateSellOrder) GetSellOrderId() uint64

func (*EventUpdateSellOrder) Marshal

func (m *EventUpdateSellOrder) Marshal() (dAtA []byte, err error)

func (*EventUpdateSellOrder) MarshalTo

func (m *EventUpdateSellOrder) MarshalTo(dAtA []byte) (int, error)

func (*EventUpdateSellOrder) MarshalToSizedBuffer

func (m *EventUpdateSellOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*EventUpdateSellOrder) ProtoMessage

func (*EventUpdateSellOrder) ProtoMessage()

func (*EventUpdateSellOrder) Reset

func (m *EventUpdateSellOrder) Reset()

func (*EventUpdateSellOrder) Size

func (m *EventUpdateSellOrder) Size() (n int)

func (*EventUpdateSellOrder) String

func (m *EventUpdateSellOrder) String() string

func (*EventUpdateSellOrder) Unmarshal

func (m *EventUpdateSellOrder) Unmarshal(dAtA []byte) error

func (*EventUpdateSellOrder) XXX_DiscardUnknown

func (m *EventUpdateSellOrder) XXX_DiscardUnknown()

func (*EventUpdateSellOrder) XXX_Marshal

func (m *EventUpdateSellOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*EventUpdateSellOrder) XXX_Merge

func (m *EventUpdateSellOrder) XXX_Merge(src proto.Message)

func (*EventUpdateSellOrder) XXX_Size

func (m *EventUpdateSellOrder) XXX_Size() int

func (*EventUpdateSellOrder) XXX_Unmarshal

func (m *EventUpdateSellOrder) 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) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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 MsgAllowAskDenom

type MsgAllowAskDenom struct {
	// root_address is the address of the governance account which can authorize ask denoms
	RootAddress string `protobuf:"bytes,1,opt,name=root_address,json=rootAddress,proto3" json:"root_address,omitempty"`
	// denom is the denom to allow (ex. ibc/GLKHDSG423SGS)
	Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	// display_denom is the denom to display to the user and is informational
	DisplayDenom string `protobuf:"bytes,3,opt,name=display_denom,json=displayDenom,proto3" json:"display_denom,omitempty"`
	// exponent is the exponent that relates the denom to the display_denom and is
	// informational
	Exponent uint32 `protobuf:"varint,4,opt,name=exponent,proto3" json:"exponent,omitempty"`
}

MsgAllowAskDenom is the Msg/AllowAskDenom request type.

func (*MsgAllowAskDenom) Descriptor

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

func (*MsgAllowAskDenom) GetDenom

func (m *MsgAllowAskDenom) GetDenom() string

func (*MsgAllowAskDenom) GetDisplayDenom

func (m *MsgAllowAskDenom) GetDisplayDenom() string

func (*MsgAllowAskDenom) GetExponent

func (m *MsgAllowAskDenom) GetExponent() uint32

func (*MsgAllowAskDenom) GetRootAddress

func (m *MsgAllowAskDenom) GetRootAddress() string

func (MsgAllowAskDenom) GetSignBytes

func (m MsgAllowAskDenom) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgAllowAskDenom) GetSigners

func (m *MsgAllowAskDenom) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgAllowAskDenom.

func (*MsgAllowAskDenom) Marshal

func (m *MsgAllowAskDenom) Marshal() (dAtA []byte, err error)

func (*MsgAllowAskDenom) MarshalTo

func (m *MsgAllowAskDenom) MarshalTo(dAtA []byte) (int, error)

func (*MsgAllowAskDenom) MarshalToSizedBuffer

func (m *MsgAllowAskDenom) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAllowAskDenom) ProtoMessage

func (*MsgAllowAskDenom) ProtoMessage()

func (*MsgAllowAskDenom) Reset

func (m *MsgAllowAskDenom) Reset()

func (MsgAllowAskDenom) Route

func (m MsgAllowAskDenom) Route() string

Route implements the LegacyMsg interface.

func (*MsgAllowAskDenom) Size

func (m *MsgAllowAskDenom) Size() (n int)

func (*MsgAllowAskDenom) String

func (m *MsgAllowAskDenom) String() string

func (MsgAllowAskDenom) Type

func (m MsgAllowAskDenom) Type() string

Type implements the LegacyMsg interface.

func (*MsgAllowAskDenom) Unmarshal

func (m *MsgAllowAskDenom) Unmarshal(dAtA []byte) error

func (*MsgAllowAskDenom) ValidateBasic

func (m *MsgAllowAskDenom) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgAllowAskDenom) XXX_DiscardUnknown

func (m *MsgAllowAskDenom) XXX_DiscardUnknown()

func (*MsgAllowAskDenom) XXX_Marshal

func (m *MsgAllowAskDenom) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAllowAskDenom) XXX_Merge

func (m *MsgAllowAskDenom) XXX_Merge(src proto.Message)

func (*MsgAllowAskDenom) XXX_Size

func (m *MsgAllowAskDenom) XXX_Size() int

func (*MsgAllowAskDenom) XXX_Unmarshal

func (m *MsgAllowAskDenom) XXX_Unmarshal(b []byte) error

type MsgAllowAskDenomResponse

type MsgAllowAskDenomResponse struct {
}

MsgAllowAskDenomResponse is the Msg/AllowAskDenom response type.

func (*MsgAllowAskDenomResponse) Descriptor

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

func (*MsgAllowAskDenomResponse) Marshal

func (m *MsgAllowAskDenomResponse) Marshal() (dAtA []byte, err error)

func (*MsgAllowAskDenomResponse) MarshalTo

func (m *MsgAllowAskDenomResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgAllowAskDenomResponse) MarshalToSizedBuffer

func (m *MsgAllowAskDenomResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgAllowAskDenomResponse) ProtoMessage

func (*MsgAllowAskDenomResponse) ProtoMessage()

func (*MsgAllowAskDenomResponse) Reset

func (m *MsgAllowAskDenomResponse) Reset()

func (*MsgAllowAskDenomResponse) Size

func (m *MsgAllowAskDenomResponse) Size() (n int)

func (*MsgAllowAskDenomResponse) String

func (m *MsgAllowAskDenomResponse) String() string

func (*MsgAllowAskDenomResponse) Unmarshal

func (m *MsgAllowAskDenomResponse) Unmarshal(dAtA []byte) error

func (*MsgAllowAskDenomResponse) XXX_DiscardUnknown

func (m *MsgAllowAskDenomResponse) XXX_DiscardUnknown()

func (*MsgAllowAskDenomResponse) XXX_Marshal

func (m *MsgAllowAskDenomResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgAllowAskDenomResponse) XXX_Merge

func (m *MsgAllowAskDenomResponse) XXX_Merge(src proto.Message)

func (*MsgAllowAskDenomResponse) XXX_Size

func (m *MsgAllowAskDenomResponse) XXX_Size() int

func (*MsgAllowAskDenomResponse) XXX_Unmarshal

func (m *MsgAllowAskDenomResponse) XXX_Unmarshal(b []byte) error

type MsgBuy

type MsgBuy struct {
	// buyer is the address of the credit buyer.
	Buyer string `protobuf:"bytes,1,opt,name=buyer,proto3" json:"buyer,omitempty"`
	// orders are the new buy orders.
	Orders []*MsgBuy_Order `protobuf:"bytes,2,rep,name=orders,proto3" json:"orders,omitempty"`
}

MsgBuy is the Msg/Buy request type.

func (*MsgBuy) Descriptor

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

func (*MsgBuy) GetBuyer

func (m *MsgBuy) GetBuyer() string

func (*MsgBuy) GetOrders

func (m *MsgBuy) GetOrders() []*MsgBuy_Order

func (MsgBuy) GetSignBytes

func (m MsgBuy) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgBuy) GetSigners

func (m *MsgBuy) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgBuy.

func (*MsgBuy) Marshal

func (m *MsgBuy) Marshal() (dAtA []byte, err error)

func (*MsgBuy) MarshalTo

func (m *MsgBuy) MarshalTo(dAtA []byte) (int, error)

func (*MsgBuy) MarshalToSizedBuffer

func (m *MsgBuy) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBuy) ProtoMessage

func (*MsgBuy) ProtoMessage()

func (*MsgBuy) Reset

func (m *MsgBuy) Reset()

func (MsgBuy) Route

func (m MsgBuy) Route() string

Route implements the LegacyMsg interface.

func (*MsgBuy) Size

func (m *MsgBuy) Size() (n int)

func (*MsgBuy) String

func (m *MsgBuy) String() string

func (MsgBuy) Type

func (m MsgBuy) Type() string

Type implements the LegacyMsg interface.

func (*MsgBuy) Unmarshal

func (m *MsgBuy) Unmarshal(dAtA []byte) error

func (*MsgBuy) ValidateBasic

func (m *MsgBuy) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgBuy) XXX_DiscardUnknown

func (m *MsgBuy) XXX_DiscardUnknown()

func (*MsgBuy) XXX_Marshal

func (m *MsgBuy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBuy) XXX_Merge

func (m *MsgBuy) XXX_Merge(src proto.Message)

func (*MsgBuy) XXX_Size

func (m *MsgBuy) XXX_Size() int

func (*MsgBuy) XXX_Unmarshal

func (m *MsgBuy) XXX_Unmarshal(b []byte) error

type MsgBuyResponse

type MsgBuyResponse struct {
	// buy_order_ids are the buy order IDs of the newly created buy orders. Buy
	// orders may not settle instantaneously, but rather in batches at specified
	// batch epoch times.
	BuyOrderIds []uint64 `protobuf:"varint,1,rep,packed,name=buy_order_ids,json=buyOrderIds,proto3" json:"buy_order_ids,omitempty"`
}

MsgBuyResponse is the Msg/Buy response type.

func (*MsgBuyResponse) Descriptor

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

func (*MsgBuyResponse) GetBuyOrderIds

func (m *MsgBuyResponse) GetBuyOrderIds() []uint64

func (*MsgBuyResponse) Marshal

func (m *MsgBuyResponse) Marshal() (dAtA []byte, err error)

func (*MsgBuyResponse) MarshalTo

func (m *MsgBuyResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgBuyResponse) MarshalToSizedBuffer

func (m *MsgBuyResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBuyResponse) ProtoMessage

func (*MsgBuyResponse) ProtoMessage()

func (*MsgBuyResponse) Reset

func (m *MsgBuyResponse) Reset()

func (*MsgBuyResponse) Size

func (m *MsgBuyResponse) Size() (n int)

func (*MsgBuyResponse) String

func (m *MsgBuyResponse) String() string

func (*MsgBuyResponse) Unmarshal

func (m *MsgBuyResponse) Unmarshal(dAtA []byte) error

func (*MsgBuyResponse) XXX_DiscardUnknown

func (m *MsgBuyResponse) XXX_DiscardUnknown()

func (*MsgBuyResponse) XXX_Marshal

func (m *MsgBuyResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBuyResponse) XXX_Merge

func (m *MsgBuyResponse) XXX_Merge(src proto.Message)

func (*MsgBuyResponse) XXX_Size

func (m *MsgBuyResponse) XXX_Size() int

func (*MsgBuyResponse) XXX_Unmarshal

func (m *MsgBuyResponse) XXX_Unmarshal(b []byte) error

type MsgBuy_Order

type MsgBuy_Order struct {
	// selection is the buy order selection.
	Selection *MsgBuy_Order_Selection `protobuf:"bytes,1,opt,name=selection,proto3" json:"selection,omitempty"`
	// quantity is the quantity of credits to buy. If the quantity of credits
	// available is less than this amount the order will be partially filled
	// unless disable_partial_fill is true.
	Quantity string `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// bid price is the bid price for this buy order. A credit unit will be
	// settled at a purchase price that is no more than the bid price. The
	// buy order will fail if the buyer does not have enough funds available
	// to complete the purchase.
	BidPrice *types1.Coin `protobuf:"bytes,3,opt,name=bid_price,json=bidPrice,proto3" json:"bid_price,omitempty"`
	// disable_auto_retire allows auto-retirement to be disabled. If it is set to true
	// the credits will not auto-retire and can be resold assuming that the
	// corresponding sell order has auto-retirement disabled. If the sell order
	// hasn't disabled auto-retirement and the buy order tries to disable it,
	// that buy order will fail.
	DisableAutoRetire bool `protobuf:"varint,4,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// disable_partial_fill disables the default behavior of partially filling
	// buy orders if the requested quantity is not available.
	DisablePartialFill bool `protobuf:"varint,5,opt,name=disable_partial_fill,json=disablePartialFill,proto3" json:"disable_partial_fill,omitempty"`
}

Order is a buy order.

func (*MsgBuy_Order) Descriptor

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

func (*MsgBuy_Order) GetBidPrice

func (m *MsgBuy_Order) GetBidPrice() *types1.Coin

func (*MsgBuy_Order) GetDisableAutoRetire

func (m *MsgBuy_Order) GetDisableAutoRetire() bool

func (*MsgBuy_Order) GetDisablePartialFill

func (m *MsgBuy_Order) GetDisablePartialFill() bool

func (*MsgBuy_Order) GetQuantity

func (m *MsgBuy_Order) GetQuantity() string

func (*MsgBuy_Order) GetSelection

func (m *MsgBuy_Order) GetSelection() *MsgBuy_Order_Selection

func (*MsgBuy_Order) Marshal

func (m *MsgBuy_Order) Marshal() (dAtA []byte, err error)

func (*MsgBuy_Order) MarshalTo

func (m *MsgBuy_Order) MarshalTo(dAtA []byte) (int, error)

func (*MsgBuy_Order) MarshalToSizedBuffer

func (m *MsgBuy_Order) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBuy_Order) ProtoMessage

func (*MsgBuy_Order) ProtoMessage()

func (*MsgBuy_Order) Reset

func (m *MsgBuy_Order) Reset()

func (*MsgBuy_Order) Size

func (m *MsgBuy_Order) Size() (n int)

func (*MsgBuy_Order) String

func (m *MsgBuy_Order) String() string

func (*MsgBuy_Order) Unmarshal

func (m *MsgBuy_Order) Unmarshal(dAtA []byte) error

func (*MsgBuy_Order) XXX_DiscardUnknown

func (m *MsgBuy_Order) XXX_DiscardUnknown()

func (*MsgBuy_Order) XXX_Marshal

func (m *MsgBuy_Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBuy_Order) XXX_Merge

func (m *MsgBuy_Order) XXX_Merge(src proto.Message)

func (*MsgBuy_Order) XXX_Size

func (m *MsgBuy_Order) XXX_Size() int

func (*MsgBuy_Order) XXX_Unmarshal

func (m *MsgBuy_Order) XXX_Unmarshal(b []byte) error

type MsgBuy_Order_Selection

type MsgBuy_Order_Selection struct {
	// sum defines the type of selection.
	//
	// Types that are valid to be assigned to Sum:
	//	*MsgBuy_Order_Selection_SellOrderId
	Sum isMsgBuy_Order_Selection_Sum `protobuf_oneof:"sum"`
}

Selection defines a buy order selection.

func (*MsgBuy_Order_Selection) Descriptor

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

func (*MsgBuy_Order_Selection) GetSellOrderId

func (m *MsgBuy_Order_Selection) GetSellOrderId() uint64

func (*MsgBuy_Order_Selection) GetSum

func (m *MsgBuy_Order_Selection) GetSum() isMsgBuy_Order_Selection_Sum

func (*MsgBuy_Order_Selection) Marshal

func (m *MsgBuy_Order_Selection) Marshal() (dAtA []byte, err error)

func (*MsgBuy_Order_Selection) MarshalTo

func (m *MsgBuy_Order_Selection) MarshalTo(dAtA []byte) (int, error)

func (*MsgBuy_Order_Selection) MarshalToSizedBuffer

func (m *MsgBuy_Order_Selection) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBuy_Order_Selection) ProtoMessage

func (*MsgBuy_Order_Selection) ProtoMessage()

func (*MsgBuy_Order_Selection) Reset

func (m *MsgBuy_Order_Selection) Reset()

func (*MsgBuy_Order_Selection) Size

func (m *MsgBuy_Order_Selection) Size() (n int)

func (*MsgBuy_Order_Selection) String

func (m *MsgBuy_Order_Selection) String() string

func (*MsgBuy_Order_Selection) Unmarshal

func (m *MsgBuy_Order_Selection) Unmarshal(dAtA []byte) error

func (*MsgBuy_Order_Selection) XXX_DiscardUnknown

func (m *MsgBuy_Order_Selection) XXX_DiscardUnknown()

func (*MsgBuy_Order_Selection) XXX_Marshal

func (m *MsgBuy_Order_Selection) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgBuy_Order_Selection) XXX_Merge

func (m *MsgBuy_Order_Selection) XXX_Merge(src proto.Message)

func (*MsgBuy_Order_Selection) XXX_OneofWrappers

func (*MsgBuy_Order_Selection) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*MsgBuy_Order_Selection) XXX_Size

func (m *MsgBuy_Order_Selection) XXX_Size() int

func (*MsgBuy_Order_Selection) XXX_Unmarshal

func (m *MsgBuy_Order_Selection) XXX_Unmarshal(b []byte) error

type MsgBuy_Order_Selection_SellOrderId

type MsgBuy_Order_Selection_SellOrderId struct {
	SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3,oneof" json:"sell_order_id,omitempty"`
}

func (*MsgBuy_Order_Selection_SellOrderId) MarshalTo

func (m *MsgBuy_Order_Selection_SellOrderId) MarshalTo(dAtA []byte) (int, error)

func (*MsgBuy_Order_Selection_SellOrderId) MarshalToSizedBuffer

func (m *MsgBuy_Order_Selection_SellOrderId) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgBuy_Order_Selection_SellOrderId) Size

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) Descriptor() ([]byte, []int)

func (*MsgCancel) GetCredits

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

func (*MsgCancel) GetHolder

func (m *MsgCancel) GetHolder() string

func (MsgCancel) GetSignBytes

func (m MsgCancel) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgCancel) GetSigners

func (m *MsgCancel) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgCancel.

func (*MsgCancel) Marshal

func (m *MsgCancel) Marshal() (dAtA []byte, err error)

func (*MsgCancel) MarshalTo

func (m *MsgCancel) MarshalTo(dAtA []byte) (int, error)

func (*MsgCancel) MarshalToSizedBuffer

func (m *MsgCancel) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCancel) ProtoMessage

func (*MsgCancel) ProtoMessage()

func (*MsgCancel) Reset

func (m *MsgCancel) Reset()

func (MsgCancel) Route

func (m MsgCancel) Route() string

Route implements the LegacyMsg interface.

func (*MsgCancel) Size

func (m *MsgCancel) Size() (n int)

func (*MsgCancel) String

func (m *MsgCancel) String() string

func (MsgCancel) Type

func (m MsgCancel) Type() string

Type implements the LegacyMsg interface.

func (*MsgCancel) Unmarshal

func (m *MsgCancel) Unmarshal(dAtA []byte) error

func (*MsgCancel) ValidateBasic

func (m *MsgCancel) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgCancel) XXX_DiscardUnknown

func (m *MsgCancel) XXX_DiscardUnknown()

func (*MsgCancel) XXX_Marshal

func (m *MsgCancel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCancel) XXX_Merge

func (m *MsgCancel) XXX_Merge(src proto.Message)

func (*MsgCancel) XXX_Size

func (m *MsgCancel) XXX_Size() int

func (*MsgCancel) XXX_Unmarshal

func (m *MsgCancel) XXX_Unmarshal(b []byte) error

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)
	// Sell creates new sell orders.
	Sell(ctx context.Context, in *MsgSell, opts ...grpc.CallOption) (*MsgSellResponse, error)
	// UpdateSellOrders updates existing sell orders.
	UpdateSellOrders(ctx context.Context, in *MsgUpdateSellOrders, opts ...grpc.CallOption) (*MsgUpdateSellOrdersResponse, error)
	// Buy creates credit buy orders.
	Buy(ctx context.Context, in *MsgBuy, opts ...grpc.CallOption) (*MsgBuyResponse, error)
	// AllowAskDenom is a governance operation which authorizes a new ask denom to be used in sell orders
	AllowAskDenom(ctx context.Context, in *MsgAllowAskDenom, opts ...grpc.CallOption) (*MsgAllowAskDenomResponse, 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 the LegacyMsg interface.

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

func (m *MsgCreateBatch) MarshalTo(dAtA []byte) (int, 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) Route

func (m MsgCreateBatch) Route() string

Route implements the LegacyMsg interface.

func (*MsgCreateBatch) Size

func (m *MsgCreateBatch) Size() (n int)

func (*MsgCreateBatch) String

func (m *MsgCreateBatch) String() string

func (MsgCreateBatch) Type

func (m MsgCreateBatch) Type() string

Type implements the LegacyMsg interface.

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 (*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 the LegacyMsg interface.

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

func (m *MsgCreateClass) MarshalTo(dAtA []byte) (int, 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) Route

func (m MsgCreateClass) Route() string

Route implements the LegacyMsg interface.

func (*MsgCreateClass) Size

func (m *MsgCreateClass) Size() (n int)

func (*MsgCreateClass) String

func (m *MsgCreateClass) String() string

func (MsgCreateClass) Type

func (m MsgCreateClass) Type() string

Type implements the LegacyMsg interface.

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) Descriptor() ([]byte, []int)

func (*MsgRetire) GetCredits

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

func (*MsgRetire) GetHolder

func (m *MsgRetire) GetHolder() string

func (*MsgRetire) GetLocation

func (m *MsgRetire) GetLocation() string

func (MsgRetire) GetSignBytes

func (m MsgRetire) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgRetire) GetSigners

func (m *MsgRetire) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgRetire.

func (*MsgRetire) Marshal

func (m *MsgRetire) Marshal() (dAtA []byte, err error)

func (*MsgRetire) MarshalTo

func (m *MsgRetire) MarshalTo(dAtA []byte) (int, error)

func (*MsgRetire) MarshalToSizedBuffer

func (m *MsgRetire) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgRetire) ProtoMessage

func (*MsgRetire) ProtoMessage()

func (*MsgRetire) Reset

func (m *MsgRetire) Reset()

func (MsgRetire) Route

func (m MsgRetire) Route() string

Route implements the LegacyMsg interface.

func (*MsgRetire) Size

func (m *MsgRetire) Size() (n int)

func (*MsgRetire) String

func (m *MsgRetire) String() string

func (MsgRetire) Type

func (m MsgRetire) Type() string

Type implements the LegacyMsg interface.

func (*MsgRetire) Unmarshal

func (m *MsgRetire) Unmarshal(dAtA []byte) error

func (*MsgRetire) ValidateBasic

func (m *MsgRetire) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgRetire) XXX_DiscardUnknown

func (m *MsgRetire) XXX_DiscardUnknown()

func (*MsgRetire) XXX_Marshal

func (m *MsgRetire) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgRetire) XXX_Merge

func (m *MsgRetire) XXX_Merge(src proto.Message)

func (*MsgRetire) XXX_Size

func (m *MsgRetire) XXX_Size() int

func (*MsgRetire) XXX_Unmarshal

func (m *MsgRetire) XXX_Unmarshal(b []byte) error

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 MsgSell

type MsgSell struct {
	// owner is the address of the owner of the credits being sold.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// orders are the sell orders being created.
	Orders []*MsgSell_Order `protobuf:"bytes,2,rep,name=orders,proto3" json:"orders,omitempty"`
}

MsgSell is the Msg/Sell request type.

func (*MsgSell) Descriptor

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

func (*MsgSell) GetOrders

func (m *MsgSell) GetOrders() []*MsgSell_Order

func (*MsgSell) GetOwner

func (m *MsgSell) GetOwner() string

func (MsgSell) GetSignBytes

func (m MsgSell) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgSell) GetSigners

func (m *MsgSell) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgSell.

func (*MsgSell) Marshal

func (m *MsgSell) Marshal() (dAtA []byte, err error)

func (*MsgSell) MarshalTo

func (m *MsgSell) MarshalTo(dAtA []byte) (int, error)

func (*MsgSell) MarshalToSizedBuffer

func (m *MsgSell) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSell) ProtoMessage

func (*MsgSell) ProtoMessage()

func (*MsgSell) Reset

func (m *MsgSell) Reset()

func (MsgSell) Route

func (m MsgSell) Route() string

Route implements the LegacyMsg interface.

func (*MsgSell) Size

func (m *MsgSell) Size() (n int)

func (*MsgSell) String

func (m *MsgSell) String() string

func (MsgSell) Type

func (m MsgSell) Type() string

Type implements the LegacyMsg interface.

func (*MsgSell) Unmarshal

func (m *MsgSell) Unmarshal(dAtA []byte) error

func (*MsgSell) ValidateBasic

func (m *MsgSell) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgSell) XXX_DiscardUnknown

func (m *MsgSell) XXX_DiscardUnknown()

func (*MsgSell) XXX_Marshal

func (m *MsgSell) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSell) XXX_Merge

func (m *MsgSell) XXX_Merge(src proto.Message)

func (*MsgSell) XXX_Size

func (m *MsgSell) XXX_Size() int

func (*MsgSell) XXX_Unmarshal

func (m *MsgSell) XXX_Unmarshal(b []byte) error

type MsgSellResponse

type MsgSellResponse struct {
	// sell_order_ids are the sell order IDs of the newly created sell orders.
	SellOrderIds []uint64 `protobuf:"varint,1,rep,packed,name=sell_order_ids,json=sellOrderIds,proto3" json:"sell_order_ids,omitempty"`
}

MsgSellResponse is the Msg/Sell response type.

func (*MsgSellResponse) Descriptor

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

func (*MsgSellResponse) GetSellOrderIds

func (m *MsgSellResponse) GetSellOrderIds() []uint64

func (*MsgSellResponse) Marshal

func (m *MsgSellResponse) Marshal() (dAtA []byte, err error)

func (*MsgSellResponse) MarshalTo

func (m *MsgSellResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgSellResponse) MarshalToSizedBuffer

func (m *MsgSellResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSellResponse) ProtoMessage

func (*MsgSellResponse) ProtoMessage()

func (*MsgSellResponse) Reset

func (m *MsgSellResponse) Reset()

func (*MsgSellResponse) Size

func (m *MsgSellResponse) Size() (n int)

func (*MsgSellResponse) String

func (m *MsgSellResponse) String() string

func (*MsgSellResponse) Unmarshal

func (m *MsgSellResponse) Unmarshal(dAtA []byte) error

func (*MsgSellResponse) XXX_DiscardUnknown

func (m *MsgSellResponse) XXX_DiscardUnknown()

func (*MsgSellResponse) XXX_Marshal

func (m *MsgSellResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSellResponse) XXX_Merge

func (m *MsgSellResponse) XXX_Merge(src proto.Message)

func (*MsgSellResponse) XXX_Size

func (m *MsgSellResponse) XXX_Size() int

func (*MsgSellResponse) XXX_Unmarshal

func (m *MsgSellResponse) XXX_Unmarshal(b []byte) error

type MsgSell_Order

type MsgSell_Order struct {
	// batch_denom is the credit batch being sold.
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// quantity is the quantity of credits being sold from this batch. If it is
	// less then the balance of credits the owner has available at the time this
	// sell order is matched, the quantity will be adjusted downwards to the
	// owner's balance. However, if the balance of credits is less than this
	// quantity at the time the sell order is created, the operation will fail.
	Quantity string `protobuf:"bytes,2,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// ask_price is the price the seller is asking for each unit of the
	// batch_denom. Each credit unit of the batch will be sold for at least the
	// ask_price or more.
	AskPrice *types1.Coin `protobuf:"bytes,3,opt,name=ask_price,json=askPrice,proto3" json:"ask_price,omitempty"`
	// disable_auto_retire disables auto-retirement of credits which allows a
	// buyer to disable auto-retirement in their buy order enabling them to
	// resell the credits to another buyer.
	DisableAutoRetire bool `protobuf:"varint,4,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
}

Order is the content of a new sell order.

func (*MsgSell_Order) Descriptor

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

func (*MsgSell_Order) GetAskPrice

func (m *MsgSell_Order) GetAskPrice() *types1.Coin

func (*MsgSell_Order) GetBatchDenom

func (m *MsgSell_Order) GetBatchDenom() string

func (*MsgSell_Order) GetDisableAutoRetire

func (m *MsgSell_Order) GetDisableAutoRetire() bool

func (*MsgSell_Order) GetQuantity

func (m *MsgSell_Order) GetQuantity() string

func (*MsgSell_Order) Marshal

func (m *MsgSell_Order) Marshal() (dAtA []byte, err error)

func (*MsgSell_Order) MarshalTo

func (m *MsgSell_Order) MarshalTo(dAtA []byte) (int, error)

func (*MsgSell_Order) MarshalToSizedBuffer

func (m *MsgSell_Order) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSell_Order) ProtoMessage

func (*MsgSell_Order) ProtoMessage()

func (*MsgSell_Order) Reset

func (m *MsgSell_Order) Reset()

func (*MsgSell_Order) Size

func (m *MsgSell_Order) Size() (n int)

func (*MsgSell_Order) String

func (m *MsgSell_Order) String() string

func (*MsgSell_Order) Unmarshal

func (m *MsgSell_Order) Unmarshal(dAtA []byte) error

func (*MsgSell_Order) XXX_DiscardUnknown

func (m *MsgSell_Order) XXX_DiscardUnknown()

func (*MsgSell_Order) XXX_Marshal

func (m *MsgSell_Order) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSell_Order) XXX_Merge

func (m *MsgSell_Order) XXX_Merge(src proto.Message)

func (*MsgSell_Order) XXX_Size

func (m *MsgSell_Order) XXX_Size() int

func (*MsgSell_Order) XXX_Unmarshal

func (m *MsgSell_Order) 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) Descriptor() ([]byte, []int)

func (*MsgSend) GetCredits

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

func (*MsgSend) GetRecipient

func (m *MsgSend) GetRecipient() string

func (*MsgSend) GetSender

func (m *MsgSend) GetSender() string

func (MsgSend) GetSignBytes

func (m MsgSend) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgSend) GetSigners

func (m *MsgSend) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgSend.

func (*MsgSend) Marshal

func (m *MsgSend) Marshal() (dAtA []byte, err error)

func (*MsgSend) MarshalTo

func (m *MsgSend) MarshalTo(dAtA []byte) (int, error)

func (*MsgSend) MarshalToSizedBuffer

func (m *MsgSend) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgSend) ProtoMessage

func (*MsgSend) ProtoMessage()

func (*MsgSend) Reset

func (m *MsgSend) Reset()

func (MsgSend) Route

func (m MsgSend) Route() string

Route implements the LegacyMsg interface.

func (*MsgSend) Size

func (m *MsgSend) Size() (n int)

func (*MsgSend) String

func (m *MsgSend) String() string

func (MsgSend) Type

func (m MsgSend) Type() string

Type implements the LegacyMsg interface.

func (*MsgSend) Unmarshal

func (m *MsgSend) Unmarshal(dAtA []byte) error

func (*MsgSend) ValidateBasic

func (m *MsgSend) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgSend) XXX_DiscardUnknown

func (m *MsgSend) XXX_DiscardUnknown()

func (*MsgSend) XXX_Marshal

func (m *MsgSend) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgSend) XXX_Merge

func (m *MsgSend) XXX_Merge(src proto.Message)

func (*MsgSend) XXX_Size

func (m *MsgSend) XXX_Size() int

func (*MsgSend) XXX_Unmarshal

func (m *MsgSend) XXX_Unmarshal(b []byte) error

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

func (m *MsgSendResponse) MarshalTo(dAtA []byte) (int, 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)
	// Sell creates new sell orders.
	Sell(context.Context, *MsgSell) (*MsgSellResponse, error)
	// UpdateSellOrders updates existing sell orders.
	UpdateSellOrders(context.Context, *MsgUpdateSellOrders) (*MsgUpdateSellOrdersResponse, error)
	// Buy creates credit buy orders.
	Buy(context.Context, *MsgBuy) (*MsgBuyResponse, error)
	// AllowAskDenom is a governance operation which authorizes a new ask denom to be used in sell orders
	AllowAskDenom(context.Context, *MsgAllowAskDenom) (*MsgAllowAskDenomResponse, 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 (*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 (*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 MsgUpdateSellOrders

type MsgUpdateSellOrders struct {
	// owner is the owner of the sell orders.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// updates are updates to existing sell orders.
	Updates []*MsgUpdateSellOrders_Update `protobuf:"bytes,2,rep,name=updates,proto3" json:"updates,omitempty"`
}

MsgUpdateSellOrders is the Msg/UpdateSellOrders request type.

func (*MsgUpdateSellOrders) Descriptor

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

func (*MsgUpdateSellOrders) GetOwner

func (m *MsgUpdateSellOrders) GetOwner() string

func (MsgUpdateSellOrders) GetSignBytes

func (m MsgUpdateSellOrders) GetSignBytes() []byte

GetSignBytes implements the LegacyMsg interface.

func (*MsgUpdateSellOrders) GetSigners

func (m *MsgUpdateSellOrders) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgUpdateSellOrders.

func (*MsgUpdateSellOrders) GetUpdates

func (*MsgUpdateSellOrders) Marshal

func (m *MsgUpdateSellOrders) Marshal() (dAtA []byte, err error)

func (*MsgUpdateSellOrders) MarshalTo

func (m *MsgUpdateSellOrders) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateSellOrders) MarshalToSizedBuffer

func (m *MsgUpdateSellOrders) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateSellOrders) ProtoMessage

func (*MsgUpdateSellOrders) ProtoMessage()

func (*MsgUpdateSellOrders) Reset

func (m *MsgUpdateSellOrders) Reset()

func (MsgUpdateSellOrders) Route

func (m MsgUpdateSellOrders) Route() string

Route implements the LegacyMsg interface.

func (*MsgUpdateSellOrders) Size

func (m *MsgUpdateSellOrders) Size() (n int)

func (*MsgUpdateSellOrders) String

func (m *MsgUpdateSellOrders) String() string

func (MsgUpdateSellOrders) Type

func (m MsgUpdateSellOrders) Type() string

Type implements the LegacyMsg interface.

func (*MsgUpdateSellOrders) Unmarshal

func (m *MsgUpdateSellOrders) Unmarshal(dAtA []byte) error

func (*MsgUpdateSellOrders) ValidateBasic

func (m *MsgUpdateSellOrders) ValidateBasic() error

ValidateBasic does a sanity check on the provided data.

func (*MsgUpdateSellOrders) XXX_DiscardUnknown

func (m *MsgUpdateSellOrders) XXX_DiscardUnknown()

func (*MsgUpdateSellOrders) XXX_Marshal

func (m *MsgUpdateSellOrders) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateSellOrders) XXX_Merge

func (m *MsgUpdateSellOrders) XXX_Merge(src proto.Message)

func (*MsgUpdateSellOrders) XXX_Size

func (m *MsgUpdateSellOrders) XXX_Size() int

func (*MsgUpdateSellOrders) XXX_Unmarshal

func (m *MsgUpdateSellOrders) XXX_Unmarshal(b []byte) error

type MsgUpdateSellOrdersResponse

type MsgUpdateSellOrdersResponse struct {
}

MsgUpdateSellOrdersResponse is the Msg/UpdateSellOrders response type.

func (*MsgUpdateSellOrdersResponse) Descriptor

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

func (*MsgUpdateSellOrdersResponse) Marshal

func (m *MsgUpdateSellOrdersResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateSellOrdersResponse) MarshalTo

func (m *MsgUpdateSellOrdersResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateSellOrdersResponse) MarshalToSizedBuffer

func (m *MsgUpdateSellOrdersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateSellOrdersResponse) ProtoMessage

func (*MsgUpdateSellOrdersResponse) ProtoMessage()

func (*MsgUpdateSellOrdersResponse) Reset

func (m *MsgUpdateSellOrdersResponse) Reset()

func (*MsgUpdateSellOrdersResponse) Size

func (m *MsgUpdateSellOrdersResponse) Size() (n int)

func (*MsgUpdateSellOrdersResponse) String

func (m *MsgUpdateSellOrdersResponse) String() string

func (*MsgUpdateSellOrdersResponse) Unmarshal

func (m *MsgUpdateSellOrdersResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateSellOrdersResponse) XXX_DiscardUnknown

func (m *MsgUpdateSellOrdersResponse) XXX_DiscardUnknown()

func (*MsgUpdateSellOrdersResponse) XXX_Marshal

func (m *MsgUpdateSellOrdersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateSellOrdersResponse) XXX_Merge

func (m *MsgUpdateSellOrdersResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateSellOrdersResponse) XXX_Size

func (m *MsgUpdateSellOrdersResponse) XXX_Size() int

func (*MsgUpdateSellOrdersResponse) XXX_Unmarshal

func (m *MsgUpdateSellOrdersResponse) XXX_Unmarshal(b []byte) error

type MsgUpdateSellOrders_Update

type MsgUpdateSellOrders_Update struct {
	//  sell_order_id is the ID of an existing sell order.
	SellOrderId uint64 `protobuf:"varint,1,opt,name=sell_order_id,json=sellOrderId,proto3" json:"sell_order_id,omitempty"`
	// new_quantity is the updated quantity of credits available to sell, if it
	// is set to zero then the order is cancelled.
	NewQuantity string `protobuf:"bytes,2,opt,name=new_quantity,json=newQuantity,proto3" json:"new_quantity,omitempty"`
	// new_ask_price is the new ask price for this sell order
	NewAskPrice *types1.Coin `protobuf:"bytes,3,opt,name=new_ask_price,json=newAskPrice,proto3" json:"new_ask_price,omitempty"`
	// disable_auto_retire updates the disable_auto_retire field in the sell order.
	DisableAutoRetire bool `protobuf:"varint,4,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
}

Update is an update to an existing sell order.

func (*MsgUpdateSellOrders_Update) Descriptor

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

func (*MsgUpdateSellOrders_Update) GetDisableAutoRetire

func (m *MsgUpdateSellOrders_Update) GetDisableAutoRetire() bool

func (*MsgUpdateSellOrders_Update) GetNewAskPrice

func (m *MsgUpdateSellOrders_Update) GetNewAskPrice() *types1.Coin

func (*MsgUpdateSellOrders_Update) GetNewQuantity

func (m *MsgUpdateSellOrders_Update) GetNewQuantity() string

func (*MsgUpdateSellOrders_Update) GetSellOrderId

func (m *MsgUpdateSellOrders_Update) GetSellOrderId() uint64

func (*MsgUpdateSellOrders_Update) Marshal

func (m *MsgUpdateSellOrders_Update) Marshal() (dAtA []byte, err error)

func (*MsgUpdateSellOrders_Update) MarshalTo

func (m *MsgUpdateSellOrders_Update) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateSellOrders_Update) MarshalToSizedBuffer

func (m *MsgUpdateSellOrders_Update) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateSellOrders_Update) ProtoMessage

func (*MsgUpdateSellOrders_Update) ProtoMessage()

func (*MsgUpdateSellOrders_Update) Reset

func (m *MsgUpdateSellOrders_Update) Reset()

func (*MsgUpdateSellOrders_Update) Size

func (m *MsgUpdateSellOrders_Update) Size() (n int)

func (*MsgUpdateSellOrders_Update) String

func (m *MsgUpdateSellOrders_Update) String() string

func (*MsgUpdateSellOrders_Update) Unmarshal

func (m *MsgUpdateSellOrders_Update) Unmarshal(dAtA []byte) error

func (*MsgUpdateSellOrders_Update) XXX_DiscardUnknown

func (m *MsgUpdateSellOrders_Update) XXX_DiscardUnknown()

func (*MsgUpdateSellOrders_Update) XXX_Marshal

func (m *MsgUpdateSellOrders_Update) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateSellOrders_Update) XXX_Merge

func (m *MsgUpdateSellOrders_Update) XXX_Merge(src proto.Message)

func (*MsgUpdateSellOrders_Update) XXX_Size

func (m *MsgUpdateSellOrders_Update) XXX_Size() int

func (*MsgUpdateSellOrders_Update) XXX_Unmarshal

func (m *MsgUpdateSellOrders_Update) 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"`
}

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

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func NewParams

func NewParams(creditClassFee sdk.Coins, allowlist []string, allowlistEnabled bool, creditTypes []*CreditType) Params

NewParams creates a new Params object.

func (*Params) Descriptor

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

func (*Params) GetAllowedClassCreators

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

func (*Params) GetAllowlistEnabled

func (m *Params) GetAllowlistEnabled() bool

func (*Params) GetCreditClassFee

func (m *Params) GetCreditClassFee() github_com_cosmos_cosmos_sdk_types.Coins

func (*Params) GetCreditTypes

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

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

Implements params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (Params) Validate

func (p Params) Validate() error

Validate will run each param field's validate method

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

type QueryBalanceRequest

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

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 SellOrder

type SellOrder struct {
	// order_id is the unique ID of sell order.
	OrderId uint64 `protobuf:"varint,1,opt,name=order_id,json=orderId,proto3" json:"order_id,omitempty"`
	// owner is the address of the owner of the credits being sold.
	Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
	// batch_denom is the credit batch being sold.
	BatchDenom string `protobuf:"bytes,3,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// quantity is the quantity of credits being sold.
	Quantity string `protobuf:"bytes,4,opt,name=quantity,proto3" json:"quantity,omitempty"`
	// ask_price is the price the seller is asking for each unit of the
	// batch_denom. Each credit unit of the batch will be sold for at least the
	// ask_price or more.
	AskPrice *types1.Coin `protobuf:"bytes,5,opt,name=ask_price,json=askPrice,proto3" json:"ask_price,omitempty"`
	// disable_auto_retire disables auto-retirement of credits which allows a
	// buyer to disable auto-retirement in their buy order enabling them to
	// resell the credits to another buyer.
	DisableAutoRetire bool `protobuf:"varint,6,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
}

SellOrder represents the information for a sell order.

func (*SellOrder) Descriptor

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

func (*SellOrder) GetAskPrice

func (m *SellOrder) GetAskPrice() *types1.Coin

func (*SellOrder) GetBatchDenom

func (m *SellOrder) GetBatchDenom() string

func (*SellOrder) GetDisableAutoRetire

func (m *SellOrder) GetDisableAutoRetire() bool

func (*SellOrder) GetOrderId

func (m *SellOrder) GetOrderId() uint64

func (*SellOrder) GetOwner

func (m *SellOrder) GetOwner() string

func (*SellOrder) GetQuantity

func (m *SellOrder) GetQuantity() string

func (*SellOrder) Marshal

func (m *SellOrder) Marshal() (dAtA []byte, err error)

func (*SellOrder) MarshalTo

func (m *SellOrder) MarshalTo(dAtA []byte) (int, error)

func (*SellOrder) MarshalToSizedBuffer

func (m *SellOrder) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SellOrder) PrimaryKeyFields

func (m *SellOrder) PrimaryKeyFields() []interface{}

PrimaryKeyFields returns the fields of the object that will make up the primary key for SellOrder.

func (*SellOrder) ProtoMessage

func (*SellOrder) ProtoMessage()

func (*SellOrder) Reset

func (m *SellOrder) Reset()

func (*SellOrder) Size

func (m *SellOrder) Size() (n int)

func (*SellOrder) String

func (m *SellOrder) String() string

func (*SellOrder) Unmarshal

func (m *SellOrder) Unmarshal(dAtA []byte) error

func (*SellOrder) XXX_DiscardUnknown

func (m *SellOrder) XXX_DiscardUnknown()

func (*SellOrder) XXX_Marshal

func (m *SellOrder) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SellOrder) XXX_Merge

func (m *SellOrder) XXX_Merge(src proto.Message)

func (*SellOrder) XXX_Size

func (m *SellOrder) XXX_Size() int

func (*SellOrder) XXX_Unmarshal

func (m *SellOrder) 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) Descriptor() ([]byte, []int)

func (*Supply) GetBatchDenom

func (m *Supply) GetBatchDenom() string

func (*Supply) GetRetiredSupply

func (m *Supply) GetRetiredSupply() string

func (*Supply) GetTradableSupply

func (m *Supply) GetTradableSupply() string

func (*Supply) Marshal

func (m *Supply) Marshal() (dAtA []byte, err error)

func (*Supply) MarshalTo

func (m *Supply) MarshalTo(dAtA []byte) (int, error)

func (*Supply) MarshalToSizedBuffer

func (m *Supply) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Supply) ProtoMessage

func (*Supply) ProtoMessage()

func (*Supply) Reset

func (m *Supply) Reset()

func (*Supply) Size

func (m *Supply) Size() (n int)

func (*Supply) String

func (m *Supply) String() string

func (*Supply) Unmarshal

func (m *Supply) Unmarshal(dAtA []byte) error

func (*Supply) XXX_DiscardUnknown

func (m *Supply) XXX_DiscardUnknown()

func (*Supply) XXX_Marshal

func (m *Supply) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Supply) XXX_Merge

func (m *Supply) XXX_Merge(src proto.Message)

func (*Supply) XXX_Size

func (m *Supply) XXX_Size() int

func (*Supply) XXX_Unmarshal

func (m *Supply) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AllowAskDenom

func (*UnimplementedMsgServer) Buy

func (*UnimplementedMsgServer) Cancel

func (*UnimplementedMsgServer) CreateBatch

func (*UnimplementedMsgServer) CreateClass

func (*UnimplementedMsgServer) Retire

func (*UnimplementedMsgServer) Sell

func (*UnimplementedMsgServer) Send

func (*UnimplementedMsgServer) UpdateClassAdmin

func (*UnimplementedMsgServer) UpdateClassIssuers

func (*UnimplementedMsgServer) UpdateClassMetadata

func (*UnimplementedMsgServer) UpdateSellOrders

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Balance

func (*UnimplementedQueryServer) BatchInfo

func (*UnimplementedQueryServer) Batches

func (*UnimplementedQueryServer) ClassInfo

func (*UnimplementedQueryServer) Classes

func (*UnimplementedQueryServer) CreditTypes

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Supply

Directories

Path Synopsis
DONTCOVER
DONTCOVER

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL