v1

package
v0.0.0-...-61c914d Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const MetadataMaxLength = 128

MetadataMaxLength is the maximum length of metadata.

Variables

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsg = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthState        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowState          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupState = fmt.Errorf("proto: unexpected end of group")
)

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

func RegisterQueryHandler

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

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

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

func (*Balance) GetAddress

func (m *Balance) GetAddress() []byte

func (*Balance) GetAmount

func (m *Balance) GetAmount() string

func (*Balance) GetExpiration

func (m *Balance) GetExpiration() *types.Timestamp

func (*Balance) GetId

func (m *Balance) GetId() uint64

func (*Balance) Marshal

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

func (*Balance) MarshalTo

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

func (*Balance) MarshalToSizedBuffer

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

func (*Balance) ProtoMessage

func (*Balance) ProtoMessage()

func (*Balance) Reset

func (m *Balance) Reset()

func (*Balance) Size

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

func (*Balance) String

func (m *Balance) String() string

func (*Balance) Unmarshal

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

func (*Balance) Validate

func (m *Balance) Validate() error

Validate validates Balance.

func (*Balance) XXX_DiscardUnknown

func (m *Balance) XXX_DiscardUnknown()

func (*Balance) XXX_Marshal

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

func (*Balance) XXX_Merge

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

func (*Balance) XXX_Size

func (m *Balance) XXX_Size() int

func (*Balance) XXX_Unmarshal

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

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

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

func (*EventCreate) MarshalToSizedBuffer

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

func (*EventCreate) ProtoMessage

func (*EventCreate) ProtoMessage()

func (*EventCreate) Reset

func (m *EventCreate) Reset()

func (*EventCreate) Size

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

func (*EventCreate) String

func (m *EventCreate) String() string

func (*EventCreate) Unmarshal

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

func (*EventCreate) XXX_DiscardUnknown

func (m *EventCreate) XXX_DiscardUnknown()

func (*EventCreate) XXX_Marshal

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

func (*EventCreate) XXX_Merge

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

func (*EventCreate) XXX_Size

func (m *EventCreate) XXX_Size() int

func (*EventCreate) XXX_Unmarshal

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

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

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

func (*MsgCreate) GetIssuer

func (m *MsgCreate) GetIssuer() string

func (*MsgCreate) GetMetadata

func (m *MsgCreate) GetMetadata() string

func (MsgCreate) GetSigners

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

GetSigners returns the expected signers for MsgCreate.

func (*MsgCreate) Marshal

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

func (*MsgCreate) MarshalTo

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

func (*MsgCreate) MarshalToSizedBuffer

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

func (*MsgCreate) ProtoMessage

func (*MsgCreate) ProtoMessage()

func (*MsgCreate) Reset

func (m *MsgCreate) Reset()

func (MsgCreate) Route

func (m MsgCreate) Route() string

Route implements the LegacyMsg interface.

func (*MsgCreate) Size

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

func (*MsgCreate) String

func (m *MsgCreate) String() string

func (MsgCreate) Type

func (m MsgCreate) Type() string

Type implements the LegacyMsg interface.

func (*MsgCreate) Unmarshal

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

func (MsgCreate) ValidateBasic

func (m MsgCreate) ValidateBasic() error

ValidateBasic performs stateless validation on MsgCreate.

func (*MsgCreate) XXX_DiscardUnknown

func (m *MsgCreate) XXX_DiscardUnknown()

func (*MsgCreate) XXX_Marshal

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

func (*MsgCreate) XXX_Merge

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

func (*MsgCreate) XXX_Size

func (m *MsgCreate) XXX_Size() int

func (*MsgCreate) XXX_Unmarshal

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

type MsgCreateResponse

type MsgCreateResponse struct {
	// 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) Descriptor() ([]byte, []int)

func (*MsgIssue) GetAmount

func (m *MsgIssue) GetAmount() string

func (*MsgIssue) GetExpiration

func (m *MsgIssue) GetExpiration() *time.Time

func (*MsgIssue) GetId

func (m *MsgIssue) GetId() uint64

func (*MsgIssue) GetIssuer

func (m *MsgIssue) GetIssuer() string

func (*MsgIssue) GetMetadata

func (m *MsgIssue) GetMetadata() string

func (*MsgIssue) GetRecipient

func (m *MsgIssue) GetRecipient() string

func (MsgIssue) GetSigners

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

GetSigners returns the expected signers for MsgIssue.

func (*MsgIssue) Marshal

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

func (*MsgIssue) MarshalTo

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

func (*MsgIssue) MarshalToSizedBuffer

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

func (*MsgIssue) ProtoMessage

func (*MsgIssue) ProtoMessage()

func (*MsgIssue) Reset

func (m *MsgIssue) Reset()

func (MsgIssue) Route

func (m MsgIssue) Route() string

Route implements the LegacyMsg interface.

func (*MsgIssue) Size

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

func (*MsgIssue) String

func (m *MsgIssue) String() string

func (MsgIssue) Type

func (m MsgIssue) Type() string

Type implements the LegacyMsg interface.

func (*MsgIssue) Unmarshal

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

func (MsgIssue) ValidateBasic

func (m MsgIssue) ValidateBasic() error

ValidateBasic performs stateless validation on MsgIssue.

func (*MsgIssue) XXX_DiscardUnknown

func (m *MsgIssue) XXX_DiscardUnknown()

func (*MsgIssue) XXX_Marshal

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

func (*MsgIssue) XXX_Merge

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

func (*MsgIssue) XXX_Size

func (m *MsgIssue) XXX_Size() int

func (*MsgIssue) XXX_Unmarshal

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

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

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

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

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 (*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) GetId

func (*QueryBalancesByAddressResponse_TotalAmount) GetTotalAmount

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

func (*QueryBalancesByAddressResponse_TotalAmount) Size

func (*QueryBalancesByAddressResponse_TotalAmount) String

func (*QueryBalancesByAddressResponse_TotalAmount) Unmarshal

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 (*QueryBalancesByAddressResponse_TotalAmount) XXX_Size

func (*QueryBalancesByAddressResponse_TotalAmount) XXX_Unmarshal

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 (*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 (*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 (*QueryBalancesByVoucherResponse) GetPagination

func (*QueryBalancesByVoucherResponse) GetTotalAmounts

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 (*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) GetAddress

func (*QueryBalancesByVoucherResponse_TotalAmount) GetTotalAmount

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

func (*QueryBalancesByVoucherResponse_TotalAmount) Size

func (*QueryBalancesByVoucherResponse_TotalAmount) String

func (*QueryBalancesByVoucherResponse_TotalAmount) Unmarshal

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 (*QueryBalancesByVoucherResponse_TotalAmount) XXX_Size

func (*QueryBalancesByVoucherResponse_TotalAmount) XXX_Unmarshal

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 (*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 (*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 (*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 (*QueryVouchersByIssuerResponse_Voucher) GetMetadata

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 (*QueryVouchersByIssuerResponse_Voucher) Size

func (*QueryVouchersByIssuerResponse_Voucher) 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 (*QueryVouchersByIssuerResponse_Voucher) XXX_Size

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 (*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 (*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 (*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) Issue

func (*UnimplementedMsgServer) UpdateIssuer

func (*UnimplementedMsgServer) UpdateMetadata

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Balance

func (*UnimplementedQueryServer) BalancesByAddress

func (*UnimplementedQueryServer) BalancesByVoucher

func (*UnimplementedQueryServer) Voucher

func (*UnimplementedQueryServer) Vouchers

func (*UnimplementedQueryServer) VouchersByIssuer

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

func (*Voucher) GetId

func (m *Voucher) GetId() uint64

func (*Voucher) GetIssuer

func (m *Voucher) GetIssuer() []byte

func (*Voucher) GetMetadata

func (m *Voucher) GetMetadata() string

func (*Voucher) Marshal

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

func (*Voucher) MarshalTo

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

func (*Voucher) MarshalToSizedBuffer

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

func (*Voucher) ProtoMessage

func (*Voucher) ProtoMessage()

func (*Voucher) Reset

func (m *Voucher) Reset()

func (*Voucher) Size

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

func (*Voucher) String

func (m *Voucher) String() string

func (*Voucher) Unmarshal

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

func (*Voucher) Validate

func (m *Voucher) Validate() error

Validate validates Voucher.

func (*Voucher) XXX_DiscardUnknown

func (m *Voucher) XXX_DiscardUnknown()

func (*Voucher) XXX_Marshal

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

func (*Voucher) XXX_Merge

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

func (*Voucher) XXX_Size

func (m *Voucher) XXX_Size() int

func (*Voucher) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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