Skip to content

Add Friendbot button#74

Merged
CassioMG merged 5 commits intomainfrom
cg-friendbot
Apr 1, 2025
Merged

Add Friendbot button#74
CassioMG merged 5 commits intomainfrom
cg-friendbot

Conversation

@CassioMG
Copy link
Copy Markdown
Contributor

@CassioMG CassioMG commented Mar 31, 2025

Closes #69

This PR adds the FriendbotButton component which should only be shown and used on Testnet (or Futurenet once we add support for it) to fund recently created accounts with 10000 XLM.

This PR also fixes a small UI glitch that was causing the empty state to briefly blink for a fraction of second before displaying the balances spinner.

Screenshot 2025-03-31 at 16 33 01

iOS

ios-friendbot.mp4

Android

android-friendbot.webm

network,
);

// Set isMounting to false after the component mounts.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

maybe you could use a lifecycle state machine like we are starting to do in the extension, something like IDLE, PENDING, SUCCESS, ERROR. This could help stay away from having to use view sentinels values to step around the state.

@CassioMG CassioMG merged commit 38eb2c4 into main Apr 1, 2025
1 check passed
@CassioMG CassioMG deleted the cg-friendbot branch April 1, 2025 19:10
@CassioMG CassioMG self-assigned this Apr 1, 2025
@github-actions github-actions Bot mentioned this pull request Nov 24, 2025
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

Successfully merging this pull request may close these issues.

Add Friendbot button

4 participants