internal

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: BSD-3-Clause Imports: 16 Imported by: 0 modules, 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 CreateERC20Cmd

func CreateERC20Cmd(client *CommandLineClient) *cobra.Command

CreateERC20Cmd creates rootcommand for ERC20 and adds a subcommand if rootcommand executed the user will also see the output of the syncing status of ethereum

func YesNo

func YesNo(b bool) string

YesNo returns "Yes" if b is true, and "No" if b is false.

Types

type CommandLineClient

type CommandLineClient struct {
	*api.HTTPClient

	Config     *client.Config
	RootCmd    *cobra.Command
	ERC20Cmd   *cobra.Command
	TFChainCmd *cobra.Command
	PreRunE    func(*client.Config) (*client.Config, error)
}

CommandLineClient specific for bridge client

func NewCommandLineClient

func NewCommandLineClient(address, name, userAgent string) (*CommandLineClient, error)

NewCommandLineClient creates a new CLI client, which can be run as it is, or be extended/modified to fit your needs.

func (*CommandLineClient) Run

func (cli *CommandLineClient) Run() error

Run the CLI, logic dependend upon the command the user used.

type Config

type Config struct {
	// These values aren't used for validation,
	// but only in order to estimate progress with the syncing of your consensus.
	BlockFrequencyInSeconds int64
	GenesisBlockTimestamp   types.Timestamp
}

Config defines the configuration for the bridge (CLI) client.

Jump to

Keyboard shortcuts

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