types

package
v0.13.3-debug Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 28 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName is the name of the whitelist module
	ModuleName = "tokenregistry"

	// StoreKey is the string store representation
	StoreKey = ModuleName + "-2"

	// QuerierRoute is the querier route
	QuerierRoute = ModuleName

	// RouterKey is the msg router key
	RouterKey = ModuleName
)
View Source
const (
	QueryEntries = "entries"
)

Variables

View Source
var (
	ErrNotFound         = sdkerrors.Register(ModuleName, 1, "denom not found in registry")
	ErrPermissionDenied = sdkerrors.Register(ModuleName, 2, "permission denied for denom")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTypes        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTypes          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group")
)
View Source
var AdminAccountStorePrefix = []byte{0x02}
View Source
var AdminType_name = map[int32]string{
	0: "CLPDEX",
	1: "PMTPREWARDS",
	2: "TOKENREGISTRY",
	3: "ETHBRIDGE",
}
View Source
var AdminType_value = map[string]int32{
	"CLPDEX":        0,
	"PMTPREWARDS":   1,
	"TOKENREGISTRY": 2,
	"ETHBRIDGE":     3,
}
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var Permission_name = map[int32]string{
	0: "UNSPECIFIED",
	1: "CLP",
	2: "IBCEXPORT",
	3: "IBCIMPORT",
}
View Source
var Permission_value = map[string]int32{
	"UNSPECIFIED": 0,
	"CLP":         1,
	"IBCEXPORT":   2,
	"IBCIMPORT":   3,
}
View Source
var WhitelistStorePrefix = []byte{0x01}

Functions

func GetAdminAccountKey added in v0.13.0

func GetAdminAccountKey(adminAccount AdminAccount) []byte

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers concrete types on the Amino codec

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type AdminAccount added in v0.13.0

type AdminAccount struct {
	AdminType    AdminType `` /* 129-byte string literal not displayed */
	AdminAddress string    `protobuf:"bytes,2,opt,name=admin_address,json=adminAddress,proto3" json:"admin_address,omitempty"`
}

func (*AdminAccount) Descriptor added in v0.13.0

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

func (*AdminAccount) GetAdminAddress added in v0.13.0

func (m *AdminAccount) GetAdminAddress() string

func (*AdminAccount) GetAdminType added in v0.13.0

func (m *AdminAccount) GetAdminType() AdminType

func (*AdminAccount) Marshal added in v0.13.0

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

func (*AdminAccount) MarshalTo added in v0.13.0

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

func (*AdminAccount) MarshalToSizedBuffer added in v0.13.0

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

func (*AdminAccount) ProtoMessage added in v0.13.0

func (*AdminAccount) ProtoMessage()

func (*AdminAccount) Reset added in v0.13.0

func (m *AdminAccount) Reset()

func (*AdminAccount) Size added in v0.13.0

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

func (*AdminAccount) String added in v0.13.0

func (m *AdminAccount) String() string

func (*AdminAccount) Unmarshal added in v0.13.0

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

func (*AdminAccount) XXX_DiscardUnknown added in v0.13.0

func (m *AdminAccount) XXX_DiscardUnknown()

func (*AdminAccount) XXX_Marshal added in v0.13.0

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

func (*AdminAccount) XXX_Merge added in v0.13.0

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

func (*AdminAccount) XXX_Size added in v0.13.0

func (m *AdminAccount) XXX_Size() int

func (*AdminAccount) XXX_Unmarshal added in v0.13.0

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

type AdminAccounts added in v0.13.0

type AdminAccounts struct {
	AdminAccounts []*AdminAccount `protobuf:"bytes,1,rep,name=admin_accounts,json=adminAccounts,proto3" json:"admin_accounts,omitempty"`
}

func InitialAdminAccounts added in v0.13.0

func InitialAdminAccounts() *AdminAccounts

func ProdAdminAccounts added in v0.13.0

func ProdAdminAccounts() *AdminAccounts

func (*AdminAccounts) Descriptor added in v0.13.0

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

func (*AdminAccounts) GetAdminAccounts added in v0.13.0

func (m *AdminAccounts) GetAdminAccounts() []*AdminAccount

func (*AdminAccounts) Marshal added in v0.13.0

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

func (*AdminAccounts) MarshalTo added in v0.13.0

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

func (*AdminAccounts) MarshalToSizedBuffer added in v0.13.0

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

func (*AdminAccounts) ProtoMessage added in v0.13.0

func (*AdminAccounts) ProtoMessage()

func (*AdminAccounts) Reset added in v0.13.0

func (m *AdminAccounts) Reset()

func (*AdminAccounts) Size added in v0.13.0

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

func (*AdminAccounts) String added in v0.13.0

func (m *AdminAccounts) String() string

func (*AdminAccounts) Unmarshal added in v0.13.0

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

func (*AdminAccounts) XXX_DiscardUnknown added in v0.13.0

func (m *AdminAccounts) XXX_DiscardUnknown()

func (*AdminAccounts) XXX_Marshal added in v0.13.0

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

func (*AdminAccounts) XXX_Merge added in v0.13.0

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

func (*AdminAccounts) XXX_Size added in v0.13.0

func (m *AdminAccounts) XXX_Size() int

func (*AdminAccounts) XXX_Unmarshal added in v0.13.0

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

type AdminType added in v0.13.0

type AdminType int32
const (
	AdminType_CLPDEX        AdminType = 0
	AdminType_PMTPREWARDS   AdminType = 1
	AdminType_TOKENREGISTRY AdminType = 2
	AdminType_ETHBRIDGE     AdminType = 3
)

func (AdminType) EnumDescriptor added in v0.13.0

func (AdminType) EnumDescriptor() ([]byte, []int)

func (AdminType) String added in v0.13.0

func (x AdminType) String() string

type GenesisState

type GenesisState struct {
	AdminAccounts *AdminAccounts `protobuf:"bytes,1,opt,name=admin_accounts,json=adminAccounts,proto3" json:"admin_accounts,omitempty"`
	Registry      *Registry      `protobuf:"bytes,2,opt,name=registry,proto3" json:"registry,omitempty"`
}

func DefaultGenesisState added in v0.13.0

func DefaultGenesisState() *GenesisState

func GetGenesisStateFromAppState

func GetGenesisStateFromAppState(marshaler codec.JSONCodec, appState map[string]json.RawMessage) GenesisState

func UnmarshalGenesis

func UnmarshalGenesis(marshaler codec.JSONCodec, state json.RawMessage) GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAdminAccounts added in v0.13.0

func (m *GenesisState) GetAdminAccounts() *AdminAccounts

func (*GenesisState) GetRegistry

func (m *GenesisState) GetRegistry() *Registry

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type Keeper

type Keeper interface {
	IsAdminAccount(ctx sdk.Context, moduleName AdminType, adminAccount sdk.AccAddress) bool
	DeleteOldAdminAccount(ctx sdk.Context)
	SetAdminAccount(ctx sdk.Context, account *AdminAccount)
	CheckEntryPermissions(entry *RegistryEntry, permissions []Permission) bool
	GetEntry(registry Registry, denom string) (*RegistryEntry, error)
	SetToken(ctx sdk.Context, entry *RegistryEntry)
	RemoveToken(ctx sdk.Context, denom string)
	InitGenesis(ctx sdk.Context, state GenesisState) []abci.ValidatorUpdate
	ExportGenesis(ctx sdk.Context) *GenesisState
	GetRegistry(ctx sdk.Context) Registry
	SetRegistry(ctx sdk.Context, registry Registry)
}

type MsgClient

type MsgClient interface {
	Register(ctx context.Context, in *MsgRegister, opts ...grpc.CallOption) (*MsgRegisterResponse, error)
	Deregister(ctx context.Context, in *MsgDeregister, opts ...grpc.CallOption) (*MsgDeregisterResponse, error)
	SetRegistry(ctx context.Context, in *MsgSetRegistry, opts ...grpc.CallOption) (*MsgSetRegistryResponse, 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 MsgDeregister

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

func (*MsgDeregister) Descriptor

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

func (*MsgDeregister) GetDenom

func (m *MsgDeregister) GetDenom() string

func (*MsgDeregister) GetFrom

func (m *MsgDeregister) GetFrom() string

func (*MsgDeregister) GetSignBytes

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

func (*MsgDeregister) GetSigners

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

func (*MsgDeregister) Marshal

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

func (*MsgDeregister) MarshalTo

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

func (*MsgDeregister) MarshalToSizedBuffer

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

func (*MsgDeregister) ProtoMessage

func (*MsgDeregister) ProtoMessage()

func (*MsgDeregister) Reset

func (m *MsgDeregister) Reset()

func (*MsgDeregister) Route

func (m *MsgDeregister) Route() string

func (*MsgDeregister) Size

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

func (*MsgDeregister) String

func (m *MsgDeregister) String() string

func (*MsgDeregister) Type

func (m *MsgDeregister) Type() string

func (*MsgDeregister) Unmarshal

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

func (*MsgDeregister) ValidateBasic

func (m *MsgDeregister) ValidateBasic() error

func (*MsgDeregister) XXX_DiscardUnknown

func (m *MsgDeregister) XXX_DiscardUnknown()

func (*MsgDeregister) XXX_Marshal

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

func (*MsgDeregister) XXX_Merge

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

func (*MsgDeregister) XXX_Size

func (m *MsgDeregister) XXX_Size() int

func (*MsgDeregister) XXX_Unmarshal

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

type MsgDeregisterResponse

type MsgDeregisterResponse struct {
}

func (*MsgDeregisterResponse) Descriptor

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

func (*MsgDeregisterResponse) Marshal

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

func (*MsgDeregisterResponse) MarshalTo

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

func (*MsgDeregisterResponse) MarshalToSizedBuffer

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

func (*MsgDeregisterResponse) ProtoMessage

func (*MsgDeregisterResponse) ProtoMessage()

func (*MsgDeregisterResponse) Reset

func (m *MsgDeregisterResponse) Reset()

func (*MsgDeregisterResponse) Size

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

func (*MsgDeregisterResponse) String

func (m *MsgDeregisterResponse) String() string

func (*MsgDeregisterResponse) Unmarshal

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

func (*MsgDeregisterResponse) XXX_DiscardUnknown

func (m *MsgDeregisterResponse) XXX_DiscardUnknown()

func (*MsgDeregisterResponse) XXX_Marshal

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

func (*MsgDeregisterResponse) XXX_Merge

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

func (*MsgDeregisterResponse) XXX_Size

func (m *MsgDeregisterResponse) XXX_Size() int

func (*MsgDeregisterResponse) XXX_Unmarshal

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

type MsgRegister

type MsgRegister struct {
	From  string         `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Entry *RegistryEntry `protobuf:"bytes,2,opt,name=entry,proto3" json:"entry,omitempty"`
}

func (*MsgRegister) Descriptor

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

func (*MsgRegister) GetEntry

func (m *MsgRegister) GetEntry() *RegistryEntry

func (*MsgRegister) GetFrom

func (m *MsgRegister) GetFrom() string

func (*MsgRegister) GetSignBytes

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

func (*MsgRegister) GetSigners

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

func (*MsgRegister) Marshal

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

func (*MsgRegister) MarshalTo

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

func (*MsgRegister) MarshalToSizedBuffer

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

func (*MsgRegister) ProtoMessage

func (*MsgRegister) ProtoMessage()

func (*MsgRegister) Reset

func (m *MsgRegister) Reset()

func (*MsgRegister) Route

func (m *MsgRegister) Route() string

func (*MsgRegister) Size

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

func (*MsgRegister) String

func (m *MsgRegister) String() string

func (*MsgRegister) Type

func (m *MsgRegister) Type() string

func (*MsgRegister) Unmarshal

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

func (*MsgRegister) ValidateBasic

func (m *MsgRegister) ValidateBasic() error

func (*MsgRegister) XXX_DiscardUnknown

func (m *MsgRegister) XXX_DiscardUnknown()

func (*MsgRegister) XXX_Marshal

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

func (*MsgRegister) XXX_Merge

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

func (*MsgRegister) XXX_Size

func (m *MsgRegister) XXX_Size() int

func (*MsgRegister) XXX_Unmarshal

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

type MsgRegisterResponse

type MsgRegisterResponse struct {
}

func (*MsgRegisterResponse) Descriptor

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

func (*MsgRegisterResponse) Marshal

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

func (*MsgRegisterResponse) MarshalTo

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

func (*MsgRegisterResponse) MarshalToSizedBuffer

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

func (*MsgRegisterResponse) ProtoMessage

func (*MsgRegisterResponse) ProtoMessage()

func (*MsgRegisterResponse) Reset

func (m *MsgRegisterResponse) Reset()

func (*MsgRegisterResponse) Size

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

func (*MsgRegisterResponse) String

func (m *MsgRegisterResponse) String() string

func (*MsgRegisterResponse) Unmarshal

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

func (*MsgRegisterResponse) XXX_DiscardUnknown

func (m *MsgRegisterResponse) XXX_DiscardUnknown()

func (*MsgRegisterResponse) XXX_Marshal

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

func (*MsgRegisterResponse) XXX_Merge

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

func (*MsgRegisterResponse) XXX_Size

func (m *MsgRegisterResponse) XXX_Size() int

func (*MsgRegisterResponse) XXX_Unmarshal

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

type MsgServer

MsgServer is the server API for Msg service.

type MsgSetRegistry added in v0.10.1

type MsgSetRegistry struct {
	From     string    `protobuf:"bytes,1,opt,name=from,proto3" json:"from,omitempty"`
	Registry *Registry `protobuf:"bytes,2,opt,name=registry,proto3" json:"registry,omitempty"`
}

func (*MsgSetRegistry) Descriptor added in v0.10.1

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

func (*MsgSetRegistry) GetFrom added in v0.10.1

func (m *MsgSetRegistry) GetFrom() string

func (*MsgSetRegistry) GetRegistry added in v0.10.1

func (m *MsgSetRegistry) GetRegistry() *Registry

func (*MsgSetRegistry) GetSignBytes added in v0.10.1

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

func (*MsgSetRegistry) GetSigners added in v0.10.1

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

func (*MsgSetRegistry) Marshal added in v0.10.1

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

func (*MsgSetRegistry) MarshalTo added in v0.10.1

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

func (*MsgSetRegistry) MarshalToSizedBuffer added in v0.10.1

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

func (*MsgSetRegistry) ProtoMessage added in v0.10.1

func (*MsgSetRegistry) ProtoMessage()

func (*MsgSetRegistry) Reset added in v0.10.1

func (m *MsgSetRegistry) Reset()

func (*MsgSetRegistry) Route added in v0.10.1

func (m *MsgSetRegistry) Route() string

func (*MsgSetRegistry) Size added in v0.10.1

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

func (*MsgSetRegistry) String added in v0.10.1

func (m *MsgSetRegistry) String() string

func (*MsgSetRegistry) Type added in v0.10.1

func (m *MsgSetRegistry) Type() string

func (*MsgSetRegistry) Unmarshal added in v0.10.1

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

func (*MsgSetRegistry) ValidateBasic added in v0.10.1

func (m *MsgSetRegistry) ValidateBasic() error

func (*MsgSetRegistry) XXX_DiscardUnknown added in v0.10.1

func (m *MsgSetRegistry) XXX_DiscardUnknown()

func (*MsgSetRegistry) XXX_Marshal added in v0.10.1

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

func (*MsgSetRegistry) XXX_Merge added in v0.10.1

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

func (*MsgSetRegistry) XXX_Size added in v0.10.1

func (m *MsgSetRegistry) XXX_Size() int

func (*MsgSetRegistry) XXX_Unmarshal added in v0.10.1

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

type MsgSetRegistryResponse added in v0.10.1

type MsgSetRegistryResponse struct {
}

func (*MsgSetRegistryResponse) Descriptor added in v0.10.1

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

func (*MsgSetRegistryResponse) Marshal added in v0.10.1

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

func (*MsgSetRegistryResponse) MarshalTo added in v0.10.1

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

func (*MsgSetRegistryResponse) MarshalToSizedBuffer added in v0.10.1

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

func (*MsgSetRegistryResponse) ProtoMessage added in v0.10.1

func (*MsgSetRegistryResponse) ProtoMessage()

func (*MsgSetRegistryResponse) Reset added in v0.10.1

func (m *MsgSetRegistryResponse) Reset()

func (*MsgSetRegistryResponse) Size added in v0.10.1

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

func (*MsgSetRegistryResponse) String added in v0.10.1

func (m *MsgSetRegistryResponse) String() string

func (*MsgSetRegistryResponse) Unmarshal added in v0.10.1

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

func (*MsgSetRegistryResponse) XXX_DiscardUnknown added in v0.10.1

func (m *MsgSetRegistryResponse) XXX_DiscardUnknown()

func (*MsgSetRegistryResponse) XXX_Marshal added in v0.10.1

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

func (*MsgSetRegistryResponse) XXX_Merge added in v0.10.1

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

func (*MsgSetRegistryResponse) XXX_Size added in v0.10.1

func (m *MsgSetRegistryResponse) XXX_Size() int

func (*MsgSetRegistryResponse) XXX_Unmarshal added in v0.10.1

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

type Permission

type Permission int32
const (
	Permission_UNSPECIFIED Permission = 0
	Permission_CLP         Permission = 1
	Permission_IBCEXPORT   Permission = 2
	Permission_IBCIMPORT   Permission = 3
)

func GetPermissionFromString

func GetPermissionFromString(s string) Permission

func (Permission) EnumDescriptor

func (Permission) EnumDescriptor() ([]byte, []int)

func (Permission) String

func (x Permission) String() string

type QueryClient

type QueryClient interface {
	Entries(ctx context.Context, in *QueryEntriesRequest, opts ...grpc.CallOption) (*QueryEntriesResponse, 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 QueryEntriesRequest

type QueryEntriesRequest struct {
}

func (*QueryEntriesRequest) Descriptor

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

func (*QueryEntriesRequest) Marshal

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

func (*QueryEntriesRequest) MarshalTo

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

func (*QueryEntriesRequest) MarshalToSizedBuffer

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

func (*QueryEntriesRequest) ProtoMessage

func (*QueryEntriesRequest) ProtoMessage()

func (*QueryEntriesRequest) Reset

func (m *QueryEntriesRequest) Reset()

func (*QueryEntriesRequest) Size

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

func (*QueryEntriesRequest) String

func (m *QueryEntriesRequest) String() string

func (*QueryEntriesRequest) Unmarshal

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

func (*QueryEntriesRequest) XXX_DiscardUnknown

func (m *QueryEntriesRequest) XXX_DiscardUnknown()

func (*QueryEntriesRequest) XXX_Marshal

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

func (*QueryEntriesRequest) XXX_Merge

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

func (*QueryEntriesRequest) XXX_Size

func (m *QueryEntriesRequest) XXX_Size() int

func (*QueryEntriesRequest) XXX_Unmarshal

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

type QueryEntriesResponse

type QueryEntriesResponse struct {
	Registry *Registry `protobuf:"bytes,1,opt,name=registry,proto3" json:"registry,omitempty"`
}

func (*QueryEntriesResponse) Descriptor

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

func (*QueryEntriesResponse) GetRegistry

func (m *QueryEntriesResponse) GetRegistry() *Registry

func (*QueryEntriesResponse) Marshal

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

func (*QueryEntriesResponse) MarshalTo

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

func (*QueryEntriesResponse) MarshalToSizedBuffer

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

func (*QueryEntriesResponse) ProtoMessage

func (*QueryEntriesResponse) ProtoMessage()

func (*QueryEntriesResponse) Reset

func (m *QueryEntriesResponse) Reset()

func (*QueryEntriesResponse) Size

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

func (*QueryEntriesResponse) String

func (m *QueryEntriesResponse) String() string

func (*QueryEntriesResponse) Unmarshal

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

func (*QueryEntriesResponse) XXX_DiscardUnknown

func (m *QueryEntriesResponse) XXX_DiscardUnknown()

func (*QueryEntriesResponse) XXX_Marshal

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

func (*QueryEntriesResponse) XXX_Merge

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

func (*QueryEntriesResponse) XXX_Size

func (m *QueryEntriesResponse) XXX_Size() int

func (*QueryEntriesResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	Entries(context.Context, *QueryEntriesRequest) (*QueryEntriesResponse, error)
}

QueryServer is the server API for Query service.

type Registry

type Registry struct {
	Entries []*RegistryEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
}

func InitialRegistry

func InitialRegistry() *Registry

func (*Registry) Descriptor

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

func (*Registry) GetEntries

func (m *Registry) GetEntries() []*RegistryEntry

func (*Registry) Marshal

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

func (*Registry) MarshalTo

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

func (*Registry) MarshalToSizedBuffer

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

func (*Registry) ProtoMessage

func (*Registry) ProtoMessage()

func (*Registry) Reset

func (m *Registry) Reset()

func (*Registry) Size

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

func (*Registry) String

func (m *Registry) String() string

func (*Registry) Unmarshal

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

func (*Registry) XXX_DiscardUnknown

func (m *Registry) XXX_DiscardUnknown()

func (*Registry) XXX_Marshal

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

func (*Registry) XXX_Merge

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

func (*Registry) XXX_Size

func (m *Registry) XXX_Size() int

func (*Registry) XXX_Unmarshal

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

type RegistryEntry

type RegistryEntry struct {
	Decimals                 int64        `protobuf:"varint,2,opt,name=decimals,proto3" json:"decimals,omitempty"`
	Denom                    string       `protobuf:"bytes,3,opt,name=denom,proto3" json:"denom,omitempty"`
	BaseDenom                string       `protobuf:"bytes,4,opt,name=base_denom,json=baseDenom,proto3" json:"base_denom,omitempty"`
	Path                     string       `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"`
	IbcChannelId             string       `protobuf:"bytes,6,opt,name=ibc_channel_id,json=ibcChannelId,proto3" json:"ibc_channel_id,omitempty"`
	IbcCounterpartyChannelId string       `` /* 137-byte string literal not displayed */
	DisplayName              string       `protobuf:"bytes,8,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
	DisplaySymbol            string       `protobuf:"bytes,9,opt,name=display_symbol,json=displaySymbol,proto3" json:"display_symbol,omitempty"`
	Network                  string       `protobuf:"bytes,10,opt,name=network,proto3" json:"network,omitempty"`
	Address                  string       `protobuf:"bytes,11,opt,name=address,proto3" json:"address,omitempty"`
	ExternalSymbol           string       `protobuf:"bytes,12,opt,name=external_symbol,json=externalSymbol,proto3" json:"external_symbol,omitempty"`
	TransferLimit            string       `protobuf:"bytes,13,opt,name=transfer_limit,json=transferLimit,proto3" json:"transfer_limit,omitempty"`
	Permissions              []Permission `protobuf:"varint,15,rep,packed,name=permissions,proto3,enum=sifnode.tokenregistry.v1.Permission" json:"permissions,omitempty"`
	// The name of denomination unit of this token that is the smallest unit
	// stored. IBC imports of this RegistryEntry convert and store funds as
	// unit_denom. Several different denom units of a token may be imported into
	// this same unit denom, they should all be stored under the same unit_denom
	// if they are the same token. When exporting a RegistryEntry where unit_denom
	// != denom, then unit_denom can, in future, be used to indicate the source of
	// funds for a denom unit that does not actually exist on chain, enabling
	// other chains to overcome the uint64 limit on the packet level and import
	// large amounts of high precision tokens easily. ie. microrowan -> rowan i.e
	// rowan -> rowan
	UnitDenom string `protobuf:"bytes,16,opt,name=unit_denom,json=unitDenom,proto3" json:"unit_denom,omitempty"`
	// The name of denomination unit of this token that should appear on
	// counterparty chain when this unit is exported. If empty, the denom is
	// exported as is. Generally this will only be used to map a high precision
	// (unit_denom) to a lower precision, to overcome the current uint64 limit on
	// the packet level. i.e rowan -> microrowan i.e microrowan -> microrowan
	IbcCounterpartyDenom   string `protobuf:"bytes,17,opt,name=ibc_counterparty_denom,json=ibcCounterpartyDenom,proto3" json:"ibc_counterparty_denom,omitempty"`
	IbcCounterpartyChainId string `` /* 132-byte string literal not displayed */
}

func (*RegistryEntry) Descriptor

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

func (*RegistryEntry) GetAddress

func (m *RegistryEntry) GetAddress() string

func (*RegistryEntry) GetBaseDenom

func (m *RegistryEntry) GetBaseDenom() string

func (*RegistryEntry) GetDecimals

func (m *RegistryEntry) GetDecimals() int64

func (*RegistryEntry) GetDenom

func (m *RegistryEntry) GetDenom() string

func (*RegistryEntry) GetDisplayName

func (m *RegistryEntry) GetDisplayName() string

func (*RegistryEntry) GetDisplaySymbol

func (m *RegistryEntry) GetDisplaySymbol() string

func (*RegistryEntry) GetExternalSymbol

func (m *RegistryEntry) GetExternalSymbol() string

func (*RegistryEntry) GetIbcChannelId

func (m *RegistryEntry) GetIbcChannelId() string

func (*RegistryEntry) GetIbcCounterpartyChainId

func (m *RegistryEntry) GetIbcCounterpartyChainId() string

func (*RegistryEntry) GetIbcCounterpartyChannelId

func (m *RegistryEntry) GetIbcCounterpartyChannelId() string

func (*RegistryEntry) GetIbcCounterpartyDenom

func (m *RegistryEntry) GetIbcCounterpartyDenom() string

func (*RegistryEntry) GetNetwork

func (m *RegistryEntry) GetNetwork() string

func (*RegistryEntry) GetPath

func (m *RegistryEntry) GetPath() string

func (*RegistryEntry) GetPermissions

func (m *RegistryEntry) GetPermissions() []Permission

func (*RegistryEntry) GetTransferLimit

func (m *RegistryEntry) GetTransferLimit() string

func (*RegistryEntry) GetUnitDenom

func (m *RegistryEntry) GetUnitDenom() string

func (*RegistryEntry) Marshal

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

func (*RegistryEntry) MarshalTo

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

func (*RegistryEntry) MarshalToSizedBuffer

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

func (*RegistryEntry) ProtoMessage

func (*RegistryEntry) ProtoMessage()

func (*RegistryEntry) Reset

func (m *RegistryEntry) Reset()

func (*RegistryEntry) Size

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

func (*RegistryEntry) String

func (m *RegistryEntry) String() string

func (*RegistryEntry) Unmarshal

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

func (*RegistryEntry) XXX_DiscardUnknown

func (m *RegistryEntry) XXX_DiscardUnknown()

func (*RegistryEntry) XXX_Marshal

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

func (*RegistryEntry) XXX_Merge

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

func (*RegistryEntry) XXX_Size

func (m *RegistryEntry) XXX_Size() int

func (*RegistryEntry) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) Deregister

func (*UnimplementedMsgServer) Register

func (*UnimplementedMsgServer) SetRegistry added in v0.10.1

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Entries

Directories

Path Synopsis
Package tokenregistrymocks is a generated GoMock package.
Package tokenregistrymocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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