Documentation ¶
Index ¶
- Constants
- func AccountNamePrompt(accountNames []string) string
- func AddressPromptOrEmpty(label, errorMessage string) string
- func ApproveTransactionForBuildingPrompt(transaction *flow.Transaction) bool
- func ApproveTransactionForSendingPrompt(transaction *flow.Transaction) bool
- func ApproveTransactionForSigningPrompt(transaction *flow.Transaction) bool
- func ApproveTransactionPrompt(tx *flow.Transaction, promptMsg string) bool
- func AutocompletionPrompt() (string, string)
- func CreateAccountNetworkPrompt() (string, config.Network)
- func GenericBoolPrompt(msg string) bool
- func GenericSelect(items []string, message string) string
- func InstallPathPrompt(defaultPath string) string
- func InstallPrompt() int
- func NamePrompt() string
- func NewNetworkPrompt() map[string]string
- func RemoveAccountPrompt(accounts config.Accounts) string
- func RemoveContractFromFlowJSONPrompt(contractName string) bool
- func RemoveContractPrompt(contracts config.Contracts) string
- func RemoveDeploymentPrompt(deployments config.Deployments) (account string, network string)
- func RemoveNetworkPrompt(networks config.Networks) string
- func ReportCrash() bool
- func RunSelectOptions(options []string, message string) ([]string, error)
- func RunTextInput(customMsg, placeholder string) (string, error)
- func ScaffoldPrompt(logger output.Logger, scaffoldItems []ScaffoldItem) int
- func ShowContractDiffPrompt(logger output.Logger) func([]byte, []byte) bool
- func WantToUseMainnetVersionPrompt() bool
- type AccountData
- type ContractData
- type DeploymentData
- type ScaffoldItem
Constants ¶
View Source
const AlreadyInstalled = 2
View Source
const CancelInstall = 1
Variables ¶
This section is empty.
Functions ¶
func AccountNamePrompt ¶
func AddressPromptOrEmpty ¶
func ApproveTransactionForBuildingPrompt ¶
func ApproveTransactionForBuildingPrompt(transaction *flow.Transaction) bool
func ApproveTransactionForSendingPrompt ¶
func ApproveTransactionForSendingPrompt(transaction *flow.Transaction) bool
func ApproveTransactionForSigningPrompt ¶
func ApproveTransactionForSigningPrompt(transaction *flow.Transaction) bool
func AutocompletionPrompt ¶
func GenericBoolPrompt ¶
func GenericSelect ¶
func InstallPathPrompt ¶
func InstallPrompt ¶
func InstallPrompt() int
func NamePrompt ¶
func NamePrompt() string
func NewNetworkPrompt ¶
func RemoveAccountPrompt ¶
func RemoveContractPrompt ¶
func RemoveDeploymentPrompt ¶
func RemoveDeploymentPrompt(deployments config.Deployments) (account string, network string)
func RemoveNetworkPrompt ¶
func ReportCrash ¶
func ReportCrash() bool
func RunSelectOptions ¶
RunSelectOptions remains public and is the interface for external usage.
func RunTextInput ¶
RunTextInput remains public. It's the entry point for external usage.
func ScaffoldPrompt ¶
func ScaffoldPrompt(logger output.Logger, scaffoldItems []ScaffoldItem) int
func ShowContractDiffPrompt ¶
ShowContractDiffPrompt shows a diff between the new contract and the existing contract and asks the user if they wish to continue with the deployment returns true if the user wishes to continue with the deployment and false otherwise
func WantToUseMainnetVersionPrompt ¶
func WantToUseMainnetVersionPrompt() bool
Types ¶
type AccountData ¶
type AccountData struct { Name string Address string SigAlgo string HashAlgo string Key string KeyIndex string }
func NewAccountPrompt ¶
func NewAccountPrompt() *AccountData
type ContractData ¶
type ContractData struct { Name string Source string Emulator string Testnet string Mainnet string }
func NewContractPrompt ¶
func NewContractPrompt() *ContractData
type DeploymentData ¶
func AddContractToDeploymentPrompt ¶
func AddContractToDeploymentPrompt(networkName string, accounts accounts.Accounts, contractName string) *DeploymentData
AddContractToDeploymentPrompt prompts a user to select an account to deploy a given contract on a given network
func NewDeploymentPrompt ¶
type ScaffoldItem ¶
Click to show internal directories.
Click to hide internal directories.