Documentation ¶
Overview ¶
Package basket is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func BasketDenom(name, creditTypeAbbrev string, exponent uint32) (string, string, error)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func RegisterTypes(registry codectypes.InterfaceRegistry)
- func ValidateMsgCreate(m *MsgCreate, minFee sdk.Coins) error
- type Basket
- func (*Basket) Descriptor() ([]byte, []int)
- func (m *Basket) GetBasketDenom() string
- func (m *Basket) GetCreditTypeAbbrev() string
- func (m *Basket) GetDateCriteria() *DateCriteria
- func (m *Basket) GetDisableAutoRetire() bool
- func (m *Basket) GetExponent() uint32
- func (m *Basket) GetId() uint64
- func (m *Basket) GetName() string
- func (m *Basket) Marshal() (dAtA []byte, err error)
- func (m *Basket) MarshalTo(dAtA []byte) (int, error)
- func (m *Basket) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Basket) ProtoMessage()
- func (m *Basket) Reset()
- func (m *Basket) Size() (n int)
- func (m *Basket) String() string
- func (m *Basket) Unmarshal(dAtA []byte) error
- func (m *Basket) XXX_DiscardUnknown()
- func (m *Basket) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Basket) XXX_Merge(src proto.Message)
- func (m *Basket) XXX_Size() int
- func (m *Basket) XXX_Unmarshal(b []byte) error
- type BasketBalance
- func (*BasketBalance) Descriptor() ([]byte, []int)
- func (m *BasketBalance) GetBalance() string
- func (m *BasketBalance) GetBasketId() uint64
- func (m *BasketBalance) GetBatchDenom() string
- func (m *BasketBalance) GetBatchStartDate() *types.Timestamp
- func (m *BasketBalance) Marshal() (dAtA []byte, err error)
- func (m *BasketBalance) MarshalTo(dAtA []byte) (int, error)
- func (m *BasketBalance) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BasketBalance) ProtoMessage()
- func (m *BasketBalance) Reset()
- func (m *BasketBalance) Size() (n int)
- func (m *BasketBalance) String() string
- func (m *BasketBalance) Unmarshal(dAtA []byte) error
- func (m *BasketBalance) XXX_DiscardUnknown()
- func (m *BasketBalance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BasketBalance) XXX_Merge(src proto.Message)
- func (m *BasketBalance) XXX_Size() int
- func (m *BasketBalance) XXX_Unmarshal(b []byte) error
- type BasketClass
- func (*BasketClass) Descriptor() ([]byte, []int)
- func (m *BasketClass) GetBasketId() uint64
- func (m *BasketClass) GetClassId() string
- func (m *BasketClass) Marshal() (dAtA []byte, err error)
- func (m *BasketClass) MarshalTo(dAtA []byte) (int, error)
- func (m *BasketClass) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BasketClass) ProtoMessage()
- func (m *BasketClass) Reset()
- func (m *BasketClass) Size() (n int)
- func (m *BasketClass) String() string
- func (m *BasketClass) Unmarshal(dAtA []byte) error
- func (m *BasketClass) XXX_DiscardUnknown()
- func (m *BasketClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BasketClass) XXX_Merge(src proto.Message)
- func (m *BasketClass) XXX_Size() int
- func (m *BasketClass) XXX_Unmarshal(b []byte) error
- type BasketCredit
- func (*BasketCredit) Descriptor() ([]byte, []int)
- func (m *BasketCredit) GetAmount() string
- func (m *BasketCredit) GetBatchDenom() string
- func (m *BasketCredit) Marshal() (dAtA []byte, err error)
- func (m *BasketCredit) MarshalTo(dAtA []byte) (int, error)
- func (m *BasketCredit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*BasketCredit) ProtoMessage()
- func (m *BasketCredit) Reset()
- func (m *BasketCredit) Size() (n int)
- func (m *BasketCredit) String() string
- func (m *BasketCredit) Unmarshal(dAtA []byte) error
- func (m *BasketCredit) XXX_DiscardUnknown()
- func (m *BasketCredit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *BasketCredit) XXX_Merge(src proto.Message)
- func (m *BasketCredit) XXX_Size() int
- func (m *BasketCredit) XXX_Unmarshal(b []byte) error
- type DateCriteria
- func (*DateCriteria) Descriptor() ([]byte, []int)
- func (m *DateCriteria) GetMinStartDate() *types.Timestamp
- func (m *DateCriteria) GetStartDateWindow() *types.Duration
- func (m *DateCriteria) Marshal() (dAtA []byte, err error)
- func (m *DateCriteria) MarshalTo(dAtA []byte) (int, error)
- func (m *DateCriteria) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DateCriteria) ProtoMessage()
- func (m *DateCriteria) Reset()
- func (m *DateCriteria) Size() (n int)
- func (m *DateCriteria) String() string
- func (d *DateCriteria) ToApi() *basketv1.DateCriteria
- func (m *DateCriteria) Unmarshal(dAtA []byte) error
- func (m *DateCriteria) XXX_DiscardUnknown()
- func (m *DateCriteria) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DateCriteria) XXX_Merge(src proto.Message)
- func (m *DateCriteria) XXX_Size() int
- func (m *DateCriteria) XXX_Unmarshal(b []byte) error
- type EventCreate
- func (*EventCreate) Descriptor() ([]byte, []int)
- func (m *EventCreate) GetBasketDenom() string
- func (m *EventCreate) GetCurator() string
- func (m *EventCreate) Marshal() (dAtA []byte, err error)
- func (m *EventCreate) MarshalTo(dAtA []byte) (int, error)
- func (m *EventCreate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventCreate) ProtoMessage()
- func (m *EventCreate) Reset()
- func (m *EventCreate) Size() (n int)
- func (m *EventCreate) String() string
- func (m *EventCreate) Unmarshal(dAtA []byte) error
- func (m *EventCreate) XXX_DiscardUnknown()
- func (m *EventCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventCreate) XXX_Merge(src proto.Message)
- func (m *EventCreate) XXX_Size() int
- func (m *EventCreate) XXX_Unmarshal(b []byte) error
- type EventPut
- func (*EventPut) Descriptor() ([]byte, []int)
- func (m *EventPut) GetAmount() string
- func (m *EventPut) GetBasketDenom() string
- func (m *EventPut) GetCredits() []*BasketCredit
- func (m *EventPut) GetOwner() string
- func (m *EventPut) Marshal() (dAtA []byte, err error)
- func (m *EventPut) MarshalTo(dAtA []byte) (int, error)
- func (m *EventPut) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventPut) ProtoMessage()
- func (m *EventPut) Reset()
- func (m *EventPut) Size() (n int)
- func (m *EventPut) String() string
- func (m *EventPut) Unmarshal(dAtA []byte) error
- func (m *EventPut) XXX_DiscardUnknown()
- func (m *EventPut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventPut) XXX_Merge(src proto.Message)
- func (m *EventPut) XXX_Size() int
- func (m *EventPut) XXX_Unmarshal(b []byte) error
- type EventTake
- func (*EventTake) Descriptor() ([]byte, []int)
- func (m *EventTake) GetAmount() string
- func (m *EventTake) GetBasketDenom() string
- func (m *EventTake) GetCredits() []*BasketCredit
- func (m *EventTake) GetOwner() string
- func (m *EventTake) Marshal() (dAtA []byte, err error)
- func (m *EventTake) MarshalTo(dAtA []byte) (int, error)
- func (m *EventTake) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventTake) ProtoMessage()
- func (m *EventTake) Reset()
- func (m *EventTake) Size() (n int)
- func (m *EventTake) String() string
- func (m *EventTake) Unmarshal(dAtA []byte) error
- func (m *EventTake) XXX_DiscardUnknown()
- func (m *EventTake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventTake) XXX_Merge(src proto.Message)
- func (m *EventTake) XXX_Size() int
- func (m *EventTake) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreate
- func (*MsgCreate) Descriptor() ([]byte, []int)
- func (m *MsgCreate) GetAllowedClasses() []string
- func (m *MsgCreate) GetCreditTypeAbbrev() string
- func (m *MsgCreate) GetCurator() string
- func (m *MsgCreate) GetDateCriteria() *DateCriteria
- func (m *MsgCreate) GetDescription() string
- func (m *MsgCreate) GetDisableAutoRetire() bool
- func (m *MsgCreate) GetExponent() uint32
- func (m *MsgCreate) GetFee() github_com_cosmos_cosmos_sdk_types.Coins
- func (m *MsgCreate) GetName() string
- func (m MsgCreate) GetSignBytes() []byte
- func (m MsgCreate) GetSigners() []sdk.AccAddress
- func (m *MsgCreate) Marshal() (dAtA []byte, err error)
- func (m *MsgCreate) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreate) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreate) ProtoMessage()
- func (m *MsgCreate) Reset()
- func (m MsgCreate) Route() string
- func (m *MsgCreate) Size() (n int)
- func (m *MsgCreate) String() string
- func (m MsgCreate) Type() string
- func (m *MsgCreate) Unmarshal(dAtA []byte) error
- func (m MsgCreate) ValidateBasic() error
- func (m *MsgCreate) XXX_DiscardUnknown()
- func (m *MsgCreate) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreate) XXX_Merge(src proto.Message)
- func (m *MsgCreate) XXX_Size() int
- func (m *MsgCreate) XXX_Unmarshal(b []byte) error
- type MsgCreateResponse
- func (*MsgCreateResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateResponse) GetBasketDenom() string
- func (m *MsgCreateResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateResponse) ProtoMessage()
- func (m *MsgCreateResponse) Reset()
- func (m *MsgCreateResponse) Size() (n int)
- func (m *MsgCreateResponse) String() string
- func (m *MsgCreateResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateResponse) XXX_DiscardUnknown()
- func (m *MsgCreateResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateResponse) XXX_Size() int
- func (m *MsgCreateResponse) XXX_Unmarshal(b []byte) error
- type MsgPut
- func (*MsgPut) Descriptor() ([]byte, []int)
- func (m *MsgPut) GetBasketDenom() string
- func (m *MsgPut) GetCredits() []*BasketCredit
- func (m *MsgPut) GetOwner() string
- func (m MsgPut) GetSignBytes() []byte
- func (m MsgPut) GetSigners() []sdk.AccAddress
- func (m *MsgPut) Marshal() (dAtA []byte, err error)
- func (m *MsgPut) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPut) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPut) ProtoMessage()
- func (m *MsgPut) Reset()
- func (m MsgPut) Route() string
- func (m *MsgPut) Size() (n int)
- func (m *MsgPut) String() string
- func (m MsgPut) Type() string
- func (m *MsgPut) Unmarshal(dAtA []byte) error
- func (m MsgPut) ValidateBasic() error
- func (m *MsgPut) XXX_DiscardUnknown()
- func (m *MsgPut) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPut) XXX_Merge(src proto.Message)
- func (m *MsgPut) XXX_Size() int
- func (m *MsgPut) XXX_Unmarshal(b []byte) error
- type MsgPutResponse
- func (*MsgPutResponse) Descriptor() ([]byte, []int)
- func (m *MsgPutResponse) GetAmountReceived() string
- func (m *MsgPutResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPutResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPutResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPutResponse) ProtoMessage()
- func (m *MsgPutResponse) Reset()
- func (m *MsgPutResponse) Size() (n int)
- func (m *MsgPutResponse) String() string
- func (m *MsgPutResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPutResponse) XXX_DiscardUnknown()
- func (m *MsgPutResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPutResponse) XXX_Merge(src proto.Message)
- func (m *MsgPutResponse) XXX_Size() int
- func (m *MsgPutResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgTake
- func (*MsgTake) Descriptor() ([]byte, []int)
- func (m *MsgTake) GetAmount() string
- func (m *MsgTake) GetBasketDenom() string
- func (m *MsgTake) GetOwner() string
- func (m *MsgTake) GetRetireOnTake() bool
- func (m *MsgTake) GetRetirementLocation() string
- func (m MsgTake) GetSignBytes() []byte
- func (m MsgTake) GetSigners() []sdk.AccAddress
- func (m *MsgTake) Marshal() (dAtA []byte, err error)
- func (m *MsgTake) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTake) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTake) ProtoMessage()
- func (m *MsgTake) Reset()
- func (m MsgTake) Route() string
- func (m *MsgTake) Size() (n int)
- func (m *MsgTake) String() string
- func (m MsgTake) Type() string
- func (m *MsgTake) Unmarshal(dAtA []byte) error
- func (m MsgTake) ValidateBasic() error
- func (m *MsgTake) XXX_DiscardUnknown()
- func (m *MsgTake) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTake) XXX_Merge(src proto.Message)
- func (m *MsgTake) XXX_Size() int
- func (m *MsgTake) XXX_Unmarshal(b []byte) error
- type MsgTakeResponse
- func (*MsgTakeResponse) Descriptor() ([]byte, []int)
- func (m *MsgTakeResponse) GetCredits() []*BasketCredit
- func (m *MsgTakeResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTakeResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTakeResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTakeResponse) ProtoMessage()
- func (m *MsgTakeResponse) Reset()
- func (m *MsgTakeResponse) Size() (n int)
- func (m *MsgTakeResponse) String() string
- func (m *MsgTakeResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTakeResponse) XXX_DiscardUnknown()
- func (m *MsgTakeResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTakeResponse) XXX_Merge(src proto.Message)
- func (m *MsgTakeResponse) XXX_Size() int
- func (m *MsgTakeResponse) XXX_Unmarshal(b []byte) error
- type QueryBasketBalanceRequest
- func (*QueryBasketBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryBasketBalanceRequest) GetBasketDenom() string
- func (m *QueryBasketBalanceRequest) GetBatchDenom() string
- func (m *QueryBasketBalanceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBasketBalanceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBasketBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBasketBalanceRequest) ProtoMessage()
- func (m *QueryBasketBalanceRequest) Reset()
- func (m *QueryBasketBalanceRequest) Size() (n int)
- func (m *QueryBasketBalanceRequest) String() string
- func (m *QueryBasketBalanceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBasketBalanceRequest) XXX_DiscardUnknown()
- func (m *QueryBasketBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBasketBalanceRequest) XXX_Merge(src proto.Message)
- func (m *QueryBasketBalanceRequest) XXX_Size() int
- func (m *QueryBasketBalanceRequest) XXX_Unmarshal(b []byte) error
- type QueryBasketBalanceResponse
- func (*QueryBasketBalanceResponse) Descriptor() ([]byte, []int)
- func (m *QueryBasketBalanceResponse) GetBalance() string
- func (m *QueryBasketBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBasketBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBasketBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBasketBalanceResponse) ProtoMessage()
- func (m *QueryBasketBalanceResponse) Reset()
- func (m *QueryBasketBalanceResponse) Size() (n int)
- func (m *QueryBasketBalanceResponse) String() string
- func (m *QueryBasketBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBasketBalanceResponse) XXX_DiscardUnknown()
- func (m *QueryBasketBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBasketBalanceResponse) XXX_Merge(src proto.Message)
- func (m *QueryBasketBalanceResponse) XXX_Size() int
- func (m *QueryBasketBalanceResponse) XXX_Unmarshal(b []byte) error
- type QueryBasketBalancesRequest
- func (*QueryBasketBalancesRequest) Descriptor() ([]byte, []int)
- func (m *QueryBasketBalancesRequest) GetBasketDenom() string
- func (m *QueryBasketBalancesRequest) GetPagination() *query.PageRequest
- func (m *QueryBasketBalancesRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBasketBalancesRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBasketBalancesRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBasketBalancesRequest) ProtoMessage()
- func (m *QueryBasketBalancesRequest) Reset()
- func (m *QueryBasketBalancesRequest) Size() (n int)
- func (m *QueryBasketBalancesRequest) String() string
- func (m *QueryBasketBalancesRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBasketBalancesRequest) XXX_DiscardUnknown()
- func (m *QueryBasketBalancesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBasketBalancesRequest) XXX_Merge(src proto.Message)
- func (m *QueryBasketBalancesRequest) XXX_Size() int
- func (m *QueryBasketBalancesRequest) XXX_Unmarshal(b []byte) error
- type QueryBasketBalancesResponse
- func (*QueryBasketBalancesResponse) Descriptor() ([]byte, []int)
- func (m *QueryBasketBalancesResponse) GetBalances() []*BasketBalance
- func (m *QueryBasketBalancesResponse) GetPagination() *query.PageResponse
- func (m *QueryBasketBalancesResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBasketBalancesResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBasketBalancesResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBasketBalancesResponse) ProtoMessage()
- func (m *QueryBasketBalancesResponse) Reset()
- func (m *QueryBasketBalancesResponse) Size() (n int)
- func (m *QueryBasketBalancesResponse) String() string
- func (m *QueryBasketBalancesResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBasketBalancesResponse) XXX_DiscardUnknown()
- func (m *QueryBasketBalancesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBasketBalancesResponse) XXX_Merge(src proto.Message)
- func (m *QueryBasketBalancesResponse) XXX_Size() int
- func (m *QueryBasketBalancesResponse) XXX_Unmarshal(b []byte) error
- type QueryBasketRequest
- func (*QueryBasketRequest) Descriptor() ([]byte, []int)
- func (m *QueryBasketRequest) GetBasketDenom() string
- func (m *QueryBasketRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBasketRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBasketRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBasketRequest) ProtoMessage()
- func (m *QueryBasketRequest) Reset()
- func (m *QueryBasketRequest) Size() (n int)
- func (m *QueryBasketRequest) String() string
- func (m *QueryBasketRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBasketRequest) XXX_DiscardUnknown()
- func (m *QueryBasketRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBasketRequest) XXX_Merge(src proto.Message)
- func (m *QueryBasketRequest) XXX_Size() int
- func (m *QueryBasketRequest) XXX_Unmarshal(b []byte) error
- type QueryBasketResponse
- func (*QueryBasketResponse) Descriptor() ([]byte, []int)
- func (m *QueryBasketResponse) GetBasket() *Basket
- func (m *QueryBasketResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBasketResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBasketResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBasketResponse) ProtoMessage()
- func (m *QueryBasketResponse) Reset()
- func (m *QueryBasketResponse) Size() (n int)
- func (m *QueryBasketResponse) String() string
- func (m *QueryBasketResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBasketResponse) XXX_DiscardUnknown()
- func (m *QueryBasketResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBasketResponse) XXX_Merge(src proto.Message)
- func (m *QueryBasketResponse) XXX_Size() int
- func (m *QueryBasketResponse) XXX_Unmarshal(b []byte) error
- type QueryBasketsRequest
- func (*QueryBasketsRequest) Descriptor() ([]byte, []int)
- func (m *QueryBasketsRequest) GetPagination() *query.PageRequest
- func (m *QueryBasketsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBasketsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBasketsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBasketsRequest) ProtoMessage()
- func (m *QueryBasketsRequest) Reset()
- func (m *QueryBasketsRequest) Size() (n int)
- func (m *QueryBasketsRequest) String() string
- func (m *QueryBasketsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBasketsRequest) XXX_DiscardUnknown()
- func (m *QueryBasketsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBasketsRequest) XXX_Merge(src proto.Message)
- func (m *QueryBasketsRequest) XXX_Size() int
- func (m *QueryBasketsRequest) XXX_Unmarshal(b []byte) error
- type QueryBasketsResponse
- func (*QueryBasketsResponse) Descriptor() ([]byte, []int)
- func (m *QueryBasketsResponse) GetBaskets() []*Basket
- func (m *QueryBasketsResponse) GetPagination() *query.PageResponse
- func (m *QueryBasketsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBasketsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBasketsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBasketsResponse) ProtoMessage()
- func (m *QueryBasketsResponse) Reset()
- func (m *QueryBasketsResponse) Size() (n int)
- func (m *QueryBasketsResponse) String() string
- func (m *QueryBasketsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBasketsResponse) XXX_DiscardUnknown()
- func (m *QueryBasketsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBasketsResponse) XXX_Merge(src proto.Message)
- func (m *QueryBasketsResponse) XXX_Size() int
- func (m *QueryBasketsResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type UnimplementedMsgServer
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Basket(ctx context.Context, req *QueryBasketRequest) (*QueryBasketResponse, error)
- func (*UnimplementedQueryServer) BasketBalance(ctx context.Context, req *QueryBasketBalanceRequest) (*QueryBasketBalanceResponse, error)
- func (*UnimplementedQueryServer) BasketBalances(ctx context.Context, req *QueryBasketBalancesRequest) (*QueryBasketBalancesResponse, error)
- func (*UnimplementedQueryServer) Baskets(ctx context.Context, req *QueryBasketsRequest) (*QueryBasketsResponse, error)
Constants ¶
const BasketSubModuleName = ecocredit.ModuleName + "-basket"
Variables ¶
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthState = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowState = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupState = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func BasketDenom ¶
BasketDenom formats denom and display denom: * denom: eco.<m.Exponent><m.CreditTypeAbbrev>.<m.Name> * display denom: eco.<m.CreditTypeAbbrev>.<m.Name> Returns error if MsgCrete.Exponent is not supported
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features 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. 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"` // exponent is the exponent for converting credits to/from basket tokens. Exponent uint32 `protobuf:"varint,7,opt,name=exponent,proto3" json:"exponent,omitempty"` }
Basket represents a basket in state.
func (*Basket) Descriptor ¶
func (*Basket) GetBasketDenom ¶
func (*Basket) GetCreditTypeAbbrev ¶
func (*Basket) GetDateCriteria ¶
func (m *Basket) GetDateCriteria() *DateCriteria
func (*Basket) GetDisableAutoRetire ¶
func (*Basket) GetExponent ¶
func (*Basket) MarshalToSizedBuffer ¶
func (*Basket) ProtoMessage ¶
func (*Basket) ProtoMessage()
func (*Basket) XXX_DiscardUnknown ¶
func (m *Basket) XXX_DiscardUnknown()
func (*Basket) XXX_Marshal ¶
func (*Basket) XXX_Unmarshal ¶
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) 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) 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 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) 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) 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) 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 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` and `min_start_date` can be set. 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 - batch_date_window` will not be allowed into the basket. // At most only one of `start_date_window` and `min_start_date` can be set. StartDateWindow *types.Duration `protobuf:"bytes,2,opt,name=start_date_window,json=startDateWindow,proto3" json:"start_date_window,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) Marshal ¶
func (m *DateCriteria) Marshal() (dAtA []byte, err 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() *basketv1.DateCriteria
ToApi converts to pulsar based data structure
func (*DateCriteria) Unmarshal ¶
func (m *DateCriteria) Unmarshal(dAtA []byte) error
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. Curator string `protobuf:"bytes,2,opt,name=curator,proto3" json:"curator,omitempty"` }
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 ¶
func (m *EventCreate) GetCurator() string
func (*EventCreate) Marshal ¶
func (m *EventCreate) Marshal() (dAtA []byte, err 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. Credits []*BasketCredit `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"` // amount is the integer number of basket tokens converted from credits. Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` }
EventPut is an event emitted when credits are put into a basket in return for basket tokens.
func (*EventPut) Descriptor ¶
func (*EventPut) GetBasketDenom ¶
func (*EventPut) GetCredits ¶
func (m *EventPut) GetCredits() []*BasketCredit
func (*EventPut) MarshalToSizedBuffer ¶
func (*EventPut) ProtoMessage ¶
func (*EventPut) ProtoMessage()
func (*EventPut) XXX_DiscardUnknown ¶
func (m *EventPut) XXX_DiscardUnknown()
func (*EventPut) XXX_Marshal ¶
func (*EventPut) XXX_Unmarshal ¶
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. Credits []*BasketCredit `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"` // amount is the integer number of basket tokens converted to credits. Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` }
EventTake is an event emitted when credits are taken from a basket starting from the oldest credits first.
func (*EventTake) Descriptor ¶
func (*EventTake) GetBasketDenom ¶
func (*EventTake) GetCredits ¶
func (m *EventTake) GetCredits() []*BasketCredit
func (*EventTake) MarshalToSizedBuffer ¶
func (*EventTake) ProtoMessage ¶
func (*EventTake) ProtoMessage()
func (*EventTake) XXX_DiscardUnknown ¶
func (m *EventTake) XXX_DiscardUnknown()
func (*EventTake) XXX_Marshal ¶
func (*EventTake) XXX_Unmarshal ¶
type MsgClient ¶
type MsgClient interface { // Create creates a bank denom which wraps credits. Create(ctx context.Context, in *MsgCreate, opts ...grpc.CallOption) (*MsgCreateResponse, error) // Put puts credits into a basket in return for basket tokens. Put(ctx context.Context, in *MsgPut, opts ...grpc.CallOption) (*MsgPutResponse, error) // Take takes credits from a basket starting from the oldest // credits first. Take(ctx context.Context, in *MsgTake, opts ...grpc.CallOption) (*MsgTakeResponse, 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, credit type and exponent and be // of the form `eco.<prefix><credit_type_abbrev>.<name>` where prefix // is derived from exponent. 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"` // exponent is the exponent that will be used for converting credits to basket // tokens and for bank denom metadata. It also limits the precision of // credit amounts when putting credits into a basket. An exponent of 6 will // mean that 10^6 units of a basket token will be issued for 1.0 credits and that // this should be displayed as one unit in user interfaces. It also means // that the maximum precision of credit amounts is 6 decimal places so that // the need to round is eliminated. The exponent must be >= the precision of // the credit type at the time the basket is created and be of one of the // following values 0, 1, 2, 3, 6, 9, 12, 15, 18, 21, or 24 which correspond // to the exponents which have an official SI prefix. // // The exponent will be used to form the prefix part of the the bank denom // and will be 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) Exponent uint32 `protobuf:"varint,4,opt,name=exponent,proto3" json:"exponent,omitempty"` // 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 fields in the date_criteria should be set. DateCriteria *DateCriteria `protobuf:"bytes,8,opt,name=date_criteria,json=dateCriteria,proto3" json:"date_criteria,omitempty"` // fee is the fee that the curator will pay to create the basket. It must be // >= the required Params.basket_creation_fee. We include the fee explicitly // here so that the curator explicitly acknowledges paying this fee and // is not surprised to learn that the paid a big fee and didn't know // beforehand. 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) GetAllowedClasses ¶
func (*MsgCreate) GetCreditTypeAbbrev ¶
func (*MsgCreate) GetCurator ¶
func (*MsgCreate) GetDateCriteria ¶
func (m *MsgCreate) GetDateCriteria() *DateCriteria
func (*MsgCreate) GetDescription ¶
func (*MsgCreate) GetDisableAutoRetire ¶
func (*MsgCreate) GetExponent ¶
func (*MsgCreate) GetFee ¶
func (m *MsgCreate) GetFee() github_com_cosmos_cosmos_sdk_types.Coins
func (MsgCreate) GetSignBytes ¶
GetSignBytes implements LegacyMsg.
func (MsgCreate) GetSigners ¶
func (m MsgCreate) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgCreate.
func (*MsgCreate) MarshalToSizedBuffer ¶
func (*MsgCreate) ProtoMessage ¶
func (*MsgCreate) ProtoMessage()
func (MsgCreate) ValidateBasic ¶
ValidateBasic does a stateless sanity check on the provided data.
func (*MsgCreate) XXX_DiscardUnknown ¶
func (m *MsgCreate) XXX_DiscardUnknown()
func (*MsgCreate) XXX_Marshal ¶
func (*MsgCreate) XXX_Unmarshal ¶
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. If there are any "dust" credits // left over when converting credits to basket tokens, these credits will // not be converted to basket tokens and instead remain with the owner. Credits []*BasketCredit `protobuf:"bytes,3,rep,name=credits,proto3" json:"credits,omitempty"` }
MsgAddToBasket is the Msg/AddToBasket request type.
func (*MsgPut) Descriptor ¶
func (*MsgPut) GetBasketDenom ¶
func (*MsgPut) GetCredits ¶
func (m *MsgPut) GetCredits() []*BasketCredit
func (MsgPut) GetSignBytes ¶
GetSignBytes implements LegacyMsg.
func (MsgPut) GetSigners ¶
func (m MsgPut) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgCreate.
func (*MsgPut) MarshalToSizedBuffer ¶
func (*MsgPut) ProtoMessage ¶
func (*MsgPut) ProtoMessage()
func (MsgPut) ValidateBasic ¶
ValidateBasic does a stateless sanity check on the provided data.
func (*MsgPut) XXX_DiscardUnknown ¶
func (m *MsgPut) XXX_DiscardUnknown()
func (*MsgPut) XXX_Marshal ¶
func (*MsgPut) XXX_Unmarshal ¶
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) 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 bank denom which wraps credits. Create(context.Context, *MsgCreate) (*MsgCreateResponse, error) // Put puts credits into a basket in return for basket tokens. Put(context.Context, *MsgPut) (*MsgPutResponse, error) // Take takes credits from a basket starting from the oldest // credits first. Take(context.Context, *MsgTake) (*MsgTakeResponse, 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 location for the credits // which will be used only if retire_on_take is true for this basket. RetirementLocation string `protobuf:"bytes,4,opt,name=retirement_location,json=retirementLocation,proto3" json:"retirement_location,omitempty"` // 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. RetireOnTake bool `protobuf:"varint,5,opt,name=retire_on_take,json=retireOnTake,proto3" json:"retire_on_take,omitempty"` }
MsgTakeFromBasket is the Msg/TakeFromBasket request type.
func (*MsgTake) Descriptor ¶
func (*MsgTake) GetBasketDenom ¶
func (*MsgTake) GetRetireOnTake ¶
func (*MsgTake) GetRetirementLocation ¶
func (MsgTake) GetSignBytes ¶
GetSignBytes implements LegacyMsg.
func (MsgTake) GetSigners ¶
func (m MsgTake) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgTake.
func (*MsgTake) MarshalToSizedBuffer ¶
func (*MsgTake) ProtoMessage ¶
func (*MsgTake) ProtoMessage()
func (MsgTake) ValidateBasic ¶
ValidateBasic does a stateless sanity check on the provided data.
func (*MsgTake) XXX_DiscardUnknown ¶
func (m *MsgTake) XXX_DiscardUnknown()
func (*MsgTake) XXX_Marshal ¶
func (*MsgTake) XXX_Unmarshal ¶
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) 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 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. Balances []*BasketBalance `protobuf:"bytes,1,rep,name=balances,proto3" json:"balances,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBasketBalancesResponse is the Query/BasketBalances response type.
func (*QueryBasketBalancesResponse) Descriptor ¶
func (*QueryBasketBalancesResponse) Descriptor() ([]byte, []int)
func (*QueryBasketBalancesResponse) GetBalances ¶
func (m *QueryBasketBalancesResponse) GetBalances() []*BasketBalance
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 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. Basket *Basket `protobuf:"bytes,1,opt,name=basket,proto3" json:"basket,omitempty"` }
QueryBasketResponse is the Query/Basket response type.
func (*QueryBasketResponse) Descriptor ¶
func (*QueryBasketResponse) Descriptor() ([]byte, []int)
func (*QueryBasketResponse) GetBasket ¶
func (m *QueryBasketResponse) GetBasket() *Basket
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. Baskets []*Basket `protobuf:"bytes,1,rep,name=baskets,proto3" json:"baskets,omitempty"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBasketsResponse is the Query/Baskets response type.
func (*QueryBasketsResponse) Descriptor ¶
func (*QueryBasketsResponse) Descriptor() ([]byte, []int)
func (*QueryBasketsResponse) GetBaskets ¶
func (m *QueryBasketsResponse) GetBaskets() []*Basket
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) }
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) }
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) Create(ctx context.Context, req *MsgCreate) (*MsgCreateResponse, error)
func (*UnimplementedMsgServer) Put ¶
func (*UnimplementedMsgServer) Put(ctx context.Context, req *MsgPut) (*MsgPutResponse, error)
func (*UnimplementedMsgServer) Take ¶
func (*UnimplementedMsgServer) Take(ctx context.Context, req *MsgTake) (*MsgTakeResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Basket ¶
func (*UnimplementedQueryServer) Basket(ctx context.Context, req *QueryBasketRequest) (*QueryBasketResponse, error)
func (*UnimplementedQueryServer) BasketBalance ¶
func (*UnimplementedQueryServer) BasketBalance(ctx context.Context, req *QueryBasketBalanceRequest) (*QueryBasketBalanceResponse, error)
func (*UnimplementedQueryServer) BasketBalances ¶
func (*UnimplementedQueryServer) BasketBalances(ctx context.Context, req *QueryBasketBalancesRequest) (*QueryBasketBalancesResponse, error)
func (*UnimplementedQueryServer) Baskets ¶
func (*UnimplementedQueryServer) Baskets(ctx context.Context, req *QueryBasketsRequest) (*QueryBasketsResponse, error)