@blockscout/autoscout-types 1.14.4-alpha.1 → 1.15.1

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.
@@ -53,6 +53,16 @@ export declare enum UserOpsTraceClient {
53
53
  DEBUG = "DEBUG",
54
54
  TRACE = "TRACE"
55
55
  }
56
+ /**
57
+ * Domain name protocols the name service plugin can resolve against. The
58
+ * supported set is also enforced at runtime via the
59
+ * `supported_name_service_protocols` admin setting (kept in sync with the
60
+ * shared BENS `/api/v1/protocols` resource).
61
+ */
62
+ export declare enum NameServiceProtocol {
63
+ UNSPECIFIED_NAME_SERVICE_PROTOCOL = "UNSPECIFIED_NAME_SERVICE_PROTOCOL",
64
+ ENS = "ENS"
65
+ }
56
66
  export interface DeployConfig {
57
67
  rpc_url: string;
58
68
  server_size: string;
@@ -344,8 +354,8 @@ export interface AdminServicePluginConfig {
344
354
  export interface NameServicePluginConfig {
345
355
  enabled: boolean;
346
356
  /**
347
- * Domain name protocol ids the chain resolves against, e.g. ["ens"].
357
+ * Domain name protocols the chain resolves against, e.g. ["ens"].
348
358
  * Validated against the supported set; passed to the frontend verbatim.
349
359
  */
350
- protocols: string[];
360
+ protocols: NameServiceProtocol[];
351
361
  }
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.UserOpsTraceClient = exports.IndexerBlockTransformer = exports.AdBannerProvider = exports.AdTextProvider = exports.Identicon = exports.ColorTheme = exports.NavigationLayout = exports.NodeType = exports.ChainType = void 0;
8
+ exports.NameServiceProtocol = exports.UserOpsTraceClient = exports.IndexerBlockTransformer = exports.AdBannerProvider = exports.AdTextProvider = exports.Identicon = exports.ColorTheme = exports.NavigationLayout = exports.NodeType = exports.ChainType = void 0;
9
9
  /* eslint-disable */
10
10
  var ChainType;
11
11
  (function (ChainType) {
@@ -71,3 +71,14 @@ var UserOpsTraceClient;
71
71
  UserOpsTraceClient["DEBUG"] = "DEBUG";
72
72
  UserOpsTraceClient["TRACE"] = "TRACE";
73
73
  })(UserOpsTraceClient || (exports.UserOpsTraceClient = UserOpsTraceClient = {}));
74
+ /**
75
+ * Domain name protocols the name service plugin can resolve against. The
76
+ * supported set is also enforced at runtime via the
77
+ * `supported_name_service_protocols` admin setting (kept in sync with the
78
+ * shared BENS `/api/v1/protocols` resource).
79
+ */
80
+ var NameServiceProtocol;
81
+ (function (NameServiceProtocol) {
82
+ NameServiceProtocol["UNSPECIFIED_NAME_SERVICE_PROTOCOL"] = "UNSPECIFIED_NAME_SERVICE_PROTOCOL";
83
+ NameServiceProtocol["ENS"] = "ENS";
84
+ })(NameServiceProtocol || (exports.NameServiceProtocol = NameServiceProtocol = {}));
package/dist/v1/config.ts CHANGED
@@ -70,6 +70,17 @@ export enum UserOpsTraceClient {
70
70
  TRACE = "TRACE",
71
71
  }
72
72
 
73
+ /**
74
+ * Domain name protocols the name service plugin can resolve against. The
75
+ * supported set is also enforced at runtime via the
76
+ * `supported_name_service_protocols` admin setting (kept in sync with the
77
+ * shared BENS `/api/v1/protocols` resource).
78
+ */
79
+ export enum NameServiceProtocol {
80
+ UNSPECIFIED_NAME_SERVICE_PROTOCOL = "UNSPECIFIED_NAME_SERVICE_PROTOCOL",
81
+ ENS = "ENS",
82
+ }
83
+
73
84
  export interface DeployConfig {
74
85
  rpc_url: string;
75
86
  server_size: string;
@@ -472,8 +483,8 @@ export interface AdminServicePluginConfig {
472
483
  export interface NameServicePluginConfig {
473
484
  enabled: boolean;
474
485
  /**
475
- * Domain name protocol ids the chain resolves against, e.g. ["ens"].
486
+ * Domain name protocols the chain resolves against, e.g. ["ens"].
476
487
  * Validated against the supported set; passed to the frontend verbatim.
477
488
  */
478
- protocols: string[];
489
+ protocols: NameServiceProtocol[];
479
490
  }
@@ -24,4 +24,5 @@ export interface ServerSizeSchemaDetails {
24
24
  user_ops_cost_per_hour: string;
25
25
  stats_cost_per_hour: string;
26
26
  admin_service_cost_per_hour: string;
27
+ name_service_cost_per_hour: string;
27
28
  }
@@ -34,4 +34,5 @@ export interface ServerSizeSchemaDetails {
34
34
  user_ops_cost_per_hour: string;
35
35
  stats_cost_per_hour: string;
36
36
  admin_service_cost_per_hour: string;
37
+ name_service_cost_per_hour: string;
37
38
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockscout/autoscout-types",
3
- "version": "1.14.4-alpha.1",
3
+ "version": "1.15.1",
4
4
  "description": "TypeScript definitions for Autoscout microservice",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",