deploy

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: LGPL-3.0 Imports: 18 Imported by: 4

Documentation

Index

Constants

View Source
const (
	TwoDaysTermInBlocks int64 = 6200
)

Variables

View Source
var (
	// Flags for all EVM Deploy CLI commands
	Bridge           bool
	BridgeAddress    string
	DeployAll        bool
	DomainId         uint8
	GenericHandler   bool
	Erc20            bool
	Erc20Handler     bool
	Erc20Name        string
	Erc20Symbol      string
	Erc721           bool
	Erc721Handler    bool
	Erc721Name       string
	Erc721Symbol     string
	Erc721BaseURI    string
	Fee              uint64
	RelayerThreshold uint64
	Relayers         []string
)
View Source
var BridgeAddr common.Address
View Source
var DeployEVM = &cobra.Command{
	Use:   "deploy",
	Short: "Deploy smart contracts",
	Long:  "This command can be used to deploy all or some of the contracts required for bridging. Selection of contracts can be made by either specifying --all or a subset of flags",
	PreRun: func(cmd *cobra.Command, args []string) {
		logger.LoggerMetadata(cmd.Name(), cmd.Flags())
	},
	RunE: CallDeployCLI,
	Args: func(cmd *cobra.Command, args []string) error {
		err := ValidateDeployFlags(cmd, args)
		if err != nil {
			return err
		}
		err = ProcessDeployFlags(cmd, args)
		return err
	},
}
View Source
var Deployments []string
View Source
var ErrNoDeploymentFlagsProvided = errors.New("provide at least one deployment flag. For help use --help")
View Source
var RelayerAddresses []common.Address

Functions

func BindDeployEVMFlags

func BindDeployEVMFlags(cmd *cobra.Command)

func CallDeployCLI

func CallDeployCLI(cmd *cobra.Command, args []string) error

func DeployCLI

func DeployCLI(cmd *cobra.Command, args []string, txFabric calls.TxFabric, gasPricer utils.GasPricerWithPostConfig) error

func ProcessDeployFlags

func ProcessDeployFlags(cmd *cobra.Command, args []string) error

func ValidateDeployFlags

func ValidateDeployFlags(cmd *cobra.Command, args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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