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

import walletconnect dependencies into app #420

Merged
merged 48 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
592ad40
import walletconnect dependencies into app
kremalicious Dec 1, 2022
c790dd1
revert script import to `main` version
kremalicious Dec 1, 2022
a0f24b3
Merge branch 'main' into fix/walletconnect-import
KatunaNorbert Dec 15, 2022
0b7dc99
migrating to WalletConnect v2
KatunaNorbert Dec 16, 2022
c471f48
switch Rollup with Vite
KatunaNorbert Jan 4, 2023
7773c3e
add back dockerignore and env example files
KatunaNorbert Jan 4, 2023
f6de1c7
handle wallet connection and network switch
KatunaNorbert Jan 9, 2023
4b78174
update all contract read functions
KatunaNorbert Jan 9, 2023
81f6c0c
add gas estimate to write contract methods
KatunaNorbert Jan 10, 2023
5252401
update rewards contract calls and cleanup
KatunaNorbert Jan 10, 2023
6969c13
getBlockTimestamp and UI fixes
KatunaNorbert Jan 12, 2023
089f604
fix disabled lock date input
KatunaNorbert Jan 12, 2023
ab68b97
fix date update and lock end date input disabled state
KatunaNorbert Jan 12, 2023
04e355b
show QRcode for mobile wallet connection and remove unused dependencies
KatunaNorbert Jan 25, 2023
3b40f21
fix Vite console warnings
KatunaNorbert Jan 25, 2023
2e3af19
update env variables examples and readme
KatunaNorbert Jan 26, 2023
06708d5
Merge branch 'main' into fix/walletconnect-import
KatunaNorbert Feb 22, 2023
7edc2d3
fix conflicts and QR code mobile connect(WIP)
KatunaNorbert Feb 24, 2023
85d88a9
Merge branch 'main' into fix/walletconnect-import
KatunaNorbert Mar 2, 2023
ef97214
Merge branch 'main' into fix/walletconnect-import
KatunaNorbert Mar 7, 2023
9dde9d3
Merge branch 'main' into fix/walletconnect-import
KatunaNorbert Apr 18, 2023
12814cb
fix server not starting
KatunaNorbert Apr 18, 2023
8b9fa5d
add latest version of WalletConnect2
KatunaNorbert Jun 9, 2023
295dd93
Merge branch 'main' into fix/walletconnect-import
KatunaNorbert Jun 9, 2023
13d96e4
update write contract methods
KatunaNorbert Jun 9, 2023
da0344a
fix lock ocean card width
KatunaNorbert Jun 12, 2023
d71e3da
fixes around farm table
KatunaNorbert Jun 12, 2023
f1f3f40
disable type checks since we are not using typescritp
KatunaNorbert Jun 12, 2023
8c6f3ec
fix claim passive rewards tx
KatunaNorbert Jun 12, 2023
d993c0c
fix UI main width
KatunaNorbert Jun 12, 2023
a19626b
fix date picker icon not showing, remove Rollup libraries
KatunaNorbert Jun 12, 2023
7b8dde7
fix build
KatunaNorbert Jun 21, 2023
b60b344
removed build config from vite config
KatunaNorbert Jun 21, 2023
5954c5f
removed rollup libraries
KatunaNorbert Jun 21, 2023
0af10ee
simplify Vite config
KatunaNorbert Jun 21, 2023
47624a7
removed ts file
KatunaNorbert Jun 22, 2023
c654876
added rollup plugins
KatunaNorbert Jun 22, 2023
b975963
use Vite preprocess
KatunaNorbert Jun 22, 2023
6790dcf
specify svelte preprocess
KatunaNorbert Jun 22, 2023
56de384
load env variable
KatunaNorbert Jun 22, 2023
7511e2d
assign env variable before use
KatunaNorbert Jun 22, 2023
57c220e
used assigned value inside NetworksSection
KatunaNorbert Jun 22, 2023
57dd974
use assigned env variable values in other places
KatunaNorbert Jun 22, 2023
3741cd6
used assigned env values inside lock ocean components
KatunaNorbert Jun 22, 2023
54b6b91
remove parse function over env var
KatunaNorbert Jun 22, 2023
08df2fa
use infura provider instead of wc
KatunaNorbert Jun 22, 2023
6a6620d
removed app config file and update env example file
KatunaNorbert Jun 22, 2023
6863eb9
web3 store cleanup
KatunaNorbert Jun 22, 2023
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
238 changes: 218 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"dependencies": {
"@rollup/plugin-html": "^0.2.4",
"@rollup/plugin-replace": "^4.0.0",
"@walletconnect/web3-provider": "^1.8.0",
"apollo-boost": "^0.4.9",
"carbon-components-svelte": "^0.63.8",
"carbon-icons-svelte": "^11.0.1",
Expand Down
3 changes: 1 addition & 2 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@
<link rel='icon' type='image/png' href='/logo-ocean-svg.svg'>
<link rel='stylesheet' href='/global.css'>
<link rel='stylesheet' href='/build/bundle.css'>
<script type="text/javascript" src="https://unpkg.com/@walletconnect/web3-provider"></script>
<script defer src='/build/bundle.js'></script>
<script defer src='/build/bundle.5237e218.js'></script>
kremalicious marked this conversation as resolved.
Show resolved Hide resolved
</head>
<body>
</body>
Expand Down
1 change: 0 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ const htmlOptions = {
<link rel='icon' type='image/png' href='/logo-ocean-svg.svg'>
<link rel='stylesheet' href='/global.css'>
${css ? css : "<link rel='stylesheet' href='/build/bundle.css'>"}
<script type="text/javascript" src="https://unpkg.com/@walletconnect/web3-provider"></script>
${script}
</head>
<body>
Expand Down
3 changes: 1 addition & 2 deletions src/stores/web3.js
idiom-bytes marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { writable } from "svelte/store";
import { ethers, BigNumber } from "ethers";
import Web3Modal from "web3modal"
import WalletConnectProvider from '@walletconnect/web3-provider'
import * as networksDataArray from "../networks-metadata.json";

export let userAddress = writable("");
Expand All @@ -14,8 +15,6 @@ export let isWalletConnectModalOpen = writable(false)

export const GASLIMIT_DEFAULT = 1000000;

const WalletConnectProvider = window?.WalletConnectProvider?.default;

const providerOptions = {
walletconnect: {
package: WalletConnectProvider,
Expand Down