Jonathan ConnandBen Kremer d774f52135 Feat/examples upgrade (#153)
* Added UI infastructure to support chain switching, need to update the session to swap chains

* Fixed type of chainId, string -> number

* Added helper method to find full chainname ex/ cosmoshub-4 -> cosmons:cosmoshub-4. Added a method updateSignClientChainId to emit a new update with the new namespace for the respected chain switch

* Added checks to ensure no dup accounts get added to namespaces during chainswitching from chain A->B->A for ex

* Fixed chainId type, eip155 uses number but the other chains use strings, making string the default type for chainId

* Update wallets/react-wallet-v2/src/utils/WalletConnectUtil.ts

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

* Switched the way account card components are generated in index page, removed unnecessary helper fx

* Fixed the chain changed event by updating the session if the chainId namespace does not currently exist, then emitting the correct chainChanged event on the same session

---------

Co-authored-by: Ben Kremer <ben@walletconnect.com>
2023-05-10 10:01:36 -04:00
2023-05-09 17:56:36 +02:00
2023-05-10 10:01:36 -04:00
2023-02-15 17:11:42 +02:00
2022-03-28 11:50:36 +02:00
2023-01-05 11:00:23 -07:00

WalletConnect v2 Examples

Catalogue of various wallet and dapp examples implementing WalletConnect's SDKs and APIs. Each example contains its own README with further instructions and explanations.

Web3Wallet SDK

Wallets:

Sign API

Wallets:

dApps:

Auth API

Wallets:

dApps:

Chat API

Wallets:

S
Description
No description provided
Readme
11 MiB
Languages
TypeScript 92.6%
CSS 2%
Svelte 1.7%
Vue 1.4%
JavaScript 1.1%
Other 1.2%