Documentation ¶
Index ¶
- Variables
- type Bucket
- func (*Bucket) Descriptor() ([]byte, []int)deprecated
- func (x *Bucket) GetAutoStake() bool
- func (x *Bucket) GetCandidateAddress() string
- func (x *Bucket) GetContractAddress() string
- func (x *Bucket) GetCreateBlockHeight() uint64
- func (x *Bucket) GetCreateTime() *timestamppb.Timestamp
- func (x *Bucket) GetIndex() uint64
- func (x *Bucket) GetOwner() string
- func (x *Bucket) GetStakeStartBlockHeight() uint64
- func (x *Bucket) GetStakeStartTime() *timestamppb.Timestamp
- func (x *Bucket) GetStakedAmount() string
- func (x *Bucket) GetStakedDuration() uint32
- func (x *Bucket) GetStakedDurationBlockNumber() uint64
- func (x *Bucket) GetUnstakeStartBlockHeight() uint64
- func (x *Bucket) GetUnstakeStartTime() *timestamppb.Timestamp
- func (*Bucket) ProtoMessage()
- func (x *Bucket) ProtoReflect() protoreflect.Message
- func (x *Bucket) Reset()
- func (x *Bucket) String() string
- type BucketIndices
- type BucketType
- func (*BucketType) Descriptor() ([]byte, []int)deprecated
- func (x *BucketType) GetActivatedAt() uint64
- func (x *BucketType) GetAmount() string
- func (x *BucketType) GetDuration() uint64
- func (*BucketType) ProtoMessage()
- func (x *BucketType) ProtoReflect() protoreflect.Message
- func (x *BucketType) Reset()
- func (x *BucketType) String() string
- type Candidate
- func (*Candidate) Descriptor() ([]byte, []int)deprecated
- func (x *Candidate) GetIdentifierAddress() string
- func (x *Candidate) GetName() string
- func (x *Candidate) GetOperatorAddress() string
- func (x *Candidate) GetOwnerAddress() string
- func (x *Candidate) GetRewardAddress() string
- func (x *Candidate) GetSelfStake() string
- func (x *Candidate) GetSelfStakeBucketIdx() uint64
- func (x *Candidate) GetVotes() string
- func (*Candidate) ProtoMessage()
- func (x *Candidate) ProtoReflect() protoreflect.Message
- func (x *Candidate) Reset()
- func (x *Candidate) String() string
- type Candidates
- type Endorsement
- type TotalAmount
- func (*TotalAmount) Descriptor() ([]byte, []int)deprecated
- func (x *TotalAmount) GetAmount() string
- func (x *TotalAmount) GetCount() uint64
- func (*TotalAmount) ProtoMessage()
- func (x *TotalAmount) ProtoReflect() protoreflect.Message
- func (x *TotalAmount) Reset()
- func (x *TotalAmount) String() string
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 *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=createTime,proto3" json:"createTime,omitempty"` StakeStartTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=stakeStartTime,proto3" json:"stakeStartTime,omitempty"` UnstakeStartTime *timestamppb.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"` ContractAddress string `protobuf:"bytes,10,opt,name=contractAddress,proto3" json:"contractAddress,omitempty"` StakedDurationBlockNumber uint64 `protobuf:"varint,11,opt,name=stakedDurationBlockNumber,proto3" json:"stakedDurationBlockNumber,omitempty"` CreateBlockHeight uint64 `protobuf:"varint,12,opt,name=createBlockHeight,proto3" json:"createBlockHeight,omitempty"` StakeStartBlockHeight uint64 `protobuf:"varint,13,opt,name=stakeStartBlockHeight,proto3" json:"stakeStartBlockHeight,omitempty"` UnstakeStartBlockHeight uint64 `protobuf:"varint,14,opt,name=unstakeStartBlockHeight,proto3" json:"unstakeStartBlockHeight,omitempty"` // contains filtered or unexported fields }
func (*Bucket) Descriptor
deprecated
func (*Bucket) GetAutoStake ¶
func (*Bucket) GetCandidateAddress ¶
func (*Bucket) GetContractAddress ¶
func (*Bucket) GetCreateBlockHeight ¶
func (*Bucket) GetCreateTime ¶
func (x *Bucket) GetCreateTime() *timestamppb.Timestamp
func (*Bucket) GetStakeStartBlockHeight ¶
func (*Bucket) GetStakeStartTime ¶
func (x *Bucket) GetStakeStartTime() *timestamppb.Timestamp
func (*Bucket) GetStakedAmount ¶
func (*Bucket) GetStakedDuration ¶
func (*Bucket) GetStakedDurationBlockNumber ¶
func (*Bucket) GetUnstakeStartBlockHeight ¶
func (*Bucket) GetUnstakeStartTime ¶
func (x *Bucket) GetUnstakeStartTime() *timestamppb.Timestamp
func (*Bucket) ProtoMessage ¶
func (*Bucket) ProtoMessage()
func (*Bucket) ProtoReflect ¶
func (x *Bucket) ProtoReflect() protoreflect.Message
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 ¶
func (x *BucketIndices) ProtoReflect() protoreflect.Message
func (*BucketIndices) Reset ¶
func (x *BucketIndices) Reset()
func (*BucketIndices) String ¶
func (x *BucketIndices) String() string
type BucketType ¶
type BucketType struct { Amount string `protobuf:"bytes,1,opt,name=amount,proto3" json:"amount,omitempty"` Duration uint64 `protobuf:"varint,2,opt,name=duration,proto3" json:"duration,omitempty"` ActivatedAt uint64 `protobuf:"varint,3,opt,name=activatedAt,proto3" json:"activatedAt,omitempty"` // contains filtered or unexported fields }
func (*BucketType) Descriptor
deprecated
func (*BucketType) Descriptor() ([]byte, []int)
Deprecated: Use BucketType.ProtoReflect.Descriptor instead.
func (*BucketType) GetActivatedAt ¶
func (x *BucketType) GetActivatedAt() uint64
func (*BucketType) GetAmount ¶
func (x *BucketType) GetAmount() string
func (*BucketType) GetDuration ¶
func (x *BucketType) GetDuration() uint64
func (*BucketType) ProtoMessage ¶
func (*BucketType) ProtoMessage()
func (*BucketType) ProtoReflect ¶
func (x *BucketType) ProtoReflect() protoreflect.Message
func (*BucketType) Reset ¶
func (x *BucketType) Reset()
func (*BucketType) String ¶
func (x *BucketType) 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"` IdentifierAddress string `protobuf:"bytes,8,opt,name=identifierAddress,proto3" json:"identifierAddress,omitempty"` //if the field is empty, set it to the old owner address // contains filtered or unexported fields }
func (*Candidate) Descriptor
deprecated
func (*Candidate) GetIdentifierAddress ¶
func (*Candidate) GetOperatorAddress ¶
func (*Candidate) GetOwnerAddress ¶
func (*Candidate) GetRewardAddress ¶
func (*Candidate) GetSelfStake ¶
func (*Candidate) GetSelfStakeBucketIdx ¶
func (*Candidate) ProtoMessage ¶
func (*Candidate) ProtoMessage()
func (*Candidate) ProtoReflect ¶
func (x *Candidate) ProtoReflect() protoreflect.Message
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 ¶
func (x *Candidates) ProtoReflect() protoreflect.Message
func (*Candidates) Reset ¶
func (x *Candidates) Reset()
func (*Candidates) String ¶
func (x *Candidates) String() string
type Endorsement ¶
type Endorsement struct { ExpireHeight uint64 `protobuf:"varint,1,opt,name=expireHeight,proto3" json:"expireHeight,omitempty"` // contains filtered or unexported fields }
func (*Endorsement) Descriptor
deprecated
func (*Endorsement) Descriptor() ([]byte, []int)
Deprecated: Use Endorsement.ProtoReflect.Descriptor instead.
func (*Endorsement) GetExpireHeight ¶
func (x *Endorsement) GetExpireHeight() uint64
func (*Endorsement) ProtoMessage ¶
func (*Endorsement) ProtoMessage()
func (*Endorsement) ProtoReflect ¶
func (x *Endorsement) ProtoReflect() protoreflect.Message
func (*Endorsement) Reset ¶
func (x *Endorsement) Reset()
func (*Endorsement) String ¶
func (x *Endorsement) String() string
type TotalAmount ¶
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
func (*TotalAmount) Descriptor() ([]byte, []int)
Deprecated: Use TotalAmount.ProtoReflect.Descriptor instead.
func (*TotalAmount) GetAmount ¶
func (x *TotalAmount) GetAmount() string
func (*TotalAmount) GetCount ¶
func (x *TotalAmount) GetCount() uint64
func (*TotalAmount) ProtoMessage ¶
func (*TotalAmount) ProtoMessage()
func (*TotalAmount) ProtoReflect ¶
func (x *TotalAmount) ProtoReflect() protoreflect.Message
func (*TotalAmount) Reset ¶
func (x *TotalAmount) Reset()
func (*TotalAmount) String ¶
func (x *TotalAmount) String() string
Click to show internal directories.
Click to hide internal directories.