types

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2024 License: MIT Imports: 41 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	Tuplenoarray = "tuple"
	Tuplearray   = "tuple[]"
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "registry"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey defines the module's message routing key
	RouterKey = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_registry"
)
View Source
const (
	WeightedMedian = "weighted-median"
	WeightedMode   = "weighted-mode"
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default global index

View Source
const DefaultMaxReportWindow = 700_000

default max report buffer window

View Source
const TypeMsgRegisterSpec = "register_spec"

Variables

View Source
var (
	ErrInvalidLengthDataSpec        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDataSpec          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDataSpec = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample        = sdkerrors.Register(ModuleName, 1100, "sample error")
	ErrInvalidSigner = sdkerrors.Register(ModuleName, 1101, "expected gov account as only signer for proposal message")
	ErrInvalidSpec   = sdkerrors.Register(ModuleName, 1102, "invalid data specification")
)

x/registry module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ParamsKey
	ParamsKey = collections.NewPrefix(11)

	// RegistryKey
	QueryRegistryKey = collections.NewPrefix(12)

	// SpecRegistryKey
	SpecRegistryKey = collections.NewPrefix(13)
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var SupportedAggregationMethod = map[string]bool{
	WeightedMedian: true,
	WeightedMode:   true,
}
View Source
var SupportedValueTypes = map[string]bool{
	"int8":      true,
	"int16":     true,
	"int32":     true,
	"int64":     true,
	"int128":    true,
	"int256":    true,
	"int[]":     true,
	"int8[]":    true,
	"int16[]":   true,
	"int32[]":   true,
	"int64[]":   true,
	"int128[]":  true,
	"int256[]":  true,
	"uint8":     true,
	"uint16":    true,
	"uint32":    true,
	"uint64":    true,
	"uint128":   true,
	"uint256":   true,
	"uint[]":    true,
	"uint8[]":   true,
	"uint16[]":  true,
	"uint32[]":  true,
	"uint64[]":  true,
	"uint128[]": true,
	"uint256[]": true,
	"bytes":     true,
	"string":    true,
	"bool":      true,
	"address":   true,
	"bytes[]":   true,
	"string[]":  true,
	"bool[]":    true,
	"address[]": true,
}

Functions

func ConvertStringToType

func ConvertStringToType(dataType, dataField string) (interface{}, error)

func ConvertToJSON

func ConvertToJSON(slice []interface{}) (string, error)

convertToJSON converts a slice of interfaces into a JSON string.

func ConvertTypeToReflectType

func ConvertTypeToReflectType(abiType string) (reflect.Type, error)

ConvertABIToReflectType converts ABI type strings to reflect.Type

func DecodeParamtypes

func DecodeParamtypes(data []byte, component []*ABIComponent) (string, error)

func DecodeQueryType

func DecodeQueryType(data []byte) (string, []byte, error)

Decodes query data bytes to query type and data fields

func DecodeValue

func DecodeValue(value, datatype string) ([]interface{}, error)

func EncodeWithQuerytype

func EncodeWithQuerytype(querytype string, databytes []byte) ([]byte, error)

func Has0xPrefix

func Has0xPrefix(str string) bool

has0xPrefix validates str begins with '0x' or '0X'. From: https://github.com/ethereum/go-ethereum/blob/5c6f4b9f0d4270fcc56df681bf003e6a74f11a6b/common/bytes.go#L51

func IsValueDecodable

func IsValueDecodable(value, datatype string) error

func MakeArguments

func MakeArguments(argMrsh []abi.ArgumentMarshaling) abi.Arguments

func MakePackdata

func MakePackdata(fields string, argMrsh []abi.ArgumentMarshaling) []interface{}

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func Remove0xPrefix

func Remove0xPrefix(hexString string) string

func SupportedType

func SupportedType(dataType string) bool

Types

type ABIComponent

type ABIComponent struct {
	// name
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// type
	FieldType string `protobuf:"bytes,2,opt,name=field_type,json=fieldType,proto3" json:"field_type,omitempty"`
	// consider taking this recursion out and make it once only
	NestedComponent []*ABIComponent `protobuf:"bytes,3,rep,name=nested_component,json=nestedComponent,proto3" json:"nested_component,omitempty"`
}

ABIComponent is a specification for how to interpret abi_components

func (*ABIComponent) Descriptor

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

func (*ABIComponent) GetFieldType

func (m *ABIComponent) GetFieldType() string

func (*ABIComponent) GetName

func (m *ABIComponent) GetName() string

func (*ABIComponent) GetNestedComponent

func (m *ABIComponent) GetNestedComponent() []*ABIComponent

func (*ABIComponent) Marshal

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

func (*ABIComponent) MarshalTo

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

func (*ABIComponent) MarshalToSizedBuffer

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

func (*ABIComponent) ProtoMessage

func (*ABIComponent) ProtoMessage()

func (*ABIComponent) Reset

func (m *ABIComponent) Reset()

func (*ABIComponent) Size

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

func (*ABIComponent) String

func (m *ABIComponent) String() string

func (*ABIComponent) Unmarshal

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

func (*ABIComponent) XXX_DiscardUnknown

func (m *ABIComponent) XXX_DiscardUnknown()

func (*ABIComponent) XXX_Marshal

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

func (*ABIComponent) XXX_Merge

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

func (*ABIComponent) XXX_Size

func (m *ABIComponent) XXX_Size() int

func (*ABIComponent) XXX_Unmarshal

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

type AccountKeeper

type AccountKeeper interface {
	GetAccount(ctx context.Context, addr sdk.AccAddress) sdk.AccountI
}

AccountKeeper defines the expected account keeper used for simulations (noalias)

type BankKeeper

type BankKeeper interface {
	SpendableCoins(ctx context.Context, addr sdk.AccAddress) sdk.Coins
}

BankKeeper defines the expected interface needed to retrieve account balances.

type DataSpec

type DataSpec struct {
	// ipfs hash of the data spec
	DocumentHash string `protobuf:"bytes,1,opt,name=document_hash,json=documentHash,proto3" json:"document_hash,omitempty"`
	// the value's datatype for decoding the value
	ResponseValueType string `protobuf:"bytes,2,opt,name=response_value_type,json=responseValueType,proto3" json:"response_value_type,omitempty"`
	// the abi components for decoding
	AbiComponents []*ABIComponent `protobuf:"bytes,3,rep,name=abi_components,json=abiComponents,proto3" json:"abi_components,omitempty"`
	// how to aggregate the data (ie. average, median, mode, etc) for aggregating reports and arriving at final value
	AggregationMethod string `protobuf:"bytes,4,opt,name=aggregation_method,json=aggregationMethod,proto3" json:"aggregation_method,omitempty"`
	// address that originally registered the data spec
	Registrar string `protobuf:"bytes,5,opt,name=registrar,proto3" json:"registrar,omitempty"`
	// report_buffer_window specifies the duration of the time window following an initial report
	// during which additional reports can be submitted. This duration acts as a buffer, allowing
	// a collection of related reports in a defined time frame. The window ensures that all
	// pertinent reports are aggregated together before arriving at a final value. This defaults
	// to 0s if not specified.
	// extensions: treat as a golang time.duration, don't allow nil values, don't omit empty values
	ReportBlockWindow uint64 `protobuf:"varint,6,opt,name=report_block_window,json=reportBlockWindow,proto3" json:"report_block_window,omitempty"`
}

DataSpec is a specification for how to interpret and aggregate data

func GenesisDataSpec

func GenesisDataSpec() DataSpec

genesis spot price data spec

func (DataSpec) DecodeValue

func (d DataSpec) DecodeValue(value string) (string, error)

func (*DataSpec) Descriptor

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

func (DataSpec) EncodeData

func (d DataSpec) EncodeData(querytype, datafields string) ([]byte, error)

func (*DataSpec) GetAbiComponents

func (m *DataSpec) GetAbiComponents() []*ABIComponent

func (*DataSpec) GetAggregationMethod

func (m *DataSpec) GetAggregationMethod() string

func (*DataSpec) GetDocumentHash

func (m *DataSpec) GetDocumentHash() string

func (*DataSpec) GetRegistrar

func (m *DataSpec) GetRegistrar() string

func (*DataSpec) GetReportBlockWindow

func (m *DataSpec) GetReportBlockWindow() uint64

func (*DataSpec) GetResponseValueType

func (m *DataSpec) GetResponseValueType() string

func (DataSpec) MakeArgMarshaller

func (d DataSpec) MakeArgMarshaller() []abi.ArgumentMarshaling

func (*DataSpec) Marshal

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

func (*DataSpec) MarshalTo

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

func (*DataSpec) MarshalToSizedBuffer

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

func (*DataSpec) ProtoMessage

func (*DataSpec) ProtoMessage()

func (*DataSpec) Reset

func (m *DataSpec) Reset()

func (*DataSpec) Size

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

func (*DataSpec) String

func (m *DataSpec) String() string

func (*DataSpec) Unmarshal

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

func (DataSpec) ValidateValue

func (d DataSpec) ValidateValue(value string) error

func (*DataSpec) XXX_DiscardUnknown

func (m *DataSpec) XXX_DiscardUnknown()

func (*DataSpec) XXX_Marshal

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

func (*DataSpec) XXX_Merge

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

func (*DataSpec) XXX_Size

func (m *DataSpec) XXX_Size() int

func (*DataSpec) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// params defines all the paramaters of the registry module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	// Initial data specs
	Dataspec DataSpec `protobuf:"bytes,2,opt,name=dataspec,proto3" json:"dataspec"`
}

GenesisState defines the registry module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetDataspec

func (m *GenesisState) GetDataspec() DataSpec

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// RegisterSpec defines a method for registering a new data specification.
	RegisterSpec(ctx context.Context, in *MsgRegisterSpec, opts ...grpc.CallOption) (*MsgRegisterSpecResponse, error)
	// UpdateDataSpec defines a method for updating an existing data specification.
	UpdateDataSpec(ctx context.Context, in *MsgUpdateDataSpec, opts ...grpc.CallOption) (*MsgUpdateDataSpecResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgRegisterSpec

type MsgRegisterSpec struct {
	// address that registers the data spec
	Registrar string `protobuf:"bytes,1,opt,name=registrar,proto3" json:"registrar,omitempty"`
	// name of the query type (ie. "SpotPrice")
	QueryType string `protobuf:"bytes,2,opt,name=query_type,json=queryType,proto3" json:"query_type,omitempty"`
	// data spec
	Spec DataSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec"`
}

MsgRegisterSpec defines the Msg/RegisterSpec request type.

func NewMsgRegisterSpec

func NewMsgRegisterSpec(registrar, queryType string, spec *DataSpec) *MsgRegisterSpec

func (*MsgRegisterSpec) Descriptor

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

func (*MsgRegisterSpec) GetQueryType

func (m *MsgRegisterSpec) GetQueryType() string

func (*MsgRegisterSpec) GetRegistrar

func (m *MsgRegisterSpec) GetRegistrar() string

func (*MsgRegisterSpec) GetSigners

func (msg *MsgRegisterSpec) GetSigners() []sdk.AccAddress

func (*MsgRegisterSpec) GetSpec

func (m *MsgRegisterSpec) GetSpec() DataSpec

func (*MsgRegisterSpec) Marshal

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

func (*MsgRegisterSpec) MarshalTo

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

func (*MsgRegisterSpec) MarshalToSizedBuffer

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

func (*MsgRegisterSpec) ProtoMessage

func (*MsgRegisterSpec) ProtoMessage()

func (*MsgRegisterSpec) Reset

func (m *MsgRegisterSpec) Reset()

func (*MsgRegisterSpec) Route

func (msg *MsgRegisterSpec) Route() string

func (*MsgRegisterSpec) Size

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

func (*MsgRegisterSpec) String

func (m *MsgRegisterSpec) String() string

func (*MsgRegisterSpec) Type

func (msg *MsgRegisterSpec) Type() string

func (*MsgRegisterSpec) Unmarshal

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

func (*MsgRegisterSpec) ValidateBasic

func (msg *MsgRegisterSpec) ValidateBasic() error

func (*MsgRegisterSpec) XXX_DiscardUnknown

func (m *MsgRegisterSpec) XXX_DiscardUnknown()

func (*MsgRegisterSpec) XXX_Marshal

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

func (*MsgRegisterSpec) XXX_Merge

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

func (*MsgRegisterSpec) XXX_Size

func (m *MsgRegisterSpec) XXX_Size() int

func (*MsgRegisterSpec) XXX_Unmarshal

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

type MsgRegisterSpecResponse

type MsgRegisterSpecResponse struct {
}

MsgRegisterSpecResponse defines the Msg/RegisterSpec response type.

func (*MsgRegisterSpecResponse) Descriptor

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

func (*MsgRegisterSpecResponse) Marshal

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

func (*MsgRegisterSpecResponse) MarshalTo

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

func (*MsgRegisterSpecResponse) MarshalToSizedBuffer

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

func (*MsgRegisterSpecResponse) ProtoMessage

func (*MsgRegisterSpecResponse) ProtoMessage()

func (*MsgRegisterSpecResponse) Reset

func (m *MsgRegisterSpecResponse) Reset()

func (*MsgRegisterSpecResponse) Size

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

func (*MsgRegisterSpecResponse) String

func (m *MsgRegisterSpecResponse) String() string

func (*MsgRegisterSpecResponse) Unmarshal

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

func (*MsgRegisterSpecResponse) XXX_DiscardUnknown

func (m *MsgRegisterSpecResponse) XXX_DiscardUnknown()

func (*MsgRegisterSpecResponse) XXX_Marshal

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

func (*MsgRegisterSpecResponse) XXX_Merge

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

func (*MsgRegisterSpecResponse) XXX_Size

func (m *MsgRegisterSpecResponse) XXX_Size() int

func (*MsgRegisterSpecResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// RegisterSpec defines a method for registering a new data specification.
	RegisterSpec(context.Context, *MsgRegisterSpec) (*MsgRegisterSpecResponse, error)
	// UpdateDataSpec defines a method for updating an existing data specification.
	UpdateDataSpec(context.Context, *MsgUpdateDataSpec) (*MsgUpdateDataSpecResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateDataSpec

type MsgUpdateDataSpec struct {
	// authority is the address that is allowed calling this msg.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// query type to update
	QueryType string `protobuf:"bytes,2,opt,name=query_type,json=queryType,proto3" json:"query_type,omitempty"`
	// data spec update
	Spec DataSpec `protobuf:"bytes,3,opt,name=spec,proto3" json:"spec"`
}

MsgUpdateDataSpec is the Msg/UpdateDataSpec request type.

func (*MsgUpdateDataSpec) Descriptor

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

func (*MsgUpdateDataSpec) GetAuthority

func (m *MsgUpdateDataSpec) GetAuthority() string

func (*MsgUpdateDataSpec) GetQueryType

func (m *MsgUpdateDataSpec) GetQueryType() string

func (*MsgUpdateDataSpec) GetSpec

func (m *MsgUpdateDataSpec) GetSpec() DataSpec

func (*MsgUpdateDataSpec) Marshal

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

func (*MsgUpdateDataSpec) MarshalTo

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

func (*MsgUpdateDataSpec) MarshalToSizedBuffer

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

func (*MsgUpdateDataSpec) ProtoMessage

func (*MsgUpdateDataSpec) ProtoMessage()

func (*MsgUpdateDataSpec) Reset

func (m *MsgUpdateDataSpec) Reset()

func (*MsgUpdateDataSpec) Size

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

func (*MsgUpdateDataSpec) String

func (m *MsgUpdateDataSpec) String() string

func (*MsgUpdateDataSpec) Unmarshal

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

func (*MsgUpdateDataSpec) XXX_DiscardUnknown

func (m *MsgUpdateDataSpec) XXX_DiscardUnknown()

func (*MsgUpdateDataSpec) XXX_Marshal

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

func (*MsgUpdateDataSpec) XXX_Merge

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

func (*MsgUpdateDataSpec) XXX_Size

func (m *MsgUpdateDataSpec) XXX_Size() int

func (*MsgUpdateDataSpec) XXX_Unmarshal

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

type MsgUpdateDataSpecResponse

type MsgUpdateDataSpecResponse struct {
}

func (*MsgUpdateDataSpecResponse) Descriptor

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

func (*MsgUpdateDataSpecResponse) Marshal

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

func (*MsgUpdateDataSpecResponse) MarshalTo

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

func (*MsgUpdateDataSpecResponse) MarshalToSizedBuffer

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

func (*MsgUpdateDataSpecResponse) ProtoMessage

func (*MsgUpdateDataSpecResponse) ProtoMessage()

func (*MsgUpdateDataSpecResponse) Reset

func (m *MsgUpdateDataSpecResponse) Reset()

func (*MsgUpdateDataSpecResponse) Size

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

func (*MsgUpdateDataSpecResponse) String

func (m *MsgUpdateDataSpecResponse) String() string

func (*MsgUpdateDataSpecResponse) Unmarshal

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

func (*MsgUpdateDataSpecResponse) XXX_DiscardUnknown

func (m *MsgUpdateDataSpecResponse) XXX_DiscardUnknown()

func (*MsgUpdateDataSpecResponse) XXX_Marshal

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

func (*MsgUpdateDataSpecResponse) XXX_Merge

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

func (*MsgUpdateDataSpecResponse) XXX_Size

func (m *MsgUpdateDataSpecResponse) XXX_Size() int

func (*MsgUpdateDataSpecResponse) XXX_Unmarshal

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

type MultiRegistryHooks

type MultiRegistryHooks []RegistryHooks

func NewMultiRegistryHooks

func NewMultiRegistryHooks(hooks ...RegistryHooks) MultiRegistryHooks

func (MultiRegistryHooks) AfterDataSpecUpdated

func (h MultiRegistryHooks) AfterDataSpecUpdated(ctx context.Context, querytype string, dataspec DataSpec) error

type Params

type Params struct {
	// max report buffer window
	MaxReportBufferWindow uint64 `` /* 129-byte string literal not displayed */
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams() Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetMaxReportBufferWindow

func (m *Params) GetMaxReportBufferWindow() uint64

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ParamSetPairs

func (p *Params) ParamSetPairs() paramtypes.ParamSetPairs

ParamSetPairs get the params.ParamSet

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (Params) String

func (p Params) String() string

String implements the Stringer interface.

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Queries a list of GetDataSpec items.
	GetDataSpec(ctx context.Context, in *QueryGetDataSpecRequest, opts ...grpc.CallOption) (*QueryGetDataSpecResponse, error)
	// Queries a list of DecodeQuerydata items.
	DecodeQuerydata(ctx context.Context, in *QueryDecodeQuerydataRequest, opts ...grpc.CallOption) (*QueryDecodeQuerydataResponse, error)
	// Queries a list of GenerateQuerydata items.
	GenerateQuerydata(ctx context.Context, in *QueryGenerateQuerydataRequest, opts ...grpc.CallOption) (*QueryGenerateQuerydataResponse, error)
	// Queries a list of DecodeValue items.
	DecodeValue(ctx context.Context, in *QueryDecodeValueRequest, opts ...grpc.CallOption) (*QueryDecodeValueResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryDecodeQuerydataRequest

type QueryDecodeQuerydataRequest struct {
	// query_data is the query data hex string to be decoded.
	QueryData []byte `protobuf:"bytes,1,opt,name=query_data,json=queryData,proto3" json:"query_data,omitempty"`
}

QueryDecodeQuerydataRequest is request type for the Query/DecodeQuerydata RPC method.

func (*QueryDecodeQuerydataRequest) Descriptor

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

func (*QueryDecodeQuerydataRequest) GetQueryData

func (m *QueryDecodeQuerydataRequest) GetQueryData() []byte

func (*QueryDecodeQuerydataRequest) Marshal

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

func (*QueryDecodeQuerydataRequest) MarshalTo

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

func (*QueryDecodeQuerydataRequest) MarshalToSizedBuffer

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

func (*QueryDecodeQuerydataRequest) ProtoMessage

func (*QueryDecodeQuerydataRequest) ProtoMessage()

func (*QueryDecodeQuerydataRequest) Reset

func (m *QueryDecodeQuerydataRequest) Reset()

func (*QueryDecodeQuerydataRequest) Size

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

func (*QueryDecodeQuerydataRequest) String

func (m *QueryDecodeQuerydataRequest) String() string

func (*QueryDecodeQuerydataRequest) Unmarshal

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

func (*QueryDecodeQuerydataRequest) XXX_DiscardUnknown

func (m *QueryDecodeQuerydataRequest) XXX_DiscardUnknown()

func (*QueryDecodeQuerydataRequest) XXX_Marshal

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

func (*QueryDecodeQuerydataRequest) XXX_Merge

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

func (*QueryDecodeQuerydataRequest) XXX_Size

func (m *QueryDecodeQuerydataRequest) XXX_Size() int

func (*QueryDecodeQuerydataRequest) XXX_Unmarshal

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

type QueryDecodeQuerydataResponse

type QueryDecodeQuerydataResponse struct {
	// spec is the decoded json represention of the query data hex string.
	Spec string `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
}

QueryDecodeQuerydataResponse is response type for the Query/DecodeQuerydata RPC method.

func (*QueryDecodeQuerydataResponse) Descriptor

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

func (*QueryDecodeQuerydataResponse) GetSpec

func (m *QueryDecodeQuerydataResponse) GetSpec() string

func (*QueryDecodeQuerydataResponse) Marshal

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

func (*QueryDecodeQuerydataResponse) MarshalTo

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

func (*QueryDecodeQuerydataResponse) MarshalToSizedBuffer

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

func (*QueryDecodeQuerydataResponse) ProtoMessage

func (*QueryDecodeQuerydataResponse) ProtoMessage()

func (*QueryDecodeQuerydataResponse) Reset

func (m *QueryDecodeQuerydataResponse) Reset()

func (*QueryDecodeQuerydataResponse) Size

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

func (*QueryDecodeQuerydataResponse) String

func (*QueryDecodeQuerydataResponse) Unmarshal

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

func (*QueryDecodeQuerydataResponse) XXX_DiscardUnknown

func (m *QueryDecodeQuerydataResponse) XXX_DiscardUnknown()

func (*QueryDecodeQuerydataResponse) XXX_Marshal

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

func (*QueryDecodeQuerydataResponse) XXX_Merge

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

func (*QueryDecodeQuerydataResponse) XXX_Size

func (m *QueryDecodeQuerydataResponse) XXX_Size() int

func (*QueryDecodeQuerydataResponse) XXX_Unmarshal

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

type QueryDecodeValueRequest

type QueryDecodeValueRequest struct {
	// queryType is the key to fetch a the corresponding data spec.
	QueryType string `protobuf:"bytes,1,opt,name=queryType,proto3" json:"queryType,omitempty"`
	// value is the value hex string to be decoded.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

QueryDecodeValueRequest is request type for the Query/DecodeValue RPC method.

func (*QueryDecodeValueRequest) Descriptor

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

func (*QueryDecodeValueRequest) GetQueryType

func (m *QueryDecodeValueRequest) GetQueryType() string

func (*QueryDecodeValueRequest) GetValue

func (m *QueryDecodeValueRequest) GetValue() string

func (*QueryDecodeValueRequest) Marshal

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

func (*QueryDecodeValueRequest) MarshalTo

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

func (*QueryDecodeValueRequest) MarshalToSizedBuffer

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

func (*QueryDecodeValueRequest) ProtoMessage

func (*QueryDecodeValueRequest) ProtoMessage()

func (*QueryDecodeValueRequest) Reset

func (m *QueryDecodeValueRequest) Reset()

func (*QueryDecodeValueRequest) Size

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

func (*QueryDecodeValueRequest) String

func (m *QueryDecodeValueRequest) String() string

func (*QueryDecodeValueRequest) Unmarshal

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

func (*QueryDecodeValueRequest) XXX_DiscardUnknown

func (m *QueryDecodeValueRequest) XXX_DiscardUnknown()

func (*QueryDecodeValueRequest) XXX_Marshal

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

func (*QueryDecodeValueRequest) XXX_Merge

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

func (*QueryDecodeValueRequest) XXX_Size

func (m *QueryDecodeValueRequest) XXX_Size() int

func (*QueryDecodeValueRequest) XXX_Unmarshal

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

type QueryDecodeValueResponse

type QueryDecodeValueResponse struct {
	// decodedValue is the decoded value of the hex string.
	DecodedValue string `protobuf:"bytes,1,opt,name=decodedValue,proto3" json:"decodedValue,omitempty"`
}

QueryDecodeValueResponse is response type for the Query/DecodeValue RPC method.

func (*QueryDecodeValueResponse) Descriptor

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

func (*QueryDecodeValueResponse) GetDecodedValue

func (m *QueryDecodeValueResponse) GetDecodedValue() string

func (*QueryDecodeValueResponse) Marshal

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

func (*QueryDecodeValueResponse) MarshalTo

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

func (*QueryDecodeValueResponse) MarshalToSizedBuffer

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

func (*QueryDecodeValueResponse) ProtoMessage

func (*QueryDecodeValueResponse) ProtoMessage()

func (*QueryDecodeValueResponse) Reset

func (m *QueryDecodeValueResponse) Reset()

func (*QueryDecodeValueResponse) Size

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

func (*QueryDecodeValueResponse) String

func (m *QueryDecodeValueResponse) String() string

func (*QueryDecodeValueResponse) Unmarshal

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

func (*QueryDecodeValueResponse) XXX_DiscardUnknown

func (m *QueryDecodeValueResponse) XXX_DiscardUnknown()

func (*QueryDecodeValueResponse) XXX_Marshal

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

func (*QueryDecodeValueResponse) XXX_Merge

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

func (*QueryDecodeValueResponse) XXX_Size

func (m *QueryDecodeValueResponse) XXX_Size() int

func (*QueryDecodeValueResponse) XXX_Unmarshal

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

type QueryGenerateQuerydataRequest

type QueryGenerateQuerydataRequest struct {
	// querytype for which query_data is to be generated.
	Querytype string `protobuf:"bytes,1,opt,name=querytype,proto3" json:"querytype,omitempty"`
	// parameters for which query_data is to be generated.
	Parameters string `protobuf:"bytes,2,opt,name=parameters,proto3" json:"parameters,omitempty"`
}

QueryGenerateQuerydataRequest is request type for the Query/GenerateQuerydata RPC method.

func (*QueryGenerateQuerydataRequest) Descriptor

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

func (*QueryGenerateQuerydataRequest) GetParameters

func (m *QueryGenerateQuerydataRequest) GetParameters() string

func (*QueryGenerateQuerydataRequest) GetQuerytype

func (m *QueryGenerateQuerydataRequest) GetQuerytype() string

func (*QueryGenerateQuerydataRequest) Marshal

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

func (*QueryGenerateQuerydataRequest) MarshalTo

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

func (*QueryGenerateQuerydataRequest) MarshalToSizedBuffer

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

func (*QueryGenerateQuerydataRequest) ProtoMessage

func (*QueryGenerateQuerydataRequest) ProtoMessage()

func (*QueryGenerateQuerydataRequest) Reset

func (m *QueryGenerateQuerydataRequest) Reset()

func (*QueryGenerateQuerydataRequest) Size

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

func (*QueryGenerateQuerydataRequest) String

func (*QueryGenerateQuerydataRequest) Unmarshal

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

func (*QueryGenerateQuerydataRequest) XXX_DiscardUnknown

func (m *QueryGenerateQuerydataRequest) XXX_DiscardUnknown()

func (*QueryGenerateQuerydataRequest) XXX_Marshal

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

func (*QueryGenerateQuerydataRequest) XXX_Merge

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

func (*QueryGenerateQuerydataRequest) XXX_Size

func (m *QueryGenerateQuerydataRequest) XXX_Size() int

func (*QueryGenerateQuerydataRequest) XXX_Unmarshal

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

type QueryGenerateQuerydataResponse

type QueryGenerateQuerydataResponse struct {
	// query_data is the generated query_data hex string.
	QueryData []byte `protobuf:"bytes,1,opt,name=query_data,json=queryData,proto3" json:"query_data,omitempty"`
}

QueryGenerateQuerydataResponse is response type for the Query/GenerateQuerydata RPC method.

func (*QueryGenerateQuerydataResponse) Descriptor

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

func (*QueryGenerateQuerydataResponse) GetQueryData

func (m *QueryGenerateQuerydataResponse) GetQueryData() []byte

func (*QueryGenerateQuerydataResponse) Marshal

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

func (*QueryGenerateQuerydataResponse) MarshalTo

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

func (*QueryGenerateQuerydataResponse) MarshalToSizedBuffer

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

func (*QueryGenerateQuerydataResponse) ProtoMessage

func (*QueryGenerateQuerydataResponse) ProtoMessage()

func (*QueryGenerateQuerydataResponse) Reset

func (m *QueryGenerateQuerydataResponse) Reset()

func (*QueryGenerateQuerydataResponse) Size

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

func (*QueryGenerateQuerydataResponse) String

func (*QueryGenerateQuerydataResponse) Unmarshal

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

func (*QueryGenerateQuerydataResponse) XXX_DiscardUnknown

func (m *QueryGenerateQuerydataResponse) XXX_DiscardUnknown()

func (*QueryGenerateQuerydataResponse) XXX_Marshal

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

func (*QueryGenerateQuerydataResponse) XXX_Merge

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

func (*QueryGenerateQuerydataResponse) XXX_Size

func (m *QueryGenerateQuerydataResponse) XXX_Size() int

func (*QueryGenerateQuerydataResponse) XXX_Unmarshal

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

type QueryGetDataSpecRequest

type QueryGetDataSpecRequest struct {
	// queryType is the key to fetch a the corresponding data spec.
	QueryType string `protobuf:"bytes,1,opt,name=query_type,json=queryType,proto3" json:"query_type,omitempty"`
}

QueryGetDataSpecRequest is request type for the Query/GetDataSpec RPC method.

func (*QueryGetDataSpecRequest) Descriptor

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

func (*QueryGetDataSpecRequest) GetQueryType

func (m *QueryGetDataSpecRequest) GetQueryType() string

func (*QueryGetDataSpecRequest) Marshal

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

func (*QueryGetDataSpecRequest) MarshalTo

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

func (*QueryGetDataSpecRequest) MarshalToSizedBuffer

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

func (*QueryGetDataSpecRequest) ProtoMessage

func (*QueryGetDataSpecRequest) ProtoMessage()

func (*QueryGetDataSpecRequest) Reset

func (m *QueryGetDataSpecRequest) Reset()

func (*QueryGetDataSpecRequest) Size

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

func (*QueryGetDataSpecRequest) String

func (m *QueryGetDataSpecRequest) String() string

func (*QueryGetDataSpecRequest) Unmarshal

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

func (*QueryGetDataSpecRequest) XXX_DiscardUnknown

func (m *QueryGetDataSpecRequest) XXX_DiscardUnknown()

func (*QueryGetDataSpecRequest) XXX_Marshal

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

func (*QueryGetDataSpecRequest) XXX_Merge

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

func (*QueryGetDataSpecRequest) XXX_Size

func (m *QueryGetDataSpecRequest) XXX_Size() int

func (*QueryGetDataSpecRequest) XXX_Unmarshal

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

type QueryGetDataSpecResponse

type QueryGetDataSpecResponse struct {
	// spec is the data spec corresponding to the query type.
	Spec *DataSpec `protobuf:"bytes,1,opt,name=spec,proto3" json:"spec,omitempty"`
}

QueryGetDataSpecResponse is response type for the Query/GetDataSpec RPC method.

func (*QueryGetDataSpecResponse) Descriptor

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

func (*QueryGetDataSpecResponse) GetSpec

func (m *QueryGetDataSpecResponse) GetSpec() *DataSpec

func (*QueryGetDataSpecResponse) Marshal

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

func (*QueryGetDataSpecResponse) MarshalTo

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

func (*QueryGetDataSpecResponse) MarshalToSizedBuffer

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

func (*QueryGetDataSpecResponse) ProtoMessage

func (*QueryGetDataSpecResponse) ProtoMessage()

func (*QueryGetDataSpecResponse) Reset

func (m *QueryGetDataSpecResponse) Reset()

func (*QueryGetDataSpecResponse) Size

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

func (*QueryGetDataSpecResponse) String

func (m *QueryGetDataSpecResponse) String() string

func (*QueryGetDataSpecResponse) Unmarshal

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

func (*QueryGetDataSpecResponse) XXX_DiscardUnknown

func (m *QueryGetDataSpecResponse) XXX_DiscardUnknown()

func (*QueryGetDataSpecResponse) XXX_Marshal

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

func (*QueryGetDataSpecResponse) XXX_Merge

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

func (*QueryGetDataSpecResponse) XXX_Size

func (m *QueryGetDataSpecResponse) XXX_Size() int

func (*QueryGetDataSpecResponse) XXX_Unmarshal

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

type QueryParamsRequest

type QueryParamsRequest struct {
}

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

func (*QueryParamsRequest) Descriptor

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

func (*QueryParamsRequest) Marshal

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

func (*QueryParamsRequest) MarshalTo

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

func (*QueryParamsRequest) MarshalToSizedBuffer

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

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) Reset

func (m *QueryParamsRequest) Reset()

func (*QueryParamsRequest) Size

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

func (*QueryParamsRequest) String

func (m *QueryParamsRequest) String() string

func (*QueryParamsRequest) Unmarshal

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

func (*QueryParamsRequest) XXX_DiscardUnknown

func (m *QueryParamsRequest) XXX_DiscardUnknown()

func (*QueryParamsRequest) XXX_Marshal

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

func (*QueryParamsRequest) XXX_Merge

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

func (*QueryParamsRequest) XXX_Size

func (m *QueryParamsRequest) XXX_Size() int

func (*QueryParamsRequest) XXX_Unmarshal

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

type QueryParamsResponse

type QueryParamsResponse struct {
	// params holds all the parameters of this module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

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

func (*QueryParamsResponse) Descriptor

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

func (*QueryParamsResponse) GetParams

func (m *QueryParamsResponse) GetParams() Params

func (*QueryParamsResponse) Marshal

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

func (*QueryParamsResponse) MarshalTo

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

func (*QueryParamsResponse) MarshalToSizedBuffer

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

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) Reset

func (m *QueryParamsResponse) Reset()

func (*QueryParamsResponse) Size

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

func (*QueryParamsResponse) String

func (m *QueryParamsResponse) String() string

func (*QueryParamsResponse) Unmarshal

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

func (*QueryParamsResponse) XXX_DiscardUnknown

func (m *QueryParamsResponse) XXX_DiscardUnknown()

func (*QueryParamsResponse) XXX_Marshal

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

func (*QueryParamsResponse) XXX_Merge

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

func (*QueryParamsResponse) XXX_Size

func (m *QueryParamsResponse) XXX_Size() int

func (*QueryParamsResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Queries a list of GetDataSpec items.
	GetDataSpec(context.Context, *QueryGetDataSpecRequest) (*QueryGetDataSpecResponse, error)
	// Queries a list of DecodeQuerydata items.
	DecodeQuerydata(context.Context, *QueryDecodeQuerydataRequest) (*QueryDecodeQuerydataResponse, error)
	// Queries a list of GenerateQuerydata items.
	GenerateQuerydata(context.Context, *QueryGenerateQuerydataRequest) (*QueryGenerateQuerydataResponse, error)
	// Queries a list of DecodeValue items.
	DecodeValue(context.Context, *QueryDecodeValueRequest) (*QueryDecodeValueResponse, error)
}

QueryServer is the server API for Query service.

type RegistryHooks

type RegistryHooks interface {
	AfterDataSpecUpdated(ctx context.Context, querytype string, dataspec DataSpec) error
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) RegisterSpec

func (*UnimplementedMsgServer) UpdateDataSpec

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DecodeQuerydata

func (*UnimplementedQueryServer) DecodeValue

func (*UnimplementedQueryServer) GenerateQuerydata

func (*UnimplementedQueryServer) GetDataSpec

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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