@northstake/northstakeapi 1.0.25 → 1.0.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/.openapi-generator/FILES +6 -0
- package/.openapi-generator/VERSION +1 -1
- package/api/apis.ts +3 -1
- package/api/smartContractsApi.ts +402 -0
- package/api.ts +9 -0
- package/dist/api/apis.d.ts +3 -1
- package/dist/api/apis.js +3 -1
- package/dist/api/smartContractsApi.d.ts +100 -0
- package/dist/api/smartContractsApi.js +306 -0
- package/dist/api.d.ts +7 -0
- package/dist/api.js +8 -0
- package/dist/model/getSmartContractMinedBlocks200Response.d.ts +38 -0
- package/dist/model/getSmartContractMinedBlocks200Response.js +43 -0
- package/dist/model/getSmartContractTransactions200Response.d.ts +38 -0
- package/dist/model/getSmartContractTransactions200Response.js +43 -0
- package/dist/model/internalTransaction.d.ts +34 -0
- package/dist/model/internalTransaction.js +58 -0
- package/dist/model/minedBlock.d.ts +31 -0
- package/dist/model/minedBlock.js +43 -0
- package/dist/model/models.d.ts +5 -0
- package/dist/model/models.js +15 -0
- package/dist/model/transaction.d.ts +74 -0
- package/dist/model/transaction.js +118 -0
- package/model/getSmartContractMinedBlocks200Response.ts +59 -0
- package/model/getSmartContractTransactions200Response.ts +59 -0
- package/model/internalTransaction.ts +70 -0
- package/model/minedBlock.ts +52 -0
- package/model/models.ts +25 -0
- package/model/transaction.ts +170 -0
- package/package.json +1 -1
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Northstake
|
|
4
|
+
* Northstake api
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.SmartContractsApi = exports.SmartContractsApiApiKeys = void 0;
|
|
18
|
+
const request_1 = __importDefault(require("request"));
|
|
19
|
+
const models_1 = require("../model/models");
|
|
20
|
+
const models_2 = require("../model/models");
|
|
21
|
+
let defaultBasePath = 'https://api.northstake.dk/v1';
|
|
22
|
+
// ===============================================
|
|
23
|
+
// This file is autogenerated - Please do not edit
|
|
24
|
+
// ===============================================
|
|
25
|
+
var SmartContractsApiApiKeys;
|
|
26
|
+
(function (SmartContractsApiApiKeys) {
|
|
27
|
+
SmartContractsApiApiKeys[SmartContractsApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
|
|
28
|
+
})(SmartContractsApiApiKeys || (exports.SmartContractsApiApiKeys = SmartContractsApiApiKeys = {}));
|
|
29
|
+
class SmartContractsApi {
|
|
30
|
+
constructor(basePathOrUsername, password, basePath) {
|
|
31
|
+
this._basePath = defaultBasePath;
|
|
32
|
+
this._defaultHeaders = {};
|
|
33
|
+
this._useQuerystring = false;
|
|
34
|
+
this.authentications = {
|
|
35
|
+
'default': new models_2.JWTAuth('your_api_key', 'your_private_key'),
|
|
36
|
+
'bearerTokenAuth': new models_2.HttpBearerAuth(),
|
|
37
|
+
'ApiKeyAuth': new models_2.ApiKeyAuth('header', 'x-api-key'),
|
|
38
|
+
};
|
|
39
|
+
this.interceptors = [];
|
|
40
|
+
if (password) {
|
|
41
|
+
if (basePath) {
|
|
42
|
+
this.basePath = basePath;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
if (basePathOrUsername) {
|
|
47
|
+
this.basePath = basePathOrUsername;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
set useQuerystring(value) {
|
|
52
|
+
this._useQuerystring = value;
|
|
53
|
+
}
|
|
54
|
+
set basePath(basePath) {
|
|
55
|
+
this._basePath = basePath;
|
|
56
|
+
}
|
|
57
|
+
set defaultHeaders(defaultHeaders) {
|
|
58
|
+
this._defaultHeaders = defaultHeaders;
|
|
59
|
+
}
|
|
60
|
+
get defaultHeaders() {
|
|
61
|
+
return this._defaultHeaders;
|
|
62
|
+
}
|
|
63
|
+
get basePath() {
|
|
64
|
+
return this._basePath;
|
|
65
|
+
}
|
|
66
|
+
setDefaultAuthentication(auth) {
|
|
67
|
+
this.authentications.default = auth;
|
|
68
|
+
}
|
|
69
|
+
setApiKey(key, value) {
|
|
70
|
+
this.authentications[SmartContractsApiApiKeys[key]].apiKey = value;
|
|
71
|
+
}
|
|
72
|
+
set accessToken(accessToken) {
|
|
73
|
+
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
74
|
+
}
|
|
75
|
+
addInterceptor(interceptor) {
|
|
76
|
+
this.interceptors.push(interceptor);
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary Get mined blocks related to a specific smart contract
|
|
81
|
+
* @param contractAddress The address of the smart contract
|
|
82
|
+
* @param page Page number for pagination
|
|
83
|
+
* @param limit Number of mined blocks per page
|
|
84
|
+
* @param startDate Start date for filtering mined blocks
|
|
85
|
+
* @param endDate End date for filtering mined blocks
|
|
86
|
+
*/
|
|
87
|
+
async getSmartContractMinedBlocks(params, options = { headers: {} }) {
|
|
88
|
+
const localVarPath = this.basePath + '/smartContracts/{contractAddress}/minedBlocks'
|
|
89
|
+
.replace('{' + 'contractAddress' + '}', encodeURIComponent(String(params === null || params === void 0 ? void 0 : params.contractAddress)));
|
|
90
|
+
let localVarQueryParameters = {};
|
|
91
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
92
|
+
const produces = ['application/json'];
|
|
93
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
94
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
95
|
+
}
|
|
96
|
+
else {
|
|
97
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
98
|
+
}
|
|
99
|
+
let localVarFormParams = {};
|
|
100
|
+
// Verify required parameter 'contractAddress' is not null or undefined
|
|
101
|
+
if ((params === null || params === void 0 ? void 0 : params.contractAddress) === null || (params === null || params === void 0 ? void 0 : params.contractAddress) === undefined) {
|
|
102
|
+
throw new Error('Required parameter "contractAddress" was null or undefined when calling getSmartContractMinedBlocks.');
|
|
103
|
+
}
|
|
104
|
+
if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
|
|
105
|
+
localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
|
|
106
|
+
}
|
|
107
|
+
if ((params === null || params === void 0 ? void 0 : params.limit) !== undefined) {
|
|
108
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.limit, "number");
|
|
109
|
+
}
|
|
110
|
+
if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
|
|
111
|
+
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "string");
|
|
112
|
+
}
|
|
113
|
+
if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
|
|
114
|
+
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "string");
|
|
115
|
+
}
|
|
116
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
117
|
+
let localVarUseFormData = false;
|
|
118
|
+
let localVarRequestOptions = {
|
|
119
|
+
method: 'GET',
|
|
120
|
+
qs: localVarQueryParameters,
|
|
121
|
+
headers: localVarHeaderParams,
|
|
122
|
+
uri: localVarPath,
|
|
123
|
+
useQuerystring: this._useQuerystring,
|
|
124
|
+
json: true,
|
|
125
|
+
};
|
|
126
|
+
let authenticationPromise = Promise.resolve();
|
|
127
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
128
|
+
let interceptorPromise = authenticationPromise;
|
|
129
|
+
for (const interceptor of this.interceptors) {
|
|
130
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
131
|
+
}
|
|
132
|
+
return interceptorPromise.then(() => {
|
|
133
|
+
if (Object.keys(localVarFormParams).length) {
|
|
134
|
+
if (localVarUseFormData) {
|
|
135
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
136
|
+
}
|
|
137
|
+
else {
|
|
138
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
return new Promise((resolve, reject) => {
|
|
142
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
143
|
+
if (error) {
|
|
144
|
+
console.error('API call error:', error);
|
|
145
|
+
reject(error);
|
|
146
|
+
}
|
|
147
|
+
else {
|
|
148
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
149
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetSmartContractMinedBlocks200Response");
|
|
150
|
+
resolve({ body: body, status: response.statusCode });
|
|
151
|
+
}
|
|
152
|
+
else {
|
|
153
|
+
console.error('API response error:', response.statusCode);
|
|
154
|
+
resolve({ body: body, status: response.statusCode });
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
});
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @summary Get transactions related to a specific smart contract
|
|
164
|
+
* @param contractAddress The address of the smart contract
|
|
165
|
+
* @param startDate Start date for filtering transactions
|
|
166
|
+
* @param endDate End date for filtering transactions
|
|
167
|
+
* @param page Page number for pagination
|
|
168
|
+
* @param limit Number of transactions per page
|
|
169
|
+
*/
|
|
170
|
+
async getSmartContractTransactions(params, options = { headers: {} }) {
|
|
171
|
+
const localVarPath = this.basePath + '/smartContracts/{contractAddress}/transactions'
|
|
172
|
+
.replace('{' + 'contractAddress' + '}', encodeURIComponent(String(params === null || params === void 0 ? void 0 : params.contractAddress)));
|
|
173
|
+
let localVarQueryParameters = {};
|
|
174
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
175
|
+
const produces = ['application/json'];
|
|
176
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
177
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
178
|
+
}
|
|
179
|
+
else {
|
|
180
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
181
|
+
}
|
|
182
|
+
let localVarFormParams = {};
|
|
183
|
+
// Verify required parameter 'contractAddress' is not null or undefined
|
|
184
|
+
if ((params === null || params === void 0 ? void 0 : params.contractAddress) === null || (params === null || params === void 0 ? void 0 : params.contractAddress) === undefined) {
|
|
185
|
+
throw new Error('Required parameter "contractAddress" was null or undefined when calling getSmartContractTransactions.');
|
|
186
|
+
}
|
|
187
|
+
if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
|
|
188
|
+
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "string");
|
|
189
|
+
}
|
|
190
|
+
if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
|
|
191
|
+
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "string");
|
|
192
|
+
}
|
|
193
|
+
if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
|
|
194
|
+
localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
|
|
195
|
+
}
|
|
196
|
+
if ((params === null || params === void 0 ? void 0 : params.limit) !== undefined) {
|
|
197
|
+
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.limit, "number");
|
|
198
|
+
}
|
|
199
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
200
|
+
let localVarUseFormData = false;
|
|
201
|
+
let localVarRequestOptions = {
|
|
202
|
+
method: 'GET',
|
|
203
|
+
qs: localVarQueryParameters,
|
|
204
|
+
headers: localVarHeaderParams,
|
|
205
|
+
uri: localVarPath,
|
|
206
|
+
useQuerystring: this._useQuerystring,
|
|
207
|
+
json: true,
|
|
208
|
+
};
|
|
209
|
+
let authenticationPromise = Promise.resolve();
|
|
210
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
211
|
+
let interceptorPromise = authenticationPromise;
|
|
212
|
+
for (const interceptor of this.interceptors) {
|
|
213
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
214
|
+
}
|
|
215
|
+
return interceptorPromise.then(() => {
|
|
216
|
+
if (Object.keys(localVarFormParams).length) {
|
|
217
|
+
if (localVarUseFormData) {
|
|
218
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
219
|
+
}
|
|
220
|
+
else {
|
|
221
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
return new Promise((resolve, reject) => {
|
|
225
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
226
|
+
if (error) {
|
|
227
|
+
console.error('API call error:', error);
|
|
228
|
+
reject(error);
|
|
229
|
+
}
|
|
230
|
+
else {
|
|
231
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
232
|
+
body = models_1.ObjectSerializer.deserialize(body, "GetSmartContractTransactions200Response");
|
|
233
|
+
resolve({ body: body, status: response.statusCode });
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
console.error('API response error:', response.statusCode);
|
|
237
|
+
resolve({ body: body, status: response.statusCode });
|
|
238
|
+
}
|
|
239
|
+
}
|
|
240
|
+
});
|
|
241
|
+
});
|
|
242
|
+
});
|
|
243
|
+
}
|
|
244
|
+
/**
|
|
245
|
+
*
|
|
246
|
+
* @summary Get list of all deployed smart contracts
|
|
247
|
+
*/
|
|
248
|
+
async getSmartContracts(options = { headers: {} }) {
|
|
249
|
+
const localVarPath = this.basePath + '/smartContracts';
|
|
250
|
+
let localVarQueryParameters = {};
|
|
251
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
252
|
+
const produces = ['application/json'];
|
|
253
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
254
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
255
|
+
}
|
|
256
|
+
else {
|
|
257
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
258
|
+
}
|
|
259
|
+
let localVarFormParams = {};
|
|
260
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
261
|
+
let localVarUseFormData = false;
|
|
262
|
+
let localVarRequestOptions = {
|
|
263
|
+
method: 'GET',
|
|
264
|
+
qs: localVarQueryParameters,
|
|
265
|
+
headers: localVarHeaderParams,
|
|
266
|
+
uri: localVarPath,
|
|
267
|
+
useQuerystring: this._useQuerystring,
|
|
268
|
+
json: true,
|
|
269
|
+
};
|
|
270
|
+
let authenticationPromise = Promise.resolve();
|
|
271
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
272
|
+
let interceptorPromise = authenticationPromise;
|
|
273
|
+
for (const interceptor of this.interceptors) {
|
|
274
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
275
|
+
}
|
|
276
|
+
return interceptorPromise.then(() => {
|
|
277
|
+
if (Object.keys(localVarFormParams).length) {
|
|
278
|
+
if (localVarUseFormData) {
|
|
279
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return new Promise((resolve, reject) => {
|
|
286
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
287
|
+
if (error) {
|
|
288
|
+
console.error('API call error:', error);
|
|
289
|
+
reject(error);
|
|
290
|
+
}
|
|
291
|
+
else {
|
|
292
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
293
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<SmartContract>");
|
|
294
|
+
resolve({ body: body, status: response.statusCode });
|
|
295
|
+
}
|
|
296
|
+
else {
|
|
297
|
+
console.error('API response error:', response.statusCode);
|
|
298
|
+
resolve({ body: body, status: response.statusCode });
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
exports.SmartContractsApi = SmartContractsApi;
|
package/dist/api.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { AccountApi } from './api/accountApi';
|
|
2
2
|
import { AccountApiKeysApi } from './api/accountApiKeysApi';
|
|
3
3
|
import { LinkedWalletsApi } from './api/linkedWalletsApi';
|
|
4
|
+
import { SmartContractsApi } from './api/smartContractsApi';
|
|
4
5
|
import { ValidatorMarketplaceBuyersApi } from './api/validatorMarketplaceBuyersApi';
|
|
5
6
|
import { ValidatorMarketplaceFacilitatorApi } from './api/validatorMarketplaceFacilitatorApi';
|
|
6
7
|
import { ValidatorMarketplaceSellersApi } from './api/validatorMarketplaceSellersApi';
|
|
@@ -28,8 +29,12 @@ export * from './model/./exitEstimateSeller';
|
|
|
28
29
|
export * from './model/./exitProposal';
|
|
29
30
|
export * from './model/./generateApiKeyRequest';
|
|
30
31
|
export * from './model/./getMarketplaceMetadata200Response';
|
|
32
|
+
export * from './model/./getSmartContractMinedBlocks200Response';
|
|
33
|
+
export * from './model/./getSmartContractTransactions200Response';
|
|
31
34
|
export * from './model/./getWithdrawalsResponse';
|
|
35
|
+
export * from './model/./internalTransaction';
|
|
32
36
|
export * from './model/./listAllRFQsForFacilitator200Response';
|
|
37
|
+
export * from './model/./minedBlock';
|
|
33
38
|
export * from './model/./provideEscrowHashForRFQDocumentRequest';
|
|
34
39
|
export * from './model/./quote';
|
|
35
40
|
export * from './model/./rFQBidFacilitator';
|
|
@@ -53,6 +58,7 @@ export * from './model/./registerWithdrawalRecipientSettlementRequest';
|
|
|
53
58
|
export * from './model/./settlementSteps';
|
|
54
59
|
export * from './model/./smartContract';
|
|
55
60
|
export * from './model/./submittedQuote';
|
|
61
|
+
export * from './model/./transaction';
|
|
56
62
|
export * from './model/./validatorInfo';
|
|
57
63
|
export * from './model/./validatorKeyHolder';
|
|
58
64
|
export * from './model/./validatorType';
|
|
@@ -86,6 +92,7 @@ export declare class NorthstakeApi {
|
|
|
86
92
|
account: AccountApi;
|
|
87
93
|
accountApiKeys: AccountApiKeysApi;
|
|
88
94
|
linkedWallets: LinkedWalletsApi;
|
|
95
|
+
smartContracts: SmartContractsApi;
|
|
89
96
|
validatorMarketplaceBuyers: ValidatorMarketplaceBuyersApi;
|
|
90
97
|
validatorMarketplaceFacilitator: ValidatorMarketplaceFacilitatorApi;
|
|
91
98
|
validatorMarketplaceSellers: ValidatorMarketplaceSellersApi;
|
package/dist/api.js
CHANGED
|
@@ -20,6 +20,7 @@ const models_1 = require("./model/models");
|
|
|
20
20
|
const accountApi_1 = require("./api/accountApi");
|
|
21
21
|
const accountApiKeysApi_1 = require("./api/accountApiKeysApi");
|
|
22
22
|
const linkedWalletsApi_1 = require("./api/linkedWalletsApi");
|
|
23
|
+
const smartContractsApi_1 = require("./api/smartContractsApi");
|
|
23
24
|
const validatorMarketplaceBuyersApi_1 = require("./api/validatorMarketplaceBuyersApi");
|
|
24
25
|
const validatorMarketplaceFacilitatorApi_1 = require("./api/validatorMarketplaceFacilitatorApi");
|
|
25
26
|
const validatorMarketplaceSellersApi_1 = require("./api/validatorMarketplaceSellersApi");
|
|
@@ -47,8 +48,12 @@ __exportStar(require("./model/./exitEstimateSeller"), exports);
|
|
|
47
48
|
__exportStar(require("./model/./exitProposal"), exports);
|
|
48
49
|
__exportStar(require("./model/./generateApiKeyRequest"), exports);
|
|
49
50
|
__exportStar(require("./model/./getMarketplaceMetadata200Response"), exports);
|
|
51
|
+
__exportStar(require("./model/./getSmartContractMinedBlocks200Response"), exports);
|
|
52
|
+
__exportStar(require("./model/./getSmartContractTransactions200Response"), exports);
|
|
50
53
|
__exportStar(require("./model/./getWithdrawalsResponse"), exports);
|
|
54
|
+
__exportStar(require("./model/./internalTransaction"), exports);
|
|
51
55
|
__exportStar(require("./model/./listAllRFQsForFacilitator200Response"), exports);
|
|
56
|
+
__exportStar(require("./model/./minedBlock"), exports);
|
|
52
57
|
__exportStar(require("./model/./provideEscrowHashForRFQDocumentRequest"), exports);
|
|
53
58
|
__exportStar(require("./model/./quote"), exports);
|
|
54
59
|
__exportStar(require("./model/./rFQBidFacilitator"), exports);
|
|
@@ -72,6 +77,7 @@ __exportStar(require("./model/./registerWithdrawalRecipientSettlementRequest"),
|
|
|
72
77
|
__exportStar(require("./model/./settlementSteps"), exports);
|
|
73
78
|
__exportStar(require("./model/./smartContract"), exports);
|
|
74
79
|
__exportStar(require("./model/./submittedQuote"), exports);
|
|
80
|
+
__exportStar(require("./model/./transaction"), exports);
|
|
75
81
|
__exportStar(require("./model/./validatorInfo"), exports);
|
|
76
82
|
__exportStar(require("./model/./validatorKeyHolder"), exports);
|
|
77
83
|
__exportStar(require("./model/./validatorType"), exports);
|
|
@@ -109,6 +115,8 @@ class NorthstakeApi {
|
|
|
109
115
|
this.accountApiKeys.setDefaultAuthentication(jwtAuth);
|
|
110
116
|
this.linkedWallets = new linkedWalletsApi_1.LinkedWalletsApi(basePath);
|
|
111
117
|
this.linkedWallets.setDefaultAuthentication(jwtAuth);
|
|
118
|
+
this.smartContracts = new smartContractsApi_1.SmartContractsApi(basePath);
|
|
119
|
+
this.smartContracts.setDefaultAuthentication(jwtAuth);
|
|
112
120
|
this.validatorMarketplaceBuyers = new validatorMarketplaceBuyersApi_1.ValidatorMarketplaceBuyersApi(basePath);
|
|
113
121
|
this.validatorMarketplaceBuyers.setDefaultAuthentication(jwtAuth);
|
|
114
122
|
this.validatorMarketplaceFacilitator = new validatorMarketplaceFacilitatorApi_1.ValidatorMarketplaceFacilitatorApi(basePath);
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { MinedBlock } from './minedBlock';
|
|
13
|
+
export declare class GetSmartContractMinedBlocks200Response {
|
|
14
|
+
'blocks': Array<MinedBlock>;
|
|
15
|
+
/**
|
|
16
|
+
* Total number of mined blocks
|
|
17
|
+
*/
|
|
18
|
+
'total': number;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of pages
|
|
21
|
+
*/
|
|
22
|
+
'pages': number;
|
|
23
|
+
/**
|
|
24
|
+
* Current page number
|
|
25
|
+
*/
|
|
26
|
+
'currentPage': number;
|
|
27
|
+
static discriminator: string | undefined;
|
|
28
|
+
static attributeTypeMap: Array<{
|
|
29
|
+
name: string;
|
|
30
|
+
baseName: string;
|
|
31
|
+
type: string;
|
|
32
|
+
}>;
|
|
33
|
+
static getAttributeTypeMap(): {
|
|
34
|
+
name: string;
|
|
35
|
+
baseName: string;
|
|
36
|
+
type: string;
|
|
37
|
+
}[];
|
|
38
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Northstake
|
|
4
|
+
* Northstake api
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.GetSmartContractMinedBlocks200Response = void 0;
|
|
15
|
+
class GetSmartContractMinedBlocks200Response {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return GetSmartContractMinedBlocks200Response.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.GetSmartContractMinedBlocks200Response = GetSmartContractMinedBlocks200Response;
|
|
21
|
+
GetSmartContractMinedBlocks200Response.discriminator = undefined;
|
|
22
|
+
GetSmartContractMinedBlocks200Response.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "blocks",
|
|
25
|
+
"baseName": "blocks",
|
|
26
|
+
"type": "Array<MinedBlock>"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "total",
|
|
30
|
+
"baseName": "total",
|
|
31
|
+
"type": "number"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "pages",
|
|
35
|
+
"baseName": "pages",
|
|
36
|
+
"type": "number"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "currentPage",
|
|
40
|
+
"baseName": "currentPage",
|
|
41
|
+
"type": "number"
|
|
42
|
+
}
|
|
43
|
+
];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { Transaction } from './transaction';
|
|
13
|
+
export declare class GetSmartContractTransactions200Response {
|
|
14
|
+
'transactions': Array<Transaction>;
|
|
15
|
+
/**
|
|
16
|
+
* Total number of transactions
|
|
17
|
+
*/
|
|
18
|
+
'total': number;
|
|
19
|
+
/**
|
|
20
|
+
* Total number of pages
|
|
21
|
+
*/
|
|
22
|
+
'pages': number;
|
|
23
|
+
/**
|
|
24
|
+
* Current page number
|
|
25
|
+
*/
|
|
26
|
+
'currentPage': number;
|
|
27
|
+
static discriminator: string | undefined;
|
|
28
|
+
static attributeTypeMap: Array<{
|
|
29
|
+
name: string;
|
|
30
|
+
baseName: string;
|
|
31
|
+
type: string;
|
|
32
|
+
}>;
|
|
33
|
+
static getAttributeTypeMap(): {
|
|
34
|
+
name: string;
|
|
35
|
+
baseName: string;
|
|
36
|
+
type: string;
|
|
37
|
+
}[];
|
|
38
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Northstake
|
|
4
|
+
* Northstake api
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.GetSmartContractTransactions200Response = void 0;
|
|
15
|
+
class GetSmartContractTransactions200Response {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return GetSmartContractTransactions200Response.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.GetSmartContractTransactions200Response = GetSmartContractTransactions200Response;
|
|
21
|
+
GetSmartContractTransactions200Response.discriminator = undefined;
|
|
22
|
+
GetSmartContractTransactions200Response.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "transactions",
|
|
25
|
+
"baseName": "transactions",
|
|
26
|
+
"type": "Array<Transaction>"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "total",
|
|
30
|
+
"baseName": "total",
|
|
31
|
+
"type": "number"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "pages",
|
|
35
|
+
"baseName": "pages",
|
|
36
|
+
"type": "number"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "currentPage",
|
|
40
|
+
"baseName": "currentPage",
|
|
41
|
+
"type": "number"
|
|
42
|
+
}
|
|
43
|
+
];
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export declare class InternalTransaction {
|
|
13
|
+
'blockNumber': number;
|
|
14
|
+
'timeStamp': Date;
|
|
15
|
+
'hash': string;
|
|
16
|
+
'fromAddress': string;
|
|
17
|
+
'toAddress': string;
|
|
18
|
+
/**
|
|
19
|
+
* Transaction value in ETH
|
|
20
|
+
*/
|
|
21
|
+
'value': string;
|
|
22
|
+
'isError'?: boolean;
|
|
23
|
+
static discriminator: string | undefined;
|
|
24
|
+
static attributeTypeMap: Array<{
|
|
25
|
+
name: string;
|
|
26
|
+
baseName: string;
|
|
27
|
+
type: string;
|
|
28
|
+
}>;
|
|
29
|
+
static getAttributeTypeMap(): {
|
|
30
|
+
name: string;
|
|
31
|
+
baseName: string;
|
|
32
|
+
type: string;
|
|
33
|
+
}[];
|
|
34
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Northstake
|
|
4
|
+
* Northstake api
|
|
5
|
+
*
|
|
6
|
+
* The version of the OpenAPI document: 1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
+
* https://openapi-generator.tech
|
|
11
|
+
* Do not edit the class manually.
|
|
12
|
+
*/
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.InternalTransaction = void 0;
|
|
15
|
+
class InternalTransaction {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return InternalTransaction.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.InternalTransaction = InternalTransaction;
|
|
21
|
+
InternalTransaction.discriminator = undefined;
|
|
22
|
+
InternalTransaction.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "blockNumber",
|
|
25
|
+
"baseName": "blockNumber",
|
|
26
|
+
"type": "number"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "timeStamp",
|
|
30
|
+
"baseName": "timeStamp",
|
|
31
|
+
"type": "Date"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "hash",
|
|
35
|
+
"baseName": "hash",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "fromAddress",
|
|
40
|
+
"baseName": "fromAddress",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "toAddress",
|
|
45
|
+
"baseName": "toAddress",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "value",
|
|
50
|
+
"baseName": "value",
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "isError",
|
|
55
|
+
"baseName": "isError",
|
|
56
|
+
"type": "boolean"
|
|
57
|
+
}
|
|
58
|
+
];
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export declare class MinedBlock {
|
|
13
|
+
'blockNumber': number;
|
|
14
|
+
/**
|
|
15
|
+
* Block reward in ETH
|
|
16
|
+
*/
|
|
17
|
+
'blockReward': string;
|
|
18
|
+
'timeStamp': Date;
|
|
19
|
+
'address': string;
|
|
20
|
+
static discriminator: string | undefined;
|
|
21
|
+
static attributeTypeMap: Array<{
|
|
22
|
+
name: string;
|
|
23
|
+
baseName: string;
|
|
24
|
+
type: string;
|
|
25
|
+
}>;
|
|
26
|
+
static getAttributeTypeMap(): {
|
|
27
|
+
name: string;
|
|
28
|
+
baseName: string;
|
|
29
|
+
type: string;
|
|
30
|
+
}[];
|
|
31
|
+
}
|