types

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2023 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "spec"

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

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	// MemStoreKey defines the in-memory store key
	MemStoreKey = "mem_spec"

	// Proposals router keys
	ProposalsRouterKey = "specproposals"
)
View Source
const (
	APIInterfaceJsonRPC       = "jsonrpc"
	APIInterfaceTendermintRPC = "tendermintrpc"
	APIInterfaceRest          = "rest"
	APIInterfaceGrpc          = "grpc"
)
View Source
const (
	ParamChangeEventName = "param_change"
	SpecAddEventName     = "spec_add"
	SpecModifyEventName  = "spec_modify"
	SpecRefreshEventName = "spec_refresh"
)
View Source
const (
	EncodingBase64 = "base64"
	EncodingHex    = "hex"
)
View Source
const (
	NOT_APPLICABLE  int64 = -1
	LATEST_BLOCK    int64 = -2
	EARLIEST_BLOCK  int64 = -3
	PENDING_BLOCK   int64 = -4
	SAFE_BLOCK      int64 = -5
	FINALIZED_BLOCK int64 = -6
)
View Source
const (
	DEFAULT_PARSED_RESULT_INDEX = 0
)
View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

View Source
const (
	ProposalSpecAdd = "SpecAdd"
)
View Source
const (
	// SpecKeyPrefix is the prefix to retrieve all Spec
	SpecKeyPrefix = "Spec/value/"
)

Variables

View Source
var (
	ErrInvalidLengthApiCollection        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowApiCollection          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupApiCollection = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrSample = sdkerrors.Register(ModuleName, 1100, "sample error")

	//
	// Proposal errors
	ErrEmptySpecs        = sdkerrors.Register(ModuleName, 2, "specs list is empty")
	ErrEmptyApis         = sdkerrors.Register(ModuleName, 3, "apis list is empty")
	ErrBlankApiName      = sdkerrors.Register(ModuleName, 4, "api name is blank")
	ErrBlankSpecName     = sdkerrors.Register(ModuleName, 5, "spec name is blank")
	ErrDuplicateApiName  = sdkerrors.Register(ModuleName, 6, "api name is not unique")
	ErrSpecNotFound      = sdkerrors.Register(ModuleName, 7, "spec not found")
	ErrDuplicateSpecName = sdkerrors.Register(ModuleName, 8, "spec name is not unique")
	ErrChainNameNotFound = sdkerrors.Register(ModuleName, 9, "chain name not found")
)

x/spec 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 (
	KeyMaxCU            = []byte("MaxCU")
	DefaultMaxCU uint64 = 10000
)
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 (
	ErrInvalidLengthSpec        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSpec          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSpec = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthSpecAddProposal        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowSpecAddProposal          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupSpecAddProposal = fmt.Errorf("proto: unexpected end of group")
)
View Source
var EXTENSION_name = map[int32]string{
	0: "NONE",
	1: "ARCHIVE",
}
View Source
var EXTENSION_value = map[string]int32{
	"NONE":    0,
	"ARCHIVE": 1,
}
View Source
var FUNCTION_TAG_name = map[int32]string{
	0: "DISABLED",
	1: "GET_BLOCKNUM",
	2: "GET_BLOCK_BY_NUM",
	3: "SET_LATEST_IN_METADATA",
	4: "SET_LATEST_IN_BODY",
	5: "VERIFICATION",
}
View Source
var FUNCTION_TAG_value = map[string]int32{
	"DISABLED":               0,
	"GET_BLOCKNUM":           1,
	"GET_BLOCK_BY_NUM":       2,
	"SET_LATEST_IN_METADATA": 3,
	"SET_LATEST_IN_BODY":     4,
	"VERIFICATION":           5,
}
View Source
var Header_HeaderType_name = map[int32]string{
	0: "pass_send",
	1: "pass_reply",
	2: "pass_both",
	3: "pass_ignore",
}
View Source
var Header_HeaderType_value = map[string]int32{
	"pass_send":   0,
	"pass_reply":  1,
	"pass_both":   2,
	"pass_ignore": 3,
}
View Source
var PARSER_FUNC_name = map[int32]string{
	0: "EMPTY",
	1: "PARSE_BY_ARG",
	2: "PARSE_CANONICAL",
	3: "PARSE_DICTIONARY",
	4: "PARSE_DICTIONARY_OR_ORDERED",
	6: "DEFAULT",
}
View Source
var PARSER_FUNC_value = map[string]int32{
	"EMPTY":                       0,
	"PARSE_BY_ARG":                1,
	"PARSE_CANONICAL":             2,
	"PARSE_DICTIONARY":            3,
	"PARSE_DICTIONARY_OR_ORDERED": 4,
	"DEFAULT":                     6,
}
View Source
var Spec_ProvidersTypes_name = map[int32]string{
	0: "dynamic",
	1: "static",
}
View Source
var Spec_ProvidersTypes_value = map[string]int32{
	"dynamic": 0,
	"static":  1,
}

Functions

func CombineFields

func CombineFields[T Combinable](childCombinables map[string]CurrentContainer, parentCombinables []T, mergedMap map[string]interface{}, mergedCombinables []T, allowOverwrite bool) ([]T, map[string]interface{}, error)

this function is used to combine combinables from the parents and the current collection and combine them into the current collection it takes a map of current existing combinables, the parent combinables in mergedMap, the list of combinables from the parents, and the list of combinables in the current spec toCombine and currentMap hold the same data arranged in a different set, the same for mergedMap and combineFrom

func CombineUnique

func CombineUnique[T Combinable](appendFrom, appendTo []T, currentMap map[string]CurrentContainer, allowOverwrite bool) ([]T, error)

func GetCurrentFromCombinable

func GetCurrentFromCombinable[T Combinable](current []T) (currentMap map[string]CurrentContainer)

func IsFinalizedBlock

func IsFinalizedBlock(requestedBlock, latestBlock int64, finalizationCriteria uint32) bool

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable the param key table for launch module

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

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

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

func RegisterQueryHandlerClient

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

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

func RegisterQueryHandlerFromEndpoint

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

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

func RegisterQueryHandlerServer

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

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

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func SpecKey

func SpecKey(
	index string,
) []byte

SpecKey returns the store key to retrieve a Spec from the index fields

Types

type AccountKeeper

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

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

type Api

type Api struct {
	Enabled           bool         `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	Name              string       `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	ComputeUnits      uint64       `protobuf:"varint,3,opt,name=compute_units,json=computeUnits,proto3" json:"compute_units,omitempty"`
	ExtraComputeUnits uint64       `protobuf:"varint,4,opt,name=extra_compute_units,json=extraComputeUnits,proto3" json:"extra_compute_units,omitempty"`
	Category          SpecCategory `protobuf:"bytes,6,opt,name=category,proto3" json:"category"`
	BlockParsing      BlockParser  `protobuf:"bytes,7,opt,name=block_parsing,json=blockParsing,proto3" json:"block_parsing"`
}

func (*Api) Descriptor

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

func (*Api) Differeniator

func (api *Api) Differeniator() string

func (*Api) Equal

func (this *Api) Equal(that interface{}) bool

func (*Api) GetBlockParsing

func (m *Api) GetBlockParsing() BlockParser

func (*Api) GetCategory

func (m *Api) GetCategory() SpecCategory

func (*Api) GetComputeUnits

func (m *Api) GetComputeUnits() uint64

func (*Api) GetEnabled

func (m *Api) GetEnabled() bool

func (*Api) GetExtraComputeUnits

func (m *Api) GetExtraComputeUnits() uint64

func (*Api) GetName

func (m *Api) GetName() string

func (*Api) Marshal

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

func (*Api) MarshalTo

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

func (*Api) MarshalToSizedBuffer

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

func (*Api) Overwrite

func (api *Api) Overwrite(other Combinable) (Combinable, bool)

func (*Api) ProtoMessage

func (*Api) ProtoMessage()

func (*Api) Reset

func (m *Api) Reset()

func (*Api) Size

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

func (*Api) String

func (m *Api) String() string

func (*Api) Unmarshal

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

func (*Api) XXX_DiscardUnknown

func (m *Api) XXX_DiscardUnknown()

func (*Api) XXX_Marshal

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

func (*Api) XXX_Merge

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

func (*Api) XXX_Size

func (m *Api) XXX_Size() int

func (*Api) XXX_Unmarshal

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

type ApiCollection

type ApiCollection struct {
	Enabled         bool              `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
	CollectionData  CollectionData    `protobuf:"bytes,2,opt,name=collection_data,json=collectionData,proto3" json:"collection_data"`
	Apis            []*Api            `protobuf:"bytes,3,rep,name=apis,proto3" json:"apis,omitempty"`
	Headers         []*Header         `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"`
	InheritanceApis []*CollectionData `protobuf:"bytes,5,rep,name=inheritance_apis,json=inheritanceApis,proto3" json:"inheritance_apis,omitempty"`
	ParseDirectives []*ParseDirective `protobuf:"bytes,6,rep,name=parse_directives,json=parseDirectives,proto3" json:"parse_directives,omitempty"`
	Extensions      []*Extension      `protobuf:"bytes,7,rep,name=extensions,proto3" json:"extensions,omitempty"`
	Verifications   []*Verification   `protobuf:"bytes,8,rep,name=verifications,proto3" json:"verifications,omitempty"`
}

func (*ApiCollection) CombineWithOthers

func (apic *ApiCollection) CombineWithOthers(others []*ApiCollection, combineWithDisabled, allowOverwrite bool) (err error)

this function combines apis, headers and parsers into the api collection from others. it does not check type compatibility changes in place inside the apic nil merge maps means not to combine that field

func (*ApiCollection) Descriptor

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

func (*ApiCollection) Equal

func (this *ApiCollection) Equal(that interface{}) bool

func (*ApiCollection) Equals

func (apic *ApiCollection) Equals(other *ApiCollection) bool

func (*ApiCollection) Expand

func (apic *ApiCollection) Expand(myCollections map[CollectionData]*ApiCollection, dependencies map[CollectionData]struct{}) error

expand is called within the same spec apiCollections, to manage inheritance within collections of different add_ons

func (*ApiCollection) GetApis

func (m *ApiCollection) GetApis() []*Api

func (*ApiCollection) GetCollectionData

func (m *ApiCollection) GetCollectionData() CollectionData

func (*ApiCollection) GetEnabled

func (m *ApiCollection) GetEnabled() bool

func (*ApiCollection) GetExtensions

func (m *ApiCollection) GetExtensions() []*Extension

func (*ApiCollection) GetHeaders

func (m *ApiCollection) GetHeaders() []*Header

func (*ApiCollection) GetInheritanceApis

func (m *ApiCollection) GetInheritanceApis() []*CollectionData

func (*ApiCollection) GetParseDirectives

func (m *ApiCollection) GetParseDirectives() []*ParseDirective

func (*ApiCollection) GetVerifications

func (m *ApiCollection) GetVerifications() []*Verification

func (*ApiCollection) Inherit

func (apic *ApiCollection) Inherit(relevantCollections []*ApiCollection, dependencies map[CollectionData]struct{}) error

inherit is

func (*ApiCollection) InheritAllFields

func (apic *ApiCollection) InheritAllFields(myCollections map[CollectionData]*ApiCollection, relevantParentCollections []*ApiCollection) error

assumes relevantParentCollections are already expanded

func (*ApiCollection) Marshal

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

func (*ApiCollection) MarshalTo

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

func (*ApiCollection) MarshalToSizedBuffer

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

func (*ApiCollection) ProtoMessage

func (*ApiCollection) ProtoMessage()

func (*ApiCollection) Reset

func (m *ApiCollection) Reset()

func (*ApiCollection) Size

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

func (*ApiCollection) String

func (m *ApiCollection) String() string

func (*ApiCollection) Unmarshal

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

func (*ApiCollection) XXX_DiscardUnknown

func (m *ApiCollection) XXX_DiscardUnknown()

func (*ApiCollection) XXX_Marshal

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

func (*ApiCollection) XXX_Merge

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

func (*ApiCollection) XXX_Size

func (m *ApiCollection) XXX_Size() int

func (*ApiCollection) XXX_Unmarshal

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

type ApiList

type ApiList struct {
	Interface     string   `protobuf:"bytes,4,opt,name=interface,proto3" json:"interface,omitempty"`
	SupportedApis []string `protobuf:"bytes,5,rep,name=supportedApis,proto3" json:"supportedApis,omitempty"`
	Addon         string   `protobuf:"bytes,6,opt,name=addon,proto3" json:"addon,omitempty"`
}

func (*ApiList) Descriptor

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

func (*ApiList) GetAddon

func (m *ApiList) GetAddon() string

func (*ApiList) GetInterface

func (m *ApiList) GetInterface() string

func (*ApiList) GetSupportedApis

func (m *ApiList) GetSupportedApis() []string

func (*ApiList) Marshal

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

func (*ApiList) MarshalTo

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

func (*ApiList) MarshalToSizedBuffer

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

func (*ApiList) ProtoMessage

func (*ApiList) ProtoMessage()

func (*ApiList) Reset

func (m *ApiList) Reset()

func (*ApiList) Size

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

func (*ApiList) String

func (m *ApiList) String() string

func (*ApiList) Unmarshal

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

func (*ApiList) XXX_DiscardUnknown

func (m *ApiList) XXX_DiscardUnknown()

func (*ApiList) XXX_Marshal

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

func (*ApiList) XXX_Merge

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

func (*ApiList) XXX_Size

func (m *ApiList) XXX_Size() int

func (*ApiList) XXX_Unmarshal

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

type BankKeeper

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

BankKeeper defines the expected interface needed to retrieve account balances.

type BlockParser

type BlockParser struct {
	ParserArg    []string    `protobuf:"bytes,1,rep,name=parser_arg,json=parserArg,proto3" json:"parser_arg,omitempty"`
	ParserFunc   PARSER_FUNC `` /* 127-byte string literal not displayed */
	DefaultValue string      `protobuf:"bytes,3,opt,name=default_value,json=defaultValue,proto3" json:"default_value,omitempty"`
	Encoding     string      `protobuf:"bytes,4,opt,name=encoding,proto3" json:"encoding,omitempty"`
}

func (*BlockParser) Descriptor

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

func (*BlockParser) Equal

func (this *BlockParser) Equal(that interface{}) bool

func (*BlockParser) GetDefaultValue

func (m *BlockParser) GetDefaultValue() string

func (*BlockParser) GetEncoding

func (m *BlockParser) GetEncoding() string

func (*BlockParser) GetParserArg

func (m *BlockParser) GetParserArg() []string

func (*BlockParser) GetParserFunc

func (m *BlockParser) GetParserFunc() PARSER_FUNC

func (*BlockParser) Marshal

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

func (*BlockParser) MarshalTo

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

func (*BlockParser) MarshalToSizedBuffer

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

func (*BlockParser) ProtoMessage

func (*BlockParser) ProtoMessage()

func (*BlockParser) Reset

func (m *BlockParser) Reset()

func (*BlockParser) Size

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

func (*BlockParser) String

func (m *BlockParser) String() string

func (*BlockParser) Unmarshal

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

func (*BlockParser) XXX_DiscardUnknown

func (m *BlockParser) XXX_DiscardUnknown()

func (*BlockParser) XXX_Marshal

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

func (*BlockParser) XXX_Merge

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

func (*BlockParser) XXX_Size

func (m *BlockParser) XXX_Size() int

func (*BlockParser) XXX_Unmarshal

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

type CollectionData

type CollectionData struct {
	ApiInterface string `protobuf:"bytes,1,opt,name=api_interface,json=apiInterface,proto3" json:"api_interface" mapstructure:"api_interface"`
	InternalPath string `protobuf:"bytes,2,opt,name=internal_path,json=internalPath,proto3" json:"internal_path" mapstructure:"internal_path"`
	Type         string `protobuf:"bytes,3,opt,name=type,proto3" json:"type" mapstructure:"type"`
	AddOn        string `protobuf:"bytes,4,opt,name=add_on,json=addOn,proto3" json:"add_on" mapstructure:"add_on"`
}

func (*CollectionData) CanExpand

func (cd *CollectionData) CanExpand(other *CollectionData) bool

this means the current collection data can be expanded from other, i.e other is allowed to be in InheritanceApis

func (*CollectionData) Descriptor

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

func (*CollectionData) Equal

func (this *CollectionData) Equal(that interface{}) bool

func (*CollectionData) GetAddOn

func (m *CollectionData) GetAddOn() string

func (*CollectionData) GetApiInterface

func (m *CollectionData) GetApiInterface() string

func (*CollectionData) GetInternalPath

func (m *CollectionData) GetInternalPath() string

func (*CollectionData) GetType

func (m *CollectionData) GetType() string

func (*CollectionData) Marshal

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

func (*CollectionData) MarshalTo

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

func (*CollectionData) MarshalToSizedBuffer

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

func (*CollectionData) ProtoMessage

func (*CollectionData) ProtoMessage()

func (*CollectionData) Reset

func (m *CollectionData) Reset()

func (*CollectionData) Size

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

func (*CollectionData) String

func (m *CollectionData) String() string

func (*CollectionData) Unmarshal

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

func (*CollectionData) XXX_DiscardUnknown

func (m *CollectionData) XXX_DiscardUnknown()

func (*CollectionData) XXX_Marshal

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

func (*CollectionData) XXX_Merge

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

func (*CollectionData) XXX_Size

func (m *CollectionData) XXX_Size() int

func (*CollectionData) XXX_Unmarshal

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

type Combinable

type Combinable interface {
	Differeniator() string
	GetEnabled() bool
	Equal(interface{}) bool
	Overwrite(other Combinable) (overwritten Combinable, isOverwritten bool) // combinable.Overwrite(other) is called when combinable is overwriting other
}

type CurrentContainer

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

type EXTENSION

type EXTENSION int32
const (
	EXTENSION_NONE    EXTENSION = 0
	EXTENSION_ARCHIVE EXTENSION = 1
)

func (EXTENSION) EnumDescriptor

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

func (EXTENSION) String

func (x EXTENSION) String() string

type Extension

type Extension struct {
	Name         string  `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	CuMultiplier float32 `protobuf:"fixed32,2,opt,name=cu_multiplier,json=cuMultiplier,proto3" json:"cu_multiplier,omitempty"`
	Rule         *Rule   `protobuf:"bytes,3,opt,name=rule,proto3" json:"rule,omitempty"`
}

func (*Extension) Descriptor

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

func (*Extension) Differeniator

func (e *Extension) Differeniator() string

func (*Extension) Equal

func (this *Extension) Equal(that interface{}) bool

func (*Extension) GetCuMultiplier

func (m *Extension) GetCuMultiplier() float32

func (*Extension) GetEnabled

func (h *Extension) GetEnabled() bool

func (*Extension) GetName

func (m *Extension) GetName() string

func (*Extension) GetRule

func (m *Extension) GetRule() *Rule

func (*Extension) Marshal

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

func (*Extension) MarshalTo

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

func (*Extension) MarshalToSizedBuffer

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

func (*Extension) Overwrite

func (e *Extension) Overwrite(Combinable) (Combinable, bool)

func (*Extension) ProtoMessage

func (*Extension) ProtoMessage()

func (*Extension) Reset

func (m *Extension) Reset()

func (*Extension) Size

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

func (*Extension) String

func (m *Extension) String() string

func (*Extension) Unmarshal

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

func (*Extension) XXX_DiscardUnknown

func (m *Extension) XXX_DiscardUnknown()

func (*Extension) XXX_Marshal

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

func (*Extension) XXX_Merge

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

func (*Extension) XXX_Size

func (m *Extension) XXX_Size() int

func (*Extension) XXX_Unmarshal

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

type FUNCTION_TAG

type FUNCTION_TAG int32
const (
	FUNCTION_TAG_DISABLED               FUNCTION_TAG = 0
	FUNCTION_TAG_GET_BLOCKNUM           FUNCTION_TAG = 1
	FUNCTION_TAG_GET_BLOCK_BY_NUM       FUNCTION_TAG = 2
	FUNCTION_TAG_SET_LATEST_IN_METADATA FUNCTION_TAG = 3
	FUNCTION_TAG_SET_LATEST_IN_BODY     FUNCTION_TAG = 4
	FUNCTION_TAG_VERIFICATION           FUNCTION_TAG = 5
)

func (FUNCTION_TAG) EnumDescriptor

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

func (FUNCTION_TAG) MarshalJSON

func (s FUNCTION_TAG) MarshalJSON() ([]byte, error)

allows unmarshaling parser func

func (FUNCTION_TAG) String

func (x FUNCTION_TAG) String() string

func (*FUNCTION_TAG) UnmarshalJSON

func (s *FUNCTION_TAG) UnmarshalJSON(b []byte) error

UnmarshalJSON unmashals a quoted json string to the enum value

type GenesisState

type GenesisState struct {
	Params    Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	SpecList  []Spec `protobuf:"bytes,2,rep,name=specList,proto3" json:"specList"`
	SpecCount uint64 `protobuf:"varint,3,opt,name=specCount,proto3" json:"specCount,omitempty"`
}

GenesisState defines the spec module's genesis state.

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetSpecCount

func (m *GenesisState) GetSpecCount() uint64

func (*GenesisState) GetSpecList

func (m *GenesisState) GetSpecList() []Spec

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 Header struct {
	Name        string            `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Kind        Header_HeaderType `protobuf:"varint,2,opt,name=kind,proto3,enum=lavanet.lava.spec.Header_HeaderType" json:"kind,omitempty"`
	FunctionTag FUNCTION_TAG      `` /* 131-byte string literal not displayed */
}

func (*Header) Descriptor

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

func (*Header) Differeniator

func (h *Header) Differeniator() string

func (*Header) Equal

func (this *Header) Equal(that interface{}) bool

func (*Header) GetEnabled

func (h *Header) GetEnabled() bool

func (*Header) GetFunctionTag

func (m *Header) GetFunctionTag() FUNCTION_TAG

func (*Header) GetKind

func (m *Header) GetKind() Header_HeaderType

func (*Header) GetName

func (m *Header) GetName() string

func (*Header) Marshal

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

func (*Header) MarshalTo

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

func (*Header) MarshalToSizedBuffer

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

func (*Header) Overwrite

func (h *Header) Overwrite(Combinable) (Combinable, bool)

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) Reset

func (m *Header) Reset()

func (*Header) Size

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

func (*Header) String

func (m *Header) String() string

func (*Header) Unmarshal

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

func (*Header) XXX_DiscardUnknown

func (m *Header) XXX_DiscardUnknown()

func (*Header) XXX_Marshal

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

func (*Header) XXX_Merge

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

func (*Header) XXX_Size

func (m *Header) XXX_Size() int

func (*Header) XXX_Unmarshal

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

type Header_HeaderType

type Header_HeaderType int32
const (
	Header_pass_send   Header_HeaderType = 0
	Header_pass_reply  Header_HeaderType = 1
	Header_pass_both   Header_HeaderType = 2
	Header_pass_ignore Header_HeaderType = 3
)

func (Header_HeaderType) EnumDescriptor

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

func (Header_HeaderType) MarshalJSON

func (s Header_HeaderType) MarshalJSON() ([]byte, error)

allows unmarshaling header type

func (Header_HeaderType) String

func (x Header_HeaderType) String() string

func (*Header_HeaderType) UnmarshalJSON

func (s *Header_HeaderType) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals a quoted json string to the enum value

type MsgClient

type MsgClient interface {
}

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 MsgServer

type MsgServer interface {
}

MsgServer is the server API for Msg service.

type PARSER_FUNC

type PARSER_FUNC int32
const (
	PARSER_FUNC_EMPTY                       PARSER_FUNC = 0
	PARSER_FUNC_PARSE_BY_ARG                PARSER_FUNC = 1
	PARSER_FUNC_PARSE_CANONICAL             PARSER_FUNC = 2
	PARSER_FUNC_PARSE_DICTIONARY            PARSER_FUNC = 3
	PARSER_FUNC_PARSE_DICTIONARY_OR_ORDERED PARSER_FUNC = 4
	// reserved
	PARSER_FUNC_DEFAULT PARSER_FUNC = 6
)

func (PARSER_FUNC) EnumDescriptor

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

func (PARSER_FUNC) MarshalJSON

func (s PARSER_FUNC) MarshalJSON() ([]byte, error)

allows unmarshaling parser func

func (PARSER_FUNC) String

func (x PARSER_FUNC) String() string

func (*PARSER_FUNC) UnmarshalJSON

func (s *PARSER_FUNC) UnmarshalJSON(b []byte) error

UnmarshalJSON unmashals a quoted json string to the enum value

type Params

type Params struct {
	MaxCU uint64 `protobuf:"varint,2,opt,name=maxCU,proto3" json:"maxCU,omitempty" yaml:"max_compute_units"`
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters

func NewParams

func NewParams(maxCU uint64) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetMaxCU

func (m *Params) GetMaxCU() 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 ParseDirective

type ParseDirective struct {
	FunctionTag      FUNCTION_TAG `` /* 131-byte string literal not displayed */
	FunctionTemplate string       `protobuf:"bytes,2,opt,name=function_template,json=functionTemplate,proto3" json:"function_template,omitempty"`
	ResultParsing    BlockParser  `protobuf:"bytes,3,opt,name=result_parsing,json=resultParsing,proto3" json:"result_parsing"`
	ApiName          string       `protobuf:"bytes,4,opt,name=api_name,json=apiName,proto3" json:"api_name,omitempty"`
}

func (*ParseDirective) Descriptor

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

func (*ParseDirective) Differeniator

func (parsing *ParseDirective) Differeniator() string

func (*ParseDirective) Equal

func (this *ParseDirective) Equal(that interface{}) bool

func (*ParseDirective) GetApiName

func (m *ParseDirective) GetApiName() string

func (*ParseDirective) GetEnabled

func (h *ParseDirective) GetEnabled() bool

func (*ParseDirective) GetFunctionTag

func (m *ParseDirective) GetFunctionTag() FUNCTION_TAG

func (*ParseDirective) GetFunctionTemplate

func (m *ParseDirective) GetFunctionTemplate() string

func (*ParseDirective) GetResultParsing

func (m *ParseDirective) GetResultParsing() BlockParser

func (*ParseDirective) Marshal

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

func (*ParseDirective) MarshalTo

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

func (*ParseDirective) MarshalToSizedBuffer

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

func (*ParseDirective) Overwrite

func (parsing *ParseDirective) Overwrite(Combinable) (Combinable, bool)

func (*ParseDirective) ProtoMessage

func (*ParseDirective) ProtoMessage()

func (*ParseDirective) Reset

func (m *ParseDirective) Reset()

func (*ParseDirective) Size

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

func (*ParseDirective) String

func (m *ParseDirective) String() string

func (*ParseDirective) Unmarshal

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

func (*ParseDirective) XXX_DiscardUnknown

func (m *ParseDirective) XXX_DiscardUnknown()

func (*ParseDirective) XXX_Marshal

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

func (*ParseDirective) XXX_Merge

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

func (*ParseDirective) XXX_Size

func (m *ParseDirective) XXX_Size() int

func (*ParseDirective) XXX_Unmarshal

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

type ParseValue

type ParseValue struct {
	Extension      string `protobuf:"bytes,1,opt,name=extension,proto3" json:"extension,omitempty"`
	ExpectedValue  string `protobuf:"bytes,2,opt,name=expected_value,json=expectedValue,proto3" json:"expected_value,omitempty"`
	LatestDistance uint64 `protobuf:"varint,3,opt,name=latest_distance,json=latestDistance,proto3" json:"latest_distance,omitempty"`
}

func (*ParseValue) Descriptor

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

func (*ParseValue) Equal

func (this *ParseValue) Equal(that interface{}) bool

func (*ParseValue) GetExpectedValue

func (m *ParseValue) GetExpectedValue() string

func (*ParseValue) GetExtension

func (m *ParseValue) GetExtension() string

func (*ParseValue) GetLatestDistance

func (m *ParseValue) GetLatestDistance() uint64

func (*ParseValue) Marshal

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

func (*ParseValue) MarshalTo

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

func (*ParseValue) MarshalToSizedBuffer

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

func (*ParseValue) ProtoMessage

func (*ParseValue) ProtoMessage()

func (*ParseValue) Reset

func (m *ParseValue) Reset()

func (*ParseValue) Size

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

func (*ParseValue) String

func (m *ParseValue) String() string

func (*ParseValue) Unmarshal

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

func (*ParseValue) XXX_DiscardUnknown

func (m *ParseValue) XXX_DiscardUnknown()

func (*ParseValue) XXX_Marshal

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

func (*ParseValue) XXX_Merge

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

func (*ParseValue) XXX_Size

func (m *ParseValue) XXX_Size() int

func (*ParseValue) XXX_Unmarshal

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

type QueryAllSpecRequest

type QueryAllSpecRequest struct {
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllSpecRequest) Descriptor

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

func (*QueryAllSpecRequest) GetPagination

func (m *QueryAllSpecRequest) GetPagination() *query.PageRequest

func (*QueryAllSpecRequest) Marshal

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

func (*QueryAllSpecRequest) MarshalTo

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

func (*QueryAllSpecRequest) MarshalToSizedBuffer

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

func (*QueryAllSpecRequest) ProtoMessage

func (*QueryAllSpecRequest) ProtoMessage()

func (*QueryAllSpecRequest) Reset

func (m *QueryAllSpecRequest) Reset()

func (*QueryAllSpecRequest) Size

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

func (*QueryAllSpecRequest) String

func (m *QueryAllSpecRequest) String() string

func (*QueryAllSpecRequest) Unmarshal

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

func (*QueryAllSpecRequest) XXX_DiscardUnknown

func (m *QueryAllSpecRequest) XXX_DiscardUnknown()

func (*QueryAllSpecRequest) XXX_Marshal

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

func (*QueryAllSpecRequest) XXX_Merge

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

func (*QueryAllSpecRequest) XXX_Size

func (m *QueryAllSpecRequest) XXX_Size() int

func (*QueryAllSpecRequest) XXX_Unmarshal

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

type QueryAllSpecResponse

type QueryAllSpecResponse struct {
	Spec       []Spec              `protobuf:"bytes,1,rep,name=Spec,proto3" json:"Spec"`
	Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAllSpecResponse) Descriptor

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

func (*QueryAllSpecResponse) GetPagination

func (m *QueryAllSpecResponse) GetPagination() *query.PageResponse

func (*QueryAllSpecResponse) GetSpec

func (m *QueryAllSpecResponse) GetSpec() []Spec

func (*QueryAllSpecResponse) Marshal

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

func (*QueryAllSpecResponse) MarshalTo

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

func (*QueryAllSpecResponse) MarshalToSizedBuffer

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

func (*QueryAllSpecResponse) ProtoMessage

func (*QueryAllSpecResponse) ProtoMessage()

func (*QueryAllSpecResponse) Reset

func (m *QueryAllSpecResponse) Reset()

func (*QueryAllSpecResponse) Size

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

func (*QueryAllSpecResponse) String

func (m *QueryAllSpecResponse) String() string

func (*QueryAllSpecResponse) Unmarshal

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

func (*QueryAllSpecResponse) XXX_DiscardUnknown

func (m *QueryAllSpecResponse) XXX_DiscardUnknown()

func (*QueryAllSpecResponse) XXX_Marshal

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

func (*QueryAllSpecResponse) XXX_Merge

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

func (*QueryAllSpecResponse) XXX_Size

func (m *QueryAllSpecResponse) XXX_Size() int

func (*QueryAllSpecResponse) XXX_Unmarshal

func (m *QueryAllSpecResponse) 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 Spec by id.
	Spec(ctx context.Context, in *QueryGetSpecRequest, opts ...grpc.CallOption) (*QueryGetSpecResponse, error)
	// Queries a list of Spec items.
	SpecAll(ctx context.Context, in *QueryAllSpecRequest, opts ...grpc.CallOption) (*QueryAllSpecResponse, error)
	// Queries a Spec by id (raw form).
	SpecRaw(ctx context.Context, in *QueryGetSpecRequest, opts ...grpc.CallOption) (*QueryGetSpecResponse, error)
	// Queries a list of Spec items (raw form).
	SpecAllRaw(ctx context.Context, in *QueryAllSpecRequest, opts ...grpc.CallOption) (*QueryAllSpecResponse, error)
	// Queries a list of ShowAllChains items.
	ShowAllChains(ctx context.Context, in *QueryShowAllChainsRequest, opts ...grpc.CallOption) (*QueryShowAllChainsResponse, error)
	// Queries a list of ShowChainInfo items.
	ShowChainInfo(ctx context.Context, in *QueryShowChainInfoRequest, opts ...grpc.CallOption) (*QueryShowChainInfoResponse, 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 QueryGetSpecRequest

type QueryGetSpecRequest struct {
	ChainID string `protobuf:"bytes,1,opt,name=ChainID,proto3" json:"ChainID,omitempty"`
}

func (*QueryGetSpecRequest) Descriptor

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

func (*QueryGetSpecRequest) GetChainID

func (m *QueryGetSpecRequest) GetChainID() string

func (*QueryGetSpecRequest) Marshal

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

func (*QueryGetSpecRequest) MarshalTo

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

func (*QueryGetSpecRequest) MarshalToSizedBuffer

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

func (*QueryGetSpecRequest) ProtoMessage

func (*QueryGetSpecRequest) ProtoMessage()

func (*QueryGetSpecRequest) Reset

func (m *QueryGetSpecRequest) Reset()

func (*QueryGetSpecRequest) Size

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

func (*QueryGetSpecRequest) String

func (m *QueryGetSpecRequest) String() string

func (*QueryGetSpecRequest) Unmarshal

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

func (*QueryGetSpecRequest) XXX_DiscardUnknown

func (m *QueryGetSpecRequest) XXX_DiscardUnknown()

func (*QueryGetSpecRequest) XXX_Marshal

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

func (*QueryGetSpecRequest) XXX_Merge

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

func (*QueryGetSpecRequest) XXX_Size

func (m *QueryGetSpecRequest) XXX_Size() int

func (*QueryGetSpecRequest) XXX_Unmarshal

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

type QueryGetSpecResponse

type QueryGetSpecResponse struct {
	Spec Spec `protobuf:"bytes,1,opt,name=Spec,proto3" json:"Spec"`
}

func (*QueryGetSpecResponse) Descriptor

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

func (*QueryGetSpecResponse) GetSpec

func (m *QueryGetSpecResponse) GetSpec() Spec

func (*QueryGetSpecResponse) Marshal

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

func (*QueryGetSpecResponse) MarshalTo

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

func (*QueryGetSpecResponse) MarshalToSizedBuffer

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

func (*QueryGetSpecResponse) ProtoMessage

func (*QueryGetSpecResponse) ProtoMessage()

func (*QueryGetSpecResponse) Reset

func (m *QueryGetSpecResponse) Reset()

func (*QueryGetSpecResponse) Size

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

func (*QueryGetSpecResponse) String

func (m *QueryGetSpecResponse) String() string

func (*QueryGetSpecResponse) Unmarshal

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

func (*QueryGetSpecResponse) XXX_DiscardUnknown

func (m *QueryGetSpecResponse) XXX_DiscardUnknown()

func (*QueryGetSpecResponse) XXX_Marshal

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

func (*QueryGetSpecResponse) XXX_Merge

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

func (*QueryGetSpecResponse) XXX_Size

func (m *QueryGetSpecResponse) XXX_Size() int

func (*QueryGetSpecResponse) XXX_Unmarshal

func (m *QueryGetSpecResponse) 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 Spec by id.
	Spec(context.Context, *QueryGetSpecRequest) (*QueryGetSpecResponse, error)
	// Queries a list of Spec items.
	SpecAll(context.Context, *QueryAllSpecRequest) (*QueryAllSpecResponse, error)
	// Queries a Spec by id (raw form).
	SpecRaw(context.Context, *QueryGetSpecRequest) (*QueryGetSpecResponse, error)
	// Queries a list of Spec items (raw form).
	SpecAllRaw(context.Context, *QueryAllSpecRequest) (*QueryAllSpecResponse, error)
	// Queries a list of ShowAllChains items.
	ShowAllChains(context.Context, *QueryShowAllChainsRequest) (*QueryShowAllChainsResponse, error)
	// Queries a list of ShowChainInfo items.
	ShowChainInfo(context.Context, *QueryShowChainInfoRequest) (*QueryShowChainInfoResponse, error)
}

QueryServer is the server API for Query service.

type QueryShowAllChainsRequest

type QueryShowAllChainsRequest struct {
}

func (*QueryShowAllChainsRequest) Descriptor

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

func (*QueryShowAllChainsRequest) Marshal

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

func (*QueryShowAllChainsRequest) MarshalTo

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

func (*QueryShowAllChainsRequest) MarshalToSizedBuffer

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

func (*QueryShowAllChainsRequest) ProtoMessage

func (*QueryShowAllChainsRequest) ProtoMessage()

func (*QueryShowAllChainsRequest) Reset

func (m *QueryShowAllChainsRequest) Reset()

func (*QueryShowAllChainsRequest) Size

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

func (*QueryShowAllChainsRequest) String

func (m *QueryShowAllChainsRequest) String() string

func (*QueryShowAllChainsRequest) Unmarshal

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

func (*QueryShowAllChainsRequest) XXX_DiscardUnknown

func (m *QueryShowAllChainsRequest) XXX_DiscardUnknown()

func (*QueryShowAllChainsRequest) XXX_Marshal

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

func (*QueryShowAllChainsRequest) XXX_Merge

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

func (*QueryShowAllChainsRequest) XXX_Size

func (m *QueryShowAllChainsRequest) XXX_Size() int

func (*QueryShowAllChainsRequest) XXX_Unmarshal

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

type QueryShowAllChainsResponse

type QueryShowAllChainsResponse struct {
	ChainInfoList []*ShowAllChainsInfoStruct `protobuf:"bytes,2,rep,name=chainInfoList,proto3" json:"chainInfoList,omitempty"`
}

func (*QueryShowAllChainsResponse) Descriptor

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

func (*QueryShowAllChainsResponse) GetChainInfoList

func (m *QueryShowAllChainsResponse) GetChainInfoList() []*ShowAllChainsInfoStruct

func (*QueryShowAllChainsResponse) Marshal

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

func (*QueryShowAllChainsResponse) MarshalTo

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

func (*QueryShowAllChainsResponse) MarshalToSizedBuffer

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

func (*QueryShowAllChainsResponse) ProtoMessage

func (*QueryShowAllChainsResponse) ProtoMessage()

func (*QueryShowAllChainsResponse) Reset

func (m *QueryShowAllChainsResponse) Reset()

func (*QueryShowAllChainsResponse) Size

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

func (*QueryShowAllChainsResponse) String

func (m *QueryShowAllChainsResponse) String() string

func (*QueryShowAllChainsResponse) Unmarshal

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

func (*QueryShowAllChainsResponse) XXX_DiscardUnknown

func (m *QueryShowAllChainsResponse) XXX_DiscardUnknown()

func (*QueryShowAllChainsResponse) XXX_Marshal

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

func (*QueryShowAllChainsResponse) XXX_Merge

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

func (*QueryShowAllChainsResponse) XXX_Size

func (m *QueryShowAllChainsResponse) XXX_Size() int

func (*QueryShowAllChainsResponse) XXX_Unmarshal

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

type QueryShowChainInfoRequest

type QueryShowChainInfoRequest struct {
	ChainName string `protobuf:"bytes,1,opt,name=chainName,proto3" json:"chainName,omitempty"`
}

func (*QueryShowChainInfoRequest) Descriptor

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

func (*QueryShowChainInfoRequest) GetChainName

func (m *QueryShowChainInfoRequest) GetChainName() string

func (*QueryShowChainInfoRequest) Marshal

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

func (*QueryShowChainInfoRequest) MarshalTo

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

func (*QueryShowChainInfoRequest) MarshalToSizedBuffer

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

func (*QueryShowChainInfoRequest) ProtoMessage

func (*QueryShowChainInfoRequest) ProtoMessage()

func (*QueryShowChainInfoRequest) Reset

func (m *QueryShowChainInfoRequest) Reset()

func (*QueryShowChainInfoRequest) Size

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

func (*QueryShowChainInfoRequest) String

func (m *QueryShowChainInfoRequest) String() string

func (*QueryShowChainInfoRequest) Unmarshal

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

func (*QueryShowChainInfoRequest) XXX_DiscardUnknown

func (m *QueryShowChainInfoRequest) XXX_DiscardUnknown()

func (*QueryShowChainInfoRequest) XXX_Marshal

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

func (*QueryShowChainInfoRequest) XXX_Merge

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

func (*QueryShowChainInfoRequest) XXX_Size

func (m *QueryShowChainInfoRequest) XXX_Size() int

func (*QueryShowChainInfoRequest) XXX_Unmarshal

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

type QueryShowChainInfoResponse

type QueryShowChainInfoResponse struct {
	ChainID                    string     `protobuf:"bytes,1,opt,name=chainID,proto3" json:"chainID,omitempty"`
	Interfaces                 []string   `protobuf:"bytes,2,rep,name=interfaces,proto3" json:"interfaces,omitempty"`
	SupportedApisInterfaceList []*ApiList `protobuf:"bytes,3,rep,name=supportedApisInterfaceList,proto3" json:"supportedApisInterfaceList,omitempty"`
	OptionalInterfaces         []string   `protobuf:"bytes,4,rep,name=optional_interfaces,json=optionalInterfaces,proto3" json:"optional_interfaces,omitempty"`
}

func (*QueryShowChainInfoResponse) Descriptor

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

func (*QueryShowChainInfoResponse) GetChainID

func (m *QueryShowChainInfoResponse) GetChainID() string

func (*QueryShowChainInfoResponse) GetInterfaces

func (m *QueryShowChainInfoResponse) GetInterfaces() []string

func (*QueryShowChainInfoResponse) GetOptionalInterfaces

func (m *QueryShowChainInfoResponse) GetOptionalInterfaces() []string

func (*QueryShowChainInfoResponse) GetSupportedApisInterfaceList

func (m *QueryShowChainInfoResponse) GetSupportedApisInterfaceList() []*ApiList

func (*QueryShowChainInfoResponse) Marshal

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

func (*QueryShowChainInfoResponse) MarshalTo

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

func (*QueryShowChainInfoResponse) MarshalToSizedBuffer

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

func (*QueryShowChainInfoResponse) ProtoMessage

func (*QueryShowChainInfoResponse) ProtoMessage()

func (*QueryShowChainInfoResponse) Reset

func (m *QueryShowChainInfoResponse) Reset()

func (*QueryShowChainInfoResponse) Size

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

func (*QueryShowChainInfoResponse) String

func (m *QueryShowChainInfoResponse) String() string

func (*QueryShowChainInfoResponse) Unmarshal

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

func (*QueryShowChainInfoResponse) XXX_DiscardUnknown

func (m *QueryShowChainInfoResponse) XXX_DiscardUnknown()

func (*QueryShowChainInfoResponse) XXX_Marshal

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

func (*QueryShowChainInfoResponse) XXX_Merge

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

func (*QueryShowChainInfoResponse) XXX_Size

func (m *QueryShowChainInfoResponse) XXX_Size() int

func (*QueryShowChainInfoResponse) XXX_Unmarshal

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

type Rule

type Rule struct {
	Block uint64 `protobuf:"varint,1,opt,name=block,proto3" json:"block,omitempty"`
}

func (*Rule) Descriptor

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

func (*Rule) Equal

func (this *Rule) Equal(that interface{}) bool

func (*Rule) GetBlock

func (m *Rule) GetBlock() uint64

func (*Rule) Marshal

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

func (*Rule) MarshalTo

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

func (*Rule) MarshalToSizedBuffer

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

func (*Rule) ProtoMessage

func (*Rule) ProtoMessage()

func (*Rule) Reset

func (m *Rule) Reset()

func (*Rule) Size

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

func (*Rule) String

func (m *Rule) String() string

func (*Rule) Unmarshal

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

func (*Rule) XXX_DiscardUnknown

func (m *Rule) XXX_DiscardUnknown()

func (*Rule) XXX_Marshal

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

func (*Rule) XXX_Merge

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

func (*Rule) XXX_Size

func (m *Rule) XXX_Size() int

func (*Rule) XXX_Unmarshal

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

type ShowAllChainsInfoStruct

type ShowAllChainsInfoStruct struct {
	ChainName            string   `protobuf:"bytes,1,opt,name=chainName,proto3" json:"chainName,omitempty"`
	ChainID              string   `protobuf:"bytes,2,opt,name=chainID,proto3" json:"chainID,omitempty"`
	EnabledApiInterfaces []string `protobuf:"bytes,3,rep,name=enabledApiInterfaces,proto3" json:"enabledApiInterfaces,omitempty"`
	ApiCount             uint64   `protobuf:"varint,4,opt,name=api_count,json=apiCount,proto3" json:"api_count,omitempty"`
}

func (*ShowAllChainsInfoStruct) Descriptor

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

func (*ShowAllChainsInfoStruct) GetApiCount

func (m *ShowAllChainsInfoStruct) GetApiCount() uint64

func (*ShowAllChainsInfoStruct) GetChainID

func (m *ShowAllChainsInfoStruct) GetChainID() string

func (*ShowAllChainsInfoStruct) GetChainName

func (m *ShowAllChainsInfoStruct) GetChainName() string

func (*ShowAllChainsInfoStruct) GetEnabledApiInterfaces

func (m *ShowAllChainsInfoStruct) GetEnabledApiInterfaces() []string

func (*ShowAllChainsInfoStruct) Marshal

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

func (*ShowAllChainsInfoStruct) MarshalTo

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

func (*ShowAllChainsInfoStruct) MarshalToSizedBuffer

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

func (*ShowAllChainsInfoStruct) ProtoMessage

func (*ShowAllChainsInfoStruct) ProtoMessage()

func (*ShowAllChainsInfoStruct) Reset

func (m *ShowAllChainsInfoStruct) Reset()

func (*ShowAllChainsInfoStruct) Size

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

func (*ShowAllChainsInfoStruct) String

func (m *ShowAllChainsInfoStruct) String() string

func (*ShowAllChainsInfoStruct) Unmarshal

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

func (*ShowAllChainsInfoStruct) XXX_DiscardUnknown

func (m *ShowAllChainsInfoStruct) XXX_DiscardUnknown()

func (*ShowAllChainsInfoStruct) XXX_Marshal

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

func (*ShowAllChainsInfoStruct) XXX_Merge

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

func (*ShowAllChainsInfoStruct) XXX_Size

func (m *ShowAllChainsInfoStruct) XXX_Size() int

func (*ShowAllChainsInfoStruct) XXX_Unmarshal

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

type Spec

type Spec struct {
	Index                         string              `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
	Name                          string              `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Enabled                       bool                `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
	ReliabilityThreshold          uint32              `protobuf:"varint,5,opt,name=reliability_threshold,json=reliabilityThreshold,proto3" json:"reliability_threshold,omitempty"`
	DataReliabilityEnabled        bool                `` /* 130-byte string literal not displayed */
	BlockDistanceForFinalizedData uint32              `` /* 155-byte string literal not displayed */
	BlocksInFinalizationProof     uint32              `` /* 141-byte string literal not displayed */
	AverageBlockTime              int64               `protobuf:"varint,9,opt,name=average_block_time,json=averageBlockTime,proto3" json:"average_block_time,omitempty"`
	AllowedBlockLagForQosSync     int64               `` /* 146-byte string literal not displayed */
	BlockLastUpdated              uint64              `protobuf:"varint,11,opt,name=block_last_updated,json=blockLastUpdated,proto3" json:"block_last_updated,omitempty"`
	MinStakeProvider              types.Coin          `protobuf:"bytes,12,opt,name=min_stake_provider,json=minStakeProvider,proto3" json:"min_stake_provider"`
	MinStakeClient                types.Coin          `protobuf:"bytes,13,opt,name=min_stake_client,json=minStakeClient,proto3" json:"min_stake_client"`
	ProvidersTypes                Spec_ProvidersTypes `` /* 148-byte string literal not displayed */
	Imports                       []string            `protobuf:"bytes,15,rep,name=imports,proto3" json:"imports,omitempty"`
	ApiCollections                []*ApiCollection    `protobuf:"bytes,16,rep,name=api_collections,json=apiCollections,proto3" json:"api_collections,omitempty"`
}

func (*Spec) CombineCollections

func (spec *Spec) CombineCollections(parentsCollections map[CollectionData][]*ApiCollection) error

func (*Spec) Descriptor

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

func (*Spec) Equal

func (this *Spec) Equal(that interface{}) bool

func (*Spec) GetAllowedBlockLagForQosSync

func (m *Spec) GetAllowedBlockLagForQosSync() int64

func (*Spec) GetApiCollections

func (m *Spec) GetApiCollections() []*ApiCollection

func (*Spec) GetAverageBlockTime

func (m *Spec) GetAverageBlockTime() int64

func (*Spec) GetBlockDistanceForFinalizedData

func (m *Spec) GetBlockDistanceForFinalizedData() uint32

func (*Spec) GetBlockLastUpdated

func (m *Spec) GetBlockLastUpdated() uint64

func (*Spec) GetBlocksInFinalizationProof

func (m *Spec) GetBlocksInFinalizationProof() uint32

func (*Spec) GetDataReliabilityEnabled

func (m *Spec) GetDataReliabilityEnabled() bool

func (*Spec) GetEnabled

func (m *Spec) GetEnabled() bool

func (*Spec) GetImports

func (m *Spec) GetImports() []string

func (*Spec) GetIndex

func (m *Spec) GetIndex() string

func (*Spec) GetMinStakeClient added in v0.5.0

func (m *Spec) GetMinStakeClient() types.Coin

func (*Spec) GetMinStakeProvider

func (m *Spec) GetMinStakeProvider() types.Coin

func (*Spec) GetName

func (m *Spec) GetName() string

func (*Spec) GetProvidersTypes

func (m *Spec) GetProvidersTypes() Spec_ProvidersTypes

func (*Spec) GetReliabilityThreshold

func (m *Spec) GetReliabilityThreshold() uint32

func (*Spec) Marshal

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

func (*Spec) MarshalTo

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

func (*Spec) MarshalToSizedBuffer

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

func (*Spec) ProtoMessage

func (*Spec) ProtoMessage()

func (*Spec) Reset

func (m *Spec) Reset()

func (*Spec) ServicesMap

func (spec *Spec) ServicesMap() (addons, extensions map[string]struct{})

func (*Spec) Size

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

func (*Spec) String

func (m *Spec) String() string

func (*Spec) Unmarshal

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

func (Spec) ValidateSpec

func (spec Spec) ValidateSpec(maxCU uint64) (map[string]string, error)

func (*Spec) XXX_DiscardUnknown

func (m *Spec) XXX_DiscardUnknown()

func (*Spec) XXX_Marshal

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

func (*Spec) XXX_Merge

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

func (*Spec) XXX_Size

func (m *Spec) XXX_Size() int

func (*Spec) XXX_Unmarshal

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

type SpecAddProposal

type SpecAddProposal struct {
	Title       string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
	Specs       []Spec `protobuf:"bytes,3,rep,name=specs,proto3" json:"specs"`
}

func NewSpecAddProposal

func NewSpecAddProposal(title, description string, specs []Spec) *SpecAddProposal

func (*SpecAddProposal) Descriptor

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

func (*SpecAddProposal) Equal

func (this *SpecAddProposal) Equal(that interface{}) bool

func (*SpecAddProposal) GetDescription

func (pcp *SpecAddProposal) GetDescription() string

GetDescription returns the description of a proposal.

func (*SpecAddProposal) GetTitle

func (pcp *SpecAddProposal) GetTitle() string

GetTitle returns the title of a proposal.

func (*SpecAddProposal) Marshal

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

func (*SpecAddProposal) MarshalTo

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

func (*SpecAddProposal) MarshalToSizedBuffer

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

func (*SpecAddProposal) ProposalRoute

func (pcp *SpecAddProposal) ProposalRoute() string

ProposalRoute returns the routing key of a proposal.

func (*SpecAddProposal) ProposalType

func (pcp *SpecAddProposal) ProposalType() string

ProposalType returns the type of a proposal.

func (*SpecAddProposal) ProtoMessage

func (*SpecAddProposal) ProtoMessage()

func (*SpecAddProposal) Reset

func (m *SpecAddProposal) Reset()

func (*SpecAddProposal) Size

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

func (SpecAddProposal) String

func (pcp SpecAddProposal) String() string

String implements the Stringer interface.

func (*SpecAddProposal) Unmarshal

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

func (*SpecAddProposal) ValidateBasic

func (pcp *SpecAddProposal) ValidateBasic() error

ValidateBasic validates the proposal

func (*SpecAddProposal) XXX_DiscardUnknown

func (m *SpecAddProposal) XXX_DiscardUnknown()

func (*SpecAddProposal) XXX_Marshal

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

func (*SpecAddProposal) XXX_Merge

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

func (*SpecAddProposal) XXX_Size

func (m *SpecAddProposal) XXX_Size() int

func (*SpecAddProposal) XXX_Unmarshal

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

type SpecCategory

type SpecCategory struct {
	Deterministic bool   `protobuf:"varint,1,opt,name=deterministic,proto3" json:"deterministic,omitempty"`
	Local         bool   `protobuf:"varint,2,opt,name=local,proto3" json:"local,omitempty"`
	Subscription  bool   `protobuf:"varint,3,opt,name=subscription,proto3" json:"subscription,omitempty"`
	Stateful      uint32 `protobuf:"varint,4,opt,name=stateful,proto3" json:"stateful,omitempty"`
	HangingApi    bool   `protobuf:"varint,5,opt,name=hanging_api,json=hangingApi,proto3" json:"hanging_api,omitempty"`
}

func (*SpecCategory) Descriptor

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

func (*SpecCategory) Equal

func (this *SpecCategory) Equal(that interface{}) bool

func (*SpecCategory) GetDeterministic

func (m *SpecCategory) GetDeterministic() bool

func (*SpecCategory) GetHangingApi

func (m *SpecCategory) GetHangingApi() bool

func (*SpecCategory) GetLocal

func (m *SpecCategory) GetLocal() bool

func (*SpecCategory) GetStateful

func (m *SpecCategory) GetStateful() uint32

func (*SpecCategory) GetSubscription

func (m *SpecCategory) GetSubscription() bool

func (*SpecCategory) Marshal

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

func (*SpecCategory) MarshalTo

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

func (*SpecCategory) MarshalToSizedBuffer

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

func (*SpecCategory) ProtoMessage

func (*SpecCategory) ProtoMessage()

func (*SpecCategory) Reset

func (m *SpecCategory) Reset()

func (*SpecCategory) Size

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

func (*SpecCategory) String

func (m *SpecCategory) String() string

func (*SpecCategory) Unmarshal

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

func (*SpecCategory) XXX_DiscardUnknown

func (m *SpecCategory) XXX_DiscardUnknown()

func (*SpecCategory) XXX_Marshal

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

func (*SpecCategory) XXX_Merge

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

func (*SpecCategory) XXX_Size

func (m *SpecCategory) XXX_Size() int

func (*SpecCategory) XXX_Unmarshal

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

type Spec_ProvidersTypes

type Spec_ProvidersTypes int32
const (
	Spec_dynamic Spec_ProvidersTypes = 0
	Spec_static  Spec_ProvidersTypes = 1
)

func (Spec_ProvidersTypes) EnumDescriptor

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

func (Spec_ProvidersTypes) String

func (x Spec_ProvidersTypes) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) ShowAllChains

func (*UnimplementedQueryServer) ShowChainInfo

func (*UnimplementedQueryServer) Spec

func (*UnimplementedQueryServer) SpecAll

func (*UnimplementedQueryServer) SpecAllRaw

func (*UnimplementedQueryServer) SpecRaw

type Verification

type Verification struct {
	Name           string          `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	ParseDirective *ParseDirective `protobuf:"bytes,2,opt,name=parse_directive,json=parseDirective,proto3" json:"parse_directive,omitempty"`
	Values         []*ParseValue   `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
}

func (*Verification) Descriptor

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

func (*Verification) Differeniator

func (v *Verification) Differeniator() string

func (*Verification) Equal

func (this *Verification) Equal(that interface{}) bool

func (*Verification) GetEnabled

func (h *Verification) GetEnabled() bool

func (*Verification) GetName

func (m *Verification) GetName() string

func (*Verification) GetParseDirective

func (m *Verification) GetParseDirective() *ParseDirective

func (*Verification) GetValues

func (m *Verification) GetValues() []*ParseValue

func (*Verification) Marshal

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

func (*Verification) MarshalTo

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

func (*Verification) MarshalToSizedBuffer

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

func (*Verification) Overwrite

func (v *Verification) Overwrite(other Combinable) (Combinable, bool)

func (*Verification) ProtoMessage

func (*Verification) ProtoMessage()

func (*Verification) Reset

func (m *Verification) Reset()

func (*Verification) Size

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

func (*Verification) String

func (m *Verification) String() string

func (*Verification) Unmarshal

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

func (*Verification) XXX_DiscardUnknown

func (m *Verification) XXX_DiscardUnknown()

func (*Verification) XXX_Marshal

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

func (*Verification) XXX_Merge

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

func (*Verification) XXX_Size

func (m *Verification) XXX_Size() int

func (*Verification) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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