types

package
v2.0.0-b1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: GPL-3.0 Imports: 4 Imported by: 36

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MinipoolDepositTypes = []string{"None", "Full", "Half", "Empty", "Variable"}
View Source
var MinipoolStatuses = []string{"Initialized", "Prelaunch", "Staking", "Withdrawable", "Dissolved"}
View Source
var ProposalStates = []string{"Pending", "Active", "Cancelled", "Defeated", "Succeeded", "Expired", "Executed"}
View Source
var ProtocolDaoProposalStates = []string{"Pending", "Active (Phase 1)", "Active (Phase 2)", "Destroyed", "Vetoed", "Quorum not Met", "Defeated", "Succeeded", "Expired", "Executed"}
View Source
var VoteDirections = []string{"Not Voted", "Abstain", "In Favor", "Against", "Against with Veto"}

Functions

This section is empty.

Types

type ChallengeState

type ChallengeState uint8

Challenge states

const (
	ChallengeState_Unchallenged ChallengeState = iota
	ChallengeState_Challenged
	ChallengeState_Responded
	ChallengeState_Paid
)

type MinipoolDeposit

type MinipoolDeposit uint8

Minipool deposit types

const (
	None MinipoolDeposit = iota
	Full
	Half
	Empty
	Variable
)

func StringToMinipoolDeposit

func StringToMinipoolDeposit(value string) (MinipoolDeposit, error)

func (MinipoolDeposit) MarshalJSON

func (d MinipoolDeposit) MarshalJSON() ([]byte, error)

JSON encoding

func (MinipoolDeposit) String

func (d MinipoolDeposit) String() string

String conversion

func (*MinipoolDeposit) UnmarshalJSON

func (d *MinipoolDeposit) UnmarshalJSON(data []byte) error

type MinipoolStatus

type MinipoolStatus uint8

Minipool statuses

const (
	MinipoolStatus_Initialized MinipoolStatus = iota
	MinipoolStatus_Prelaunch
	MinipoolStatus_Staking
	MinipoolStatus_Withdrawable
	MinipoolStatus_Dissolved
)

func StringToMinipoolStatus

func StringToMinipoolStatus(value string) (MinipoolStatus, error)

func (MinipoolStatus) MarshalJSON

func (s MinipoolStatus) MarshalJSON() ([]byte, error)

JSON encoding

func (MinipoolStatus) String

func (s MinipoolStatus) String() string

String conversion

func (*MinipoolStatus) UnmarshalJSON

func (s *MinipoolStatus) UnmarshalJSON(data []byte) error

type NodeVotingInfo

type NodeVotingInfo struct {
	NodeAddress common.Address `json:"nodeAddress"`
	VotingPower *big.Int       `json:"votingPower"`
	Delegate    common.Address `json:"delegate"`
}

Info about a node's voting power

type ProposalSettingType

type ProposalSettingType uint8

DAO setting types

const (
	ProposalSettingType_Uint256 ProposalSettingType = iota
	ProposalSettingType_Bool
	ProposalSettingType_Address
)

type ProposalState

type ProposalState uint8

DAO proposal states

const (
	ProposalState_Pending ProposalState = iota
	ProposalState_Active
	ProposalState_Cancelled
	ProposalState_Defeated
	ProposalState_Succeeded
	ProposalState_Expired
	ProposalState_Executed
)

func StringToProposalState

func StringToProposalState(value string) (ProposalState, error)

func (ProposalState) MarshalJSON

func (s ProposalState) MarshalJSON() ([]byte, error)

JSON encoding

func (ProposalState) String

func (s ProposalState) String() string

String conversion

func (*ProposalState) UnmarshalJSON

func (s *ProposalState) UnmarshalJSON(data []byte) error

type ProtocolDaoProposalState

type ProtocolDaoProposalState uint8

pDAO proposal states

const (
	ProtocolDaoProposalState_Pending ProtocolDaoProposalState = iota
	ProtocolDaoProposalState_ActivePhase1
	ProtocolDaoProposalState_ActivePhase2
	ProtocolDaoProposalState_Destroyed
	ProtocolDaoProposalState_Vetoed
	ProtocolDaoProposalState_QuorumNotMet
	ProtocolDaoProposalState_Defeated
	ProtocolDaoProposalState_Succeeded
	ProtocolDaoProposalState_Expired
	ProtocolDaoProposalState_Executed
)

type VoteDirection

type VoteDirection uint8

pDAO voting direction

const (
	VoteDirection_NoVote VoteDirection = iota
	VoteDirection_Abstain
	VoteDirection_For
	VoteDirection_Against
	VoteDirection_AgainstWithVeto
)

type VotingTreeNode

type VotingTreeNode struct {
	Sum  *big.Int    `json:"sum"`
	Hash common.Hash `json:"hash"`
}

A node of the voting Merkle Tree (not a Rocket Pool node)

Jump to

Keyboard shortcuts

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