Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func RegisterInterfaces(registry types.InterfaceRegistry)
- 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 ChannelKeeper
- type ContractAck
- type EventIBCHooksParamsUpdated
- func (*EventIBCHooksParamsUpdated) Descriptor() ([]byte, []int)
- func (m *EventIBCHooksParamsUpdated) GetAllowedAsyncAckContracts() []string
- func (m *EventIBCHooksParamsUpdated) Marshal() (dAtA []byte, err error)
- func (m *EventIBCHooksParamsUpdated) MarshalTo(dAtA []byte) (int, error)
- func (m *EventIBCHooksParamsUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventIBCHooksParamsUpdated) ProtoMessage()
- func (m *EventIBCHooksParamsUpdated) Reset()
- func (m *EventIBCHooksParamsUpdated) Size() (n int)
- func (m *EventIBCHooksParamsUpdated) String() string
- func (m *EventIBCHooksParamsUpdated) Unmarshal(dAtA []byte) error
- func (m *EventIBCHooksParamsUpdated) XXX_DiscardUnknown()
- func (m *EventIBCHooksParamsUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventIBCHooksParamsUpdated) XXX_Merge(src proto.Message)
- func (m *EventIBCHooksParamsUpdated) XXX_Size() int
- func (m *EventIBCHooksParamsUpdated) XXX_Unmarshal(b []byte) error
- 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 IBCAck
- type IBCAckError
- type IBCAckResponse
- type IBCAsync
- type IbcAck
- type IbcLifecycleComplete
- type IbcLifecycleCompleteAck
- type IbcLifecycleCompleteTimeout
- type IbcTimeout
- type JSONBytes
- type MarkerMemo
- type MarkerPayload
- type MsgClient
- type MsgEmitIBCAck
- func (*MsgEmitIBCAck) Descriptor() ([]byte, []int)
- func (m *MsgEmitIBCAck) GetChannel() string
- func (m *MsgEmitIBCAck) GetPacketSequence() uint64
- func (m *MsgEmitIBCAck) GetSender() string
- func (m *MsgEmitIBCAck) Marshal() (dAtA []byte, err error)
- func (m *MsgEmitIBCAck) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEmitIBCAck) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEmitIBCAck) ProtoMessage()
- func (m *MsgEmitIBCAck) Reset()
- func (m *MsgEmitIBCAck) Size() (n int)
- func (m *MsgEmitIBCAck) String() string
- func (m *MsgEmitIBCAck) Unmarshal(dAtA []byte) error
- func (m MsgEmitIBCAck) ValidateBasic() error
- func (m *MsgEmitIBCAck) XXX_DiscardUnknown()
- func (m *MsgEmitIBCAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEmitIBCAck) XXX_Merge(src proto.Message)
- func (m *MsgEmitIBCAck) XXX_Size() int
- func (m *MsgEmitIBCAck) XXX_Unmarshal(b []byte) error
- type MsgEmitIBCAckResponse
- func (*MsgEmitIBCAckResponse) Descriptor() ([]byte, []int)
- func (m *MsgEmitIBCAckResponse) GetContractResult() string
- func (m *MsgEmitIBCAckResponse) GetIbcAck() string
- func (m *MsgEmitIBCAckResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgEmitIBCAckResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEmitIBCAckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEmitIBCAckResponse) ProtoMessage()
- func (m *MsgEmitIBCAckResponse) Reset()
- func (m *MsgEmitIBCAckResponse) Size() (n int)
- func (m *MsgEmitIBCAckResponse) String() string
- func (m *MsgEmitIBCAckResponse) Unmarshal(dAtA []byte) error
- func (m *MsgEmitIBCAckResponse) XXX_DiscardUnknown()
- func (m *MsgEmitIBCAckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEmitIBCAckResponse) XXX_Merge(src proto.Message)
- func (m *MsgEmitIBCAckResponse) XXX_Size() int
- func (m *MsgEmitIBCAckResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateParamsRequest
- func (*MsgUpdateParamsRequest) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsRequest) GetAuthority() string
- func (m *MsgUpdateParamsRequest) GetParams() Params
- func (m *MsgUpdateParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsRequest) ProtoMessage()
- func (m *MsgUpdateParamsRequest) Reset()
- func (m *MsgUpdateParamsRequest) Size() (n int)
- func (m *MsgUpdateParamsRequest) String() string
- func (m *MsgUpdateParamsRequest) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateParamsRequest) ValidateBasic() error
- func (m *MsgUpdateParamsRequest) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsRequest) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsRequest) XXX_Size() int
- func (m *MsgUpdateParamsRequest) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type OnRecvPacketAsyncAckResponse
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAllowedAsyncAckContracts() []string
- 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 (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *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 PreSendPacketDataProcessingFn
- type QueryClient
- 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 RequestAck
- type RequestAckI
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( ModuleName = "ibchooks" StoreKey = "hooks-for-ibc" // not using the module name because of collisions with key "ibc" IBCCallbackKey = "ibc_callback" IBCAsyncAckKey = "ibc_async_ack" MsgEmitAckKey = "emit_ack" AttributeSender = "sender" AttributeChannel = "channel" AttributePacketSequence = "sequence" SenderPrefix = "ibc-wasm-hook-intermediary" )
Variables ¶
var ( ErrBadMetadataFormatMsg = "wasm metadata not properly formatted for: '%v'. %s" ErrBadExecutionMsg = "cannot execute contract: %v" ErrMsgValidation = errorsmod.Register("wasm-hooks", 2, "error in wasmhook message validation") ErrMarshaling = errorsmod.Register("wasm-hooks", 3, "cannot marshal the ICS20 packet") ErrInvalidPacket = errorsmod.Register("wasm-hooks", 4, "invalid packet data") ErrBadResponse = errorsmod.Register("wasm-hooks", 5, "cannot create response") ErrWasmError = errorsmod.Register("wasm-hooks", 6, "wasm error") ErrBadSender = errorsmod.Register("wasm-hooks", 7, "bad sender") ErrAckFromContract = errorsmod.Register("wasm-hooks", 8, "contract returned error ack") ErrAsyncAckNotAllowed = errorsmod.Register("wasm-hooks", 9, "contract not allowed to send async acks") ErrAckPacketMismatch = errorsmod.Register("wasm-hooks", 10, "packet does not match the expected packet") ErrInvalidContractAddr = errorsmod.Register("wasm-hooks", 11, "invalid contract address") ErrMarkerError = errorsmod.Register("marker-hooks", 12, "marker error") )
var ( ErrInvalidLengthEvent = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowEvent = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupEvent = fmt.Errorf("proto: unexpected end of group") )
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 ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = 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 ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var AllRequestMsgs = []sdk.Msg{ (*MsgEmitIBCAck)(nil), (*MsgUpdateParamsRequest)(nil), }
AllRequestMsgs defines all the Msg*Request messages.
var ( // IbcHooksParamStoreKey key for ibchooks module's params IbcHooksParamStoreKey = []byte{0x01} )
var Msg_serviceDesc = _Msg_serviceDesc
var Query_serviceDesc = _Query_serviceDesc
Functions ¶
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers concrete implementations for this module.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶ added in v1.19.0
RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".
func RegisterQueryHandlerClient ¶ added in v1.19.0
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 ¶ added in v1.19.0
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 ¶ added in v1.19.0
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 ¶ added in v1.19.0
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type ChannelKeeper ¶
type ChannelKeeper interface { GetChannel(ctx sdk.Context, srcPort, srcChan string) (channel channeltypes.Channel, found bool) GetPacketCommitment(ctx sdk.Context, portID, channelID string, sequence uint64) []byte GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool) LookupModuleByChannel(ctx sdk.Context, portID, channelID string) (string, *capabilitytypes.Capability, error) WriteAcknowledgement(ctx sdk.Context, chanCap *capabilitytypes.Capability, packet exported.PacketI, acknowledgement exported.Acknowledgement) error }
type ContractAck ¶
type ContractAck struct { ContractResult []byte `json:"contract_result"` IbcAck []byte `json:"ibc_ack"` }
ContractAck is the response to be stored when a wasm hook is executed
type EventIBCHooksParamsUpdated ¶ added in v1.19.0
type EventIBCHooksParamsUpdated struct {
AllowedAsyncAckContracts []string `` /* 137-byte string literal not displayed */
}
EventIBCHooksParamsUpdated defines the event emitted after updating ibchooks parameters.
func (*EventIBCHooksParamsUpdated) Descriptor ¶ added in v1.19.0
func (*EventIBCHooksParamsUpdated) Descriptor() ([]byte, []int)
func (*EventIBCHooksParamsUpdated) GetAllowedAsyncAckContracts ¶ added in v1.19.0
func (m *EventIBCHooksParamsUpdated) GetAllowedAsyncAckContracts() []string
func (*EventIBCHooksParamsUpdated) Marshal ¶ added in v1.19.0
func (m *EventIBCHooksParamsUpdated) Marshal() (dAtA []byte, err error)
func (*EventIBCHooksParamsUpdated) MarshalTo ¶ added in v1.19.0
func (m *EventIBCHooksParamsUpdated) MarshalTo(dAtA []byte) (int, error)
func (*EventIBCHooksParamsUpdated) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *EventIBCHooksParamsUpdated) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventIBCHooksParamsUpdated) ProtoMessage ¶ added in v1.19.0
func (*EventIBCHooksParamsUpdated) ProtoMessage()
func (*EventIBCHooksParamsUpdated) Reset ¶ added in v1.19.0
func (m *EventIBCHooksParamsUpdated) Reset()
func (*EventIBCHooksParamsUpdated) Size ¶ added in v1.19.0
func (m *EventIBCHooksParamsUpdated) Size() (n int)
func (*EventIBCHooksParamsUpdated) String ¶ added in v1.19.0
func (m *EventIBCHooksParamsUpdated) String() string
func (*EventIBCHooksParamsUpdated) Unmarshal ¶ added in v1.19.0
func (m *EventIBCHooksParamsUpdated) Unmarshal(dAtA []byte) error
func (*EventIBCHooksParamsUpdated) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *EventIBCHooksParamsUpdated) XXX_DiscardUnknown()
func (*EventIBCHooksParamsUpdated) XXX_Marshal ¶ added in v1.19.0
func (m *EventIBCHooksParamsUpdated) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventIBCHooksParamsUpdated) XXX_Merge ¶ added in v1.19.0
func (m *EventIBCHooksParamsUpdated) XXX_Merge(src proto.Message)
func (*EventIBCHooksParamsUpdated) XXX_Size ¶ added in v1.19.0
func (m *EventIBCHooksParamsUpdated) XXX_Size() int
func (*EventIBCHooksParamsUpdated) XXX_Unmarshal ¶ added in v1.19.0
func (m *EventIBCHooksParamsUpdated) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct {
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}
GenesisState is the IBC Hooks genesis state (params)
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default GenesisState for the concentrated-liquidity module.
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 IBCAck ¶
type IBCAck struct { Type string `json:"type"` Content json.RawMessage `json:"content"` // Note: These two fields have to be pointers so that they can be null // If they are not pointers, they will be empty structs when null, // which will cause issues with json.Unmarshal. AckResponse *IBCAckResponse `json:"response,omitempty"` AckError *IBCAckError `json:"error,omitempty"` }
IBCAck is the parent IBC ack response structure
func UnmarshalIBCAck ¶
UnmarshalIBCAck unmashals Ack to either response or error type
type IBCAckError ¶
type IBCAckError struct { Packet channeltypes.Packet `json:"packet"` ErrorDescription string `json:"error_description"` ErrorResponse string `json:"error_response"` }
IBCAckError is the error that a contract returns from the sudo() call on RequestAck
type IBCAckResponse ¶
type IBCAckResponse struct { Packet channeltypes.Packet `json:"packet"` ContractAck ContractAck `json:"contract_ack"` }
IBCAckResponse is the response that a contract returns from the sudo() call on OnRecvPacket or RequestAck
type IBCAsync ¶
type IBCAsync struct {
RequestAck `json:"ibc_async"`
}
IBCAsync is the sudo message to be sent to the contract for it to generate an ack for a sent packet
type IbcAck ¶
type IbcAck struct { Channel string `json:"channel"` Sequence uint64 `json:"sequence"` Ack JSONBytes `json:"ack"` Success bool `json:"success"` }
IbcAck ibc ack struct with json fields defined
type IbcLifecycleComplete ¶
type IbcLifecycleComplete struct {
IbcLifecycleComplete interface{} `json:"ibc_lifecycle_complete"`
}
IbcLifecycleComplete ibc lifecycle complete struct with json fields defined
func NewIbcLifecycleCompleteAck ¶
func NewIbcLifecycleCompleteAck(sourceChannel string, sequence uint64, ackAsJSON []byte, success bool) IbcLifecycleComplete
NewIbcLifecycleCompleteAck returns a new ibc lifecycle complete acknowledgment object for json serialization
func NewIbcLifecycleCompleteTimeout ¶
func NewIbcLifecycleCompleteTimeout(sourceChannel string, sequence uint64) IbcLifecycleComplete
NewIbcLifecycleCompleteTimeout return a new ibc lifecycle complete timeout object for json serialization
type IbcLifecycleCompleteAck ¶
type IbcLifecycleCompleteAck struct {
IbcAck IbcAck `json:"ibc_ack"`
}
IbcLifecycleCompleteAck ibc lifcycle complete ack with json fields defined
type IbcLifecycleCompleteTimeout ¶
type IbcLifecycleCompleteTimeout struct {
IbcTimeout IbcTimeout `json:"ibc_timeout"`
}
IbcLifecycleCompleteTimeout ibc lifecycle complete struct with json fields defined
type IbcTimeout ¶
IbcTimeout ibc timeout struct with json fields defined
type JSONBytes ¶
type JSONBytes []byte
JSONBytes is a byte array of a json string
func (JSONBytes) MarshalJSON ¶
MarshalJSON returns empty json object bytes when bytes are empty
type MarkerMemo ¶
type MarkerMemo struct {
Marker MarkerPayload `json:"marker"`
}
MarkerMemo parent marker struct for memo json
type MarkerPayload ¶
type MarkerPayload struct { TransferAuths []string `json:"transfer-auths"` AllowForceTransfer bool `json:"allow-force-transfer"` }
MarkerPayload child structure for marker memo
func NewMarkerPayload ¶
func NewMarkerPayload(transferAuthAddrs []sdk.AccAddress, allowForceTransfer bool) MarkerPayload
NewMarkerPayload returns a marker payload with transfer authorities and allow force transfer flag
type MsgClient ¶
type MsgClient interface { // EmitIBCAck checks the sender can emit the ack and writes the IBC // acknowledgement EmitIBCAck(ctx context.Context, in *MsgEmitIBCAck, opts ...grpc.CallOption) (*MsgEmitIBCAckResponse, error) // UpdateParams is a governance proposal endpoint for updating the ibchooks module's params. UpdateParams(ctx context.Context, in *MsgUpdateParamsRequest, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, 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 MsgEmitIBCAck ¶
type MsgEmitIBCAck struct { Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"` PacketSequence uint64 `protobuf:"varint,2,opt,name=packet_sequence,json=packetSequence,proto3" json:"packet_sequence,omitempty"` Channel string `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel,omitempty"` }
MsgEmitIBCAck is the IBC Acknowledgement
func (*MsgEmitIBCAck) Descriptor ¶
func (*MsgEmitIBCAck) Descriptor() ([]byte, []int)
func (*MsgEmitIBCAck) GetChannel ¶
func (m *MsgEmitIBCAck) GetChannel() string
func (*MsgEmitIBCAck) GetPacketSequence ¶
func (m *MsgEmitIBCAck) GetPacketSequence() uint64
func (*MsgEmitIBCAck) GetSender ¶
func (m *MsgEmitIBCAck) GetSender() string
func (*MsgEmitIBCAck) Marshal ¶
func (m *MsgEmitIBCAck) Marshal() (dAtA []byte, err error)
func (*MsgEmitIBCAck) MarshalToSizedBuffer ¶
func (m *MsgEmitIBCAck) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEmitIBCAck) ProtoMessage ¶
func (*MsgEmitIBCAck) ProtoMessage()
func (*MsgEmitIBCAck) Reset ¶
func (m *MsgEmitIBCAck) Reset()
func (*MsgEmitIBCAck) Size ¶
func (m *MsgEmitIBCAck) Size() (n int)
func (*MsgEmitIBCAck) String ¶
func (m *MsgEmitIBCAck) String() string
func (*MsgEmitIBCAck) Unmarshal ¶
func (m *MsgEmitIBCAck) Unmarshal(dAtA []byte) error
func (MsgEmitIBCAck) ValidateBasic ¶
func (m MsgEmitIBCAck) ValidateBasic() error
func (*MsgEmitIBCAck) XXX_DiscardUnknown ¶
func (m *MsgEmitIBCAck) XXX_DiscardUnknown()
func (*MsgEmitIBCAck) XXX_Marshal ¶
func (m *MsgEmitIBCAck) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEmitIBCAck) XXX_Merge ¶
func (m *MsgEmitIBCAck) XXX_Merge(src proto.Message)
func (*MsgEmitIBCAck) XXX_Size ¶
func (m *MsgEmitIBCAck) XXX_Size() int
func (*MsgEmitIBCAck) XXX_Unmarshal ¶
func (m *MsgEmitIBCAck) XXX_Unmarshal(b []byte) error
type MsgEmitIBCAckResponse ¶
type MsgEmitIBCAckResponse struct { ContractResult string `protobuf:"bytes,1,opt,name=contract_result,json=contractResult,proto3" json:"contract_result,omitempty"` IbcAck string `protobuf:"bytes,2,opt,name=ibc_ack,json=ibcAck,proto3" json:"ibc_ack,omitempty"` }
MsgEmitIBCAckResponse is the IBC Acknowledgement response
func (*MsgEmitIBCAckResponse) Descriptor ¶
func (*MsgEmitIBCAckResponse) Descriptor() ([]byte, []int)
func (*MsgEmitIBCAckResponse) GetContractResult ¶
func (m *MsgEmitIBCAckResponse) GetContractResult() string
func (*MsgEmitIBCAckResponse) GetIbcAck ¶
func (m *MsgEmitIBCAckResponse) GetIbcAck() string
func (*MsgEmitIBCAckResponse) Marshal ¶
func (m *MsgEmitIBCAckResponse) Marshal() (dAtA []byte, err error)
func (*MsgEmitIBCAckResponse) MarshalTo ¶
func (m *MsgEmitIBCAckResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgEmitIBCAckResponse) MarshalToSizedBuffer ¶
func (m *MsgEmitIBCAckResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEmitIBCAckResponse) ProtoMessage ¶
func (*MsgEmitIBCAckResponse) ProtoMessage()
func (*MsgEmitIBCAckResponse) Reset ¶
func (m *MsgEmitIBCAckResponse) Reset()
func (*MsgEmitIBCAckResponse) Size ¶
func (m *MsgEmitIBCAckResponse) Size() (n int)
func (*MsgEmitIBCAckResponse) String ¶
func (m *MsgEmitIBCAckResponse) String() string
func (*MsgEmitIBCAckResponse) Unmarshal ¶
func (m *MsgEmitIBCAckResponse) Unmarshal(dAtA []byte) error
func (*MsgEmitIBCAckResponse) XXX_DiscardUnknown ¶
func (m *MsgEmitIBCAckResponse) XXX_DiscardUnknown()
func (*MsgEmitIBCAckResponse) XXX_Marshal ¶
func (m *MsgEmitIBCAckResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEmitIBCAckResponse) XXX_Merge ¶
func (m *MsgEmitIBCAckResponse) XXX_Merge(src proto.Message)
func (*MsgEmitIBCAckResponse) XXX_Size ¶
func (m *MsgEmitIBCAckResponse) XXX_Size() int
func (*MsgEmitIBCAckResponse) XXX_Unmarshal ¶
func (m *MsgEmitIBCAckResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // EmitIBCAck checks the sender can emit the ack and writes the IBC // acknowledgement EmitIBCAck(context.Context, *MsgEmitIBCAck) (*MsgEmitIBCAckResponse, error) // UpdateParams is a governance proposal endpoint for updating the ibchooks module's params. UpdateParams(context.Context, *MsgUpdateParamsRequest) (*MsgUpdateParamsResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateParamsRequest ¶ added in v1.19.0
type MsgUpdateParamsRequest struct { // authority should be the governance module account address. Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"` // params are the new param values to set. Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"` }
MsgUpdateParamsRequest is a request message for the UpdateParams endpoint.
func NewMsgUpdateParamsRequest ¶ added in v1.19.0
func NewMsgUpdateParamsRequest(allowedAsyncAckContracts []string, authority string) *MsgUpdateParamsRequest
NewMsgUpdateParamsRequest creates a new MsgUpdateParamsRequest instance
func (*MsgUpdateParamsRequest) Descriptor ¶ added in v1.19.0
func (*MsgUpdateParamsRequest) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsRequest) GetAuthority ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) GetAuthority() string
func (*MsgUpdateParamsRequest) GetParams ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) GetParams() Params
func (*MsgUpdateParamsRequest) Marshal ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsRequest) MarshalTo ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsRequest) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsRequest) ProtoMessage ¶ added in v1.19.0
func (*MsgUpdateParamsRequest) ProtoMessage()
func (*MsgUpdateParamsRequest) Reset ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) Reset()
func (*MsgUpdateParamsRequest) Size ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) Size() (n int)
func (*MsgUpdateParamsRequest) String ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) String() string
func (*MsgUpdateParamsRequest) Unmarshal ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) Unmarshal(dAtA []byte) error
func (MsgUpdateParamsRequest) ValidateBasic ¶ added in v1.19.0
func (msg MsgUpdateParamsRequest) ValidateBasic() error
ValidateBasic implements the sdk.Msg interface.
func (*MsgUpdateParamsRequest) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) XXX_DiscardUnknown()
func (*MsgUpdateParamsRequest) XXX_Marshal ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsRequest) XXX_Merge ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsRequest) XXX_Size ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) XXX_Size() int
func (*MsgUpdateParamsRequest) XXX_Unmarshal ¶ added in v1.19.0
func (m *MsgUpdateParamsRequest) XXX_Unmarshal(b []byte) error
type MsgUpdateParamsResponse ¶ added in v1.19.0
type MsgUpdateParamsResponse struct { }
MsgUpdateParamsResponse is a response message for the UpdateParams endpoint.
func (*MsgUpdateParamsResponse) Descriptor ¶ added in v1.19.0
func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateParamsResponse) Marshal ¶ added in v1.19.0
func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateParamsResponse) MarshalTo ¶ added in v1.19.0
func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateParamsResponse) ProtoMessage ¶ added in v1.19.0
func (*MsgUpdateParamsResponse) ProtoMessage()
func (*MsgUpdateParamsResponse) Reset ¶ added in v1.19.0
func (m *MsgUpdateParamsResponse) Reset()
func (*MsgUpdateParamsResponse) Size ¶ added in v1.19.0
func (m *MsgUpdateParamsResponse) Size() (n int)
func (*MsgUpdateParamsResponse) String ¶ added in v1.19.0
func (m *MsgUpdateParamsResponse) String() string
func (*MsgUpdateParamsResponse) Unmarshal ¶ added in v1.19.0
func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateParamsResponse) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
func (*MsgUpdateParamsResponse) XXX_Marshal ¶ added in v1.19.0
func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateParamsResponse) XXX_Merge ¶ added in v1.19.0
func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateParamsResponse) XXX_Size ¶ added in v1.19.0
func (m *MsgUpdateParamsResponse) XXX_Size() int
func (*MsgUpdateParamsResponse) XXX_Unmarshal ¶ added in v1.19.0
func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
type OnRecvPacketAsyncAckResponse ¶
type OnRecvPacketAsyncAckResponse struct {
IsAsyncAck bool `json:"is_async_ack"`
}
OnRecvPacketAsyncAckResponse the response a contract sends to instruct the module to make the ack async
type Params ¶
type Params struct {
AllowedAsyncAckContracts []string `` /* 137-byte string literal not displayed */
}
Params defines the allowed async ack contracts
func DefaultParams ¶
func DefaultParams() Params
DefaultParams returns default concentrated-liquidity module parameters.
func (*Params) Descriptor ¶
func (*Params) GetAllowedAsyncAckContracts ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type PreSendPacketDataProcessingFn ¶
type PreSendPacketDataProcessingFn func(ctx sdk.Context, data []byte, processData map[string]interface{}) ([]byte, error)
PreSendPacketDataProcessingFn is function signature used for custom data processing before ibc's PacketSend executed in middleware
type QueryClient ¶ added in v1.19.0
type QueryClient interface { // Params queries params of the ihchooks module. Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, 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 ¶ added in v1.19.0
func NewQueryClient(cc grpc1.ClientConn) QueryClient
type QueryParamsRequest ¶ added in v1.19.0
type QueryParamsRequest struct { }
QueryParamsRequest is the request type for the Query/Params RPC method.
func (*QueryParamsRequest) Descriptor ¶ added in v1.19.0
func (*QueryParamsRequest) Descriptor() ([]byte, []int)
func (*QueryParamsRequest) Marshal ¶ added in v1.19.0
func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryParamsRequest) MarshalTo ¶ added in v1.19.0
func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsRequest) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsRequest) ProtoMessage ¶ added in v1.19.0
func (*QueryParamsRequest) ProtoMessage()
func (*QueryParamsRequest) Reset ¶ added in v1.19.0
func (m *QueryParamsRequest) Reset()
func (*QueryParamsRequest) Size ¶ added in v1.19.0
func (m *QueryParamsRequest) Size() (n int)
func (*QueryParamsRequest) String ¶ added in v1.19.0
func (m *QueryParamsRequest) String() string
func (*QueryParamsRequest) Unmarshal ¶ added in v1.19.0
func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryParamsRequest) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *QueryParamsRequest) XXX_DiscardUnknown()
func (*QueryParamsRequest) XXX_Marshal ¶ added in v1.19.0
func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsRequest) XXX_Merge ¶ added in v1.19.0
func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
func (*QueryParamsRequest) XXX_Size ¶ added in v1.19.0
func (m *QueryParamsRequest) XXX_Size() int
func (*QueryParamsRequest) XXX_Unmarshal ¶ added in v1.19.0
func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
type QueryParamsResponse ¶ added in v1.19.0
type QueryParamsResponse struct { // params defines the parameters of the module. Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"` }
QueryParamsResponse is the response type for the Query/Params RPC method.
func (*QueryParamsResponse) Descriptor ¶ added in v1.19.0
func (*QueryParamsResponse) Descriptor() ([]byte, []int)
func (*QueryParamsResponse) GetParams ¶ added in v1.19.0
func (m *QueryParamsResponse) GetParams() Params
func (*QueryParamsResponse) Marshal ¶ added in v1.19.0
func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
func (*QueryParamsResponse) MarshalTo ¶ added in v1.19.0
func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryParamsResponse) MarshalToSizedBuffer ¶ added in v1.19.0
func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryParamsResponse) ProtoMessage ¶ added in v1.19.0
func (*QueryParamsResponse) ProtoMessage()
func (*QueryParamsResponse) Reset ¶ added in v1.19.0
func (m *QueryParamsResponse) Reset()
func (*QueryParamsResponse) Size ¶ added in v1.19.0
func (m *QueryParamsResponse) Size() (n int)
func (*QueryParamsResponse) String ¶ added in v1.19.0
func (m *QueryParamsResponse) String() string
func (*QueryParamsResponse) Unmarshal ¶ added in v1.19.0
func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
func (*QueryParamsResponse) XXX_DiscardUnknown ¶ added in v1.19.0
func (m *QueryParamsResponse) XXX_DiscardUnknown()
func (*QueryParamsResponse) XXX_Marshal ¶ added in v1.19.0
func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryParamsResponse) XXX_Merge ¶ added in v1.19.0
func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
func (*QueryParamsResponse) XXX_Size ¶ added in v1.19.0
func (m *QueryParamsResponse) XXX_Size() int
func (*QueryParamsResponse) XXX_Unmarshal ¶ added in v1.19.0
func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶ added in v1.19.0
type QueryServer interface { // Params queries params of the ihchooks module. Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error) }
QueryServer is the server API for Query service.
type RequestAck ¶
type RequestAck struct {
RequestAckI `json:"request_ack"`
}
RequestAck internals of IBCAsync
type RequestAckI ¶
type RequestAckI struct { PacketSequence uint64 `json:"packet_sequence"` SourceChannel string `json:"source_channel"` }
RequestAckI internals of IBCAsync
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) EmitIBCAck ¶
func (*UnimplementedMsgServer) EmitIBCAck(ctx context.Context, req *MsgEmitIBCAck) (*MsgEmitIBCAckResponse, error)
func (*UnimplementedMsgServer) UpdateParams ¶ added in v1.19.0
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParamsRequest) (*MsgUpdateParamsResponse, error)
type UnimplementedQueryServer ¶ added in v1.19.0
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Params ¶ added in v1.19.0
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)