From e9e7c2546a1a6241c55a064d2fa57987a9265051 Mon Sep 17 00:00:00 2001 From: shawn Date: Thu, 26 Aug 2021 16:01:30 +0800 Subject: [PATCH] bump polkawallet_sdk: 0.3.0. --- CHANGELOG.md | 4 ++++ example/pubspec.lock | 20 +++++++++++--------- example/pubspec.yaml | 8 ++++---- lib/pages/staking/validators/overview.dart | 3 ++- pubspec.lock | 18 ++++++++++-------- pubspec.yaml | 16 ++++++++-------- 6 files changed, 39 insertions(+), 30 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 901e40c0a..04d270731 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## [0.3.0] - 20210826. + +* bump polkawallet_sdk: 0.3.0. + ## [0.2.5] - 20210716. * bump polkawallet_sdk: 0.2.5. diff --git a/example/pubspec.lock b/example/pubspec.lock index 5d8ff9407..5b2562a97 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -395,21 +395,23 @@ packages: path: ".." relative: true source: path - version: "0.2.5" + version: "0.3.0" polkawallet_sdk: dependency: transitive description: - path: "../../sdk" - relative: true - source: path - version: "0.2.8" + name: polkawallet_sdk + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.0" polkawallet_ui: dependency: "direct main" description: - path: "../../ui" - relative: true - source: path - version: "0.2.8" + path: "." + ref: "485a9cde97f2446d74a1aeb6d8d63e33683461a5" + resolved-ref: "485a9cde97f2446d74a1aeb6d8d63e33683461a5" + url: "https://github.com/polkawallet-io/ui.git" + source: git + version: "0.3.0" process: dependency: transitive description: diff --git a/example/pubspec.yaml b/example/pubspec.yaml index d477b39af..42d42114e 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -27,10 +27,10 @@ dependencies: sdk: flutter flutter_mobx: ^2.0.0 polkawallet_ui: -# git: -# url: https://github.com/polkawallet-io/ui.git -# ref: 144a244b038e56aead4fc97a189057819bfeab08 - path: ../../ui + git: + url: https://github.com/polkawallet-io/ui.git + ref: 485a9cde97f2446d74a1aeb6d8d63e33683461a5 +# path: ../../ui # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. diff --git a/lib/pages/staking/validators/overview.dart b/lib/pages/staking/validators/overview.dart index a598b56a1..714e3ae7c 100644 --- a/lib/pages/staking/validators/overview.dart +++ b/lib/pages/staking/validators/overview.dart @@ -171,6 +171,7 @@ class _StakingOverviewPageState extends State { Widget _buildTopCard(BuildContext context) { final dicStaking = I18n.of(context).getDic(i18n_full_dic_kusama, 'staking'); + final symbol = (widget.plugin.networkState.tokenSymbol ?? ['DOT'])[0]; final decimals = (widget.plugin.networkState.tokenDecimals ?? [12])[0]; final stashInfo = widget.plugin.store.staking.ownStashInfo; final overview = widget.plugin.store.staking.overview; @@ -233,7 +234,7 @@ class _StakingOverviewPageState extends State { ), InfoItem( crossAxisAlignment: CrossAxisAlignment.center, - title: dicStaking['overview.min'], + title: dicStaking['overview.min'] + '($symbol)', content: Fmt.balance(overview['minNominated'], decimals) + ' / ' + Fmt.balance(overview['minNominatorBond'], decimals), diff --git a/pubspec.lock b/pubspec.lock index 6b5d32c8d..8c82cb680 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -581,17 +581,19 @@ packages: polkawallet_sdk: dependency: "direct main" description: - path: "../sdk" - relative: true - source: path - version: "0.2.8" + name: polkawallet_sdk + url: "https://pub.dartlang.org" + source: hosted + version: "0.3.0" polkawallet_ui: dependency: "direct main" description: - path: "../ui" - relative: true - source: path - version: "0.2.8" + path: "." + ref: "485a9cde97f2446d74a1aeb6d8d63e33683461a5" + resolved-ref: "485a9cde97f2446d74a1aeb6d8d63e33683461a5" + url: "https://github.com/polkawallet-io/ui.git" + source: git + version: "0.3.0" pool: dependency: transitive description: diff --git a/pubspec.yaml b/pubspec.yaml index d825a9e0f..bfa9b850b 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: polkawallet_plugin_kusama description: The kusama/polkadot network flutter plugin for polkawallet app. -version: 0.2.9 +version: 0.3.0 homepage: environment: @@ -18,14 +18,14 @@ dependencies: flutter_svg: ^0.22.0 get_storage: ^2.0.2 json_annotation: ^4.0.1 -# polkawallet_sdk: ^0.2.9 - polkawallet_sdk: - path: ../sdk + polkawallet_sdk: ^0.3.0 +# polkawallet_sdk: +# path: ../sdk polkawallet_ui: -# git: -# url: https://github.com/polkawallet-io/ui.git -# ref: 144a244b038e56aead4fc97a189057819bfeab08 - path: ../ui + git: + url: https://github.com/polkawallet-io/ui.git + ref: 485a9cde97f2446d74a1aeb6d8d63e33683461a5 +# path: ../ui dev_dependencies: build_runner: ^2.0.3