OctacoreSmartWallet class
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