lockingv1

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 20 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.

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

Index

Constants

View Source
const (
	Query_Params_FullMethodName    = "/goat.locking.v1.Query/Params"
	Query_Validator_FullMethodName = "/goat.locking.v1.Query/Validator"
)

Variables

View Source
var (
	ValidatorStatus_name = map[int32]string{
		0: "VALIDATOR_STATUS_UNSPECIFIED",
		1: "VALIDATOR_STATUS_PENDING",
		2: "VALIDATOR_STATUS_ACTIVE",
		3: "VALIDATOR_STATUS_TOMBSTONED",
		4: "VALIDATOR_STATUS_DOWNGRADE",
		5: "VALIDATOR_STATUS_INACTIVE",
	}
	ValidatorStatus_value = map[string]int32{
		"VALIDATOR_STATUS_UNSPECIFIED": 0,
		"VALIDATOR_STATUS_PENDING":     1,
		"VALIDATOR_STATUS_ACTIVE":      2,
		"VALIDATOR_STATUS_TOMBSTONED":  3,
		"VALIDATOR_STATUS_DOWNGRADE":   4,
		"VALIDATOR_STATUS_INACTIVE":    5,
	}
)

Enum value maps for ValidatorStatus.

View Source
var File_goat_locking_v1_genesis_proto protoreflect.FileDescriptor
View Source
var File_goat_locking_v1_locking_proto protoreflect.FileDescriptor
View Source
var File_goat_locking_v1_params_proto protoreflect.FileDescriptor
View Source
var File_goat_locking_v1_query_proto protoreflect.FileDescriptor
View Source
var File_goat_locking_v1_tx_proto protoreflect.FileDescriptor
View Source
var File_goat_locking_v1_types_proto protoreflect.FileDescriptor
View Source
var Msg_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "goat.locking.v1.Msg",
	HandlerType: (*MsgServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams:     []grpc.StreamDesc{},
	Metadata:    "goat/locking/v1/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: "goat.locking.v1.Query",
	HandlerType: (*QueryServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Params",
			Handler:    _Query_Params_Handler,
		},
		{
			MethodName: "Validator",
			Handler:    _Query_Validator_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "goat/locking/v1/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 EthTxQueue

type EthTxQueue struct {
	Rewards []*Reward `protobuf:"bytes,1,rep,name=rewards,proto3" json:"rewards,omitempty"`
	Unlocks []*Unlock `protobuf:"bytes,2,rep,name=unlocks,proto3" json:"unlocks,omitempty"`
	// contains filtered or unexported fields
}

EthTxQueue

func (*EthTxQueue) Descriptor deprecated

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

Deprecated: Use EthTxQueue.ProtoReflect.Descriptor instead.

func (*EthTxQueue) GetRewards

func (x *EthTxQueue) GetRewards() []*Reward

func (*EthTxQueue) GetUnlocks

func (x *EthTxQueue) GetUnlocks() []*Unlock

func (*EthTxQueue) ProtoMessage

func (*EthTxQueue) ProtoMessage()

func (*EthTxQueue) ProtoReflect

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

func (*EthTxQueue) Reset

func (x *EthTxQueue) Reset()

func (*EthTxQueue) String

func (x *EthTxQueue) String() string

type GenesisState

type GenesisState struct {

	// params defines all the parameters of the module.
	Params      *Params               `protobuf:"bytes,1,opt,name=params,proto3" json:"params,omitempty"`
	Validators  []*Validator          `protobuf:"bytes,2,rep,name=validators,proto3" json:"validators,omitempty"`
	Tokens      []*TokenGenesis       `protobuf:"bytes,3,rep,name=tokens,proto3" json:"tokens,omitempty"`
	Slashed     []*v1beta1.Coin       `protobuf:"bytes,4,rep,name=slashed,proto3" json:"slashed,omitempty"`
	EthTxNonce  uint64                `protobuf:"varint,5,opt,name=eth_tx_nonce,json=ethTxNonce,proto3" json:"eth_tx_nonce,omitempty"`
	EthTxQueue  *EthTxQueue           `protobuf:"bytes,6,opt,name=eth_tx_queue,json=ethTxQueue,proto3" json:"eth_tx_queue,omitempty"`
	RewardPool  *RewardPool           `protobuf:"bytes,7,opt,name=reward_pool,json=rewardPool,proto3" json:"reward_pool,omitempty"`
	UnlockQueue []*UnlockQueueGenesis `protobuf:"bytes,8,rep,name=unlock_queue,json=unlockQueue,proto3" json:"unlock_queue,omitempty"`
	// contains filtered or unexported fields
}

GenesisState defines the locking module's genesis state.

func (*GenesisState) Descriptor deprecated

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

Deprecated: Use GenesisState.ProtoReflect.Descriptor instead.

func (*GenesisState) GetEthTxNonce

func (x *GenesisState) GetEthTxNonce() uint64

func (*GenesisState) GetEthTxQueue

func (x *GenesisState) GetEthTxQueue() *EthTxQueue

func (*GenesisState) GetParams

func (x *GenesisState) GetParams() *Params

func (*GenesisState) GetRewardPool

func (x *GenesisState) GetRewardPool() *RewardPool

func (*GenesisState) GetSlashed

func (x *GenesisState) GetSlashed() []*v1beta1.Coin

func (*GenesisState) GetTokens

func (x *GenesisState) GetTokens() []*TokenGenesis

func (*GenesisState) GetUnlockQueue

func (x *GenesisState) GetUnlockQueue() []*UnlockQueueGenesis

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 MsgClient

type MsgClient interface {
}

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.

Msg defines the Msg service.

func NewMsgClient

func NewMsgClient(cc grpc.ClientConnInterface) MsgClient

type MsgServer

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

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

Msg defines the Msg service.

type Params

type Params struct {

	// the partial unlock duation
	UnlockDuration *durationpb.Duration `protobuf:"bytes,1,opt,name=unlock_duration,json=unlockDuration,proto3" json:"unlock_duration,omitempty"`
	// if the token amount is less then threshold, the validator will be the
	// inactive status the validator operator should wait for long then paritial
	// unlock duation
	ExitingDuration      *durationpb.Duration `protobuf:"bytes,2,opt,name=exiting_duration,json=exitingDuration,proto3" json:"exiting_duration,omitempty"`
	DowntimeJailDuration *durationpb.Duration `protobuf:"bytes,3,opt,name=downtime_jail_duration,json=downtimeJailDuration,proto3" json:"downtime_jail_duration,omitempty"`
	// max_validators is the maximum number of validators.
	MaxValidators           int64  `protobuf:"varint,4,opt,name=max_validators,json=maxValidators,proto3" json:"max_validators,omitempty"`
	SignedBlocksWindow      int64  `protobuf:"varint,5,opt,name=signed_blocks_window,json=signedBlocksWindow,proto3" json:"signed_blocks_window,omitempty"`
	MaxMissedPerWindow      int64  `protobuf:"varint,6,opt,name=max_missed_per_window,json=maxMissedPerWindow,proto3" json:"max_missed_per_window,omitempty"`
	SlashFractionDoubleSign []byte `` /* 134-byte string literal not displayed */
	SlashFractionDowntime   []byte `` /* 126-byte string literal not displayed */
	HalvingInterval         int64  `protobuf:"varint,9,opt,name=halving_interval,json=halvingInterval,proto3" json:"halving_interval,omitempty"`
	InitialBlockReward      int64  `protobuf:"varint,10,opt,name=initial_block_reward,json=initialBlockReward,proto3" json:"initial_block_reward,omitempty"`
	// contains filtered or unexported fields
}

Params defines the parameters for the module.

func (*Params) Descriptor deprecated

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

Deprecated: Use Params.ProtoReflect.Descriptor instead.

func (*Params) GetDowntimeJailDuration

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

func (*Params) GetExitingDuration

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

func (*Params) GetHalvingInterval

func (x *Params) GetHalvingInterval() int64

func (*Params) GetInitialBlockReward

func (x *Params) GetInitialBlockReward() int64

func (*Params) GetMaxMissedPerWindow

func (x *Params) GetMaxMissedPerWindow() int64

func (*Params) GetMaxValidators

func (x *Params) GetMaxValidators() int64

func (*Params) GetSignedBlocksWindow

func (x *Params) GetSignedBlocksWindow() int64

func (*Params) GetSlashFractionDoubleSign

func (x *Params) GetSlashFractionDoubleSign() []byte

func (*Params) GetSlashFractionDowntime

func (x *Params) GetSlashFractionDowntime() []byte

func (*Params) GetUnlockDuration

func (x *Params) GetUnlockDuration() *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 QueryClient

type QueryClient interface {
	// Parameters queries the parameters of the module.
	Params(ctx context.Context, in *QueryParamsRequest, opts ...grpc.CallOption) (*QueryParamsResponse, error)
	// Validator queries validator state by address.
	Validator(ctx context.Context, in *QueryValidatorRequest, opts ...grpc.CallOption) (*QueryValidatorResponse, 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.

Query defines the gRPC querier service.

func NewQueryClient

func NewQueryClient(cc grpc.ClientConnInterface) QueryClient

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 QueryServer

type QueryServer interface {
	// Parameters queries the parameters of the module.
	Params(context.Context, *QueryParamsRequest) (*QueryParamsResponse, error)
	// Validator queries validator state by address.
	Validator(context.Context, *QueryValidatorRequest) (*QueryValidatorResponse, error)
	// contains filtered or unexported methods
}

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

Query defines the gRPC querier service.

type QueryValidatorRequest

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

QueryValidatorRequest

func (*QueryValidatorRequest) Descriptor deprecated

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

Deprecated: Use QueryValidatorRequest.ProtoReflect.Descriptor instead.

func (*QueryValidatorRequest) GetAddress

func (x *QueryValidatorRequest) GetAddress() 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 *Validator `protobuf:"bytes,1,opt,name=validator,proto3" json:"validator,omitempty"`
	// contains filtered or unexported fields
}

QueryValidatorResponse

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 Reward

type Reward struct {
	Id        uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Recipient []byte `protobuf:"bytes,2,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Goat      string `protobuf:"bytes,3,opt,name=goat,proto3" json:"goat,omitempty"`
	Gas       string `protobuf:"bytes,4,opt,name=gas,proto3" json:"gas,omitempty"`
	// contains filtered or unexported fields
}

Reward

func (*Reward) Descriptor deprecated

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

Deprecated: Use Reward.ProtoReflect.Descriptor instead.

func (*Reward) GetGas

func (x *Reward) GetGas() string

func (*Reward) GetGoat

func (x *Reward) GetGoat() string

func (*Reward) GetId

func (x *Reward) GetId() uint64

func (*Reward) GetRecipient

func (x *Reward) GetRecipient() []byte

func (*Reward) ProtoMessage

func (*Reward) ProtoMessage()

func (*Reward) ProtoReflect

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

func (*Reward) Reset

func (x *Reward) Reset()

func (*Reward) String

func (x *Reward) String() string

type RewardPool

type RewardPool struct {

	// the goat reward for the last block
	Goat string `protobuf:"bytes,1,opt,name=goat,proto3" json:"goat,omitempty"`
	// the gas fee for the last block
	Gas string `protobuf:"bytes,2,opt,name=gas,proto3" json:"gas,omitempty"`
	// the remain goat reward in the pool
	Remain string `protobuf:"bytes,3,opt,name=remain,proto3" json:"remain,omitempty"`
	// contains filtered or unexported fields
}

RewardPool

func (*RewardPool) Descriptor deprecated

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

Deprecated: Use RewardPool.ProtoReflect.Descriptor instead.

func (*RewardPool) GetGas

func (x *RewardPool) GetGas() string

func (*RewardPool) GetGoat

func (x *RewardPool) GetGoat() string

func (*RewardPool) GetRemain

func (x *RewardPool) GetRemain() string

func (*RewardPool) ProtoMessage

func (*RewardPool) ProtoMessage()

func (*RewardPool) ProtoReflect

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

func (*RewardPool) Reset

func (x *RewardPool) Reset()

func (*RewardPool) String

func (x *RewardPool) String() string

type SigningInfo

type SigningInfo struct {

	// offset of the current sign window
	Offset int64 `protobuf:"varint,1,opt,name=offset,proto3" json:"offset,omitempty"`
	// missed of the current sign window
	Missed int64 `protobuf:"varint,2,opt,name=missed,proto3" json:"missed,omitempty"`
	// contains filtered or unexported fields
}

SigningInfo

func (*SigningInfo) Descriptor deprecated

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

Deprecated: Use SigningInfo.ProtoReflect.Descriptor instead.

func (*SigningInfo) GetMissed

func (x *SigningInfo) GetMissed() int64

func (*SigningInfo) GetOffset

func (x *SigningInfo) GetOffset() int64

func (*SigningInfo) ProtoMessage

func (*SigningInfo) ProtoMessage()

func (*SigningInfo) ProtoReflect

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

func (*SigningInfo) Reset

func (x *SigningInfo) Reset()

func (*SigningInfo) String

func (x *SigningInfo) String() string

type Threshold

type Threshold struct {
	List []*v1beta1.Coin `protobuf:"bytes,1,rep,name=list,proto3" json:"list,omitempty"`
	// contains filtered or unexported fields
}

Threshold

func (*Threshold) Descriptor deprecated

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

Deprecated: Use Threshold.ProtoReflect.Descriptor instead.

func (*Threshold) GetList

func (x *Threshold) GetList() []*v1beta1.Coin

func (*Threshold) ProtoMessage

func (*Threshold) ProtoMessage()

func (*Threshold) ProtoReflect

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

func (*Threshold) Reset

func (x *Threshold) Reset()

func (*Threshold) String

func (x *Threshold) String() string

type Token

type Token struct {
	Weight    uint64 `protobuf:"varint,1,opt,name=weight,proto3" json:"weight,omitempty"`
	Threshold string `protobuf:"bytes,2,opt,name=threshold,proto3" json:"threshold,omitempty"`
	// contains filtered or unexported fields
}

Token config

func (*Token) Descriptor deprecated

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

Deprecated: Use Token.ProtoReflect.Descriptor instead.

func (*Token) GetThreshold

func (x *Token) GetThreshold() string

func (*Token) GetWeight

func (x *Token) GetWeight() uint64

func (*Token) ProtoMessage

func (*Token) ProtoMessage()

func (*Token) ProtoReflect

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

func (*Token) Reset

func (x *Token) Reset()

func (*Token) String

func (x *Token) String() string

type TokenGenesis

type TokenGenesis struct {
	Denom string `protobuf:"bytes,1,opt,name=denom,proto3" json:"denom,omitempty"`
	Token *Token `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

TokenGenesis

func (*TokenGenesis) Descriptor deprecated

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

Deprecated: Use TokenGenesis.ProtoReflect.Descriptor instead.

func (*TokenGenesis) GetDenom

func (x *TokenGenesis) GetDenom() string

func (*TokenGenesis) GetToken

func (x *TokenGenesis) GetToken() *Token

func (*TokenGenesis) ProtoMessage

func (*TokenGenesis) ProtoMessage()

func (*TokenGenesis) ProtoReflect

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

func (*TokenGenesis) Reset

func (x *TokenGenesis) Reset()

func (*TokenGenesis) String

func (x *TokenGenesis) String() string

type UnimplementedMsgServer

type UnimplementedMsgServer struct{}

UnimplementedMsgServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

type UnimplementedQueryServer

type UnimplementedQueryServer struct{}

UnimplementedQueryServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedQueryServer) Params

func (UnimplementedQueryServer) Validator

type Unlock

type Unlock struct {
	Id        uint64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
	Token     []byte `protobuf:"bytes,2,opt,name=token,proto3" json:"token,omitempty"`
	Recipient []byte `protobuf:"bytes,3,opt,name=recipient,proto3" json:"recipient,omitempty"`
	Amount    string `protobuf:"bytes,4,opt,name=amount,proto3" json:"amount,omitempty"`
	// contains filtered or unexported fields
}

Unlock

func (*Unlock) Descriptor deprecated

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

Deprecated: Use Unlock.ProtoReflect.Descriptor instead.

func (*Unlock) GetAmount

func (x *Unlock) GetAmount() string

func (*Unlock) GetId

func (x *Unlock) GetId() uint64

func (*Unlock) GetRecipient

func (x *Unlock) GetRecipient() []byte

func (*Unlock) GetToken

func (x *Unlock) GetToken() []byte

func (*Unlock) ProtoMessage

func (*Unlock) ProtoMessage()

func (*Unlock) ProtoReflect

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

func (*Unlock) Reset

func (x *Unlock) Reset()

func (*Unlock) String

func (x *Unlock) String() string

type UnlockQueueGenesis

type UnlockQueueGenesis struct {
	Timestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Unlocks   []*Unlock              `protobuf:"bytes,2,rep,name=unlocks,proto3" json:"unlocks,omitempty"`
	// contains filtered or unexported fields
}

UnlockQueueGenesis

func (*UnlockQueueGenesis) Descriptor deprecated

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

Deprecated: Use UnlockQueueGenesis.ProtoReflect.Descriptor instead.

func (*UnlockQueueGenesis) GetTimestamp

func (x *UnlockQueueGenesis) GetTimestamp() *timestamppb.Timestamp

func (*UnlockQueueGenesis) GetUnlocks

func (x *UnlockQueueGenesis) GetUnlocks() []*Unlock

func (*UnlockQueueGenesis) ProtoMessage

func (*UnlockQueueGenesis) ProtoMessage()

func (*UnlockQueueGenesis) ProtoReflect

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

func (*UnlockQueueGenesis) Reset

func (x *UnlockQueueGenesis) Reset()

func (*UnlockQueueGenesis) String

func (x *UnlockQueueGenesis) String() string

type Unlocks

type Unlocks struct {
	Unlocks []*Unlock `protobuf:"bytes,1,rep,name=unlocks,proto3" json:"unlocks,omitempty"`
	// contains filtered or unexported fields
}

Unlocks

func (*Unlocks) Descriptor deprecated

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

Deprecated: Use Unlocks.ProtoReflect.Descriptor instead.

func (*Unlocks) GetUnlocks

func (x *Unlocks) GetUnlocks() []*Unlock

func (*Unlocks) ProtoMessage

func (*Unlocks) ProtoMessage()

func (*Unlocks) ProtoReflect

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

func (*Unlocks) Reset

func (x *Unlocks) Reset()

func (*Unlocks) String

func (x *Unlocks) String() string

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 Validator

type Validator struct {
	Pubkey []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Power  uint64 `protobuf:"varint,2,opt,name=power,proto3" json:"power,omitempty"`
	// the total locking
	Locking []*v1beta1.Coin `protobuf:"bytes,3,rep,name=locking,proto3" json:"locking,omitempty"`
	// unclaimed goat reward
	Reward string `protobuf:"bytes,4,opt,name=reward,proto3" json:"reward,omitempty"`
	// unclaimed gas fee rewrad
	GasReward   string          `protobuf:"bytes,5,opt,name=gas_reward,json=gasReward,proto3" json:"gas_reward,omitempty"`
	Status      ValidatorStatus `protobuf:"varint,6,opt,name=status,proto3,enum=goat.locking.v1.ValidatorStatus" json:"status,omitempty"`
	SigningInfo *SigningInfo    `protobuf:"bytes,7,opt,name=signing_info,json=signingInfo,proto3" json:"signing_info,omitempty"`
	// Timestamp until which the validator is jailed due to liveness downtime.
	JailedUntil *timestamppb.Timestamp `protobuf:"bytes,8,opt,name=jailed_until,json=jailedUntil,proto3" json:"jailed_until,omitempty"`
	// contains filtered or unexported fields
}

Validator

func (*Validator) Descriptor deprecated

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

Deprecated: Use Validator.ProtoReflect.Descriptor instead.

func (*Validator) GetGasReward

func (x *Validator) GetGasReward() string

func (*Validator) GetJailedUntil

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

func (*Validator) GetLocking

func (x *Validator) GetLocking() []*v1beta1.Coin

func (*Validator) GetPower

func (x *Validator) GetPower() uint64

func (*Validator) GetPubkey

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

func (*Validator) GetReward

func (x *Validator) GetReward() string

func (*Validator) GetSigningInfo

func (x *Validator) GetSigningInfo() *SigningInfo

func (*Validator) GetStatus

func (x *Validator) GetStatus() ValidatorStatus

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 ValidatorStatus

type ValidatorStatus int32

ValidatorStatus is the status of a validator.

const (
	// UNSPECIFIED defines an invalid validator status.
	ValidatorStatus_VALIDATOR_STATUS_UNSPECIFIED ValidatorStatus = 0
	// Pending means the validator is waitting for
	ValidatorStatus_VALIDATOR_STATUS_PENDING ValidatorStatus = 1
	// Active means the validator is producing and voting new blocks
	ValidatorStatus_VALIDATOR_STATUS_ACTIVE ValidatorStatus = 2
	// Tombstoned means the validator did malicious behaviors like double sign and
	// killed out
	ValidatorStatus_VALIDATOR_STATUS_TOMBSTONED ValidatorStatus = 3
	// Downgrade means the validator is offline
	ValidatorStatus_VALIDATOR_STATUS_DOWNGRADE ValidatorStatus = 4
	// Inactive means the validator is exiting in progress or exited
	ValidatorStatus_VALIDATOR_STATUS_INACTIVE ValidatorStatus = 5
)

func (ValidatorStatus) Descriptor

func (ValidatorStatus) Enum

func (x ValidatorStatus) Enum() *ValidatorStatus

func (ValidatorStatus) EnumDescriptor deprecated

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

Deprecated: Use ValidatorStatus.Descriptor instead.

func (ValidatorStatus) Number

func (ValidatorStatus) String

func (x ValidatorStatus) String() string

func (ValidatorStatus) Type

Jump to

Keyboard shortcuts

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