utils

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 12 Imported by: 3

Documentation

Index

Constants

View Source
const RollupArgsString = "<validator_folder> <ethURL> <rollup_address>"
View Source
const WalletArgsString = "[--password=pass] [--gasprice==FloatInGwei]"

Variables

This section is empty.

Functions

func GetKeystore

func GetKeystore(
	validatorFolder string,
	args WalletFlags,
	flags *flag.FlagSet,
) (*bind.TransactOpts, error)

GetKeystore returns a transaction authorization based on an existing ethereum keystore located in validatorFolder/wallets or creates one if it does not exist. It accepts a password using the "password" command line argument or via an interactive prompt. It also sets the gas price of the auth via an optional "gasprice" arguement.

Types

type RollupArgs

type RollupArgs struct {
	ValidatorFolder string
	EthURL          string
	Address         common.Address
}

func ParseRollupCommand

func ParseRollupCommand(fs *flag.FlagSet, startIndex int) RollupArgs

type WalletFlags

type WalletFlags struct {
	// contains filtered or unexported fields
}

func AddWalletFlags added in v0.7.0

func AddWalletFlags(fs *flag.FlagSet) WalletFlags

Jump to

Keyboard shortcuts

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