Commit Graph

128 Commits

Author SHA1 Message Date
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
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
a54db6ceb2 chore(deps): adds @solana/web3.js 2022-03-16 15:34:07 +01:00
Ben Kremer
9e77f51464 refactor(with-solana): use solanaWallet.verifyMessageSignature 2022-03-16 15:17:59 +01:00
Ben Kremer
b382036c83 feat(with-solana): adds tx sig and message sig verification 2022-03-15 17:19:53 +01:00
Ben Kremer
e78bacd165 chore(with-solana): adds tweetnacl as direct dep 2022-03-15 15:50:52 +01:00
Ben Kremer
8c5e817760 fix(with-solana): use spec-compliant solana_ method prefix 2022-03-15 15:03:27 +01:00
Ben Kremer
c419b83ee5 feat(with-solana): adds sol_signMessage request example 2022-03-15 14:29:39 +01:00
Ben Kremer
42623d493a fix(with-solana): render result.signature for result in modal 2022-03-15 13:45:27 +01:00
Ben Kremer
6f4a52a8d9 fix(with-solana): disable transaction.addSignature temporarily 2022-03-15 13:16:10 +01:00
Ben Kremer
202aa73ab5 fix(with-solana): ensure address is returned for sol_signTransaction 2022-03-15 11:17:55 +01:00
Ben Kremer
7550d4e90a fix(with-solana): adds missing transaction.recentBlockhash param 2022-03-15 10:39:34 +01:00
Ben Kremer
f70dec62ef docs(with-solana): adds preview URL and PoC note 2022-03-14 17:54:43 +01:00
Ben Kremer
9b59d1a94e refactor(with-solana): handle multiple pubKeys via mapping 2022-03-14 17:48:46 +01:00
Ben Kremer
081ae11986 fix(cosmos-provider): ensures proper multi-account request handling 2022-03-14 16:24:29 +01:00
Ben Kremer
cb648ace48 chore(cosmos-provider): updates yarn.lock 2022-03-14 16:22:46 +01:00
Ben Kremer
dbc2aa5fa5 fix(with-solana): adds missing useCallback dep 2022-03-14 15:56:18 +01:00
Ben Kremer
9bc970e8bc fix(with-solana): adds missing session_update handler 2022-03-14 15:30:34 +01:00
Ben Kremer
a6ef7d64bd Merge branch 'feat/dapp-with-solana-web3js' into main 2022-03-14 12:14:44 +01:00
Ben Kremer
5338c930fe fix: adds toggling between solana devnet and mainnet 2022-03-14 12:10:15 +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
ae2a3d2d60 feat(dapp-with-solana): sets up client and sol_signTransaction test 2022-03-11 18:15:56 +01:00
Ben Kremer
c418007c24 chore(deps): adds bs58 2022-03-11 16:12:39 +01:00
Ben Kremer
2568b0d3bb fix: manually adds basic solana chain metadata until available via API 2022-03-11 15:17:04 +01:00
Ben Kremer
4932223b76 chore: adds solana mainnet and testnet chainIds 2022-03-11 15:16:35 +01:00
Ben Kremer
f5b6c7c8a8 chore(deps): adjusts required deps for solana 2022-03-11 15:15:32 +01:00
Ben Kremer
7b8b3e5c85 chore: set up react-dapp-v2-with-solana-web3js subdirectory 2022-03-11 14:03:18 +01:00
Ben Kremer
dad29d7611 Revert "Cosmos signature verification (#6)"
This reverts commit 3c47a595b8.
2022-03-10 15:38:53 +01:00
Alex
3c47a595b8
Cosmos signature verification (#6) 2022-03-10 15:30:12 +01:00
Ben Kremer
512d9f1ccc fix: sets rpc result to null on rejection for EthereumProvider examples 2022-03-10 12:16:05 +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
2c314afee9 docs(dapp): use walletconnect subdomains for demo links 2022-03-10 10:36:38 +01:00
Ben Kremer
e437e802dd fix: handle session_updated event in EthereumProvider examples 2022-03-04 12:03:24 +00: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
44b2cac9f3 fix(v2-cosmos-provider): set RPC result on caught error 2022-03-01 14:13:14 +00:00
Ben Kremer
2e0ead7011 fix(v2-cosmos-provider): fixes expected RPC result shape 2022-03-01 14:05:39 +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
072d4593ca chore: rename react-dapp-v2-cosmos -> react-dapp-v2-cosmos-provider 2022-03-01 12:02:15 +00:00