osmosis-frontend icon indicating copy to clipboard operation
osmosis-frontend copied to clipboard

New display of pending transfers

Open jonator opened this issue 3 years ago • 1 comments

Increase user confidence by displaying pending IBC + bespoke bridge transfers front and center in the assets page.

WIP design

jonator avatar Aug 09 '22 17:08 jonator

We should look into adding a fun game while users are waiting -> http://www.sunnya97.com/osmo-runner/

jonator avatar Sep 25 '22 00:09 jonator

Closing, can reopen if we pursue this idea in the redesign (stale)

jonator avatar Mar 03 '23 18:03 jonator

@jonator Can I take on this issue?

dswilson4 avatar Apr 07 '23 00:04 dswilson4

Go for it!

jonator avatar Apr 07 '23 01:04 jonator

Any suggestions for testing an IBC transfer on the testnet for an end-to-end test? I have tokens on the osmosis testnet and am trying to do an IBC transfer, looking for IBC relayers on other testnets but not having luck: https://testnet.mintscan.io/cosmoshub-testnet/relayers

dswilson4 avatar Apr 07 '23 05:04 dswilson4

I have been using a hardcoded array of History objects following the same type here to render and test sample data like so:

  ```[{
    txHash: "txHash1",
    createdAtMs: Date.now() - 3600000,
    explorerUrl: "https://explorer.example.com/tx/txHash1",
    amount: "100",
    status: "pending",
    isWithdraw: true,
  },

  {
    txHash: "txHash2",
    createdAtMs: Date.now() - 7200000,
    explorerUrl: "https://explorer.example.com/tx/txHash2",
    amount: "200",
    status: "complete",
    isWithdraw: false,
  },

  {
    txHash: "txHash3",
    createdAtMs: Date.now() - 10800000,
    explorerUrl: "https://explorer.example.com/tx/txHash3",
    amount: "300",
    status: "pending",
    isWithdraw: true,
  },
]; ```

dswilson4 avatar Apr 07 '23 08:04 dswilson4

Also where is the source for the osmo runner canvas component? I'll also ask Sunny if he has it available

dswilson4 avatar Apr 07 '23 09:04 dswilson4

Yeah you'd have to ask sunny for that

The current histories, for IBC transfers and for Axelar transfers, can be found in these stores in the root store. https://github.com/osmosis-labs/osmosis-frontend/blob/master/packages/web/stores/root.ts#LL66C3-L67C70

You'll import them into your component like

const {
      ...,
      nonIbcBridgeHistoryStore,
      ibcTransferHistoryStore,
      ...,
} = useStore();

jonator avatar Apr 07 '23 14:04 jonator

Closing in favor of tracking on ClickUp

jonator avatar Apr 28 '23 20:04 jonator