types

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

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

Go to latest
Published: Nov 10, 2021 License: Apache-2.0 Imports: 35 Imported by: 0

Documentation

Overview

nolint

nolint

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeIssueFanToken         = "issue_fan_token"
	EventTypeEditFanToken          = "edit_fan_token_mintable"
	EventTypeMintFanToken          = "mint_fan_token"
	EventTypeBurnFanToken          = "burn_fan_token"
	EventTypeTransferFanTokenOwner = "transfer_fan_token_owner"

	AttributeValueCategory = ModuleName

	AttributeKeyCreator   = "creator"
	AttributeKeySymbol    = "symbol"
	AttributeKeyDenom     = "denom"
	AttributeKeyAmount    = "amount"
	AttributeKeyOwner     = "owner"
	AttributeKeyDstOwner  = "dst_owner"
	AttributeKeyRecipient = "recipient"
)
View Source
const (
	// ModuleName is the name of the token module
	ModuleName = "fantoken"

	// StoreKey is the string store representation
	StoreKey string = ModuleName

	// QuerierRoute is the querier route for the token module
	QuerierRoute string = ModuleName

	// RouterKey is the msg router key for the token module
	RouterKey string = ModuleName

	// DefaultParamspace is the default name for parameter store
	DefaultParamspace = ModuleName
)
View Source
const (
	// MsgRoute identifies transaction types
	MsgRoute = "fantoken"

	TypeMsgIssueFanToken         = "issue_fan_token"
	TypeMsgEditFanToken          = "edit_fan_token_mintable"
	TypeMsgMintFanToken          = "mint_fan_token"
	TypeMsgBurnFanToken          = "burn_fan_token"
	TypeMsgTransferFanTokenOwner = "transfer_fan_token_owner"

	// DoNotModify used to indicate that some field should not be updated
	DoNotModify = "[do-not-modify]"
)
View Source
const (
	QueryFanToken  = "fantoken"
	QueryFanTokens = "fantokens"
	QueryParams    = "params"
	QueryTotalBurn = "total_burn"
)
View Source
const (
	// MinimumSymbolLen is the minimum limitation for the length of the token's symbol
	MinimumSymbolLen = 3
	// MaximumSymbolLen is the maximum limitation for the length of the token's symbol
	MaximumSymbolLen = 64
	// MaximumNameLen is the maximum limitation for the length of the token's name
	MaximumNameLen = 32
	// MinimumDenomLen is the minimum limitation for the length of the token's denom
	MinimumDenomLen = 3
	// MaximumMinUnitLen is the maximum limitation for the length of the token's denom
	MaximumDenomLen = 64
)
View Source
const (
	ReservedPeg  = "peg"
	ReservedIBC  = "ibc"
	ReservedSwap = "swap"
	ReservedHTLT = "htlt"
)
View Source
const FanTokenDecimal = 6

Variables

View Source
var (
	ErrInvalidName         = sdkerrors.Register(ModuleName, 2, "invalid token name")
	ErrInvalidDenom        = sdkerrors.Register(ModuleName, 3, "invalid token denom")
	ErrInvalidSymbol       = sdkerrors.Register(ModuleName, 4, "invalid standard symbol")
	ErrInvalidInitSupply   = sdkerrors.Register(ModuleName, 5, "invalid token initial supply")
	ErrInvalidMaxSupply    = sdkerrors.Register(ModuleName, 6, "invalid token maximum supply")
	ErrInvalidScale        = sdkerrors.Register(ModuleName, 7, "invalid token scale")
	ErrSymbolAlreadyExists = sdkerrors.Register(ModuleName, 8, "symbol already exists")
	ErrDenomAlreadyExists  = sdkerrors.Register(ModuleName, 9, "denom already exists")
	ErrTokenNotExists      = sdkerrors.Register(ModuleName, 10, "token does not exist")
	ErrInvalidToAddress    = sdkerrors.Register(ModuleName, 11, "the new owner must not be same as the original owner")
	ErrInvalidOwner        = sdkerrors.Register(ModuleName, 12, "invalid token owner")
	ErrNotMintable         = sdkerrors.Register(ModuleName, 13, "token is not mintable")
	ErrNotFoundTokenAmt    = sdkerrors.Register(ModuleName, 14, "burned token amount not found")
	ErrInvalidAmount       = sdkerrors.Register(ModuleName, 15, "invalid amount")
	ErrLessIssueFee        = sdkerrors.Register(ModuleName, 16, "less issue fee")
)

token module sentinel errors

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 (
	// PrefixFanTokenForSymbol defines a symbol prefix for the fan token
	PrefixFanTokenForSymbol = []byte{0x01}
	// PrefixTokenForMinUint defines the min unit prefix for the token
	PrefixTokenForDenom = []byte{0x02}
	// PrefixFanTokens defines a prefix for the fan tokens
	PrefixFanTokens = []byte{0x03}
	// PeffxBurnFanTokenAmt defines a prefix for the amount of fan token burnt
	PefixBurnFanTokenAmt = []byte{0x04}
)
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 (
	KeyIssuePrice = []byte("IssuePrice")
)

parameter keys

View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)

Functions

func KeyBurnFanTokenAmt

func KeyBurnFanTokenAmt(denom string) []byte

KeyBurnTokenAmt returns the key of the specified min unit.

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, symbol string) []byte

KeyFanTokens returns the key of the specified owner and symbol. Intended for querying all fan tokens of an owner

func KeySymbol

func KeySymbol(symbol string) []byte

KeySymbol returns the key of the token with the specified symbol

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 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 symbol begins with `TokenKeywords`

func ValidateDenom

func ValidateDenom(denom string) error

ValidateDenom checks if the given denom is valid

func ValidateGenesis

func ValidateGenesis(data GenesisState) error

ValidateGenesis validates the provided token genesis state to ensure the expected invariants holds.

func ValidateKeywords

func ValidateKeywords(denom string) error

ValidateKeywords checks if the given symbol begins with `TokenKeywords`

func ValidateName

func ValidateName(name string) error

ValidateName verifies whether the given name is legal

func ValidateParams

func ValidateParams(p Params) error

ValidateParams validates the given params

func ValidateSymbol

func ValidateSymbol(symbol string) error

ValidateSymbol checks if the given symbol is valid

func ValidateToken

func ValidateToken(token FanToken) error

ValidateToken checks if the given token is valid

Types

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	GetModuleAddress(name string) sdk.AccAddress
	GetModuleAccount(ctx sdk.Context, name string) authtypes.ModuleAccountI
}

AccountKeeper defines the expected account keeper

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) (supply bank.SupplyI)
	GetBalance(ctx sdk.Context, addr sdk.AccAddress, 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
	SendCoinsFromModuleToModule(ctx sdk.Context, senderModule, recipientModule string, amt sdk.Coins) error

	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins

	SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata)
	GetDenomMetaData(ctx sdk.Context, denom string) banktypes.Metadata
}

BankKeeper defines the expected bank keeper (noalias)

type FanToken

type FanToken struct {
	Name      string                                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	MaxSupply github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */
	Mintable  bool                                   `protobuf:"varint,3,opt,name=mintable,proto3" json:"mintable,omitempty"`
	Owner     string                                 `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
	MetaData  types.Metadata                         `protobuf:"bytes,5,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 string,
	maxSupply sdk.Int,
	owner sdk.AccAddress,
	metaData banktypes.Metadata,
) FanToken

NewToken constructs a new Token instance

func (*FanToken) Descriptor

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

func (FanToken) GetDenom

func (t FanToken) GetDenom() string

GetDenom implements exported.TokenI

func (FanToken) GetMaxSupply

func (t FanToken) GetMaxSupply() sdk.Int

GetMaxSupply implements exported.TokenI

func (FanToken) GetMetaData

func (t FanToken) GetMetaData() banktypes.Metadata

GetMetaData returns metadata of the fantoken

func (FanToken) GetMintable

func (t FanToken) GetMintable() bool

GetMintable implements exported.TokenI

func (FanToken) GetName

func (t FanToken) GetName() string

GetName implements exported.TokenI

func (FanToken) GetOwner

func (t FanToken) GetOwner() sdk.AccAddress

GetOwner implements exported.TokenI

func (FanToken) GetSymbol

func (t FanToken) GetSymbol() string

GetSymbol implements exported.TokenI

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 (t FanToken) String() string

func (FanToken) ToMainCoin

func (t FanToken) ToMainCoin(coin sdk.Coin) (sdk.DecCoin, error)

ToMainCoin returns the main denom coin from args

func (FanToken) ToMinCoin

func (t FanToken) ToMinCoin(coin sdk.DecCoin) (newCoin sdk.Coin, err error)

ToMinCoin returns the min denom coin from args

func (*FanToken) Unmarshal

func (m *FanToken) Unmarshal(dAtA []byte) 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 FanTokenI

type FanTokenI interface {
	GetSymbol() string
	GetDenom() string
	GetName() string
	GetMaxSupply() sdk.Int
	GetMintable() bool
	GetOwner() sdk.AccAddress
	GetMetaData() banktypes.Metadata

	ToMainCoin(coin sdk.Coin) (sdk.DecCoin, error)
	ToMinCoin(coin sdk.DecCoin) (sdk.Coin, error)
}

TokenI defines an interface for Token

type GenesisState

type GenesisState struct {
	Params      Params       `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	Tokens      []FanToken   `protobuf:"bytes,2,rep,name=tokens,proto3" json:"tokens"`
	BurnedCoins []types.Coin `protobuf:"bytes,3,rep,name=burned_coins,json=burnedCoins,proto3" json:"burned_coins"`
}

GenesisState defines the fantoken module's genesis state

func NewGenesisState

func NewGenesisState(params Params, tokens []FanToken) GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetBurnedCoins

func (m *GenesisState) GetBurnedCoins() []types.Coin

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetTokens

func (m *GenesisState) GetTokens() []FanToken

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

type MsgBurnFanToken struct {
	Denom  string                                 `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Amount github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,2,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"`
	Sender string                                 `protobuf:"bytes,3,opt,name=sender,proto3" json:"sender,omitempty"`
}

MsgBurnFanToken defines an SDK message for burning some fan tokens

func NewMsgBurnFanToken

func NewMsgBurnFanToken(denom string, owner string, amount sdk.Int) *MsgBurnFanToken

NewMsgBurnToken creates a MsgMintToken

func (*MsgBurnFanToken) Descriptor

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

func (MsgBurnFanToken) GetSignBytes

func (msg MsgBurnFanToken) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgBurnFanToken) GetSigners

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

GetSigners implements Msg

func (*MsgBurnFanToken) Marshal

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

func (*MsgBurnFanToken) MarshalTo

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

func (*MsgBurnFanToken) MarshalToSizedBuffer

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

func (*MsgBurnFanToken) ProtoMessage

func (*MsgBurnFanToken) ProtoMessage()

func (*MsgBurnFanToken) Reset

func (m *MsgBurnFanToken) Reset()

func (MsgBurnFanToken) Route

func (msg MsgBurnFanToken) Route() string

Route implements Msg

func (*MsgBurnFanToken) Size

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

func (*MsgBurnFanToken) String

func (m *MsgBurnFanToken) String() string

func (MsgBurnFanToken) Type

func (msg MsgBurnFanToken) Type() string

Type implements Msg

func (*MsgBurnFanToken) Unmarshal

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

func (MsgBurnFanToken) ValidateBasic

func (msg MsgBurnFanToken) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgBurnFanToken) XXX_DiscardUnknown

func (m *MsgBurnFanToken) XXX_DiscardUnknown()

func (*MsgBurnFanToken) XXX_Marshal

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

func (*MsgBurnFanToken) XXX_Merge

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

func (*MsgBurnFanToken) XXX_Size

func (m *MsgBurnFanToken) XXX_Size() int

func (*MsgBurnFanToken) XXX_Unmarshal

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

type MsgBurnFanTokenResponse

type MsgBurnFanTokenResponse struct {
}

MsgBurnFanTokenResponse defines the Msg/BurnFanToken response type

func (*MsgBurnFanTokenResponse) Descriptor

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

func (*MsgBurnFanTokenResponse) Marshal

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

func (*MsgBurnFanTokenResponse) MarshalTo

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

func (*MsgBurnFanTokenResponse) MarshalToSizedBuffer

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

func (*MsgBurnFanTokenResponse) ProtoMessage

func (*MsgBurnFanTokenResponse) ProtoMessage()

func (*MsgBurnFanTokenResponse) Reset

func (m *MsgBurnFanTokenResponse) Reset()

func (*MsgBurnFanTokenResponse) Size

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

func (*MsgBurnFanTokenResponse) String

func (m *MsgBurnFanTokenResponse) String() string

func (*MsgBurnFanTokenResponse) Unmarshal

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

func (*MsgBurnFanTokenResponse) XXX_DiscardUnknown

func (m *MsgBurnFanTokenResponse) XXX_DiscardUnknown()

func (*MsgBurnFanTokenResponse) XXX_Marshal

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

func (*MsgBurnFanTokenResponse) XXX_Merge

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

func (*MsgBurnFanTokenResponse) XXX_Size

func (m *MsgBurnFanTokenResponse) XXX_Size() int

func (*MsgBurnFanTokenResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// IssueFanToken defines a method for issuing a new fan token
	IssueFanToken(ctx context.Context, in *MsgIssueFanToken, opts ...grpc.CallOption) (*MsgIssueFanTokenResponse, error)
	// EditFanToken defines a method for editing a fantoken
	EditFanToken(ctx context.Context, in *MsgEditFanToken, opts ...grpc.CallOption) (*MsgEditFanTokenResponse, error)
	// MintFanToken defines a method for minting some fan tokens
	MintFanToken(ctx context.Context, in *MsgMintFanToken, opts ...grpc.CallOption) (*MsgMintFanTokenResponse, error)
	// BurnFanToken defines a method for burning some fan tokens
	BurnFanToken(ctx context.Context, in *MsgBurnFanToken, opts ...grpc.CallOption) (*MsgBurnFanTokenResponse, error)
	// TransferFanTokenOwner defines a method for minting some fan tokens
	TransferFanTokenOwner(ctx context.Context, in *MsgTransferFanTokenOwner, opts ...grpc.CallOption) (*MsgTransferFanTokenOwnerResponse, 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 MsgEditFanToken

type MsgEditFanToken struct {
	Symbol   string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Mintable bool   `protobuf:"varint,2,opt,name=mintable,proto3" json:"mintable,omitempty"`
	Owner    string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"`
}

MsgEditFanToken defines an SDK message for editing a fan token

func NewMsgEditFanToken

func NewMsgEditFanToken(symbol string, mintable bool, owner string) *MsgEditFanToken

NewMsgEditToken creates a MsgEditToken

func (*MsgEditFanToken) Descriptor

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

func (MsgEditFanToken) GetSignBytes

func (msg MsgEditFanToken) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgEditFanToken) GetSigners

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

GetSigners implements Msg

func (*MsgEditFanToken) Marshal

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

func (*MsgEditFanToken) MarshalTo

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

func (*MsgEditFanToken) MarshalToSizedBuffer

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

func (*MsgEditFanToken) ProtoMessage

func (*MsgEditFanToken) ProtoMessage()

func (*MsgEditFanToken) Reset

func (m *MsgEditFanToken) Reset()

func (MsgEditFanToken) Route

func (msg MsgEditFanToken) Route() string

Route implements Msg

func (*MsgEditFanToken) Size

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

func (*MsgEditFanToken) String

func (m *MsgEditFanToken) String() string

func (MsgEditFanToken) Type

func (msg MsgEditFanToken) Type() string

Type implements Msg

func (*MsgEditFanToken) Unmarshal

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

func (MsgEditFanToken) ValidateBasic

func (msg MsgEditFanToken) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgEditFanToken) XXX_DiscardUnknown

func (m *MsgEditFanToken) XXX_DiscardUnknown()

func (*MsgEditFanToken) XXX_Marshal

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

func (*MsgEditFanToken) XXX_Merge

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

func (*MsgEditFanToken) XXX_Size

func (m *MsgEditFanToken) XXX_Size() int

func (*MsgEditFanToken) XXX_Unmarshal

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

type MsgEditFanTokenResponse

type MsgEditFanTokenResponse struct {
}

MsgEditFanTokenResponse defines the Msg/EditFanToken response type

func (*MsgEditFanTokenResponse) Descriptor

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

func (*MsgEditFanTokenResponse) Marshal

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

func (*MsgEditFanTokenResponse) MarshalTo

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

func (*MsgEditFanTokenResponse) MarshalToSizedBuffer

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

func (*MsgEditFanTokenResponse) ProtoMessage

func (*MsgEditFanTokenResponse) ProtoMessage()

func (*MsgEditFanTokenResponse) Reset

func (m *MsgEditFanTokenResponse) Reset()

func (*MsgEditFanTokenResponse) Size

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

func (*MsgEditFanTokenResponse) String

func (m *MsgEditFanTokenResponse) String() string

func (*MsgEditFanTokenResponse) Unmarshal

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

func (*MsgEditFanTokenResponse) XXX_DiscardUnknown

func (m *MsgEditFanTokenResponse) XXX_DiscardUnknown()

func (*MsgEditFanTokenResponse) XXX_Marshal

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

func (*MsgEditFanTokenResponse) XXX_Merge

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

func (*MsgEditFanTokenResponse) XXX_Size

func (m *MsgEditFanTokenResponse) XXX_Size() int

func (*MsgEditFanTokenResponse) XXX_Unmarshal

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

type MsgIssueFanToken

type MsgIssueFanToken struct {
	Symbol      string                                 `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Name        string                                 `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	MaxSupply   github_com_cosmos_cosmos_sdk_types.Int `` /* 146-byte string literal not displayed */
	Description string                                 `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
	Owner       string                                 `protobuf:"bytes,5,opt,name=owner,proto3" json:"owner,omitempty"`
	IssueFee    types.Coin                             `protobuf:"bytes,6,opt,name=issue_fee,json=issueFee,proto3" json:"issue_fee" yaml:"issue_fee"`
}

MsgIssueFanToken defines an SDK message for issuing a new fan token

func NewMsgIssueFanToken

func NewMsgIssueFanToken(
	symbol string, name string,
	maxSupply sdk.Int,
	descriptioin string, owner string, issueFee sdk.Coin,
) *MsgIssueFanToken

NewMsgIssueToken - construct token issue msg.

func (*MsgIssueFanToken) Descriptor

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

func (MsgIssueFanToken) GetSignBytes

func (msg MsgIssueFanToken) GetSignBytes() []byte

GetSignBytes Implements Msg.

func (MsgIssueFanToken) GetSigners

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

GetSigners Implements Msg.

func (*MsgIssueFanToken) Marshal

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

func (*MsgIssueFanToken) MarshalTo

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

func (*MsgIssueFanToken) MarshalToSizedBuffer

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

func (*MsgIssueFanToken) ProtoMessage

func (*MsgIssueFanToken) ProtoMessage()

func (*MsgIssueFanToken) Reset

func (m *MsgIssueFanToken) Reset()

func (MsgIssueFanToken) Route

func (msg MsgIssueFanToken) Route() string

Route Implements Msg.

func (*MsgIssueFanToken) Size

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

func (*MsgIssueFanToken) String

func (m *MsgIssueFanToken) String() string

func (MsgIssueFanToken) Type

func (msg MsgIssueFanToken) Type() string

Type Implements Msg.

func (*MsgIssueFanToken) Unmarshal

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

func (MsgIssueFanToken) ValidateBasic

func (msg MsgIssueFanToken) ValidateBasic() error

ValidateBasic Implements Msg.

func (*MsgIssueFanToken) XXX_DiscardUnknown

func (m *MsgIssueFanToken) XXX_DiscardUnknown()

func (*MsgIssueFanToken) XXX_Marshal

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

func (*MsgIssueFanToken) XXX_Merge

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

func (*MsgIssueFanToken) XXX_Size

func (m *MsgIssueFanToken) XXX_Size() int

func (*MsgIssueFanToken) XXX_Unmarshal

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

type MsgIssueFanTokenResponse

type MsgIssueFanTokenResponse struct {
}

MsgIssueFanTokenResponse defines the Msg/IssueFanToken response type

func (*MsgIssueFanTokenResponse) Descriptor

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

func (*MsgIssueFanTokenResponse) Marshal

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

func (*MsgIssueFanTokenResponse) MarshalTo

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

func (*MsgIssueFanTokenResponse) MarshalToSizedBuffer

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

func (*MsgIssueFanTokenResponse) ProtoMessage

func (*MsgIssueFanTokenResponse) ProtoMessage()

func (*MsgIssueFanTokenResponse) Reset

func (m *MsgIssueFanTokenResponse) Reset()

func (*MsgIssueFanTokenResponse) Size

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

func (*MsgIssueFanTokenResponse) String

func (m *MsgIssueFanTokenResponse) String() string

func (*MsgIssueFanTokenResponse) Unmarshal

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

func (*MsgIssueFanTokenResponse) XXX_DiscardUnknown

func (m *MsgIssueFanTokenResponse) XXX_DiscardUnknown()

func (*MsgIssueFanTokenResponse) XXX_Marshal

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

func (*MsgIssueFanTokenResponse) XXX_Merge

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

func (*MsgIssueFanTokenResponse) XXX_Size

func (m *MsgIssueFanTokenResponse) XXX_Size() int

func (*MsgIssueFanTokenResponse) XXX_Unmarshal

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

type MsgMintFanToken

type MsgMintFanToken struct {
	Recipient string                                 `protobuf:"bytes,1,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Denom     string                                 `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	Amount    github_com_cosmos_cosmos_sdk_types.Int `protobuf:"bytes,3,opt,name=amount,proto3,customtype=github.com/cosmos/cosmos-sdk/types.Int" json:"amount" yaml:"amount"`
	Owner     string                                 `protobuf:"bytes,4,opt,name=owner,proto3" json:"owner,omitempty"`
}

MsgMintFanToken defines an SDK message for minting a new fan token

func NewMsgMintFanToken

func NewMsgMintFanToken(recipient, denom, owner string, amount sdk.Int) *MsgMintFanToken

NewMsgMintToken creates a MsgMintToken

func (*MsgMintFanToken) Descriptor

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

func (MsgMintFanToken) GetSignBytes

func (msg MsgMintFanToken) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgMintFanToken) GetSigners

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

GetSigners implements Msg

func (*MsgMintFanToken) Marshal

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

func (*MsgMintFanToken) MarshalTo

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

func (*MsgMintFanToken) MarshalToSizedBuffer

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

func (*MsgMintFanToken) ProtoMessage

func (*MsgMintFanToken) ProtoMessage()

func (*MsgMintFanToken) Reset

func (m *MsgMintFanToken) Reset()

func (MsgMintFanToken) Route

func (msg MsgMintFanToken) Route() string

Route implements Msg

func (*MsgMintFanToken) Size

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

func (*MsgMintFanToken) String

func (m *MsgMintFanToken) String() string

func (MsgMintFanToken) Type

func (msg MsgMintFanToken) Type() string

Type implements Msg

func (*MsgMintFanToken) Unmarshal

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

func (MsgMintFanToken) ValidateBasic

func (msg MsgMintFanToken) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgMintFanToken) XXX_DiscardUnknown

func (m *MsgMintFanToken) XXX_DiscardUnknown()

func (*MsgMintFanToken) XXX_Marshal

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

func (*MsgMintFanToken) XXX_Merge

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

func (*MsgMintFanToken) XXX_Size

func (m *MsgMintFanToken) XXX_Size() int

func (*MsgMintFanToken) XXX_Unmarshal

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

type MsgMintFanTokenResponse

type MsgMintFanTokenResponse struct {
}

MsgMintFanTokenResponse defines the Msg/MintFanToken response type

func (*MsgMintFanTokenResponse) Descriptor

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

func (*MsgMintFanTokenResponse) Marshal

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

func (*MsgMintFanTokenResponse) MarshalTo

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

func (*MsgMintFanTokenResponse) MarshalToSizedBuffer

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

func (*MsgMintFanTokenResponse) ProtoMessage

func (*MsgMintFanTokenResponse) ProtoMessage()

func (*MsgMintFanTokenResponse) Reset

func (m *MsgMintFanTokenResponse) Reset()

func (*MsgMintFanTokenResponse) Size

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

func (*MsgMintFanTokenResponse) String

func (m *MsgMintFanTokenResponse) String() string

func (*MsgMintFanTokenResponse) Unmarshal

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

func (*MsgMintFanTokenResponse) XXX_DiscardUnknown

func (m *MsgMintFanTokenResponse) XXX_DiscardUnknown()

func (*MsgMintFanTokenResponse) XXX_Marshal

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

func (*MsgMintFanTokenResponse) XXX_Merge

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

func (*MsgMintFanTokenResponse) XXX_Size

func (m *MsgMintFanTokenResponse) XXX_Size() int

func (*MsgMintFanTokenResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// IssueFanToken defines a method for issuing a new fan token
	IssueFanToken(context.Context, *MsgIssueFanToken) (*MsgIssueFanTokenResponse, error)
	// EditFanToken defines a method for editing a fantoken
	EditFanToken(context.Context, *MsgEditFanToken) (*MsgEditFanTokenResponse, error)
	// MintFanToken defines a method for minting some fan tokens
	MintFanToken(context.Context, *MsgMintFanToken) (*MsgMintFanTokenResponse, error)
	// BurnFanToken defines a method for burning some fan tokens
	BurnFanToken(context.Context, *MsgBurnFanToken) (*MsgBurnFanTokenResponse, error)
	// TransferFanTokenOwner defines a method for minting some fan tokens
	TransferFanTokenOwner(context.Context, *MsgTransferFanTokenOwner) (*MsgTransferFanTokenOwnerResponse, error)
}

MsgServer is the server API for Msg service.

type MsgTransferFanTokenOwner

type MsgTransferFanTokenOwner struct {
	Symbol   string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	SrcOwner string `protobuf:"bytes,2,opt,name=src_owner,json=srcOwner,proto3" json:"src_owner,omitempty" yaml:"src_owner"`
	DstOwner string `protobuf:"bytes,3,opt,name=dst_owner,json=dstOwner,proto3" json:"dst_owner,omitempty" yaml:"dst_owner"`
}

MsgTransferFanTokenOwner defines an SDK message for transferring the token owner

func NewMsgTransferFanTokenOwner

func NewMsgTransferFanTokenOwner(symbol, srcOwner, dstOwner string) *MsgTransferFanTokenOwner

NewMsgTransferTokenOwner return a instance of MsgTransferTokenOwner

func (*MsgTransferFanTokenOwner) Descriptor

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

func (MsgTransferFanTokenOwner) GetSignBytes

func (msg MsgTransferFanTokenOwner) GetSignBytes() []byte

GetSignBytes implements Msg

func (MsgTransferFanTokenOwner) GetSigners

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

GetSigners implements Msg

func (*MsgTransferFanTokenOwner) Marshal

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

func (*MsgTransferFanTokenOwner) MarshalTo

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

func (*MsgTransferFanTokenOwner) MarshalToSizedBuffer

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

func (*MsgTransferFanTokenOwner) ProtoMessage

func (*MsgTransferFanTokenOwner) ProtoMessage()

func (*MsgTransferFanTokenOwner) Reset

func (m *MsgTransferFanTokenOwner) Reset()

func (MsgTransferFanTokenOwner) Route

func (msg MsgTransferFanTokenOwner) Route() string

Route implements Msg

func (*MsgTransferFanTokenOwner) Size

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

func (*MsgTransferFanTokenOwner) String

func (m *MsgTransferFanTokenOwner) String() string

func (MsgTransferFanTokenOwner) Type

func (msg MsgTransferFanTokenOwner) Type() string

Type implements Msg

func (*MsgTransferFanTokenOwner) Unmarshal

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

func (MsgTransferFanTokenOwner) ValidateBasic

func (msg MsgTransferFanTokenOwner) ValidateBasic() error

ValidateBasic implements Msg

func (*MsgTransferFanTokenOwner) XXX_DiscardUnknown

func (m *MsgTransferFanTokenOwner) XXX_DiscardUnknown()

func (*MsgTransferFanTokenOwner) XXX_Marshal

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

func (*MsgTransferFanTokenOwner) XXX_Merge

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

func (*MsgTransferFanTokenOwner) XXX_Size

func (m *MsgTransferFanTokenOwner) XXX_Size() int

func (*MsgTransferFanTokenOwner) XXX_Unmarshal

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

type MsgTransferFanTokenOwnerResponse

type MsgTransferFanTokenOwnerResponse struct {
}

MsgTransferFanTokenOwnerResponse defines the Msg/TransferFanTokenOwner response type

func (*MsgTransferFanTokenOwnerResponse) Descriptor

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

func (*MsgTransferFanTokenOwnerResponse) Marshal

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

func (*MsgTransferFanTokenOwnerResponse) MarshalTo

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

func (*MsgTransferFanTokenOwnerResponse) MarshalToSizedBuffer

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

func (*MsgTransferFanTokenOwnerResponse) ProtoMessage

func (*MsgTransferFanTokenOwnerResponse) ProtoMessage()

func (*MsgTransferFanTokenOwnerResponse) Reset

func (*MsgTransferFanTokenOwnerResponse) Size

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

func (*MsgTransferFanTokenOwnerResponse) String

func (*MsgTransferFanTokenOwnerResponse) Unmarshal

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

func (*MsgTransferFanTokenOwnerResponse) XXX_DiscardUnknown

func (m *MsgTransferFanTokenOwnerResponse) XXX_DiscardUnknown()

func (*MsgTransferFanTokenOwnerResponse) XXX_Marshal

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

func (*MsgTransferFanTokenOwnerResponse) XXX_Merge

func (*MsgTransferFanTokenOwnerResponse) XXX_Size

func (m *MsgTransferFanTokenOwnerResponse) XXX_Size() int

func (*MsgTransferFanTokenOwnerResponse) XXX_Unmarshal

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

type Params

type Params struct {
	IssuePrice types1.Coin `protobuf:"bytes,2,opt,name=issue_price,json=issuePrice,proto3" json:"issue_price" yaml:"issue_price"`
}

Params defines fantoken module's parameters

func DefaultParams

func DefaultParams() Params

DefaultParams return the default params

func NewParams

func NewParams(issuePrice 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) 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)
	// TotalBurn queries all the burnt coins
	TotalBurn(ctx context.Context, in *QueryTotalBurnRequest, opts ...grpc.CallOption) (*QueryTotalBurnResponse, 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 QueryFanTokenParams

type QueryFanTokenParams struct {
	Denom string
}

QueryFanTokenParams is the query parameters for 'custom/fantoken/token'

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 {
	Token *FanToken `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
}

QueryFanTokenResponse is response type for the Query/FanToken RPC method

func (*QueryFanTokenResponse) Descriptor

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

func (*QueryFanTokenResponse) GetToken

func (m *QueryFanTokenResponse) GetToken() *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 QueryFanTokensParams

type QueryFanTokensParams struct {
	Owner sdk.AccAddress
}

QueryFanTokensParams is the query parameters for 'custom/fantoken/tokens'

type QueryFanTokensRequest

type QueryFanTokensRequest struct {
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,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) GetOwner

func (m *QueryFanTokensRequest) GetOwner() 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 {
	Tokens     []*FanToken         `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,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) GetPagination

func (m *QueryFanTokensResponse) GetPagination() *query.PageResponse

func (*QueryFanTokensResponse) GetTokens

func (m *QueryFanTokensResponse) GetTokens() []*FanToken

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"`
	Res    *query.PageResponse `protobuf:"bytes,2,opt,name=res,proto3" json:"res,omitempty"`
}

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

func (m *QueryParamsResponse) GetRes() *query.PageResponse

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)
	// TotalBurn queries all the burnt coins
	TotalBurn(context.Context, *QueryTotalBurnRequest) (*QueryTotalBurnResponse, error)
}

QueryServer is the server API for Query service.

type QueryTotalBurnRequest

type QueryTotalBurnRequest struct {
}

QueryFanTokenRequest is request type for the Query/TotalBurn RPC method

func (*QueryTotalBurnRequest) Descriptor

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

func (*QueryTotalBurnRequest) Marshal

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

func (*QueryTotalBurnRequest) MarshalTo

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

func (*QueryTotalBurnRequest) MarshalToSizedBuffer

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

func (*QueryTotalBurnRequest) ProtoMessage

func (*QueryTotalBurnRequest) ProtoMessage()

func (*QueryTotalBurnRequest) Reset

func (m *QueryTotalBurnRequest) Reset()

func (*QueryTotalBurnRequest) Size

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

func (*QueryTotalBurnRequest) String

func (m *QueryTotalBurnRequest) String() string

func (*QueryTotalBurnRequest) Unmarshal

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

func (*QueryTotalBurnRequest) XXX_DiscardUnknown

func (m *QueryTotalBurnRequest) XXX_DiscardUnknown()

func (*QueryTotalBurnRequest) XXX_Marshal

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

func (*QueryTotalBurnRequest) XXX_Merge

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

func (*QueryTotalBurnRequest) XXX_Size

func (m *QueryTotalBurnRequest) XXX_Size() int

func (*QueryTotalBurnRequest) XXX_Unmarshal

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

type QueryTotalBurnResponse

type QueryTotalBurnResponse struct {
	BurnedCoins []types.Coin `protobuf:"bytes,1,rep,name=burned_coins,json=burnedCoins,proto3" json:"burned_coins"`
}

QueryTotalBurnResponse is response type for the Query/TotalBurn RPC method

func (*QueryTotalBurnResponse) Descriptor

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

func (*QueryTotalBurnResponse) GetBurnedCoins

func (m *QueryTotalBurnResponse) GetBurnedCoins() []types.Coin

func (*QueryTotalBurnResponse) Marshal

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

func (*QueryTotalBurnResponse) MarshalTo

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

func (*QueryTotalBurnResponse) MarshalToSizedBuffer

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

func (*QueryTotalBurnResponse) ProtoMessage

func (*QueryTotalBurnResponse) ProtoMessage()

func (*QueryTotalBurnResponse) Reset

func (m *QueryTotalBurnResponse) Reset()

func (*QueryTotalBurnResponse) Size

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

func (*QueryTotalBurnResponse) String

func (m *QueryTotalBurnResponse) String() string

func (*QueryTotalBurnResponse) Unmarshal

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

func (*QueryTotalBurnResponse) XXX_DiscardUnknown

func (m *QueryTotalBurnResponse) XXX_DiscardUnknown()

func (*QueryTotalBurnResponse) XXX_Marshal

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

func (*QueryTotalBurnResponse) XXX_Merge

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

func (*QueryTotalBurnResponse) XXX_Size

func (m *QueryTotalBurnResponse) XXX_Size() int

func (*QueryTotalBurnResponse) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) BurnFanToken

func (*UnimplementedMsgServer) EditFanToken

func (*UnimplementedMsgServer) IssueFanToken

func (*UnimplementedMsgServer) MintFanToken

func (*UnimplementedMsgServer) TransferFanTokenOwner

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) FanToken

func (*UnimplementedQueryServer) FanTokens

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) TotalBurn

Jump to

Keyboard shortcuts

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