Documentation ¶
Index ¶
- Constants
- func AddFlagTarget(cmd *cobra.Command)
- func AskEntropyGenEd25519PrivateKey(msg string, minSeedLength ...int) ed25519.PrivateKey
- func AssertNoError(err error)
- func Assertf(cond bool, format string, args ...any)
- func BypassYesNoPrompt() bool
- func CloseDatabases()
- func DirMustNotExistOrBeEmpty(dir string)
- func Fatalf(format string, args ...any)
- func FileExists(name string) bool
- func FileMustExist(dir string)
- func FileMustNotExist(dir string)
- func GetClient() *client.APIClient
- func GetInclusionThreshold() (int, int)
- func GetIsWeakFinality() bool
- func GetOwnSequencerID() *ledger.ChainID
- func GetPrivateKey() (ed25519.PrivateKey, bool)
- func Infof(format string, args ...any)
- func InitLedgerFromDB(verbose ...bool)
- func InitLedgerFromNode()
- func InitTxStoreDB()
- func IsVerbose() bool
- func LinesOutputsWithIDs(outs []*ledger.OutputWithID, prefix ...string) *lines.Lines
- func MustGetPrivateKey() ed25519.PrivateKey
- func MustGetTarget() ledger.Accountable
- func NoWait() bool
- func PrintLRB(lrbid *ledger.TransactionID)
- func ReadInConfig()
- func ReportTxInclusion(txid ledger.TransactionID, poll time.Duration, maxSlots ...ledger.Slot)
- func StateStore() global.StateStore
- func TxBytesStore() global.TxBytesStore
- func Verbosef(format string, args ...any)
- func VerbosityLevel() int
- func YesNoPrompt(label string, def bool, force ...bool) bool
- type WalletData
Constants ¶
View Source
const LedgerIDFileName = "proxima.genesis.id.yaml"
Variables ¶
This section is empty.
Functions ¶
func AddFlagTarget ¶
func AskEntropyGenEd25519PrivateKey ¶
func AskEntropyGenEd25519PrivateKey(msg string, minSeedLength ...int) ed25519.PrivateKey
func AssertNoError ¶
func AssertNoError(err error)
func BypassYesNoPrompt ¶
func BypassYesNoPrompt() bool
func CloseDatabases ¶
func CloseDatabases()
func DirMustNotExistOrBeEmpty ¶
func DirMustNotExistOrBeEmpty(dir string)
func FileExists ¶
func FileMustExist ¶
func FileMustExist(dir string)
func FileMustNotExist ¶
func FileMustNotExist(dir string)
func GetInclusionThreshold ¶
func GetIsWeakFinality ¶
func GetIsWeakFinality() bool
func GetOwnSequencerID ¶
func GetPrivateKey ¶
func GetPrivateKey() (ed25519.PrivateKey, bool)
func InitLedgerFromDB ¶
func InitLedgerFromDB(verbose ...bool)
func InitLedgerFromNode ¶
func InitLedgerFromNode()
func InitTxStoreDB ¶
func InitTxStoreDB()
func LinesOutputsWithIDs ¶
func LinesOutputsWithIDs(outs []*ledger.OutputWithID, prefix ...string) *lines.Lines
func MustGetPrivateKey ¶
func MustGetPrivateKey() ed25519.PrivateKey
func MustGetTarget ¶
func MustGetTarget() ledger.Accountable
func PrintLRB ¶
func PrintLRB(lrbid *ledger.TransactionID)
func ReadInConfig ¶
func ReadInConfig()
func ReportTxInclusion ¶
func StateStore ¶
func StateStore() global.StateStore
func TxBytesStore ¶
func TxBytesStore() global.TxBytesStore
func VerbosityLevel ¶
func VerbosityLevel() int
Types ¶
type WalletData ¶
type WalletData struct { PrivateKey ed25519.PrivateKey Account ledger.AddressED25519 Sequencer *ledger.ChainID }
func GetWalletData ¶
func GetWalletData() (ret WalletData)
Click to show internal directories.
Click to hide internal directories.