Skip to content

Commit

Permalink
Merge pull request #196 from KiraCore/release/v0.4.40
Browse files Browse the repository at this point in the history
release/v0.4.40 -> master
  • Loading branch information
kmlbgn authored Sep 22, 2023
2 parents 6981553 + e1bb8eb commit 4da240a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 23 deletions.
3 changes: 1 addition & 2 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

Features:

* Implement custom denom and bech32 prefix
* Bump sekai version to v0.3.29
* Fix minor issues for QueryTransactions endpoint
2 changes: 1 addition & 1 deletion config/constants.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package config

const (
InterxVersion = "v0.4.39"
InterxVersion = "v0.4.40"
SekaiVersion = "v0.3.29"
CosmosVersion = "v0.45.10"

Expand Down
31 changes: 11 additions & 20 deletions gateway/interx/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/KiraCore/interx/config"
"github.com/KiraCore/interx/types"
kiratypes "github.com/KiraCore/sekai/types"
multistaking "github.com/KiraCore/sekai/x/multistaking/types"
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/x/auth/signing"
bank "github.com/cosmos/cosmos-sdk/x/bank/types"
Expand Down Expand Up @@ -283,18 +284,13 @@ func parseTransaction(rpcAddr string, transaction tmTypes.ResultTx) (types.Trans
},
})
} else if txType == "delegate" {
delegateMsg := msg.(*staking.MsgDelegate)
delegateMsg := msg.(*multistaking.MsgDelegate)

transfers = append(transfers, types.Transaction{
Type: txType,
From: delegateMsg.DelegatorAddress,
To: delegateMsg.ValidatorAddress,
Amounts: []sdk.Coin{
{
Denom: delegateMsg.Amount.Denom,
Amount: delegateMsg.Amount.Amount,
},
},
Type: txType,
From: delegateMsg.DelegatorAddress,
To: delegateMsg.ValidatorAddress,
Amounts: delegateMsg.Amounts,
})
} else if txType == "begin_redelegate" {
reDelegateMsg := msg.(*staking.MsgBeginRedelegate)
Expand All @@ -311,18 +307,13 @@ func parseTransaction(rpcAddr string, transaction tmTypes.ResultTx) (types.Trans
},
})
} else if txType == "begin_unbonding" {
unDelegateMsg := msg.(*staking.MsgUndelegate)
unDelegateMsg := msg.(*multistaking.MsgUndelegate)

transfers = append(transfers, types.Transaction{
Type: txType,
From: unDelegateMsg.ValidatorAddress,
To: unDelegateMsg.DelegatorAddress,
Amounts: []sdk.Coin{
{
Denom: unDelegateMsg.Amount.Denom,
Amount: unDelegateMsg.Amount.Amount,
},
},
Type: txType,
From: unDelegateMsg.ValidatorAddress,
To: unDelegateMsg.DelegatorAddress,
Amounts: unDelegateMsg.Amounts,
})
} else if txType == "withdraw_delegator_reward" {
var coin sdk.Coin
Expand Down

0 comments on commit 4da240a

Please sign in to comment.