@northstake/northstakeapi 1.0.28 → 1.0.30
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 +3 -0
- package/api/validatorsApi.ts +91 -0
- package/api.ts +3 -0
- package/dist/api/validatorsApi.d.ts +15 -0
- package/dist/api/validatorsApi.js +71 -0
- package/dist/api.d.ts +3 -0
- package/dist/api.js +3 -0
- package/dist/model/models.d.ts +3 -0
- package/dist/model/models.js +26 -7
- package/dist/model/presignedExitKey.d.ts +27 -0
- package/dist/model/presignedExitKey.js +33 -0
- package/dist/model/presignedExitKeyMessage.d.ts +26 -0
- package/dist/model/presignedExitKeyMessage.js +33 -0
- package/dist/model/smartContractDetailed.d.ts +2 -0
- package/dist/model/smartContractDetailed.js +5 -0
- package/dist/model/smartContractDetailedStats.d.ts +72 -0
- package/dist/model/smartContractDetailedStats.js +83 -0
- package/model/models.ts +15 -0
- package/model/presignedExitKey.ts +38 -0
- package/model/presignedExitKeyMessage.ts +37 -0
- package/model/smartContractDetailed.ts +7 -0
- package/model/smartContractDetailedStats.ts +133 -0
- package/package.json +3 -3
package/.openapi-generator/FILES
CHANGED
|
@@ -41,6 +41,8 @@ model/internalTransaction.ts
|
|
|
41
41
|
model/listAllRFQsForFacilitator200Response.ts
|
|
42
42
|
model/minedBlock.ts
|
|
43
43
|
model/models.ts
|
|
44
|
+
model/presignedExitKey.ts
|
|
45
|
+
model/presignedExitKeyMessage.ts
|
|
44
46
|
model/provideEscrowHashForRFQDocumentRequest.ts
|
|
45
47
|
model/quote.ts
|
|
46
48
|
model/rFQBidFacilitator.ts
|
|
@@ -64,6 +66,7 @@ model/registerWithdrawalRecipientSettlementRequest.ts
|
|
|
64
66
|
model/settlementSteps.ts
|
|
65
67
|
model/smartContract.ts
|
|
66
68
|
model/smartContractDetailed.ts
|
|
69
|
+
model/smartContractDetailedStats.ts
|
|
67
70
|
model/smartContractDetailedWhitelistedDepositorsInner.ts
|
|
68
71
|
model/submittedQuote.ts
|
|
69
72
|
model/transaction.ts
|
package/api/validatorsApi.ts
CHANGED
|
@@ -17,6 +17,7 @@ import http from 'http';
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
19
|
import { GetWithdrawalsResponse } from '../model/getWithdrawalsResponse';
|
|
20
|
+
import { PresignedExitKey } from '../model/presignedExitKey';
|
|
20
21
|
import { ValidatorInfo } from '../model/validatorInfo';
|
|
21
22
|
import { ValidatorKeyHolder } from '../model/validatorKeyHolder';
|
|
22
23
|
import { ValidatorType } from '../model/validatorType';
|
|
@@ -108,6 +109,96 @@ export class ValidatorsApi {
|
|
|
108
109
|
this.interceptors.push(interceptor);
|
|
109
110
|
}
|
|
110
111
|
|
|
112
|
+
/**
|
|
113
|
+
*
|
|
114
|
+
* @summary Get presigned exit key for a validator
|
|
115
|
+
* @param validatorIndex Validator index to get the presigned exit key for
|
|
116
|
+
* @param epoch Epoch to get the presigned exit key for, defaults to 1
|
|
117
|
+
*/
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
public async getPresignedExitKey (validatorIndex: number, epoch?: number, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: PresignedExitKey, status: number }> {
|
|
124
|
+
|
|
125
|
+
const localVarPath = this.basePath + '/validators/{validator_index}/presignedExitKey'
|
|
126
|
+
.replace('{' + 'validator_index' + '}', encodeURIComponent(String(validatorIndex)));
|
|
127
|
+
|
|
128
|
+
let localVarQueryParameters: any = {};
|
|
129
|
+
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
130
|
+
const produces = ['application/json'];
|
|
131
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
132
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
133
|
+
} else {
|
|
134
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
135
|
+
}
|
|
136
|
+
let localVarFormParams: any = {};
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
// Verify required parameter 'validatorIndex' is not null or undefined
|
|
140
|
+
if (validatorIndex === null || validatorIndex === undefined) {
|
|
141
|
+
throw new Error('Required parameter "validatorIndex" was null or undefined when calling getPresignedExitKey.');
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
if (epoch !== undefined) {
|
|
147
|
+
localVarQueryParameters['epoch'] = ObjectSerializer.serialize(epoch, "number");
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
(<any>Object).assign(localVarHeaderParams, options.headers);
|
|
154
|
+
|
|
155
|
+
let localVarUseFormData = false;
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
let localVarRequestOptions: localVarRequest.Options = {
|
|
160
|
+
method: 'GET',
|
|
161
|
+
qs: localVarQueryParameters,
|
|
162
|
+
headers: localVarHeaderParams,
|
|
163
|
+
uri: localVarPath,
|
|
164
|
+
useQuerystring: this._useQuerystring,
|
|
165
|
+
json: true,
|
|
166
|
+
};
|
|
167
|
+
|
|
168
|
+
let authenticationPromise = Promise.resolve();
|
|
169
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
170
|
+
|
|
171
|
+
let interceptorPromise = authenticationPromise;
|
|
172
|
+
for (const interceptor of this.interceptors) {
|
|
173
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
return interceptorPromise.then(() => {
|
|
177
|
+
if (Object.keys(localVarFormParams).length) {
|
|
178
|
+
if (localVarUseFormData) {
|
|
179
|
+
(<any>localVarRequestOptions).formData = localVarFormParams;
|
|
180
|
+
} else {
|
|
181
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
return new Promise<{ body: PresignedExitKey, status: number }>((resolve, reject) => {
|
|
185
|
+
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
186
|
+
if (error) {
|
|
187
|
+
console.error('API call error:', error);
|
|
188
|
+
reject(error);
|
|
189
|
+
} else {
|
|
190
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
191
|
+
body = ObjectSerializer.deserialize(body, "PresignedExitKey");
|
|
192
|
+
resolve({ body: body, status: response.statusCode });
|
|
193
|
+
} else {
|
|
194
|
+
console.error('API response error:', response.statusCode);
|
|
195
|
+
resolve({ body: body, status: response.statusCode });
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
});
|
|
200
|
+
} )
|
|
201
|
+
}
|
|
111
202
|
/**
|
|
112
203
|
* Retrieves a paginated list of validator withdrawals. The endpoint supports filtering by start and end date, page number, and limit. Additionally, it allows filtering by validator indices.
|
|
113
204
|
* @summary Get a list of validator withdrawals
|
package/api.ts
CHANGED
|
@@ -37,6 +37,8 @@ export * from './model/./getWithdrawalsResponse';
|
|
|
37
37
|
export * from './model/./internalTransaction';
|
|
38
38
|
export * from './model/./listAllRFQsForFacilitator200Response';
|
|
39
39
|
export * from './model/./minedBlock';
|
|
40
|
+
export * from './model/./presignedExitKey';
|
|
41
|
+
export * from './model/./presignedExitKeyMessage';
|
|
40
42
|
export * from './model/./provideEscrowHashForRFQDocumentRequest';
|
|
41
43
|
export * from './model/./quote';
|
|
42
44
|
export * from './model/./rFQBidFacilitator';
|
|
@@ -60,6 +62,7 @@ export * from './model/./registerWithdrawalRecipientSettlementRequest';
|
|
|
60
62
|
export * from './model/./settlementSteps';
|
|
61
63
|
export * from './model/./smartContract';
|
|
62
64
|
export * from './model/./smartContractDetailed';
|
|
65
|
+
export * from './model/./smartContractDetailedStats';
|
|
63
66
|
export * from './model/./smartContractDetailedWhitelistedDepositorsInner';
|
|
64
67
|
export * from './model/./submittedQuote';
|
|
65
68
|
export * from './model/./transaction';
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { GetWithdrawalsResponse } from '../model/getWithdrawalsResponse';
|
|
13
|
+
import { PresignedExitKey } from '../model/presignedExitKey';
|
|
13
14
|
import { ValidatorInfo } from '../model/validatorInfo';
|
|
14
15
|
import { ValidatorKeyHolder } from '../model/validatorKeyHolder';
|
|
15
16
|
import { ValidatorType } from '../model/validatorType';
|
|
@@ -45,6 +46,20 @@ export declare class ValidatorsApi {
|
|
|
45
46
|
setApiKey(key: ValidatorsApiApiKeys, value: string): void;
|
|
46
47
|
set accessToken(accessToken: string | (() => string));
|
|
47
48
|
addInterceptor(interceptor: Interceptor): void;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @summary Get presigned exit key for a validator
|
|
52
|
+
* @param validatorIndex Validator index to get the presigned exit key for
|
|
53
|
+
* @param epoch Epoch to get the presigned exit key for, defaults to 1
|
|
54
|
+
*/
|
|
55
|
+
getPresignedExitKey(validatorIndex: number, epoch?: number, options?: {
|
|
56
|
+
headers: {
|
|
57
|
+
[name: string]: string;
|
|
58
|
+
};
|
|
59
|
+
}): Promise<{
|
|
60
|
+
body: PresignedExitKey;
|
|
61
|
+
status: number;
|
|
62
|
+
}>;
|
|
48
63
|
/**
|
|
49
64
|
* Retrieves a paginated list of validator withdrawals. The endpoint supports filtering by start and end date, page number, and limit. Additionally, it allows filtering by validator indices.
|
|
50
65
|
* @summary Get a list of validator withdrawals
|
|
@@ -75,6 +75,77 @@ class ValidatorsApi {
|
|
|
75
75
|
addInterceptor(interceptor) {
|
|
76
76
|
this.interceptors.push(interceptor);
|
|
77
77
|
}
|
|
78
|
+
/**
|
|
79
|
+
*
|
|
80
|
+
* @summary Get presigned exit key for a validator
|
|
81
|
+
* @param validatorIndex Validator index to get the presigned exit key for
|
|
82
|
+
* @param epoch Epoch to get the presigned exit key for, defaults to 1
|
|
83
|
+
*/
|
|
84
|
+
async getPresignedExitKey(validatorIndex, epoch, options = { headers: {} }) {
|
|
85
|
+
const localVarPath = this.basePath + '/validators/{validator_index}/presignedExitKey'
|
|
86
|
+
.replace('{' + 'validator_index' + '}', encodeURIComponent(String(validatorIndex)));
|
|
87
|
+
let localVarQueryParameters = {};
|
|
88
|
+
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
89
|
+
const produces = ['application/json'];
|
|
90
|
+
if (produces.indexOf('application/json') >= 0) {
|
|
91
|
+
localVarHeaderParams.Accept = 'application/json';
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
localVarHeaderParams.Accept = produces.join(',');
|
|
95
|
+
}
|
|
96
|
+
let localVarFormParams = {};
|
|
97
|
+
// Verify required parameter 'validatorIndex' is not null or undefined
|
|
98
|
+
if (validatorIndex === null || validatorIndex === undefined) {
|
|
99
|
+
throw new Error('Required parameter "validatorIndex" was null or undefined when calling getPresignedExitKey.');
|
|
100
|
+
}
|
|
101
|
+
if (epoch !== undefined) {
|
|
102
|
+
localVarQueryParameters['epoch'] = models_1.ObjectSerializer.serialize(epoch, "number");
|
|
103
|
+
}
|
|
104
|
+
Object.assign(localVarHeaderParams, options.headers);
|
|
105
|
+
let localVarUseFormData = false;
|
|
106
|
+
let localVarRequestOptions = {
|
|
107
|
+
method: 'GET',
|
|
108
|
+
qs: localVarQueryParameters,
|
|
109
|
+
headers: localVarHeaderParams,
|
|
110
|
+
uri: localVarPath,
|
|
111
|
+
useQuerystring: this._useQuerystring,
|
|
112
|
+
json: true,
|
|
113
|
+
};
|
|
114
|
+
let authenticationPromise = Promise.resolve();
|
|
115
|
+
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
116
|
+
let interceptorPromise = authenticationPromise;
|
|
117
|
+
for (const interceptor of this.interceptors) {
|
|
118
|
+
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
119
|
+
}
|
|
120
|
+
return interceptorPromise.then(() => {
|
|
121
|
+
if (Object.keys(localVarFormParams).length) {
|
|
122
|
+
if (localVarUseFormData) {
|
|
123
|
+
localVarRequestOptions.formData = localVarFormParams;
|
|
124
|
+
}
|
|
125
|
+
else {
|
|
126
|
+
localVarRequestOptions.form = localVarFormParams;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
return new Promise((resolve, reject) => {
|
|
130
|
+
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
131
|
+
if (error) {
|
|
132
|
+
console.error('API call error:', error);
|
|
133
|
+
reject(error);
|
|
134
|
+
}
|
|
135
|
+
else {
|
|
136
|
+
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
137
|
+
body = models_1.ObjectSerializer.deserialize(body, "PresignedExitKey");
|
|
138
|
+
resolve({ body: body, status: response.statusCode });
|
|
139
|
+
}
|
|
140
|
+
else {
|
|
141
|
+
console.error('API response error:', response.statusCode);
|
|
142
|
+
resolve({ body: body, status: response.statusCode });
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
});
|
|
146
|
+
});
|
|
147
|
+
});
|
|
148
|
+
}
|
|
78
149
|
/**
|
|
79
150
|
* Retrieves a paginated list of validator withdrawals. The endpoint supports filtering by start and end date, page number, and limit. Additionally, it allows filtering by validator indices.
|
|
80
151
|
* @summary Get a list of validator withdrawals
|
package/dist/api.d.ts
CHANGED
|
@@ -35,6 +35,8 @@ export * from './model/./getWithdrawalsResponse';
|
|
|
35
35
|
export * from './model/./internalTransaction';
|
|
36
36
|
export * from './model/./listAllRFQsForFacilitator200Response';
|
|
37
37
|
export * from './model/./minedBlock';
|
|
38
|
+
export * from './model/./presignedExitKey';
|
|
39
|
+
export * from './model/./presignedExitKeyMessage';
|
|
38
40
|
export * from './model/./provideEscrowHashForRFQDocumentRequest';
|
|
39
41
|
export * from './model/./quote';
|
|
40
42
|
export * from './model/./rFQBidFacilitator';
|
|
@@ -58,6 +60,7 @@ export * from './model/./registerWithdrawalRecipientSettlementRequest';
|
|
|
58
60
|
export * from './model/./settlementSteps';
|
|
59
61
|
export * from './model/./smartContract';
|
|
60
62
|
export * from './model/./smartContractDetailed';
|
|
63
|
+
export * from './model/./smartContractDetailedStats';
|
|
61
64
|
export * from './model/./smartContractDetailedWhitelistedDepositorsInner';
|
|
62
65
|
export * from './model/./submittedQuote';
|
|
63
66
|
export * from './model/./transaction';
|
package/dist/api.js
CHANGED
|
@@ -54,6 +54,8 @@ __exportStar(require("./model/./getWithdrawalsResponse"), exports);
|
|
|
54
54
|
__exportStar(require("./model/./internalTransaction"), exports);
|
|
55
55
|
__exportStar(require("./model/./listAllRFQsForFacilitator200Response"), exports);
|
|
56
56
|
__exportStar(require("./model/./minedBlock"), exports);
|
|
57
|
+
__exportStar(require("./model/./presignedExitKey"), exports);
|
|
58
|
+
__exportStar(require("./model/./presignedExitKeyMessage"), exports);
|
|
57
59
|
__exportStar(require("./model/./provideEscrowHashForRFQDocumentRequest"), exports);
|
|
58
60
|
__exportStar(require("./model/./quote"), exports);
|
|
59
61
|
__exportStar(require("./model/./rFQBidFacilitator"), exports);
|
|
@@ -77,6 +79,7 @@ __exportStar(require("./model/./registerWithdrawalRecipientSettlementRequest"),
|
|
|
77
79
|
__exportStar(require("./model/./settlementSteps"), exports);
|
|
78
80
|
__exportStar(require("./model/./smartContract"), exports);
|
|
79
81
|
__exportStar(require("./model/./smartContractDetailed"), exports);
|
|
82
|
+
__exportStar(require("./model/./smartContractDetailedStats"), exports);
|
|
80
83
|
__exportStar(require("./model/./smartContractDetailedWhitelistedDepositorsInner"), exports);
|
|
81
84
|
__exportStar(require("./model/./submittedQuote"), exports);
|
|
82
85
|
__exportStar(require("./model/./transaction"), exports);
|
package/dist/model/models.d.ts
CHANGED
|
@@ -27,6 +27,8 @@ export * from './getWithdrawalsResponse';
|
|
|
27
27
|
export * from './internalTransaction';
|
|
28
28
|
export * from './listAllRFQsForFacilitator200Response';
|
|
29
29
|
export * from './minedBlock';
|
|
30
|
+
export * from './presignedExitKey';
|
|
31
|
+
export * from './presignedExitKeyMessage';
|
|
30
32
|
export * from './provideEscrowHashForRFQDocumentRequest';
|
|
31
33
|
export * from './quote';
|
|
32
34
|
export * from './rFQBidFacilitator';
|
|
@@ -50,6 +52,7 @@ export * from './registerWithdrawalRecipientSettlementRequest';
|
|
|
50
52
|
export * from './settlementSteps';
|
|
51
53
|
export * from './smartContract';
|
|
52
54
|
export * from './smartContractDetailed';
|
|
55
|
+
export * from './smartContractDetailedStats';
|
|
53
56
|
export * from './smartContractDetailedWhitelistedDepositorsInner';
|
|
54
57
|
export * from './submittedQuote';
|
|
55
58
|
export * from './transaction';
|
package/dist/model/models.js
CHANGED
|
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
15
15
|
}) : function(o, v) {
|
|
16
16
|
o["default"] = v;
|
|
17
17
|
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
};
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
25
35
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
26
36
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
27
37
|
};
|
|
@@ -56,6 +66,8 @@ __exportStar(require("./getWithdrawalsResponse"), exports);
|
|
|
56
66
|
__exportStar(require("./internalTransaction"), exports);
|
|
57
67
|
__exportStar(require("./listAllRFQsForFacilitator200Response"), exports);
|
|
58
68
|
__exportStar(require("./minedBlock"), exports);
|
|
69
|
+
__exportStar(require("./presignedExitKey"), exports);
|
|
70
|
+
__exportStar(require("./presignedExitKeyMessage"), exports);
|
|
59
71
|
__exportStar(require("./provideEscrowHashForRFQDocumentRequest"), exports);
|
|
60
72
|
__exportStar(require("./quote"), exports);
|
|
61
73
|
__exportStar(require("./rFQBidFacilitator"), exports);
|
|
@@ -79,6 +91,7 @@ __exportStar(require("./registerWithdrawalRecipientSettlementRequest"), exports)
|
|
|
79
91
|
__exportStar(require("./settlementSteps"), exports);
|
|
80
92
|
__exportStar(require("./smartContract"), exports);
|
|
81
93
|
__exportStar(require("./smartContractDetailed"), exports);
|
|
94
|
+
__exportStar(require("./smartContractDetailedStats"), exports);
|
|
82
95
|
__exportStar(require("./smartContractDetailedWhitelistedDepositorsInner"), exports);
|
|
83
96
|
__exportStar(require("./submittedQuote"), exports);
|
|
84
97
|
__exportStar(require("./transaction"), exports);
|
|
@@ -137,6 +150,8 @@ const getWithdrawalsResponse_1 = require("./getWithdrawalsResponse");
|
|
|
137
150
|
const internalTransaction_1 = require("./internalTransaction");
|
|
138
151
|
const listAllRFQsForFacilitator200Response_1 = require("./listAllRFQsForFacilitator200Response");
|
|
139
152
|
const minedBlock_1 = require("./minedBlock");
|
|
153
|
+
const presignedExitKey_1 = require("./presignedExitKey");
|
|
154
|
+
const presignedExitKeyMessage_1 = require("./presignedExitKeyMessage");
|
|
140
155
|
const provideEscrowHashForRFQDocumentRequest_1 = require("./provideEscrowHashForRFQDocumentRequest");
|
|
141
156
|
const quote_1 = require("./quote");
|
|
142
157
|
const rFQBidFacilitator_1 = require("./rFQBidFacilitator");
|
|
@@ -155,6 +170,7 @@ const registerWithdrawalRecipientSettlementRequest_1 = require("./registerWithdr
|
|
|
155
170
|
const settlementSteps_1 = require("./settlementSteps");
|
|
156
171
|
const smartContract_1 = require("./smartContract");
|
|
157
172
|
const smartContractDetailed_1 = require("./smartContractDetailed");
|
|
173
|
+
const smartContractDetailedStats_1 = require("./smartContractDetailedStats");
|
|
158
174
|
const smartContractDetailedWhitelistedDepositorsInner_1 = require("./smartContractDetailedWhitelistedDepositorsInner");
|
|
159
175
|
const submittedQuote_1 = require("./submittedQuote");
|
|
160
176
|
const transaction_1 = require("./transaction");
|
|
@@ -231,6 +247,8 @@ let typeMap = {
|
|
|
231
247
|
"InternalTransaction": internalTransaction_1.InternalTransaction,
|
|
232
248
|
"ListAllRFQsForFacilitator200Response": listAllRFQsForFacilitator200Response_1.ListAllRFQsForFacilitator200Response,
|
|
233
249
|
"MinedBlock": minedBlock_1.MinedBlock,
|
|
250
|
+
"PresignedExitKey": presignedExitKey_1.PresignedExitKey,
|
|
251
|
+
"PresignedExitKeyMessage": presignedExitKeyMessage_1.PresignedExitKeyMessage,
|
|
234
252
|
"ProvideEscrowHashForRFQDocumentRequest": provideEscrowHashForRFQDocumentRequest_1.ProvideEscrowHashForRFQDocumentRequest,
|
|
235
253
|
"Quote": quote_1.Quote,
|
|
236
254
|
"RFQBidFacilitator": rFQBidFacilitator_1.RFQBidFacilitator,
|
|
@@ -249,6 +267,7 @@ let typeMap = {
|
|
|
249
267
|
"SettlementSteps": settlementSteps_1.SettlementSteps,
|
|
250
268
|
"SmartContract": smartContract_1.SmartContract,
|
|
251
269
|
"SmartContractDetailed": smartContractDetailed_1.SmartContractDetailed,
|
|
270
|
+
"SmartContractDetailedStats": smartContractDetailedStats_1.SmartContractDetailedStats,
|
|
252
271
|
"SmartContractDetailedWhitelistedDepositorsInner": smartContractDetailedWhitelistedDepositorsInner_1.SmartContractDetailedWhitelistedDepositorsInner,
|
|
253
272
|
"SubmittedQuote": submittedQuote_1.SubmittedQuote,
|
|
254
273
|
"Transaction": transaction_1.Transaction,
|
|
@@ -0,0 +1,27 @@
|
|
|
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 { PresignedExitKeyMessage } from './presignedExitKeyMessage';
|
|
13
|
+
export declare class PresignedExitKey {
|
|
14
|
+
'message': PresignedExitKeyMessage;
|
|
15
|
+
'signature': string;
|
|
16
|
+
static discriminator: string | undefined;
|
|
17
|
+
static attributeTypeMap: Array<{
|
|
18
|
+
name: string;
|
|
19
|
+
baseName: string;
|
|
20
|
+
type: string;
|
|
21
|
+
}>;
|
|
22
|
+
static getAttributeTypeMap(): {
|
|
23
|
+
name: string;
|
|
24
|
+
baseName: string;
|
|
25
|
+
type: string;
|
|
26
|
+
}[];
|
|
27
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.PresignedExitKey = void 0;
|
|
15
|
+
class PresignedExitKey {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return PresignedExitKey.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.PresignedExitKey = PresignedExitKey;
|
|
21
|
+
PresignedExitKey.discriminator = undefined;
|
|
22
|
+
PresignedExitKey.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "message",
|
|
25
|
+
"baseName": "message",
|
|
26
|
+
"type": "PresignedExitKeyMessage"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "signature",
|
|
30
|
+
"baseName": "signature",
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
];
|
|
@@ -0,0 +1,26 @@
|
|
|
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 PresignedExitKeyMessage {
|
|
13
|
+
'epoch': string;
|
|
14
|
+
'validator_index': string;
|
|
15
|
+
static discriminator: string | undefined;
|
|
16
|
+
static attributeTypeMap: Array<{
|
|
17
|
+
name: string;
|
|
18
|
+
baseName: string;
|
|
19
|
+
type: string;
|
|
20
|
+
}>;
|
|
21
|
+
static getAttributeTypeMap(): {
|
|
22
|
+
name: string;
|
|
23
|
+
baseName: string;
|
|
24
|
+
type: string;
|
|
25
|
+
}[];
|
|
26
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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.PresignedExitKeyMessage = void 0;
|
|
15
|
+
class PresignedExitKeyMessage {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return PresignedExitKeyMessage.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.PresignedExitKeyMessage = PresignedExitKeyMessage;
|
|
21
|
+
PresignedExitKeyMessage.discriminator = undefined;
|
|
22
|
+
PresignedExitKeyMessage.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "epoch",
|
|
25
|
+
"baseName": "epoch",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "validator_index",
|
|
30
|
+
"baseName": "validator_index",
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
];
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { Asset } from './asset';
|
|
13
|
+
import { SmartContractDetailedStats } from './smartContractDetailedStats';
|
|
13
14
|
import { SmartContractDetailedWhitelistedDepositorsInner } from './smartContractDetailedWhitelistedDepositorsInner';
|
|
14
15
|
/**
|
|
15
16
|
* Details about a smart contract including name, asset, address and type, whitelistedDepositors and validator providers.
|
|
@@ -29,6 +30,7 @@ export declare class SmartContractDetailed {
|
|
|
29
30
|
* List of whitelisted depositors with their details
|
|
30
31
|
*/
|
|
31
32
|
'whitelistedDepositors': Array<SmartContractDetailedWhitelistedDepositorsInner>;
|
|
33
|
+
'stats': SmartContractDetailedStats;
|
|
32
34
|
static discriminator: string | undefined;
|
|
33
35
|
static attributeTypeMap: Array<{
|
|
34
36
|
name: string;
|
|
@@ -62,5 +62,10 @@ SmartContractDetailed.attributeTypeMap = [
|
|
|
62
62
|
"name": "whitelistedDepositors",
|
|
63
63
|
"baseName": "whitelistedDepositors",
|
|
64
64
|
"type": "Array<SmartContractDetailedWhitelistedDepositorsInner>"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "stats",
|
|
68
|
+
"baseName": "stats",
|
|
69
|
+
"type": "SmartContractDetailedStats"
|
|
65
70
|
}
|
|
66
71
|
];
|
|
@@ -0,0 +1,72 @@
|
|
|
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 SmartContractDetailedStats {
|
|
13
|
+
/**
|
|
14
|
+
* Number of pending deposits in ETH
|
|
15
|
+
*/
|
|
16
|
+
'pendingDeposits': string;
|
|
17
|
+
/**
|
|
18
|
+
* Number of claimable withdrawals in ETH
|
|
19
|
+
*/
|
|
20
|
+
'claimableWithdrawals': string;
|
|
21
|
+
/**
|
|
22
|
+
* Number of claimable rewards in ETH
|
|
23
|
+
*/
|
|
24
|
+
'claimableRewards': string;
|
|
25
|
+
/**
|
|
26
|
+
* Total number of deposits in ETH
|
|
27
|
+
*/
|
|
28
|
+
'totalDeposits': string;
|
|
29
|
+
/**
|
|
30
|
+
* Count of queued validators in ETH
|
|
31
|
+
*/
|
|
32
|
+
'queuedValidatorCount': string;
|
|
33
|
+
/**
|
|
34
|
+
* Amount of ETH queued for validators in ETH
|
|
35
|
+
*/
|
|
36
|
+
'queuedValidatorAmount': string;
|
|
37
|
+
/**
|
|
38
|
+
* Number of claimed withdrawals in ETH
|
|
39
|
+
*/
|
|
40
|
+
'claimedWithdrawals': string;
|
|
41
|
+
/**
|
|
42
|
+
* Number of claimed rewards in ETH
|
|
43
|
+
*/
|
|
44
|
+
'claimedRewards': string;
|
|
45
|
+
/**
|
|
46
|
+
* Total number of withdrawals in ETH
|
|
47
|
+
*/
|
|
48
|
+
'totalWithdrawals': string;
|
|
49
|
+
/**
|
|
50
|
+
* Total number of rewards in ETH
|
|
51
|
+
*/
|
|
52
|
+
'totalRewards': string;
|
|
53
|
+
/**
|
|
54
|
+
* Balance of the smart contract in ETH
|
|
55
|
+
*/
|
|
56
|
+
'balance': string;
|
|
57
|
+
/**
|
|
58
|
+
* Number of signed exit proposals
|
|
59
|
+
*/
|
|
60
|
+
'signedExitProposalCount': string;
|
|
61
|
+
static discriminator: string | undefined;
|
|
62
|
+
static attributeTypeMap: Array<{
|
|
63
|
+
name: string;
|
|
64
|
+
baseName: string;
|
|
65
|
+
type: string;
|
|
66
|
+
}>;
|
|
67
|
+
static getAttributeTypeMap(): {
|
|
68
|
+
name: string;
|
|
69
|
+
baseName: string;
|
|
70
|
+
type: string;
|
|
71
|
+
}[];
|
|
72
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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.SmartContractDetailedStats = void 0;
|
|
15
|
+
class SmartContractDetailedStats {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return SmartContractDetailedStats.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.SmartContractDetailedStats = SmartContractDetailedStats;
|
|
21
|
+
SmartContractDetailedStats.discriminator = undefined;
|
|
22
|
+
SmartContractDetailedStats.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "pendingDeposits",
|
|
25
|
+
"baseName": "pendingDeposits",
|
|
26
|
+
"type": "string"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "claimableWithdrawals",
|
|
30
|
+
"baseName": "claimableWithdrawals",
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "claimableRewards",
|
|
35
|
+
"baseName": "claimableRewards",
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "totalDeposits",
|
|
40
|
+
"baseName": "totalDeposits",
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "queuedValidatorCount",
|
|
45
|
+
"baseName": "queuedValidatorCount",
|
|
46
|
+
"type": "string"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "queuedValidatorAmount",
|
|
50
|
+
"baseName": "queuedValidatorAmount",
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
"name": "claimedWithdrawals",
|
|
55
|
+
"baseName": "claimedWithdrawals",
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"name": "claimedRewards",
|
|
60
|
+
"baseName": "claimedRewards",
|
|
61
|
+
"type": "string"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "totalWithdrawals",
|
|
65
|
+
"baseName": "totalWithdrawals",
|
|
66
|
+
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "totalRewards",
|
|
70
|
+
"baseName": "totalRewards",
|
|
71
|
+
"type": "string"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "balance",
|
|
75
|
+
"baseName": "balance",
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"name": "signedExitProposalCount",
|
|
80
|
+
"baseName": "signedExitProposalCount",
|
|
81
|
+
"type": "string"
|
|
82
|
+
}
|
|
83
|
+
];
|
package/model/models.ts
CHANGED
|
@@ -30,6 +30,8 @@ export * from './getWithdrawalsResponse';
|
|
|
30
30
|
export * from './internalTransaction';
|
|
31
31
|
export * from './listAllRFQsForFacilitator200Response';
|
|
32
32
|
export * from './minedBlock';
|
|
33
|
+
export * from './presignedExitKey';
|
|
34
|
+
export * from './presignedExitKeyMessage';
|
|
33
35
|
export * from './provideEscrowHashForRFQDocumentRequest';
|
|
34
36
|
export * from './quote';
|
|
35
37
|
export * from './rFQBidFacilitator';
|
|
@@ -53,6 +55,7 @@ export * from './registerWithdrawalRecipientSettlementRequest';
|
|
|
53
55
|
export * from './settlementSteps';
|
|
54
56
|
export * from './smartContract';
|
|
55
57
|
export * from './smartContractDetailed';
|
|
58
|
+
export * from './smartContractDetailedStats';
|
|
56
59
|
export * from './smartContractDetailedWhitelistedDepositorsInner';
|
|
57
60
|
export * from './submittedQuote';
|
|
58
61
|
export * from './transaction';
|
|
@@ -182,6 +185,12 @@ import { ListAllRFQsForFacilitator200Response } from './listAllRFQsForFacilitato
|
|
|
182
185
|
import { MinedBlock } from './minedBlock';
|
|
183
186
|
|
|
184
187
|
|
|
188
|
+
import { PresignedExitKey } from './presignedExitKey';
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
import { PresignedExitKeyMessage } from './presignedExitKeyMessage';
|
|
192
|
+
|
|
193
|
+
|
|
185
194
|
import { ProvideEscrowHashForRFQDocumentRequest } from './provideEscrowHashForRFQDocumentRequest';
|
|
186
195
|
|
|
187
196
|
|
|
@@ -251,6 +260,9 @@ import { SmartContract } from './smartContract';
|
|
|
251
260
|
import { SmartContractDetailed } from './smartContractDetailed';
|
|
252
261
|
|
|
253
262
|
|
|
263
|
+
import { SmartContractDetailedStats } from './smartContractDetailedStats';
|
|
264
|
+
|
|
265
|
+
|
|
254
266
|
import { SmartContractDetailedWhitelistedDepositorsInner } from './smartContractDetailedWhitelistedDepositorsInner';
|
|
255
267
|
|
|
256
268
|
|
|
@@ -392,6 +404,8 @@ let typeMap: {[index: string]: any} = {
|
|
|
392
404
|
"InternalTransaction": InternalTransaction,
|
|
393
405
|
"ListAllRFQsForFacilitator200Response": ListAllRFQsForFacilitator200Response,
|
|
394
406
|
"MinedBlock": MinedBlock,
|
|
407
|
+
"PresignedExitKey": PresignedExitKey,
|
|
408
|
+
"PresignedExitKeyMessage": PresignedExitKeyMessage,
|
|
395
409
|
"ProvideEscrowHashForRFQDocumentRequest": ProvideEscrowHashForRFQDocumentRequest,
|
|
396
410
|
"Quote": Quote,
|
|
397
411
|
"RFQBidFacilitator": RFQBidFacilitator,
|
|
@@ -410,6 +424,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
410
424
|
"SettlementSteps": SettlementSteps,
|
|
411
425
|
"SmartContract": SmartContract,
|
|
412
426
|
"SmartContractDetailed": SmartContractDetailed,
|
|
427
|
+
"SmartContractDetailedStats": SmartContractDetailedStats,
|
|
413
428
|
"SmartContractDetailedWhitelistedDepositorsInner": SmartContractDetailedWhitelistedDepositorsInner,
|
|
414
429
|
"SubmittedQuote": SubmittedQuote,
|
|
415
430
|
"Transaction": Transaction,
|
|
@@ -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
|
+
|
|
13
|
+
import { PresignedExitKeyMessage } from './presignedExitKeyMessage';
|
|
14
|
+
|
|
15
|
+
export class PresignedExitKey {
|
|
16
|
+
'message': PresignedExitKeyMessage;
|
|
17
|
+
'signature': string;
|
|
18
|
+
|
|
19
|
+
static discriminator: string | undefined = undefined;
|
|
20
|
+
|
|
21
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
22
|
+
{
|
|
23
|
+
"name": "message",
|
|
24
|
+
"baseName": "message",
|
|
25
|
+
"type": "PresignedExitKeyMessage"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"name": "signature",
|
|
29
|
+
"baseName": "signature",
|
|
30
|
+
"type": "string"
|
|
31
|
+
} ];
|
|
32
|
+
|
|
33
|
+
static getAttributeTypeMap() {
|
|
34
|
+
return PresignedExitKey.attributeTypeMap;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
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 PresignedExitKeyMessage {
|
|
15
|
+
'epoch': string;
|
|
16
|
+
'validator_index': string;
|
|
17
|
+
|
|
18
|
+
static discriminator: string | undefined = undefined;
|
|
19
|
+
|
|
20
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
21
|
+
{
|
|
22
|
+
"name": "epoch",
|
|
23
|
+
"baseName": "epoch",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"name": "validator_index",
|
|
28
|
+
"baseName": "validator_index",
|
|
29
|
+
"type": "string"
|
|
30
|
+
} ];
|
|
31
|
+
|
|
32
|
+
static getAttributeTypeMap() {
|
|
33
|
+
return PresignedExitKeyMessage.attributeTypeMap;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { Asset } from './asset';
|
|
14
|
+
import { SmartContractDetailedStats } from './smartContractDetailedStats';
|
|
14
15
|
import { SmartContractDetailedWhitelistedDepositorsInner } from './smartContractDetailedWhitelistedDepositorsInner';
|
|
15
16
|
|
|
16
17
|
/**
|
|
@@ -31,6 +32,7 @@ export class SmartContractDetailed {
|
|
|
31
32
|
* List of whitelisted depositors with their details
|
|
32
33
|
*/
|
|
33
34
|
'whitelistedDepositors': Array<SmartContractDetailedWhitelistedDepositorsInner>;
|
|
35
|
+
'stats': SmartContractDetailedStats;
|
|
34
36
|
|
|
35
37
|
static discriminator: string | undefined = undefined;
|
|
36
38
|
|
|
@@ -74,6 +76,11 @@ export class SmartContractDetailed {
|
|
|
74
76
|
"name": "whitelistedDepositors",
|
|
75
77
|
"baseName": "whitelistedDepositors",
|
|
76
78
|
"type": "Array<SmartContractDetailedWhitelistedDepositorsInner>"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "stats",
|
|
82
|
+
"baseName": "stats",
|
|
83
|
+
"type": "SmartContractDetailedStats"
|
|
77
84
|
} ];
|
|
78
85
|
|
|
79
86
|
static getAttributeTypeMap() {
|
|
@@ -0,0 +1,133 @@
|
|
|
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 SmartContractDetailedStats {
|
|
15
|
+
/**
|
|
16
|
+
* Number of pending deposits in ETH
|
|
17
|
+
*/
|
|
18
|
+
'pendingDeposits': string;
|
|
19
|
+
/**
|
|
20
|
+
* Number of claimable withdrawals in ETH
|
|
21
|
+
*/
|
|
22
|
+
'claimableWithdrawals': string;
|
|
23
|
+
/**
|
|
24
|
+
* Number of claimable rewards in ETH
|
|
25
|
+
*/
|
|
26
|
+
'claimableRewards': string;
|
|
27
|
+
/**
|
|
28
|
+
* Total number of deposits in ETH
|
|
29
|
+
*/
|
|
30
|
+
'totalDeposits': string;
|
|
31
|
+
/**
|
|
32
|
+
* Count of queued validators in ETH
|
|
33
|
+
*/
|
|
34
|
+
'queuedValidatorCount': string;
|
|
35
|
+
/**
|
|
36
|
+
* Amount of ETH queued for validators in ETH
|
|
37
|
+
*/
|
|
38
|
+
'queuedValidatorAmount': string;
|
|
39
|
+
/**
|
|
40
|
+
* Number of claimed withdrawals in ETH
|
|
41
|
+
*/
|
|
42
|
+
'claimedWithdrawals': string;
|
|
43
|
+
/**
|
|
44
|
+
* Number of claimed rewards in ETH
|
|
45
|
+
*/
|
|
46
|
+
'claimedRewards': string;
|
|
47
|
+
/**
|
|
48
|
+
* Total number of withdrawals in ETH
|
|
49
|
+
*/
|
|
50
|
+
'totalWithdrawals': string;
|
|
51
|
+
/**
|
|
52
|
+
* Total number of rewards in ETH
|
|
53
|
+
*/
|
|
54
|
+
'totalRewards': string;
|
|
55
|
+
/**
|
|
56
|
+
* Balance of the smart contract in ETH
|
|
57
|
+
*/
|
|
58
|
+
'balance': string;
|
|
59
|
+
/**
|
|
60
|
+
* Number of signed exit proposals
|
|
61
|
+
*/
|
|
62
|
+
'signedExitProposalCount': string;
|
|
63
|
+
|
|
64
|
+
static discriminator: string | undefined = undefined;
|
|
65
|
+
|
|
66
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
67
|
+
{
|
|
68
|
+
"name": "pendingDeposits",
|
|
69
|
+
"baseName": "pendingDeposits",
|
|
70
|
+
"type": "string"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "claimableWithdrawals",
|
|
74
|
+
"baseName": "claimableWithdrawals",
|
|
75
|
+
"type": "string"
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"name": "claimableRewards",
|
|
79
|
+
"baseName": "claimableRewards",
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "totalDeposits",
|
|
84
|
+
"baseName": "totalDeposits",
|
|
85
|
+
"type": "string"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "queuedValidatorCount",
|
|
89
|
+
"baseName": "queuedValidatorCount",
|
|
90
|
+
"type": "string"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "queuedValidatorAmount",
|
|
94
|
+
"baseName": "queuedValidatorAmount",
|
|
95
|
+
"type": "string"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "claimedWithdrawals",
|
|
99
|
+
"baseName": "claimedWithdrawals",
|
|
100
|
+
"type": "string"
|
|
101
|
+
},
|
|
102
|
+
{
|
|
103
|
+
"name": "claimedRewards",
|
|
104
|
+
"baseName": "claimedRewards",
|
|
105
|
+
"type": "string"
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
"name": "totalWithdrawals",
|
|
109
|
+
"baseName": "totalWithdrawals",
|
|
110
|
+
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "totalRewards",
|
|
114
|
+
"baseName": "totalRewards",
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "balance",
|
|
119
|
+
"baseName": "balance",
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "signedExitProposalCount",
|
|
124
|
+
"baseName": "signedExitProposalCount",
|
|
125
|
+
"type": "string"
|
|
126
|
+
} ];
|
|
127
|
+
|
|
128
|
+
static getAttributeTypeMap() {
|
|
129
|
+
return SmartContractDetailedStats.attributeTypeMap;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northstake/northstakeapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.30",
|
|
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.
|
|
25
|
-
"typescript": "^5.
|
|
24
|
+
"@types/node": "^22.10.0",
|
|
25
|
+
"typescript": "^5.7.2"
|
|
26
26
|
}
|
|
27
27
|
}
|