types

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 31 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 = "address"

	AttributeValueCategory = ModuleName
)

staking module event types

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

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

	// PortID is the default port id that module binds to
	PortID = "asset"
)
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               = errorsmod.Register(ModuleName, 1100, "sample error")
	ErrInvalidPacketTimeout = errorsmod.Register(ModuleName, 1500, "invalid packet timeout")
	ErrInvalidVersion       = errorsmod.Register(ModuleName, 1501, "invalid version")
	ErrNotAuthorized        = errorsmod.Register(ModuleName, 1502, "transaction not authorized")
	ErrSetTokenUnable       = errorsmod.Register(ModuleName, 1503, "token is unable to be set")
)

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 (
	ParamsKey      = collections.NewPrefix(0)
	TokenKeyPrefix = collections.NewPrefix("Token/value/")
)
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 (
	ErrInvalidLengthTokenauthorization        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTokenauthorization          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTokenauthorization = 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 = KeyPrefix("asset-port-")

PortKey defines the key to store the port ID in store

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 to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func TokenKey

func TokenKey(
	index string,
) string

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 context.Context, addr sdk.AccAddress) sdk.AccountI
	GetModuleAddress(moduleName string) sdk.AccAddress
}

AccountKeeper defines the expected account keeper

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
	SendCoins(ctx context.Context, fromAddr sdk.AccAddress, toAddr sdk.AccAddress, amt sdk.Coins) error
	SendCoinsFromModuleToAccount(ctx context.Context, senderModule string, recipientAddr sdk.AccAddress, amt sdk.Coins) error
	MintCoins(ctx context.Context, moduleName string, amt sdk.Coins) error
	SetDenomMetaData(ctx context.Context, denomMetaData banktypes.Metadata)
	AppendSendRestriction(restriction banktypes.SendRestrictionFn)
	GetDenomMetaData(ctx context.Context, denom string) (banktypes.Metadata, bool)
	HasSupply(ctx context.Context, denom string) bool
	BlockedAddr(addr sdk.AccAddress) bool
}

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) 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 {
	Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,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(manager string, symbol string, address string) *MsgAuthorizeAddress

func (*MsgAuthorizeAddress) Descriptor

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

func (*MsgAuthorizeAddress) GetAddress

func (m *MsgAuthorizeAddress) GetAddress() string

func (*MsgAuthorizeAddress) GetManager added in v0.8.0

func (m *MsgAuthorizeAddress) GetManager() string

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

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

func (*MsgAuthorizeAddress) String

func (m *MsgAuthorizeAddress) String() 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 {
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	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 {
	Manager               string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,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"`
	AuthorizationRequired bool   `protobuf:"varint,6,opt,name=authorizationRequired,proto3" json:"authorizationRequired,omitempty"`
}

func NewMsgCreateToken

func NewMsgCreateToken(manager string, name string, symbol string, total string, authorizationRequired bool) *MsgCreateToken

func (*MsgCreateToken) Descriptor

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

func (*MsgCreateToken) GetAuthorizationRequired

func (m *MsgCreateToken) GetAuthorizationRequired() bool

func (*MsgCreateToken) GetManager added in v0.8.0

func (m *MsgCreateToken) GetManager() string

func (*MsgCreateToken) GetName

func (m *MsgCreateToken) GetName() string

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

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

func (*MsgCreateToken) String

func (m *MsgCreateToken) String() 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 MsgTransferToken

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

func NewMsgTransferToken

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

func (*MsgTransferToken) Descriptor

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

func (*MsgTransferToken) GetAmount

func (m *MsgTransferToken) GetAmount() string

func (*MsgTransferToken) GetFrom

func (m *MsgTransferToken) GetFrom() string

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

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

func (*MsgTransferToken) String

func (m *MsgTransferToken) String() 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 {
	Manager string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,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(manager string, symbol string, address string) *MsgUnAuthorizeAddress

func (*MsgUnAuthorizeAddress) Descriptor

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

func (*MsgUnAuthorizeAddress) GetAddress

func (m *MsgUnAuthorizeAddress) GetAddress() string

func (*MsgUnAuthorizeAddress) GetManager added in v0.8.0

func (m *MsgUnAuthorizeAddress) GetManager() string

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

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

func (*MsgUnAuthorizeAddress) String

func (m *MsgUnAuthorizeAddress) String() 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 MsgUpdateParams added in v1.0.1

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/mint parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

func (*MsgUpdateParams) Descriptor added in v1.0.1

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

func (*MsgUpdateParams) GetAuthority added in v1.0.1

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams added in v1.0.1

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) Marshal added in v1.0.1

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

func (*MsgUpdateParams) MarshalTo added in v1.0.1

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

func (*MsgUpdateParams) MarshalToSizedBuffer added in v1.0.1

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

func (*MsgUpdateParams) ProtoMessage added in v1.0.1

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset added in v1.0.1

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size added in v1.0.1

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

func (*MsgUpdateParams) String added in v1.0.1

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal added in v1.0.1

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

func (*MsgUpdateParams) XXX_DiscardUnknown added in v1.0.1

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal added in v1.0.1

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

func (*MsgUpdateParams) XXX_Merge added in v1.0.1

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

func (*MsgUpdateParams) XXX_Size added in v1.0.1

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal added in v1.0.1

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

type MsgUpdateParamsResponse added in v1.0.1

type MsgUpdateParamsResponse struct {
}

func (*MsgUpdateParamsResponse) Descriptor added in v1.0.1

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

func (*MsgUpdateParamsResponse) Marshal added in v1.0.1

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

func (*MsgUpdateParamsResponse) MarshalTo added in v1.0.1

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer added in v1.0.1

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

func (*MsgUpdateParamsResponse) ProtoMessage added in v1.0.1

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset added in v1.0.1

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size added in v1.0.1

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

func (*MsgUpdateParamsResponse) String added in v1.0.1

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal added in v1.0.1

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown added in v1.0.1

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal added in v1.0.1

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

func (*MsgUpdateParamsResponse) XXX_Merge added in v1.0.1

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

func (*MsgUpdateParamsResponse) XXX_Size added in v1.0.1

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal added in v1.0.1

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

type MsgUpdateToken

type MsgUpdateToken struct {
	Manager               string `protobuf:"bytes,1,opt,name=manager,proto3" json:"manager,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(manager string, symbol string, authorizationRequired bool) *MsgUpdateToken

func (*MsgUpdateToken) Descriptor

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

func (*MsgUpdateToken) GetAuthorizationRequired

func (m *MsgUpdateToken) GetAuthorizationRequired() bool

func (*MsgUpdateToken) GetManager added in v0.8.0

func (m *MsgUpdateToken) GetManager() string

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

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

func (*MsgUpdateToken) String

func (m *MsgUpdateToken) String() 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 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)
	// Parameters queries the tokens of the module.
	Tokens(ctx context.Context, in *QueryTokensRequest, opts ...grpc.CallOption) (*QueryTokensResponse, error)
	// Parameters queries the tokens of the module.
	Token(ctx context.Context, in *QueryTokenRequest, opts ...grpc.CallOption) (*QueryTokenResponse, error)
	// Parameters queries the tokens of the module.
	IsAuthorized(ctx context.Context, in *QueryIsAuthorizedRequest, opts ...grpc.CallOption) (*QueryIsAuthorizedResponse, 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 QueryIsAuthorizedRequest added in v0.9.0

type QueryIsAuthorizedRequest struct {
	// symbol is the token symbol to query for.
	Symbol  string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

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

func (*QueryIsAuthorizedRequest) Descriptor added in v0.9.0

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

func (*QueryIsAuthorizedRequest) GetAddress added in v0.9.0

func (m *QueryIsAuthorizedRequest) GetAddress() string

func (*QueryIsAuthorizedRequest) GetSymbol added in v0.9.0

func (m *QueryIsAuthorizedRequest) GetSymbol() string

func (*QueryIsAuthorizedRequest) Marshal added in v0.9.0

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

func (*QueryIsAuthorizedRequest) MarshalTo added in v0.9.0

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

func (*QueryIsAuthorizedRequest) MarshalToSizedBuffer added in v0.9.0

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

func (*QueryIsAuthorizedRequest) ProtoMessage added in v0.9.0

func (*QueryIsAuthorizedRequest) ProtoMessage()

func (*QueryIsAuthorizedRequest) Reset added in v0.9.0

func (m *QueryIsAuthorizedRequest) Reset()

func (*QueryIsAuthorizedRequest) Size added in v0.9.0

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

func (*QueryIsAuthorizedRequest) String added in v0.9.0

func (m *QueryIsAuthorizedRequest) String() string

func (*QueryIsAuthorizedRequest) Unmarshal added in v0.9.0

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

func (*QueryIsAuthorizedRequest) XXX_DiscardUnknown added in v0.9.0

func (m *QueryIsAuthorizedRequest) XXX_DiscardUnknown()

func (*QueryIsAuthorizedRequest) XXX_Marshal added in v0.9.0

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

func (*QueryIsAuthorizedRequest) XXX_Merge added in v0.9.0

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

func (*QueryIsAuthorizedRequest) XXX_Size added in v0.9.0

func (m *QueryIsAuthorizedRequest) XXX_Size() int

func (*QueryIsAuthorizedRequest) XXX_Unmarshal added in v0.9.0

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

type QueryIsAuthorizedResponse added in v0.9.0

type QueryIsAuthorizedResponse struct {
	// params holds all the parameters of this module.
	IsAuthorized bool `protobuf:"varint,1,opt,name=isAuthorized,proto3" json:"isAuthorized,omitempty"`
}

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

func (*QueryIsAuthorizedResponse) Descriptor added in v0.9.0

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

func (*QueryIsAuthorizedResponse) GetIsAuthorized added in v0.9.0

func (m *QueryIsAuthorizedResponse) GetIsAuthorized() bool

func (*QueryIsAuthorizedResponse) Marshal added in v0.9.0

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

func (*QueryIsAuthorizedResponse) MarshalTo added in v0.9.0

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

func (*QueryIsAuthorizedResponse) MarshalToSizedBuffer added in v0.9.0

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

func (*QueryIsAuthorizedResponse) ProtoMessage added in v0.9.0

func (*QueryIsAuthorizedResponse) ProtoMessage()

func (*QueryIsAuthorizedResponse) Reset added in v0.9.0

func (m *QueryIsAuthorizedResponse) Reset()

func (*QueryIsAuthorizedResponse) Size added in v0.9.0

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

func (*QueryIsAuthorizedResponse) String added in v0.9.0

func (m *QueryIsAuthorizedResponse) String() string

func (*QueryIsAuthorizedResponse) Unmarshal added in v0.9.0

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

func (*QueryIsAuthorizedResponse) XXX_DiscardUnknown added in v0.9.0

func (m *QueryIsAuthorizedResponse) XXX_DiscardUnknown()

func (*QueryIsAuthorizedResponse) XXX_Marshal added in v0.9.0

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

func (*QueryIsAuthorizedResponse) XXX_Merge added in v0.9.0

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

func (*QueryIsAuthorizedResponse) XXX_Size added in v0.9.0

func (m *QueryIsAuthorizedResponse) XXX_Size() int

func (*QueryIsAuthorizedResponse) XXX_Unmarshal added in v0.9.0

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

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)
	// Parameters queries the tokens of the module.
	Token(context.Context, *QueryTokenRequest) (*QueryTokenResponse, error)
	// Parameters queries the tokens of the module.
	IsAuthorized(context.Context, *QueryIsAuthorizedRequest) (*QueryIsAuthorizedResponse, error)
}

QueryServer is the server API for Query service.

type QueryTokenRequest added in v0.8.0

type QueryTokenRequest struct {
	// symbol is the token symbol to query for.
	Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
}

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

func NewQueryTokenRequest added in v0.8.0

func NewQueryTokenRequest(symbol string) *QueryTokenRequest

NewQueryTokenRequest creates a new instance of QueryTokenRequest.

func (*QueryTokenRequest) Descriptor added in v0.8.0

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

func (*QueryTokenRequest) GetSymbol added in v0.8.0

func (m *QueryTokenRequest) GetSymbol() string

func (*QueryTokenRequest) Marshal added in v0.8.0

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

func (*QueryTokenRequest) MarshalTo added in v0.8.0

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

func (*QueryTokenRequest) MarshalToSizedBuffer added in v0.8.0

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

func (*QueryTokenRequest) ProtoMessage added in v0.8.0

func (*QueryTokenRequest) ProtoMessage()

func (*QueryTokenRequest) Reset added in v0.8.0

func (m *QueryTokenRequest) Reset()

func (*QueryTokenRequest) Size added in v0.8.0

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

func (*QueryTokenRequest) String added in v0.8.0

func (m *QueryTokenRequest) String() string

func (*QueryTokenRequest) Unmarshal added in v0.8.0

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

func (*QueryTokenRequest) XXX_DiscardUnknown added in v0.8.0

func (m *QueryTokenRequest) XXX_DiscardUnknown()

func (*QueryTokenRequest) XXX_Marshal added in v0.8.0

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

func (*QueryTokenRequest) XXX_Merge added in v0.8.0

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

func (*QueryTokenRequest) XXX_Size added in v0.8.0

func (m *QueryTokenRequest) XXX_Size() int

func (*QueryTokenRequest) XXX_Unmarshal added in v0.8.0

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

type QueryTokenResponse added in v0.8.0

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

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

func (*QueryTokenResponse) Descriptor added in v0.8.0

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

func (*QueryTokenResponse) GetToken added in v0.8.0

func (m *QueryTokenResponse) GetToken() Token

func (*QueryTokenResponse) Marshal added in v0.8.0

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

func (*QueryTokenResponse) MarshalTo added in v0.8.0

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

func (*QueryTokenResponse) MarshalToSizedBuffer added in v0.8.0

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

func (*QueryTokenResponse) ProtoMessage added in v0.8.0

func (*QueryTokenResponse) ProtoMessage()

func (*QueryTokenResponse) Reset added in v0.8.0

func (m *QueryTokenResponse) Reset()

func (*QueryTokenResponse) Size added in v0.8.0

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

func (*QueryTokenResponse) String added in v0.8.0

func (m *QueryTokenResponse) String() string

func (*QueryTokenResponse) Unmarshal added in v0.8.0

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

func (*QueryTokenResponse) XXX_DiscardUnknown added in v0.8.0

func (m *QueryTokenResponse) XXX_DiscardUnknown()

func (*QueryTokenResponse) XXX_Marshal added in v0.8.0

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

func (*QueryTokenResponse) XXX_Merge added in v0.8.0

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

func (*QueryTokenResponse) XXX_Size added in v0.8.0

func (m *QueryTokenResponse) XXX_Size() int

func (*QueryTokenResponse) XXX_Unmarshal added in v0.8.0

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

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"`
	AuthorizationRequired bool                  `protobuf:"varint,4,opt,name=authorizationRequired,proto3" json:"authorizationRequired,omitempty"`
	Manager               string                `protobuf:"bytes,5,opt,name=manager,proto3" json:"manager,omitempty"`
	Authorized            []*TokenAuthorization `protobuf:"bytes,6,rep,name=authorized,proto3" json:"authorized,omitempty"`
}

Token represents an asset in the module

func NewToken added in v0.9.0

func NewToken(name string, symbol string, total string, manager string, authorizationRequired bool) Token

func (*Token) AddressIsAuthorized added in v0.9.0

func (t *Token) AddressIsAuthorized(addr sdk.AccAddress) bool

func (*Token) AuthorizeAddress added in v0.9.0

func (t *Token) AuthorizeAddress(addr sdk.Address) *Token

func (*Token) Descriptor

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

func (*Token) GetAuthorizationRequired

func (m *Token) GetAuthorizationRequired() bool

func (*Token) GetAuthorized

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

func (*Token) GetManager added in v0.8.0

func (m *Token) GetManager() string

func (*Token) GetName

func (m *Token) GetName() string

func (*Token) GetSymbol

func (m *Token) GetSymbol() string

func (*Token) GetTotal

func (m *Token) GetTotal() string

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) UnAuthorizeAddress added in v0.9.0

func (t *Token) UnAuthorizeAddress(addr sdk.Address) *Token

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 {
	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 NewAuthorization added in v0.9.0

func NewAuthorization(address sdk.Address) *TokenAuthorization

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) 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) UpdateParams added in v1.0.1

func (*UnimplementedMsgServer) UpdateToken

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) IsAuthorized added in v0.9.0

func (*UnimplementedQueryServer) Params added in v0.0.4

func (*UnimplementedQueryServer) Token

func (*UnimplementedQueryServer) Tokens added in v0.6.0

Jump to

Keyboard shortcuts

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