Skip to content

refactor: unify transaction DTO, re-implement useConnectedWallet with the latest interchain-kit#280

Merged
2wheeh merged 12 commits intodezswap:mainfrom
2wheeh:feat/bump-xpla-interchain
Apr 23, 2026
Merged

refactor: unify transaction DTO, re-implement useConnectedWallet with the latest interchain-kit#280
2wheeh merged 12 commits intodezswap:mainfrom
2wheeh:feat/bump-xpla-interchain

Conversation

@2wheeh
Copy link
Copy Markdown
Contributor

@2wheeh 2wheeh commented Jan 2, 2026

Background

closes #277
fixes DEZ-26

We are migrating xpla.js (and @xpla/wallet-provider) to xplajs, interchainjs, interchain-kit.

This change increases isolation, paving the way to fully deprecate xpla.js in the future.

Recent updates to interchain-kit have resolved some issues around reactivity and walletconnect:

Description

  • Update xplajs, interchainjs, interchain-kit to the latest versions
  • Unify all transaction DTOs to use MsgExecuteContract (the only tx type this app handles), removing mixed usage of EncodeObject and xpla.js CreateTxOptions
  • Use StdFee over Fee as a Fee DTO
  • Isolate xpla.js dependencies and encapsulate legacy logic
  • Re-implement useConnectedWallet hook leveraging more interchain-kit hooks

Checklist

  • Chain update disconnects previous connection correctly
  • Tx handling (post, fee estimation, ...) works correctly as before

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 2, 2026

Deploy Preview for dezswap ready!

Name Link
🔨 Latest commit 22e7584
🔍 Latest deploy log https://app.netlify.com/projects/dezswap/deploys/69e6de86112b800008a8e256
😎 Deploy Preview https://deploy-preview-280--dezswap.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@2wheeh 2wheeh force-pushed the feat/bump-xpla-interchain branch from e7565ff to 03f3bce Compare January 5, 2026 08:17
@2wheeh 2wheeh changed the title WIP refactor: unify transaction DTO, re-implement useConnectedWallet with the latest interchain-kit Jan 6, 2026
@2wheeh 2wheeh force-pushed the feat/bump-xpla-interchain branch from 03f3bce to fe7ff08 Compare January 16, 2026 08:57
@2wheeh 2wheeh force-pushed the feat/bump-xpla-interchain branch 2 times, most recently from c96bb8d to 91221a6 Compare March 10, 2026 10:07
@2wheeh 2wheeh force-pushed the feat/bump-xpla-interchain branch 2 times, most recently from 2cafdc8 to 27e7e0a Compare April 7, 2026 08:06
@2wheeh 2wheeh force-pushed the feat/bump-xpla-interchain branch from 27e7e0a to 78c8ca0 Compare April 7, 2026 08:08
@2wheeh 2wheeh force-pushed the feat/bump-xpla-interchain branch 7 times, most recently from acb1c11 to 09fbd25 Compare April 8, 2026 06:07
@2wheeh 2wheeh force-pushed the feat/bump-xpla-interchain branch from 09fbd25 to c90d85b Compare April 8, 2026 06:09
@2wheeh 2wheeh marked this pull request as ready for review April 8, 2026 06:34
@2wheeh 2wheeh requested a review from jhlee-young April 8, 2026 06:34
@2wheeh 2wheeh requested review from nowooj and winnieworld April 8, 2026 06:34
@winnieworld
Copy link
Copy Markdown
Collaborator

The title doesn't come up
image

@2wheeh
Copy link
Copy Markdown
Contributor Author

2wheeh commented Apr 21, 2026

@winnieworld 22e7584

drawer={screenClass === MOBILE_SCREEN_CLASS}
hasCloseButton
title={wcUri ? currentWallet?.info.prettyName : "Connect to a wallet"}
title={wcUri ? "WalletConnect" : "Connect to a wallet"}
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

TOBE: (https://dezswap.io/)
Image

"WalletConnect" => "Wallet Connect"

Copy link
Copy Markdown
Contributor Author

@2wheeh 2wheeh Apr 23, 2026

Choose a reason for hiding this comment

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

"WalletConnect" is correct notation. "Wallet Connect" should be fixed overall the app, including xpla wallet provider upstream.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

image To keep the terminology consistent, this term should be updated as well.

Copy link
Copy Markdown
Contributor Author

@2wheeh 2wheeh Apr 23, 2026

Choose a reason for hiding this comment

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

Ok, these are what I meant "overall the app". If you meant within this PR, I'd keep it out of scope — already too large. I'll handle it in a follow-up.

@2wheeh 2wheeh requested a review from winnieworld April 23, 2026 02:51
@2wheeh 2wheeh merged commit ed2c875 into dezswap:main Apr 23, 2026
5 checks passed
@2wheeh 2wheeh deleted the feat/bump-xpla-interchain branch April 23, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants