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

Pull and push updated token metadata #47

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

k1rill-fedoseev
Copy link
Member

This PR add functionality for updating metadata inside of bridged tokens. Currently, it is possible to update tokenURI and owner fields only. But this can be extended further whenever needed.

Updates in home bridged tokens are managed through the async information calls AMB feature, so no foreign transactions will be required (the updates are being "pulled" from the foreign side).

Updates in foreign bridged tokens are managed through regular AMB messages, using requireToPassMessage (the updates are being "pushed" to the foreign side).
The foreign contract is designed in such a way, so that it can be reused in the future without expensive upgrades, if adding more metadata fields will be necessary.

@k1rill-fedoseev k1rill-fedoseev self-assigned this Nov 15, 2021
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