@sentio/api 1.0.2-rc.16 → 1.0.2-rc.18
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 +168 -17
- package/dist/src/apis/DebugAndSimulationApi.js +427 -43
- package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
- package/dist/src/apis/ForksApi.d.ts +84 -0
- package/dist/src/apis/ForksApi.js +211 -0
- package/dist/src/apis/ForksApi.js.map +1 -0
- package/dist/src/apis/index.d.ts +1 -0
- package/dist/src/apis/index.js +1 -0
- package/dist/src/apis/index.js.map +1 -1
- package/dist/src/models/SolidityServiceBaseChainConfig.d.ts +3 -2
- package/dist/src/models/SolidityServiceBaseChainConfig.js +3 -2
- package/dist/src/models/SolidityServiceBaseChainConfig.js.map +1 -1
- package/dist/src/models/SolidityServiceChainIdentifier.d.ts +38 -0
- package/dist/src/models/SolidityServiceChainIdentifier.js +44 -0
- package/dist/src/models/SolidityServiceChainIdentifier.js.map +1 -0
- package/dist/src/models/SolidityServiceCreateForkResponse.d.ts +33 -0
- package/dist/src/models/SolidityServiceCreateForkResponse.js +43 -0
- package/dist/src/models/SolidityServiceCreateForkResponse.js.map +1 -0
- package/dist/src/models/SolidityServiceExternalFork.d.ts +39 -0
- package/dist/src/models/SolidityServiceExternalFork.js +45 -0
- package/dist/src/models/SolidityServiceExternalFork.js.map +1 -0
- package/dist/src/models/SolidityServiceFork.d.ts +77 -0
- package/dist/src/models/SolidityServiceFork.js +59 -0
- package/dist/src/models/SolidityServiceFork.js.map +1 -0
- package/dist/src/models/SolidityServiceForkServiceCreateForkBody.d.ts +33 -0
- package/dist/src/models/SolidityServiceForkServiceCreateForkBody.js +45 -0
- package/dist/src/models/SolidityServiceForkServiceCreateForkBody.js.map +1 -0
- package/dist/src/models/SolidityServiceForkServiceUpdateForkBody.d.ts +33 -0
- package/dist/src/models/SolidityServiceForkServiceUpdateForkBody.js +45 -0
- package/dist/src/models/SolidityServiceForkServiceUpdateForkBody.js.map +1 -0
- package/dist/src/models/SolidityServiceForkType.d.ts +25 -0
- package/dist/src/models/SolidityServiceForkType.js +44 -0
- package/dist/src/models/SolidityServiceForkType.js.map +1 -0
- package/dist/src/models/SolidityServiceGetForkResponse.d.ts +33 -0
- package/dist/src/models/SolidityServiceGetForkResponse.js +43 -0
- package/dist/src/models/SolidityServiceGetForkResponse.js.map +1 -0
- package/dist/src/models/SolidityServiceListForksResponse.d.ts +33 -0
- package/dist/src/models/SolidityServiceListForksResponse.js +43 -0
- package/dist/src/models/SolidityServiceListForksResponse.js.map +1 -0
- package/dist/src/models/SolidityServiceManagedFork.d.ts +45 -0
- package/dist/src/models/SolidityServiceManagedFork.js +47 -0
- package/dist/src/models/SolidityServiceManagedFork.js.map +1 -0
- package/dist/src/models/SolidityServiceSimulation.d.ts +7 -0
- package/dist/src/models/SolidityServiceSimulation.js +5 -0
- package/dist/src/models/SolidityServiceSimulation.js.map +1 -1
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.d.ts +40 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.js +48 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.js.map +1 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.d.ts +32 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js +42 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.js.map +1 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.d.ts +40 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js +48 -0
- package/dist/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.js.map +1 -0
- package/dist/src/models/SolidityServiceSourceFetcherType.d.ts +26 -0
- package/dist/src/models/SolidityServiceSourceFetcherType.js +45 -0
- package/dist/src/models/SolidityServiceSourceFetcherType.js.map +1 -0
- package/dist/src/models/SolidityServiceUpdateForkResponse.d.ts +33 -0
- package/dist/src/models/SolidityServiceUpdateForkResponse.js +43 -0
- package/dist/src/models/SolidityServiceUpdateForkResponse.js.map +1 -0
- package/dist/src/models/index.d.ts +15 -2
- package/dist/src/models/index.js +15 -2
- package/dist/src/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DebugAndSimulationApi.ts +825 -108
- package/src/apis/ForksApi.ts +381 -0
- package/src/apis/index.ts +1 -0
- package/src/models/SolidityServiceBaseChainConfig.ts +14 -4
- package/src/models/SolidityServiceChainIdentifier.ts +73 -0
- package/src/models/SolidityServiceCreateForkResponse.ts +73 -0
- package/src/models/SolidityServiceExternalFork.ts +81 -0
- package/src/models/SolidityServiceFork.ts +145 -0
- package/src/models/SolidityServiceForkServiceCreateForkBody.ts +74 -0
- package/src/models/SolidityServiceForkServiceUpdateForkBody.ts +74 -0
- package/src/models/SolidityServiceForkType.ts +53 -0
- package/src/models/SolidityServiceGetForkResponse.ts +73 -0
- package/src/models/SolidityServiceListForksResponse.ts +73 -0
- package/src/models/SolidityServiceManagedFork.ts +89 -0
- package/src/models/SolidityServiceSimulation.ts +16 -0
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBody.ts +89 -0
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBodyChainSpec.ts +65 -0
- package/src/models/SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody.ts +89 -0
- package/src/models/SolidityServiceSourceFetcherType.ts +54 -0
- package/src/models/SolidityServiceUpdateForkResponse.ts +73 -0
- package/src/models/index.ts +15 -2
- package/dist/src/models/SolidityServiceSimulateTransactionBundleRequest.d.ts +0 -45
- package/dist/src/models/SolidityServiceSimulateTransactionBundleRequest.js +0 -53
- package/dist/src/models/SolidityServiceSimulateTransactionBundleRequest.js.map +0 -1
- package/dist/src/models/SolidityServiceSimulateTransactionRequest.d.ts +0 -45
- package/dist/src/models/SolidityServiceSimulateTransactionRequest.js +0 -53
- package/dist/src/models/SolidityServiceSimulateTransactionRequest.js.map +0 -1
- package/src/models/SolidityServiceSimulateTransactionBundleRequest.ts +0 -92
- package/src/models/SolidityServiceSimulateTransactionRequest.ts +0 -92
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
* Do not edit the class manually.
|
|
13
13
|
*/
|
|
14
14
|
import * as runtime from '../runtime.js';
|
|
15
|
-
import { GoogleApiHttpBodyFromJSON, SolidityServiceGetSimulationBundleResponseFromJSON, SolidityServiceGetSimulationResponseFromJSON, SolidityServiceGetSimulationsResponseFromJSON,
|
|
15
|
+
import { GoogleApiHttpBodyFromJSON, SolidityServiceGetSimulationBundleResponseFromJSON, SolidityServiceGetSimulationResponseFromJSON, SolidityServiceGetSimulationsResponseFromJSON, SolidityServiceSimulateTransactionBundleResponseFromJSON, SolidityServiceSimulateTransactionResponseFromJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON, TxindexEvmSearchTransactionsResponseFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -22,18 +22,133 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
22
22
|
* Get indexed call trace
|
|
23
23
|
*/
|
|
24
24
|
async getCallTraceRaw(requestParameters, initOverrides) {
|
|
25
|
-
if (requestParameters['
|
|
26
|
-
throw new runtime.RequiredError('
|
|
25
|
+
if (requestParameters['projectOwner'] == null) {
|
|
26
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling getCallTrace().');
|
|
27
|
+
}
|
|
28
|
+
if (requestParameters['projectSlug'] == null) {
|
|
29
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling getCallTrace().');
|
|
30
|
+
}
|
|
31
|
+
if (requestParameters['chainSpecChainId'] == null) {
|
|
32
|
+
throw new runtime.RequiredError('chainSpecChainId', 'Required parameter "chainSpecChainId" was null or undefined when calling getCallTrace().');
|
|
33
|
+
}
|
|
34
|
+
if (requestParameters['txIdTxHash'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('txIdTxHash', 'Required parameter "txIdTxHash" was null or undefined when calling getCallTrace().');
|
|
27
36
|
}
|
|
28
37
|
const queryParameters = {};
|
|
29
|
-
if (requestParameters['
|
|
30
|
-
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
|
+
if (requestParameters['withInternalCalls'] != null) {
|
|
48
|
+
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
49
|
+
}
|
|
50
|
+
if (requestParameters['disableOptimizer'] != null) {
|
|
51
|
+
queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
|
|
52
|
+
}
|
|
53
|
+
if (requestParameters['ignoreGasCost'] != null) {
|
|
54
|
+
queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
|
|
55
|
+
}
|
|
56
|
+
const headerParameters = {};
|
|
57
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
58
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
59
|
+
}
|
|
60
|
+
const response = await this.request({
|
|
61
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/{chainSpec.chainId}/transaction/{txId.txHash}/call_trace`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"chainSpec.chainId"}}`, encodeURIComponent(String(requestParameters['chainSpecChainId']))).replace(`{${"txId.txHash"}}`, encodeURIComponent(String(requestParameters['txIdTxHash']))),
|
|
62
|
+
method: 'GET',
|
|
63
|
+
headers: headerParameters,
|
|
64
|
+
query: queryParameters,
|
|
65
|
+
}, initOverrides);
|
|
66
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
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. %20(1)%20(1)%20(1).png)
|
|
70
|
+
* Get indexed call trace
|
|
71
|
+
*/
|
|
72
|
+
async getCallTrace(requestParameters, initOverrides) {
|
|
73
|
+
const response = await this.getCallTraceRaw(requestParameters, initOverrides);
|
|
74
|
+
return await response.value();
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
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. %20(1)%20(1)%20(1).png)
|
|
78
|
+
* Get indexed call trace
|
|
79
|
+
*/
|
|
80
|
+
async getCallTrace2Raw(requestParameters, initOverrides) {
|
|
81
|
+
if (requestParameters['projectOwner'] == null) {
|
|
82
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling getCallTrace2().');
|
|
83
|
+
}
|
|
84
|
+
if (requestParameters['projectSlug'] == null) {
|
|
85
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling getCallTrace2().');
|
|
31
86
|
}
|
|
32
|
-
if (requestParameters['
|
|
33
|
-
|
|
87
|
+
if (requestParameters['chainSpecChainId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('chainSpecChainId', 'Required parameter "chainSpecChainId" was null or undefined when calling getCallTrace2().');
|
|
34
89
|
}
|
|
35
|
-
if (requestParameters['
|
|
36
|
-
|
|
90
|
+
if (requestParameters['txIdSimulationId'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('txIdSimulationId', 'Required parameter "txIdSimulationId" was null or undefined when calling getCallTrace2().');
|
|
92
|
+
}
|
|
93
|
+
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
|
+
if (requestParameters['withInternalCalls'] != null) {
|
|
104
|
+
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
105
|
+
}
|
|
106
|
+
if (requestParameters['disableOptimizer'] != null) {
|
|
107
|
+
queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
|
|
108
|
+
}
|
|
109
|
+
if (requestParameters['ignoreGasCost'] != null) {
|
|
110
|
+
queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
|
|
111
|
+
}
|
|
112
|
+
const headerParameters = {};
|
|
113
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
114
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
115
|
+
}
|
|
116
|
+
const response = await this.request({
|
|
117
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/{chainSpec.chainId}/simulation/{txId.simulationId}/call_trace`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"chainSpec.chainId"}}`, encodeURIComponent(String(requestParameters['chainSpecChainId']))).replace(`{${"txId.simulationId"}}`, encodeURIComponent(String(requestParameters['txIdSimulationId']))),
|
|
118
|
+
method: 'GET',
|
|
119
|
+
headers: headerParameters,
|
|
120
|
+
query: queryParameters,
|
|
121
|
+
}, initOverrides);
|
|
122
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
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. %20(1)%20(1)%20(1).png)
|
|
126
|
+
* Get indexed call trace
|
|
127
|
+
*/
|
|
128
|
+
async getCallTrace2(requestParameters, initOverrides) {
|
|
129
|
+
const response = await this.getCallTrace2Raw(requestParameters, initOverrides);
|
|
130
|
+
return await response.value();
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
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. %20(1)%20(1)%20(1).png)
|
|
134
|
+
* Get indexed call trace
|
|
135
|
+
*/
|
|
136
|
+
async getCallTrace3Raw(requestParameters, initOverrides) {
|
|
137
|
+
if (requestParameters['projectOwner'] == null) {
|
|
138
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling getCallTrace3().');
|
|
139
|
+
}
|
|
140
|
+
if (requestParameters['projectSlug'] == null) {
|
|
141
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling getCallTrace3().');
|
|
142
|
+
}
|
|
143
|
+
if (requestParameters['chainSpecChainId'] == null) {
|
|
144
|
+
throw new runtime.RequiredError('chainSpecChainId', 'Required parameter "chainSpecChainId" was null or undefined when calling getCallTrace3().');
|
|
145
|
+
}
|
|
146
|
+
if (requestParameters['txIdBundleId'] == null) {
|
|
147
|
+
throw new runtime.RequiredError('txIdBundleId', 'Required parameter "txIdBundleId" was null or undefined when calling getCallTrace3().');
|
|
148
|
+
}
|
|
149
|
+
const queryParameters = {};
|
|
150
|
+
if (requestParameters['chainSpecForkId'] != null) {
|
|
151
|
+
queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId'];
|
|
37
152
|
}
|
|
38
153
|
if (requestParameters['txIdTxHash'] != null) {
|
|
39
154
|
queryParameters['txId.txHash'] = requestParameters['txIdTxHash'];
|
|
@@ -41,15 +156,180 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
41
156
|
if (requestParameters['txIdSimulationId'] != null) {
|
|
42
157
|
queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
|
|
43
158
|
}
|
|
159
|
+
if (requestParameters['withInternalCalls'] != null) {
|
|
160
|
+
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
161
|
+
}
|
|
162
|
+
if (requestParameters['disableOptimizer'] != null) {
|
|
163
|
+
queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
|
|
164
|
+
}
|
|
165
|
+
if (requestParameters['ignoreGasCost'] != null) {
|
|
166
|
+
queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
|
|
167
|
+
}
|
|
168
|
+
const headerParameters = {};
|
|
169
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
170
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
171
|
+
}
|
|
172
|
+
const response = await this.request({
|
|
173
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/{chainSpec.chainId}/simulation_bundle/{txId.bundleId}/call_trace`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"chainSpec.chainId"}}`, encodeURIComponent(String(requestParameters['chainSpecChainId']))).replace(`{${"txId.bundleId"}}`, encodeURIComponent(String(requestParameters['txIdBundleId']))),
|
|
174
|
+
method: 'GET',
|
|
175
|
+
headers: headerParameters,
|
|
176
|
+
query: queryParameters,
|
|
177
|
+
}, initOverrides);
|
|
178
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
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. %20(1)%20(1)%20(1).png)
|
|
182
|
+
* Get indexed call trace
|
|
183
|
+
*/
|
|
184
|
+
async getCallTrace3(requestParameters, initOverrides) {
|
|
185
|
+
const response = await this.getCallTrace3Raw(requestParameters, initOverrides);
|
|
186
|
+
return await response.value();
|
|
187
|
+
}
|
|
188
|
+
/**
|
|
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. %20(1)%20(1)%20(1).png)
|
|
190
|
+
* Get indexed call trace
|
|
191
|
+
*/
|
|
192
|
+
async getCallTrace4Raw(requestParameters, initOverrides) {
|
|
193
|
+
if (requestParameters['projectOwner'] == null) {
|
|
194
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling getCallTrace4().');
|
|
195
|
+
}
|
|
196
|
+
if (requestParameters['projectSlug'] == null) {
|
|
197
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling getCallTrace4().');
|
|
198
|
+
}
|
|
199
|
+
if (requestParameters['chainSpecForkId'] == null) {
|
|
200
|
+
throw new runtime.RequiredError('chainSpecForkId', 'Required parameter "chainSpecForkId" was null or undefined when calling getCallTrace4().');
|
|
201
|
+
}
|
|
202
|
+
if (requestParameters['txIdTxHash'] == null) {
|
|
203
|
+
throw new runtime.RequiredError('txIdTxHash', 'Required parameter "txIdTxHash" was null or undefined when calling getCallTrace4().');
|
|
204
|
+
}
|
|
205
|
+
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
|
+
if (requestParameters['withInternalCalls'] != null) {
|
|
216
|
+
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
217
|
+
}
|
|
218
|
+
if (requestParameters['disableOptimizer'] != null) {
|
|
219
|
+
queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
|
|
220
|
+
}
|
|
221
|
+
if (requestParameters['ignoreGasCost'] != null) {
|
|
222
|
+
queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
|
|
223
|
+
}
|
|
224
|
+
const headerParameters = {};
|
|
225
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
226
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
227
|
+
}
|
|
228
|
+
const response = await this.request({
|
|
229
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{chainSpec.forkId}/transaction/{txId.txHash}/call_trace`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"chainSpec.forkId"}}`, encodeURIComponent(String(requestParameters['chainSpecForkId']))).replace(`{${"txId.txHash"}}`, encodeURIComponent(String(requestParameters['txIdTxHash']))),
|
|
230
|
+
method: 'GET',
|
|
231
|
+
headers: headerParameters,
|
|
232
|
+
query: queryParameters,
|
|
233
|
+
}, initOverrides);
|
|
234
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
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. %20(1)%20(1)%20(1).png)
|
|
238
|
+
* Get indexed call trace
|
|
239
|
+
*/
|
|
240
|
+
async getCallTrace4(requestParameters, initOverrides) {
|
|
241
|
+
const response = await this.getCallTrace4Raw(requestParameters, initOverrides);
|
|
242
|
+
return await response.value();
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
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. %20(1)%20(1)%20(1).png)
|
|
246
|
+
* Get indexed call trace
|
|
247
|
+
*/
|
|
248
|
+
async getCallTrace5Raw(requestParameters, initOverrides) {
|
|
249
|
+
if (requestParameters['projectOwner'] == null) {
|
|
250
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling getCallTrace5().');
|
|
251
|
+
}
|
|
252
|
+
if (requestParameters['projectSlug'] == null) {
|
|
253
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling getCallTrace5().');
|
|
254
|
+
}
|
|
255
|
+
if (requestParameters['chainSpecForkId'] == null) {
|
|
256
|
+
throw new runtime.RequiredError('chainSpecForkId', 'Required parameter "chainSpecForkId" was null or undefined when calling getCallTrace5().');
|
|
257
|
+
}
|
|
258
|
+
if (requestParameters['txIdSimulationId'] == null) {
|
|
259
|
+
throw new runtime.RequiredError('txIdSimulationId', 'Required parameter "txIdSimulationId" was null or undefined when calling getCallTrace5().');
|
|
260
|
+
}
|
|
261
|
+
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
|
+
}
|
|
44
268
|
if (requestParameters['txIdBundleId'] != null) {
|
|
45
269
|
queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
|
|
46
270
|
}
|
|
271
|
+
if (requestParameters['withInternalCalls'] != null) {
|
|
272
|
+
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
273
|
+
}
|
|
47
274
|
if (requestParameters['disableOptimizer'] != null) {
|
|
48
275
|
queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
|
|
49
276
|
}
|
|
277
|
+
if (requestParameters['ignoreGasCost'] != null) {
|
|
278
|
+
queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
|
|
279
|
+
}
|
|
280
|
+
const headerParameters = {};
|
|
281
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
282
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
283
|
+
}
|
|
284
|
+
const response = await this.request({
|
|
285
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{chainSpec.forkId}/simulation/{txId.simulationId}/call_trace`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"chainSpec.forkId"}}`, encodeURIComponent(String(requestParameters['chainSpecForkId']))).replace(`{${"txId.simulationId"}}`, encodeURIComponent(String(requestParameters['txIdSimulationId']))),
|
|
286
|
+
method: 'GET',
|
|
287
|
+
headers: headerParameters,
|
|
288
|
+
query: queryParameters,
|
|
289
|
+
}, initOverrides);
|
|
290
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
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. %20(1)%20(1)%20(1).png)
|
|
294
|
+
* Get indexed call trace
|
|
295
|
+
*/
|
|
296
|
+
async getCallTrace5(requestParameters, initOverrides) {
|
|
297
|
+
const response = await this.getCallTrace5Raw(requestParameters, initOverrides);
|
|
298
|
+
return await response.value();
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
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. %20(1)%20(1)%20(1).png)
|
|
302
|
+
* Get indexed call trace
|
|
303
|
+
*/
|
|
304
|
+
async getCallTrace6Raw(requestParameters, initOverrides) {
|
|
305
|
+
if (requestParameters['projectOwner'] == null) {
|
|
306
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling getCallTrace6().');
|
|
307
|
+
}
|
|
308
|
+
if (requestParameters['projectSlug'] == null) {
|
|
309
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling getCallTrace6().');
|
|
310
|
+
}
|
|
311
|
+
if (requestParameters['chainSpecForkId'] == null) {
|
|
312
|
+
throw new runtime.RequiredError('chainSpecForkId', 'Required parameter "chainSpecForkId" was null or undefined when calling getCallTrace6().');
|
|
313
|
+
}
|
|
314
|
+
if (requestParameters['txIdBundleId'] == null) {
|
|
315
|
+
throw new runtime.RequiredError('txIdBundleId', 'Required parameter "txIdBundleId" was null or undefined when calling getCallTrace6().');
|
|
316
|
+
}
|
|
317
|
+
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
|
+
}
|
|
50
327
|
if (requestParameters['withInternalCalls'] != null) {
|
|
51
328
|
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
52
329
|
}
|
|
330
|
+
if (requestParameters['disableOptimizer'] != null) {
|
|
331
|
+
queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
|
|
332
|
+
}
|
|
53
333
|
if (requestParameters['ignoreGasCost'] != null) {
|
|
54
334
|
queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
|
|
55
335
|
}
|
|
@@ -58,7 +338,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
58
338
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
59
339
|
}
|
|
60
340
|
const response = await this.request({
|
|
61
|
-
path: `/api/v1/solidity/call_trace`,
|
|
341
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{chainSpec.forkId}/simulation_bundle/{txId.bundleId}/call_trace`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"chainSpec.forkId"}}`, encodeURIComponent(String(requestParameters['chainSpecForkId']))).replace(`{${"txId.bundleId"}}`, encodeURIComponent(String(requestParameters['txIdBundleId']))),
|
|
62
342
|
method: 'GET',
|
|
63
343
|
headers: headerParameters,
|
|
64
344
|
query: queryParameters,
|
|
@@ -69,30 +349,30 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
69
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. %20(1)%20(1)%20(1).png)
|
|
70
350
|
* Get indexed call trace
|
|
71
351
|
*/
|
|
72
|
-
async
|
|
73
|
-
const response = await this.
|
|
352
|
+
async getCallTrace6(requestParameters, initOverrides) {
|
|
353
|
+
const response = await this.getCallTrace6Raw(requestParameters, initOverrides);
|
|
74
354
|
return await response.value();
|
|
75
355
|
}
|
|
76
356
|
/**
|
|
77
357
|
* Get a simulation by id
|
|
78
358
|
*/
|
|
79
359
|
async getSimulationRaw(requestParameters, initOverrides) {
|
|
360
|
+
if (requestParameters['projectOwner'] == null) {
|
|
361
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling getSimulation().');
|
|
362
|
+
}
|
|
363
|
+
if (requestParameters['projectSlug'] == null) {
|
|
364
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling getSimulation().');
|
|
365
|
+
}
|
|
80
366
|
if (requestParameters['simulationId'] == null) {
|
|
81
367
|
throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getSimulation().');
|
|
82
368
|
}
|
|
83
369
|
const queryParameters = {};
|
|
84
|
-
if (requestParameters['projectOwner'] != null) {
|
|
85
|
-
queryParameters['projectOwner'] = requestParameters['projectOwner'];
|
|
86
|
-
}
|
|
87
|
-
if (requestParameters['projectSlug'] != null) {
|
|
88
|
-
queryParameters['projectSlug'] = requestParameters['projectSlug'];
|
|
89
|
-
}
|
|
90
370
|
const headerParameters = {};
|
|
91
371
|
if (this.configuration && this.configuration.apiKey) {
|
|
92
372
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
93
373
|
}
|
|
94
374
|
const response = await this.request({
|
|
95
|
-
path: `/api/v1/solidity/
|
|
375
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/simulation/{simulationId}`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"simulationId"}}`, encodeURIComponent(String(requestParameters['simulationId']))),
|
|
96
376
|
method: 'GET',
|
|
97
377
|
headers: headerParameters,
|
|
98
378
|
query: queryParameters,
|
|
@@ -109,23 +389,23 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
109
389
|
/**
|
|
110
390
|
* Get a bundle simulation by id
|
|
111
391
|
*/
|
|
112
|
-
async
|
|
113
|
-
if (requestParameters['
|
|
114
|
-
throw new runtime.RequiredError('
|
|
392
|
+
async getSimulationBundleInProjectRaw(requestParameters, initOverrides) {
|
|
393
|
+
if (requestParameters['projectOwner'] == null) {
|
|
394
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling getSimulationBundleInProject().');
|
|
115
395
|
}
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
queryParameters['projectOwner'] = requestParameters['projectOwner'];
|
|
396
|
+
if (requestParameters['projectSlug'] == null) {
|
|
397
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling getSimulationBundleInProject().');
|
|
119
398
|
}
|
|
120
|
-
if (requestParameters['
|
|
121
|
-
|
|
399
|
+
if (requestParameters['bundleId'] == null) {
|
|
400
|
+
throw new runtime.RequiredError('bundleId', 'Required parameter "bundleId" was null or undefined when calling getSimulationBundleInProject().');
|
|
122
401
|
}
|
|
402
|
+
const queryParameters = {};
|
|
123
403
|
const headerParameters = {};
|
|
124
404
|
if (this.configuration && this.configuration.apiKey) {
|
|
125
405
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
126
406
|
}
|
|
127
407
|
const response = await this.request({
|
|
128
|
-
path: `/api/v1/solidity/
|
|
408
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/simulation_bundle/{bundleId}`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"bundleId"}}`, encodeURIComponent(String(requestParameters['bundleId']))),
|
|
129
409
|
method: 'GET',
|
|
130
410
|
headers: headerParameters,
|
|
131
411
|
query: queryParameters,
|
|
@@ -135,21 +415,21 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
135
415
|
/**
|
|
136
416
|
* Get a bundle simulation by id
|
|
137
417
|
*/
|
|
138
|
-
async
|
|
139
|
-
const response = await this.
|
|
418
|
+
async getSimulationBundleInProject(requestParameters, initOverrides) {
|
|
419
|
+
const response = await this.getSimulationBundleInProjectRaw(requestParameters, initOverrides);
|
|
140
420
|
return await response.value();
|
|
141
421
|
}
|
|
142
422
|
/**
|
|
143
423
|
* Get existing transaction simulations
|
|
144
424
|
*/
|
|
145
425
|
async getSimulationsRaw(requestParameters, initOverrides) {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
queryParameters['projectOwner'] = requestParameters['projectOwner'];
|
|
426
|
+
if (requestParameters['projectOwner'] == null) {
|
|
427
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling getSimulations().');
|
|
149
428
|
}
|
|
150
|
-
if (requestParameters['projectSlug']
|
|
151
|
-
|
|
429
|
+
if (requestParameters['projectSlug'] == null) {
|
|
430
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling getSimulations().');
|
|
152
431
|
}
|
|
432
|
+
const queryParameters = {};
|
|
153
433
|
if (requestParameters['labelContains'] != null) {
|
|
154
434
|
queryParameters['labelContains'] = requestParameters['labelContains'];
|
|
155
435
|
}
|
|
@@ -164,7 +444,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
164
444
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
165
445
|
}
|
|
166
446
|
const response = await this.request({
|
|
167
|
-
path: `/api/v1/solidity/
|
|
447
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/simulation`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))),
|
|
168
448
|
method: 'GET',
|
|
169
449
|
headers: headerParameters,
|
|
170
450
|
query: queryParameters,
|
|
@@ -174,7 +454,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
174
454
|
/**
|
|
175
455
|
* Get existing transaction simulations
|
|
176
456
|
*/
|
|
177
|
-
async getSimulations(requestParameters
|
|
457
|
+
async getSimulations(requestParameters, initOverrides) {
|
|
178
458
|
const response = await this.getSimulationsRaw(requestParameters, initOverrides);
|
|
179
459
|
return await response.value();
|
|
180
460
|
}
|
|
@@ -182,6 +462,12 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
182
462
|
* Search for transactions
|
|
183
463
|
*/
|
|
184
464
|
async searchTransactionsRaw(requestParameters, initOverrides) {
|
|
465
|
+
if (requestParameters['projectOwner'] == null) {
|
|
466
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling searchTransactions().');
|
|
467
|
+
}
|
|
468
|
+
if (requestParameters['projectSlug'] == null) {
|
|
469
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling searchTransactions().');
|
|
470
|
+
}
|
|
185
471
|
const queryParameters = {};
|
|
186
472
|
if (requestParameters['chainId'] != null) {
|
|
187
473
|
queryParameters['chainId'] = requestParameters['chainId'];
|
|
@@ -230,7 +516,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
230
516
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
231
517
|
}
|
|
232
518
|
const response = await this.request({
|
|
233
|
-
path: `/api/v1/solidity/search_transactions`,
|
|
519
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/search_transactions`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))),
|
|
234
520
|
method: 'GET',
|
|
235
521
|
headers: headerParameters,
|
|
236
522
|
query: queryParameters,
|
|
@@ -240,7 +526,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
240
526
|
/**
|
|
241
527
|
* Search for transactions
|
|
242
528
|
*/
|
|
243
|
-
async searchTransactions(requestParameters
|
|
529
|
+
async searchTransactions(requestParameters, initOverrides) {
|
|
244
530
|
const response = await this.searchTransactionsRaw(requestParameters, initOverrides);
|
|
245
531
|
return await response.value();
|
|
246
532
|
}
|
|
@@ -249,6 +535,15 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
249
535
|
* Single simulation
|
|
250
536
|
*/
|
|
251
537
|
async simulateTransactionRaw(requestParameters, initOverrides) {
|
|
538
|
+
if (requestParameters['projectOwner'] == null) {
|
|
539
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling simulateTransaction().');
|
|
540
|
+
}
|
|
541
|
+
if (requestParameters['projectSlug'] == null) {
|
|
542
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling simulateTransaction().');
|
|
543
|
+
}
|
|
544
|
+
if (requestParameters['chainSpecChainId'] == null) {
|
|
545
|
+
throw new runtime.RequiredError('chainSpecChainId', 'Required parameter "chainSpecChainId" was null or undefined when calling simulateTransaction().');
|
|
546
|
+
}
|
|
252
547
|
if (requestParameters['body'] == null) {
|
|
253
548
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransaction().');
|
|
254
549
|
}
|
|
@@ -259,11 +554,11 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
259
554
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
260
555
|
}
|
|
261
556
|
const response = await this.request({
|
|
262
|
-
path: `/api/v1/solidity/
|
|
557
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/{chainSpec.chainId}/simulation`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"chainSpec.chainId"}}`, encodeURIComponent(String(requestParameters['chainSpecChainId']))),
|
|
263
558
|
method: 'POST',
|
|
264
559
|
headers: headerParameters,
|
|
265
560
|
query: queryParameters,
|
|
266
|
-
body:
|
|
561
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON(requestParameters['body']),
|
|
267
562
|
}, initOverrides);
|
|
268
563
|
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue));
|
|
269
564
|
}
|
|
@@ -275,11 +570,60 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
275
570
|
const response = await this.simulateTransactionRaw(requestParameters, initOverrides);
|
|
276
571
|
return await response.value();
|
|
277
572
|
}
|
|
573
|
+
/**
|
|
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
|
|
576
|
+
*/
|
|
577
|
+
async simulateTransaction2Raw(requestParameters, initOverrides) {
|
|
578
|
+
if (requestParameters['projectOwner'] == null) {
|
|
579
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling simulateTransaction2().');
|
|
580
|
+
}
|
|
581
|
+
if (requestParameters['projectSlug'] == null) {
|
|
582
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling simulateTransaction2().');
|
|
583
|
+
}
|
|
584
|
+
if (requestParameters['chainSpecForkId'] == null) {
|
|
585
|
+
throw new runtime.RequiredError('chainSpecForkId', 'Required parameter "chainSpecForkId" was null or undefined when calling simulateTransaction2().');
|
|
586
|
+
}
|
|
587
|
+
if (requestParameters['body'] == null) {
|
|
588
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransaction2().');
|
|
589
|
+
}
|
|
590
|
+
const queryParameters = {};
|
|
591
|
+
const headerParameters = {};
|
|
592
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
593
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
594
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
595
|
+
}
|
|
596
|
+
const response = await this.request({
|
|
597
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{chainSpec.forkId}/simulation`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"chainSpec.forkId"}}`, encodeURIComponent(String(requestParameters['chainSpecForkId']))),
|
|
598
|
+
method: 'POST',
|
|
599
|
+
headers: headerParameters,
|
|
600
|
+
query: queryParameters,
|
|
601
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON(requestParameters['body']),
|
|
602
|
+
}, initOverrides);
|
|
603
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue));
|
|
604
|
+
}
|
|
605
|
+
/**
|
|
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
|
|
608
|
+
*/
|
|
609
|
+
async simulateTransaction2(requestParameters, initOverrides) {
|
|
610
|
+
const response = await this.simulateTransaction2Raw(requestParameters, initOverrides);
|
|
611
|
+
return await response.value();
|
|
612
|
+
}
|
|
278
613
|
/**
|
|
279
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.
|
|
280
615
|
* Bundle simulation
|
|
281
616
|
*/
|
|
282
617
|
async simulateTransactionBundleRaw(requestParameters, initOverrides) {
|
|
618
|
+
if (requestParameters['projectOwner'] == null) {
|
|
619
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling simulateTransactionBundle().');
|
|
620
|
+
}
|
|
621
|
+
if (requestParameters['projectSlug'] == null) {
|
|
622
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling simulateTransactionBundle().');
|
|
623
|
+
}
|
|
624
|
+
if (requestParameters['chainSpecChainId'] == null) {
|
|
625
|
+
throw new runtime.RequiredError('chainSpecChainId', 'Required parameter "chainSpecChainId" was null or undefined when calling simulateTransactionBundle().');
|
|
626
|
+
}
|
|
283
627
|
if (requestParameters['body'] == null) {
|
|
284
628
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionBundle().');
|
|
285
629
|
}
|
|
@@ -290,11 +634,11 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
290
634
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
291
635
|
}
|
|
292
636
|
const response = await this.request({
|
|
293
|
-
path: `/api/v1/solidity/
|
|
637
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/{chainSpec.chainId}/simulation_bundle`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"chainSpec.chainId"}}`, encodeURIComponent(String(requestParameters['chainSpecChainId']))),
|
|
294
638
|
method: 'POST',
|
|
295
639
|
headers: headerParameters,
|
|
296
640
|
query: queryParameters,
|
|
297
|
-
body:
|
|
641
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON(requestParameters['body']),
|
|
298
642
|
}, initOverrides);
|
|
299
643
|
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
|
|
300
644
|
}
|
|
@@ -306,5 +650,45 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
306
650
|
const response = await this.simulateTransactionBundleRaw(requestParameters, initOverrides);
|
|
307
651
|
return await response.value();
|
|
308
652
|
}
|
|
653
|
+
/**
|
|
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
|
|
656
|
+
*/
|
|
657
|
+
async simulateTransactionBundle2Raw(requestParameters, initOverrides) {
|
|
658
|
+
if (requestParameters['projectOwner'] == null) {
|
|
659
|
+
throw new runtime.RequiredError('projectOwner', 'Required parameter "projectOwner" was null or undefined when calling simulateTransactionBundle2().');
|
|
660
|
+
}
|
|
661
|
+
if (requestParameters['projectSlug'] == null) {
|
|
662
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling simulateTransactionBundle2().');
|
|
663
|
+
}
|
|
664
|
+
if (requestParameters['chainSpecForkId'] == null) {
|
|
665
|
+
throw new runtime.RequiredError('chainSpecForkId', 'Required parameter "chainSpecForkId" was null or undefined when calling simulateTransactionBundle2().');
|
|
666
|
+
}
|
|
667
|
+
if (requestParameters['body'] == null) {
|
|
668
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionBundle2().');
|
|
669
|
+
}
|
|
670
|
+
const queryParameters = {};
|
|
671
|
+
const headerParameters = {};
|
|
672
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
673
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
674
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
675
|
+
}
|
|
676
|
+
const response = await this.request({
|
|
677
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{chainSpec.forkId}/simulation_bundle`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"chainSpec.forkId"}}`, encodeURIComponent(String(requestParameters['chainSpecForkId']))),
|
|
678
|
+
method: 'POST',
|
|
679
|
+
headers: headerParameters,
|
|
680
|
+
query: queryParameters,
|
|
681
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON(requestParameters['body']),
|
|
682
|
+
}, initOverrides);
|
|
683
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
|
|
684
|
+
}
|
|
685
|
+
/**
|
|
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
|
|
688
|
+
*/
|
|
689
|
+
async simulateTransactionBundle2(requestParameters, initOverrides) {
|
|
690
|
+
const response = await this.simulateTransactionBundle2Raw(requestParameters, initOverrides);
|
|
691
|
+
return await response.value();
|
|
692
|
+
}
|
|
309
693
|
}
|
|
310
694
|
//# sourceMappingURL=DebugAndSimulationApi.js.map
|