Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func TokenKey(index string) []byte
- type AccountKeeper
- type BankKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetTokens() []Token
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type MsgAuthorizeAddress
- func (*MsgAuthorizeAddress) Descriptor() ([]byte, []int)
- func (m *MsgAuthorizeAddress) GetAddress() string
- func (m *MsgAuthorizeAddress) GetCreator() string
- func (msg *MsgAuthorizeAddress) GetSignBytes() []byte
- func (msg *MsgAuthorizeAddress) GetSigners() []sdk.AccAddress
- func (m *MsgAuthorizeAddress) GetSymbol() string
- func (m *MsgAuthorizeAddress) Marshal() (dAtA []byte, err error)
- func (m *MsgAuthorizeAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAuthorizeAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAuthorizeAddress) ProtoMessage()
- func (m *MsgAuthorizeAddress) Reset()
- func (msg *MsgAuthorizeAddress) Route() string
- func (m *MsgAuthorizeAddress) Size() (n int)
- func (m *MsgAuthorizeAddress) String() string
- func (msg *MsgAuthorizeAddress) Type() string
- func (m *MsgAuthorizeAddress) Unmarshal(dAtA []byte) error
- func (msg *MsgAuthorizeAddress) ValidateBasic() error
- func (m *MsgAuthorizeAddress) XXX_DiscardUnknown()
- func (m *MsgAuthorizeAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAuthorizeAddress) XXX_Merge(src proto.Message)
- func (m *MsgAuthorizeAddress) XXX_Size() int
- func (m *MsgAuthorizeAddress) XXX_Unmarshal(b []byte) error
- type MsgAuthorizeAddressResponse
- func (*MsgAuthorizeAddressResponse) Descriptor() ([]byte, []int)
- func (m *MsgAuthorizeAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgAuthorizeAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgAuthorizeAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgAuthorizeAddressResponse) ProtoMessage()
- func (m *MsgAuthorizeAddressResponse) Reset()
- func (m *MsgAuthorizeAddressResponse) Size() (n int)
- func (m *MsgAuthorizeAddressResponse) String() string
- func (m *MsgAuthorizeAddressResponse) Unmarshal(dAtA []byte) error
- func (m *MsgAuthorizeAddressResponse) XXX_DiscardUnknown()
- func (m *MsgAuthorizeAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgAuthorizeAddressResponse) XXX_Merge(src proto.Message)
- func (m *MsgAuthorizeAddressResponse) XXX_Size() int
- func (m *MsgAuthorizeAddressResponse) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgCreateToken
- func (*MsgCreateToken) Descriptor() ([]byte, []int)
- func (m *MsgCreateToken) GetAuthorizationRequired() bool
- func (m *MsgCreateToken) GetCreator() string
- func (m *MsgCreateToken) GetDecimals() string
- func (m *MsgCreateToken) GetName() string
- func (msg *MsgCreateToken) GetSignBytes() []byte
- func (msg *MsgCreateToken) GetSigners() []sdk.AccAddress
- func (m *MsgCreateToken) GetSymbol() string
- func (m *MsgCreateToken) GetTotal() string
- func (m *MsgCreateToken) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateToken) ProtoMessage()
- func (m *MsgCreateToken) Reset()
- func (msg *MsgCreateToken) Route() string
- func (m *MsgCreateToken) Size() (n int)
- func (m *MsgCreateToken) String() string
- func (msg *MsgCreateToken) Type() string
- func (m *MsgCreateToken) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateToken) ValidateBasic() error
- func (m *MsgCreateToken) XXX_DiscardUnknown()
- func (m *MsgCreateToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateToken) XXX_Merge(src proto.Message)
- func (m *MsgCreateToken) XXX_Size() int
- func (m *MsgCreateToken) XXX_Unmarshal(b []byte) error
- type MsgCreateTokenResponse
- func (*MsgCreateTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateTokenResponse) ProtoMessage()
- func (m *MsgCreateTokenResponse) Reset()
- func (m *MsgCreateTokenResponse) Size() (n int)
- func (m *MsgCreateTokenResponse) String() string
- func (m *MsgCreateTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateTokenResponse) XXX_DiscardUnknown()
- func (m *MsgCreateTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateTokenResponse) XXX_Size() int
- func (m *MsgCreateTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgTransferToken
- func (*MsgTransferToken) Descriptor() ([]byte, []int)
- func (m *MsgTransferToken) GetAmount() string
- func (m *MsgTransferToken) GetCreator() string
- func (m *MsgTransferToken) GetFrom() string
- func (msg *MsgTransferToken) GetSignBytes() []byte
- func (msg *MsgTransferToken) GetSigners() []sdk.AccAddress
- func (m *MsgTransferToken) GetSymbol() string
- func (m *MsgTransferToken) GetTo() string
- func (m *MsgTransferToken) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferToken) ProtoMessage()
- func (m *MsgTransferToken) Reset()
- func (msg *MsgTransferToken) Route() string
- func (m *MsgTransferToken) Size() (n int)
- func (m *MsgTransferToken) String() string
- func (msg *MsgTransferToken) Type() string
- func (m *MsgTransferToken) Unmarshal(dAtA []byte) error
- func (msg *MsgTransferToken) ValidateBasic() error
- func (m *MsgTransferToken) XXX_DiscardUnknown()
- func (m *MsgTransferToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferToken) XXX_Merge(src proto.Message)
- func (m *MsgTransferToken) XXX_Size() int
- func (m *MsgTransferToken) XXX_Unmarshal(b []byte) error
- type MsgTransferTokenResponse
- func (*MsgTransferTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgTransferTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgTransferTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgTransferTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgTransferTokenResponse) ProtoMessage()
- func (m *MsgTransferTokenResponse) Reset()
- func (m *MsgTransferTokenResponse) Size() (n int)
- func (m *MsgTransferTokenResponse) String() string
- func (m *MsgTransferTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgTransferTokenResponse) XXX_DiscardUnknown()
- func (m *MsgTransferTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgTransferTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgTransferTokenResponse) XXX_Size() int
- func (m *MsgTransferTokenResponse) XXX_Unmarshal(b []byte) error
- type MsgUnAuthorizeAddress
- func (*MsgUnAuthorizeAddress) Descriptor() ([]byte, []int)
- func (m *MsgUnAuthorizeAddress) GetAddress() string
- func (m *MsgUnAuthorizeAddress) GetCreator() string
- func (msg *MsgUnAuthorizeAddress) GetSignBytes() []byte
- func (msg *MsgUnAuthorizeAddress) GetSigners() []sdk.AccAddress
- func (m *MsgUnAuthorizeAddress) GetSymbol() string
- func (m *MsgUnAuthorizeAddress) Marshal() (dAtA []byte, err error)
- func (m *MsgUnAuthorizeAddress) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnAuthorizeAddress) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnAuthorizeAddress) ProtoMessage()
- func (m *MsgUnAuthorizeAddress) Reset()
- func (msg *MsgUnAuthorizeAddress) Route() string
- func (m *MsgUnAuthorizeAddress) Size() (n int)
- func (m *MsgUnAuthorizeAddress) String() string
- func (msg *MsgUnAuthorizeAddress) Type() string
- func (m *MsgUnAuthorizeAddress) Unmarshal(dAtA []byte) error
- func (msg *MsgUnAuthorizeAddress) ValidateBasic() error
- func (m *MsgUnAuthorizeAddress) XXX_DiscardUnknown()
- func (m *MsgUnAuthorizeAddress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnAuthorizeAddress) XXX_Merge(src proto.Message)
- func (m *MsgUnAuthorizeAddress) XXX_Size() int
- func (m *MsgUnAuthorizeAddress) XXX_Unmarshal(b []byte) error
- type MsgUnAuthorizeAddressResponse
- func (*MsgUnAuthorizeAddressResponse) Descriptor() ([]byte, []int)
- func (m *MsgUnAuthorizeAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUnAuthorizeAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUnAuthorizeAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUnAuthorizeAddressResponse) ProtoMessage()
- func (m *MsgUnAuthorizeAddressResponse) Reset()
- func (m *MsgUnAuthorizeAddressResponse) Size() (n int)
- func (m *MsgUnAuthorizeAddressResponse) String() string
- func (m *MsgUnAuthorizeAddressResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUnAuthorizeAddressResponse) XXX_DiscardUnknown()
- func (m *MsgUnAuthorizeAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUnAuthorizeAddressResponse) XXX_Merge(src proto.Message)
- func (m *MsgUnAuthorizeAddressResponse) XXX_Size() int
- func (m *MsgUnAuthorizeAddressResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateToken
- func (*MsgUpdateToken) Descriptor() ([]byte, []int)
- func (m *MsgUpdateToken) GetAuthorizationRequired() bool
- func (m *MsgUpdateToken) GetCreator() string
- func (msg *MsgUpdateToken) GetSignBytes() []byte
- func (msg *MsgUpdateToken) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateToken) GetSymbol() string
- func (m *MsgUpdateToken) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateToken) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateToken) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateToken) ProtoMessage()
- func (m *MsgUpdateToken) Reset()
- func (msg *MsgUpdateToken) Route() string
- func (m *MsgUpdateToken) Size() (n int)
- func (m *MsgUpdateToken) String() string
- func (msg *MsgUpdateToken) Type() string
- func (m *MsgUpdateToken) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateToken) ValidateBasic() error
- func (m *MsgUpdateToken) XXX_DiscardUnknown()
- func (m *MsgUpdateToken) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateToken) XXX_Merge(src proto.Message)
- func (m *MsgUpdateToken) XXX_Size() int
- func (m *MsgUpdateToken) XXX_Unmarshal(b []byte) error
- type MsgUpdateTokenResponse
- func (*MsgUpdateTokenResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateTokenResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateTokenResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateTokenResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateTokenResponse) ProtoMessage()
- func (m *MsgUpdateTokenResponse) Reset()
- func (m *MsgUpdateTokenResponse) Size() (n int)
- func (m *MsgUpdateTokenResponse) String() string
- func (m *MsgUpdateTokenResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateTokenResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateTokenResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateTokenResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateTokenResponse) XXX_Size() int
- func (m *MsgUpdateTokenResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryTokensRequest
- func (*QueryTokensRequest) Descriptor() ([]byte, []int)
- func (m *QueryTokensRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryTokensRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokensRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokensRequest) ProtoMessage()
- func (m *QueryTokensRequest) Reset()
- func (m *QueryTokensRequest) Size() (n int)
- func (m *QueryTokensRequest) String() string
- func (m *QueryTokensRequest) Unmarshal(dAtA []byte) error
- func (m *QueryTokensRequest) XXX_DiscardUnknown()
- func (m *QueryTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokensRequest) XXX_Merge(src proto.Message)
- func (m *QueryTokensRequest) XXX_Size() int
- func (m *QueryTokensRequest) XXX_Unmarshal(b []byte) error
- type QueryTokensResponse
- func (*QueryTokensResponse) Descriptor() ([]byte, []int)
- func (m *QueryTokensResponse) GetTokens() []Token
- func (m *QueryTokensResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryTokensResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryTokensResponse) ProtoMessage()
- func (m *QueryTokensResponse) Reset()
- func (m *QueryTokensResponse) Size() (n int)
- func (m *QueryTokensResponse) String() string
- func (m *QueryTokensResponse) Unmarshal(dAtA []byte) error
- func (m *QueryTokensResponse) XXX_DiscardUnknown()
- func (m *QueryTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryTokensResponse) XXX_Merge(src proto.Message)
- func (m *QueryTokensResponse) XXX_Size() int
- func (m *QueryTokensResponse) XXX_Unmarshal(b []byte) error
- type Token
- func (*Token) Descriptor() ([]byte, []int)
- func (m *Token) GetAuthorizationRequired() bool
- func (m *Token) GetAuthorized() map[string]*TokenAuthorization
- func (m *Token) GetCreated() int64
- func (m *Token) GetCreator() string
- func (m *Token) GetDecimals() string
- func (m *Token) GetName() string
- func (m *Token) GetSymbol() string
- func (m *Token) GetTotal() string
- func (m *Token) Marshal() (dAtA []byte, err error)
- func (m *Token) MarshalTo(dAtA []byte) (int, error)
- func (m *Token) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Token) ProtoMessage()
- func (m *Token) Reset()
- func (m *Token) Size() (n int)
- func (m *Token) String() string
- func (m *Token) Unmarshal(dAtA []byte) error
- func (m *Token) XXX_DiscardUnknown()
- func (m *Token) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Token) XXX_Merge(src proto.Message)
- func (m *Token) XXX_Size() int
- func (m *Token) XXX_Unmarshal(b []byte) error
- type TokenAuthorization
- func (*TokenAuthorization) Descriptor() ([]byte, []int)
- func (m *TokenAuthorization) GetAddress() string
- func (m *TokenAuthorization) GetAuthorized() bool
- func (m *TokenAuthorization) GetTokenSymbol() string
- func (m *TokenAuthorization) Marshal() (dAtA []byte, err error)
- func (m *TokenAuthorization) MarshalTo(dAtA []byte) (int, error)
- func (m *TokenAuthorization) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TokenAuthorization) ProtoMessage()
- func (m *TokenAuthorization) Reset()
- func (m *TokenAuthorization) Size() (n int)
- func (m *TokenAuthorization) String() string
- func (m *TokenAuthorization) Unmarshal(dAtA []byte) error
- func (m *TokenAuthorization) XXX_DiscardUnknown()
- func (m *TokenAuthorization) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TokenAuthorization) XXX_Merge(src proto.Message)
- func (m *TokenAuthorization) XXX_Size() int
- func (m *TokenAuthorization) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) AuthorizeAddress(ctx context.Context, req *MsgAuthorizeAddress) (*MsgAuthorizeAddressResponse, error)
- func (*UnimplementedMsgServer) CreateToken(ctx context.Context, req *MsgCreateToken) (*MsgCreateTokenResponse, error)
- func (*UnimplementedMsgServer) TransferToken(ctx context.Context, req *MsgTransferToken) (*MsgTransferTokenResponse, error)
- func (*UnimplementedMsgServer) UnAuthorizeAddress(ctx context.Context, req *MsgUnAuthorizeAddress) (*MsgUnAuthorizeAddressResponse, error)
- func (*UnimplementedMsgServer) UpdateToken(ctx context.Context, req *MsgUpdateToken) (*MsgUpdateTokenResponse, error)
- type UnimplementedQueryServer
Constants ¶
const ( EventTypeTokenCreated = "create_token" EventTypeTokenUpdated = "update_token" EventTypeTokenAuthorized = "authorize_token" EventTypeTokenUnAuthorized = "unauthorize_token" AttributeKeySymbol = "symbol" AttributeKeyIndex = "index" AttributeKeyAddress = "address" AttributeValueCategory = ModuleName )
staking module event types
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/" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const TypeMsgAuthorizeAddress = "authorize_address"
const TypeMsgCreateToken = "create_token"
const TypeMsgTransferToken = "transfer_token"
const TypeMsgUnAuthorizeAddress = "un_authorize_address"
const TypeMsgUpdateToken = "update_token"
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
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
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthToken = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowToken = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupToken = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( // PortKey defines the key to store the port ID in store PortKey = KeyPrefix("asset-port-") )
Functions ¶
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 RegisterQueryHandler ¶
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶
func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.
func RegisterQueryHandlerFromEndpoint ¶
func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)
RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.
func RegisterQueryHandlerServer ¶
func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type AccountKeeper ¶ added in v0.0.4
AccountKeeper defines the expected account keeper
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"` // registered tokens Tokens []Token `protobuf:"bytes,2,rep,name=tokens,proto3" json:"tokens"` }
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) GetTokens ¶ added in v0.6.0
func (m *GenesisState) GetTokens() []Token
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err error)
func (*GenesisState) MarshalToSizedBuffer ¶
func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*GenesisState) ProtoMessage ¶
func (*GenesisState) ProtoMessage()
func (*GenesisState) Reset ¶
func (m *GenesisState) Reset()
func (*GenesisState) Size ¶
func (m *GenesisState) Size() (n int)
func (*GenesisState) String ¶
func (m *GenesisState) String() string
func (*GenesisState) Unmarshal ¶
func (m *GenesisState) Unmarshal(dAtA []byte) error
func (GenesisState) Validate ¶
func (gs GenesisState) Validate() error
Validate 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 string `protobuf:"bytes,4,opt,name=total,proto3" json:"total,omitempty"` Decimals string `protobuf:"bytes,5,opt,name=decimals,proto3" json:"decimals,omitempty"` AuthorizationRequired bool `protobuf:"varint,6,opt,name=authorizationRequired,proto3" json:"authorizationRequired,omitempty"` }
func NewMsgCreateToken ¶
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() string
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() string
func (*MsgCreateToken) Marshal ¶
func (m *MsgCreateToken) Marshal() (dAtA []byte, err 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 ¶
type MsgServer interface { CreateToken(context.Context, *MsgCreateToken) (*MsgCreateTokenResponse, error) UpdateToken(context.Context, *MsgUpdateToken) (*MsgUpdateTokenResponse, error) AuthorizeAddress(context.Context, *MsgAuthorizeAddress) (*MsgAuthorizeAddressResponse, error) UnAuthorizeAddress(context.Context, *MsgUnAuthorizeAddress) (*MsgUnAuthorizeAddressResponse, error) TransferToken(context.Context, *MsgTransferToken) (*MsgTransferTokenResponse, error) }
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 string `protobuf:"bytes,5,opt,name=amount,proto3" json:"amount,omitempty"` }
func NewMsgTransferToken ¶
func (*MsgTransferToken) Descriptor ¶
func (*MsgTransferToken) Descriptor() ([]byte, []int)
func (*MsgTransferToken) GetAmount ¶
func (m *MsgTransferToken) GetAmount() string
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) 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 (m *MsgUnAuthorizeAddressResponse) String() 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) 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 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 (*Params) Descriptor ¶ added in v0.0.4
func (*Params) MarshalToSizedBuffer ¶ added in v0.0.4
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) XXX_DiscardUnknown ¶ added in v0.0.4
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶ added in v0.0.4
func (*Params) XXX_Unmarshal ¶ added in v0.0.4
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) // Parameters queries the tokens of the module. Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, 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) // Parameters queries the tokens of the module. Tokens(context.Context, *QueryTokensRequest) (*QueryTokensResponse, error) }
QueryServer is the server API for Query service.
type QueryTokensRequest ¶ added in v0.6.0
type QueryTokensRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
func (*QueryTokensRequest) Descriptor ¶ added in v0.6.0
func (*QueryTokensRequest) Descriptor() ([]byte, []int)
func (*QueryTokensRequest) Marshal ¶ added in v0.6.0
func (m *QueryTokensRequest) Marshal() (dAtA []byte, err error)
func (*QueryTokensRequest) MarshalTo ¶ added in v0.6.0
func (m *QueryTokensRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokensRequest) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryTokensRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokensRequest) ProtoMessage ¶ added in v0.6.0
func (*QueryTokensRequest) ProtoMessage()
func (*QueryTokensRequest) Reset ¶ added in v0.6.0
func (m *QueryTokensRequest) Reset()
func (*QueryTokensRequest) Size ¶ added in v0.6.0
func (m *QueryTokensRequest) Size() (n int)
func (*QueryTokensRequest) String ¶ added in v0.6.0
func (m *QueryTokensRequest) String() string
func (*QueryTokensRequest) Unmarshal ¶ added in v0.6.0
func (m *QueryTokensRequest) Unmarshal(dAtA []byte) error
func (*QueryTokensRequest) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryTokensRequest) XXX_DiscardUnknown()
func (*QueryTokensRequest) XXX_Marshal ¶ added in v0.6.0
func (m *QueryTokensRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokensRequest) XXX_Merge ¶ added in v0.6.0
func (m *QueryTokensRequest) XXX_Merge(src proto.Message)
func (*QueryTokensRequest) XXX_Size ¶ added in v0.6.0
func (m *QueryTokensRequest) XXX_Size() int
func (*QueryTokensRequest) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryTokensRequest) XXX_Unmarshal(b []byte) error
type QueryTokensResponse ¶ added in v0.6.0
type QueryTokensResponse struct { // params holds all the parameters of this module. Tokens []Token `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryTokensResponse) Descriptor ¶ added in v0.6.0
func (*QueryTokensResponse) Descriptor() ([]byte, []int)
func (*QueryTokensResponse) GetTokens ¶ added in v0.6.0
func (m *QueryTokensResponse) GetTokens() []Token
func (*QueryTokensResponse) Marshal ¶ added in v0.6.0
func (m *QueryTokensResponse) Marshal() (dAtA []byte, err error)
func (*QueryTokensResponse) MarshalTo ¶ added in v0.6.0
func (m *QueryTokensResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryTokensResponse) MarshalToSizedBuffer ¶ added in v0.6.0
func (m *QueryTokensResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryTokensResponse) ProtoMessage ¶ added in v0.6.0
func (*QueryTokensResponse) ProtoMessage()
func (*QueryTokensResponse) Reset ¶ added in v0.6.0
func (m *QueryTokensResponse) Reset()
func (*QueryTokensResponse) Size ¶ added in v0.6.0
func (m *QueryTokensResponse) Size() (n int)
func (*QueryTokensResponse) String ¶ added in v0.6.0
func (m *QueryTokensResponse) String() string
func (*QueryTokensResponse) Unmarshal ¶ added in v0.6.0
func (m *QueryTokensResponse) Unmarshal(dAtA []byte) error
func (*QueryTokensResponse) XXX_DiscardUnknown ¶ added in v0.6.0
func (m *QueryTokensResponse) XXX_DiscardUnknown()
func (*QueryTokensResponse) XXX_Marshal ¶ added in v0.6.0
func (m *QueryTokensResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryTokensResponse) XXX_Merge ¶ added in v0.6.0
func (m *QueryTokensResponse) XXX_Merge(src proto.Message)
func (*QueryTokensResponse) XXX_Size ¶ added in v0.6.0
func (m *QueryTokensResponse) XXX_Size() int
func (*QueryTokensResponse) XXX_Unmarshal ¶ added in v0.6.0
func (m *QueryTokensResponse) XXX_Unmarshal(b []byte) error
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 string `protobuf:"bytes,3,opt,name=total,proto3" json:"total,omitempty"` Decimals string `protobuf:"bytes,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"` }
Token represents an asset in the module
func (*Token) Descriptor ¶
func (*Token) GetAuthorizationRequired ¶
func (*Token) GetAuthorized ¶
func (m *Token) GetAuthorized() map[string]*TokenAuthorization
func (*Token) GetCreated ¶ added in v0.0.4
func (*Token) GetCreator ¶
func (*Token) GetDecimals ¶
func (*Token) ProtoMessage ¶
func (*Token) ProtoMessage()
func (*Token) XXX_DiscardUnknown ¶
func (m *Token) XXX_DiscardUnknown()
func (*Token) XXX_Marshal ¶
func (*Token) XXX_Unmarshal ¶
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"` }
TokenAuthorization represents the current authorization state for an address:token
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) AuthorizeAddress(ctx context.Context, req *MsgAuthorizeAddress) (*MsgAuthorizeAddressResponse, error)
func (*UnimplementedMsgServer) CreateToken ¶
func (*UnimplementedMsgServer) CreateToken(ctx context.Context, req *MsgCreateToken) (*MsgCreateTokenResponse, error)
func (*UnimplementedMsgServer) TransferToken ¶
func (*UnimplementedMsgServer) TransferToken(ctx context.Context, req *MsgTransferToken) (*MsgTransferTokenResponse, error)
func (*UnimplementedMsgServer) UnAuthorizeAddress ¶
func (*UnimplementedMsgServer) UnAuthorizeAddress(ctx context.Context, req *MsgUnAuthorizeAddress) (*MsgUnAuthorizeAddressResponse, error)
func (*UnimplementedMsgServer) UpdateToken ¶
func (*UnimplementedMsgServer) UpdateToken(ctx context.Context, req *MsgUpdateToken) (*MsgUpdateTokenResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶ added in v0.0.4
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Tokens ¶ added in v0.6.0
func (*UnimplementedQueryServer) Tokens(ctx context.Context, req *QueryTokensRequest) (*QueryTokensResponse, error)