-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.ts
65 lines (58 loc) · 2.26 KB
/
config.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 { Chain, createPublicClient, createWalletClient, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
///////////////////
// Replace with your address to become eligible for the airdrops
export const yourAddress = "0x855193BCbdbD346B423FF830b507CBf90ecCc90B"; // <--- Replace with your address
///////////////////
export const devGroups = [
{
// Nouns DAO NFT Holders group : https://factory.sismo.io/groups-explorer?search=0x311ece950f9ec55757eb95f3182ae5e2
groupId: "0x311ece950f9ec55757eb95f3182ae5e2",
data: [
// your address is added here so you can test the airdrops
yourAddress,
"0x2b9b9846d7298e0272c61669a54f0e602aba6290",
"0xb01ee322c4f028b8a6bfcd2a5d48107dc5bc99ec",
"0x938f169352008d35e065F153be53b3D3C07Bcd90",
],
},
{
// Gitcoin Passport group : https://factory.sismo.io/groups-explorer?search=0x1cde61966decb8600dfd0749bd371f12
groupId: "0x1cde61966decb8600dfd0749bd371f12",
data: [
// your address is added here so you can test the airdrops
yourAddress,
"0x2b9b9846d7298e0272c61669a54f0e602aba6290",
"0xb01ee322c4f028b8a6bfcd2a5d48107dc5bc99ec",
"0x938f169352008d35e065F153be53b3D3C07Bcd90",
],
},
];
// The chain configuration of the chain you want to fork
// You don't need to change this
export const mumbaiFork = {
id: 5151110,
name: "Fork Mumbai - Sismo",
network: "forkMumbaiSismo",
nativeCurrency: { name: "MATIC", symbol: "MATIC", decimals: 18 },
rpcUrls: {
default: {
http: ["http://127.0.0.1:8545"],
},
public: {
http: ["http://127.0.0.1:8545"],
},
},
} as const satisfies Chain;
// The private key of the second account of the local anvil network
// This account is used for this demo to allow the user to try it without connecting a wallet
export const account = privateKeyToAccount(
"0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d"
);
// setup the public and wallet client to interact with the contract deployed on a local fork
// the public client is used to read data from the contract or the chain
// the wallet client is used to send transactions to the contract
export const publicClient = createPublicClient({
chain: mumbaiFork,
transport: http("http://127.0.0.1:8545"),
});