DXgovernance / davi-monorepo

https://davi-monorepo-davi.vercel.app
8 stars 12 forks source link

Rich contracts V2 - Support Enum fields #313

Open mprasanjith opened 1 year ago

mprasanjith commented 1 year ago

We should add support for Enum fields in the action builder. Potentially any field can be an enum field, and if marked as such would override the component type thats displayed on the action builder.

The enum values can just be hardcoded in the schema, the key being the actual value sent to the contracts and the value being a human readable label.

CleanShot 2023-03-16 at 11 35 44