types

package
v8.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

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

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

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_addresses"
)
View Source
const (

	// <prefix>
	CosmosToEvmMapPrefix

	// <prefix>
	EvmToCosmosMapPrefix
)
View Source
const (
	TypeMsgAddAddressMapping    = "add_address_mapping"
	TypeMsgRemoveAddressMapping = "remove_address_mapping"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

Variables

View Source
var (
	ErrInvalidLengthAddresses        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAddresses          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAddresses = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidEvmAddress    = errorsmod.Register(ModuleName, 2, "invalid evm address")
	ErrInvalidCosmosAddress = errorsmod.Register(ModuleName, 3, "invalid cosmos address")
	ErrNilCosmosAddress     = errorsmod.Register(ModuleName, 4, "cosmos address cannot be nil")
	ErrNilEvmAddress        = errorsmod.Register(ModuleName, 5, "evm address cannot be nil")
)
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 (
	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 Msg_serviceDesc = _Msg_serviceDesc
View Source
var Query_serviceDesc = _Query_serviceDesc

Functions

func GetCosmosToEvmMapKey

func GetCosmosToEvmMapKey(cosmosAddr []byte) []byte

func GetCosmosToEvmMapPrefix

func GetCosmosToEvmMapPrefix() []byte

func GetEvmToCosmosMapKey

func GetEvmToCosmosMapKey(evmAddr []byte) []byte

func GetEvmToCosmosMapPrefix

func GetEvmToCosmosMapPrefix() []byte

func ParamKeyTable

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)

Types

type AddressMapping

type AddressMapping struct {
	CosmosAddress string `protobuf:"bytes,1,opt,name=cosmos_address,json=cosmosAddress,proto3" json:"cosmos_address,omitempty"`
	EvmAddress    string `protobuf:"bytes,2,opt,name=evm_address,json=evmAddress,proto3" json:"evm_address,omitempty"`
}

func (*AddressMapping) Descriptor

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

func (*AddressMapping) GetCosmosAddress

func (m *AddressMapping) GetCosmosAddress() string

func (*AddressMapping) GetEvmAddress

func (m *AddressMapping) GetEvmAddress() string

func (*AddressMapping) Marshal

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

func (*AddressMapping) MarshalTo

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

func (*AddressMapping) MarshalToSizedBuffer

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

func (*AddressMapping) ProtoMessage

func (*AddressMapping) ProtoMessage()

func (*AddressMapping) Reset

func (m *AddressMapping) Reset()

func (*AddressMapping) Size

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

func (*AddressMapping) String

func (m *AddressMapping) String() string

func (*AddressMapping) Unmarshal

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

func (AddressMapping) ValidateBasic

func (am AddressMapping) ValidateBasic() error

func (*AddressMapping) XXX_DiscardUnknown

func (m *AddressMapping) XXX_DiscardUnknown()

func (*AddressMapping) XXX_Marshal

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

func (*AddressMapping) XXX_Merge

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

func (*AddressMapping) XXX_Size

func (m *AddressMapping) XXX_Size() int

func (*AddressMapping) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	Params          Params            `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	AddressMappings []*AddressMapping `protobuf:"bytes,2,rep,name=address_mappings,json=addressMappings,proto3" json:"address_mappings,omitempty"`
}

func DefaultGenesisState

func DefaultGenesisState() GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAddressMappings

func (m *GenesisState) GetAddressMappings() []*AddressMapping

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

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 MsgAddAddressMapping

type MsgAddAddressMapping struct {
	EvmAddress string `protobuf:"bytes,1,opt,name=evm_address,json=evmAddress,proto3" json:"evm_address,omitempty"`
	Signer     string `protobuf:"bytes,2,opt,name=signer,proto3" json:"signer,omitempty"`
}

func NewMsgAddAddressMapping

func NewMsgAddAddressMapping(evmAddres common.Address, signer sdk.AccAddress) (*MsgAddAddressMapping, error)

NewMsgAddAddressMapping return a new MsgAddAddressMapping

func (*MsgAddAddressMapping) Descriptor

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

func (*MsgAddAddressMapping) GetEvmAddress

func (m *MsgAddAddressMapping) GetEvmAddress() string

func (*MsgAddAddressMapping) GetSignBytes

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

GetSignBytes implements sdk.Msg

func (*MsgAddAddressMapping) GetSigner

func (m *MsgAddAddressMapping) GetSigner() string

func (*MsgAddAddressMapping) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgAddAddressMapping) Marshal

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

func (*MsgAddAddressMapping) MarshalTo

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

func (*MsgAddAddressMapping) MarshalToSizedBuffer

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

func (*MsgAddAddressMapping) MustGetSigner

func (m *MsgAddAddressMapping) MustGetSigner() sdk.AccAddress

MustGetSigner returns the signer address (which is also the bidder)

func (*MsgAddAddressMapping) ProtoMessage

func (*MsgAddAddressMapping) ProtoMessage()

func (*MsgAddAddressMapping) Reset

func (m *MsgAddAddressMapping) Reset()

func (*MsgAddAddressMapping) Route

func (m *MsgAddAddressMapping) Route() string

Route implements sdk.Msg

func (*MsgAddAddressMapping) Size

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

func (*MsgAddAddressMapping) String

func (m *MsgAddAddressMapping) String() string

func (*MsgAddAddressMapping) Type

func (m *MsgAddAddressMapping) Type() string

Type implements sdk.Msg

func (*MsgAddAddressMapping) Unmarshal

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

func (*MsgAddAddressMapping) ValidateBasic

func (m *MsgAddAddressMapping) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgAddAddressMapping) XXX_DiscardUnknown

func (m *MsgAddAddressMapping) XXX_DiscardUnknown()

func (*MsgAddAddressMapping) XXX_Marshal

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

func (*MsgAddAddressMapping) XXX_Merge

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

func (*MsgAddAddressMapping) XXX_Size

func (m *MsgAddAddressMapping) XXX_Size() int

func (*MsgAddAddressMapping) XXX_Unmarshal

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

type MsgAddAddressMappingResponse

type MsgAddAddressMappingResponse struct {
}

func (*MsgAddAddressMappingResponse) Descriptor

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

func (*MsgAddAddressMappingResponse) Marshal

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

func (*MsgAddAddressMappingResponse) MarshalTo

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

func (*MsgAddAddressMappingResponse) MarshalToSizedBuffer

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

func (*MsgAddAddressMappingResponse) ProtoMessage

func (*MsgAddAddressMappingResponse) ProtoMessage()

func (*MsgAddAddressMappingResponse) Reset

func (m *MsgAddAddressMappingResponse) Reset()

func (*MsgAddAddressMappingResponse) Size

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

func (*MsgAddAddressMappingResponse) String

func (*MsgAddAddressMappingResponse) Unmarshal

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

func (*MsgAddAddressMappingResponse) XXX_DiscardUnknown

func (m *MsgAddAddressMappingResponse) XXX_DiscardUnknown()

func (*MsgAddAddressMappingResponse) XXX_Marshal

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

func (*MsgAddAddressMappingResponse) XXX_Merge

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

func (*MsgAddAddressMappingResponse) XXX_Size

func (m *MsgAddAddressMappingResponse) XXX_Size() int

func (*MsgAddAddressMappingResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// Adds a mapping between the cosmos address of the sender and the provided EVM address
	AddAddressMapping(ctx context.Context, in *MsgAddAddressMapping, opts ...grpc.CallOption) (*MsgAddAddressMappingResponse, error)
	// Removes the mapping containing the cosmos address of the sender
	RemoveAddressMapping(ctx context.Context, in *MsgRemoveAddressMapping, opts ...grpc.CallOption) (*MsgRemoveAddressMappingResponse, 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 MsgRemoveAddressMapping

type MsgRemoveAddressMapping struct {
	Signer string `protobuf:"bytes,1,opt,name=signer,proto3" json:"signer,omitempty"`
}

func NewMsgRemoveAddressMapping

func NewMsgRemoveAddressMapping(signer sdk.AccAddress) (*MsgRemoveAddressMapping, error)

NewMsgRemoveAddressMapping return a new MsgRemoveAddressMapping

func (*MsgRemoveAddressMapping) Descriptor

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

func (*MsgRemoveAddressMapping) GetSignBytes

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

GetSignBytes implements sdk.Msg

func (*MsgRemoveAddressMapping) GetSigner

func (m *MsgRemoveAddressMapping) GetSigner() string

func (*MsgRemoveAddressMapping) GetSigners

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

GetSigners implements sdk.Msg

func (*MsgRemoveAddressMapping) Marshal

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

func (*MsgRemoveAddressMapping) MarshalTo

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

func (*MsgRemoveAddressMapping) MarshalToSizedBuffer

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

func (*MsgRemoveAddressMapping) MustGetSigner

func (m *MsgRemoveAddressMapping) MustGetSigner() sdk.AccAddress

MustGetSigner returns the signer address (which is also the bidder)

func (*MsgRemoveAddressMapping) ProtoMessage

func (*MsgRemoveAddressMapping) ProtoMessage()

func (*MsgRemoveAddressMapping) Reset

func (m *MsgRemoveAddressMapping) Reset()

func (*MsgRemoveAddressMapping) Route

func (m *MsgRemoveAddressMapping) Route() string

Route implements sdk.Msg

func (*MsgRemoveAddressMapping) Size

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

func (*MsgRemoveAddressMapping) String

func (m *MsgRemoveAddressMapping) String() string

func (*MsgRemoveAddressMapping) Type

func (m *MsgRemoveAddressMapping) Type() string

Type implements sdk.Msg

func (*MsgRemoveAddressMapping) Unmarshal

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

func (*MsgRemoveAddressMapping) ValidateBasic

func (m *MsgRemoveAddressMapping) ValidateBasic() error

ValidateBasic implements sdk.Msg

func (*MsgRemoveAddressMapping) XXX_DiscardUnknown

func (m *MsgRemoveAddressMapping) XXX_DiscardUnknown()

func (*MsgRemoveAddressMapping) XXX_Marshal

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

func (*MsgRemoveAddressMapping) XXX_Merge

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

func (*MsgRemoveAddressMapping) XXX_Size

func (m *MsgRemoveAddressMapping) XXX_Size() int

func (*MsgRemoveAddressMapping) XXX_Unmarshal

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

type MsgRemoveAddressMappingResponse

type MsgRemoveAddressMappingResponse struct {
}

func (*MsgRemoveAddressMappingResponse) Descriptor

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

func (*MsgRemoveAddressMappingResponse) Marshal

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

func (*MsgRemoveAddressMappingResponse) MarshalTo

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

func (*MsgRemoveAddressMappingResponse) MarshalToSizedBuffer

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

func (*MsgRemoveAddressMappingResponse) ProtoMessage

func (*MsgRemoveAddressMappingResponse) ProtoMessage()

func (*MsgRemoveAddressMappingResponse) Reset

func (*MsgRemoveAddressMappingResponse) Size

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

func (*MsgRemoveAddressMappingResponse) String

func (*MsgRemoveAddressMappingResponse) Unmarshal

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

func (*MsgRemoveAddressMappingResponse) XXX_DiscardUnknown

func (m *MsgRemoveAddressMappingResponse) XXX_DiscardUnknown()

func (*MsgRemoveAddressMappingResponse) XXX_Marshal

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

func (*MsgRemoveAddressMappingResponse) XXX_Merge

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

func (*MsgRemoveAddressMappingResponse) XXX_Size

func (m *MsgRemoveAddressMappingResponse) XXX_Size() int

func (*MsgRemoveAddressMappingResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// Adds a mapping between the cosmos address of the sender and the provided EVM address
	AddAddressMapping(context.Context, *MsgAddAddressMapping) (*MsgAddAddressMappingResponse, error)
	// Removes the mapping containing the cosmos address of the sender
	RemoveAddressMapping(context.Context, *MsgRemoveAddressMapping) (*MsgRemoveAddressMappingResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
}

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

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

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) ValidateBasic

func (p Params) ValidateBasic() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryAddressMappingByCosmosAddressRequest

type QueryAddressMappingByCosmosAddressRequest struct {
	CosmosAddress string `protobuf:"bytes,1,opt,name=cosmos_address,json=cosmosAddress,proto3" json:"cosmos_address,omitempty"`
}

func (*QueryAddressMappingByCosmosAddressRequest) Descriptor

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

func (*QueryAddressMappingByCosmosAddressRequest) GetCosmosAddress

func (m *QueryAddressMappingByCosmosAddressRequest) GetCosmosAddress() string

func (*QueryAddressMappingByCosmosAddressRequest) Marshal

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

func (*QueryAddressMappingByCosmosAddressRequest) MarshalTo

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

func (*QueryAddressMappingByCosmosAddressRequest) MarshalToSizedBuffer

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

func (*QueryAddressMappingByCosmosAddressRequest) ProtoMessage

func (*QueryAddressMappingByCosmosAddressRequest) Reset

func (*QueryAddressMappingByCosmosAddressRequest) Size

func (*QueryAddressMappingByCosmosAddressRequest) String

func (*QueryAddressMappingByCosmosAddressRequest) Unmarshal

func (*QueryAddressMappingByCosmosAddressRequest) XXX_DiscardUnknown

func (m *QueryAddressMappingByCosmosAddressRequest) XXX_DiscardUnknown()

func (*QueryAddressMappingByCosmosAddressRequest) XXX_Marshal

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

func (*QueryAddressMappingByCosmosAddressRequest) XXX_Merge

func (*QueryAddressMappingByCosmosAddressRequest) XXX_Size

func (*QueryAddressMappingByCosmosAddressRequest) XXX_Unmarshal

type QueryAddressMappingByCosmosAddressResponse

type QueryAddressMappingByCosmosAddressResponse struct {
	CosmosAddress string `protobuf:"bytes,1,opt,name=cosmos_address,json=cosmosAddress,proto3" json:"cosmos_address,omitempty"`
	EvmAddress    string `protobuf:"bytes,2,opt,name=evm_address,json=evmAddress,proto3" json:"evm_address,omitempty"`
}

func (*QueryAddressMappingByCosmosAddressResponse) Descriptor

func (*QueryAddressMappingByCosmosAddressResponse) GetCosmosAddress

func (m *QueryAddressMappingByCosmosAddressResponse) GetCosmosAddress() string

func (*QueryAddressMappingByCosmosAddressResponse) GetEvmAddress

func (*QueryAddressMappingByCosmosAddressResponse) Marshal

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

func (*QueryAddressMappingByCosmosAddressResponse) MarshalTo

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

func (*QueryAddressMappingByCosmosAddressResponse) MarshalToSizedBuffer

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

func (*QueryAddressMappingByCosmosAddressResponse) ProtoMessage

func (*QueryAddressMappingByCosmosAddressResponse) Reset

func (*QueryAddressMappingByCosmosAddressResponse) Size

func (*QueryAddressMappingByCosmosAddressResponse) String

func (*QueryAddressMappingByCosmosAddressResponse) Unmarshal

func (*QueryAddressMappingByCosmosAddressResponse) XXX_DiscardUnknown

func (m *QueryAddressMappingByCosmosAddressResponse) XXX_DiscardUnknown()

func (*QueryAddressMappingByCosmosAddressResponse) XXX_Marshal

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

func (*QueryAddressMappingByCosmosAddressResponse) XXX_Merge

func (*QueryAddressMappingByCosmosAddressResponse) XXX_Size

func (*QueryAddressMappingByCosmosAddressResponse) XXX_Unmarshal

type QueryAddressMappingByEVMAddressRequest

type QueryAddressMappingByEVMAddressRequest struct {
	EvmAddress string `protobuf:"bytes,1,opt,name=evm_address,json=evmAddress,proto3" json:"evm_address,omitempty"`
}

func (*QueryAddressMappingByEVMAddressRequest) Descriptor

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

func (*QueryAddressMappingByEVMAddressRequest) GetEvmAddress

func (*QueryAddressMappingByEVMAddressRequest) Marshal

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

func (*QueryAddressMappingByEVMAddressRequest) MarshalTo

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

func (*QueryAddressMappingByEVMAddressRequest) MarshalToSizedBuffer

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

func (*QueryAddressMappingByEVMAddressRequest) ProtoMessage

func (*QueryAddressMappingByEVMAddressRequest) Reset

func (*QueryAddressMappingByEVMAddressRequest) Size

func (*QueryAddressMappingByEVMAddressRequest) String

func (*QueryAddressMappingByEVMAddressRequest) Unmarshal

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

func (*QueryAddressMappingByEVMAddressRequest) XXX_DiscardUnknown

func (m *QueryAddressMappingByEVMAddressRequest) XXX_DiscardUnknown()

func (*QueryAddressMappingByEVMAddressRequest) XXX_Marshal

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

func (*QueryAddressMappingByEVMAddressRequest) XXX_Merge

func (*QueryAddressMappingByEVMAddressRequest) XXX_Size

func (*QueryAddressMappingByEVMAddressRequest) XXX_Unmarshal

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

type QueryAddressMappingByEVMAddressResponse

type QueryAddressMappingByEVMAddressResponse struct {
	CosmosAddress string `protobuf:"bytes,1,opt,name=cosmos_address,json=cosmosAddress,proto3" json:"cosmos_address,omitempty"`
	EvmAddress    string `protobuf:"bytes,2,opt,name=evm_address,json=evmAddress,proto3" json:"evm_address,omitempty"`
}

func (*QueryAddressMappingByEVMAddressResponse) Descriptor

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

func (*QueryAddressMappingByEVMAddressResponse) GetCosmosAddress

func (m *QueryAddressMappingByEVMAddressResponse) GetCosmosAddress() string

func (*QueryAddressMappingByEVMAddressResponse) GetEvmAddress

func (*QueryAddressMappingByEVMAddressResponse) Marshal

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

func (*QueryAddressMappingByEVMAddressResponse) MarshalTo

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

func (*QueryAddressMappingByEVMAddressResponse) MarshalToSizedBuffer

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

func (*QueryAddressMappingByEVMAddressResponse) ProtoMessage

func (*QueryAddressMappingByEVMAddressResponse) Reset

func (*QueryAddressMappingByEVMAddressResponse) Size

func (*QueryAddressMappingByEVMAddressResponse) String

func (*QueryAddressMappingByEVMAddressResponse) Unmarshal

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

func (*QueryAddressMappingByEVMAddressResponse) XXX_DiscardUnknown

func (m *QueryAddressMappingByEVMAddressResponse) XXX_DiscardUnknown()

func (*QueryAddressMappingByEVMAddressResponse) XXX_Marshal

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

func (*QueryAddressMappingByEVMAddressResponse) XXX_Merge

func (*QueryAddressMappingByEVMAddressResponse) XXX_Size

func (*QueryAddressMappingByEVMAddressResponse) XXX_Unmarshal

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

type QueryAddressMappingsRequest

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

func (*QueryAddressMappingsRequest) Descriptor

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

func (*QueryAddressMappingsRequest) GetPagination

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

func (*QueryAddressMappingsRequest) Marshal

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

func (*QueryAddressMappingsRequest) MarshalTo

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

func (*QueryAddressMappingsRequest) MarshalToSizedBuffer

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

func (*QueryAddressMappingsRequest) ProtoMessage

func (*QueryAddressMappingsRequest) ProtoMessage()

func (*QueryAddressMappingsRequest) Reset

func (m *QueryAddressMappingsRequest) Reset()

func (*QueryAddressMappingsRequest) Size

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

func (*QueryAddressMappingsRequest) String

func (m *QueryAddressMappingsRequest) String() string

func (*QueryAddressMappingsRequest) Unmarshal

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

func (*QueryAddressMappingsRequest) XXX_DiscardUnknown

func (m *QueryAddressMappingsRequest) XXX_DiscardUnknown()

func (*QueryAddressMappingsRequest) XXX_Marshal

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

func (*QueryAddressMappingsRequest) XXX_Merge

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

func (*QueryAddressMappingsRequest) XXX_Size

func (m *QueryAddressMappingsRequest) XXX_Size() int

func (*QueryAddressMappingsRequest) XXX_Unmarshal

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

type QueryAddressMappingsResponse

type QueryAddressMappingsResponse struct {
	AddressMappings []*AddressMapping  `protobuf:"bytes,1,rep,name=address_mappings,json=addressMappings,proto3" json:"address_mappings,omitempty"`
	Pagination      query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination"`
}

func (*QueryAddressMappingsResponse) Descriptor

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

func (*QueryAddressMappingsResponse) GetAddressMappings

func (m *QueryAddressMappingsResponse) GetAddressMappings() []*AddressMapping

func (*QueryAddressMappingsResponse) GetPagination

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

func (*QueryAddressMappingsResponse) Marshal

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

func (*QueryAddressMappingsResponse) MarshalTo

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

func (*QueryAddressMappingsResponse) MarshalToSizedBuffer

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

func (*QueryAddressMappingsResponse) ProtoMessage

func (*QueryAddressMappingsResponse) ProtoMessage()

func (*QueryAddressMappingsResponse) Reset

func (m *QueryAddressMappingsResponse) Reset()

func (*QueryAddressMappingsResponse) Size

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

func (*QueryAddressMappingsResponse) String

func (*QueryAddressMappingsResponse) Unmarshal

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

func (*QueryAddressMappingsResponse) XXX_DiscardUnknown

func (m *QueryAddressMappingsResponse) XXX_DiscardUnknown()

func (*QueryAddressMappingsResponse) XXX_Marshal

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

func (*QueryAddressMappingsResponse) XXX_Merge

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

func (*QueryAddressMappingsResponse) XXX_Size

func (m *QueryAddressMappingsResponse) XXX_Size() int

func (*QueryAddressMappingsResponse) XXX_Unmarshal

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

type QueryClient

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryParamsRequest

type QueryParamsRequest struct {
}

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

QueryServer is the server API for Query service.

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddAddressMapping

func (*UnimplementedMsgServer) RemoveAddressMapping

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) QueryAddressMappings

func (*UnimplementedQueryServer) QueryParams

Jump to

Keyboard shortcuts

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