types

package
v0.0.0-...-7a75bab Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 32 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 = "attestationconfig"

	// StoreKey is the store key string for configmodule
	StoreKey = ModuleName
)

Variables

View Source
var (
	ErrInvalidLengthAttestator        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAttestator          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAttestator = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrUnauthorized            = errors.Register(ModuleName, 1, "unauthorized")
	ErrAttestatorAlreadyExists = errors.Register(ModuleName, 2, "attestator already exists")
	ErrInvalidAttestator       = errors.Register(ModuleName, 3, "invalid attestator")
)

configmodule module sentinel errors

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ParamsKey is the prefix for configmodule parameters
	ParamsKey      = collections.NewPrefix(0)
	AttestatorsKey = collections.NewPrefix(1)
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.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)

Types

type Attestator

type Attestator struct {
	AttestatorId    []byte     `protobuf:"bytes,1,opt,name=attestator_id,json=attestatorId,proto3" json:"attestator_id,omitempty"`
	PublicKey       *types.Any `protobuf:"bytes,2,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"`
	ConsensusPubkey *types.Any `protobuf:"bytes,3,opt,name=consensus_pubkey,json=consensusPubkey,proto3" json:"consensus_pubkey,omitempty"`
}

func (*Attestator) Descriptor

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

func (*Attestator) GetAttestatorId

func (m *Attestator) GetAttestatorId() []byte

func (*Attestator) GetConsensusPubkey

func (m *Attestator) GetConsensusPubkey() *types.Any

func (*Attestator) GetPublicKey

func (m *Attestator) GetPublicKey() *types.Any

func (*Attestator) Marshal

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

func (*Attestator) MarshalTo

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

func (*Attestator) MarshalToSizedBuffer

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

func (*Attestator) ProtoMessage

func (*Attestator) ProtoMessage()

func (*Attestator) Reset

func (m *Attestator) Reset()

func (*Attestator) Size

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

func (*Attestator) String

func (m *Attestator) String() string

func (*Attestator) Unmarshal

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

func (Attestator) UnpackInterfaces

func (a Attestator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

func (Attestator) Validate

func (a Attestator) Validate() error

func (*Attestator) XXX_DiscardUnknown

func (m *Attestator) XXX_DiscardUnknown()

func (*Attestator) XXX_Marshal

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

func (*Attestator) XXX_Merge

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

func (*Attestator) XXX_Size

func (m *Attestator) XXX_Size() int

func (*Attestator) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	// params defines all the paramaters of configmodule module.
	Params      *Params      `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	Attestators []Attestator `protobuf:"bytes,2,rep,name=attestators,proto3" json:"attestators"`
}

GenesisState defines the configmodule module's genesis state.

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState returns a default genesis state

func NewGenesisState

func NewGenesisState(params Params) *GenesisState

NewGenesisState creates a new genesis state.

func (*GenesisState) Descriptor

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

func (*GenesisState) GetAttestators

func (m *GenesisState) GetAttestators() []Attestator

func (*GenesisState) GetParams

func (m *GenesisState) GetParams() *Params

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

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

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

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

func (*GenesisState) XXX_Merge

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

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// UpdateParams defines a governance operation for updating the
	// configmodule module parameters.
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
	RegisterAttestator(ctx context.Context, in *MsgRegisterAttestator, opts ...grpc.CallOption) (*MsgRegisterAttestatorResponse, 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 MsgRegisterAttestator

type MsgRegisterAttestator struct {
	ValidatorAddress     string     `protobuf:"bytes,1,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	AttestatorId         []byte     `protobuf:"bytes,2,opt,name=attestator_id,json=attestatorId,proto3" json:"attestator_id,omitempty"`
	AttestationPublicKey *types.Any `protobuf:"bytes,3,opt,name=attestation_public_key,json=attestationPublicKey,proto3" json:"attestation_public_key,omitempty"`
}

func (*MsgRegisterAttestator) Descriptor

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

func (*MsgRegisterAttestator) GetAttestationPublicKey

func (m *MsgRegisterAttestator) GetAttestationPublicKey() *types.Any

func (*MsgRegisterAttestator) GetAttestatorId

func (m *MsgRegisterAttestator) GetAttestatorId() []byte

func (*MsgRegisterAttestator) GetValidatorAddress

func (m *MsgRegisterAttestator) GetValidatorAddress() string

func (*MsgRegisterAttestator) Marshal

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

func (*MsgRegisterAttestator) MarshalTo

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

func (*MsgRegisterAttestator) MarshalToSizedBuffer

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

func (*MsgRegisterAttestator) ProtoMessage

func (*MsgRegisterAttestator) ProtoMessage()

func (*MsgRegisterAttestator) Reset

func (m *MsgRegisterAttestator) Reset()

func (*MsgRegisterAttestator) Size

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

func (*MsgRegisterAttestator) String

func (m *MsgRegisterAttestator) String() string

func (*MsgRegisterAttestator) Unmarshal

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

func (MsgRegisterAttestator) UnpackInterfaces

func (msg MsgRegisterAttestator) UnpackInterfaces(unpacker codectypes.AnyUnpacker) error

func (MsgRegisterAttestator) Validate

func (msg MsgRegisterAttestator) Validate(ac address.Codec) error

func (*MsgRegisterAttestator) XXX_DiscardUnknown

func (m *MsgRegisterAttestator) XXX_DiscardUnknown()

func (*MsgRegisterAttestator) XXX_Marshal

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

func (*MsgRegisterAttestator) XXX_Merge

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

func (*MsgRegisterAttestator) XXX_Size

func (m *MsgRegisterAttestator) XXX_Size() int

func (*MsgRegisterAttestator) XXX_Unmarshal

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

type MsgRegisterAttestatorResponse

type MsgRegisterAttestatorResponse struct {
}

func (*MsgRegisterAttestatorResponse) Descriptor

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

func (*MsgRegisterAttestatorResponse) Marshal

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

func (*MsgRegisterAttestatorResponse) MarshalTo

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

func (*MsgRegisterAttestatorResponse) MarshalToSizedBuffer

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

func (*MsgRegisterAttestatorResponse) ProtoMessage

func (*MsgRegisterAttestatorResponse) ProtoMessage()

func (*MsgRegisterAttestatorResponse) Reset

func (m *MsgRegisterAttestatorResponse) Reset()

func (*MsgRegisterAttestatorResponse) Size

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

func (*MsgRegisterAttestatorResponse) String

func (*MsgRegisterAttestatorResponse) Unmarshal

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

func (*MsgRegisterAttestatorResponse) XXX_DiscardUnknown

func (m *MsgRegisterAttestatorResponse) XXX_DiscardUnknown()

func (*MsgRegisterAttestatorResponse) XXX_Marshal

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

func (*MsgRegisterAttestatorResponse) XXX_Merge

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

func (*MsgRegisterAttestatorResponse) XXX_Size

func (m *MsgRegisterAttestatorResponse) XXX_Size() int

func (*MsgRegisterAttestatorResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// UpdateParams defines a governance operation for updating the
	// configmodule module parameters.
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	RegisterAttestator(context.Context, *MsgRegisterAttestator) (*MsgRegisterAttestatorResponse, 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 defines the configmodule parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params"`
}

MsgUpdateParams is the Msg/UpdateParams request type.

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 {
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

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 {
}

Params defines the parameters for the module.

func DefaultParams

func DefaultParams() Params

func (*Params) Descriptor

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

func (*Params) Equal

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

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

Validate performs basic validation 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 QueryAttestatorRequest

type QueryAttestatorRequest struct {
	AttestatorId []byte `protobuf:"bytes,1,opt,name=attestator_id,json=attestatorId,proto3" json:"attestator_id,omitempty"`
}

func (*QueryAttestatorRequest) Descriptor

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

func (*QueryAttestatorRequest) GetAttestatorId

func (m *QueryAttestatorRequest) GetAttestatorId() []byte

func (*QueryAttestatorRequest) Marshal

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

func (*QueryAttestatorRequest) MarshalTo

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

func (*QueryAttestatorRequest) MarshalToSizedBuffer

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

func (*QueryAttestatorRequest) ProtoMessage

func (*QueryAttestatorRequest) ProtoMessage()

func (*QueryAttestatorRequest) Reset

func (m *QueryAttestatorRequest) Reset()

func (*QueryAttestatorRequest) Size

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

func (*QueryAttestatorRequest) String

func (m *QueryAttestatorRequest) String() string

func (*QueryAttestatorRequest) Unmarshal

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

func (*QueryAttestatorRequest) XXX_DiscardUnknown

func (m *QueryAttestatorRequest) XXX_DiscardUnknown()

func (*QueryAttestatorRequest) XXX_Marshal

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

func (*QueryAttestatorRequest) XXX_Merge

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

func (*QueryAttestatorRequest) XXX_Size

func (m *QueryAttestatorRequest) XXX_Size() int

func (*QueryAttestatorRequest) XXX_Unmarshal

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

type QueryAttestatorResponse

type QueryAttestatorResponse struct {
	Attestator Attestator `protobuf:"bytes,1,opt,name=attestator,proto3" json:"attestator"`
}

func (*QueryAttestatorResponse) Descriptor

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

func (*QueryAttestatorResponse) GetAttestator

func (m *QueryAttestatorResponse) GetAttestator() Attestator

func (*QueryAttestatorResponse) Marshal

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

func (*QueryAttestatorResponse) MarshalTo

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

func (*QueryAttestatorResponse) MarshalToSizedBuffer

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

func (*QueryAttestatorResponse) ProtoMessage

func (*QueryAttestatorResponse) ProtoMessage()

func (*QueryAttestatorResponse) Reset

func (m *QueryAttestatorResponse) Reset()

func (*QueryAttestatorResponse) Size

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

func (*QueryAttestatorResponse) String

func (m *QueryAttestatorResponse) String() string

func (*QueryAttestatorResponse) Unmarshal

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

func (*QueryAttestatorResponse) XXX_DiscardUnknown

func (m *QueryAttestatorResponse) XXX_DiscardUnknown()

func (*QueryAttestatorResponse) XXX_Marshal

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

func (*QueryAttestatorResponse) XXX_Merge

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

func (*QueryAttestatorResponse) XXX_Size

func (m *QueryAttestatorResponse) XXX_Size() int

func (*QueryAttestatorResponse) XXX_Unmarshal

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

type QueryAttestatorsRequest

type QueryAttestatorsRequest struct {
	// pagination defines an optional pagination for the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

func (*QueryAttestatorsRequest) Descriptor

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

func (*QueryAttestatorsRequest) GetPagination

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

func (*QueryAttestatorsRequest) Marshal

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

func (*QueryAttestatorsRequest) MarshalTo

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

func (*QueryAttestatorsRequest) MarshalToSizedBuffer

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

func (*QueryAttestatorsRequest) ProtoMessage

func (*QueryAttestatorsRequest) ProtoMessage()

func (*QueryAttestatorsRequest) Reset

func (m *QueryAttestatorsRequest) Reset()

func (*QueryAttestatorsRequest) Size

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

func (*QueryAttestatorsRequest) String

func (m *QueryAttestatorsRequest) String() string

func (*QueryAttestatorsRequest) Unmarshal

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

func (*QueryAttestatorsRequest) XXX_DiscardUnknown

func (m *QueryAttestatorsRequest) XXX_DiscardUnknown()

func (*QueryAttestatorsRequest) XXX_Marshal

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

func (*QueryAttestatorsRequest) XXX_Merge

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

func (*QueryAttestatorsRequest) XXX_Size

func (m *QueryAttestatorsRequest) XXX_Size() int

func (*QueryAttestatorsRequest) XXX_Unmarshal

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

type QueryAttestatorsResponse

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

func (*QueryAttestatorsResponse) Descriptor

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

func (*QueryAttestatorsResponse) GetAttestators

func (m *QueryAttestatorsResponse) GetAttestators() []Attestator

func (*QueryAttestatorsResponse) GetPagination

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

func (*QueryAttestatorsResponse) Marshal

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

func (*QueryAttestatorsResponse) MarshalTo

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

func (*QueryAttestatorsResponse) MarshalToSizedBuffer

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

func (*QueryAttestatorsResponse) ProtoMessage

func (*QueryAttestatorsResponse) ProtoMessage()

func (*QueryAttestatorsResponse) Reset

func (m *QueryAttestatorsResponse) Reset()

func (*QueryAttestatorsResponse) Size

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

func (*QueryAttestatorsResponse) String

func (m *QueryAttestatorsResponse) String() string

func (*QueryAttestatorsResponse) Unmarshal

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

func (*QueryAttestatorsResponse) XXX_DiscardUnknown

func (m *QueryAttestatorsResponse) XXX_DiscardUnknown()

func (*QueryAttestatorsResponse) XXX_Marshal

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

func (*QueryAttestatorsResponse) XXX_Merge

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

func (*QueryAttestatorsResponse) XXX_Size

func (m *QueryAttestatorsResponse) XXX_Size() int

func (*QueryAttestatorsResponse) XXX_Unmarshal

func (m *QueryAttestatorsResponse) 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)
	Attestators(ctx context.Context, in *QueryAttestatorsRequest, opts ...grpc.CallOption) (*QueryAttestatorsResponse, error)
	Attestator(ctx context.Context, in *QueryAttestatorRequest, opts ...grpc.CallOption) (*QueryAttestatorResponse, 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 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)
	Attestators(context.Context, *QueryAttestatorsRequest) (*QueryAttestatorsResponse, error)
	Attestator(context.Context, *QueryAttestatorRequest) (*QueryAttestatorResponse, error)
}

QueryServer is the server API for Query service.

type StakingKeeper

type StakingKeeper interface {
	GetValidator(ctx context.Context, addr sdk.ValAddress) (validator stakingtypes.Validator, err error)
}

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) RegisterAttestator

func (*UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Attestator

func (*UnimplementedQueryServer) Attestators

func (*UnimplementedQueryServer) Params

Jump to

Keyboard shortcuts

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