types

package
v0.2.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2021 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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

View Source
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
)
View Source
const (
	TypeMsgCreateReporter     = "create_reporter"
	TypeMsgDeleteReporter     = "delete_reporter"
	TypeMsgCreateOracleScript = "create_oracle_script"
	TypeMsgEditOracleScript   = "edit_oracle_script"
)

oracle message types

View Source
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)
)
View Source
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"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	TypeMsgCreateReport = "create_report"
)

oracle message types

View Source
const (
	TypeMsgCreateRequest = "create_request"
)

oracle message types

Variables

View Source
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

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	MemStoreKey          = "0x01"
	ReporterKey          = "0x02"
	ReporterCountKey     = "0x03"
	OracleScriptKey      = "0x04"
	OracleScriptCountKey = "0x05"
	PricesKey            = "0x06"
	RequestKey           = "0x07"
	RequestCountKey      = "0x08"
	ReportKey            = "0x09"
	ReportCountKey       = "0x10"
)
View Source
var (
	ErrInvalidLengthOracle        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowOracle          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupOracle = fmt.Errorf("proto: unexpected end of group")
)
View Source
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")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
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)
)
View Source
var RequestStatus_name = map[int32]string{
	0: "REQUEST_STATUS_UNSPECIFIED",
	1: "REQUEST_STATUS_PENDING",
	2: "REQUEST_STATUS_SUCCEEDED",
	3: "REQUEST_STATUS_FAILED",
}
View Source
var RequestStatus_value = map[string]int32{
	"REQUEST_STATUS_UNSPECIFIED": 0,
	"REQUEST_STATUS_PENDING":     1,
	"REQUEST_STATUS_SUCCEEDED":   2,
	"REQUEST_STATUS_FAILED":      3,
}

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamTable for oracle module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

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) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, 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

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 (*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) MarshalTo

func (m *MsgCreateReport) MarshalTo(dAtA []byte) (int, 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) MarshalTo

func (m *MsgCreateRequest) MarshalTo(dAtA []byte) (int, 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 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) MarshalTo

func (m *OracleScript) MarshalTo(dAtA []byte) (int, 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 DefaultParams

func DefaultParams() *Params

DefaultParams defines the default parameters.

func NewParams

func NewParams(
	WaitBlockWindow int64,
	MinReportCount int64,
	AggregationWindow int64,
) *Params

func (*Params) Descriptor

func (*Params) Descriptor() ([]byte, []int)

func (*Params) GetAggregationWindow

func (m *Params) GetAggregationWindow() int64

func (*Params) GetMinReportCount

func (m *Params) GetMinReportCount() int64

func (*Params) GetWaitBlockWindow

func (m *Params) GetWaitBlockWindow() int64

func (*Params) Marshal

func (m *Params) Marshal() (dAtA []byte, err error)

func (*Params) MarshalTo

func (m *Params) MarshalTo(dAtA []byte) (int, error)

func (*Params) MarshalToSizedBuffer

func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)

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) Reset

func (m *Params) Reset()

func (*Params) Size

func (m *Params) Size() (n int)

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

func (m *Params) Unmarshal(dAtA []byte) error

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Params) XXX_Merge

func (m *Params) XXX_Merge(src proto.Message)

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

func (m *Params) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Prices) GetId

func (m *Prices) GetId() string

func (*Prices) GetLastUpdated

func (m *Prices) GetLastUpdated() int64

func (*Prices) GetName

func (m *Prices) GetName() string

func (*Prices) GetPriceUsd

func (m *Prices) GetPriceUsd() string

func (*Prices) GetStrftime

func (m *Prices) GetStrftime() string

func (*Prices) GetSymbol

func (m *Prices) GetSymbol() string

func (*Prices) Marshal

func (m *Prices) Marshal() (dAtA []byte, err error)

func (*Prices) MarshalTo

func (m *Prices) MarshalTo(dAtA []byte) (int, error)

func (*Prices) MarshalToSizedBuffer

func (m *Prices) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Prices) ProtoMessage

func (*Prices) ProtoMessage()

func (*Prices) Reset

func (m *Prices) Reset()

func (*Prices) Size

func (m *Prices) Size() (n int)

func (*Prices) String

func (m *Prices) String() string

func (*Prices) Unmarshal

func (m *Prices) Unmarshal(dAtA []byte) error

func (*Prices) XXX_DiscardUnknown

func (m *Prices) XXX_DiscardUnknown()

func (*Prices) XXX_Marshal

func (m *Prices) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Prices) XXX_Merge

func (m *Prices) XXX_Merge(src proto.Message)

func (*Prices) XXX_Size

func (m *Prices) XXX_Size() int

func (*Prices) XXX_Unmarshal

func (m *Prices) XXX_Unmarshal(b []byte) error

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 (*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 (*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

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 (*QueryGetOracleScriptCountRequest) Size

func (m *QueryGetOracleScriptCountRequest) Size() (n int)

func (*QueryGetOracleScriptCountRequest) 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 (*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 (*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 (*QueryGetOracleScriptCountResponse) Size

func (m *QueryGetOracleScriptCountResponse) Size() (n int)

func (*QueryGetOracleScriptCountResponse) 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 (*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 (*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 (*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 (*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 (*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 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 NewReport

func NewReport(reporter, externalid, returndata string) *Report

func (*Report) Descriptor

func (*Report) Descriptor() ([]byte, []int)

func (*Report) GetExternalid

func (m *Report) GetExternalid() string

func (*Report) GetReporter

func (m *Report) GetReporter() string

func (*Report) GetReturndata

func (m *Report) GetReturndata() string

func (*Report) Marshal

func (m *Report) Marshal() (dAtA []byte, err error)

func (*Report) MarshalTo

func (m *Report) MarshalTo(dAtA []byte) (int, error)

func (*Report) MarshalToSizedBuffer

func (m *Report) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Report) ProtoMessage

func (*Report) ProtoMessage()

func (*Report) Reset

func (m *Report) Reset()

func (*Report) Size

func (m *Report) Size() (n int)

func (*Report) String

func (m *Report) String() string

func (*Report) Unmarshal

func (m *Report) Unmarshal(dAtA []byte) error

func (*Report) XXX_DiscardUnknown

func (m *Report) XXX_DiscardUnknown()

func (*Report) XXX_Marshal

func (m *Report) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Report) XXX_Merge

func (m *Report) XXX_Merge(src proto.Message)

func (*Report) XXX_Size

func (m *Report) XXX_Size() int

func (*Report) XXX_Unmarshal

func (m *Report) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Reporter) GetCreator

func (m *Reporter) GetCreator() string

func (*Reporter) GetId

func (m *Reporter) GetId() string

func (*Reporter) GetReporter

func (m *Reporter) GetReporter() string

func (*Reporter) GetValidator

func (m *Reporter) GetValidator() string

func (*Reporter) Marshal

func (m *Reporter) Marshal() (dAtA []byte, err error)

func (*Reporter) MarshalTo

func (m *Reporter) MarshalTo(dAtA []byte) (int, error)

func (*Reporter) MarshalToSizedBuffer

func (m *Reporter) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Reporter) ProtoMessage

func (*Reporter) ProtoMessage()

func (*Reporter) Reset

func (m *Reporter) Reset()

func (*Reporter) Size

func (m *Reporter) Size() (n int)

func (*Reporter) String

func (m *Reporter) String() string

func (*Reporter) Unmarshal

func (m *Reporter) Unmarshal(dAtA []byte) error

func (*Reporter) XXX_DiscardUnknown

func (m *Reporter) XXX_DiscardUnknown()

func (*Reporter) XXX_Marshal

func (m *Reporter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Reporter) XXX_Merge

func (m *Reporter) XXX_Merge(src proto.Message)

func (*Reporter) XXX_Size

func (m *Reporter) XXX_Size() int

func (*Reporter) XXX_Unmarshal

func (m *Reporter) XXX_Unmarshal(b []byte) error

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) Descriptor() ([]byte, []int)

func (*Request) GetCalldata

func (m *Request) GetCalldata() string

func (*Request) GetClosedBlock

func (m *Request) GetClosedBlock() int64

func (*Request) GetExternalid

func (m *Request) GetExternalid() string

func (*Request) GetId

func (m *Request) GetId() string

func (*Request) GetMinReportCount

func (m *Request) GetMinReportCount() int64

func (*Request) GetOracleScriptId

func (m *Request) GetOracleScriptId() string

func (*Request) GetReports

func (m *Request) GetReports() []*Report

func (*Request) GetRequestHeight

func (m *Request) GetRequestHeight() int64

func (*Request) GetRequestTime

func (m *Request) GetRequestTime() int64

func (*Request) GetRequester

func (m *Request) GetRequester() string

func (*Request) GetResolveTime

func (m *Request) GetResolveTime() int64

func (*Request) GetResult

func (m *Request) GetResult() string

func (*Request) GetStatus

func (m *Request) GetStatus() RequestStatus

func (*Request) GetWaitBlock

func (m *Request) GetWaitBlock() int64

func (*Request) Marshal

func (m *Request) Marshal() (dAtA []byte, err error)

func (*Request) MarshalTo

func (m *Request) MarshalTo(dAtA []byte) (int, error)

func (*Request) MarshalToSizedBuffer

func (m *Request) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) Reset

func (m *Request) Reset()

func (*Request) Size

func (m *Request) Size() (n int)

func (*Request) String

func (m *Request) String() string

func (*Request) Unmarshal

func (m *Request) Unmarshal(dAtA []byte) error

func (*Request) XXX_DiscardUnknown

func (m *Request) XXX_DiscardUnknown()

func (*Request) XXX_Marshal

func (m *Request) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Request) XXX_Merge

func (m *Request) XXX_Merge(src proto.Message)

func (*Request) XXX_Size

func (m *Request) XXX_Size() int

func (*Request) XXX_Unmarshal

func (m *Request) XXX_Unmarshal(b []byte) error

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) CreateReport

func (*UnimplementedMsgServer) CreateReporter

func (*UnimplementedMsgServer) CreateRequest

func (*UnimplementedMsgServer) DeleteReporter

func (*UnimplementedMsgServer) EditOracleScript

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) QueryOracleScript

func (*UnimplementedQueryServer) QueryOracleScriptCount

func (*UnimplementedQueryServer) QueryOracleScripts

func (*UnimplementedQueryServer) QueryParams

func (*UnimplementedQueryServer) QueryReporter

func (*UnimplementedQueryServer) QueryReporterCount

func (*UnimplementedQueryServer) QueryReporters

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL