Skip to content

Pull and push updated token metadata#47

Open
k1rill-fedoseev wants to merge 1 commit into
developfrom
feature/metadata-sync
Open

Pull and push updated token metadata#47
k1rill-fedoseev wants to merge 1 commit into
developfrom
feature/metadata-sync

Conversation

@k1rill-fedoseev

Copy link
Copy Markdown
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