types

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT 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 (
	EventTypeTokenCreated      = "create_token"
	EventTypeTokenUpdated      = "update_token"
	EventTypeTokenAuthorized   = "authorize_token"
	EventTypeTokenUnAuthorized = "unauthorize_token"

	AttributeKeySymbol  = "symbol"
	AttributeKeyIndex   = "index"
	AttributeKeyAddress = "index"

	AttributeValueCategory = ModuleName
)

staking module event types

View Source
const (
	EventTypeTimeout = "timeout"

	AttributeKeyAckSuccess = "success"
	AttributeKeyAck        = "acknowledgement"
	AttributeKeyAckError   = "error"
)

IBC events

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

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

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

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_asset"

	// Version defines the current version the IBC module supports
	Version = "asset-1"

	// PortID is the default port id that module binds to
	PortID = "asset"

	// TokenKeyPrefix is the prefix to retrieve all Token
	TokenKeyPrefix = "Token/value/"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const TypeMsgAuthorizeAddress = "authorize_address"
View Source
const TypeMsgCreateToken = "create_token"
View Source
const TypeMsgTransferToken = "transfer_token"
View Source
const TypeMsgUnAuthorizeAddress = "un_authorize_address"
View Source
const TypeMsgUpdateToken = "update_token"

Variables

View Source
var (
	ErrSample               = sdkerrors.Register(ModuleName, 1100, "sample error")
	ErrInvalidPacketTimeout = sdkerrors.Register(ModuleName, 1500, "invalid packet timeout")
	ErrInvalidVersion       = sdkerrors.Register(ModuleName, 1501, "invalid version")
)

x/asset module sentinel errors

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 (
	ErrInvalidLengthPacket        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPacket          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPacket = fmt.Errorf("proto: unexpected end of group")
)
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 (
	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 (
	// PortKey defines the key to store the port ID in store
	PortKey = KeyPrefix("asset-port-")
)

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable added in v0.0.4

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

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 TokenKey

func TokenKey(
	index string,
) []byte

TokenKey returns the store key to retrieve a Token from the index fields

Types

type AccountKeeper added in v0.0.4

type AccountKeeper interface {
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) types.AccountI
}

AccountKeeper defines the expected account keeper

type AssetPacketData

type AssetPacketData struct {
	// Types that are valid to be assigned to Packet:
	//	*AssetPacketData_NoData
	Packet isAssetPacketData_Packet `protobuf_oneof:"packet"`
}

func (*AssetPacketData) Descriptor

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

func (*AssetPacketData) GetNoData

func (m *AssetPacketData) GetNoData() *NoData

func (*AssetPacketData) GetPacket

func (m *AssetPacketData) GetPacket() isAssetPacketData_Packet

func (*AssetPacketData) Marshal

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

func (*AssetPacketData) MarshalTo

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

func (*AssetPacketData) MarshalToSizedBuffer

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

func (*AssetPacketData) ProtoMessage

func (*AssetPacketData) ProtoMessage()

func (*AssetPacketData) Reset

func (m *AssetPacketData) Reset()

func (*AssetPacketData) Size

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

func (*AssetPacketData) String

func (m *AssetPacketData) String() string

func (*AssetPacketData) Unmarshal

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

func (*AssetPacketData) XXX_DiscardUnknown

func (m *AssetPacketData) XXX_DiscardUnknown()

func (*AssetPacketData) XXX_Marshal

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

func (*AssetPacketData) XXX_Merge

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

func (*AssetPacketData) XXX_OneofWrappers

func (*AssetPacketData) XXX_OneofWrappers() []interface{}

XXX_OneofWrappers is for the internal use of the proto package.

func (*AssetPacketData) XXX_Size

func (m *AssetPacketData) XXX_Size() int

func (*AssetPacketData) XXX_Unmarshal

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

type AssetPacketData_NoData

type AssetPacketData_NoData struct {
	NoData *NoData `protobuf:"bytes,1,opt,name=noData,proto3,oneof" json:"noData,omitempty"`
}

func (*AssetPacketData_NoData) MarshalTo

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

func (*AssetPacketData_NoData) MarshalToSizedBuffer

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

func (*AssetPacketData_NoData) Size

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

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx sdk.Context, addr sdk.AccAddress) sdk.Coins
	SendCoins(ctx sdk.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx sdk.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	MintCoins(ctx sdk.Context, moduleName string, amt sdk.Coins) error
	SetDenomMetaData(ctx sdk.Context, denomMetaData banktypes.Metadata)
}

BankKeeper defines the expected interface needed to retrieve account balances.

type GenesisState

type GenesisState struct {
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
}

GenesisState defines the asset 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) GetParams added in v0.0.4

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetPortId

func (m *GenesisState) GetPortId() string

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 MsgAuthorizeAddress

type MsgAuthorizeAddress struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Symbol  string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
}

func NewMsgAuthorizeAddress

func NewMsgAuthorizeAddress(creator string, symbol string, address string) *MsgAuthorizeAddress

func (*MsgAuthorizeAddress) Descriptor

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

func (*MsgAuthorizeAddress) GetAddress

func (m *MsgAuthorizeAddress) GetAddress() string

func (*MsgAuthorizeAddress) GetCreator

func (m *MsgAuthorizeAddress) GetCreator() string

func (*MsgAuthorizeAddress) GetSignBytes

func (msg *MsgAuthorizeAddress) GetSignBytes() []byte

func (*MsgAuthorizeAddress) GetSigners

func (msg *MsgAuthorizeAddress) GetSigners() []sdk.AccAddress

func (*MsgAuthorizeAddress) GetSymbol added in v0.0.4

func (m *MsgAuthorizeAddress) GetSymbol() string

func (*MsgAuthorizeAddress) Marshal

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

func (*MsgAuthorizeAddress) MarshalTo

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

func (*MsgAuthorizeAddress) MarshalToSizedBuffer

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

func (*MsgAuthorizeAddress) ProtoMessage

func (*MsgAuthorizeAddress) ProtoMessage()

func (*MsgAuthorizeAddress) Reset

func (m *MsgAuthorizeAddress) Reset()

func (*MsgAuthorizeAddress) Route

func (msg *MsgAuthorizeAddress) Route() string

func (*MsgAuthorizeAddress) Size

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

func (*MsgAuthorizeAddress) String

func (m *MsgAuthorizeAddress) String() string

func (*MsgAuthorizeAddress) Type

func (msg *MsgAuthorizeAddress) Type() string

func (*MsgAuthorizeAddress) Unmarshal

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

func (*MsgAuthorizeAddress) ValidateBasic

func (msg *MsgAuthorizeAddress) ValidateBasic() error

func (*MsgAuthorizeAddress) XXX_DiscardUnknown

func (m *MsgAuthorizeAddress) XXX_DiscardUnknown()

func (*MsgAuthorizeAddress) XXX_Marshal

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

func (*MsgAuthorizeAddress) XXX_Merge

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

func (*MsgAuthorizeAddress) XXX_Size

func (m *MsgAuthorizeAddress) XXX_Size() int

func (*MsgAuthorizeAddress) XXX_Unmarshal

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

type MsgAuthorizeAddressResponse

type MsgAuthorizeAddressResponse struct {
}

func (*MsgAuthorizeAddressResponse) Descriptor

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

func (*MsgAuthorizeAddressResponse) Marshal

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

func (*MsgAuthorizeAddressResponse) MarshalTo

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

func (*MsgAuthorizeAddressResponse) MarshalToSizedBuffer

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

func (*MsgAuthorizeAddressResponse) ProtoMessage

func (*MsgAuthorizeAddressResponse) ProtoMessage()

func (*MsgAuthorizeAddressResponse) Reset

func (m *MsgAuthorizeAddressResponse) Reset()

func (*MsgAuthorizeAddressResponse) Size

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

func (*MsgAuthorizeAddressResponse) String

func (m *MsgAuthorizeAddressResponse) String() string

func (*MsgAuthorizeAddressResponse) Unmarshal

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

func (*MsgAuthorizeAddressResponse) XXX_DiscardUnknown

func (m *MsgAuthorizeAddressResponse) XXX_DiscardUnknown()

func (*MsgAuthorizeAddressResponse) XXX_Marshal

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

func (*MsgAuthorizeAddressResponse) XXX_Merge

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

func (*MsgAuthorizeAddressResponse) XXX_Size

func (m *MsgAuthorizeAddressResponse) XXX_Size() int

func (*MsgAuthorizeAddressResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	CreateToken(ctx context.Context, in *MsgCreateToken, opts ...grpc.CallOption) (*MsgCreateTokenResponse, error)
	UpdateToken(ctx context.Context, in *MsgUpdateToken, opts ...grpc.CallOption) (*MsgUpdateTokenResponse, error)
	AuthorizeAddress(ctx context.Context, in *MsgAuthorizeAddress, opts ...grpc.CallOption) (*MsgAuthorizeAddressResponse, error)
	UnAuthorizeAddress(ctx context.Context, in *MsgUnAuthorizeAddress, opts ...grpc.CallOption) (*MsgUnAuthorizeAddressResponse, error)
	TransferToken(ctx context.Context, in *MsgTransferToken, opts ...grpc.CallOption) (*MsgTransferTokenResponse, 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 MsgCreateToken

type MsgCreateToken struct {
	Creator               string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Name                  string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Symbol                string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Total                 int64  `protobuf:"varint,4,opt,name=total,proto3" json:"total,omitempty"`
	Decimals              int64  `protobuf:"varint,5,opt,name=decimals,proto3" json:"decimals,omitempty"`
	AuthorizationRequired bool   `protobuf:"varint,6,opt,name=authorizationRequired,proto3" json:"authorizationRequired,omitempty"`
}

func NewMsgCreateToken

func NewMsgCreateToken(creator string, name string, symbol string, total int64, decimals int64, authorizationRequired bool) *MsgCreateToken

func (*MsgCreateToken) Descriptor

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

func (*MsgCreateToken) GetAuthorizationRequired

func (m *MsgCreateToken) GetAuthorizationRequired() bool

func (*MsgCreateToken) GetCreator

func (m *MsgCreateToken) GetCreator() string

func (*MsgCreateToken) GetDecimals

func (m *MsgCreateToken) GetDecimals() int64

func (*MsgCreateToken) GetName

func (m *MsgCreateToken) GetName() string

func (*MsgCreateToken) GetSignBytes

func (msg *MsgCreateToken) GetSignBytes() []byte

func (*MsgCreateToken) GetSigners

func (msg *MsgCreateToken) GetSigners() []sdk.AccAddress

func (*MsgCreateToken) GetSymbol

func (m *MsgCreateToken) GetSymbol() string

func (*MsgCreateToken) GetTotal

func (m *MsgCreateToken) GetTotal() int64

func (*MsgCreateToken) Marshal

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

func (*MsgCreateToken) MarshalTo

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

func (*MsgCreateToken) MarshalToSizedBuffer

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

func (*MsgCreateToken) ProtoMessage

func (*MsgCreateToken) ProtoMessage()

func (*MsgCreateToken) Reset

func (m *MsgCreateToken) Reset()

func (*MsgCreateToken) Route

func (msg *MsgCreateToken) Route() string

func (*MsgCreateToken) Size

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

func (*MsgCreateToken) String

func (m *MsgCreateToken) String() string

func (*MsgCreateToken) Type

func (msg *MsgCreateToken) Type() string

func (*MsgCreateToken) Unmarshal

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

func (*MsgCreateToken) ValidateBasic

func (msg *MsgCreateToken) ValidateBasic() error

func (*MsgCreateToken) XXX_DiscardUnknown

func (m *MsgCreateToken) XXX_DiscardUnknown()

func (*MsgCreateToken) XXX_Marshal

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

func (*MsgCreateToken) XXX_Merge

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

func (*MsgCreateToken) XXX_Size

func (m *MsgCreateToken) XXX_Size() int

func (*MsgCreateToken) XXX_Unmarshal

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

type MsgCreateTokenResponse

type MsgCreateTokenResponse struct {
}

func (*MsgCreateTokenResponse) Descriptor

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

func (*MsgCreateTokenResponse) Marshal

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

func (*MsgCreateTokenResponse) MarshalTo

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

func (*MsgCreateTokenResponse) MarshalToSizedBuffer

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

func (*MsgCreateTokenResponse) ProtoMessage

func (*MsgCreateTokenResponse) ProtoMessage()

func (*MsgCreateTokenResponse) Reset

func (m *MsgCreateTokenResponse) Reset()

func (*MsgCreateTokenResponse) Size

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

func (*MsgCreateTokenResponse) String

func (m *MsgCreateTokenResponse) String() string

func (*MsgCreateTokenResponse) Unmarshal

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

func (*MsgCreateTokenResponse) XXX_DiscardUnknown

func (m *MsgCreateTokenResponse) XXX_DiscardUnknown()

func (*MsgCreateTokenResponse) XXX_Marshal

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

func (*MsgCreateTokenResponse) XXX_Merge

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

func (*MsgCreateTokenResponse) XXX_Size

func (m *MsgCreateTokenResponse) XXX_Size() int

func (*MsgCreateTokenResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgTransferToken

type MsgTransferToken struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Symbol  string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	From    string `protobuf:"bytes,3,opt,name=from,proto3" json:"from,omitempty"`
	To      string `protobuf:"bytes,4,opt,name=to,proto3" json:"to,omitempty"`
	Amount  int64  `protobuf:"varint,5,opt,name=amount,proto3" json:"amount,omitempty"`
}

func NewMsgTransferToken

func NewMsgTransferToken(creator string, symbol string, from string, to string, amount int64) *MsgTransferToken

func (*MsgTransferToken) Descriptor

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

func (*MsgTransferToken) GetAmount

func (m *MsgTransferToken) GetAmount() int64

func (*MsgTransferToken) GetCreator

func (m *MsgTransferToken) GetCreator() string

func (*MsgTransferToken) GetFrom

func (m *MsgTransferToken) GetFrom() string

func (*MsgTransferToken) GetSignBytes

func (msg *MsgTransferToken) GetSignBytes() []byte

func (*MsgTransferToken) GetSigners

func (msg *MsgTransferToken) GetSigners() []sdk.AccAddress

func (*MsgTransferToken) GetSymbol

func (m *MsgTransferToken) GetSymbol() string

func (*MsgTransferToken) GetTo

func (m *MsgTransferToken) GetTo() string

func (*MsgTransferToken) Marshal

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

func (*MsgTransferToken) MarshalTo

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

func (*MsgTransferToken) MarshalToSizedBuffer

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

func (*MsgTransferToken) ProtoMessage

func (*MsgTransferToken) ProtoMessage()

func (*MsgTransferToken) Reset

func (m *MsgTransferToken) Reset()

func (*MsgTransferToken) Route

func (msg *MsgTransferToken) Route() string

func (*MsgTransferToken) Size

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

func (*MsgTransferToken) String

func (m *MsgTransferToken) String() string

func (*MsgTransferToken) Type

func (msg *MsgTransferToken) Type() string

func (*MsgTransferToken) Unmarshal

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

func (*MsgTransferToken) ValidateBasic

func (msg *MsgTransferToken) ValidateBasic() error

func (*MsgTransferToken) XXX_DiscardUnknown

func (m *MsgTransferToken) XXX_DiscardUnknown()

func (*MsgTransferToken) XXX_Marshal

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

func (*MsgTransferToken) XXX_Merge

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

func (*MsgTransferToken) XXX_Size

func (m *MsgTransferToken) XXX_Size() int

func (*MsgTransferToken) XXX_Unmarshal

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

type MsgTransferTokenResponse

type MsgTransferTokenResponse struct {
}

func (*MsgTransferTokenResponse) Descriptor

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

func (*MsgTransferTokenResponse) Marshal

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

func (*MsgTransferTokenResponse) MarshalTo

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

func (*MsgTransferTokenResponse) MarshalToSizedBuffer

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

func (*MsgTransferTokenResponse) ProtoMessage

func (*MsgTransferTokenResponse) ProtoMessage()

func (*MsgTransferTokenResponse) Reset

func (m *MsgTransferTokenResponse) Reset()

func (*MsgTransferTokenResponse) Size

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

func (*MsgTransferTokenResponse) String

func (m *MsgTransferTokenResponse) String() string

func (*MsgTransferTokenResponse) Unmarshal

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

func (*MsgTransferTokenResponse) XXX_DiscardUnknown

func (m *MsgTransferTokenResponse) XXX_DiscardUnknown()

func (*MsgTransferTokenResponse) XXX_Marshal

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

func (*MsgTransferTokenResponse) XXX_Merge

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

func (*MsgTransferTokenResponse) XXX_Size

func (m *MsgTransferTokenResponse) XXX_Size() int

func (*MsgTransferTokenResponse) XXX_Unmarshal

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

type MsgUnAuthorizeAddress

type MsgUnAuthorizeAddress struct {
	Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Symbol  string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
}

func NewMsgUnAuthorizeAddress

func NewMsgUnAuthorizeAddress(creator string, symbol string, address string) *MsgUnAuthorizeAddress

func (*MsgUnAuthorizeAddress) Descriptor

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

func (*MsgUnAuthorizeAddress) GetAddress

func (m *MsgUnAuthorizeAddress) GetAddress() string

func (*MsgUnAuthorizeAddress) GetCreator

func (m *MsgUnAuthorizeAddress) GetCreator() string

func (*MsgUnAuthorizeAddress) GetSignBytes

func (msg *MsgUnAuthorizeAddress) GetSignBytes() []byte

func (*MsgUnAuthorizeAddress) GetSigners

func (msg *MsgUnAuthorizeAddress) GetSigners() []sdk.AccAddress

func (*MsgUnAuthorizeAddress) GetSymbol added in v0.0.4

func (m *MsgUnAuthorizeAddress) GetSymbol() string

func (*MsgUnAuthorizeAddress) Marshal

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

func (*MsgUnAuthorizeAddress) MarshalTo

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

func (*MsgUnAuthorizeAddress) MarshalToSizedBuffer

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

func (*MsgUnAuthorizeAddress) ProtoMessage

func (*MsgUnAuthorizeAddress) ProtoMessage()

func (*MsgUnAuthorizeAddress) Reset

func (m *MsgUnAuthorizeAddress) Reset()

func (*MsgUnAuthorizeAddress) Route

func (msg *MsgUnAuthorizeAddress) Route() string

func (*MsgUnAuthorizeAddress) Size

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

func (*MsgUnAuthorizeAddress) String

func (m *MsgUnAuthorizeAddress) String() string

func (*MsgUnAuthorizeAddress) Type

func (msg *MsgUnAuthorizeAddress) Type() string

func (*MsgUnAuthorizeAddress) Unmarshal

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

func (*MsgUnAuthorizeAddress) ValidateBasic

func (msg *MsgUnAuthorizeAddress) ValidateBasic() error

func (*MsgUnAuthorizeAddress) XXX_DiscardUnknown

func (m *MsgUnAuthorizeAddress) XXX_DiscardUnknown()

func (*MsgUnAuthorizeAddress) XXX_Marshal

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

func (*MsgUnAuthorizeAddress) XXX_Merge

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

func (*MsgUnAuthorizeAddress) XXX_Size

func (m *MsgUnAuthorizeAddress) XXX_Size() int

func (*MsgUnAuthorizeAddress) XXX_Unmarshal

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

type MsgUnAuthorizeAddressResponse

type MsgUnAuthorizeAddressResponse struct {
}

func (*MsgUnAuthorizeAddressResponse) Descriptor

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

func (*MsgUnAuthorizeAddressResponse) Marshal

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

func (*MsgUnAuthorizeAddressResponse) MarshalTo

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

func (*MsgUnAuthorizeAddressResponse) MarshalToSizedBuffer

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

func (*MsgUnAuthorizeAddressResponse) ProtoMessage

func (*MsgUnAuthorizeAddressResponse) ProtoMessage()

func (*MsgUnAuthorizeAddressResponse) Reset

func (m *MsgUnAuthorizeAddressResponse) Reset()

func (*MsgUnAuthorizeAddressResponse) Size

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

func (*MsgUnAuthorizeAddressResponse) String

func (*MsgUnAuthorizeAddressResponse) Unmarshal

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

func (*MsgUnAuthorizeAddressResponse) XXX_DiscardUnknown

func (m *MsgUnAuthorizeAddressResponse) XXX_DiscardUnknown()

func (*MsgUnAuthorizeAddressResponse) XXX_Marshal

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

func (*MsgUnAuthorizeAddressResponse) XXX_Merge

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

func (*MsgUnAuthorizeAddressResponse) XXX_Size

func (m *MsgUnAuthorizeAddressResponse) XXX_Size() int

func (*MsgUnAuthorizeAddressResponse) XXX_Unmarshal

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

type MsgUpdateToken

type MsgUpdateToken struct {
	Creator               string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"`
	Symbol                string `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	AuthorizationRequired bool   `protobuf:"varint,3,opt,name=authorizationRequired,proto3" json:"authorizationRequired,omitempty"`
}

func NewMsgUpdateToken

func NewMsgUpdateToken(creator string, symbol string, authorizationRequired bool) *MsgUpdateToken

func (*MsgUpdateToken) Descriptor

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

func (*MsgUpdateToken) GetAuthorizationRequired

func (m *MsgUpdateToken) GetAuthorizationRequired() bool

func (*MsgUpdateToken) GetCreator

func (m *MsgUpdateToken) GetCreator() string

func (*MsgUpdateToken) GetSignBytes

func (msg *MsgUpdateToken) GetSignBytes() []byte

func (*MsgUpdateToken) GetSigners

func (msg *MsgUpdateToken) GetSigners() []sdk.AccAddress

func (*MsgUpdateToken) GetSymbol added in v0.0.4

func (m *MsgUpdateToken) GetSymbol() string

func (*MsgUpdateToken) Marshal

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

func (*MsgUpdateToken) MarshalTo

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

func (*MsgUpdateToken) MarshalToSizedBuffer

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

func (*MsgUpdateToken) ProtoMessage

func (*MsgUpdateToken) ProtoMessage()

func (*MsgUpdateToken) Reset

func (m *MsgUpdateToken) Reset()

func (*MsgUpdateToken) Route

func (msg *MsgUpdateToken) Route() string

func (*MsgUpdateToken) Size

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

func (*MsgUpdateToken) String

func (m *MsgUpdateToken) String() string

func (*MsgUpdateToken) Type

func (msg *MsgUpdateToken) Type() string

func (*MsgUpdateToken) Unmarshal

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

func (*MsgUpdateToken) ValidateBasic

func (msg *MsgUpdateToken) ValidateBasic() error

func (*MsgUpdateToken) XXX_DiscardUnknown

func (m *MsgUpdateToken) XXX_DiscardUnknown()

func (*MsgUpdateToken) XXX_Marshal

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

func (*MsgUpdateToken) XXX_Merge

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

func (*MsgUpdateToken) XXX_Size

func (m *MsgUpdateToken) XXX_Size() int

func (*MsgUpdateToken) XXX_Unmarshal

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

type MsgUpdateTokenResponse

type MsgUpdateTokenResponse struct {
}

func (*MsgUpdateTokenResponse) Descriptor

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

func (*MsgUpdateTokenResponse) Marshal

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

func (*MsgUpdateTokenResponse) MarshalTo

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

func (*MsgUpdateTokenResponse) MarshalToSizedBuffer

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

func (*MsgUpdateTokenResponse) ProtoMessage

func (*MsgUpdateTokenResponse) ProtoMessage()

func (*MsgUpdateTokenResponse) Reset

func (m *MsgUpdateTokenResponse) Reset()

func (*MsgUpdateTokenResponse) Size

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

func (*MsgUpdateTokenResponse) String

func (m *MsgUpdateTokenResponse) String() string

func (*MsgUpdateTokenResponse) Unmarshal

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

func (*MsgUpdateTokenResponse) XXX_DiscardUnknown

func (m *MsgUpdateTokenResponse) XXX_DiscardUnknown()

func (*MsgUpdateTokenResponse) XXX_Marshal

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

func (*MsgUpdateTokenResponse) XXX_Merge

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

func (*MsgUpdateTokenResponse) XXX_Size

func (m *MsgUpdateTokenResponse) XXX_Size() int

func (*MsgUpdateTokenResponse) XXX_Unmarshal

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

type NoData

type NoData struct {
}

func (*NoData) Descriptor

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

func (*NoData) Marshal

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

func (*NoData) MarshalTo

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

func (*NoData) MarshalToSizedBuffer

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

func (*NoData) ProtoMessage

func (*NoData) ProtoMessage()

func (*NoData) Reset

func (m *NoData) Reset()

func (*NoData) Size

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

func (*NoData) String

func (m *NoData) String() string

func (*NoData) Unmarshal

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

func (*NoData) XXX_DiscardUnknown

func (m *NoData) XXX_DiscardUnknown()

func (*NoData) XXX_Marshal

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

func (*NoData) XXX_Merge

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

func (*NoData) XXX_Size

func (m *NoData) XXX_Size() int

func (*NoData) XXX_Unmarshal

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

type Params added in v0.0.4

type Params struct {
}

Params defines the parameters for the module.

func DefaultParams added in v0.0.4

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams added in v0.0.4

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor added in v0.0.4

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

func (*Params) Marshal added in v0.0.4

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

func (*Params) MarshalTo added in v0.0.4

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

func (*Params) MarshalToSizedBuffer added in v0.0.4

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

func (*Params) ParamSetPairs added in v0.0.4

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

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage added in v0.0.4

func (*Params) ProtoMessage()

func (*Params) Reset added in v0.0.4

func (m *Params) Reset()

func (*Params) Size added in v0.0.4

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

func (Params) String added in v0.0.4

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal added in v0.0.4

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

func (Params) Validate added in v0.0.4

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown added in v0.0.4

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal added in v0.0.4

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

func (*Params) XXX_Merge added in v0.0.4

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

func (*Params) XXX_Size added in v0.0.4

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal added in v0.0.4

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	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 QueryParamsRequest added in v0.0.4

type QueryParamsRequest struct {
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor added in v0.0.4

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

func (*QueryParamsRequest) Marshal added in v0.0.4

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

func (*QueryParamsRequest) MarshalTo added in v0.0.4

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

func (*QueryParamsRequest) MarshalToSizedBuffer added in v0.0.4

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

func (*QueryParamsRequest) ProtoMessage added in v0.0.4

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset added in v0.0.4

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size added in v0.0.4

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

func (*QueryParamsRequest) String added in v0.0.4

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal added in v0.0.4

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

func (*QueryParamsRequest) XXX_DiscardUnknown added in v0.0.4

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal added in v0.0.4

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

func (*QueryParamsRequest) XXX_Merge added in v0.0.4

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

func (*QueryParamsRequest) XXX_Size added in v0.0.4

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal added in v0.0.4

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

type QueryParamsResponse added in v0.0.4

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor added in v0.0.4

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

func (*QueryParamsResponse) GetParams added in v0.0.4

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal added in v0.0.4

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

func (*QueryParamsResponse) MarshalTo added in v0.0.4

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

func (*QueryParamsResponse) MarshalToSizedBuffer added in v0.0.4

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

func (*QueryParamsResponse) ProtoMessage added in v0.0.4

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset added in v0.0.4

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size added in v0.0.4

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

func (*QueryParamsResponse) String added in v0.0.4

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal added in v0.0.4

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

func (*QueryParamsResponse) XXX_DiscardUnknown added in v0.0.4

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal added in v0.0.4

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

func (*QueryParamsResponse) XXX_Merge added in v0.0.4

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

func (*QueryParamsResponse) XXX_Size added in v0.0.4

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal added in v0.0.4

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
}

QueryServer is the server API for Query service.

type Token

type Token struct {
	Name                  string                         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Symbol                string                         `protobuf:"bytes,2,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Total                 int64                          `protobuf:"varint,3,opt,name=total,proto3" json:"total,omitempty"`
	Decimals              int64                          `protobuf:"varint,4,opt,name=decimals,proto3" json:"decimals,omitempty"`
	AuthorizationRequired bool                           `protobuf:"varint,5,opt,name=authorizationRequired,proto3" json:"authorizationRequired,omitempty"`
	Creator               string                         `protobuf:"bytes,6,opt,name=creator,proto3" json:"creator,omitempty"`
	Authorized            map[string]*TokenAuthorization `` /* 161-byte string literal not displayed */
	Created               int64                          `protobuf:"varint,8,opt,name=created,proto3" json:"created,omitempty"`
}

func (*Token) Descriptor

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

func (*Token) GetAuthorizationRequired

func (m *Token) GetAuthorizationRequired() bool

func (*Token) GetAuthorized

func (m *Token) GetAuthorized() map[string]*TokenAuthorization

func (*Token) GetCreated added in v0.0.4

func (m *Token) GetCreated() int64

func (*Token) GetCreator

func (m *Token) GetCreator() string

func (*Token) GetDecimals

func (m *Token) GetDecimals() int64

func (*Token) GetName

func (m *Token) GetName() string

func (*Token) GetSymbol

func (m *Token) GetSymbol() string

func (*Token) GetTotal

func (m *Token) GetTotal() int64

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 TokenAuthorization

type TokenAuthorization struct {
	TokenSymbol string `protobuf:"bytes,1,opt,name=tokenSymbol,proto3" json:"tokenSymbol,omitempty"`
	Address     string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	Authorized  bool   `protobuf:"varint,3,opt,name=authorized,proto3" json:"authorized,omitempty"`
}

func (*TokenAuthorization) Descriptor

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

func (*TokenAuthorization) GetAddress

func (m *TokenAuthorization) GetAddress() string

func (*TokenAuthorization) GetAuthorized

func (m *TokenAuthorization) GetAuthorized() bool

func (*TokenAuthorization) GetTokenSymbol added in v0.0.4

func (m *TokenAuthorization) GetTokenSymbol() string

func (*TokenAuthorization) Marshal

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

func (*TokenAuthorization) MarshalTo

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

func (*TokenAuthorization) MarshalToSizedBuffer

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

func (*TokenAuthorization) ProtoMessage

func (*TokenAuthorization) ProtoMessage()

func (*TokenAuthorization) Reset

func (m *TokenAuthorization) Reset()

func (*TokenAuthorization) Size

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

func (*TokenAuthorization) String

func (m *TokenAuthorization) String() string

func (*TokenAuthorization) Unmarshal

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

func (*TokenAuthorization) XXX_DiscardUnknown

func (m *TokenAuthorization) XXX_DiscardUnknown()

func (*TokenAuthorization) XXX_Marshal

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

func (*TokenAuthorization) XXX_Merge

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

func (*TokenAuthorization) XXX_Size

func (m *TokenAuthorization) XXX_Size() int

func (*TokenAuthorization) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AuthorizeAddress

func (*UnimplementedMsgServer) CreateToken

func (*UnimplementedMsgServer) TransferToken

func (*UnimplementedMsgServer) UnAuthorizeAddress

func (*UnimplementedMsgServer) UpdateToken

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params added in v0.0.4

Jump to

Keyboard shortcuts

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