@sentio/api 1.0.2-rc.22 → 1.0.2-rc.24
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 +73 -105
- package/dist/src/apis/DebugAndSimulationApi.js +121 -189
- package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.d.ts +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.js +3 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.js.map +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.d.ts +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js +2 -2
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js.map +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.d.ts +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js +3 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js.map +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.d.ts +40 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js +50 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js.map +1 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.d.ts +32 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js +42 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js.map +1 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.d.ts +40 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js +50 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js.map +1 -0
- package/dist/src/models/SolidityServiceTxIdentifier.d.ts +1 -1
- package/dist/src/models/index.d.ts +3 -0
- package/dist/src/models/index.js +3 -0
- package/dist/src/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DebugAndSimulationApi.ts +158 -256
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.ts +3 -2
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.ts +3 -3
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.ts +3 -2
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts +90 -0
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.ts +65 -0
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts +90 -0
- package/src/models/SolidityServiceTxIdentifier.ts +1 -1
- package/src/models/index.ts +3 -0
|
@@ -23,6 +23,8 @@ import type {
|
|
|
23
23
|
SolidityServiceSimulateTransactionResponse,
|
|
24
24
|
SolidityServiceSolidityAPIServiceSimulateTransactionBody,
|
|
25
25
|
SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody,
|
|
26
|
+
SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody,
|
|
27
|
+
SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody,
|
|
26
28
|
TxindexEvmSearchTransactionsResponse,
|
|
27
29
|
} from '../models/index.js';
|
|
28
30
|
import {
|
|
@@ -42,83 +44,69 @@ import {
|
|
|
42
44
|
SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON,
|
|
43
45
|
SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyFromJSON,
|
|
44
46
|
SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON,
|
|
47
|
+
SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyFromJSON,
|
|
48
|
+
SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyToJSON,
|
|
49
|
+
SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyFromJSON,
|
|
50
|
+
SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyToJSON,
|
|
45
51
|
TxindexEvmSearchTransactionsResponseFromJSON,
|
|
46
52
|
TxindexEvmSearchTransactionsResponseToJSON,
|
|
47
53
|
} from '../models/index.js';
|
|
48
54
|
|
|
49
|
-
export interface
|
|
55
|
+
export interface GetCallTraceByBundleRequest {
|
|
50
56
|
owner: string;
|
|
51
57
|
slug: string;
|
|
52
58
|
chainId: string;
|
|
53
|
-
|
|
54
|
-
chainSpecForkId?: string;
|
|
55
|
-
txIdSimulationId?: string;
|
|
56
|
-
txIdBundleId?: string;
|
|
59
|
+
bundleId: string;
|
|
57
60
|
withInternalCalls?: boolean;
|
|
58
61
|
disableOptimizer?: boolean;
|
|
59
62
|
ignoreGasCost?: boolean;
|
|
60
63
|
}
|
|
61
64
|
|
|
62
|
-
export interface
|
|
65
|
+
export interface GetCallTraceByForkBundleRequest {
|
|
63
66
|
owner: string;
|
|
64
67
|
slug: string;
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
chainSpecForkId?: string;
|
|
68
|
-
txIdTxHash?: string;
|
|
69
|
-
txIdBundleId?: string;
|
|
68
|
+
forkId: string;
|
|
69
|
+
bundleId: string;
|
|
70
70
|
withInternalCalls?: boolean;
|
|
71
71
|
disableOptimizer?: boolean;
|
|
72
72
|
ignoreGasCost?: boolean;
|
|
73
73
|
}
|
|
74
74
|
|
|
75
|
-
export interface
|
|
75
|
+
export interface GetCallTraceByForkSimulationRequest {
|
|
76
76
|
owner: string;
|
|
77
77
|
slug: string;
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
chainSpecForkId?: string;
|
|
81
|
-
txIdTxHash?: string;
|
|
82
|
-
txIdSimulationId?: string;
|
|
78
|
+
forkId: string;
|
|
79
|
+
simulationId: string;
|
|
83
80
|
withInternalCalls?: boolean;
|
|
84
81
|
disableOptimizer?: boolean;
|
|
85
82
|
ignoreGasCost?: boolean;
|
|
86
83
|
}
|
|
87
84
|
|
|
88
|
-
export interface
|
|
85
|
+
export interface GetCallTraceByForkTransactionRequest {
|
|
89
86
|
owner: string;
|
|
90
87
|
slug: string;
|
|
91
88
|
forkId: string;
|
|
92
89
|
txHash: string;
|
|
93
|
-
chainSpecChainId?: string;
|
|
94
|
-
txIdSimulationId?: string;
|
|
95
|
-
txIdBundleId?: string;
|
|
96
90
|
withInternalCalls?: boolean;
|
|
97
91
|
disableOptimizer?: boolean;
|
|
98
92
|
ignoreGasCost?: boolean;
|
|
99
93
|
}
|
|
100
94
|
|
|
101
|
-
export interface
|
|
95
|
+
export interface GetCallTraceBySimulationRequest {
|
|
102
96
|
owner: string;
|
|
103
97
|
slug: string;
|
|
104
|
-
|
|
98
|
+
chainId: string;
|
|
105
99
|
simulationId: string;
|
|
106
|
-
chainSpecChainId?: string;
|
|
107
|
-
txIdTxHash?: string;
|
|
108
|
-
txIdBundleId?: string;
|
|
109
100
|
withInternalCalls?: boolean;
|
|
110
101
|
disableOptimizer?: boolean;
|
|
111
102
|
ignoreGasCost?: boolean;
|
|
112
103
|
}
|
|
113
104
|
|
|
114
|
-
export interface
|
|
105
|
+
export interface GetCallTraceByTransactionRequest {
|
|
115
106
|
owner: string;
|
|
116
107
|
slug: string;
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
chainSpecChainId?: string;
|
|
120
|
-
txIdTxHash?: string;
|
|
121
|
-
txIdSimulationId?: string;
|
|
108
|
+
chainId: string;
|
|
109
|
+
txHash: string;
|
|
122
110
|
withInternalCalls?: boolean;
|
|
123
111
|
disableOptimizer?: boolean;
|
|
124
112
|
ignoreGasCost?: boolean;
|
|
@@ -170,25 +158,25 @@ export interface SimulateTransactionRequest {
|
|
|
170
158
|
body: SolidityServiceSolidityAPIServiceSimulateTransactionBody;
|
|
171
159
|
}
|
|
172
160
|
|
|
173
|
-
export interface
|
|
161
|
+
export interface SimulateTransactionBundleRequest {
|
|
174
162
|
owner: string;
|
|
175
163
|
slug: string;
|
|
176
|
-
|
|
177
|
-
body:
|
|
164
|
+
chainId: string;
|
|
165
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody;
|
|
178
166
|
}
|
|
179
167
|
|
|
180
|
-
export interface
|
|
168
|
+
export interface SimulateTransactionBundleByForkRequest {
|
|
181
169
|
owner: string;
|
|
182
170
|
slug: string;
|
|
183
|
-
|
|
184
|
-
body:
|
|
171
|
+
forkId: string;
|
|
172
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody;
|
|
185
173
|
}
|
|
186
174
|
|
|
187
|
-
export interface
|
|
175
|
+
export interface SimulateTransactionByForkRequest {
|
|
188
176
|
owner: string;
|
|
189
177
|
slug: string;
|
|
190
178
|
forkId: string;
|
|
191
|
-
body:
|
|
179
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody;
|
|
192
180
|
}
|
|
193
181
|
|
|
194
182
|
/**
|
|
@@ -197,52 +185,39 @@ export interface SimulateTransactionBundle2Request {
|
|
|
197
185
|
export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
198
186
|
|
|
199
187
|
/**
|
|
200
|
-
*
|
|
201
|
-
* Get indexed call trace
|
|
188
|
+
* Get Call Trace by Bundle Simulation
|
|
202
189
|
*/
|
|
203
|
-
async
|
|
190
|
+
async getCallTraceByBundleRaw(requestParameters: GetCallTraceByBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>> {
|
|
204
191
|
if (requestParameters['owner'] == null) {
|
|
205
192
|
throw new runtime.RequiredError(
|
|
206
193
|
'owner',
|
|
207
|
-
'Required parameter "owner" was null or undefined when calling
|
|
194
|
+
'Required parameter "owner" was null or undefined when calling getCallTraceByBundle().'
|
|
208
195
|
);
|
|
209
196
|
}
|
|
210
197
|
|
|
211
198
|
if (requestParameters['slug'] == null) {
|
|
212
199
|
throw new runtime.RequiredError(
|
|
213
200
|
'slug',
|
|
214
|
-
'Required parameter "slug" was null or undefined when calling
|
|
201
|
+
'Required parameter "slug" was null or undefined when calling getCallTraceByBundle().'
|
|
215
202
|
);
|
|
216
203
|
}
|
|
217
204
|
|
|
218
205
|
if (requestParameters['chainId'] == null) {
|
|
219
206
|
throw new runtime.RequiredError(
|
|
220
207
|
'chainId',
|
|
221
|
-
'Required parameter "chainId" was null or undefined when calling
|
|
208
|
+
'Required parameter "chainId" was null or undefined when calling getCallTraceByBundle().'
|
|
222
209
|
);
|
|
223
210
|
}
|
|
224
211
|
|
|
225
|
-
if (requestParameters['
|
|
212
|
+
if (requestParameters['bundleId'] == null) {
|
|
226
213
|
throw new runtime.RequiredError(
|
|
227
|
-
'
|
|
228
|
-
'Required parameter "
|
|
214
|
+
'bundleId',
|
|
215
|
+
'Required parameter "bundleId" was null or undefined when calling getCallTraceByBundle().'
|
|
229
216
|
);
|
|
230
217
|
}
|
|
231
218
|
|
|
232
219
|
const queryParameters: any = {};
|
|
233
220
|
|
|
234
|
-
if (requestParameters['chainSpecForkId'] != null) {
|
|
235
|
-
queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId'];
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
if (requestParameters['txIdSimulationId'] != null) {
|
|
239
|
-
queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
if (requestParameters['txIdBundleId'] != null) {
|
|
243
|
-
queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
|
|
244
|
-
}
|
|
245
|
-
|
|
246
221
|
if (requestParameters['withInternalCalls'] != null) {
|
|
247
222
|
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
248
223
|
}
|
|
@@ -262,7 +237,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
262
237
|
}
|
|
263
238
|
|
|
264
239
|
const response = await this.request({
|
|
265
|
-
path: `/api/v1/solidity/{owner}/{slug}/{
|
|
240
|
+
path: `/api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"bundleId"}}`, encodeURIComponent(String(requestParameters['bundleId']))),
|
|
266
241
|
method: 'GET',
|
|
267
242
|
headers: headerParameters,
|
|
268
243
|
query: queryParameters,
|
|
@@ -272,61 +247,47 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
272
247
|
}
|
|
273
248
|
|
|
274
249
|
/**
|
|
275
|
-
*
|
|
276
|
-
* Get indexed call trace
|
|
250
|
+
* Get Call Trace by Bundle Simulation
|
|
277
251
|
*/
|
|
278
|
-
async
|
|
279
|
-
const response = await this.
|
|
252
|
+
async getCallTraceByBundle(requestParameters: GetCallTraceByBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody> {
|
|
253
|
+
const response = await this.getCallTraceByBundleRaw(requestParameters, initOverrides);
|
|
280
254
|
return await response.value();
|
|
281
255
|
}
|
|
282
256
|
|
|
283
257
|
/**
|
|
284
|
-
*
|
|
285
|
-
* Get indexed call trace
|
|
258
|
+
* Get Call Trace by Bundle Simulation on Fork
|
|
286
259
|
*/
|
|
287
|
-
async
|
|
260
|
+
async getCallTraceByForkBundleRaw(requestParameters: GetCallTraceByForkBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>> {
|
|
288
261
|
if (requestParameters['owner'] == null) {
|
|
289
262
|
throw new runtime.RequiredError(
|
|
290
263
|
'owner',
|
|
291
|
-
'Required parameter "owner" was null or undefined when calling
|
|
264
|
+
'Required parameter "owner" was null or undefined when calling getCallTraceByForkBundle().'
|
|
292
265
|
);
|
|
293
266
|
}
|
|
294
267
|
|
|
295
268
|
if (requestParameters['slug'] == null) {
|
|
296
269
|
throw new runtime.RequiredError(
|
|
297
270
|
'slug',
|
|
298
|
-
'Required parameter "slug" was null or undefined when calling
|
|
271
|
+
'Required parameter "slug" was null or undefined when calling getCallTraceByForkBundle().'
|
|
299
272
|
);
|
|
300
273
|
}
|
|
301
274
|
|
|
302
|
-
if (requestParameters['
|
|
275
|
+
if (requestParameters['forkId'] == null) {
|
|
303
276
|
throw new runtime.RequiredError(
|
|
304
|
-
'
|
|
305
|
-
'Required parameter "
|
|
277
|
+
'forkId',
|
|
278
|
+
'Required parameter "forkId" was null or undefined when calling getCallTraceByForkBundle().'
|
|
306
279
|
);
|
|
307
280
|
}
|
|
308
281
|
|
|
309
|
-
if (requestParameters['
|
|
282
|
+
if (requestParameters['bundleId'] == null) {
|
|
310
283
|
throw new runtime.RequiredError(
|
|
311
|
-
'
|
|
312
|
-
'Required parameter "
|
|
284
|
+
'bundleId',
|
|
285
|
+
'Required parameter "bundleId" was null or undefined when calling getCallTraceByForkBundle().'
|
|
313
286
|
);
|
|
314
287
|
}
|
|
315
288
|
|
|
316
289
|
const queryParameters: any = {};
|
|
317
290
|
|
|
318
|
-
if (requestParameters['chainSpecForkId'] != null) {
|
|
319
|
-
queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId'];
|
|
320
|
-
}
|
|
321
|
-
|
|
322
|
-
if (requestParameters['txIdTxHash'] != null) {
|
|
323
|
-
queryParameters['txId.txHash'] = requestParameters['txIdTxHash'];
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
if (requestParameters['txIdBundleId'] != null) {
|
|
327
|
-
queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
|
|
328
|
-
}
|
|
329
|
-
|
|
330
291
|
if (requestParameters['withInternalCalls'] != null) {
|
|
331
292
|
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
332
293
|
}
|
|
@@ -346,7 +307,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
346
307
|
}
|
|
347
308
|
|
|
348
309
|
const response = await this.request({
|
|
349
|
-
path: `/api/v1/solidity/{owner}/{slug}/{
|
|
310
|
+
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']))),
|
|
350
311
|
method: 'GET',
|
|
351
312
|
headers: headerParameters,
|
|
352
313
|
query: queryParameters,
|
|
@@ -356,61 +317,47 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
356
317
|
}
|
|
357
318
|
|
|
358
319
|
/**
|
|
359
|
-
*
|
|
360
|
-
* Get indexed call trace
|
|
320
|
+
* Get Call Trace by Bundle Simulation on Fork
|
|
361
321
|
*/
|
|
362
|
-
async
|
|
363
|
-
const response = await this.
|
|
322
|
+
async getCallTraceByForkBundle(requestParameters: GetCallTraceByForkBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody> {
|
|
323
|
+
const response = await this.getCallTraceByForkBundleRaw(requestParameters, initOverrides);
|
|
364
324
|
return await response.value();
|
|
365
325
|
}
|
|
366
326
|
|
|
367
327
|
/**
|
|
368
|
-
*
|
|
369
|
-
* Get indexed call trace
|
|
328
|
+
* Get Call Trace by Simulation on Fork
|
|
370
329
|
*/
|
|
371
|
-
async
|
|
330
|
+
async getCallTraceByForkSimulationRaw(requestParameters: GetCallTraceByForkSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>> {
|
|
372
331
|
if (requestParameters['owner'] == null) {
|
|
373
332
|
throw new runtime.RequiredError(
|
|
374
333
|
'owner',
|
|
375
|
-
'Required parameter "owner" was null or undefined when calling
|
|
334
|
+
'Required parameter "owner" was null or undefined when calling getCallTraceByForkSimulation().'
|
|
376
335
|
);
|
|
377
336
|
}
|
|
378
337
|
|
|
379
338
|
if (requestParameters['slug'] == null) {
|
|
380
339
|
throw new runtime.RequiredError(
|
|
381
340
|
'slug',
|
|
382
|
-
'Required parameter "slug" was null or undefined when calling
|
|
341
|
+
'Required parameter "slug" was null or undefined when calling getCallTraceByForkSimulation().'
|
|
383
342
|
);
|
|
384
343
|
}
|
|
385
344
|
|
|
386
|
-
if (requestParameters['
|
|
345
|
+
if (requestParameters['forkId'] == null) {
|
|
387
346
|
throw new runtime.RequiredError(
|
|
388
|
-
'
|
|
389
|
-
'Required parameter "
|
|
347
|
+
'forkId',
|
|
348
|
+
'Required parameter "forkId" was null or undefined when calling getCallTraceByForkSimulation().'
|
|
390
349
|
);
|
|
391
350
|
}
|
|
392
351
|
|
|
393
|
-
if (requestParameters['
|
|
352
|
+
if (requestParameters['simulationId'] == null) {
|
|
394
353
|
throw new runtime.RequiredError(
|
|
395
|
-
'
|
|
396
|
-
'Required parameter "
|
|
354
|
+
'simulationId',
|
|
355
|
+
'Required parameter "simulationId" was null or undefined when calling getCallTraceByForkSimulation().'
|
|
397
356
|
);
|
|
398
357
|
}
|
|
399
358
|
|
|
400
359
|
const queryParameters: any = {};
|
|
401
360
|
|
|
402
|
-
if (requestParameters['chainSpecForkId'] != null) {
|
|
403
|
-
queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId'];
|
|
404
|
-
}
|
|
405
|
-
|
|
406
|
-
if (requestParameters['txIdTxHash'] != null) {
|
|
407
|
-
queryParameters['txId.txHash'] = requestParameters['txIdTxHash'];
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
if (requestParameters['txIdSimulationId'] != null) {
|
|
411
|
-
queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
|
|
412
|
-
}
|
|
413
|
-
|
|
414
361
|
if (requestParameters['withInternalCalls'] != null) {
|
|
415
362
|
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
416
363
|
}
|
|
@@ -430,7 +377,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
430
377
|
}
|
|
431
378
|
|
|
432
379
|
const response = await this.request({
|
|
433
|
-
path: `/api/v1/solidity/{owner}/{slug}/{
|
|
380
|
+
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']))),
|
|
434
381
|
method: 'GET',
|
|
435
382
|
headers: headerParameters,
|
|
436
383
|
query: queryParameters,
|
|
@@ -440,61 +387,47 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
440
387
|
}
|
|
441
388
|
|
|
442
389
|
/**
|
|
443
|
-
*
|
|
444
|
-
* Get indexed call trace
|
|
390
|
+
* Get Call Trace by Simulation on Fork
|
|
445
391
|
*/
|
|
446
|
-
async
|
|
447
|
-
const response = await this.
|
|
392
|
+
async getCallTraceByForkSimulation(requestParameters: GetCallTraceByForkSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody> {
|
|
393
|
+
const response = await this.getCallTraceByForkSimulationRaw(requestParameters, initOverrides);
|
|
448
394
|
return await response.value();
|
|
449
395
|
}
|
|
450
396
|
|
|
451
397
|
/**
|
|
452
|
-
*
|
|
453
|
-
* Get indexed call trace
|
|
398
|
+
* Get Call Trace by Transaction on Fork
|
|
454
399
|
*/
|
|
455
|
-
async
|
|
400
|
+
async getCallTraceByForkTransactionRaw(requestParameters: GetCallTraceByForkTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>> {
|
|
456
401
|
if (requestParameters['owner'] == null) {
|
|
457
402
|
throw new runtime.RequiredError(
|
|
458
403
|
'owner',
|
|
459
|
-
'Required parameter "owner" was null or undefined when calling
|
|
404
|
+
'Required parameter "owner" was null or undefined when calling getCallTraceByForkTransaction().'
|
|
460
405
|
);
|
|
461
406
|
}
|
|
462
407
|
|
|
463
408
|
if (requestParameters['slug'] == null) {
|
|
464
409
|
throw new runtime.RequiredError(
|
|
465
410
|
'slug',
|
|
466
|
-
'Required parameter "slug" was null or undefined when calling
|
|
411
|
+
'Required parameter "slug" was null or undefined when calling getCallTraceByForkTransaction().'
|
|
467
412
|
);
|
|
468
413
|
}
|
|
469
414
|
|
|
470
415
|
if (requestParameters['forkId'] == null) {
|
|
471
416
|
throw new runtime.RequiredError(
|
|
472
417
|
'forkId',
|
|
473
|
-
'Required parameter "forkId" was null or undefined when calling
|
|
418
|
+
'Required parameter "forkId" was null or undefined when calling getCallTraceByForkTransaction().'
|
|
474
419
|
);
|
|
475
420
|
}
|
|
476
421
|
|
|
477
422
|
if (requestParameters['txHash'] == null) {
|
|
478
423
|
throw new runtime.RequiredError(
|
|
479
424
|
'txHash',
|
|
480
|
-
'Required parameter "txHash" was null or undefined when calling
|
|
425
|
+
'Required parameter "txHash" was null or undefined when calling getCallTraceByForkTransaction().'
|
|
481
426
|
);
|
|
482
427
|
}
|
|
483
428
|
|
|
484
429
|
const queryParameters: any = {};
|
|
485
430
|
|
|
486
|
-
if (requestParameters['chainSpecChainId'] != null) {
|
|
487
|
-
queryParameters['chainSpec.chainId'] = requestParameters['chainSpecChainId'];
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
if (requestParameters['txIdSimulationId'] != null) {
|
|
491
|
-
queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
if (requestParameters['txIdBundleId'] != null) {
|
|
495
|
-
queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
|
|
496
|
-
}
|
|
497
|
-
|
|
498
431
|
if (requestParameters['withInternalCalls'] != null) {
|
|
499
432
|
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
500
433
|
}
|
|
@@ -514,7 +447,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
514
447
|
}
|
|
515
448
|
|
|
516
449
|
const response = await this.request({
|
|
517
|
-
path: `/api/v1/solidity/{owner}/{slug}/fork/{
|
|
450
|
+
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']))),
|
|
518
451
|
method: 'GET',
|
|
519
452
|
headers: headerParameters,
|
|
520
453
|
query: queryParameters,
|
|
@@ -524,61 +457,47 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
524
457
|
}
|
|
525
458
|
|
|
526
459
|
/**
|
|
527
|
-
*
|
|
528
|
-
* Get indexed call trace
|
|
460
|
+
* Get Call Trace by Transaction on Fork
|
|
529
461
|
*/
|
|
530
|
-
async
|
|
531
|
-
const response = await this.
|
|
462
|
+
async getCallTraceByForkTransaction(requestParameters: GetCallTraceByForkTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody> {
|
|
463
|
+
const response = await this.getCallTraceByForkTransactionRaw(requestParameters, initOverrides);
|
|
532
464
|
return await response.value();
|
|
533
465
|
}
|
|
534
466
|
|
|
535
467
|
/**
|
|
536
|
-
*
|
|
537
|
-
* Get indexed call trace
|
|
468
|
+
* Get Call Trace by Simulation
|
|
538
469
|
*/
|
|
539
|
-
async
|
|
470
|
+
async getCallTraceBySimulationRaw(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>> {
|
|
540
471
|
if (requestParameters['owner'] == null) {
|
|
541
472
|
throw new runtime.RequiredError(
|
|
542
473
|
'owner',
|
|
543
|
-
'Required parameter "owner" was null or undefined when calling
|
|
474
|
+
'Required parameter "owner" was null or undefined when calling getCallTraceBySimulation().'
|
|
544
475
|
);
|
|
545
476
|
}
|
|
546
477
|
|
|
547
478
|
if (requestParameters['slug'] == null) {
|
|
548
479
|
throw new runtime.RequiredError(
|
|
549
480
|
'slug',
|
|
550
|
-
'Required parameter "slug" was null or undefined when calling
|
|
481
|
+
'Required parameter "slug" was null or undefined when calling getCallTraceBySimulation().'
|
|
551
482
|
);
|
|
552
483
|
}
|
|
553
484
|
|
|
554
|
-
if (requestParameters['
|
|
485
|
+
if (requestParameters['chainId'] == null) {
|
|
555
486
|
throw new runtime.RequiredError(
|
|
556
|
-
'
|
|
557
|
-
'Required parameter "
|
|
487
|
+
'chainId',
|
|
488
|
+
'Required parameter "chainId" was null or undefined when calling getCallTraceBySimulation().'
|
|
558
489
|
);
|
|
559
490
|
}
|
|
560
491
|
|
|
561
492
|
if (requestParameters['simulationId'] == null) {
|
|
562
493
|
throw new runtime.RequiredError(
|
|
563
494
|
'simulationId',
|
|
564
|
-
'Required parameter "simulationId" was null or undefined when calling
|
|
495
|
+
'Required parameter "simulationId" was null or undefined when calling getCallTraceBySimulation().'
|
|
565
496
|
);
|
|
566
497
|
}
|
|
567
498
|
|
|
568
499
|
const queryParameters: any = {};
|
|
569
500
|
|
|
570
|
-
if (requestParameters['chainSpecChainId'] != null) {
|
|
571
|
-
queryParameters['chainSpec.chainId'] = requestParameters['chainSpecChainId'];
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
if (requestParameters['txIdTxHash'] != null) {
|
|
575
|
-
queryParameters['txId.txHash'] = requestParameters['txIdTxHash'];
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
if (requestParameters['txIdBundleId'] != null) {
|
|
579
|
-
queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
|
|
580
|
-
}
|
|
581
|
-
|
|
582
501
|
if (requestParameters['withInternalCalls'] != null) {
|
|
583
502
|
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
584
503
|
}
|
|
@@ -598,7 +517,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
598
517
|
}
|
|
599
518
|
|
|
600
519
|
const response = await this.request({
|
|
601
|
-
path: `/api/v1/solidity/{owner}/{slug}/
|
|
520
|
+
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']))),
|
|
602
521
|
method: 'GET',
|
|
603
522
|
headers: headerParameters,
|
|
604
523
|
query: queryParameters,
|
|
@@ -608,61 +527,48 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
608
527
|
}
|
|
609
528
|
|
|
610
529
|
/**
|
|
611
|
-
*
|
|
612
|
-
* Get indexed call trace
|
|
530
|
+
* Get Call Trace by Simulation
|
|
613
531
|
*/
|
|
614
|
-
async
|
|
615
|
-
const response = await this.
|
|
532
|
+
async getCallTraceBySimulation(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody> {
|
|
533
|
+
const response = await this.getCallTraceBySimulationRaw(requestParameters, initOverrides);
|
|
616
534
|
return await response.value();
|
|
617
535
|
}
|
|
618
536
|
|
|
619
537
|
/**
|
|
620
|
-
* API to get Sentio call trace. It takes `txId.txHash` and `
|
|
621
|
-
* Get
|
|
538
|
+
* 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)
|
|
539
|
+
* Get Call Trace by Transaction
|
|
622
540
|
*/
|
|
623
|
-
async
|
|
541
|
+
async getCallTraceByTransactionRaw(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>> {
|
|
624
542
|
if (requestParameters['owner'] == null) {
|
|
625
543
|
throw new runtime.RequiredError(
|
|
626
544
|
'owner',
|
|
627
|
-
'Required parameter "owner" was null or undefined when calling
|
|
545
|
+
'Required parameter "owner" was null or undefined when calling getCallTraceByTransaction().'
|
|
628
546
|
);
|
|
629
547
|
}
|
|
630
548
|
|
|
631
549
|
if (requestParameters['slug'] == null) {
|
|
632
550
|
throw new runtime.RequiredError(
|
|
633
551
|
'slug',
|
|
634
|
-
'Required parameter "slug" was null or undefined when calling
|
|
552
|
+
'Required parameter "slug" was null or undefined when calling getCallTraceByTransaction().'
|
|
635
553
|
);
|
|
636
554
|
}
|
|
637
555
|
|
|
638
|
-
if (requestParameters['
|
|
556
|
+
if (requestParameters['chainId'] == null) {
|
|
639
557
|
throw new runtime.RequiredError(
|
|
640
|
-
'
|
|
641
|
-
'Required parameter "
|
|
558
|
+
'chainId',
|
|
559
|
+
'Required parameter "chainId" was null or undefined when calling getCallTraceByTransaction().'
|
|
642
560
|
);
|
|
643
561
|
}
|
|
644
562
|
|
|
645
|
-
if (requestParameters['
|
|
563
|
+
if (requestParameters['txHash'] == null) {
|
|
646
564
|
throw new runtime.RequiredError(
|
|
647
|
-
'
|
|
648
|
-
'Required parameter "
|
|
565
|
+
'txHash',
|
|
566
|
+
'Required parameter "txHash" was null or undefined when calling getCallTraceByTransaction().'
|
|
649
567
|
);
|
|
650
568
|
}
|
|
651
569
|
|
|
652
570
|
const queryParameters: any = {};
|
|
653
571
|
|
|
654
|
-
if (requestParameters['chainSpecChainId'] != null) {
|
|
655
|
-
queryParameters['chainSpec.chainId'] = requestParameters['chainSpecChainId'];
|
|
656
|
-
}
|
|
657
|
-
|
|
658
|
-
if (requestParameters['txIdTxHash'] != null) {
|
|
659
|
-
queryParameters['txId.txHash'] = requestParameters['txIdTxHash'];
|
|
660
|
-
}
|
|
661
|
-
|
|
662
|
-
if (requestParameters['txIdSimulationId'] != null) {
|
|
663
|
-
queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
|
|
664
|
-
}
|
|
665
|
-
|
|
666
572
|
if (requestParameters['withInternalCalls'] != null) {
|
|
667
573
|
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
668
574
|
}
|
|
@@ -682,7 +588,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
682
588
|
}
|
|
683
589
|
|
|
684
590
|
const response = await this.request({
|
|
685
|
-
path: `/api/v1/solidity/{owner}/{slug}/
|
|
591
|
+
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']))),
|
|
686
592
|
method: 'GET',
|
|
687
593
|
headers: headerParameters,
|
|
688
594
|
query: queryParameters,
|
|
@@ -692,16 +598,16 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
692
598
|
}
|
|
693
599
|
|
|
694
600
|
/**
|
|
695
|
-
* API to get Sentio call trace. It takes `txId.txHash` and `
|
|
696
|
-
* Get
|
|
601
|
+
* 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)
|
|
602
|
+
* Get Call Trace by Transaction
|
|
697
603
|
*/
|
|
698
|
-
async
|
|
699
|
-
const response = await this.
|
|
604
|
+
async getCallTraceByTransaction(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody> {
|
|
605
|
+
const response = await this.getCallTraceByTransactionRaw(requestParameters, initOverrides);
|
|
700
606
|
return await response.value();
|
|
701
607
|
}
|
|
702
608
|
|
|
703
609
|
/**
|
|
704
|
-
* Get
|
|
610
|
+
* Get Simulation by ID
|
|
705
611
|
*/
|
|
706
612
|
async getSimulationRaw(requestParameters: GetSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceGetSimulationResponse>> {
|
|
707
613
|
if (requestParameters['owner'] == null) {
|
|
@@ -744,7 +650,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
744
650
|
}
|
|
745
651
|
|
|
746
652
|
/**
|
|
747
|
-
* Get
|
|
653
|
+
* Get Simulation by ID
|
|
748
654
|
*/
|
|
749
655
|
async getSimulation(requestParameters: GetSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceGetSimulationResponse> {
|
|
750
656
|
const response = await this.getSimulationRaw(requestParameters, initOverrides);
|
|
@@ -752,7 +658,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
752
658
|
}
|
|
753
659
|
|
|
754
660
|
/**
|
|
755
|
-
* Get
|
|
661
|
+
* Get Bundle Simulation by ID
|
|
756
662
|
*/
|
|
757
663
|
async getSimulationBundleInProjectRaw(requestParameters: GetSimulationBundleInProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceGetSimulationBundleResponse>> {
|
|
758
664
|
if (requestParameters['owner'] == null) {
|
|
@@ -795,7 +701,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
795
701
|
}
|
|
796
702
|
|
|
797
703
|
/**
|
|
798
|
-
* Get
|
|
704
|
+
* Get Bundle Simulation by ID
|
|
799
705
|
*/
|
|
800
706
|
async getSimulationBundleInProject(requestParameters: GetSimulationBundleInProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceGetSimulationBundleResponse> {
|
|
801
707
|
const response = await this.getSimulationBundleInProjectRaw(requestParameters, initOverrides);
|
|
@@ -803,7 +709,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
803
709
|
}
|
|
804
710
|
|
|
805
711
|
/**
|
|
806
|
-
* Get
|
|
712
|
+
* Get Existied Simulations
|
|
807
713
|
*/
|
|
808
714
|
async getSimulationsRaw(requestParameters: GetSimulationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceGetSimulationsResponse>> {
|
|
809
715
|
if (requestParameters['owner'] == null) {
|
|
@@ -851,7 +757,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
851
757
|
}
|
|
852
758
|
|
|
853
759
|
/**
|
|
854
|
-
* Get
|
|
760
|
+
* Get Existied Simulations
|
|
855
761
|
*/
|
|
856
762
|
async getSimulations(requestParameters: GetSimulationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceGetSimulationsResponse> {
|
|
857
763
|
const response = await this.getSimulationsRaw(requestParameters, initOverrides);
|
|
@@ -859,7 +765,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
859
765
|
}
|
|
860
766
|
|
|
861
767
|
/**
|
|
862
|
-
* Search
|
|
768
|
+
* Search transactions
|
|
863
769
|
*/
|
|
864
770
|
async searchTransactionsRaw(requestParameters: SearchTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TxindexEvmSearchTransactionsResponse>> {
|
|
865
771
|
if (requestParameters['owner'] == null) {
|
|
@@ -951,7 +857,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
951
857
|
}
|
|
952
858
|
|
|
953
859
|
/**
|
|
954
|
-
* Search
|
|
860
|
+
* Search transactions
|
|
955
861
|
*/
|
|
956
862
|
async searchTransactions(requestParameters: SearchTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TxindexEvmSearchTransactionsResponse> {
|
|
957
863
|
const response = await this.searchTransactionsRaw(requestParameters, initOverrides);
|
|
@@ -960,7 +866,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
960
866
|
|
|
961
867
|
/**
|
|
962
868
|
* Create a new transaction simulation. The simulation body should be included in the request body. Your simulations will be saved, and a unique ID for each simulation is included in the response. It will be useful for fetching simulation details.
|
|
963
|
-
*
|
|
869
|
+
* Run Simulation
|
|
964
870
|
*/
|
|
965
871
|
async simulateTransactionRaw(requestParameters: SimulateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionResponse>> {
|
|
966
872
|
if (requestParameters['owner'] == null) {
|
|
@@ -1002,7 +908,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
1002
908
|
}
|
|
1003
909
|
|
|
1004
910
|
const response = await this.request({
|
|
1005
|
-
path: `/api/v1/solidity/{owner}/{slug}/{
|
|
911
|
+
path: `/api/v1/solidity/{owner}/{slug}/{chainId}/simulation`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))),
|
|
1006
912
|
method: 'POST',
|
|
1007
913
|
headers: headerParameters,
|
|
1008
914
|
query: queryParameters,
|
|
@@ -1014,7 +920,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
1014
920
|
|
|
1015
921
|
/**
|
|
1016
922
|
* Create a new transaction simulation. The simulation body should be included in the request body. Your simulations will be saved, and a unique ID for each simulation is included in the response. It will be useful for fetching simulation details.
|
|
1017
|
-
*
|
|
923
|
+
* Run Simulation
|
|
1018
924
|
*/
|
|
1019
925
|
async simulateTransaction(requestParameters: SimulateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionResponse> {
|
|
1020
926
|
const response = await this.simulateTransactionRaw(requestParameters, initOverrides);
|
|
@@ -1022,35 +928,35 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
1022
928
|
}
|
|
1023
929
|
|
|
1024
930
|
/**
|
|
1025
|
-
*
|
|
1026
|
-
*
|
|
931
|
+
* You could also create bundle simulations so that one transaction could be executed one after another. For `blockNumber` `transactionIndex` `networkId` `stateOverrides` and `blockOverrides` fields, only the first simulation takes effect.
|
|
932
|
+
* Run Bundle simulation
|
|
1027
933
|
*/
|
|
1028
|
-
async
|
|
934
|
+
async simulateTransactionBundleRaw(requestParameters: SimulateTransactionBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionBundleResponse>> {
|
|
1029
935
|
if (requestParameters['owner'] == null) {
|
|
1030
936
|
throw new runtime.RequiredError(
|
|
1031
937
|
'owner',
|
|
1032
|
-
'Required parameter "owner" was null or undefined when calling
|
|
938
|
+
'Required parameter "owner" was null or undefined when calling simulateTransactionBundle().'
|
|
1033
939
|
);
|
|
1034
940
|
}
|
|
1035
941
|
|
|
1036
942
|
if (requestParameters['slug'] == null) {
|
|
1037
943
|
throw new runtime.RequiredError(
|
|
1038
944
|
'slug',
|
|
1039
|
-
'Required parameter "slug" was null or undefined when calling
|
|
945
|
+
'Required parameter "slug" was null or undefined when calling simulateTransactionBundle().'
|
|
1040
946
|
);
|
|
1041
947
|
}
|
|
1042
948
|
|
|
1043
|
-
if (requestParameters['
|
|
949
|
+
if (requestParameters['chainId'] == null) {
|
|
1044
950
|
throw new runtime.RequiredError(
|
|
1045
|
-
'
|
|
1046
|
-
'Required parameter "
|
|
951
|
+
'chainId',
|
|
952
|
+
'Required parameter "chainId" was null or undefined when calling simulateTransactionBundle().'
|
|
1047
953
|
);
|
|
1048
954
|
}
|
|
1049
955
|
|
|
1050
956
|
if (requestParameters['body'] == null) {
|
|
1051
957
|
throw new runtime.RequiredError(
|
|
1052
958
|
'body',
|
|
1053
|
-
'Required parameter "body" was null or undefined when calling
|
|
959
|
+
'Required parameter "body" was null or undefined when calling simulateTransactionBundle().'
|
|
1054
960
|
);
|
|
1055
961
|
}
|
|
1056
962
|
|
|
@@ -1065,55 +971,54 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
1065
971
|
}
|
|
1066
972
|
|
|
1067
973
|
const response = await this.request({
|
|
1068
|
-
path: `/api/v1/solidity/{owner}/{slug}/
|
|
974
|
+
path: `/api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))),
|
|
1069
975
|
method: 'POST',
|
|
1070
976
|
headers: headerParameters,
|
|
1071
977
|
query: queryParameters,
|
|
1072
|
-
body:
|
|
978
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON(requestParameters['body']),
|
|
1073
979
|
}, initOverrides);
|
|
1074
980
|
|
|
1075
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
981
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
|
|
1076
982
|
}
|
|
1077
983
|
|
|
1078
984
|
/**
|
|
1079
|
-
*
|
|
1080
|
-
*
|
|
985
|
+
* You could also create bundle simulations so that one transaction could be executed one after another. For `blockNumber` `transactionIndex` `networkId` `stateOverrides` and `blockOverrides` fields, only the first simulation takes effect.
|
|
986
|
+
* Run Bundle simulation
|
|
1081
987
|
*/
|
|
1082
|
-
async
|
|
1083
|
-
const response = await this.
|
|
988
|
+
async simulateTransactionBundle(requestParameters: SimulateTransactionBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionBundleResponse> {
|
|
989
|
+
const response = await this.simulateTransactionBundleRaw(requestParameters, initOverrides);
|
|
1084
990
|
return await response.value();
|
|
1085
991
|
}
|
|
1086
992
|
|
|
1087
993
|
/**
|
|
1088
|
-
*
|
|
1089
|
-
* Bundle simulation
|
|
994
|
+
* Run Bundle simulation on Fork
|
|
1090
995
|
*/
|
|
1091
|
-
async
|
|
996
|
+
async simulateTransactionBundleByForkRaw(requestParameters: SimulateTransactionBundleByForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionBundleResponse>> {
|
|
1092
997
|
if (requestParameters['owner'] == null) {
|
|
1093
998
|
throw new runtime.RequiredError(
|
|
1094
999
|
'owner',
|
|
1095
|
-
'Required parameter "owner" was null or undefined when calling
|
|
1000
|
+
'Required parameter "owner" was null or undefined when calling simulateTransactionBundleByFork().'
|
|
1096
1001
|
);
|
|
1097
1002
|
}
|
|
1098
1003
|
|
|
1099
1004
|
if (requestParameters['slug'] == null) {
|
|
1100
1005
|
throw new runtime.RequiredError(
|
|
1101
1006
|
'slug',
|
|
1102
|
-
'Required parameter "slug" was null or undefined when calling
|
|
1007
|
+
'Required parameter "slug" was null or undefined when calling simulateTransactionBundleByFork().'
|
|
1103
1008
|
);
|
|
1104
1009
|
}
|
|
1105
1010
|
|
|
1106
|
-
if (requestParameters['
|
|
1011
|
+
if (requestParameters['forkId'] == null) {
|
|
1107
1012
|
throw new runtime.RequiredError(
|
|
1108
|
-
'
|
|
1109
|
-
'Required parameter "
|
|
1013
|
+
'forkId',
|
|
1014
|
+
'Required parameter "forkId" was null or undefined when calling simulateTransactionBundleByFork().'
|
|
1110
1015
|
);
|
|
1111
1016
|
}
|
|
1112
1017
|
|
|
1113
1018
|
if (requestParameters['body'] == null) {
|
|
1114
1019
|
throw new runtime.RequiredError(
|
|
1115
1020
|
'body',
|
|
1116
|
-
'Required parameter "body" was null or undefined when calling
|
|
1021
|
+
'Required parameter "body" was null or undefined when calling simulateTransactionBundleByFork().'
|
|
1117
1022
|
);
|
|
1118
1023
|
}
|
|
1119
1024
|
|
|
@@ -1128,55 +1033,53 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
1128
1033
|
}
|
|
1129
1034
|
|
|
1130
1035
|
const response = await this.request({
|
|
1131
|
-
path: `/api/v1/solidity/{owner}/{slug}/{
|
|
1036
|
+
path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation_bundle`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"forkId"}}`, encodeURIComponent(String(requestParameters['forkId']))),
|
|
1132
1037
|
method: 'POST',
|
|
1133
1038
|
headers: headerParameters,
|
|
1134
1039
|
query: queryParameters,
|
|
1135
|
-
body:
|
|
1040
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyToJSON(requestParameters['body']),
|
|
1136
1041
|
}, initOverrides);
|
|
1137
1042
|
|
|
1138
1043
|
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
|
|
1139
1044
|
}
|
|
1140
1045
|
|
|
1141
1046
|
/**
|
|
1142
|
-
*
|
|
1143
|
-
* Bundle simulation
|
|
1047
|
+
* Run Bundle simulation on Fork
|
|
1144
1048
|
*/
|
|
1145
|
-
async
|
|
1146
|
-
const response = await this.
|
|
1049
|
+
async simulateTransactionBundleByFork(requestParameters: SimulateTransactionBundleByForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionBundleResponse> {
|
|
1050
|
+
const response = await this.simulateTransactionBundleByForkRaw(requestParameters, initOverrides);
|
|
1147
1051
|
return await response.value();
|
|
1148
1052
|
}
|
|
1149
1053
|
|
|
1150
1054
|
/**
|
|
1151
|
-
*
|
|
1152
|
-
* Bundle simulation
|
|
1055
|
+
* Run Simulation on Fork
|
|
1153
1056
|
*/
|
|
1154
|
-
async
|
|
1057
|
+
async simulateTransactionByForkRaw(requestParameters: SimulateTransactionByForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionResponse>> {
|
|
1155
1058
|
if (requestParameters['owner'] == null) {
|
|
1156
1059
|
throw new runtime.RequiredError(
|
|
1157
1060
|
'owner',
|
|
1158
|
-
'Required parameter "owner" was null or undefined when calling
|
|
1061
|
+
'Required parameter "owner" was null or undefined when calling simulateTransactionByFork().'
|
|
1159
1062
|
);
|
|
1160
1063
|
}
|
|
1161
1064
|
|
|
1162
1065
|
if (requestParameters['slug'] == null) {
|
|
1163
1066
|
throw new runtime.RequiredError(
|
|
1164
1067
|
'slug',
|
|
1165
|
-
'Required parameter "slug" was null or undefined when calling
|
|
1068
|
+
'Required parameter "slug" was null or undefined when calling simulateTransactionByFork().'
|
|
1166
1069
|
);
|
|
1167
1070
|
}
|
|
1168
1071
|
|
|
1169
1072
|
if (requestParameters['forkId'] == null) {
|
|
1170
1073
|
throw new runtime.RequiredError(
|
|
1171
1074
|
'forkId',
|
|
1172
|
-
'Required parameter "forkId" was null or undefined when calling
|
|
1075
|
+
'Required parameter "forkId" was null or undefined when calling simulateTransactionByFork().'
|
|
1173
1076
|
);
|
|
1174
1077
|
}
|
|
1175
1078
|
|
|
1176
1079
|
if (requestParameters['body'] == null) {
|
|
1177
1080
|
throw new runtime.RequiredError(
|
|
1178
1081
|
'body',
|
|
1179
|
-
'Required parameter "body" was null or undefined when calling
|
|
1082
|
+
'Required parameter "body" was null or undefined when calling simulateTransactionByFork().'
|
|
1180
1083
|
);
|
|
1181
1084
|
}
|
|
1182
1085
|
|
|
@@ -1191,22 +1094,21 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
1191
1094
|
}
|
|
1192
1095
|
|
|
1193
1096
|
const response = await this.request({
|
|
1194
|
-
path: `/api/v1/solidity/{owner}/{slug}/fork/{
|
|
1097
|
+
path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"forkId"}}`, encodeURIComponent(String(requestParameters['forkId']))),
|
|
1195
1098
|
method: 'POST',
|
|
1196
1099
|
headers: headerParameters,
|
|
1197
1100
|
query: queryParameters,
|
|
1198
|
-
body:
|
|
1101
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyToJSON(requestParameters['body']),
|
|
1199
1102
|
}, initOverrides);
|
|
1200
1103
|
|
|
1201
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
1104
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue));
|
|
1202
1105
|
}
|
|
1203
1106
|
|
|
1204
1107
|
/**
|
|
1205
|
-
*
|
|
1206
|
-
* Bundle simulation
|
|
1108
|
+
* Run Simulation on Fork
|
|
1207
1109
|
*/
|
|
1208
|
-
async
|
|
1209
|
-
const response = await this.
|
|
1110
|
+
async simulateTransactionByFork(requestParameters: SimulateTransactionByForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionResponse> {
|
|
1111
|
+
const response = await this.simulateTransactionByForkRaw(requestParameters, initOverrides);
|
|
1210
1112
|
return await response.value();
|
|
1211
1113
|
}
|
|
1212
1114
|
|