-
Notifications
You must be signed in to change notification settings - Fork 29
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
Add Faucet for Swanky Node #60
Comments
I can imagine faucet precompiled contracts and account subcommand invoke faucet tx (by alice because your newly created account doesn't have gas to invoke faucet tx). But why not just transfer some tokens from alice to your account? |
for local yes (see the first checkbox), but if using a live node, we prob. don't have access to unlimited funds, and need to define a faucet contract address to request a drip |
For live networks, having faucet contract address in swanky config doesn't work. checkbox 2,3 are not possible unless you prepare at least 1 account with enough funds whose private keys are not shared with others beforehand. So, you need external programs which can control that faucet manager account, and swanky-cli need to communicate with it via API. Here're 2 considerations.
For these reasons, this cannot be a core feature of swanky-cli and not its responsibility, it should be plugin (specifically for Astar related chains) at least. Being able to receive tokens with 0 balance account, that's the requirement. |
I believe that by the second checkbox I imagined what you wrote in 1st point.
|
I see, in the case of live networks including Shinuya, it could be possible calling API server hosted somewhere. |
The command should only work on local, and use Alice to transfer funds to the account for now. |
Co-authored-by: Igor Papandinas <[email protected]>
Co-authored-by: Igor Papandinas <[email protected]>
Overview (What and Why)
Newly created accounts do not have any funding. There should be a feature/command to add some funds to new accounts from the Faucet.
How?
swanky account
subcommand to call the faucet contract (in case of swanky node, just transfer more from Alice)Acceptance Criteria
swanky accounts
has a faucet subcommandOpen Issues and Blockers
The text was updated successfully, but these errors were encountered: