@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.
- package/dist/src/apis/DebugAndSimulationApi.d.ts +73 -105
- package/dist/src/apis/DebugAndSimulationApi.js +121 -189
- package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.d.ts +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.js +3 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.js.map +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.d.ts +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js +2 -2
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js.map +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.d.ts +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js +3 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js.map +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.d.ts +40 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js +50 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js.map +1 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.d.ts +32 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js +42 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.js.map +1 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.d.ts +40 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js +50 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js.map +1 -0
- package/dist/src/models/SolidityServiceTxIdentifier.d.ts +1 -1
- package/dist/src/models/index.d.ts +3 -0
- package/dist/src/models/index.js +3 -0
- package/dist/src/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DebugAndSimulationApi.ts +158 -256
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.ts +3 -2
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.ts +3 -3
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.ts +3 -2
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts +90 -0
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyChainSpec.ts +65 -0
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts +90 -0
- package/src/models/SolidityServiceTxIdentifier.ts +1 -1
- 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
|
-
*
|
|
22
|
-
* Get indexed call trace
|
|
21
|
+
* Get Call Trace by Bundle Simulation
|
|
23
22
|
*/
|
|
24
|
-
async
|
|
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
|
|
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
|
|
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
|
|
31
|
+
throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling getCallTraceByBundle().');
|
|
33
32
|
}
|
|
34
|
-
if (requestParameters['
|
|
35
|
-
throw new runtime.RequiredError('
|
|
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}/{
|
|
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
|
-
*
|
|
70
|
-
* Get indexed call trace
|
|
59
|
+
* Get Call Trace by Bundle Simulation
|
|
71
60
|
*/
|
|
72
|
-
async
|
|
73
|
-
const response = await this.
|
|
61
|
+
async getCallTraceByBundle(requestParameters, initOverrides) {
|
|
62
|
+
const response = await this.getCallTraceByBundleRaw(requestParameters, initOverrides);
|
|
74
63
|
return await response.value();
|
|
75
64
|
}
|
|
76
65
|
/**
|
|
77
|
-
*
|
|
78
|
-
* Get indexed call trace
|
|
66
|
+
* Get Call Trace by Bundle Simulation on Fork
|
|
79
67
|
*/
|
|
80
|
-
async
|
|
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
|
|
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
|
|
73
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceByForkBundle().');
|
|
86
74
|
}
|
|
87
|
-
if (requestParameters['
|
|
88
|
-
throw new runtime.RequiredError('
|
|
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['
|
|
91
|
-
throw new runtime.RequiredError('
|
|
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}/{
|
|
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
|
-
*
|
|
126
|
-
* Get indexed call trace
|
|
104
|
+
* Get Call Trace by Bundle Simulation on Fork
|
|
127
105
|
*/
|
|
128
|
-
async
|
|
129
|
-
const response = await this.
|
|
106
|
+
async getCallTraceByForkBundle(requestParameters, initOverrides) {
|
|
107
|
+
const response = await this.getCallTraceByForkBundleRaw(requestParameters, initOverrides);
|
|
130
108
|
return await response.value();
|
|
131
109
|
}
|
|
132
110
|
/**
|
|
133
|
-
*
|
|
134
|
-
* Get indexed call trace
|
|
111
|
+
* Get Call Trace by Simulation on Fork
|
|
135
112
|
*/
|
|
136
|
-
async
|
|
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
|
|
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
|
|
118
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceByForkSimulation().');
|
|
142
119
|
}
|
|
143
|
-
if (requestParameters['
|
|
144
|
-
throw new runtime.RequiredError('
|
|
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['
|
|
147
|
-
throw new runtime.RequiredError('
|
|
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}/{
|
|
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
|
-
*
|
|
182
|
-
* Get indexed call trace
|
|
149
|
+
* Get Call Trace by Simulation on Fork
|
|
183
150
|
*/
|
|
184
|
-
async
|
|
185
|
-
const response = await this.
|
|
151
|
+
async getCallTraceByForkSimulation(requestParameters, initOverrides) {
|
|
152
|
+
const response = await this.getCallTraceByForkSimulationRaw(requestParameters, initOverrides);
|
|
186
153
|
return await response.value();
|
|
187
154
|
}
|
|
188
155
|
/**
|
|
189
|
-
*
|
|
190
|
-
* Get indexed call trace
|
|
156
|
+
* Get Call Trace by Transaction on Fork
|
|
191
157
|
*/
|
|
192
|
-
async
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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/{
|
|
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
|
-
*
|
|
238
|
-
* Get indexed call trace
|
|
194
|
+
* Get Call Trace by Transaction on Fork
|
|
239
195
|
*/
|
|
240
|
-
async
|
|
241
|
-
const response = await this.
|
|
196
|
+
async getCallTraceByForkTransaction(requestParameters, initOverrides) {
|
|
197
|
+
const response = await this.getCallTraceByForkTransactionRaw(requestParameters, initOverrides);
|
|
242
198
|
return await response.value();
|
|
243
199
|
}
|
|
244
200
|
/**
|
|
245
|
-
*
|
|
246
|
-
* Get indexed call trace
|
|
201
|
+
* Get Call Trace by Simulation
|
|
247
202
|
*/
|
|
248
|
-
async
|
|
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
|
|
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
|
|
208
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceBySimulation().');
|
|
254
209
|
}
|
|
255
|
-
if (requestParameters['
|
|
256
|
-
throw new runtime.RequiredError('
|
|
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
|
|
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}/
|
|
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
|
-
*
|
|
294
|
-
* Get indexed call trace
|
|
239
|
+
* Get Call Trace by Simulation
|
|
295
240
|
*/
|
|
296
|
-
async
|
|
297
|
-
const response = await this.
|
|
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 `
|
|
302
|
-
* Get
|
|
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. %20(1)%20(1)%20(1).png)
|
|
247
|
+
* Get Call Trace by Transaction
|
|
303
248
|
*/
|
|
304
|
-
async
|
|
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
|
|
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
|
|
254
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceByTransaction().');
|
|
310
255
|
}
|
|
311
|
-
if (requestParameters['
|
|
312
|
-
throw new runtime.RequiredError('
|
|
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['
|
|
315
|
-
throw new runtime.RequiredError('
|
|
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}/
|
|
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 `
|
|
350
|
-
* Get
|
|
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. %20(1)%20(1)%20(1).png)
|
|
286
|
+
* Get Call Trace by Transaction
|
|
351
287
|
*/
|
|
352
|
-
async
|
|
353
|
-
const response = await this.
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
-
*
|
|
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}/{
|
|
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
|
-
*
|
|
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
|
-
*
|
|
575
|
-
*
|
|
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
|
|
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
|
|
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
|
|
518
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransactionBundle().');
|
|
583
519
|
}
|
|
584
|
-
if (requestParameters['
|
|
585
|
-
throw new runtime.RequiredError('
|
|
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
|
|
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}/
|
|
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:
|
|
537
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON(requestParameters['body']),
|
|
602
538
|
}, initOverrides);
|
|
603
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
539
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
|
|
604
540
|
}
|
|
605
541
|
/**
|
|
606
|
-
*
|
|
607
|
-
*
|
|
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
|
|
610
|
-
const response = await this.
|
|
545
|
+
async simulateTransactionBundle(requestParameters, initOverrides) {
|
|
546
|
+
const response = await this.simulateTransactionBundleRaw(requestParameters, initOverrides);
|
|
611
547
|
return await response.value();
|
|
612
548
|
}
|
|
613
549
|
/**
|
|
614
|
-
*
|
|
615
|
-
* Bundle simulation
|
|
550
|
+
* Run Bundle simulation on Fork
|
|
616
551
|
*/
|
|
617
|
-
async
|
|
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
|
|
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
|
|
557
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransactionBundleByFork().');
|
|
623
558
|
}
|
|
624
|
-
if (requestParameters['
|
|
625
|
-
throw new runtime.RequiredError('
|
|
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
|
|
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}/{
|
|
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:
|
|
576
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBodyToJSON(requestParameters['body']),
|
|
642
577
|
}, initOverrides);
|
|
643
578
|
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
|
|
644
579
|
}
|
|
645
580
|
/**
|
|
646
|
-
*
|
|
647
|
-
* Bundle simulation
|
|
581
|
+
* Run Bundle simulation on Fork
|
|
648
582
|
*/
|
|
649
|
-
async
|
|
650
|
-
const response = await this.
|
|
583
|
+
async simulateTransactionBundleByFork(requestParameters, initOverrides) {
|
|
584
|
+
const response = await this.simulateTransactionBundleByForkRaw(requestParameters, initOverrides);
|
|
651
585
|
return await response.value();
|
|
652
586
|
}
|
|
653
587
|
/**
|
|
654
|
-
*
|
|
655
|
-
* Bundle simulation
|
|
588
|
+
* Run Simulation on Fork
|
|
656
589
|
*/
|
|
657
|
-
async
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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/{
|
|
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:
|
|
614
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionByForkBodyToJSON(requestParameters['body']),
|
|
682
615
|
}, initOverrides);
|
|
683
|
-
return new runtime.JSONApiResponse(response, (jsonValue) =>
|
|
616
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue));
|
|
684
617
|
}
|
|
685
618
|
/**
|
|
686
|
-
*
|
|
687
|
-
* Bundle simulation
|
|
619
|
+
* Run Simulation on Fork
|
|
688
620
|
*/
|
|
689
|
-
async
|
|
690
|
-
const response = await this.
|
|
621
|
+
async simulateTransactionByFork(requestParameters, initOverrides) {
|
|
622
|
+
const response = await this.simulateTransactionByForkRaw(requestParameters, initOverrides);
|
|
691
623
|
return await response.value();
|
|
692
624
|
}
|
|
693
625
|
}
|