stakingpb

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2020 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bucket

type Bucket struct {
	CandidateAddress     string               `protobuf:"bytes,1,opt,name=candidateAddress,proto3" json:"candidateAddress,omitempty"`
	StakedAmount         string               `protobuf:"bytes,2,opt,name=stakedAmount,proto3" json:"stakedAmount,omitempty"`
	StakedDuration       uint32               `protobuf:"varint,3,opt,name=stakedDuration,proto3" json:"stakedDuration,omitempty"`
	CreateTime           *timestamp.Timestamp `protobuf:"bytes,4,opt,name=createTime,proto3" json:"createTime,omitempty"`
	StakeStartTime       *timestamp.Timestamp `protobuf:"bytes,5,opt,name=stakeStartTime,proto3" json:"stakeStartTime,omitempty"`
	UnstakeStartTime     *timestamp.Timestamp `protobuf:"bytes,6,opt,name=unstakeStartTime,proto3" json:"unstakeStartTime,omitempty"`
	AutoStake            bool                 `protobuf:"varint,7,opt,name=autoStake,proto3" json:"autoStake,omitempty"`
	Owner                string               `protobuf:"bytes,8,opt,name=owner,proto3" json:"owner,omitempty"`
	XXX_NoUnkeyedLiteral struct{}             `json:"-"`
	XXX_unrecognized     []byte               `json:"-"`
	XXX_sizecache        int32                `json:"-"`
}

func (*Bucket) Descriptor

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

func (*Bucket) GetAutoStake

func (m *Bucket) GetAutoStake() bool

func (*Bucket) GetCandidateAddress

func (m *Bucket) GetCandidateAddress() string

func (*Bucket) GetCreateTime

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

func (*Bucket) GetOwner

func (m *Bucket) GetOwner() string

func (*Bucket) GetStakeStartTime

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

func (*Bucket) GetStakedAmount

func (m *Bucket) GetStakedAmount() string

func (*Bucket) GetStakedDuration

func (m *Bucket) GetStakedDuration() uint32

func (*Bucket) GetUnstakeStartTime

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

func (*Bucket) ProtoMessage

func (*Bucket) ProtoMessage()

func (*Bucket) Reset

func (m *Bucket) Reset()

func (*Bucket) String

func (m *Bucket) String() string

func (*Bucket) XXX_DiscardUnknown

func (m *Bucket) XXX_DiscardUnknown()

func (*Bucket) XXX_Marshal

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

func (*Bucket) XXX_Merge

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

func (*Bucket) XXX_Size

func (m *Bucket) XXX_Size() int

func (*Bucket) XXX_Unmarshal

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

type BucketIndices

type BucketIndices struct {
	Indices              []uint64 `protobuf:"varint,1,rep,packed,name=indices,proto3" json:"indices,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*BucketIndices) Descriptor

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

func (*BucketIndices) GetIndices

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

func (*BucketIndices) ProtoMessage

func (*BucketIndices) ProtoMessage()

func (*BucketIndices) Reset

func (m *BucketIndices) Reset()

func (*BucketIndices) String

func (m *BucketIndices) String() string

func (*BucketIndices) XXX_DiscardUnknown

func (m *BucketIndices) XXX_DiscardUnknown()

func (*BucketIndices) XXX_Marshal

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

func (*BucketIndices) XXX_Merge

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

func (*BucketIndices) XXX_Size

func (m *BucketIndices) XXX_Size() int

func (*BucketIndices) XXX_Unmarshal

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

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"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Candidate) Descriptor

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

func (*Candidate) GetName

func (m *Candidate) GetName() string

func (*Candidate) GetOperatorAddress

func (m *Candidate) GetOperatorAddress() string

func (*Candidate) GetOwnerAddress

func (m *Candidate) GetOwnerAddress() string

func (*Candidate) GetRewardAddress

func (m *Candidate) GetRewardAddress() string

func (*Candidate) GetSelfStake

func (m *Candidate) GetSelfStake() string

func (*Candidate) GetSelfStakeBucketIdx

func (m *Candidate) GetSelfStakeBucketIdx() uint64

func (*Candidate) GetVotes

func (m *Candidate) GetVotes() string

func (*Candidate) ProtoMessage

func (*Candidate) ProtoMessage()

func (*Candidate) Reset

func (m *Candidate) Reset()

func (*Candidate) String

func (m *Candidate) String() string

func (*Candidate) XXX_DiscardUnknown

func (m *Candidate) XXX_DiscardUnknown()

func (*Candidate) XXX_Marshal

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

func (*Candidate) XXX_Merge

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

func (*Candidate) XXX_Size

func (m *Candidate) XXX_Size() int

func (*Candidate) XXX_Unmarshal

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

type Candidates

type Candidates struct {
	Candidates           []*Candidate `protobuf:"bytes,1,rep,name=candidates,proto3" json:"candidates,omitempty"`
	XXX_NoUnkeyedLiteral struct{}     `json:"-"`
	XXX_unrecognized     []byte       `json:"-"`
	XXX_sizecache        int32        `json:"-"`
}

func (*Candidates) Descriptor

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

func (*Candidates) GetCandidates

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

func (*Candidates) ProtoMessage

func (*Candidates) ProtoMessage()

func (*Candidates) Reset

func (m *Candidates) Reset()

func (*Candidates) String

func (m *Candidates) String() string

func (*Candidates) XXX_DiscardUnknown

func (m *Candidates) XXX_DiscardUnknown()

func (*Candidates) XXX_Marshal

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

func (*Candidates) XXX_Merge

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

func (*Candidates) XXX_Size

func (m *Candidates) XXX_Size() int

func (*Candidates) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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