@sentio/api 1.0.5-rc.6 → 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 +11 -40
- package/package.json +1 -1
- package/src/sdk.gen.ts +118 -139
- package/src/types.gen.ts +11 -40
package/src/sdk.gen.ts
CHANGED
|
@@ -1305,33 +1305,12 @@ export class ProcessorExtService {
|
|
|
1305
1305
|
|
|
1306
1306
|
}
|
|
1307
1307
|
|
|
1308
|
-
export class
|
|
1309
|
-
/**
|
|
1310
|
-
* Estimate gas price
|
|
1311
|
-
*/
|
|
1312
|
-
public static getEstimatedGasPrice<ThrowOnError extends boolean = false>(options?: Options<solidity_service.GetEstimatedGasPriceData, ThrowOnError>) {
|
|
1313
|
-
return (options?.client ?? _heyApiClient).get<solidity_service.GetEstimatedGasPriceResponse2, unknown, ThrowOnError>({
|
|
1314
|
-
security: [
|
|
1315
|
-
{
|
|
1316
|
-
name: 'api-key',
|
|
1317
|
-
type: 'apiKey'
|
|
1318
|
-
},
|
|
1319
|
-
{
|
|
1320
|
-
in: 'query',
|
|
1321
|
-
name: 'api-key',
|
|
1322
|
-
type: 'apiKey'
|
|
1323
|
-
}
|
|
1324
|
-
],
|
|
1325
|
-
url: '/v1/solidity/estimated_gas_price',
|
|
1326
|
-
...options
|
|
1327
|
-
});
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1308
|
+
export class ForksService {
|
|
1330
1309
|
/**
|
|
1331
|
-
*
|
|
1310
|
+
* List all forks
|
|
1332
1311
|
*/
|
|
1333
|
-
public static
|
|
1334
|
-
return (options.client ?? _heyApiClient).get<solidity_service.
|
|
1312
|
+
public static listForks<ThrowOnError extends boolean = false>(options: Options<solidity_service.ListForksData, ThrowOnError>) {
|
|
1313
|
+
return (options.client ?? _heyApiClient).get<solidity_service.ListForksResponse2, unknown, ThrowOnError>({
|
|
1335
1314
|
security: [
|
|
1336
1315
|
{
|
|
1337
1316
|
name: 'api-key',
|
|
@@ -1343,16 +1322,16 @@ export class DebugAndSimulationService {
|
|
|
1343
1322
|
type: 'apiKey'
|
|
1344
1323
|
}
|
|
1345
1324
|
],
|
|
1346
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1325
|
+
url: '/v1/solidity/{owner}/{slug}/fork',
|
|
1347
1326
|
...options
|
|
1348
1327
|
});
|
|
1349
1328
|
}
|
|
1350
1329
|
|
|
1351
1330
|
/**
|
|
1352
|
-
*
|
|
1331
|
+
* Create a fork
|
|
1353
1332
|
*/
|
|
1354
|
-
public static
|
|
1355
|
-
return (options.client ?? _heyApiClient).
|
|
1333
|
+
public static createFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.CreateForkData, ThrowOnError>) {
|
|
1334
|
+
return (options.client ?? _heyApiClient).post<solidity_service.CreateForkResponse2, unknown, ThrowOnError>({
|
|
1356
1335
|
security: [
|
|
1357
1336
|
{
|
|
1358
1337
|
name: 'api-key',
|
|
@@ -1364,16 +1343,20 @@ export class DebugAndSimulationService {
|
|
|
1364
1343
|
type: 'apiKey'
|
|
1365
1344
|
}
|
|
1366
1345
|
],
|
|
1367
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1368
|
-
...options
|
|
1346
|
+
url: '/v1/solidity/{owner}/{slug}/fork',
|
|
1347
|
+
...options,
|
|
1348
|
+
headers: {
|
|
1349
|
+
'Content-Type': 'application/json',
|
|
1350
|
+
...options?.headers
|
|
1351
|
+
}
|
|
1369
1352
|
});
|
|
1370
1353
|
}
|
|
1371
1354
|
|
|
1372
1355
|
/**
|
|
1373
|
-
* Get
|
|
1356
|
+
* Get trace by bundle simulation
|
|
1374
1357
|
*/
|
|
1375
|
-
public static
|
|
1376
|
-
return (options.client ?? _heyApiClient).get<
|
|
1358
|
+
public static getCallTraceOnForkBundle<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkBundleData, ThrowOnError>) {
|
|
1359
|
+
return (options.client ?? _heyApiClient).get<google.GetCallTraceOnForkBundleResponse, unknown, ThrowOnError>({
|
|
1377
1360
|
security: [
|
|
1378
1361
|
{
|
|
1379
1362
|
name: 'api-key',
|
|
@@ -1385,16 +1368,16 @@ export class DebugAndSimulationService {
|
|
|
1385
1368
|
type: 'apiKey'
|
|
1386
1369
|
}
|
|
1387
1370
|
],
|
|
1388
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1371
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/bundle/{bundleId}/call_trace',
|
|
1389
1372
|
...options
|
|
1390
1373
|
});
|
|
1391
1374
|
}
|
|
1392
1375
|
|
|
1393
1376
|
/**
|
|
1394
|
-
*
|
|
1377
|
+
* Run Simulation
|
|
1395
1378
|
*/
|
|
1396
|
-
public static
|
|
1397
|
-
return (options.client ?? _heyApiClient).
|
|
1379
|
+
public static simulateTransactionOnFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionOnForkData, ThrowOnError>) {
|
|
1380
|
+
return (options.client ?? _heyApiClient).post<solidity_service.SimulateTransactionOnForkResponse, unknown, ThrowOnError>({
|
|
1398
1381
|
security: [
|
|
1399
1382
|
{
|
|
1400
1383
|
name: 'api-key',
|
|
@@ -1406,16 +1389,20 @@ export class DebugAndSimulationService {
|
|
|
1406
1389
|
type: 'apiKey'
|
|
1407
1390
|
}
|
|
1408
1391
|
],
|
|
1409
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1410
|
-
...options
|
|
1392
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation',
|
|
1393
|
+
...options,
|
|
1394
|
+
headers: {
|
|
1395
|
+
'Content-Type': 'application/json',
|
|
1396
|
+
...options?.headers
|
|
1397
|
+
}
|
|
1411
1398
|
});
|
|
1412
1399
|
}
|
|
1413
1400
|
|
|
1414
1401
|
/**
|
|
1415
|
-
* Get trace by
|
|
1402
|
+
* Get trace by simulation
|
|
1416
1403
|
*/
|
|
1417
|
-
public static
|
|
1418
|
-
return (options.client ?? _heyApiClient).get<google.
|
|
1404
|
+
public static getCallTraceOnForkSimulation<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkSimulationData, ThrowOnError>) {
|
|
1405
|
+
return (options.client ?? _heyApiClient).get<google.GetCallTraceOnForkSimulationResponse, unknown, ThrowOnError>({
|
|
1419
1406
|
security: [
|
|
1420
1407
|
{
|
|
1421
1408
|
name: 'api-key',
|
|
@@ -1427,18 +1414,16 @@ export class DebugAndSimulationService {
|
|
|
1427
1414
|
type: 'apiKey'
|
|
1428
1415
|
}
|
|
1429
1416
|
],
|
|
1430
|
-
url: '/v1/solidity/{owner}/{slug}/{
|
|
1417
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation/{simulationId}/call_trace',
|
|
1431
1418
|
...options
|
|
1432
1419
|
});
|
|
1433
1420
|
}
|
|
1434
1421
|
|
|
1435
1422
|
/**
|
|
1436
|
-
* Run simulation
|
|
1437
|
-
* Create a new transaction simulation. The simulation body should be included in the request body.
|
|
1438
|
-
* 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.
|
|
1423
|
+
* Run bundle simulation
|
|
1439
1424
|
*/
|
|
1440
|
-
public static
|
|
1441
|
-
return (options.client ?? _heyApiClient).post<solidity_service.
|
|
1425
|
+
public static simulateTransactionBundleOnFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionBundleOnForkData, ThrowOnError>) {
|
|
1426
|
+
return (options.client ?? _heyApiClient).post<solidity_service.SimulateTransactionBundleOnForkResponse, unknown, ThrowOnError>({
|
|
1442
1427
|
security: [
|
|
1443
1428
|
{
|
|
1444
1429
|
name: 'api-key',
|
|
@@ -1450,7 +1435,7 @@ export class DebugAndSimulationService {
|
|
|
1450
1435
|
type: 'apiKey'
|
|
1451
1436
|
}
|
|
1452
1437
|
],
|
|
1453
|
-
url: '/v1/solidity/{owner}/{slug}/{
|
|
1438
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation_bundle',
|
|
1454
1439
|
...options,
|
|
1455
1440
|
headers: {
|
|
1456
1441
|
'Content-Type': 'application/json',
|
|
@@ -1460,10 +1445,10 @@ export class DebugAndSimulationService {
|
|
|
1460
1445
|
}
|
|
1461
1446
|
|
|
1462
1447
|
/**
|
|
1463
|
-
* Get trace by
|
|
1448
|
+
* Get trace by transaction
|
|
1464
1449
|
*/
|
|
1465
|
-
public static
|
|
1466
|
-
return (options.client ?? _heyApiClient).get<google.
|
|
1450
|
+
public static getCallTraceOnForkTransaction<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceOnForkTransactionData, ThrowOnError>) {
|
|
1451
|
+
return (options.client ?? _heyApiClient).get<google.GetCallTraceOnForkTransactionResponse, unknown, ThrowOnError>({
|
|
1467
1452
|
security: [
|
|
1468
1453
|
{
|
|
1469
1454
|
name: 'api-key',
|
|
@@ -1475,17 +1460,16 @@ export class DebugAndSimulationService {
|
|
|
1475
1460
|
type: 'apiKey'
|
|
1476
1461
|
}
|
|
1477
1462
|
],
|
|
1478
|
-
url: '/v1/solidity/{owner}/{slug}/{
|
|
1463
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{forkId}/transaction/{txHash}/call_trace',
|
|
1479
1464
|
...options
|
|
1480
1465
|
});
|
|
1481
1466
|
}
|
|
1482
1467
|
|
|
1483
1468
|
/**
|
|
1484
|
-
*
|
|
1485
|
-
* 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.
|
|
1469
|
+
* Delete fork by id
|
|
1486
1470
|
*/
|
|
1487
|
-
public static
|
|
1488
|
-
return (options.client ?? _heyApiClient).
|
|
1471
|
+
public static deleteFork<ThrowOnError extends boolean = false>(options: Options<solidit_service.DeleteForkData, ThrowOnError>) {
|
|
1472
|
+
return (options.client ?? _heyApiClient).delete<solidit_service.DeleteForkResponse, unknown, ThrowOnError>({
|
|
1489
1473
|
security: [
|
|
1490
1474
|
{
|
|
1491
1475
|
name: 'api-key',
|
|
@@ -1497,27 +1481,16 @@ export class DebugAndSimulationService {
|
|
|
1497
1481
|
type: 'apiKey'
|
|
1498
1482
|
}
|
|
1499
1483
|
],
|
|
1500
|
-
url: '/v1/solidity/{owner}/{slug}/{
|
|
1501
|
-
...options
|
|
1502
|
-
headers: {
|
|
1503
|
-
'Content-Type': 'application/json',
|
|
1504
|
-
...options?.headers
|
|
1505
|
-
}
|
|
1484
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{id}',
|
|
1485
|
+
...options
|
|
1506
1486
|
});
|
|
1507
1487
|
}
|
|
1508
1488
|
|
|
1509
1489
|
/**
|
|
1510
|
-
* Get
|
|
1511
|
-
* 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.
|
|
1512
|
-
*
|
|
1513
|
-
* 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.
|
|
1514
|
-
*
|
|
1515
|
-
* This allows you to build chart that marks the order of fund flow.
|
|
1516
|
-
*
|
|
1517
|
-
* %20(1)%20(1)%20(1).png)
|
|
1490
|
+
* Get fork by id
|
|
1518
1491
|
*/
|
|
1519
|
-
public static
|
|
1520
|
-
return (options.client ?? _heyApiClient).get<
|
|
1492
|
+
public static getFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetForkData, ThrowOnError>) {
|
|
1493
|
+
return (options.client ?? _heyApiClient).get<solidity_service.GetForkResponse2, unknown, ThrowOnError>({
|
|
1521
1494
|
security: [
|
|
1522
1495
|
{
|
|
1523
1496
|
name: 'api-key',
|
|
@@ -1529,19 +1502,16 @@ export class DebugAndSimulationService {
|
|
|
1529
1502
|
type: 'apiKey'
|
|
1530
1503
|
}
|
|
1531
1504
|
],
|
|
1532
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1505
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{id}',
|
|
1533
1506
|
...options
|
|
1534
1507
|
});
|
|
1535
1508
|
}
|
|
1536
1509
|
|
|
1537
|
-
}
|
|
1538
|
-
|
|
1539
|
-
export class ForksService {
|
|
1540
1510
|
/**
|
|
1541
|
-
*
|
|
1511
|
+
* Update fork by id
|
|
1542
1512
|
*/
|
|
1543
|
-
public static
|
|
1544
|
-
return (options.client ?? _heyApiClient).
|
|
1513
|
+
public static updateFork<ThrowOnError extends boolean = false>(options: Options<solidity_service.UpdateForkData, ThrowOnError>) {
|
|
1514
|
+
return (options.client ?? _heyApiClient).put<solidity_service.UpdateForkResponse2, unknown, ThrowOnError>({
|
|
1545
1515
|
security: [
|
|
1546
1516
|
{
|
|
1547
1517
|
name: 'api-key',
|
|
@@ -1553,16 +1523,20 @@ export class ForksService {
|
|
|
1553
1523
|
type: 'apiKey'
|
|
1554
1524
|
}
|
|
1555
1525
|
],
|
|
1556
|
-
url: '/v1/solidity/{owner}/{slug}/fork',
|
|
1557
|
-
...options
|
|
1526
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{id}',
|
|
1527
|
+
...options,
|
|
1528
|
+
headers: {
|
|
1529
|
+
'Content-Type': 'application/json',
|
|
1530
|
+
...options?.headers
|
|
1531
|
+
}
|
|
1558
1532
|
});
|
|
1559
1533
|
}
|
|
1560
1534
|
|
|
1561
1535
|
/**
|
|
1562
|
-
*
|
|
1536
|
+
* Get fork info by id
|
|
1563
1537
|
*/
|
|
1564
|
-
public static
|
|
1565
|
-
return (options.client ?? _heyApiClient).
|
|
1538
|
+
public static getForkInfo<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetForkInfoData, ThrowOnError>) {
|
|
1539
|
+
return (options.client ?? _heyApiClient).get<solidity_service.GetForkInfoResponse2, unknown, ThrowOnError>({
|
|
1566
1540
|
security: [
|
|
1567
1541
|
{
|
|
1568
1542
|
name: 'api-key',
|
|
@@ -1574,20 +1548,19 @@ export class ForksService {
|
|
|
1574
1548
|
type: 'apiKey'
|
|
1575
1549
|
}
|
|
1576
1550
|
],
|
|
1577
|
-
url: '/v1/solidity/{owner}/{slug}/fork',
|
|
1578
|
-
...options
|
|
1579
|
-
headers: {
|
|
1580
|
-
'Content-Type': 'application/json',
|
|
1581
|
-
...options?.headers
|
|
1582
|
-
}
|
|
1551
|
+
url: '/v1/solidity/{owner}/{slug}/fork/{id}/info',
|
|
1552
|
+
...options
|
|
1583
1553
|
});
|
|
1584
1554
|
}
|
|
1585
1555
|
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
export class DebugAndSimulationService {
|
|
1586
1559
|
/**
|
|
1587
|
-
*
|
|
1560
|
+
* Search transactions
|
|
1588
1561
|
*/
|
|
1589
|
-
public static
|
|
1590
|
-
return (options.client ?? _heyApiClient).get<
|
|
1562
|
+
public static searchTransactions<ThrowOnError extends boolean = false>(options: Options<solidity_service.SearchTransactionsData, ThrowOnError>) {
|
|
1563
|
+
return (options.client ?? _heyApiClient).get<solidity_service.SearchTransactionsResponse, unknown, ThrowOnError>({
|
|
1591
1564
|
security: [
|
|
1592
1565
|
{
|
|
1593
1566
|
name: 'api-key',
|
|
@@ -1599,16 +1572,16 @@ export class ForksService {
|
|
|
1599
1572
|
type: 'apiKey'
|
|
1600
1573
|
}
|
|
1601
1574
|
],
|
|
1602
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1575
|
+
url: '/v1/solidity/{owner}/{slug}/search_transactions',
|
|
1603
1576
|
...options
|
|
1604
1577
|
});
|
|
1605
1578
|
}
|
|
1606
1579
|
|
|
1607
1580
|
/**
|
|
1608
|
-
*
|
|
1581
|
+
* Get list of simulations
|
|
1609
1582
|
*/
|
|
1610
|
-
public static
|
|
1611
|
-
return (options.client ?? _heyApiClient).
|
|
1583
|
+
public static getSimulations<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetSimulationsData, ThrowOnError>) {
|
|
1584
|
+
return (options.client ?? _heyApiClient).get<solidity_service.GetSimulationsResponse2, unknown, ThrowOnError>({
|
|
1612
1585
|
security: [
|
|
1613
1586
|
{
|
|
1614
1587
|
name: 'api-key',
|
|
@@ -1620,20 +1593,16 @@ export class ForksService {
|
|
|
1620
1593
|
type: 'apiKey'
|
|
1621
1594
|
}
|
|
1622
1595
|
],
|
|
1623
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1624
|
-
...options
|
|
1625
|
-
headers: {
|
|
1626
|
-
'Content-Type': 'application/json',
|
|
1627
|
-
...options?.headers
|
|
1628
|
-
}
|
|
1596
|
+
url: '/v1/solidity/{owner}/{slug}/simulation',
|
|
1597
|
+
...options
|
|
1629
1598
|
});
|
|
1630
1599
|
}
|
|
1631
1600
|
|
|
1632
1601
|
/**
|
|
1633
|
-
* Get
|
|
1602
|
+
* Get simulation by ID
|
|
1634
1603
|
*/
|
|
1635
|
-
public static
|
|
1636
|
-
return (options.client ?? _heyApiClient).get<
|
|
1604
|
+
public static getSimulation<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetSimulationData, ThrowOnError>) {
|
|
1605
|
+
return (options.client ?? _heyApiClient).get<solidity_service.GetSimulationResponse2, unknown, ThrowOnError>({
|
|
1637
1606
|
security: [
|
|
1638
1607
|
{
|
|
1639
1608
|
name: 'api-key',
|
|
@@ -1645,16 +1614,16 @@ export class ForksService {
|
|
|
1645
1614
|
type: 'apiKey'
|
|
1646
1615
|
}
|
|
1647
1616
|
],
|
|
1648
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1617
|
+
url: '/v1/solidity/{owner}/{slug}/simulation/{simulationId}',
|
|
1649
1618
|
...options
|
|
1650
1619
|
});
|
|
1651
1620
|
}
|
|
1652
1621
|
|
|
1653
1622
|
/**
|
|
1654
|
-
*
|
|
1623
|
+
* Get bundle simulation by ID
|
|
1655
1624
|
*/
|
|
1656
|
-
public static
|
|
1657
|
-
return (options.client ?? _heyApiClient).
|
|
1625
|
+
public static getSimulationBundleInProject<ThrowOnError extends boolean = false>(options: Options<solidity_service.GetSimulationBundleInProjectData, ThrowOnError>) {
|
|
1626
|
+
return (options.client ?? _heyApiClient).get<solidity_service.GetSimulationBundleInProjectResponse, unknown, ThrowOnError>({
|
|
1658
1627
|
security: [
|
|
1659
1628
|
{
|
|
1660
1629
|
name: 'api-key',
|
|
@@ -1666,20 +1635,16 @@ export class ForksService {
|
|
|
1666
1635
|
type: 'apiKey'
|
|
1667
1636
|
}
|
|
1668
1637
|
],
|
|
1669
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1670
|
-
...options
|
|
1671
|
-
headers: {
|
|
1672
|
-
'Content-Type': 'application/json',
|
|
1673
|
-
...options?.headers
|
|
1674
|
-
}
|
|
1638
|
+
url: '/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}',
|
|
1639
|
+
...options
|
|
1675
1640
|
});
|
|
1676
1641
|
}
|
|
1677
1642
|
|
|
1678
1643
|
/**
|
|
1679
|
-
* Get trace by
|
|
1644
|
+
* Get trace by bundle simulation
|
|
1680
1645
|
*/
|
|
1681
|
-
public static
|
|
1682
|
-
return (options.client ?? _heyApiClient).get<google.
|
|
1646
|
+
public static getCallTraceByBundle<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceByBundleData, ThrowOnError>) {
|
|
1647
|
+
return (options.client ?? _heyApiClient).get<google.GetCallTraceByBundleResponse, unknown, ThrowOnError>({
|
|
1683
1648
|
security: [
|
|
1684
1649
|
{
|
|
1685
1650
|
name: 'api-key',
|
|
@@ -1691,16 +1656,18 @@ export class ForksService {
|
|
|
1691
1656
|
type: 'apiKey'
|
|
1692
1657
|
}
|
|
1693
1658
|
],
|
|
1694
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1659
|
+
url: '/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace',
|
|
1695
1660
|
...options
|
|
1696
1661
|
});
|
|
1697
1662
|
}
|
|
1698
1663
|
|
|
1699
1664
|
/**
|
|
1700
|
-
*
|
|
1665
|
+
* Run simulation
|
|
1666
|
+
* Create a new transaction simulation. The simulation body should be included in the request body.
|
|
1667
|
+
* 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.
|
|
1701
1668
|
*/
|
|
1702
|
-
public static
|
|
1703
|
-
return (options.client ?? _heyApiClient).
|
|
1669
|
+
public static simulateTransaction<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionData, ThrowOnError>) {
|
|
1670
|
+
return (options.client ?? _heyApiClient).post<solidity_service.SimulateTransactionResponse2, unknown, ThrowOnError>({
|
|
1704
1671
|
security: [
|
|
1705
1672
|
{
|
|
1706
1673
|
name: 'api-key',
|
|
@@ -1712,16 +1679,20 @@ export class ForksService {
|
|
|
1712
1679
|
type: 'apiKey'
|
|
1713
1680
|
}
|
|
1714
1681
|
],
|
|
1715
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1716
|
-
...options
|
|
1682
|
+
url: '/v1/solidity/{owner}/{slug}/{chainId}/simulation',
|
|
1683
|
+
...options,
|
|
1684
|
+
headers: {
|
|
1685
|
+
'Content-Type': 'application/json',
|
|
1686
|
+
...options?.headers
|
|
1687
|
+
}
|
|
1717
1688
|
});
|
|
1718
1689
|
}
|
|
1719
1690
|
|
|
1720
1691
|
/**
|
|
1721
|
-
* Get
|
|
1692
|
+
* Get trace by simulation
|
|
1722
1693
|
*/
|
|
1723
|
-
public static
|
|
1724
|
-
return (options.client ?? _heyApiClient).get<
|
|
1694
|
+
public static getCallTraceBySimulation<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceBySimulationData, ThrowOnError>) {
|
|
1695
|
+
return (options.client ?? _heyApiClient).get<google.GetCallTraceBySimulationResponse, unknown, ThrowOnError>({
|
|
1725
1696
|
security: [
|
|
1726
1697
|
{
|
|
1727
1698
|
name: 'api-key',
|
|
@@ -1733,16 +1704,17 @@ export class ForksService {
|
|
|
1733
1704
|
type: 'apiKey'
|
|
1734
1705
|
}
|
|
1735
1706
|
],
|
|
1736
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1707
|
+
url: '/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace',
|
|
1737
1708
|
...options
|
|
1738
1709
|
});
|
|
1739
1710
|
}
|
|
1740
1711
|
|
|
1741
1712
|
/**
|
|
1742
|
-
*
|
|
1713
|
+
* Run bundle simulation
|
|
1714
|
+
* 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.
|
|
1743
1715
|
*/
|
|
1744
|
-
public static
|
|
1745
|
-
return (options.client ?? _heyApiClient).
|
|
1716
|
+
public static simulateTransactionBundle<ThrowOnError extends boolean = false>(options: Options<solidity_service.SimulateTransactionBundleData, ThrowOnError>) {
|
|
1717
|
+
return (options.client ?? _heyApiClient).post<solidity_service.SimulateTransactionBundleResponse2, unknown, ThrowOnError>({
|
|
1746
1718
|
security: [
|
|
1747
1719
|
{
|
|
1748
1720
|
name: 'api-key',
|
|
@@ -1754,7 +1726,7 @@ export class ForksService {
|
|
|
1754
1726
|
type: 'apiKey'
|
|
1755
1727
|
}
|
|
1756
1728
|
],
|
|
1757
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1729
|
+
url: '/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle',
|
|
1758
1730
|
...options,
|
|
1759
1731
|
headers: {
|
|
1760
1732
|
'Content-Type': 'application/json',
|
|
@@ -1764,10 +1736,17 @@ export class ForksService {
|
|
|
1764
1736
|
}
|
|
1765
1737
|
|
|
1766
1738
|
/**
|
|
1767
|
-
* Get
|
|
1739
|
+
* Get trace by transaction
|
|
1740
|
+
* 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.
|
|
1741
|
+
*
|
|
1742
|
+
* 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.
|
|
1743
|
+
*
|
|
1744
|
+
* This allows you to build chart that marks the order of fund flow.
|
|
1745
|
+
*
|
|
1746
|
+
* %20(1)%20(1)%20(1).png)
|
|
1768
1747
|
*/
|
|
1769
|
-
public static
|
|
1770
|
-
return (options.client ?? _heyApiClient).get<
|
|
1748
|
+
public static getCallTraceByTransaction<ThrowOnError extends boolean = false>(options: Options<google.GetCallTraceByTransactionData, ThrowOnError>) {
|
|
1749
|
+
return (options.client ?? _heyApiClient).get<google.GetCallTraceByTransactionResponse, unknown, ThrowOnError>({
|
|
1771
1750
|
security: [
|
|
1772
1751
|
{
|
|
1773
1752
|
name: 'api-key',
|
|
@@ -1779,7 +1758,7 @@ export class ForksService {
|
|
|
1779
1758
|
type: 'apiKey'
|
|
1780
1759
|
}
|
|
1781
1760
|
],
|
|
1782
|
-
url: '/v1/solidity/{owner}/{slug}/
|
|
1761
|
+
url: '/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace',
|
|
1783
1762
|
...options
|
|
1784
1763
|
});
|
|
1785
1764
|
}
|
package/src/types.gen.ts
CHANGED
|
@@ -2599,13 +2599,6 @@ export namespace solidity_service {
|
|
|
2599
2599
|
[key: string]: string;
|
|
2600
2600
|
};
|
|
2601
2601
|
};
|
|
2602
|
-
export type BlockPrice = {
|
|
2603
|
-
blockNumber?: number;
|
|
2604
|
-
estimatedTransactionCount?: number;
|
|
2605
|
-
baseFeePerGas?: number;
|
|
2606
|
-
blobBaseFeePerGas?: number;
|
|
2607
|
-
estimatedPrices?: Array<EstimatedPrice>;
|
|
2608
|
-
};
|
|
2609
2602
|
export type ChainIdentifier = {
|
|
2610
2603
|
chainId?: string;
|
|
2611
2604
|
forkId?: string;
|
|
@@ -2613,12 +2606,6 @@ export namespace solidity_service {
|
|
|
2613
2606
|
export type CreateForkResponse = {
|
|
2614
2607
|
fork?: Fork;
|
|
2615
2608
|
};
|
|
2616
|
-
export type EstimatedPrice = {
|
|
2617
|
-
confidence?: number;
|
|
2618
|
-
price?: number;
|
|
2619
|
-
maxPriorityFeePerGas?: number;
|
|
2620
|
-
maxFeePerGas?: number;
|
|
2621
|
-
};
|
|
2622
2609
|
export type EvmRawTransaction = {
|
|
2623
2610
|
hash?: string;
|
|
2624
2611
|
blockNumber?: string;
|
|
@@ -2657,15 +2644,6 @@ export namespace solidity_service {
|
|
|
2657
2644
|
fork: Fork;
|
|
2658
2645
|
};
|
|
2659
2646
|
export type ForkType = 'MANAGED' | 'EXTERNAL';
|
|
2660
|
-
export type GetEstimatedGasPriceResponse = {
|
|
2661
|
-
system?: string;
|
|
2662
|
-
network?: string;
|
|
2663
|
-
unit?: string;
|
|
2664
|
-
maxPrice?: number;
|
|
2665
|
-
currentBlockNumber?: number;
|
|
2666
|
-
msSinceLastBlock?: number;
|
|
2667
|
-
blockPrices?: Array<BlockPrice>;
|
|
2668
|
-
};
|
|
2669
2647
|
export type GetForkInfoResponse = {
|
|
2670
2648
|
currentBlockNumber?: string;
|
|
2671
2649
|
currentBlockTimestamp?: string;
|
|
@@ -2796,24 +2774,6 @@ export namespace solidity_service {
|
|
|
2796
2774
|
export type UpdateForkResponse = {
|
|
2797
2775
|
fork?: Fork;
|
|
2798
2776
|
};
|
|
2799
|
-
export type GetEstimatedGasPriceData = {
|
|
2800
|
-
body?: never;
|
|
2801
|
-
path?: never;
|
|
2802
|
-
query?: {
|
|
2803
|
-
/**
|
|
2804
|
-
* Current support chain id: 1
|
|
2805
|
-
*/
|
|
2806
|
-
chainId?: string;
|
|
2807
|
-
};
|
|
2808
|
-
url: '/v1/solidity/estimated_gas_price';
|
|
2809
|
-
};
|
|
2810
|
-
export type GetEstimatedGasPriceResponses = {
|
|
2811
|
-
/**
|
|
2812
|
-
* A successful response.
|
|
2813
|
-
*/
|
|
2814
|
-
200: solidity_service.GetEstimatedGasPriceResponse;
|
|
2815
|
-
};
|
|
2816
|
-
export type GetEstimatedGasPriceResponse2 = GetEstimatedGasPriceResponses[keyof GetEstimatedGasPriceResponses];
|
|
2817
2777
|
export type ListForksData = {
|
|
2818
2778
|
body?: never;
|
|
2819
2779
|
path: {
|
|
@@ -3341,7 +3301,18 @@ export namespace web_service {
|
|
|
3341
3301
|
title?: string;
|
|
3342
3302
|
collapsed?: boolean;
|
|
3343
3303
|
childLayouts?: DashboardResponsiveLayouts;
|
|
3304
|
+
style?: GroupStyle;
|
|
3305
|
+
/**
|
|
3306
|
+
* Palette key (e.g. "green", "purple") used to derive the header
|
|
3307
|
+
* background. Empty string keeps the theme default.
|
|
3308
|
+
*/
|
|
3309
|
+
highlightColor?: string;
|
|
3344
3310
|
};
|
|
3311
|
+
/**
|
|
3312
|
+
* Visual treatment for the Group's header card. Default = plain border;
|
|
3313
|
+
* Emphasis = solid highlight_color tint behind the title row.
|
|
3314
|
+
*/
|
|
3315
|
+
export type GroupStyle = 'DEFAULT' | 'EMPHASIS';
|
|
3345
3316
|
export type ImportDashboardRequest = {
|
|
3346
3317
|
/**
|
|
3347
3318
|
* The id of the target dashboard to import into.
|