-
Notifications
You must be signed in to change notification settings - Fork 7
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
Airdrop SOL automatically to wallets #253
Conversation
Signed-off-by: Nathan LeClaire <[email protected]>
Signed-off-by: Nathan LeClaire <[email protected]>
Signed-off-by: Nathan LeClaire <[email protected]>
Signed-off-by: Nathan LeClaire <[email protected]>
Signed-off-by: Nathan LeClaire <[email protected]>
Signed-off-by: Nathan LeClaire <[email protected]>
223ed0f
to
3a0006a
Compare
Signed-off-by: Nathan LeClaire <[email protected]>
3a0006a
to
4095c8d
Compare
let amount = 0; | ||
|
||
// arbitrary -- want to let people top up | ||
// on devnet SOL when they can |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these should all be in the settings dialog (in a future release)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed!
} | ||
}; | ||
airdropIfNeeded(); | ||
}, [net, wallet.publicKey, validator]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So this will happen once per change of network connection / wallet? (and so if at that point the network was offline, we won't try again?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea. And validator status. So if a brand new local validator starts up without airdrop, it will airdrop again. Was quick to implement and felt a bit less aggressive than polling.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
polling bad :)
Closes #59
Closes #222
Going to hold off on saying #181 is resolved, because I couldn't figure out a way to get the adapter to go ahead and automatically use the electron storage one. Do you know any way?
Doesn't cover config item to not do this, how bad do you want that in 0.4.0?