Commit Graph

271 Commits

Author SHA1 Message Date
Cali
649cf28159
fix(error-handling): close modal on reject and fix overflow error (#147)
* fix(error-handling): improve auth examples error handling & close modal on auth request rejection

* fix(bignum-overflow): convert bignumber to string to avoid overflow
2023-04-05 12:03:28 +03:00
AndreasGassmann
9bf2b02602
Add Tezos Support (#127)
* feat(): add tezos

* feat(dapp): add tezos support

* feat(): remove unused project

* feat(): update logo

* feat(): add tezos sign modal

* feat(): remove unimplemented method

* feat(tezos): add send and sign support

* feat(tezos): add rpc

* Update wallets/react-wallet-v2/src/views/SessionProposalModal.tsx

Co-authored-by: Ben Kremer <contact@bkrem.dev>

* feat(): share all accounts

---------

Co-authored-by: Ben Kremer <ben@walletconnect.com>
Co-authored-by: Ben Kremer <contact@bkrem.dev>
2023-03-31 10:35:53 +02:00
Celine Sarafa
b45f4369c0
Use standalone modal (#79)
* Use standalone modal

* Set project id

* chore(deps): update deps

* chore(w3m-standalone): use web3modal standalone with auth-client

* fix(deps): update web3modal to v2.2.2

* fix(typescript): revert to 4.9.5

* chore(remove-deps): remove unused dependencies and global declaration

---------

Co-authored-by: Cali93 <armut.cumaali@gmail.com>
2023-03-28 09:58:18 +03:00
Gancho Radkov
e79ae76a8d
chore: bump dependencies ethers dapp (#143)
* chore: updates dependencies

* fix: projectId ts undefined

---------

Co-authored-by: Gancho Radkov <ganchoradkov@gmail.com>
2023-03-24 12:49:39 +01:00
Ben Kremer
49198f475a chore(auth): update auth-clients to latest 2023-03-22 15:24:05 +00:00
0xAsimetriq
bd60654e16
chore: Update web3modal (#134)
* Update web3modal

* Update dapps/react-dapp-v2/src/contexts/ClientContext.tsx

Co-authored-by: Ben Kremer <ben@walletconnect.com>

---------

Co-authored-by: Ben Kremer <ben@walletconnect.com>
2023-03-14 16:46:16 +02:00
Ben Kremer
2eb66d182d chore(deps): update canonical dapp/wallet to 2.4.10 2023-03-14 15:05:37 +01:00
Ben Kremer
c74602bccf chore(deps): update canonical dapp/wallet to 2.4.9 2023-03-13 12:01:00 +01:00
Ben Kremer
a90282d67d chore(deps): update canonical dapp/wallet to 2.4.8 2023-03-10 12:15:46 +01:00
Ben Kremer
592a6e097a chore: fix missing prettier formatting 2023-03-09 14:23:52 +01:00
Ben Kremer
4bb9940a09
fix(dapp): removes reliance on caip-api pkg for blockchain data (#123)
See: https://walletconnect.slack.com/archives/C03RME3BS9L/p1677021657070509
2023-02-22 18:01:39 +01:00
Ben Kremer
8de8339179 chore(deps): update v2 dapp/wallet to latest @walletconnect/* deps 2023-02-22 17:08:00 +01:00
crypblizz
9347d1a20e
chore: update web3modal-standalone and signClient for react-dapp-v2 (#121) 2023-02-21 14:38:22 +01:00
Ben Kremer
9b6dfc366b
chore(auth): update to auth-client@2.0.3, use rpc.walletconnect.com (#116) 2023-02-16 16:04:36 +01:00
vanes
8927cddaf9
Add Emit Function (#113)
Co-authored-by: Ben Kremer <ben@walletconnect.com>
Co-authored-by: Vanessa Mercado <finessevanes@Vanessas-MacBook-Pro.local>
2023-02-15 10:54:07 +01:00
Ben Kremer
4f8d26dda4
chore: update canonical dapp/wallet to @walletconnect/*@2.3.3 (#110)
* chore: update @walletconnect/* deps to 2.3.3

* fix(types): clean up `namespace.extension` references
2023-02-02 20:03:56 +07:00
Gancho Radkov
0fd85d199a
feat: cosmos example dapp (#102)
* feat: updates cosmos example dapp to latest "@walletconnect"

* refactor: uses default methods from `constants`

* chore: updates dependencies
2023-01-24 09:57:07 +02:00
Ben Kremer
a959f1e766 chore(deps): updates canonical dapp/wallet to @walletconnect/*@2.2.1 2023-01-17 15:26:19 +07:00
Ben Kremer
e4fdfc6337 chore(deps): updates canonical dapp/wallet to @walletconnect/*@2.2.0 2023-01-06 11:00:55 +01:00
Ben Kremer
609a3239c6 fix(dapp-v2): ensure dapp always resets on attempted disconnect 2022-12-22 11:42:33 +01:00
Ben Kremer
5c1092b9ef chore: yarn.lock 2022-12-22 11:42:25 +01:00
Gancho Radkov
c7890ae0b1
fix: dapps metadata (#96)
* fix: metadata to react-dapp-v2

* fix: metadata react app with ethers

* fix: metadata react app with web3

* feat: adds web3modal to web3 example dapp

* feat: adds web3modal to ethers example dapp
2022-12-22 11:34:36 +02:00
myzykj
a6ca910a6f
Add Tron Chain to the Dapp example and wallet (#86) 2022-12-21 13:32:39 +01:00
Kathy Luo
5817d5e536
fix: eth_signTransaction signer verification for Celo (#91) 2022-12-21 10:15:59 +01:00
Gancho Radkov
6aabae1762
feat: auth wallet multi address (#93)
* feat: updates auth wallet to be multi address compatible

* chore: updates `auth` to v2.0.0

* chore: updates `react-dapp-auth` to auth latest

* chore: updates `vue-dapp-auth` to auth latest
2022-12-16 13:43:40 +02:00
Ben Kremer
27bd944c32
refactor(dapp-v2): upgrade web3modal to 2.0.0-beta.8 (#89) 2022-12-06 17:30:55 +01:00
Ben Kremer
c24cf15468 chore(deps): update dapp/wallet to 2.1.4 2022-11-25 15:31:56 +01:00
Hamid Alipour
78c6f3dd7b
refactor(polkadot): replace scale encoded tx with JSON payload (#77) 2022-11-21 11:24:01 +01:00
Ben Kremer
99ef432c76
refactor(react-dapp-v2): replaces legacy qrcodeModal with web3modalV2 (#78) 2022-11-15 10:44:02 +01:00
Pavel Yankovski
7e850d66c4
feat(vue-dapp-auth): Add example dapp on Vue 3 (#76)
Co-authored-by: Ben Kremer <contact@bkrem.dev>
2022-11-14 18:13:55 +01:00
Ben Kremer
cb821ea5e0 chore(deps): updates v2 dapp/wallet to @walletconnect/*@2.1.3 2022-11-14 13:59:41 +01:00
Ben Kremer
cc46f67b2d fix(dapp): use plain byte array for instruction.data to match live solana dapps 2022-11-14 11:55:46 +01:00
Ben Kremer
4a6d13e422 chore(deps): update to auth-client@1.0.1 2022-11-11 16:28:45 +01:00
Ben Kremer
69afb6b3e3 chore(deps): updates v2 wallet/dapp example to @walletconnect/*@2.1.1 2022-11-10 14:37:15 +01:00
Ben Kremer
3d03e9c6bc Revert "refactor(react-dapp-v2): replaces legacy qrcodeModal with web3modalV2"
This reverts commit 2083b4ae41.
2022-11-08 11:42:54 +01:00
Ben Kremer
2083b4ae41 refactor(react-dapp-v2): replaces legacy qrcodeModal with web3modalV2 2022-11-08 10:40:42 +01:00
Gancho Radkov
49920d0453
feat: examples dapps update (#72)
* feat: updates example dapp with ethers to use `universal-provider`

* feat: updates example dapp with web3 to use `universal-provider`

* fix: sets `paramsString` and `address` to lower case when searching for match

* chore: yarn lock

* refactor: rm `outdated` warning

* refactor: standardize event logging

* refactor: rm logs

* refactor: adds `next` to `ethers` dapp

* chore: rm old files

* refactor: adds next to web3 example

* chore: test deploy vercel

* chore: remove console log

* chore: to trigger deployment

* Revert "chore: to trigger deployment"

This reverts commit bc7712780a101f0152c20ce4eca4d8d117d8eaa7.

* feat: updates readmes

Co-authored-by: crypblizz <45455218+crypblizz8@users.noreply.github.com>
2022-11-08 10:32:07 +02:00
Ben Kremer
2b19540a5b chore(deps): updates canonical dapp/wallet to 2.1.0 2022-11-01 17:05:44 +01:00
Radu Mojic
907d61cb50
feat: adds Elrond support (#67) 2022-10-31 11:21:33 +01:00
Ben Kremer
56ae6fa032 chore(deps): upgrades auth examples to auth-client@1.0.0 2022-10-24 17:55:36 +02:00
Ben Kremer
5f484ae65d chore(deps): upgrade canonical wallet/dapp example to 2.0.0 2022-10-24 16:14:48 +02:00
Ben Kremer
b31232f2f6 style: run prettier on all files 2022-10-18 12:37:52 +02:00
amirsaran3
fcec9e477a
Added Near Protocol to examples (#59)
Co-authored-by: Ben Kremer <contact@bkrem.dev>
2022-10-18 12:31:08 +02:00
Ben Kremer
270a6204ae chore(deps): updates auth examples to auth-client@0.4.0 2022-10-14 15:30:11 -05:00
Ben Kremer
77adb22535
refactor: update ETH/Optimism Kovan to Goerli in Sign v2 examples (#66) 2022-10-06 13:42:04 +02:00
Ben Kremer
9b7950fc4a chore(deps): updates sign v2 examples to 2.0.0-rc.4 2022-10-06 11:59:11 +02:00
crypblizz
2fb6ad1370
Feat/region relayer dropdown (#58)
* init skeleton

Created the barebones of the Dropddown and data passing through ClientContext

* Fix State with React-Select

* Draft: Until endPoints are functioning

* Resolved for condition race

Still need to fix the TS typing

* Remove React-Select due to TS bug.

Rewrote with Vanilla Select + Options

* Update ClientContext.tsx

Small fixes and removing old code

* Small fixes + revert yarn lock due to react-select

* yarn upgrade

* Settings hidden at the bottom
2022-09-20 15:13:21 +02:00
Ben Kremer
2cf644ec7a chore(auth): update examples to 0.3.2 2022-09-17 13:08:11 +02:00
Ben Kremer
9344954415 feat(auth-dapp): adds hasInitialized logic 2022-09-17 13:08:11 +02:00
Ben Kremer
e8c7bf9c0c refactor(auth-dapp): narrow type on auth_response handler 2022-09-17 13:08:11 +02:00
Ben Kremer
44d11ddfbd chore(auth): update examples to 0.3.1 2022-09-17 13:08:11 +02:00
Ben Kremer
8146e37fc6
docs(auth): ensure auth dapp/wallet readmes are relevant (#63)
* docs(auth): update wallet readme

* docs(auth): update dapp readme
2022-09-15 19:50:52 +02:00
Celine Sarafa
207c6871ba
Send actual domain data (#62) 2022-09-15 19:24:26 +03:00
Ben Kremer
ec908fc6c4
feat(auth): use generateNonce util fn (#61) 2022-09-15 17:59:54 +02:00
Ben Kremer
44c285dde8 chore(deps): updates auth examples to auth-client@0.3.0 2022-09-15 10:21:26 +02:00
Ben Kremer
8f0964ab1e chore(deps): updates auth examples to auth-client@0.2.0 2022-09-14 11:52:34 +02:00
Celine Sarafa
ff7336111d
Reskin the dapp to match the new design (#55)
* Reskin the dapp to match the new design

* Update theme for button

* Update auth package

* Add transition for smoother darklight mode

* Update styling to be more responsive

* Match to design

* Remove empty whitespace
2022-09-13 12:43:58 +03:00
Ben Kremer
cb81224e53 chore(deps): update sign examples to sign-client@2.0.0-rc.3 2022-09-12 12:30:46 +02:00
Celine Sarafa
5df9bd7a1f
Updated dapp (#56) 2022-09-09 15:23:36 +03:00
Ben Kremer
34efd70cd7 chore(deps): update auth-client to 0.1.8 2022-09-08 14:05:23 +02:00
Ben Kremer
18847f7f15 chore(deps): update auth-client to 0.1.7 2022-09-07 11:26:32 +02:00
Ben Kremer
7e52f20c5f fix(auth-dapp): fixes incorrect chainId param 2022-09-06 15:24:29 +02:00
Ben Kremer
d04c2e08a1 chore(deps): update auth-client to 0.1.6 2022-09-06 15:24:23 +02:00
Ben Kremer
5f982630e1 chore(deps): update auth-client to 0.1.5 2022-09-06 14:01:02 +02:00
Ben Kremer
0f86f6bedb chore(deps): update react-dapp-auth to auth-client@0.1.4 2022-09-06 13:47:25 +02:00
Ben Kremer
c032f54570
chore(deps): update to auth-client@0.1.3 for auth dapp and wallet (#53)
* chore(deps): update auth-client to 0.1.3

* fix: adds metadata for dapp

* chore(deps): update wallet to auth-client@0.1.3
2022-09-06 11:54:45 +02:00
Ben Kremer
e86a6ef2d6 chore(dapps): adds .env.local.example file for react-dapp-auth 2022-09-06 10:07:46 +02:00
Celine Sarafa
b15e0c6544
Fix add projectid (#52)
* Fix add projectid

* Add project id prefix
2022-09-05 15:17:24 +03:00
Celine Sarafa
aedddbcbdc
Remove session from nav for auth (#51)
* Removed session from nav

* Add note that you can copy the qrcode

* Moving WC icon to the right
2022-09-05 10:50:21 +03:00
Celine Sarafa
5a438ac92a
feat/add auth demos (#49)
* Add auth dapp

* Add initial auth wallet

* Remove unusused files

* Refactor code

* Switched both to NPM, use npm package
2022-09-02 12:34:03 +03:00
Ben Kremer
8db9560b72 fix(config): use next.js appropriate projectId env var 2022-09-01 09:55:17 +02:00
Celine Sarafa
54f050b2e3
Fix incorrect env var ref (#47)
* Fix incorrect env var ref

* Fix project id env var
2022-08-25 17:13:34 +03:00
Ben Kremer
659857eb41 chore(deps): update @walletconnect/* to rc.2 2022-08-15 15:15:21 +02:00
hamidra
1406ce3999
Add Polkadot RPCs to the Dapp examples and wallet (#44)
Co-authored-by: Ben Kremer <contact@bkrem.dev>
2022-08-11 11:43:12 +02:00
crypblizz
6a77191dd3
feat(dapp): adds github link (#43) 2022-08-10 15:26:46 +02:00
Ben Kremer
9509f47103 chore(deps): update to 2.0.0-rc.1 2022-08-08 11:40:14 +02:00
Celine Sarafa
31ec2ecb9d
Feat/make dapp nextjs (#41) 2022-08-08 11:32:24 +02:00
Ben Kremer
c87a77ef10 canary 2.0.0-6de2113.0 2022-08-04 18:29:20 +02:00
Ben Kremer
6c23356a55 refactor(dapp): remove dependence on ethereum-api.xyz, use individual RPCs 2022-08-04 11:30:02 +02:00
Ben Kremer
a639b6e447 chore(deps): upgrade to rc.0 2022-07-22 22:50:27 +02:00
Ben Kremer
be75590253 chore(deps): upgrade dapp to beta.103/rc.0 canary 2022-07-15 16:24:29 +07:00
Ben Kremer
bd34004248
chore(deps): upgrade dapp to beta.102 (#37) 2022-07-12 15:03:48 +07:00
Ben Kremer
248d60e516 fix: update known active pairings after session connects 2022-07-04 16:41:06 +07:00
Ben Kremer
55249754f5 fix: filter out inactive pairings using client.pairing.getAll 2022-06-21 11:34:05 +02:00
Ben Kremer
4ab000ed05
chore(deps): upgrades primary dapp/wallet examples to beta.101 (#33) 2022-06-16 16:22:34 +02:00
Ben Kremer
1c4c4de242 chore: adds backlink to readme to version display 2022-06-14 18:35:57 +02:00
Ben Kremer
55cdfbf6a6 docs: adds SDK compatibility notices in provider example readmes 2022-05-31 10:48:33 +02:00
Ben Kremer
b01fff837d chore: removes stale with-solana-web3js PoC 2022-05-31 10:48:07 +02:00
Pedro Gomes
954831538d
Beta 100 (#27)
* update deps

* revert react dep updates

* chore: update deps to beta.50

* fix: get dapp running again up to Client.connect()

* save progress

* feat(debug): sets up a debug peerClient as responder

* refactor: remove more hardcoded example connect params

* fix: gets `checkPersistedState` working again

* fix: gets client.disconnect + effects working again

* feat: integrates `session_update` handling with namespaces

* fix: remove hardcoded `chains`

* stash progress

* Establish session

* save progress - established session with example dapp

* refactor: rewrite namespace helpers to handle `requiredNamespaces` (#23)

* fix: re-enables restoring persisted session

* refactor: remove debug peerClient code

* fix: re-enables restoring persisted pairings

* Save progress

* fix: re-enables pairing modal, connecting from existing pairing

* Update modals to handle new payloads

* fix(types): fix Metadata typing

* chore(deps): upgrade to beta.53

* refactor: adjusts event handler args for beta.53 `session_update`

* stash

* fix: adds missing keys for `DEFAULT_EIP155_EVENTS` enum

* stash

* chore: update comment for client.request typing FIXME

* feat: integrate beta.54

* feat: integrate beta.55, removes FIXME comments for client.request types

* chore: clean up unused import

* fix: log session_ping event

* fix: log incoming `session_event`

* chore: upgrade client@2.0.0-beta.55 -> sign-client@2.0.0-beta.56

* chore: integrate beta.57

* New beta changes (#24)

* smal lchange

* fix types

* Add package info

* format empty methods / events

* Update deps

* adjust styles

* attempt ios layout fix

* Revert "attempt ios layout fix"

This reverts commit f0176f2ef52f338980ee54e75a767b3d452733f2.

* beta.54

* fix build

* Update to beta 55

* Add todos

* update wallet to beta 56

* Update mumbai rpc add logger

* update to beta 57

* chore: adds note on beta.100 compatibility

* plock

* beta.58

* beta.100;

Co-authored-by: Ilja <idaderko@gmail.com>
Co-authored-by: Ben Kremer <ben@walletconnect.com>
Co-authored-by: Ilja <IljaDaderko@users.noreply.github.com>
2022-05-30 11:46:15 +02:00
Ben Kremer
3a2ac70f1f fix(dapps): normalize addresses to lowercase when validating signatures
fix(dapp-v2): normalize addresses to lowercase when validating signatures

chore: updates yarn.lock

fix(with-ethers): normalize addresses to lowercase for sig validation

fix(with-web3js): normalize addresses to lowercase for sig validation

Fixes #18
2022-04-08 17:09:37 +02:00
Ben Kremer
f06ba323ac feat(dapp-v2): adds cosmos signature verification (#6) 2022-04-04 16:04:11 +02:00
Ben Kremer
32afbb373c fix(cosmos-provider): handle possibly undefined address 2022-04-04 15:51:15 +02:00
Ben Kremer
b8515abe6e chore(deps): update to cosmos-wallet@1.2.0 in v2-cosmos-provider 2022-04-04 13:52:12 +02:00
Ben Kremer
cda29b7ffd Revert "Revert "Cosmos signature verification (#6)""
This reverts commit dad29d7611.
2022-04-04 13:49:32 +02:00
Chad Jackson
50881924fa
update broken link (#15) 2022-03-29 15:37:09 +02:00
Ben Kremer
5d8245b8f1 fix(with-web3js): resolves EthereumProvider type error fixed by 2.0.0-beta.26 2022-03-29 12:12:05 +02:00
Ben Kremer
a82034fefd chore(deps): upgrade dapp examples to 2.0.0-beta.26 2022-03-29 11:51:10 +02:00
Ben Kremer
80e97e5163 feat: adds sig verification for eth_signTransaction 2022-03-21 13:20:53 +01:00
Ben Kremer
5097f42b7f chore: adds link to discussion on omitting EIP712Domain validation 2022-03-21 11:50:43 +01:00
Ben Kremer
1f3af8763c refactor(dapp-v2): use ethers.utils.verifyMessage 2022-03-21 11:47:30 +01:00