@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.
@@ -5,6 +5,7 @@ api/accountApi.ts
5
5
  api/accountApiKeysApi.ts
6
6
  api/apis.ts
7
7
  api/linkedWalletsApi.ts
8
+ api/smartContractsApi.ts
8
9
  api/validatorMarketplaceBuyersApi.ts
9
10
  api/validatorMarketplaceFacilitatorApi.ts
10
11
  api/validatorMarketplaceSellersApi.ts
@@ -33,8 +34,12 @@ model/exitEstimateSeller.ts
33
34
  model/exitProposal.ts
34
35
  model/generateApiKeyRequest.ts
35
36
  model/getMarketplaceMetadata200Response.ts
37
+ model/getSmartContractMinedBlocks200Response.ts
38
+ model/getSmartContractTransactions200Response.ts
36
39
  model/getWithdrawalsResponse.ts
40
+ model/internalTransaction.ts
37
41
  model/listAllRFQsForFacilitator200Response.ts
42
+ model/minedBlock.ts
38
43
  model/models.ts
39
44
  model/provideEscrowHashForRFQDocumentRequest.ts
40
45
  model/quote.ts
@@ -59,6 +64,7 @@ model/registerWithdrawalRecipientSettlementRequest.ts
59
64
  model/settlementSteps.ts
60
65
  model/smartContract.ts
61
66
  model/submittedQuote.ts
67
+ model/transaction.ts
62
68
  model/validatorInfo.ts
63
69
  model/validatorKeyHolder.ts
64
70
  model/validatorType.ts
@@ -1 +1 @@
1
- 7.10.0-SNAPSHOT
1
+ 7.11.0-SNAPSHOT
package/api/apis.ts CHANGED
@@ -4,6 +4,8 @@ export * from './accountApiKeysApi';
4
4
  import { AccountApiKeysApi } from './accountApiKeysApi';
5
5
  export * from './linkedWalletsApi';
6
6
  import { LinkedWalletsApi } from './linkedWalletsApi';
7
+ export * from './smartContractsApi';
8
+ import { SmartContractsApi } from './smartContractsApi';
7
9
  export * from './validatorMarketplaceBuyersApi';
8
10
  import { ValidatorMarketplaceBuyersApi } from './validatorMarketplaceBuyersApi';
9
11
  export * from './validatorMarketplaceFacilitatorApi';
@@ -25,4 +27,4 @@ export class HttpError extends Error {
25
27
 
26
28
  export { RequestFile } from '../model/models';
27
29
 
28
- export const APIS = [AccountApi, AccountApiKeysApi, LinkedWalletsApi, ValidatorMarketplaceBuyersApi, ValidatorMarketplaceFacilitatorApi, ValidatorMarketplaceSellersApi, ValidatorMarketplaceWebhooksApi, ValidatorsApi];
30
+ export const APIS = [AccountApi, AccountApiKeysApi, LinkedWalletsApi, SmartContractsApi, ValidatorMarketplaceBuyersApi, ValidatorMarketplaceFacilitatorApi, ValidatorMarketplaceSellersApi, ValidatorMarketplaceWebhooksApi, ValidatorsApi];
@@ -0,0 +1,402 @@
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
+
13
+
14
+ import localVarRequest from 'request';
15
+ import http from 'http';
16
+
17
+ /* tslint:disable:no-unused-locals */
18
+ import { ErrorResponse } from '../model/errorResponse';
19
+ import { GetSmartContractMinedBlocks200Response } from '../model/getSmartContractMinedBlocks200Response';
20
+ import { GetSmartContractTransactions200Response } from '../model/getSmartContractTransactions200Response';
21
+ import { SmartContract } from '../model/smartContract';
22
+
23
+ import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
24
+ import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
25
+
26
+ import { HttpError, RequestFile } from './apis';
27
+
28
+ let defaultBasePath = 'https://api.northstake.dk/v1';
29
+
30
+ // ===============================================
31
+ // This file is autogenerated - Please do not edit
32
+ // ===============================================
33
+
34
+ export enum SmartContractsApiApiKeys {
35
+ ApiKeyAuth,
36
+ }
37
+
38
+
39
+ // If vendorExtensions.x-packageParams is true, use a single object to pass parameters
40
+ export interface SmartContractsApiParams {
41
+ contractAddress: string;
42
+ page?: number;
43
+ limit?: number;
44
+ startDate?: string;
45
+ endDate?: string;
46
+ }
47
+ // If vendorExtensions.x-packageParams is true, use a single object to pass parameters
48
+ export interface SmartContractsApiParams {
49
+ contractAddress: string;
50
+ startDate?: string;
51
+ endDate?: string;
52
+ page?: number;
53
+ limit?: number;
54
+ }
55
+
56
+ export class SmartContractsApi {
57
+ protected _basePath = defaultBasePath;
58
+ protected _defaultHeaders : any = {};
59
+ protected _useQuerystring : boolean = false;
60
+
61
+ protected authentications = {
62
+ 'default': <Authentication>new JWTAuth('your_api_key', 'your_private_key'),
63
+ 'bearerTokenAuth': new HttpBearerAuth(),
64
+ 'ApiKeyAuth': new ApiKeyAuth('header', 'x-api-key'),
65
+ }
66
+
67
+ protected interceptors: Interceptor[] = [];
68
+
69
+ constructor(basePath?: string);
70
+ constructor(basePathOrUsername: string, password?: string, basePath?: string) {
71
+ if (password) {
72
+ if (basePath) {
73
+ this.basePath = basePath;
74
+ }
75
+ } else {
76
+ if (basePathOrUsername) {
77
+ this.basePath = basePathOrUsername
78
+ }
79
+ }
80
+ }
81
+
82
+ set useQuerystring(value: boolean) {
83
+ this._useQuerystring = value;
84
+ }
85
+
86
+ set basePath(basePath: string) {
87
+ this._basePath = basePath;
88
+ }
89
+
90
+ set defaultHeaders(defaultHeaders: any) {
91
+ this._defaultHeaders = defaultHeaders;
92
+ }
93
+
94
+ get defaultHeaders() {
95
+ return this._defaultHeaders;
96
+ }
97
+
98
+ get basePath() {
99
+ return this._basePath;
100
+ }
101
+
102
+ public setDefaultAuthentication(auth: Authentication) {
103
+ this.authentications.default = auth;
104
+ }
105
+
106
+ public setApiKey(key: SmartContractsApiApiKeys, value: string) {
107
+ (this.authentications as any)[SmartContractsApiApiKeys[key]].apiKey = value;
108
+ }
109
+
110
+ set accessToken(accessToken: string | (() => string)) {
111
+ this.authentications.bearerTokenAuth.accessToken = accessToken;
112
+ }
113
+
114
+ public addInterceptor(interceptor: Interceptor) {
115
+ this.interceptors.push(interceptor);
116
+ }
117
+
118
+ /**
119
+ *
120
+ * @summary Get mined blocks related to a specific smart contract
121
+ * @param contractAddress The address of the smart contract
122
+ * @param page Page number for pagination
123
+ * @param limit Number of mined blocks per page
124
+ * @param startDate Start date for filtering mined blocks
125
+ * @param endDate End date for filtering mined blocks
126
+ */
127
+
128
+
129
+
130
+
131
+
132
+ public async getSmartContractMinedBlocks(params?: SmartContractsApiParams, options: { headers: { [name: string]: string } } = { headers: {} }): Promise<{ body: GetSmartContractMinedBlocks200Response, status: number }> {
133
+
134
+ const localVarPath = this.basePath + '/smartContracts/{contractAddress}/minedBlocks'
135
+ .replace('{' + 'contractAddress' + '}', encodeURIComponent(String(params?.contractAddress)));
136
+
137
+ let localVarQueryParameters: any = {};
138
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
139
+ const produces = ['application/json'];
140
+ if (produces.indexOf('application/json') >= 0) {
141
+ localVarHeaderParams.Accept = 'application/json';
142
+ } else {
143
+ localVarHeaderParams.Accept = produces.join(',');
144
+ }
145
+ let localVarFormParams: any = {};
146
+
147
+
148
+ // Verify required parameter 'contractAddress' is not null or undefined
149
+ if (params?.contractAddress === null || params?.contractAddress === undefined) {
150
+ throw new Error('Required parameter "contractAddress" was null or undefined when calling getSmartContractMinedBlocks.');
151
+ }
152
+
153
+
154
+
155
+ if (params?.page !== undefined) {
156
+ localVarQueryParameters['page'] = ObjectSerializer.serialize(params?.page, "number");
157
+ }
158
+ if (params?.limit !== undefined) {
159
+ localVarQueryParameters['limit'] = ObjectSerializer.serialize(params?.limit, "number");
160
+ }
161
+ if (params?.startDate !== undefined) {
162
+ localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "string");
163
+ }
164
+ if (params?.endDate !== undefined) {
165
+ localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "string");
166
+ }
167
+
168
+
169
+
170
+
171
+ (<any>Object).assign(localVarHeaderParams, options.headers);
172
+
173
+ let localVarUseFormData = false;
174
+
175
+
176
+
177
+ let localVarRequestOptions: localVarRequest.Options = {
178
+ method: 'GET',
179
+ qs: localVarQueryParameters,
180
+ headers: localVarHeaderParams,
181
+ uri: localVarPath,
182
+ useQuerystring: this._useQuerystring,
183
+ json: true,
184
+ };
185
+
186
+ let authenticationPromise = Promise.resolve();
187
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
188
+
189
+ let interceptorPromise = authenticationPromise;
190
+ for (const interceptor of this.interceptors) {
191
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
192
+ }
193
+
194
+ return interceptorPromise.then(() => {
195
+ if (Object.keys(localVarFormParams).length) {
196
+ if (localVarUseFormData) {
197
+ (<any>localVarRequestOptions).formData = localVarFormParams;
198
+ } else {
199
+ localVarRequestOptions.form = localVarFormParams;
200
+ }
201
+ }
202
+ return new Promise<{ body: GetSmartContractMinedBlocks200Response, status: number }>((resolve, reject) => {
203
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
204
+ if (error) {
205
+ console.error('API call error:', error);
206
+ reject(error);
207
+ } else {
208
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
209
+ body = ObjectSerializer.deserialize(body, "GetSmartContractMinedBlocks200Response");
210
+ resolve({ body: body, status: response.statusCode });
211
+ } else {
212
+ console.error('API response error:', response.statusCode);
213
+ resolve({ body: body, status: response.statusCode });
214
+ }
215
+ }
216
+ });
217
+ });
218
+ } )
219
+ }
220
+ /**
221
+ *
222
+ * @summary Get transactions related to a specific smart contract
223
+ * @param contractAddress The address of the smart contract
224
+ * @param startDate Start date for filtering transactions
225
+ * @param endDate End date for filtering transactions
226
+ * @param page Page number for pagination
227
+ * @param limit Number of transactions per page
228
+ */
229
+
230
+
231
+
232
+
233
+
234
+ public async getSmartContractTransactions(params?: SmartContractsApiParams, options: { headers: { [name: string]: string } } = { headers: {} }): Promise<{ body: GetSmartContractTransactions200Response, status: number }> {
235
+
236
+ const localVarPath = this.basePath + '/smartContracts/{contractAddress}/transactions'
237
+ .replace('{' + 'contractAddress' + '}', encodeURIComponent(String(params?.contractAddress)));
238
+
239
+ let localVarQueryParameters: any = {};
240
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
241
+ const produces = ['application/json'];
242
+ if (produces.indexOf('application/json') >= 0) {
243
+ localVarHeaderParams.Accept = 'application/json';
244
+ } else {
245
+ localVarHeaderParams.Accept = produces.join(',');
246
+ }
247
+ let localVarFormParams: any = {};
248
+
249
+
250
+ // Verify required parameter 'contractAddress' is not null or undefined
251
+ if (params?.contractAddress === null || params?.contractAddress === undefined) {
252
+ throw new Error('Required parameter "contractAddress" was null or undefined when calling getSmartContractTransactions.');
253
+ }
254
+
255
+
256
+
257
+ if (params?.startDate !== undefined) {
258
+ localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "string");
259
+ }
260
+ if (params?.endDate !== undefined) {
261
+ localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "string");
262
+ }
263
+ if (params?.page !== undefined) {
264
+ localVarQueryParameters['page'] = ObjectSerializer.serialize(params?.page, "number");
265
+ }
266
+ if (params?.limit !== undefined) {
267
+ localVarQueryParameters['limit'] = ObjectSerializer.serialize(params?.limit, "number");
268
+ }
269
+
270
+
271
+
272
+
273
+ (<any>Object).assign(localVarHeaderParams, options.headers);
274
+
275
+ let localVarUseFormData = false;
276
+
277
+
278
+
279
+ let localVarRequestOptions: localVarRequest.Options = {
280
+ method: 'GET',
281
+ qs: localVarQueryParameters,
282
+ headers: localVarHeaderParams,
283
+ uri: localVarPath,
284
+ useQuerystring: this._useQuerystring,
285
+ json: true,
286
+ };
287
+
288
+ let authenticationPromise = Promise.resolve();
289
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
290
+
291
+ let interceptorPromise = authenticationPromise;
292
+ for (const interceptor of this.interceptors) {
293
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
294
+ }
295
+
296
+ return interceptorPromise.then(() => {
297
+ if (Object.keys(localVarFormParams).length) {
298
+ if (localVarUseFormData) {
299
+ (<any>localVarRequestOptions).formData = localVarFormParams;
300
+ } else {
301
+ localVarRequestOptions.form = localVarFormParams;
302
+ }
303
+ }
304
+ return new Promise<{ body: GetSmartContractTransactions200Response, status: number }>((resolve, reject) => {
305
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
306
+ if (error) {
307
+ console.error('API call error:', error);
308
+ reject(error);
309
+ } else {
310
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
311
+ body = ObjectSerializer.deserialize(body, "GetSmartContractTransactions200Response");
312
+ resolve({ body: body, status: response.statusCode });
313
+ } else {
314
+ console.error('API response error:', response.statusCode);
315
+ resolve({ body: body, status: response.statusCode });
316
+ }
317
+ }
318
+ });
319
+ });
320
+ } )
321
+ }
322
+ /**
323
+ *
324
+ * @summary Get list of all deployed smart contracts
325
+ */
326
+
327
+
328
+
329
+
330
+
331
+ public async getSmartContracts (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<SmartContract>, status: number }> {
332
+
333
+ const localVarPath = this.basePath + '/smartContracts';
334
+
335
+ let localVarQueryParameters: any = {};
336
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
337
+ const produces = ['application/json'];
338
+ if (produces.indexOf('application/json') >= 0) {
339
+ localVarHeaderParams.Accept = 'application/json';
340
+ } else {
341
+ localVarHeaderParams.Accept = produces.join(',');
342
+ }
343
+ let localVarFormParams: any = {};
344
+
345
+
346
+
347
+
348
+
349
+
350
+
351
+
352
+
353
+ (<any>Object).assign(localVarHeaderParams, options.headers);
354
+
355
+ let localVarUseFormData = false;
356
+
357
+
358
+
359
+ let localVarRequestOptions: localVarRequest.Options = {
360
+ method: 'GET',
361
+ qs: localVarQueryParameters,
362
+ headers: localVarHeaderParams,
363
+ uri: localVarPath,
364
+ useQuerystring: this._useQuerystring,
365
+ json: true,
366
+ };
367
+
368
+ let authenticationPromise = Promise.resolve();
369
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
370
+
371
+ let interceptorPromise = authenticationPromise;
372
+ for (const interceptor of this.interceptors) {
373
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
374
+ }
375
+
376
+ return interceptorPromise.then(() => {
377
+ if (Object.keys(localVarFormParams).length) {
378
+ if (localVarUseFormData) {
379
+ (<any>localVarRequestOptions).formData = localVarFormParams;
380
+ } else {
381
+ localVarRequestOptions.form = localVarFormParams;
382
+ }
383
+ }
384
+ return new Promise<{ body: Array<SmartContract>, status: number }>((resolve, reject) => {
385
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
386
+ if (error) {
387
+ console.error('API call error:', error);
388
+ reject(error);
389
+ } else {
390
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
391
+ body = ObjectSerializer.deserialize(body, "Array<SmartContract>");
392
+ resolve({ body: body, status: response.statusCode });
393
+ } else {
394
+ console.error('API response error:', response.statusCode);
395
+ resolve({ body: body, status: response.statusCode });
396
+ }
397
+ }
398
+ });
399
+ });
400
+ } )
401
+ }
402
+ }
package/api.ts CHANGED
@@ -3,6 +3,7 @@ import { JWTAuth } from './model/models';
3
3
  import { AccountApi } from './api/accountApi';
4
4
  import { AccountApiKeysApi } from './api/accountApiKeysApi';
5
5
  import { LinkedWalletsApi } from './api/linkedWalletsApi';
6
+ import { SmartContractsApi } from './api/smartContractsApi';
6
7
  import { ValidatorMarketplaceBuyersApi } from './api/validatorMarketplaceBuyersApi';
7
8
  import { ValidatorMarketplaceFacilitatorApi } from './api/validatorMarketplaceFacilitatorApi';
8
9
  import { ValidatorMarketplaceSellersApi } from './api/validatorMarketplaceSellersApi';
@@ -30,8 +31,12 @@ export * from './model/./exitEstimateSeller';
30
31
  export * from './model/./exitProposal';
31
32
  export * from './model/./generateApiKeyRequest';
32
33
  export * from './model/./getMarketplaceMetadata200Response';
34
+ export * from './model/./getSmartContractMinedBlocks200Response';
35
+ export * from './model/./getSmartContractTransactions200Response';
33
36
  export * from './model/./getWithdrawalsResponse';
37
+ export * from './model/./internalTransaction';
34
38
  export * from './model/./listAllRFQsForFacilitator200Response';
39
+ export * from './model/./minedBlock';
35
40
  export * from './model/./provideEscrowHashForRFQDocumentRequest';
36
41
  export * from './model/./quote';
37
42
  export * from './model/./rFQBidFacilitator';
@@ -55,6 +60,7 @@ export * from './model/./registerWithdrawalRecipientSettlementRequest';
55
60
  export * from './model/./settlementSteps';
56
61
  export * from './model/./smartContract';
57
62
  export * from './model/./submittedQuote';
63
+ export * from './model/./transaction';
58
64
  export * from './model/./validatorInfo';
59
65
  export * from './model/./validatorKeyHolder';
60
66
  export * from './model/./validatorType';
@@ -94,6 +100,8 @@ export class NorthstakeApi {
94
100
  this.accountApiKeys.setDefaultAuthentication(jwtAuth);
95
101
  this.linkedWallets = new LinkedWalletsApi(basePath);
96
102
  this.linkedWallets.setDefaultAuthentication(jwtAuth);
103
+ this.smartContracts = new SmartContractsApi(basePath);
104
+ this.smartContracts.setDefaultAuthentication(jwtAuth);
97
105
  this.validatorMarketplaceBuyers = new ValidatorMarketplaceBuyersApi(basePath);
98
106
  this.validatorMarketplaceBuyers.setDefaultAuthentication(jwtAuth);
99
107
  this.validatorMarketplaceFacilitator = new ValidatorMarketplaceFacilitatorApi(basePath);
@@ -108,6 +116,7 @@ export class NorthstakeApi {
108
116
  public account: AccountApi;
109
117
  public accountApiKeys: AccountApiKeysApi;
110
118
  public linkedWallets: LinkedWalletsApi;
119
+ public smartContracts: SmartContractsApi;
111
120
  public validatorMarketplaceBuyers: ValidatorMarketplaceBuyersApi;
112
121
  public validatorMarketplaceFacilitator: ValidatorMarketplaceFacilitatorApi;
113
122
  public validatorMarketplaceSellers: ValidatorMarketplaceSellersApi;
@@ -4,6 +4,8 @@ export * from './accountApiKeysApi';
4
4
  import { AccountApiKeysApi } from './accountApiKeysApi';
5
5
  export * from './linkedWalletsApi';
6
6
  import { LinkedWalletsApi } from './linkedWalletsApi';
7
+ export * from './smartContractsApi';
8
+ import { SmartContractsApi } from './smartContractsApi';
7
9
  export * from './validatorMarketplaceBuyersApi';
8
10
  import { ValidatorMarketplaceBuyersApi } from './validatorMarketplaceBuyersApi';
9
11
  export * from './validatorMarketplaceFacilitatorApi';
@@ -22,4 +24,4 @@ export declare class HttpError extends Error {
22
24
  constructor(response: http.IncomingMessage, body: any, statusCode?: number | undefined);
23
25
  }
24
26
  export { RequestFile } from '../model/models';
25
- export declare const APIS: (typeof AccountApiKeysApi | typeof LinkedWalletsApi | typeof ValidatorMarketplaceBuyersApi | typeof ValidatorMarketplaceFacilitatorApi | typeof ValidatorMarketplaceSellersApi | typeof ValidatorMarketplaceWebhooksApi | typeof ValidatorsApi | typeof AccountApi)[];
27
+ export declare const APIS: (typeof AccountApiKeysApi | typeof LinkedWalletsApi | typeof SmartContractsApi | typeof ValidatorMarketplaceBuyersApi | typeof ValidatorMarketplaceFacilitatorApi | typeof ValidatorMarketplaceSellersApi | typeof ValidatorMarketplaceWebhooksApi | typeof ValidatorsApi | typeof AccountApi)[];
package/dist/api/apis.js CHANGED
@@ -21,6 +21,8 @@ __exportStar(require("./accountApiKeysApi"), exports);
21
21
  const accountApiKeysApi_1 = require("./accountApiKeysApi");
22
22
  __exportStar(require("./linkedWalletsApi"), exports);
23
23
  const linkedWalletsApi_1 = require("./linkedWalletsApi");
24
+ __exportStar(require("./smartContractsApi"), exports);
25
+ const smartContractsApi_1 = require("./smartContractsApi");
24
26
  __exportStar(require("./validatorMarketplaceBuyersApi"), exports);
25
27
  const validatorMarketplaceBuyersApi_1 = require("./validatorMarketplaceBuyersApi");
26
28
  __exportStar(require("./validatorMarketplaceFacilitatorApi"), exports);
@@ -41,4 +43,4 @@ class HttpError extends Error {
41
43
  }
42
44
  }
43
45
  exports.HttpError = HttpError;
44
- exports.APIS = [accountApi_1.AccountApi, accountApiKeysApi_1.AccountApiKeysApi, linkedWalletsApi_1.LinkedWalletsApi, validatorMarketplaceBuyersApi_1.ValidatorMarketplaceBuyersApi, validatorMarketplaceFacilitatorApi_1.ValidatorMarketplaceFacilitatorApi, validatorMarketplaceSellersApi_1.ValidatorMarketplaceSellersApi, validatorMarketplaceWebhooksApi_1.ValidatorMarketplaceWebhooksApi, validatorsApi_1.ValidatorsApi];
46
+ exports.APIS = [accountApi_1.AccountApi, accountApiKeysApi_1.AccountApiKeysApi, linkedWalletsApi_1.LinkedWalletsApi, smartContractsApi_1.SmartContractsApi, validatorMarketplaceBuyersApi_1.ValidatorMarketplaceBuyersApi, validatorMarketplaceFacilitatorApi_1.ValidatorMarketplaceFacilitatorApi, validatorMarketplaceSellersApi_1.ValidatorMarketplaceSellersApi, validatorMarketplaceWebhooksApi_1.ValidatorMarketplaceWebhooksApi, validatorsApi_1.ValidatorsApi];
@@ -0,0 +1,100 @@
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 { GetSmartContractMinedBlocks200Response } from '../model/getSmartContractMinedBlocks200Response';
13
+ import { GetSmartContractTransactions200Response } from '../model/getSmartContractTransactions200Response';
14
+ import { SmartContract } from '../model/smartContract';
15
+ import { Authentication, Interceptor } from '../model/models';
16
+ import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
17
+ export declare enum SmartContractsApiApiKeys {
18
+ ApiKeyAuth = 0
19
+ }
20
+ export interface SmartContractsApiParams {
21
+ contractAddress: string;
22
+ page?: number;
23
+ limit?: number;
24
+ startDate?: string;
25
+ endDate?: string;
26
+ }
27
+ export interface SmartContractsApiParams {
28
+ contractAddress: string;
29
+ startDate?: string;
30
+ endDate?: string;
31
+ page?: number;
32
+ limit?: number;
33
+ }
34
+ export declare class SmartContractsApi {
35
+ protected _basePath: string;
36
+ protected _defaultHeaders: any;
37
+ protected _useQuerystring: boolean;
38
+ protected authentications: {
39
+ default: Authentication;
40
+ bearerTokenAuth: HttpBearerAuth;
41
+ ApiKeyAuth: ApiKeyAuth;
42
+ };
43
+ protected interceptors: Interceptor[];
44
+ constructor(basePath?: string);
45
+ set useQuerystring(value: boolean);
46
+ set basePath(basePath: string);
47
+ set defaultHeaders(defaultHeaders: any);
48
+ get defaultHeaders(): any;
49
+ get basePath(): string;
50
+ setDefaultAuthentication(auth: Authentication): void;
51
+ setApiKey(key: SmartContractsApiApiKeys, value: string): void;
52
+ set accessToken(accessToken: string | (() => string));
53
+ addInterceptor(interceptor: Interceptor): void;
54
+ /**
55
+ *
56
+ * @summary Get mined blocks related to a specific smart contract
57
+ * @param contractAddress The address of the smart contract
58
+ * @param page Page number for pagination
59
+ * @param limit Number of mined blocks per page
60
+ * @param startDate Start date for filtering mined blocks
61
+ * @param endDate End date for filtering mined blocks
62
+ */
63
+ getSmartContractMinedBlocks(params?: SmartContractsApiParams, options?: {
64
+ headers: {
65
+ [name: string]: string;
66
+ };
67
+ }): Promise<{
68
+ body: GetSmartContractMinedBlocks200Response;
69
+ status: number;
70
+ }>;
71
+ /**
72
+ *
73
+ * @summary Get transactions related to a specific smart contract
74
+ * @param contractAddress The address of the smart contract
75
+ * @param startDate Start date for filtering transactions
76
+ * @param endDate End date for filtering transactions
77
+ * @param page Page number for pagination
78
+ * @param limit Number of transactions per page
79
+ */
80
+ getSmartContractTransactions(params?: SmartContractsApiParams, options?: {
81
+ headers: {
82
+ [name: string]: string;
83
+ };
84
+ }): Promise<{
85
+ body: GetSmartContractTransactions200Response;
86
+ status: number;
87
+ }>;
88
+ /**
89
+ *
90
+ * @summary Get list of all deployed smart contracts
91
+ */
92
+ getSmartContracts(options?: {
93
+ headers: {
94
+ [name: string]: string;
95
+ };
96
+ }): Promise<{
97
+ body: Array<SmartContract>;
98
+ status: number;
99
+ }>;
100
+ }