Skip to content
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

Master token list: allow updates to validation schema #472

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

chuck-h
Copy link
Collaborator

@chuck-h chuck-h commented Jul 5, 2022

The tmastr.seeds contract maintains a list of tokens used in the Seeds ecosystem along with metadata such as logo image, name, etc. The contract also maintains a JSON schema on-chain which is used by several applications (including Light Wallet) to validate each token's metadata when generated or utilized.

This PR corrects an oversight which made the schema string immutable (we anticipate that maintenance and extension of the schema will be desirable).

This PR also includes a minor edit to the schema itself, specifying "uri" formats.

Re: JoinSEEDS/seeds_light_wallet#1919 "Master Token List Schema",
Author is aware that use of the JSON schema in Light Wallet is controversial but this PR is a needed fix for the existing implementation independent of possible future redesign/restructuring.

@n13

Note: there is no change to table structure so we should be able to redeploy on top of the old contract without resetting tables or repeating the init. I have tested init and setschema on local test net.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant