Documentation ¶
Index ¶
- func BatchSendRawTransactions(batches [][]*types.Transaction, url string) ([]string, error)
- func DeriveAddress(wallet *hdwallet.Wallet, index int) (common.Address, error)
- func DeriveAddressFromMnemonic(mnemonic string, index int) (*common.Address, error)
- func DerivePrivateKey(wallet *hdwallet.Wallet, index int) (*accounts.Account, *ecdsa.PrivateKey, error)
- func DerivePrivateKeyFromMnemonic(mnemonic string, index int) (*accounts.Account, *ecdsa.PrivateKey, error)
- func DisableTextColors()
- func FormatEther(wei *big.Int) string
- func FormatUnits(value *big.Int, decimals int) string
- func FormatUnitsString(value string, decimals int) (string, error)
- func GenerateBatches[ItemType any](items []ItemType, batchSize int) [][]ItemType
- func GetNodesPlotColors(nodes map[string]tooltypes.Node) map[string]string
- func GetRNG(randomSeed *tooltypes.RandomSeed) (*rand.Rand, error)
- func GetSenderAccounts(ethclient *ethclient.Client, mnemonic string, accountIndexes []int, numTxs int) ([]*tooltypes.SenderAccount, error)
- func NewFloat64(x float64) *float64
- func NewInt(x int) *int
- func NewJsonrpcMessage(method string, parameters []interface{}) *types.JsonrpcMessage
- func ParseNode(node string, requestMetadata bool) (tooltypes.Node, error)
- func ParseNodes(nodes []string, verbose bool, requestMetadata bool) (map[string]tooltypes.Node, error)
- func PrintBullet(text string)
- func PrintHeader(text string)
- func PrintMetricTables(results map[string]interface{}, metrics []string, suffix string, decimals *int, ...)
- func PrintMultilineTable(rows [][]string, headers []string)
- func PrintNodesTable(nodes map[string]tooltypes.Node)
- func PrintTable(rows [][]string, headers []string)
- func PrintTextBox(text string)
- func PrintTimestamped(message string)
- func SignTransactions(ethclient *ethclient.Client, accounts []*tooltypes.SenderAccount, ...) ([]*types.Transaction, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BatchSendRawTransactions ¶
func BatchSendRawTransactions(batches [][]*types.Transaction, url string) ([]string, error)
func DeriveAddress ¶
Helper functions
func DerivePrivateKey ¶
func DisableTextColors ¶
func DisableTextColors()
func FormatEther ¶
FormatEther converts wei value into a decimal string using 18 decimal places.
func FormatUnits ¶
FormatUnits converts a value into a decimal string, assuming the specified number of decimal places.
func FormatUnitsString ¶
FormatUnitsString is a helper function that accepts a string input
func GenerateBatches ¶
func GetNodesPlotColors ¶
func GetSenderAccounts ¶
func NewFloat64 ¶
func NewJsonrpcMessage ¶
func NewJsonrpcMessage(method string, parameters []interface{}) *types.JsonrpcMessage
func ParseNodes ¶
func ParseNodes(nodes []string, verbose bool, requestMetadata bool) (map[string]tooltypes.Node, error)
ParseNodes parses the given nodes according to input specification
func PrintBullet ¶
func PrintBullet(text string)
func PrintHeader ¶
func PrintHeader(text string)
func PrintMetricTables ¶
func PrintMultilineTable ¶
func PrintNodesTable ¶
PrintNodesTable prints a table of nodes
func PrintTable ¶
func PrintTextBox ¶
func PrintTextBox(text string)
func PrintTimestamped ¶
func PrintTimestamped(message string)
func SignTransactions ¶
func SignTransactions(ethclient *ethclient.Client, accounts []*tooltypes.SenderAccount, transactions []*types.Transaction) ([]*types.Transaction, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.