types

package
v0.0.0-...-2e15704 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2023 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Overview

nolint

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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
)
View Source
const (
	// MsgRoute identifies transaction types
	MsgRoute = "fantoken"

	TypeMsgIssue        = "issue"
	TypeMsgEdit         = "edit"
	TypeMsgMint         = "mint"
	TypeMsgBurn         = "burn"
	TypeMsgSetAuthority = "set_authority"
	TypeMsgSetMinter    = "set_minter"
	TypeMsgSetUri       = "set_uri"
)
View Source
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
)
View Source
const FanTokenDecimal = 6
View Source
const ProposalTypeUpdateFees = "UpdateFantokenFeesProposal"

Variables

View Source
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

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthFantoken        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFantoken          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFantoken = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGov        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGov          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGov = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// PrefixFanTokenForDenom defines a denom prefix for the fan token
	PrefixFanTokenForDenom = []byte{0x01}

	// PrefixFanTokens defines a prefix for the fan tokens
	PrefixFanTokens = []byte{0x02}
)
View Source
var (
	KeyIssueFee = []byte("IssueFee")
	KeyMintFee  = []byte("MintFee")
	KeyBurnFee  = []byte("BurnFee")
)

parameter keys

View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func GetFantokenDenom

func GetFantokenDenom(height int64, minter sdk.AccAddress, symbol, name string) string

func KeyDenom

func KeyDenom(denom string) []byte

KeyDenom returns the key of the token with the specified denom

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 NewUpdateFeesProposal(title, description string, issueFee, mintFee, burnFee sdk.Coin) govtypes.Content

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

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func ValidateAmount

func ValidateAmount(amount sdk.Int) error

ValidateAmount checks if the given amount is positive amount

func ValidateDenom

func ValidateDenom(denom string) error

ValidateDenom checks if the given denom is valid

func ValidateFees

func ValidateFees(issueFee, mintFee, burnFee sdk.Coin) error

func ValidateName

func ValidateName(name string) error

ValidateName verifies whether the given name is valid

func ValidateSymbol

func ValidateSymbol(symbol string) error

ValidateSymbol checks if the given symbol is valid

func ValidateUri

func ValidateUri(uri string) error

ValidateUri checks if the given uri 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 DistrKeeper interface {
	FundCommunityPool(ctx sdk.Context, amount sdk.Coins, sender sdk.AccAddress) error
}

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

func (*EventBurn) GetCoin

func (m *EventBurn) GetCoin() string

func (*EventBurn) GetSender

func (m *EventBurn) GetSender() string

func (*EventBurn) Marshal

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

func (*EventBurn) MarshalTo

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

func (*EventBurn) MarshalToSizedBuffer

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

func (*EventBurn) ProtoMessage

func (*EventBurn) ProtoMessage()

func (*EventBurn) Reset

func (m *EventBurn) Reset()

func (*EventBurn) Size

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

func (*EventBurn) String

func (m *EventBurn) String() string

func (*EventBurn) Unmarshal

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

func (*EventBurn) XXX_DiscardUnknown

func (m *EventBurn) XXX_DiscardUnknown()

func (*EventBurn) XXX_Marshal

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

func (*EventBurn) XXX_Merge

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

func (*EventBurn) XXX_Size

func (m *EventBurn) XXX_Size() int

func (*EventBurn) XXX_Unmarshal

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

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

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

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

func (*EventIssue) MarshalToSizedBuffer

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

func (*EventIssue) ProtoMessage

func (*EventIssue) ProtoMessage()

func (*EventIssue) Reset

func (m *EventIssue) Reset()

func (*EventIssue) Size

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

func (*EventIssue) String

func (m *EventIssue) String() string

func (*EventIssue) Unmarshal

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

func (*EventIssue) XXX_DiscardUnknown

func (m *EventIssue) XXX_DiscardUnknown()

func (*EventIssue) XXX_Marshal

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

func (*EventIssue) XXX_Merge

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

func (*EventIssue) XXX_Size

func (m *EventIssue) XXX_Size() int

func (*EventIssue) XXX_Unmarshal

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

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

func (*EventMint) GetCoin

func (m *EventMint) GetCoin() string

func (*EventMint) GetRecipient

func (m *EventMint) GetRecipient() string

func (*EventMint) Marshal

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

func (*EventMint) MarshalTo

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

func (*EventMint) MarshalToSizedBuffer

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

func (*EventMint) ProtoMessage

func (*EventMint) ProtoMessage()

func (*EventMint) Reset

func (m *EventMint) Reset()

func (*EventMint) Size

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

func (*EventMint) String

func (m *EventMint) String() string

func (*EventMint) Unmarshal

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

func (*EventMint) XXX_DiscardUnknown

func (m *EventMint) XXX_DiscardUnknown()

func (*EventMint) XXX_Marshal

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

func (*EventMint) XXX_Merge

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

func (*EventMint) XXX_Size

func (m *EventMint) XXX_Size() int

func (*EventMint) XXX_Unmarshal

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

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

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

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

func (FanToken) GetAuthority

func (ft FanToken) GetAuthority() sdk.AccAddress

GetAuthority implements exported.FanTokenI

func (FanToken) GetDenom

func (ft FanToken) GetDenom() string

GetDenom implements exported.FanTokenI

func (FanToken) GetMaxSupply

func (ft FanToken) GetMaxSupply() sdk.Int

GetMaxSupply implements exported.FanTokenI

func (FanToken) GetMetaData

func (ft FanToken) GetMetaData() Metadata

GetMetaData returns metadata of the fantoken

func (FanToken) GetMintable

func (ft FanToken) GetMintable() bool

GetMintable implements exported.FanTokenI

func (FanToken) GetMinter

func (ft FanToken) GetMinter() sdk.AccAddress

GetMinter implements exported.FanTokenI

func (FanToken) GetName

func (ft FanToken) GetName() string

GetName implements exported.FanTokenI

func (FanToken) GetSymbol

func (ft FanToken) GetSymbol() string

GetSymbol implements exported.FanTokenI

func (FanToken) GetURI

func (ft FanToken) GetURI() string

GetURI implements exported.FanTokenI

func (*FanToken) Marshal

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

func (*FanToken) MarshalTo

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

func (*FanToken) MarshalToSizedBuffer

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

func (*FanToken) ProtoMessage

func (*FanToken) ProtoMessage()

func (*FanToken) Reset

func (m *FanToken) Reset()

func (*FanToken) Size

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

func (FanToken) String

func (ft FanToken) String() string

func (*FanToken) Unmarshal

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

func (FanToken) Validate

func (ft FanToken) Validate() error

func (FanToken) ValidateWithDenom

func (ft FanToken) ValidateWithDenom() error

func (*FanToken) XXX_DiscardUnknown

func (m *FanToken) XXX_DiscardUnknown()

func (*FanToken) XXX_Marshal

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

func (*FanToken) XXX_Merge

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

func (*FanToken) XXX_Size

func (m *FanToken) XXX_Size() int

func (*FanToken) XXX_Unmarshal

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

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

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

func (*Metadata) Marshal

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

func (*Metadata) MarshalTo

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

func (*Metadata) MarshalToSizedBuffer

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

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) Size

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

func (*Metadata) String

func (m *Metadata) String() string

func (*Metadata) Unmarshal

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

func (Metadata) Validate

func (m Metadata) Validate() error

func (*Metadata) XXX_DiscardUnknown

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal

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

func (*Metadata) XXX_Merge

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

func (*Metadata) XXX_Size

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal

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

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

func NewMsgBurn(coin sdk.Coin, sender string) *MsgBurn

NewMsgBurn creates a MsgBurn

func (*MsgBurn) Descriptor

func (*MsgBurn) Descriptor() ([]byte, []int)

func (MsgBurn) GetSignBytes

func (msg MsgBurn) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgBurn) GetSigners

func (msg MsgBurn) GetSigners() []sdk.AccAddress

GetSigners implements Msg

func (*MsgBurn) Marshal

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

func (*MsgBurn) MarshalTo

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

func (*MsgBurn) MarshalToSizedBuffer

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

func (*MsgBurn) ProtoMessage

func (*MsgBurn) ProtoMessage()

func (*MsgBurn) Reset

func (m *MsgBurn) Reset()

func (MsgBurn) Route

func (msg MsgBurn) Route() string

Route implements Msg

func (*MsgBurn) Size

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

func (*MsgBurn) String

func (m *MsgBurn) String() string

func (MsgBurn) Type

func (msg MsgBurn) Type() string

Type implements Msg

func (*MsgBurn) Unmarshal

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

func (MsgBurn) ValidateBasic

func (msg MsgBurn) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgBurn) XXX_DiscardUnknown

func (m *MsgBurn) XXX_DiscardUnknown()

func (*MsgBurn) XXX_Marshal

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

func (*MsgBurn) XXX_Merge

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

func (*MsgBurn) XXX_Size

func (m *MsgBurn) XXX_Size() int

func (*MsgBurn) XXX_Unmarshal

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

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

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

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

func (msg MsgDisableMint) Route() string

Route implements Msg

func (*MsgDisableMint) Size

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

func (*MsgDisableMint) String

func (m *MsgDisableMint) String() string

func (MsgDisableMint) Type

func (msg MsgDisableMint) Type() string

Type implements Msg

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

func NewMsgIssue(name, symbol, uri string, maxSupply sdk.Int, authority string) *MsgIssue

NewMsgIssue - construct token issue msg.

func (*MsgIssue) Descriptor

func (*MsgIssue) Descriptor() ([]byte, []int)

func (MsgIssue) GetSignBytes

func (msg MsgIssue) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgIssue) GetSigners

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

GetSigners Implements Msg.

func (*MsgIssue) Marshal

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

func (*MsgIssue) MarshalTo

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

func (*MsgIssue) MarshalToSizedBuffer

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

func (*MsgIssue) ProtoMessage

func (*MsgIssue) ProtoMessage()

func (*MsgIssue) Reset

func (m *MsgIssue) Reset()

func (MsgIssue) Route

func (msg MsgIssue) Route() string

Route Implements Msg.

func (*MsgIssue) Size

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

func (*MsgIssue) String

func (m *MsgIssue) String() string

func (MsgIssue) Type

func (msg MsgIssue) Type() string

Type Implements Msg.

func (*MsgIssue) Unmarshal

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

func (MsgIssue) ValidateBasic

func (msg MsgIssue) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgIssue) XXX_DiscardUnknown

func (m *MsgIssue) XXX_DiscardUnknown()

func (*MsgIssue) XXX_Marshal

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

func (*MsgIssue) XXX_Merge

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

func (*MsgIssue) XXX_Size

func (m *MsgIssue) XXX_Size() int

func (*MsgIssue) XXX_Unmarshal

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

type MsgIssueResponse

type MsgIssueResponse struct {
}

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

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

func (*MsgIssueResponse) MarshalToSizedBuffer

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

func (*MsgIssueResponse) ProtoMessage

func (*MsgIssueResponse) ProtoMessage()

func (*MsgIssueResponse) Reset

func (m *MsgIssueResponse) Reset()

func (*MsgIssueResponse) Size

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

func (*MsgIssueResponse) String

func (m *MsgIssueResponse) String() string

func (*MsgIssueResponse) Unmarshal

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

func (*MsgIssueResponse) XXX_DiscardUnknown

func (m *MsgIssueResponse) XXX_DiscardUnknown()

func (*MsgIssueResponse) XXX_Marshal

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

func (*MsgIssueResponse) XXX_Merge

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

func (*MsgIssueResponse) XXX_Size

func (m *MsgIssueResponse) XXX_Size() int

func (*MsgIssueResponse) XXX_Unmarshal

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

type 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

func NewMsgMint(recipient string, coin sdk.Coin, minter string) *MsgMint

NewMsgMint creates a MsgMint

func (*MsgMint) Descriptor

func (*MsgMint) Descriptor() ([]byte, []int)

func (MsgMint) GetSignBytes

func (msg MsgMint) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgMint) GetSigners

func (msg MsgMint) GetSigners() []sdk.AccAddress

GetSigners implements Msg

func (*MsgMint) Marshal

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

func (*MsgMint) MarshalTo

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

func (*MsgMint) MarshalToSizedBuffer

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

func (*MsgMint) ProtoMessage

func (*MsgMint) ProtoMessage()

func (*MsgMint) Reset

func (m *MsgMint) Reset()

func (MsgMint) Route

func (msg MsgMint) Route() string

Route implements Msg

func (*MsgMint) Size

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

func (*MsgMint) String

func (m *MsgMint) String() string

func (MsgMint) Type

func (msg MsgMint) Type() string

Type implements Msg

func (*MsgMint) Unmarshal

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

func (MsgMint) ValidateBasic

func (msg MsgMint) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgMint) XXX_DiscardUnknown

func (m *MsgMint) XXX_DiscardUnknown()

func (*MsgMint) XXX_Marshal

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

func (*MsgMint) XXX_Merge

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

func (*MsgMint) XXX_Size

func (m *MsgMint) XXX_Size() int

func (*MsgMint) XXX_Unmarshal

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

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

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

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

func (msg MsgSetAuthority) Route() string

Route implements Msg

func (*MsgSetAuthority) Size

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

func (*MsgSetAuthority) String

func (m *MsgSetAuthority) String() string

func (MsgSetAuthority) Type

func (msg MsgSetAuthority) Type() string

Type implements Msg

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

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

func (msg MsgSetMinter) Route() string

Route implements Msg

func (*MsgSetMinter) Size

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

func (*MsgSetMinter) String

func (m *MsgSetMinter) String() string

func (MsgSetMinter) Type

func (msg MsgSetMinter) Type() string

Type implements Msg

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

func NewMsgSetUri(denom, newUri string, sender string) *MsgSetUri

NewMsgSetUri creates a MsgSetUri

func (*MsgSetUri) Descriptor

func (*MsgSetUri) Descriptor() ([]byte, []int)

func (MsgSetUri) GetSignBytes

func (msg MsgSetUri) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgSetUri) GetSigners

func (msg MsgSetUri) GetSigners() []sdk.AccAddress

GetSigners implements Msg

func (*MsgSetUri) Marshal

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

func (*MsgSetUri) MarshalTo

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

func (*MsgSetUri) MarshalToSizedBuffer

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

func (*MsgSetUri) ProtoMessage

func (*MsgSetUri) ProtoMessage()

func (*MsgSetUri) Reset

func (m *MsgSetUri) Reset()

func (MsgSetUri) Route

func (msg MsgSetUri) Route() string

Route implements Msg

func (*MsgSetUri) Size

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

func (*MsgSetUri) String

func (m *MsgSetUri) String() string

func (MsgSetUri) Type

func (msg MsgSetUri) Type() string

Type implements Msg

func (*MsgSetUri) Unmarshal

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

func (MsgSetUri) ValidateBasic

func (msg MsgSetUri) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgSetUri) XXX_DiscardUnknown

func (m *MsgSetUri) XXX_DiscardUnknown()

func (*MsgSetUri) XXX_Marshal

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

func (*MsgSetUri) XXX_Merge

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

func (*MsgSetUri) XXX_Size

func (m *MsgSetUri) XXX_Size() int

func (*MsgSetUri) XXX_Unmarshal

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

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 DefaultParams

func DefaultParams() Params

DefaultParams return the default params

func NewParams

func NewParams(issueFee, mintFee, burnFee, transferFee sdk.Coin) Params

NewParams constructs a new Params instance

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) Equal

func (this *Params) Equal(that interface{}) bool

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String returns a human readable string representation of the parameters.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the given params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

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

func (*UnimplementedMsgServer) Issue

func (*UnimplementedMsgServer) Mint

func (*UnimplementedMsgServer) SetAuthority

func (*UnimplementedMsgServer) SetMinter

func (*UnimplementedMsgServer) SetUri

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) FanToken

func (*UnimplementedQueryServer) FanTokens

func (*UnimplementedQueryServer) Params

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

Jump to

Keyboard shortcuts

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