Documentation
¶
Index ¶
- Constants
- func AllZeroParamFunctions(a *abi.ABI) []abi.Method
- func AnalyzeAndShowMsigTxInfo(multisigContract *msig.MultisigContract, txid *big.Int, ...) (fc *jarviscommon.FunctionCall, confirmed bool, executed bool)
- func CommonFunctionCallPreprocess(cmd *cobra.Command, args []string) (err error)
- func CommonTxPreprocess(cmd *cobra.Command, args []string) (err error)
- func HandleApproveOrRevokeOrExecuteMsig(method string, cmd *cobra.Command, args []string, postProcess PostProcessFunc)
- func HandlePostSign(signedTx *types.Transaction, reader *reader.EthReader, ...) (broadcasted bool, err error)
- func PromptArray(input abi.Argument, prefill string, network jarvisnetworks.Network) (interface{}, error)
- func PromptFilePath(prompter string) string
- func PromptFunctionCallData(analyzer util.TxAnalyzer, contractAddress string, methodIndex uint64, ...) (method *abi.Method, params []interface{}, err error)
- func PromptIndex(prompter string, min, max int) int
- func PromptInput(prompter string) string
- func PromptInputWithValidation(prompter string, validator StringValidator) string
- func PromptItemInList(prompter string, options []string) string
- func PromptMethod(a *abi.ABI, methodIndex uint64, mode string) (*abi.Method, string, error)
- func PromptNonArray(input abi.Argument, prefill string, network jarvisnetworks.Network) (interface{}, error)
- func PromptNumber(prompter string, validator NumberValidator, network jarvisnetworks.Network) *big.Int
- func PromptParam(interactiveMode bool, input abi.Argument, prefill string, ...) (interface{}, error)
- func PromptPercentageBps(prompter string, upbound int64, network jarvisnetworks.Network) *big.Int
- func PromptTxConfirmation(analyzer util.TxAnalyzer, from jarviscommon.Address, tx *types.Transaction, ...) error
- func PromptTxData(analyzer util.TxAnalyzer, contractAddress string, methodIndex uint64, ...) ([]byte, error)
- func ScanForTxs(para string) (nwks []string, addresses []string)
- func StringParamToBytes(data string) []byte
- func ValidTxType(r *reader.EthReader, network jarvisnetworks.Network) (uint8, error)
- type NumberValidator
- type PostProcessFunc
- type StringValidator
Constants ¶
View Source
const ( NEXT int = -1 BACK int = -2 CUSTOM int = -3 CONSTRUCTOR_METHOD_INDEX uint64 = 1000000 // assuming there is no contract with more than 1m methods )
Variables ¶
This section is empty.
Functions ¶
func AnalyzeAndShowMsigTxInfo ¶
func AnalyzeAndShowMsigTxInfo( multisigContract *msig.MultisigContract, txid *big.Int, network jarvisnetworks.Network, ) (fc *jarviscommon.FunctionCall, confirmed bool, executed bool)
func CommonFunctionCallPreprocess ¶
CommonFunctionCallPreprocess processes args passed to the command in order to initiate config's variables in a conventional way across many Function Call alike commands.
func CommonTxPreprocess ¶
CommonTxPreprocess processes args passed to the command in order to initiate config's variables in a conventional way across many commands that do txs.
func HandleApproveOrRevokeOrExecuteMsig ¶
func HandleApproveOrRevokeOrExecuteMsig( method string, cmd *cobra.Command, args []string, postProcess PostProcessFunc, )
func HandlePostSign ¶ added in v0.0.30
func HandlePostSign( signedTx *types.Transaction, reader *reader.EthReader, analyzer *txanalyzer.TxAnalyzer, a *abi.ABI, ) (broadcasted bool, err error)
func PromptArray ¶ added in v0.0.30
func PromptFilePath ¶ added in v0.0.30
func PromptFunctionCallData ¶ added in v0.0.30
func PromptIndex ¶ added in v0.0.30
func PromptInput ¶ added in v0.0.30
func PromptInputWithValidation ¶ added in v0.0.30
func PromptInputWithValidation(prompter string, validator StringValidator) string
func PromptItemInList ¶ added in v0.0.30
func PromptMethod ¶ added in v0.0.30
func PromptNonArray ¶ added in v0.0.30
func PromptNumber ¶ added in v0.0.30
func PromptNumber(prompter string, validator NumberValidator, network jarvisnetworks.Network) *big.Int
func PromptParam ¶ added in v0.0.30
func PromptPercentageBps ¶ added in v0.0.30
func PromptTxConfirmation ¶ added in v0.0.30
func PromptTxConfirmation( analyzer util.TxAnalyzer, from jarviscommon.Address, tx *types.Transaction, customABIs map[string]*abi.ABI, network jarvisnetworks.Network, ) error
func PromptTxData ¶ added in v0.0.30
func ScanForTxs ¶ added in v0.0.30
func StringParamToBytes ¶ added in v0.0.32
func ValidTxType ¶ added in v0.0.30
Types ¶
type NumberValidator ¶ added in v0.0.30
type PostProcessFunc ¶
type PostProcessFunc func(fc *jarviscommon.FunctionCall) error
type StringValidator ¶ added in v0.0.30
Click to show internal directories.
Click to hide internal directories.