commands

package
v0.6.5 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeleteFactProviderInfoCommand

type DeleteFactProviderInfoCommand struct {
	cmdutils.QuorumPrivateTxIOCommand
	OwnerKey                    flag.ECDSAPrivateKeyFromFile `long:"ownerkey"         required:"true" description:"fact provider registry owner private key filename"`
	BackendURL                  string                       `long:"backendurl"       required:"true" description:"Ethereum backend URL"`
	FactProviderRegistryAddress flag.EthereumAddress         `long:"registryaddr"     required:"true" description:"Ethereum address of fact provider registry contract"`
	FactProviderAddress         flag.EthereumAddress         `long:"provideraddr"     required:"true" description:"Ethereum address of fact provider"`
	Verbosity                   int                          `long:"verbosity"                        description:"log verbosity (0-9)" default:"2"`
	VModule                     string                       `long:"vmodule"                          description:"log verbosity pattern"`
}

DeleteFactProviderInfoCommand deletes fact provider information from FactProviderRegistry contract

func (*DeleteFactProviderInfoCommand) Execute

func (c *DeleteFactProviderInfoCommand) Execute(args []string) error

Execute implements flags.Commander interface

type DeployFactProviderRegistryCommand

type DeployFactProviderRegistryCommand struct {
	cmdutils.QuorumPrivateTxIOCommand
	OwnerKey   flag.ECDSAPrivateKeyFromFile `long:"ownerkey"   required:"true" description:"fact provider registry owner private key filename"`
	BackendURL string                       `long:"backendurl" required:"true" description:"Ethereum backend URL"`
	Verbosity  int                          `long:"verbosity"                  description:"log verbosity (0-9)" default:"2"`
	VModule    string                       `long:"vmodule"                    description:"log verbosity pattern"`
}

DeployFactProviderRegistryCommand deploys FactProviderRegistry contract

func (*DeployFactProviderRegistryCommand) Execute

func (c *DeployFactProviderRegistryCommand) Execute(args []string) error

Execute implements flags.Commander interface

type GetFactProviderInfoCommand

type GetFactProviderInfoCommand struct {
	cmdutils.QuorumPrivateTxIOCommand
	BackendURL                  string               `long:"backendurl"       required:"true" description:"Ethereum backend URL"`
	FactProviderRegistryAddress flag.EthereumAddress `long:"registryaddr"     required:"true" description:"Ethereum address of fact provider registry contract"`
	FactProviderAddress         flag.EthereumAddress `long:"provideraddr"     required:"true" description:"Ethereum address of fact provider"`
	Verbosity                   int                  `long:"verbosity"                        description:"log verbosity (0-9)" default:"2"`
	VModule                     string               `long:"vmodule"                          description:"log verbosity pattern"`
}

GetFactProviderInfoCommand gets fact provider information from FactProviderRegistry contract

func (*GetFactProviderInfoCommand) Execute

func (c *GetFactProviderInfoCommand) Execute(args []string) error

Execute implements flags.Commander interface

type RootCommand

type RootCommand struct {
	Version                           func()                            `short:"v" long:"version"  description:"Print the version of tool and exit"`
	DeployFactProviderRegistryCommand DeployFactProviderRegistryCommand `command:"deploy" description:"Deploy fact provider registry"`
	SetFactProviderInfoCommand        SetFactProviderInfoCommand        `command:"set"    description:"Set fact provider information"`
	GetFactProviderInfoCommand        GetFactProviderInfoCommand        `command:"get"    description:"Get fact provider information"`
	DeleteFactProviderInfoCommand     DeleteFactProviderInfoCommand     `command:"delete" description:"Delete fact provider information"`
}

RootCommand is a root command used to parse command line arguments

var Root RootCommand

Root is a prepared command to be used in command line arguments parsing

type SetFactProviderInfoCommand

type SetFactProviderInfoCommand struct {
	cmdutils.QuorumPrivateTxIOCommand
	OwnerKey                    flag.ECDSAPrivateKeyFromFile `long:"ownerkey"         required:"true" description:"fact provider registry owner private key filename"`
	BackendURL                  string                       `long:"backendurl"       required:"true" description:"Ethereum backend URL"`
	FactProviderRegistryAddress flag.EthereumAddress         `long:"registryaddr"     required:"true" description:"Ethereum address of fact provider registry contract"`
	FactProviderAddress         flag.EthereumAddress         `long:"provideraddr"     required:"true" description:"Ethereum address of fact provider"`
	FactProviderName            string                       `long:"providername"     required:"true" description:"Name of fact provider"`
	FactProviderPassportAddress flag.EthereumAddress         `long:"providerpassaddr"                 description:"Ethereum address of passport of fact provider"`
	FactProviderWebsite         string                       `long:"providerwebsite"                  description:"Website of fact provider"`
	Verbosity                   int                          `long:"verbosity"                        description:"log verbosity (0-9)" default:"2"`
	VModule                     string                       `long:"vmodule"                          description:"log verbosity pattern"`
}

SetFactProviderInfoCommand sets fact provider information in FactProviderRegistry contract

func (*SetFactProviderInfoCommand) Execute

func (c *SetFactProviderInfoCommand) Execute(args []string) error

Execute implements flags.Commander interface

Jump to

Keyboard shortcuts

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