Commit Graph

17 Commits

Author SHA1 Message Date
shreerang6921
b1a0831e78 Take gas limit and fees values from user while approving transaction (#109)
* Take gas limit and fees from user

* Update text input ui

* Use gasPrice from networks data

* Use default gas limit from env

* Use default gas price if not found in registry

* Remove appended denom in gas price

* Use gas limit from env

* Show error dialog when transaction fails

* Calculate gas limit and gas price if not received from dapp

* Update example env

* Improve syntax

---------

Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
2024-04-25 17:08:27 +05:30
shreerang6921
e98dac7a5b Fix spinner not showing up on starting wallet (#102)
* Fix spinner not showing up on starting wallet

* Remove unnecessary dependancies
2024-04-25 17:08:27 +05:30
shreerang6921
b947dd1151 Use configured coin type for creating accounts (#100)
* Use configured coin type for creating accounts

* Resolve eslint warnings
2024-04-25 17:08:27 +05:30
IshaVenikar
2adfffba55 Reset Add Network form after switching the network (#97)
* Reset form upon switching nws

* Modify gitignore

* Fix undefined field error

* Add env steps in readme

* Remove .env file

* Fix indentation in readme

* Disable buttons while loading (#99)

* Disable buttons while loading

* Disable pairing modal button

* Format code
2024-04-25 17:08:27 +05:30
IshaVenikar
984cad8e48 Fix intents path to use namespace and chainId (#92) 2024-04-25 17:08:27 +05:30
shreerang6921
3809ce88b1 Update keystore data structure (#88)
* Update keystore data structure (#83)

* Update create wallet and retrieve accounts functionality for updated data structure

* Refactor accounts state

* Use constant variable for cosmos

* Update add accounts incrementally and with custom HD path for updated data structure (#85)

* Change data structure

* Reset wallet change

* Fix signEthMessage

* Fix sign request

* Fix pairing with laconic pay dApp and sending tokens

* Add accounts to configured networks

* Update add account from hd path flow

* Handle review changes

---------

Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>

* Remove network type state

* Refactor create wallet code (#89)

* Refactor create wallet code

* Create cosmos accounts with correct address prefix

* Use networks data from state while creating wallet

* Refactor code and add network id in types (#91)

* Refactor add new networks component

* Add selected network state in context

* Remove returning account from create wallet

---------

Co-authored-by: IshaVenikar <145848618+IshaVenikar@users.noreply.github.com>
2024-04-25 17:08:27 +05:30
IshaVenikar
94bd8b6480 Persist network data (#84)
* Store new network data

* Store default networks in keystore (#86)

* Add default nws in keystore

* Fix duplicate networks

* Display correct currency symbols for eth and cosmos tx

* Fix currency display

* Use wei for eth
2024-04-25 17:08:27 +05:30
shreerang6921
e4fe88939c Add support to configure networks (#76)
* Add support to configure cosmos networks

* Fix intents functionality for configured networks

* Add address prefix while initializing stargate client

* Remove unnecessary functions

* Update style for add network page

* Handle review changes

* Fix eth accounts not showing up on configured eth chain
2024-04-25 17:08:27 +05:30
Adwait Gharpure
2e18397a95 Navigate to homescreen on approving sign request (#75)
* Navigate to homescreen on approving sign request

* Add spinner to button on approve

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-04-25 17:08:27 +05:30
IshaVenikar
0dea0082b4
Display buttons above scroll in laconic-wallet approve screens (#72)
* Buttons outside scroll

* Fix ui for signRequest page

* Remove todo
2024-04-01 18:00:40 +05:30
Adwait Gharpure
d50cfbfe84
Add support for displaying svg images (#71)
* Add support for SVG images

* Fix imports

---------

Co-authored-by: Adw8 <adwait@deepstacksoft.com>
2024-04-01 17:21:01 +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
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
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
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