UserOp class
- Annotations
-
- @freezed
Constructors
-
UserOp.new({required String transactionHash, required String userOpHash, required String sender, required String entryPoint, required String paymaster, required String paymasterAndData, required String nonce, required bool success, String? revertReason, required String blockTime, required String blockNumber, required String target, required String beneficiary, @Default([]) List<
Erc20Transfers> erc20Transfers, @Default([]) List<Erc721Transfers> erc721Transfers}) -
constfactory
-
UserOp.fromJson(Map<
String, Object?> json) -
factory
Properties
- beneficiary → String
-
no setterinherited
- blockNumber → String
-
no setterinherited
- blockTime → String
-
no setterinherited
-
copyWith
→ $UserOpCopyWith<
UserOp> -
Create a copy of UserOp
with the given fields replaced by the non-null parameter values.
no setterinherited
- entryPoint → String
-
no setterinherited
-
erc20Transfers
→ List<
Erc20Transfers> -
no setterinherited
-
erc721Transfers
→ List<
Erc721Transfers> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- nonce → String
-
no setterinherited
- paymaster → String
-
no setterinherited
- paymasterAndData → String
-
no setterinherited
- revertReason → String?
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sender → String
-
no setterinherited
- success → bool
-
no setterinherited
- target → String
-
no setterinherited
- transactionHash → String
-
no setterinherited
- userOpHash → String
-
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Serializes this UserOp to a JSON map.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
opsFromJson(
Iterable userOps) → List< UserOp> - Creates a list of UserOp instances from a list of JSON objects.