* Check for unsupported namespace
* Add check for common walletchains and networks chains
* Format code
* Display unsupported chains
* Display Dapp info in modal
* Refactor code
* Reject request if chains are not supported
* Reject sessions
* Remove isVisible state
* 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
* Auto-populate eth data from json file
* Modify variable names
* Clear fields if chainId is not found
* Format code
* Fix indentation
* Use reset to clear values
* Exclude chain id while resetting
* Make review changes
* Fix format
* Autplopulate cosmos chain details from chain id
* Display rpc url
* Remove assert
* Make review changes
* Use watch to trigger function
* Use usewatch
* Set current network to ethereum after removing network
* Display confirm dialog after deleting network
---------
Co-authored-by: Shreerang Kale <shreerangkale@gmail.com>
* 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
* 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>
* 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
* 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>
* 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
* 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>
* 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>
* 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>
* 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>
* 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
* 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>
* 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
* 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
* 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>
* 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>
* 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