@berachain/graphql 0.4.13 → 0.4.15
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/chain/chain.codegen.cjs +12 -0
- package/dist/chain/chain.codegen.d.cts +351 -0
- package/dist/chain/chain.codegen.d.ts +351 -0
- package/dist/chain/chain.codegen.mjs +12 -0
- package/dist/governance/governance.codegen.cjs +116 -0
- package/dist/governance/governance.codegen.d.cts +1533 -0
- package/dist/governance/governance.codegen.d.ts +1533 -0
- package/dist/governance/governance.codegen.mjs +116 -0
- package/dist/honey/honey.codegen.cjs +42 -0
- package/dist/honey/honey.codegen.d.cts +735 -0
- package/dist/honey/honey.codegen.d.ts +735 -0
- package/dist/honey/honey.codegen.mjs +42 -0
- package/dist/pol/subgraph.codegen.cjs +15 -7
- package/dist/pol/subgraph.codegen.d.cts +14 -1
- package/dist/pol/subgraph.codegen.d.ts +14 -1
- package/dist/pol/subgraph.codegen.mjs +10 -2
- package/package.json +3 -12
- package/dist/pol/fees.codegen.cjs +0 -9
- package/dist/pol/fees.codegen.d.cts +0 -489
- package/dist/pol/fees.codegen.d.ts +0 -489
- package/dist/pol/fees.codegen.mjs +0 -9
|
@@ -0,0 +1,351 @@
|
|
|
1
|
+
import * as _apollo_client from '@apollo/client';
|
|
2
|
+
|
|
3
|
+
type Maybe<T> = T | null;
|
|
4
|
+
type InputMaybe<T> = Maybe<T>;
|
|
5
|
+
type Exact<T extends {
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}> = {
|
|
8
|
+
[K in keyof T]: T[K];
|
|
9
|
+
};
|
|
10
|
+
type MakeOptional<T, K extends keyof T> = Omit<T, K> & {
|
|
11
|
+
[SubKey in K]?: Maybe<T[SubKey]>;
|
|
12
|
+
};
|
|
13
|
+
type MakeMaybe<T, K extends keyof T> = Omit<T, K> & {
|
|
14
|
+
[SubKey in K]: Maybe<T[SubKey]>;
|
|
15
|
+
};
|
|
16
|
+
type MakeEmpty<T extends {
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}, K extends keyof T> = {
|
|
19
|
+
[_ in K]?: never;
|
|
20
|
+
};
|
|
21
|
+
type Incremental<T> = T | {
|
|
22
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
23
|
+
};
|
|
24
|
+
/** All built-in and custom scalars, mapped to their actual values */
|
|
25
|
+
type Scalars = {
|
|
26
|
+
ID: {
|
|
27
|
+
input: string;
|
|
28
|
+
output: string;
|
|
29
|
+
};
|
|
30
|
+
String: {
|
|
31
|
+
input: string;
|
|
32
|
+
output: string;
|
|
33
|
+
};
|
|
34
|
+
Boolean: {
|
|
35
|
+
input: boolean;
|
|
36
|
+
output: boolean;
|
|
37
|
+
};
|
|
38
|
+
Int: {
|
|
39
|
+
input: number;
|
|
40
|
+
output: number;
|
|
41
|
+
};
|
|
42
|
+
Float: {
|
|
43
|
+
input: number;
|
|
44
|
+
output: number;
|
|
45
|
+
};
|
|
46
|
+
BigDecimal: {
|
|
47
|
+
input: string;
|
|
48
|
+
output: string;
|
|
49
|
+
};
|
|
50
|
+
BigInt: {
|
|
51
|
+
input: string;
|
|
52
|
+
output: string;
|
|
53
|
+
};
|
|
54
|
+
Bytes: {
|
|
55
|
+
input: `0x${string}`;
|
|
56
|
+
output: `0x${string}`;
|
|
57
|
+
};
|
|
58
|
+
Int8: {
|
|
59
|
+
input: string;
|
|
60
|
+
output: string;
|
|
61
|
+
};
|
|
62
|
+
Timestamp: {
|
|
63
|
+
input: string;
|
|
64
|
+
output: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
declare enum Aggregation_Interval {
|
|
68
|
+
Day = "day",
|
|
69
|
+
Hour = "hour"
|
|
70
|
+
}
|
|
71
|
+
type Block = {
|
|
72
|
+
__typename?: 'Block';
|
|
73
|
+
author: Scalars['Bytes']['output'];
|
|
74
|
+
baseFeePerGas?: Maybe<Scalars['BigInt']['output']>;
|
|
75
|
+
difficulty: Scalars['BigInt']['output'];
|
|
76
|
+
gasLimit: Scalars['BigInt']['output'];
|
|
77
|
+
gasUsed: Scalars['BigInt']['output'];
|
|
78
|
+
hash: Scalars['Bytes']['output'];
|
|
79
|
+
id: Scalars['Bytes']['output'];
|
|
80
|
+
number: Scalars['BigInt']['output'];
|
|
81
|
+
parentHash: Scalars['Bytes']['output'];
|
|
82
|
+
receiptsRoot: Scalars['Bytes']['output'];
|
|
83
|
+
size?: Maybe<Scalars['BigInt']['output']>;
|
|
84
|
+
stateRoot: Scalars['Bytes']['output'];
|
|
85
|
+
timestamp: Scalars['BigInt']['output'];
|
|
86
|
+
totalDifficulty: Scalars['BigInt']['output'];
|
|
87
|
+
transactionsRoot: Scalars['Bytes']['output'];
|
|
88
|
+
unclesHash: Scalars['Bytes']['output'];
|
|
89
|
+
};
|
|
90
|
+
type BlockChangedFilter = {
|
|
91
|
+
number_gte: Scalars['Int']['input'];
|
|
92
|
+
};
|
|
93
|
+
type Block_Filter = {
|
|
94
|
+
/** Filter for the block changed event. */
|
|
95
|
+
_change_block?: InputMaybe<BlockChangedFilter>;
|
|
96
|
+
and?: InputMaybe<Array<InputMaybe<Block_Filter>>>;
|
|
97
|
+
author?: InputMaybe<Scalars['Bytes']['input']>;
|
|
98
|
+
author_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
99
|
+
author_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
100
|
+
author_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
101
|
+
author_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
102
|
+
author_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
103
|
+
author_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
104
|
+
author_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
105
|
+
author_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
106
|
+
author_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
107
|
+
baseFeePerGas?: InputMaybe<Scalars['BigInt']['input']>;
|
|
108
|
+
baseFeePerGas_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
109
|
+
baseFeePerGas_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
110
|
+
baseFeePerGas_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
111
|
+
baseFeePerGas_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
112
|
+
baseFeePerGas_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
113
|
+
baseFeePerGas_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
114
|
+
baseFeePerGas_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
115
|
+
difficulty?: InputMaybe<Scalars['BigInt']['input']>;
|
|
116
|
+
difficulty_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
117
|
+
difficulty_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
118
|
+
difficulty_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
119
|
+
difficulty_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
120
|
+
difficulty_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
121
|
+
difficulty_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
122
|
+
difficulty_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
123
|
+
gasLimit?: InputMaybe<Scalars['BigInt']['input']>;
|
|
124
|
+
gasLimit_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
125
|
+
gasLimit_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
126
|
+
gasLimit_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
127
|
+
gasLimit_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
128
|
+
gasLimit_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
129
|
+
gasLimit_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
130
|
+
gasLimit_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
131
|
+
gasUsed?: InputMaybe<Scalars['BigInt']['input']>;
|
|
132
|
+
gasUsed_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
133
|
+
gasUsed_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
134
|
+
gasUsed_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
135
|
+
gasUsed_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
136
|
+
gasUsed_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
137
|
+
gasUsed_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
138
|
+
gasUsed_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
139
|
+
hash?: InputMaybe<Scalars['Bytes']['input']>;
|
|
140
|
+
hash_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
141
|
+
hash_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
142
|
+
hash_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
143
|
+
hash_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
144
|
+
hash_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
145
|
+
hash_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
146
|
+
hash_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
147
|
+
hash_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
148
|
+
hash_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
149
|
+
id?: InputMaybe<Scalars['Bytes']['input']>;
|
|
150
|
+
id_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
151
|
+
id_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
152
|
+
id_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
153
|
+
id_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
154
|
+
id_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
155
|
+
id_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
156
|
+
id_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
157
|
+
id_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
158
|
+
id_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
159
|
+
number?: InputMaybe<Scalars['BigInt']['input']>;
|
|
160
|
+
number_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
161
|
+
number_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
162
|
+
number_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
163
|
+
number_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
164
|
+
number_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
165
|
+
number_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
166
|
+
number_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
167
|
+
or?: InputMaybe<Array<InputMaybe<Block_Filter>>>;
|
|
168
|
+
parentHash?: InputMaybe<Scalars['Bytes']['input']>;
|
|
169
|
+
parentHash_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
170
|
+
parentHash_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
171
|
+
parentHash_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
172
|
+
parentHash_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
173
|
+
parentHash_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
174
|
+
parentHash_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
175
|
+
parentHash_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
176
|
+
parentHash_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
177
|
+
parentHash_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
178
|
+
receiptsRoot?: InputMaybe<Scalars['Bytes']['input']>;
|
|
179
|
+
receiptsRoot_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
180
|
+
receiptsRoot_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
181
|
+
receiptsRoot_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
182
|
+
receiptsRoot_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
183
|
+
receiptsRoot_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
184
|
+
receiptsRoot_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
185
|
+
receiptsRoot_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
186
|
+
receiptsRoot_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
187
|
+
receiptsRoot_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
188
|
+
size?: InputMaybe<Scalars['BigInt']['input']>;
|
|
189
|
+
size_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
190
|
+
size_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
191
|
+
size_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
192
|
+
size_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
193
|
+
size_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
194
|
+
size_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
195
|
+
size_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
196
|
+
stateRoot?: InputMaybe<Scalars['Bytes']['input']>;
|
|
197
|
+
stateRoot_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
198
|
+
stateRoot_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
199
|
+
stateRoot_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
200
|
+
stateRoot_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
201
|
+
stateRoot_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
202
|
+
stateRoot_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
203
|
+
stateRoot_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
204
|
+
stateRoot_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
205
|
+
stateRoot_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
206
|
+
timestamp?: InputMaybe<Scalars['BigInt']['input']>;
|
|
207
|
+
timestamp_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
208
|
+
timestamp_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
209
|
+
timestamp_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
210
|
+
timestamp_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
211
|
+
timestamp_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
212
|
+
timestamp_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
213
|
+
timestamp_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
214
|
+
totalDifficulty?: InputMaybe<Scalars['BigInt']['input']>;
|
|
215
|
+
totalDifficulty_gt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
216
|
+
totalDifficulty_gte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
217
|
+
totalDifficulty_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
218
|
+
totalDifficulty_lt?: InputMaybe<Scalars['BigInt']['input']>;
|
|
219
|
+
totalDifficulty_lte?: InputMaybe<Scalars['BigInt']['input']>;
|
|
220
|
+
totalDifficulty_not?: InputMaybe<Scalars['BigInt']['input']>;
|
|
221
|
+
totalDifficulty_not_in?: InputMaybe<Array<Scalars['BigInt']['input']>>;
|
|
222
|
+
transactionsRoot?: InputMaybe<Scalars['Bytes']['input']>;
|
|
223
|
+
transactionsRoot_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
224
|
+
transactionsRoot_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
225
|
+
transactionsRoot_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
226
|
+
transactionsRoot_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
227
|
+
transactionsRoot_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
228
|
+
transactionsRoot_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
229
|
+
transactionsRoot_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
230
|
+
transactionsRoot_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
231
|
+
transactionsRoot_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
232
|
+
unclesHash?: InputMaybe<Scalars['Bytes']['input']>;
|
|
233
|
+
unclesHash_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
234
|
+
unclesHash_gt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
235
|
+
unclesHash_gte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
236
|
+
unclesHash_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
237
|
+
unclesHash_lt?: InputMaybe<Scalars['Bytes']['input']>;
|
|
238
|
+
unclesHash_lte?: InputMaybe<Scalars['Bytes']['input']>;
|
|
239
|
+
unclesHash_not?: InputMaybe<Scalars['Bytes']['input']>;
|
|
240
|
+
unclesHash_not_contains?: InputMaybe<Scalars['Bytes']['input']>;
|
|
241
|
+
unclesHash_not_in?: InputMaybe<Array<Scalars['Bytes']['input']>>;
|
|
242
|
+
};
|
|
243
|
+
type Block_Height = {
|
|
244
|
+
hash?: InputMaybe<Scalars['Bytes']['input']>;
|
|
245
|
+
number?: InputMaybe<Scalars['Int']['input']>;
|
|
246
|
+
number_gte?: InputMaybe<Scalars['Int']['input']>;
|
|
247
|
+
};
|
|
248
|
+
declare enum Block_OrderBy {
|
|
249
|
+
Author = "author",
|
|
250
|
+
BaseFeePerGas = "baseFeePerGas",
|
|
251
|
+
Difficulty = "difficulty",
|
|
252
|
+
GasLimit = "gasLimit",
|
|
253
|
+
GasUsed = "gasUsed",
|
|
254
|
+
Hash = "hash",
|
|
255
|
+
Id = "id",
|
|
256
|
+
Number = "number",
|
|
257
|
+
ParentHash = "parentHash",
|
|
258
|
+
ReceiptsRoot = "receiptsRoot",
|
|
259
|
+
Size = "size",
|
|
260
|
+
StateRoot = "stateRoot",
|
|
261
|
+
Timestamp = "timestamp",
|
|
262
|
+
TotalDifficulty = "totalDifficulty",
|
|
263
|
+
TransactionsRoot = "transactionsRoot",
|
|
264
|
+
UnclesHash = "unclesHash"
|
|
265
|
+
}
|
|
266
|
+
/** Defines the order direction, either ascending or descending */
|
|
267
|
+
declare enum OrderDirection {
|
|
268
|
+
Asc = "asc",
|
|
269
|
+
Desc = "desc"
|
|
270
|
+
}
|
|
271
|
+
type Query = {
|
|
272
|
+
__typename?: 'Query';
|
|
273
|
+
/** Access to subgraph metadata */
|
|
274
|
+
_meta?: Maybe<_Meta_>;
|
|
275
|
+
block?: Maybe<Block>;
|
|
276
|
+
blocks: Array<Block>;
|
|
277
|
+
};
|
|
278
|
+
type Query_MetaArgs = {
|
|
279
|
+
block?: InputMaybe<Block_Height>;
|
|
280
|
+
};
|
|
281
|
+
type QueryBlockArgs = {
|
|
282
|
+
block?: InputMaybe<Block_Height>;
|
|
283
|
+
id: Scalars['ID']['input'];
|
|
284
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
285
|
+
};
|
|
286
|
+
type QueryBlocksArgs = {
|
|
287
|
+
block?: InputMaybe<Block_Height>;
|
|
288
|
+
first?: InputMaybe<Scalars['Int']['input']>;
|
|
289
|
+
orderBy?: InputMaybe<Block_OrderBy>;
|
|
290
|
+
orderDirection?: InputMaybe<OrderDirection>;
|
|
291
|
+
skip?: InputMaybe<Scalars['Int']['input']>;
|
|
292
|
+
subgraphError?: _SubgraphErrorPolicy_;
|
|
293
|
+
where?: InputMaybe<Block_Filter>;
|
|
294
|
+
};
|
|
295
|
+
type _Block_ = {
|
|
296
|
+
__typename?: '_Block_';
|
|
297
|
+
/** The hash of the block */
|
|
298
|
+
hash?: Maybe<Scalars['Bytes']['output']>;
|
|
299
|
+
/** The block number */
|
|
300
|
+
number: Scalars['Int']['output'];
|
|
301
|
+
/** The hash of the parent block */
|
|
302
|
+
parentHash?: Maybe<Scalars['Bytes']['output']>;
|
|
303
|
+
/** Integer representation of the timestamp stored in blocks for the chain */
|
|
304
|
+
timestamp?: Maybe<Scalars['Int']['output']>;
|
|
305
|
+
};
|
|
306
|
+
/** The type for the top-level _meta field */
|
|
307
|
+
type _Meta_ = {
|
|
308
|
+
__typename?: '_Meta_';
|
|
309
|
+
/**
|
|
310
|
+
* Information about a specific subgraph block. The hash of the block
|
|
311
|
+
* will be null if the _meta field has a block constraint that asks for
|
|
312
|
+
* a block number. It will be filled if the _meta field has no block constraint
|
|
313
|
+
* and therefore asks for the latest block
|
|
314
|
+
*/
|
|
315
|
+
block: _Block_;
|
|
316
|
+
/** The deployment ID */
|
|
317
|
+
deployment: Scalars['String']['output'];
|
|
318
|
+
/** If `true`, the subgraph encountered indexing errors at some past block */
|
|
319
|
+
hasIndexingErrors: Scalars['Boolean']['output'];
|
|
320
|
+
};
|
|
321
|
+
declare enum _SubgraphErrorPolicy_ {
|
|
322
|
+
/** Data will be returned even if the subgraph has indexing errors */
|
|
323
|
+
Allow = "allow",
|
|
324
|
+
/** If the subgraph has indexing errors, data will be omitted. The default. */
|
|
325
|
+
Deny = "deny"
|
|
326
|
+
}
|
|
327
|
+
type GetBlocksTimeStampQueryVariables = Exact<{
|
|
328
|
+
skip: Scalars['Int']['input'];
|
|
329
|
+
}>;
|
|
330
|
+
type GetBlocksTimeStampQuery = {
|
|
331
|
+
__typename?: 'Query';
|
|
332
|
+
newest: Array<{
|
|
333
|
+
__typename?: 'Block';
|
|
334
|
+
timestamp: string;
|
|
335
|
+
number: string;
|
|
336
|
+
}>;
|
|
337
|
+
oldest: Array<{
|
|
338
|
+
__typename?: 'Block';
|
|
339
|
+
timestamp: string;
|
|
340
|
+
number: string;
|
|
341
|
+
}>;
|
|
342
|
+
};
|
|
343
|
+
declare const GetBlocksTimeStamp: _apollo_client.DocumentNode;
|
|
344
|
+
interface PossibleTypesResultData {
|
|
345
|
+
possibleTypes: {
|
|
346
|
+
[key: string]: string[];
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
declare const result: PossibleTypesResultData;
|
|
350
|
+
|
|
351
|
+
export { Aggregation_Interval, type Block, type BlockChangedFilter, type Block_Filter, type Block_Height, Block_OrderBy, type Exact, GetBlocksTimeStamp, type GetBlocksTimeStampQuery, type GetBlocksTimeStampQueryVariables, type Incremental, type InputMaybe, type MakeEmpty, type MakeMaybe, type MakeOptional, type Maybe, OrderDirection, type PossibleTypesResultData, type Query, type QueryBlockArgs, type QueryBlocksArgs, type Query_MetaArgs, type Scalars, type _Block_, type _Meta_, _SubgraphErrorPolicy_, result as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import{gql as n}from"@apollo/client";var e=(a=>(a.Day="day",a.Hour="hour",a))(e||{}),s=(t=>(t.Author="author",t.BaseFeePerGas="baseFeePerGas",t.Difficulty="difficulty",t.GasLimit="gasLimit",t.GasUsed="gasUsed",t.Hash="hash",t.Id="id",t.Number="number",t.ParentHash="parentHash",t.ReceiptsRoot="receiptsRoot",t.Size="size",t.StateRoot="stateRoot",t.Timestamp="timestamp",t.TotalDifficulty="totalDifficulty",t.TransactionsRoot="transactionsRoot",t.UnclesHash="unclesHash",t))(s||{}),u=(a=>(a.Asc="asc",a.Desc="desc",a))(u||{}),i=(a=>(a.Allow="allow",a.Deny="deny",a))(i||{}),y=n`
|
|
2
|
+
query GetBlocksTimeStamp($skip: Int!) {
|
|
3
|
+
newest: blocks(first: 1, orderBy: timestamp, orderDirection: desc) {
|
|
4
|
+
timestamp
|
|
5
|
+
number
|
|
6
|
+
}
|
|
7
|
+
oldest: blocks(first: 1, orderBy: timestamp, orderDirection: desc, skip: $skip) {
|
|
8
|
+
timestamp
|
|
9
|
+
number
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
`,p={possibleTypes:{}},l=p;export{e as Aggregation_Interval,s as Block_OrderBy,y as GetBlocksTimeStamp,u as OrderDirection,i as _SubgraphErrorPolicy_,l as default};
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";var _=Object.defineProperty;var T=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var f=Object.prototype.hasOwnProperty;var E=(o,p)=>{for(var r in p)_(o,r,{get:p[r],enumerable:!0})},H=(o,p,r,l)=>{if(p&&typeof p=="object"||typeof p=="function")for(let c of w(p))!f.call(o,c)&&c!==r&&_(o,c,{get:()=>p[c],enumerable:!(l=T(p,c))||l.enumerable});return o};var C=o=>H(_({},"__esModule",{value:!0}),o);var Q={};E(Q,{Aggregation_Interval:()=>g,ExecutableCallSubset:()=>m,ExecutableCall_OrderBy:()=>y,GetProposal:()=>q,GetProposalVotes:()=>v,GetProposals:()=>V,OrderDirection:()=>b,PollResult_OrderBy:()=>M,ProposalSelection:()=>I,ProposalStatus:()=>d,ProposalVote:()=>S,ProposalWithVotes:()=>k,Proposal_OrderBy:()=>A,SearchProposals:()=>D,Timelock_OrderBy:()=>B,VoteSupportType:()=>h,Vote_OrderBy:()=>x,_SubgraphErrorPolicy_:()=>P,default:()=>R});module.exports=C(Q);var u=require("@apollo/client"),g=(r=>(r.Day="day",r.Hour="hour",r))(g||{}),y=(n=>(n.Calldata="calldata",n.Id="id",n.Proposal="proposal",n.ProposalCancelTxHash="proposal__cancelTxHash",n.ProposalCanceledAt="proposal__canceledAt",n.ProposalCanceledAtBlock="proposal__canceledAtBlock",n.ProposalContentEncoding="proposal__contentEncoding",n.ProposalContentType="proposal__contentType",n.ProposalCreateTxHash="proposal__createTxHash",n.ProposalCreatedAt="proposal__createdAt",n.ProposalCreatedAtBlock="proposal__createdAtBlock",n.ProposalDescription="proposal__description",n.ProposalExecutableAtBlock="proposal__executableAtBlock",n.ProposalExecuteTxHash="proposal__executeTxHash",n.ProposalExecutedAt="proposal__executedAt",n.ProposalExecutedAtBlock="proposal__executedAtBlock",n.ProposalId="proposal__id",n.ProposalProposalId="proposal__proposalId",n.ProposalProposer="proposal__proposer",n.ProposalQueueEnd="proposal__queueEnd",n.ProposalQueueStart="proposal__queueStart",n.ProposalQueueStartBlock="proposal__queueStartBlock",n.ProposalQueueTxHash="proposal__queueTxHash",n.ProposalQuorum="proposal__quorum",n.ProposalStatus="proposal__status",n.ProposalSucceededAt="proposal__succeededAt",n.ProposalSucceededAtBlock="proposal__succeededAtBlock",n.ProposalSucceededVoteTxHash="proposal__succeededVoteTxHash",n.ProposalTitle="proposal__title",n.ProposalUnparsedDescription="proposal__unparsedDescription",n.ProposalUnverifiedForumLink="proposal__unverifiedForumLink",n.ProposalVoteEndAt="proposal__voteEndAt",n.ProposalVoteStartAt="proposal__voteStartAt",n.Signature="signature",n.Target="target",n.Value="value",n))(y||{}),b=(r=>(r.Asc="asc",r.Desc="desc",r))(b||{}),M=(s=>(s.Abstain="abstain",s.AbstainPercentage="abstainPercentage",s.AbstainVotersCount="abstainVotersCount",s.Against="against",s.AgainstPercentage="againstPercentage",s.AgainstVotersCount="againstVotersCount",s.For="for",s.ForPercentage="forPercentage",s.ForVotersCount="forVotersCount",s.Id="id",s.Total="total",s.TotalTowardsQuorum="totalTowardsQuorum",s.TotalVotersCount="totalVotersCount",s))(M||{}),d=(i=>(i.Active="ACTIVE",i.CanceledByGuardian="CANCELED_BY_GUARDIAN",i.CanceledByUser="CANCELED_BY_USER",i.Defeated="DEFEATED",i.Executed="EXECUTED",i.InQueue="IN_QUEUE",i.Pending="PENDING",i.PendingExecution="PENDING_EXECUTION",i.PendingQueue="PENDING_QUEUE",i.QuorumNotReached="QUORUM_NOT_REACHED",i))(d||{}),A=(t=>(t.CancelTxHash="cancelTxHash",t.CanceledAt="canceledAt",t.CanceledAtBlock="canceledAtBlock",t.ContentEncoding="contentEncoding",t.ContentType="contentType",t.CreateTxHash="createTxHash",t.CreatedAt="createdAt",t.CreatedAtBlock="createdAtBlock",t.Description="description",t.ExecutableAtBlock="executableAtBlock",t.ExecutableCalls="executableCalls",t.ExecuteTxHash="executeTxHash",t.ExecutedAt="executedAt",t.ExecutedAtBlock="executedAtBlock",t.Id="id",t.PollResult="pollResult",t.PollResultAbstain="pollResult__abstain",t.PollResultAbstainPercentage="pollResult__abstainPercentage",t.PollResultAbstainVotersCount="pollResult__abstainVotersCount",t.PollResultAgainst="pollResult__against",t.PollResultAgainstPercentage="pollResult__againstPercentage",t.PollResultAgainstVotersCount="pollResult__againstVotersCount",t.PollResultFor="pollResult__for",t.PollResultForPercentage="pollResult__forPercentage",t.PollResultForVotersCount="pollResult__forVotersCount",t.PollResultId="pollResult__id",t.PollResultTotal="pollResult__total",t.PollResultTotalTowardsQuorum="pollResult__totalTowardsQuorum",t.PollResultTotalVotersCount="pollResult__totalVotersCount",t.ProposalId="proposalId",t.Proposer="proposer",t.QueueEnd="queueEnd",t.QueueStart="queueStart",t.QueueStartBlock="queueStartBlock",t.QueueTxHash="queueTxHash",t.Quorum="quorum",t.Status="status",t.SucceededAt="succeededAt",t.SucceededAtBlock="succeededAtBlock",t.SucceededVoteTxHash="succeededVoteTxHash",t.Timelock="timelock",t.TimelockId="timelock__id",t.Title="title",t.Topics="topics",t.UnparsedDescription="unparsedDescription",t.UnverifiedForumLink="unverifiedForumLink",t.VoteEndAt="voteEndAt",t.VoteStartAt="voteStartAt",t.Votes="votes",t))(A||{}),B=(e=>(e.Id="id",e.Proposal="proposal",e.ProposalCancelTxHash="proposal__cancelTxHash",e.ProposalCanceledAt="proposal__canceledAt",e.ProposalCanceledAtBlock="proposal__canceledAtBlock",e.ProposalContentEncoding="proposal__contentEncoding",e.ProposalContentType="proposal__contentType",e.ProposalCreateTxHash="proposal__createTxHash",e.ProposalCreatedAt="proposal__createdAt",e.ProposalCreatedAtBlock="proposal__createdAtBlock",e.ProposalDescription="proposal__description",e.ProposalExecutableAtBlock="proposal__executableAtBlock",e.ProposalExecuteTxHash="proposal__executeTxHash",e.ProposalExecutedAt="proposal__executedAt",e.ProposalExecutedAtBlock="proposal__executedAtBlock",e.ProposalId="proposal__id",e.ProposalProposalId="proposal__proposalId",e.ProposalProposer="proposal__proposer",e.ProposalQueueEnd="proposal__queueEnd",e.ProposalQueueStart="proposal__queueStart",e.ProposalQueueStartBlock="proposal__queueStartBlock",e.ProposalQueueTxHash="proposal__queueTxHash",e.ProposalQuorum="proposal__quorum",e.ProposalStatus="proposal__status",e.ProposalSucceededAt="proposal__succeededAt",e.ProposalSucceededAtBlock="proposal__succeededAtBlock",e.ProposalSucceededVoteTxHash="proposal__succeededVoteTxHash",e.ProposalTitle="proposal__title",e.ProposalUnparsedDescription="proposal__unparsedDescription",e.ProposalUnverifiedForumLink="proposal__unverifiedForumLink",e.ProposalVoteEndAt="proposal__voteEndAt",e.ProposalVoteStartAt="proposal__voteStartAt",e))(B||{}),h=(l=>(l.Abstain="ABSTAIN",l.Against="AGAINST",l.For="FOR",l))(h||{}),x=(a=>(a.Id="id",a.Params="params",a.ProposalId="proposalId",a.ProposalIdCancelTxHash="proposalId__cancelTxHash",a.ProposalIdCanceledAt="proposalId__canceledAt",a.ProposalIdCanceledAtBlock="proposalId__canceledAtBlock",a.ProposalIdContentEncoding="proposalId__contentEncoding",a.ProposalIdContentType="proposalId__contentType",a.ProposalIdCreateTxHash="proposalId__createTxHash",a.ProposalIdCreatedAt="proposalId__createdAt",a.ProposalIdCreatedAtBlock="proposalId__createdAtBlock",a.ProposalIdDescription="proposalId__description",a.ProposalIdExecutableAtBlock="proposalId__executableAtBlock",a.ProposalIdExecuteTxHash="proposalId__executeTxHash",a.ProposalIdExecutedAt="proposalId__executedAt",a.ProposalIdExecutedAtBlock="proposalId__executedAtBlock",a.ProposalIdId="proposalId__id",a.ProposalIdProposalId="proposalId__proposalId",a.ProposalIdProposer="proposalId__proposer",a.ProposalIdQueueEnd="proposalId__queueEnd",a.ProposalIdQueueStart="proposalId__queueStart",a.ProposalIdQueueStartBlock="proposalId__queueStartBlock",a.ProposalIdQueueTxHash="proposalId__queueTxHash",a.ProposalIdQuorum="proposalId__quorum",a.ProposalIdStatus="proposalId__status",a.ProposalIdSucceededAt="proposalId__succeededAt",a.ProposalIdSucceededAtBlock="proposalId__succeededAtBlock",a.ProposalIdSucceededVoteTxHash="proposalId__succeededVoteTxHash",a.ProposalIdTitle="proposalId__title",a.ProposalIdUnparsedDescription="proposalId__unparsedDescription",a.ProposalIdUnverifiedForumLink="proposalId__unverifiedForumLink",a.ProposalIdVoteEndAt="proposalId__voteEndAt",a.ProposalIdVoteStartAt="proposalId__voteStartAt",a.Reason="reason",a.Support="support",a.Timestamp="timestamp",a.Voter="voter",a.Weight="weight",a))(x||{}),P=(r=>(r.Allow="allow",r.Deny="deny",r))(P||{}),I=u.gql`
|
|
2
|
+
fragment ProposalSelection on Proposal {
|
|
3
|
+
id
|
|
4
|
+
proposer
|
|
5
|
+
proposalId
|
|
6
|
+
description
|
|
7
|
+
status
|
|
8
|
+
createdAt
|
|
9
|
+
createdAtBlock
|
|
10
|
+
unverifiedForumLink
|
|
11
|
+
quorum
|
|
12
|
+
succeededAt
|
|
13
|
+
timelock {
|
|
14
|
+
id
|
|
15
|
+
}
|
|
16
|
+
pollResult {
|
|
17
|
+
for
|
|
18
|
+
forVotersCount
|
|
19
|
+
forPercentage
|
|
20
|
+
against
|
|
21
|
+
againstVotersCount
|
|
22
|
+
againstPercentage
|
|
23
|
+
abstain
|
|
24
|
+
abstainVotersCount
|
|
25
|
+
abstainPercentage
|
|
26
|
+
total
|
|
27
|
+
totalVotersCount
|
|
28
|
+
totalTowardsQuorum
|
|
29
|
+
}
|
|
30
|
+
voteStartAt
|
|
31
|
+
voteEndAt
|
|
32
|
+
queueStart
|
|
33
|
+
queueEnd
|
|
34
|
+
canceledAt
|
|
35
|
+
canceledAt
|
|
36
|
+
executedAt
|
|
37
|
+
title
|
|
38
|
+
topics
|
|
39
|
+
}
|
|
40
|
+
`,m=u.gql`
|
|
41
|
+
fragment ExecutableCallSubset on ExecutableCall {
|
|
42
|
+
id
|
|
43
|
+
target
|
|
44
|
+
value
|
|
45
|
+
calldata
|
|
46
|
+
}
|
|
47
|
+
`,S=u.gql`
|
|
48
|
+
fragment ProposalVote on Vote {
|
|
49
|
+
id
|
|
50
|
+
voter
|
|
51
|
+
weight
|
|
52
|
+
support
|
|
53
|
+
timestamp
|
|
54
|
+
reason
|
|
55
|
+
}
|
|
56
|
+
`,k=u.gql`
|
|
57
|
+
fragment ProposalWithVotes on Proposal {
|
|
58
|
+
...ProposalSelection
|
|
59
|
+
queueTxHash
|
|
60
|
+
createTxHash
|
|
61
|
+
cancelTxHash
|
|
62
|
+
executeTxHash
|
|
63
|
+
executableCalls {
|
|
64
|
+
...ExecutableCallSubset
|
|
65
|
+
}
|
|
66
|
+
timelock {
|
|
67
|
+
id
|
|
68
|
+
}
|
|
69
|
+
votes(orderBy: weight, orderDirection: desc) {
|
|
70
|
+
...ProposalVote
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
${I}
|
|
74
|
+
${m}
|
|
75
|
+
${S}`,v=u.gql`
|
|
76
|
+
query GetProposalVotes($proposalId: String!, $orderBy: Vote_orderBy = weight, $orderDirection: OrderDirection = desc, $limit: Int!, $offset: Int) {
|
|
77
|
+
votes(
|
|
78
|
+
where: {proposalId: $proposalId}
|
|
79
|
+
orderBy: $orderBy
|
|
80
|
+
orderDirection: $orderDirection
|
|
81
|
+
skip: $offset
|
|
82
|
+
first: $limit
|
|
83
|
+
) {
|
|
84
|
+
...ProposalVote
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
${S}`,V=u.gql`
|
|
88
|
+
query GetProposals($offset: Int, $limit: Int, $where: Proposal_filter, $orderBy: Proposal_orderBy = createdAt, $orderDirection: OrderDirection = desc) {
|
|
89
|
+
proposals(
|
|
90
|
+
skip: $offset
|
|
91
|
+
first: $limit
|
|
92
|
+
orderBy: $orderBy
|
|
93
|
+
orderDirection: $orderDirection
|
|
94
|
+
where: $where
|
|
95
|
+
) {
|
|
96
|
+
...ProposalSelection
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
${I}`,D=u.gql`
|
|
100
|
+
query SearchProposals($offset: Int, $limit: Int, $where: Proposal_filter, $text: String!) {
|
|
101
|
+
proposals: proposalSearch(
|
|
102
|
+
skip: $offset
|
|
103
|
+
first: $limit
|
|
104
|
+
where: $where
|
|
105
|
+
text: $text
|
|
106
|
+
) {
|
|
107
|
+
...ProposalSelection
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
${I}`,q=u.gql`
|
|
111
|
+
query GetProposal($id: ID!) {
|
|
112
|
+
proposal(id: $id) {
|
|
113
|
+
...ProposalWithVotes
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
${k}`,F={possibleTypes:{}},R=F;0&&(module.exports={Aggregation_Interval,ExecutableCallSubset,ExecutableCall_OrderBy,GetProposal,GetProposalVotes,GetProposals,OrderDirection,PollResult_OrderBy,ProposalSelection,ProposalStatus,ProposalVote,ProposalWithVotes,Proposal_OrderBy,SearchProposals,Timelock_OrderBy,VoteSupportType,Vote_OrderBy,_SubgraphErrorPolicy_});
|