diff --git a/PENDING.md b/PENDING.md index 5a761ceb9c..43f29b09dc 100644 --- a/PENDING.md +++ b/PENDING.md @@ -4,14 +4,17 @@ - [\#2104](https://github.com/cosmos/voyager/issues/2104) fix transaction times @fedekunze - [\#1805](https://github.com/cosmos/voyager/issues/1805) support all transaction types @fedekunze +- [#\2225](https://github.com/cosmos/voyager/pull/2225) local testnets now always have the same account with funds @faboweb - [\#2224](https://github.com/cosmos/voyager/issues/2224) persist the signed in address @faboweb ### Changed - [#\2202](https://github.com/cosmos/voyager/pull/2202) Fix circle configuration for publishing @sabau - [#\2211](https://github.com/cosmos/voyager/pull/2211) simplified sidebar and mobile menu, cleaned up css, fixed tests @jbibla +- [#\2225](https://github.com/cosmos/voyager/pull/2225) Moved to SDK version 0.33.0 @faboweb ### Fixed - [#\2202](https://github.com/cosmos/voyager/issues/2202) Fix number conversions @faboweb - Misc. style fixes @jbibla +- [\#2104](https://github.com/cosmos/voyager/issues/2103) fix undelegation format changes @faboweb diff --git a/app/src/renderer/components/common/AppHeader.vue b/app/src/renderer/components/common/AppHeader.vue index 33b15f7a6f..1bbb89755f 100644 --- a/app/src/renderer/components/common/AppHeader.vue +++ b/app/src/renderer/components/common/AppHeader.vue @@ -3,7 +3,7 @@
@@ -86,27 +89,45 @@ export default { ) }, unbondingTransactions: ({ transactions, delegation } = this) => - // Checking the type of transaction - // getting the unbonding time and checking if it has passed already - transactions.staking && transactions.staking - .filter( - transaction => - transaction.tx.value.msg[0].type === `cosmos-sdk/Undelegate` - && time.getUnbondingTime( - transaction, - delegation.unbondingDelegations - ) >= Date.now() - ) + transactions.staking && + transactions.staking + .filter(transaction => { + // Checking the type of transaction + if (transaction.tx.value.msg[0].type !== `cosmos-sdk/MsgUndelegate`) + return false + + // getting the unbonding time and checking if it has passed already + const unbondingEndTime = time.getUnbondingTime( + transaction, + delegation.unbondingDelegations + ) + + if (unbondingEndTime && unbondingEndTime >= Date.now()) return true + }) .map(transaction => ({ ...transaction, - unbondingDelegation: delegation.unbondingDelegations[ - transaction.tx.value.msg[0].value.validator_addr - ] + unbondingDelegation: + delegation.unbondingDelegations[ + transaction.tx.value.msg[0].value.validator_address + ] })) - }, - mounted() { + watch: { + "session.signedIn": function() { + this.loadStakingTxs() + } + }, + async mounted() { this.$store.dispatch(`updateDelegates`) + this.loadStakingTxs() + }, + methods: { + async loadStakingTxs() { + if (this.session.signedIn) { + const stakingTxs = await this.$store.dispatch(`getTx`, `staking`) + this.$store.commit(`setStakingTxs`, stakingTxs) + } + } } } diff --git a/app/src/renderer/components/transactions/LiAnyTransaction.vue b/app/src/renderer/components/transactions/LiAnyTransaction.vue index b98cbda8a6..d33a22f95f 100644 --- a/app/src/renderer/components/transactions/LiAnyTransaction.vue +++ b/app/src/renderer/components/transactions/LiAnyTransaction.vue @@ -89,15 +89,15 @@ export default { return this.transaction.tx.value.msg[0].type }, bankTx() { - return [`cosmos-sdk/Send`].includes(this.type) + return [`cosmos-sdk/MsgSend`].includes(this.type) }, stakingTx() { return [ `cosmos-sdk/MsgCreateValidator`, `cosmos-sdk/MsgEditValidator`, `cosmos-sdk/MsgDelegate`, - `cosmos-sdk/Undelegate`, - `cosmos-sdk/BeginRedelegate`, + `cosmos-sdk/MsgUndelegate`, + `cosmos-sdk/MsgBeginRedelegate`, `cosmos-sdk/MsgUnjail` ].includes(this.type) }, diff --git a/app/src/renderer/components/transactions/LiStakeTransaction.vue b/app/src/renderer/components/transactions/LiStakeTransaction.vue index d782f54b31..8238b7fbdb 100644 --- a/app/src/renderer/components/transactions/LiStakeTransaction.vue +++ b/app/src/renderer/components/transactions/LiStakeTransaction.vue @@ -37,44 +37,44 @@
To  - + {{ - moniker(tx.validator_addr) + moniker(tx.validator_address) }}
-