Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func PackTxMsgAny(sdkMsg sdk.Msg) (*codectypes.Any, error)
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- 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 BankKeeper
- type ChannelKeeper
- type ContractManagerKeeper
- type FeeRefunderKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetParams() Params
- 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 (gs GenesisState) Validate() 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 ICAControllerKeeper
- type ICAOwner
- type MsgClient
- type MsgRegisterInterchainAccount
- func (*MsgRegisterInterchainAccount) Descriptor() ([]byte, []int)
- func (msg MsgRegisterInterchainAccount) GetSignBytes() []byte
- func (msg *MsgRegisterInterchainAccount) GetSigners() []sdk.AccAddress
- func (m *MsgRegisterInterchainAccount) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterInterchainAccount) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterInterchainAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterInterchainAccount) ProtoMessage()
- func (m *MsgRegisterInterchainAccount) Reset()
- func (msg *MsgRegisterInterchainAccount) Route() string
- func (m *MsgRegisterInterchainAccount) Size() (n int)
- func (m *MsgRegisterInterchainAccount) String() string
- func (msg *MsgRegisterInterchainAccount) Type() string
- func (m *MsgRegisterInterchainAccount) Unmarshal(dAtA []byte) error
- func (msg *MsgRegisterInterchainAccount) ValidateBasic() error
- func (m *MsgRegisterInterchainAccount) XXX_DiscardUnknown()
- func (m *MsgRegisterInterchainAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterInterchainAccount) XXX_Merge(src proto.Message)
- func (m *MsgRegisterInterchainAccount) XXX_Size() int
- func (m *MsgRegisterInterchainAccount) XXX_Unmarshal(b []byte) error
- type MsgRegisterInterchainAccountResponse
- func (*MsgRegisterInterchainAccountResponse) Descriptor() ([]byte, []int)
- func (m *MsgRegisterInterchainAccountResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgRegisterInterchainAccountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgRegisterInterchainAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgRegisterInterchainAccountResponse) ProtoMessage()
- func (m *MsgRegisterInterchainAccountResponse) Reset()
- func (m *MsgRegisterInterchainAccountResponse) Size() (n int)
- func (m *MsgRegisterInterchainAccountResponse) String() string
- func (m *MsgRegisterInterchainAccountResponse) Unmarshal(dAtA []byte) error
- func (m *MsgRegisterInterchainAccountResponse) XXX_DiscardUnknown()
- func (m *MsgRegisterInterchainAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgRegisterInterchainAccountResponse) XXX_Merge(src proto.Message)
- func (m *MsgRegisterInterchainAccountResponse) XXX_Size() int
- func (m *MsgRegisterInterchainAccountResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgSubmitTx
- func (*MsgSubmitTx) Descriptor() ([]byte, []int)
- func (msg MsgSubmitTx) GetSignBytes() []byte
- func (msg MsgSubmitTx) GetSigners() []sdk.AccAddress
- func (m *MsgSubmitTx) Marshal() (dAtA []byte, err error)
- func (m *MsgSubmitTx) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubmitTx) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubmitTx) ProtoMessage()
- func (m *MsgSubmitTx) Reset()
- func (msg MsgSubmitTx) Route() string
- func (m *MsgSubmitTx) Size() (n int)
- func (m *MsgSubmitTx) String() string
- func (msg MsgSubmitTx) Type() string
- func (m *MsgSubmitTx) Unmarshal(dAtA []byte) error
- func (msg MsgSubmitTx) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
- func (msg MsgSubmitTx) ValidateBasic() error
- func (m *MsgSubmitTx) XXX_DiscardUnknown()
- func (m *MsgSubmitTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubmitTx) XXX_Merge(src proto.Message)
- func (m *MsgSubmitTx) XXX_Size() int
- func (m *MsgSubmitTx) XXX_Unmarshal(b []byte) error
- type MsgSubmitTxResponse
- func (*MsgSubmitTxResponse) Descriptor() ([]byte, []int)
- func (m *MsgSubmitTxResponse) GetChannel() string
- func (m *MsgSubmitTxResponse) GetSequenceId() uint64
- func (m *MsgSubmitTxResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSubmitTxResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSubmitTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSubmitTxResponse) ProtoMessage()
- func (m *MsgSubmitTxResponse) Reset()
- func (m *MsgSubmitTxResponse) Size() (n int)
- func (m *MsgSubmitTxResponse) String() string
- func (m *MsgSubmitTxResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSubmitTxResponse) XXX_DiscardUnknown()
- func (m *MsgSubmitTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSubmitTxResponse) XXX_Merge(src proto.Message)
- func (m *MsgSubmitTxResponse) XXX_Size() int
- func (m *MsgSubmitTxResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetMsgSubmitTxMaxMessages() uint64
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (p Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryInterchainAccountAddressRequest
- func (*QueryInterchainAccountAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryInterchainAccountAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryInterchainAccountAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInterchainAccountAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInterchainAccountAddressRequest) ProtoMessage()
- func (m *QueryInterchainAccountAddressRequest) Reset()
- func (m *QueryInterchainAccountAddressRequest) Size() (n int)
- func (m *QueryInterchainAccountAddressRequest) String() string
- func (m *QueryInterchainAccountAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryInterchainAccountAddressRequest) XXX_DiscardUnknown()
- func (m *QueryInterchainAccountAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInterchainAccountAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryInterchainAccountAddressRequest) XXX_Size() int
- func (m *QueryInterchainAccountAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryInterchainAccountAddressResponse
- func (*QueryInterchainAccountAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryInterchainAccountAddressResponse) GetInterchainAccountAddress() string
- func (m *QueryInterchainAccountAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryInterchainAccountAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryInterchainAccountAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryInterchainAccountAddressResponse) ProtoMessage()
- func (m *QueryInterchainAccountAddressResponse) Reset()
- func (m *QueryInterchainAccountAddressResponse) Size() (n int)
- func (m *QueryInterchainAccountAddressResponse) String() string
- func (m *QueryInterchainAccountAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryInterchainAccountAddressResponse) XXX_DiscardUnknown()
- func (m *QueryInterchainAccountAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryInterchainAccountAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryInterchainAccountAddressResponse) XXX_Size() int
- func (m *QueryInterchainAccountAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type ScopedKeeper
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "interchaintxs" // StoreKey defines the primary module store key StoreKey = ModuleName // RouterKey is the message route for slashing RouterKey = ModuleName // QuerierRoute defines the module's query routing key QuerierRoute = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_interchaintxs" )
const Delimiter = "."
Variables ¶
var ( Amino = codec.NewLegacyAmino() ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var ( ErrInvalidICAOwner = sdkerrors.Register(ModuleName, 1100, "invalid interchain account interchainAccountID") ErrInvalidAccountAddress = sdkerrors.Register(ModuleName, 1101, "invalid account address") ErrInterchainAccountNotFound = sdkerrors.Register(ModuleName, 1102, "interchain account not found") ErrNotContract = sdkerrors.Register(ModuleName, 1103, "not a contract") ErrEmptyInterchainAccountID = sdkerrors.Register(ModuleName, 1104, "empty interchain account id") ErrEmptyConnectionID = sdkerrors.Register(ModuleName, 1105, "empty connection id") ErrNoMessages = sdkerrors.Register(ModuleName, 1106, "no messages provided") ErrInvalidTimeout = sdkerrors.Register(ModuleName, 1107, "invalid timeout") ErrInvalidPayerFee = sdkerrors.Register(ModuleName, 1108, "invalid payer feerefunder") ErrLongInterchainAccountID = sdkerrors.Register(ModuleName, 1109, "interchain account id is too long") )
x/interchaintxs module sentinel errors
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 ( KeyMsgSubmitTxMaxMessages = []byte("MsgSubmitTxMaxMessages") DefaultMsgSubmitTxMaxMessages = uint64(16) )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
func PackTxMsgAny ¶
func PackTxMsgAny(sdkMsg sdk.Msg) (*codectypes.Any, error)
PackTxMsgAny marshals the sdk.Msg payload to a protobuf Any type
func ParamKeyTable ¶
func ParamKeyTable() paramtypes.KeyTable
ParamKeyTable the param key table for launch module
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterLegacyAminoCodec ¶
func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)
func RegisterMsgServer ¶
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 ¶
AccountKeeper defines the expected account keeper used for simulations (noalias)
type BankKeeper ¶
BankKeeper defines the expected interface needed to retrieve account balances.
type ChannelKeeper ¶ added in v0.2.0
type ChannelKeeper interface { GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool) GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool) GetConnection(ctx sdk.Context, connectionID string) (ibcexported.ConnectionI, error) }
ChannelKeeper defines the expected IBC channel keeper
type ContractManagerKeeper ¶ added in v0.1.0
type ContractManagerKeeper interface { HasContractInfo(ctx sdk.Context, contractAddress sdk.AccAddress) bool AddContractFailure(ctx sdk.Context, channelID string, address string, ackID uint64, ackType string) SudoResponse(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, msg []byte) ([]byte, error) SudoError(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet, details string) ([]byte, error) SudoTimeout(ctx sdk.Context, senderAddress sdk.AccAddress, request channeltypes.Packet) ([]byte, error) SudoOnChanOpenAck(ctx sdk.Context, contractAddress sdk.AccAddress, details contractmanagertypes.OpenAckDetails) ([]byte, error) }
type FeeRefunderKeeper ¶ added in v0.2.0
type FeeRefunderKeeper interface { LockFees(ctx sdk.Context, payer sdk.AccAddress, packetID feerefundertypes.PacketID, fee feerefundertypes.Fee) error DistributeAcknowledgementFee(ctx sdk.Context, receiver sdk.AccAddress, packetID feerefundertypes.PacketID) DistributeTimeoutFee(ctx sdk.Context, receiver sdk.AccAddress, packetID feerefundertypes.PacketID) }
type GenesisState ¶
type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
GenesisState defines the interchaintxs module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
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) 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 ICAControllerKeeper ¶ added in v0.2.0
type ICAControllerKeeper interface { GetActiveChannelID(ctx sdk.Context, connectionID, portID string) (string, bool) GetInterchainAccountAddress(ctx sdk.Context, connectionID, portID string) (string, bool) RegisterInterchainAccount(ctx sdk.Context, connectionID, owner string, version string) error SendTx(ctx sdk.Context, chanCap *capabilitytypes.Capability, connectionID, portID string, icaPacketData icatypes.InterchainAccountPacketData, timeoutTimestamp uint64) (uint64, error) }
type ICAOwner ¶
type ICAOwner struct {
// contains filtered or unexported fields
}
func ICAOwnerFromPort ¶
func NewICAOwner ¶
func NewICAOwnerFromAddress ¶ added in v0.2.0
func NewICAOwnerFromAddress(address sdk.AccAddress, interchainAccountID string) ICAOwner
func (ICAOwner) GetContract ¶
func (i ICAOwner) GetContract() sdk.AccAddress
func (ICAOwner) GetInterchainAccountID ¶
type MsgClient ¶
type MsgClient interface { RegisterInterchainAccount(ctx context.Context, in *MsgRegisterInterchainAccount, opts ...grpc.CallOption) (*MsgRegisterInterchainAccountResponse, error) SubmitTx(ctx context.Context, in *MsgSubmitTx, opts ...grpc.CallOption) (*MsgSubmitTxResponse, 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 MsgRegisterInterchainAccount ¶
type MsgRegisterInterchainAccount struct { FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` ConnectionId string `protobuf:"bytes,2,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty" yaml:"connection_id"` InterchainAccountId string `` /* 149-byte string literal not displayed */ }
MsgRegisterInterchainAccount is used to register an account on a remote zone.
func (*MsgRegisterInterchainAccount) Descriptor ¶
func (*MsgRegisterInterchainAccount) Descriptor() ([]byte, []int)
func (MsgRegisterInterchainAccount) GetSignBytes ¶
func (msg MsgRegisterInterchainAccount) GetSignBytes() []byte
func (*MsgRegisterInterchainAccount) GetSigners ¶
func (msg *MsgRegisterInterchainAccount) GetSigners() []sdk.AccAddress
func (*MsgRegisterInterchainAccount) Marshal ¶
func (m *MsgRegisterInterchainAccount) Marshal() (dAtA []byte, err error)
func (*MsgRegisterInterchainAccount) MarshalTo ¶
func (m *MsgRegisterInterchainAccount) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterInterchainAccount) MarshalToSizedBuffer ¶
func (m *MsgRegisterInterchainAccount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterInterchainAccount) ProtoMessage ¶
func (*MsgRegisterInterchainAccount) ProtoMessage()
func (*MsgRegisterInterchainAccount) Reset ¶
func (m *MsgRegisterInterchainAccount) Reset()
func (*MsgRegisterInterchainAccount) Route ¶
func (msg *MsgRegisterInterchainAccount) Route() string
func (*MsgRegisterInterchainAccount) Size ¶
func (m *MsgRegisterInterchainAccount) Size() (n int)
func (*MsgRegisterInterchainAccount) String ¶
func (m *MsgRegisterInterchainAccount) String() string
func (*MsgRegisterInterchainAccount) Type ¶
func (msg *MsgRegisterInterchainAccount) Type() string
func (*MsgRegisterInterchainAccount) Unmarshal ¶
func (m *MsgRegisterInterchainAccount) Unmarshal(dAtA []byte) error
func (*MsgRegisterInterchainAccount) ValidateBasic ¶
func (msg *MsgRegisterInterchainAccount) ValidateBasic() error
func (*MsgRegisterInterchainAccount) XXX_DiscardUnknown ¶
func (m *MsgRegisterInterchainAccount) XXX_DiscardUnknown()
func (*MsgRegisterInterchainAccount) XXX_Marshal ¶
func (m *MsgRegisterInterchainAccount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterInterchainAccount) XXX_Merge ¶
func (m *MsgRegisterInterchainAccount) XXX_Merge(src proto.Message)
func (*MsgRegisterInterchainAccount) XXX_Size ¶
func (m *MsgRegisterInterchainAccount) XXX_Size() int
func (*MsgRegisterInterchainAccount) XXX_Unmarshal ¶
func (m *MsgRegisterInterchainAccount) XXX_Unmarshal(b []byte) error
type MsgRegisterInterchainAccountResponse ¶
type MsgRegisterInterchainAccountResponse struct { }
MsgRegisterInterchainAccountResponse is the response type for MsgRegisterInterchainAccount.
func (*MsgRegisterInterchainAccountResponse) Descriptor ¶
func (*MsgRegisterInterchainAccountResponse) Descriptor() ([]byte, []int)
func (*MsgRegisterInterchainAccountResponse) Marshal ¶
func (m *MsgRegisterInterchainAccountResponse) Marshal() (dAtA []byte, err error)
func (*MsgRegisterInterchainAccountResponse) MarshalTo ¶
func (m *MsgRegisterInterchainAccountResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgRegisterInterchainAccountResponse) MarshalToSizedBuffer ¶
func (m *MsgRegisterInterchainAccountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgRegisterInterchainAccountResponse) ProtoMessage ¶
func (*MsgRegisterInterchainAccountResponse) ProtoMessage()
func (*MsgRegisterInterchainAccountResponse) Reset ¶
func (m *MsgRegisterInterchainAccountResponse) Reset()
func (*MsgRegisterInterchainAccountResponse) Size ¶
func (m *MsgRegisterInterchainAccountResponse) Size() (n int)
func (*MsgRegisterInterchainAccountResponse) String ¶
func (m *MsgRegisterInterchainAccountResponse) String() string
func (*MsgRegisterInterchainAccountResponse) Unmarshal ¶
func (m *MsgRegisterInterchainAccountResponse) Unmarshal(dAtA []byte) error
func (*MsgRegisterInterchainAccountResponse) XXX_DiscardUnknown ¶
func (m *MsgRegisterInterchainAccountResponse) XXX_DiscardUnknown()
func (*MsgRegisterInterchainAccountResponse) XXX_Marshal ¶
func (m *MsgRegisterInterchainAccountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgRegisterInterchainAccountResponse) XXX_Merge ¶
func (m *MsgRegisterInterchainAccountResponse) XXX_Merge(src proto.Message)
func (*MsgRegisterInterchainAccountResponse) XXX_Size ¶
func (m *MsgRegisterInterchainAccountResponse) XXX_Size() int
func (*MsgRegisterInterchainAccountResponse) XXX_Unmarshal ¶
func (m *MsgRegisterInterchainAccountResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { RegisterInterchainAccount(context.Context, *MsgRegisterInterchainAccount) (*MsgRegisterInterchainAccountResponse, error) SubmitTx(context.Context, *MsgSubmitTx) (*MsgSubmitTxResponse, error) }
MsgServer is the server API for Msg service.
type MsgSubmitTx ¶
type MsgSubmitTx struct { FromAddress string `protobuf:"bytes,1,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` // interchain_account_id is supposed to be the unique identifier, e.g., // lido/kava. This allows contracts to have more than one interchain accounts // on remote zone This identifier will be a part of the portID that we'll // claim our capability for. InterchainAccountId string `protobuf:"bytes,2,opt,name=interchain_account_id,json=interchainAccountId,proto3" json:"interchain_account_id,omitempty"` ConnectionId string `protobuf:"bytes,3,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` Msgs []*types.Any `protobuf:"bytes,4,rep,name=msgs,proto3" json:"msgs,omitempty"` Memo string `protobuf:"bytes,5,opt,name=memo,proto3" json:"memo,omitempty"` // timeout in seconds after which the packet times out Timeout uint64 `protobuf:"varint,6,opt,name=timeout,proto3" json:"timeout,omitempty"` Fee types1.Fee `protobuf:"bytes,7,opt,name=fee,proto3" json:"fee"` }
MsgSubmitTx defines the payload for Msg/SubmitTx
func (*MsgSubmitTx) Descriptor ¶
func (*MsgSubmitTx) Descriptor() ([]byte, []int)
func (MsgSubmitTx) GetSignBytes ¶
func (msg MsgSubmitTx) GetSignBytes() []byte
func (MsgSubmitTx) GetSigners ¶
func (msg MsgSubmitTx) GetSigners() []sdk.AccAddress
func (*MsgSubmitTx) Marshal ¶
func (m *MsgSubmitTx) Marshal() (dAtA []byte, err error)
func (*MsgSubmitTx) MarshalToSizedBuffer ¶
func (m *MsgSubmitTx) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSubmitTx) ProtoMessage ¶
func (*MsgSubmitTx) ProtoMessage()
func (*MsgSubmitTx) Reset ¶
func (m *MsgSubmitTx) Reset()
func (MsgSubmitTx) Route ¶
func (msg MsgSubmitTx) Route() string
func (*MsgSubmitTx) Size ¶
func (m *MsgSubmitTx) Size() (n int)
func (*MsgSubmitTx) String ¶
func (m *MsgSubmitTx) String() string
func (MsgSubmitTx) Type ¶
func (msg MsgSubmitTx) Type() string
func (*MsgSubmitTx) Unmarshal ¶
func (m *MsgSubmitTx) Unmarshal(dAtA []byte) error
func (MsgSubmitTx) UnpackInterfaces ¶
func (msg MsgSubmitTx) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error
implements UnpackInterfacesMessage.UnpackInterfaces (https://github.com/cosmos/cosmos-sdk/blob/d07d35f29e0a0824b489c552753e8798710ff5a8/codec/types/interface_registry.go#L60)
func (MsgSubmitTx) ValidateBasic ¶
func (msg MsgSubmitTx) ValidateBasic() error
func (*MsgSubmitTx) XXX_DiscardUnknown ¶
func (m *MsgSubmitTx) XXX_DiscardUnknown()
func (*MsgSubmitTx) XXX_Marshal ¶
func (m *MsgSubmitTx) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSubmitTx) XXX_Merge ¶
func (m *MsgSubmitTx) XXX_Merge(src proto.Message)
func (*MsgSubmitTx) XXX_Size ¶
func (m *MsgSubmitTx) XXX_Size() int
func (*MsgSubmitTx) XXX_Unmarshal ¶
func (m *MsgSubmitTx) XXX_Unmarshal(b []byte) error
type MsgSubmitTxResponse ¶
type MsgSubmitTxResponse struct { // channel's sequence_id for outgoing ibc packet. Unique per a channel. SequenceId uint64 `protobuf:"varint,1,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"` // channel src channel on neutron side trasaction was submitted from Channel string `protobuf:"bytes,2,opt,name=channel,proto3" json:"channel,omitempty"` }
MsgSubmitTxResponse defines the response for Msg/SubmitTx
func (*MsgSubmitTxResponse) Descriptor ¶
func (*MsgSubmitTxResponse) Descriptor() ([]byte, []int)
func (*MsgSubmitTxResponse) GetChannel ¶
func (m *MsgSubmitTxResponse) GetChannel() string
func (*MsgSubmitTxResponse) GetSequenceId ¶
func (m *MsgSubmitTxResponse) GetSequenceId() uint64
func (*MsgSubmitTxResponse) Marshal ¶
func (m *MsgSubmitTxResponse) Marshal() (dAtA []byte, err error)
func (*MsgSubmitTxResponse) MarshalTo ¶
func (m *MsgSubmitTxResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSubmitTxResponse) MarshalToSizedBuffer ¶
func (m *MsgSubmitTxResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSubmitTxResponse) ProtoMessage ¶
func (*MsgSubmitTxResponse) ProtoMessage()
func (*MsgSubmitTxResponse) Reset ¶
func (m *MsgSubmitTxResponse) Reset()
func (*MsgSubmitTxResponse) Size ¶
func (m *MsgSubmitTxResponse) Size() (n int)
func (*MsgSubmitTxResponse) String ¶
func (m *MsgSubmitTxResponse) String() string
func (*MsgSubmitTxResponse) Unmarshal ¶
func (m *MsgSubmitTxResponse) Unmarshal(dAtA []byte) error
func (*MsgSubmitTxResponse) XXX_DiscardUnknown ¶
func (m *MsgSubmitTxResponse) XXX_DiscardUnknown()
func (*MsgSubmitTxResponse) XXX_Marshal ¶
func (m *MsgSubmitTxResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSubmitTxResponse) XXX_Merge ¶
func (m *MsgSubmitTxResponse) XXX_Merge(src proto.Message)
func (*MsgSubmitTxResponse) XXX_Size ¶
func (m *MsgSubmitTxResponse) XXX_Size() int
func (*MsgSubmitTxResponse) XXX_Unmarshal ¶
func (m *MsgSubmitTxResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { // Defines maximum amount of messages to be passed in MsgSubmitTx MsgSubmitTxMaxMessages uint64 `` /* 134-byte string literal not displayed */ }
Params defines the parameters for the module.
func (*Params) Descriptor ¶
func (*Params) GetMsgSubmitTxMaxMessages ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs get the params.ParamSet
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface { // Parameters queries the parameters of the module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error) InterchainAccountAddress(ctx context.Context, in *QueryInterchainAccountAddressRequest, opts ...grpc.CallOption) (*QueryInterchainAccountAddressResponse, 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 QueryInterchainAccountAddressRequest ¶
type QueryInterchainAccountAddressRequest struct { // owner_address is the owner of the interchain account on the controller // chain OwnerAddress string `protobuf:"bytes,1,opt,name=owner_address,json=ownerAddress,proto3" json:"owner_address,omitempty"` // interchain_account_id is an identifier of your interchain account from // which you want to execute msgs InterchainAccountId string `protobuf:"bytes,2,opt,name=interchain_account_id,json=interchainAccountId,proto3" json:"interchain_account_id,omitempty"` // connection_id is an IBC connection identifier between Neutron and remote // chain ConnectionId string `protobuf:"bytes,3,opt,name=connection_id,json=connectionId,proto3" json:"connection_id,omitempty"` }
func (*QueryInterchainAccountAddressRequest) Descriptor ¶
func (*QueryInterchainAccountAddressRequest) Descriptor() ([]byte, []int)
func (*QueryInterchainAccountAddressRequest) Marshal ¶
func (m *QueryInterchainAccountAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryInterchainAccountAddressRequest) MarshalTo ¶
func (m *QueryInterchainAccountAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryInterchainAccountAddressRequest) MarshalToSizedBuffer ¶
func (m *QueryInterchainAccountAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInterchainAccountAddressRequest) ProtoMessage ¶
func (*QueryInterchainAccountAddressRequest) ProtoMessage()
func (*QueryInterchainAccountAddressRequest) Reset ¶
func (m *QueryInterchainAccountAddressRequest) Reset()
func (*QueryInterchainAccountAddressRequest) Size ¶
func (m *QueryInterchainAccountAddressRequest) Size() (n int)
func (*QueryInterchainAccountAddressRequest) String ¶
func (m *QueryInterchainAccountAddressRequest) String() string
func (*QueryInterchainAccountAddressRequest) Unmarshal ¶
func (m *QueryInterchainAccountAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryInterchainAccountAddressRequest) XXX_DiscardUnknown ¶
func (m *QueryInterchainAccountAddressRequest) XXX_DiscardUnknown()
func (*QueryInterchainAccountAddressRequest) XXX_Marshal ¶
func (m *QueryInterchainAccountAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInterchainAccountAddressRequest) XXX_Merge ¶
func (m *QueryInterchainAccountAddressRequest) XXX_Merge(src proto.Message)
func (*QueryInterchainAccountAddressRequest) XXX_Size ¶
func (m *QueryInterchainAccountAddressRequest) XXX_Size() int
func (*QueryInterchainAccountAddressRequest) XXX_Unmarshal ¶
func (m *QueryInterchainAccountAddressRequest) XXX_Unmarshal(b []byte) error
type QueryInterchainAccountAddressResponse ¶
type QueryInterchainAccountAddressResponse struct { // The corresponding interchain account address on the host chain InterchainAccountAddress string `` /* 135-byte string literal not displayed */ }
Query response for an interchain account address
func (*QueryInterchainAccountAddressResponse) Descriptor ¶
func (*QueryInterchainAccountAddressResponse) Descriptor() ([]byte, []int)
func (*QueryInterchainAccountAddressResponse) GetInterchainAccountAddress ¶
func (m *QueryInterchainAccountAddressResponse) GetInterchainAccountAddress() string
func (*QueryInterchainAccountAddressResponse) Marshal ¶
func (m *QueryInterchainAccountAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryInterchainAccountAddressResponse) MarshalTo ¶
func (m *QueryInterchainAccountAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryInterchainAccountAddressResponse) MarshalToSizedBuffer ¶
func (m *QueryInterchainAccountAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryInterchainAccountAddressResponse) ProtoMessage ¶
func (*QueryInterchainAccountAddressResponse) ProtoMessage()
func (*QueryInterchainAccountAddressResponse) Reset ¶
func (m *QueryInterchainAccountAddressResponse) Reset()
func (*QueryInterchainAccountAddressResponse) Size ¶
func (m *QueryInterchainAccountAddressResponse) Size() (n int)
func (*QueryInterchainAccountAddressResponse) String ¶
func (m *QueryInterchainAccountAddressResponse) String() string
func (*QueryInterchainAccountAddressResponse) Unmarshal ¶
func (m *QueryInterchainAccountAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryInterchainAccountAddressResponse) XXX_DiscardUnknown ¶
func (m *QueryInterchainAccountAddressResponse) XXX_DiscardUnknown()
func (*QueryInterchainAccountAddressResponse) XXX_Marshal ¶
func (m *QueryInterchainAccountAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryInterchainAccountAddressResponse) XXX_Merge ¶
func (m *QueryInterchainAccountAddressResponse) XXX_Merge(src proto.Message)
func (*QueryInterchainAccountAddressResponse) XXX_Size ¶
func (m *QueryInterchainAccountAddressResponse) XXX_Size() int
func (*QueryInterchainAccountAddressResponse) XXX_Unmarshal ¶
func (m *QueryInterchainAccountAddressResponse) XXX_Unmarshal(b []byte) error
type QueryParamsRequest ¶
type QueryParamsRequest struct { }
QueryParamsRequest is request type for the Query/Params RPC method.
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 holds all the parameters of this module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶
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 ¶
type QueryServer interface { // Parameters queries the parameters of the module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) InterchainAccountAddress(context.Context, *QueryInterchainAccountAddressRequest) (*QueryInterchainAccountAddressResponse, error) }
QueryServer is the server API for Query service.
type ScopedKeeper ¶ added in v0.2.0
type ScopedKeeper interface { ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error GetCapability(ctx sdk.Context, name string) (*capabilitytypes.Capability, bool) }
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) RegisterInterchainAccount ¶
func (*UnimplementedMsgServer) RegisterInterchainAccount(ctx context.Context, req *MsgRegisterInterchainAccount) (*MsgRegisterInterchainAccountResponse, error)
func (*UnimplementedMsgServer) SubmitTx ¶
func (*UnimplementedMsgServer) SubmitTx(ctx context.Context, req *MsgSubmitTx) (*MsgSubmitTxResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) InterchainAccountAddress ¶
func (*UnimplementedQueryServer) InterchainAccountAddress(ctx context.Context, req *QueryInterchainAccountAddressRequest) (*QueryInterchainAccountAddressResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)