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

[tfi-factory] Add CreateToken and CreateTrustedToken endpoints #81

Open
maurolacy opened this issue Jul 28, 2022 · 0 comments
Open

[tfi-factory] Add CreateToken and CreateTrustedToken endpoints #81

maurolacy opened this issue Jul 28, 2022 · 0 comments

Comments

@maurolacy
Copy link
Contributor

maurolacy commented Jul 28, 2022

This is a proposal to delegate creation (instantiation) of tokens (cw20-base instances) and trusted tokens (trusted-token instances) to the tfi-factory contract.

The rationale being, having unified and centralised management of those assets. Currently the creation of these is being done in the frontend, which requires the frontend to have knowledge of their code ids. As code ids change during migration, a frontend change / update is currently required to enable / complete the tokens' migration process.

Also, the migrate admin is currently being set by tfi-factory for the tfi-pair instances. While these token instances require for it to be set in the frontend instead.

As part of this, or complementary to it, a number of extra query endpoints will perhaps be needed, so that the frontend can query the data that obtained previously through its knowledge of the code id. By example, to list of the instances of a given type.

Note: The tfi-factory Config query currently returns both tokens code ids. So, that can already be used to that end.

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

No branches or pull requests

1 participant