You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 2, 2024. It is now read-only.
Description
We need a page dedicated to viewing/decoding existing app-data hashes as well as creating new metadata documents, even uploading them to ipfs could be nice to have:
More things I had in mind for this. Rather than build it dynamically, we could have a more guided form, with the fields:
1. appCode is optional and is a free form text input
2. version is read only and set to latest
4. environment is optional and is a free form text input. It could hint at possible choices (productions, development, staging)
5. metadata is mandatory, even if empty
Then, for the metadata, user can pick any of the choices of referrer and quote. Maybe a checkbox to enable them?
1. referrer:
* version is read only and set to latest
* address is required and must be an address (0x....)
2. quote:
* not actually sure it makes sense to allow this field here, but it might be worth adding it just for the sake of completeness
version is read only and set to latest
* slippageBips is mandatory and accepts a number (stored as string in the final JSON)
Another point that comes to mind is that parallel to the form there could be a panel displaying the result of user’s choices in real time, updating the JSON and generating the appDataHash
The JSON and appDataHash would have a copy button.
Not sure how exploitable this is, but there could be an option to upload the resulting doc to IPFS
I rescued some old notes on some libraries that u might be interesting in using. I looked at it when I was trying to find how to formally define the meta-data JSON format:
*https://jsonforms.io/* Great docs!
* very modular
*https://github.com/eclipsesource/jsonforms*https://github.com/rjsf-team/react-jsonschema-form* Awesome tool and showcase: https://rjsf-team.github.io/react-jsonschema-form/* Different theming options
* Uniforms: https://uniforms.tools/docs/what-are-uniforms* Different styles
* Also great, and very nice docs
* For reordering and so on, doesn’t use a UI schema. So maybe less flexible
The text was updated successfully, but these errors were encountered:
Description
We need a page dedicated to viewing/decoding existing app-data hashes as well as creating new metadata documents, even uploading them to ipfs could be nice to have:
To do this we can leverage what has been done in Add AppData row with Metadata Info in Orders details page #159 and parameterize the app-data
@alfetopito's notes:
@anxolin's notes:
The text was updated successfully, but these errors were encountered: