stakingv1beta1

package
v0.6.7 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 25 Imported by: 0

Documentation

Overview

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Code generated by protoc-gen-go-pulsar. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

View Source
var (
	AuthorizationType_name = map[int32]string{
		0: "AUTHORIZATION_TYPE_UNSPECIFIED",
		1: "AUTHORIZATION_TYPE_DELEGATE",
		2: "AUTHORIZATION_TYPE_UNDELEGATE",
		3: "AUTHORIZATION_TYPE_REDELEGATE",
	}
	AuthorizationType_value = map[string]int32{
		"AUTHORIZATION_TYPE_UNSPECIFIED": 0,
		"AUTHORIZATION_TYPE_DELEGATE":    1,
		"AUTHORIZATION_TYPE_UNDELEGATE":  2,
		"AUTHORIZATION_TYPE_REDELEGATE":  3,
	}
)

Enum value maps for AuthorizationType.

View Source
var (
	BondStatus_name = map[int32]string{
		0: "BOND_STATUS_UNSPECIFIED",
		1: "BOND_STATUS_UNBONDED",
		2: "BOND_STATUS_UNBONDING",
		3: "BOND_STATUS_BONDED",
	}
	BondStatus_value = map[string]int32{
		"BOND_STATUS_UNSPECIFIED": 0,
		"BOND_STATUS_UNBONDED":    1,
		"BOND_STATUS_UNBONDING":   2,
		"BOND_STATUS_BONDED":      3,
	}
)

Enum value maps for BondStatus.

View Source
var (
	Infraction_name = map[int32]string{
		0: "INFRACTION_UNSPECIFIED",
		1: "INFRACTION_DOUBLE_SIGN",
		2: "INFRACTION_DOWNTIME",
	}
	Infraction_value = map[string]int32{
		"INFRACTION_UNSPECIFIED": 0,
		"INFRACTION_DOUBLE_SIGN": 1,
		"INFRACTION_DOWNTIME":    2,
	}
)

Enum value maps for Infraction.

View Source
var File_cosmos_staking_v1beta1_authz_proto protoreflect.FileDescriptor
View Source
var File_cosmos_staking_v1beta1_genesis_proto protoreflect.FileDescriptor
View Source
var File_cosmos_staking_v1beta1_query_proto protoreflect.FileDescriptor
View Source
var File_cosmos_staking_v1beta1_staking_proto protoreflect.FileDescriptor
View Source
var File_cosmos_staking_v1beta1_tx_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.staking.v1beta1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "CreateValidator",
			Handler:    _Msg_CreateValidator_Handler,
		},
		{
			MethodName: "EditValidator",
			Handler:    _Msg_EditValidator_Handler,
		},
		{
			MethodName: "Delegate",
			Handler:    _Msg_Delegate_Handler,
		},
		{
			MethodName: "BeginRedelegate",
			Handler:    _Msg_BeginRedelegate_Handler,
		},
		{
			MethodName: "Undelegate",
			Handler:    _Msg_Undelegate_Handler,
		},
		{
			MethodName: "CancelUnbondingDelegation",
			Handler:    _Msg_CancelUnbondingDelegation_Handler,
		},
		{
			MethodName: "UpdateParams",
			Handler:    _Msg_UpdateParams_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/staking/v1beta1/tx.proto",
}

Msg_ServiceDesc is the grpc.ServiceDesc for Msg service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Query_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "cosmos.staking.v1beta1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Validators",
			Handler:    _Query_Validators_Handler,
		},
		{
			MethodName: "Validator",
			Handler:    _Query_Validator_Handler,
		},
		{
			MethodName: "ValidatorDelegations",
			Handler:    _Query_ValidatorDelegations_Handler,
		},
		{
			MethodName: "ValidatorUnbondingDelegations",
			Handler:    _Query_ValidatorUnbondingDelegations_Handler,
		},
		{
			MethodName: "Delegation",
			Handler:    _Query_Delegation_Handler,
		},
		{
			MethodName: "UnbondingDelegation",
			Handler:    _Query_UnbondingDelegation_Handler,
		},
		{
			MethodName: "DelegatorDelegations",
			Handler:    _Query_DelegatorDelegations_Handler,
		},
		{
			MethodName: "DelegatorUnbondingDelegations",
			Handler:    _Query_DelegatorUnbondingDelegations_Handler,
		},
		{
			MethodName: "Redelegations",
			Handler:    _Query_Redelegations_Handler,
		},
		{
			MethodName: "DelegatorValidators",
			Handler:    _Query_DelegatorValidators_Handler,
		},
		{
			MethodName: "DelegatorValidator",
			Handler:    _Query_DelegatorValidator_Handler,
		},
		{
			MethodName: "HistoricalInfo",
			Handler:    _Query_HistoricalInfo_Handler,
		},
		{
			MethodName: "Pool",
			Handler:    _Query_Pool_Handler,
		},
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "cosmos/staking/v1beta1/query.proto",
}

Query_ServiceDesc is the grpc.ServiceDesc for Query service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterMsgServer

func RegisterMsgServer(s grpc.ServiceRegistrar, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc.ServiceRegistrar, srv QueryServer)

Types

type AuthorizationType

type AuthorizationType int32

AuthorizationType defines the type of staking module authorization type

Since: cosmos-sdk 0.43

const (
	// AUTHORIZATION_TYPE_UNSPECIFIED specifies an unknown authorization type
	AuthorizationType_AUTHORIZATION_TYPE_UNSPECIFIED AuthorizationType = 0
	// AUTHORIZATION_TYPE_DELEGATE defines an authorization type for Msg/Delegate
	AuthorizationType_AUTHORIZATION_TYPE_DELEGATE AuthorizationType = 1
	// AUTHORIZATION_TYPE_UNDELEGATE defines an authorization type for Msg/Undelegate
	AuthorizationType_AUTHORIZATION_TYPE_UNDELEGATE AuthorizationType = 2
	// AUTHORIZATION_TYPE_REDELEGATE defines an authorization type for Msg/BeginRedelegate
	AuthorizationType_AUTHORIZATION_TYPE_REDELEGATE AuthorizationType = 3
)

func (AuthorizationType) Descriptor

func (AuthorizationType) Enum

func (AuthorizationType) EnumDescriptor deprecated

func (AuthorizationType) EnumDescriptor() ([]byte, []int)

Deprecated: Use AuthorizationType.Descriptor instead.

func (AuthorizationType) Number

func (AuthorizationType) String

func (x AuthorizationType) String() string

func (AuthorizationType) Type

type BondStatus

type BondStatus int32

BondStatus is the status of a validator.

const (
	// UNSPECIFIED defines an invalid validator status.
	BondStatus_BOND_STATUS_UNSPECIFIED BondStatus = 0
	// UNBONDED defines a validator that is not bonded.
	BondStatus_BOND_STATUS_UNBONDED BondStatus = 1
	// UNBONDING defines a validator that is unbonding.
	BondStatus_BOND_STATUS_UNBONDING BondStatus = 2
	// BONDED defines a validator that is bonded.
	BondStatus_BOND_STATUS_BONDED BondStatus = 3
)

func (BondStatus) Descriptor

func (BondStatus) Descriptor() protoreflect.EnumDescriptor

func (BondStatus) Enum

func (x BondStatus) Enum() *BondStatus

func (BondStatus) EnumDescriptor deprecated

func (BondStatus) EnumDescriptor() ([]byte, []int)

Deprecated: Use BondStatus.Descriptor instead.

func (BondStatus) Number

func (x BondStatus) Number() protoreflect.EnumNumber

func (BondStatus) String

func (x BondStatus) String() string

func (BondStatus) Type

type Commission

type Commission struct {

	// commission_rates defines the initial commission rates to be used for creating a validator.
	CommissionRates *CommissionRates `protobuf:"bytes,1,opt,name=commission_rates,json=commissionRates,proto3" json:"commission_rates,omitempty"`
	// update_time is the last time the commission rate was changed.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

Commission defines commission parameters for a given validator.

func (*Commission) Descriptor deprecated

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

Deprecated: Use Commission.ProtoReflect.Descriptor instead.

func (*Commission) GetCommissionRates

func (x *Commission) GetCommissionRates() *CommissionRates

func (*Commission) GetUpdateTime

func (x *Commission) GetUpdateTime() *timestamppb.Timestamp

func (*Commission) ProtoMessage

func (*Commission) ProtoMessage()

func (*Commission) ProtoReflect

func (x *Commission) ProtoReflect() protoreflect.Message

func (*Commission) Reset

func (x *Commission) Reset()

func (*Commission) String

func (x *Commission) String() string

type CommissionRates

type CommissionRates struct {

	// rate is the commission rate charged to delegators, as a fraction.
	Rate string `protobuf:"bytes,1,opt,name=rate,proto3" json:"rate,omitempty"`
	// max_rate defines the maximum commission rate which validator can ever charge, as a fraction.
	MaxRate string `protobuf:"bytes,2,opt,name=max_rate,json=maxRate,proto3" json:"max_rate,omitempty"`
	// max_change_rate defines the maximum daily increase of the validator commission, as a fraction.
	MaxChangeRate string `protobuf:"bytes,3,opt,name=max_change_rate,json=maxChangeRate,proto3" json:"max_change_rate,omitempty"`
	// contains filtered or unexported fields
}

CommissionRates defines the initial commission rates to be used for creating a validator.

func (*CommissionRates) Descriptor deprecated

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

Deprecated: Use CommissionRates.ProtoReflect.Descriptor instead.

func (*CommissionRates) GetMaxChangeRate

func (x *CommissionRates) GetMaxChangeRate() string

func (*CommissionRates) GetMaxRate

func (x *CommissionRates) GetMaxRate() string

func (*CommissionRates) GetRate

func (x *CommissionRates) GetRate() string

func (*CommissionRates) ProtoMessage

func (*CommissionRates) ProtoMessage()

func (*CommissionRates) ProtoReflect

func (x *CommissionRates) ProtoReflect() protoreflect.Message

func (*CommissionRates) Reset

func (x *CommissionRates) Reset()

func (*CommissionRates) String

func (x *CommissionRates) String() string

type DVPair

type DVPair struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// contains filtered or unexported fields
}

DVPair is struct that just has a delegator-validator pair with no other data. It is intended to be used as a marshalable pointer. For example, a DVPair can be used to construct the key to getting an UnbondingDelegation from state.

func (*DVPair) Descriptor deprecated

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

Deprecated: Use DVPair.ProtoReflect.Descriptor instead.

func (*DVPair) GetDelegatorAddress

func (x *DVPair) GetDelegatorAddress() string

func (*DVPair) GetValidatorAddress

func (x *DVPair) GetValidatorAddress() string

func (*DVPair) ProtoMessage

func (*DVPair) ProtoMessage()

func (*DVPair) ProtoReflect

func (x *DVPair) ProtoReflect() protoreflect.Message

func (*DVPair) Reset

func (x *DVPair) Reset()

func (*DVPair) String

func (x *DVPair) String() string

type DVPairs

type DVPairs struct {
	Pairs []*DVPair `protobuf:"bytes,1,rep,name=pairs,proto3" json:"pairs,omitempty"`
	// contains filtered or unexported fields
}

DVPairs defines an array of DVPair objects.

func (*DVPairs) Descriptor deprecated

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

Deprecated: Use DVPairs.ProtoReflect.Descriptor instead.

func (*DVPairs) GetPairs

func (x *DVPairs) GetPairs() []*DVPair

func (*DVPairs) ProtoMessage

func (*DVPairs) ProtoMessage()

func (*DVPairs) ProtoReflect

func (x *DVPairs) ProtoReflect() protoreflect.Message

func (*DVPairs) Reset

func (x *DVPairs) Reset()

func (*DVPairs) String

func (x *DVPairs) String() string

type DVVTriplet

type DVVTriplet struct {
	DelegatorAddress    string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorSrcAddress string `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"`
	ValidatorDstAddress string `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"`
	// contains filtered or unexported fields
}

DVVTriplet is struct that just has a delegator-validator-validator triplet with no other data. It is intended to be used as a marshalable pointer. For example, a DVVTriplet can be used to construct the key to getting a Redelegation from state.

func (*DVVTriplet) Descriptor deprecated

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

Deprecated: Use DVVTriplet.ProtoReflect.Descriptor instead.

func (*DVVTriplet) GetDelegatorAddress

func (x *DVVTriplet) GetDelegatorAddress() string

func (*DVVTriplet) GetValidatorDstAddress

func (x *DVVTriplet) GetValidatorDstAddress() string

func (*DVVTriplet) GetValidatorSrcAddress

func (x *DVVTriplet) GetValidatorSrcAddress() string

func (*DVVTriplet) ProtoMessage

func (*DVVTriplet) ProtoMessage()

func (*DVVTriplet) ProtoReflect

func (x *DVVTriplet) ProtoReflect() protoreflect.Message

func (*DVVTriplet) Reset

func (x *DVVTriplet) Reset()

func (*DVVTriplet) String

func (x *DVVTriplet) String() string

type DVVTriplets

type DVVTriplets struct {
	Triplets []*DVVTriplet `protobuf:"bytes,1,rep,name=triplets,proto3" json:"triplets,omitempty"`
	// contains filtered or unexported fields
}

DVVTriplets defines an array of DVVTriplet objects.

func (*DVVTriplets) Descriptor deprecated

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

Deprecated: Use DVVTriplets.ProtoReflect.Descriptor instead.

func (*DVVTriplets) GetTriplets

func (x *DVVTriplets) GetTriplets() []*DVVTriplet

func (*DVVTriplets) ProtoMessage

func (*DVVTriplets) ProtoMessage()

func (*DVVTriplets) ProtoReflect

func (x *DVVTriplets) ProtoReflect() protoreflect.Message

func (*DVVTriplets) Reset

func (x *DVVTriplets) Reset()

func (*DVVTriplets) String

func (x *DVVTriplets) String() string

type Delegation

type Delegation struct {

	// delegator_address is the bech32-encoded address of the delegator.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_address is the bech32-encoded address of the validator.
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// shares define the delegation shares received.
	Shares string `protobuf:"bytes,3,opt,name=shares,proto3" json:"shares,omitempty"`
	// contains filtered or unexported fields
}

Delegation represents the bond with tokens held by an account. It is owned by one delegator, and is associated with the voting power of one validator.

func (*Delegation) Descriptor deprecated

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

Deprecated: Use Delegation.ProtoReflect.Descriptor instead.

func (*Delegation) GetDelegatorAddress

func (x *Delegation) GetDelegatorAddress() string

func (*Delegation) GetShares

func (x *Delegation) GetShares() string

func (*Delegation) GetValidatorAddress

func (x *Delegation) GetValidatorAddress() string

func (*Delegation) ProtoMessage

func (*Delegation) ProtoMessage()

func (*Delegation) ProtoReflect

func (x *Delegation) ProtoReflect() protoreflect.Message

func (*Delegation) Reset

func (x *Delegation) Reset()

func (*Delegation) String

func (x *Delegation) String() string

type DelegationResponse

type DelegationResponse struct {
	Delegation *Delegation   `protobuf:"bytes,1,opt,name=delegation,proto3" json:"delegation,omitempty"`
	Balance    *v1beta1.Coin `protobuf:"bytes,2,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

DelegationResponse is equivalent to Delegation except that it contains a balance in addition to shares which is more suitable for client responses.

func (*DelegationResponse) Descriptor deprecated

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

Deprecated: Use DelegationResponse.ProtoReflect.Descriptor instead.

func (*DelegationResponse) GetBalance

func (x *DelegationResponse) GetBalance() *v1beta1.Coin

func (*DelegationResponse) GetDelegation

func (x *DelegationResponse) GetDelegation() *Delegation

func (*DelegationResponse) ProtoMessage

func (*DelegationResponse) ProtoMessage()

func (*DelegationResponse) ProtoReflect

func (x *DelegationResponse) ProtoReflect() protoreflect.Message

func (*DelegationResponse) Reset

func (x *DelegationResponse) Reset()

func (*DelegationResponse) String

func (x *DelegationResponse) String() string

type Description

type Description struct {

	// moniker defines a human-readable name for the validator.
	Moniker string `protobuf:"bytes,1,opt,name=moniker,proto3" json:"moniker,omitempty"`
	// identity defines an optional identity signature (ex. UPort or Keybase).
	Identity string `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"`
	// website defines an optional website link.
	Website string `protobuf:"bytes,3,opt,name=website,proto3" json:"website,omitempty"`
	// security_contact defines an optional email for security contact.
	SecurityContact string `protobuf:"bytes,4,opt,name=security_contact,json=securityContact,proto3" json:"security_contact,omitempty"`
	// details define other optional details.
	Details string `protobuf:"bytes,5,opt,name=details,proto3" json:"details,omitempty"`
	// contains filtered or unexported fields
}

Description defines a validator description.

func (*Description) Descriptor deprecated

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

Deprecated: Use Description.ProtoReflect.Descriptor instead.

func (*Description) GetDetails

func (x *Description) GetDetails() string

func (*Description) GetIdentity

func (x *Description) GetIdentity() string

func (*Description) GetMoniker

func (x *Description) GetMoniker() string

func (*Description) GetSecurityContact

func (x *Description) GetSecurityContact() string

func (*Description) GetWebsite

func (x *Description) GetWebsite() string

func (*Description) ProtoMessage

func (*Description) ProtoMessage()

func (*Description) ProtoReflect

func (x *Description) ProtoReflect() protoreflect.Message

func (*Description) Reset

func (x *Description) Reset()

func (*Description) String

func (x *Description) String() string

type GenesisState

type GenesisState struct {

	// params defines all the parameters of related to deposit.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// last_total_power tracks the total amounts of bonded tokens recorded during
	// the previous end block.
	LastTotalPower []byte `protobuf:"bytes,2,opt,name=last_total_power,json=lastTotalPower,proto3" json:"last_total_power,omitempty"`
	// last_validator_powers is a special index that provides a historical list
	// of the last-block's bonded validators.
	LastValidatorPowers []*LastValidatorPower `protobuf:"bytes,3,rep,name=last_validator_powers,json=lastValidatorPowers,proto3" json:"last_validator_powers,omitempty"`
	// delegations defines the validator set at genesis.
	Validators []*Validator `protobuf:"bytes,4,rep,name=validators,proto3" json:"validators,omitempty"`
	// delegations defines the delegations active at genesis.
	Delegations []*Delegation `protobuf:"bytes,5,rep,name=delegations,proto3" json:"delegations,omitempty"`
	// unbonding_delegations defines the unbonding delegations active at genesis.
	UnbondingDelegations []*UnbondingDelegation `protobuf:"bytes,6,rep,name=unbonding_delegations,json=unbondingDelegations,proto3" json:"unbonding_delegations,omitempty"`
	// redelegations defines the redelegations active at genesis.
	Redelegations []*Redelegation `protobuf:"bytes,7,rep,name=redelegations,proto3" json:"redelegations,omitempty"`
	Exported      bool            `protobuf:"varint,8,opt,name=exported,proto3" json:"exported,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the staking module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetDelegations

func (x *GenesisState) GetDelegations() []*Delegation

func (*GenesisState) GetExported

func (x *GenesisState) GetExported() bool

func (*GenesisState) GetLastTotalPower

func (x *GenesisState) GetLastTotalPower() []byte

func (*GenesisState) GetLastValidatorPowers

func (x *GenesisState) GetLastValidatorPowers() []*LastValidatorPower

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetRedelegations

func (x *GenesisState) GetRedelegations() []*Redelegation

func (*GenesisState) GetUnbondingDelegations

func (x *GenesisState) GetUnbondingDelegations() []*UnbondingDelegation

func (*GenesisState) GetValidators

func (x *GenesisState) GetValidators() []*Validator

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) ProtoReflect

func (x *GenesisState) ProtoReflect() protoreflect.Message

func (*GenesisState) Reset

func (x *GenesisState) Reset()

func (*GenesisState) String

func (x *GenesisState) String() string

type HistoricalInfo

type HistoricalInfo struct {
	Header *types.Header `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
	Valset []*Validator  `protobuf:"bytes,2,rep,name=valset,proto3" json:"valset,omitempty"`
	// contains filtered or unexported fields
}

HistoricalInfo contains header and validator information for a given block. It is stored as part of staking module's state, which persists the `n` most recent HistoricalInfo (`n` is set by the staking module's `historical_entries` parameter).

func (*HistoricalInfo) Descriptor deprecated

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

Deprecated: Use HistoricalInfo.ProtoReflect.Descriptor instead.

func (*HistoricalInfo) GetHeader

func (x *HistoricalInfo) GetHeader() *types.Header

func (*HistoricalInfo) GetValset

func (x *HistoricalInfo) GetValset() []*Validator

func (*HistoricalInfo) ProtoMessage

func (*HistoricalInfo) ProtoMessage()

func (*HistoricalInfo) ProtoReflect

func (x *HistoricalInfo) ProtoReflect() protoreflect.Message

func (*HistoricalInfo) Reset

func (x *HistoricalInfo) Reset()

func (*HistoricalInfo) String

func (x *HistoricalInfo) String() string

type Infraction added in v0.6.4

type Infraction int32

Infraction indicates the infraction a validator commited.

const (
	// UNSPECIFIED defines an empty infraction.
	Infraction_INFRACTION_UNSPECIFIED Infraction = 0
	// DOUBLE_SIGN defines a validator that double-signs a block.
	Infraction_INFRACTION_DOUBLE_SIGN Infraction = 1
	// DOWNTIME defines a validator that missed signing too many blocks.
	Infraction_INFRACTION_DOWNTIME Infraction = 2
)

func (Infraction) Descriptor added in v0.6.4

func (Infraction) Descriptor() protoreflect.EnumDescriptor

func (Infraction) Enum added in v0.6.4

func (x Infraction) Enum() *Infraction

func (Infraction) EnumDescriptor deprecated added in v0.6.4

func (Infraction) EnumDescriptor() ([]byte, []int)

Deprecated: Use Infraction.Descriptor instead.

func (Infraction) Number added in v0.6.4

func (x Infraction) Number() protoreflect.EnumNumber

func (Infraction) String added in v0.6.4

func (x Infraction) String() string

func (Infraction) Type added in v0.6.4

type LastValidatorPower

type LastValidatorPower struct {

	// address is the address of the validator.
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty"`
	// power defines the power of the validator.
	Power int64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
	// contains filtered or unexported fields
}

LastValidatorPower required for validator set update logic.

func (*LastValidatorPower) Descriptor deprecated

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

Deprecated: Use LastValidatorPower.ProtoReflect.Descriptor instead.

func (*LastValidatorPower) GetAddress

func (x *LastValidatorPower) GetAddress() string

func (*LastValidatorPower) GetPower

func (x *LastValidatorPower) GetPower() int64

func (*LastValidatorPower) ProtoMessage

func (*LastValidatorPower) ProtoMessage()

func (*LastValidatorPower) ProtoReflect

func (x *LastValidatorPower) ProtoReflect() protoreflect.Message

func (*LastValidatorPower) Reset

func (x *LastValidatorPower) Reset()

func (*LastValidatorPower) String

func (x *LastValidatorPower) String() string

type MsgBeginRedelegate

type MsgBeginRedelegate struct {
	DelegatorAddress    string        `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorSrcAddress string        `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"`
	ValidatorDstAddress string        `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"`
	Amount              *v1beta1.Coin `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MsgBeginRedelegate defines a SDK message for performing a redelegation of coins from a delegator and source validator to a destination validator.

func (*MsgBeginRedelegate) Descriptor deprecated

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

Deprecated: Use MsgBeginRedelegate.ProtoReflect.Descriptor instead.

func (*MsgBeginRedelegate) GetAmount

func (x *MsgBeginRedelegate) GetAmount() *v1beta1.Coin

func (*MsgBeginRedelegate) GetDelegatorAddress

func (x *MsgBeginRedelegate) GetDelegatorAddress() string

func (*MsgBeginRedelegate) GetValidatorDstAddress

func (x *MsgBeginRedelegate) GetValidatorDstAddress() string

func (*MsgBeginRedelegate) GetValidatorSrcAddress

func (x *MsgBeginRedelegate) GetValidatorSrcAddress() string

func (*MsgBeginRedelegate) ProtoMessage

func (*MsgBeginRedelegate) ProtoMessage()

func (*MsgBeginRedelegate) ProtoReflect

func (x *MsgBeginRedelegate) ProtoReflect() protoreflect.Message

func (*MsgBeginRedelegate) Reset

func (x *MsgBeginRedelegate) Reset()

func (*MsgBeginRedelegate) String

func (x *MsgBeginRedelegate) String() string

type MsgBeginRedelegateResponse

type MsgBeginRedelegateResponse struct {
	CompletionTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3" json:"completion_time,omitempty"`
	// contains filtered or unexported fields
}

MsgBeginRedelegateResponse defines the Msg/BeginRedelegate response type.

func (*MsgBeginRedelegateResponse) Descriptor deprecated

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

Deprecated: Use MsgBeginRedelegateResponse.ProtoReflect.Descriptor instead.

func (*MsgBeginRedelegateResponse) GetCompletionTime

func (x *MsgBeginRedelegateResponse) GetCompletionTime() *timestamppb.Timestamp

func (*MsgBeginRedelegateResponse) ProtoMessage

func (*MsgBeginRedelegateResponse) ProtoMessage()

func (*MsgBeginRedelegateResponse) ProtoReflect

func (*MsgBeginRedelegateResponse) Reset

func (x *MsgBeginRedelegateResponse) Reset()

func (*MsgBeginRedelegateResponse) String

func (x *MsgBeginRedelegateResponse) String() string

type MsgCancelUnbondingDelegation

type MsgCancelUnbondingDelegation struct {
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// amount is always less than or equal to unbonding delegation entry balance
	Amount *v1beta1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// creation_height is the height which the unbonding took place.
	CreationHeight int64 `protobuf:"varint,4,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
	// contains filtered or unexported fields
}

MsgCancelUnbondingDelegation defines the SDK message for performing a cancel unbonding delegation for delegator

Since: cosmos-sdk 0.46

func (*MsgCancelUnbondingDelegation) Descriptor deprecated

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

Deprecated: Use MsgCancelUnbondingDelegation.ProtoReflect.Descriptor instead.

func (*MsgCancelUnbondingDelegation) GetAmount

func (x *MsgCancelUnbondingDelegation) GetAmount() *v1beta1.Coin

func (*MsgCancelUnbondingDelegation) GetCreationHeight

func (x *MsgCancelUnbondingDelegation) GetCreationHeight() int64

func (*MsgCancelUnbondingDelegation) GetDelegatorAddress

func (x *MsgCancelUnbondingDelegation) GetDelegatorAddress() string

func (*MsgCancelUnbondingDelegation) GetValidatorAddress

func (x *MsgCancelUnbondingDelegation) GetValidatorAddress() string

func (*MsgCancelUnbondingDelegation) ProtoMessage

func (*MsgCancelUnbondingDelegation) ProtoMessage()

func (*MsgCancelUnbondingDelegation) ProtoReflect

func (*MsgCancelUnbondingDelegation) Reset

func (x *MsgCancelUnbondingDelegation) Reset()

func (*MsgCancelUnbondingDelegation) String

type MsgCancelUnbondingDelegationResponse

type MsgCancelUnbondingDelegationResponse struct {
	// contains filtered or unexported fields
}

MsgCancelUnbondingDelegationResponse

Since: cosmos-sdk 0.46

func (*MsgCancelUnbondingDelegationResponse) Descriptor deprecated

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

Deprecated: Use MsgCancelUnbondingDelegationResponse.ProtoReflect.Descriptor instead.

func (*MsgCancelUnbondingDelegationResponse) ProtoMessage

func (*MsgCancelUnbondingDelegationResponse) ProtoMessage()

func (*MsgCancelUnbondingDelegationResponse) ProtoReflect

func (*MsgCancelUnbondingDelegationResponse) Reset

func (*MsgCancelUnbondingDelegationResponse) String

type MsgClient

type MsgClient interface {
	// CreateValidator defines a method for creating a new validator.
	CreateValidator(ctx context.Context, in *MsgCreateValidator, opts ...grpc.CallOption) (*MsgCreateValidatorResponse, error)
	// EditValidator defines a method for editing an existing validator.
	EditValidator(ctx context.Context, in *MsgEditValidator, opts ...grpc.CallOption) (*MsgEditValidatorResponse, error)
	// Delegate defines a method for performing a delegation of coins
	// from a delegator to a validator.
	Delegate(ctx context.Context, in *MsgDelegate, opts ...grpc.CallOption) (*MsgDelegateResponse, error)
	// BeginRedelegate defines a method for performing a redelegation
	// of coins from a delegator and source validator to a destination validator.
	BeginRedelegate(ctx context.Context, in *MsgBeginRedelegate, opts ...grpc.CallOption) (*MsgBeginRedelegateResponse, error)
	// Undelegate defines a method for performing an undelegation from a
	// delegate and a validator.
	Undelegate(ctx context.Context, in *MsgUndelegate, opts ...grpc.CallOption) (*MsgUndelegateResponse, error)
	// CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation
	// and delegate back to previous validator.
	//
	// Since: cosmos-sdk 0.46
	CancelUnbondingDelegation(ctx context.Context, in *MsgCancelUnbondingDelegation, opts ...grpc.CallOption) (*MsgCancelUnbondingDelegationResponse, error)
	// UpdateParams defines an operation for updating the x/staking module
	// parameters.
	// Since: cosmos-sdk 0.47
	UpdateParams(ctx context.Context, in *MsgUpdateParams, opts ...grpc.CallOption) (*MsgUpdateParamsResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgCreateValidator

type MsgCreateValidator struct {
	Description       *Description     `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	Commission        *CommissionRates `protobuf:"bytes,2,opt,name=commission,proto3" json:"commission,omitempty"`
	MinSelfDelegation string           `protobuf:"bytes,3,opt,name=min_self_delegation,json=minSelfDelegation,proto3" json:"min_self_delegation,omitempty"`
	DelegatorAddress  string           `protobuf:"bytes,4,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress  string           `protobuf:"bytes,5,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Pubkey            *anypb.Any       `protobuf:"bytes,6,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Value             *v1beta1.Coin    `protobuf:"bytes,7,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

MsgCreateValidator defines a SDK message for creating a new validator.

func (*MsgCreateValidator) Descriptor deprecated

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

Deprecated: Use MsgCreateValidator.ProtoReflect.Descriptor instead.

func (*MsgCreateValidator) GetCommission

func (x *MsgCreateValidator) GetCommission() *CommissionRates

func (*MsgCreateValidator) GetDelegatorAddress

func (x *MsgCreateValidator) GetDelegatorAddress() string

func (*MsgCreateValidator) GetDescription

func (x *MsgCreateValidator) GetDescription() *Description

func (*MsgCreateValidator) GetMinSelfDelegation

func (x *MsgCreateValidator) GetMinSelfDelegation() string

func (*MsgCreateValidator) GetPubkey

func (x *MsgCreateValidator) GetPubkey() *anypb.Any

func (*MsgCreateValidator) GetValidatorAddress

func (x *MsgCreateValidator) GetValidatorAddress() string

func (*MsgCreateValidator) GetValue

func (x *MsgCreateValidator) GetValue() *v1beta1.Coin

func (*MsgCreateValidator) ProtoMessage

func (*MsgCreateValidator) ProtoMessage()

func (*MsgCreateValidator) ProtoReflect

func (x *MsgCreateValidator) ProtoReflect() protoreflect.Message

func (*MsgCreateValidator) Reset

func (x *MsgCreateValidator) Reset()

func (*MsgCreateValidator) String

func (x *MsgCreateValidator) String() string

type MsgCreateValidatorResponse

type MsgCreateValidatorResponse struct {
	// contains filtered or unexported fields
}

MsgCreateValidatorResponse defines the Msg/CreateValidator response type.

func (*MsgCreateValidatorResponse) Descriptor deprecated

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

Deprecated: Use MsgCreateValidatorResponse.ProtoReflect.Descriptor instead.

func (*MsgCreateValidatorResponse) ProtoMessage

func (*MsgCreateValidatorResponse) ProtoMessage()

func (*MsgCreateValidatorResponse) ProtoReflect

func (*MsgCreateValidatorResponse) Reset

func (x *MsgCreateValidatorResponse) Reset()

func (*MsgCreateValidatorResponse) String

func (x *MsgCreateValidatorResponse) String() string

type MsgDelegate

type MsgDelegate struct {
	DelegatorAddress string        `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress string        `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Amount           *v1beta1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MsgDelegate defines a SDK message for performing a delegation of coins from a delegator to a validator.

func (*MsgDelegate) Descriptor deprecated

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

Deprecated: Use MsgDelegate.ProtoReflect.Descriptor instead.

func (*MsgDelegate) GetAmount

func (x *MsgDelegate) GetAmount() *v1beta1.Coin

func (*MsgDelegate) GetDelegatorAddress

func (x *MsgDelegate) GetDelegatorAddress() string

func (*MsgDelegate) GetValidatorAddress

func (x *MsgDelegate) GetValidatorAddress() string

func (*MsgDelegate) ProtoMessage

func (*MsgDelegate) ProtoMessage()

func (*MsgDelegate) ProtoReflect

func (x *MsgDelegate) ProtoReflect() protoreflect.Message

func (*MsgDelegate) Reset

func (x *MsgDelegate) Reset()

func (*MsgDelegate) String

func (x *MsgDelegate) String() string

type MsgDelegateResponse

type MsgDelegateResponse struct {
	// contains filtered or unexported fields
}

MsgDelegateResponse defines the Msg/Delegate response type.

func (*MsgDelegateResponse) Descriptor deprecated

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

Deprecated: Use MsgDelegateResponse.ProtoReflect.Descriptor instead.

func (*MsgDelegateResponse) ProtoMessage

func (*MsgDelegateResponse) ProtoMessage()

func (*MsgDelegateResponse) ProtoReflect

func (x *MsgDelegateResponse) ProtoReflect() protoreflect.Message

func (*MsgDelegateResponse) Reset

func (x *MsgDelegateResponse) Reset()

func (*MsgDelegateResponse) String

func (x *MsgDelegateResponse) String() string

type MsgEditValidator

type MsgEditValidator struct {
	Description      *Description `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"`
	ValidatorAddress string       `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// We pass a reference to the new commission rate and min self delegation as
	// it's not mandatory to update. If not updated, the deserialized rate will be
	// zero with no way to distinguish if an update was intended.
	// REF: #2373
	CommissionRate    string `protobuf:"bytes,3,opt,name=commission_rate,json=commissionRate,proto3" json:"commission_rate,omitempty"`
	MinSelfDelegation string `protobuf:"bytes,4,opt,name=min_self_delegation,json=minSelfDelegation,proto3" json:"min_self_delegation,omitempty"`
	// contains filtered or unexported fields
}

MsgEditValidator defines a SDK message for editing an existing validator.

func (*MsgEditValidator) Descriptor deprecated

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

Deprecated: Use MsgEditValidator.ProtoReflect.Descriptor instead.

func (*MsgEditValidator) GetCommissionRate

func (x *MsgEditValidator) GetCommissionRate() string

func (*MsgEditValidator) GetDescription

func (x *MsgEditValidator) GetDescription() *Description

func (*MsgEditValidator) GetMinSelfDelegation

func (x *MsgEditValidator) GetMinSelfDelegation() string

func (*MsgEditValidator) GetValidatorAddress

func (x *MsgEditValidator) GetValidatorAddress() string

func (*MsgEditValidator) ProtoMessage

func (*MsgEditValidator) ProtoMessage()

func (*MsgEditValidator) ProtoReflect

func (x *MsgEditValidator) ProtoReflect() protoreflect.Message

func (*MsgEditValidator) Reset

func (x *MsgEditValidator) Reset()

func (*MsgEditValidator) String

func (x *MsgEditValidator) String() string

type MsgEditValidatorResponse

type MsgEditValidatorResponse struct {
	// contains filtered or unexported fields
}

MsgEditValidatorResponse defines the Msg/EditValidator response type.

func (*MsgEditValidatorResponse) Descriptor deprecated

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

Deprecated: Use MsgEditValidatorResponse.ProtoReflect.Descriptor instead.

func (*MsgEditValidatorResponse) ProtoMessage

func (*MsgEditValidatorResponse) ProtoMessage()

func (*MsgEditValidatorResponse) ProtoReflect

func (x *MsgEditValidatorResponse) ProtoReflect() protoreflect.Message

func (*MsgEditValidatorResponse) Reset

func (x *MsgEditValidatorResponse) Reset()

func (*MsgEditValidatorResponse) String

func (x *MsgEditValidatorResponse) String() string

type MsgServer

type MsgServer interface {
	// CreateValidator defines a method for creating a new validator.
	CreateValidator(context.Context, *MsgCreateValidator) (*MsgCreateValidatorResponse, error)
	// EditValidator defines a method for editing an existing validator.
	EditValidator(context.Context, *MsgEditValidator) (*MsgEditValidatorResponse, error)
	// Delegate defines a method for performing a delegation of coins
	// from a delegator to a validator.
	Delegate(context.Context, *MsgDelegate) (*MsgDelegateResponse, error)
	// BeginRedelegate defines a method for performing a redelegation
	// of coins from a delegator and source validator to a destination validator.
	BeginRedelegate(context.Context, *MsgBeginRedelegate) (*MsgBeginRedelegateResponse, error)
	// Undelegate defines a method for performing an undelegation from a
	// delegate and a validator.
	Undelegate(context.Context, *MsgUndelegate) (*MsgUndelegateResponse, error)
	// CancelUnbondingDelegation defines a method for performing canceling the unbonding delegation
	// and delegate back to previous validator.
	//
	// Since: cosmos-sdk 0.46
	CancelUnbondingDelegation(context.Context, *MsgCancelUnbondingDelegation) (*MsgCancelUnbondingDelegationResponse, error)
	// UpdateParams defines an operation for updating the x/staking module
	// parameters.
	// Since: cosmos-sdk 0.47
	UpdateParams(context.Context, *MsgUpdateParams) (*MsgUpdateParamsResponse, error)
	// contains filtered or unexported methods
}

MsgServer is the server API for Msg service. All implementations must embed UnimplementedMsgServer for forward compatibility

type MsgUndelegate

type MsgUndelegate struct {
	DelegatorAddress string        `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	ValidatorAddress string        `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	Amount           *v1beta1.Coin `protobuf:"bytes,3,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

MsgUndelegate defines a SDK message for performing an undelegation from a delegate and a validator.

func (*MsgUndelegate) Descriptor deprecated

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

Deprecated: Use MsgUndelegate.ProtoReflect.Descriptor instead.

func (*MsgUndelegate) GetAmount

func (x *MsgUndelegate) GetAmount() *v1beta1.Coin

func (*MsgUndelegate) GetDelegatorAddress

func (x *MsgUndelegate) GetDelegatorAddress() string

func (*MsgUndelegate) GetValidatorAddress

func (x *MsgUndelegate) GetValidatorAddress() string

func (*MsgUndelegate) ProtoMessage

func (*MsgUndelegate) ProtoMessage()

func (*MsgUndelegate) ProtoReflect

func (x *MsgUndelegate) ProtoReflect() protoreflect.Message

func (*MsgUndelegate) Reset

func (x *MsgUndelegate) Reset()

func (*MsgUndelegate) String

func (x *MsgUndelegate) String() string

type MsgUndelegateResponse

type MsgUndelegateResponse struct {
	CompletionTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=completion_time,json=completionTime,proto3" json:"completion_time,omitempty"`
	// contains filtered or unexported fields
}

MsgUndelegateResponse defines the Msg/Undelegate response type.

func (*MsgUndelegateResponse) Descriptor deprecated

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

Deprecated: Use MsgUndelegateResponse.ProtoReflect.Descriptor instead.

func (*MsgUndelegateResponse) GetCompletionTime

func (x *MsgUndelegateResponse) GetCompletionTime() *timestamppb.Timestamp

func (*MsgUndelegateResponse) ProtoMessage

func (*MsgUndelegateResponse) ProtoMessage()

func (*MsgUndelegateResponse) ProtoReflect

func (x *MsgUndelegateResponse) ProtoReflect() protoreflect.Message

func (*MsgUndelegateResponse) Reset

func (x *MsgUndelegateResponse) Reset()

func (*MsgUndelegateResponse) String

func (x *MsgUndelegateResponse) String() string

type MsgUpdateParams

type MsgUpdateParams struct {

	// authority is the address of the governance account.
	Authority string `protobuf:"bytes,1,opt,name=authority,proto3" json:"authority,omitempty"`
	// params defines the x/staking parameters to update.
	//
	// NOTE: All parameters must be supplied.
	Params *Params `protobuf:"bytes,2,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

MsgUpdateParams is the Msg/UpdateParams request type.

Since: cosmos-sdk 0.47

func (*MsgUpdateParams) Descriptor deprecated

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

Deprecated: Use MsgUpdateParams.ProtoReflect.Descriptor instead.

func (*MsgUpdateParams) GetAuthority

func (x *MsgUpdateParams) GetAuthority() string

func (*MsgUpdateParams) GetParams

func (x *MsgUpdateParams) GetParams() *Params

func (*MsgUpdateParams) ProtoMessage

func (*MsgUpdateParams) ProtoMessage()

func (*MsgUpdateParams) ProtoReflect

func (x *MsgUpdateParams) ProtoReflect() protoreflect.Message

func (*MsgUpdateParams) Reset

func (x *MsgUpdateParams) Reset()

func (*MsgUpdateParams) String

func (x *MsgUpdateParams) String() string

type MsgUpdateParamsResponse

type MsgUpdateParamsResponse struct {
	// contains filtered or unexported fields
}

MsgUpdateParamsResponse defines the response structure for executing a MsgUpdateParams message.

Since: cosmos-sdk 0.47

func (*MsgUpdateParamsResponse) Descriptor deprecated

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

Deprecated: Use MsgUpdateParamsResponse.ProtoReflect.Descriptor instead.

func (*MsgUpdateParamsResponse) ProtoMessage

func (*MsgUpdateParamsResponse) ProtoMessage()

func (*MsgUpdateParamsResponse) ProtoReflect

func (x *MsgUpdateParamsResponse) ProtoReflect() protoreflect.Message

func (*MsgUpdateParamsResponse) Reset

func (x *MsgUpdateParamsResponse) Reset()

func (*MsgUpdateParamsResponse) String

func (x *MsgUpdateParamsResponse) String() string

type Params

type Params struct {

	// unbonding_time is the time duration of unbonding.
	UnbondingTime *durationpb.Duration `protobuf:"bytes,1,opt,name=unbonding_time,json=unbondingTime,proto3" json:"unbonding_time,omitempty"`
	// max_validators is the maximum number of validators.
	MaxValidators uint32 `protobuf:"varint,2,opt,name=max_validators,json=maxValidators,proto3" json:"max_validators,omitempty"`
	// max_entries is the max entries for either unbonding delegation or redelegation (per pair/trio).
	MaxEntries uint32 `protobuf:"varint,3,opt,name=max_entries,json=maxEntries,proto3" json:"max_entries,omitempty"`
	// historical_entries is the number of historical entries to persist.
	HistoricalEntries uint32 `protobuf:"varint,4,opt,name=historical_entries,json=historicalEntries,proto3" json:"historical_entries,omitempty"`
	// bond_denom defines the bondable coin denomination.
	BondDenom string `protobuf:"bytes,5,opt,name=bond_denom,json=bondDenom,proto3" json:"bond_denom,omitempty"`
	// min_commission_rate is the chain-wide minimum commission rate that a validator can charge their delegators
	MinCommissionRate string `protobuf:"bytes,6,opt,name=min_commission_rate,json=minCommissionRate,proto3" json:"min_commission_rate,omitempty"`
	// contains filtered or unexported fields
}

Params defines the parameters for the x/staking module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetBondDenom

func (x *Params) GetBondDenom() string

func (*Params) GetHistoricalEntries

func (x *Params) GetHistoricalEntries() uint32

func (*Params) GetMaxEntries

func (x *Params) GetMaxEntries() uint32

func (*Params) GetMaxValidators

func (x *Params) GetMaxValidators() uint32

func (*Params) GetMinCommissionRate

func (x *Params) GetMinCommissionRate() string

func (*Params) GetUnbondingTime

func (x *Params) GetUnbondingTime() *durationpb.Duration

func (*Params) ProtoMessage

func (*Params) ProtoMessage()

func (*Params) ProtoReflect

func (x *Params) ProtoReflect() protoreflect.Message

func (*Params) Reset

func (x *Params) Reset()

func (*Params) String

func (x *Params) String() string

type Pool

type Pool struct {
	NotBondedTokens string `protobuf:"bytes,1,opt,name=not_bonded_tokens,json=notBondedTokens,proto3" json:"not_bonded_tokens,omitempty"`
	BondedTokens    string `protobuf:"bytes,2,opt,name=bonded_tokens,json=bondedTokens,proto3" json:"bonded_tokens,omitempty"`
	// contains filtered or unexported fields
}

Pool is used for tracking bonded and not-bonded token supply of the bond denomination.

func (*Pool) Descriptor deprecated

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

Deprecated: Use Pool.ProtoReflect.Descriptor instead.

func (*Pool) GetBondedTokens

func (x *Pool) GetBondedTokens() string

func (*Pool) GetNotBondedTokens

func (x *Pool) GetNotBondedTokens() string

func (*Pool) ProtoMessage

func (*Pool) ProtoMessage()

func (*Pool) ProtoReflect

func (x *Pool) ProtoReflect() protoreflect.Message

func (*Pool) Reset

func (x *Pool) Reset()

func (*Pool) String

func (x *Pool) String() string

type QueryClient

type QueryClient interface {
	// Validators queries all validators that match the given status.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	Validators(ctx context.Context, in *QueryValidatorsRequest, opts ...grpc.CallOption) (*QueryValidatorsResponse, error)
	// Validator queries validator info for given validator address.
	Validator(ctx context.Context, in *QueryValidatorRequest, opts ...grpc.CallOption) (*QueryValidatorResponse, error)
	// ValidatorDelegations queries delegate info for given validator.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	ValidatorDelegations(ctx context.Context, in *QueryValidatorDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorDelegationsResponse, error)
	// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	ValidatorUnbondingDelegations(ctx context.Context, in *QueryValidatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryValidatorUnbondingDelegationsResponse, error)
	// Delegation queries delegate info for given validator delegator pair.
	Delegation(ctx context.Context, in *QueryDelegationRequest, opts ...grpc.CallOption) (*QueryDelegationResponse, error)
	// UnbondingDelegation queries unbonding info for given validator delegator
	// pair.
	UnbondingDelegation(ctx context.Context, in *QueryUnbondingDelegationRequest, opts ...grpc.CallOption) (*QueryUnbondingDelegationResponse, error)
	// DelegatorDelegations queries all delegations of a given delegator address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	DelegatorDelegations(ctx context.Context, in *QueryDelegatorDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorDelegationsResponse, error)
	// DelegatorUnbondingDelegations queries all unbonding delegations of a given
	// delegator address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	DelegatorUnbondingDelegations(ctx context.Context, in *QueryDelegatorUnbondingDelegationsRequest, opts ...grpc.CallOption) (*QueryDelegatorUnbondingDelegationsResponse, error)
	// Redelegations queries redelegations of given address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	Redelegations(ctx context.Context, in *QueryRedelegationsRequest, opts ...grpc.CallOption) (*QueryRedelegationsResponse, error)
	// DelegatorValidators queries all validators info for given delegator
	// address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	DelegatorValidators(ctx context.Context, in *QueryDelegatorValidatorsRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorsResponse, error)
	// DelegatorValidator queries validator info for given delegator validator
	// pair.
	DelegatorValidator(ctx context.Context, in *QueryDelegatorValidatorRequest, opts ...grpc.CallOption) (*QueryDelegatorValidatorResponse, error)
	// HistoricalInfo queries the historical info for given height.
	HistoricalInfo(ctx context.Context, in *QueryHistoricalInfoRequest, opts ...grpc.CallOption) (*QueryHistoricalInfoResponse, error)
	// Pool queries the pool info.
	Pool(ctx context.Context, in *QueryPoolRequest, opts ...grpc.CallOption) (*QueryPoolResponse, error)
	// Parameters queries the staking parameters.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
}

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

type QueryDelegationRequest

type QueryDelegationRequest struct {

	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	// contains filtered or unexported fields
}

QueryDelegationRequest is request type for the Query/Delegation RPC method.

func (*QueryDelegationRequest) Descriptor deprecated

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

Deprecated: Use QueryDelegationRequest.ProtoReflect.Descriptor instead.

func (*QueryDelegationRequest) GetDelegatorAddr

func (x *QueryDelegationRequest) GetDelegatorAddr() string

func (*QueryDelegationRequest) GetValidatorAddr

func (x *QueryDelegationRequest) GetValidatorAddr() string

func (*QueryDelegationRequest) ProtoMessage

func (*QueryDelegationRequest) ProtoMessage()

func (*QueryDelegationRequest) ProtoReflect

func (x *QueryDelegationRequest) ProtoReflect() protoreflect.Message

func (*QueryDelegationRequest) Reset

func (x *QueryDelegationRequest) Reset()

func (*QueryDelegationRequest) String

func (x *QueryDelegationRequest) String() string

type QueryDelegationResponse

type QueryDelegationResponse struct {

	// delegation_responses defines the delegation info of a delegation.
	DelegationResponse *DelegationResponse `protobuf:"bytes,1,opt,name=delegation_response,json=delegationResponse,proto3" json:"delegation_response,omitempty"`
	// contains filtered or unexported fields
}

QueryDelegationResponse is response type for the Query/Delegation RPC method.

func (*QueryDelegationResponse) Descriptor deprecated

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

Deprecated: Use QueryDelegationResponse.ProtoReflect.Descriptor instead.

func (*QueryDelegationResponse) GetDelegationResponse

func (x *QueryDelegationResponse) GetDelegationResponse() *DelegationResponse

func (*QueryDelegationResponse) ProtoMessage

func (*QueryDelegationResponse) ProtoMessage()

func (*QueryDelegationResponse) ProtoReflect

func (x *QueryDelegationResponse) ProtoReflect() protoreflect.Message

func (*QueryDelegationResponse) Reset

func (x *QueryDelegationResponse) Reset()

func (*QueryDelegationResponse) String

func (x *QueryDelegationResponse) String() string

type QueryDelegatorDelegationsRequest

type QueryDelegatorDelegationsRequest struct {

	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryDelegatorDelegationsRequest is request type for the Query/DelegatorDelegations RPC method.

func (*QueryDelegatorDelegationsRequest) Descriptor deprecated

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

Deprecated: Use QueryDelegatorDelegationsRequest.ProtoReflect.Descriptor instead.

func (*QueryDelegatorDelegationsRequest) GetDelegatorAddr

func (x *QueryDelegatorDelegationsRequest) GetDelegatorAddr() string

func (*QueryDelegatorDelegationsRequest) GetPagination

func (*QueryDelegatorDelegationsRequest) ProtoMessage

func (*QueryDelegatorDelegationsRequest) ProtoMessage()

func (*QueryDelegatorDelegationsRequest) ProtoReflect

func (*QueryDelegatorDelegationsRequest) Reset

func (*QueryDelegatorDelegationsRequest) String

type QueryDelegatorDelegationsResponse

type QueryDelegatorDelegationsResponse struct {

	// delegation_responses defines all the delegations' info of a delegator.
	DelegationResponses []*DelegationResponse `protobuf:"bytes,1,rep,name=delegation_responses,json=delegationResponses,proto3" json:"delegation_responses,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryDelegatorDelegationsResponse is response type for the Query/DelegatorDelegations RPC method.

func (*QueryDelegatorDelegationsResponse) Descriptor deprecated

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

Deprecated: Use QueryDelegatorDelegationsResponse.ProtoReflect.Descriptor instead.

func (*QueryDelegatorDelegationsResponse) GetDelegationResponses

func (x *QueryDelegatorDelegationsResponse) GetDelegationResponses() []*DelegationResponse

func (*QueryDelegatorDelegationsResponse) GetPagination

func (*QueryDelegatorDelegationsResponse) ProtoMessage

func (*QueryDelegatorDelegationsResponse) ProtoMessage()

func (*QueryDelegatorDelegationsResponse) ProtoReflect

func (*QueryDelegatorDelegationsResponse) Reset

func (*QueryDelegatorDelegationsResponse) String

type QueryDelegatorUnbondingDelegationsRequest

type QueryDelegatorUnbondingDelegationsRequest struct {

	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryDelegatorUnbondingDelegationsRequest is request type for the Query/DelegatorUnbondingDelegations RPC method.

func (*QueryDelegatorUnbondingDelegationsRequest) Descriptor deprecated

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

Deprecated: Use QueryDelegatorUnbondingDelegationsRequest.ProtoReflect.Descriptor instead.

func (*QueryDelegatorUnbondingDelegationsRequest) GetDelegatorAddr

func (x *QueryDelegatorUnbondingDelegationsRequest) GetDelegatorAddr() string

func (*QueryDelegatorUnbondingDelegationsRequest) GetPagination

func (*QueryDelegatorUnbondingDelegationsRequest) ProtoMessage

func (*QueryDelegatorUnbondingDelegationsRequest) ProtoReflect

func (*QueryDelegatorUnbondingDelegationsRequest) Reset

func (*QueryDelegatorUnbondingDelegationsRequest) String

type QueryDelegatorUnbondingDelegationsResponse

type QueryDelegatorUnbondingDelegationsResponse struct {
	UnbondingResponses []*UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_responses,json=unbondingResponses,proto3" json:"unbonding_responses,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryUnbondingDelegatorDelegationsResponse is response type for the Query/UnbondingDelegatorDelegations RPC method.

func (*QueryDelegatorUnbondingDelegationsResponse) Descriptor deprecated

Deprecated: Use QueryDelegatorUnbondingDelegationsResponse.ProtoReflect.Descriptor instead.

func (*QueryDelegatorUnbondingDelegationsResponse) GetPagination

func (*QueryDelegatorUnbondingDelegationsResponse) GetUnbondingResponses

func (*QueryDelegatorUnbondingDelegationsResponse) ProtoMessage

func (*QueryDelegatorUnbondingDelegationsResponse) ProtoReflect

func (*QueryDelegatorUnbondingDelegationsResponse) Reset

func (*QueryDelegatorUnbondingDelegationsResponse) String

type QueryDelegatorValidatorRequest

type QueryDelegatorValidatorRequest struct {

	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	// contains filtered or unexported fields
}

QueryDelegatorValidatorRequest is request type for the Query/DelegatorValidator RPC method.

func (*QueryDelegatorValidatorRequest) Descriptor deprecated

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

Deprecated: Use QueryDelegatorValidatorRequest.ProtoReflect.Descriptor instead.

func (*QueryDelegatorValidatorRequest) GetDelegatorAddr

func (x *QueryDelegatorValidatorRequest) GetDelegatorAddr() string

func (*QueryDelegatorValidatorRequest) GetValidatorAddr

func (x *QueryDelegatorValidatorRequest) GetValidatorAddr() string

func (*QueryDelegatorValidatorRequest) ProtoMessage

func (*QueryDelegatorValidatorRequest) ProtoMessage()

func (*QueryDelegatorValidatorRequest) ProtoReflect

func (*QueryDelegatorValidatorRequest) Reset

func (x *QueryDelegatorValidatorRequest) Reset()

func (*QueryDelegatorValidatorRequest) String

type QueryDelegatorValidatorResponse

type QueryDelegatorValidatorResponse struct {

	// validator defines the validator info.
	Validator *Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// contains filtered or unexported fields
}

QueryDelegatorValidatorResponse response type for the Query/DelegatorValidator RPC method.

func (*QueryDelegatorValidatorResponse) Descriptor deprecated

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

Deprecated: Use QueryDelegatorValidatorResponse.ProtoReflect.Descriptor instead.

func (*QueryDelegatorValidatorResponse) GetValidator

func (x *QueryDelegatorValidatorResponse) GetValidator() *Validator

func (*QueryDelegatorValidatorResponse) ProtoMessage

func (*QueryDelegatorValidatorResponse) ProtoMessage()

func (*QueryDelegatorValidatorResponse) ProtoReflect

func (*QueryDelegatorValidatorResponse) Reset

func (*QueryDelegatorValidatorResponse) String

type QueryDelegatorValidatorsRequest

type QueryDelegatorValidatorsRequest struct {

	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryDelegatorValidatorsRequest is request type for the Query/DelegatorValidators RPC method.

func (*QueryDelegatorValidatorsRequest) Descriptor deprecated

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

Deprecated: Use QueryDelegatorValidatorsRequest.ProtoReflect.Descriptor instead.

func (*QueryDelegatorValidatorsRequest) GetDelegatorAddr

func (x *QueryDelegatorValidatorsRequest) GetDelegatorAddr() string

func (*QueryDelegatorValidatorsRequest) GetPagination

func (*QueryDelegatorValidatorsRequest) ProtoMessage

func (*QueryDelegatorValidatorsRequest) ProtoMessage()

func (*QueryDelegatorValidatorsRequest) ProtoReflect

func (*QueryDelegatorValidatorsRequest) Reset

func (*QueryDelegatorValidatorsRequest) String

type QueryDelegatorValidatorsResponse

type QueryDelegatorValidatorsResponse struct {

	// validators defines the validators' info of a delegator.
	Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryDelegatorValidatorsResponse is response type for the Query/DelegatorValidators RPC method.

func (*QueryDelegatorValidatorsResponse) Descriptor deprecated

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

Deprecated: Use QueryDelegatorValidatorsResponse.ProtoReflect.Descriptor instead.

func (*QueryDelegatorValidatorsResponse) GetPagination

func (*QueryDelegatorValidatorsResponse) GetValidators

func (x *QueryDelegatorValidatorsResponse) GetValidators() []*Validator

func (*QueryDelegatorValidatorsResponse) ProtoMessage

func (*QueryDelegatorValidatorsResponse) ProtoMessage()

func (*QueryDelegatorValidatorsResponse) ProtoReflect

func (*QueryDelegatorValidatorsResponse) Reset

func (*QueryDelegatorValidatorsResponse) String

type QueryHistoricalInfoRequest

type QueryHistoricalInfoRequest struct {

	// height defines at which height to query the historical info.
	Height int64 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty"`
	// contains filtered or unexported fields
}

QueryHistoricalInfoRequest is request type for the Query/HistoricalInfo RPC method.

func (*QueryHistoricalInfoRequest) Descriptor deprecated

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

Deprecated: Use QueryHistoricalInfoRequest.ProtoReflect.Descriptor instead.

func (*QueryHistoricalInfoRequest) GetHeight

func (x *QueryHistoricalInfoRequest) GetHeight() int64

func (*QueryHistoricalInfoRequest) ProtoMessage

func (*QueryHistoricalInfoRequest) ProtoMessage()

func (*QueryHistoricalInfoRequest) ProtoReflect

func (*QueryHistoricalInfoRequest) Reset

func (x *QueryHistoricalInfoRequest) Reset()

func (*QueryHistoricalInfoRequest) String

func (x *QueryHistoricalInfoRequest) String() string

type QueryHistoricalInfoResponse

type QueryHistoricalInfoResponse struct {

	// hist defines the historical info at the given height.
	Hist *HistoricalInfo `protobuf:"bytes,1,opt,name=hist,proto3" json:"hist,omitempty"`
	// contains filtered or unexported fields
}

QueryHistoricalInfoResponse is response type for the Query/HistoricalInfo RPC method.

func (*QueryHistoricalInfoResponse) Descriptor deprecated

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

Deprecated: Use QueryHistoricalInfoResponse.ProtoReflect.Descriptor instead.

func (*QueryHistoricalInfoResponse) GetHist

func (*QueryHistoricalInfoResponse) ProtoMessage

func (*QueryHistoricalInfoResponse) ProtoMessage()

func (*QueryHistoricalInfoResponse) ProtoReflect

func (*QueryHistoricalInfoResponse) Reset

func (x *QueryHistoricalInfoResponse) Reset()

func (*QueryHistoricalInfoResponse) String

func (x *QueryHistoricalInfoResponse) String() string

type QueryParamsRequest

type QueryParamsRequest struct {
	// contains filtered or unexported fields
}

QueryParamsRequest is request type for the Query/Params RPC method.

func (*QueryParamsRequest) Descriptor deprecated

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

Deprecated: Use QueryParamsRequest.ProtoReflect.Descriptor instead.

func (*QueryParamsRequest) ProtoMessage

func (*QueryParamsRequest) ProtoMessage()

func (*QueryParamsRequest) ProtoReflect

func (x *QueryParamsRequest) ProtoReflect() protoreflect.Message

func (*QueryParamsRequest) Reset

func (x *QueryParamsRequest) Reset()

func (*QueryParamsRequest) String

func (x *QueryParamsRequest) String() string

type QueryParamsResponse

type QueryParamsResponse struct {

	// params holds all the parameters of this module.
	Params *Params `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	// contains filtered or unexported fields
}

QueryParamsResponse is response type for the Query/Params RPC method.

func (*QueryParamsResponse) Descriptor deprecated

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

Deprecated: Use QueryParamsResponse.ProtoReflect.Descriptor instead.

func (*QueryParamsResponse) GetParams

func (x *QueryParamsResponse) GetParams() *Params

func (*QueryParamsResponse) ProtoMessage

func (*QueryParamsResponse) ProtoMessage()

func (*QueryParamsResponse) ProtoReflect

func (x *QueryParamsResponse) ProtoReflect() protoreflect.Message

func (*QueryParamsResponse) Reset

func (x *QueryParamsResponse) Reset()

func (*QueryParamsResponse) String

func (x *QueryParamsResponse) String() string

type QueryPoolRequest

type QueryPoolRequest struct {
	// contains filtered or unexported fields
}

QueryPoolRequest is request type for the Query/Pool RPC method.

func (*QueryPoolRequest) Descriptor deprecated

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

Deprecated: Use QueryPoolRequest.ProtoReflect.Descriptor instead.

func (*QueryPoolRequest) ProtoMessage

func (*QueryPoolRequest) ProtoMessage()

func (*QueryPoolRequest) ProtoReflect

func (x *QueryPoolRequest) ProtoReflect() protoreflect.Message

func (*QueryPoolRequest) Reset

func (x *QueryPoolRequest) Reset()

func (*QueryPoolRequest) String

func (x *QueryPoolRequest) String() string

type QueryPoolResponse

type QueryPoolResponse struct {

	// pool defines the pool info.
	Pool *Pool `protobuf:"bytes,1,opt,name=pool,proto3" json:"pool,omitempty"`
	// contains filtered or unexported fields
}

QueryPoolResponse is response type for the Query/Pool RPC method.

func (*QueryPoolResponse) Descriptor deprecated

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

Deprecated: Use QueryPoolResponse.ProtoReflect.Descriptor instead.

func (*QueryPoolResponse) GetPool

func (x *QueryPoolResponse) GetPool() *Pool

func (*QueryPoolResponse) ProtoMessage

func (*QueryPoolResponse) ProtoMessage()

func (*QueryPoolResponse) ProtoReflect

func (x *QueryPoolResponse) ProtoReflect() protoreflect.Message

func (*QueryPoolResponse) Reset

func (x *QueryPoolResponse) Reset()

func (*QueryPoolResponse) String

func (x *QueryPoolResponse) String() string

type QueryRedelegationsRequest

type QueryRedelegationsRequest struct {

	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// src_validator_addr defines the validator address to redelegate from.
	SrcValidatorAddr string `protobuf:"bytes,2,opt,name=src_validator_addr,json=srcValidatorAddr,proto3" json:"src_validator_addr,omitempty"`
	// dst_validator_addr defines the validator address to redelegate to.
	DstValidatorAddr string `protobuf:"bytes,3,opt,name=dst_validator_addr,json=dstValidatorAddr,proto3" json:"dst_validator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,4,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryRedelegationsRequest is request type for the Query/Redelegations RPC method.

func (*QueryRedelegationsRequest) Descriptor deprecated

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

Deprecated: Use QueryRedelegationsRequest.ProtoReflect.Descriptor instead.

func (*QueryRedelegationsRequest) GetDelegatorAddr

func (x *QueryRedelegationsRequest) GetDelegatorAddr() string

func (*QueryRedelegationsRequest) GetDstValidatorAddr

func (x *QueryRedelegationsRequest) GetDstValidatorAddr() string

func (*QueryRedelegationsRequest) GetPagination

func (x *QueryRedelegationsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryRedelegationsRequest) GetSrcValidatorAddr

func (x *QueryRedelegationsRequest) GetSrcValidatorAddr() string

func (*QueryRedelegationsRequest) ProtoMessage

func (*QueryRedelegationsRequest) ProtoMessage()

func (*QueryRedelegationsRequest) ProtoReflect

func (*QueryRedelegationsRequest) Reset

func (x *QueryRedelegationsRequest) Reset()

func (*QueryRedelegationsRequest) String

func (x *QueryRedelegationsRequest) String() string

type QueryRedelegationsResponse

type QueryRedelegationsResponse struct {
	RedelegationResponses []*RedelegationResponse `protobuf:"bytes,1,rep,name=redelegation_responses,json=redelegationResponses,proto3" json:"redelegation_responses,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryRedelegationsResponse is response type for the Query/Redelegations RPC method.

func (*QueryRedelegationsResponse) Descriptor deprecated

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

Deprecated: Use QueryRedelegationsResponse.ProtoReflect.Descriptor instead.

func (*QueryRedelegationsResponse) GetPagination

func (x *QueryRedelegationsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryRedelegationsResponse) GetRedelegationResponses

func (x *QueryRedelegationsResponse) GetRedelegationResponses() []*RedelegationResponse

func (*QueryRedelegationsResponse) ProtoMessage

func (*QueryRedelegationsResponse) ProtoMessage()

func (*QueryRedelegationsResponse) ProtoReflect

func (*QueryRedelegationsResponse) Reset

func (x *QueryRedelegationsResponse) Reset()

func (*QueryRedelegationsResponse) String

func (x *QueryRedelegationsResponse) String() string

type QueryServer

type QueryServer interface {
	// Validators queries all validators that match the given status.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	Validators(context.Context, *QueryValidatorsRequest) (*QueryValidatorsResponse, error)
	// Validator queries validator info for given validator address.
	Validator(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error)
	// ValidatorDelegations queries delegate info for given validator.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	ValidatorDelegations(context.Context, *QueryValidatorDelegationsRequest) (*QueryValidatorDelegationsResponse, error)
	// ValidatorUnbondingDelegations queries unbonding delegations of a validator.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	ValidatorUnbondingDelegations(context.Context, *QueryValidatorUnbondingDelegationsRequest) (*QueryValidatorUnbondingDelegationsResponse, error)
	// Delegation queries delegate info for given validator delegator pair.
	Delegation(context.Context, *QueryDelegationRequest) (*QueryDelegationResponse, error)
	// UnbondingDelegation queries unbonding info for given validator delegator
	// pair.
	UnbondingDelegation(context.Context, *QueryUnbondingDelegationRequest) (*QueryUnbondingDelegationResponse, error)
	// DelegatorDelegations queries all delegations of a given delegator address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	DelegatorDelegations(context.Context, *QueryDelegatorDelegationsRequest) (*QueryDelegatorDelegationsResponse, error)
	// DelegatorUnbondingDelegations queries all unbonding delegations of a given
	// delegator address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	DelegatorUnbondingDelegations(context.Context, *QueryDelegatorUnbondingDelegationsRequest) (*QueryDelegatorUnbondingDelegationsResponse, error)
	// Redelegations queries redelegations of given address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	Redelegations(context.Context, *QueryRedelegationsRequest) (*QueryRedelegationsResponse, error)
	// DelegatorValidators queries all validators info for given delegator
	// address.
	//
	// When called from another module, this query might consume a high amount of
	// gas if the pagination field is incorrectly set.
	DelegatorValidators(context.Context, *QueryDelegatorValidatorsRequest) (*QueryDelegatorValidatorsResponse, error)
	// DelegatorValidator queries validator info for given delegator validator
	// pair.
	DelegatorValidator(context.Context, *QueryDelegatorValidatorRequest) (*QueryDelegatorValidatorResponse, error)
	// HistoricalInfo queries the historical info for given height.
	HistoricalInfo(context.Context, *QueryHistoricalInfoRequest) (*QueryHistoricalInfoResponse, error)
	// Pool queries the pool info.
	Pool(context.Context, *QueryPoolRequest) (*QueryPoolResponse, error)
	// Parameters queries the staking parameters.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// contains filtered or unexported methods
}

QueryServer is the server API for Query service. All implementations must embed UnimplementedQueryServer for forward compatibility

type QueryUnbondingDelegationRequest

type QueryUnbondingDelegationRequest struct {

	// delegator_addr defines the delegator address to query for.
	DelegatorAddr string `protobuf:"bytes,1,opt,name=delegator_addr,json=delegatorAddr,proto3" json:"delegator_addr,omitempty"`
	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,2,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	// contains filtered or unexported fields
}

QueryUnbondingDelegationRequest is request type for the Query/UnbondingDelegation RPC method.

func (*QueryUnbondingDelegationRequest) Descriptor deprecated

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

Deprecated: Use QueryUnbondingDelegationRequest.ProtoReflect.Descriptor instead.

func (*QueryUnbondingDelegationRequest) GetDelegatorAddr

func (x *QueryUnbondingDelegationRequest) GetDelegatorAddr() string

func (*QueryUnbondingDelegationRequest) GetValidatorAddr

func (x *QueryUnbondingDelegationRequest) GetValidatorAddr() string

func (*QueryUnbondingDelegationRequest) ProtoMessage

func (*QueryUnbondingDelegationRequest) ProtoMessage()

func (*QueryUnbondingDelegationRequest) ProtoReflect

func (*QueryUnbondingDelegationRequest) Reset

func (*QueryUnbondingDelegationRequest) String

type QueryUnbondingDelegationResponse

type QueryUnbondingDelegationResponse struct {

	// unbond defines the unbonding information of a delegation.
	Unbond *UnbondingDelegation `protobuf:"bytes,1,opt,name=unbond,proto3" json:"unbond,omitempty"`
	// contains filtered or unexported fields
}

QueryDelegationResponse is response type for the Query/UnbondingDelegation RPC method.

func (*QueryUnbondingDelegationResponse) Descriptor deprecated

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

Deprecated: Use QueryUnbondingDelegationResponse.ProtoReflect.Descriptor instead.

func (*QueryUnbondingDelegationResponse) GetUnbond

func (*QueryUnbondingDelegationResponse) ProtoMessage

func (*QueryUnbondingDelegationResponse) ProtoMessage()

func (*QueryUnbondingDelegationResponse) ProtoReflect

func (*QueryUnbondingDelegationResponse) Reset

func (*QueryUnbondingDelegationResponse) String

type QueryValidatorDelegationsRequest

type QueryValidatorDelegationsRequest struct {

	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryValidatorDelegationsRequest is request type for the Query/ValidatorDelegations RPC method

func (*QueryValidatorDelegationsRequest) Descriptor deprecated

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

Deprecated: Use QueryValidatorDelegationsRequest.ProtoReflect.Descriptor instead.

func (*QueryValidatorDelegationsRequest) GetPagination

func (*QueryValidatorDelegationsRequest) GetValidatorAddr

func (x *QueryValidatorDelegationsRequest) GetValidatorAddr() string

func (*QueryValidatorDelegationsRequest) ProtoMessage

func (*QueryValidatorDelegationsRequest) ProtoMessage()

func (*QueryValidatorDelegationsRequest) ProtoReflect

func (*QueryValidatorDelegationsRequest) Reset

func (*QueryValidatorDelegationsRequest) String

type QueryValidatorDelegationsResponse

type QueryValidatorDelegationsResponse struct {
	DelegationResponses []*DelegationResponse `protobuf:"bytes,1,rep,name=delegation_responses,json=delegationResponses,proto3" json:"delegation_responses,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryValidatorDelegationsResponse is response type for the Query/ValidatorDelegations RPC method

func (*QueryValidatorDelegationsResponse) Descriptor deprecated

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

Deprecated: Use QueryValidatorDelegationsResponse.ProtoReflect.Descriptor instead.

func (*QueryValidatorDelegationsResponse) GetDelegationResponses

func (x *QueryValidatorDelegationsResponse) GetDelegationResponses() []*DelegationResponse

func (*QueryValidatorDelegationsResponse) GetPagination

func (*QueryValidatorDelegationsResponse) ProtoMessage

func (*QueryValidatorDelegationsResponse) ProtoMessage()

func (*QueryValidatorDelegationsResponse) ProtoReflect

func (*QueryValidatorDelegationsResponse) Reset

func (*QueryValidatorDelegationsResponse) String

type QueryValidatorRequest

type QueryValidatorRequest struct {

	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	// contains filtered or unexported fields
}

QueryValidatorRequest is response type for the Query/Validator RPC method

func (*QueryValidatorRequest) Descriptor deprecated

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

Deprecated: Use QueryValidatorRequest.ProtoReflect.Descriptor instead.

func (*QueryValidatorRequest) GetValidatorAddr

func (x *QueryValidatorRequest) GetValidatorAddr() string

func (*QueryValidatorRequest) ProtoMessage

func (*QueryValidatorRequest) ProtoMessage()

func (*QueryValidatorRequest) ProtoReflect

func (x *QueryValidatorRequest) ProtoReflect() protoreflect.Message

func (*QueryValidatorRequest) Reset

func (x *QueryValidatorRequest) Reset()

func (*QueryValidatorRequest) String

func (x *QueryValidatorRequest) String() string

type QueryValidatorResponse

type QueryValidatorResponse struct {

	// validator defines the validator info.
	Validator *Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// contains filtered or unexported fields
}

QueryValidatorResponse is response type for the Query/Validator RPC method

func (*QueryValidatorResponse) Descriptor deprecated

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

Deprecated: Use QueryValidatorResponse.ProtoReflect.Descriptor instead.

func (*QueryValidatorResponse) GetValidator

func (x *QueryValidatorResponse) GetValidator() *Validator

func (*QueryValidatorResponse) ProtoMessage

func (*QueryValidatorResponse) ProtoMessage()

func (*QueryValidatorResponse) ProtoReflect

func (x *QueryValidatorResponse) ProtoReflect() protoreflect.Message

func (*QueryValidatorResponse) Reset

func (x *QueryValidatorResponse) Reset()

func (*QueryValidatorResponse) String

func (x *QueryValidatorResponse) String() string

type QueryValidatorUnbondingDelegationsRequest

type QueryValidatorUnbondingDelegationsRequest struct {

	// validator_addr defines the validator address to query for.
	ValidatorAddr string `protobuf:"bytes,1,opt,name=validator_addr,json=validatorAddr,proto3" json:"validator_addr,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryValidatorUnbondingDelegationsRequest is required type for the Query/ValidatorUnbondingDelegations RPC method

func (*QueryValidatorUnbondingDelegationsRequest) Descriptor deprecated

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

Deprecated: Use QueryValidatorUnbondingDelegationsRequest.ProtoReflect.Descriptor instead.

func (*QueryValidatorUnbondingDelegationsRequest) GetPagination

func (*QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr

func (x *QueryValidatorUnbondingDelegationsRequest) GetValidatorAddr() string

func (*QueryValidatorUnbondingDelegationsRequest) ProtoMessage

func (*QueryValidatorUnbondingDelegationsRequest) ProtoReflect

func (*QueryValidatorUnbondingDelegationsRequest) Reset

func (*QueryValidatorUnbondingDelegationsRequest) String

type QueryValidatorUnbondingDelegationsResponse

type QueryValidatorUnbondingDelegationsResponse struct {
	UnbondingResponses []*UnbondingDelegation `protobuf:"bytes,1,rep,name=unbonding_responses,json=unbondingResponses,proto3" json:"unbonding_responses,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryValidatorUnbondingDelegationsResponse is response type for the Query/ValidatorUnbondingDelegations RPC method.

func (*QueryValidatorUnbondingDelegationsResponse) Descriptor deprecated

Deprecated: Use QueryValidatorUnbondingDelegationsResponse.ProtoReflect.Descriptor instead.

func (*QueryValidatorUnbondingDelegationsResponse) GetPagination

func (*QueryValidatorUnbondingDelegationsResponse) GetUnbondingResponses

func (*QueryValidatorUnbondingDelegationsResponse) ProtoMessage

func (*QueryValidatorUnbondingDelegationsResponse) ProtoReflect

func (*QueryValidatorUnbondingDelegationsResponse) Reset

func (*QueryValidatorUnbondingDelegationsResponse) String

type QueryValidatorsRequest

type QueryValidatorsRequest struct {

	// status enables to query for validators matching a given status.
	Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// pagination defines an optional pagination for the request.
	Pagination *v1beta1.PageRequest `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryValidatorsRequest is request type for Query/Validators RPC method.

func (*QueryValidatorsRequest) Descriptor deprecated

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

Deprecated: Use QueryValidatorsRequest.ProtoReflect.Descriptor instead.

func (*QueryValidatorsRequest) GetPagination

func (x *QueryValidatorsRequest) GetPagination() *v1beta1.PageRequest

func (*QueryValidatorsRequest) GetStatus

func (x *QueryValidatorsRequest) GetStatus() string

func (*QueryValidatorsRequest) ProtoMessage

func (*QueryValidatorsRequest) ProtoMessage()

func (*QueryValidatorsRequest) ProtoReflect

func (x *QueryValidatorsRequest) ProtoReflect() protoreflect.Message

func (*QueryValidatorsRequest) Reset

func (x *QueryValidatorsRequest) Reset()

func (*QueryValidatorsRequest) String

func (x *QueryValidatorsRequest) String() string

type QueryValidatorsResponse

type QueryValidatorsResponse struct {

	// validators contains all the queried validators.
	Validators []*Validator `protobuf:"bytes,1,rep,name=validators,proto3" json:"validators,omitempty"`
	// pagination defines the pagination in the response.
	Pagination *v1beta1.PageResponse `protobuf:"bytes,2,opt,name=pagination,proto3" json:"pagination,omitempty"`
	// contains filtered or unexported fields
}

QueryValidatorsResponse is response type for the Query/Validators RPC method

func (*QueryValidatorsResponse) Descriptor deprecated

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

Deprecated: Use QueryValidatorsResponse.ProtoReflect.Descriptor instead.

func (*QueryValidatorsResponse) GetPagination

func (x *QueryValidatorsResponse) GetPagination() *v1beta1.PageResponse

func (*QueryValidatorsResponse) GetValidators

func (x *QueryValidatorsResponse) GetValidators() []*Validator

func (*QueryValidatorsResponse) ProtoMessage

func (*QueryValidatorsResponse) ProtoMessage()

func (*QueryValidatorsResponse) ProtoReflect

func (x *QueryValidatorsResponse) ProtoReflect() protoreflect.Message

func (*QueryValidatorsResponse) Reset

func (x *QueryValidatorsResponse) Reset()

func (*QueryValidatorsResponse) String

func (x *QueryValidatorsResponse) String() string

type Redelegation

type Redelegation struct {

	// delegator_address is the bech32-encoded address of the delegator.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_src_address is the validator redelegation source operator address.
	ValidatorSrcAddress string `protobuf:"bytes,2,opt,name=validator_src_address,json=validatorSrcAddress,proto3" json:"validator_src_address,omitempty"`
	// validator_dst_address is the validator redelegation destination operator address.
	ValidatorDstAddress string `protobuf:"bytes,3,opt,name=validator_dst_address,json=validatorDstAddress,proto3" json:"validator_dst_address,omitempty"`
	// entries are the redelegation entries.
	Entries []*RedelegationEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries,omitempty"` // redelegation entries
	// contains filtered or unexported fields
}

Redelegation contains the list of a particular delegator's redelegating bonds from a particular source validator to a particular destination validator.

func (*Redelegation) Descriptor deprecated

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

Deprecated: Use Redelegation.ProtoReflect.Descriptor instead.

func (*Redelegation) GetDelegatorAddress

func (x *Redelegation) GetDelegatorAddress() string

func (*Redelegation) GetEntries

func (x *Redelegation) GetEntries() []*RedelegationEntry

func (*Redelegation) GetValidatorDstAddress

func (x *Redelegation) GetValidatorDstAddress() string

func (*Redelegation) GetValidatorSrcAddress

func (x *Redelegation) GetValidatorSrcAddress() string

func (*Redelegation) ProtoMessage

func (*Redelegation) ProtoMessage()

func (*Redelegation) ProtoReflect

func (x *Redelegation) ProtoReflect() protoreflect.Message

func (*Redelegation) Reset

func (x *Redelegation) Reset()

func (*Redelegation) String

func (x *Redelegation) String() string

type RedelegationEntry

type RedelegationEntry struct {

	// creation_height  defines the height which the redelegation took place.
	CreationHeight int64 `protobuf:"varint,1,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
	// completion_time defines the unix time for redelegation completion.
	CompletionTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3" json:"completion_time,omitempty"`
	// initial_balance defines the initial balance when redelegation started.
	InitialBalance string `protobuf:"bytes,3,opt,name=initial_balance,json=initialBalance,proto3" json:"initial_balance,omitempty"`
	// shares_dst is the amount of destination-validator shares created by redelegation.
	SharesDst string `protobuf:"bytes,4,opt,name=shares_dst,json=sharesDst,proto3" json:"shares_dst,omitempty"`
	// Incrementing id that uniquely identifies this entry
	UnbondingId uint64 `protobuf:"varint,5,opt,name=unbonding_id,json=unbondingId,proto3" json:"unbonding_id,omitempty"`
	// Strictly positive if this entry's unbonding has been stopped by external modules
	UnbondingOnHoldRefCount int64 `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

RedelegationEntry defines a redelegation object with relevant metadata.

func (*RedelegationEntry) Descriptor deprecated

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

Deprecated: Use RedelegationEntry.ProtoReflect.Descriptor instead.

func (*RedelegationEntry) GetCompletionTime

func (x *RedelegationEntry) GetCompletionTime() *timestamppb.Timestamp

func (*RedelegationEntry) GetCreationHeight

func (x *RedelegationEntry) GetCreationHeight() int64

func (*RedelegationEntry) GetInitialBalance

func (x *RedelegationEntry) GetInitialBalance() string

func (*RedelegationEntry) GetSharesDst

func (x *RedelegationEntry) GetSharesDst() string

func (*RedelegationEntry) GetUnbondingId added in v0.6.4

func (x *RedelegationEntry) GetUnbondingId() uint64

func (*RedelegationEntry) GetUnbondingOnHoldRefCount added in v0.6.4

func (x *RedelegationEntry) GetUnbondingOnHoldRefCount() int64

func (*RedelegationEntry) ProtoMessage

func (*RedelegationEntry) ProtoMessage()

func (*RedelegationEntry) ProtoReflect

func (x *RedelegationEntry) ProtoReflect() protoreflect.Message

func (*RedelegationEntry) Reset

func (x *RedelegationEntry) Reset()

func (*RedelegationEntry) String

func (x *RedelegationEntry) String() string

type RedelegationEntryResponse

type RedelegationEntryResponse struct {
	RedelegationEntry *RedelegationEntry `protobuf:"bytes,1,opt,name=redelegation_entry,json=redelegationEntry,proto3" json:"redelegation_entry,omitempty"`
	Balance           string             `protobuf:"bytes,4,opt,name=balance,proto3" json:"balance,omitempty"`
	// contains filtered or unexported fields
}

RedelegationEntryResponse is equivalent to a RedelegationEntry except that it contains a balance in addition to shares which is more suitable for client responses.

func (*RedelegationEntryResponse) Descriptor deprecated

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

Deprecated: Use RedelegationEntryResponse.ProtoReflect.Descriptor instead.

func (*RedelegationEntryResponse) GetBalance

func (x *RedelegationEntryResponse) GetBalance() string

func (*RedelegationEntryResponse) GetRedelegationEntry

func (x *RedelegationEntryResponse) GetRedelegationEntry() *RedelegationEntry

func (*RedelegationEntryResponse) ProtoMessage

func (*RedelegationEntryResponse) ProtoMessage()

func (*RedelegationEntryResponse) ProtoReflect

func (*RedelegationEntryResponse) Reset

func (x *RedelegationEntryResponse) Reset()

func (*RedelegationEntryResponse) String

func (x *RedelegationEntryResponse) String() string

type RedelegationResponse

type RedelegationResponse struct {
	Redelegation *Redelegation                `protobuf:"bytes,1,opt,name=redelegation,proto3" json:"redelegation,omitempty"`
	Entries      []*RedelegationEntryResponse `protobuf:"bytes,2,rep,name=entries,proto3" json:"entries,omitempty"`
	// contains filtered or unexported fields
}

RedelegationResponse is equivalent to a Redelegation except that its entries contain a balance in addition to shares which is more suitable for client responses.

func (*RedelegationResponse) Descriptor deprecated

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

Deprecated: Use RedelegationResponse.ProtoReflect.Descriptor instead.

func (*RedelegationResponse) GetEntries

func (*RedelegationResponse) GetRedelegation

func (x *RedelegationResponse) GetRedelegation() *Redelegation

func (*RedelegationResponse) ProtoMessage

func (*RedelegationResponse) ProtoMessage()

func (*RedelegationResponse) ProtoReflect

func (x *RedelegationResponse) ProtoReflect() protoreflect.Message

func (*RedelegationResponse) Reset

func (x *RedelegationResponse) Reset()

func (*RedelegationResponse) String

func (x *RedelegationResponse) String() string

type StakeAuthorization

type StakeAuthorization struct {

	// max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is
	// empty, there is no spend limit and any amount of coins can be delegated.
	MaxTokens *v1beta1.Coin `protobuf:"bytes,1,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"`
	// validators is the oneof that represents either allow_list or deny_list
	//
	// Types that are assignable to Validators:
	//	*StakeAuthorization_AllowList
	//	*StakeAuthorization_DenyList
	Validators isStakeAuthorization_Validators `protobuf_oneof:"validators"`
	// authorization_type defines one of AuthorizationType.
	AuthorizationType AuthorizationType `` /* 159-byte string literal not displayed */
	// contains filtered or unexported fields
}

StakeAuthorization defines authorization for delegate/undelegate/redelegate.

Since: cosmos-sdk 0.43

func (*StakeAuthorization) Descriptor deprecated

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

Deprecated: Use StakeAuthorization.ProtoReflect.Descriptor instead.

func (*StakeAuthorization) GetAllowList

func (*StakeAuthorization) GetAuthorizationType

func (x *StakeAuthorization) GetAuthorizationType() AuthorizationType

func (*StakeAuthorization) GetDenyList

func (*StakeAuthorization) GetMaxTokens

func (x *StakeAuthorization) GetMaxTokens() *v1beta1.Coin

func (*StakeAuthorization) GetValidators

func (x *StakeAuthorization) GetValidators() isStakeAuthorization_Validators

func (*StakeAuthorization) ProtoMessage

func (*StakeAuthorization) ProtoMessage()

func (*StakeAuthorization) ProtoReflect

func (x *StakeAuthorization) ProtoReflect() protoreflect.Message

func (*StakeAuthorization) Reset

func (x *StakeAuthorization) Reset()

func (*StakeAuthorization) String

func (x *StakeAuthorization) String() string

type StakeAuthorization_AllowList

type StakeAuthorization_AllowList struct {
	// allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's
	// account.
	AllowList *StakeAuthorization_Validators `protobuf:"bytes,2,opt,name=allow_list,json=allowList,proto3,oneof"`
}

type StakeAuthorization_DenyList

type StakeAuthorization_DenyList struct {
	// deny_list specifies list of validator addresses to whom grantee can not delegate tokens.
	DenyList *StakeAuthorization_Validators `protobuf:"bytes,3,opt,name=deny_list,json=denyList,proto3,oneof"`
}

type StakeAuthorization_Validators

type StakeAuthorization_Validators struct {
	Address []string `protobuf:"bytes,1,rep,name=address,proto3" json:"address,omitempty"`
	// contains filtered or unexported fields
}

Validators defines list of validator addresses.

func (*StakeAuthorization_Validators) Descriptor deprecated

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

Deprecated: Use StakeAuthorization_Validators.ProtoReflect.Descriptor instead.

func (*StakeAuthorization_Validators) GetAddress

func (x *StakeAuthorization_Validators) GetAddress() []string

func (*StakeAuthorization_Validators) ProtoMessage

func (*StakeAuthorization_Validators) ProtoMessage()

func (*StakeAuthorization_Validators) ProtoReflect

func (*StakeAuthorization_Validators) Reset

func (x *StakeAuthorization_Validators) Reset()

func (*StakeAuthorization_Validators) String

type UnbondingDelegation

type UnbondingDelegation struct {

	// delegator_address is the bech32-encoded address of the delegator.
	DelegatorAddress string `protobuf:"bytes,1,opt,name=delegator_address,json=delegatorAddress,proto3" json:"delegator_address,omitempty"`
	// validator_address is the bech32-encoded address of the validator.
	ValidatorAddress string `protobuf:"bytes,2,opt,name=validator_address,json=validatorAddress,proto3" json:"validator_address,omitempty"`
	// entries are the unbonding delegation entries.
	Entries []*UnbondingDelegationEntry `protobuf:"bytes,3,rep,name=entries,proto3" json:"entries,omitempty"` // unbonding delegation entries
	// contains filtered or unexported fields
}

UnbondingDelegation stores all of a single delegator's unbonding bonds for a single validator in an time-ordered list.

func (*UnbondingDelegation) Descriptor deprecated

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

Deprecated: Use UnbondingDelegation.ProtoReflect.Descriptor instead.

func (*UnbondingDelegation) GetDelegatorAddress

func (x *UnbondingDelegation) GetDelegatorAddress() string

func (*UnbondingDelegation) GetEntries

func (x *UnbondingDelegation) GetEntries() []*UnbondingDelegationEntry

func (*UnbondingDelegation) GetValidatorAddress

func (x *UnbondingDelegation) GetValidatorAddress() string

func (*UnbondingDelegation) ProtoMessage

func (*UnbondingDelegation) ProtoMessage()

func (*UnbondingDelegation) ProtoReflect

func (x *UnbondingDelegation) ProtoReflect() protoreflect.Message

func (*UnbondingDelegation) Reset

func (x *UnbondingDelegation) Reset()

func (*UnbondingDelegation) String

func (x *UnbondingDelegation) String() string

type UnbondingDelegationEntry

type UnbondingDelegationEntry struct {

	// creation_height is the height which the unbonding took place.
	CreationHeight int64 `protobuf:"varint,1,opt,name=creation_height,json=creationHeight,proto3" json:"creation_height,omitempty"`
	// completion_time is the unix time for unbonding completion.
	CompletionTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=completion_time,json=completionTime,proto3" json:"completion_time,omitempty"`
	// initial_balance defines the tokens initially scheduled to receive at completion.
	InitialBalance string `protobuf:"bytes,3,opt,name=initial_balance,json=initialBalance,proto3" json:"initial_balance,omitempty"`
	// balance defines the tokens to receive at completion.
	Balance string `protobuf:"bytes,4,opt,name=balance,proto3" json:"balance,omitempty"`
	// Incrementing id that uniquely identifies this entry
	UnbondingId uint64 `protobuf:"varint,5,opt,name=unbonding_id,json=unbondingId,proto3" json:"unbonding_id,omitempty"`
	// Strictly positive if this entry's unbonding has been stopped by external modules
	UnbondingOnHoldRefCount int64 `` /* 137-byte string literal not displayed */
	// contains filtered or unexported fields
}

UnbondingDelegationEntry defines an unbonding object with relevant metadata.

func (*UnbondingDelegationEntry) Descriptor deprecated

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

Deprecated: Use UnbondingDelegationEntry.ProtoReflect.Descriptor instead.

func (*UnbondingDelegationEntry) GetBalance

func (x *UnbondingDelegationEntry) GetBalance() string

func (*UnbondingDelegationEntry) GetCompletionTime

func (x *UnbondingDelegationEntry) GetCompletionTime() *timestamppb.Timestamp

func (*UnbondingDelegationEntry) GetCreationHeight

func (x *UnbondingDelegationEntry) GetCreationHeight() int64

func (*UnbondingDelegationEntry) GetInitialBalance

func (x *UnbondingDelegationEntry) GetInitialBalance() string

func (*UnbondingDelegationEntry) GetUnbondingId added in v0.6.4

func (x *UnbondingDelegationEntry) GetUnbondingId() uint64

func (*UnbondingDelegationEntry) GetUnbondingOnHoldRefCount added in v0.6.4

func (x *UnbondingDelegationEntry) GetUnbondingOnHoldRefCount() int64

func (*UnbondingDelegationEntry) ProtoMessage

func (*UnbondingDelegationEntry) ProtoMessage()

func (*UnbondingDelegationEntry) ProtoReflect

func (x *UnbondingDelegationEntry) ProtoReflect() protoreflect.Message

func (*UnbondingDelegationEntry) Reset

func (x *UnbondingDelegationEntry) Reset()

func (*UnbondingDelegationEntry) String

func (x *UnbondingDelegationEntry) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

func (UnimplementedMsgServer) BeginRedelegate

func (UnimplementedMsgServer) CreateValidator

func (UnimplementedMsgServer) Delegate

func (UnimplementedMsgServer) EditValidator

func (UnimplementedMsgServer) Undelegate

func (UnimplementedMsgServer) UpdateParams

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Pool

func (UnimplementedQueryServer) Validator

type UnsafeMsgServer

type UnsafeMsgServer interface {
	// contains filtered or unexported methods
}

UnsafeMsgServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to MsgServer will result in compilation errors.

type UnsafeQueryServer

type UnsafeQueryServer interface {
	// contains filtered or unexported methods
}

UnsafeQueryServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to QueryServer will result in compilation errors.

type ValAddresses

type ValAddresses struct {
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty"`
	// contains filtered or unexported fields
}

ValAddresses defines a repeated set of validator addresses.

func (*ValAddresses) Descriptor deprecated

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

Deprecated: Use ValAddresses.ProtoReflect.Descriptor instead.

func (*ValAddresses) GetAddresses

func (x *ValAddresses) GetAddresses() []string

func (*ValAddresses) ProtoMessage

func (*ValAddresses) ProtoMessage()

func (*ValAddresses) ProtoReflect

func (x *ValAddresses) ProtoReflect() protoreflect.Message

func (*ValAddresses) Reset

func (x *ValAddresses) Reset()

func (*ValAddresses) String

func (x *ValAddresses) String() string

type Validator

type Validator struct {

	// operator_address defines the address of the validator's operator; bech encoded in JSON.
	OperatorAddress string `protobuf:"bytes,1,opt,name=operator_address,json=operatorAddress,proto3" json:"operator_address,omitempty"`
	// consensus_pubkey is the consensus public key of the validator, as a Protobuf Any.
	ConsensusPubkey *anypb.Any `protobuf:"bytes,2,opt,name=consensus_pubkey,json=consensusPubkey,proto3" json:"consensus_pubkey,omitempty"`
	// jailed defined whether the validator has been jailed from bonded status or not.
	Jailed bool `protobuf:"varint,3,opt,name=jailed,proto3" json:"jailed,omitempty"`
	// status is the validator status (bonded/unbonding/unbonded).
	Status BondStatus `protobuf:"varint,4,opt,name=status,proto3,enum=cosmos.staking.v1beta1.BondStatus" json:"status,omitempty"`
	// tokens define the delegated tokens (incl. self-delegation).
	Tokens string `protobuf:"bytes,5,opt,name=tokens,proto3" json:"tokens,omitempty"`
	// delegator_shares defines total shares issued to a validator's delegators.
	DelegatorShares string `protobuf:"bytes,6,opt,name=delegator_shares,json=delegatorShares,proto3" json:"delegator_shares,omitempty"`
	// description defines the description terms for the validator.
	Description *Description `protobuf:"bytes,7,opt,name=description,proto3" json:"description,omitempty"`
	// unbonding_height defines, if unbonding, the height at which this validator has begun unbonding.
	UnbondingHeight int64 `protobuf:"varint,8,opt,name=unbonding_height,json=unbondingHeight,proto3" json:"unbonding_height,omitempty"`
	// unbonding_time defines, if unbonding, the min time for the validator to complete unbonding.
	UnbondingTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=unbonding_time,json=unbondingTime,proto3" json:"unbonding_time,omitempty"`
	// commission defines the commission parameters.
	Commission *Commission `protobuf:"bytes,10,opt,name=commission,proto3" json:"commission,omitempty"`
	// min_self_delegation is the validator's self declared minimum self delegation.
	//
	// Since: cosmos-sdk 0.46
	MinSelfDelegation string `protobuf:"bytes,11,opt,name=min_self_delegation,json=minSelfDelegation,proto3" json:"min_self_delegation,omitempty"`
	// strictly positive if this validator's unbonding has been stopped by external modules
	UnbondingOnHoldRefCount int64 `` /* 138-byte string literal not displayed */
	// list of unbonding ids, each uniquely identifing an unbonding of this validator
	UnbondingIds []uint64 `protobuf:"varint,13,rep,packed,name=unbonding_ids,json=unbondingIds,proto3" json:"unbonding_ids,omitempty"`
	// contains filtered or unexported fields
}

Validator defines a validator, together with the total amount of the Validator's bond shares and their exchange rate to coins. Slashing results in a decrease in the exchange rate, allowing correct calculation of future undelegations without iterating over delegators. When coins are delegated to this validator, the validator is credited with a delegation whose number of bond shares is based on the amount of coins delegated divided by the current exchange rate. Voting power can be calculated as total bonded shares multiplied by exchange rate.

func (*Validator) Descriptor deprecated

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

Deprecated: Use Validator.ProtoReflect.Descriptor instead.

func (*Validator) GetCommission

func (x *Validator) GetCommission() *Commission

func (*Validator) GetConsensusPubkey

func (x *Validator) GetConsensusPubkey() *anypb.Any

func (*Validator) GetDelegatorShares

func (x *Validator) GetDelegatorShares() string

func (*Validator) GetDescription

func (x *Validator) GetDescription() *Description

func (*Validator) GetJailed

func (x *Validator) GetJailed() bool

func (*Validator) GetMinSelfDelegation

func (x *Validator) GetMinSelfDelegation() string

func (*Validator) GetOperatorAddress

func (x *Validator) GetOperatorAddress() string

func (*Validator) GetStatus

func (x *Validator) GetStatus() BondStatus

func (*Validator) GetTokens

func (x *Validator) GetTokens() string

func (*Validator) GetUnbondingHeight

func (x *Validator) GetUnbondingHeight() int64

func (*Validator) GetUnbondingIds added in v0.6.4

func (x *Validator) GetUnbondingIds() []uint64

func (*Validator) GetUnbondingOnHoldRefCount added in v0.6.4

func (x *Validator) GetUnbondingOnHoldRefCount() int64

func (*Validator) GetUnbondingTime

func (x *Validator) GetUnbondingTime() *timestamppb.Timestamp

func (*Validator) ProtoMessage

func (*Validator) ProtoMessage()

func (*Validator) ProtoReflect

func (x *Validator) ProtoReflect() protoreflect.Message

func (*Validator) Reset

func (x *Validator) Reset()

func (*Validator) String

func (x *Validator) String() string

type ValidatorUpdates added in v0.6.4

type ValidatorUpdates struct {
	Updates []*abci.ValidatorUpdate `protobuf:"bytes,1,rep,name=updates,proto3" json:"updates,omitempty"`
	// contains filtered or unexported fields
}

ValidatorUpdates defines an array of abci.ValidatorUpdate objects. TODO: explore moving this to proto/cosmos/base to separate modules from tendermint dependence

func (*ValidatorUpdates) Descriptor deprecated added in v0.6.4

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

Deprecated: Use ValidatorUpdates.ProtoReflect.Descriptor instead.

func (*ValidatorUpdates) GetUpdates added in v0.6.4

func (x *ValidatorUpdates) GetUpdates() []*abci.ValidatorUpdate

func (*ValidatorUpdates) ProtoMessage added in v0.6.4

func (*ValidatorUpdates) ProtoMessage()

func (*ValidatorUpdates) ProtoReflect added in v0.6.4

func (x *ValidatorUpdates) ProtoReflect() protoreflect.Message

func (*ValidatorUpdates) Reset added in v0.6.4

func (x *ValidatorUpdates) Reset()

func (*ValidatorUpdates) String added in v0.6.4

func (x *ValidatorUpdates) String() string

Jump to

Keyboard shortcuts

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