Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func NewIssuerCreatedEvent(issuer string, denom string, amount string) sdk.Event
- func NewTokenBurnedEvent(issuer string, denom string, amount string) sdk.Event
- func NewTokenMintedEvent(issuer string, denom string, amount string) sdk.Event
- 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 GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 Issuer
- func (*Issuer) Descriptor() ([]byte, []int)
- func (m *Issuer) GetAddress() string
- func (m *Issuer) GetFee() int32
- func (m *Issuer) GetToken() string
- func (m *Issuer) Marshal() (dAtA []byte, err error)
- func (m *Issuer) MarshalTo(dAtA []byte) (int, error)
- func (m *Issuer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Issuer) ProtoMessage()
- func (m *Issuer) Reset()
- func (m *Issuer) Size() (n int)
- func (m *Issuer) String() string
- func (m *Issuer) Unmarshal(dAtA []byte) error
- func (m *Issuer) XXX_DiscardUnknown()
- func (m *Issuer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Issuer) XXX_Merge(src proto.Message)
- func (m *Issuer) XXX_Size() int
- func (m *Issuer) XXX_Unmarshal(b []byte) error
- type MsgBurnToken
- func (*MsgBurnToken) Descriptor() ([]byte, []int)
- func (msg MsgBurnToken) GetSignBytes() []byte
- func (msg MsgBurnToken) GetSigners() []sdk.AccAddress
- func (m *MsgBurnToken) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnToken) ProtoMessage()
- func (m *MsgBurnToken) Reset()
- func (MsgBurnToken) Route() string
- func (m *MsgBurnToken) Size() (n int)
- func (m *MsgBurnToken) String() string
- func (MsgBurnToken) Type() string
- func (m *MsgBurnToken) Unmarshal(dAtA []byte) error
- func (msg MsgBurnToken) ValidateBasic() error
- func (m *MsgBurnToken) XXX_DiscardUnknown()
- func (m *MsgBurnToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnToken) XXX_Merge(src proto.Message)
- func (m *MsgBurnToken) XXX_Size() int
- func (m *MsgBurnToken) XXX_Unmarshal(b []byte) error
- type MsgBurnTokenResponse
- func (*MsgBurnTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnTokenResponse) ProtoMessage()
- func (m *MsgBurnTokenResponse) Reset()
- func (m *MsgBurnTokenResponse) Size() (n int)
- func (m *MsgBurnTokenResponse) String() string
- func (m *MsgBurnTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnTokenResponse) XXX_DiscardUnknown()
- func (m *MsgBurnTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnTokenResponse) XXX_Size() int
- func (m *MsgBurnTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateIssuer
- func (*MsgCreateIssuer) Descriptor() ([]byte, []int)
- func (msg MsgCreateIssuer) GetSignBytes() []byte
- func (msg MsgCreateIssuer) GetSigners() []sdk.AccAddress
- func (m *MsgCreateIssuer) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateIssuer) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateIssuer) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateIssuer) ProtoMessage()
- func (m *MsgCreateIssuer) Reset()
- func (MsgCreateIssuer) Route() string
- func (m *MsgCreateIssuer) Size() (n int)
- func (m *MsgCreateIssuer) String() string
- func (MsgCreateIssuer) Type() string
- func (m *MsgCreateIssuer) Unmarshal(dAtA []byte) error
- func (msg MsgCreateIssuer) ValidateBasic() error
- func (m *MsgCreateIssuer) XXX_DiscardUnknown()
- func (m *MsgCreateIssuer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateIssuer) XXX_Merge(src proto.Message)
- func (m *MsgCreateIssuer) XXX_Size() int
- func (m *MsgCreateIssuer) XXX_Unmarshal(b []byte) error
- type MsgCreateIssuerResponse
- func (*MsgCreateIssuerResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateIssuerResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateIssuerResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateIssuerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateIssuerResponse) ProtoMessage()
- func (m *MsgCreateIssuerResponse) Reset()
- func (m *MsgCreateIssuerResponse) Size() (n int)
- func (m *MsgCreateIssuerResponse) String() string
- func (m *MsgCreateIssuerResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateIssuerResponse) XXX_DiscardUnknown()
- func (m *MsgCreateIssuerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateIssuerResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateIssuerResponse) XXX_Size() int
- func (m *MsgCreateIssuerResponse) XXX_Unmarshal(b []byte) error
- type MsgMintToken
- func (*MsgMintToken) Descriptor() ([]byte, []int)
- func (msg MsgMintToken) GetSignBytes() []byte
- func (msg MsgMintToken) GetSigners() []sdk.AccAddress
- func (m *MsgMintToken) Marshal() (dAtA []byte, err error)
- func (m *MsgMintToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintToken) ProtoMessage()
- func (m *MsgMintToken) Reset()
- func (MsgMintToken) Route() string
- func (m *MsgMintToken) Size() (n int)
- func (m *MsgMintToken) String() string
- func (MsgMintToken) Type() string
- func (m *MsgMintToken) Unmarshal(dAtA []byte) error
- func (msg MsgMintToken) ValidateBasic() error
- func (m *MsgMintToken) XXX_DiscardUnknown()
- func (m *MsgMintToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintToken) XXX_Merge(src proto.Message)
- func (m *MsgMintToken) XXX_Size() int
- func (m *MsgMintToken) XXX_Unmarshal(b []byte) error
- type MsgMintTokenResponse
- func (*MsgMintTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintTokenResponse) ProtoMessage()
- func (m *MsgMintTokenResponse) Reset()
- func (m *MsgMintTokenResponse) Size() (n int)
- func (m *MsgMintTokenResponse) String() string
- func (m *MsgMintTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintTokenResponse) XXX_DiscardUnknown()
- func (m *MsgMintTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintTokenResponse) XXX_Size() int
- func (m *MsgMintTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type QueryClient
- type QueryIssuersRequest
- func (*QueryIssuersRequest) Descriptor() ([]byte, []int)
- func (m *QueryIssuersRequest) GetPagination() *query.PageRequest
- func (m *QueryIssuersRequest) GetStatus() string
- func (m *QueryIssuersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryIssuersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryIssuersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryIssuersRequest) ProtoMessage()
- func (m *QueryIssuersRequest) Reset()
- func (m *QueryIssuersRequest) Size() (n int)
- func (m *QueryIssuersRequest) String() string
- func (m *QueryIssuersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryIssuersRequest) XXX_DiscardUnknown()
- func (m *QueryIssuersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryIssuersRequest) XXX_Merge(src proto.Message)
- func (m *QueryIssuersRequest) XXX_Size() int
- func (m *QueryIssuersRequest) XXX_Unmarshal(b []byte) error
- type QueryIssuersResponse
- func (*QueryIssuersResponse) Descriptor() ([]byte, []int)
- func (m *QueryIssuersResponse) GetIssuers() []Issuer
- func (m *QueryIssuersResponse) GetPagination() *query.PageResponse
- func (m *QueryIssuersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryIssuersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryIssuersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryIssuersResponse) ProtoMessage()
- func (m *QueryIssuersResponse) Reset()
- func (m *QueryIssuersResponse) Size() (n int)
- func (m *QueryIssuersResponse) String() string
- func (m *QueryIssuersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryIssuersResponse) XXX_DiscardUnknown()
- func (m *QueryIssuersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryIssuersResponse) XXX_Merge(src proto.Message)
- func (m *QueryIssuersResponse) XXX_Size() int
- func (m *QueryIssuersResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) BurnToken(ctx context.Context, req *MsgBurnToken) (*MsgBurnTokenResponse, error)
- func (*UnimplementedMsgServer) CreateIssuer(ctx context.Context, req *MsgCreateIssuer) (*MsgCreateIssuerResponse, error)
- func (*UnimplementedMsgServer) MintToken(ctx context.Context, req *MsgMintToken) (*MsgMintTokenResponse, error)
- type UnimplementedQueryServer
Constants ¶
const ( AttributeValueCategory = ModuleName EventTypeIssuerCreated = "issuer_created" EventTypeTokenMinted = "issuer_minted_token" EventTypeTokenBurned = "issuer_burned_token" AttributeKeyIssuer = "issuer" AttributeKeyDenom = "denom" AttributeKeyAmount = "amount" )
issuer module event types
const ( // ModuleName defines the module name ModuleName = "issuer" // 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 ( TypeMsgCreateIssuer = "create-issuer" TypeMsgBurnToken = "burn-token" TypeMsgMintToken = "mint-token" )
msg types
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
var ( ErrIssuerFound = sdkerrors.Register(ModuleName, 1301, "issuer found") ErrUserFound = sdkerrors.Register(ModuleName, 1302, "user found") ErrInvalidIssuerDenom = sdkerrors.Register(ModuleName, 1303, "invalid denom for issuer coin") ErrDidDocumentDoesNotExist = sdkerrors.Register(ModuleName, 1304, "did does not exist in the store") ErrIncorrectControllerOfDidDocument = sdkerrors.Register(ModuleName, 1305, "sender is not a controller of the did") ErrIncorrectUserCredential = sdkerrors.Register(ModuleName, 1306, "user does not have correct credential") ErrTokenAlreadyExists = sdkerrors.Register(ModuleName, 1307, "token already exists and cannot be recreated") ErrMintingTokens = sdkerrors.Register(ModuleName, 1308, "error minting tokens for issuer") ErrBurningTokens = sdkerrors.Register(ModuleName, 1309, "error burning tokens for issuer") ErrIssuerNotFound = sdkerrors.Register(ModuleName, 1310, "issuer not found in data store") )
x/issuer 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 ( ErrInvalidLengthIssuer = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIssuer = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupIssuer = fmt.Errorf("proto: unexpected end of group") )
var ( IssuerKey = []byte{0x61} TokenKey = []byte{0x62} )
Key prefixes
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 ( 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 the Amino codec ModuleCdc = codec.NewAminoCodec(amino) )
Functions ¶
func NewIssuerCreatedEvent ¶ added in v1.0.0
NewIssuerCreatedEvent constructs a new issuer_created sdk.Event
func NewTokenBurnedEvent ¶ added in v1.0.0
NewTokenBurnedEvent constructs a new token_burned sdk.Event
func NewTokenMintedEvent ¶ added in v1.0.0
NewTokenMintedEvent constructs a new token_minted sdk.Event
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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type GenesisState ¶
type GenesisState struct { }
GenesisState defines the issuer 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) 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 Issuer ¶
type Issuer struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Fee int32 `protobuf:"varint,2,opt,name=fee,proto3" json:"fee,omitempty"` Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"` }
Issuer represents an e-money token issuer
func (*Issuer) Descriptor ¶
func (*Issuer) GetAddress ¶
func (*Issuer) MarshalToSizedBuffer ¶
func (*Issuer) ProtoMessage ¶
func (*Issuer) ProtoMessage()
func (*Issuer) XXX_DiscardUnknown ¶
func (m *Issuer) XXX_DiscardUnknown()
func (*Issuer) XXX_Marshal ¶
func (*Issuer) XXX_Unmarshal ¶
type MsgBurnToken ¶ added in v0.2.0
type MsgBurnToken struct { Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgBurnToken defines a SDK message for burning issuer tokens.
func NewMsgBurnToken ¶ added in v0.2.0
func NewMsgBurnToken( amount sdk.Coin, owner string, ) *MsgBurnToken
NewMsgBurnToken creates a new MsgBurnToken instance
func (*MsgBurnToken) Descriptor ¶ added in v0.2.0
func (*MsgBurnToken) Descriptor() ([]byte, []int)
func (MsgBurnToken) GetSignBytes ¶ added in v0.2.0
func (msg MsgBurnToken) GetSignBytes() []byte
func (MsgBurnToken) GetSigners ¶ added in v0.2.0
func (msg MsgBurnToken) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgBurnToken) Marshal ¶ added in v0.2.0
func (m *MsgBurnToken) Marshal() (dAtA []byte, err error)
func (*MsgBurnToken) MarshalTo ¶ added in v0.2.0
func (m *MsgBurnToken) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnToken) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *MsgBurnToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnToken) ProtoMessage ¶ added in v0.2.0
func (*MsgBurnToken) ProtoMessage()
func (*MsgBurnToken) Reset ¶ added in v0.2.0
func (m *MsgBurnToken) Reset()
func (MsgBurnToken) Route ¶ added in v0.2.0
func (MsgBurnToken) Route() string
Route implements sdk.Msg
func (*MsgBurnToken) Size ¶ added in v0.2.0
func (m *MsgBurnToken) Size() (n int)
func (*MsgBurnToken) String ¶ added in v0.2.0
func (m *MsgBurnToken) String() string
func (MsgBurnToken) Type ¶ added in v0.2.0
func (MsgBurnToken) Type() string
Type implements sdk.Msg
func (*MsgBurnToken) Unmarshal ¶ added in v0.2.0
func (m *MsgBurnToken) Unmarshal(dAtA []byte) error
func (MsgBurnToken) ValidateBasic ¶ added in v0.2.0
func (msg MsgBurnToken) ValidateBasic() error
ValidateBasic performs a basic check of the MsgBurnToken fields.
func (*MsgBurnToken) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *MsgBurnToken) XXX_DiscardUnknown()
func (*MsgBurnToken) XXX_Marshal ¶ added in v0.2.0
func (m *MsgBurnToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnToken) XXX_Merge ¶ added in v0.2.0
func (m *MsgBurnToken) XXX_Merge(src proto.Message)
func (*MsgBurnToken) XXX_Size ¶ added in v0.2.0
func (m *MsgBurnToken) XXX_Size() int
func (*MsgBurnToken) XXX_Unmarshal ¶ added in v0.2.0
func (m *MsgBurnToken) XXX_Unmarshal(b []byte) error
type MsgBurnTokenResponse ¶ added in v0.2.0
type MsgBurnTokenResponse struct { }
func (*MsgBurnTokenResponse) Descriptor ¶ added in v0.2.0
func (*MsgBurnTokenResponse) Descriptor() ([]byte, []int)
func (*MsgBurnTokenResponse) Marshal ¶ added in v0.2.0
func (m *MsgBurnTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnTokenResponse) MarshalTo ¶ added in v0.2.0
func (m *MsgBurnTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnTokenResponse) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *MsgBurnTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnTokenResponse) ProtoMessage ¶ added in v0.2.0
func (*MsgBurnTokenResponse) ProtoMessage()
func (*MsgBurnTokenResponse) Reset ¶ added in v0.2.0
func (m *MsgBurnTokenResponse) Reset()
func (*MsgBurnTokenResponse) Size ¶ added in v0.2.0
func (m *MsgBurnTokenResponse) Size() (n int)
func (*MsgBurnTokenResponse) String ¶ added in v0.2.0
func (m *MsgBurnTokenResponse) String() string
func (*MsgBurnTokenResponse) Unmarshal ¶ added in v0.2.0
func (m *MsgBurnTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnTokenResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *MsgBurnTokenResponse) XXX_DiscardUnknown()
func (*MsgBurnTokenResponse) XXX_Marshal ¶ added in v0.2.0
func (m *MsgBurnTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnTokenResponse) XXX_Merge ¶ added in v0.2.0
func (m *MsgBurnTokenResponse) XXX_Merge(src proto.Message)
func (*MsgBurnTokenResponse) XXX_Size ¶ added in v0.2.0
func (m *MsgBurnTokenResponse) XXX_Size() int
func (*MsgBurnTokenResponse) XXX_Unmarshal ¶ added in v0.2.0
func (m *MsgBurnTokenResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { CreateIssuer(ctx context.Context, in *MsgCreateIssuer, opts ...grpc.CallOption) (*MsgCreateIssuerResponse, error) BurnToken(ctx context.Context, in *MsgBurnToken, opts ...grpc.CallOption) (*MsgBurnTokenResponse, error) MintToken(ctx context.Context, in *MsgMintToken, opts ...grpc.CallOption) (*MsgMintTokenResponse, 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 MsgCreateIssuer ¶
type MsgCreateIssuer struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` Fee int32 `protobuf:"varint,2,opt,name=fee,proto3" json:"fee,omitempty"` Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgCreateIssuer defines an SDK message for creating an emoney token issuer.
func NewMsgCreateIssuer ¶
func NewMsgCreateIssuer( token string, fee int32, owner string, ) *MsgCreateIssuer
NewMsgCreateIssuer creates a new MsgCreateIssuer instance
func (*MsgCreateIssuer) Descriptor ¶
func (*MsgCreateIssuer) Descriptor() ([]byte, []int)
func (MsgCreateIssuer) GetSignBytes ¶
func (msg MsgCreateIssuer) GetSignBytes() []byte
func (MsgCreateIssuer) GetSigners ¶
func (msg MsgCreateIssuer) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgCreateIssuer) Marshal ¶
func (m *MsgCreateIssuer) Marshal() (dAtA []byte, err error)
func (*MsgCreateIssuer) MarshalToSizedBuffer ¶
func (m *MsgCreateIssuer) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateIssuer) ProtoMessage ¶
func (*MsgCreateIssuer) ProtoMessage()
func (*MsgCreateIssuer) Reset ¶
func (m *MsgCreateIssuer) Reset()
func (*MsgCreateIssuer) Size ¶
func (m *MsgCreateIssuer) Size() (n int)
func (*MsgCreateIssuer) String ¶
func (m *MsgCreateIssuer) String() string
func (*MsgCreateIssuer) Unmarshal ¶
func (m *MsgCreateIssuer) Unmarshal(dAtA []byte) error
func (MsgCreateIssuer) ValidateBasic ¶
func (msg MsgCreateIssuer) ValidateBasic() error
ValidateBasic performs a basic check of the MsgCreateIssuer fields.
func (*MsgCreateIssuer) XXX_DiscardUnknown ¶
func (m *MsgCreateIssuer) XXX_DiscardUnknown()
func (*MsgCreateIssuer) XXX_Marshal ¶
func (m *MsgCreateIssuer) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateIssuer) XXX_Merge ¶
func (m *MsgCreateIssuer) XXX_Merge(src proto.Message)
func (*MsgCreateIssuer) XXX_Size ¶
func (m *MsgCreateIssuer) XXX_Size() int
func (*MsgCreateIssuer) XXX_Unmarshal ¶
func (m *MsgCreateIssuer) XXX_Unmarshal(b []byte) error
type MsgCreateIssuerResponse ¶
type MsgCreateIssuerResponse struct { }
func (*MsgCreateIssuerResponse) Descriptor ¶
func (*MsgCreateIssuerResponse) Descriptor() ([]byte, []int)
func (*MsgCreateIssuerResponse) Marshal ¶
func (m *MsgCreateIssuerResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateIssuerResponse) MarshalTo ¶
func (m *MsgCreateIssuerResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateIssuerResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateIssuerResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateIssuerResponse) ProtoMessage ¶
func (*MsgCreateIssuerResponse) ProtoMessage()
func (*MsgCreateIssuerResponse) Reset ¶
func (m *MsgCreateIssuerResponse) Reset()
func (*MsgCreateIssuerResponse) Size ¶
func (m *MsgCreateIssuerResponse) Size() (n int)
func (*MsgCreateIssuerResponse) String ¶
func (m *MsgCreateIssuerResponse) String() string
func (*MsgCreateIssuerResponse) Unmarshal ¶
func (m *MsgCreateIssuerResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateIssuerResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateIssuerResponse) XXX_DiscardUnknown()
func (*MsgCreateIssuerResponse) XXX_Marshal ¶
func (m *MsgCreateIssuerResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateIssuerResponse) XXX_Merge ¶
func (m *MsgCreateIssuerResponse) XXX_Merge(src proto.Message)
func (*MsgCreateIssuerResponse) XXX_Size ¶
func (m *MsgCreateIssuerResponse) XXX_Size() int
func (*MsgCreateIssuerResponse) XXX_Unmarshal ¶
func (m *MsgCreateIssuerResponse) XXX_Unmarshal(b []byte) error
type MsgMintToken ¶ added in v0.2.0
type MsgMintToken struct { Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgMintToken defines a SDK message for minting a token
func NewMsgMintToken ¶ added in v0.2.0
func NewMsgMintToken( amount sdk.Coin, owner string, ) *MsgMintToken
NewMsgMintToken creates a new MsgMintToken instance
func (*MsgMintToken) Descriptor ¶ added in v0.2.0
func (*MsgMintToken) Descriptor() ([]byte, []int)
func (MsgMintToken) GetSignBytes ¶ added in v0.2.0
func (msg MsgMintToken) GetSignBytes() []byte
func (MsgMintToken) GetSigners ¶ added in v0.2.0
func (msg MsgMintToken) GetSigners() []sdk.AccAddress
func (*MsgMintToken) Marshal ¶ added in v0.2.0
func (m *MsgMintToken) Marshal() (dAtA []byte, err error)
func (*MsgMintToken) MarshalTo ¶ added in v0.2.0
func (m *MsgMintToken) MarshalTo(dAtA []byte) (int, error)
func (*MsgMintToken) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *MsgMintToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintToken) ProtoMessage ¶ added in v0.2.0
func (*MsgMintToken) ProtoMessage()
func (*MsgMintToken) Reset ¶ added in v0.2.0
func (m *MsgMintToken) Reset()
func (MsgMintToken) Route ¶ added in v0.2.0
func (MsgMintToken) Route() string
Route implements sdk.Msg
func (*MsgMintToken) Size ¶ added in v0.2.0
func (m *MsgMintToken) Size() (n int)
func (*MsgMintToken) String ¶ added in v0.2.0
func (m *MsgMintToken) String() string
func (MsgMintToken) Type ¶ added in v0.2.0
func (MsgMintToken) Type() string
Type implements sdk.Msg
func (*MsgMintToken) Unmarshal ¶ added in v0.2.0
func (m *MsgMintToken) Unmarshal(dAtA []byte) error
func (MsgMintToken) ValidateBasic ¶ added in v0.2.0
func (msg MsgMintToken) ValidateBasic() error
ValidateBasic performs a basic check of the MsgMintToken fields.
func (*MsgMintToken) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *MsgMintToken) XXX_DiscardUnknown()
func (*MsgMintToken) XXX_Marshal ¶ added in v0.2.0
func (m *MsgMintToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintToken) XXX_Merge ¶ added in v0.2.0
func (m *MsgMintToken) XXX_Merge(src proto.Message)
func (*MsgMintToken) XXX_Size ¶ added in v0.2.0
func (m *MsgMintToken) XXX_Size() int
func (*MsgMintToken) XXX_Unmarshal ¶ added in v0.2.0
func (m *MsgMintToken) XXX_Unmarshal(b []byte) error
type MsgMintTokenResponse ¶ added in v0.2.0
type MsgMintTokenResponse struct { }
func (*MsgMintTokenResponse) Descriptor ¶ added in v0.2.0
func (*MsgMintTokenResponse) Descriptor() ([]byte, []int)
func (*MsgMintTokenResponse) Marshal ¶ added in v0.2.0
func (m *MsgMintTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintTokenResponse) MarshalTo ¶ added in v0.2.0
func (m *MsgMintTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMintTokenResponse) MarshalToSizedBuffer ¶ added in v0.2.0
func (m *MsgMintTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintTokenResponse) ProtoMessage ¶ added in v0.2.0
func (*MsgMintTokenResponse) ProtoMessage()
func (*MsgMintTokenResponse) Reset ¶ added in v0.2.0
func (m *MsgMintTokenResponse) Reset()
func (*MsgMintTokenResponse) Size ¶ added in v0.2.0
func (m *MsgMintTokenResponse) Size() (n int)
func (*MsgMintTokenResponse) String ¶ added in v0.2.0
func (m *MsgMintTokenResponse) String() string
func (*MsgMintTokenResponse) Unmarshal ¶ added in v0.2.0
func (m *MsgMintTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgMintTokenResponse) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *MsgMintTokenResponse) XXX_DiscardUnknown()
func (*MsgMintTokenResponse) XXX_Marshal ¶ added in v0.2.0
func (m *MsgMintTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintTokenResponse) XXX_Merge ¶ added in v0.2.0
func (m *MsgMintTokenResponse) XXX_Merge(src proto.Message)
func (*MsgMintTokenResponse) XXX_Size ¶ added in v0.2.0
func (m *MsgMintTokenResponse) XXX_Size() int
func (*MsgMintTokenResponse) XXX_Unmarshal ¶ added in v0.2.0
func (m *MsgMintTokenResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreateIssuer(context.Context, *MsgCreateIssuer) (*MsgCreateIssuerResponse, error) BurnToken(context.Context, *MsgBurnToken) (*MsgBurnTokenResponse, error) MintToken(context.Context, *MsgMintToken) (*MsgMintTokenResponse, error) }
MsgServer is the server API for Msg service.
type QueryClient ¶
type QueryClient interface {
Issuers(ctx context.Context, in *QueryIssuersRequest, opts ...grpc.CallOption) (*QueryIssuersResponse, 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 QueryIssuersRequest ¶
type QueryIssuersRequest struct { // status enables to query for validators matching a given status. Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryIssuersRequest) Descriptor ¶
func (*QueryIssuersRequest) Descriptor() ([]byte, []int)
func (*QueryIssuersRequest) GetPagination ¶
func (m *QueryIssuersRequest) GetPagination() *query.PageRequest
func (*QueryIssuersRequest) GetStatus ¶
func (m *QueryIssuersRequest) GetStatus() string
func (*QueryIssuersRequest) Marshal ¶
func (m *QueryIssuersRequest) Marshal() (dAtA []byte, err error)
func (*QueryIssuersRequest) MarshalTo ¶
func (m *QueryIssuersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryIssuersRequest) MarshalToSizedBuffer ¶
func (m *QueryIssuersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryIssuersRequest) ProtoMessage ¶
func (*QueryIssuersRequest) ProtoMessage()
func (*QueryIssuersRequest) Reset ¶
func (m *QueryIssuersRequest) Reset()
func (*QueryIssuersRequest) Size ¶
func (m *QueryIssuersRequest) Size() (n int)
func (*QueryIssuersRequest) String ¶
func (m *QueryIssuersRequest) String() string
func (*QueryIssuersRequest) Unmarshal ¶
func (m *QueryIssuersRequest) Unmarshal(dAtA []byte) error
func (*QueryIssuersRequest) XXX_DiscardUnknown ¶
func (m *QueryIssuersRequest) XXX_DiscardUnknown()
func (*QueryIssuersRequest) XXX_Marshal ¶
func (m *QueryIssuersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryIssuersRequest) XXX_Merge ¶
func (m *QueryIssuersRequest) XXX_Merge(src proto.Message)
func (*QueryIssuersRequest) XXX_Size ¶
func (m *QueryIssuersRequest) XXX_Size() int
func (*QueryIssuersRequest) XXX_Unmarshal ¶
func (m *QueryIssuersRequest) XXX_Unmarshal(b []byte) error
type QueryIssuersResponse ¶
type QueryIssuersResponse struct { // validators contains all the queried validators. Issuers []Issuer `protobuf:"bytes,1,rep,name=issuers,proto3" json:"issuers"` // pagination defines the pagination in the response. Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryIdentifersResponse is response type for the Query/Identifers RPC method
func (*QueryIssuersResponse) Descriptor ¶
func (*QueryIssuersResponse) Descriptor() ([]byte, []int)
func (*QueryIssuersResponse) GetIssuers ¶
func (m *QueryIssuersResponse) GetIssuers() []Issuer
func (*QueryIssuersResponse) GetPagination ¶
func (m *QueryIssuersResponse) GetPagination() *query.PageResponse
func (*QueryIssuersResponse) Marshal ¶
func (m *QueryIssuersResponse) Marshal() (dAtA []byte, err error)
func (*QueryIssuersResponse) MarshalTo ¶
func (m *QueryIssuersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryIssuersResponse) MarshalToSizedBuffer ¶
func (m *QueryIssuersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryIssuersResponse) ProtoMessage ¶
func (*QueryIssuersResponse) ProtoMessage()
func (*QueryIssuersResponse) Reset ¶
func (m *QueryIssuersResponse) Reset()
func (*QueryIssuersResponse) Size ¶
func (m *QueryIssuersResponse) Size() (n int)
func (*QueryIssuersResponse) String ¶
func (m *QueryIssuersResponse) String() string
func (*QueryIssuersResponse) Unmarshal ¶
func (m *QueryIssuersResponse) Unmarshal(dAtA []byte) error
func (*QueryIssuersResponse) XXX_DiscardUnknown ¶
func (m *QueryIssuersResponse) XXX_DiscardUnknown()
func (*QueryIssuersResponse) XXX_Marshal ¶
func (m *QueryIssuersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryIssuersResponse) XXX_Merge ¶
func (m *QueryIssuersResponse) XXX_Merge(src proto.Message)
func (*QueryIssuersResponse) XXX_Size ¶
func (m *QueryIssuersResponse) XXX_Size() int
func (*QueryIssuersResponse) XXX_Unmarshal ¶
func (m *QueryIssuersResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface {
Issuers(context.Context, *QueryIssuersRequest) (*QueryIssuersResponse, error)
}
QueryServer is the server API for Query service.
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) BurnToken ¶ added in v0.2.0
func (*UnimplementedMsgServer) BurnToken(ctx context.Context, req *MsgBurnToken) (*MsgBurnTokenResponse, error)
func (*UnimplementedMsgServer) CreateIssuer ¶
func (*UnimplementedMsgServer) CreateIssuer(ctx context.Context, req *MsgCreateIssuer) (*MsgCreateIssuerResponse, error)
func (*UnimplementedMsgServer) MintToken ¶ added in v0.2.0
func (*UnimplementedMsgServer) MintToken(ctx context.Context, req *MsgMintToken) (*MsgMintTokenResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Issuers ¶
func (*UnimplementedQueryServer) Issuers(ctx context.Context, req *QueryIssuersRequest) (*QueryIssuersResponse, error)