@northstake/northstakeapi 1.0.16 → 1.0.17
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 -3
- package/.openapi-generator/VERSION +1 -1
- package/api/linkedWalletsApi.ts +7 -14
- package/api/managedUsersLinkedWalletsApi.ts +9 -16
- package/api/validatorsApi.ts +3 -3
- package/api.ts +1 -3
- package/dist/api/linkedWalletsApi.d.ts +2 -4
- package/dist/api/linkedWalletsApi.js +7 -13
- package/dist/api/managedUsersLinkedWalletsApi.d.ts +2 -4
- package/dist/api/managedUsersLinkedWalletsApi.js +9 -15
- package/dist/api/validatorsApi.d.ts +2 -2
- package/dist/api/validatorsApi.js +1 -1
- package/dist/api.d.ts +1 -3
- package/dist/api.js +1 -3
- package/dist/model/createRFQRequest.d.ts +1 -1
- package/dist/model/createRFQRequest.js +2 -2
- package/dist/model/models.d.ts +1 -3
- package/dist/model/models.js +1 -7
- package/dist/model/order.d.ts +2 -2
- package/dist/model/order.js +2 -2
- package/dist/model/validatorInfo.d.ts +7 -13
- package/dist/model/validatorInfo.js +16 -21
- package/dist/model/{validatorContractType.d.ts → validatorType.d.ts} +1 -1
- package/dist/model/wallet.d.ts +4 -3
- package/dist/model/wallet.js +5 -0
- package/model/createRFQRequest.ts +3 -3
- package/model/models.ts +3 -13
- package/model/order.ts +4 -4
- package/model/validatorInfo.ts +24 -35
- package/model/{validatorContractType.ts → validatorType.ts} +1 -1
- package/model/wallet.ts +9 -3
- package/package.json +2 -2
- package/dist/model/validatorInfoValidatorType.d.ts +0 -30
- package/dist/model/validatorInfoValidatorType.js +0 -33
- package/dist/model/validatorInfoValidatorTypeContract.d.ts +0 -29
- package/dist/model/validatorInfoValidatorTypeContract.js +0 -33
- package/model/validatorInfoValidatorType.ts +0 -41
- package/model/validatorInfoValidatorTypeContract.ts +0 -40
- /package/dist/model/{validatorContractType.js → validatorType.js} +0 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -81,11 +81,9 @@ model/transactionsforUser.ts
|
|
|
81
81
|
model/unstakeStep.ts
|
|
82
82
|
model/unstakeStepElement.ts
|
|
83
83
|
model/unstakeStepType.ts
|
|
84
|
-
model/validatorContractType.ts
|
|
85
84
|
model/validatorInfo.ts
|
|
86
|
-
model/validatorInfoValidatorType.ts
|
|
87
|
-
model/validatorInfoValidatorTypeContract.ts
|
|
88
85
|
model/validatorKeyHolder.ts
|
|
86
|
+
model/validatorType.ts
|
|
89
87
|
model/wallet.ts
|
|
90
88
|
model/webHookLookupAnswer.ts
|
|
91
89
|
model/webhookPayload.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.7.0-SNAPSHOT
|
package/api/linkedWalletsApi.ts
CHANGED
|
@@ -16,7 +16,6 @@ import http from 'http';
|
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { AddLinkedWalletRequest } from '../model/addLinkedWalletRequest';
|
|
19
|
-
import { Asset } from '../model/asset';
|
|
20
19
|
import { ErrorResponse } from '../model/errorResponse';
|
|
21
20
|
import { Wallet } from '../model/wallet';
|
|
22
21
|
|
|
@@ -187,32 +186,26 @@ export class LinkedWalletsApi {
|
|
|
187
186
|
/**
|
|
188
187
|
*
|
|
189
188
|
* @summary Delete a linked/external wallet
|
|
190
|
-
* @param
|
|
191
|
-
* @param asset
|
|
189
|
+
* @param walletId The id of the wallet you wish to delete
|
|
192
190
|
*/
|
|
193
191
|
|
|
194
192
|
|
|
195
193
|
|
|
196
194
|
|
|
197
195
|
|
|
198
|
-
public async deleteLinkedWallet (
|
|
196
|
+
public async deleteLinkedWallet (walletId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: any, status: number }> {
|
|
199
197
|
|
|
200
|
-
const localVarPath = this.basePath + '/linkedWallets/{
|
|
201
|
-
.replace('{' + '
|
|
202
|
-
.replace('{' + 'asset' + '}', encodeURIComponent(String(asset)));
|
|
198
|
+
const localVarPath = this.basePath + '/linkedWallets/{walletId}'
|
|
199
|
+
.replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)));
|
|
203
200
|
|
|
204
201
|
let localVarQueryParameters: any = {};
|
|
205
202
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
206
203
|
let localVarFormParams: any = {};
|
|
207
204
|
|
|
208
205
|
|
|
209
|
-
// Verify required parameter '
|
|
210
|
-
if (
|
|
211
|
-
throw new Error('Required parameter "
|
|
212
|
-
}
|
|
213
|
-
// Verify required parameter 'asset' is not null or undefined
|
|
214
|
-
if (asset === null || asset === undefined) {
|
|
215
|
-
throw new Error('Required parameter "asset" was null or undefined when calling deleteLinkedWallet.');
|
|
206
|
+
// Verify required parameter 'walletId' is not null or undefined
|
|
207
|
+
if (walletId === null || walletId === undefined) {
|
|
208
|
+
throw new Error('Required parameter "walletId" was null or undefined when calling deleteLinkedWallet.');
|
|
216
209
|
}
|
|
217
210
|
|
|
218
211
|
|
|
@@ -16,7 +16,6 @@ import http from 'http';
|
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { AddLinkedWalletForUserRequest } from '../model/addLinkedWalletForUserRequest';
|
|
19
|
-
import { Asset } from '../model/asset';
|
|
20
19
|
import { ErrorResponse } from '../model/errorResponse';
|
|
21
20
|
import { Wallet } from '../model/wallet';
|
|
22
21
|
|
|
@@ -193,21 +192,19 @@ export class ManagedUsersLinkedWalletsApi {
|
|
|
193
192
|
/**
|
|
194
193
|
*
|
|
195
194
|
* @summary Delete a linked wallet for a managed user
|
|
195
|
+
* @param walletId The id of the linked wallet to delete
|
|
196
196
|
* @param userId The unique identifier for the managed user
|
|
197
|
-
* @param walletAddress The wallet address of the linked wallet to delete
|
|
198
|
-
* @param asset
|
|
199
197
|
*/
|
|
200
198
|
|
|
201
199
|
|
|
202
200
|
|
|
203
201
|
|
|
204
202
|
|
|
205
|
-
public async deleteLinkedWalletForUser (
|
|
203
|
+
public async deleteLinkedWalletForUser (walletId: string, userId: string, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: any, status: number }> {
|
|
206
204
|
|
|
207
|
-
const localVarPath = this.basePath + '/managedUsers/{userId}/linkedWallets/{
|
|
208
|
-
.replace('{' + '
|
|
209
|
-
.replace('{' + '
|
|
210
|
-
.replace('{' + 'asset' + '}', encodeURIComponent(String(asset)));
|
|
205
|
+
const localVarPath = this.basePath + '/managedUsers/{userId}/linkedWallets/{walletId}'
|
|
206
|
+
.replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)))
|
|
207
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
211
208
|
|
|
212
209
|
let localVarQueryParameters: any = {};
|
|
213
210
|
let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
|
|
@@ -220,18 +217,14 @@ export class ManagedUsersLinkedWalletsApi {
|
|
|
220
217
|
let localVarFormParams: any = {};
|
|
221
218
|
|
|
222
219
|
|
|
220
|
+
// Verify required parameter 'walletId' is not null or undefined
|
|
221
|
+
if (walletId === null || walletId === undefined) {
|
|
222
|
+
throw new Error('Required parameter "walletId" was null or undefined when calling deleteLinkedWalletForUser.');
|
|
223
|
+
}
|
|
223
224
|
// Verify required parameter 'userId' is not null or undefined
|
|
224
225
|
if (userId === null || userId === undefined) {
|
|
225
226
|
throw new Error('Required parameter "userId" was null or undefined when calling deleteLinkedWalletForUser.');
|
|
226
227
|
}
|
|
227
|
-
// Verify required parameter 'walletAddress' is not null or undefined
|
|
228
|
-
if (walletAddress === null || walletAddress === undefined) {
|
|
229
|
-
throw new Error('Required parameter "walletAddress" was null or undefined when calling deleteLinkedWalletForUser.');
|
|
230
|
-
}
|
|
231
|
-
// Verify required parameter 'asset' is not null or undefined
|
|
232
|
-
if (asset === null || asset === undefined) {
|
|
233
|
-
throw new Error('Required parameter "asset" was null or undefined when calling deleteLinkedWalletForUser.');
|
|
234
|
-
}
|
|
235
228
|
|
|
236
229
|
|
|
237
230
|
|
package/api/validatorsApi.ts
CHANGED
|
@@ -16,9 +16,9 @@ import http from 'http';
|
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
|
-
import { ValidatorContractType } from '../model/validatorContractType';
|
|
20
19
|
import { ValidatorInfo } from '../model/validatorInfo';
|
|
21
20
|
import { ValidatorKeyHolder } from '../model/validatorKeyHolder';
|
|
21
|
+
import { ValidatorType } from '../model/validatorType';
|
|
22
22
|
|
|
23
23
|
import { ObjectSerializer, Authentication, VoidAuth, Interceptor } from '../model/models';
|
|
24
24
|
import { HttpBasicAuth, HttpBearerAuth, ApiKeyAuth, OAuth, JWTAuth } from '../model/models';
|
|
@@ -110,7 +110,7 @@ export class ValidatorsApi {
|
|
|
110
110
|
|
|
111
111
|
|
|
112
112
|
|
|
113
|
-
public async getValidators (keyHolder?: ValidatorKeyHolder, contractType?:
|
|
113
|
+
public async getValidators (keyHolder?: ValidatorKeyHolder, contractType?: ValidatorType, options: {headers: {[name: string]: string}} = {headers: {}}) : Promise<{ body: Array<ValidatorInfo>, status: number }> {
|
|
114
114
|
|
|
115
115
|
const localVarPath = this.basePath + '/validators';
|
|
116
116
|
|
|
@@ -132,7 +132,7 @@ export class ValidatorsApi {
|
|
|
132
132
|
localVarQueryParameters['key_holder'] = ObjectSerializer.serialize(keyHolder, "ValidatorKeyHolder");
|
|
133
133
|
}
|
|
134
134
|
if (contractType !== undefined) {
|
|
135
|
-
localVarQueryParameters['contract_type'] = ObjectSerializer.serialize(contractType, "
|
|
135
|
+
localVarQueryParameters['contract_type'] = ObjectSerializer.serialize(contractType, "ValidatorType");
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
|
package/api.ts
CHANGED
|
@@ -77,11 +77,9 @@ export * from './model/./transactionsforUser';
|
|
|
77
77
|
export * from './model/./unstakeStep';
|
|
78
78
|
export * from './model/./unstakeStepElement';
|
|
79
79
|
export * from './model/./unstakeStepType';
|
|
80
|
-
export * from './model/./validatorContractType';
|
|
81
80
|
export * from './model/./validatorInfo';
|
|
82
|
-
export * from './model/./validatorInfoValidatorType';
|
|
83
|
-
export * from './model/./validatorInfoValidatorTypeContract';
|
|
84
81
|
export * from './model/./validatorKeyHolder';
|
|
82
|
+
export * from './model/./validatorType';
|
|
85
83
|
export * from './model/./wallet';
|
|
86
84
|
export * from './model/./webHookLookupAnswer';
|
|
87
85
|
export * from './model/./webhookPayload';
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { AddLinkedWalletRequest } from '../model/addLinkedWalletRequest';
|
|
13
|
-
import { Asset } from '../model/asset';
|
|
14
13
|
import { Wallet } from '../model/wallet';
|
|
15
14
|
import { Authentication, Interceptor } from '../model/models';
|
|
16
15
|
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
@@ -53,10 +52,9 @@ export declare class LinkedWalletsApi {
|
|
|
53
52
|
/**
|
|
54
53
|
*
|
|
55
54
|
* @summary Delete a linked/external wallet
|
|
56
|
-
* @param
|
|
57
|
-
* @param asset
|
|
55
|
+
* @param walletId The id of the wallet you wish to delete
|
|
58
56
|
*/
|
|
59
|
-
deleteLinkedWallet(
|
|
57
|
+
deleteLinkedWallet(walletId: string, options?: {
|
|
60
58
|
headers: {
|
|
61
59
|
[name: string]: string;
|
|
62
60
|
};
|
|
@@ -144,23 +144,17 @@ class LinkedWalletsApi {
|
|
|
144
144
|
/**
|
|
145
145
|
*
|
|
146
146
|
* @summary Delete a linked/external wallet
|
|
147
|
-
* @param
|
|
148
|
-
* @param asset
|
|
147
|
+
* @param walletId The id of the wallet you wish to delete
|
|
149
148
|
*/
|
|
150
|
-
async deleteLinkedWallet(
|
|
151
|
-
const localVarPath = this.basePath + '/linkedWallets/{
|
|
152
|
-
.replace('{' + '
|
|
153
|
-
.replace('{' + 'asset' + '}', encodeURIComponent(String(asset)));
|
|
149
|
+
async deleteLinkedWallet(walletId, options = { headers: {} }) {
|
|
150
|
+
const localVarPath = this.basePath + '/linkedWallets/{walletId}'
|
|
151
|
+
.replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)));
|
|
154
152
|
let localVarQueryParameters = {};
|
|
155
153
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
156
154
|
let localVarFormParams = {};
|
|
157
|
-
// Verify required parameter '
|
|
158
|
-
if (
|
|
159
|
-
throw new Error('Required parameter "
|
|
160
|
-
}
|
|
161
|
-
// Verify required parameter 'asset' is not null or undefined
|
|
162
|
-
if (asset === null || asset === undefined) {
|
|
163
|
-
throw new Error('Required parameter "asset" was null or undefined when calling deleteLinkedWallet.');
|
|
155
|
+
// Verify required parameter 'walletId' is not null or undefined
|
|
156
|
+
if (walletId === null || walletId === undefined) {
|
|
157
|
+
throw new Error('Required parameter "walletId" was null or undefined when calling deleteLinkedWallet.');
|
|
164
158
|
}
|
|
165
159
|
Object.assign(localVarHeaderParams, options.headers);
|
|
166
160
|
let localVarUseFormData = false;
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { AddLinkedWalletForUserRequest } from '../model/addLinkedWalletForUserRequest';
|
|
13
|
-
import { Asset } from '../model/asset';
|
|
14
13
|
import { Wallet } from '../model/wallet';
|
|
15
14
|
import { Authentication, Interceptor } from '../model/models';
|
|
16
15
|
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
@@ -54,11 +53,10 @@ export declare class ManagedUsersLinkedWalletsApi {
|
|
|
54
53
|
/**
|
|
55
54
|
*
|
|
56
55
|
* @summary Delete a linked wallet for a managed user
|
|
56
|
+
* @param walletId The id of the linked wallet to delete
|
|
57
57
|
* @param userId The unique identifier for the managed user
|
|
58
|
-
* @param walletAddress The wallet address of the linked wallet to delete
|
|
59
|
-
* @param asset
|
|
60
58
|
*/
|
|
61
|
-
deleteLinkedWalletForUser(
|
|
59
|
+
deleteLinkedWalletForUser(walletId: string, userId: string, options?: {
|
|
62
60
|
headers: {
|
|
63
61
|
[name: string]: string;
|
|
64
62
|
};
|
|
@@ -150,15 +150,13 @@ class ManagedUsersLinkedWalletsApi {
|
|
|
150
150
|
/**
|
|
151
151
|
*
|
|
152
152
|
* @summary Delete a linked wallet for a managed user
|
|
153
|
+
* @param walletId The id of the linked wallet to delete
|
|
153
154
|
* @param userId The unique identifier for the managed user
|
|
154
|
-
* @param walletAddress The wallet address of the linked wallet to delete
|
|
155
|
-
* @param asset
|
|
156
155
|
*/
|
|
157
|
-
async deleteLinkedWalletForUser(
|
|
158
|
-
const localVarPath = this.basePath + '/managedUsers/{userId}/linkedWallets/{
|
|
159
|
-
.replace('{' + '
|
|
160
|
-
.replace('{' + '
|
|
161
|
-
.replace('{' + 'asset' + '}', encodeURIComponent(String(asset)));
|
|
156
|
+
async deleteLinkedWalletForUser(walletId, userId, options = { headers: {} }) {
|
|
157
|
+
const localVarPath = this.basePath + '/managedUsers/{userId}/linkedWallets/{walletId}'
|
|
158
|
+
.replace('{' + 'walletId' + '}', encodeURIComponent(String(walletId)))
|
|
159
|
+
.replace('{' + 'userId' + '}', encodeURIComponent(String(userId)));
|
|
162
160
|
let localVarQueryParameters = {};
|
|
163
161
|
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
164
162
|
const produces = ['application/json'];
|
|
@@ -169,18 +167,14 @@ class ManagedUsersLinkedWalletsApi {
|
|
|
169
167
|
localVarHeaderParams.Accept = produces.join(',');
|
|
170
168
|
}
|
|
171
169
|
let localVarFormParams = {};
|
|
170
|
+
// Verify required parameter 'walletId' is not null or undefined
|
|
171
|
+
if (walletId === null || walletId === undefined) {
|
|
172
|
+
throw new Error('Required parameter "walletId" was null or undefined when calling deleteLinkedWalletForUser.');
|
|
173
|
+
}
|
|
172
174
|
// Verify required parameter 'userId' is not null or undefined
|
|
173
175
|
if (userId === null || userId === undefined) {
|
|
174
176
|
throw new Error('Required parameter "userId" was null or undefined when calling deleteLinkedWalletForUser.');
|
|
175
177
|
}
|
|
176
|
-
// Verify required parameter 'walletAddress' is not null or undefined
|
|
177
|
-
if (walletAddress === null || walletAddress === undefined) {
|
|
178
|
-
throw new Error('Required parameter "walletAddress" was null or undefined when calling deleteLinkedWalletForUser.');
|
|
179
|
-
}
|
|
180
|
-
// Verify required parameter 'asset' is not null or undefined
|
|
181
|
-
if (asset === null || asset === undefined) {
|
|
182
|
-
throw new Error('Required parameter "asset" was null or undefined when calling deleteLinkedWalletForUser.');
|
|
183
|
-
}
|
|
184
178
|
Object.assign(localVarHeaderParams, options.headers);
|
|
185
179
|
let localVarUseFormData = false;
|
|
186
180
|
let localVarRequestOptions = {
|
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { ValidatorContractType } from '../model/validatorContractType';
|
|
13
12
|
import { ValidatorInfo } from '../model/validatorInfo';
|
|
14
13
|
import { ValidatorKeyHolder } from '../model/validatorKeyHolder';
|
|
14
|
+
import { ValidatorType } from '../model/validatorType';
|
|
15
15
|
import { Authentication, Interceptor } from '../model/models';
|
|
16
16
|
import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
17
17
|
export declare enum ValidatorsApiApiKeys {
|
|
@@ -43,7 +43,7 @@ export declare class ValidatorsApi {
|
|
|
43
43
|
* @param keyHolder Filter by key holder
|
|
44
44
|
* @param contractType Filter by contract type
|
|
45
45
|
*/
|
|
46
|
-
getValidators(keyHolder?: ValidatorKeyHolder, contractType?:
|
|
46
|
+
getValidators(keyHolder?: ValidatorKeyHolder, contractType?: ValidatorType, options?: {
|
|
47
47
|
headers: {
|
|
48
48
|
[name: string]: string;
|
|
49
49
|
};
|
|
@@ -97,7 +97,7 @@ class ValidatorsApi {
|
|
|
97
97
|
localVarQueryParameters['key_holder'] = models_1.ObjectSerializer.serialize(keyHolder, "ValidatorKeyHolder");
|
|
98
98
|
}
|
|
99
99
|
if (contractType !== undefined) {
|
|
100
|
-
localVarQueryParameters['contract_type'] = models_1.ObjectSerializer.serialize(contractType, "
|
|
100
|
+
localVarQueryParameters['contract_type'] = models_1.ObjectSerializer.serialize(contractType, "ValidatorType");
|
|
101
101
|
}
|
|
102
102
|
Object.assign(localVarHeaderParams, options.headers);
|
|
103
103
|
let localVarUseFormData = false;
|
package/dist/api.d.ts
CHANGED
|
@@ -75,11 +75,9 @@ export * from './model/./transactionsforUser';
|
|
|
75
75
|
export * from './model/./unstakeStep';
|
|
76
76
|
export * from './model/./unstakeStepElement';
|
|
77
77
|
export * from './model/./unstakeStepType';
|
|
78
|
-
export * from './model/./validatorContractType';
|
|
79
78
|
export * from './model/./validatorInfo';
|
|
80
|
-
export * from './model/./validatorInfoValidatorType';
|
|
81
|
-
export * from './model/./validatorInfoValidatorTypeContract';
|
|
82
79
|
export * from './model/./validatorKeyHolder';
|
|
80
|
+
export * from './model/./validatorType';
|
|
83
81
|
export * from './model/./wallet';
|
|
84
82
|
export * from './model/./webHookLookupAnswer';
|
|
85
83
|
export * from './model/./webhookPayload';
|
package/dist/api.js
CHANGED
|
@@ -94,11 +94,9 @@ __exportStar(require("./model/./transactionsforUser"), exports);
|
|
|
94
94
|
__exportStar(require("./model/./unstakeStep"), exports);
|
|
95
95
|
__exportStar(require("./model/./unstakeStepElement"), exports);
|
|
96
96
|
__exportStar(require("./model/./unstakeStepType"), exports);
|
|
97
|
-
__exportStar(require("./model/./validatorContractType"), exports);
|
|
98
97
|
__exportStar(require("./model/./validatorInfo"), exports);
|
|
99
|
-
__exportStar(require("./model/./validatorInfoValidatorType"), exports);
|
|
100
|
-
__exportStar(require("./model/./validatorInfoValidatorTypeContract"), exports);
|
|
101
98
|
__exportStar(require("./model/./validatorKeyHolder"), exports);
|
|
99
|
+
__exportStar(require("./model/./validatorType"), exports);
|
|
102
100
|
__exportStar(require("./model/./wallet"), exports);
|
|
103
101
|
__exportStar(require("./model/./webHookLookupAnswer"), exports);
|
|
104
102
|
__exportStar(require("./model/./webhookPayload"), exports);
|
package/dist/model/models.d.ts
CHANGED
|
@@ -61,11 +61,9 @@ export * from './transactionsforUser';
|
|
|
61
61
|
export * from './unstakeStep';
|
|
62
62
|
export * from './unstakeStepElement';
|
|
63
63
|
export * from './unstakeStepType';
|
|
64
|
-
export * from './validatorContractType';
|
|
65
64
|
export * from './validatorInfo';
|
|
66
|
-
export * from './validatorInfoValidatorType';
|
|
67
|
-
export * from './validatorInfoValidatorTypeContract';
|
|
68
65
|
export * from './validatorKeyHolder';
|
|
66
|
+
export * from './validatorType';
|
|
69
67
|
export * from './wallet';
|
|
70
68
|
export * from './webHookLookupAnswer';
|
|
71
69
|
export * from './webhookPayload';
|
package/dist/model/models.js
CHANGED
|
@@ -88,11 +88,9 @@ __exportStar(require("./transactionsforUser"), exports);
|
|
|
88
88
|
__exportStar(require("./unstakeStep"), exports);
|
|
89
89
|
__exportStar(require("./unstakeStepElement"), exports);
|
|
90
90
|
__exportStar(require("./unstakeStepType"), exports);
|
|
91
|
-
__exportStar(require("./validatorContractType"), exports);
|
|
92
91
|
__exportStar(require("./validatorInfo"), exports);
|
|
93
|
-
__exportStar(require("./validatorInfoValidatorType"), exports);
|
|
94
|
-
__exportStar(require("./validatorInfoValidatorTypeContract"), exports);
|
|
95
92
|
__exportStar(require("./validatorKeyHolder"), exports);
|
|
93
|
+
__exportStar(require("./validatorType"), exports);
|
|
96
94
|
__exportStar(require("./wallet"), exports);
|
|
97
95
|
__exportStar(require("./webHookLookupAnswer"), exports);
|
|
98
96
|
__exportStar(require("./webhookPayload"), exports);
|
|
@@ -168,8 +166,6 @@ const transactionsforUser_1 = require("./transactionsforUser");
|
|
|
168
166
|
const unstakeStep_1 = require("./unstakeStep");
|
|
169
167
|
const unstakeStepElement_1 = require("./unstakeStepElement");
|
|
170
168
|
const validatorInfo_1 = require("./validatorInfo");
|
|
171
|
-
const validatorInfoValidatorType_1 = require("./validatorInfoValidatorType");
|
|
172
|
-
const validatorInfoValidatorTypeContract_1 = require("./validatorInfoValidatorTypeContract");
|
|
173
169
|
const wallet_1 = require("./wallet");
|
|
174
170
|
const webHookLookupAnswer_1 = require("./webHookLookupAnswer");
|
|
175
171
|
const webhookPayload_1 = require("./webhookPayload");
|
|
@@ -262,8 +258,6 @@ let typeMap = {
|
|
|
262
258
|
"UnstakeStep": unstakeStep_1.UnstakeStep,
|
|
263
259
|
"UnstakeStepElement": unstakeStepElement_1.UnstakeStepElement,
|
|
264
260
|
"ValidatorInfo": validatorInfo_1.ValidatorInfo,
|
|
265
|
-
"ValidatorInfoValidatorType": validatorInfoValidatorType_1.ValidatorInfoValidatorType,
|
|
266
|
-
"ValidatorInfoValidatorTypeContract": validatorInfoValidatorTypeContract_1.ValidatorInfoValidatorTypeContract,
|
|
267
261
|
"Wallet": wallet_1.Wallet,
|
|
268
262
|
"WebHookLookupAnswer": webHookLookupAnswer_1.WebHookLookupAnswer,
|
|
269
263
|
"WebhookPayload": webhookPayload_1.WebhookPayload,
|
package/dist/model/order.d.ts
CHANGED
|
@@ -23,9 +23,9 @@ export declare class Order {
|
|
|
23
23
|
'amount'?: number;
|
|
24
24
|
'validatorKey'?: EthereumValidatorKey;
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Id of the linked wallet that should be the target of a withdrawal order
|
|
27
27
|
*/
|
|
28
|
-
'
|
|
28
|
+
'targetWalletId'?: string;
|
|
29
29
|
static discriminator: string | undefined;
|
|
30
30
|
static attributeTypeMap: Array<{
|
|
31
31
|
name: string;
|
package/dist/model/order.js
CHANGED
|
@@ -10,7 +10,8 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import { ExitEstimateSeller } from './exitEstimateSeller';
|
|
13
|
-
import {
|
|
13
|
+
import { ValidatorKeyHolder } from './validatorKeyHolder';
|
|
14
|
+
import { ValidatorType } from './validatorType';
|
|
14
15
|
/**
|
|
15
16
|
* Information about a blockchain validator including status and balance.
|
|
16
17
|
*/
|
|
@@ -20,23 +21,16 @@ export declare class ValidatorInfo {
|
|
|
20
21
|
* Validator asset
|
|
21
22
|
*/
|
|
22
23
|
'asset'?: ValidatorInfo;
|
|
24
|
+
'validator_public_key'?: string;
|
|
23
25
|
'validator_index'?: number;
|
|
24
26
|
/**
|
|
25
|
-
* Validator owner id
|
|
26
|
-
*/
|
|
27
|
-
'owner_id'?: string;
|
|
28
|
-
/**
|
|
29
27
|
* Status of the validator on the network
|
|
30
28
|
*/
|
|
31
29
|
'status'?: ValidatorInfo;
|
|
32
|
-
/**
|
|
33
|
-
* Associated Northstake staking order
|
|
34
|
-
*/
|
|
35
|
-
'associated_order_id'?: string;
|
|
36
|
-
'start_date'?: number;
|
|
37
|
-
'end_date'?: number;
|
|
38
30
|
'exit_estimate'?: ExitEstimateSeller;
|
|
39
|
-
'
|
|
31
|
+
'key_holder'?: ValidatorKeyHolder;
|
|
32
|
+
'validator_type'?: ValidatorType;
|
|
33
|
+
'contract_address'?: string;
|
|
40
34
|
static discriminator: string | undefined;
|
|
41
35
|
static attributeTypeMap: Array<{
|
|
42
36
|
name: string;
|
|
@@ -57,5 +51,5 @@ export declare namespace ValidatorInfo {
|
|
|
57
51
|
/**
|
|
58
52
|
* Status of the validator on the network
|
|
59
53
|
*/
|
|
60
|
-
type statusEnum = '
|
|
54
|
+
type statusEnum = 'activating' | 'active' | 'exiting' | 'exited';
|
|
61
55
|
}
|
|
@@ -33,44 +33,39 @@ ValidatorInfo.attributeTypeMap = [
|
|
|
33
33
|
"baseName": "asset",
|
|
34
34
|
"type": "ValidatorInfo.AssetEnum"
|
|
35
35
|
},
|
|
36
|
+
{
|
|
37
|
+
"name": "validator_public_key",
|
|
38
|
+
"baseName": "validator_public_key",
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
36
41
|
{
|
|
37
42
|
"name": "validator_index",
|
|
38
43
|
"baseName": "validator_index",
|
|
39
44
|
"type": "number"
|
|
40
45
|
},
|
|
41
|
-
{
|
|
42
|
-
"name": "owner_id",
|
|
43
|
-
"baseName": "owner_id",
|
|
44
|
-
"type": "string"
|
|
45
|
-
},
|
|
46
46
|
{
|
|
47
47
|
"name": "status",
|
|
48
48
|
"baseName": "status",
|
|
49
49
|
"type": "ValidatorInfo.StatusEnum"
|
|
50
50
|
},
|
|
51
|
-
{
|
|
52
|
-
"name": "associated_order_id",
|
|
53
|
-
"baseName": "associated_order_id",
|
|
54
|
-
"type": "string"
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"name": "start_date",
|
|
58
|
-
"baseName": "start_date",
|
|
59
|
-
"type": "number"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"name": "end_date",
|
|
63
|
-
"baseName": "end_date",
|
|
64
|
-
"type": "number"
|
|
65
|
-
},
|
|
66
51
|
{
|
|
67
52
|
"name": "exit_estimate",
|
|
68
53
|
"baseName": "exit_estimate",
|
|
69
54
|
"type": "ExitEstimateSeller"
|
|
70
55
|
},
|
|
56
|
+
{
|
|
57
|
+
"name": "key_holder",
|
|
58
|
+
"baseName": "key_holder",
|
|
59
|
+
"type": "ValidatorKeyHolder"
|
|
60
|
+
},
|
|
71
61
|
{
|
|
72
62
|
"name": "validator_type",
|
|
73
63
|
"baseName": "validator_type",
|
|
74
|
-
"type": "
|
|
64
|
+
"type": "ValidatorType"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "contract_address",
|
|
68
|
+
"baseName": "contract_address",
|
|
69
|
+
"type": "string"
|
|
75
70
|
}
|
|
76
71
|
];
|
package/dist/model/wallet.d.ts
CHANGED
|
@@ -14,9 +14,10 @@ import { Asset } from './asset';
|
|
|
14
14
|
* Details about a linked wallet including asset, address, and name.
|
|
15
15
|
*/
|
|
16
16
|
export declare class Wallet {
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'
|
|
17
|
+
'id': string;
|
|
18
|
+
'asset': Asset;
|
|
19
|
+
'walletAddress': string;
|
|
20
|
+
'walletName': string;
|
|
20
21
|
static discriminator: string | undefined;
|
|
21
22
|
static attributeTypeMap: Array<{
|
|
22
23
|
name: string;
|
package/dist/model/wallet.js
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
|
|
14
14
|
export class CreateRFQRequest {
|
|
15
15
|
'validator_indices': Array<number>;
|
|
16
|
-
'
|
|
16
|
+
'payment_wallet_id': string;
|
|
17
17
|
|
|
18
18
|
static discriminator: string | undefined = undefined;
|
|
19
19
|
|
|
@@ -24,8 +24,8 @@ export class CreateRFQRequest {
|
|
|
24
24
|
"type": "Array<number>"
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"name": "
|
|
28
|
-
"baseName": "
|
|
27
|
+
"name": "payment_wallet_id",
|
|
28
|
+
"baseName": "payment_wallet_id",
|
|
29
29
|
"type": "string"
|
|
30
30
|
} ];
|
|
31
31
|
|
package/model/models.ts
CHANGED
|
@@ -62,11 +62,9 @@ export * from './transactionsforUser';
|
|
|
62
62
|
export * from './unstakeStep';
|
|
63
63
|
export * from './unstakeStepElement';
|
|
64
64
|
export * from './unstakeStepType';
|
|
65
|
-
export * from './validatorContractType';
|
|
66
65
|
export * from './validatorInfo';
|
|
67
|
-
export * from './validatorInfoValidatorType';
|
|
68
|
-
export * from './validatorInfoValidatorTypeContract';
|
|
69
66
|
export * from './validatorKeyHolder';
|
|
67
|
+
export * from './validatorType';
|
|
70
68
|
export * from './wallet';
|
|
71
69
|
export * from './webHookLookupAnswer';
|
|
72
70
|
export * from './webhookPayload';
|
|
@@ -284,19 +282,13 @@ import { UnstakeStepElement } from './unstakeStepElement';
|
|
|
284
282
|
import { UnstakeStepType } from './unstakeStepType';
|
|
285
283
|
|
|
286
284
|
|
|
287
|
-
import { ValidatorContractType } from './validatorContractType';
|
|
288
|
-
|
|
289
|
-
|
|
290
285
|
import { ValidatorInfo } from './validatorInfo';
|
|
291
286
|
|
|
292
287
|
|
|
293
|
-
import {
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
import { ValidatorInfoValidatorTypeContract } from './validatorInfoValidatorTypeContract';
|
|
288
|
+
import { ValidatorKeyHolder } from './validatorKeyHolder';
|
|
297
289
|
|
|
298
290
|
|
|
299
|
-
import {
|
|
291
|
+
import { ValidatorType } from './validatorType';
|
|
300
292
|
|
|
301
293
|
|
|
302
294
|
import { Wallet } from './wallet';
|
|
@@ -439,8 +431,6 @@ let typeMap: {[index: string]: any} = {
|
|
|
439
431
|
"UnstakeStep": UnstakeStep,
|
|
440
432
|
"UnstakeStepElement": UnstakeStepElement,
|
|
441
433
|
"ValidatorInfo": ValidatorInfo,
|
|
442
|
-
"ValidatorInfoValidatorType": ValidatorInfoValidatorType,
|
|
443
|
-
"ValidatorInfoValidatorTypeContract": ValidatorInfoValidatorTypeContract,
|
|
444
434
|
"Wallet": Wallet,
|
|
445
435
|
"WebHookLookupAnswer": WebHookLookupAnswer,
|
|
446
436
|
"WebhookPayload": WebhookPayload,
|
package/model/order.ts
CHANGED
|
@@ -25,9 +25,9 @@ export class Order {
|
|
|
25
25
|
'amount'?: number;
|
|
26
26
|
'validatorKey'?: EthereumValidatorKey;
|
|
27
27
|
/**
|
|
28
|
-
*
|
|
28
|
+
* Id of the linked wallet that should be the target of a withdrawal order
|
|
29
29
|
*/
|
|
30
|
-
'
|
|
30
|
+
'targetWalletId'?: string;
|
|
31
31
|
|
|
32
32
|
static discriminator: string | undefined = undefined;
|
|
33
33
|
|
|
@@ -53,8 +53,8 @@ export class Order {
|
|
|
53
53
|
"type": "EthereumValidatorKey"
|
|
54
54
|
},
|
|
55
55
|
{
|
|
56
|
-
"name": "
|
|
57
|
-
"baseName": "
|
|
56
|
+
"name": "targetWalletId",
|
|
57
|
+
"baseName": "targetWalletId",
|
|
58
58
|
"type": "string"
|
|
59
59
|
} ];
|
|
60
60
|
|
package/model/validatorInfo.ts
CHANGED
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { ExitEstimateSeller } from './exitEstimateSeller';
|
|
14
|
-
import {
|
|
14
|
+
import { ValidatorKeyHolder } from './validatorKeyHolder';
|
|
15
|
+
import { ValidatorType } from './validatorType';
|
|
15
16
|
|
|
16
17
|
/**
|
|
17
18
|
* Information about a blockchain validator including status and balance.
|
|
@@ -22,23 +23,16 @@ export class ValidatorInfo {
|
|
|
22
23
|
* Validator asset
|
|
23
24
|
*/
|
|
24
25
|
'asset'?: ValidatorInfo;
|
|
26
|
+
'validator_public_key'?: string;
|
|
25
27
|
'validator_index'?: number;
|
|
26
|
-
/**
|
|
27
|
-
* Validator owner id
|
|
28
|
-
*/
|
|
29
|
-
'owner_id'?: string;
|
|
30
28
|
/**
|
|
31
29
|
* Status of the validator on the network
|
|
32
30
|
*/
|
|
33
31
|
'status'?: ValidatorInfo;
|
|
34
|
-
/**
|
|
35
|
-
* Associated Northstake staking order
|
|
36
|
-
*/
|
|
37
|
-
'associated_order_id'?: string;
|
|
38
|
-
'start_date'?: number;
|
|
39
|
-
'end_date'?: number;
|
|
40
32
|
'exit_estimate'?: ExitEstimateSeller;
|
|
41
|
-
'
|
|
33
|
+
'key_holder'?: ValidatorKeyHolder;
|
|
34
|
+
'validator_type'?: ValidatorType;
|
|
35
|
+
'contract_address'?: string;
|
|
42
36
|
|
|
43
37
|
static discriminator: string | undefined = undefined;
|
|
44
38
|
|
|
@@ -53,45 +47,40 @@ export class ValidatorInfo {
|
|
|
53
47
|
"baseName": "asset",
|
|
54
48
|
"type": "ValidatorInfo.AssetEnum"
|
|
55
49
|
},
|
|
50
|
+
{
|
|
51
|
+
"name": "validator_public_key",
|
|
52
|
+
"baseName": "validator_public_key",
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
56
55
|
{
|
|
57
56
|
"name": "validator_index",
|
|
58
57
|
"baseName": "validator_index",
|
|
59
58
|
"type": "number"
|
|
60
59
|
},
|
|
61
|
-
{
|
|
62
|
-
"name": "owner_id",
|
|
63
|
-
"baseName": "owner_id",
|
|
64
|
-
"type": "string"
|
|
65
|
-
},
|
|
66
60
|
{
|
|
67
61
|
"name": "status",
|
|
68
62
|
"baseName": "status",
|
|
69
63
|
"type": "ValidatorInfo.StatusEnum"
|
|
70
64
|
},
|
|
71
|
-
{
|
|
72
|
-
"name": "associated_order_id",
|
|
73
|
-
"baseName": "associated_order_id",
|
|
74
|
-
"type": "string"
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"name": "start_date",
|
|
78
|
-
"baseName": "start_date",
|
|
79
|
-
"type": "number"
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"name": "end_date",
|
|
83
|
-
"baseName": "end_date",
|
|
84
|
-
"type": "number"
|
|
85
|
-
},
|
|
86
65
|
{
|
|
87
66
|
"name": "exit_estimate",
|
|
88
67
|
"baseName": "exit_estimate",
|
|
89
68
|
"type": "ExitEstimateSeller"
|
|
90
69
|
},
|
|
70
|
+
{
|
|
71
|
+
"name": "key_holder",
|
|
72
|
+
"baseName": "key_holder",
|
|
73
|
+
"type": "ValidatorKeyHolder"
|
|
74
|
+
},
|
|
91
75
|
{
|
|
92
76
|
"name": "validator_type",
|
|
93
77
|
"baseName": "validator_type",
|
|
94
|
-
"type": "
|
|
78
|
+
"type": "ValidatorType"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "contract_address",
|
|
82
|
+
"baseName": "contract_address",
|
|
83
|
+
"type": "string"
|
|
95
84
|
} ];
|
|
96
85
|
|
|
97
86
|
static getAttributeTypeMap() {
|
|
@@ -109,9 +98,9 @@ export type assetEnum =
|
|
|
109
98
|
* Status of the validator on the network
|
|
110
99
|
*/
|
|
111
100
|
export type statusEnum =
|
|
101
|
+
'activating' |
|
|
112
102
|
'active' |
|
|
113
|
-
'exited' |
|
|
114
103
|
'exiting' |
|
|
115
|
-
'
|
|
104
|
+
'exited';
|
|
116
105
|
}
|
|
117
106
|
|
package/model/wallet.ts
CHANGED
|
@@ -16,13 +16,19 @@ import { Asset } from './asset';
|
|
|
16
16
|
* Details about a linked wallet including asset, address, and name.
|
|
17
17
|
*/
|
|
18
18
|
export class Wallet {
|
|
19
|
-
'
|
|
20
|
-
'
|
|
21
|
-
'
|
|
19
|
+
'id': string;
|
|
20
|
+
'asset': Asset;
|
|
21
|
+
'walletAddress': string;
|
|
22
|
+
'walletName': string;
|
|
22
23
|
|
|
23
24
|
static discriminator: string | undefined = undefined;
|
|
24
25
|
|
|
25
26
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
27
|
+
{
|
|
28
|
+
"name": "id",
|
|
29
|
+
"baseName": "id",
|
|
30
|
+
"type": "string"
|
|
31
|
+
},
|
|
26
32
|
{
|
|
27
33
|
"name": "asset",
|
|
28
34
|
"baseName": "asset",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northstake/northstakeapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
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": "^20.12.
|
|
24
|
+
"@types/node": "^20.12.12",
|
|
25
25
|
"typescript": "^5.4.5"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Northstake
|
|
3
|
-
* Northstake api
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { ValidatorInfoValidatorTypeContract } from './validatorInfoValidatorTypeContract';
|
|
13
|
-
import { ValidatorKeyHolder } from './validatorKeyHolder';
|
|
14
|
-
export declare class ValidatorInfoValidatorType {
|
|
15
|
-
'key_holder'?: ValidatorKeyHolder;
|
|
16
|
-
'contract'?: ValidatorInfoValidatorTypeContract;
|
|
17
|
-
static discriminator: string | undefined;
|
|
18
|
-
static attributeTypeMap: Array<{
|
|
19
|
-
name: string;
|
|
20
|
-
baseName: string;
|
|
21
|
-
type: string;
|
|
22
|
-
}>;
|
|
23
|
-
static getAttributeTypeMap(): {
|
|
24
|
-
name: string;
|
|
25
|
-
baseName: string;
|
|
26
|
-
type: string;
|
|
27
|
-
}[];
|
|
28
|
-
}
|
|
29
|
-
export declare namespace ValidatorInfoValidatorType {
|
|
30
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Northstake
|
|
4
|
-
* Northstake api
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 1.0
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ValidatorInfoValidatorType = void 0;
|
|
15
|
-
class ValidatorInfoValidatorType {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return ValidatorInfoValidatorType.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.ValidatorInfoValidatorType = ValidatorInfoValidatorType;
|
|
21
|
-
ValidatorInfoValidatorType.discriminator = undefined;
|
|
22
|
-
ValidatorInfoValidatorType.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "key_holder",
|
|
25
|
-
"baseName": "key_holder",
|
|
26
|
-
"type": "ValidatorKeyHolder"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "contract",
|
|
30
|
-
"baseName": "contract",
|
|
31
|
-
"type": "ValidatorInfoValidatorTypeContract"
|
|
32
|
-
}
|
|
33
|
-
];
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Northstake
|
|
3
|
-
* Northstake api
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import { ValidatorContractType } from './validatorContractType';
|
|
13
|
-
export declare class ValidatorInfoValidatorTypeContract {
|
|
14
|
-
'address'?: string;
|
|
15
|
-
'contract_type'?: ValidatorContractType;
|
|
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
|
-
}
|
|
28
|
-
export declare namespace ValidatorInfoValidatorTypeContract {
|
|
29
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Northstake
|
|
4
|
-
* Northstake api
|
|
5
|
-
*
|
|
6
|
-
* The version of the OpenAPI document: 1.0
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
10
|
-
* https://openapi-generator.tech
|
|
11
|
-
* Do not edit the class manually.
|
|
12
|
-
*/
|
|
13
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
-
exports.ValidatorInfoValidatorTypeContract = void 0;
|
|
15
|
-
class ValidatorInfoValidatorTypeContract {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return ValidatorInfoValidatorTypeContract.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.ValidatorInfoValidatorTypeContract = ValidatorInfoValidatorTypeContract;
|
|
21
|
-
ValidatorInfoValidatorTypeContract.discriminator = undefined;
|
|
22
|
-
ValidatorInfoValidatorTypeContract.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "address",
|
|
25
|
-
"baseName": "address",
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "contract_type",
|
|
30
|
-
"baseName": "contract_type",
|
|
31
|
-
"type": "ValidatorContractType"
|
|
32
|
-
}
|
|
33
|
-
];
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Northstake
|
|
3
|
-
* Northstake api
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { ValidatorInfoValidatorTypeContract } from './validatorInfoValidatorTypeContract';
|
|
14
|
-
import { ValidatorKeyHolder } from './validatorKeyHolder';
|
|
15
|
-
|
|
16
|
-
export class ValidatorInfoValidatorType {
|
|
17
|
-
'key_holder'?: ValidatorKeyHolder;
|
|
18
|
-
'contract'?: ValidatorInfoValidatorTypeContract;
|
|
19
|
-
|
|
20
|
-
static discriminator: string | undefined = undefined;
|
|
21
|
-
|
|
22
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
23
|
-
{
|
|
24
|
-
"name": "key_holder",
|
|
25
|
-
"baseName": "key_holder",
|
|
26
|
-
"type": "ValidatorKeyHolder"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "contract",
|
|
30
|
-
"baseName": "contract",
|
|
31
|
-
"type": "ValidatorInfoValidatorTypeContract"
|
|
32
|
-
} ];
|
|
33
|
-
|
|
34
|
-
static getAttributeTypeMap() {
|
|
35
|
-
return ValidatorInfoValidatorType.attributeTypeMap;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export namespace ValidatorInfoValidatorType {
|
|
40
|
-
}
|
|
41
|
-
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Northstake
|
|
3
|
-
* Northstake api
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1.0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
|
|
13
|
-
import { ValidatorContractType } from './validatorContractType';
|
|
14
|
-
|
|
15
|
-
export class ValidatorInfoValidatorTypeContract {
|
|
16
|
-
'address'?: string;
|
|
17
|
-
'contract_type'?: ValidatorContractType;
|
|
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": "contract_type",
|
|
29
|
-
"baseName": "contract_type",
|
|
30
|
-
"type": "ValidatorContractType"
|
|
31
|
-
} ];
|
|
32
|
-
|
|
33
|
-
static getAttributeTypeMap() {
|
|
34
|
-
return ValidatorInfoValidatorTypeContract.attributeTypeMap;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export namespace ValidatorInfoValidatorTypeContract {
|
|
39
|
-
}
|
|
40
|
-
|
|
File without changes
|