helium / hotspot-app

Helium hotspot app for iOS and Android
https://www.helium.com
Apache License 2.0
187 stars 139 forks source link

Allow QR code scanning of transfer_hotspot_v2 transactions #1341

Open rawrmaan opened 2 years ago

rawrmaan commented 2 years ago

The app should allow scanning a QR code to initiate a transfer_hotspot_v2 transaction. Importantly, the client-side check for recent hotspot activity (normally required to transfer a hotspot) should be bypassed so advanced users can make their own determination of whether a hotspot is ready to transfer.

This is the screen that pushes the transfer UI (see navigateToTransfer function): https://github.com/helium/hotspot-app/blob/main/src/features/hotspots/transfers/HotspotTransfer.tsx

And the main transfer UI is in SendView. In order to bypass the activity check, scanned transfers could follow the same code path as data-only hotspots, seen here: https://github.com/helium/hotspot-app/blob/afbe3342b4b663787ae379e143a145704bd32067/src/features/wallet/send/SendView.tsx#L163