chain

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 25 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 Root

func Root(out, errOut io.Writer) *cobra.Command

func Status

func Status(ctx context.Context, p OperatorParams, display DisplayOptions, out io.Writer) error

Types

type AmountOptions

type AmountOptions struct {
	Amount    string `required:"true" boa:"noconfig,noenv" descr:"Amount in human LPT/ETH units, or all where supported"`
	BaseUnits bool   `optional:"true" boa:"noconfig,noenv" descr:"Interpret numeric amounts as integer token base units or wei"`
}

type BondOptions

type BondOptions struct {
	Amount     string `optional:"true" boa:"noconfig,noenv" descr:"Wallet LPT to bond: human units or all"`
	BaseUnits  bool   `optional:"true" boa:"noconfig,noenv"`
	Redelegate bool   `optional:"true" boa:"noconfig,noenv" descr:"Move existing stake without adding tokens"`
}

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
	AmountOptions
	Reserve string `required:"true" boa:"noconfig,noenv" descr:"Reserve amount in human ETH units, or wei with --base-units"`
}

type GasParams

type GasParams struct {
	MaxPriorityFeePerGas *uint256.Int `boa:"noconfig,noenv" descr:"Explicit initial tip cap in wei per gas"`
}

type ListParams

type ListParams struct {
	Active bool `optional:"true" boa:"noconfig,noenv"`
}

type LockOptions

type LockOptions struct {
	LockID uint256.Int `required:"true" boa:"noconfig,noenv"`
}

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 PercentageOptions struct {
	RewardCut *string `boa:"noconfig,noenv" descr:"Reward commission percentage, 0–100 with up to four decimals"`
	FeeCut    *string `boa:"noconfig,noenv" descr:"Fee commission percentage, 0–100 with up to four decimals"`
}

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
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL