Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetIdentifier(portID, channelID string) string
- func RegisterInterfaces(registry codectypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type AccountKeeper
- type ChannelKeeper
- type ClientKeeper
- type ConnectionKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetPortId() string
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type IBCAccount
- func (*IBCAccount) Descriptor() ([]byte, []int)
- func (ia IBCAccount) GetDestinationChannel() string
- func (ia IBCAccount) GetDestinationPort() string
- func (ia IBCAccount) GetSourceChannel() string
- func (ia IBCAccount) GetSourcePort() string
- func (m *IBCAccount) Marshal() (dAtA []byte, err error)
- func (ia IBCAccount) MarshalJSON() ([]byte, error)
- func (m *IBCAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *IBCAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (ia IBCAccount) MarshalYAML() (interface{}, error)
- func (*IBCAccount) ProtoMessage()
- func (m *IBCAccount) Reset()
- func (IBCAccount) SetPubKey(pubKey crypto.PubKey) error
- func (IBCAccount) SetSequence(seq uint64) error
- func (m *IBCAccount) Size() (n int)
- func (ia IBCAccount) String() string
- func (m *IBCAccount) Unmarshal(dAtA []byte) error
- func (ia *IBCAccount) UnmarshalJSON(bz []byte) error
- func (ia IBCAccount) Validate() error
- func (m *IBCAccount) XXX_DiscardUnknown()
- func (m *IBCAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IBCAccount) XXX_Merge(src proto.Message)
- func (m *IBCAccount) XXX_Size() int
- func (m *IBCAccount) XXX_Unmarshal(b []byte) error
- type IBCAccountHooks
- type IBCAccountI
- type IBCAccountPacketAcknowledgement
- func (*IBCAccountPacketAcknowledgement) Descriptor() ([]byte, []int)
- func (ack IBCAccountPacketAcknowledgement) GetBytes() []byte
- func (m *IBCAccountPacketAcknowledgement) GetChainID() string
- func (m *IBCAccountPacketAcknowledgement) GetCode() uint32
- func (m *IBCAccountPacketAcknowledgement) GetData() []byte
- func (m *IBCAccountPacketAcknowledgement) GetError() string
- func (m *IBCAccountPacketAcknowledgement) GetType() Type
- func (m *IBCAccountPacketAcknowledgement) Marshal() (dAtA []byte, err error)
- func (m *IBCAccountPacketAcknowledgement) MarshalTo(dAtA []byte) (int, error)
- func (m *IBCAccountPacketAcknowledgement) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IBCAccountPacketAcknowledgement) ProtoMessage()
- func (m *IBCAccountPacketAcknowledgement) Reset()
- func (m *IBCAccountPacketAcknowledgement) Size() (n int)
- func (m *IBCAccountPacketAcknowledgement) String() string
- func (m *IBCAccountPacketAcknowledgement) Unmarshal(dAtA []byte) error
- func (m *IBCAccountPacketAcknowledgement) XXX_DiscardUnknown()
- func (m *IBCAccountPacketAcknowledgement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IBCAccountPacketAcknowledgement) XXX_Merge(src proto.Message)
- func (m *IBCAccountPacketAcknowledgement) XXX_Size() int
- func (m *IBCAccountPacketAcknowledgement) XXX_Unmarshal(b []byte) error
- type IBCAccountPacketData
- func (*IBCAccountPacketData) Descriptor() ([]byte, []int)
- func (packet IBCAccountPacketData) GetBytes() []byte
- func (m *IBCAccountPacketData) GetData() []byte
- func (m *IBCAccountPacketData) GetType() Type
- func (m *IBCAccountPacketData) Marshal() (dAtA []byte, err error)
- func (m *IBCAccountPacketData) MarshalTo(dAtA []byte) (int, error)
- func (m *IBCAccountPacketData) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IBCAccountPacketData) ProtoMessage()
- func (m *IBCAccountPacketData) Reset()
- func (m *IBCAccountPacketData) Size() (n int)
- func (m *IBCAccountPacketData) String() string
- func (m *IBCAccountPacketData) Unmarshal(dAtA []byte) error
- func (m *IBCAccountPacketData) XXX_DiscardUnknown()
- func (m *IBCAccountPacketData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IBCAccountPacketData) XXX_Merge(src proto.Message)
- func (m *IBCAccountPacketData) XXX_Size() int
- func (m *IBCAccountPacketData) XXX_Unmarshal(b []byte) error
- type IBCTxBody
- func (*IBCTxBody) Descriptor() ([]byte, []int)
- func (m *IBCTxBody) GetMessages() []*types.Any
- func (m *IBCTxBody) Marshal() (dAtA []byte, err error)
- func (m *IBCTxBody) MarshalTo(dAtA []byte) (int, error)
- func (m *IBCTxBody) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IBCTxBody) ProtoMessage()
- func (m *IBCTxBody) Reset()
- func (m *IBCTxBody) Size() (n int)
- func (m *IBCTxBody) String() string
- func (m *IBCTxBody) Unmarshal(dAtA []byte) error
- func (m *IBCTxBody) XXX_DiscardUnknown()
- func (m *IBCTxBody) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IBCTxBody) XXX_Merge(src proto.Message)
- func (m *IBCTxBody) XXX_Size() int
- func (m *IBCTxBody) XXX_Unmarshal(b []byte) error
- type IBCTxRaw
- func (*IBCTxRaw) Descriptor() ([]byte, []int)
- func (m *IBCTxRaw) GetBodyBytes() []byte
- func (m *IBCTxRaw) Marshal() (dAtA []byte, err error)
- func (m *IBCTxRaw) MarshalTo(dAtA []byte) (int, error)
- func (m *IBCTxRaw) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IBCTxRaw) ProtoMessage()
- func (m *IBCTxRaw) Reset()
- func (m *IBCTxRaw) Size() (n int)
- func (m *IBCTxRaw) String() string
- func (m *IBCTxRaw) Unmarshal(dAtA []byte) error
- func (m *IBCTxRaw) XXX_DiscardUnknown()
- func (m *IBCTxRaw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IBCTxRaw) XXX_Merge(src proto.Message)
- func (m *IBCTxRaw) XXX_Size() int
- func (m *IBCTxRaw) XXX_Unmarshal(b []byte) error
- type MultiIBCAccountHooks
- func (h MultiIBCAccountHooks) OnAccountCreated(ctx sdk.Context, sourcePort, sourceChannel string, address sdk.AccAddress)
- func (h MultiIBCAccountHooks) OnTxFailed(ctx sdk.Context, sourcePort, sourceChannel string, txHash []byte, ...)
- func (h MultiIBCAccountHooks) OnTxSucceeded(ctx sdk.Context, sourcePort, sourceChannel string, txHash []byte, ...)
- type PortKeeper
- type QueryClient
- type QueryIBCAccountFromDataRequest
- func (*QueryIBCAccountFromDataRequest) Descriptor() ([]byte, []int)
- func (m *QueryIBCAccountFromDataRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryIBCAccountFromDataRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryIBCAccountFromDataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryIBCAccountFromDataRequest) ProtoMessage()
- func (m *QueryIBCAccountFromDataRequest) Reset()
- func (m *QueryIBCAccountFromDataRequest) Size() (n int)
- func (m *QueryIBCAccountFromDataRequest) String() string
- func (m *QueryIBCAccountFromDataRequest) Unmarshal(dAtA []byte) error
- func (m *QueryIBCAccountFromDataRequest) XXX_DiscardUnknown()
- func (m *QueryIBCAccountFromDataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryIBCAccountFromDataRequest) XXX_Merge(src proto.Message)
- func (m *QueryIBCAccountFromDataRequest) XXX_Size() int
- func (m *QueryIBCAccountFromDataRequest) XXX_Unmarshal(b []byte) error
- type QueryIBCAccountRequest
- func (*QueryIBCAccountRequest) Descriptor() ([]byte, []int)
- func (m *QueryIBCAccountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryIBCAccountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryIBCAccountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryIBCAccountRequest) ProtoMessage()
- func (m *QueryIBCAccountRequest) Reset()
- func (m *QueryIBCAccountRequest) Size() (n int)
- func (m *QueryIBCAccountRequest) String() string
- func (m *QueryIBCAccountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryIBCAccountRequest) XXX_DiscardUnknown()
- func (m *QueryIBCAccountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryIBCAccountRequest) XXX_Merge(src proto.Message)
- func (m *QueryIBCAccountRequest) XXX_Size() int
- func (m *QueryIBCAccountRequest) XXX_Unmarshal(b []byte) error
- type QueryIBCAccountResponse
- func (*QueryIBCAccountResponse) Descriptor() ([]byte, []int)
- func (m *QueryIBCAccountResponse) GetAccount() *IBCAccount
- func (m *QueryIBCAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryIBCAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryIBCAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryIBCAccountResponse) ProtoMessage()
- func (m *QueryIBCAccountResponse) Reset()
- func (m *QueryIBCAccountResponse) Size() (n int)
- func (m *QueryIBCAccountResponse) String() string
- func (m *QueryIBCAccountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryIBCAccountResponse) XXX_DiscardUnknown()
- func (m *QueryIBCAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryIBCAccountResponse) XXX_Merge(src proto.Message)
- func (m *QueryIBCAccountResponse) XXX_Size() int
- func (m *QueryIBCAccountResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Router
- type TxEncoder
- type Type
- type UnimplementedQueryServer
Constants ¶
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 )
const ( QueryIBCAccount = "ibcaccount" QueryIBCAccountFromData = "ibcaccount-from-data" )
query endpoints supported by the auth Querier
Variables ¶
var ( ErrInvalidLengthAccount = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAccount = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAccount = fmt.Errorf("proto: unexpected end of group") )
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") )
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTypes = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTypes = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTypes = fmt.Errorf("proto: unexpected end of group") )
var (
KeyPrefixRegisteredAccount = []byte("register")
)
var (
ModuleCdc = codec.NewProtoCodec(codectypes.NewInterfaceRegistry())
)
var Type_name = map[int32]string{
0: "REGISTER",
1: "RUNTX",
}
var Type_value = map[string]int32{
"REGISTER": 0,
"RUNTX": 1,
}
Functions ¶
func GetIdentifier ¶
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 ¶
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) 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) 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 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 (m *IBCAccountPacketAcknowledgement) GetCode() uint32
func (*IBCAccountPacketAcknowledgement) GetData ¶
func (m *IBCAccountPacketAcknowledgement) GetData() []byte
func (*IBCAccountPacketAcknowledgement) GetError ¶
func (m *IBCAccountPacketAcknowledgement) GetError() string
func (*IBCAccountPacketAcknowledgement) GetType ¶
func (m *IBCAccountPacketAcknowledgement) GetType() Type
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 (m *IBCAccountPacketAcknowledgement) Reset()
func (*IBCAccountPacketAcknowledgement) Size ¶
func (m *IBCAccountPacketAcknowledgement) Size() (n int)
func (*IBCAccountPacketAcknowledgement) String ¶
func (m *IBCAccountPacketAcknowledgement) String() 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) GetMessages ¶
func (*IBCTxBody) MarshalToSizedBuffer ¶
func (*IBCTxBody) ProtoMessage ¶
func (*IBCTxBody) ProtoMessage()
func (*IBCTxBody) XXX_DiscardUnknown ¶
func (m *IBCTxBody) XXX_DiscardUnknown()
func (*IBCTxBody) XXX_Marshal ¶
func (*IBCTxBody) XXX_Unmarshal ¶
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) GetBodyBytes ¶
func (*IBCTxRaw) MarshalToSizedBuffer ¶
func (*IBCTxRaw) ProtoMessage ¶
func (*IBCTxRaw) ProtoMessage()
func (*IBCTxRaw) XXX_DiscardUnknown ¶
func (m *IBCTxRaw) XXX_DiscardUnknown()
func (*IBCTxRaw) XXX_Marshal ¶
func (*IBCTxRaw) XXX_Unmarshal ¶
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 (MultiIBCAccountHooks) OnTxSucceeded ¶
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 (m *QueryIBCAccountFromDataRequest) String() 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 ¶
type QueryServer interface { IBCAccount(context.Context, *QueryIBCAccountRequest) (*QueryIBCAccountResponse, error) IBCAccountFromData(context.Context, *QueryIBCAccountFromDataRequest) (*QueryIBCAccountResponse, error) }
QueryServer is the server API for Query service.
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) IBCAccount ¶
func (*UnimplementedQueryServer) IBCAccount(ctx context.Context, req *QueryIBCAccountRequest) (*QueryIBCAccountResponse, error)
func (*UnimplementedQueryServer) IBCAccountFromData ¶
func (*UnimplementedQueryServer) IBCAccountFromData(ctx context.Context, req *QueryIBCAccountFromDataRequest) (*QueryIBCAccountResponse, error)