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

swarm invites #713

Open
Evanfeenstra opened this issue Jun 21, 2023 · 4 comments · May be fixed by #715
Open

swarm invites #713

Evanfeenstra opened this issue Jun 21, 2023 · 4 comments · May be fixed by #715
Assignees

Comments

@Evanfeenstra
Copy link
Contributor

proxy users should be able to "buy" a new user (invite)

You need to send keysend to swarm admin... those sats are the initial sats that the new user gets. Also the admin could set a percentage "cut" (like they could take one percent).

And it would be great to hook this up to the same "invite" UX in the apps

This is an R+D issue for now

@tobi-bams
Copy link
Contributor

@tomastiminskas @Evanfeenstra
I am thinking of adding a connection_string to the invite body.

And connection_string is what we give users to use in signing up.

I guess the logic will go this way when the invite status is ready, we check if we have connection_string, and if we have that allow user to copy the connection_string, else if there is no connection string we allow users to copy invite_string.

@tobi-bams tobi-bams linked a pull request Jun 26, 2023 that will close this issue
@tomastiminskas
Copy link

It makes sense to me. We can add the new connection_string on the apps whenever we have some test environment ready and relay changes deployed to my nodes. It should be pretty simple.

Not sure if the initial process of sending a key send to swarm admin would be done from the app and if that will have a specific flow that we will need to implement or if that will be done outside of sphinx for now.

@tobi-bams
Copy link
Contributor

We will use the flow that already exists in the app, so no need for a new workflow...

Immediately an invite is sent, the status of the invite becomes pending_payment

@tobi-bams
Copy link
Contributor

@Evanfeenstra

Here are the two basic configs that need to be added to swarm

"allow_swarm_invite": true,
"host_name": "localhost:3004"

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 a pull request may close this issue.

3 participants