Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TaskName = "generate_child_wallet" TaskDescriptor = &types.TaskDescriptor{ Name: TaskName, Description: "Generates a funded child wallet.", Category: "wallet", Config: DefaultConfig(), Outputs: []types.TaskOutputDefinition{ { Name: "childWallet", Type: "object", Description: "Summary of the generated child wallet including address and balance.", }, }, NewTask: NewTask, } )
Functions ¶
func NewTask ¶
func NewTask(ctx *types.TaskContext, options *types.TaskOptions) (types.Task, error)
Types ¶
type Config ¶
type Config struct {
PrivateKey string `yaml:"privateKey" json:"privateKey" require:"A" desc:"Private key of the parent wallet used to fund the child wallet."`
WalletSeed string `yaml:"walletSeed" json:"walletSeed" desc:"Seed used to derive the child wallet address deterministically."`
RandomSeed bool `yaml:"randomSeed" json:"randomSeed" desc:"If true, generate a random seed for the child wallet."`
PrefundFeeCap *big.Int `yaml:"prefundFeeCap" json:"prefundFeeCap" desc:"Maximum fee cap (in wei) for the prefunding transaction."`
PrefundTipCap *big.Int `yaml:"prefundTipCap" json:"prefundTipCap" desc:"Maximum priority tip (in wei) for the prefunding transaction."`
PrefundAmount *big.Int `yaml:"prefundAmount" json:"prefundAmount" desc:"Amount (in wei) to transfer to the child wallet."`
PrefundMinBalance *big.Int `yaml:"prefundMinBalance" json:"prefundMinBalance" desc:"Minimum balance (in wei) before triggering a prefund."`
KeepFunding bool `` /* 141-byte string literal not displayed */
WalletAddressResultVar string `yaml:"walletAddressResultVar" json:"walletAddressResultVar" deprecated:"true" desc:"Deprecated: Use task outputs instead."`
WalletPrivateKeyResultVar string `` /* 128-byte string literal not displayed */
}
func DefaultConfig ¶
func DefaultConfig() Config
type Task ¶
type Task struct {
// contains filtered or unexported fields
}
func (*Task) LoadConfig ¶
Click to show internal directories.
Click to hide internal directories.