Commit Graph

16 Commits

Author SHA1 Message Date
shreerang6921
a4e0dc5406
Use context for maintaining accounts state (#41)
* Use context for maintaining accounts state

* Remove custom hook from context
2024-03-06 17:44:13 +05:30
shreerang6921
150f10b91f
Connect wallet to a dapp using WalletConnect (#38)
* Connect with dapp using WalletConnect

* Pair dapp with wallet

* Sign message taken from dapp and return the signature

* Add todos

* Move wallet connect functions to seperate screen

* Change ui

* Change ui for wc modals

* Add styles

* Remove border radius at the bottom

* Make review changes

* Add dependancy to useEffect

* Move pairing modal methods

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-05 19:20:31 +05:30
Adwait Gharpure
21b749d9a4
Add QR scanner for walletconnect (#36)
* Add page for scanning qr code

* Refactor code

* Ask for permission to use camera

* Change Qr to QR

* Seperate imports

* QR instead of Qr

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-05 11:42:12 +05:30
IshaVenikar
783758be39
Retrieve accounts on reload (#29)
* Display HD path on sign message page

* Create component for displaying account details

* Add retrieve accounts function

* Load accounts after closing app

* Fix the retrieve accounts function

* Use hdpath instead of id

* Check if keystore is empty while retrieving accounts

* Add spinner when accounts are being fetched

* Display complete hd paths after reloading the app

* Remove any return type

* Store public key and address

* Modify sign message function to use path

* Fix the add accounts functionality
2024-02-22 11:32:25 +05:30
IshaVenikar
5e0d0646b5 Make the component definitions consistent 2024-02-21 11:09:29 +05:30
IshaVenikar
0bb2785383 Make review changes 2024-02-21 10:41:05 +05:30
IshaVenikar
9a6e52de90 Hard-code the prefix of the hd paths and refactor functions 2024-02-21 10:08:27 +05:30
IshaVenikar
63edfdd990 Modify signMessage function 2024-02-20 18:55:00 +05:30
IshaVenikar
35d51f1c01 Use dialog box to add accounts using HD path 2024-02-20 18:06:29 +05:30
IshaVenikar
f2727315bd Resolve errors due to rebasing 2024-02-20 14:39:13 +05:30
IshaVenikar
49613ef52f Add new account using hd path given by user 2024-02-20 13:41:41 +05:30
IshaVenikar
dbaf43f98c Display hdpaths for newly created accounts 2024-02-20 13:35:01 +05:30
IshaVenikar
ad42b74841 Integrate functions 2024-02-20 12:31:43 +05:30
Adwait Gharpure
cad0b6fae5 Refactor code (#18)
* Refactored accounts and sign message component

* Change sign message to hyperlink

* Refactor network dropdown

* Add types to utils

* Import react in index.js

* Use components for create wallet and reset dialog

* Remove inline styles from accounts component

* Remove inline styles from components

* Remove incorrectly placed async

* Make app responsive using flex

* Make review changes

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-19 12:12:18 +05:30
IshaVenikar
8685c94151 Integrate functionality to add new accounts with UI (#17)
* Create addAccount function

* Make review changes

* Create addAccount function

* Add id for each account

* Modify resetWallet function

* Make review changes

* Integrate functions
2024-02-19 12:12:18 +05:30
Adwait Gharpure
31c6999e9f UI to add multiple accounts (#16)
* Change button position

* Keep reset button at the bottom

* Use dropdown for accounts in separate component

* Display data of selected account

* Add method to add multiple accounts

* Change reset button position

* Clear account state on reset

* Display correct account info after creating

* Added account info to sign page

* Change variable names

* Use consistent variable names

* Use account id in ui

* Make review changes

* Fix imports

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-19 12:12:18 +05:30