mirror of
https://github.com/Instadapp/assembly.git
synced 2024-07-29 22:37:06 +00:00
20 lines
591 B
TypeScript
20 lines
591 B
TypeScript
|
import { setWeb3LibraryCallback } from "@kabbouchi/vue-web3";
|
||
|
import { InjectedConnector } from "@web3-react/injected-connector";
|
||
|
import { WalletConnectConnector } from "@web3-react/walletconnect-connector";
|
||
|
|
||
|
import Web3 from "web3";
|
||
|
|
||
|
setWeb3LibraryCallback(provider => new Web3(provider));
|
||
|
|
||
|
export const injected = new InjectedConnector({
|
||
|
supportedChainIds: [1, 137]
|
||
|
});
|
||
|
|
||
|
export const walletconnect = new WalletConnectConnector({
|
||
|
rpc: {
|
||
|
1: `https://mainnet.infura.io/v3/${process.env.INFURA_ID}`,
|
||
|
137: "https://rpc-mainnet.maticvigil.com"
|
||
|
},
|
||
|
supportedChainIds: [1, 137]
|
||
|
});
|