systemSmartContracts

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2023 License: GPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAuction        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAuction          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupAuction = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthDct        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDct          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDct = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGovernance        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGovernance          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGovernance = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthStaking        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowStaking          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupStaking = fmt.Errorf("proto: unexpected end of group")
)

Functions

func CheckIfNil

func CheckIfNil(args *vmcommon.ContractCallInput) error

CheckIfNil verifies if contract call input is not nil

func NewDCTSmartContract

func NewDCTSmartContract(args ArgsNewDCTSmartContract) (*dct, error)

NewDCTSmartContract creates the dct smart contract, which controls the issuing of tokens

func NewGovernanceContract

func NewGovernanceContract(args ArgsNewGovernanceContract) (*governanceContract, error)

NewGovernanceContract creates a new governance smart contract

func NewStakingAuctionSmartContract

func NewStakingAuctionSmartContract(
	args ArgsStakingAuctionSmartContract,
) (*stakingAuctionSC, error)

NewStakingAuctionSmartContract creates an auction smart contract

func NewStakingSmartContract

func NewStakingSmartContract(
	args ArgsNewStakingSmartContract,
) (*stakingSC, error)

NewStakingSmartContract creates a staking smart contract

func NewVMContext

func NewVMContext(
	blockChainHook vmcommon.BlockchainHook,
	cryptoHook vmcommon.CryptoHook,
	inputParser vm.ArgumentsParser,
	validatorAccountsDB state.AccountsAdapter,
) (*vmContext, error)

NewVMContext creates a context where smart contracts can run and write

Types

type ArgsNewDCTSmartContract

type ArgsNewDCTSmartContract struct {
	Eei          vm.SystemEI
	GasCost      vm.GasCost
	DCTSCConfig  config.DCTSystemSCConfig
	DCTSCAddress []byte
	Marshalizer  marshal.Marshalizer
	Hasher       hashing.Hasher
}

ArgsNewDCTSmartContract defines the arguments needed for the dct contract

type ArgsNewGovernanceContract

type ArgsNewGovernanceContract struct {
	Eei                 vm.SystemEI
	GasCost             vm.GasCost
	GovernanceConfig    config.GovernanceSystemSCConfig
	DCTSCAddress        []byte
	Marshalizer         marshal.Marshalizer
	Hasher              hashing.Hasher
	GovernanceSCAddress []byte
	StakingSCAddress    []byte
	AuctionSCAddress    []byte
}

ArgsNewGovernanceContract defines the arguments needed for the on-chain governance contract

type ArgsNewStakingSmartContract

type ArgsNewStakingSmartContract struct {
	StakingSCConfig   config.StakingSystemSCConfig
	MinNumNodes       uint64
	Eei               vm.SystemEI
	StakingAccessAddr []byte
	JailAccessAddr    []byte
	GasCost           vm.GasCost
	Marshalizer       marshal.Marshalizer
}

ArgsNewStakingSmartContract holds the arguments needed to create a StakingSmartContract

type ArgsStakingAuctionSmartContract

type ArgsStakingAuctionSmartContract struct {
	StakingSCConfig    config.StakingSystemSCConfig
	GenesisTotalSupply *big.Int
	NumOfNodesToSelect uint64
	Eei                vm.SystemEI
	SigVerifier        vm.MessageSignVerifier
	StakingSCAddress   []byte
	AuctionSCAddress   []byte
	GasCost            vm.GasCost
	Marshalizer        marshal.Marshalizer
}

ArgsStakingAuctionSmartContract is the arguments structure to create a new StakingAuctionSmartContract

type AuctionConfig

type AuctionConfig struct {
	NumNodes      uint32        `protobuf:"varint,1,opt,name=NumNodes,proto3" json:"NumNodes"`
	MinStakeValue *math_big.Int `` /* 150-byte string literal not displayed */
	TotalSupply   *math_big.Int `` /* 146-byte string literal not displayed */
	MinStep       *math_big.Int `` /* 138-byte string literal not displayed */
	NodePrice     *math_big.Int `` /* 142-byte string literal not displayed */
	UnJailPrice   *math_big.Int `` /* 146-byte string literal not displayed */
}

func (*AuctionConfig) Descriptor

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

func (*AuctionConfig) Equal

func (this *AuctionConfig) Equal(that interface{}) bool

func (*AuctionConfig) GetMinStakeValue

func (m *AuctionConfig) GetMinStakeValue() *math_big.Int

func (*AuctionConfig) GetMinStep

func (m *AuctionConfig) GetMinStep() *math_big.Int

func (*AuctionConfig) GetNodePrice

func (m *AuctionConfig) GetNodePrice() *math_big.Int

func (*AuctionConfig) GetNumNodes

func (m *AuctionConfig) GetNumNodes() uint32

func (*AuctionConfig) GetTotalSupply

func (m *AuctionConfig) GetTotalSupply() *math_big.Int

func (*AuctionConfig) GetUnJailPrice

func (m *AuctionConfig) GetUnJailPrice() *math_big.Int

func (*AuctionConfig) GoString

func (this *AuctionConfig) GoString() string

func (*AuctionConfig) Marshal

func (m *AuctionConfig) Marshal() (dAtA []byte, err error)

func (*AuctionConfig) MarshalTo

func (m *AuctionConfig) MarshalTo(dAtA []byte) (int, error)

func (*AuctionConfig) MarshalToSizedBuffer

func (m *AuctionConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuctionConfig) ProtoMessage

func (*AuctionConfig) ProtoMessage()

func (*AuctionConfig) Reset

func (m *AuctionConfig) Reset()

func (*AuctionConfig) Size

func (m *AuctionConfig) Size() (n int)

func (*AuctionConfig) String

func (this *AuctionConfig) String() string

func (*AuctionConfig) Unmarshal

func (m *AuctionConfig) Unmarshal(dAtA []byte) error

func (*AuctionConfig) XXX_DiscardUnknown

func (m *AuctionConfig) XXX_DiscardUnknown()

func (*AuctionConfig) XXX_Marshal

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

func (*AuctionConfig) XXX_Merge

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

func (*AuctionConfig) XXX_Size

func (m *AuctionConfig) XXX_Size() int

func (*AuctionConfig) XXX_Unmarshal

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

type AuctionData

type AuctionData struct {
	RegisterNonce   uint64        `protobuf:"varint,1,opt,name=RegisterNonce,proto3" json:"RegisterNonce"`
	Epoch           uint32        `protobuf:"varint,2,opt,name=Epoch,proto3" json:"Epoch"`
	RewardAddress   []byte        `protobuf:"bytes,3,opt,name=RewardAddress,proto3" json:"RewardAddress"`
	TotalStakeValue *math_big.Int `` /* 154-byte string literal not displayed */
	LockedStake     *math_big.Int `` /* 146-byte string literal not displayed */
	MaxStakePerNode *math_big.Int `` /* 154-byte string literal not displayed */
	BlsPubKeys      [][]byte      `protobuf:"bytes,7,rep,name=BlsPubKeys,proto3" json:"BlsPubKeys"`
	NumRegistered   uint32        `protobuf:"varint,8,opt,name=NumRegistered,proto3" json:"NumRegistered"`
}

func (*AuctionData) Descriptor

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

func (*AuctionData) Equal

func (this *AuctionData) Equal(that interface{}) bool

func (*AuctionData) GetBlsPubKeys

func (m *AuctionData) GetBlsPubKeys() [][]byte

func (*AuctionData) GetEpoch

func (m *AuctionData) GetEpoch() uint32

func (*AuctionData) GetLockedStake

func (m *AuctionData) GetLockedStake() *math_big.Int

func (*AuctionData) GetMaxStakePerNode

func (m *AuctionData) GetMaxStakePerNode() *math_big.Int

func (*AuctionData) GetNumRegistered added in v0.0.2

func (m *AuctionData) GetNumRegistered() uint32

func (*AuctionData) GetRegisterNonce

func (m *AuctionData) GetRegisterNonce() uint64

func (*AuctionData) GetRewardAddress

func (m *AuctionData) GetRewardAddress() []byte

func (*AuctionData) GetTotalStakeValue

func (m *AuctionData) GetTotalStakeValue() *math_big.Int

func (*AuctionData) GoString

func (this *AuctionData) GoString() string

func (*AuctionData) Marshal

func (m *AuctionData) Marshal() (dAtA []byte, err error)

func (*AuctionData) MarshalTo

func (m *AuctionData) MarshalTo(dAtA []byte) (int, error)

func (*AuctionData) MarshalToSizedBuffer

func (m *AuctionData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*AuctionData) ProtoMessage

func (*AuctionData) ProtoMessage()

func (*AuctionData) Reset

func (m *AuctionData) Reset()

func (*AuctionData) Size

func (m *AuctionData) Size() (n int)

func (*AuctionData) String

func (this *AuctionData) String() string

func (*AuctionData) Unmarshal

func (m *AuctionData) Unmarshal(dAtA []byte) error

func (*AuctionData) XXX_DiscardUnknown

func (m *AuctionData) XXX_DiscardUnknown()

func (*AuctionData) XXX_Marshal

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

func (*AuctionData) XXX_Merge

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

func (*AuctionData) XXX_Size

func (m *AuctionData) XXX_Size() int

func (*AuctionData) XXX_Unmarshal

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

type DCTConfig

type DCTConfig struct {
	OwnerAddress       []byte        `protobuf:"bytes,1,opt,name=OwnerAddress,proto3" json:"OwnerAddress"`
	BaseIssuingCost    *math_big.Int `` /* 154-byte string literal not displayed */
	MinTokenNameLength uint32        `protobuf:"varint,3,opt,name=MinTokenNameLength,proto3" json:"MinTokenNameLength"`
	MaxTokenNameLength uint32        `protobuf:"varint,4,opt,name=MaxTokenNameLength,proto3" json:"MaxTokenNameLength"`
}

func (*DCTConfig) Descriptor

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

func (*DCTConfig) Equal

func (this *DCTConfig) Equal(that interface{}) bool

func (*DCTConfig) GetBaseIssuingCost

func (m *DCTConfig) GetBaseIssuingCost() *math_big.Int

func (*DCTConfig) GetMaxTokenNameLength

func (m *DCTConfig) GetMaxTokenNameLength() uint32

func (*DCTConfig) GetMinTokenNameLength

func (m *DCTConfig) GetMinTokenNameLength() uint32

func (*DCTConfig) GetOwnerAddress

func (m *DCTConfig) GetOwnerAddress() []byte

func (*DCTConfig) GoString

func (this *DCTConfig) GoString() string

func (*DCTConfig) Marshal

func (m *DCTConfig) Marshal() (dAtA []byte, err error)

func (*DCTConfig) MarshalTo

func (m *DCTConfig) MarshalTo(dAtA []byte) (int, error)

func (*DCTConfig) MarshalToSizedBuffer

func (m *DCTConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DCTConfig) ProtoMessage

func (*DCTConfig) ProtoMessage()

func (*DCTConfig) Reset

func (m *DCTConfig) Reset()

func (*DCTConfig) Size

func (m *DCTConfig) Size() (n int)

func (*DCTConfig) String

func (this *DCTConfig) String() string

func (*DCTConfig) Unmarshal

func (m *DCTConfig) Unmarshal(dAtA []byte) error

func (*DCTConfig) XXX_DiscardUnknown

func (m *DCTConfig) XXX_DiscardUnknown()

func (*DCTConfig) XXX_Marshal

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

func (*DCTConfig) XXX_Merge

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

func (*DCTConfig) XXX_Size

func (m *DCTConfig) XXX_Size() int

func (*DCTConfig) XXX_Unmarshal

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

type DCTData

type DCTData struct {
	IssuerAddress []byte        `protobuf:"bytes,1,opt,name=IssuerAddress,proto3" json:"IssuerAddress"`
	TokenName     []byte        `protobuf:"bytes,2,opt,name=TokenName,proto3" json:"TokenName"`
	Mintable      bool          `protobuf:"varint,3,opt,name=Mintable,proto3" json:"Mintable"`
	Burnable      bool          `protobuf:"varint,4,opt,name=Burnable,proto3" json:"Burnable"`
	CanPause      bool          `protobuf:"varint,5,opt,name=CanPause,proto3" json:"CanPause"`
	Paused        bool          `protobuf:"varint,6,opt,name=Paused,proto3" json:"Paused"`
	CanFreeze     bool          `protobuf:"varint,7,opt,name=CanFreeze,proto3" json:"CanFreeze"`
	CanWipe       bool          `protobuf:"varint,8,opt,name=CanWipe,proto3" json:"CanWipe"`
	MintedValue   *math_big.Int `` /* 146-byte string literal not displayed */
	BurntValue    *math_big.Int `` /* 145-byte string literal not displayed */
}

func (*DCTData) Descriptor

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

func (*DCTData) Equal

func (this *DCTData) Equal(that interface{}) bool

func (*DCTData) GetBurnable

func (m *DCTData) GetBurnable() bool

func (*DCTData) GetBurntValue

func (m *DCTData) GetBurntValue() *math_big.Int

func (*DCTData) GetCanFreeze

func (m *DCTData) GetCanFreeze() bool

func (*DCTData) GetCanPause

func (m *DCTData) GetCanPause() bool

func (*DCTData) GetCanWipe

func (m *DCTData) GetCanWipe() bool

func (*DCTData) GetIssuerAddress

func (m *DCTData) GetIssuerAddress() []byte

func (*DCTData) GetMintable

func (m *DCTData) GetMintable() bool

func (*DCTData) GetMintedValue

func (m *DCTData) GetMintedValue() *math_big.Int

func (*DCTData) GetPaused

func (m *DCTData) GetPaused() bool

func (*DCTData) GetTokenName

func (m *DCTData) GetTokenName() []byte

func (*DCTData) GoString

func (this *DCTData) GoString() string

func (*DCTData) Marshal

func (m *DCTData) Marshal() (dAtA []byte, err error)

func (*DCTData) MarshalTo

func (m *DCTData) MarshalTo(dAtA []byte) (int, error)

func (*DCTData) MarshalToSizedBuffer

func (m *DCTData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DCTData) ProtoMessage

func (*DCTData) ProtoMessage()

func (*DCTData) Reset

func (m *DCTData) Reset()

func (*DCTData) Size

func (m *DCTData) Size() (n int)

func (*DCTData) String

func (this *DCTData) String() string

func (*DCTData) Unmarshal

func (m *DCTData) Unmarshal(dAtA []byte) error

func (*DCTData) XXX_DiscardUnknown

func (m *DCTData) XXX_DiscardUnknown()

func (*DCTData) XXX_Marshal

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

func (*DCTData) XXX_Merge

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

func (*DCTData) XXX_Size

func (m *DCTData) XXX_Size() int

func (*DCTData) XXX_Unmarshal

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

type ElementInList added in v0.0.2

type ElementInList struct {
	BLSPublicKey []byte `protobuf:"bytes,1,opt,name=BLSPublicKey,proto3" json:"BLSPublicKey"`
	PreviousKey  []byte `protobuf:"bytes,2,opt,name=PreviousKey,proto3" json:"PreviousKey"`
	NextKey      []byte `protobuf:"bytes,3,opt,name=NextKey,proto3" json:"NextKey"`
}

func (*ElementInList) Descriptor added in v0.0.2

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

func (*ElementInList) Equal added in v0.0.2

func (this *ElementInList) Equal(that interface{}) bool

func (*ElementInList) GetBLSPublicKey added in v0.0.2

func (m *ElementInList) GetBLSPublicKey() []byte

func (*ElementInList) GetNextKey added in v0.0.2

func (m *ElementInList) GetNextKey() []byte

func (*ElementInList) GetPreviousKey added in v0.0.2

func (m *ElementInList) GetPreviousKey() []byte

func (*ElementInList) GoString added in v0.0.2

func (this *ElementInList) GoString() string

func (*ElementInList) Marshal added in v0.0.2

func (m *ElementInList) Marshal() (dAtA []byte, err error)

func (*ElementInList) MarshalTo added in v0.0.2

func (m *ElementInList) MarshalTo(dAtA []byte) (int, error)

func (*ElementInList) MarshalToSizedBuffer added in v0.0.2

func (m *ElementInList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ElementInList) ProtoMessage added in v0.0.2

func (*ElementInList) ProtoMessage()

func (*ElementInList) Reset added in v0.0.2

func (m *ElementInList) Reset()

func (*ElementInList) Size added in v0.0.2

func (m *ElementInList) Size() (n int)

func (*ElementInList) String added in v0.0.2

func (this *ElementInList) String() string

func (*ElementInList) Unmarshal added in v0.0.2

func (m *ElementInList) Unmarshal(dAtA []byte) error

func (*ElementInList) XXX_DiscardUnknown added in v0.0.2

func (m *ElementInList) XXX_DiscardUnknown()

func (*ElementInList) XXX_Marshal added in v0.0.2

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

func (*ElementInList) XXX_Merge added in v0.0.2

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

func (*ElementInList) XXX_Size added in v0.0.2

func (m *ElementInList) XXX_Size() int

func (*ElementInList) XXX_Unmarshal added in v0.0.2

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

type GeneralProposal

type GeneralProposal struct {
	IssuerAddress  []byte   `protobuf:"bytes,1,opt,name=IssuerAddress,proto3" json:"IssuerAddress"`
	GitHubCommit   []byte   `protobuf:"bytes,2,opt,name=GitHubCommit,proto3" json:"GitHubCommit"`
	StartVoteNonce uint64   `protobuf:"varint,3,opt,name=StartVoteNonce,proto3" json:"StartVoteNonce"`
	EndVoteNonce   uint64   `protobuf:"varint,4,opt,name=EndVoteNonce,proto3" json:"EndVoteNonce"`
	Yes            int32    `protobuf:"varint,5,opt,name=Yes,proto3" json:"Yes"`
	No             int32    `protobuf:"varint,6,opt,name=No,proto3" json:"No"`
	Veto           int32    `protobuf:"varint,7,opt,name=Veto,proto3" json:"Veto"`
	DontCare       int32    `protobuf:"varint,8,opt,name=DontCare,proto3" json:"DontCare"`
	Voted          bool     `protobuf:"varint,9,opt,name=Voted,proto3" json:"Voted"`
	Voters         [][]byte `protobuf:"bytes,10,rep,name=Voters,proto3" json:"Voters"`
	TopReference   []byte   `protobuf:"bytes,11,opt,name=TopReference,proto3" json:"TopReference"`
	Closed         bool     `protobuf:"varint,12,opt,name=Closed,proto3" json:"Closed"`
}

func (*GeneralProposal) Descriptor

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

func (*GeneralProposal) Equal

func (this *GeneralProposal) Equal(that interface{}) bool

func (*GeneralProposal) GetClosed

func (m *GeneralProposal) GetClosed() bool

func (*GeneralProposal) GetDontCare

func (m *GeneralProposal) GetDontCare() int32

func (*GeneralProposal) GetEndVoteNonce

func (m *GeneralProposal) GetEndVoteNonce() uint64

func (*GeneralProposal) GetGitHubCommit

func (m *GeneralProposal) GetGitHubCommit() []byte

func (*GeneralProposal) GetIssuerAddress

func (m *GeneralProposal) GetIssuerAddress() []byte

func (*GeneralProposal) GetNo

func (m *GeneralProposal) GetNo() int32

func (*GeneralProposal) GetStartVoteNonce

func (m *GeneralProposal) GetStartVoteNonce() uint64

func (*GeneralProposal) GetTopReference

func (m *GeneralProposal) GetTopReference() []byte

func (*GeneralProposal) GetVeto

func (m *GeneralProposal) GetVeto() int32

func (*GeneralProposal) GetVoted

func (m *GeneralProposal) GetVoted() bool

func (*GeneralProposal) GetVoters

func (m *GeneralProposal) GetVoters() [][]byte

func (*GeneralProposal) GetYes

func (m *GeneralProposal) GetYes() int32

func (*GeneralProposal) GoString

func (this *GeneralProposal) GoString() string

func (*GeneralProposal) Marshal

func (m *GeneralProposal) Marshal() (dAtA []byte, err error)

func (*GeneralProposal) MarshalTo

func (m *GeneralProposal) MarshalTo(dAtA []byte) (int, error)

func (*GeneralProposal) MarshalToSizedBuffer

func (m *GeneralProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GeneralProposal) ProtoMessage

func (*GeneralProposal) ProtoMessage()

func (*GeneralProposal) Reset

func (m *GeneralProposal) Reset()

func (*GeneralProposal) Size

func (m *GeneralProposal) Size() (n int)

func (*GeneralProposal) String

func (this *GeneralProposal) String() string

func (*GeneralProposal) Unmarshal

func (m *GeneralProposal) Unmarshal(dAtA []byte) error

func (*GeneralProposal) XXX_DiscardUnknown

func (m *GeneralProposal) XXX_DiscardUnknown()

func (*GeneralProposal) XXX_Marshal

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

func (*GeneralProposal) XXX_Merge

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

func (*GeneralProposal) XXX_Size

func (m *GeneralProposal) XXX_Size() int

func (*GeneralProposal) XXX_Unmarshal

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

type GovernanceConfig

type GovernanceConfig struct {
	NumNodes         int64         `protobuf:"varint,1,opt,name=NumNodes,proto3" json:"NumNodes"`
	MinQuorum        int32         `protobuf:"varint,2,opt,name=MinQuorum,proto3" json:"MinQuorum"`
	MinPassThreshold int32         `protobuf:"varint,3,opt,name=MinPassThreshold,proto3" json:"MinPassThreshold"`
	MinVetoThreshold int32         `protobuf:"varint,4,opt,name=MinVetoThreshold,proto3" json:"MinVetoThreshold"`
	ProposalFee      *math_big.Int `` /* 146-byte string literal not displayed */
}

func (*GovernanceConfig) Descriptor

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

func (*GovernanceConfig) Equal

func (this *GovernanceConfig) Equal(that interface{}) bool

func (*GovernanceConfig) GetMinPassThreshold

func (m *GovernanceConfig) GetMinPassThreshold() int32

func (*GovernanceConfig) GetMinQuorum

func (m *GovernanceConfig) GetMinQuorum() int32

func (*GovernanceConfig) GetMinVetoThreshold

func (m *GovernanceConfig) GetMinVetoThreshold() int32

func (*GovernanceConfig) GetNumNodes

func (m *GovernanceConfig) GetNumNodes() int64

func (*GovernanceConfig) GetProposalFee

func (m *GovernanceConfig) GetProposalFee() *math_big.Int

func (*GovernanceConfig) GoString

func (this *GovernanceConfig) GoString() string

func (*GovernanceConfig) Marshal

func (m *GovernanceConfig) Marshal() (dAtA []byte, err error)

func (*GovernanceConfig) MarshalTo

func (m *GovernanceConfig) MarshalTo(dAtA []byte) (int, error)

func (*GovernanceConfig) MarshalToSizedBuffer

func (m *GovernanceConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GovernanceConfig) ProtoMessage

func (*GovernanceConfig) ProtoMessage()

func (*GovernanceConfig) Reset

func (m *GovernanceConfig) Reset()

func (*GovernanceConfig) Size

func (m *GovernanceConfig) Size() (n int)

func (*GovernanceConfig) String

func (this *GovernanceConfig) String() string

func (*GovernanceConfig) Unmarshal

func (m *GovernanceConfig) Unmarshal(dAtA []byte) error

func (*GovernanceConfig) XXX_DiscardUnknown

func (m *GovernanceConfig) XXX_DiscardUnknown()

func (*GovernanceConfig) XXX_Marshal

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

func (*GovernanceConfig) XXX_Merge

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

func (*GovernanceConfig) XXX_Size

func (m *GovernanceConfig) XXX_Size() int

func (*GovernanceConfig) XXX_Unmarshal

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

type HardForkProposal

type HardForkProposal struct {
	EpochToHardFork    uint32 `protobuf:"varint,1,opt,name=EpochToHardFork,proto3" json:"EpochToHardFork"`
	NewSoftwareVersion []byte `protobuf:"bytes,2,opt,name=NewSoftwareVersion,proto3" json:"NewSoftwareVersion"`
	ProposalStatus     []byte `protobuf:"bytes,3,opt,name=ProposalStatus,proto3" json:"ProposalStatus"`
}

func (*HardForkProposal) Descriptor

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

func (*HardForkProposal) Equal

func (this *HardForkProposal) Equal(that interface{}) bool

func (*HardForkProposal) GetEpochToHardFork

func (m *HardForkProposal) GetEpochToHardFork() uint32

func (*HardForkProposal) GetNewSoftwareVersion

func (m *HardForkProposal) GetNewSoftwareVersion() []byte

func (*HardForkProposal) GetProposalStatus

func (m *HardForkProposal) GetProposalStatus() []byte

func (*HardForkProposal) GoString

func (this *HardForkProposal) GoString() string

func (*HardForkProposal) Marshal

func (m *HardForkProposal) Marshal() (dAtA []byte, err error)

func (*HardForkProposal) MarshalTo

func (m *HardForkProposal) MarshalTo(dAtA []byte) (int, error)

func (*HardForkProposal) MarshalToSizedBuffer

func (m *HardForkProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*HardForkProposal) ProtoMessage

func (*HardForkProposal) ProtoMessage()

func (*HardForkProposal) Reset

func (m *HardForkProposal) Reset()

func (*HardForkProposal) Size

func (m *HardForkProposal) Size() (n int)

func (*HardForkProposal) String

func (this *HardForkProposal) String() string

func (*HardForkProposal) Unmarshal

func (m *HardForkProposal) Unmarshal(dAtA []byte) error

func (*HardForkProposal) XXX_DiscardUnknown

func (m *HardForkProposal) XXX_DiscardUnknown()

func (*HardForkProposal) XXX_Marshal

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

func (*HardForkProposal) XXX_Merge

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

func (*HardForkProposal) XXX_Size

func (m *HardForkProposal) XXX_Size() int

func (*HardForkProposal) XXX_Unmarshal

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

type StakedData

type StakedData struct {
	RegisterNonce uint64        `protobuf:"varint,1,opt,name=RegisterNonce,proto3" json:"RegisterNonce"`
	StakedNonce   uint64        `protobuf:"varint,2,opt,name=StakedNonce,proto3" json:"StakedNonce"`
	Staked        bool          `protobuf:"varint,3,opt,name=Staked,proto3" json:"Staked"`
	UnStakedNonce uint64        `protobuf:"varint,4,opt,name=UnStakedNonce,proto3" json:"UnStakedNonce"`
	UnStakedEpoch uint32        `protobuf:"varint,5,opt,name=UnStakedEpoch,proto3" json:"UnStakedEpoch"`
	RewardAddress []byte        `protobuf:"bytes,6,opt,name=RewardAddress,proto3" json:"RewardAddress"`
	StakeValue    *math_big.Int `` /* 144-byte string literal not displayed */
	JailedRound   uint64        `protobuf:"varint,8,opt,name=JailedRound,proto3" json:"JailedRound"`
	JailedNonce   uint64        `protobuf:"varint,9,opt,name=JailedNonce,proto3" json:"JailedNonce"`
	UnJailedNonce uint64        `protobuf:"varint,10,opt,name=UnJailedNonce,proto3" json:"UnJailedNonce"`
	Jailed        bool          `protobuf:"varint,11,opt,name=Jailed,proto3" json:"Jailed"`
	Waiting       bool          `protobuf:"varint,12,opt,name=Waiting,proto3" json:"Waiting"`
}

func (*StakedData) Descriptor

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

func (*StakedData) Equal

func (this *StakedData) Equal(that interface{}) bool

func (*StakedData) GetJailed added in v0.0.2

func (m *StakedData) GetJailed() bool

func (*StakedData) GetJailedNonce

func (m *StakedData) GetJailedNonce() uint64

func (*StakedData) GetJailedRound

func (m *StakedData) GetJailedRound() uint64

func (*StakedData) GetRegisterNonce

func (m *StakedData) GetRegisterNonce() uint64

func (*StakedData) GetRewardAddress

func (m *StakedData) GetRewardAddress() []byte

func (*StakedData) GetStakeValue

func (m *StakedData) GetStakeValue() *math_big.Int

func (*StakedData) GetStaked

func (m *StakedData) GetStaked() bool

func (*StakedData) GetStakedNonce

func (m *StakedData) GetStakedNonce() uint64

func (*StakedData) GetUnJailedNonce

func (m *StakedData) GetUnJailedNonce() uint64

func (*StakedData) GetUnStakedEpoch

func (m *StakedData) GetUnStakedEpoch() uint32

func (*StakedData) GetUnStakedNonce

func (m *StakedData) GetUnStakedNonce() uint64

func (*StakedData) GetWaiting added in v0.0.2

func (m *StakedData) GetWaiting() bool

func (*StakedData) GoString

func (this *StakedData) GoString() string

func (*StakedData) Marshal

func (m *StakedData) Marshal() (dAtA []byte, err error)

func (*StakedData) MarshalTo

func (m *StakedData) MarshalTo(dAtA []byte) (int, error)

func (*StakedData) MarshalToSizedBuffer

func (m *StakedData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StakedData) ProtoMessage

func (*StakedData) ProtoMessage()

func (*StakedData) Reset

func (m *StakedData) Reset()

func (*StakedData) Size

func (m *StakedData) Size() (n int)

func (*StakedData) String

func (this *StakedData) String() string

func (*StakedData) Unmarshal

func (m *StakedData) Unmarshal(dAtA []byte) error

func (*StakedData) XXX_DiscardUnknown

func (m *StakedData) XXX_DiscardUnknown()

func (*StakedData) XXX_Marshal

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

func (*StakedData) XXX_Merge

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

func (*StakedData) XXX_Size

func (m *StakedData) XXX_Size() int

func (*StakedData) XXX_Unmarshal

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

type StakingNodesConfig

type StakingNodesConfig struct {
	MinNumNodes int64 `protobuf:"varint,1,opt,name=MinNumNodes,proto3" json:"MinNumNodes"`
	MaxNumNodes int64 `protobuf:"varint,2,opt,name=MaxNumNodes,proto3" json:"MaxNumNodes"`
	StakedNodes int64 `protobuf:"varint,3,opt,name=StakedNodes,proto3" json:"StakedNodes"`
	JailedNodes int64 `protobuf:"varint,4,opt,name=JailedNodes,proto3" json:"JailedNodes"`
}

func (*StakingNodesConfig) Descriptor

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

func (*StakingNodesConfig) Equal

func (this *StakingNodesConfig) Equal(that interface{}) bool

func (*StakingNodesConfig) GetJailedNodes

func (m *StakingNodesConfig) GetJailedNodes() int64

func (*StakingNodesConfig) GetMaxNumNodes added in v0.0.2

func (m *StakingNodesConfig) GetMaxNumNodes() int64

func (*StakingNodesConfig) GetMinNumNodes

func (m *StakingNodesConfig) GetMinNumNodes() int64

func (*StakingNodesConfig) GetStakedNodes

func (m *StakingNodesConfig) GetStakedNodes() int64

func (*StakingNodesConfig) GoString

func (this *StakingNodesConfig) GoString() string

func (*StakingNodesConfig) Marshal

func (m *StakingNodesConfig) Marshal() (dAtA []byte, err error)

func (*StakingNodesConfig) MarshalTo

func (m *StakingNodesConfig) MarshalTo(dAtA []byte) (int, error)

func (*StakingNodesConfig) MarshalToSizedBuffer

func (m *StakingNodesConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*StakingNodesConfig) ProtoMessage

func (*StakingNodesConfig) ProtoMessage()

func (*StakingNodesConfig) Reset

func (m *StakingNodesConfig) Reset()

func (*StakingNodesConfig) Size

func (m *StakingNodesConfig) Size() (n int)

func (*StakingNodesConfig) String

func (this *StakingNodesConfig) String() string

func (*StakingNodesConfig) Unmarshal

func (m *StakingNodesConfig) Unmarshal(dAtA []byte) error

func (*StakingNodesConfig) XXX_DiscardUnknown

func (m *StakingNodesConfig) XXX_DiscardUnknown()

func (*StakingNodesConfig) XXX_Marshal

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

func (*StakingNodesConfig) XXX_Merge

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

func (*StakingNodesConfig) XXX_Size

func (m *StakingNodesConfig) XXX_Size() int

func (*StakingNodesConfig) XXX_Unmarshal

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

type ValidatorData

type ValidatorData struct {
	Delegators []*VoterData `protobuf:"bytes,1,rep,name=Delegators,proto3" json:"Delegators"`
	NumNodes   int32        `protobuf:"varint,2,opt,name=NumNodes,proto3" json:"NumNodes"`
}

func (*ValidatorData) Descriptor

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

func (*ValidatorData) Equal

func (this *ValidatorData) Equal(that interface{}) bool

func (*ValidatorData) GetDelegators

func (m *ValidatorData) GetDelegators() []*VoterData

func (*ValidatorData) GetNumNodes

func (m *ValidatorData) GetNumNodes() int32

func (*ValidatorData) GoString

func (this *ValidatorData) GoString() string

func (*ValidatorData) Marshal

func (m *ValidatorData) Marshal() (dAtA []byte, err error)

func (*ValidatorData) MarshalTo

func (m *ValidatorData) MarshalTo(dAtA []byte) (int, error)

func (*ValidatorData) MarshalToSizedBuffer

func (m *ValidatorData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*ValidatorData) ProtoMessage

func (*ValidatorData) ProtoMessage()

func (*ValidatorData) Reset

func (m *ValidatorData) Reset()

func (*ValidatorData) Size

func (m *ValidatorData) Size() (n int)

func (*ValidatorData) String

func (this *ValidatorData) String() string

func (*ValidatorData) Unmarshal

func (m *ValidatorData) Unmarshal(dAtA []byte) error

func (*ValidatorData) XXX_DiscardUnknown

func (m *ValidatorData) XXX_DiscardUnknown()

func (*ValidatorData) XXX_Marshal

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

func (*ValidatorData) XXX_Merge

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

func (*ValidatorData) XXX_Size

func (m *ValidatorData) XXX_Size() int

func (*ValidatorData) XXX_Unmarshal

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

type VoteData

type VoteData struct {
	NumVotes  int32  `protobuf:"varint,1,opt,name=NumVotes,proto3" json:"VoteData"`
	VoteValue string `protobuf:"bytes,2,opt,name=VoteValue,proto3" json:"VoteValue"`
}

func (*VoteData) Descriptor

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

func (*VoteData) Equal

func (this *VoteData) Equal(that interface{}) bool

func (*VoteData) GetNumVotes

func (m *VoteData) GetNumVotes() int32

func (*VoteData) GetVoteValue

func (m *VoteData) GetVoteValue() string

func (*VoteData) GoString

func (this *VoteData) GoString() string

func (*VoteData) Marshal

func (m *VoteData) Marshal() (dAtA []byte, err error)

func (*VoteData) MarshalTo

func (m *VoteData) MarshalTo(dAtA []byte) (int, error)

func (*VoteData) MarshalToSizedBuffer

func (m *VoteData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VoteData) ProtoMessage

func (*VoteData) ProtoMessage()

func (*VoteData) Reset

func (m *VoteData) Reset()

func (*VoteData) Size

func (m *VoteData) Size() (n int)

func (*VoteData) String

func (this *VoteData) String() string

func (*VoteData) Unmarshal

func (m *VoteData) Unmarshal(dAtA []byte) error

func (*VoteData) XXX_DiscardUnknown

func (m *VoteData) XXX_DiscardUnknown()

func (*VoteData) XXX_Marshal

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

func (*VoteData) XXX_Merge

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

func (*VoteData) XXX_Size

func (m *VoteData) XXX_Size() int

func (*VoteData) XXX_Unmarshal

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

type VoterData

type VoterData struct {
	Address  []byte `protobuf:"bytes,1,opt,name=Address,proto3" json:"Address"`
	NumNodes int32  `protobuf:"varint,2,opt,name=NumNodes,proto3" json:"NumNodes"`
}

func (*VoterData) Descriptor

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

func (*VoterData) Equal

func (this *VoterData) Equal(that interface{}) bool

func (*VoterData) GetAddress

func (m *VoterData) GetAddress() []byte

func (*VoterData) GetNumNodes

func (m *VoterData) GetNumNodes() int32

func (*VoterData) GoString

func (this *VoterData) GoString() string

func (*VoterData) Marshal

func (m *VoterData) Marshal() (dAtA []byte, err error)

func (*VoterData) MarshalTo

func (m *VoterData) MarshalTo(dAtA []byte) (int, error)

func (*VoterData) MarshalToSizedBuffer

func (m *VoterData) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VoterData) ProtoMessage

func (*VoterData) ProtoMessage()

func (*VoterData) Reset

func (m *VoterData) Reset()

func (*VoterData) Size

func (m *VoterData) Size() (n int)

func (*VoterData) String

func (this *VoterData) String() string

func (*VoterData) Unmarshal

func (m *VoterData) Unmarshal(dAtA []byte) error

func (*VoterData) XXX_DiscardUnknown

func (m *VoterData) XXX_DiscardUnknown()

func (*VoterData) XXX_Marshal

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

func (*VoterData) XXX_Merge

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

func (*VoterData) XXX_Size

func (m *VoterData) XXX_Size() int

func (*VoterData) XXX_Unmarshal

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

type WaitingList added in v0.0.2

type WaitingList struct {
	FirstKey []byte `protobuf:"bytes,1,opt,name=FirstKey,proto3" json:"FirstKey"`
	LastKey  []byte `protobuf:"bytes,2,opt,name=LastKey,proto3" json:"LastKey"`
	Length   uint32 `protobuf:"varint,3,opt,name=Length,proto3" json:"Length"`
}

func (*WaitingList) Descriptor added in v0.0.2

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

func (*WaitingList) Equal added in v0.0.2

func (this *WaitingList) Equal(that interface{}) bool

func (*WaitingList) GetFirstKey added in v0.0.2

func (m *WaitingList) GetFirstKey() []byte

func (*WaitingList) GetLastKey added in v0.0.2

func (m *WaitingList) GetLastKey() []byte

func (*WaitingList) GetLength added in v0.0.2

func (m *WaitingList) GetLength() uint32

func (*WaitingList) GoString added in v0.0.2

func (this *WaitingList) GoString() string

func (*WaitingList) Marshal added in v0.0.2

func (m *WaitingList) Marshal() (dAtA []byte, err error)

func (*WaitingList) MarshalTo added in v0.0.2

func (m *WaitingList) MarshalTo(dAtA []byte) (int, error)

func (*WaitingList) MarshalToSizedBuffer added in v0.0.2

func (m *WaitingList) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WaitingList) ProtoMessage added in v0.0.2

func (*WaitingList) ProtoMessage()

func (*WaitingList) Reset added in v0.0.2

func (m *WaitingList) Reset()

func (*WaitingList) Size added in v0.0.2

func (m *WaitingList) Size() (n int)

func (*WaitingList) String added in v0.0.2

func (this *WaitingList) String() string

func (*WaitingList) Unmarshal added in v0.0.2

func (m *WaitingList) Unmarshal(dAtA []byte) error

func (*WaitingList) XXX_DiscardUnknown added in v0.0.2

func (m *WaitingList) XXX_DiscardUnknown()

func (*WaitingList) XXX_Marshal added in v0.0.2

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

func (*WaitingList) XXX_Merge added in v0.0.2

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

func (*WaitingList) XXX_Size added in v0.0.2

func (m *WaitingList) XXX_Size() int

func (*WaitingList) XXX_Unmarshal added in v0.0.2

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

type WhiteListProposal

type WhiteListProposal struct {
	WhiteListAddress []byte `protobuf:"bytes,1,opt,name=WhiteListAddress,proto3" json:"WhiteListAddress"`
	ProposalStatus   []byte `protobuf:"bytes,2,opt,name=ProposalStatus,proto3" json:"ProposalStatus"`
}

func (*WhiteListProposal) Descriptor

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

func (*WhiteListProposal) Equal

func (this *WhiteListProposal) Equal(that interface{}) bool

func (*WhiteListProposal) GetProposalStatus

func (m *WhiteListProposal) GetProposalStatus() []byte

func (*WhiteListProposal) GetWhiteListAddress

func (m *WhiteListProposal) GetWhiteListAddress() []byte

func (*WhiteListProposal) GoString

func (this *WhiteListProposal) GoString() string

func (*WhiteListProposal) Marshal

func (m *WhiteListProposal) Marshal() (dAtA []byte, err error)

func (*WhiteListProposal) MarshalTo

func (m *WhiteListProposal) MarshalTo(dAtA []byte) (int, error)

func (*WhiteListProposal) MarshalToSizedBuffer

func (m *WhiteListProposal) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*WhiteListProposal) ProtoMessage

func (*WhiteListProposal) ProtoMessage()

func (*WhiteListProposal) Reset

func (m *WhiteListProposal) Reset()

func (*WhiteListProposal) Size

func (m *WhiteListProposal) Size() (n int)

func (*WhiteListProposal) String

func (this *WhiteListProposal) String() string

func (*WhiteListProposal) Unmarshal

func (m *WhiteListProposal) Unmarshal(dAtA []byte) error

func (*WhiteListProposal) XXX_DiscardUnknown

func (m *WhiteListProposal) XXX_DiscardUnknown()

func (*WhiteListProposal) XXX_Marshal

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

func (*WhiteListProposal) XXX_Merge

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

func (*WhiteListProposal) XXX_Size

func (m *WhiteListProposal) XXX_Size() int

func (*WhiteListProposal) XXX_Unmarshal

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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