Documentation ¶
Index ¶
- type UserOpV7Hexify
- func (op *UserOpV7Hexify) GasFees() ([32]byte, error)
- func (op *UserOpV7Hexify) GetAccountGasLimits() ([32]byte, error)
- func (op *UserOpV7Hexify) GetInitCode() ([]byte, error)
- func (op *UserOpV7Hexify) GetPaymasterAndData() ([]byte, error)
- func (op *UserOpV7Hexify) GetUserOpHash(epAddress common.Address, ethClient *ethclient.Client) (common.Hash, error)
- func (op *UserOpV7Hexify) PackUserOp() (*entrypoint.PackedUserOperation, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserOpV7Hexify ¶
type UserOpV7Hexify struct { Sender string `json:"sender" mapstructure:"sender"` Nonce string `json:"nonce" mapstructure:"nonce"` // (optional) Factory string `json:"factory" mapstructure:"factory"` FactoryData string `json:"factoryData" mapstructure:"factoryData"` CallData string `json:"callData" mapstructure:"callData"` CallGasLimit string `json:"callGasLimit" mapstructure:"callGasLimit"` VerificationGasLimit string `json:"verificationGasLimit" mapstructure:"verificationGasLimit"` PreVerificationGas string `json:"preVerificationGas" mapstructure:"preVerificationGas"` MaxFeePerGas string `json:"maxFeePerGas" mapstructure:"maxFeePerGas" ` MaxPriorityFeePerGas string `json:"maxPriorityFeePerGas" mapstructure:"maxPriorityFeePerGas" ` // (optional) Paymaster string `json:"paymaster" mapstructure:"paymaster"` PaymasterVerificationGasLimit string `json:"paymasterVerificationGasLimit" mapstructure:"paymasterVerificationGasLimit"` PaymasterPostOpGasLimit string `json:"paymasterPostOpGasLimit" mapstructure:"paymasterPostOpGasLimit"` PaymasterData string `json:"paymasterAndData" mapstructure:"paymasterAndData"` Signature string `json:"signature" mapstructure:"signature"` }
UserOpV7Hexify is a struct used to store user operations in a database. Contains all EIP-4337 with all hex fields.
func (*UserOpV7Hexify) GasFees ¶
func (op *UserOpV7Hexify) GasFees() ([32]byte, error)
GasFees returns the gas fees of the user operation
func (*UserOpV7Hexify) GetAccountGasLimits ¶
func (op *UserOpV7Hexify) GetAccountGasLimits() ([32]byte, error)
GetAccountGasLimits returns the account gas limits of the user operation
func (*UserOpV7Hexify) GetInitCode ¶
func (op *UserOpV7Hexify) GetInitCode() ([]byte, error)
GetInitCode returns the init code of the user operation
func (*UserOpV7Hexify) GetPaymasterAndData ¶
func (op *UserOpV7Hexify) GetPaymasterAndData() ([]byte, error)
GetPaymasterAndData returns the paymaster and data of the user operation
func (*UserOpV7Hexify) GetUserOpHash ¶
func (op *UserOpV7Hexify) GetUserOpHash(epAddress common.Address, ethClient *ethclient.Client) (common.Hash, error)
GetUserOpHash returns the hash of the user operation
func (*UserOpV7Hexify) PackUserOp ¶
func (op *UserOpV7Hexify) PackUserOp() (*entrypoint.PackedUserOperation, error)
PackUserOp packs the user operation into a PackedUserOperation struct
Click to show internal directories.
Click to hide internal directories.