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
77adb22535
refactor: update ETH/Optimism Kovan to Goerli in Sign v2 examples ( #66 )
2022-10-06 13:42:04 +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
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
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
Celine Sarafa
31ec2ecb9d
Feat/make dapp nextjs ( #41 )
2022-08-08 11:32:24 +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
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
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
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
Ben Kremer
f1e69504a0
fix(dapp-v2): ensures thrown errors bubble to RPC result modal
...
Fixes #10
2022-03-18 11:54:26 +01:00
Ben Kremer
59b9eb5867
refactor(dapp-v2): separates chainData
into own context/hook
2022-03-17 16:56:54 +01:00
Ben Kremer
6b14e13eaf
refactor(dapp-v2): use enums for default chain methods
2022-03-17 16:21:47 +01:00
Ben Kremer
c4759249b6
refactor(dapp-v2): rename resetApp
-> reset
2022-03-17 15:02:23 +01:00
Ben Kremer
863e0f8bf8
feat(dapp-v2): integrates solana + RPC methods
2022-03-17 11:08:47 +01:00
Ben Kremer
86ef897b4c
chore(config): adds solana network data and metadata
2022-03-16 16:26:00 +01:00
Ben Kremer
2b695af9f0
fix: allows rejected eth_sendTransaction call to bubble to handler
...
Fixes: https://github.com/WalletConnect/walletconnect-monorepo/issues/854
There was a superfluous try/catch here which caused the rejection to be
logged and then continue instead of throwing and allowing the
JsonRpcHandler wrapper to handle the promise rejection.
2022-03-14 11:11:16 +01:00
Ben Kremer
929779f213
fix(dapps): aligns EIP712 example with the one used in spec
...
Reference: https://eips.ethereum.org/EIPS/eip-712
2022-03-10 12:04:09 +01:00
Ben Kremer
1998be6295
refactor(dapp-v2): use existing onSessionConnected
handler for session_updated
2022-03-04 10:30:08 +00:00
Ben Kremer
57e991f56a
fix(v2-dapp): handle CLIENT_EVENTS.session.updated
event
2022-03-04 10:21:15 +00:00
Ben Kremer
d91d05d559
fix(react-dapp-v2): fixes accessing of result.signature
on cosmos RPC
2022-03-01 13:56:47 +00:00
Ben Kremer
7e76cb79d1
fix(api): use /account-balance
endpoint instead of /account-assets
...
There seems to be a weird race condition on the `/account-assets`
endpoint when handling two different requests for the same chainId.
Reproduction:
https://codesandbox.io/s/ethereum-api-race-condition-repro-f24x4t?file=/src/index.js
2022-02-21 17:53:11 +01:00
Ben Kremer
3c2684f851
refactor(dapp): support signing from different addresses on same network
2022-02-21 11:45:15 +01:00
Ben Kremer
154e05afa7
refactor: use web3Provider.listAccounts()
2022-02-18 10:51:35 +01:00
Ben Kremer
033cf6a585
fix: simplifies handling deleted session
2022-02-16 14:28:24 +01:00
Ben Kremer
5ea671281f
refactor: updates eth_signTypedData
example
2022-02-16 14:12:02 +01:00
Ben Kremer
f5814d4d1a
feat: adds eth_sign
and eth_signTransaction
examples
2022-02-16 14:05:12 +01:00
Ben Kremer
f5a0598ef1
chore: removes unused param
2022-02-10 17:31:36 +01:00
Ben Kremer
fa72dd6577
refactor: rename fetching
-> isFetchingBalances
2022-02-10 17:16:08 +01:00
Ben Kremer
2b25de2f30
refactor: renames loading
-> isInitializing
2022-02-10 17:12:38 +01:00
Ben Kremer
3bc76a24c0
refactor(client): creates separate namespace/methods getters
2022-02-10 17:08:46 +01:00
Ben Kremer
02e3b8861e
docs: method annotations
2022-02-10 17:08:22 +01:00
Ben Kremer
bb744c48c5
refactor: rename testnet localStorage helpers
2022-02-10 16:53:46 +01:00
Ben Kremer
c058d500d0
fix: adds missed underscore
2022-02-10 15:20:14 +01:00
Ben Kremer
40f7cab8fc
chore: clean up ordering in ClientContext
2022-02-10 14:37:00 +01:00
Ben Kremer
1a2e5098c3
refactor: creates getAddressByChainId
helper fn
2022-02-10 14:34:32 +01:00
Ben Kremer
601f16b171
chore: remove old class-based App component
2022-02-10 11:45:19 +01:00
Ben Kremer
22c0a7c456
fix: adds missing setLoading toggle
2022-02-09 13:53:56 +01:00
Ben Kremer
1ca7a5cfd1
feat: adds back resetApp
2022-02-09 13:45:30 +01:00
Ben Kremer
d33bf9dcd1
refactor: standardises cosmos RPC methods alongside EIP155 ones
2022-02-09 13:45:30 +01:00
Ben Kremer
95751d6efb
refactor: clean up client init
2022-02-09 13:45:30 +01:00
Ben Kremer
067aca31b8
refactor: simplifies onSessionConnected
2022-02-09 13:45:30 +01:00