Skip to content

Commit

Permalink
add staking reward chart & bump polkawallet_sdk 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
RomeroYang committed Jun 9, 2021
1 parent 66fd0e5 commit edde4d7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [0.2.1] - 20210609.

* update dependency polkawallet_sdk: 0.2.1.
* add staking rewards chart.

## [0.0.7] - 20210112.

* update dependency polkawallet_sdk: 0.0.7.
Expand Down
2 changes: 1 addition & 1 deletion lib/pages/staking/actions/actions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ class _StakingActions extends State<StakingActions> {
final String symbol = widget.plugin.networkState.tokenSymbol[0];

List<Widget> res = [];
if (widget.plugin.store.staking.txsRewards.length > 0) {
if (widget.plugin.store.staking.txsRewards.length > 1) {
res.add(Container(
padding: EdgeInsets.all(16),
color: Theme.of(context).canvasColor,
Expand Down
4 changes: 3 additions & 1 deletion lib/polkawallet_plugin_kusama.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class PluginKusama extends PolkawalletPlugin {
'packages/polkawallet_plugin_kusama/assets/images/public/$name.png'),
iconDisabled: Image.asset(
'packages/polkawallet_plugin_kusama/assets/images/public/${name}_gray.png'),
jsCodeVersion: 20601,
jsCodeVersion: 20701,
isTestNet: false,
),
recoveryEnabled = name == network_name_kusama,
Expand Down Expand Up @@ -184,6 +184,8 @@ class PluginKusama extends PolkawalletPlugin {
_store = PluginStore(_cache);

try {
loadBalances(keyring.current);

_store.staking.loadCache(keyring.current.pubKey);
_store.gov.clearState();
_store.gov.loadCache();
Expand Down
2 changes: 1 addition & 1 deletion 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.1.8
version: 0.2.1
homepage:

environment:
Expand Down

0 comments on commit edde4d7

Please sign in to comment.