@sentio/api 1.0.2-rc.26 → 1.0.2-rc.27
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 +43 -43
- package/dist/src/apis/DebugAndSimulationApi.js +76 -76
- package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
- package/dist/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.d.ts → SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody.d.ts} +9 -9
- package/dist/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js → SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody.js} +9 -9
- package/dist/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.js.map → SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody.js.map} +1 -1
- package/dist/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.d.ts → SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody.d.ts} +9 -9
- package/dist/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js → SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody.js} +9 -9
- package/dist/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.js.map → SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody.js.map} +1 -1
- package/dist/src/models/index.d.ts +2 -2
- package/dist/src/models/index.js +2 -2
- package/package.json +1 -1
- package/src/apis/DebugAndSimulationApi.ts +104 -104
- package/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionBundleByForkBody.ts → SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody.ts} +11 -11
- package/src/models/{SolidityServiceSolidityAPIServiceSimulateTransactionByForkBody.ts → SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody.ts} +11 -11
- package/src/models/index.ts +2 -2
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
|
-
import type { GoogleApiHttpBody, SolidityServiceGetSimulationBundleResponse, SolidityServiceGetSimulationResponse, SolidityServiceGetSimulationsResponse, SolidityServiceSimulateTransactionBundleResponse, SolidityServiceSimulateTransactionResponse, SolidityServiceSolidityAPIServiceSimulateTransactionBody, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody,
|
|
13
|
+
import type { GoogleApiHttpBody, SolidityServiceGetSimulationBundleResponse, SolidityServiceGetSimulationResponse, SolidityServiceGetSimulationsResponse, SolidityServiceSimulateTransactionBundleResponse, SolidityServiceSimulateTransactionResponse, SolidityServiceSolidityAPIServiceSimulateTransactionBody, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody, SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody, SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody, TxindexEvmSearchTransactionsResponse } from '../models/index.js';
|
|
14
14
|
export interface GetCallTraceByBundleRequest {
|
|
15
15
|
owner: string;
|
|
16
16
|
slug: string;
|
|
@@ -20,46 +20,46 @@ export interface GetCallTraceByBundleRequest {
|
|
|
20
20
|
disableOptimizer?: boolean;
|
|
21
21
|
ignoreGasCost?: boolean;
|
|
22
22
|
}
|
|
23
|
-
export interface
|
|
23
|
+
export interface GetCallTraceBySimulationRequest {
|
|
24
24
|
owner: string;
|
|
25
25
|
slug: string;
|
|
26
|
-
|
|
27
|
-
|
|
26
|
+
chainId: string;
|
|
27
|
+
simulationId: string;
|
|
28
28
|
withInternalCalls?: boolean;
|
|
29
29
|
disableOptimizer?: boolean;
|
|
30
30
|
ignoreGasCost?: boolean;
|
|
31
31
|
}
|
|
32
|
-
export interface
|
|
32
|
+
export interface GetCallTraceByTransactionRequest {
|
|
33
33
|
owner: string;
|
|
34
34
|
slug: string;
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
chainId: string;
|
|
36
|
+
txHash: string;
|
|
37
37
|
withInternalCalls?: boolean;
|
|
38
38
|
disableOptimizer?: boolean;
|
|
39
39
|
ignoreGasCost?: boolean;
|
|
40
40
|
}
|
|
41
|
-
export interface
|
|
41
|
+
export interface GetCallTraceOnForkBundleRequest {
|
|
42
42
|
owner: string;
|
|
43
43
|
slug: string;
|
|
44
44
|
forkId: string;
|
|
45
|
-
|
|
45
|
+
bundleId: string;
|
|
46
46
|
withInternalCalls?: boolean;
|
|
47
47
|
disableOptimizer?: boolean;
|
|
48
48
|
ignoreGasCost?: boolean;
|
|
49
49
|
}
|
|
50
|
-
export interface
|
|
50
|
+
export interface GetCallTraceOnForkSimulationRequest {
|
|
51
51
|
owner: string;
|
|
52
52
|
slug: string;
|
|
53
|
-
|
|
53
|
+
forkId: string;
|
|
54
54
|
simulationId: string;
|
|
55
55
|
withInternalCalls?: boolean;
|
|
56
56
|
disableOptimizer?: boolean;
|
|
57
57
|
ignoreGasCost?: boolean;
|
|
58
58
|
}
|
|
59
|
-
export interface
|
|
59
|
+
export interface GetCallTraceOnForkTransactionRequest {
|
|
60
60
|
owner: string;
|
|
61
61
|
slug: string;
|
|
62
|
-
|
|
62
|
+
forkId: string;
|
|
63
63
|
txHash: string;
|
|
64
64
|
withInternalCalls?: boolean;
|
|
65
65
|
disableOptimizer?: boolean;
|
|
@@ -112,17 +112,17 @@ export interface SimulateTransactionBundleRequest {
|
|
|
112
112
|
chainId: string;
|
|
113
113
|
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody;
|
|
114
114
|
}
|
|
115
|
-
export interface
|
|
115
|
+
export interface SimulateTransactionBundleOnForkRequest {
|
|
116
116
|
owner: string;
|
|
117
117
|
slug: string;
|
|
118
118
|
forkId: string;
|
|
119
|
-
body:
|
|
119
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBody;
|
|
120
120
|
}
|
|
121
|
-
export interface
|
|
121
|
+
export interface SimulateTransactionOnForkRequest {
|
|
122
122
|
owner: string;
|
|
123
123
|
slug: string;
|
|
124
124
|
forkId: string;
|
|
125
|
-
body:
|
|
125
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBody;
|
|
126
126
|
}
|
|
127
127
|
/**
|
|
128
128
|
*
|
|
@@ -137,47 +137,47 @@ export declare class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
137
137
|
*/
|
|
138
138
|
getCallTraceByBundle(requestParameters: GetCallTraceByBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
|
|
139
139
|
/**
|
|
140
|
-
* Get Call Trace by
|
|
140
|
+
* Get Call Trace by Simulation
|
|
141
141
|
*/
|
|
142
|
-
|
|
142
|
+
getCallTraceBySimulationRaw(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
|
|
143
143
|
/**
|
|
144
|
-
* Get Call Trace by
|
|
144
|
+
* Get Call Trace by Simulation
|
|
145
145
|
*/
|
|
146
|
-
|
|
146
|
+
getCallTraceBySimulation(requestParameters: GetCallTraceBySimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
|
|
147
147
|
/**
|
|
148
|
-
*
|
|
148
|
+
* API to get Sentio call trace. It takes `txId.txHash` and `chainSpec.chainId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID. The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png). But we have an additional `startIndex` and `startIndex` on each trace entry even for the LOG, representing the execution order in the trace. This allows you to build chart that marks the order of fund flow. %20(1)%20(1)%20(1).png)
|
|
149
|
+
* Get Call Trace by Transaction
|
|
149
150
|
*/
|
|
150
|
-
|
|
151
|
+
getCallTraceByTransactionRaw(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
|
|
151
152
|
/**
|
|
152
|
-
*
|
|
153
|
+
* API to get Sentio call trace. It takes `txId.txHash` and `chainSpec.chainId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID. The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png). But we have an additional `startIndex` and `startIndex` on each trace entry even for the LOG, representing the execution order in the trace. This allows you to build chart that marks the order of fund flow. %20(1)%20(1)%20(1).png)
|
|
154
|
+
* Get Call Trace by Transaction
|
|
153
155
|
*/
|
|
154
|
-
|
|
156
|
+
getCallTraceByTransaction(requestParameters: GetCallTraceByTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
|
|
155
157
|
/**
|
|
156
|
-
* Get Call Trace by
|
|
158
|
+
* Get Call Trace by Bundle Simulation on Fork
|
|
157
159
|
*/
|
|
158
|
-
|
|
160
|
+
getCallTraceOnForkBundleRaw(requestParameters: GetCallTraceOnForkBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
|
|
159
161
|
/**
|
|
160
|
-
* Get Call Trace by
|
|
162
|
+
* Get Call Trace by Bundle Simulation on Fork
|
|
161
163
|
*/
|
|
162
|
-
|
|
164
|
+
getCallTraceOnForkBundle(requestParameters: GetCallTraceOnForkBundleRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
|
|
163
165
|
/**
|
|
164
|
-
* Get Call Trace by Simulation
|
|
166
|
+
* Get Call Trace by Simulation on Fork
|
|
165
167
|
*/
|
|
166
|
-
|
|
168
|
+
getCallTraceOnForkSimulationRaw(requestParameters: GetCallTraceOnForkSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
|
|
167
169
|
/**
|
|
168
|
-
* Get Call Trace by Simulation
|
|
170
|
+
* Get Call Trace by Simulation on Fork
|
|
169
171
|
*/
|
|
170
|
-
|
|
172
|
+
getCallTraceOnForkSimulation(requestParameters: GetCallTraceOnForkSimulationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
|
|
171
173
|
/**
|
|
172
|
-
*
|
|
173
|
-
* Get Call Trace by Transaction
|
|
174
|
+
* Get Call Trace by Transaction on Fork
|
|
174
175
|
*/
|
|
175
|
-
|
|
176
|
+
getCallTraceOnForkTransactionRaw(requestParameters: GetCallTraceOnForkTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>>;
|
|
176
177
|
/**
|
|
177
|
-
*
|
|
178
|
-
* Get Call Trace by Transaction
|
|
178
|
+
* Get Call Trace by Transaction on Fork
|
|
179
179
|
*/
|
|
180
|
-
|
|
180
|
+
getCallTraceOnForkTransaction(requestParameters: GetCallTraceOnForkTransactionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody>;
|
|
181
181
|
/**
|
|
182
182
|
* Get Simulation by ID
|
|
183
183
|
*/
|
|
@@ -233,17 +233,17 @@ export declare class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
233
233
|
/**
|
|
234
234
|
* Run Bundle simulation on Fork
|
|
235
235
|
*/
|
|
236
|
-
|
|
236
|
+
simulateTransactionBundleOnForkRaw(requestParameters: SimulateTransactionBundleOnForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionBundleResponse>>;
|
|
237
237
|
/**
|
|
238
238
|
* Run Bundle simulation on Fork
|
|
239
239
|
*/
|
|
240
|
-
|
|
240
|
+
simulateTransactionBundleOnFork(requestParameters: SimulateTransactionBundleOnForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionBundleResponse>;
|
|
241
241
|
/**
|
|
242
242
|
* Run Simulation on Fork
|
|
243
243
|
*/
|
|
244
|
-
|
|
244
|
+
simulateTransactionOnForkRaw(requestParameters: SimulateTransactionOnForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceSimulateTransactionResponse>>;
|
|
245
245
|
/**
|
|
246
246
|
* Run Simulation on Fork
|
|
247
247
|
*/
|
|
248
|
-
|
|
248
|
+
simulateTransactionOnFork(requestParameters: SimulateTransactionOnForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceSimulateTransactionResponse>;
|
|
249
249
|
}
|
|
@@ -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, SolidityServiceSimulateTransactionBundleResponseFromJSON, SolidityServiceSimulateTransactionResponseFromJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON,
|
|
15
|
+
import { GoogleApiHttpBodyFromJSON, SolidityServiceGetSimulationBundleResponseFromJSON, SolidityServiceGetSimulationResponseFromJSON, SolidityServiceGetSimulationsResponseFromJSON, SolidityServiceSimulateTransactionBundleResponseFromJSON, SolidityServiceSimulateTransactionResponseFromJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBodyToJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBodyToJSON, SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBodyToJSON, SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBodyToJSON, TxindexEvmSearchTransactionsResponseFromJSON, } from '../models/index.js';
|
|
16
16
|
/**
|
|
17
17
|
*
|
|
18
18
|
*/
|
|
@@ -63,20 +63,20 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
63
63
|
return await response.value();
|
|
64
64
|
}
|
|
65
65
|
/**
|
|
66
|
-
* Get Call Trace by
|
|
66
|
+
* Get Call Trace by Simulation
|
|
67
67
|
*/
|
|
68
|
-
async
|
|
68
|
+
async getCallTraceBySimulationRaw(requestParameters, initOverrides) {
|
|
69
69
|
if (requestParameters['owner'] == null) {
|
|
70
|
-
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling
|
|
70
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceBySimulation().');
|
|
71
71
|
}
|
|
72
72
|
if (requestParameters['slug'] == null) {
|
|
73
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling
|
|
73
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceBySimulation().');
|
|
74
74
|
}
|
|
75
|
-
if (requestParameters['
|
|
76
|
-
throw new runtime.RequiredError('
|
|
75
|
+
if (requestParameters['chainId'] == null) {
|
|
76
|
+
throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling getCallTraceBySimulation().');
|
|
77
77
|
}
|
|
78
|
-
if (requestParameters['
|
|
79
|
-
throw new runtime.RequiredError('
|
|
78
|
+
if (requestParameters['simulationId'] == null) {
|
|
79
|
+
throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getCallTraceBySimulation().');
|
|
80
80
|
}
|
|
81
81
|
const queryParameters = {};
|
|
82
82
|
if (requestParameters['withInternalCalls'] != null) {
|
|
@@ -93,7 +93,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
93
93
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
94
94
|
}
|
|
95
95
|
const response = await this.request({
|
|
96
|
-
path: `/api/v1/solidity/{owner}/{slug}/
|
|
96
|
+
path: `/api/v1/solidity/{owner}/{slug}/{chainId}/simulation/{simulationId}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"simulationId"}}`, encodeURIComponent(String(requestParameters['simulationId']))),
|
|
97
97
|
method: 'GET',
|
|
98
98
|
headers: headerParameters,
|
|
99
99
|
query: queryParameters,
|
|
@@ -101,27 +101,28 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
101
101
|
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
102
102
|
}
|
|
103
103
|
/**
|
|
104
|
-
* Get Call Trace by
|
|
104
|
+
* Get Call Trace by Simulation
|
|
105
105
|
*/
|
|
106
|
-
async
|
|
107
|
-
const response = await this.
|
|
106
|
+
async getCallTraceBySimulation(requestParameters, initOverrides) {
|
|
107
|
+
const response = await this.getCallTraceBySimulationRaw(requestParameters, initOverrides);
|
|
108
108
|
return await response.value();
|
|
109
109
|
}
|
|
110
110
|
/**
|
|
111
|
-
*
|
|
111
|
+
* API to get Sentio call trace. It takes `txId.txHash` and `chainSpec.chainId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID. The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png). But we have an additional `startIndex` and `startIndex` on each trace entry even for the LOG, representing the execution order in the trace. This allows you to build chart that marks the order of fund flow. %20(1)%20(1)%20(1).png)
|
|
112
|
+
* Get Call Trace by Transaction
|
|
112
113
|
*/
|
|
113
|
-
async
|
|
114
|
+
async getCallTraceByTransactionRaw(requestParameters, initOverrides) {
|
|
114
115
|
if (requestParameters['owner'] == null) {
|
|
115
|
-
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling
|
|
116
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceByTransaction().');
|
|
116
117
|
}
|
|
117
118
|
if (requestParameters['slug'] == null) {
|
|
118
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling
|
|
119
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceByTransaction().');
|
|
119
120
|
}
|
|
120
|
-
if (requestParameters['
|
|
121
|
-
throw new runtime.RequiredError('
|
|
121
|
+
if (requestParameters['chainId'] == null) {
|
|
122
|
+
throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling getCallTraceByTransaction().');
|
|
122
123
|
}
|
|
123
|
-
if (requestParameters['
|
|
124
|
-
throw new runtime.RequiredError('
|
|
124
|
+
if (requestParameters['txHash'] == null) {
|
|
125
|
+
throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling getCallTraceByTransaction().');
|
|
125
126
|
}
|
|
126
127
|
const queryParameters = {};
|
|
127
128
|
if (requestParameters['withInternalCalls'] != null) {
|
|
@@ -138,7 +139,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
138
139
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
139
140
|
}
|
|
140
141
|
const response = await this.request({
|
|
141
|
-
path: `/api/v1/solidity/{owner}/{slug}/
|
|
142
|
+
path: `/api/v1/solidity/{owner}/{slug}/{chainId}/transaction/{txHash}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chainId"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"txHash"}}`, encodeURIComponent(String(requestParameters['txHash']))),
|
|
142
143
|
method: 'GET',
|
|
143
144
|
headers: headerParameters,
|
|
144
145
|
query: queryParameters,
|
|
@@ -146,27 +147,28 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
146
147
|
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
147
148
|
}
|
|
148
149
|
/**
|
|
149
|
-
*
|
|
150
|
+
* API to get Sentio call trace. It takes `txId.txHash` and `chainSpec.chainId` arguments, where the first is transaction hash, and the second is the numeric ethereum chain ID. The results looks very similar to the normal [Ethereum call trace](https://raw.githubusercontent.com/sentioxyz/docs/main/.gitbook/assets/image%20(2)%20(1)%20(1)%20(1).png). But we have an additional `startIndex` and `startIndex` on each trace entry even for the LOG, representing the execution order in the trace. This allows you to build chart that marks the order of fund flow. %20(1)%20(1)%20(1).png)
|
|
151
|
+
* Get Call Trace by Transaction
|
|
150
152
|
*/
|
|
151
|
-
async
|
|
152
|
-
const response = await this.
|
|
153
|
+
async getCallTraceByTransaction(requestParameters, initOverrides) {
|
|
154
|
+
const response = await this.getCallTraceByTransactionRaw(requestParameters, initOverrides);
|
|
153
155
|
return await response.value();
|
|
154
156
|
}
|
|
155
157
|
/**
|
|
156
|
-
* Get Call Trace by
|
|
158
|
+
* Get Call Trace by Bundle Simulation on Fork
|
|
157
159
|
*/
|
|
158
|
-
async
|
|
160
|
+
async getCallTraceOnForkBundleRaw(requestParameters, initOverrides) {
|
|
159
161
|
if (requestParameters['owner'] == null) {
|
|
160
|
-
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling
|
|
162
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceOnForkBundle().');
|
|
161
163
|
}
|
|
162
164
|
if (requestParameters['slug'] == null) {
|
|
163
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling
|
|
165
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceOnForkBundle().');
|
|
164
166
|
}
|
|
165
167
|
if (requestParameters['forkId'] == null) {
|
|
166
|
-
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling
|
|
168
|
+
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTraceOnForkBundle().');
|
|
167
169
|
}
|
|
168
|
-
if (requestParameters['
|
|
169
|
-
throw new runtime.RequiredError('
|
|
170
|
+
if (requestParameters['bundleId'] == null) {
|
|
171
|
+
throw new runtime.RequiredError('bundleId', 'Required parameter "bundleId" was null or undefined when calling getCallTraceOnForkBundle().');
|
|
170
172
|
}
|
|
171
173
|
const queryParameters = {};
|
|
172
174
|
if (requestParameters['withInternalCalls'] != null) {
|
|
@@ -183,7 +185,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
183
185
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
184
186
|
}
|
|
185
187
|
const response = await this.request({
|
|
186
|
-
path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/
|
|
188
|
+
path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/bundle/{bundleId}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"forkId"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"bundleId"}}`, encodeURIComponent(String(requestParameters['bundleId']))),
|
|
187
189
|
method: 'GET',
|
|
188
190
|
headers: headerParameters,
|
|
189
191
|
query: queryParameters,
|
|
@@ -191,27 +193,27 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
191
193
|
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
192
194
|
}
|
|
193
195
|
/**
|
|
194
|
-
* Get Call Trace by
|
|
196
|
+
* Get Call Trace by Bundle Simulation on Fork
|
|
195
197
|
*/
|
|
196
|
-
async
|
|
197
|
-
const response = await this.
|
|
198
|
+
async getCallTraceOnForkBundle(requestParameters, initOverrides) {
|
|
199
|
+
const response = await this.getCallTraceOnForkBundleRaw(requestParameters, initOverrides);
|
|
198
200
|
return await response.value();
|
|
199
201
|
}
|
|
200
202
|
/**
|
|
201
|
-
* Get Call Trace by Simulation
|
|
203
|
+
* Get Call Trace by Simulation on Fork
|
|
202
204
|
*/
|
|
203
|
-
async
|
|
205
|
+
async getCallTraceOnForkSimulationRaw(requestParameters, initOverrides) {
|
|
204
206
|
if (requestParameters['owner'] == null) {
|
|
205
|
-
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling
|
|
207
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceOnForkSimulation().');
|
|
206
208
|
}
|
|
207
209
|
if (requestParameters['slug'] == null) {
|
|
208
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling
|
|
210
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceOnForkSimulation().');
|
|
209
211
|
}
|
|
210
|
-
if (requestParameters['
|
|
211
|
-
throw new runtime.RequiredError('
|
|
212
|
+
if (requestParameters['forkId'] == null) {
|
|
213
|
+
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTraceOnForkSimulation().');
|
|
212
214
|
}
|
|
213
215
|
if (requestParameters['simulationId'] == null) {
|
|
214
|
-
throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling
|
|
216
|
+
throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getCallTraceOnForkSimulation().');
|
|
215
217
|
}
|
|
216
218
|
const queryParameters = {};
|
|
217
219
|
if (requestParameters['withInternalCalls'] != null) {
|
|
@@ -228,7 +230,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
228
230
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
229
231
|
}
|
|
230
232
|
const response = await this.request({
|
|
231
|
-
path: `/api/v1/solidity/{owner}/{slug}/{
|
|
233
|
+
path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/simulation/{simulationId}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"forkId"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"simulationId"}}`, encodeURIComponent(String(requestParameters['simulationId']))),
|
|
232
234
|
method: 'GET',
|
|
233
235
|
headers: headerParameters,
|
|
234
236
|
query: queryParameters,
|
|
@@ -236,28 +238,27 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
236
238
|
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
237
239
|
}
|
|
238
240
|
/**
|
|
239
|
-
* Get Call Trace by Simulation
|
|
241
|
+
* Get Call Trace by Simulation on Fork
|
|
240
242
|
*/
|
|
241
|
-
async
|
|
242
|
-
const response = await this.
|
|
243
|
+
async getCallTraceOnForkSimulation(requestParameters, initOverrides) {
|
|
244
|
+
const response = await this.getCallTraceOnForkSimulationRaw(requestParameters, initOverrides);
|
|
243
245
|
return await response.value();
|
|
244
246
|
}
|
|
245
247
|
/**
|
|
246
|
-
*
|
|
247
|
-
* Get Call Trace by Transaction
|
|
248
|
+
* Get Call Trace by Transaction on Fork
|
|
248
249
|
*/
|
|
249
|
-
async
|
|
250
|
+
async getCallTraceOnForkTransactionRaw(requestParameters, initOverrides) {
|
|
250
251
|
if (requestParameters['owner'] == null) {
|
|
251
|
-
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling
|
|
252
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTraceOnForkTransaction().');
|
|
252
253
|
}
|
|
253
254
|
if (requestParameters['slug'] == null) {
|
|
254
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling
|
|
255
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTraceOnForkTransaction().');
|
|
255
256
|
}
|
|
256
|
-
if (requestParameters['
|
|
257
|
-
throw new runtime.RequiredError('
|
|
257
|
+
if (requestParameters['forkId'] == null) {
|
|
258
|
+
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTraceOnForkTransaction().');
|
|
258
259
|
}
|
|
259
260
|
if (requestParameters['txHash'] == null) {
|
|
260
|
-
throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling
|
|
261
|
+
throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling getCallTraceOnForkTransaction().');
|
|
261
262
|
}
|
|
262
263
|
const queryParameters = {};
|
|
263
264
|
if (requestParameters['withInternalCalls'] != null) {
|
|
@@ -274,7 +275,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
274
275
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
275
276
|
}
|
|
276
277
|
const response = await this.request({
|
|
277
|
-
path: `/api/v1/solidity/{owner}/{slug}/{
|
|
278
|
+
path: `/api/v1/solidity/{owner}/{slug}/fork/{forkId}/transaction/{txHash}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"forkId"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"txHash"}}`, encodeURIComponent(String(requestParameters['txHash']))),
|
|
278
279
|
method: 'GET',
|
|
279
280
|
headers: headerParameters,
|
|
280
281
|
query: queryParameters,
|
|
@@ -282,11 +283,10 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
282
283
|
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
283
284
|
}
|
|
284
285
|
/**
|
|
285
|
-
*
|
|
286
|
-
* Get Call Trace by Transaction
|
|
286
|
+
* Get Call Trace by Transaction on Fork
|
|
287
287
|
*/
|
|
288
|
-
async
|
|
289
|
-
const response = await this.
|
|
288
|
+
async getCallTraceOnForkTransaction(requestParameters, initOverrides) {
|
|
289
|
+
const response = await this.getCallTraceOnForkTransactionRaw(requestParameters, initOverrides);
|
|
290
290
|
return await response.value();
|
|
291
291
|
}
|
|
292
292
|
/**
|
|
@@ -549,18 +549,18 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
549
549
|
/**
|
|
550
550
|
* Run Bundle simulation on Fork
|
|
551
551
|
*/
|
|
552
|
-
async
|
|
552
|
+
async simulateTransactionBundleOnForkRaw(requestParameters, initOverrides) {
|
|
553
553
|
if (requestParameters['owner'] == null) {
|
|
554
|
-
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling
|
|
554
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransactionBundleOnFork().');
|
|
555
555
|
}
|
|
556
556
|
if (requestParameters['slug'] == null) {
|
|
557
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling
|
|
557
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransactionBundleOnFork().');
|
|
558
558
|
}
|
|
559
559
|
if (requestParameters['forkId'] == null) {
|
|
560
|
-
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling
|
|
560
|
+
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling simulateTransactionBundleOnFork().');
|
|
561
561
|
}
|
|
562
562
|
if (requestParameters['body'] == null) {
|
|
563
|
-
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling
|
|
563
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionBundleOnFork().');
|
|
564
564
|
}
|
|
565
565
|
const queryParameters = {};
|
|
566
566
|
const headerParameters = {};
|
|
@@ -573,32 +573,32 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
573
573
|
method: 'POST',
|
|
574
574
|
headers: headerParameters,
|
|
575
575
|
query: queryParameters,
|
|
576
|
-
body:
|
|
576
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleOnForkBodyToJSON(requestParameters['body']),
|
|
577
577
|
}, initOverrides);
|
|
578
578
|
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionBundleResponseFromJSON(jsonValue));
|
|
579
579
|
}
|
|
580
580
|
/**
|
|
581
581
|
* Run Bundle simulation on Fork
|
|
582
582
|
*/
|
|
583
|
-
async
|
|
584
|
-
const response = await this.
|
|
583
|
+
async simulateTransactionBundleOnFork(requestParameters, initOverrides) {
|
|
584
|
+
const response = await this.simulateTransactionBundleOnForkRaw(requestParameters, initOverrides);
|
|
585
585
|
return await response.value();
|
|
586
586
|
}
|
|
587
587
|
/**
|
|
588
588
|
* Run Simulation on Fork
|
|
589
589
|
*/
|
|
590
|
-
async
|
|
590
|
+
async simulateTransactionOnForkRaw(requestParameters, initOverrides) {
|
|
591
591
|
if (requestParameters['owner'] == null) {
|
|
592
|
-
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling
|
|
592
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransactionOnFork().');
|
|
593
593
|
}
|
|
594
594
|
if (requestParameters['slug'] == null) {
|
|
595
|
-
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling
|
|
595
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransactionOnFork().');
|
|
596
596
|
}
|
|
597
597
|
if (requestParameters['forkId'] == null) {
|
|
598
|
-
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling
|
|
598
|
+
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling simulateTransactionOnFork().');
|
|
599
599
|
}
|
|
600
600
|
if (requestParameters['body'] == null) {
|
|
601
|
-
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling
|
|
601
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionOnFork().');
|
|
602
602
|
}
|
|
603
603
|
const queryParameters = {};
|
|
604
604
|
const headerParameters = {};
|
|
@@ -611,15 +611,15 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
611
611
|
method: 'POST',
|
|
612
612
|
headers: headerParameters,
|
|
613
613
|
query: queryParameters,
|
|
614
|
-
body:
|
|
614
|
+
body: SolidityServiceSolidityAPIServiceSimulateTransactionOnForkBodyToJSON(requestParameters['body']),
|
|
615
615
|
}, initOverrides);
|
|
616
616
|
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceSimulateTransactionResponseFromJSON(jsonValue));
|
|
617
617
|
}
|
|
618
618
|
/**
|
|
619
619
|
* Run Simulation on Fork
|
|
620
620
|
*/
|
|
621
|
-
async
|
|
622
|
-
const response = await this.
|
|
621
|
+
async simulateTransactionOnFork(requestParameters, initOverrides) {
|
|
622
|
+
const response = await this.simulateTransactionOnForkRaw(requestParameters, initOverrides);
|
|
623
623
|
return await response.value();
|
|
624
624
|
}
|
|
625
625
|
}
|