@sentio/api 1.0.2-rc.23 → 1.0.2-rc.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (23) hide show
  1. package/dist/src/apis/DebugAndSimulationApi.d.ts +28 -32
  2. package/dist/src/apis/DebugAndSimulationApi.js +38 -78
  3. package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
  4. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.d.ts +1 -1
  5. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.js +3 -1
  6. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.js.map +1 -1
  7. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.d.ts +1 -1
  8. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js +3 -1
  9. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js.map +1 -1
  10. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.d.ts +1 -1
  11. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js +3 -1
  12. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js.map +1 -1
  13. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.d.ts +1 -1
  14. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js +3 -1
  15. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js.map +1 -1
  16. package/dist/src/models/SolidityServiceTxIdentifier.d.ts +1 -1
  17. package/package.json +1 -1
  18. package/src/apis/DebugAndSimulationApi.ts +38 -114
  19. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.ts +3 -2
  20. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.ts +3 -2
  21. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts +3 -2
  22. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts +3 -2
  23. package/src/models/SolidityServiceTxIdentifier.ts +1 -1
@@ -16,9 +16,6 @@ export interface GetCallTraceByBundleRequest {
16
16
  slug: string;
17
17
  chainId: string;
18
18
  bundleId: string;
19
- chainSpecForkId?: string;
20
- txIdTxHash?: string;
21
- txIdSimulationId?: string;
22
19
  withInternalCalls?: boolean;
23
20
  disableOptimizer?: boolean;
24
21
  ignoreGasCost?: boolean;
@@ -28,9 +25,6 @@ export interface GetCallTraceByForkBundleRequest {
28
25
  slug: string;
29
26
  forkId: string;
30
27
  bundleId: string;
31
- chainSpecChainId?: string;
32
- txIdTxHash?: string;
33
- txIdSimulationId?: string;
34
28
  withInternalCalls?: boolean;
35
29
  disableOptimizer?: boolean;
36
30
  ignoreGasCost?: boolean;
@@ -40,9 +34,6 @@ export interface GetCallTraceByForkSimulationRequest {
40
34
  slug: string;
41
35
  forkId: string;
42
36
  simulationId: string;
43
- chainSpecChainId?: string;
44
- txIdTxHash?: string;
45
- txIdBundleId?: string;
46
37
  withInternalCalls?: boolean;
47
38
  disableOptimizer?: boolean;
48
39
  ignoreGasCost?: boolean;
@@ -52,9 +43,6 @@ export interface GetCallTraceByForkTransactionRequest {
52
43
  slug: string;
53
44
  forkId: string;
54
45
  txHash: string;
55
- chainSpecChainId?: string;
56
- txIdSimulationId?: string;
57
- txIdBundleId?: string;
58
46
  withInternalCalls?: boolean;
59
47
  disableOptimizer?: boolean;
60
48
  ignoreGasCost?: boolean;
@@ -64,9 +52,6 @@ export interface GetCallTraceBySimulationRequest {
64
52
  slug: string;
65
53
  chainId: string;
66
54
  simulationId: string;
67
- chainSpecForkId?: string;
68
- txIdTxHash?: string;
69
- txIdBundleId?: string;
70
55
  withInternalCalls?: boolean;
71
56
  disableOptimizer?: boolean;
72
57
  ignoreGasCost?: boolean;
@@ -76,9 +61,6 @@ export interface GetCallTraceByTransactionRequest {
76
61
  slug: string;
77
62
  chainId: string;
78
63
  txHash: string;
79
- chainSpecForkId?: string;
80
- txIdSimulationId?: string;
81
- txIdBundleId?: string;
82
64
  withInternalCalls?: boolean;
83
65
  disableOptimizer?: boolean;
84
66
  ignoreGasCost?: boolean;
@@ -147,107 +129,121 @@ export interface SimulateTransactionByForkRequest {
147
129
  */
148
130
  export declare class DebugAndSimulationApi extends runtime.BaseAPI {
149
131
  /**
132
+ * Get Call Trace by Bundle Simulation
150
133
  */
151
134
  getCallTraceByBundleRaw(requestParameters: GetCallTraceByBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
152
135
  /**
136
+ * Get Call Trace by Bundle Simulation
153
137
  */
154
138
  getCallTraceByBundle(requestParameters: GetCallTraceByBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
155
139
  /**
140
+ * Get Call Trace by Bundle Simulation on Fork
156
141
  */
157
142
  getCallTraceByForkBundleRaw(requestParameters: GetCallTraceByForkBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
158
143
  /**
144
+ * Get Call Trace by Bundle Simulation on Fork
159
145
  */
160
146
  getCallTraceByForkBundle(requestParameters: GetCallTraceByForkBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
161
147
  /**
148
+ * Get Call Trace by Simulation on Fork
162
149
  */
163
150
  getCallTraceByForkSimulationRaw(requestParameters: GetCallTraceByForkSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
164
151
  /**
152
+ * Get Call Trace by Simulation on Fork
165
153
  */
166
154
  getCallTraceByForkSimulation(requestParameters: GetCallTraceByForkSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
167
155
  /**
156
+ * Get Call Trace by Transaction on Fork
168
157
  */
169
158
  getCallTraceByForkTransactionRaw(requestParameters: GetCallTraceByForkTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
170
159
  /**
160
+ * Get Call Trace by Transaction on Fork
171
161
  */
172
162
  getCallTraceByForkTransaction(requestParameters: GetCallTraceByForkTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
173
163
  /**
164
+ * Get Call Trace by Simulation
174
165
  */
175
166
  getCallTraceBySimulationRaw(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
176
167
  /**
168
+ * Get Call Trace by Simulation
177
169
  */
178
170
  getCallTraceBySimulation(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
179
171
  /**
180
172
  * 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)
181
- * Get indexed call trace
173
+ * Get Call Trace by Transaction
182
174
  */
183
175
  getCallTraceByTransactionRaw(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
184
176
  /**
185
177
  * 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)
186
- * Get indexed call trace
178
+ * Get Call Trace by Transaction
187
179
  */
188
180
  getCallTraceByTransaction(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
189
181
  /**
190
- * Get a simulation by id
182
+ * Get Simulation by ID
191
183
  */
192
184
  getSimulationRaw(requestParameters: GetSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceGetSimulationResponse>>;
193
185
  /**
194
- * Get a simulation by id
186
+ * Get Simulation by ID
195
187
  */
196
188
  getSimulation(requestParameters: GetSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceGetSimulationResponse>;
197
189
  /**
198
- * Get a bundle simulation by id
190
+ * Get Bundle Simulation by ID
199
191
  */
200
192
  getSimulationBundleInProjectRaw(requestParameters: GetSimulationBundleInProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceGetSimulationBundleResponse>>;
201
193
  /**
202
- * Get a bundle simulation by id
194
+ * Get Bundle Simulation by ID
203
195
  */
204
196
  getSimulationBundleInProject(requestParameters: GetSimulationBundleInProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceGetSimulationBundleResponse>;
205
197
  /**
206
- * Get existing transaction simulations
198
+ * Get Existied Simulations
207
199
  */
208
200
  getSimulationsRaw(requestParameters: GetSimulationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceGetSimulationsResponse>>;
209
201
  /**
210
- * Get existing transaction simulations
202
+ * Get Existied Simulations
211
203
  */
212
204
  getSimulations(requestParameters: GetSimulationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceGetSimulationsResponse>;
213
205
  /**
214
- * Search for transactions
206
+ * Search transactions
215
207
  */
216
208
  searchTransactionsRaw(requestParameters: SearchTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<TxindexEvmSearchTransactionsResponse>>;
217
209
  /**
218
- * Search for transactions
210
+ * Search transactions
219
211
  */
220
212
  searchTransactions(requestParameters: SearchTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TxindexEvmSearchTransactionsResponse>;
221
213
  /**
222
214
  * 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.
223
- * Single simulation
215
+ * Run Simulation
224
216
  */
225
217
  simulateTransactionRaw(requestParameters: SimulateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionResponse>>;
226
218
  /**
227
219
  * 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.
228
- * Single simulation
220
+ * Run Simulation
229
221
  */
230
222
  simulateTransaction(requestParameters: SimulateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionResponse>;
231
223
  /**
232
224
  * 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.
233
- * Bundle simulation
225
+ * Run Bundle simulation
234
226
  */
235
227
  simulateTransactionBundleRaw(requestParameters: SimulateTransactionBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionBundleResponse>>;
236
228
  /**
237
229
  * 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.
238
- * Bundle simulation
230
+ * Run Bundle simulation
239
231
  */
240
232
  simulateTransactionBundle(requestParameters: SimulateTransactionBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionBundleResponse>;
241
233
  /**
234
+ * Run Bundle simulation on Fork
242
235
  */
243
236
  simulateTransactionBundleByForkRaw(requestParameters: SimulateTransactionBundleByForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionBundleResponse>>;
244
237
  /**
238
+ * Run Bundle simulation on Fork
245
239
  */
246
240
  simulateTransactionBundleByFork(requestParameters: SimulateTransactionBundleByForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionBundleResponse>;
247
241
  /**
242
+ * Run Simulation on Fork
248
243
  */
249
244
  simulateTransactionByForkRaw(requestParameters: SimulateTransactionByForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionResponse>>;
250
245
  /**
246
+ * Run Simulation on Fork
251
247
  */
252
248
  simulateTransactionByFork(requestParameters: SimulateTransactionByForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionResponse>;
253
249
  }
@@ -18,6 +18,7 @@ import { GoogleApiHttpBodyFromJSON, SolidityServiceGetSimulationBundleResponseFr
18
18
  */
19
19
  export class DebugAndSimulationApi extends runtime.BaseAPI {
20
20
  /**
21
+ * Get Call Trace by Bundle Simulation
21
22
  */
22
23
  async getCallTraceByBundleRaw(requestParameters, initOverrides) {
23
24
  if (requestParameters['owner'] == null) {
@@ -33,15 +34,6 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
33
34
  throw new runtime.RequiredError('bundleId', 'Required parameter "bundleId" was null or undefined when calling getCallTraceByBundle().');
34
35
  }
35
36
  const queryParameters = {};
36
- if (requestParameters['chainSpecForkId'] != null) {
37
- queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId'];
38
- }
39
- if (requestParameters['txIdTxHash'] != null) {
40
- queryParameters['txId.txHash'] = requestParameters['txIdTxHash'];
41
- }
42
- if (requestParameters['txIdSimulationId'] != null) {
43
- queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
44
- }
45
37
  if (requestParameters['withInternalCalls'] != null) {
46
38
  queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
47
39
  }
@@ -56,7 +48,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
56
48
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
57
49
  }
58
50
  const response = await this.request({
59
- 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']))),
51
+ path: `/api/v1/solidity/{owner}/{slug}/{chainId}/bundle/{bundleId}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"bundleId"}}`, encodeURIComponent(String(requestParameters['bundleId']))),
60
52
  method: 'GET',
61
53
  headers: headerParameters,
62
54
  query: queryParameters,
@@ -64,12 +56,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
64
56
  return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
65
57
  }
66
58
  /**
59
+ * Get Call Trace by Bundle Simulation
67
60
  */
68
61
  async getCallTraceByBundle(requestParameters, initOverrides) {
69
62
  const response = await this.getCallTraceByBundleRaw(requestParameters, initOverrides);
70
63
  return await response.value();
71
64
  }
72
65
  /**
66
+ * Get Call Trace by Bundle Simulation on Fork
73
67
  */
74
68
  async getCallTraceByForkBundleRaw(requestParameters, initOverrides) {
75
69
  if (requestParameters['owner'] == null) {
@@ -85,15 +79,6 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
85
79
  throw new runtime.RequiredError('bundleId', 'Required parameter "bundleId" was null or undefined when calling getCallTraceByForkBundle().');
86
80
  }
87
81
  const queryParameters = {};
88
- if (requestParameters['chainSpecChainId'] != null) {
89
- queryParameters['chainSpec.chainId'] = requestParameters['chainSpecChainId'];
90
- }
91
- if (requestParameters['txIdTxHash'] != null) {
92
- queryParameters['txId.txHash'] = requestParameters['txIdTxHash'];
93
- }
94
- if (requestParameters['txIdSimulationId'] != null) {
95
- queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
96
- }
97
82
  if (requestParameters['withInternalCalls'] != null) {
98
83
  queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
99
84
  }
@@ -108,7 +93,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
108
93
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
109
94
  }
110
95
  const response = await this.request({
111
- 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']))),
96
+ path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/bundle/{bundleId}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"forkId"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"bundleId"}}`, encodeURIComponent(String(requestParameters['bundleId']))),
112
97
  method: 'GET',
113
98
  headers: headerParameters,
114
99
  query: queryParameters,
@@ -116,12 +101,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
116
101
  return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
117
102
  }
118
103
  /**
104
+ * Get Call Trace by Bundle Simulation on Fork
119
105
  */
120
106
  async getCallTraceByForkBundle(requestParameters, initOverrides) {
121
107
  const response = await this.getCallTraceByForkBundleRaw(requestParameters, initOverrides);
122
108
  return await response.value();
123
109
  }
124
110
  /**
111
+ * Get Call Trace by Simulation on Fork
125
112
  */
126
113
  async getCallTraceByForkSimulationRaw(requestParameters, initOverrides) {
127
114
  if (requestParameters['owner'] == null) {
@@ -137,15 +124,6 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
137
124
  throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getCallTraceByForkSimulation().');
138
125
  }
139
126
  const queryParameters = {};
140
- if (requestParameters['chainSpecChainId'] != null) {
141
- queryParameters['chainSpec.chainId'] = requestParameters['chainSpecChainId'];
142
- }
143
- if (requestParameters['txIdTxHash'] != null) {
144
- queryParameters['txId.txHash'] = requestParameters['txIdTxHash'];
145
- }
146
- if (requestParameters['txIdBundleId'] != null) {
147
- queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
148
- }
149
127
  if (requestParameters['withInternalCalls'] != null) {
150
128
  queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
151
129
  }
@@ -160,7 +138,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
160
138
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
161
139
  }
162
140
  const response = await this.request({
163
- 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']))),
141
+ path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation/{simulationId}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"forkId"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"simulationId"}}`, encodeURIComponent(String(requestParameters['simulationId']))),
164
142
  method: 'GET',
165
143
  headers: headerParameters,
166
144
  query: queryParameters,
@@ -168,12 +146,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
168
146
  return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
169
147
  }
170
148
  /**
149
+ * Get Call Trace by Simulation on Fork
171
150
  */
172
151
  async getCallTraceByForkSimulation(requestParameters, initOverrides) {
173
152
  const response = await this.getCallTraceByForkSimulationRaw(requestParameters, initOverrides);
174
153
  return await response.value();
175
154
  }
176
155
  /**
156
+ * Get Call Trace by Transaction on Fork
177
157
  */
178
158
  async getCallTraceByForkTransactionRaw(requestParameters, initOverrides) {
179
159
  if (requestParameters['owner'] == null) {
@@ -189,15 +169,6 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
189
169
  throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling getCallTraceByForkTransaction().');
190
170
  }
191
171
  const queryParameters = {};
192
- if (requestParameters['chainSpecChainId'] != null) {
193
- queryParameters['chainSpec.chainId'] = requestParameters['chainSpecChainId'];
194
- }
195
- if (requestParameters['txIdSimulationId'] != null) {
196
- queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
197
- }
198
- if (requestParameters['txIdBundleId'] != null) {
199
- queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
200
- }
201
172
  if (requestParameters['withInternalCalls'] != null) {
202
173
  queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
203
174
  }
@@ -212,7 +183,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
212
183
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
213
184
  }
214
185
  const response = await this.request({
215
- path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/transaction/{tx_hash}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"tx_hash"}}`, encodeURIComponent(String(requestParameters['txHash']))),
186
+ path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/transaction/{txHash}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"forkId"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"txHash"}}`, encodeURIComponent(String(requestParameters['txHash']))),
216
187
  method: 'GET',
217
188
  headers: headerParameters,
218
189
  query: queryParameters,
@@ -220,12 +191,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
220
191
  return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
221
192
  }
222
193
  /**
194
+ * Get Call Trace by Transaction on Fork
223
195
  */
224
196
  async getCallTraceByForkTransaction(requestParameters, initOverrides) {
225
197
  const response = await this.getCallTraceByForkTransactionRaw(requestParameters, initOverrides);
226
198
  return await response.value();
227
199
  }
228
200
  /**
201
+ * Get Call Trace by Simulation
229
202
  */
230
203
  async getCallTraceBySimulationRaw(requestParameters, initOverrides) {
231
204
  if (requestParameters['owner'] == null) {
@@ -241,15 +214,6 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
241
214
  throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getCallTraceBySimulation().');
242
215
  }
243
216
  const queryParameters = {};
244
- if (requestParameters['chainSpecForkId'] != null) {
245
- queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId'];
246
- }
247
- if (requestParameters['txIdTxHash'] != null) {
248
- queryParameters['txId.txHash'] = requestParameters['txIdTxHash'];
249
- }
250
- if (requestParameters['txIdBundleId'] != null) {
251
- queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
252
- }
253
217
  if (requestParameters['withInternalCalls'] != null) {
254
218
  queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
255
219
  }
@@ -264,7 +228,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
264
228
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
265
229
  }
266
230
  const response = await this.request({
267
- 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']))),
231
+ path: `/api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"simulationId"}}`, encodeURIComponent(String(requestParameters['simulationId']))),
268
232
  method: 'GET',
269
233
  headers: headerParameters,
270
234
  query: queryParameters,
@@ -272,6 +236,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
272
236
  return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
273
237
  }
274
238
  /**
239
+ * Get Call Trace by Simulation
275
240
  */
276
241
  async getCallTraceBySimulation(requestParameters, initOverrides) {
277
242
  const response = await this.getCallTraceBySimulationRaw(requestParameters, initOverrides);
@@ -279,7 +244,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
279
244
  }
280
245
  /**
281
246
  * 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)
282
- * Get indexed call trace
247
+ * Get Call Trace by Transaction
283
248
  */
284
249
  async getCallTraceByTransactionRaw(requestParameters, initOverrides) {
285
250
  if (requestParameters['owner'] == null) {
@@ -295,15 +260,6 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
295
260
  throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling getCallTraceByTransaction().');
296
261
  }
297
262
  const queryParameters = {};
298
- if (requestParameters['chainSpecForkId'] != null) {
299
- queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId'];
300
- }
301
- if (requestParameters['txIdSimulationId'] != null) {
302
- queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
303
- }
304
- if (requestParameters['txIdBundleId'] != null) {
305
- queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
306
- }
307
263
  if (requestParameters['withInternalCalls'] != null) {
308
264
  queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
309
265
  }
@@ -318,7 +274,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
318
274
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
319
275
  }
320
276
  const response = await this.request({
321
- 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']))),
277
+ path: `/api/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"txHash"}}`, encodeURIComponent(String(requestParameters['txHash']))),
322
278
  method: 'GET',
323
279
  headers: headerParameters,
324
280
  query: queryParameters,
@@ -327,14 +283,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
327
283
  }
328
284
  /**
329
285
  * 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)
330
- * Get indexed call trace
286
+ * Get Call Trace by Transaction
331
287
  */
332
288
  async getCallTraceByTransaction(requestParameters, initOverrides) {
333
289
  const response = await this.getCallTraceByTransactionRaw(requestParameters, initOverrides);
334
290
  return await response.value();
335
291
  }
336
292
  /**
337
- * Get a simulation by id
293
+ * Get Simulation by ID
338
294
  */
339
295
  async getSimulationRaw(requestParameters, initOverrides) {
340
296
  if (requestParameters['owner'] == null) {
@@ -360,14 +316,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
360
316
  return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetSimulationResponseFromJSON(jsonValue));
361
317
  }
362
318
  /**
363
- * Get a simulation by id
319
+ * Get Simulation by ID
364
320
  */
365
321
  async getSimulation(requestParameters, initOverrides) {
366
322
  const response = await this.getSimulationRaw(requestParameters, initOverrides);
367
323
  return await response.value();
368
324
  }
369
325
  /**
370
- * Get a bundle simulation by id
326
+ * Get Bundle Simulation by ID
371
327
  */
372
328
  async getSimulationBundleInProjectRaw(requestParameters, initOverrides) {
373
329
  if (requestParameters['owner'] == null) {
@@ -393,14 +349,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
393
349
  return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetSimulationBundleResponseFromJSON(jsonValue));
394
350
  }
395
351
  /**
396
- * Get a bundle simulation by id
352
+ * Get Bundle Simulation by ID
397
353
  */
398
354
  async getSimulationBundleInProject(requestParameters, initOverrides) {
399
355
  const response = await this.getSimulationBundleInProjectRaw(requestParameters, initOverrides);
400
356
  return await response.value();
401
357
  }
402
358
  /**
403
- * Get existing transaction simulations
359
+ * Get Existied Simulations
404
360
  */
405
361
  async getSimulationsRaw(requestParameters, initOverrides) {
406
362
  if (requestParameters['owner'] == null) {
@@ -432,14 +388,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
432
388
  return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetSimulationsResponseFromJSON(jsonValue));
433
389
  }
434
390
  /**
435
- * Get existing transaction simulations
391
+ * Get Existied Simulations
436
392
  */
437
393
  async getSimulations(requestParameters, initOverrides) {
438
394
  const response = await this.getSimulationsRaw(requestParameters, initOverrides);
439
395
  return await response.value();
440
396
  }
441
397
  /**
442
- * Search for transactions
398
+ * Search transactions
443
399
  */
444
400
  async searchTransactionsRaw(requestParameters, initOverrides) {
445
401
  if (requestParameters['owner'] == null) {
@@ -504,7 +460,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
504
460
  return new runtime.JSONApiResponse(response, (jsonValue) => TxindexEvmSearchTransactionsResponseFromJSON(jsonValue));
505
461
  }
506
462
  /**
507
- * Search for transactions
463
+ * Search transactions
508
464
  */
509
465
  async searchTransactions(requestParameters, initOverrides) {
510
466
  const response = await this.searchTransactionsRaw(requestParameters, initOverrides);
@@ -512,7 +468,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
512
468
  }
513
469
  /**
514
470
  * 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.
515
- * Single simulation
471
+ * Run Simulation
516
472
  */
517
473
  async simulateTransactionRaw(requestParameters, initOverrides) {
518
474
  if (requestParameters['owner'] == null) {
@@ -534,7 +490,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
534
490
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
535
491
  }
536
492
  const response = await this.request({
537
- path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))),
493
+ path: `/api/v1/solidity/{owner}/{slug}/{chainId}/simulation`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))),
538
494
  method: 'POST',
539
495
  headers: headerParameters,
540
496
  query: queryParameters,
@@ -544,7 +500,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
544
500
  }
545
501
  /**
546
502
  * 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.
547
- * Single simulation
503
+ * Run Simulation
548
504
  */
549
505
  async simulateTransaction(requestParameters, initOverrides) {
550
506
  const response = await this.simulateTransactionRaw(requestParameters, initOverrides);
@@ -552,7 +508,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
552
508
  }
553
509
  /**
554
510
  * 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.
555
- * Bundle simulation
511
+ * Run Bundle simulation
556
512
  */
557
513
  async simulateTransactionBundleRaw(requestParameters, initOverrides) {
558
514
  if (requestParameters['owner'] == null) {
@@ -574,7 +530,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
574
530
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
575
531
  }
576
532
  const response = await this.request({
577
- 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']))),
533
+ path: `/api/v1/solidity/{owner}/{slug}/{chainId}/simulation_bundle`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))),
578
534
  method: 'POST',
579
535
  headers: headerParameters,
580
536
  query: queryParameters,
@@ -584,13 +540,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
584
540
  }
585
541
  /**
586
542
  * 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.
587
- * Bundle simulation
543
+ * Run Bundle simulation
588
544
  */
589
545
  async simulateTransactionBundle(requestParameters, initOverrides) {
590
546
  const response = await this.simulateTransactionBundleRaw(requestParameters, initOverrides);
591
547
  return await response.value();
592
548
  }
593
549
  /**
550
+ * Run Bundle simulation on Fork
594
551
  */
595
552
  async simulateTransactionBundleByForkRaw(requestParameters, initOverrides) {
596
553
  if (requestParameters['owner'] == null) {
@@ -612,7 +569,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
612
569
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
613
570
  }
614
571
  const response = await this.request({
615
- 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']))),
572
+ path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation_bundle`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"forkId"}}`, encodeURIComponent(String(requestParameters['forkId']))),
616
573
  method: 'POST',
617
574
  headers: headerParameters,
618
575
  query: queryParameters,
@@ -621,12 +578,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
621
578
  return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
622
579
  }
623
580
  /**
581
+ * Run Bundle simulation on Fork
624
582
  */
625
583
  async simulateTransactionBundleByFork(requestParameters, initOverrides) {
626
584
  const response = await this.simulateTransactionBundleByForkRaw(requestParameters, initOverrides);
627
585
  return await response.value();
628
586
  }
629
587
  /**
588
+ * Run Simulation on Fork
630
589
  */
631
590
  async simulateTransactionByForkRaw(requestParameters, initOverrides) {
632
591
  if (requestParameters['owner'] == null) {
@@ -648,7 +607,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
648
607
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
649
608
  }
650
609
  const response = await this.request({
651
- 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']))),
610
+ path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"forkId"}}`, encodeURIComponent(String(requestParameters['forkId']))),
652
611
  method: 'POST',
653
612
  headers: headerParameters,
654
613
  query: queryParameters,
@@ -657,6 +616,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
657
616
  return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue));
658
617
  }
659
618
  /**
619
+ * Run Simulation on Fork
660
620
  */
661
621
  async simulateTransactionByFork(requestParameters, initOverrides) {
662
622
  const response = await this.simulateTransactionByForkRaw(requestParameters, initOverrides);