types

package
Version: v1.65.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2021 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DposVoteActionRegist = iota + 1
	DposVoteActionCancelRegist
	DposVoteActionReRegist
	DposVoteActionVote
	DposVoteActionCancelVote
	DposVoteActionRegistVrfM
	DposVoteActionRegistVrfRP
	DposVoteActionRecordCB
	DPosVoteActionRegistTopNCandidator

	CandidatorStatusRegist = iota + 1
	CandidatorStatusVoted
	CandidatorStatusCancelVoted
	CandidatorStatusCancelRegist
	CandidatorStatusReRegist

	VrfStatusMRegist = iota + 1
	VrfStatusRPRegist

	CBStatusRecord = iota + 1

	TopNCandidatorStatusRegist = iota + 1
)

dpos action ty

View Source
const (
	TyLogCandicatorRegist       = 1001
	TyLogCandicatorVoted        = 1002
	TyLogCandicatorCancelVoted  = 1003
	TyLogCandicatorCancelRegist = 1004
	TyLogCandicatorReRegist     = 1005
	TyLogVrfMRegist             = 1006
	TyLogVrfRPRegist            = 1007
	TyLogCBInfoRecord           = 1008
	TyLogTopNCandidatorRegist   = 1009
)

log ty

View Source
const (

	//RegistFrozenCoins 注册为候选节点需要抵押冻结的代币数量
	RegistFrozenCoins int64 = 1000000000000

	//VoteTypeNone 非投票类型
	VoteTypeNone int32 = 1

	//VoteTypeVote 投票类型
	VoteTypeVote int32 = 2

	//VoteTypeCancelVote 撤销投票类型
	VoteTypeCancelVote int32 = 3

	//VoteTypeCancelAllVote 撤销所有投票类型
	VoteTypeCancelAllVote int32 = 4

	//TopNCandidatorsVoteInit topN投票状态:初始状态
	TopNCandidatorsVoteInit int64 = 0

	//TopNCandidatorsVoteMajorOK topN投票状态:2/3多数达成一致
	TopNCandidatorsVoteMajorOK int64 = 1

	//TopNCandidatorsVoteMajorFail topN投票状态:2/3多数达成一致失败
	TopNCandidatorsVoteMajorFail int64 = 2
)
View Source
const (
	//FuncNameQueryCandidatorByPubkeys func name
	FuncNameQueryCandidatorByPubkeys = "QueryCandidatorByPubkeys"

	//FuncNameQueryCandidatorByTopN func name
	FuncNameQueryCandidatorByTopN = "QueryCandidatorByTopN"

	//FuncNameQueryVrfByTime func name
	FuncNameQueryVrfByTime = "QueryVrfByTime"

	//FuncNameQueryVrfByCycle func name
	FuncNameQueryVrfByCycle = "QueryVrfByCycle"

	//FuncNameQueryVrfByCycleForTopN func name
	FuncNameQueryVrfByCycleForTopN = "QueryVrfByCycleForTopN"

	//FuncNameQueryVrfByCycleForPubkeys func name
	FuncNameQueryVrfByCycleForPubkeys = "QueryVrfByCycleForPubkeys"

	//FuncNameQueryVote func name
	FuncNameQueryVote = "QueryVote"

	//CreateRegistTx 创建注册候选节点交易
	CreateRegistTx = "Regist"

	//CreateCancelRegistTx 创建取消候选节点的交易
	CreateCancelRegistTx = "CancelRegist"

	//CreateReRegistTx 创建重新注册候选节点的交易
	CreateReRegistTx = "ReRegist"

	//CreateVoteTx 创建为候选节点投票的交易
	CreateVoteTx = "Vote"

	//CreateCancelVoteTx 创建取消对候选节点投票的交易
	CreateCancelVoteTx = "CancelVote"

	//CreateRegistVrfMTx 创建注册Vrf的M信息的交易
	CreateRegistVrfMTx = "RegistVrfM"

	//CreateRegistVrfRPTx 创建注册Vrf的R/P信息的交易
	CreateRegistVrfRPTx = "RegistVrfRP"

	//CreateRecordCBTx 创建记录CB信息的交易
	CreateRecordCBTx = "RecordCB"

	//QueryVrfByTime 根据time查询Vrf信息
	QueryVrfByTime = 1

	//QueryVrfByCycle 根据cycle查询Vrf信息
	QueryVrfByCycle = 2

	//QueryVrfByCycleForTopN 根据cycle查询当前topN的候选节点的Vrf信息
	QueryVrfByCycleForTopN = 3

	//QueryVrfByCycleForPubkeys 根据cycle查询指定pubkey的多个候选节点的Vrf信息
	QueryVrfByCycleForPubkeys = 4

	//FuncNameQueryCBInfoByCycle func name
	FuncNameQueryCBInfoByCycle = "QueryCBInfoByCycle"

	//FuncNameQueryCBInfoByHeight func name
	FuncNameQueryCBInfoByHeight = "QueryCBInfoByHeight"

	//FuncNameQueryCBInfoByHash func name
	FuncNameQueryCBInfoByHash = "QueryCBInfoByHash"

	//QueryCBInfoByCycle 根据cycle查询cycle boundary信息
	QueryCBInfoByCycle = 1

	//QueryCBInfoByHeight 根据stopHeight查询cycle boundary信息
	QueryCBInfoByHeight = 2

	//QueryCBInfoByHash 根据stopHash查询cycle boundary信息
	QueryCBInfoByHash = 3

	//FuncNameQueryTopNByVersion func name
	FuncNameQueryTopNByVersion = "QueryTopNByVersion"
)

Variables

View Source
var (
	DPosX          = "dpos"
	ExecerDposVote = []byte(DPosX)
)

包的名字可以通过配置文件来配置 建议用github的组织名称,或者用户名字开头, 再加上自己的插件的名字 如果发生重名,可以通过配置文件修改这些名字

View Source
var (
	ErrNoSuchVote               = errors.New("ErrNoSuchVote")
	ErrNotEnoughVotes           = errors.New("ErrNotEnoughVotes")
	ErrCandidatorExist          = errors.New("ErrCandidatorExist")
	ErrCandidatorInvalidStatus  = errors.New("ErrCandidatorInvalidStatus")
	ErrCandidatorNotExist       = errors.New("ErrCandidatorNotExist")
	ErrCandidatorNotEnough      = errors.New("ErrCandidatorNotEnough")
	ErrCandidatorNotLegal       = errors.New("ErrCandidatorNotLegal")
	ErrVrfMNotRegisted          = errors.New("ErrVrfMNotRegisted")
	ErrVrfMAlreadyRegisted      = errors.New("ErrVrfMAlreadyRegisted")
	ErrVrfRPAlreadyRegisted     = errors.New("ErrVrfRPAlreadyRegisted")
	ErrNoPrivilege              = errors.New("ErrNoPrivilege")
	ErrParamStatusInvalid       = errors.New("ErrParamStatusInvalid")
	ErrParamAddressMustnotEmpty = errors.New("ErrParamAddressMustnotEmpty")
	ErrSaveTable                = errors.New("ErrSaveTable")
	ErrCBRecordExist            = errors.New("ErrCBRecordExist")
	ErrCycleNotAllowed          = errors.New("ErrCycleNotAllowed")
	ErrVersionTopNNotExist      = errors.New("ErrVersionTopNNotExist")
	ErrNotLegalTopN             = errors.New("ErrNotLegalTopN")
)

Errors for Dpos

View Source
var File_dposvote_proto protoreflect.FileDescriptor

Functions

func InitExecutor

func InitExecutor(cfg *types.Chain33Config)

InitExecutor ...

func InitFork

func InitFork(cfg *types.Chain33Config)

InitFork ...

func NewDposCBTable

func NewDposCBTable(kvdb db.KV) *table.Table

NewDposCBTable 新建表

func NewDposCandidatorTable

func NewDposCandidatorTable(kvdb db.KV) *table.Table

NewDposCandidatorTable 新建表

func NewDposVoteTable

func NewDposVoteTable(kvdb db.KV) *table.Table

NewDposVoteTable 新建表

func NewDposVrfMTable

func NewDposVrfMTable(kvdb db.KV) *table.Table

NewDposVrfMTable 新建表

func NewDposVrfRPTable

func NewDposVrfRPTable(kvdb db.KV) *table.Table

NewDposVrfRPTable 新建表

Types

type Candidator

type Candidator struct {
	Pubkey  []byte `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`   //候选节点的公钥
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` //后续节点的地址
	IP      string `protobuf:"bytes,3,opt,name=IP,proto3" json:"IP,omitempty"`           //候选节点的运行IP
	Votes   int64  `protobuf:"varint,4,opt,name=votes,proto3" json:"votes,omitempty"`    //候选节点的投票数
	Status  int64  `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`  //候选节点的状态,0:注册,1:当选,2:取消注册
	// contains filtered or unexported fields
}

Candidator 候选节点信息

func (*Candidator) Copy

func (cand *Candidator) Copy() *Candidator

Copy ...

func (*Candidator) Descriptor deprecated

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

Deprecated: Use Candidator.ProtoReflect.Descriptor instead.

func (*Candidator) GetAddress

func (x *Candidator) GetAddress() string

func (*Candidator) GetIP

func (x *Candidator) GetIP() string

func (*Candidator) GetPubkey

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

func (*Candidator) GetStatus

func (x *Candidator) GetStatus() int64

func (*Candidator) GetVotes

func (x *Candidator) GetVotes() int64

func (*Candidator) ProtoMessage

func (*Candidator) ProtoMessage()

func (*Candidator) ProtoReflect added in v1.65.3

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

func (*Candidator) Reset

func (x *Candidator) Reset()

func (*Candidator) String

func (x *Candidator) String() string

type CandidatorInfo

type CandidatorInfo struct {
	Pubkey      []byte       `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`   //候选节点的公钥
	Address     string       `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` //后续节点的地址
	IP          string       `protobuf:"bytes,3,opt,name=IP,proto3" json:"IP,omitempty"`           //候选节点的运行IP
	Votes       int64        `protobuf:"varint,4,opt,name=votes,proto3" json:"votes,omitempty"`    //候选节点的投票数
	Status      int64        `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`  //候选节点的状态,0:注册,1:当选,2:取消注册
	PreStatus   int64        `protobuf:"varint,6,opt,name=preStatus,proto3" json:"preStatus,omitempty"`
	StartTime   int64        `protobuf:"varint,7,opt,name=startTime,proto3" json:"startTime,omitempty"`     //创建候选者的时间
	StartHeight int64        `protobuf:"varint,8,opt,name=startHeight,proto3" json:"startHeight,omitempty"` //创建候选者的时间
	StartTxHash string       `protobuf:"bytes,9,opt,name=startTxHash,proto3" json:"startTxHash,omitempty"`  //创建候选者的交易hash
	StartIndex  int64        `protobuf:"varint,10,opt,name=startIndex,proto3" json:"startIndex,omitempty"`  //创建候选者的交易index
	Index       int64        `protobuf:"varint,11,opt,name=index,proto3" json:"index,omitempty"`
	PreIndex    int64        `protobuf:"varint,12,opt,name=preIndex,proto3" json:"preIndex,omitempty"`
	Voters      []*DposVoter `protobuf:"bytes,13,rep,name=voters,proto3" json:"voters,omitempty"`
	// contains filtered or unexported fields
}

CandidatorInfo 候选节点信息

func (*CandidatorInfo) Descriptor deprecated

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

Deprecated: Use CandidatorInfo.ProtoReflect.Descriptor instead.

func (*CandidatorInfo) GetAddress

func (x *CandidatorInfo) GetAddress() string

func (*CandidatorInfo) GetIP

func (x *CandidatorInfo) GetIP() string

func (*CandidatorInfo) GetIndex

func (x *CandidatorInfo) GetIndex() int64

func (*CandidatorInfo) GetPreIndex

func (x *CandidatorInfo) GetPreIndex() int64

func (*CandidatorInfo) GetPreStatus

func (x *CandidatorInfo) GetPreStatus() int64

func (*CandidatorInfo) GetPubkey

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

func (*CandidatorInfo) GetStartHeight

func (x *CandidatorInfo) GetStartHeight() int64

func (*CandidatorInfo) GetStartIndex

func (x *CandidatorInfo) GetStartIndex() int64

func (*CandidatorInfo) GetStartTime

func (x *CandidatorInfo) GetStartTime() int64

func (*CandidatorInfo) GetStartTxHash

func (x *CandidatorInfo) GetStartTxHash() string

func (*CandidatorInfo) GetStatus

func (x *CandidatorInfo) GetStatus() int64

func (*CandidatorInfo) GetVoters

func (x *CandidatorInfo) GetVoters() []*DposVoter

func (*CandidatorInfo) GetVotes

func (x *CandidatorInfo) GetVotes() int64

func (*CandidatorInfo) ProtoMessage

func (*CandidatorInfo) ProtoMessage()

func (*CandidatorInfo) ProtoReflect added in v1.65.3

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

func (*CandidatorInfo) Reset

func (x *CandidatorInfo) Reset()

func (*CandidatorInfo) String

func (x *CandidatorInfo) String() string

type CandidatorQuery

type CandidatorQuery struct {
	Pubkeys []string `protobuf:"bytes,1,rep,name=pubkeys,proto3" json:"pubkeys,omitempty"` //候选节点公钥集合
	TopN    int32    `protobuf:"varint,2,opt,name=topN,proto3" json:"topN,omitempty"`      // topN
	Ty      int32    `protobuf:"varint,3,opt,name=ty,proto3" json:"ty,omitempty"`          // 1:按公钥集合查询,2:按topN票数查询
	// contains filtered or unexported fields
}

CandidatorQuery 候选节点查询

func (*CandidatorQuery) Descriptor deprecated

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

Deprecated: Use CandidatorQuery.ProtoReflect.Descriptor instead.

func (*CandidatorQuery) GetPubkeys

func (x *CandidatorQuery) GetPubkeys() []string

func (*CandidatorQuery) GetTopN

func (x *CandidatorQuery) GetTopN() int32

func (*CandidatorQuery) GetTy

func (x *CandidatorQuery) GetTy() int32

func (*CandidatorQuery) ProtoMessage

func (*CandidatorQuery) ProtoMessage()

func (*CandidatorQuery) ProtoReflect added in v1.65.3

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

func (*CandidatorQuery) Reset

func (x *CandidatorQuery) Reset()

func (*CandidatorQuery) String

func (x *CandidatorQuery) String() string

type CandidatorReply

type CandidatorReply struct {
	Candidators []*JSONCandidator `protobuf:"bytes,1,rep,name=candidators,proto3" json:"candidators,omitempty"` //候选节点
	// contains filtered or unexported fields
}

CandidatorReply 候选节点查询响应

func (*CandidatorReply) Descriptor deprecated

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

Deprecated: Use CandidatorReply.ProtoReflect.Descriptor instead.

func (*CandidatorReply) GetCandidators

func (x *CandidatorReply) GetCandidators() []*JSONCandidator

func (*CandidatorReply) ProtoMessage

func (*CandidatorReply) ProtoMessage()

func (*CandidatorReply) ProtoReflect added in v1.65.3

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

func (*CandidatorReply) Reset

func (x *CandidatorReply) Reset()

func (*CandidatorReply) String

func (x *CandidatorReply) String() string

type CanonicalOnceCBInfo

type CanonicalOnceCBInfo struct {
	Cycle      int64  `json:"cycle,omitempty"`
	StopHeight int64  `json:"stopHeight,omitempty"`
	StopHash   string `json:"stopHash,omitempty"`
	Pubkey     string `json:"pubkey,omitempty"`
}

CanonicalOnceCBInfo ...

func CanonicalCBInfo

func CanonicalCBInfo(cb *DposCBInfo) CanonicalOnceCBInfo

CanonicalCBInfo ...

type CanonicalOnceTopNCandidator

type CanonicalOnceTopNCandidator struct {
	Cands        []*OnceCandidator `json:"cands,omitempty"`
	Hash         []byte            `json:"hash,omitempty"`
	Height       int64             `json:"height,omitempty"`
	SignerPubkey []byte            `json:"signerPubkey,omitempty"`
	Signature    []byte            `json:"signature,omitempty"`
}

CanonicalOnceTopNCandidator ...

func CanonicalTopNCandidator

func CanonicalTopNCandidator(topN *TopNCandidator) CanonicalOnceTopNCandidator

CanonicalTopNCandidator ...

func (*CanonicalOnceTopNCandidator) ID

func (topN *CanonicalOnceTopNCandidator) ID() []byte

ID ...

type DPosType

type DPosType struct {
	types.ExecTypeBase
}

DPosType struct

func NewType

func NewType(cfg *types.Chain33Config) *DPosType

NewType method

func (*DPosType) GetLogMap

func (t *DPosType) GetLogMap() map[int64]*types.LogInfo

GetLogMap method

func (*DPosType) GetPayload

func (t *DPosType) GetPayload() types.Message

GetPayload method

func (*DPosType) GetTypeMap

func (t *DPosType) GetTypeMap() map[string]int32

GetTypeMap method

type DposCBInfo

type DposCBInfo struct {
	Cycle      int64  `protobuf:"varint,1,opt,name=cycle,proto3" json:"cycle,omitempty"`
	StopHeight int64  `protobuf:"varint,2,opt,name=stopHeight,proto3" json:"stopHeight,omitempty"`
	StopHash   string `protobuf:"bytes,3,opt,name=stopHash,proto3" json:"stopHash,omitempty"`
	Pubkey     string `protobuf:"bytes,4,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Signature  string `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

DposCBInfo cycle边界记录请求消息

func (*DposCBInfo) Descriptor deprecated

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

Deprecated: Use DposCBInfo.ProtoReflect.Descriptor instead.

func (*DposCBInfo) GetCycle

func (x *DposCBInfo) GetCycle() int64

func (*DposCBInfo) GetPubkey

func (x *DposCBInfo) GetPubkey() string

func (*DposCBInfo) GetSignature

func (x *DposCBInfo) GetSignature() string

func (*DposCBInfo) GetStopHash

func (x *DposCBInfo) GetStopHash() string

func (*DposCBInfo) GetStopHeight

func (x *DposCBInfo) GetStopHeight() int64

func (*DposCBInfo) ProtoMessage

func (*DposCBInfo) ProtoMessage()

func (*DposCBInfo) ProtoReflect added in v1.65.3

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

func (*DposCBInfo) Reset

func (x *DposCBInfo) Reset()

func (*DposCBInfo) String

func (x *DposCBInfo) String() string

func (*DposCBInfo) Verify

func (cb *DposCBInfo) Verify() error

Verify ...

type DposCBQuery

type DposCBQuery struct {
	Cycle      int64  `protobuf:"varint,1,opt,name=cycle,proto3" json:"cycle,omitempty"`
	StopHeight int64  `protobuf:"varint,2,opt,name=stopHeight,proto3" json:"stopHeight,omitempty"`
	StopHash   string `protobuf:"bytes,3,opt,name=stopHash,proto3" json:"stopHash,omitempty"`
	Ty         int32  `protobuf:"varint,4,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

DposCBQuery cycle边界记录查询请求

func (*DposCBQuery) Descriptor deprecated

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

Deprecated: Use DposCBQuery.ProtoReflect.Descriptor instead.

func (*DposCBQuery) GetCycle

func (x *DposCBQuery) GetCycle() int64

func (*DposCBQuery) GetStopHash

func (x *DposCBQuery) GetStopHash() string

func (*DposCBQuery) GetStopHeight

func (x *DposCBQuery) GetStopHeight() int64

func (*DposCBQuery) GetTy

func (x *DposCBQuery) GetTy() int32

func (*DposCBQuery) ProtoMessage

func (*DposCBQuery) ProtoMessage()

func (*DposCBQuery) ProtoReflect added in v1.65.3

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

func (*DposCBQuery) Reset

func (x *DposCBQuery) Reset()

func (*DposCBQuery) String

func (x *DposCBQuery) String() string

type DposCBReply

type DposCBReply struct {
	CbInfo *DposCBInfo `protobuf:"bytes,1,opt,name=cbInfo,proto3" json:"cbInfo,omitempty"`
	// contains filtered or unexported fields
}

DposCBReply cycle边界记录查询响应

func (*DposCBReply) Descriptor deprecated

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

Deprecated: Use DposCBReply.ProtoReflect.Descriptor instead.

func (*DposCBReply) GetCbInfo

func (x *DposCBReply) GetCbInfo() *DposCBInfo

func (*DposCBReply) ProtoMessage

func (*DposCBReply) ProtoMessage()

func (*DposCBReply) ProtoReflect added in v1.65.3

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

func (*DposCBReply) Reset

func (x *DposCBReply) Reset()

func (*DposCBReply) String

func (x *DposCBReply) String() string

type DposCBRow

type DposCBRow struct {
	*DposCycleBoundaryInfo
}

DposCBRow table meta 结构

func NewDposCBRow

func NewDposCBRow() *DposCBRow

NewDposCBRow 新建一个meta 结构

func (*DposCBRow) CreateRow

func (tx *DposCBRow) CreateRow() *table.Row

CreateRow 新建数据行

func (*DposCBRow) Get

func (tx *DposCBRow) Get(key string) ([]byte, error)

Get 按照indexName 查询 indexValue

func (*DposCBRow) SetPayload

func (tx *DposCBRow) SetPayload(data types.Message) error

SetPayload 设置数据

type DposCancelVote

type DposCancelVote struct {
	Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"` //候选节点的公钥
	Index  int64  `protobuf:"varint,3,opt,name=index,proto3" json:"index,omitempty"`
	// contains filtered or unexported fields
}

DposCancelVote 撤销为Dpos候选节点投票

func (*DposCancelVote) Descriptor deprecated

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

Deprecated: Use DposCancelVote.ProtoReflect.Descriptor instead.

func (*DposCancelVote) GetIndex

func (x *DposCancelVote) GetIndex() int64

func (*DposCancelVote) GetPubkey

func (x *DposCancelVote) GetPubkey() string

func (*DposCancelVote) ProtoMessage

func (*DposCancelVote) ProtoMessage()

func (*DposCancelVote) ProtoReflect added in v1.65.3

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

func (*DposCancelVote) Reset

func (x *DposCancelVote) Reset()

func (*DposCancelVote) String

func (x *DposCancelVote) String() string

type DposCandidatorCancelRegist

type DposCandidatorCancelRegist struct {
	Pubkey  string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`   //候选节点的公钥
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` //候选节点的地址
	// contains filtered or unexported fields
}

DposCandidatorCancelRegist 注销Dpos候选节点,解冻抵押的币

func (*DposCandidatorCancelRegist) Descriptor deprecated

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

Deprecated: Use DposCandidatorCancelRegist.ProtoReflect.Descriptor instead.

func (*DposCandidatorCancelRegist) GetAddress

func (x *DposCandidatorCancelRegist) GetAddress() string

func (*DposCandidatorCancelRegist) GetPubkey

func (x *DposCandidatorCancelRegist) GetPubkey() string

func (*DposCandidatorCancelRegist) ProtoMessage

func (*DposCandidatorCancelRegist) ProtoMessage()

func (*DposCandidatorCancelRegist) ProtoReflect added in v1.65.3

func (*DposCandidatorCancelRegist) Reset

func (x *DposCandidatorCancelRegist) Reset()

func (*DposCandidatorCancelRegist) String

func (x *DposCandidatorCancelRegist) String() string

type DposCandidatorRegist

type DposCandidatorRegist struct {
	Pubkey  string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`   //候选节点的公钥
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` //候选节点的地址
	IP      string `protobuf:"bytes,3,opt,name=IP,proto3" json:"IP,omitempty"`           //候选节点的共识IP地址
	// contains filtered or unexported fields
}

DposCandidatorRegist 注册Dpos候选节点,必须抵押一定数量的币,比如:10000个币

func (*DposCandidatorRegist) Descriptor deprecated

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

Deprecated: Use DposCandidatorRegist.ProtoReflect.Descriptor instead.

func (*DposCandidatorRegist) GetAddress

func (x *DposCandidatorRegist) GetAddress() string

func (*DposCandidatorRegist) GetIP

func (x *DposCandidatorRegist) GetIP() string

func (*DposCandidatorRegist) GetPubkey

func (x *DposCandidatorRegist) GetPubkey() string

func (*DposCandidatorRegist) ProtoMessage

func (*DposCandidatorRegist) ProtoMessage()

func (*DposCandidatorRegist) ProtoReflect added in v1.65.3

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

func (*DposCandidatorRegist) Reset

func (x *DposCandidatorRegist) Reset()

func (*DposCandidatorRegist) String

func (x *DposCandidatorRegist) String() string

type DposCandidatorRow

type DposCandidatorRow struct {
	*CandidatorInfo
}

DposCandidatorRow table meta 结构

func NewDposCandidatorRow

func NewDposCandidatorRow() *DposCandidatorRow

NewDposCandidatorRow 新建一个meta 结构

func (*DposCandidatorRow) CreateRow

func (tx *DposCandidatorRow) CreateRow() *table.Row

CreateRow 新建数据行

func (*DposCandidatorRow) Get

func (tx *DposCandidatorRow) Get(key string) ([]byte, error)

Get 按照indexName 查询 indexValue

func (*DposCandidatorRow) SetPayload

func (tx *DposCandidatorRow) SetPayload(data types.Message) error

SetPayload 设置数据

type DposCycleBoundaryInfo

type DposCycleBoundaryInfo struct {
	Cycle      int64  `protobuf:"varint,1,opt,name=cycle,proto3" json:"cycle,omitempty"`
	StopHeight int64  `protobuf:"varint,2,opt,name=stopHeight,proto3" json:"stopHeight,omitempty"`
	StopHash   []byte `protobuf:"bytes,3,opt,name=stopHash,proto3" json:"stopHash,omitempty"`
	Pubkey     []byte `protobuf:"bytes,4,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Signature  []byte `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

DposCycleBoundaryInfo cycle边界信息

func (*DposCycleBoundaryInfo) Descriptor deprecated

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

Deprecated: Use DposCycleBoundaryInfo.ProtoReflect.Descriptor instead.

func (*DposCycleBoundaryInfo) GetCycle

func (x *DposCycleBoundaryInfo) GetCycle() int64

func (*DposCycleBoundaryInfo) GetPubkey

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

func (*DposCycleBoundaryInfo) GetSignature

func (x *DposCycleBoundaryInfo) GetSignature() []byte

func (*DposCycleBoundaryInfo) GetStopHash

func (x *DposCycleBoundaryInfo) GetStopHash() []byte

func (*DposCycleBoundaryInfo) GetStopHeight

func (x *DposCycleBoundaryInfo) GetStopHeight() int64

func (*DposCycleBoundaryInfo) ProtoMessage

func (*DposCycleBoundaryInfo) ProtoMessage()

func (*DposCycleBoundaryInfo) ProtoReflect added in v1.65.3

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

func (*DposCycleBoundaryInfo) Reset

func (x *DposCycleBoundaryInfo) Reset()

func (*DposCycleBoundaryInfo) String

func (x *DposCycleBoundaryInfo) String() string

type DposVote

type DposVote struct {
	FromAddr string `protobuf:"bytes,1,opt,name=fromAddr,proto3" json:"fromAddr,omitempty"`
	Pubkey   string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` //候选节点的公钥
	Votes    int64  `protobuf:"varint,3,opt,name=votes,proto3" json:"votes,omitempty"`  //投给候选节点的票数,不能超过锁在合约中的未使用票数
	// contains filtered or unexported fields
}

DposVote 为Dpos候选节点投票

func (*DposVote) Descriptor deprecated

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

Deprecated: Use DposVote.ProtoReflect.Descriptor instead.

func (*DposVote) GetFromAddr

func (x *DposVote) GetFromAddr() string

func (*DposVote) GetPubkey

func (x *DposVote) GetPubkey() string

func (*DposVote) GetVotes

func (x *DposVote) GetVotes() int64

func (*DposVote) ProtoMessage

func (*DposVote) ProtoMessage()

func (*DposVote) ProtoReflect added in v1.65.3

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

func (*DposVote) Reset

func (x *DposVote) Reset()

func (*DposVote) String

func (x *DposVote) String() string

type DposVoteAction

type DposVoteAction struct {

	// Types that are assignable to Value:
	//	*DposVoteAction_Regist
	//	*DposVoteAction_CancelRegist
	//	*DposVoteAction_ReRegist
	//	*DposVoteAction_Vote
	//	*DposVoteAction_CancelVote
	//	*DposVoteAction_CandidatorQuery
	//	*DposVoteAction_VoteQuery
	//	*DposVoteAction_RegistVrfM
	//	*DposVoteAction_RegistVrfRP
	//	*DposVoteAction_VrfQuery
	//	*DposVoteAction_RecordCB
	//	*DposVoteAction_CbQuery
	//	*DposVoteAction_RegistTopN
	//	*DposVoteAction_TopNQuery
	Value isDposVoteAction_Value `protobuf_oneof:"value"`
	Ty    int32                  `protobuf:"varint,15,opt,name=ty,proto3" json:"ty,omitempty"`
	// contains filtered or unexported fields
}

DposVoteAction DposVote动作

func (*DposVoteAction) Descriptor deprecated

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

Deprecated: Use DposVoteAction.ProtoReflect.Descriptor instead.

func (*DposVoteAction) GetCancelRegist

func (x *DposVoteAction) GetCancelRegist() *DposCandidatorCancelRegist

func (*DposVoteAction) GetCancelVote

func (x *DposVoteAction) GetCancelVote() *DposCancelVote

func (*DposVoteAction) GetCandidatorQuery

func (x *DposVoteAction) GetCandidatorQuery() *CandidatorQuery

func (*DposVoteAction) GetCbQuery

func (x *DposVoteAction) GetCbQuery() *DposCBQuery

func (*DposVoteAction) GetReRegist

func (x *DposVoteAction) GetReRegist() *DposCandidatorRegist

func (*DposVoteAction) GetRecordCB

func (x *DposVoteAction) GetRecordCB() *DposCBInfo

func (*DposVoteAction) GetRegist

func (x *DposVoteAction) GetRegist() *DposCandidatorRegist

func (*DposVoteAction) GetRegistTopN

func (x *DposVoteAction) GetRegistTopN() *TopNCandidatorRegist

func (*DposVoteAction) GetRegistVrfM

func (x *DposVoteAction) GetRegistVrfM() *DposVrfMRegist

func (*DposVoteAction) GetRegistVrfRP

func (x *DposVoteAction) GetRegistVrfRP() *DposVrfRPRegist

func (*DposVoteAction) GetTopNQuery

func (x *DposVoteAction) GetTopNQuery() *TopNCandidatorsQuery

func (*DposVoteAction) GetTy

func (x *DposVoteAction) GetTy() int32

func (*DposVoteAction) GetValue

func (m *DposVoteAction) GetValue() isDposVoteAction_Value

func (*DposVoteAction) GetVote

func (x *DposVoteAction) GetVote() *DposVote

func (*DposVoteAction) GetVoteQuery

func (x *DposVoteAction) GetVoteQuery() *DposVoteQuery

func (*DposVoteAction) GetVrfQuery

func (x *DposVoteAction) GetVrfQuery() *DposVrfQuery

func (*DposVoteAction) ProtoMessage

func (*DposVoteAction) ProtoMessage()

func (*DposVoteAction) ProtoReflect added in v1.65.3

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

func (*DposVoteAction) Reset

func (x *DposVoteAction) Reset()

func (*DposVoteAction) String

func (x *DposVoteAction) String() string

type DposVoteAction_CancelRegist

type DposVoteAction_CancelRegist struct {
	CancelRegist *DposCandidatorCancelRegist `protobuf:"bytes,2,opt,name=cancelRegist,proto3,oneof"`
}

type DposVoteAction_CancelVote

type DposVoteAction_CancelVote struct {
	CancelVote *DposCancelVote `protobuf:"bytes,5,opt,name=cancelVote,proto3,oneof"`
}

type DposVoteAction_CandidatorQuery

type DposVoteAction_CandidatorQuery struct {
	CandidatorQuery *CandidatorQuery `protobuf:"bytes,6,opt,name=candidatorQuery,proto3,oneof"`
}

type DposVoteAction_CbQuery

type DposVoteAction_CbQuery struct {
	CbQuery *DposCBQuery `protobuf:"bytes,12,opt,name=cbQuery,proto3,oneof"`
}

type DposVoteAction_ReRegist

type DposVoteAction_ReRegist struct {
	ReRegist *DposCandidatorRegist `protobuf:"bytes,3,opt,name=reRegist,proto3,oneof"`
}

type DposVoteAction_RecordCB

type DposVoteAction_RecordCB struct {
	RecordCB *DposCBInfo `protobuf:"bytes,11,opt,name=recordCB,proto3,oneof"`
}

type DposVoteAction_Regist

type DposVoteAction_Regist struct {
	Regist *DposCandidatorRegist `protobuf:"bytes,1,opt,name=regist,proto3,oneof"`
}

type DposVoteAction_RegistTopN

type DposVoteAction_RegistTopN struct {
	RegistTopN *TopNCandidatorRegist `protobuf:"bytes,13,opt,name=registTopN,proto3,oneof"`
}

type DposVoteAction_RegistVrfM

type DposVoteAction_RegistVrfM struct {
	RegistVrfM *DposVrfMRegist `protobuf:"bytes,8,opt,name=registVrfM,proto3,oneof"`
}

type DposVoteAction_RegistVrfRP

type DposVoteAction_RegistVrfRP struct {
	RegistVrfRP *DposVrfRPRegist `protobuf:"bytes,9,opt,name=registVrfRP,proto3,oneof"`
}

type DposVoteAction_TopNQuery

type DposVoteAction_TopNQuery struct {
	TopNQuery *TopNCandidatorsQuery `protobuf:"bytes,14,opt,name=topNQuery,proto3,oneof"`
}

type DposVoteAction_Vote

type DposVoteAction_Vote struct {
	Vote *DposVote `protobuf:"bytes,4,opt,name=vote,proto3,oneof"`
}

type DposVoteAction_VoteQuery

type DposVoteAction_VoteQuery struct {
	VoteQuery *DposVoteQuery `protobuf:"bytes,7,opt,name=voteQuery,proto3,oneof"`
}

type DposVoteAction_VrfQuery

type DposVoteAction_VrfQuery struct {
	VrfQuery *DposVrfQuery `protobuf:"bytes,10,opt,name=vrfQuery,proto3,oneof"`
}

type DposVoteQuery

type DposVoteQuery struct {
	Pubkeys []string `protobuf:"bytes,1,rep,name=pubkeys,proto3" json:"pubkeys,omitempty"` //候选节点的公钥,如果为空,则查询所有,否则,查询该地址给具体候选节点的投票
	Addr    string   `protobuf:"bytes,2,opt,name=addr,proto3" json:"addr,omitempty"`       //要查询的地址
	// contains filtered or unexported fields
}

DposVoteQuery 投票查询

func (*DposVoteQuery) Descriptor deprecated

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

Deprecated: Use DposVoteQuery.ProtoReflect.Descriptor instead.

func (*DposVoteQuery) GetAddr

func (x *DposVoteQuery) GetAddr() string

func (*DposVoteQuery) GetPubkeys

func (x *DposVoteQuery) GetPubkeys() []string

func (*DposVoteQuery) ProtoMessage

func (*DposVoteQuery) ProtoMessage()

func (*DposVoteQuery) ProtoReflect added in v1.65.3

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

func (*DposVoteQuery) Reset

func (x *DposVoteQuery) Reset()

func (*DposVoteQuery) String

func (x *DposVoteQuery) String() string

type DposVoteReply

type DposVoteReply struct {
	Votes []*JSONDposVoter `protobuf:"bytes,1,rep,name=votes,proto3" json:"votes,omitempty"` //某地址对具体候选节点的投票情况
	// contains filtered or unexported fields
}

DposVoteReply 投票查询响应

func (*DposVoteReply) Descriptor deprecated

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

Deprecated: Use DposVoteReply.ProtoReflect.Descriptor instead.

func (*DposVoteReply) GetVotes

func (x *DposVoteReply) GetVotes() []*JSONDposVoter

func (*DposVoteReply) ProtoMessage

func (*DposVoteReply) ProtoMessage()

func (*DposVoteReply) ProtoReflect added in v1.65.3

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

func (*DposVoteReply) Reset

func (x *DposVoteReply) Reset()

func (*DposVoteReply) String

func (x *DposVoteReply) String() string

type DposVoter

type DposVoter struct {
	FromAddr string `protobuf:"bytes,1,opt,name=fromAddr,proto3" json:"fromAddr,omitempty"`
	Pubkey   []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` //候选节点的公钥
	Votes    int64  `protobuf:"varint,3,opt,name=votes,proto3" json:"votes,omitempty"`  //投给候选节点的票数,不能超过锁在合约中的未使用票数
	Index    int64  `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	Time     int64  `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

DposVoter 投票者信息

func (*DposVoter) Descriptor deprecated

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

Deprecated: Use DposVoter.ProtoReflect.Descriptor instead.

func (*DposVoter) GetFromAddr

func (x *DposVoter) GetFromAddr() string

func (*DposVoter) GetIndex

func (x *DposVoter) GetIndex() int64

func (*DposVoter) GetPubkey

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

func (*DposVoter) GetTime

func (x *DposVoter) GetTime() int64

func (*DposVoter) GetVotes

func (x *DposVoter) GetVotes() int64

func (*DposVoter) ProtoMessage

func (*DposVoter) ProtoMessage()

func (*DposVoter) ProtoReflect added in v1.65.3

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

func (*DposVoter) Reset

func (x *DposVoter) Reset()

func (*DposVoter) String

func (x *DposVoter) String() string

type DposVoterRow

type DposVoterRow struct {
	*DposVoter
}

DposVoterRow table meta 结构

func NewDposVoterRow

func NewDposVoterRow() *DposVoterRow

NewDposVoterRow 新建一个meta 结构

func (*DposVoterRow) CreateRow

func (tx *DposVoterRow) CreateRow() *table.Row

CreateRow 新建数据行

func (*DposVoterRow) Get

func (tx *DposVoterRow) Get(key string) ([]byte, error)

Get 按照indexName 查询 indexValue

func (*DposVoterRow) SetPayload

func (tx *DposVoterRow) SetPayload(data types.Message) error

SetPayload 设置数据

type DposVrfM

type DposVrfM struct {
	Index       int64  `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
	Pubkey      []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Cycle       int64  `protobuf:"varint,3,opt,name=cycle,proto3" json:"cycle,omitempty"`
	Height      int64  `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	M           []byte `protobuf:"bytes,5,opt,name=m,proto3" json:"m,omitempty"` // vrf的输入
	Time        int64  `protobuf:"varint,6,opt,name=time,proto3" json:"time,omitempty"`
	CycleStart  int64  `protobuf:"varint,7,opt,name=cycleStart,proto3" json:"cycleStart,omitempty"`
	CycleMiddle int64  `protobuf:"varint,8,opt,name=cycleMiddle,proto3" json:"cycleMiddle,omitempty"`
	CycleStop   int64  `protobuf:"varint,9,opt,name=cycleStop,proto3" json:"cycleStop,omitempty"`
	// contains filtered or unexported fields
}

DposVrfM VrfM信息

func (*DposVrfM) Descriptor deprecated

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

Deprecated: Use DposVrfM.ProtoReflect.Descriptor instead.

func (*DposVrfM) GetCycle

func (x *DposVrfM) GetCycle() int64

func (*DposVrfM) GetCycleMiddle

func (x *DposVrfM) GetCycleMiddle() int64

func (*DposVrfM) GetCycleStart

func (x *DposVrfM) GetCycleStart() int64

func (*DposVrfM) GetCycleStop

func (x *DposVrfM) GetCycleStop() int64

func (*DposVrfM) GetHeight

func (x *DposVrfM) GetHeight() int64

func (*DposVrfM) GetIndex

func (x *DposVrfM) GetIndex() int64

func (*DposVrfM) GetM

func (x *DposVrfM) GetM() []byte

func (*DposVrfM) GetPubkey

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

func (*DposVrfM) GetTime

func (x *DposVrfM) GetTime() int64

func (*DposVrfM) ProtoMessage

func (*DposVrfM) ProtoMessage()

func (*DposVrfM) ProtoReflect added in v1.65.3

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

func (*DposVrfM) Reset

func (x *DposVrfM) Reset()

func (*DposVrfM) String

func (x *DposVrfM) String() string

type DposVrfMRegist

type DposVrfMRegist struct {
	Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Cycle  int64  `protobuf:"varint,2,opt,name=cycle,proto3" json:"cycle,omitempty"`
	M      string `protobuf:"bytes,3,opt,name=m,proto3" json:"m,omitempty"` // vrf的输入
	// contains filtered or unexported fields
}

DposVrfMRegist VrfM注册请求

func (*DposVrfMRegist) Descriptor deprecated

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

Deprecated: Use DposVrfMRegist.ProtoReflect.Descriptor instead.

func (*DposVrfMRegist) GetCycle

func (x *DposVrfMRegist) GetCycle() int64

func (*DposVrfMRegist) GetM

func (x *DposVrfMRegist) GetM() string

func (*DposVrfMRegist) GetPubkey

func (x *DposVrfMRegist) GetPubkey() string

func (*DposVrfMRegist) ProtoMessage

func (*DposVrfMRegist) ProtoMessage()

func (*DposVrfMRegist) ProtoReflect added in v1.65.3

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

func (*DposVrfMRegist) Reset

func (x *DposVrfMRegist) Reset()

func (*DposVrfMRegist) String

func (x *DposVrfMRegist) String() string

type DposVrfMRow

type DposVrfMRow struct {
	*DposVrfM
}

DposVrfMRow table meta 结构

func NewDposVrfMRow

func NewDposVrfMRow() *DposVrfMRow

NewDposVrfMRow 新建一个meta 结构

func (*DposVrfMRow) CreateRow

func (tx *DposVrfMRow) CreateRow() *table.Row

CreateRow 新建数据行

func (*DposVrfMRow) Get

func (tx *DposVrfMRow) Get(key string) ([]byte, error)

Get 按照indexName 查询 indexValue

func (*DposVrfMRow) SetPayload

func (tx *DposVrfMRow) SetPayload(data types.Message) error

SetPayload 设置数据

type DposVrfQuery

type DposVrfQuery struct {
	Pubkeys   []string `protobuf:"bytes,1,rep,name=pubkeys,proto3" json:"pubkeys,omitempty"`
	Ty        int64    `protobuf:"varint,2,opt,name=ty,proto3" json:"ty,omitempty"`
	Timestamp int64    `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
	Cycle     int64    `protobuf:"varint,4,opt,name=cycle,proto3" json:"cycle,omitempty"`
	// contains filtered or unexported fields
}

DposVrfQuery vrf查询请求

func (*DposVrfQuery) Descriptor deprecated

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

Deprecated: Use DposVrfQuery.ProtoReflect.Descriptor instead.

func (*DposVrfQuery) GetCycle

func (x *DposVrfQuery) GetCycle() int64

func (*DposVrfQuery) GetPubkeys

func (x *DposVrfQuery) GetPubkeys() []string

func (*DposVrfQuery) GetTimestamp

func (x *DposVrfQuery) GetTimestamp() int64

func (*DposVrfQuery) GetTy

func (x *DposVrfQuery) GetTy() int64

func (*DposVrfQuery) ProtoMessage

func (*DposVrfQuery) ProtoMessage()

func (*DposVrfQuery) ProtoReflect added in v1.65.3

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

func (*DposVrfQuery) Reset

func (x *DposVrfQuery) Reset()

func (*DposVrfQuery) String

func (x *DposVrfQuery) String() string

type DposVrfRP

type DposVrfRP struct {
	Index       int64  `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
	Pubkey      []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Cycle       int64  `protobuf:"varint,3,opt,name=cycle,proto3" json:"cycle,omitempty"`
	Height      int64  `protobuf:"varint,4,opt,name=height,proto3" json:"height,omitempty"`
	M           []byte `protobuf:"bytes,5,opt,name=m,proto3" json:"m,omitempty"` // vrf的输入
	R           []byte `protobuf:"bytes,6,opt,name=r,proto3" json:"r,omitempty"` // vrf的hash
	P           []byte `protobuf:"bytes,7,opt,name=p,proto3" json:"p,omitempty"` // vrf的hash的proof
	Time        int64  `protobuf:"varint,8,opt,name=time,proto3" json:"time,omitempty"`
	CycleStart  int64  `protobuf:"varint,9,opt,name=cycleStart,proto3" json:"cycleStart,omitempty"`
	CycleMiddle int64  `protobuf:"varint,10,opt,name=cycleMiddle,proto3" json:"cycleMiddle,omitempty"`
	CycleStop   int64  `protobuf:"varint,11,opt,name=cycleStop,proto3" json:"cycleStop,omitempty"`
	// contains filtered or unexported fields
}

DposVrfRP VrfRP信息

func (*DposVrfRP) Descriptor deprecated

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

Deprecated: Use DposVrfRP.ProtoReflect.Descriptor instead.

func (*DposVrfRP) GetCycle

func (x *DposVrfRP) GetCycle() int64

func (*DposVrfRP) GetCycleMiddle

func (x *DposVrfRP) GetCycleMiddle() int64

func (*DposVrfRP) GetCycleStart

func (x *DposVrfRP) GetCycleStart() int64

func (*DposVrfRP) GetCycleStop

func (x *DposVrfRP) GetCycleStop() int64

func (*DposVrfRP) GetHeight

func (x *DposVrfRP) GetHeight() int64

func (*DposVrfRP) GetIndex

func (x *DposVrfRP) GetIndex() int64

func (*DposVrfRP) GetM

func (x *DposVrfRP) GetM() []byte

func (*DposVrfRP) GetP

func (x *DposVrfRP) GetP() []byte

func (*DposVrfRP) GetPubkey

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

func (*DposVrfRP) GetR

func (x *DposVrfRP) GetR() []byte

func (*DposVrfRP) GetTime

func (x *DposVrfRP) GetTime() int64

func (*DposVrfRP) ProtoMessage

func (*DposVrfRP) ProtoMessage()

func (*DposVrfRP) ProtoReflect added in v1.65.3

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

func (*DposVrfRP) Reset

func (x *DposVrfRP) Reset()

func (*DposVrfRP) String

func (x *DposVrfRP) String() string

type DposVrfRPRegist

type DposVrfRPRegist struct {
	Pubkey string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Cycle  int64  `protobuf:"varint,2,opt,name=cycle,proto3" json:"cycle,omitempty"`
	R      string `protobuf:"bytes,3,opt,name=r,proto3" json:"r,omitempty"` // vrf的hash
	P      string `protobuf:"bytes,4,opt,name=p,proto3" json:"p,omitempty"` // vrf的hash的proof
	// contains filtered or unexported fields
}

DposVrfRPRegist VrfRP注册请求

func (*DposVrfRPRegist) Descriptor deprecated

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

Deprecated: Use DposVrfRPRegist.ProtoReflect.Descriptor instead.

func (*DposVrfRPRegist) GetCycle

func (x *DposVrfRPRegist) GetCycle() int64

func (*DposVrfRPRegist) GetP

func (x *DposVrfRPRegist) GetP() string

func (*DposVrfRPRegist) GetPubkey

func (x *DposVrfRPRegist) GetPubkey() string

func (*DposVrfRPRegist) GetR

func (x *DposVrfRPRegist) GetR() string

func (*DposVrfRPRegist) ProtoMessage

func (*DposVrfRPRegist) ProtoMessage()

func (*DposVrfRPRegist) ProtoReflect added in v1.65.3

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

func (*DposVrfRPRegist) Reset

func (x *DposVrfRPRegist) Reset()

func (*DposVrfRPRegist) String

func (x *DposVrfRPRegist) String() string

type DposVrfRPRow

type DposVrfRPRow struct {
	*DposVrfRP
}

DposVrfRPRow table meta 结构

func NewDposVrfRPRow

func NewDposVrfRPRow() *DposVrfRPRow

NewDposVrfRPRow 新建一个meta 结构

func (*DposVrfRPRow) CreateRow

func (tx *DposVrfRPRow) CreateRow() *table.Row

CreateRow 新建数据行

func (*DposVrfRPRow) Get

func (tx *DposVrfRPRow) Get(key string) ([]byte, error)

Get 按照indexName 查询 indexValue

func (*DposVrfRPRow) SetPayload

func (tx *DposVrfRPRow) SetPayload(data types.Message) error

SetPayload 设置数据

type DposVrfReply

type DposVrfReply struct {
	Vrf []*JSONVrfInfo `protobuf:"bytes,1,rep,name=vrf,proto3" json:"vrf,omitempty"`
	// contains filtered or unexported fields
}

DposVrfReply vrf查询响应

func (*DposVrfReply) Descriptor deprecated

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

Deprecated: Use DposVrfReply.ProtoReflect.Descriptor instead.

func (*DposVrfReply) GetVrf

func (x *DposVrfReply) GetVrf() []*JSONVrfInfo

func (*DposVrfReply) ProtoMessage

func (*DposVrfReply) ProtoMessage()

func (*DposVrfReply) ProtoReflect added in v1.65.3

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

func (*DposVrfReply) Reset

func (x *DposVrfReply) Reset()

func (*DposVrfReply) String

func (x *DposVrfReply) String() string

type JSONCandidator

type JSONCandidator struct {
	Pubkey  string `protobuf:"bytes,1,opt,name=pubkey,proto3" json:"pubkey,omitempty"`   //候选节点的公钥
	Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` //后续节点的地址
	IP      string `protobuf:"bytes,3,opt,name=IP,proto3" json:"IP,omitempty"`           //候选节点的运行IP
	Votes   int64  `protobuf:"varint,4,opt,name=votes,proto3" json:"votes,omitempty"`    //候选节点的投票数
	Status  int64  `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`  //候选节点的状态,0:注册,1:当选,2:取消注册
	// contains filtered or unexported fields
}

JSONCandidator 候选节点Json格式信息

func (*JSONCandidator) Descriptor deprecated

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

Deprecated: Use JSONCandidator.ProtoReflect.Descriptor instead.

func (*JSONCandidator) GetAddress

func (x *JSONCandidator) GetAddress() string

func (*JSONCandidator) GetIP

func (x *JSONCandidator) GetIP() string

func (*JSONCandidator) GetPubkey

func (x *JSONCandidator) GetPubkey() string

func (*JSONCandidator) GetStatus

func (x *JSONCandidator) GetStatus() int64

func (*JSONCandidator) GetVotes

func (x *JSONCandidator) GetVotes() int64

func (*JSONCandidator) ProtoMessage

func (*JSONCandidator) ProtoMessage()

func (*JSONCandidator) ProtoReflect added in v1.65.3

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

func (*JSONCandidator) Reset

func (x *JSONCandidator) Reset()

func (*JSONCandidator) String

func (x *JSONCandidator) String() string

type JSONDposVoter

type JSONDposVoter struct {
	FromAddr string `protobuf:"bytes,1,opt,name=fromAddr,proto3" json:"fromAddr,omitempty"`
	Pubkey   string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"` //候选节点的公钥
	Votes    int64  `protobuf:"varint,3,opt,name=votes,proto3" json:"votes,omitempty"`  //投给候选节点的票数,不能超过锁在合约中的未使用票数
	Index    int64  `protobuf:"varint,4,opt,name=index,proto3" json:"index,omitempty"`
	Time     int64  `protobuf:"varint,5,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

JSONDposVoter Json格式的投票者信息

func (*JSONDposVoter) Descriptor deprecated

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

Deprecated: Use JSONDposVoter.ProtoReflect.Descriptor instead.

func (*JSONDposVoter) GetFromAddr

func (x *JSONDposVoter) GetFromAddr() string

func (*JSONDposVoter) GetIndex

func (x *JSONDposVoter) GetIndex() int64

func (*JSONDposVoter) GetPubkey

func (x *JSONDposVoter) GetPubkey() string

func (*JSONDposVoter) GetTime

func (x *JSONDposVoter) GetTime() int64

func (*JSONDposVoter) GetVotes

func (x *JSONDposVoter) GetVotes() int64

func (*JSONDposVoter) ProtoMessage

func (*JSONDposVoter) ProtoMessage()

func (*JSONDposVoter) ProtoReflect added in v1.65.3

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

func (*JSONDposVoter) Reset

func (x *JSONDposVoter) Reset()

func (*JSONDposVoter) String

func (x *JSONDposVoter) String() string

type JSONVrfInfo

type JSONVrfInfo struct {
	Index  int64  `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
	Pubkey string `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Cycle  int64  `protobuf:"varint,4,opt,name=cycle,proto3" json:"cycle,omitempty"`
	Height int64  `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	M      string `protobuf:"bytes,6,opt,name=m,proto3" json:"m,omitempty"`
	R      string `protobuf:"bytes,7,opt,name=r,proto3" json:"r,omitempty"`
	P      string `protobuf:"bytes,8,opt,name=p,proto3" json:"p,omitempty"`
	Time   int64  `protobuf:"varint,9,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

JSONVrfInfo json格式的vrf信息

func (*JSONVrfInfo) Descriptor deprecated

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

Deprecated: Use JSONVrfInfo.ProtoReflect.Descriptor instead.

func (*JSONVrfInfo) GetCycle

func (x *JSONVrfInfo) GetCycle() int64

func (*JSONVrfInfo) GetHeight

func (x *JSONVrfInfo) GetHeight() int64

func (*JSONVrfInfo) GetIndex

func (x *JSONVrfInfo) GetIndex() int64

func (*JSONVrfInfo) GetM

func (x *JSONVrfInfo) GetM() string

func (*JSONVrfInfo) GetP

func (x *JSONVrfInfo) GetP() string

func (*JSONVrfInfo) GetPubkey

func (x *JSONVrfInfo) GetPubkey() string

func (*JSONVrfInfo) GetR

func (x *JSONVrfInfo) GetR() string

func (*JSONVrfInfo) GetTime

func (x *JSONVrfInfo) GetTime() int64

func (*JSONVrfInfo) ProtoMessage

func (*JSONVrfInfo) ProtoMessage()

func (*JSONVrfInfo) ProtoReflect added in v1.65.3

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

func (*JSONVrfInfo) Reset

func (x *JSONVrfInfo) Reset()

func (*JSONVrfInfo) String

func (x *JSONVrfInfo) String() string

type OnceCandidator

type OnceCandidator struct {
	Pubkey  []byte `json:"pubkey,omitempty"`
	Address string `json:"address,omitempty"`
	IP      string `json:"ip,omitempty"`
}

OnceCandidator ...

type ReceiptCB

type ReceiptCB struct {
	Index       int64                  `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
	Pubkey      []byte                 `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Status      int64                  `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	Cycle       int64                  `protobuf:"varint,4,opt,name=cycle,proto3" json:"cycle,omitempty"`
	Height      int64                  `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	Time        int64                  `protobuf:"varint,6,opt,name=time,proto3" json:"time,omitempty"`
	CycleStart  int64                  `protobuf:"varint,7,opt,name=cycleStart,proto3" json:"cycleStart,omitempty"`
	CycleMiddle int64                  `protobuf:"varint,8,opt,name=cycleMiddle,proto3" json:"cycleMiddle,omitempty"`
	CycleStop   int64                  `protobuf:"varint,9,opt,name=cycleStop,proto3" json:"cycleStop,omitempty"`
	CbInfo      *DposCycleBoundaryInfo `protobuf:"bytes,10,opt,name=cbInfo,proto3" json:"cbInfo,omitempty"`
	// contains filtered or unexported fields
}

ReceiptCB CycleBoundary收据信息

func (*ReceiptCB) Descriptor deprecated

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

Deprecated: Use ReceiptCB.ProtoReflect.Descriptor instead.

func (*ReceiptCB) GetCbInfo

func (x *ReceiptCB) GetCbInfo() *DposCycleBoundaryInfo

func (*ReceiptCB) GetCycle

func (x *ReceiptCB) GetCycle() int64

func (*ReceiptCB) GetCycleMiddle

func (x *ReceiptCB) GetCycleMiddle() int64

func (*ReceiptCB) GetCycleStart

func (x *ReceiptCB) GetCycleStart() int64

func (*ReceiptCB) GetCycleStop

func (x *ReceiptCB) GetCycleStop() int64

func (*ReceiptCB) GetHeight

func (x *ReceiptCB) GetHeight() int64

func (*ReceiptCB) GetIndex

func (x *ReceiptCB) GetIndex() int64

func (*ReceiptCB) GetPubkey

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

func (*ReceiptCB) GetStatus

func (x *ReceiptCB) GetStatus() int64

func (*ReceiptCB) GetTime

func (x *ReceiptCB) GetTime() int64

func (*ReceiptCB) ProtoMessage

func (*ReceiptCB) ProtoMessage()

func (*ReceiptCB) ProtoReflect added in v1.65.3

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

func (*ReceiptCB) Reset

func (x *ReceiptCB) Reset()

func (*ReceiptCB) String

func (x *ReceiptCB) String() string

type ReceiptCandicator

type ReceiptCandicator struct {
	Index        int64           `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
	Pubkey       []byte          `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Address      string          `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
	Status       int64           `protobuf:"varint,4,opt,name=status,proto3" json:"status,omitempty"`
	PreStatus    int64           `protobuf:"varint,5,opt,name=preStatus,proto3" json:"preStatus,omitempty"`
	StatusChange bool            `protobuf:"varint,6,opt,name=statusChange,proto3" json:"statusChange,omitempty"`
	VoteType     int32           `protobuf:"varint,7,opt,name=voteType,proto3" json:"voteType,omitempty"`
	Vote         *DposVoter      `protobuf:"bytes,8,opt,name=vote,proto3" json:"vote,omitempty"`
	FromAddr     string          `protobuf:"bytes,9,opt,name=fromAddr,proto3" json:"fromAddr,omitempty"`
	CandInfo     *CandidatorInfo `protobuf:"bytes,10,opt,name=candInfo,proto3" json:"candInfo,omitempty"`
	Time         int64           `protobuf:"varint,11,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

ReceiptCandicator 候选者收据信息

func (*ReceiptCandicator) Descriptor deprecated

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

Deprecated: Use ReceiptCandicator.ProtoReflect.Descriptor instead.

func (*ReceiptCandicator) GetAddress

func (x *ReceiptCandicator) GetAddress() string

func (*ReceiptCandicator) GetCandInfo

func (x *ReceiptCandicator) GetCandInfo() *CandidatorInfo

func (*ReceiptCandicator) GetFromAddr

func (x *ReceiptCandicator) GetFromAddr() string

func (*ReceiptCandicator) GetIndex

func (x *ReceiptCandicator) GetIndex() int64

func (*ReceiptCandicator) GetPreStatus

func (x *ReceiptCandicator) GetPreStatus() int64

func (*ReceiptCandicator) GetPubkey

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

func (*ReceiptCandicator) GetStatus

func (x *ReceiptCandicator) GetStatus() int64

func (*ReceiptCandicator) GetStatusChange

func (x *ReceiptCandicator) GetStatusChange() bool

func (*ReceiptCandicator) GetTime

func (x *ReceiptCandicator) GetTime() int64

func (*ReceiptCandicator) GetVote

func (x *ReceiptCandicator) GetVote() *DposVoter

func (*ReceiptCandicator) GetVoteType

func (x *ReceiptCandicator) GetVoteType() int32

func (*ReceiptCandicator) ProtoMessage

func (*ReceiptCandicator) ProtoMessage()

func (*ReceiptCandicator) ProtoReflect added in v1.65.3

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

func (*ReceiptCandicator) Reset

func (x *ReceiptCandicator) Reset()

func (*ReceiptCandicator) String

func (x *ReceiptCandicator) String() string

type ReceiptTopN

type ReceiptTopN struct {
	Index   int64           `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
	Pubkey  []byte          `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Status  int64           `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	Version int64           `protobuf:"varint,4,opt,name=version,proto3" json:"version,omitempty"`
	Height  int64           `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	Time    int64           `protobuf:"varint,6,opt,name=time,proto3" json:"time,omitempty"`
	TopN    *TopNCandidator `protobuf:"bytes,10,opt,name=topN,proto3" json:"topN,omitempty"`
	// contains filtered or unexported fields
}

ReceiptTopN topN注册的收据信息

func (*ReceiptTopN) Descriptor deprecated

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

Deprecated: Use ReceiptTopN.ProtoReflect.Descriptor instead.

func (*ReceiptTopN) GetHeight

func (x *ReceiptTopN) GetHeight() int64

func (*ReceiptTopN) GetIndex

func (x *ReceiptTopN) GetIndex() int64

func (*ReceiptTopN) GetPubkey

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

func (*ReceiptTopN) GetStatus

func (x *ReceiptTopN) GetStatus() int64

func (*ReceiptTopN) GetTime

func (x *ReceiptTopN) GetTime() int64

func (*ReceiptTopN) GetTopN

func (x *ReceiptTopN) GetTopN() *TopNCandidator

func (*ReceiptTopN) GetVersion

func (x *ReceiptTopN) GetVersion() int64

func (*ReceiptTopN) ProtoMessage

func (*ReceiptTopN) ProtoMessage()

func (*ReceiptTopN) ProtoReflect added in v1.65.3

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

func (*ReceiptTopN) Reset

func (x *ReceiptTopN) Reset()

func (*ReceiptTopN) String

func (x *ReceiptTopN) String() string

type ReceiptVrf

type ReceiptVrf struct {
	Index       int64  `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
	Pubkey      []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Status      int64  `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	Cycle       int64  `protobuf:"varint,4,opt,name=cycle,proto3" json:"cycle,omitempty"`
	Height      int64  `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	M           []byte `protobuf:"bytes,6,opt,name=m,proto3" json:"m,omitempty"`
	R           []byte `protobuf:"bytes,7,opt,name=r,proto3" json:"r,omitempty"`
	P           []byte `protobuf:"bytes,8,opt,name=p,proto3" json:"p,omitempty"`
	Time        int64  `protobuf:"varint,9,opt,name=time,proto3" json:"time,omitempty"`
	CycleStart  int64  `protobuf:"varint,10,opt,name=cycleStart,proto3" json:"cycleStart,omitempty"`
	CycleMiddle int64  `protobuf:"varint,11,opt,name=cycleMiddle,proto3" json:"cycleMiddle,omitempty"`
	CycleStop   int64  `protobuf:"varint,12,opt,name=cycleStop,proto3" json:"cycleStop,omitempty"`
	// contains filtered or unexported fields
}

ReceiptVrf vrf收据信息

func (*ReceiptVrf) Descriptor deprecated

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

Deprecated: Use ReceiptVrf.ProtoReflect.Descriptor instead.

func (*ReceiptVrf) GetCycle

func (x *ReceiptVrf) GetCycle() int64

func (*ReceiptVrf) GetCycleMiddle

func (x *ReceiptVrf) GetCycleMiddle() int64

func (*ReceiptVrf) GetCycleStart

func (x *ReceiptVrf) GetCycleStart() int64

func (*ReceiptVrf) GetCycleStop

func (x *ReceiptVrf) GetCycleStop() int64

func (*ReceiptVrf) GetHeight

func (x *ReceiptVrf) GetHeight() int64

func (*ReceiptVrf) GetIndex

func (x *ReceiptVrf) GetIndex() int64

func (*ReceiptVrf) GetM

func (x *ReceiptVrf) GetM() []byte

func (*ReceiptVrf) GetP

func (x *ReceiptVrf) GetP() []byte

func (*ReceiptVrf) GetPubkey

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

func (*ReceiptVrf) GetR

func (x *ReceiptVrf) GetR() []byte

func (*ReceiptVrf) GetStatus

func (x *ReceiptVrf) GetStatus() int64

func (*ReceiptVrf) GetTime

func (x *ReceiptVrf) GetTime() int64

func (*ReceiptVrf) ProtoMessage

func (*ReceiptVrf) ProtoMessage()

func (*ReceiptVrf) ProtoReflect added in v1.65.3

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

func (*ReceiptVrf) Reset

func (x *ReceiptVrf) Reset()

func (*ReceiptVrf) String

func (x *ReceiptVrf) String() string

type TopNCandidator

type TopNCandidator struct {
	Cands        []*Candidator `protobuf:"bytes,1,rep,name=cands,proto3" json:"cands,omitempty"`
	Hash         []byte        `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
	Height       int64         `protobuf:"varint,3,opt,name=height,proto3" json:"height,omitempty"`
	SignerPubkey []byte        `protobuf:"bytes,4,opt,name=signerPubkey,proto3" json:"signerPubkey,omitempty"`
	Signature    []byte        `protobuf:"bytes,5,opt,name=signature,proto3" json:"signature,omitempty"`
	// contains filtered or unexported fields
}

TopNCandidator topN候选者

func (*TopNCandidator) Descriptor deprecated

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

Deprecated: Use TopNCandidator.ProtoReflect.Descriptor instead.

func (*TopNCandidator) GetCands

func (x *TopNCandidator) GetCands() []*Candidator

func (*TopNCandidator) GetHash

func (x *TopNCandidator) GetHash() []byte

func (*TopNCandidator) GetHeight

func (x *TopNCandidator) GetHeight() int64

func (*TopNCandidator) GetSignature

func (x *TopNCandidator) GetSignature() []byte

func (*TopNCandidator) GetSignerPubkey

func (x *TopNCandidator) GetSignerPubkey() []byte

func (*TopNCandidator) ProtoMessage

func (*TopNCandidator) ProtoMessage()

func (*TopNCandidator) ProtoReflect added in v1.65.3

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

func (*TopNCandidator) Reset

func (x *TopNCandidator) Reset()

func (*TopNCandidator) String

func (x *TopNCandidator) String() string

func (*TopNCandidator) Verify

func (topN *TopNCandidator) Verify() error

Verify ...

type TopNCandidatorRegist

type TopNCandidatorRegist struct {
	Cand *TopNCandidator `protobuf:"bytes,1,opt,name=cand,proto3" json:"cand,omitempty"`
	// contains filtered or unexported fields
}

TopNCandidatorRegist topN候选者注册请求

func (*TopNCandidatorRegist) Descriptor deprecated

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

Deprecated: Use TopNCandidatorRegist.ProtoReflect.Descriptor instead.

func (*TopNCandidatorRegist) GetCand

func (x *TopNCandidatorRegist) GetCand() *TopNCandidator

func (*TopNCandidatorRegist) ProtoMessage

func (*TopNCandidatorRegist) ProtoMessage()

func (*TopNCandidatorRegist) ProtoReflect added in v1.65.3

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

func (*TopNCandidatorRegist) Reset

func (x *TopNCandidatorRegist) Reset()

func (*TopNCandidatorRegist) String

func (x *TopNCandidatorRegist) String() string

type TopNCandidators

type TopNCandidators struct {
	CandsVotes []*TopNCandidator `protobuf:"bytes,1,rep,name=candsVotes,proto3" json:"candsVotes,omitempty"`
	Version    int64             `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
	Status     int64             `protobuf:"varint,3,opt,name=status,proto3" json:"status,omitempty"`
	FinalCands []*Candidator     `protobuf:"bytes,4,rep,name=finalCands,proto3" json:"finalCands,omitempty"`
	// contains filtered or unexported fields
}

TopNCandidators topN候选者(复数)

func (*TopNCandidators) CheckVoteStauts

func (topNs *TopNCandidators) CheckVoteStauts(delegateNum int64)

CheckVoteStauts ...

func (*TopNCandidators) Descriptor deprecated

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

Deprecated: Use TopNCandidators.ProtoReflect.Descriptor instead.

func (*TopNCandidators) GetCandsVotes

func (x *TopNCandidators) GetCandsVotes() []*TopNCandidator

func (*TopNCandidators) GetFinalCands

func (x *TopNCandidators) GetFinalCands() []*Candidator

func (*TopNCandidators) GetStatus

func (x *TopNCandidators) GetStatus() int64

func (*TopNCandidators) GetVersion

func (x *TopNCandidators) GetVersion() int64

func (*TopNCandidators) ProtoMessage

func (*TopNCandidators) ProtoMessage()

func (*TopNCandidators) ProtoReflect added in v1.65.3

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

func (*TopNCandidators) Reset

func (x *TopNCandidators) Reset()

func (*TopNCandidators) String

func (x *TopNCandidators) String() string

type TopNCandidatorsQuery

type TopNCandidatorsQuery struct {
	Version int64 `protobuf:"varint,1,opt,name=version,proto3" json:"version,omitempty"`
	// contains filtered or unexported fields
}

TopNCandidatorsQuery topN候选者查询请求

func (*TopNCandidatorsQuery) Descriptor deprecated

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

Deprecated: Use TopNCandidatorsQuery.ProtoReflect.Descriptor instead.

func (*TopNCandidatorsQuery) GetVersion

func (x *TopNCandidatorsQuery) GetVersion() int64

func (*TopNCandidatorsQuery) ProtoMessage

func (*TopNCandidatorsQuery) ProtoMessage()

func (*TopNCandidatorsQuery) ProtoReflect added in v1.65.3

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

func (*TopNCandidatorsQuery) Reset

func (x *TopNCandidatorsQuery) Reset()

func (*TopNCandidatorsQuery) String

func (x *TopNCandidatorsQuery) String() string

type TopNCandidatorsReply

type TopNCandidatorsReply struct {
	TopN *TopNCandidators `protobuf:"bytes,1,opt,name=topN,proto3" json:"topN,omitempty"`
	// contains filtered or unexported fields
}

TopNCandidatorsReply topN候选者查询响应

func (*TopNCandidatorsReply) Descriptor deprecated

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

Deprecated: Use TopNCandidatorsReply.ProtoReflect.Descriptor instead.

func (*TopNCandidatorsReply) GetTopN

func (x *TopNCandidatorsReply) GetTopN() *TopNCandidators

func (*TopNCandidatorsReply) ProtoMessage

func (*TopNCandidatorsReply) ProtoMessage()

func (*TopNCandidatorsReply) ProtoReflect added in v1.65.3

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

func (*TopNCandidatorsReply) Reset

func (x *TopNCandidatorsReply) Reset()

func (*TopNCandidatorsReply) String

func (x *TopNCandidatorsReply) String() string

type VrfInfo

type VrfInfo struct {
	Index  int64  `protobuf:"varint,1,opt,name=Index,proto3" json:"Index,omitempty"`
	Pubkey []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
	Cycle  int64  `protobuf:"varint,4,opt,name=cycle,proto3" json:"cycle,omitempty"`
	Height int64  `protobuf:"varint,5,opt,name=height,proto3" json:"height,omitempty"`
	M      []byte `protobuf:"bytes,6,opt,name=m,proto3" json:"m,omitempty"`
	R      []byte `protobuf:"bytes,7,opt,name=r,proto3" json:"r,omitempty"`
	P      []byte `protobuf:"bytes,8,opt,name=p,proto3" json:"p,omitempty"`
	Time   int64  `protobuf:"varint,9,opt,name=time,proto3" json:"time,omitempty"`
	// contains filtered or unexported fields
}

VrfInfo vrf信息

func (*VrfInfo) Descriptor deprecated

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

Deprecated: Use VrfInfo.ProtoReflect.Descriptor instead.

func (*VrfInfo) GetCycle

func (x *VrfInfo) GetCycle() int64

func (*VrfInfo) GetHeight

func (x *VrfInfo) GetHeight() int64

func (*VrfInfo) GetIndex

func (x *VrfInfo) GetIndex() int64

func (*VrfInfo) GetM

func (x *VrfInfo) GetM() []byte

func (*VrfInfo) GetP

func (x *VrfInfo) GetP() []byte

func (*VrfInfo) GetPubkey

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

func (*VrfInfo) GetR

func (x *VrfInfo) GetR() []byte

func (*VrfInfo) GetTime

func (x *VrfInfo) GetTime() int64

func (*VrfInfo) ProtoMessage

func (*VrfInfo) ProtoMessage()

func (*VrfInfo) ProtoReflect added in v1.65.3

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

func (*VrfInfo) Reset

func (x *VrfInfo) Reset()

func (*VrfInfo) String

func (x *VrfInfo) String() string

Jump to

Keyboard shortcuts

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