Documentation
¶
Index ¶
- Variables
- func Fund(ctx context.Context, cfg Config, nl NodeLister, fundingWallet *wallet.Wallet, ...) error
- func Stake(ctx context.Context, cfg Config, nl NodeLister, options ...FunderOptions) error
- type Config
- type FunderOptions
- type MinAmounts
- type NamespaceNodes
- type NodeInfo
- type NodeLister
- type Options
- type WalletInfo
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Fund ¶
func Fund( ctx context.Context, cfg Config, nl NodeLister, fundingWallet *wallet.Wallet, options ...FunderOptions, ) error
func Stake ¶ added in v0.0.2
func Stake(ctx context.Context, cfg Config, nl NodeLister, options ...FunderOptions) error
Types ¶
type Config ¶
type Config struct { Namespace string Addresses []string ChainNodeEndpoint string WalletKey string // Hex encoded key MinAmounts MinAmounts }
type FunderOptions ¶ added in v0.1.0
type FunderOptions func(*Options)
func WithLoggerOption ¶ added in v0.1.0
func WithLoggerOption(log logging.Logger) FunderOptions
WithLoggerOption sets the logger to be used by the funder
type MinAmounts ¶
type NamespaceNodes ¶
type NamespaceNodes struct { Name string NodeWallets []WalletInfo }
type NodeLister ¶
type Options ¶ added in v0.1.0
type Options struct {
// contains filtered or unexported fields
}
Options represents funder options
func DefaultOptions ¶ added in v0.1.0
func DefaultOptions() *Options
DefaultOptions returns default options
type WalletInfo ¶
func NewWalletInfo ¶ added in v0.2.2
func NewWalletInfo(name, address string, chainID int64) WalletInfo
Click to show internal directories.
Click to hide internal directories.