-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconnectors.js
62 lines (52 loc) · 1.77 KB
/
connectors.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
import { InjectedConnector } from "@web3-react/injected-connector";
import { NetworkConnector } from "@web3-react/network-connector";
import { WalletConnectConnector } from "@web3-react/walletconnect-connector";
import { WalletLinkConnector } from "@web3-react/walletlink-connector";
import { LedgerConnector } from "@web3-react/ledger-connector";
import { TrezorConnector } from "@web3-react/trezor-connector";
import { LatticeConnector } from "@web3-react/lattice-connector";
import { AuthereumConnector } from "@web3-react/authereum-connector";
import { FortmaticConnector } from "@web3-react/fortmatic-connector";
const POLLING_INTERVAL = 12000;
const RPC_URLS = {
1: "https://mainnet.infura.io/v3/0ec6d63064f748ad9fd4b764d2b12274",
};
export const injected = new InjectedConnector({
supportedChainIds: [1],
});
export const network = new NetworkConnector({
urls: { 1: RPC_URLS[1] },
defaultChainId: 1,
});
export const walletconnect = new WalletConnectConnector({
rpc: { 1: RPC_URLS[1] },
qrcode: true,
pollingInterval: POLLING_INTERVAL,
});
export const walletlink = new WalletLinkConnector({
url: RPC_URLS[1],
appName: "RumbleKongLeague",
supportedChainIds: [1],
});
export const ledger = new LedgerConnector({
chainId: 1,
url: RPC_URLS[1],
pollingInterval: POLLING_INTERVAL,
});
export const trezor = new TrezorConnector({
chainId: 1,
url: RPC_URLS[1],
pollingInterval: POLLING_INTERVAL,
// manifestEmail: "[email protected]",
// manifestAppUrl: "http://localhost:1234",
});
export const lattice = new LatticeConnector({
chainId: 1,
appName: "RumbleKongLeague",
url: RPC_URLS[1],
});
export const authereum = new AuthereumConnector({ chainId: 1 });
export const fortmatic = new FortmaticConnector({
apiKey: "pk_live_014C9A8BD3D47F53",
chainId: 1,
});