-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathqueries.graphql
68 lines (61 loc) · 1.34 KB
/
queries.graphql
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
66
67
# This file contains all queries that are executed in the main.ts script.
# The "User" who is mentioned in this file is the deployer address of the contract on the mumbai testnet: 0xd4997d0facc83231b9f26a8b2155b4869e99946f
query firstFiveMintsByUser {
transfers(
where: {from: "0x0000000000000000000000000000000000000000", to: "0xd4997d0facc83231b9f26a8b2155b4869e99946f"}
first: 5
) {
id
tokenId
}
}
query lastFiveMints {
transfers(
where: {from: "0x0000000000000000000000000000000000000000"}
first: 5
orderDirection: desc
) {
id
tokenId
to
}
}
query allNameChangesOfTokenZero {
newTokenNames(where: {token: "0"}) {
id
name
triggeredBy
}
}
query allNameChangesOfTokenZeroTriggeredByUser {
newTokenNames(
where: {token: "0", triggeredBy: "0xd4997d0facc83231b9f26a8b2155b4869e99946f"}
) {
id
name
triggeredBy
}
}
query theSecondAndThirdCollectionRoleGrantedsTriggeredByUser {
collectionRoleGranteds(
where: {byAddress: "0xd4997d0facc83231b9f26a8b2155b4869e99946f"}
first: 2
skip: 1
) {
id
role
toAddress
}
}
query theThreeNewestBuildsThatWereNotTriggeredByUser {
newBuilds(
where: {triggeredBy_not: "0xd4997d0facc83231b9f26a8b2155b4869e99946f"}
orderDirection: desc
first: 3
) {
id
commitHash
token
triggeredBy
}
}