Documentation ¶
Index ¶
- Constants
- Variables
- func AccountNamePrompt(accountNames []string) string
- func AddToGitIgnore(filename string, loader flowkit.ReaderWriter) error
- 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 CreateTabWriter(b *bytes.Buffer) *tabwriter.Writer
- func Exit(code int, msg string)
- func GenericBoolPrompt(msg string) bool
- func GetAddressNetwork(address flowsdk.Address) (flowsdk.ChainID, error)
- 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 ScaffoldPrompt(logger output.Logger, scaffoldItems []ScaffoldItem) int
- func ShowContractDiffPrompt(logger output.Logger) func([]byte, []byte) bool
- func TestMocks(t *testing.T) (*mocks.MockServices, *flowkit.State, flowkit.ReaderWriter)
- func ValidateECDSAP256Pub(key string) error
- func WantToUseMainnetVersionPrompt() bool
- type AccountData
- type ContractData
- type DeploymentData
- type ScaffoldItem
Constants ¶
View Source
const AlreadyInstalled = 2
View Source
const CancelInstall = 1
View Source
const EnvPrefix = "FLOW"
Variables ¶
View Source
var NoLogger = output.NewStdoutLogger(output.NoneLog)
View Source
var TestID = flow.HexToID("24993fc99f81641c45c0afa307e683b4f08d407d90041aa9439f487acb33d633")
Functions ¶
func AccountNamePrompt ¶
func AddToGitIgnore ¶
AddToGitIgnore adds a new line to the .gitignore if one doesn't exist it creates it.
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 ¶ added in v1.12.0
func GetAddressNetwork ¶
GetAddressNetwork returns the chain ID for an address.
func InstallPathPrompt ¶
func InstallPrompt ¶
func InstallPrompt() int
func NamePrompt ¶
func NamePrompt() string
func NewNetworkPrompt ¶
func RemoveAccountPrompt ¶
func RemoveContractFromFlowJSONPrompt ¶ added in v1.3.2
func RemoveContractPrompt ¶
func RemoveDeploymentPrompt ¶
func RemoveDeploymentPrompt(deployments config.Deployments) (account string, network string)
func RemoveNetworkPrompt ¶
func ReportCrash ¶
func ReportCrash() bool
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 TestMocks ¶
func TestMocks(t *testing.T) (*mocks.MockServices, *flowkit.State, flowkit.ReaderWriter)
TestMocks creates mock flowkit services, an empty state and a mock reader writer
func ValidateECDSAP256Pub ¶
ValidateECDSAP256Pub attempt to decode the hex string representation of a ECDSA P256 public key
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 Previewnet string }
func NewContractPrompt ¶
func NewContractPrompt() *ContractData
type DeploymentData ¶
func NewDeploymentPrompt ¶
type ScaffoldItem ¶ added in v1.1.1
Click to show internal directories.
Click to hide internal directories.