types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2021 License: Apache-2.0 Imports: 34 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 IBC transfer name
	ModuleName = "ibcaccount"

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

	PortID = "ibcaccount"

	StoreKey  = ModuleName
	RouterKey = ModuleName

	// Key to store portID in our store
	PortKey = "portID"

	QuerierRoute = ModuleName
)
View Source
const (
	QueryIBCAccount         = "ibcaccount"
	QueryIBCAccountFromData = "ibcaccount-from-data"
)

query endpoints supported by the auth Querier

Variables

View Source
var (
	ErrInvalidLengthAccount        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAccount          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrUnknownPacketData          = sdkerrors.Register(ModuleName, 1, "unknown packet data")
	ErrAccountAlreadyExist        = sdkerrors.Register(ModuleName, 2, "account already exist")
	ErrUnsupportedChain           = sdkerrors.Register(ModuleName, 3, "unsupported chain")
	ErrInvalidOutgoingData        = sdkerrors.Register(ModuleName, 4, "invalid outgoing data")
	ErrInvalidRoute               = sdkerrors.Register(ModuleName, 5, "invalid route")
	ErrTxEncoderAlreadyRegistered = sdkerrors.Register(ModuleName, 6, "tx encoder already registered")
	ErrIBCAccountNotFound         = sdkerrors.Register(ModuleName, 7, "ibc account not found")
)
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 (
	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 (
	KeyPrefixRegisteredAccount = []byte("register")
)
View Source
var Type_name = map[int32]string{
	0: "REGISTER",
	1: "RUNTX",
}
View Source
var Type_value = map[string]int32{
	"REGISTER": 0,
	"RUNTX":    1,
}

Functions

func GetIdentifier

func GetIdentifier(portID, channelID string) string

func RegisterInterfaces

func RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterface associates protoName with AccountI interface and creates a registry of it's concrete implementations

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers the account interfaces and concrete types on the provided LegacyAmino codec. These types are used for Amino JSON serialization

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 AccountKeeper

type AccountKeeper interface {
	SetAccount(ctx sdk.Context, acc authtypes.AccountI)
	GetAccount(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
	NewAccount(ctx sdk.Context, acc authtypes.AccountI) authtypes.AccountI
	NewAccountWithAddress(ctx sdk.Context, addr sdk.AccAddress) authtypes.AccountI
}

AccountKeeper defines the contract required for account APIs.

type ChannelKeeper

type ChannelKeeper interface {
	GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool)
	GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool)
	SendPacket(ctx sdk.Context, channelCap *capabilitytypes.Capability, packet ibcexported.PacketI) error
	ChanCloseInit(ctx sdk.Context, portID, channelID string, chanCap *capabilitytypes.Capability) error
}

ChannelKeeper defines the expected IBC channel keeper

type ClientKeeper

type ClientKeeper interface {
	GetClientState(ctx sdk.Context, clientID string) (ibcexported.ClientState, bool)
}

ClientKeeper defines the expected IBC client keeper

type ConnectionKeeper

type ConnectionKeeper interface {
	GetConnection(ctx sdk.Context, connectionID string) (connection connectiontypes.ConnectionEnd, found bool)
}

ConnectionKeeper defines the expected IBC connection keeper

type GenesisState

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

GenesisState defines the ibc-account genesis state

func DefaultGenesis

func DefaultGenesis() *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetPortId

func (m *GenesisState) GetPortId() string

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (*GenesisState) 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 IBCAccount

type IBCAccount struct {
	*types.BaseAccount ``     /* 136-byte string literal not displayed */
	SourcePort         string `protobuf:"bytes,2,opt,name=sourcePort,proto3" json:"sourcePort,omitempty"`
	SourceChannel      string `protobuf:"bytes,3,opt,name=sourceChannel,proto3" json:"sourceChannel,omitempty"`
	DestinationPort    string `protobuf:"bytes,4,opt,name=destinationPort,proto3" json:"destinationPort,omitempty"`
	DestinationChannel string `protobuf:"bytes,5,opt,name=destinationChannel,proto3" json:"destinationChannel,omitempty"`
}

IBCAccount defines an account to which other chains have privileges

func NewIBCAccount

func NewIBCAccount(ba *authtypes.BaseAccount, sourcePort, sourceChannel, destinationPort, destinationChannel string) *IBCAccount

func (*IBCAccount) Descriptor

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

func (IBCAccount) GetDestinationChannel

func (ia IBCAccount) GetDestinationChannel() string

func (IBCAccount) GetDestinationPort

func (ia IBCAccount) GetDestinationPort() string

func (IBCAccount) GetSourceChannel

func (ia IBCAccount) GetSourceChannel() string

func (IBCAccount) GetSourcePort

func (ia IBCAccount) GetSourcePort() string

func (*IBCAccount) Marshal

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

func (IBCAccount) MarshalJSON

func (ia IBCAccount) MarshalJSON() ([]byte, error)

MarshalJSON returns the JSON representation of a IBCAccount.

func (*IBCAccount) MarshalTo

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

func (*IBCAccount) MarshalToSizedBuffer

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

func (IBCAccount) MarshalYAML

func (ia IBCAccount) MarshalYAML() (interface{}, error)

MarshalYAML returns the YAML representation of a IBCAccount.

func (*IBCAccount) ProtoMessage

func (*IBCAccount) ProtoMessage()

func (*IBCAccount) Reset

func (m *IBCAccount) Reset()

func (IBCAccount) SetPubKey

func (IBCAccount) SetPubKey(pubKey crypto.PubKey) error

SetPubKey - Implements AccountI

func (IBCAccount) SetSequence

func (IBCAccount) SetSequence(seq uint64) error

SetSequence - Implements AccountI

func (*IBCAccount) Size

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

func (IBCAccount) String

func (ia IBCAccount) String() string

func (*IBCAccount) Unmarshal

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

func (*IBCAccount) UnmarshalJSON

func (ia *IBCAccount) UnmarshalJSON(bz []byte) error

UnmarshalJSON unmarshals raw JSON bytes into a ModuleAccount.

func (IBCAccount) Validate

func (ia IBCAccount) Validate() error

func (*IBCAccount) XXX_DiscardUnknown

func (m *IBCAccount) XXX_DiscardUnknown()

func (*IBCAccount) XXX_Marshal

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

func (*IBCAccount) XXX_Merge

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

func (*IBCAccount) XXX_Size

func (m *IBCAccount) XXX_Size() int

func (*IBCAccount) XXX_Unmarshal

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

type IBCAccountHooks

type IBCAccountHooks interface {
	OnAccountCreated(ctx sdk.Context, sourcePort, sourceChannel string, address sdk.AccAddress)
	OnTxSucceeded(ctx sdk.Context, sourcePort, sourceChannel string, txHash []byte, txBytes []byte)
	OnTxFailed(ctx sdk.Context, sourcePort, sourceChannel string, txHash []byte, txBytes []byte)
}

type IBCAccountI

type IBCAccountI interface {
	authtypes.AccountI

	GetSourcePort() string
	GetSourceChannel() string
	GetDestinationPort() string
	GetDestinationChannel() string
}

type IBCAccountPacketAcknowledgement

type IBCAccountPacketAcknowledgement struct {
	Type    Type   `protobuf:"varint,1,opt,name=type,proto3,enum=ibc.account.Type" json:"type,omitempty"`
	ChainID string `protobuf:"bytes,2,opt,name=chainID,proto3" json:"chainID,omitempty"`
	Code    uint32 `protobuf:"varint,3,opt,name=code,proto3" json:"code,omitempty"`
	Data    []byte `protobuf:"bytes,4,opt,name=data,proto3" json:"data,omitempty"`
	Error   string `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"`
}

func (*IBCAccountPacketAcknowledgement) Descriptor

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

func (IBCAccountPacketAcknowledgement) GetBytes

func (ack IBCAccountPacketAcknowledgement) GetBytes() []byte

func (*IBCAccountPacketAcknowledgement) GetChainID

func (m *IBCAccountPacketAcknowledgement) GetChainID() string

func (*IBCAccountPacketAcknowledgement) GetCode

func (*IBCAccountPacketAcknowledgement) GetData

func (m *IBCAccountPacketAcknowledgement) GetData() []byte

func (*IBCAccountPacketAcknowledgement) GetError

func (*IBCAccountPacketAcknowledgement) GetType

func (*IBCAccountPacketAcknowledgement) Marshal

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

func (*IBCAccountPacketAcknowledgement) MarshalTo

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

func (*IBCAccountPacketAcknowledgement) MarshalToSizedBuffer

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

func (*IBCAccountPacketAcknowledgement) ProtoMessage

func (*IBCAccountPacketAcknowledgement) ProtoMessage()

func (*IBCAccountPacketAcknowledgement) Reset

func (*IBCAccountPacketAcknowledgement) Size

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

func (*IBCAccountPacketAcknowledgement) String

func (*IBCAccountPacketAcknowledgement) Unmarshal

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

func (*IBCAccountPacketAcknowledgement) XXX_DiscardUnknown

func (m *IBCAccountPacketAcknowledgement) XXX_DiscardUnknown()

func (*IBCAccountPacketAcknowledgement) XXX_Marshal

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

func (*IBCAccountPacketAcknowledgement) XXX_Merge

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

func (*IBCAccountPacketAcknowledgement) XXX_Size

func (m *IBCAccountPacketAcknowledgement) XXX_Size() int

func (*IBCAccountPacketAcknowledgement) XXX_Unmarshal

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

type IBCAccountPacketData

type IBCAccountPacketData struct {
	Type Type   `protobuf:"varint,1,opt,name=type,proto3,enum=ibc.account.Type" json:"type,omitempty"`
	Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
}

func (*IBCAccountPacketData) Descriptor

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

func (IBCAccountPacketData) GetBytes

func (packet IBCAccountPacketData) GetBytes() []byte

func (*IBCAccountPacketData) GetData

func (m *IBCAccountPacketData) GetData() []byte

func (*IBCAccountPacketData) GetType

func (m *IBCAccountPacketData) GetType() Type

func (*IBCAccountPacketData) Marshal

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

func (*IBCAccountPacketData) MarshalTo

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

func (*IBCAccountPacketData) MarshalToSizedBuffer

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

func (*IBCAccountPacketData) ProtoMessage

func (*IBCAccountPacketData) ProtoMessage()

func (*IBCAccountPacketData) Reset

func (m *IBCAccountPacketData) Reset()

func (*IBCAccountPacketData) Size

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

func (*IBCAccountPacketData) String

func (m *IBCAccountPacketData) String() string

func (*IBCAccountPacketData) Unmarshal

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

func (*IBCAccountPacketData) XXX_DiscardUnknown

func (m *IBCAccountPacketData) XXX_DiscardUnknown()

func (*IBCAccountPacketData) XXX_Marshal

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

func (*IBCAccountPacketData) XXX_Merge

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

func (*IBCAccountPacketData) XXX_Size

func (m *IBCAccountPacketData) XXX_Size() int

func (*IBCAccountPacketData) XXX_Unmarshal

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

type IBCTxBody

type IBCTxBody struct {
	Messages []*types.Any `protobuf:"bytes,1,rep,name=messages,proto3" json:"messages,omitempty"`
}

func (*IBCTxBody) Descriptor

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

func (*IBCTxBody) GetMessages

func (m *IBCTxBody) GetMessages() []*types.Any

func (*IBCTxBody) Marshal

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

func (*IBCTxBody) MarshalTo

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

func (*IBCTxBody) MarshalToSizedBuffer

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

func (*IBCTxBody) ProtoMessage

func (*IBCTxBody) ProtoMessage()

func (*IBCTxBody) Reset

func (m *IBCTxBody) Reset()

func (*IBCTxBody) Size

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

func (*IBCTxBody) String

func (m *IBCTxBody) String() string

func (*IBCTxBody) Unmarshal

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

func (*IBCTxBody) XXX_DiscardUnknown

func (m *IBCTxBody) XXX_DiscardUnknown()

func (*IBCTxBody) XXX_Marshal

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

func (*IBCTxBody) XXX_Merge

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

func (*IBCTxBody) XXX_Size

func (m *IBCTxBody) XXX_Size() int

func (*IBCTxBody) XXX_Unmarshal

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

type IBCTxRaw

type IBCTxRaw struct {
	BodyBytes []byte `protobuf:"bytes,1,opt,name=body_bytes,json=bodyBytes,proto3" json:"body_bytes,omitempty"`
}

func (*IBCTxRaw) Descriptor

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

func (*IBCTxRaw) GetBodyBytes

func (m *IBCTxRaw) GetBodyBytes() []byte

func (*IBCTxRaw) Marshal

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

func (*IBCTxRaw) MarshalTo

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

func (*IBCTxRaw) MarshalToSizedBuffer

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

func (*IBCTxRaw) ProtoMessage

func (*IBCTxRaw) ProtoMessage()

func (*IBCTxRaw) Reset

func (m *IBCTxRaw) Reset()

func (*IBCTxRaw) Size

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

func (*IBCTxRaw) String

func (m *IBCTxRaw) String() string

func (*IBCTxRaw) Unmarshal

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

func (*IBCTxRaw) XXX_DiscardUnknown

func (m *IBCTxRaw) XXX_DiscardUnknown()

func (*IBCTxRaw) XXX_Marshal

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

func (*IBCTxRaw) XXX_Merge

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

func (*IBCTxRaw) XXX_Size

func (m *IBCTxRaw) XXX_Size() int

func (*IBCTxRaw) XXX_Unmarshal

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

type MultiIBCAccountHooks

type MultiIBCAccountHooks []IBCAccountHooks

func NewMultiIBCAccountHooks

func NewMultiIBCAccountHooks(hooks ...IBCAccountHooks) MultiIBCAccountHooks

func (MultiIBCAccountHooks) OnAccountCreated

func (h MultiIBCAccountHooks) OnAccountCreated(ctx sdk.Context, sourcePort, sourceChannel string, address sdk.AccAddress)

func (MultiIBCAccountHooks) OnTxFailed

func (h MultiIBCAccountHooks) OnTxFailed(ctx sdk.Context, sourcePort, sourceChannel string, txHash []byte, txBytes []byte)

func (MultiIBCAccountHooks) OnTxSucceeded

func (h MultiIBCAccountHooks) OnTxSucceeded(ctx sdk.Context, sourcePort, sourceChannel string, txHash []byte, txBytes []byte)

type PortKeeper

type PortKeeper interface {
	BindPort(ctx sdk.Context, portID string) *capabilitytypes.Capability
}

PortKeeper defines the expected IBC port keeper

type QueryClient

type QueryClient interface {
	IBCAccount(ctx context.Context, in *QueryIBCAccountRequest, opts ...grpc.CallOption) (*QueryIBCAccountResponse, error)
	IBCAccountFromData(ctx context.Context, in *QueryIBCAccountFromDataRequest, opts ...grpc.CallOption) (*QueryIBCAccountResponse, 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 QueryIBCAccountFromDataRequest

type QueryIBCAccountFromDataRequest struct {
	Port    string `protobuf:"bytes,1,opt,name=port,proto3" json:"port,omitempty"`
	Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"`
	Data    string `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
}

func (*QueryIBCAccountFromDataRequest) Descriptor

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

func (*QueryIBCAccountFromDataRequest) Marshal

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

func (*QueryIBCAccountFromDataRequest) MarshalTo

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

func (*QueryIBCAccountFromDataRequest) MarshalToSizedBuffer

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

func (*QueryIBCAccountFromDataRequest) ProtoMessage

func (*QueryIBCAccountFromDataRequest) ProtoMessage()

func (*QueryIBCAccountFromDataRequest) Reset

func (m *QueryIBCAccountFromDataRequest) Reset()

func (*QueryIBCAccountFromDataRequest) Size

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

func (*QueryIBCAccountFromDataRequest) String

func (*QueryIBCAccountFromDataRequest) Unmarshal

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

func (*QueryIBCAccountFromDataRequest) XXX_DiscardUnknown

func (m *QueryIBCAccountFromDataRequest) XXX_DiscardUnknown()

func (*QueryIBCAccountFromDataRequest) XXX_Marshal

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

func (*QueryIBCAccountFromDataRequest) XXX_Merge

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

func (*QueryIBCAccountFromDataRequest) XXX_Size

func (m *QueryIBCAccountFromDataRequest) XXX_Size() int

func (*QueryIBCAccountFromDataRequest) XXX_Unmarshal

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

type QueryIBCAccountRequest

type QueryIBCAccountRequest struct {
	// address is the address to query.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

func (*QueryIBCAccountRequest) Descriptor

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

func (*QueryIBCAccountRequest) Marshal

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

func (*QueryIBCAccountRequest) MarshalTo

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

func (*QueryIBCAccountRequest) MarshalToSizedBuffer

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

func (*QueryIBCAccountRequest) ProtoMessage

func (*QueryIBCAccountRequest) ProtoMessage()

func (*QueryIBCAccountRequest) Reset

func (m *QueryIBCAccountRequest) Reset()

func (*QueryIBCAccountRequest) Size

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

func (*QueryIBCAccountRequest) String

func (m *QueryIBCAccountRequest) String() string

func (*QueryIBCAccountRequest) Unmarshal

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

func (*QueryIBCAccountRequest) XXX_DiscardUnknown

func (m *QueryIBCAccountRequest) XXX_DiscardUnknown()

func (*QueryIBCAccountRequest) XXX_Marshal

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

func (*QueryIBCAccountRequest) XXX_Merge

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

func (*QueryIBCAccountRequest) XXX_Size

func (m *QueryIBCAccountRequest) XXX_Size() int

func (*QueryIBCAccountRequest) XXX_Unmarshal

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

type QueryIBCAccountResponse

type QueryIBCAccountResponse struct {
	// account defines the account of the corresponding address.
	Account *IBCAccount `protobuf:"bytes,1,opt,name=account,proto3" json:"account,omitempty"`
}

func (*QueryIBCAccountResponse) Descriptor

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

func (*QueryIBCAccountResponse) GetAccount

func (m *QueryIBCAccountResponse) GetAccount() *IBCAccount

func (*QueryIBCAccountResponse) Marshal

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

func (*QueryIBCAccountResponse) MarshalTo

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

func (*QueryIBCAccountResponse) MarshalToSizedBuffer

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

func (*QueryIBCAccountResponse) ProtoMessage

func (*QueryIBCAccountResponse) ProtoMessage()

func (*QueryIBCAccountResponse) Reset

func (m *QueryIBCAccountResponse) Reset()

func (*QueryIBCAccountResponse) Size

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

func (*QueryIBCAccountResponse) String

func (m *QueryIBCAccountResponse) String() string

func (*QueryIBCAccountResponse) Unmarshal

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

func (*QueryIBCAccountResponse) XXX_DiscardUnknown

func (m *QueryIBCAccountResponse) XXX_DiscardUnknown()

func (*QueryIBCAccountResponse) XXX_Marshal

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

func (*QueryIBCAccountResponse) XXX_Merge

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

func (*QueryIBCAccountResponse) XXX_Size

func (m *QueryIBCAccountResponse) XXX_Size() int

func (*QueryIBCAccountResponse) XXX_Unmarshal

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

type QueryServer

QueryServer is the server API for Query service.

type Router

type Router interface {
	Route(ctx sdk.Context, path string) sdk.Handler
}

type TxEncoder

type TxEncoder func(data interface{}) ([]byte, error)

type Type

type Type int32
const (
	Type_REGISTER Type = 0
	Type_RUNTX    Type = 1
)

func (Type) EnumDescriptor

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

func (Type) String

func (x Type) String() string

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) IBCAccount

func (*UnimplementedQueryServer) IBCAccountFromData

Jump to

Keyboard shortcuts

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