@northstake/northstakeapi 1.0.28 → 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 +2 -0
- package/api/validatorsApi.ts +91 -0
- package/api.ts +2 -0
- package/dist/api/validatorsApi.d.ts +15 -0
- package/dist/api/validatorsApi.js +71 -0
- package/dist/api.d.ts +2 -0
- package/dist/api.js +2 -0
- package/dist/model/models.d.ts +2 -0
- package/dist/model/models.js +6 -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/model/models.ts +10 -0
- package/model/presignedExitKey.ts +38 -0
- package/model/presignedExitKeyMessage.ts +37 -0
- package/package.json +1 -1
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
|
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';
|
|
@@ -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';
|
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);
|
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';
|
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);
|
|
@@ -137,6 +139,8 @@ const getWithdrawalsResponse_1 = require("./getWithdrawalsResponse");
|
|
|
137
139
|
const internalTransaction_1 = require("./internalTransaction");
|
|
138
140
|
const listAllRFQsForFacilitator200Response_1 = require("./listAllRFQsForFacilitator200Response");
|
|
139
141
|
const minedBlock_1 = require("./minedBlock");
|
|
142
|
+
const presignedExitKey_1 = require("./presignedExitKey");
|
|
143
|
+
const presignedExitKeyMessage_1 = require("./presignedExitKeyMessage");
|
|
140
144
|
const provideEscrowHashForRFQDocumentRequest_1 = require("./provideEscrowHashForRFQDocumentRequest");
|
|
141
145
|
const quote_1 = require("./quote");
|
|
142
146
|
const rFQBidFacilitator_1 = require("./rFQBidFacilitator");
|
|
@@ -231,6 +235,8 @@ let typeMap = {
|
|
|
231
235
|
"InternalTransaction": internalTransaction_1.InternalTransaction,
|
|
232
236
|
"ListAllRFQsForFacilitator200Response": listAllRFQsForFacilitator200Response_1.ListAllRFQsForFacilitator200Response,
|
|
233
237
|
"MinedBlock": minedBlock_1.MinedBlock,
|
|
238
|
+
"PresignedExitKey": presignedExitKey_1.PresignedExitKey,
|
|
239
|
+
"PresignedExitKeyMessage": presignedExitKeyMessage_1.PresignedExitKeyMessage,
|
|
234
240
|
"ProvideEscrowHashForRFQDocumentRequest": provideEscrowHashForRFQDocumentRequest_1.ProvideEscrowHashForRFQDocumentRequest,
|
|
235
241
|
"Quote": quote_1.Quote,
|
|
236
242
|
"RFQBidFacilitator": rFQBidFacilitator_1.RFQBidFacilitator,
|
|
@@ -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
|
+
];
|
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';
|
|
@@ -182,6 +184,12 @@ import { ListAllRFQsForFacilitator200Response } from './listAllRFQsForFacilitato
|
|
|
182
184
|
import { MinedBlock } from './minedBlock';
|
|
183
185
|
|
|
184
186
|
|
|
187
|
+
import { PresignedExitKey } from './presignedExitKey';
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
import { PresignedExitKeyMessage } from './presignedExitKeyMessage';
|
|
191
|
+
|
|
192
|
+
|
|
185
193
|
import { ProvideEscrowHashForRFQDocumentRequest } from './provideEscrowHashForRFQDocumentRequest';
|
|
186
194
|
|
|
187
195
|
|
|
@@ -392,6 +400,8 @@ let typeMap: {[index: string]: any} = {
|
|
|
392
400
|
"InternalTransaction": InternalTransaction,
|
|
393
401
|
"ListAllRFQsForFacilitator200Response": ListAllRFQsForFacilitator200Response,
|
|
394
402
|
"MinedBlock": MinedBlock,
|
|
403
|
+
"PresignedExitKey": PresignedExitKey,
|
|
404
|
+
"PresignedExitKeyMessage": PresignedExitKeyMessage,
|
|
395
405
|
"ProvideEscrowHashForRFQDocumentRequest": ProvideEscrowHashForRFQDocumentRequest,
|
|
396
406
|
"Quote": Quote,
|
|
397
407
|
"RFQBidFacilitator": RFQBidFacilitator,
|
|
@@ -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
|
+
|