hicommonwealth / commonwealth

A platform for decentralized communities
https://commonwealth.im
GNU General Public License v3.0
68 stars 44 forks source link

Added token trading widget inside community sidebar #9951

Closed mzparacha closed 23 hours ago

mzparacha commented 3 days ago

Link to Issue

Closes: https://github.com/hicommonwealth/commonwealth/issues/9489 https://github.com/hicommonwealth/commonwealth/issues/9946

Description of Changes

Added token trading widget inside the community sidebar

"How We Fixed It"

N/A

Test Plan

Pre-req: there were some changes to tokens schema and contract in earlier prs that will result in non-valid values with existing tokens (if you have any created in local db). You'd need to clear those out, i.e first clear the LaunchpadTrades and then the Tokens table, create a new token and then you'd be able to test correctly.

  1. Visit any community that has a token
  2. Verify you see the community token loaded as a widget in the community sidebar
  3. Verify you are able to trade (buy/sell) token from that widget
  4. Verify that token pricing data and market caps displayed are correct

Deployment Plan

N/A

Other Considerations

N/A

mzparacha commented 2 days ago

Depends on some changes from https://github.com/hicommonwealth/commonwealth/pull/9905