Skip to content

Commit

Permalink
Chore/update Wallet libraries (#1001)
Browse files Browse the repository at this point in the history
* update block native

* update wallet libraries

* dedupe

* remove log

---------

Co-authored-by: jmzwar <[email protected]>
  • Loading branch information
jmzwar and jmzwar authored Oct 31, 2023
1 parent 30ca681 commit 6322d9e
Show file tree
Hide file tree
Showing 215 changed files with 1,557 additions and 616 deletions.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file removed .yarn/cache/nan-npm-2.16.0-cac314a230-cb16937273.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
16 changes: 11 additions & 5 deletions v2/ui/containers/Connector/config.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
import { getChainIdHex, getInfuraRpcURL } from 'utils/infura';
import { NetworkIdByName } from '@synthetixio/contracts-interface';

import Onboard from '@web3-onboard/core';
import type { OnboardAPI } from '@web3-onboard/core';
import injectedModule from '@web3-onboard/injected-wallets';
import coinbaseWalletModule from '@web3-onboard/coinbase';
import walletConnectModule from '@web3-onboard/walletconnect';
import ledgerModule from '@web3-onboard/ledger';
import gnosisModule from './customGnosis';
// import trezorModule from '@web3-onboard/trezor';
import trezorModule from '@web3-onboard/trezor';
import portisModule from '@web3-onboard/portis';
import torusModule from '@web3-onboard/torus';
import trustModule from '@web3-onboard/trust';
Expand All @@ -19,13 +18,19 @@ import { customBrave, customMetaMask, customDetected } from './customInjected';
const injected = injectedModule({ custom: [customMetaMask, customBrave, customDetected] });

const coinbaseWalletSdk = coinbaseWalletModule({ darkMode: true });

const walletConnect = walletConnectModule({
version: 2,
projectId: process.env.NEXT_PUBLIC_WC_PROJECT_ID,
});

const ledger = ledgerModule({
walletConnectVersion: 2,
projectId: `${process.env.NEXT_PUBLIC_WC_PROJECT_ID}`,
});
const ledger = ledgerModule();

// The trezor module have a bug, we can enable it when this has been merged and released: https://github.com/blocknative/web3-onboard/pull/1165
// const trezor = trezorModule({ email: '[email protected]', appUrl: 'https://www.synthetix.io' });
const trezor = trezorModule({ email: '[email protected]', appUrl: 'https://www.synthetix.io' });
const gnosis = gnosisModule();
const portis = portisModule({ apiKey: `${process.env.NEXT_PUBLIC_PORTIS_APP_ID}` });
const torus = torusModule();
Expand Down Expand Up @@ -99,7 +104,8 @@ export const onboard: OnboardAPI = Onboard({
wallets: [
injected,
brave,
ledger /*trezor,*/,
ledger,
trezor,
coinbaseWalletSdk,
trust,
walletConnect,
Expand Down
17 changes: 9 additions & 8 deletions v2/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -81,16 +81,17 @@
"@synthetixio/wei": "^2.74.4",
"@tanstack/react-query": "^4.24.6",
"@tippyjs/react": "^4.2.6",
"@web3-onboard/coinbase": "^2.2.0",
"@web3-onboard/coinbase": "^2.2.6",
"@web3-onboard/common": "^2.3.3",
"@web3-onboard/core": "^2.19.2",
"@web3-onboard/gnosis": "^2.1.6",
"@web3-onboard/injected-wallets": "^2.8.0",
"@web3-onboard/ledger": "^2.4.2",
"@web3-onboard/portis": "^2.1.3",
"@web3-onboard/torus": "^2.2.1",
"@web3-onboard/core": "^2.21.2",
"@web3-onboard/gnosis": "^2.2.0",
"@web3-onboard/injected-wallets": "^2.10.8",
"@web3-onboard/ledger": "^2.5.2",
"@web3-onboard/portis": "^2.1.7",
"@web3-onboard/torus": "^2.2.6",
"@web3-onboard/trezor": "^2.4.3",
"@web3-onboard/trust": "^2.0.4",
"@web3-onboard/walletconnect": "^2.3.8",
"@web3-onboard/walletconnect": "^2.5.0",
"axios": "^1.3.3",
"bn.js": "^5.2.1",
"color": "^3.1.3",
Expand Down
Loading

1 comment on commit 6322d9e

@vercel
Copy link

@vercel vercel bot commented on 6322d9e Oct 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

v2-storybook – ./v2/ui

staking-storybook.vercel.app
v2-storybook-git-master-synthetixio.vercel.app
v2-storybook-synthetixio.vercel.app

Please sign in to comment.