UserOperationBuilder class
A concrete implementation of IUserOperationBuilder
that provides a flexible way to construct a IUserOperation
.
- Implemented types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildOp(
EthereumAddress entryPoint, BigInt chainId) → Future< IUserOperation> -
Builds the operation asynchronously and returns a future of it.
override
-
getCallData(
) → String -
Gets the call data of the operation.
override
-
getCallGasLimit(
) → BigInt -
Gets the call gas limit of the operation.
override
-
getInitCode(
) → String -
Gets the init code of the operation.
override
-
getMaxFeePerGas(
) → BigInt -
Gets the max fee per gas of the operation.
override
-
getMaxPriorityFeePerGas(
) → BigInt -
Gets the max priority fee per gas of the operation.
override
-
getNonce(
) → BigInt -
Gets the nonce of the operation.
override
-
getOp(
) → IUserOperation -
Gets the constructed operation.
override
-
getPaymasterAndData(
) → String -
Gets the paymaster and associated data of the operation.
override
-
getPreVerificationGas(
) → BigInt -
Gets the pre-verification gas of the operation.
override
-
getSender(
) → String -
Gets the sender of the operation.
override
-
getSignature(
) → String -
Gets the signature of the operation.
override
-
getVerificationGasLimit(
) → BigInt -
Gets the verification gas limit of the operation.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resetDefaults(
) → IUserOperationBuilder -
Resets all field values to their defaults.
override
-
resetMiddleware(
) → IUserOperationBuilder -
Resets middleware.
override
-
resetOp(
) → IUserOperationBuilder -
Resets the operation to initial state.
override
-
resolveFields(
Map< String, dynamic> op) → Map<String, dynamic> -
setCallData(
String data) → IUserOperationBuilder -
Sets the call data of the operation.
override
-
setCallGasLimit(
BigInt gas) → IUserOperationBuilder -
Sets the call gas limit of the operation.
override
-
setInitCode(
String code) → IUserOperationBuilder -
Sets the init code of the operation.
override
-
setMaxFeePerGas(
BigInt val) → IUserOperationBuilder -
Sets the max fee per gas of the operation.
override
-
setMaxPriorityFeePerGas(
BigInt fee) → IUserOperationBuilder -
Sets the max priority fee per gas of the operation.
override
-
setNonce(
BigInt val) → IUserOperationBuilder -
Sets the nonce of the operation.
override
-
setPartial(
Map< String, dynamic> partialOp) → IUserOperationBuilder -
Sets the operation partially with a map of key-value pairs.
override
-
setPaymasterAndData(
String val) → IUserOperationBuilder -
Sets the paymaster and associated data of the operation.
override
-
setPreVerificationGas(
BigInt gas) → IUserOperationBuilder -
Sets the pre-verification gas of the operation.
override
-
setSender(
String address) → IUserOperationBuilder -
Sets the sender of the operation.
override
-
setSignature(
String val) → IUserOperationBuilder -
Sets the signature of the operation.
override
-
setVerificationGasLimit(
BigInt gas) → IUserOperationBuilder -
Sets the verification gas limit of the operation.
override
-
toString(
) → String -
A string representation of this object.
inherited
-
useDefaults(
Map< String, dynamic> partialOp) → IUserOperationBuilder -
Uses default values for fields not set in
partialOp
.override -
useMiddleware(
UserOperationMiddlewareFn fn) → IUserOperationBuilder -
Applies middleware function to the operation construction process.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited