Commit Graph

15 Commits

Author SHA1 Message Date
shreerang6921
2ccb396889
Show private key of selected account (#117)
* Display private key of selected account

* Update dialog box UI

* Refactor show private key dialog

* Refactor code to use context variables
2024-07-04 18:45:13 +05:30
IshaVenikar
6d80f64a10 Implement Edit network form (#107)
* Add edit network form

* Set selected network when networks are updated

* Disable buttons and add spinner after submitting

* Display previous values in Edit network form

* Use error msgs form constants file

* Reset default networks on reset
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
IshaVenikar
670d6f4a54 Add form validation for add network form (#101)
* Use zod for validation

* Return to index 0 after deleting network

* Make url optional

* Use form schema according to the selected nw

* Fix type for networks data

* Accept numeric value for coin type

* Fix form type issue
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
shreerang6921
15da99a827 Send back namespaces object based on chains requested by dApp (#94)
* Refactor pairing modal code

* Refactor update session code

* Reset state after session proposal is approved

* Refactor approve and update session

* Remove unused helper methods

* Remove completed todos
2024-04-25 17:08:27 +05:30
IshaVenikar
33147bee0d Auto-populate cosmos chain details from chain id (#95)
* Autplopulate cosmos chain details from chain id

* Display rpc url

* Remove assert

* Make review changes

* Use watch to trigger function

* Use usewatch
2024-04-25 17:08:27 +05:30
IshaVenikar
e879fe8e46 Implement remove network functionality for added networks (#93)
* Set current network to ethereum after removing network

* Display confirm dialog after deleting network

---------

Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>
2024-04-25 17:08:27 +05:30
IshaVenikar
da4bed9c4b Send networks data to dapp (#87)
* Send networks data to dapp

* Reflect switching tabs in dapp dropdown

* Fix current network name not showing in Dapp

* Modify variable names

* Modify method and variable names

* Modify networks type

* Use selectedNetwork state and networkId

* Fix networks context states

* Add separate file for network methods
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
IshaVenikar
23fa5415ae Update namespace after adding network (#81)
* Update namespace

* Add eth accounts

* Add isSubmitted

* Send namespace to dApp based on selected network while pairing

* Send transactions on configured chain

* Fix modal UI

* Use namespace by default for chainId

* Use ethereum mainnet as default chain

* Use method names from constants file

* Combine required and optional namespaces

* Fix chainId

* Fix networksData

* Remove cosmos denom

* Remove todo

* Use lowercase denom

---------

Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>
2024-04-25 17:08:27 +05:30
shreerang6921
703ea72c1f Add functionality to configure EVM networks (#74)
* Configure EVM networks

* Display added EVM networks in network drop down

* Add network for configured networks
2024-04-25 17:08:27 +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