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

Airdrop SOL automatically to wallets #253

Merged
merged 7 commits into from
Jul 19, 2022
Merged

Airdrop SOL automatically to wallets #253

merged 7 commits into from
Jul 19, 2022

Conversation

nathanleclaire
Copy link
Contributor

@nathanleclaire nathanleclaire commented Jul 18, 2022

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?

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]>
@nathanleclaire nathanleclaire added this to the 0.4.0 milestone Jul 18, 2022
let amount = 0;

// arbitrary -- want to let people top up
// on devnet SOL when they can
Copy link
Member

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)

Copy link
Contributor Author

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]);
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

polling bad :)

@SvenDowideit SvenDowideit merged commit 99a0f8b into main Jul 19, 2022
@SvenDowideit SvenDowideit deleted the auto_airdrop branch July 19, 2022 00:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants