types

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2025 License: GPL-3.0 Imports: 40 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
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"
	AttributeKeyCollateralShares    = "collateral_shares"
	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"
	AttributeKeyShares              = "shares"
	AttributeKeyReceiver            = "receiver"
	AttributeKeyMaturesAt           = "matures_at"
	AttributeKeySlashFraction       = "slash_fraction"
	AttributeKeyInfractionHeight    = "infraction_height"
	AttributeKeyInfractionPower     = "infraction_power"
	AttributeKeyReason              = "reason"
)

Event types for evmvalidator

View Source
const (
	// ModuleName defines the module name
	ModuleName = "evmvalidator"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName
)
View Source
const DefaultMaxValidators uint32 = 100

DefaultMaxValidators is the default maximum number of validators.

View Source
const DefaultWithdrawalLimit uint32 = 10

DefaultWithdrawalLimit is the default withdrawal limit per block.

Variables

View Source
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

View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ParamsKey is the 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}
)
View Source
var (
	ErrInvalidLengthParams        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowParams          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupParams = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthValidator        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowValidator          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupValidator = fmt.Errorf("proto: unexpected end of group")
)
View Source
var DefaultMaxLeverageRatio = math.LegacyNewDec(100) // 100x leverage

DefaultMaxLeverageRatio is the default maximum leverage ratio.

View Source
var DefaultMinVotingPower = int64(1)

DefaultMinVotingPower is the default minimum voting power required.

View Source
var SharePrecision = math.NewUint(1e9)

SharePrecision defines the precision factor for share calculations

View Source
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

func GetWithdrawalByMaturesAtKey(maturesAt int64, id uint64) []byte

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 RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func 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 is the number of shares this owner has in the validator's collateral
	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 (*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 (*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 EvmEngineKeeper interface {
	InsertWithdrawal(ctx context.Context, withdrawalAddr common.Address, amountGwei uint64) error
}

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

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation

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

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

func (*MsgUpdateParams) MarshalToSizedBuffer

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

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) Reset

func (m *MsgUpdateParams) Reset()

func (*MsgUpdateParams) Size

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

func (*MsgUpdateParams) String

func (m *MsgUpdateParams) String() string

func (*MsgUpdateParams) Unmarshal

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

func (*MsgUpdateParams) XXX_DiscardUnknown

func (m *MsgUpdateParams) XXX_DiscardUnknown()

func (*MsgUpdateParams) XXX_Marshal

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

func (*MsgUpdateParams) XXX_Merge

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

func (*MsgUpdateParams) XXX_Size

func (m *MsgUpdateParams) XXX_Size() int

func (*MsgUpdateParams) XXX_Unmarshal

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

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
}

MsgUpdateParamsResponse 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 (*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) Reset

func (*MsgUpdateValidatorEntrypointContractAddr) Size

func (*MsgUpdateValidatorEntrypointContractAddr) String

func (*MsgUpdateValidatorEntrypointContractAddr) Unmarshal

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 (*MsgUpdateValidatorEntrypointContractAddr) XXX_Size

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

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

func (*MsgUpdateValidatorEntrypointContractAddrResponse) MarshalTo

func (*MsgUpdateValidatorEntrypointContractAddrResponse) MarshalToSizedBuffer

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

func (*MsgUpdateValidatorEntrypointContractAddrResponse) ProtoMessage

func (*MsgUpdateValidatorEntrypointContractAddrResponse) Reset

func (*MsgUpdateValidatorEntrypointContractAddrResponse) Size

func (*MsgUpdateValidatorEntrypointContractAddrResponse) String

func (*MsgUpdateValidatorEntrypointContractAddrResponse) Unmarshal

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 (*MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Size

func (*MsgUpdateValidatorEntrypointContractAddrResponse) XXX_Unmarshal

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 DefaultParams

func DefaultParams() Params

DefaultParams returns a default set of parameters.

func (*Params) Descriptor

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

func (*Params) Equal

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

func (*Params) GetMaxValidators

func (m *Params) GetMaxValidators() uint32

func (*Params) GetMinVotingPower

func (m *Params) GetMinVotingPower() int64

func (*Params) GetWithdrawalLimit

func (m *Params) GetWithdrawalLimit() uint32

func (*Params) Marshal

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

func (*Params) MarshalTo

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

func (*Params) MarshalToSizedBuffer

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

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) Reset

func (m *Params) Reset()

func (*Params) Size

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

func (*Params) String

func (m *Params) String() string

func (*Params) Unmarshal

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

func (Params) Validate

func (p Params) Validate() error

Validate validates the set of params.

func (*Params) XXX_DiscardUnknown

func (m *Params) XXX_DiscardUnknown()

func (*Params) XXX_Marshal

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

func (*Params) XXX_Merge

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

func (*Params) XXX_Size

func (m *Params) XXX_Size() int

func (*Params) XXX_Unmarshal

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

type 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 (*QueryCollateralOwnershipRequest) Size

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

func (*QueryCollateralOwnershipRequest) 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 (*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 (*QueryCollateralOwnershipResponse) Size

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

func (*QueryCollateralOwnershipResponse) 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 (*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) GetPagination

func (*QueryCollateralOwnershipsByValidatorRequest) GetValAddr

func (*QueryCollateralOwnershipsByValidatorRequest) Marshal

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

func (*QueryCollateralOwnershipsByValidatorRequest) MarshalTo

func (*QueryCollateralOwnershipsByValidatorRequest) MarshalToSizedBuffer

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

func (*QueryCollateralOwnershipsByValidatorRequest) ProtoMessage

func (*QueryCollateralOwnershipsByValidatorRequest) Reset

func (*QueryCollateralOwnershipsByValidatorRequest) Size

func (*QueryCollateralOwnershipsByValidatorRequest) String

func (*QueryCollateralOwnershipsByValidatorRequest) Unmarshal

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 (*QueryCollateralOwnershipsByValidatorRequest) XXX_Size

func (*QueryCollateralOwnershipsByValidatorRequest) XXX_Unmarshal

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

func (*QueryCollateralOwnershipsByValidatorResponse) GetPagination

func (*QueryCollateralOwnershipsByValidatorResponse) Marshal

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

func (*QueryCollateralOwnershipsByValidatorResponse) MarshalTo

func (*QueryCollateralOwnershipsByValidatorResponse) MarshalToSizedBuffer

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

func (*QueryCollateralOwnershipsByValidatorResponse) ProtoMessage

func (*QueryCollateralOwnershipsByValidatorResponse) Reset

func (*QueryCollateralOwnershipsByValidatorResponse) Size

func (*QueryCollateralOwnershipsByValidatorResponse) String

func (*QueryCollateralOwnershipsByValidatorResponse) Unmarshal

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 (*QueryCollateralOwnershipsByValidatorResponse) XXX_Size

func (*QueryCollateralOwnershipsByValidatorResponse) XXX_Unmarshal

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 (*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 (*QueryCollateralOwnershipsRequest) Size

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

func (*QueryCollateralOwnershipsRequest) 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 (*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 (*QueryCollateralOwnershipsResponse) GetPagination

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 (*QueryCollateralOwnershipsResponse) Size

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

func (*QueryCollateralOwnershipsResponse) 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 (*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 (*QueryValidatorByConsAddrRequest) Size

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

func (*QueryValidatorByConsAddrRequest) 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 (*QueryValidatorByConsAddrResponse) Size

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

func (*QueryValidatorByConsAddrResponse) 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 (*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) Marshal

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

func (*QueryValidatorEntrypointContractAddrRequest) MarshalTo

func (*QueryValidatorEntrypointContractAddrRequest) MarshalToSizedBuffer

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

func (*QueryValidatorEntrypointContractAddrRequest) ProtoMessage

func (*QueryValidatorEntrypointContractAddrRequest) Reset

func (*QueryValidatorEntrypointContractAddrRequest) Size

func (*QueryValidatorEntrypointContractAddrRequest) String

func (*QueryValidatorEntrypointContractAddrRequest) Unmarshal

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 (*QueryValidatorEntrypointContractAddrRequest) XXX_Size

func (*QueryValidatorEntrypointContractAddrRequest) XXX_Unmarshal

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

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

func (*QueryValidatorEntrypointContractAddrResponse) MarshalTo

func (*QueryValidatorEntrypointContractAddrResponse) MarshalToSizedBuffer

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

func (*QueryValidatorEntrypointContractAddrResponse) ProtoMessage

func (*QueryValidatorEntrypointContractAddrResponse) Reset

func (*QueryValidatorEntrypointContractAddrResponse) Size

func (*QueryValidatorEntrypointContractAddrResponse) String

func (*QueryValidatorEntrypointContractAddrResponse) Unmarshal

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 (*QueryValidatorEntrypointContractAddrResponse) XXX_Size

func (*QueryValidatorEntrypointContractAddrResponse) XXX_Unmarshal

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 (*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 (*QueryWithdrawalsByValidatorRequest) Size

func (*QueryWithdrawalsByValidatorRequest) 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 (*QueryWithdrawalsByValidatorRequest) XXX_Size

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 (*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 (*QueryWithdrawalsByValidatorResponse) Size

func (*QueryWithdrawalsByValidatorResponse) 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 (*QueryWithdrawalsByValidatorResponse) XXX_Size

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

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) CollateralOwnership

func (*UnimplementedQueryServer) Params

func (*UnimplementedQueryServer) Validator

func (*UnimplementedQueryServer) ValidatorByConsAddr

func (*UnimplementedQueryServer) Validators

func (*UnimplementedQueryServer) Withdrawal

func (*UnimplementedQueryServer) Withdrawals

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_shares is the total number of shares issued for this validator's
	// 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

func (v Validator) ComputeVotingPower(maxLeverageRatio math.LegacyDec) int64

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

func (v Validator) ConsensusVotingPower() int64

ConsensusVotingPower returns the consensus voting power.

func (*Validator) Descriptor

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

func (*Validator) GetBonded

func (m *Validator) GetBonded() bool

func (Validator) GetConsAddr

func (v Validator) GetConsAddr() ([]byte, error)

GetConsAddr implements ValidatorI

func (*Validator) GetJailed

func (m *Validator) GetJailed() bool

func (*Validator) GetPubkey

func (m *Validator) GetPubkey() []byte

func (*Validator) GetVotingPower

func (m *Validator) GetVotingPower() int64

func (Validator) IsJailed

func (v Validator) IsJailed() bool

IsJailed implements ValidatorI

func (*Validator) Marshal

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

func (*Validator) MarshalTo

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

func (*Validator) MarshalToSizedBuffer

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

func (Validator) 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) Reset

func (m *Validator) Reset()

func (*Validator) Size

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

func (*Validator) String

func (m *Validator) String() string

func (*Validator) Unmarshal

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

func (*Validator) XXX_DiscardUnknown

func (m *Validator) XXX_DiscardUnknown()

func (*Validator) XXX_Marshal

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

func (*Validator) XXX_Merge

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

func (*Validator) XXX_Size

func (m *Validator) XXX_Size() int

func (*Validator) XXX_Unmarshal

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

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

func (m *Withdrawal) MarshalTo(dAtA []byte) (int, 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

Jump to

Keyboard shortcuts

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