@sentio/api 1.0.2-rc.21 → 1.0.2-rc.23

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.
Files changed (29) hide show
  1. package/dist/src/apis/DebugAndSimulationApi.d.ts +86 -114
  2. package/dist/src/apis/DebugAndSimulationApi.js +162 -190
  3. package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
  4. package/dist/src/apis/ForksApi.d.ts +12 -12
  5. package/dist/src/apis/ForksApi.js +30 -30
  6. package/dist/src/apis/ForksApi.js.map +1 -1
  7. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.d.ts +1 -1
  8. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js +2 -2
  9. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js.map +1 -1
  10. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.d.ts +40 -0
  11. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js +48 -0
  12. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js.map +1 -0
  13. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.d.ts +32 -0
  14. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js +42 -0
  15. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js.map +1 -0
  16. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.d.ts +40 -0
  17. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js +48 -0
  18. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js.map +1 -0
  19. package/dist/src/models/index.d.ts +3 -0
  20. package/dist/src/models/index.js +3 -0
  21. package/dist/src/models/index.js.map +1 -1
  22. package/package.json +1 -1
  23. package/src/apis/DebugAndSimulationApi.ts +277 -299
  24. package/src/apis/ForksApi.ts +54 -54
  25. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.ts +3 -3
  26. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts +89 -0
  27. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.ts +65 -0
  28. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts +89 -0
  29. package/src/models/index.ts +3 -0
@@ -41,37 +41,37 @@ import {
41
41
  } from '../models/index.js';
42
42
 
43
43
  export interface CreateForkRequest {
44
- projectOwner: string;
45
- projectSlug: string;
44
+ owner: string;
45
+ slug: string;
46
46
  body: SolidityServiceForkServiceCreateForkBody;
47
47
  }
48
48
 
49
49
  export interface DeleteForkRequest {
50
- projectOwner: string;
51
- projectSlug: string;
50
+ owner: string;
51
+ slug: string;
52
52
  id: string;
53
53
  }
54
54
 
55
55
  export interface GetForkRequest {
56
- projectOwner: string;
57
- projectSlug: string;
56
+ owner: string;
57
+ slug: string;
58
58
  id: string;
59
59
  }
60
60
 
61
61
  export interface GetForkInfoRequest {
62
- projectOwner: string;
63
- projectSlug: string;
62
+ owner: string;
63
+ slug: string;
64
64
  id: string;
65
65
  }
66
66
 
67
67
  export interface ListForksRequest {
68
- projectOwner: string;
69
- projectSlug: string;
68
+ owner: string;
69
+ slug: string;
70
70
  }
71
71
 
72
72
  export interface UpdateForkRequest {
73
- projectOwner: string;
74
- projectSlug: string;
73
+ owner: string;
74
+ slug: string;
75
75
  id: string;
76
76
  body: SolidityServiceForkServiceUpdateForkBody;
77
77
  }
@@ -85,17 +85,17 @@ export class ForksApi extends runtime.BaseAPI {
85
85
  * Create a fork
86
86
  */
87
87
  async createForkRaw(requestParameters: CreateForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceCreateForkResponse>> {
88
- if (requestParameters['projectOwner'] == null) {
88
+ if (requestParameters['owner'] == null) {
89
89
  throw new runtime.RequiredError(
90
- 'projectOwner',
91
- 'Required parameter "projectOwner" was null or undefined when calling createFork().'
90
+ 'owner',
91
+ 'Required parameter "owner" was null or undefined when calling createFork().'
92
92
  );
93
93
  }
94
94
 
95
- if (requestParameters['projectSlug'] == null) {
95
+ if (requestParameters['slug'] == null) {
96
96
  throw new runtime.RequiredError(
97
- 'projectSlug',
98
- 'Required parameter "projectSlug" was null or undefined when calling createFork().'
97
+ 'slug',
98
+ 'Required parameter "slug" was null or undefined when calling createFork().'
99
99
  );
100
100
  }
101
101
 
@@ -117,7 +117,7 @@ export class ForksApi extends runtime.BaseAPI {
117
117
  }
118
118
 
119
119
  const response = await this.request({
120
- path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))),
120
+ path: `/api/v1/solidity/{owner}/{slug}/fork`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
121
121
  method: 'POST',
122
122
  headers: headerParameters,
123
123
  query: queryParameters,
@@ -139,17 +139,17 @@ export class ForksApi extends runtime.BaseAPI {
139
139
  * Delete a fork by id
140
140
  */
141
141
  async deleteForkRaw(requestParameters: DeleteForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
142
- if (requestParameters['projectOwner'] == null) {
142
+ if (requestParameters['owner'] == null) {
143
143
  throw new runtime.RequiredError(
144
- 'projectOwner',
145
- 'Required parameter "projectOwner" was null or undefined when calling deleteFork().'
144
+ 'owner',
145
+ 'Required parameter "owner" was null or undefined when calling deleteFork().'
146
146
  );
147
147
  }
148
148
 
149
- if (requestParameters['projectSlug'] == null) {
149
+ if (requestParameters['slug'] == null) {
150
150
  throw new runtime.RequiredError(
151
- 'projectSlug',
152
- 'Required parameter "projectSlug" was null or undefined when calling deleteFork().'
151
+ 'slug',
152
+ 'Required parameter "slug" was null or undefined when calling deleteFork().'
153
153
  );
154
154
  }
155
155
 
@@ -169,7 +169,7 @@ export class ForksApi extends runtime.BaseAPI {
169
169
  }
170
170
 
171
171
  const response = await this.request({
172
- path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{id}`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
172
+ path: `/api/v1/solidity/{owner}/{slug}/fork/{id}`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
173
173
  method: 'DELETE',
174
174
  headers: headerParameters,
175
175
  query: queryParameters,
@@ -190,17 +190,17 @@ export class ForksApi extends runtime.BaseAPI {
190
190
  * Get a fork by id
191
191
  */
192
192
  async getForkRaw(requestParameters: GetForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceGetForkResponse>> {
193
- if (requestParameters['projectOwner'] == null) {
193
+ if (requestParameters['owner'] == null) {
194
194
  throw new runtime.RequiredError(
195
- 'projectOwner',
196
- 'Required parameter "projectOwner" was null or undefined when calling getFork().'
195
+ 'owner',
196
+ 'Required parameter "owner" was null or undefined when calling getFork().'
197
197
  );
198
198
  }
199
199
 
200
- if (requestParameters['projectSlug'] == null) {
200
+ if (requestParameters['slug'] == null) {
201
201
  throw new runtime.RequiredError(
202
- 'projectSlug',
203
- 'Required parameter "projectSlug" was null or undefined when calling getFork().'
202
+ 'slug',
203
+ 'Required parameter "slug" was null or undefined when calling getFork().'
204
204
  );
205
205
  }
206
206
 
@@ -220,7 +220,7 @@ export class ForksApi extends runtime.BaseAPI {
220
220
  }
221
221
 
222
222
  const response = await this.request({
223
- path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{id}`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
223
+ path: `/api/v1/solidity/{owner}/{slug}/fork/{id}`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
224
224
  method: 'GET',
225
225
  headers: headerParameters,
226
226
  query: queryParameters,
@@ -241,17 +241,17 @@ export class ForksApi extends runtime.BaseAPI {
241
241
  * Get fork info by id
242
242
  */
243
243
  async getForkInfoRaw(requestParameters: GetForkInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceGetForkInfoResponse>> {
244
- if (requestParameters['projectOwner'] == null) {
244
+ if (requestParameters['owner'] == null) {
245
245
  throw new runtime.RequiredError(
246
- 'projectOwner',
247
- 'Required parameter "projectOwner" was null or undefined when calling getForkInfo().'
246
+ 'owner',
247
+ 'Required parameter "owner" was null or undefined when calling getForkInfo().'
248
248
  );
249
249
  }
250
250
 
251
- if (requestParameters['projectSlug'] == null) {
251
+ if (requestParameters['slug'] == null) {
252
252
  throw new runtime.RequiredError(
253
- 'projectSlug',
254
- 'Required parameter "projectSlug" was null or undefined when calling getForkInfo().'
253
+ 'slug',
254
+ 'Required parameter "slug" was null or undefined when calling getForkInfo().'
255
255
  );
256
256
  }
257
257
 
@@ -271,7 +271,7 @@ export class ForksApi extends runtime.BaseAPI {
271
271
  }
272
272
 
273
273
  const response = await this.request({
274
- path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{id}/info`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
274
+ path: `/api/v1/solidity/{owner}/{slug}/fork/{id}/info`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
275
275
  method: 'GET',
276
276
  headers: headerParameters,
277
277
  query: queryParameters,
@@ -292,17 +292,17 @@ export class ForksApi extends runtime.BaseAPI {
292
292
  * List all forks by project
293
293
  */
294
294
  async listForksRaw(requestParameters: ListForksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceListForksResponse>> {
295
- if (requestParameters['projectOwner'] == null) {
295
+ if (requestParameters['owner'] == null) {
296
296
  throw new runtime.RequiredError(
297
- 'projectOwner',
298
- 'Required parameter "projectOwner" was null or undefined when calling listForks().'
297
+ 'owner',
298
+ 'Required parameter "owner" was null or undefined when calling listForks().'
299
299
  );
300
300
  }
301
301
 
302
- if (requestParameters['projectSlug'] == null) {
302
+ if (requestParameters['slug'] == null) {
303
303
  throw new runtime.RequiredError(
304
- 'projectSlug',
305
- 'Required parameter "projectSlug" was null or undefined when calling listForks().'
304
+ 'slug',
305
+ 'Required parameter "slug" was null or undefined when calling listForks().'
306
306
  );
307
307
  }
308
308
 
@@ -315,7 +315,7 @@ export class ForksApi extends runtime.BaseAPI {
315
315
  }
316
316
 
317
317
  const response = await this.request({
318
- path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))),
318
+ path: `/api/v1/solidity/{owner}/{slug}/fork`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
319
319
  method: 'GET',
320
320
  headers: headerParameters,
321
321
  query: queryParameters,
@@ -336,17 +336,17 @@ export class ForksApi extends runtime.BaseAPI {
336
336
  * Update a fork by id
337
337
  */
338
338
  async updateForkRaw(requestParameters: UpdateForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceUpdateForkResponse>> {
339
- if (requestParameters['projectOwner'] == null) {
339
+ if (requestParameters['owner'] == null) {
340
340
  throw new runtime.RequiredError(
341
- 'projectOwner',
342
- 'Required parameter "projectOwner" was null or undefined when calling updateFork().'
341
+ 'owner',
342
+ 'Required parameter "owner" was null or undefined when calling updateFork().'
343
343
  );
344
344
  }
345
345
 
346
- if (requestParameters['projectSlug'] == null) {
346
+ if (requestParameters['slug'] == null) {
347
347
  throw new runtime.RequiredError(
348
- 'projectSlug',
349
- 'Required parameter "projectSlug" was null or undefined when calling updateFork().'
348
+ 'slug',
349
+ 'Required parameter "slug" was null or undefined when calling updateFork().'
350
350
  );
351
351
  }
352
352
 
@@ -375,7 +375,7 @@ export class ForksApi extends runtime.BaseAPI {
375
375
  }
376
376
 
377
377
  const response = await this.request({
378
- path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{id}`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
378
+ path: `/api/v1/solidity/{owner}/{slug}/fork/{id}`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
379
379
  method: 'PUT',
380
380
  headers: headerParameters,
381
381
  query: queryParameters,
@@ -24,7 +24,7 @@ export interface SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSp
24
24
  * @type {string}
25
25
  * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec
26
26
  */
27
- chainId?: string;
27
+ forkId?: string;
28
28
  }
29
29
 
30
30
  /**
@@ -44,7 +44,7 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpe
44
44
  }
45
45
  return {
46
46
 
47
- 'chainId': json['chainId'] == null ? undefined : json['chainId'],
47
+ 'forkId': json['forkId'] == null ? undefined : json['forkId'],
48
48
  };
49
49
  }
50
50
 
@@ -59,7 +59,7 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpe
59
59
 
60
60
  return {
61
61
 
62
- 'chainId': value['chainId'],
62
+ 'forkId': value['forkId'],
63
63
  };
64
64
  }
65
65
 
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sentio API
5
+ * Sentio Open API for query data
6
+ *
7
+ * The version of the OpenAPI document: version not set
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { SolidityServiceSimulation } from './SolidityServiceSimulation.js';
17
+ import {
18
+ SolidityServiceSimulationFromJSON,
19
+ SolidityServiceSimulationFromJSONTyped,
20
+ SolidityServiceSimulationToJSON,
21
+ SolidityServiceSimulationToJSONTyped,
22
+ } from './SolidityServiceSimulation.js';
23
+ import type { SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec } from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js';
24
+ import {
25
+ SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON,
26
+ SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSONTyped,
27
+ SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON,
28
+ SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSONTyped,
29
+ } from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody
35
+ */
36
+ export interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody {
37
+ /**
38
+ *
39
+ * @type {SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec}
40
+ * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody
41
+ */
42
+ chainSpec?: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec;
43
+ /**
44
+ * For blockNumber, transactionIndex, networkId, stateOverrides and blockOverrides fields, only the first simulation takes effect.
45
+ * @type {Array<SolidityServiceSimulation>}
46
+ * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody
47
+ */
48
+ simulations: Array<SolidityServiceSimulation>;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody interface.
53
+ */
54
+ export function instanceOfSolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody(value: object): value is SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody {
55
+ if (!('simulations' in value) || value['simulations'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyFromJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody {
60
+ return SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'chainSpec': json['chainSpec'] == null ? undefined : SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON(json['chainSpec']),
70
+ 'simulations': ((json['simulations'] as Array<any>).map(SolidityServiceSimulationFromJSON)),
71
+ };
72
+ }
73
+
74
+ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyToJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody {
75
+ return SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyToJSONTyped(json, false);
76
+ }
77
+
78
+ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyToJSONTyped(value?: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'chainSpec': SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON(value['chainSpec']),
86
+ 'simulations': ((value['simulations'] as Array<any>).map(SolidityServiceSimulationToJSON)),
87
+ };
88
+ }
89
+
@@ -0,0 +1,65 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sentio API
5
+ * Sentio Open API for query data
6
+ *
7
+ * The version of the OpenAPI document: version not set
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec
20
+ */
21
+ export interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec
26
+ */
27
+ chainId?: string;
28
+ }
29
+
30
+ /**
31
+ * Check if a given object implements the SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec interface.
32
+ */
33
+ export function instanceOfSolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec(value: object): value is SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec {
34
+ return true;
35
+ }
36
+
37
+ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec {
38
+ return SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSONTyped(json, false);
39
+ }
40
+
41
+ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+
47
+ 'chainId': json['chainId'] == null ? undefined : json['chainId'],
48
+ };
49
+ }
50
+
51
+ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec {
52
+ return SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSONTyped(json, false);
53
+ }
54
+
55
+ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSONTyped(value?: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec | null, ignoreDiscriminator: boolean = false): any {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+
60
+ return {
61
+
62
+ 'chainId': value['chainId'],
63
+ };
64
+ }
65
+
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sentio API
5
+ * Sentio Open API for query data
6
+ *
7
+ * The version of the OpenAPI document: version not set
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime.js';
16
+ import type { SolidityServiceSimulation } from './SolidityServiceSimulation.js';
17
+ import {
18
+ SolidityServiceSimulationFromJSON,
19
+ SolidityServiceSimulationFromJSONTyped,
20
+ SolidityServiceSimulationToJSON,
21
+ SolidityServiceSimulationToJSONTyped,
22
+ } from './SolidityServiceSimulation.js';
23
+ import type { SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec } from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js';
24
+ import {
25
+ SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON,
26
+ SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSONTyped,
27
+ SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON,
28
+ SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSONTyped,
29
+ } from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody
35
+ */
36
+ export interface SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody {
37
+ /**
38
+ *
39
+ * @type {SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec}
40
+ * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody
41
+ */
42
+ chainSpec?: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec;
43
+ /**
44
+ *
45
+ * @type {SolidityServiceSimulation}
46
+ * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody
47
+ */
48
+ simulation: SolidityServiceSimulation;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody interface.
53
+ */
54
+ export function instanceOfSolidityServiceSolidityAPIServiceSimulateTransactionByForkBody(value: object): value is SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody {
55
+ if (!('simulation' in value) || value['simulation'] === undefined) return false;
56
+ return true;
57
+ }
58
+
59
+ export function SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyFromJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody {
60
+ return SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyFromJSONTyped(json, false);
61
+ }
62
+
63
+ export function SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody {
64
+ if (json == null) {
65
+ return json;
66
+ }
67
+ return {
68
+
69
+ 'chainSpec': json['chainSpec'] == null ? undefined : SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON(json['chainSpec']),
70
+ 'simulation': SolidityServiceSimulationFromJSON(json['simulation']),
71
+ };
72
+ }
73
+
74
+ export function SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyToJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody {
75
+ return SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyToJSONTyped(json, false);
76
+ }
77
+
78
+ export function SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyToJSONTyped(value?: SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody | null, ignoreDiscriminator: boolean = false): any {
79
+ if (value == null) {
80
+ return value;
81
+ }
82
+
83
+ return {
84
+
85
+ 'chainSpec': SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON(value['chainSpec']),
86
+ 'simulation': SolidityServiceSimulationToJSON(value['simulation']),
87
+ };
88
+ }
89
+
@@ -174,6 +174,9 @@ export * from './SolidityServiceSimulationResult.js';
174
174
  export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBody.js';
175
175
  export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js';
176
176
  export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js';
177
+ export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js';
178
+ export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js';
179
+ export * from './SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js';
177
180
  export * from './SolidityServiceSourceFetcherType.js';
178
181
  export * from './SolidityServiceSourceInfo.js';
179
182
  export * from './SolidityServiceSourceMultiFile.js';