From 745ac7097748c6ff0247b7549d3ac23332e2d43c Mon Sep 17 00:00:00 2001 From: redDwarf03 Date: Fri, 13 Dec 2024 12:55:15 +0100 Subject: [PATCH 1/2] feat: :sparkles: Improve security : encrypt the secret with aeWallet --- .../usecases/bridge_evm_to_ae.usecase.dart | 81 +++++++++++++++++-- lib/l10n/intl_en.arb | 1 + pubspec.lock | 62 ++++++++------ pubspec.yaml | 26 +++--- 4 files changed, 127 insertions(+), 43 deletions(-) diff --git a/lib/domain/usecases/bridge_evm_to_ae.usecase.dart b/lib/domain/usecases/bridge_evm_to_ae.usecase.dart index 706fa274..3d729477 100644 --- a/lib/domain/usecases/bridge_evm_to_ae.usecase.dart +++ b/lib/domain/usecases/bridge_evm_to_ae.usecase.dart @@ -13,6 +13,7 @@ import 'package:aebridge/util/faucet_util.dart'; import 'package:archethic_dapp_framework_flutter/archethic_dapp_framework_flutter.dart' as aedappfm; import 'package:archethic_lib_dart/archethic_lib_dart.dart'; +import 'package:archethic_wallet_client/archethic_wallet_client.dart' as awc; import 'package:crypto/crypto.dart'; import 'package:flutter/foundation.dart'; import 'package:flutter_gen/gen_l10n/localizations.dart'; @@ -38,16 +39,82 @@ class BridgeEVMToArchethicUseCase final session = ref.read(sessionNotifierProvider); await bridgeNotifier.setCurrentStep(0); - Uint8List? secret; - if (recoverySecret != null) { - secret = Uint8List.fromList(recoverySecret); - } else { - secret = generateRandomSecret(); - await bridgeNotifier.setSecret(secret.toList()); + late Uint8List secret; + try { + final dappClient = await aedappfm.sl.getAsync(); + final walletTo = session.walletTo; + if (recoverySecret != null) { + final encryptedSecret = Uint8List.fromList(recoverySecret); + + final decryptedPayloadsResult = await dappClient.decryptPayloads( + awc.DecryptPayloadRequest( + serviceName: + Uri.encodeFull('archethic-wallet-${walletTo!.nameAccount}'), + payloads: [ + awc.DecryptPayloadRequestData( + payload: uint8ListToHex(encryptedSecret), + isHexa: true, + ), + ], + description: { + 'en': localizations.aeDecryptSecret, + }, + ), + ); + await decryptedPayloadsResult.when( + success: (decryptedPayloads) { + secret = hexToUint8List( + decryptedPayloads.decryptedPayloads[0].decryptedPayload, + ); + }, + failure: (failure) async { + await bridgeNotifier + .setFailure(const aedappfm.Failure.connectivityArchethic()); + await bridgeNotifier.setTransferInProgress(false); + throw Exception(); + }, + ); + } else { + secret = generateRandomSecret(); + + final encryptedPayloadsResult = await dappClient.encryptPayloads( + awc.EncryptPayloadRequest( + serviceName: + Uri.encodeFull('archethic-wallet-${walletTo!.nameAccount}'), + payloads: [ + awc.EncryptPayloadRequestData( + payload: uint8ListToHex(secret), + isHexa: true, + ), + ], + ), + ); + await encryptedPayloadsResult.when( + success: (encryptedPayload) async { + await bridgeNotifier.setSecret( + hexToUint8List( + encryptedPayload.encryptedPayloads[0].encryptedPayload, + ), + ); + }, + failure: (failure) async { + await bridgeNotifier + .setFailure(const aedappfm.Failure.connectivityArchethic()); + await bridgeNotifier.setTransferInProgress(false); + throw Exception(); + }, + ); + } + } catch (e) { + await bridgeNotifier.setFailure( + aedappfm.Failure.other(cause: '$e'), + ); + await bridgeNotifier.setTransferInProgress(false); + throw Exception(); } final secretHash = sha256.convert( - secret, + secret.toList(), ); String? htlcEVMAddress; diff --git a/lib/l10n/intl_en.arb b/lib/l10n/intl_en.arb index 74c50724..12c2e86c 100644 --- a/lib/l10n/intl_en.arb +++ b/lib/l10n/intl_en.arb @@ -210,6 +210,7 @@ "aeSignTxDesc3": "This action reveals the secret required to securely unlock funds on both chains, ensuring the finality and symmetry of the bridge.", "aeSignTxDesc4": "This action allows funds to be sent to the smart contract, enabling its execution and ensuring the secure processing of the bridge", "aeSignTxDesc5": "This action allows you to execute the refund of your funds.", + "aeDecryptSecret": "This action allows to decrypt the secret required to secure the bridge between the 2 blockchains.", "aeBridgeProvidedBy": "Bridge provided by", "trustWalletWarning": "Trust Wallet users, please check that the \"Authorize eth_sign\" option is ticked in your application's security menu before processing." } \ No newline at end of file diff --git a/pubspec.lock b/pubspec.lock index 55be4b7d..aaa091b0 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -41,27 +41,30 @@ packages: archethic_dapp_framework_flutter: dependency: "direct main" description: - name: archethic_dapp_framework_flutter - sha256: "71ae3c60cb11dc63651e3f114e2c23752b9505abf5679b023b41aaf872c4150d" - url: "https://pub.dev" - source: hosted - version: "3.0.3" + path: "." + ref: "41-rpc---add-encrypt-and-decrypt-methods" + resolved-ref: "2a2115006b49fc8e42cb503de0ec4ff5ea810488" + url: "https://github.com/archethic-foundation/archethic-dapp-framework-flutter.git" + source: git + version: "3.2.4" archethic_lib_dart: dependency: "direct main" description: - name: archethic_lib_dart - sha256: "741e01c105feea9e49da15ee8742fa1a831bcdb371adb623b49516034520ee1c" - url: "https://pub.dev" - source: hosted + path: "." + ref: upgrade_graqhql + resolved-ref: "9b2f293359595cf498d4c33074327d93233486dd" + url: "https://github.com/archethic-foundation/libdart.git" + source: git version: "4.0.0" archethic_wallet_client: dependency: "direct main" description: - name: archethic_wallet_client - sha256: "692f87f11d4515e9fb8d74b37a2d7da01674f1f9fc95b487b835fb647538a2a6" - url: "https://pub.dev" - source: hosted - version: "2.1.5" + path: "." + ref: "70-add-encrypt-and-decrypt-methods" + resolved-ref: a495d795b690c945513138355443c35f1cdecaf1 + url: "https://github.com/archethic-foundation/archethic-wallet-client-dart.git" + source: git + version: "2.2.0" archive: dependency: transitive description: @@ -656,11 +659,12 @@ packages: graphql: dependency: transitive description: - name: graphql - sha256: d066e53446166c12537458386b507f7426f2b8801ebafc184576aab3cbc64d56 - url: "https://pub.dev" - source: hosted - version: "5.2.0-beta.7" + path: "packages/graphql" + ref: hagen00-upgrade-packages + resolved-ref: "3d4ef96def5234adcd5c41af281c84a8a6ed7850" + url: "https://github.com/hagen00/graphql-flutter.git" + source: git + version: "5.2.0-beta.9" graphs: dependency: transitive description: @@ -1073,10 +1077,10 @@ packages: dependency: transitive description: name: phoenix_socket - sha256: "2d56ffde59875673bffdabd1f709307ab34b317bd868402e3d3a61c23c333b1b" + sha256: "6f1a355177eb1bf61b388407cf18f200fdf06bc5c1d9d05ac87cdd8a27d3ddd6" url: "https://pub.dev" source: hosted - version: "0.7.4" + version: "0.7.6" pinenacl: dependency: transitive description: @@ -1638,18 +1642,26 @@ packages: dependency: transitive description: name: web - sha256: "97da13628db363c635202ad97068d47c5b8aa555808e7a9411963c533b449b27" + sha256: cd3543bd5798f6ad290ea73d210f423502e71900302dde696f8bff84bf89a1cb url: "https://pub.dev" source: hosted - version: "0.5.1" + version: "1.1.0" + web_socket: + dependency: transitive + description: + name: web_socket + sha256: "3c12d96c0c9a4eec095246debcea7b86c0324f22df69893d538fcc6f1b8cce83" + url: "https://pub.dev" + source: hosted + version: "0.1.6" web_socket_channel: dependency: transitive description: name: web_socket_channel - sha256: "58c6666b342a38816b2e7e50ed0f1e261959630becd4c879c4f26bfa14aa5a42" + sha256: "9f187088ed104edd8662ca07af4b124465893caf063ba29758f97af57e61da8f" url: "https://pub.dev" source: hosted - version: "2.4.5" + version: "3.0.1" webkit_inspection_protocol: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index 6c81a1f3..ededd88c 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -8,25 +8,29 @@ environment: sdk: ">=3.3.0 <4.0.0" dependencies: - archethic_dapp_framework_flutter: ^3.0.3 - #archethic_dapp_framework_flutter: - # git: - # url: https://github.com/archethic-foundation/archethic-dapp-framework-flutter.git - # ref: 20-add-btc-in-fetch-price-method + #archethic_dapp_framework_flutter: ^3.0.3 + archethic_dapp_framework_flutter: + git: + url: https://github.com/archethic-foundation/archethic-dapp-framework-flutter.git + ref: 41-rpc---add-encrypt-and-decrypt-methods #archethic_dapp_framework_flutter: # path: ../archethic-dapp-framework-flutter # Archethic dart library for Flutter - archethic_lib_dart: ^4.0.0 + #archethic_lib_dart: ^4.0.0 + archethic_lib_dart: + git: # TODO Waiting for https://github.com/zino-hofmann/graphql-flutter/issues/1460 resolution to use stable versions. + url: https://github.com/archethic-foundation/libdart.git + ref: upgrade_graqhql # archethic_lib_dart: # path: ../../packages/libdart # A client dart library to interact with Archethic Wallet RPC API. - archethic_wallet_client: ^2.1.5 - #archethic_wallet_client: - # git: - # url: https://github.com/archethic-foundation/archethic-wallet-client-dart.git - # ref: dev + #archethic_wallet_client: ^2.1.5 + archethic_wallet_client: + git: + url: https://github.com/archethic-foundation/archethic-wallet-client-dart.git + ref: 70-add-encrypt-and-decrypt-methods # archethic_wallet_client: # path: ../../packages/archethic-wallet-client-dart From b0cd8613e340788084e2a3252c8285ec162cad9f Mon Sep 17 00:00:00 2001 From: redDwarf03 Date: Fri, 13 Dec 2024 17:19:39 +0100 Subject: [PATCH 2/2] chore: :arrow_up: Upgrade dependencies --- pubspec.lock | 302 +++++++++++++++++++++------------------------------ pubspec.yaml | 30 ++--- 2 files changed, 136 insertions(+), 196 deletions(-) diff --git a/pubspec.lock b/pubspec.lock index aaa091b0..ed9c0edd 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -38,33 +38,22 @@ packages: url: "https://pub.dev" source: hosted version: "0.11.3" - archethic_dapp_framework_flutter: - dependency: "direct main" - description: - path: "." - ref: "41-rpc---add-encrypt-and-decrypt-methods" - resolved-ref: "2a2115006b49fc8e42cb503de0ec4ff5ea810488" - url: "https://github.com/archethic-foundation/archethic-dapp-framework-flutter.git" - source: git - version: "3.2.4" archethic_lib_dart: dependency: "direct main" description: - path: "." - ref: upgrade_graqhql - resolved-ref: "9b2f293359595cf498d4c33074327d93233486dd" - url: "https://github.com/archethic-foundation/libdart.git" - source: git - version: "4.0.0" + name: archethic_lib_dart + sha256: "9200c8b49322c01e765ecd44cca97658a0436767abb76cbeda5f742d23d0e61e" + url: "https://pub.dev" + source: hosted + version: "5.0.2" archethic_wallet_client: dependency: "direct main" description: - path: "." - ref: "70-add-encrypt-and-decrypt-methods" - resolved-ref: a495d795b690c945513138355443c35f1cdecaf1 - url: "https://github.com/archethic-foundation/archethic-wallet-client-dart.git" - source: git - version: "2.2.0" + name: archethic_wallet_client + sha256: "69463fe1716b365b17623745fadc7e8ca37135c0bbd908e88fb9d68b05030a85" + url: "https://pub.dev" + source: hosted + version: "2.1.7" archive: dependency: transitive description: @@ -97,14 +86,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.1.21" - auto_size_text: - dependency: transitive - description: - name: auto_size_text - sha256: "3f5261cd3fb5f2a9ab4e2fc3fba84fd9fcaac8821f20a1d4e71f557521b22599" - url: "https://pub.dev" - source: hosted - version: "3.0.0" boolean_selector: dependency: transitive description: @@ -181,10 +162,10 @@ packages: dependency: transitive description: name: cached_network_image - sha256: "4a5d8d2c728b0f3d0245f69f921d7be90cae4c2fd5288f773088672c0893f819" + sha256: "7c1183e361e5c8b0a0f21a28401eecdbde252441106a9816400dd4c2b2424916" url: "https://pub.dev" source: hosted - version: "3.4.0" + version: "3.4.1" cached_network_image_platform_interface: dependency: transitive description: @@ -197,10 +178,10 @@ packages: dependency: transitive description: name: cached_network_image_web - sha256: "6322dde7a5ad92202e64df659241104a43db20ed594c41ca18de1014598d7996" + sha256: "980842f4e8e2535b8dbd3d5ca0b1f0ba66bf61d14cc3a17a9b4788a3685ba062" url: "https://pub.dev" source: hosted - version: "1.3.0" + version: "1.3.1" characters: dependency: transitive description: @@ -237,10 +218,10 @@ packages: dependency: transitive description: name: cli_util - sha256: c05b7406fdabc7a49a3929d4af76bcaccbbffcbcdcf185b082e1ae07da323d19 + sha256: ff6785f7e9e3c38ac98b2fb035701789de90154024a75b6cb926445e83197d1c url: "https://pub.dev" source: hosted - version: "0.4.1" + version: "0.4.2" clock: dependency: transitive description: @@ -253,10 +234,10 @@ packages: dependency: transitive description: name: code_builder - sha256: f692079e25e7869c14132d39f223f8eec9830eb76131925143b2129c4bb01b37 + sha256: "0ec10bf4a89e4c613960bf1e8b42c64127021740fb21640c29c909826a5eea3e" url: "https://pub.dev" source: hosted - version: "4.10.0" + version: "4.10.1" collection: dependency: transitive description: @@ -277,10 +258,10 @@ packages: dependency: transitive description: name: coverage - sha256: "88b0fddbe4c92910fefc09cc0248f5e7f0cd23e450ded4c28f16ab8ee8f83268" + sha256: e3493833ea012784c740e341952298f1cc77f1f01b1bbc3eb4eecf6984fb7f43 url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.11.1" crypto: dependency: "direct main" description: @@ -301,10 +282,10 @@ packages: dependency: transitive description: name: csslib - sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb" + sha256: "09bad715f418841f976c77db72d5398dc1253c21fb9c0c7f0b0b985860b2d58e" url: "https://pub.dev" source: hosted - version: "1.0.0" + version: "1.0.2" cupertino_icons: dependency: transitive description: @@ -426,10 +407,10 @@ packages: dependency: "direct main" description: name: flutter_animate - sha256: "7c8a6594a9252dad30cc2ef16e33270b6248c4dedc3b3d06c86c4f3f4dc05ae5" + sha256: "7befe2d3252728afb77aecaaea1dec88a89d35b9b1d2eea6d04479e8af9117b5" url: "https://pub.dev" source: hosted - version: "4.5.0" + version: "4.5.2" flutter_cache_manager: dependency: transitive description: @@ -447,10 +428,10 @@ packages: dependency: transitive description: name: flutter_markdown - sha256: f0e599ba89c9946c8e051780f0ec99aba4ba15895e0380a7ab68f420046fc44e + sha256: "255b00afa1a7bad19727da6a7780cf3db6c3c12e68d302d85e0ff1fdf173db9e" url: "https://pub.dev" source: hosted - version: "0.7.4+1" + version: "0.7.4+3" flutter_riverpod: dependency: "direct main" description: @@ -471,10 +452,10 @@ packages: dependency: "direct main" description: name: flutter_svg - sha256: "7b4ca6cf3304575fe9c8ec64813c8d02ee41d2afe60bcfe0678bcb5375d596a2" + sha256: "54900a1a1243f3c4a5506d853a2b5c2dbc38d5f27e52a52618a8054401431123" url: "https://pub.dev" source: hosted - version: "2.0.10+1" + version: "2.0.16" flutter_web_plugins: dependency: transitive description: flutter @@ -484,10 +465,10 @@ packages: dependency: transitive description: name: flutter_widget_from_html - sha256: "9e2a6201c4d2eb910b6b3ebb2a9f5c490fc61c9a1aa35eafdde38f0fc659cf4c" + sha256: f3967a5b42896662efdd420b5adaf8a7d3692b0f44462a07c80e3b4c173b1a02 url: "https://pub.dev" source: hosted - version: "0.15.2" + version: "0.15.3" flutter_widget_from_html_core: dependency: transitive description: @@ -564,18 +545,10 @@ packages: dependency: transitive description: name: fwfh_webview - sha256: f67890bc0d6278da98bd197469ae9511c859f7db327e92299fe0ea0cf46c4057 + sha256: c0a8b664b642f40f4c252a0ab4e72c22dcd97c7fb3a7e50a6b4bdb6f63afca19 url: "https://pub.dev" source: hosted - version: "0.15.2" - get_it: - dependency: transitive - description: - name: get_it - sha256: d85128a5dae4ea777324730dc65edd9c9f43155c109d5cc0a69cab74139fbac1 - url: "https://pub.dev" - source: hosted - version: "7.7.0" + version: "0.15.3" glob: dependency: transitive description: @@ -588,18 +561,18 @@ packages: dependency: "direct main" description: name: go_router - sha256: "6f1b756f6e863259a99135ff3c95026c3cdca17d10ebef2bba2261a25ddc8bbc" + sha256: "2fd11229f59e23e967b0775df8d5948a519cd7e1e8b6e849729e010587b46539" url: "https://pub.dev" source: hosted - version: "14.3.0" + version: "14.6.2" gql: dependency: transitive description: name: gql - sha256: "8ecd3585bb9e40d671aa58f52575d950670f99e5ffab18e2b34a757e071a6693" + sha256: "650e79ed60c21579ca3bd17ebae8a8c8d22cde267b03a19bf3b35996baaa843a" url: "https://pub.dev" source: hosted - version: "1.0.1-alpha+1717789143880" + version: "1.0.1-alpha+1730759315362" gql_dedupe_link: dependency: transitive description: @@ -636,10 +609,10 @@ packages: dependency: transitive description: name: gql_link - sha256: "70fd5b5cbcc50601679f4b9fea3bcc994e583f59cfec7e1fec11113074b1a565" + sha256: c2b0adb2f6a60c2599b9128fb095316db5feb99ce444c86fb141a6964acedfa4 url: "https://pub.dev" source: hosted - version: "1.0.1-alpha+1717789143896" + version: "1.0.1-alpha+1730759315378" gql_transform_link: dependency: transitive description: @@ -648,23 +621,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.0" - gradient_borders: + graphql: dependency: transitive description: - name: gradient_borders - sha256: b1cd969552c83f458ff755aa68e13a0327d09f06c3f42f471b423b01427f21f8 + name: graphql + sha256: c715080993c8481087ce77b7929224222551823769fb150f5816f9bbbee9e589 url: "https://pub.dev" source: hosted - version: "1.0.1" - graphql: - dependency: transitive - description: - path: "packages/graphql" - ref: hagen00-upgrade-packages - resolved-ref: "3d4ef96def5234adcd5c41af281c84a8a6ed7850" - url: "https://github.com/hagen00/graphql-flutter.git" - source: git - version: "5.2.0-beta.9" + version: "5.2.0-beta.10" graphs: dependency: transitive description: @@ -709,10 +673,10 @@ packages: dependency: transitive description: name: html - sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a" + sha256: "1fc58edeaec4307368c60d59b7e15b9d658b57d7f3125098b6294153c75337ec" url: "https://pub.dev" source: hosted - version: "0.15.4" + version: "0.15.5" html2md: dependency: transitive description: @@ -757,10 +721,10 @@ packages: dependency: transitive description: name: io - sha256: "2ec25704aba361659e10e3e5f5d672068d332fc8ac516421d483a11e5cbd061e" + sha256: dfd5a80599cf0165756e3181807ed3e77daf6dd4137caaad72d0b7931597650b url: "https://pub.dev" source: hosted - version: "1.0.4" + version: "1.0.5" js: dependency: transitive description: @@ -781,26 +745,26 @@ packages: dependency: transitive description: name: json_rpc_2 - sha256: "5e469bffa23899edacb7b22787780068d650b106a21c76db3c49218ab7ca447e" + sha256: "246b321532f0e8e2ba474b4d757eaa558ae4fdd0688fdbc1e1ca9705f9b8ca0e" url: "https://pub.dev" source: hosted - version: "3.0.2" + version: "3.0.3" json_serializable: dependency: "direct dev" description: name: json_serializable - sha256: ea1432d167339ea9b5bb153f0571d0039607a873d6e04e0117af043f14a1fd4b + sha256: c2fcb3920cf2b6ae6845954186420fca40bc0a8abcc84903b7801f17d7050d7c url: "https://pub.dev" source: hosted - version: "6.8.0" + version: "6.9.0" just_audio: dependency: transitive description: name: just_audio - sha256: b41646a8241688f1d99c2e69c4da2bb26aa4b3a99795f6ff205c2a165e033fda + sha256: a49e7120b95600bd357f37a2bb04cd1e88252f7cdea8f3368803779b925b1049 url: "https://pub.dev" source: hosted - version: "0.9.41" + version: "0.9.42" just_audio_platform_interface: dependency: transitive description: @@ -825,14 +789,6 @@ packages: url: "https://pub.dev" source: hosted version: "0.2.3" - lit_starfield: - dependency: transitive - description: - name: lit_starfield - sha256: "4cb4c3fc50a8de63b52381cac6b4888b1de2ed7670eb436fde9737d7672e8985" - url: "https://pub.dev" - source: hosted - version: "0.1.1" logging: dependency: transitive description: @@ -917,10 +873,10 @@ packages: dependency: transitive description: name: normalize - sha256: "8a60e37de5b608eeaf9b839273370c71ebba445e9f73b08eee7725e0d92dbc43" + sha256: f78bf0552b9640c76369253f0b8fdabad4f3fbfc06bdae9359e71bee9a5b071b url: "https://pub.dev" source: hosted - version: "0.8.2+1" + version: "0.9.1" octo_image: dependency: transitive description: @@ -933,26 +889,26 @@ packages: dependency: transitive description: name: package_config - sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + sha256: "92d4488434b520a62570293fbd33bb556c7d49230791c1b4bbd973baf6d2dc67" url: "https://pub.dev" source: hosted - version: "2.1.0" + version: "2.1.1" package_info_plus: dependency: transitive description: name: package_info_plus - sha256: df3eb3e0aed5c1107bb0fdb80a8e82e778114958b1c5ac5644fb1ac9cae8a998 + sha256: "70c421fe9d9cc1a9a7f3b05ae56befd469fe4f8daa3b484823141a55442d858d" url: "https://pub.dev" source: hosted - version: "8.1.0" + version: "8.1.2" package_info_plus_platform_interface: dependency: transitive description: name: package_info_plus_platform_interface - sha256: ac1f4a4847f1ade8e6a87d1f39f5d7c67490738642e2542f559ec38c37489a66 + sha256: a5ef9986efc7bf772f2696183a3992615baa76c1ffb1189318dd8803778fb05b url: "https://pub.dev" source: hosted - version: "3.0.1" + version: "3.0.2" path: dependency: transitive description: @@ -965,34 +921,34 @@ packages: dependency: transitive description: name: path_parsing - sha256: e3e67b1629e6f7e8100b367d3db6ba6af4b1f0bb80f64db18ef1fbabd2fa9ccf + sha256: "883402936929eac138ee0a45da5b0f2c80f89913e6dc3bf77eb65b84b409c6ca" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.1.0" path_provider: dependency: "direct main" description: name: path_provider - sha256: fec0d61223fba3154d87759e3cc27fe2c8dc498f6386c6d6fc80d1afdd1bf378 + sha256: "50c5dd5b6e1aaf6fb3a78b33f6aa3afca52bf903a8a5298f53101fdaee55bbcd" url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.1.5" path_provider_android: dependency: transitive description: name: path_provider_android - sha256: c464428172cb986b758c6d1724c603097febb8fb855aa265aeecc9280c294d4a + sha256: "4adf4fd5423ec60a29506c76581bc05854c55e3a0b72d35bb28d661c9686edf2" url: "https://pub.dev" source: hosted - version: "2.2.12" + version: "2.2.15" path_provider_foundation: dependency: transitive description: name: path_provider_foundation - sha256: f234384a3fdd67f989b4d54a5d73ca2a6c422fa55ae694381ae0f4375cd1ea16 + sha256: "4843174df4d288f5e29185bd6e72a6fbdf5a4a4602717eed565497429f179942" url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.4.1" path_provider_linux: dependency: transitive description: @@ -1045,10 +1001,10 @@ packages: dependency: transitive description: name: permission_handler_html - sha256: af26edbbb1f2674af65a8f4b56e1a6f526156bc273d0e65dd8075fab51c78851 + sha256: "38f000e83355abb3392140f6bc3030660cfaef189e1f87824facb76300b4ff24" url: "https://pub.dev" source: hosted - version: "0.1.3+2" + version: "0.1.3+5" permission_handler_platform_interface: dependency: transitive description: @@ -1133,10 +1089,10 @@ packages: dependency: transitive description: name: pub_semver - sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + sha256: "7b3cfbf654f3edd0c6298ecd5be782ce997ddf0e00531b9464b55245185bbbbd" url: "https://pub.dev" source: hosted - version: "2.1.4" + version: "2.1.5" pubspec_parse: dependency: transitive description: @@ -1237,10 +1193,10 @@ packages: dependency: transitive description: name: shelf_web_socket - sha256: "073c147238594ecd0d193f3456a5fe91c4b0abbcc68bf5cd95b36c4e194ac611" + sha256: cc36c297b52866d203dbf9332263c94becc2fe0ceaa9681d07b6ef9807023b67 url: "https://pub.dev" source: hosted - version: "2.0.0" + version: "2.0.1" sky_engine: dependency: transitive description: flutter @@ -1274,18 +1230,18 @@ packages: dependency: transitive description: name: source_maps - sha256: "708b3f6b97248e5781f493b765c3337db11c5d2c81c3094f10904bfa8004c703" + sha256: "190222579a448b03896e0ca6eca5998fa810fda630c1d65e2f78b3f638f54812" url: "https://pub.dev" source: hosted - version: "0.10.12" + version: "0.10.13" source_span: dependency: transitive description: name: source_span - sha256: "53e943d4206a5e30df338fd4c6e7a077e02254531b138a15aec3bd143c1a8b3c" + sha256: "254ee5351d6cb365c859e20ee823c3bb479bf4a293c22d17a9f1bf144ce86f7c" url: "https://pub.dev" source: hosted - version: "1.10.0" + version: "1.10.1" sprintf: dependency: transitive description: @@ -1298,10 +1254,10 @@ packages: dependency: transitive description: name: sqflite - sha256: "79a297dc3cc137e758c6a4baf83342b039e5a6d2436fcdf3f96a00adaaf2ad62" + sha256: "2d7299468485dca85efeeadf5d38986909c5eb0cd71fd3db2c2f000e6c9454bb" url: "https://pub.dev" source: hosted - version: "2.4.0" + version: "2.4.1" sqflite_android: dependency: transitive description: @@ -1314,18 +1270,18 @@ packages: dependency: transitive description: name: sqflite_common - sha256: "4468b24876d673418a7b7147e5a08a715b4998a7ae69227acafaab762e0e5490" + sha256: "761b9740ecbd4d3e66b8916d784e581861fd3c3553eda85e167bc49fdb68f709" url: "https://pub.dev" source: hosted - version: "2.5.4+5" + version: "2.5.4+6" sqflite_darwin: dependency: transitive description: name: sqflite_darwin - sha256: "769733dddf94622d5541c73e4ddc6aa7b252d865285914b6fcd54a63c4b4f027" + sha256: "96a698e2bc82bd770a4d6aab00b42396a7c63d9e33513a56945cbccb594c2474" url: "https://pub.dev" source: hosted - version: "2.4.1-1" + version: "2.4.1" sqflite_platform_interface: dependency: transitive description: @@ -1350,14 +1306,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.0.0" - step_progress_indicator: - dependency: transitive - description: - name: step_progress_indicator - sha256: b51bb1fcfc78454359f0658c5a2c21548c3825ebf76e826308e9ca10f383bbb8 - url: "https://pub.dev" - source: hosted - version: "1.0.2" stream_channel: dependency: transitive description: @@ -1402,34 +1350,34 @@ packages: dependency: "direct dev" description: name: test - sha256: "713a8789d62f3233c46b4a90b174737b2c04cb6ae4500f2aa8b1be8f03f5e67f" + sha256: "22eb7769bee38c7e032d532e8daa2e1cc901b799f603550a4db8f3a5f5173ea2" url: "https://pub.dev" source: hosted - version: "1.25.8" + version: "1.25.12" test_api: dependency: transitive description: name: test_api - sha256: "664d3a9a64782fcdeb83ce9c6b39e78fd2971d4e37827b9b06c3aa1edc5e760c" + sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd url: "https://pub.dev" source: hosted - version: "0.7.3" + version: "0.7.4" test_core: dependency: transitive description: name: test_core - sha256: "12391302411737c176b0b5d6491f466b0dd56d4763e347b6714efbaa74d7953d" + sha256: "84d17c3486c8dfdbe5e12a50c8ae176d15e2a771b96909a9442b40173649ccaa" url: "https://pub.dev" source: hosted - version: "0.6.5" + version: "0.6.8" timing: dependency: transitive description: name: timing - sha256: "70a3b636575d4163c477e6de42f247a23b315ae20e86442bebe32d3cabf61c32" + sha256: "62ee18aca144e4a9f29d212f5a4c6a053be252b895ab14b5821996cff4ed90fe" url: "https://pub.dev" source: hosted - version: "1.0.1" + version: "1.0.2" typed_data: dependency: transitive description: @@ -1450,34 +1398,34 @@ packages: dependency: transitive description: name: url_launcher_android - sha256: "8fc3bae0b68c02c47c5c86fa8bfa74471d42687b0eded01b78de87872db745e2" + sha256: "6fc2f56536ee873eeb867ad176ae15f304ccccc357848b351f6f0d8d4a40d193" url: "https://pub.dev" source: hosted - version: "6.3.12" + version: "6.3.14" url_launcher_ios: dependency: transitive description: name: url_launcher_ios - sha256: e43b677296fadce447e987a2f519dcf5f6d1e527dc35d01ffab4fff5b8a7063e + sha256: "16a513b6c12bb419304e72ea0ae2ab4fed569920d1c7cb850263fe3acc824626" url: "https://pub.dev" source: hosted - version: "6.3.1" + version: "6.3.2" url_launcher_linux: dependency: transitive description: name: url_launcher_linux - sha256: e2b9622b4007f97f504cd64c0128309dfb978ae66adbe944125ed9e1750f06af + sha256: "4e9ba368772369e3e08f231d2301b4ef72b9ff87c31192ef471b380ef29a4935" url: "https://pub.dev" source: hosted - version: "3.2.0" + version: "3.2.1" url_launcher_macos: dependency: transitive description: name: url_launcher_macos - sha256: "769549c999acdb42b8bcfa7c43d72bf79a382ca7441ab18a808e101149daf672" + sha256: "17ba2000b847f334f16626a574c702b196723af2a289e7a93ffcb79acff855c2" url: "https://pub.dev" source: hosted - version: "3.2.1" + version: "3.2.2" url_launcher_platform_interface: dependency: transitive description: @@ -1522,26 +1470,26 @@ packages: dependency: transitive description: name: vector_graphics - sha256: "32c3c684e02f9bc0afb0ae0aa653337a2fe022e8ab064bcd7ffda27a74e288e3" + sha256: "27d5fefe86fb9aace4a9f8375b56b3c292b64d8c04510df230f849850d912cb7" url: "https://pub.dev" source: hosted - version: "1.1.11+1" + version: "1.1.15" vector_graphics_codec: dependency: transitive description: name: vector_graphics_codec - sha256: c86987475f162fadff579e7320c7ddda04cd2fdeffbe1129227a85d9ac9e03da + sha256: "2430b973a4ca3c4dbc9999b62b8c719a160100dcbae5c819bae0cacce32c9cdb" url: "https://pub.dev" source: hosted - version: "1.1.11+1" + version: "1.1.12" vector_graphics_compiler: dependency: transitive description: name: vector_graphics_compiler - sha256: "12faff3f73b1741a36ca7e31b292ddeb629af819ca9efe9953b70bd63fc8cd81" + sha256: "1b4b9e706a10294258727674a340ae0d6e64a7231980f9f9a3d12e4b42407aad" url: "https://pub.dev" source: hosted - version: "1.1.11+1" + version: "1.1.16" vector_math: dependency: transitive description: @@ -1562,18 +1510,18 @@ packages: dependency: transitive description: name: video_player_android - sha256: "2800d68d6d5b4c22da62453568ed68e63c35bea524d4fa42062e53d6bb591433" + sha256: "391e092ba4abe2f93b3e625bd6b6a6ec7d7414279462c1c0ee42b5ab8d0a0898" url: "https://pub.dev" source: hosted - version: "2.7.13" + version: "2.7.16" video_player_avfoundation: dependency: transitive description: name: video_player_avfoundation - sha256: cd5ab8a8bc0eab65ab0cea40304097edc46da574c8c1ecdee96f28cd8ef3792f + sha256: "33224c19775fd244be2d6e3dbd8e1826ab162877bd61123bf71890772119a2b7" url: "https://pub.dev" source: hosted - version: "2.6.2" + version: "2.6.5" video_player_platform_interface: dependency: transitive description: @@ -1586,10 +1534,10 @@ packages: dependency: transitive description: name: video_player_web - sha256: "6dcdd298136523eaf7dfc31abaf0dfba9aa8a8dbc96670e87e9d42b6f2caf774" + sha256: "881b375a934d8ebf868c7fb1423b2bfaa393a0a265fa3f733079a86536064a10" url: "https://pub.dev" source: hosted - version: "2.3.2" + version: "2.3.3" vm_service: dependency: transitive description: @@ -1630,14 +1578,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.1.0" - wave: - dependency: transitive - description: - name: wave - sha256: "01ebccb4caa9b150cbe4763aa2a23501bb582843a1f96281868bbb23cb4db1f9" - url: "https://pub.dev" - source: hosted - version: "0.2.2" web: dependency: transitive description: @@ -1674,18 +1614,18 @@ packages: dependency: transitive description: name: webview_flutter - sha256: ec81f57aa1611f8ebecf1d2259da4ef052281cb5ad624131c93546c79ccc7736 + sha256: "889a0a678e7c793c308c68739996227c9661590605e70b1f6cf6b9a6634f7aec" url: "https://pub.dev" source: hosted - version: "4.9.0" + version: "4.10.0" webview_flutter_android: dependency: transitive description: name: webview_flutter_android - sha256: "47a8da40d02befda5b151a26dba71f47df471cddd91dfdb7802d0a87c5442558" + sha256: "3d535126f7244871542b2f0b0fcf94629c9a14883250461f9abe1a6644c1c379" url: "https://pub.dev" source: hosted - version: "3.16.9" + version: "4.2.0" webview_flutter_platform_interface: dependency: transitive description: @@ -1698,10 +1638,10 @@ packages: dependency: transitive description: name: webview_flutter_wkwebview - sha256: d4034901d96357beb1b6717ebf7d583c88e40cfc6eb85fe76dd1bf0979a9f251 + sha256: b7e92f129482460951d96ef9a46b49db34bd2e1621685de26e9eaafd9674e7eb url: "https://pub.dev" source: hosted - version: "3.16.0" + version: "3.16.3" webview_windows: dependency: transitive description: @@ -1714,10 +1654,10 @@ packages: dependency: transitive description: name: win32 - sha256: e1d0cc62e65dc2561f5071fcbccecf58ff20c344f8f3dc7d4922df372a11df1f + sha256: "8b338d4486ab3fbc0ba0db9f9b4f5239b6697fcee427939a40e720cbb9ee0a69" url: "https://pub.dev" source: hosted - version: "5.7.1" + version: "5.9.0" x25519: dependency: transitive description: @@ -1751,5 +1691,5 @@ packages: source: hosted version: "3.1.2" sdks: - dart: ">=3.5.0 <4.0.0" + dart: ">=3.5.3 <4.0.0" flutter: ">=3.24.0" diff --git a/pubspec.yaml b/pubspec.yaml index ededd88c..46a49521 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -8,29 +8,29 @@ environment: sdk: ">=3.3.0 <4.0.0" dependencies: - #archethic_dapp_framework_flutter: ^3.0.3 - archethic_dapp_framework_flutter: - git: - url: https://github.com/archethic-foundation/archethic-dapp-framework-flutter.git - ref: 41-rpc---add-encrypt-and-decrypt-methods + archethic_dapp_framework_flutter: ^3.2.5 + #archethic_dapp_framework_flutter: + # git: + # url: https://github.com/archethic-foundation/archethic-dapp-framework-flutter.git + # ref: main #archethic_dapp_framework_flutter: # path: ../archethic-dapp-framework-flutter # Archethic dart library for Flutter - #archethic_lib_dart: ^4.0.0 - archethic_lib_dart: - git: # TODO Waiting for https://github.com/zino-hofmann/graphql-flutter/issues/1460 resolution to use stable versions. - url: https://github.com/archethic-foundation/libdart.git - ref: upgrade_graqhql + archethic_lib_dart: ^5.0.2 + #archethic_lib_dart: + # git: + # url: https://github.com/archethic-foundation/libdart.git + # ref: main # archethic_lib_dart: # path: ../../packages/libdart # A client dart library to interact with Archethic Wallet RPC API. - #archethic_wallet_client: ^2.1.5 - archethic_wallet_client: - git: - url: https://github.com/archethic-foundation/archethic-wallet-client-dart.git - ref: 70-add-encrypt-and-decrypt-methods + archethic_wallet_client: ^2.1.7 + #archethic_wallet_client: + # git: + # url: https://github.com/archethic-foundation/archethic-wallet-client-dart.git + # ref: main # archethic_wallet_client: # path: ../../packages/archethic-wallet-client-dart