@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
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime.js';
|
|
17
|
+
import type {
|
|
18
|
+
GoogleApiHttpBody,
|
|
19
|
+
} from '../models/index.js';
|
|
20
|
+
import {
|
|
21
|
+
GoogleApiHttpBodyFromJSON,
|
|
22
|
+
GoogleApiHttpBodyToJSON,
|
|
23
|
+
} from '../models/index.js';
|
|
24
|
+
|
|
25
|
+
export interface GetForkStateRequest {
|
|
26
|
+
projectOwner: string;
|
|
27
|
+
projectSlug: string;
|
|
28
|
+
id: string;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
*/
|
|
34
|
+
export class DefaultApi extends runtime.BaseAPI {
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { };
|
|
38
|
+
*/
|
|
39
|
+
async getForkStateRaw(requestParameters: GetForkStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GoogleApiHttpBody>> {
|
|
40
|
+
if (requestParameters['projectOwner'] == null) {
|
|
41
|
+
throw new runtime.RequiredError(
|
|
42
|
+
'projectOwner',
|
|
43
|
+
'Required parameter "projectOwner" was null or undefined when calling getForkState().'
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
if (requestParameters['projectSlug'] == null) {
|
|
48
|
+
throw new runtime.RequiredError(
|
|
49
|
+
'projectSlug',
|
|
50
|
+
'Required parameter "projectSlug" was null or undefined when calling getForkState().'
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
if (requestParameters['id'] == null) {
|
|
55
|
+
throw new runtime.RequiredError(
|
|
56
|
+
'id',
|
|
57
|
+
'Required parameter "id" was null or undefined when calling getForkState().'
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
const queryParameters: any = {};
|
|
62
|
+
|
|
63
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
64
|
+
|
|
65
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
66
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const response = await this.request({
|
|
70
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{id}/state`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
71
|
+
method: 'GET',
|
|
72
|
+
headers: headerParameters,
|
|
73
|
+
query: queryParameters,
|
|
74
|
+
}, initOverrides);
|
|
75
|
+
|
|
76
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => GoogleApiHttpBodyFromJSON(jsonValue));
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = { };
|
|
81
|
+
*/
|
|
82
|
+
async getForkState(requestParameters: GetForkStateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GoogleApiHttpBody> {
|
|
83
|
+
const response = await this.getForkStateRaw(requestParameters, initOverrides);
|
|
84
|
+
return await response.value();
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
}
|
|
@@ -0,0 +1,384 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime.js';
|
|
17
|
+
import type {
|
|
18
|
+
SolidityServiceCreateForkResponse,
|
|
19
|
+
SolidityServiceForkServiceCreateForkBody,
|
|
20
|
+
SolidityServiceForkServiceUpdateForkBody,
|
|
21
|
+
SolidityServiceGetForkInfoResponse,
|
|
22
|
+
SolidityServiceGetForkResponse,
|
|
23
|
+
SolidityServiceListForksResponse,
|
|
24
|
+
SolidityServiceUpdateForkResponse,
|
|
25
|
+
} from '../models/index.js';
|
|
26
|
+
import {
|
|
27
|
+
SolidityServiceCreateForkResponseFromJSON,
|
|
28
|
+
SolidityServiceCreateForkResponseToJSON,
|
|
29
|
+
SolidityServiceForkServiceCreateForkBodyFromJSON,
|
|
30
|
+
SolidityServiceForkServiceCreateForkBodyToJSON,
|
|
31
|
+
SolidityServiceForkServiceUpdateForkBodyFromJSON,
|
|
32
|
+
SolidityServiceForkServiceUpdateForkBodyToJSON,
|
|
33
|
+
SolidityServiceGetForkInfoResponseFromJSON,
|
|
34
|
+
SolidityServiceGetForkInfoResponseToJSON,
|
|
35
|
+
SolidityServiceGetForkResponseFromJSON,
|
|
36
|
+
SolidityServiceGetForkResponseToJSON,
|
|
37
|
+
SolidityServiceListForksResponseFromJSON,
|
|
38
|
+
SolidityServiceListForksResponseToJSON,
|
|
39
|
+
SolidityServiceUpdateForkResponseFromJSON,
|
|
40
|
+
SolidityServiceUpdateForkResponseToJSON,
|
|
41
|
+
} from '../models/index.js';
|
|
42
|
+
|
|
43
|
+
export interface CreateForkRequest {
|
|
44
|
+
projectOwner: string;
|
|
45
|
+
projectSlug: string;
|
|
46
|
+
body: SolidityServiceForkServiceCreateForkBody;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export interface DeleteForkRequest {
|
|
50
|
+
projectOwner: string;
|
|
51
|
+
projectSlug: string;
|
|
52
|
+
id: string;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export interface GetForkRequest {
|
|
56
|
+
projectOwner: string;
|
|
57
|
+
projectSlug: string;
|
|
58
|
+
id: string;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface GetForkInfoRequest {
|
|
62
|
+
projectOwner: string;
|
|
63
|
+
projectSlug: string;
|
|
64
|
+
id: string;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface ListForksRequest {
|
|
68
|
+
projectOwner: string;
|
|
69
|
+
projectSlug: string;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export interface UpdateForkRequest {
|
|
73
|
+
projectOwner: string;
|
|
74
|
+
projectSlug: string;
|
|
75
|
+
id: string;
|
|
76
|
+
body: SolidityServiceForkServiceUpdateForkBody;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
*
|
|
81
|
+
*/
|
|
82
|
+
export class ForksApi extends runtime.BaseAPI {
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
*/
|
|
86
|
+
async createForkRaw(requestParameters: CreateForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceCreateForkResponse>> {
|
|
87
|
+
if (requestParameters['projectOwner'] == null) {
|
|
88
|
+
throw new runtime.RequiredError(
|
|
89
|
+
'projectOwner',
|
|
90
|
+
'Required parameter "projectOwner" was null or undefined when calling createFork().'
|
|
91
|
+
);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (requestParameters['projectSlug'] == null) {
|
|
95
|
+
throw new runtime.RequiredError(
|
|
96
|
+
'projectSlug',
|
|
97
|
+
'Required parameter "projectSlug" was null or undefined when calling createFork().'
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
if (requestParameters['body'] == null) {
|
|
102
|
+
throw new runtime.RequiredError(
|
|
103
|
+
'body',
|
|
104
|
+
'Required parameter "body" was null or undefined when calling createFork().'
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
const queryParameters: any = {};
|
|
109
|
+
|
|
110
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
111
|
+
|
|
112
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
113
|
+
|
|
114
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
115
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const response = await this.request({
|
|
119
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))),
|
|
120
|
+
method: 'POST',
|
|
121
|
+
headers: headerParameters,
|
|
122
|
+
query: queryParameters,
|
|
123
|
+
body: SolidityServiceForkServiceCreateForkBodyToJSON(requestParameters['body']),
|
|
124
|
+
}, initOverrides);
|
|
125
|
+
|
|
126
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceCreateForkResponseFromJSON(jsonValue));
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
*/
|
|
131
|
+
async createFork(requestParameters: CreateForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceCreateForkResponse> {
|
|
132
|
+
const response = await this.createForkRaw(requestParameters, initOverrides);
|
|
133
|
+
return await response.value();
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
*/
|
|
138
|
+
async deleteForkRaw(requestParameters: DeleteForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<object>> {
|
|
139
|
+
if (requestParameters['projectOwner'] == null) {
|
|
140
|
+
throw new runtime.RequiredError(
|
|
141
|
+
'projectOwner',
|
|
142
|
+
'Required parameter "projectOwner" was null or undefined when calling deleteFork().'
|
|
143
|
+
);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
if (requestParameters['projectSlug'] == null) {
|
|
147
|
+
throw new runtime.RequiredError(
|
|
148
|
+
'projectSlug',
|
|
149
|
+
'Required parameter "projectSlug" was null or undefined when calling deleteFork().'
|
|
150
|
+
);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
if (requestParameters['id'] == null) {
|
|
154
|
+
throw new runtime.RequiredError(
|
|
155
|
+
'id',
|
|
156
|
+
'Required parameter "id" was null or undefined when calling deleteFork().'
|
|
157
|
+
);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
const queryParameters: any = {};
|
|
161
|
+
|
|
162
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
163
|
+
|
|
164
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
165
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
const response = await this.request({
|
|
169
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{id}`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
170
|
+
method: 'DELETE',
|
|
171
|
+
headers: headerParameters,
|
|
172
|
+
query: queryParameters,
|
|
173
|
+
}, initOverrides);
|
|
174
|
+
|
|
175
|
+
return new runtime.JSONApiResponse<any>(response);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
/**
|
|
179
|
+
*/
|
|
180
|
+
async deleteFork(requestParameters: DeleteForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<object> {
|
|
181
|
+
const response = await this.deleteForkRaw(requestParameters, initOverrides);
|
|
182
|
+
return await response.value();
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
*/
|
|
187
|
+
async getForkRaw(requestParameters: GetForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceGetForkResponse>> {
|
|
188
|
+
if (requestParameters['projectOwner'] == null) {
|
|
189
|
+
throw new runtime.RequiredError(
|
|
190
|
+
'projectOwner',
|
|
191
|
+
'Required parameter "projectOwner" was null or undefined when calling getFork().'
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if (requestParameters['projectSlug'] == null) {
|
|
196
|
+
throw new runtime.RequiredError(
|
|
197
|
+
'projectSlug',
|
|
198
|
+
'Required parameter "projectSlug" was null or undefined when calling getFork().'
|
|
199
|
+
);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
if (requestParameters['id'] == null) {
|
|
203
|
+
throw new runtime.RequiredError(
|
|
204
|
+
'id',
|
|
205
|
+
'Required parameter "id" was null or undefined when calling getFork().'
|
|
206
|
+
);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
const queryParameters: any = {};
|
|
210
|
+
|
|
211
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
212
|
+
|
|
213
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
214
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
const response = await this.request({
|
|
218
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{id}`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
219
|
+
method: 'GET',
|
|
220
|
+
headers: headerParameters,
|
|
221
|
+
query: queryParameters,
|
|
222
|
+
}, initOverrides);
|
|
223
|
+
|
|
224
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetForkResponseFromJSON(jsonValue));
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
*/
|
|
229
|
+
async getFork(requestParameters: GetForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceGetForkResponse> {
|
|
230
|
+
const response = await this.getForkRaw(requestParameters, initOverrides);
|
|
231
|
+
return await response.value();
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
/**
|
|
235
|
+
*/
|
|
236
|
+
async getForkInfoRaw(requestParameters: GetForkInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceGetForkInfoResponse>> {
|
|
237
|
+
if (requestParameters['projectOwner'] == null) {
|
|
238
|
+
throw new runtime.RequiredError(
|
|
239
|
+
'projectOwner',
|
|
240
|
+
'Required parameter "projectOwner" was null or undefined when calling getForkInfo().'
|
|
241
|
+
);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
if (requestParameters['projectSlug'] == null) {
|
|
245
|
+
throw new runtime.RequiredError(
|
|
246
|
+
'projectSlug',
|
|
247
|
+
'Required parameter "projectSlug" was null or undefined when calling getForkInfo().'
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
if (requestParameters['id'] == null) {
|
|
252
|
+
throw new runtime.RequiredError(
|
|
253
|
+
'id',
|
|
254
|
+
'Required parameter "id" was null or undefined when calling getForkInfo().'
|
|
255
|
+
);
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
const queryParameters: any = {};
|
|
259
|
+
|
|
260
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
261
|
+
|
|
262
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
263
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
const response = await this.request({
|
|
267
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{id}/info`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
268
|
+
method: 'GET',
|
|
269
|
+
headers: headerParameters,
|
|
270
|
+
query: queryParameters,
|
|
271
|
+
}, initOverrides);
|
|
272
|
+
|
|
273
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceGetForkInfoResponseFromJSON(jsonValue));
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
*/
|
|
278
|
+
async getForkInfo(requestParameters: GetForkInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceGetForkInfoResponse> {
|
|
279
|
+
const response = await this.getForkInfoRaw(requestParameters, initOverrides);
|
|
280
|
+
return await response.value();
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
*/
|
|
285
|
+
async listForksRaw(requestParameters: ListForksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceListForksResponse>> {
|
|
286
|
+
if (requestParameters['projectOwner'] == null) {
|
|
287
|
+
throw new runtime.RequiredError(
|
|
288
|
+
'projectOwner',
|
|
289
|
+
'Required parameter "projectOwner" was null or undefined when calling listForks().'
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
if (requestParameters['projectSlug'] == null) {
|
|
294
|
+
throw new runtime.RequiredError(
|
|
295
|
+
'projectSlug',
|
|
296
|
+
'Required parameter "projectSlug" was null or undefined when calling listForks().'
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
const queryParameters: any = {};
|
|
301
|
+
|
|
302
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
303
|
+
|
|
304
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
305
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
const response = await this.request({
|
|
309
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))),
|
|
310
|
+
method: 'GET',
|
|
311
|
+
headers: headerParameters,
|
|
312
|
+
query: queryParameters,
|
|
313
|
+
}, initOverrides);
|
|
314
|
+
|
|
315
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceListForksResponseFromJSON(jsonValue));
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
*/
|
|
320
|
+
async listForks(requestParameters: ListForksRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceListForksResponse> {
|
|
321
|
+
const response = await this.listForksRaw(requestParameters, initOverrides);
|
|
322
|
+
return await response.value();
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
/**
|
|
326
|
+
*/
|
|
327
|
+
async updateForkRaw(requestParameters: UpdateForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SolidityServiceUpdateForkResponse>> {
|
|
328
|
+
if (requestParameters['projectOwner'] == null) {
|
|
329
|
+
throw new runtime.RequiredError(
|
|
330
|
+
'projectOwner',
|
|
331
|
+
'Required parameter "projectOwner" was null or undefined when calling updateFork().'
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
if (requestParameters['projectSlug'] == null) {
|
|
336
|
+
throw new runtime.RequiredError(
|
|
337
|
+
'projectSlug',
|
|
338
|
+
'Required parameter "projectSlug" was null or undefined when calling updateFork().'
|
|
339
|
+
);
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
if (requestParameters['id'] == null) {
|
|
343
|
+
throw new runtime.RequiredError(
|
|
344
|
+
'id',
|
|
345
|
+
'Required parameter "id" was null or undefined when calling updateFork().'
|
|
346
|
+
);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
if (requestParameters['body'] == null) {
|
|
350
|
+
throw new runtime.RequiredError(
|
|
351
|
+
'body',
|
|
352
|
+
'Required parameter "body" was null or undefined when calling updateFork().'
|
|
353
|
+
);
|
|
354
|
+
}
|
|
355
|
+
|
|
356
|
+
const queryParameters: any = {};
|
|
357
|
+
|
|
358
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
359
|
+
|
|
360
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
361
|
+
|
|
362
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
363
|
+
headerParameters["api-key"] = await this.configuration.apiKey("api-key"); // ApiKeyAuth authentication
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
const response = await this.request({
|
|
367
|
+
path: `/api/v1/solidity/{projectOwner}/{projectSlug}/fork/{id}`.replace(`{${"projectOwner"}}`, encodeURIComponent(String(requestParameters['projectOwner']))).replace(`{${"projectSlug"}}`, encodeURIComponent(String(requestParameters['projectSlug']))).replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
|
|
368
|
+
method: 'PUT',
|
|
369
|
+
headers: headerParameters,
|
|
370
|
+
query: queryParameters,
|
|
371
|
+
body: SolidityServiceForkServiceUpdateForkBodyToJSON(requestParameters['body']),
|
|
372
|
+
}, initOverrides);
|
|
373
|
+
|
|
374
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => SolidityServiceUpdateForkResponseFromJSON(jsonValue));
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
*/
|
|
379
|
+
async updateFork(requestParameters: UpdateForkRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SolidityServiceUpdateForkResponse> {
|
|
380
|
+
const response = await this.updateForkRaw(requestParameters, initOverrides);
|
|
381
|
+
return await response.value();
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
}
|
package/src/apis/index.ts
CHANGED
|
@@ -13,6 +13,14 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { SolidityServiceSourceFetcherType } from './SolidityServiceSourceFetcherType.js';
|
|
17
|
+
import {
|
|
18
|
+
SolidityServiceSourceFetcherTypeFromJSON,
|
|
19
|
+
SolidityServiceSourceFetcherTypeFromJSONTyped,
|
|
20
|
+
SolidityServiceSourceFetcherTypeToJSON,
|
|
21
|
+
SolidityServiceSourceFetcherTypeToJSONTyped,
|
|
22
|
+
} from './SolidityServiceSourceFetcherType.js';
|
|
23
|
+
|
|
16
24
|
/**
|
|
17
25
|
*
|
|
18
26
|
* @export
|
|
@@ -33,10 +41,10 @@ export interface SolidityServiceBaseChainConfig {
|
|
|
33
41
|
debugEndpoint?: string;
|
|
34
42
|
/**
|
|
35
43
|
*
|
|
36
|
-
* @type {
|
|
44
|
+
* @type {SolidityServiceSourceFetcherType}
|
|
37
45
|
* @memberof SolidityServiceBaseChainConfig
|
|
38
46
|
*/
|
|
39
|
-
sourceFetcherType?:
|
|
47
|
+
sourceFetcherType?: SolidityServiceSourceFetcherType;
|
|
40
48
|
/**
|
|
41
49
|
*
|
|
42
50
|
* @type {string}
|
|
@@ -63,6 +71,8 @@ export interface SolidityServiceBaseChainConfig {
|
|
|
63
71
|
oklinkChainShortName?: string;
|
|
64
72
|
}
|
|
65
73
|
|
|
74
|
+
|
|
75
|
+
|
|
66
76
|
/**
|
|
67
77
|
* Check if a given object implements the SolidityServiceBaseChainConfig interface.
|
|
68
78
|
*/
|
|
@@ -82,7 +92,7 @@ export function SolidityServiceBaseChainConfigFromJSONTyped(json: any, ignoreDis
|
|
|
82
92
|
|
|
83
93
|
'endpoint': json['endpoint'] == null ? undefined : json['endpoint'],
|
|
84
94
|
'debugEndpoint': json['debugEndpoint'] == null ? undefined : json['debugEndpoint'],
|
|
85
|
-
'sourceFetcherType': json['sourceFetcherType'] == null ? undefined : json['sourceFetcherType'],
|
|
95
|
+
'sourceFetcherType': json['sourceFetcherType'] == null ? undefined : SolidityServiceSourceFetcherTypeFromJSON(json['sourceFetcherType']),
|
|
86
96
|
'sourceFetcherEndpoint': json['sourceFetcherEndpoint'] == null ? undefined : json['sourceFetcherEndpoint'],
|
|
87
97
|
'sourceFetcherTimeout': json['sourceFetcherTimeout'] == null ? undefined : json['sourceFetcherTimeout'],
|
|
88
98
|
'sourceFetcherApiKeys': json['sourceFetcherApiKeys'] == null ? undefined : json['sourceFetcherApiKeys'],
|
|
@@ -103,7 +113,7 @@ export function SolidityServiceBaseChainConfigFromJSONTyped(json: any, ignoreDis
|
|
|
103
113
|
|
|
104
114
|
'endpoint': value['endpoint'],
|
|
105
115
|
'debugEndpoint': value['debugEndpoint'],
|
|
106
|
-
'sourceFetcherType': value['sourceFetcherType'],
|
|
116
|
+
'sourceFetcherType': SolidityServiceSourceFetcherTypeToJSON(value['sourceFetcherType']),
|
|
107
117
|
'sourceFetcherEndpoint': value['sourceFetcherEndpoint'],
|
|
108
118
|
'sourceFetcherTimeout': value['sourceFetcherTimeout'],
|
|
109
119
|
'sourceFetcherApiKeys': value['sourceFetcherApiKeys'],
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { SolidityServiceFork } from './SolidityServiceFork.js';
|
|
17
|
+
import {
|
|
18
|
+
SolidityServiceForkFromJSON,
|
|
19
|
+
SolidityServiceForkFromJSONTyped,
|
|
20
|
+
SolidityServiceForkToJSON,
|
|
21
|
+
SolidityServiceForkToJSONTyped,
|
|
22
|
+
} from './SolidityServiceFork.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SolidityServiceCreateForkResponse
|
|
28
|
+
*/
|
|
29
|
+
export interface SolidityServiceCreateForkResponse {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {SolidityServiceFork}
|
|
33
|
+
* @memberof SolidityServiceCreateForkResponse
|
|
34
|
+
*/
|
|
35
|
+
fork?: SolidityServiceFork;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the SolidityServiceCreateForkResponse interface.
|
|
40
|
+
*/
|
|
41
|
+
export function instanceOfSolidityServiceCreateForkResponse(value: object): value is SolidityServiceCreateForkResponse {
|
|
42
|
+
return true;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function SolidityServiceCreateForkResponseFromJSON(json: any): SolidityServiceCreateForkResponse {
|
|
46
|
+
return SolidityServiceCreateForkResponseFromJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function SolidityServiceCreateForkResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceCreateForkResponse {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
|
|
55
|
+
'fork': json['fork'] == null ? undefined : SolidityServiceForkFromJSON(json['fork']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function SolidityServiceCreateForkResponseToJSON(json: any): SolidityServiceCreateForkResponse {
|
|
60
|
+
return SolidityServiceCreateForkResponseToJSONTyped(json, false);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export function SolidityServiceCreateForkResponseToJSONTyped(value?: SolidityServiceCreateForkResponse | null, ignoreDiscriminator: boolean = false): any {
|
|
64
|
+
if (value == null) {
|
|
65
|
+
return value;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'fork': SolidityServiceForkToJSON(value['fork']),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Sentio API
|
|
5
|
+
* Sentio Open API for query data
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: version not set
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime.js';
|
|
16
|
+
import type { SolidityServiceBaseChainConfig } from './SolidityServiceBaseChainConfig.js';
|
|
17
|
+
import {
|
|
18
|
+
SolidityServiceBaseChainConfigFromJSON,
|
|
19
|
+
SolidityServiceBaseChainConfigFromJSONTyped,
|
|
20
|
+
SolidityServiceBaseChainConfigToJSON,
|
|
21
|
+
SolidityServiceBaseChainConfigToJSONTyped,
|
|
22
|
+
} from './SolidityServiceBaseChainConfig.js';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface SolidityServiceExternalFork
|
|
28
|
+
*/
|
|
29
|
+
export interface SolidityServiceExternalFork {
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {SolidityServiceBaseChainConfig}
|
|
33
|
+
* @memberof SolidityServiceExternalFork
|
|
34
|
+
*/
|
|
35
|
+
chainConfig?: SolidityServiceBaseChainConfig;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof SolidityServiceExternalFork
|
|
40
|
+
*/
|
|
41
|
+
nodeAdditionalHeaders?: string;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* Check if a given object implements the SolidityServiceExternalFork interface.
|
|
46
|
+
*/
|
|
47
|
+
export function instanceOfSolidityServiceExternalFork(value: object): value is SolidityServiceExternalFork {
|
|
48
|
+
return true;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function SolidityServiceExternalForkFromJSON(json: any): SolidityServiceExternalFork {
|
|
52
|
+
return SolidityServiceExternalForkFromJSONTyped(json, false);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function SolidityServiceExternalForkFromJSONTyped(json: any, ignoreDiscriminator: boolean): SolidityServiceExternalFork {
|
|
56
|
+
if (json == null) {
|
|
57
|
+
return json;
|
|
58
|
+
}
|
|
59
|
+
return {
|
|
60
|
+
|
|
61
|
+
'chainConfig': json['chainConfig'] == null ? undefined : SolidityServiceBaseChainConfigFromJSON(json['chainConfig']),
|
|
62
|
+
'nodeAdditionalHeaders': json['nodeAdditionalHeaders'] == null ? undefined : json['nodeAdditionalHeaders'],
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function SolidityServiceExternalForkToJSON(json: any): SolidityServiceExternalFork {
|
|
67
|
+
return SolidityServiceExternalForkToJSONTyped(json, false);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export function SolidityServiceExternalForkToJSONTyped(value?: SolidityServiceExternalFork | null, ignoreDiscriminator: boolean = false): any {
|
|
71
|
+
if (value == null) {
|
|
72
|
+
return value;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return {
|
|
76
|
+
|
|
77
|
+
'chainConfig': SolidityServiceBaseChainConfigToJSON(value['chainConfig']),
|
|
78
|
+
'nodeAdditionalHeaders': value['nodeAdditionalHeaders'],
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
|