Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func GetOracleStoreKey() []byte
- func GetPortStoreKey() []byte
- func RegisterInterfaces(registry cdctypes.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 EventOracleQueryError
- func (*EventOracleQueryError) Descriptor() ([]byte, []int)
- func (m *EventOracleQueryError) GetChannel() string
- func (m *EventOracleQueryError) GetError() string
- func (m *EventOracleQueryError) GetSequenceId() string
- func (m *EventOracleQueryError) Marshal() (dAtA []byte, err error)
- func (m *EventOracleQueryError) MarshalTo(dAtA []byte) (int, error)
- func (m *EventOracleQueryError) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventOracleQueryError) ProtoMessage()
- func (m *EventOracleQueryError) Reset()
- func (m *EventOracleQueryError) Size() (n int)
- func (m *EventOracleQueryError) String() string
- func (m *EventOracleQueryError) Unmarshal(dAtA []byte) error
- func (m *EventOracleQueryError) XXX_DiscardUnknown()
- func (m *EventOracleQueryError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventOracleQueryError) XXX_Merge(src proto.Message)
- func (m *EventOracleQueryError) XXX_Size() int
- func (m *EventOracleQueryError) XXX_Unmarshal(b []byte) error
- type EventOracleQuerySuccess
- func (*EventOracleQuerySuccess) Descriptor() ([]byte, []int)
- func (m *EventOracleQuerySuccess) GetChannel() string
- func (m *EventOracleQuerySuccess) GetResult() string
- func (m *EventOracleQuerySuccess) GetSequenceId() string
- func (m *EventOracleQuerySuccess) Marshal() (dAtA []byte, err error)
- func (m *EventOracleQuerySuccess) MarshalTo(dAtA []byte) (int, error)
- func (m *EventOracleQuerySuccess) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventOracleQuerySuccess) ProtoMessage()
- func (m *EventOracleQuerySuccess) Reset()
- func (m *EventOracleQuerySuccess) Size() (n int)
- func (m *EventOracleQuerySuccess) String() string
- func (m *EventOracleQuerySuccess) Unmarshal(dAtA []byte) error
- func (m *EventOracleQuerySuccess) XXX_DiscardUnknown()
- func (m *EventOracleQuerySuccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventOracleQuerySuccess) XXX_Merge(src proto.Message)
- func (m *EventOracleQuerySuccess) XXX_Size() int
- func (m *EventOracleQuerySuccess) XXX_Unmarshal(b []byte) error
- type EventOracleQueryTimeout
- func (*EventOracleQueryTimeout) Descriptor() ([]byte, []int)
- func (m *EventOracleQueryTimeout) GetChannel() string
- func (m *EventOracleQueryTimeout) GetSequenceId() string
- func (m *EventOracleQueryTimeout) Marshal() (dAtA []byte, err error)
- func (m *EventOracleQueryTimeout) MarshalTo(dAtA []byte) (int, error)
- func (m *EventOracleQueryTimeout) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*EventOracleQueryTimeout) ProtoMessage()
- func (m *EventOracleQueryTimeout) Reset()
- func (m *EventOracleQueryTimeout) Size() (n int)
- func (m *EventOracleQueryTimeout) String() string
- func (m *EventOracleQueryTimeout) Unmarshal(dAtA []byte) error
- func (m *EventOracleQueryTimeout) XXX_DiscardUnknown()
- func (m *EventOracleQueryTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *EventOracleQueryTimeout) XXX_Merge(src proto.Message)
- func (m *EventOracleQueryTimeout) XXX_Size() int
- func (m *EventOracleQueryTimeout) XXX_Unmarshal(b []byte) error
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- 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 ICS4Wrapper
- type MsgClient
- type MsgSendQueryOracleRequest
- func (*MsgSendQueryOracleRequest) Descriptor() ([]byte, []int)
- func (m *MsgSendQueryOracleRequest) GetAuthority() string
- func (m *MsgSendQueryOracleRequest) GetChannel() string
- func (m *MsgSendQueryOracleRequest) GetQuery() github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage
- func (msg MsgSendQueryOracleRequest) GetSigners() []sdk.AccAddress
- func (m *MsgSendQueryOracleRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgSendQueryOracleRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSendQueryOracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSendQueryOracleRequest) ProtoMessage()
- func (m *MsgSendQueryOracleRequest) Reset()
- func (m *MsgSendQueryOracleRequest) Size() (n int)
- func (m *MsgSendQueryOracleRequest) String() string
- func (m *MsgSendQueryOracleRequest) Unmarshal(dAtA []byte) error
- func (msg MsgSendQueryOracleRequest) ValidateBasic() error
- func (m *MsgSendQueryOracleRequest) XXX_DiscardUnknown()
- func (m *MsgSendQueryOracleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSendQueryOracleRequest) XXX_Merge(src proto.Message)
- func (m *MsgSendQueryOracleRequest) XXX_Size() int
- func (m *MsgSendQueryOracleRequest) XXX_Unmarshal(b []byte) error
- type MsgSendQueryOracleResponse
- func (*MsgSendQueryOracleResponse) Descriptor() ([]byte, []int)
- func (m *MsgSendQueryOracleResponse) GetSequence() uint64
- func (m *MsgSendQueryOracleResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgSendQueryOracleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgSendQueryOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgSendQueryOracleResponse) ProtoMessage()
- func (m *MsgSendQueryOracleResponse) Reset()
- func (m *MsgSendQueryOracleResponse) Size() (n int)
- func (m *MsgSendQueryOracleResponse) String() string
- func (m *MsgSendQueryOracleResponse) Unmarshal(dAtA []byte) error
- func (m *MsgSendQueryOracleResponse) XXX_DiscardUnknown()
- func (m *MsgSendQueryOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgSendQueryOracleResponse) XXX_Merge(src proto.Message)
- func (m *MsgSendQueryOracleResponse) XXX_Size() int
- func (m *MsgSendQueryOracleResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateOracleRequest
- func (*MsgUpdateOracleRequest) Descriptor() ([]byte, []int)
- func (this *MsgUpdateOracleRequest) Equal(that interface{}) bool
- func (m *MsgUpdateOracleRequest) GetAddress() string
- func (m *MsgUpdateOracleRequest) GetAuthority() string
- func (msg MsgUpdateOracleRequest) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateOracleRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateOracleRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateOracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateOracleRequest) ProtoMessage()
- func (m *MsgUpdateOracleRequest) Reset()
- func (m *MsgUpdateOracleRequest) Size() (n int)
- func (m *MsgUpdateOracleRequest) String() string
- func (m *MsgUpdateOracleRequest) Unmarshal(dAtA []byte) error
- func (msg MsgUpdateOracleRequest) ValidateBasic() error
- func (m *MsgUpdateOracleRequest) XXX_DiscardUnknown()
- func (m *MsgUpdateOracleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateOracleRequest) XXX_Merge(src proto.Message)
- func (m *MsgUpdateOracleRequest) XXX_Size() int
- func (m *MsgUpdateOracleRequest) XXX_Unmarshal(b []byte) error
- type MsgUpdateOracleResponse
- func (*MsgUpdateOracleResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateOracleResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateOracleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateOracleResponse) ProtoMessage()
- func (m *MsgUpdateOracleResponse) Reset()
- func (m *MsgUpdateOracleResponse) Size() (n int)
- func (m *MsgUpdateOracleResponse) String() string
- func (m *MsgUpdateOracleResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateOracleResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateOracleResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateOracleResponse) XXX_Size() int
- func (m *MsgUpdateOracleResponse) XXX_Unmarshal(b []byte) error
- type PortKeeper
- type QueryClient
- type QueryOracleAddressRequest
- func (*QueryOracleAddressRequest) Descriptor() ([]byte, []int)
- func (m *QueryOracleAddressRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOracleAddressRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOracleAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOracleAddressRequest) ProtoMessage()
- func (m *QueryOracleAddressRequest) Reset()
- func (m *QueryOracleAddressRequest) Size() (n int)
- func (m *QueryOracleAddressRequest) String() string
- func (m *QueryOracleAddressRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOracleAddressRequest) XXX_DiscardUnknown()
- func (m *QueryOracleAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOracleAddressRequest) XXX_Merge(src proto.Message)
- func (m *QueryOracleAddressRequest) XXX_Size() int
- func (m *QueryOracleAddressRequest) XXX_Unmarshal(b []byte) error
- type QueryOracleAddressResponse
- func (*QueryOracleAddressResponse) Descriptor() ([]byte, []int)
- func (m *QueryOracleAddressResponse) GetAddress() string
- func (m *QueryOracleAddressResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOracleAddressResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOracleAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOracleAddressResponse) ProtoMessage()
- func (m *QueryOracleAddressResponse) Reset()
- func (m *QueryOracleAddressResponse) Size() (n int)
- func (m *QueryOracleAddressResponse) String() string
- func (m *QueryOracleAddressResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOracleAddressResponse) XXX_DiscardUnknown()
- func (m *QueryOracleAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOracleAddressResponse) XXX_Merge(src proto.Message)
- func (m *QueryOracleAddressResponse) XXX_Size() int
- func (m *QueryOracleAddressResponse) XXX_Unmarshal(b []byte) error
- type QueryOracleRequest
- func (*QueryOracleRequest) Descriptor() ([]byte, []int)
- func (m *QueryOracleRequest) GetQuery() github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage
- func (m *QueryOracleRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryOracleRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOracleRequest) ProtoMessage()
- func (m *QueryOracleRequest) Reset()
- func (m *QueryOracleRequest) Size() (n int)
- func (m *QueryOracleRequest) String() string
- func (m *QueryOracleRequest) Unmarshal(dAtA []byte) error
- func (m *QueryOracleRequest) XXX_DiscardUnknown()
- func (m *QueryOracleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOracleRequest) XXX_Merge(src proto.Message)
- func (m *QueryOracleRequest) XXX_Size() int
- func (m *QueryOracleRequest) XXX_Unmarshal(b []byte) error
- type QueryOracleResponse
- func (*QueryOracleResponse) Descriptor() ([]byte, []int)
- func (m *QueryOracleResponse) GetData() github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage
- func (m *QueryOracleResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryOracleResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryOracleResponse) ProtoMessage()
- func (m *QueryOracleResponse) Reset()
- func (m *QueryOracleResponse) Size() (n int)
- func (m *QueryOracleResponse) String() string
- func (m *QueryOracleResponse) Unmarshal(dAtA []byte) error
- func (m *QueryOracleResponse) XXX_DiscardUnknown()
- func (m *QueryOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryOracleResponse) XXX_Merge(src proto.Message)
- func (m *QueryOracleResponse) XXX_Size() int
- func (m *QueryOracleResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type ScopedKeeper
- type UnimplementedMsgServer
- type UnimplementedQueryServer
Constants ¶
const ( // ModuleName defines the module name ModuleName = "oracle" // StoreKey is string representation of the store key for marker StoreKey = ModuleName // MemStoreKey defines the in-memory store key MemStoreKey = "mem_interquery" // Version defines the current version the IBC module supports Version = icqtypes.Version // PortID is the default port id that module binds to PortID = "oracle" )
Variables ¶
var ( ErrInvalidPacketTimeout = cerrs.Register(ModuleName, 3, "invalid packet timeout") ErrInvalidVersion = cerrs.Register(ModuleName, 4, "invalid version") ErrMissingOracleAddress = cerrs.Register(ModuleName, 5, "missing oracle address") )
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 ( // OracleStoreKey is the key for the module's oracle address OracleStoreKey = []byte{0x01} // PortStoreKey defines the key to store the port ID in store PortStoreKey = []byte{0x02} )
The Oracle module's KVStore categorizes each item in the store using a single byte prefix Any additional bytes appended after this prefix are to help in making multiple unique entries per category The keys are relatively simple and are used for module setup and configuration
OracleStoreKey - 0x01: sdk.AccAddress | 1 | PortStoreKey - 0x02: string | 1 |
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 (
ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)
Functions ¶
func GetOracleStoreKey ¶
func GetOracleStoreKey() []byte
GetOracleStoreKey is a function to get the key for the oracle's address in store
func GetPortStoreKey ¶
func GetPortStoreKey() []byte
GetPortStoreKey is a function to get the key for the port in store
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
ignoring RegisterLegacyAminoCodec registers all the necessary types and interfaces for the double check
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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.
func RegisterQueryServer ¶
func RegisterQueryServer(s grpc1.Server, srv QueryServer)
Types ¶
type ChannelKeeper ¶
type ChannelKeeper interface { GetChannel(ctx sdk.Context, portID, channelID string) (channeltypes.Channel, bool) GetNextSequenceSend(ctx sdk.Context, portID, channelID string) (uint64, bool) }
ChannelKeeper defines the expected IBC channel keeper
type EventOracleQueryError ¶
type EventOracleQueryError struct { // channel is the local channel that the oracle query response was received from Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` // sequence_id is a unique identifier of the query SequenceId string `protobuf:"bytes,2,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"` // error is the error message received from the query Error string `protobuf:"bytes,3,opt,name=error,proto3" json:"error,omitempty"` }
EventOracleQueryError is an event for when the chain receives an error response from an oracle query
func (*EventOracleQueryError) Descriptor ¶
func (*EventOracleQueryError) Descriptor() ([]byte, []int)
func (*EventOracleQueryError) GetChannel ¶
func (m *EventOracleQueryError) GetChannel() string
func (*EventOracleQueryError) GetError ¶
func (m *EventOracleQueryError) GetError() string
func (*EventOracleQueryError) GetSequenceId ¶
func (m *EventOracleQueryError) GetSequenceId() string
func (*EventOracleQueryError) Marshal ¶
func (m *EventOracleQueryError) Marshal() (dAtA []byte, err error)
func (*EventOracleQueryError) MarshalTo ¶
func (m *EventOracleQueryError) MarshalTo(dAtA []byte) (int, error)
func (*EventOracleQueryError) MarshalToSizedBuffer ¶
func (m *EventOracleQueryError) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventOracleQueryError) ProtoMessage ¶
func (*EventOracleQueryError) ProtoMessage()
func (*EventOracleQueryError) Reset ¶
func (m *EventOracleQueryError) Reset()
func (*EventOracleQueryError) Size ¶
func (m *EventOracleQueryError) Size() (n int)
func (*EventOracleQueryError) String ¶
func (m *EventOracleQueryError) String() string
func (*EventOracleQueryError) Unmarshal ¶
func (m *EventOracleQueryError) Unmarshal(dAtA []byte) error
func (*EventOracleQueryError) XXX_DiscardUnknown ¶
func (m *EventOracleQueryError) XXX_DiscardUnknown()
func (*EventOracleQueryError) XXX_Marshal ¶
func (m *EventOracleQueryError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventOracleQueryError) XXX_Merge ¶
func (m *EventOracleQueryError) XXX_Merge(src proto.Message)
func (*EventOracleQueryError) XXX_Size ¶
func (m *EventOracleQueryError) XXX_Size() int
func (*EventOracleQueryError) XXX_Unmarshal ¶
func (m *EventOracleQueryError) XXX_Unmarshal(b []byte) error
type EventOracleQuerySuccess ¶
type EventOracleQuerySuccess struct { // channel is the local channel that the oracle query response was received from Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` // sequence_id is a unique identifier of the query SequenceId string `protobuf:"bytes,2,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"` // result is the data received from the query Result string `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"` }
EventOracleQuerySuccess is an event for when the chain receives a successful response from an oracle query
func (*EventOracleQuerySuccess) Descriptor ¶
func (*EventOracleQuerySuccess) Descriptor() ([]byte, []int)
func (*EventOracleQuerySuccess) GetChannel ¶
func (m *EventOracleQuerySuccess) GetChannel() string
func (*EventOracleQuerySuccess) GetResult ¶
func (m *EventOracleQuerySuccess) GetResult() string
func (*EventOracleQuerySuccess) GetSequenceId ¶
func (m *EventOracleQuerySuccess) GetSequenceId() string
func (*EventOracleQuerySuccess) Marshal ¶
func (m *EventOracleQuerySuccess) Marshal() (dAtA []byte, err error)
func (*EventOracleQuerySuccess) MarshalTo ¶
func (m *EventOracleQuerySuccess) MarshalTo(dAtA []byte) (int, error)
func (*EventOracleQuerySuccess) MarshalToSizedBuffer ¶
func (m *EventOracleQuerySuccess) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventOracleQuerySuccess) ProtoMessage ¶
func (*EventOracleQuerySuccess) ProtoMessage()
func (*EventOracleQuerySuccess) Reset ¶
func (m *EventOracleQuerySuccess) Reset()
func (*EventOracleQuerySuccess) Size ¶
func (m *EventOracleQuerySuccess) Size() (n int)
func (*EventOracleQuerySuccess) String ¶
func (m *EventOracleQuerySuccess) String() string
func (*EventOracleQuerySuccess) Unmarshal ¶
func (m *EventOracleQuerySuccess) Unmarshal(dAtA []byte) error
func (*EventOracleQuerySuccess) XXX_DiscardUnknown ¶
func (m *EventOracleQuerySuccess) XXX_DiscardUnknown()
func (*EventOracleQuerySuccess) XXX_Marshal ¶
func (m *EventOracleQuerySuccess) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventOracleQuerySuccess) XXX_Merge ¶
func (m *EventOracleQuerySuccess) XXX_Merge(src proto.Message)
func (*EventOracleQuerySuccess) XXX_Size ¶
func (m *EventOracleQuerySuccess) XXX_Size() int
func (*EventOracleQuerySuccess) XXX_Unmarshal ¶
func (m *EventOracleQuerySuccess) XXX_Unmarshal(b []byte) error
type EventOracleQueryTimeout ¶
type EventOracleQueryTimeout struct { // channel is the local channel that the oracle timeout was received from Channel string `protobuf:"bytes,1,opt,name=channel,proto3" json:"channel,omitempty"` // sequence_id is a unique identifier of the query SequenceId string `protobuf:"bytes,2,opt,name=sequence_id,json=sequenceId,proto3" json:"sequence_id,omitempty"` }
EventOracleQueryTimeout is an event for when the chain receives a timeout from an oracle query
func (*EventOracleQueryTimeout) Descriptor ¶
func (*EventOracleQueryTimeout) Descriptor() ([]byte, []int)
func (*EventOracleQueryTimeout) GetChannel ¶
func (m *EventOracleQueryTimeout) GetChannel() string
func (*EventOracleQueryTimeout) GetSequenceId ¶
func (m *EventOracleQueryTimeout) GetSequenceId() string
func (*EventOracleQueryTimeout) Marshal ¶
func (m *EventOracleQueryTimeout) Marshal() (dAtA []byte, err error)
func (*EventOracleQueryTimeout) MarshalTo ¶
func (m *EventOracleQueryTimeout) MarshalTo(dAtA []byte) (int, error)
func (*EventOracleQueryTimeout) MarshalToSizedBuffer ¶
func (m *EventOracleQueryTimeout) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*EventOracleQueryTimeout) ProtoMessage ¶
func (*EventOracleQueryTimeout) ProtoMessage()
func (*EventOracleQueryTimeout) Reset ¶
func (m *EventOracleQueryTimeout) Reset()
func (*EventOracleQueryTimeout) Size ¶
func (m *EventOracleQueryTimeout) Size() (n int)
func (*EventOracleQueryTimeout) String ¶
func (m *EventOracleQueryTimeout) String() string
func (*EventOracleQueryTimeout) Unmarshal ¶
func (m *EventOracleQueryTimeout) Unmarshal(dAtA []byte) error
func (*EventOracleQueryTimeout) XXX_DiscardUnknown ¶
func (m *EventOracleQueryTimeout) XXX_DiscardUnknown()
func (*EventOracleQueryTimeout) XXX_Marshal ¶
func (m *EventOracleQueryTimeout) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*EventOracleQueryTimeout) XXX_Merge ¶
func (m *EventOracleQueryTimeout) XXX_Merge(src proto.Message)
func (*EventOracleQueryTimeout) XXX_Size ¶
func (m *EventOracleQueryTimeout) XXX_Size() int
func (*EventOracleQueryTimeout) XXX_Unmarshal ¶
func (m *EventOracleQueryTimeout) XXX_Unmarshal(b []byte) error
type GenesisState ¶
type GenesisState struct { // The port to assign to the module PortId string `protobuf:"bytes,2,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"` // The address of the oracle Oracle string `protobuf:"bytes,3,opt,name=oracle,proto3" json:"oracle,omitempty"` }
GenesisState defines the oracle module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default oracle genesis state
func NewGenesisState ¶
func NewGenesisState(port string, oracle string) *GenesisState
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
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 ICS4Wrapper ¶
type ICS4Wrapper interface { SendPacket( ctx sdk.Context, chanCap *capabilitytypes.Capability, sourcePort string, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, data []byte, ) (sequence uint64, err error) }
ICS4Wrapper defines the expected ICS4Wrapper for middleware
type MsgClient ¶
type MsgClient interface { // UpdateOracle is the RPC endpoint for updating the oracle UpdateOracle(ctx context.Context, in *MsgUpdateOracleRequest, opts ...grpc.CallOption) (*MsgUpdateOracleResponse, error) // SendQueryOracle sends a query to an oracle on another chain SendQueryOracle(ctx context.Context, in *MsgSendQueryOracleRequest, opts ...grpc.CallOption) (*MsgSendQueryOracleResponse, 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 MsgSendQueryOracleRequest ¶
type MsgSendQueryOracleRequest struct { // Query contains the query data passed to the oracle. Query github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage `` /* 130-byte string literal not displayed */ // Channel is the channel to the oracle. Channel string `protobuf:"bytes,3,opt,name=channel,proto3" json:"channel,omitempty"` // The signing authority for the request Authority string `protobuf:"bytes,4,opt,name=authority,proto3" json:"authority,omitempty"` }
MsgSendQueryOracleRequest queries an oracle on another chain
func NewMsgSendQueryOracle ¶
func NewMsgSendQueryOracle(creator, channelID string, query []byte) *MsgSendQueryOracleRequest
NewMsgSendQueryOracle creates a new MsgSendQueryOracleRequest
func (*MsgSendQueryOracleRequest) Descriptor ¶
func (*MsgSendQueryOracleRequest) Descriptor() ([]byte, []int)
func (*MsgSendQueryOracleRequest) GetAuthority ¶
func (m *MsgSendQueryOracleRequest) GetAuthority() string
func (*MsgSendQueryOracleRequest) GetChannel ¶
func (m *MsgSendQueryOracleRequest) GetChannel() string
func (*MsgSendQueryOracleRequest) GetQuery ¶
func (m *MsgSendQueryOracleRequest) GetQuery() github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage
func (MsgSendQueryOracleRequest) GetSigners ¶
func (msg MsgSendQueryOracleRequest) GetSigners() []sdk.AccAddress
GetSigners indicates that the message must have been signed by the parent.
func (*MsgSendQueryOracleRequest) Marshal ¶
func (m *MsgSendQueryOracleRequest) Marshal() (dAtA []byte, err error)
func (*MsgSendQueryOracleRequest) MarshalTo ¶
func (m *MsgSendQueryOracleRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgSendQueryOracleRequest) MarshalToSizedBuffer ¶
func (m *MsgSendQueryOracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSendQueryOracleRequest) ProtoMessage ¶
func (*MsgSendQueryOracleRequest) ProtoMessage()
func (*MsgSendQueryOracleRequest) Reset ¶
func (m *MsgSendQueryOracleRequest) Reset()
func (*MsgSendQueryOracleRequest) Size ¶
func (m *MsgSendQueryOracleRequest) Size() (n int)
func (*MsgSendQueryOracleRequest) String ¶
func (m *MsgSendQueryOracleRequest) String() string
func (*MsgSendQueryOracleRequest) Unmarshal ¶
func (m *MsgSendQueryOracleRequest) Unmarshal(dAtA []byte) error
func (MsgSendQueryOracleRequest) ValidateBasic ¶
func (msg MsgSendQueryOracleRequest) ValidateBasic() error
ValidateBasic runs stateless validation checks on the message.
func (*MsgSendQueryOracleRequest) XXX_DiscardUnknown ¶
func (m *MsgSendQueryOracleRequest) XXX_DiscardUnknown()
func (*MsgSendQueryOracleRequest) XXX_Marshal ¶
func (m *MsgSendQueryOracleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSendQueryOracleRequest) XXX_Merge ¶
func (m *MsgSendQueryOracleRequest) XXX_Merge(src proto.Message)
func (*MsgSendQueryOracleRequest) XXX_Size ¶
func (m *MsgSendQueryOracleRequest) XXX_Size() int
func (*MsgSendQueryOracleRequest) XXX_Unmarshal ¶
func (m *MsgSendQueryOracleRequest) XXX_Unmarshal(b []byte) error
type MsgSendQueryOracleResponse ¶
type MsgSendQueryOracleResponse struct { // The sequence number that uniquely identifies the query. Sequence uint64 `protobuf:"varint,1,opt,name=sequence,proto3" json:"sequence,omitempty"` }
MsgSendQueryOracleResponse contains the id of the oracle query.
func (*MsgSendQueryOracleResponse) Descriptor ¶
func (*MsgSendQueryOracleResponse) Descriptor() ([]byte, []int)
func (*MsgSendQueryOracleResponse) GetSequence ¶
func (m *MsgSendQueryOracleResponse) GetSequence() uint64
func (*MsgSendQueryOracleResponse) Marshal ¶
func (m *MsgSendQueryOracleResponse) Marshal() (dAtA []byte, err error)
func (*MsgSendQueryOracleResponse) MarshalTo ¶
func (m *MsgSendQueryOracleResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgSendQueryOracleResponse) MarshalToSizedBuffer ¶
func (m *MsgSendQueryOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgSendQueryOracleResponse) ProtoMessage ¶
func (*MsgSendQueryOracleResponse) ProtoMessage()
func (*MsgSendQueryOracleResponse) Reset ¶
func (m *MsgSendQueryOracleResponse) Reset()
func (*MsgSendQueryOracleResponse) Size ¶
func (m *MsgSendQueryOracleResponse) Size() (n int)
func (*MsgSendQueryOracleResponse) String ¶
func (m *MsgSendQueryOracleResponse) String() string
func (*MsgSendQueryOracleResponse) Unmarshal ¶
func (m *MsgSendQueryOracleResponse) Unmarshal(dAtA []byte) error
func (*MsgSendQueryOracleResponse) XXX_DiscardUnknown ¶
func (m *MsgSendQueryOracleResponse) XXX_DiscardUnknown()
func (*MsgSendQueryOracleResponse) XXX_Marshal ¶
func (m *MsgSendQueryOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgSendQueryOracleResponse) XXX_Merge ¶
func (m *MsgSendQueryOracleResponse) XXX_Merge(src proto.Message)
func (*MsgSendQueryOracleResponse) XXX_Size ¶
func (m *MsgSendQueryOracleResponse) XXX_Size() int
func (*MsgSendQueryOracleResponse) XXX_Unmarshal ¶
func (m *MsgSendQueryOracleResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // UpdateOracle is the RPC endpoint for updating the oracle UpdateOracle(context.Context, *MsgUpdateOracleRequest) (*MsgUpdateOracleResponse, error) // SendQueryOracle sends a query to an oracle on another chain SendQueryOracle(context.Context, *MsgSendQueryOracleRequest) (*MsgSendQueryOracleResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateOracleRequest ¶
type MsgUpdateOracleRequest struct { // The address of the oracle's contract Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` // The signing authorities for the request Authority string `protobuf:"bytes,2,opt,name=authority,proto3" json:"authority,omitempty"` }
MsgUpdateOracleRequest is the request type for updating an oracle's contract address
func NewMsgUpdateOracle ¶
func NewMsgUpdateOracle(creator, addr string) *MsgUpdateOracleRequest
NewMsgUpdateOracle creates a new MsgUpdateOracleRequest
func (*MsgUpdateOracleRequest) Descriptor ¶
func (*MsgUpdateOracleRequest) Descriptor() ([]byte, []int)
func (*MsgUpdateOracleRequest) Equal ¶
func (this *MsgUpdateOracleRequest) Equal(that interface{}) bool
func (*MsgUpdateOracleRequest) GetAddress ¶
func (m *MsgUpdateOracleRequest) GetAddress() string
func (*MsgUpdateOracleRequest) GetAuthority ¶
func (m *MsgUpdateOracleRequest) GetAuthority() string
func (MsgUpdateOracleRequest) GetSigners ¶
func (msg MsgUpdateOracleRequest) GetSigners() []sdk.AccAddress
GetSigners indicates that the message must have been signed by the parent.
func (*MsgUpdateOracleRequest) Marshal ¶
func (m *MsgUpdateOracleRequest) Marshal() (dAtA []byte, err error)
func (*MsgUpdateOracleRequest) MarshalTo ¶
func (m *MsgUpdateOracleRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateOracleRequest) MarshalToSizedBuffer ¶
func (m *MsgUpdateOracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateOracleRequest) ProtoMessage ¶
func (*MsgUpdateOracleRequest) ProtoMessage()
func (*MsgUpdateOracleRequest) Reset ¶
func (m *MsgUpdateOracleRequest) Reset()
func (*MsgUpdateOracleRequest) Size ¶
func (m *MsgUpdateOracleRequest) Size() (n int)
func (*MsgUpdateOracleRequest) String ¶
func (m *MsgUpdateOracleRequest) String() string
func (*MsgUpdateOracleRequest) Unmarshal ¶
func (m *MsgUpdateOracleRequest) Unmarshal(dAtA []byte) error
func (MsgUpdateOracleRequest) ValidateBasic ¶
func (msg MsgUpdateOracleRequest) ValidateBasic() error
ValidateBasic runs stateless validation checks on the message.
func (*MsgUpdateOracleRequest) XXX_DiscardUnknown ¶
func (m *MsgUpdateOracleRequest) XXX_DiscardUnknown()
func (*MsgUpdateOracleRequest) XXX_Marshal ¶
func (m *MsgUpdateOracleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateOracleRequest) XXX_Merge ¶
func (m *MsgUpdateOracleRequest) XXX_Merge(src proto.Message)
func (*MsgUpdateOracleRequest) XXX_Size ¶
func (m *MsgUpdateOracleRequest) XXX_Size() int
func (*MsgUpdateOracleRequest) XXX_Unmarshal ¶
func (m *MsgUpdateOracleRequest) XXX_Unmarshal(b []byte) error
type MsgUpdateOracleResponse ¶
type MsgUpdateOracleResponse struct { }
MsgUpdateOracleResponse is the response type for updating the oracle.
func (*MsgUpdateOracleResponse) Descriptor ¶
func (*MsgUpdateOracleResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateOracleResponse) Marshal ¶
func (m *MsgUpdateOracleResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateOracleResponse) MarshalTo ¶
func (m *MsgUpdateOracleResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateOracleResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateOracleResponse) ProtoMessage ¶
func (*MsgUpdateOracleResponse) ProtoMessage()
func (*MsgUpdateOracleResponse) Reset ¶
func (m *MsgUpdateOracleResponse) Reset()
func (*MsgUpdateOracleResponse) Size ¶
func (m *MsgUpdateOracleResponse) Size() (n int)
func (*MsgUpdateOracleResponse) String ¶
func (m *MsgUpdateOracleResponse) String() string
func (*MsgUpdateOracleResponse) Unmarshal ¶
func (m *MsgUpdateOracleResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateOracleResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateOracleResponse) XXX_DiscardUnknown()
func (*MsgUpdateOracleResponse) XXX_Marshal ¶
func (m *MsgUpdateOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateOracleResponse) XXX_Merge ¶
func (m *MsgUpdateOracleResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateOracleResponse) XXX_Size ¶
func (m *MsgUpdateOracleResponse) XXX_Size() int
func (*MsgUpdateOracleResponse) XXX_Unmarshal ¶
func (m *MsgUpdateOracleResponse) XXX_Unmarshal(b []byte) error
type PortKeeper ¶
type PortKeeper interface { BindPort(ctx sdk.Context, portID string) *capabilitytypes.Capability IsBound(ctx sdk.Context, portID string) bool }
PortKeeper defines the expected IBC port keeper
type QueryClient ¶
type QueryClient interface { // OracleAddress returns the address of the oracle OracleAddress(ctx context.Context, in *QueryOracleAddressRequest, opts ...grpc.CallOption) (*QueryOracleAddressResponse, error) // Oracle forwards a query to the module's oracle Oracle(ctx context.Context, in *QueryOracleRequest, opts ...grpc.CallOption) (*QueryOracleResponse, 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 QueryOracleAddressRequest ¶
type QueryOracleAddressRequest struct { }
QueryOracleAddressRequest queries for the address of the oracle.
func (*QueryOracleAddressRequest) Descriptor ¶
func (*QueryOracleAddressRequest) Descriptor() ([]byte, []int)
func (*QueryOracleAddressRequest) Marshal ¶
func (m *QueryOracleAddressRequest) Marshal() (dAtA []byte, err error)
func (*QueryOracleAddressRequest) MarshalTo ¶
func (m *QueryOracleAddressRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOracleAddressRequest) MarshalToSizedBuffer ¶
func (m *QueryOracleAddressRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOracleAddressRequest) ProtoMessage ¶
func (*QueryOracleAddressRequest) ProtoMessage()
func (*QueryOracleAddressRequest) Reset ¶
func (m *QueryOracleAddressRequest) Reset()
func (*QueryOracleAddressRequest) Size ¶
func (m *QueryOracleAddressRequest) Size() (n int)
func (*QueryOracleAddressRequest) String ¶
func (m *QueryOracleAddressRequest) String() string
func (*QueryOracleAddressRequest) Unmarshal ¶
func (m *QueryOracleAddressRequest) Unmarshal(dAtA []byte) error
func (*QueryOracleAddressRequest) XXX_DiscardUnknown ¶
func (m *QueryOracleAddressRequest) XXX_DiscardUnknown()
func (*QueryOracleAddressRequest) XXX_Marshal ¶
func (m *QueryOracleAddressRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOracleAddressRequest) XXX_Merge ¶
func (m *QueryOracleAddressRequest) XXX_Merge(src proto.Message)
func (*QueryOracleAddressRequest) XXX_Size ¶
func (m *QueryOracleAddressRequest) XXX_Size() int
func (*QueryOracleAddressRequest) XXX_Unmarshal ¶
func (m *QueryOracleAddressRequest) XXX_Unmarshal(b []byte) error
type QueryOracleAddressResponse ¶
type QueryOracleAddressResponse struct { // The address of the oracle Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"` }
QueryOracleAddressResponse contains the address of the oracle.
func (*QueryOracleAddressResponse) Descriptor ¶
func (*QueryOracleAddressResponse) Descriptor() ([]byte, []int)
func (*QueryOracleAddressResponse) GetAddress ¶
func (m *QueryOracleAddressResponse) GetAddress() string
func (*QueryOracleAddressResponse) Marshal ¶
func (m *QueryOracleAddressResponse) Marshal() (dAtA []byte, err error)
func (*QueryOracleAddressResponse) MarshalTo ¶
func (m *QueryOracleAddressResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOracleAddressResponse) MarshalToSizedBuffer ¶
func (m *QueryOracleAddressResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOracleAddressResponse) ProtoMessage ¶
func (*QueryOracleAddressResponse) ProtoMessage()
func (*QueryOracleAddressResponse) Reset ¶
func (m *QueryOracleAddressResponse) Reset()
func (*QueryOracleAddressResponse) Size ¶
func (m *QueryOracleAddressResponse) Size() (n int)
func (*QueryOracleAddressResponse) String ¶
func (m *QueryOracleAddressResponse) String() string
func (*QueryOracleAddressResponse) Unmarshal ¶
func (m *QueryOracleAddressResponse) Unmarshal(dAtA []byte) error
func (*QueryOracleAddressResponse) XXX_DiscardUnknown ¶
func (m *QueryOracleAddressResponse) XXX_DiscardUnknown()
func (*QueryOracleAddressResponse) XXX_Marshal ¶
func (m *QueryOracleAddressResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOracleAddressResponse) XXX_Merge ¶
func (m *QueryOracleAddressResponse) XXX_Merge(src proto.Message)
func (*QueryOracleAddressResponse) XXX_Size ¶
func (m *QueryOracleAddressResponse) XXX_Size() int
func (*QueryOracleAddressResponse) XXX_Unmarshal ¶
func (m *QueryOracleAddressResponse) XXX_Unmarshal(b []byte) error
type QueryOracleRequest ¶
type QueryOracleRequest struct { // Query contains the query data passed to the oracle. Query github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage `` /* 130-byte string literal not displayed */ }
QueryOracleRequest queries the module's oracle.
func (*QueryOracleRequest) Descriptor ¶
func (*QueryOracleRequest) Descriptor() ([]byte, []int)
func (*QueryOracleRequest) GetQuery ¶
func (m *QueryOracleRequest) GetQuery() github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage
func (*QueryOracleRequest) Marshal ¶
func (m *QueryOracleRequest) Marshal() (dAtA []byte, err error)
func (*QueryOracleRequest) MarshalTo ¶
func (m *QueryOracleRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryOracleRequest) MarshalToSizedBuffer ¶
func (m *QueryOracleRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOracleRequest) ProtoMessage ¶
func (*QueryOracleRequest) ProtoMessage()
func (*QueryOracleRequest) Reset ¶
func (m *QueryOracleRequest) Reset()
func (*QueryOracleRequest) Size ¶
func (m *QueryOracleRequest) Size() (n int)
func (*QueryOracleRequest) String ¶
func (m *QueryOracleRequest) String() string
func (*QueryOracleRequest) Unmarshal ¶
func (m *QueryOracleRequest) Unmarshal(dAtA []byte) error
func (*QueryOracleRequest) XXX_DiscardUnknown ¶
func (m *QueryOracleRequest) XXX_DiscardUnknown()
func (*QueryOracleRequest) XXX_Marshal ¶
func (m *QueryOracleRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOracleRequest) XXX_Merge ¶
func (m *QueryOracleRequest) XXX_Merge(src proto.Message)
func (*QueryOracleRequest) XXX_Size ¶
func (m *QueryOracleRequest) XXX_Size() int
func (*QueryOracleRequest) XXX_Unmarshal ¶
func (m *QueryOracleRequest) XXX_Unmarshal(b []byte) error
type QueryOracleResponse ¶
type QueryOracleResponse struct { // Data contains the json data returned from the oracle. Data github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage `` /* 128-byte string literal not displayed */ }
QueryOracleResponse contains the result of the query sent to the oracle.
func (*QueryOracleResponse) Descriptor ¶
func (*QueryOracleResponse) Descriptor() ([]byte, []int)
func (*QueryOracleResponse) GetData ¶
func (m *QueryOracleResponse) GetData() github_com_CosmWasm_wasmd_x_wasm_types.RawContractMessage
func (*QueryOracleResponse) Marshal ¶
func (m *QueryOracleResponse) Marshal() (dAtA []byte, err error)
func (*QueryOracleResponse) MarshalTo ¶
func (m *QueryOracleResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryOracleResponse) MarshalToSizedBuffer ¶
func (m *QueryOracleResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryOracleResponse) ProtoMessage ¶
func (*QueryOracleResponse) ProtoMessage()
func (*QueryOracleResponse) Reset ¶
func (m *QueryOracleResponse) Reset()
func (*QueryOracleResponse) Size ¶
func (m *QueryOracleResponse) Size() (n int)
func (*QueryOracleResponse) String ¶
func (m *QueryOracleResponse) String() string
func (*QueryOracleResponse) Unmarshal ¶
func (m *QueryOracleResponse) Unmarshal(dAtA []byte) error
func (*QueryOracleResponse) XXX_DiscardUnknown ¶
func (m *QueryOracleResponse) XXX_DiscardUnknown()
func (*QueryOracleResponse) XXX_Marshal ¶
func (m *QueryOracleResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryOracleResponse) XXX_Merge ¶
func (m *QueryOracleResponse) XXX_Merge(src proto.Message)
func (*QueryOracleResponse) XXX_Size ¶
func (m *QueryOracleResponse) XXX_Size() int
func (*QueryOracleResponse) XXX_Unmarshal ¶
func (m *QueryOracleResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // OracleAddress returns the address of the oracle OracleAddress(context.Context, *QueryOracleAddressRequest) (*QueryOracleAddressResponse, error) // Oracle forwards a query to the module's oracle Oracle(context.Context, *QueryOracleRequest) (*QueryOracleResponse, error) }
QueryServer is the server API for Query service.
type ScopedKeeper ¶
type ScopedKeeper interface { GetCapability(ctx sdk.Context, name string) (*capabilitytypes.Capability, bool) AuthenticateCapability(ctx sdk.Context, capability *capabilitytypes.Capability, name string) bool ClaimCapability(ctx sdk.Context, capability *capabilitytypes.Capability, name string) error }
ScopedKeeper defines the expected x/capability scoped keeper interface
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) SendQueryOracle ¶
func (*UnimplementedMsgServer) SendQueryOracle(ctx context.Context, req *MsgSendQueryOracleRequest) (*MsgSendQueryOracleResponse, error)
func (*UnimplementedMsgServer) UpdateOracle ¶
func (*UnimplementedMsgServer) UpdateOracle(ctx context.Context, req *MsgUpdateOracleRequest) (*MsgUpdateOracleResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) Oracle ¶
func (*UnimplementedQueryServer) Oracle(ctx context.Context, req *QueryOracleRequest) (*QueryOracleResponse, error)
func (*UnimplementedQueryServer) OracleAddress ¶
func (*UnimplementedQueryServer) OracleAddress(ctx context.Context, req *QueryOracleAddressRequest) (*QueryOracleAddressResponse, error)