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

feat(StarlightToken): Transact starlight token between users within uplink. #724

Draft
wants to merge 22 commits into
base: dev
Choose a base branch
from

Conversation

InfamousVague
Copy link
Collaborator

@InfamousVague InfamousVague commented Oct 16, 2024

Description

This PR will add the ability to transact testnet tokens within Uplink and send them to, and receive them from your friends.

image

TODO:

  • Create wallet component which allows you to select a currency and send or receive the currency.
  • UI for account history which displays a quick glance at inbound and outbound transactions.
  • UI for sending tokens (ask for how much of a token to send and optionally attatch a note to the transaction)
  • Detect if the active chat user has a currency linked to their account, if they do we should enable a button to "send to " within the wallet.
  • Detect which external wallet plugins exist (metamask, xverse, phantom, etc) and populate token balances.
  • Once a valid address has been found you should be able to send coins to a user and a receipt of the transaction should be sent in the user associated with that wallets active chat (If a friend has the wallet address we sent coins to linked to their profile, a message should appear saying they got funds).
  • Once a currency has been selected we should query any installed wallets to see if an account exists with that currency yet, if not we should instruct the user to create a wallet for that currency before displaying the balance.
  • Once a valid address has been found the QR code should display the wallet address selected.
  • Wire up testnet ERC20 for Starlight Token and by default select this currency.
  • Wire up querying balances of starlight token to display on the component.
  • Save transactions within Warp so we can have detailed transaction history across multiple devices (this could also be done by just querying the blockchain to see the history on a given address which could work better).
  • When you successfully scan a QR code or enter a wallet address it should take you to a page within the wallet which allows you to set the amount to send (do not allow sending more than you own) and should have a "send transaction" button or something similar that pops the appropriate installed wallet to sign the transaction.
  • When you have successfully scanned a QR code and found an address we should check if the address scanned is associated with a friend, if it is it should display "sending to "

Copy link

⚠️ The title of this PR is invalid.
Please make the title match the regex (?:add|update|task|chore|feat|fix|refactor)\([a-z-A-Z]+\):\s.+.
e.g.) add(cli): enable --verbose flag, fix(api): avoid unexpected error in handler

@github-actions github-actions bot added the Invalid PR title Please make sure PR Title matches starts with add|update|task|chore|feat|fix|refactor label Oct 16, 2024
@github-actions github-actions bot added the Missing dev review Two dev reviews are required on PR label Oct 16, 2024
@InfamousVague InfamousVague changed the title Token state feat(Starlight Token): Transact starlight token between users within uplink. Oct 16, 2024
Copy link

github-actions bot commented Oct 16, 2024

Automated tests execution is complete! You can find the Playwright test report here and the Allure Test Report here

@stavares843 stavares843 changed the title feat(Starlight Token): Transact starlight token between users within uplink. feat(StarlightToken): Transact starlight token between users within uplink. Oct 16, 2024
@stavares843 stavares843 removed the Invalid PR title Please make sure PR Title matches starts with add|update|task|chore|feat|fix|refactor label Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@Satellite-im Satellite-im deleted a comment from github-actions bot Oct 16, 2024
@github-actions github-actions bot added the Missing fixing conflict Needs to fix conflicts label Oct 17, 2024
@InfamousVague InfamousVague removed the Missing fixing conflict Needs to fix conflicts label Nov 6, 2024
Copy link

github-actions bot commented Nov 6, 2024

Download the app installers for this pull request:

@github-actions github-actions bot added the Missing fixing conflict Needs to fix conflicts label Nov 6, 2024
@phillsatellite phillsatellite added the 📄 Draft PR is not ready yet label Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📄 Draft PR is not ready yet Missing dev review Two dev reviews are required on PR Missing fixing conflict Needs to fix conflicts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants