OctacoreSmartWallet class

Inheritance

Constructors

OctacoreSmartWallet({required String scwAddress, String? ownerAddress, required Signer<_SignerImpl> signer, int? salt, String? paymasterAddress, PaymasterType? paymasterType, Map<int, ContractCall>? batch, List<String>? plugins})

Properties

abi String
finalinherited
batch Map<int, ContractCall>
getter/setter pairinherited
bundlerURL String
finalinherited
contract ↔ Contract
getter/setter pairinherited
defaultPaymaster Paymaster?
getter/setter pairinherited
deployedContract ↔ DeployedContract
getter/setter pairinherited
entryPointAddress String
finalinherited
entryPointContract EntryPoint
getter/setter pairinherited
factoryAddress String
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
initCode String?
getter/setter pairinherited
isInitialized bool?
getter/setter pairinherited
isVerified bool
getter/setter pairinherited
ownerAddress String?
finalinherited
paymasterConfig PaymasterConfig
getter/setter pairinherited
plugins List<String>?
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
salt int?
finalinherited
scwAddress String
finalinherited
signer → Signer<_SignerImpl>
finalinherited
usePaymaster bool
getter/setter pairinherited

Methods

addContractCallToBatch({required String contractAddress, required String contractAbi, required String functionName, required List args, BigInt? gasPrice, BigInt? gasLimit}) bool
Adds a contract call to a batch of Ethereum transactions.
inherited
addDeposit({required BigInt value, required Credentials credentials, BigInt? gasPrice, BigInt? gasLimit}) Future
inherited
attachPaymaster(Paymaster paymaster) bool
Attaches a paymaster to the current paymaster instance, which can be used to pay for gas in user operations (userops).
inherited
callContract({required String contractAddress, required String contractAbi, required String functionName, required List args, required String currentAddress, bool? useDefaultPaymaster, BigInt? gasPrice, BigInt? gasLimit}) Future<String>
Calls a function of a smart contract and returns the user operation hash.
inherited
checkIfInitialized() Future<bool>
Checks if the smart contract is initialized.
inherited
clearBatch() bool
Clears the batch of contract calls in the current instance.
inherited
concatenateBuffers(List<Uint8List> buffers) Uint8List
inherited
constructPaymasterAndData(String paymasterAddress, String validTimeRangeHex, String signedPayMasterData) Uint8List
inherited
depositToWallet({required BigInt value}) Future<void>
inherited
detachPaymaster() bool
Detaches the currently attached paymaster from the current paymaster instance.
inherited
disablePlugin(String pluginAddress) Future<String>
Disables a plugin for the smart wallet.
inherited
enablePlugin(String pluginAddress) Future<String>
Enables a plugin for the smart wallet.
inherited
encodeParameters(List<String> types, List values) String
inherited
execute({required String to, required BigInt value, required List<int> data, BigInt? gasPrice, BigInt? gasLimit}) Future<TransactionResponse?>
inherited
executeBatch(String currentAddress, bool? useDefaultPaymaster) Future<String>
Executes a batch of Ethereum transactions and returns the user operation hash.
inherited
getAllPlugins() Future<List>
inherited
getDeposit() Future
inherited
getEncodedDataAsList({required String contractAddress, required String contractAbi, required String functionName, required List args, BigInt? gasPrice, BigInt? gasLimit}) List
inherited
getEntryPoint() Future<Object>
inherited
getInitCode() Future<String>
inherited
getNonce() Future<BigInt>
inherited
getOwner() Future<String?>
inherited
getSignedPaymasterData(UserOperation userOp) Future<String>
inherited
getUserOpTransactionHash(String userOpHash) Future<TransactionModel>
Take a userOp hash and return the transaction hash.
inherited
isPluginEnabled(String pluginAddress) Future<bool>
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeFromBatch(int id) bool
Removes a contract call from the batch of Ethereum transactions.
inherited
resetOwner(String newOwner) Future<String>
inherited
toString() String
A string representation of this object.
inherited
transfer(String toAddress, String value, bool usePaymaster, String currentAddress) Future<String>
inherited
withdrawDepositTo({required String to, required BigInt value, required Credentials credentials, BigInt? gasPrice, BigInt? gasLimit}) Future<TransactionResponse?>
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited