oraclev1

package
v3.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2025 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

View Source
const (
	Query_Counts_FullMethodName              = "/band.oracle.v1.Query/Counts"
	Query_Data_FullMethodName                = "/band.oracle.v1.Query/Data"
	Query_DataSource_FullMethodName          = "/band.oracle.v1.Query/DataSource"
	Query_OracleScript_FullMethodName        = "/band.oracle.v1.Query/OracleScript"
	Query_Request_FullMethodName             = "/band.oracle.v1.Query/Request"
	Query_PendingRequests_FullMethodName     = "/band.oracle.v1.Query/PendingRequests"
	Query_Validator_FullMethodName           = "/band.oracle.v1.Query/Validator"
	Query_IsReporter_FullMethodName          = "/band.oracle.v1.Query/IsReporter"
	Query_Reporters_FullMethodName           = "/band.oracle.v1.Query/Reporters"
	Query_ActiveValidators_FullMethodName    = "/band.oracle.v1.Query/ActiveValidators"
	Query_Params_FullMethodName              = "/band.oracle.v1.Query/Params"
	Query_RequestSearch_FullMethodName       = "/band.oracle.v1.Query/RequestSearch"
	Query_RequestPrice_FullMethodName        = "/band.oracle.v1.Query/RequestPrice"
	Query_RequestVerification_FullMethodName = "/band.oracle.v1.Query/RequestVerification"
)
View Source
const (
	Msg_RequestData_FullMethodName        = "/band.oracle.v1.Msg/RequestData"
	Msg_ReportData_FullMethodName         = "/band.oracle.v1.Msg/ReportData"
	Msg_CreateDataSource_FullMethodName   = "/band.oracle.v1.Msg/CreateDataSource"
	Msg_EditDataSource_FullMethodName     = "/band.oracle.v1.Msg/EditDataSource"
	Msg_CreateOracleScript_FullMethodName = "/band.oracle.v1.Msg/CreateOracleScript"
	Msg_EditOracleScript_FullMethodName   = "/band.oracle.v1.Msg/EditOracleScript"
	Msg_Activate_FullMethodName           = "/band.oracle.v1.Msg/Activate"
	Msg_UpdateParams_FullMethodName       = "/band.oracle.v1.Msg/UpdateParams"
)

Variables

View Source
var (
	ResolveStatus_name = map[int32]string{
		0: "RESOLVE_STATUS_OPEN_UNSPECIFIED",
		1: "RESOLVE_STATUS_SUCCESS",
		2: "RESOLVE_STATUS_FAILURE",
		3: "RESOLVE_STATUS_EXPIRED",
	}
	ResolveStatus_value = map[string]int32{
		"RESOLVE_STATUS_OPEN_UNSPECIFIED": 0,
		"RESOLVE_STATUS_SUCCESS":          1,
		"RESOLVE_STATUS_FAILURE":          2,
		"RESOLVE_STATUS_EXPIRED":          3,
	}
)

Enum value maps for ResolveStatus.

View Source
var (
	Encoder_name = map[int32]string{
		0: "ENCODER_UNSPECIFIED",
		1: "ENCODER_PROTO",
		2: "ENCODER_FULL_ABI",
		3: "ENCODER_PARTIAL_ABI",
	}
	Encoder_value = map[string]int32{
		"ENCODER_UNSPECIFIED": 0,
		"ENCODER_PROTO":       1,
		"ENCODER_FULL_ABI":    2,
		"ENCODER_PARTIAL_ABI": 3,
	}
)

Enum value maps for Encoder.

View Source
var File_band_oracle_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_band_oracle_v1_oracle_proto protoreflect.FileDescriptor
View Source
var File_band_oracle_v1_query_proto protoreflect.FileDescriptor
View Source
var File_band_oracle_v1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "band.oracle.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "RequestData",
			Handler:    _Msg_RequestData_Handler,
		},
		{
			MethodName: "ReportData",
			Handler:    _Msg_ReportData_Handler,
		},
		{
			MethodName: "CreateDataSource",
			Handler:    _Msg_CreateDataSource_Handler,
		},
		{
			MethodName: "EditDataSource",
			Handler:    _Msg_EditDataSource_Handler,
		},
		{
			MethodName: "CreateOracleScript",
			Handler:    _Msg_CreateOracleScript_Handler,
		},
		{
			MethodName: "EditOracleScript",
			Handler:    _Msg_EditOracleScript_Handler,
		},
		{
			MethodName: "Activate",
			Handler:    _Msg_Activate_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "band/oracle/v1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "band.oracle.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Counts",
			Handler:    _Query_Counts_Handler,
		},
		{
			MethodName: "Data",
			Handler:    _Query_Data_Handler,
		},
		{
			MethodName: "DataSource",
			Handler:    _Query_DataSource_Handler,
		},
		{
			MethodName: "OracleScript",
			Handler:    _Query_OracleScript_Handler,
		},
		{
			MethodName: "Request",
			Handler:    _Query_Request_Handler,
		},
		{
			MethodName: "PendingRequests",
			Handler:    _Query_PendingRequests_Handler,
		},
		{
			MethodName: "Validator",
			Handler:    _Query_Validator_Handler,
		},
		{
			MethodName: "IsReporter",
			Handler:    _Query_IsReporter_Handler,
		},
		{
			MethodName: "Reporters",
			Handler:    _Query_Reporters_Handler,
		},
		{
			MethodName: "ActiveValidators",
			Handler:    _Query_ActiveValidators_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "RequestSearch",
			Handler:    _Query_RequestSearch_Handler,
		},
		{
			MethodName: "RequestPrice",
			Handler:    _Query_RequestPrice_Handler,
		},
		{
			MethodName: "RequestVerification",
			Handler:    _Query_RequestVerification_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "band/oracle/v1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type ActiveValidator

type ActiveValidator struct {

	// Address is a validator address
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// Power is an amount of token that the validator is holding
	Power uint64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
	// contains filtered or unexported fields
}

ActiveValidator is information of currently active validator

func (*ActiveValidator) Descriptor deprecated

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

Deprecated: Use ActiveValidator.ProtoReflect.Descriptor instead.

func (*ActiveValidator) GetAddress

func (x *ActiveValidator) GetAddress() string

func (*ActiveValidator) GetPower

func (x *ActiveValidator) GetPower() uint64

func (*ActiveValidator) ProtoMessage

func (*ActiveValidator) ProtoMessage()

func (*ActiveValidator) ProtoReflect

func (x *ActiveValidator) ProtoReflect() protoreflect.Message

func (*ActiveValidator) Reset

func (x *ActiveValidator) Reset()

func (*ActiveValidator) String

func (x *ActiveValidator) String() string

type DataSource

type DataSource struct {

	// Owner is an address of the account who own the data source
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// Name is data source name used for display
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Description is data source description used for display
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Filename is string of file name used as reference for locating
	// data source file stored in bandchain nodes
	Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"`
	// Treasury is the account address who receive data source fee from requester.
	Treasury string `protobuf:"bytes,5,opt,name=treasury,proto3" json:"treasury,omitempty"`
	// Fee is the data source fee per ask_count that data provider will receive
	// from requester.
	Fee []*v1beta1.Coin `protobuf:"bytes,6,rep,name=fee,proto3" json:"fee,omitempty"`
	// contains filtered or unexported fields
}

DataSource is the data structure for storing data sources in the storage.

func (*DataSource) Descriptor deprecated

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

Deprecated: Use DataSource.ProtoReflect.Descriptor instead.

func (*DataSource) GetDescription

func (x *DataSource) GetDescription() string

func (*DataSource) GetFee

func (x *DataSource) GetFee() []*v1beta1.Coin

func (*DataSource) GetFilename

func (x *DataSource) GetFilename() string

func (*DataSource) GetName

func (x *DataSource) GetName() string

func (*DataSource) GetOwner

func (x *DataSource) GetOwner() string

func (*DataSource) GetTreasury

func (x *DataSource) GetTreasury() string

func (*DataSource) ProtoMessage

func (*DataSource) ProtoMessage()

func (*DataSource) ProtoReflect

func (x *DataSource) ProtoReflect() protoreflect.Message

func (*DataSource) Reset

func (x *DataSource) Reset()

func (*DataSource) String

func (x *DataSource) String() string

type Encoder

type Encoder int32

Encoder is an enumerator that defines the mode of encoding message in tss module.

const (
	// ENCODER_UNSPECIFIED is for unspecified value
	Encoder_ENCODER_UNSPECIFIED Encoder = 0
	// ENCODER_PROTO is for proto encoding
	Encoder_ENCODER_PROTO Encoder = 1
	// ENCODER_FULL_ABI is for ABI encoding for full data
	Encoder_ENCODER_FULL_ABI Encoder = 2
	// ENCODER_PARTIAL_ABI is for ABI encoding for only important data
	Encoder_ENCODER_PARTIAL_ABI Encoder = 3
)

func (Encoder) Descriptor

func (Encoder) Descriptor() protoreflect.EnumDescriptor

func (Encoder) Enum

func (x Encoder) Enum() *Encoder

func (Encoder) EnumDescriptor deprecated

func (Encoder) EnumDescriptor() ([]byte, []int)

Deprecated: Use Encoder.Descriptor instead.

func (Encoder) Number

func (x Encoder) Number() protoreflect.EnumNumber

func (Encoder) String

func (x Encoder) String() string

func (Encoder) Type

func (Encoder) Type() protoreflect.EnumType

type GenesisState

type GenesisState struct {

	// Params defines all the parameters of the module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// DataSources are data sources to be installed during genesis phase.
	DataSources []*DataSource `protobuf:"bytes,2,rep,name=data_sources,json=dataSources,proto3" json:"data_sources,omitempty"`
	// OracleScripts are list of oracle scripts to be installed during genesis phase.
	OracleScripts []*OracleScript `protobuf:"bytes,3,rep,name=oracle_scripts,json=oracleScripts,proto3" json:"oracle_scripts,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the oracle module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetDataSources

func (x *GenesisState) GetDataSources() []*DataSource

func (*GenesisState) GetOracleScripts

func (x *GenesisState) GetOracleScripts() []*OracleScript

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type IBCChannel

type IBCChannel struct {

	// PortID is port ID used for sending response packet when request is
	// resolved.
	PortId string `protobuf:"bytes,1,opt,name=port_id,json=portId,proto3" json:"port_id,omitempty"`
	// ChannelID is channel ID used for sending response packet when request is
	// resolved.
	ChannelId string `protobuf:"bytes,2,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
	// contains filtered or unexported fields
}

IBCChannel is information of IBC protocol to allow communicating with other chain

func (*IBCChannel) Descriptor deprecated

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

Deprecated: Use IBCChannel.ProtoReflect.Descriptor instead.

func (*IBCChannel) GetChannelId

func (x *IBCChannel) GetChannelId() string

func (*IBCChannel) GetPortId

func (x *IBCChannel) GetPortId() string

func (*IBCChannel) ProtoMessage

func (*IBCChannel) ProtoMessage()

func (*IBCChannel) ProtoReflect

func (x *IBCChannel) ProtoReflect() protoreflect.Message

func (*IBCChannel) Reset

func (x *IBCChannel) Reset()

func (*IBCChannel) String

func (x *IBCChannel) String() string

type MsgActivate

type MsgActivate struct {

	// Validator is the validator address who sign this message and request to be
	// activated.
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// contains filtered or unexported fields
}

MsgEditOracleScript is a message for activating a validator to become an oracle provider. However, the activation can be revoked once the validator is unable to provide data to fulfill requests

func (*MsgActivate) Descriptor deprecated

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

Deprecated: Use MsgActivate.ProtoReflect.Descriptor instead.

func (*MsgActivate) GetValidator

func (x *MsgActivate) GetValidator() string

func (*MsgActivate) ProtoMessage

func (*MsgActivate) ProtoMessage()

func (*MsgActivate) ProtoReflect

func (x *MsgActivate) ProtoReflect() protoreflect.Message

func (*MsgActivate) Reset

func (x *MsgActivate) Reset()

func (*MsgActivate) String

func (x *MsgActivate) String() string

type MsgActivateResponse

type MsgActivateResponse struct {
	// contains filtered or unexported fields
}

MsgActivateResponse is response data for MsgActivate message

func (*MsgActivateResponse) Descriptor deprecated

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

Deprecated: Use MsgActivateResponse.ProtoReflect.Descriptor instead.

func (*MsgActivateResponse) ProtoMessage

func (*MsgActivateResponse) ProtoMessage()

func (*MsgActivateResponse) ProtoReflect

func (x *MsgActivateResponse) ProtoReflect() protoreflect.Message

func (*MsgActivateResponse) Reset

func (x *MsgActivateResponse) Reset()

func (*MsgActivateResponse) String

func (x *MsgActivateResponse) String() string

type MsgClient

type MsgClient interface {
	// RequestData defines a method for submitting a new request.
	RequestData(ctx context.Context, in *MsgRequestData, opts ...grpc.CallOption) (*MsgRequestDataResponse, error)
	// ReportData defines a method for reporting a data to resolve the request.
	ReportData(ctx context.Context, in *MsgReportData, opts ...grpc.CallOption) (*MsgReportDataResponse, error)
	// CreateDataSource defines a method for creating a new data source.
	CreateDataSource(ctx context.Context, in *MsgCreateDataSource, opts ...grpc.CallOption) (*MsgCreateDataSourceResponse, error)
	// EditDataSource defines a method for editing an existing data source.
	EditDataSource(ctx context.Context, in *MsgEditDataSource, opts ...grpc.CallOption) (*MsgEditDataSourceResponse, error)
	// CreateOracleScript defines a method for creating a new oracle script.
	CreateOracleScript(ctx context.Context, in *MsgCreateOracleScript, opts ...grpc.CallOption) (*MsgCreateOracleScriptResponse, error)
	// EditOracleScript defines a method for editing an existing oracle script.
	EditOracleScript(ctx context.Context, in *MsgEditOracleScript, opts ...grpc.CallOption) (*MsgEditOracleScriptResponse, error)
	// Activate defines a method for applying to be an oracle validator.
	Activate(ctx context.Context, in *MsgActivate, opts ...grpc.CallOption) (*MsgActivateResponse, error)
	// UpdateParams defines a governance operation for updating the x/oracle module
	// parameters.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgCreateDataSource

type MsgCreateDataSource struct {

	// Name is the name of this data source used for display (optional).
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Description is the description of this data source used for display
	// (optional).
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Executable is the content of executable script or binary file to be run by
	// validators upon execution.
	Executable []byte `protobuf:"bytes,3,opt,name=executable,proto3" json:"executable,omitempty"`
	// Fee is the data source fee per ask_count that data provider will receive
	// from requester.
	Fee []*v1beta1.Coin `protobuf:"bytes,4,rep,name=fee,proto3" json:"fee,omitempty"`
	// Treasury is the account address who receive data source fee from requester.
	Treasury string `protobuf:"bytes,5,opt,name=treasury,proto3" json:"treasury,omitempty"`
	// Owner is the account address who is allowed to make further changes to the
	// data source.
	Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"`
	// Sender is the signer of this message.
	Sender string `protobuf:"bytes,7,opt,name=sender,proto3" json:"sender,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateDataSource is a message for creating a new data source.

func (*MsgCreateDataSource) Descriptor deprecated

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

Deprecated: Use MsgCreateDataSource.ProtoReflect.Descriptor instead.

func (*MsgCreateDataSource) GetDescription

func (x *MsgCreateDataSource) GetDescription() string

func (*MsgCreateDataSource) GetExecutable

func (x *MsgCreateDataSource) GetExecutable() []byte

func (*MsgCreateDataSource) GetFee

func (x *MsgCreateDataSource) GetFee() []*v1beta1.Coin

func (*MsgCreateDataSource) GetName

func (x *MsgCreateDataSource) GetName() string

func (*MsgCreateDataSource) GetOwner

func (x *MsgCreateDataSource) GetOwner() string

func (*MsgCreateDataSource) GetSender

func (x *MsgCreateDataSource) GetSender() string

func (*MsgCreateDataSource) GetTreasury

func (x *MsgCreateDataSource) GetTreasury() string

func (*MsgCreateDataSource) ProtoMessage

func (*MsgCreateDataSource) ProtoMessage()

func (*MsgCreateDataSource) ProtoReflect

func (x *MsgCreateDataSource) ProtoReflect() protoreflect.Message

func (*MsgCreateDataSource) Reset

func (x *MsgCreateDataSource) Reset()

func (*MsgCreateDataSource) String

func (x *MsgCreateDataSource) String() string

type MsgCreateDataSourceResponse

type MsgCreateDataSourceResponse struct {
	// contains filtered or unexported fields
}

MsgCreateDataSourceResponse is response data for MsgCreateDataSource message

func (*MsgCreateDataSourceResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateDataSourceResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateDataSourceResponse) ProtoMessage

func (*MsgCreateDataSourceResponse) ProtoMessage()

func (*MsgCreateDataSourceResponse) ProtoReflect

func (*MsgCreateDataSourceResponse) Reset

func (x *MsgCreateDataSourceResponse) Reset()

func (*MsgCreateDataSourceResponse) String

func (x *MsgCreateDataSourceResponse) String() string

type MsgCreateOracleScript

type MsgCreateOracleScript struct {

	// Name is the name of this oracle script used for display (optional).
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// Description is the description of this oracle script used for display
	// (optional).
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	// Schema is the OBI schema of this oracle script (optional).
	Schema string `protobuf:"bytes,3,opt,name=schema,proto3" json:"schema,omitempty"`
	// SourceCodeURL is the absolute URI to the script's source code (optional).
	SourceCodeUrl string `protobuf:"bytes,4,opt,name=source_code_url,json=sourceCodeUrl,proto3" json:"source_code_url,omitempty"`
	// Code is the oracle WebAssembly binary code. Can be raw of gzip compressed.
	Code []byte `protobuf:"bytes,5,opt,name=code,proto3" json:"code,omitempty"`
	// Owner is the address who is allowed to make further changes to the oracle
	// script.
	Owner string `protobuf:"bytes,6,opt,name=owner,proto3" json:"owner,omitempty"`
	// Sender is the signer of this message.
	Sender string `protobuf:"bytes,7,opt,name=sender,proto3" json:"sender,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateOracleScript is a message for creating an oracle script.

func (*MsgCreateOracleScript) Descriptor deprecated

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

Deprecated: Use MsgCreateOracleScript.ProtoReflect.Descriptor instead.

func (*MsgCreateOracleScript) GetCode

func (x *MsgCreateOracleScript) GetCode() []byte

func (*MsgCreateOracleScript) GetDescription

func (x *MsgCreateOracleScript) GetDescription() string

func (*MsgCreateOracleScript) GetName

func (x *MsgCreateOracleScript) GetName() string

func (*MsgCreateOracleScript) GetOwner

func (x *MsgCreateOracleScript) GetOwner() string

func (*MsgCreateOracleScript) GetSchema

func (x *MsgCreateOracleScript) GetSchema() string

func (*MsgCreateOracleScript) GetSender

func (x *MsgCreateOracleScript) GetSender() string

func (*MsgCreateOracleScript) GetSourceCodeUrl

func (x *MsgCreateOracleScript) GetSourceCodeUrl() string

func (*MsgCreateOracleScript) ProtoMessage

func (*MsgCreateOracleScript) ProtoMessage()

func (*MsgCreateOracleScript) ProtoReflect

func (x *MsgCreateOracleScript) ProtoReflect() protoreflect.Message

func (*MsgCreateOracleScript) Reset

func (x *MsgCreateOracleScript) Reset()

func (*MsgCreateOracleScript) String

func (x *MsgCreateOracleScript) String() string

type MsgCreateOracleScriptResponse

type MsgCreateOracleScriptResponse struct {
	// contains filtered or unexported fields
}

MsgCreateOracleScriptResponse is response data for MsgCreateOracleScript message

func (*MsgCreateOracleScriptResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateOracleScriptResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateOracleScriptResponse) ProtoMessage

func (*MsgCreateOracleScriptResponse) ProtoMessage()

func (*MsgCreateOracleScriptResponse) ProtoReflect

func (*MsgCreateOracleScriptResponse) Reset

func (x *MsgCreateOracleScriptResponse) Reset()

func (*MsgCreateOracleScriptResponse) String

type MsgEditDataSource

type MsgEditDataSource struct {

	// DataSourceID is the unique identifier of the data source to be edited.
	DataSourceId uint64 `protobuf:"varint,1,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	// Name is the name of this data source used for display (optional).
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Description is the description of this data source used for display
	// (optional).
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Executable is the executable script or binary to be run by validators upon
	// execution.
	Executable []byte `protobuf:"bytes,4,opt,name=executable,proto3" json:"executable,omitempty"`
	// Fee is the data source fee per ask_count that data provider will receive
	// from requester.
	Fee []*v1beta1.Coin `protobuf:"bytes,5,rep,name=fee,proto3" json:"fee,omitempty"`
	// Treasury is the address who receive data source fee from requester.
	Treasury string `protobuf:"bytes,6,opt,name=treasury,proto3" json:"treasury,omitempty"`
	// Owner is the address who is allowed to make further changes to the data
	// source.
	Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`
	// Sender is the signer of this message. Must be the current data source's
	// owner.
	Sender string `protobuf:"bytes,8,opt,name=sender,proto3" json:"sender,omitempty"`
	// contains filtered or unexported fields
}

MsgEditDataSource is a message for editing an existing data source.

func (*MsgEditDataSource) Descriptor deprecated

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

Deprecated: Use MsgEditDataSource.ProtoReflect.Descriptor instead.

func (*MsgEditDataSource) GetDataSourceId

func (x *MsgEditDataSource) GetDataSourceId() uint64

func (*MsgEditDataSource) GetDescription

func (x *MsgEditDataSource) GetDescription() string

func (*MsgEditDataSource) GetExecutable

func (x *MsgEditDataSource) GetExecutable() []byte

func (*MsgEditDataSource) GetFee

func (x *MsgEditDataSource) GetFee() []*v1beta1.Coin

func (*MsgEditDataSource) GetName

func (x *MsgEditDataSource) GetName() string

func (*MsgEditDataSource) GetOwner

func (x *MsgEditDataSource) GetOwner() string

func (*MsgEditDataSource) GetSender

func (x *MsgEditDataSource) GetSender() string

func (*MsgEditDataSource) GetTreasury

func (x *MsgEditDataSource) GetTreasury() string

func (*MsgEditDataSource) ProtoMessage

func (*MsgEditDataSource) ProtoMessage()

func (*MsgEditDataSource) ProtoReflect

func (x *MsgEditDataSource) ProtoReflect() protoreflect.Message

func (*MsgEditDataSource) Reset

func (x *MsgEditDataSource) Reset()

func (*MsgEditDataSource) String

func (x *MsgEditDataSource) String() string

type MsgEditDataSourceResponse

type MsgEditDataSourceResponse struct {
	// contains filtered or unexported fields
}

MsgEditDataSourceResponse is response data for MsgEditDataSource message

func (*MsgEditDataSourceResponse) Descriptor deprecated

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

Deprecated: Use MsgEditDataSourceResponse.ProtoReflect.Descriptor instead.

func (*MsgEditDataSourceResponse) ProtoMessage

func (*MsgEditDataSourceResponse) ProtoMessage()

func (*MsgEditDataSourceResponse) ProtoReflect

func (*MsgEditDataSourceResponse) Reset

func (x *MsgEditDataSourceResponse) Reset()

func (*MsgEditDataSourceResponse) String

func (x *MsgEditDataSourceResponse) String() string

type MsgEditOracleScript

type MsgEditOracleScript struct {

	// OracleScriptID is the unique identifier of the oracle script to be edited.
	OracleScriptId uint64 `protobuf:"varint,1,opt,name=oracle_script_id,json=oracleScriptId,proto3" json:"oracle_script_id,omitempty"`
	// Name is the name of this oracle script used for display (optional).
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Description is the description of this oracle script used for display
	// (optional).
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Schema is the OBI schema of this oracle script (optional).
	Schema string `protobuf:"bytes,4,opt,name=schema,proto3" json:"schema,omitempty"`
	// SourceCodeURL is the absolute URI to the script's source code (optional).
	SourceCodeUrl string `protobuf:"bytes,5,opt,name=source_code_url,json=sourceCodeUrl,proto3" json:"source_code_url,omitempty"`
	// Code is the oracle WebAssembly binary code. Can be raw of gzip compressed.
	Code []byte `protobuf:"bytes,6,opt,name=code,proto3" json:"code,omitempty"`
	// Owner is an account address who is allowed to make further changes to the
	// oracle script.
	Owner string `protobuf:"bytes,7,opt,name=owner,proto3" json:"owner,omitempty"`
	// Sender is an account address who sign this message. Must be the current
	// oracle script's owner.
	Sender string `protobuf:"bytes,8,opt,name=sender,proto3" json:"sender,omitempty"`
	// contains filtered or unexported fields
}

MsgEditOracleScript is a message for editing an existing oracle script.

func (*MsgEditOracleScript) Descriptor deprecated

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

Deprecated: Use MsgEditOracleScript.ProtoReflect.Descriptor instead.

func (*MsgEditOracleScript) GetCode

func (x *MsgEditOracleScript) GetCode() []byte

func (*MsgEditOracleScript) GetDescription

func (x *MsgEditOracleScript) GetDescription() string

func (*MsgEditOracleScript) GetName

func (x *MsgEditOracleScript) GetName() string

func (*MsgEditOracleScript) GetOracleScriptId

func (x *MsgEditOracleScript) GetOracleScriptId() uint64

func (*MsgEditOracleScript) GetOwner

func (x *MsgEditOracleScript) GetOwner() string

func (*MsgEditOracleScript) GetSchema

func (x *MsgEditOracleScript) GetSchema() string

func (*MsgEditOracleScript) GetSender

func (x *MsgEditOracleScript) GetSender() string

func (*MsgEditOracleScript) GetSourceCodeUrl

func (x *MsgEditOracleScript) GetSourceCodeUrl() string

func (*MsgEditOracleScript) ProtoMessage

func (*MsgEditOracleScript) ProtoMessage()

func (*MsgEditOracleScript) ProtoReflect

func (x *MsgEditOracleScript) ProtoReflect() protoreflect.Message

func (*MsgEditOracleScript) Reset

func (x *MsgEditOracleScript) Reset()

func (*MsgEditOracleScript) String

func (x *MsgEditOracleScript) String() string

type MsgEditOracleScriptResponse

type MsgEditOracleScriptResponse struct {
	// contains filtered or unexported fields
}

MsgEditOracleScriptResponse is response data for MsgEditOracleScript message

func (*MsgEditOracleScriptResponse) Descriptor deprecated

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

Deprecated: Use MsgEditOracleScriptResponse.ProtoReflect.Descriptor instead.

func (*MsgEditOracleScriptResponse) ProtoMessage

func (*MsgEditOracleScriptResponse) ProtoMessage()

func (*MsgEditOracleScriptResponse) ProtoReflect

func (*MsgEditOracleScriptResponse) Reset

func (x *MsgEditOracleScriptResponse) Reset()

func (*MsgEditOracleScriptResponse) String

func (x *MsgEditOracleScriptResponse) String() string

type MsgReportData

type MsgReportData struct {

	// RequestID is the identifier of the request to be reported to.
	RequestId uint64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// RawReports is the list of report information provided by data sources
	// identified by external ID
	RawReports []*RawReport `protobuf:"bytes,2,rep,name=raw_reports,json=rawReports,proto3" json:"raw_reports,omitempty"`
	// Validator is the address of the validator that owns this report.
	Validator string `protobuf:"bytes,3,opt,name=validator,proto3" json:"validator,omitempty"`
	// contains filtered or unexported fields
}

MsgReportData is a message for reporting to a data request by a validator.

func (*MsgReportData) Descriptor deprecated

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

Deprecated: Use MsgReportData.ProtoReflect.Descriptor instead.

func (*MsgReportData) GetRawReports

func (x *MsgReportData) GetRawReports() []*RawReport

func (*MsgReportData) GetRequestId

func (x *MsgReportData) GetRequestId() uint64

func (*MsgReportData) GetValidator

func (x *MsgReportData) GetValidator() string

func (*MsgReportData) ProtoMessage

func (*MsgReportData) ProtoMessage()

func (*MsgReportData) ProtoReflect

func (x *MsgReportData) ProtoReflect() protoreflect.Message

func (*MsgReportData) Reset

func (x *MsgReportData) Reset()

func (*MsgReportData) String

func (x *MsgReportData) String() string

type MsgReportDataResponse

type MsgReportDataResponse struct {
	// contains filtered or unexported fields
}

MsgReportDataResponse is response data for MsgReportData message

func (*MsgReportDataResponse) Descriptor deprecated

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

Deprecated: Use MsgReportDataResponse.ProtoReflect.Descriptor instead.

func (*MsgReportDataResponse) ProtoMessage

func (*MsgReportDataResponse) ProtoMessage()

func (*MsgReportDataResponse) ProtoReflect

func (x *MsgReportDataResponse) ProtoReflect() protoreflect.Message

func (*MsgReportDataResponse) Reset

func (x *MsgReportDataResponse) Reset()

func (*MsgReportDataResponse) String

func (x *MsgReportDataResponse) String() string

type MsgRequestData

type MsgRequestData struct {

	// OracleScriptID is the identifier of the oracle script to be called.
	OracleScriptId uint64 `protobuf:"varint,1,opt,name=oracle_script_id,json=oracleScriptId,proto3" json:"oracle_script_id,omitempty"`
	// Calldata is the OBI-encoded call parameters for the oracle script.
	Calldata []byte `protobuf:"bytes,2,opt,name=calldata,proto3" json:"calldata,omitempty"`
	// AskCount is the number of validators to perform the oracle task.
	AskCount uint64 `protobuf:"varint,3,opt,name=ask_count,json=askCount,proto3" json:"ask_count,omitempty"`
	// MinCount is the minimum number of validators sufficient to resolve the
	// oracle tasks.
	MinCount uint64 `protobuf:"varint,4,opt,name=min_count,json=minCount,proto3" json:"min_count,omitempty"`
	// ClientID is the client-provided unique identifier to track the request.
	ClientId string `protobuf:"bytes,5,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// FeeLimit is the maximum tokens that will be paid to all data source
	// providers.
	FeeLimit []*v1beta1.Coin `protobuf:"bytes,6,rep,name=fee_limit,json=feeLimit,proto3" json:"fee_limit,omitempty"`
	// PrepareGas is amount of gas to pay to prepare raw requests
	PrepareGas uint64 `protobuf:"varint,7,opt,name=prepare_gas,json=prepareGas,proto3" json:"prepare_gas,omitempty"`
	// ExecuteGas is amount of gas to reserve for executing
	ExecuteGas uint64 `protobuf:"varint,8,opt,name=execute_gas,json=executeGas,proto3" json:"execute_gas,omitempty"`
	// Sender is an account address of message sender.
	Sender string `protobuf:"bytes,9,opt,name=sender,proto3" json:"sender,omitempty"`
	// TSSEncoder is the mode of encoding oracle result signature order.
	TssEncoder Encoder `protobuf:"varint,10,opt,name=tss_encoder,json=tssEncoder,proto3,enum=band.oracle.v1.Encoder" json:"tss_encoder,omitempty"`
	// contains filtered or unexported fields
}

MsgRequestData is a message for sending a data oracle request.

func (*MsgRequestData) Descriptor deprecated

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

Deprecated: Use MsgRequestData.ProtoReflect.Descriptor instead.

func (*MsgRequestData) GetAskCount

func (x *MsgRequestData) GetAskCount() uint64

func (*MsgRequestData) GetCalldata

func (x *MsgRequestData) GetCalldata() []byte

func (*MsgRequestData) GetClientId

func (x *MsgRequestData) GetClientId() string

func (*MsgRequestData) GetExecuteGas

func (x *MsgRequestData) GetExecuteGas() uint64

func (*MsgRequestData) GetFeeLimit

func (x *MsgRequestData) GetFeeLimit() []*v1beta1.Coin

func (*MsgRequestData) GetMinCount

func (x *MsgRequestData) GetMinCount() uint64

func (*MsgRequestData) GetOracleScriptId

func (x *MsgRequestData) GetOracleScriptId() uint64

func (*MsgRequestData) GetPrepareGas

func (x *MsgRequestData) GetPrepareGas() uint64

func (*MsgRequestData) GetSender

func (x *MsgRequestData) GetSender() string

func (*MsgRequestData) GetTssEncoder

func (x *MsgRequestData) GetTssEncoder() Encoder

func (*MsgRequestData) ProtoMessage

func (*MsgRequestData) ProtoMessage()

func (*MsgRequestData) ProtoReflect

func (x *MsgRequestData) ProtoReflect() protoreflect.Message

func (*MsgRequestData) Reset

func (x *MsgRequestData) Reset()

func (*MsgRequestData) String

func (x *MsgRequestData) String() string

type MsgRequestDataResponse

type MsgRequestDataResponse struct {
	// contains filtered or unexported fields
}

MsgRequestDataResponse is response data for MsgRequestData message

func (*MsgRequestDataResponse) Descriptor deprecated

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

Deprecated: Use MsgRequestDataResponse.ProtoReflect.Descriptor instead.

func (*MsgRequestDataResponse) ProtoMessage

func (*MsgRequestDataResponse) ProtoMessage()

func (*MsgRequestDataResponse) ProtoReflect

func (x *MsgRequestDataResponse) ProtoReflect() protoreflect.Message

func (*MsgRequestDataResponse) Reset

func (x *MsgRequestDataResponse) Reset()

func (*MsgRequestDataResponse) String

func (x *MsgRequestDataResponse) String() string

type MsgServer

type MsgServer interface {
	// RequestData defines a method for submitting a new request.
	RequestData(context.Context, *MsgRequestData) (*MsgRequestDataResponse, error)
	// ReportData defines a method for reporting a data to resolve the request.
	ReportData(context.Context, *MsgReportData) (*MsgReportDataResponse, error)
	// CreateDataSource defines a method for creating a new data source.
	CreateDataSource(context.Context, *MsgCreateDataSource) (*MsgCreateDataSourceResponse, error)
	// EditDataSource defines a method for editing an existing data source.
	EditDataSource(context.Context, *MsgEditDataSource) (*MsgEditDataSourceResponse, error)
	// CreateOracleScript defines a method for creating a new oracle script.
	CreateOracleScript(context.Context, *MsgCreateOracleScript) (*MsgCreateOracleScriptResponse, error)
	// EditOracleScript defines a method for editing an existing oracle script.
	EditOracleScript(context.Context, *MsgEditOracleScript) (*MsgEditOracleScriptResponse, error)
	// Activate defines a method for applying to be an oracle validator.
	Activate(context.Context, *MsgActivate) (*MsgActivateResponse, error)
	// UpdateParams defines a governance operation for updating the x/oracle module
	// parameters.
	//
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/oracle parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type.

Since: cosmos-sdk 0.47

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: cosmos-sdk 0.47

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type OracleRequestPacketAcknowledgement

type OracleRequestPacketAcknowledgement struct {

	// RequestID is BandChain's unique identifier for this oracle request.
	RequestId uint64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

OracleRequestPacketAcknowledgement encodes an oracle request acknowledgement send back to requester chain.

func (*OracleRequestPacketAcknowledgement) Descriptor deprecated

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

Deprecated: Use OracleRequestPacketAcknowledgement.ProtoReflect.Descriptor instead.

func (*OracleRequestPacketAcknowledgement) GetRequestId

func (x *OracleRequestPacketAcknowledgement) GetRequestId() uint64

func (*OracleRequestPacketAcknowledgement) ProtoMessage

func (*OracleRequestPacketAcknowledgement) ProtoMessage()

func (*OracleRequestPacketAcknowledgement) ProtoReflect

func (*OracleRequestPacketAcknowledgement) Reset

func (*OracleRequestPacketAcknowledgement) String

type OracleRequestPacketData

type OracleRequestPacketData struct {

	// ClientID is the unique identifier of this oracle request, as specified by
	// the client. This same unique ID will be sent back to the requester with the
	// oracle response.
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// OracleScriptID is the unique identifier of the oracle script to be
	// executed.
	OracleScriptId uint64 `protobuf:"varint,2,opt,name=oracle_script_id,json=oracleScriptId,proto3" json:"oracle_script_id,omitempty"`
	// Calldata is the OBI-encoded calldata bytes available for oracle executor to
	// read.
	Calldata []byte `protobuf:"bytes,3,opt,name=calldata,proto3" json:"calldata,omitempty"`
	// AskCount is the number of validators that are requested to respond to this
	// oracle request. Higher value means more security, at a higher gas cost.
	AskCount uint64 `protobuf:"varint,4,opt,name=ask_count,json=askCount,proto3" json:"ask_count,omitempty"`
	// MinCount is the minimum number of validators necessary for the request to
	// proceed to the execution phase. Higher value means more security, at the
	// cost of liveness.
	MinCount uint64 `protobuf:"varint,5,opt,name=min_count,json=minCount,proto3" json:"min_count,omitempty"`
	// FeeLimit is the maximum tokens that will be paid to all data source
	// providers.
	FeeLimit []*v1beta1.Coin `protobuf:"bytes,6,rep,name=fee_limit,json=feeLimit,proto3" json:"fee_limit,omitempty"`
	// PrepareGas is amount of gas to pay to prepare raw requests
	PrepareGas uint64 `protobuf:"varint,7,opt,name=prepare_gas,json=prepareGas,proto3" json:"prepare_gas,omitempty"`
	// ExecuteGas is amount of gas to reserve for executing
	ExecuteGas uint64 `protobuf:"varint,8,opt,name=execute_gas,json=executeGas,proto3" json:"execute_gas,omitempty"`
	// TSSEncoder is the mode of encoding oracle result signature order.
	TssEncoder Encoder `protobuf:"varint,9,opt,name=tss_encoder,json=tssEncoder,proto3,enum=band.oracle.v1.Encoder" json:"tss_encoder,omitempty"`
	// contains filtered or unexported fields
}

OracleRequestPacketData encodes an oracle request sent from other blockchains to BandChain.

func (*OracleRequestPacketData) Descriptor deprecated

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

Deprecated: Use OracleRequestPacketData.ProtoReflect.Descriptor instead.

func (*OracleRequestPacketData) GetAskCount

func (x *OracleRequestPacketData) GetAskCount() uint64

func (*OracleRequestPacketData) GetCalldata

func (x *OracleRequestPacketData) GetCalldata() []byte

func (*OracleRequestPacketData) GetClientId

func (x *OracleRequestPacketData) GetClientId() string

func (*OracleRequestPacketData) GetExecuteGas

func (x *OracleRequestPacketData) GetExecuteGas() uint64

func (*OracleRequestPacketData) GetFeeLimit

func (x *OracleRequestPacketData) GetFeeLimit() []*v1beta1.Coin

func (*OracleRequestPacketData) GetMinCount

func (x *OracleRequestPacketData) GetMinCount() uint64

func (*OracleRequestPacketData) GetOracleScriptId

func (x *OracleRequestPacketData) GetOracleScriptId() uint64

func (*OracleRequestPacketData) GetPrepareGas

func (x *OracleRequestPacketData) GetPrepareGas() uint64

func (*OracleRequestPacketData) GetTssEncoder

func (x *OracleRequestPacketData) GetTssEncoder() Encoder

func (*OracleRequestPacketData) ProtoMessage

func (*OracleRequestPacketData) ProtoMessage()

func (*OracleRequestPacketData) ProtoReflect

func (x *OracleRequestPacketData) ProtoReflect() protoreflect.Message

func (*OracleRequestPacketData) Reset

func (x *OracleRequestPacketData) Reset()

func (*OracleRequestPacketData) String

func (x *OracleRequestPacketData) String() string

type OracleResponsePacketData

type OracleResponsePacketData struct {

	// ClientID is the unique identifier matched with that of the oracle request
	// packet.
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// RequestID is BandChain's unique identifier for this oracle request.
	RequestId uint64 `protobuf:"varint,2,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// AnsCount is the number of validators among to the asked validators that
	// actually responded to this oracle request prior to this oracle request
	// being resolved.
	AnsCount uint64 `protobuf:"varint,3,opt,name=ans_count,json=ansCount,proto3" json:"ans_count,omitempty"`
	// RequestTime is the UNIX epoch time at which the request was sent to
	// BandChain.
	RequestTime int64 `protobuf:"varint,4,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"`
	// ResolveTime is the UNIX epoch time at which the request was resolved to the
	// final result.
	ResolveTime int64 `protobuf:"varint,5,opt,name=resolve_time,json=resolveTime,proto3" json:"resolve_time,omitempty"`
	// ResolveStatus is the status of this oracle request, which can be OK,
	// FAILURE, or EXPIRED.
	ResolveStatus ResolveStatus `` /* 135-byte string literal not displayed */
	// Result is the final aggregated value encoded in OBI format. Only available
	// if status if OK.
	Result []byte `protobuf:"bytes,7,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

OracleResponsePacketData encodes an oracle response from BandChain to the requester.

func (*OracleResponsePacketData) Descriptor deprecated

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

Deprecated: Use OracleResponsePacketData.ProtoReflect.Descriptor instead.

func (*OracleResponsePacketData) GetAnsCount

func (x *OracleResponsePacketData) GetAnsCount() uint64

func (*OracleResponsePacketData) GetClientId

func (x *OracleResponsePacketData) GetClientId() string

func (*OracleResponsePacketData) GetRequestId

func (x *OracleResponsePacketData) GetRequestId() uint64

func (*OracleResponsePacketData) GetRequestTime

func (x *OracleResponsePacketData) GetRequestTime() int64

func (*OracleResponsePacketData) GetResolveStatus

func (x *OracleResponsePacketData) GetResolveStatus() ResolveStatus

func (*OracleResponsePacketData) GetResolveTime

func (x *OracleResponsePacketData) GetResolveTime() int64

func (*OracleResponsePacketData) GetResult

func (x *OracleResponsePacketData) GetResult() []byte

func (*OracleResponsePacketData) ProtoMessage

func (*OracleResponsePacketData) ProtoMessage()

func (*OracleResponsePacketData) ProtoReflect

func (x *OracleResponsePacketData) ProtoReflect() protoreflect.Message

func (*OracleResponsePacketData) Reset

func (x *OracleResponsePacketData) Reset()

func (*OracleResponsePacketData) String

func (x *OracleResponsePacketData) String() string

type OracleResultSignatureOrder

type OracleResultSignatureOrder struct {

	// RequestID is oracle's unique identifier for this oracle request.
	RequestId uint64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// encoder is the mode of encoding oracle result signature order.
	Encoder Encoder `protobuf:"varint,3,opt,name=encoder,proto3,enum=band.oracle.v1.Encoder" json:"encoder,omitempty"`
	// contains filtered or unexported fields
}

OracleResultSignatureOrder defines a request id to request bandtss signature from the oracle result.

func (*OracleResultSignatureOrder) Descriptor deprecated

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

Deprecated: Use OracleResultSignatureOrder.ProtoReflect.Descriptor instead.

func (*OracleResultSignatureOrder) GetEncoder

func (x *OracleResultSignatureOrder) GetEncoder() Encoder

func (*OracleResultSignatureOrder) GetRequestId

func (x *OracleResultSignatureOrder) GetRequestId() uint64

func (*OracleResultSignatureOrder) ProtoMessage

func (*OracleResultSignatureOrder) ProtoMessage()

func (*OracleResultSignatureOrder) ProtoReflect

func (*OracleResultSignatureOrder) Reset

func (x *OracleResultSignatureOrder) Reset()

func (*OracleResultSignatureOrder) String

func (x *OracleResultSignatureOrder) String() string

type OracleScript

type OracleScript struct {

	// Owner is an address of the account who own the oracle script
	Owner string `protobuf:"bytes,1,opt,name=owner,proto3" json:"owner,omitempty"`
	// Name is oracle script name used for display
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	// Description is oracle script description used for display
	Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
	// Filename is string of file name used as reference for locating
	// compiled oracle script WASM file stored in bandchain nodes
	Filename string `protobuf:"bytes,4,opt,name=filename,proto3" json:"filename,omitempty"`
	// Schema is the schema of the oracle script input/output
	// which is formatted in OBI format e.g.
	// "{symbol:string,multiplier:u64}/{px:u64}"
	Schema string `protobuf:"bytes,5,opt,name=schema,proto3" json:"schema,omitempty"`
	// SourceCodeURL is the URL of oracle script's source code.
	// It is recommendded to store source code on IPFS and get its URL to preserve
	// decentralization.
	SourceCodeUrl string `protobuf:"bytes,6,opt,name=source_code_url,json=sourceCodeUrl,proto3" json:"source_code_url,omitempty"`
	// contains filtered or unexported fields
}

OracleScript is the data structure for storing oracle scripts in the storage.

func (*OracleScript) Descriptor deprecated

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

Deprecated: Use OracleScript.ProtoReflect.Descriptor instead.

func (*OracleScript) GetDescription

func (x *OracleScript) GetDescription() string

func (*OracleScript) GetFilename

func (x *OracleScript) GetFilename() string

func (*OracleScript) GetName

func (x *OracleScript) GetName() string

func (*OracleScript) GetOwner

func (x *OracleScript) GetOwner() string

func (*OracleScript) GetSchema

func (x *OracleScript) GetSchema() string

func (*OracleScript) GetSourceCodeUrl

func (x *OracleScript) GetSourceCodeUrl() string

func (*OracleScript) ProtoMessage

func (*OracleScript) ProtoMessage()

func (*OracleScript) ProtoReflect

func (x *OracleScript) ProtoReflect() protoreflect.Message

func (*OracleScript) Reset

func (x *OracleScript) Reset()

func (*OracleScript) String

func (x *OracleScript) String() string

type Params

type Params struct {

	// MaxRawRequestCount is the maximum number of data source raw requests a
	// request can make.
	MaxRawRequestCount uint64 `protobuf:"varint,1,opt,name=max_raw_request_count,json=maxRawRequestCount,proto3" json:"max_raw_request_count,omitempty"`
	// MaxAskCount is the maximum number of validators a request can target.
	MaxAskCount uint64 `protobuf:"varint,2,opt,name=max_ask_count,json=maxAskCount,proto3" json:"max_ask_count,omitempty"`
	// MaxCalldataSize is the maximum size limit of calldata (bytes) in a request.
	MaxCalldataSize uint64 `protobuf:"varint,3,opt,name=max_calldata_size,json=maxCalldataSize,proto3" json:"max_calldata_size,omitempty"`
	// MaxReportDataSize is the maximum size limit of report data (bytes) in a
	// report.
	MaxReportDataSize uint64 `protobuf:"varint,4,opt,name=max_report_data_size,json=maxReportDataSize,proto3" json:"max_report_data_size,omitempty"`
	// ExpirationBlockCount is the number of blocks a request stays valid before
	// it gets expired due to insufficient reports.
	ExpirationBlockCount uint64 `protobuf:"varint,5,opt,name=expiration_block_count,json=expirationBlockCount,proto3" json:"expiration_block_count,omitempty"`
	// BaseOwasmGas is the base amount of Cosmos-SDK gas charged for owasm
	// execution.
	BaseOwasmGas uint64 `protobuf:"varint,6,opt,name=base_owasm_gas,json=baseOwasmGas,proto3" json:"base_owasm_gas,omitempty"`
	// PerValidatorRequestGas is the amount of Cosmos-SDK gas charged per
	// requested validator.
	PerValidatorRequestGas uint64 `` /* 132-byte string literal not displayed */
	// SamplingTryCount the number of validator sampling tries to pick the highest
	// voting power subset of validators to perform an oracle task.
	SamplingTryCount uint64 `protobuf:"varint,8,opt,name=sampling_try_count,json=samplingTryCount,proto3" json:"sampling_try_count,omitempty"`
	// OracleRewardPercentage is the percentage of block rewards allocated to
	// active oracle validators.
	OracleRewardPercentage uint64 `` /* 130-byte string literal not displayed */
	// InactivePenaltyDuration is the duration period where a validator cannot
	// activate back after missing an oracle report.
	InactivePenaltyDuration uint64 `` /* 134-byte string literal not displayed */
	// IBCRequestEnabled is a flag indicating whether sending oracle request via
	// IBC is allowed
	IbcRequestEnabled bool `protobuf:"varint,11,opt,name=ibc_request_enabled,json=ibcRequestEnabled,proto3" json:"ibc_request_enabled,omitempty"`
	// contains filtered or unexported fields
}

Params is the data structure that keeps the parameters of the oracle module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetBaseOwasmGas

func (x *Params) GetBaseOwasmGas() uint64

func (*Params) GetExpirationBlockCount

func (x *Params) GetExpirationBlockCount() uint64

func (*Params) GetIbcRequestEnabled

func (x *Params) GetIbcRequestEnabled() bool

func (*Params) GetInactivePenaltyDuration

func (x *Params) GetInactivePenaltyDuration() uint64

func (*Params) GetMaxAskCount

func (x *Params) GetMaxAskCount() uint64

func (*Params) GetMaxCalldataSize

func (x *Params) GetMaxCalldataSize() uint64

func (*Params) GetMaxRawRequestCount

func (x *Params) GetMaxRawRequestCount() uint64

func (*Params) GetMaxReportDataSize

func (x *Params) GetMaxReportDataSize() uint64

func (*Params) GetOracleRewardPercentage

func (x *Params) GetOracleRewardPercentage() uint64

func (*Params) GetPerValidatorRequestGas

func (x *Params) GetPerValidatorRequestGas() uint64

func (*Params) GetSamplingTryCount

func (x *Params) GetSamplingTryCount() uint64

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type PendingResolveList

type PendingResolveList struct {

	// RequestIDs is a list of request IDs that are waiting to be resolved
	RequestIds []uint64 `protobuf:"varint,1,rep,packed,name=request_ids,json=requestIds,proto3" json:"request_ids,omitempty"`
	// contains filtered or unexported fields
}

PendingResolveList is a list of requests that are waiting to be resolved

func (*PendingResolveList) Descriptor deprecated

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

Deprecated: Use PendingResolveList.ProtoReflect.Descriptor instead.

func (*PendingResolveList) GetRequestIds

func (x *PendingResolveList) GetRequestIds() []uint64

func (*PendingResolveList) ProtoMessage

func (*PendingResolveList) ProtoMessage()

func (*PendingResolveList) ProtoReflect

func (x *PendingResolveList) ProtoReflect() protoreflect.Message

func (*PendingResolveList) Reset

func (x *PendingResolveList) Reset()

func (*PendingResolveList) String

func (x *PendingResolveList) String() string

type PriceResult

type PriceResult struct {

	// Symbol is unit of data indicating what the data is. It is price currencies
	// for this case.
	Symbol string `protobuf:"bytes,1,opt,name=symbol,proto3" json:"symbol,omitempty"`
	// Multiplier is a number used for left-shifting value to eliminate decimal
	// digits
	Multiplier uint64 `protobuf:"varint,2,opt,name=multiplier,proto3" json:"multiplier,omitempty"`
	// Px is the actual data, which is rate number multiplied by the multiplier.
	Px uint64 `protobuf:"varint,3,opt,name=px,proto3" json:"px,omitempty"`
	// RequestID is oracle request ID that contains this price
	RequestId uint64 `protobuf:"varint,4,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// ResolveTime is epoch timestamp indicating the time when the request had
	// been resolved
	ResolveTime int64 `protobuf:"varint,5,opt,name=resolve_time,json=resolveTime,proto3" json:"resolve_time,omitempty"`
	// contains filtered or unexported fields
}

PriceResult is a result from standard price reference

func (*PriceResult) Descriptor deprecated

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

Deprecated: Use PriceResult.ProtoReflect.Descriptor instead.

func (*PriceResult) GetMultiplier

func (x *PriceResult) GetMultiplier() uint64

func (*PriceResult) GetPx

func (x *PriceResult) GetPx() uint64

func (*PriceResult) GetRequestId

func (x *PriceResult) GetRequestId() uint64

func (*PriceResult) GetResolveTime

func (x *PriceResult) GetResolveTime() int64

func (*PriceResult) GetSymbol

func (x *PriceResult) GetSymbol() string

func (*PriceResult) ProtoMessage

func (*PriceResult) ProtoMessage()

func (*PriceResult) ProtoReflect

func (x *PriceResult) ProtoReflect() protoreflect.Message

func (*PriceResult) Reset

func (x *PriceResult) Reset()

func (*PriceResult) String

func (x *PriceResult) String() string

type QueryActiveValidatorsRequest

type QueryActiveValidatorsRequest struct {
	// contains filtered or unexported fields
}

QueryActiveValidatorsRequest is request type for the Query/ActiveValidators RPC method.

func (*QueryActiveValidatorsRequest) Descriptor deprecated

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

Deprecated: Use QueryActiveValidatorsRequest.ProtoReflect.Descriptor instead.

func (*QueryActiveValidatorsRequest) ProtoMessage

func (*QueryActiveValidatorsRequest) ProtoMessage()

func (*QueryActiveValidatorsRequest) ProtoReflect

func (*QueryActiveValidatorsRequest) Reset

func (x *QueryActiveValidatorsRequest) Reset()

func (*QueryActiveValidatorsRequest) String

type QueryActiveValidatorsResponse

type QueryActiveValidatorsResponse struct {

	// Validators is a list of active validators
	Validators []*ActiveValidator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
	// contains filtered or unexported fields
}

QueryActiveValidatorsResponse is response type for the Query/ActiveValidators RPC method.

func (*QueryActiveValidatorsResponse) Descriptor deprecated

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

Deprecated: Use QueryActiveValidatorsResponse.ProtoReflect.Descriptor instead.

func (*QueryActiveValidatorsResponse) GetValidators

func (x *QueryActiveValidatorsResponse) GetValidators() []*ActiveValidator

func (*QueryActiveValidatorsResponse) ProtoMessage

func (*QueryActiveValidatorsResponse) ProtoMessage()

func (*QueryActiveValidatorsResponse) ProtoReflect

func (*QueryActiveValidatorsResponse) Reset

func (x *QueryActiveValidatorsResponse) Reset()

func (*QueryActiveValidatorsResponse) String

type QueryClient

type QueryClient interface {
	// Counts queries the number of existing data sources, oracle scripts, and
	// requests.
	Counts(ctx context.Context, in *QueryCountsRequest, opts ...grpc.CallOption) (*QueryCountsResponse, error)
	// Data queries content of the data source or oracle script for given SHA256
	// file hash.
	Data(ctx context.Context, in *QueryDataRequest, opts ...grpc.CallOption) (*QueryDataResponse, error)
	// DataSource queries data source summary info for given data source id.
	DataSource(ctx context.Context, in *QueryDataSourceRequest, opts ...grpc.CallOption) (*QueryDataSourceResponse, error)
	// OracleScript queries oracle script summary info for given oracle script id.
	OracleScript(ctx context.Context, in *QueryOracleScriptRequest, opts ...grpc.CallOption) (*QueryOracleScriptResponse, error)
	// Request queries request info for given request id.
	Request(ctx context.Context, in *QueryRequestRequest, opts ...grpc.CallOption) (*QueryRequestResponse, error)
	// PendingRequests queries list of pending request IDs assigned to given
	// validator.
	PendingRequests(ctx context.Context, in *QueryPendingRequestsRequest, opts ...grpc.CallOption) (*QueryPendingRequestsResponse, error)
	// Validator queries properties of given validator address.
	Validator(ctx context.Context, in *QueryValidatorRequest, opts ...grpc.CallOption) (*QueryValidatorResponse, error)
	// IsReporter queries grant of account on this validator.
	IsReporter(ctx context.Context, in *QueryIsReporterRequest, opts ...grpc.CallOption) (*QueryIsReporterResponse, error)
	// Reporters queries all reporters associated with given validator address.
	Reporters(ctx context.Context, in *QueryReportersRequest, opts ...grpc.CallOption) (*QueryReportersResponse, error)
	// ActiveValidators queries all active oracle validators.
	ActiveValidators(ctx context.Context, in *QueryActiveValidatorsRequest, opts ...grpc.CallOption) (*QueryActiveValidatorsResponse, error)
	// Params queries parameters used for runnning bandchain network.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// RequestSearch queries the latest request that match search criteria.
	RequestSearch(ctx context.Context, in *QueryRequestSearchRequest, opts ...grpc.CallOption) (*QueryRequestSearchResponse, error)
	// RequestPrice queries the latest price on standard price reference oracle
	// script.
	RequestPrice(ctx context.Context, in *QueryRequestPriceRequest, opts ...grpc.CallOption) (*QueryRequestPriceResponse, error)
	// RequestVerification verifies a request to make sure that
	// all information that will be used to report the data is valid
	RequestVerification(ctx context.Context, in *QueryRequestVerificationRequest, opts ...grpc.CallOption) (*QueryRequestVerificationResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryCountsRequest

type QueryCountsRequest struct {
	// contains filtered or unexported fields
}

QueryCountsRequest is request type for the Query/Count RPC method.

func (*QueryCountsRequest) Descriptor deprecated

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

Deprecated: Use QueryCountsRequest.ProtoReflect.Descriptor instead.

func (*QueryCountsRequest) ProtoMessage

func (*QueryCountsRequest) ProtoMessage()

func (*QueryCountsRequest) ProtoReflect

func (x *QueryCountsRequest) ProtoReflect() protoreflect.Message

func (*QueryCountsRequest) Reset

func (x *QueryCountsRequest) Reset()

func (*QueryCountsRequest) String

func (x *QueryCountsRequest) String() string

type QueryCountsResponse

type QueryCountsResponse struct {

	// DataSourceCount is total number of data sources available on the chain
	DataSourceCount uint64 `protobuf:"varint,1,opt,name=data_source_count,json=dataSourceCount,proto3" json:"data_source_count,omitempty"`
	// OracleScriptCount is total number of oracle scripts available on the chain
	OracleScriptCount uint64 `protobuf:"varint,2,opt,name=oracle_script_count,json=oracleScriptCount,proto3" json:"oracle_script_count,omitempty"`
	// RequestCount is total number of requests submitted to the chain
	RequestCount uint64 `protobuf:"varint,3,opt,name=request_count,json=requestCount,proto3" json:"request_count,omitempty"`
	// contains filtered or unexported fields
}

QueryCountsResponse is response type for the Query/Count RPC method.

func (*QueryCountsResponse) Descriptor deprecated

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

Deprecated: Use QueryCountsResponse.ProtoReflect.Descriptor instead.

func (*QueryCountsResponse) GetDataSourceCount

func (x *QueryCountsResponse) GetDataSourceCount() uint64

func (*QueryCountsResponse) GetOracleScriptCount

func (x *QueryCountsResponse) GetOracleScriptCount() uint64

func (*QueryCountsResponse) GetRequestCount

func (x *QueryCountsResponse) GetRequestCount() uint64

func (*QueryCountsResponse) ProtoMessage

func (*QueryCountsResponse) ProtoMessage()

func (*QueryCountsResponse) ProtoReflect

func (x *QueryCountsResponse) ProtoReflect() protoreflect.Message

func (*QueryCountsResponse) Reset

func (x *QueryCountsResponse) Reset()

func (*QueryCountsResponse) String

func (x *QueryCountsResponse) String() string

type QueryDataRequest

type QueryDataRequest struct {

	// DataHash is SHA256 hash of the file's content, which can be data source or
	// oracle script
	DataHash string `protobuf:"bytes,1,opt,name=data_hash,json=dataHash,proto3" json:"data_hash,omitempty"`
	// contains filtered or unexported fields
}

QueryDataRequest is request type for the Query/Data RPC method.

func (*QueryDataRequest) Descriptor deprecated

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

Deprecated: Use QueryDataRequest.ProtoReflect.Descriptor instead.

func (*QueryDataRequest) GetDataHash

func (x *QueryDataRequest) GetDataHash() string

func (*QueryDataRequest) ProtoMessage

func (*QueryDataRequest) ProtoMessage()

func (*QueryDataRequest) ProtoReflect

func (x *QueryDataRequest) ProtoReflect() protoreflect.Message

func (*QueryDataRequest) Reset

func (x *QueryDataRequest) Reset()

func (*QueryDataRequest) String

func (x *QueryDataRequest) String() string

type QueryDataResponse

type QueryDataResponse struct {

	// Data is file's content, which can be data source or oracle script
	Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

QueryDataResponse is response type for the Query/Data RPC method.

func (*QueryDataResponse) Descriptor deprecated

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

Deprecated: Use QueryDataResponse.ProtoReflect.Descriptor instead.

func (*QueryDataResponse) GetData

func (x *QueryDataResponse) GetData() []byte

func (*QueryDataResponse) ProtoMessage

func (*QueryDataResponse) ProtoMessage()

func (*QueryDataResponse) ProtoReflect

func (x *QueryDataResponse) ProtoReflect() protoreflect.Message

func (*QueryDataResponse) Reset

func (x *QueryDataResponse) Reset()

func (*QueryDataResponse) String

func (x *QueryDataResponse) String() string

type QueryDataSourceRequest

type QueryDataSourceRequest struct {

	// DataSourceID is ID of a data source script
	DataSourceId uint64 `protobuf:"varint,1,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	// contains filtered or unexported fields
}

QueryDataSourceRequest is request type for the Query/DataSource RPC method.

func (*QueryDataSourceRequest) Descriptor deprecated

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

Deprecated: Use QueryDataSourceRequest.ProtoReflect.Descriptor instead.

func (*QueryDataSourceRequest) GetDataSourceId

func (x *QueryDataSourceRequest) GetDataSourceId() uint64

func (*QueryDataSourceRequest) ProtoMessage

func (*QueryDataSourceRequest) ProtoMessage()

func (*QueryDataSourceRequest) ProtoReflect

func (x *QueryDataSourceRequest) ProtoReflect() protoreflect.Message

func (*QueryDataSourceRequest) Reset

func (x *QueryDataSourceRequest) Reset()

func (*QueryDataSourceRequest) String

func (x *QueryDataSourceRequest) String() string

type QueryDataSourceResponse

type QueryDataSourceResponse struct {

	// DataSource is summary information of a data source
	DataSource *DataSource `protobuf:"bytes,1,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
	// contains filtered or unexported fields
}

QueryDataSourceResponse is response type for the Query/DataSource RPC method.

func (*QueryDataSourceResponse) Descriptor deprecated

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

Deprecated: Use QueryDataSourceResponse.ProtoReflect.Descriptor instead.

func (*QueryDataSourceResponse) GetDataSource

func (x *QueryDataSourceResponse) GetDataSource() *DataSource

func (*QueryDataSourceResponse) ProtoMessage

func (*QueryDataSourceResponse) ProtoMessage()

func (*QueryDataSourceResponse) ProtoReflect

func (x *QueryDataSourceResponse) ProtoReflect() protoreflect.Message

func (*QueryDataSourceResponse) Reset

func (x *QueryDataSourceResponse) Reset()

func (*QueryDataSourceResponse) String

func (x *QueryDataSourceResponse) String() string

type QueryIsReporterRequest

type QueryIsReporterRequest struct {

	// ValidatorAddress is a validator address
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// ReporterAddress is a candidate account
	ReporterAddress string `protobuf:"bytes,2,opt,name=reporter_address,json=reporterAddress,proto3" json:"reporter_address,omitempty"`
	// contains filtered or unexported fields
}

QueryIsReporterRequest is request type for the Query/Reporter RPC method.

func (*QueryIsReporterRequest) Descriptor deprecated

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

Deprecated: Use QueryIsReporterRequest.ProtoReflect.Descriptor instead.

func (*QueryIsReporterRequest) GetReporterAddress

func (x *QueryIsReporterRequest) GetReporterAddress() string

func (*QueryIsReporterRequest) GetValidatorAddress

func (x *QueryIsReporterRequest) GetValidatorAddress() string

func (*QueryIsReporterRequest) ProtoMessage

func (*QueryIsReporterRequest) ProtoMessage()

func (*QueryIsReporterRequest) ProtoReflect

func (x *QueryIsReporterRequest) ProtoReflect() protoreflect.Message

func (*QueryIsReporterRequest) Reset

func (x *QueryIsReporterRequest) Reset()

func (*QueryIsReporterRequest) String

func (x *QueryIsReporterRequest) String() string

type QueryIsReporterResponse

type QueryIsReporterResponse struct {

	// IsReporter is true if this account has been granted by validator
	IsReporter bool `protobuf:"varint,1,opt,name=is_reporter,json=isReporter,proto3" json:"is_reporter,omitempty"`
	// contains filtered or unexported fields
}

QueryIsReporterResponse is response type for the Query/Reporter RPC method.

func (*QueryIsReporterResponse) Descriptor deprecated

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

Deprecated: Use QueryIsReporterResponse.ProtoReflect.Descriptor instead.

func (*QueryIsReporterResponse) GetIsReporter

func (x *QueryIsReporterResponse) GetIsReporter() bool

func (*QueryIsReporterResponse) ProtoMessage

func (*QueryIsReporterResponse) ProtoMessage()

func (*QueryIsReporterResponse) ProtoReflect

func (x *QueryIsReporterResponse) ProtoReflect() protoreflect.Message

func (*QueryIsReporterResponse) Reset

func (x *QueryIsReporterResponse) Reset()

func (*QueryIsReporterResponse) String

func (x *QueryIsReporterResponse) String() string

type QueryOracleScriptRequest

type QueryOracleScriptRequest struct {

	// OracleScriptID is ID of an oracle script
	OracleScriptId uint64 `protobuf:"varint,1,opt,name=oracle_script_id,json=oracleScriptId,proto3" json:"oracle_script_id,omitempty"`
	// contains filtered or unexported fields
}

QueryOracleScriptRequest is request type for the Query/OracleScript RPC method.

func (*QueryOracleScriptRequest) Descriptor deprecated

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

Deprecated: Use QueryOracleScriptRequest.ProtoReflect.Descriptor instead.

func (*QueryOracleScriptRequest) GetOracleScriptId

func (x *QueryOracleScriptRequest) GetOracleScriptId() uint64

func (*QueryOracleScriptRequest) ProtoMessage

func (*QueryOracleScriptRequest) ProtoMessage()

func (*QueryOracleScriptRequest) ProtoReflect

func (x *QueryOracleScriptRequest) ProtoReflect() protoreflect.Message

func (*QueryOracleScriptRequest) Reset

func (x *QueryOracleScriptRequest) Reset()

func (*QueryOracleScriptRequest) String

func (x *QueryOracleScriptRequest) String() string

type QueryOracleScriptResponse

type QueryOracleScriptResponse struct {

	// OracleScript is summary information of an oracle script
	OracleScript *OracleScript `protobuf:"bytes,1,opt,name=oracle_script,json=oracleScript,proto3" json:"oracle_script,omitempty"`
	// contains filtered or unexported fields
}

QueryOracleScriptResponse is response type for the Query/OracleScript RPC method.

func (*QueryOracleScriptResponse) Descriptor deprecated

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

Deprecated: Use QueryOracleScriptResponse.ProtoReflect.Descriptor instead.

func (*QueryOracleScriptResponse) GetOracleScript

func (x *QueryOracleScriptResponse) GetOracleScript() *OracleScript

func (*QueryOracleScriptResponse) ProtoMessage

func (*QueryOracleScriptResponse) ProtoMessage()

func (*QueryOracleScriptResponse) ProtoReflect

func (*QueryOracleScriptResponse) Reset

func (x *QueryOracleScriptResponse) Reset()

func (*QueryOracleScriptResponse) String

func (x *QueryOracleScriptResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// pagination defines an optional pagination for the request.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryPendingRequestsRequest

type QueryPendingRequestsRequest struct {

	// ValidatorAddress is address of a validator
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// contains filtered or unexported fields
}

QueryPendingRequestRequest is request type for the Query/PendingRequests RPC method.

func (*QueryPendingRequestsRequest) Descriptor deprecated

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

Deprecated: Use QueryPendingRequestsRequest.ProtoReflect.Descriptor instead.

func (*QueryPendingRequestsRequest) GetValidatorAddress

func (x *QueryPendingRequestsRequest) GetValidatorAddress() string

func (*QueryPendingRequestsRequest) ProtoMessage

func (*QueryPendingRequestsRequest) ProtoMessage()

func (*QueryPendingRequestsRequest) ProtoReflect

func (*QueryPendingRequestsRequest) Reset

func (x *QueryPendingRequestsRequest) Reset()

func (*QueryPendingRequestsRequest) String

func (x *QueryPendingRequestsRequest) String() string

type QueryPendingRequestsResponse

type QueryPendingRequestsResponse struct {

	// RequestIDs is a list of pending request IDs assigned to the given validator
	RequestIds []uint64 `protobuf:"varint,1,rep,packed,name=request_ids,json=requestIds,proto3" json:"request_ids,omitempty"`
	// contains filtered or unexported fields
}

QueryPendingRequestResponse is response type for the Query/PendingRequests RPC method.

func (*QueryPendingRequestsResponse) Descriptor deprecated

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

Deprecated: Use QueryPendingRequestsResponse.ProtoReflect.Descriptor instead.

func (*QueryPendingRequestsResponse) GetRequestIds

func (x *QueryPendingRequestsResponse) GetRequestIds() []uint64

func (*QueryPendingRequestsResponse) ProtoMessage

func (*QueryPendingRequestsResponse) ProtoMessage()

func (*QueryPendingRequestsResponse) ProtoReflect

func (*QueryPendingRequestsResponse) Reset

func (x *QueryPendingRequestsResponse) Reset()

func (*QueryPendingRequestsResponse) String

type QueryReportersRequest

type QueryReportersRequest struct {

	// ValidatorAddress is a validator address
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// contains filtered or unexported fields
}

QueryReportersRequest is request type for the Query/Reporters RPC method.

func (*QueryReportersRequest) Descriptor deprecated

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

Deprecated: Use QueryReportersRequest.ProtoReflect.Descriptor instead.

func (*QueryReportersRequest) GetValidatorAddress

func (x *QueryReportersRequest) GetValidatorAddress() string

func (*QueryReportersRequest) ProtoMessage

func (*QueryReportersRequest) ProtoMessage()

func (*QueryReportersRequest) ProtoReflect

func (x *QueryReportersRequest) ProtoReflect() protoreflect.Message

func (*QueryReportersRequest) Reset

func (x *QueryReportersRequest) Reset()

func (*QueryReportersRequest) String

func (x *QueryReportersRequest) String() string

type QueryReportersResponse

type QueryReportersResponse struct {

	// Reporter is a list of account addresses of reporters
	Reporter []string `protobuf:"bytes,1,rep,name=reporter,proto3" json:"reporter,omitempty"`
	// contains filtered or unexported fields
}

QueryReportersResponse is response type for the Query/Reporters RPC method.

func (*QueryReportersResponse) Descriptor deprecated

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

Deprecated: Use QueryReportersResponse.ProtoReflect.Descriptor instead.

func (*QueryReportersResponse) GetReporter

func (x *QueryReportersResponse) GetReporter() []string

func (*QueryReportersResponse) ProtoMessage

func (*QueryReportersResponse) ProtoMessage()

func (*QueryReportersResponse) ProtoReflect

func (x *QueryReportersResponse) ProtoReflect() protoreflect.Message

func (*QueryReportersResponse) Reset

func (x *QueryReportersResponse) Reset()

func (*QueryReportersResponse) String

func (x *QueryReportersResponse) String() string

type QueryRequestPriceRequest

type QueryRequestPriceRequest struct {

	// Symbol is unit of data indicating what the data is
	Symbols []string `protobuf:"bytes,1,rep,name=symbols,proto3" json:"symbols,omitempty"`
	// AskCount is number of validators allowed for fulfilling the request
	AskCount uint64 `protobuf:"varint,2,opt,name=ask_count,json=askCount,proto3" json:"ask_count,omitempty"`
	// MinCount is number of validators required for fulfilling the request
	MinCount uint64 `protobuf:"varint,3,opt,name=min_count,json=minCount,proto3" json:"min_count,omitempty"`
	// contains filtered or unexported fields
}

QueryRequestPriceRequest is request type for the Query/RequestPrice RPC method.

func (*QueryRequestPriceRequest) Descriptor deprecated

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

Deprecated: Use QueryRequestPriceRequest.ProtoReflect.Descriptor instead.

func (*QueryRequestPriceRequest) GetAskCount

func (x *QueryRequestPriceRequest) GetAskCount() uint64

func (*QueryRequestPriceRequest) GetMinCount

func (x *QueryRequestPriceRequest) GetMinCount() uint64

func (*QueryRequestPriceRequest) GetSymbols

func (x *QueryRequestPriceRequest) GetSymbols() []string

func (*QueryRequestPriceRequest) ProtoMessage

func (*QueryRequestPriceRequest) ProtoMessage()

func (*QueryRequestPriceRequest) ProtoReflect

func (x *QueryRequestPriceRequest) ProtoReflect() protoreflect.Message

func (*QueryRequestPriceRequest) Reset

func (x *QueryRequestPriceRequest) Reset()

func (*QueryRequestPriceRequest) String

func (x *QueryRequestPriceRequest) String() string

type QueryRequestPriceResponse

type QueryRequestPriceResponse struct {

	// PriceResult is a list of price results for given symbols
	PriceResults []*PriceResult `protobuf:"bytes,1,rep,name=price_results,json=priceResults,proto3" json:"price_results,omitempty"`
	// contains filtered or unexported fields
}

QueryRequestPriceResponse is response type for the Query/RequestPrice RPC method.

func (*QueryRequestPriceResponse) Descriptor deprecated

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

Deprecated: Use QueryRequestPriceResponse.ProtoReflect.Descriptor instead.

func (*QueryRequestPriceResponse) GetPriceResults

func (x *QueryRequestPriceResponse) GetPriceResults() []*PriceResult

func (*QueryRequestPriceResponse) ProtoMessage

func (*QueryRequestPriceResponse) ProtoMessage()

func (*QueryRequestPriceResponse) ProtoReflect

func (*QueryRequestPriceResponse) Reset

func (x *QueryRequestPriceResponse) Reset()

func (*QueryRequestPriceResponse) String

func (x *QueryRequestPriceResponse) String() string

type QueryRequestRequest

type QueryRequestRequest struct {

	// RequestID is ID of an oracle request
	RequestId uint64 `protobuf:"varint,1,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// contains filtered or unexported fields
}

QueryRequestRequest is request type for the Query/Request RPC method.

func (*QueryRequestRequest) Descriptor deprecated

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

Deprecated: Use QueryRequestRequest.ProtoReflect.Descriptor instead.

func (*QueryRequestRequest) GetRequestId

func (x *QueryRequestRequest) GetRequestId() uint64

func (*QueryRequestRequest) ProtoMessage

func (*QueryRequestRequest) ProtoMessage()

func (*QueryRequestRequest) ProtoReflect

func (x *QueryRequestRequest) ProtoReflect() protoreflect.Message

func (*QueryRequestRequest) Reset

func (x *QueryRequestRequest) Reset()

func (*QueryRequestRequest) String

func (x *QueryRequestRequest) String() string

type QueryRequestResponse

type QueryRequestResponse struct {

	// Request is an oracle request
	Request *Request `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// Reports is list of result data as raw reports that are fulfilled by
	// assigned validators
	Reports []*Report `protobuf:"bytes,2,rep,name=reports,proto3" json:"reports,omitempty"`
	// Result is a final form of result data
	Result *Result `protobuf:"bytes,3,opt,name=result,proto3" json:"result,omitempty"`
	// Signing is the signing detail in the bandtss module.
	Signing *SigningResult `protobuf:"bytes,4,opt,name=signing,proto3" json:"signing,omitempty"`
	// contains filtered or unexported fields
}

QueryRequestResponse is response type for the Query/Request RPC method.

func (*QueryRequestResponse) Descriptor deprecated

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

Deprecated: Use QueryRequestResponse.ProtoReflect.Descriptor instead.

func (*QueryRequestResponse) GetReports

func (x *QueryRequestResponse) GetReports() []*Report

func (*QueryRequestResponse) GetRequest

func (x *QueryRequestResponse) GetRequest() *Request

func (*QueryRequestResponse) GetResult

func (x *QueryRequestResponse) GetResult() *Result

func (*QueryRequestResponse) GetSigning

func (x *QueryRequestResponse) GetSigning() *SigningResult

func (*QueryRequestResponse) ProtoMessage

func (*QueryRequestResponse) ProtoMessage()

func (*QueryRequestResponse) ProtoReflect

func (x *QueryRequestResponse) ProtoReflect() protoreflect.Message

func (*QueryRequestResponse) Reset

func (x *QueryRequestResponse) Reset()

func (*QueryRequestResponse) String

func (x *QueryRequestResponse) String() string

type QueryRequestSearchRequest

type QueryRequestSearchRequest struct {

	// OracleScriptID is ID of an oracle script
	OracleScriptId uint64 `protobuf:"varint,1,opt,name=oracle_script_id,json=oracleScriptId,proto3" json:"oracle_script_id,omitempty"`
	// Calldata is OBI-encoded data in hex format as argument params for the
	// oracle script
	Calldata string `protobuf:"bytes,2,opt,name=calldata,proto3" json:"calldata,omitempty"`
	// AskCount is number of validators allowed for fulfilling the request
	AskCount uint64 `protobuf:"varint,3,opt,name=ask_count,json=askCount,proto3" json:"ask_count,omitempty"`
	// MinCount is number of validators required for fulfilling the request
	MinCount uint64 `protobuf:"varint,4,opt,name=min_count,json=minCount,proto3" json:"min_count,omitempty"`
	// contains filtered or unexported fields
}

QueryRequestSearchRequest is request type for the Query/RequestSearch RPC method.

func (*QueryRequestSearchRequest) Descriptor deprecated

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

Deprecated: Use QueryRequestSearchRequest.ProtoReflect.Descriptor instead.

func (*QueryRequestSearchRequest) GetAskCount

func (x *QueryRequestSearchRequest) GetAskCount() uint64

func (*QueryRequestSearchRequest) GetCalldata

func (x *QueryRequestSearchRequest) GetCalldata() string

func (*QueryRequestSearchRequest) GetMinCount

func (x *QueryRequestSearchRequest) GetMinCount() uint64

func (*QueryRequestSearchRequest) GetOracleScriptId

func (x *QueryRequestSearchRequest) GetOracleScriptId() uint64

func (*QueryRequestSearchRequest) ProtoMessage

func (*QueryRequestSearchRequest) ProtoMessage()

func (*QueryRequestSearchRequest) ProtoReflect

func (*QueryRequestSearchRequest) Reset

func (x *QueryRequestSearchRequest) Reset()

func (*QueryRequestSearchRequest) String

func (x *QueryRequestSearchRequest) String() string

type QueryRequestSearchResponse

type QueryRequestSearchResponse struct {

	// Request is details of an oracle request
	Request *QueryRequestResponse `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"`
	// contains filtered or unexported fields
}

QueryRequestSearchResponse is response type for the Query/RequestSearch RPC method.

func (*QueryRequestSearchResponse) Descriptor deprecated

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

Deprecated: Use QueryRequestSearchResponse.ProtoReflect.Descriptor instead.

func (*QueryRequestSearchResponse) GetRequest

func (*QueryRequestSearchResponse) ProtoMessage

func (*QueryRequestSearchResponse) ProtoMessage()

func (*QueryRequestSearchResponse) ProtoReflect

func (*QueryRequestSearchResponse) Reset

func (x *QueryRequestSearchResponse) Reset()

func (*QueryRequestSearchResponse) String

func (x *QueryRequestSearchResponse) String() string

type QueryRequestVerificationRequest

type QueryRequestVerificationRequest struct {

	// ChainID is the chain ID to identify which chain ID is used for the
	// verification
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Validator is a validator address
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// RequestID is oracle request ID
	RequestId uint64 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// ExternalID is an oracle's external ID
	ExternalId uint64 `protobuf:"varint,4,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// DataSourceID is the ID of data source
	DataSourceId uint64 `protobuf:"varint,5,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	// Reporter is an bech32-encoded public key of the reporter authorized by the
	// validator
	Reporter string `protobuf:"bytes,6,opt,name=reporter,proto3" json:"reporter,omitempty"`
	// Signature is a signature signed by the reporter using reporter's private
	// key
	Signature []byte `protobuf:"bytes,7,opt,name=signature,proto3" json:"signature,omitempty"`
	// MaxDelay is a max number of RequestID delay acceptable in case of node
	// delay
	MaxDelay uint64 `protobuf:"varint,8,opt,name=max_delay,json=maxDelay,proto3" json:"max_delay,omitempty"`
	// contains filtered or unexported fields
}

QueryRequestVerificationRequest is request type for the Query/RequestVerification RPC

func (*QueryRequestVerificationRequest) Descriptor deprecated

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

Deprecated: Use QueryRequestVerificationRequest.ProtoReflect.Descriptor instead.

func (*QueryRequestVerificationRequest) GetChainId

func (x *QueryRequestVerificationRequest) GetChainId() string

func (*QueryRequestVerificationRequest) GetDataSourceId

func (x *QueryRequestVerificationRequest) GetDataSourceId() uint64

func (*QueryRequestVerificationRequest) GetExternalId

func (x *QueryRequestVerificationRequest) GetExternalId() uint64

func (*QueryRequestVerificationRequest) GetMaxDelay

func (x *QueryRequestVerificationRequest) GetMaxDelay() uint64

func (*QueryRequestVerificationRequest) GetReporter

func (x *QueryRequestVerificationRequest) GetReporter() string

func (*QueryRequestVerificationRequest) GetRequestId

func (x *QueryRequestVerificationRequest) GetRequestId() uint64

func (*QueryRequestVerificationRequest) GetSignature

func (x *QueryRequestVerificationRequest) GetSignature() []byte

func (*QueryRequestVerificationRequest) GetValidator

func (x *QueryRequestVerificationRequest) GetValidator() string

func (*QueryRequestVerificationRequest) ProtoMessage

func (*QueryRequestVerificationRequest) ProtoMessage()

func (*QueryRequestVerificationRequest) ProtoReflect

func (*QueryRequestVerificationRequest) Reset

func (*QueryRequestVerificationRequest) String

type QueryRequestVerificationResponse

type QueryRequestVerificationResponse struct {

	// ChainID is the targeted chain ID
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Validator is the targeted validator address
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// RequestID is the ID of targeted request
	RequestId uint64 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// ExternalID is the ID of targeted oracle's external data source
	ExternalId uint64 `protobuf:"varint,4,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// DataSourceID is the ID of a data source that relates to the targeted
	// external ID
	DataSourceId uint64 `protobuf:"varint,5,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	// IsDelay is a flag to tell that this request is not exist yet but in
	// MaxDelay range
	IsDelay bool `protobuf:"varint,6,opt,name=is_delay,json=isDelay,proto3" json:"is_delay,omitempty"`
	// contains filtered or unexported fields
}

QueryRequestVerificationResponse is response type for the Query/RequestVerification RPC

func (*QueryRequestVerificationResponse) Descriptor deprecated

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

Deprecated: Use QueryRequestVerificationResponse.ProtoReflect.Descriptor instead.

func (*QueryRequestVerificationResponse) GetChainId

func (x *QueryRequestVerificationResponse) GetChainId() string

func (*QueryRequestVerificationResponse) GetDataSourceId

func (x *QueryRequestVerificationResponse) GetDataSourceId() uint64

func (*QueryRequestVerificationResponse) GetExternalId

func (x *QueryRequestVerificationResponse) GetExternalId() uint64

func (*QueryRequestVerificationResponse) GetIsDelay

func (x *QueryRequestVerificationResponse) GetIsDelay() bool

func (*QueryRequestVerificationResponse) GetRequestId

func (x *QueryRequestVerificationResponse) GetRequestId() uint64

func (*QueryRequestVerificationResponse) GetValidator

func (x *QueryRequestVerificationResponse) GetValidator() string

func (*QueryRequestVerificationResponse) ProtoMessage

func (*QueryRequestVerificationResponse) ProtoMessage()

func (*QueryRequestVerificationResponse) ProtoReflect

func (*QueryRequestVerificationResponse) Reset

func (*QueryRequestVerificationResponse) String

type QueryServer

type QueryServer interface {
	// Counts queries the number of existing data sources, oracle scripts, and
	// requests.
	Counts(context.Context, *QueryCountsRequest) (*QueryCountsResponse, error)
	// Data queries content of the data source or oracle script for given SHA256
	// file hash.
	Data(context.Context, *QueryDataRequest) (*QueryDataResponse, error)
	// DataSource queries data source summary info for given data source id.
	DataSource(context.Context, *QueryDataSourceRequest) (*QueryDataSourceResponse, error)
	// OracleScript queries oracle script summary info for given oracle script id.
	OracleScript(context.Context, *QueryOracleScriptRequest) (*QueryOracleScriptResponse, error)
	// Request queries request info for given request id.
	Request(context.Context, *QueryRequestRequest) (*QueryRequestResponse, error)
	// PendingRequests queries list of pending request IDs assigned to given
	// validator.
	PendingRequests(context.Context, *QueryPendingRequestsRequest) (*QueryPendingRequestsResponse, error)
	// Validator queries properties of given validator address.
	Validator(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error)
	// IsReporter queries grant of account on this validator.
	IsReporter(context.Context, *QueryIsReporterRequest) (*QueryIsReporterResponse, error)
	// Reporters queries all reporters associated with given validator address.
	Reporters(context.Context, *QueryReportersRequest) (*QueryReportersResponse, error)
	// ActiveValidators queries all active oracle validators.
	ActiveValidators(context.Context, *QueryActiveValidatorsRequest) (*QueryActiveValidatorsResponse, error)
	// Params queries parameters used for runnning bandchain network.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// RequestSearch queries the latest request that match search criteria.
	RequestSearch(context.Context, *QueryRequestSearchRequest) (*QueryRequestSearchResponse, error)
	// RequestPrice queries the latest price on standard price reference oracle
	// script.
	RequestPrice(context.Context, *QueryRequestPriceRequest) (*QueryRequestPriceResponse, error)
	// RequestVerification verifies a request to make sure that
	// all information that will be used to report the data is valid
	RequestVerification(context.Context, *QueryRequestVerificationRequest) (*QueryRequestVerificationResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QueryValidatorRequest

type QueryValidatorRequest struct {

	// ValidatorAddress is address of a validator
	ValidatorAddress string `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// contains filtered or unexported fields
}

QueryValidatorRequest is request type for the Query/Validator RPC method.

func (*QueryValidatorRequest) Descriptor deprecated

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

Deprecated: Use QueryValidatorRequest.ProtoReflect.Descriptor instead.

func (*QueryValidatorRequest) GetValidatorAddress

func (x *QueryValidatorRequest) GetValidatorAddress() string

func (*QueryValidatorRequest) ProtoMessage

func (*QueryValidatorRequest) ProtoMessage()

func (*QueryValidatorRequest) ProtoReflect

func (x *QueryValidatorRequest) ProtoReflect() protoreflect.Message

func (*QueryValidatorRequest) Reset

func (x *QueryValidatorRequest) Reset()

func (*QueryValidatorRequest) String

func (x *QueryValidatorRequest) String() string

type QueryValidatorResponse

type QueryValidatorResponse struct {

	// Status is status of a validator e.g. active/inactive
	Status *ValidatorStatus `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

QueryValidatorResponse is response type for the Query/Validator RPC method.

func (*QueryValidatorResponse) Descriptor deprecated

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

Deprecated: Use QueryValidatorResponse.ProtoReflect.Descriptor instead.

func (*QueryValidatorResponse) GetStatus

func (x *QueryValidatorResponse) GetStatus() *ValidatorStatus

func (*QueryValidatorResponse) ProtoMessage

func (*QueryValidatorResponse) ProtoMessage()

func (*QueryValidatorResponse) ProtoReflect

func (x *QueryValidatorResponse) ProtoReflect() protoreflect.Message

func (*QueryValidatorResponse) Reset

func (x *QueryValidatorResponse) Reset()

func (*QueryValidatorResponse) String

func (x *QueryValidatorResponse) String() string

type RawReport

type RawReport struct {

	// ExternalID is an ID of the raw request
	ExternalId uint64 `protobuf:"varint,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// ExitCode is status code provided by validators to specify error, if any.
	// Exit code is usually filled by the exit code returned from execution of
	// specified data source script. With code 0 means there is no error.
	ExitCode uint32 `protobuf:"varint,2,opt,name=exit_code,json=exitCode,proto3" json:"exit_code,omitempty"`
	// Data is raw result provided by validators.
	// It is usually filled by the result from execution of specified data source
	// script.
	Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

RawRequest is the data structure for storing raw reporter in the storage.

func (*RawReport) Descriptor deprecated

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

Deprecated: Use RawReport.ProtoReflect.Descriptor instead.

func (*RawReport) GetData

func (x *RawReport) GetData() []byte

func (*RawReport) GetExitCode

func (x *RawReport) GetExitCode() uint32

func (*RawReport) GetExternalId

func (x *RawReport) GetExternalId() uint64

func (*RawReport) ProtoMessage

func (*RawReport) ProtoMessage()

func (*RawReport) ProtoReflect

func (x *RawReport) ProtoReflect() protoreflect.Message

func (*RawReport) Reset

func (x *RawReport) Reset()

func (*RawReport) String

func (x *RawReport) String() string

type RawRequest

type RawRequest struct {

	// ExternalID is an ID of the raw request
	ExternalId uint64 `protobuf:"varint,1,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// DataSourceID is an ID of data source script that relates to the raw request
	DataSourceId uint64 `protobuf:"varint,2,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	// Calldata is the data used as argument params for executing data source
	// script
	Calldata []byte `protobuf:"bytes,3,opt,name=calldata,proto3" json:"calldata,omitempty"`
	// contains filtered or unexported fields
}

RawRequest is the data structure for storing raw requests in the storage.

func (*RawRequest) Descriptor deprecated

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

Deprecated: Use RawRequest.ProtoReflect.Descriptor instead.

func (*RawRequest) GetCalldata

func (x *RawRequest) GetCalldata() []byte

func (*RawRequest) GetDataSourceId

func (x *RawRequest) GetDataSourceId() uint64

func (*RawRequest) GetExternalId

func (x *RawRequest) GetExternalId() uint64

func (*RawRequest) ProtoMessage

func (*RawRequest) ProtoMessage()

func (*RawRequest) ProtoReflect

func (x *RawRequest) ProtoReflect() protoreflect.Message

func (*RawRequest) Reset

func (x *RawRequest) Reset()

func (*RawRequest) String

func (x *RawRequest) String() string

type Report

type Report struct {

	// Validator is a validator address who submit the report
	Validator string `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// InBeforeResolve indicates whether the report is submitted before the
	// request resolved
	InBeforeResolve bool `protobuf:"varint,2,opt,name=in_before_resolve,json=inBeforeResolve,proto3" json:"in_before_resolve,omitempty"`
	// RawReports is list of raw reports provided by the validator.
	// Each raw report has different external ID
	RawReports []*RawReport `protobuf:"bytes,3,rep,name=raw_reports,json=rawReports,proto3" json:"raw_reports,omitempty"`
	// contains filtered or unexported fields
}

Report is the data structure for storing reports in the storage.

func (*Report) Descriptor deprecated

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

Deprecated: Use Report.ProtoReflect.Descriptor instead.

func (*Report) GetInBeforeResolve

func (x *Report) GetInBeforeResolve() bool

func (*Report) GetRawReports

func (x *Report) GetRawReports() []*RawReport

func (*Report) GetValidator

func (x *Report) GetValidator() string

func (*Report) ProtoMessage

func (*Report) ProtoMessage()

func (*Report) ProtoReflect

func (x *Report) ProtoReflect() protoreflect.Message

func (*Report) Reset

func (x *Report) Reset()

func (*Report) String

func (x *Report) String() string

type Request

type Request struct {

	// OracleScriptID is ID of an oracle script
	OracleScriptId uint64 `protobuf:"varint,1,opt,name=oracle_script_id,json=oracleScriptId,proto3" json:"oracle_script_id,omitempty"`
	// Calldata is the data used as argument params for the oracle script
	Calldata []byte `protobuf:"bytes,2,opt,name=calldata,proto3" json:"calldata,omitempty"`
	// RequestedValidators is a list of validator addresses that are assigned for
	// fulfilling the request
	RequestedValidators []string `protobuf:"bytes,3,rep,name=requested_validators,json=requestedValidators,proto3" json:"requested_validators,omitempty"`
	// MinCount is minimum number of validators required for fulfilling the
	// request
	MinCount uint64 `protobuf:"varint,4,opt,name=min_count,json=minCount,proto3" json:"min_count,omitempty"`
	// RequestHeight is block height that the request has been created
	RequestHeight int64 `protobuf:"varint,5,opt,name=request_height,json=requestHeight,proto3" json:"request_height,omitempty"`
	// RequestTime is timestamp of the chain's block which contains the request
	RequestTime int64 `protobuf:"varint,6,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"`
	// ClientID is arbitrary id provided by requester.
	// It is used by client-side for referencing the request
	ClientId string `protobuf:"bytes,7,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// RawRequests is a list of raw requests specified by execution of oracle
	// script
	RawRequests []*RawRequest `protobuf:"bytes,8,rep,name=raw_requests,json=rawRequests,proto3" json:"raw_requests,omitempty"`
	// IBCChannel is an IBC channel info of the other chain, which contains a
	// channel and a port to allow bandchain connect to that chain. This field
	// allows other chain be able to request data from bandchain via IBC.
	IbcChannel *IBCChannel `protobuf:"bytes,9,opt,name=ibc_channel,json=ibcChannel,proto3" json:"ibc_channel,omitempty"`
	// ExecuteGas is amount of gas to reserve for executing
	ExecuteGas uint64 `protobuf:"varint,10,opt,name=execute_gas,json=executeGas,proto3" json:"execute_gas,omitempty"`
	// TSSEncoder is the mode of encoding oracle result signature order.
	TssEncoder Encoder `protobuf:"varint,11,opt,name=tss_encoder,json=tssEncoder,proto3,enum=band.oracle.v1.Encoder" json:"tss_encoder,omitempty"`
	// Requester is the address of person who requests the data.
	Requester string `protobuf:"bytes,12,opt,name=requester,proto3" json:"requester,omitempty"`
	// FeeLimit is the maximum tokens that will be paid for this request.
	FeeLimit []*v1beta1.Coin `protobuf:"bytes,13,rep,name=fee_limit,json=feeLimit,proto3" json:"fee_limit,omitempty"`
	// contains filtered or unexported fields
}

Request is the data structure for storing requests in the storage.

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetCalldata

func (x *Request) GetCalldata() []byte

func (*Request) GetClientId

func (x *Request) GetClientId() string

func (*Request) GetExecuteGas

func (x *Request) GetExecuteGas() uint64

func (*Request) GetFeeLimit

func (x *Request) GetFeeLimit() []*v1beta1.Coin

func (*Request) GetIbcChannel

func (x *Request) GetIbcChannel() *IBCChannel

func (*Request) GetMinCount

func (x *Request) GetMinCount() uint64

func (*Request) GetOracleScriptId

func (x *Request) GetOracleScriptId() uint64

func (*Request) GetRawRequests

func (x *Request) GetRawRequests() []*RawRequest

func (*Request) GetRequestHeight

func (x *Request) GetRequestHeight() int64

func (*Request) GetRequestTime

func (x *Request) GetRequestTime() int64

func (*Request) GetRequestedValidators

func (x *Request) GetRequestedValidators() []string

func (*Request) GetRequester

func (x *Request) GetRequester() string

func (*Request) GetTssEncoder

func (x *Request) GetTssEncoder() Encoder

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

func (x *Request) ProtoReflect() protoreflect.Message

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type RequestVerification

type RequestVerification struct {

	// ChainID is the ID of targeted chain
	ChainId string `protobuf:"bytes,1,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"`
	// Validator is an validator address
	Validator string `protobuf:"bytes,2,opt,name=validator,proto3" json:"validator,omitempty"`
	// RequestID is the targeted request ID
	RequestId uint64 `protobuf:"varint,3,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// ExternalID is the oracle's external ID of data source
	ExternalId uint64 `protobuf:"varint,4,opt,name=external_id,json=externalId,proto3" json:"external_id,omitempty"`
	// DataSourceID is the ID of data source
	DataSourceId uint64 `protobuf:"varint,5,opt,name=data_source_id,json=dataSourceId,proto3" json:"data_source_id,omitempty"`
	// contains filtered or unexported fields
}

RequestVerification is a message that is constructed and signed by a reporter to be used as a part of verification of oracle request.

func (*RequestVerification) Descriptor deprecated

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

Deprecated: Use RequestVerification.ProtoReflect.Descriptor instead.

func (*RequestVerification) GetChainId

func (x *RequestVerification) GetChainId() string

func (*RequestVerification) GetDataSourceId

func (x *RequestVerification) GetDataSourceId() uint64

func (*RequestVerification) GetExternalId

func (x *RequestVerification) GetExternalId() uint64

func (*RequestVerification) GetRequestId

func (x *RequestVerification) GetRequestId() uint64

func (*RequestVerification) GetValidator

func (x *RequestVerification) GetValidator() string

func (*RequestVerification) ProtoMessage

func (*RequestVerification) ProtoMessage()

func (*RequestVerification) ProtoReflect

func (x *RequestVerification) ProtoReflect() protoreflect.Message

func (*RequestVerification) Reset

func (x *RequestVerification) Reset()

func (*RequestVerification) String

func (x *RequestVerification) String() string

type ResolveStatus

type ResolveStatus int32

ResolveStatus encodes the status of an oracle request.

const (
	// Open - the request is not yet resolved.
	ResolveStatus_RESOLVE_STATUS_OPEN_UNSPECIFIED ResolveStatus = 0
	// Success - the request has been resolved successfully with no errors.
	ResolveStatus_RESOLVE_STATUS_SUCCESS ResolveStatus = 1
	// Failure - an error occurred during the request's resolve call.
	ResolveStatus_RESOLVE_STATUS_FAILURE ResolveStatus = 2
	// Expired - the request does not get enough reports from validator within the
	// timeframe.
	ResolveStatus_RESOLVE_STATUS_EXPIRED ResolveStatus = 3
)

func (ResolveStatus) Descriptor

func (ResolveStatus) Enum

func (x ResolveStatus) Enum() *ResolveStatus

func (ResolveStatus) EnumDescriptor deprecated

func (ResolveStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use ResolveStatus.Descriptor instead.

func (ResolveStatus) Number

func (ResolveStatus) String

func (x ResolveStatus) String() string

func (ResolveStatus) Type

type Result

type Result struct {

	// ClientID is the unique identifier of this oracle request, as specified by
	// the client. This same unique ID will be sent back to the requester with the
	// oracle response.
	ClientId string `protobuf:"bytes,1,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// OracleScriptID is the unique identifier of the oracle script to be
	// executed.
	OracleScriptId uint64 `protobuf:"varint,2,opt,name=oracle_script_id,json=oracleScriptId,proto3" json:"oracle_script_id,omitempty"`
	// Calldata is the calldata bytes available for oracle executor to read.
	Calldata []byte `protobuf:"bytes,3,opt,name=calldata,proto3" json:"calldata,omitempty"`
	// AskCount is the number of validators that are requested to respond to this
	// oracle request. Higher value means more security, at a higher gas cost.
	AskCount uint64 `protobuf:"varint,4,opt,name=ask_count,json=askCount,proto3" json:"ask_count,omitempty"`
	// MinCount is the minimum number of validators necessary for the request to
	// proceed to the execution phase. Higher value means more security, at the
	// cost of liveness.
	MinCount uint64 `protobuf:"varint,5,opt,name=min_count,json=minCount,proto3" json:"min_count,omitempty"`
	// RequestID is BandChain's unique identifier for this oracle request.
	RequestId uint64 `protobuf:"varint,6,opt,name=request_id,json=requestId,proto3" json:"request_id,omitempty"`
	// AnsCount is the number of validators among to the asked validators that
	// actually responded to this oracle request prior to this oracle request
	// being resolved.
	AnsCount uint64 `protobuf:"varint,7,opt,name=ans_count,json=ansCount,proto3" json:"ans_count,omitempty"`
	// RequestTime is the UNIX epoch time at which the request was sent to
	// BandChain.
	RequestTime int64 `protobuf:"varint,8,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"`
	// ResolveTime is the UNIX epoch time at which the request was resolved to the
	// final result.
	ResolveTime int64 `protobuf:"varint,9,opt,name=resolve_time,json=resolveTime,proto3" json:"resolve_time,omitempty"`
	// ResolveStatus is the status of this oracle request, which can be OK,
	// FAILURE, or EXPIRED.
	ResolveStatus ResolveStatus `` /* 136-byte string literal not displayed */
	// Result is the final aggregated value only available if status if OK.
	Result []byte `protobuf:"bytes,11,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

Result encodes a result of request and store in chain

func (*Result) Descriptor deprecated

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

Deprecated: Use Result.ProtoReflect.Descriptor instead.

func (*Result) GetAnsCount

func (x *Result) GetAnsCount() uint64

func (*Result) GetAskCount

func (x *Result) GetAskCount() uint64

func (*Result) GetCalldata

func (x *Result) GetCalldata() []byte

func (*Result) GetClientId

func (x *Result) GetClientId() string

func (*Result) GetMinCount

func (x *Result) GetMinCount() uint64

func (*Result) GetOracleScriptId

func (x *Result) GetOracleScriptId() uint64

func (*Result) GetRequestId

func (x *Result) GetRequestId() uint64

func (*Result) GetRequestTime

func (x *Result) GetRequestTime() int64

func (*Result) GetResolveStatus

func (x *Result) GetResolveStatus() ResolveStatus

func (*Result) GetResolveTime

func (x *Result) GetResolveTime() int64

func (*Result) GetResult

func (x *Result) GetResult() []byte

func (*Result) ProtoMessage

func (*Result) ProtoMessage()

func (*Result) ProtoReflect

func (x *Result) ProtoReflect() protoreflect.Message

func (*Result) Reset

func (x *Result) Reset()

func (*Result) String

func (x *Result) String() string

type SigningResult

type SigningResult struct {

	// signing_id is the id of the bandtss signing
	SigningId uint64 `protobuf:"varint,1,opt,name=signing_id,json=signingId,proto3" json:"signing_id,omitempty"`
	// error_codespace is the codespace of the error
	ErrorCodespace string `protobuf:"bytes,2,opt,name=error_codespace,json=errorCodespace,proto3" json:"error_codespace,omitempty"`
	// error_code is the code in the codespace of the error
	ErrorCode uint64 `protobuf:"varint,3,opt,name=error_code,json=errorCode,proto3" json:"error_code,omitempty"`
	// contains filtered or unexported fields
}

SigningResult encodes a result of signing of request

func (*SigningResult) Descriptor deprecated

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

Deprecated: Use SigningResult.ProtoReflect.Descriptor instead.

func (*SigningResult) GetErrorCode

func (x *SigningResult) GetErrorCode() uint64

func (*SigningResult) GetErrorCodespace

func (x *SigningResult) GetErrorCodespace() string

func (*SigningResult) GetSigningId

func (x *SigningResult) GetSigningId() uint64

func (*SigningResult) ProtoMessage

func (*SigningResult) ProtoMessage()

func (*SigningResult) ProtoReflect

func (x *SigningResult) ProtoReflect() protoreflect.Message

func (*SigningResult) Reset

func (x *SigningResult) Reset()

func (*SigningResult) String

func (x *SigningResult) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) Activate

func (UnimplementedMsgServer) CreateDataSource

func (UnimplementedMsgServer) EditDataSource

func (UnimplementedMsgServer) EditOracleScript

func (UnimplementedMsgServer) ReportData

func (UnimplementedMsgServer) RequestData

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Counts

func (UnimplementedQueryServer) Data

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Reporters

func (UnimplementedQueryServer) Request

func (UnimplementedQueryServer) Validator

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

type ValidatorStatus

type ValidatorStatus struct {

	// IsActive is a boolean indicating active status of validator.
	// The validator will be deactivated when they are unable to send reports
	// to fulfill oracle request before the request expired.
	IsActive bool `protobuf:"varint,1,opt,name=is_active,json=isActive,proto3" json:"is_active,omitempty"`
	// Since is a block timestamp when validator has been activated/deactivated
	Since *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=since,proto3" json:"since,omitempty"`
	// contains filtered or unexported fields
}

ValidatorStatus maintains whether a validator is an active oracle provider.

func (*ValidatorStatus) Descriptor deprecated

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

Deprecated: Use ValidatorStatus.ProtoReflect.Descriptor instead.

func (*ValidatorStatus) GetIsActive

func (x *ValidatorStatus) GetIsActive() bool

func (*ValidatorStatus) GetSince

func (x *ValidatorStatus) GetSince() *timestamppb.Timestamp

func (*ValidatorStatus) ProtoMessage

func (*ValidatorStatus) ProtoMessage()

func (*ValidatorStatus) ProtoReflect

func (x *ValidatorStatus) ProtoReflect() protoreflect.Message

func (*ValidatorStatus) Reset

func (x *ValidatorStatus) Reset()

func (*ValidatorStatus) String

func (x *ValidatorStatus) String() string

Jump to

Keyboard shortcuts

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