diff --git a/RELEASE.md b/RELEASE.md index 4a99608..2443cb7 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -1,5 +1,4 @@ Features: -* Implement custom denom and bech32 prefix -* Bump sekai version to v0.3.29 +* Fix minor issues for QueryTransactions endpoint diff --git a/config/constants.go b/config/constants.go index 979cf13..67d66bd 100755 --- a/config/constants.go +++ b/config/constants.go @@ -1,7 +1,7 @@ package config const ( - InterxVersion = "v0.4.39" + InterxVersion = "v0.4.40" SekaiVersion = "v0.3.29" CosmosVersion = "v0.45.10" diff --git a/gateway/interx/block.go b/gateway/interx/block.go index 9fd9e95..0824621 100644 --- a/gateway/interx/block.go +++ b/gateway/interx/block.go @@ -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" @@ -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) @@ -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