prompt

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultPromptListSize = 10
View Source
const SelectableListSize = 4

Variables

This section is empty.

Functions

func MustCreateInputDataForMethod

func MustCreateInputDataForMethod(method abi.Method) []byte

func MustInputChainID

func MustInputChainID() big.Int

func MustInputContractAddress

func MustInputContractAddress() string

func MustInputPrivateKey

func MustInputPrivateKey() *ecdsa.PrivateKey

func MustInputRpcUrl

func MustInputRpcUrl() string

func MustInputValue added in v1.4.0

func MustInputValue() *big.Int

func MustSelectAddressBookUsage added in v1.5.0

func MustSelectAddressBookUsage(contractAddr string) bool

func MustSelectApplyConfig

func MustSelectApplyConfig() bool

MustSelectApplyConfig returns true if the user don't want to setup manually which means the user wants to apply the config file

func MustSelectContractABI

func MustSelectContractABI(abis map[string]abi.ABI) (string, abi.ABI)

MustSelectContractABI prompts the user to select a contract ABI and returns the selected contract name and ABI

func MustSelectMethod

func MustSelectMethod(contractABI abi.ABI, rw internalabi.MethodType) (string, abi.Method)

func MustSelectReadOrWrite

func MustSelectReadOrWrite() internalabi.MethodType

func MustSelectStep

func MustSelectStep() step.Step

func NoSelected added in v1.5.0

func NoSelected(s string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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