@sentio/api 1.0.2-rc.21 → 1.0.2-rc.22
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 +44 -44
- package/dist/src/apis/DebugAndSimulationApi.js +102 -102
- package/dist/src/apis/DebugAndSimulationApi.js.map +1 -1
- package/dist/src/apis/ForksApi.d.ts +12 -12
- package/dist/src/apis/ForksApi.js +30 -30
- package/dist/src/apis/ForksApi.js.map +1 -1
- package/package.json +1 -1
- package/src/apis/DebugAndSimulationApi.ts +190 -190
- package/src/apis/ForksApi.ts +54 -54
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
import * as runtime from '../runtime.js';
|
|
13
13
|
import type { GoogleApiHttpBody, SolidityServiceGetSimulationBundleResponse, SolidityServiceGetSimulationResponse, SolidityServiceGetSimulationsResponse, SolidityServiceSimulateTransactionBundleResponse, SolidityServiceSimulateTransactionResponse, SolidityServiceSolidityAPIServiceSimulateTransactionBody, SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody, TxindexEvmSearchTransactionsResponse } from '../models/index.js';
|
|
14
14
|
export interface GetCallTraceRequest {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
owner: string;
|
|
16
|
+
slug: string;
|
|
17
|
+
chainId: string;
|
|
18
|
+
txHash: string;
|
|
19
19
|
chainSpecForkId?: string;
|
|
20
20
|
txIdSimulationId?: string;
|
|
21
21
|
txIdBundleId?: string;
|
|
@@ -24,10 +24,10 @@ export interface GetCallTraceRequest {
|
|
|
24
24
|
ignoreGasCost?: boolean;
|
|
25
25
|
}
|
|
26
26
|
export interface GetCallTrace2Request {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
owner: string;
|
|
28
|
+
slug: string;
|
|
29
|
+
chainId: string;
|
|
30
|
+
simulationId: string;
|
|
31
31
|
chainSpecForkId?: string;
|
|
32
32
|
txIdTxHash?: string;
|
|
33
33
|
txIdBundleId?: string;
|
|
@@ -36,10 +36,10 @@ export interface GetCallTrace2Request {
|
|
|
36
36
|
ignoreGasCost?: boolean;
|
|
37
37
|
}
|
|
38
38
|
export interface GetCallTrace3Request {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
owner: string;
|
|
40
|
+
slug: string;
|
|
41
|
+
chainId: string;
|
|
42
|
+
bundleId: string;
|
|
43
43
|
chainSpecForkId?: string;
|
|
44
44
|
txIdTxHash?: string;
|
|
45
45
|
txIdSimulationId?: string;
|
|
@@ -48,10 +48,10 @@ export interface GetCallTrace3Request {
|
|
|
48
48
|
ignoreGasCost?: boolean;
|
|
49
49
|
}
|
|
50
50
|
export interface GetCallTrace4Request {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
owner: string;
|
|
52
|
+
slug: string;
|
|
53
|
+
forkId: string;
|
|
54
|
+
txHash: string;
|
|
55
55
|
chainSpecChainId?: string;
|
|
56
56
|
txIdSimulationId?: string;
|
|
57
57
|
txIdBundleId?: string;
|
|
@@ -60,10 +60,10 @@ export interface GetCallTrace4Request {
|
|
|
60
60
|
ignoreGasCost?: boolean;
|
|
61
61
|
}
|
|
62
62
|
export interface GetCallTrace5Request {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
owner: string;
|
|
64
|
+
slug: string;
|
|
65
|
+
forkId: string;
|
|
66
|
+
simulationId: string;
|
|
67
67
|
chainSpecChainId?: string;
|
|
68
68
|
txIdTxHash?: string;
|
|
69
69
|
txIdBundleId?: string;
|
|
@@ -72,10 +72,10 @@ export interface GetCallTrace5Request {
|
|
|
72
72
|
ignoreGasCost?: boolean;
|
|
73
73
|
}
|
|
74
74
|
export interface GetCallTrace6Request {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
75
|
+
owner: string;
|
|
76
|
+
slug: string;
|
|
77
|
+
forkId: string;
|
|
78
|
+
bundleId: string;
|
|
79
79
|
chainSpecChainId?: string;
|
|
80
80
|
txIdTxHash?: string;
|
|
81
81
|
txIdSimulationId?: string;
|
|
@@ -84,25 +84,25 @@ export interface GetCallTrace6Request {
|
|
|
84
84
|
ignoreGasCost?: boolean;
|
|
85
85
|
}
|
|
86
86
|
export interface GetSimulationRequest {
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
owner: string;
|
|
88
|
+
slug: string;
|
|
89
89
|
simulationId: string;
|
|
90
90
|
}
|
|
91
91
|
export interface GetSimulationBundleInProjectRequest {
|
|
92
|
-
|
|
93
|
-
|
|
92
|
+
owner: string;
|
|
93
|
+
slug: string;
|
|
94
94
|
bundleId: string;
|
|
95
95
|
}
|
|
96
96
|
export interface GetSimulationsRequest {
|
|
97
|
-
|
|
98
|
-
|
|
97
|
+
owner: string;
|
|
98
|
+
slug: string;
|
|
99
99
|
labelContains?: string;
|
|
100
100
|
page?: number;
|
|
101
101
|
pageSize?: number;
|
|
102
102
|
}
|
|
103
103
|
export interface SearchTransactionsRequest {
|
|
104
|
-
|
|
105
|
-
|
|
104
|
+
owner: string;
|
|
105
|
+
slug: string;
|
|
106
106
|
chainId?: Array<string>;
|
|
107
107
|
address?: Array<string>;
|
|
108
108
|
includeDirect?: boolean;
|
|
@@ -119,27 +119,27 @@ export interface SearchTransactionsRequest {
|
|
|
119
119
|
pageToken?: string;
|
|
120
120
|
}
|
|
121
121
|
export interface SimulateTransactionRequest {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
122
|
+
owner: string;
|
|
123
|
+
slug: string;
|
|
124
|
+
chainId: string;
|
|
125
125
|
body: SolidityServiceSolidityAPIServiceSimulateTransactionBody;
|
|
126
126
|
}
|
|
127
127
|
export interface SimulateTransaction2Request {
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
owner: string;
|
|
129
|
+
slug: string;
|
|
130
|
+
forkId: string;
|
|
131
131
|
body: SolidityServiceSolidityAPIServiceSimulateTransactionBody;
|
|
132
132
|
}
|
|
133
133
|
export interface SimulateTransactionBundleRequest {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
134
|
+
owner: string;
|
|
135
|
+
slug: string;
|
|
136
|
+
chainId: string;
|
|
137
137
|
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody;
|
|
138
138
|
}
|
|
139
139
|
export interface SimulateTransactionBundle2Request {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
140
|
+
owner: string;
|
|
141
|
+
slug: string;
|
|
142
|
+
forkId: string;
|
|
143
143
|
body: SolidityServiceSolidityAPIServiceSimulateTransactionBundleBody;
|
|
144
144
|
}
|
|
145
145
|
/**
|
|
@@ -22,17 +22,17 @@ 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['owner'] == null) {
|
|
26
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTrace().');
|
|
27
27
|
}
|
|
28
|
-
if (requestParameters['
|
|
29
|
-
throw new runtime.RequiredError('
|
|
28
|
+
if (requestParameters['slug'] == null) {
|
|
29
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTrace().');
|
|
30
30
|
}
|
|
31
|
-
if (requestParameters['
|
|
32
|
-
throw new runtime.RequiredError('
|
|
31
|
+
if (requestParameters['chainId'] == null) {
|
|
32
|
+
throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling getCallTrace().');
|
|
33
33
|
}
|
|
34
|
-
if (requestParameters['
|
|
35
|
-
throw new runtime.RequiredError('
|
|
34
|
+
if (requestParameters['txHash'] == null) {
|
|
35
|
+
throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling getCallTrace().');
|
|
36
36
|
}
|
|
37
37
|
const queryParameters = {};
|
|
38
38
|
if (requestParameters['chainSpecForkId'] != null) {
|
|
@@ -58,7 +58,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
58
58
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
59
59
|
}
|
|
60
60
|
const response = await this.request({
|
|
61
|
-
path: `/api/v1/solidity/{
|
|
61
|
+
path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/transaction/{tx_hash}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"tx_hash"}}`, encodeURIComponent(String(requestParameters['txHash']))),
|
|
62
62
|
method: 'GET',
|
|
63
63
|
headers: headerParameters,
|
|
64
64
|
query: queryParameters,
|
|
@@ -78,17 +78,17 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
78
78
|
* Get indexed call trace
|
|
79
79
|
*/
|
|
80
80
|
async getCallTrace2Raw(requestParameters, initOverrides) {
|
|
81
|
-
if (requestParameters['
|
|
82
|
-
throw new runtime.RequiredError('
|
|
81
|
+
if (requestParameters['owner'] == null) {
|
|
82
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTrace2().');
|
|
83
83
|
}
|
|
84
|
-
if (requestParameters['
|
|
85
|
-
throw new runtime.RequiredError('
|
|
84
|
+
if (requestParameters['slug'] == null) {
|
|
85
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTrace2().');
|
|
86
86
|
}
|
|
87
|
-
if (requestParameters['
|
|
88
|
-
throw new runtime.RequiredError('
|
|
87
|
+
if (requestParameters['chainId'] == null) {
|
|
88
|
+
throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling getCallTrace2().');
|
|
89
89
|
}
|
|
90
|
-
if (requestParameters['
|
|
91
|
-
throw new runtime.RequiredError('
|
|
90
|
+
if (requestParameters['simulationId'] == null) {
|
|
91
|
+
throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getCallTrace2().');
|
|
92
92
|
}
|
|
93
93
|
const queryParameters = {};
|
|
94
94
|
if (requestParameters['chainSpecForkId'] != null) {
|
|
@@ -114,7 +114,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
114
114
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
115
115
|
}
|
|
116
116
|
const response = await this.request({
|
|
117
|
-
path: `/api/v1/solidity/{
|
|
117
|
+
path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation/{simulation_id}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"simulation_id"}}`, encodeURIComponent(String(requestParameters['simulationId']))),
|
|
118
118
|
method: 'GET',
|
|
119
119
|
headers: headerParameters,
|
|
120
120
|
query: queryParameters,
|
|
@@ -134,17 +134,17 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
134
134
|
* Get indexed call trace
|
|
135
135
|
*/
|
|
136
136
|
async getCallTrace3Raw(requestParameters, initOverrides) {
|
|
137
|
-
if (requestParameters['
|
|
138
|
-
throw new runtime.RequiredError('
|
|
137
|
+
if (requestParameters['owner'] == null) {
|
|
138
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTrace3().');
|
|
139
139
|
}
|
|
140
|
-
if (requestParameters['
|
|
141
|
-
throw new runtime.RequiredError('
|
|
140
|
+
if (requestParameters['slug'] == null) {
|
|
141
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTrace3().');
|
|
142
142
|
}
|
|
143
|
-
if (requestParameters['
|
|
144
|
-
throw new runtime.RequiredError('
|
|
143
|
+
if (requestParameters['chainId'] == null) {
|
|
144
|
+
throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling getCallTrace3().');
|
|
145
145
|
}
|
|
146
|
-
if (requestParameters['
|
|
147
|
-
throw new runtime.RequiredError('
|
|
146
|
+
if (requestParameters['bundleId'] == null) {
|
|
147
|
+
throw new runtime.RequiredError('bundleId', 'Required parameter "bundleId" was null or undefined when calling getCallTrace3().');
|
|
148
148
|
}
|
|
149
149
|
const queryParameters = {};
|
|
150
150
|
if (requestParameters['chainSpecForkId'] != null) {
|
|
@@ -170,7 +170,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
170
170
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
171
171
|
}
|
|
172
172
|
const response = await this.request({
|
|
173
|
-
path: `/api/v1/solidity/{
|
|
173
|
+
path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle/{bundle_id}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))).replace(`{${"bundle_id"}}`, encodeURIComponent(String(requestParameters['bundleId']))),
|
|
174
174
|
method: 'GET',
|
|
175
175
|
headers: headerParameters,
|
|
176
176
|
query: queryParameters,
|
|
@@ -190,17 +190,17 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
190
190
|
* Get indexed call trace
|
|
191
191
|
*/
|
|
192
192
|
async getCallTrace4Raw(requestParameters, initOverrides) {
|
|
193
|
-
if (requestParameters['
|
|
194
|
-
throw new runtime.RequiredError('
|
|
193
|
+
if (requestParameters['owner'] == null) {
|
|
194
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTrace4().');
|
|
195
195
|
}
|
|
196
|
-
if (requestParameters['
|
|
197
|
-
throw new runtime.RequiredError('
|
|
196
|
+
if (requestParameters['slug'] == null) {
|
|
197
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTrace4().');
|
|
198
198
|
}
|
|
199
|
-
if (requestParameters['
|
|
200
|
-
throw new runtime.RequiredError('
|
|
199
|
+
if (requestParameters['forkId'] == null) {
|
|
200
|
+
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTrace4().');
|
|
201
201
|
}
|
|
202
|
-
if (requestParameters['
|
|
203
|
-
throw new runtime.RequiredError('
|
|
202
|
+
if (requestParameters['txHash'] == null) {
|
|
203
|
+
throw new runtime.RequiredError('txHash', 'Required parameter "txHash" was null or undefined when calling getCallTrace4().');
|
|
204
204
|
}
|
|
205
205
|
const queryParameters = {};
|
|
206
206
|
if (requestParameters['chainSpecChainId'] != null) {
|
|
@@ -226,7 +226,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
226
226
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
227
227
|
}
|
|
228
228
|
const response = await this.request({
|
|
229
|
-
path: `/api/v1/solidity/{
|
|
229
|
+
path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/transaction/{tx_hash}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"tx_hash"}}`, encodeURIComponent(String(requestParameters['txHash']))),
|
|
230
230
|
method: 'GET',
|
|
231
231
|
headers: headerParameters,
|
|
232
232
|
query: queryParameters,
|
|
@@ -246,17 +246,17 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
246
246
|
* Get indexed call trace
|
|
247
247
|
*/
|
|
248
248
|
async getCallTrace5Raw(requestParameters, initOverrides) {
|
|
249
|
-
if (requestParameters['
|
|
250
|
-
throw new runtime.RequiredError('
|
|
249
|
+
if (requestParameters['owner'] == null) {
|
|
250
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTrace5().');
|
|
251
251
|
}
|
|
252
|
-
if (requestParameters['
|
|
253
|
-
throw new runtime.RequiredError('
|
|
252
|
+
if (requestParameters['slug'] == null) {
|
|
253
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTrace5().');
|
|
254
254
|
}
|
|
255
|
-
if (requestParameters['
|
|
256
|
-
throw new runtime.RequiredError('
|
|
255
|
+
if (requestParameters['forkId'] == null) {
|
|
256
|
+
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTrace5().');
|
|
257
257
|
}
|
|
258
|
-
if (requestParameters['
|
|
259
|
-
throw new runtime.RequiredError('
|
|
258
|
+
if (requestParameters['simulationId'] == null) {
|
|
259
|
+
throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getCallTrace5().');
|
|
260
260
|
}
|
|
261
261
|
const queryParameters = {};
|
|
262
262
|
if (requestParameters['chainSpecChainId'] != null) {
|
|
@@ -282,7 +282,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
282
282
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
283
283
|
}
|
|
284
284
|
const response = await this.request({
|
|
285
|
-
path: `/api/v1/solidity/{
|
|
285
|
+
path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation/{simulation_id}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"simulation_id"}}`, encodeURIComponent(String(requestParameters['simulationId']))),
|
|
286
286
|
method: 'GET',
|
|
287
287
|
headers: headerParameters,
|
|
288
288
|
query: queryParameters,
|
|
@@ -302,17 +302,17 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
302
302
|
* Get indexed call trace
|
|
303
303
|
*/
|
|
304
304
|
async getCallTrace6Raw(requestParameters, initOverrides) {
|
|
305
|
-
if (requestParameters['
|
|
306
|
-
throw new runtime.RequiredError('
|
|
305
|
+
if (requestParameters['owner'] == null) {
|
|
306
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getCallTrace6().');
|
|
307
307
|
}
|
|
308
|
-
if (requestParameters['
|
|
309
|
-
throw new runtime.RequiredError('
|
|
308
|
+
if (requestParameters['slug'] == null) {
|
|
309
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getCallTrace6().');
|
|
310
310
|
}
|
|
311
|
-
if (requestParameters['
|
|
312
|
-
throw new runtime.RequiredError('
|
|
311
|
+
if (requestParameters['forkId'] == null) {
|
|
312
|
+
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling getCallTrace6().');
|
|
313
313
|
}
|
|
314
|
-
if (requestParameters['
|
|
315
|
-
throw new runtime.RequiredError('
|
|
314
|
+
if (requestParameters['bundleId'] == null) {
|
|
315
|
+
throw new runtime.RequiredError('bundleId', 'Required parameter "bundleId" was null or undefined when calling getCallTrace6().');
|
|
316
316
|
}
|
|
317
317
|
const queryParameters = {};
|
|
318
318
|
if (requestParameters['chainSpecChainId'] != null) {
|
|
@@ -338,7 +338,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
338
338
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
339
339
|
}
|
|
340
340
|
const response = await this.request({
|
|
341
|
-
path: `/api/v1/solidity/{
|
|
341
|
+
path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle/{bundle_id}/call_trace`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))).replace(`{${"bundle_id"}}`, encodeURIComponent(String(requestParameters['bundleId']))),
|
|
342
342
|
method: 'GET',
|
|
343
343
|
headers: headerParameters,
|
|
344
344
|
query: queryParameters,
|
|
@@ -357,11 +357,11 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
357
357
|
* Get a simulation by id
|
|
358
358
|
*/
|
|
359
359
|
async getSimulationRaw(requestParameters, initOverrides) {
|
|
360
|
-
if (requestParameters['
|
|
361
|
-
throw new runtime.RequiredError('
|
|
360
|
+
if (requestParameters['owner'] == null) {
|
|
361
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getSimulation().');
|
|
362
362
|
}
|
|
363
|
-
if (requestParameters['
|
|
364
|
-
throw new runtime.RequiredError('
|
|
363
|
+
if (requestParameters['slug'] == null) {
|
|
364
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getSimulation().');
|
|
365
365
|
}
|
|
366
366
|
if (requestParameters['simulationId'] == null) {
|
|
367
367
|
throw new runtime.RequiredError('simulationId', 'Required parameter "simulationId" was null or undefined when calling getSimulation().');
|
|
@@ -372,7 +372,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
372
372
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
373
373
|
}
|
|
374
374
|
const response = await this.request({
|
|
375
|
-
path: `/api/v1/solidity/{
|
|
375
|
+
path: `/api/v1/solidity/{owner}/{slug}/simulation/{simulationId}`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"simulationId"}}`, encodeURIComponent(String(requestParameters['simulationId']))),
|
|
376
376
|
method: 'GET',
|
|
377
377
|
headers: headerParameters,
|
|
378
378
|
query: queryParameters,
|
|
@@ -390,11 +390,11 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
390
390
|
* Get a bundle simulation by id
|
|
391
391
|
*/
|
|
392
392
|
async getSimulationBundleInProjectRaw(requestParameters, initOverrides) {
|
|
393
|
-
if (requestParameters['
|
|
394
|
-
throw new runtime.RequiredError('
|
|
393
|
+
if (requestParameters['owner'] == null) {
|
|
394
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getSimulationBundleInProject().');
|
|
395
395
|
}
|
|
396
|
-
if (requestParameters['
|
|
397
|
-
throw new runtime.RequiredError('
|
|
396
|
+
if (requestParameters['slug'] == null) {
|
|
397
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getSimulationBundleInProject().');
|
|
398
398
|
}
|
|
399
399
|
if (requestParameters['bundleId'] == null) {
|
|
400
400
|
throw new runtime.RequiredError('bundleId', 'Required parameter "bundleId" was null or undefined when calling getSimulationBundleInProject().');
|
|
@@ -405,7 +405,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
405
405
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
406
406
|
}
|
|
407
407
|
const response = await this.request({
|
|
408
|
-
path: `/api/v1/solidity/{
|
|
408
|
+
path: `/api/v1/solidity/{owner}/{slug}/simulation_bundle/{bundleId}`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"bundleId"}}`, encodeURIComponent(String(requestParameters['bundleId']))),
|
|
409
409
|
method: 'GET',
|
|
410
410
|
headers: headerParameters,
|
|
411
411
|
query: queryParameters,
|
|
@@ -423,11 +423,11 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
423
423
|
* Get existing transaction simulations
|
|
424
424
|
*/
|
|
425
425
|
async getSimulationsRaw(requestParameters, initOverrides) {
|
|
426
|
-
if (requestParameters['
|
|
427
|
-
throw new runtime.RequiredError('
|
|
426
|
+
if (requestParameters['owner'] == null) {
|
|
427
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling getSimulations().');
|
|
428
428
|
}
|
|
429
|
-
if (requestParameters['
|
|
430
|
-
throw new runtime.RequiredError('
|
|
429
|
+
if (requestParameters['slug'] == null) {
|
|
430
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling getSimulations().');
|
|
431
431
|
}
|
|
432
432
|
const queryParameters = {};
|
|
433
433
|
if (requestParameters['labelContains'] != null) {
|
|
@@ -444,7 +444,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
444
444
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
445
445
|
}
|
|
446
446
|
const response = await this.request({
|
|
447
|
-
path: `/api/v1/solidity/{
|
|
447
|
+
path: `/api/v1/solidity/{owner}/{slug}/simulation`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
448
448
|
method: 'GET',
|
|
449
449
|
headers: headerParameters,
|
|
450
450
|
query: queryParameters,
|
|
@@ -462,11 +462,11 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
462
462
|
* Search for transactions
|
|
463
463
|
*/
|
|
464
464
|
async searchTransactionsRaw(requestParameters, initOverrides) {
|
|
465
|
-
if (requestParameters['
|
|
466
|
-
throw new runtime.RequiredError('
|
|
465
|
+
if (requestParameters['owner'] == null) {
|
|
466
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling searchTransactions().');
|
|
467
467
|
}
|
|
468
|
-
if (requestParameters['
|
|
469
|
-
throw new runtime.RequiredError('
|
|
468
|
+
if (requestParameters['slug'] == null) {
|
|
469
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling searchTransactions().');
|
|
470
470
|
}
|
|
471
471
|
const queryParameters = {};
|
|
472
472
|
if (requestParameters['chainId'] != null) {
|
|
@@ -516,7 +516,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
516
516
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
517
517
|
}
|
|
518
518
|
const response = await this.request({
|
|
519
|
-
path: `/api/v1/solidity/{
|
|
519
|
+
path: `/api/v1/solidity/{owner}/{slug}/search_transactions`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))),
|
|
520
520
|
method: 'GET',
|
|
521
521
|
headers: headerParameters,
|
|
522
522
|
query: queryParameters,
|
|
@@ -535,14 +535,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
535
535
|
* Single simulation
|
|
536
536
|
*/
|
|
537
537
|
async simulateTransactionRaw(requestParameters, initOverrides) {
|
|
538
|
-
if (requestParameters['
|
|
539
|
-
throw new runtime.RequiredError('
|
|
538
|
+
if (requestParameters['owner'] == null) {
|
|
539
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransaction().');
|
|
540
540
|
}
|
|
541
|
-
if (requestParameters['
|
|
542
|
-
throw new runtime.RequiredError('
|
|
541
|
+
if (requestParameters['slug'] == null) {
|
|
542
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransaction().');
|
|
543
543
|
}
|
|
544
|
-
if (requestParameters['
|
|
545
|
-
throw new runtime.RequiredError('
|
|
544
|
+
if (requestParameters['chainId'] == null) {
|
|
545
|
+
throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling simulateTransaction().');
|
|
546
546
|
}
|
|
547
547
|
if (requestParameters['body'] == null) {
|
|
548
548
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransaction().');
|
|
@@ -554,7 +554,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
554
554
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
555
555
|
}
|
|
556
556
|
const response = await this.request({
|
|
557
|
-
path: `/api/v1/solidity/{
|
|
557
|
+
path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))),
|
|
558
558
|
method: 'POST',
|
|
559
559
|
headers: headerParameters,
|
|
560
560
|
query: queryParameters,
|
|
@@ -575,14 +575,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
575
575
|
* Single simulation
|
|
576
576
|
*/
|
|
577
577
|
async simulateTransaction2Raw(requestParameters, initOverrides) {
|
|
578
|
-
if (requestParameters['
|
|
579
|
-
throw new runtime.RequiredError('
|
|
578
|
+
if (requestParameters['owner'] == null) {
|
|
579
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransaction2().');
|
|
580
580
|
}
|
|
581
|
-
if (requestParameters['
|
|
582
|
-
throw new runtime.RequiredError('
|
|
581
|
+
if (requestParameters['slug'] == null) {
|
|
582
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransaction2().');
|
|
583
583
|
}
|
|
584
|
-
if (requestParameters['
|
|
585
|
-
throw new runtime.RequiredError('
|
|
584
|
+
if (requestParameters['forkId'] == null) {
|
|
585
|
+
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling simulateTransaction2().');
|
|
586
586
|
}
|
|
587
587
|
if (requestParameters['body'] == null) {
|
|
588
588
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransaction2().');
|
|
@@ -594,7 +594,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
594
594
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
595
595
|
}
|
|
596
596
|
const response = await this.request({
|
|
597
|
-
path: `/api/v1/solidity/{
|
|
597
|
+
path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))),
|
|
598
598
|
method: 'POST',
|
|
599
599
|
headers: headerParameters,
|
|
600
600
|
query: queryParameters,
|
|
@@ -615,14 +615,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
615
615
|
* Bundle simulation
|
|
616
616
|
*/
|
|
617
617
|
async simulateTransactionBundleRaw(requestParameters, initOverrides) {
|
|
618
|
-
if (requestParameters['
|
|
619
|
-
throw new runtime.RequiredError('
|
|
618
|
+
if (requestParameters['owner'] == null) {
|
|
619
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransactionBundle().');
|
|
620
620
|
}
|
|
621
|
-
if (requestParameters['
|
|
622
|
-
throw new runtime.RequiredError('
|
|
621
|
+
if (requestParameters['slug'] == null) {
|
|
622
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransactionBundle().');
|
|
623
623
|
}
|
|
624
|
-
if (requestParameters['
|
|
625
|
-
throw new runtime.RequiredError('
|
|
624
|
+
if (requestParameters['chainId'] == null) {
|
|
625
|
+
throw new runtime.RequiredError('chainId', 'Required parameter "chainId" was null or undefined when calling simulateTransactionBundle().');
|
|
626
626
|
}
|
|
627
627
|
if (requestParameters['body'] == null) {
|
|
628
628
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionBundle().');
|
|
@@ -634,7 +634,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
634
634
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
635
635
|
}
|
|
636
636
|
const response = await this.request({
|
|
637
|
-
path: `/api/v1/solidity/{
|
|
637
|
+
path: `/api/v1/solidity/{owner}/{slug}/{chain_id}/simulation_bundle`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"chain_id"}}`, encodeURIComponent(String(requestParameters['chainId']))),
|
|
638
638
|
method: 'POST',
|
|
639
639
|
headers: headerParameters,
|
|
640
640
|
query: queryParameters,
|
|
@@ -655,14 +655,14 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
655
655
|
* Bundle simulation
|
|
656
656
|
*/
|
|
657
657
|
async simulateTransactionBundle2Raw(requestParameters, initOverrides) {
|
|
658
|
-
if (requestParameters['
|
|
659
|
-
throw new runtime.RequiredError('
|
|
658
|
+
if (requestParameters['owner'] == null) {
|
|
659
|
+
throw new runtime.RequiredError('owner', 'Required parameter "owner" was null or undefined when calling simulateTransactionBundle2().');
|
|
660
660
|
}
|
|
661
|
-
if (requestParameters['
|
|
662
|
-
throw new runtime.RequiredError('
|
|
661
|
+
if (requestParameters['slug'] == null) {
|
|
662
|
+
throw new runtime.RequiredError('slug', 'Required parameter "slug" was null or undefined when calling simulateTransactionBundle2().');
|
|
663
663
|
}
|
|
664
|
-
if (requestParameters['
|
|
665
|
-
throw new runtime.RequiredError('
|
|
664
|
+
if (requestParameters['forkId'] == null) {
|
|
665
|
+
throw new runtime.RequiredError('forkId', 'Required parameter "forkId" was null or undefined when calling simulateTransactionBundle2().');
|
|
666
666
|
}
|
|
667
667
|
if (requestParameters['body'] == null) {
|
|
668
668
|
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling simulateTransactionBundle2().');
|
|
@@ -674,7 +674,7 @@ export class DebugAndSimulationApi extends runtime.BaseAPI {
|
|
|
674
674
|
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
675
675
|
}
|
|
676
676
|
const response = await this.request({
|
|
677
|
-
path: `/api/v1/solidity/{
|
|
677
|
+
path: `/api/v1/solidity/{owner}/{slug}/fork/{fork_id}/simulation_bundle`.replace(`{${"owner"}}`, encodeURIComponent(String(requestParameters['owner']))).replace(`{${"slug"}}`, encodeURIComponent(String(requestParameters['slug']))).replace(`{${"fork_id"}}`, encodeURIComponent(String(requestParameters['forkId']))),
|
|
678
678
|
method: 'POST',
|
|
679
679
|
headers: headerParameters,
|
|
680
680
|
query: queryParameters,
|