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) sdk.Event
- func NewTokenBurnedEvent(issuer string, denom string, amount string) sdk.Event
- func NewTokenMintedEvent(issuer string, denom string, amount string) sdk.Event
- func NewTokenPausedEvent(issuer string, denom 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 DidKeeper
- type Issuer
- func (*Issuer) Descriptor() ([]byte, []int)
- func (m *Issuer) GetFee() int32
- func (m *Issuer) GetIssuerDid() string
- func (m *Issuer) GetPaused() bool
- 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 MsgIssueUserCredential
- func (*MsgIssueUserCredential) Descriptor() ([]byte, []int)
- func (msg *MsgIssueUserCredential) GetSignBytes() []byte
- func (msg *MsgIssueUserCredential) GetSigners() []sdk.AccAddress
- func (m *MsgIssueUserCredential) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueUserCredential) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueUserCredential) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueUserCredential) ProtoMessage()
- func (m *MsgIssueUserCredential) Reset()
- func (msg *MsgIssueUserCredential) Route() string
- func (m *MsgIssueUserCredential) Size() (n int)
- func (m *MsgIssueUserCredential) String() string
- func (msg *MsgIssueUserCredential) Type() string
- func (m *MsgIssueUserCredential) Unmarshal(dAtA []byte) error
- func (msg *MsgIssueUserCredential) ValidateBasic() error
- func (m *MsgIssueUserCredential) XXX_DiscardUnknown()
- func (m *MsgIssueUserCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueUserCredential) XXX_Merge(src proto.Message)
- func (m *MsgIssueUserCredential) XXX_Size() int
- func (m *MsgIssueUserCredential) XXX_Unmarshal(b []byte) error
- type MsgIssueUserCredentialResponse
- func (*MsgIssueUserCredentialResponse) Descriptor() ([]byte, []int)
- func (m *MsgIssueUserCredentialResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueUserCredentialResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueUserCredentialResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueUserCredentialResponse) ProtoMessage()
- func (m *MsgIssueUserCredentialResponse) Reset()
- func (m *MsgIssueUserCredentialResponse) Size() (n int)
- func (m *MsgIssueUserCredentialResponse) String() string
- func (m *MsgIssueUserCredentialResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIssueUserCredentialResponse) XXX_DiscardUnknown()
- func (m *MsgIssueUserCredentialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueUserCredentialResponse) XXX_Merge(src proto.Message)
- func (m *MsgIssueUserCredentialResponse) XXX_Size() int
- func (m *MsgIssueUserCredentialResponse) 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 MsgPauseToken
- func (*MsgPauseToken) Descriptor() ([]byte, []int)
- func (msg MsgPauseToken) GetSignBytes() []byte
- func (msg MsgPauseToken) GetSigners() []sdk.AccAddress
- func (m *MsgPauseToken) Marshal() (dAtA []byte, err error)
- func (m *MsgPauseToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPauseToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPauseToken) ProtoMessage()
- func (m *MsgPauseToken) Reset()
- func (MsgPauseToken) Route() string
- func (m *MsgPauseToken) Size() (n int)
- func (m *MsgPauseToken) String() string
- func (MsgPauseToken) Type() string
- func (m *MsgPauseToken) Unmarshal(dAtA []byte) error
- func (msg MsgPauseToken) ValidateBasic() error
- func (m *MsgPauseToken) XXX_DiscardUnknown()
- func (m *MsgPauseToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPauseToken) XXX_Merge(src proto.Message)
- func (m *MsgPauseToken) XXX_Size() int
- func (m *MsgPauseToken) XXX_Unmarshal(b []byte) error
- type MsgPauseTokenResponse
- func (*MsgPauseTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgPauseTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgPauseTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgPauseTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgPauseTokenResponse) ProtoMessage()
- func (m *MsgPauseTokenResponse) Reset()
- func (m *MsgPauseTokenResponse) Size() (n int)
- func (m *MsgPauseTokenResponse) String() string
- func (m *MsgPauseTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgPauseTokenResponse) XXX_DiscardUnknown()
- func (m *MsgPauseTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgPauseTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgPauseTokenResponse) XXX_Size() int
- func (m *MsgPauseTokenResponse) 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) IssueUserCredential(ctx context.Context, req *MsgIssueUserCredential) (*MsgIssueUserCredentialResponse, error)
- func (*UnimplementedMsgServer) MintToken(ctx context.Context, req *MsgMintToken) (*MsgMintTokenResponse, error)
- func (*UnimplementedMsgServer) PauseToken(ctx context.Context, req *MsgPauseToken) (*MsgPauseTokenResponse, error)
- type UnimplementedQueryServer
- type VcKeeper
Constants ¶
const ( AttributeValueCategory = ModuleName EventTypeIssuerCreated = "issuer_created" EventTypeTokenMinted = "issuer_minted_token" EventTypeTokenBurned = "issuer_burned_token" EventTypePausedBurned = "issuer_paused_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" TypeMsgPauseToken = "pause-token" TypeMsgIssueUserCredential = "issuer-user-credential" )
msg types
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") ErrIncorrectLicenseCredential = sdkerrors.Register(ModuleName, 1311, "issuer does not have the correct license credential") ErrLicenseCredentialNotFound = sdkerrors.Register(ModuleName, 1312, "cannot find issuer credential in the store") ErrBankSendDisabled = sdkerrors.Register(ModuleName, 1313, "sending of emoney tokens not allowed") ErrPublicKeyNotFound = sdkerrors.Register(ModuleName, 1314, "attempting to send tokens to an account not associated with a DID") )
x/issuer module sentinel errors
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 codec used by the module (protobuf) ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
Functions ¶
func NewIssuerCreatedEvent ¶
NewIssuerCreatedEvent constructs a new issuer_created sdk.Event
func NewTokenBurnedEvent ¶
NewTokenBurnedEvent constructs a new token_burned sdk.Event
func NewTokenMintedEvent ¶
NewTokenMintedEvent constructs a new token_minted sdk.Event
func NewTokenPausedEvent ¶
NewTokenPausedEvent constructs a new token_paused 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 DidKeeper ¶
type DidKeeper interface {
ResolveDid(ctx sdk.Context, did didtypes.DID) (doc didtypes.DidDocument, meta didtypes.DidMetadata, err error)
}
DidKeeper defines the expected did keeper functions
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"` IssuerDid string `protobuf:"bytes,3,opt,name=issuer_did,json=issuerDid,proto3" json:"issuer_did,omitempty"` Paused bool `protobuf:"varint,4,opt,name=paused,proto3" json:"paused,omitempty"` }
Issuer represents an e-money token issuer
func (*Issuer) Descriptor ¶
func (*Issuer) GetIssuerDid ¶
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 ¶
type MsgBurnToken struct { IssuerDid string `protobuf:"bytes,1,opt,name=issuer_did,json=issuerDid,proto3" json:"issuer_did,omitempty"` LicenseCredId string `protobuf:"bytes,2,opt,name=license_cred_id,json=licenseCredId,proto3" json:"license_cred_id,omitempty"` Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgBurnToken defines a SDK message for burning issuer tokens.
func NewMsgBurnToken ¶
func NewMsgBurnToken( issuerDid string, licenseCredID string, amount sdk.Coin, owner string, ) *MsgBurnToken
NewMsgBurnToken creates a new MsgBurnToken instance
func (*MsgBurnToken) Descriptor ¶
func (*MsgBurnToken) Descriptor() ([]byte, []int)
func (MsgBurnToken) GetSignBytes ¶
func (msg MsgBurnToken) GetSignBytes() []byte
func (MsgBurnToken) GetSigners ¶
func (msg MsgBurnToken) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgBurnToken) Marshal ¶
func (m *MsgBurnToken) Marshal() (dAtA []byte, err error)
func (*MsgBurnToken) MarshalToSizedBuffer ¶
func (m *MsgBurnToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnToken) ProtoMessage ¶
func (*MsgBurnToken) ProtoMessage()
func (*MsgBurnToken) Reset ¶
func (m *MsgBurnToken) Reset()
func (*MsgBurnToken) Size ¶
func (m *MsgBurnToken) Size() (n int)
func (*MsgBurnToken) String ¶
func (m *MsgBurnToken) String() string
func (*MsgBurnToken) Unmarshal ¶
func (m *MsgBurnToken) Unmarshal(dAtA []byte) error
func (MsgBurnToken) ValidateBasic ¶
func (msg MsgBurnToken) ValidateBasic() error
ValidateBasic performs a basic check of the MsgBurnToken fields.
func (*MsgBurnToken) XXX_DiscardUnknown ¶
func (m *MsgBurnToken) XXX_DiscardUnknown()
func (*MsgBurnToken) XXX_Marshal ¶
func (m *MsgBurnToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnToken) XXX_Merge ¶
func (m *MsgBurnToken) XXX_Merge(src proto.Message)
func (*MsgBurnToken) XXX_Size ¶
func (m *MsgBurnToken) XXX_Size() int
func (*MsgBurnToken) XXX_Unmarshal ¶
func (m *MsgBurnToken) XXX_Unmarshal(b []byte) error
type MsgBurnTokenResponse ¶
type MsgBurnTokenResponse struct { }
func (*MsgBurnTokenResponse) Descriptor ¶
func (*MsgBurnTokenResponse) Descriptor() ([]byte, []int)
func (*MsgBurnTokenResponse) Marshal ¶
func (m *MsgBurnTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnTokenResponse) MarshalTo ¶
func (m *MsgBurnTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgBurnTokenResponse) MarshalToSizedBuffer ¶
func (m *MsgBurnTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnTokenResponse) ProtoMessage ¶
func (*MsgBurnTokenResponse) ProtoMessage()
func (*MsgBurnTokenResponse) Reset ¶
func (m *MsgBurnTokenResponse) Reset()
func (*MsgBurnTokenResponse) Size ¶
func (m *MsgBurnTokenResponse) Size() (n int)
func (*MsgBurnTokenResponse) String ¶
func (m *MsgBurnTokenResponse) String() string
func (*MsgBurnTokenResponse) Unmarshal ¶
func (m *MsgBurnTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnTokenResponse) XXX_DiscardUnknown ¶
func (m *MsgBurnTokenResponse) XXX_DiscardUnknown()
func (*MsgBurnTokenResponse) XXX_Marshal ¶
func (m *MsgBurnTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnTokenResponse) XXX_Merge ¶
func (m *MsgBurnTokenResponse) XXX_Merge(src proto.Message)
func (*MsgBurnTokenResponse) XXX_Size ¶
func (m *MsgBurnTokenResponse) XXX_Size() int
func (*MsgBurnTokenResponse) XXX_Unmarshal ¶
func (m *MsgBurnTokenResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // CreateIssuer creates a token issuer CreateIssuer(ctx context.Context, in *MsgCreateIssuer, opts ...grpc.CallOption) (*MsgCreateIssuerResponse, error) // BurnToken allows to burn an amount of tokens BurnToken(ctx context.Context, in *MsgBurnToken, opts ...grpc.CallOption) (*MsgBurnTokenResponse, error) // MintToken allows to mint an amount of tokens MintToken(ctx context.Context, in *MsgMintToken, opts ...grpc.CallOption) (*MsgMintTokenResponse, error) // PauseToken allows to pause issuance/minting/transacting with a token PauseToken(ctx context.Context, in *MsgPauseToken, opts ...grpc.CallOption) (*MsgPauseTokenResponse, error) // IssueUserCredential issue user credential to allow an account to transact IssueUserCredential(ctx context.Context, in *MsgIssueUserCredential, opts ...grpc.CallOption) (*MsgIssueUserCredentialResponse, 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"` IssuerDid string `protobuf:"bytes,3,opt,name=issuer_did,json=issuerDid,proto3" json:"issuer_did,omitempty"` LicenseCredId string `protobuf:"bytes,4,opt,name=license_cred_id,json=licenseCredId,proto3" json:"license_cred_id,omitempty"` Owner string `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgCreateIssuer defines an SDK message for creating an emoney token issuer.
func NewMsgCreateIssuer ¶
func NewMsgCreateIssuer( issuerDid string, licenseCredID string, 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 MsgIssueUserCredential ¶
type MsgIssueUserCredential struct { Credential *types.VerifiableCredential `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"` Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgIssueUserCredential defines sdk message to issue user credentials
func NewMsgIssueUserCredential ¶
func NewMsgIssueUserCredential(credential vctypes.VerifiableCredential, signerAccount string) *MsgIssueUserCredential
NewMsgIssueUserCredential builds a new instance of a IssuerLicenceCredential message
func (*MsgIssueUserCredential) Descriptor ¶
func (*MsgIssueUserCredential) Descriptor() ([]byte, []int)
func (*MsgIssueUserCredential) GetSignBytes ¶
func (msg *MsgIssueUserCredential) GetSignBytes() []byte
GetSignBytes returns the bytes of the signed message
func (*MsgIssueUserCredential) GetSigners ¶
func (msg *MsgIssueUserCredential) GetSigners() []sdk.AccAddress
GetSigners returns the account addresses singing the message
func (*MsgIssueUserCredential) Marshal ¶
func (m *MsgIssueUserCredential) Marshal() (dAtA []byte, err error)
func (*MsgIssueUserCredential) MarshalTo ¶
func (m *MsgIssueUserCredential) MarshalTo(dAtA []byte) (int, error)
func (*MsgIssueUserCredential) MarshalToSizedBuffer ¶
func (m *MsgIssueUserCredential) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueUserCredential) ProtoMessage ¶
func (*MsgIssueUserCredential) ProtoMessage()
func (*MsgIssueUserCredential) Reset ¶
func (m *MsgIssueUserCredential) Reset()
func (*MsgIssueUserCredential) Route ¶
func (msg *MsgIssueUserCredential) Route() string
Route returns the module router key
func (*MsgIssueUserCredential) Size ¶
func (m *MsgIssueUserCredential) Size() (n int)
func (*MsgIssueUserCredential) String ¶
func (m *MsgIssueUserCredential) String() string
func (*MsgIssueUserCredential) Type ¶
func (msg *MsgIssueUserCredential) Type() string
Type returns the string name of the message
func (*MsgIssueUserCredential) Unmarshal ¶
func (m *MsgIssueUserCredential) Unmarshal(dAtA []byte) error
func (*MsgIssueUserCredential) ValidateBasic ¶
func (msg *MsgIssueUserCredential) ValidateBasic() error
ValidateBasic performs basic validation of the message
func (*MsgIssueUserCredential) XXX_DiscardUnknown ¶
func (m *MsgIssueUserCredential) XXX_DiscardUnknown()
func (*MsgIssueUserCredential) XXX_Marshal ¶
func (m *MsgIssueUserCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueUserCredential) XXX_Merge ¶
func (m *MsgIssueUserCredential) XXX_Merge(src proto.Message)
func (*MsgIssueUserCredential) XXX_Size ¶
func (m *MsgIssueUserCredential) XXX_Size() int
func (*MsgIssueUserCredential) XXX_Unmarshal ¶
func (m *MsgIssueUserCredential) XXX_Unmarshal(b []byte) error
type MsgIssueUserCredentialResponse ¶
type MsgIssueUserCredentialResponse struct { }
func (*MsgIssueUserCredentialResponse) Descriptor ¶
func (*MsgIssueUserCredentialResponse) Descriptor() ([]byte, []int)
func (*MsgIssueUserCredentialResponse) Marshal ¶
func (m *MsgIssueUserCredentialResponse) Marshal() (dAtA []byte, err error)
func (*MsgIssueUserCredentialResponse) MarshalTo ¶
func (m *MsgIssueUserCredentialResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgIssueUserCredentialResponse) MarshalToSizedBuffer ¶
func (m *MsgIssueUserCredentialResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueUserCredentialResponse) ProtoMessage ¶
func (*MsgIssueUserCredentialResponse) ProtoMessage()
func (*MsgIssueUserCredentialResponse) Reset ¶
func (m *MsgIssueUserCredentialResponse) Reset()
func (*MsgIssueUserCredentialResponse) Size ¶
func (m *MsgIssueUserCredentialResponse) Size() (n int)
func (*MsgIssueUserCredentialResponse) String ¶
func (m *MsgIssueUserCredentialResponse) String() string
func (*MsgIssueUserCredentialResponse) Unmarshal ¶
func (m *MsgIssueUserCredentialResponse) Unmarshal(dAtA []byte) error
func (*MsgIssueUserCredentialResponse) XXX_DiscardUnknown ¶
func (m *MsgIssueUserCredentialResponse) XXX_DiscardUnknown()
func (*MsgIssueUserCredentialResponse) XXX_Marshal ¶
func (m *MsgIssueUserCredentialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueUserCredentialResponse) XXX_Merge ¶
func (m *MsgIssueUserCredentialResponse) XXX_Merge(src proto.Message)
func (*MsgIssueUserCredentialResponse) XXX_Size ¶
func (m *MsgIssueUserCredentialResponse) XXX_Size() int
func (*MsgIssueUserCredentialResponse) XXX_Unmarshal ¶
func (m *MsgIssueUserCredentialResponse) XXX_Unmarshal(b []byte) error
type MsgMintToken ¶
type MsgMintToken struct { IssuerDid string `protobuf:"bytes,1,opt,name=issuer_did,json=issuerDid,proto3" json:"issuer_did,omitempty"` LicenseCredId string `protobuf:"bytes,2,opt,name=license_cred_id,json=licenseCredId,proto3" json:"license_cred_id,omitempty"` Amount string `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"` Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgMintToken defines a SDK message for minting a token
func NewMsgMintToken ¶
func NewMsgMintToken( issuerDid string, licenseCredID string, amount sdk.Coin, owner string, ) *MsgMintToken
NewMsgMintToken creates a new MsgMintToken instance
func (*MsgMintToken) Descriptor ¶
func (*MsgMintToken) Descriptor() ([]byte, []int)
func (MsgMintToken) GetSignBytes ¶
func (msg MsgMintToken) GetSignBytes() []byte
func (MsgMintToken) GetSigners ¶
func (msg MsgMintToken) GetSigners() []sdk.AccAddress
func (*MsgMintToken) Marshal ¶
func (m *MsgMintToken) Marshal() (dAtA []byte, err error)
func (*MsgMintToken) MarshalToSizedBuffer ¶
func (m *MsgMintToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintToken) ProtoMessage ¶
func (*MsgMintToken) ProtoMessage()
func (*MsgMintToken) Reset ¶
func (m *MsgMintToken) Reset()
func (*MsgMintToken) Size ¶
func (m *MsgMintToken) Size() (n int)
func (*MsgMintToken) String ¶
func (m *MsgMintToken) String() string
func (*MsgMintToken) Unmarshal ¶
func (m *MsgMintToken) Unmarshal(dAtA []byte) error
func (MsgMintToken) ValidateBasic ¶
func (msg MsgMintToken) ValidateBasic() error
ValidateBasic performs a basic check of the MsgMintToken fields.
func (*MsgMintToken) XXX_DiscardUnknown ¶
func (m *MsgMintToken) XXX_DiscardUnknown()
func (*MsgMintToken) XXX_Marshal ¶
func (m *MsgMintToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintToken) XXX_Merge ¶
func (m *MsgMintToken) XXX_Merge(src proto.Message)
func (*MsgMintToken) XXX_Size ¶
func (m *MsgMintToken) XXX_Size() int
func (*MsgMintToken) XXX_Unmarshal ¶
func (m *MsgMintToken) XXX_Unmarshal(b []byte) error
type MsgMintTokenResponse ¶
type MsgMintTokenResponse struct { }
func (*MsgMintTokenResponse) Descriptor ¶
func (*MsgMintTokenResponse) Descriptor() ([]byte, []int)
func (*MsgMintTokenResponse) Marshal ¶
func (m *MsgMintTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintTokenResponse) MarshalTo ¶
func (m *MsgMintTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgMintTokenResponse) MarshalToSizedBuffer ¶
func (m *MsgMintTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintTokenResponse) ProtoMessage ¶
func (*MsgMintTokenResponse) ProtoMessage()
func (*MsgMintTokenResponse) Reset ¶
func (m *MsgMintTokenResponse) Reset()
func (*MsgMintTokenResponse) Size ¶
func (m *MsgMintTokenResponse) Size() (n int)
func (*MsgMintTokenResponse) String ¶
func (m *MsgMintTokenResponse) String() string
func (*MsgMintTokenResponse) Unmarshal ¶
func (m *MsgMintTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgMintTokenResponse) XXX_DiscardUnknown ¶
func (m *MsgMintTokenResponse) XXX_DiscardUnknown()
func (*MsgMintTokenResponse) XXX_Marshal ¶
func (m *MsgMintTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintTokenResponse) XXX_Merge ¶
func (m *MsgMintTokenResponse) XXX_Merge(src proto.Message)
func (*MsgMintTokenResponse) XXX_Size ¶
func (m *MsgMintTokenResponse) XXX_Size() int
func (*MsgMintTokenResponse) XXX_Unmarshal ¶
func (m *MsgMintTokenResponse) XXX_Unmarshal(b []byte) error
type MsgPauseToken ¶
type MsgPauseToken struct { IssuerDid string `protobuf:"bytes,1,opt,name=issuer_did,json=issuerDid,proto3" json:"issuer_did,omitempty"` LicenseCredId string `protobuf:"bytes,2,opt,name=license_cred_id,json=licenseCredId,proto3" json:"license_cred_id,omitempty"` Owner string `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"` }
MsgPauseToken defines a SDK message for minting a token
func NewMsgPauseToken ¶
func NewMsgPauseToken( issuerDid string, licenseCredID string, owner string, ) *MsgPauseToken
NewMsgPauseToken creates a new MsgPauseToken instance
func (*MsgPauseToken) Descriptor ¶
func (*MsgPauseToken) Descriptor() ([]byte, []int)
func (MsgPauseToken) GetSignBytes ¶
func (msg MsgPauseToken) GetSignBytes() []byte
func (MsgPauseToken) GetSigners ¶
func (msg MsgPauseToken) GetSigners() []sdk.AccAddress
GetSigners implements sdk.Msg
func (*MsgPauseToken) Marshal ¶
func (m *MsgPauseToken) Marshal() (dAtA []byte, err error)
func (*MsgPauseToken) MarshalToSizedBuffer ¶
func (m *MsgPauseToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPauseToken) ProtoMessage ¶
func (*MsgPauseToken) ProtoMessage()
func (*MsgPauseToken) Reset ¶
func (m *MsgPauseToken) Reset()
func (*MsgPauseToken) Size ¶
func (m *MsgPauseToken) Size() (n int)
func (*MsgPauseToken) String ¶
func (m *MsgPauseToken) String() string
func (*MsgPauseToken) Unmarshal ¶
func (m *MsgPauseToken) Unmarshal(dAtA []byte) error
func (MsgPauseToken) ValidateBasic ¶
func (msg MsgPauseToken) ValidateBasic() error
ValidateBasic performs a basic check of the MsgPauseToken fields.
func (*MsgPauseToken) XXX_DiscardUnknown ¶
func (m *MsgPauseToken) XXX_DiscardUnknown()
func (*MsgPauseToken) XXX_Marshal ¶
func (m *MsgPauseToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPauseToken) XXX_Merge ¶
func (m *MsgPauseToken) XXX_Merge(src proto.Message)
func (*MsgPauseToken) XXX_Size ¶
func (m *MsgPauseToken) XXX_Size() int
func (*MsgPauseToken) XXX_Unmarshal ¶
func (m *MsgPauseToken) XXX_Unmarshal(b []byte) error
type MsgPauseTokenResponse ¶
type MsgPauseTokenResponse struct { }
func (*MsgPauseTokenResponse) Descriptor ¶
func (*MsgPauseTokenResponse) Descriptor() ([]byte, []int)
func (*MsgPauseTokenResponse) Marshal ¶
func (m *MsgPauseTokenResponse) Marshal() (dAtA []byte, err error)
func (*MsgPauseTokenResponse) MarshalTo ¶
func (m *MsgPauseTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgPauseTokenResponse) MarshalToSizedBuffer ¶
func (m *MsgPauseTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgPauseTokenResponse) ProtoMessage ¶
func (*MsgPauseTokenResponse) ProtoMessage()
func (*MsgPauseTokenResponse) Reset ¶
func (m *MsgPauseTokenResponse) Reset()
func (*MsgPauseTokenResponse) Size ¶
func (m *MsgPauseTokenResponse) Size() (n int)
func (*MsgPauseTokenResponse) String ¶
func (m *MsgPauseTokenResponse) String() string
func (*MsgPauseTokenResponse) Unmarshal ¶
func (m *MsgPauseTokenResponse) Unmarshal(dAtA []byte) error
func (*MsgPauseTokenResponse) XXX_DiscardUnknown ¶
func (m *MsgPauseTokenResponse) XXX_DiscardUnknown()
func (*MsgPauseTokenResponse) XXX_Marshal ¶
func (m *MsgPauseTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgPauseTokenResponse) XXX_Merge ¶
func (m *MsgPauseTokenResponse) XXX_Merge(src proto.Message)
func (*MsgPauseTokenResponse) XXX_Size ¶
func (m *MsgPauseTokenResponse) XXX_Size() int
func (*MsgPauseTokenResponse) XXX_Unmarshal ¶
func (m *MsgPauseTokenResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // CreateIssuer creates a token issuer CreateIssuer(context.Context, *MsgCreateIssuer) (*MsgCreateIssuerResponse, error) // BurnToken allows to burn an amount of tokens BurnToken(context.Context, *MsgBurnToken) (*MsgBurnTokenResponse, error) // MintToken allows to mint an amount of tokens MintToken(context.Context, *MsgMintToken) (*MsgMintTokenResponse, error) // PauseToken allows to pause issuance/minting/transacting with a token PauseToken(context.Context, *MsgPauseToken) (*MsgPauseTokenResponse, error) // IssueUserCredential issue user credential to allow an account to transact IssueUserCredential(context.Context, *MsgIssueUserCredential) (*MsgIssueUserCredentialResponse, 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 ¶
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) IssueUserCredential ¶
func (*UnimplementedMsgServer) IssueUserCredential(ctx context.Context, req *MsgIssueUserCredential) (*MsgIssueUserCredentialResponse, error)
func (*UnimplementedMsgServer) MintToken ¶
func (*UnimplementedMsgServer) MintToken(ctx context.Context, req *MsgMintToken) (*MsgMintTokenResponse, error)
func (*UnimplementedMsgServer) PauseToken ¶
func (*UnimplementedMsgServer) PauseToken(ctx context.Context, req *MsgPauseToken) (*MsgPauseTokenResponse, 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)
type VcKeeper ¶
type VcKeeper interface { GetVerifiableCredential(ctx sdk.Context, key []byte) (vctypes.VerifiableCredential, bool) SetVerifiableCredential(ctx sdk.Context, key []byte, vc vctypes.VerifiableCredential) error GetVerifiableCredentialWithType(ctx sdk.Context, subjectDID, vcType string) []vctypes.VerifiableCredential }
VcKeeper defines the expected verfiable credentials keeper functions