@blockscout/autoscout-types 0.0.8 → 0.0.10

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.
@@ -16,6 +16,16 @@ export declare enum UpdateInstanceAction {
16
16
  RESTART = "RESTART",
17
17
  UNRECOGNIZED = "UNRECOGNIZED"
18
18
  }
19
+ export declare enum DepositStatus {
20
+ UNSPECIFIED_DEPOSIT_STATUS = "UNSPECIFIED_DEPOSIT_STATUS",
21
+ DEPOSIT_STATUS_CREATED = "DEPOSIT_STATUS_CREATED",
22
+ DEPOSIT_STATUS_PENDING = "DEPOSIT_STATUS_PENDING",
23
+ DEPOSIT_STATUS_DELAYED = "DEPOSIT_STATUS_DELAYED",
24
+ DEPOSIT_STATUS_CONFIRMED = "DEPOSIT_STATUS_CONFIRMED",
25
+ DEPOSIT_STATUS_FAILED = "DEPOSIT_STATUS_FAILED",
26
+ DEPOSIT_STATUS_RESOLVED = "DEPOSIT_STATUS_RESOLVED",
27
+ UNRECOGNIZED = "UNRECOGNIZED"
28
+ }
19
29
  export interface GetConfigSchemaRequest {
20
30
  }
21
31
  export interface CreateInstanceRequest {
@@ -146,6 +156,32 @@ export interface RegisterProfileResponse {
146
156
  export interface CreateAuthTokenRequest {
147
157
  name: string;
148
158
  }
159
+ export interface CreateCoinbaseDepositRequest {
160
+ }
161
+ export interface CreateCoinbaseDepositResponse {
162
+ id: string;
163
+ url: string;
164
+ }
165
+ export interface GetCoinbaseDepositRequest {
166
+ deposit_id: string;
167
+ }
168
+ export interface ListCoinbaseDepositsRequest {
169
+ }
170
+ export interface ListCoinbaseDepositsResponse {
171
+ items: Deposit[];
172
+ }
173
+ export interface DeleteCoinbaseDepositRequest {
174
+ deposit_id: string;
175
+ }
176
+ export interface DeleteCoinbaseDepositResponse {
177
+ }
178
+ export interface Deposit {
179
+ id: string;
180
+ url: string;
181
+ created_at: string;
182
+ amount?: string | undefined;
183
+ status: DepositStatus;
184
+ }
149
185
  export interface Autoscout {
150
186
  GetConfigSchema(request: GetConfigSchemaRequest): Promise<ConfigSchema>;
151
187
  /** Creating blockscout instance with config */
@@ -176,4 +212,8 @@ export interface Autoscout {
176
212
  CreateAuthToken(request: CreateAuthTokenRequest): Promise<AuthToken>;
177
213
  /** Get list of all auth tokens for current account */
178
214
  ListAuthTokens(request: GetProfileRequest): Promise<ListAuthTokensResponse>;
215
+ CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
216
+ GetCoinbaseDeposit(request: GetCoinbaseDepositRequest): Promise<Deposit>;
217
+ ListCoinbaseDeposits(request: ListCoinbaseDepositsRequest): Promise<ListCoinbaseDepositsResponse>;
218
+ DeleteCoinbaseDeposit(request: DeleteCoinbaseDepositRequest): Promise<DeleteCoinbaseDepositResponse>;
179
219
  }
@@ -5,7 +5,7 @@
5
5
  // protoc v4.23.4
6
6
  // source: v1/autoscout.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.UpdateInstanceAction = exports.DeploymentStatus = void 0;
8
+ exports.DepositStatus = exports.UpdateInstanceAction = exports.DeploymentStatus = void 0;
9
9
  var DeploymentStatus;
10
10
  (function (DeploymentStatus) {
11
11
  DeploymentStatus["NO_STATUS"] = "NO_STATUS";
@@ -24,3 +24,14 @@ var UpdateInstanceAction;
24
24
  UpdateInstanceAction["RESTART"] = "RESTART";
25
25
  UpdateInstanceAction["UNRECOGNIZED"] = "UNRECOGNIZED";
26
26
  })(UpdateInstanceAction || (exports.UpdateInstanceAction = UpdateInstanceAction = {}));
27
+ var DepositStatus;
28
+ (function (DepositStatus) {
29
+ DepositStatus["UNSPECIFIED_DEPOSIT_STATUS"] = "UNSPECIFIED_DEPOSIT_STATUS";
30
+ DepositStatus["DEPOSIT_STATUS_CREATED"] = "DEPOSIT_STATUS_CREATED";
31
+ DepositStatus["DEPOSIT_STATUS_PENDING"] = "DEPOSIT_STATUS_PENDING";
32
+ DepositStatus["DEPOSIT_STATUS_DELAYED"] = "DEPOSIT_STATUS_DELAYED";
33
+ DepositStatus["DEPOSIT_STATUS_CONFIRMED"] = "DEPOSIT_STATUS_CONFIRMED";
34
+ DepositStatus["DEPOSIT_STATUS_FAILED"] = "DEPOSIT_STATUS_FAILED";
35
+ DepositStatus["DEPOSIT_STATUS_RESOLVED"] = "DEPOSIT_STATUS_RESOLVED";
36
+ DepositStatus["UNRECOGNIZED"] = "UNRECOGNIZED";
37
+ })(DepositStatus || (exports.DepositStatus = DepositStatus = {}));
@@ -26,6 +26,17 @@ export enum UpdateInstanceAction {
26
26
  UNRECOGNIZED = "UNRECOGNIZED",
27
27
  }
28
28
 
29
+ export enum DepositStatus {
30
+ UNSPECIFIED_DEPOSIT_STATUS = "UNSPECIFIED_DEPOSIT_STATUS",
31
+ DEPOSIT_STATUS_CREATED = "DEPOSIT_STATUS_CREATED",
32
+ DEPOSIT_STATUS_PENDING = "DEPOSIT_STATUS_PENDING",
33
+ DEPOSIT_STATUS_DELAYED = "DEPOSIT_STATUS_DELAYED",
34
+ DEPOSIT_STATUS_CONFIRMED = "DEPOSIT_STATUS_CONFIRMED",
35
+ DEPOSIT_STATUS_FAILED = "DEPOSIT_STATUS_FAILED",
36
+ DEPOSIT_STATUS_RESOLVED = "DEPOSIT_STATUS_RESOLVED",
37
+ UNRECOGNIZED = "UNRECOGNIZED",
38
+ }
39
+
29
40
  export interface GetConfigSchemaRequest {
30
41
  }
31
42
 
@@ -181,6 +192,40 @@ export interface CreateAuthTokenRequest {
181
192
  name: string;
182
193
  }
183
194
 
195
+ export interface CreateCoinbaseDepositRequest {
196
+ }
197
+
198
+ export interface CreateCoinbaseDepositResponse {
199
+ id: string;
200
+ url: string;
201
+ }
202
+
203
+ export interface GetCoinbaseDepositRequest {
204
+ deposit_id: string;
205
+ }
206
+
207
+ export interface ListCoinbaseDepositsRequest {
208
+ }
209
+
210
+ export interface ListCoinbaseDepositsResponse {
211
+ items: Deposit[];
212
+ }
213
+
214
+ export interface DeleteCoinbaseDepositRequest {
215
+ deposit_id: string;
216
+ }
217
+
218
+ export interface DeleteCoinbaseDepositResponse {
219
+ }
220
+
221
+ export interface Deposit {
222
+ id: string;
223
+ url: string;
224
+ created_at: string;
225
+ amount?: string | undefined;
226
+ status: DepositStatus;
227
+ }
228
+
184
229
  export interface Autoscout {
185
230
  GetConfigSchema(request: GetConfigSchemaRequest): Promise<ConfigSchema>;
186
231
  /** Creating blockscout instance with config */
@@ -211,4 +256,8 @@ export interface Autoscout {
211
256
  CreateAuthToken(request: CreateAuthTokenRequest): Promise<AuthToken>;
212
257
  /** Get list of all auth tokens for current account */
213
258
  ListAuthTokens(request: GetProfileRequest): Promise<ListAuthTokensResponse>;
259
+ CreateCoinbaseDeposit(request: CreateCoinbaseDepositRequest): Promise<CreateCoinbaseDepositResponse>;
260
+ GetCoinbaseDeposit(request: GetCoinbaseDepositRequest): Promise<Deposit>;
261
+ ListCoinbaseDeposits(request: ListCoinbaseDepositsRequest): Promise<ListCoinbaseDepositsResponse>;
262
+ DeleteCoinbaseDeposit(request: DeleteCoinbaseDepositRequest): Promise<DeleteCoinbaseDepositResponse>;
214
263
  }
@@ -35,6 +35,18 @@ export declare enum Identicon {
35
35
  BLOCKIE = "BLOCKIE",
36
36
  UNRECOGNIZED = "UNRECOGNIZED"
37
37
  }
38
+ export declare enum AdTextProvider {
39
+ UNSPECIFIED_AD_TEXT_PROVIDER = "UNSPECIFIED_AD_TEXT_PROVIDER",
40
+ COINZILLA = "COINZILLA",
41
+ TEXT_NONE = "TEXT_NONE",
42
+ UNRECOGNIZED = "UNRECOGNIZED"
43
+ }
44
+ export declare enum AdBannerProvider {
45
+ UNSPECIFIED_AD_BANNER_PROVIDER = "UNSPECIFIED_AD_BANNER_PROVIDER",
46
+ SLICE = "SLICE",
47
+ BANNER_NONE = "BANNER_NONE",
48
+ UNRECOGNIZED = "UNRECOGNIZED"
49
+ }
38
50
  export interface DeployConfig {
39
51
  rpc_url: string;
40
52
  server_size: string;
@@ -62,8 +74,26 @@ export interface DeployConfig {
62
74
  color_theme: ColorTheme;
63
75
  identicon: Identicon;
64
76
  chain_spec?: string | undefined;
77
+ /** https://github.com/blockscout/frontend/blob/e2081d49104c9626aff9cfbf864699f69db5b8d8/docs/ENVS.md#footer */
78
+ footer?: Footer | undefined;
65
79
  optimism?: OptimismConfig | undefined;
66
80
  arbitrum?: ArbitrumConfig | undefined;
81
+ ads?: Ads | undefined;
82
+ }
83
+ export interface Footer {
84
+ columns: FooterColumn[];
85
+ }
86
+ export interface FooterColumn {
87
+ title: string;
88
+ links: FooterLink[];
89
+ }
90
+ export interface FooterLink {
91
+ text: string;
92
+ url: string;
93
+ }
94
+ export interface Ads {
95
+ text_provider: AdTextProvider;
96
+ banner_provider: AdBannerProvider;
67
97
  }
68
98
  /** https://github.com/blockscout/docs/blob/df6996a0f8e553c2d4b1c3dcda6ef2518a8b39f9/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L102-L119 */
69
99
  export interface OptimismConfig {
@@ -90,7 +120,7 @@ export interface OptimismConfig {
90
120
  /** NEXT_PUBLIC_ROLLUP_L1_BASE_URL */
91
121
  l1_blockscout_url: string;
92
122
  /** NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL */
93
- l2_withdrawal_url?: string | undefined;
123
+ l2_withdrawal_url: string;
94
124
  /** NEXT_PUBLIC_FAULT_PROOF_ENABLED */
95
125
  l2_fault_proof_enabled?: boolean | undefined;
96
126
  /** NEXT_PUBLIC_HAS_MUD_FRAMEWORK */
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.Identicon = exports.ColorTheme = exports.NavigationLayout = exports.NodeType = exports.ChainType = void 0;
8
+ 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) {
@@ -49,3 +49,17 @@ var Identicon;
49
49
  Identicon["BLOCKIE"] = "BLOCKIE";
50
50
  Identicon["UNRECOGNIZED"] = "UNRECOGNIZED";
51
51
  })(Identicon || (exports.Identicon = Identicon = {}));
52
+ var AdTextProvider;
53
+ (function (AdTextProvider) {
54
+ AdTextProvider["UNSPECIFIED_AD_TEXT_PROVIDER"] = "UNSPECIFIED_AD_TEXT_PROVIDER";
55
+ AdTextProvider["COINZILLA"] = "COINZILLA";
56
+ AdTextProvider["TEXT_NONE"] = "TEXT_NONE";
57
+ AdTextProvider["UNRECOGNIZED"] = "UNRECOGNIZED";
58
+ })(AdTextProvider || (exports.AdTextProvider = AdTextProvider = {}));
59
+ var AdBannerProvider;
60
+ (function (AdBannerProvider) {
61
+ AdBannerProvider["UNSPECIFIED_AD_BANNER_PROVIDER"] = "UNSPECIFIED_AD_BANNER_PROVIDER";
62
+ AdBannerProvider["SLICE"] = "SLICE";
63
+ AdBannerProvider["BANNER_NONE"] = "BANNER_NONE";
64
+ AdBannerProvider["UNRECOGNIZED"] = "UNRECOGNIZED";
65
+ })(AdBannerProvider || (exports.AdBannerProvider = AdBannerProvider = {}));
package/dist/v1/config.ts CHANGED
@@ -48,6 +48,20 @@ export enum Identicon {
48
48
  UNRECOGNIZED = "UNRECOGNIZED",
49
49
  }
50
50
 
51
+ export enum AdTextProvider {
52
+ UNSPECIFIED_AD_TEXT_PROVIDER = "UNSPECIFIED_AD_TEXT_PROVIDER",
53
+ COINZILLA = "COINZILLA",
54
+ TEXT_NONE = "TEXT_NONE",
55
+ UNRECOGNIZED = "UNRECOGNIZED",
56
+ }
57
+
58
+ export enum AdBannerProvider {
59
+ UNSPECIFIED_AD_BANNER_PROVIDER = "UNSPECIFIED_AD_BANNER_PROVIDER",
60
+ SLICE = "SLICE",
61
+ BANNER_NONE = "BANNER_NONE",
62
+ UNRECOGNIZED = "UNRECOGNIZED",
63
+ }
64
+
51
65
  export interface DeployConfig {
52
66
  rpc_url: string;
53
67
  server_size: string;
@@ -74,9 +88,33 @@ export interface DeployConfig {
74
88
  og_image_url?: string | undefined;
75
89
  color_theme: ColorTheme;
76
90
  identicon: Identicon;
77
- chain_spec?: string | undefined;
91
+ chain_spec?:
92
+ | string
93
+ | undefined;
94
+ /** https://github.com/blockscout/frontend/blob/e2081d49104c9626aff9cfbf864699f69db5b8d8/docs/ENVS.md#footer */
95
+ footer?: Footer | undefined;
78
96
  optimism?: OptimismConfig | undefined;
79
97
  arbitrum?: ArbitrumConfig | undefined;
98
+ ads?: Ads | undefined;
99
+ }
100
+
101
+ export interface Footer {
102
+ columns: FooterColumn[];
103
+ }
104
+
105
+ export interface FooterColumn {
106
+ title: string;
107
+ links: FooterLink[];
108
+ }
109
+
110
+ export interface FooterLink {
111
+ text: string;
112
+ url: string;
113
+ }
114
+
115
+ export interface Ads {
116
+ text_provider: AdTextProvider;
117
+ banner_provider: AdBannerProvider;
80
118
  }
81
119
 
82
120
  /** https://github.com/blockscout/docs/blob/df6996a0f8e553c2d4b1c3dcda6ef2518a8b39f9/for-developers/information-and-settings/env-variables/backend-envs-chain-specific.md?plain=1#L102-L119 */
@@ -124,9 +162,7 @@ export interface OptimismConfig {
124
162
  /** NEXT_PUBLIC_ROLLUP_L1_BASE_URL */
125
163
  l1_blockscout_url: string;
126
164
  /** NEXT_PUBLIC_ROLLUP_L2_WITHDRAWAL_URL */
127
- l2_withdrawal_url?:
128
- | string
129
- | undefined;
165
+ l2_withdrawal_url: string;
130
166
  /** NEXT_PUBLIC_FAULT_PROOF_ENABLED */
131
167
  l2_fault_proof_enabled?:
132
168
  | boolean
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockscout/autoscout-types",
3
- "version": "0.0.8",
3
+ "version": "0.0.10",
4
4
  "description": "TypeScript definitions for Autoscout microservice",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",