Documentation ¶
Overview ¶
Package v1 is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- 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)
- type Balance
- func (*Balance) Descriptor() ([]byte, []int)
- func (m *Balance) GetAddress() []byte
- func (m *Balance) GetAmount() string
- func (m *Balance) GetExpiration() *types.Timestamp
- func (m *Balance) GetId() uint64
- func (m *Balance) Marshal() (dAtA []byte, err error)
- func (m *Balance) MarshalTo(dAtA []byte) (int, error)
- func (m *Balance) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Balance) ProtoMessage()
- func (m *Balance) Reset()
- func (m *Balance) Size() (n int)
- func (m *Balance) String() string
- func (m *Balance) Unmarshal(dAtA []byte) error
- func (m *Balance) Validate() error
- func (m *Balance) XXX_DiscardUnknown()
- func (m *Balance) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Balance) XXX_Merge(src proto.Message)
- func (m *Balance) XXX_Size() int
- func (m *Balance) XXX_Unmarshal(b []byte) error
- type EventCreate
- func (*EventCreate) Descriptor() ([]byte, []int)
- func (m *EventCreate) GetId() uint64
- 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 EventIssue
- func (*EventIssue) Descriptor() ([]byte, []int)
- func (m *EventIssue) GetId() uint64
- func (m *EventIssue) GetMetadata() string
- func (m *EventIssue) Marshal() (dAtA []byte, err error)
- func (m *EventIssue) MarshalTo(dAtA []byte) (int, error)
- func (m *EventIssue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventIssue) ProtoMessage()
- func (m *EventIssue) Reset()
- func (m *EventIssue) Size() (n int)
- func (m *EventIssue) String() string
- func (m *EventIssue) Unmarshal(dAtA []byte) error
- func (m *EventIssue) XXX_DiscardUnknown()
- func (m *EventIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventIssue) XXX_Merge(src proto.Message)
- func (m *EventIssue) XXX_Size() int
- func (m *EventIssue) XXX_Unmarshal(b []byte) error
- type EventUpdateIssuer
- func (*EventUpdateIssuer) Descriptor() ([]byte, []int)
- func (m *EventUpdateIssuer) GetId() uint64
- func (m *EventUpdateIssuer) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateIssuer) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateIssuer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateIssuer) ProtoMessage()
- func (m *EventUpdateIssuer) Reset()
- func (m *EventUpdateIssuer) Size() (n int)
- func (m *EventUpdateIssuer) String() string
- func (m *EventUpdateIssuer) Unmarshal(dAtA []byte) error
- func (m *EventUpdateIssuer) XXX_DiscardUnknown()
- func (m *EventUpdateIssuer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateIssuer) XXX_Merge(src proto.Message)
- func (m *EventUpdateIssuer) XXX_Size() int
- func (m *EventUpdateIssuer) XXX_Unmarshal(b []byte) error
- type EventUpdateMetadata
- func (*EventUpdateMetadata) Descriptor() ([]byte, []int)
- func (m *EventUpdateMetadata) GetId() uint64
- func (m *EventUpdateMetadata) Marshal() (dAtA []byte, err error)
- func (m *EventUpdateMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *EventUpdateMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventUpdateMetadata) ProtoMessage()
- func (m *EventUpdateMetadata) Reset()
- func (m *EventUpdateMetadata) Size() (n int)
- func (m *EventUpdateMetadata) String() string
- func (m *EventUpdateMetadata) Unmarshal(dAtA []byte) error
- func (m *EventUpdateMetadata) XXX_DiscardUnknown()
- func (m *EventUpdateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventUpdateMetadata) XXX_Merge(src proto.Message)
- func (m *EventUpdateMetadata) XXX_Size() int
- func (m *EventUpdateMetadata) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreate
- func (*MsgCreate) Descriptor() ([]byte, []int)
- func (m *MsgCreate) GetIssuer() string
- func (m *MsgCreate) GetMetadata() string
- 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) GetId() uint64
- 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 MsgIssue
- func (*MsgIssue) Descriptor() ([]byte, []int)
- func (m *MsgIssue) GetAmount() string
- func (m *MsgIssue) GetExpiration() *time.Time
- func (m *MsgIssue) GetId() uint64
- func (m *MsgIssue) GetIssuer() string
- func (m *MsgIssue) GetMetadata() string
- func (m *MsgIssue) GetRecipient() string
- func (m MsgIssue) GetSigners() []sdk.AccAddress
- func (m *MsgIssue) Marshal() (dAtA []byte, err error)
- func (m *MsgIssue) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssue) ProtoMessage()
- func (m *MsgIssue) Reset()
- func (m MsgIssue) Route() string
- func (m *MsgIssue) Size() (n int)
- func (m *MsgIssue) String() string
- func (m MsgIssue) Type() string
- func (m *MsgIssue) Unmarshal(dAtA []byte) error
- func (m MsgIssue) ValidateBasic() error
- func (m *MsgIssue) XXX_DiscardUnknown()
- func (m *MsgIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssue) XXX_Merge(src proto.Message)
- func (m *MsgIssue) XXX_Size() int
- func (m *MsgIssue) XXX_Unmarshal(b []byte) error
- type MsgIssueResponse
- func (*MsgIssueResponse) Descriptor() ([]byte, []int)
- func (m *MsgIssueResponse) GetId() uint64
- func (m *MsgIssueResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueResponse) ProtoMessage()
- func (m *MsgIssueResponse) Reset()
- func (m *MsgIssueResponse) Size() (n int)
- func (m *MsgIssueResponse) String() string
- func (m *MsgIssueResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIssueResponse) XXX_DiscardUnknown()
- func (m *MsgIssueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueResponse) XXX_Merge(src proto.Message)
- func (m *MsgIssueResponse) XXX_Size() int
- func (m *MsgIssueResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateIssuer
- func (*MsgUpdateIssuer) Descriptor() ([]byte, []int)
- func (m *MsgUpdateIssuer) GetId() uint64
- func (m *MsgUpdateIssuer) GetIssuer() string
- func (m *MsgUpdateIssuer) GetNewIssuer() string
- func (m MsgUpdateIssuer) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateIssuer) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateIssuer) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateIssuer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateIssuer) ProtoMessage()
- func (m *MsgUpdateIssuer) Reset()
- func (m MsgUpdateIssuer) Route() string
- func (m *MsgUpdateIssuer) Size() (n int)
- func (m *MsgUpdateIssuer) String() string
- func (m MsgUpdateIssuer) Type() string
- func (m *MsgUpdateIssuer) Unmarshal(dAtA []byte) error
- func (m MsgUpdateIssuer) ValidateBasic() error
- func (m *MsgUpdateIssuer) XXX_DiscardUnknown()
- func (m *MsgUpdateIssuer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateIssuer) XXX_Merge(src proto.Message)
- func (m *MsgUpdateIssuer) XXX_Size() int
- func (m *MsgUpdateIssuer) XXX_Unmarshal(b []byte) error
- type MsgUpdateIssuerResponse
- func (*MsgUpdateIssuerResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateIssuerResponse) GetId() uint64
- func (m *MsgUpdateIssuerResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateIssuerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateIssuerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateIssuerResponse) ProtoMessage()
- func (m *MsgUpdateIssuerResponse) Reset()
- func (m *MsgUpdateIssuerResponse) Size() (n int)
- func (m *MsgUpdateIssuerResponse) String() string
- func (m *MsgUpdateIssuerResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateIssuerResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateIssuerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateIssuerResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateIssuerResponse) XXX_Size() int
- func (m *MsgUpdateIssuerResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateMetadata
- func (*MsgUpdateMetadata) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMetadata) GetId() uint64
- func (m *MsgUpdateMetadata) GetIssuer() string
- func (m *MsgUpdateMetadata) GetNewMetadata() string
- func (m MsgUpdateMetadata) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateMetadata) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMetadata) ProtoMessage()
- func (m *MsgUpdateMetadata) Reset()
- func (m MsgUpdateMetadata) Route() string
- func (m *MsgUpdateMetadata) Size() (n int)
- func (m *MsgUpdateMetadata) String() string
- func (m MsgUpdateMetadata) Type() string
- func (m *MsgUpdateMetadata) Unmarshal(dAtA []byte) error
- func (m MsgUpdateMetadata) ValidateBasic() error
- func (m *MsgUpdateMetadata) XXX_DiscardUnknown()
- func (m *MsgUpdateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMetadata) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMetadata) XXX_Size() int
- func (m *MsgUpdateMetadata) XXX_Unmarshal(b []byte) error
- type MsgUpdateMetadataResponse
- func (*MsgUpdateMetadataResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateMetadataResponse) GetId() uint64
- func (m *MsgUpdateMetadataResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateMetadataResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateMetadataResponse) ProtoMessage()
- func (m *MsgUpdateMetadataResponse) Reset()
- func (m *MsgUpdateMetadataResponse) Size() (n int)
- func (m *MsgUpdateMetadataResponse) String() string
- func (m *MsgUpdateMetadataResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateMetadataResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateMetadataResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateMetadataResponse) XXX_Size() int
- func (m *MsgUpdateMetadataResponse) XXX_Unmarshal(b []byte) error
- type QueryBalanceRequest
- func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
- func (m *QueryBalanceRequest) GetAddress() string
- func (m *QueryBalanceRequest) GetId() uint64
- func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalanceRequest) ProtoMessage()
- func (m *QueryBalanceRequest) Reset()
- func (m *QueryBalanceRequest) Size() (n int)
- func (m *QueryBalanceRequest) String() string
- func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBalanceRequest) XXX_DiscardUnknown()
- func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalanceRequest) XXX_Merge(src proto.Message)
- func (m *QueryBalanceRequest) XXX_Size() int
- func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error
- type QueryBalanceResponse
- func (*QueryBalanceResponse) Descriptor() ([]byte, []int)
- func (m *QueryBalanceResponse) GetAddress() string
- func (m *QueryBalanceResponse) GetAmounts() []*QueryBalanceResponse_Amount
- func (m *QueryBalanceResponse) GetId() uint64
- func (m *QueryBalanceResponse) GetTotalAmount() string
- func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalanceResponse) ProtoMessage()
- func (m *QueryBalanceResponse) Reset()
- func (m *QueryBalanceResponse) Size() (n int)
- func (m *QueryBalanceResponse) String() string
- func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBalanceResponse) XXX_DiscardUnknown()
- func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalanceResponse) XXX_Merge(src proto.Message)
- func (m *QueryBalanceResponse) XXX_Size() int
- func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error
- type QueryBalanceResponse_Amount
- func (*QueryBalanceResponse_Amount) Descriptor() ([]byte, []int)
- func (m *QueryBalanceResponse_Amount) GetAmount() string
- func (m *QueryBalanceResponse_Amount) GetExpiration() *time.Time
- func (m *QueryBalanceResponse_Amount) Marshal() (dAtA []byte, err error)
- func (m *QueryBalanceResponse_Amount) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalanceResponse_Amount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalanceResponse_Amount) ProtoMessage()
- func (m *QueryBalanceResponse_Amount) Reset()
- func (m *QueryBalanceResponse_Amount) Size() (n int)
- func (m *QueryBalanceResponse_Amount) String() string
- func (m *QueryBalanceResponse_Amount) Unmarshal(dAtA []byte) error
- func (m *QueryBalanceResponse_Amount) XXX_DiscardUnknown()
- func (m *QueryBalanceResponse_Amount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalanceResponse_Amount) XXX_Merge(src proto.Message)
- func (m *QueryBalanceResponse_Amount) XXX_Size() int
- func (m *QueryBalanceResponse_Amount) XXX_Unmarshal(b []byte) error
- type QueryBalancesByAddressRequest
- func (*QueryBalancesByAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryBalancesByAddressRequest) GetAddress() string
- func (m *QueryBalancesByAddressRequest) GetPagination() *query.PageRequest
- func (m *QueryBalancesByAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBalancesByAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalancesByAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalancesByAddressRequest) ProtoMessage()
- func (m *QueryBalancesByAddressRequest) Reset()
- func (m *QueryBalancesByAddressRequest) Size() (n int)
- func (m *QueryBalancesByAddressRequest) String() string
- func (m *QueryBalancesByAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBalancesByAddressRequest) XXX_DiscardUnknown()
- func (m *QueryBalancesByAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalancesByAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryBalancesByAddressRequest) XXX_Size() int
- func (m *QueryBalancesByAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryBalancesByAddressResponse
- func (*QueryBalancesByAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryBalancesByAddressResponse) GetAddress() string
- func (m *QueryBalancesByAddressResponse) GetPagination() *query.PageResponse
- func (m *QueryBalancesByAddressResponse) GetTotalAmounts() []*QueryBalancesByAddressResponse_TotalAmount
- func (m *QueryBalancesByAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBalancesByAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalancesByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalancesByAddressResponse) ProtoMessage()
- func (m *QueryBalancesByAddressResponse) Reset()
- func (m *QueryBalancesByAddressResponse) Size() (n int)
- func (m *QueryBalancesByAddressResponse) String() string
- func (m *QueryBalancesByAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBalancesByAddressResponse) XXX_DiscardUnknown()
- func (m *QueryBalancesByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalancesByAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryBalancesByAddressResponse) XXX_Size() int
- func (m *QueryBalancesByAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryBalancesByAddressResponse_TotalAmount
- func (*QueryBalancesByAddressResponse_TotalAmount) Descriptor() ([]byte, []int)
- func (m *QueryBalancesByAddressResponse_TotalAmount) GetId() uint64
- func (m *QueryBalancesByAddressResponse_TotalAmount) GetTotalAmount() string
- func (m *QueryBalancesByAddressResponse_TotalAmount) Marshal() (dAtA []byte, err error)
- func (m *QueryBalancesByAddressResponse_TotalAmount) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalancesByAddressResponse_TotalAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalancesByAddressResponse_TotalAmount) ProtoMessage()
- func (m *QueryBalancesByAddressResponse_TotalAmount) Reset()
- func (m *QueryBalancesByAddressResponse_TotalAmount) Size() (n int)
- func (m *QueryBalancesByAddressResponse_TotalAmount) String() string
- func (m *QueryBalancesByAddressResponse_TotalAmount) Unmarshal(dAtA []byte) error
- func (m *QueryBalancesByAddressResponse_TotalAmount) XXX_DiscardUnknown()
- func (m *QueryBalancesByAddressResponse_TotalAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalancesByAddressResponse_TotalAmount) XXX_Merge(src proto.Message)
- func (m *QueryBalancesByAddressResponse_TotalAmount) XXX_Size() int
- func (m *QueryBalancesByAddressResponse_TotalAmount) XXX_Unmarshal(b []byte) error
- type QueryBalancesByVoucherRequest
- func (*QueryBalancesByVoucherRequest) Descriptor() ([]byte, []int)
- func (m *QueryBalancesByVoucherRequest) GetId() uint64
- func (m *QueryBalancesByVoucherRequest) GetPagination() *query.PageRequest
- func (m *QueryBalancesByVoucherRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryBalancesByVoucherRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalancesByVoucherRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalancesByVoucherRequest) ProtoMessage()
- func (m *QueryBalancesByVoucherRequest) Reset()
- func (m *QueryBalancesByVoucherRequest) Size() (n int)
- func (m *QueryBalancesByVoucherRequest) String() string
- func (m *QueryBalancesByVoucherRequest) Unmarshal(dAtA []byte) error
- func (m *QueryBalancesByVoucherRequest) XXX_DiscardUnknown()
- func (m *QueryBalancesByVoucherRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalancesByVoucherRequest) XXX_Merge(src proto.Message)
- func (m *QueryBalancesByVoucherRequest) XXX_Size() int
- func (m *QueryBalancesByVoucherRequest) XXX_Unmarshal(b []byte) error
- type QueryBalancesByVoucherResponse
- func (*QueryBalancesByVoucherResponse) Descriptor() ([]byte, []int)
- func (m *QueryBalancesByVoucherResponse) GetId() uint64
- func (m *QueryBalancesByVoucherResponse) GetPagination() *query.PageResponse
- func (m *QueryBalancesByVoucherResponse) GetTotalAmounts() []*QueryBalancesByVoucherResponse_TotalAmount
- func (m *QueryBalancesByVoucherResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryBalancesByVoucherResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalancesByVoucherResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalancesByVoucherResponse) ProtoMessage()
- func (m *QueryBalancesByVoucherResponse) Reset()
- func (m *QueryBalancesByVoucherResponse) Size() (n int)
- func (m *QueryBalancesByVoucherResponse) String() string
- func (m *QueryBalancesByVoucherResponse) Unmarshal(dAtA []byte) error
- func (m *QueryBalancesByVoucherResponse) XXX_DiscardUnknown()
- func (m *QueryBalancesByVoucherResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalancesByVoucherResponse) XXX_Merge(src proto.Message)
- func (m *QueryBalancesByVoucherResponse) XXX_Size() int
- func (m *QueryBalancesByVoucherResponse) XXX_Unmarshal(b []byte) error
- type QueryBalancesByVoucherResponse_TotalAmount
- func (*QueryBalancesByVoucherResponse_TotalAmount) Descriptor() ([]byte, []int)
- func (m *QueryBalancesByVoucherResponse_TotalAmount) GetAddress() string
- func (m *QueryBalancesByVoucherResponse_TotalAmount) GetTotalAmount() string
- func (m *QueryBalancesByVoucherResponse_TotalAmount) Marshal() (dAtA []byte, err error)
- func (m *QueryBalancesByVoucherResponse_TotalAmount) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryBalancesByVoucherResponse_TotalAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryBalancesByVoucherResponse_TotalAmount) ProtoMessage()
- func (m *QueryBalancesByVoucherResponse_TotalAmount) Reset()
- func (m *QueryBalancesByVoucherResponse_TotalAmount) Size() (n int)
- func (m *QueryBalancesByVoucherResponse_TotalAmount) String() string
- func (m *QueryBalancesByVoucherResponse_TotalAmount) Unmarshal(dAtA []byte) error
- func (m *QueryBalancesByVoucherResponse_TotalAmount) XXX_DiscardUnknown()
- func (m *QueryBalancesByVoucherResponse_TotalAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryBalancesByVoucherResponse_TotalAmount) XXX_Merge(src proto.Message)
- func (m *QueryBalancesByVoucherResponse_TotalAmount) XXX_Size() int
- func (m *QueryBalancesByVoucherResponse_TotalAmount) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryServer
- type QueryVoucherRequest
- func (*QueryVoucherRequest) Descriptor() ([]byte, []int)
- func (m *QueryVoucherRequest) GetId() uint64
- func (m *QueryVoucherRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryVoucherRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVoucherRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVoucherRequest) ProtoMessage()
- func (m *QueryVoucherRequest) Reset()
- func (m *QueryVoucherRequest) Size() (n int)
- func (m *QueryVoucherRequest) String() string
- func (m *QueryVoucherRequest) Unmarshal(dAtA []byte) error
- func (m *QueryVoucherRequest) XXX_DiscardUnknown()
- func (m *QueryVoucherRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVoucherRequest) XXX_Merge(src proto.Message)
- func (m *QueryVoucherRequest) XXX_Size() int
- func (m *QueryVoucherRequest) XXX_Unmarshal(b []byte) error
- type QueryVoucherResponse
- func (*QueryVoucherResponse) Descriptor() ([]byte, []int)
- func (m *QueryVoucherResponse) GetId() uint64
- func (m *QueryVoucherResponse) GetIssuer() string
- func (m *QueryVoucherResponse) GetMetadata() string
- func (m *QueryVoucherResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryVoucherResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVoucherResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVoucherResponse) ProtoMessage()
- func (m *QueryVoucherResponse) Reset()
- func (m *QueryVoucherResponse) Size() (n int)
- func (m *QueryVoucherResponse) String() string
- func (m *QueryVoucherResponse) Unmarshal(dAtA []byte) error
- func (m *QueryVoucherResponse) XXX_DiscardUnknown()
- func (m *QueryVoucherResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVoucherResponse) XXX_Merge(src proto.Message)
- func (m *QueryVoucherResponse) XXX_Size() int
- func (m *QueryVoucherResponse) XXX_Unmarshal(b []byte) error
- type QueryVouchersByIssuerRequest
- func (*QueryVouchersByIssuerRequest) Descriptor() ([]byte, []int)
- func (m *QueryVouchersByIssuerRequest) GetIssuer() string
- func (m *QueryVouchersByIssuerRequest) GetPagination() *query.PageRequest
- func (m *QueryVouchersByIssuerRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryVouchersByIssuerRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVouchersByIssuerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVouchersByIssuerRequest) ProtoMessage()
- func (m *QueryVouchersByIssuerRequest) Reset()
- func (m *QueryVouchersByIssuerRequest) Size() (n int)
- func (m *QueryVouchersByIssuerRequest) String() string
- func (m *QueryVouchersByIssuerRequest) Unmarshal(dAtA []byte) error
- func (m *QueryVouchersByIssuerRequest) XXX_DiscardUnknown()
- func (m *QueryVouchersByIssuerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVouchersByIssuerRequest) XXX_Merge(src proto.Message)
- func (m *QueryVouchersByIssuerRequest) XXX_Size() int
- func (m *QueryVouchersByIssuerRequest) XXX_Unmarshal(b []byte) error
- type QueryVouchersByIssuerResponse
- func (*QueryVouchersByIssuerResponse) Descriptor() ([]byte, []int)
- func (m *QueryVouchersByIssuerResponse) GetIssuer() string
- func (m *QueryVouchersByIssuerResponse) GetPagination() *query.PageResponse
- func (m *QueryVouchersByIssuerResponse) GetVouchers() []*QueryVouchersByIssuerResponse_Voucher
- func (m *QueryVouchersByIssuerResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryVouchersByIssuerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVouchersByIssuerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVouchersByIssuerResponse) ProtoMessage()
- func (m *QueryVouchersByIssuerResponse) Reset()
- func (m *QueryVouchersByIssuerResponse) Size() (n int)
- func (m *QueryVouchersByIssuerResponse) String() string
- func (m *QueryVouchersByIssuerResponse) Unmarshal(dAtA []byte) error
- func (m *QueryVouchersByIssuerResponse) XXX_DiscardUnknown()
- func (m *QueryVouchersByIssuerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVouchersByIssuerResponse) XXX_Merge(src proto.Message)
- func (m *QueryVouchersByIssuerResponse) XXX_Size() int
- func (m *QueryVouchersByIssuerResponse) XXX_Unmarshal(b []byte) error
- type QueryVouchersByIssuerResponse_Voucher
- func (*QueryVouchersByIssuerResponse_Voucher) Descriptor() ([]byte, []int)
- func (m *QueryVouchersByIssuerResponse_Voucher) GetId() uint64
- func (m *QueryVouchersByIssuerResponse_Voucher) GetMetadata() string
- func (m *QueryVouchersByIssuerResponse_Voucher) Marshal() (dAtA []byte, err error)
- func (m *QueryVouchersByIssuerResponse_Voucher) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVouchersByIssuerResponse_Voucher) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVouchersByIssuerResponse_Voucher) ProtoMessage()
- func (m *QueryVouchersByIssuerResponse_Voucher) Reset()
- func (m *QueryVouchersByIssuerResponse_Voucher) Size() (n int)
- func (m *QueryVouchersByIssuerResponse_Voucher) String() string
- func (m *QueryVouchersByIssuerResponse_Voucher) Unmarshal(dAtA []byte) error
- func (m *QueryVouchersByIssuerResponse_Voucher) XXX_DiscardUnknown()
- func (m *QueryVouchersByIssuerResponse_Voucher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVouchersByIssuerResponse_Voucher) XXX_Merge(src proto.Message)
- func (m *QueryVouchersByIssuerResponse_Voucher) XXX_Size() int
- func (m *QueryVouchersByIssuerResponse_Voucher) XXX_Unmarshal(b []byte) error
- type QueryVouchersRequest
- func (*QueryVouchersRequest) Descriptor() ([]byte, []int)
- func (m *QueryVouchersRequest) GetPagination() *query.PageRequest
- func (m *QueryVouchersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryVouchersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVouchersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVouchersRequest) ProtoMessage()
- func (m *QueryVouchersRequest) Reset()
- func (m *QueryVouchersRequest) Size() (n int)
- func (m *QueryVouchersRequest) String() string
- func (m *QueryVouchersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryVouchersRequest) XXX_DiscardUnknown()
- func (m *QueryVouchersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVouchersRequest) XXX_Merge(src proto.Message)
- func (m *QueryVouchersRequest) XXX_Size() int
- func (m *QueryVouchersRequest) XXX_Unmarshal(b []byte) error
- type QueryVouchersResponse
- func (*QueryVouchersResponse) Descriptor() ([]byte, []int)
- func (m *QueryVouchersResponse) GetPagination() *query.PageResponse
- func (m *QueryVouchersResponse) GetVouchers() []*QueryVouchersResponse_Voucher
- func (m *QueryVouchersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryVouchersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVouchersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVouchersResponse) ProtoMessage()
- func (m *QueryVouchersResponse) Reset()
- func (m *QueryVouchersResponse) Size() (n int)
- func (m *QueryVouchersResponse) String() string
- func (m *QueryVouchersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryVouchersResponse) XXX_DiscardUnknown()
- func (m *QueryVouchersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVouchersResponse) XXX_Merge(src proto.Message)
- func (m *QueryVouchersResponse) XXX_Size() int
- func (m *QueryVouchersResponse) XXX_Unmarshal(b []byte) error
- type QueryVouchersResponse_Voucher
- func (*QueryVouchersResponse_Voucher) Descriptor() ([]byte, []int)
- func (m *QueryVouchersResponse_Voucher) GetId() uint64
- func (m *QueryVouchersResponse_Voucher) GetIssuer() string
- func (m *QueryVouchersResponse_Voucher) GetMetadata() string
- func (m *QueryVouchersResponse_Voucher) Marshal() (dAtA []byte, err error)
- func (m *QueryVouchersResponse_Voucher) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryVouchersResponse_Voucher) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryVouchersResponse_Voucher) ProtoMessage()
- func (m *QueryVouchersResponse_Voucher) Reset()
- func (m *QueryVouchersResponse_Voucher) Size() (n int)
- func (m *QueryVouchersResponse_Voucher) String() string
- func (m *QueryVouchersResponse_Voucher) Unmarshal(dAtA []byte) error
- func (m *QueryVouchersResponse_Voucher) XXX_DiscardUnknown()
- func (m *QueryVouchersResponse_Voucher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryVouchersResponse_Voucher) XXX_Merge(src proto.Message)
- func (m *QueryVouchersResponse_Voucher) XXX_Size() int
- func (m *QueryVouchersResponse_Voucher) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Create(ctx context.Context, req *MsgCreate) (*MsgCreateResponse, error)
- func (*UnimplementedMsgServer) Issue(ctx context.Context, req *MsgIssue) (*MsgIssueResponse, error)
- func (*UnimplementedMsgServer) UpdateIssuer(ctx context.Context, req *MsgUpdateIssuer) (*MsgUpdateIssuerResponse, error)
- func (*UnimplementedMsgServer) UpdateMetadata(ctx context.Context, req *MsgUpdateMetadata) (*MsgUpdateMetadataResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error)
- func (*UnimplementedQueryServer) BalancesByAddress(ctx context.Context, req *QueryBalancesByAddressRequest) (*QueryBalancesByAddressResponse, error)
- func (*UnimplementedQueryServer) BalancesByVoucher(ctx context.Context, req *QueryBalancesByVoucherRequest) (*QueryBalancesByVoucherResponse, error)
- func (*UnimplementedQueryServer) Voucher(ctx context.Context, req *QueryVoucherRequest) (*QueryVoucherResponse, error)
- func (*UnimplementedQueryServer) Vouchers(ctx context.Context, req *QueryVouchersRequest) (*QueryVouchersResponse, error)
- func (*UnimplementedQueryServer) VouchersByIssuer(ctx context.Context, req *QueryVouchersByIssuerRequest) (*QueryVouchersByIssuerResponse, error)
- type Voucher
- func (*Voucher) Descriptor() ([]byte, []int)
- func (m *Voucher) GetId() uint64
- func (m *Voucher) GetIssuer() []byte
- func (m *Voucher) GetMetadata() string
- func (m *Voucher) Marshal() (dAtA []byte, err error)
- func (m *Voucher) MarshalTo(dAtA []byte) (int, error)
- func (m *Voucher) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Voucher) ProtoMessage()
- func (m *Voucher) Reset()
- func (m *Voucher) Size() (n int)
- func (m *Voucher) String() string
- func (m *Voucher) Unmarshal(dAtA []byte) error
- func (m *Voucher) Validate() error
- func (m *Voucher) XXX_DiscardUnknown()
- func (m *Voucher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Voucher) XXX_Merge(src proto.Message)
- func (m *Voucher) XXX_Size() int
- func (m *Voucher) XXX_Unmarshal(b []byte) error
Constants ¶
const MetadataMaxLength = 128
MetadataMaxLength is the maximum length of metadata.
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 ( ErrInvalidLengthMsg = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowMsg = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers interfaces with the interface registry.
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
RegisterLegacyAminoCodec registers legacy amino codec.
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)
Types ¶
type Balance ¶
type Balance struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // address is the address of the voucher owner. Address []byte `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // amount is the amount of vouchers the address owns. Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` // expiration is the expiration of the vouchers. Expiration *types.Timestamp `protobuf:"bytes,4,opt,name=expiration,proto3" json:"expiration,omitempty"` }
Balance defines the table and properties of a voucher balance.
func (*Balance) Descriptor ¶
func (*Balance) GetAddress ¶
func (*Balance) GetExpiration ¶
func (*Balance) MarshalToSizedBuffer ¶
func (*Balance) ProtoMessage ¶
func (*Balance) ProtoMessage()
func (*Balance) XXX_DiscardUnknown ¶
func (m *Balance) XXX_DiscardUnknown()
func (*Balance) XXX_Marshal ¶
func (*Balance) XXX_Unmarshal ¶
type EventCreate ¶
type EventCreate struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
EventCreate is an event emitted when a voucher is created.
func (*EventCreate) Descriptor ¶
func (*EventCreate) Descriptor() ([]byte, []int)
func (*EventCreate) GetId ¶
func (m *EventCreate) GetId() uint64
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 EventIssue ¶
type EventIssue struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // metadata is the metadata of the issuance. Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` }
EventIssue is an event emitted when vouchers are issued.
func (*EventIssue) Descriptor ¶
func (*EventIssue) Descriptor() ([]byte, []int)
func (*EventIssue) GetId ¶
func (m *EventIssue) GetId() uint64
func (*EventIssue) GetMetadata ¶
func (m *EventIssue) GetMetadata() string
func (*EventIssue) Marshal ¶
func (m *EventIssue) Marshal() (dAtA []byte, err error)
func (*EventIssue) MarshalToSizedBuffer ¶
func (m *EventIssue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventIssue) ProtoMessage ¶
func (*EventIssue) ProtoMessage()
func (*EventIssue) Reset ¶
func (m *EventIssue) Reset()
func (*EventIssue) Size ¶
func (m *EventIssue) Size() (n int)
func (*EventIssue) String ¶
func (m *EventIssue) String() string
func (*EventIssue) Unmarshal ¶
func (m *EventIssue) Unmarshal(dAtA []byte) error
func (*EventIssue) XXX_DiscardUnknown ¶
func (m *EventIssue) XXX_DiscardUnknown()
func (*EventIssue) XXX_Marshal ¶
func (m *EventIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventIssue) XXX_Merge ¶
func (m *EventIssue) XXX_Merge(src proto.Message)
func (*EventIssue) XXX_Size ¶
func (m *EventIssue) XXX_Size() int
func (*EventIssue) XXX_Unmarshal ¶
func (m *EventIssue) XXX_Unmarshal(b []byte) error
type EventUpdateIssuer ¶
type EventUpdateIssuer struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
EventUpdateIssuer is an event emitted when voucher issuer is updated.
func (*EventUpdateIssuer) Descriptor ¶
func (*EventUpdateIssuer) Descriptor() ([]byte, []int)
func (*EventUpdateIssuer) GetId ¶
func (m *EventUpdateIssuer) GetId() uint64
func (*EventUpdateIssuer) Marshal ¶
func (m *EventUpdateIssuer) Marshal() (dAtA []byte, err error)
func (*EventUpdateIssuer) MarshalTo ¶
func (m *EventUpdateIssuer) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateIssuer) MarshalToSizedBuffer ¶
func (m *EventUpdateIssuer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateIssuer) ProtoMessage ¶
func (*EventUpdateIssuer) ProtoMessage()
func (*EventUpdateIssuer) Reset ¶
func (m *EventUpdateIssuer) Reset()
func (*EventUpdateIssuer) Size ¶
func (m *EventUpdateIssuer) Size() (n int)
func (*EventUpdateIssuer) String ¶
func (m *EventUpdateIssuer) String() string
func (*EventUpdateIssuer) Unmarshal ¶
func (m *EventUpdateIssuer) Unmarshal(dAtA []byte) error
func (*EventUpdateIssuer) XXX_DiscardUnknown ¶
func (m *EventUpdateIssuer) XXX_DiscardUnknown()
func (*EventUpdateIssuer) XXX_Marshal ¶
func (m *EventUpdateIssuer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateIssuer) XXX_Merge ¶
func (m *EventUpdateIssuer) XXX_Merge(src proto.Message)
func (*EventUpdateIssuer) XXX_Size ¶
func (m *EventUpdateIssuer) XXX_Size() int
func (*EventUpdateIssuer) XXX_Unmarshal ¶
func (m *EventUpdateIssuer) XXX_Unmarshal(b []byte) error
type EventUpdateMetadata ¶
type EventUpdateMetadata struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
EventUpdateMetadata is an event emitted when voucher metadata is updated.
func (*EventUpdateMetadata) Descriptor ¶
func (*EventUpdateMetadata) Descriptor() ([]byte, []int)
func (*EventUpdateMetadata) GetId ¶
func (m *EventUpdateMetadata) GetId() uint64
func (*EventUpdateMetadata) Marshal ¶
func (m *EventUpdateMetadata) Marshal() (dAtA []byte, err error)
func (*EventUpdateMetadata) MarshalTo ¶
func (m *EventUpdateMetadata) MarshalTo(dAtA []byte) (int, error)
func (*EventUpdateMetadata) MarshalToSizedBuffer ¶
func (m *EventUpdateMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventUpdateMetadata) ProtoMessage ¶
func (*EventUpdateMetadata) ProtoMessage()
func (*EventUpdateMetadata) Reset ¶
func (m *EventUpdateMetadata) Reset()
func (*EventUpdateMetadata) Size ¶
func (m *EventUpdateMetadata) Size() (n int)
func (*EventUpdateMetadata) String ¶
func (m *EventUpdateMetadata) String() string
func (*EventUpdateMetadata) Unmarshal ¶
func (m *EventUpdateMetadata) Unmarshal(dAtA []byte) error
func (*EventUpdateMetadata) XXX_DiscardUnknown ¶
func (m *EventUpdateMetadata) XXX_DiscardUnknown()
func (*EventUpdateMetadata) XXX_Marshal ¶
func (m *EventUpdateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventUpdateMetadata) XXX_Merge ¶
func (m *EventUpdateMetadata) XXX_Merge(src proto.Message)
func (*EventUpdateMetadata) XXX_Size ¶
func (m *EventUpdateMetadata) XXX_Size() int
func (*EventUpdateMetadata) XXX_Unmarshal ¶
func (m *EventUpdateMetadata) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // Create creates a voucher. Create(ctx context.Context, in *MsgCreate, opts ...grpc.CallOption) (*MsgCreateResponse, error) // Issue issues vouchers to a recipient. Issue(ctx context.Context, in *MsgIssue, opts ...grpc.CallOption) (*MsgIssueResponse, error) // UpdateIssuer updates the issuer of a voucher. UpdateIssuer(ctx context.Context, in *MsgUpdateIssuer, opts ...grpc.CallOption) (*MsgUpdateIssuerResponse, error) // UpdateMetadata updates the metadata of a voucher. UpdateMetadata(ctx context.Context, in *MsgUpdateMetadata, opts ...grpc.CallOption) (*MsgUpdateMetadataResponse, 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 { // issuer is the address of the voucher issuer. Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` // metadata is the metadata of the voucher. Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` }
MsgCreate is the Msg/Create request type.
func (*MsgCreate) Descriptor ¶
func (*MsgCreate) GetMetadata ¶
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 performs stateless validation on MsgCreate.
func (*MsgCreate) XXX_DiscardUnknown ¶
func (m *MsgCreate) XXX_DiscardUnknown()
func (*MsgCreate) XXX_Marshal ¶
func (*MsgCreate) XXX_Unmarshal ¶
type MsgCreateResponse ¶
type MsgCreateResponse struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
MsgCreateResponse is the Msg/Create response type.
func (*MsgCreateResponse) Descriptor ¶
func (*MsgCreateResponse) Descriptor() ([]byte, []int)
func (*MsgCreateResponse) GetId ¶
func (m *MsgCreateResponse) GetId() uint64
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 MsgIssue ¶
type MsgIssue struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // issuer is the address of the voucher issuer. Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` // recipient is the address of the recipient. Recipient string `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"` // amount is the amount of vouchers to issue. Amount string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"` // expiration is the expiration of the vouchers. Expiration *time.Time `protobuf:"bytes,5,opt,name=expiration,proto3,stdtime" json:"expiration,omitempty"` // metadata is the metadata of the issuance. Metadata string `protobuf:"bytes,6,opt,name=metadata,proto3" json:"metadata,omitempty"` }
MsgIssue is the Msg/Issue request type.
func (*MsgIssue) Descriptor ¶
func (*MsgIssue) GetExpiration ¶
func (*MsgIssue) GetMetadata ¶
func (*MsgIssue) GetRecipient ¶
func (MsgIssue) GetSigners ¶
func (m MsgIssue) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgIssue.
func (*MsgIssue) MarshalToSizedBuffer ¶
func (*MsgIssue) ProtoMessage ¶
func (*MsgIssue) ProtoMessage()
func (MsgIssue) ValidateBasic ¶
ValidateBasic performs stateless validation on MsgIssue.
func (*MsgIssue) XXX_DiscardUnknown ¶
func (m *MsgIssue) XXX_DiscardUnknown()
func (*MsgIssue) XXX_Marshal ¶
func (*MsgIssue) XXX_Unmarshal ¶
type MsgIssueResponse ¶
type MsgIssueResponse struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
MsgIssueResponse is the Msg/Issue response type.
func (*MsgIssueResponse) Descriptor ¶
func (*MsgIssueResponse) Descriptor() ([]byte, []int)
func (*MsgIssueResponse) GetId ¶
func (m *MsgIssueResponse) GetId() uint64
func (*MsgIssueResponse) Marshal ¶
func (m *MsgIssueResponse) Marshal() (dAtA []byte, err error)
func (*MsgIssueResponse) MarshalToSizedBuffer ¶
func (m *MsgIssueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueResponse) ProtoMessage ¶
func (*MsgIssueResponse) ProtoMessage()
func (*MsgIssueResponse) Reset ¶
func (m *MsgIssueResponse) Reset()
func (*MsgIssueResponse) Size ¶
func (m *MsgIssueResponse) Size() (n int)
func (*MsgIssueResponse) String ¶
func (m *MsgIssueResponse) String() string
func (*MsgIssueResponse) Unmarshal ¶
func (m *MsgIssueResponse) Unmarshal(dAtA []byte) error
func (*MsgIssueResponse) XXX_DiscardUnknown ¶
func (m *MsgIssueResponse) XXX_DiscardUnknown()
func (*MsgIssueResponse) XXX_Marshal ¶
func (m *MsgIssueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueResponse) XXX_Merge ¶
func (m *MsgIssueResponse) XXX_Merge(src proto.Message)
func (*MsgIssueResponse) XXX_Size ¶
func (m *MsgIssueResponse) XXX_Size() int
func (*MsgIssueResponse) XXX_Unmarshal ¶
func (m *MsgIssueResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Create creates a voucher. Create(context.Context, *MsgCreate) (*MsgCreateResponse, error) // Issue issues vouchers to a recipient. Issue(context.Context, *MsgIssue) (*MsgIssueResponse, error) // UpdateIssuer updates the issuer of a voucher. UpdateIssuer(context.Context, *MsgUpdateIssuer) (*MsgUpdateIssuerResponse, error) // UpdateMetadata updates the metadata of a voucher. UpdateMetadata(context.Context, *MsgUpdateMetadata) (*MsgUpdateMetadataResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateIssuer ¶
type MsgUpdateIssuer struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // issuer is the address of the voucher issuer. Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` // new_issuer is the address of the new issuer. NewIssuer string `protobuf:"bytes,3,opt,name=new_issuer,json=newIssuer,proto3" json:"new_issuer,omitempty"` }
MsgUpdateIssuer is the Msg/UpdateIssuer request type.
func (*MsgUpdateIssuer) Descriptor ¶
func (*MsgUpdateIssuer) Descriptor() ([]byte, []int)
func (*MsgUpdateIssuer) GetId ¶
func (m *MsgUpdateIssuer) GetId() uint64
func (*MsgUpdateIssuer) GetIssuer ¶
func (m *MsgUpdateIssuer) GetIssuer() string
func (*MsgUpdateIssuer) GetNewIssuer ¶
func (m *MsgUpdateIssuer) GetNewIssuer() string
func (MsgUpdateIssuer) GetSigners ¶
func (m MsgUpdateIssuer) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgUpdateIssuer.
func (*MsgUpdateIssuer) Marshal ¶
func (m *MsgUpdateIssuer) Marshal() (dAtA []byte, err error)
func (*MsgUpdateIssuer) MarshalToSizedBuffer ¶
func (m *MsgUpdateIssuer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateIssuer) ProtoMessage ¶
func (*MsgUpdateIssuer) ProtoMessage()
func (*MsgUpdateIssuer) Reset ¶
func (m *MsgUpdateIssuer) Reset()
func (MsgUpdateIssuer) Route ¶
func (m MsgUpdateIssuer) Route() string
Route implements the LegacyMsg interface.
func (*MsgUpdateIssuer) Size ¶
func (m *MsgUpdateIssuer) Size() (n int)
func (*MsgUpdateIssuer) String ¶
func (m *MsgUpdateIssuer) String() string
func (MsgUpdateIssuer) Type ¶
func (m MsgUpdateIssuer) Type() string
Type implements the LegacyMsg interface.
func (*MsgUpdateIssuer) Unmarshal ¶
func (m *MsgUpdateIssuer) Unmarshal(dAtA []byte) error
func (MsgUpdateIssuer) ValidateBasic ¶
func (m MsgUpdateIssuer) ValidateBasic() error
ValidateBasic performs stateless validation on MsgUpdateIssuer.
func (*MsgUpdateIssuer) XXX_DiscardUnknown ¶
func (m *MsgUpdateIssuer) XXX_DiscardUnknown()
func (*MsgUpdateIssuer) XXX_Marshal ¶
func (m *MsgUpdateIssuer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateIssuer) XXX_Merge ¶
func (m *MsgUpdateIssuer) XXX_Merge(src proto.Message)
func (*MsgUpdateIssuer) XXX_Size ¶
func (m *MsgUpdateIssuer) XXX_Size() int
func (*MsgUpdateIssuer) XXX_Unmarshal ¶
func (m *MsgUpdateIssuer) XXX_Unmarshal(b []byte) error
type MsgUpdateIssuerResponse ¶
type MsgUpdateIssuerResponse struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
MsgUpdateIssuerResponse is the Msg/UpdateIssuer response type.
func (*MsgUpdateIssuerResponse) Descriptor ¶
func (*MsgUpdateIssuerResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateIssuerResponse) GetId ¶
func (m *MsgUpdateIssuerResponse) GetId() uint64
func (*MsgUpdateIssuerResponse) Marshal ¶
func (m *MsgUpdateIssuerResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateIssuerResponse) MarshalTo ¶
func (m *MsgUpdateIssuerResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateIssuerResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateIssuerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateIssuerResponse) ProtoMessage ¶
func (*MsgUpdateIssuerResponse) ProtoMessage()
func (*MsgUpdateIssuerResponse) Reset ¶
func (m *MsgUpdateIssuerResponse) Reset()
func (*MsgUpdateIssuerResponse) Size ¶
func (m *MsgUpdateIssuerResponse) Size() (n int)
func (*MsgUpdateIssuerResponse) String ¶
func (m *MsgUpdateIssuerResponse) String() string
func (*MsgUpdateIssuerResponse) Unmarshal ¶
func (m *MsgUpdateIssuerResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateIssuerResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateIssuerResponse) XXX_DiscardUnknown()
func (*MsgUpdateIssuerResponse) XXX_Marshal ¶
func (m *MsgUpdateIssuerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateIssuerResponse) XXX_Merge ¶
func (m *MsgUpdateIssuerResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateIssuerResponse) XXX_Size ¶
func (m *MsgUpdateIssuerResponse) XXX_Size() int
func (*MsgUpdateIssuerResponse) XXX_Unmarshal ¶
func (m *MsgUpdateIssuerResponse) XXX_Unmarshal(b []byte) error
type MsgUpdateMetadata ¶
type MsgUpdateMetadata struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // issuer is the address of the voucher issuer. Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` // new_metadata is the new metadata of the voucher. NewMetadata string `protobuf:"bytes,3,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"` }
MsgUpdateMetadata is the Msg/UpdateMetadata request type.
func (*MsgUpdateMetadata) Descriptor ¶
func (*MsgUpdateMetadata) Descriptor() ([]byte, []int)
func (*MsgUpdateMetadata) GetId ¶
func (m *MsgUpdateMetadata) GetId() uint64
func (*MsgUpdateMetadata) GetIssuer ¶
func (m *MsgUpdateMetadata) GetIssuer() string
func (*MsgUpdateMetadata) GetNewMetadata ¶
func (m *MsgUpdateMetadata) GetNewMetadata() string
func (MsgUpdateMetadata) GetSigners ¶
func (m MsgUpdateMetadata) GetSigners() []sdk.AccAddress
GetSigners returns the expected signers for MsgUpdateMetadata.
func (*MsgUpdateMetadata) Marshal ¶
func (m *MsgUpdateMetadata) Marshal() (dAtA []byte, err error)
func (*MsgUpdateMetadata) MarshalTo ¶
func (m *MsgUpdateMetadata) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateMetadata) MarshalToSizedBuffer ¶
func (m *MsgUpdateMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateMetadata) ProtoMessage ¶
func (*MsgUpdateMetadata) ProtoMessage()
func (*MsgUpdateMetadata) Reset ¶
func (m *MsgUpdateMetadata) Reset()
func (MsgUpdateMetadata) Route ¶
func (m MsgUpdateMetadata) Route() string
Route implements the LegacyMsg interface.
func (*MsgUpdateMetadata) Size ¶
func (m *MsgUpdateMetadata) Size() (n int)
func (*MsgUpdateMetadata) String ¶
func (m *MsgUpdateMetadata) String() string
func (MsgUpdateMetadata) Type ¶
func (m MsgUpdateMetadata) Type() string
Type implements the LegacyMsg interface.
func (*MsgUpdateMetadata) Unmarshal ¶
func (m *MsgUpdateMetadata) Unmarshal(dAtA []byte) error
func (MsgUpdateMetadata) ValidateBasic ¶
func (m MsgUpdateMetadata) ValidateBasic() error
ValidateBasic performs stateless validation on MsgUpdateMetadata.
func (*MsgUpdateMetadata) XXX_DiscardUnknown ¶
func (m *MsgUpdateMetadata) XXX_DiscardUnknown()
func (*MsgUpdateMetadata) XXX_Marshal ¶
func (m *MsgUpdateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateMetadata) XXX_Merge ¶
func (m *MsgUpdateMetadata) XXX_Merge(src proto.Message)
func (*MsgUpdateMetadata) XXX_Size ¶
func (m *MsgUpdateMetadata) XXX_Size() int
func (*MsgUpdateMetadata) XXX_Unmarshal ¶
func (m *MsgUpdateMetadata) XXX_Unmarshal(b []byte) error
type MsgUpdateMetadataResponse ¶
type MsgUpdateMetadataResponse struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
MsgUpdateMetadataResponse is the Msg/UpdateMetadata response type.
func (*MsgUpdateMetadataResponse) Descriptor ¶
func (*MsgUpdateMetadataResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateMetadataResponse) GetId ¶
func (m *MsgUpdateMetadataResponse) GetId() uint64
func (*MsgUpdateMetadataResponse) Marshal ¶
func (m *MsgUpdateMetadataResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateMetadataResponse) MarshalTo ¶
func (m *MsgUpdateMetadataResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateMetadataResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateMetadataResponse) ProtoMessage ¶
func (*MsgUpdateMetadataResponse) ProtoMessage()
func (*MsgUpdateMetadataResponse) Reset ¶
func (m *MsgUpdateMetadataResponse) Reset()
func (*MsgUpdateMetadataResponse) Size ¶
func (m *MsgUpdateMetadataResponse) Size() (n int)
func (*MsgUpdateMetadataResponse) String ¶
func (m *MsgUpdateMetadataResponse) String() string
func (*MsgUpdateMetadataResponse) Unmarshal ¶
func (m *MsgUpdateMetadataResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateMetadataResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateMetadataResponse) XXX_DiscardUnknown()
func (*MsgUpdateMetadataResponse) XXX_Marshal ¶
func (m *MsgUpdateMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateMetadataResponse) XXX_Merge ¶
func (m *MsgUpdateMetadataResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateMetadataResponse) XXX_Size ¶
func (m *MsgUpdateMetadataResponse) XXX_Size() int
func (*MsgUpdateMetadataResponse) XXX_Unmarshal ¶
func (m *MsgUpdateMetadataResponse) XXX_Unmarshal(b []byte) error
type QueryBalanceRequest ¶
type QueryBalanceRequest struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // address is the address of the voucher owner. Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` }
QueryBalanceRequest is the Query/Balance request type.
func (*QueryBalanceRequest) Descriptor ¶
func (*QueryBalanceRequest) Descriptor() ([]byte, []int)
func (*QueryBalanceRequest) GetAddress ¶
func (m *QueryBalanceRequest) GetAddress() string
func (*QueryBalanceRequest) GetId ¶
func (m *QueryBalanceRequest) GetId() uint64
func (*QueryBalanceRequest) Marshal ¶
func (m *QueryBalanceRequest) Marshal() (dAtA []byte, err error)
func (*QueryBalanceRequest) MarshalTo ¶
func (m *QueryBalanceRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalanceRequest) MarshalToSizedBuffer ¶
func (m *QueryBalanceRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalanceRequest) ProtoMessage ¶
func (*QueryBalanceRequest) ProtoMessage()
func (*QueryBalanceRequest) Reset ¶
func (m *QueryBalanceRequest) Reset()
func (*QueryBalanceRequest) Size ¶
func (m *QueryBalanceRequest) Size() (n int)
func (*QueryBalanceRequest) String ¶
func (m *QueryBalanceRequest) String() string
func (*QueryBalanceRequest) Unmarshal ¶
func (m *QueryBalanceRequest) Unmarshal(dAtA []byte) error
func (*QueryBalanceRequest) XXX_DiscardUnknown ¶
func (m *QueryBalanceRequest) XXX_DiscardUnknown()
func (*QueryBalanceRequest) XXX_Marshal ¶
func (m *QueryBalanceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalanceRequest) XXX_Merge ¶
func (m *QueryBalanceRequest) XXX_Merge(src proto.Message)
func (*QueryBalanceRequest) XXX_Size ¶
func (m *QueryBalanceRequest) XXX_Size() int
func (*QueryBalanceRequest) XXX_Unmarshal ¶
func (m *QueryBalanceRequest) XXX_Unmarshal(b []byte) error
type QueryBalanceResponse ¶
type QueryBalanceResponse struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // address is the address of the voucher owner. Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // total_amount is the total amount the address owns. TotalAmount string `protobuf:"bytes,3,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` // amounts is the list of amounts with expiration. Amounts []*QueryBalanceResponse_Amount `protobuf:"bytes,4,rep,name=amounts,proto3" json:"amounts,omitempty"` }
QueryBalanceResponse is the Query/Balance response type.
func (*QueryBalanceResponse) Descriptor ¶
func (*QueryBalanceResponse) Descriptor() ([]byte, []int)
func (*QueryBalanceResponse) GetAddress ¶
func (m *QueryBalanceResponse) GetAddress() string
func (*QueryBalanceResponse) GetAmounts ¶
func (m *QueryBalanceResponse) GetAmounts() []*QueryBalanceResponse_Amount
func (*QueryBalanceResponse) GetId ¶
func (m *QueryBalanceResponse) GetId() uint64
func (*QueryBalanceResponse) GetTotalAmount ¶
func (m *QueryBalanceResponse) GetTotalAmount() string
func (*QueryBalanceResponse) Marshal ¶
func (m *QueryBalanceResponse) Marshal() (dAtA []byte, err error)
func (*QueryBalanceResponse) MarshalTo ¶
func (m *QueryBalanceResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalanceResponse) MarshalToSizedBuffer ¶
func (m *QueryBalanceResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalanceResponse) ProtoMessage ¶
func (*QueryBalanceResponse) ProtoMessage()
func (*QueryBalanceResponse) Reset ¶
func (m *QueryBalanceResponse) Reset()
func (*QueryBalanceResponse) Size ¶
func (m *QueryBalanceResponse) Size() (n int)
func (*QueryBalanceResponse) String ¶
func (m *QueryBalanceResponse) String() string
func (*QueryBalanceResponse) Unmarshal ¶
func (m *QueryBalanceResponse) Unmarshal(dAtA []byte) error
func (*QueryBalanceResponse) XXX_DiscardUnknown ¶
func (m *QueryBalanceResponse) XXX_DiscardUnknown()
func (*QueryBalanceResponse) XXX_Marshal ¶
func (m *QueryBalanceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalanceResponse) XXX_Merge ¶
func (m *QueryBalanceResponse) XXX_Merge(src proto.Message)
func (*QueryBalanceResponse) XXX_Size ¶
func (m *QueryBalanceResponse) XXX_Size() int
func (*QueryBalanceResponse) XXX_Unmarshal ¶
func (m *QueryBalanceResponse) XXX_Unmarshal(b []byte) error
type QueryBalanceResponse_Amount ¶
type QueryBalanceResponse_Amount struct { // amount is the amount of vouchers. Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` // expiration is the expiration of the voucher. Expiration *time.Time `protobuf:"bytes,2,opt,name=expiration,proto3,stdtime" json:"expiration,omitempty"` }
Amount is the amount with expiration.
func (*QueryBalanceResponse_Amount) Descriptor ¶
func (*QueryBalanceResponse_Amount) Descriptor() ([]byte, []int)
func (*QueryBalanceResponse_Amount) GetAmount ¶
func (m *QueryBalanceResponse_Amount) GetAmount() string
func (*QueryBalanceResponse_Amount) GetExpiration ¶
func (m *QueryBalanceResponse_Amount) GetExpiration() *time.Time
func (*QueryBalanceResponse_Amount) Marshal ¶
func (m *QueryBalanceResponse_Amount) Marshal() (dAtA []byte, err error)
func (*QueryBalanceResponse_Amount) MarshalTo ¶
func (m *QueryBalanceResponse_Amount) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalanceResponse_Amount) MarshalToSizedBuffer ¶
func (m *QueryBalanceResponse_Amount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalanceResponse_Amount) ProtoMessage ¶
func (*QueryBalanceResponse_Amount) ProtoMessage()
func (*QueryBalanceResponse_Amount) Reset ¶
func (m *QueryBalanceResponse_Amount) Reset()
func (*QueryBalanceResponse_Amount) Size ¶
func (m *QueryBalanceResponse_Amount) Size() (n int)
func (*QueryBalanceResponse_Amount) String ¶
func (m *QueryBalanceResponse_Amount) String() string
func (*QueryBalanceResponse_Amount) Unmarshal ¶
func (m *QueryBalanceResponse_Amount) Unmarshal(dAtA []byte) error
func (*QueryBalanceResponse_Amount) XXX_DiscardUnknown ¶
func (m *QueryBalanceResponse_Amount) XXX_DiscardUnknown()
func (*QueryBalanceResponse_Amount) XXX_Marshal ¶
func (m *QueryBalanceResponse_Amount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalanceResponse_Amount) XXX_Merge ¶
func (m *QueryBalanceResponse_Amount) XXX_Merge(src proto.Message)
func (*QueryBalanceResponse_Amount) XXX_Size ¶
func (m *QueryBalanceResponse_Amount) XXX_Size() int
func (*QueryBalanceResponse_Amount) XXX_Unmarshal ¶
func (m *QueryBalanceResponse_Amount) XXX_Unmarshal(b []byte) error
type QueryBalancesByAddressRequest ¶
type QueryBalancesByAddressRequest struct { // address is the address of the voucher owner. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // pagination is the optional pagination of the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBalancesByAddressRequest is the Query/BalancesByAddress request type.
func (*QueryBalancesByAddressRequest) Descriptor ¶
func (*QueryBalancesByAddressRequest) Descriptor() ([]byte, []int)
func (*QueryBalancesByAddressRequest) GetAddress ¶
func (m *QueryBalancesByAddressRequest) GetAddress() string
func (*QueryBalancesByAddressRequest) GetPagination ¶
func (m *QueryBalancesByAddressRequest) GetPagination() *query.PageRequest
func (*QueryBalancesByAddressRequest) Marshal ¶
func (m *QueryBalancesByAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryBalancesByAddressRequest) MarshalTo ¶
func (m *QueryBalancesByAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalancesByAddressRequest) MarshalToSizedBuffer ¶
func (m *QueryBalancesByAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalancesByAddressRequest) ProtoMessage ¶
func (*QueryBalancesByAddressRequest) ProtoMessage()
func (*QueryBalancesByAddressRequest) Reset ¶
func (m *QueryBalancesByAddressRequest) Reset()
func (*QueryBalancesByAddressRequest) Size ¶
func (m *QueryBalancesByAddressRequest) Size() (n int)
func (*QueryBalancesByAddressRequest) String ¶
func (m *QueryBalancesByAddressRequest) String() string
func (*QueryBalancesByAddressRequest) Unmarshal ¶
func (m *QueryBalancesByAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryBalancesByAddressRequest) XXX_DiscardUnknown ¶
func (m *QueryBalancesByAddressRequest) XXX_DiscardUnknown()
func (*QueryBalancesByAddressRequest) XXX_Marshal ¶
func (m *QueryBalancesByAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalancesByAddressRequest) XXX_Merge ¶
func (m *QueryBalancesByAddressRequest) XXX_Merge(src proto.Message)
func (*QueryBalancesByAddressRequest) XXX_Size ¶
func (m *QueryBalancesByAddressRequest) XXX_Size() int
func (*QueryBalancesByAddressRequest) XXX_Unmarshal ¶
func (m *QueryBalancesByAddressRequest) XXX_Unmarshal(b []byte) error
type QueryBalancesByAddressResponse ¶
type QueryBalancesByAddressResponse struct { // address is the address of the voucher owner. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // total_amounts is the list of total amounts. TotalAmounts []*QueryBalancesByAddressResponse_TotalAmount `protobuf:"bytes,2,rep,name=total_amounts,json=totalAmounts,proto3" json:"total_amounts,omitempty"` // pagination is the pagination of the response. Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBalancesByAddressResponse is the Query/BalancesByAddress response type.
func (*QueryBalancesByAddressResponse) Descriptor ¶
func (*QueryBalancesByAddressResponse) Descriptor() ([]byte, []int)
func (*QueryBalancesByAddressResponse) GetAddress ¶
func (m *QueryBalancesByAddressResponse) GetAddress() string
func (*QueryBalancesByAddressResponse) GetPagination ¶
func (m *QueryBalancesByAddressResponse) GetPagination() *query.PageResponse
func (*QueryBalancesByAddressResponse) GetTotalAmounts ¶
func (m *QueryBalancesByAddressResponse) GetTotalAmounts() []*QueryBalancesByAddressResponse_TotalAmount
func (*QueryBalancesByAddressResponse) Marshal ¶
func (m *QueryBalancesByAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryBalancesByAddressResponse) MarshalTo ¶
func (m *QueryBalancesByAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalancesByAddressResponse) MarshalToSizedBuffer ¶
func (m *QueryBalancesByAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalancesByAddressResponse) ProtoMessage ¶
func (*QueryBalancesByAddressResponse) ProtoMessage()
func (*QueryBalancesByAddressResponse) Reset ¶
func (m *QueryBalancesByAddressResponse) Reset()
func (*QueryBalancesByAddressResponse) Size ¶
func (m *QueryBalancesByAddressResponse) Size() (n int)
func (*QueryBalancesByAddressResponse) String ¶
func (m *QueryBalancesByAddressResponse) String() string
func (*QueryBalancesByAddressResponse) Unmarshal ¶
func (m *QueryBalancesByAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryBalancesByAddressResponse) XXX_DiscardUnknown ¶
func (m *QueryBalancesByAddressResponse) XXX_DiscardUnknown()
func (*QueryBalancesByAddressResponse) XXX_Marshal ¶
func (m *QueryBalancesByAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalancesByAddressResponse) XXX_Merge ¶
func (m *QueryBalancesByAddressResponse) XXX_Merge(src proto.Message)
func (*QueryBalancesByAddressResponse) XXX_Size ¶
func (m *QueryBalancesByAddressResponse) XXX_Size() int
func (*QueryBalancesByAddressResponse) XXX_Unmarshal ¶
func (m *QueryBalancesByAddressResponse) XXX_Unmarshal(b []byte) error
type QueryBalancesByAddressResponse_TotalAmount ¶
type QueryBalancesByAddressResponse_TotalAmount struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // total_amount is the total amount the address owns. TotalAmount string `protobuf:"bytes,2,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` }
TotalAmount is the total amount.
func (*QueryBalancesByAddressResponse_TotalAmount) Descriptor ¶
func (*QueryBalancesByAddressResponse_TotalAmount) Descriptor() ([]byte, []int)
func (*QueryBalancesByAddressResponse_TotalAmount) GetId ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) GetId() uint64
func (*QueryBalancesByAddressResponse_TotalAmount) GetTotalAmount ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) GetTotalAmount() string
func (*QueryBalancesByAddressResponse_TotalAmount) Marshal ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) Marshal() (dAtA []byte, err error)
func (*QueryBalancesByAddressResponse_TotalAmount) MarshalTo ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalancesByAddressResponse_TotalAmount) MarshalToSizedBuffer ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalancesByAddressResponse_TotalAmount) ProtoMessage ¶
func (*QueryBalancesByAddressResponse_TotalAmount) ProtoMessage()
func (*QueryBalancesByAddressResponse_TotalAmount) Reset ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) Reset()
func (*QueryBalancesByAddressResponse_TotalAmount) Size ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) Size() (n int)
func (*QueryBalancesByAddressResponse_TotalAmount) String ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) String() string
func (*QueryBalancesByAddressResponse_TotalAmount) Unmarshal ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) Unmarshal(dAtA []byte) error
func (*QueryBalancesByAddressResponse_TotalAmount) XXX_DiscardUnknown ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) XXX_DiscardUnknown()
func (*QueryBalancesByAddressResponse_TotalAmount) XXX_Marshal ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalancesByAddressResponse_TotalAmount) XXX_Merge ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) XXX_Merge(src proto.Message)
func (*QueryBalancesByAddressResponse_TotalAmount) XXX_Size ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) XXX_Size() int
func (*QueryBalancesByAddressResponse_TotalAmount) XXX_Unmarshal ¶
func (m *QueryBalancesByAddressResponse_TotalAmount) XXX_Unmarshal(b []byte) error
type QueryBalancesByVoucherRequest ¶
type QueryBalancesByVoucherRequest struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // pagination is the optional pagination of the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBalancesByVoucherRequest is the Query/BalancesByVoucher request type.
func (*QueryBalancesByVoucherRequest) Descriptor ¶
func (*QueryBalancesByVoucherRequest) Descriptor() ([]byte, []int)
func (*QueryBalancesByVoucherRequest) GetId ¶
func (m *QueryBalancesByVoucherRequest) GetId() uint64
func (*QueryBalancesByVoucherRequest) GetPagination ¶
func (m *QueryBalancesByVoucherRequest) GetPagination() *query.PageRequest
func (*QueryBalancesByVoucherRequest) Marshal ¶
func (m *QueryBalancesByVoucherRequest) Marshal() (dAtA []byte, err error)
func (*QueryBalancesByVoucherRequest) MarshalTo ¶
func (m *QueryBalancesByVoucherRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalancesByVoucherRequest) MarshalToSizedBuffer ¶
func (m *QueryBalancesByVoucherRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalancesByVoucherRequest) ProtoMessage ¶
func (*QueryBalancesByVoucherRequest) ProtoMessage()
func (*QueryBalancesByVoucherRequest) Reset ¶
func (m *QueryBalancesByVoucherRequest) Reset()
func (*QueryBalancesByVoucherRequest) Size ¶
func (m *QueryBalancesByVoucherRequest) Size() (n int)
func (*QueryBalancesByVoucherRequest) String ¶
func (m *QueryBalancesByVoucherRequest) String() string
func (*QueryBalancesByVoucherRequest) Unmarshal ¶
func (m *QueryBalancesByVoucherRequest) Unmarshal(dAtA []byte) error
func (*QueryBalancesByVoucherRequest) XXX_DiscardUnknown ¶
func (m *QueryBalancesByVoucherRequest) XXX_DiscardUnknown()
func (*QueryBalancesByVoucherRequest) XXX_Marshal ¶
func (m *QueryBalancesByVoucherRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalancesByVoucherRequest) XXX_Merge ¶
func (m *QueryBalancesByVoucherRequest) XXX_Merge(src proto.Message)
func (*QueryBalancesByVoucherRequest) XXX_Size ¶
func (m *QueryBalancesByVoucherRequest) XXX_Size() int
func (*QueryBalancesByVoucherRequest) XXX_Unmarshal ¶
func (m *QueryBalancesByVoucherRequest) XXX_Unmarshal(b []byte) error
type QueryBalancesByVoucherResponse ¶
type QueryBalancesByVoucherResponse struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // total_amounts is the list of total amounts. TotalAmounts []*QueryBalancesByVoucherResponse_TotalAmount `protobuf:"bytes,2,rep,name=total_amounts,json=totalAmounts,proto3" json:"total_amounts,omitempty"` // pagination is the pagination of the response. Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryBalancesByVoucherResponse is the Query/BalancesByVoucher response type.
func (*QueryBalancesByVoucherResponse) Descriptor ¶
func (*QueryBalancesByVoucherResponse) Descriptor() ([]byte, []int)
func (*QueryBalancesByVoucherResponse) GetId ¶
func (m *QueryBalancesByVoucherResponse) GetId() uint64
func (*QueryBalancesByVoucherResponse) GetPagination ¶
func (m *QueryBalancesByVoucherResponse) GetPagination() *query.PageResponse
func (*QueryBalancesByVoucherResponse) GetTotalAmounts ¶
func (m *QueryBalancesByVoucherResponse) GetTotalAmounts() []*QueryBalancesByVoucherResponse_TotalAmount
func (*QueryBalancesByVoucherResponse) Marshal ¶
func (m *QueryBalancesByVoucherResponse) Marshal() (dAtA []byte, err error)
func (*QueryBalancesByVoucherResponse) MarshalTo ¶
func (m *QueryBalancesByVoucherResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalancesByVoucherResponse) MarshalToSizedBuffer ¶
func (m *QueryBalancesByVoucherResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalancesByVoucherResponse) ProtoMessage ¶
func (*QueryBalancesByVoucherResponse) ProtoMessage()
func (*QueryBalancesByVoucherResponse) Reset ¶
func (m *QueryBalancesByVoucherResponse) Reset()
func (*QueryBalancesByVoucherResponse) Size ¶
func (m *QueryBalancesByVoucherResponse) Size() (n int)
func (*QueryBalancesByVoucherResponse) String ¶
func (m *QueryBalancesByVoucherResponse) String() string
func (*QueryBalancesByVoucherResponse) Unmarshal ¶
func (m *QueryBalancesByVoucherResponse) Unmarshal(dAtA []byte) error
func (*QueryBalancesByVoucherResponse) XXX_DiscardUnknown ¶
func (m *QueryBalancesByVoucherResponse) XXX_DiscardUnknown()
func (*QueryBalancesByVoucherResponse) XXX_Marshal ¶
func (m *QueryBalancesByVoucherResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalancesByVoucherResponse) XXX_Merge ¶
func (m *QueryBalancesByVoucherResponse) XXX_Merge(src proto.Message)
func (*QueryBalancesByVoucherResponse) XXX_Size ¶
func (m *QueryBalancesByVoucherResponse) XXX_Size() int
func (*QueryBalancesByVoucherResponse) XXX_Unmarshal ¶
func (m *QueryBalancesByVoucherResponse) XXX_Unmarshal(b []byte) error
type QueryBalancesByVoucherResponse_TotalAmount ¶
type QueryBalancesByVoucherResponse_TotalAmount struct { // address is the address of the voucher owner. Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // total_amount is the total amount the address owns. TotalAmount string `protobuf:"bytes,2,opt,name=total_amount,json=totalAmount,proto3" json:"total_amount,omitempty"` }
TotalAmount is the total amount.
func (*QueryBalancesByVoucherResponse_TotalAmount) Descriptor ¶
func (*QueryBalancesByVoucherResponse_TotalAmount) Descriptor() ([]byte, []int)
func (*QueryBalancesByVoucherResponse_TotalAmount) GetAddress ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) GetAddress() string
func (*QueryBalancesByVoucherResponse_TotalAmount) GetTotalAmount ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) GetTotalAmount() string
func (*QueryBalancesByVoucherResponse_TotalAmount) Marshal ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) Marshal() (dAtA []byte, err error)
func (*QueryBalancesByVoucherResponse_TotalAmount) MarshalTo ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) MarshalTo(dAtA []byte) (int, error)
func (*QueryBalancesByVoucherResponse_TotalAmount) MarshalToSizedBuffer ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryBalancesByVoucherResponse_TotalAmount) ProtoMessage ¶
func (*QueryBalancesByVoucherResponse_TotalAmount) ProtoMessage()
func (*QueryBalancesByVoucherResponse_TotalAmount) Reset ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) Reset()
func (*QueryBalancesByVoucherResponse_TotalAmount) Size ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) Size() (n int)
func (*QueryBalancesByVoucherResponse_TotalAmount) String ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) String() string
func (*QueryBalancesByVoucherResponse_TotalAmount) Unmarshal ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) Unmarshal(dAtA []byte) error
func (*QueryBalancesByVoucherResponse_TotalAmount) XXX_DiscardUnknown ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) XXX_DiscardUnknown()
func (*QueryBalancesByVoucherResponse_TotalAmount) XXX_Marshal ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryBalancesByVoucherResponse_TotalAmount) XXX_Merge ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) XXX_Merge(src proto.Message)
func (*QueryBalancesByVoucherResponse_TotalAmount) XXX_Size ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) XXX_Size() int
func (*QueryBalancesByVoucherResponse_TotalAmount) XXX_Unmarshal ¶
func (m *QueryBalancesByVoucherResponse_TotalAmount) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // Voucher queries a voucher by id. Voucher(ctx context.Context, in *QueryVoucherRequest, opts ...grpc.CallOption) (*QueryVoucherResponse, error) // Vouchers queries all vouchers. Vouchers(ctx context.Context, in *QueryVouchersRequest, opts ...grpc.CallOption) (*QueryVouchersResponse, error) // VouchersByIssuer queries vouchers by issuer. VouchersByIssuer(ctx context.Context, in *QueryVouchersByIssuerRequest, opts ...grpc.CallOption) (*QueryVouchersByIssuerResponse, error) // Balance queries the balance of a voucher and address. Balance(ctx context.Context, in *QueryBalanceRequest, opts ...grpc.CallOption) (*QueryBalanceResponse, error) // BalancesByAddress queries all balances of an address. BalancesByAddress(ctx context.Context, in *QueryBalancesByAddressRequest, opts ...grpc.CallOption) (*QueryBalancesByAddressResponse, error) // BalancesByVoucher queries all balances of a voucher. BalancesByVoucher(ctx context.Context, in *QueryBalancesByVoucherRequest, opts ...grpc.CallOption) (*QueryBalancesByVoucherResponse, 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 { // Voucher queries a voucher by id. Voucher(context.Context, *QueryVoucherRequest) (*QueryVoucherResponse, error) // Vouchers queries all vouchers. Vouchers(context.Context, *QueryVouchersRequest) (*QueryVouchersResponse, error) // VouchersByIssuer queries vouchers by issuer. VouchersByIssuer(context.Context, *QueryVouchersByIssuerRequest) (*QueryVouchersByIssuerResponse, error) // Balance queries the balance of a voucher and address. Balance(context.Context, *QueryBalanceRequest) (*QueryBalanceResponse, error) // BalancesByAddress queries all balances of an address. BalancesByAddress(context.Context, *QueryBalancesByAddressRequest) (*QueryBalancesByAddressResponse, error) // BalancesByVoucher queries all balances of a voucher. BalancesByVoucher(context.Context, *QueryBalancesByVoucherRequest) (*QueryBalancesByVoucherResponse, error) }
QueryServer is the server API for Query service.
type QueryVoucherRequest ¶
type QueryVoucherRequest struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` }
QueryVoucherRequest is the Query/Voucher request type.
func (*QueryVoucherRequest) Descriptor ¶
func (*QueryVoucherRequest) Descriptor() ([]byte, []int)
func (*QueryVoucherRequest) GetId ¶
func (m *QueryVoucherRequest) GetId() uint64
func (*QueryVoucherRequest) Marshal ¶
func (m *QueryVoucherRequest) Marshal() (dAtA []byte, err error)
func (*QueryVoucherRequest) MarshalTo ¶
func (m *QueryVoucherRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryVoucherRequest) MarshalToSizedBuffer ¶
func (m *QueryVoucherRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVoucherRequest) ProtoMessage ¶
func (*QueryVoucherRequest) ProtoMessage()
func (*QueryVoucherRequest) Reset ¶
func (m *QueryVoucherRequest) Reset()
func (*QueryVoucherRequest) Size ¶
func (m *QueryVoucherRequest) Size() (n int)
func (*QueryVoucherRequest) String ¶
func (m *QueryVoucherRequest) String() string
func (*QueryVoucherRequest) Unmarshal ¶
func (m *QueryVoucherRequest) Unmarshal(dAtA []byte) error
func (*QueryVoucherRequest) XXX_DiscardUnknown ¶
func (m *QueryVoucherRequest) XXX_DiscardUnknown()
func (*QueryVoucherRequest) XXX_Marshal ¶
func (m *QueryVoucherRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVoucherRequest) XXX_Merge ¶
func (m *QueryVoucherRequest) XXX_Merge(src proto.Message)
func (*QueryVoucherRequest) XXX_Size ¶
func (m *QueryVoucherRequest) XXX_Size() int
func (*QueryVoucherRequest) XXX_Unmarshal ¶
func (m *QueryVoucherRequest) XXX_Unmarshal(b []byte) error
type QueryVoucherResponse ¶
type QueryVoucherResponse struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // issuer is the address of the voucher issuer. Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` // metadata is the metadata of the voucher. Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` }
QueryVoucherResponse is the Query/Voucher response type.
func (*QueryVoucherResponse) Descriptor ¶
func (*QueryVoucherResponse) Descriptor() ([]byte, []int)
func (*QueryVoucherResponse) GetId ¶
func (m *QueryVoucherResponse) GetId() uint64
func (*QueryVoucherResponse) GetIssuer ¶
func (m *QueryVoucherResponse) GetIssuer() string
func (*QueryVoucherResponse) GetMetadata ¶
func (m *QueryVoucherResponse) GetMetadata() string
func (*QueryVoucherResponse) Marshal ¶
func (m *QueryVoucherResponse) Marshal() (dAtA []byte, err error)
func (*QueryVoucherResponse) MarshalTo ¶
func (m *QueryVoucherResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryVoucherResponse) MarshalToSizedBuffer ¶
func (m *QueryVoucherResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVoucherResponse) ProtoMessage ¶
func (*QueryVoucherResponse) ProtoMessage()
func (*QueryVoucherResponse) Reset ¶
func (m *QueryVoucherResponse) Reset()
func (*QueryVoucherResponse) Size ¶
func (m *QueryVoucherResponse) Size() (n int)
func (*QueryVoucherResponse) String ¶
func (m *QueryVoucherResponse) String() string
func (*QueryVoucherResponse) Unmarshal ¶
func (m *QueryVoucherResponse) Unmarshal(dAtA []byte) error
func (*QueryVoucherResponse) XXX_DiscardUnknown ¶
func (m *QueryVoucherResponse) XXX_DiscardUnknown()
func (*QueryVoucherResponse) XXX_Marshal ¶
func (m *QueryVoucherResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVoucherResponse) XXX_Merge ¶
func (m *QueryVoucherResponse) XXX_Merge(src proto.Message)
func (*QueryVoucherResponse) XXX_Size ¶
func (m *QueryVoucherResponse) XXX_Size() int
func (*QueryVoucherResponse) XXX_Unmarshal ¶
func (m *QueryVoucherResponse) XXX_Unmarshal(b []byte) error
type QueryVouchersByIssuerRequest ¶
type QueryVouchersByIssuerRequest struct { // issuer is the address of the voucher issuer. Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` // pagination is the optional pagination of the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryVouchersByIssuerRequest is the Query/VouchersByIssuer request type.
func (*QueryVouchersByIssuerRequest) Descriptor ¶
func (*QueryVouchersByIssuerRequest) Descriptor() ([]byte, []int)
func (*QueryVouchersByIssuerRequest) GetIssuer ¶
func (m *QueryVouchersByIssuerRequest) GetIssuer() string
func (*QueryVouchersByIssuerRequest) GetPagination ¶
func (m *QueryVouchersByIssuerRequest) GetPagination() *query.PageRequest
func (*QueryVouchersByIssuerRequest) Marshal ¶
func (m *QueryVouchersByIssuerRequest) Marshal() (dAtA []byte, err error)
func (*QueryVouchersByIssuerRequest) MarshalTo ¶
func (m *QueryVouchersByIssuerRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryVouchersByIssuerRequest) MarshalToSizedBuffer ¶
func (m *QueryVouchersByIssuerRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVouchersByIssuerRequest) ProtoMessage ¶
func (*QueryVouchersByIssuerRequest) ProtoMessage()
func (*QueryVouchersByIssuerRequest) Reset ¶
func (m *QueryVouchersByIssuerRequest) Reset()
func (*QueryVouchersByIssuerRequest) Size ¶
func (m *QueryVouchersByIssuerRequest) Size() (n int)
func (*QueryVouchersByIssuerRequest) String ¶
func (m *QueryVouchersByIssuerRequest) String() string
func (*QueryVouchersByIssuerRequest) Unmarshal ¶
func (m *QueryVouchersByIssuerRequest) Unmarshal(dAtA []byte) error
func (*QueryVouchersByIssuerRequest) XXX_DiscardUnknown ¶
func (m *QueryVouchersByIssuerRequest) XXX_DiscardUnknown()
func (*QueryVouchersByIssuerRequest) XXX_Marshal ¶
func (m *QueryVouchersByIssuerRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVouchersByIssuerRequest) XXX_Merge ¶
func (m *QueryVouchersByIssuerRequest) XXX_Merge(src proto.Message)
func (*QueryVouchersByIssuerRequest) XXX_Size ¶
func (m *QueryVouchersByIssuerRequest) XXX_Size() int
func (*QueryVouchersByIssuerRequest) XXX_Unmarshal ¶
func (m *QueryVouchersByIssuerRequest) XXX_Unmarshal(b []byte) error
type QueryVouchersByIssuerResponse ¶
type QueryVouchersByIssuerResponse struct { // issuer is the address of the voucher issuer. Issuer string `protobuf:"bytes,1,opt,name=issuer,proto3" json:"issuer,omitempty"` // vouchers is the list of vouchers managed by the issuer. Vouchers []*QueryVouchersByIssuerResponse_Voucher `protobuf:"bytes,2,rep,name=vouchers,proto3" json:"vouchers,omitempty"` // pagination is the pagination of the response. Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryVouchersByIssuerResponse is the Query/VouchersByIssuer response type.
func (*QueryVouchersByIssuerResponse) Descriptor ¶
func (*QueryVouchersByIssuerResponse) Descriptor() ([]byte, []int)
func (*QueryVouchersByIssuerResponse) GetIssuer ¶
func (m *QueryVouchersByIssuerResponse) GetIssuer() string
func (*QueryVouchersByIssuerResponse) GetPagination ¶
func (m *QueryVouchersByIssuerResponse) GetPagination() *query.PageResponse
func (*QueryVouchersByIssuerResponse) GetVouchers ¶
func (m *QueryVouchersByIssuerResponse) GetVouchers() []*QueryVouchersByIssuerResponse_Voucher
func (*QueryVouchersByIssuerResponse) Marshal ¶
func (m *QueryVouchersByIssuerResponse) Marshal() (dAtA []byte, err error)
func (*QueryVouchersByIssuerResponse) MarshalTo ¶
func (m *QueryVouchersByIssuerResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryVouchersByIssuerResponse) MarshalToSizedBuffer ¶
func (m *QueryVouchersByIssuerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVouchersByIssuerResponse) ProtoMessage ¶
func (*QueryVouchersByIssuerResponse) ProtoMessage()
func (*QueryVouchersByIssuerResponse) Reset ¶
func (m *QueryVouchersByIssuerResponse) Reset()
func (*QueryVouchersByIssuerResponse) Size ¶
func (m *QueryVouchersByIssuerResponse) Size() (n int)
func (*QueryVouchersByIssuerResponse) String ¶
func (m *QueryVouchersByIssuerResponse) String() string
func (*QueryVouchersByIssuerResponse) Unmarshal ¶
func (m *QueryVouchersByIssuerResponse) Unmarshal(dAtA []byte) error
func (*QueryVouchersByIssuerResponse) XXX_DiscardUnknown ¶
func (m *QueryVouchersByIssuerResponse) XXX_DiscardUnknown()
func (*QueryVouchersByIssuerResponse) XXX_Marshal ¶
func (m *QueryVouchersByIssuerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVouchersByIssuerResponse) XXX_Merge ¶
func (m *QueryVouchersByIssuerResponse) XXX_Merge(src proto.Message)
func (*QueryVouchersByIssuerResponse) XXX_Size ¶
func (m *QueryVouchersByIssuerResponse) XXX_Size() int
func (*QueryVouchersByIssuerResponse) XXX_Unmarshal ¶
func (m *QueryVouchersByIssuerResponse) XXX_Unmarshal(b []byte) error
type QueryVouchersByIssuerResponse_Voucher ¶
type QueryVouchersByIssuerResponse_Voucher struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // metadata is the metadata of the voucher. Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` }
Voucher is the voucher properties.
func (*QueryVouchersByIssuerResponse_Voucher) Descriptor ¶
func (*QueryVouchersByIssuerResponse_Voucher) Descriptor() ([]byte, []int)
func (*QueryVouchersByIssuerResponse_Voucher) GetId ¶
func (m *QueryVouchersByIssuerResponse_Voucher) GetId() uint64
func (*QueryVouchersByIssuerResponse_Voucher) GetMetadata ¶
func (m *QueryVouchersByIssuerResponse_Voucher) GetMetadata() string
func (*QueryVouchersByIssuerResponse_Voucher) Marshal ¶
func (m *QueryVouchersByIssuerResponse_Voucher) Marshal() (dAtA []byte, err error)
func (*QueryVouchersByIssuerResponse_Voucher) MarshalTo ¶
func (m *QueryVouchersByIssuerResponse_Voucher) MarshalTo(dAtA []byte) (int, error)
func (*QueryVouchersByIssuerResponse_Voucher) MarshalToSizedBuffer ¶
func (m *QueryVouchersByIssuerResponse_Voucher) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVouchersByIssuerResponse_Voucher) ProtoMessage ¶
func (*QueryVouchersByIssuerResponse_Voucher) ProtoMessage()
func (*QueryVouchersByIssuerResponse_Voucher) Reset ¶
func (m *QueryVouchersByIssuerResponse_Voucher) Reset()
func (*QueryVouchersByIssuerResponse_Voucher) Size ¶
func (m *QueryVouchersByIssuerResponse_Voucher) Size() (n int)
func (*QueryVouchersByIssuerResponse_Voucher) String ¶
func (m *QueryVouchersByIssuerResponse_Voucher) String() string
func (*QueryVouchersByIssuerResponse_Voucher) Unmarshal ¶
func (m *QueryVouchersByIssuerResponse_Voucher) Unmarshal(dAtA []byte) error
func (*QueryVouchersByIssuerResponse_Voucher) XXX_DiscardUnknown ¶
func (m *QueryVouchersByIssuerResponse_Voucher) XXX_DiscardUnknown()
func (*QueryVouchersByIssuerResponse_Voucher) XXX_Marshal ¶
func (m *QueryVouchersByIssuerResponse_Voucher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVouchersByIssuerResponse_Voucher) XXX_Merge ¶
func (m *QueryVouchersByIssuerResponse_Voucher) XXX_Merge(src proto.Message)
func (*QueryVouchersByIssuerResponse_Voucher) XXX_Size ¶
func (m *QueryVouchersByIssuerResponse_Voucher) XXX_Size() int
func (*QueryVouchersByIssuerResponse_Voucher) XXX_Unmarshal ¶
func (m *QueryVouchersByIssuerResponse_Voucher) XXX_Unmarshal(b []byte) error
type QueryVouchersRequest ¶
type QueryVouchersRequest struct { // pagination is the optional pagination of the request. Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryVouchersRequest is the Query/Vouchers request type.
func (*QueryVouchersRequest) Descriptor ¶
func (*QueryVouchersRequest) Descriptor() ([]byte, []int)
func (*QueryVouchersRequest) GetPagination ¶
func (m *QueryVouchersRequest) GetPagination() *query.PageRequest
func (*QueryVouchersRequest) Marshal ¶
func (m *QueryVouchersRequest) Marshal() (dAtA []byte, err error)
func (*QueryVouchersRequest) MarshalTo ¶
func (m *QueryVouchersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryVouchersRequest) MarshalToSizedBuffer ¶
func (m *QueryVouchersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVouchersRequest) ProtoMessage ¶
func (*QueryVouchersRequest) ProtoMessage()
func (*QueryVouchersRequest) Reset ¶
func (m *QueryVouchersRequest) Reset()
func (*QueryVouchersRequest) Size ¶
func (m *QueryVouchersRequest) Size() (n int)
func (*QueryVouchersRequest) String ¶
func (m *QueryVouchersRequest) String() string
func (*QueryVouchersRequest) Unmarshal ¶
func (m *QueryVouchersRequest) Unmarshal(dAtA []byte) error
func (*QueryVouchersRequest) XXX_DiscardUnknown ¶
func (m *QueryVouchersRequest) XXX_DiscardUnknown()
func (*QueryVouchersRequest) XXX_Marshal ¶
func (m *QueryVouchersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVouchersRequest) XXX_Merge ¶
func (m *QueryVouchersRequest) XXX_Merge(src proto.Message)
func (*QueryVouchersRequest) XXX_Size ¶
func (m *QueryVouchersRequest) XXX_Size() int
func (*QueryVouchersRequest) XXX_Unmarshal ¶
func (m *QueryVouchersRequest) XXX_Unmarshal(b []byte) error
type QueryVouchersResponse ¶
type QueryVouchersResponse struct { // vouchers is the list of vouchers. Vouchers []*QueryVouchersResponse_Voucher `protobuf:"bytes,1,rep,name=vouchers,proto3" json:"vouchers,omitempty"` // pagination is the pagination of the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryVouchersResponse is the Query/Vouchers response type.
func (*QueryVouchersResponse) Descriptor ¶
func (*QueryVouchersResponse) Descriptor() ([]byte, []int)
func (*QueryVouchersResponse) GetPagination ¶
func (m *QueryVouchersResponse) GetPagination() *query.PageResponse
func (*QueryVouchersResponse) GetVouchers ¶
func (m *QueryVouchersResponse) GetVouchers() []*QueryVouchersResponse_Voucher
func (*QueryVouchersResponse) Marshal ¶
func (m *QueryVouchersResponse) Marshal() (dAtA []byte, err error)
func (*QueryVouchersResponse) MarshalTo ¶
func (m *QueryVouchersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryVouchersResponse) MarshalToSizedBuffer ¶
func (m *QueryVouchersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVouchersResponse) ProtoMessage ¶
func (*QueryVouchersResponse) ProtoMessage()
func (*QueryVouchersResponse) Reset ¶
func (m *QueryVouchersResponse) Reset()
func (*QueryVouchersResponse) Size ¶
func (m *QueryVouchersResponse) Size() (n int)
func (*QueryVouchersResponse) String ¶
func (m *QueryVouchersResponse) String() string
func (*QueryVouchersResponse) Unmarshal ¶
func (m *QueryVouchersResponse) Unmarshal(dAtA []byte) error
func (*QueryVouchersResponse) XXX_DiscardUnknown ¶
func (m *QueryVouchersResponse) XXX_DiscardUnknown()
func (*QueryVouchersResponse) XXX_Marshal ¶
func (m *QueryVouchersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVouchersResponse) XXX_Merge ¶
func (m *QueryVouchersResponse) XXX_Merge(src proto.Message)
func (*QueryVouchersResponse) XXX_Size ¶
func (m *QueryVouchersResponse) XXX_Size() int
func (*QueryVouchersResponse) XXX_Unmarshal ¶
func (m *QueryVouchersResponse) XXX_Unmarshal(b []byte) error
type QueryVouchersResponse_Voucher ¶
type QueryVouchersResponse_Voucher struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // issuer is the address of the voucher issuer. Issuer string `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` // metadata is the metadata of the voucher. Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` }
Voucher is the voucher properties.
func (*QueryVouchersResponse_Voucher) Descriptor ¶
func (*QueryVouchersResponse_Voucher) Descriptor() ([]byte, []int)
func (*QueryVouchersResponse_Voucher) GetId ¶
func (m *QueryVouchersResponse_Voucher) GetId() uint64
func (*QueryVouchersResponse_Voucher) GetIssuer ¶
func (m *QueryVouchersResponse_Voucher) GetIssuer() string
func (*QueryVouchersResponse_Voucher) GetMetadata ¶
func (m *QueryVouchersResponse_Voucher) GetMetadata() string
func (*QueryVouchersResponse_Voucher) Marshal ¶
func (m *QueryVouchersResponse_Voucher) Marshal() (dAtA []byte, err error)
func (*QueryVouchersResponse_Voucher) MarshalTo ¶
func (m *QueryVouchersResponse_Voucher) MarshalTo(dAtA []byte) (int, error)
func (*QueryVouchersResponse_Voucher) MarshalToSizedBuffer ¶
func (m *QueryVouchersResponse_Voucher) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryVouchersResponse_Voucher) ProtoMessage ¶
func (*QueryVouchersResponse_Voucher) ProtoMessage()
func (*QueryVouchersResponse_Voucher) Reset ¶
func (m *QueryVouchersResponse_Voucher) Reset()
func (*QueryVouchersResponse_Voucher) Size ¶
func (m *QueryVouchersResponse_Voucher) Size() (n int)
func (*QueryVouchersResponse_Voucher) String ¶
func (m *QueryVouchersResponse_Voucher) String() string
func (*QueryVouchersResponse_Voucher) Unmarshal ¶
func (m *QueryVouchersResponse_Voucher) Unmarshal(dAtA []byte) error
func (*QueryVouchersResponse_Voucher) XXX_DiscardUnknown ¶
func (m *QueryVouchersResponse_Voucher) XXX_DiscardUnknown()
func (*QueryVouchersResponse_Voucher) XXX_Marshal ¶
func (m *QueryVouchersResponse_Voucher) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryVouchersResponse_Voucher) XXX_Merge ¶
func (m *QueryVouchersResponse_Voucher) XXX_Merge(src proto.Message)
func (*QueryVouchersResponse_Voucher) XXX_Size ¶
func (m *QueryVouchersResponse_Voucher) XXX_Size() int
func (*QueryVouchersResponse_Voucher) XXX_Unmarshal ¶
func (m *QueryVouchersResponse_Voucher) XXX_Unmarshal(b []byte) error
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) Issue ¶
func (*UnimplementedMsgServer) Issue(ctx context.Context, req *MsgIssue) (*MsgIssueResponse, error)
func (*UnimplementedMsgServer) UpdateIssuer ¶
func (*UnimplementedMsgServer) UpdateIssuer(ctx context.Context, req *MsgUpdateIssuer) (*MsgUpdateIssuerResponse, error)
func (*UnimplementedMsgServer) UpdateMetadata ¶
func (*UnimplementedMsgServer) UpdateMetadata(ctx context.Context, req *MsgUpdateMetadata) (*MsgUpdateMetadataResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Balance ¶
func (*UnimplementedQueryServer) Balance(ctx context.Context, req *QueryBalanceRequest) (*QueryBalanceResponse, error)
func (*UnimplementedQueryServer) BalancesByAddress ¶
func (*UnimplementedQueryServer) BalancesByAddress(ctx context.Context, req *QueryBalancesByAddressRequest) (*QueryBalancesByAddressResponse, error)
func (*UnimplementedQueryServer) BalancesByVoucher ¶
func (*UnimplementedQueryServer) BalancesByVoucher(ctx context.Context, req *QueryBalancesByVoucherRequest) (*QueryBalancesByVoucherResponse, error)
func (*UnimplementedQueryServer) Voucher ¶
func (*UnimplementedQueryServer) Voucher(ctx context.Context, req *QueryVoucherRequest) (*QueryVoucherResponse, error)
func (*UnimplementedQueryServer) Vouchers ¶
func (*UnimplementedQueryServer) Vouchers(ctx context.Context, req *QueryVouchersRequest) (*QueryVouchersResponse, error)
func (*UnimplementedQueryServer) VouchersByIssuer ¶
func (*UnimplementedQueryServer) VouchersByIssuer(ctx context.Context, req *QueryVouchersByIssuerRequest) (*QueryVouchersByIssuerResponse, error)
type Voucher ¶
type Voucher struct { // id is the unique identifier of the voucher. Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // issuer is the address of the voucher issuer. Issuer []byte `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty"` // metadata is the metadata of the voucher. Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` }
Voucher defines the table and properties of a voucher.
func (*Voucher) Descriptor ¶
func (*Voucher) GetMetadata ¶
func (*Voucher) MarshalToSizedBuffer ¶
func (*Voucher) ProtoMessage ¶
func (*Voucher) ProtoMessage()
func (*Voucher) XXX_DiscardUnknown ¶
func (m *Voucher) XXX_DiscardUnknown()