glb

package
v0.1.3-testnet Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const LedgerIDFileName = "proxima.genesis.id.yaml"

Variables

This section is empty.

Functions

func AddFlagTarget

func AddFlagTarget(cmd *cobra.Command)

func AskEntropyGenEd25519PrivateKey

func AskEntropyGenEd25519PrivateKey(msg string, minSeedLength ...int) ed25519.PrivateKey

func AssertNoError

func AssertNoError(err error)

func Assertf

func Assertf(cond bool, format string, args ...any)

func BypassYesNoPrompt

func BypassYesNoPrompt() bool

func CloseDatabases

func CloseDatabases()

func DirMustNotExistOrBeEmpty

func DirMustNotExistOrBeEmpty(dir string)

func Fatalf

func Fatalf(format string, args ...any)

func FileExists

func FileExists(name string) bool

func FileMustExist

func FileMustExist(dir string)

func FileMustNotExist

func FileMustNotExist(dir string)

func GetClient

func GetClient() *client.APIClient

func GetInclusionThreshold

func GetInclusionThreshold() (int, int)

func GetIsWeakFinality

func GetIsWeakFinality() bool

func GetOwnSequencerID

func GetOwnSequencerID() *ledger.ChainID

func GetPrivateKey

func GetPrivateKey() (ed25519.PrivateKey, bool)

func Infof

func Infof(format string, args ...any)

func InitLedgerFromDB

func InitLedgerFromDB(verbose ...bool)

func InitLedgerFromNode

func InitLedgerFromNode()

func InitTxStoreDB

func InitTxStoreDB()

func IsVerbose

func IsVerbose() bool

func LinesOutputsWithIDs

func LinesOutputsWithIDs(outs []*ledger.OutputWithID, prefix ...string) *lines.Lines

func MustGetPrivateKey

func MustGetPrivateKey() ed25519.PrivateKey

func MustGetTarget

func MustGetTarget() ledger.Accountable

func NoWait

func NoWait() bool

func PrintLRB

func PrintLRB(lrbid *ledger.TransactionID)

func ReadInConfig

func ReadInConfig()

func ReportTxInclusion

func ReportTxInclusion(txid ledger.TransactionID, poll time.Duration, maxSlots ...ledger.Slot)

func StateStore

func StateStore() global.StateStore

func TxBytesStore

func TxBytesStore() global.TxBytesStore

func Verbosef

func Verbosef(format string, args ...any)

func VerbosityLevel

func VerbosityLevel() int

func YesNoPrompt

func YesNoPrompt(label string, def bool, force ...bool) bool

Types

type WalletData

type WalletData struct {
	PrivateKey ed25519.PrivateKey
	Account    ledger.AddressED25519
	Sequencer  *ledger.ChainID
}

func GetWalletData

func GetWalletData() (ret WalletData)

Jump to

Keyboard shortcuts

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