@sentio/api 1.0.5-rc.7 → 1.0.5-rc.8
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/sdk.gen.d.ts +47 -51
- package/dist/src/sdk.gen.js +109 -129
- package/dist/src/sdk.gen.js.map +1 -1
- package/dist/src/types.gen.d.ts +0 -40
- package/package.json +1 -1
- package/src/sdk.gen.ts +118 -139
- package/src/types.gen.ts +0 -40
package/dist/src/sdk.gen.d.ts
CHANGED
|
@@ -301,11 +301,55 @@ export declare class ProcessorExtService {
|
|
|
301
301
|
*/
|
|
302
302
|
static getProcessorSourceFiles<ThrowOnError extends boolean = false>(options: Options<processor_service.GetProcessorSourceFilesData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<processor_service.GetProcessorSourceFilesResponse, unknown, ThrowOnError>;
|
|
303
303
|
}
|
|
304
|
-
export declare class
|
|
304
|
+
export declare class ForksService {
|
|
305
|
+
/**
|
|
306
|
+
* List all forks
|
|
307
|
+
*/
|
|
308
|
+
static listForks<ThrowOnError extends boolean = false>(options: Options<solidity_service.ListForksData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.ListForksResponse, unknown, ThrowOnError>;
|
|
309
|
+
/**
|
|
310
|
+
* Create a fork
|
|
311
|
+
*/
|
|
312
|
+
static createFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.CreateForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.CreateForkResponse, unknown, ThrowOnError>;
|
|
313
|
+
/**
|
|
314
|
+
* Get trace by bundle simulation
|
|
315
|
+
*/
|
|
316
|
+
static getCallTraceOnForkBundle<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkBundleData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<google.ApiHttpBody, unknown, ThrowOnError>;
|
|
317
|
+
/**
|
|
318
|
+
* Run Simulation
|
|
319
|
+
*/
|
|
320
|
+
static simulateTransactionOnFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionOnForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.SimulateTransactionResponse, unknown, ThrowOnError>;
|
|
321
|
+
/**
|
|
322
|
+
* Get trace by simulation
|
|
323
|
+
*/
|
|
324
|
+
static getCallTraceOnForkSimulation<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkSimulationData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<google.ApiHttpBody, unknown, ThrowOnError>;
|
|
325
|
+
/**
|
|
326
|
+
* Run bundle simulation
|
|
327
|
+
*/
|
|
328
|
+
static simulateTransactionBundleOnFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionBundleOnForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.SimulateTransactionBundleResponse, unknown, ThrowOnError>;
|
|
329
|
+
/**
|
|
330
|
+
* Get trace by transaction
|
|
331
|
+
*/
|
|
332
|
+
static getCallTraceOnForkTransaction<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkTransactionData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<google.ApiHttpBody, unknown, ThrowOnError>;
|
|
333
|
+
/**
|
|
334
|
+
* Delete fork by id
|
|
335
|
+
*/
|
|
336
|
+
static deleteFork<ThrowOnError extends boolean = false>(options: Options<solidit_service.DeleteForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<{
|
|
337
|
+
[key: string]: unknown;
|
|
338
|
+
}, unknown, ThrowOnError>;
|
|
305
339
|
/**
|
|
306
|
-
*
|
|
340
|
+
* Get fork by id
|
|
341
|
+
*/
|
|
342
|
+
static getFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.GetForkResponse, unknown, ThrowOnError>;
|
|
343
|
+
/**
|
|
344
|
+
* Update fork by id
|
|
345
|
+
*/
|
|
346
|
+
static updateFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.UpdateForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.UpdateForkResponse, unknown, ThrowOnError>;
|
|
347
|
+
/**
|
|
348
|
+
* Get fork info by id
|
|
307
349
|
*/
|
|
308
|
-
static
|
|
350
|
+
static getForkInfo<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetForkInfoData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.GetForkInfoResponse, unknown, ThrowOnError>;
|
|
351
|
+
}
|
|
352
|
+
export declare class DebugAndSimulationService {
|
|
309
353
|
/**
|
|
310
354
|
* Search transactions
|
|
311
355
|
*/
|
|
@@ -353,51 +397,3 @@ export declare class DebugAndSimulationService {
|
|
|
353
397
|
*/
|
|
354
398
|
static getCallTraceByTransaction<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceByTransactionData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<google.ApiHttpBody, unknown, ThrowOnError>;
|
|
355
399
|
}
|
|
356
|
-
export declare class ForksService {
|
|
357
|
-
/**
|
|
358
|
-
* List all forks
|
|
359
|
-
*/
|
|
360
|
-
static listForks<ThrowOnError extends boolean = false>(options: Options<solidity_service.ListForksData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.ListForksResponse, unknown, ThrowOnError>;
|
|
361
|
-
/**
|
|
362
|
-
* Create a fork
|
|
363
|
-
*/
|
|
364
|
-
static createFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.CreateForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.CreateForkResponse, unknown, ThrowOnError>;
|
|
365
|
-
/**
|
|
366
|
-
* Get trace by bundle simulation
|
|
367
|
-
*/
|
|
368
|
-
static getCallTraceOnForkBundle<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkBundleData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<google.ApiHttpBody, unknown, ThrowOnError>;
|
|
369
|
-
/**
|
|
370
|
-
* Run Simulation
|
|
371
|
-
*/
|
|
372
|
-
static simulateTransactionOnFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionOnForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.SimulateTransactionResponse, unknown, ThrowOnError>;
|
|
373
|
-
/**
|
|
374
|
-
* Get trace by simulation
|
|
375
|
-
*/
|
|
376
|
-
static getCallTraceOnForkSimulation<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkSimulationData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<google.ApiHttpBody, unknown, ThrowOnError>;
|
|
377
|
-
/**
|
|
378
|
-
* Run bundle simulation
|
|
379
|
-
*/
|
|
380
|
-
static simulateTransactionBundleOnFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionBundleOnForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.SimulateTransactionBundleResponse, unknown, ThrowOnError>;
|
|
381
|
-
/**
|
|
382
|
-
* Get trace by transaction
|
|
383
|
-
*/
|
|
384
|
-
static getCallTraceOnForkTransaction<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkTransactionData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<google.ApiHttpBody, unknown, ThrowOnError>;
|
|
385
|
-
/**
|
|
386
|
-
* Delete fork by id
|
|
387
|
-
*/
|
|
388
|
-
static deleteFork<ThrowOnError extends boolean = false>(options: Options<solidit_service.DeleteForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<{
|
|
389
|
-
[key: string]: unknown;
|
|
390
|
-
}, unknown, ThrowOnError>;
|
|
391
|
-
/**
|
|
392
|
-
* Get fork by id
|
|
393
|
-
*/
|
|
394
|
-
static getFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.GetForkResponse, unknown, ThrowOnError>;
|
|
395
|
-
/**
|
|
396
|
-
* Update fork by id
|
|
397
|
-
*/
|
|
398
|
-
static updateFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.UpdateForkData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.UpdateForkResponse, unknown, ThrowOnError>;
|
|
399
|
-
/**
|
|
400
|
-
* Get fork info by id
|
|
401
|
-
*/
|
|
402
|
-
static getForkInfo<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetForkInfoData, ThrowOnError>): import("@hey-api/client-fetch").RequestResult<solidity_service.GetForkInfoResponse, unknown, ThrowOnError>;
|
|
403
|
-
}
|
package/dist/src/sdk.gen.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
4
|
+
exports.DebugAndSimulationService = exports.ForksService = exports.ProcessorExtService = exports.ProcessorService = exports.PriceService = exports.MoveService = exports.WebService = exports.DataService = exports.AlertsService = exports.AiService = void 0;
|
|
5
5
|
const client_gen_1 = require("./client.gen");
|
|
6
6
|
class AiService {
|
|
7
7
|
/**
|
|
@@ -1235,31 +1235,11 @@ class ProcessorExtService {
|
|
|
1235
1235
|
}
|
|
1236
1236
|
}
|
|
1237
1237
|
exports.ProcessorExtService = ProcessorExtService;
|
|
1238
|
-
class
|
|
1239
|
-
/**
|
|
1240
|
-
* Estimate gas price
|
|
1241
|
-
*/
|
|
1242
|
-
static getEstimatedGasPrice(options) {
|
|
1243
|
-
return (options?.client ?? client_gen_1.client).get({
|
|
1244
|
-
security: [
|
|
1245
|
-
{
|
|
1246
|
-
name: 'api-key',
|
|
1247
|
-
type: 'apiKey'
|
|
1248
|
-
},
|
|
1249
|
-
{
|
|
1250
|
-
in: 'query',
|
|
1251
|
-
name: 'api-key',
|
|
1252
|
-
type: 'apiKey'
|
|
1253
|
-
}
|
|
1254
|
-
],
|
|
1255
|
-
url: '/v1/solidity/estimated_gas_price',
|
|
1256
|
-
...options
|
|
1257
|
-
});
|
|
1258
|
-
}
|
|
1238
|
+
class ForksService {
|
|
1259
1239
|
/**
|
|
1260
|
-
*
|
|
1240
|
+
* List all forks
|
|
1261
1241
|
*/
|
|
1262
|
-
static
|
|
1242
|
+
static listForks(options) {
|
|
1263
1243
|
return (options.client ?? client_gen_1.client).get({
|
|
1264
1244
|
security: [
|
|
1265
1245
|
{
|
|
@@ -1272,15 +1252,15 @@ class DebugAndSimulationService {
|
|
|
1272
1252
|
type: 'apiKey'
|
|
1273
1253
|
}
|
|
1274
1254
|
],
|
|
1275
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1255
|
+
url: '/v1/solidity/{owner}/{slug}/fork',
|
|
1276
1256
|
...options
|
|
1277
1257
|
});
|
|
1278
1258
|
}
|
|
1279
1259
|
/**
|
|
1280
|
-
*
|
|
1260
|
+
* Create a fork
|
|
1281
1261
|
*/
|
|
1282
|
-
static
|
|
1283
|
-
return (options.client ?? client_gen_1.client).
|
|
1262
|
+
static createFork(options) {
|
|
1263
|
+
return (options.client ?? client_gen_1.client).post({
|
|
1284
1264
|
security: [
|
|
1285
1265
|
{
|
|
1286
1266
|
name: 'api-key',
|
|
@@ -1292,14 +1272,18 @@ class DebugAndSimulationService {
|
|
|
1292
1272
|
type: 'apiKey'
|
|
1293
1273
|
}
|
|
1294
1274
|
],
|
|
1295
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1296
|
-
...options
|
|
1275
|
+
url: '/v1/solidity/{owner}/{slug}/fork',
|
|
1276
|
+
...options,
|
|
1277
|
+
headers: {
|
|
1278
|
+
'Content-Type': 'application/json',
|
|
1279
|
+
...options?.headers
|
|
1280
|
+
}
|
|
1297
1281
|
});
|
|
1298
1282
|
}
|
|
1299
1283
|
/**
|
|
1300
|
-
* Get
|
|
1284
|
+
* Get trace by bundle simulation
|
|
1301
1285
|
*/
|
|
1302
|
-
static
|
|
1286
|
+
static getCallTraceOnForkBundle(options) {
|
|
1303
1287
|
return (options.client ?? client_gen_1.client).get({
|
|
1304
1288
|
security: [
|
|
1305
1289
|
{
|
|
@@ -1312,15 +1296,15 @@ class DebugAndSimulationService {
|
|
|
1312
1296
|
type: 'apiKey'
|
|
1313
1297
|
}
|
|
1314
1298
|
],
|
|
1315
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1299
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/bundle/{bundleId}/call_trace',
|
|
1316
1300
|
...options
|
|
1317
1301
|
});
|
|
1318
1302
|
}
|
|
1319
1303
|
/**
|
|
1320
|
-
*
|
|
1304
|
+
* Run Simulation
|
|
1321
1305
|
*/
|
|
1322
|
-
static
|
|
1323
|
-
return (options.client ?? client_gen_1.client).
|
|
1306
|
+
static simulateTransactionOnFork(options) {
|
|
1307
|
+
return (options.client ?? client_gen_1.client).post({
|
|
1324
1308
|
security: [
|
|
1325
1309
|
{
|
|
1326
1310
|
name: 'api-key',
|
|
@@ -1332,14 +1316,18 @@ class DebugAndSimulationService {
|
|
|
1332
1316
|
type: 'apiKey'
|
|
1333
1317
|
}
|
|
1334
1318
|
],
|
|
1335
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1336
|
-
...options
|
|
1319
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation',
|
|
1320
|
+
...options,
|
|
1321
|
+
headers: {
|
|
1322
|
+
'Content-Type': 'application/json',
|
|
1323
|
+
...options?.headers
|
|
1324
|
+
}
|
|
1337
1325
|
});
|
|
1338
1326
|
}
|
|
1339
1327
|
/**
|
|
1340
|
-
* Get trace by
|
|
1328
|
+
* Get trace by simulation
|
|
1341
1329
|
*/
|
|
1342
|
-
static
|
|
1330
|
+
static getCallTraceOnForkSimulation(options) {
|
|
1343
1331
|
return (options.client ?? client_gen_1.client).get({
|
|
1344
1332
|
security: [
|
|
1345
1333
|
{
|
|
@@ -1352,16 +1340,14 @@ class DebugAndSimulationService {
|
|
|
1352
1340
|
type: 'apiKey'
|
|
1353
1341
|
}
|
|
1354
1342
|
],
|
|
1355
|
-
url: '/v1/solidity/{owner}/{slug}/{
|
|
1343
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation/{simulationId}/call_trace',
|
|
1356
1344
|
...options
|
|
1357
1345
|
});
|
|
1358
1346
|
}
|
|
1359
1347
|
/**
|
|
1360
|
-
* Run simulation
|
|
1361
|
-
* Create a new transaction simulation. The simulation body should be included in the request body.
|
|
1362
|
-
* 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.
|
|
1348
|
+
* Run bundle simulation
|
|
1363
1349
|
*/
|
|
1364
|
-
static
|
|
1350
|
+
static simulateTransactionBundleOnFork(options) {
|
|
1365
1351
|
return (options.client ?? client_gen_1.client).post({
|
|
1366
1352
|
security: [
|
|
1367
1353
|
{
|
|
@@ -1374,7 +1360,7 @@ class DebugAndSimulationService {
|
|
|
1374
1360
|
type: 'apiKey'
|
|
1375
1361
|
}
|
|
1376
1362
|
],
|
|
1377
|
-
url: '/v1/solidity/{owner}/{slug}/{
|
|
1363
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation_bundle',
|
|
1378
1364
|
...options,
|
|
1379
1365
|
headers: {
|
|
1380
1366
|
'Content-Type': 'application/json',
|
|
@@ -1383,9 +1369,9 @@ class DebugAndSimulationService {
|
|
|
1383
1369
|
});
|
|
1384
1370
|
}
|
|
1385
1371
|
/**
|
|
1386
|
-
* Get trace by
|
|
1372
|
+
* Get trace by transaction
|
|
1387
1373
|
*/
|
|
1388
|
-
static
|
|
1374
|
+
static getCallTraceOnForkTransaction(options) {
|
|
1389
1375
|
return (options.client ?? client_gen_1.client).get({
|
|
1390
1376
|
security: [
|
|
1391
1377
|
{
|
|
@@ -1398,16 +1384,15 @@ class DebugAndSimulationService {
|
|
|
1398
1384
|
type: 'apiKey'
|
|
1399
1385
|
}
|
|
1400
1386
|
],
|
|
1401
|
-
url: '/v1/solidity/{owner}/{slug}/{
|
|
1387
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/transaction/{txHash}/call_trace',
|
|
1402
1388
|
...options
|
|
1403
1389
|
});
|
|
1404
1390
|
}
|
|
1405
1391
|
/**
|
|
1406
|
-
*
|
|
1407
|
-
* 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.
|
|
1392
|
+
* Delete fork by id
|
|
1408
1393
|
*/
|
|
1409
|
-
static
|
|
1410
|
-
return (options.client ?? client_gen_1.client).
|
|
1394
|
+
static deleteFork(options) {
|
|
1395
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
1411
1396
|
security: [
|
|
1412
1397
|
{
|
|
1413
1398
|
name: 'api-key',
|
|
@@ -1419,25 +1404,14 @@ class DebugAndSimulationService {
|
|
|
1419
1404
|
type: 'apiKey'
|
|
1420
1405
|
}
|
|
1421
1406
|
],
|
|
1422
|
-
url: '/v1/solidity/{owner}/{slug}/{
|
|
1423
|
-
...options
|
|
1424
|
-
headers: {
|
|
1425
|
-
'Content-Type': 'application/json',
|
|
1426
|
-
...options?.headers
|
|
1427
|
-
}
|
|
1407
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{id}',
|
|
1408
|
+
...options
|
|
1428
1409
|
});
|
|
1429
1410
|
}
|
|
1430
1411
|
/**
|
|
1431
|
-
* Get
|
|
1432
|
-
* 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.
|
|
1433
|
-
*
|
|
1434
|
-
* The results looks very similar to the normal [Ethereum call trace](https://media.githubusercontent.com/media/sentioxyz/docs/HEAD/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.
|
|
1435
|
-
*
|
|
1436
|
-
* This allows you to build chart that marks the order of fund flow.
|
|
1437
|
-
*
|
|
1438
|
-
* %20(1)%20(1)%20(1).png)
|
|
1412
|
+
* Get fork by id
|
|
1439
1413
|
*/
|
|
1440
|
-
static
|
|
1414
|
+
static getFork(options) {
|
|
1441
1415
|
return (options.client ?? client_gen_1.client).get({
|
|
1442
1416
|
security: [
|
|
1443
1417
|
{
|
|
@@ -1450,18 +1424,15 @@ class DebugAndSimulationService {
|
|
|
1450
1424
|
type: 'apiKey'
|
|
1451
1425
|
}
|
|
1452
1426
|
],
|
|
1453
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1427
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{id}',
|
|
1454
1428
|
...options
|
|
1455
1429
|
});
|
|
1456
1430
|
}
|
|
1457
|
-
}
|
|
1458
|
-
exports.DebugAndSimulationService = DebugAndSimulationService;
|
|
1459
|
-
class ForksService {
|
|
1460
1431
|
/**
|
|
1461
|
-
*
|
|
1432
|
+
* Update fork by id
|
|
1462
1433
|
*/
|
|
1463
|
-
static
|
|
1464
|
-
return (options.client ?? client_gen_1.client).
|
|
1434
|
+
static updateFork(options) {
|
|
1435
|
+
return (options.client ?? client_gen_1.client).put({
|
|
1465
1436
|
security: [
|
|
1466
1437
|
{
|
|
1467
1438
|
name: 'api-key',
|
|
@@ -1473,15 +1444,19 @@ class ForksService {
|
|
|
1473
1444
|
type: 'apiKey'
|
|
1474
1445
|
}
|
|
1475
1446
|
],
|
|
1476
|
-
url: '/v1/solidity/{owner}/{slug}/fork',
|
|
1477
|
-
...options
|
|
1447
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{id}',
|
|
1448
|
+
...options,
|
|
1449
|
+
headers: {
|
|
1450
|
+
'Content-Type': 'application/json',
|
|
1451
|
+
...options?.headers
|
|
1452
|
+
}
|
|
1478
1453
|
});
|
|
1479
1454
|
}
|
|
1480
1455
|
/**
|
|
1481
|
-
*
|
|
1456
|
+
* Get fork info by id
|
|
1482
1457
|
*/
|
|
1483
|
-
static
|
|
1484
|
-
return (options.client ?? client_gen_1.client).
|
|
1458
|
+
static getForkInfo(options) {
|
|
1459
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1485
1460
|
security: [
|
|
1486
1461
|
{
|
|
1487
1462
|
name: 'api-key',
|
|
@@ -1493,18 +1468,17 @@ class ForksService {
|
|
|
1493
1468
|
type: 'apiKey'
|
|
1494
1469
|
}
|
|
1495
1470
|
],
|
|
1496
|
-
url: '/v1/solidity/{owner}/{slug}/fork',
|
|
1497
|
-
...options
|
|
1498
|
-
headers: {
|
|
1499
|
-
'Content-Type': 'application/json',
|
|
1500
|
-
...options?.headers
|
|
1501
|
-
}
|
|
1471
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{id}/info',
|
|
1472
|
+
...options
|
|
1502
1473
|
});
|
|
1503
1474
|
}
|
|
1475
|
+
}
|
|
1476
|
+
exports.ForksService = ForksService;
|
|
1477
|
+
class DebugAndSimulationService {
|
|
1504
1478
|
/**
|
|
1505
|
-
*
|
|
1479
|
+
* Search transactions
|
|
1506
1480
|
*/
|
|
1507
|
-
static
|
|
1481
|
+
static searchTransactions(options) {
|
|
1508
1482
|
return (options.client ?? client_gen_1.client).get({
|
|
1509
1483
|
security: [
|
|
1510
1484
|
{
|
|
@@ -1517,15 +1491,15 @@ class ForksService {
|
|
|
1517
1491
|
type: 'apiKey'
|
|
1518
1492
|
}
|
|
1519
1493
|
],
|
|
1520
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1494
|
+
url: '/v1/solidity/{owner}/{slug}/search_transactions',
|
|
1521
1495
|
...options
|
|
1522
1496
|
});
|
|
1523
1497
|
}
|
|
1524
1498
|
/**
|
|
1525
|
-
*
|
|
1499
|
+
* Get list of simulations
|
|
1526
1500
|
*/
|
|
1527
|
-
static
|
|
1528
|
-
return (options.client ?? client_gen_1.client).
|
|
1501
|
+
static getSimulations(options) {
|
|
1502
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1529
1503
|
security: [
|
|
1530
1504
|
{
|
|
1531
1505
|
name: 'api-key',
|
|
@@ -1537,18 +1511,14 @@ class ForksService {
|
|
|
1537
1511
|
type: 'apiKey'
|
|
1538
1512
|
}
|
|
1539
1513
|
],
|
|
1540
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1541
|
-
...options
|
|
1542
|
-
headers: {
|
|
1543
|
-
'Content-Type': 'application/json',
|
|
1544
|
-
...options?.headers
|
|
1545
|
-
}
|
|
1514
|
+
url: '/v1/solidity/{owner}/{slug}/simulation',
|
|
1515
|
+
...options
|
|
1546
1516
|
});
|
|
1547
1517
|
}
|
|
1548
1518
|
/**
|
|
1549
|
-
* Get
|
|
1519
|
+
* Get simulation by ID
|
|
1550
1520
|
*/
|
|
1551
|
-
static
|
|
1521
|
+
static getSimulation(options) {
|
|
1552
1522
|
return (options.client ?? client_gen_1.client).get({
|
|
1553
1523
|
security: [
|
|
1554
1524
|
{
|
|
@@ -1561,15 +1531,15 @@ class ForksService {
|
|
|
1561
1531
|
type: 'apiKey'
|
|
1562
1532
|
}
|
|
1563
1533
|
],
|
|
1564
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1534
|
+
url: '/v1/solidity/{owner}/{slug}/simulation/{simulationId}',
|
|
1565
1535
|
...options
|
|
1566
1536
|
});
|
|
1567
1537
|
}
|
|
1568
1538
|
/**
|
|
1569
|
-
*
|
|
1539
|
+
* Get bundle simulation by ID
|
|
1570
1540
|
*/
|
|
1571
|
-
static
|
|
1572
|
-
return (options.client ?? client_gen_1.client).
|
|
1541
|
+
static getSimulationBundleInProject(options) {
|
|
1542
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1573
1543
|
security: [
|
|
1574
1544
|
{
|
|
1575
1545
|
name: 'api-key',
|
|
@@ -1581,18 +1551,14 @@ class ForksService {
|
|
|
1581
1551
|
type: 'apiKey'
|
|
1582
1552
|
}
|
|
1583
1553
|
],
|
|
1584
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1585
|
-
...options
|
|
1586
|
-
headers: {
|
|
1587
|
-
'Content-Type': 'application/json',
|
|
1588
|
-
...options?.headers
|
|
1589
|
-
}
|
|
1554
|
+
url: '/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}',
|
|
1555
|
+
...options
|
|
1590
1556
|
});
|
|
1591
1557
|
}
|
|
1592
1558
|
/**
|
|
1593
|
-
* Get trace by
|
|
1559
|
+
* Get trace by bundle simulation
|
|
1594
1560
|
*/
|
|
1595
|
-
static
|
|
1561
|
+
static getCallTraceByBundle(options) {
|
|
1596
1562
|
return (options.client ?? client_gen_1.client).get({
|
|
1597
1563
|
security: [
|
|
1598
1564
|
{
|
|
@@ -1605,15 +1571,17 @@ class ForksService {
|
|
|
1605
1571
|
type: 'apiKey'
|
|
1606
1572
|
}
|
|
1607
1573
|
],
|
|
1608
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1574
|
+
url: '/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace',
|
|
1609
1575
|
...options
|
|
1610
1576
|
});
|
|
1611
1577
|
}
|
|
1612
1578
|
/**
|
|
1613
|
-
*
|
|
1579
|
+
* Run simulation
|
|
1580
|
+
* Create a new transaction simulation. The simulation body should be included in the request body.
|
|
1581
|
+
* 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.
|
|
1614
1582
|
*/
|
|
1615
|
-
static
|
|
1616
|
-
return (options.client ?? client_gen_1.client).
|
|
1583
|
+
static simulateTransaction(options) {
|
|
1584
|
+
return (options.client ?? client_gen_1.client).post({
|
|
1617
1585
|
security: [
|
|
1618
1586
|
{
|
|
1619
1587
|
name: 'api-key',
|
|
@@ -1625,14 +1593,18 @@ class ForksService {
|
|
|
1625
1593
|
type: 'apiKey'
|
|
1626
1594
|
}
|
|
1627
1595
|
],
|
|
1628
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1629
|
-
...options
|
|
1596
|
+
url: '/v1/solidity/{owner}/{slug}/{chainId}/simulation',
|
|
1597
|
+
...options,
|
|
1598
|
+
headers: {
|
|
1599
|
+
'Content-Type': 'application/json',
|
|
1600
|
+
...options?.headers
|
|
1601
|
+
}
|
|
1630
1602
|
});
|
|
1631
1603
|
}
|
|
1632
1604
|
/**
|
|
1633
|
-
* Get
|
|
1605
|
+
* Get trace by simulation
|
|
1634
1606
|
*/
|
|
1635
|
-
static
|
|
1607
|
+
static getCallTraceBySimulation(options) {
|
|
1636
1608
|
return (options.client ?? client_gen_1.client).get({
|
|
1637
1609
|
security: [
|
|
1638
1610
|
{
|
|
@@ -1645,15 +1617,16 @@ class ForksService {
|
|
|
1645
1617
|
type: 'apiKey'
|
|
1646
1618
|
}
|
|
1647
1619
|
],
|
|
1648
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1620
|
+
url: '/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace',
|
|
1649
1621
|
...options
|
|
1650
1622
|
});
|
|
1651
1623
|
}
|
|
1652
1624
|
/**
|
|
1653
|
-
*
|
|
1625
|
+
* Run bundle simulation
|
|
1626
|
+
* 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.
|
|
1654
1627
|
*/
|
|
1655
|
-
static
|
|
1656
|
-
return (options.client ?? client_gen_1.client).
|
|
1628
|
+
static simulateTransactionBundle(options) {
|
|
1629
|
+
return (options.client ?? client_gen_1.client).post({
|
|
1657
1630
|
security: [
|
|
1658
1631
|
{
|
|
1659
1632
|
name: 'api-key',
|
|
@@ -1665,7 +1638,7 @@ class ForksService {
|
|
|
1665
1638
|
type: 'apiKey'
|
|
1666
1639
|
}
|
|
1667
1640
|
],
|
|
1668
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1641
|
+
url: '/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle',
|
|
1669
1642
|
...options,
|
|
1670
1643
|
headers: {
|
|
1671
1644
|
'Content-Type': 'application/json',
|
|
@@ -1674,9 +1647,16 @@ class ForksService {
|
|
|
1674
1647
|
});
|
|
1675
1648
|
}
|
|
1676
1649
|
/**
|
|
1677
|
-
* Get
|
|
1650
|
+
* Get trace by transaction
|
|
1651
|
+
* 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.
|
|
1652
|
+
*
|
|
1653
|
+
* The results looks very similar to the normal [Ethereum call trace](https://media.githubusercontent.com/media/sentioxyz/docs/HEAD/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.
|
|
1654
|
+
*
|
|
1655
|
+
* This allows you to build chart that marks the order of fund flow.
|
|
1656
|
+
*
|
|
1657
|
+
* %20(1)%20(1)%20(1).png)
|
|
1678
1658
|
*/
|
|
1679
|
-
static
|
|
1659
|
+
static getCallTraceByTransaction(options) {
|
|
1680
1660
|
return (options.client ?? client_gen_1.client).get({
|
|
1681
1661
|
security: [
|
|
1682
1662
|
{
|
|
@@ -1689,10 +1669,10 @@ class ForksService {
|
|
|
1689
1669
|
type: 'apiKey'
|
|
1690
1670
|
}
|
|
1691
1671
|
],
|
|
1692
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1672
|
+
url: '/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace',
|
|
1693
1673
|
...options
|
|
1694
1674
|
});
|
|
1695
1675
|
}
|
|
1696
1676
|
}
|
|
1697
|
-
exports.
|
|
1677
|
+
exports.DebugAndSimulationService = DebugAndSimulationService;
|
|
1698
1678
|
//# sourceMappingURL=sdk.gen.js.map
|