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

BOUNTY: New Simple Transaction UI #175

Closed
JeffWScott opened this issue Oct 19, 2021 · 0 comments
Closed

BOUNTY: New Simple Transaction UI #175

JeffWScott opened this issue Oct 19, 2021 · 0 comments

Comments

@JeffWScott
Copy link
Contributor

Scope:

  • Add Simple Transaction UI for sending Currency (TAU) and Token Transactions.
  • Add the ability to select an "Advanced" Transaction option which will display the current UI
  • Add a better success/failure message
  • Update/Create test cases to reflect the new UI

Description

The current UI is too confusing for new users. We need a more simple UI.

The new transaction UI should have ONLY the following UI items

  • What is being sent (TAU, Token Name, etc)
  • Logo of thing being sent
  • Dropdown box for "From" which is a list of all the user's wallet accounts
  • Input Box for Receiver Address
    • This should have a "My Wallet Accounts" checkbox or switch which, when activated replaces the "Receiver" input box with a dropdown box of the user's Accounts (excluding the one selected in "From". Any updates to the From account should repopulate the "Receiver" box appropriately
  • Input Box for amount to send
  • Next and Cancel buttons (like current)

Creating the transaction

To send currency or tokens the transaction specifics are as follows:

Taken from CoinLamdenContract.svelte

  dispatch('contractDetails', {
      sender: selectedWallet,
      txInfo: {
          senderVk: selectedWallet.vk,
          stampLimit,
          'contractName': contractNameField.value, 
          methodName, 
          'kwargs': formatKwargs(kwargs)
      }
  })

That info is populated currently by the advanced UI.

for the new UI use these values

  • senderVk VK of the account selected in the "FROM" dropdown
  • stampLimit set to 50. If the user doesn't have (stampRatio * 50) amount of TAU in their account tell them they need (stampRatio * 50) TAU to make this transaction. If sending TAU you'll need to remove this from the amount they are sending to make sure they have enough left in the account to pay the TX cost.
  • contractName taken from what they are sending the TAU contract is called "currency" and the token contract names can be found in the token storage.
  • methodName hardcode to transfer
  • kwargs "keyword arguments" these are the arguments for the transaction. The transfer method which we are calling takes two arguments, TO and AMOUNT. Populate these from what the user inputs in the UI

Send the transaction with the normal send transaction flow that the advanced UI uses.

Success/Failure Message

Add a TAU HQ link (testnet.lamden.io for testnet) to the transaction hash on the success/failure popup.

@JeffWScott JeffWScott changed the title New Simple Transaction UI BOUNTY: New Simple Transaction UI Oct 21, 2021
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

No branches or pull requests

1 participant