Skip to content

Commit

Permalink
bump polkawallet_sdk: 0.3.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
RomeroYang committed Aug 26, 2021
1 parent 36aed7f commit e9e7c25
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 30 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.3.0] - 20210826.

* bump polkawallet_sdk: 0.3.0.

## [0.2.5] - 20210716.

* bump polkawallet_sdk: 0.2.5.
Expand Down
20 changes: 11 additions & 9 deletions example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
8 changes: 4 additions & 4 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion lib/pages/staking/validators/overview.dart
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ class _StakingOverviewPageState extends State<StakingOverviewPage> {

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;
Expand Down Expand Up @@ -233,7 +234,7 @@ class _StakingOverviewPageState extends State<StakingOverviewPage> {
),
InfoItem(
crossAxisAlignment: CrossAxisAlignment.center,
title: dicStaking['overview.min'],
title: dicStaking['overview.min'] + '($symbol)',
content: Fmt.balance(overview['minNominated'], decimals) +
' / ' +
Fmt.balance(overview['minNominatorBond'], decimals),
Expand Down
18 changes: 10 additions & 8 deletions pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
16 changes: 8 additions & 8 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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:
Expand All @@ -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
Expand Down

0 comments on commit e9e7c25

Please sign in to comment.