v1

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2023 License: Apache-2.0 Imports: 39 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

This section is empty.

Variables

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 (
	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 (
	ErrInvalidLengthState        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowState          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupState = 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 RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func RegisterTypes

func RegisterTypes(registry codectypes.InterfaceRegistry)

Types

type Basket

type Basket struct {
	// id is the uint64 ID of the basket. It is used internally for reducing
	// storage space.
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	// basket_denom is the basket bank denom formed from name and credit type with
	// the format `eco.<prefix><credit_type_abbrev>.<name>` where prefix is the
	// prefix of the bank denom exponent, a standard SI unit derived from credit
	// type precision, and mapped as follows:
	//   0 - no prefix
	//   1 - d (deci)
	//   2 - c (centi)
	//   3 - m (milli)
	//   6 - u (micro)
	//   9 - n (nano)
	//   12 - p (pico)
	//   15 - f (femto)
	//   18 - a (atto)
	//   21 - z (zepto)
	//   24 - y (yocto)
	BasketDenom string `protobuf:"bytes,2,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// name is the unique name of the basket specified in MsgCreate. Basket
	// names must be unique across all credit types and choices of exponent
	// above and beyond the uniqueness constraint on basket_denom.
	Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
	// disable_auto_retire indicates whether or not the credits will be retired
	// upon withdraw from the basket.
	DisableAutoRetire bool `protobuf:"varint,4,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// credit_type_abbrev is the abbreviation of the credit type this basket is
	// able to hold.
	CreditTypeAbbrev string `protobuf:"bytes,5,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"`
	// date_criteria is the date criteria for batches admitted to the basket.
	DateCriteria *DateCriteria `protobuf:"bytes,6,opt,name=date_criteria,json=dateCriteria,proto3" json:"date_criteria,omitempty"`
	// Deprecated (Since Revision 1): This field is no longer used and will be
	// removed in the next version. The value of credit type precision is always
	// used as the exponent when converting credits to/from basket tokens. This
	// field will be set to the value of credit type precision until removed.
	Exponent uint32 `protobuf:"varint,7,opt,name=exponent,proto3" json:"exponent,omitempty"` // Deprecated: Do not use.
	// curator is the address of the basket curator who is able to change certain
	// basket settings.
	//
	// Since Revision 1
	Curator []byte `protobuf:"bytes,8,opt,name=curator,proto3" json:"curator,omitempty"`
}

Basket represents a basket in state.

func (*Basket) Descriptor

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

func (*Basket) GetBasketDenom

func (m *Basket) GetBasketDenom() string

func (*Basket) GetCreditTypeAbbrev

func (m *Basket) GetCreditTypeAbbrev() string

func (*Basket) GetCurator

func (m *Basket) GetCurator() []byte

func (*Basket) GetDateCriteria

func (m *Basket) GetDateCriteria() *DateCriteria

func (*Basket) GetDisableAutoRetire

func (m *Basket) GetDisableAutoRetire() bool

func (*Basket) GetExponent deprecated

func (m *Basket) GetExponent() uint32

Deprecated: Do not use.

func (*Basket) GetId

func (m *Basket) GetId() uint64

func (*Basket) GetName

func (m *Basket) GetName() string

func (*Basket) Marshal

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

func (*Basket) MarshalTo

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

func (*Basket) MarshalToSizedBuffer

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

func (*Basket) ProtoMessage

func (*Basket) ProtoMessage()

func (*Basket) Reset

func (m *Basket) Reset()

func (*Basket) Size

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

func (*Basket) String

func (m *Basket) String() string

func (*Basket) Unmarshal

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

func (*Basket) Validate

func (m *Basket) Validate() error

Validate performs basic validation of the Basket state type

func (*Basket) XXX_DiscardUnknown

func (m *Basket) XXX_DiscardUnknown()

func (*Basket) XXX_Marshal

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

func (*Basket) XXX_Merge

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

func (*Basket) XXX_Size

func (m *Basket) XXX_Size() int

func (*Basket) XXX_Unmarshal

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

type BasketBalance

type BasketBalance struct {
	// basket_id is the ID of the basket
	BasketId uint64 `protobuf:"varint,1,opt,name=basket_id,json=basketId,proto3" json:"basket_id,omitempty"`
	// batch_denom is the denom of the credit batch
	BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// balance is the amount of ecocredits held in the basket
	Balance string `protobuf:"bytes,3,opt,name=balance,proto3" json:"balance,omitempty"`
	// batch_start_date is the start date of the batch. This field is used
	// to create an index which is used to remove the oldest credits first.
	BatchStartDate *types.Timestamp `protobuf:"bytes,4,opt,name=batch_start_date,json=batchStartDate,proto3" json:"batch_start_date,omitempty"`
}

BasketBalance stores the amount of credits from a batch in a basket

func (*BasketBalance) Descriptor

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

func (*BasketBalance) GetBalance

func (m *BasketBalance) GetBalance() string

func (*BasketBalance) GetBasketId

func (m *BasketBalance) GetBasketId() uint64

func (*BasketBalance) GetBatchDenom

func (m *BasketBalance) GetBatchDenom() string

func (*BasketBalance) GetBatchStartDate

func (m *BasketBalance) GetBatchStartDate() *types.Timestamp

func (*BasketBalance) Marshal

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

func (*BasketBalance) MarshalTo

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

func (*BasketBalance) MarshalToSizedBuffer

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

func (*BasketBalance) ProtoMessage

func (*BasketBalance) ProtoMessage()

func (*BasketBalance) Reset

func (m *BasketBalance) Reset()

func (*BasketBalance) Size

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

func (*BasketBalance) String

func (m *BasketBalance) String() string

func (*BasketBalance) Unmarshal

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

func (*BasketBalance) Validate

func (m *BasketBalance) Validate() error

Validate performs basic validation of the BasketBalance state type

func (*BasketBalance) XXX_DiscardUnknown

func (m *BasketBalance) XXX_DiscardUnknown()

func (*BasketBalance) XXX_Marshal

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

func (*BasketBalance) XXX_Merge

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

func (*BasketBalance) XXX_Size

func (m *BasketBalance) XXX_Size() int

func (*BasketBalance) XXX_Unmarshal

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

type BasketBalanceInfo

type BasketBalanceInfo struct {
	// batch_denom is the denom of the credit batch
	BatchDenom string `protobuf:"bytes,1,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
	// balance is the amount of ecocredits held in the basket
	Balance string `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
}

BasketBalanceInfo is the human-readable basket balance information.

func (*BasketBalanceInfo) Descriptor

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

func (*BasketBalanceInfo) GetBalance

func (m *BasketBalanceInfo) GetBalance() string

func (*BasketBalanceInfo) GetBatchDenom

func (m *BasketBalanceInfo) GetBatchDenom() string

func (*BasketBalanceInfo) Marshal

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

func (*BasketBalanceInfo) MarshalTo

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

func (*BasketBalanceInfo) MarshalToSizedBuffer

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

func (*BasketBalanceInfo) ProtoMessage

func (*BasketBalanceInfo) ProtoMessage()

func (*BasketBalanceInfo) Reset

func (m *BasketBalanceInfo) Reset()

func (*BasketBalanceInfo) Size

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

func (*BasketBalanceInfo) String

func (m *BasketBalanceInfo) String() string

func (*BasketBalanceInfo) Unmarshal

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

func (*BasketBalanceInfo) XXX_DiscardUnknown

func (m *BasketBalanceInfo) XXX_DiscardUnknown()

func (*BasketBalanceInfo) XXX_Marshal

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

func (*BasketBalanceInfo) XXX_Merge

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

func (*BasketBalanceInfo) XXX_Size

func (m *BasketBalanceInfo) XXX_Size() int

func (*BasketBalanceInfo) XXX_Unmarshal

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

type BasketClass

type BasketClass struct {
	// basket_id is the ID of the basket
	BasketId uint64 `protobuf:"varint,1,opt,name=basket_id,json=basketId,proto3" json:"basket_id,omitempty"`
	// class_id is the id of the credit class that is allowed to be deposited in
	// the basket
	ClassId string `protobuf:"bytes,2,opt,name=class_id,json=classId,proto3" json:"class_id,omitempty"`
}

BasketClass describes a credit class that can be deposited in a basket.

func (*BasketClass) Descriptor

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

func (*BasketClass) GetBasketId

func (m *BasketClass) GetBasketId() uint64

func (*BasketClass) GetClassId

func (m *BasketClass) GetClassId() string

func (*BasketClass) Marshal

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

func (*BasketClass) MarshalTo

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

func (*BasketClass) MarshalToSizedBuffer

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

func (*BasketClass) ProtoMessage

func (*BasketClass) ProtoMessage()

func (*BasketClass) Reset

func (m *BasketClass) Reset()

func (*BasketClass) Size

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

func (*BasketClass) String

func (m *BasketClass) String() string

func (*BasketClass) Unmarshal

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

func (*BasketClass) Validate

func (m *BasketClass) Validate() error

Validate performs basic validation of the BasketClass state type

func (*BasketClass) XXX_DiscardUnknown

func (m *BasketClass) XXX_DiscardUnknown()

func (*BasketClass) XXX_Marshal

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

func (*BasketClass) XXX_Merge

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

func (*BasketClass) XXX_Size

func (m *BasketClass) XXX_Size() int

func (*BasketClass) XXX_Unmarshal

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

type BasketCredit

type BasketCredit 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 put into or taken out of the basket.
	// Decimal values are acceptable within the precision of the corresponding
	//  credit type for this batch.
	Amount string `protobuf:"bytes,2,opt,name=amount,proto3" json:"amount,omitempty"`
}

BasketCredit represents the information for a credit batch inside a basket.

func (*BasketCredit) Descriptor

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

func (*BasketCredit) GetAmount

func (m *BasketCredit) GetAmount() string

func (*BasketCredit) GetBatchDenom

func (m *BasketCredit) GetBatchDenom() string

func (*BasketCredit) Marshal

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

func (*BasketCredit) MarshalTo

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

func (*BasketCredit) MarshalToSizedBuffer

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

func (*BasketCredit) ProtoMessage

func (*BasketCredit) ProtoMessage()

func (*BasketCredit) Reset

func (m *BasketCredit) Reset()

func (*BasketCredit) Size

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

func (*BasketCredit) String

func (m *BasketCredit) String() string

func (*BasketCredit) Unmarshal

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

func (*BasketCredit) XXX_DiscardUnknown

func (m *BasketCredit) XXX_DiscardUnknown()

func (*BasketCredit) XXX_Marshal

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

func (*BasketCredit) XXX_Merge

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

func (*BasketCredit) XXX_Size

func (m *BasketCredit) XXX_Size() int

func (*BasketCredit) XXX_Unmarshal

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

type BasketFee

type BasketFee struct {
	// fee is the basket creation fee. If not set, a basket creation fee is not
	// required.
	Fee *types1.Coin `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee,omitempty"`
}

BasketFee is the basket creation fee. If not set, a basket creation fee is not required. This table is controlled via governance.

Since Revision 2

func (*BasketFee) Descriptor

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

func (*BasketFee) GetFee

func (m *BasketFee) GetFee() *types1.Coin

func (*BasketFee) Marshal

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

func (*BasketFee) MarshalTo

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

func (*BasketFee) MarshalToSizedBuffer

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

func (*BasketFee) ProtoMessage

func (*BasketFee) ProtoMessage()

func (*BasketFee) Reset

func (m *BasketFee) Reset()

func (*BasketFee) Size

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

func (*BasketFee) String

func (m *BasketFee) String() string

func (*BasketFee) Unmarshal

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

func (*BasketFee) Validate

func (m *BasketFee) Validate() error

Validate performs basic validation of the BasketFee state type

func (*BasketFee) XXX_DiscardUnknown

func (m *BasketFee) XXX_DiscardUnknown()

func (*BasketFee) XXX_Marshal

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

func (*BasketFee) XXX_Merge

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

func (*BasketFee) XXX_Size

func (m *BasketFee) XXX_Size() int

func (*BasketFee) XXX_Unmarshal

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

type BasketInfo

type BasketInfo struct {
	// basket_denom is the basket bank denom.
	BasketDenom string `protobuf:"bytes,1,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// name is the unique name of the basket specified in MsgCreate. Basket
	// names must be unique across all credit types and choices of exponent
	// above and beyond the uniqueness constraint on basket_denom.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// disable_auto_retire indicates whether or not the credits will be retired
	// upon withdraw from the basket.
	DisableAutoRetire bool `protobuf:"varint,3,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// credit_type_abbrev is the abbreviation of the credit type this basket is
	// able to hold.
	CreditTypeAbbrev string `protobuf:"bytes,4,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"`
	// date_criteria is the date criteria for batches admitted to the basket.
	DateCriteria *DateCriteria `protobuf:"bytes,5,opt,name=date_criteria,json=dateCriteria,proto3" json:"date_criteria,omitempty"`
	// exponent is the exponent for converting credits to/from basket tokens.
	Exponent uint32 `protobuf:"varint,6,opt,name=exponent,proto3" json:"exponent,omitempty"`
	// curator is the address of the basket curator who is able to change certain
	// basket settings.
	Curator string `protobuf:"bytes,7,opt,name=curator,proto3" json:"curator,omitempty"`
}

BasketInfo is the human-readable basket information.

func (*BasketInfo) Descriptor

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

func (*BasketInfo) GetBasketDenom

func (m *BasketInfo) GetBasketDenom() string

func (*BasketInfo) GetCreditTypeAbbrev

func (m *BasketInfo) GetCreditTypeAbbrev() string

func (*BasketInfo) GetCurator

func (m *BasketInfo) GetCurator() string

func (*BasketInfo) GetDateCriteria

func (m *BasketInfo) GetDateCriteria() *DateCriteria

func (*BasketInfo) GetDisableAutoRetire

func (m *BasketInfo) GetDisableAutoRetire() bool

func (*BasketInfo) GetExponent

func (m *BasketInfo) GetExponent() uint32

func (*BasketInfo) GetName

func (m *BasketInfo) GetName() string

func (*BasketInfo) Marshal

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

func (*BasketInfo) MarshalTo

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

func (*BasketInfo) MarshalToSizedBuffer

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

func (*BasketInfo) ProtoMessage

func (*BasketInfo) ProtoMessage()

func (*BasketInfo) Reset

func (m *BasketInfo) Reset()

func (*BasketInfo) Size

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

func (*BasketInfo) String

func (m *BasketInfo) String() string

func (*BasketInfo) Unmarshal

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

func (*BasketInfo) XXX_DiscardUnknown

func (m *BasketInfo) XXX_DiscardUnknown()

func (*BasketInfo) XXX_Marshal

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

func (*BasketInfo) XXX_Merge

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

func (*BasketInfo) XXX_Size

func (m *BasketInfo) XXX_Size() int

func (*BasketInfo) XXX_Unmarshal

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

type DateCriteria

type DateCriteria struct {
	// min_start_date (optional) is the earliest start date for batches of credits
	// allowed into the basket. At most only one of `start_date_window`,
	// `min_start_date`, and `years_in_the_past` can be set for a basket.
	MinStartDate *types.Timestamp `protobuf:"bytes,1,opt,name=min_start_date,json=minStartDate,proto3" json:"min_start_date,omitempty"`
	// start_date_window (optional) is a duration of time measured into the past
	// which sets a cutoff for batch start dates when adding new credits to the
	// basket. Based on the current block timestamp, credits whose start date is
	// before `block_timestamp - start_date_window` will not be allowed into the
	// basket. At most only one of `start_date_window`, `min_start_date`, and
	// `years_in_the_past` can be set for a basket.
	StartDateWindow *types.Duration `protobuf:"bytes,2,opt,name=start_date_window,json=startDateWindow,proto3" json:"start_date_window,omitempty"`
	// years_in_the_past (optional) is the number of years into the past which
	// sets a cutoff for the batch start dates when adding new credits to the
	// basket. Based on the current block timestamp, credits whose start date year
	// is less than `block_timestamp_year - years_in_the_past` will not be allowed
	// into the basket. At most only one of `start_date_window`, `min_start_date`,
	// and `years_in_the_past` can be set for a basket.
	//
	// Since Revision 1
	YearsInThePast uint32 `protobuf:"varint,3,opt,name=years_in_the_past,json=yearsInThePast,proto3" json:"years_in_the_past,omitempty"`
}

DateCriteria represents the information for credit acceptance in a basket. At most, only one of the values should be set.

func (*DateCriteria) Descriptor

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

func (*DateCriteria) GetMinStartDate

func (m *DateCriteria) GetMinStartDate() *types.Timestamp

func (*DateCriteria) GetStartDateWindow

func (m *DateCriteria) GetStartDateWindow() *types.Duration

func (*DateCriteria) GetYearsInThePast

func (m *DateCriteria) GetYearsInThePast() uint32

func (*DateCriteria) Marshal

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

func (*DateCriteria) MarshalTo

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

func (*DateCriteria) MarshalToSizedBuffer

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

func (*DateCriteria) ProtoMessage

func (*DateCriteria) ProtoMessage()

func (*DateCriteria) Reset

func (m *DateCriteria) Reset()

func (*DateCriteria) Size

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

func (*DateCriteria) String

func (m *DateCriteria) String() string

func (*DateCriteria) ToAPI

func (d *DateCriteria) ToAPI() *api.DateCriteria

ToAPI converts to pulsar based data structure

func (*DateCriteria) Unmarshal

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

func (*DateCriteria) Validate

func (d *DateCriteria) Validate() error

Validate validates DateCriteria, ensuring only one field is set, minimum start date is after 1900-01-01, start date window is at least one day, and years in the past is at least one year

func (*DateCriteria) XXX_DiscardUnknown

func (m *DateCriteria) XXX_DiscardUnknown()

func (*DateCriteria) XXX_Marshal

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

func (*DateCriteria) XXX_Merge

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

func (*DateCriteria) XXX_Size

func (m *DateCriteria) XXX_Size() int

func (*DateCriteria) XXX_Unmarshal

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

type EventCreate

type EventCreate struct {
	// basket_denom is the basket bank denom.
	BasketDenom string `protobuf:"bytes,1,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// curator is the address of the basket curator who is able to change certain
	// basket settings.
	//
	// Deprecated (Since Revision 1): This field is still populated and will be
	// removed in the next version.
	Curator string `protobuf:"bytes,2,opt,name=curator,proto3" json:"curator,omitempty"` // Deprecated: Do not use.
}

EventCreate is an event emitted when a basket is created.

func (*EventCreate) Descriptor

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

func (*EventCreate) GetBasketDenom

func (m *EventCreate) GetBasketDenom() string

func (*EventCreate) GetCurator deprecated

func (m *EventCreate) GetCurator() string

Deprecated: Do not use.

func (*EventCreate) Marshal

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

func (*EventCreate) MarshalTo

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

func (*EventCreate) MarshalToSizedBuffer

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

func (*EventCreate) ProtoMessage

func (*EventCreate) ProtoMessage()

func (*EventCreate) Reset

func (m *EventCreate) Reset()

func (*EventCreate) Size

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

func (*EventCreate) String

func (m *EventCreate) String() string

func (*EventCreate) Unmarshal

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

func (*EventCreate) XXX_DiscardUnknown

func (m *EventCreate) XXX_DiscardUnknown()

func (*EventCreate) XXX_Marshal

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

func (*EventCreate) XXX_Merge

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

func (*EventCreate) XXX_Size

func (m *EventCreate) XXX_Size() int

func (*EventCreate) XXX_Unmarshal

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

type EventPut

type EventPut struct {
	// owner is the owner of the credits put into the basket.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// basket_denom is the basket bank denom that the credits were added to.
	BasketDenom string `protobuf:"bytes,2,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// credits are the credits that were added to the basket.
	//
	// Deprecated (Since Revision 1): This field is still populated and will be
	// removed in the next version.
	Credits []*BasketCredit `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"` // Deprecated: Do not use.
	// amount is the integer number of basket tokens converted from credits.
	//
	// Deprecated (Since Revision 1): This field is still populated and will be
	// removed in the next version.
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` // Deprecated: Do not use.
}

EventPut is an event emitted when credits are put into a basket in return for basket tokens.

func (*EventPut) Descriptor

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

func (*EventPut) GetAmount deprecated

func (m *EventPut) GetAmount() string

Deprecated: Do not use.

func (*EventPut) GetBasketDenom

func (m *EventPut) GetBasketDenom() string

func (*EventPut) GetCredits deprecated

func (m *EventPut) GetCredits() []*BasketCredit

Deprecated: Do not use.

func (*EventPut) GetOwner

func (m *EventPut) GetOwner() string

func (*EventPut) Marshal

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

func (*EventPut) MarshalTo

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

func (*EventPut) MarshalToSizedBuffer

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

func (*EventPut) ProtoMessage

func (*EventPut) ProtoMessage()

func (*EventPut) Reset

func (m *EventPut) Reset()

func (*EventPut) Size

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

func (*EventPut) String

func (m *EventPut) String() string

func (*EventPut) Unmarshal

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

func (*EventPut) XXX_DiscardUnknown

func (m *EventPut) XXX_DiscardUnknown()

func (*EventPut) XXX_Marshal

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

func (*EventPut) XXX_Merge

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

func (*EventPut) XXX_Size

func (m *EventPut) XXX_Size() int

func (*EventPut) XXX_Unmarshal

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

type EventTake

type EventTake struct {
	// owner is the owner of the credits taken from the basket.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// basket_denom is the basket bank denom that credits were taken from.
	BasketDenom string `protobuf:"bytes,2,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// credits are the credits that were taken from the basket.
	//
	// Deprecated (Since Revision 1): This field is still populated and will be
	// removed in the next version.
	Credits []*BasketCredit `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"` // Deprecated: Do not use.
	// amount is the integer number of basket tokens converted to credits.
	//
	// Deprecated (Since Revision 1): This field is still populated and will be
	// removed in the next version.
	Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` // Deprecated: Do not use.
}

EventTake is an event emitted when credits are taken from a basket starting from the oldest credits first.

func (*EventTake) Descriptor

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

func (*EventTake) GetAmount deprecated

func (m *EventTake) GetAmount() string

Deprecated: Do not use.

func (*EventTake) GetBasketDenom

func (m *EventTake) GetBasketDenom() string

func (*EventTake) GetCredits deprecated

func (m *EventTake) GetCredits() []*BasketCredit

Deprecated: Do not use.

func (*EventTake) GetOwner

func (m *EventTake) GetOwner() string

func (*EventTake) Marshal

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

func (*EventTake) MarshalTo

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

func (*EventTake) MarshalToSizedBuffer

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

func (*EventTake) ProtoMessage

func (*EventTake) ProtoMessage()

func (*EventTake) Reset

func (m *EventTake) Reset()

func (*EventTake) Size

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

func (*EventTake) String

func (m *EventTake) String() string

func (*EventTake) Unmarshal

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

func (*EventTake) XXX_DiscardUnknown

func (m *EventTake) XXX_DiscardUnknown()

func (*EventTake) XXX_Marshal

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

func (*EventTake) XXX_Merge

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

func (*EventTake) XXX_Size

func (m *EventTake) XXX_Size() int

func (*EventTake) XXX_Unmarshal

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

type EventUpdateCurator

type EventUpdateCurator struct {
	// denom is the basket denom.
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

EventUpdateCurator is an event emitted when the basket curator is updated.

Since Revision 2

func (*EventUpdateCurator) Descriptor

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

func (*EventUpdateCurator) GetDenom

func (m *EventUpdateCurator) GetDenom() string

func (*EventUpdateCurator) Marshal

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

func (*EventUpdateCurator) MarshalTo

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

func (*EventUpdateCurator) MarshalToSizedBuffer

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

func (*EventUpdateCurator) ProtoMessage

func (*EventUpdateCurator) ProtoMessage()

func (*EventUpdateCurator) Reset

func (m *EventUpdateCurator) Reset()

func (*EventUpdateCurator) Size

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

func (*EventUpdateCurator) String

func (m *EventUpdateCurator) String() string

func (*EventUpdateCurator) Unmarshal

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

func (*EventUpdateCurator) XXX_DiscardUnknown

func (m *EventUpdateCurator) XXX_DiscardUnknown()

func (*EventUpdateCurator) XXX_Marshal

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

func (*EventUpdateCurator) XXX_Merge

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

func (*EventUpdateCurator) XXX_Size

func (m *EventUpdateCurator) XXX_Size() int

func (*EventUpdateCurator) XXX_Unmarshal

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

type EventUpdateDateCriteria added in v3.3.0

type EventUpdateDateCriteria struct {
	// denom is the basket denom.
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

EventUpdateDateCriteria is an event emitted when the basket date criteria is updated.

Since Revision 3

func (*EventUpdateDateCriteria) Descriptor added in v3.3.0

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

func (*EventUpdateDateCriteria) GetDenom added in v3.3.0

func (m *EventUpdateDateCriteria) GetDenom() string

func (*EventUpdateDateCriteria) Marshal added in v3.3.0

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

func (*EventUpdateDateCriteria) MarshalTo added in v3.3.0

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

func (*EventUpdateDateCriteria) MarshalToSizedBuffer added in v3.3.0

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

func (*EventUpdateDateCriteria) ProtoMessage added in v3.3.0

func (*EventUpdateDateCriteria) ProtoMessage()

func (*EventUpdateDateCriteria) Reset added in v3.3.0

func (m *EventUpdateDateCriteria) Reset()

func (*EventUpdateDateCriteria) Size added in v3.3.0

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

func (*EventUpdateDateCriteria) String added in v3.3.0

func (m *EventUpdateDateCriteria) String() string

func (*EventUpdateDateCriteria) Unmarshal added in v3.3.0

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

func (*EventUpdateDateCriteria) XXX_DiscardUnknown added in v3.3.0

func (m *EventUpdateDateCriteria) XXX_DiscardUnknown()

func (*EventUpdateDateCriteria) XXX_Marshal added in v3.3.0

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

func (*EventUpdateDateCriteria) XXX_Merge added in v3.3.0

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

func (*EventUpdateDateCriteria) XXX_Size added in v3.3.0

func (m *EventUpdateDateCriteria) XXX_Size() int

func (*EventUpdateDateCriteria) XXX_Unmarshal added in v3.3.0

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

type MsgClient

type MsgClient interface {
	// Create creates a basket that can hold different types of ecocredits that
	// meet the basket's criteria. Upon depositing ecocredits into the basket,
	// basket tokens are minted and sent to depositor using the Cosmos SDK Bank
	// module. This allows basket tokens to be utilized within IBC. Basket tokens
	// are fully fungible with other basket tokens from the same basket. The
	// basket token denom is derived from the basket name, credit type
	// abbreviation, and credit type precision (i.e. basket name "foo", credit
	// type exponent 6, and credit type abbreviation "C" generates the denom
	// eco.uC.foo). Baskets can limit credit acceptance criteria based on a
	// combination of credit type, credit classes, and credit batch start date.
	// Credits can be taken from the basket in exchange for basket tokens. Taken
	// credits will be immediately retired, unless disable_auto_retire is set to
	// true. When set to true, credits may be received in either a tradable or
	// retired state, depending on the taker's request. If the basket fee
	// governance parameter is set, a fee of equal or greater value must be
	// provided in the request. Only the amount specified in the fee parameter
	// will be charged, even if a greater value fee is provided. Fees from
	// creating a basket are burned.
	Create(ctx context.Context, in *MsgCreate, opts ...grpc.CallOption) (*MsgCreateResponse, error)
	// Put deposits credits into the basket from the holder's tradable balance in
	// exchange for basket tokens. The amount of tokens received is calculated by
	// the following formula: sum(credits_deposited) * 10^credit_type_exponent.
	// The credits being deposited MUST adhere to the criteria of the basket.
	Put(ctx context.Context, in *MsgPut, opts ...grpc.CallOption) (*MsgPutResponse, error)
	// Take exchanges basket tokens for credits from the specified basket. Credits
	// are taken deterministically, ordered by oldest batch start date to the most
	// recent batch start date. If the basket has disable_auto_retire set to
	// false, both retirement_jurisdiction and retire_on_take must be set, and the
	// taken credits will be retired immediately upon receipt. Otherwise, credits
	// may be received as tradable or retired, based on the request.
	Take(ctx context.Context, in *MsgTake, opts ...grpc.CallOption) (*MsgTakeResponse, error)
	// UpdateBasketFee is a governance method that allows for updating the basket
	// creation fee. If not set, the basket creation fee will be removed and no
	// fee will be required to create a basket.
	//
	// Since Revision 2
	UpdateBasketFee(ctx context.Context, in *MsgUpdateBasketFee, opts ...grpc.CallOption) (*MsgUpdateBasketFeeResponse, error)
	// UpdateCurator updates basket curator.
	//
	// Since Revision 2
	UpdateCurator(ctx context.Context, in *MsgUpdateCurator, opts ...grpc.CallOption) (*MsgUpdateCuratorResponse, error)
	// UpdateDateCriteria is a governance method that allows for updating the date
	// criteria of a basket. Updating basket date criteria could affect the value
	// of basket tokens and therefore requires a network-wide governance process.
	//
	// Since Revision 3
	UpdateDateCriteria(ctx context.Context, in *MsgUpdateDateCriteria, opts ...grpc.CallOption) (*MsgUpdateDateCriteriaResponse, 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 MsgCreate

type MsgCreate struct {
	// curator is the address of the basket curator who is able to change certain
	// basket settings.
	Curator string `protobuf:"bytes,1,opt,name=curator,proto3" json:"curator,omitempty"`
	// name will be used to together with prefix to create a bank denom for this
	// basket token. It can be between 3-8 alphanumeric characters, with the
	// first character being alphabetic.
	//
	// The bank denom will be formed from name and credit type with the format
	// `eco.<prefix><credit_type_abbrev>.<name>` where prefix is the prefix of
	// a standard SI unit derived from credit type precision.
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// description is a human-readable description of the basket denom that should
	// be at most 256 characters.
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Deprecated (Since Revision 1): This field is no longer used and will be
	// removed in the next version. The value of credit type precision is always
	// used as the exponent when determining the prefix for basket denom, defining
	// bank denom metadata, and converting credits to/from basket tokens.
	Exponent uint32 `protobuf:"varint,4,opt,name=exponent,proto3" json:"exponent,omitempty"` // Deprecated: Do not use.
	// disable_auto_retire allows auto-retirement to be disabled.
	// The credits will be auto-retired if disable_auto_retire is
	// false unless the credits were previously put into the basket by the
	// address picking them from the basket, in which case they will remain
	// tradable.
	DisableAutoRetire bool `protobuf:"varint,5,opt,name=disable_auto_retire,json=disableAutoRetire,proto3" json:"disable_auto_retire,omitempty"`
	// credit_type_abbrev is the abbreviation of the credit type this basket is
	// able to hold.
	CreditTypeAbbrev string `protobuf:"bytes,6,opt,name=credit_type_abbrev,json=creditTypeAbbrev,proto3" json:"credit_type_abbrev,omitempty"`
	// allowed_classes are the credit classes allowed to be put in the basket
	AllowedClasses []string `protobuf:"bytes,7,rep,name=allowed_classes,json=allowedClasses,proto3" json:"allowed_classes,omitempty"`
	// date_criteria is the date criteria for batches admitted to the basket.
	// At most, only one of the date criteria fields can be set.
	DateCriteria *DateCriteria `protobuf:"bytes,8,opt,name=date_criteria,json=dateCriteria,proto3" json:"date_criteria,omitempty"`
	// fee is the basket creation fee. A fee is not required if no fee exists
	// in the basket fee parameter. The fee must be greater than or equal to the
	// fee param. The curator will be charged the amount specified in the fee
	// parameter, even if a greater amount is provided.
	//
	// Note (Since Revision 1): Although this field supports a list of fees, the
	// basket creator must provide no more than one fee (i.e. one Coin in a list
	// of Coins). Providing more than one fee will fail basic message validation.
	// This field will be updated to a single fee rather than a list of fees in
	// the next version to reflect these requirements.
	Fee github_com_cosmos_cosmos_sdk_types.Coins `protobuf:"bytes,9,rep,name=fee,proto3,castrepeated=github.com/cosmos/cosmos-sdk/types.Coins" json:"fee"`
}

MsgCreateBasket is the Msg/CreateBasket request type.

func (*MsgCreate) Descriptor

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

func (*MsgCreate) GetAllowedClasses

func (m *MsgCreate) GetAllowedClasses() []string

func (*MsgCreate) GetCreditTypeAbbrev

func (m *MsgCreate) GetCreditTypeAbbrev() string

func (*MsgCreate) GetCurator

func (m *MsgCreate) GetCurator() string

func (*MsgCreate) GetDateCriteria

func (m *MsgCreate) GetDateCriteria() *DateCriteria

func (*MsgCreate) GetDescription

func (m *MsgCreate) GetDescription() string

func (*MsgCreate) GetDisableAutoRetire

func (m *MsgCreate) GetDisableAutoRetire() bool

func (*MsgCreate) GetExponent deprecated

func (m *MsgCreate) GetExponent() uint32

Deprecated: Do not use.

func (*MsgCreate) GetFee

func (*MsgCreate) GetName

func (m *MsgCreate) GetName() string

func (MsgCreate) GetSignBytes

func (m MsgCreate) GetSignBytes() []byte

GetSignBytes implements LegacyMsg.

func (MsgCreate) GetSigners

func (m MsgCreate) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgCreate.

func (*MsgCreate) Marshal

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

func (*MsgCreate) MarshalTo

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

func (*MsgCreate) MarshalToSizedBuffer

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

func (*MsgCreate) ProtoMessage

func (*MsgCreate) ProtoMessage()

func (*MsgCreate) Reset

func (m *MsgCreate) Reset()

func (MsgCreate) Route

func (m MsgCreate) Route() string

Route implements LegacyMsg.

func (*MsgCreate) Size

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

func (*MsgCreate) String

func (m *MsgCreate) String() string

func (MsgCreate) Type

func (m MsgCreate) Type() string

Type implements LegacyMsg.

func (*MsgCreate) Unmarshal

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

func (MsgCreate) ValidateBasic

func (m MsgCreate) ValidateBasic() error

ValidateBasic does a stateless sanity check on the provided data.

func (*MsgCreate) XXX_DiscardUnknown

func (m *MsgCreate) XXX_DiscardUnknown()

func (*MsgCreate) XXX_Marshal

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

func (*MsgCreate) XXX_Merge

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

func (*MsgCreate) XXX_Size

func (m *MsgCreate) XXX_Size() int

func (*MsgCreate) XXX_Unmarshal

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

type MsgCreateResponse

type MsgCreateResponse struct {
	// basket_denom is the unique denomination ID of the newly created basket.
	BasketDenom string `protobuf:"bytes,1,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
}

MsgCreateBasketResponse is the Msg/CreateBasket response type.

func (*MsgCreateResponse) Descriptor

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

func (*MsgCreateResponse) GetBasketDenom

func (m *MsgCreateResponse) GetBasketDenom() string

func (*MsgCreateResponse) Marshal

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

func (*MsgCreateResponse) MarshalTo

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

func (*MsgCreateResponse) MarshalToSizedBuffer

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

func (*MsgCreateResponse) ProtoMessage

func (*MsgCreateResponse) ProtoMessage()

func (*MsgCreateResponse) Reset

func (m *MsgCreateResponse) Reset()

func (*MsgCreateResponse) Size

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

func (*MsgCreateResponse) String

func (m *MsgCreateResponse) String() string

func (*MsgCreateResponse) Unmarshal

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

func (*MsgCreateResponse) XXX_DiscardUnknown

func (m *MsgCreateResponse) XXX_DiscardUnknown()

func (*MsgCreateResponse) XXX_Marshal

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

func (*MsgCreateResponse) XXX_Merge

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

func (*MsgCreateResponse) XXX_Size

func (m *MsgCreateResponse) XXX_Size() int

func (*MsgCreateResponse) XXX_Unmarshal

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

type MsgPut

type MsgPut struct {
	// owner is the owner of credits being put into the basket.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// basket_denom is the basket denom to add credits to.
	BasketDenom string `protobuf:"bytes,2,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// credits are credits to add to the basket. If they do not match the basket's
	// admission criteria, the operation will fail.
	Credits []*BasketCredit `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"`
}

MsgAddToBasket is the Msg/AddToBasket request type.

func (*MsgPut) Descriptor

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

func (*MsgPut) GetBasketDenom

func (m *MsgPut) GetBasketDenom() string

func (*MsgPut) GetCredits

func (m *MsgPut) GetCredits() []*BasketCredit

func (*MsgPut) GetOwner

func (m *MsgPut) GetOwner() string

func (MsgPut) GetSignBytes

func (m MsgPut) GetSignBytes() []byte

GetSignBytes implements LegacyMsg.

func (MsgPut) GetSigners

func (m MsgPut) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgCreate.

func (*MsgPut) Marshal

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

func (*MsgPut) MarshalTo

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

func (*MsgPut) MarshalToSizedBuffer

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

func (*MsgPut) ProtoMessage

func (*MsgPut) ProtoMessage()

func (*MsgPut) Reset

func (m *MsgPut) Reset()

func (MsgPut) Route

func (m MsgPut) Route() string

Route implements LegacyMsg.

func (*MsgPut) Size

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

func (*MsgPut) String

func (m *MsgPut) String() string

func (MsgPut) Type

func (m MsgPut) Type() string

Type implements LegacyMsg.

func (*MsgPut) Unmarshal

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

func (MsgPut) ValidateBasic

func (m MsgPut) ValidateBasic() error

ValidateBasic does a stateless sanity check on the provided data.

func (*MsgPut) XXX_DiscardUnknown

func (m *MsgPut) XXX_DiscardUnknown()

func (*MsgPut) XXX_Marshal

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

func (*MsgPut) XXX_Merge

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

func (*MsgPut) XXX_Size

func (m *MsgPut) XXX_Size() int

func (*MsgPut) XXX_Unmarshal

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

type MsgPutResponse

type MsgPutResponse struct {
	// amount_received is the integer amount of basket tokens received.
	AmountReceived string `protobuf:"bytes,1,opt,name=amount_received,json=amountReceived,proto3" json:"amount_received,omitempty"`
}

MsgAddToBasketResponse is the Msg/AddToBasket response type.

func (*MsgPutResponse) Descriptor

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

func (*MsgPutResponse) GetAmountReceived

func (m *MsgPutResponse) GetAmountReceived() string

func (*MsgPutResponse) Marshal

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

func (*MsgPutResponse) MarshalTo

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

func (*MsgPutResponse) MarshalToSizedBuffer

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

func (*MsgPutResponse) ProtoMessage

func (*MsgPutResponse) ProtoMessage()

func (*MsgPutResponse) Reset

func (m *MsgPutResponse) Reset()

func (*MsgPutResponse) Size

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

func (*MsgPutResponse) String

func (m *MsgPutResponse) String() string

func (*MsgPutResponse) Unmarshal

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

func (*MsgPutResponse) XXX_DiscardUnknown

func (m *MsgPutResponse) XXX_DiscardUnknown()

func (*MsgPutResponse) XXX_Marshal

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

func (*MsgPutResponse) XXX_Merge

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

func (*MsgPutResponse) XXX_Size

func (m *MsgPutResponse) XXX_Size() int

func (*MsgPutResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// Create creates a basket that can hold different types of ecocredits that
	// meet the basket's criteria. Upon depositing ecocredits into the basket,
	// basket tokens are minted and sent to depositor using the Cosmos SDK Bank
	// module. This allows basket tokens to be utilized within IBC. Basket tokens
	// are fully fungible with other basket tokens from the same basket. The
	// basket token denom is derived from the basket name, credit type
	// abbreviation, and credit type precision (i.e. basket name "foo", credit
	// type exponent 6, and credit type abbreviation "C" generates the denom
	// eco.uC.foo). Baskets can limit credit acceptance criteria based on a
	// combination of credit type, credit classes, and credit batch start date.
	// Credits can be taken from the basket in exchange for basket tokens. Taken
	// credits will be immediately retired, unless disable_auto_retire is set to
	// true. When set to true, credits may be received in either a tradable or
	// retired state, depending on the taker's request. If the basket fee
	// governance parameter is set, a fee of equal or greater value must be
	// provided in the request. Only the amount specified in the fee parameter
	// will be charged, even if a greater value fee is provided. Fees from
	// creating a basket are burned.
	Create(context.Context, *MsgCreate) (*MsgCreateResponse, error)
	// Put deposits credits into the basket from the holder's tradable balance in
	// exchange for basket tokens. The amount of tokens received is calculated by
	// the following formula: sum(credits_deposited) * 10^credit_type_exponent.
	// The credits being deposited MUST adhere to the criteria of the basket.
	Put(context.Context, *MsgPut) (*MsgPutResponse, error)
	// Take exchanges basket tokens for credits from the specified basket. Credits
	// are taken deterministically, ordered by oldest batch start date to the most
	// recent batch start date. If the basket has disable_auto_retire set to
	// false, both retirement_jurisdiction and retire_on_take must be set, and the
	// taken credits will be retired immediately upon receipt. Otherwise, credits
	// may be received as tradable or retired, based on the request.
	Take(context.Context, *MsgTake) (*MsgTakeResponse, error)
	// UpdateBasketFee is a governance method that allows for updating the basket
	// creation fee. If not set, the basket creation fee will be removed and no
	// fee will be required to create a basket.
	//
	// Since Revision 2
	UpdateBasketFee(context.Context, *MsgUpdateBasketFee) (*MsgUpdateBasketFeeResponse, error)
	// UpdateCurator updates basket curator.
	//
	// Since Revision 2
	UpdateCurator(context.Context, *MsgUpdateCurator) (*MsgUpdateCuratorResponse, error)
	// UpdateDateCriteria is a governance method that allows for updating the date
	// criteria of a basket. Updating basket date criteria could affect the value
	// of basket tokens and therefore requires a network-wide governance process.
	//
	// Since Revision 3
	UpdateDateCriteria(context.Context, *MsgUpdateDateCriteria) (*MsgUpdateDateCriteriaResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTake

type MsgTake struct {
	// owner is the owner of the basket tokens.
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// basket_denom is the basket bank denom to take credits from.
	BasketDenom string `protobuf:"bytes,2,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// amount is the integer number of basket tokens to convert into credits.
	Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// retirement_location is the optional retirement jurisdiction for the
	// credits which will be used only if retire_on_take is true.
	//
	// Deprecated (Since Revision 1): This field will be removed in the next
	// version in favor of retirement_jurisdiction. Only one of these need to be
	// set and retirement_jurisdiction will be used if both are set.
	RetirementLocation string `protobuf:"bytes,4,opt,name=retirement_location,json=retirementLocation,proto3" json:"retirement_location,omitempty"` // Deprecated: Do not use.
	// retire_on_take is a boolean that dictates whether the ecocredits
	// received in exchange for the basket tokens will be received as
	// retired or tradable credits. If the basket has disable_auto_retire set to
	// false, retire_on_take MUST be set to true, and a retirement jurisdiction
	// must be provided.
	RetireOnTake bool `protobuf:"varint,5,opt,name=retire_on_take,json=retireOnTake,proto3" json:"retire_on_take,omitempty"`
	// retirement_jurisdiction is the optional retirement jurisdiction for the
	// credits which will be used only if retire_on_take is true.
	//
	// Since Revision 1
	RetirementJurisdiction string `` /* 127-byte string literal not displayed */
	// retirement_reason is any arbitrary string that specifies the reason for
	// retiring credits. The reason will be included in EventRetire and is not
	// stored in state.
	//
	// Since Revision 2
	RetirementReason string `protobuf:"bytes,7,opt,name=retirement_reason,json=retirementReason,proto3" json:"retirement_reason,omitempty"`
}

MsgTakeFromBasket is the Msg/TakeFromBasket request type.

func (*MsgTake) Descriptor

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

func (*MsgTake) GetAmount

func (m *MsgTake) GetAmount() string

func (*MsgTake) GetBasketDenom

func (m *MsgTake) GetBasketDenom() string

func (*MsgTake) GetOwner

func (m *MsgTake) GetOwner() string

func (*MsgTake) GetRetireOnTake

func (m *MsgTake) GetRetireOnTake() bool

func (*MsgTake) GetRetirementJurisdiction

func (m *MsgTake) GetRetirementJurisdiction() string

func (*MsgTake) GetRetirementLocation deprecated

func (m *MsgTake) GetRetirementLocation() string

Deprecated: Do not use.

func (*MsgTake) GetRetirementReason

func (m *MsgTake) GetRetirementReason() string

func (MsgTake) GetSignBytes

func (m MsgTake) GetSignBytes() []byte

GetSignBytes implements LegacyMsg.

func (MsgTake) GetSigners

func (m MsgTake) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgTake.

func (*MsgTake) Marshal

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

func (*MsgTake) MarshalTo

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

func (*MsgTake) MarshalToSizedBuffer

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

func (*MsgTake) ProtoMessage

func (*MsgTake) ProtoMessage()

func (*MsgTake) Reset

func (m *MsgTake) Reset()

func (MsgTake) Route

func (m MsgTake) Route() string

Route implements LegacyMsg.

func (*MsgTake) Size

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

func (*MsgTake) String

func (m *MsgTake) String() string

func (MsgTake) Type

func (m MsgTake) Type() string

Type implements LegacyMsg.

func (*MsgTake) Unmarshal

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

func (MsgTake) ValidateBasic

func (m MsgTake) ValidateBasic() error

ValidateBasic does a stateless sanity check on the provided data.

func (*MsgTake) XXX_DiscardUnknown

func (m *MsgTake) XXX_DiscardUnknown()

func (*MsgTake) XXX_Marshal

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

func (*MsgTake) XXX_Merge

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

func (*MsgTake) XXX_Size

func (m *MsgTake) XXX_Size() int

func (*MsgTake) XXX_Unmarshal

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

type MsgTakeResponse

type MsgTakeResponse struct {
	// credits are the credits taken out of the basket.
	Credits []*BasketCredit `protobuf:"bytes,1,rep,name=credits,proto3" json:"credits,omitempty"`
}

MsgTakeFromBasketResponse is the Msg/TakeFromBasket response type.

func (*MsgTakeResponse) Descriptor

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

func (*MsgTakeResponse) GetCredits

func (m *MsgTakeResponse) GetCredits() []*BasketCredit

func (*MsgTakeResponse) Marshal

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

func (*MsgTakeResponse) MarshalTo

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

func (*MsgTakeResponse) MarshalToSizedBuffer

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

func (*MsgTakeResponse) ProtoMessage

func (*MsgTakeResponse) ProtoMessage()

func (*MsgTakeResponse) Reset

func (m *MsgTakeResponse) Reset()

func (*MsgTakeResponse) Size

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

func (*MsgTakeResponse) String

func (m *MsgTakeResponse) String() string

func (*MsgTakeResponse) Unmarshal

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

func (*MsgTakeResponse) XXX_DiscardUnknown

func (m *MsgTakeResponse) XXX_DiscardUnknown()

func (*MsgTakeResponse) XXX_Marshal

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

func (*MsgTakeResponse) XXX_Merge

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

func (*MsgTakeResponse) XXX_Size

func (m *MsgTakeResponse) XXX_Size() int

func (*MsgTakeResponse) XXX_Unmarshal

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

type MsgUpdateBasketFee

type MsgUpdateBasketFee struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// fee is the basket creation fee. If not set, the basket creation fee will be
	// removed and no fee will be required to create a basket.
	Fee *types.Coin `protobuf:"bytes,2,opt,name=fee,proto3" json:"fee,omitempty"`
}

MsgUpdateBasketFee is the Msg/UpdateBasketFee request type.

Since Revision 2

func (*MsgUpdateBasketFee) Descriptor

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

func (*MsgUpdateBasketFee) GetAuthority

func (m *MsgUpdateBasketFee) GetAuthority() string

func (*MsgUpdateBasketFee) GetFee

func (m *MsgUpdateBasketFee) GetFee() *types.Coin

func (MsgUpdateBasketFee) GetSignBytes

func (m MsgUpdateBasketFee) GetSignBytes() []byte

GetSignBytes implements LegacyMsg.

func (MsgUpdateBasketFee) GetSigners

func (m MsgUpdateBasketFee) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgUpdateBasketFee.

func (*MsgUpdateBasketFee) Marshal

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

func (*MsgUpdateBasketFee) MarshalTo

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

func (*MsgUpdateBasketFee) MarshalToSizedBuffer

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

func (*MsgUpdateBasketFee) ProtoMessage

func (*MsgUpdateBasketFee) ProtoMessage()

func (*MsgUpdateBasketFee) Reset

func (m *MsgUpdateBasketFee) Reset()

func (MsgUpdateBasketFee) Route

func (m MsgUpdateBasketFee) Route() string

Route implements LegacyMsg.

func (*MsgUpdateBasketFee) Size

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

func (*MsgUpdateBasketFee) String

func (m *MsgUpdateBasketFee) String() string

func (MsgUpdateBasketFee) Type

func (m MsgUpdateBasketFee) Type() string

Type implements LegacyMsg.

func (*MsgUpdateBasketFee) Unmarshal

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

func (MsgUpdateBasketFee) ValidateBasic

func (m MsgUpdateBasketFee) ValidateBasic() error

ValidateBasic does a stateless sanity check on the provided data.

func (*MsgUpdateBasketFee) XXX_DiscardUnknown

func (m *MsgUpdateBasketFee) XXX_DiscardUnknown()

func (*MsgUpdateBasketFee) XXX_Marshal

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

func (*MsgUpdateBasketFee) XXX_Merge

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

func (*MsgUpdateBasketFee) XXX_Size

func (m *MsgUpdateBasketFee) XXX_Size() int

func (*MsgUpdateBasketFee) XXX_Unmarshal

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

type MsgUpdateBasketFeeResponse

type MsgUpdateBasketFeeResponse struct {
}

MsgUpdateBasketFeeResponse is the Msg/UpdateBasketFee response type.

Since Revision 2

func (*MsgUpdateBasketFeeResponse) Descriptor

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

func (*MsgUpdateBasketFeeResponse) Marshal

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

func (*MsgUpdateBasketFeeResponse) MarshalTo

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

func (*MsgUpdateBasketFeeResponse) MarshalToSizedBuffer

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

func (*MsgUpdateBasketFeeResponse) ProtoMessage

func (*MsgUpdateBasketFeeResponse) ProtoMessage()

func (*MsgUpdateBasketFeeResponse) Reset

func (m *MsgUpdateBasketFeeResponse) Reset()

func (*MsgUpdateBasketFeeResponse) Size

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

func (*MsgUpdateBasketFeeResponse) String

func (m *MsgUpdateBasketFeeResponse) String() string

func (*MsgUpdateBasketFeeResponse) Unmarshal

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

func (*MsgUpdateBasketFeeResponse) XXX_DiscardUnknown

func (m *MsgUpdateBasketFeeResponse) XXX_DiscardUnknown()

func (*MsgUpdateBasketFeeResponse) XXX_Marshal

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

func (*MsgUpdateBasketFeeResponse) XXX_Merge

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

func (*MsgUpdateBasketFeeResponse) XXX_Size

func (m *MsgUpdateBasketFeeResponse) XXX_Size() int

func (*MsgUpdateBasketFeeResponse) XXX_Unmarshal

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

type MsgUpdateCurator

type MsgUpdateCurator struct {
	// curator is the address of the basket curator.
	Curator string `protobuf:"bytes,1,opt,name=curator,proto3" json:"curator,omitempty"`
	// denom is the unique identifier of the basket.
	Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	// new_curator is the address of the account that will become the
	// new curator of the basket.
	NewCurator string `protobuf:"bytes,3,opt,name=new_curator,json=newCurator,proto3" json:"new_curator,omitempty"`
}

MsgUpdateCurator is the Msg/UpdateCurator request type.

Since Revision 2

func (*MsgUpdateCurator) Descriptor

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

func (*MsgUpdateCurator) GetCurator

func (m *MsgUpdateCurator) GetCurator() string

func (*MsgUpdateCurator) GetDenom

func (m *MsgUpdateCurator) GetDenom() string

func (*MsgUpdateCurator) GetNewCurator

func (m *MsgUpdateCurator) GetNewCurator() string

func (MsgUpdateCurator) GetSignBytes

func (m MsgUpdateCurator) GetSignBytes() []byte

GetSignBytes implements LegacyMsg.

func (MsgUpdateCurator) GetSigners

func (m MsgUpdateCurator) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgUpdateCurator.

func (*MsgUpdateCurator) Marshal

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

func (*MsgUpdateCurator) MarshalTo

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

func (*MsgUpdateCurator) MarshalToSizedBuffer

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

func (*MsgUpdateCurator) ProtoMessage

func (*MsgUpdateCurator) ProtoMessage()

func (*MsgUpdateCurator) Reset

func (m *MsgUpdateCurator) Reset()

func (MsgUpdateCurator) Route

func (m MsgUpdateCurator) Route() string

Route implements LegacyMsg.

func (*MsgUpdateCurator) Size

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

func (*MsgUpdateCurator) String

func (m *MsgUpdateCurator) String() string

func (MsgUpdateCurator) Type

func (m MsgUpdateCurator) Type() string

Type implements LegacyMsg.

func (*MsgUpdateCurator) Unmarshal

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

func (MsgUpdateCurator) ValidateBasic

func (m MsgUpdateCurator) ValidateBasic() error

ValidateBasic does a stateless sanity check on the provided data.

func (*MsgUpdateCurator) XXX_DiscardUnknown

func (m *MsgUpdateCurator) XXX_DiscardUnknown()

func (*MsgUpdateCurator) XXX_Marshal

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

func (*MsgUpdateCurator) XXX_Merge

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

func (*MsgUpdateCurator) XXX_Size

func (m *MsgUpdateCurator) XXX_Size() int

func (*MsgUpdateCurator) XXX_Unmarshal

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

type MsgUpdateCuratorResponse

type MsgUpdateCuratorResponse struct {
}

MsgUpdateCuratorResponse is the Msg/UpdateCurator response type.

Since Revision 2

func (*MsgUpdateCuratorResponse) Descriptor

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

func (*MsgUpdateCuratorResponse) Marshal

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

func (*MsgUpdateCuratorResponse) MarshalTo

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

func (*MsgUpdateCuratorResponse) MarshalToSizedBuffer

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

func (*MsgUpdateCuratorResponse) ProtoMessage

func (*MsgUpdateCuratorResponse) ProtoMessage()

func (*MsgUpdateCuratorResponse) Reset

func (m *MsgUpdateCuratorResponse) Reset()

func (*MsgUpdateCuratorResponse) Size

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

func (*MsgUpdateCuratorResponse) String

func (m *MsgUpdateCuratorResponse) String() string

func (*MsgUpdateCuratorResponse) Unmarshal

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

func (*MsgUpdateCuratorResponse) XXX_DiscardUnknown

func (m *MsgUpdateCuratorResponse) XXX_DiscardUnknown()

func (*MsgUpdateCuratorResponse) XXX_Marshal

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

func (*MsgUpdateCuratorResponse) XXX_Merge

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

func (*MsgUpdateCuratorResponse) XXX_Size

func (m *MsgUpdateCuratorResponse) XXX_Size() int

func (*MsgUpdateCuratorResponse) XXX_Unmarshal

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

type MsgUpdateDateCriteria added in v3.3.0

type MsgUpdateDateCriteria struct {
	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// denom is the unique identifier of the basket.
	Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	// new_date_criteria is the new date criteria for batches admitted to the
	// basket. At most, only one of the date criteria fields can be set.
	NewDateCriteria *DateCriteria `protobuf:"bytes,8,opt,name=new_date_criteria,json=newDateCriteria,proto3" json:"new_date_criteria,omitempty"`
}

MsgUpdateDateCriteria is the Msg/UpdateDateCriteria request type.

Since Revision 3

func (*MsgUpdateDateCriteria) Descriptor added in v3.3.0

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

func (*MsgUpdateDateCriteria) GetAuthority added in v3.3.0

func (m *MsgUpdateDateCriteria) GetAuthority() string

func (*MsgUpdateDateCriteria) GetDenom added in v3.3.0

func (m *MsgUpdateDateCriteria) GetDenom() string

func (*MsgUpdateDateCriteria) GetNewDateCriteria added in v3.3.0

func (m *MsgUpdateDateCriteria) GetNewDateCriteria() *DateCriteria

func (MsgUpdateDateCriteria) GetSignBytes added in v3.3.0

func (m MsgUpdateDateCriteria) GetSignBytes() []byte

GetSignBytes implements LegacyMsg.

func (MsgUpdateDateCriteria) GetSigners added in v3.3.0

func (m MsgUpdateDateCriteria) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgUpdateDateCriteria.

func (*MsgUpdateDateCriteria) Marshal added in v3.3.0

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

func (*MsgUpdateDateCriteria) MarshalTo added in v3.3.0

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

func (*MsgUpdateDateCriteria) MarshalToSizedBuffer added in v3.3.0

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

func (*MsgUpdateDateCriteria) ProtoMessage added in v3.3.0

func (*MsgUpdateDateCriteria) ProtoMessage()

func (*MsgUpdateDateCriteria) Reset added in v3.3.0

func (m *MsgUpdateDateCriteria) Reset()

func (MsgUpdateDateCriteria) Route added in v3.3.0

func (m MsgUpdateDateCriteria) Route() string

Route implements LegacyMsg.

func (*MsgUpdateDateCriteria) Size added in v3.3.0

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

func (*MsgUpdateDateCriteria) String added in v3.3.0

func (m *MsgUpdateDateCriteria) String() string

func (MsgUpdateDateCriteria) Type added in v3.3.0

func (m MsgUpdateDateCriteria) Type() string

Type implements LegacyMsg.

func (*MsgUpdateDateCriteria) Unmarshal added in v3.3.0

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

func (MsgUpdateDateCriteria) ValidateBasic added in v3.3.0

func (m MsgUpdateDateCriteria) ValidateBasic() error

ValidateBasic does a stateless sanity check on the provided data.

func (*MsgUpdateDateCriteria) XXX_DiscardUnknown added in v3.3.0

func (m *MsgUpdateDateCriteria) XXX_DiscardUnknown()

func (*MsgUpdateDateCriteria) XXX_Marshal added in v3.3.0

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

func (*MsgUpdateDateCriteria) XXX_Merge added in v3.3.0

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

func (*MsgUpdateDateCriteria) XXX_Size added in v3.3.0

func (m *MsgUpdateDateCriteria) XXX_Size() int

func (*MsgUpdateDateCriteria) XXX_Unmarshal added in v3.3.0

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

type MsgUpdateDateCriteriaResponse added in v3.3.0

type MsgUpdateDateCriteriaResponse struct {
}

MsgUpdateDateCriteriaResponse is the Msg/UpdateDateCriteria response type.

Since Revision 3

func (*MsgUpdateDateCriteriaResponse) Descriptor added in v3.3.0

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

func (*MsgUpdateDateCriteriaResponse) Marshal added in v3.3.0

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

func (*MsgUpdateDateCriteriaResponse) MarshalTo added in v3.3.0

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

func (*MsgUpdateDateCriteriaResponse) MarshalToSizedBuffer added in v3.3.0

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

func (*MsgUpdateDateCriteriaResponse) ProtoMessage added in v3.3.0

func (*MsgUpdateDateCriteriaResponse) ProtoMessage()

func (*MsgUpdateDateCriteriaResponse) Reset added in v3.3.0

func (m *MsgUpdateDateCriteriaResponse) Reset()

func (*MsgUpdateDateCriteriaResponse) Size added in v3.3.0

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

func (*MsgUpdateDateCriteriaResponse) String added in v3.3.0

func (*MsgUpdateDateCriteriaResponse) Unmarshal added in v3.3.0

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

func (*MsgUpdateDateCriteriaResponse) XXX_DiscardUnknown added in v3.3.0

func (m *MsgUpdateDateCriteriaResponse) XXX_DiscardUnknown()

func (*MsgUpdateDateCriteriaResponse) XXX_Marshal added in v3.3.0

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

func (*MsgUpdateDateCriteriaResponse) XXX_Merge added in v3.3.0

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

func (*MsgUpdateDateCriteriaResponse) XXX_Size added in v3.3.0

func (m *MsgUpdateDateCriteriaResponse) XXX_Size() int

func (*MsgUpdateDateCriteriaResponse) XXX_Unmarshal added in v3.3.0

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

type QueryBasketBalanceRequest

type QueryBasketBalanceRequest struct {
	// basket_denom is the denom of the basket.
	BasketDenom string `protobuf:"bytes,1,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// batch_denom is the denom of the credit batch.
	BatchDenom string `protobuf:"bytes,2,opt,name=batch_denom,json=batchDenom,proto3" json:"batch_denom,omitempty"`
}

QueryBasketBalanceRequest is the Query/BasketBalance request type.

func (*QueryBasketBalanceRequest) Descriptor

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

func (*QueryBasketBalanceRequest) GetBasketDenom

func (m *QueryBasketBalanceRequest) GetBasketDenom() string

func (*QueryBasketBalanceRequest) GetBatchDenom

func (m *QueryBasketBalanceRequest) GetBatchDenom() string

func (*QueryBasketBalanceRequest) Marshal

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

func (*QueryBasketBalanceRequest) MarshalTo

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

func (*QueryBasketBalanceRequest) MarshalToSizedBuffer

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

func (*QueryBasketBalanceRequest) ProtoMessage

func (*QueryBasketBalanceRequest) ProtoMessage()

func (*QueryBasketBalanceRequest) Reset

func (m *QueryBasketBalanceRequest) Reset()

func (*QueryBasketBalanceRequest) Size

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

func (*QueryBasketBalanceRequest) String

func (m *QueryBasketBalanceRequest) String() string

func (*QueryBasketBalanceRequest) Unmarshal

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

func (*QueryBasketBalanceRequest) XXX_DiscardUnknown

func (m *QueryBasketBalanceRequest) XXX_DiscardUnknown()

func (*QueryBasketBalanceRequest) XXX_Marshal

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

func (*QueryBasketBalanceRequest) XXX_Merge

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

func (*QueryBasketBalanceRequest) XXX_Size

func (m *QueryBasketBalanceRequest) XXX_Size() int

func (*QueryBasketBalanceRequest) XXX_Unmarshal

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

type QueryBasketBalanceResponse

type QueryBasketBalanceResponse struct {
	// balance is the amount of the queried credit batch in the basket.
	Balance string `protobuf:"bytes,1,opt,name=balance,proto3" json:"balance,omitempty"`
}

QueryBasketBalanceResponse is the Query/BasketBalance response type.

func (*QueryBasketBalanceResponse) Descriptor

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

func (*QueryBasketBalanceResponse) GetBalance

func (m *QueryBasketBalanceResponse) GetBalance() string

func (*QueryBasketBalanceResponse) Marshal

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

func (*QueryBasketBalanceResponse) MarshalTo

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

func (*QueryBasketBalanceResponse) MarshalToSizedBuffer

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

func (*QueryBasketBalanceResponse) ProtoMessage

func (*QueryBasketBalanceResponse) ProtoMessage()

func (*QueryBasketBalanceResponse) Reset

func (m *QueryBasketBalanceResponse) Reset()

func (*QueryBasketBalanceResponse) Size

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

func (*QueryBasketBalanceResponse) String

func (m *QueryBasketBalanceResponse) String() string

func (*QueryBasketBalanceResponse) Unmarshal

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

func (*QueryBasketBalanceResponse) XXX_DiscardUnknown

func (m *QueryBasketBalanceResponse) XXX_DiscardUnknown()

func (*QueryBasketBalanceResponse) XXX_Marshal

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

func (*QueryBasketBalanceResponse) XXX_Merge

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

func (*QueryBasketBalanceResponse) XXX_Size

func (m *QueryBasketBalanceResponse) XXX_Size() int

func (*QueryBasketBalanceResponse) XXX_Unmarshal

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

type QueryBasketBalancesRequest

type QueryBasketBalancesRequest struct {
	// basket_denom is the denom of the basket.
	BasketDenom string `protobuf:"bytes,1,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryBasketBalancesRequest is the Query/BasketBalances request type.

func (*QueryBasketBalancesRequest) Descriptor

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

func (*QueryBasketBalancesRequest) GetBasketDenom

func (m *QueryBasketBalancesRequest) GetBasketDenom() string

func (*QueryBasketBalancesRequest) GetPagination

func (m *QueryBasketBalancesRequest) GetPagination() *query.PageRequest

func (*QueryBasketBalancesRequest) Marshal

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

func (*QueryBasketBalancesRequest) MarshalTo

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

func (*QueryBasketBalancesRequest) MarshalToSizedBuffer

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

func (*QueryBasketBalancesRequest) ProtoMessage

func (*QueryBasketBalancesRequest) ProtoMessage()

func (*QueryBasketBalancesRequest) Reset

func (m *QueryBasketBalancesRequest) Reset()

func (*QueryBasketBalancesRequest) Size

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

func (*QueryBasketBalancesRequest) String

func (m *QueryBasketBalancesRequest) String() string

func (*QueryBasketBalancesRequest) Unmarshal

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

func (*QueryBasketBalancesRequest) XXX_DiscardUnknown

func (m *QueryBasketBalancesRequest) XXX_DiscardUnknown()

func (*QueryBasketBalancesRequest) XXX_Marshal

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

func (*QueryBasketBalancesRequest) XXX_Merge

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

func (*QueryBasketBalancesRequest) XXX_Size

func (m *QueryBasketBalancesRequest) XXX_Size() int

func (*QueryBasketBalancesRequest) XXX_Unmarshal

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

type QueryBasketBalancesResponse

type QueryBasketBalancesResponse struct {
	// balances is a list of credit balances in the basket.
	//
	// Deprecated (Since Revision 1): This field is still populated using
	// BasketBalance but will be updated to use BasketBalanceInfo in the next
	// version. In the meantime baskets_info is available using BasketBalanceInfo.
	Balances []*BasketBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` // Deprecated: Do not use.
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// balances_info is a list of credit balances in the basket.
	//
	// Since Revision 1
	BalancesInfo []*BasketBalanceInfo `protobuf:"bytes,3,rep,name=balances_info,json=balancesInfo,proto3" json:"balances_info,omitempty"`
}

QueryBasketBalancesResponse is the Query/BasketBalances response type.

func (*QueryBasketBalancesResponse) Descriptor

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

func (*QueryBasketBalancesResponse) GetBalances deprecated

func (m *QueryBasketBalancesResponse) GetBalances() []*BasketBalance

Deprecated: Do not use.

func (*QueryBasketBalancesResponse) GetBalancesInfo

func (m *QueryBasketBalancesResponse) GetBalancesInfo() []*BasketBalanceInfo

func (*QueryBasketBalancesResponse) GetPagination

func (m *QueryBasketBalancesResponse) GetPagination() *query.PageResponse

func (*QueryBasketBalancesResponse) Marshal

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

func (*QueryBasketBalancesResponse) MarshalTo

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

func (*QueryBasketBalancesResponse) MarshalToSizedBuffer

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

func (*QueryBasketBalancesResponse) ProtoMessage

func (*QueryBasketBalancesResponse) ProtoMessage()

func (*QueryBasketBalancesResponse) Reset

func (m *QueryBasketBalancesResponse) Reset()

func (*QueryBasketBalancesResponse) Size

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

func (*QueryBasketBalancesResponse) String

func (m *QueryBasketBalancesResponse) String() string

func (*QueryBasketBalancesResponse) Unmarshal

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

func (*QueryBasketBalancesResponse) XXX_DiscardUnknown

func (m *QueryBasketBalancesResponse) XXX_DiscardUnknown()

func (*QueryBasketBalancesResponse) XXX_Marshal

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

func (*QueryBasketBalancesResponse) XXX_Merge

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

func (*QueryBasketBalancesResponse) XXX_Size

func (m *QueryBasketBalancesResponse) XXX_Size() int

func (*QueryBasketBalancesResponse) XXX_Unmarshal

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

type QueryBasketFeeRequest

type QueryBasketFeeRequest struct {
}

QueryBasketFeeRequest is the Query/BasketFee request type.

Since Revision 2

func (*QueryBasketFeeRequest) Descriptor

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

func (*QueryBasketFeeRequest) Marshal

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

func (*QueryBasketFeeRequest) MarshalTo

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

func (*QueryBasketFeeRequest) MarshalToSizedBuffer

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

func (*QueryBasketFeeRequest) ProtoMessage

func (*QueryBasketFeeRequest) ProtoMessage()

func (*QueryBasketFeeRequest) Reset

func (m *QueryBasketFeeRequest) Reset()

func (*QueryBasketFeeRequest) Size

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

func (*QueryBasketFeeRequest) String

func (m *QueryBasketFeeRequest) String() string

func (*QueryBasketFeeRequest) Unmarshal

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

func (*QueryBasketFeeRequest) XXX_DiscardUnknown

func (m *QueryBasketFeeRequest) XXX_DiscardUnknown()

func (*QueryBasketFeeRequest) XXX_Marshal

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

func (*QueryBasketFeeRequest) XXX_Merge

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

func (*QueryBasketFeeRequest) XXX_Size

func (m *QueryBasketFeeRequest) XXX_Size() int

func (*QueryBasketFeeRequest) XXX_Unmarshal

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

type QueryBasketFeeResponse

type QueryBasketFeeResponse struct {
	// fee is the basket creation fee. If not set, a basket creation fee is not
	// required.
	Fee *types.Coin `protobuf:"bytes,1,opt,name=fee,proto3" json:"fee,omitempty"`
}

QueryBasketFeeResponse is the Query/BasketFee response type.

Since Revision 2

func (*QueryBasketFeeResponse) Descriptor

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

func (*QueryBasketFeeResponse) GetFee

func (m *QueryBasketFeeResponse) GetFee() *types.Coin

func (*QueryBasketFeeResponse) Marshal

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

func (*QueryBasketFeeResponse) MarshalTo

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

func (*QueryBasketFeeResponse) MarshalToSizedBuffer

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

func (*QueryBasketFeeResponse) ProtoMessage

func (*QueryBasketFeeResponse) ProtoMessage()

func (*QueryBasketFeeResponse) Reset

func (m *QueryBasketFeeResponse) Reset()

func (*QueryBasketFeeResponse) Size

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

func (*QueryBasketFeeResponse) String

func (m *QueryBasketFeeResponse) String() string

func (*QueryBasketFeeResponse) Unmarshal

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

func (*QueryBasketFeeResponse) XXX_DiscardUnknown

func (m *QueryBasketFeeResponse) XXX_DiscardUnknown()

func (*QueryBasketFeeResponse) XXX_Marshal

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

func (*QueryBasketFeeResponse) XXX_Merge

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

func (*QueryBasketFeeResponse) XXX_Size

func (m *QueryBasketFeeResponse) XXX_Size() int

func (*QueryBasketFeeResponse) XXX_Unmarshal

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

type QueryBasketRequest

type QueryBasketRequest struct {
	// basket_denom represents the denom of the basket to query.
	BasketDenom string `protobuf:"bytes,1,opt,name=basket_denom,json=basketDenom,proto3" json:"basket_denom,omitempty"`
}

QueryBasketRequest is the Query/Basket request type.

func (*QueryBasketRequest) Descriptor

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

func (*QueryBasketRequest) GetBasketDenom

func (m *QueryBasketRequest) GetBasketDenom() string

func (*QueryBasketRequest) Marshal

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

func (*QueryBasketRequest) MarshalTo

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

func (*QueryBasketRequest) MarshalToSizedBuffer

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

func (*QueryBasketRequest) ProtoMessage

func (*QueryBasketRequest) ProtoMessage()

func (*QueryBasketRequest) Reset

func (m *QueryBasketRequest) Reset()

func (*QueryBasketRequest) Size

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

func (*QueryBasketRequest) String

func (m *QueryBasketRequest) String() string

func (*QueryBasketRequest) Unmarshal

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

func (*QueryBasketRequest) XXX_DiscardUnknown

func (m *QueryBasketRequest) XXX_DiscardUnknown()

func (*QueryBasketRequest) XXX_Marshal

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

func (*QueryBasketRequest) XXX_Merge

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

func (*QueryBasketRequest) XXX_Size

func (m *QueryBasketRequest) XXX_Size() int

func (*QueryBasketRequest) XXX_Unmarshal

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

type QueryBasketResponse

type QueryBasketResponse struct {
	// basket is the queried basket.
	//
	// Deprecated (Since Revision 1): This field is still populated using Basket
	// but will be updated to use BasketInfo in the next version. In the meantime
	// basket_info is available using BasketInfo.
	Basket *Basket `protobuf:"bytes,1,opt,name=basket,proto3" json:"basket,omitempty"` // Deprecated: Do not use.
	// classes are the credit classes that can be deposited in the basket.
	Classes []string `protobuf:"bytes,2,rep,name=classes,proto3" json:"classes,omitempty"`
	// basket_info is the queried basket.
	//
	// Since Revision 1
	BasketInfo *BasketInfo `protobuf:"bytes,3,opt,name=basket_info,json=basketInfo,proto3" json:"basket_info,omitempty"`
}

QueryBasketResponse is the Query/Basket response type.

func (*QueryBasketResponse) Descriptor

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

func (*QueryBasketResponse) GetBasket deprecated

func (m *QueryBasketResponse) GetBasket() *Basket

Deprecated: Do not use.

func (*QueryBasketResponse) GetBasketInfo

func (m *QueryBasketResponse) GetBasketInfo() *BasketInfo

func (*QueryBasketResponse) GetClasses

func (m *QueryBasketResponse) GetClasses() []string

func (*QueryBasketResponse) Marshal

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

func (*QueryBasketResponse) MarshalTo

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

func (*QueryBasketResponse) MarshalToSizedBuffer

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

func (*QueryBasketResponse) ProtoMessage

func (*QueryBasketResponse) ProtoMessage()

func (*QueryBasketResponse) Reset

func (m *QueryBasketResponse) Reset()

func (*QueryBasketResponse) Size

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

func (*QueryBasketResponse) String

func (m *QueryBasketResponse) String() string

func (*QueryBasketResponse) Unmarshal

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

func (*QueryBasketResponse) XXX_DiscardUnknown

func (m *QueryBasketResponse) XXX_DiscardUnknown()

func (*QueryBasketResponse) XXX_Marshal

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

func (*QueryBasketResponse) XXX_Merge

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

func (*QueryBasketResponse) XXX_Size

func (m *QueryBasketResponse) XXX_Size() int

func (*QueryBasketResponse) XXX_Unmarshal

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

type QueryBasketsRequest

type QueryBasketsRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryBasketsRequest is the Query/Baskets request type.

func (*QueryBasketsRequest) Descriptor

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

func (*QueryBasketsRequest) GetPagination

func (m *QueryBasketsRequest) GetPagination() *query.PageRequest

func (*QueryBasketsRequest) Marshal

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

func (*QueryBasketsRequest) MarshalTo

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

func (*QueryBasketsRequest) MarshalToSizedBuffer

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

func (*QueryBasketsRequest) ProtoMessage

func (*QueryBasketsRequest) ProtoMessage()

func (*QueryBasketsRequest) Reset

func (m *QueryBasketsRequest) Reset()

func (*QueryBasketsRequest) Size

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

func (*QueryBasketsRequest) String

func (m *QueryBasketsRequest) String() string

func (*QueryBasketsRequest) Unmarshal

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

func (*QueryBasketsRequest) XXX_DiscardUnknown

func (m *QueryBasketsRequest) XXX_DiscardUnknown()

func (*QueryBasketsRequest) XXX_Marshal

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

func (*QueryBasketsRequest) XXX_Merge

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

func (*QueryBasketsRequest) XXX_Size

func (m *QueryBasketsRequest) XXX_Size() int

func (*QueryBasketsRequest) XXX_Unmarshal

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

type QueryBasketsResponse

type QueryBasketsResponse struct {
	// baskets are the fetched baskets.
	//
	// Deprecated (Since Revision 1): This field is still populated using Basket
	// but will be updated to use BasketInfo in the next version. In the meantime
	// baskets_info is available using BasketInfo.
	Baskets []*Basket `protobuf:"bytes,1,rep,name=baskets,proto3" json:"baskets,omitempty"` // Deprecated: Do not use.
	// pagination defines the pagination in the response.
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// baskets_info are the fetched baskets.
	//
	// Since Revision 1
	BasketsInfo []*BasketInfo `protobuf:"bytes,3,rep,name=baskets_info,json=basketsInfo,proto3" json:"baskets_info,omitempty"`
}

QueryBasketsResponse is the Query/Baskets response type.

func (*QueryBasketsResponse) Descriptor

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

func (*QueryBasketsResponse) GetBaskets deprecated

func (m *QueryBasketsResponse) GetBaskets() []*Basket

Deprecated: Do not use.

func (*QueryBasketsResponse) GetBasketsInfo

func (m *QueryBasketsResponse) GetBasketsInfo() []*BasketInfo

func (*QueryBasketsResponse) GetPagination

func (m *QueryBasketsResponse) GetPagination() *query.PageResponse

func (*QueryBasketsResponse) Marshal

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

func (*QueryBasketsResponse) MarshalTo

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

func (*QueryBasketsResponse) MarshalToSizedBuffer

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

func (*QueryBasketsResponse) ProtoMessage

func (*QueryBasketsResponse) ProtoMessage()

func (*QueryBasketsResponse) Reset

func (m *QueryBasketsResponse) Reset()

func (*QueryBasketsResponse) Size

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

func (*QueryBasketsResponse) String

func (m *QueryBasketsResponse) String() string

func (*QueryBasketsResponse) Unmarshal

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

func (*QueryBasketsResponse) XXX_DiscardUnknown

func (m *QueryBasketsResponse) XXX_DiscardUnknown()

func (*QueryBasketsResponse) XXX_Marshal

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

func (*QueryBasketsResponse) XXX_Merge

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

func (*QueryBasketsResponse) XXX_Size

func (m *QueryBasketsResponse) XXX_Size() int

func (*QueryBasketsResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Basket queries one basket by denom.
	Basket(ctx context.Context, in *QueryBasketRequest, opts ...grpc.CallOption) (*QueryBasketResponse, error)
	// Baskets lists all baskets in the ecocredit module.
	Baskets(ctx context.Context, in *QueryBasketsRequest, opts ...grpc.CallOption) (*QueryBasketsResponse, error)
	// BasketBalances lists the balance of each credit batch in the basket.
	BasketBalances(ctx context.Context, in *QueryBasketBalancesRequest, opts ...grpc.CallOption) (*QueryBasketBalancesResponse, error)
	// BasketBalance queries the balance of a specific credit batch in the basket.
	BasketBalance(ctx context.Context, in *QueryBasketBalanceRequest, opts ...grpc.CallOption) (*QueryBasketBalanceResponse, error)
	// BasketFee returns the basket creation fee. If not set, a basket creation
	// fee is not required.
	//
	// Since Revision 2
	BasketFee(ctx context.Context, in *QueryBasketFeeRequest, opts ...grpc.CallOption) (*QueryBasketFeeResponse, 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 QueryServer

type QueryServer interface {
	// Basket queries one basket by denom.
	Basket(context.Context, *QueryBasketRequest) (*QueryBasketResponse, error)
	// Baskets lists all baskets in the ecocredit module.
	Baskets(context.Context, *QueryBasketsRequest) (*QueryBasketsResponse, error)
	// BasketBalances lists the balance of each credit batch in the basket.
	BasketBalances(context.Context, *QueryBasketBalancesRequest) (*QueryBasketBalancesResponse, error)
	// BasketBalance queries the balance of a specific credit batch in the basket.
	BasketBalance(context.Context, *QueryBasketBalanceRequest) (*QueryBasketBalanceResponse, error)
	// BasketFee returns the basket creation fee. If not set, a basket creation
	// fee is not required.
	//
	// Since Revision 2
	BasketFee(context.Context, *QueryBasketFeeRequest) (*QueryBasketFeeResponse, error)
}

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Create

func (*UnimplementedMsgServer) Put

func (*UnimplementedMsgServer) Take

func (*UnimplementedMsgServer) UpdateBasketFee

func (*UnimplementedMsgServer) UpdateCurator

func (*UnimplementedMsgServer) UpdateDateCriteria added in v3.3.0

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Basket

func (*UnimplementedQueryServer) BasketBalance

func (*UnimplementedQueryServer) BasketBalances

func (*UnimplementedQueryServer) BasketFee

func (*UnimplementedQueryServer) Baskets

Jump to

Keyboard shortcuts

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