Add more main / test nets

This commit is contained in:
Ilja 2022-02-18 14:17:59 +02:00
parent 32c7949c16
commit 186f9ca961
15 changed files with 29 additions and 16 deletions

BIN
.DS_Store vendored Normal file

Binary file not shown.

BIN
wallets/.DS_Store vendored Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.9 KiB

View File

Before

Width:  |  Height:  |  Size: 1.8 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

View File

Before

Width:  |  Height:  |  Size: 814 B

After

Width:  |  Height:  |  Size: 814 B

View File

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

View File

Before

Width:  |  Height:  |  Size: 9.8 KiB

After

Width:  |  Height:  |  Size: 9.8 KiB

View File

@ -7,13 +7,13 @@ export default function Navigation() {
<Row justify="space-between" align="center">
<Link href="/" passHref>
<a className="navLink">
<Image alt="accounts icon" src="/accounts-icon.svg" width={27} height={27} />
<Image alt="accounts icon" src="/icons/accounts-icon.svg" width={27} height={27} />
</a>
</Link>
<Link href="/sessions" passHref>
<a className="navLink">
<Image alt="sessions icon" src="/sessions-icon.svg" width={27} height={27} />
<Image alt="sessions icon" src="/icons/sessions-icon.svg" width={27} height={27} />
</a>
</Link>
@ -37,13 +37,13 @@ export default function Navigation() {
<Link href="/pairings" passHref>
<a className="navLink">
<Image alt="pairings icon" src="/pairings-icon.svg" width={25} height={25} />
<Image alt="pairings icon" src="/icons/pairings-icon.svg" width={25} height={25} />
</a>
</Link>
<Link href="/settings" passHref>
<a className="navLink">
<Image alt="settings icon" src="/settings-icon.svg" width={27} height={27} />
<Image alt="settings icon" src="/icons/settings-icon.svg" width={27} height={27} />
</a>
</Link>
</Row>

View File

@ -57,7 +57,7 @@ export default function QrReader({ onConnect }: IProps) {
) : (
<div className="container qrPlaceholder">
<Image
src="/qr-icon.svg"
src="/icons/qr-icon.svg"
width={100}
height={100}
alt="qr code icon"

View File

@ -3,11 +3,6 @@
* @url https://chainlist.org
*/
/**
* Utilities
*/
const LOGO_BASE_URL = 'https://blockchain-api.xyz/logos/'
/**
* Types
*/
@ -20,24 +15,45 @@ export const EIP155_MAINNET_CHAINS = {
'eip155:1': {
chainId: 1,
name: 'Ethereum',
logo: LOGO_BASE_URL + 'eip155:1.png',
logo: '/chain-logos/eip155-1.png',
rgb: '99, 125, 234',
rpc: 'https://cloudflare-eth.com/'
},
'eip155:43114': {
chainId: 43114,
name: 'Avalanche C-Chain',
logo: '/chain-logos/eip155-43113.png',
rgb: '232, 65, 66',
rpc: 'https://api.avax.network/ext/bc/C/rpc'
},
'eip155:137': {
chainId: 137,
name: 'Polygon',
logo: LOGO_BASE_URL + 'eip155:137.png',
logo: '/chain-logos/eip155-137.png',
rgb: '130, 71, 229',
rpc: 'https://polygon-rpc.com/'
}
}
export const EIP155_TEST_CHAINS = {
'eip155:42': {
chainId: 42,
name: 'Ethereum Kovan',
logo: '/chain-logos/eip155-1.png',
rgb: '99, 125, 234',
rpc: 'https://kovan.infura.io/v3/9aa3d95b3bc440fa88ea12eaa4456161'
},
'eip155:43113': {
chainId: 43113,
name: 'Avalanche Fuji',
logo: '/chain-logos/eip155-43113.png',
rgb: '232, 65, 66',
rpc: 'https://api.avax-test.network/ext/bc/C/rpc'
},
'eip155:80001': {
chainId: 80001,
name: 'Polygon Mumbai',
logo: LOGO_BASE_URL + 'eip155:137.png',
logo: '/chain-logos/eip155-137.png',
rgb: '130, 71, 229',
rpc: 'https://rpc-mumbai.maticvigil.com/'
}

View File

@ -26,8 +26,6 @@ export default function useWalletConnectEventsManager(initialized: boolean) {
const { method } = request
const requestSession = await walletConnectClient.session.get(topic)
console.log({ requestEvent, requestSession })
switch (method) {
case EIP155_SIGNING_METHODS.ETH_SIGN:
case EIP155_SIGNING_METHODS.PERSONAL_SIGN:

View File

@ -23,7 +23,6 @@ export default function PairingsPage() {
{pairings.length ? (
pairings.map(pairing => {
const { metadata } = pairing.state
console.log(pairing)
return (
<PairingCard