deep-ink-ventures / elio-dao-service

Apache License 2.0
0 stars 0 forks source link

Implement Policies API for Multiclique Wallet and Associated DAO #15

Open deep-ink-ventures opened 1 year ago

deep-ink-ventures commented 1 year ago

Description

Create an API to manage and monitor policies related to the multiclique wallet and its underlying DAO (Decentralized Autonomous Organization). The API should listen to and expose policies from the DAO (which is discoverable via the assets contract deployed in the policy).

Additionally, it should expose and listen for set limits for all assets. The API should be designed in an extendable manner to accommodate future policy additions.

Requirements

  1. Create Policies API: Develop an API endpoint /policies that exposes all available presets, currently only ELIO_DAO
  2. Asset Limits: Expose and listen for set limits on all assets, and keep track of the already spent amounts. 43 Extendability: Design the API such that it is extendable for future policy additions. For example, /policies/elio-dao/ should expose all deployed policies for the elio DAO, all prefixed with multiclique.
x-xo commented 1 year ago

Addition for the policies API:

It would be nice if the backend could return the following properties per policy:

This way the frontend could show policies that are already planned, but not yet deployed, i.e. coming soon.