utils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ApproveTokensCommand = cobra.Command{
	Use:   "approvetokens",
	Short: "",
	Long:  "",
	Run:   utilsNode}

ApproveTokensCommand is the command that approves the transfer of tokens to the staking contract

View Source
var Command = cobra.Command{
	Use:   "utils",
	Short: "A collection of tools for node administration",
	Long:  "utils is a misc. collection of tools. Ranges from initial config to automating Ethereum setup",
	Run:   utilsNode}

Command is the cobra.Command specifically for running as an edge node, i.e. not a validator or relay

View Source
var DepositCommand = cobra.Command{
	Use:   "deposit",
	Short: "Creates a token deposit into the sidechain",
	Long:  "",
	Run:   utilsNode}

DepositCommand is the command that triggers a token deposit for the caller

View Source
var EthdkgCommand = cobra.Command{
	Use:   "ethdkg",
	Short: "",
	Long:  "",
	Run:   utilsNode}

EthdkgCommand is the command that triggers a fresh start of the ETHDKG process

View Source
var RegisterCommand = cobra.Command{
	Use:   "register",
	Short: "",
	Long:  "",
	Run:   utilsNode}

RegisterCommand is the command the stakes tokens

View Source
var SendWeiCommand = cobra.Command{
	Use:   "sendwei",
	Short: "",
	Long:  "",
	Run:   utilsNode}

SendWeiCommand is the command that sends wei from one account to another

View Source
var TransferTokensCommand = cobra.Command{
	Use:   "transfertokens",
	Short: "",
	Long:  "",
	Run:   utilsNode}

TransferTokensCommand is the command that should follow ApproveTokens and does the actual transfer

View Source
var UnregisterCommand = cobra.Command{
	Use:   "unregister",
	Short: "Removes the default account from the validator pool",
	Long:  "",
	Run:   utilsNode}

UnregisterCommand is the command the requests the caller is removed from validator pool

Functions

func LogStatus

func LogStatus(logger *logrus.Logger, eth blockchain.Ethereum)

LogStatus sends simple info about our Ethereum setup to the logger

Types

This section is empty.

Jump to

Keyboard shortcuts

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