Commit Graph

79 Commits

Author SHA1 Message Date
IshaVenikar
ac18a43fab
Disable button for approve tx (#70) 2024-03-28 16:51:58 +05:30
neerajvijay1997
290ea0097c
UI Improvements (#65)
* Rebase ui branch

* Fix scrollview (#69)

* Add loading prop to button

* Change function reference

* Remove fragment

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
Co-authored-by: IshaVenikar <145848618+IshaVenikar@users.noreply.github.com>
2024-03-28 16:23:12 +05:30
shreerang6921
b134c957f6
Fix add accounts method (#68) 2024-03-28 14:21:49 +05:30
IshaVenikar
cc3d7f708f
Add spinner for tx after being approved (#67)
* Add spinner for tx

* Change text color
2024-03-28 13:36:14 +05:30
Adwait Gharpure
4eecdb7e4c
Support SIWE using selected account (#61)
* Sign in using selected address

* Use optional namespace

* Merge namespaces and use combined namespace

* Add todo for lodash merge

* Use walletConnect util buildApprovedNamespaces while approving sessions

* Lint fixes

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
2024-03-28 11:10:55 +05:30
shreerang6921
3a2087b389
Add method to send cosmos tokens (#66)
* Add support to send cosmos tokens

* Fix approve transaction page ui

* Take gas amount from dApp

* Handle review changes

* Add check while creating stargate client

* Remove unnecessary checks

* Remove unnecessary states

* Fix balance showing undefined while loading
2024-03-27 18:09:01 +05:30
Adwait Gharpure
b275f376c4
Refactor account utils (#64)
* Refactor method in account utils

* Make container height auto

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-22 15:40:43 +05:30
IshaVenikar
0fa793bead
Add new page for approving eth transactions (#63)
* Display funds on signRequest page

* Format balance value

* Display upto 18 digits

* Use useMemo for provider

* Display balance in wei

* Make UI changes

* Make review changes

* Add page to approve eth transactions

* Update approve transaction page ui

* Update balance unit display

---------

Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>
2024-03-21 16:09:25 +05:30
shreerang6921
3cd4c51515
Add support for eth send transaction method (#62)
* Add support for eth send transaction method

* Add reference to eip155 data file
2024-03-19 11:33:29 +05:30
Adwait Gharpure
fbfd6b9709
Add scroll to pairing modal (#60)
* Add scrolling to pairing modal

* Set wallet connect state empty before populating

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-18 15:08:30 +05:30
Adwait Gharpure
8ed4c33beb
Refactor code for WalletConnect Integration (#59)
* Disconnect pairing request when app is reset

* Move files to respective folders

* Add comments to describe flow

* Add new line

* remove request session context

* Fix imports

* Move hook to folder

* Add undefined type

* Move types to src

* Move util functions to correct files

* Remove typeroots from tsconfig

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-18 10:57:20 +05:30
shreerang6921
63faa74e2c
Remove any type (#57)
* Remove any type for requestEvent parameter

* Handle review changes
2024-03-15 13:50:57 +05:30
Adwait Gharpure
8bd3b4b567
Handle all dapps getting updated on adding accounts (#55)
* Replace QR icon with WC logo

* Change screen title

* Change title

* Display session topic in list item

* Move useEffect to WalletConnectContext

* Disconnect sessions on resetting wallet

* Update dapp session on adding account

* Update sessions inside useEffect

* Clean up code

* Remove question mark

* Handle all dapps getting updated

* Remove index from map

* Move hook to different folder

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-14 13:53:04 +05:30
shreerang6921
e1d75dc4c6
Reject signature request if user goes back from page (#54) 2024-03-13 19:12:50 +05:30
Adwait Gharpure
1f0e8aecd4
Update sessions on adding accounts (#53)
* Replace QR icon with WC logo

* Change screen title

* Change title

* Display session topic in list item

* Move useEffect to WalletConnectContext

* Disconnect sessions on resetting wallet

* Update dapp session on adding account

* Update sessions inside useEffect

* Remove button from toast

* Clean up code

* Remove question mark

* Remove label from snackbar

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-13 19:04:12 +05:30
shreerang6921
2a92e71594
Display decoded message received while using signDirect method (#52)
* Display decoded message received while using signDirect method

* Fix permission dialog not exiting after clicking outside

* Handle review changes

* Remove optional chaining in while checking for signDirect method
2024-03-13 12:02:08 +05:30
Adwait Gharpure
cf197f386f
Display active sessions on walletconnect page (#50)
* Replace QR icon with WC logo

* Change screen title

* Display active sessions

* Change title

* Display sessions on WalletConnect page

* Display session topic in list item

* Fix types

* Add line

* Change message

* Move useEffect to WalletConnectContext

* Disconnect sessions on resetting wallet

* Review changes

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-12 18:23:16 +05:30
shreerang6921
7219162185
Sign message using signDirect method with cosmos accounts (#51)
* Sign message using signDirect method with cosmos accounts

* Add explaination for signDirect method

* Use existing utility function to convert hex string to uint8array

* Handle review changes
2024-03-12 16:47:05 +05:30
shreerang6921
5b6f4e9f61
Sign message with cosmos accounts using signAmino method (#49)
* Add functionality to use cosmos accounts while pairing

* Sign message using cosmos accounts using signAmino method

* Add todo to debug signDirect

* Use cosmos wallet amino method directly

* Add back displaying wallet connect data while pairing

* Reset state for wallet connect data on closing pairing modal
2024-03-12 13:40:34 +05:30
Adwait Gharpure
7f1b2e38ef
Use separate page for walletconnect (#48)
* Add function to disconnect session

* Replace QR icon with WC logo

* Use separate page for walletconnect

* Change screen title

* Make review changes

* Make walletconnect page empty

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-11 16:14:08 +05:30
c6128f222c Load config values from env (#1)
Part of https://www.notion.so/WalletConnect-integration-84b2f7377d514d7ead698bebd84f1e31

- Use `react-native-config` library

Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>
Reviewed-on: cerc-io/laconic-wallet#1
2024-03-08 06:54:16 +00:00
59be46c5f0 Update intent URL (#2)
Part of https://www.notion.so/WalletConnect-integration-84b2f7377d514d7ead698bebd84f1e31

- Update intent URL to https://wallet.laconic.com/
- Move navigation to index.js

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
Reviewed-on: cerc-io/laconic-wallet#2
2024-03-08 06:14:44 +00:00
Adwait Gharpure
4b0ed0ba9f
Add toast on session approval (#46)
* Add toast on session_approval

* Handle case where request icon is null

* Change camera permission message

* Fix comments

* Fix import order

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-07 19:28:30 +05:30
Adwait Gharpure
d7ebdd6063
Remove QRScanner.tsx (#45)
* Remove QRScanner component

* Remove unused variables

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-07 19:12:22 +05:30
shreerang6921
9ab8c2ce4f
Display details coming from dapp in sign request page (#44)
* Add qr-code scanner button in homescreen header

* Display dapp details on sign request page

* Center details coming from dapp

* Remove request event state from request context
2024-03-07 16:02:35 +05:30
Adwait Gharpure
d44d8a3092
UI changes for wallet-connect integration (#43)
* Change button position

* Add check for counterId

* Display complete uri

* Update readme

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-07 15:28:12 +05:30
Adwait Gharpure
05be6008de
Use page for handling sign requests (#42)
* Use sign request page instead of modal

* Fix context

* Remove multiple if statements

* Change metadata

* Remove sign modal

* Make review changes

* Remove state

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-03-07 12:44:05 +05:30
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