Documentation
¶
Overview ¶
Copyright 2023 Origo Foundation This file is part of the Origo Network packages.
Origo is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The Origo packages are distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the Origo packages. If not, see https://github.com/OrigoTeam/origo/blob/main/LICENSE
Copyright 2023 Origo Foundation This file is part of the Origo Network packages.
Origo is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The Origo packages are distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the Origo packages. If not, see https://github.com/OrigoTeam/origo/blob/main/LICENSE
Copyright 2023 Origo Foundation This file is part of the Origo Network packages.
Origo is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The Origo packages are distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the Origo packages. If not, see https://github.com/OrigoTeam/origo/blob/main/LICENSE
Copyright 2023 Origo Foundation This file is part of the Origo Network packages.
Origo is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The Origo packages are distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the Origo packages. If not, see https://github.com/OrigoTeam/origo/blob/main/LICENSE
Copyright 2023 Origo Foundation This file is part of the Origo Network packages.
Origo is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
The Origo packages are distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with the Origo packages. If not, see https://github.com/OrigoTeam/origo/blob/main/LICENSE
Index ¶
- func InitConfig(cmd *cobra.Command) error
- func KeyCommands(defaultNodeHome string) *cobra.Command
- func NewTestnetCmd(mbm module.BasicManager, genBalIterator banktypes.GenesisBalancesIterator) *cobra.Command
- func UnsafeExportEthKeyCommand() *cobra.Command
- func UnsafeImportKeyCommand() *cobra.Command
- func ValidateChainID(baseCmd *cobra.Command) *cobra.Command
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitConfig ¶
func InitConfig(cmd *cobra.Command) error
InitConfig adds the chain-id, encoding and output flags to the persistent flag set.
func KeyCommands ¶
func KeyCommands(defaultNodeHome string) *cobra.Command
KeyCommands registers a sub-tree of commands to interact with local private key storage.
func NewTestnetCmd ¶
func NewTestnetCmd(mbm module.BasicManager, genBalIterator banktypes.GenesisBalancesIterator) *cobra.Command
NewTestnetCmd creates a root testnet command with subcommands to run an in-process testnet or initialize validator configuration files for running a multi-validator testnet in a separate process
func UnsafeExportEthKeyCommand ¶
func UnsafeExportEthKeyCommand() *cobra.Command
UnsafeExportEthKeyCommand exports a key with the given name as a private key in hex format.
func UnsafeImportKeyCommand ¶
func UnsafeImportKeyCommand() *cobra.Command
UnsafeImportKeyCommand imports private keys from a keyfile.
func ValidateChainID ¶
func ValidateChainID(baseCmd *cobra.Command) *cobra.Command
ValidateChainID wraps a cobra command with a RunE function with base 10 integer chain-id verification.
Types ¶
This section is empty.