expocli

package
v1.0.0-beta-1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// AppHelpTemplate is help template for expo
	AppHelpTemplate = `` /* 488-byte string literal not displayed */

)
View Source
var ContractSolidityTemplate = `// SPDX-License-Identifier: MIT

pragma solidity 0.8.10;

contract {{.Name}} {
	constructor() {}
}`

ContractSolidityTemplate is template for contract creation

Functions

func NewApp

func NewApp(usage string) *cli.App

NewApp will create new cli app

func Prompt

func Prompt(q string) string

Prompt will send user a prompt

func PromptSelect

func PromptSelect(q string, data []string) string

PromptSelect will send user select option

func Spinners

func Spinners() *yacspin.Spinner

Spinners will create new spinner

Types

type Compiler

type Compiler struct {
	Version  string `json:"version"`
	Optimize bool   `json:"optimize"`
	Runs     string `json:"runs"`
}

Compiler struct for configuration

type Config

type Config struct {
	Name     string      `json:"name"`
	Networks interface{} `json:"networks"`
	Compiler Compiler    `json:"compiler"`
}

Config struct for configuration

type DeployConfig

type DeployConfig struct {
	ContractName string        `json:"contractName"`
	Input        []interface{} `json:"input"`
}

DeployConfig is config for deployment

type Network

type Network struct {
	Rpc    string `json:"rpc"`
	Secret string `json:"secret"`
}

Network struct for configuration

Jump to

Keyboard shortcuts

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