Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetMicroDenom(symbol string) string
- func NewSymbol(shortSymbol string, txHash string) string
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- 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 BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetTokens() map[string]*Token
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgIssueToken
- func (*MsgIssueToken) Descriptor() ([]byte, []int)
- func (m *MsgIssueToken) GetMintable() bool
- func (m *MsgIssueToken) GetName() string
- func (m *MsgIssueToken) GetOwnerAddress() string
- func (m *MsgIssueToken) GetShortSymbol() string
- func (msg *MsgIssueToken) GetSignBytes() []byte
- func (msg *MsgIssueToken) GetSigners() []sdk.AccAddress
- func (m *MsgIssueToken) GetTotalSupplyMicro() types.IntProto
- func (m *MsgIssueToken) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueToken) ProtoMessage()
- func (m *MsgIssueToken) Reset()
- func (msg *MsgIssueToken) Route() string
- func (m *MsgIssueToken) Size() (n int)
- func (m *MsgIssueToken) String() string
- func (msg *MsgIssueToken) Type() string
- func (m *MsgIssueToken) Unmarshal(dAtA []byte) error
- func (msg *MsgIssueToken) ValidateBasic() error
- func (m *MsgIssueToken) XXX_DiscardUnknown()
- func (m *MsgIssueToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueToken) XXX_Merge(src proto.Message)
- func (m *MsgIssueToken) XXX_Size() int
- func (m *MsgIssueToken) XXX_Unmarshal(b []byte) error
- type MsgIssueTokenResponse
- func (*MsgIssueTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgIssueTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueTokenResponse) ProtoMessage()
- func (m *MsgIssueTokenResponse) Reset()
- func (m *MsgIssueTokenResponse) Size() (n int)
- func (m *MsgIssueTokenResponse) String() string
- func (m *MsgIssueTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIssueTokenResponse) XXX_DiscardUnknown()
- func (m *MsgIssueTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgIssueTokenResponse) XXX_Size() int
- func (m *MsgIssueTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type QueryClient
- type QueryServer
- type QueryTokenRequest
- func (*QueryTokenRequest) Descriptor() ([]byte, []int)
- func (m *QueryTokenRequest) GetSymbol() string
- func (m *QueryTokenRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTokenRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokenRequest) ProtoMessage()
- func (m *QueryTokenRequest) Reset()
- func (m *QueryTokenRequest) Size() (n int)
- func (m *QueryTokenRequest) String() string
- func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTokenRequest) XXX_DiscardUnknown()
- func (m *QueryTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokenRequest) XXX_Merge(src proto.Message)
- func (m *QueryTokenRequest) XXX_Size() int
- func (m *QueryTokenRequest) XXX_Unmarshal(b []byte) error
- type QueryTokenResponse
- func (*QueryTokenResponse) Descriptor() ([]byte, []int)
- func (m *QueryTokenResponse) GetToken() *Token
- func (m *QueryTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokenResponse) ProtoMessage()
- func (m *QueryTokenResponse) Reset()
- func (m *QueryTokenResponse) Size() (n int)
- func (m *QueryTokenResponse) String() string
- func (m *QueryTokenResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTokenResponse) XXX_DiscardUnknown()
- func (m *QueryTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokenResponse) XXX_Merge(src proto.Message)
- func (m *QueryTokenResponse) XXX_Size() int
- func (m *QueryTokenResponse) XXX_Unmarshal(b []byte) error
- type QueryTokensRequest
- func (*QueryTokensRequest) Descriptor() ([]byte, []int)
- func (m *QueryTokensRequest) GetPagination() *query.PageRequest
- func (m *QueryTokensRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTokensRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokensRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokensRequest) ProtoMessage()
- func (m *QueryTokensRequest) Reset()
- func (m *QueryTokensRequest) Size() (n int)
- func (m *QueryTokensRequest) String() string
- func (m *QueryTokensRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTokensRequest) XXX_DiscardUnknown()
- func (m *QueryTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokensRequest) XXX_Merge(src proto.Message)
- func (m *QueryTokensRequest) XXX_Size() int
- func (m *QueryTokensRequest) XXX_Unmarshal(b []byte) error
- type QueryTokensResponse
- func (*QueryTokensResponse) Descriptor() ([]byte, []int)
- func (m *QueryTokensResponse) GetPagination() *query.PageResponse
- func (m *QueryTokensResponse) GetToken() []*Token
- func (m *QueryTokensResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTokensResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokensResponse) ProtoMessage()
- func (m *QueryTokensResponse) Reset()
- func (m *QueryTokensResponse) Size() (n int)
- func (m *QueryTokensResponse) String() string
- func (m *QueryTokensResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTokensResponse) XXX_DiscardUnknown()
- func (m *QueryTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokensResponse) XXX_Merge(src proto.Message)
- func (m *QueryTokensResponse) XXX_Size() int
- func (m *QueryTokensResponse) XXX_Unmarshal(b []byte) error
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetMintable() bool
- func (m *Token) GetName() string
- func (m *Token) GetOwnerAddress() string
- func (m *Token) GetSymbol() string
- func (m *Token) GetTotalSupply() types.Coin
- func (m *Token) Marshal() (dAtA []byte, err error)
- func (m *Token) MarshalTo(dAtA []byte) (int, error)
- func (m *Token) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) Size() (n int)
- func (m *Token) String() string
- func (m *Token) Unmarshal(dAtA []byte) error
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "token" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_capability" )
const ( QueryGetToken = "get-token" QueryListToken = "list-token" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
var ( ErrInvalidName = sdkerrors.Register(ModuleName, 2, "invalid name") ErrSymbolNotAllowed = sdkerrors.Register(ModuleName, 3, "symbol not allowed") ErrInvalidSymbol = sdkerrors.Register(ModuleName, 4, "invalid symbol") ErrInvalidTotalSupply = sdkerrors.Register(ModuleName, 5, "invalid total supply") ErrTokenExists = sdkerrors.Register(ModuleName, 6, "token already exists") ErrInvalidDenom = sdkerrors.Register(ModuleName, 7, "invalid denom") )
x/token module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthToken = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowToken = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupToken = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
var (
TokenKeyPrefix = []byte{0x00}
)
this line is used by starport scaffolding # ibc/keys/port
Functions ¶
func GetMicroDenom ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type BankKeeper ¶
type GenesisState ¶
type GenesisState struct {
Tokens map[string]*Token `` /* 153-byte string literal not displayed */
}
GenesisState defines the token module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetTokens ¶
func (m *GenesisState) GetTokens() map[string]*Token
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
func (*GenesisState) XXX_DiscardUnknown ¶
func (m *GenesisState) XXX_DiscardUnknown()
func (*GenesisState) XXX_Marshal ¶
func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*GenesisState) XXX_Merge ¶
func (m *GenesisState) XXX_Merge(src proto.Message)
func (*GenesisState) XXX_Size ¶
func (m *GenesisState) XXX_Size() int
func (*GenesisState) XXX_Unmarshal ¶
func (m *GenesisState) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // IssueToken defines a method for issuing a token. IssueToken(ctx context.Context, in *MsgIssueToken, opts ...grpc.CallOption) (*MsgIssueTokenResponse, 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 MsgIssueToken ¶
type MsgIssueToken struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` ShortSymbol string `protobuf:"bytes,2,opt,name=short_symbol,json=shortSymbol,proto3" json:"short_symbol,omitempty"` TotalSupplyMicro types.IntProto `protobuf:"bytes,3,opt,name=total_supply_micro,json=totalSupplyMicro,proto3" json:"total_supply_micro"` Mintable bool `protobuf:"varint,4,opt,name=mintable,proto3" json:"mintable,omitempty"` OwnerAddress string `protobuf:"bytes,5,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` }
MsgIssueToken defines the Msg/IssueToken request type.
func NewMsgIssueToken ¶
func (*MsgIssueToken) Descriptor ¶
func (*MsgIssueToken) Descriptor() ([]byte, []int)
func (*MsgIssueToken) GetMintable ¶
func (m *MsgIssueToken) GetMintable() bool
func (*MsgIssueToken) GetName ¶
func (m *MsgIssueToken) GetName() string
func (*MsgIssueToken) GetOwnerAddress ¶
func (m *MsgIssueToken) GetOwnerAddress() string
func (*MsgIssueToken) GetShortSymbol ¶
func (m *MsgIssueToken) GetShortSymbol() string
func (*MsgIssueToken) GetSignBytes ¶
func (msg *MsgIssueToken) GetSignBytes() []byte
func (*MsgIssueToken) GetSigners ¶
func (msg *MsgIssueToken) GetSigners() []sdk.AccAddress
func (*MsgIssueToken) GetTotalSupplyMicro ¶
func (m *MsgIssueToken) GetTotalSupplyMicro() types.IntProto
func (*MsgIssueToken) Marshal ¶
func (m *MsgIssueToken) Marshal() (dAtA []byte, err error)
func (*MsgIssueToken) MarshalToSizedBuffer ¶
func (m *MsgIssueToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueToken) ProtoMessage ¶
func (*MsgIssueToken) ProtoMessage()
func (*MsgIssueToken) Reset ¶
func (m *MsgIssueToken) Reset()
func (*MsgIssueToken) Route ¶
func (msg *MsgIssueToken) Route() string
func (*MsgIssueToken) Size ¶
func (m *MsgIssueToken) Size() (n int)
func (*MsgIssueToken) String ¶
func (m *MsgIssueToken) String() string
func (*MsgIssueToken) Type ¶
func (msg *MsgIssueToken) Type() string
func (*MsgIssueToken) Unmarshal ¶
func (m *MsgIssueToken) Unmarshal(dAtA []byte) error
func (*MsgIssueToken) ValidateBasic ¶
func (msg *MsgIssueToken) ValidateBasic() error
func (*MsgIssueToken) XXX_DiscardUnknown ¶
func (m *MsgIssueToken) XXX_DiscardUnknown()
func (*MsgIssueToken) XXX_Marshal ¶
func (m *MsgIssueToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueToken) XXX_Merge ¶
func (m *MsgIssueToken) XXX_Merge(src proto.Message)
func (*MsgIssueToken) XXX_Size ¶
func (m *MsgIssueToken) XXX_Size() int
func (*MsgIssueToken) XXX_Unmarshal ¶
func (m *MsgIssueToken) XXX_Unmarshal(b []byte) error
type MsgIssueTokenResponse ¶
type MsgIssueTokenResponse struct { }
MsgIssueTokenResponse defines the Msg/IssueToken response type.
func (*MsgIssueTokenResponse) Descriptor ¶
func (*MsgIssueTokenResponse) Descriptor() ([]byte, []int)
func (*MsgIssueTokenResponse) Marshal ¶
func (m *MsgIssueTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgIssueTokenResponse) MarshalTo ¶
func (m *MsgIssueTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgIssueTokenResponse) MarshalToSizedBuffer ¶
func (m *MsgIssueTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueTokenResponse) ProtoMessage ¶
func (*MsgIssueTokenResponse) ProtoMessage()
func (*MsgIssueTokenResponse) Reset ¶
func (m *MsgIssueTokenResponse) Reset()
func (*MsgIssueTokenResponse) Size ¶
func (m *MsgIssueTokenResponse) Size() (n int)
func (*MsgIssueTokenResponse) String ¶
func (m *MsgIssueTokenResponse) String() string
func (*MsgIssueTokenResponse) Unmarshal ¶
func (m *MsgIssueTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgIssueTokenResponse) XXX_DiscardUnknown ¶
func (m *MsgIssueTokenResponse) XXX_DiscardUnknown()
func (*MsgIssueTokenResponse) XXX_Marshal ¶
func (m *MsgIssueTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueTokenResponse) XXX_Merge ¶
func (m *MsgIssueTokenResponse) XXX_Merge(src proto.Message)
func (*MsgIssueTokenResponse) XXX_Size ¶
func (m *MsgIssueTokenResponse) XXX_Size() int
func (*MsgIssueTokenResponse) XXX_Unmarshal ¶
func (m *MsgIssueTokenResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // IssueToken defines a method for issuing a token. IssueToken(context.Context, *MsgIssueToken) (*MsgIssueTokenResponse, error) }
MsgServer is the server API for Msg service.
type QueryClient ¶
type QueryClient interface { // Token returns token details. Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error) // Tokens returns details of all tokens. Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, 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 { // Token returns token details. Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error) // Tokens returns details of all tokens. Tokens(context.Context, *QueryTokensRequest) (*QueryTokensResponse, error) }
QueryServer is the server API for Query service.
type QueryTokenRequest ¶
type QueryTokenRequest struct {
Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
}
QueryTokenRequest is the request type for the Query/Token RPC method.
func (*QueryTokenRequest) Descriptor ¶
func (*QueryTokenRequest) Descriptor() ([]byte, []int)
func (*QueryTokenRequest) GetSymbol ¶
func (m *QueryTokenRequest) GetSymbol() string
func (*QueryTokenRequest) Marshal ¶
func (m *QueryTokenRequest) Marshal() (dAtA []byte, err error)
func (*QueryTokenRequest) MarshalTo ¶
func (m *QueryTokenRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokenRequest) MarshalToSizedBuffer ¶
func (m *QueryTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokenRequest) ProtoMessage ¶
func (*QueryTokenRequest) ProtoMessage()
func (*QueryTokenRequest) Reset ¶
func (m *QueryTokenRequest) Reset()
func (*QueryTokenRequest) Size ¶
func (m *QueryTokenRequest) Size() (n int)
func (*QueryTokenRequest) String ¶
func (m *QueryTokenRequest) String() string
func (*QueryTokenRequest) Unmarshal ¶
func (m *QueryTokenRequest) Unmarshal(dAtA []byte) error
func (*QueryTokenRequest) XXX_DiscardUnknown ¶
func (m *QueryTokenRequest) XXX_DiscardUnknown()
func (*QueryTokenRequest) XXX_Marshal ¶
func (m *QueryTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokenRequest) XXX_Merge ¶
func (m *QueryTokenRequest) XXX_Merge(src proto.Message)
func (*QueryTokenRequest) XXX_Size ¶
func (m *QueryTokenRequest) XXX_Size() int
func (*QueryTokenRequest) XXX_Unmarshal ¶
func (m *QueryTokenRequest) XXX_Unmarshal(b []byte) error
type QueryTokenResponse ¶
type QueryTokenResponse struct {
Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
}
QueryTokenResponse is the response type for the Query/Token RPC method.
func (*QueryTokenResponse) Descriptor ¶
func (*QueryTokenResponse) Descriptor() ([]byte, []int)
func (*QueryTokenResponse) GetToken ¶
func (m *QueryTokenResponse) GetToken() *Token
func (*QueryTokenResponse) Marshal ¶
func (m *QueryTokenResponse) Marshal() (dAtA []byte, err error)
func (*QueryTokenResponse) MarshalTo ¶
func (m *QueryTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokenResponse) MarshalToSizedBuffer ¶
func (m *QueryTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokenResponse) ProtoMessage ¶
func (*QueryTokenResponse) ProtoMessage()
func (*QueryTokenResponse) Reset ¶
func (m *QueryTokenResponse) Reset()
func (*QueryTokenResponse) Size ¶
func (m *QueryTokenResponse) Size() (n int)
func (*QueryTokenResponse) String ¶
func (m *QueryTokenResponse) String() string
func (*QueryTokenResponse) Unmarshal ¶
func (m *QueryTokenResponse) Unmarshal(dAtA []byte) error
func (*QueryTokenResponse) XXX_DiscardUnknown ¶
func (m *QueryTokenResponse) XXX_DiscardUnknown()
func (*QueryTokenResponse) XXX_Marshal ¶
func (m *QueryTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokenResponse) XXX_Merge ¶
func (m *QueryTokenResponse) XXX_Merge(src proto.Message)
func (*QueryTokenResponse) XXX_Size ¶
func (m *QueryTokenResponse) XXX_Size() int
func (*QueryTokenResponse) XXX_Unmarshal ¶
func (m *QueryTokenResponse) XXX_Unmarshal(b []byte) error
type QueryTokensRequest ¶
type QueryTokensRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryTokensRequest is the request type for the Query/Tokens RPC method.
func (*QueryTokensRequest) Descriptor ¶
func (*QueryTokensRequest) Descriptor() ([]byte, []int)
func (*QueryTokensRequest) GetPagination ¶
func (m *QueryTokensRequest) GetPagination() *query.PageRequest
func (*QueryTokensRequest) Marshal ¶
func (m *QueryTokensRequest) Marshal() (dAtA []byte, err error)
func (*QueryTokensRequest) MarshalTo ¶
func (m *QueryTokensRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokensRequest) MarshalToSizedBuffer ¶
func (m *QueryTokensRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokensRequest) ProtoMessage ¶
func (*QueryTokensRequest) ProtoMessage()
func (*QueryTokensRequest) Reset ¶
func (m *QueryTokensRequest) Reset()
func (*QueryTokensRequest) Size ¶
func (m *QueryTokensRequest) Size() (n int)
func (*QueryTokensRequest) String ¶
func (m *QueryTokensRequest) String() string
func (*QueryTokensRequest) Unmarshal ¶
func (m *QueryTokensRequest) Unmarshal(dAtA []byte) error
func (*QueryTokensRequest) XXX_DiscardUnknown ¶
func (m *QueryTokensRequest) XXX_DiscardUnknown()
func (*QueryTokensRequest) XXX_Marshal ¶
func (m *QueryTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokensRequest) XXX_Merge ¶
func (m *QueryTokensRequest) XXX_Merge(src proto.Message)
func (*QueryTokensRequest) XXX_Size ¶
func (m *QueryTokensRequest) XXX_Size() int
func (*QueryTokensRequest) XXX_Unmarshal ¶
func (m *QueryTokensRequest) XXX_Unmarshal(b []byte) error
type QueryTokensResponse ¶
type QueryTokensResponse struct { Token []*Token `protobuf:"bytes,1,rep,name=token,proto3" json:"token,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryTokensResponse is the response type for the Query/Tokens RPC method.
func (*QueryTokensResponse) Descriptor ¶
func (*QueryTokensResponse) Descriptor() ([]byte, []int)
func (*QueryTokensResponse) GetPagination ¶
func (m *QueryTokensResponse) GetPagination() *query.PageResponse
func (*QueryTokensResponse) GetToken ¶
func (m *QueryTokensResponse) GetToken() []*Token
func (*QueryTokensResponse) Marshal ¶
func (m *QueryTokensResponse) Marshal() (dAtA []byte, err error)
func (*QueryTokensResponse) MarshalTo ¶
func (m *QueryTokensResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokensResponse) MarshalToSizedBuffer ¶
func (m *QueryTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokensResponse) ProtoMessage ¶
func (*QueryTokensResponse) ProtoMessage()
func (*QueryTokensResponse) Reset ¶
func (m *QueryTokensResponse) Reset()
func (*QueryTokensResponse) Size ¶
func (m *QueryTokensResponse) Size() (n int)
func (*QueryTokensResponse) String ¶
func (m *QueryTokensResponse) String() string
func (*QueryTokensResponse) Unmarshal ¶
func (m *QueryTokensResponse) Unmarshal(dAtA []byte) error
func (*QueryTokensResponse) XXX_DiscardUnknown ¶
func (m *QueryTokensResponse) XXX_DiscardUnknown()
func (*QueryTokensResponse) XXX_Marshal ¶
func (m *QueryTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokensResponse) XXX_Merge ¶
func (m *QueryTokensResponse) XXX_Merge(src proto.Message)
func (*QueryTokensResponse) XXX_Size ¶
func (m *QueryTokensResponse) XXX_Size() int
func (*QueryTokensResponse) XXX_Unmarshal ¶
func (m *QueryTokensResponse) XXX_Unmarshal(b []byte) error
type Token ¶
type Token struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"` TotalSupply types.Coin `protobuf:"bytes,3,opt,name=total_supply,json=totalSupply,proto3" json:"total_supply"` Mintable bool `protobuf:"varint,4,opt,name=mintable,proto3" json:"mintable,omitempty"` OwnerAddress string `protobuf:"bytes,5,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` }
Token defines a token.
func (*Token) Descriptor ¶
func (*Token) GetMintable ¶
func (*Token) GetOwnerAddress ¶
func (*Token) GetTotalSupply ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) IssueToken ¶
func (*UnimplementedMsgServer) IssueToken(ctx context.Context, req *MsgIssueToken) (*MsgIssueTokenResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Token ¶
func (*UnimplementedQueryServer) Token(ctx context.Context, req *QueryTokenRequest) (*QueryTokenResponse, error)
func (*UnimplementedQueryServer) Tokens ¶
func (*UnimplementedQueryServer) Tokens(ctx context.Context, req *QueryTokensRequest) (*QueryTokensResponse, error)