diff --git a/doc/index.html b/doc/index.html index c82cad7..b765613 100755 --- a/doc/index.html +++ b/doc/index.html @@ -4002,7 +4002,7 @@ defs["solidity_service_SolidityAPIService_SimulateTransactionBody_chainSpec"] = { "type" : "object", "properties" : { - "chainId" : { + "forkId" : { "type" : "string" } } @@ -4044,6 +4044,85 @@ "value" : "0xbe32c0faed7400" } ] } +}; + defs["solidity_service.SolidityAPIService.SimulateTransactionBundleByForkBody"] = { + "required" : [ "simulations" ], + "type" : "object", + "properties" : { + "chainSpec" : { + "$ref" : "#/components/schemas/solidity_service_SolidityAPIService_SimulateTransactionBundleByForkBody_chainSpec" + }, + "simulations" : { + "type" : "array", + "description" : "For blockNumber, transactionIndex, networkId, stateOverrides and blockOverrides fields, only the first simulation takes effect.", + "items" : { + "$ref" : "#/components/schemas/solidity_service.Simulation" + } + } + }, + "example" : { + "simulations" : [ { + "blockNumber" : "17415072", + "transactionIndex" : "97", + "network_id" : "1", + "from" : "0x5e8bb488e85ea732e17150862b1acfc213a7c13d", + "to" : "0xef1c6e67703c7bd7107eed8303fbe6ec2554bf6b", + "gas" : "0x31ae2", + "gasPrice" : "0xe59a1adbe", + "input" : "0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000647dffef0000000000000000000000000000000000000000000000000000000000000002080c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000003077b58d5d378391980000000000000000000000000000000000000000000000000000000032b2ced3e40e9d100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000082646b22a3960da69ef7a778c16dd6fb85dd999000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000032b2ced3e40e9d1", + "value" : "0x0" + }, { + "from" : "0x99922ca65188cc218a5d316969dc66d8672994f2", + "to" : "0xae96a46b64e08861cf2af8c7d954b722e0725a0c", + "gas" : "0x52", + "gasPrice" : "0xe5909173e", + "maxPriorityFeePerGas" : "0x3b023380", + "maxFeePerGas" : "0x147d03", + "input" : "0x", + "value" : "0xbe32c0faed7400" + } ] + } +}; + defs["solidity_service_SolidityAPIService_SimulateTransactionBundleByForkBody_chainSpec"] = { + "type" : "object", + "properties" : { + "chainId" : { + "type" : "string" + } + } +}; + defs["solidity_service.SolidityAPIService.SimulateTransactionByForkBody"] = { + "required" : [ "simulation" ], + "type" : "object", + "properties" : { + "chainSpec" : { + "$ref" : "#/components/schemas/solidity_service_SolidityAPIService_SimulateTransactionBundleByForkBody_chainSpec" + }, + "simulation" : { + "$ref" : "#/components/schemas/solidity_service.Simulation" + } + }, + "example" : { + "simulation" : { + "networkId" : "1", + "blockNumber" : "17415072", + "transactionIndex" : "97", + "from" : "0x5e8bb488e85ea732e17150862b1acfc213a7c13d", + "to" : "0xef1c6e67703c7bd7107eed8303fbe6ec2554bf6b", + "value" : "0x0", + "gas" : "0x31ae2", + "gasPrice" : "0xe59a1adbe", + "input" : "0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000647dffef0000000000000000000000000000000000000000000000000000000000000002080c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000003077b58d5d378391980000000000000000000000000000000000000000000000000000000032b2ced3e40e9d100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000082646b22a3960da69ef7a778c16dd6fb85dd999000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000032b2ced3e40e9d1", + "stateOverrides" : { + "0x0811fd1808e14f0b93f0514313965a5f142c5539" : { + "balance" : "0x1111111111111111" + } + }, + "blockOverride" : { + "baseFee" : "0x0" + } + } + } }; defs["solidity_service.SourceFetcherType"] = { "type" : "string", @@ -5029,23 +5108,23 @@ retention2 -
  • - getCallTrace +
  • + getCallTraceByBundle
  • -
  • - getCallTrace2 +
  • + getCallTraceByForkBundle
  • -
  • - getCallTrace3 +
  • + getCallTraceByForkSimulation
  • -
  • - getCallTrace4 +
  • + getCallTraceByForkTransaction
  • -
  • - getCallTrace5 +
  • + getCallTraceBySimulation
  • -
  • - getCallTrace6 +
  • + getCallTraceByTransaction
  • getSimulation @@ -5062,14 +5141,14 @@
  • simulateTransaction
  • -
  • - simulateTransaction2 -
  • simulateTransactionBundle
  • -
  • - simulateTransactionBundle2 +
  • + simulateTransactionBundleByFork +
  • +
  • + simulateTransactionByFork
  • @@ -11194,53 +11273,47 @@

    DebugAndSimulation

    -
    -
    +
    +
    -

    getCallTrace

    -

    Get indexed call trace

    +

    getCallTraceByBundle

    +

    -

    API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. - -![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)

    +


    -
    /api/v1/solidity/{owner}/{slug}/{chain_id}/transaction/{tx_hash}/call_trace
    +
    /api/v1/solidity/{owner}/{slug}/{chain_id}/bundle/{bundle_id}/call_trace

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chain_id}/transaction/{tx_hash}/call_trace?chainSpec.forkId=chainSpecPeriodforkId_example&txId.simulationId=txIdPeriodsimulationId_example&txId.bundleId=txIdPeriodbundleId_example&withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chain_id}/bundle/{bundle_id}/call_trace?chainSpec.forkId=chainSpecPeriodforkId_example&txId.txHash=txIdPeriodtxHash_example&txId.simulationId=txIdPeriodsimulationId_example&withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -11264,19 +11337,19 @@ 

    Usage and SDK Samples

    String owner = owner_example; // String | String slug = slug_example; // String | String chainId = chainId_example; // String | - String txHash = txHash_example; // String | One of txHash, simulationId, bundleId is required. + String bundleId = bundleId_example; // String | String chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | + String txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. String txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | - String txIdPeriodbundleId = txIdPeriodbundleId_example; // String | Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTrace(owner, slug, chainId, txHash, chainSpecPeriodforkId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle"); e.printStackTrace(); } } @@ -11284,7 +11357,7 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
    @@ -11292,25 +11365,25 @@ 

    Usage and SDK Samples

    final String owner = new String(); // String | final String slug = new String(); // String | final String chainId = new String(); // String | -final String txHash = new String(); // String | One of txHash, simulationId, bundleId is required. +final String bundleId = new String(); // String | final String chainSpecPeriodforkId = new String(); // String | +final String txIdPeriodtxHash = new String(); // String | One of txHash, simulationId, bundleId is required. final String txIdPeriodsimulationId = new String(); // String | -final String txIdPeriodbundleId = new String(); // String | final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. final Boolean disableOptimizer = new Boolean(); // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true. try { - final result = await api_instance.getCallTrace(owner, slug, chainId, txHash, chainSpecPeriodforkId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + final result = await api_instance.getCallTraceByBundle(owner, slug, chainId, bundleId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost); print(result); } catch (e) { - print('Exception when calling DefaultApi->getCallTrace: $e\n'); + print('Exception when calling DefaultApi->getCallTraceByBundle: $e\n'); }
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -11319,29 +11392,29 @@ 

    Usage and SDK Samples

    String owner = owner_example; // String | String slug = slug_example; // String | String chainId = chainId_example; // String | - String txHash = txHash_example; // String | One of txHash, simulationId, bundleId is required. + String bundleId = bundleId_example; // String | String chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | + String txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. String txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | - String txIdPeriodbundleId = txIdPeriodbundleId_example; // String | Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTrace(owner, slug, chainId, txHash, chainSpecPeriodforkId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByBundle"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -11355,22 +11428,21 @@ 

    Usage and SDK Samples

    String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) String *chainId = chainId_example; // (default to null) -String *txHash = txHash_example; // One of txHash, simulationId, bundleId is required. (default to null) +String *bundleId = bundleId_example; // (default to null) String *chainSpecPeriodforkId = chainSpecPeriodforkId_example; // (optional) (default to null) +String *txIdPeriodtxHash = txIdPeriodtxHash_example; // One of txHash, simulationId, bundleId is required. (optional) (default to null) String *txIdPeriodsimulationId = txIdPeriodsimulationId_example; // (optional) (default to null) -String *txIdPeriodbundleId = txIdPeriodbundleId_example; // (optional) (default to null) Boolean *withInternalCalls = true; // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null) -// Get indexed call trace -[apiInstance getCallTraceWith:owner +[apiInstance getCallTraceByBundleWith:owner slug:slug chainId:chainId - txHash:txHash + bundleId:bundleId chainSpecPeriodforkId:chainSpecPeriodforkId + txIdPeriodtxHash:txIdPeriodtxHash txIdPeriodsimulationId:txIdPeriodsimulationId - txIdPeriodbundleId:txIdPeriodbundleId withInternalCalls:withInternalCalls disableOptimizer:disableOptimizer ignoreGasCost:ignoreGasCost @@ -11385,7 +11457,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -11400,11 +11472,11 @@ 

    Usage and SDK Samples

    var owner = owner_example; // {String} var slug = slug_example; // {String} var chainId = chainId_example; // {String} -var txHash = txHash_example; // {String} One of txHash, simulationId, bundleId is required. +var bundleId = bundleId_example; // {String} var opts = { 'chainSpecPeriodforkId': chainSpecPeriodforkId_example, // {String} + 'txIdPeriodtxHash': txIdPeriodtxHash_example, // {String} One of txHash, simulationId, bundleId is required. 'txIdPeriodsimulationId': txIdPeriodsimulationId_example, // {String} - 'txIdPeriodbundleId': txIdPeriodbundleId_example, // {String} 'withInternalCalls': true, // {Boolean} Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. 'disableOptimizer': true, // {Boolean} Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. 'ignoreGasCost': true // {Boolean} Only effective when disableOptimizer=true. @@ -11417,14 +11489,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getCallTrace(owner, slug, chainId, txHash, opts, callback); +api.getCallTraceByBundle(owner, slug, chainId, bundleId, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -11433,7 +11505,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getCallTraceExample + public class getCallTraceByBundleExample { public void main() { @@ -11447,20 +11519,19 @@

    Usage and SDK Samples

    var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) var chainId = chainId_example; // String | (default to null) - var txHash = txHash_example; // String | One of txHash, simulationId, bundleId is required. (default to null) + var bundleId = bundleId_example; // String | (default to null) var chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | (optional) (default to null) + var txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. (optional) (default to null) var txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | (optional) (default to null) - var txIdPeriodbundleId = txIdPeriodbundleId_example; // String | (optional) (default to null) var withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) var disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try { - // Get indexed call trace - google.api.HttpBody result = apiInstance.getCallTrace(owner, slug, chainId, txHash, chainSpecPeriodforkId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByBundle(owner, slug, chainId, bundleId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.getCallTrace: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByBundle: " + e.Message ); } } } @@ -11468,7 +11539,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -11482,24 +11553,24 @@ 

    Usage and SDK Samples

    $owner = owner_example; // String | $slug = slug_example; // String | $chainId = chainId_example; // String | -$txHash = txHash_example; // String | One of txHash, simulationId, bundleId is required. +$bundleId = bundleId_example; // String | $chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | +$txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. $txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | -$txIdPeriodbundleId = txIdPeriodbundleId_example; // String | $withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. $disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. $ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - $result = $api_instance->getCallTrace($owner, $slug, $chainId, $txHash, $chainSpecPeriodforkId, $txIdPeriodsimulationId, $txIdPeriodbundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); + $result = $api_instance->getCallTraceByBundle($owner, $slug, $chainId, $bundleId, $chainSpecPeriodforkId, $txIdPeriodtxHash, $txIdPeriodsimulationId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getCallTrace: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->getCallTraceByBundle: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -11514,24 +11585,24 @@ 

    Usage and SDK Samples

    my $owner = owner_example; # String | my $slug = slug_example; # String | my $chainId = chainId_example; # String | -my $txHash = txHash_example; # String | One of txHash, simulationId, bundleId is required. +my $bundleId = bundleId_example; # String | my $chainSpecPeriodforkId = chainSpecPeriodforkId_example; # String | +my $txIdPeriodtxHash = txIdPeriodtxHash_example; # String | One of txHash, simulationId, bundleId is required. my $txIdPeriodsimulationId = txIdPeriodsimulationId_example; # String | -my $txIdPeriodbundleId = txIdPeriodbundleId_example; # String | my $withInternalCalls = true; # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. my $disableOptimizer = true; # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. my $ignoreGasCost = true; # Boolean | Only effective when disableOptimizer=true. eval { - my $result = $api_instance->getCallTrace(owner => $owner, slug => $slug, chainId => $chainId, txHash => $txHash, chainSpecPeriodforkId => $chainSpecPeriodforkId, txIdPeriodsimulationId => $txIdPeriodsimulationId, txIdPeriodbundleId => $txIdPeriodbundleId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); + my $result = $api_instance->getCallTraceByBundle(owner => $owner, slug => $slug, chainId => $chainId, bundleId => $bundleId, chainSpecPeriodforkId => $chainSpecPeriodforkId, txIdPeriodtxHash => $txIdPeriodtxHash, txIdPeriodsimulationId => $txIdPeriodsimulationId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getCallTrace: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getCallTraceByBundle: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -11548,39 +11619,38 @@ 

    Usage and SDK Samples

    owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) chainId = chainId_example # String | (default to null) -txHash = txHash_example # String | One of txHash, simulationId, bundleId is required. (default to null) +bundleId = bundleId_example # String | (default to null) chainSpecPeriodforkId = chainSpecPeriodforkId_example # String | (optional) (default to null) +txIdPeriodtxHash = txIdPeriodtxHash_example # String | One of txHash, simulationId, bundleId is required. (optional) (default to null) txIdPeriodsimulationId = txIdPeriodsimulationId_example # String | (optional) (default to null) -txIdPeriodbundleId = txIdPeriodbundleId_example # String | (optional) (default to null) withInternalCalls = true # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) disableOptimizer = true # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try: - # Get indexed call trace - api_response = api_instance.get_call_trace(owner, slug, chainId, txHash, chainSpecPeriodforkId=chainSpecPeriodforkId, txIdPeriodsimulationId=txIdPeriodsimulationId, txIdPeriodbundleId=txIdPeriodbundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) + api_response = api_instance.get_call_trace_by_bundle(owner, slug, chainId, bundleId, chainSpecPeriodforkId=chainSpecPeriodforkId, txIdPeriodtxHash=txIdPeriodtxHash, txIdPeriodsimulationId=txIdPeriodsimulationId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->getCallTrace: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->getCallTraceByBundle: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
         let chainId = chainId_example; // String
    -    let txHash = txHash_example; // String
    +    let bundleId = bundleId_example; // String
         let chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String
    +    let txIdPeriodtxHash = txIdPeriodtxHash_example; // String
         let txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String
    -    let txIdPeriodbundleId = txIdPeriodbundleId_example; // String
         let withInternalCalls = true; // Boolean
         let disableOptimizer = true; // Boolean
         let ignoreGasCost = true; // Boolean
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.getCallTrace(owner, slug, chainId, txHash, chainSpecPeriodforkId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
    +    let result = client.getCallTraceByBundle(owner, slug, chainId, bundleId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -11605,7 +11675,7 @@ 

    Parameters

    -
    +
    @@ -11625,7 +11695,7 @@

    Parameters

    -
    +
    @@ -11645,7 +11715,7 @@

    Parameters

    -
    +
    @@ -11661,20 +11731,17 @@

    Parameters

    - tx_hash* + bundle_id* -
    +
    String -
    -One of txHash, simulationId, bundleId is required. -
    Required @@ -11699,7 +11766,7 @@

    Parameters

    -
    +
    @@ -11712,28 +11779,31 @@

    Parameters

    - txId.simulationId + txId.txHash -
    +
    String +
    +One of txHash, simulationId, bundleId is required. +
    - txId.bundleId + txId.simulationId -
    +
    @@ -11750,7 +11820,7 @@

    Parameters

    -
    +
    @@ -11770,7 +11840,7 @@

    Parameters

    -
    +
    @@ -11790,7 +11860,7 @@

    Parameters

    -
    +
    @@ -11809,23 +11879,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getCallTrace2

    -

    Get indexed call trace

    +

    getCallTraceByForkBundle

    +

    -

    API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. - -![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)

    +


    -
    /api/v1/solidity/{owner}/{slug}/{chain_id}/simulation/{simulation_id}/call_trace
    +
    /api/v1/solidity/{owner}/{slug}/fork/{fork_id}/bundle/{bundle_id}/call_trace

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation/{simulation_id}/call_trace?chainSpec.forkId=chainSpecPeriodforkId_example&txId.txHash=txIdPeriodtxHash_example&txId.bundleId=txIdPeriodbundleId_example&withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/bundle/{bundle_id}/call_trace?chainSpec.chainId=chainSpecPeriodchainId_example&txId.txHash=txIdPeriodtxHash_example&txId.simulationId=txIdPeriodsimulationId_example&withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -11957,20 +12021,20 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String chainId = chainId_example; // String | - String simulationId = simulationId_example; // String | - String chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | + String forkId = forkId_example; // String | + String bundleId = bundleId_example; // String | + String chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | String txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. - String txIdPeriodbundleId = txIdPeriodbundleId_example; // String | + String txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTrace2(owner, slug, chainId, simulationId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByForkBundle(owner, slug, forkId, bundleId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace2"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByForkBundle"); e.printStackTrace(); } } @@ -11978,33 +12042,33 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | 
     final String slug = new String(); // String | 
    -final String chainId = new String(); // String | 
    -final String simulationId = new String(); // String | 
    -final String chainSpecPeriodforkId = new String(); // String | 
    +final String forkId = new String(); // String | 
    +final String bundleId = new String(); // String | 
    +final String chainSpecPeriodchainId = new String(); // String | 
     final String txIdPeriodtxHash = new String(); // String | One of txHash, simulationId, bundleId is required.
    -final String txIdPeriodbundleId = new String(); // String | 
    +final String txIdPeriodsimulationId = new String(); // String | 
     final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
     final Boolean disableOptimizer = new Boolean(); // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
     final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true.
     
     try {
    -    final result = await api_instance.getCallTrace2(owner, slug, chainId, simulationId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
    +    final result = await api_instance.getCallTraceByForkBundle(owner, slug, forkId, bundleId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getCallTrace2: $e\n');
    +    print('Exception when calling DefaultApi->getCallTraceByForkBundle: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -12012,30 +12076,30 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String chainId = chainId_example; // String | - String simulationId = simulationId_example; // String | - String chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | + String forkId = forkId_example; // String | + String bundleId = bundleId_example; // String | + String chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | String txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. - String txIdPeriodbundleId = txIdPeriodbundleId_example; // String | + String txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTrace2(owner, slug, chainId, simulationId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByForkBundle(owner, slug, forkId, bundleId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace2"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByForkBundle"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -12048,23 +12112,22 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) -String *chainId = chainId_example; // (default to null) -String *simulationId = simulationId_example; // (default to null) -String *chainSpecPeriodforkId = chainSpecPeriodforkId_example; // (optional) (default to null) +String *forkId = forkId_example; // (default to null) +String *bundleId = bundleId_example; // (default to null) +String *chainSpecPeriodchainId = chainSpecPeriodchainId_example; // (optional) (default to null) String *txIdPeriodtxHash = txIdPeriodtxHash_example; // One of txHash, simulationId, bundleId is required. (optional) (default to null) -String *txIdPeriodbundleId = txIdPeriodbundleId_example; // (optional) (default to null) +String *txIdPeriodsimulationId = txIdPeriodsimulationId_example; // (optional) (default to null) Boolean *withInternalCalls = true; // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null) -// Get indexed call trace -[apiInstance getCallTrace2With:owner +[apiInstance getCallTraceByForkBundleWith:owner slug:slug - chainId:chainId - simulationId:simulationId - chainSpecPeriodforkId:chainSpecPeriodforkId + forkId:forkId + bundleId:bundleId + chainSpecPeriodchainId:chainSpecPeriodchainId txIdPeriodtxHash:txIdPeriodtxHash - txIdPeriodbundleId:txIdPeriodbundleId + txIdPeriodsimulationId:txIdPeriodsimulationId withInternalCalls:withInternalCalls disableOptimizer:disableOptimizer ignoreGasCost:ignoreGasCost @@ -12079,7 +12142,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -12093,12 +12156,12 @@ 

    Usage and SDK Samples

    var api = new SentioApi.DebugAndSimulationApi() var owner = owner_example; // {String} var slug = slug_example; // {String} -var chainId = chainId_example; // {String} -var simulationId = simulationId_example; // {String} +var forkId = forkId_example; // {String} +var bundleId = bundleId_example; // {String} var opts = { - 'chainSpecPeriodforkId': chainSpecPeriodforkId_example, // {String} + 'chainSpecPeriodchainId': chainSpecPeriodchainId_example, // {String} 'txIdPeriodtxHash': txIdPeriodtxHash_example, // {String} One of txHash, simulationId, bundleId is required. - 'txIdPeriodbundleId': txIdPeriodbundleId_example, // {String} + 'txIdPeriodsimulationId': txIdPeriodsimulationId_example, // {String} 'withInternalCalls': true, // {Boolean} Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. 'disableOptimizer': true, // {Boolean} Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. 'ignoreGasCost': true // {Boolean} Only effective when disableOptimizer=true. @@ -12111,14 +12174,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getCallTrace2(owner, slug, chainId, simulationId, opts, callback); +api.getCallTraceByForkBundle(owner, slug, forkId, bundleId, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -12127,7 +12190,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getCallTrace2Example + public class getCallTraceByForkBundleExample { public void main() { @@ -12140,21 +12203,20 @@

    Usage and SDK Samples

    var apiInstance = new DebugAndSimulationApi(); var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) - var chainId = chainId_example; // String | (default to null) - var simulationId = simulationId_example; // String | (default to null) - var chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | (optional) (default to null) + var forkId = forkId_example; // String | (default to null) + var bundleId = bundleId_example; // String | (default to null) + var chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | (optional) (default to null) var txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. (optional) (default to null) - var txIdPeriodbundleId = txIdPeriodbundleId_example; // String | (optional) (default to null) + var txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | (optional) (default to null) var withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) var disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try { - // Get indexed call trace - google.api.HttpBody result = apiInstance.getCallTrace2(owner, slug, chainId, simulationId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByForkBundle(owner, slug, forkId, bundleId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.getCallTrace2: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByForkBundle: " + e.Message ); } } } @@ -12162,7 +12224,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -12175,25 +12237,25 @@ 

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); $owner = owner_example; // String | $slug = slug_example; // String | -$chainId = chainId_example; // String | -$simulationId = simulationId_example; // String | -$chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | +$forkId = forkId_example; // String | +$bundleId = bundleId_example; // String | +$chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | $txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. -$txIdPeriodbundleId = txIdPeriodbundleId_example; // String | +$txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | $withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. $disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. $ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - $result = $api_instance->getCallTrace2($owner, $slug, $chainId, $simulationId, $chainSpecPeriodforkId, $txIdPeriodtxHash, $txIdPeriodbundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); + $result = $api_instance->getCallTraceByForkBundle($owner, $slug, $forkId, $bundleId, $chainSpecPeriodchainId, $txIdPeriodtxHash, $txIdPeriodsimulationId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getCallTrace2: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->getCallTraceByForkBundle: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -12207,25 +12269,25 @@ 

    Usage and SDK Samples

    my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); my $owner = owner_example; # String | my $slug = slug_example; # String | -my $chainId = chainId_example; # String | -my $simulationId = simulationId_example; # String | -my $chainSpecPeriodforkId = chainSpecPeriodforkId_example; # String | +my $forkId = forkId_example; # String | +my $bundleId = bundleId_example; # String | +my $chainSpecPeriodchainId = chainSpecPeriodchainId_example; # String | my $txIdPeriodtxHash = txIdPeriodtxHash_example; # String | One of txHash, simulationId, bundleId is required. -my $txIdPeriodbundleId = txIdPeriodbundleId_example; # String | +my $txIdPeriodsimulationId = txIdPeriodsimulationId_example; # String | my $withInternalCalls = true; # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. my $disableOptimizer = true; # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. my $ignoreGasCost = true; # Boolean | Only effective when disableOptimizer=true. eval { - my $result = $api_instance->getCallTrace2(owner => $owner, slug => $slug, chainId => $chainId, simulationId => $simulationId, chainSpecPeriodforkId => $chainSpecPeriodforkId, txIdPeriodtxHash => $txIdPeriodtxHash, txIdPeriodbundleId => $txIdPeriodbundleId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); + my $result = $api_instance->getCallTraceByForkBundle(owner => $owner, slug => $slug, forkId => $forkId, bundleId => $bundleId, chainSpecPeriodchainId => $chainSpecPeriodchainId, txIdPeriodtxHash => $txIdPeriodtxHash, txIdPeriodsimulationId => $txIdPeriodsimulationId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getCallTrace2: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getCallTraceByForkBundle: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -12241,40 +12303,39 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DebugAndSimulationApi() owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) -chainId = chainId_example # String | (default to null) -simulationId = simulationId_example # String | (default to null) -chainSpecPeriodforkId = chainSpecPeriodforkId_example # String | (optional) (default to null) +forkId = forkId_example # String | (default to null) +bundleId = bundleId_example # String | (default to null) +chainSpecPeriodchainId = chainSpecPeriodchainId_example # String | (optional) (default to null) txIdPeriodtxHash = txIdPeriodtxHash_example # String | One of txHash, simulationId, bundleId is required. (optional) (default to null) -txIdPeriodbundleId = txIdPeriodbundleId_example # String | (optional) (default to null) +txIdPeriodsimulationId = txIdPeriodsimulationId_example # String | (optional) (default to null) withInternalCalls = true # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) disableOptimizer = true # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try: - # Get indexed call trace - api_response = api_instance.get_call_trace2(owner, slug, chainId, simulationId, chainSpecPeriodforkId=chainSpecPeriodforkId, txIdPeriodtxHash=txIdPeriodtxHash, txIdPeriodbundleId=txIdPeriodbundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) + api_response = api_instance.get_call_trace_by_fork_bundle(owner, slug, forkId, bundleId, chainSpecPeriodchainId=chainSpecPeriodchainId, txIdPeriodtxHash=txIdPeriodtxHash, txIdPeriodsimulationId=txIdPeriodsimulationId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->getCallTrace2: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->getCallTraceByForkBundle: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let chainId = chainId_example; // String
    -    let simulationId = simulationId_example; // String
    -    let chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String
    +    let forkId = forkId_example; // String
    +    let bundleId = bundleId_example; // String
    +    let chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String
         let txIdPeriodtxHash = txIdPeriodtxHash_example; // String
    -    let txIdPeriodbundleId = txIdPeriodbundleId_example; // String
    +    let txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String
         let withInternalCalls = true; // Boolean
         let disableOptimizer = true; // Boolean
         let ignoreGasCost = true; // Boolean
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.getCallTrace2(owner, slug, chainId, simulationId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
    +    let result = client.getCallTraceByForkBundle(owner, slug, forkId, bundleId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -12299,7 +12360,7 @@ 

    Parameters

    -
    +
    @@ -12319,7 +12380,7 @@

    Parameters

    -
    +
    @@ -12335,11 +12396,11 @@

    Parameters

    - chain_id* + fork_id* -
    +
    @@ -12355,11 +12416,11 @@

    Parameters

    - simulation_id* + bundle_id* -
    +
    @@ -12386,11 +12447,11 @@

    Parameters

    Name Description - chainSpec.forkId + chainSpec.chainId -
    +
    @@ -12407,7 +12468,7 @@

    Parameters

    -
    +
    @@ -12423,11 +12484,11 @@

    Parameters

    - txId.bundleId + txId.simulationId -
    +
    @@ -12444,7 +12505,7 @@

    Parameters

    -
    +
    @@ -12464,7 +12525,7 @@

    Parameters

    -
    +
    @@ -12484,7 +12545,7 @@

    Parameters

    -
    +
    @@ -12503,23 +12564,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getCallTrace3

    -

    Get indexed call trace

    +

    getCallTraceByForkSimulation

    +

    -

    API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. - -![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)

    +


    -
    /api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle/{bundle_id}/call_trace
    +
    /api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation/{simulation_id}/call_trace

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle/{bundle_id}/call_trace?chainSpec.forkId=chainSpecPeriodforkId_example&txId.txHash=txIdPeriodtxHash_example&txId.simulationId=txIdPeriodsimulationId_example&withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation/{simulation_id}/call_trace?chainSpec.chainId=chainSpecPeriodchainId_example&txId.txHash=txIdPeriodtxHash_example&txId.bundleId=txIdPeriodbundleId_example&withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -12651,20 +12706,20 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String chainId = chainId_example; // String | - String bundleId = bundleId_example; // String | - String chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | + String forkId = forkId_example; // String | + String simulationId = simulationId_example; // String | + String chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | String txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. - String txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | + String txIdPeriodbundleId = txIdPeriodbundleId_example; // String | Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTrace3(owner, slug, chainId, bundleId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByForkSimulation(owner, slug, forkId, simulationId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace3"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByForkSimulation"); e.printStackTrace(); } } @@ -12672,33 +12727,33 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | 
     final String slug = new String(); // String | 
    -final String chainId = new String(); // String | 
    -final String bundleId = new String(); // String | 
    -final String chainSpecPeriodforkId = new String(); // String | 
    +final String forkId = new String(); // String | 
    +final String simulationId = new String(); // String | 
    +final String chainSpecPeriodchainId = new String(); // String | 
     final String txIdPeriodtxHash = new String(); // String | One of txHash, simulationId, bundleId is required.
    -final String txIdPeriodsimulationId = new String(); // String | 
    +final String txIdPeriodbundleId = new String(); // String | 
     final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
     final Boolean disableOptimizer = new Boolean(); // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
     final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true.
     
     try {
    -    final result = await api_instance.getCallTrace3(owner, slug, chainId, bundleId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
    +    final result = await api_instance.getCallTraceByForkSimulation(owner, slug, forkId, simulationId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getCallTrace3: $e\n');
    +    print('Exception when calling DefaultApi->getCallTraceByForkSimulation: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -12706,30 +12761,30 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String chainId = chainId_example; // String | - String bundleId = bundleId_example; // String | - String chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | + String forkId = forkId_example; // String | + String simulationId = simulationId_example; // String | + String chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | String txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. - String txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | + String txIdPeriodbundleId = txIdPeriodbundleId_example; // String | Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTrace3(owner, slug, chainId, bundleId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByForkSimulation(owner, slug, forkId, simulationId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace3"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByForkSimulation"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -12742,23 +12797,22 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) -String *chainId = chainId_example; // (default to null) -String *bundleId = bundleId_example; // (default to null) -String *chainSpecPeriodforkId = chainSpecPeriodforkId_example; // (optional) (default to null) +String *forkId = forkId_example; // (default to null) +String *simulationId = simulationId_example; // (default to null) +String *chainSpecPeriodchainId = chainSpecPeriodchainId_example; // (optional) (default to null) String *txIdPeriodtxHash = txIdPeriodtxHash_example; // One of txHash, simulationId, bundleId is required. (optional) (default to null) -String *txIdPeriodsimulationId = txIdPeriodsimulationId_example; // (optional) (default to null) +String *txIdPeriodbundleId = txIdPeriodbundleId_example; // (optional) (default to null) Boolean *withInternalCalls = true; // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null) -// Get indexed call trace -[apiInstance getCallTrace3With:owner +[apiInstance getCallTraceByForkSimulationWith:owner slug:slug - chainId:chainId - bundleId:bundleId - chainSpecPeriodforkId:chainSpecPeriodforkId + forkId:forkId + simulationId:simulationId + chainSpecPeriodchainId:chainSpecPeriodchainId txIdPeriodtxHash:txIdPeriodtxHash - txIdPeriodsimulationId:txIdPeriodsimulationId + txIdPeriodbundleId:txIdPeriodbundleId withInternalCalls:withInternalCalls disableOptimizer:disableOptimizer ignoreGasCost:ignoreGasCost @@ -12773,7 +12827,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -12787,12 +12841,12 @@ 

    Usage and SDK Samples

    var api = new SentioApi.DebugAndSimulationApi() var owner = owner_example; // {String} var slug = slug_example; // {String} -var chainId = chainId_example; // {String} -var bundleId = bundleId_example; // {String} +var forkId = forkId_example; // {String} +var simulationId = simulationId_example; // {String} var opts = { - 'chainSpecPeriodforkId': chainSpecPeriodforkId_example, // {String} + 'chainSpecPeriodchainId': chainSpecPeriodchainId_example, // {String} 'txIdPeriodtxHash': txIdPeriodtxHash_example, // {String} One of txHash, simulationId, bundleId is required. - 'txIdPeriodsimulationId': txIdPeriodsimulationId_example, // {String} + 'txIdPeriodbundleId': txIdPeriodbundleId_example, // {String} 'withInternalCalls': true, // {Boolean} Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. 'disableOptimizer': true, // {Boolean} Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. 'ignoreGasCost': true // {Boolean} Only effective when disableOptimizer=true. @@ -12805,14 +12859,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getCallTrace3(owner, slug, chainId, bundleId, opts, callback); +api.getCallTraceByForkSimulation(owner, slug, forkId, simulationId, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -12821,7 +12875,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getCallTrace3Example + public class getCallTraceByForkSimulationExample { public void main() { @@ -12834,21 +12888,20 @@

    Usage and SDK Samples

    var apiInstance = new DebugAndSimulationApi(); var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) - var chainId = chainId_example; // String | (default to null) - var bundleId = bundleId_example; // String | (default to null) - var chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | (optional) (default to null) + var forkId = forkId_example; // String | (default to null) + var simulationId = simulationId_example; // String | (default to null) + var chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | (optional) (default to null) var txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. (optional) (default to null) - var txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | (optional) (default to null) + var txIdPeriodbundleId = txIdPeriodbundleId_example; // String | (optional) (default to null) var withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) var disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try { - // Get indexed call trace - google.api.HttpBody result = apiInstance.getCallTrace3(owner, slug, chainId, bundleId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByForkSimulation(owner, slug, forkId, simulationId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.getCallTrace3: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByForkSimulation: " + e.Message ); } } } @@ -12856,7 +12909,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -12869,25 +12922,25 @@ 

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); $owner = owner_example; // String | $slug = slug_example; // String | -$chainId = chainId_example; // String | -$bundleId = bundleId_example; // String | -$chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | +$forkId = forkId_example; // String | +$simulationId = simulationId_example; // String | +$chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | $txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. -$txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | +$txIdPeriodbundleId = txIdPeriodbundleId_example; // String | $withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. $disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. $ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - $result = $api_instance->getCallTrace3($owner, $slug, $chainId, $bundleId, $chainSpecPeriodforkId, $txIdPeriodtxHash, $txIdPeriodsimulationId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); + $result = $api_instance->getCallTraceByForkSimulation($owner, $slug, $forkId, $simulationId, $chainSpecPeriodchainId, $txIdPeriodtxHash, $txIdPeriodbundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getCallTrace3: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->getCallTraceByForkSimulation: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -12901,25 +12954,25 @@ 

    Usage and SDK Samples

    my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); my $owner = owner_example; # String | my $slug = slug_example; # String | -my $chainId = chainId_example; # String | -my $bundleId = bundleId_example; # String | -my $chainSpecPeriodforkId = chainSpecPeriodforkId_example; # String | +my $forkId = forkId_example; # String | +my $simulationId = simulationId_example; # String | +my $chainSpecPeriodchainId = chainSpecPeriodchainId_example; # String | my $txIdPeriodtxHash = txIdPeriodtxHash_example; # String | One of txHash, simulationId, bundleId is required. -my $txIdPeriodsimulationId = txIdPeriodsimulationId_example; # String | +my $txIdPeriodbundleId = txIdPeriodbundleId_example; # String | my $withInternalCalls = true; # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. my $disableOptimizer = true; # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. my $ignoreGasCost = true; # Boolean | Only effective when disableOptimizer=true. eval { - my $result = $api_instance->getCallTrace3(owner => $owner, slug => $slug, chainId => $chainId, bundleId => $bundleId, chainSpecPeriodforkId => $chainSpecPeriodforkId, txIdPeriodtxHash => $txIdPeriodtxHash, txIdPeriodsimulationId => $txIdPeriodsimulationId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); + my $result = $api_instance->getCallTraceByForkSimulation(owner => $owner, slug => $slug, forkId => $forkId, simulationId => $simulationId, chainSpecPeriodchainId => $chainSpecPeriodchainId, txIdPeriodtxHash => $txIdPeriodtxHash, txIdPeriodbundleId => $txIdPeriodbundleId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getCallTrace3: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getCallTraceByForkSimulation: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -12935,40 +12988,39 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DebugAndSimulationApi() owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) -chainId = chainId_example # String | (default to null) -bundleId = bundleId_example # String | (default to null) -chainSpecPeriodforkId = chainSpecPeriodforkId_example # String | (optional) (default to null) +forkId = forkId_example # String | (default to null) +simulationId = simulationId_example # String | (default to null) +chainSpecPeriodchainId = chainSpecPeriodchainId_example # String | (optional) (default to null) txIdPeriodtxHash = txIdPeriodtxHash_example # String | One of txHash, simulationId, bundleId is required. (optional) (default to null) -txIdPeriodsimulationId = txIdPeriodsimulationId_example # String | (optional) (default to null) +txIdPeriodbundleId = txIdPeriodbundleId_example # String | (optional) (default to null) withInternalCalls = true # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) disableOptimizer = true # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try: - # Get indexed call trace - api_response = api_instance.get_call_trace3(owner, slug, chainId, bundleId, chainSpecPeriodforkId=chainSpecPeriodforkId, txIdPeriodtxHash=txIdPeriodtxHash, txIdPeriodsimulationId=txIdPeriodsimulationId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) + api_response = api_instance.get_call_trace_by_fork_simulation(owner, slug, forkId, simulationId, chainSpecPeriodchainId=chainSpecPeriodchainId, txIdPeriodtxHash=txIdPeriodtxHash, txIdPeriodbundleId=txIdPeriodbundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->getCallTrace3: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->getCallTraceByForkSimulation: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let chainId = chainId_example; // String
    -    let bundleId = bundleId_example; // String
    -    let chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String
    +    let forkId = forkId_example; // String
    +    let simulationId = simulationId_example; // String
    +    let chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String
         let txIdPeriodtxHash = txIdPeriodtxHash_example; // String
    -    let txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String
    +    let txIdPeriodbundleId = txIdPeriodbundleId_example; // String
         let withInternalCalls = true; // Boolean
         let disableOptimizer = true; // Boolean
         let ignoreGasCost = true; // Boolean
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.getCallTrace3(owner, slug, chainId, bundleId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
    +    let result = client.getCallTraceByForkSimulation(owner, slug, forkId, simulationId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -12993,7 +13045,7 @@ 

    Parameters

    -
    +
    @@ -13013,7 +13065,7 @@

    Parameters

    -
    +
    @@ -13029,11 +13081,11 @@

    Parameters

    - chain_id* + fork_id* -
    +
    @@ -13049,11 +13101,11 @@

    Parameters

    - bundle_id* + simulation_id* -
    +
    @@ -13080,11 +13132,11 @@

    Parameters

    Name Description - chainSpec.forkId + chainSpec.chainId -
    +
    @@ -13101,7 +13153,7 @@

    Parameters

    -
    +
    @@ -13117,11 +13169,11 @@

    Parameters

    - txId.simulationId + txId.bundleId -
    +
    @@ -13138,7 +13190,7 @@

    Parameters

    -
    +
    @@ -13158,7 +13210,7 @@

    Parameters

    -
    +
    @@ -13178,7 +13230,7 @@

    Parameters

    -
    +
    @@ -13197,23 +13249,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getCallTrace4

    -

    Get indexed call trace

    +

    getCallTraceByForkTransaction

    +

    -

    API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. - -![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)

    +


    /api/v1/solidity/{owner}/{slug}/fork/{fork_id}/transaction/{tx_hash}/call_trace
    @@ -13299,30 +13345,30 @@

    getCallTrace4

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
      "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/transaction/{tx_hash}/call_trace?chainSpec.chainId=chainSpecPeriodchainId_example&txId.simulationId=txIdPeriodsimulationId_example&txId.bundleId=txIdPeriodbundleId_example&withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -13355,10 +13401,10 @@ 

    Usage and SDK Samples

    Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTrace4(owner, slug, forkId, txHash, chainSpecPeriodchainId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByForkTransaction(owner, slug, forkId, txHash, chainSpecPeriodchainId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace4"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByForkTransaction"); e.printStackTrace(); } } @@ -13366,7 +13412,7 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
    @@ -13383,16 +13429,16 @@ 

    Usage and SDK Samples

    final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true. try { - final result = await api_instance.getCallTrace4(owner, slug, forkId, txHash, chainSpecPeriodchainId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + final result = await api_instance.getCallTraceByForkTransaction(owner, slug, forkId, txHash, chainSpecPeriodchainId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); print(result); } catch (e) { - print('Exception when calling DefaultApi->getCallTrace4: $e\n'); + print('Exception when calling DefaultApi->getCallTraceByForkTransaction: $e\n'); }
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -13410,20 +13456,20 @@ 

    Usage and SDK Samples

    Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTrace4(owner, slug, forkId, txHash, chainSpecPeriodchainId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByForkTransaction(owner, slug, forkId, txHash, chainSpecPeriodchainId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace4"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByForkTransaction"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -13445,8 +13491,7 @@ 

    Usage and SDK Samples

    Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null) -// Get indexed call trace -[apiInstance getCallTrace4With:owner +[apiInstance getCallTraceByForkTransactionWith:owner slug:slug forkId:forkId txHash:txHash @@ -13467,7 +13512,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -13499,14 +13544,14 @@ 

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getCallTrace4(owner, slug, forkId, txHash, opts, callback); +api.getCallTraceByForkTransaction(owner, slug, forkId, txHash, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -13515,7 +13560,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getCallTrace4Example + public class getCallTraceByForkTransactionExample { public void main() { @@ -13538,11 +13583,10 @@

    Usage and SDK Samples

    var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try { - // Get indexed call trace - google.api.HttpBody result = apiInstance.getCallTrace4(owner, slug, forkId, txHash, chainSpecPeriodchainId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByForkTransaction(owner, slug, forkId, txHash, chainSpecPeriodchainId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.getCallTrace4: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByForkTransaction: " + e.Message ); } } } @@ -13550,7 +13594,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -13573,15 +13617,15 @@ 

    Usage and SDK Samples

    $ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - $result = $api_instance->getCallTrace4($owner, $slug, $forkId, $txHash, $chainSpecPeriodchainId, $txIdPeriodsimulationId, $txIdPeriodbundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); + $result = $api_instance->getCallTraceByForkTransaction($owner, $slug, $forkId, $txHash, $chainSpecPeriodchainId, $txIdPeriodsimulationId, $txIdPeriodbundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getCallTrace4: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->getCallTraceByForkTransaction: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -13605,15 +13649,15 @@ 

    Usage and SDK Samples

    my $ignoreGasCost = true; # Boolean | Only effective when disableOptimizer=true. eval { - my $result = $api_instance->getCallTrace4(owner => $owner, slug => $slug, forkId => $forkId, txHash => $txHash, chainSpecPeriodchainId => $chainSpecPeriodchainId, txIdPeriodsimulationId => $txIdPeriodsimulationId, txIdPeriodbundleId => $txIdPeriodbundleId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); + my $result = $api_instance->getCallTraceByForkTransaction(owner => $owner, slug => $slug, forkId => $forkId, txHash => $txHash, chainSpecPeriodchainId => $chainSpecPeriodchainId, txIdPeriodsimulationId => $txIdPeriodsimulationId, txIdPeriodbundleId => $txIdPeriodbundleId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getCallTrace4: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getCallTraceByForkTransaction: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -13639,14 +13683,13 @@ 

    Usage and SDK Samples

    ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try: - # Get indexed call trace - api_response = api_instance.get_call_trace4(owner, slug, forkId, txHash, chainSpecPeriodchainId=chainSpecPeriodchainId, txIdPeriodsimulationId=txIdPeriodsimulationId, txIdPeriodbundleId=txIdPeriodbundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) + api_response = api_instance.get_call_trace_by_fork_transaction(owner, slug, forkId, txHash, chainSpecPeriodchainId=chainSpecPeriodchainId, txIdPeriodsimulationId=txIdPeriodsimulationId, txIdPeriodbundleId=txIdPeriodbundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->getCallTrace4: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->getCallTraceByForkTransaction: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
    @@ -13662,7 +13705,7 @@ 

    Usage and SDK Samples

    let ignoreGasCost = true; // Boolean let mut context = DebugAndSimulationApi::Context::default(); - let result = client.getCallTrace4(owner, slug, forkId, txHash, chainSpecPeriodchainId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait(); + let result = client.getCallTraceByForkTransaction(owner, slug, forkId, txHash, chainSpecPeriodchainId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait(); println!("{:?}", result); } @@ -13687,7 +13730,7 @@

    Parameters

    -
    +
    @@ -13707,7 +13750,7 @@

    Parameters

    -
    +
    @@ -13727,7 +13770,7 @@

    Parameters

    -
    +
    @@ -13747,7 +13790,7 @@

    Parameters

    -
    +
    @@ -13781,7 +13824,7 @@

    Parameters

    -
    +
    @@ -13798,7 +13841,7 @@

    Parameters

    -
    +
    @@ -13815,7 +13858,7 @@

    Parameters

    -
    +
    @@ -13832,7 +13875,7 @@

    Parameters

    -
    +
    @@ -13852,7 +13895,7 @@

    Parameters

    -
    +
    @@ -13872,7 +13915,7 @@

    Parameters

    -
    +
    @@ -13891,23 +13934,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getCallTrace5

    -

    Get indexed call trace

    +

    getCallTraceBySimulation

    +

    -

    API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. - -![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)

    +


    -
    /api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation/{simulation_id}/call_trace
    +
    /api/v1/solidity/{owner}/{slug}/{chain_id}/simulation/{simulation_id}/call_trace

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation/{simulation_id}/call_trace?chainSpec.chainId=chainSpecPeriodchainId_example&txId.txHash=txIdPeriodtxHash_example&txId.bundleId=txIdPeriodbundleId_example&withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation/{simulation_id}/call_trace?chainSpec.forkId=chainSpecPeriodforkId_example&txId.txHash=txIdPeriodtxHash_example&txId.bundleId=txIdPeriodbundleId_example&withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -14039,9 +14076,9 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String forkId = forkId_example; // String | + String chainId = chainId_example; // String | String simulationId = simulationId_example; // String | - String chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | + String chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | String txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. String txIdPeriodbundleId = txIdPeriodbundleId_example; // String | Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. @@ -14049,10 +14086,10 @@

    Usage and SDK Samples

    Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTrace5(owner, slug, forkId, simulationId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace5"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation"); e.printStackTrace(); } } @@ -14060,16 +14097,16 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | 
     final String slug = new String(); // String | 
    -final String forkId = new String(); // String | 
    +final String chainId = new String(); // String | 
     final String simulationId = new String(); // String | 
    -final String chainSpecPeriodchainId = new String(); // String | 
    +final String chainSpecPeriodforkId = new String(); // String | 
     final String txIdPeriodtxHash = new String(); // String | One of txHash, simulationId, bundleId is required.
     final String txIdPeriodbundleId = new String(); // String | 
     final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
    @@ -14077,16 +14114,16 @@ 

    Usage and SDK Samples

    final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true. try { - final result = await api_instance.getCallTrace5(owner, slug, forkId, simulationId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + final result = await api_instance.getCallTraceBySimulation(owner, slug, chainId, simulationId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); print(result); } catch (e) { - print('Exception when calling DefaultApi->getCallTrace5: $e\n'); + print('Exception when calling DefaultApi->getCallTraceBySimulation: $e\n'); }
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -14094,9 +14131,9 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String forkId = forkId_example; // String | + String chainId = chainId_example; // String | String simulationId = simulationId_example; // String | - String chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | + String chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | String txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. String txIdPeriodbundleId = txIdPeriodbundleId_example; // String | Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. @@ -14104,20 +14141,20 @@

    Usage and SDK Samples

    Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTrace5(owner, slug, forkId, simulationId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace5"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceBySimulation"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -14130,21 +14167,20 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) -String *forkId = forkId_example; // (default to null) +String *chainId = chainId_example; // (default to null) String *simulationId = simulationId_example; // (default to null) -String *chainSpecPeriodchainId = chainSpecPeriodchainId_example; // (optional) (default to null) +String *chainSpecPeriodforkId = chainSpecPeriodforkId_example; // (optional) (default to null) String *txIdPeriodtxHash = txIdPeriodtxHash_example; // One of txHash, simulationId, bundleId is required. (optional) (default to null) String *txIdPeriodbundleId = txIdPeriodbundleId_example; // (optional) (default to null) Boolean *withInternalCalls = true; // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null) -// Get indexed call trace -[apiInstance getCallTrace5With:owner +[apiInstance getCallTraceBySimulationWith:owner slug:slug - forkId:forkId + chainId:chainId simulationId:simulationId - chainSpecPeriodchainId:chainSpecPeriodchainId + chainSpecPeriodforkId:chainSpecPeriodforkId txIdPeriodtxHash:txIdPeriodtxHash txIdPeriodbundleId:txIdPeriodbundleId withInternalCalls:withInternalCalls @@ -14161,7 +14197,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -14175,10 +14211,10 @@ 

    Usage and SDK Samples

    var api = new SentioApi.DebugAndSimulationApi() var owner = owner_example; // {String} var slug = slug_example; // {String} -var forkId = forkId_example; // {String} +var chainId = chainId_example; // {String} var simulationId = simulationId_example; // {String} var opts = { - 'chainSpecPeriodchainId': chainSpecPeriodchainId_example, // {String} + 'chainSpecPeriodforkId': chainSpecPeriodforkId_example, // {String} 'txIdPeriodtxHash': txIdPeriodtxHash_example, // {String} One of txHash, simulationId, bundleId is required. 'txIdPeriodbundleId': txIdPeriodbundleId_example, // {String} 'withInternalCalls': true, // {Boolean} Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. @@ -14193,14 +14229,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getCallTrace5(owner, slug, forkId, simulationId, opts, callback); +api.getCallTraceBySimulation(owner, slug, chainId, simulationId, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -14209,7 +14245,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getCallTrace5Example + public class getCallTraceBySimulationExample { public void main() { @@ -14222,9 +14258,9 @@

    Usage and SDK Samples

    var apiInstance = new DebugAndSimulationApi(); var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) - var forkId = forkId_example; // String | (default to null) + var chainId = chainId_example; // String | (default to null) var simulationId = simulationId_example; // String | (default to null) - var chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | (optional) (default to null) + var chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | (optional) (default to null) var txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. (optional) (default to null) var txIdPeriodbundleId = txIdPeriodbundleId_example; // String | (optional) (default to null) var withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) @@ -14232,11 +14268,10 @@

    Usage and SDK Samples

    var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try { - // Get indexed call trace - google.api.HttpBody result = apiInstance.getCallTrace5(owner, slug, forkId, simulationId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceBySimulation(owner, slug, chainId, simulationId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.getCallTrace5: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceBySimulation: " + e.Message ); } } } @@ -14244,7 +14279,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -14257,9 +14292,9 @@ 

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); $owner = owner_example; // String | $slug = slug_example; // String | -$forkId = forkId_example; // String | +$chainId = chainId_example; // String | $simulationId = simulationId_example; // String | -$chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | +$chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | $txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. $txIdPeriodbundleId = txIdPeriodbundleId_example; // String | $withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. @@ -14267,15 +14302,15 @@

    Usage and SDK Samples

    $ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - $result = $api_instance->getCallTrace5($owner, $slug, $forkId, $simulationId, $chainSpecPeriodchainId, $txIdPeriodtxHash, $txIdPeriodbundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); + $result = $api_instance->getCallTraceBySimulation($owner, $slug, $chainId, $simulationId, $chainSpecPeriodforkId, $txIdPeriodtxHash, $txIdPeriodbundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getCallTrace5: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -14289,9 +14324,9 @@ 

    Usage and SDK Samples

    my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); my $owner = owner_example; # String | my $slug = slug_example; # String | -my $forkId = forkId_example; # String | +my $chainId = chainId_example; # String | my $simulationId = simulationId_example; # String | -my $chainSpecPeriodchainId = chainSpecPeriodchainId_example; # String | +my $chainSpecPeriodforkId = chainSpecPeriodforkId_example; # String | my $txIdPeriodtxHash = txIdPeriodtxHash_example; # String | One of txHash, simulationId, bundleId is required. my $txIdPeriodbundleId = txIdPeriodbundleId_example; # String | my $withInternalCalls = true; # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. @@ -14299,15 +14334,15 @@

    Usage and SDK Samples

    my $ignoreGasCost = true; # Boolean | Only effective when disableOptimizer=true. eval { - my $result = $api_instance->getCallTrace5(owner => $owner, slug => $slug, forkId => $forkId, simulationId => $simulationId, chainSpecPeriodchainId => $chainSpecPeriodchainId, txIdPeriodtxHash => $txIdPeriodtxHash, txIdPeriodbundleId => $txIdPeriodbundleId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); + my $result = $api_instance->getCallTraceBySimulation(owner => $owner, slug => $slug, chainId => $chainId, simulationId => $simulationId, chainSpecPeriodforkId => $chainSpecPeriodforkId, txIdPeriodtxHash => $txIdPeriodtxHash, txIdPeriodbundleId => $txIdPeriodbundleId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getCallTrace5: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -14323,9 +14358,9 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DebugAndSimulationApi() owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) -forkId = forkId_example # String | (default to null) +chainId = chainId_example # String | (default to null) simulationId = simulationId_example # String | (default to null) -chainSpecPeriodchainId = chainSpecPeriodchainId_example # String | (optional) (default to null) +chainSpecPeriodforkId = chainSpecPeriodforkId_example # String | (optional) (default to null) txIdPeriodtxHash = txIdPeriodtxHash_example # String | One of txHash, simulationId, bundleId is required. (optional) (default to null) txIdPeriodbundleId = txIdPeriodbundleId_example # String | (optional) (default to null) withInternalCalls = true # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) @@ -14333,22 +14368,21 @@

    Usage and SDK Samples

    ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try: - # Get indexed call trace - api_response = api_instance.get_call_trace5(owner, slug, forkId, simulationId, chainSpecPeriodchainId=chainSpecPeriodchainId, txIdPeriodtxHash=txIdPeriodtxHash, txIdPeriodbundleId=txIdPeriodbundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) + api_response = api_instance.get_call_trace_by_simulation(owner, slug, chainId, simulationId, chainSpecPeriodforkId=chainSpecPeriodforkId, txIdPeriodtxHash=txIdPeriodtxHash, txIdPeriodbundleId=txIdPeriodbundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->getCallTrace5: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->getCallTraceBySimulation: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let forkId = forkId_example; // String
    +    let chainId = chainId_example; // String
         let simulationId = simulationId_example; // String
    -    let chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String
    +    let chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String
         let txIdPeriodtxHash = txIdPeriodtxHash_example; // String
         let txIdPeriodbundleId = txIdPeriodbundleId_example; // String
         let withInternalCalls = true; // Boolean
    @@ -14356,7 +14390,7 @@ 

    Usage and SDK Samples

    let ignoreGasCost = true; // Boolean let mut context = DebugAndSimulationApi::Context::default(); - let result = client.getCallTrace5(owner, slug, forkId, simulationId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait(); + let result = client.getCallTraceBySimulation(owner, slug, chainId, simulationId, chainSpecPeriodforkId, txIdPeriodtxHash, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait(); println!("{:?}", result); } @@ -14381,7 +14415,7 @@

    Parameters

    -
    +
    @@ -14401,7 +14435,7 @@

    Parameters

    -
    +
    @@ -14417,11 +14451,11 @@

    Parameters

    - fork_id* + chain_id* -
    +
    @@ -14441,7 +14475,7 @@

    Parameters

    -
    +
    @@ -14468,11 +14502,11 @@

    Parameters

    Name Description - chainSpec.chainId + chainSpec.forkId -
    +
    @@ -14489,7 +14523,7 @@

    Parameters

    -
    +
    @@ -14509,7 +14543,7 @@

    Parameters

    -
    +
    @@ -14526,7 +14560,7 @@

    Parameters

    -
    +
    @@ -14546,7 +14580,7 @@

    Parameters

    -
    +
    @@ -14566,7 +14600,7 @@

    Parameters

    -
    +
    @@ -14585,23 +14619,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    getCallTrace6

    +

    getCallTraceByTransaction

    Get indexed call trace

    -

    API to get Sentio call trace. It takes `txId.txHash` and `networkId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID. +

    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. @@ -14682,35 +14716,35 @@

    getCallTrace6

    ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)


    -
    /api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle/{bundle_id}/call_trace
    +
    /api/v1/solidity/{owner}/{slug}/{chain_id}/transaction/{tx_hash}/call_trace

    Usage and SDK Samples

    -
    +
    curl -X GET \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle/{bundle_id}/call_trace?chainSpec.chainId=chainSpecPeriodchainId_example&txId.txHash=txIdPeriodtxHash_example&txId.simulationId=txIdPeriodsimulationId_example&withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chain_id}/transaction/{tx_hash}/call_trace?chainSpec.forkId=chainSpecPeriodforkId_example&txId.simulationId=txIdPeriodsimulationId_example&txId.bundleId=txIdPeriodbundleId_example&withInternalCalls=true&disableOptimizer=true&ignoreGasCost=true"
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -14733,20 +14767,20 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String forkId = forkId_example; // String | - String bundleId = bundleId_example; // String | - String chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | - String txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. + String chainId = chainId_example; // String | + String txHash = txHash_example; // String | One of txHash, simulationId, bundleId is required. + String chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | String txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | + String txIdPeriodbundleId = txIdPeriodbundleId_example; // String | Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTrace6(owner, slug, forkId, bundleId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, chainSpecPeriodforkId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace6"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByTransaction"); e.printStackTrace(); } } @@ -14754,33 +14788,33 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | 
     final String slug = new String(); // String | 
    -final String forkId = new String(); // String | 
    -final String bundleId = new String(); // String | 
    -final String chainSpecPeriodchainId = new String(); // String | 
    -final String txIdPeriodtxHash = new String(); // String | One of txHash, simulationId, bundleId is required.
    +final String chainId = new String(); // String | 
    +final String txHash = new String(); // String | One of txHash, simulationId, bundleId is required.
    +final String chainSpecPeriodforkId = new String(); // String | 
     final String txIdPeriodsimulationId = new String(); // String | 
    +final String txIdPeriodbundleId = new String(); // String | 
     final Boolean withInternalCalls = new Boolean(); // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace.
     final Boolean disableOptimizer = new Boolean(); // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution.
     final Boolean ignoreGasCost = new Boolean(); // Boolean | Only effective when disableOptimizer=true.
     
     try {
    -    final result = await api_instance.getCallTrace6(owner, slug, forkId, bundleId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost);
    +    final result = await api_instance.getCallTraceByTransaction(owner, slug, chainId, txHash, chainSpecPeriodforkId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->getCallTrace6: $e\n');
    +    print('Exception when calling DefaultApi->getCallTraceByTransaction: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -14788,30 +14822,30 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String forkId = forkId_example; // String | - String bundleId = bundleId_example; // String | - String chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | - String txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. + String chainId = chainId_example; // String | + String txHash = txHash_example; // String | One of txHash, simulationId, bundleId is required. + String chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | String txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | + String txIdPeriodbundleId = txIdPeriodbundleId_example; // String | Boolean withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. Boolean disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. Boolean ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - google.api.HttpBody result = apiInstance.getCallTrace6(owner, slug, forkId, bundleId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, chainSpecPeriodforkId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#getCallTrace6"); + System.err.println("Exception when calling DebugAndSimulationApi#getCallTraceByTransaction"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -14824,23 +14858,23 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) -String *forkId = forkId_example; // (default to null) -String *bundleId = bundleId_example; // (default to null) -String *chainSpecPeriodchainId = chainSpecPeriodchainId_example; // (optional) (default to null) -String *txIdPeriodtxHash = txIdPeriodtxHash_example; // One of txHash, simulationId, bundleId is required. (optional) (default to null) +String *chainId = chainId_example; // (default to null) +String *txHash = txHash_example; // One of txHash, simulationId, bundleId is required. (default to null) +String *chainSpecPeriodforkId = chainSpecPeriodforkId_example; // (optional) (default to null) String *txIdPeriodsimulationId = txIdPeriodsimulationId_example; // (optional) (default to null) +String *txIdPeriodbundleId = txIdPeriodbundleId_example; // (optional) (default to null) Boolean *withInternalCalls = true; // Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) Boolean *disableOptimizer = true; // Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) Boolean *ignoreGasCost = true; // Only effective when disableOptimizer=true. (optional) (default to null) // Get indexed call trace -[apiInstance getCallTrace6With:owner +[apiInstance getCallTraceByTransactionWith:owner slug:slug - forkId:forkId - bundleId:bundleId - chainSpecPeriodchainId:chainSpecPeriodchainId - txIdPeriodtxHash:txIdPeriodtxHash + chainId:chainId + txHash:txHash + chainSpecPeriodforkId:chainSpecPeriodforkId txIdPeriodsimulationId:txIdPeriodsimulationId + txIdPeriodbundleId:txIdPeriodbundleId withInternalCalls:withInternalCalls disableOptimizer:disableOptimizer ignoreGasCost:ignoreGasCost @@ -14855,7 +14889,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -14869,12 +14903,12 @@ 

    Usage and SDK Samples

    var api = new SentioApi.DebugAndSimulationApi() var owner = owner_example; // {String} var slug = slug_example; // {String} -var forkId = forkId_example; // {String} -var bundleId = bundleId_example; // {String} +var chainId = chainId_example; // {String} +var txHash = txHash_example; // {String} One of txHash, simulationId, bundleId is required. var opts = { - 'chainSpecPeriodchainId': chainSpecPeriodchainId_example, // {String} - 'txIdPeriodtxHash': txIdPeriodtxHash_example, // {String} One of txHash, simulationId, bundleId is required. + 'chainSpecPeriodforkId': chainSpecPeriodforkId_example, // {String} 'txIdPeriodsimulationId': txIdPeriodsimulationId_example, // {String} + 'txIdPeriodbundleId': txIdPeriodbundleId_example, // {String} 'withInternalCalls': true, // {Boolean} Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. 'disableOptimizer': true, // {Boolean} Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. 'ignoreGasCost': true // {Boolean} Only effective when disableOptimizer=true. @@ -14887,14 +14921,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.getCallTrace6(owner, slug, forkId, bundleId, opts, callback); +api.getCallTraceByTransaction(owner, slug, chainId, txHash, opts, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -14903,7 +14937,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class getCallTrace6Example + public class getCallTraceByTransactionExample { public void main() { @@ -14916,21 +14950,21 @@

    Usage and SDK Samples

    var apiInstance = new DebugAndSimulationApi(); var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) - var forkId = forkId_example; // String | (default to null) - var bundleId = bundleId_example; // String | (default to null) - var chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | (optional) (default to null) - var txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. (optional) (default to null) + var chainId = chainId_example; // String | (default to null) + var txHash = txHash_example; // String | One of txHash, simulationId, bundleId is required. (default to null) + var chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | (optional) (default to null) var txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | (optional) (default to null) + var txIdPeriodbundleId = txIdPeriodbundleId_example; // String | (optional) (default to null) var withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) var disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) var ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try { // Get indexed call trace - google.api.HttpBody result = apiInstance.getCallTrace6(owner, slug, forkId, bundleId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost); + google.api.HttpBody result = apiInstance.getCallTraceByTransaction(owner, slug, chainId, txHash, chainSpecPeriodforkId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.getCallTrace6: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.getCallTraceByTransaction: " + e.Message ); } } } @@ -14938,7 +14972,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -14951,25 +14985,25 @@ 

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); $owner = owner_example; // String | $slug = slug_example; // String | -$forkId = forkId_example; // String | -$bundleId = bundleId_example; // String | -$chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String | -$txIdPeriodtxHash = txIdPeriodtxHash_example; // String | One of txHash, simulationId, bundleId is required. +$chainId = chainId_example; // String | +$txHash = txHash_example; // String | One of txHash, simulationId, bundleId is required. +$chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String | $txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String | +$txIdPeriodbundleId = txIdPeriodbundleId_example; // String | $withInternalCalls = true; // Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. $disableOptimizer = true; // Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. $ignoreGasCost = true; // Boolean | Only effective when disableOptimizer=true. try { - $result = $api_instance->getCallTrace6($owner, $slug, $forkId, $bundleId, $chainSpecPeriodchainId, $txIdPeriodtxHash, $txIdPeriodsimulationId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); + $result = $api_instance->getCallTraceByTransaction($owner, $slug, $chainId, $txHash, $chainSpecPeriodforkId, $txIdPeriodsimulationId, $txIdPeriodbundleId, $withInternalCalls, $disableOptimizer, $ignoreGasCost); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->getCallTrace6: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -14983,25 +15017,25 @@ 

    Usage and SDK Samples

    my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); my $owner = owner_example; # String | my $slug = slug_example; # String | -my $forkId = forkId_example; # String | -my $bundleId = bundleId_example; # String | -my $chainSpecPeriodchainId = chainSpecPeriodchainId_example; # String | -my $txIdPeriodtxHash = txIdPeriodtxHash_example; # String | One of txHash, simulationId, bundleId is required. +my $chainId = chainId_example; # String | +my $txHash = txHash_example; # String | One of txHash, simulationId, bundleId is required. +my $chainSpecPeriodforkId = chainSpecPeriodforkId_example; # String | my $txIdPeriodsimulationId = txIdPeriodsimulationId_example; # String | +my $txIdPeriodbundleId = txIdPeriodbundleId_example; # String | my $withInternalCalls = true; # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. my $disableOptimizer = true; # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. my $ignoreGasCost = true; # Boolean | Only effective when disableOptimizer=true. eval { - my $result = $api_instance->getCallTrace6(owner => $owner, slug => $slug, forkId => $forkId, bundleId => $bundleId, chainSpecPeriodchainId => $chainSpecPeriodchainId, txIdPeriodtxHash => $txIdPeriodtxHash, txIdPeriodsimulationId => $txIdPeriodsimulationId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); + my $result = $api_instance->getCallTraceByTransaction(owner => $owner, slug => $slug, chainId => $chainId, txHash => $txHash, chainSpecPeriodforkId => $chainSpecPeriodforkId, txIdPeriodsimulationId => $txIdPeriodsimulationId, txIdPeriodbundleId => $txIdPeriodbundleId, withInternalCalls => $withInternalCalls, disableOptimizer => $disableOptimizer, ignoreGasCost => $ignoreGasCost); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->getCallTrace6: $@\n"; + warn "Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -15017,40 +15051,40 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DebugAndSimulationApi() owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) -forkId = forkId_example # String | (default to null) -bundleId = bundleId_example # String | (default to null) -chainSpecPeriodchainId = chainSpecPeriodchainId_example # String | (optional) (default to null) -txIdPeriodtxHash = txIdPeriodtxHash_example # String | One of txHash, simulationId, bundleId is required. (optional) (default to null) +chainId = chainId_example # String | (default to null) +txHash = txHash_example # String | One of txHash, simulationId, bundleId is required. (default to null) +chainSpecPeriodforkId = chainSpecPeriodforkId_example # String | (optional) (default to null) txIdPeriodsimulationId = txIdPeriodsimulationId_example # String | (optional) (default to null) +txIdPeriodbundleId = txIdPeriodbundleId_example # String | (optional) (default to null) withInternalCalls = true # Boolean | Fetch the decoded trace, which will give you the function info, decoded parameters of both external and internal call trace. (optional) (default to null) disableOptimizer = true # Boolean | Disable optimizations to make internal calls more accurate, but gas costs will differ from the actual execution. (optional) (default to null) ignoreGasCost = true # Boolean | Only effective when disableOptimizer=true. (optional) (default to null) try: # Get indexed call trace - api_response = api_instance.get_call_trace6(owner, slug, forkId, bundleId, chainSpecPeriodchainId=chainSpecPeriodchainId, txIdPeriodtxHash=txIdPeriodtxHash, txIdPeriodsimulationId=txIdPeriodsimulationId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) + api_response = api_instance.get_call_trace_by_transaction(owner, slug, chainId, txHash, chainSpecPeriodforkId=chainSpecPeriodforkId, txIdPeriodsimulationId=txIdPeriodsimulationId, txIdPeriodbundleId=txIdPeriodbundleId, withInternalCalls=withInternalCalls, disableOptimizer=disableOptimizer, ignoreGasCost=ignoreGasCost) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->getCallTrace6: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->getCallTraceByTransaction: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let forkId = forkId_example; // String
    -    let bundleId = bundleId_example; // String
    -    let chainSpecPeriodchainId = chainSpecPeriodchainId_example; // String
    -    let txIdPeriodtxHash = txIdPeriodtxHash_example; // String
    +    let chainId = chainId_example; // String
    +    let txHash = txHash_example; // String
    +    let chainSpecPeriodforkId = chainSpecPeriodforkId_example; // String
         let txIdPeriodsimulationId = txIdPeriodsimulationId_example; // String
    +    let txIdPeriodbundleId = txIdPeriodbundleId_example; // String
         let withInternalCalls = true; // Boolean
         let disableOptimizer = true; // Boolean
         let ignoreGasCost = true; // Boolean
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.getCallTrace6(owner, slug, forkId, bundleId, chainSpecPeriodchainId, txIdPeriodtxHash, txIdPeriodsimulationId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
    +    let result = client.getCallTraceByTransaction(owner, slug, chainId, txHash, chainSpecPeriodforkId, txIdPeriodsimulationId, txIdPeriodbundleId, withInternalCalls, disableOptimizer, ignoreGasCost, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -15075,7 +15109,7 @@ 

    Parameters

    -
    +
    @@ -15095,7 +15129,7 @@

    Parameters

    -
    +
    @@ -15111,11 +15145,11 @@

    Parameters

    - fork_id* + chain_id* -
    +
    @@ -15131,17 +15165,20 @@

    Parameters

    - bundle_id* + tx_hash* -
    +
    String +
    +One of txHash, simulationId, bundleId is required. +
    Required @@ -15162,11 +15199,11 @@

    Parameters

    Name Description - chainSpec.chainId + chainSpec.forkId -
    +
    @@ -15179,31 +15216,28 @@

    Parameters

    - txId.txHash + txId.simulationId -
    +
    String -
    -One of txHash, simulationId, bundleId is required. -
    - txId.simulationId + txId.bundleId -
    +
    @@ -15220,7 +15254,7 @@

    Parameters

    -
    +
    @@ -15240,7 +15274,7 @@

    Parameters

    -
    +
    @@ -15260,7 +15294,7 @@

    Parameters

    -
    +
    @@ -15279,23 +15313,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -
    @@ -18219,50 +18253,49 @@


    -
    -
    +
    +
    -

    simulateTransaction2

    -

    Single simulation

    +

    simulateTransactionBundle

    +

    Bundle simulation

    -

    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.

    +

    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.


    -
    /api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation
    +
    /api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle

    Usage and SDK Samples

    -
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation" \
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -18285,14 +18318,14 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String forkId = forkId_example; // String | - SolidityServiceSolidityAPIServiceSimulateTransactionBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | + String chainId = chainId_example; // String | + SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | try { - solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction2(owner, slug, forkId, body); + solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction2"); + System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle"); e.printStackTrace(); } } @@ -18300,27 +18333,27 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | 
     final String slug = new String(); // String | 
    -final String forkId = new String(); // String | 
    -final SolidityServiceSolidityAPIServiceSimulateTransactionBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody | 
    +final String chainId = new String(); // String | 
    +final SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | 
     
     try {
    -    final result = await api_instance.simulateTransaction2(owner, slug, forkId, body);
    +    final result = await api_instance.simulateTransactionBundle(owner, slug, chainId, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->simulateTransaction2: $e\n');
    +    print('Exception when calling DefaultApi->simulateTransactionBundle: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -18328,24 +18361,24 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String forkId = forkId_example; // String | - SolidityServiceSolidityAPIServiceSimulateTransactionBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | + String chainId = chainId_example; // String | + SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | try { - solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction2(owner, slug, forkId, body); + solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#simulateTransaction2"); + System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -18358,15 +18391,15 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) -String *forkId = forkId_example; // (default to null) -SolidityServiceSolidityAPIServiceSimulateTransactionBody *body = ; // +String *chainId = chainId_example; // (default to null) +SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody *body = ; // -// Single simulation -[apiInstance simulateTransaction2With:owner +// Bundle simulation +[apiInstance simulateTransactionBundleWith:owner slug:slug - forkId:forkId + chainId:chainId body:body - completionHandler: ^(solidity_service.SimulateTransactionResponse output, NSError* error) { + completionHandler: ^(solidity_service.SimulateTransactionBundleResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -18377,7 +18410,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -18391,8 +18424,8 @@ 

    Usage and SDK Samples

    var api = new SentioApi.DebugAndSimulationApi() var owner = owner_example; // {String} var slug = slug_example; // {String} -var forkId = forkId_example; // {String} -var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBody} +var chainId = chainId_example; // {String} +var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody} var callback = function(error, data, response) { if (error) { @@ -18401,14 +18434,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.simulateTransaction2(owner, slug, forkId, body, callback); +api.simulateTransactionBundle(owner, slug, chainId, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -18417,7 +18450,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class simulateTransaction2Example + public class simulateTransactionBundleExample { public void main() { @@ -18430,15 +18463,15 @@

    Usage and SDK Samples

    var apiInstance = new DebugAndSimulationApi(); var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) - var forkId = forkId_example; // String | (default to null) - var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBody | + var chainId = chainId_example; // String | (default to null) + var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | try { - // Single simulation - solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransaction2(owner, slug, forkId, body); + // Bundle simulation + solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransaction2: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransactionBundle: " + e.Message ); } } } @@ -18446,7 +18479,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -18459,19 +18492,19 @@ 

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); $owner = owner_example; // String | $slug = slug_example; // String | -$forkId = forkId_example; // String | -$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody | +$chainId = chainId_example; // String | +$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | try { - $result = $api_instance->simulateTransaction2($owner, $slug, $forkId, $body); + $result = $api_instance->simulateTransactionBundle($owner, $slug, $chainId, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->simulateTransaction2: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->simulateTransactionBundle: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -18485,19 +18518,19 @@ 

    Usage and SDK Samples

    my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); my $owner = owner_example; # String | my $slug = slug_example; # String | -my $forkId = forkId_example; # String | -my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBody | +my $chainId = chainId_example; # String | +my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | eval { - my $result = $api_instance->simulateTransaction2(owner => $owner, slug => $slug, forkId => $forkId, body => $body); + my $result = $api_instance->simulateTransactionBundle(owner => $owner, slug => $slug, chainId => $chainId, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->simulateTransaction2: $@\n"; + warn "Exception when calling DebugAndSimulationApi->simulateTransactionBundle: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -18513,28 +18546,28 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DebugAndSimulationApi() owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) -forkId = forkId_example # String | (default to null) -body = # SolidityServiceSolidityAPIServiceSimulateTransactionBody | +chainId = chainId_example # String | (default to null) +body = # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | try: - # Single simulation - api_response = api_instance.simulate_transaction2(owner, slug, forkId, body) + # Bundle simulation + api_response = api_instance.simulate_transaction_bundle(owner, slug, chainId, body) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->simulateTransaction2: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->simulateTransactionBundle: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let forkId = forkId_example; // String
    -    let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBody
    +    let chainId = chainId_example; // String
    +    let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.simulateTransaction2(owner, slug, forkId, body, &context).wait();
    +    let result = client.simulateTransactionBundle(owner, slug, chainId, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -18559,7 +18592,7 @@ 

    Parameters

    -
    +
    @@ -18579,7 +18612,7 @@

    Parameters

    -
    +
    @@ -18595,11 +18628,11 @@

    Parameters

    - fork_id* + chain_id* -
    +
    @@ -18633,7 +18666,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/solidity_service.SolidityAPIService.SimulateTransactionBody" + "$ref" : "#/components/schemas/solidity_service.SolidityAPIService.SimulateTransactionBundleBody" } } }, @@ -18656,12 +18689,12 @@

    Parameters

    } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_simulateTransaction2_body'); + var result = $('#d2e199_simulateTransactionBundle_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -18670,23 +18703,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    simulateTransactionBundle

    -

    Bundle simulation

    +

    simulateTransactionBundleByFork

    +

    -

    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.

    +


    -
    /api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle
    +
    /api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle

    Usage and SDK Samples

    -
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle" \
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -18814,14 +18847,14 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String chainId = chainId_example; // String | - SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + String forkId = forkId_example; // String | + SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody | try { - solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); + solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundleByFork(owner, slug, forkId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle"); + System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundleByFork"); e.printStackTrace(); } } @@ -18829,27 +18862,27 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
     
     final String owner = new String(); // String | 
     final String slug = new String(); // String | 
    -final String chainId = new String(); // String | 
    -final SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | 
    +final String forkId = new String(); // String | 
    +final SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody | 
     
     try {
    -    final result = await api_instance.simulateTransactionBundle(owner, slug, chainId, body);
    +    final result = await api_instance.simulateTransactionBundleByFork(owner, slug, forkId, body);
         print(result);
     } catch (e) {
    -    print('Exception when calling DefaultApi->simulateTransactionBundle: $e\n');
    +    print('Exception when calling DefaultApi->simulateTransactionBundleByFork: $e\n');
     }
     
     
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -18857,24 +18890,24 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi apiInstance = new DebugAndSimulationApi(); String owner = owner_example; // String | String slug = slug_example; // String | - String chainId = chainId_example; // String | - SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + String forkId = forkId_example; // String | + SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody | try { - solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); + solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundleByFork(owner, slug, forkId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle"); + System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundleByFork"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -18887,13 +18920,12 @@ 

    Usage and SDK Samples

    DebugAndSimulationApi *apiInstance = [[DebugAndSimulationApi alloc] init]; String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) -String *chainId = chainId_example; // (default to null) -SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody *body = ; // +String *forkId = forkId_example; // (default to null) +SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody *body = ; // -// Bundle simulation -[apiInstance simulateTransactionBundleWith:owner +[apiInstance simulateTransactionBundleByForkWith:owner slug:slug - chainId:chainId + forkId:forkId body:body completionHandler: ^(solidity_service.SimulateTransactionBundleResponse output, NSError* error) { if (output) { @@ -18906,7 +18938,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -18920,8 +18952,8 @@ 

    Usage and SDK Samples

    var api = new SentioApi.DebugAndSimulationApi() var owner = owner_example; // {String} var slug = slug_example; // {String} -var chainId = chainId_example; // {String} -var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody} +var forkId = forkId_example; // {String} +var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody} var callback = function(error, data, response) { if (error) { @@ -18930,14 +18962,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.simulateTransactionBundle(owner, slug, chainId, body, callback); +api.simulateTransactionBundleByFork(owner, slug, forkId, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -18946,7 +18978,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class simulateTransactionBundleExample + public class simulateTransactionBundleByForkExample { public void main() { @@ -18959,15 +18991,14 @@

    Usage and SDK Samples

    var apiInstance = new DebugAndSimulationApi(); var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) - var chainId = chainId_example; // String | (default to null) - var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + var forkId = forkId_example; // String | (default to null) + var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody | try { - // Bundle simulation - solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle(owner, slug, chainId, body); + solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundleByFork(owner, slug, forkId, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransactionBundle: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransactionBundleByFork: " + e.Message ); } } } @@ -18975,7 +19006,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -18988,19 +19019,19 @@ 

    Usage and SDK Samples

    $api_instance = new OpenAPITools\Client\Api\DebugAndSimulationApi(); $owner = owner_example; // String | $slug = slug_example; // String | -$chainId = chainId_example; // String | -$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +$forkId = forkId_example; // String | +$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody | try { - $result = $api_instance->simulateTransactionBundle($owner, $slug, $chainId, $body); + $result = $api_instance->simulateTransactionBundleByFork($owner, $slug, $forkId, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->simulateTransactionBundle: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->simulateTransactionBundleByFork: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -19014,19 +19045,19 @@ 

    Usage and SDK Samples

    my $api_instance = WWW::OPenAPIClient::DebugAndSimulationApi->new(); my $owner = owner_example; # String | my $slug = slug_example; # String | -my $chainId = chainId_example; # String | -my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +my $forkId = forkId_example; # String | +my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody | eval { - my $result = $api_instance->simulateTransactionBundle(owner => $owner, slug => $slug, chainId => $chainId, body => $body); + my $result = $api_instance->simulateTransactionBundleByFork(owner => $owner, slug => $slug, forkId => $forkId, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->simulateTransactionBundle: $@\n"; + warn "Exception when calling DebugAndSimulationApi->simulateTransactionBundleByFork: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -19042,28 +19073,27 @@ 

    Usage and SDK Samples

    api_instance = openapi_client.DebugAndSimulationApi() owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) -chainId = chainId_example # String | (default to null) -body = # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +forkId = forkId_example # String | (default to null) +body = # SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody | try: - # Bundle simulation - api_response = api_instance.simulate_transaction_bundle(owner, slug, chainId, body) + api_response = api_instance.simulate_transaction_bundle_by_fork(owner, slug, forkId, body) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->simulateTransactionBundle: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->simulateTransactionBundleByFork: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
    -    let chainId = chainId_example; // String
    -    let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody
    +    let forkId = forkId_example; // String
    +    let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.simulateTransactionBundle(owner, slug, chainId, body, &context).wait();
    +    let result = client.simulateTransactionBundleByFork(owner, slug, forkId, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -19088,7 +19118,7 @@ 

    Parameters

    -
    +
    @@ -19108,7 +19138,7 @@

    Parameters

    -
    +
    @@ -19124,11 +19154,11 @@

    Parameters

    - chain_id* + fork_id* -
    +
    @@ -19162,7 +19192,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/solidity_service.SolidityAPIService.SimulateTransactionBundleBody" + "$ref" : "#/components/schemas/solidity_service.SolidityAPIService.SimulateTransactionBundleByForkBody" } } }, @@ -19185,12 +19215,12 @@

    Parameters

    } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_simulateTransactionBundle_body'); + var result = $('#d2e199_simulateTransactionBundleByFork_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -19199,23 +19229,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -

    -
    -
    +
    +
    -

    simulateTransactionBundle2

    -

    Bundle simulation

    +

    simulateTransactionByFork

    +

    -

    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.

    +


    -
    /api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle
    +
    /api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation

    Usage and SDK Samples

    -
    +
    curl -X POST \
     -H "api-key: [[apiKey]]" \
      -H "Accept: application/json" \
      -H "Content-Type: application/json" \
    - "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle" \
    + "https://app.sentio.xyz/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation" \
      -d ''
     
    -
    +
    import org.openapitools.client.*;
     import org.openapitools.client.auth.*;
     import org.openapitools.client.model.*;
    @@ -19344,13 +19374,13 @@ 

    Usage and SDK Samples

    String owner = owner_example; // String | String slug = slug_example; // String | String forkId = forkId_example; // String | - SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody | try { - solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle2(owner, slug, forkId, body); + solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransactionByFork(owner, slug, forkId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle2"); + System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionByFork"); e.printStackTrace(); } } @@ -19358,7 +19388,7 @@

    Usage and SDK Samples

    -
    +
    import 'package:openapi/api.dart';
     
     final api_instance = DefaultApi();
    @@ -19366,19 +19396,19 @@ 

    Usage and SDK Samples

    final String owner = new String(); // String | final String slug = new String(); // String | final String forkId = new String(); // String | -final SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +final SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody body = new SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody | try { - final result = await api_instance.simulateTransactionBundle2(owner, slug, forkId, body); + final result = await api_instance.simulateTransactionByFork(owner, slug, forkId, body); print(result); } catch (e) { - print('Exception when calling DefaultApi->simulateTransactionBundle2: $e\n'); + print('Exception when calling DefaultApi->simulateTransactionByFork: $e\n'); }
    -
    +
    import org.openapitools.client.api.DebugAndSimulationApi;
     
     public class DebugAndSimulationApiExample {
    @@ -19387,23 +19417,23 @@ 

    Usage and SDK Samples

    String owner = owner_example; // String | String slug = slug_example; // String | String forkId = forkId_example; // String | - SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody | try { - solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle2(owner, slug, forkId, body); + solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransactionByFork(owner, slug, forkId, body); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionBundle2"); + System.err.println("Exception when calling DebugAndSimulationApi#simulateTransactionByFork"); e.printStackTrace(); } } }
    -
    +
    Configuration *apiConfig = [Configuration sharedConfig];
     
     // Configure API key authorization: (authentication scheme: ApiKeyAuth)
    @@ -19417,14 +19447,13 @@ 

    Usage and SDK Samples

    String *owner = owner_example; // (default to null) String *slug = slug_example; // (default to null) String *forkId = forkId_example; // (default to null) -SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody *body = ; // +SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody *body = ; // -// Bundle simulation -[apiInstance simulateTransactionBundle2With:owner +[apiInstance simulateTransactionByForkWith:owner slug:slug forkId:forkId body:body - completionHandler: ^(solidity_service.SimulateTransactionBundleResponse output, NSError* error) { + completionHandler: ^(solidity_service.SimulateTransactionResponse output, NSError* error) { if (output) { NSLog(@"%@", output); } @@ -19435,7 +19464,7 @@

    Usage and SDK Samples

    -
    +
    var SentioApi = require('sentio_api');
     var defaultClient = SentioApi.ApiClient.instance;
     
    @@ -19450,7 +19479,7 @@ 

    Usage and SDK Samples

    var owner = owner_example; // {String} var slug = slug_example; // {String} var forkId = forkId_example; // {String} -var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody} +var body = ; // {SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody} var callback = function(error, data, response) { if (error) { @@ -19459,14 +19488,14 @@

    Usage and SDK Samples

    console.log('API called successfully. Returned data: ' + data); } }; -api.simulateTransactionBundle2(owner, slug, forkId, body, callback); +api.simulateTransactionByFork(owner, slug, forkId, body, callback);
    - -
    +
    using System;
     using System.Diagnostics;
     using Org.OpenAPITools.Api;
    @@ -19475,7 +19504,7 @@ 

    Usage and SDK Samples

    namespace Example { - public class simulateTransactionBundle2Example + public class simulateTransactionByForkExample { public void main() { @@ -19489,14 +19518,13 @@

    Usage and SDK Samples

    var owner = owner_example; // String | (default to null) var slug = slug_example; // String | (default to null) var forkId = forkId_example; // String | (default to null) - var body = new SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | + var body = new SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody(); // SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody | try { - // Bundle simulation - solidity_service.SimulateTransactionBundleResponse result = apiInstance.simulateTransactionBundle2(owner, slug, forkId, body); + solidity_service.SimulateTransactionResponse result = apiInstance.simulateTransactionByFork(owner, slug, forkId, body); Debug.WriteLine(result); } catch (Exception e) { - Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransactionBundle2: " + e.Message ); + Debug.Print("Exception when calling DebugAndSimulationApi.simulateTransactionByFork: " + e.Message ); } } } @@ -19504,7 +19532,7 @@

    Usage and SDK Samples

    -
    +
    <?php
     require_once(__DIR__ . '/vendor/autoload.php');
     
    @@ -19518,18 +19546,18 @@ 

    Usage and SDK Samples

    $owner = owner_example; // String | $slug = slug_example; // String | $forkId = forkId_example; // String | -$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +$body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody | try { - $result = $api_instance->simulateTransactionBundle2($owner, $slug, $forkId, $body); + $result = $api_instance->simulateTransactionByFork($owner, $slug, $forkId, $body); print_r($result); } catch (Exception $e) { - echo 'Exception when calling DebugAndSimulationApi->simulateTransactionBundle2: ', $e->getMessage(), PHP_EOL; + echo 'Exception when calling DebugAndSimulationApi->simulateTransactionByFork: ', $e->getMessage(), PHP_EOL; } ?>
    -
    +
    use Data::Dumper;
     use WWW::OPenAPIClient::Configuration;
     use WWW::OPenAPIClient::DebugAndSimulationApi;
    @@ -19544,18 +19572,18 @@ 

    Usage and SDK Samples

    my $owner = owner_example; # String | my $slug = slug_example; # String | my $forkId = forkId_example; # String | -my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +my $body = WWW::OPenAPIClient::Object::SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody->new(); # SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody | eval { - my $result = $api_instance->simulateTransactionBundle2(owner => $owner, slug => $slug, forkId => $forkId, body => $body); + my $result = $api_instance->simulateTransactionByFork(owner => $owner, slug => $slug, forkId => $forkId, body => $body); print Dumper($result); }; if ($@) { - warn "Exception when calling DebugAndSimulationApi->simulateTransactionBundle2: $@\n"; + warn "Exception when calling DebugAndSimulationApi->simulateTransactionByFork: $@\n"; }
    -
    +
    from __future__ import print_statement
     import time
     import openapi_client
    @@ -19572,27 +19600,26 @@ 

    Usage and SDK Samples

    owner = owner_example # String | (default to null) slug = slug_example # String | (default to null) forkId = forkId_example # String | (default to null) -body = # SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody | +body = # SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody | try: - # Bundle simulation - api_response = api_instance.simulate_transaction_bundle2(owner, slug, forkId, body) + api_response = api_instance.simulate_transaction_by_fork(owner, slug, forkId, body) pprint(api_response) except ApiException as e: - print("Exception when calling DebugAndSimulationApi->simulateTransactionBundle2: %s\n" % e)
    + print("Exception when calling DebugAndSimulationApi->simulateTransactionByFork: %s\n" % e)
    -
    +
    extern crate DebugAndSimulationApi;
     
     pub fn main() {
         let owner = owner_example; // String
         let slug = slug_example; // String
         let forkId = forkId_example; // String
    -    let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody
    +    let body = ; // SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody
     
         let mut context = DebugAndSimulationApi::Context::default();
    -    let result = client.simulateTransactionBundle2(owner, slug, forkId, body, &context).wait();
    +    let result = client.simulateTransactionByFork(owner, slug, forkId, body, &context).wait();
     
         println!("{:?}", result);
     }
    @@ -19617,7 +19644,7 @@ 

    Parameters

    -
    +
    @@ -19637,7 +19664,7 @@

    Parameters

    -
    +
    @@ -19657,7 +19684,7 @@

    Parameters

    -
    +
    @@ -19691,7 +19718,7 @@

    Parameters

    "content" : { "application/json" : { "schema" : { - "$ref" : "#/components/schemas/solidity_service.SolidityAPIService.SimulateTransactionBundleBody" + "$ref" : "#/components/schemas/solidity_service.SolidityAPIService.SimulateTransactionByForkBody" } } }, @@ -19714,12 +19741,12 @@

    Parameters

    } var view = new JSONSchemaView(schema,2,{isBodyParam: true}); - var result = $('#d2e199_simulateTransactionBundle2_body'); + var result = $('#d2e199_simulateTransactionByFork_body'); result.empty(); result.append(view.render()); }); -
    +
    @@ -19728,23 +19755,23 @@

    Parameters

    Responses

    -

    -

    +

    +

    -
    diff --git a/openapi.json b/openapi.json index 71ed27f..409d8ae 100644 --- a/openapi.json +++ b/openapi.json @@ -1162,57 +1162,9 @@ ] } }, - "/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation": { - "post": { - "summary": "Single simulation", - "description": "Create a new transaction simulation. The simulation body should be included in the request body.\nYour simulations will be saved, and a unique ID for each simulation is included in the response. It will be useful for fetching simulation details.", - "operationId": "SimulateTransaction2", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/solidity_service.SimulateTransactionResponse" - } - } - }, - "parameters": [ - { - "name": "owner", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "slug", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "fork_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/solidity_service.SolidityAPIService.SimulateTransactionBody" - } - } - ], - "tags": [ - "Debug and Simulation" - ] - } - }, - "/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation/{simulation_id}/call_trace": { + "/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/bundle/{bundle_id}/call_trace": { "get": { - "summary": "Get indexed call trace", - "description": "API to get Sentio call trace. It takes `txId.txHash` and `networkId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID.\n\nThe 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.\n\nThis allows you to build chart that marks the order of fund flow.\n\n![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)", - "operationId": "GetCallTrace5", + "operationId": "GetCallTraceByForkBundle", "responses": { "200": { "description": "A successful response.", @@ -1241,7 +1193,7 @@ "type": "string" }, { - "name": "simulation_id", + "name": "bundle_id", "in": "path", "required": true, "type": "string" @@ -1260,7 +1212,7 @@ "type": "string" }, { - "name": "txId.bundleId", + "name": "txId.simulationId", "in": "query", "required": false, "type": "string" @@ -1292,16 +1244,14 @@ ] } }, - "/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle": { + "/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation": { "post": { - "summary": "Bundle simulation", - "description": "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.", - "operationId": "SimulateTransactionBundle2", + "operationId": "SimulateTransactionByFork", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/solidity_service.SimulateTransactionBundleResponse" + "$ref": "#/definitions/solidity_service.SimulateTransactionResponse" } } }, @@ -1329,7 +1279,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/solidity_service.SolidityAPIService.SimulateTransactionBundleBody" + "$ref": "#/definitions/solidity_service.SolidityAPIService.SimulateTransactionByForkBody" } } ], @@ -1338,11 +1288,9 @@ ] } }, - "/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle/{bundle_id}/call_trace": { + "/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation/{simulation_id}/call_trace": { "get": { - "summary": "Get indexed call trace", - "description": "API to get Sentio call trace. It takes `txId.txHash` and `networkId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID.\n\nThe 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.\n\nThis allows you to build chart that marks the order of fund flow.\n\n![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)", - "operationId": "GetCallTrace6", + "operationId": "GetCallTraceByForkSimulation", "responses": { "200": { "description": "A successful response.", @@ -1371,7 +1319,7 @@ "type": "string" }, { - "name": "bundle_id", + "name": "simulation_id", "in": "path", "required": true, "type": "string" @@ -1390,7 +1338,7 @@ "type": "string" }, { - "name": "txId.simulationId", + "name": "txId.bundleId", "in": "query", "required": false, "type": "string" @@ -1422,11 +1370,53 @@ ] } }, + "/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle": { + "post": { + "operationId": "SimulateTransactionBundleByFork", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/solidity_service.SimulateTransactionBundleResponse" + } + } + }, + "parameters": [ + { + "name": "owner", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "slug", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "fork_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/solidity_service.SolidityAPIService.SimulateTransactionBundleByForkBody" + } + } + ], + "tags": [ + "Debug and Simulation" + ] + } + }, "/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/transaction/{tx_hash}/call_trace": { "get": { - "summary": "Get indexed call trace", - "description": "API to get Sentio call trace. It takes `txId.txHash` and `networkId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID.\n\nThe 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.\n\nThis allows you to build chart that marks the order of fund flow.\n\n![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)", - "operationId": "GetCallTrace4", + "operationId": "GetCallTraceByForkTransaction", "responses": { "200": { "description": "A successful response.", @@ -1918,57 +1908,9 @@ ] } }, - "/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation": { - "post": { - "summary": "Single simulation", - "description": "Create a new transaction simulation. The simulation body should be included in the request body.\nYour simulations will be saved, and a unique ID for each simulation is included in the response. It will be useful for fetching simulation details.", - "operationId": "SimulateTransaction", - "responses": { - "200": { - "description": "A successful response.", - "schema": { - "$ref": "#/definitions/solidity_service.SimulateTransactionResponse" - } - } - }, - "parameters": [ - { - "name": "owner", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "slug", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "chain_id", - "in": "path", - "required": true, - "type": "string" - }, - { - "name": "body", - "in": "body", - "required": true, - "schema": { - "$ref": "#/definitions/solidity_service.SolidityAPIService.SimulateTransactionBody" - } - } - ], - "tags": [ - "Debug and Simulation" - ] - } - }, - "/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation/{simulation_id}/call_trace": { + "/api/v1/solidity/{owner}/{slug}/{chain_id}/bundle/{bundle_id}/call_trace": { "get": { - "summary": "Get indexed call trace", - "description": "API to get Sentio call trace. It takes `txId.txHash` and `networkId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID.\n\nThe 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.\n\nThis allows you to build chart that marks the order of fund flow.\n\n![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)", - "operationId": "GetCallTrace2", + "operationId": "GetCallTraceByBundle", "responses": { "200": { "description": "A successful response.", @@ -1997,7 +1939,7 @@ "type": "string" }, { - "name": "simulation_id", + "name": "bundle_id", "in": "path", "required": true, "type": "string" @@ -2016,7 +1958,7 @@ "type": "string" }, { - "name": "txId.bundleId", + "name": "txId.simulationId", "in": "query", "required": false, "type": "string" @@ -2048,16 +1990,16 @@ ] } }, - "/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle": { + "/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation": { "post": { - "summary": "Bundle simulation", - "description": "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.", - "operationId": "SimulateTransactionBundle", + "summary": "Single simulation", + "description": "Create a new transaction simulation. The simulation body should be included in the request body.\nYour simulations will be saved, and a unique ID for each simulation is included in the response. It will be useful for fetching simulation details.", + "operationId": "SimulateTransaction", "responses": { "200": { "description": "A successful response.", "schema": { - "$ref": "#/definitions/solidity_service.SimulateTransactionBundleResponse" + "$ref": "#/definitions/solidity_service.SimulateTransactionResponse" } } }, @@ -2085,7 +2027,7 @@ "in": "body", "required": true, "schema": { - "$ref": "#/definitions/solidity_service.SolidityAPIService.SimulateTransactionBundleBody" + "$ref": "#/definitions/solidity_service.SolidityAPIService.SimulateTransactionBody" } } ], @@ -2094,11 +2036,9 @@ ] } }, - "/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle/{bundle_id}/call_trace": { + "/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation/{simulation_id}/call_trace": { "get": { - "summary": "Get indexed call trace", - "description": "API to get Sentio call trace. It takes `txId.txHash` and `networkId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID.\n\nThe 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.\n\nThis allows you to build chart that marks the order of fund flow.\n\n![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)", - "operationId": "GetCallTrace3", + "operationId": "GetCallTraceBySimulation", "responses": { "200": { "description": "A successful response.", @@ -2127,7 +2067,7 @@ "type": "string" }, { - "name": "bundle_id", + "name": "simulation_id", "in": "path", "required": true, "type": "string" @@ -2146,7 +2086,7 @@ "type": "string" }, { - "name": "txId.simulationId", + "name": "txId.bundleId", "in": "query", "required": false, "type": "string" @@ -2178,11 +2118,57 @@ ] } }, + "/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle": { + "post": { + "summary": "Bundle simulation", + "description": "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.", + "operationId": "SimulateTransactionBundle", + "responses": { + "200": { + "description": "A successful response.", + "schema": { + "$ref": "#/definitions/solidity_service.SimulateTransactionBundleResponse" + } + } + }, + "parameters": [ + { + "name": "owner", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "slug", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "chain_id", + "in": "path", + "required": true, + "type": "string" + }, + { + "name": "body", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/solidity_service.SolidityAPIService.SimulateTransactionBundleBody" + } + } + ], + "tags": [ + "Debug and Simulation" + ] + } + }, "/api/v1/solidity/{owner}/{slug}/{chain_id}/transaction/{tx_hash}/call_trace": { "get": { "summary": "Get indexed call trace", - "description": "API to get Sentio call trace. It takes `txId.txHash` and `networkId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID.\n\nThe 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.\n\nThis allows you to build chart that marks the order of fund flow.\n\n![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)", - "operationId": "GetCallTrace", + "description": "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.\n\nThe 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.\n\nThis allows you to build chart that marks the order of fund flow.\n\n![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png)", + "operationId": "GetCallTraceByTransaction", "responses": { "200": { "description": "A successful response.", @@ -5647,7 +5633,7 @@ "chainSpec": { "type": "object", "properties": { - "chainId": { + "forkId": { "type": "string" } } @@ -5661,6 +5647,55 @@ ] }, "solidity_service.SolidityAPIService.SimulateTransactionBundleBody": { + "type": "object", + "example": { + "simulations": [ + { + "blockNumber": "17415072", + "transactionIndex": "97", + "network_id": "1", + "from": "0x5e8bb488e85ea732e17150862b1acfc213a7c13d", + "to": "0xef1c6e67703c7bd7107eed8303fbe6ec2554bf6b", + "gas": "0x31ae2", + "gasPrice": "0xe59a1adbe", + "input": "0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000647dffef0000000000000000000000000000000000000000000000000000000000000002080c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000003077b58d5d378391980000000000000000000000000000000000000000000000000000000032b2ced3e40e9d100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000082646b22a3960da69ef7a778c16dd6fb85dd999000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000032b2ced3e40e9d1", + "value": "0x0" + }, + { + "from": "0x99922ca65188cc218a5d316969dc66d8672994f2", + "to": "0xae96a46b64e08861cf2af8c7d954b722e0725a0c", + "gas": "0x52", + "gasPrice": "0xe5909173e", + "maxPriorityFeePerGas": "0x3b023380", + "maxFeePerGas": "0x147d03", + "input": "0x", + "value": "0xbe32c0faed7400" + } + ] + }, + "properties": { + "chainSpec": { + "type": "object", + "properties": { + "forkId": { + "type": "string" + } + } + }, + "simulations": { + "type": "array", + "items": { + "type": "object", + "$ref": "#/definitions/solidity_service.Simulation" + }, + "description": "For blockNumber, transactionIndex, networkId, stateOverrides and blockOverrides fields, only the first simulation takes effect." + } + }, + "required": [ + "simulations" + ] + }, + "solidity_service.SolidityAPIService.SimulateTransactionBundleByForkBody": { "type": "object", "example": { "simulations": [ @@ -5709,6 +5744,46 @@ "simulations" ] }, + "solidity_service.SolidityAPIService.SimulateTransactionByForkBody": { + "type": "object", + "example": { + "simulation": { + "networkId": "1", + "blockNumber": "17415072", + "transactionIndex": "97", + "from": "0x5e8bb488e85ea732e17150862b1acfc213a7c13d", + "to": "0xef1c6e67703c7bd7107eed8303fbe6ec2554bf6b", + "value": "0x0", + "gas": "0x31ae2", + "gasPrice": "0xe59a1adbe", + "input": "0x3593564c000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000647dffef0000000000000000000000000000000000000000000000000000000000000002080c000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000160000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000003077b58d5d378391980000000000000000000000000000000000000000000000000000000032b2ced3e40e9d100000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000002000000000000000000000000082646b22a3960da69ef7a778c16dd6fb85dd999000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc200000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000032b2ced3e40e9d1", + "stateOverrides": { + "0x0811fd1808e14f0b93f0514313965a5f142c5539": { + "balance": "0x1111111111111111" + } + }, + "blockOverride": { + "baseFee": "0x0" + } + } + }, + "properties": { + "chainSpec": { + "type": "object", + "properties": { + "chainId": { + "type": "string" + } + } + }, + "simulation": { + "$ref": "#/definitions/solidity_service.Simulation" + } + }, + "required": [ + "simulation" + ] + }, "solidity_service.SourceFetcherType": { "type": "string", "enum": [ diff --git a/src/apis/DebugAndSimulationApi.ts b/src/apis/DebugAndSimulationApi.ts index 2722582..2f33320 100755 --- a/src/apis/DebugAndSimulationApi.ts +++ b/src/apis/DebugAndSimulationApi.ts @@ -23,6 +23,8 @@ import type { SolidityServiceSimulateTransactionResponse, SolidityServiceSolidityAPIServiceSimulateTransactionBody, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody, + SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody, + SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody, TxindexEvmSearchTransactionsResponse, } from '../models/index.js'; import { @@ -42,50 +44,54 @@ import { SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyFromJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON, + SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyFromJSON, + SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyToJSON, + SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyFromJSON, + SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyToJSON, TxindexEvmSearchTransactionsResponseFromJSON, TxindexEvmSearchTransactionsResponseToJSON, } from '../models/index.js'; -export interface GetCallTraceRequest { +export interface GetCallTraceByBundleRequest { owner: string; slug: string; chainId: string; - txHash: string; + bundleId: string; chainSpecForkId?: string; + txIdTxHash?: string; txIdSimulationId?: string; - txIdBundleId?: string; withInternalCalls?: boolean; disableOptimizer?: boolean; ignoreGasCost?: boolean; } -export interface GetCallTrace2Request { +export interface GetCallTraceByForkBundleRequest { owner: string; slug: string; - chainId: string; - simulationId: string; - chainSpecForkId?: string; + forkId: string; + bundleId: string; + chainSpecChainId?: string; txIdTxHash?: string; - txIdBundleId?: string; + txIdSimulationId?: string; withInternalCalls?: boolean; disableOptimizer?: boolean; ignoreGasCost?: boolean; } -export interface GetCallTrace3Request { +export interface GetCallTraceByForkSimulationRequest { owner: string; slug: string; - chainId: string; - bundleId: string; - chainSpecForkId?: string; + forkId: string; + simulationId: string; + chainSpecChainId?: string; txIdTxHash?: string; - txIdSimulationId?: string; + txIdBundleId?: string; withInternalCalls?: boolean; disableOptimizer?: boolean; ignoreGasCost?: boolean; } -export interface GetCallTrace4Request { +export interface GetCallTraceByForkTransactionRequest { owner: string; slug: string; forkId: string; @@ -98,12 +104,12 @@ export interface GetCallTrace4Request { ignoreGasCost?: boolean; } -export interface GetCallTrace5Request { +export interface GetCallTraceBySimulationRequest { owner: string; slug: string; - forkId: string; + chainId: string; simulationId: string; - chainSpecChainId?: string; + chainSpecForkId?: string; txIdTxHash?: string; txIdBundleId?: string; withInternalCalls?: boolean; @@ -111,14 +117,14 @@ export interface GetCallTrace5Request { ignoreGasCost?: boolean; } -export interface GetCallTrace6Request { +export interface GetCallTraceByTransactionRequest { owner: string; slug: string; - forkId: string; - bundleId: string; - chainSpecChainId?: string; - txIdTxHash?: string; + chainId: string; + txHash: string; + chainSpecForkId?: string; txIdSimulationId?: string; + txIdBundleId?: string; withInternalCalls?: boolean; disableOptimizer?: boolean; ignoreGasCost?: boolean; @@ -170,25 +176,25 @@ export interface SimulateTransactionRequest { body: SolidityServiceSolidityAPIServiceSimulateTransactionBody; } -export interface SimulateTransaction2Request { +export interface SimulateTransactionBundleRequest { owner: string; slug: string; - forkId: string; - body: SolidityServiceSolidityAPIServiceSimulateTransactionBody; + chainId: string; + body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody; } -export interface SimulateTransactionBundleRequest { +export interface SimulateTransactionBundleByForkRequest { owner: string; slug: string; - chainId: string; - body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody; + forkId: string; + body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody; } -export interface SimulateTransactionBundle2Request { +export interface SimulateTransactionByForkRequest { owner: string; slug: string; forkId: string; - body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody; + body: SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody; } /** @@ -197,35 +203,33 @@ export interface SimulateTransactionBundle2Request { export class DebugAndSimulationApi extends runtime.BaseAPI { /** - * API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) - * Get indexed call trace */ - async getCallTraceRaw(requestParameters: GetCallTraceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async getCallTraceByBundleRaw(requestParameters: GetCallTraceByBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['owner'] == null) { throw new runtime.RequiredError( 'owner', - 'Required parameter "owner" was null or undefined when calling getCallTrace().' + 'Required parameter "owner" was null or undefined when calling getCallTraceByBundle().' ); } if (requestParameters['slug'] == null) { throw new runtime.RequiredError( 'slug', - 'Required parameter "slug" was null or undefined when calling getCallTrace().' + 'Required parameter "slug" was null or undefined when calling getCallTraceByBundle().' ); } if (requestParameters['chainId'] == null) { throw new runtime.RequiredError( 'chainId', - 'Required parameter "chainId" was null or undefined when calling getCallTrace().' + 'Required parameter "chainId" was null or undefined when calling getCallTraceByBundle().' ); } - if (requestParameters['txHash'] == null) { + if (requestParameters['bundleId'] == null) { throw new runtime.RequiredError( - 'txHash', - 'Required parameter "txHash" was null or undefined when calling getCallTrace().' + 'bundleId', + 'Required parameter "bundleId" was null or undefined when calling getCallTraceByBundle().' ); } @@ -235,12 +239,12 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId']; } - if (requestParameters['txIdSimulationId'] != null) { - queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId']; + if (requestParameters['txIdTxHash'] != null) { + queryParameters['txId.txHash'] = requestParameters['txIdTxHash']; } - if (requestParameters['txIdBundleId'] != null) { - queryParameters['txId.bundleId'] = requestParameters['txIdBundleId']; + if (requestParameters['txIdSimulationId'] != null) { + queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId']; } if (requestParameters['withInternalCalls'] != null) { @@ -262,7 +266,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/transaction/{tx_hash}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"tx_hash"}}`, encodeURIComponent(String(requestParameters['txHash']))), + path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/bundle/{bundle_id}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"bundle_id"}}`, encodeURIComponent(String(requestParameters['bundleId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -272,59 +276,55 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } /** - * API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) - * Get indexed call trace */ - async getCallTrace(requestParameters: GetCallTraceRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getCallTraceRaw(requestParameters, initOverrides); + async getCallTraceByBundle(requestParameters: GetCallTraceByBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getCallTraceByBundleRaw(requestParameters, initOverrides); return await response.value(); } /** - * API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) - * Get indexed call trace */ - async getCallTrace2Raw(requestParameters: GetCallTrace2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async getCallTraceByForkBundleRaw(requestParameters: GetCallTraceByForkBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['owner'] == null) { throw new runtime.RequiredError( 'owner', - 'Required parameter "owner" was null or undefined when calling getCallTrace2().' + 'Required parameter "owner" was null or undefined when calling getCallTraceByForkBundle().' ); } if (requestParameters['slug'] == null) { throw new runtime.RequiredError( 'slug', - 'Required parameter "slug" was null or undefined when calling getCallTrace2().' + 'Required parameter "slug" was null or undefined when calling getCallTraceByForkBundle().' ); } - if (requestParameters['chainId'] == null) { + if (requestParameters['forkId'] == null) { throw new runtime.RequiredError( - 'chainId', - 'Required parameter "chainId" was null or undefined when calling getCallTrace2().' + 'forkId', + 'Required parameter "forkId" was null or undefined when calling getCallTraceByForkBundle().' ); } - if (requestParameters['simulationId'] == null) { + if (requestParameters['bundleId'] == null) { throw new runtime.RequiredError( - 'simulationId', - 'Required parameter "simulationId" was null or undefined when calling getCallTrace2().' + 'bundleId', + 'Required parameter "bundleId" was null or undefined when calling getCallTraceByForkBundle().' ); } const queryParameters: any = {}; - if (requestParameters['chainSpecForkId'] != null) { - queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId']; + if (requestParameters['chainSpecChainId'] != null) { + queryParameters['chainSpec.chainId'] = requestParameters['chainSpecChainId']; } if (requestParameters['txIdTxHash'] != null) { queryParameters['txId.txHash'] = requestParameters['txIdTxHash']; } - if (requestParameters['txIdBundleId'] != null) { - queryParameters['txId.bundleId'] = requestParameters['txIdBundleId']; + if (requestParameters['txIdSimulationId'] != null) { + queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId']; } if (requestParameters['withInternalCalls'] != null) { @@ -346,7 +346,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation/{simulation_id}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"simulation_id"}}`, encodeURIComponent(String(requestParameters['simulationId']))), + path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/bundle/{bundle_id}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"bundle_id"}}`, encodeURIComponent(String(requestParameters['bundleId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -356,59 +356,55 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } /** - * API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) - * Get indexed call trace */ - async getCallTrace2(requestParameters: GetCallTrace2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getCallTrace2Raw(requestParameters, initOverrides); + async getCallTraceByForkBundle(requestParameters: GetCallTraceByForkBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getCallTraceByForkBundleRaw(requestParameters, initOverrides); return await response.value(); } /** - * API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) - * Get indexed call trace */ - async getCallTrace3Raw(requestParameters: GetCallTrace3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async getCallTraceByForkSimulationRaw(requestParameters: GetCallTraceByForkSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['owner'] == null) { throw new runtime.RequiredError( 'owner', - 'Required parameter "owner" was null or undefined when calling getCallTrace3().' + 'Required parameter "owner" was null or undefined when calling getCallTraceByForkSimulation().' ); } if (requestParameters['slug'] == null) { throw new runtime.RequiredError( 'slug', - 'Required parameter "slug" was null or undefined when calling getCallTrace3().' + 'Required parameter "slug" was null or undefined when calling getCallTraceByForkSimulation().' ); } - if (requestParameters['chainId'] == null) { + if (requestParameters['forkId'] == null) { throw new runtime.RequiredError( - 'chainId', - 'Required parameter "chainId" was null or undefined when calling getCallTrace3().' + 'forkId', + 'Required parameter "forkId" was null or undefined when calling getCallTraceByForkSimulation().' ); } - if (requestParameters['bundleId'] == null) { + if (requestParameters['simulationId'] == null) { throw new runtime.RequiredError( - 'bundleId', - 'Required parameter "bundleId" was null or undefined when calling getCallTrace3().' + 'simulationId', + 'Required parameter "simulationId" was null or undefined when calling getCallTraceByForkSimulation().' ); } const queryParameters: any = {}; - if (requestParameters['chainSpecForkId'] != null) { - queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId']; + if (requestParameters['chainSpecChainId'] != null) { + queryParameters['chainSpec.chainId'] = requestParameters['chainSpecChainId']; } if (requestParameters['txIdTxHash'] != null) { queryParameters['txId.txHash'] = requestParameters['txIdTxHash']; } - if (requestParameters['txIdSimulationId'] != null) { - queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId']; + if (requestParameters['txIdBundleId'] != null) { + queryParameters['txId.bundleId'] = requestParameters['txIdBundleId']; } if (requestParameters['withInternalCalls'] != null) { @@ -430,7 +426,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle/{bundle_id}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"bundle_id"}}`, encodeURIComponent(String(requestParameters['bundleId']))), + path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation/{simulation_id}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"simulation_id"}}`, encodeURIComponent(String(requestParameters['simulationId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -440,44 +436,40 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } /** - * API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) - * Get indexed call trace */ - async getCallTrace3(requestParameters: GetCallTrace3Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getCallTrace3Raw(requestParameters, initOverrides); + async getCallTraceByForkSimulation(requestParameters: GetCallTraceByForkSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getCallTraceByForkSimulationRaw(requestParameters, initOverrides); return await response.value(); } /** - * API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) - * Get indexed call trace */ - async getCallTrace4Raw(requestParameters: GetCallTrace4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async getCallTraceByForkTransactionRaw(requestParameters: GetCallTraceByForkTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['owner'] == null) { throw new runtime.RequiredError( 'owner', - 'Required parameter "owner" was null or undefined when calling getCallTrace4().' + 'Required parameter "owner" was null or undefined when calling getCallTraceByForkTransaction().' ); } if (requestParameters['slug'] == null) { throw new runtime.RequiredError( 'slug', - 'Required parameter "slug" was null or undefined when calling getCallTrace4().' + 'Required parameter "slug" was null or undefined when calling getCallTraceByForkTransaction().' ); } if (requestParameters['forkId'] == null) { throw new runtime.RequiredError( 'forkId', - 'Required parameter "forkId" was null or undefined when calling getCallTrace4().' + 'Required parameter "forkId" was null or undefined when calling getCallTraceByForkTransaction().' ); } if (requestParameters['txHash'] == null) { throw new runtime.RequiredError( 'txHash', - 'Required parameter "txHash" was null or undefined when calling getCallTrace4().' + 'Required parameter "txHash" was null or undefined when calling getCallTraceByForkTransaction().' ); } @@ -524,51 +516,47 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } /** - * API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) - * Get indexed call trace */ - async getCallTrace4(requestParameters: GetCallTrace4Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getCallTrace4Raw(requestParameters, initOverrides); + async getCallTraceByForkTransaction(requestParameters: GetCallTraceByForkTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getCallTraceByForkTransactionRaw(requestParameters, initOverrides); return await response.value(); } /** - * API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) - * Get indexed call trace */ - async getCallTrace5Raw(requestParameters: GetCallTrace5Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async getCallTraceBySimulationRaw(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['owner'] == null) { throw new runtime.RequiredError( 'owner', - 'Required parameter "owner" was null or undefined when calling getCallTrace5().' + 'Required parameter "owner" was null or undefined when calling getCallTraceBySimulation().' ); } if (requestParameters['slug'] == null) { throw new runtime.RequiredError( 'slug', - 'Required parameter "slug" was null or undefined when calling getCallTrace5().' + 'Required parameter "slug" was null or undefined when calling getCallTraceBySimulation().' ); } - if (requestParameters['forkId'] == null) { + if (requestParameters['chainId'] == null) { throw new runtime.RequiredError( - 'forkId', - 'Required parameter "forkId" was null or undefined when calling getCallTrace5().' + 'chainId', + 'Required parameter "chainId" was null or undefined when calling getCallTraceBySimulation().' ); } if (requestParameters['simulationId'] == null) { throw new runtime.RequiredError( 'simulationId', - 'Required parameter "simulationId" was null or undefined when calling getCallTrace5().' + 'Required parameter "simulationId" was null or undefined when calling getCallTraceBySimulation().' ); } const queryParameters: any = {}; - if (requestParameters['chainSpecChainId'] != null) { - queryParameters['chainSpec.chainId'] = requestParameters['chainSpecChainId']; + if (requestParameters['chainSpecForkId'] != null) { + queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId']; } if (requestParameters['txIdTxHash'] != null) { @@ -598,7 +586,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation/{simulation_id}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"simulation_id"}}`, encodeURIComponent(String(requestParameters['simulationId']))), + path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation/{simulation_id}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"simulation_id"}}`, encodeURIComponent(String(requestParameters['simulationId']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -608,61 +596,59 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } /** - * API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) - * Get indexed call trace */ - async getCallTrace5(requestParameters: GetCallTrace5Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getCallTrace5Raw(requestParameters, initOverrides); + async getCallTraceBySimulation(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getCallTraceBySimulationRaw(requestParameters, initOverrides); return await response.value(); } /** - * API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) + * 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) * Get indexed call trace */ - async getCallTrace6Raw(requestParameters: GetCallTrace6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async getCallTraceByTransactionRaw(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['owner'] == null) { throw new runtime.RequiredError( 'owner', - 'Required parameter "owner" was null or undefined when calling getCallTrace6().' + 'Required parameter "owner" was null or undefined when calling getCallTraceByTransaction().' ); } if (requestParameters['slug'] == null) { throw new runtime.RequiredError( 'slug', - 'Required parameter "slug" was null or undefined when calling getCallTrace6().' + 'Required parameter "slug" was null or undefined when calling getCallTraceByTransaction().' ); } - if (requestParameters['forkId'] == null) { + if (requestParameters['chainId'] == null) { throw new runtime.RequiredError( - 'forkId', - 'Required parameter "forkId" was null or undefined when calling getCallTrace6().' + 'chainId', + 'Required parameter "chainId" was null or undefined when calling getCallTraceByTransaction().' ); } - if (requestParameters['bundleId'] == null) { + if (requestParameters['txHash'] == null) { throw new runtime.RequiredError( - 'bundleId', - 'Required parameter "bundleId" was null or undefined when calling getCallTrace6().' + 'txHash', + 'Required parameter "txHash" was null or undefined when calling getCallTraceByTransaction().' ); } const queryParameters: any = {}; - if (requestParameters['chainSpecChainId'] != null) { - queryParameters['chainSpec.chainId'] = requestParameters['chainSpecChainId']; - } - - if (requestParameters['txIdTxHash'] != null) { - queryParameters['txId.txHash'] = requestParameters['txIdTxHash']; + if (requestParameters['chainSpecForkId'] != null) { + queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId']; } if (requestParameters['txIdSimulationId'] != null) { queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId']; } + if (requestParameters['txIdBundleId'] != null) { + queryParameters['txId.bundleId'] = requestParameters['txIdBundleId']; + } + if (requestParameters['withInternalCalls'] != null) { queryParameters['withInternalCalls'] = requestParameters['withInternalCalls']; } @@ -682,7 +668,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle/{bundle_id}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"bundle_id"}}`, encodeURIComponent(String(requestParameters['bundleId']))), + path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/transaction/{tx_hash}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"tx_hash"}}`, encodeURIComponent(String(requestParameters['txHash']))), method: 'GET', headers: headerParameters, query: queryParameters, @@ -692,11 +678,11 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } /** - * API to get Sentio call trace. It takes `txId.txHash` and `networkId` 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) + * 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. ![screenshot](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png) * Get indexed call trace */ - async getCallTrace6(requestParameters: GetCallTrace6Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.getCallTrace6Raw(requestParameters, initOverrides); + async getCallTraceByTransaction(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.getCallTraceByTransactionRaw(requestParameters, initOverrides); return await response.value(); } @@ -1022,35 +1008,35 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } /** - * 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. - * Single simulation + * 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. + * Bundle simulation */ - async simulateTransaction2Raw(requestParameters: SimulateTransaction2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async simulateTransactionBundleRaw(requestParameters: SimulateTransactionBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['owner'] == null) { throw new runtime.RequiredError( 'owner', - 'Required parameter "owner" was null or undefined when calling simulateTransaction2().' + 'Required parameter "owner" was null or undefined when calling simulateTransactionBundle().' ); } if (requestParameters['slug'] == null) { throw new runtime.RequiredError( 'slug', - 'Required parameter "slug" was null or undefined when calling simulateTransaction2().' + 'Required parameter "slug" was null or undefined when calling simulateTransactionBundle().' ); } - if (requestParameters['forkId'] == null) { + if (requestParameters['chainId'] == null) { throw new runtime.RequiredError( - 'forkId', - 'Required parameter "forkId" was null or undefined when calling simulateTransaction2().' + 'chainId', + 'Required parameter "chainId" was null or undefined when calling simulateTransactionBundle().' ); } if (requestParameters['body'] == null) { throw new runtime.RequiredError( 'body', - 'Required parameter "body" was null or undefined when calling simulateTransaction2().' + 'Required parameter "body" was null or undefined when calling simulateTransactionBundle().' ); } @@ -1065,55 +1051,53 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))), + path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))), method: 'POST', headers: headerParameters, query: queryParameters, - body: SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON(requestParameters['body']), + body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON(requestParameters['body']), }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue)); } /** - * 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. - * Single simulation + * 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. + * Bundle simulation */ - async simulateTransaction2(requestParameters: SimulateTransaction2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.simulateTransaction2Raw(requestParameters, initOverrides); + async simulateTransactionBundle(requestParameters: SimulateTransactionBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.simulateTransactionBundleRaw(requestParameters, initOverrides); return await response.value(); } /** - * 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. - * Bundle simulation */ - async simulateTransactionBundleRaw(requestParameters: SimulateTransactionBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async simulateTransactionBundleByForkRaw(requestParameters: SimulateTransactionBundleByForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['owner'] == null) { throw new runtime.RequiredError( 'owner', - 'Required parameter "owner" was null or undefined when calling simulateTransactionBundle().' + 'Required parameter "owner" was null or undefined when calling simulateTransactionBundleByFork().' ); } if (requestParameters['slug'] == null) { throw new runtime.RequiredError( 'slug', - 'Required parameter "slug" was null or undefined when calling simulateTransactionBundle().' + 'Required parameter "slug" was null or undefined when calling simulateTransactionBundleByFork().' ); } - if (requestParameters['chainId'] == null) { + if (requestParameters['forkId'] == null) { throw new runtime.RequiredError( - 'chainId', - 'Required parameter "chainId" was null or undefined when calling simulateTransactionBundle().' + 'forkId', + 'Required parameter "forkId" was null or undefined when calling simulateTransactionBundleByFork().' ); } if (requestParameters['body'] == null) { throw new runtime.RequiredError( 'body', - 'Required parameter "body" was null or undefined when calling simulateTransactionBundle().' + 'Required parameter "body" was null or undefined when calling simulateTransactionBundleByFork().' ); } @@ -1128,55 +1112,51 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))), + path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))), method: 'POST', headers: headerParameters, query: queryParameters, - body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON(requestParameters['body']), + body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyToJSON(requestParameters['body']), }, initOverrides); return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue)); } /** - * 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. - * Bundle simulation */ - async simulateTransactionBundle(requestParameters: SimulateTransactionBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.simulateTransactionBundleRaw(requestParameters, initOverrides); + async simulateTransactionBundleByFork(requestParameters: SimulateTransactionBundleByForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.simulateTransactionBundleByForkRaw(requestParameters, initOverrides); return await response.value(); } /** - * 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. - * Bundle simulation */ - async simulateTransactionBundle2Raw(requestParameters: SimulateTransactionBundle2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async simulateTransactionByForkRaw(requestParameters: SimulateTransactionByForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['owner'] == null) { throw new runtime.RequiredError( 'owner', - 'Required parameter "owner" was null or undefined when calling simulateTransactionBundle2().' + 'Required parameter "owner" was null or undefined when calling simulateTransactionByFork().' ); } if (requestParameters['slug'] == null) { throw new runtime.RequiredError( 'slug', - 'Required parameter "slug" was null or undefined when calling simulateTransactionBundle2().' + 'Required parameter "slug" was null or undefined when calling simulateTransactionByFork().' ); } if (requestParameters['forkId'] == null) { throw new runtime.RequiredError( 'forkId', - 'Required parameter "forkId" was null or undefined when calling simulateTransactionBundle2().' + 'Required parameter "forkId" was null or undefined when calling simulateTransactionByFork().' ); } if (requestParameters['body'] == null) { throw new runtime.RequiredError( 'body', - 'Required parameter "body" was null or undefined when calling simulateTransactionBundle2().' + 'Required parameter "body" was null or undefined when calling simulateTransactionByFork().' ); } @@ -1191,22 +1171,20 @@ export class DebugAndSimulationApi extends runtime.BaseAPI { } const response = await this.request({ - path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))), + path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))), method: 'POST', headers: headerParameters, query: queryParameters, - body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON(requestParameters['body']), + body: SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyToJSON(requestParameters['body']), }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue)); + return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue)); } /** - * 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. - * Bundle simulation */ - async simulateTransactionBundle2(requestParameters: SimulateTransactionBundle2Request, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.simulateTransactionBundle2Raw(requestParameters, initOverrides); + async simulateTransactionByFork(requestParameters: SimulateTransactionByForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.simulateTransactionByForkRaw(requestParameters, initOverrides); return await response.value(); } diff --git a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.ts b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.ts index 1d554d5..1abc842 100755 --- a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.ts +++ b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.ts @@ -24,7 +24,7 @@ export interface SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSp * @type {string} * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec */ - chainId?: string; + forkId?: string; } /** @@ -44,7 +44,7 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpe } return { - 'chainId': json['chainId'] == null ? undefined : json['chainId'], + 'forkId': json['forkId'] == null ? undefined : json['forkId'], }; } @@ -59,7 +59,7 @@ export function SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpe return { - 'chainId': value['chainId'], + 'forkId': value['forkId'], }; } diff --git a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts new file mode 100755 index 0000000..ea32597 --- /dev/null +++ b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Sentio API + * Sentio Open API for query data + * + * The version of the OpenAPI document: version not set + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime.js'; +import type { SolidityServiceSimulation } from './SolidityServiceSimulation.js'; +import { + SolidityServiceSimulationFromJSON, + SolidityServiceSimulationFromJSONTyped, + SolidityServiceSimulationToJSON, + SolidityServiceSimulationToJSONTyped, +} from './SolidityServiceSimulation.js'; +import type { SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec } from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js'; +import { + SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON, + SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSONTyped, + SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON, + SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSONTyped, +} from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js'; + +/** + * + * @export + * @interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody + */ +export interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody { + /** + * + * @type {SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec} + * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody + */ + chainSpec?: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec; + /** + * For blockNumber, transactionIndex, networkId, stateOverrides and blockOverrides fields, only the first simulation takes effect. + * @type {Array} + * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody + */ + simulations: Array; +} + +/** + * Check if a given object implements the SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody interface. + */ +export function instanceOfSolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody(value: object): value is SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody { + if (!('simulations' in value) || value['simulations'] === undefined) return false; + return true; +} + +export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyFromJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody { + return SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyFromJSONTyped(json, false); +} + +export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody { + if (json == null) { + return json; + } + return { + + 'chainSpec': json['chainSpec'] == null ? undefined : SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON(json['chainSpec']), + 'simulations': ((json['simulations'] as Array).map(SolidityServiceSimulationFromJSON)), + }; +} + + export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyToJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody { + return SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyToJSONTyped(json, false); + } + + export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyToJSONTyped(value?: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'chainSpec': SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON(value['chainSpec']), + 'simulations': ((value['simulations'] as Array).map(SolidityServiceSimulationToJSON)), + }; +} + diff --git a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.ts b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.ts new file mode 100755 index 0000000..ad9a85b --- /dev/null +++ b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.ts @@ -0,0 +1,65 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Sentio API + * Sentio Open API for query data + * + * The version of the OpenAPI document: version not set + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime.js'; +/** + * + * @export + * @interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec + */ +export interface SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec { + /** + * + * @type {string} + * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec + */ + chainId?: string; +} + +/** + * Check if a given object implements the SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec interface. + */ +export function instanceOfSolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec(value: object): value is SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec { + return true; +} + +export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec { + return SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSONTyped(json, false); +} + +export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec { + if (json == null) { + return json; + } + return { + + 'chainId': json['chainId'] == null ? undefined : json['chainId'], + }; +} + + export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec { + return SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSONTyped(json, false); + } + + export function SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSONTyped(value?: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'chainId': value['chainId'], + }; +} + diff --git a/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts new file mode 100755 index 0000000..d756af4 --- /dev/null +++ b/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts @@ -0,0 +1,89 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * Sentio API + * Sentio Open API for query data + * + * The version of the OpenAPI document: version not set + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime.js'; +import type { SolidityServiceSimulation } from './SolidityServiceSimulation.js'; +import { + SolidityServiceSimulationFromJSON, + SolidityServiceSimulationFromJSONTyped, + SolidityServiceSimulationToJSON, + SolidityServiceSimulationToJSONTyped, +} from './SolidityServiceSimulation.js'; +import type { SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec } from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js'; +import { + SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON, + SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSONTyped, + SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON, + SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSONTyped, +} from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js'; + +/** + * + * @export + * @interface SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody + */ +export interface SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody { + /** + * + * @type {SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec} + * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody + */ + chainSpec?: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec; + /** + * + * @type {SolidityServiceSimulation} + * @memberof SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody + */ + simulation: SolidityServiceSimulation; +} + +/** + * Check if a given object implements the SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody interface. + */ +export function instanceOfSolidityServiceSolidityAPIServiceSimulateTransactionByForkBody(value: object): value is SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody { + if (!('simulation' in value) || value['simulation'] === undefined) return false; + return true; +} + +export function SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyFromJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody { + return SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyFromJSONTyped(json, false); +} + +export function SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody { + if (json == null) { + return json; + } + return { + + 'chainSpec': json['chainSpec'] == null ? undefined : SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecFromJSON(json['chainSpec']), + 'simulation': SolidityServiceSimulationFromJSON(json['simulation']), + }; +} + + export function SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyToJSON(json: any): SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody { + return SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyToJSONTyped(json, false); + } + + export function SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyToJSONTyped(value?: SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody | null, ignoreDiscriminator: boolean = false): any { + if (value == null) { + return value; + } + + return { + + 'chainSpec': SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpecToJSON(value['chainSpec']), + 'simulation': SolidityServiceSimulationToJSON(value['simulation']), + }; +} + diff --git a/src/models/index.ts b/src/models/index.ts index d96a028..63dec8a 100755 --- a/src/models/index.ts +++ b/src/models/index.ts @@ -174,6 +174,9 @@ export * from './SolidityServiceSimulationResult.js'; export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBody.js'; export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js'; export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js'; +export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js'; +export * from './SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js'; +export * from './SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js'; export * from './SolidityServiceSourceFetcherType.js'; export * from './SolidityServiceSourceInfo.js'; export * from './SolidityServiceSourceMultiFile.js';