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

Generic Faucet for parachain tokens #455

Open
franciscoaguirre opened this issue Oct 2, 2024 · 3 comments
Open

Generic Faucet for parachain tokens #455

franciscoaguirre opened this issue Oct 2, 2024 · 3 comments

Comments

@franciscoaguirre
Copy link

Hello! First of all, I love using the faucet for getting testnet tokens, the process is very simple and helps with development.
When trying to test out interactions between the system parachains and other parachains in the ecosystem though, I found that most of them either keep their own faucet or don't have a faucet of their own.
We should be able to make this faucet generic for providing other parachain tokens as well by getting those tokens via teleports (for assets registered on asset hub) to an asset hub account for the faucet and then distributing them via teleports to the corresponding accounts on those parachains.
I think it would ease testnet development in the ecosystem.
What do you think?

@mordamax
Copy link
Contributor

mordamax commented Oct 2, 2024

Hello @franciscoaguirre. Thanks for the feedback

So far we saw that people would just fork this project and update it with their own configs, rpcs, parachain ids and even branded look

This should support teleports as well (example)

There are 2 ways to set this up - web and/or matrix, both support transfer or teleport

The primary reason we recommend to fork & deploy on their own - we don't want to manage too many addresses and top them up to keep a steady token balance. + with PAPI it's better they keep it up to date on their own

I agree that it's not the easiest way, but there are some other potential ways to ease the testnet development.

@lovelaced
Copy link
Collaborator

There's also https://substratefaucet.xyz/ which was treasury funded (iirc) but whenever I've tried it, the faucet is always out of tokens.

@mutantcornholio
Copy link
Contributor

Hi @franciscoaguirre!

I've actually suggested this idea some time ago, but it didn't get much traction back then. Mostly because it would be a considerable rewrite, as currently faucet only supports one network / token per server instance. Using PAPI for generic solutions is also not that straightforward, but probably doable, one way or another.

And, there's the question of maintaining the balance. The way I see it, we'll need to shift the responsibility to the networks, and provide then with some kind of feedback, to tell if the balance becomes too low (matrix bot? prometheus endpoint?).

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

4 participants