Commit Graph

25 Commits

Author SHA1 Message Date
Adw8
25b03b8c88 Update registry-sdk version 2024-07-26 20:02:19 +05:30
9f5f6c2361 Upgrade registry-sdk package version 2024-07-16 14:32:45 +05:30
Adwait Gharpure
d75260d3dc
Add polyfills for url and https packages (#120)
* Add polyfills for url and https packages

* Use http-browserify as polyfill
2024-07-09 14:36:59 +05:30
Adwait Gharpure
83723d4086
Add support for sending cosmos transactions (#116)
* Update readme to contain instructions for creating  file

* Add method for sending transaction to chain

* Rename approve transaction component to approve transfer

* Create component for approving transactions

* Display transaction message in Approve transaction component

* Install registry-sdk

* Display gas limit on receiving transaction request

* Add functionality for sending transaction to chain

* Add memo in simulate gas method

* Remove unnecessary TODO

* Display error in dialog box

* Add support for onboarding transaction

* Pass address of signer in wallet connect request from app
2024-07-04 18:36:20 +05:30
shreerang6921
adf9efe6f8
Refactor wallet connect requests (#115)
* Refactor wallet connect requests

* Remove unnecessary data from constants

* Fix dependencies

* Update readme

* Handle review changes
2024-04-29 13:28:55 +05:30
shreerang6921
8c0751f84b Add details to setup wallet connect in readme (#58)
* Add details to setup wallet connect in readme

* Add hyperlinks for wallet connect terms

* Handle review changes

* Add keystore data structure and troubleshooting steps in readme

* Update readme

* Add pre-commit lint hook

* Resolve linter warnings

* Handle review changes

* Fix heading level in readme
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
shreerang6921
5189e8f051
Create a basic react native app (#2)
Co-authored-by: IshaVenikar <ishavenikar7@gmail.com>
2024-02-05 17:18:18 +05:30