-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
commit 8fe65c3 Author: FINE <101636126+finedao@users.noreply.github.com> Date: Fri Oct 27 01:00:33 2023 +0530 Update node-troubleshooting.mdx (#15017) Co-authored-by: Roger <50648015+RogerLamTd@users.noreply.github.com> commit 433fac4 Author: Korbinian <KorbinianK@users.noreply.github.com> Date: Thu Oct 26 19:33:51 2023 +0200 feat(bridge-ui-v2): Import step refinement (#15020) commit 73cabf3 Author: Kenk <kenghin_lim@hotmail.com> Date: Thu Oct 26 12:12:55 2023 +0700 feat(website): add rhino.fi, Hotpot and DotTaiko to ecosystem (#15024) Co-authored-by: dave <13951458+d1onys1us@users.noreply.github.com> commit 7a3bcf8 Author: Roger <50648015+RogerLamTd@users.noreply.github.com> Date: Wed Oct 25 21:49:32 2023 -0700 docs(website): add hint to remove old testnet volumes (#15039) commit dd76ddc Author: xiaodino <ruby@taiko.xyz> Date: Wed Oct 25 19:14:51 2023 -0700 feat(bridge-ui-v2): upgrade walletconnect from v2 to v3 (#14999)
- Loading branch information
1 parent
f71c7b7
commit 1d51077
Showing
15 changed files
with
3,543 additions
and
3,818 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,51 @@ | ||
import { EthereumClient } from '@web3modal/ethereum'; | ||
import { Web3Modal } from '@web3modal/html'; | ||
import { createWeb3Modal } from '@web3modal/wagmi'; | ||
|
||
import { PUBLIC_WALLETCONNECT_PROJECT_ID } from '$env/static/public'; | ||
import { chains, getChainImages } from '$libs/chain'; | ||
import { wagmiConfig } from '$libs/wagmi'; | ||
|
||
const projectId = PUBLIC_WALLETCONNECT_PROJECT_ID; | ||
|
||
const ethereumClient = new EthereumClient(wagmiConfig, chains); | ||
|
||
const chainImages = getChainImages(); | ||
|
||
export const web3modal = new Web3Modal( | ||
{ | ||
projectId, | ||
chainImages, | ||
// TODO: can we bring these vars into Tailwind theme? | ||
themeVariables: { | ||
'--w3m-font-family': '"Public Sans", sans-serif', | ||
'--w3m-font-feature-settings': 'normal', | ||
'--w3m-button-border-radius': '9999px', | ||
|
||
// Body small regular | ||
'--w3m-text-small-regular-size': '14px', | ||
'--w3m-text-small-regular-weight': '400', | ||
'--w3m-text-small-regular-line-height': '20px', | ||
|
||
// Body regular | ||
'--w3m-text-medium-regular-size': '16px', | ||
'--w3m-text-medium-regular-weight': '400', | ||
'--w3m-text-medium-regular-line-height': '24px', | ||
'--w3m-text-medium-regular-letter-spacing': 'normal', | ||
|
||
// Title body bold | ||
'--w3m-text-big-bold-size': '18px', | ||
'--w3m-text-big-bold-weight': '700', | ||
'--w3m-text-big-bold-line-height': '24px', | ||
|
||
'--w3m-background-color': 'var(--primary-brand)', | ||
'--w3m-overlay-background-color': 'var(--overlay-background)', | ||
'--w3m-background-border-radius': '20px', | ||
'--w3m-container-border-radius': '0', | ||
|
||
// Unofficial variables | ||
// @ts-ignore | ||
'--w3m-color-fg-1': 'var(--primary-content)', | ||
'--w3m-color-bg-1': 'var(--primary-background)', | ||
'--w3m-color-bg-2': 'var(--neutral-background)', | ||
'--w3m-color-overlay': 'none', | ||
'--w3m-accent-color': 'var(--neutral-background)', | ||
'--w3m-accent-fill-color': 'var(--dark-background)', | ||
}, | ||
themeMode: (localStorage.getItem('theme') as 'dark' | 'light') ?? 'dark', | ||
export const web3modal = createWeb3Modal({ | ||
wagmiConfig, | ||
projectId, | ||
chains, | ||
chainImages, | ||
themeVariables: { | ||
'--w3m-font-family': '"Public Sans", sans-serif', | ||
'--w3m-accent': 'var(--primary-brand)', | ||
|
||
// Body small regular | ||
// @ts-ignore | ||
'--w3m-text-small-regular-line-height': '20px', | ||
|
||
// Body regular | ||
// @ts-ignore | ||
'--w3m-text-medium-regular-size': '16px', | ||
'--w3m-text-medium-regular-weight': '400', | ||
'--w3m-text-medium-regular-line-height': '24px', | ||
'--w3m-text-medium-regular-letter-spacing': 'normal', | ||
|
||
// Title body bold | ||
// @ts-ignore | ||
'--w3m-text-big-bold-size': '18px', | ||
'--w3m-text-big-bold-weight': '700', | ||
'--w3m-text-big-bold-line-height': '24px', | ||
|
||
// @ts-ignore | ||
'--w3m-background-color': 'var(--primary-brand)', | ||
'--w3m-overlay-background-color': 'var(--overlay-background)', | ||
'--w3m-background-border-radius': '20px', | ||
'--w3m-container-border-radius': '0', | ||
|
||
// Unofficial variables | ||
// @ts-ignore | ||
'--w3m-color-fg-1': 'var(--primary-content)', | ||
'--w3m-color-bg-1': 'var(--primary-background)', | ||
'--w3m-color-bg-2': 'var(--neutral-background)', | ||
'--w3m-color-overlay': 'none', | ||
'--w3m-accent-fill-color': 'var(--dark-background)', | ||
}, | ||
ethereumClient, | ||
); | ||
themeMode: (localStorage.getItem('theme') as 'dark' | 'light') ?? 'dark', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
import { configureChains, createConfig } from '@wagmi/core'; | ||
import { w3mConnectors, w3mProvider } from '@web3modal/ethereum'; | ||
import { configureChains } from '@wagmi/core'; | ||
import { publicProvider } from '@wagmi/core/providers/public'; | ||
import { defaultWagmiConfig, walletConnectProvider } from '@web3modal/wagmi'; | ||
|
||
import { PUBLIC_WALLETCONNECT_PROJECT_ID } from '$env/static/public'; | ||
import { chains } from '$libs/chain'; | ||
|
||
const projectId = PUBLIC_WALLETCONNECT_PROJECT_ID; | ||
|
||
export const { publicClient } = configureChains(chains, [w3mProvider({ projectId })]); | ||
export const { publicClient } = configureChains(chains, [walletConnectProvider({ projectId }), publicProvider()]); | ||
|
||
export const wagmiConfig = createConfig({ | ||
autoConnect: true, | ||
connectors: w3mConnectors({ projectId, chains }), | ||
publicClient, | ||
}); | ||
export const wagmiConfig = defaultWagmiConfig({ chains, projectId }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.