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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/src/apis/DebugAndSimulationApi.d.ts +73 -105
  2. package/dist/src/apis/DebugAndSimulationApi.js +121 -189
  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/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.d.ts +1 -1
  8. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js +2 -2
  9. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js.map +1 -1
  10. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.d.ts +1 -1
  11. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js +3 -1
  12. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js.map +1 -1
  13. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.d.ts +40 -0
  14. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js +50 -0
  15. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js.map +1 -0
  16. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.d.ts +32 -0
  17. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js +42 -0
  18. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js.map +1 -0
  19. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.d.ts +40 -0
  20. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js +50 -0
  21. package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js.map +1 -0
  22. package/dist/src/models/SolidityServiceTxIdentifier.d.ts +1 -1
  23. package/dist/src/models/index.d.ts +3 -0
  24. package/dist/src/models/index.js +3 -0
  25. package/dist/src/models/index.js.map +1 -1
  26. package/package.json +1 -1
  27. package/src/apis/DebugAndSimulationApi.ts +158 -256
  28. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.ts +3 -2
  29. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.ts +3 -3
  30. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.ts +3 -2
  31. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts +90 -0
  32. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.ts +65 -0
  33. package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts +90 -0
  34. package/src/models/SolidityServiceTxIdentifier.ts +1 -1
  35. package/src/models/index.ts +3 -0
@@ -12,38 +12,28 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import * as runtime from '../runtime.js';
15
- import { GoogleApiHttpBodyFromJSON, SolidityServiceGetSimulationBundleResponseFromJSON, SolidityServiceGetSimulationResponseFromJSON, SolidityServiceGetSimulationsResponseFromJSON, SolidityServiceSimulateTransactionBundleResponseFromJSON, SolidityServiceSimulateTransactionResponseFromJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON, TxindexEvmSearchTransactionsResponseFromJSON, } from '../models/index.js';
15
+ import { GoogleApiHttpBodyFromJSON, SolidityServiceGetSimulationBundleResponseFromJSON, SolidityServiceGetSimulationResponseFromJSON, SolidityServiceGetSimulationsResponseFromJSON, SolidityServiceSimulateTransactionBundleResponseFromJSON, SolidityServiceSimulateTransactionResponseFromJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyToJSON, SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyToJSON, TxindexEvmSearchTransactionsResponseFromJSON, } from '../models/index.js';
16
16
  /**
17
17
  *
18
18
  */
19
19
  export class DebugAndSimulationApi extends runtime.BaseAPI {
20
20
  /**
21
- * 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)
22
- * Get indexed call trace
21
+ * Get Call Trace by Bundle Simulation
23
22
  */
24
- async getCallTraceRaw(requestParameters, initOverrides) {
23
+ async getCallTraceByBundleRaw(requestParameters, initOverrides) {
25
24
  if (requestParameters['owner'] == null) {
26
- throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTrace().');
25
+ throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceByBundle().');
27
26
  }
28
27
  if (requestParameters['slug'] == null) {
29
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTrace().');
28
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceByBundle().');
30
29
  }
31
30
  if (requestParameters['chainId'] == null) {
32
- throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling getCallTrace().');
31
+ throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling getCallTraceByBundle().');
33
32
  }
34
- if (requestParameters['txHash'] == null) {
35
- throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling getCallTrace().');
33
+ if (requestParameters['bundleId'] == null) {
34
+ throw new runtime.RequiredError('bundleId', 'Required parameter "bundleId" was null or undefined when calling getCallTraceByBundle().');
36
35
  }
37
36
  const queryParameters = {};
38
- if (requestParameters['chainSpecForkId'] != null) {
39
- queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId'];
40
- }
41
- if (requestParameters['txIdSimulationId'] != null) {
42
- queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
43
- }
44
- if (requestParameters['txIdBundleId'] != null) {
45
- queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
46
- }
47
37
  if (requestParameters['withInternalCalls'] != null) {
48
38
  queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
49
39
  }
@@ -58,7 +48,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
58
48
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
59
49
  }
60
50
  const response = await this.request({
61
- 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']))),
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']))),
62
52
  method: 'GET',
63
53
  headers: headerParameters,
64
54
  query: queryParameters,
@@ -66,40 +56,29 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
66
56
  return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
67
57
  }
68
58
  /**
69
- * 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)
70
- * Get indexed call trace
59
+ * Get Call Trace by Bundle Simulation
71
60
  */
72
- async getCallTrace(requestParameters, initOverrides) {
73
- const response = await this.getCallTraceRaw(requestParameters, initOverrides);
61
+ async getCallTraceByBundle(requestParameters, initOverrides) {
62
+ const response = await this.getCallTraceByBundleRaw(requestParameters, initOverrides);
74
63
  return await response.value();
75
64
  }
76
65
  /**
77
- * 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)
78
- * Get indexed call trace
66
+ * Get Call Trace by Bundle Simulation on Fork
79
67
  */
80
- async getCallTrace2Raw(requestParameters, initOverrides) {
68
+ async getCallTraceByForkBundleRaw(requestParameters, initOverrides) {
81
69
  if (requestParameters['owner'] == null) {
82
- throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTrace2().');
70
+ throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceByForkBundle().');
83
71
  }
84
72
  if (requestParameters['slug'] == null) {
85
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTrace2().');
73
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceByForkBundle().');
86
74
  }
87
- if (requestParameters['chainId'] == null) {
88
- throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling getCallTrace2().');
75
+ if (requestParameters['forkId'] == null) {
76
+ throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTraceByForkBundle().');
89
77
  }
90
- if (requestParameters['simulationId'] == null) {
91
- throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getCallTrace2().');
78
+ if (requestParameters['bundleId'] == null) {
79
+ throw new runtime.RequiredError('bundleId', 'Required parameter "bundleId" was null or undefined when calling getCallTraceByForkBundle().');
92
80
  }
93
81
  const queryParameters = {};
94
- if (requestParameters['chainSpecForkId'] != null) {
95
- queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId'];
96
- }
97
- if (requestParameters['txIdTxHash'] != null) {
98
- queryParameters['txId.txHash'] = requestParameters['txIdTxHash'];
99
- }
100
- if (requestParameters['txIdBundleId'] != null) {
101
- queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
102
- }
103
82
  if (requestParameters['withInternalCalls'] != null) {
104
83
  queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
105
84
  }
@@ -114,7 +93,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
114
93
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
115
94
  }
116
95
  const response = await this.request({
117
- 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']))),
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']))),
118
97
  method: 'GET',
119
98
  headers: headerParameters,
120
99
  query: queryParameters,
@@ -122,40 +101,29 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
122
101
  return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
123
102
  }
124
103
  /**
125
- * 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)
126
- * Get indexed call trace
104
+ * Get Call Trace by Bundle Simulation on Fork
127
105
  */
128
- async getCallTrace2(requestParameters, initOverrides) {
129
- const response = await this.getCallTrace2Raw(requestParameters, initOverrides);
106
+ async getCallTraceByForkBundle(requestParameters, initOverrides) {
107
+ const response = await this.getCallTraceByForkBundleRaw(requestParameters, initOverrides);
130
108
  return await response.value();
131
109
  }
132
110
  /**
133
- * 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)
134
- * Get indexed call trace
111
+ * Get Call Trace by Simulation on Fork
135
112
  */
136
- async getCallTrace3Raw(requestParameters, initOverrides) {
113
+ async getCallTraceByForkSimulationRaw(requestParameters, initOverrides) {
137
114
  if (requestParameters['owner'] == null) {
138
- throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTrace3().');
115
+ throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceByForkSimulation().');
139
116
  }
140
117
  if (requestParameters['slug'] == null) {
141
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTrace3().');
118
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceByForkSimulation().');
142
119
  }
143
- if (requestParameters['chainId'] == null) {
144
- throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling getCallTrace3().');
120
+ if (requestParameters['forkId'] == null) {
121
+ throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTraceByForkSimulation().');
145
122
  }
146
- if (requestParameters['bundleId'] == null) {
147
- throw new runtime.RequiredError('bundleId', 'Required parameter "bundleId" was null or undefined when calling getCallTrace3().');
123
+ if (requestParameters['simulationId'] == null) {
124
+ throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getCallTraceByForkSimulation().');
148
125
  }
149
126
  const queryParameters = {};
150
- if (requestParameters['chainSpecForkId'] != null) {
151
- queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId'];
152
- }
153
- if (requestParameters['txIdTxHash'] != null) {
154
- queryParameters['txId.txHash'] = requestParameters['txIdTxHash'];
155
- }
156
- if (requestParameters['txIdSimulationId'] != null) {
157
- queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
158
- }
159
127
  if (requestParameters['withInternalCalls'] != null) {
160
128
  queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
161
129
  }
@@ -170,7 +138,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
170
138
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
171
139
  }
172
140
  const response = await this.request({
173
- 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']))),
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']))),
174
142
  method: 'GET',
175
143
  headers: headerParameters,
176
144
  query: queryParameters,
@@ -178,40 +146,29 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
178
146
  return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
179
147
  }
180
148
  /**
181
- * 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)
182
- * Get indexed call trace
149
+ * Get Call Trace by Simulation on Fork
183
150
  */
184
- async getCallTrace3(requestParameters, initOverrides) {
185
- const response = await this.getCallTrace3Raw(requestParameters, initOverrides);
151
+ async getCallTraceByForkSimulation(requestParameters, initOverrides) {
152
+ const response = await this.getCallTraceByForkSimulationRaw(requestParameters, initOverrides);
186
153
  return await response.value();
187
154
  }
188
155
  /**
189
- * 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)
190
- * Get indexed call trace
156
+ * Get Call Trace by Transaction on Fork
191
157
  */
192
- async getCallTrace4Raw(requestParameters, initOverrides) {
158
+ async getCallTraceByForkTransactionRaw(requestParameters, initOverrides) {
193
159
  if (requestParameters['owner'] == null) {
194
- throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTrace4().');
160
+ throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceByForkTransaction().');
195
161
  }
196
162
  if (requestParameters['slug'] == null) {
197
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTrace4().');
163
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceByForkTransaction().');
198
164
  }
199
165
  if (requestParameters['forkId'] == null) {
200
- throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTrace4().');
166
+ throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTraceByForkTransaction().');
201
167
  }
202
168
  if (requestParameters['txHash'] == null) {
203
- throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling getCallTrace4().');
169
+ throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling getCallTraceByForkTransaction().');
204
170
  }
205
171
  const queryParameters = {};
206
- if (requestParameters['chainSpecChainId'] != null) {
207
- queryParameters['chainSpec.chainId'] = requestParameters['chainSpecChainId'];
208
- }
209
- if (requestParameters['txIdSimulationId'] != null) {
210
- queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
211
- }
212
- if (requestParameters['txIdBundleId'] != null) {
213
- queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
214
- }
215
172
  if (requestParameters['withInternalCalls'] != null) {
216
173
  queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
217
174
  }
@@ -226,7 +183,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
226
183
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
227
184
  }
228
185
  const response = await this.request({
229
- 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']))),
230
187
  method: 'GET',
231
188
  headers: headerParameters,
232
189
  query: queryParameters,
@@ -234,40 +191,29 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
234
191
  return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
235
192
  }
236
193
  /**
237
- * 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)
238
- * Get indexed call trace
194
+ * Get Call Trace by Transaction on Fork
239
195
  */
240
- async getCallTrace4(requestParameters, initOverrides) {
241
- const response = await this.getCallTrace4Raw(requestParameters, initOverrides);
196
+ async getCallTraceByForkTransaction(requestParameters, initOverrides) {
197
+ const response = await this.getCallTraceByForkTransactionRaw(requestParameters, initOverrides);
242
198
  return await response.value();
243
199
  }
244
200
  /**
245
- * 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)
246
- * Get indexed call trace
201
+ * Get Call Trace by Simulation
247
202
  */
248
- async getCallTrace5Raw(requestParameters, initOverrides) {
203
+ async getCallTraceBySimulationRaw(requestParameters, initOverrides) {
249
204
  if (requestParameters['owner'] == null) {
250
- throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTrace5().');
205
+ throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceBySimulation().');
251
206
  }
252
207
  if (requestParameters['slug'] == null) {
253
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTrace5().');
208
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceBySimulation().');
254
209
  }
255
- if (requestParameters['forkId'] == null) {
256
- throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTrace5().');
210
+ if (requestParameters['chainId'] == null) {
211
+ throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling getCallTraceBySimulation().');
257
212
  }
258
213
  if (requestParameters['simulationId'] == null) {
259
- throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getCallTrace5().');
214
+ throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getCallTraceBySimulation().');
260
215
  }
261
216
  const queryParameters = {};
262
- if (requestParameters['chainSpecChainId'] != null) {
263
- queryParameters['chainSpec.chainId'] = requestParameters['chainSpecChainId'];
264
- }
265
- if (requestParameters['txIdTxHash'] != null) {
266
- queryParameters['txId.txHash'] = requestParameters['txIdTxHash'];
267
- }
268
- if (requestParameters['txIdBundleId'] != null) {
269
- queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
270
- }
271
217
  if (requestParameters['withInternalCalls'] != null) {
272
218
  queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
273
219
  }
@@ -282,7 +228,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
282
228
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
283
229
  }
284
230
  const response = await this.request({
285
- 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']))),
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']))),
286
232
  method: 'GET',
287
233
  headers: headerParameters,
288
234
  query: queryParameters,
@@ -290,40 +236,30 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
290
236
  return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
291
237
  }
292
238
  /**
293
- * 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)
294
- * Get indexed call trace
239
+ * Get Call Trace by Simulation
295
240
  */
296
- async getCallTrace5(requestParameters, initOverrides) {
297
- const response = await this.getCallTrace5Raw(requestParameters, initOverrides);
241
+ async getCallTraceBySimulation(requestParameters, initOverrides) {
242
+ const response = await this.getCallTraceBySimulationRaw(requestParameters, initOverrides);
298
243
  return await response.value();
299
244
  }
300
245
  /**
301
- * 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)
302
- * Get indexed call trace
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)
247
+ * Get Call Trace by Transaction
303
248
  */
304
- async getCallTrace6Raw(requestParameters, initOverrides) {
249
+ async getCallTraceByTransactionRaw(requestParameters, initOverrides) {
305
250
  if (requestParameters['owner'] == null) {
306
- throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTrace6().');
251
+ throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceByTransaction().');
307
252
  }
308
253
  if (requestParameters['slug'] == null) {
309
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTrace6().');
254
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceByTransaction().');
310
255
  }
311
- if (requestParameters['forkId'] == null) {
312
- throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTrace6().');
256
+ if (requestParameters['chainId'] == null) {
257
+ throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling getCallTraceByTransaction().');
313
258
  }
314
- if (requestParameters['bundleId'] == null) {
315
- throw new runtime.RequiredError('bundleId', 'Required parameter "bundleId" was null or undefined when calling getCallTrace6().');
259
+ if (requestParameters['txHash'] == null) {
260
+ throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling getCallTraceByTransaction().');
316
261
  }
317
262
  const queryParameters = {};
318
- if (requestParameters['chainSpecChainId'] != null) {
319
- queryParameters['chainSpec.chainId'] = requestParameters['chainSpecChainId'];
320
- }
321
- if (requestParameters['txIdTxHash'] != null) {
322
- queryParameters['txId.txHash'] = requestParameters['txIdTxHash'];
323
- }
324
- if (requestParameters['txIdSimulationId'] != null) {
325
- queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
326
- }
327
263
  if (requestParameters['withInternalCalls'] != null) {
328
264
  queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
329
265
  }
@@ -338,7 +274,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
338
274
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
339
275
  }
340
276
  const response = await this.request({
341
- 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']))),
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']))),
342
278
  method: 'GET',
343
279
  headers: headerParameters,
344
280
  query: queryParameters,
@@ -346,15 +282,15 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
346
282
  return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
347
283
  }
348
284
  /**
349
- * 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)
350
- * Get indexed call trace
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)
286
+ * Get Call Trace by Transaction
351
287
  */
352
- async getCallTrace6(requestParameters, initOverrides) {
353
- const response = await this.getCallTrace6Raw(requestParameters, initOverrides);
288
+ async getCallTraceByTransaction(requestParameters, initOverrides) {
289
+ const response = await this.getCallTraceByTransactionRaw(requestParameters, initOverrides);
354
290
  return await response.value();
355
291
  }
356
292
  /**
357
- * Get a simulation by id
293
+ * Get Simulation by ID
358
294
  */
359
295
  async getSimulationRaw(requestParameters, initOverrides) {
360
296
  if (requestParameters['owner'] == null) {
@@ -380,14 +316,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
380
316
  return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetSimulationResponseFromJSON(jsonValue));
381
317
  }
382
318
  /**
383
- * Get a simulation by id
319
+ * Get Simulation by ID
384
320
  */
385
321
  async getSimulation(requestParameters, initOverrides) {
386
322
  const response = await this.getSimulationRaw(requestParameters, initOverrides);
387
323
  return await response.value();
388
324
  }
389
325
  /**
390
- * Get a bundle simulation by id
326
+ * Get Bundle Simulation by ID
391
327
  */
392
328
  async getSimulationBundleInProjectRaw(requestParameters, initOverrides) {
393
329
  if (requestParameters['owner'] == null) {
@@ -413,14 +349,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
413
349
  return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetSimulationBundleResponseFromJSON(jsonValue));
414
350
  }
415
351
  /**
416
- * Get a bundle simulation by id
352
+ * Get Bundle Simulation by ID
417
353
  */
418
354
  async getSimulationBundleInProject(requestParameters, initOverrides) {
419
355
  const response = await this.getSimulationBundleInProjectRaw(requestParameters, initOverrides);
420
356
  return await response.value();
421
357
  }
422
358
  /**
423
- * Get existing transaction simulations
359
+ * Get Existied Simulations
424
360
  */
425
361
  async getSimulationsRaw(requestParameters, initOverrides) {
426
362
  if (requestParameters['owner'] == null) {
@@ -452,14 +388,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
452
388
  return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetSimulationsResponseFromJSON(jsonValue));
453
389
  }
454
390
  /**
455
- * Get existing transaction simulations
391
+ * Get Existied Simulations
456
392
  */
457
393
  async getSimulations(requestParameters, initOverrides) {
458
394
  const response = await this.getSimulationsRaw(requestParameters, initOverrides);
459
395
  return await response.value();
460
396
  }
461
397
  /**
462
- * Search for transactions
398
+ * Search transactions
463
399
  */
464
400
  async searchTransactionsRaw(requestParameters, initOverrides) {
465
401
  if (requestParameters['owner'] == null) {
@@ -524,7 +460,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
524
460
  return new runtime.JSONApiResponse(response, (jsonValue) => TxindexEvmSearchTransactionsResponseFromJSON(jsonValue));
525
461
  }
526
462
  /**
527
- * Search for transactions
463
+ * Search transactions
528
464
  */
529
465
  async searchTransactions(requestParameters, initOverrides) {
530
466
  const response = await this.searchTransactionsRaw(requestParameters, initOverrides);
@@ -532,7 +468,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
532
468
  }
533
469
  /**
534
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.
535
- * Single simulation
471
+ * Run Simulation
536
472
  */
537
473
  async simulateTransactionRaw(requestParameters, initOverrides) {
538
474
  if (requestParameters['owner'] == null) {
@@ -554,7 +490,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
554
490
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
555
491
  }
556
492
  const response = await this.request({
557
- 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']))),
558
494
  method: 'POST',
559
495
  headers: headerParameters,
560
496
  query: queryParameters,
@@ -564,28 +500,28 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
564
500
  }
565
501
  /**
566
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.
567
- * Single simulation
503
+ * Run Simulation
568
504
  */
569
505
  async simulateTransaction(requestParameters, initOverrides) {
570
506
  const response = await this.simulateTransactionRaw(requestParameters, initOverrides);
571
507
  return await response.value();
572
508
  }
573
509
  /**
574
- * 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.
575
- * Single simulation
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.
511
+ * Run Bundle simulation
576
512
  */
577
- async simulateTransaction2Raw(requestParameters, initOverrides) {
513
+ async simulateTransactionBundleRaw(requestParameters, initOverrides) {
578
514
  if (requestParameters['owner'] == null) {
579
- throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransaction2().');
515
+ throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransactionBundle().');
580
516
  }
581
517
  if (requestParameters['slug'] == null) {
582
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransaction2().');
518
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransactionBundle().');
583
519
  }
584
- if (requestParameters['forkId'] == null) {
585
- throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling simulateTransaction2().');
520
+ if (requestParameters['chainId'] == null) {
521
+ throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling simulateTransactionBundle().');
586
522
  }
587
523
  if (requestParameters['body'] == null) {
588
- throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransaction2().');
524
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionBundle().');
589
525
  }
590
526
  const queryParameters = {};
591
527
  const headerParameters = {};
@@ -594,38 +530,37 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
594
530
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
595
531
  }
596
532
  const response = await this.request({
597
- 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']))),
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']))),
598
534
  method: 'POST',
599
535
  headers: headerParameters,
600
536
  query: queryParameters,
601
- body: SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON(requestParameters['body']),
537
+ body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON(requestParameters['body']),
602
538
  }, initOverrides);
603
- return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue));
539
+ return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
604
540
  }
605
541
  /**
606
- * 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.
607
- * Single simulation
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.
543
+ * Run Bundle simulation
608
544
  */
609
- async simulateTransaction2(requestParameters, initOverrides) {
610
- const response = await this.simulateTransaction2Raw(requestParameters, initOverrides);
545
+ async simulateTransactionBundle(requestParameters, initOverrides) {
546
+ const response = await this.simulateTransactionBundleRaw(requestParameters, initOverrides);
611
547
  return await response.value();
612
548
  }
613
549
  /**
614
- * 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.
615
- * Bundle simulation
550
+ * Run Bundle simulation on Fork
616
551
  */
617
- async simulateTransactionBundleRaw(requestParameters, initOverrides) {
552
+ async simulateTransactionBundleByForkRaw(requestParameters, initOverrides) {
618
553
  if (requestParameters['owner'] == null) {
619
- throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransactionBundle().');
554
+ throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransactionBundleByFork().');
620
555
  }
621
556
  if (requestParameters['slug'] == null) {
622
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransactionBundle().');
557
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransactionBundleByFork().');
623
558
  }
624
- if (requestParameters['chainId'] == null) {
625
- throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling simulateTransactionBundle().');
559
+ if (requestParameters['forkId'] == null) {
560
+ throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling simulateTransactionBundleByFork().');
626
561
  }
627
562
  if (requestParameters['body'] == null) {
628
- throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionBundle().');
563
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionBundleByFork().');
629
564
  }
630
565
  const queryParameters = {};
631
566
  const headerParameters = {};
@@ -634,38 +569,36 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
634
569
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
635
570
  }
636
571
  const response = await this.request({
637
- 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']))),
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']))),
638
573
  method: 'POST',
639
574
  headers: headerParameters,
640
575
  query: queryParameters,
641
- body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON(requestParameters['body']),
576
+ body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyToJSON(requestParameters['body']),
642
577
  }, initOverrides);
643
578
  return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
644
579
  }
645
580
  /**
646
- * 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.
647
- * Bundle simulation
581
+ * Run Bundle simulation on Fork
648
582
  */
649
- async simulateTransactionBundle(requestParameters, initOverrides) {
650
- const response = await this.simulateTransactionBundleRaw(requestParameters, initOverrides);
583
+ async simulateTransactionBundleByFork(requestParameters, initOverrides) {
584
+ const response = await this.simulateTransactionBundleByForkRaw(requestParameters, initOverrides);
651
585
  return await response.value();
652
586
  }
653
587
  /**
654
- * 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.
655
- * Bundle simulation
588
+ * Run Simulation on Fork
656
589
  */
657
- async simulateTransactionBundle2Raw(requestParameters, initOverrides) {
590
+ async simulateTransactionByForkRaw(requestParameters, initOverrides) {
658
591
  if (requestParameters['owner'] == null) {
659
- throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransactionBundle2().');
592
+ throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransactionByFork().');
660
593
  }
661
594
  if (requestParameters['slug'] == null) {
662
- throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransactionBundle2().');
595
+ throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransactionByFork().');
663
596
  }
664
597
  if (requestParameters['forkId'] == null) {
665
- throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling simulateTransactionBundle2().');
598
+ throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling simulateTransactionByFork().');
666
599
  }
667
600
  if (requestParameters['body'] == null) {
668
- throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionBundle2().');
601
+ throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionByFork().');
669
602
  }
670
603
  const queryParameters = {};
671
604
  const headerParameters = {};
@@ -674,20 +607,19 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
674
607
  headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
675
608
  }
676
609
  const response = await this.request({
677
- 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']))),
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']))),
678
611
  method: 'POST',
679
612
  headers: headerParameters,
680
613
  query: queryParameters,
681
- body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON(requestParameters['body']),
614
+ body: SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyToJSON(requestParameters['body']),
682
615
  }, initOverrides);
683
- return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
616
+ return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue));
684
617
  }
685
618
  /**
686
- * 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.
687
- * Bundle simulation
619
+ * Run Simulation on Fork
688
620
  */
689
- async simulateTransactionBundle2(requestParameters, initOverrides) {
690
- const response = await this.simulateTransactionBundle2Raw(requestParameters, initOverrides);
621
+ async simulateTransactionByFork(requestParameters, initOverrides) {
622
+ const response = await this.simulateTransactionByForkRaw(requestParameters, initOverrides);
691
623
  return await response.value();
692
624
  }
693
625
  }