Documentation ¶
Index ¶
- func AddCommonFlags(cmd *cobra.Command) error
- func ConvJSONNum2ProtoValues(jsonStr string) (string, error)
- func GetChainMonikers(cmd *cobra.Command, nodesMap config.NodesMap, opsCount int) ([]string, error)
- func GetHashes(cmd *cobra.Command) ([]common.Hash, error)
- func GetUserOps(cmd *cobra.Command) ([]*model.UserOperation, error)
- func IsNumericString(s string) bool
- func IsValidHex(s string) bool
- func PrintPostIntentSolutionSignature(userOp *model.UserOperation)
- func PrintSignedOpJSON(userOp *model.UserOperation) error
- func UpdateUserOp(userOp *model.UserOperation, nonce *big.Int) *model.UserOperation
- type NoncesMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCommonFlags ¶
AddCommonFlags adds common flags to the provided Cobra command.
func ConvJSONNum2ProtoValues ¶
ConvJSONNum2ProtoValues converts numeric values in a JSON string to base64 encoded BigInt representations. It specifically looks for fields named "value" and converts their numeric contents.
func GetChainMonikers ¶
GetChainMonikers parses the network moniker or numeric chain-id value from the command line flag 'c' and returns a slice of chain monikers.
func GetHashes ¶
GetHashes parses the 32-byte hash values from the command line flag 'h' and returns a slice of common.Hash.
func GetUserOps ¶
func GetUserOps(cmd *cobra.Command) ([]*model.UserOperation, error)
GetUserOps parses the 'userop' JSON string or file provided in the command flags and returns a slice of UserOperation objects. It processes numeric values before unmarshaling to ensure proper formatting.
func IsNumericString ¶
IsNumericString checks if a string represents a numeric value (big.Int)
func IsValidHex ¶
IsValidHex checks if a string is a valid hexadecimal representation.
func PrintPostIntentSolutionSignature ¶
func PrintPostIntentSolutionSignature(userOp *model.UserOperation)
PrintPostIntentSolutionSignature prints the signature + hex encoded intent JSON (calldata).
func PrintSignedOpJSON ¶
func PrintSignedOpJSON(userOp *model.UserOperation) error
func UpdateUserOp ¶
func UpdateUserOp(userOp *model.UserOperation, nonce *big.Int) *model.UserOperation
UpdateUserOp sets the nonce value and 4337 default gas limits if they are zero.