Documentation ¶
Overview ¶
nolint
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetFantokenDenom(height int64, minter sdk.AccAddress, symbol, name string) string
- func KeyDenom(denom string) []byte
- func KeyFanTokens(owner sdk.AccAddress, denom string) []byte
- func NewUpdateFeesProposal(title, description string, issueFee, mintFee, burnFee sdk.Coin) govtypes.Content
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidateAmount(amount sdk.Int) error
- func ValidateDenom(denom string) error
- func ValidateFees(issueFee, mintFee, burnFee sdk.Coin) error
- func ValidateName(name string) error
- func ValidateSymbol(symbol string) error
- func ValidateUri(uri string) error
- type AccountKeeper
- type BankKeeper
- type DistrKeeper
- type EventBurn
- func (*EventBurn) Descriptor() ([]byte, []int)
- func (m *EventBurn) GetCoin() string
- func (m *EventBurn) GetSender() string
- func (m *EventBurn) Marshal() (dAtA []byte, err error)
- func (m *EventBurn) MarshalTo(dAtA []byte) (int, error)
- func (m *EventBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventBurn) ProtoMessage()
- func (m *EventBurn) Reset()
- func (m *EventBurn) Size() (n int)
- func (m *EventBurn) String() string
- func (m *EventBurn) Unmarshal(dAtA []byte) error
- func (m *EventBurn) XXX_DiscardUnknown()
- func (m *EventBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventBurn) XXX_Merge(src proto.Message)
- func (m *EventBurn) XXX_Size() int
- func (m *EventBurn) XXX_Unmarshal(b []byte) error
- type EventDisableMint
- func (*EventDisableMint) Descriptor() ([]byte, []int)
- func (m *EventDisableMint) GetDenom() string
- func (m *EventDisableMint) Marshal() (dAtA []byte, err error)
- func (m *EventDisableMint) MarshalTo(dAtA []byte) (int, error)
- func (m *EventDisableMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventDisableMint) ProtoMessage()
- func (m *EventDisableMint) Reset()
- func (m *EventDisableMint) Size() (n int)
- func (m *EventDisableMint) String() string
- func (m *EventDisableMint) Unmarshal(dAtA []byte) error
- func (m *EventDisableMint) XXX_DiscardUnknown()
- func (m *EventDisableMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventDisableMint) XXX_Merge(src proto.Message)
- func (m *EventDisableMint) XXX_Size() int
- func (m *EventDisableMint) XXX_Unmarshal(b []byte) error
- type EventIssue
- func (*EventIssue) Descriptor() ([]byte, []int)
- func (m *EventIssue) GetDenom() string
- func (m *EventIssue) Marshal() (dAtA []byte, err error)
- func (m *EventIssue) MarshalTo(dAtA []byte) (int, error)
- func (m *EventIssue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventIssue) ProtoMessage()
- func (m *EventIssue) Reset()
- func (m *EventIssue) Size() (n int)
- func (m *EventIssue) String() string
- func (m *EventIssue) Unmarshal(dAtA []byte) error
- func (m *EventIssue) XXX_DiscardUnknown()
- func (m *EventIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventIssue) XXX_Merge(src proto.Message)
- func (m *EventIssue) XXX_Size() int
- func (m *EventIssue) XXX_Unmarshal(b []byte) error
- type EventMint
- func (*EventMint) Descriptor() ([]byte, []int)
- func (m *EventMint) GetCoin() string
- func (m *EventMint) GetRecipient() string
- func (m *EventMint) Marshal() (dAtA []byte, err error)
- func (m *EventMint) MarshalTo(dAtA []byte) (int, error)
- func (m *EventMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventMint) ProtoMessage()
- func (m *EventMint) Reset()
- func (m *EventMint) Size() (n int)
- func (m *EventMint) String() string
- func (m *EventMint) Unmarshal(dAtA []byte) error
- func (m *EventMint) XXX_DiscardUnknown()
- func (m *EventMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventMint) XXX_Merge(src proto.Message)
- func (m *EventMint) XXX_Size() int
- func (m *EventMint) XXX_Unmarshal(b []byte) error
- type EventSetAuthority
- func (*EventSetAuthority) Descriptor() ([]byte, []int)
- func (m *EventSetAuthority) GetDenom() string
- func (m *EventSetAuthority) GetNewAuthority() string
- func (m *EventSetAuthority) GetOldAuthority() string
- func (m *EventSetAuthority) Marshal() (dAtA []byte, err error)
- func (m *EventSetAuthority) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSetAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSetAuthority) ProtoMessage()
- func (m *EventSetAuthority) Reset()
- func (m *EventSetAuthority) Size() (n int)
- func (m *EventSetAuthority) String() string
- func (m *EventSetAuthority) Unmarshal(dAtA []byte) error
- func (m *EventSetAuthority) XXX_DiscardUnknown()
- func (m *EventSetAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSetAuthority) XXX_Merge(src proto.Message)
- func (m *EventSetAuthority) XXX_Size() int
- func (m *EventSetAuthority) XXX_Unmarshal(b []byte) error
- type EventSetMinter
- func (*EventSetMinter) Descriptor() ([]byte, []int)
- func (m *EventSetMinter) GetDenom() string
- func (m *EventSetMinter) GetNewMinter() string
- func (m *EventSetMinter) GetOldMinter() string
- func (m *EventSetMinter) Marshal() (dAtA []byte, err error)
- func (m *EventSetMinter) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSetMinter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSetMinter) ProtoMessage()
- func (m *EventSetMinter) Reset()
- func (m *EventSetMinter) Size() (n int)
- func (m *EventSetMinter) String() string
- func (m *EventSetMinter) Unmarshal(dAtA []byte) error
- func (m *EventSetMinter) XXX_DiscardUnknown()
- func (m *EventSetMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSetMinter) XXX_Merge(src proto.Message)
- func (m *EventSetMinter) XXX_Size() int
- func (m *EventSetMinter) XXX_Unmarshal(b []byte) error
- type EventSetUri
- func (*EventSetUri) Descriptor() ([]byte, []int)
- func (m *EventSetUri) GetDenom() string
- func (m *EventSetUri) Marshal() (dAtA []byte, err error)
- func (m *EventSetUri) MarshalTo(dAtA []byte) (int, error)
- func (m *EventSetUri) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventSetUri) ProtoMessage()
- func (m *EventSetUri) Reset()
- func (m *EventSetUri) Size() (n int)
- func (m *EventSetUri) String() string
- func (m *EventSetUri) Unmarshal(dAtA []byte) error
- func (m *EventSetUri) XXX_DiscardUnknown()
- func (m *EventSetUri) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventSetUri) XXX_Merge(src proto.Message)
- func (m *EventSetUri) XXX_Size() int
- func (m *EventSetUri) XXX_Unmarshal(b []byte) error
- type FanToken
- func (*FanToken) Descriptor() ([]byte, []int)
- func (ft FanToken) GetAuthority() sdk.AccAddress
- func (ft FanToken) GetDenom() string
- func (ft FanToken) GetMaxSupply() sdk.Int
- func (ft FanToken) GetMetaData() Metadata
- func (ft FanToken) GetMintable() bool
- func (ft FanToken) GetMinter() sdk.AccAddress
- func (ft FanToken) GetName() string
- func (ft FanToken) GetSymbol() string
- func (ft FanToken) GetURI() string
- func (m *FanToken) Marshal() (dAtA []byte, err error)
- func (m *FanToken) MarshalTo(dAtA []byte) (int, error)
- func (m *FanToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*FanToken) ProtoMessage()
- func (m *FanToken) Reset()
- func (m *FanToken) Size() (n int)
- func (ft FanToken) String() string
- func (m *FanToken) Unmarshal(dAtA []byte) error
- func (ft FanToken) Validate() error
- func (ft FanToken) ValidateWithDenom() error
- func (m *FanToken) XXX_DiscardUnknown()
- func (m *FanToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *FanToken) XXX_Merge(src proto.Message)
- func (m *FanToken) XXX_Size() int
- func (m *FanToken) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetFanTokens() []FanToken
- func (m *GenesisState) GetParams() Params
- 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 Metadata
- func (*Metadata) Descriptor() ([]byte, []int)
- func (m *Metadata) Marshal() (dAtA []byte, err error)
- func (m *Metadata) MarshalTo(dAtA []byte) (int, error)
- func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Metadata) ProtoMessage()
- func (m *Metadata) Reset()
- func (m *Metadata) Size() (n int)
- func (m *Metadata) String() string
- func (m *Metadata) Unmarshal(dAtA []byte) error
- func (m Metadata) Validate() error
- func (m *Metadata) XXX_DiscardUnknown()
- func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Metadata) XXX_Merge(src proto.Message)
- func (m *Metadata) XXX_Size() int
- func (m *Metadata) XXX_Unmarshal(b []byte) error
- type MsgBurn
- func (*MsgBurn) Descriptor() ([]byte, []int)
- func (msg MsgBurn) GetSignBytes() []byte
- func (msg MsgBurn) GetSigners() []sdk.AccAddress
- func (m *MsgBurn) Marshal() (dAtA []byte, err error)
- func (m *MsgBurn) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurn) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurn) ProtoMessage()
- func (m *MsgBurn) Reset()
- func (msg MsgBurn) Route() string
- func (m *MsgBurn) Size() (n int)
- func (m *MsgBurn) String() string
- func (msg MsgBurn) Type() string
- func (m *MsgBurn) Unmarshal(dAtA []byte) error
- func (msg MsgBurn) ValidateBasic() error
- func (m *MsgBurn) XXX_DiscardUnknown()
- func (m *MsgBurn) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurn) XXX_Merge(src proto.Message)
- func (m *MsgBurn) XXX_Size() int
- func (m *MsgBurn) XXX_Unmarshal(b []byte) error
- type MsgBurnResponse
- func (*MsgBurnResponse) Descriptor() ([]byte, []int)
- func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgBurnResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgBurnResponse) ProtoMessage()
- func (m *MsgBurnResponse) Reset()
- func (m *MsgBurnResponse) Size() (n int)
- func (m *MsgBurnResponse) String() string
- func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
- func (m *MsgBurnResponse) XXX_DiscardUnknown()
- func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
- func (m *MsgBurnResponse) XXX_Size() int
- func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgDisableMint
- func (*MsgDisableMint) Descriptor() ([]byte, []int)
- func (msg MsgDisableMint) GetSignBytes() []byte
- func (msg MsgDisableMint) GetSigners() []sdk.AccAddress
- func (m *MsgDisableMint) Marshal() (dAtA []byte, err error)
- func (m *MsgDisableMint) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDisableMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDisableMint) ProtoMessage()
- func (m *MsgDisableMint) Reset()
- func (msg MsgDisableMint) Route() string
- func (m *MsgDisableMint) Size() (n int)
- func (m *MsgDisableMint) String() string
- func (msg MsgDisableMint) Type() string
- func (m *MsgDisableMint) Unmarshal(dAtA []byte) error
- func (msg MsgDisableMint) ValidateBasic() error
- func (m *MsgDisableMint) XXX_DiscardUnknown()
- func (m *MsgDisableMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDisableMint) XXX_Merge(src proto.Message)
- func (m *MsgDisableMint) XXX_Size() int
- func (m *MsgDisableMint) XXX_Unmarshal(b []byte) error
- type MsgDisableMintResponse
- func (*MsgDisableMintResponse) Descriptor() ([]byte, []int)
- func (m *MsgDisableMintResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDisableMintResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDisableMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDisableMintResponse) ProtoMessage()
- func (m *MsgDisableMintResponse) Reset()
- func (m *MsgDisableMintResponse) Size() (n int)
- func (m *MsgDisableMintResponse) String() string
- func (m *MsgDisableMintResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDisableMintResponse) XXX_DiscardUnknown()
- func (m *MsgDisableMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDisableMintResponse) XXX_Merge(src proto.Message)
- func (m *MsgDisableMintResponse) XXX_Size() int
- func (m *MsgDisableMintResponse) XXX_Unmarshal(b []byte) error
- type MsgIssue
- func (*MsgIssue) Descriptor() ([]byte, []int)
- func (msg MsgIssue) GetSignBytes() []byte
- func (msg MsgIssue) GetSigners() []sdk.AccAddress
- func (m *MsgIssue) Marshal() (dAtA []byte, err error)
- func (m *MsgIssue) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssue) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssue) ProtoMessage()
- func (m *MsgIssue) Reset()
- func (msg MsgIssue) Route() string
- func (m *MsgIssue) Size() (n int)
- func (m *MsgIssue) String() string
- func (msg MsgIssue) Type() string
- func (m *MsgIssue) Unmarshal(dAtA []byte) error
- func (msg MsgIssue) ValidateBasic() error
- func (m *MsgIssue) XXX_DiscardUnknown()
- func (m *MsgIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssue) XXX_Merge(src proto.Message)
- func (m *MsgIssue) XXX_Size() int
- func (m *MsgIssue) XXX_Unmarshal(b []byte) error
- type MsgIssueResponse
- func (*MsgIssueResponse) Descriptor() ([]byte, []int)
- func (m *MsgIssueResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueResponse) ProtoMessage()
- func (m *MsgIssueResponse) Reset()
- func (m *MsgIssueResponse) Size() (n int)
- func (m *MsgIssueResponse) String() string
- func (m *MsgIssueResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIssueResponse) XXX_DiscardUnknown()
- func (m *MsgIssueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueResponse) XXX_Merge(src proto.Message)
- func (m *MsgIssueResponse) XXX_Size() int
- func (m *MsgIssueResponse) XXX_Unmarshal(b []byte) error
- type MsgMint
- func (*MsgMint) Descriptor() ([]byte, []int)
- func (msg MsgMint) GetSignBytes() []byte
- func (msg MsgMint) GetSigners() []sdk.AccAddress
- func (m *MsgMint) Marshal() (dAtA []byte, err error)
- func (m *MsgMint) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMint) ProtoMessage()
- func (m *MsgMint) Reset()
- func (msg MsgMint) Route() string
- func (m *MsgMint) Size() (n int)
- func (m *MsgMint) String() string
- func (msg MsgMint) Type() string
- func (m *MsgMint) Unmarshal(dAtA []byte) error
- func (msg MsgMint) ValidateBasic() error
- func (m *MsgMint) XXX_DiscardUnknown()
- func (m *MsgMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMint) XXX_Merge(src proto.Message)
- func (m *MsgMint) XXX_Size() int
- func (m *MsgMint) XXX_Unmarshal(b []byte) error
- type MsgMintResponse
- func (*MsgMintResponse) Descriptor() ([]byte, []int)
- func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgMintResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMintResponse) ProtoMessage()
- func (m *MsgMintResponse) Reset()
- func (m *MsgMintResponse) Size() (n int)
- func (m *MsgMintResponse) String() string
- func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
- func (m *MsgMintResponse) XXX_DiscardUnknown()
- func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMintResponse) XXX_Merge(src proto.Message)
- func (m *MsgMintResponse) XXX_Size() int
- func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSetAuthority
- func (*MsgSetAuthority) Descriptor() ([]byte, []int)
- func (msg MsgSetAuthority) GetSignBytes() []byte
- func (msg MsgSetAuthority) GetSigners() []sdk.AccAddress
- func (m *MsgSetAuthority) Marshal() (dAtA []byte, err error)
- func (m *MsgSetAuthority) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetAuthority) ProtoMessage()
- func (m *MsgSetAuthority) Reset()
- func (msg MsgSetAuthority) Route() string
- func (m *MsgSetAuthority) Size() (n int)
- func (m *MsgSetAuthority) String() string
- func (msg MsgSetAuthority) Type() string
- func (m *MsgSetAuthority) Unmarshal(dAtA []byte) error
- func (msg MsgSetAuthority) ValidateBasic() error
- func (m *MsgSetAuthority) XXX_DiscardUnknown()
- func (m *MsgSetAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetAuthority) XXX_Merge(src proto.Message)
- func (m *MsgSetAuthority) XXX_Size() int
- func (m *MsgSetAuthority) XXX_Unmarshal(b []byte) error
- type MsgSetAuthorityResponse
- func (*MsgSetAuthorityResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetAuthorityResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetAuthorityResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetAuthorityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetAuthorityResponse) ProtoMessage()
- func (m *MsgSetAuthorityResponse) Reset()
- func (m *MsgSetAuthorityResponse) Size() (n int)
- func (m *MsgSetAuthorityResponse) String() string
- func (m *MsgSetAuthorityResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetAuthorityResponse) XXX_DiscardUnknown()
- func (m *MsgSetAuthorityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetAuthorityResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetAuthorityResponse) XXX_Size() int
- func (m *MsgSetAuthorityResponse) XXX_Unmarshal(b []byte) error
- type MsgSetMinter
- func (*MsgSetMinter) Descriptor() ([]byte, []int)
- func (msg MsgSetMinter) GetSignBytes() []byte
- func (msg MsgSetMinter) GetSigners() []sdk.AccAddress
- func (m *MsgSetMinter) Marshal() (dAtA []byte, err error)
- func (m *MsgSetMinter) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetMinter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetMinter) ProtoMessage()
- func (m *MsgSetMinter) Reset()
- func (msg MsgSetMinter) Route() string
- func (m *MsgSetMinter) Size() (n int)
- func (m *MsgSetMinter) String() string
- func (msg MsgSetMinter) Type() string
- func (m *MsgSetMinter) Unmarshal(dAtA []byte) error
- func (msg MsgSetMinter) ValidateBasic() error
- func (m *MsgSetMinter) XXX_DiscardUnknown()
- func (m *MsgSetMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetMinter) XXX_Merge(src proto.Message)
- func (m *MsgSetMinter) XXX_Size() int
- func (m *MsgSetMinter) XXX_Unmarshal(b []byte) error
- type MsgSetMinterResponse
- func (*MsgSetMinterResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetMinterResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetMinterResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetMinterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetMinterResponse) ProtoMessage()
- func (m *MsgSetMinterResponse) Reset()
- func (m *MsgSetMinterResponse) Size() (n int)
- func (m *MsgSetMinterResponse) String() string
- func (m *MsgSetMinterResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetMinterResponse) XXX_DiscardUnknown()
- func (m *MsgSetMinterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetMinterResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetMinterResponse) XXX_Size() int
- func (m *MsgSetMinterResponse) XXX_Unmarshal(b []byte) error
- type MsgSetUri
- func (*MsgSetUri) Descriptor() ([]byte, []int)
- func (msg MsgSetUri) GetSignBytes() []byte
- func (msg MsgSetUri) GetSigners() []sdk.AccAddress
- func (m *MsgSetUri) Marshal() (dAtA []byte, err error)
- func (m *MsgSetUri) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetUri) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetUri) ProtoMessage()
- func (m *MsgSetUri) Reset()
- func (msg MsgSetUri) Route() string
- func (m *MsgSetUri) Size() (n int)
- func (m *MsgSetUri) String() string
- func (msg MsgSetUri) Type() string
- func (m *MsgSetUri) Unmarshal(dAtA []byte) error
- func (msg MsgSetUri) ValidateBasic() error
- func (m *MsgSetUri) XXX_DiscardUnknown()
- func (m *MsgSetUri) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetUri) XXX_Merge(src proto.Message)
- func (m *MsgSetUri) XXX_Size() int
- func (m *MsgSetUri) XXX_Unmarshal(b []byte) error
- type MsgSetUriResponse
- func (*MsgSetUriResponse) Descriptor() ([]byte, []int)
- func (m *MsgSetUriResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSetUriResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSetUriResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSetUriResponse) ProtoMessage()
- func (m *MsgSetUriResponse) Reset()
- func (m *MsgSetUriResponse) Size() (n int)
- func (m *MsgSetUriResponse) String() string
- func (m *MsgSetUriResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSetUriResponse) XXX_DiscardUnknown()
- func (m *MsgSetUriResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSetUriResponse) XXX_Merge(src proto.Message)
- func (m *MsgSetUriResponse) XXX_Size() int
- func (m *MsgSetUriResponse) XXX_Unmarshal(b []byte) error
- type ParamSubspace
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryFanTokenRequest
- func (*QueryFanTokenRequest) Descriptor() ([]byte, []int)
- func (m *QueryFanTokenRequest) GetDenom() string
- func (m *QueryFanTokenRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFanTokenRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFanTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFanTokenRequest) ProtoMessage()
- func (m *QueryFanTokenRequest) Reset()
- func (m *QueryFanTokenRequest) Size() (n int)
- func (m *QueryFanTokenRequest) String() string
- func (m *QueryFanTokenRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFanTokenRequest) XXX_DiscardUnknown()
- func (m *QueryFanTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFanTokenRequest) XXX_Merge(src proto.Message)
- func (m *QueryFanTokenRequest) XXX_Size() int
- func (m *QueryFanTokenRequest) XXX_Unmarshal(b []byte) error
- type QueryFanTokenResponse
- func (*QueryFanTokenResponse) Descriptor() ([]byte, []int)
- func (m *QueryFanTokenResponse) GetFantoken() *FanToken
- func (m *QueryFanTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFanTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFanTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFanTokenResponse) ProtoMessage()
- func (m *QueryFanTokenResponse) Reset()
- func (m *QueryFanTokenResponse) Size() (n int)
- func (m *QueryFanTokenResponse) String() string
- func (m *QueryFanTokenResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFanTokenResponse) XXX_DiscardUnknown()
- func (m *QueryFanTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFanTokenResponse) XXX_Merge(src proto.Message)
- func (m *QueryFanTokenResponse) XXX_Size() int
- func (m *QueryFanTokenResponse) XXX_Unmarshal(b []byte) error
- type QueryFanTokensRequest
- func (*QueryFanTokensRequest) Descriptor() ([]byte, []int)
- func (m *QueryFanTokensRequest) GetAuthority() string
- func (m *QueryFanTokensRequest) GetPagination() *query.PageRequest
- func (m *QueryFanTokensRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryFanTokensRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFanTokensRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFanTokensRequest) ProtoMessage()
- func (m *QueryFanTokensRequest) Reset()
- func (m *QueryFanTokensRequest) Size() (n int)
- func (m *QueryFanTokensRequest) String() string
- func (m *QueryFanTokensRequest) Unmarshal(dAtA []byte) error
- func (m *QueryFanTokensRequest) XXX_DiscardUnknown()
- func (m *QueryFanTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFanTokensRequest) XXX_Merge(src proto.Message)
- func (m *QueryFanTokensRequest) XXX_Size() int
- func (m *QueryFanTokensRequest) XXX_Unmarshal(b []byte) error
- type QueryFanTokensResponse
- func (*QueryFanTokensResponse) Descriptor() ([]byte, []int)
- func (m *QueryFanTokensResponse) GetFantokens() []*FanToken
- func (m *QueryFanTokensResponse) GetPagination() *query.PageResponse
- func (m *QueryFanTokensResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryFanTokensResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryFanTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryFanTokensResponse) ProtoMessage()
- func (m *QueryFanTokensResponse) Reset()
- func (m *QueryFanTokensResponse) Size() (n int)
- func (m *QueryFanTokensResponse) String() string
- func (m *QueryFanTokensResponse) Unmarshal(dAtA []byte) error
- func (m *QueryFanTokensResponse) XXX_DiscardUnknown()
- func (m *QueryFanTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryFanTokensResponse) XXX_Merge(src proto.Message)
- func (m *QueryFanTokensResponse) XXX_Size() int
- func (m *QueryFanTokensResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
- func (*UnimplementedMsgServer) DisableMint(ctx context.Context, req *MsgDisableMint) (*MsgDisableMintResponse, error)
- func (*UnimplementedMsgServer) Issue(ctx context.Context, req *MsgIssue) (*MsgIssueResponse, error)
- func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
- func (*UnimplementedMsgServer) SetAuthority(ctx context.Context, req *MsgSetAuthority) (*MsgSetAuthorityResponse, error)
- func (*UnimplementedMsgServer) SetMinter(ctx context.Context, req *MsgSetMinter) (*MsgSetMinterResponse, error)
- func (*UnimplementedMsgServer) SetUri(ctx context.Context, req *MsgSetUri) (*MsgSetUriResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) FanToken(ctx context.Context, req *QueryFanTokenRequest) (*QueryFanTokenResponse, error)
- func (*UnimplementedQueryServer) FanTokens(ctx context.Context, req *QueryFanTokensRequest) (*QueryFanTokensResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- type UpdateFeesProposal
- func (*UpdateFeesProposal) Descriptor() ([]byte, []int)
- func (this *UpdateFeesProposal) Equal(that interface{}) bool
- func (p *UpdateFeesProposal) GetDescription() string
- func (p *UpdateFeesProposal) GetTitle() string
- func (m *UpdateFeesProposal) Marshal() (dAtA []byte, err error)
- func (m *UpdateFeesProposal) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateFeesProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *UpdateFeesProposal) ProposalRoute() string
- func (p *UpdateFeesProposal) ProposalType() string
- func (*UpdateFeesProposal) ProtoMessage()
- func (m *UpdateFeesProposal) Reset()
- func (m *UpdateFeesProposal) Size() (n int)
- func (p UpdateFeesProposal) String() string
- func (m *UpdateFeesProposal) Unmarshal(dAtA []byte) error
- func (p *UpdateFeesProposal) ValidateBasic() error
- func (m *UpdateFeesProposal) XXX_DiscardUnknown()
- func (m *UpdateFeesProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateFeesProposal) XXX_Merge(src proto.Message)
- func (m *UpdateFeesProposal) XXX_Size() int
- func (m *UpdateFeesProposal) XXX_Unmarshal(b []byte) error
- type UpdateFeesProposalWithDeposit
- func (*UpdateFeesProposalWithDeposit) Descriptor() ([]byte, []int)
- func (m *UpdateFeesProposalWithDeposit) Marshal() (dAtA []byte, err error)
- func (m *UpdateFeesProposalWithDeposit) MarshalTo(dAtA []byte) (int, error)
- func (m *UpdateFeesProposalWithDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*UpdateFeesProposalWithDeposit) ProtoMessage()
- func (m *UpdateFeesProposalWithDeposit) Reset()
- func (m *UpdateFeesProposalWithDeposit) Size() (n int)
- func (m *UpdateFeesProposalWithDeposit) String() string
- func (m *UpdateFeesProposalWithDeposit) Unmarshal(dAtA []byte) error
- func (m *UpdateFeesProposalWithDeposit) XXX_DiscardUnknown()
- func (m *UpdateFeesProposalWithDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *UpdateFeesProposalWithDeposit) XXX_Merge(src proto.Message)
- func (m *UpdateFeesProposalWithDeposit) XXX_Size() int
- func (m *UpdateFeesProposalWithDeposit) XXX_Unmarshal(b []byte) error
Constants ¶
const ( // ModuleName is the name of the token module ModuleName = "fantoken" // StoreKey is the string store representation StoreKey string = ModuleName // RouterKey is the msg router key for the token module RouterKey string = ModuleName )
const ( // MsgRoute identifies transaction types MsgRoute = "fantoken" TypeMsgIssue = "issue" TypeMsgEdit = "edit" TypeMsgMint = "mint" TypeMsgBurn = "burn" TypeMsgSetAuthority = "set_authority" TypeMsgSetMinter = "set_minter" TypeMsgSetUri = "set_uri" )
const ( // MinimumSymbolLen is the minimum limitation for the length of the fantoken's symbol MinimumSymbolLen = 1 // MaximumSymbolLen is the maximum limitation for the length of the fantoken's symbol MaximumSymbolLen = 64 // MinimumNameLen is the minimum limitation for the length of the fantoken's name MinimumNameLen = 0 // MaximumNameLen is the maximum limitation for the length of the fantoken's name MaximumNameLen = 128 // MinimumUriLen is the minimum limitation for the length of the fantoken's uri MinimumUriLen = 0 // MaximumUriLen is the maximum limitation for the length of the fantoken's uri MaximumUriLen = 512 )
const FanTokenDecimal = 6
const ProposalTypeUpdateFees = "UpdateFantokenFeesProposal"
Variables ¶
var ( ErrInvalidName = sdkerrors.Register(ModuleName, 1, "invalid fantoken name") ErrInvalidDenom = sdkerrors.Register(ModuleName, 2, "invalid fantoken denom") ErrInvalidSymbol = sdkerrors.Register(ModuleName, 3, "invalid standard symbol") ErrInvalidMaxSupply = sdkerrors.Register(ModuleName, 4, "invalid fantoken maximum supply") ErrDenomAlreadyExists = sdkerrors.Register(ModuleName, 5, "denom already exists") ErrFanTokenNotExists = sdkerrors.Register(ModuleName, 6, "fantoken does not exist") ErrInvalidToAddress = sdkerrors.Register(ModuleName, 7, "the new owner must not be same as the original owner") ErrInvalidAuthority = sdkerrors.Register(ModuleName, 8, "invalid fantoken authority") ErrInvalidMinter = sdkerrors.Register(ModuleName, 9, "invalid fantoken minter") ErrInvalidRecipient = sdkerrors.Register(ModuleName, 10, "invalid fantoken recipient") ErrInvalidOwner = sdkerrors.Register(ModuleName, 11, "the owner is empty or invalid") ErrNotFoundTokenAmt = sdkerrors.Register(ModuleName, 12, "burned fantoken amount not found") ErrInvalidAmount = sdkerrors.Register(ModuleName, 13, "invalid amount") ErrInvalidUri = sdkerrors.Register(ModuleName, 14, "invalid uri length") )
fantoken module errors
var ( ErrInvalidLengthEvents = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvents = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthFantoken = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowFantoken = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupFantoken = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthGov = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGov = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group") )
var ( // PrefixFanTokenForDenom defines a denom prefix for the fan token PrefixFanTokenForDenom = []byte{0x01} // PrefixFanTokens defines a prefix for the fan tokens PrefixFanTokens = []byte{0x02} )
var ( KeyIssueFee = []byte("IssueFee") KeyMintFee = []byte("MintFee") KeyBurnFee = []byte("BurnFee") )
parameter keys
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = 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 ( 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)
)
Functions ¶
func GetFantokenDenom ¶
func GetFantokenDenom(height int64, minter sdk.AccAddress, symbol, name string) string
func KeyFanTokens ¶
func KeyFanTokens(owner sdk.AccAddress, denom string) []byte
KeyFanTokens returns the key of the specified owner and denom. Intended for querying all fan tokens of an owner
func NewUpdateFeesProposal ¶
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable returns the TypeTable for the token module
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
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)
func ValidateAmount ¶
ValidateAmount checks if the given amount is positive amount
func ValidateDenom ¶
ValidateDenom checks if the given denom is valid
func ValidateFees ¶
func ValidateName ¶
ValidateName verifies whether the given name is valid
func ValidateSymbol ¶
ValidateSymbol checks if the given symbol is valid
Types ¶
type AccountKeeper ¶
type AccountKeeper interface {
GetModuleAddress(name string) sdk.AccAddress
}
type BankKeeper ¶
type BankKeeper interface { MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error BurnCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error GetSupply(ctx sdk.Context, denom string) sdk.Coin SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error SendCoinsFromAccountToModule(ctx sdk.Context, senderAddr sdk.AccAddress, recipientModule string, amt sdk.Coins) error }
BankKeeper defines the expected bank keeper (noalias)
type DistrKeeper ¶
type EventBurn ¶
type EventBurn struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` Coin string `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin,omitempty"` }
func (*EventBurn) Descriptor ¶
func (*EventBurn) MarshalToSizedBuffer ¶
func (*EventBurn) ProtoMessage ¶
func (*EventBurn) ProtoMessage()
func (*EventBurn) XXX_DiscardUnknown ¶
func (m *EventBurn) XXX_DiscardUnknown()
func (*EventBurn) XXX_Marshal ¶
func (*EventBurn) XXX_Unmarshal ¶
type EventDisableMint ¶
type EventDisableMint struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
func (*EventDisableMint) Descriptor ¶
func (*EventDisableMint) Descriptor() ([]byte, []int)
func (*EventDisableMint) GetDenom ¶
func (m *EventDisableMint) GetDenom() string
func (*EventDisableMint) Marshal ¶
func (m *EventDisableMint) Marshal() (dAtA []byte, err error)
func (*EventDisableMint) MarshalToSizedBuffer ¶
func (m *EventDisableMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventDisableMint) ProtoMessage ¶
func (*EventDisableMint) ProtoMessage()
func (*EventDisableMint) Reset ¶
func (m *EventDisableMint) Reset()
func (*EventDisableMint) Size ¶
func (m *EventDisableMint) Size() (n int)
func (*EventDisableMint) String ¶
func (m *EventDisableMint) String() string
func (*EventDisableMint) Unmarshal ¶
func (m *EventDisableMint) Unmarshal(dAtA []byte) error
func (*EventDisableMint) XXX_DiscardUnknown ¶
func (m *EventDisableMint) XXX_DiscardUnknown()
func (*EventDisableMint) XXX_Marshal ¶
func (m *EventDisableMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventDisableMint) XXX_Merge ¶
func (m *EventDisableMint) XXX_Merge(src proto.Message)
func (*EventDisableMint) XXX_Size ¶
func (m *EventDisableMint) XXX_Size() int
func (*EventDisableMint) XXX_Unmarshal ¶
func (m *EventDisableMint) XXX_Unmarshal(b []byte) error
type EventIssue ¶
type EventIssue struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
func (*EventIssue) Descriptor ¶
func (*EventIssue) Descriptor() ([]byte, []int)
func (*EventIssue) GetDenom ¶
func (m *EventIssue) GetDenom() string
func (*EventIssue) Marshal ¶
func (m *EventIssue) Marshal() (dAtA []byte, err error)
func (*EventIssue) MarshalToSizedBuffer ¶
func (m *EventIssue) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventIssue) ProtoMessage ¶
func (*EventIssue) ProtoMessage()
func (*EventIssue) Reset ¶
func (m *EventIssue) Reset()
func (*EventIssue) Size ¶
func (m *EventIssue) Size() (n int)
func (*EventIssue) String ¶
func (m *EventIssue) String() string
func (*EventIssue) Unmarshal ¶
func (m *EventIssue) Unmarshal(dAtA []byte) error
func (*EventIssue) XXX_DiscardUnknown ¶
func (m *EventIssue) XXX_DiscardUnknown()
func (*EventIssue) XXX_Marshal ¶
func (m *EventIssue) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventIssue) XXX_Merge ¶
func (m *EventIssue) XXX_Merge(src proto.Message)
func (*EventIssue) XXX_Size ¶
func (m *EventIssue) XXX_Size() int
func (*EventIssue) XXX_Unmarshal ¶
func (m *EventIssue) XXX_Unmarshal(b []byte) error
type EventMint ¶
type EventMint struct { Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` Coin string `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin,omitempty"` }
func (*EventMint) Descriptor ¶
func (*EventMint) GetRecipient ¶
func (*EventMint) MarshalToSizedBuffer ¶
func (*EventMint) ProtoMessage ¶
func (*EventMint) ProtoMessage()
func (*EventMint) XXX_DiscardUnknown ¶
func (m *EventMint) XXX_DiscardUnknown()
func (*EventMint) XXX_Marshal ¶
func (*EventMint) XXX_Unmarshal ¶
type EventSetAuthority ¶
type EventSetAuthority struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` OldAuthority string `protobuf:"bytes,2,opt,name=old_authority,json=oldAuthority,proto3" json:"old_authority,omitempty" yaml:"old_authority"` NewAuthority string `protobuf:"bytes,3,opt,name=new_authority,json=newAuthority,proto3" json:"new_authority,omitempty" yaml:"new_authority"` }
func (*EventSetAuthority) Descriptor ¶
func (*EventSetAuthority) Descriptor() ([]byte, []int)
func (*EventSetAuthority) GetDenom ¶
func (m *EventSetAuthority) GetDenom() string
func (*EventSetAuthority) GetNewAuthority ¶
func (m *EventSetAuthority) GetNewAuthority() string
func (*EventSetAuthority) GetOldAuthority ¶
func (m *EventSetAuthority) GetOldAuthority() string
func (*EventSetAuthority) Marshal ¶
func (m *EventSetAuthority) Marshal() (dAtA []byte, err error)
func (*EventSetAuthority) MarshalTo ¶
func (m *EventSetAuthority) MarshalTo(dAtA []byte) (int, error)
func (*EventSetAuthority) MarshalToSizedBuffer ¶
func (m *EventSetAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSetAuthority) ProtoMessage ¶
func (*EventSetAuthority) ProtoMessage()
func (*EventSetAuthority) Reset ¶
func (m *EventSetAuthority) Reset()
func (*EventSetAuthority) Size ¶
func (m *EventSetAuthority) Size() (n int)
func (*EventSetAuthority) String ¶
func (m *EventSetAuthority) String() string
func (*EventSetAuthority) Unmarshal ¶
func (m *EventSetAuthority) Unmarshal(dAtA []byte) error
func (*EventSetAuthority) XXX_DiscardUnknown ¶
func (m *EventSetAuthority) XXX_DiscardUnknown()
func (*EventSetAuthority) XXX_Marshal ¶
func (m *EventSetAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSetAuthority) XXX_Merge ¶
func (m *EventSetAuthority) XXX_Merge(src proto.Message)
func (*EventSetAuthority) XXX_Size ¶
func (m *EventSetAuthority) XXX_Size() int
func (*EventSetAuthority) XXX_Unmarshal ¶
func (m *EventSetAuthority) XXX_Unmarshal(b []byte) error
type EventSetMinter ¶
type EventSetMinter struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` OldMinter string `protobuf:"bytes,2,opt,name=old_minter,json=oldMinter,proto3" json:"old_minter,omitempty" yaml:"old_minter"` NewMinter string `protobuf:"bytes,3,opt,name=new_minter,json=newMinter,proto3" json:"new_minter,omitempty" yaml:"new_minter"` }
func (*EventSetMinter) Descriptor ¶
func (*EventSetMinter) Descriptor() ([]byte, []int)
func (*EventSetMinter) GetDenom ¶
func (m *EventSetMinter) GetDenom() string
func (*EventSetMinter) GetNewMinter ¶
func (m *EventSetMinter) GetNewMinter() string
func (*EventSetMinter) GetOldMinter ¶
func (m *EventSetMinter) GetOldMinter() string
func (*EventSetMinter) Marshal ¶
func (m *EventSetMinter) Marshal() (dAtA []byte, err error)
func (*EventSetMinter) MarshalToSizedBuffer ¶
func (m *EventSetMinter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSetMinter) ProtoMessage ¶
func (*EventSetMinter) ProtoMessage()
func (*EventSetMinter) Reset ¶
func (m *EventSetMinter) Reset()
func (*EventSetMinter) Size ¶
func (m *EventSetMinter) Size() (n int)
func (*EventSetMinter) String ¶
func (m *EventSetMinter) String() string
func (*EventSetMinter) Unmarshal ¶
func (m *EventSetMinter) Unmarshal(dAtA []byte) error
func (*EventSetMinter) XXX_DiscardUnknown ¶
func (m *EventSetMinter) XXX_DiscardUnknown()
func (*EventSetMinter) XXX_Marshal ¶
func (m *EventSetMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSetMinter) XXX_Merge ¶
func (m *EventSetMinter) XXX_Merge(src proto.Message)
func (*EventSetMinter) XXX_Size ¶
func (m *EventSetMinter) XXX_Size() int
func (*EventSetMinter) XXX_Unmarshal ¶
func (m *EventSetMinter) XXX_Unmarshal(b []byte) error
type EventSetUri ¶
type EventSetUri struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
func (*EventSetUri) Descriptor ¶
func (*EventSetUri) Descriptor() ([]byte, []int)
func (*EventSetUri) GetDenom ¶
func (m *EventSetUri) GetDenom() string
func (*EventSetUri) Marshal ¶
func (m *EventSetUri) Marshal() (dAtA []byte, err error)
func (*EventSetUri) MarshalToSizedBuffer ¶
func (m *EventSetUri) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventSetUri) ProtoMessage ¶
func (*EventSetUri) ProtoMessage()
func (*EventSetUri) Reset ¶
func (m *EventSetUri) Reset()
func (*EventSetUri) Size ¶
func (m *EventSetUri) Size() (n int)
func (*EventSetUri) String ¶
func (m *EventSetUri) String() string
func (*EventSetUri) Unmarshal ¶
func (m *EventSetUri) Unmarshal(dAtA []byte) error
func (*EventSetUri) XXX_DiscardUnknown ¶
func (m *EventSetUri) XXX_DiscardUnknown()
func (*EventSetUri) XXX_Marshal ¶
func (m *EventSetUri) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventSetUri) XXX_Merge ¶
func (m *EventSetUri) XXX_Merge(src proto.Message)
func (*EventSetUri) XXX_Size ¶
func (m *EventSetUri) XXX_Size() int
func (*EventSetUri) XXX_Unmarshal ¶
func (m *EventSetUri) XXX_Unmarshal(b []byte) error
type FanToken ¶
type FanToken struct { // denom represents the string name of the given denom unit (e.g ft<hash>). Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` MaxSupply github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */ // sdk.AccAddress allowed to mint new fantoken Minter string `protobuf:"bytes,3,opt,name=minter,proto3" json:"minter,omitempty"` MetaData Metadata `protobuf:"bytes,4,opt,name=meta_data,json=metaData,proto3" json:"meta_data" yaml:"meta_data"` }
FanToken defines a standard for the fungible token
func NewFanToken ¶
func NewFanToken(name, symbol, uri string, maxSupply sdk.Int, minter, authority sdk.AccAddress, height int64) *FanToken
NewFanToken constructs a new FanToken instance
func (*FanToken) Descriptor ¶
func (FanToken) GetAuthority ¶
func (ft FanToken) GetAuthority() sdk.AccAddress
GetAuthority implements exported.FanTokenI
func (FanToken) GetMaxSupply ¶
GetMaxSupply implements exported.FanTokenI
func (FanToken) GetMetaData ¶
GetMetaData returns metadata of the fantoken
func (FanToken) GetMintable ¶
GetMintable implements exported.FanTokenI
func (FanToken) GetMinter ¶
func (ft FanToken) GetMinter() sdk.AccAddress
GetMinter implements exported.FanTokenI
func (*FanToken) MarshalToSizedBuffer ¶
func (*FanToken) ProtoMessage ¶
func (*FanToken) ProtoMessage()
func (FanToken) ValidateWithDenom ¶
func (*FanToken) XXX_DiscardUnknown ¶
func (m *FanToken) XXX_DiscardUnknown()
func (*FanToken) XXX_Marshal ¶
func (*FanToken) XXX_Unmarshal ¶
type GenesisState ¶
type GenesisState struct { Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` FanTokens []FanToken `protobuf:"bytes,2,rep,name=fan_tokens,json=fanTokens,proto3" json:"fan_tokens"` }
GenesisState defines the fantoken module's genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState returns the default genesis state for testing
func NewGenesisState ¶
func NewGenesisState(params Params, fantokens []FanToken) GenesisState
NewGenesisState creates a new genesis state.
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetFanTokens ¶
func (m *GenesisState) GetFanTokens() []FanToken
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
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 validates the provided token genesis state to ensure the expected invariants holds.
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 Metadata ¶
type Metadata struct { // name defines the name of the fantoken (eg: Kitty Punk) Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // symbol is the token symbol usually shown on exchanges (eg: KITTY) Symbol string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"` // URI to a document (on or off-chain) that contains additional // information.Optional. URI string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` // sdk.AccAddress allowed to set a new uri Authority string `protobuf:"bytes,4,opt,name=authority,proto3" json:"authority,omitempty"` }
func NewMetadata ¶
func NewMetadata(name, symbol, uri string, authority sdk.AccAddress) Metadata
NewMetadata constructs a new FanToken Metadata instance
func (*Metadata) Descriptor ¶
func (*Metadata) MarshalToSizedBuffer ¶
func (*Metadata) ProtoMessage ¶
func (*Metadata) ProtoMessage()
func (*Metadata) XXX_DiscardUnknown ¶
func (m *Metadata) XXX_DiscardUnknown()
func (*Metadata) XXX_Marshal ¶
func (*Metadata) XXX_Unmarshal ¶
type MsgBurn ¶
type MsgBurn struct { // coin mean the amount + denom, eg: 10000ftFADJID34MCDM Coin types.Coin `protobuf:"bytes,1,opt,name=coin,proto3" json:"coin" yaml:"coin"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` }
MsgBurn defines a message for burning some fan tokens
func NewMsgBurn ¶
NewMsgBurn creates a MsgBurn
func (*MsgBurn) Descriptor ¶
func (MsgBurn) GetSigners ¶
func (msg MsgBurn) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgBurn) MarshalToSizedBuffer ¶
func (*MsgBurn) ProtoMessage ¶
func (*MsgBurn) ProtoMessage()
func (MsgBurn) ValidateBasic ¶
ValidateBasic implements Msg
func (*MsgBurn) XXX_DiscardUnknown ¶
func (m *MsgBurn) XXX_DiscardUnknown()
func (*MsgBurn) XXX_Marshal ¶
func (*MsgBurn) XXX_Unmarshal ¶
type MsgBurnResponse ¶
type MsgBurnResponse struct { }
MsgBurnResponse defines the MsgBurn response type
func (*MsgBurnResponse) Descriptor ¶
func (*MsgBurnResponse) Descriptor() ([]byte, []int)
func (*MsgBurnResponse) Marshal ¶
func (m *MsgBurnResponse) Marshal() (dAtA []byte, err error)
func (*MsgBurnResponse) MarshalToSizedBuffer ¶
func (m *MsgBurnResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgBurnResponse) ProtoMessage ¶
func (*MsgBurnResponse) ProtoMessage()
func (*MsgBurnResponse) Reset ¶
func (m *MsgBurnResponse) Reset()
func (*MsgBurnResponse) Size ¶
func (m *MsgBurnResponse) Size() (n int)
func (*MsgBurnResponse) String ¶
func (m *MsgBurnResponse) String() string
func (*MsgBurnResponse) Unmarshal ¶
func (m *MsgBurnResponse) Unmarshal(dAtA []byte) error
func (*MsgBurnResponse) XXX_DiscardUnknown ¶
func (m *MsgBurnResponse) XXX_DiscardUnknown()
func (*MsgBurnResponse) XXX_Marshal ¶
func (m *MsgBurnResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgBurnResponse) XXX_Merge ¶
func (m *MsgBurnResponse) XXX_Merge(src proto.Message)
func (*MsgBurnResponse) XXX_Size ¶
func (m *MsgBurnResponse) XXX_Size() int
func (*MsgBurnResponse) XXX_Unmarshal ¶
func (m *MsgBurnResponse) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface { // Issue defines a method for issuing a new fan token Issue(ctx context.Context, in *MsgIssue, opts ...grpc.CallOption) (*MsgIssueResponse, error) // Mint defines a method for minting some fan tokens Mint(ctx context.Context, in *MsgMint, opts ...grpc.CallOption) (*MsgMintResponse, error) // Burn defines a method for burning some fan tokens Burn(ctx context.Context, in *MsgBurn, opts ...grpc.CallOption) (*MsgBurnResponse, error) // DisableMint defines a method for disable the mint function DisableMint(ctx context.Context, in *MsgDisableMint, opts ...grpc.CallOption) (*MsgDisableMintResponse, error) SetMinter(ctx context.Context, in *MsgSetMinter, opts ...grpc.CallOption) (*MsgSetMinterResponse, error) SetAuthority(ctx context.Context, in *MsgSetAuthority, opts ...grpc.CallOption) (*MsgSetAuthorityResponse, error) SetUri(ctx context.Context, in *MsgSetUri, opts ...grpc.CallOption) (*MsgSetUriResponse, 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 MsgDisableMint ¶
type MsgDisableMint struct { Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` Minter string `protobuf:"bytes,2,opt,name=minter,proto3" json:"minter,omitempty"` }
MsgDisableMint defines a message for disable the mint function
func NewMsgDisableMint ¶
func NewMsgDisableMint(denom string, minter string) *MsgDisableMint
NewMsgDisableMint creates a MsgDisableMint
func (*MsgDisableMint) Descriptor ¶
func (*MsgDisableMint) Descriptor() ([]byte, []int)
func (MsgDisableMint) GetSignBytes ¶
func (msg MsgDisableMint) GetSignBytes() []byte
GetSignBytes implements Msg
func (MsgDisableMint) GetSigners ¶
func (msg MsgDisableMint) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgDisableMint) Marshal ¶
func (m *MsgDisableMint) Marshal() (dAtA []byte, err error)
func (*MsgDisableMint) MarshalToSizedBuffer ¶
func (m *MsgDisableMint) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDisableMint) ProtoMessage ¶
func (*MsgDisableMint) ProtoMessage()
func (*MsgDisableMint) Reset ¶
func (m *MsgDisableMint) Reset()
func (*MsgDisableMint) Size ¶
func (m *MsgDisableMint) Size() (n int)
func (*MsgDisableMint) String ¶
func (m *MsgDisableMint) String() string
func (*MsgDisableMint) Unmarshal ¶
func (m *MsgDisableMint) Unmarshal(dAtA []byte) error
func (MsgDisableMint) ValidateBasic ¶
func (msg MsgDisableMint) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgDisableMint) XXX_DiscardUnknown ¶
func (m *MsgDisableMint) XXX_DiscardUnknown()
func (*MsgDisableMint) XXX_Marshal ¶
func (m *MsgDisableMint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDisableMint) XXX_Merge ¶
func (m *MsgDisableMint) XXX_Merge(src proto.Message)
func (*MsgDisableMint) XXX_Size ¶
func (m *MsgDisableMint) XXX_Size() int
func (*MsgDisableMint) XXX_Unmarshal ¶
func (m *MsgDisableMint) XXX_Unmarshal(b []byte) error
type MsgDisableMintResponse ¶
type MsgDisableMintResponse struct { }
MsgDisableMintResponse defines the MsgDisableMint response type
func (*MsgDisableMintResponse) Descriptor ¶
func (*MsgDisableMintResponse) Descriptor() ([]byte, []int)
func (*MsgDisableMintResponse) Marshal ¶
func (m *MsgDisableMintResponse) Marshal() (dAtA []byte, err error)
func (*MsgDisableMintResponse) MarshalTo ¶
func (m *MsgDisableMintResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDisableMintResponse) MarshalToSizedBuffer ¶
func (m *MsgDisableMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDisableMintResponse) ProtoMessage ¶
func (*MsgDisableMintResponse) ProtoMessage()
func (*MsgDisableMintResponse) Reset ¶
func (m *MsgDisableMintResponse) Reset()
func (*MsgDisableMintResponse) Size ¶
func (m *MsgDisableMintResponse) Size() (n int)
func (*MsgDisableMintResponse) String ¶
func (m *MsgDisableMintResponse) String() string
func (*MsgDisableMintResponse) Unmarshal ¶
func (m *MsgDisableMintResponse) Unmarshal(dAtA []byte) error
func (*MsgDisableMintResponse) XXX_DiscardUnknown ¶
func (m *MsgDisableMintResponse) XXX_DiscardUnknown()
func (*MsgDisableMintResponse) XXX_Marshal ¶
func (m *MsgDisableMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDisableMintResponse) XXX_Merge ¶
func (m *MsgDisableMintResponse) XXX_Merge(src proto.Message)
func (*MsgDisableMintResponse) XXX_Size ¶
func (m *MsgDisableMintResponse) XXX_Size() int
func (*MsgDisableMintResponse) XXX_Unmarshal ¶
func (m *MsgDisableMintResponse) XXX_Unmarshal(b []byte) error
type MsgIssue ¶
type MsgIssue struct { // symbol which corresponds to the symbol of the fan token. It is a string and // cannot change for the whole life of the fan token Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"` // name which corresponds to the name of the fan token. It is a string and // cannot change for the whole life of the fan token Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // max_supply that represents the maximum number of possible mintable tokens. // It is an integer number, expressed in micro unit 10^6 MaxSupply github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */ // authority which is who can set a new uri metadata Authority string `protobuf:"bytes,4,opt,name=authority,proto3" json:"authority,omitempty"` // minter who is who can mint new fantoken and disable the minter process, the // minter key also pay the gas fee Minter string `protobuf:"bytes,5,opt,name=minter,proto3" json:"minter,omitempty"` // URI which is the current uri of the fan token. It is a string can change // during the fan token lifecycle thanks to the MsgEdit URI string `protobuf:"bytes,6,opt,name=uri,proto3" json:"uri,omitempty"` }
MsgIssue defines a message for issuing a new fan token
func NewMsgIssue ¶
NewMsgIssue - construct token issue msg.
func (*MsgIssue) Descriptor ¶
func (MsgIssue) GetSignBytes ¶
GetSignBytes Implements Msg.
func (MsgIssue) GetSigners ¶
func (msg MsgIssue) GetSigners() []sdk.AccAddress
GetSigners Implements Msg.
func (*MsgIssue) MarshalToSizedBuffer ¶
func (*MsgIssue) ProtoMessage ¶
func (*MsgIssue) ProtoMessage()
func (MsgIssue) ValidateBasic ¶
ValidateBasic Implements Msg.
func (*MsgIssue) XXX_DiscardUnknown ¶
func (m *MsgIssue) XXX_DiscardUnknown()
func (*MsgIssue) XXX_Marshal ¶
func (*MsgIssue) XXX_Unmarshal ¶
type MsgIssueResponse ¶
type MsgIssueResponse struct { }
MsgIssueResponse defines the MsgIssue response type
func (*MsgIssueResponse) Descriptor ¶
func (*MsgIssueResponse) Descriptor() ([]byte, []int)
func (*MsgIssueResponse) Marshal ¶
func (m *MsgIssueResponse) Marshal() (dAtA []byte, err error)
func (*MsgIssueResponse) MarshalToSizedBuffer ¶
func (m *MsgIssueResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgIssueResponse) ProtoMessage ¶
func (*MsgIssueResponse) ProtoMessage()
func (*MsgIssueResponse) Reset ¶
func (m *MsgIssueResponse) Reset()
func (*MsgIssueResponse) Size ¶
func (m *MsgIssueResponse) Size() (n int)
func (*MsgIssueResponse) String ¶
func (m *MsgIssueResponse) String() string
func (*MsgIssueResponse) Unmarshal ¶
func (m *MsgIssueResponse) Unmarshal(dAtA []byte) error
func (*MsgIssueResponse) XXX_DiscardUnknown ¶
func (m *MsgIssueResponse) XXX_DiscardUnknown()
func (*MsgIssueResponse) XXX_Marshal ¶
func (m *MsgIssueResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgIssueResponse) XXX_Merge ¶
func (m *MsgIssueResponse) XXX_Merge(src proto.Message)
func (*MsgIssueResponse) XXX_Size ¶
func (m *MsgIssueResponse) XXX_Size() int
func (*MsgIssueResponse) XXX_Unmarshal ¶
func (m *MsgIssueResponse) XXX_Unmarshal(b []byte) error
type MsgMint ¶
type MsgMint struct { Recipient string `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"` // coin mean the amount + denom, eg: 10000ftFADJID34MCDM Coin types.Coin `protobuf:"bytes,2,opt,name=coin,proto3" json:"coin" yaml:"coin"` Minter string `protobuf:"bytes,3,opt,name=minter,proto3" json:"minter,omitempty"` }
MsgMint defines a message for minting a new fan token
func NewMsgMint ¶
NewMsgMint creates a MsgMint
func (*MsgMint) Descriptor ¶
func (MsgMint) GetSigners ¶
func (msg MsgMint) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgMint) MarshalToSizedBuffer ¶
func (*MsgMint) ProtoMessage ¶
func (*MsgMint) ProtoMessage()
func (MsgMint) ValidateBasic ¶
ValidateBasic implements Msg
func (*MsgMint) XXX_DiscardUnknown ¶
func (m *MsgMint) XXX_DiscardUnknown()
func (*MsgMint) XXX_Marshal ¶
func (*MsgMint) XXX_Unmarshal ¶
type MsgMintResponse ¶
type MsgMintResponse struct { }
MsgMintResponse defines the MsgMint response type
func (*MsgMintResponse) Descriptor ¶
func (*MsgMintResponse) Descriptor() ([]byte, []int)
func (*MsgMintResponse) Marshal ¶
func (m *MsgMintResponse) Marshal() (dAtA []byte, err error)
func (*MsgMintResponse) MarshalToSizedBuffer ¶
func (m *MsgMintResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMintResponse) ProtoMessage ¶
func (*MsgMintResponse) ProtoMessage()
func (*MsgMintResponse) Reset ¶
func (m *MsgMintResponse) Reset()
func (*MsgMintResponse) Size ¶
func (m *MsgMintResponse) Size() (n int)
func (*MsgMintResponse) String ¶
func (m *MsgMintResponse) String() string
func (*MsgMintResponse) Unmarshal ¶
func (m *MsgMintResponse) Unmarshal(dAtA []byte) error
func (*MsgMintResponse) XXX_DiscardUnknown ¶
func (m *MsgMintResponse) XXX_DiscardUnknown()
func (*MsgMintResponse) XXX_Marshal ¶
func (m *MsgMintResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMintResponse) XXX_Merge ¶
func (m *MsgMintResponse) XXX_Merge(src proto.Message)
func (*MsgMintResponse) XXX_Size ¶
func (m *MsgMintResponse) XXX_Size() int
func (*MsgMintResponse) XXX_Unmarshal ¶
func (m *MsgMintResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // Issue defines a method for issuing a new fan token Issue(context.Context, *MsgIssue) (*MsgIssueResponse, error) // Mint defines a method for minting some fan tokens Mint(context.Context, *MsgMint) (*MsgMintResponse, error) // Burn defines a method for burning some fan tokens Burn(context.Context, *MsgBurn) (*MsgBurnResponse, error) // DisableMint defines a method for disable the mint function DisableMint(context.Context, *MsgDisableMint) (*MsgDisableMintResponse, error) SetMinter(context.Context, *MsgSetMinter) (*MsgSetMinterResponse, error) SetAuthority(context.Context, *MsgSetAuthority) (*MsgSetAuthorityResponse, error) SetUri(context.Context, *MsgSetUri) (*MsgSetUriResponse, error) }
MsgServer is the server API for Msg service.
type MsgSetAuthority ¶
type MsgSetAuthority struct { // denom the fan token denom Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` // old_authority, the actual metadata authority OldAuthority string `protobuf:"bytes,2,opt,name=old_authority,json=oldAuthority,proto3" json:"old_authority,omitempty" yaml:"old_authority"` // new_authority, the new fan token metadata authority NewAuthority string `protobuf:"bytes,3,opt,name=new_authority,json=newAuthority,proto3" json:"new_authority,omitempty" yaml:"new_authority"` }
MsgSetAuthority defines a message for changing the fan token minter address
func NewMsgSetAuthority ¶
func NewMsgSetAuthority(denom, oldAuthority, newAuthority string) *MsgSetAuthority
NewMsgSetAuthority return a instance of MsgSetAuthority
func (*MsgSetAuthority) Descriptor ¶
func (*MsgSetAuthority) Descriptor() ([]byte, []int)
func (MsgSetAuthority) GetSignBytes ¶
func (msg MsgSetAuthority) GetSignBytes() []byte
GetSignBytes implements Msg
func (MsgSetAuthority) GetSigners ¶
func (msg MsgSetAuthority) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgSetAuthority) Marshal ¶
func (m *MsgSetAuthority) Marshal() (dAtA []byte, err error)
func (*MsgSetAuthority) MarshalToSizedBuffer ¶
func (m *MsgSetAuthority) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetAuthority) ProtoMessage ¶
func (*MsgSetAuthority) ProtoMessage()
func (*MsgSetAuthority) Reset ¶
func (m *MsgSetAuthority) Reset()
func (*MsgSetAuthority) Size ¶
func (m *MsgSetAuthority) Size() (n int)
func (*MsgSetAuthority) String ¶
func (m *MsgSetAuthority) String() string
func (*MsgSetAuthority) Unmarshal ¶
func (m *MsgSetAuthority) Unmarshal(dAtA []byte) error
func (MsgSetAuthority) ValidateBasic ¶
func (msg MsgSetAuthority) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgSetAuthority) XXX_DiscardUnknown ¶
func (m *MsgSetAuthority) XXX_DiscardUnknown()
func (*MsgSetAuthority) XXX_Marshal ¶
func (m *MsgSetAuthority) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetAuthority) XXX_Merge ¶
func (m *MsgSetAuthority) XXX_Merge(src proto.Message)
func (*MsgSetAuthority) XXX_Size ¶
func (m *MsgSetAuthority) XXX_Size() int
func (*MsgSetAuthority) XXX_Unmarshal ¶
func (m *MsgSetAuthority) XXX_Unmarshal(b []byte) error
type MsgSetAuthorityResponse ¶
type MsgSetAuthorityResponse struct { }
MsgSetAuthorityResponse defines the MsgTransferAuthority response type
func (*MsgSetAuthorityResponse) Descriptor ¶
func (*MsgSetAuthorityResponse) Descriptor() ([]byte, []int)
func (*MsgSetAuthorityResponse) Marshal ¶
func (m *MsgSetAuthorityResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetAuthorityResponse) MarshalTo ¶
func (m *MsgSetAuthorityResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetAuthorityResponse) MarshalToSizedBuffer ¶
func (m *MsgSetAuthorityResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetAuthorityResponse) ProtoMessage ¶
func (*MsgSetAuthorityResponse) ProtoMessage()
func (*MsgSetAuthorityResponse) Reset ¶
func (m *MsgSetAuthorityResponse) Reset()
func (*MsgSetAuthorityResponse) Size ¶
func (m *MsgSetAuthorityResponse) Size() (n int)
func (*MsgSetAuthorityResponse) String ¶
func (m *MsgSetAuthorityResponse) String() string
func (*MsgSetAuthorityResponse) Unmarshal ¶
func (m *MsgSetAuthorityResponse) Unmarshal(dAtA []byte) error
func (*MsgSetAuthorityResponse) XXX_DiscardUnknown ¶
func (m *MsgSetAuthorityResponse) XXX_DiscardUnknown()
func (*MsgSetAuthorityResponse) XXX_Marshal ¶
func (m *MsgSetAuthorityResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetAuthorityResponse) XXX_Merge ¶
func (m *MsgSetAuthorityResponse) XXX_Merge(src proto.Message)
func (*MsgSetAuthorityResponse) XXX_Size ¶
func (m *MsgSetAuthorityResponse) XXX_Size() int
func (*MsgSetAuthorityResponse) XXX_Unmarshal ¶
func (m *MsgSetAuthorityResponse) XXX_Unmarshal(b []byte) error
type MsgSetMinter ¶
type MsgSetMinter struct { // denom the fan token denom Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"` // old_minter, the actual minter OldMinter string `protobuf:"bytes,2,opt,name=old_minter,json=oldMinter,proto3" json:"old_minter,omitempty" yaml:"old_minter"` // new_minter, the new fan token minter NewMinter string `protobuf:"bytes,3,opt,name=new_minter,json=newMinter,proto3" json:"new_minter,omitempty" yaml:"new_minter"` }
MsgSetMinter defines a message for changing the fan token minter address
func NewMsgSetMinter ¶
func NewMsgSetMinter(denom, oldMinter, newMinter string) *MsgSetMinter
NewMsgSetMinter return a instance of MsgSetMinter
func (*MsgSetMinter) Descriptor ¶
func (*MsgSetMinter) Descriptor() ([]byte, []int)
func (MsgSetMinter) GetSignBytes ¶
func (msg MsgSetMinter) GetSignBytes() []byte
GetSignBytes implements Msg
func (MsgSetMinter) GetSigners ¶
func (msg MsgSetMinter) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgSetMinter) Marshal ¶
func (m *MsgSetMinter) Marshal() (dAtA []byte, err error)
func (*MsgSetMinter) MarshalToSizedBuffer ¶
func (m *MsgSetMinter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetMinter) ProtoMessage ¶
func (*MsgSetMinter) ProtoMessage()
func (*MsgSetMinter) Reset ¶
func (m *MsgSetMinter) Reset()
func (*MsgSetMinter) Size ¶
func (m *MsgSetMinter) Size() (n int)
func (*MsgSetMinter) String ¶
func (m *MsgSetMinter) String() string
func (*MsgSetMinter) Unmarshal ¶
func (m *MsgSetMinter) Unmarshal(dAtA []byte) error
func (MsgSetMinter) ValidateBasic ¶
func (msg MsgSetMinter) ValidateBasic() error
ValidateBasic implements Msg
func (*MsgSetMinter) XXX_DiscardUnknown ¶
func (m *MsgSetMinter) XXX_DiscardUnknown()
func (*MsgSetMinter) XXX_Marshal ¶
func (m *MsgSetMinter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetMinter) XXX_Merge ¶
func (m *MsgSetMinter) XXX_Merge(src proto.Message)
func (*MsgSetMinter) XXX_Size ¶
func (m *MsgSetMinter) XXX_Size() int
func (*MsgSetMinter) XXX_Unmarshal ¶
func (m *MsgSetMinter) XXX_Unmarshal(b []byte) error
type MsgSetMinterResponse ¶
type MsgSetMinterResponse struct { }
MsgSetMinterResponse defines the MsgTransferAuthority response type
func (*MsgSetMinterResponse) Descriptor ¶
func (*MsgSetMinterResponse) Descriptor() ([]byte, []int)
func (*MsgSetMinterResponse) Marshal ¶
func (m *MsgSetMinterResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetMinterResponse) MarshalTo ¶
func (m *MsgSetMinterResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetMinterResponse) MarshalToSizedBuffer ¶
func (m *MsgSetMinterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetMinterResponse) ProtoMessage ¶
func (*MsgSetMinterResponse) ProtoMessage()
func (*MsgSetMinterResponse) Reset ¶
func (m *MsgSetMinterResponse) Reset()
func (*MsgSetMinterResponse) Size ¶
func (m *MsgSetMinterResponse) Size() (n int)
func (*MsgSetMinterResponse) String ¶
func (m *MsgSetMinterResponse) String() string
func (*MsgSetMinterResponse) Unmarshal ¶
func (m *MsgSetMinterResponse) Unmarshal(dAtA []byte) error
func (*MsgSetMinterResponse) XXX_DiscardUnknown ¶
func (m *MsgSetMinterResponse) XXX_DiscardUnknown()
func (*MsgSetMinterResponse) XXX_Marshal ¶
func (m *MsgSetMinterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetMinterResponse) XXX_Merge ¶
func (m *MsgSetMinterResponse) XXX_Merge(src proto.Message)
func (*MsgSetMinterResponse) XXX_Size ¶
func (m *MsgSetMinterResponse) XXX_Size() int
func (*MsgSetMinterResponse) XXX_Unmarshal ¶
func (m *MsgSetMinterResponse) XXX_Unmarshal(b []byte) error
type MsgSetUri ¶
type MsgSetUri struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` Denom string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"` URI string `protobuf:"bytes,3,opt,name=uri,proto3" json:"uri,omitempty"` }
func NewMsgSetUri ¶
NewMsgSetUri creates a MsgSetUri
func (*MsgSetUri) Descriptor ¶
func (MsgSetUri) GetSignBytes ¶
GetSignBytes implements Msg
func (MsgSetUri) GetSigners ¶
func (msg MsgSetUri) GetSigners() []sdk.AccAddress
GetSigners implements Msg
func (*MsgSetUri) MarshalToSizedBuffer ¶
func (*MsgSetUri) ProtoMessage ¶
func (*MsgSetUri) ProtoMessage()
func (MsgSetUri) ValidateBasic ¶
ValidateBasic implements Msg
func (*MsgSetUri) XXX_DiscardUnknown ¶
func (m *MsgSetUri) XXX_DiscardUnknown()
func (*MsgSetUri) XXX_Marshal ¶
func (*MsgSetUri) XXX_Unmarshal ¶
type MsgSetUriResponse ¶
type MsgSetUriResponse struct { }
func (*MsgSetUriResponse) Descriptor ¶
func (*MsgSetUriResponse) Descriptor() ([]byte, []int)
func (*MsgSetUriResponse) Marshal ¶
func (m *MsgSetUriResponse) Marshal() (dAtA []byte, err error)
func (*MsgSetUriResponse) MarshalTo ¶
func (m *MsgSetUriResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSetUriResponse) MarshalToSizedBuffer ¶
func (m *MsgSetUriResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSetUriResponse) ProtoMessage ¶
func (*MsgSetUriResponse) ProtoMessage()
func (*MsgSetUriResponse) Reset ¶
func (m *MsgSetUriResponse) Reset()
func (*MsgSetUriResponse) Size ¶
func (m *MsgSetUriResponse) Size() (n int)
func (*MsgSetUriResponse) String ¶
func (m *MsgSetUriResponse) String() string
func (*MsgSetUriResponse) Unmarshal ¶
func (m *MsgSetUriResponse) Unmarshal(dAtA []byte) error
func (*MsgSetUriResponse) XXX_DiscardUnknown ¶
func (m *MsgSetUriResponse) XXX_DiscardUnknown()
func (*MsgSetUriResponse) XXX_Marshal ¶
func (m *MsgSetUriResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSetUriResponse) XXX_Merge ¶
func (m *MsgSetUriResponse) XXX_Merge(src proto.Message)
func (*MsgSetUriResponse) XXX_Size ¶
func (m *MsgSetUriResponse) XXX_Size() int
func (*MsgSetUriResponse) XXX_Unmarshal ¶
func (m *MsgSetUriResponse) XXX_Unmarshal(b []byte) error
type ParamSubspace ¶
type ParamSubspace interface { GetParamSet(ctx sdk.Context, ps paramstypes.ParamSet) SetParamSet(ctx sdk.Context, ps paramstypes.ParamSet) HasKeyTable() bool WithKeyTable(table paramstypes.KeyTable) paramstypes.Subspace }
ParamSubspace defines the expected Subspace interface for parameters (noalias)
type Params ¶
type Params struct { IssueFee types.Coin `protobuf:"bytes,1,opt,name=issue_fee,json=issueFee,proto3" json:"issue_fee" yaml:"issue_fee"` MintFee types.Coin `protobuf:"bytes,2,opt,name=mint_fee,json=mintFee,proto3" json:"mint_fee" yaml:"mint_fee"` BurnFee types.Coin `protobuf:"bytes,3,opt,name=burn_fee,json=burnFee,proto3" json:"burn_fee" yaml:"burn_fee"` }
Params defines fantoken module's parameters
func (*Params) Descriptor ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // FanToken returns fantoken with fantoken name FanToken(ctx context.Context, in *QueryFanTokenRequest, opts ...grpc.CallOption) (*QueryFanTokenResponse, error) // FanTokens returns the fantoken list FanTokens(ctx context.Context, in *QueryFanTokensRequest, opts ...grpc.CallOption) (*QueryFanTokensResponse, error) // Params queries the fantoken parameters Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 QueryFanTokenRequest ¶
type QueryFanTokenRequest struct {
Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}
QueryFanTokenRequest is request type for the Query/FanToken RPC method
func (*QueryFanTokenRequest) Descriptor ¶
func (*QueryFanTokenRequest) Descriptor() ([]byte, []int)
func (*QueryFanTokenRequest) GetDenom ¶
func (m *QueryFanTokenRequest) GetDenom() string
func (*QueryFanTokenRequest) Marshal ¶
func (m *QueryFanTokenRequest) Marshal() (dAtA []byte, err error)
func (*QueryFanTokenRequest) MarshalTo ¶
func (m *QueryFanTokenRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFanTokenRequest) MarshalToSizedBuffer ¶
func (m *QueryFanTokenRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFanTokenRequest) ProtoMessage ¶
func (*QueryFanTokenRequest) ProtoMessage()
func (*QueryFanTokenRequest) Reset ¶
func (m *QueryFanTokenRequest) Reset()
func (*QueryFanTokenRequest) Size ¶
func (m *QueryFanTokenRequest) Size() (n int)
func (*QueryFanTokenRequest) String ¶
func (m *QueryFanTokenRequest) String() string
func (*QueryFanTokenRequest) Unmarshal ¶
func (m *QueryFanTokenRequest) Unmarshal(dAtA []byte) error
func (*QueryFanTokenRequest) XXX_DiscardUnknown ¶
func (m *QueryFanTokenRequest) XXX_DiscardUnknown()
func (*QueryFanTokenRequest) XXX_Marshal ¶
func (m *QueryFanTokenRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFanTokenRequest) XXX_Merge ¶
func (m *QueryFanTokenRequest) XXX_Merge(src proto.Message)
func (*QueryFanTokenRequest) XXX_Size ¶
func (m *QueryFanTokenRequest) XXX_Size() int
func (*QueryFanTokenRequest) XXX_Unmarshal ¶
func (m *QueryFanTokenRequest) XXX_Unmarshal(b []byte) error
type QueryFanTokenResponse ¶
type QueryFanTokenResponse struct {
Fantoken *FanToken `protobuf:"bytes,1,opt,name=fantoken,proto3" json:"fantoken,omitempty"`
}
QueryFanTokenResponse is response type for the Query/FanToken RPC method
func (*QueryFanTokenResponse) Descriptor ¶
func (*QueryFanTokenResponse) Descriptor() ([]byte, []int)
func (*QueryFanTokenResponse) GetFantoken ¶
func (m *QueryFanTokenResponse) GetFantoken() *FanToken
func (*QueryFanTokenResponse) Marshal ¶
func (m *QueryFanTokenResponse) Marshal() (dAtA []byte, err error)
func (*QueryFanTokenResponse) MarshalTo ¶
func (m *QueryFanTokenResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryFanTokenResponse) MarshalToSizedBuffer ¶
func (m *QueryFanTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFanTokenResponse) ProtoMessage ¶
func (*QueryFanTokenResponse) ProtoMessage()
func (*QueryFanTokenResponse) Reset ¶
func (m *QueryFanTokenResponse) Reset()
func (*QueryFanTokenResponse) Size ¶
func (m *QueryFanTokenResponse) Size() (n int)
func (*QueryFanTokenResponse) String ¶
func (m *QueryFanTokenResponse) String() string
func (*QueryFanTokenResponse) Unmarshal ¶
func (m *QueryFanTokenResponse) Unmarshal(dAtA []byte) error
func (*QueryFanTokenResponse) XXX_DiscardUnknown ¶
func (m *QueryFanTokenResponse) XXX_DiscardUnknown()
func (*QueryFanTokenResponse) XXX_Marshal ¶
func (m *QueryFanTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFanTokenResponse) XXX_Merge ¶
func (m *QueryFanTokenResponse) XXX_Merge(src proto.Message)
func (*QueryFanTokenResponse) XXX_Size ¶
func (m *QueryFanTokenResponse) XXX_Size() int
func (*QueryFanTokenResponse) XXX_Unmarshal ¶
func (m *QueryFanTokenResponse) XXX_Unmarshal(b []byte) error
type QueryFanTokensRequest ¶
type QueryFanTokensRequest struct { Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // pagination defines an optional pagination for the request. Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryFanTokensRequest is request type for the Query/FanTokens RPC method
func (*QueryFanTokensRequest) Descriptor ¶
func (*QueryFanTokensRequest) Descriptor() ([]byte, []int)
func (*QueryFanTokensRequest) GetAuthority ¶
func (m *QueryFanTokensRequest) GetAuthority() string
func (*QueryFanTokensRequest) GetPagination ¶
func (m *QueryFanTokensRequest) GetPagination() *query.PageRequest
func (*QueryFanTokensRequest) Marshal ¶
func (m *QueryFanTokensRequest) Marshal() (dAtA []byte, err error)
func (*QueryFanTokensRequest) MarshalTo ¶
func (m *QueryFanTokensRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryFanTokensRequest) MarshalToSizedBuffer ¶
func (m *QueryFanTokensRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFanTokensRequest) ProtoMessage ¶
func (*QueryFanTokensRequest) ProtoMessage()
func (*QueryFanTokensRequest) Reset ¶
func (m *QueryFanTokensRequest) Reset()
func (*QueryFanTokensRequest) Size ¶
func (m *QueryFanTokensRequest) Size() (n int)
func (*QueryFanTokensRequest) String ¶
func (m *QueryFanTokensRequest) String() string
func (*QueryFanTokensRequest) Unmarshal ¶
func (m *QueryFanTokensRequest) Unmarshal(dAtA []byte) error
func (*QueryFanTokensRequest) XXX_DiscardUnknown ¶
func (m *QueryFanTokensRequest) XXX_DiscardUnknown()
func (*QueryFanTokensRequest) XXX_Marshal ¶
func (m *QueryFanTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFanTokensRequest) XXX_Merge ¶
func (m *QueryFanTokensRequest) XXX_Merge(src proto.Message)
func (*QueryFanTokensRequest) XXX_Size ¶
func (m *QueryFanTokensRequest) XXX_Size() int
func (*QueryFanTokensRequest) XXX_Unmarshal ¶
func (m *QueryFanTokensRequest) XXX_Unmarshal(b []byte) error
type QueryFanTokensResponse ¶
type QueryFanTokensResponse struct { Fantokens []*FanToken `protobuf:"bytes,1,rep,name=fantokens,proto3" json:"fantokens,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
QueryFanTokensResponse is response type for the Query/FanTokens RPC method
func (*QueryFanTokensResponse) Descriptor ¶
func (*QueryFanTokensResponse) Descriptor() ([]byte, []int)
func (*QueryFanTokensResponse) GetFantokens ¶
func (m *QueryFanTokensResponse) GetFantokens() []*FanToken
func (*QueryFanTokensResponse) GetPagination ¶
func (m *QueryFanTokensResponse) GetPagination() *query.PageResponse
func (*QueryFanTokensResponse) Marshal ¶
func (m *QueryFanTokensResponse) Marshal() (dAtA []byte, err error)
func (*QueryFanTokensResponse) MarshalTo ¶
func (m *QueryFanTokensResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryFanTokensResponse) MarshalToSizedBuffer ¶
func (m *QueryFanTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryFanTokensResponse) ProtoMessage ¶
func (*QueryFanTokensResponse) ProtoMessage()
func (*QueryFanTokensResponse) Reset ¶
func (m *QueryFanTokensResponse) Reset()
func (*QueryFanTokensResponse) Size ¶
func (m *QueryFanTokensResponse) Size() (n int)
func (*QueryFanTokensResponse) String ¶
func (m *QueryFanTokensResponse) String() string
func (*QueryFanTokensResponse) Unmarshal ¶
func (m *QueryFanTokensResponse) Unmarshal(dAtA []byte) error
func (*QueryFanTokensResponse) XXX_DiscardUnknown ¶
func (m *QueryFanTokensResponse) XXX_DiscardUnknown()
func (*QueryFanTokensResponse) XXX_Marshal ¶
func (m *QueryFanTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryFanTokensResponse) XXX_Merge ¶
func (m *QueryFanTokensResponse) XXX_Merge(src proto.Message)
func (*QueryFanTokensResponse) XXX_Size ¶
func (m *QueryFanTokensResponse) XXX_Size() int
func (*QueryFanTokensResponse) XXX_Unmarshal ¶
func (m *QueryFanTokensResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParametersRequest is request type for the Query/Parameters RPC method
func (*QueryParamsRequest) Descriptor ¶
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶
type QueryParamsResponse struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
QueryParametersResponse is response type for the Query/Parameters RPC method
func (*QueryParamsResponse) Descriptor ¶
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // FanToken returns fantoken with fantoken name FanToken(context.Context, *QueryFanTokenRequest) (*QueryFanTokenResponse, error) // FanTokens returns the fantoken list FanTokens(context.Context, *QueryFanTokensRequest) (*QueryFanTokensResponse, error) // Params queries the fantoken parameters Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, 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) Burn ¶
func (*UnimplementedMsgServer) Burn(ctx context.Context, req *MsgBurn) (*MsgBurnResponse, error)
func (*UnimplementedMsgServer) DisableMint ¶
func (*UnimplementedMsgServer) DisableMint(ctx context.Context, req *MsgDisableMint) (*MsgDisableMintResponse, error)
func (*UnimplementedMsgServer) Issue ¶
func (*UnimplementedMsgServer) Issue(ctx context.Context, req *MsgIssue) (*MsgIssueResponse, error)
func (*UnimplementedMsgServer) Mint ¶
func (*UnimplementedMsgServer) Mint(ctx context.Context, req *MsgMint) (*MsgMintResponse, error)
func (*UnimplementedMsgServer) SetAuthority ¶
func (*UnimplementedMsgServer) SetAuthority(ctx context.Context, req *MsgSetAuthority) (*MsgSetAuthorityResponse, error)
func (*UnimplementedMsgServer) SetMinter ¶
func (*UnimplementedMsgServer) SetMinter(ctx context.Context, req *MsgSetMinter) (*MsgSetMinterResponse, error)
func (*UnimplementedMsgServer) SetUri ¶
func (*UnimplementedMsgServer) SetUri(ctx context.Context, req *MsgSetUri) (*MsgSetUriResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) FanToken ¶
func (*UnimplementedQueryServer) FanToken(ctx context.Context, req *QueryFanTokenRequest) (*QueryFanTokenResponse, error)
func (*UnimplementedQueryServer) FanTokens ¶
func (*UnimplementedQueryServer) FanTokens(ctx context.Context, req *QueryFanTokensRequest) (*QueryFanTokensResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
type UpdateFeesProposal ¶
type UpdateFeesProposal struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` IssueFee types.Coin `protobuf:"bytes,3,opt,name=issue_fee,json=issueFee,proto3" json:"issue_fee" yaml:"issue_fee"` MintFee types.Coin `protobuf:"bytes,4,opt,name=mint_fee,json=mintFee,proto3" json:"mint_fee" yaml:"mint_fee"` BurnFee types.Coin `protobuf:"bytes,5,opt,name=burn_fee,json=burnFee,proto3" json:"burn_fee" yaml:"burn_fee"` }
func (*UpdateFeesProposal) Descriptor ¶
func (*UpdateFeesProposal) Descriptor() ([]byte, []int)
func (*UpdateFeesProposal) Equal ¶
func (this *UpdateFeesProposal) Equal(that interface{}) bool
func (*UpdateFeesProposal) GetDescription ¶
func (p *UpdateFeesProposal) GetDescription() string
func (*UpdateFeesProposal) GetTitle ¶
func (p *UpdateFeesProposal) GetTitle() string
func (*UpdateFeesProposal) Marshal ¶
func (m *UpdateFeesProposal) Marshal() (dAtA []byte, err error)
func (*UpdateFeesProposal) MarshalTo ¶
func (m *UpdateFeesProposal) MarshalTo(dAtA []byte) (int, error)
func (*UpdateFeesProposal) MarshalToSizedBuffer ¶
func (m *UpdateFeesProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateFeesProposal) ProposalRoute ¶
func (p *UpdateFeesProposal) ProposalRoute() string
func (*UpdateFeesProposal) ProposalType ¶
func (p *UpdateFeesProposal) ProposalType() string
func (*UpdateFeesProposal) ProtoMessage ¶
func (*UpdateFeesProposal) ProtoMessage()
func (*UpdateFeesProposal) Reset ¶
func (m *UpdateFeesProposal) Reset()
func (*UpdateFeesProposal) Size ¶
func (m *UpdateFeesProposal) Size() (n int)
func (UpdateFeesProposal) String ¶
func (p UpdateFeesProposal) String() string
func (*UpdateFeesProposal) Unmarshal ¶
func (m *UpdateFeesProposal) Unmarshal(dAtA []byte) error
func (*UpdateFeesProposal) ValidateBasic ¶
func (p *UpdateFeesProposal) ValidateBasic() error
func (*UpdateFeesProposal) XXX_DiscardUnknown ¶
func (m *UpdateFeesProposal) XXX_DiscardUnknown()
func (*UpdateFeesProposal) XXX_Marshal ¶
func (m *UpdateFeesProposal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateFeesProposal) XXX_Merge ¶
func (m *UpdateFeesProposal) XXX_Merge(src proto.Message)
func (*UpdateFeesProposal) XXX_Size ¶
func (m *UpdateFeesProposal) XXX_Size() int
func (*UpdateFeesProposal) XXX_Unmarshal ¶
func (m *UpdateFeesProposal) XXX_Unmarshal(b []byte) error
type UpdateFeesProposalWithDeposit ¶
type UpdateFeesProposalWithDeposit struct { Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"` Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` IssueFee string `protobuf:"bytes,3,opt,name=issue_fee,json=issueFee,proto3" json:"issue_fee,omitempty"` MintFee string `protobuf:"bytes,4,opt,name=mint_fee,json=mintFee,proto3" json:"mint_fee,omitempty"` BurnFee string `protobuf:"bytes,5,opt,name=burn_fee,json=burnFee,proto3" json:"burn_fee,omitempty"` Deposit string `protobuf:"bytes,7,opt,name=deposit,proto3" json:"deposit,omitempty"` }
func (*UpdateFeesProposalWithDeposit) Descriptor ¶
func (*UpdateFeesProposalWithDeposit) Descriptor() ([]byte, []int)
func (*UpdateFeesProposalWithDeposit) Marshal ¶
func (m *UpdateFeesProposalWithDeposit) Marshal() (dAtA []byte, err error)
func (*UpdateFeesProposalWithDeposit) MarshalTo ¶
func (m *UpdateFeesProposalWithDeposit) MarshalTo(dAtA []byte) (int, error)
func (*UpdateFeesProposalWithDeposit) MarshalToSizedBuffer ¶
func (m *UpdateFeesProposalWithDeposit) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*UpdateFeesProposalWithDeposit) ProtoMessage ¶
func (*UpdateFeesProposalWithDeposit) ProtoMessage()
func (*UpdateFeesProposalWithDeposit) Reset ¶
func (m *UpdateFeesProposalWithDeposit) Reset()
func (*UpdateFeesProposalWithDeposit) Size ¶
func (m *UpdateFeesProposalWithDeposit) Size() (n int)
func (*UpdateFeesProposalWithDeposit) String ¶
func (m *UpdateFeesProposalWithDeposit) String() string
func (*UpdateFeesProposalWithDeposit) Unmarshal ¶
func (m *UpdateFeesProposalWithDeposit) Unmarshal(dAtA []byte) error
func (*UpdateFeesProposalWithDeposit) XXX_DiscardUnknown ¶
func (m *UpdateFeesProposalWithDeposit) XXX_DiscardUnknown()
func (*UpdateFeesProposalWithDeposit) XXX_Marshal ¶
func (m *UpdateFeesProposalWithDeposit) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*UpdateFeesProposalWithDeposit) XXX_Merge ¶
func (m *UpdateFeesProposalWithDeposit) XXX_Merge(src proto.Message)
func (*UpdateFeesProposalWithDeposit) XXX_Size ¶
func (m *UpdateFeesProposalWithDeposit) XXX_Size() int
func (*UpdateFeesProposalWithDeposit) XXX_Unmarshal ¶
func (m *UpdateFeesProposalWithDeposit) XXX_Unmarshal(b []byte) error