@blockscout/autoscout-types 1.1.0-alpha.0 → 1.1.0

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.
@@ -159,6 +159,20 @@ export interface UpdateConfigPartialRequest {
159
159
  [key: string]: any;
160
160
  } | undefined;
161
161
  }
162
+ export interface RegenerateConfigBatchRequest {
163
+ instance_ids: string[];
164
+ }
165
+ export interface RegenerateConfigBatchResponse {
166
+ total: number;
167
+ total_errors: number;
168
+ items: RegenerateConfigBatchItem[];
169
+ }
170
+ export interface RegenerateConfigBatchItem {
171
+ instance_id: string;
172
+ instance_slug: string;
173
+ ok: boolean;
174
+ error?: string | undefined;
175
+ }
162
176
  export interface UpdateInstanceStatusRequest {
163
177
  instance_id: string;
164
178
  action: UpdateInstanceAction;
@@ -273,9 +287,12 @@ export interface CreateStripeDepositResponse {
273
287
  url: string;
274
288
  }
275
289
  export interface ListExternalDepositsRequest {
290
+ page?: number | undefined;
291
+ per_page?: number | undefined;
276
292
  }
277
293
  export interface ListExternalDepositsResponse {
278
294
  items: Deposit[];
295
+ pagination: PaginationResult | undefined;
279
296
  }
280
297
  export interface Autoscout {
281
298
  GetConfigSchema(request: GetConfigSchemaRequest): Promise<ConfigSchema>;
@@ -285,6 +302,7 @@ export interface Autoscout {
285
302
  UpdateConfig(request: UpdateConfigRequest): Promise<UpdateConfigResponse>;
286
303
  /** Update configuration of blockscout instance (partially) */
287
304
  UpdateConfigPartial(request: UpdateConfigPartialRequest): Promise<UpdateConfigResponse>;
305
+ RegenerateConfigBatch(request: RegenerateConfigBatchRequest): Promise<RegenerateConfigBatchResponse>;
288
306
  /** Start or finish the instance */
289
307
  UpdateInstanceStatus(request: UpdateInstanceStatusRequest): Promise<UpdateInstanceStatusResponse>;
290
308
  UpdateInstanceStatusBatch(request: UpdateInstanceStatusBatchRequest): Promise<UpdateInstanceStatusBatchResponse>;
@@ -187,6 +187,23 @@ export interface UpdateConfigPartialRequest {
187
187
  config: { [key: string]: any } | undefined;
188
188
  }
189
189
 
190
+ export interface RegenerateConfigBatchRequest {
191
+ instance_ids: string[];
192
+ }
193
+
194
+ export interface RegenerateConfigBatchResponse {
195
+ total: number;
196
+ total_errors: number;
197
+ items: RegenerateConfigBatchItem[];
198
+ }
199
+
200
+ export interface RegenerateConfigBatchItem {
201
+ instance_id: string;
202
+ instance_slug: string;
203
+ ok: boolean;
204
+ error?: string | undefined;
205
+ }
206
+
190
207
  export interface UpdateInstanceStatusRequest {
191
208
  instance_id: string;
192
209
  action: UpdateInstanceAction;
@@ -333,10 +350,13 @@ export interface CreateStripeDepositResponse {
333
350
  }
334
351
 
335
352
  export interface ListExternalDepositsRequest {
353
+ page?: number | undefined;
354
+ per_page?: number | undefined;
336
355
  }
337
356
 
338
357
  export interface ListExternalDepositsResponse {
339
358
  items: Deposit[];
359
+ pagination: PaginationResult | undefined;
340
360
  }
341
361
 
342
362
  export interface Autoscout {
@@ -347,6 +367,7 @@ export interface Autoscout {
347
367
  UpdateConfig(request: UpdateConfigRequest): Promise<UpdateConfigResponse>;
348
368
  /** Update configuration of blockscout instance (partially) */
349
369
  UpdateConfigPartial(request: UpdateConfigPartialRequest): Promise<UpdateConfigResponse>;
370
+ RegenerateConfigBatch(request: RegenerateConfigBatchRequest): Promise<RegenerateConfigBatchResponse>;
350
371
  /** Start or finish the instance */
351
372
  UpdateInstanceStatus(request: UpdateInstanceStatusRequest): Promise<UpdateInstanceStatusResponse>;
352
373
  UpdateInstanceStatusBatch(request: UpdateInstanceStatusBatchRequest): Promise<UpdateInstanceStatusBatchResponse>;
@@ -2,6 +2,8 @@ export declare enum ChainType {
2
2
  UNSPECIFIED_CHAIN_TYPE = "UNSPECIFIED_CHAIN_TYPE",
3
3
  ARBITRUM = "ARBITRUM",
4
4
  OPTIMISM = "OPTIMISM",
5
+ POLYGON_ZKEVM = "POLYGON_ZKEVM",
6
+ ZKSYNC = "ZKSYNC",
5
7
  UNRECOGNIZED = "UNRECOGNIZED"
6
8
  }
7
9
  export declare enum NodeType {
@@ -78,6 +80,8 @@ export interface DeployConfig {
78
80
  footer?: Footer | undefined;
79
81
  optimism?: OptimismConfig | undefined;
80
82
  arbitrum?: ArbitrumConfig | undefined;
83
+ polygon_zkevm?: PolygonZkEvmConfig | undefined;
84
+ zksync?: ZksyncConfig | undefined;
81
85
  ads?: Ads | undefined;
82
86
  meta_og?: MetaOg | undefined;
83
87
  final_config?: FinalConfig | undefined;
@@ -87,6 +91,8 @@ export interface DeployConfig {
87
91
  disable_graphql?: boolean | undefined;
88
92
  maintenance_banner?: string | undefined;
89
93
  skip_cname_check?: boolean | undefined;
94
+ indexer?: IndexerConfig | undefined;
95
+ hero_banner?: HeroBanner | undefined;
90
96
  }
91
97
  export interface Footer {
92
98
  columns: FooterColumn[];
@@ -120,6 +126,43 @@ export interface MenuItem {
120
126
  text: string;
121
127
  url: string;
122
128
  }
129
+ export interface HeroBanner {
130
+ background: string[];
131
+ text_color: string[];
132
+ border: string[];
133
+ button: HeroBannerButton | undefined;
134
+ }
135
+ export interface HeroBannerButton {
136
+ default?: HeroBannerButtonValue | undefined;
137
+ hover?: HeroBannerButtonValue | undefined;
138
+ selected?: HeroBannerButtonValue | undefined;
139
+ }
140
+ export interface HeroBannerButtonValue {
141
+ background: string[];
142
+ text_color: string[];
143
+ }
144
+ export interface IndexerConfig {
145
+ /** INDEXER_RECEIPTS_BATCH_SIZE */
146
+ receipts_batch_size?: string | undefined;
147
+ /** INDEXER_RECEIPTS_CONCURRENCY */
148
+ receipts_concurrency?: string | undefined;
149
+ /** INDEXER_INTERNAL_TRANSACTIONS_BATCH_SIZE */
150
+ internal_transactions_batch_size?: string | undefined;
151
+ /** INDEXER_INTERNAL_TRANSACTIONS_CONCURRENCY */
152
+ internal_transactions_concurrency?: string | undefined;
153
+ /** INDEXER_CATCHUP_BLOCKS_BATCH_SIZE */
154
+ catchup_blocks_batch_size?: string | undefined;
155
+ /** INDEXER_CATCHUP_BLOCKS_CONCURRENCY */
156
+ catchup_blocks_concurrency?: string | undefined;
157
+ /** INDEXER_COIN_BALANCES_BATCH_SIZE */
158
+ coin_balances_batch_size?: string | undefined;
159
+ /** INDEXER_COIN_BALANCES_CONCURRENCY */
160
+ coin_balances_concurrency?: string | undefined;
161
+ /** INDEXER_TOKEN_BALANCES_BATCH_SIZE */
162
+ token_balances_batch_size?: string | undefined;
163
+ /** INDEXER_TOKEN_BALANCES_CONCURRENCY */
164
+ token_balances_concurrency?: string | undefined;
165
+ }
123
166
  /** https://github.com/blockscout/docs/blob/df6996a0f8e553c2d4b1c3dcda6ef2518a8b39f9/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L102-L119 */
124
167
  export interface OptimismConfig {
125
168
  /** changes blockscout env INDEXER_OPTIMISM_L1_RPC */
@@ -181,3 +224,47 @@ export interface ArbitrumConfig {
181
224
  /** NEXT_PUBLIC_ROLLUP_L1_BASE_URL */
182
225
  l1_blockscout_url: string;
183
226
  }
227
+ export interface PolygonZkEvmConfig {
228
+ /** INDEXER_POLYGON_ZKEVM_L1_RPC */
229
+ l1_rpc: string;
230
+ /** INDEXER_POLYGON_ZKEVM_L1_BRIDGE_START_BLOCK */
231
+ l1_bridge_start_block: string;
232
+ /** INDEXER_POLYGON_ZKEVM_L1_BRIDGE_CONTRACT */
233
+ l1_bridge_contract: string;
234
+ /** NEXT_PUBLIC_ROLLUP_L1_BASE_URL */
235
+ l1_blockscout_url: string;
236
+ /** INDEXER_POLYGON_ZKEVM_BATCHES_CHUNK_SIZE */
237
+ batches_chunk_size?: string | undefined;
238
+ /** INDEXER_POLYGON_ZKEVM_BATCHES_RECHECK_INTERVAL */
239
+ batches_recheck_interval?: string | undefined;
240
+ /** INDEXER_POLYGON_ZKEVM_L1_BRIDGE_NETWORK_ID */
241
+ l1_bridge_network_id?: string | undefined;
242
+ /** INDEXER_POLYGON_ZKEVM_L1_BRIDGE_ROLLUP_INDEX */
243
+ l1_bridge_rollup_index?: string | undefined;
244
+ /** INDEXER_POLYGON_ZKEVM_L1_BRIDGE_NATIVE_SYMBOL */
245
+ l1_bridge_native_symbol?: string | undefined;
246
+ /** INDEXER_POLYGON_ZKEVM_L1_BRIDGE_NATIVE_DECIMALS */
247
+ l1_bridge_native_decimals?: string | undefined;
248
+ /** INDEXER_POLYGON_ZKEVM_L2_BRIDGE_START_BLOCK */
249
+ l2_bridge_start_block?: string | undefined;
250
+ /** INDEXER_POLYGON_ZKEVM_L2_BRIDGE_CONTRACT */
251
+ l2_bridge_contract?: string | undefined;
252
+ /** INDEXER_POLYGON_ZKEVM_L2_BRIDGE_NETWORK_ID */
253
+ l2_bridge_network_id?: string | undefined;
254
+ /** INDEXER_POLYGON_ZKEVM_L2_BRIDGE_ROLLUP_INDEX */
255
+ l2_bridge_rollup_index?: string | undefined;
256
+ }
257
+ export interface ZksyncConfig {
258
+ /** INDEXER_ZKSYNC_L1_RPC */
259
+ l1_rpc: string;
260
+ /** NEXT_PUBLIC_ROLLUP_L1_BASE_URL */
261
+ l1_blockscout_url: string;
262
+ /** INDEXER_ZKSYNC_BATCHES_CHUNK_SIZE */
263
+ batches_chunk_size?: string | undefined;
264
+ /** INDEXER_ZKSYNC_NEW_BATCHES_MAX_RANGE */
265
+ new_batches_max_range?: string | undefined;
266
+ /** INDEXER_ZKSYNC_NEW_BATCHES_RECHECK_INTERVAL */
267
+ new_batches_recheck_interval?: string | undefined;
268
+ /** INDEXER_ZKSYNC_BATCHES_STATUS_RECHECK_INTERVAL */
269
+ batches_status_recheck_interval?: string | undefined;
270
+ }
package/dist/v1/config.js CHANGED
@@ -12,6 +12,8 @@ var ChainType;
12
12
  ChainType["UNSPECIFIED_CHAIN_TYPE"] = "UNSPECIFIED_CHAIN_TYPE";
13
13
  ChainType["ARBITRUM"] = "ARBITRUM";
14
14
  ChainType["OPTIMISM"] = "OPTIMISM";
15
+ ChainType["POLYGON_ZKEVM"] = "POLYGON_ZKEVM";
16
+ ChainType["ZKSYNC"] = "ZKSYNC";
15
17
  ChainType["UNRECOGNIZED"] = "UNRECOGNIZED";
16
18
  })(ChainType || (exports.ChainType = ChainType = {}));
17
19
  var NodeType;
package/dist/v1/config.ts CHANGED
@@ -10,6 +10,8 @@ export enum ChainType {
10
10
  UNSPECIFIED_CHAIN_TYPE = "UNSPECIFIED_CHAIN_TYPE",
11
11
  ARBITRUM = "ARBITRUM",
12
12
  OPTIMISM = "OPTIMISM",
13
+ POLYGON_ZKEVM = "POLYGON_ZKEVM",
14
+ ZKSYNC = "ZKSYNC",
13
15
  UNRECOGNIZED = "UNRECOGNIZED",
14
16
  }
15
17
 
@@ -95,6 +97,8 @@ export interface DeployConfig {
95
97
  footer?: Footer | undefined;
96
98
  optimism?: OptimismConfig | undefined;
97
99
  arbitrum?: ArbitrumConfig | undefined;
100
+ polygon_zkevm?: PolygonZkEvmConfig | undefined;
101
+ zksync?: ZksyncConfig | undefined;
98
102
  ads?: Ads | undefined;
99
103
  meta_og?: MetaOg | undefined;
100
104
  final_config?: FinalConfig | undefined;
@@ -104,6 +108,8 @@ export interface DeployConfig {
104
108
  disable_graphql?: boolean | undefined;
105
109
  maintenance_banner?: string | undefined;
106
110
  skip_cname_check?: boolean | undefined;
111
+ indexer?: IndexerConfig | undefined;
112
+ hero_banner?: HeroBanner | undefined;
107
113
  }
108
114
 
109
115
  export interface Footer {
@@ -146,6 +152,65 @@ export interface MenuItem {
146
152
  url: string;
147
153
  }
148
154
 
155
+ export interface HeroBanner {
156
+ background: string[];
157
+ text_color: string[];
158
+ border: string[];
159
+ button: HeroBannerButton | undefined;
160
+ }
161
+
162
+ export interface HeroBannerButton {
163
+ default?: HeroBannerButtonValue | undefined;
164
+ hover?: HeroBannerButtonValue | undefined;
165
+ selected?: HeroBannerButtonValue | undefined;
166
+ }
167
+
168
+ export interface HeroBannerButtonValue {
169
+ background: string[];
170
+ text_color: string[];
171
+ }
172
+
173
+ export interface IndexerConfig {
174
+ /** INDEXER_RECEIPTS_BATCH_SIZE */
175
+ receipts_batch_size?:
176
+ | string
177
+ | undefined;
178
+ /** INDEXER_RECEIPTS_CONCURRENCY */
179
+ receipts_concurrency?:
180
+ | string
181
+ | undefined;
182
+ /** INDEXER_INTERNAL_TRANSACTIONS_BATCH_SIZE */
183
+ internal_transactions_batch_size?:
184
+ | string
185
+ | undefined;
186
+ /** INDEXER_INTERNAL_TRANSACTIONS_CONCURRENCY */
187
+ internal_transactions_concurrency?:
188
+ | string
189
+ | undefined;
190
+ /** INDEXER_CATCHUP_BLOCKS_BATCH_SIZE */
191
+ catchup_blocks_batch_size?:
192
+ | string
193
+ | undefined;
194
+ /** INDEXER_CATCHUP_BLOCKS_CONCURRENCY */
195
+ catchup_blocks_concurrency?:
196
+ | string
197
+ | undefined;
198
+ /** INDEXER_COIN_BALANCES_BATCH_SIZE */
199
+ coin_balances_batch_size?:
200
+ | string
201
+ | undefined;
202
+ /** INDEXER_COIN_BALANCES_CONCURRENCY */
203
+ coin_balances_concurrency?:
204
+ | string
205
+ | undefined;
206
+ /** INDEXER_TOKEN_BALANCES_BATCH_SIZE */
207
+ token_balances_batch_size?:
208
+ | string
209
+ | undefined;
210
+ /** INDEXER_TOKEN_BALANCES_CONCURRENCY */
211
+ token_balances_concurrency?: string | undefined;
212
+ }
213
+
149
214
  /** https://github.com/blockscout/docs/blob/df6996a0f8e553c2d4b1c3dcda6ef2518a8b39f9/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L102-L119 */
150
215
  export interface OptimismConfig {
151
216
  /** changes blockscout env INDEXER_OPTIMISM_L1_RPC */
@@ -232,3 +297,73 @@ export interface ArbitrumConfig {
232
297
  /** NEXT_PUBLIC_ROLLUP_L1_BASE_URL */
233
298
  l1_blockscout_url: string;
234
299
  }
300
+
301
+ export interface PolygonZkEvmConfig {
302
+ /** INDEXER_POLYGON_ZKEVM_L1_RPC */
303
+ l1_rpc: string;
304
+ /** INDEXER_POLYGON_ZKEVM_L1_BRIDGE_START_BLOCK */
305
+ l1_bridge_start_block: string;
306
+ /** INDEXER_POLYGON_ZKEVM_L1_BRIDGE_CONTRACT */
307
+ l1_bridge_contract: string;
308
+ /** NEXT_PUBLIC_ROLLUP_L1_BASE_URL */
309
+ l1_blockscout_url: string;
310
+ /** INDEXER_POLYGON_ZKEVM_BATCHES_CHUNK_SIZE */
311
+ batches_chunk_size?:
312
+ | string
313
+ | undefined;
314
+ /** INDEXER_POLYGON_ZKEVM_BATCHES_RECHECK_INTERVAL */
315
+ batches_recheck_interval?:
316
+ | string
317
+ | undefined;
318
+ /** INDEXER_POLYGON_ZKEVM_L1_BRIDGE_NETWORK_ID */
319
+ l1_bridge_network_id?:
320
+ | string
321
+ | undefined;
322
+ /** INDEXER_POLYGON_ZKEVM_L1_BRIDGE_ROLLUP_INDEX */
323
+ l1_bridge_rollup_index?:
324
+ | string
325
+ | undefined;
326
+ /** INDEXER_POLYGON_ZKEVM_L1_BRIDGE_NATIVE_SYMBOL */
327
+ l1_bridge_native_symbol?:
328
+ | string
329
+ | undefined;
330
+ /** INDEXER_POLYGON_ZKEVM_L1_BRIDGE_NATIVE_DECIMALS */
331
+ l1_bridge_native_decimals?:
332
+ | string
333
+ | undefined;
334
+ /** INDEXER_POLYGON_ZKEVM_L2_BRIDGE_START_BLOCK */
335
+ l2_bridge_start_block?:
336
+ | string
337
+ | undefined;
338
+ /** INDEXER_POLYGON_ZKEVM_L2_BRIDGE_CONTRACT */
339
+ l2_bridge_contract?:
340
+ | string
341
+ | undefined;
342
+ /** INDEXER_POLYGON_ZKEVM_L2_BRIDGE_NETWORK_ID */
343
+ l2_bridge_network_id?:
344
+ | string
345
+ | undefined;
346
+ /** INDEXER_POLYGON_ZKEVM_L2_BRIDGE_ROLLUP_INDEX */
347
+ l2_bridge_rollup_index?: string | undefined;
348
+ }
349
+
350
+ export interface ZksyncConfig {
351
+ /** INDEXER_ZKSYNC_L1_RPC */
352
+ l1_rpc: string;
353
+ /** NEXT_PUBLIC_ROLLUP_L1_BASE_URL */
354
+ l1_blockscout_url: string;
355
+ /** INDEXER_ZKSYNC_BATCHES_CHUNK_SIZE */
356
+ batches_chunk_size?:
357
+ | string
358
+ | undefined;
359
+ /** INDEXER_ZKSYNC_NEW_BATCHES_MAX_RANGE */
360
+ new_batches_max_range?:
361
+ | string
362
+ | undefined;
363
+ /** INDEXER_ZKSYNC_NEW_BATCHES_RECHECK_INTERVAL */
364
+ new_batches_recheck_interval?:
365
+ | string
366
+ | undefined;
367
+ /** INDEXER_ZKSYNC_BATCHES_STATUS_RECHECK_INTERVAL */
368
+ batches_status_recheck_interval?: string | undefined;
369
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockscout/autoscout-types",
3
- "version": "1.1.0-alpha.0",
3
+ "version": "1.1.0",
4
4
  "description": "TypeScript definitions for Autoscout microservice",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",