commands

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: GPL-3.0 Imports: 36 Imported by: 1

Documentation

Index

Constants

View Source
const (
	BytecodeMismatchSlug       = "bytecode_mismatch"
	InvalidCompilerVersionSlug = "invalid_compiler_semantic_version"
	QuotaLimitReachedSlug      = "quota_limit_reached"
	ForbiddenSlug              = "forbidden"
)

Variables

View Source
var Colorizer aurora.Aurora
View Source
var CurrentCLIVersion string
View Source
var DeploymentProvider providers.DeploymentProvider
View Source
var ForceInit bool
View Source
var RootCmd = &cobra.Command{
	Use:   "tenderly",
	Short: "Tenderly CLI is a suite of development tools for smart contracts.",
	Long: "Tenderly CLI is a suite of development tools for smart contracts which allows your to monitor and debug them on any network.\n\n" +
		"To report a bug or give feedback send us an email at support@tenderly.co\n",
}

Functions

func CheckLogin

func CheckLogin()

func CheckProvider added in v0.8.0

func CheckProvider(deploymentProvider providers.DeploymentProvider)

func CheckUnknownPushNetworks added in v1.7.0

func CheckUnknownPushNetworks(rest *rest.Rest, contracts []providers.Contract) *userError.UserError

CheckUnknownPushNetworks warns about contract deployments on networks Tenderly doesn't recognize — the API silently drops those, and when nothing remains it fails with an opaque internal server error. Returns a user error when no deployment targets a recognized network. If the public networks can't be fetched, validation is skipped.

func CheckVersion

func CheckVersion(force bool, encounteredError bool)

func ContractErrorMessage added in v1.7.0

func ContractErrorMessage(apiErr *payloads.ApiError) string

ContractErrorMessage enriches known verification API error slugs with actionable guidance. Unknown slugs fall back to the raw API message.

func Execute

func Execute()

func ExtractNetworkIDs added in v1.2.0

func ExtractNetworkIDs(networkIDs string) []string

func GetConfigPayload added in v0.9.0

func GetConfigPayload(providerConfig *providers.Config) *payloads.Config

func GetProjectFromFlag added in v1.2.0

func GetProjectFromFlag(projectName string, projects []*model.Project, rest *rest.Rest) *model.Project

func InitProvider added in v1.2.0

func InitProvider()

func LoginSuccessMessage added in v1.7.1

func LoginSuccessMessage()

func NewRest added in v1.2.0

func NewRest() *rest.Rest

func PromptNewDirectory added in v1.2.0

func PromptNewDirectory(forMessage string, defaultPath string) string

func PromptProjectSelect added in v1.2.0

func PromptProjectSelect(projects []*model.Project, rest *rest.Rest, createNewOption bool) *model.Project

func SetCurrentCLIVersion

func SetCurrentCLIVersion(version string)

func WriteGlobalConfig

func WriteGlobalConfig()

func WriteProjectConfig added in v0.2.5

func WriteProjectConfig()

func WrongFolderMessage added in v0.1.6

func WrongFolderMessage(action string, commandFmt string)

Types

type ProjectConfiguration added in v0.5.2

type ProjectConfiguration struct {
	Networks []string
}

type ProjectConfigurationMap added in v0.5.2

type ProjectConfigurationMap map[string]*ProjectConfiguration

func GetProjectConfiguration added in v1.4.0

func GetProjectConfiguration() (ProjectConfigurationMap, error)

type TenderlyStandardFormatter

type TenderlyStandardFormatter struct {
}

func (TenderlyStandardFormatter) Format

func (t TenderlyStandardFormatter) Format(entry *logrus.Entry) ([]byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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