hicommonwealth / commonwealth

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

:bucket: ChainEvents/Web3 Revamp #9895

Open timolegros opened 1 week ago

timolegros commented 1 week ago

Description

This bucket encompasses all the work related to simplifying the devX around adding chain-events. It also includes all the work related to clean-up such as moving existing chain-event policies to libs/models, deprecating Ethers.js (replacing with Viem), and more.

Tasks

  1. https://github.com/hicommonwealth/commonwealth/issues/9894
  2. https://github.com/hicommonwealth/commonwealth/issues/9933
  3. Create missing tests for all chain-event related handlers/policies using Docker Anvil
  4. https://github.com/hicommonwealth/commonwealth/issues/10015
  5. Make all ABIs use as const
  6. Fix use of created_at_block and events_migrated + make these required via migration
  7. Amend ChainEventCreated to contain the raw event data + topics
  8. Remove contest mappers (use ChainEventCreated + Viem)
  9. Update namespace, launchpad, etc policies/projections to use Viem to decode events
  10. Deprecate Ethers.js parsing in EVM CE + update ChainEventCreated schema
  11. Switch common protocol helpers to Viem
  12. https://github.com/hicommonwealth/commonwealth/issues/7504

Additional context

Related: