stakingpb

package
v1.5.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_staking_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	Index            uint64               `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"`
	CandidateAddress string               `protobuf:"bytes,2,opt,name=candidateAddress,proto3" json:"candidateAddress,omitempty"`
	StakedAmount     string               `protobuf:"bytes,3,opt,name=stakedAmount,proto3" json:"stakedAmount,omitempty"`
	StakedDuration   uint32               `protobuf:"varint,4,opt,name=stakedDuration,proto3" json:"stakedDuration,omitempty"`
	CreateTime       *timestamp.Timestamp `protobuf:"bytes,5,opt,name=createTime,proto3" json:"createTime,omitempty"`
	StakeStartTime   *timestamp.Timestamp `protobuf:"bytes,6,opt,name=stakeStartTime,proto3" json:"stakeStartTime,omitempty"`
	UnstakeStartTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=unstakeStartTime,proto3" json:"unstakeStartTime,omitempty"`
	AutoStake        bool                 `protobuf:"varint,8,opt,name=autoStake,proto3" json:"autoStake,omitempty"`
	Owner            string               `protobuf:"bytes,9,opt,name=owner,proto3" json:"owner,omitempty"`
	// contains filtered or unexported fields
}

func (*Bucket) Descriptor deprecated

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

Deprecated: Use Bucket.ProtoReflect.Descriptor instead.

func (*Bucket) GetAutoStake

func (x *Bucket) GetAutoStake() bool

func (*Bucket) GetCandidateAddress

func (x *Bucket) GetCandidateAddress() string

func (*Bucket) GetCreateTime

func (x *Bucket) GetCreateTime() *timestamp.Timestamp

func (*Bucket) GetIndex added in v1.0.0

func (x *Bucket) GetIndex() uint64

func (*Bucket) GetOwner

func (x *Bucket) GetOwner() string

func (*Bucket) GetStakeStartTime

func (x *Bucket) GetStakeStartTime() *timestamp.Timestamp

func (*Bucket) GetStakedAmount

func (x *Bucket) GetStakedAmount() string

func (*Bucket) GetStakedDuration

func (x *Bucket) GetStakedDuration() uint32

func (*Bucket) GetUnstakeStartTime

func (x *Bucket) GetUnstakeStartTime() *timestamp.Timestamp

func (*Bucket) ProtoMessage

func (*Bucket) ProtoMessage()

func (*Bucket) ProtoReflect added in v1.1.2

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

func (*Bucket) Reset

func (x *Bucket) Reset()

func (*Bucket) String

func (x *Bucket) String() string

type BucketIndices

type BucketIndices struct {
	Indices []uint64 `protobuf:"varint,1,rep,packed,name=indices,proto3" json:"indices,omitempty"`
	// contains filtered or unexported fields
}

func (*BucketIndices) Descriptor deprecated

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

Deprecated: Use BucketIndices.ProtoReflect.Descriptor instead.

func (*BucketIndices) GetIndices

func (x *BucketIndices) GetIndices() []uint64

func (*BucketIndices) ProtoMessage

func (*BucketIndices) ProtoMessage()

func (*BucketIndices) ProtoReflect added in v1.1.2

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

func (*BucketIndices) Reset

func (x *BucketIndices) Reset()

func (*BucketIndices) String

func (x *BucketIndices) String() string

type Candidate

type Candidate struct {
	OwnerAddress       string `protobuf:"bytes,1,opt,name=ownerAddress,proto3" json:"ownerAddress,omitempty"`
	OperatorAddress    string `protobuf:"bytes,2,opt,name=operatorAddress,proto3" json:"operatorAddress,omitempty"`
	RewardAddress      string `protobuf:"bytes,3,opt,name=rewardAddress,proto3" json:"rewardAddress,omitempty"`
	Name               string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
	Votes              string `protobuf:"bytes,5,opt,name=votes,proto3" json:"votes,omitempty"`
	SelfStakeBucketIdx uint64 `protobuf:"varint,6,opt,name=selfStakeBucketIdx,proto3" json:"selfStakeBucketIdx,omitempty"`
	SelfStake          string `protobuf:"bytes,7,opt,name=selfStake,proto3" json:"selfStake,omitempty"`
	// contains filtered or unexported fields
}

func (*Candidate) Descriptor deprecated

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

Deprecated: Use Candidate.ProtoReflect.Descriptor instead.

func (*Candidate) GetName

func (x *Candidate) GetName() string

func (*Candidate) GetOperatorAddress

func (x *Candidate) GetOperatorAddress() string

func (*Candidate) GetOwnerAddress

func (x *Candidate) GetOwnerAddress() string

func (*Candidate) GetRewardAddress

func (x *Candidate) GetRewardAddress() string

func (*Candidate) GetSelfStake

func (x *Candidate) GetSelfStake() string

func (*Candidate) GetSelfStakeBucketIdx

func (x *Candidate) GetSelfStakeBucketIdx() uint64

func (*Candidate) GetVotes

func (x *Candidate) GetVotes() string

func (*Candidate) ProtoMessage

func (*Candidate) ProtoMessage()

func (*Candidate) ProtoReflect added in v1.1.2

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

func (*Candidate) Reset

func (x *Candidate) Reset()

func (*Candidate) String

func (x *Candidate) String() string

type Candidates

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

func (*Candidates) Descriptor deprecated

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

Deprecated: Use Candidates.ProtoReflect.Descriptor instead.

func (*Candidates) GetCandidates

func (x *Candidates) GetCandidates() []*Candidate

func (*Candidates) ProtoMessage

func (*Candidates) ProtoMessage()

func (*Candidates) ProtoReflect added in v1.1.2

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

func (*Candidates) Reset

func (x *Candidates) Reset()

func (*Candidates) String

func (x *Candidates) String() string

type TotalAmount added in v1.1.0

type TotalAmount struct {
	Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"`
	Count  uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
	// contains filtered or unexported fields
}

func (*TotalAmount) Descriptor deprecated added in v1.1.0

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

Deprecated: Use TotalAmount.ProtoReflect.Descriptor instead.

func (*TotalAmount) GetAmount added in v1.1.0

func (x *TotalAmount) GetAmount() string

func (*TotalAmount) GetCount added in v1.1.0

func (x *TotalAmount) GetCount() uint64

func (*TotalAmount) ProtoMessage added in v1.1.0

func (*TotalAmount) ProtoMessage()

func (*TotalAmount) ProtoReflect added in v1.1.2

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

func (*TotalAmount) Reset added in v1.1.0

func (x *TotalAmount) Reset()

func (*TotalAmount) String added in v1.1.0

func (x *TotalAmount) String() string

Jump to

Keyboard shortcuts

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