Skip to content

Commit

Permalink
Merge pull request #382 from alleslabs/feat/pool-manager-msgs
Browse files Browse the repository at this point in the history
feat: add pool manager v15 msgs to tx details
  • Loading branch information
evilpeach committed Jun 12, 2023
2 parents b010677 + e444a26 commit de76d0c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Improvements

- [#382](https://github.com/alleslabs/celatone-frontend/pull/382) Add pool manager v15 msgs to tx details
- [#371](https://github.com/alleslabs/celatone-frontend/pull/371) Refactor assign me component and fix color in redelegation page
- [#342](https://github.com/alleslabs/celatone-frontend/pull/342) Add fallback n/a token on asset icon on asset box
- [#331](https://github.com/alleslabs/celatone-frontend/pull/331) Add validation check for builder in proposal to store code page
Expand Down
2 changes: 2 additions & 0 deletions src/lib/data/tx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export type TypeUrl =
| "/osmosis.gamm.v1beta1.MsgJoinSwapShareAmountOut"
| "/osmosis.gamm.v1beta1.MsgExitSwapShareAmountIn"
| "/osmosis.gamm.v1beta1.MsgExitSwapExternAmountOut"
| "/osmosis.poolmanager.v1beta1.MsgSwapExactAmountIn"
| "/osmosis.poolmanager.v1beta1.MsgSwapExactAmountOut"
| "/osmosis.incentives.MsgCreateGauge"
| "/osmosis.incentives.MsgAddToGauge"
| "/osmosis.lockup.MsgLockTokens"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1504,7 +1504,8 @@ export const generateReceipts = (
},
];
}
case "/osmosis.gamm.v1beta1.MsgSwapExactAmountIn": {
case "/osmosis.gamm.v1beta1.MsgSwapExactAmountIn":
case "/osmosis.poolmanager.v1beta1.MsgSwapExactAmountIn": {
const details = extractTxDetails(type, body, log);
return [
{
Expand Down Expand Up @@ -1532,7 +1533,8 @@ export const generateReceipts = (
},
];
}
case "/osmosis.gamm.v1beta1.MsgSwapExactAmountOut": {
case "/osmosis.gamm.v1beta1.MsgSwapExactAmountOut":
case "/osmosis.poolmanager.v1beta1.MsgSwapExactAmountOut": {
const details = extractTxDetails(type, body, log);
return [
{
Expand Down
8 changes: 6 additions & 2 deletions src/lib/utils/tx/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -683,9 +683,13 @@ export type MsgReturnType<T extends TypeUrl> =
? MsgJoinPoolDetails
: T extends "/osmosis.gamm.v1beta1.MsgExitPool"
? MsgExitPoolDetails
: T extends "/osmosis.gamm.v1beta1.MsgSwapExactAmountIn"
: T extends
| "/osmosis.gamm.v1beta1.MsgSwapExactAmountIn"
| "/osmosis.poolmanager.v1beta1.MsgSwapExactAmountIn"
? MsgSwapExactAmountInDetails
: T extends "/osmosis.gamm.v1beta1.MsgSwapExactAmountOut"
: T extends
| "/osmosis.gamm.v1beta1.MsgSwapExactAmountOut"
| "/osmosis.poolmanager.v1beta1.MsgSwapExactAmountOut"
? MsgSwapExactAmountOutDetails
: T extends "/osmosis.gamm.v1beta1.MsgJoinSwapExternAmountIn"
? MsgJoinSwapExternAmountInDetails
Expand Down

2 comments on commit de76d0c

@vercel
Copy link

@vercel vercel bot commented on de76d0c Jun 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@vercel
Copy link

@vercel vercel bot commented on de76d0c Jun 13, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.