@northstake/northstakeapi 1.0.27 → 1.0.29
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 +4 -0
- package/api/smartContractsApi.ts +4 -4
- package/api/validatorsApi.ts +91 -0
- package/api.ts +4 -0
- package/dist/api/smartContractsApi.d.ts +2 -2
- package/dist/api/smartContractsApi.js +1 -1
- package/dist/api/validatorsApi.d.ts +15 -0
- package/dist/api/validatorsApi.js +71 -0
- package/dist/api.d.ts +4 -0
- package/dist/api.js +4 -0
- package/dist/model/models.d.ts +4 -0
- package/dist/model/models.js +12 -0
- 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/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/smartContractDetailedWhitelistedDepositorsInner.d.ts +27 -0
- package/dist/model/smartContractDetailedWhitelistedDepositorsInner.js +38 -0
- package/model/models.ts +20 -0
- package/model/presignedExitKey.ts +38 -0
- package/model/presignedExitKeyMessage.ts +37 -0
- package/model/smartContract.ts +1 -1
- package/model/smartContractDetailed.ts +86 -0
- package/model/smartContractDetailedWhitelistedDepositorsInner.ts +43 -0
- package/package.json +2 -2
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
|
|
@@ -63,6 +65,8 @@ model/rFQWebhookEventType.ts
|
|
|
63
65
|
model/registerWithdrawalRecipientSettlementRequest.ts
|
|
64
66
|
model/settlementSteps.ts
|
|
65
67
|
model/smartContract.ts
|
|
68
|
+
model/smartContractDetailed.ts
|
|
69
|
+
model/smartContractDetailedWhitelistedDepositorsInner.ts
|
|
66
70
|
model/submittedQuote.ts
|
|
67
71
|
model/transaction.ts
|
|
68
72
|
model/validatorInfo.ts
|
package/api/smartContractsApi.ts
CHANGED
|
@@ -18,7 +18,7 @@ import http from 'http';
|
|
|
18
18
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
19
|
import { GetSmartContractMinedBlocks200Response } from '../model/getSmartContractMinedBlocks200Response';
|
|
20
20
|
import { GetSmartContractTransactions200Response } from '../model/getSmartContractTransactions200Response';
|
|
21
|
-
import {
|
|
21
|
+
import { SmartContractDetailed } from '../model/smartContractDetailed';
|
|
22
22
|
|
|
23
23
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
24
24
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
@@ -328,7 +328,7 @@ export class SmartContractsApi {
|
|
|
328
328
|
|
|
329
329
|
|
|
330
330
|
|
|
331
|
-
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 }> {
|
|
332
332
|
|
|
333
333
|
const localVarPath = this.basePath + '/smartContracts';
|
|
334
334
|
|
|
@@ -381,14 +381,14 @@ export class SmartContractsApi {
|
|
|
381
381
|
localVarRequestOptions.form = localVarFormParams;
|
|
382
382
|
}
|
|
383
383
|
}
|
|
384
|
-
return new Promise<{ body: Array<
|
|
384
|
+
return new Promise<{ body: Array<SmartContractDetailed>, status: number }>((resolve, reject) => {
|
|
385
385
|
localVarRequest(localVarRequestOptions, (error, response, body) => {
|
|
386
386
|
if (error) {
|
|
387
387
|
console.error('API call error:', error);
|
|
388
388
|
reject(error);
|
|
389
389
|
} else {
|
|
390
390
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
391
|
-
body = ObjectSerializer.deserialize(body, "Array<
|
|
391
|
+
body = ObjectSerializer.deserialize(body, "Array<SmartContractDetailed>");
|
|
392
392
|
resolve({ body: body, status: response.statusCode });
|
|
393
393
|
} else {
|
|
394
394
|
console.error('API response error:', response.statusCode);
|
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';
|
|
@@ -59,6 +61,8 @@ export * from './model/./rFQWebhookEventType';
|
|
|
59
61
|
export * from './model/./registerWithdrawalRecipientSettlementRequest';
|
|
60
62
|
export * from './model/./settlementSteps';
|
|
61
63
|
export * from './model/./smartContract';
|
|
64
|
+
export * from './model/./smartContractDetailed';
|
|
65
|
+
export * from './model/./smartContractDetailedWhitelistedDepositorsInner';
|
|
62
66
|
export * from './model/./submittedQuote';
|
|
63
67
|
export * from './model/./transaction';
|
|
64
68
|
export * from './model/./validatorInfo';
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import { GetSmartContractMinedBlocks200Response } from '../model/getSmartContractMinedBlocks200Response';
|
|
13
13
|
import { GetSmartContractTransactions200Response } from '../model/getSmartContractTransactions200Response';
|
|
14
|
-
import {
|
|
14
|
+
import { SmartContractDetailed } from '../model/smartContractDetailed';
|
|
15
15
|
import { Authentication, Interceptor } from '../model/models';
|
|
16
16
|
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
17
17
|
export declare enum SmartContractsApiApiKeys {
|
|
@@ -94,7 +94,7 @@ export declare class SmartContractsApi {
|
|
|
94
94
|
[name: string]: string;
|
|
95
95
|
};
|
|
96
96
|
}): Promise<{
|
|
97
|
-
body: Array<
|
|
97
|
+
body: Array<SmartContractDetailed>;
|
|
98
98
|
status: number;
|
|
99
99
|
}>;
|
|
100
100
|
}
|
|
@@ -290,7 +290,7 @@ class SmartContractsApi {
|
|
|
290
290
|
}
|
|
291
291
|
else {
|
|
292
292
|
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
293
|
-
body = models_1.ObjectSerializer.deserialize(body, "Array<
|
|
293
|
+
body = models_1.ObjectSerializer.deserialize(body, "Array<SmartContractDetailed>");
|
|
294
294
|
resolve({ body: body, status: response.statusCode });
|
|
295
295
|
}
|
|
296
296
|
else {
|
|
@@ -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';
|
|
@@ -57,6 +59,8 @@ export * from './model/./rFQWebhookEventType';
|
|
|
57
59
|
export * from './model/./registerWithdrawalRecipientSettlementRequest';
|
|
58
60
|
export * from './model/./settlementSteps';
|
|
59
61
|
export * from './model/./smartContract';
|
|
62
|
+
export * from './model/./smartContractDetailed';
|
|
63
|
+
export * from './model/./smartContractDetailedWhitelistedDepositorsInner';
|
|
60
64
|
export * from './model/./submittedQuote';
|
|
61
65
|
export * from './model/./transaction';
|
|
62
66
|
export * from './model/./validatorInfo';
|
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);
|
|
@@ -76,6 +78,8 @@ __exportStar(require("./model/./rFQWebhookEventType"), exports);
|
|
|
76
78
|
__exportStar(require("./model/./registerWithdrawalRecipientSettlementRequest"), exports);
|
|
77
79
|
__exportStar(require("./model/./settlementSteps"), exports);
|
|
78
80
|
__exportStar(require("./model/./smartContract"), exports);
|
|
81
|
+
__exportStar(require("./model/./smartContractDetailed"), exports);
|
|
82
|
+
__exportStar(require("./model/./smartContractDetailedWhitelistedDepositorsInner"), exports);
|
|
79
83
|
__exportStar(require("./model/./submittedQuote"), exports);
|
|
80
84
|
__exportStar(require("./model/./transaction"), exports);
|
|
81
85
|
__exportStar(require("./model/./validatorInfo"), 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';
|
|
@@ -49,6 +51,8 @@ export * from './rFQWebhookEventType';
|
|
|
49
51
|
export * from './registerWithdrawalRecipientSettlementRequest';
|
|
50
52
|
export * from './settlementSteps';
|
|
51
53
|
export * from './smartContract';
|
|
54
|
+
export * from './smartContractDetailed';
|
|
55
|
+
export * from './smartContractDetailedWhitelistedDepositorsInner';
|
|
52
56
|
export * from './submittedQuote';
|
|
53
57
|
export * from './transaction';
|
|
54
58
|
export * from './validatorInfo';
|
package/dist/model/models.js
CHANGED
|
@@ -56,6 +56,8 @@ __exportStar(require("./getWithdrawalsResponse"), exports);
|
|
|
56
56
|
__exportStar(require("./internalTransaction"), exports);
|
|
57
57
|
__exportStar(require("./listAllRFQsForFacilitator200Response"), exports);
|
|
58
58
|
__exportStar(require("./minedBlock"), exports);
|
|
59
|
+
__exportStar(require("./presignedExitKey"), exports);
|
|
60
|
+
__exportStar(require("./presignedExitKeyMessage"), exports);
|
|
59
61
|
__exportStar(require("./provideEscrowHashForRFQDocumentRequest"), exports);
|
|
60
62
|
__exportStar(require("./quote"), exports);
|
|
61
63
|
__exportStar(require("./rFQBidFacilitator"), exports);
|
|
@@ -78,6 +80,8 @@ __exportStar(require("./rFQWebhookEventType"), exports);
|
|
|
78
80
|
__exportStar(require("./registerWithdrawalRecipientSettlementRequest"), exports);
|
|
79
81
|
__exportStar(require("./settlementSteps"), exports);
|
|
80
82
|
__exportStar(require("./smartContract"), exports);
|
|
83
|
+
__exportStar(require("./smartContractDetailed"), exports);
|
|
84
|
+
__exportStar(require("./smartContractDetailedWhitelistedDepositorsInner"), exports);
|
|
81
85
|
__exportStar(require("./submittedQuote"), exports);
|
|
82
86
|
__exportStar(require("./transaction"), exports);
|
|
83
87
|
__exportStar(require("./validatorInfo"), exports);
|
|
@@ -135,6 +139,8 @@ const getWithdrawalsResponse_1 = require("./getWithdrawalsResponse");
|
|
|
135
139
|
const internalTransaction_1 = require("./internalTransaction");
|
|
136
140
|
const listAllRFQsForFacilitator200Response_1 = require("./listAllRFQsForFacilitator200Response");
|
|
137
141
|
const minedBlock_1 = require("./minedBlock");
|
|
142
|
+
const presignedExitKey_1 = require("./presignedExitKey");
|
|
143
|
+
const presignedExitKeyMessage_1 = require("./presignedExitKeyMessage");
|
|
138
144
|
const provideEscrowHashForRFQDocumentRequest_1 = require("./provideEscrowHashForRFQDocumentRequest");
|
|
139
145
|
const quote_1 = require("./quote");
|
|
140
146
|
const rFQBidFacilitator_1 = require("./rFQBidFacilitator");
|
|
@@ -152,6 +158,8 @@ const rFQUpdatePayload_1 = require("./rFQUpdatePayload");
|
|
|
152
158
|
const registerWithdrawalRecipientSettlementRequest_1 = require("./registerWithdrawalRecipientSettlementRequest");
|
|
153
159
|
const settlementSteps_1 = require("./settlementSteps");
|
|
154
160
|
const smartContract_1 = require("./smartContract");
|
|
161
|
+
const smartContractDetailed_1 = require("./smartContractDetailed");
|
|
162
|
+
const smartContractDetailedWhitelistedDepositorsInner_1 = require("./smartContractDetailedWhitelistedDepositorsInner");
|
|
155
163
|
const submittedQuote_1 = require("./submittedQuote");
|
|
156
164
|
const transaction_1 = require("./transaction");
|
|
157
165
|
const validatorInfo_1 = require("./validatorInfo");
|
|
@@ -227,6 +235,8 @@ let typeMap = {
|
|
|
227
235
|
"InternalTransaction": internalTransaction_1.InternalTransaction,
|
|
228
236
|
"ListAllRFQsForFacilitator200Response": listAllRFQsForFacilitator200Response_1.ListAllRFQsForFacilitator200Response,
|
|
229
237
|
"MinedBlock": minedBlock_1.MinedBlock,
|
|
238
|
+
"PresignedExitKey": presignedExitKey_1.PresignedExitKey,
|
|
239
|
+
"PresignedExitKeyMessage": presignedExitKeyMessage_1.PresignedExitKeyMessage,
|
|
230
240
|
"ProvideEscrowHashForRFQDocumentRequest": provideEscrowHashForRFQDocumentRequest_1.ProvideEscrowHashForRFQDocumentRequest,
|
|
231
241
|
"Quote": quote_1.Quote,
|
|
232
242
|
"RFQBidFacilitator": rFQBidFacilitator_1.RFQBidFacilitator,
|
|
@@ -244,6 +254,8 @@ let typeMap = {
|
|
|
244
254
|
"RegisterWithdrawalRecipientSettlementRequest": registerWithdrawalRecipientSettlementRequest_1.RegisterWithdrawalRecipientSettlementRequest,
|
|
245
255
|
"SettlementSteps": settlementSteps_1.SettlementSteps,
|
|
246
256
|
"SmartContract": smartContract_1.SmartContract,
|
|
257
|
+
"SmartContractDetailed": smartContractDetailed_1.SmartContractDetailed,
|
|
258
|
+
"SmartContractDetailedWhitelistedDepositorsInner": smartContractDetailedWhitelistedDepositorsInner_1.SmartContractDetailedWhitelistedDepositorsInner,
|
|
247
259
|
"SubmittedQuote": submittedQuote_1.SubmittedQuote,
|
|
248
260
|
"Transaction": transaction_1.Transaction,
|
|
249
261
|
"ValidatorInfo": validatorInfo_1.ValidatorInfo,
|
|
@@ -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
|
+
];
|
|
@@ -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
|
+
];
|
|
@@ -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
|
+
export declare class SmartContractDetailedWhitelistedDepositorsInner {
|
|
13
|
+
'address': string;
|
|
14
|
+
'transactionHash': string;
|
|
15
|
+
'timeStamp': Date;
|
|
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,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
|
+
];
|
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';
|
|
@@ -52,6 +54,8 @@ export * from './rFQWebhookEventType';
|
|
|
52
54
|
export * from './registerWithdrawalRecipientSettlementRequest';
|
|
53
55
|
export * from './settlementSteps';
|
|
54
56
|
export * from './smartContract';
|
|
57
|
+
export * from './smartContractDetailed';
|
|
58
|
+
export * from './smartContractDetailedWhitelistedDepositorsInner';
|
|
55
59
|
export * from './submittedQuote';
|
|
56
60
|
export * from './transaction';
|
|
57
61
|
export * from './validatorInfo';
|
|
@@ -180,6 +184,12 @@ import { ListAllRFQsForFacilitator200Response } from './listAllRFQsForFacilitato
|
|
|
180
184
|
import { MinedBlock } from './minedBlock';
|
|
181
185
|
|
|
182
186
|
|
|
187
|
+
import { PresignedExitKey } from './presignedExitKey';
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
import { PresignedExitKeyMessage } from './presignedExitKeyMessage';
|
|
191
|
+
|
|
192
|
+
|
|
183
193
|
import { ProvideEscrowHashForRFQDocumentRequest } from './provideEscrowHashForRFQDocumentRequest';
|
|
184
194
|
|
|
185
195
|
|
|
@@ -246,6 +256,12 @@ import { SettlementSteps } from './settlementSteps';
|
|
|
246
256
|
import { SmartContract } from './smartContract';
|
|
247
257
|
|
|
248
258
|
|
|
259
|
+
import { SmartContractDetailed } from './smartContractDetailed';
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
import { SmartContractDetailedWhitelistedDepositorsInner } from './smartContractDetailedWhitelistedDepositorsInner';
|
|
263
|
+
|
|
264
|
+
|
|
249
265
|
import { SubmittedQuote } from './submittedQuote';
|
|
250
266
|
|
|
251
267
|
|
|
@@ -384,6 +400,8 @@ let typeMap: {[index: string]: any} = {
|
|
|
384
400
|
"InternalTransaction": InternalTransaction,
|
|
385
401
|
"ListAllRFQsForFacilitator200Response": ListAllRFQsForFacilitator200Response,
|
|
386
402
|
"MinedBlock": MinedBlock,
|
|
403
|
+
"PresignedExitKey": PresignedExitKey,
|
|
404
|
+
"PresignedExitKeyMessage": PresignedExitKeyMessage,
|
|
387
405
|
"ProvideEscrowHashForRFQDocumentRequest": ProvideEscrowHashForRFQDocumentRequest,
|
|
388
406
|
"Quote": Quote,
|
|
389
407
|
"RFQBidFacilitator": RFQBidFacilitator,
|
|
@@ -401,6 +419,8 @@ let typeMap: {[index: string]: any} = {
|
|
|
401
419
|
"RegisterWithdrawalRecipientSettlementRequest": RegisterWithdrawalRecipientSettlementRequest,
|
|
402
420
|
"SettlementSteps": SettlementSteps,
|
|
403
421
|
"SmartContract": SmartContract,
|
|
422
|
+
"SmartContractDetailed": SmartContractDetailed,
|
|
423
|
+
"SmartContractDetailedWhitelistedDepositorsInner": SmartContractDetailedWhitelistedDepositorsInner,
|
|
404
424
|
"SubmittedQuote": SubmittedQuote,
|
|
405
425
|
"Transaction": Transaction,
|
|
406
426
|
"ValidatorInfo": ValidatorInfo,
|
|
@@ -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
|
+
|
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northstake/northstakeapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
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
|
}
|