forked from keep-starknet-strange/art-peace
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathscript.js
59 lines (58 loc) · 1.8 KB
/
script.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
export const config = {
streamUrl: Deno.env.get("APIBARA_STREAM_URL"),
startingBlock: 0,
network: "starknet",
finality: "DATA_STATUS_PENDING",
filter: {
events: [
{
// Pixel Placed Event
fromAddress: Deno.env.get("ART_PEACE_CONTRACT_ADDRESS"),
keys: ["0x2D7B50EBF415606D77C7E7842546FC13F8ACFBFD16F7BCF2BC2D08F54114C23"],
includeReverted: false,
includeTransaction: false,
includeReceipt: false,
},
{
// NFT Minted Event
fromAddress: Deno.env.get("NFT_CONTRACT_ADDRESS"),
keys: ["0x30826E0CD9A517F76E857E3F3100FE5B9098E9F8216D3DB283FB4C9A641232F"],
includeReverted: false,
includeTransaction: false,
includeReceipt: false,
},
{
// Template Added Event
fromAddress: Deno.env.get("ART_PEACE_CONTRACT_ADDRESS"),
keys: ["0x3E18EC266FE76A2EFCE73F91228E6E04456B744FC6984C7A6374E417FB4BF59"],
includeReverted: false,
includeTransaction: false,
includeReceipt: false,
},
{
// Vote Color Event
fromAddress: Deno.env.get("ART_PEACE_CONTRACT_ADDRESS"),
keys: ["0x2407C82B0EFA2F6176A075BA5A939D33EEFAB39895FABCF3AC1C5E897974A40"],
includeReverted: false,
includeTransaction: false,
includeReceipt: false,
},
{
// New Day Event
fromAddress: Deno.env.get("ART_PEACE_CONTRACT_ADDRESS"),
keys: ["0x19CDBD24E137C00D1FEB99CC0B48B86B676F6B69C788C7F112AFEB8CD614C16"],
includeReverted: false,
includeTransaction: false,
includeReceipt: false,
},
],
},
sinkType: "webhook",
sinkOptions: {
targetUrl: Deno.env.get("BACKEND_TARGET_URL"),
},
};
// This transform does nothing.
export default function transform(block) {
return block;
}