From 3848956104328ff42c7bc33faade6b91e74ec92b Mon Sep 17 00:00:00 2001 From: Peter Anyaogu Date: Sun, 2 Jun 2024 16:43:11 +0100 Subject: [PATCH] remove pimlico v7 limitation --- CHANGELOG.md | 5 + example/lib/providers/wallet_provider.dart | 54 +++++--- example/lib/screens/create_account.dart | 4 +- example/pubspec.lock | 152 +++++++++++++-------- lib/src/4337/wallet.dart | 7 - pubspec.lock | 82 ++++++----- pubspec.yaml | 4 +- 7 files changed, 184 insertions(+), 124 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e05badc..925052f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +## 0.1.1 + +* Remove chainId verification in the bundler provider +* Allow entrypoint v0.7 for any bundler + ## 0.1.0 * Training wheel support for entrypoint v0.7.0 via pimlico bundler diff --git a/example/lib/providers/wallet_provider.dart b/example/lib/providers/wallet_provider.dart index baf881a..f640d00 100644 --- a/example/lib/providers/wallet_provider.dart +++ b/example/lib/providers/wallet_provider.dart @@ -27,16 +27,18 @@ class WalletProvider extends ChangeNotifier { WalletProvider() : _chain = Chain( - chainId: 11155111, + chainId: 31337, explorer: "https://sepolia.etherscan.io/", - entrypoint: EntryPointAddress.v07) + entrypoint: EntryPointAddress( + 0.6, + EthereumAddress.fromHex( + "0x5165c9e79213e2208947589c6e1dcc80ee8d3d00"))) ..accountFactory = EthereumAddress.fromHex( - "0xECA49857B32A12403F5a3A64ad291861EF4B63cb") // v07 p256 factory address - ..jsonRpcUrl = "https://rpc.ankr.com/eth_sepolia" - ..bundlerUrl = - "https://api.pimlico.io/v2/11155111/rpc?apikey=YOUR_API_KEY" - ..paymasterUrl = - "https://api.pimlico.io/v2/11155111/rpc?apikey=YOUR_API_KEY"; + "0x0ce83Bf5d20c539E77e1E607B8349E26c6b20133") // v07 p256 factory address + ..jsonRpcUrl = "http://127.0.0.1:8545" + ..bundlerUrl = "http://localhost:3000/rpc"; + // ..paymasterUrl = + // "https://api.pimlico.io/v2/11155111/rpc?apikey=875f3458-a37c-4187-8ac5-d08bbfa0d501"; // "0x402A266e92993EbF04a5B3fd6F0e2b21bFC83070" v06 p256 factory address Future registerWithPassKey(String name, @@ -45,7 +47,8 @@ class WalletProvider extends ChangeNotifier { PassKeySigner("webauthn.io", "webauthn", "https://webauthn.io"); final hwdSigner = HardwareSigner.withTag(name); - final salt = Uint256.fromHex( + final salt = Uint256.zero; + Uint256.fromHex( hexlify(w3d.keccak256(Uint8List.fromList(utf8.encode(name))))); try { @@ -93,21 +96,23 @@ class WalletProvider extends ChangeNotifier { } Future createPrivateKeyWallet() async { - _chain.accountFactory = Constants.simpleAccountFactoryAddressv06; + final random = math.Random.secure(); + final privateKey = EthPrivateKey.createRandom(random); - final signer = PrivateKeySigner.createRandom("123456"); + final signer = PrivateKeySigner.create(privateKey, "123456", random); log("signer: ${signer.getAddress()}"); + log("pk: ${hexlify(privateKey.privateKey)}"); final SmartWalletFactory walletFactory = SmartWalletFactory(_chain, signer); final salt = Uint256.fromHex(hexlify(w3d .keccak256(EthereumAddress.fromHex(signer.getAddress()).addressBytes))); - log("salt: ${salt.toHex()}"); + log("pk salt: ${salt.toHex()}"); try { _wallet = await walletFactory.createSimpleAccount(salt); - log("wallet created ${_wallet?.address.hex} "); + log("pk wallet created ${_wallet?.address.hex} "); } catch (e) { _errorMessage = e.toString(); notifyListeners(); @@ -146,6 +151,7 @@ class WalletProvider extends ChangeNotifier { userDefinedMaxPriorityFeePerGas: BigInt.parse("0x52412100")); } // mints nft + log(DateTime.timestamp().toString()); final tx1 = await _wallet?.sendTransaction( nft, Contract.encodeFunctionCall("safeMint", nft, @@ -174,11 +180,16 @@ class WalletProvider extends ChangeNotifier { Future sendTransaction(String recipient, String amount) async { if (_wallet != null) { - final etherAmount = w3d.EtherAmount.fromBigInt(w3d.EtherUnit.wei, - BigInt.from(double.parse(amount) * math.pow(10, 18))); + final response = await transferToken( + EthereumAddress.fromHex(recipient), + w3d.EtherAmount.fromBigInt( + w3d.EtherUnit.wei, BigInt.from(20 * math.pow(10, 6)))); + + // final etherAmount = w3d.EtherAmount.fromBigInt(w3d.EtherUnit.wei, + // BigInt.from(double.parse(amount) * math.pow(10, 18))); - final response = - await _wallet?.send(EthereumAddress.fromHex(recipient), etherAmount); + // final response = + // await _wallet?.send(EthereumAddress.fromHex(recipient), etherAmount); final receipt = await response?.wait(); log("Transaction receipt Hash: ${receipt?.userOpHash}"); @@ -186,4 +197,13 @@ class WalletProvider extends ChangeNotifier { log("No wallet available to send transaction"); } } + + Future transferToken( + EthereumAddress recipient, w3d.EtherAmount amount) async { + final erc20 = + EthereumAddress.fromHex("0xDc64a140Aa3E981100a9becA4E685f962f0cF6C9"); + + return await _wallet?.sendTransaction( + erc20, Contract.encodeERC20TransferCall(erc20, recipient, amount)); + } } diff --git a/example/lib/screens/create_account.dart b/example/lib/screens/create_account.dart index d74cab2..05517fc 100644 --- a/example/lib/screens/create_account.dart +++ b/example/lib/screens/create_account.dart @@ -125,7 +125,9 @@ class _CreateAccountScreenState extends State { child: TextButton.icon( onPressed: () { try { - context.read().createSafeWallet(); + context + .read() + .createPrivateKeyWallet(); Navigator.pushNamed(context, '/home'); } catch (e) { 'Something went wrong: $e'; diff --git a/example/pubspec.lock b/example/pubspec.lock index eedf18d..436ebf2 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -13,26 +13,26 @@ packages: dependency: transitive description: name: archive - sha256: "22600aa1e926be775fa5fe7e6894e7fb3df9efda8891c73f70fb3262399a432d" + sha256: cb6a278ef2dbb298455e1a713bda08524a175630ec643a242c399c932a0a1f7d url: "https://pub.dev" source: hosted - version: "3.4.10" + version: "3.6.1" args: dependency: transitive description: name: args - sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.5.0" asn1lib: dependency: transitive description: name: asn1lib - sha256: c9c85fedbe2188b95133cbe960e16f5f448860f7133330e272edbbca5893ddc6 + sha256: "58082b3f0dca697204dbab0ef9ff208bfaea7767ea771076af9a343488428dda" url: "https://pub.dev" source: hosted - version: "1.5.2" + version: "1.5.3" async: dependency: transitive description: @@ -45,10 +45,10 @@ packages: dependency: transitive description: name: blockchain_utils - sha256: "38ef5f4a22441ac4370aed9071dc71c460acffc37c79b344533f67d15f24c13c" + sha256: b0d73432f145ba6f9299c362ea6d8ea9804d5422c34180abee7854b7adcb869d url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" boolean_selector: dependency: transitive description: @@ -133,10 +133,10 @@ packages: dependency: "direct main" description: name: cupertino_icons - sha256: d57953e10f9f8327ce64a508a355f0b1ec902193f66288e8cb5070e7c47eeb2d + sha256: ba631d1c7f7bef6b729a622b7b752645a2d076dba9976925b8f25725a30e1ee6 url: "https://pub.dev" source: hosted - version: "1.0.6" + version: "1.0.8" eip1559: dependency: transitive description: @@ -165,10 +165,10 @@ packages: dependency: transitive description: name: ffi - sha256: "7bf0adc28a23d395f19f3f1eb21dd7cfd1dd9f8e1c50051c069122e6853bc878" + sha256: "493f37e7df1804778ff3a53bd691d8692ddf69702cf4c1c1096a2e41b4779e21" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.2" file: dependency: transitive description: @@ -210,18 +210,18 @@ packages: dependency: "direct main" description: name: flutter_native_splash - sha256: "558f10070f03ee71f850a78f7136ab239a67636a294a44a06b6b7345178edb1e" + sha256: edf39bcf4d74aca1eb2c1e43c3e445fd9f494013df7f0da752fefe72020eedc0 url: "https://pub.dev" source: hosted - version: "2.3.10" + version: "2.4.0" flutter_screenutil: dependency: "direct main" description: name: flutter_screenutil - sha256: "8cf100b8e4973dc570b6415a2090b0bfaa8756ad333db46939efc3e774ee100d" + sha256: "8239210dd68bee6b0577aa4a090890342d04a136ce1c81f98ee513fc0ce891de" url: "https://pub.dev" source: hosted - version: "5.9.0" + version: "5.9.3" flutter_test: dependency: "direct dev" description: flutter @@ -236,10 +236,10 @@ packages: dependency: "direct main" description: name: fluttertoast - sha256: dfdde255317af381bfc1c486ed968d5a43a2ded9c931e87cbecd88767d6a71c1 + sha256: "81b68579e23fcbcada2db3d50302813d2371664afe6165bc78148050ab94bf66" url: "https://pub.dev" source: hosted - version: "8.2.4" + version: "8.2.5" google_fonts: dependency: "direct main" description: @@ -260,10 +260,10 @@ packages: dependency: transitive description: name: http - sha256: a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba + sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.2.1" http_parser: dependency: transitive description: @@ -276,10 +276,10 @@ packages: dependency: transitive description: name: image - sha256: "4c68bfd5ae83e700b5204c1e74451e7bf3cf750e6843c6e158289cf56bda018e" + sha256: "2237616a36c0d69aef7549ab439b833fb7f9fb9fc861af2cc9ac3eedddd69ca8" url: "https://pub.dev" source: hosted - version: "4.1.7" + version: "4.2.0" intl: dependency: transitive description: @@ -300,10 +300,10 @@ packages: dependency: transitive description: name: json_annotation - sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" url: "https://pub.dev" source: hosted - version: "4.8.1" + version: "4.9.0" json_rpc_2: dependency: transitive description: @@ -312,6 +312,30 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.2" + leak_tracker: + dependency: transitive + description: + name: leak_tracker + sha256: "7f0df31977cb2c0b88585095d168e689669a2cc9b97c309665e3386f3e9d341a" + url: "https://pub.dev" + source: hosted + version: "10.0.4" + leak_tracker_flutter_testing: + dependency: transitive + description: + name: leak_tracker_flutter_testing + sha256: "06e98f569d004c1315b991ded39924b21af84cf14cc94791b8aea337d25b57f8" + url: "https://pub.dev" + source: hosted + version: "3.0.3" + leak_tracker_testing: + dependency: transitive + description: + name: leak_tracker_testing + sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" + url: "https://pub.dev" + source: hosted + version: "3.0.1" lints: dependency: transitive description: @@ -324,26 +348,26 @@ packages: dependency: transitive description: name: matcher - sha256: "1803e76e6653768d64ed8ff2e1e67bea3ad4b923eb5c56a295c3e634bad5960e" + sha256: d2323aa2060500f906aa31a895b4030b6da3ebdcc5619d14ce1aada65cd161cb url: "https://pub.dev" source: hosted - version: "0.12.16" + version: "0.12.16+1" material_color_utilities: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.8.0" meta: dependency: transitive description: name: meta - sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e + sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.12.0" nested: dependency: transitive description: @@ -404,34 +428,34 @@ packages: dependency: transitive description: name: path - sha256: "8829d8a55c13fc0e37127c29fedf290c102f4e40ae94ada574091fe0ff96c917" + sha256: "087ce49c3f0dc39180befefc60fdb4acd8f8620e5682fe2476afd0b3688bb4af" url: "https://pub.dev" source: hosted - version: "1.8.3" + version: "1.9.0" path_provider: dependency: "direct main" description: name: path_provider - sha256: b27217933eeeba8ff24845c34003b003b2b22151de3c908d0e679e8fe1aa078b + sha256: c9e7d3a4cd1410877472158bee69963a4579f78b68c65a2b7d40d1a7a88bb161 url: "https://pub.dev" source: hosted - version: "2.1.2" + version: "2.1.3" path_provider_android: dependency: transitive description: name: path_provider_android - sha256: "477184d672607c0a3bf68fbbf601805f92ef79c82b64b4d6eb318cbca4c48668" + sha256: "9c96da072b421e98183f9ea7464898428e764bc0ce5567f27ec8693442e72514" url: "https://pub.dev" source: hosted - version: "2.2.2" + version: "2.2.5" path_provider_foundation: dependency: transitive description: name: path_provider_foundation - sha256: "5a7999be66e000916500be4f15a3633ebceb8302719b47b9cc49ce924125350f" + sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.4.0" path_provider_linux: dependency: transitive description: @@ -484,10 +508,10 @@ packages: dependency: transitive description: name: pointycastle - sha256: "43ac87de6e10afabc85c445745a7b799e04de84cebaa4fd7bf55a5e1e9604d29" + sha256: "4be0097fcf3fd3e8449e53730c631200ebc7b88016acecab2b0da2f0149222fe" url: "https://pub.dev" source: hosted - version: "3.7.4" + version: "3.9.1" provider: dependency: "direct main" description: @@ -524,26 +548,26 @@ packages: dependency: "direct main" description: name: shared_preferences - sha256: "81429e4481e1ccfb51ede496e916348668fd0921627779233bd24cc3ff6abd02" + sha256: d3bbe5553a986e83980916ded2f0b435ef2e1893dfaa29d5a7a790d0eca12180 url: "https://pub.dev" source: hosted - version: "2.2.2" + version: "2.2.3" shared_preferences_android: dependency: transitive description: name: shared_preferences_android - sha256: "8568a389334b6e83415b6aae55378e158fbc2314e074983362d20c562780fb06" + sha256: "93d0ec9dd902d85f326068e6a899487d1f65ffcd5798721a95330b26c8131577" url: "https://pub.dev" source: hosted - version: "2.2.1" + version: "2.2.3" shared_preferences_foundation: dependency: transitive description: name: shared_preferences_foundation - sha256: "7708d83064f38060c7b39db12aefe449cb8cdc031d6062280087bc4cdb988f5c" + sha256: "0a8a893bf4fd1152f93fec03a415d11c27c74454d96e2318a7ac38dd18683ab7" url: "https://pub.dev" source: hosted - version: "2.3.5" + version: "2.4.0" shared_preferences_linux: dependency: transitive description: @@ -564,10 +588,10 @@ packages: dependency: transitive description: name: shared_preferences_web - sha256: "7b15ffb9387ea3e237bb7a66b8a23d2147663d391cafc5c8f37b2e7b4bde5d21" + sha256: "9aee1089b36bd2aafe06582b7d7817fd317ef05fc30e6ba14bff247d0933042a" url: "https://pub.dev" source: hosted - version: "2.2.2" + version: "2.3.0" shared_preferences_windows: dependency: transitive description: @@ -641,10 +665,10 @@ packages: dependency: transitive description: name: test_api - sha256: "5c2f730018264d276c20e4f1503fd1308dfbbae39ec8ee63c5236311ac06954b" + sha256: "9955ae474176f7ac8ee4e989dadfb411a58c30415bcfb648fa04b2b8a03afa7f" url: "https://pub.dev" source: hosted - version: "0.6.1" + version: "0.7.0" typed_data: dependency: transitive description: @@ -673,10 +697,10 @@ packages: dependency: transitive description: name: uuid - sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8 + sha256: "814e9e88f21a176ae1359149021870e87f7cddaf633ab678a5d2b0bff7fd1ba8" url: "https://pub.dev" source: hosted - version: "4.3.3" + version: "4.4.0" variance_dart: dependency: "direct main" description: @@ -692,6 +716,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.4" + vm_service: + dependency: transitive + description: + name: vm_service + sha256: "3923c89304b715fb1eb6423f017651664a03bf5f4b29983627c4da791f74a4ec" + url: "https://pub.dev" + source: hosted + version: "14.2.1" wallet: dependency: transitive description: @@ -704,18 +736,18 @@ packages: dependency: transitive description: name: web - sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 + sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" url: "https://pub.dev" source: hosted - version: "0.3.0" + version: "0.5.1" web3_signers: dependency: "direct main" description: name: web3_signers - sha256: fd2a4ee394537f2140c08a395eadd8611aa713e04699c29b6aaba75e11264faf + sha256: a8f520f32e858cf482b1e04f38ccef225fe2b6ca2ccf56ed0c5a087b7f6c0701 url: "https://pub.dev" source: hosted - version: "0.0.6" + version: "0.0.7" web3dart: dependency: "direct main" description: @@ -728,10 +760,10 @@ packages: dependency: transitive description: name: win32 - sha256: "464f5674532865248444b4c3daca12bd9bf2d7c47f759ce2617986e7229494a8" + sha256: a79dbe579cb51ecd6d30b17e0cae4e0ea15e2c0e66f69ad4198f22a6789e94f4 url: "https://pub.dev" source: hosted - version: "5.2.0" + version: "5.5.1" xdg_directories: dependency: transitive description: @@ -757,5 +789,5 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.2.6 <4.0.0" - flutter: ">=3.16.9" + dart: ">=3.4.0 <4.0.0" + flutter: ">=3.22.0" diff --git a/lib/src/4337/wallet.dart b/lib/src/4337/wallet.dart index c3787b1..c5a6da0 100644 --- a/lib/src/4337/wallet.dart +++ b/lib/src/4337/wallet.dart @@ -219,13 +219,6 @@ class SmartWallet with _PluginManager, _GasSettings implements SmartWalletBase { initCode: responses[0] > Uint256.zero ? Uint8List(0) : null, signature: dummySignature); - // require pimlico bundlers for entrypoint v07 - if (_chain.entrypoint.version == 0.7) { - final bundlerHost = Uri.parse(_chain.bundlerUrl!).host; - Logger.conditionalError(!bundlerHost.contains("pimlico"), - "Entrypoint v07 is relatively new. Currently, only compatible with pimlico bundler https://pimlico.io."); - } - return _updateUserOperationGas(op, feePerGas: responses[1]); }); diff --git a/pubspec.lock b/pubspec.lock index 07c8696..a799288 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -5,34 +5,34 @@ packages: dependency: transitive description: name: _fe_analyzer_shared - sha256: eb376e9acf6938204f90eb3b1f00b578640d3188b4c8a8ec054f9f479af8d051 + sha256: "0b2f2bd91ba804e53a61d757b986f89f1f9eaed5b11e4b2f5a2468d86d6c9fc7" url: "https://pub.dev" source: hosted - version: "64.0.0" + version: "67.0.0" analyzer: dependency: transitive description: name: analyzer - sha256: "69f54f967773f6c26c7dcb13e93d7ccee8b17a641689da39e878d5cf13b06893" + sha256: "37577842a27e4338429a1cbc32679d508836510b056f1eedf0c8d20e39c1383d" url: "https://pub.dev" source: hosted - version: "6.2.0" + version: "6.4.1" args: dependency: transitive description: name: args - sha256: eef6c46b622e0494a36c5a12d10d77fb4e855501a91c1b9ef9339326e58f0596 + sha256: "7cf60b9f0cc88203c5a190b4cd62a99feea42759a7fa695010eb5de1c0b2252a" url: "https://pub.dev" source: hosted - version: "2.4.2" + version: "2.5.0" asn1lib: dependency: transitive description: name: asn1lib - sha256: c9c85fedbe2188b95133cbe960e16f5f448860f7133330e272edbbca5893ddc6 + sha256: "58082b3f0dca697204dbab0ef9ff208bfaea7767ea771076af9a343488428dda" url: "https://pub.dev" source: hosted - version: "1.5.2" + version: "1.5.3" async: dependency: transitive description: @@ -45,10 +45,10 @@ packages: dependency: transitive description: name: blockchain_utils - sha256: "38ef5f4a22441ac4370aed9071dc71c460acffc37c79b344533f67d15f24c13c" + sha256: b0d73432f145ba6f9299c362ea6d8ea9804d5422c34180abee7854b7adcb869d url: "https://pub.dev" source: hosted - version: "2.1.1" + version: "2.1.2" boolean_selector: dependency: transitive description: @@ -77,10 +77,10 @@ packages: dependency: transitive description: name: build_daemon - sha256: "0343061a33da9c5810b2d6cee51945127d8f4c060b7fbdd9d54917f0a3feaaa1" + sha256: "79b2aef6ac2ed00046867ed354c88778c9c0f029df8a20fe10b5436826721ef9" url: "https://pub.dev" source: hosted - version: "4.0.1" + version: "4.0.2" build_resolvers: dependency: transitive description: @@ -93,10 +93,10 @@ packages: dependency: "direct dev" description: name: build_runner - sha256: "3ac61a79bfb6f6cc11f693591063a7f19a7af628dc52f141743edac5c16e8c22" + sha256: "1414d6d733a85d8ad2f1dfcb3ea7945759e35a123cb99ccfac75d0758f75edfa" url: "https://pub.dev" source: hosted - version: "2.4.9" + version: "2.4.10" build_runner_core: dependency: transitive description: @@ -271,10 +271,10 @@ packages: dependency: "direct main" description: name: http - sha256: a2bbf9d017fcced29139daa8ed2bba4ece450ab222871df93ca9eec6f80c34ba + sha256: "761a297c042deedc1ffbb156d6e2af13886bb305c2a343a4d972504cd67dd938" url: "https://pub.dev" source: hosted - version: "1.2.0" + version: "1.2.1" http_multi_server: dependency: transitive description: @@ -319,10 +319,10 @@ packages: dependency: transitive description: name: json_annotation - sha256: b10a7b2ff83d83c777edba3c6a0f97045ddadd56c944e1a23a3fdf43a1bf4467 + sha256: "1ce844379ca14835a50d2f019a3099f419082cfdd231cd86a142af94dd5c6bb1" url: "https://pub.dev" source: hosted - version: "4.8.1" + version: "4.9.0" json_rpc_2: dependency: transitive description: @@ -359,18 +359,18 @@ packages: dependency: transitive description: name: material_color_utilities - sha256: "9528f2f296073ff54cb9fee677df673ace1218163c3bc7628093e7eed5203d41" + sha256: "0e0a020085b65b6083975e499759762399b4475f766c21668c4ecca34ea74e5a" url: "https://pub.dev" source: hosted - version: "0.5.0" + version: "0.8.0" meta: dependency: transitive description: name: meta - sha256: a6e590c838b18133bb482a2745ad77c5bb7715fb0451209e1a7567d416678b8e + sha256: "7687075e408b093f36e6bbf6c91878cc0d4cd10f409506f7bc996f68220b9136" url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.12.0" mime: dependency: transitive description: @@ -463,10 +463,10 @@ packages: dependency: transitive description: name: pointycastle - sha256: "43ac87de6e10afabc85c445745a7b799e04de84cebaa4fd7bf55a5e1e9604d29" + sha256: "4be0097fcf3fd3e8449e53730c631200ebc7b88016acecab2b0da2f0149222fe" url: "https://pub.dev" source: hosted - version: "3.7.4" + version: "3.9.1" pool: dependency: transitive description: @@ -487,10 +487,10 @@ packages: dependency: transitive description: name: pubspec_parse - sha256: c63b2876e58e194e4b0828fcb080ad0e06d051cb607a6be51a9e084f47cb9367 + sha256: c799b721d79eb6ee6fa56f00c04b472dcd44a30d258fac2174a6ec57302678f8 url: "https://pub.dev" source: hosted - version: "1.2.3" + version: "1.3.0" sec: dependency: transitive description: @@ -511,10 +511,10 @@ packages: dependency: transitive description: name: shelf_web_socket - sha256: "9ca081be41c60190ebcb4766b2486a7d50261db7bd0f5d9615f2d653637a84c1" + sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611" url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "2.0.0" sky_engine: dependency: transitive description: flutter @@ -620,10 +620,10 @@ packages: dependency: transitive description: name: uuid - sha256: cd210a09f7c18cbe5a02511718e0334de6559871052c90a90c0cca46a4aa81c8 + sha256: "814e9e88f21a176ae1359149021870e87f7cddaf633ab678a5d2b0bff7fd1ba8" url: "https://pub.dev" source: hosted - version: "4.3.3" + version: "4.4.0" vector_math: dependency: transitive description: @@ -652,18 +652,18 @@ packages: dependency: transitive description: name: web - sha256: afe077240a270dcfd2aafe77602b4113645af95d0ad31128cc02bce5ac5d5152 + sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" url: "https://pub.dev" source: hosted - version: "0.3.0" + version: "0.5.1" web3_signers: dependency: "direct main" description: name: web3_signers - sha256: fd2a4ee394537f2140c08a395eadd8611aa713e04699c29b6aaba75e11264faf + sha256: a8f520f32e858cf482b1e04f38ccef225fe2b6ca2ccf56ed0c5a087b7f6c0701 url: "https://pub.dev" source: hosted - version: "0.0.6" + version: "0.0.7" web3dart: dependency: "direct main" description: @@ -680,14 +680,22 @@ packages: url: "https://pub.dev" source: hosted version: "0.0.7" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "24301d8c293ce6fe327ffe6f59d8fd8834735f0ec36e4fd383ec7ff8a64aa078" + url: "https://pub.dev" + source: hosted + version: "0.1.5" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: d88238e5eac9a42bb43ca4e721edba3c08c6354d4a53063afaa568516217621b + sha256: a2d56211ee4d35d9b344d9d4ce60f362e4f5d1aafb988302906bd732bc731276 url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "3.0.0" yaml: dependency: transitive description: @@ -697,5 +705,5 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.2.6 <4.0.0" + dart: ">=3.4.0 <4.0.0" flutter: ">=3.16.9" diff --git a/pubspec.yaml b/pubspec.yaml index e584970..85a7fa9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: variance_dart description: An Account Abstraction (4337) Development kit, for quickly building mobile web3 apps and smart wallets. -version: 0.1.0 +version: 0.1.1 documentation: https://docs.variance.space homepage: https://variance.space repository: https://github.com/vaariance/variance-dart @@ -20,7 +20,7 @@ dependencies: sdk: flutter web3dart: ^2.7.2 http: ^1.1.0 - web3_signers: ^0.0.6 + web3_signers: ^0.0.7 dev_dependencies: web3dart_builders: ^0.0.7