-
Notifications
You must be signed in to change notification settings - Fork 3
/
gqlUtils.js
49 lines (46 loc) · 978 Bytes
/
gqlUtils.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
export const permacastDeepGraphs = {
factories: {
query: `query {
transactions(
tags: [
{ name: "Protocol", values: "permacast-testnet-v3"},
{ name: "Action", values: "launchCreator"},
{ name: "Contract-Src", values: "KrMNSCljeT0sox8bengHf0Z8dxyE0vCTLEAOtkdrfjM"}
]
first: 100
) {
edges {
node {
id
owner { address }
tags { name value }
block { timestamp }
}
}
}
}`,
},
};
export function factoryMetadataGraph(factory_id) {
return {
query: `query {
transactions(
tags: [
{ name: "App-Name", values: "SmartWeaveAction"},
{ name: "App-Version", values: "0.3.0"},
{ name: "Contract", values: "${factory_id}"}
]
first: 100
) {
edges {
node {
id
owner { address }
tags { name value }
block { timestamp }
}
}
}
}`,
};
}