@blockscout/autoscout-types 0.0.6 → 0.0.8

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,4 +1,4 @@
1
- import { type DeployConfig, type DeployConfigPartial } from "./config";
1
+ import { type DeployConfig } from "./config";
2
2
  import { type ConfigSchema } from "./config_schema";
3
3
  export declare enum DeploymentStatus {
4
4
  NO_STATUS = "NO_STATUS",
@@ -40,7 +40,10 @@ export interface UpdateConfigResponse {
40
40
  }
41
41
  export interface UpdateConfigPartialRequest {
42
42
  instance_id: string;
43
- config: DeployConfigPartial | undefined;
43
+ /** See `DeployConfig` for available fields */
44
+ config: {
45
+ [key: string]: any;
46
+ } | undefined;
44
47
  }
45
48
  export interface HealthStatus {
46
49
  ok: boolean;
@@ -5,7 +5,7 @@
5
5
  // source: v1/autoscout.proto
6
6
 
7
7
  /* eslint-disable */
8
- import { type DeployConfig, type DeployConfigPartial } from "./config";
8
+ import { type DeployConfig } from "./config";
9
9
  import { type ConfigSchema } from "./config_schema";
10
10
 
11
11
  export enum DeploymentStatus {
@@ -57,7 +57,8 @@ export interface UpdateConfigResponse {
57
57
 
58
58
  export interface UpdateConfigPartialRequest {
59
59
  instance_id: string;
60
- config: DeployConfigPartial | undefined;
60
+ /** See `DeployConfig` for available fields */
61
+ config: { [key: string]: any } | undefined;
61
62
  }
62
63
 
63
64
  export interface HealthStatus {
@@ -13,6 +13,28 @@ export declare enum NodeType {
13
13
  GANACHE = "GANACHE",
14
14
  UNRECOGNIZED = "UNRECOGNIZED"
15
15
  }
16
+ export declare enum NavigationLayout {
17
+ UNSPECIFIED_NAVIGATION_LAYOUT = "UNSPECIFIED_NAVIGATION_LAYOUT",
18
+ HORIZONTAL = "HORIZONTAL",
19
+ VERTICAL = "VERTICAL",
20
+ UNRECOGNIZED = "UNRECOGNIZED"
21
+ }
22
+ export declare enum ColorTheme {
23
+ UNSPECIFIED_COLOR_THEME = "UNSPECIFIED_COLOR_THEME",
24
+ LIGHT = "LIGHT",
25
+ DIM = "DIM",
26
+ MIDNIGHT = "MIDNIGHT",
27
+ DARK = "DARK",
28
+ UNRECOGNIZED = "UNRECOGNIZED"
29
+ }
30
+ export declare enum Identicon {
31
+ UNSPECIFIED_IDENTICON = "UNSPECIFIED_IDENTICON",
32
+ GITHUB = "GITHUB",
33
+ JAZZICON = "JAZZICON",
34
+ GRADIENT_AVATAR = "GRADIENT_AVATAR",
35
+ BLOCKIE = "BLOCKIE",
36
+ UNRECOGNIZED = "UNRECOGNIZED"
37
+ }
16
38
  export interface DeployConfig {
17
39
  rpc_url: string;
18
40
  server_size: string;
@@ -20,31 +42,12 @@ export interface DeployConfig {
20
42
  node_type: NodeType;
21
43
  chain_id?: string | undefined;
22
44
  token_symbol?: string | undefined;
23
- instance_url?: string | undefined;
24
- logo_url?: string | undefined;
25
- chain_name?: string | undefined;
26
- icon_url?: string | undefined;
27
- homeplate_background?: string | undefined;
28
- homeplate_text_color?: string | undefined;
29
- is_testnet?: boolean | undefined;
30
- stats_enabled?: boolean | undefined;
31
- rpc_ws_url?: string | undefined;
32
- public_rpc_url?: string | undefined;
33
- wallet_connect_project_id?: string | undefined;
34
- optimism?: OptimismConfig | undefined;
35
- arbitrum?: ArbitrumConfig | undefined;
36
- }
37
- export interface DeployConfigPartial {
38
- rpc_url?: string | undefined;
39
- server_size?: string | undefined;
40
- chain_type: ChainType;
41
- node_type: NodeType;
42
- chain_id?: string | undefined;
43
- token_symbol?: string | undefined;
44
- instance_url?: string | undefined;
45
+ custom_domain?: string | undefined;
45
46
  logo_url?: string | undefined;
47
+ logo_url_dark?: string | undefined;
46
48
  chain_name?: string | undefined;
47
49
  icon_url?: string | undefined;
50
+ icon_url_dark?: string | undefined;
48
51
  homeplate_background?: string | undefined;
49
52
  homeplate_text_color?: string | undefined;
50
53
  is_testnet?: boolean | undefined;
@@ -52,6 +55,13 @@ export interface DeployConfigPartial {
52
55
  rpc_ws_url?: string | undefined;
53
56
  public_rpc_url?: string | undefined;
54
57
  wallet_connect_project_id?: string | undefined;
58
+ eip_1559_elasticity?: number | undefined;
59
+ navigation_layout: NavigationLayout;
60
+ favicon_url?: string | undefined;
61
+ og_image_url?: string | undefined;
62
+ color_theme: ColorTheme;
63
+ identicon: Identicon;
64
+ chain_spec?: string | undefined;
55
65
  optimism?: OptimismConfig | undefined;
56
66
  arbitrum?: ArbitrumConfig | undefined;
57
67
  }
@@ -77,6 +87,14 @@ export interface OptimismConfig {
77
87
  l2_withdrawals_start_block?: string | undefined;
78
88
  /** changes blockscout env INDEXER_OPTIMISM_L2_MESSAGE_PASSER_CONTRACT */
79
89
  l2_message_passer_contract?: string | undefined;
90
+ /** NEXT_PUBLIC_ROLLUP_L1_BASE_URL */
91
+ l1_blockscout_url: string;
92
+ /** NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL */
93
+ l2_withdrawal_url?: string | undefined;
94
+ /** NEXT_PUBLIC_FAULT_PROOF_ENABLED */
95
+ l2_fault_proof_enabled?: boolean | undefined;
96
+ /** NEXT_PUBLIC_HAS_MUD_FRAMEWORK */
97
+ has_mud_framework?: boolean | undefined;
80
98
  }
81
99
  /** https://github.com/blockscout/docs/blob/594e4c2ef83556b3cb41e9fd43bca776afb63c05/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L136 */
82
100
  export interface ArbitrumConfig {
@@ -101,4 +119,6 @@ export interface ArbitrumConfig {
101
119
  missing_batches_range?: string | undefined;
102
120
  confirmations_tracking_finalized?: boolean | undefined;
103
121
  new_batches_limit?: string | undefined;
122
+ /** NEXT_PUBLIC_ROLLUP_L1_BASE_URL */
123
+ l1_blockscout_url: string;
104
124
  }
package/dist/v1/config.js CHANGED
@@ -5,7 +5,7 @@
5
5
  // protoc v4.23.4
6
6
  // source: v1/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.NodeType = exports.ChainType = void 0;
8
+ exports.Identicon = exports.ColorTheme = exports.NavigationLayout = exports.NodeType = exports.ChainType = void 0;
9
9
  /* eslint-disable */
10
10
  var ChainType;
11
11
  (function (ChainType) {
@@ -24,3 +24,28 @@ var NodeType;
24
24
  NodeType["GANACHE"] = "GANACHE";
25
25
  NodeType["UNRECOGNIZED"] = "UNRECOGNIZED";
26
26
  })(NodeType || (exports.NodeType = NodeType = {}));
27
+ var NavigationLayout;
28
+ (function (NavigationLayout) {
29
+ NavigationLayout["UNSPECIFIED_NAVIGATION_LAYOUT"] = "UNSPECIFIED_NAVIGATION_LAYOUT";
30
+ NavigationLayout["HORIZONTAL"] = "HORIZONTAL";
31
+ NavigationLayout["VERTICAL"] = "VERTICAL";
32
+ NavigationLayout["UNRECOGNIZED"] = "UNRECOGNIZED";
33
+ })(NavigationLayout || (exports.NavigationLayout = NavigationLayout = {}));
34
+ var ColorTheme;
35
+ (function (ColorTheme) {
36
+ ColorTheme["UNSPECIFIED_COLOR_THEME"] = "UNSPECIFIED_COLOR_THEME";
37
+ ColorTheme["LIGHT"] = "LIGHT";
38
+ ColorTheme["DIM"] = "DIM";
39
+ ColorTheme["MIDNIGHT"] = "MIDNIGHT";
40
+ ColorTheme["DARK"] = "DARK";
41
+ ColorTheme["UNRECOGNIZED"] = "UNRECOGNIZED";
42
+ })(ColorTheme || (exports.ColorTheme = ColorTheme = {}));
43
+ var Identicon;
44
+ (function (Identicon) {
45
+ Identicon["UNSPECIFIED_IDENTICON"] = "UNSPECIFIED_IDENTICON";
46
+ Identicon["GITHUB"] = "GITHUB";
47
+ Identicon["JAZZICON"] = "JAZZICON";
48
+ Identicon["GRADIENT_AVATAR"] = "GRADIENT_AVATAR";
49
+ Identicon["BLOCKIE"] = "BLOCKIE";
50
+ Identicon["UNRECOGNIZED"] = "UNRECOGNIZED";
51
+ })(Identicon || (exports.Identicon = Identicon = {}));
package/dist/v1/config.ts CHANGED
@@ -23,6 +23,31 @@ export enum NodeType {
23
23
  UNRECOGNIZED = "UNRECOGNIZED",
24
24
  }
25
25
 
26
+ export enum NavigationLayout {
27
+ UNSPECIFIED_NAVIGATION_LAYOUT = "UNSPECIFIED_NAVIGATION_LAYOUT",
28
+ HORIZONTAL = "HORIZONTAL",
29
+ VERTICAL = "VERTICAL",
30
+ UNRECOGNIZED = "UNRECOGNIZED",
31
+ }
32
+
33
+ export enum ColorTheme {
34
+ UNSPECIFIED_COLOR_THEME = "UNSPECIFIED_COLOR_THEME",
35
+ LIGHT = "LIGHT",
36
+ DIM = "DIM",
37
+ MIDNIGHT = "MIDNIGHT",
38
+ DARK = "DARK",
39
+ UNRECOGNIZED = "UNRECOGNIZED",
40
+ }
41
+
42
+ export enum Identicon {
43
+ UNSPECIFIED_IDENTICON = "UNSPECIFIED_IDENTICON",
44
+ GITHUB = "GITHUB",
45
+ JAZZICON = "JAZZICON",
46
+ GRADIENT_AVATAR = "GRADIENT_AVATAR",
47
+ BLOCKIE = "BLOCKIE",
48
+ UNRECOGNIZED = "UNRECOGNIZED",
49
+ }
50
+
26
51
  export interface DeployConfig {
27
52
  rpc_url: string;
28
53
  server_size: string;
@@ -30,32 +55,12 @@ export interface DeployConfig {
30
55
  node_type: NodeType;
31
56
  chain_id?: string | undefined;
32
57
  token_symbol?: string | undefined;
33
- instance_url?: string | undefined;
34
- logo_url?: string | undefined;
35
- chain_name?: string | undefined;
36
- icon_url?: string | undefined;
37
- homeplate_background?: string | undefined;
38
- homeplate_text_color?: string | undefined;
39
- is_testnet?: boolean | undefined;
40
- stats_enabled?: boolean | undefined;
41
- rpc_ws_url?: string | undefined;
42
- public_rpc_url?: string | undefined;
43
- wallet_connect_project_id?: string | undefined;
44
- optimism?: OptimismConfig | undefined;
45
- arbitrum?: ArbitrumConfig | undefined;
46
- }
47
-
48
- export interface DeployConfigPartial {
49
- rpc_url?: string | undefined;
50
- server_size?: string | undefined;
51
- chain_type: ChainType;
52
- node_type: NodeType;
53
- chain_id?: string | undefined;
54
- token_symbol?: string | undefined;
55
- instance_url?: string | undefined;
58
+ custom_domain?: string | undefined;
56
59
  logo_url?: string | undefined;
60
+ logo_url_dark?: string | undefined;
57
61
  chain_name?: string | undefined;
58
62
  icon_url?: string | undefined;
63
+ icon_url_dark?: string | undefined;
59
64
  homeplate_background?: string | undefined;
60
65
  homeplate_text_color?: string | undefined;
61
66
  is_testnet?: boolean | undefined;
@@ -63,6 +68,13 @@ export interface DeployConfigPartial {
63
68
  rpc_ws_url?: string | undefined;
64
69
  public_rpc_url?: string | undefined;
65
70
  wallet_connect_project_id?: string | undefined;
71
+ eip_1559_elasticity?: number | undefined;
72
+ navigation_layout: NavigationLayout;
73
+ favicon_url?: string | undefined;
74
+ og_image_url?: string | undefined;
75
+ color_theme: ColorTheme;
76
+ identicon: Identicon;
77
+ chain_spec?: string | undefined;
66
78
  optimism?: OptimismConfig | undefined;
67
79
  arbitrum?: ArbitrumConfig | undefined;
68
80
  }
@@ -106,7 +118,21 @@ export interface OptimismConfig {
106
118
  | string
107
119
  | undefined;
108
120
  /** changes blockscout env INDEXER_OPTIMISM_L2_MESSAGE_PASSER_CONTRACT */
109
- l2_message_passer_contract?: string | undefined;
121
+ l2_message_passer_contract?:
122
+ | string
123
+ | undefined;
124
+ /** NEXT_PUBLIC_ROLLUP_L1_BASE_URL */
125
+ l1_blockscout_url: string;
126
+ /** NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL */
127
+ l2_withdrawal_url?:
128
+ | string
129
+ | undefined;
130
+ /** NEXT_PUBLIC_FAULT_PROOF_ENABLED */
131
+ l2_fault_proof_enabled?:
132
+ | boolean
133
+ | undefined;
134
+ /** NEXT_PUBLIC_HAS_MUD_FRAMEWORK */
135
+ has_mud_framework?: boolean | undefined;
110
136
  }
111
137
 
112
138
  /** https://github.com/blockscout/docs/blob/594e4c2ef83556b3cb41e9fd43bca776afb63c05/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L136 */
@@ -131,5 +157,9 @@ export interface ArbitrumConfig {
131
157
  batches_tracking_messages_to_blocks_shift?: string | undefined;
132
158
  missing_batches_range?: string | undefined;
133
159
  confirmations_tracking_finalized?: boolean | undefined;
134
- new_batches_limit?: string | undefined;
160
+ new_batches_limit?:
161
+ | string
162
+ | undefined;
163
+ /** NEXT_PUBLIC_ROLLUP_L1_BASE_URL */
164
+ l1_blockscout_url: string;
135
165
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockscout/autoscout-types",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "description": "TypeScript definitions for Autoscout microservice",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",