util

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAlreadyPassed = errors.New("signature >= threshold, proposal already passed")
	ErrAlreadyVoted  = errors.New("already voted on this proposal")
)
View Source
var DomainIdMappingErrCounter = make(map[uint8][consts.DefaultEndpointTries]int64)
View Source
var DomainIdToName = make(map[uint8]string)
View Source
var HEAD_STATS = sync.Map{} // make(map[uint8]int64)
View Source
var PathKeypair = make(map[string]crypto.Keypair)
View Source
var SYNC_STATS = sync.Map{} // make(map[uint8]int64)
View Source
var ZeroAddress = common.HexToAddress("0x0000000000000000000000000000000000000000")

Functions

func CallPersistentPreRun

func CallPersistentPreRun(cmd *cobra.Command, args []string) error

func IsActive

func IsActive(status uint8) bool

func IsExecuted

func IsExecuted(status uint8) bool

func IsFinalized

func IsFinalized(status uint8) bool

Types

type EventSig

type EventSig string
const (
	Deposit       EventSig = "Deposit(uint8,bytes32,uint64,address,bytes,bytes)"
	ProposalEvent EventSig = "ProposalEvent(uint8,uint64,uint8,bytes32)"
	ProposalVote  EventSig = "ProposalVote(uint8,uint64,uint8,bytes32)"
	SignaturePass EventSig = "SignaturePass(uint8,uint8,uint64,bytes32,bytes,bytes)"
)

func (EventSig) GetTopic

func (es EventSig) GetTopic() common.Hash

type ProposalStatus

type ProposalStatus int
const (
	Inactive ProposalStatus = iota
	Active
	Passed
	Executed
	Cancelled
)

Jump to

Keyboard shortcuts

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