@berachain/graphql 0.4.16-beta.1 → 0.4.16-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bend/whisk.codegen.mjs +174 -29
- package/dist/dex/api.codegen.mjs +361 -22
- package/dist/governance/governance.codegen.mjs +262 -11
- package/dist/honey/honey.codegen.d.ts +735 -0
- package/dist/honey/honey.codegen.mjs +160 -0
- package/dist/pol/api.codegen.d.ts +1 -20
- package/dist/pol/api.codegen.mjs +374 -38
- package/dist/pol/subgraph.codegen.d.ts +4133 -0
- package/dist/pol/subgraph.codegen.mjs +854 -0
- package/package.json +39 -37
- package/LICENSE +0 -21
- package/dist/api/api.codegen.cjs +0 -1
- package/dist/api/api.codegen.d.cts +0 -735
- package/dist/bend/whisk.codegen.cjs +0 -693
- package/dist/bend/whisk.codegen.d.cts +0 -3360
- package/dist/dex/api.codegen.cjs +0 -199
- package/dist/dex/api.codegen.d.cts +0 -3626
- package/dist/governance/governance.codegen.cjs +0 -116
- package/dist/governance/governance.codegen.d.cts +0 -1533
- package/dist/pol/api.codegen.cjs +0 -371
- package/dist/pol/api.codegen.d.cts +0 -3480
|
@@ -1,4 +1,223 @@
|
|
|
1
|
-
|
|
1
|
+
// src/governance/governance.codegen.ts
|
|
2
|
+
import { gql } from "@apollo/client";
|
|
3
|
+
var Aggregation_Interval = /* @__PURE__ */ ((Aggregation_Interval2) => {
|
|
4
|
+
Aggregation_Interval2["Day"] = "day";
|
|
5
|
+
Aggregation_Interval2["Hour"] = "hour";
|
|
6
|
+
return Aggregation_Interval2;
|
|
7
|
+
})(Aggregation_Interval || {});
|
|
8
|
+
var ExecutableCall_OrderBy = /* @__PURE__ */ ((ExecutableCall_OrderBy2) => {
|
|
9
|
+
ExecutableCall_OrderBy2["Calldata"] = "calldata";
|
|
10
|
+
ExecutableCall_OrderBy2["Id"] = "id";
|
|
11
|
+
ExecutableCall_OrderBy2["Proposal"] = "proposal";
|
|
12
|
+
ExecutableCall_OrderBy2["ProposalCancelTxHash"] = "proposal__cancelTxHash";
|
|
13
|
+
ExecutableCall_OrderBy2["ProposalCanceledAt"] = "proposal__canceledAt";
|
|
14
|
+
ExecutableCall_OrderBy2["ProposalCanceledAtBlock"] = "proposal__canceledAtBlock";
|
|
15
|
+
ExecutableCall_OrderBy2["ProposalContentEncoding"] = "proposal__contentEncoding";
|
|
16
|
+
ExecutableCall_OrderBy2["ProposalContentType"] = "proposal__contentType";
|
|
17
|
+
ExecutableCall_OrderBy2["ProposalCreateTxHash"] = "proposal__createTxHash";
|
|
18
|
+
ExecutableCall_OrderBy2["ProposalCreatedAt"] = "proposal__createdAt";
|
|
19
|
+
ExecutableCall_OrderBy2["ProposalCreatedAtBlock"] = "proposal__createdAtBlock";
|
|
20
|
+
ExecutableCall_OrderBy2["ProposalDescription"] = "proposal__description";
|
|
21
|
+
ExecutableCall_OrderBy2["ProposalExecutableAtBlock"] = "proposal__executableAtBlock";
|
|
22
|
+
ExecutableCall_OrderBy2["ProposalExecuteTxHash"] = "proposal__executeTxHash";
|
|
23
|
+
ExecutableCall_OrderBy2["ProposalExecutedAt"] = "proposal__executedAt";
|
|
24
|
+
ExecutableCall_OrderBy2["ProposalExecutedAtBlock"] = "proposal__executedAtBlock";
|
|
25
|
+
ExecutableCall_OrderBy2["ProposalId"] = "proposal__id";
|
|
26
|
+
ExecutableCall_OrderBy2["ProposalProposalId"] = "proposal__proposalId";
|
|
27
|
+
ExecutableCall_OrderBy2["ProposalProposer"] = "proposal__proposer";
|
|
28
|
+
ExecutableCall_OrderBy2["ProposalQueueEnd"] = "proposal__queueEnd";
|
|
29
|
+
ExecutableCall_OrderBy2["ProposalQueueStart"] = "proposal__queueStart";
|
|
30
|
+
ExecutableCall_OrderBy2["ProposalQueueStartBlock"] = "proposal__queueStartBlock";
|
|
31
|
+
ExecutableCall_OrderBy2["ProposalQueueTxHash"] = "proposal__queueTxHash";
|
|
32
|
+
ExecutableCall_OrderBy2["ProposalQuorum"] = "proposal__quorum";
|
|
33
|
+
ExecutableCall_OrderBy2["ProposalStatus"] = "proposal__status";
|
|
34
|
+
ExecutableCall_OrderBy2["ProposalSucceededAt"] = "proposal__succeededAt";
|
|
35
|
+
ExecutableCall_OrderBy2["ProposalSucceededAtBlock"] = "proposal__succeededAtBlock";
|
|
36
|
+
ExecutableCall_OrderBy2["ProposalSucceededVoteTxHash"] = "proposal__succeededVoteTxHash";
|
|
37
|
+
ExecutableCall_OrderBy2["ProposalTitle"] = "proposal__title";
|
|
38
|
+
ExecutableCall_OrderBy2["ProposalUnparsedDescription"] = "proposal__unparsedDescription";
|
|
39
|
+
ExecutableCall_OrderBy2["ProposalUnverifiedForumLink"] = "proposal__unverifiedForumLink";
|
|
40
|
+
ExecutableCall_OrderBy2["ProposalVoteEndAt"] = "proposal__voteEndAt";
|
|
41
|
+
ExecutableCall_OrderBy2["ProposalVoteStartAt"] = "proposal__voteStartAt";
|
|
42
|
+
ExecutableCall_OrderBy2["Signature"] = "signature";
|
|
43
|
+
ExecutableCall_OrderBy2["Target"] = "target";
|
|
44
|
+
ExecutableCall_OrderBy2["Value"] = "value";
|
|
45
|
+
return ExecutableCall_OrderBy2;
|
|
46
|
+
})(ExecutableCall_OrderBy || {});
|
|
47
|
+
var OrderDirection = /* @__PURE__ */ ((OrderDirection2) => {
|
|
48
|
+
OrderDirection2["Asc"] = "asc";
|
|
49
|
+
OrderDirection2["Desc"] = "desc";
|
|
50
|
+
return OrderDirection2;
|
|
51
|
+
})(OrderDirection || {});
|
|
52
|
+
var PollResult_OrderBy = /* @__PURE__ */ ((PollResult_OrderBy2) => {
|
|
53
|
+
PollResult_OrderBy2["Abstain"] = "abstain";
|
|
54
|
+
PollResult_OrderBy2["AbstainPercentage"] = "abstainPercentage";
|
|
55
|
+
PollResult_OrderBy2["AbstainVotersCount"] = "abstainVotersCount";
|
|
56
|
+
PollResult_OrderBy2["Against"] = "against";
|
|
57
|
+
PollResult_OrderBy2["AgainstPercentage"] = "againstPercentage";
|
|
58
|
+
PollResult_OrderBy2["AgainstVotersCount"] = "againstVotersCount";
|
|
59
|
+
PollResult_OrderBy2["For"] = "for";
|
|
60
|
+
PollResult_OrderBy2["ForPercentage"] = "forPercentage";
|
|
61
|
+
PollResult_OrderBy2["ForVotersCount"] = "forVotersCount";
|
|
62
|
+
PollResult_OrderBy2["Id"] = "id";
|
|
63
|
+
PollResult_OrderBy2["Total"] = "total";
|
|
64
|
+
PollResult_OrderBy2["TotalTowardsQuorum"] = "totalTowardsQuorum";
|
|
65
|
+
PollResult_OrderBy2["TotalVotersCount"] = "totalVotersCount";
|
|
66
|
+
return PollResult_OrderBy2;
|
|
67
|
+
})(PollResult_OrderBy || {});
|
|
68
|
+
var ProposalStatus = /* @__PURE__ */ ((ProposalStatus2) => {
|
|
69
|
+
ProposalStatus2["Active"] = "ACTIVE";
|
|
70
|
+
ProposalStatus2["CanceledByGuardian"] = "CANCELED_BY_GUARDIAN";
|
|
71
|
+
ProposalStatus2["CanceledByUser"] = "CANCELED_BY_USER";
|
|
72
|
+
ProposalStatus2["Defeated"] = "DEFEATED";
|
|
73
|
+
ProposalStatus2["Executed"] = "EXECUTED";
|
|
74
|
+
ProposalStatus2["InQueue"] = "IN_QUEUE";
|
|
75
|
+
ProposalStatus2["Pending"] = "PENDING";
|
|
76
|
+
ProposalStatus2["PendingExecution"] = "PENDING_EXECUTION";
|
|
77
|
+
ProposalStatus2["PendingQueue"] = "PENDING_QUEUE";
|
|
78
|
+
ProposalStatus2["QuorumNotReached"] = "QUORUM_NOT_REACHED";
|
|
79
|
+
return ProposalStatus2;
|
|
80
|
+
})(ProposalStatus || {});
|
|
81
|
+
var Proposal_OrderBy = /* @__PURE__ */ ((Proposal_OrderBy2) => {
|
|
82
|
+
Proposal_OrderBy2["CancelTxHash"] = "cancelTxHash";
|
|
83
|
+
Proposal_OrderBy2["CanceledAt"] = "canceledAt";
|
|
84
|
+
Proposal_OrderBy2["CanceledAtBlock"] = "canceledAtBlock";
|
|
85
|
+
Proposal_OrderBy2["ContentEncoding"] = "contentEncoding";
|
|
86
|
+
Proposal_OrderBy2["ContentType"] = "contentType";
|
|
87
|
+
Proposal_OrderBy2["CreateTxHash"] = "createTxHash";
|
|
88
|
+
Proposal_OrderBy2["CreatedAt"] = "createdAt";
|
|
89
|
+
Proposal_OrderBy2["CreatedAtBlock"] = "createdAtBlock";
|
|
90
|
+
Proposal_OrderBy2["Description"] = "description";
|
|
91
|
+
Proposal_OrderBy2["ExecutableAtBlock"] = "executableAtBlock";
|
|
92
|
+
Proposal_OrderBy2["ExecutableCalls"] = "executableCalls";
|
|
93
|
+
Proposal_OrderBy2["ExecuteTxHash"] = "executeTxHash";
|
|
94
|
+
Proposal_OrderBy2["ExecutedAt"] = "executedAt";
|
|
95
|
+
Proposal_OrderBy2["ExecutedAtBlock"] = "executedAtBlock";
|
|
96
|
+
Proposal_OrderBy2["Id"] = "id";
|
|
97
|
+
Proposal_OrderBy2["PollResult"] = "pollResult";
|
|
98
|
+
Proposal_OrderBy2["PollResultAbstain"] = "pollResult__abstain";
|
|
99
|
+
Proposal_OrderBy2["PollResultAbstainPercentage"] = "pollResult__abstainPercentage";
|
|
100
|
+
Proposal_OrderBy2["PollResultAbstainVotersCount"] = "pollResult__abstainVotersCount";
|
|
101
|
+
Proposal_OrderBy2["PollResultAgainst"] = "pollResult__against";
|
|
102
|
+
Proposal_OrderBy2["PollResultAgainstPercentage"] = "pollResult__againstPercentage";
|
|
103
|
+
Proposal_OrderBy2["PollResultAgainstVotersCount"] = "pollResult__againstVotersCount";
|
|
104
|
+
Proposal_OrderBy2["PollResultFor"] = "pollResult__for";
|
|
105
|
+
Proposal_OrderBy2["PollResultForPercentage"] = "pollResult__forPercentage";
|
|
106
|
+
Proposal_OrderBy2["PollResultForVotersCount"] = "pollResult__forVotersCount";
|
|
107
|
+
Proposal_OrderBy2["PollResultId"] = "pollResult__id";
|
|
108
|
+
Proposal_OrderBy2["PollResultTotal"] = "pollResult__total";
|
|
109
|
+
Proposal_OrderBy2["PollResultTotalTowardsQuorum"] = "pollResult__totalTowardsQuorum";
|
|
110
|
+
Proposal_OrderBy2["PollResultTotalVotersCount"] = "pollResult__totalVotersCount";
|
|
111
|
+
Proposal_OrderBy2["ProposalId"] = "proposalId";
|
|
112
|
+
Proposal_OrderBy2["Proposer"] = "proposer";
|
|
113
|
+
Proposal_OrderBy2["QueueEnd"] = "queueEnd";
|
|
114
|
+
Proposal_OrderBy2["QueueStart"] = "queueStart";
|
|
115
|
+
Proposal_OrderBy2["QueueStartBlock"] = "queueStartBlock";
|
|
116
|
+
Proposal_OrderBy2["QueueTxHash"] = "queueTxHash";
|
|
117
|
+
Proposal_OrderBy2["Quorum"] = "quorum";
|
|
118
|
+
Proposal_OrderBy2["Status"] = "status";
|
|
119
|
+
Proposal_OrderBy2["SucceededAt"] = "succeededAt";
|
|
120
|
+
Proposal_OrderBy2["SucceededAtBlock"] = "succeededAtBlock";
|
|
121
|
+
Proposal_OrderBy2["SucceededVoteTxHash"] = "succeededVoteTxHash";
|
|
122
|
+
Proposal_OrderBy2["Timelock"] = "timelock";
|
|
123
|
+
Proposal_OrderBy2["TimelockId"] = "timelock__id";
|
|
124
|
+
Proposal_OrderBy2["Title"] = "title";
|
|
125
|
+
Proposal_OrderBy2["Topics"] = "topics";
|
|
126
|
+
Proposal_OrderBy2["UnparsedDescription"] = "unparsedDescription";
|
|
127
|
+
Proposal_OrderBy2["UnverifiedForumLink"] = "unverifiedForumLink";
|
|
128
|
+
Proposal_OrderBy2["VoteEndAt"] = "voteEndAt";
|
|
129
|
+
Proposal_OrderBy2["VoteStartAt"] = "voteStartAt";
|
|
130
|
+
Proposal_OrderBy2["Votes"] = "votes";
|
|
131
|
+
return Proposal_OrderBy2;
|
|
132
|
+
})(Proposal_OrderBy || {});
|
|
133
|
+
var Timelock_OrderBy = /* @__PURE__ */ ((Timelock_OrderBy2) => {
|
|
134
|
+
Timelock_OrderBy2["Id"] = "id";
|
|
135
|
+
Timelock_OrderBy2["Proposal"] = "proposal";
|
|
136
|
+
Timelock_OrderBy2["ProposalCancelTxHash"] = "proposal__cancelTxHash";
|
|
137
|
+
Timelock_OrderBy2["ProposalCanceledAt"] = "proposal__canceledAt";
|
|
138
|
+
Timelock_OrderBy2["ProposalCanceledAtBlock"] = "proposal__canceledAtBlock";
|
|
139
|
+
Timelock_OrderBy2["ProposalContentEncoding"] = "proposal__contentEncoding";
|
|
140
|
+
Timelock_OrderBy2["ProposalContentType"] = "proposal__contentType";
|
|
141
|
+
Timelock_OrderBy2["ProposalCreateTxHash"] = "proposal__createTxHash";
|
|
142
|
+
Timelock_OrderBy2["ProposalCreatedAt"] = "proposal__createdAt";
|
|
143
|
+
Timelock_OrderBy2["ProposalCreatedAtBlock"] = "proposal__createdAtBlock";
|
|
144
|
+
Timelock_OrderBy2["ProposalDescription"] = "proposal__description";
|
|
145
|
+
Timelock_OrderBy2["ProposalExecutableAtBlock"] = "proposal__executableAtBlock";
|
|
146
|
+
Timelock_OrderBy2["ProposalExecuteTxHash"] = "proposal__executeTxHash";
|
|
147
|
+
Timelock_OrderBy2["ProposalExecutedAt"] = "proposal__executedAt";
|
|
148
|
+
Timelock_OrderBy2["ProposalExecutedAtBlock"] = "proposal__executedAtBlock";
|
|
149
|
+
Timelock_OrderBy2["ProposalId"] = "proposal__id";
|
|
150
|
+
Timelock_OrderBy2["ProposalProposalId"] = "proposal__proposalId";
|
|
151
|
+
Timelock_OrderBy2["ProposalProposer"] = "proposal__proposer";
|
|
152
|
+
Timelock_OrderBy2["ProposalQueueEnd"] = "proposal__queueEnd";
|
|
153
|
+
Timelock_OrderBy2["ProposalQueueStart"] = "proposal__queueStart";
|
|
154
|
+
Timelock_OrderBy2["ProposalQueueStartBlock"] = "proposal__queueStartBlock";
|
|
155
|
+
Timelock_OrderBy2["ProposalQueueTxHash"] = "proposal__queueTxHash";
|
|
156
|
+
Timelock_OrderBy2["ProposalQuorum"] = "proposal__quorum";
|
|
157
|
+
Timelock_OrderBy2["ProposalStatus"] = "proposal__status";
|
|
158
|
+
Timelock_OrderBy2["ProposalSucceededAt"] = "proposal__succeededAt";
|
|
159
|
+
Timelock_OrderBy2["ProposalSucceededAtBlock"] = "proposal__succeededAtBlock";
|
|
160
|
+
Timelock_OrderBy2["ProposalSucceededVoteTxHash"] = "proposal__succeededVoteTxHash";
|
|
161
|
+
Timelock_OrderBy2["ProposalTitle"] = "proposal__title";
|
|
162
|
+
Timelock_OrderBy2["ProposalUnparsedDescription"] = "proposal__unparsedDescription";
|
|
163
|
+
Timelock_OrderBy2["ProposalUnverifiedForumLink"] = "proposal__unverifiedForumLink";
|
|
164
|
+
Timelock_OrderBy2["ProposalVoteEndAt"] = "proposal__voteEndAt";
|
|
165
|
+
Timelock_OrderBy2["ProposalVoteStartAt"] = "proposal__voteStartAt";
|
|
166
|
+
return Timelock_OrderBy2;
|
|
167
|
+
})(Timelock_OrderBy || {});
|
|
168
|
+
var VoteSupportType = /* @__PURE__ */ ((VoteSupportType2) => {
|
|
169
|
+
VoteSupportType2["Abstain"] = "ABSTAIN";
|
|
170
|
+
VoteSupportType2["Against"] = "AGAINST";
|
|
171
|
+
VoteSupportType2["For"] = "FOR";
|
|
172
|
+
return VoteSupportType2;
|
|
173
|
+
})(VoteSupportType || {});
|
|
174
|
+
var Vote_OrderBy = /* @__PURE__ */ ((Vote_OrderBy2) => {
|
|
175
|
+
Vote_OrderBy2["Id"] = "id";
|
|
176
|
+
Vote_OrderBy2["Params"] = "params";
|
|
177
|
+
Vote_OrderBy2["ProposalId"] = "proposalId";
|
|
178
|
+
Vote_OrderBy2["ProposalIdCancelTxHash"] = "proposalId__cancelTxHash";
|
|
179
|
+
Vote_OrderBy2["ProposalIdCanceledAt"] = "proposalId__canceledAt";
|
|
180
|
+
Vote_OrderBy2["ProposalIdCanceledAtBlock"] = "proposalId__canceledAtBlock";
|
|
181
|
+
Vote_OrderBy2["ProposalIdContentEncoding"] = "proposalId__contentEncoding";
|
|
182
|
+
Vote_OrderBy2["ProposalIdContentType"] = "proposalId__contentType";
|
|
183
|
+
Vote_OrderBy2["ProposalIdCreateTxHash"] = "proposalId__createTxHash";
|
|
184
|
+
Vote_OrderBy2["ProposalIdCreatedAt"] = "proposalId__createdAt";
|
|
185
|
+
Vote_OrderBy2["ProposalIdCreatedAtBlock"] = "proposalId__createdAtBlock";
|
|
186
|
+
Vote_OrderBy2["ProposalIdDescription"] = "proposalId__description";
|
|
187
|
+
Vote_OrderBy2["ProposalIdExecutableAtBlock"] = "proposalId__executableAtBlock";
|
|
188
|
+
Vote_OrderBy2["ProposalIdExecuteTxHash"] = "proposalId__executeTxHash";
|
|
189
|
+
Vote_OrderBy2["ProposalIdExecutedAt"] = "proposalId__executedAt";
|
|
190
|
+
Vote_OrderBy2["ProposalIdExecutedAtBlock"] = "proposalId__executedAtBlock";
|
|
191
|
+
Vote_OrderBy2["ProposalIdId"] = "proposalId__id";
|
|
192
|
+
Vote_OrderBy2["ProposalIdProposalId"] = "proposalId__proposalId";
|
|
193
|
+
Vote_OrderBy2["ProposalIdProposer"] = "proposalId__proposer";
|
|
194
|
+
Vote_OrderBy2["ProposalIdQueueEnd"] = "proposalId__queueEnd";
|
|
195
|
+
Vote_OrderBy2["ProposalIdQueueStart"] = "proposalId__queueStart";
|
|
196
|
+
Vote_OrderBy2["ProposalIdQueueStartBlock"] = "proposalId__queueStartBlock";
|
|
197
|
+
Vote_OrderBy2["ProposalIdQueueTxHash"] = "proposalId__queueTxHash";
|
|
198
|
+
Vote_OrderBy2["ProposalIdQuorum"] = "proposalId__quorum";
|
|
199
|
+
Vote_OrderBy2["ProposalIdStatus"] = "proposalId__status";
|
|
200
|
+
Vote_OrderBy2["ProposalIdSucceededAt"] = "proposalId__succeededAt";
|
|
201
|
+
Vote_OrderBy2["ProposalIdSucceededAtBlock"] = "proposalId__succeededAtBlock";
|
|
202
|
+
Vote_OrderBy2["ProposalIdSucceededVoteTxHash"] = "proposalId__succeededVoteTxHash";
|
|
203
|
+
Vote_OrderBy2["ProposalIdTitle"] = "proposalId__title";
|
|
204
|
+
Vote_OrderBy2["ProposalIdUnparsedDescription"] = "proposalId__unparsedDescription";
|
|
205
|
+
Vote_OrderBy2["ProposalIdUnverifiedForumLink"] = "proposalId__unverifiedForumLink";
|
|
206
|
+
Vote_OrderBy2["ProposalIdVoteEndAt"] = "proposalId__voteEndAt";
|
|
207
|
+
Vote_OrderBy2["ProposalIdVoteStartAt"] = "proposalId__voteStartAt";
|
|
208
|
+
Vote_OrderBy2["Reason"] = "reason";
|
|
209
|
+
Vote_OrderBy2["Support"] = "support";
|
|
210
|
+
Vote_OrderBy2["Timestamp"] = "timestamp";
|
|
211
|
+
Vote_OrderBy2["Voter"] = "voter";
|
|
212
|
+
Vote_OrderBy2["Weight"] = "weight";
|
|
213
|
+
return Vote_OrderBy2;
|
|
214
|
+
})(Vote_OrderBy || {});
|
|
215
|
+
var _SubgraphErrorPolicy_ = /* @__PURE__ */ ((_SubgraphErrorPolicy_2) => {
|
|
216
|
+
_SubgraphErrorPolicy_2["Allow"] = "allow";
|
|
217
|
+
_SubgraphErrorPolicy_2["Deny"] = "deny";
|
|
218
|
+
return _SubgraphErrorPolicy_2;
|
|
219
|
+
})(_SubgraphErrorPolicy_ || {});
|
|
220
|
+
var ProposalSelection = gql`
|
|
2
221
|
fragment ProposalSelection on Proposal {
|
|
3
222
|
id
|
|
4
223
|
proposer
|
|
@@ -37,14 +256,16 @@ import{gql as p}from"@apollo/client";var c=(i=>(i.Day="day",i.Hour="hour",i))(c|
|
|
|
37
256
|
title
|
|
38
257
|
topics
|
|
39
258
|
}
|
|
40
|
-
|
|
259
|
+
`;
|
|
260
|
+
var ExecutableCallSubset = gql`
|
|
41
261
|
fragment ExecutableCallSubset on ExecutableCall {
|
|
42
262
|
id
|
|
43
263
|
target
|
|
44
264
|
value
|
|
45
265
|
calldata
|
|
46
266
|
}
|
|
47
|
-
|
|
267
|
+
`;
|
|
268
|
+
var ProposalVote = gql`
|
|
48
269
|
fragment ProposalVote on Vote {
|
|
49
270
|
id
|
|
50
271
|
voter
|
|
@@ -53,7 +274,8 @@ import{gql as p}from"@apollo/client";var c=(i=>(i.Day="day",i.Hour="hour",i))(c|
|
|
|
53
274
|
timestamp
|
|
54
275
|
reason
|
|
55
276
|
}
|
|
56
|
-
|
|
277
|
+
`;
|
|
278
|
+
var ProposalWithVotes = gql`
|
|
57
279
|
fragment ProposalWithVotes on Proposal {
|
|
58
280
|
...ProposalSelection
|
|
59
281
|
queueTxHash
|
|
@@ -70,9 +292,10 @@ import{gql as p}from"@apollo/client";var c=(i=>(i.Day="day",i.Hour="hour",i))(c|
|
|
|
70
292
|
...ProposalVote
|
|
71
293
|
}
|
|
72
294
|
}
|
|
73
|
-
${
|
|
74
|
-
${
|
|
75
|
-
${
|
|
295
|
+
${ProposalSelection}
|
|
296
|
+
${ExecutableCallSubset}
|
|
297
|
+
${ProposalVote}`;
|
|
298
|
+
var GetProposalVotes = gql`
|
|
76
299
|
query GetProposalVotes($proposalId: String!, $orderBy: Vote_orderBy = weight, $orderDirection: OrderDirection = desc, $limit: Int!, $offset: Int) {
|
|
77
300
|
votes(
|
|
78
301
|
where: {proposalId: $proposalId}
|
|
@@ -84,7 +307,8 @@ ${l}`,m=p`
|
|
|
84
307
|
...ProposalVote
|
|
85
308
|
}
|
|
86
309
|
}
|
|
87
|
-
${
|
|
310
|
+
${ProposalVote}`;
|
|
311
|
+
var GetProposals = gql`
|
|
88
312
|
query GetProposals($offset: Int, $limit: Int, $where: Proposal_filter, $orderBy: Proposal_orderBy = createdAt, $orderDirection: OrderDirection = desc) {
|
|
89
313
|
proposals(
|
|
90
314
|
skip: $offset
|
|
@@ -96,7 +320,8 @@ ${l}`,m=p`
|
|
|
96
320
|
...ProposalSelection
|
|
97
321
|
}
|
|
98
322
|
}
|
|
99
|
-
${
|
|
323
|
+
${ProposalSelection}`;
|
|
324
|
+
var SearchProposals = gql`
|
|
100
325
|
query SearchProposals($offset: Int, $limit: Int, $where: Proposal_filter, $text: String!) {
|
|
101
326
|
proposals: proposalSearch(
|
|
102
327
|
skip: $offset
|
|
@@ -107,10 +332,36 @@ ${l}`,m=p`
|
|
|
107
332
|
...ProposalSelection
|
|
108
333
|
}
|
|
109
334
|
}
|
|
110
|
-
${
|
|
335
|
+
${ProposalSelection}`;
|
|
336
|
+
var GetProposal = gql`
|
|
111
337
|
query GetProposal($id: ID!) {
|
|
112
338
|
proposal(id: $id) {
|
|
113
339
|
...ProposalWithVotes
|
|
114
340
|
}
|
|
115
341
|
}
|
|
116
|
-
${
|
|
342
|
+
${ProposalWithVotes}`;
|
|
343
|
+
var result = {
|
|
344
|
+
possibleTypes: {}
|
|
345
|
+
};
|
|
346
|
+
var governance_codegen_default = result;
|
|
347
|
+
export {
|
|
348
|
+
Aggregation_Interval,
|
|
349
|
+
ExecutableCallSubset,
|
|
350
|
+
ExecutableCall_OrderBy,
|
|
351
|
+
GetProposal,
|
|
352
|
+
GetProposalVotes,
|
|
353
|
+
GetProposals,
|
|
354
|
+
OrderDirection,
|
|
355
|
+
PollResult_OrderBy,
|
|
356
|
+
ProposalSelection,
|
|
357
|
+
ProposalStatus,
|
|
358
|
+
ProposalVote,
|
|
359
|
+
ProposalWithVotes,
|
|
360
|
+
Proposal_OrderBy,
|
|
361
|
+
SearchProposals,
|
|
362
|
+
Timelock_OrderBy,
|
|
363
|
+
VoteSupportType,
|
|
364
|
+
Vote_OrderBy,
|
|
365
|
+
_SubgraphErrorPolicy_,
|
|
366
|
+
governance_codegen_default as default
|
|
367
|
+
};
|