diff --git a/build/app-arm64-v8a-release.apk b/build/app-arm64-v8a-release.apk new file mode 100644 index 00000000..e87201b2 Binary files /dev/null and b/build/app-arm64-v8a-release.apk differ diff --git a/build/app-armeabi-v7a-release.apk b/build/app-armeabi-v7a-release.apk new file mode 100644 index 00000000..ab63baa2 Binary files /dev/null and b/build/app-armeabi-v7a-release.apk differ diff --git a/build/app-x86_64-release.apk b/build/app-x86_64-release.apk new file mode 100644 index 00000000..1762642b Binary files /dev/null and b/build/app-x86_64-release.apk differ diff --git a/build/mrt_wallet.msix b/build/mrt_wallet.msix new file mode 100644 index 00000000..2ee5fd14 Binary files /dev/null and b/build/mrt_wallet.msix differ diff --git a/build/web.zip b/build/web.zip new file mode 100644 index 00000000..43c38d33 Binary files /dev/null and b/build/web.zip differ diff --git a/mrt_native_support/android/build.gradle b/mrt_native_support/android/build.gradle index 0855176f..3fae29a9 100644 --- a/mrt_native_support/android/build.gradle +++ b/mrt_native_support/android/build.gradle @@ -2,7 +2,7 @@ group 'com.mrtnetwork.mrt_native_support' version '1.0-SNAPSHOT' buildscript { - ext.kotlin_version = '1.8.21' + ext.kotlin_version = '1.9.21' repositories { google() mavenCentral() @@ -10,7 +10,7 @@ buildscript { } dependencies { - classpath 'com.android.tools.build:gradle:7.1.3' + classpath 'com.android.tools.build:gradle:7.3.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'com.google.gms:google-services:4.4.0' } @@ -44,7 +44,7 @@ android { } defaultConfig { - minSdkVersion 21 + minSdkVersion 18 } } dependencies { diff --git a/mrt_native_support/example/lib/main.dart b/mrt_native_support/example/lib/main.dart index 89083256..0316bb61 100644 --- a/mrt_native_support/example/lib/main.dart +++ b/mrt_native_support/example/lib/main.dart @@ -1,3 +1,5 @@ +import 'dart:io'; + import 'package:flutter/material.dart'; import 'package:mrt_native_support/models/models.dart'; @@ -30,6 +32,23 @@ class _MyWidgetState extends State with WindowListener { super.initState(); } + void write() async { + final plat = PlatformInterface.interface; + final path = await plat.path(); + final naame = "${path.support}" + + r"\" + + DateTime.now().microsecond.toString() + + ".txt"; + print("name $naame"); + final f = File(naame); + + await f.create(recursive: true); + final v = List.generate(1000, (index) => "m").join(); + await f.writeAsString(v); + print(f.path); + plat.launchUri(f.path); + } + @override Widget build(BuildContext context) { return Scaffold( @@ -39,7 +58,11 @@ class _MyWidgetState extends State with WindowListener { Expanded( child: Center( child: InkWell( - onTap: () async {}, + onTap: () async { + final p = await PlatformInterface.interface.path(); + write(); + print(p); + }, child: const Icon( Icons.abc, size: 120, diff --git a/mrt_native_support/windows/mrt_native_support_plugin.cpp b/mrt_native_support/windows/mrt_native_support_plugin.cpp index beea0c63..d1163df3 100644 --- a/mrt_native_support/windows/mrt_native_support_plugin.cpp +++ b/mrt_native_support/windows/mrt_native_support_plugin.cpp @@ -1014,7 +1014,7 @@ namespace mrt_native_support { CoTaskMemFree(cachePath); // Calculate application-specific subdirectory within LocalAppData - std::wstring appSpecificCachePath = getAppSpecificSubdirectory(wideCachePath.c_str(), L"MyApp"); + std::wstring appSpecificCachePath = getAppSpecificSubdirectory(wideCachePath.c_str(), L"MRTNETWORK"); // Convert wide string to BSTR BSTR bstrAppSpecificCachePath = SysAllocString(appSpecificCachePath.c_str()); @@ -1036,7 +1036,7 @@ namespace mrt_native_support { CoTaskMemFree(appSupportPath); // Calculate application-specific subdirectory within RoamingAppData - std::wstring appSpecificSupportPath = getAppSpecificSubdirectory(wideAppSupportPath.c_str(), L"MyApp"); + std::wstring appSpecificSupportPath = getAppSpecificSubdirectory(wideAppSupportPath.c_str(), L"MRTNETWORK"); // Convert wide string to BSTR BSTR bstrAppSpecificSupportPath = SysAllocString(appSpecificSupportPath.c_str()); diff --git a/mrt_wallet/lib/app/dev/logging.dart b/mrt_wallet/lib/app/dev/logging.dart index ae108a41..bb39c8e6 100644 --- a/mrt_wallet/lib/app/dev/logging.dart +++ b/mrt_wallet/lib/app/dev/logging.dart @@ -13,10 +13,6 @@ class WalletLogging { const green = '\x1b[32m'; final msg = '$green${prefix.toString()}$end => $err$message$end'; dev.log(msg, - time: DateTime.now(), - - zone: Zone.root, - name: "wallet", - level: 0); + time: DateTime.now(), zone: Zone.root, name: "wallet", level: 0); } } diff --git a/mrt_wallet/lib/app/euqatable/equatable.dart b/mrt_wallet/lib/app/euqatable/equatable.dart index 150de738..613e6f0f 100644 --- a/mrt_wallet/lib/app/euqatable/equatable.dart +++ b/mrt_wallet/lib/app/euqatable/equatable.dart @@ -1,4 +1,3 @@ - abstract mixin class Equatable { List get variabels; diff --git a/mrt_wallet/lib/app/state_managment/state_managment.dart b/mrt_wallet/lib/app/state_managment/state_managment.dart index c599a6dc..8fca8ffc 100644 --- a/mrt_wallet/lib/app/state_managment/state_managment.dart +++ b/mrt_wallet/lib/app/state_managment/state_managment.dart @@ -12,4 +12,3 @@ part 'core/disposable.dart'; part 'core/repository.dart'; part 'builder/live.dart'; part 'builder/safe_state.dart'; - diff --git a/mrt_wallet/lib/app/utility/method_caller.dart b/mrt_wallet/lib/app/utility/method_caller.dart index e2f80438..7c58f070 100644 --- a/mrt_wallet/lib/app/utility/method_caller.dart +++ b/mrt_wallet/lib/app/utility/method_caller.dart @@ -48,7 +48,7 @@ class MethodCaller { class MethodResult { MethodResult.error(this.exception, this.trace) : _result = null { - WalletLogging.print("ERROR: $error"); + WalletLogging.print("request error: $error"); } MethodResult.succsess(this._result) : exception = null, @@ -61,8 +61,7 @@ class MethodResult { exception is ApiProviderException) { return exception!.toString(); } - WalletLogging.print( - "error ${exception.runtimeType} ${exception.toString()}"); + return "somthing_wrong"; } diff --git a/mrt_wallet/lib/app/utility/secure_flag_state.dart b/mrt_wallet/lib/app/utility/secure_flag_state.dart index 0ef6c196..fac277e4 100644 --- a/mrt_wallet/lib/app/utility/secure_flag_state.dart +++ b/mrt_wallet/lib/app/utility/secure_flag_state.dart @@ -10,7 +10,7 @@ mixin SecureState on State { super.initState(); if (PlatformInterface.appPlatform == AppPlatform.android) { PlatformInterface.interface.secureFlag(isSecure: true); - WalletLogging.print("yes enabled!"); + _enabled = true; } } diff --git a/mrt_wallet/lib/future/pages/start_page/login_page.dart/login_page.dart b/mrt_wallet/lib/future/pages/start_page/login_page.dart/login_page.dart index 1c18bd23..7414f5ac 100644 --- a/mrt_wallet/lib/future/pages/start_page/login_page.dart/login_page.dart +++ b/mrt_wallet/lib/future/pages/start_page/login_page.dart/login_page.dart @@ -39,7 +39,7 @@ class _WalletLoginPageViewState extends State buttonKey.process(); final login = await provider.login(password); buttonKey.fromMethodResult(login); - _error = login.error?.tr ; + _error = login.error?.tr; setState(() {}); } diff --git a/mrt_wallet/lib/future/pages/wallet_pages/account_pages/show_public_key.dart b/mrt_wallet/lib/future/pages/wallet_pages/account_pages/show_public_key.dart index 306642f9..ce99bc57 100644 --- a/mrt_wallet/lib/future/pages/wallet_pages/account_pages/show_public_key.dart +++ b/mrt_wallet/lib/future/pages/wallet_pages/account_pages/show_public_key.dart @@ -96,8 +96,7 @@ class __BipAccountPublicKeyState extends State<_BipAccountPublicKey> { widget: SelectableText(account.publicKey.toExtended), )), WidgetConstant.height20, - Text("comperessed_public_key".tr, - style: context.textTheme.titleLarge), + Text("comperessed_public_key".tr, style: context.textTheme.titleLarge), WidgetConstant.height8, ContainerWithBorder( child: CopyTextWithBarcode( diff --git a/mrt_wallet/lib/future/pages/wallet_pages/global_pages/select_account.dart b/mrt_wallet/lib/future/pages/wallet_pages/global_pages/select_account.dart index d26607c4..b7639d20 100644 --- a/mrt_wallet/lib/future/pages/wallet_pages/global_pages/select_account.dart +++ b/mrt_wallet/lib/future/pages/wallet_pages/global_pages/select_account.dart @@ -57,7 +57,7 @@ class SwitchOrSelectAccountView extends StatelessWidget { children: [ Expanded( child: InkWell( - onTap: !forSelect + onTap: !forSelect ? null : () { if (context.mounted) { diff --git a/mrt_wallet/lib/future/pages/wallet_pages/global_pages/select_provider.dart b/mrt_wallet/lib/future/pages/wallet_pages/global_pages/select_provider.dart index 0be0c7fb..7e29b2da 100644 --- a/mrt_wallet/lib/future/pages/wallet_pages/global_pages/select_provider.dart +++ b/mrt_wallet/lib/future/pages/wallet_pages/global_pages/select_provider.dart @@ -19,8 +19,7 @@ class SelectProviderView extends StatelessWidget { title: "what_is_service_provider".tr, body: Text("what_is_api_provider".tr)), PageTitleSubtitle( - title: "choose_provider".tr, - body: Text("select_provider_desc".tr)), + title: "choose_provider".tr, body: Text("select_provider_desc".tr)), ListView.builder( shrinkWrap: true, itemBuilder: (context, index) { diff --git a/mrt_wallet/lib/future/pages/wallet_pages/network/bitcoin_pages/bitcoin_address_details.dart b/mrt_wallet/lib/future/pages/wallet_pages/network/bitcoin_pages/bitcoin_address_details.dart index 221daad7..2cc0da19 100644 --- a/mrt_wallet/lib/future/pages/wallet_pages/network/bitcoin_pages/bitcoin_address_details.dart +++ b/mrt_wallet/lib/future/pages/wallet_pages/network/bitcoin_pages/bitcoin_address_details.dart @@ -2,6 +2,7 @@ import 'package:flutter/cupertino.dart'; import 'package:mrt_wallet/app/extention/context.dart'; import 'package:mrt_wallet/future/widgets/custom_widgets.dart'; import 'package:mrt_wallet/models/wallet_models/wallet_models.dart'; + class BitcoinAddressDetailsView extends StatelessWidget { const BitcoinAddressDetailsView({required this.account, super.key}); final IBitcoinAddress account; diff --git a/mrt_wallet/lib/future/pages/wallet_pages/network/bitcoin_pages/controller/bitcoin_state_controller.dart b/mrt_wallet/lib/future/pages/wallet_pages/network/bitcoin_pages/controller/bitcoin_state_controller.dart index 59035d1f..1c383b88 100644 --- a/mrt_wallet/lib/future/pages/wallet_pages/network/bitcoin_pages/controller/bitcoin_state_controller.dart +++ b/mrt_wallet/lib/future/pages/wallet_pages/network/bitcoin_pages/controller/bitcoin_state_controller.dart @@ -284,7 +284,7 @@ class BitcoinStateController extends StateController { enableRBF: true, outputs: _receivers.values.map((e) => e.address).toList(), network: network.coinParam.transacationNetwork); - WalletLogging.print("end"); + if (_networkFeeRate == null) { _networkFeeRate = await _getFeeRate(); } else { diff --git a/mrt_wallet/lib/future/pages/wallet_pages/network/bitcoin_pages/setup_multi_sig_address.dart b/mrt_wallet/lib/future/pages/wallet_pages/network/bitcoin_pages/setup_multi_sig_address.dart index 28bfafeb..17679d4d 100644 --- a/mrt_wallet/lib/future/pages/wallet_pages/network/bitcoin_pages/setup_multi_sig_address.dart +++ b/mrt_wallet/lib/future/pages/wallet_pages/network/bitcoin_pages/setup_multi_sig_address.dart @@ -231,7 +231,7 @@ class _SetupBitcoinMultiSigAddressViewState if (result.hasError || !result.result) { buttomState.error(); - _shareError = result.error?.tr ; + _shareError = result.error?.tr; setState(() {}); } else { buttomState.success(); diff --git a/mrt_wallet/lib/future/pages/wallet_pages/network/network_pages.dart b/mrt_wallet/lib/future/pages/wallet_pages/network/network_pages.dart index b5470f5a..15c97553 100644 --- a/mrt_wallet/lib/future/pages/wallet_pages/network/network_pages.dart +++ b/mrt_wallet/lib/future/pages/wallet_pages/network/network_pages.dart @@ -1 +1 @@ -export 'bitcoin_pages/bitcoin.dart'; \ No newline at end of file +export 'bitcoin_pages/bitcoin.dart'; diff --git a/mrt_wallet/lib/future/pages/wallet_pages/setup_pages/enter_mnemonic.dart b/mrt_wallet/lib/future/pages/wallet_pages/setup_pages/enter_mnemonic.dart index 041e0ae1..802ee72e 100644 --- a/mrt_wallet/lib/future/pages/wallet_pages/setup_pages/enter_mnemonic.dart +++ b/mrt_wallet/lib/future/pages/wallet_pages/setup_pages/enter_mnemonic.dart @@ -107,7 +107,8 @@ class _EnterMnemonicViewState extends State with SafeState { WidgetConstant.height20, PageTitleSubtitle( title: "mn_password".tr, - body: Column(crossAxisAlignment: CrossAxisAlignment.start, + body: Column( + crossAxisAlignment: CrossAxisAlignment.start, children: [ Text("enter_passphrase_desc".tr), WidgetConstant.height8, diff --git a/mrt_wallet/lib/future/pages/wallet_pages/setup_pages/verify_mnemonic.dart b/mrt_wallet/lib/future/pages/wallet_pages/setup_pages/verify_mnemonic.dart index ed17de8b..162606ed 100644 --- a/mrt_wallet/lib/future/pages/wallet_pages/setup_pages/verify_mnemonic.dart +++ b/mrt_wallet/lib/future/pages/wallet_pages/setup_pages/verify_mnemonic.dart @@ -69,9 +69,6 @@ class _VerifyMnemonicViewState extends State @override void initState() { super.initState(); - // isEqual(); - // setState(() {}); - WalletLogging.print(widget.mnemonic.toList()); } @override diff --git a/mrt_wallet/lib/future/widgets/assets_image.dart b/mrt_wallet/lib/future/widgets/assets_image.dart index 8529bc0a..00d70a88 100644 --- a/mrt_wallet/lib/future/widgets/assets_image.dart +++ b/mrt_wallet/lib/future/widgets/assets_image.dart @@ -2,7 +2,9 @@ import 'package:flutter/material.dart'; class CircleAssetsImgaeView extends StatelessWidget { const CircleAssetsImgaeView(this.assetPath, - {this.radius = 120, this.backgroundColor = Colors.transparent, super.key}); + {this.radius = 120, + this.backgroundColor = Colors.transparent, + super.key}); final String assetPath; final double radius; final Color backgroundColor; diff --git a/mrt_wallet/lib/future/widgets/dialog_view.dart b/mrt_wallet/lib/future/widgets/dialog_view.dart index f42b97b1..5f2f13db 100644 --- a/mrt_wallet/lib/future/widgets/dialog_view.dart +++ b/mrt_wallet/lib/future/widgets/dialog_view.dart @@ -2,6 +2,7 @@ import 'package:flutter/material.dart'; import 'package:mrt_wallet/app/constant/constant.dart'; import 'package:mrt_wallet/app/extention/extention.dart'; import 'package:mrt_wallet/future/widgets/custom_widgets.dart'; + class DialogView extends StatelessWidget { const DialogView({required this.child, required this.title, super.key}); final Widget child; diff --git a/mrt_wallet/lib/future/widgets/list_tile.dart b/mrt_wallet/lib/future/widgets/list_tile.dart index 7b3ed2d9..5aaaa8c6 100644 --- a/mrt_wallet/lib/future/widgets/list_tile.dart +++ b/mrt_wallet/lib/future/widgets/list_tile.dart @@ -66,9 +66,7 @@ class AppCheckListTile extends StatelessWidget { Widget build(BuildContext context) { return CheckboxListTile( onChanged: onChanged, - value: value, - title: title == null ? null : DefaultTextStyle( diff --git a/mrt_wallet/lib/future/widgets/measure_size.dart b/mrt_wallet/lib/future/widgets/measure_size.dart index a0489789..f47fdd78 100644 --- a/mrt_wallet/lib/future/widgets/measure_size.dart +++ b/mrt_wallet/lib/future/widgets/measure_size.dart @@ -39,7 +39,8 @@ class MeasureSize extends SingleChildRenderObjectWidget { @override void updateRenderObject( // ignore: library_private_types_in_public_api - BuildContext context, covariant _MeasureSizeRenderObject renderObject) { + BuildContext context, + covariant _MeasureSizeRenderObject renderObject) { renderObject.onChange = onChange; } } diff --git a/mrt_wallet/lib/future/widgets/price.dart b/mrt_wallet/lib/future/widgets/price.dart index 9362ab8a..56d08a6f 100644 --- a/mrt_wallet/lib/future/widgets/price.dart +++ b/mrt_wallet/lib/future/widgets/price.dart @@ -3,7 +3,6 @@ import 'package:mrt_wallet/app/state_managment/state_managment.dart'; import 'package:mrt_wallet/future/widgets/custom_widgets.dart'; import 'package:mrt_wallet/models/wallet_models/wallet_models.dart'; - class PriceTooltipWidget extends StatelessWidget { const PriceTooltipWidget( {Key? key, diff --git a/mrt_wallet/lib/future/widgets/qr_code/core/bit_buffer.dart b/mrt_wallet/lib/future/widgets/qr_code/core/bit_buffer.dart index ddb55a33..3848f4e5 100644 --- a/mrt_wallet/lib/future/widgets/qr_code/core/bit_buffer.dart +++ b/mrt_wallet/lib/future/widgets/qr_code/core/bit_buffer.dart @@ -7,7 +7,8 @@ class QrBitBuffer extends Object with ListMixin { QrBitBuffer() : _buffer = []; @override - void operator []=(int index, bool value) => throw UnsupportedError('cannot change'); + void operator []=(int index, bool value) => + throw UnsupportedError('cannot change'); @override bool operator [](int index) { diff --git a/mrt_wallet/lib/provider/wallet/network/network_imp.dart b/mrt_wallet/lib/provider/wallet/network/network_imp.dart index a4f75dc3..d393de8b 100644 --- a/mrt_wallet/lib/provider/wallet/network/network_imp.dart +++ b/mrt_wallet/lib/provider/wallet/network/network_imp.dart @@ -93,7 +93,6 @@ mixin WalletNetworkImpl try { account.removeAccount(r); } on WalletException { - WalletLogging.print("got error !"); continue; } } diff --git a/mrt_wallet/pubspec.lock b/mrt_wallet/pubspec.lock index d0ed94e9..dca1aeeb 100644 --- a/mrt_wallet/pubspec.lock +++ b/mrt_wallet/pubspec.lock @@ -1,14 +1,6 @@ # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: - ansicolor: - dependency: transitive - description: - name: ansicolor - sha256: "8bf17a8ff6ea17499e40a2d2542c2f481cd7615760c6d34065cb22bfd22e6880" - url: "https://pub.dev" - source: hosted - version: "2.0.2" archive: dependency: transitive description: @@ -65,6 +57,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.0" + cli_util: + dependency: transitive + description: + name: cli_util + sha256: b8db3080e59b2503ca9e7922c3df2072cf13992354d5e944074ffa836fba43b7 + url: "https://pub.dev" + source: hosted + version: "0.4.0" clock: dependency: transitive description: @@ -81,6 +81,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.17.2" + console: + dependency: transitive + description: + name: console + sha256: e04e7824384c5b39389acdd6dc7d33f3efe6b232f6f16d7626f194f6a01ad69a + url: "https://pub.dev" + source: hosted + version: "4.1.0" convert: dependency: transitive description: @@ -97,14 +105,6 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.3" - csslib: - dependency: transitive - description: - name: csslib - sha256: "706b5707578e0c1b4b7550f64078f0a0f19dec3f50a178ffae7006b0a9ca58fb" - url: "https://pub.dev" - source: hosted - version: "1.0.0" cupertino_icons: dependency: "direct main" description: @@ -139,32 +139,19 @@ packages: description: flutter source: sdk version: "0.0.0" - flutter_native_splash: - dependency: "direct dev" - description: - name: flutter_native_splash - sha256: c4d899312b36e7454bedfd0a4740275837b99e532d81c8477579d8183db1de6c - url: "https://pub.dev" - source: hosted - version: "2.3.6" flutter_test: dependency: "direct dev" description: flutter source: sdk version: "0.0.0" - flutter_web_plugins: - dependency: transitive - description: flutter - source: sdk - version: "0.0.0" - html: + get_it: dependency: transitive description: - name: html - sha256: "3a7812d5bcd2894edf53dfaf8cd640876cf6cef50a8f238745c8b8120ea74d3a" + name: get_it + sha256: f79870884de16d689cf9a7d15eedf31ed61d750e813c538a6efb92660fea83c3 url: "https://pub.dev" source: hosted - version: "0.15.4" + version: "7.6.4" http: dependency: "direct main" description: @@ -244,6 +231,22 @@ packages: relative: true source: path version: "0.0.1" + msix: + dependency: "direct dev" + description: + name: msix + sha256: "519b183d15dc9f9c594f247e2d2339d855cf0eaacc30e19b128e14f3ecc62047" + url: "https://pub.dev" + source: hosted + version: "3.16.7" + package_config: + dependency: transitive + description: + name: package_config + sha256: "1c5b77ccc91e4823a5af61ee74e6b972db1ef98c2ff5a18d3161c982a55448bd" + url: "https://pub.dev" + source: hosted + version: "2.1.0" path: dependency: transitive description: @@ -276,6 +279,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.7.3" + pub_semver: + dependency: transitive + description: + name: pub_semver + sha256: "40d3ab1bbd474c4c2328c91e3a7df8c6dd629b79ece4c4bd04bee496a224fb0c" + url: "https://pub.dev" + source: hosted + version: "2.1.4" sky_engine: dependency: transitive description: flutter @@ -337,14 +348,6 @@ packages: url: "https://pub.dev" source: hosted version: "1.3.2" - universal_io: - dependency: transitive - description: - name: universal_io - sha256: "1722b2dcc462b4b2f3ee7d188dad008b6eb4c40bbd03a3de451d82c78bba9aad" - url: "https://pub.dev" - source: hosted - version: "2.2.2" vector_math: dependency: transitive description: diff --git a/mrt_wallet/pubspec.yaml b/mrt_wallet/pubspec.yaml index 22b7a9bb..c77f5369 100644 --- a/mrt_wallet/pubspec.yaml +++ b/mrt_wallet/pubspec.yaml @@ -61,7 +61,8 @@ dev_dependencies: # package. See that file for information about deactivating specific lint # rules and activating additional ones. flutter_lints: ^2.0.0 - flutter_native_splash: ^2.3.6 + # flutter_native_splash: ^2.3.6 + msix: ^3.16.7 # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec @@ -123,4 +124,11 @@ flutter_native_splash: #icon_background_color_dark: "#121212" web: false - fullscreen: true \ No newline at end of file + fullscreen: true + +msix_config: + display_name: MRT Wallet + publisher_display_name: MRT NETWORK + identity_name: com.mrtnetwork.wallet + msix_version: 1.0.0.0 + logo_path: C:\in_work\bitcoin\mrt_wallet\docs\icons\Icon-512.png \ No newline at end of file diff --git a/mrt_wallet/test/t_test.dart b/mrt_wallet/test/t_test.dart index 43964568..ab73b3a2 100644 --- a/mrt_wallet/test/t_test.dart +++ b/mrt_wallet/test/t_test.dart @@ -1,15 +1 @@ -import 'package:blockchain_utils/blockchain_utils.dart'; - -BigInt ret(String correctPrice, {double decimal = 1e8, int amoutDecimal = 8}) { - BigRational dec = BigRational.parseDecimal(correctPrice); - dec = dec * BigRational.parseDecimal(decimal.toString()); - return dec.toBigInt(); -} - -void main() { - // final decimal = -Decimal.parse("10"); - // print("decimal $decimal"); - // print("negate ${Decimal.parse("-10").abs()}"); - // print( - // "in decimala ${decimal} ${decimal.toString() == rational.toDecimal(digits: 20)}"); -} +void main() {}