types

package
v0.4.0-dev.6 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: GPL-3.0 Imports: 29 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeAddKey = "add_key"

	AttributePublicKey     = "public_key"
	AttributePubKeyIndex   = "public_key_index"
	AttributeValidatorAddr = "validator_address"
)
View Source
const (
	ModuleName = "pubkey"
	StoreKey
)
View Source
const (
	DefaultActivationBlockDelay       = 25
	DefaultActivationThresholdPercent = 80
)
View Source
const (
	DefaultActivationHeight = -1 // -1 indicates that activation is not in progress.
)

Variables

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 (
	PubKeysPrefix        = collections.NewPrefix(0)
	ProvingSchemesPrefix = collections.NewPrefix(1)
	ParamsPrefix         = collections.NewPrefix(2)
)
View Source
var (
	ErrInvalidLengthPubkey        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowPubkey          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupPubkey = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var Msg_serviceDesc = _Msg_serviceDesc
View Source
var Query_serviceDesc = _Query_serviceDesc

Functions

func RegisterCodec

func RegisterCodec(_ *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 ValidateGenesis

func ValidateGenesis(data GenesisState) error

Types

type GenesisState

type GenesisState struct {
	Params           Params             `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
	ValidatorPubKeys []ValidatorPubKeys `protobuf:"bytes,2,rep,name=validator_pub_keys,json=validatorPubKeys,proto3" json:"validator_pub_keys"`
	ProvingSchemes   []ProvingScheme    `protobuf:"bytes,3,rep,name=proving_schemes,json=provingSchemes,proto3" json:"proving_schemes"`
}

GenesisState defines pubkey module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() Params

func (*GenesisState) GetProvingSchemes

func (m *GenesisState) GetProvingSchemes() []ProvingScheme

func (*GenesisState) GetValidatorPubKeys

func (m *GenesisState) GetValidatorPubKeys() []ValidatorPubKeys

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

type IndexedPubKey struct {
	Index  uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	PubKey []byte `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pub_key,omitempty"`
}

IndexPubKeyPair defines an index - public key pair.

func (*IndexedPubKey) Descriptor

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

func (*IndexedPubKey) GetIndex

func (m *IndexedPubKey) GetIndex() uint32

func (*IndexedPubKey) GetPubKey

func (m *IndexedPubKey) GetPubKey() []byte

func (*IndexedPubKey) Marshal

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

func (*IndexedPubKey) MarshalTo

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

func (*IndexedPubKey) MarshalToSizedBuffer

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

func (*IndexedPubKey) ProtoMessage

func (*IndexedPubKey) ProtoMessage()

func (*IndexedPubKey) Reset

func (m *IndexedPubKey) Reset()

func (*IndexedPubKey) Size

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

func (*IndexedPubKey) String

func (m *IndexedPubKey) String() string

func (*IndexedPubKey) Unmarshal

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

func (*IndexedPubKey) XXX_DiscardUnknown

func (m *IndexedPubKey) XXX_DiscardUnknown()

func (*IndexedPubKey) XXX_Marshal

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

func (*IndexedPubKey) XXX_Merge

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

func (*IndexedPubKey) XXX_Size

func (m *IndexedPubKey) XXX_Size() int

func (*IndexedPubKey) XXX_Unmarshal

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

type MsgAddKey

type MsgAddKey struct {
	ValidatorAddr  string          `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	IndexedPubKeys []IndexedPubKey `protobuf:"bytes,2,rep,name=indexed_pub_keys,json=indexedPubKeys,proto3" json:"indexed_pub_keys"`
}

MsgAddKey defines a message for registering a new public key.

func (*MsgAddKey) Descriptor

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

func (*MsgAddKey) GetIndexedPubKeys

func (m *MsgAddKey) GetIndexedPubKeys() []IndexedPubKey

func (*MsgAddKey) GetValidatorAddr

func (m *MsgAddKey) GetValidatorAddr() string

func (*MsgAddKey) Marshal

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

func (*MsgAddKey) MarshalTo

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

func (*MsgAddKey) MarshalToSizedBuffer

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

func (*MsgAddKey) ProtoMessage

func (*MsgAddKey) ProtoMessage()

func (*MsgAddKey) Reset

func (m *MsgAddKey) Reset()

func (*MsgAddKey) Size

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

func (*MsgAddKey) String

func (m *MsgAddKey) String() string

func (*MsgAddKey) Unmarshal

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

func (*MsgAddKey) Validate

func (m *MsgAddKey) Validate() error

func (*MsgAddKey) XXX_DiscardUnknown

func (m *MsgAddKey) XXX_DiscardUnknown()

func (*MsgAddKey) XXX_Marshal

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

func (*MsgAddKey) XXX_Merge

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

func (*MsgAddKey) XXX_Size

func (m *MsgAddKey) XXX_Size() int

func (*MsgAddKey) XXX_Unmarshal

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

type MsgAddKeyResponse

type MsgAddKeyResponse struct {
}

MsgAddKeyResponse defines the Msg/MsgAddKey response type.

func (*MsgAddKeyResponse) Descriptor

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

func (*MsgAddKeyResponse) Marshal

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

func (*MsgAddKeyResponse) MarshalTo

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

func (*MsgAddKeyResponse) MarshalToSizedBuffer

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

func (*MsgAddKeyResponse) ProtoMessage

func (*MsgAddKeyResponse) ProtoMessage()

func (*MsgAddKeyResponse) Reset

func (m *MsgAddKeyResponse) Reset()

func (*MsgAddKeyResponse) Size

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

func (*MsgAddKeyResponse) String

func (m *MsgAddKeyResponse) String() string

func (*MsgAddKeyResponse) Unmarshal

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

func (*MsgAddKeyResponse) XXX_DiscardUnknown

func (m *MsgAddKeyResponse) XXX_DiscardUnknown()

func (*MsgAddKeyResponse) XXX_Marshal

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

func (*MsgAddKeyResponse) XXX_Merge

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

func (*MsgAddKeyResponse) XXX_Size

func (m *MsgAddKeyResponse) XXX_Size() int

func (*MsgAddKeyResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// AddKey defines a method for registering a new public key.
	AddKey(ctx context.Context, in *MsgAddKey, opts ...grpc.CallOption) (*MsgAddKeyResponse, error)
	// The UpdateParams method updates the module's parameters.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

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

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgServer

type MsgServer interface {
	// AddKey defines a method for registering a new public key.
	AddKey(context.Context, *MsgAddKey) (*MsgAddKeyResponse, error)
	// The UpdateParams method updates the module's parameters.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdateParams

type MsgUpdateParams struct {
	// authority is the address that controls the module (defaults to x/gov unless
	// overwritten).
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	Params    Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

The request message for the UpdateParams method.

func (*MsgUpdateParams) Descriptor

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

func (*MsgUpdateParams) GetAuthority

func (m *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (m *MsgUpdateParams) GetParams() Params

func (*MsgUpdateParams) Marshal

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

func (*MsgUpdateParams) MarshalTo

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

The response message for the UpdateParams method.

func (*MsgUpdateParamsResponse) Descriptor

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

func (*MsgUpdateParamsResponse) Marshal

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

func (*MsgUpdateParamsResponse) MarshalTo

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

func (*MsgUpdateParamsResponse) MarshalToSizedBuffer

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

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) Reset

func (m *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) Size

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

func (*MsgUpdateParamsResponse) String

func (m *MsgUpdateParamsResponse) String() string

func (*MsgUpdateParamsResponse) Unmarshal

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

func (*MsgUpdateParamsResponse) XXX_DiscardUnknown

func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()

func (*MsgUpdateParamsResponse) XXX_Marshal

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

func (*MsgUpdateParamsResponse) XXX_Merge

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

func (*MsgUpdateParamsResponse) XXX_Size

func (m *MsgUpdateParamsResponse) XXX_Size() int

func (*MsgUpdateParamsResponse) XXX_Unmarshal

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

type Params

type Params struct {
	// activation_block_delay is the number of blocks to wait before activating a
	// proving scheme.
	ActivationBlockDelay int64 `protobuf:"varint,1,opt,name=activation_block_delay,json=activationBlockDelay,proto3" json:"activation_block_delay,omitempty"`
	// activation_threshold_percent is the percentage of the total voting power
	// that is required to activate a proving scheme.
	ActivationThresholdPercent uint32 `` /* 142-byte string literal not displayed */
}

Params defines the parameters for the pubkey module.

func DefaultParams

func DefaultParams() Params

DefaultParams returns default pubkey module parameters.

func (*Params) Descriptor

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

func (*Params) GetActivationBlockDelay

func (m *Params) GetActivationBlockDelay() int64

func (*Params) GetActivationThresholdPercent

func (m *Params) GetActivationThresholdPercent() uint32

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

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (*Params) Validate

func (p *Params) Validate() error

ValidateBasic performs basic validation on pubkey module parameters.

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 ProvingScheme

type ProvingScheme struct {
	// index is the SEDA key index.
	Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// is_activated indicates if the proving scheme has been activated.
	IsActivated bool `protobuf:"varint,2,opt,name=is_activated,json=isActivated,proto3" json:"is_activated,omitempty"`
	// activation_height is the height at which the proving scheme is to
	// be activated. This field is set to -1 by default until the public
	// key registration rate reaches the activation threshold and is reset
	// if the public key registration rate goes below the threshold before
	// the scheme is activated.
	ActivationHeight int64 `protobuf:"varint,3,opt,name=activation_height,json=activationHeight,proto3" json:"activation_height,omitempty"`
}

ProvingScheme defines a proving scheme.

func (*ProvingScheme) Descriptor

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

func (*ProvingScheme) GetActivationHeight

func (m *ProvingScheme) GetActivationHeight() int64

func (*ProvingScheme) GetIndex

func (m *ProvingScheme) GetIndex() uint32

func (*ProvingScheme) GetIsActivated

func (m *ProvingScheme) GetIsActivated() bool

func (*ProvingScheme) Marshal

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

func (*ProvingScheme) MarshalTo

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

func (*ProvingScheme) MarshalToSizedBuffer

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

func (*ProvingScheme) ProtoMessage

func (*ProvingScheme) ProtoMessage()

func (*ProvingScheme) Reset

func (m *ProvingScheme) Reset()

func (*ProvingScheme) Size

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

func (*ProvingScheme) String

func (m *ProvingScheme) String() string

func (*ProvingScheme) Unmarshal

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

func (*ProvingScheme) XXX_DiscardUnknown

func (m *ProvingScheme) XXX_DiscardUnknown()

func (*ProvingScheme) XXX_Marshal

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

func (*ProvingScheme) XXX_Merge

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

func (*ProvingScheme) XXX_Size

func (m *ProvingScheme) XXX_Size() int

func (*ProvingScheme) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Params returns the total set of pubkey parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// ValidatorKeys returns a given validator's registered keys.
	ValidatorKeys(ctx context.Context, in *QueryValidatorKeysRequest, opts ...grpc.CallOption) (*QueryValidatorKeysResponse, error)
	// ProvingSchemes returns the statuses of the SEDA proving schemes.
	ProvingSchemes(ctx context.Context, in *QueryProvingSchemesRequest, opts ...grpc.CallOption) (*QueryProvingSchemesResponse, 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 QueryParamsRequest

type QueryParamsRequest struct {
}

QueryParamsRequest is the 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 defines the parameters of the module.
	Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
}

QueryParamsResponse is the 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 QueryProvingSchemesRequest

type QueryProvingSchemesRequest struct {
}

QueryProvingSchemesRequest is request type for the Query/ProvingSchemes RPC method.

func (*QueryProvingSchemesRequest) Descriptor

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

func (*QueryProvingSchemesRequest) Marshal

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

func (*QueryProvingSchemesRequest) MarshalTo

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

func (*QueryProvingSchemesRequest) MarshalToSizedBuffer

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

func (*QueryProvingSchemesRequest) ProtoMessage

func (*QueryProvingSchemesRequest) ProtoMessage()

func (*QueryProvingSchemesRequest) Reset

func (m *QueryProvingSchemesRequest) Reset()

func (*QueryProvingSchemesRequest) Size

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

func (*QueryProvingSchemesRequest) String

func (m *QueryProvingSchemesRequest) String() string

func (*QueryProvingSchemesRequest) Unmarshal

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

func (*QueryProvingSchemesRequest) XXX_DiscardUnknown

func (m *QueryProvingSchemesRequest) XXX_DiscardUnknown()

func (*QueryProvingSchemesRequest) XXX_Marshal

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

func (*QueryProvingSchemesRequest) XXX_Merge

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

func (*QueryProvingSchemesRequest) XXX_Size

func (m *QueryProvingSchemesRequest) XXX_Size() int

func (*QueryProvingSchemesRequest) XXX_Unmarshal

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

type QueryProvingSchemesResponse

type QueryProvingSchemesResponse struct {
	ProvingSchemes []ProvingScheme `protobuf:"bytes,1,rep,name=proving_schemes,json=provingSchemes,proto3" json:"proving_schemes"`
}

QueryProvingSchemesResponse is response type for the Query/ProvingSchemes RPC method.

func (*QueryProvingSchemesResponse) Descriptor

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

func (*QueryProvingSchemesResponse) GetProvingSchemes

func (m *QueryProvingSchemesResponse) GetProvingSchemes() []ProvingScheme

func (*QueryProvingSchemesResponse) Marshal

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

func (*QueryProvingSchemesResponse) MarshalTo

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

func (*QueryProvingSchemesResponse) MarshalToSizedBuffer

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

func (*QueryProvingSchemesResponse) ProtoMessage

func (*QueryProvingSchemesResponse) ProtoMessage()

func (*QueryProvingSchemesResponse) Reset

func (m *QueryProvingSchemesResponse) Reset()

func (*QueryProvingSchemesResponse) Size

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

func (*QueryProvingSchemesResponse) String

func (m *QueryProvingSchemesResponse) String() string

func (*QueryProvingSchemesResponse) Unmarshal

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

func (*QueryProvingSchemesResponse) XXX_DiscardUnknown

func (m *QueryProvingSchemesResponse) XXX_DiscardUnknown()

func (*QueryProvingSchemesResponse) XXX_Marshal

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

func (*QueryProvingSchemesResponse) XXX_Merge

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

func (*QueryProvingSchemesResponse) XXX_Size

func (m *QueryProvingSchemesResponse) XXX_Size() int

func (*QueryProvingSchemesResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Params returns the total set of pubkey parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// ValidatorKeys returns a given validator's registered keys.
	ValidatorKeys(context.Context, *QueryValidatorKeysRequest) (*QueryValidatorKeysResponse, error)
	// ProvingSchemes returns the statuses of the SEDA proving schemes.
	ProvingSchemes(context.Context, *QueryProvingSchemesRequest) (*QueryProvingSchemesResponse, error)
}

QueryServer is the server API for Query service.

type QueryValidatorKeysRequest

type QueryValidatorKeysRequest struct {
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
}

QueryValidatorKeysRequest is request type for the Query/ValidatorKeys RPC method.

func (*QueryValidatorKeysRequest) Descriptor

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

func (*QueryValidatorKeysRequest) GetValidatorAddr

func (m *QueryValidatorKeysRequest) GetValidatorAddr() string

func (*QueryValidatorKeysRequest) Marshal

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

func (*QueryValidatorKeysRequest) MarshalTo

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

func (*QueryValidatorKeysRequest) MarshalToSizedBuffer

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

func (*QueryValidatorKeysRequest) ProtoMessage

func (*QueryValidatorKeysRequest) ProtoMessage()

func (*QueryValidatorKeysRequest) Reset

func (m *QueryValidatorKeysRequest) Reset()

func (*QueryValidatorKeysRequest) Size

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

func (*QueryValidatorKeysRequest) String

func (m *QueryValidatorKeysRequest) String() string

func (*QueryValidatorKeysRequest) Unmarshal

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

func (*QueryValidatorKeysRequest) XXX_DiscardUnknown

func (m *QueryValidatorKeysRequest) XXX_DiscardUnknown()

func (*QueryValidatorKeysRequest) XXX_Marshal

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

func (*QueryValidatorKeysRequest) XXX_Merge

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

func (*QueryValidatorKeysRequest) XXX_Size

func (m *QueryValidatorKeysRequest) XXX_Size() int

func (*QueryValidatorKeysRequest) XXX_Unmarshal

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

type QueryValidatorKeysResponse

type QueryValidatorKeysResponse struct {
	ValidatorPubKeys ValidatorPubKeys `protobuf:"bytes,1,opt,name=validator_pub_keys,json=validatorPubKeys,proto3" json:"validator_pub_keys"`
}

QueryValidatorKeysResponse is response type for the Query/ValidatorKeys RPC method.

func (*QueryValidatorKeysResponse) Descriptor

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

func (*QueryValidatorKeysResponse) GetValidatorPubKeys

func (m *QueryValidatorKeysResponse) GetValidatorPubKeys() ValidatorPubKeys

func (*QueryValidatorKeysResponse) Marshal

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

func (*QueryValidatorKeysResponse) MarshalTo

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

func (*QueryValidatorKeysResponse) MarshalToSizedBuffer

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

func (*QueryValidatorKeysResponse) ProtoMessage

func (*QueryValidatorKeysResponse) ProtoMessage()

func (*QueryValidatorKeysResponse) Reset

func (m *QueryValidatorKeysResponse) Reset()

func (*QueryValidatorKeysResponse) Size

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

func (*QueryValidatorKeysResponse) String

func (m *QueryValidatorKeysResponse) String() string

func (*QueryValidatorKeysResponse) Unmarshal

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

func (*QueryValidatorKeysResponse) XXX_DiscardUnknown

func (m *QueryValidatorKeysResponse) XXX_DiscardUnknown()

func (*QueryValidatorKeysResponse) XXX_Marshal

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

func (*QueryValidatorKeysResponse) XXX_Merge

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

func (*QueryValidatorKeysResponse) XXX_Size

func (m *QueryValidatorKeysResponse) XXX_Size() int

func (*QueryValidatorKeysResponse) XXX_Unmarshal

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

type SlashingKeeper

type SlashingKeeper interface {
	Jail(ctx context.Context, consAddr sdk.ConsAddress) error
}

type StakingKeeper

type StakingKeeper interface {
	GetValidator(ctx context.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, err error)
	GetAllValidators(ctx context.Context) (validators []stakingtypes.Validator, err error)
	GetBondedValidatorsByPower(ctx context.Context) ([]stakingtypes.Validator, error)
	GetValidatorUpdates(ctx context.Context) ([]abci.ValidatorUpdate, error)
	IterateLastValidatorPowers(ctx context.Context, handler func(operator sdk.ValAddress, power int64) (stop bool)) error
	GetLastTotalPower(ctx context.Context) (math.Int, error)
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddKey

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) ProvingSchemes

func (*UnimplementedQueryServer) ValidatorKeys

type ValidatorPubKeys

type ValidatorPubKeys struct {
	ValidatorAddr  string          `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	IndexedPubKeys []IndexedPubKey `protobuf:"bytes,2,rep,name=indexed_pub_keys,json=indexedPubKeys,proto3" json:"indexed_pub_keys"`
}

ValidatorPubKeys defines a validator's list of registered public keys primarily used in the x/pubkey genesis state.

func (*ValidatorPubKeys) Descriptor

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

func (*ValidatorPubKeys) GetIndexedPubKeys

func (m *ValidatorPubKeys) GetIndexedPubKeys() []IndexedPubKey

func (*ValidatorPubKeys) GetValidatorAddr

func (m *ValidatorPubKeys) GetValidatorAddr() string

func (*ValidatorPubKeys) Marshal

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

func (*ValidatorPubKeys) MarshalTo

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

func (*ValidatorPubKeys) MarshalToSizedBuffer

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

func (*ValidatorPubKeys) ProtoMessage

func (*ValidatorPubKeys) ProtoMessage()

func (*ValidatorPubKeys) Reset

func (m *ValidatorPubKeys) Reset()

func (*ValidatorPubKeys) Size

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

func (*ValidatorPubKeys) String

func (m *ValidatorPubKeys) String() string

func (*ValidatorPubKeys) Unmarshal

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

func (*ValidatorPubKeys) XXX_DiscardUnknown

func (m *ValidatorPubKeys) XXX_DiscardUnknown()

func (*ValidatorPubKeys) XXX_Marshal

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

func (*ValidatorPubKeys) XXX_Merge

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

func (*ValidatorPubKeys) XXX_Size

func (m *ValidatorPubKeys) XXX_Size() int

func (*ValidatorPubKeys) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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