@sentio/api 1.0.2-rc.27 → 1.0.2-rc.29
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 +17 -96
- package/dist/src/apis/DebugAndSimulationApi.js +17 -228
- package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
- package/dist/src/apis/ForksApi.d.ts +88 -9
- package/dist/src/apis/ForksApi.js +220 -9
- package/dist/src/apis/ForksApi.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DebugAndSimulationApi.ts +16 -398
- package/src/apis/ForksApi.ts +399 -8
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { GoogleApiHttpBody, SolidityServiceGetSimulationBundleResponse, SolidityServiceGetSimulationResponse, SolidityServiceGetSimulationsResponse, SolidityServiceSimulateTransactionBundleResponse, SolidityServiceSimulateTransactionResponse, SolidityServiceSolidityAPIServiceSimulateTransactionBody, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody,
|
|
13
|
+
import type { GoogleApiHttpBody, SolidityServiceGetSimulationBundleResponse, SolidityServiceGetSimulationResponse, SolidityServiceGetSimulationsResponse, SolidityServiceSimulateTransactionBundleResponse, SolidityServiceSimulateTransactionResponse, SolidityServiceSolidityAPIServiceSimulateTransactionBody, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody, TxindexEvmSearchTransactionsResponse } from '../models/index.js';
|
|
14
14
|
export interface GetCallTraceByBundleRequest {
|
|
15
15
|
owner: string;
|
|
16
16
|
slug: string;
|
|
@@ -38,33 +38,6 @@ export interface GetCallTraceByTransactionRequest {
|
|
|
38
38
|
disableOptimizer?: boolean;
|
|
39
39
|
ignoreGasCost?: boolean;
|
|
40
40
|
}
|
|
41
|
-
export interface GetCallTraceOnForkBundleRequest {
|
|
42
|
-
owner: string;
|
|
43
|
-
slug: string;
|
|
44
|
-
forkId: string;
|
|
45
|
-
bundleId: string;
|
|
46
|
-
withInternalCalls?: boolean;
|
|
47
|
-
disableOptimizer?: boolean;
|
|
48
|
-
ignoreGasCost?: boolean;
|
|
49
|
-
}
|
|
50
|
-
export interface GetCallTraceOnForkSimulationRequest {
|
|
51
|
-
owner: string;
|
|
52
|
-
slug: string;
|
|
53
|
-
forkId: string;
|
|
54
|
-
simulationId: string;
|
|
55
|
-
withInternalCalls?: boolean;
|
|
56
|
-
disableOptimizer?: boolean;
|
|
57
|
-
ignoreGasCost?: boolean;
|
|
58
|
-
}
|
|
59
|
-
export interface GetCallTraceOnForkTransactionRequest {
|
|
60
|
-
owner: string;
|
|
61
|
-
slug: string;
|
|
62
|
-
forkId: string;
|
|
63
|
-
txHash: string;
|
|
64
|
-
withInternalCalls?: boolean;
|
|
65
|
-
disableOptimizer?: boolean;
|
|
66
|
-
ignoreGasCost?: boolean;
|
|
67
|
-
}
|
|
68
41
|
export interface GetSimulationRequest {
|
|
69
42
|
owner: string;
|
|
70
43
|
slug: string;
|
|
@@ -112,94 +85,58 @@ export interface SimulateTransactionBundleRequest {
|
|
|
112
85
|
chainId: string;
|
|
113
86
|
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody;
|
|
114
87
|
}
|
|
115
|
-
export interface SimulateTransactionBundleOnForkRequest {
|
|
116
|
-
owner: string;
|
|
117
|
-
slug: string;
|
|
118
|
-
forkId: string;
|
|
119
|
-
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody;
|
|
120
|
-
}
|
|
121
|
-
export interface SimulateTransactionOnForkRequest {
|
|
122
|
-
owner: string;
|
|
123
|
-
slug: string;
|
|
124
|
-
forkId: string;
|
|
125
|
-
body: SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody;
|
|
126
|
-
}
|
|
127
88
|
/**
|
|
128
89
|
*
|
|
129
90
|
*/
|
|
130
91
|
export declare class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
131
92
|
/**
|
|
132
|
-
* Get
|
|
93
|
+
* Get trace by bundle simulation
|
|
133
94
|
*/
|
|
134
95
|
getCallTraceByBundleRaw(requestParameters: GetCallTraceByBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
|
|
135
96
|
/**
|
|
136
|
-
* Get
|
|
97
|
+
* Get trace by bundle simulation
|
|
137
98
|
*/
|
|
138
99
|
getCallTraceByBundle(requestParameters: GetCallTraceByBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
|
|
139
100
|
/**
|
|
140
|
-
* Get
|
|
101
|
+
* Get trace by simulation
|
|
141
102
|
*/
|
|
142
103
|
getCallTraceBySimulationRaw(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
|
|
143
104
|
/**
|
|
144
|
-
* Get
|
|
105
|
+
* Get trace by simulation
|
|
145
106
|
*/
|
|
146
107
|
getCallTraceBySimulation(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
|
|
147
108
|
/**
|
|
148
109
|
* 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)
|
|
149
|
-
* Get
|
|
110
|
+
* Get trace by transaction
|
|
150
111
|
*/
|
|
151
112
|
getCallTraceByTransactionRaw(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
|
|
152
113
|
/**
|
|
153
114
|
* 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)
|
|
154
|
-
* Get
|
|
115
|
+
* Get trace by transaction
|
|
155
116
|
*/
|
|
156
117
|
getCallTraceByTransaction(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
|
|
157
118
|
/**
|
|
158
|
-
* Get
|
|
159
|
-
*/
|
|
160
|
-
getCallTraceOnForkBundleRaw(requestParameters: GetCallTraceOnForkBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
|
|
161
|
-
/**
|
|
162
|
-
* Get Call Trace by Bundle Simulation on Fork
|
|
163
|
-
*/
|
|
164
|
-
getCallTraceOnForkBundle(requestParameters: GetCallTraceOnForkBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
|
|
165
|
-
/**
|
|
166
|
-
* Get Call Trace by Simulation on Fork
|
|
167
|
-
*/
|
|
168
|
-
getCallTraceOnForkSimulationRaw(requestParameters: GetCallTraceOnForkSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
|
|
169
|
-
/**
|
|
170
|
-
* Get Call Trace by Simulation on Fork
|
|
171
|
-
*/
|
|
172
|
-
getCallTraceOnForkSimulation(requestParameters: GetCallTraceOnForkSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
|
|
173
|
-
/**
|
|
174
|
-
* Get Call Trace by Transaction on Fork
|
|
175
|
-
*/
|
|
176
|
-
getCallTraceOnForkTransactionRaw(requestParameters: GetCallTraceOnForkTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
|
|
177
|
-
/**
|
|
178
|
-
* Get Call Trace by Transaction on Fork
|
|
179
|
-
*/
|
|
180
|
-
getCallTraceOnForkTransaction(requestParameters: GetCallTraceOnForkTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
|
|
181
|
-
/**
|
|
182
|
-
* Get Simulation by ID
|
|
119
|
+
* Get simulation by ID
|
|
183
120
|
*/
|
|
184
121
|
getSimulationRaw(requestParameters: GetSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceGetSimulationResponse>>;
|
|
185
122
|
/**
|
|
186
|
-
* Get
|
|
123
|
+
* Get simulation by ID
|
|
187
124
|
*/
|
|
188
125
|
getSimulation(requestParameters: GetSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceGetSimulationResponse>;
|
|
189
126
|
/**
|
|
190
|
-
* Get
|
|
127
|
+
* Get bundle simulation by ID
|
|
191
128
|
*/
|
|
192
129
|
getSimulationBundleInProjectRaw(requestParameters: GetSimulationBundleInProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceGetSimulationBundleResponse>>;
|
|
193
130
|
/**
|
|
194
|
-
* Get
|
|
131
|
+
* Get bundle simulation by ID
|
|
195
132
|
*/
|
|
196
133
|
getSimulationBundleInProject(requestParameters: GetSimulationBundleInProjectRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceGetSimulationBundleResponse>;
|
|
197
134
|
/**
|
|
198
|
-
* Get
|
|
135
|
+
* Get list of simulations
|
|
199
136
|
*/
|
|
200
137
|
getSimulationsRaw(requestParameters: GetSimulationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceGetSimulationsResponse>>;
|
|
201
138
|
/**
|
|
202
|
-
* Get
|
|
139
|
+
* Get list of simulations
|
|
203
140
|
*/
|
|
204
141
|
getSimulations(requestParameters: GetSimulationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceGetSimulationsResponse>;
|
|
205
142
|
/**
|
|
@@ -212,38 +149,22 @@ export declare class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
212
149
|
searchTransactions(requestParameters: SearchTransactionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<TxindexEvmSearchTransactionsResponse>;
|
|
213
150
|
/**
|
|
214
151
|
* 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.
|
|
215
|
-
* Run
|
|
152
|
+
* Run simulation
|
|
216
153
|
*/
|
|
217
154
|
simulateTransactionRaw(requestParameters: SimulateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionResponse>>;
|
|
218
155
|
/**
|
|
219
156
|
* 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.
|
|
220
|
-
* Run
|
|
157
|
+
* Run simulation
|
|
221
158
|
*/
|
|
222
159
|
simulateTransaction(requestParameters: SimulateTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionResponse>;
|
|
223
160
|
/**
|
|
224
161
|
* 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.
|
|
225
|
-
* Run
|
|
162
|
+
* Run bundle simulation
|
|
226
163
|
*/
|
|
227
164
|
simulateTransactionBundleRaw(requestParameters: SimulateTransactionBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionBundleResponse>>;
|
|
228
165
|
/**
|
|
229
166
|
* 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.
|
|
230
|
-
* Run
|
|
167
|
+
* Run bundle simulation
|
|
231
168
|
*/
|
|
232
169
|
simulateTransactionBundle(requestParameters: SimulateTransactionBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionBundleResponse>;
|
|
233
|
-
/**
|
|
234
|
-
* Run Bundle simulation on Fork
|
|
235
|
-
*/
|
|
236
|
-
simulateTransactionBundleOnForkRaw(requestParameters: SimulateTransactionBundleOnForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionBundleResponse>>;
|
|
237
|
-
/**
|
|
238
|
-
* Run Bundle simulation on Fork
|
|
239
|
-
*/
|
|
240
|
-
simulateTransactionBundleOnFork(requestParameters: SimulateTransactionBundleOnForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionBundleResponse>;
|
|
241
|
-
/**
|
|
242
|
-
* Run Simulation on Fork
|
|
243
|
-
*/
|
|
244
|
-
simulateTransactionOnForkRaw(requestParameters: SimulateTransactionOnForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionResponse>>;
|
|
245
|
-
/**
|
|
246
|
-
* Run Simulation on Fork
|
|
247
|
-
*/
|
|
248
|
-
simulateTransactionOnFork(requestParameters: SimulateTransactionOnForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionResponse>;
|
|
249
170
|
}
|
|
@@ -12,13 +12,13 @@
|
|
|
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,
|
|
15
|
+
import { GoogleApiHttpBodyFromJSON, SolidityServiceGetSimulationBundleResponseFromJSON, SolidityServiceGetSimulationResponseFromJSON, SolidityServiceGetSimulationsResponseFromJSON, SolidityServiceSimulateTransactionBundleResponseFromJSON, SolidityServiceSimulateTransactionResponseFromJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON, TxindexEvmSearchTransactionsResponseFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
19
19
|
export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
20
20
|
/**
|
|
21
|
-
* Get
|
|
21
|
+
* Get trace by bundle simulation
|
|
22
22
|
*/
|
|
23
23
|
async getCallTraceByBundleRaw(requestParameters, initOverrides) {
|
|
24
24
|
if (requestParameters['owner'] == null) {
|
|
@@ -56,14 +56,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
56
56
|
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
57
57
|
}
|
|
58
58
|
/**
|
|
59
|
-
* Get
|
|
59
|
+
* Get trace by bundle simulation
|
|
60
60
|
*/
|
|
61
61
|
async getCallTraceByBundle(requestParameters, initOverrides) {
|
|
62
62
|
const response = await this.getCallTraceByBundleRaw(requestParameters, initOverrides);
|
|
63
63
|
return await response.value();
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
|
-
* Get
|
|
66
|
+
* Get trace by simulation
|
|
67
67
|
*/
|
|
68
68
|
async getCallTraceBySimulationRaw(requestParameters, initOverrides) {
|
|
69
69
|
if (requestParameters['owner'] == null) {
|
|
@@ -101,7 +101,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
101
101
|
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
* Get
|
|
104
|
+
* Get trace by simulation
|
|
105
105
|
*/
|
|
106
106
|
async getCallTraceBySimulation(requestParameters, initOverrides) {
|
|
107
107
|
const response = await this.getCallTraceBySimulationRaw(requestParameters, initOverrides);
|
|
@@ -109,7 +109,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
111
|
* 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)
|
|
112
|
-
* Get
|
|
112
|
+
* Get trace by transaction
|
|
113
113
|
*/
|
|
114
114
|
async getCallTraceByTransactionRaw(requestParameters, initOverrides) {
|
|
115
115
|
if (requestParameters['owner'] == null) {
|
|
@@ -148,149 +148,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
148
148
|
}
|
|
149
149
|
/**
|
|
150
150
|
* 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)
|
|
151
|
-
* Get
|
|
151
|
+
* Get trace by transaction
|
|
152
152
|
*/
|
|
153
153
|
async getCallTraceByTransaction(requestParameters, initOverrides) {
|
|
154
154
|
const response = await this.getCallTraceByTransactionRaw(requestParameters, initOverrides);
|
|
155
155
|
return await response.value();
|
|
156
156
|
}
|
|
157
157
|
/**
|
|
158
|
-
* Get
|
|
159
|
-
*/
|
|
160
|
-
async getCallTraceOnForkBundleRaw(requestParameters, initOverrides) {
|
|
161
|
-
if (requestParameters['owner'] == null) {
|
|
162
|
-
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceOnForkBundle().');
|
|
163
|
-
}
|
|
164
|
-
if (requestParameters['slug'] == null) {
|
|
165
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceOnForkBundle().');
|
|
166
|
-
}
|
|
167
|
-
if (requestParameters['forkId'] == null) {
|
|
168
|
-
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTraceOnForkBundle().');
|
|
169
|
-
}
|
|
170
|
-
if (requestParameters['bundleId'] == null) {
|
|
171
|
-
throw new runtime.RequiredError('bundleId', 'Required parameter "bundleId" was null or undefined when calling getCallTraceOnForkBundle().');
|
|
172
|
-
}
|
|
173
|
-
const queryParameters = {};
|
|
174
|
-
if (requestParameters['withInternalCalls'] != null) {
|
|
175
|
-
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
176
|
-
}
|
|
177
|
-
if (requestParameters['disableOptimizer'] != null) {
|
|
178
|
-
queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
|
|
179
|
-
}
|
|
180
|
-
if (requestParameters['ignoreGasCost'] != null) {
|
|
181
|
-
queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
|
|
182
|
-
}
|
|
183
|
-
const headerParameters = {};
|
|
184
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
185
|
-
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
186
|
-
}
|
|
187
|
-
const response = await this.request({
|
|
188
|
-
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']))),
|
|
189
|
-
method: 'GET',
|
|
190
|
-
headers: headerParameters,
|
|
191
|
-
query: queryParameters,
|
|
192
|
-
}, initOverrides);
|
|
193
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Get Call Trace by Bundle Simulation on Fork
|
|
197
|
-
*/
|
|
198
|
-
async getCallTraceOnForkBundle(requestParameters, initOverrides) {
|
|
199
|
-
const response = await this.getCallTraceOnForkBundleRaw(requestParameters, initOverrides);
|
|
200
|
-
return await response.value();
|
|
201
|
-
}
|
|
202
|
-
/**
|
|
203
|
-
* Get Call Trace by Simulation on Fork
|
|
204
|
-
*/
|
|
205
|
-
async getCallTraceOnForkSimulationRaw(requestParameters, initOverrides) {
|
|
206
|
-
if (requestParameters['owner'] == null) {
|
|
207
|
-
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceOnForkSimulation().');
|
|
208
|
-
}
|
|
209
|
-
if (requestParameters['slug'] == null) {
|
|
210
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceOnForkSimulation().');
|
|
211
|
-
}
|
|
212
|
-
if (requestParameters['forkId'] == null) {
|
|
213
|
-
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTraceOnForkSimulation().');
|
|
214
|
-
}
|
|
215
|
-
if (requestParameters['simulationId'] == null) {
|
|
216
|
-
throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getCallTraceOnForkSimulation().');
|
|
217
|
-
}
|
|
218
|
-
const queryParameters = {};
|
|
219
|
-
if (requestParameters['withInternalCalls'] != null) {
|
|
220
|
-
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
221
|
-
}
|
|
222
|
-
if (requestParameters['disableOptimizer'] != null) {
|
|
223
|
-
queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
|
|
224
|
-
}
|
|
225
|
-
if (requestParameters['ignoreGasCost'] != null) {
|
|
226
|
-
queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
|
|
227
|
-
}
|
|
228
|
-
const headerParameters = {};
|
|
229
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
230
|
-
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
231
|
-
}
|
|
232
|
-
const response = await this.request({
|
|
233
|
-
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']))),
|
|
234
|
-
method: 'GET',
|
|
235
|
-
headers: headerParameters,
|
|
236
|
-
query: queryParameters,
|
|
237
|
-
}, initOverrides);
|
|
238
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
239
|
-
}
|
|
240
|
-
/**
|
|
241
|
-
* Get Call Trace by Simulation on Fork
|
|
242
|
-
*/
|
|
243
|
-
async getCallTraceOnForkSimulation(requestParameters, initOverrides) {
|
|
244
|
-
const response = await this.getCallTraceOnForkSimulationRaw(requestParameters, initOverrides);
|
|
245
|
-
return await response.value();
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* Get Call Trace by Transaction on Fork
|
|
249
|
-
*/
|
|
250
|
-
async getCallTraceOnForkTransactionRaw(requestParameters, initOverrides) {
|
|
251
|
-
if (requestParameters['owner'] == null) {
|
|
252
|
-
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceOnForkTransaction().');
|
|
253
|
-
}
|
|
254
|
-
if (requestParameters['slug'] == null) {
|
|
255
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceOnForkTransaction().');
|
|
256
|
-
}
|
|
257
|
-
if (requestParameters['forkId'] == null) {
|
|
258
|
-
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTraceOnForkTransaction().');
|
|
259
|
-
}
|
|
260
|
-
if (requestParameters['txHash'] == null) {
|
|
261
|
-
throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling getCallTraceOnForkTransaction().');
|
|
262
|
-
}
|
|
263
|
-
const queryParameters = {};
|
|
264
|
-
if (requestParameters['withInternalCalls'] != null) {
|
|
265
|
-
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
266
|
-
}
|
|
267
|
-
if (requestParameters['disableOptimizer'] != null) {
|
|
268
|
-
queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
|
|
269
|
-
}
|
|
270
|
-
if (requestParameters['ignoreGasCost'] != null) {
|
|
271
|
-
queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
|
|
272
|
-
}
|
|
273
|
-
const headerParameters = {};
|
|
274
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
275
|
-
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
276
|
-
}
|
|
277
|
-
const response = await this.request({
|
|
278
|
-
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']))),
|
|
279
|
-
method: 'GET',
|
|
280
|
-
headers: headerParameters,
|
|
281
|
-
query: queryParameters,
|
|
282
|
-
}, initOverrides);
|
|
283
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
284
|
-
}
|
|
285
|
-
/**
|
|
286
|
-
* Get Call Trace by Transaction on Fork
|
|
287
|
-
*/
|
|
288
|
-
async getCallTraceOnForkTransaction(requestParameters, initOverrides) {
|
|
289
|
-
const response = await this.getCallTraceOnForkTransactionRaw(requestParameters, initOverrides);
|
|
290
|
-
return await response.value();
|
|
291
|
-
}
|
|
292
|
-
/**
|
|
293
|
-
* Get Simulation by ID
|
|
158
|
+
* Get simulation by ID
|
|
294
159
|
*/
|
|
295
160
|
async getSimulationRaw(requestParameters, initOverrides) {
|
|
296
161
|
if (requestParameters['owner'] == null) {
|
|
@@ -316,14 +181,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
316
181
|
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetSimulationResponseFromJSON(jsonValue));
|
|
317
182
|
}
|
|
318
183
|
/**
|
|
319
|
-
* Get
|
|
184
|
+
* Get simulation by ID
|
|
320
185
|
*/
|
|
321
186
|
async getSimulation(requestParameters, initOverrides) {
|
|
322
187
|
const response = await this.getSimulationRaw(requestParameters, initOverrides);
|
|
323
188
|
return await response.value();
|
|
324
189
|
}
|
|
325
190
|
/**
|
|
326
|
-
* Get
|
|
191
|
+
* Get bundle simulation by ID
|
|
327
192
|
*/
|
|
328
193
|
async getSimulationBundleInProjectRaw(requestParameters, initOverrides) {
|
|
329
194
|
if (requestParameters['owner'] == null) {
|
|
@@ -349,14 +214,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
349
214
|
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetSimulationBundleResponseFromJSON(jsonValue));
|
|
350
215
|
}
|
|
351
216
|
/**
|
|
352
|
-
* Get
|
|
217
|
+
* Get bundle simulation by ID
|
|
353
218
|
*/
|
|
354
219
|
async getSimulationBundleInProject(requestParameters, initOverrides) {
|
|
355
220
|
const response = await this.getSimulationBundleInProjectRaw(requestParameters, initOverrides);
|
|
356
221
|
return await response.value();
|
|
357
222
|
}
|
|
358
223
|
/**
|
|
359
|
-
* Get
|
|
224
|
+
* Get list of simulations
|
|
360
225
|
*/
|
|
361
226
|
async getSimulationsRaw(requestParameters, initOverrides) {
|
|
362
227
|
if (requestParameters['owner'] == null) {
|
|
@@ -388,7 +253,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
388
253
|
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetSimulationsResponseFromJSON(jsonValue));
|
|
389
254
|
}
|
|
390
255
|
/**
|
|
391
|
-
* Get
|
|
256
|
+
* Get list of simulations
|
|
392
257
|
*/
|
|
393
258
|
async getSimulations(requestParameters, initOverrides) {
|
|
394
259
|
const response = await this.getSimulationsRaw(requestParameters, initOverrides);
|
|
@@ -468,7 +333,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
468
333
|
}
|
|
469
334
|
/**
|
|
470
335
|
* 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.
|
|
471
|
-
* Run
|
|
336
|
+
* Run simulation
|
|
472
337
|
*/
|
|
473
338
|
async simulateTransactionRaw(requestParameters, initOverrides) {
|
|
474
339
|
if (requestParameters['owner'] == null) {
|
|
@@ -500,7 +365,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
500
365
|
}
|
|
501
366
|
/**
|
|
502
367
|
* 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.
|
|
503
|
-
* Run
|
|
368
|
+
* Run simulation
|
|
504
369
|
*/
|
|
505
370
|
async simulateTransaction(requestParameters, initOverrides) {
|
|
506
371
|
const response = await this.simulateTransactionRaw(requestParameters, initOverrides);
|
|
@@ -508,7 +373,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
508
373
|
}
|
|
509
374
|
/**
|
|
510
375
|
* 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
|
|
376
|
+
* Run bundle simulation
|
|
512
377
|
*/
|
|
513
378
|
async simulateTransactionBundleRaw(requestParameters, initOverrides) {
|
|
514
379
|
if (requestParameters['owner'] == null) {
|
|
@@ -540,87 +405,11 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
540
405
|
}
|
|
541
406
|
/**
|
|
542
407
|
* 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
|
|
408
|
+
* Run bundle simulation
|
|
544
409
|
*/
|
|
545
410
|
async simulateTransactionBundle(requestParameters, initOverrides) {
|
|
546
411
|
const response = await this.simulateTransactionBundleRaw(requestParameters, initOverrides);
|
|
547
412
|
return await response.value();
|
|
548
413
|
}
|
|
549
|
-
/**
|
|
550
|
-
* Run Bundle simulation on Fork
|
|
551
|
-
*/
|
|
552
|
-
async simulateTransactionBundleOnForkRaw(requestParameters, initOverrides) {
|
|
553
|
-
if (requestParameters['owner'] == null) {
|
|
554
|
-
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransactionBundleOnFork().');
|
|
555
|
-
}
|
|
556
|
-
if (requestParameters['slug'] == null) {
|
|
557
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransactionBundleOnFork().');
|
|
558
|
-
}
|
|
559
|
-
if (requestParameters['forkId'] == null) {
|
|
560
|
-
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling simulateTransactionBundleOnFork().');
|
|
561
|
-
}
|
|
562
|
-
if (requestParameters['body'] == null) {
|
|
563
|
-
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionBundleOnFork().');
|
|
564
|
-
}
|
|
565
|
-
const queryParameters = {};
|
|
566
|
-
const headerParameters = {};
|
|
567
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
568
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
569
|
-
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
570
|
-
}
|
|
571
|
-
const response = await this.request({
|
|
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']))),
|
|
573
|
-
method: 'POST',
|
|
574
|
-
headers: headerParameters,
|
|
575
|
-
query: queryParameters,
|
|
576
|
-
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBodyToJSON(requestParameters['body']),
|
|
577
|
-
}, initOverrides);
|
|
578
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
|
|
579
|
-
}
|
|
580
|
-
/**
|
|
581
|
-
* Run Bundle simulation on Fork
|
|
582
|
-
*/
|
|
583
|
-
async simulateTransactionBundleOnFork(requestParameters, initOverrides) {
|
|
584
|
-
const response = await this.simulateTransactionBundleOnForkRaw(requestParameters, initOverrides);
|
|
585
|
-
return await response.value();
|
|
586
|
-
}
|
|
587
|
-
/**
|
|
588
|
-
* Run Simulation on Fork
|
|
589
|
-
*/
|
|
590
|
-
async simulateTransactionOnForkRaw(requestParameters, initOverrides) {
|
|
591
|
-
if (requestParameters['owner'] == null) {
|
|
592
|
-
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransactionOnFork().');
|
|
593
|
-
}
|
|
594
|
-
if (requestParameters['slug'] == null) {
|
|
595
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransactionOnFork().');
|
|
596
|
-
}
|
|
597
|
-
if (requestParameters['forkId'] == null) {
|
|
598
|
-
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling simulateTransactionOnFork().');
|
|
599
|
-
}
|
|
600
|
-
if (requestParameters['body'] == null) {
|
|
601
|
-
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionOnFork().');
|
|
602
|
-
}
|
|
603
|
-
const queryParameters = {};
|
|
604
|
-
const headerParameters = {};
|
|
605
|
-
headerParameters['Content-Type'] = 'application/json';
|
|
606
|
-
if (this.configuration && this.configuration.apiKey) {
|
|
607
|
-
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
608
|
-
}
|
|
609
|
-
const response = await this.request({
|
|
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']))),
|
|
611
|
-
method: 'POST',
|
|
612
|
-
headers: headerParameters,
|
|
613
|
-
query: queryParameters,
|
|
614
|
-
body: SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBodyToJSON(requestParameters['body']),
|
|
615
|
-
}, initOverrides);
|
|
616
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue));
|
|
617
|
-
}
|
|
618
|
-
/**
|
|
619
|
-
* Run Simulation on Fork
|
|
620
|
-
*/
|
|
621
|
-
async simulateTransactionOnFork(requestParameters, initOverrides) {
|
|
622
|
-
const response = await this.simulateTransactionOnForkRaw(requestParameters, initOverrides);
|
|
623
|
-
return await response.value();
|
|
624
|
-
}
|
|
625
414
|
}
|
|
626
415
|
//# sourceMappingURL=DebugAndSimulationApi.js.map
|