@northstake/northstakeapi 1.0.29 → 1.0.31
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 +1 -0
- package/api/smartContractsApi.ts +8 -8
- package/api/validatorsApi.ts +4 -4
- package/api.ts +1 -0
- package/dist/api/smartContractsApi.d.ts +4 -4
- package/dist/api/smartContractsApi.js +4 -4
- package/dist/api/validatorsApi.d.ts +2 -2
- package/dist/api/validatorsApi.js +2 -2
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/model/models.d.ts +1 -0
- package/dist/model/models.js +20 -7
- 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 +5 -0
- package/model/smartContractDetailed.ts +7 -0
- package/model/smartContractDetailedStats.ts +133 -0
- package/package.json +3 -3
package/.openapi-generator/FILES
CHANGED
|
@@ -66,6 +66,7 @@ model/registerWithdrawalRecipientSettlementRequest.ts
|
|
|
66
66
|
model/settlementSteps.ts
|
|
67
67
|
model/smartContract.ts
|
|
68
68
|
model/smartContractDetailed.ts
|
|
69
|
+
model/smartContractDetailedStats.ts
|
|
69
70
|
model/smartContractDetailedWhitelistedDepositorsInner.ts
|
|
70
71
|
model/submittedQuote.ts
|
|
71
72
|
model/transaction.ts
|
package/api/smartContractsApi.ts
CHANGED
|
@@ -41,14 +41,14 @@ export interface SmartContractsApiParams {
|
|
|
41
41
|
contractAddress: string;
|
|
42
42
|
page?: number;
|
|
43
43
|
limit?: number;
|
|
44
|
-
startDate?:
|
|
45
|
-
endDate?:
|
|
44
|
+
startDate?: Date;
|
|
45
|
+
endDate?: Date;
|
|
46
46
|
}
|
|
47
47
|
// If vendorExtensions.x-packageParams is true, use a single object to pass parameters
|
|
48
48
|
export interface SmartContractsApiParams {
|
|
49
49
|
contractAddress: string;
|
|
50
|
-
startDate?:
|
|
51
|
-
endDate?:
|
|
50
|
+
startDate?: Date;
|
|
51
|
+
endDate?: Date;
|
|
52
52
|
page?: number;
|
|
53
53
|
limit?: number;
|
|
54
54
|
}
|
|
@@ -159,10 +159,10 @@ export class SmartContractsApi {
|
|
|
159
159
|
localVarQueryParameters['limit'] = ObjectSerializer.serialize(params?.limit, "number");
|
|
160
160
|
}
|
|
161
161
|
if (params?.startDate !== undefined) {
|
|
162
|
-
localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "
|
|
162
|
+
localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "Date");
|
|
163
163
|
}
|
|
164
164
|
if (params?.endDate !== undefined) {
|
|
165
|
-
localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "
|
|
165
|
+
localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "Date");
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
|
|
@@ -255,10 +255,10 @@ export class SmartContractsApi {
|
|
|
255
255
|
|
|
256
256
|
|
|
257
257
|
if (params?.startDate !== undefined) {
|
|
258
|
-
localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "
|
|
258
|
+
localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "Date");
|
|
259
259
|
}
|
|
260
260
|
if (params?.endDate !== undefined) {
|
|
261
|
-
localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "
|
|
261
|
+
localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "Date");
|
|
262
262
|
}
|
|
263
263
|
if (params?.page !== undefined) {
|
|
264
264
|
localVarQueryParameters['page'] = ObjectSerializer.serialize(params?.page, "number");
|
package/api/validatorsApi.ts
CHANGED
|
@@ -40,8 +40,8 @@ export enum ValidatorsApiApiKeys {
|
|
|
40
40
|
|
|
41
41
|
// If vendorExtensions.x-packageParams is true, use a single object to pass parameters
|
|
42
42
|
export interface ValidatorsApiParams {
|
|
43
|
-
startDate?:
|
|
44
|
-
endDate?:
|
|
43
|
+
startDate?: Date;
|
|
44
|
+
endDate?: Date;
|
|
45
45
|
page?: number;
|
|
46
46
|
limit?: number;
|
|
47
47
|
validatorIndices?: string;
|
|
@@ -232,10 +232,10 @@ export class ValidatorsApi {
|
|
|
232
232
|
|
|
233
233
|
|
|
234
234
|
if (params?.startDate !== undefined) {
|
|
235
|
-
localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "
|
|
235
|
+
localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "Date");
|
|
236
236
|
}
|
|
237
237
|
if (params?.endDate !== undefined) {
|
|
238
|
-
localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "
|
|
238
|
+
localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "Date");
|
|
239
239
|
}
|
|
240
240
|
if (params?.page !== undefined) {
|
|
241
241
|
localVarQueryParameters['page'] = ObjectSerializer.serialize(params?.page, "number");
|
package/api.ts
CHANGED
|
@@ -62,6 +62,7 @@ export * from './model/./registerWithdrawalRecipientSettlementRequest';
|
|
|
62
62
|
export * from './model/./settlementSteps';
|
|
63
63
|
export * from './model/./smartContract';
|
|
64
64
|
export * from './model/./smartContractDetailed';
|
|
65
|
+
export * from './model/./smartContractDetailedStats';
|
|
65
66
|
export * from './model/./smartContractDetailedWhitelistedDepositorsInner';
|
|
66
67
|
export * from './model/./submittedQuote';
|
|
67
68
|
export * from './model/./transaction';
|
|
@@ -21,13 +21,13 @@ export interface SmartContractsApiParams {
|
|
|
21
21
|
contractAddress: string;
|
|
22
22
|
page?: number;
|
|
23
23
|
limit?: number;
|
|
24
|
-
startDate?:
|
|
25
|
-
endDate?:
|
|
24
|
+
startDate?: Date;
|
|
25
|
+
endDate?: Date;
|
|
26
26
|
}
|
|
27
27
|
export interface SmartContractsApiParams {
|
|
28
28
|
contractAddress: string;
|
|
29
|
-
startDate?:
|
|
30
|
-
endDate?:
|
|
29
|
+
startDate?: Date;
|
|
30
|
+
endDate?: Date;
|
|
31
31
|
page?: number;
|
|
32
32
|
limit?: number;
|
|
33
33
|
}
|
|
@@ -108,10 +108,10 @@ class SmartContractsApi {
|
|
|
108
108
|
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.limit, "number");
|
|
109
109
|
}
|
|
110
110
|
if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
|
|
111
|
-
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "
|
|
111
|
+
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "Date");
|
|
112
112
|
}
|
|
113
113
|
if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
|
|
114
|
-
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "
|
|
114
|
+
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "Date");
|
|
115
115
|
}
|
|
116
116
|
Object.assign(localVarHeaderParams, options.headers);
|
|
117
117
|
let localVarUseFormData = false;
|
|
@@ -185,10 +185,10 @@ class SmartContractsApi {
|
|
|
185
185
|
throw new Error('Required parameter "contractAddress" was null or undefined when calling getSmartContractTransactions.');
|
|
186
186
|
}
|
|
187
187
|
if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
|
|
188
|
-
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "
|
|
188
|
+
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "Date");
|
|
189
189
|
}
|
|
190
190
|
if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
|
|
191
|
-
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "
|
|
191
|
+
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "Date");
|
|
192
192
|
}
|
|
193
193
|
if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
|
|
194
194
|
localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
|
|
@@ -20,8 +20,8 @@ export declare enum ValidatorsApiApiKeys {
|
|
|
20
20
|
ApiKeyAuth = 0
|
|
21
21
|
}
|
|
22
22
|
export interface ValidatorsApiParams {
|
|
23
|
-
startDate?:
|
|
24
|
-
endDate?:
|
|
23
|
+
startDate?: Date;
|
|
24
|
+
endDate?: Date;
|
|
25
25
|
page?: number;
|
|
26
26
|
limit?: number;
|
|
27
27
|
validatorIndices?: string;
|
|
@@ -168,10 +168,10 @@ class ValidatorsApi {
|
|
|
168
168
|
}
|
|
169
169
|
let localVarFormParams = {};
|
|
170
170
|
if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
|
|
171
|
-
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "
|
|
171
|
+
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "Date");
|
|
172
172
|
}
|
|
173
173
|
if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
|
|
174
|
-
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "
|
|
174
|
+
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "Date");
|
|
175
175
|
}
|
|
176
176
|
if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
|
|
177
177
|
localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
|
package/dist/api.d.ts
CHANGED
|
@@ -60,6 +60,7 @@ export * from './model/./registerWithdrawalRecipientSettlementRequest';
|
|
|
60
60
|
export * from './model/./settlementSteps';
|
|
61
61
|
export * from './model/./smartContract';
|
|
62
62
|
export * from './model/./smartContractDetailed';
|
|
63
|
+
export * from './model/./smartContractDetailedStats';
|
|
63
64
|
export * from './model/./smartContractDetailedWhitelistedDepositorsInner';
|
|
64
65
|
export * from './model/./submittedQuote';
|
|
65
66
|
export * from './model/./transaction';
|
package/dist/api.js
CHANGED
|
@@ -79,6 +79,7 @@ __exportStar(require("./model/./registerWithdrawalRecipientSettlementRequest"),
|
|
|
79
79
|
__exportStar(require("./model/./settlementSteps"), exports);
|
|
80
80
|
__exportStar(require("./model/./smartContract"), exports);
|
|
81
81
|
__exportStar(require("./model/./smartContractDetailed"), exports);
|
|
82
|
+
__exportStar(require("./model/./smartContractDetailedStats"), exports);
|
|
82
83
|
__exportStar(require("./model/./smartContractDetailedWhitelistedDepositorsInner"), exports);
|
|
83
84
|
__exportStar(require("./model/./submittedQuote"), exports);
|
|
84
85
|
__exportStar(require("./model/./transaction"), exports);
|
package/dist/model/models.d.ts
CHANGED
|
@@ -52,6 +52,7 @@ export * from './registerWithdrawalRecipientSettlementRequest';
|
|
|
52
52
|
export * from './settlementSteps';
|
|
53
53
|
export * from './smartContract';
|
|
54
54
|
export * from './smartContractDetailed';
|
|
55
|
+
export * from './smartContractDetailedStats';
|
|
55
56
|
export * from './smartContractDetailedWhitelistedDepositorsInner';
|
|
56
57
|
export * from './submittedQuote';
|
|
57
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
|
};
|
|
@@ -81,6 +91,7 @@ __exportStar(require("./registerWithdrawalRecipientSettlementRequest"), exports)
|
|
|
81
91
|
__exportStar(require("./settlementSteps"), exports);
|
|
82
92
|
__exportStar(require("./smartContract"), exports);
|
|
83
93
|
__exportStar(require("./smartContractDetailed"), exports);
|
|
94
|
+
__exportStar(require("./smartContractDetailedStats"), exports);
|
|
84
95
|
__exportStar(require("./smartContractDetailedWhitelistedDepositorsInner"), exports);
|
|
85
96
|
__exportStar(require("./submittedQuote"), exports);
|
|
86
97
|
__exportStar(require("./transaction"), exports);
|
|
@@ -159,6 +170,7 @@ const registerWithdrawalRecipientSettlementRequest_1 = require("./registerWithdr
|
|
|
159
170
|
const settlementSteps_1 = require("./settlementSteps");
|
|
160
171
|
const smartContract_1 = require("./smartContract");
|
|
161
172
|
const smartContractDetailed_1 = require("./smartContractDetailed");
|
|
173
|
+
const smartContractDetailedStats_1 = require("./smartContractDetailedStats");
|
|
162
174
|
const smartContractDetailedWhitelistedDepositorsInner_1 = require("./smartContractDetailedWhitelistedDepositorsInner");
|
|
163
175
|
const submittedQuote_1 = require("./submittedQuote");
|
|
164
176
|
const transaction_1 = require("./transaction");
|
|
@@ -255,6 +267,7 @@ let typeMap = {
|
|
|
255
267
|
"SettlementSteps": settlementSteps_1.SettlementSteps,
|
|
256
268
|
"SmartContract": smartContract_1.SmartContract,
|
|
257
269
|
"SmartContractDetailed": smartContractDetailed_1.SmartContractDetailed,
|
|
270
|
+
"SmartContractDetailedStats": smartContractDetailedStats_1.SmartContractDetailedStats,
|
|
258
271
|
"SmartContractDetailedWhitelistedDepositorsInner": smartContractDetailedWhitelistedDepositorsInner_1.SmartContractDetailedWhitelistedDepositorsInner,
|
|
259
272
|
"SubmittedQuote": submittedQuote_1.SubmittedQuote,
|
|
260
273
|
"Transaction": transaction_1.Transaction,
|
|
@@ -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
|
@@ -55,6 +55,7 @@ export * from './registerWithdrawalRecipientSettlementRequest';
|
|
|
55
55
|
export * from './settlementSteps';
|
|
56
56
|
export * from './smartContract';
|
|
57
57
|
export * from './smartContractDetailed';
|
|
58
|
+
export * from './smartContractDetailedStats';
|
|
58
59
|
export * from './smartContractDetailedWhitelistedDepositorsInner';
|
|
59
60
|
export * from './submittedQuote';
|
|
60
61
|
export * from './transaction';
|
|
@@ -259,6 +260,9 @@ import { SmartContract } from './smartContract';
|
|
|
259
260
|
import { SmartContractDetailed } from './smartContractDetailed';
|
|
260
261
|
|
|
261
262
|
|
|
263
|
+
import { SmartContractDetailedStats } from './smartContractDetailedStats';
|
|
264
|
+
|
|
265
|
+
|
|
262
266
|
import { SmartContractDetailedWhitelistedDepositorsInner } from './smartContractDetailedWhitelistedDepositorsInner';
|
|
263
267
|
|
|
264
268
|
|
|
@@ -420,6 +424,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
420
424
|
"SettlementSteps": SettlementSteps,
|
|
421
425
|
"SmartContract": SmartContract,
|
|
422
426
|
"SmartContractDetailed": SmartContractDetailed,
|
|
427
|
+
"SmartContractDetailedStats": SmartContractDetailedStats,
|
|
423
428
|
"SmartContractDetailedWhitelistedDepositorsInner": SmartContractDetailedWhitelistedDepositorsInner,
|
|
424
429
|
"SubmittedQuote": SubmittedQuote,
|
|
425
430
|
"Transaction": Transaction,
|
|
@@ -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.31",
|
|
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.1",
|
|
25
|
+
"typescript": "^5.7.2"
|
|
26
26
|
}
|
|
27
27
|
}
|