@blockscout/autoscout-types 0.0.2 → 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.
- package/dist/v1/autoscout.d.ts +3 -3
- package/dist/v1/autoscout.js +12 -12
- package/dist/v1/autoscout.ts +3 -3
- package/dist/v1/config.d.ts +17 -17
- package/dist/v1/config.ts +17 -17
- package/package.json +2 -2
package/dist/v1/autoscout.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type DeployConfig, type DeployConfigPartial } from "./config";
|
|
2
|
-
export declare enum
|
|
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:
|
|
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:
|
|
76
|
+
status: DeploymentStatus;
|
|
77
77
|
error?: string | undefined;
|
|
78
78
|
created_at: string;
|
|
79
79
|
started_at?: string | undefined;
|
package/dist/v1/autoscout.js
CHANGED
|
@@ -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.
|
|
9
|
-
var
|
|
10
|
-
(function (
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
})(
|
|
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";
|
package/dist/v1/autoscout.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
/* eslint-disable */
|
|
8
8
|
import { type DeployConfig, type DeployConfigPartial } from "./config";
|
|
9
9
|
|
|
10
|
-
export enum
|
|
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:
|
|
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:
|
|
96
|
+
status: DeploymentStatus;
|
|
97
97
|
error?: string | undefined;
|
|
98
98
|
created_at: string;
|
|
99
99
|
started_at?: string | undefined;
|
package/dist/v1/config.d.ts
CHANGED
|
@@ -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?:
|
|
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?:
|
|
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?:
|
|
60
|
+
l1_deposits_batch_size?: string | undefined;
|
|
61
61
|
/** changes blockscout env INDEXER_OPTIMISM_L2_WITHDRAWALS_START_BLOCK */
|
|
62
|
-
l2_withdrawals_start_block?:
|
|
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?:
|
|
72
|
-
l1_rpc_historical_blocks_range?:
|
|
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?:
|
|
75
|
-
l1_common_start_block?:
|
|
76
|
-
l1_finalization_threshold?:
|
|
77
|
-
rollup_chunk_size?:
|
|
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?:
|
|
80
|
-
missed_messages_blocks_depth?:
|
|
81
|
-
tracking_messages_on_l1_recheck_interval?:
|
|
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?:
|
|
83
|
+
batches_tracking_recheck_interval?: string | undefined;
|
|
84
84
|
batches_tracking_l1_finalization_check_enabled?: boolean | undefined;
|
|
85
|
-
batches_tracking_messages_to_blocks_shift?:
|
|
86
|
-
missing_batches_range?:
|
|
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?:
|
|
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
|
-
|
|
|
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
|
-
|
|
|
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
|
-
|
|
|
85
|
+
| string
|
|
86
86
|
| undefined;
|
|
87
87
|
/** changes blockscout env INDEXER_OPTIMISM_L2_WITHDRAWALS_START_BLOCK */
|
|
88
88
|
l2_withdrawals_start_block?:
|
|
89
|
-
|
|
|
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?:
|
|
101
|
-
l1_rpc_historical_blocks_range?:
|
|
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?:
|
|
104
|
-
l1_common_start_block?:
|
|
105
|
-
l1_finalization_threshold?:
|
|
106
|
-
rollup_chunk_size?:
|
|
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?:
|
|
109
|
-
missed_messages_blocks_depth?:
|
|
110
|
-
tracking_messages_on_l1_recheck_interval?:
|
|
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?:
|
|
112
|
+
batches_tracking_recheck_interval?: string | undefined;
|
|
113
113
|
batches_tracking_l1_finalization_check_enabled?: boolean | undefined;
|
|
114
|
-
batches_tracking_messages_to_blocks_shift?:
|
|
115
|
-
missing_batches_range?:
|
|
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?:
|
|
117
|
+
new_batches_limit?: string | undefined;
|
|
118
118
|
}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockscout/autoscout-types",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.4",
|
|
4
4
|
"description": "TypeScript definitions for Autoscout microservice",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"types": "./index.d.ts",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"build": "npm run compile:proto && npm run compile:ts",
|
|
9
|
-
"compile:proto": "mkdir -p ./dist && protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=snakeToCamel=false --ts_proto_opt=stringEnums=true --ts_proto_opt=onlyTypes=true --ts_proto_opt=emitImportedFiles=false --ts_proto_opt=exportCommonSymbols=false --proto_path=../autoscout-proto/proto --proto_path=../../blockscout-rs/proto --ts_proto_out=./dist ../autoscout-proto/proto/v1/autoscout.proto ../autoscout-proto/proto/v1/config.proto",
|
|
9
|
+
"compile:proto": "mkdir -p ./dist && protoc --plugin=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_opt=snakeToCamel=false --ts_proto_opt=stringEnums=true --ts_proto_opt=onlyTypes=true --ts_proto_opt=emitImportedFiles=false --ts_proto_opt=exportCommonSymbols=false --ts_proto_opt=forceLong=string --proto_path=../autoscout-proto/proto --proto_path=../../blockscout-rs/proto --ts_proto_out=./dist ../autoscout-proto/proto/v1/autoscout.proto ../autoscout-proto/proto/v1/config.proto",
|
|
10
10
|
"compile:ts": "tsc --declaration ./index.ts"
|
|
11
11
|
},
|
|
12
12
|
"repository": {
|