hypha-dao / hashed-wallet

Hashed Wallet
MIT License
3 stars 3 forks source link

Scan QR Code #165

Closed n13 closed 1 year ago

n13 commented 1 year ago

Scan QR code user interface.

Spec

Add one more tab on the left, so scanning becomes a main tab, rather than upper right corner thing.

I think scanning may be a main use of the application, so having it as a tab is justified.

Also the upper right corner is awkward and hard to hit with one hand. It's OK for something like profile that we don't use in day to day operations, but not for a main function.

Functionality

So we will show - similar to Seeds Light Wallet - a set of data for each action.

There can be multiple actions encoded in a single QR code. (example, uniswap, etc)

We show a list of actions

Each action has

Pallet (same as contract on EOS) Extrinsic (same as action on EOS) List of 0..N parameters (same as list of parameters on EOS, it could be anywhere from zero to N parameters, but likely N is < 10). I believe we can retrieve parameter names from chain but not 100% sure about that.

On Polkadot JS, in the generic extrinsic call user interface, the parameters are named.

n13 commented 1 year ago

Extrinsics call on Polkadot JS example

Note that parameters have a name and a type.

image
n13 commented 1 year ago

done