@blockscout/autoscout-types 0.0.3 → 0.0.4

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.
@@ -1,5 +1,5 @@
1
1
  import { type DeployConfig, type DeployConfigPartial } from "./config";
2
- export declare enum Status {
2
+ export declare enum DeploymentStatus {
3
3
  NO_STATUS = "NO_STATUS",
4
4
  CREATED = "CREATED",
5
5
  PENDING = "PENDING",
@@ -59,7 +59,7 @@ export interface UpdateInstanceStatusRequest {
59
59
  action: UpdateInstanceAction;
60
60
  }
61
61
  export interface UpdateInstanceStatusResponse {
62
- status: Status;
62
+ status: DeploymentStatus;
63
63
  deployment_id: string;
64
64
  }
65
65
  export interface Instance {
@@ -73,7 +73,7 @@ export interface Instance {
73
73
  export interface Deployment {
74
74
  deployment_id: string;
75
75
  instance_id: string;
76
- status: Status;
76
+ status: DeploymentStatus;
77
77
  error?: string | undefined;
78
78
  created_at: string;
79
79
  started_at?: string | undefined;
@@ -5,18 +5,18 @@
5
5
  // protoc v5.27.0
6
6
  // source: v1/autoscout.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.UpdateInstanceAction = exports.Status = void 0;
9
- var Status;
10
- (function (Status) {
11
- Status["NO_STATUS"] = "NO_STATUS";
12
- Status["CREATED"] = "CREATED";
13
- Status["PENDING"] = "PENDING";
14
- Status["RUNNING"] = "RUNNING";
15
- Status["STOPPING"] = "STOPPING";
16
- Status["STOPPED"] = "STOPPED";
17
- Status["FAILED"] = "FAILED";
18
- Status["UNRECOGNIZED"] = "UNRECOGNIZED";
19
- })(Status || (exports.Status = Status = {}));
8
+ exports.UpdateInstanceAction = exports.DeploymentStatus = void 0;
9
+ var DeploymentStatus;
10
+ (function (DeploymentStatus) {
11
+ DeploymentStatus["NO_STATUS"] = "NO_STATUS";
12
+ DeploymentStatus["CREATED"] = "CREATED";
13
+ DeploymentStatus["PENDING"] = "PENDING";
14
+ DeploymentStatus["RUNNING"] = "RUNNING";
15
+ DeploymentStatus["STOPPING"] = "STOPPING";
16
+ DeploymentStatus["STOPPED"] = "STOPPED";
17
+ DeploymentStatus["FAILED"] = "FAILED";
18
+ DeploymentStatus["UNRECOGNIZED"] = "UNRECOGNIZED";
19
+ })(DeploymentStatus || (exports.DeploymentStatus = DeploymentStatus = {}));
20
20
  var UpdateInstanceAction;
21
21
  (function (UpdateInstanceAction) {
22
22
  UpdateInstanceAction["START"] = "START";
@@ -7,7 +7,7 @@
7
7
  /* eslint-disable */
8
8
  import { type DeployConfig, type DeployConfigPartial } from "./config";
9
9
 
10
- export enum Status {
10
+ export enum DeploymentStatus {
11
11
  NO_STATUS = "NO_STATUS",
12
12
  CREATED = "CREATED",
13
13
  PENDING = "PENDING",
@@ -77,7 +77,7 @@ export interface UpdateInstanceStatusRequest {
77
77
  }
78
78
 
79
79
  export interface UpdateInstanceStatusResponse {
80
- status: Status;
80
+ status: DeploymentStatus;
81
81
  deployment_id: string;
82
82
  }
83
83
 
@@ -93,7 +93,7 @@ export interface Instance {
93
93
  export interface Deployment {
94
94
  deployment_id: string;
95
95
  instance_id: string;
96
- status: Status;
96
+ status: DeploymentStatus;
97
97
  error?: string | undefined;
98
98
  created_at: string;
99
99
  started_at?: string | undefined;
@@ -51,15 +51,15 @@ export interface OptimismConfig {
51
51
  /** changes blockscout env INDEXER_OPTIMISM_L1_BATCH_CELESTIA_BLOBS_API_URL */
52
52
  l1_batch_celestia_blobs_api_url?: string | undefined;
53
53
  /** changes blockscout env INDEXER_OPTIMISM_L1_BATCH_BLOCKS_CHUNK_SIZE */
54
- l1_batch_blocks_chunk_size?: number | undefined;
54
+ l1_batch_blocks_chunk_size?: string | undefined;
55
55
  /** changes blockscout env INDEXER_OPTIMISM_L2_BATCH_GENESIS_BLOCK_NUMBER */
56
- l2_batch_genesis_block_number?: number | undefined;
56
+ l2_batch_genesis_block_number?: string | undefined;
57
57
  /** changes blockscout env INDEXER_OPTIMISM_L1_OUTPUT_ORACLE_CONTRACT */
58
58
  l1_output_oracle_contract?: string | undefined;
59
59
  /** changes blockscout env INDEXER_OPTIMISM_L1_DEPOSITS_BATCH_SIZE */
60
- l1_deposits_batch_size?: number | undefined;
60
+ l1_deposits_batch_size?: string | undefined;
61
61
  /** changes blockscout env INDEXER_OPTIMISM_L2_WITHDRAWALS_START_BLOCK */
62
- l2_withdrawals_start_block?: number | undefined;
62
+ l2_withdrawals_start_block?: string | undefined;
63
63
  /** changes blockscout env INDEXER_OPTIMISM_L2_MESSAGE_PASSER_CONTRACT */
64
64
  l2_message_passer_contract?: string | undefined;
65
65
  }
@@ -68,22 +68,22 @@ export interface ArbitrumConfig {
68
68
  arbsys_contract?: string | undefined;
69
69
  node_interface_contract?: string | undefined;
70
70
  l1_rpc_url?: string | undefined;
71
- l1_rpc_chunk_size?: number | undefined;
72
- l1_rpc_historical_blocks_range?: number | undefined;
71
+ l1_rpc_chunk_size?: string | undefined;
72
+ l1_rpc_historical_blocks_range?: string | undefined;
73
73
  l1_rollup_contract?: string | undefined;
74
- l1_rollup_init_block?: number | undefined;
75
- l1_common_start_block?: number | undefined;
76
- l1_finalization_threshold?: number | undefined;
77
- rollup_chunk_size?: number | undefined;
74
+ l1_rollup_init_block?: string | undefined;
75
+ l1_common_start_block?: string | undefined;
76
+ l1_finalization_threshold?: string | undefined;
77
+ rollup_chunk_size?: string | undefined;
78
78
  bridge_messages_tracking_enabled?: boolean | undefined;
79
- missed_messages_recheck_interval?: number | undefined;
80
- missed_messages_blocks_depth?: number | undefined;
81
- tracking_messages_on_l1_recheck_interval?: number | undefined;
79
+ missed_messages_recheck_interval?: string | undefined;
80
+ missed_messages_blocks_depth?: string | undefined;
81
+ tracking_messages_on_l1_recheck_interval?: string | undefined;
82
82
  batches_tracking_enabled?: boolean | undefined;
83
- batches_tracking_recheck_interval?: number | undefined;
83
+ batches_tracking_recheck_interval?: string | undefined;
84
84
  batches_tracking_l1_finalization_check_enabled?: boolean | undefined;
85
- batches_tracking_messages_to_blocks_shift?: number | undefined;
86
- missing_batches_range?: number | undefined;
85
+ batches_tracking_messages_to_blocks_shift?: string | undefined;
86
+ missing_batches_range?: string | undefined;
87
87
  confirmations_tracking_finalized?: boolean | undefined;
88
- new_batches_limit?: number | undefined;
88
+ new_batches_limit?: string | undefined;
89
89
  }
package/dist/v1/config.ts CHANGED
@@ -70,11 +70,11 @@ export interface OptimismConfig {
70
70
  | undefined;
71
71
  /** changes blockscout env INDEXER_OPTIMISM_L1_BATCH_BLOCKS_CHUNK_SIZE */
72
72
  l1_batch_blocks_chunk_size?:
73
- | number
73
+ | string
74
74
  | undefined;
75
75
  /** changes blockscout env INDEXER_OPTIMISM_L2_BATCH_GENESIS_BLOCK_NUMBER */
76
76
  l2_batch_genesis_block_number?:
77
- | number
77
+ | string
78
78
  | undefined;
79
79
  /** changes blockscout env INDEXER_OPTIMISM_L1_OUTPUT_ORACLE_CONTRACT */
80
80
  l1_output_oracle_contract?:
@@ -82,11 +82,11 @@ export interface OptimismConfig {
82
82
  | undefined;
83
83
  /** changes blockscout env INDEXER_OPTIMISM_L1_DEPOSITS_BATCH_SIZE */
84
84
  l1_deposits_batch_size?:
85
- | number
85
+ | string
86
86
  | undefined;
87
87
  /** changes blockscout env INDEXER_OPTIMISM_L2_WITHDRAWALS_START_BLOCK */
88
88
  l2_withdrawals_start_block?:
89
- | number
89
+ | string
90
90
  | undefined;
91
91
  /** changes blockscout env INDEXER_OPTIMISM_L2_MESSAGE_PASSER_CONTRACT */
92
92
  l2_message_passer_contract?: string | undefined;
@@ -97,22 +97,22 @@ export interface ArbitrumConfig {
97
97
  arbsys_contract?: string | undefined;
98
98
  node_interface_contract?: string | undefined;
99
99
  l1_rpc_url?: string | undefined;
100
- l1_rpc_chunk_size?: number | undefined;
101
- l1_rpc_historical_blocks_range?: number | undefined;
100
+ l1_rpc_chunk_size?: string | undefined;
101
+ l1_rpc_historical_blocks_range?: string | undefined;
102
102
  l1_rollup_contract?: string | undefined;
103
- l1_rollup_init_block?: number | undefined;
104
- l1_common_start_block?: number | undefined;
105
- l1_finalization_threshold?: number | undefined;
106
- rollup_chunk_size?: number | undefined;
103
+ l1_rollup_init_block?: string | undefined;
104
+ l1_common_start_block?: string | undefined;
105
+ l1_finalization_threshold?: string | undefined;
106
+ rollup_chunk_size?: string | undefined;
107
107
  bridge_messages_tracking_enabled?: boolean | undefined;
108
- missed_messages_recheck_interval?: number | undefined;
109
- missed_messages_blocks_depth?: number | undefined;
110
- tracking_messages_on_l1_recheck_interval?: number | undefined;
108
+ missed_messages_recheck_interval?: string | undefined;
109
+ missed_messages_blocks_depth?: string | undefined;
110
+ tracking_messages_on_l1_recheck_interval?: string | undefined;
111
111
  batches_tracking_enabled?: boolean | undefined;
112
- batches_tracking_recheck_interval?: number | undefined;
112
+ batches_tracking_recheck_interval?: string | undefined;
113
113
  batches_tracking_l1_finalization_check_enabled?: boolean | undefined;
114
- batches_tracking_messages_to_blocks_shift?: number | undefined;
115
- missing_batches_range?: number | undefined;
114
+ batches_tracking_messages_to_blocks_shift?: string | undefined;
115
+ missing_batches_range?: string | undefined;
116
116
  confirmations_tracking_finalized?: boolean | undefined;
117
- new_batches_limit?: number | undefined;
117
+ new_batches_limit?: string | undefined;
118
118
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockscout/autoscout-types",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "TypeScript definitions for Autoscout microservice",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",