@sentio/api 1.0.2-rc.25 → 1.0.2-rc.27
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/src/apis/DebugAndSimulationApi.d.ts +43 -43
- package/dist/src/apis/DebugAndSimulationApi.js +76 -76
- package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.d.ts +0 -6
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.js +0 -2
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.js.map +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.d.ts +0 -6
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js +0 -2
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js.map +1 -1
- package/dist/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.d.ts → SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody.d.ts} +9 -15
- package/dist/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js → SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody.js} +9 -11
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody.js.map +1 -0
- package/dist/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.d.ts → SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody.d.ts} +9 -15
- package/dist/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js → SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody.js} +9 -11
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody.js.map +1 -0
- package/dist/src/models/index.d.ts +2 -3
- package/dist/src/models/index.js +2 -3
- package/dist/src/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DebugAndSimulationApi.ts +104 -104
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.ts +0 -8
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.ts +0 -8
- package/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts → SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody.ts} +11 -19
- package/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts → SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody.ts} +11 -19
- package/src/models/index.ts +2 -3
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js.map +0 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js.map +0 -1
- package/dist/src/models/SolidityServiceTxIdentifier.d.ts +0 -44
- package/dist/src/models/SolidityServiceTxIdentifier.js +0 -46
- package/dist/src/models/SolidityServiceTxIdentifier.js.map +0 -1
- package/src/models/SolidityServiceTxIdentifier.ts +0 -81
|
@@ -23,8 +23,8 @@ import type {
|
|
|
23
23
|
SolidityServiceSimulateTransactionResponse,
|
|
24
24
|
SolidityServiceSolidityAPIServiceSimulateTransactionBody,
|
|
25
25
|
SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody,
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody,
|
|
27
|
+
SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody,
|
|
28
28
|
TxindexEvmSearchTransactionsResponse,
|
|
29
29
|
} from '../models/index.js';
|
|
30
30
|
import {
|
|
@@ -44,10 +44,10 @@ import {
|
|
|
44
44
|
SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON,
|
|
45
45
|
SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyFromJSON,
|
|
46
46
|
SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBodyFromJSON,
|
|
48
|
+
SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBodyToJSON,
|
|
49
|
+
SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBodyFromJSON,
|
|
50
|
+
SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBodyToJSON,
|
|
51
51
|
TxindexEvmSearchTransactionsResponseFromJSON,
|
|
52
52
|
TxindexEvmSearchTransactionsResponseToJSON,
|
|
53
53
|
} from '../models/index.js';
|
|
@@ -62,50 +62,50 @@ export interface GetCallTraceByBundleRequest {
|
|
|
62
62
|
ignoreGasCost?: boolean;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
export interface
|
|
65
|
+
export interface GetCallTraceBySimulationRequest {
|
|
66
66
|
owner: string;
|
|
67
67
|
slug: string;
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
chainId: string;
|
|
69
|
+
simulationId: string;
|
|
70
70
|
withInternalCalls?: boolean;
|
|
71
71
|
disableOptimizer?: boolean;
|
|
72
72
|
ignoreGasCost?: boolean;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export interface
|
|
75
|
+
export interface GetCallTraceByTransactionRequest {
|
|
76
76
|
owner: string;
|
|
77
77
|
slug: string;
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
chainId: string;
|
|
79
|
+
txHash: string;
|
|
80
80
|
withInternalCalls?: boolean;
|
|
81
81
|
disableOptimizer?: boolean;
|
|
82
82
|
ignoreGasCost?: boolean;
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
export interface
|
|
85
|
+
export interface GetCallTraceOnForkBundleRequest {
|
|
86
86
|
owner: string;
|
|
87
87
|
slug: string;
|
|
88
88
|
forkId: string;
|
|
89
|
-
|
|
89
|
+
bundleId: string;
|
|
90
90
|
withInternalCalls?: boolean;
|
|
91
91
|
disableOptimizer?: boolean;
|
|
92
92
|
ignoreGasCost?: boolean;
|
|
93
93
|
}
|
|
94
94
|
|
|
95
|
-
export interface
|
|
95
|
+
export interface GetCallTraceOnForkSimulationRequest {
|
|
96
96
|
owner: string;
|
|
97
97
|
slug: string;
|
|
98
|
-
|
|
98
|
+
forkId: string;
|
|
99
99
|
simulationId: string;
|
|
100
100
|
withInternalCalls?: boolean;
|
|
101
101
|
disableOptimizer?: boolean;
|
|
102
102
|
ignoreGasCost?: boolean;
|
|
103
103
|
}
|
|
104
104
|
|
|
105
|
-
export interface
|
|
105
|
+
export interface GetCallTraceOnForkTransactionRequest {
|
|
106
106
|
owner: string;
|
|
107
107
|
slug: string;
|
|
108
|
-
|
|
108
|
+
forkId: string;
|
|
109
109
|
txHash: string;
|
|
110
110
|
withInternalCalls?: boolean;
|
|
111
111
|
disableOptimizer?: boolean;
|
|
@@ -165,18 +165,18 @@ export interface SimulateTransactionBundleRequest {
|
|
|
165
165
|
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody;
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
export interface
|
|
168
|
+
export interface SimulateTransactionBundleOnForkRequest {
|
|
169
169
|
owner: string;
|
|
170
170
|
slug: string;
|
|
171
171
|
forkId: string;
|
|
172
|
-
body:
|
|
172
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody;
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
export interface
|
|
175
|
+
export interface SimulateTransactionOnForkRequest {
|
|
176
176
|
owner: string;
|
|
177
177
|
slug: string;
|
|
178
178
|
forkId: string;
|
|
179
|
-
body:
|
|
179
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody;
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
/**
|
|
@@ -255,34 +255,34 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
255
255
|
}
|
|
256
256
|
|
|
257
257
|
/**
|
|
258
|
-
* Get Call Trace by
|
|
258
|
+
* Get Call Trace by Simulation
|
|
259
259
|
*/
|
|
260
|
-
async
|
|
260
|
+
async getCallTraceBySimulationRaw(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>> {
|
|
261
261
|
if (requestParameters['owner'] == null) {
|
|
262
262
|
throw new runtime.RequiredError(
|
|
263
263
|
'owner',
|
|
264
|
-
'Required parameter "owner" was null or undefined when calling
|
|
264
|
+
'Required parameter "owner" was null or undefined when calling getCallTraceBySimulation().'
|
|
265
265
|
);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
if (requestParameters['slug'] == null) {
|
|
269
269
|
throw new runtime.RequiredError(
|
|
270
270
|
'slug',
|
|
271
|
-
'Required parameter "slug" was null or undefined when calling
|
|
271
|
+
'Required parameter "slug" was null or undefined when calling getCallTraceBySimulation().'
|
|
272
272
|
);
|
|
273
273
|
}
|
|
274
274
|
|
|
275
|
-
if (requestParameters['
|
|
275
|
+
if (requestParameters['chainId'] == null) {
|
|
276
276
|
throw new runtime.RequiredError(
|
|
277
|
-
'
|
|
278
|
-
'Required parameter "
|
|
277
|
+
'chainId',
|
|
278
|
+
'Required parameter "chainId" was null or undefined when calling getCallTraceBySimulation().'
|
|
279
279
|
);
|
|
280
280
|
}
|
|
281
281
|
|
|
282
|
-
if (requestParameters['
|
|
282
|
+
if (requestParameters['simulationId'] == null) {
|
|
283
283
|
throw new runtime.RequiredError(
|
|
284
|
-
'
|
|
285
|
-
'Required parameter "
|
|
284
|
+
'simulationId',
|
|
285
|
+
'Required parameter "simulationId" was null or undefined when calling getCallTraceBySimulation().'
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
|
|
@@ -307,7 +307,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
307
307
|
}
|
|
308
308
|
|
|
309
309
|
const response = await this.request({
|
|
310
|
-
path: `/api/v1/solidity/{owner}/{slug}/
|
|
310
|
+
path: `/api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"simulationId"}}`, encodeURIComponent(String(requestParameters['simulationId']))),
|
|
311
311
|
method: 'GET',
|
|
312
312
|
headers: headerParameters,
|
|
313
313
|
query: queryParameters,
|
|
@@ -317,42 +317,43 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
317
317
|
}
|
|
318
318
|
|
|
319
319
|
/**
|
|
320
|
-
* Get Call Trace by
|
|
320
|
+
* Get Call Trace by Simulation
|
|
321
321
|
*/
|
|
322
|
-
async
|
|
323
|
-
const response = await this.
|
|
322
|
+
async getCallTraceBySimulation(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody> {
|
|
323
|
+
const response = await this.getCallTraceBySimulationRaw(requestParameters, initOverrides);
|
|
324
324
|
return await response.value();
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
/**
|
|
328
|
-
*
|
|
328
|
+
* API to get Sentio call trace. It takes `txId.txHash` and `chainSpec.chainId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID. The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png). But we have an additional `startIndex` and `startIndex` on each trace entry even for the LOG, representing the execution order in the trace. This allows you to build chart that marks the order of fund flow. %20(1)%20(1)%20(1).png)
|
|
329
|
+
* Get Call Trace by Transaction
|
|
329
330
|
*/
|
|
330
|
-
async
|
|
331
|
+
async getCallTraceByTransactionRaw(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>> {
|
|
331
332
|
if (requestParameters['owner'] == null) {
|
|
332
333
|
throw new runtime.RequiredError(
|
|
333
334
|
'owner',
|
|
334
|
-
'Required parameter "owner" was null or undefined when calling
|
|
335
|
+
'Required parameter "owner" was null or undefined when calling getCallTraceByTransaction().'
|
|
335
336
|
);
|
|
336
337
|
}
|
|
337
338
|
|
|
338
339
|
if (requestParameters['slug'] == null) {
|
|
339
340
|
throw new runtime.RequiredError(
|
|
340
341
|
'slug',
|
|
341
|
-
'Required parameter "slug" was null or undefined when calling
|
|
342
|
+
'Required parameter "slug" was null or undefined when calling getCallTraceByTransaction().'
|
|
342
343
|
);
|
|
343
344
|
}
|
|
344
345
|
|
|
345
|
-
if (requestParameters['
|
|
346
|
+
if (requestParameters['chainId'] == null) {
|
|
346
347
|
throw new runtime.RequiredError(
|
|
347
|
-
'
|
|
348
|
-
'Required parameter "
|
|
348
|
+
'chainId',
|
|
349
|
+
'Required parameter "chainId" was null or undefined when calling getCallTraceByTransaction().'
|
|
349
350
|
);
|
|
350
351
|
}
|
|
351
352
|
|
|
352
|
-
if (requestParameters['
|
|
353
|
+
if (requestParameters['txHash'] == null) {
|
|
353
354
|
throw new runtime.RequiredError(
|
|
354
|
-
'
|
|
355
|
-
'Required parameter "
|
|
355
|
+
'txHash',
|
|
356
|
+
'Required parameter "txHash" was null or undefined when calling getCallTraceByTransaction().'
|
|
356
357
|
);
|
|
357
358
|
}
|
|
358
359
|
|
|
@@ -377,7 +378,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
377
378
|
}
|
|
378
379
|
|
|
379
380
|
const response = await this.request({
|
|
380
|
-
path: `/api/v1/solidity/{owner}/{slug}/
|
|
381
|
+
path: `/api/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"txHash"}}`, encodeURIComponent(String(requestParameters['txHash']))),
|
|
381
382
|
method: 'GET',
|
|
382
383
|
headers: headerParameters,
|
|
383
384
|
query: queryParameters,
|
|
@@ -387,42 +388,43 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
387
388
|
}
|
|
388
389
|
|
|
389
390
|
/**
|
|
390
|
-
*
|
|
391
|
+
* API to get Sentio call trace. It takes `txId.txHash` and `chainSpec.chainId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID. The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png). But we have an additional `startIndex` and `startIndex` on each trace entry even for the LOG, representing the execution order in the trace. This allows you to build chart that marks the order of fund flow. %20(1)%20(1)%20(1).png)
|
|
392
|
+
* Get Call Trace by Transaction
|
|
391
393
|
*/
|
|
392
|
-
async
|
|
393
|
-
const response = await this.
|
|
394
|
+
async getCallTraceByTransaction(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody> {
|
|
395
|
+
const response = await this.getCallTraceByTransactionRaw(requestParameters, initOverrides);
|
|
394
396
|
return await response.value();
|
|
395
397
|
}
|
|
396
398
|
|
|
397
399
|
/**
|
|
398
|
-
* Get Call Trace by
|
|
400
|
+
* Get Call Trace by Bundle Simulation on Fork
|
|
399
401
|
*/
|
|
400
|
-
async
|
|
402
|
+
async getCallTraceOnForkBundleRaw(requestParameters: GetCallTraceOnForkBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>> {
|
|
401
403
|
if (requestParameters['owner'] == null) {
|
|
402
404
|
throw new runtime.RequiredError(
|
|
403
405
|
'owner',
|
|
404
|
-
'Required parameter "owner" was null or undefined when calling
|
|
406
|
+
'Required parameter "owner" was null or undefined when calling getCallTraceOnForkBundle().'
|
|
405
407
|
);
|
|
406
408
|
}
|
|
407
409
|
|
|
408
410
|
if (requestParameters['slug'] == null) {
|
|
409
411
|
throw new runtime.RequiredError(
|
|
410
412
|
'slug',
|
|
411
|
-
'Required parameter "slug" was null or undefined when calling
|
|
413
|
+
'Required parameter "slug" was null or undefined when calling getCallTraceOnForkBundle().'
|
|
412
414
|
);
|
|
413
415
|
}
|
|
414
416
|
|
|
415
417
|
if (requestParameters['forkId'] == null) {
|
|
416
418
|
throw new runtime.RequiredError(
|
|
417
419
|
'forkId',
|
|
418
|
-
'Required parameter "forkId" was null or undefined when calling
|
|
420
|
+
'Required parameter "forkId" was null or undefined when calling getCallTraceOnForkBundle().'
|
|
419
421
|
);
|
|
420
422
|
}
|
|
421
423
|
|
|
422
|
-
if (requestParameters['
|
|
424
|
+
if (requestParameters['bundleId'] == null) {
|
|
423
425
|
throw new runtime.RequiredError(
|
|
424
|
-
'
|
|
425
|
-
'Required parameter "
|
|
426
|
+
'bundleId',
|
|
427
|
+
'Required parameter "bundleId" was null or undefined when calling getCallTraceOnForkBundle().'
|
|
426
428
|
);
|
|
427
429
|
}
|
|
428
430
|
|
|
@@ -447,7 +449,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
447
449
|
}
|
|
448
450
|
|
|
449
451
|
const response = await this.request({
|
|
450
|
-
path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/
|
|
452
|
+
path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/bundle/{bundleId}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"forkId"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"bundleId"}}`, encodeURIComponent(String(requestParameters['bundleId']))),
|
|
451
453
|
method: 'GET',
|
|
452
454
|
headers: headerParameters,
|
|
453
455
|
query: queryParameters,
|
|
@@ -457,42 +459,42 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
457
459
|
}
|
|
458
460
|
|
|
459
461
|
/**
|
|
460
|
-
* Get Call Trace by
|
|
462
|
+
* Get Call Trace by Bundle Simulation on Fork
|
|
461
463
|
*/
|
|
462
|
-
async
|
|
463
|
-
const response = await this.
|
|
464
|
+
async getCallTraceOnForkBundle(requestParameters: GetCallTraceOnForkBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody> {
|
|
465
|
+
const response = await this.getCallTraceOnForkBundleRaw(requestParameters, initOverrides);
|
|
464
466
|
return await response.value();
|
|
465
467
|
}
|
|
466
468
|
|
|
467
469
|
/**
|
|
468
|
-
* Get Call Trace by Simulation
|
|
470
|
+
* Get Call Trace by Simulation on Fork
|
|
469
471
|
*/
|
|
470
|
-
async
|
|
472
|
+
async getCallTraceOnForkSimulationRaw(requestParameters: GetCallTraceOnForkSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>> {
|
|
471
473
|
if (requestParameters['owner'] == null) {
|
|
472
474
|
throw new runtime.RequiredError(
|
|
473
475
|
'owner',
|
|
474
|
-
'Required parameter "owner" was null or undefined when calling
|
|
476
|
+
'Required parameter "owner" was null or undefined when calling getCallTraceOnForkSimulation().'
|
|
475
477
|
);
|
|
476
478
|
}
|
|
477
479
|
|
|
478
480
|
if (requestParameters['slug'] == null) {
|
|
479
481
|
throw new runtime.RequiredError(
|
|
480
482
|
'slug',
|
|
481
|
-
'Required parameter "slug" was null or undefined when calling
|
|
483
|
+
'Required parameter "slug" was null or undefined when calling getCallTraceOnForkSimulation().'
|
|
482
484
|
);
|
|
483
485
|
}
|
|
484
486
|
|
|
485
|
-
if (requestParameters['
|
|
487
|
+
if (requestParameters['forkId'] == null) {
|
|
486
488
|
throw new runtime.RequiredError(
|
|
487
|
-
'
|
|
488
|
-
'Required parameter "
|
|
489
|
+
'forkId',
|
|
490
|
+
'Required parameter "forkId" was null or undefined when calling getCallTraceOnForkSimulation().'
|
|
489
491
|
);
|
|
490
492
|
}
|
|
491
493
|
|
|
492
494
|
if (requestParameters['simulationId'] == null) {
|
|
493
495
|
throw new runtime.RequiredError(
|
|
494
496
|
'simulationId',
|
|
495
|
-
'Required parameter "simulationId" was null or undefined when calling
|
|
497
|
+
'Required parameter "simulationId" was null or undefined when calling getCallTraceOnForkSimulation().'
|
|
496
498
|
);
|
|
497
499
|
}
|
|
498
500
|
|
|
@@ -517,7 +519,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
517
519
|
}
|
|
518
520
|
|
|
519
521
|
const response = await this.request({
|
|
520
|
-
path: `/api/v1/solidity/{owner}/{slug}/{
|
|
522
|
+
path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation/{simulationId}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"forkId"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"simulationId"}}`, encodeURIComponent(String(requestParameters['simulationId']))),
|
|
521
523
|
method: 'GET',
|
|
522
524
|
headers: headerParameters,
|
|
523
525
|
query: queryParameters,
|
|
@@ -527,43 +529,42 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
527
529
|
}
|
|
528
530
|
|
|
529
531
|
/**
|
|
530
|
-
* Get Call Trace by Simulation
|
|
532
|
+
* Get Call Trace by Simulation on Fork
|
|
531
533
|
*/
|
|
532
|
-
async
|
|
533
|
-
const response = await this.
|
|
534
|
+
async getCallTraceOnForkSimulation(requestParameters: GetCallTraceOnForkSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody> {
|
|
535
|
+
const response = await this.getCallTraceOnForkSimulationRaw(requestParameters, initOverrides);
|
|
534
536
|
return await response.value();
|
|
535
537
|
}
|
|
536
538
|
|
|
537
539
|
/**
|
|
538
|
-
*
|
|
539
|
-
* Get Call Trace by Transaction
|
|
540
|
+
* Get Call Trace by Transaction on Fork
|
|
540
541
|
*/
|
|
541
|
-
async
|
|
542
|
+
async getCallTraceOnForkTransactionRaw(requestParameters: GetCallTraceOnForkTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>> {
|
|
542
543
|
if (requestParameters['owner'] == null) {
|
|
543
544
|
throw new runtime.RequiredError(
|
|
544
545
|
'owner',
|
|
545
|
-
'Required parameter "owner" was null or undefined when calling
|
|
546
|
+
'Required parameter "owner" was null or undefined when calling getCallTraceOnForkTransaction().'
|
|
546
547
|
);
|
|
547
548
|
}
|
|
548
549
|
|
|
549
550
|
if (requestParameters['slug'] == null) {
|
|
550
551
|
throw new runtime.RequiredError(
|
|
551
552
|
'slug',
|
|
552
|
-
'Required parameter "slug" was null or undefined when calling
|
|
553
|
+
'Required parameter "slug" was null or undefined when calling getCallTraceOnForkTransaction().'
|
|
553
554
|
);
|
|
554
555
|
}
|
|
555
556
|
|
|
556
|
-
if (requestParameters['
|
|
557
|
+
if (requestParameters['forkId'] == null) {
|
|
557
558
|
throw new runtime.RequiredError(
|
|
558
|
-
'
|
|
559
|
-
'Required parameter "
|
|
559
|
+
'forkId',
|
|
560
|
+
'Required parameter "forkId" was null or undefined when calling getCallTraceOnForkTransaction().'
|
|
560
561
|
);
|
|
561
562
|
}
|
|
562
563
|
|
|
563
564
|
if (requestParameters['txHash'] == null) {
|
|
564
565
|
throw new runtime.RequiredError(
|
|
565
566
|
'txHash',
|
|
566
|
-
'Required parameter "txHash" was null or undefined when calling
|
|
567
|
+
'Required parameter "txHash" was null or undefined when calling getCallTraceOnForkTransaction().'
|
|
567
568
|
);
|
|
568
569
|
}
|
|
569
570
|
|
|
@@ -588,7 +589,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
588
589
|
}
|
|
589
590
|
|
|
590
591
|
const response = await this.request({
|
|
591
|
-
path: `/api/v1/solidity/{owner}/{slug}/{
|
|
592
|
+
path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/transaction/{txHash}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"forkId"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"txHash"}}`, encodeURIComponent(String(requestParameters['txHash']))),
|
|
592
593
|
method: 'GET',
|
|
593
594
|
headers: headerParameters,
|
|
594
595
|
query: queryParameters,
|
|
@@ -598,11 +599,10 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
598
599
|
}
|
|
599
600
|
|
|
600
601
|
/**
|
|
601
|
-
*
|
|
602
|
-
* Get Call Trace by Transaction
|
|
602
|
+
* Get Call Trace by Transaction on Fork
|
|
603
603
|
*/
|
|
604
|
-
async
|
|
605
|
-
const response = await this.
|
|
604
|
+
async getCallTraceOnForkTransaction(requestParameters: GetCallTraceOnForkTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody> {
|
|
605
|
+
const response = await this.getCallTraceOnForkTransactionRaw(requestParameters, initOverrides);
|
|
606
606
|
return await response.value();
|
|
607
607
|
}
|
|
608
608
|
|
|
@@ -993,32 +993,32 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
993
993
|
/**
|
|
994
994
|
* Run Bundle simulation on Fork
|
|
995
995
|
*/
|
|
996
|
-
async
|
|
996
|
+
async simulateTransactionBundleOnForkRaw(requestParameters: SimulateTransactionBundleOnForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionBundleResponse>> {
|
|
997
997
|
if (requestParameters['owner'] == null) {
|
|
998
998
|
throw new runtime.RequiredError(
|
|
999
999
|
'owner',
|
|
1000
|
-
'Required parameter "owner" was null or undefined when calling
|
|
1000
|
+
'Required parameter "owner" was null or undefined when calling simulateTransactionBundleOnFork().'
|
|
1001
1001
|
);
|
|
1002
1002
|
}
|
|
1003
1003
|
|
|
1004
1004
|
if (requestParameters['slug'] == null) {
|
|
1005
1005
|
throw new runtime.RequiredError(
|
|
1006
1006
|
'slug',
|
|
1007
|
-
'Required parameter "slug" was null or undefined when calling
|
|
1007
|
+
'Required parameter "slug" was null or undefined when calling simulateTransactionBundleOnFork().'
|
|
1008
1008
|
);
|
|
1009
1009
|
}
|
|
1010
1010
|
|
|
1011
1011
|
if (requestParameters['forkId'] == null) {
|
|
1012
1012
|
throw new runtime.RequiredError(
|
|
1013
1013
|
'forkId',
|
|
1014
|
-
'Required parameter "forkId" was null or undefined when calling
|
|
1014
|
+
'Required parameter "forkId" was null or undefined when calling simulateTransactionBundleOnFork().'
|
|
1015
1015
|
);
|
|
1016
1016
|
}
|
|
1017
1017
|
|
|
1018
1018
|
if (requestParameters['body'] == null) {
|
|
1019
1019
|
throw new runtime.RequiredError(
|
|
1020
1020
|
'body',
|
|
1021
|
-
'Required parameter "body" was null or undefined when calling
|
|
1021
|
+
'Required parameter "body" was null or undefined when calling simulateTransactionBundleOnFork().'
|
|
1022
1022
|
);
|
|
1023
1023
|
}
|
|
1024
1024
|
|
|
@@ -1037,7 +1037,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
1037
1037
|
method: 'POST',
|
|
1038
1038
|
headers: headerParameters,
|
|
1039
1039
|
query: queryParameters,
|
|
1040
|
-
body:
|
|
1040
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBodyToJSON(requestParameters['body']),
|
|
1041
1041
|
}, initOverrides);
|
|
1042
1042
|
|
|
1043
1043
|
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
|
|
@@ -1046,40 +1046,40 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
1046
1046
|
/**
|
|
1047
1047
|
* Run Bundle simulation on Fork
|
|
1048
1048
|
*/
|
|
1049
|
-
async
|
|
1050
|
-
const response = await this.
|
|
1049
|
+
async simulateTransactionBundleOnFork(requestParameters: SimulateTransactionBundleOnForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionBundleResponse> {
|
|
1050
|
+
const response = await this.simulateTransactionBundleOnForkRaw(requestParameters, initOverrides);
|
|
1051
1051
|
return await response.value();
|
|
1052
1052
|
}
|
|
1053
1053
|
|
|
1054
1054
|
/**
|
|
1055
1055
|
* Run Simulation on Fork
|
|
1056
1056
|
*/
|
|
1057
|
-
async
|
|
1057
|
+
async simulateTransactionOnForkRaw(requestParameters: SimulateTransactionOnForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionResponse>> {
|
|
1058
1058
|
if (requestParameters['owner'] == null) {
|
|
1059
1059
|
throw new runtime.RequiredError(
|
|
1060
1060
|
'owner',
|
|
1061
|
-
'Required parameter "owner" was null or undefined when calling
|
|
1061
|
+
'Required parameter "owner" was null or undefined when calling simulateTransactionOnFork().'
|
|
1062
1062
|
);
|
|
1063
1063
|
}
|
|
1064
1064
|
|
|
1065
1065
|
if (requestParameters['slug'] == null) {
|
|
1066
1066
|
throw new runtime.RequiredError(
|
|
1067
1067
|
'slug',
|
|
1068
|
-
'Required parameter "slug" was null or undefined when calling
|
|
1068
|
+
'Required parameter "slug" was null or undefined when calling simulateTransactionOnFork().'
|
|
1069
1069
|
);
|
|
1070
1070
|
}
|
|
1071
1071
|
|
|
1072
1072
|
if (requestParameters['forkId'] == null) {
|
|
1073
1073
|
throw new runtime.RequiredError(
|
|
1074
1074
|
'forkId',
|
|
1075
|
-
'Required parameter "forkId" was null or undefined when calling
|
|
1075
|
+
'Required parameter "forkId" was null or undefined when calling simulateTransactionOnFork().'
|
|
1076
1076
|
);
|
|
1077
1077
|
}
|
|
1078
1078
|
|
|
1079
1079
|
if (requestParameters['body'] == null) {
|
|
1080
1080
|
throw new runtime.RequiredError(
|
|
1081
1081
|
'body',
|
|
1082
|
-
'Required parameter "body" was null or undefined when calling
|
|
1082
|
+
'Required parameter "body" was null or undefined when calling simulateTransactionOnFork().'
|
|
1083
1083
|
);
|
|
1084
1084
|
}
|
|
1085
1085
|
|
|
@@ -1098,7 +1098,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
1098
1098
|
method: 'POST',
|
|
1099
1099
|
headers: headerParameters,
|
|
1100
1100
|
query: queryParameters,
|
|
1101
|
-
body:
|
|
1101
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBodyToJSON(requestParameters['body']),
|
|
1102
1102
|
}, initOverrides);
|
|
1103
1103
|
|
|
1104
1104
|
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue));
|
|
@@ -1107,8 +1107,8 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
1107
1107
|
/**
|
|
1108
1108
|
* Run Simulation on Fork
|
|
1109
1109
|
*/
|
|
1110
|
-
async
|
|
1111
|
-
const response = await this.
|
|
1110
|
+
async simulateTransactionOnFork(requestParameters: SimulateTransactionOnForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionResponse> {
|
|
1111
|
+
const response = await this.simulateTransactionOnForkRaw(requestParameters, initOverrides);
|
|
1112
1112
|
return await response.value();
|
|
1113
1113
|
}
|
|
1114
1114
|
|
|
@@ -27,12 +27,6 @@ import {
|
|
|
27
27
|
* @interface SolidityServiceSolidityAPIServiceSimulateTransactionBody
|
|
28
28
|
*/
|
|
29
29
|
export interface SolidityServiceSolidityAPIServiceSimulateTransactionBody {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {object}
|
|
33
|
-
* @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBody
|
|
34
|
-
*/
|
|
35
|
-
chainSpec?: object;
|
|
36
30
|
/**
|
|
37
31
|
*
|
|
38
32
|
* @type {SolidityServiceSimulation}
|
|
@@ -59,7 +53,6 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBodyFromJSON
|
|
|
59
53
|
}
|
|
60
54
|
return {
|
|
61
55
|
|
|
62
|
-
'chainSpec': json['chainSpec'] == null ? undefined : json['chainSpec'],
|
|
63
56
|
'simulation': SolidityServiceSimulationFromJSON(json['simulation']),
|
|
64
57
|
};
|
|
65
58
|
}
|
|
@@ -75,7 +68,6 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBodyFromJSON
|
|
|
75
68
|
|
|
76
69
|
return {
|
|
77
70
|
|
|
78
|
-
'chainSpec': value['chainSpec'],
|
|
79
71
|
'simulation': SolidityServiceSimulationToJSON(value['simulation']),
|
|
80
72
|
};
|
|
81
73
|
}
|
|
@@ -27,12 +27,6 @@ import {
|
|
|
27
27
|
* @interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody
|
|
28
28
|
*/
|
|
29
29
|
export interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody {
|
|
30
|
-
/**
|
|
31
|
-
*
|
|
32
|
-
* @type {object}
|
|
33
|
-
* @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody
|
|
34
|
-
*/
|
|
35
|
-
chainSpec?: object;
|
|
36
30
|
/**
|
|
37
31
|
* For blockNumber, transactionIndex, networkId, stateOverrides and blockOverrides fields, only the first simulation takes effect.
|
|
38
32
|
* @type {Array<SolidityServiceSimulation>}
|
|
@@ -59,7 +53,6 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyFr
|
|
|
59
53
|
}
|
|
60
54
|
return {
|
|
61
55
|
|
|
62
|
-
'chainSpec': json['chainSpec'] == null ? undefined : json['chainSpec'],
|
|
63
56
|
'simulations': ((json['simulations'] as Array<any>).map(SolidityServiceSimulationFromJSON)),
|
|
64
57
|
};
|
|
65
58
|
}
|
|
@@ -75,7 +68,6 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyFr
|
|
|
75
68
|
|
|
76
69
|
return {
|
|
77
70
|
|
|
78
|
-
'chainSpec': value['chainSpec'],
|
|
79
71
|
'simulations': ((value['simulations'] as Array<any>).map(SolidityServiceSimulationToJSON)),
|
|
80
72
|
};
|
|
81
73
|
}
|