Documentation
¶
Index ¶
- func Account(ctx context.Context, p OperatorParams, d DisplayOptions, out io.Writer) error
- func Root(out, errOut io.Writer) *cobra.Command
- func Status(ctx context.Context, p OperatorParams, display DisplayOptions, out io.Writer) error
- type AmountOptions
- type BondOptions
- type BondParams
- type CancelUnbondParams
- type ClaimParams
- type DisplayOptions
- type FundParams
- type GasParams
- type ListParams
- type LockOptions
- type LocksParams
- type MessageParams
- type OperatorParams
- type PercentageOptions
- type PollVoteParams
- type ProposalVoteParams
- type RegisterParams
- type RewardCallerParams
- type RewardParams
- type RootParams
- type SetConfigParams
- type TransactionOptions
- type TransferParams
- type TypedDataParams
- type UnbondParams
- type WithdrawFeesParams
- type WithdrawStakeParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Account ¶
func Account(ctx context.Context, p OperatorParams, d DisplayOptions, out io.Writer) error
func Status ¶
func Status(ctx context.Context, p OperatorParams, display DisplayOptions, out io.Writer) error
Types ¶
type AmountOptions ¶
type BondOptions ¶
type BondParams ¶
type BondParams struct {
TransactionOptions
BondOptions
Orchestrator ethcommon.Address `positional:"true" required:"true" boa:"noconfig,noenv" descr:"Target orchestrator address"`
}
type CancelUnbondParams ¶
type CancelUnbondParams struct {
TransactionOptions
LockOptions
Delegate *ethcommon.Address `positional:"true" optional:"true" boa:"noconfig,noenv" descr:"Required when unbonded; otherwise the existing delegate"`
}
type ClaimParams ¶
type ClaimParams struct {
TransactionOptions
EndRound *uint256.Int `boa:"noconfig,noenv" descr:"Last round to claim; default: current initialized round"`
}
type DisplayOptions ¶
type DisplayOptions struct {
Output string `default:"text" alts:"text,json" persistent:"true" boa:"noconfig,noenv"`
PrintConfig bool `optional:"true" persistent:"true" boa:"noconfig,noenv" descr:"Print audited operator configuration and exit"`
}
DisplayOptions are invocation controls, never persistent configuration.
type FundParams ¶
type FundParams struct {
TransactionOptions
Deposit string `default:"0" boa:"noconfig,noenv" descr:"Deposit amount in human ETH units, or wei with --base-units"`
Reserve string `default:"0" boa:"noconfig,noenv" descr:"Reserve amount in human ETH units, or wei with --base-units"`
BaseUnits bool `optional:"true" boa:"noconfig,noenv" descr:"Interpret deposit and reserve as integer wei"`
Recipient *ethcommon.Address `boa:"noconfig,noenv" descr:"Account to fund; default: configured account"`
}
type ListParams ¶
type ListParams struct {
Active bool `optional:"true" boa:"noconfig,noenv"`
}
type LockOptions ¶
type LocksParams ¶
type LocksParams struct {
FromID uint256.Int `default:"0" boa:"noconfig,noenv"`
Limit uint64 `default:"100" min:"1" max:"1000" boa:"noconfig,noenv" descr:"Maximum lock IDs scanned per page"`
Withdrawable bool `optional:"true" boa:"noconfig,noenv"`
Locked bool `optional:"true" boa:"noconfig,noenv"`
}
type MessageParams ¶
type MessageParams struct {
MessageFile string `basepath:"source" file:"true" required:"true" boa:"noconfig,noenv"`
}
type OperatorParams ¶
type OperatorParams struct {
nodeconfig.PersistentSettings
RPCURL *url.URL `name:"rpc-url" secret:"true" optional:"true" persistent:"true"`
RPCURLFile string `basepath:"source" name:"rpc-url-file" secretfor:"RPCURL" persistent:"true"`
ChainID *uint64 `min:"1" persistent:"true" descr:"Optional expected RPC chain ID"`
Account *ethcommon.Address `persistent:"true" descr:"Account address to inspect or use for transactions; must match the keystore account when signing"`
Controller ethcommon.Address `name:"controller-address" optional:"true" persistent:"true" descr:"Livepeer Controller address"`
KeystoreFile string `basepath:"source" optional:"true" persistent:"true" descr:"Encrypted geth account JSON file"`
KeystorePassword *string `secret:"true" optional:"true" persistent:"true" descr:"Keystore decryption password"`
KeystorePasswordFile string `` /* 133-byte string literal not displayed */
MaxFeePerGas *uint256.Int `persistent:"true" descr:"Ceiling on the calculated transaction fee cap in wei per gas"`
}
OperatorParams is the persistent operator context shared by chain commands.
func (OperatorParams) Validate ¶
func (p OperatorParams) Validate() error
type PercentageOptions ¶
type PollVoteParams ¶
type PollVoteParams struct {
TransactionOptions
Address ethcommon.Address `positional:"true" required:"true" boa:"noconfig,noenv"`
Choice string `positional:"true" required:"true" alts:"yes,no" boa:"noconfig,noenv"`
}
type ProposalVoteParams ¶
type ProposalVoteParams struct {
TransactionOptions
ID uint256.Int `positional:"true" required:"true" boa:"noconfig,noenv"`
Choice string `positional:"true" required:"true" alts:"against,for,abstain" boa:"noconfig,noenv"`
Reason *string `boa:"noconfig,noenv"`
}
type RegisterParams ¶
type RegisterParams struct {
TransactionOptions
PercentageOptions
BondOptions
LockID *uint256.Int `boa:"noconfig,noenv" descr:"Cancel an unbonding lock into self-delegation"`
ServiceURI boa.Text[*url.URL] `optional:"true" boa:"noconfig,noenv"`
}
type RewardCallerParams ¶
type RewardCallerParams struct {
TransactionOptions
Address ethcommon.Address `positional:"true" required:"true" boa:"noconfig,noenv"`
}
type RewardParams ¶
type RewardParams struct {
TransactionOptions
Orchestrator *ethcommon.Address `boa:"noconfig,noenv" descr:"Target orchestrator; default: configured account"`
}
type RootParams ¶
type RootParams struct {
ConfigFile string `` /* 169-byte string literal not displayed */
OperatorParams
DisplayOptions
}
type SetConfigParams ¶
type SetConfigParams struct {
TransactionOptions
PercentageOptions
ServiceURI boa.Text[*url.URL] `optional:"true" boa:"noconfig,noenv"`
}
type TransactionOptions ¶
type TransactionOptions struct {
Submit bool `optional:"true" boa:"noconfig,noenv" descr:"Broadcast transactions (default: dry-run)"`
Wait bool `default:"true" boa:"noconfig,noenv" descr:"Wait for successful inclusion when submitting"`
NoWait bool `optional:"true" boa:"noconfig,noenv" descr:"Broadcast only; single transactions without replacements"`
Quiet bool `optional:"true" boa:"noconfig,noenv" descr:"Suppress normal transaction output"`
GasLimit *uint64 `` /* 137-byte string literal not displayed */
MaxPriorityFeePerGas *uint256.Int `boa:"noconfig,noenv" descr:"Initial tip cap in wei per gas; otherwise use RPC suggestion"`
TransactionTimeout time.Duration `default:"3m" boa:"noconfig,noenv" descr:"Confirmation interval for each attempt"`
MaxTransactionReplacements uint64 `default:"0" boa:"noconfig,noenv" descr:"Maximum replacements while waiting for inclusion"`
}
TransactionOptions are invocation controls, never TOML/environment values.
type TransferParams ¶
type TransferParams struct {
TransactionOptions
AmountOptions
Recipient ethcommon.Address `positional:"true" required:"true" boa:"noconfig,noenv"`
}
type TypedDataParams ¶
type TypedDataParams struct {
DataFile string `basepath:"source" file:"true" required:"true" boa:"noconfig,noenv"`
}
type UnbondParams ¶
type UnbondParams struct {
TransactionOptions
AmountOptions
}
type WithdrawFeesParams ¶
type WithdrawFeesParams struct {
TransactionOptions
AmountOptions
Recipient *ethcommon.Address `boa:"noconfig,noenv" descr:"Withdrawal recipient; default: configured account"`
}
type WithdrawStakeParams ¶
type WithdrawStakeParams struct {
TransactionOptions
LockOptions
}