types

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2023 License: Apache-2.0 Imports: 36 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"
)
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 (
	GET_BLOCKNUM                = "getBlockNumber"
	GET_BLOCK_BY_NUM            = "getBlockByNumber"
	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 (
	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 (
	KeyGeolocationCount            = []byte("GeolocationCount")
	DefaultGeolocationCount uint64 = 8
)
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 (
	ErrInvalidLengthServiceApi        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowServiceApi          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupServiceApi = 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 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,
}
View Source
var SupportedTags = [...]string{GET_BLOCKNUM, GET_BLOCK_BY_NUM}

Functions

func IsFinalizedBlock

func IsFinalizedBlock(requestedBlock int64, 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 ApiInterface added in v0.4.3

type ApiInterface struct {
	Interface             string        `protobuf:"bytes,1,opt,name=interface,proto3" json:"interface,omitempty"`
	Type                  string        `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"`
	ExtraComputeUnits     uint64        `protobuf:"varint,3,opt,name=extra_compute_units,json=extraComputeUnits,proto3" json:"extra_compute_units,omitempty"`
	Category              *SpecCategory `protobuf:"bytes,4,opt,name=category,proto3" json:"category,omitempty"`
	OverwriteBlockParsing *BlockParser  `` /* 126-byte string literal not displayed */
}

func (*ApiInterface) Descriptor added in v0.4.3

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

func (*ApiInterface) Equal added in v0.4.3

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

func (*ApiInterface) GetCategory added in v0.4.3

func (m *ApiInterface) GetCategory() *SpecCategory

func (*ApiInterface) GetExtraComputeUnits added in v0.4.3

func (m *ApiInterface) GetExtraComputeUnits() uint64

func (*ApiInterface) GetInterface added in v0.4.3

func (m *ApiInterface) GetInterface() string

func (*ApiInterface) GetOverwriteBlockParsing added in v0.5.0

func (m *ApiInterface) GetOverwriteBlockParsing() *BlockParser

func (*ApiInterface) GetType added in v0.4.3

func (m *ApiInterface) GetType() string

func (*ApiInterface) Marshal added in v0.4.3

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

func (*ApiInterface) MarshalTo added in v0.4.3

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

func (*ApiInterface) MarshalToSizedBuffer added in v0.4.3

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

func (*ApiInterface) ProtoMessage added in v0.4.3

func (*ApiInterface) ProtoMessage()

func (*ApiInterface) Reset added in v0.4.3

func (m *ApiInterface) Reset()

func (*ApiInterface) Size added in v0.4.3

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

func (*ApiInterface) String added in v0.4.3

func (m *ApiInterface) String() string

func (*ApiInterface) Unmarshal added in v0.4.3

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

func (*ApiInterface) XXX_DiscardUnknown added in v0.4.3

func (m *ApiInterface) XXX_DiscardUnknown()

func (*ApiInterface) XXX_Marshal added in v0.4.3

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

func (*ApiInterface) XXX_Merge added in v0.4.3

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

func (*ApiInterface) XXX_Size added in v0.4.3

func (m *ApiInterface) XXX_Size() int

func (*ApiInterface) XXX_Unmarshal added in v0.4.3

func (m *ApiInterface) 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"`
}

func (*ApiList) Descriptor

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

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 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 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 {
	GeolocationCount uint64 `protobuf:"varint,1,opt,name=geolocationCount,proto3" json:"geolocationCount,omitempty" yaml:"geolocation_count"`
	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(geolocationCount uint64, maxCU uint64) Params

NewParams creates a new Params instance

func (*Params) Descriptor

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

func (*Params) GetGeolocationCount added in v0.4.3

func (m *Params) GetGeolocationCount() uint64

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 Parsing added in v0.4.3

type Parsing struct {
	FunctionTag      string      `protobuf:"bytes,1,opt,name=function_tag,json=functionTag,proto3" json:"function_tag,omitempty"`
	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"`
}

func (*Parsing) Descriptor added in v0.4.3

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

func (*Parsing) Equal added in v0.4.3

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

func (*Parsing) GetFunctionTag added in v0.4.3

func (m *Parsing) GetFunctionTag() string

func (*Parsing) GetFunctionTemplate added in v0.4.3

func (m *Parsing) GetFunctionTemplate() string

func (*Parsing) GetResultParsing added in v0.4.3

func (m *Parsing) GetResultParsing() BlockParser

func (*Parsing) Marshal added in v0.4.3

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

func (*Parsing) MarshalTo added in v0.4.3

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

func (*Parsing) MarshalToSizedBuffer added in v0.4.3

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

func (*Parsing) ProtoMessage added in v0.4.3

func (*Parsing) ProtoMessage()

func (*Parsing) Reset added in v0.4.3

func (m *Parsing) Reset()

func (*Parsing) Size added in v0.4.3

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

func (*Parsing) String added in v0.4.3

func (m *Parsing) String() string

func (*Parsing) Unmarshal added in v0.4.3

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

func (*Parsing) XXX_DiscardUnknown added in v0.4.3

func (m *Parsing) XXX_DiscardUnknown()

func (*Parsing) XXX_Marshal added in v0.4.3

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

func (*Parsing) XXX_Merge added in v0.4.3

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

func (*Parsing) XXX_Size added in v0.4.3

func (m *Parsing) XXX_Size() int

func (*Parsing) XXX_Unmarshal added in v0.4.3

func (m *Parsing) 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"`
}

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) 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 ServiceApi added in v0.4.3

type ServiceApi struct {
	Name          string         `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	BlockParsing  BlockParser    `protobuf:"bytes,2,opt,name=block_parsing,json=blockParsing,proto3" json:"block_parsing"`
	ComputeUnits  uint64         `protobuf:"varint,3,opt,name=compute_units,json=computeUnits,proto3" json:"compute_units,omitempty"`
	Enabled       bool           `protobuf:"varint,4,opt,name=enabled,proto3" json:"enabled,omitempty"`
	ApiInterfaces []ApiInterface `protobuf:"bytes,5,rep,name=api_interfaces,json=apiInterfaces,proto3" json:"api_interfaces"`
	Reserved      *SpecCategory  `protobuf:"bytes,6,opt,name=reserved,proto3" json:"reserved,omitempty"`
	Parsing       Parsing        `protobuf:"bytes,7,opt,name=parsing,proto3" json:"parsing"`
	InternalPath  string         `protobuf:"bytes,8,opt,name=internal_path,json=internalPath,proto3" json:"internal_path,omitempty"`
}

func (*ServiceApi) Descriptor added in v0.4.3

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

func (*ServiceApi) Equal added in v0.4.3

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

func (*ServiceApi) GetApiInterfaces added in v0.4.3

func (m *ServiceApi) GetApiInterfaces() []ApiInterface

func (*ServiceApi) GetBlockParsing added in v0.4.3

func (m *ServiceApi) GetBlockParsing() BlockParser

func (*ServiceApi) GetComputeUnits added in v0.4.3

func (m *ServiceApi) GetComputeUnits() uint64

func (*ServiceApi) GetEnabled added in v0.4.3

func (m *ServiceApi) GetEnabled() bool

func (*ServiceApi) GetInternalPath added in v0.10.0

func (m *ServiceApi) GetInternalPath() string

func (*ServiceApi) GetName added in v0.4.3

func (m *ServiceApi) GetName() string

func (*ServiceApi) GetParsing added in v0.4.3

func (m *ServiceApi) GetParsing() Parsing

func (*ServiceApi) GetReserved added in v0.4.3

func (m *ServiceApi) GetReserved() *SpecCategory

func (*ServiceApi) Marshal added in v0.4.3

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

func (*ServiceApi) MarshalTo added in v0.4.3

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

func (*ServiceApi) MarshalToSizedBuffer added in v0.4.3

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

func (*ServiceApi) ProtoMessage added in v0.4.3

func (*ServiceApi) ProtoMessage()

func (*ServiceApi) Reset added in v0.4.3

func (m *ServiceApi) Reset()

func (*ServiceApi) Size added in v0.4.3

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

func (*ServiceApi) String added in v0.4.3

func (m *ServiceApi) String() string

func (*ServiceApi) Unmarshal added in v0.4.3

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

func (*ServiceApi) XXX_DiscardUnknown added in v0.4.3

func (m *ServiceApi) XXX_DiscardUnknown()

func (*ServiceApi) XXX_Marshal added in v0.4.3

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

func (*ServiceApi) XXX_Merge added in v0.4.3

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

func (*ServiceApi) XXX_Size added in v0.4.3

func (m *ServiceApi) XXX_Size() int

func (*ServiceApi) XXX_Unmarshal added in v0.4.3

func (m *ServiceApi) 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"`
	Imports                       []string            `protobuf:"bytes,15,rep,name=imports,proto3" json:"imports,omitempty"`
	Apis                          []ServiceApi        `protobuf:"bytes,3,rep,name=apis,proto3" json:"apis"`
	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 */
}

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) GetApis added in v0.4.3

func (m *Spec) GetApis() []ServiceApi

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

Jump to

Keyboard shortcuts

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