types

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "issuance"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName
)
View Source
const DefaultIndex uint64 = 1

Variables

View Source
var (
	ErrDenomAlreadyExist = sdkerrors.Register(ModuleName, 2, "Denom already exist")
	ErrInvalidDecimals   = sdkerrors.Register(ModuleName, 3, "Invalid decimals")
	ErrInvalidDenom      = sdkerrors.Register(ModuleName, 4, "Invalid denom")
)

x/issuance module sentinel 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 (
	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 (
	TokenCountKey = []byte{0x01}
	TokenKey      = []byte{0x02}
)
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 (
	ErrInvalidLengthToken        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowToken          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupToken = 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 EventModuleName = EventModule{Name: ModuleName}

Functions

func GetTokenKey

func GetTokenKey(id uint64) []byte

func MustMarshalToken added in v1.1.0

func MustMarshalToken(cdc codec.BinaryCodec, token *Token) []byte

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec added in v1.1.0

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 UInt64Bytes

func UInt64Bytes(n uint64) []byte

UInt64Bytes uses the SDK byte marshaling to encode a uint64

Types

type BankKeeper

type BankKeeper interface {
	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

	MintCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	BurnCoins(ctx sdk.Context, name string, amt sdk.Coins) error
	GetAllBalances(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	GetAccountsBalances(ctx sdk.Context) []bank.Balance

	GetDenomMetaData(ctx sdk.Context, denom string) (bank.Metadata, bool)
	SetDenomMetaData(ctx sdk.Context, denomMetaData bank.Metadata)
	IterateAllDenomMetaData(ctx sdk.Context, cb func(bank.Metadata) bool)
}

type EventIssueToken

type EventIssueToken struct {
	Address       string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Decimals      uint64 `protobuf:"varint,2,opt,name=decimals,proto3" json:"decimals,omitempty"`
	InitialSupply uint64 `protobuf:"varint,3,opt,name=initial_supply,json=initialSupply,proto3" json:"initial_supply,omitempty"`
	Denom         string `protobuf:"bytes,4,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*EventIssueToken) Descriptor

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

func (*EventIssueToken) GetAddress

func (m *EventIssueToken) GetAddress() string

func (*EventIssueToken) GetDecimals

func (m *EventIssueToken) GetDecimals() uint64

func (*EventIssueToken) GetDenom

func (m *EventIssueToken) GetDenom() string

func (*EventIssueToken) GetInitialSupply

func (m *EventIssueToken) GetInitialSupply() uint64

func (*EventIssueToken) Marshal

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

func (*EventIssueToken) MarshalTo

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

func (*EventIssueToken) MarshalToSizedBuffer

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

func (*EventIssueToken) ProtoMessage

func (*EventIssueToken) ProtoMessage()

func (*EventIssueToken) Reset

func (m *EventIssueToken) Reset()

func (*EventIssueToken) Size

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

func (*EventIssueToken) String

func (m *EventIssueToken) String() string

func (*EventIssueToken) Unmarshal

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

func (*EventIssueToken) XXX_DiscardUnknown

func (m *EventIssueToken) XXX_DiscardUnknown()

func (*EventIssueToken) XXX_Marshal

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

func (*EventIssueToken) XXX_Merge

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

func (*EventIssueToken) XXX_Size

func (m *EventIssueToken) XXX_Size() int

func (*EventIssueToken) XXX_Unmarshal

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

type EventModule

type EventModule struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}

func (*EventModule) Descriptor

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

func (*EventModule) GetName

func (m *EventModule) GetName() string

func (*EventModule) Marshal

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

func (*EventModule) MarshalTo

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

func (*EventModule) MarshalToSizedBuffer

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

func (*EventModule) ProtoMessage

func (*EventModule) ProtoMessage()

func (*EventModule) Reset

func (m *EventModule) Reset()

func (*EventModule) Size

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

func (*EventModule) String

func (m *EventModule) String() string

func (*EventModule) Unmarshal

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

func (*EventModule) XXX_DiscardUnknown

func (m *EventModule) XXX_DiscardUnknown()

func (*EventModule) XXX_Marshal

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

func (*EventModule) XXX_Merge

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

func (*EventModule) XXX_Size

func (m *EventModule) XXX_Size() int

func (*EventModule) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// this line is used by starport scaffolding # genesis/proto/state
	TokenList  []*Token `protobuf:"bytes,1,rep,name=tokenList,proto3" json:"tokenList,omitempty"`
	TokenCount uint64   `protobuf:"varint,2,opt,name=tokenCount,proto3" json:"tokenCount,omitempty"`
}

GenesisState defines the issuance module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetTokenCount

func (m *GenesisState) GetTokenCount() uint64

func (*GenesisState) GetTokenList

func (m *GenesisState) GetTokenList() []*Token

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 performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	IssueToken(ctx context.Context, in *MsgIssueToken, opts ...grpc.CallOption) (*MsgIssueTokenResponse, 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 MsgIssueToken

type MsgIssueToken struct {
	Creator       string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Denom         string `protobuf:"bytes,2,opt,name=denom,proto3" json:"denom,omitempty"`
	DisplayName   string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	Decimals      uint64 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"`
	InitialSupply uint64 `protobuf:"varint,5,opt,name=initial_supply,json=initialSupply,proto3" json:"initial_supply,omitempty"`
}

this line is used by starport scaffolding # proto/tx/message

func NewMsgIssueToken

func NewMsgIssueToken(creator, denom, display_name string, decimal uint64, initial_supply uint64) *MsgIssueToken

func (*MsgIssueToken) Descriptor

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

func (*MsgIssueToken) GetCreator

func (m *MsgIssueToken) GetCreator() string

func (*MsgIssueToken) GetDecimals

func (m *MsgIssueToken) GetDecimals() uint64

func (*MsgIssueToken) GetDenom

func (m *MsgIssueToken) GetDenom() string

func (*MsgIssueToken) GetDisplayName

func (m *MsgIssueToken) GetDisplayName() string

func (*MsgIssueToken) GetInitialSupply

func (m *MsgIssueToken) GetInitialSupply() uint64

func (*MsgIssueToken) GetSignBytes

func (m *MsgIssueToken) GetSignBytes() []byte

func (*MsgIssueToken) GetSigners

func (m *MsgIssueToken) GetSigners() []sdk.AccAddress

func (*MsgIssueToken) Marshal

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

func (*MsgIssueToken) MarshalTo

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

func (*MsgIssueToken) MarshalToSizedBuffer

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

func (*MsgIssueToken) ProtoMessage

func (*MsgIssueToken) ProtoMessage()

func (*MsgIssueToken) Reset

func (m *MsgIssueToken) Reset()

func (*MsgIssueToken) Route

func (m *MsgIssueToken) Route() string

func (*MsgIssueToken) Size

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

func (*MsgIssueToken) String

func (m *MsgIssueToken) String() string

func (*MsgIssueToken) Type

func (m *MsgIssueToken) Type() string

func (*MsgIssueToken) Unmarshal

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

func (*MsgIssueToken) ValidateBasic

func (m *MsgIssueToken) ValidateBasic() error

func (*MsgIssueToken) XXX_DiscardUnknown

func (m *MsgIssueToken) XXX_DiscardUnknown()

func (*MsgIssueToken) XXX_Marshal

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

func (*MsgIssueToken) XXX_Merge

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

func (*MsgIssueToken) XXX_Size

func (m *MsgIssueToken) XXX_Size() int

func (*MsgIssueToken) XXX_Unmarshal

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

type MsgIssueTokenResponse

type MsgIssueTokenResponse struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*MsgIssueTokenResponse) Descriptor

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

func (*MsgIssueTokenResponse) GetId

func (m *MsgIssueTokenResponse) GetId() uint64

func (*MsgIssueTokenResponse) Marshal

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

func (*MsgIssueTokenResponse) MarshalTo

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

func (*MsgIssueTokenResponse) MarshalToSizedBuffer

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

func (*MsgIssueTokenResponse) ProtoMessage

func (*MsgIssueTokenResponse) ProtoMessage()

func (*MsgIssueTokenResponse) Reset

func (m *MsgIssueTokenResponse) Reset()

func (*MsgIssueTokenResponse) Size

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

func (*MsgIssueTokenResponse) String

func (m *MsgIssueTokenResponse) String() string

func (*MsgIssueTokenResponse) Unmarshal

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

func (*MsgIssueTokenResponse) XXX_DiscardUnknown

func (m *MsgIssueTokenResponse) XXX_DiscardUnknown()

func (*MsgIssueTokenResponse) XXX_Marshal

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

func (*MsgIssueTokenResponse) XXX_Merge

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

func (*MsgIssueTokenResponse) XXX_Size

func (m *MsgIssueTokenResponse) XXX_Size() int

func (*MsgIssueTokenResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	IssueToken(context.Context, *MsgIssueToken) (*MsgIssueTokenResponse, error)
}

MsgServer is the server API for Msg service.

type QueryAllTokenRequest

type QueryAllTokenRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllTokenRequest) Descriptor

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

func (*QueryAllTokenRequest) GetPagination

func (m *QueryAllTokenRequest) GetPagination() *query.PageRequest

func (*QueryAllTokenRequest) Marshal

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

func (*QueryAllTokenRequest) MarshalTo

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

func (*QueryAllTokenRequest) MarshalToSizedBuffer

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

func (*QueryAllTokenRequest) ProtoMessage

func (*QueryAllTokenRequest) ProtoMessage()

func (*QueryAllTokenRequest) Reset

func (m *QueryAllTokenRequest) Reset()

func (*QueryAllTokenRequest) Size

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

func (*QueryAllTokenRequest) String

func (m *QueryAllTokenRequest) String() string

func (*QueryAllTokenRequest) Unmarshal

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

func (*QueryAllTokenRequest) XXX_DiscardUnknown

func (m *QueryAllTokenRequest) XXX_DiscardUnknown()

func (*QueryAllTokenRequest) XXX_Marshal

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

func (*QueryAllTokenRequest) XXX_Merge

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

func (*QueryAllTokenRequest) XXX_Size

func (m *QueryAllTokenRequest) XXX_Size() int

func (*QueryAllTokenRequest) XXX_Unmarshal

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

type QueryAllTokenResponse

type QueryAllTokenResponse struct {
	Tokens     []*Token            `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllTokenResponse) Descriptor

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

func (*QueryAllTokenResponse) GetPagination

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

func (*QueryAllTokenResponse) GetTokens

func (m *QueryAllTokenResponse) GetTokens() []*Token

func (*QueryAllTokenResponse) Marshal

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

func (*QueryAllTokenResponse) MarshalTo

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

func (*QueryAllTokenResponse) MarshalToSizedBuffer

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

func (*QueryAllTokenResponse) ProtoMessage

func (*QueryAllTokenResponse) ProtoMessage()

func (*QueryAllTokenResponse) Reset

func (m *QueryAllTokenResponse) Reset()

func (*QueryAllTokenResponse) Size

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

func (*QueryAllTokenResponse) String

func (m *QueryAllTokenResponse) String() string

func (*QueryAllTokenResponse) Unmarshal

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

func (*QueryAllTokenResponse) XXX_DiscardUnknown

func (m *QueryAllTokenResponse) XXX_DiscardUnknown()

func (*QueryAllTokenResponse) XXX_Marshal

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

func (*QueryAllTokenResponse) XXX_Merge

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

func (*QueryAllTokenResponse) XXX_Size

func (m *QueryAllTokenResponse) XXX_Size() int

func (*QueryAllTokenResponse) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Queries a token by id.
	Token(ctx context.Context, in *QueryGetTokenRequest, opts ...grpc.CallOption) (*QueryGetTokenResponse, error)
	// Queries a list of token items.
	TokenAll(ctx context.Context, in *QueryAllTokenRequest, opts ...grpc.CallOption) (*QueryAllTokenResponse, error)
	// Query  token by address
	TokenByDenom(ctx context.Context, in *QueryTokenByDenomRequest, opts ...grpc.CallOption) (*QueryGetTokenResponse, error)
	// Query tokens by Owner
	TokensByOwner(ctx context.Context, in *QueryTokensByOwnerRequest, opts ...grpc.CallOption) (*QueryAllTokenResponse, 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 QueryGetTokenRequest

type QueryGetTokenRequest struct {
	Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}

this line is used by starport scaffolding # 3

func (*QueryGetTokenRequest) Descriptor

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

func (*QueryGetTokenRequest) GetId

func (m *QueryGetTokenRequest) GetId() uint64

func (*QueryGetTokenRequest) Marshal

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

func (*QueryGetTokenRequest) MarshalTo

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

func (*QueryGetTokenRequest) MarshalToSizedBuffer

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

func (*QueryGetTokenRequest) ProtoMessage

func (*QueryGetTokenRequest) ProtoMessage()

func (*QueryGetTokenRequest) Reset

func (m *QueryGetTokenRequest) Reset()

func (*QueryGetTokenRequest) Size

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

func (*QueryGetTokenRequest) String

func (m *QueryGetTokenRequest) String() string

func (*QueryGetTokenRequest) Unmarshal

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

func (*QueryGetTokenRequest) XXX_DiscardUnknown

func (m *QueryGetTokenRequest) XXX_DiscardUnknown()

func (*QueryGetTokenRequest) XXX_Marshal

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

func (*QueryGetTokenRequest) XXX_Merge

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

func (*QueryGetTokenRequest) XXX_Size

func (m *QueryGetTokenRequest) XXX_Size() int

func (*QueryGetTokenRequest) XXX_Unmarshal

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

type QueryGetTokenResponse

type QueryGetTokenResponse struct {
	Token *Token `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
}

func (*QueryGetTokenResponse) Descriptor

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

func (*QueryGetTokenResponse) GetToken

func (m *QueryGetTokenResponse) GetToken() *Token

func (*QueryGetTokenResponse) Marshal

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

func (*QueryGetTokenResponse) MarshalTo

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

func (*QueryGetTokenResponse) MarshalToSizedBuffer

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

func (*QueryGetTokenResponse) ProtoMessage

func (*QueryGetTokenResponse) ProtoMessage()

func (*QueryGetTokenResponse) Reset

func (m *QueryGetTokenResponse) Reset()

func (*QueryGetTokenResponse) Size

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

func (*QueryGetTokenResponse) String

func (m *QueryGetTokenResponse) String() string

func (*QueryGetTokenResponse) Unmarshal

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

func (*QueryGetTokenResponse) XXX_DiscardUnknown

func (m *QueryGetTokenResponse) XXX_DiscardUnknown()

func (*QueryGetTokenResponse) XXX_Marshal

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

func (*QueryGetTokenResponse) XXX_Merge

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

func (*QueryGetTokenResponse) XXX_Size

func (m *QueryGetTokenResponse) XXX_Size() int

func (*QueryGetTokenResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Queries a token by id.
	Token(context.Context, *QueryGetTokenRequest) (*QueryGetTokenResponse, error)
	// Queries a list of token items.
	TokenAll(context.Context, *QueryAllTokenRequest) (*QueryAllTokenResponse, error)
	// Query  token by address
	TokenByDenom(context.Context, *QueryTokenByDenomRequest) (*QueryGetTokenResponse, error)
	// Query tokens by Owner
	TokensByOwner(context.Context, *QueryTokensByOwnerRequest) (*QueryAllTokenResponse, error)
}

QueryServer is the server API for Query service.

type QueryTokenByDenomRequest added in v1.1.0

type QueryTokenByDenomRequest struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
}

func (*QueryTokenByDenomRequest) Descriptor added in v1.1.0

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

func (*QueryTokenByDenomRequest) GetDenom added in v1.1.0

func (m *QueryTokenByDenomRequest) GetDenom() string

func (*QueryTokenByDenomRequest) Marshal added in v1.1.0

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

func (*QueryTokenByDenomRequest) MarshalTo added in v1.1.0

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

func (*QueryTokenByDenomRequest) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryTokenByDenomRequest) ProtoMessage added in v1.1.0

func (*QueryTokenByDenomRequest) ProtoMessage()

func (*QueryTokenByDenomRequest) Reset added in v1.1.0

func (m *QueryTokenByDenomRequest) Reset()

func (*QueryTokenByDenomRequest) Size added in v1.1.0

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

func (*QueryTokenByDenomRequest) String added in v1.1.0

func (m *QueryTokenByDenomRequest) String() string

func (*QueryTokenByDenomRequest) Unmarshal added in v1.1.0

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

func (*QueryTokenByDenomRequest) XXX_DiscardUnknown added in v1.1.0

func (m *QueryTokenByDenomRequest) XXX_DiscardUnknown()

func (*QueryTokenByDenomRequest) XXX_Marshal added in v1.1.0

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

func (*QueryTokenByDenomRequest) XXX_Merge added in v1.1.0

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

func (*QueryTokenByDenomRequest) XXX_Size added in v1.1.0

func (m *QueryTokenByDenomRequest) XXX_Size() int

func (*QueryTokenByDenomRequest) XXX_Unmarshal added in v1.1.0

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

type QueryTokensByOwnerRequest added in v1.1.0

type QueryTokensByOwnerRequest struct {
	Address    string             `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryTokensByOwnerRequest) Descriptor added in v1.1.0

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

func (*QueryTokensByOwnerRequest) GetAddress added in v1.1.0

func (m *QueryTokensByOwnerRequest) GetAddress() string

func (*QueryTokensByOwnerRequest) GetPagination added in v1.1.0

func (m *QueryTokensByOwnerRequest) GetPagination() *query.PageRequest

func (*QueryTokensByOwnerRequest) Marshal added in v1.1.0

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

func (*QueryTokensByOwnerRequest) MarshalTo added in v1.1.0

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

func (*QueryTokensByOwnerRequest) MarshalToSizedBuffer added in v1.1.0

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

func (*QueryTokensByOwnerRequest) ProtoMessage added in v1.1.0

func (*QueryTokensByOwnerRequest) ProtoMessage()

func (*QueryTokensByOwnerRequest) Reset added in v1.1.0

func (m *QueryTokensByOwnerRequest) Reset()

func (*QueryTokensByOwnerRequest) Size added in v1.1.0

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

func (*QueryTokensByOwnerRequest) String added in v1.1.0

func (m *QueryTokensByOwnerRequest) String() string

func (*QueryTokensByOwnerRequest) Unmarshal added in v1.1.0

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

func (*QueryTokensByOwnerRequest) XXX_DiscardUnknown added in v1.1.0

func (m *QueryTokensByOwnerRequest) XXX_DiscardUnknown()

func (*QueryTokensByOwnerRequest) XXX_Marshal added in v1.1.0

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

func (*QueryTokensByOwnerRequest) XXX_Merge added in v1.1.0

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

func (*QueryTokensByOwnerRequest) XXX_Size added in v1.1.0

func (m *QueryTokensByOwnerRequest) XXX_Size() int

func (*QueryTokensByOwnerRequest) XXX_Unmarshal added in v1.1.0

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

type Token

type Token struct {
	Creator       string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Id            uint64 `protobuf:"varint,2,opt,name=id,proto3" json:"id,omitempty"`
	Denom         string `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
	Decimals      uint64 `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"`
	DisplayName   string `protobuf:"bytes,5,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	InitialSupply uint64 `protobuf:"varint,6,opt,name=initial_supply,json=initialSupply,proto3" json:"initial_supply,omitempty"`
	Holders       uint64 `protobuf:"varint,7,opt,name=holders,proto3" json:"holders,omitempty"`
}

func MustUnmashalToken added in v1.1.0

func MustUnmashalToken(cdc codec.BinaryCodec, value []byte) (token Token)

func UnMarshalToken added in v1.1.0

func UnMarshalToken(cdc codec.BinaryCodec, value []byte) (token Token, err error)

func (*Token) Descriptor

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

func (*Token) GetCreator

func (m *Token) GetCreator() string

func (*Token) GetDecimals

func (m *Token) GetDecimals() uint64

func (*Token) GetDenom

func (m *Token) GetDenom() string

func (*Token) GetDisplayName

func (m *Token) GetDisplayName() string

func (*Token) GetHolders

func (m *Token) GetHolders() uint64

func (*Token) GetId

func (m *Token) GetId() uint64

func (*Token) GetInitialSupply

func (m *Token) GetInitialSupply() uint64

func (*Token) Marshal

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

func (*Token) MarshalTo

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

func (*Token) MarshalToSizedBuffer

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

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) Reset

func (m *Token) Reset()

func (*Token) Size

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

func (*Token) String

func (m *Token) String() string

func (*Token) Unmarshal

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

func (*Token) XXX_DiscardUnknown

func (m *Token) XXX_DiscardUnknown()

func (*Token) XXX_Marshal

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

func (*Token) XXX_Merge

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

func (*Token) XXX_Size

func (m *Token) XXX_Size() int

func (*Token) XXX_Unmarshal

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

type TokenDenoms

type TokenDenoms struct {
	Denoms []string `protobuf:"bytes,1,rep,name=denoms,proto3" json:"denoms,omitempty"`
}

func (*TokenDenoms) Descriptor

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

func (*TokenDenoms) GetDenoms

func (m *TokenDenoms) GetDenoms() []string

func (*TokenDenoms) Marshal

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

func (*TokenDenoms) MarshalTo

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

func (*TokenDenoms) MarshalToSizedBuffer

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

func (*TokenDenoms) ProtoMessage

func (*TokenDenoms) ProtoMessage()

func (*TokenDenoms) Reset

func (m *TokenDenoms) Reset()

func (*TokenDenoms) Size

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

func (*TokenDenoms) String

func (m *TokenDenoms) String() string

func (*TokenDenoms) Unmarshal

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

func (*TokenDenoms) XXX_DiscardUnknown

func (m *TokenDenoms) XXX_DiscardUnknown()

func (*TokenDenoms) XXX_Marshal

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

func (*TokenDenoms) XXX_Merge

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

func (*TokenDenoms) XXX_Size

func (m *TokenDenoms) XXX_Size() int

func (*TokenDenoms) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) IssueToken

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Token

func (*UnimplementedQueryServer) TokenAll

func (*UnimplementedQueryServer) TokenByDenom added in v1.1.0

func (*UnimplementedQueryServer) TokensByOwner added in v1.1.0

Jump to

Keyboard shortcuts

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