-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add MaxMetadataLength for credit class & credit batch metdata #520
Comments
@aaronc suggested 256 bytes as a number that we should use for MaxMetadataLength. I think this makes sense assuming that this field is not storing raw metadata, but rather just content identifiers / hashes / URIs that identify metadata that lives somewhere off chain (or onchain but in the data module). @aaronc Should we be more explicit about what the structure of that metadata looks like? Should it be a string following a URI format ( |
@clevinson do we want this to be implemented as a param? A comment in the group module suggests that that wanted to be migrated to a param later on:
|
I think we should probably hold off implementing as a param for now (similar to group module). In group we suggested doing that once we refactor how x/params works, and that's going to happen on a longer timeline. |
should we also charge gas based on the length of the metadata? in ethereum storing a 256-bit word costs around 20,000 gas. for our case i dont think it needs to be that high - but imo should have some sort of storage cost |
Credit class & credit batches should have a max metadata length (similar to x/group module).
We should come up with a sensible max metadata limit, and also ensure documentation is updated to communicate that there is a limit to metadata size.
The text was updated successfully, but these errors were encountered: