@sentio/api 1.0.2-rc.17 → 1.0.2-rc.19
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 -19
- package/dist/src/apis/DebugAndSimulationApi.js +424 -43
- package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
- package/dist/src/apis/DefaultApi.d.ts +31 -0
- package/dist/src/apis/DefaultApi.js +54 -0
- package/dist/src/apis/DefaultApi.js.map +1 -0
- 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 +2 -0
- package/dist/src/apis/index.js +2 -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/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/SolidityServiceGetForkInfoResponse.d.ts +70 -0
- package/dist/src/models/SolidityServiceGetForkInfoResponse.js +56 -0
- package/dist/src/models/SolidityServiceGetForkInfoResponse.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/SolidityServiceNodeEnvironment.d.ts +50 -0
- package/dist/src/models/SolidityServiceNodeEnvironment.js +48 -0
- package/dist/src/models/SolidityServiceNodeEnvironment.js.map +1 -0
- package/dist/src/models/SolidityServiceNodeForkConfig.d.ts +44 -0
- package/dist/src/models/SolidityServiceNodeForkConfig.js +46 -0
- package/dist/src/models/SolidityServiceNodeForkConfig.js.map +1 -0
- 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 +17 -2
- package/dist/src/models/index.js +17 -2
- package/dist/src/models/index.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DebugAndSimulationApi.ts +824 -110
- package/src/apis/DefaultApi.ts +87 -0
- package/src/apis/ForksApi.ts +384 -0
- package/src/apis/index.ts +2 -0
- package/src/models/SolidityServiceBaseChainConfig.ts +14 -4
- 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/SolidityServiceGetForkInfoResponse.ts +128 -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/SolidityServiceNodeEnvironment.ts +89 -0
- package/src/models/SolidityServiceNodeForkConfig.ts +81 -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 +17 -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,19 +22,131 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
22
22
|
* Get indexed call trace
|
|
23
23
|
*/
|
|
24
24
|
async getCallTraceRaw(requestParameters, initOverrides) {
|
|
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().');
|
|
36
|
+
}
|
|
25
37
|
const queryParameters = {};
|
|
26
|
-
if (requestParameters['
|
|
27
|
-
queryParameters['
|
|
38
|
+
if (requestParameters['chainSpecForkId'] != null) {
|
|
39
|
+
queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId'];
|
|
28
40
|
}
|
|
29
|
-
if (requestParameters['
|
|
30
|
-
queryParameters['
|
|
41
|
+
if (requestParameters['txIdSimulationId'] != null) {
|
|
42
|
+
queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
|
|
31
43
|
}
|
|
32
|
-
if (requestParameters['
|
|
33
|
-
queryParameters['
|
|
44
|
+
if (requestParameters['txIdBundleId'] != null) {
|
|
45
|
+
queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
|
|
34
46
|
}
|
|
35
|
-
if (requestParameters['
|
|
36
|
-
queryParameters['
|
|
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().');
|
|
86
|
+
}
|
|
87
|
+
if (requestParameters['chainSpecChainId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('chainSpecChainId', 'Required parameter "chainSpecChainId" was null or undefined when calling getCallTrace2().');
|
|
89
|
+
}
|
|
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().');
|
|
37
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 = {};
|
|
38
150
|
if (requestParameters['chainSpecForkId'] != null) {
|
|
39
151
|
queryParameters['chainSpec.forkId'] = requestParameters['chainSpecForkId'];
|
|
40
152
|
}
|
|
@@ -44,15 +156,124 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
44
156
|
if (requestParameters['txIdSimulationId'] != null) {
|
|
45
157
|
queryParameters['txId.simulationId'] = requestParameters['txIdSimulationId'];
|
|
46
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
|
+
}
|
|
47
212
|
if (requestParameters['txIdBundleId'] != null) {
|
|
48
213
|
queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
|
|
49
214
|
}
|
|
215
|
+
if (requestParameters['withInternalCalls'] != null) {
|
|
216
|
+
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
217
|
+
}
|
|
50
218
|
if (requestParameters['disableOptimizer'] != null) {
|
|
51
219
|
queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
|
|
52
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
|
+
}
|
|
268
|
+
if (requestParameters['txIdBundleId'] != null) {
|
|
269
|
+
queryParameters['txId.bundleId'] = requestParameters['txIdBundleId'];
|
|
270
|
+
}
|
|
53
271
|
if (requestParameters['withInternalCalls'] != null) {
|
|
54
272
|
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
55
273
|
}
|
|
274
|
+
if (requestParameters['disableOptimizer'] != null) {
|
|
275
|
+
queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
|
|
276
|
+
}
|
|
56
277
|
if (requestParameters['ignoreGasCost'] != null) {
|
|
57
278
|
queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
|
|
58
279
|
}
|
|
@@ -61,7 +282,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
61
282
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
62
283
|
}
|
|
63
284
|
const response = await this.request({
|
|
64
|
-
path: `/api/v1/solidity/call_trace`,
|
|
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']))),
|
|
65
286
|
method: 'GET',
|
|
66
287
|
headers: headerParameters,
|
|
67
288
|
query: queryParameters,
|
|
@@ -72,30 +293,86 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
72
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)
|
|
73
294
|
* Get indexed call trace
|
|
74
295
|
*/
|
|
75
|
-
async
|
|
76
|
-
const response = await this.
|
|
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
|
+
}
|
|
327
|
+
if (requestParameters['withInternalCalls'] != null) {
|
|
328
|
+
queryParameters['withInternalCalls'] = requestParameters['withInternalCalls'];
|
|
329
|
+
}
|
|
330
|
+
if (requestParameters['disableOptimizer'] != null) {
|
|
331
|
+
queryParameters['disableOptimizer'] = requestParameters['disableOptimizer'];
|
|
332
|
+
}
|
|
333
|
+
if (requestParameters['ignoreGasCost'] != null) {
|
|
334
|
+
queryParameters['ignoreGasCost'] = requestParameters['ignoreGasCost'];
|
|
335
|
+
}
|
|
336
|
+
const headerParameters = {};
|
|
337
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
338
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
339
|
+
}
|
|
340
|
+
const response = await this.request({
|
|
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']))),
|
|
342
|
+
method: 'GET',
|
|
343
|
+
headers: headerParameters,
|
|
344
|
+
query: queryParameters,
|
|
345
|
+
}, initOverrides);
|
|
346
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
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)
|
|
350
|
+
* Get indexed call trace
|
|
351
|
+
*/
|
|
352
|
+
async getCallTrace6(requestParameters, initOverrides) {
|
|
353
|
+
const response = await this.getCallTrace6Raw(requestParameters, initOverrides);
|
|
77
354
|
return await response.value();
|
|
78
355
|
}
|
|
79
356
|
/**
|
|
80
357
|
* Get a simulation by id
|
|
81
358
|
*/
|
|
82
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
|
+
}
|
|
83
366
|
if (requestParameters['simulationId'] == null) {
|
|
84
367
|
throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getSimulation().');
|
|
85
368
|
}
|
|
86
369
|
const queryParameters = {};
|
|
87
|
-
if (requestParameters['projectOwner'] != null) {
|
|
88
|
-
queryParameters['projectOwner'] = requestParameters['projectOwner'];
|
|
89
|
-
}
|
|
90
|
-
if (requestParameters['projectSlug'] != null) {
|
|
91
|
-
queryParameters['projectSlug'] = requestParameters['projectSlug'];
|
|
92
|
-
}
|
|
93
370
|
const headerParameters = {};
|
|
94
371
|
if (this.configuration && this.configuration.apiKey) {
|
|
95
372
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
96
373
|
}
|
|
97
374
|
const response = await this.request({
|
|
98
|
-
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']))),
|
|
99
376
|
method: 'GET',
|
|
100
377
|
headers: headerParameters,
|
|
101
378
|
query: queryParameters,
|
|
@@ -112,23 +389,23 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
112
389
|
/**
|
|
113
390
|
* Get a bundle simulation by id
|
|
114
391
|
*/
|
|
115
|
-
async
|
|
116
|
-
if (requestParameters['
|
|
117
|
-
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().');
|
|
118
395
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
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().');
|
|
122
398
|
}
|
|
123
|
-
if (requestParameters['
|
|
124
|
-
|
|
399
|
+
if (requestParameters['bundleId'] == null) {
|
|
400
|
+
throw new runtime.RequiredError('bundleId', 'Required parameter "bundleId" was null or undefined when calling getSimulationBundleInProject().');
|
|
125
401
|
}
|
|
402
|
+
const queryParameters = {};
|
|
126
403
|
const headerParameters = {};
|
|
127
404
|
if (this.configuration && this.configuration.apiKey) {
|
|
128
405
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
129
406
|
}
|
|
130
407
|
const response = await this.request({
|
|
131
|
-
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']))),
|
|
132
409
|
method: 'GET',
|
|
133
410
|
headers: headerParameters,
|
|
134
411
|
query: queryParameters,
|
|
@@ -138,21 +415,21 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
138
415
|
/**
|
|
139
416
|
* Get a bundle simulation by id
|
|
140
417
|
*/
|
|
141
|
-
async
|
|
142
|
-
const response = await this.
|
|
418
|
+
async getSimulationBundleInProject(requestParameters, initOverrides) {
|
|
419
|
+
const response = await this.getSimulationBundleInProjectRaw(requestParameters, initOverrides);
|
|
143
420
|
return await response.value();
|
|
144
421
|
}
|
|
145
422
|
/**
|
|
146
423
|
* Get existing transaction simulations
|
|
147
424
|
*/
|
|
148
425
|
async getSimulationsRaw(requestParameters, initOverrides) {
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
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().');
|
|
152
428
|
}
|
|
153
|
-
if (requestParameters['projectSlug']
|
|
154
|
-
|
|
429
|
+
if (requestParameters['projectSlug'] == null) {
|
|
430
|
+
throw new runtime.RequiredError('projectSlug', 'Required parameter "projectSlug" was null or undefined when calling getSimulations().');
|
|
155
431
|
}
|
|
432
|
+
const queryParameters = {};
|
|
156
433
|
if (requestParameters['labelContains'] != null) {
|
|
157
434
|
queryParameters['labelContains'] = requestParameters['labelContains'];
|
|
158
435
|
}
|
|
@@ -167,7 +444,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
167
444
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
168
445
|
}
|
|
169
446
|
const response = await this.request({
|
|
170
|
-
path: `/api/v1/solidity/
|
|
447
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/simulation`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))),
|
|
171
448
|
method: 'GET',
|
|
172
449
|
headers: headerParameters,
|
|
173
450
|
query: queryParameters,
|
|
@@ -177,7 +454,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
177
454
|
/**
|
|
178
455
|
* Get existing transaction simulations
|
|
179
456
|
*/
|
|
180
|
-
async getSimulations(requestParameters
|
|
457
|
+
async getSimulations(requestParameters, initOverrides) {
|
|
181
458
|
const response = await this.getSimulationsRaw(requestParameters, initOverrides);
|
|
182
459
|
return await response.value();
|
|
183
460
|
}
|
|
@@ -185,6 +462,12 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
185
462
|
* Search for transactions
|
|
186
463
|
*/
|
|
187
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
|
+
}
|
|
188
471
|
const queryParameters = {};
|
|
189
472
|
if (requestParameters['chainId'] != null) {
|
|
190
473
|
queryParameters['chainId'] = requestParameters['chainId'];
|
|
@@ -233,7 +516,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
233
516
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
234
517
|
}
|
|
235
518
|
const response = await this.request({
|
|
236
|
-
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']))),
|
|
237
520
|
method: 'GET',
|
|
238
521
|
headers: headerParameters,
|
|
239
522
|
query: queryParameters,
|
|
@@ -243,7 +526,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
243
526
|
/**
|
|
244
527
|
* Search for transactions
|
|
245
528
|
*/
|
|
246
|
-
async searchTransactions(requestParameters
|
|
529
|
+
async searchTransactions(requestParameters, initOverrides) {
|
|
247
530
|
const response = await this.searchTransactionsRaw(requestParameters, initOverrides);
|
|
248
531
|
return await response.value();
|
|
249
532
|
}
|
|
@@ -252,6 +535,15 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
252
535
|
* Single simulation
|
|
253
536
|
*/
|
|
254
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
|
+
}
|
|
255
547
|
if (requestParameters['body'] == null) {
|
|
256
548
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransaction().');
|
|
257
549
|
}
|
|
@@ -262,11 +554,11 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
262
554
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
263
555
|
}
|
|
264
556
|
const response = await this.request({
|
|
265
|
-
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']))),
|
|
266
558
|
method: 'POST',
|
|
267
559
|
headers: headerParameters,
|
|
268
560
|
query: queryParameters,
|
|
269
|
-
body:
|
|
561
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON(requestParameters['body']),
|
|
270
562
|
}, initOverrides);
|
|
271
563
|
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue));
|
|
272
564
|
}
|
|
@@ -278,11 +570,60 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
278
570
|
const response = await this.simulateTransactionRaw(requestParameters, initOverrides);
|
|
279
571
|
return await response.value();
|
|
280
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
|
+
}
|
|
281
613
|
/**
|
|
282
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.
|
|
283
615
|
* Bundle simulation
|
|
284
616
|
*/
|
|
285
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
|
+
}
|
|
286
627
|
if (requestParameters['body'] == null) {
|
|
287
628
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionBundle().');
|
|
288
629
|
}
|
|
@@ -293,11 +634,11 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
293
634
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
294
635
|
}
|
|
295
636
|
const response = await this.request({
|
|
296
|
-
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']))),
|
|
297
638
|
method: 'POST',
|
|
298
639
|
headers: headerParameters,
|
|
299
640
|
query: queryParameters,
|
|
300
|
-
body:
|
|
641
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON(requestParameters['body']),
|
|
301
642
|
}, initOverrides);
|
|
302
643
|
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
|
|
303
644
|
}
|
|
@@ -309,5 +650,45 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
309
650
|
const response = await this.simulateTransactionBundleRaw(requestParameters, initOverrides);
|
|
310
651
|
return await response.value();
|
|
311
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
|
+
}
|
|
312
693
|
}
|
|
313
694
|
//# sourceMappingURL=DebugAndSimulationApi.js.map
|