Commit Graph

102 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
Adwait Gharpure
19e39281a6
Add functionality to scan QR while connecting wallet (#40)
* 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 for wc modals

* Make review changes

* Add dependancy to useEffect

* Move pairing modal methods

* Integrate QR in walletconnect page

* Move styles

* Add currentEthAddresses

* Handle review changes

---------

Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>
Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-06 15:16:00 +05:30
shreerang6921
276cb3695a
Use existing ethereum accounts while connecting wallet with dapp (#39)
* Use existing accounts while pairing with dapp

* Listen for events emitted from dapp on every render

* Handle review changes
2024-03-06 11:08:02 +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
Adwait Gharpure
0a39f7f1ba
Update readme (#34)
* Remove deepstack links

* Change link

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-04 16:54:40 +05:30
Adwait Gharpure
a643f9f9b1
Change package name to com.laconic.wallet (#33)
* Change package name

* Refactor folder structure

* Remove older instances of file

* Change name in app.json

* Make address selectable

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-04 15:20:09 +05:30
Adwait Gharpure
85e5a5e9bc
Update README.md file (#28)
* Add README.md file

* Add README.md file

* Add README.md file

* Add installation steps

* Add setup instructions

* Remove emulator from setup instruction

* Add links for installation

* Change link for JDK

* Move device setup instructions below yarn

* Setup for example-signer

* Update with steps for installing .deb file

---------

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
Co-authored-by: Adw8 <adwait@deepstacksoft.com>
Co-authored-by: Nabarun Gogoi <nabarun@deepstacksoft.com>
2024-03-01 15:14:34 +05:30
Adwait Gharpure
7db0edce75
Allow incoming signature requests from intents (#32)
* Add url scheme and linking

* Pass account to sign request page

* Provide functionality for accepting or rejecting requests

* Load account state before handling url

* Refactor code

* Make intent work when app is cleared from recents

* Fix bug to populate data from intents

* Fix bug to update data on subsequent requests

* Pass correct network to sign messages from cosmos account

* Fix bug to populate data for incoming intent

* Allow spaces in url

* Bad signature page

* Review changes

* Change page heading

* Use correct regex

* Clean up code

* Use https in url

* Set state properly

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-28 19:37:26 +05:30
IshaVenikar
fc034356a1
Add App icon (#31)
* Add App icon

* Add app icon
2024-02-22 15:58:18 +05:30
IshaVenikar
9199bc8e07
Add validation in add account from hd path (#30)
* Add validation in add account from hd path

* Change app name
2024-02-22 14:26:45 +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
shreerang6921
01373697f4
Merge pull request #27 from deep-stack/ag-textboxes
Add multiple textboxes to HD Path dialog
2024-02-21 18:30:36 +05:30
564404af45 Remove number limit 2024-02-21 18:18:01 +05:30
9dbe7574d2 Remove lines 2024-02-21 17:51:33 +05:30
16b2ed3bc2 Combines states 2024-02-21 17:49:44 +05:30
956821e4e9 Add multiple textboxes 2024-02-21 17:19:22 +05:30
shreerang6921
c1ca38ff23
Merge pull request #20 from deep-stack/iv-add-account-from-hdpath
[WIP] Create account from hd path given by user
2024-02-21 11:29:31 +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
68eec9cc1a Make review changes 2024-02-20 13:51:12 +05:30
IshaVenikar
7a3ad2823d Store the private keys and paths for all the accounts 2024-02-20 13:47:52 +05:30
IshaVenikar
4aa442b5b1 Make review changes 2024-02-20 13:44:25 +05:30
IshaVenikar
a3c434178b Add a global counter for eth and cosmos 2024-02-20 13:44:22 +05:30
IshaVenikar
25f9243d85 Create a function to add eth or cosmos account from hd path 2024-02-20 13:43:36 +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
1bde70b7d6 HDPath display 2024-02-20 12:32:54 +05:30
IshaVenikar
ad42b74841 Integrate functions 2024-02-20 12:31:43 +05:30
IshaVenikar
5df584b750 Create addAccount function 2024-02-20 12:11:53 +05:30
IshaVenikar
894829dd9d Create addAccount function 2024-02-20 12:03:42 +05:30
Adwait Gharpure
96c7fedacf
Show Mnemonic on wallet creation (#25)
* Display mnemonic on wallet creation

* Change srp to mnemonic

* Display mnemonic in a grid

* Remove line

* Make review changes

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-19 17:45:31 +05:30
Adwait Gharpure
921327850b
Patch ethers to reduce wallet creation time (#24)
* Patch @ethersproject/pbkdf2 to improve wallet creation time

* Remove line

* Add line to prevent failure

* Remove line

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-19 14:04:06 +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
Adwait Gharpure
a158abac0b
Put reset button at the bottom (#15)
* Put reset button at the bottom

* Review changes

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-15 10:24:34 +05:30
shreerang6921
09a3b9fc75
Integrate functions with UI (#14)
* Add the creatHDWallet function

* Make review changes

* Add signMessage and signEthMessage functions

* Add signCosmosMessage function

* Add resetWallet function

* Add resetWallet function

* Integrate functions with UI

* Add Alerts to react component

* Make review changes

* Add comment in utils file

* Remove lowerCase conversion in signCosmosmessage function

---------

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
2024-02-14 19:14:21 +05:30
Adwait Gharpure
9ab3148aa9
Show account data specific to selected network (#11)
* Add state for selected network

* Make review changes

* Add cosmos signature

* Explicit check for cosmos

* Add dummy method for generating wallet

* Remove logic from component

* Add dummy sign method

* Change network state values

* Use separate file for types

* Add default case to switch

* Use consistent method names

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-14 13:45:02 +05:30
Adwait Gharpure
f026d9345f
Select network after creating wallet (#10)
* View dropdown on creating wallet

* Use separate component for network dropdown

* Fix imports

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-13 16:47:39 +05:30
Adwait Gharpure
242eec1104
Add new page for signing message (#8)
* Add navigation

* Remove navigation

* Change accordian title

* Add page to sign message

* Call sign page on button click

* Change variable name

* Change app title

* Change create button color

* Delete Cosmos component

* Fix imports

* Add line

* Change sign message title

* Ask for confirmation before resetting wallet

* Make review changes

* Hide dialog on clicking outside

* Change dialog options

* Make review changes

* Remove import

* Change title

* Change default state

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-13 15:45:57 +05:30
shreerang6921
cab9ec6e91
Add react-native-paper ui library (#7)
* Add ui library

* Replace alert with dialog on wallet creation

* Add review changes

* Add semicolon

* Remove comment

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-12 18:51:03 +05:30
shreerang6921
bd2e348c19
Use first child node as primary account (#6)
Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-12 11:42:47 +05:30
shreerang6921
6f476a3ac1
Use library to have secure random source in react native environment (#5)
* Add library to provide secure random source to ethers

* Add semicolon

* Keep imports together

* Add comment for react-native-get-random-values

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-09 11:53:58 +05:30
shreerang6921
3d40de966d
Generate wallet and sign message (#4)
* Store mnemonic and private key seperately

* Change variable names

* Refactor code in seperate components

* Display wallet details

* Remove unnecessary imports

* Make review changes

* Add method to reset wallet

* Make component self closing

* separate imports

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-02-08 18:42:30 +05:30
shreerang6921
5dd97e3860
Generate HD wallet and sign message (#3)
* Generate ethers wallet

* Store wallet private key and mnemonic using react-native-keychain

* Add semicolons

* Edit ui heading

* Make review changes

* Use consistent pattern for functions

* Add method to sign message

* Change title

* Improve signing time

* Hide button on wallet initilisation

---------

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