@northstake/northstakeapi 1.0.26 → 1.0.28
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 +2 -1
- package/api/smartContractsApi.ts +4 -115
- package/api.ts +2 -1
- package/dist/api/smartContractsApi.d.ts +2 -27
- package/dist/api/smartContractsApi.js +1 -84
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/model/models.d.ts +2 -1
- package/dist/model/models.js +6 -3
- package/dist/model/smartContract.d.ts +1 -1
- package/dist/model/smartContract.js +1 -1
- package/dist/model/smartContractDetailed.d.ts +45 -0
- package/dist/model/smartContractDetailed.js +66 -0
- package/dist/model/{getSmartContractInternalTransactions200Response.d.ts → smartContractDetailedWhitelistedDepositorsInner.d.ts} +4 -15
- package/dist/model/smartContractDetailedWhitelistedDepositorsInner.js +38 -0
- package/dist/model/transaction.d.ts +2 -0
- package/dist/model/transaction.js +5 -0
- package/model/models.ts +10 -5
- package/model/smartContract.ts +1 -1
- package/model/smartContractDetailed.ts +86 -0
- package/model/smartContractDetailedWhitelistedDepositorsInner.ts +43 -0
- package/model/transaction.ts +7 -0
- package/package.json +2 -2
- package/dist/model/getSmartContractInternalTransactions200Response.js +0 -43
- package/model/getSmartContractInternalTransactions200Response.ts +0 -59
package/.openapi-generator/FILES
CHANGED
|
@@ -34,7 +34,6 @@ model/exitEstimateSeller.ts
|
|
|
34
34
|
model/exitProposal.ts
|
|
35
35
|
model/generateApiKeyRequest.ts
|
|
36
36
|
model/getMarketplaceMetadata200Response.ts
|
|
37
|
-
model/getSmartContractInternalTransactions200Response.ts
|
|
38
37
|
model/getSmartContractMinedBlocks200Response.ts
|
|
39
38
|
model/getSmartContractTransactions200Response.ts
|
|
40
39
|
model/getWithdrawalsResponse.ts
|
|
@@ -64,6 +63,8 @@ model/rFQWebhookEventType.ts
|
|
|
64
63
|
model/registerWithdrawalRecipientSettlementRequest.ts
|
|
65
64
|
model/settlementSteps.ts
|
|
66
65
|
model/smartContract.ts
|
|
66
|
+
model/smartContractDetailed.ts
|
|
67
|
+
model/smartContractDetailedWhitelistedDepositorsInner.ts
|
|
67
68
|
model/submittedQuote.ts
|
|
68
69
|
model/transaction.ts
|
|
69
70
|
model/validatorInfo.ts
|
package/api/smartContractsApi.ts
CHANGED
|
@@ -16,10 +16,9 @@ import http from 'http';
|
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
|
-
import { GetSmartContractInternalTransactions200Response } from '../model/getSmartContractInternalTransactions200Response';
|
|
20
19
|
import { GetSmartContractMinedBlocks200Response } from '../model/getSmartContractMinedBlocks200Response';
|
|
21
20
|
import { GetSmartContractTransactions200Response } from '../model/getSmartContractTransactions200Response';
|
|
22
|
-
import {
|
|
21
|
+
import { SmartContractDetailed } from '../model/smartContractDetailed';
|
|
23
22
|
|
|
24
23
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
25
24
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
@@ -37,14 +36,6 @@ export enum SmartContractsApiApiKeys {
|
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
|
|
40
|
-
// If vendorExtensions.x-packageParams is true, use a single object to pass parameters
|
|
41
|
-
export interface SmartContractsApiParams {
|
|
42
|
-
contractAddress: string;
|
|
43
|
-
startDate?: string;
|
|
44
|
-
endDate?: string;
|
|
45
|
-
page?: number;
|
|
46
|
-
limit?: number;
|
|
47
|
-
}
|
|
48
39
|
// If vendorExtensions.x-packageParams is true, use a single object to pass parameters
|
|
49
40
|
export interface SmartContractsApiParams {
|
|
50
41
|
contractAddress: string;
|
|
@@ -124,108 +115,6 @@ export class SmartContractsApi {
|
|
|
124
115
|
this.interceptors.push(interceptor);
|
|
125
116
|
}
|
|
126
117
|
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @summary Get internal transactions related to a specific smart contract
|
|
130
|
-
* @param contractAddress The address of the smart contract
|
|
131
|
-
* @param startDate Start date for filtering internal transactions
|
|
132
|
-
* @param endDate End date for filtering internal transactions
|
|
133
|
-
* @param page Page number for pagination
|
|
134
|
-
* @param limit Number of internal transactions per page
|
|
135
|
-
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
public async getSmartContractInternalTransactions(params?: SmartContractsApiParams, options: { headers: { [name: string]: string } } = { headers: {} }): Promise<{ body: GetSmartContractInternalTransactions200Response, status: number }> {
|
|
142
|
-
|
|
143
|
-
const localVarPath = this.basePath + '/smartContracts/{contractAddress}/internalTransactions'
|
|
144
|
-
.replace('{' + 'contractAddress' + '}', encodeURIComponent(String(params?.contractAddress)));
|
|
145
|
-
|
|
146
|
-
let localVarQueryParameters: any = {};
|
|
147
|
-
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
148
|
-
const produces = ['application/json'];
|
|
149
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
150
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
151
|
-
} else {
|
|
152
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
153
|
-
}
|
|
154
|
-
let localVarFormParams: any = {};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
// Verify required parameter 'contractAddress' is not null or undefined
|
|
158
|
-
if (params?.contractAddress === null || params?.contractAddress === undefined) {
|
|
159
|
-
throw new Error('Required parameter "contractAddress" was null or undefined when calling getSmartContractInternalTransactions.');
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
if (params?.startDate !== undefined) {
|
|
165
|
-
localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "string");
|
|
166
|
-
}
|
|
167
|
-
if (params?.endDate !== undefined) {
|
|
168
|
-
localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "string");
|
|
169
|
-
}
|
|
170
|
-
if (params?.page !== undefined) {
|
|
171
|
-
localVarQueryParameters['page'] = ObjectSerializer.serialize(params?.page, "number");
|
|
172
|
-
}
|
|
173
|
-
if (params?.limit !== undefined) {
|
|
174
|
-
localVarQueryParameters['limit'] = ObjectSerializer.serialize(params?.limit, "number");
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
181
|
-
|
|
182
|
-
let localVarUseFormData = false;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
let localVarRequestOptions: localVarRequest.Options = {
|
|
187
|
-
method: 'GET',
|
|
188
|
-
qs: localVarQueryParameters,
|
|
189
|
-
headers: localVarHeaderParams,
|
|
190
|
-
uri: localVarPath,
|
|
191
|
-
useQuerystring: this._useQuerystring,
|
|
192
|
-
json: true,
|
|
193
|
-
};
|
|
194
|
-
|
|
195
|
-
let authenticationPromise = Promise.resolve();
|
|
196
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
197
|
-
|
|
198
|
-
let interceptorPromise = authenticationPromise;
|
|
199
|
-
for (const interceptor of this.interceptors) {
|
|
200
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
return interceptorPromise.then(() => {
|
|
204
|
-
if (Object.keys(localVarFormParams).length) {
|
|
205
|
-
if (localVarUseFormData) {
|
|
206
|
-
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
207
|
-
} else {
|
|
208
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
return new Promise<{ body: GetSmartContractInternalTransactions200Response, status: number }>((resolve, reject) => {
|
|
212
|
-
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
213
|
-
if (error) {
|
|
214
|
-
console.error('API call error:', error);
|
|
215
|
-
reject(error);
|
|
216
|
-
} else {
|
|
217
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
218
|
-
body = ObjectSerializer.deserialize(body, "GetSmartContractInternalTransactions200Response");
|
|
219
|
-
resolve({ body: body, status: response.statusCode });
|
|
220
|
-
} else {
|
|
221
|
-
console.error('API response error:', response.statusCode);
|
|
222
|
-
resolve({ body: body, status: response.statusCode });
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
});
|
|
227
|
-
} )
|
|
228
|
-
}
|
|
229
118
|
/**
|
|
230
119
|
*
|
|
231
120
|
* @summary Get mined blocks related to a specific smart contract
|
|
@@ -439,7 +328,7 @@ export class SmartContractsApi {
|
|
|
439
328
|
|
|
440
329
|
|
|
441
330
|
|
|
442
|
-
public async getSmartContracts (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<
|
|
331
|
+
public async getSmartContracts (options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<SmartContractDetailed>, status: number }> {
|
|
443
332
|
|
|
444
333
|
const localVarPath = this.basePath + '/smartContracts';
|
|
445
334
|
|
|
@@ -492,14 +381,14 @@ export class SmartContractsApi {
|
|
|
492
381
|
localVarRequestOptions.form = localVarFormParams;
|
|
493
382
|
}
|
|
494
383
|
}
|
|
495
|
-
return new Promise<{ body: Array<
|
|
384
|
+
return new Promise<{ body: Array<SmartContractDetailed>, status: number }>((resolve, reject) => {
|
|
496
385
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
497
386
|
if (error) {
|
|
498
387
|
console.error('API call error:', error);
|
|
499
388
|
reject(error);
|
|
500
389
|
} else {
|
|
501
390
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
502
|
-
body = ObjectSerializer.deserialize(body, "Array<
|
|
391
|
+
body = ObjectSerializer.deserialize(body, "Array<SmartContractDetailed>");
|
|
503
392
|
resolve({ body: body, status: response.statusCode });
|
|
504
393
|
} else {
|
|
505
394
|
console.error('API response error:', response.statusCode);
|
package/api.ts
CHANGED
|
@@ -31,7 +31,6 @@ export * from './model/./exitEstimateSeller';
|
|
|
31
31
|
export * from './model/./exitProposal';
|
|
32
32
|
export * from './model/./generateApiKeyRequest';
|
|
33
33
|
export * from './model/./getMarketplaceMetadata200Response';
|
|
34
|
-
export * from './model/./getSmartContractInternalTransactions200Response';
|
|
35
34
|
export * from './model/./getSmartContractMinedBlocks200Response';
|
|
36
35
|
export * from './model/./getSmartContractTransactions200Response';
|
|
37
36
|
export * from './model/./getWithdrawalsResponse';
|
|
@@ -60,6 +59,8 @@ export * from './model/./rFQWebhookEventType';
|
|
|
60
59
|
export * from './model/./registerWithdrawalRecipientSettlementRequest';
|
|
61
60
|
export * from './model/./settlementSteps';
|
|
62
61
|
export * from './model/./smartContract';
|
|
62
|
+
export * from './model/./smartContractDetailed';
|
|
63
|
+
export * from './model/./smartContractDetailedWhitelistedDepositorsInner';
|
|
63
64
|
export * from './model/./submittedQuote';
|
|
64
65
|
export * from './model/./transaction';
|
|
65
66
|
export * from './model/./validatorInfo';
|
|
@@ -9,22 +9,14 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { GetSmartContractInternalTransactions200Response } from '../model/getSmartContractInternalTransactions200Response';
|
|
13
12
|
import { GetSmartContractMinedBlocks200Response } from '../model/getSmartContractMinedBlocks200Response';
|
|
14
13
|
import { GetSmartContractTransactions200Response } from '../model/getSmartContractTransactions200Response';
|
|
15
|
-
import {
|
|
14
|
+
import { SmartContractDetailed } from '../model/smartContractDetailed';
|
|
16
15
|
import { Authentication, Interceptor } from '../model/models';
|
|
17
16
|
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
18
17
|
export declare enum SmartContractsApiApiKeys {
|
|
19
18
|
ApiKeyAuth = 0
|
|
20
19
|
}
|
|
21
|
-
export interface SmartContractsApiParams {
|
|
22
|
-
contractAddress: string;
|
|
23
|
-
startDate?: string;
|
|
24
|
-
endDate?: string;
|
|
25
|
-
page?: number;
|
|
26
|
-
limit?: number;
|
|
27
|
-
}
|
|
28
20
|
export interface SmartContractsApiParams {
|
|
29
21
|
contractAddress: string;
|
|
30
22
|
page?: number;
|
|
@@ -59,23 +51,6 @@ export declare class SmartContractsApi {
|
|
|
59
51
|
setApiKey(key: SmartContractsApiApiKeys, value: string): void;
|
|
60
52
|
set accessToken(accessToken: string | (() => string));
|
|
61
53
|
addInterceptor(interceptor: Interceptor): void;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @summary Get internal transactions related to a specific smart contract
|
|
65
|
-
* @param contractAddress The address of the smart contract
|
|
66
|
-
* @param startDate Start date for filtering internal transactions
|
|
67
|
-
* @param endDate End date for filtering internal transactions
|
|
68
|
-
* @param page Page number for pagination
|
|
69
|
-
* @param limit Number of internal transactions per page
|
|
70
|
-
*/
|
|
71
|
-
getSmartContractInternalTransactions(params?: SmartContractsApiParams, options?: {
|
|
72
|
-
headers: {
|
|
73
|
-
[name: string]: string;
|
|
74
|
-
};
|
|
75
|
-
}): Promise<{
|
|
76
|
-
body: GetSmartContractInternalTransactions200Response;
|
|
77
|
-
status: number;
|
|
78
|
-
}>;
|
|
79
54
|
/**
|
|
80
55
|
*
|
|
81
56
|
* @summary Get mined blocks related to a specific smart contract
|
|
@@ -119,7 +94,7 @@ export declare class SmartContractsApi {
|
|
|
119
94
|
[name: string]: string;
|
|
120
95
|
};
|
|
121
96
|
}): Promise<{
|
|
122
|
-
body: Array<
|
|
97
|
+
body: Array<SmartContractDetailed>;
|
|
123
98
|
status: number;
|
|
124
99
|
}>;
|
|
125
100
|
}
|
|
@@ -75,89 +75,6 @@ class SmartContractsApi {
|
|
|
75
75
|
addInterceptor(interceptor) {
|
|
76
76
|
this.interceptors.push(interceptor);
|
|
77
77
|
}
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @summary Get internal transactions related to a specific smart contract
|
|
81
|
-
* @param contractAddress The address of the smart contract
|
|
82
|
-
* @param startDate Start date for filtering internal transactions
|
|
83
|
-
* @param endDate End date for filtering internal transactions
|
|
84
|
-
* @param page Page number for pagination
|
|
85
|
-
* @param limit Number of internal transactions per page
|
|
86
|
-
*/
|
|
87
|
-
async getSmartContractInternalTransactions(params, options = { headers: {} }) {
|
|
88
|
-
const localVarPath = this.basePath + '/smartContracts/{contractAddress}/internalTransactions'
|
|
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 getSmartContractInternalTransactions.');
|
|
103
|
-
}
|
|
104
|
-
if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
|
|
105
|
-
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "string");
|
|
106
|
-
}
|
|
107
|
-
if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
|
|
108
|
-
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "string");
|
|
109
|
-
}
|
|
110
|
-
if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
|
|
111
|
-
localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
|
|
112
|
-
}
|
|
113
|
-
if ((params === null || params === void 0 ? void 0 : params.limit) !== undefined) {
|
|
114
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.limit, "number");
|
|
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, "GetSmartContractInternalTransactions200Response");
|
|
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
78
|
/**
|
|
162
79
|
*
|
|
163
80
|
* @summary Get mined blocks related to a specific smart contract
|
|
@@ -373,7 +290,7 @@ class SmartContractsApi {
|
|
|
373
290
|
}
|
|
374
291
|
else {
|
|
375
292
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
376
|
-
body = models_1.ObjectSerializer.deserialize(body, "Array<
|
|
293
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<SmartContractDetailed>");
|
|
377
294
|
resolve({ body: body, status: response.statusCode });
|
|
378
295
|
}
|
|
379
296
|
else {
|
package/dist/api.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export * from './model/./exitEstimateSeller';
|
|
|
29
29
|
export * from './model/./exitProposal';
|
|
30
30
|
export * from './model/./generateApiKeyRequest';
|
|
31
31
|
export * from './model/./getMarketplaceMetadata200Response';
|
|
32
|
-
export * from './model/./getSmartContractInternalTransactions200Response';
|
|
33
32
|
export * from './model/./getSmartContractMinedBlocks200Response';
|
|
34
33
|
export * from './model/./getSmartContractTransactions200Response';
|
|
35
34
|
export * from './model/./getWithdrawalsResponse';
|
|
@@ -58,6 +57,8 @@ export * from './model/./rFQWebhookEventType';
|
|
|
58
57
|
export * from './model/./registerWithdrawalRecipientSettlementRequest';
|
|
59
58
|
export * from './model/./settlementSteps';
|
|
60
59
|
export * from './model/./smartContract';
|
|
60
|
+
export * from './model/./smartContractDetailed';
|
|
61
|
+
export * from './model/./smartContractDetailedWhitelistedDepositorsInner';
|
|
61
62
|
export * from './model/./submittedQuote';
|
|
62
63
|
export * from './model/./transaction';
|
|
63
64
|
export * from './model/./validatorInfo';
|
package/dist/api.js
CHANGED
|
@@ -48,7 +48,6 @@ __exportStar(require("./model/./exitEstimateSeller"), exports);
|
|
|
48
48
|
__exportStar(require("./model/./exitProposal"), exports);
|
|
49
49
|
__exportStar(require("./model/./generateApiKeyRequest"), exports);
|
|
50
50
|
__exportStar(require("./model/./getMarketplaceMetadata200Response"), exports);
|
|
51
|
-
__exportStar(require("./model/./getSmartContractInternalTransactions200Response"), exports);
|
|
52
51
|
__exportStar(require("./model/./getSmartContractMinedBlocks200Response"), exports);
|
|
53
52
|
__exportStar(require("./model/./getSmartContractTransactions200Response"), exports);
|
|
54
53
|
__exportStar(require("./model/./getWithdrawalsResponse"), exports);
|
|
@@ -77,6 +76,8 @@ __exportStar(require("./model/./rFQWebhookEventType"), exports);
|
|
|
77
76
|
__exportStar(require("./model/./registerWithdrawalRecipientSettlementRequest"), exports);
|
|
78
77
|
__exportStar(require("./model/./settlementSteps"), exports);
|
|
79
78
|
__exportStar(require("./model/./smartContract"), exports);
|
|
79
|
+
__exportStar(require("./model/./smartContractDetailed"), exports);
|
|
80
|
+
__exportStar(require("./model/./smartContractDetailedWhitelistedDepositorsInner"), exports);
|
|
80
81
|
__exportStar(require("./model/./submittedQuote"), exports);
|
|
81
82
|
__exportStar(require("./model/./transaction"), exports);
|
|
82
83
|
__exportStar(require("./model/./validatorInfo"), exports);
|
package/dist/model/models.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export * from './exitEstimateSeller';
|
|
|
21
21
|
export * from './exitProposal';
|
|
22
22
|
export * from './generateApiKeyRequest';
|
|
23
23
|
export * from './getMarketplaceMetadata200Response';
|
|
24
|
-
export * from './getSmartContractInternalTransactions200Response';
|
|
25
24
|
export * from './getSmartContractMinedBlocks200Response';
|
|
26
25
|
export * from './getSmartContractTransactions200Response';
|
|
27
26
|
export * from './getWithdrawalsResponse';
|
|
@@ -50,6 +49,8 @@ export * from './rFQWebhookEventType';
|
|
|
50
49
|
export * from './registerWithdrawalRecipientSettlementRequest';
|
|
51
50
|
export * from './settlementSteps';
|
|
52
51
|
export * from './smartContract';
|
|
52
|
+
export * from './smartContractDetailed';
|
|
53
|
+
export * from './smartContractDetailedWhitelistedDepositorsInner';
|
|
53
54
|
export * from './submittedQuote';
|
|
54
55
|
export * from './transaction';
|
|
55
56
|
export * from './validatorInfo';
|
package/dist/model/models.js
CHANGED
|
@@ -50,7 +50,6 @@ __exportStar(require("./exitEstimateSeller"), exports);
|
|
|
50
50
|
__exportStar(require("./exitProposal"), exports);
|
|
51
51
|
__exportStar(require("./generateApiKeyRequest"), exports);
|
|
52
52
|
__exportStar(require("./getMarketplaceMetadata200Response"), exports);
|
|
53
|
-
__exportStar(require("./getSmartContractInternalTransactions200Response"), exports);
|
|
54
53
|
__exportStar(require("./getSmartContractMinedBlocks200Response"), exports);
|
|
55
54
|
__exportStar(require("./getSmartContractTransactions200Response"), exports);
|
|
56
55
|
__exportStar(require("./getWithdrawalsResponse"), exports);
|
|
@@ -79,6 +78,8 @@ __exportStar(require("./rFQWebhookEventType"), exports);
|
|
|
79
78
|
__exportStar(require("./registerWithdrawalRecipientSettlementRequest"), exports);
|
|
80
79
|
__exportStar(require("./settlementSteps"), exports);
|
|
81
80
|
__exportStar(require("./smartContract"), exports);
|
|
81
|
+
__exportStar(require("./smartContractDetailed"), exports);
|
|
82
|
+
__exportStar(require("./smartContractDetailedWhitelistedDepositorsInner"), exports);
|
|
82
83
|
__exportStar(require("./submittedQuote"), exports);
|
|
83
84
|
__exportStar(require("./transaction"), exports);
|
|
84
85
|
__exportStar(require("./validatorInfo"), exports);
|
|
@@ -130,7 +131,6 @@ const exitEstimateSeller_1 = require("./exitEstimateSeller");
|
|
|
130
131
|
const exitProposal_1 = require("./exitProposal");
|
|
131
132
|
const generateApiKeyRequest_1 = require("./generateApiKeyRequest");
|
|
132
133
|
const getMarketplaceMetadata200Response_1 = require("./getMarketplaceMetadata200Response");
|
|
133
|
-
const getSmartContractInternalTransactions200Response_1 = require("./getSmartContractInternalTransactions200Response");
|
|
134
134
|
const getSmartContractMinedBlocks200Response_1 = require("./getSmartContractMinedBlocks200Response");
|
|
135
135
|
const getSmartContractTransactions200Response_1 = require("./getSmartContractTransactions200Response");
|
|
136
136
|
const getWithdrawalsResponse_1 = require("./getWithdrawalsResponse");
|
|
@@ -154,6 +154,8 @@ const rFQUpdatePayload_1 = require("./rFQUpdatePayload");
|
|
|
154
154
|
const registerWithdrawalRecipientSettlementRequest_1 = require("./registerWithdrawalRecipientSettlementRequest");
|
|
155
155
|
const settlementSteps_1 = require("./settlementSteps");
|
|
156
156
|
const smartContract_1 = require("./smartContract");
|
|
157
|
+
const smartContractDetailed_1 = require("./smartContractDetailed");
|
|
158
|
+
const smartContractDetailedWhitelistedDepositorsInner_1 = require("./smartContractDetailedWhitelistedDepositorsInner");
|
|
157
159
|
const submittedQuote_1 = require("./submittedQuote");
|
|
158
160
|
const transaction_1 = require("./transaction");
|
|
159
161
|
const validatorInfo_1 = require("./validatorInfo");
|
|
@@ -223,7 +225,6 @@ let typeMap = {
|
|
|
223
225
|
"ExitProposal": exitProposal_1.ExitProposal,
|
|
224
226
|
"GenerateApiKeyRequest": generateApiKeyRequest_1.GenerateApiKeyRequest,
|
|
225
227
|
"GetMarketplaceMetadata200Response": getMarketplaceMetadata200Response_1.GetMarketplaceMetadata200Response,
|
|
226
|
-
"GetSmartContractInternalTransactions200Response": getSmartContractInternalTransactions200Response_1.GetSmartContractInternalTransactions200Response,
|
|
227
228
|
"GetSmartContractMinedBlocks200Response": getSmartContractMinedBlocks200Response_1.GetSmartContractMinedBlocks200Response,
|
|
228
229
|
"GetSmartContractTransactions200Response": getSmartContractTransactions200Response_1.GetSmartContractTransactions200Response,
|
|
229
230
|
"GetWithdrawalsResponse": getWithdrawalsResponse_1.GetWithdrawalsResponse,
|
|
@@ -247,6 +248,8 @@ let typeMap = {
|
|
|
247
248
|
"RegisterWithdrawalRecipientSettlementRequest": registerWithdrawalRecipientSettlementRequest_1.RegisterWithdrawalRecipientSettlementRequest,
|
|
248
249
|
"SettlementSteps": settlementSteps_1.SettlementSteps,
|
|
249
250
|
"SmartContract": smartContract_1.SmartContract,
|
|
251
|
+
"SmartContractDetailed": smartContractDetailed_1.SmartContractDetailed,
|
|
252
|
+
"SmartContractDetailedWhitelistedDepositorsInner": smartContractDetailedWhitelistedDepositorsInner_1.SmartContractDetailedWhitelistedDepositorsInner,
|
|
250
253
|
"SubmittedQuote": submittedQuote_1.SubmittedQuote,
|
|
251
254
|
"Transaction": transaction_1.Transaction,
|
|
252
255
|
"ValidatorInfo": validatorInfo_1.ValidatorInfo,
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.SmartContract = void 0;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* General info about a smart contract
|
|
17
17
|
*/
|
|
18
18
|
class SmartContract {
|
|
19
19
|
static getAttributeTypeMap() {
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { Asset } from './asset';
|
|
13
|
+
import { SmartContractDetailedWhitelistedDepositorsInner } from './smartContractDetailedWhitelistedDepositorsInner';
|
|
14
|
+
/**
|
|
15
|
+
* Details about a smart contract including name, asset, address and type, whitelistedDepositors and validator providers.
|
|
16
|
+
*/
|
|
17
|
+
export declare class SmartContractDetailed {
|
|
18
|
+
'name': string;
|
|
19
|
+
'asset': Asset;
|
|
20
|
+
'address': string;
|
|
21
|
+
'type'?: string;
|
|
22
|
+
'deployedAt': Date;
|
|
23
|
+
'deployedBy'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* List of validator providers for this smart contract
|
|
26
|
+
*/
|
|
27
|
+
'validatorProviders': Array<string>;
|
|
28
|
+
/**
|
|
29
|
+
* List of whitelisted depositors with their details
|
|
30
|
+
*/
|
|
31
|
+
'whitelistedDepositors': Array<SmartContractDetailedWhitelistedDepositorsInner>;
|
|
32
|
+
static discriminator: string | undefined;
|
|
33
|
+
static attributeTypeMap: Array<{
|
|
34
|
+
name: string;
|
|
35
|
+
baseName: string;
|
|
36
|
+
type: string;
|
|
37
|
+
}>;
|
|
38
|
+
static getAttributeTypeMap(): {
|
|
39
|
+
name: string;
|
|
40
|
+
baseName: string;
|
|
41
|
+
type: string;
|
|
42
|
+
}[];
|
|
43
|
+
}
|
|
44
|
+
export declare namespace SmartContractDetailed {
|
|
45
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
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.SmartContractDetailed = void 0;
|
|
15
|
+
/**
|
|
16
|
+
* Details about a smart contract including name, asset, address and type, whitelistedDepositors and validator providers.
|
|
17
|
+
*/
|
|
18
|
+
class SmartContractDetailed {
|
|
19
|
+
static getAttributeTypeMap() {
|
|
20
|
+
return SmartContractDetailed.attributeTypeMap;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
exports.SmartContractDetailed = SmartContractDetailed;
|
|
24
|
+
SmartContractDetailed.discriminator = undefined;
|
|
25
|
+
SmartContractDetailed.attributeTypeMap = [
|
|
26
|
+
{
|
|
27
|
+
"name": "name",
|
|
28
|
+
"baseName": "name",
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "asset",
|
|
33
|
+
"baseName": "asset",
|
|
34
|
+
"type": "Asset"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "address",
|
|
38
|
+
"baseName": "address",
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "type",
|
|
43
|
+
"baseName": "type",
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"name": "deployedAt",
|
|
48
|
+
"baseName": "deployedAt",
|
|
49
|
+
"type": "Date"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"name": "deployedBy",
|
|
53
|
+
"baseName": "deployedBy",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "validatorProviders",
|
|
58
|
+
"baseName": "validatorProviders",
|
|
59
|
+
"type": "Array<string>"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"name": "whitelistedDepositors",
|
|
63
|
+
"baseName": "whitelistedDepositors",
|
|
64
|
+
"type": "Array<SmartContractDetailedWhitelistedDepositorsInner>"
|
|
65
|
+
}
|
|
66
|
+
];
|
|
@@ -9,21 +9,10 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
'
|
|
15
|
-
|
|
16
|
-
* Total number of internal transactions
|
|
17
|
-
*/
|
|
18
|
-
'total': number;
|
|
19
|
-
/**
|
|
20
|
-
* Total number of pages
|
|
21
|
-
*/
|
|
22
|
-
'pages': number;
|
|
23
|
-
/**
|
|
24
|
-
* Current page number
|
|
25
|
-
*/
|
|
26
|
-
'currentPage': number;
|
|
12
|
+
export declare class SmartContractDetailedWhitelistedDepositorsInner {
|
|
13
|
+
'address': string;
|
|
14
|
+
'transactionHash': string;
|
|
15
|
+
'timeStamp': Date;
|
|
27
16
|
static discriminator: string | undefined;
|
|
28
17
|
static attributeTypeMap: Array<{
|
|
29
18
|
name: string;
|
|
@@ -0,0 +1,38 @@
|
|
|
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.SmartContractDetailedWhitelistedDepositorsInner = void 0;
|
|
15
|
+
class SmartContractDetailedWhitelistedDepositorsInner {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return SmartContractDetailedWhitelistedDepositorsInner.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.SmartContractDetailedWhitelistedDepositorsInner = SmartContractDetailedWhitelistedDepositorsInner;
|
|
21
|
+
SmartContractDetailedWhitelistedDepositorsInner.discriminator = undefined;
|
|
22
|
+
SmartContractDetailedWhitelistedDepositorsInner.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "address",
|
|
25
|
+
"baseName": "address",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "transactionHash",
|
|
30
|
+
"baseName": "transactionHash",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "timeStamp",
|
|
35
|
+
"baseName": "timeStamp",
|
|
36
|
+
"type": "Date"
|
|
37
|
+
}
|
|
38
|
+
];
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { InternalTransaction } from './internalTransaction';
|
|
12
13
|
export declare class Transaction {
|
|
13
14
|
'blockNumber': number;
|
|
14
15
|
'timeStamp': Date;
|
|
@@ -58,6 +59,7 @@ export declare class Transaction {
|
|
|
58
59
|
* Decoded arguments passed to the function called in the transaction including argument names, types, and values
|
|
59
60
|
*/
|
|
60
61
|
'functionArgsDecoded'?: object;
|
|
62
|
+
'internalTransactions': Array<InternalTransaction>;
|
|
61
63
|
static discriminator: string | undefined;
|
|
62
64
|
static attributeTypeMap: Array<{
|
|
63
65
|
name: string;
|
|
@@ -109,5 +109,10 @@ Transaction.attributeTypeMap = [
|
|
|
109
109
|
"name": "functionArgsDecoded",
|
|
110
110
|
"baseName": "functionArgsDecoded",
|
|
111
111
|
"type": "object"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "internalTransactions",
|
|
115
|
+
"baseName": "internalTransactions",
|
|
116
|
+
"type": "Array<InternalTransaction>"
|
|
112
117
|
}
|
|
113
118
|
];
|
package/model/models.ts
CHANGED
|
@@ -24,7 +24,6 @@ export * from './exitEstimateSeller';
|
|
|
24
24
|
export * from './exitProposal';
|
|
25
25
|
export * from './generateApiKeyRequest';
|
|
26
26
|
export * from './getMarketplaceMetadata200Response';
|
|
27
|
-
export * from './getSmartContractInternalTransactions200Response';
|
|
28
27
|
export * from './getSmartContractMinedBlocks200Response';
|
|
29
28
|
export * from './getSmartContractTransactions200Response';
|
|
30
29
|
export * from './getWithdrawalsResponse';
|
|
@@ -53,6 +52,8 @@ export * from './rFQWebhookEventType';
|
|
|
53
52
|
export * from './registerWithdrawalRecipientSettlementRequest';
|
|
54
53
|
export * from './settlementSteps';
|
|
55
54
|
export * from './smartContract';
|
|
55
|
+
export * from './smartContractDetailed';
|
|
56
|
+
export * from './smartContractDetailedWhitelistedDepositorsInner';
|
|
56
57
|
export * from './submittedQuote';
|
|
57
58
|
export * from './transaction';
|
|
58
59
|
export * from './validatorInfo';
|
|
@@ -163,9 +164,6 @@ import { GenerateApiKeyRequest } from './generateApiKeyRequest';
|
|
|
163
164
|
import { GetMarketplaceMetadata200Response } from './getMarketplaceMetadata200Response';
|
|
164
165
|
|
|
165
166
|
|
|
166
|
-
import { GetSmartContractInternalTransactions200Response } from './getSmartContractInternalTransactions200Response';
|
|
167
|
-
|
|
168
|
-
|
|
169
167
|
import { GetSmartContractMinedBlocks200Response } from './getSmartContractMinedBlocks200Response';
|
|
170
168
|
|
|
171
169
|
|
|
@@ -250,6 +248,12 @@ import { SettlementSteps } from './settlementSteps';
|
|
|
250
248
|
import { SmartContract } from './smartContract';
|
|
251
249
|
|
|
252
250
|
|
|
251
|
+
import { SmartContractDetailed } from './smartContractDetailed';
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
import { SmartContractDetailedWhitelistedDepositorsInner } from './smartContractDetailedWhitelistedDepositorsInner';
|
|
255
|
+
|
|
256
|
+
|
|
253
257
|
import { SubmittedQuote } from './submittedQuote';
|
|
254
258
|
|
|
255
259
|
|
|
@@ -382,7 +386,6 @@ let typeMap: {[index: string]: any} = {
|
|
|
382
386
|
"ExitProposal": ExitProposal,
|
|
383
387
|
"GenerateApiKeyRequest": GenerateApiKeyRequest,
|
|
384
388
|
"GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
|
|
385
|
-
"GetSmartContractInternalTransactions200Response": GetSmartContractInternalTransactions200Response,
|
|
386
389
|
"GetSmartContractMinedBlocks200Response": GetSmartContractMinedBlocks200Response,
|
|
387
390
|
"GetSmartContractTransactions200Response": GetSmartContractTransactions200Response,
|
|
388
391
|
"GetWithdrawalsResponse": GetWithdrawalsResponse,
|
|
@@ -406,6 +409,8 @@ let typeMap: {[index: string]: any} = {
|
|
|
406
409
|
"RegisterWithdrawalRecipientSettlementRequest": RegisterWithdrawalRecipientSettlementRequest,
|
|
407
410
|
"SettlementSteps": SettlementSteps,
|
|
408
411
|
"SmartContract": SmartContract,
|
|
412
|
+
"SmartContractDetailed": SmartContractDetailed,
|
|
413
|
+
"SmartContractDetailedWhitelistedDepositorsInner": SmartContractDetailedWhitelistedDepositorsInner,
|
|
409
414
|
"SubmittedQuote": SubmittedQuote,
|
|
410
415
|
"Transaction": Transaction,
|
|
411
416
|
"ValidatorInfo": ValidatorInfo,
|
package/model/smartContract.ts
CHANGED
|
@@ -0,0 +1,86 @@
|
|
|
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
|
+
import { Asset } from './asset';
|
|
14
|
+
import { SmartContractDetailedWhitelistedDepositorsInner } from './smartContractDetailedWhitelistedDepositorsInner';
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Details about a smart contract including name, asset, address and type, whitelistedDepositors and validator providers.
|
|
18
|
+
*/
|
|
19
|
+
export class SmartContractDetailed {
|
|
20
|
+
'name': string;
|
|
21
|
+
'asset': Asset;
|
|
22
|
+
'address': string;
|
|
23
|
+
'type'?: string;
|
|
24
|
+
'deployedAt': Date;
|
|
25
|
+
'deployedBy'?: string;
|
|
26
|
+
/**
|
|
27
|
+
* List of validator providers for this smart contract
|
|
28
|
+
*/
|
|
29
|
+
'validatorProviders': Array<string>;
|
|
30
|
+
/**
|
|
31
|
+
* List of whitelisted depositors with their details
|
|
32
|
+
*/
|
|
33
|
+
'whitelistedDepositors': Array<SmartContractDetailedWhitelistedDepositorsInner>;
|
|
34
|
+
|
|
35
|
+
static discriminator: string | undefined = undefined;
|
|
36
|
+
|
|
37
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
38
|
+
{
|
|
39
|
+
"name": "name",
|
|
40
|
+
"baseName": "name",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "asset",
|
|
45
|
+
"baseName": "asset",
|
|
46
|
+
"type": "Asset"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "address",
|
|
50
|
+
"baseName": "address",
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "type",
|
|
55
|
+
"baseName": "type",
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "deployedAt",
|
|
60
|
+
"baseName": "deployedAt",
|
|
61
|
+
"type": "Date"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "deployedBy",
|
|
65
|
+
"baseName": "deployedBy",
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "validatorProviders",
|
|
70
|
+
"baseName": "validatorProviders",
|
|
71
|
+
"type": "Array<string>"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "whitelistedDepositors",
|
|
75
|
+
"baseName": "whitelistedDepositors",
|
|
76
|
+
"type": "Array<SmartContractDetailedWhitelistedDepositorsInner>"
|
|
77
|
+
} ];
|
|
78
|
+
|
|
79
|
+
static getAttributeTypeMap() {
|
|
80
|
+
return SmartContractDetailed.attributeTypeMap;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export namespace SmartContractDetailed {
|
|
85
|
+
}
|
|
86
|
+
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
export class SmartContractDetailedWhitelistedDepositorsInner {
|
|
15
|
+
'address': string;
|
|
16
|
+
'transactionHash': string;
|
|
17
|
+
'timeStamp': Date;
|
|
18
|
+
|
|
19
|
+
static discriminator: string | undefined = undefined;
|
|
20
|
+
|
|
21
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
22
|
+
{
|
|
23
|
+
"name": "address",
|
|
24
|
+
"baseName": "address",
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "transactionHash",
|
|
29
|
+
"baseName": "transactionHash",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"name": "timeStamp",
|
|
34
|
+
"baseName": "timeStamp",
|
|
35
|
+
"type": "Date"
|
|
36
|
+
} ];
|
|
37
|
+
|
|
38
|
+
static getAttributeTypeMap() {
|
|
39
|
+
return SmartContractDetailedWhitelistedDepositorsInner.attributeTypeMap;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
package/model/transaction.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { InternalTransaction } from './internalTransaction';
|
|
13
14
|
|
|
14
15
|
export class Transaction {
|
|
15
16
|
'blockNumber': number;
|
|
@@ -60,6 +61,7 @@ export class Transaction {
|
|
|
60
61
|
* Decoded arguments passed to the function called in the transaction including argument names, types, and values
|
|
61
62
|
*/
|
|
62
63
|
'functionArgsDecoded'?: object;
|
|
64
|
+
'internalTransactions': Array<InternalTransaction>;
|
|
63
65
|
|
|
64
66
|
static discriminator: string | undefined = undefined;
|
|
65
67
|
|
|
@@ -153,6 +155,11 @@ export class Transaction {
|
|
|
153
155
|
"name": "functionArgsDecoded",
|
|
154
156
|
"baseName": "functionArgsDecoded",
|
|
155
157
|
"type": "object"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "internalTransactions",
|
|
161
|
+
"baseName": "internalTransactions",
|
|
162
|
+
"type": "Array<InternalTransaction>"
|
|
156
163
|
} ];
|
|
157
164
|
|
|
158
165
|
static getAttributeTypeMap() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northstake/northstakeapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.28",
|
|
4
4
|
"description": "Northstake SDK",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "Northstake build process <buildadmin@northstake.dk>",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/node": "^22.9.
|
|
24
|
+
"@types/node": "^22.9.1",
|
|
25
25
|
"typescript": "^5.6.3"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,43 +0,0 @@
|
|
|
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.GetSmartContractInternalTransactions200Response = void 0;
|
|
15
|
-
class GetSmartContractInternalTransactions200Response {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return GetSmartContractInternalTransactions200Response.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.GetSmartContractInternalTransactions200Response = GetSmartContractInternalTransactions200Response;
|
|
21
|
-
GetSmartContractInternalTransactions200Response.discriminator = undefined;
|
|
22
|
-
GetSmartContractInternalTransactions200Response.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "transactions",
|
|
25
|
-
"baseName": "transactions",
|
|
26
|
-
"type": "Array<InternalTransaction>"
|
|
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
|
-
];
|
|
@@ -1,59 +0,0 @@
|
|
|
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
|
-
import { InternalTransaction } from './internalTransaction';
|
|
14
|
-
|
|
15
|
-
export class GetSmartContractInternalTransactions200Response {
|
|
16
|
-
'transactions': Array<InternalTransaction>;
|
|
17
|
-
/**
|
|
18
|
-
* Total number of internal transactions
|
|
19
|
-
*/
|
|
20
|
-
'total': number;
|
|
21
|
-
/**
|
|
22
|
-
* Total number of pages
|
|
23
|
-
*/
|
|
24
|
-
'pages': number;
|
|
25
|
-
/**
|
|
26
|
-
* Current page number
|
|
27
|
-
*/
|
|
28
|
-
'currentPage': number;
|
|
29
|
-
|
|
30
|
-
static discriminator: string | undefined = undefined;
|
|
31
|
-
|
|
32
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
33
|
-
{
|
|
34
|
-
"name": "transactions",
|
|
35
|
-
"baseName": "transactions",
|
|
36
|
-
"type": "Array<InternalTransaction>"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "total",
|
|
40
|
-
"baseName": "total",
|
|
41
|
-
"type": "number"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "pages",
|
|
45
|
-
"baseName": "pages",
|
|
46
|
-
"type": "number"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "currentPage",
|
|
50
|
-
"baseName": "currentPage",
|
|
51
|
-
"type": "number"
|
|
52
|
-
} ];
|
|
53
|
-
|
|
54
|
-
static getAttributeTypeMap() {
|
|
55
|
-
return GetSmartContractInternalTransactions200Response.attributeTypeMap;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|