Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stephancill/open-browser-wallet-expo
A demo of browser wallet gateway in Expo + wagmi
https://github.com/stephancill/open-browser-wallet-expo
Last synced: 13 days ago
JSON representation
A demo of browser wallet gateway in Expo + wagmi
- Host: GitHub
- URL: https://github.com/stephancill/open-browser-wallet-expo
- Owner: stephancill
- Created: 2024-07-27T00:08:32.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-06T22:38:28.000Z (3 months ago)
- Last Synced: 2024-08-07T21:40:18.644Z (3 months ago)
- Language: TypeScript
- Homepage:
- Size: 423 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Browser Wallet + Expo + Wagmi Demo
This is a demo using Coinbase Smart Wallet and [Open Browser Wallet](https://github.com/stephancill/open-browser-wallet) in an Expo project with wagmi via the [Browser Wallet Gateway](https://github.com/stephancill/browser-wallet-gateway) and a modified version of the [@coinbase/wallet-sdk](https://github.com/coinbase/coinbase-wallet-sdk).
## Key Modifications
### @coinbase/wallet-sdk
- `core/communicator` uses [WebBrowser.openAuthSessionAsync](https://docs.expo.dev/versions/latest/sdk/webbrowser/#webbrowseropenauthsessionasyncurl-redirecturl-options) instead of popups
- Messages are passed via URL parameters instead of `postMessage` (see [`/callback` route](https://github.com/stephancill/open-browser-wallet/blob/main/src/app/callback/page.tsx) in Open Browser Wallet)
- Modified constructor to take a `callbackUrl` parameter### Development
```
yarn install
``````
yarn ios
```Modify the `callbackUrl` param to use a local version of the Browser Wallet Gateway in `_layout.tsx`.