utils

package
v0.0.0-...-5da5179 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommonFlags

func AddCommonFlags(cmd *cobra.Command)

AddCommonFlags adds common flags to the provided Cobra command.

func GetUserOps

func GetUserOps(cmd *cobra.Command) *model.UserOperation

GetUserOps parses the 'userop' JSON string or file provided in the command flags and returns a UserOperation object. It panics if the JSON string is empty, the file can't be read, or the JSON can't be parsed.

func PrintSignature

func PrintSignature(userOp *model.UserOperation)

PrintSignature prints the signature + hex encoded intent JSON (calldata).

func ProcessCallDataUsingBigInt

func ProcessCallDataUsingBigInt(jsonData string) (string, error)

ProcessCallDataUsingBigInt convert the int to ProtoBigInt.

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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