@blockscout/autoscout-types 1.1.0-alpha.1 → 1.1.1-alpha.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.
@@ -108,6 +108,7 @@ export interface ExpensiveInstance {
108
108
  blockscout_url?: string | undefined;
109
109
  total_cost: string;
110
110
  cost_per_month_approx: string;
111
+ icon_url?: string | undefined;
111
112
  }
112
113
  export interface AuthToken {
113
114
  name: string;
@@ -159,6 +160,20 @@ export interface UpdateConfigPartialRequest {
159
160
  [key: string]: any;
160
161
  } | undefined;
161
162
  }
163
+ export interface RegenerateConfigBatchRequest {
164
+ instance_ids: string[];
165
+ }
166
+ export interface RegenerateConfigBatchResponse {
167
+ total: number;
168
+ total_errors: number;
169
+ items: RegenerateConfigBatchItem[];
170
+ }
171
+ export interface RegenerateConfigBatchItem {
172
+ instance_id: string;
173
+ instance_slug: string;
174
+ ok: boolean;
175
+ error?: string | undefined;
176
+ }
162
177
  export interface UpdateInstanceStatusRequest {
163
178
  instance_id: string;
164
179
  action: UpdateInstanceAction;
@@ -288,6 +303,7 @@ export interface Autoscout {
288
303
  UpdateConfig(request: UpdateConfigRequest): Promise<UpdateConfigResponse>;
289
304
  /** Update configuration of blockscout instance (partially) */
290
305
  UpdateConfigPartial(request: UpdateConfigPartialRequest): Promise<UpdateConfigResponse>;
306
+ RegenerateConfigBatch(request: RegenerateConfigBatchRequest): Promise<RegenerateConfigBatchResponse>;
291
307
  /** Start or finish the instance */
292
308
  UpdateInstanceStatus(request: UpdateInstanceStatusRequest): Promise<UpdateInstanceStatusResponse>;
293
309
  UpdateInstanceStatusBatch(request: UpdateInstanceStatusBatchRequest): Promise<UpdateInstanceStatusBatchResponse>;
@@ -126,6 +126,7 @@ export interface ExpensiveInstance {
126
126
  blockscout_url?: string | undefined;
127
127
  total_cost: string;
128
128
  cost_per_month_approx: string;
129
+ icon_url?: string | undefined;
129
130
  }
130
131
 
131
132
  export interface AuthToken {
@@ -187,6 +188,23 @@ export interface UpdateConfigPartialRequest {
187
188
  config: { [key: string]: any } | undefined;
188
189
  }
189
190
 
191
+ export interface RegenerateConfigBatchRequest {
192
+ instance_ids: string[];
193
+ }
194
+
195
+ export interface RegenerateConfigBatchResponse {
196
+ total: number;
197
+ total_errors: number;
198
+ items: RegenerateConfigBatchItem[];
199
+ }
200
+
201
+ export interface RegenerateConfigBatchItem {
202
+ instance_id: string;
203
+ instance_slug: string;
204
+ ok: boolean;
205
+ error?: string | undefined;
206
+ }
207
+
190
208
  export interface UpdateInstanceStatusRequest {
191
209
  instance_id: string;
192
210
  action: UpdateInstanceAction;
@@ -350,6 +368,7 @@ export interface Autoscout {
350
368
  UpdateConfig(request: UpdateConfigRequest): Promise<UpdateConfigResponse>;
351
369
  /** Update configuration of blockscout instance (partially) */
352
370
  UpdateConfigPartial(request: UpdateConfigPartialRequest): Promise<UpdateConfigResponse>;
371
+ RegenerateConfigBatch(request: RegenerateConfigBatchRequest): Promise<RegenerateConfigBatchResponse>;
353
372
  /** Start or finish the instance */
354
373
  UpdateInstanceStatus(request: UpdateInstanceStatusRequest): Promise<UpdateInstanceStatusResponse>;
355
374
  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.1",
3
+ "version": "1.1.1-alpha.0",
4
4
  "description": "TypeScript definitions for Autoscout microservice",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",