Skip to content

Commit

Permalink
Metamask snap (#71)
Browse files Browse the repository at this point in the history
* Wallets section

* MM Snap

* Metamask Snap

* Bump libs

* Wallet selector

* WalletConnect integration

* yarn.lock

* feat: hide metamask & easy wallet options (#77)

* update react-lib

* feat: handle reject and invalid error (#79)

* feat: handle wc errors (#80)

* feat: handle wc errors

* chore: cleanup

* feat: wallectConnect preloader (#81)

* feat: wallet connect preloader

* feat: connection qr expired

* feat: log error if brave

* feat: open walletconnect modal if reload happens, preloader when selecting mobile app (#82)

* feat: preloader and connected wallet context

* chore: refactor wallet connect loader

* feat: message in pre loader wc

* feat: undo dev env

* update libs

* feat: wallet connect selected account name (#83)

* fix: types in connect wallet hook

* chore: cleanup

* feat: set wc selected account immediately

* fix: logic of account name (#84)

* feat: moved signer logic to centralized handler (#85)

* feat: display loader while waiting for tx to complete

* fix: rejection handler

* fix: changing account (#86)

* feat: display select account (#89)

* feat: wc tx info while transaction (#88)

* feat: display loader while waiting for tx to complete

* fix: rejection handler

* update libs

---------

Co-authored-by: boo-0x <[email protected]>
Co-authored-by: shangrilaaa <[email protected]>
Co-authored-by: Anukul Pandey <[email protected]>
Co-authored-by: Anukul Pandey <[email protected]>
  • Loading branch information
5 people authored Jun 25, 2024
1 parent a73fe04 commit ffee4ba
Show file tree
Hide file tree
Showing 38 changed files with 2,583 additions and 1,231 deletions.
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,27 @@
"dependencies": {
"@fortawesome/free-regular-svg-icons": "^6.1.0",
"@fortawesome/free-solid-svg-icons": "^6.1.0",
"@polkadot/extension-dapp": "^0.46.7",
"@popperjs/core": "^2.11.5",
"@reef-chain/evm-provider": "^2.0.3",
"@reef-chain/react-lib": "^3.0.0",
"@reef-chain/ui-kit": "^3.0.0",
"@reef-chain/util-lib": "^2.5.7",
"@reef-chain/react-lib": "^4.0.3",
"@reef-chain/ui-kit": "^3.0.2",
"@reef-chain/util-lib": "^2.5.8",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"@types/jest": "^26.0.15",
"@types/node": "^12.0.0",
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@web3modal/standalone": "^2.4.3",
"axios": "^1.6.7",
"bignumber.js": "^9.0.2",
"boostrap": "^2.0.0",
"crypto-browserify": "^3.12.0",
"d3-dsv": "^3.0.1",
"date-fns": "^2.28.0",
"encoding": "^0.1.13",
"file-saver": "^2.0.5",
"graphql": "^16.2.0",
"lightweight-charts": "^4.0.1",
"process": "^0.11.10",
Expand Down
12 changes: 12 additions & 0 deletions public/img/wallets/walletconnect.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
30 changes: 1 addition & 29 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -1,29 +1 @@
<!DOCTYPE html>
<html lang="en">
<head>
<base href="/" />
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta
name="description"
content="Reef Chain Wallet dApp"
/>

<!-- Bootstrap CSS -->
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous">
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="/manifest.json" />

<title>Reef Chain Wallet dApp</title>
<link rel="icon" href="favicon.ico"><script defer src="main.js"></script></head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script>
</body>
</html>
<!doctype html><html lang="en"><head><base href="/"/><meta charset="utf-8"/><link rel="icon" href="/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Reef Chain Wallet dApp"/><link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-F3w7mX95PdgyTmZZMECAngseQB83DfGTowi0iMjiWaeVhAn4FJkqJByhZMI3AhiU" crossorigin="anonymous"><link rel="manifest" href="/manifest.json"/><title>Reef Chain Wallet dApp</title><link rel="icon" href="favicon.ico"><script defer="defer" src="main.js"></script></head><body><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div><script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-/bQdsTh/da6pkI1MST/rWKFNjaCP5gBSY4sEBT38Q/9RBh9AH40zEOg7Hlq2THRZ" crossorigin="anonymous"></script></body></html>
112 changes: 112 additions & 0 deletions public/main.js.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/

/*!
* Bootstrap v5.3.2 (https://getbootstrap.com/)
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*/

/*!
* @license
* TradingView Lightweight Charts™ v4.1.3
* Copyright (c) 2024 TradingView, Inc.
* Licensed under Apache License 2.0 https://www.apache.org/licenses/LICENSE-2.0
*/

/*!
* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <https://feross.org>
* @license MIT
*/

/*! Bundled license information:

@jspm/core/nodelibs/browser/buffer.js:
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
*/

/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */

/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */

/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */

/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */

/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */

/**
* A handy class to calculate color values.
*
* @version 1.0
* @author Robert Eisele <[email protected]>
* @copyright Copyright (c) 2010, Robert Eisele
* @link http://www.xarg.org/2010/03/generate-client-side-png-files-using-javascript/
* @license http://www.opensource.org/licenses/bsd-license.php BSD License
*
*/

/**
* @license qrcode.react
* Copyright (c) Paul O'Shannessy
* SPDX-License-Identifier: ISC
*/

/**
* [js-sha3]{@link https://github.com/emn178/js-sha3}
*
* @version 0.8.0
* @author Chen, Yi-Cyuan [[email protected]]
* @copyright Chen, Yi-Cyuan 2015-2018
* @license MIT
*/

/** @license React v0.20.2
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v16.13.1
* react-is.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react-jsx-runtime.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

/** @license React v17.0.2
* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
Loading

0 comments on commit ffee4ba

Please sign in to comment.