Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- 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 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 MsgClient
- type MsgCreateOracleScript
- func (*MsgCreateOracleScript) Descriptor() ([]byte, []int)
- func (m *MsgCreateOracleScript) GetCode() string
- func (m *MsgCreateOracleScript) GetCreator() string
- func (m *MsgCreateOracleScript) GetDescription() string
- func (m *MsgCreateOracleScript) GetLanguage() string
- func (m *MsgCreateOracleScript) GetName() string
- func (m *MsgCreateOracleScript) GetOwner() string
- func (msg *MsgCreateOracleScript) GetSignBytes() []byte
- func (msg *MsgCreateOracleScript) GetSigners() []sdk.AccAddress
- func (m *MsgCreateOracleScript) GetSourceCodeUrl() string
- func (m *MsgCreateOracleScript) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateOracleScript) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateOracleScript) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateOracleScript) ProtoMessage()
- func (m *MsgCreateOracleScript) Reset()
- func (msg MsgCreateOracleScript) Route() string
- func (m *MsgCreateOracleScript) Size() (n int)
- func (m *MsgCreateOracleScript) String() string
- func (msg MsgCreateOracleScript) Type() string
- func (m *MsgCreateOracleScript) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateOracleScript) ValidateBasic() error
- func (m *MsgCreateOracleScript) XXX_DiscardUnknown()
- func (m *MsgCreateOracleScript) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateOracleScript) XXX_Merge(src proto.Message)
- func (m *MsgCreateOracleScript) XXX_Size() int
- func (m *MsgCreateOracleScript) XXX_Unmarshal(b []byte) error
- type MsgCreateOracleScriptResponse
- func (*MsgCreateOracleScriptResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateOracleScriptResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateOracleScriptResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateOracleScriptResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateOracleScriptResponse) ProtoMessage()
- func (m *MsgCreateOracleScriptResponse) Reset()
- func (m *MsgCreateOracleScriptResponse) Size() (n int)
- func (m *MsgCreateOracleScriptResponse) String() string
- func (m *MsgCreateOracleScriptResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateOracleScriptResponse) XXX_DiscardUnknown()
- func (m *MsgCreateOracleScriptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateOracleScriptResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateOracleScriptResponse) XXX_Size() int
- func (m *MsgCreateOracleScriptResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateReport
- func (*MsgCreateReport) Descriptor() ([]byte, []int)
- func (m *MsgCreateReport) GetExternalid() string
- func (m *MsgCreateReport) GetReporter() string
- func (m *MsgCreateReport) GetReturndata() string
- func (msg *MsgCreateReport) GetSignBytes() []byte
- func (msg *MsgCreateReport) GetSigners() []sdk.AccAddress
- func (m *MsgCreateReport) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateReport) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateReport) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateReport) ProtoMessage()
- func (m *MsgCreateReport) Reset()
- func (msg MsgCreateReport) Route() string
- func (m *MsgCreateReport) Size() (n int)
- func (m *MsgCreateReport) String() string
- func (msg MsgCreateReport) Type() string
- func (m *MsgCreateReport) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateReport) ValidateBasic() error
- func (m *MsgCreateReport) XXX_DiscardUnknown()
- func (m *MsgCreateReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateReport) XXX_Merge(src proto.Message)
- func (m *MsgCreateReport) XXX_Size() int
- func (m *MsgCreateReport) XXX_Unmarshal(b []byte) error
- type MsgCreateReportResponse
- func (*MsgCreateReportResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateReportResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateReportResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateReportResponse) ProtoMessage()
- func (m *MsgCreateReportResponse) Reset()
- func (m *MsgCreateReportResponse) Size() (n int)
- func (m *MsgCreateReportResponse) String() string
- func (m *MsgCreateReportResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateReportResponse) XXX_DiscardUnknown()
- func (m *MsgCreateReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateReportResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateReportResponse) XXX_Size() int
- func (m *MsgCreateReportResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateReporter
- func (*MsgCreateReporter) Descriptor() ([]byte, []int)
- func (m *MsgCreateReporter) GetCreator() string
- func (m *MsgCreateReporter) GetReporter() string
- func (msg *MsgCreateReporter) GetSignBytes() []byte
- func (msg *MsgCreateReporter) GetSigners() []sdk.AccAddress
- func (m *MsgCreateReporter) GetValidator() string
- func (m *MsgCreateReporter) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateReporter) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateReporter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateReporter) ProtoMessage()
- func (m *MsgCreateReporter) Reset()
- func (msg MsgCreateReporter) Route() string
- func (m *MsgCreateReporter) Size() (n int)
- func (m *MsgCreateReporter) String() string
- func (msg MsgCreateReporter) Type() string
- func (m *MsgCreateReporter) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateReporter) ValidateBasic() error
- func (m *MsgCreateReporter) XXX_DiscardUnknown()
- func (m *MsgCreateReporter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateReporter) XXX_Merge(src proto.Message)
- func (m *MsgCreateReporter) XXX_Size() int
- func (m *MsgCreateReporter) XXX_Unmarshal(b []byte) error
- type MsgCreateReporterResponse
- func (*MsgCreateReporterResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateReporterResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateReporterResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateReporterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateReporterResponse) ProtoMessage()
- func (m *MsgCreateReporterResponse) Reset()
- func (m *MsgCreateReporterResponse) Size() (n int)
- func (m *MsgCreateReporterResponse) String() string
- func (m *MsgCreateReporterResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateReporterResponse) XXX_DiscardUnknown()
- func (m *MsgCreateReporterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateReporterResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateReporterResponse) XXX_Size() int
- func (m *MsgCreateReporterResponse) XXX_Unmarshal(b []byte) error
- type MsgCreateRequest
- func (*MsgCreateRequest) Descriptor() ([]byte, []int)
- func (m *MsgCreateRequest) GetCalldata() string
- func (m *MsgCreateRequest) GetExternalid() string
- func (m *MsgCreateRequest) GetOracleScriptId() string
- func (m *MsgCreateRequest) GetRequester() string
- func (msg *MsgCreateRequest) GetSignBytes() []byte
- func (msg *MsgCreateRequest) GetSigners() []sdk.AccAddress
- func (m *MsgCreateRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateRequest) ProtoMessage()
- func (m *MsgCreateRequest) Reset()
- func (msg MsgCreateRequest) Route() string
- func (m *MsgCreateRequest) Size() (n int)
- func (m *MsgCreateRequest) String() string
- func (msg MsgCreateRequest) Type() string
- func (m *MsgCreateRequest) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateRequest) ValidateBasic() error
- func (m *MsgCreateRequest) XXX_DiscardUnknown()
- func (m *MsgCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateRequest) XXX_Merge(src proto.Message)
- func (m *MsgCreateRequest) XXX_Size() int
- func (m *MsgCreateRequest) XXX_Unmarshal(b []byte) error
- type MsgCreateRequestResponse
- func (*MsgCreateRequestResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateRequestResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateRequestResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateRequestResponse) ProtoMessage()
- func (m *MsgCreateRequestResponse) Reset()
- func (m *MsgCreateRequestResponse) Size() (n int)
- func (m *MsgCreateRequestResponse) String() string
- func (m *MsgCreateRequestResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateRequestResponse) XXX_DiscardUnknown()
- func (m *MsgCreateRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateRequestResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateRequestResponse) XXX_Size() int
- func (m *MsgCreateRequestResponse) XXX_Unmarshal(b []byte) error
- type MsgDeleteReporter
- func (*MsgDeleteReporter) Descriptor() ([]byte, []int)
- func (m *MsgDeleteReporter) GetCreator() string
- func (m *MsgDeleteReporter) GetReporter() string
- func (msg *MsgDeleteReporter) GetSignBytes() []byte
- func (msg *MsgDeleteReporter) GetSigners() []sdk.AccAddress
- func (m *MsgDeleteReporter) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteReporter) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteReporter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteReporter) ProtoMessage()
- func (m *MsgDeleteReporter) Reset()
- func (msg MsgDeleteReporter) Route() string
- func (m *MsgDeleteReporter) Size() (n int)
- func (m *MsgDeleteReporter) String() string
- func (msg MsgDeleteReporter) Type() string
- func (m *MsgDeleteReporter) Unmarshal(dAtA []byte) error
- func (msg *MsgDeleteReporter) ValidateBasic() error
- func (m *MsgDeleteReporter) XXX_DiscardUnknown()
- func (m *MsgDeleteReporter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteReporter) XXX_Merge(src proto.Message)
- func (m *MsgDeleteReporter) XXX_Size() int
- func (m *MsgDeleteReporter) XXX_Unmarshal(b []byte) error
- type MsgDeleteReporterResponse
- func (*MsgDeleteReporterResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeleteReporterResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeleteReporterResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeleteReporterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeleteReporterResponse) ProtoMessage()
- func (m *MsgDeleteReporterResponse) Reset()
- func (m *MsgDeleteReporterResponse) Size() (n int)
- func (m *MsgDeleteReporterResponse) String() string
- func (m *MsgDeleteReporterResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeleteReporterResponse) XXX_DiscardUnknown()
- func (m *MsgDeleteReporterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeleteReporterResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeleteReporterResponse) XXX_Size() int
- func (m *MsgDeleteReporterResponse) XXX_Unmarshal(b []byte) error
- type MsgEditOracleScript
- func (*MsgEditOracleScript) Descriptor() ([]byte, []int)
- func (m *MsgEditOracleScript) GetCode() string
- func (m *MsgEditOracleScript) GetCreator() string
- func (m *MsgEditOracleScript) GetDescription() string
- func (m *MsgEditOracleScript) GetId() string
- func (m *MsgEditOracleScript) GetLanguage() string
- func (m *MsgEditOracleScript) GetName() string
- func (m *MsgEditOracleScript) GetOwner() string
- func (msg *MsgEditOracleScript) GetSignBytes() []byte
- func (msg *MsgEditOracleScript) GetSigners() []sdk.AccAddress
- func (m *MsgEditOracleScript) GetSourceCodeUrl() string
- func (m *MsgEditOracleScript) Marshal() (dAtA []byte, err error)
- func (m *MsgEditOracleScript) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditOracleScript) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditOracleScript) ProtoMessage()
- func (m *MsgEditOracleScript) Reset()
- func (msg MsgEditOracleScript) Route() string
- func (m *MsgEditOracleScript) Size() (n int)
- func (m *MsgEditOracleScript) String() string
- func (msg MsgEditOracleScript) Type() string
- func (m *MsgEditOracleScript) Unmarshal(dAtA []byte) error
- func (msg *MsgEditOracleScript) ValidateBasic() error
- func (m *MsgEditOracleScript) XXX_DiscardUnknown()
- func (m *MsgEditOracleScript) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditOracleScript) XXX_Merge(src proto.Message)
- func (m *MsgEditOracleScript) XXX_Size() int
- func (m *MsgEditOracleScript) XXX_Unmarshal(b []byte) error
- type MsgEditOracleScriptResponse
- func (*MsgEditOracleScriptResponse) Descriptor() ([]byte, []int)
- func (m *MsgEditOracleScriptResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgEditOracleScriptResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgEditOracleScriptResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgEditOracleScriptResponse) ProtoMessage()
- func (m *MsgEditOracleScriptResponse) Reset()
- func (m *MsgEditOracleScriptResponse) Size() (n int)
- func (m *MsgEditOracleScriptResponse) String() string
- func (m *MsgEditOracleScriptResponse) Unmarshal(dAtA []byte) error
- func (m *MsgEditOracleScriptResponse) XXX_DiscardUnknown()
- func (m *MsgEditOracleScriptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgEditOracleScriptResponse) XXX_Merge(src proto.Message)
- func (m *MsgEditOracleScriptResponse) XXX_Size() int
- func (m *MsgEditOracleScriptResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type OracleScript
- func (*OracleScript) Descriptor() ([]byte, []int)
- func (m *OracleScript) GetCode() string
- func (m *OracleScript) GetCreator() string
- func (m *OracleScript) GetDescription() string
- func (m *OracleScript) GetExecutable() string
- func (m *OracleScript) GetId() string
- func (m *OracleScript) GetLanguage() string
- func (m *OracleScript) GetName() string
- func (m *OracleScript) GetOwner() string
- func (m *OracleScript) GetSourceCodeUrl() string
- func (m *OracleScript) Marshal() (dAtA []byte, err error)
- func (m *OracleScript) MarshalTo(dAtA []byte) (int, error)
- func (m *OracleScript) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*OracleScript) ProtoMessage()
- func (m *OracleScript) Reset()
- func (m *OracleScript) Size() (n int)
- func (m *OracleScript) String() string
- func (m *OracleScript) Unmarshal(dAtA []byte) error
- func (m *OracleScript) XXX_DiscardUnknown()
- func (m *OracleScript) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *OracleScript) XXX_Merge(src proto.Message)
- func (m *OracleScript) XXX_Size() int
- func (m *OracleScript) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (m *Params) GetAggregationWindow() int64
- func (m *Params) GetMinReportCount() int64
- func (m *Params) GetWaitBlockWindow() int64
- 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 (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) 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 Prices
- func (*Prices) Descriptor() ([]byte, []int)
- func (m *Prices) GetId() string
- func (m *Prices) GetLastUpdated() int64
- func (m *Prices) GetName() string
- func (m *Prices) GetPriceUsd() string
- func (m *Prices) GetStrftime() string
- func (m *Prices) GetSymbol() string
- func (m *Prices) Marshal() (dAtA []byte, err error)
- func (m *Prices) MarshalTo(dAtA []byte) (int, error)
- func (m *Prices) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Prices) ProtoMessage()
- func (m *Prices) Reset()
- func (m *Prices) Size() (n int)
- func (m *Prices) String() string
- func (m *Prices) Unmarshal(dAtA []byte) error
- func (m *Prices) XXX_DiscardUnknown()
- func (m *Prices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Prices) XXX_Merge(src proto.Message)
- func (m *Prices) XXX_Size() int
- func (m *Prices) XXX_Unmarshal(b []byte) error
- type QueryAllOracleScriptsRequest
- func (*QueryAllOracleScriptsRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllOracleScriptsRequest) GetPagination() *query.PageRequest
- func (m *QueryAllOracleScriptsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllOracleScriptsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllOracleScriptsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllOracleScriptsRequest) ProtoMessage()
- func (m *QueryAllOracleScriptsRequest) Reset()
- func (m *QueryAllOracleScriptsRequest) Size() (n int)
- func (m *QueryAllOracleScriptsRequest) String() string
- func (m *QueryAllOracleScriptsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllOracleScriptsRequest) XXX_DiscardUnknown()
- func (m *QueryAllOracleScriptsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllOracleScriptsRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllOracleScriptsRequest) XXX_Size() int
- func (m *QueryAllOracleScriptsRequest) XXX_Unmarshal(b []byte) error
- type QueryAllOracleScriptsResponse
- func (*QueryAllOracleScriptsResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllOracleScriptsResponse) GetOracleScripts() []*OracleScript
- func (m *QueryAllOracleScriptsResponse) GetPagination() *query.PageResponse
- func (m *QueryAllOracleScriptsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllOracleScriptsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllOracleScriptsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllOracleScriptsResponse) ProtoMessage()
- func (m *QueryAllOracleScriptsResponse) Reset()
- func (m *QueryAllOracleScriptsResponse) Size() (n int)
- func (m *QueryAllOracleScriptsResponse) String() string
- func (m *QueryAllOracleScriptsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllOracleScriptsResponse) XXX_DiscardUnknown()
- func (m *QueryAllOracleScriptsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllOracleScriptsResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllOracleScriptsResponse) XXX_Size() int
- func (m *QueryAllOracleScriptsResponse) XXX_Unmarshal(b []byte) error
- type QueryAllReportersRequest
- func (*QueryAllReportersRequest) Descriptor() ([]byte, []int)
- func (m *QueryAllReportersRequest) GetPagination() *query.PageRequest
- func (m *QueryAllReportersRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryAllReportersRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllReportersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllReportersRequest) ProtoMessage()
- func (m *QueryAllReportersRequest) Reset()
- func (m *QueryAllReportersRequest) Size() (n int)
- func (m *QueryAllReportersRequest) String() string
- func (m *QueryAllReportersRequest) Unmarshal(dAtA []byte) error
- func (m *QueryAllReportersRequest) XXX_DiscardUnknown()
- func (m *QueryAllReportersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllReportersRequest) XXX_Merge(src proto.Message)
- func (m *QueryAllReportersRequest) XXX_Size() int
- func (m *QueryAllReportersRequest) XXX_Unmarshal(b []byte) error
- type QueryAllReportersResponse
- func (*QueryAllReportersResponse) Descriptor() ([]byte, []int)
- func (m *QueryAllReportersResponse) GetPagination() *query.PageResponse
- func (m *QueryAllReportersResponse) GetReporters() []*Reporter
- func (m *QueryAllReportersResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryAllReportersResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryAllReportersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryAllReportersResponse) ProtoMessage()
- func (m *QueryAllReportersResponse) Reset()
- func (m *QueryAllReportersResponse) Size() (n int)
- func (m *QueryAllReportersResponse) String() string
- func (m *QueryAllReportersResponse) Unmarshal(dAtA []byte) error
- func (m *QueryAllReportersResponse) XXX_DiscardUnknown()
- func (m *QueryAllReportersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryAllReportersResponse) XXX_Merge(src proto.Message)
- func (m *QueryAllReportersResponse) XXX_Size() int
- func (m *QueryAllReportersResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryGetOracleScriptCountRequest
- func (*QueryGetOracleScriptCountRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetOracleScriptCountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetOracleScriptCountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetOracleScriptCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetOracleScriptCountRequest) ProtoMessage()
- func (m *QueryGetOracleScriptCountRequest) Reset()
- func (m *QueryGetOracleScriptCountRequest) Size() (n int)
- func (m *QueryGetOracleScriptCountRequest) String() string
- func (m *QueryGetOracleScriptCountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetOracleScriptCountRequest) XXX_DiscardUnknown()
- func (m *QueryGetOracleScriptCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetOracleScriptCountRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetOracleScriptCountRequest) XXX_Size() int
- func (m *QueryGetOracleScriptCountRequest) XXX_Unmarshal(b []byte) error
- type QueryGetOracleScriptCountResponse
- func (*QueryGetOracleScriptCountResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetOracleScriptCountResponse) GetCount() int64
- func (m *QueryGetOracleScriptCountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetOracleScriptCountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetOracleScriptCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetOracleScriptCountResponse) ProtoMessage()
- func (m *QueryGetOracleScriptCountResponse) Reset()
- func (m *QueryGetOracleScriptCountResponse) Size() (n int)
- func (m *QueryGetOracleScriptCountResponse) String() string
- func (m *QueryGetOracleScriptCountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetOracleScriptCountResponse) XXX_DiscardUnknown()
- func (m *QueryGetOracleScriptCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetOracleScriptCountResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetOracleScriptCountResponse) XXX_Size() int
- func (m *QueryGetOracleScriptCountResponse) XXX_Unmarshal(b []byte) error
- type QueryGetOracleScriptRequest
- func (*QueryGetOracleScriptRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetOracleScriptRequest) GetId() string
- func (m *QueryGetOracleScriptRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetOracleScriptRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetOracleScriptRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetOracleScriptRequest) ProtoMessage()
- func (m *QueryGetOracleScriptRequest) Reset()
- func (m *QueryGetOracleScriptRequest) Size() (n int)
- func (m *QueryGetOracleScriptRequest) String() string
- func (m *QueryGetOracleScriptRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetOracleScriptRequest) XXX_DiscardUnknown()
- func (m *QueryGetOracleScriptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetOracleScriptRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetOracleScriptRequest) XXX_Size() int
- func (m *QueryGetOracleScriptRequest) XXX_Unmarshal(b []byte) error
- type QueryGetOracleScriptResponse
- func (*QueryGetOracleScriptResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetOracleScriptResponse) GetOracleScript() *OracleScript
- func (m *QueryGetOracleScriptResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetOracleScriptResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetOracleScriptResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetOracleScriptResponse) ProtoMessage()
- func (m *QueryGetOracleScriptResponse) Reset()
- func (m *QueryGetOracleScriptResponse) Size() (n int)
- func (m *QueryGetOracleScriptResponse) String() string
- func (m *QueryGetOracleScriptResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetOracleScriptResponse) XXX_DiscardUnknown()
- func (m *QueryGetOracleScriptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetOracleScriptResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetOracleScriptResponse) XXX_Size() int
- func (m *QueryGetOracleScriptResponse) XXX_Unmarshal(b []byte) error
- type QueryGetParamsReponse
- func (*QueryGetParamsReponse) Descriptor() ([]byte, []int)
- func (m *QueryGetParamsReponse) GetParams() *Params
- func (m *QueryGetParamsReponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetParamsReponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetParamsReponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetParamsReponse) ProtoMessage()
- func (m *QueryGetParamsReponse) Reset()
- func (m *QueryGetParamsReponse) Size() (n int)
- func (m *QueryGetParamsReponse) String() string
- func (m *QueryGetParamsReponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetParamsReponse) XXX_DiscardUnknown()
- func (m *QueryGetParamsReponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetParamsReponse) XXX_Merge(src proto.Message)
- func (m *QueryGetParamsReponse) XXX_Size() int
- func (m *QueryGetParamsReponse) XXX_Unmarshal(b []byte) error
- type QueryGetParamsRequest
- func (*QueryGetParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetParamsRequest) ProtoMessage()
- func (m *QueryGetParamsRequest) Reset()
- func (m *QueryGetParamsRequest) Size() (n int)
- func (m *QueryGetParamsRequest) String() string
- func (m *QueryGetParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetParamsRequest) XXX_DiscardUnknown()
- func (m *QueryGetParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetParamsRequest) XXX_Size() int
- func (m *QueryGetParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryGetReporterCountRequest
- func (*QueryGetReporterCountRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetReporterCountRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetReporterCountRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetReporterCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetReporterCountRequest) ProtoMessage()
- func (m *QueryGetReporterCountRequest) Reset()
- func (m *QueryGetReporterCountRequest) Size() (n int)
- func (m *QueryGetReporterCountRequest) String() string
- func (m *QueryGetReporterCountRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetReporterCountRequest) XXX_DiscardUnknown()
- func (m *QueryGetReporterCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetReporterCountRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetReporterCountRequest) XXX_Size() int
- func (m *QueryGetReporterCountRequest) XXX_Unmarshal(b []byte) error
- type QueryGetReporterCountResponse
- func (*QueryGetReporterCountResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetReporterCountResponse) GetCount() int64
- func (m *QueryGetReporterCountResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetReporterCountResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetReporterCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetReporterCountResponse) ProtoMessage()
- func (m *QueryGetReporterCountResponse) Reset()
- func (m *QueryGetReporterCountResponse) Size() (n int)
- func (m *QueryGetReporterCountResponse) String() string
- func (m *QueryGetReporterCountResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetReporterCountResponse) XXX_DiscardUnknown()
- func (m *QueryGetReporterCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetReporterCountResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetReporterCountResponse) XXX_Size() int
- func (m *QueryGetReporterCountResponse) XXX_Unmarshal(b []byte) error
- type QueryGetReporterRequest
- func (*QueryGetReporterRequest) Descriptor() ([]byte, []int)
- func (m *QueryGetReporterRequest) GetReporter() string
- func (m *QueryGetReporterRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryGetReporterRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetReporterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetReporterRequest) ProtoMessage()
- func (m *QueryGetReporterRequest) Reset()
- func (m *QueryGetReporterRequest) Size() (n int)
- func (m *QueryGetReporterRequest) String() string
- func (m *QueryGetReporterRequest) Unmarshal(dAtA []byte) error
- func (m *QueryGetReporterRequest) XXX_DiscardUnknown()
- func (m *QueryGetReporterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetReporterRequest) XXX_Merge(src proto.Message)
- func (m *QueryGetReporterRequest) XXX_Size() int
- func (m *QueryGetReporterRequest) XXX_Unmarshal(b []byte) error
- type QueryGetReporterResponse
- func (*QueryGetReporterResponse) Descriptor() ([]byte, []int)
- func (m *QueryGetReporterResponse) GetReporter() *Reporter
- func (m *QueryGetReporterResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryGetReporterResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryGetReporterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryGetReporterResponse) ProtoMessage()
- func (m *QueryGetReporterResponse) Reset()
- func (m *QueryGetReporterResponse) Size() (n int)
- func (m *QueryGetReporterResponse) String() string
- func (m *QueryGetReporterResponse) Unmarshal(dAtA []byte) error
- func (m *QueryGetReporterResponse) XXX_DiscardUnknown()
- func (m *QueryGetReporterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryGetReporterResponse) XXX_Merge(src proto.Message)
- func (m *QueryGetReporterResponse) XXX_Size() int
- func (m *QueryGetReporterResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Report
- func (*Report) Descriptor() ([]byte, []int)
- func (m *Report) GetExternalid() string
- func (m *Report) GetReporter() string
- func (m *Report) GetReturndata() string
- func (m *Report) Marshal() (dAtA []byte, err error)
- func (m *Report) MarshalTo(dAtA []byte) (int, error)
- func (m *Report) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Report) ProtoMessage()
- func (m *Report) Reset()
- func (m *Report) Size() (n int)
- func (m *Report) String() string
- func (m *Report) Unmarshal(dAtA []byte) error
- func (m *Report) XXX_DiscardUnknown()
- func (m *Report) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Report) XXX_Merge(src proto.Message)
- func (m *Report) XXX_Size() int
- func (m *Report) XXX_Unmarshal(b []byte) error
- type Reporter
- func (*Reporter) Descriptor() ([]byte, []int)
- func (m *Reporter) GetCreator() string
- func (m *Reporter) GetId() string
- func (m *Reporter) GetReporter() string
- func (m *Reporter) GetValidator() string
- func (m *Reporter) Marshal() (dAtA []byte, err error)
- func (m *Reporter) MarshalTo(dAtA []byte) (int, error)
- func (m *Reporter) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Reporter) ProtoMessage()
- func (m *Reporter) Reset()
- func (m *Reporter) Size() (n int)
- func (m *Reporter) String() string
- func (m *Reporter) Unmarshal(dAtA []byte) error
- func (m *Reporter) XXX_DiscardUnknown()
- func (m *Reporter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Reporter) XXX_Merge(src proto.Message)
- func (m *Reporter) XXX_Size() int
- func (m *Reporter) XXX_Unmarshal(b []byte) error
- type Request
- func (*Request) Descriptor() ([]byte, []int)
- func (m *Request) GetCalldata() string
- func (m *Request) GetClosedBlock() int64
- func (m *Request) GetExternalid() string
- func (m *Request) GetId() string
- func (m *Request) GetMinReportCount() int64
- func (m *Request) GetOracleScriptId() string
- func (m *Request) GetReports() []*Report
- func (m *Request) GetRequestHeight() int64
- func (m *Request) GetRequestTime() int64
- func (m *Request) GetRequester() string
- func (m *Request) GetResolveTime() int64
- func (m *Request) GetResult() string
- func (m *Request) GetStatus() RequestStatus
- func (m *Request) GetWaitBlock() int64
- func (m *Request) Marshal() (dAtA []byte, err error)
- func (m *Request) MarshalTo(dAtA []byte) (int, error)
- func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Request) ProtoMessage()
- func (m *Request) Reset()
- func (m *Request) Size() (n int)
- func (m *Request) String() string
- func (m *Request) Unmarshal(dAtA []byte) error
- func (m *Request) XXX_DiscardUnknown()
- func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Request) XXX_Merge(src proto.Message)
- func (m *Request) XXX_Size() int
- func (m *Request) XXX_Unmarshal(b []byte) error
- type RequestStatus
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreateOracleScript(ctx context.Context, req *MsgCreateOracleScript) (*MsgCreateOracleScriptResponse, error)
- func (*UnimplementedMsgServer) CreateReport(ctx context.Context, req *MsgCreateReport) (*MsgCreateReportResponse, error)
- func (*UnimplementedMsgServer) CreateReporter(ctx context.Context, req *MsgCreateReporter) (*MsgCreateReporterResponse, error)
- func (*UnimplementedMsgServer) CreateRequest(ctx context.Context, req *MsgCreateRequest) (*MsgCreateRequestResponse, error)
- func (*UnimplementedMsgServer) DeleteReporter(ctx context.Context, req *MsgDeleteReporter) (*MsgDeleteReporterResponse, error)
- func (*UnimplementedMsgServer) EditOracleScript(ctx context.Context, req *MsgEditOracleScript) (*MsgEditOracleScriptResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) QueryOracleScript(ctx context.Context, req *QueryGetOracleScriptRequest) (*QueryGetOracleScriptResponse, error)
- func (*UnimplementedQueryServer) QueryOracleScriptCount(ctx context.Context, req *QueryGetOracleScriptCountRequest) (*QueryGetOracleScriptCountResponse, error)
- func (*UnimplementedQueryServer) QueryOracleScripts(ctx context.Context, req *QueryAllOracleScriptsRequest) (*QueryAllOracleScriptsResponse, error)
- func (*UnimplementedQueryServer) QueryParams(ctx context.Context, req *QueryGetParamsRequest) (*QueryGetParamsReponse, error)
- func (*UnimplementedQueryServer) QueryReporter(ctx context.Context, req *QueryGetReporterRequest) (*QueryGetReporterResponse, error)
- func (*UnimplementedQueryServer) QueryReporterCount(ctx context.Context, req *QueryGetReporterCountRequest) (*QueryGetReporterCountResponse, error)
- func (*UnimplementedQueryServer) QueryReporters(ctx context.Context, req *QueryAllReportersRequest) (*QueryAllReportersResponse, error)
Constants ¶
const ( AttributeKeyCreator = "creator" AttributeKeyReporter = "reporter" AttributeKeyOwner = "owner" AttributeKeyExternalid = "externalid" AttributeKeyOracleScriptId = "oracle_script_id" AttributeKeyRequester = "requester" AttributeKeyValidator = "validator" AttributeKeyCalldata = "calldata" AttributeKeyReturndata = "returndata" AttributeKeyResult = "result" AttributeKeyStatus = "status" EventTypeCreateReporter = "create_reporter" EventTypeDeleteReporter = "delete_reporter" EventTypeCreateOracleScript = "create_oracle_script" EventTypeEditOracleScript = "edit_oracle_script" EventTypeCreatePrices = "create_prices" EventTypeEditPrices = "edit_prices" EventTypeCreateRequest = "create_request" EventTypeCreateReport = "create_report" EventTypeAggregateRequest = "aggregate_request" )
oracle module event types
const ( // ModuleName defines the module name ModuleName = "oracle" // 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 )
const ( TypeMsgCreateReporter = "create_reporter" TypeMsgDeleteReporter = "delete_reporter" TypeMsgCreateOracleScript = "create_oracle_script" TypeMsgEditOracleScript = "edit_oracle_script" )
oracle message types
const ( // DefaultParamspace is the parameter namespace key for this module - "oracle" DefaultParamspace = ModuleName // Each value below is the default value for each parameter when generating the default // genesis file. See comments in params.proto for explanation for each parameter. DefaultWaitBlockWindow = int64(20) DefaultMinReportCount = int64(1) DefaultAggregationWindow = int64(20) )
const ( QueryGetParams = "params" QueryGetReporter = "reporter" QueryGetReporterCount = "reporter_count" QueryGetReporters = "reporters" QueryGetOracleScript = "oracle_script" QueryGetOracleScriptCount = "oracle_script_count" QueryGetOracleScripts = "oracle_scripts" QueryGetPrices = "prices_symbol" QueryGetPriceses = "prices_symbols" QueryGetRequest = "request" QueryGetLatestRequest = "latest_request" QueryGetRequestCount = "request_count" QueryGetRequests = "requests" )
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const (
TypeMsgCreateReport = "create_report"
)
oracle message types
const (
TypeMsgCreateRequest = "create_request"
)
oracle message types
Variables ¶
var ( ErrReporterAlreadyExists = sdkerrors.Register(ModuleName, 100, "reporter already exists") ErrReporterNotExists = sdkerrors.Register(ModuleName, 102, "reporter not exists") ErrReporterCreatorNotMatch = sdkerrors.Register(ModuleName, 103, "reporter creator not match") ErrOracleScriptNotExists = sdkerrors.Register(ModuleName, 104, "oracle script not exists") ErrOracleScriptCreatorNotMatch = sdkerrors.Register(ModuleName, 105, "oracle script creator not match") ErrRequestNotExists = sdkerrors.Register(ModuleName, 106, "request not exists") ErrRequestClosed = sdkerrors.Register(ModuleName, 107, "request task is already closed") ErrDuplicateReport = sdkerrors.Register(ModuleName, 108, "already receive report from this reporter") ErrEmptyReportReturndata = sdkerrors.Register(ModuleName, 109, "report return data is empty") ErrLessThanMinReportCount = sdkerrors.Register(ModuleName, 110, "report count less than min_report_count") ErrRequestFailed = sdkerrors.Register(ModuleName, 111, "request task is failed") )
x/oracle 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 ( MemStoreKey = "0x01" ReporterKey = "0x02" ReporterCountKey = "0x03" OracleScriptKey = "0x04" OracleScriptCountKey = "0x05" PricesKey = "0x06" RequestKey = "0x07" RequestCountKey = "0x08" ReportKey = "0x09" ReportCountKey = "0x10" )
var ( ErrInvalidLengthOracle = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowOracle = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupOracle = fmt.Errorf("proto: unexpected end of group") )
var ( // Each value below is the key to store the respective oracle module parameter. See comments // in params.proto for explanation for each parameter. KeyWaitBlockWindow = []byte("WaitBlockWindow") KeyMinReportCount = []byte("MinReportCount") KeyAggregationWindow = []byte("AggregationWindow") )
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 references the global x/oracle module codec. Note, the codec should // ONLY be used in certain instances of tests and for JSON encoding as Amino is // still used for that purpose. // // The actual codec used for serialization should be provided to x/oracle and ModuleCdc = codec.NewAminoCodec(amino) )
var RequestStatus_name = map[int32]string{
0: "REQUEST_STATUS_UNSPECIFIED",
1: "REQUEST_STATUS_PENDING",
2: "REQUEST_STATUS_SUCCEEDED",
3: "REQUEST_STATUS_FAILED",
}
var RequestStatus_value = map[string]int32{
"REQUEST_STATUS_UNSPECIFIED": 0,
"REQUEST_STATUS_PENDING": 1,
"REQUEST_STATUS_SUCCEEDED": 2,
"REQUEST_STATUS_FAILED": 3,
}
Functions ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
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 GenesisState ¶
type GenesisState struct {
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
GenesisState defines the capability 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 MsgClient ¶
type MsgClient interface { CreateReporter(ctx context.Context, in *MsgCreateReporter, opts ...grpc.CallOption) (*MsgCreateReporterResponse, error) DeleteReporter(ctx context.Context, in *MsgDeleteReporter, opts ...grpc.CallOption) (*MsgDeleteReporterResponse, error) CreateOracleScript(ctx context.Context, in *MsgCreateOracleScript, opts ...grpc.CallOption) (*MsgCreateOracleScriptResponse, error) EditOracleScript(ctx context.Context, in *MsgEditOracleScript, opts ...grpc.CallOption) (*MsgEditOracleScriptResponse, error) CreateRequest(ctx context.Context, in *MsgCreateRequest, opts ...grpc.CallOption) (*MsgCreateRequestResponse, error) CreateReport(ctx context.Context, in *MsgCreateReport, opts ...grpc.CallOption) (*MsgCreateReportResponse, 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 MsgCreateOracleScript ¶
type MsgCreateOracleScript struct { // creator is the signer of this message Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // owner is the address who is allowed to make further changes to the oracle script Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Language string `protobuf:"bytes,5,opt,name=language,proto3" json:"language,omitempty"` SourceCodeUrl string `protobuf:"bytes,6,opt,name=source_code_url,json=sourceCodeUrl,proto3" json:"source_code_url,omitempty"` Code string `protobuf:"bytes,7,opt,name=code,proto3" json:"code,omitempty"` }
func NewMsgCreateOracleScript ¶
func NewMsgCreateOracleScript(creator, owner, name, description, language, sourceCodeURL, code string) *MsgCreateOracleScript
func (*MsgCreateOracleScript) Descriptor ¶
func (*MsgCreateOracleScript) Descriptor() ([]byte, []int)
func (*MsgCreateOracleScript) GetCode ¶
func (m *MsgCreateOracleScript) GetCode() string
func (*MsgCreateOracleScript) GetCreator ¶
func (m *MsgCreateOracleScript) GetCreator() string
func (*MsgCreateOracleScript) GetDescription ¶
func (m *MsgCreateOracleScript) GetDescription() string
func (*MsgCreateOracleScript) GetLanguage ¶
func (m *MsgCreateOracleScript) GetLanguage() string
func (*MsgCreateOracleScript) GetName ¶
func (m *MsgCreateOracleScript) GetName() string
func (*MsgCreateOracleScript) GetOwner ¶
func (m *MsgCreateOracleScript) GetOwner() string
func (*MsgCreateOracleScript) GetSignBytes ¶
func (msg *MsgCreateOracleScript) GetSignBytes() []byte
func (*MsgCreateOracleScript) GetSigners ¶
func (msg *MsgCreateOracleScript) GetSigners() []sdk.AccAddress
func (*MsgCreateOracleScript) GetSourceCodeUrl ¶
func (m *MsgCreateOracleScript) GetSourceCodeUrl() string
func (*MsgCreateOracleScript) Marshal ¶
func (m *MsgCreateOracleScript) Marshal() (dAtA []byte, err error)
func (*MsgCreateOracleScript) MarshalTo ¶
func (m *MsgCreateOracleScript) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateOracleScript) MarshalToSizedBuffer ¶
func (m *MsgCreateOracleScript) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateOracleScript) ProtoMessage ¶
func (*MsgCreateOracleScript) ProtoMessage()
func (*MsgCreateOracleScript) Reset ¶
func (m *MsgCreateOracleScript) Reset()
func (MsgCreateOracleScript) Route ¶
func (msg MsgCreateOracleScript) Route() string
func (*MsgCreateOracleScript) Size ¶
func (m *MsgCreateOracleScript) Size() (n int)
func (*MsgCreateOracleScript) String ¶
func (m *MsgCreateOracleScript) String() string
func (MsgCreateOracleScript) Type ¶
func (msg MsgCreateOracleScript) Type() string
func (*MsgCreateOracleScript) Unmarshal ¶
func (m *MsgCreateOracleScript) Unmarshal(dAtA []byte) error
func (*MsgCreateOracleScript) ValidateBasic ¶
func (msg *MsgCreateOracleScript) ValidateBasic() error
func (*MsgCreateOracleScript) XXX_DiscardUnknown ¶
func (m *MsgCreateOracleScript) XXX_DiscardUnknown()
func (*MsgCreateOracleScript) XXX_Marshal ¶
func (m *MsgCreateOracleScript) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateOracleScript) XXX_Merge ¶
func (m *MsgCreateOracleScript) XXX_Merge(src proto.Message)
func (*MsgCreateOracleScript) XXX_Size ¶
func (m *MsgCreateOracleScript) XXX_Size() int
func (*MsgCreateOracleScript) XXX_Unmarshal ¶
func (m *MsgCreateOracleScript) XXX_Unmarshal(b []byte) error
type MsgCreateOracleScriptResponse ¶
type MsgCreateOracleScriptResponse struct { }
func (*MsgCreateOracleScriptResponse) Descriptor ¶
func (*MsgCreateOracleScriptResponse) Descriptor() ([]byte, []int)
func (*MsgCreateOracleScriptResponse) Marshal ¶
func (m *MsgCreateOracleScriptResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateOracleScriptResponse) MarshalTo ¶
func (m *MsgCreateOracleScriptResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateOracleScriptResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateOracleScriptResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateOracleScriptResponse) ProtoMessage ¶
func (*MsgCreateOracleScriptResponse) ProtoMessage()
func (*MsgCreateOracleScriptResponse) Reset ¶
func (m *MsgCreateOracleScriptResponse) Reset()
func (*MsgCreateOracleScriptResponse) Size ¶
func (m *MsgCreateOracleScriptResponse) Size() (n int)
func (*MsgCreateOracleScriptResponse) String ¶
func (m *MsgCreateOracleScriptResponse) String() string
func (*MsgCreateOracleScriptResponse) Unmarshal ¶
func (m *MsgCreateOracleScriptResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateOracleScriptResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateOracleScriptResponse) XXX_DiscardUnknown()
func (*MsgCreateOracleScriptResponse) XXX_Marshal ¶
func (m *MsgCreateOracleScriptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateOracleScriptResponse) XXX_Merge ¶
func (m *MsgCreateOracleScriptResponse) XXX_Merge(src proto.Message)
func (*MsgCreateOracleScriptResponse) XXX_Size ¶
func (m *MsgCreateOracleScriptResponse) XXX_Size() int
func (*MsgCreateOracleScriptResponse) XXX_Unmarshal ¶
func (m *MsgCreateOracleScriptResponse) XXX_Unmarshal(b []byte) error
type MsgCreateReport ¶
type MsgCreateReport struct { // the signer of this message Reporter string `protobuf:"bytes,1,opt,name=reporter,proto3" json:"reporter,omitempty"` Externalid string `protobuf:"bytes,2,opt,name=externalid,proto3" json:"externalid,omitempty"` Returndata string `protobuf:"bytes,3,opt,name=returndata,proto3" json:"returndata,omitempty"` }
func NewMsgCreateReport ¶
func NewMsgCreateReport(reporter, externalid, returndata string) *MsgCreateReport
func (*MsgCreateReport) Descriptor ¶
func (*MsgCreateReport) Descriptor() ([]byte, []int)
func (*MsgCreateReport) GetExternalid ¶
func (m *MsgCreateReport) GetExternalid() string
func (*MsgCreateReport) GetReporter ¶
func (m *MsgCreateReport) GetReporter() string
func (*MsgCreateReport) GetReturndata ¶
func (m *MsgCreateReport) GetReturndata() string
func (*MsgCreateReport) GetSignBytes ¶
func (msg *MsgCreateReport) GetSignBytes() []byte
func (*MsgCreateReport) GetSigners ¶
func (msg *MsgCreateReport) GetSigners() []sdk.AccAddress
func (*MsgCreateReport) Marshal ¶
func (m *MsgCreateReport) Marshal() (dAtA []byte, err error)
func (*MsgCreateReport) MarshalToSizedBuffer ¶
func (m *MsgCreateReport) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateReport) ProtoMessage ¶
func (*MsgCreateReport) ProtoMessage()
func (*MsgCreateReport) Reset ¶
func (m *MsgCreateReport) Reset()
func (MsgCreateReport) Route ¶
func (msg MsgCreateReport) Route() string
func (*MsgCreateReport) Size ¶
func (m *MsgCreateReport) Size() (n int)
func (*MsgCreateReport) String ¶
func (m *MsgCreateReport) String() string
func (MsgCreateReport) Type ¶
func (msg MsgCreateReport) Type() string
func (*MsgCreateReport) Unmarshal ¶
func (m *MsgCreateReport) Unmarshal(dAtA []byte) error
func (*MsgCreateReport) ValidateBasic ¶
func (msg *MsgCreateReport) ValidateBasic() error
func (*MsgCreateReport) XXX_DiscardUnknown ¶
func (m *MsgCreateReport) XXX_DiscardUnknown()
func (*MsgCreateReport) XXX_Marshal ¶
func (m *MsgCreateReport) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateReport) XXX_Merge ¶
func (m *MsgCreateReport) XXX_Merge(src proto.Message)
func (*MsgCreateReport) XXX_Size ¶
func (m *MsgCreateReport) XXX_Size() int
func (*MsgCreateReport) XXX_Unmarshal ¶
func (m *MsgCreateReport) XXX_Unmarshal(b []byte) error
type MsgCreateReportResponse ¶
type MsgCreateReportResponse struct { }
func (*MsgCreateReportResponse) Descriptor ¶
func (*MsgCreateReportResponse) Descriptor() ([]byte, []int)
func (*MsgCreateReportResponse) Marshal ¶
func (m *MsgCreateReportResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateReportResponse) MarshalTo ¶
func (m *MsgCreateReportResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateReportResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateReportResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateReportResponse) ProtoMessage ¶
func (*MsgCreateReportResponse) ProtoMessage()
func (*MsgCreateReportResponse) Reset ¶
func (m *MsgCreateReportResponse) Reset()
func (*MsgCreateReportResponse) Size ¶
func (m *MsgCreateReportResponse) Size() (n int)
func (*MsgCreateReportResponse) String ¶
func (m *MsgCreateReportResponse) String() string
func (*MsgCreateReportResponse) Unmarshal ¶
func (m *MsgCreateReportResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateReportResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateReportResponse) XXX_DiscardUnknown()
func (*MsgCreateReportResponse) XXX_Marshal ¶
func (m *MsgCreateReportResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateReportResponse) XXX_Merge ¶
func (m *MsgCreateReportResponse) XXX_Merge(src proto.Message)
func (*MsgCreateReportResponse) XXX_Size ¶
func (m *MsgCreateReportResponse) XXX_Size() int
func (*MsgCreateReportResponse) XXX_Unmarshal ¶
func (m *MsgCreateReportResponse) XXX_Unmarshal(b []byte) error
type MsgCreateReporter ¶
type MsgCreateReporter struct { // creator is the signer of this message Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"` Reporter string `protobuf:"bytes,3,opt,name=reporter,proto3" json:"reporter,omitempty"` }
func NewMsgCreateReporter ¶
func NewMsgCreateReporter(creator, validator, reporter string) *MsgCreateReporter
func (*MsgCreateReporter) Descriptor ¶
func (*MsgCreateReporter) Descriptor() ([]byte, []int)
func (*MsgCreateReporter) GetCreator ¶
func (m *MsgCreateReporter) GetCreator() string
func (*MsgCreateReporter) GetReporter ¶
func (m *MsgCreateReporter) GetReporter() string
func (*MsgCreateReporter) GetSignBytes ¶
func (msg *MsgCreateReporter) GetSignBytes() []byte
func (*MsgCreateReporter) GetSigners ¶
func (msg *MsgCreateReporter) GetSigners() []sdk.AccAddress
func (*MsgCreateReporter) GetValidator ¶
func (m *MsgCreateReporter) GetValidator() string
func (*MsgCreateReporter) Marshal ¶
func (m *MsgCreateReporter) Marshal() (dAtA []byte, err error)
func (*MsgCreateReporter) MarshalTo ¶
func (m *MsgCreateReporter) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateReporter) MarshalToSizedBuffer ¶
func (m *MsgCreateReporter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateReporter) ProtoMessage ¶
func (*MsgCreateReporter) ProtoMessage()
func (*MsgCreateReporter) Reset ¶
func (m *MsgCreateReporter) Reset()
func (MsgCreateReporter) Route ¶
func (msg MsgCreateReporter) Route() string
func (*MsgCreateReporter) Size ¶
func (m *MsgCreateReporter) Size() (n int)
func (*MsgCreateReporter) String ¶
func (m *MsgCreateReporter) String() string
func (MsgCreateReporter) Type ¶
func (msg MsgCreateReporter) Type() string
func (*MsgCreateReporter) Unmarshal ¶
func (m *MsgCreateReporter) Unmarshal(dAtA []byte) error
func (*MsgCreateReporter) ValidateBasic ¶
func (msg *MsgCreateReporter) ValidateBasic() error
func (*MsgCreateReporter) XXX_DiscardUnknown ¶
func (m *MsgCreateReporter) XXX_DiscardUnknown()
func (*MsgCreateReporter) XXX_Marshal ¶
func (m *MsgCreateReporter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateReporter) XXX_Merge ¶
func (m *MsgCreateReporter) XXX_Merge(src proto.Message)
func (*MsgCreateReporter) XXX_Size ¶
func (m *MsgCreateReporter) XXX_Size() int
func (*MsgCreateReporter) XXX_Unmarshal ¶
func (m *MsgCreateReporter) XXX_Unmarshal(b []byte) error
type MsgCreateReporterResponse ¶
type MsgCreateReporterResponse struct { }
func (*MsgCreateReporterResponse) Descriptor ¶
func (*MsgCreateReporterResponse) Descriptor() ([]byte, []int)
func (*MsgCreateReporterResponse) Marshal ¶
func (m *MsgCreateReporterResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateReporterResponse) MarshalTo ¶
func (m *MsgCreateReporterResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateReporterResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateReporterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateReporterResponse) ProtoMessage ¶
func (*MsgCreateReporterResponse) ProtoMessage()
func (*MsgCreateReporterResponse) Reset ¶
func (m *MsgCreateReporterResponse) Reset()
func (*MsgCreateReporterResponse) Size ¶
func (m *MsgCreateReporterResponse) Size() (n int)
func (*MsgCreateReporterResponse) String ¶
func (m *MsgCreateReporterResponse) String() string
func (*MsgCreateReporterResponse) Unmarshal ¶
func (m *MsgCreateReporterResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateReporterResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateReporterResponse) XXX_DiscardUnknown()
func (*MsgCreateReporterResponse) XXX_Marshal ¶
func (m *MsgCreateReporterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateReporterResponse) XXX_Merge ¶
func (m *MsgCreateReporterResponse) XXX_Merge(src proto.Message)
func (*MsgCreateReporterResponse) XXX_Size ¶
func (m *MsgCreateReporterResponse) XXX_Size() int
func (*MsgCreateReporterResponse) XXX_Unmarshal ¶
func (m *MsgCreateReporterResponse) XXX_Unmarshal(b []byte) error
type MsgCreateRequest ¶
type MsgCreateRequest struct { // the signer of this message Requester string `protobuf:"bytes,1,opt,name=requester,proto3" json:"requester,omitempty"` Externalid string `protobuf:"bytes,2,opt,name=externalid,proto3" json:"externalid,omitempty"` OracleScriptId string `protobuf:"bytes,3,opt,name=oracle_script_id,json=oracleScriptId,proto3" json:"oracle_script_id,omitempty"` Calldata string `protobuf:"bytes,4,opt,name=calldata,proto3" json:"calldata,omitempty"` }
func NewMsgCreateRequest ¶
func NewMsgCreateRequest(requester, oracleScriptId, calldata string) *MsgCreateRequest
func (*MsgCreateRequest) Descriptor ¶
func (*MsgCreateRequest) Descriptor() ([]byte, []int)
func (*MsgCreateRequest) GetCalldata ¶
func (m *MsgCreateRequest) GetCalldata() string
func (*MsgCreateRequest) GetExternalid ¶
func (m *MsgCreateRequest) GetExternalid() string
func (*MsgCreateRequest) GetOracleScriptId ¶
func (m *MsgCreateRequest) GetOracleScriptId() string
func (*MsgCreateRequest) GetRequester ¶
func (m *MsgCreateRequest) GetRequester() string
func (*MsgCreateRequest) GetSignBytes ¶
func (msg *MsgCreateRequest) GetSignBytes() []byte
func (*MsgCreateRequest) GetSigners ¶
func (msg *MsgCreateRequest) GetSigners() []sdk.AccAddress
func (*MsgCreateRequest) Marshal ¶
func (m *MsgCreateRequest) Marshal() (dAtA []byte, err error)
func (*MsgCreateRequest) MarshalToSizedBuffer ¶
func (m *MsgCreateRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateRequest) ProtoMessage ¶
func (*MsgCreateRequest) ProtoMessage()
func (*MsgCreateRequest) Reset ¶
func (m *MsgCreateRequest) Reset()
func (MsgCreateRequest) Route ¶
func (msg MsgCreateRequest) Route() string
func (*MsgCreateRequest) Size ¶
func (m *MsgCreateRequest) Size() (n int)
func (*MsgCreateRequest) String ¶
func (m *MsgCreateRequest) String() string
func (MsgCreateRequest) Type ¶
func (msg MsgCreateRequest) Type() string
func (*MsgCreateRequest) Unmarshal ¶
func (m *MsgCreateRequest) Unmarshal(dAtA []byte) error
func (*MsgCreateRequest) ValidateBasic ¶
func (msg *MsgCreateRequest) ValidateBasic() error
func (*MsgCreateRequest) XXX_DiscardUnknown ¶
func (m *MsgCreateRequest) XXX_DiscardUnknown()
func (*MsgCreateRequest) XXX_Marshal ¶
func (m *MsgCreateRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateRequest) XXX_Merge ¶
func (m *MsgCreateRequest) XXX_Merge(src proto.Message)
func (*MsgCreateRequest) XXX_Size ¶
func (m *MsgCreateRequest) XXX_Size() int
func (*MsgCreateRequest) XXX_Unmarshal ¶
func (m *MsgCreateRequest) XXX_Unmarshal(b []byte) error
type MsgCreateRequestResponse ¶
type MsgCreateRequestResponse struct { }
func (*MsgCreateRequestResponse) Descriptor ¶
func (*MsgCreateRequestResponse) Descriptor() ([]byte, []int)
func (*MsgCreateRequestResponse) Marshal ¶
func (m *MsgCreateRequestResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateRequestResponse) MarshalTo ¶
func (m *MsgCreateRequestResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateRequestResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateRequestResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateRequestResponse) ProtoMessage ¶
func (*MsgCreateRequestResponse) ProtoMessage()
func (*MsgCreateRequestResponse) Reset ¶
func (m *MsgCreateRequestResponse) Reset()
func (*MsgCreateRequestResponse) Size ¶
func (m *MsgCreateRequestResponse) Size() (n int)
func (*MsgCreateRequestResponse) String ¶
func (m *MsgCreateRequestResponse) String() string
func (*MsgCreateRequestResponse) Unmarshal ¶
func (m *MsgCreateRequestResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateRequestResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateRequestResponse) XXX_DiscardUnknown()
func (*MsgCreateRequestResponse) XXX_Marshal ¶
func (m *MsgCreateRequestResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateRequestResponse) XXX_Merge ¶
func (m *MsgCreateRequestResponse) XXX_Merge(src proto.Message)
func (*MsgCreateRequestResponse) XXX_Size ¶
func (m *MsgCreateRequestResponse) XXX_Size() int
func (*MsgCreateRequestResponse) XXX_Unmarshal ¶
func (m *MsgCreateRequestResponse) XXX_Unmarshal(b []byte) error
type MsgDeleteReporter ¶
type MsgDeleteReporter struct { // creator is the signer of this message Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Reporter string `protobuf:"bytes,2,opt,name=reporter,proto3" json:"reporter,omitempty"` }
func NewMsgDeleteReporter ¶
func NewMsgDeleteReporter(creator, reporter string) *MsgDeleteReporter
func (*MsgDeleteReporter) Descriptor ¶
func (*MsgDeleteReporter) Descriptor() ([]byte, []int)
func (*MsgDeleteReporter) GetCreator ¶
func (m *MsgDeleteReporter) GetCreator() string
func (*MsgDeleteReporter) GetReporter ¶
func (m *MsgDeleteReporter) GetReporter() string
func (*MsgDeleteReporter) GetSignBytes ¶
func (msg *MsgDeleteReporter) GetSignBytes() []byte
func (*MsgDeleteReporter) GetSigners ¶
func (msg *MsgDeleteReporter) GetSigners() []sdk.AccAddress
func (*MsgDeleteReporter) Marshal ¶
func (m *MsgDeleteReporter) Marshal() (dAtA []byte, err error)
func (*MsgDeleteReporter) MarshalTo ¶
func (m *MsgDeleteReporter) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteReporter) MarshalToSizedBuffer ¶
func (m *MsgDeleteReporter) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteReporter) ProtoMessage ¶
func (*MsgDeleteReporter) ProtoMessage()
func (*MsgDeleteReporter) Reset ¶
func (m *MsgDeleteReporter) Reset()
func (MsgDeleteReporter) Route ¶
func (msg MsgDeleteReporter) Route() string
func (*MsgDeleteReporter) Size ¶
func (m *MsgDeleteReporter) Size() (n int)
func (*MsgDeleteReporter) String ¶
func (m *MsgDeleteReporter) String() string
func (MsgDeleteReporter) Type ¶
func (msg MsgDeleteReporter) Type() string
func (*MsgDeleteReporter) Unmarshal ¶
func (m *MsgDeleteReporter) Unmarshal(dAtA []byte) error
func (*MsgDeleteReporter) ValidateBasic ¶
func (msg *MsgDeleteReporter) ValidateBasic() error
func (*MsgDeleteReporter) XXX_DiscardUnknown ¶
func (m *MsgDeleteReporter) XXX_DiscardUnknown()
func (*MsgDeleteReporter) XXX_Marshal ¶
func (m *MsgDeleteReporter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteReporter) XXX_Merge ¶
func (m *MsgDeleteReporter) XXX_Merge(src proto.Message)
func (*MsgDeleteReporter) XXX_Size ¶
func (m *MsgDeleteReporter) XXX_Size() int
func (*MsgDeleteReporter) XXX_Unmarshal ¶
func (m *MsgDeleteReporter) XXX_Unmarshal(b []byte) error
type MsgDeleteReporterResponse ¶
type MsgDeleteReporterResponse struct { }
func (*MsgDeleteReporterResponse) Descriptor ¶
func (*MsgDeleteReporterResponse) Descriptor() ([]byte, []int)
func (*MsgDeleteReporterResponse) Marshal ¶
func (m *MsgDeleteReporterResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeleteReporterResponse) MarshalTo ¶
func (m *MsgDeleteReporterResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeleteReporterResponse) MarshalToSizedBuffer ¶
func (m *MsgDeleteReporterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeleteReporterResponse) ProtoMessage ¶
func (*MsgDeleteReporterResponse) ProtoMessage()
func (*MsgDeleteReporterResponse) Reset ¶
func (m *MsgDeleteReporterResponse) Reset()
func (*MsgDeleteReporterResponse) Size ¶
func (m *MsgDeleteReporterResponse) Size() (n int)
func (*MsgDeleteReporterResponse) String ¶
func (m *MsgDeleteReporterResponse) String() string
func (*MsgDeleteReporterResponse) Unmarshal ¶
func (m *MsgDeleteReporterResponse) Unmarshal(dAtA []byte) error
func (*MsgDeleteReporterResponse) XXX_DiscardUnknown ¶
func (m *MsgDeleteReporterResponse) XXX_DiscardUnknown()
func (*MsgDeleteReporterResponse) XXX_Marshal ¶
func (m *MsgDeleteReporterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeleteReporterResponse) XXX_Merge ¶
func (m *MsgDeleteReporterResponse) XXX_Merge(src proto.Message)
func (*MsgDeleteReporterResponse) XXX_Size ¶
func (m *MsgDeleteReporterResponse) XXX_Size() int
func (*MsgDeleteReporterResponse) XXX_Unmarshal ¶
func (m *MsgDeleteReporterResponse) XXX_Unmarshal(b []byte) error
type MsgEditOracleScript ¶
type MsgEditOracleScript struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // creator is the signer of this message Creator string `protobuf:"bytes,2,opt,name=creator,proto3" json:"creator,omitempty"` // owner is the address who is allowed to make further changes to the oracle script Owner string `protobuf:"bytes,3,opt,name=owner,proto3" json:"owner,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` Language string `protobuf:"bytes,6,opt,name=language,proto3" json:"language,omitempty"` SourceCodeUrl string `protobuf:"bytes,7,opt,name=source_code_url,json=sourceCodeUrl,proto3" json:"source_code_url,omitempty"` Code string `protobuf:"bytes,8,opt,name=code,proto3" json:"code,omitempty"` }
func NewMsgEditOracleScript ¶
func NewMsgEditOracleScript(oracleScriptId, creator, owner, name, description, language, sourceCodeURL, code string) *MsgEditOracleScript
func (*MsgEditOracleScript) Descriptor ¶
func (*MsgEditOracleScript) Descriptor() ([]byte, []int)
func (*MsgEditOracleScript) GetCode ¶
func (m *MsgEditOracleScript) GetCode() string
func (*MsgEditOracleScript) GetCreator ¶
func (m *MsgEditOracleScript) GetCreator() string
func (*MsgEditOracleScript) GetDescription ¶
func (m *MsgEditOracleScript) GetDescription() string
func (*MsgEditOracleScript) GetId ¶
func (m *MsgEditOracleScript) GetId() string
func (*MsgEditOracleScript) GetLanguage ¶
func (m *MsgEditOracleScript) GetLanguage() string
func (*MsgEditOracleScript) GetName ¶
func (m *MsgEditOracleScript) GetName() string
func (*MsgEditOracleScript) GetOwner ¶
func (m *MsgEditOracleScript) GetOwner() string
func (*MsgEditOracleScript) GetSignBytes ¶
func (msg *MsgEditOracleScript) GetSignBytes() []byte
func (*MsgEditOracleScript) GetSigners ¶
func (msg *MsgEditOracleScript) GetSigners() []sdk.AccAddress
func (*MsgEditOracleScript) GetSourceCodeUrl ¶
func (m *MsgEditOracleScript) GetSourceCodeUrl() string
func (*MsgEditOracleScript) Marshal ¶
func (m *MsgEditOracleScript) Marshal() (dAtA []byte, err error)
func (*MsgEditOracleScript) MarshalTo ¶
func (m *MsgEditOracleScript) MarshalTo(dAtA []byte) (int, error)
func (*MsgEditOracleScript) MarshalToSizedBuffer ¶
func (m *MsgEditOracleScript) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditOracleScript) ProtoMessage ¶
func (*MsgEditOracleScript) ProtoMessage()
func (*MsgEditOracleScript) Reset ¶
func (m *MsgEditOracleScript) Reset()
func (MsgEditOracleScript) Route ¶
func (msg MsgEditOracleScript) Route() string
func (*MsgEditOracleScript) Size ¶
func (m *MsgEditOracleScript) Size() (n int)
func (*MsgEditOracleScript) String ¶
func (m *MsgEditOracleScript) String() string
func (MsgEditOracleScript) Type ¶
func (msg MsgEditOracleScript) Type() string
func (*MsgEditOracleScript) Unmarshal ¶
func (m *MsgEditOracleScript) Unmarshal(dAtA []byte) error
func (*MsgEditOracleScript) ValidateBasic ¶
func (msg *MsgEditOracleScript) ValidateBasic() error
func (*MsgEditOracleScript) XXX_DiscardUnknown ¶
func (m *MsgEditOracleScript) XXX_DiscardUnknown()
func (*MsgEditOracleScript) XXX_Marshal ¶
func (m *MsgEditOracleScript) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEditOracleScript) XXX_Merge ¶
func (m *MsgEditOracleScript) XXX_Merge(src proto.Message)
func (*MsgEditOracleScript) XXX_Size ¶
func (m *MsgEditOracleScript) XXX_Size() int
func (*MsgEditOracleScript) XXX_Unmarshal ¶
func (m *MsgEditOracleScript) XXX_Unmarshal(b []byte) error
type MsgEditOracleScriptResponse ¶
type MsgEditOracleScriptResponse struct { }
func (*MsgEditOracleScriptResponse) Descriptor ¶
func (*MsgEditOracleScriptResponse) Descriptor() ([]byte, []int)
func (*MsgEditOracleScriptResponse) Marshal ¶
func (m *MsgEditOracleScriptResponse) Marshal() (dAtA []byte, err error)
func (*MsgEditOracleScriptResponse) MarshalTo ¶
func (m *MsgEditOracleScriptResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgEditOracleScriptResponse) MarshalToSizedBuffer ¶
func (m *MsgEditOracleScriptResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgEditOracleScriptResponse) ProtoMessage ¶
func (*MsgEditOracleScriptResponse) ProtoMessage()
func (*MsgEditOracleScriptResponse) Reset ¶
func (m *MsgEditOracleScriptResponse) Reset()
func (*MsgEditOracleScriptResponse) Size ¶
func (m *MsgEditOracleScriptResponse) Size() (n int)
func (*MsgEditOracleScriptResponse) String ¶
func (m *MsgEditOracleScriptResponse) String() string
func (*MsgEditOracleScriptResponse) Unmarshal ¶
func (m *MsgEditOracleScriptResponse) Unmarshal(dAtA []byte) error
func (*MsgEditOracleScriptResponse) XXX_DiscardUnknown ¶
func (m *MsgEditOracleScriptResponse) XXX_DiscardUnknown()
func (*MsgEditOracleScriptResponse) XXX_Marshal ¶
func (m *MsgEditOracleScriptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgEditOracleScriptResponse) XXX_Merge ¶
func (m *MsgEditOracleScriptResponse) XXX_Merge(src proto.Message)
func (*MsgEditOracleScriptResponse) XXX_Size ¶
func (m *MsgEditOracleScriptResponse) XXX_Size() int
func (*MsgEditOracleScriptResponse) XXX_Unmarshal ¶
func (m *MsgEditOracleScriptResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { CreateReporter(context.Context, *MsgCreateReporter) (*MsgCreateReporterResponse, error) DeleteReporter(context.Context, *MsgDeleteReporter) (*MsgDeleteReporterResponse, error) CreateOracleScript(context.Context, *MsgCreateOracleScript) (*MsgCreateOracleScriptResponse, error) EditOracleScript(context.Context, *MsgEditOracleScript) (*MsgEditOracleScriptResponse, error) CreateRequest(context.Context, *MsgCreateRequest) (*MsgCreateRequestResponse, error) CreateReport(context.Context, *MsgCreateReport) (*MsgCreateReportResponse, error) }
MsgServer is the server API for Msg service.
type OracleScript ¶
type OracleScript struct { // creator is the signer of this message Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` // owner is the address who is allowed to make further changes to the oracle script Owner string `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"` // oracle script id unique primary key Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"` Language string `protobuf:"bytes,6,opt,name=language,proto3" json:"language,omitempty"` SourceCodeUrl string `protobuf:"bytes,7,opt,name=source_code_url,json=sourceCodeUrl,proto3" json:"source_code_url,omitempty"` // code is the oracle source code Code string `protobuf:"bytes,8,opt,name=code,proto3" json:"code,omitempty"` // Code is the oracle WebAssembly binary code Executable string `protobuf:"bytes,9,opt,name=executable,proto3" json:"executable,omitempty"` }
func (*OracleScript) Descriptor ¶
func (*OracleScript) Descriptor() ([]byte, []int)
func (*OracleScript) GetCode ¶
func (m *OracleScript) GetCode() string
func (*OracleScript) GetCreator ¶
func (m *OracleScript) GetCreator() string
func (*OracleScript) GetDescription ¶
func (m *OracleScript) GetDescription() string
func (*OracleScript) GetExecutable ¶
func (m *OracleScript) GetExecutable() string
func (*OracleScript) GetId ¶
func (m *OracleScript) GetId() string
func (*OracleScript) GetLanguage ¶
func (m *OracleScript) GetLanguage() string
func (*OracleScript) GetName ¶
func (m *OracleScript) GetName() string
func (*OracleScript) GetOwner ¶
func (m *OracleScript) GetOwner() string
func (*OracleScript) GetSourceCodeUrl ¶
func (m *OracleScript) GetSourceCodeUrl() string
func (*OracleScript) Marshal ¶
func (m *OracleScript) Marshal() (dAtA []byte, err error)
func (*OracleScript) MarshalToSizedBuffer ¶
func (m *OracleScript) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*OracleScript) ProtoMessage ¶
func (*OracleScript) ProtoMessage()
func (*OracleScript) Reset ¶
func (m *OracleScript) Reset()
func (*OracleScript) Size ¶
func (m *OracleScript) Size() (n int)
func (*OracleScript) String ¶
func (m *OracleScript) String() string
func (*OracleScript) Unmarshal ¶
func (m *OracleScript) Unmarshal(dAtA []byte) error
func (*OracleScript) XXX_DiscardUnknown ¶
func (m *OracleScript) XXX_DiscardUnknown()
func (*OracleScript) XXX_Marshal ¶
func (m *OracleScript) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*OracleScript) XXX_Merge ¶
func (m *OracleScript) XXX_Merge(src proto.Message)
func (*OracleScript) XXX_Size ¶
func (m *OracleScript) XXX_Size() int
func (*OracleScript) XXX_Unmarshal ¶
func (m *OracleScript) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct { WaitBlockWindow int64 `protobuf:"varint,1,opt,name=wait_block_window,json=waitBlockWindow,proto3" json:"wait_block_window,omitempty"` MinReportCount int64 `protobuf:"varint,2,opt,name=min_report_count,json=minReportCount,proto3" json:"min_report_count,omitempty"` AggregationWindow int64 `protobuf:"varint,3,opt,name=aggregation_window,json=aggregationWindow,proto3" json:"aggregation_window,omitempty"` }
func (*Params) Descriptor ¶
func (*Params) GetAggregationWindow ¶
func (*Params) GetMinReportCount ¶
func (*Params) GetWaitBlockWindow ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ParamSetPairs ¶
func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs
ParamSetPairs implements the paramtypes.ParamSet interface for Params.
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type Prices ¶
type Prices struct { // digiccy symbol unique primary key Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // digiccy symbol unique primary key Symbol string `protobuf:"bytes,3,opt,name=symbol,proto3" json:"symbol,omitempty"` PriceUsd string `protobuf:"bytes,4,opt,name=price_usd,json=priceUsd,proto3" json:"price_usd,omitempty"` Strftime string `protobuf:"bytes,5,opt,name=strftime,proto3" json:"strftime,omitempty"` LastUpdated int64 `protobuf:"varint,6,opt,name=last_updated,json=lastUpdated,proto3" json:"last_updated,omitempty"` }
func (*Prices) Descriptor ¶
func (*Prices) GetLastUpdated ¶
func (*Prices) GetPriceUsd ¶
func (*Prices) GetStrftime ¶
func (*Prices) MarshalToSizedBuffer ¶
func (*Prices) ProtoMessage ¶
func (*Prices) ProtoMessage()
func (*Prices) XXX_DiscardUnknown ¶
func (m *Prices) XXX_DiscardUnknown()
func (*Prices) XXX_Marshal ¶
func (*Prices) XXX_Unmarshal ¶
type QueryAllOracleScriptsRequest ¶
type QueryAllOracleScriptsRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllOracleScriptsRequest) Descriptor ¶
func (*QueryAllOracleScriptsRequest) Descriptor() ([]byte, []int)
func (*QueryAllOracleScriptsRequest) GetPagination ¶
func (m *QueryAllOracleScriptsRequest) GetPagination() *query.PageRequest
func (*QueryAllOracleScriptsRequest) Marshal ¶
func (m *QueryAllOracleScriptsRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllOracleScriptsRequest) MarshalTo ¶
func (m *QueryAllOracleScriptsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllOracleScriptsRequest) MarshalToSizedBuffer ¶
func (m *QueryAllOracleScriptsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllOracleScriptsRequest) ProtoMessage ¶
func (*QueryAllOracleScriptsRequest) ProtoMessage()
func (*QueryAllOracleScriptsRequest) Reset ¶
func (m *QueryAllOracleScriptsRequest) Reset()
func (*QueryAllOracleScriptsRequest) Size ¶
func (m *QueryAllOracleScriptsRequest) Size() (n int)
func (*QueryAllOracleScriptsRequest) String ¶
func (m *QueryAllOracleScriptsRequest) String() string
func (*QueryAllOracleScriptsRequest) Unmarshal ¶
func (m *QueryAllOracleScriptsRequest) Unmarshal(dAtA []byte) error
func (*QueryAllOracleScriptsRequest) XXX_DiscardUnknown ¶
func (m *QueryAllOracleScriptsRequest) XXX_DiscardUnknown()
func (*QueryAllOracleScriptsRequest) XXX_Marshal ¶
func (m *QueryAllOracleScriptsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllOracleScriptsRequest) XXX_Merge ¶
func (m *QueryAllOracleScriptsRequest) XXX_Merge(src proto.Message)
func (*QueryAllOracleScriptsRequest) XXX_Size ¶
func (m *QueryAllOracleScriptsRequest) XXX_Size() int
func (*QueryAllOracleScriptsRequest) XXX_Unmarshal ¶
func (m *QueryAllOracleScriptsRequest) XXX_Unmarshal(b []byte) error
type QueryAllOracleScriptsResponse ¶
type QueryAllOracleScriptsResponse struct { OracleScripts []*OracleScript `protobuf:"bytes,1,rep,name=oracleScripts,proto3" json:"oracleScripts,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllOracleScriptsResponse) Descriptor ¶
func (*QueryAllOracleScriptsResponse) Descriptor() ([]byte, []int)
func (*QueryAllOracleScriptsResponse) GetOracleScripts ¶
func (m *QueryAllOracleScriptsResponse) GetOracleScripts() []*OracleScript
func (*QueryAllOracleScriptsResponse) GetPagination ¶
func (m *QueryAllOracleScriptsResponse) GetPagination() *query.PageResponse
func (*QueryAllOracleScriptsResponse) Marshal ¶
func (m *QueryAllOracleScriptsResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllOracleScriptsResponse) MarshalTo ¶
func (m *QueryAllOracleScriptsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllOracleScriptsResponse) MarshalToSizedBuffer ¶
func (m *QueryAllOracleScriptsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllOracleScriptsResponse) ProtoMessage ¶
func (*QueryAllOracleScriptsResponse) ProtoMessage()
func (*QueryAllOracleScriptsResponse) Reset ¶
func (m *QueryAllOracleScriptsResponse) Reset()
func (*QueryAllOracleScriptsResponse) Size ¶
func (m *QueryAllOracleScriptsResponse) Size() (n int)
func (*QueryAllOracleScriptsResponse) String ¶
func (m *QueryAllOracleScriptsResponse) String() string
func (*QueryAllOracleScriptsResponse) Unmarshal ¶
func (m *QueryAllOracleScriptsResponse) Unmarshal(dAtA []byte) error
func (*QueryAllOracleScriptsResponse) XXX_DiscardUnknown ¶
func (m *QueryAllOracleScriptsResponse) XXX_DiscardUnknown()
func (*QueryAllOracleScriptsResponse) XXX_Marshal ¶
func (m *QueryAllOracleScriptsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllOracleScriptsResponse) XXX_Merge ¶
func (m *QueryAllOracleScriptsResponse) XXX_Merge(src proto.Message)
func (*QueryAllOracleScriptsResponse) XXX_Size ¶
func (m *QueryAllOracleScriptsResponse) XXX_Size() int
func (*QueryAllOracleScriptsResponse) XXX_Unmarshal ¶
func (m *QueryAllOracleScriptsResponse) XXX_Unmarshal(b []byte) error
type QueryAllReportersRequest ¶
type QueryAllReportersRequest struct {
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
func (*QueryAllReportersRequest) Descriptor ¶
func (*QueryAllReportersRequest) Descriptor() ([]byte, []int)
func (*QueryAllReportersRequest) GetPagination ¶
func (m *QueryAllReportersRequest) GetPagination() *query.PageRequest
func (*QueryAllReportersRequest) Marshal ¶
func (m *QueryAllReportersRequest) Marshal() (dAtA []byte, err error)
func (*QueryAllReportersRequest) MarshalTo ¶
func (m *QueryAllReportersRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllReportersRequest) MarshalToSizedBuffer ¶
func (m *QueryAllReportersRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllReportersRequest) ProtoMessage ¶
func (*QueryAllReportersRequest) ProtoMessage()
func (*QueryAllReportersRequest) Reset ¶
func (m *QueryAllReportersRequest) Reset()
func (*QueryAllReportersRequest) Size ¶
func (m *QueryAllReportersRequest) Size() (n int)
func (*QueryAllReportersRequest) String ¶
func (m *QueryAllReportersRequest) String() string
func (*QueryAllReportersRequest) Unmarshal ¶
func (m *QueryAllReportersRequest) Unmarshal(dAtA []byte) error
func (*QueryAllReportersRequest) XXX_DiscardUnknown ¶
func (m *QueryAllReportersRequest) XXX_DiscardUnknown()
func (*QueryAllReportersRequest) XXX_Marshal ¶
func (m *QueryAllReportersRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllReportersRequest) XXX_Merge ¶
func (m *QueryAllReportersRequest) XXX_Merge(src proto.Message)
func (*QueryAllReportersRequest) XXX_Size ¶
func (m *QueryAllReportersRequest) XXX_Size() int
func (*QueryAllReportersRequest) XXX_Unmarshal ¶
func (m *QueryAllReportersRequest) XXX_Unmarshal(b []byte) error
type QueryAllReportersResponse ¶
type QueryAllReportersResponse struct { Reporters []*Reporter `protobuf:"bytes,1,rep,name=reporters,proto3" json:"reporters,omitempty"` Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"` }
func (*QueryAllReportersResponse) Descriptor ¶
func (*QueryAllReportersResponse) Descriptor() ([]byte, []int)
func (*QueryAllReportersResponse) GetPagination ¶
func (m *QueryAllReportersResponse) GetPagination() *query.PageResponse
func (*QueryAllReportersResponse) GetReporters ¶
func (m *QueryAllReportersResponse) GetReporters() []*Reporter
func (*QueryAllReportersResponse) Marshal ¶
func (m *QueryAllReportersResponse) Marshal() (dAtA []byte, err error)
func (*QueryAllReportersResponse) MarshalTo ¶
func (m *QueryAllReportersResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryAllReportersResponse) MarshalToSizedBuffer ¶
func (m *QueryAllReportersResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryAllReportersResponse) ProtoMessage ¶
func (*QueryAllReportersResponse) ProtoMessage()
func (*QueryAllReportersResponse) Reset ¶
func (m *QueryAllReportersResponse) Reset()
func (*QueryAllReportersResponse) Size ¶
func (m *QueryAllReportersResponse) Size() (n int)
func (*QueryAllReportersResponse) String ¶
func (m *QueryAllReportersResponse) String() string
func (*QueryAllReportersResponse) Unmarshal ¶
func (m *QueryAllReportersResponse) Unmarshal(dAtA []byte) error
func (*QueryAllReportersResponse) XXX_DiscardUnknown ¶
func (m *QueryAllReportersResponse) XXX_DiscardUnknown()
func (*QueryAllReportersResponse) XXX_Marshal ¶
func (m *QueryAllReportersResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryAllReportersResponse) XXX_Merge ¶
func (m *QueryAllReportersResponse) XXX_Merge(src proto.Message)
func (*QueryAllReportersResponse) XXX_Size ¶
func (m *QueryAllReportersResponse) XXX_Size() int
func (*QueryAllReportersResponse) XXX_Unmarshal ¶
func (m *QueryAllReportersResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { QueryParams(ctx context.Context, in *QueryGetParamsRequest, opts ...grpc.CallOption) (*QueryGetParamsReponse, error) // reporters QueryReporter(ctx context.Context, in *QueryGetReporterRequest, opts ...grpc.CallOption) (*QueryGetReporterResponse, error) QueryReporterCount(ctx context.Context, in *QueryGetReporterCountRequest, opts ...grpc.CallOption) (*QueryGetReporterCountResponse, error) QueryReporters(ctx context.Context, in *QueryAllReportersRequest, opts ...grpc.CallOption) (*QueryAllReportersResponse, error) // oracle scripts QueryOracleScript(ctx context.Context, in *QueryGetOracleScriptRequest, opts ...grpc.CallOption) (*QueryGetOracleScriptResponse, error) QueryOracleScriptCount(ctx context.Context, in *QueryGetOracleScriptCountRequest, opts ...grpc.CallOption) (*QueryGetOracleScriptCountResponse, error) QueryOracleScripts(ctx context.Context, in *QueryAllOracleScriptsRequest, opts ...grpc.CallOption) (*QueryAllOracleScriptsResponse, 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 QueryGetOracleScriptCountRequest ¶
type QueryGetOracleScriptCountRequest struct { }
func (*QueryGetOracleScriptCountRequest) Descriptor ¶
func (*QueryGetOracleScriptCountRequest) Descriptor() ([]byte, []int)
func (*QueryGetOracleScriptCountRequest) Marshal ¶
func (m *QueryGetOracleScriptCountRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetOracleScriptCountRequest) MarshalTo ¶
func (m *QueryGetOracleScriptCountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetOracleScriptCountRequest) MarshalToSizedBuffer ¶
func (m *QueryGetOracleScriptCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetOracleScriptCountRequest) ProtoMessage ¶
func (*QueryGetOracleScriptCountRequest) ProtoMessage()
func (*QueryGetOracleScriptCountRequest) Reset ¶
func (m *QueryGetOracleScriptCountRequest) Reset()
func (*QueryGetOracleScriptCountRequest) Size ¶
func (m *QueryGetOracleScriptCountRequest) Size() (n int)
func (*QueryGetOracleScriptCountRequest) String ¶
func (m *QueryGetOracleScriptCountRequest) String() string
func (*QueryGetOracleScriptCountRequest) Unmarshal ¶
func (m *QueryGetOracleScriptCountRequest) Unmarshal(dAtA []byte) error
func (*QueryGetOracleScriptCountRequest) XXX_DiscardUnknown ¶
func (m *QueryGetOracleScriptCountRequest) XXX_DiscardUnknown()
func (*QueryGetOracleScriptCountRequest) XXX_Marshal ¶
func (m *QueryGetOracleScriptCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetOracleScriptCountRequest) XXX_Merge ¶
func (m *QueryGetOracleScriptCountRequest) XXX_Merge(src proto.Message)
func (*QueryGetOracleScriptCountRequest) XXX_Size ¶
func (m *QueryGetOracleScriptCountRequest) XXX_Size() int
func (*QueryGetOracleScriptCountRequest) XXX_Unmarshal ¶
func (m *QueryGetOracleScriptCountRequest) XXX_Unmarshal(b []byte) error
type QueryGetOracleScriptCountResponse ¶
type QueryGetOracleScriptCountResponse struct {
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}
func (*QueryGetOracleScriptCountResponse) Descriptor ¶
func (*QueryGetOracleScriptCountResponse) Descriptor() ([]byte, []int)
func (*QueryGetOracleScriptCountResponse) GetCount ¶
func (m *QueryGetOracleScriptCountResponse) GetCount() int64
func (*QueryGetOracleScriptCountResponse) Marshal ¶
func (m *QueryGetOracleScriptCountResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetOracleScriptCountResponse) MarshalTo ¶
func (m *QueryGetOracleScriptCountResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetOracleScriptCountResponse) MarshalToSizedBuffer ¶
func (m *QueryGetOracleScriptCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetOracleScriptCountResponse) ProtoMessage ¶
func (*QueryGetOracleScriptCountResponse) ProtoMessage()
func (*QueryGetOracleScriptCountResponse) Reset ¶
func (m *QueryGetOracleScriptCountResponse) Reset()
func (*QueryGetOracleScriptCountResponse) Size ¶
func (m *QueryGetOracleScriptCountResponse) Size() (n int)
func (*QueryGetOracleScriptCountResponse) String ¶
func (m *QueryGetOracleScriptCountResponse) String() string
func (*QueryGetOracleScriptCountResponse) Unmarshal ¶
func (m *QueryGetOracleScriptCountResponse) Unmarshal(dAtA []byte) error
func (*QueryGetOracleScriptCountResponse) XXX_DiscardUnknown ¶
func (m *QueryGetOracleScriptCountResponse) XXX_DiscardUnknown()
func (*QueryGetOracleScriptCountResponse) XXX_Marshal ¶
func (m *QueryGetOracleScriptCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetOracleScriptCountResponse) XXX_Merge ¶
func (m *QueryGetOracleScriptCountResponse) XXX_Merge(src proto.Message)
func (*QueryGetOracleScriptCountResponse) XXX_Size ¶
func (m *QueryGetOracleScriptCountResponse) XXX_Size() int
func (*QueryGetOracleScriptCountResponse) XXX_Unmarshal ¶
func (m *QueryGetOracleScriptCountResponse) XXX_Unmarshal(b []byte) error
type QueryGetOracleScriptRequest ¶
type QueryGetOracleScriptRequest struct {
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (*QueryGetOracleScriptRequest) Descriptor ¶
func (*QueryGetOracleScriptRequest) Descriptor() ([]byte, []int)
func (*QueryGetOracleScriptRequest) GetId ¶
func (m *QueryGetOracleScriptRequest) GetId() string
func (*QueryGetOracleScriptRequest) Marshal ¶
func (m *QueryGetOracleScriptRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetOracleScriptRequest) MarshalTo ¶
func (m *QueryGetOracleScriptRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetOracleScriptRequest) MarshalToSizedBuffer ¶
func (m *QueryGetOracleScriptRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetOracleScriptRequest) ProtoMessage ¶
func (*QueryGetOracleScriptRequest) ProtoMessage()
func (*QueryGetOracleScriptRequest) Reset ¶
func (m *QueryGetOracleScriptRequest) Reset()
func (*QueryGetOracleScriptRequest) Size ¶
func (m *QueryGetOracleScriptRequest) Size() (n int)
func (*QueryGetOracleScriptRequest) String ¶
func (m *QueryGetOracleScriptRequest) String() string
func (*QueryGetOracleScriptRequest) Unmarshal ¶
func (m *QueryGetOracleScriptRequest) Unmarshal(dAtA []byte) error
func (*QueryGetOracleScriptRequest) XXX_DiscardUnknown ¶
func (m *QueryGetOracleScriptRequest) XXX_DiscardUnknown()
func (*QueryGetOracleScriptRequest) XXX_Marshal ¶
func (m *QueryGetOracleScriptRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetOracleScriptRequest) XXX_Merge ¶
func (m *QueryGetOracleScriptRequest) XXX_Merge(src proto.Message)
func (*QueryGetOracleScriptRequest) XXX_Size ¶
func (m *QueryGetOracleScriptRequest) XXX_Size() int
func (*QueryGetOracleScriptRequest) XXX_Unmarshal ¶
func (m *QueryGetOracleScriptRequest) XXX_Unmarshal(b []byte) error
type QueryGetOracleScriptResponse ¶
type QueryGetOracleScriptResponse struct {
OracleScript *OracleScript `protobuf:"bytes,1,opt,name=oracleScript,proto3" json:"oracleScript,omitempty"`
}
func (*QueryGetOracleScriptResponse) Descriptor ¶
func (*QueryGetOracleScriptResponse) Descriptor() ([]byte, []int)
func (*QueryGetOracleScriptResponse) GetOracleScript ¶
func (m *QueryGetOracleScriptResponse) GetOracleScript() *OracleScript
func (*QueryGetOracleScriptResponse) Marshal ¶
func (m *QueryGetOracleScriptResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetOracleScriptResponse) MarshalTo ¶
func (m *QueryGetOracleScriptResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetOracleScriptResponse) MarshalToSizedBuffer ¶
func (m *QueryGetOracleScriptResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetOracleScriptResponse) ProtoMessage ¶
func (*QueryGetOracleScriptResponse) ProtoMessage()
func (*QueryGetOracleScriptResponse) Reset ¶
func (m *QueryGetOracleScriptResponse) Reset()
func (*QueryGetOracleScriptResponse) Size ¶
func (m *QueryGetOracleScriptResponse) Size() (n int)
func (*QueryGetOracleScriptResponse) String ¶
func (m *QueryGetOracleScriptResponse) String() string
func (*QueryGetOracleScriptResponse) Unmarshal ¶
func (m *QueryGetOracleScriptResponse) Unmarshal(dAtA []byte) error
func (*QueryGetOracleScriptResponse) XXX_DiscardUnknown ¶
func (m *QueryGetOracleScriptResponse) XXX_DiscardUnknown()
func (*QueryGetOracleScriptResponse) XXX_Marshal ¶
func (m *QueryGetOracleScriptResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetOracleScriptResponse) XXX_Merge ¶
func (m *QueryGetOracleScriptResponse) XXX_Merge(src proto.Message)
func (*QueryGetOracleScriptResponse) XXX_Size ¶
func (m *QueryGetOracleScriptResponse) XXX_Size() int
func (*QueryGetOracleScriptResponse) XXX_Unmarshal ¶
func (m *QueryGetOracleScriptResponse) XXX_Unmarshal(b []byte) error
type QueryGetParamsReponse ¶
type QueryGetParamsReponse struct {
Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
}
func (*QueryGetParamsReponse) Descriptor ¶
func (*QueryGetParamsReponse) Descriptor() ([]byte, []int)
func (*QueryGetParamsReponse) GetParams ¶
func (m *QueryGetParamsReponse) GetParams() *Params
func (*QueryGetParamsReponse) Marshal ¶
func (m *QueryGetParamsReponse) Marshal() (dAtA []byte, err error)
func (*QueryGetParamsReponse) MarshalTo ¶
func (m *QueryGetParamsReponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetParamsReponse) MarshalToSizedBuffer ¶
func (m *QueryGetParamsReponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetParamsReponse) ProtoMessage ¶
func (*QueryGetParamsReponse) ProtoMessage()
func (*QueryGetParamsReponse) Reset ¶
func (m *QueryGetParamsReponse) Reset()
func (*QueryGetParamsReponse) Size ¶
func (m *QueryGetParamsReponse) Size() (n int)
func (*QueryGetParamsReponse) String ¶
func (m *QueryGetParamsReponse) String() string
func (*QueryGetParamsReponse) Unmarshal ¶
func (m *QueryGetParamsReponse) Unmarshal(dAtA []byte) error
func (*QueryGetParamsReponse) XXX_DiscardUnknown ¶
func (m *QueryGetParamsReponse) XXX_DiscardUnknown()
func (*QueryGetParamsReponse) XXX_Marshal ¶
func (m *QueryGetParamsReponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetParamsReponse) XXX_Merge ¶
func (m *QueryGetParamsReponse) XXX_Merge(src proto.Message)
func (*QueryGetParamsReponse) XXX_Size ¶
func (m *QueryGetParamsReponse) XXX_Size() int
func (*QueryGetParamsReponse) XXX_Unmarshal ¶
func (m *QueryGetParamsReponse) XXX_Unmarshal(b []byte) error
type QueryGetParamsRequest ¶
type QueryGetParamsRequest struct { }
func (*QueryGetParamsRequest) Descriptor ¶
func (*QueryGetParamsRequest) Descriptor() ([]byte, []int)
func (*QueryGetParamsRequest) Marshal ¶
func (m *QueryGetParamsRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetParamsRequest) MarshalTo ¶
func (m *QueryGetParamsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetParamsRequest) MarshalToSizedBuffer ¶
func (m *QueryGetParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetParamsRequest) ProtoMessage ¶
func (*QueryGetParamsRequest) ProtoMessage()
func (*QueryGetParamsRequest) Reset ¶
func (m *QueryGetParamsRequest) Reset()
func (*QueryGetParamsRequest) Size ¶
func (m *QueryGetParamsRequest) Size() (n int)
func (*QueryGetParamsRequest) String ¶
func (m *QueryGetParamsRequest) String() string
func (*QueryGetParamsRequest) Unmarshal ¶
func (m *QueryGetParamsRequest) Unmarshal(dAtA []byte) error
func (*QueryGetParamsRequest) XXX_DiscardUnknown ¶
func (m *QueryGetParamsRequest) XXX_DiscardUnknown()
func (*QueryGetParamsRequest) XXX_Marshal ¶
func (m *QueryGetParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetParamsRequest) XXX_Merge ¶
func (m *QueryGetParamsRequest) XXX_Merge(src proto.Message)
func (*QueryGetParamsRequest) XXX_Size ¶
func (m *QueryGetParamsRequest) XXX_Size() int
func (*QueryGetParamsRequest) XXX_Unmarshal ¶
func (m *QueryGetParamsRequest) XXX_Unmarshal(b []byte) error
type QueryGetReporterCountRequest ¶
type QueryGetReporterCountRequest struct { }
func (*QueryGetReporterCountRequest) Descriptor ¶
func (*QueryGetReporterCountRequest) Descriptor() ([]byte, []int)
func (*QueryGetReporterCountRequest) Marshal ¶
func (m *QueryGetReporterCountRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetReporterCountRequest) MarshalTo ¶
func (m *QueryGetReporterCountRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetReporterCountRequest) MarshalToSizedBuffer ¶
func (m *QueryGetReporterCountRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetReporterCountRequest) ProtoMessage ¶
func (*QueryGetReporterCountRequest) ProtoMessage()
func (*QueryGetReporterCountRequest) Reset ¶
func (m *QueryGetReporterCountRequest) Reset()
func (*QueryGetReporterCountRequest) Size ¶
func (m *QueryGetReporterCountRequest) Size() (n int)
func (*QueryGetReporterCountRequest) String ¶
func (m *QueryGetReporterCountRequest) String() string
func (*QueryGetReporterCountRequest) Unmarshal ¶
func (m *QueryGetReporterCountRequest) Unmarshal(dAtA []byte) error
func (*QueryGetReporterCountRequest) XXX_DiscardUnknown ¶
func (m *QueryGetReporterCountRequest) XXX_DiscardUnknown()
func (*QueryGetReporterCountRequest) XXX_Marshal ¶
func (m *QueryGetReporterCountRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetReporterCountRequest) XXX_Merge ¶
func (m *QueryGetReporterCountRequest) XXX_Merge(src proto.Message)
func (*QueryGetReporterCountRequest) XXX_Size ¶
func (m *QueryGetReporterCountRequest) XXX_Size() int
func (*QueryGetReporterCountRequest) XXX_Unmarshal ¶
func (m *QueryGetReporterCountRequest) XXX_Unmarshal(b []byte) error
type QueryGetReporterCountResponse ¶
type QueryGetReporterCountResponse struct {
Count int64 `protobuf:"varint,1,opt,name=count,proto3" json:"count,omitempty"`
}
func (*QueryGetReporterCountResponse) Descriptor ¶
func (*QueryGetReporterCountResponse) Descriptor() ([]byte, []int)
func (*QueryGetReporterCountResponse) GetCount ¶
func (m *QueryGetReporterCountResponse) GetCount() int64
func (*QueryGetReporterCountResponse) Marshal ¶
func (m *QueryGetReporterCountResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetReporterCountResponse) MarshalTo ¶
func (m *QueryGetReporterCountResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetReporterCountResponse) MarshalToSizedBuffer ¶
func (m *QueryGetReporterCountResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetReporterCountResponse) ProtoMessage ¶
func (*QueryGetReporterCountResponse) ProtoMessage()
func (*QueryGetReporterCountResponse) Reset ¶
func (m *QueryGetReporterCountResponse) Reset()
func (*QueryGetReporterCountResponse) Size ¶
func (m *QueryGetReporterCountResponse) Size() (n int)
func (*QueryGetReporterCountResponse) String ¶
func (m *QueryGetReporterCountResponse) String() string
func (*QueryGetReporterCountResponse) Unmarshal ¶
func (m *QueryGetReporterCountResponse) Unmarshal(dAtA []byte) error
func (*QueryGetReporterCountResponse) XXX_DiscardUnknown ¶
func (m *QueryGetReporterCountResponse) XXX_DiscardUnknown()
func (*QueryGetReporterCountResponse) XXX_Marshal ¶
func (m *QueryGetReporterCountResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetReporterCountResponse) XXX_Merge ¶
func (m *QueryGetReporterCountResponse) XXX_Merge(src proto.Message)
func (*QueryGetReporterCountResponse) XXX_Size ¶
func (m *QueryGetReporterCountResponse) XXX_Size() int
func (*QueryGetReporterCountResponse) XXX_Unmarshal ¶
func (m *QueryGetReporterCountResponse) XXX_Unmarshal(b []byte) error
type QueryGetReporterRequest ¶
type QueryGetReporterRequest struct {
Reporter string `protobuf:"bytes,1,opt,name=reporter,proto3" json:"reporter,omitempty"`
}
func (*QueryGetReporterRequest) Descriptor ¶
func (*QueryGetReporterRequest) Descriptor() ([]byte, []int)
func (*QueryGetReporterRequest) GetReporter ¶
func (m *QueryGetReporterRequest) GetReporter() string
func (*QueryGetReporterRequest) Marshal ¶
func (m *QueryGetReporterRequest) Marshal() (dAtA []byte, err error)
func (*QueryGetReporterRequest) MarshalTo ¶
func (m *QueryGetReporterRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetReporterRequest) MarshalToSizedBuffer ¶
func (m *QueryGetReporterRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetReporterRequest) ProtoMessage ¶
func (*QueryGetReporterRequest) ProtoMessage()
func (*QueryGetReporterRequest) Reset ¶
func (m *QueryGetReporterRequest) Reset()
func (*QueryGetReporterRequest) Size ¶
func (m *QueryGetReporterRequest) Size() (n int)
func (*QueryGetReporterRequest) String ¶
func (m *QueryGetReporterRequest) String() string
func (*QueryGetReporterRequest) Unmarshal ¶
func (m *QueryGetReporterRequest) Unmarshal(dAtA []byte) error
func (*QueryGetReporterRequest) XXX_DiscardUnknown ¶
func (m *QueryGetReporterRequest) XXX_DiscardUnknown()
func (*QueryGetReporterRequest) XXX_Marshal ¶
func (m *QueryGetReporterRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetReporterRequest) XXX_Merge ¶
func (m *QueryGetReporterRequest) XXX_Merge(src proto.Message)
func (*QueryGetReporterRequest) XXX_Size ¶
func (m *QueryGetReporterRequest) XXX_Size() int
func (*QueryGetReporterRequest) XXX_Unmarshal ¶
func (m *QueryGetReporterRequest) XXX_Unmarshal(b []byte) error
type QueryGetReporterResponse ¶
type QueryGetReporterResponse struct {
Reporter *Reporter `protobuf:"bytes,1,opt,name=reporter,proto3" json:"reporter,omitempty"`
}
func (*QueryGetReporterResponse) Descriptor ¶
func (*QueryGetReporterResponse) Descriptor() ([]byte, []int)
func (*QueryGetReporterResponse) GetReporter ¶
func (m *QueryGetReporterResponse) GetReporter() *Reporter
func (*QueryGetReporterResponse) Marshal ¶
func (m *QueryGetReporterResponse) Marshal() (dAtA []byte, err error)
func (*QueryGetReporterResponse) MarshalTo ¶
func (m *QueryGetReporterResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryGetReporterResponse) MarshalToSizedBuffer ¶
func (m *QueryGetReporterResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryGetReporterResponse) ProtoMessage ¶
func (*QueryGetReporterResponse) ProtoMessage()
func (*QueryGetReporterResponse) Reset ¶
func (m *QueryGetReporterResponse) Reset()
func (*QueryGetReporterResponse) Size ¶
func (m *QueryGetReporterResponse) Size() (n int)
func (*QueryGetReporterResponse) String ¶
func (m *QueryGetReporterResponse) String() string
func (*QueryGetReporterResponse) Unmarshal ¶
func (m *QueryGetReporterResponse) Unmarshal(dAtA []byte) error
func (*QueryGetReporterResponse) XXX_DiscardUnknown ¶
func (m *QueryGetReporterResponse) XXX_DiscardUnknown()
func (*QueryGetReporterResponse) XXX_Marshal ¶
func (m *QueryGetReporterResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryGetReporterResponse) XXX_Merge ¶
func (m *QueryGetReporterResponse) XXX_Merge(src proto.Message)
func (*QueryGetReporterResponse) XXX_Size ¶
func (m *QueryGetReporterResponse) XXX_Size() int
func (*QueryGetReporterResponse) XXX_Unmarshal ¶
func (m *QueryGetReporterResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { QueryParams(context.Context, *QueryGetParamsRequest) (*QueryGetParamsReponse, error) // reporters QueryReporter(context.Context, *QueryGetReporterRequest) (*QueryGetReporterResponse, error) QueryReporterCount(context.Context, *QueryGetReporterCountRequest) (*QueryGetReporterCountResponse, error) QueryReporters(context.Context, *QueryAllReportersRequest) (*QueryAllReportersResponse, error) // oracle scripts QueryOracleScript(context.Context, *QueryGetOracleScriptRequest) (*QueryGetOracleScriptResponse, error) QueryOracleScriptCount(context.Context, *QueryGetOracleScriptCountRequest) (*QueryGetOracleScriptCountResponse, error) QueryOracleScripts(context.Context, *QueryAllOracleScriptsRequest) (*QueryAllOracleScriptsResponse, error) }
QueryServer is the server API for Query service.
type Report ¶
type Report struct { // the signer of this message Reporter string `protobuf:"bytes,1,opt,name=reporter,proto3" json:"reporter,omitempty"` Externalid string `protobuf:"bytes,2,opt,name=externalid,proto3" json:"externalid,omitempty"` Returndata string `protobuf:"bytes,3,opt,name=returndata,proto3" json:"returndata,omitempty"` }
func (*Report) Descriptor ¶
func (*Report) GetExternalid ¶
func (*Report) GetReporter ¶
func (*Report) GetReturndata ¶
func (*Report) MarshalToSizedBuffer ¶
func (*Report) ProtoMessage ¶
func (*Report) ProtoMessage()
func (*Report) XXX_DiscardUnknown ¶
func (m *Report) XXX_DiscardUnknown()
func (*Report) XXX_Marshal ¶
func (*Report) XXX_Unmarshal ¶
type Reporter ¶
type Reporter struct { // creator is the signer of this message Creator string `protobuf:"bytes,1,opt,name=creator,proto3" json:"creator,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Validator string `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"` // reporter address unique primary key Reporter string `protobuf:"bytes,4,opt,name=reporter,proto3" json:"reporter,omitempty"` }
func (*Reporter) Descriptor ¶
func (*Reporter) GetCreator ¶
func (*Reporter) GetReporter ¶
func (*Reporter) GetValidator ¶
func (*Reporter) MarshalToSizedBuffer ¶
func (*Reporter) ProtoMessage ¶
func (*Reporter) ProtoMessage()
func (*Reporter) XXX_DiscardUnknown ¶
func (m *Reporter) XXX_DiscardUnknown()
func (*Reporter) XXX_Marshal ¶
func (*Reporter) XXX_Unmarshal ¶
type Request ¶
type Request struct { // request unique primary key Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Externalid string `protobuf:"bytes,2,opt,name=externalid,proto3" json:"externalid,omitempty"` RequestHeight int64 `protobuf:"varint,3,opt,name=request_height,json=requestHeight,proto3" json:"request_height,omitempty"` RequestTime int64 `protobuf:"varint,4,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"` ResolveTime int64 `protobuf:"varint,5,opt,name=resolve_time,json=resolveTime,proto3" json:"resolve_time,omitempty"` MinReportCount int64 `protobuf:"varint,6,opt,name=min_report_count,json=minReportCount,proto3" json:"min_report_count,omitempty"` WaitBlock int64 `protobuf:"varint,7,opt,name=wait_block,json=waitBlock,proto3" json:"wait_block,omitempty"` ClosedBlock int64 `protobuf:"varint,8,opt,name=closed_block,json=closedBlock,proto3" json:"closed_block,omitempty"` Result string `protobuf:"bytes,9,opt,name=result,proto3" json:"result,omitempty"` Reports []*Report `protobuf:"bytes,10,rep,name=reports,proto3" json:"reports,omitempty"` Status RequestStatus `protobuf:"varint,11,opt,name=status,proto3,enum=yunge.oracle.RequestStatus" json:"status,omitempty"` // the signer of this message Requester string `protobuf:"bytes,12,opt,name=requester,proto3" json:"requester,omitempty"` OracleScriptId string `protobuf:"bytes,13,opt,name=oracle_script_id,json=oracleScriptId,proto3" json:"oracle_script_id,omitempty"` Calldata string `protobuf:"bytes,14,opt,name=calldata,proto3" json:"calldata,omitempty"` }
func (*Request) Descriptor ¶
func (*Request) GetCalldata ¶
func (*Request) GetClosedBlock ¶
func (*Request) GetExternalid ¶
func (*Request) GetMinReportCount ¶
func (*Request) GetOracleScriptId ¶
func (*Request) GetReports ¶
func (*Request) GetRequestHeight ¶
func (*Request) GetRequestTime ¶
func (*Request) GetRequester ¶
func (*Request) GetResolveTime ¶
func (*Request) GetStatus ¶
func (m *Request) GetStatus() RequestStatus
func (*Request) GetWaitBlock ¶
func (*Request) MarshalToSizedBuffer ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) XXX_DiscardUnknown ¶
func (m *Request) XXX_DiscardUnknown()
func (*Request) XXX_Marshal ¶
func (*Request) XXX_Unmarshal ¶
type RequestStatus ¶
type RequestStatus int32
RequestStatus enumerates the valid statuses of a task.
const ( RequestStatusUnspecified RequestStatus = 0 RequestStatusPending RequestStatus = 1 RequestStatusSucceeded RequestStatus = 2 RequestStatusFailed RequestStatus = 3 )
func (RequestStatus) EnumDescriptor ¶
func (RequestStatus) EnumDescriptor() ([]byte, []int)
func (RequestStatus) String ¶
func (x RequestStatus) String() string
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateOracleScript ¶
func (*UnimplementedMsgServer) CreateOracleScript(ctx context.Context, req *MsgCreateOracleScript) (*MsgCreateOracleScriptResponse, error)
func (*UnimplementedMsgServer) CreateReport ¶
func (*UnimplementedMsgServer) CreateReport(ctx context.Context, req *MsgCreateReport) (*MsgCreateReportResponse, error)
func (*UnimplementedMsgServer) CreateReporter ¶
func (*UnimplementedMsgServer) CreateReporter(ctx context.Context, req *MsgCreateReporter) (*MsgCreateReporterResponse, error)
func (*UnimplementedMsgServer) CreateRequest ¶
func (*UnimplementedMsgServer) CreateRequest(ctx context.Context, req *MsgCreateRequest) (*MsgCreateRequestResponse, error)
func (*UnimplementedMsgServer) DeleteReporter ¶
func (*UnimplementedMsgServer) DeleteReporter(ctx context.Context, req *MsgDeleteReporter) (*MsgDeleteReporterResponse, error)
func (*UnimplementedMsgServer) EditOracleScript ¶
func (*UnimplementedMsgServer) EditOracleScript(ctx context.Context, req *MsgEditOracleScript) (*MsgEditOracleScriptResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) QueryOracleScript ¶
func (*UnimplementedQueryServer) QueryOracleScript(ctx context.Context, req *QueryGetOracleScriptRequest) (*QueryGetOracleScriptResponse, error)
func (*UnimplementedQueryServer) QueryOracleScriptCount ¶
func (*UnimplementedQueryServer) QueryOracleScriptCount(ctx context.Context, req *QueryGetOracleScriptCountRequest) (*QueryGetOracleScriptCountResponse, error)
func (*UnimplementedQueryServer) QueryOracleScripts ¶
func (*UnimplementedQueryServer) QueryOracleScripts(ctx context.Context, req *QueryAllOracleScriptsRequest) (*QueryAllOracleScriptsResponse, error)
func (*UnimplementedQueryServer) QueryParams ¶
func (*UnimplementedQueryServer) QueryParams(ctx context.Context, req *QueryGetParamsRequest) (*QueryGetParamsReponse, error)
func (*UnimplementedQueryServer) QueryReporter ¶
func (*UnimplementedQueryServer) QueryReporter(ctx context.Context, req *QueryGetReporterRequest) (*QueryGetReporterResponse, error)
func (*UnimplementedQueryServer) QueryReporterCount ¶
func (*UnimplementedQueryServer) QueryReporterCount(ctx context.Context, req *QueryGetReporterCountRequest) (*QueryGetReporterCountResponse, error)
func (*UnimplementedQueryServer) QueryReporters ¶
func (*UnimplementedQueryServer) QueryReporters(ctx context.Context, req *QueryAllReportersRequest) (*QueryAllReportersResponse, error)