-
Notifications
You must be signed in to change notification settings - Fork 2
/
keychain.ts
65 lines (58 loc) · 1.52 KB
/
keychain.ts
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
63
64
65
import {
arbitrumGoerli,
optimismGoerli,
polygonMumbai,
Chain,
} from 'wagmi/chains';
import { HAUS_RPC as RPC_DEFAULT } from "@daohaus/keychain-utils";
import { ValidNetwork as BaseValidNetworks, VIEM_CHAINS as VIEM_CHAINS_BASE } from "@daohaus/keychain-utils";
export type ValidNetwork =
| BaseValidNetworks
| "0xa4b1"
| "0x1a4"
| "0x66eed"
| "0x13881";
export type AddressKeyChain = {
"0x1"?: string;
"0x5"?: string;
"0x64"?: string;
"0xa"?: string;
"0x89"?: string;
"0xa4b1"?: string;
"0x1a4"?: string;
"0x66eed"?: string;
"0x13881"?: string;
};
export const MainnetKeyChains = [
'0x1',
'0xa',
'0x64',
'0x89',
'0xa4b1',
];
export const TestnetKeyChains = [
'0x5',
'0x1a4',
'0x66eed',
'0x13881'
];
export type Keychain<T = string> = { [key in ValidNetwork]?: T };
export const VIEM_CHAINS: Keychain<Chain> = {
...VIEM_CHAINS_BASE,
'0x1a4': optimismGoerli,
'0x66eed': arbitrumGoerli,
'0x13881': polygonMumbai,
};
export const HAUS_RPC = {
...RPC_DEFAULT,
"0x1": `https://787b6618b5a34070874c12d7157e6661.eth.rpc.rivet.cloud/`,
"0x5": `https://787b6618b5a34070874c12d7157e6661.goerli.rpc.rivet.cloud/`,
"0x64": "https://rpc.gnosischain.com/",
"0xa": "https://mainnet.optimism.io",
"0x89": "https://polygon-rpc.com/",
"0xa4b1": "https://arb1.arbitrum.io/rpc",
"0xa4ec": "https://forno.celo.org",
"0x1a4": "https://goerli.optimism.io",
"0x66eed": "https://rpc.goerli.arbitrum.gateway.fm",
"0x13881": "https://rpc-mumbai.maticvigil.com",
};