Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metamask snap #71

Merged
merged 31 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
82527ad
Wallets section
boo-0x Feb 19, 2024
d0fcaec
Merge github.com:reef-chain/reef-app into metamask-snap
boo-0x Feb 22, 2024
8c3f7f7
MM Snap
boo-0x Feb 22, 2024
83f1d74
Metamask Snap
boo-0x Mar 10, 2024
c2f68a1
Merge branch 'master' into metamask-snap
matjazonline Mar 10, 2024
41c333f
Merge remote-tracking branch 'r-chain/master' into metamask-snap
matjazonline Mar 21, 2024
fdccb0f
Merge branch 'metamask-snap' of https://github.com/reef-chain/reef-ap…
boo-0x Mar 26, 2024
673af5a
Bump libs
boo-0x Mar 29, 2024
97e116c
Wallet selector
boo-0x Apr 26, 2024
f00a496
WalletConnect integration
boo-0x May 8, 2024
36e6a89
Merge remote-tracking branch 'r-chain/master' into metamask-snap
shangrilaaa May 13, 2024
0f3b0e1
yarn.lock
shangrilaaa May 13, 2024
90333ef
feat: hide metamask & easy wallet options (#77)
anukulpandey May 20, 2024
51dbec4
Merge remote-tracking branch 'r-chain/master' into metamask-snap
matjazonline May 20, 2024
bd5eb2a
update react-lib
matjazonline May 20, 2024
8201189
feat: handle reject and invalid error (#79)
anukulpandey May 21, 2024
0f406f6
feat: handle wc errors (#80)
anukulpandey May 23, 2024
2bce138
feat: wallectConnect preloader (#81)
anukulpandey May 27, 2024
7581c9f
feat: open walletconnect modal if reload happens, preloader when sele…
anukulpandey May 29, 2024
81f7abc
update libs
matjazonline May 29, 2024
dcae15e
feat: wallet connect selected account name (#83)
anukulpandey May 30, 2024
6867911
fix: logic of account name (#84)
anukulpandey Jun 6, 2024
3b89117
feat: moved signer logic to centralized handler (#85)
anukulpandey Jun 6, 2024
80d67bc
feat: display loader while waiting for tx to complete
anukulpandey Jun 7, 2024
0765de9
fix: rejection handler
anukulpandey Jun 10, 2024
bf4af8b
fix: changing account (#86)
anukulpandey Jun 10, 2024
94bcc50
feat: display select account (#89)
anukulpandey Jun 10, 2024
7c13c7a
Merge remote-tracking branch 'r-chain/wc-tx-info' into metamask-snap
matjazonline Jun 10, 2024
f78d920
feat: wc tx info while transaction (#88)
anukulpandey Jun 10, 2024
da83001
update libs
matjazonline Jun 10, 2024
5caf344
Merge remote-tracking branch 'r-chain/metamask-snap' into metamask-snap
matjazonline Jun 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/bootstrap@5.1.1/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/bootstrap@5.1.1/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/bootstrap@5.1.1/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/bootstrap@5.1.1/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 <robert@xarg.org>
* @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 [emn178@gmail.com]
* @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
Loading