v1

package
v0.0.0-...-61c914d Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Overview

Package v1 is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const MetadataMaxLength = 128

MetadataMaxLength is the maximum length of metadata.

Variables

View Source
var (
	ErrInvalidLengthEvents        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowEvents          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupEvents = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthMsg        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMsg          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMsg = 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 (
	ErrInvalidLengthState        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowState          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupState = fmt.Errorf("proto: unexpected end of group")
)

Functions

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

RegisterInterfaces registers interfaces with the interface registry.

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

RegisterLegacyAminoCodec registers legacy amino codec.

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 EventAddValidator

type EventAddValidator struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

EventAddValidator is an event emitted when a validator is added.

func (*EventAddValidator) Descriptor

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

func (*EventAddValidator) GetAddress

func (m *EventAddValidator) GetAddress() string

func (*EventAddValidator) Marshal

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

func (*EventAddValidator) MarshalTo

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

func (*EventAddValidator) MarshalToSizedBuffer

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

func (*EventAddValidator) ProtoMessage

func (*EventAddValidator) ProtoMessage()

func (*EventAddValidator) Reset

func (m *EventAddValidator) Reset()

func (*EventAddValidator) Size

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

func (*EventAddValidator) String

func (m *EventAddValidator) String() string

func (*EventAddValidator) Unmarshal

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

func (*EventAddValidator) XXX_DiscardUnknown

func (m *EventAddValidator) XXX_DiscardUnknown()

func (*EventAddValidator) XXX_Marshal

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

func (*EventAddValidator) XXX_Merge

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

func (*EventAddValidator) XXX_Size

func (m *EventAddValidator) XXX_Size() int

func (*EventAddValidator) XXX_Unmarshal

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

type EventMissedBlock

type EventMissedBlock struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

EventMissedBlock is an event emitted when a validator missed a block.

func (*EventMissedBlock) Descriptor

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

func (*EventMissedBlock) GetAddress

func (m *EventMissedBlock) GetAddress() string

func (*EventMissedBlock) Marshal

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

func (*EventMissedBlock) MarshalTo

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

func (*EventMissedBlock) MarshalToSizedBuffer

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

func (*EventMissedBlock) ProtoMessage

func (*EventMissedBlock) ProtoMessage()

func (*EventMissedBlock) Reset

func (m *EventMissedBlock) Reset()

func (*EventMissedBlock) Size

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

func (*EventMissedBlock) String

func (m *EventMissedBlock) String() string

func (*EventMissedBlock) Unmarshal

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

func (*EventMissedBlock) XXX_DiscardUnknown

func (m *EventMissedBlock) XXX_DiscardUnknown()

func (*EventMissedBlock) XXX_Marshal

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

func (*EventMissedBlock) XXX_Merge

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

func (*EventMissedBlock) XXX_Size

func (m *EventMissedBlock) XXX_Size() int

func (*EventMissedBlock) XXX_Unmarshal

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

type EventRemoveValidator

type EventRemoveValidator struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

EventRemoveValidator is an event emitted when a validator is removed.

func (*EventRemoveValidator) Descriptor

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

func (*EventRemoveValidator) GetAddress

func (m *EventRemoveValidator) GetAddress() string

func (*EventRemoveValidator) Marshal

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

func (*EventRemoveValidator) MarshalTo

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

func (*EventRemoveValidator) MarshalToSizedBuffer

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

func (*EventRemoveValidator) ProtoMessage

func (*EventRemoveValidator) ProtoMessage()

func (*EventRemoveValidator) Reset

func (m *EventRemoveValidator) Reset()

func (*EventRemoveValidator) Size

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

func (*EventRemoveValidator) String

func (m *EventRemoveValidator) String() string

func (*EventRemoveValidator) Unmarshal

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

func (*EventRemoveValidator) XXX_DiscardUnknown

func (m *EventRemoveValidator) XXX_DiscardUnknown()

func (*EventRemoveValidator) XXX_Marshal

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

func (*EventRemoveValidator) XXX_Merge

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

func (*EventRemoveValidator) XXX_Size

func (m *EventRemoveValidator) XXX_Size() int

func (*EventRemoveValidator) XXX_Unmarshal

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

type EventUpdatePolicy

type EventUpdatePolicy struct {
	// signed_blocks_window is the window within which a validator is expected to
	// sign a block.
	SignedBlocksWindow int64 `protobuf:"varint,1,opt,name=signed_blocks_window,json=signedBlocksWindow,proto3" json:"signed_blocks_window,omitempty"`
	// min_signed_per_window is the minimum number of signed blocks per signed
	// blocks window.
	MinSignedPerWindow int64 `protobuf:"varint,2,opt,name=min_signed_per_window,json=minSignedPerWindow,proto3" json:"min_signed_per_window,omitempty"`
}

EventUpdatePolicy is an event emitted when the policy is updated.

func (*EventUpdatePolicy) Descriptor

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

func (*EventUpdatePolicy) GetMinSignedPerWindow

func (m *EventUpdatePolicy) GetMinSignedPerWindow() int64

func (*EventUpdatePolicy) GetSignedBlocksWindow

func (m *EventUpdatePolicy) GetSignedBlocksWindow() int64

func (*EventUpdatePolicy) Marshal

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

func (*EventUpdatePolicy) MarshalTo

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

func (*EventUpdatePolicy) MarshalToSizedBuffer

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

func (*EventUpdatePolicy) ProtoMessage

func (*EventUpdatePolicy) ProtoMessage()

func (*EventUpdatePolicy) Reset

func (m *EventUpdatePolicy) Reset()

func (*EventUpdatePolicy) Size

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

func (*EventUpdatePolicy) String

func (m *EventUpdatePolicy) String() string

func (*EventUpdatePolicy) Unmarshal

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

func (*EventUpdatePolicy) XXX_DiscardUnknown

func (m *EventUpdatePolicy) XXX_DiscardUnknown()

func (*EventUpdatePolicy) XXX_Marshal

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

func (*EventUpdatePolicy) XXX_Merge

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

func (*EventUpdatePolicy) XXX_Size

func (m *EventUpdatePolicy) XXX_Size() int

func (*EventUpdatePolicy) XXX_Unmarshal

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

type EventUpdateValidator

type EventUpdateValidator struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

EventUpdateValidator is an event emitted when a validator is updated.

func (*EventUpdateValidator) Descriptor

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

func (*EventUpdateValidator) GetAddress

func (m *EventUpdateValidator) GetAddress() string

func (*EventUpdateValidator) Marshal

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

func (*EventUpdateValidator) MarshalTo

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

func (*EventUpdateValidator) MarshalToSizedBuffer

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

func (*EventUpdateValidator) ProtoMessage

func (*EventUpdateValidator) ProtoMessage()

func (*EventUpdateValidator) Reset

func (m *EventUpdateValidator) Reset()

func (*EventUpdateValidator) Size

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

func (*EventUpdateValidator) String

func (m *EventUpdateValidator) String() string

func (*EventUpdateValidator) Unmarshal

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

func (*EventUpdateValidator) XXX_DiscardUnknown

func (m *EventUpdateValidator) XXX_DiscardUnknown()

func (*EventUpdateValidator) XXX_Marshal

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

func (*EventUpdateValidator) XXX_Merge

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

func (*EventUpdateValidator) XXX_Size

func (m *EventUpdateValidator) XXX_Size() int

func (*EventUpdateValidator) XXX_Unmarshal

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

type MsgAddValidator

type MsgAddValidator struct {
	// authority is the address of the authority.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// address is the address of the validator.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// operator is the address of the operator.
	Operator string `protobuf:"bytes,3,opt,name=operator,proto3" json:"operator,omitempty"`
	// metadata is the metadata of the validator.
	Metadata string `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

MsgAddValidator is the Msg/AddValidator request type.

func (*MsgAddValidator) Descriptor

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

func (*MsgAddValidator) GetAddress

func (m *MsgAddValidator) GetAddress() string

func (*MsgAddValidator) GetAuthority

func (m *MsgAddValidator) GetAuthority() string

func (*MsgAddValidator) GetMetadata

func (m *MsgAddValidator) GetMetadata() string

func (*MsgAddValidator) GetOperator

func (m *MsgAddValidator) GetOperator() string

func (MsgAddValidator) GetSigners

func (m MsgAddValidator) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgAddValidator.

func (*MsgAddValidator) Marshal

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

func (*MsgAddValidator) MarshalTo

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

func (*MsgAddValidator) MarshalToSizedBuffer

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

func (*MsgAddValidator) ProtoMessage

func (*MsgAddValidator) ProtoMessage()

func (*MsgAddValidator) Reset

func (m *MsgAddValidator) Reset()

func (MsgAddValidator) Route

func (m MsgAddValidator) Route() string

Route implements the LegacyMsg interface.

func (*MsgAddValidator) Size

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

func (*MsgAddValidator) String

func (m *MsgAddValidator) String() string

func (MsgAddValidator) Type

func (m MsgAddValidator) Type() string

Type implements the LegacyMsg interface.

func (*MsgAddValidator) Unmarshal

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

func (MsgAddValidator) ValidateBasic

func (m MsgAddValidator) ValidateBasic() error

ValidateBasic performs stateless validation on MsgAddValidator.

func (*MsgAddValidator) XXX_DiscardUnknown

func (m *MsgAddValidator) XXX_DiscardUnknown()

func (*MsgAddValidator) XXX_Marshal

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

func (*MsgAddValidator) XXX_Merge

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

func (*MsgAddValidator) XXX_Size

func (m *MsgAddValidator) XXX_Size() int

func (*MsgAddValidator) XXX_Unmarshal

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

type MsgAddValidatorResponse

type MsgAddValidatorResponse struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

MsgAddValidatorResponse is the Msg/AddValidator response type.

func (*MsgAddValidatorResponse) Descriptor

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

func (*MsgAddValidatorResponse) GetAddress

func (m *MsgAddValidatorResponse) GetAddress() string

func (*MsgAddValidatorResponse) Marshal

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

func (*MsgAddValidatorResponse) MarshalTo

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

func (*MsgAddValidatorResponse) MarshalToSizedBuffer

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

func (*MsgAddValidatorResponse) ProtoMessage

func (*MsgAddValidatorResponse) ProtoMessage()

func (*MsgAddValidatorResponse) Reset

func (m *MsgAddValidatorResponse) Reset()

func (*MsgAddValidatorResponse) Size

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

func (*MsgAddValidatorResponse) String

func (m *MsgAddValidatorResponse) String() string

func (*MsgAddValidatorResponse) Unmarshal

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

func (*MsgAddValidatorResponse) XXX_DiscardUnknown

func (m *MsgAddValidatorResponse) XXX_DiscardUnknown()

func (*MsgAddValidatorResponse) XXX_Marshal

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

func (*MsgAddValidatorResponse) XXX_Merge

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

func (*MsgAddValidatorResponse) XXX_Size

func (m *MsgAddValidatorResponse) XXX_Size() int

func (*MsgAddValidatorResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	// AddValidator adds a validator (restricted to authority).
	AddValidator(ctx context.Context, in *MsgAddValidator, opts ...grpc.CallOption) (*MsgAddValidatorResponse, error)
	// RemoveValidator removes a validator (restricted to authority).
	RemoveValidator(ctx context.Context, in *MsgRemoveValidator, opts ...grpc.CallOption) (*MsgRemoveValidatorResponse, error)
	// UpdatePolicy updates the policy (restricted to authority).
	UpdatePolicy(ctx context.Context, in *MsgUpdatePolicy, opts ...grpc.CallOption) (*MsgUpdatePolicyResponse, error)
	// UpdateValidator updates a validator (restricted to operator).
	UpdateValidator(ctx context.Context, in *MsgUpdateValidator, opts ...grpc.CallOption) (*MsgUpdateValidatorResponse, 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 MsgRemoveValidator

type MsgRemoveValidator struct {
	// authority is the address of the authority.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// address is the address of the validator.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
}

MsgRemoveValidator is the Msg/RemoveValidator request type.

func (*MsgRemoveValidator) Descriptor

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

func (*MsgRemoveValidator) GetAddress

func (m *MsgRemoveValidator) GetAddress() string

func (*MsgRemoveValidator) GetAuthority

func (m *MsgRemoveValidator) GetAuthority() string

func (MsgRemoveValidator) GetSigners

func (m MsgRemoveValidator) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgRemoveValidator.

func (*MsgRemoveValidator) Marshal

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

func (*MsgRemoveValidator) MarshalTo

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

func (*MsgRemoveValidator) MarshalToSizedBuffer

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

func (*MsgRemoveValidator) ProtoMessage

func (*MsgRemoveValidator) ProtoMessage()

func (*MsgRemoveValidator) Reset

func (m *MsgRemoveValidator) Reset()

func (MsgRemoveValidator) Route

func (m MsgRemoveValidator) Route() string

Route implements the LegacyMsg interface.

func (*MsgRemoveValidator) Size

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

func (*MsgRemoveValidator) String

func (m *MsgRemoveValidator) String() string

func (MsgRemoveValidator) Type

func (m MsgRemoveValidator) Type() string

Type implements the LegacyMsg interface.

func (*MsgRemoveValidator) Unmarshal

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

func (MsgRemoveValidator) ValidateBasic

func (m MsgRemoveValidator) ValidateBasic() error

ValidateBasic performs stateless validation on MsgRemoveValidator.

func (*MsgRemoveValidator) XXX_DiscardUnknown

func (m *MsgRemoveValidator) XXX_DiscardUnknown()

func (*MsgRemoveValidator) XXX_Marshal

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

func (*MsgRemoveValidator) XXX_Merge

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

func (*MsgRemoveValidator) XXX_Size

func (m *MsgRemoveValidator) XXX_Size() int

func (*MsgRemoveValidator) XXX_Unmarshal

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

type MsgRemoveValidatorResponse

type MsgRemoveValidatorResponse struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

MsgRemoveValidatorResponse is the Msg/RemoveValidator response type.

func (*MsgRemoveValidatorResponse) Descriptor

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

func (*MsgRemoveValidatorResponse) GetAddress

func (m *MsgRemoveValidatorResponse) GetAddress() string

func (*MsgRemoveValidatorResponse) Marshal

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

func (*MsgRemoveValidatorResponse) MarshalTo

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

func (*MsgRemoveValidatorResponse) MarshalToSizedBuffer

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

func (*MsgRemoveValidatorResponse) ProtoMessage

func (*MsgRemoveValidatorResponse) ProtoMessage()

func (*MsgRemoveValidatorResponse) Reset

func (m *MsgRemoveValidatorResponse) Reset()

func (*MsgRemoveValidatorResponse) Size

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

func (*MsgRemoveValidatorResponse) String

func (m *MsgRemoveValidatorResponse) String() string

func (*MsgRemoveValidatorResponse) Unmarshal

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

func (*MsgRemoveValidatorResponse) XXX_DiscardUnknown

func (m *MsgRemoveValidatorResponse) XXX_DiscardUnknown()

func (*MsgRemoveValidatorResponse) XXX_Marshal

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

func (*MsgRemoveValidatorResponse) XXX_Merge

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

func (*MsgRemoveValidatorResponse) XXX_Size

func (m *MsgRemoveValidatorResponse) XXX_Size() int

func (*MsgRemoveValidatorResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// AddValidator adds a validator (restricted to authority).
	AddValidator(context.Context, *MsgAddValidator) (*MsgAddValidatorResponse, error)
	// RemoveValidator removes a validator (restricted to authority).
	RemoveValidator(context.Context, *MsgRemoveValidator) (*MsgRemoveValidatorResponse, error)
	// UpdatePolicy updates the policy (restricted to authority).
	UpdatePolicy(context.Context, *MsgUpdatePolicy) (*MsgUpdatePolicyResponse, error)
	// UpdateValidator updates a validator (restricted to operator).
	UpdateValidator(context.Context, *MsgUpdateValidator) (*MsgUpdateValidatorResponse, error)
}

MsgServer is the server API for Msg service.

type MsgUpdatePolicy

type MsgUpdatePolicy struct {
	// authority is the address of the authority.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// signed_blocks_window is the window within which a validator is expected to
	// sign a block.
	SignedBlocksWindow int64 `protobuf:"varint,2,opt,name=signed_blocks_window,json=signedBlocksWindow,proto3" json:"signed_blocks_window,omitempty"`
	// min_signed_per_window is the minimum number of signed blocks per signed
	// blocks window.
	MinSignedPerWindow int64 `protobuf:"varint,3,opt,name=min_signed_per_window,json=minSignedPerWindow,proto3" json:"min_signed_per_window,omitempty"`
}

MsgUpdatePolicy is the Msg/UpdatePolicy request type.

func (*MsgUpdatePolicy) Descriptor

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

func (*MsgUpdatePolicy) GetAuthority

func (m *MsgUpdatePolicy) GetAuthority() string

func (*MsgUpdatePolicy) GetMinSignedPerWindow

func (m *MsgUpdatePolicy) GetMinSignedPerWindow() int64

func (*MsgUpdatePolicy) GetSignedBlocksWindow

func (m *MsgUpdatePolicy) GetSignedBlocksWindow() int64

func (MsgUpdatePolicy) GetSigners

func (m MsgUpdatePolicy) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgUpdatePolicy.

func (*MsgUpdatePolicy) Marshal

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

func (*MsgUpdatePolicy) MarshalTo

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

func (*MsgUpdatePolicy) MarshalToSizedBuffer

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

func (*MsgUpdatePolicy) ProtoMessage

func (*MsgUpdatePolicy) ProtoMessage()

func (*MsgUpdatePolicy) Reset

func (m *MsgUpdatePolicy) Reset()

func (MsgUpdatePolicy) Route

func (m MsgUpdatePolicy) Route() string

Route implements the LegacyMsg interface.

func (*MsgUpdatePolicy) Size

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

func (*MsgUpdatePolicy) String

func (m *MsgUpdatePolicy) String() string

func (MsgUpdatePolicy) Type

func (m MsgUpdatePolicy) Type() string

Type implements the LegacyMsg interface.

func (*MsgUpdatePolicy) Unmarshal

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

func (MsgUpdatePolicy) ValidateBasic

func (m MsgUpdatePolicy) ValidateBasic() error

ValidateBasic performs stateless validation on MsgUpdatePolicy.

func (*MsgUpdatePolicy) XXX_DiscardUnknown

func (m *MsgUpdatePolicy) XXX_DiscardUnknown()

func (*MsgUpdatePolicy) XXX_Marshal

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

func (*MsgUpdatePolicy) XXX_Merge

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

func (*MsgUpdatePolicy) XXX_Size

func (m *MsgUpdatePolicy) XXX_Size() int

func (*MsgUpdatePolicy) XXX_Unmarshal

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

type MsgUpdatePolicyResponse

type MsgUpdatePolicyResponse struct {
	// signed_blocks_window is the window within which a validator is expected to
	// sign a block.
	SignedBlocksWindow int64 `protobuf:"varint,1,opt,name=signed_blocks_window,json=signedBlocksWindow,proto3" json:"signed_blocks_window,omitempty"`
	// min_signed_per_window is the minimum number of signed blocks per signed
	// blocks window.
	MinSignedPerWindow int64 `protobuf:"varint,2,opt,name=min_signed_per_window,json=minSignedPerWindow,proto3" json:"min_signed_per_window,omitempty"`
}

MsgUpdatePolicyResponse is the Msg/UpdatePolicy response type.

func (*MsgUpdatePolicyResponse) Descriptor

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

func (*MsgUpdatePolicyResponse) GetMinSignedPerWindow

func (m *MsgUpdatePolicyResponse) GetMinSignedPerWindow() int64

func (*MsgUpdatePolicyResponse) GetSignedBlocksWindow

func (m *MsgUpdatePolicyResponse) GetSignedBlocksWindow() int64

func (*MsgUpdatePolicyResponse) Marshal

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

func (*MsgUpdatePolicyResponse) MarshalTo

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

func (*MsgUpdatePolicyResponse) MarshalToSizedBuffer

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

func (*MsgUpdatePolicyResponse) ProtoMessage

func (*MsgUpdatePolicyResponse) ProtoMessage()

func (*MsgUpdatePolicyResponse) Reset

func (m *MsgUpdatePolicyResponse) Reset()

func (*MsgUpdatePolicyResponse) Size

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

func (*MsgUpdatePolicyResponse) String

func (m *MsgUpdatePolicyResponse) String() string

func (*MsgUpdatePolicyResponse) Unmarshal

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

func (*MsgUpdatePolicyResponse) XXX_DiscardUnknown

func (m *MsgUpdatePolicyResponse) XXX_DiscardUnknown()

func (*MsgUpdatePolicyResponse) XXX_Marshal

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

func (*MsgUpdatePolicyResponse) XXX_Merge

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

func (*MsgUpdatePolicyResponse) XXX_Size

func (m *MsgUpdatePolicyResponse) XXX_Size() int

func (*MsgUpdatePolicyResponse) XXX_Unmarshal

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

type MsgUpdateValidator

type MsgUpdateValidator struct {
	// operator is the address of the operator.
	Operator string `protobuf:"bytes,1,opt,name=operator,proto3" json:"operator,omitempty"`
	// address is the address of the validator.
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
	// new_metadata is the new metadata of the validator.
	NewMetadata string `protobuf:"bytes,3,opt,name=new_metadata,json=newMetadata,proto3" json:"new_metadata,omitempty"`
}

MsgUpdateValidator is the Msg/UpdateValidator request type.

func (*MsgUpdateValidator) Descriptor

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

func (*MsgUpdateValidator) GetAddress

func (m *MsgUpdateValidator) GetAddress() string

func (*MsgUpdateValidator) GetNewMetadata

func (m *MsgUpdateValidator) GetNewMetadata() string

func (*MsgUpdateValidator) GetOperator

func (m *MsgUpdateValidator) GetOperator() string

func (MsgUpdateValidator) GetSigners

func (m MsgUpdateValidator) GetSigners() []sdk.AccAddress

GetSigners returns the expected signers for MsgUpdateValidator.

func (*MsgUpdateValidator) Marshal

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

func (*MsgUpdateValidator) MarshalTo

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

func (*MsgUpdateValidator) MarshalToSizedBuffer

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

func (*MsgUpdateValidator) ProtoMessage

func (*MsgUpdateValidator) ProtoMessage()

func (*MsgUpdateValidator) Reset

func (m *MsgUpdateValidator) Reset()

func (MsgUpdateValidator) Route

func (m MsgUpdateValidator) Route() string

Route implements the LegacyMsg interface.

func (*MsgUpdateValidator) Size

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

func (*MsgUpdateValidator) String

func (m *MsgUpdateValidator) String() string

func (MsgUpdateValidator) Type

func (m MsgUpdateValidator) Type() string

Type implements the LegacyMsg interface.

func (*MsgUpdateValidator) Unmarshal

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

func (MsgUpdateValidator) ValidateBasic

func (m MsgUpdateValidator) ValidateBasic() error

ValidateBasic performs stateless validation on MsgUpdateValidator.

func (*MsgUpdateValidator) XXX_DiscardUnknown

func (m *MsgUpdateValidator) XXX_DiscardUnknown()

func (*MsgUpdateValidator) XXX_Marshal

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

func (*MsgUpdateValidator) XXX_Merge

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

func (*MsgUpdateValidator) XXX_Size

func (m *MsgUpdateValidator) XXX_Size() int

func (*MsgUpdateValidator) XXX_Unmarshal

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

type MsgUpdateValidatorResponse

type MsgUpdateValidatorResponse struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

MsgUpdateValidatorResponse is the Msg/UpdateValidator response type.

func (*MsgUpdateValidatorResponse) Descriptor

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

func (*MsgUpdateValidatorResponse) GetAddress

func (m *MsgUpdateValidatorResponse) GetAddress() string

func (*MsgUpdateValidatorResponse) Marshal

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

func (*MsgUpdateValidatorResponse) MarshalTo

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

func (*MsgUpdateValidatorResponse) MarshalToSizedBuffer

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

func (*MsgUpdateValidatorResponse) ProtoMessage

func (*MsgUpdateValidatorResponse) ProtoMessage()

func (*MsgUpdateValidatorResponse) Reset

func (m *MsgUpdateValidatorResponse) Reset()

func (*MsgUpdateValidatorResponse) Size

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

func (*MsgUpdateValidatorResponse) String

func (m *MsgUpdateValidatorResponse) String() string

func (*MsgUpdateValidatorResponse) Unmarshal

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

func (*MsgUpdateValidatorResponse) XXX_DiscardUnknown

func (m *MsgUpdateValidatorResponse) XXX_DiscardUnknown()

func (*MsgUpdateValidatorResponse) XXX_Marshal

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

func (*MsgUpdateValidatorResponse) XXX_Merge

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

func (*MsgUpdateValidatorResponse) XXX_Size

func (m *MsgUpdateValidatorResponse) XXX_Size() int

func (*MsgUpdateValidatorResponse) XXX_Unmarshal

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

type Policy

type Policy struct {
	// signed_blocks_window is the window within which a validator is expected to
	// sign a block.
	SignedBlocksWindow int64 `protobuf:"varint,1,opt,name=signed_blocks_window,json=signedBlocksWindow,proto3" json:"signed_blocks_window,omitempty"`
	// min_signed_per_window is the minimum number of signed blocks per signed
	// blocks window.
	MinSignedPerWindow int64 `protobuf:"varint,2,opt,name=min_signed_per_window,json=minSignedPerWindow,proto3" json:"min_signed_per_window,omitempty"`
}

Policy defines a singleton table for the signing policy.

func (*Policy) Descriptor

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

func (*Policy) GetMinSignedPerWindow

func (m *Policy) GetMinSignedPerWindow() int64

func (*Policy) GetSignedBlocksWindow

func (m *Policy) GetSignedBlocksWindow() int64

func (*Policy) Marshal

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

func (*Policy) MarshalTo

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

func (*Policy) MarshalToSizedBuffer

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

func (*Policy) ProtoMessage

func (*Policy) ProtoMessage()

func (*Policy) Reset

func (m *Policy) Reset()

func (*Policy) Size

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

func (*Policy) String

func (m *Policy) String() string

func (*Policy) Unmarshal

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

func (*Policy) XXX_DiscardUnknown

func (m *Policy) XXX_DiscardUnknown()

func (*Policy) XXX_Marshal

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

func (*Policy) XXX_Merge

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

func (*Policy) XXX_Size

func (m *Policy) XXX_Size() int

func (*Policy) XXX_Unmarshal

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

type QueryClient

type QueryClient interface {
	// Policy queries the maximum number of missed blocks before a validator is
	// removed from the validator set.
	Policy(ctx context.Context, in *QueryPolicyRequest, opts ...grpc.CallOption) (*QueryPolicyResponse, error)
	// Validator queries a validator by address.
	Validator(ctx context.Context, in *QueryValidatorRequest, opts ...grpc.CallOption) (*QueryValidatorResponse, error)
	// Validators queries all validators.
	Validators(ctx context.Context, in *QueryValidatorsRequest, opts ...grpc.CallOption) (*QueryValidatorsResponse, 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 QueryPolicyRequest

type QueryPolicyRequest struct {
}

QueryPolicyRequest is the Query/Policy request type.

func (*QueryPolicyRequest) Descriptor

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

func (*QueryPolicyRequest) Marshal

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

func (*QueryPolicyRequest) MarshalTo

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

func (*QueryPolicyRequest) MarshalToSizedBuffer

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

func (*QueryPolicyRequest) ProtoMessage

func (*QueryPolicyRequest) ProtoMessage()

func (*QueryPolicyRequest) Reset

func (m *QueryPolicyRequest) Reset()

func (*QueryPolicyRequest) Size

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

func (*QueryPolicyRequest) String

func (m *QueryPolicyRequest) String() string

func (*QueryPolicyRequest) Unmarshal

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

func (*QueryPolicyRequest) XXX_DiscardUnknown

func (m *QueryPolicyRequest) XXX_DiscardUnknown()

func (*QueryPolicyRequest) XXX_Marshal

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

func (*QueryPolicyRequest) XXX_Merge

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

func (*QueryPolicyRequest) XXX_Size

func (m *QueryPolicyRequest) XXX_Size() int

func (*QueryPolicyRequest) XXX_Unmarshal

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

type QueryPolicyResponse

type QueryPolicyResponse struct {
	// signed_blocks_window is the window within which a validator is expected to
	// sign a block.
	SignedBlocksWindow int64 `protobuf:"varint,1,opt,name=signed_blocks_window,json=signedBlocksWindow,proto3" json:"signed_blocks_window,omitempty"`
	// min_signed_per_window is the minimum number of signed blocks per signed
	// blocks window.
	MinSignedPerWindow int64 `protobuf:"varint,2,opt,name=min_signed_per_window,json=minSignedPerWindow,proto3" json:"min_signed_per_window,omitempty"`
}

QueryPolicyResponse is the Query/Policy response type.

func (*QueryPolicyResponse) Descriptor

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

func (*QueryPolicyResponse) GetMinSignedPerWindow

func (m *QueryPolicyResponse) GetMinSignedPerWindow() int64

func (*QueryPolicyResponse) GetSignedBlocksWindow

func (m *QueryPolicyResponse) GetSignedBlocksWindow() int64

func (*QueryPolicyResponse) Marshal

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

func (*QueryPolicyResponse) MarshalTo

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

func (*QueryPolicyResponse) MarshalToSizedBuffer

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

func (*QueryPolicyResponse) ProtoMessage

func (*QueryPolicyResponse) ProtoMessage()

func (*QueryPolicyResponse) Reset

func (m *QueryPolicyResponse) Reset()

func (*QueryPolicyResponse) Size

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

func (*QueryPolicyResponse) String

func (m *QueryPolicyResponse) String() string

func (*QueryPolicyResponse) Unmarshal

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

func (*QueryPolicyResponse) XXX_DiscardUnknown

func (m *QueryPolicyResponse) XXX_DiscardUnknown()

func (*QueryPolicyResponse) XXX_Marshal

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

func (*QueryPolicyResponse) XXX_Merge

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

func (*QueryPolicyResponse) XXX_Size

func (m *QueryPolicyResponse) XXX_Size() int

func (*QueryPolicyResponse) XXX_Unmarshal

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

type QueryServer

type QueryServer interface {
	// Policy queries the maximum number of missed blocks before a validator is
	// removed from the validator set.
	Policy(context.Context, *QueryPolicyRequest) (*QueryPolicyResponse, error)
	// Validator queries a validator by address.
	Validator(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error)
	// Validators queries all validators.
	Validators(context.Context, *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
}

QueryServer is the server API for Query service.

type QueryValidatorRequest

type QueryValidatorRequest struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
}

QueryValidatorRequest is the Query/Validator request type.

func (*QueryValidatorRequest) Descriptor

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

func (*QueryValidatorRequest) GetAddress

func (m *QueryValidatorRequest) GetAddress() string

func (*QueryValidatorRequest) Marshal

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

func (*QueryValidatorRequest) MarshalTo

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

func (*QueryValidatorRequest) MarshalToSizedBuffer

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

func (*QueryValidatorRequest) ProtoMessage

func (*QueryValidatorRequest) ProtoMessage()

func (*QueryValidatorRequest) Reset

func (m *QueryValidatorRequest) Reset()

func (*QueryValidatorRequest) Size

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

func (*QueryValidatorRequest) String

func (m *QueryValidatorRequest) String() string

func (*QueryValidatorRequest) Unmarshal

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

func (*QueryValidatorRequest) XXX_DiscardUnknown

func (m *QueryValidatorRequest) XXX_DiscardUnknown()

func (*QueryValidatorRequest) XXX_Marshal

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

func (*QueryValidatorRequest) XXX_Merge

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

func (*QueryValidatorRequest) XXX_Size

func (m *QueryValidatorRequest) XXX_Size() int

func (*QueryValidatorRequest) XXX_Unmarshal

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

type QueryValidatorResponse

type QueryValidatorResponse struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// metadata is the metadata of the validator.
	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// missed_blocks is the number of missed blocks.
	MissedBlocks int64 `protobuf:"varint,3,opt,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks,omitempty"`
}

QueryValidatorResponse is the Query/Validator response type.

func (*QueryValidatorResponse) Descriptor

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

func (*QueryValidatorResponse) GetAddress

func (m *QueryValidatorResponse) GetAddress() string

func (*QueryValidatorResponse) GetMetadata

func (m *QueryValidatorResponse) GetMetadata() string

func (*QueryValidatorResponse) GetMissedBlocks

func (m *QueryValidatorResponse) GetMissedBlocks() int64

func (*QueryValidatorResponse) Marshal

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

func (*QueryValidatorResponse) MarshalTo

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

func (*QueryValidatorResponse) MarshalToSizedBuffer

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

func (*QueryValidatorResponse) ProtoMessage

func (*QueryValidatorResponse) ProtoMessage()

func (*QueryValidatorResponse) Reset

func (m *QueryValidatorResponse) Reset()

func (*QueryValidatorResponse) Size

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

func (*QueryValidatorResponse) String

func (m *QueryValidatorResponse) String() string

func (*QueryValidatorResponse) Unmarshal

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

func (*QueryValidatorResponse) XXX_DiscardUnknown

func (m *QueryValidatorResponse) XXX_DiscardUnknown()

func (*QueryValidatorResponse) XXX_Marshal

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

func (*QueryValidatorResponse) XXX_Merge

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

func (*QueryValidatorResponse) XXX_Size

func (m *QueryValidatorResponse) XXX_Size() int

func (*QueryValidatorResponse) XXX_Unmarshal

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

type QueryValidatorsRequest

type QueryValidatorsRequest struct {
	// pagination is the optional pagination of the request.
	Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorsRequest is the Query/Validators request type.

func (*QueryValidatorsRequest) Descriptor

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

func (*QueryValidatorsRequest) GetPagination

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

func (*QueryValidatorsRequest) Marshal

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

func (*QueryValidatorsRequest) MarshalTo

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

func (*QueryValidatorsRequest) MarshalToSizedBuffer

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

func (*QueryValidatorsRequest) ProtoMessage

func (*QueryValidatorsRequest) ProtoMessage()

func (*QueryValidatorsRequest) Reset

func (m *QueryValidatorsRequest) Reset()

func (*QueryValidatorsRequest) Size

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

func (*QueryValidatorsRequest) String

func (m *QueryValidatorsRequest) String() string

func (*QueryValidatorsRequest) Unmarshal

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

func (*QueryValidatorsRequest) XXX_DiscardUnknown

func (m *QueryValidatorsRequest) XXX_DiscardUnknown()

func (*QueryValidatorsRequest) XXX_Marshal

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

func (*QueryValidatorsRequest) XXX_Merge

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

func (*QueryValidatorsRequest) XXX_Size

func (m *QueryValidatorsRequest) XXX_Size() int

func (*QueryValidatorsRequest) XXX_Unmarshal

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

type QueryValidatorsResponse

type QueryValidatorsResponse struct {
	// validators is the list of validators.
	Validators []*QueryValidatorsResponse_Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
	// pagination is the pagination of the response.
	Pagination *query.PageResponse `protobuf:"bytes,3,opt,name=pagination,proto3" json:"pagination,omitempty"`
}

QueryValidatorsResponse is the Query/Validators response type.

func (*QueryValidatorsResponse) Descriptor

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

func (*QueryValidatorsResponse) GetPagination

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

func (*QueryValidatorsResponse) GetValidators

func (*QueryValidatorsResponse) Marshal

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

func (*QueryValidatorsResponse) MarshalTo

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

func (*QueryValidatorsResponse) MarshalToSizedBuffer

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

func (*QueryValidatorsResponse) ProtoMessage

func (*QueryValidatorsResponse) ProtoMessage()

func (*QueryValidatorsResponse) Reset

func (m *QueryValidatorsResponse) Reset()

func (*QueryValidatorsResponse) Size

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

func (*QueryValidatorsResponse) String

func (m *QueryValidatorsResponse) String() string

func (*QueryValidatorsResponse) Unmarshal

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

func (*QueryValidatorsResponse) XXX_DiscardUnknown

func (m *QueryValidatorsResponse) XXX_DiscardUnknown()

func (*QueryValidatorsResponse) XXX_Marshal

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

func (*QueryValidatorsResponse) XXX_Merge

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

func (*QueryValidatorsResponse) XXX_Size

func (m *QueryValidatorsResponse) XXX_Size() int

func (*QueryValidatorsResponse) XXX_Unmarshal

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

type QueryValidatorsResponse_Validator

type QueryValidatorsResponse_Validator struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// metadata is the metadata of the validator.
	Metadata string `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
	// missed_blocks is the number of missed blocks.
	MissedBlocks int64 `protobuf:"varint,3,opt,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks,omitempty"`
}

Validator is the validator properties.

func (*QueryValidatorsResponse_Validator) Descriptor

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

func (*QueryValidatorsResponse_Validator) GetAddress

func (m *QueryValidatorsResponse_Validator) GetAddress() string

func (*QueryValidatorsResponse_Validator) GetMetadata

func (m *QueryValidatorsResponse_Validator) GetMetadata() string

func (*QueryValidatorsResponse_Validator) GetMissedBlocks

func (m *QueryValidatorsResponse_Validator) GetMissedBlocks() int64

func (*QueryValidatorsResponse_Validator) Marshal

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

func (*QueryValidatorsResponse_Validator) MarshalTo

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

func (*QueryValidatorsResponse_Validator) MarshalToSizedBuffer

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

func (*QueryValidatorsResponse_Validator) ProtoMessage

func (*QueryValidatorsResponse_Validator) ProtoMessage()

func (*QueryValidatorsResponse_Validator) Reset

func (*QueryValidatorsResponse_Validator) Size

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

func (*QueryValidatorsResponse_Validator) String

func (*QueryValidatorsResponse_Validator) Unmarshal

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

func (*QueryValidatorsResponse_Validator) XXX_DiscardUnknown

func (m *QueryValidatorsResponse_Validator) XXX_DiscardUnknown()

func (*QueryValidatorsResponse_Validator) XXX_Marshal

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

func (*QueryValidatorsResponse_Validator) XXX_Merge

func (*QueryValidatorsResponse_Validator) XXX_Size

func (m *QueryValidatorsResponse_Validator) XXX_Size() int

func (*QueryValidatorsResponse_Validator) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddValidator

func (*UnimplementedMsgServer) RemoveValidator

func (*UnimplementedMsgServer) UpdatePolicy

func (*UnimplementedMsgServer) UpdateValidator

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) Policy

func (*UnimplementedQueryServer) Validator

func (*UnimplementedQueryServer) Validators

type Validator

type Validator struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// operator is the address of the operator.
	Operator string `protobuf:"bytes,2,opt,name=operator,proto3" json:"operator,omitempty"`
	// metadata is the metadata of the validator.
	Metadata string `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

Validator defines the table and properties of a validator.

func (*Validator) Descriptor

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

func (*Validator) GetAddress

func (m *Validator) GetAddress() string

func (*Validator) GetMetadata

func (m *Validator) GetMetadata() string

func (*Validator) GetOperator

func (m *Validator) GetOperator() string

func (*Validator) Marshal

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

func (*Validator) MarshalTo

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

func (*Validator) MarshalToSizedBuffer

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

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) Reset

func (m *Validator) Reset()

func (*Validator) Size

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

func (*Validator) String

func (m *Validator) String() string

func (*Validator) Unmarshal

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

func (*Validator) Validate

func (m *Validator) Validate() error

Validate validates Validator.

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

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

func (*Validator) XXX_Merge

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

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

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

type ValidatorSigningInfo

type ValidatorSigningInfo struct {
	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// start_height is the validator start height.
	StartHeight int64 `protobuf:"varint,2,opt,name=start_height,json=startHeight,proto3" json:"start_height,omitempty"`
	// index_offset is incremented every time a validator is bonded in a block.
	// This in conjunction with the signed_blocks_window param determines the
	// index in the missed block bitmap.
	IndexOffset int64 `protobuf:"varint,3,opt,name=index_offset,json=indexOffset,proto3" json:"index_offset,omitempty"`
	// missed_blocks contains missed blocks.
	MissedBlocks []*ValidatorSigningInfo_MissedBlock `protobuf:"bytes,4,rep,name=missed_blocks,json=missedBlocks,proto3" json:"missed_blocks,omitempty"`
	// missed_blocks_count is the number of missed blocks.
	MissedBlocksCount int64 `protobuf:"varint,5,opt,name=missed_blocks_count,json=missedBlocksCount,proto3" json:"missed_blocks_count,omitempty"`
}

ValidatorSigningInfo extends the table and properties of a validator.

func (*ValidatorSigningInfo) Descriptor

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

func (*ValidatorSigningInfo) GetAddress

func (m *ValidatorSigningInfo) GetAddress() string

func (*ValidatorSigningInfo) GetIndexOffset

func (m *ValidatorSigningInfo) GetIndexOffset() int64

func (*ValidatorSigningInfo) GetMissedBlocks

func (*ValidatorSigningInfo) GetMissedBlocksCount

func (m *ValidatorSigningInfo) GetMissedBlocksCount() int64

func (*ValidatorSigningInfo) GetStartHeight

func (m *ValidatorSigningInfo) GetStartHeight() int64

func (*ValidatorSigningInfo) Marshal

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

func (*ValidatorSigningInfo) MarshalTo

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

func (*ValidatorSigningInfo) MarshalToSizedBuffer

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

func (*ValidatorSigningInfo) ProtoMessage

func (*ValidatorSigningInfo) ProtoMessage()

func (*ValidatorSigningInfo) Reset

func (m *ValidatorSigningInfo) Reset()

func (*ValidatorSigningInfo) Size

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

func (*ValidatorSigningInfo) String

func (m *ValidatorSigningInfo) String() string

func (*ValidatorSigningInfo) Unmarshal

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

func (*ValidatorSigningInfo) Validate

func (m *ValidatorSigningInfo) Validate() error

Validate validates ValidatorSigningInfo.

func (*ValidatorSigningInfo) XXX_DiscardUnknown

func (m *ValidatorSigningInfo) XXX_DiscardUnknown()

func (*ValidatorSigningInfo) XXX_Marshal

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

func (*ValidatorSigningInfo) XXX_Merge

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

func (*ValidatorSigningInfo) XXX_Size

func (m *ValidatorSigningInfo) XXX_Size() int

func (*ValidatorSigningInfo) XXX_Unmarshal

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

type ValidatorSigningInfo_MissedBlock

type ValidatorSigningInfo_MissedBlock struct {
	// index is the height at which the block was missed.
	Index int64 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	// missed is a boolean representing the missed block.
	Missed bool `protobuf:"varint,2,opt,name=missed,proto3" json:"missed,omitempty"`
}

MissedBlock represents a missed block.

func (*ValidatorSigningInfo_MissedBlock) Descriptor

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

func (*ValidatorSigningInfo_MissedBlock) GetIndex

func (*ValidatorSigningInfo_MissedBlock) GetMissed

func (m *ValidatorSigningInfo_MissedBlock) GetMissed() bool

func (*ValidatorSigningInfo_MissedBlock) Marshal

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

func (*ValidatorSigningInfo_MissedBlock) MarshalTo

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

func (*ValidatorSigningInfo_MissedBlock) MarshalToSizedBuffer

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

func (*ValidatorSigningInfo_MissedBlock) ProtoMessage

func (*ValidatorSigningInfo_MissedBlock) ProtoMessage()

func (*ValidatorSigningInfo_MissedBlock) Reset

func (*ValidatorSigningInfo_MissedBlock) Size

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

func (*ValidatorSigningInfo_MissedBlock) String

func (*ValidatorSigningInfo_MissedBlock) Unmarshal

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

func (*ValidatorSigningInfo_MissedBlock) XXX_DiscardUnknown

func (m *ValidatorSigningInfo_MissedBlock) XXX_DiscardUnknown()

func (*ValidatorSigningInfo_MissedBlock) XXX_Marshal

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

func (*ValidatorSigningInfo_MissedBlock) XXX_Merge

func (*ValidatorSigningInfo_MissedBlock) XXX_Size

func (m *ValidatorSigningInfo_MissedBlock) XXX_Size() int

func (*ValidatorSigningInfo_MissedBlock) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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