Documentation
¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func CalculateCollateralAmount(totalCollateral math.Uint, totalShares math.Uint, shares math.Uint) math.Uint
- func CalculateCollateralSharesForDeposit(totalCollateral math.Uint, totalShares math.Uint, amount math.Uint) math.Uint
- func CalculateCollateralSharesForWithdrawal(totalCollateral math.Uint, totalShares math.Uint, amount math.Uint) math.Uint
- func GetCollateralOwnershipByValidatorIterationKey(valAddr mitotypes.EthAddress) []byte
- func GetCollateralOwnershipKey(valAddr mitotypes.EthAddress, owner mitotypes.EthAddress) []byte
- func GetLastValidatorPowerKey(valAddr mitotypes.EthAddress) []byte
- func GetValidatorByConsAddrKey(consAddr sdk.ConsAddress) []byte
- func GetValidatorByPowerIndexKey(power int64, valAddr mitotypes.EthAddress) []byte
- func GetValidatorKey(valAddr mitotypes.EthAddress) []byte
- func GetWithdrawalByMaturesAtKey(maturesAt int64, id uint64) []byte
- func GetWithdrawalByValidatorIterationKey(valAddr mitotypes.EthAddress) []byte
- func GetWithdrawalByValidatorKey(valAddr mitotypes.EthAddress, maturesAt int64, id uint64) []byte
- func GetWithdrawalLastIDKey() []byte
- func PubkeyToEthAddress(pubkey []byte) (mitotypes.EthAddress, error)
- func RegisterInterfaces(registry types.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func ValidatePubkeyWithEthAddress(pubkey []byte, addr mitotypes.EthAddress) error
- type CollateralOwnership
- func (*CollateralOwnership) Descriptor() ([]byte, []int)
- func (m *CollateralOwnership) GetCreationHeight() int64
- func (m *CollateralOwnership) Marshal() (dAtA []byte, err error)
- func (m *CollateralOwnership) MarshalTo(dAtA []byte) (int, error)
- func (m *CollateralOwnership) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CollateralOwnership) ProtoMessage()
- func (m *CollateralOwnership) Reset()
- func (m *CollateralOwnership) Size() (n int)
- func (m *CollateralOwnership) String() string
- func (m *CollateralOwnership) Unmarshal(dAtA []byte) error
- func (m *CollateralOwnership) XXX_DiscardUnknown()
- func (m *CollateralOwnership) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CollateralOwnership) XXX_Merge(src proto.Message)
- func (m *CollateralOwnership) XXX_Size() int
- func (m *CollateralOwnership) XXX_Unmarshal(b []byte) error
- type CollateralOwnershipWithAmount
- func (*CollateralOwnershipWithAmount) Descriptor() ([]byte, []int)
- func (m *CollateralOwnershipWithAmount) GetOwnership() CollateralOwnership
- func (m *CollateralOwnershipWithAmount) Marshal() (dAtA []byte, err error)
- func (m *CollateralOwnershipWithAmount) MarshalTo(dAtA []byte) (int, error)
- func (m *CollateralOwnershipWithAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*CollateralOwnershipWithAmount) ProtoMessage()
- func (m *CollateralOwnershipWithAmount) Reset()
- func (m *CollateralOwnershipWithAmount) Size() (n int)
- func (m *CollateralOwnershipWithAmount) String() string
- func (m *CollateralOwnershipWithAmount) Unmarshal(dAtA []byte) error
- func (m *CollateralOwnershipWithAmount) XXX_DiscardUnknown()
- func (m *CollateralOwnershipWithAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *CollateralOwnershipWithAmount) XXX_Merge(src proto.Message)
- func (m *CollateralOwnershipWithAmount) XXX_Size() int
- func (m *CollateralOwnershipWithAmount) XXX_Unmarshal(b []byte) error
- type EvmEngineKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetCollateralOwnerships() []CollateralOwnership
- func (m *GenesisState) GetLastValidatorPowers() []LastValidatorPower
- func (m *GenesisState) GetParams() Params
- func (m *GenesisState) GetValidators() []Validator
- func (m *GenesisState) GetWithdrawals() []Withdrawal
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (gs GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type LastValidatorPower
- func (*LastValidatorPower) Descriptor() ([]byte, []int)
- func (m *LastValidatorPower) GetPower() int64
- func (m *LastValidatorPower) Marshal() (dAtA []byte, err error)
- func (m *LastValidatorPower) MarshalTo(dAtA []byte) (int, error)
- func (m *LastValidatorPower) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*LastValidatorPower) ProtoMessage()
- func (m *LastValidatorPower) Reset()
- func (m *LastValidatorPower) Size() (n int)
- func (m *LastValidatorPower) String() string
- func (m *LastValidatorPower) Unmarshal(dAtA []byte) error
- func (m *LastValidatorPower) XXX_DiscardUnknown()
- func (m *LastValidatorPower) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LastValidatorPower) XXX_Merge(src proto.Message)
- func (m *LastValidatorPower) XXX_Size() int
- func (m *LastValidatorPower) XXX_Unmarshal(b []byte) error
- type MsgClient
- type MsgServer
- type MsgUpdateParams
- func (*MsgUpdateParams) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParams) GetAuthority() string
- func (m *MsgUpdateParams) GetParams() Params
- func (m *MsgUpdateParams) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParams) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParams) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParams) ProtoMessage()
- func (m *MsgUpdateParams) Reset()
- func (m *MsgUpdateParams) Size() (n int)
- func (m *MsgUpdateParams) String() string
- func (m *MsgUpdateParams) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParams) XXX_DiscardUnknown()
- func (m *MsgUpdateParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParams) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParams) XXX_Size() int
- func (m *MsgUpdateParams) XXX_Unmarshal(b []byte) error
- type MsgUpdateParamsResponse
- func (*MsgUpdateParamsResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateParamsResponse) ProtoMessage()
- func (m *MsgUpdateParamsResponse) Reset()
- func (m *MsgUpdateParamsResponse) Size() (n int)
- func (m *MsgUpdateParamsResponse) String() string
- func (m *MsgUpdateParamsResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateParamsResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateParamsResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateParamsResponse) XXX_Size() int
- func (m *MsgUpdateParamsResponse) XXX_Unmarshal(b []byte) error
- type MsgUpdateValidatorEntrypointContractAddr
- func (*MsgUpdateValidatorEntrypointContractAddr) Descriptor() ([]byte, []int)
- func (m *MsgUpdateValidatorEntrypointContractAddr) GetAuthority() string
- func (m *MsgUpdateValidatorEntrypointContractAddr) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateValidatorEntrypointContractAddr) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateValidatorEntrypointContractAddr) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateValidatorEntrypointContractAddr) ProtoMessage()
- func (m *MsgUpdateValidatorEntrypointContractAddr) Reset()
- func (m *MsgUpdateValidatorEntrypointContractAddr) Size() (n int)
- func (m *MsgUpdateValidatorEntrypointContractAddr) String() string
- func (m *MsgUpdateValidatorEntrypointContractAddr) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateValidatorEntrypointContractAddr) XXX_DiscardUnknown()
- func (m *MsgUpdateValidatorEntrypointContractAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateValidatorEntrypointContractAddr) XXX_Merge(src proto.Message)
- func (m *MsgUpdateValidatorEntrypointContractAddr) XXX_Size() int
- func (m *MsgUpdateValidatorEntrypointContractAddr) XXX_Unmarshal(b []byte) error
- type MsgUpdateValidatorEntrypointContractAddrResponse
- func (*MsgUpdateValidatorEntrypointContractAddrResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateValidatorEntrypointContractAddrResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateValidatorEntrypointContractAddrResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateValidatorEntrypointContractAddrResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateValidatorEntrypointContractAddrResponse) ProtoMessage()
- func (m *MsgUpdateValidatorEntrypointContractAddrResponse) Reset()
- func (m *MsgUpdateValidatorEntrypointContractAddrResponse) Size() (n int)
- func (m *MsgUpdateValidatorEntrypointContractAddrResponse) String() string
- func (m *MsgUpdateValidatorEntrypointContractAddrResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateValidatorEntrypointContractAddrResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Size() int
- func (m *MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Unmarshal(b []byte) error
- type Params
- func (*Params) Descriptor() ([]byte, []int)
- func (this *Params) Equal(that interface{}) bool
- func (m *Params) GetMaxValidators() uint32
- func (m *Params) GetMinVotingPower() int64
- func (m *Params) GetWithdrawalLimit() uint32
- func (m *Params) Marshal() (dAtA []byte, err error)
- func (m *Params) MarshalTo(dAtA []byte) (int, error)
- func (m *Params) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Params) ProtoMessage()
- func (m *Params) Reset()
- func (m *Params) Size() (n int)
- func (m *Params) String() string
- func (m *Params) Unmarshal(dAtA []byte) error
- func (p Params) Validate() error
- func (m *Params) XXX_DiscardUnknown()
- func (m *Params) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Params) XXX_Merge(src proto.Message)
- func (m *Params) XXX_Size() int
- func (m *Params) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryCollateralOwnershipRequest
- func (*QueryCollateralOwnershipRequest) Descriptor() ([]byte, []int)
- func (m *QueryCollateralOwnershipRequest) GetOwner() []byte
- func (m *QueryCollateralOwnershipRequest) GetValAddr() []byte
- func (m *QueryCollateralOwnershipRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCollateralOwnershipRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollateralOwnershipRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollateralOwnershipRequest) ProtoMessage()
- func (m *QueryCollateralOwnershipRequest) Reset()
- func (m *QueryCollateralOwnershipRequest) Size() (n int)
- func (m *QueryCollateralOwnershipRequest) String() string
- func (m *QueryCollateralOwnershipRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCollateralOwnershipRequest) XXX_DiscardUnknown()
- func (m *QueryCollateralOwnershipRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollateralOwnershipRequest) XXX_Merge(src proto.Message)
- func (m *QueryCollateralOwnershipRequest) XXX_Size() int
- func (m *QueryCollateralOwnershipRequest) XXX_Unmarshal(b []byte) error
- type QueryCollateralOwnershipResponse
- func (*QueryCollateralOwnershipResponse) Descriptor() ([]byte, []int)
- func (m *QueryCollateralOwnershipResponse) GetCollateralOwnership() CollateralOwnershipWithAmount
- func (m *QueryCollateralOwnershipResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCollateralOwnershipResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollateralOwnershipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollateralOwnershipResponse) ProtoMessage()
- func (m *QueryCollateralOwnershipResponse) Reset()
- func (m *QueryCollateralOwnershipResponse) Size() (n int)
- func (m *QueryCollateralOwnershipResponse) String() string
- func (m *QueryCollateralOwnershipResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCollateralOwnershipResponse) XXX_DiscardUnknown()
- func (m *QueryCollateralOwnershipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollateralOwnershipResponse) XXX_Merge(src proto.Message)
- func (m *QueryCollateralOwnershipResponse) XXX_Size() int
- func (m *QueryCollateralOwnershipResponse) XXX_Unmarshal(b []byte) error
- type QueryCollateralOwnershipsByValidatorRequest
- func (*QueryCollateralOwnershipsByValidatorRequest) Descriptor() ([]byte, []int)
- func (m *QueryCollateralOwnershipsByValidatorRequest) GetPagination() *query.PageRequest
- func (m *QueryCollateralOwnershipsByValidatorRequest) GetValAddr() []byte
- func (m *QueryCollateralOwnershipsByValidatorRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCollateralOwnershipsByValidatorRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollateralOwnershipsByValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollateralOwnershipsByValidatorRequest) ProtoMessage()
- func (m *QueryCollateralOwnershipsByValidatorRequest) Reset()
- func (m *QueryCollateralOwnershipsByValidatorRequest) Size() (n int)
- func (m *QueryCollateralOwnershipsByValidatorRequest) String() string
- func (m *QueryCollateralOwnershipsByValidatorRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCollateralOwnershipsByValidatorRequest) XXX_DiscardUnknown()
- func (m *QueryCollateralOwnershipsByValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollateralOwnershipsByValidatorRequest) XXX_Merge(src proto.Message)
- func (m *QueryCollateralOwnershipsByValidatorRequest) XXX_Size() int
- func (m *QueryCollateralOwnershipsByValidatorRequest) XXX_Unmarshal(b []byte) error
- type QueryCollateralOwnershipsByValidatorResponse
- func (*QueryCollateralOwnershipsByValidatorResponse) Descriptor() ([]byte, []int)
- func (m *QueryCollateralOwnershipsByValidatorResponse) GetCollateralOwnerships() []CollateralOwnershipWithAmount
- func (m *QueryCollateralOwnershipsByValidatorResponse) GetPagination() *query.PageResponse
- func (m *QueryCollateralOwnershipsByValidatorResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCollateralOwnershipsByValidatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollateralOwnershipsByValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollateralOwnershipsByValidatorResponse) ProtoMessage()
- func (m *QueryCollateralOwnershipsByValidatorResponse) Reset()
- func (m *QueryCollateralOwnershipsByValidatorResponse) Size() (n int)
- func (m *QueryCollateralOwnershipsByValidatorResponse) String() string
- func (m *QueryCollateralOwnershipsByValidatorResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCollateralOwnershipsByValidatorResponse) XXX_DiscardUnknown()
- func (m *QueryCollateralOwnershipsByValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollateralOwnershipsByValidatorResponse) XXX_Merge(src proto.Message)
- func (m *QueryCollateralOwnershipsByValidatorResponse) XXX_Size() int
- func (m *QueryCollateralOwnershipsByValidatorResponse) XXX_Unmarshal(b []byte) error
- type QueryCollateralOwnershipsRequest
- func (*QueryCollateralOwnershipsRequest) Descriptor() ([]byte, []int)
- func (m *QueryCollateralOwnershipsRequest) GetPagination() *query.PageRequest
- func (m *QueryCollateralOwnershipsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryCollateralOwnershipsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollateralOwnershipsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollateralOwnershipsRequest) ProtoMessage()
- func (m *QueryCollateralOwnershipsRequest) Reset()
- func (m *QueryCollateralOwnershipsRequest) Size() (n int)
- func (m *QueryCollateralOwnershipsRequest) String() string
- func (m *QueryCollateralOwnershipsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryCollateralOwnershipsRequest) XXX_DiscardUnknown()
- func (m *QueryCollateralOwnershipsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollateralOwnershipsRequest) XXX_Merge(src proto.Message)
- func (m *QueryCollateralOwnershipsRequest) XXX_Size() int
- func (m *QueryCollateralOwnershipsRequest) XXX_Unmarshal(b []byte) error
- type QueryCollateralOwnershipsResponse
- func (*QueryCollateralOwnershipsResponse) Descriptor() ([]byte, []int)
- func (m *QueryCollateralOwnershipsResponse) GetCollateralOwnerships() []CollateralOwnershipWithAmount
- func (m *QueryCollateralOwnershipsResponse) GetPagination() *query.PageResponse
- func (m *QueryCollateralOwnershipsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryCollateralOwnershipsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryCollateralOwnershipsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryCollateralOwnershipsResponse) ProtoMessage()
- func (m *QueryCollateralOwnershipsResponse) Reset()
- func (m *QueryCollateralOwnershipsResponse) Size() (n int)
- func (m *QueryCollateralOwnershipsResponse) String() string
- func (m *QueryCollateralOwnershipsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryCollateralOwnershipsResponse) XXX_DiscardUnknown()
- func (m *QueryCollateralOwnershipsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryCollateralOwnershipsResponse) XXX_Merge(src proto.Message)
- func (m *QueryCollateralOwnershipsResponse) XXX_Size() int
- func (m *QueryCollateralOwnershipsResponse) XXX_Unmarshal(b []byte) error
- type QueryParamsRequest
- func (*QueryParamsRequest) Descriptor() ([]byte, []int)
- func (m *QueryParamsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsRequest) ProtoMessage()
- func (m *QueryParamsRequest) Reset()
- func (m *QueryParamsRequest) Size() (n int)
- func (m *QueryParamsRequest) String() string
- func (m *QueryParamsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryParamsRequest) XXX_DiscardUnknown()
- func (m *QueryParamsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsRequest) XXX_Merge(src proto.Message)
- func (m *QueryParamsRequest) XXX_Size() int
- func (m *QueryParamsRequest) XXX_Unmarshal(b []byte) error
- type QueryParamsResponse
- func (*QueryParamsResponse) Descriptor() ([]byte, []int)
- func (m *QueryParamsResponse) GetParams() Params
- func (m *QueryParamsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryParamsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryParamsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryParamsResponse) ProtoMessage()
- func (m *QueryParamsResponse) Reset()
- func (m *QueryParamsResponse) Size() (n int)
- func (m *QueryParamsResponse) String() string
- func (m *QueryParamsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryParamsResponse) XXX_DiscardUnknown()
- func (m *QueryParamsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryParamsResponse) XXX_Merge(src proto.Message)
- func (m *QueryParamsResponse) XXX_Size() int
- func (m *QueryParamsResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type QueryValidatorByConsAddrRequest
- func (*QueryValidatorByConsAddrRequest) Descriptor() ([]byte, []int)
- func (m *QueryValidatorByConsAddrRequest) GetConsAddr() string
- func (m *QueryValidatorByConsAddrRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorByConsAddrRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorByConsAddrRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorByConsAddrRequest) ProtoMessage()
- func (m *QueryValidatorByConsAddrRequest) Reset()
- func (m *QueryValidatorByConsAddrRequest) Size() (n int)
- func (m *QueryValidatorByConsAddrRequest) String() string
- func (m *QueryValidatorByConsAddrRequest) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorByConsAddrRequest) XXX_DiscardUnknown()
- func (m *QueryValidatorByConsAddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorByConsAddrRequest) XXX_Merge(src proto.Message)
- func (m *QueryValidatorByConsAddrRequest) XXX_Size() int
- func (m *QueryValidatorByConsAddrRequest) XXX_Unmarshal(b []byte) error
- type QueryValidatorByConsAddrResponse
- func (*QueryValidatorByConsAddrResponse) Descriptor() ([]byte, []int)
- func (m *QueryValidatorByConsAddrResponse) GetValidator() Validator
- func (m *QueryValidatorByConsAddrResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorByConsAddrResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorByConsAddrResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorByConsAddrResponse) ProtoMessage()
- func (m *QueryValidatorByConsAddrResponse) Reset()
- func (m *QueryValidatorByConsAddrResponse) Size() (n int)
- func (m *QueryValidatorByConsAddrResponse) String() string
- func (m *QueryValidatorByConsAddrResponse) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorByConsAddrResponse) XXX_DiscardUnknown()
- func (m *QueryValidatorByConsAddrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorByConsAddrResponse) XXX_Merge(src proto.Message)
- func (m *QueryValidatorByConsAddrResponse) XXX_Size() int
- func (m *QueryValidatorByConsAddrResponse) XXX_Unmarshal(b []byte) error
- type QueryValidatorEntrypointContractAddrRequest
- func (*QueryValidatorEntrypointContractAddrRequest) Descriptor() ([]byte, []int)
- func (m *QueryValidatorEntrypointContractAddrRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorEntrypointContractAddrRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorEntrypointContractAddrRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorEntrypointContractAddrRequest) ProtoMessage()
- func (m *QueryValidatorEntrypointContractAddrRequest) Reset()
- func (m *QueryValidatorEntrypointContractAddrRequest) Size() (n int)
- func (m *QueryValidatorEntrypointContractAddrRequest) String() string
- func (m *QueryValidatorEntrypointContractAddrRequest) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorEntrypointContractAddrRequest) XXX_DiscardUnknown()
- func (m *QueryValidatorEntrypointContractAddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorEntrypointContractAddrRequest) XXX_Merge(src proto.Message)
- func (m *QueryValidatorEntrypointContractAddrRequest) XXX_Size() int
- func (m *QueryValidatorEntrypointContractAddrRequest) XXX_Unmarshal(b []byte) error
- type QueryValidatorEntrypointContractAddrResponse
- func (*QueryValidatorEntrypointContractAddrResponse) Descriptor() ([]byte, []int)
- func (m *QueryValidatorEntrypointContractAddrResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorEntrypointContractAddrResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorEntrypointContractAddrResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorEntrypointContractAddrResponse) ProtoMessage()
- func (m *QueryValidatorEntrypointContractAddrResponse) Reset()
- func (m *QueryValidatorEntrypointContractAddrResponse) Size() (n int)
- func (m *QueryValidatorEntrypointContractAddrResponse) String() string
- func (m *QueryValidatorEntrypointContractAddrResponse) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorEntrypointContractAddrResponse) XXX_DiscardUnknown()
- func (m *QueryValidatorEntrypointContractAddrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorEntrypointContractAddrResponse) XXX_Merge(src proto.Message)
- func (m *QueryValidatorEntrypointContractAddrResponse) XXX_Size() int
- func (m *QueryValidatorEntrypointContractAddrResponse) XXX_Unmarshal(b []byte) error
- type QueryValidatorRequest
- func (*QueryValidatorRequest) Descriptor() ([]byte, []int)
- func (m *QueryValidatorRequest) GetValAddr() []byte
- func (m *QueryValidatorRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorRequest) ProtoMessage()
- func (m *QueryValidatorRequest) Reset()
- func (m *QueryValidatorRequest) Size() (n int)
- func (m *QueryValidatorRequest) String() string
- func (m *QueryValidatorRequest) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorRequest) XXX_DiscardUnknown()
- func (m *QueryValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorRequest) XXX_Merge(src proto.Message)
- func (m *QueryValidatorRequest) XXX_Size() int
- func (m *QueryValidatorRequest) XXX_Unmarshal(b []byte) error
- type QueryValidatorResponse
- func (*QueryValidatorResponse) Descriptor() ([]byte, []int)
- func (m *QueryValidatorResponse) GetValidator() Validator
- func (m *QueryValidatorResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorResponse) ProtoMessage()
- func (m *QueryValidatorResponse) Reset()
- func (m *QueryValidatorResponse) Size() (n int)
- func (m *QueryValidatorResponse) String() string
- func (m *QueryValidatorResponse) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorResponse) XXX_DiscardUnknown()
- func (m *QueryValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorResponse) XXX_Merge(src proto.Message)
- func (m *QueryValidatorResponse) XXX_Size() int
- func (m *QueryValidatorResponse) XXX_Unmarshal(b []byte) error
- type QueryValidatorsRequest
- func (*QueryValidatorsRequest) Descriptor() ([]byte, []int)
- func (m *QueryValidatorsRequest) GetPagination() *query.PageRequest
- func (m *QueryValidatorsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorsRequest) ProtoMessage()
- func (m *QueryValidatorsRequest) Reset()
- func (m *QueryValidatorsRequest) Size() (n int)
- func (m *QueryValidatorsRequest) String() string
- func (m *QueryValidatorsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorsRequest) XXX_DiscardUnknown()
- func (m *QueryValidatorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorsRequest) XXX_Merge(src proto.Message)
- func (m *QueryValidatorsRequest) XXX_Size() int
- func (m *QueryValidatorsRequest) XXX_Unmarshal(b []byte) error
- type QueryValidatorsResponse
- func (*QueryValidatorsResponse) Descriptor() ([]byte, []int)
- func (m *QueryValidatorsResponse) GetPagination() *query.PageResponse
- func (m *QueryValidatorsResponse) GetValidators() []Validator
- func (m *QueryValidatorsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryValidatorsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryValidatorsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryValidatorsResponse) ProtoMessage()
- func (m *QueryValidatorsResponse) Reset()
- func (m *QueryValidatorsResponse) Size() (n int)
- func (m *QueryValidatorsResponse) String() string
- func (m *QueryValidatorsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryValidatorsResponse) XXX_DiscardUnknown()
- func (m *QueryValidatorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryValidatorsResponse) XXX_Merge(src proto.Message)
- func (m *QueryValidatorsResponse) XXX_Size() int
- func (m *QueryValidatorsResponse) XXX_Unmarshal(b []byte) error
- type QueryWithdrawalRequest
- func (*QueryWithdrawalRequest) Descriptor() ([]byte, []int)
- func (m *QueryWithdrawalRequest) GetId() uint64
- func (m *QueryWithdrawalRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryWithdrawalRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryWithdrawalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryWithdrawalRequest) ProtoMessage()
- func (m *QueryWithdrawalRequest) Reset()
- func (m *QueryWithdrawalRequest) Size() (n int)
- func (m *QueryWithdrawalRequest) String() string
- func (m *QueryWithdrawalRequest) Unmarshal(dAtA []byte) error
- func (m *QueryWithdrawalRequest) XXX_DiscardUnknown()
- func (m *QueryWithdrawalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryWithdrawalRequest) XXX_Merge(src proto.Message)
- func (m *QueryWithdrawalRequest) XXX_Size() int
- func (m *QueryWithdrawalRequest) XXX_Unmarshal(b []byte) error
- type QueryWithdrawalResponse
- func (*QueryWithdrawalResponse) Descriptor() ([]byte, []int)
- func (m *QueryWithdrawalResponse) GetWithdrawal() Withdrawal
- func (m *QueryWithdrawalResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryWithdrawalResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryWithdrawalResponse) ProtoMessage()
- func (m *QueryWithdrawalResponse) Reset()
- func (m *QueryWithdrawalResponse) Size() (n int)
- func (m *QueryWithdrawalResponse) String() string
- func (m *QueryWithdrawalResponse) Unmarshal(dAtA []byte) error
- func (m *QueryWithdrawalResponse) XXX_DiscardUnknown()
- func (m *QueryWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryWithdrawalResponse) XXX_Merge(src proto.Message)
- func (m *QueryWithdrawalResponse) XXX_Size() int
- func (m *QueryWithdrawalResponse) XXX_Unmarshal(b []byte) error
- type QueryWithdrawalsByValidatorRequest
- func (*QueryWithdrawalsByValidatorRequest) Descriptor() ([]byte, []int)
- func (m *QueryWithdrawalsByValidatorRequest) GetPagination() *query.PageRequest
- func (m *QueryWithdrawalsByValidatorRequest) GetValAddr() []byte
- func (m *QueryWithdrawalsByValidatorRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryWithdrawalsByValidatorRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryWithdrawalsByValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryWithdrawalsByValidatorRequest) ProtoMessage()
- func (m *QueryWithdrawalsByValidatorRequest) Reset()
- func (m *QueryWithdrawalsByValidatorRequest) Size() (n int)
- func (m *QueryWithdrawalsByValidatorRequest) String() string
- func (m *QueryWithdrawalsByValidatorRequest) Unmarshal(dAtA []byte) error
- func (m *QueryWithdrawalsByValidatorRequest) XXX_DiscardUnknown()
- func (m *QueryWithdrawalsByValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryWithdrawalsByValidatorRequest) XXX_Merge(src proto.Message)
- func (m *QueryWithdrawalsByValidatorRequest) XXX_Size() int
- func (m *QueryWithdrawalsByValidatorRequest) XXX_Unmarshal(b []byte) error
- type QueryWithdrawalsByValidatorResponse
- func (*QueryWithdrawalsByValidatorResponse) Descriptor() ([]byte, []int)
- func (m *QueryWithdrawalsByValidatorResponse) GetPagination() *query.PageResponse
- func (m *QueryWithdrawalsByValidatorResponse) GetWithdrawals() []Withdrawal
- func (m *QueryWithdrawalsByValidatorResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryWithdrawalsByValidatorResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryWithdrawalsByValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryWithdrawalsByValidatorResponse) ProtoMessage()
- func (m *QueryWithdrawalsByValidatorResponse) Reset()
- func (m *QueryWithdrawalsByValidatorResponse) Size() (n int)
- func (m *QueryWithdrawalsByValidatorResponse) String() string
- func (m *QueryWithdrawalsByValidatorResponse) Unmarshal(dAtA []byte) error
- func (m *QueryWithdrawalsByValidatorResponse) XXX_DiscardUnknown()
- func (m *QueryWithdrawalsByValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryWithdrawalsByValidatorResponse) XXX_Merge(src proto.Message)
- func (m *QueryWithdrawalsByValidatorResponse) XXX_Size() int
- func (m *QueryWithdrawalsByValidatorResponse) XXX_Unmarshal(b []byte) error
- type QueryWithdrawalsRequest
- func (*QueryWithdrawalsRequest) Descriptor() ([]byte, []int)
- func (m *QueryWithdrawalsRequest) GetPagination() *query.PageRequest
- func (m *QueryWithdrawalsRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryWithdrawalsRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryWithdrawalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryWithdrawalsRequest) ProtoMessage()
- func (m *QueryWithdrawalsRequest) Reset()
- func (m *QueryWithdrawalsRequest) Size() (n int)
- func (m *QueryWithdrawalsRequest) String() string
- func (m *QueryWithdrawalsRequest) Unmarshal(dAtA []byte) error
- func (m *QueryWithdrawalsRequest) XXX_DiscardUnknown()
- func (m *QueryWithdrawalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryWithdrawalsRequest) XXX_Merge(src proto.Message)
- func (m *QueryWithdrawalsRequest) XXX_Size() int
- func (m *QueryWithdrawalsRequest) XXX_Unmarshal(b []byte) error
- type QueryWithdrawalsResponse
- func (*QueryWithdrawalsResponse) Descriptor() ([]byte, []int)
- func (m *QueryWithdrawalsResponse) GetPagination() *query.PageResponse
- func (m *QueryWithdrawalsResponse) GetWithdrawals() []Withdrawal
- func (m *QueryWithdrawalsResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryWithdrawalsResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryWithdrawalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryWithdrawalsResponse) ProtoMessage()
- func (m *QueryWithdrawalsResponse) Reset()
- func (m *QueryWithdrawalsResponse) Size() (n int)
- func (m *QueryWithdrawalsResponse) String() string
- func (m *QueryWithdrawalsResponse) Unmarshal(dAtA []byte) error
- func (m *QueryWithdrawalsResponse) XXX_DiscardUnknown()
- func (m *QueryWithdrawalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryWithdrawalsResponse) XXX_Merge(src proto.Message)
- func (m *QueryWithdrawalsResponse) XXX_Size() int
- func (m *QueryWithdrawalsResponse) XXX_Unmarshal(b []byte) error
- type SlashingKeeper
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
- func (*UnimplementedMsgServer) UpdateValidatorEntrypointContractAddr(ctx context.Context, req *MsgUpdateValidatorEntrypointContractAddr) (*MsgUpdateValidatorEntrypointContractAddrResponse, error)
- type UnimplementedQueryServer
- func (*UnimplementedQueryServer) CollateralOwnership(ctx context.Context, req *QueryCollateralOwnershipRequest) (*QueryCollateralOwnershipResponse, error)
- func (*UnimplementedQueryServer) CollateralOwnerships(ctx context.Context, req *QueryCollateralOwnershipsRequest) (*QueryCollateralOwnershipsResponse, error)
- func (*UnimplementedQueryServer) CollateralOwnershipsByValidator(ctx context.Context, req *QueryCollateralOwnershipsByValidatorRequest) (*QueryCollateralOwnershipsByValidatorResponse, error)
- func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
- func (*UnimplementedQueryServer) Validator(ctx context.Context, req *QueryValidatorRequest) (*QueryValidatorResponse, error)
- func (*UnimplementedQueryServer) ValidatorByConsAddr(ctx context.Context, req *QueryValidatorByConsAddrRequest) (*QueryValidatorByConsAddrResponse, error)
- func (*UnimplementedQueryServer) ValidatorEntrypointContractAddr(ctx context.Context, req *QueryValidatorEntrypointContractAddrRequest) (*QueryValidatorEntrypointContractAddrResponse, error)
- func (*UnimplementedQueryServer) Validators(ctx context.Context, req *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
- func (*UnimplementedQueryServer) Withdrawal(ctx context.Context, req *QueryWithdrawalRequest) (*QueryWithdrawalResponse, error)
- func (*UnimplementedQueryServer) Withdrawals(ctx context.Context, req *QueryWithdrawalsRequest) (*QueryWithdrawalsResponse, error)
- func (*UnimplementedQueryServer) WithdrawalsByValidator(ctx context.Context, req *QueryWithdrawalsByValidatorRequest) (*QueryWithdrawalsByValidatorResponse, error)
- type Validator
- func (v Validator) ABCIValidatorUpdate() (abciVal abci.ValidatorUpdate, err error)
- func (v Validator) ABCIValidatorUpdateForUnbonding() (abciVal abci.ValidatorUpdate, err error)
- func (v Validator) CmtConsPublicKey() (cmtprotocrypto.PublicKey, error)
- func (v Validator) ComputeVotingPower(maxLeverageRatio math.LegacyDec) int64
- func (v Validator) ConsAddr() (sdk.ConsAddress, error)
- func (v Validator) ConsPubKey() (cryptotypes.PubKey, error)
- func (v Validator) ConsensusVotingPower() int64
- func (*Validator) Descriptor() ([]byte, []int)
- func (m *Validator) GetBonded() bool
- func (v Validator) GetConsAddr() ([]byte, error)
- func (m *Validator) GetJailed() bool
- func (m *Validator) GetPubkey() []byte
- func (m *Validator) GetVotingPower() int64
- func (v Validator) IsJailed() bool
- func (m *Validator) Marshal() (dAtA []byte, err error)
- func (m *Validator) MarshalTo(dAtA []byte) (int, error)
- func (m *Validator) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (v Validator) MustABCIValidatorUpdate() abci.ValidatorUpdate
- func (v Validator) MustABCIValidatorUpdateForUnbonding() abci.ValidatorUpdate
- func (v Validator) MustConsAddr() sdk.ConsAddress
- func (v Validator) MustConsPubKey() cryptotypes.PubKey
- func (*Validator) ProtoMessage()
- func (m *Validator) Reset()
- func (m *Validator) Size() (n int)
- func (m *Validator) String() string
- func (m *Validator) Unmarshal(dAtA []byte) error
- func (m *Validator) XXX_DiscardUnknown()
- func (m *Validator) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Validator) XXX_Merge(src proto.Message)
- func (m *Validator) XXX_Size() int
- func (m *Validator) XXX_Unmarshal(b []byte) error
- type Withdrawal
- func (*Withdrawal) Descriptor() ([]byte, []int)
- func (m *Withdrawal) GetAmount() uint64
- func (m *Withdrawal) GetCreationHeight() int64
- func (m *Withdrawal) GetID() uint64
- func (m *Withdrawal) GetMaturesAt() int64
- func (m *Withdrawal) Marshal() (dAtA []byte, err error)
- func (m *Withdrawal) MarshalTo(dAtA []byte) (int, error)
- func (m *Withdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Withdrawal) ProtoMessage()
- func (m *Withdrawal) Reset()
- func (m *Withdrawal) Size() (n int)
- func (m *Withdrawal) String() string
- func (m *Withdrawal) Unmarshal(dAtA []byte) error
- func (m *Withdrawal) XXX_DiscardUnknown()
- func (m *Withdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Withdrawal) XXX_Merge(src proto.Message)
- func (m *Withdrawal) XXX_Size() int
- func (m *Withdrawal) XXX_Unmarshal(b []byte) error
Constants ¶
const ( EventTypeRegisterValidator = "register_validator" EventTypeDepositCollateral = "deposit_collateral" EventTypeWithdrawCollateral = "withdraw_collateral" EventTypeTransferCollateralOwnership = "transfer_collateral_ownership" EventTypeUnjailValidator = "unjail_validator" EventTypeUpdateExtraVotingPower = "update_extra_voting_power" EventTypeUpdateVotingPower = "update_voting_power" EventTypeJailValidator = "jail_validator" EventTypeSlashValidator = "slash_validator" EventTypeWithdrawalMatured = "withdrawal_matured" // Attributes AttributeKeyValAddr = "val_addr" AttributeKeyPubkey = "pubkey" AttributeKeyCollateral = "collateral" AttributeKeyCollateralOwner = "collateral_owner" AttributeKeyCollateralNewOwner = "collateral_new_owner" AttributeKeyExtraVotingPower = "extra_voting_power" AttributeKeyOldExtraVotingPower = "old_extra_voting_power" AttributeKeyVotingPower = "voting_power" AttributeKeyOldVotingPower = "old_voting_power" AttributeKeyJailed = "jailed" AttributeKeyWithdrawalID = "withdrawal_id" AttributeKeyAmount = "amount" AttributeKeyReceiver = "receiver" AttributeKeyMaturesAt = "matures_at" AttributeKeySlashFraction = "slash_fraction" AttributeKeyInfractionHeight = "infraction_height" AttributeKeyInfractionPower = "infraction_power" AttributeKeyReason = "reason" )
Event types for evmvalidator
const ( // ModuleName defines the module name ModuleName = "evmvalidator" // StoreKey defines the primary module store key StoreKey = ModuleName )
const DefaultMaxValidators uint32 = 100
DefaultMaxValidators is the default maximum number of validators.
const DefaultWithdrawalLimit uint32 = 10
DefaultWithdrawalLimit is the default withdrawal limit per block.
Variables ¶
var ( ErrValidatorNotFound = errors.Register(ModuleName, 1, "validator not found") ErrValidatorAlreadyExists = errors.Register(ModuleName, 2, "validator already exists") ErrInvalidPubKey = errors.Register(ModuleName, 3, "invalid validator pubkey") ErrInvalidVotingPower = errors.Register(ModuleName, 4, "invalid voting power") ErrInsufficientCollateral = errors.Register(ModuleName, 5, "insufficient collateral") )
x/evmvalidator module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( // ParamsKey is the key for module parameters ParamsKey = []byte{0x01} // ValidatorEntrypointContractAddrKey is the prefix for a ConsensusValidatorEntrypoint contract address ValidatorEntrypointContractAddrKey = []byte{0x02} // ValidatorKeyPrefix is the prefix for a validator ValidatorKeyPrefix = []byte{0x03} // ValidatorByConsAddrKeyPrefix is the prefix for a validator index, by consensus address ValidatorByConsAddrKeyPrefix = []byte{0x04} // ValidatorByPowerIndexKeyPrefix is the prefix for a validator index, sorted by power ValidatorByPowerIndexKeyPrefix = []byte{0x05} // LastValidatorPowerKeyPrefix is the prefix for last validator powers LastValidatorPowerKeyPrefix = []byte{0x06} // WithdrawalLastIDKeyPrefix is the key for the last withdrawal ID WithdrawalLastIDKeyPrefix = []byte{0x07} // WithdrawalByMaturesAtKeyPrefix is the prefix for a withdrawal by maturesAt and ID WithdrawalByMaturesAtKeyPrefix = []byte{0x08} // WithdrawalByValidatorKeyPrefix is the prefix for a withdrawal by validator address, maturesAt, and ID WithdrawalByValidatorKeyPrefix = []byte{0x09} // CollateralOwnershipKeyPrefix is the prefix for a collateral ownership by validator and owner CollateralOwnershipKeyPrefix = []byte{0x0A} )
var ( ErrInvalidLengthParams = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowParams = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthValidator = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowValidator = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group") )
var DefaultMaxLeverageRatio = math.LegacyNewDec(100) // 100x leverage
DefaultMaxLeverageRatio is the default maximum leverage ratio.
var DefaultMinVotingPower = int64(1)
DefaultMinVotingPower is the default minimum voting power required.
SharePrecision defines the precision factor for share calculations
var VotingPowerReduction = sdkmath.NewInt(1e9)
VotingPowerReduction is the default amount of collateral required for 1 unit of consensus-engine power. 1e9 collateral (in gwei unit) == 1 MITO == 1 unit of consensus voting power
Functions ¶
func CalculateCollateralAmount ¶
func CalculateCollateralAmount( totalCollateral math.Uint, totalShares math.Uint, shares math.Uint, ) math.Uint
CalculateCollateralAmount calculates how much collateral amount can be withdrawn for a given number of shares. Uses floor division to ensure the system doesn't give out more than available.
func CalculateCollateralSharesForDeposit ¶
func CalculateCollateralSharesForDeposit( totalCollateral math.Uint, totalShares math.Uint, amount math.Uint, ) math.Uint
CalculateCollateralSharesForDeposit calculates how much shares correspond to a collateral amount Uses floor division (truncate) for deposits - system favorable
func CalculateCollateralSharesForWithdrawal ¶
func CalculateCollateralSharesForWithdrawal( totalCollateral math.Uint, totalShares math.Uint, amount math.Uint, ) math.Uint
CalculateCollateralSharesForWithdrawal calculates shares for withdrawal - uses ceiling division This ensures the system doesn't give out more collateral than it should
func GetCollateralOwnershipByValidatorIterationKey ¶
func GetCollateralOwnershipByValidatorIterationKey(valAddr mitotypes.EthAddress) []byte
GetCollateralOwnershipByValidatorIterationKey creates a key for iterating collateral ownerships by validator
func GetCollateralOwnershipKey ¶
func GetCollateralOwnershipKey(valAddr mitotypes.EthAddress, owner mitotypes.EthAddress) []byte
GetCollateralOwnershipKey creates a key for collateral ownership by validator and owner
func GetLastValidatorPowerKey ¶
func GetLastValidatorPowerKey(valAddr mitotypes.EthAddress) []byte
GetLastValidatorPowerKey creates key for a validator from address
func GetValidatorByConsAddrKey ¶
func GetValidatorByConsAddrKey(consAddr sdk.ConsAddress) []byte
GetValidatorByConsAddrKey creates key for a validator from consensus address
func GetValidatorByPowerIndexKey ¶
func GetValidatorByPowerIndexKey(power int64, valAddr mitotypes.EthAddress) []byte
GetValidatorByPowerIndexKey creates the key for a validator from power and address
func GetValidatorKey ¶
func GetValidatorKey(valAddr mitotypes.EthAddress) []byte
GetValidatorKey creates key for a validator from validator address
func GetWithdrawalByMaturesAtKey ¶
GetWithdrawalByMaturesAtKey creates a key for a withdrawal by maturesAt and ID
func GetWithdrawalByValidatorIterationKey ¶
func GetWithdrawalByValidatorIterationKey(valAddr mitotypes.EthAddress) []byte
GetWithdrawalByValidatorIterationKey creates a key for iterating withdrawals by validator and maturesAt
func GetWithdrawalByValidatorKey ¶
func GetWithdrawalByValidatorKey(valAddr mitotypes.EthAddress, maturesAt int64, id uint64) []byte
GetWithdrawalByValidatorKey creates a key for a withdrawal by validator and maturesAt
func GetWithdrawalLastIDKey ¶
func GetWithdrawalLastIDKey() []byte
GetWithdrawalLastIDKey creates key for a withdrawal from ID
func PubkeyToEthAddress ¶
func PubkeyToEthAddress(pubkey []byte) (mitotypes.EthAddress, error)
PubkeyToEthAddress converts the given public key (33-byte compressed) to Ethereum address
func RegisterInterfaces ¶
func RegisterInterfaces(registry types.InterfaceRegistry)
RegisterInterfaces registers the interfaces for the protobuf codec.
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 ValidatePubkeyWithEthAddress ¶
func ValidatePubkeyWithEthAddress(pubkey []byte, addr mitotypes.EthAddress) error
ValidatePubkeyWithEthAddress validates the public key format with the given address
Types ¶
type CollateralOwnership ¶
type CollateralOwnership struct {
// val_addr is the Ethereum address of the validator
ValAddr github_com_mitosis_org_chain_types.EthAddress `` /* 129-byte string literal not displayed */
// owner is the Ethereum address of the collateral owner
Owner github_com_mitosis_org_chain_types.EthAddress `protobuf:"bytes,2,opt,name=owner,proto3,customtype=github.com/mitosis-org/chain/types.EthAddress" json:"owner"`
Shares cosmossdk_io_math.Uint `protobuf:"bytes,3,opt,name=shares,proto3,customtype=cosmossdk.io/math.Uint" json:"shares"`
// creation_height is the height at which this ownership record was created
CreationHeight int64 `protobuf:"varint,4,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
}
CollateralOwnership defines ownership record for collateral
func (*CollateralOwnership) Descriptor ¶
func (*CollateralOwnership) Descriptor() ([]byte, []int)
func (*CollateralOwnership) GetCreationHeight ¶
func (m *CollateralOwnership) GetCreationHeight() int64
func (*CollateralOwnership) Marshal ¶
func (m *CollateralOwnership) Marshal() (dAtA []byte, err error)
func (*CollateralOwnership) MarshalTo ¶
func (m *CollateralOwnership) MarshalTo(dAtA []byte) (int, error)
func (*CollateralOwnership) MarshalToSizedBuffer ¶
func (m *CollateralOwnership) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CollateralOwnership) ProtoMessage ¶
func (*CollateralOwnership) ProtoMessage()
func (*CollateralOwnership) Reset ¶
func (m *CollateralOwnership) Reset()
func (*CollateralOwnership) Size ¶
func (m *CollateralOwnership) Size() (n int)
func (*CollateralOwnership) String ¶
func (m *CollateralOwnership) String() string
func (*CollateralOwnership) Unmarshal ¶
func (m *CollateralOwnership) Unmarshal(dAtA []byte) error
func (*CollateralOwnership) XXX_DiscardUnknown ¶
func (m *CollateralOwnership) XXX_DiscardUnknown()
func (*CollateralOwnership) XXX_Marshal ¶
func (m *CollateralOwnership) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CollateralOwnership) XXX_Merge ¶
func (m *CollateralOwnership) XXX_Merge(src proto.Message)
func (*CollateralOwnership) XXX_Size ¶
func (m *CollateralOwnership) XXX_Size() int
func (*CollateralOwnership) XXX_Unmarshal ¶
func (m *CollateralOwnership) XXX_Unmarshal(b []byte) error
type CollateralOwnershipWithAmount ¶
type CollateralOwnershipWithAmount struct {
Ownership CollateralOwnership `protobuf:"bytes,1,opt,name=ownership,proto3" json:"ownership"`
Amount cosmossdk_io_math.Uint `protobuf:"bytes,2,opt,name=amount,proto3,customtype=cosmossdk.io/math.Uint" json:"amount"`
}
CollateralOwnershipWithAmount extends CollateralOwnership to include the withdrawable amount
func (*CollateralOwnershipWithAmount) Descriptor ¶
func (*CollateralOwnershipWithAmount) Descriptor() ([]byte, []int)
func (*CollateralOwnershipWithAmount) GetOwnership ¶
func (m *CollateralOwnershipWithAmount) GetOwnership() CollateralOwnership
func (*CollateralOwnershipWithAmount) Marshal ¶
func (m *CollateralOwnershipWithAmount) Marshal() (dAtA []byte, err error)
func (*CollateralOwnershipWithAmount) MarshalTo ¶
func (m *CollateralOwnershipWithAmount) MarshalTo(dAtA []byte) (int, error)
func (*CollateralOwnershipWithAmount) MarshalToSizedBuffer ¶
func (m *CollateralOwnershipWithAmount) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*CollateralOwnershipWithAmount) ProtoMessage ¶
func (*CollateralOwnershipWithAmount) ProtoMessage()
func (*CollateralOwnershipWithAmount) Reset ¶
func (m *CollateralOwnershipWithAmount) Reset()
func (*CollateralOwnershipWithAmount) Size ¶
func (m *CollateralOwnershipWithAmount) Size() (n int)
func (*CollateralOwnershipWithAmount) String ¶
func (m *CollateralOwnershipWithAmount) String() string
func (*CollateralOwnershipWithAmount) Unmarshal ¶
func (m *CollateralOwnershipWithAmount) Unmarshal(dAtA []byte) error
func (*CollateralOwnershipWithAmount) XXX_DiscardUnknown ¶
func (m *CollateralOwnershipWithAmount) XXX_DiscardUnknown()
func (*CollateralOwnershipWithAmount) XXX_Marshal ¶
func (m *CollateralOwnershipWithAmount) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*CollateralOwnershipWithAmount) XXX_Merge ¶
func (m *CollateralOwnershipWithAmount) XXX_Merge(src proto.Message)
func (*CollateralOwnershipWithAmount) XXX_Size ¶
func (m *CollateralOwnershipWithAmount) XXX_Size() int
func (*CollateralOwnershipWithAmount) XXX_Unmarshal ¶
func (m *CollateralOwnershipWithAmount) XXX_Unmarshal(b []byte) error
type EvmEngineKeeper ¶
type GenesisState ¶
type GenesisState struct {
// params defines all the parameters of the module
Params Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params"`
// validator_entrypoint_contract_addr is the address of the
// ConsensusValidatorEntrypoint contract
ValidatorEntrypointContractAddr github_com_mitosis_org_chain_types.EthAddress `` /* 205-byte string literal not displayed */
// validators is the list of validators at genesis
Validators []Validator `protobuf:"bytes,3,rep,name=validators,proto3" json:"validators"`
// withdrawals is the list of pending withdrawals at genesis
Withdrawals []Withdrawal `protobuf:"bytes,4,rep,name=withdrawals,proto3" json:"withdrawals"`
// last_validator_powers is the list of the last powers of each validator
LastValidatorPowers []LastValidatorPower `protobuf:"bytes,5,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers"`
// collateral_ownerships is the list of collateral ownership records
CollateralOwnerships []CollateralOwnership `protobuf:"bytes,6,rep,name=collateral_ownerships,json=collateralOwnerships,proto3" json:"collateral_ownerships"`
}
GenesisState defines the evmvalidator module's genesis state
func DefaultGenesisState ¶
func DefaultGenesisState() *GenesisState
DefaultGenesisState creates a default GenesisState object
func NewGenesisState ¶
func NewGenesisState( params Params, validatorEntrypointContractAddr mitotypes.EthAddress, validators []Validator, withdrawals []Withdrawal, lastValidatorPowers []LastValidatorPower, collateralOwnerships []CollateralOwnership, ) *GenesisState
NewGenesisState creates a new GenesisState object
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetCollateralOwnerships ¶
func (m *GenesisState) GetCollateralOwnerships() []CollateralOwnership
func (*GenesisState) GetLastValidatorPowers ¶
func (m *GenesisState) GetLastValidatorPowers() []LastValidatorPower
func (*GenesisState) GetParams ¶
func (m *GenesisState) GetParams() Params
func (*GenesisState) GetValidators ¶
func (m *GenesisState) GetValidators() []Validator
func (*GenesisState) GetWithdrawals ¶
func (m *GenesisState) GetWithdrawals() []Withdrawal
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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
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 LastValidatorPower ¶
type LastValidatorPower struct {
// val_addr is the Ethereum address of the validator
ValAddr github_com_mitosis_org_chain_types.EthAddress `` /* 129-byte string literal not displayed */
// power is the last voting power
Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
}
LastValidatorPower defines the last validator power used for validator set updates
func (*LastValidatorPower) Descriptor ¶
func (*LastValidatorPower) Descriptor() ([]byte, []int)
func (*LastValidatorPower) GetPower ¶
func (m *LastValidatorPower) GetPower() int64
func (*LastValidatorPower) Marshal ¶
func (m *LastValidatorPower) Marshal() (dAtA []byte, err error)
func (*LastValidatorPower) MarshalTo ¶
func (m *LastValidatorPower) MarshalTo(dAtA []byte) (int, error)
func (*LastValidatorPower) MarshalToSizedBuffer ¶
func (m *LastValidatorPower) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*LastValidatorPower) ProtoMessage ¶
func (*LastValidatorPower) ProtoMessage()
func (*LastValidatorPower) Reset ¶
func (m *LastValidatorPower) Reset()
func (*LastValidatorPower) Size ¶
func (m *LastValidatorPower) Size() (n int)
func (*LastValidatorPower) String ¶
func (m *LastValidatorPower) String() string
func (*LastValidatorPower) Unmarshal ¶
func (m *LastValidatorPower) Unmarshal(dAtA []byte) error
func (*LastValidatorPower) XXX_DiscardUnknown ¶
func (m *LastValidatorPower) XXX_DiscardUnknown()
func (*LastValidatorPower) XXX_Marshal ¶
func (m *LastValidatorPower) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LastValidatorPower) XXX_Merge ¶
func (m *LastValidatorPower) XXX_Merge(src proto.Message)
func (*LastValidatorPower) XXX_Size ¶
func (m *LastValidatorPower) XXX_Size() int
func (*LastValidatorPower) XXX_Unmarshal ¶
func (m *LastValidatorPower) XXX_Unmarshal(b []byte) error
type MsgClient ¶
type MsgClient interface {
// UpdateParams updates the module parameters
UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
// UpdateValidatorEntrypointContractAddr updates the address of the
// ConsensusValidatorEntrypoint contract
UpdateValidatorEntrypointContractAddr(ctx context.Context, in *MsgUpdateValidatorEntrypointContractAddr, opts ...grpc.CallOption) (*MsgUpdateValidatorEntrypointContractAddrResponse, 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 {
// UpdateParams updates the module parameters
UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
// UpdateValidatorEntrypointContractAddr updates the address of the
// ConsensusValidatorEntrypoint contract
UpdateValidatorEntrypointContractAddr(context.Context, *MsgUpdateValidatorEntrypointContractAddr) (*MsgUpdateValidatorEntrypointContractAddrResponse, error)
}
MsgServer is the server API for Msg service.
type MsgUpdateParams ¶
type MsgUpdateParams struct {
// authority is the address that controls the module
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// params is the updated parameters
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) 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 is the Msg/UpdateParams response type
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 MsgUpdateValidatorEntrypointContractAddr ¶
type MsgUpdateValidatorEntrypointContractAddr struct {
// authority is the address that controls the module
Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
// addr is the new address of the ConsensusValidatorEntrypoint contract
Addr github_com_mitosis_org_chain_types.EthAddress `protobuf:"bytes,2,opt,name=addr,proto3,customtype=github.com/mitosis-org/chain/types.EthAddress" json:"addr"`
}
MsgUpdateValidatorEntrypointContractAddr is the Msg/UpdateValidatorEntrypointContractAddr request type
func (*MsgUpdateValidatorEntrypointContractAddr) Descriptor ¶
func (*MsgUpdateValidatorEntrypointContractAddr) Descriptor() ([]byte, []int)
func (*MsgUpdateValidatorEntrypointContractAddr) GetAuthority ¶
func (m *MsgUpdateValidatorEntrypointContractAddr) GetAuthority() string
func (*MsgUpdateValidatorEntrypointContractAddr) Marshal ¶
func (m *MsgUpdateValidatorEntrypointContractAddr) Marshal() (dAtA []byte, err error)
func (*MsgUpdateValidatorEntrypointContractAddr) MarshalTo ¶
func (m *MsgUpdateValidatorEntrypointContractAddr) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateValidatorEntrypointContractAddr) MarshalToSizedBuffer ¶
func (m *MsgUpdateValidatorEntrypointContractAddr) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateValidatorEntrypointContractAddr) ProtoMessage ¶
func (*MsgUpdateValidatorEntrypointContractAddr) ProtoMessage()
func (*MsgUpdateValidatorEntrypointContractAddr) Reset ¶
func (m *MsgUpdateValidatorEntrypointContractAddr) Reset()
func (*MsgUpdateValidatorEntrypointContractAddr) Size ¶
func (m *MsgUpdateValidatorEntrypointContractAddr) Size() (n int)
func (*MsgUpdateValidatorEntrypointContractAddr) String ¶
func (m *MsgUpdateValidatorEntrypointContractAddr) String() string
func (*MsgUpdateValidatorEntrypointContractAddr) Unmarshal ¶
func (m *MsgUpdateValidatorEntrypointContractAddr) Unmarshal(dAtA []byte) error
func (*MsgUpdateValidatorEntrypointContractAddr) XXX_DiscardUnknown ¶
func (m *MsgUpdateValidatorEntrypointContractAddr) XXX_DiscardUnknown()
func (*MsgUpdateValidatorEntrypointContractAddr) XXX_Marshal ¶
func (m *MsgUpdateValidatorEntrypointContractAddr) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateValidatorEntrypointContractAddr) XXX_Merge ¶
func (m *MsgUpdateValidatorEntrypointContractAddr) XXX_Merge(src proto.Message)
func (*MsgUpdateValidatorEntrypointContractAddr) XXX_Size ¶
func (m *MsgUpdateValidatorEntrypointContractAddr) XXX_Size() int
func (*MsgUpdateValidatorEntrypointContractAddr) XXX_Unmarshal ¶
func (m *MsgUpdateValidatorEntrypointContractAddr) XXX_Unmarshal(b []byte) error
type MsgUpdateValidatorEntrypointContractAddrResponse ¶
type MsgUpdateValidatorEntrypointContractAddrResponse struct {
}
MsgUpdateValidatorEntrypointContractAddrResponse is the Msg/UpdateValidatorEntrypointContractAddr response type
func (*MsgUpdateValidatorEntrypointContractAddrResponse) Descriptor ¶
func (*MsgUpdateValidatorEntrypointContractAddrResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateValidatorEntrypointContractAddrResponse) Marshal ¶
func (m *MsgUpdateValidatorEntrypointContractAddrResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateValidatorEntrypointContractAddrResponse) MarshalTo ¶
func (m *MsgUpdateValidatorEntrypointContractAddrResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateValidatorEntrypointContractAddrResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateValidatorEntrypointContractAddrResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateValidatorEntrypointContractAddrResponse) ProtoMessage ¶
func (*MsgUpdateValidatorEntrypointContractAddrResponse) ProtoMessage()
func (*MsgUpdateValidatorEntrypointContractAddrResponse) Reset ¶
func (m *MsgUpdateValidatorEntrypointContractAddrResponse) Reset()
func (*MsgUpdateValidatorEntrypointContractAddrResponse) Size ¶
func (m *MsgUpdateValidatorEntrypointContractAddrResponse) Size() (n int)
func (*MsgUpdateValidatorEntrypointContractAddrResponse) String ¶
func (m *MsgUpdateValidatorEntrypointContractAddrResponse) String() string
func (*MsgUpdateValidatorEntrypointContractAddrResponse) Unmarshal ¶
func (m *MsgUpdateValidatorEntrypointContractAddrResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateValidatorEntrypointContractAddrResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateValidatorEntrypointContractAddrResponse) XXX_DiscardUnknown()
func (*MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Marshal ¶
func (m *MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Merge ¶
func (m *MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Size ¶
func (m *MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Size() int
func (*MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Unmarshal ¶
func (m *MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Unmarshal(b []byte) error
type Params ¶
type Params struct {
// max_validators is the maximum number of validators
MaxValidators uint32 `protobuf:"varint,1,opt,name=max_validators,json=maxValidators,proto3" json:"max_validators,omitempty"`
// max_leverage_ratio is the maximum ratio of (collateral +
// extra_voting_power) / collateral
MaxLeverageRatio cosmossdk_io_math.LegacyDec `` /* 140-byte string literal not displayed */
// min_voting_power is the minimum voting power required to be a validator
// if voting power < min_voting_power, the validator will be jailed
MinVotingPower int64 `protobuf:"varint,3,opt,name=min_voting_power,json=minVotingPower,proto3" json:"min_voting_power,omitempty"`
// withdrawal_limit is the maximum number of withdrawals that can be processed
// in a single block (to avoid performance issues)
WithdrawalLimit uint32 `protobuf:"varint,4,opt,name=withdrawal_limit,json=withdrawalLimit,proto3" json:"withdrawal_limit,omitempty"`
}
Params defines the parameters for the x/evmvalidator module
func (*Params) Descriptor ¶
func (*Params) GetMaxValidators ¶
func (*Params) GetMinVotingPower ¶
func (*Params) GetWithdrawalLimit ¶
func (*Params) MarshalToSizedBuffer ¶
func (*Params) ProtoMessage ¶
func (*Params) ProtoMessage()
func (*Params) XXX_DiscardUnknown ¶
func (m *Params) XXX_DiscardUnknown()
func (*Params) XXX_Marshal ¶
func (*Params) XXX_Unmarshal ¶
type QueryClient ¶
type QueryClient interface {
// Params returns the parameters of the x/evmvalidator module
Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
// ValidatorEntrypointContractAddr returns the address of the entrypoint
// contract for validators
ValidatorEntrypointContractAddr(ctx context.Context, in *QueryValidatorEntrypointContractAddrRequest, opts ...grpc.CallOption) (*QueryValidatorEntrypointContractAddrResponse, error)
// Validator returns validator details by address
Validator(ctx context.Context, in *QueryValidatorRequest, opts ...grpc.CallOption) (*QueryValidatorResponse, error)
// ValidatorByConsAddr returns validator details by consensus address
ValidatorByConsAddr(ctx context.Context, in *QueryValidatorByConsAddrRequest, opts ...grpc.CallOption) (*QueryValidatorByConsAddrResponse, error)
// Validators returns all validators
Validators(ctx context.Context, in *QueryValidatorsRequest, opts ...grpc.CallOption) (*QueryValidatorsResponse, error)
// Withdrawal returns withdrawal details by ID
Withdrawal(ctx context.Context, in *QueryWithdrawalRequest, opts ...grpc.CallOption) (*QueryWithdrawalResponse, error)
// Withdrawals returns all withdrawals
Withdrawals(ctx context.Context, in *QueryWithdrawalsRequest, opts ...grpc.CallOption) (*QueryWithdrawalsResponse, error)
// WithdrawalsByValidator returns withdrawals for a specific validator
WithdrawalsByValidator(ctx context.Context, in *QueryWithdrawalsByValidatorRequest, opts ...grpc.CallOption) (*QueryWithdrawalsByValidatorResponse, error)
// CollateralOwnerships returns all collateral ownerships
CollateralOwnerships(ctx context.Context, in *QueryCollateralOwnershipsRequest, opts ...grpc.CallOption) (*QueryCollateralOwnershipsResponse, error)
// CollateralOwnershipsByValidator returns all collateral ownerships for a
// specific validator
CollateralOwnershipsByValidator(ctx context.Context, in *QueryCollateralOwnershipsByValidatorRequest, opts ...grpc.CallOption) (*QueryCollateralOwnershipsByValidatorResponse, error)
// CollateralOwnership returns the collateral ownership for a specific
// validator and owner
CollateralOwnership(ctx context.Context, in *QueryCollateralOwnershipRequest, opts ...grpc.CallOption) (*QueryCollateralOwnershipResponse, 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 QueryCollateralOwnershipRequest ¶
type QueryCollateralOwnershipRequest struct {
ValAddr []byte `protobuf:"bytes,1,opt,name=val_addr,json=valAddr,proto3" json:"val_addr,omitempty"`
Owner []byte `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
}
QueryCollateralOwnershipRequest is the request type for the Query/CollateralOwnership RPC method
func (*QueryCollateralOwnershipRequest) Descriptor ¶
func (*QueryCollateralOwnershipRequest) Descriptor() ([]byte, []int)
func (*QueryCollateralOwnershipRequest) GetOwner ¶
func (m *QueryCollateralOwnershipRequest) GetOwner() []byte
func (*QueryCollateralOwnershipRequest) GetValAddr ¶
func (m *QueryCollateralOwnershipRequest) GetValAddr() []byte
func (*QueryCollateralOwnershipRequest) Marshal ¶
func (m *QueryCollateralOwnershipRequest) Marshal() (dAtA []byte, err error)
func (*QueryCollateralOwnershipRequest) MarshalTo ¶
func (m *QueryCollateralOwnershipRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollateralOwnershipRequest) MarshalToSizedBuffer ¶
func (m *QueryCollateralOwnershipRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollateralOwnershipRequest) ProtoMessage ¶
func (*QueryCollateralOwnershipRequest) ProtoMessage()
func (*QueryCollateralOwnershipRequest) Reset ¶
func (m *QueryCollateralOwnershipRequest) Reset()
func (*QueryCollateralOwnershipRequest) Size ¶
func (m *QueryCollateralOwnershipRequest) Size() (n int)
func (*QueryCollateralOwnershipRequest) String ¶
func (m *QueryCollateralOwnershipRequest) String() string
func (*QueryCollateralOwnershipRequest) Unmarshal ¶
func (m *QueryCollateralOwnershipRequest) Unmarshal(dAtA []byte) error
func (*QueryCollateralOwnershipRequest) XXX_DiscardUnknown ¶
func (m *QueryCollateralOwnershipRequest) XXX_DiscardUnknown()
func (*QueryCollateralOwnershipRequest) XXX_Marshal ¶
func (m *QueryCollateralOwnershipRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollateralOwnershipRequest) XXX_Merge ¶
func (m *QueryCollateralOwnershipRequest) XXX_Merge(src proto.Message)
func (*QueryCollateralOwnershipRequest) XXX_Size ¶
func (m *QueryCollateralOwnershipRequest) XXX_Size() int
func (*QueryCollateralOwnershipRequest) XXX_Unmarshal ¶
func (m *QueryCollateralOwnershipRequest) XXX_Unmarshal(b []byte) error
type QueryCollateralOwnershipResponse ¶
type QueryCollateralOwnershipResponse struct {
CollateralOwnership CollateralOwnershipWithAmount `protobuf:"bytes,1,opt,name=collateral_ownership,json=collateralOwnership,proto3" json:"collateral_ownership"`
}
QueryCollateralOwnershipResponse is the response type for the Query/CollateralOwnership RPC method
func (*QueryCollateralOwnershipResponse) Descriptor ¶
func (*QueryCollateralOwnershipResponse) Descriptor() ([]byte, []int)
func (*QueryCollateralOwnershipResponse) GetCollateralOwnership ¶
func (m *QueryCollateralOwnershipResponse) GetCollateralOwnership() CollateralOwnershipWithAmount
func (*QueryCollateralOwnershipResponse) Marshal ¶
func (m *QueryCollateralOwnershipResponse) Marshal() (dAtA []byte, err error)
func (*QueryCollateralOwnershipResponse) MarshalTo ¶
func (m *QueryCollateralOwnershipResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollateralOwnershipResponse) MarshalToSizedBuffer ¶
func (m *QueryCollateralOwnershipResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollateralOwnershipResponse) ProtoMessage ¶
func (*QueryCollateralOwnershipResponse) ProtoMessage()
func (*QueryCollateralOwnershipResponse) Reset ¶
func (m *QueryCollateralOwnershipResponse) Reset()
func (*QueryCollateralOwnershipResponse) Size ¶
func (m *QueryCollateralOwnershipResponse) Size() (n int)
func (*QueryCollateralOwnershipResponse) String ¶
func (m *QueryCollateralOwnershipResponse) String() string
func (*QueryCollateralOwnershipResponse) Unmarshal ¶
func (m *QueryCollateralOwnershipResponse) Unmarshal(dAtA []byte) error
func (*QueryCollateralOwnershipResponse) XXX_DiscardUnknown ¶
func (m *QueryCollateralOwnershipResponse) XXX_DiscardUnknown()
func (*QueryCollateralOwnershipResponse) XXX_Marshal ¶
func (m *QueryCollateralOwnershipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollateralOwnershipResponse) XXX_Merge ¶
func (m *QueryCollateralOwnershipResponse) XXX_Merge(src proto.Message)
func (*QueryCollateralOwnershipResponse) XXX_Size ¶
func (m *QueryCollateralOwnershipResponse) XXX_Size() int
func (*QueryCollateralOwnershipResponse) XXX_Unmarshal ¶
func (m *QueryCollateralOwnershipResponse) XXX_Unmarshal(b []byte) error
type QueryCollateralOwnershipsByValidatorRequest ¶
type QueryCollateralOwnershipsByValidatorRequest struct {
ValAddr []byte `protobuf:"bytes,1,opt,name=val_addr,json=valAddr,proto3" json:"val_addr,omitempty"`
// pagination defines an optional pagination for the request
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryCollateralOwnershipsByValidatorRequest is the request type for the Query/CollateralOwnershipsByValidator RPC method
func (*QueryCollateralOwnershipsByValidatorRequest) Descriptor ¶
func (*QueryCollateralOwnershipsByValidatorRequest) Descriptor() ([]byte, []int)
func (*QueryCollateralOwnershipsByValidatorRequest) GetPagination ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) GetPagination() *query.PageRequest
func (*QueryCollateralOwnershipsByValidatorRequest) GetValAddr ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) GetValAddr() []byte
func (*QueryCollateralOwnershipsByValidatorRequest) Marshal ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) Marshal() (dAtA []byte, err error)
func (*QueryCollateralOwnershipsByValidatorRequest) MarshalTo ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollateralOwnershipsByValidatorRequest) MarshalToSizedBuffer ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollateralOwnershipsByValidatorRequest) ProtoMessage ¶
func (*QueryCollateralOwnershipsByValidatorRequest) ProtoMessage()
func (*QueryCollateralOwnershipsByValidatorRequest) Reset ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) Reset()
func (*QueryCollateralOwnershipsByValidatorRequest) Size ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) Size() (n int)
func (*QueryCollateralOwnershipsByValidatorRequest) String ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) String() string
func (*QueryCollateralOwnershipsByValidatorRequest) Unmarshal ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) Unmarshal(dAtA []byte) error
func (*QueryCollateralOwnershipsByValidatorRequest) XXX_DiscardUnknown ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) XXX_DiscardUnknown()
func (*QueryCollateralOwnershipsByValidatorRequest) XXX_Marshal ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollateralOwnershipsByValidatorRequest) XXX_Merge ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) XXX_Merge(src proto.Message)
func (*QueryCollateralOwnershipsByValidatorRequest) XXX_Size ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) XXX_Size() int
func (*QueryCollateralOwnershipsByValidatorRequest) XXX_Unmarshal ¶
func (m *QueryCollateralOwnershipsByValidatorRequest) XXX_Unmarshal(b []byte) error
type QueryCollateralOwnershipsByValidatorResponse ¶
type QueryCollateralOwnershipsByValidatorResponse struct {
CollateralOwnerships []CollateralOwnershipWithAmount `protobuf:"bytes,1,rep,name=collateral_ownerships,json=collateralOwnerships,proto3" json:"collateral_ownerships"`
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryCollateralOwnershipsByValidatorResponse is the response type for the Query/CollateralOwnershipsByValidator RPC method
func (*QueryCollateralOwnershipsByValidatorResponse) Descriptor ¶
func (*QueryCollateralOwnershipsByValidatorResponse) Descriptor() ([]byte, []int)
func (*QueryCollateralOwnershipsByValidatorResponse) GetCollateralOwnerships ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) GetCollateralOwnerships() []CollateralOwnershipWithAmount
func (*QueryCollateralOwnershipsByValidatorResponse) GetPagination ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) GetPagination() *query.PageResponse
func (*QueryCollateralOwnershipsByValidatorResponse) Marshal ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) Marshal() (dAtA []byte, err error)
func (*QueryCollateralOwnershipsByValidatorResponse) MarshalTo ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollateralOwnershipsByValidatorResponse) MarshalToSizedBuffer ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollateralOwnershipsByValidatorResponse) ProtoMessage ¶
func (*QueryCollateralOwnershipsByValidatorResponse) ProtoMessage()
func (*QueryCollateralOwnershipsByValidatorResponse) Reset ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) Reset()
func (*QueryCollateralOwnershipsByValidatorResponse) Size ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) Size() (n int)
func (*QueryCollateralOwnershipsByValidatorResponse) String ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) String() string
func (*QueryCollateralOwnershipsByValidatorResponse) Unmarshal ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) Unmarshal(dAtA []byte) error
func (*QueryCollateralOwnershipsByValidatorResponse) XXX_DiscardUnknown ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) XXX_DiscardUnknown()
func (*QueryCollateralOwnershipsByValidatorResponse) XXX_Marshal ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollateralOwnershipsByValidatorResponse) XXX_Merge ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) XXX_Merge(src proto.Message)
func (*QueryCollateralOwnershipsByValidatorResponse) XXX_Size ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) XXX_Size() int
func (*QueryCollateralOwnershipsByValidatorResponse) XXX_Unmarshal ¶
func (m *QueryCollateralOwnershipsByValidatorResponse) XXX_Unmarshal(b []byte) error
type QueryCollateralOwnershipsRequest ¶
type QueryCollateralOwnershipsRequest struct {
// pagination defines an optional pagination for the request
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryCollateralOwnershipsRequest is the request type for the Query/CollateralOwnerships RPC method
func (*QueryCollateralOwnershipsRequest) Descriptor ¶
func (*QueryCollateralOwnershipsRequest) Descriptor() ([]byte, []int)
func (*QueryCollateralOwnershipsRequest) GetPagination ¶
func (m *QueryCollateralOwnershipsRequest) GetPagination() *query.PageRequest
func (*QueryCollateralOwnershipsRequest) Marshal ¶
func (m *QueryCollateralOwnershipsRequest) Marshal() (dAtA []byte, err error)
func (*QueryCollateralOwnershipsRequest) MarshalTo ¶
func (m *QueryCollateralOwnershipsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollateralOwnershipsRequest) MarshalToSizedBuffer ¶
func (m *QueryCollateralOwnershipsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollateralOwnershipsRequest) ProtoMessage ¶
func (*QueryCollateralOwnershipsRequest) ProtoMessage()
func (*QueryCollateralOwnershipsRequest) Reset ¶
func (m *QueryCollateralOwnershipsRequest) Reset()
func (*QueryCollateralOwnershipsRequest) Size ¶
func (m *QueryCollateralOwnershipsRequest) Size() (n int)
func (*QueryCollateralOwnershipsRequest) String ¶
func (m *QueryCollateralOwnershipsRequest) String() string
func (*QueryCollateralOwnershipsRequest) Unmarshal ¶
func (m *QueryCollateralOwnershipsRequest) Unmarshal(dAtA []byte) error
func (*QueryCollateralOwnershipsRequest) XXX_DiscardUnknown ¶
func (m *QueryCollateralOwnershipsRequest) XXX_DiscardUnknown()
func (*QueryCollateralOwnershipsRequest) XXX_Marshal ¶
func (m *QueryCollateralOwnershipsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollateralOwnershipsRequest) XXX_Merge ¶
func (m *QueryCollateralOwnershipsRequest) XXX_Merge(src proto.Message)
func (*QueryCollateralOwnershipsRequest) XXX_Size ¶
func (m *QueryCollateralOwnershipsRequest) XXX_Size() int
func (*QueryCollateralOwnershipsRequest) XXX_Unmarshal ¶
func (m *QueryCollateralOwnershipsRequest) XXX_Unmarshal(b []byte) error
type QueryCollateralOwnershipsResponse ¶
type QueryCollateralOwnershipsResponse struct {
CollateralOwnerships []CollateralOwnershipWithAmount `protobuf:"bytes,1,rep,name=collateral_ownerships,json=collateralOwnerships,proto3" json:"collateral_ownerships"`
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryCollateralOwnershipsResponse is the response type for the Query/CollateralOwnerships RPC method
func (*QueryCollateralOwnershipsResponse) Descriptor ¶
func (*QueryCollateralOwnershipsResponse) Descriptor() ([]byte, []int)
func (*QueryCollateralOwnershipsResponse) GetCollateralOwnerships ¶
func (m *QueryCollateralOwnershipsResponse) GetCollateralOwnerships() []CollateralOwnershipWithAmount
func (*QueryCollateralOwnershipsResponse) GetPagination ¶
func (m *QueryCollateralOwnershipsResponse) GetPagination() *query.PageResponse
func (*QueryCollateralOwnershipsResponse) Marshal ¶
func (m *QueryCollateralOwnershipsResponse) Marshal() (dAtA []byte, err error)
func (*QueryCollateralOwnershipsResponse) MarshalTo ¶
func (m *QueryCollateralOwnershipsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryCollateralOwnershipsResponse) MarshalToSizedBuffer ¶
func (m *QueryCollateralOwnershipsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryCollateralOwnershipsResponse) ProtoMessage ¶
func (*QueryCollateralOwnershipsResponse) ProtoMessage()
func (*QueryCollateralOwnershipsResponse) Reset ¶
func (m *QueryCollateralOwnershipsResponse) Reset()
func (*QueryCollateralOwnershipsResponse) Size ¶
func (m *QueryCollateralOwnershipsResponse) Size() (n int)
func (*QueryCollateralOwnershipsResponse) String ¶
func (m *QueryCollateralOwnershipsResponse) String() string
func (*QueryCollateralOwnershipsResponse) Unmarshal ¶
func (m *QueryCollateralOwnershipsResponse) Unmarshal(dAtA []byte) error
func (*QueryCollateralOwnershipsResponse) XXX_DiscardUnknown ¶
func (m *QueryCollateralOwnershipsResponse) XXX_DiscardUnknown()
func (*QueryCollateralOwnershipsResponse) XXX_Marshal ¶
func (m *QueryCollateralOwnershipsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryCollateralOwnershipsResponse) XXX_Merge ¶
func (m *QueryCollateralOwnershipsResponse) XXX_Merge(src proto.Message)
func (*QueryCollateralOwnershipsResponse) XXX_Size ¶
func (m *QueryCollateralOwnershipsResponse) XXX_Size() int
func (*QueryCollateralOwnershipsResponse) XXX_Unmarshal ¶
func (m *QueryCollateralOwnershipsResponse) XXX_Unmarshal(b []byte) error
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 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 QueryServer ¶
type QueryServer interface {
// Params returns the parameters of the x/evmvalidator module
Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
// ValidatorEntrypointContractAddr returns the address of the entrypoint
// contract for validators
ValidatorEntrypointContractAddr(context.Context, *QueryValidatorEntrypointContractAddrRequest) (*QueryValidatorEntrypointContractAddrResponse, error)
// Validator returns validator details by address
Validator(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error)
// ValidatorByConsAddr returns validator details by consensus address
ValidatorByConsAddr(context.Context, *QueryValidatorByConsAddrRequest) (*QueryValidatorByConsAddrResponse, error)
// Validators returns all validators
Validators(context.Context, *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
// Withdrawal returns withdrawal details by ID
Withdrawal(context.Context, *QueryWithdrawalRequest) (*QueryWithdrawalResponse, error)
// Withdrawals returns all withdrawals
Withdrawals(context.Context, *QueryWithdrawalsRequest) (*QueryWithdrawalsResponse, error)
// WithdrawalsByValidator returns withdrawals for a specific validator
WithdrawalsByValidator(context.Context, *QueryWithdrawalsByValidatorRequest) (*QueryWithdrawalsByValidatorResponse, error)
// CollateralOwnerships returns all collateral ownerships
CollateralOwnerships(context.Context, *QueryCollateralOwnershipsRequest) (*QueryCollateralOwnershipsResponse, error)
// CollateralOwnershipsByValidator returns all collateral ownerships for a
// specific validator
CollateralOwnershipsByValidator(context.Context, *QueryCollateralOwnershipsByValidatorRequest) (*QueryCollateralOwnershipsByValidatorResponse, error)
// CollateralOwnership returns the collateral ownership for a specific
// validator and owner
CollateralOwnership(context.Context, *QueryCollateralOwnershipRequest) (*QueryCollateralOwnershipResponse, error)
}
QueryServer is the server API for Query service.
type QueryValidatorByConsAddrRequest ¶
type QueryValidatorByConsAddrRequest struct {
ConsAddr string `protobuf:"bytes,1,opt,name=cons_addr,json=consAddr,proto3" json:"cons_addr,omitempty"`
}
QueryValidatorByConsAddrRequest is the request type for the Query/ValidatorByConsAddr RPC method
func (*QueryValidatorByConsAddrRequest) Descriptor ¶
func (*QueryValidatorByConsAddrRequest) Descriptor() ([]byte, []int)
func (*QueryValidatorByConsAddrRequest) GetConsAddr ¶
func (m *QueryValidatorByConsAddrRequest) GetConsAddr() string
func (*QueryValidatorByConsAddrRequest) Marshal ¶
func (m *QueryValidatorByConsAddrRequest) Marshal() (dAtA []byte, err error)
func (*QueryValidatorByConsAddrRequest) MarshalTo ¶
func (m *QueryValidatorByConsAddrRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorByConsAddrRequest) MarshalToSizedBuffer ¶
func (m *QueryValidatorByConsAddrRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorByConsAddrRequest) ProtoMessage ¶
func (*QueryValidatorByConsAddrRequest) ProtoMessage()
func (*QueryValidatorByConsAddrRequest) Reset ¶
func (m *QueryValidatorByConsAddrRequest) Reset()
func (*QueryValidatorByConsAddrRequest) Size ¶
func (m *QueryValidatorByConsAddrRequest) Size() (n int)
func (*QueryValidatorByConsAddrRequest) String ¶
func (m *QueryValidatorByConsAddrRequest) String() string
func (*QueryValidatorByConsAddrRequest) Unmarshal ¶
func (m *QueryValidatorByConsAddrRequest) Unmarshal(dAtA []byte) error
func (*QueryValidatorByConsAddrRequest) XXX_DiscardUnknown ¶
func (m *QueryValidatorByConsAddrRequest) XXX_DiscardUnknown()
func (*QueryValidatorByConsAddrRequest) XXX_Marshal ¶
func (m *QueryValidatorByConsAddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorByConsAddrRequest) XXX_Merge ¶
func (m *QueryValidatorByConsAddrRequest) XXX_Merge(src proto.Message)
func (*QueryValidatorByConsAddrRequest) XXX_Size ¶
func (m *QueryValidatorByConsAddrRequest) XXX_Size() int
func (*QueryValidatorByConsAddrRequest) XXX_Unmarshal ¶
func (m *QueryValidatorByConsAddrRequest) XXX_Unmarshal(b []byte) error
type QueryValidatorByConsAddrResponse ¶
type QueryValidatorByConsAddrResponse struct {
Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
}
QueryValidatorByConsAddrResponse is the response type for the Query/ValidatorByConsAddr RPC method
func (*QueryValidatorByConsAddrResponse) Descriptor ¶
func (*QueryValidatorByConsAddrResponse) Descriptor() ([]byte, []int)
func (*QueryValidatorByConsAddrResponse) GetValidator ¶
func (m *QueryValidatorByConsAddrResponse) GetValidator() Validator
func (*QueryValidatorByConsAddrResponse) Marshal ¶
func (m *QueryValidatorByConsAddrResponse) Marshal() (dAtA []byte, err error)
func (*QueryValidatorByConsAddrResponse) MarshalTo ¶
func (m *QueryValidatorByConsAddrResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorByConsAddrResponse) MarshalToSizedBuffer ¶
func (m *QueryValidatorByConsAddrResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorByConsAddrResponse) ProtoMessage ¶
func (*QueryValidatorByConsAddrResponse) ProtoMessage()
func (*QueryValidatorByConsAddrResponse) Reset ¶
func (m *QueryValidatorByConsAddrResponse) Reset()
func (*QueryValidatorByConsAddrResponse) Size ¶
func (m *QueryValidatorByConsAddrResponse) Size() (n int)
func (*QueryValidatorByConsAddrResponse) String ¶
func (m *QueryValidatorByConsAddrResponse) String() string
func (*QueryValidatorByConsAddrResponse) Unmarshal ¶
func (m *QueryValidatorByConsAddrResponse) Unmarshal(dAtA []byte) error
func (*QueryValidatorByConsAddrResponse) XXX_DiscardUnknown ¶
func (m *QueryValidatorByConsAddrResponse) XXX_DiscardUnknown()
func (*QueryValidatorByConsAddrResponse) XXX_Marshal ¶
func (m *QueryValidatorByConsAddrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorByConsAddrResponse) XXX_Merge ¶
func (m *QueryValidatorByConsAddrResponse) XXX_Merge(src proto.Message)
func (*QueryValidatorByConsAddrResponse) XXX_Size ¶
func (m *QueryValidatorByConsAddrResponse) XXX_Size() int
func (*QueryValidatorByConsAddrResponse) XXX_Unmarshal ¶
func (m *QueryValidatorByConsAddrResponse) XXX_Unmarshal(b []byte) error
type QueryValidatorEntrypointContractAddrRequest ¶
type QueryValidatorEntrypointContractAddrRequest struct {
}
QueryValidatorEntrypointContractAddrRequest is the request type for the Query/ValidatorEntrypointContractAddr RPC method
func (*QueryValidatorEntrypointContractAddrRequest) Descriptor ¶
func (*QueryValidatorEntrypointContractAddrRequest) Descriptor() ([]byte, []int)
func (*QueryValidatorEntrypointContractAddrRequest) Marshal ¶
func (m *QueryValidatorEntrypointContractAddrRequest) Marshal() (dAtA []byte, err error)
func (*QueryValidatorEntrypointContractAddrRequest) MarshalTo ¶
func (m *QueryValidatorEntrypointContractAddrRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorEntrypointContractAddrRequest) MarshalToSizedBuffer ¶
func (m *QueryValidatorEntrypointContractAddrRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorEntrypointContractAddrRequest) ProtoMessage ¶
func (*QueryValidatorEntrypointContractAddrRequest) ProtoMessage()
func (*QueryValidatorEntrypointContractAddrRequest) Reset ¶
func (m *QueryValidatorEntrypointContractAddrRequest) Reset()
func (*QueryValidatorEntrypointContractAddrRequest) Size ¶
func (m *QueryValidatorEntrypointContractAddrRequest) Size() (n int)
func (*QueryValidatorEntrypointContractAddrRequest) String ¶
func (m *QueryValidatorEntrypointContractAddrRequest) String() string
func (*QueryValidatorEntrypointContractAddrRequest) Unmarshal ¶
func (m *QueryValidatorEntrypointContractAddrRequest) Unmarshal(dAtA []byte) error
func (*QueryValidatorEntrypointContractAddrRequest) XXX_DiscardUnknown ¶
func (m *QueryValidatorEntrypointContractAddrRequest) XXX_DiscardUnknown()
func (*QueryValidatorEntrypointContractAddrRequest) XXX_Marshal ¶
func (m *QueryValidatorEntrypointContractAddrRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorEntrypointContractAddrRequest) XXX_Merge ¶
func (m *QueryValidatorEntrypointContractAddrRequest) XXX_Merge(src proto.Message)
func (*QueryValidatorEntrypointContractAddrRequest) XXX_Size ¶
func (m *QueryValidatorEntrypointContractAddrRequest) XXX_Size() int
func (*QueryValidatorEntrypointContractAddrRequest) XXX_Unmarshal ¶
func (m *QueryValidatorEntrypointContractAddrRequest) XXX_Unmarshal(b []byte) error
type QueryValidatorEntrypointContractAddrResponse ¶
type QueryValidatorEntrypointContractAddrResponse struct {
Addr github_com_mitosis_org_chain_types.EthAddress `protobuf:"bytes,1,opt,name=addr,proto3,customtype=github.com/mitosis-org/chain/types.EthAddress" json:"addr"`
}
QueryValidatorEntrypointContractAddrResponse is the response type for the Query/ValidatorEntrypointContractAddr RPC method
func (*QueryValidatorEntrypointContractAddrResponse) Descriptor ¶
func (*QueryValidatorEntrypointContractAddrResponse) Descriptor() ([]byte, []int)
func (*QueryValidatorEntrypointContractAddrResponse) Marshal ¶
func (m *QueryValidatorEntrypointContractAddrResponse) Marshal() (dAtA []byte, err error)
func (*QueryValidatorEntrypointContractAddrResponse) MarshalTo ¶
func (m *QueryValidatorEntrypointContractAddrResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryValidatorEntrypointContractAddrResponse) MarshalToSizedBuffer ¶
func (m *QueryValidatorEntrypointContractAddrResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryValidatorEntrypointContractAddrResponse) ProtoMessage ¶
func (*QueryValidatorEntrypointContractAddrResponse) ProtoMessage()
func (*QueryValidatorEntrypointContractAddrResponse) Reset ¶
func (m *QueryValidatorEntrypointContractAddrResponse) Reset()
func (*QueryValidatorEntrypointContractAddrResponse) Size ¶
func (m *QueryValidatorEntrypointContractAddrResponse) Size() (n int)
func (*QueryValidatorEntrypointContractAddrResponse) String ¶
func (m *QueryValidatorEntrypointContractAddrResponse) String() string
func (*QueryValidatorEntrypointContractAddrResponse) Unmarshal ¶
func (m *QueryValidatorEntrypointContractAddrResponse) Unmarshal(dAtA []byte) error
func (*QueryValidatorEntrypointContractAddrResponse) XXX_DiscardUnknown ¶
func (m *QueryValidatorEntrypointContractAddrResponse) XXX_DiscardUnknown()
func (*QueryValidatorEntrypointContractAddrResponse) XXX_Marshal ¶
func (m *QueryValidatorEntrypointContractAddrResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryValidatorEntrypointContractAddrResponse) XXX_Merge ¶
func (m *QueryValidatorEntrypointContractAddrResponse) XXX_Merge(src proto.Message)
func (*QueryValidatorEntrypointContractAddrResponse) XXX_Size ¶
func (m *QueryValidatorEntrypointContractAddrResponse) XXX_Size() int
func (*QueryValidatorEntrypointContractAddrResponse) XXX_Unmarshal ¶
func (m *QueryValidatorEntrypointContractAddrResponse) XXX_Unmarshal(b []byte) error
type QueryValidatorRequest ¶
type QueryValidatorRequest struct {
ValAddr []byte `protobuf:"bytes,1,opt,name=val_addr,json=valAddr,proto3" json:"val_addr,omitempty"`
}
QueryValidatorRequest is the request type for the Query/Validator RPC method
func (*QueryValidatorRequest) Descriptor ¶
func (*QueryValidatorRequest) Descriptor() ([]byte, []int)
func (*QueryValidatorRequest) GetValAddr ¶
func (m *QueryValidatorRequest) GetValAddr() []byte
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 {
Validator Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator"`
}
QueryValidatorResponse is the response type for the Query/Validator RPC method
func (*QueryValidatorResponse) Descriptor ¶
func (*QueryValidatorResponse) Descriptor() ([]byte, []int)
func (*QueryValidatorResponse) GetValidator ¶
func (m *QueryValidatorResponse) GetValidator() Validator
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 defines an optional pagination for the request
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryValidatorsRequest is the request type for the Query/Validators RPC method
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 []Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators"`
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryValidatorsResponse is the response type for the Query/Validators RPC method
func (*QueryValidatorsResponse) Descriptor ¶
func (*QueryValidatorsResponse) Descriptor() ([]byte, []int)
func (*QueryValidatorsResponse) GetPagination ¶
func (m *QueryValidatorsResponse) GetPagination() *query.PageResponse
func (*QueryValidatorsResponse) GetValidators ¶
func (m *QueryValidatorsResponse) GetValidators() []Validator
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 QueryWithdrawalRequest ¶
type QueryWithdrawalRequest struct {
Id uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
QueryWithdrawalRequest is the request type for the Query/Withdrawal RPC method
func (*QueryWithdrawalRequest) Descriptor ¶
func (*QueryWithdrawalRequest) Descriptor() ([]byte, []int)
func (*QueryWithdrawalRequest) GetId ¶
func (m *QueryWithdrawalRequest) GetId() uint64
func (*QueryWithdrawalRequest) Marshal ¶
func (m *QueryWithdrawalRequest) Marshal() (dAtA []byte, err error)
func (*QueryWithdrawalRequest) MarshalTo ¶
func (m *QueryWithdrawalRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryWithdrawalRequest) MarshalToSizedBuffer ¶
func (m *QueryWithdrawalRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryWithdrawalRequest) ProtoMessage ¶
func (*QueryWithdrawalRequest) ProtoMessage()
func (*QueryWithdrawalRequest) Reset ¶
func (m *QueryWithdrawalRequest) Reset()
func (*QueryWithdrawalRequest) Size ¶
func (m *QueryWithdrawalRequest) Size() (n int)
func (*QueryWithdrawalRequest) String ¶
func (m *QueryWithdrawalRequest) String() string
func (*QueryWithdrawalRequest) Unmarshal ¶
func (m *QueryWithdrawalRequest) Unmarshal(dAtA []byte) error
func (*QueryWithdrawalRequest) XXX_DiscardUnknown ¶
func (m *QueryWithdrawalRequest) XXX_DiscardUnknown()
func (*QueryWithdrawalRequest) XXX_Marshal ¶
func (m *QueryWithdrawalRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryWithdrawalRequest) XXX_Merge ¶
func (m *QueryWithdrawalRequest) XXX_Merge(src proto.Message)
func (*QueryWithdrawalRequest) XXX_Size ¶
func (m *QueryWithdrawalRequest) XXX_Size() int
func (*QueryWithdrawalRequest) XXX_Unmarshal ¶
func (m *QueryWithdrawalRequest) XXX_Unmarshal(b []byte) error
type QueryWithdrawalResponse ¶
type QueryWithdrawalResponse struct {
Withdrawal Withdrawal `protobuf:"bytes,1,opt,name=withdrawal,proto3" json:"withdrawal"`
}
QueryWithdrawalResponse is the response type for the Query/Withdrawal RPC method
func (*QueryWithdrawalResponse) Descriptor ¶
func (*QueryWithdrawalResponse) Descriptor() ([]byte, []int)
func (*QueryWithdrawalResponse) GetWithdrawal ¶
func (m *QueryWithdrawalResponse) GetWithdrawal() Withdrawal
func (*QueryWithdrawalResponse) Marshal ¶
func (m *QueryWithdrawalResponse) Marshal() (dAtA []byte, err error)
func (*QueryWithdrawalResponse) MarshalTo ¶
func (m *QueryWithdrawalResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryWithdrawalResponse) MarshalToSizedBuffer ¶
func (m *QueryWithdrawalResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryWithdrawalResponse) ProtoMessage ¶
func (*QueryWithdrawalResponse) ProtoMessage()
func (*QueryWithdrawalResponse) Reset ¶
func (m *QueryWithdrawalResponse) Reset()
func (*QueryWithdrawalResponse) Size ¶
func (m *QueryWithdrawalResponse) Size() (n int)
func (*QueryWithdrawalResponse) String ¶
func (m *QueryWithdrawalResponse) String() string
func (*QueryWithdrawalResponse) Unmarshal ¶
func (m *QueryWithdrawalResponse) Unmarshal(dAtA []byte) error
func (*QueryWithdrawalResponse) XXX_DiscardUnknown ¶
func (m *QueryWithdrawalResponse) XXX_DiscardUnknown()
func (*QueryWithdrawalResponse) XXX_Marshal ¶
func (m *QueryWithdrawalResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryWithdrawalResponse) XXX_Merge ¶
func (m *QueryWithdrawalResponse) XXX_Merge(src proto.Message)
func (*QueryWithdrawalResponse) XXX_Size ¶
func (m *QueryWithdrawalResponse) XXX_Size() int
func (*QueryWithdrawalResponse) XXX_Unmarshal ¶
func (m *QueryWithdrawalResponse) XXX_Unmarshal(b []byte) error
type QueryWithdrawalsByValidatorRequest ¶
type QueryWithdrawalsByValidatorRequest struct {
ValAddr []byte `protobuf:"bytes,1,opt,name=val_addr,json=valAddr,proto3" json:"val_addr,omitempty"`
// pagination defines an optional pagination for the request
Pagination *query.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryWithdrawalsByValidatorRequest is the request type for the Query/WithdrawalsByValidator RPC method
func (*QueryWithdrawalsByValidatorRequest) Descriptor ¶
func (*QueryWithdrawalsByValidatorRequest) Descriptor() ([]byte, []int)
func (*QueryWithdrawalsByValidatorRequest) GetPagination ¶
func (m *QueryWithdrawalsByValidatorRequest) GetPagination() *query.PageRequest
func (*QueryWithdrawalsByValidatorRequest) GetValAddr ¶
func (m *QueryWithdrawalsByValidatorRequest) GetValAddr() []byte
func (*QueryWithdrawalsByValidatorRequest) Marshal ¶
func (m *QueryWithdrawalsByValidatorRequest) Marshal() (dAtA []byte, err error)
func (*QueryWithdrawalsByValidatorRequest) MarshalTo ¶
func (m *QueryWithdrawalsByValidatorRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryWithdrawalsByValidatorRequest) MarshalToSizedBuffer ¶
func (m *QueryWithdrawalsByValidatorRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryWithdrawalsByValidatorRequest) ProtoMessage ¶
func (*QueryWithdrawalsByValidatorRequest) ProtoMessage()
func (*QueryWithdrawalsByValidatorRequest) Reset ¶
func (m *QueryWithdrawalsByValidatorRequest) Reset()
func (*QueryWithdrawalsByValidatorRequest) Size ¶
func (m *QueryWithdrawalsByValidatorRequest) Size() (n int)
func (*QueryWithdrawalsByValidatorRequest) String ¶
func (m *QueryWithdrawalsByValidatorRequest) String() string
func (*QueryWithdrawalsByValidatorRequest) Unmarshal ¶
func (m *QueryWithdrawalsByValidatorRequest) Unmarshal(dAtA []byte) error
func (*QueryWithdrawalsByValidatorRequest) XXX_DiscardUnknown ¶
func (m *QueryWithdrawalsByValidatorRequest) XXX_DiscardUnknown()
func (*QueryWithdrawalsByValidatorRequest) XXX_Marshal ¶
func (m *QueryWithdrawalsByValidatorRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryWithdrawalsByValidatorRequest) XXX_Merge ¶
func (m *QueryWithdrawalsByValidatorRequest) XXX_Merge(src proto.Message)
func (*QueryWithdrawalsByValidatorRequest) XXX_Size ¶
func (m *QueryWithdrawalsByValidatorRequest) XXX_Size() int
func (*QueryWithdrawalsByValidatorRequest) XXX_Unmarshal ¶
func (m *QueryWithdrawalsByValidatorRequest) XXX_Unmarshal(b []byte) error
type QueryWithdrawalsByValidatorResponse ¶
type QueryWithdrawalsByValidatorResponse struct {
Withdrawals []Withdrawal `protobuf:"bytes,1,rep,name=withdrawals,proto3" json:"withdrawals"`
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryWithdrawalsByValidatorResponse is the response type for the Query/WithdrawalsByValidator RPC method
func (*QueryWithdrawalsByValidatorResponse) Descriptor ¶
func (*QueryWithdrawalsByValidatorResponse) Descriptor() ([]byte, []int)
func (*QueryWithdrawalsByValidatorResponse) GetPagination ¶
func (m *QueryWithdrawalsByValidatorResponse) GetPagination() *query.PageResponse
func (*QueryWithdrawalsByValidatorResponse) GetWithdrawals ¶
func (m *QueryWithdrawalsByValidatorResponse) GetWithdrawals() []Withdrawal
func (*QueryWithdrawalsByValidatorResponse) Marshal ¶
func (m *QueryWithdrawalsByValidatorResponse) Marshal() (dAtA []byte, err error)
func (*QueryWithdrawalsByValidatorResponse) MarshalTo ¶
func (m *QueryWithdrawalsByValidatorResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryWithdrawalsByValidatorResponse) MarshalToSizedBuffer ¶
func (m *QueryWithdrawalsByValidatorResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryWithdrawalsByValidatorResponse) ProtoMessage ¶
func (*QueryWithdrawalsByValidatorResponse) ProtoMessage()
func (*QueryWithdrawalsByValidatorResponse) Reset ¶
func (m *QueryWithdrawalsByValidatorResponse) Reset()
func (*QueryWithdrawalsByValidatorResponse) Size ¶
func (m *QueryWithdrawalsByValidatorResponse) Size() (n int)
func (*QueryWithdrawalsByValidatorResponse) String ¶
func (m *QueryWithdrawalsByValidatorResponse) String() string
func (*QueryWithdrawalsByValidatorResponse) Unmarshal ¶
func (m *QueryWithdrawalsByValidatorResponse) Unmarshal(dAtA []byte) error
func (*QueryWithdrawalsByValidatorResponse) XXX_DiscardUnknown ¶
func (m *QueryWithdrawalsByValidatorResponse) XXX_DiscardUnknown()
func (*QueryWithdrawalsByValidatorResponse) XXX_Marshal ¶
func (m *QueryWithdrawalsByValidatorResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryWithdrawalsByValidatorResponse) XXX_Merge ¶
func (m *QueryWithdrawalsByValidatorResponse) XXX_Merge(src proto.Message)
func (*QueryWithdrawalsByValidatorResponse) XXX_Size ¶
func (m *QueryWithdrawalsByValidatorResponse) XXX_Size() int
func (*QueryWithdrawalsByValidatorResponse) XXX_Unmarshal ¶
func (m *QueryWithdrawalsByValidatorResponse) XXX_Unmarshal(b []byte) error
type QueryWithdrawalsRequest ¶
type QueryWithdrawalsRequest struct {
// pagination defines an optional pagination for the request
Pagination *query.PageRequest `protobuf:"bytes,1,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryWithdrawalsRequest is the request type for the Query/Withdrawals RPC method
func (*QueryWithdrawalsRequest) Descriptor ¶
func (*QueryWithdrawalsRequest) Descriptor() ([]byte, []int)
func (*QueryWithdrawalsRequest) GetPagination ¶
func (m *QueryWithdrawalsRequest) GetPagination() *query.PageRequest
func (*QueryWithdrawalsRequest) Marshal ¶
func (m *QueryWithdrawalsRequest) Marshal() (dAtA []byte, err error)
func (*QueryWithdrawalsRequest) MarshalTo ¶
func (m *QueryWithdrawalsRequest) MarshalTo(dAtA []byte) (int, error)
func (*QueryWithdrawalsRequest) MarshalToSizedBuffer ¶
func (m *QueryWithdrawalsRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryWithdrawalsRequest) ProtoMessage ¶
func (*QueryWithdrawalsRequest) ProtoMessage()
func (*QueryWithdrawalsRequest) Reset ¶
func (m *QueryWithdrawalsRequest) Reset()
func (*QueryWithdrawalsRequest) Size ¶
func (m *QueryWithdrawalsRequest) Size() (n int)
func (*QueryWithdrawalsRequest) String ¶
func (m *QueryWithdrawalsRequest) String() string
func (*QueryWithdrawalsRequest) Unmarshal ¶
func (m *QueryWithdrawalsRequest) Unmarshal(dAtA []byte) error
func (*QueryWithdrawalsRequest) XXX_DiscardUnknown ¶
func (m *QueryWithdrawalsRequest) XXX_DiscardUnknown()
func (*QueryWithdrawalsRequest) XXX_Marshal ¶
func (m *QueryWithdrawalsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryWithdrawalsRequest) XXX_Merge ¶
func (m *QueryWithdrawalsRequest) XXX_Merge(src proto.Message)
func (*QueryWithdrawalsRequest) XXX_Size ¶
func (m *QueryWithdrawalsRequest) XXX_Size() int
func (*QueryWithdrawalsRequest) XXX_Unmarshal ¶
func (m *QueryWithdrawalsRequest) XXX_Unmarshal(b []byte) error
type QueryWithdrawalsResponse ¶
type QueryWithdrawalsResponse struct {
Withdrawals []Withdrawal `protobuf:"bytes,1,rep,name=withdrawals,proto3" json:"withdrawals"`
Pagination *query.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
}
QueryWithdrawalsResponse is the response type for the Query/Withdrawals RPC method
func (*QueryWithdrawalsResponse) Descriptor ¶
func (*QueryWithdrawalsResponse) Descriptor() ([]byte, []int)
func (*QueryWithdrawalsResponse) GetPagination ¶
func (m *QueryWithdrawalsResponse) GetPagination() *query.PageResponse
func (*QueryWithdrawalsResponse) GetWithdrawals ¶
func (m *QueryWithdrawalsResponse) GetWithdrawals() []Withdrawal
func (*QueryWithdrawalsResponse) Marshal ¶
func (m *QueryWithdrawalsResponse) Marshal() (dAtA []byte, err error)
func (*QueryWithdrawalsResponse) MarshalTo ¶
func (m *QueryWithdrawalsResponse) MarshalTo(dAtA []byte) (int, error)
func (*QueryWithdrawalsResponse) MarshalToSizedBuffer ¶
func (m *QueryWithdrawalsResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryWithdrawalsResponse) ProtoMessage ¶
func (*QueryWithdrawalsResponse) ProtoMessage()
func (*QueryWithdrawalsResponse) Reset ¶
func (m *QueryWithdrawalsResponse) Reset()
func (*QueryWithdrawalsResponse) Size ¶
func (m *QueryWithdrawalsResponse) Size() (n int)
func (*QueryWithdrawalsResponse) String ¶
func (m *QueryWithdrawalsResponse) String() string
func (*QueryWithdrawalsResponse) Unmarshal ¶
func (m *QueryWithdrawalsResponse) Unmarshal(dAtA []byte) error
func (*QueryWithdrawalsResponse) XXX_DiscardUnknown ¶
func (m *QueryWithdrawalsResponse) XXX_DiscardUnknown()
func (*QueryWithdrawalsResponse) XXX_Marshal ¶
func (m *QueryWithdrawalsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryWithdrawalsResponse) XXX_Merge ¶
func (m *QueryWithdrawalsResponse) XXX_Merge(src proto.Message)
func (*QueryWithdrawalsResponse) XXX_Size ¶
func (m *QueryWithdrawalsResponse) XXX_Size() int
func (*QueryWithdrawalsResponse) XXX_Unmarshal ¶
func (m *QueryWithdrawalsResponse) XXX_Unmarshal(b []byte) error
type SlashingKeeper ¶
type SlashingKeeper interface {
AddPubkey(ctx context.Context, pubkey cryptotypes.PubKey) error
UnjailFromConsAddr(ctx context.Context, consAddr sdk.ConsAddress) error
AfterValidatorBonded(ctx context.Context, consAddr sdk.ConsAddress) error
AfterValidatorCreated(ctx context.Context, consPubKey cryptotypes.PubKey) error
}
SlashingKeeper defines the expected slashing keeper
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct {
}
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) UpdateParams ¶
func (*UnimplementedMsgServer) UpdateParams(ctx context.Context, req *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
func (*UnimplementedMsgServer) UpdateValidatorEntrypointContractAddr ¶
func (*UnimplementedMsgServer) UpdateValidatorEntrypointContractAddr(ctx context.Context, req *MsgUpdateValidatorEntrypointContractAddr) (*MsgUpdateValidatorEntrypointContractAddrResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct {
}
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) CollateralOwnership ¶
func (*UnimplementedQueryServer) CollateralOwnership(ctx context.Context, req *QueryCollateralOwnershipRequest) (*QueryCollateralOwnershipResponse, error)
func (*UnimplementedQueryServer) CollateralOwnerships ¶
func (*UnimplementedQueryServer) CollateralOwnerships(ctx context.Context, req *QueryCollateralOwnershipsRequest) (*QueryCollateralOwnershipsResponse, error)
func (*UnimplementedQueryServer) CollateralOwnershipsByValidator ¶
func (*UnimplementedQueryServer) CollateralOwnershipsByValidator(ctx context.Context, req *QueryCollateralOwnershipsByValidatorRequest) (*QueryCollateralOwnershipsByValidatorResponse, error)
func (*UnimplementedQueryServer) Params ¶
func (*UnimplementedQueryServer) Params(ctx context.Context, req *QueryParamsRequest) (*QueryParamsResponse, error)
func (*UnimplementedQueryServer) Validator ¶
func (*UnimplementedQueryServer) Validator(ctx context.Context, req *QueryValidatorRequest) (*QueryValidatorResponse, error)
func (*UnimplementedQueryServer) ValidatorByConsAddr ¶
func (*UnimplementedQueryServer) ValidatorByConsAddr(ctx context.Context, req *QueryValidatorByConsAddrRequest) (*QueryValidatorByConsAddrResponse, error)
func (*UnimplementedQueryServer) ValidatorEntrypointContractAddr ¶
func (*UnimplementedQueryServer) ValidatorEntrypointContractAddr(ctx context.Context, req *QueryValidatorEntrypointContractAddrRequest) (*QueryValidatorEntrypointContractAddrResponse, error)
func (*UnimplementedQueryServer) Validators ¶
func (*UnimplementedQueryServer) Validators(ctx context.Context, req *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
func (*UnimplementedQueryServer) Withdrawal ¶
func (*UnimplementedQueryServer) Withdrawal(ctx context.Context, req *QueryWithdrawalRequest) (*QueryWithdrawalResponse, error)
func (*UnimplementedQueryServer) Withdrawals ¶
func (*UnimplementedQueryServer) Withdrawals(ctx context.Context, req *QueryWithdrawalsRequest) (*QueryWithdrawalsResponse, error)
func (*UnimplementedQueryServer) WithdrawalsByValidator ¶
func (*UnimplementedQueryServer) WithdrawalsByValidator(ctx context.Context, req *QueryWithdrawalsByValidatorRequest) (*QueryWithdrawalsByValidatorResponse, error)
type Validator ¶
type Validator struct {
// addr is the Ethereum address of the validator
Addr github_com_mitosis_org_chain_types.EthAddress `protobuf:"bytes,1,opt,name=addr,proto3,customtype=github.com/mitosis-org/chain/types.EthAddress" json:"addr"`
// pubkey is the compressed secp256k1 public key of the validator
Pubkey []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
// collateral is the amount of MITO used as a collateral (gwei unit)
Collateral cosmossdk_io_math.Uint `protobuf:"bytes,3,opt,name=collateral,proto3,customtype=cosmossdk.io/math.Uint" json:"collateral"`
// collateral
CollateralShares cosmossdk_io_math.Uint `` /* 133-byte string literal not displayed */
// extra_voting_power is additional voting power assigned to the validator
// (gwei unit)
ExtraVotingPower cosmossdk_io_math.Uint `` /* 135-byte string literal not displayed */
// voting_power is the actual voting power used in consensus (calculated)
VotingPower int64 `protobuf:"varint,5,opt,name=voting_power,json=votingPower,proto3" json:"voting_power,omitempty"`
// jailed indicates if the validator is jailed
Jailed bool `protobuf:"varint,6,opt,name=jailed,proto3" json:"jailed,omitempty"`
// bonded indicates if the validator is bonded (meaning it is in the active
// validator set)
Bonded bool `protobuf:"varint,7,opt,name=bonded,proto3" json:"bonded,omitempty"`
}
Validator defines a validator in the x/evmvalidator module
func (Validator) ABCIValidatorUpdate ¶
func (v Validator) ABCIValidatorUpdate() (abciVal abci.ValidatorUpdate, err error)
ABCIValidatorUpdate creates an ABCI validator update object from a validator
func (Validator) ABCIValidatorUpdateForUnbonding ¶
func (v Validator) ABCIValidatorUpdateForUnbonding() (abciVal abci.ValidatorUpdate, err error)
ABCIValidatorUpdateForUnbonding creates an ABCI validator update object from a validator with zero power
func (Validator) CmtConsPublicKey ¶
func (v Validator) CmtConsPublicKey() (cmtprotocrypto.PublicKey, error)
func (Validator) ComputeVotingPower ¶
ComputeVotingPower calculates voting power based on collateral and extra voting power with respect to the max leverage ratio
func (Validator) ConsAddr ¶
func (v Validator) ConsAddr() (sdk.ConsAddress, error)
ConsAddr returns the validator's consensus address
func (Validator) ConsPubKey ¶
func (v Validator) ConsPubKey() (cryptotypes.PubKey, error)
func (Validator) ConsensusVotingPower ¶
ConsensusVotingPower returns the consensus voting power.
func (*Validator) Descriptor ¶
func (Validator) GetConsAddr ¶
GetConsAddr implements ValidatorI
func (*Validator) GetVotingPower ¶
func (*Validator) MarshalToSizedBuffer ¶
func (Validator) MustABCIValidatorUpdate ¶
func (v Validator) MustABCIValidatorUpdate() abci.ValidatorUpdate
MustABCIValidatorUpdate creates an ABCI validator update object from a validator. Panics if error.
func (Validator) MustABCIValidatorUpdateForUnbonding ¶
func (v Validator) MustABCIValidatorUpdateForUnbonding() abci.ValidatorUpdate
MustABCIValidatorUpdateForUnbonding creates an ABCI validator update object from a validator with zero power. Panics if error.
func (Validator) MustConsAddr ¶
func (v Validator) MustConsAddr() sdk.ConsAddress
MustConsAddr returns the validator's consensus address. Panics if error.
func (Validator) MustConsPubKey ¶
func (v Validator) MustConsPubKey() cryptotypes.PubKey
func (*Validator) ProtoMessage ¶
func (*Validator) ProtoMessage()
func (*Validator) XXX_DiscardUnknown ¶
func (m *Validator) XXX_DiscardUnknown()
func (*Validator) XXX_Marshal ¶
func (*Validator) XXX_Unmarshal ¶
type Withdrawal ¶
type Withdrawal struct {
ID uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
// val_addr is the Ethereum address of the validator
ValAddr github_com_mitosis_org_chain_types.EthAddress `` /* 129-byte string literal not displayed */
// amount is the amount of collateral to withdraw (gwei unit)
Amount uint64 `protobuf:"varint,3,opt,name=amount,proto3" json:"amount,omitempty"`
// receiver is the address that will receive the withdrawn collateral
Receiver github_com_mitosis_org_chain_types.EthAddress `protobuf:"bytes,4,opt,name=receiver,proto3,customtype=github.com/mitosis-org/chain/types.EthAddress" json:"receiver"`
// matures_at is the time when the withdrawal request matures
MaturesAt int64 `protobuf:"varint,5,opt,name=matures_at,json=maturesAt,proto3" json:"matures_at,omitempty"`
// creation_height is the height at which the withdrawal request was created
CreationHeight int64 `protobuf:"varint,6,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
}
Withdrawal defines a withdrawal request
func (*Withdrawal) Descriptor ¶
func (*Withdrawal) Descriptor() ([]byte, []int)
func (*Withdrawal) GetAmount ¶
func (m *Withdrawal) GetAmount() uint64
func (*Withdrawal) GetCreationHeight ¶
func (m *Withdrawal) GetCreationHeight() int64
func (*Withdrawal) GetID ¶
func (m *Withdrawal) GetID() uint64
func (*Withdrawal) GetMaturesAt ¶
func (m *Withdrawal) GetMaturesAt() int64
func (*Withdrawal) Marshal ¶
func (m *Withdrawal) Marshal() (dAtA []byte, err error)
func (*Withdrawal) MarshalToSizedBuffer ¶
func (m *Withdrawal) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Withdrawal) ProtoMessage ¶
func (*Withdrawal) ProtoMessage()
func (*Withdrawal) Reset ¶
func (m *Withdrawal) Reset()
func (*Withdrawal) Size ¶
func (m *Withdrawal) Size() (n int)
func (*Withdrawal) String ¶
func (m *Withdrawal) String() string
func (*Withdrawal) Unmarshal ¶
func (m *Withdrawal) Unmarshal(dAtA []byte) error
func (*Withdrawal) XXX_DiscardUnknown ¶
func (m *Withdrawal) XXX_DiscardUnknown()
func (*Withdrawal) XXX_Marshal ¶
func (m *Withdrawal) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Withdrawal) XXX_Merge ¶
func (m *Withdrawal) XXX_Merge(src proto.Message)
func (*Withdrawal) XXX_Size ¶
func (m *Withdrawal) XXX_Size() int
func (*Withdrawal) XXX_Unmarshal ¶
func (m *Withdrawal) XXX_Unmarshal(b []byte) error