commands

package
v0.74.7-patch-mainnet-... Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: AGPL-3.0 Imports: 56 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnnounceNode

func AnnounceNode(ctx context.Context, parser *flags.Parser) error

func BlockExplorer

func BlockExplorer(ctx context.Context, parser *flags.Parser) error

func Bridge

func Bridge(ctx context.Context, parser *flags.Parser) error

func CometBFT added in v0.74.0

func CometBFT(_ context.Context, parser *flags.Parser) error

func Datanode

func Datanode(ctx context.Context, parser *flags.Parser) error

func Init

func Init(ctx context.Context, parser *flags.Parser) error

func Main

func Main(ctx context.Context) error

func Node

func Node(ctx context.Context, parser *flags.Parser) error

func ProposeProtocolUpgrade

func ProposeProtocolUpgrade(ctx context.Context, parser *flags.Parser) error

func Query

func Query(ctx context.Context, parser *flags.Parser) error

func Register

func Register(ctx context.Context, parser *flags.Parser, cmds ...Subcommand) error

Register registers one or more subcommands.

func RotateEthKey

func RotateEthKey(ctx context.Context, parser *flags.Parser) error

func Start

func Start(ctx context.Context, parser *flags.Parser) error

func Tendermint

func Tendermint(_ context.Context, parser *flags.Parser) error

func Tm

func Tm(_ context.Context, parser *flags.Parser) error

func UnsafeResetAll

func UnsafeResetAll(_ context.Context, parser *flags.Parser) error

func Verify

func Verify(ctx context.Context, parser *flags.Parser) error

func Version

func Version(_ context.Context, parser *flags.Parser) error

func Wallet

func Wallet(ctx context.Context, parser *flags.Parser) error

func Watch

func Watch(ctx context.Context, parser *flags.Parser) error

Types

type AnnounceNodeCmd

type AnnounceNodeCmd struct {
	config.VegaHomeFlag
	config.OutputFlag
	config.Passphrase `long:"passphrase-file"`

	InfoURL          string `` /* 135-byte string literal not displayed */
	Country          string `` /* 135-byte string literal not displayed */
	Name             string `` /* 135-byte string literal not displayed */
	AvatarURL        string `` /* 135-byte string literal not displayed */
	FromEpoch        uint64 `` /* 135-byte string literal not displayed */
	SubmitterAddress string `description:"Ethereum address to use as a submitter to contract changes"             long:"submitter-address" short:"s"`
}

func (*AnnounceNodeCmd) Execute

func (opts *AnnounceNodeCmd) Execute(_ []string) error

type BridgeCmd

type BridgeCmd struct {
	ERC20 *bridge.ERC20Cmd `command:"erc20" description:"Validator utilities to manage the erc20 bridge"`
}

type InitCmd

type InitCmd struct {
	config.VegaHomeFlag
	config.OutputFlag
	config.Passphrase `long:"nodewallet-passphrase-file"`

	Force bool `description:"Erase existing vega configuration at the specified path" long:"force" short:"f"`

	NoTendermint   bool   `description:"Disable tendermint configuration generation" long:"no-tendermint"`
	TendermintHome string `` /* 151-byte string literal not displayed */
	TendermintKey  string `` /* 210-byte string literal not displayed */
}

func (*InitCmd) Execute

func (opts *InitCmd) Execute(args []string) error

func (*InitCmd) Usage

func (opts *InitCmd) Usage() string

type ProposeUpgradeCmd

type ProposeUpgradeCmd struct {
	config.VegaHomeFlag
	config.OutputFlag
	config.Passphrase `long:"passphrase-file"`

	VegaReleaseTag     string `description:"A valid vega core release tag for the upgrade proposal" long:"vega-release-tag" required:"true" short:"v"`
	UpgradeBlockHeight uint64 `description:"The block height at which the upgrade should be made"   long:"height"           required:"true" short:"h"`
}

func (*ProposeUpgradeCmd) Execute

func (opts *ProposeUpgradeCmd) Execute(_ []string) error

type QueryCmd

type QueryCmd struct {
	Accounts          query.AccountsCmd          `command:"accounts"                   description:"Query a vega node to get the state of accounts"`
	Assets            query.AssetsCmd            `command:"assets"                     description:"Query a vega node to get the list of available assets"`
	NetworkParameters query.NetworkParametersCmd `command:"netparams"                  description:"Query a vega node to get the list network parameters"`
	Parties           query.PartiesCmd           `command:"parties"                    description:"Query a vega node to get the list of parties"`
	Validators        query.ValidatorsCmd        `command:"validators"                 description:"Query a vega node to get the list of the validators"`
	Markets           query.MarketsCmd           `command:"markets"                    description:"Query a vega node to get the list of all markets"`
	Proposals         query.ProposalsCmd         `command:"proposals"                  description:"Query a vega node to get the list of all proposals"`
	Help              bool                       `description:"Show this help message" long:"help"                                                         short:"h"`
}

type RotateEthKeyCmd

type RotateEthKeyCmd struct {
	config.VegaHomeFlag
	config.OutputFlag
	config.Passphrase `long:"passphrase-file"`

	TargetBlock      uint64 `description:"The future block height at which the rotation will take place" long:"target-block"      short:"b"`
	RotateFrom       string `description:"Ethereum address being rotated from"                           long:"rotate-from"       short:"r"`
	SubmitterAddress string `description:"Ethereum address to use as a submitter to contract changes"    long:"submitter-address" short:"s"`
}

func (*RotateEthKeyCmd) Execute

func (opts *RotateEthKeyCmd) Execute(_ []string) error

type StartCmd

type StartCmd struct {
	config.Passphrase `description:"A file contain the passphrase to decrypt the node wallet" long:"nodewallet-passphrase-file"`
	config.VegaHomeFlag
	config.Config

	TendermintHome string `description:"Directory for tendermint config and data (default: $HOME/.cometbft)" long:"tendermint-home"`

	Network    string `description:"The network to start this node with"               long:"network"`
	NetworkURL string `description:"The URL to a genesis file to start this node with" long:"network-url"`
}

func (*StartCmd) Execute

func (cmd *StartCmd) Execute([]string) error

type Subcommand

type Subcommand func(context.Context, *flags.Parser) error

Subcommand is the signature of a sub command that can be registered.

type UnsafeResetAllCmd

type UnsafeResetAllCmd struct {
	config.VegaHomeFlag
}

func (*UnsafeResetAllCmd) Execute

func (cmd *UnsafeResetAllCmd) Execute(_ []string) error

type VerifyCmd

type VerifyCmd struct {
	Asset   verify.AssetCmd   `command:"passet"  description:"verify the payload of an asset proposal"`
	Genesis verify.GenesisCmd `command:"genesis" description:"verify the appstate of a genesis file"`
}

type VersionCmd

type VersionCmd struct {
	config.OutputFlag
	// contains filtered or unexported fields
}

func (*VersionCmd) Execute

func (cmd *VersionCmd) Execute(_ []string) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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