@northstake/northstakeapi 1.0.13 → 1.0.15
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 +19 -22
- package/api/apis.ts +1 -3
- package/api/depositAddressesApi.ts +15 -15
- package/api/linkedWalletsApi.ts +8 -8
- package/api/managedUsersApi.ts +31 -31
- package/api/managedUsersDepositAddressesApi.ts +6 -6
- package/api/managedUsersLinkedWalletsApi.ts +20 -20
- package/api/managedUsersOrdersApi.ts +16 -16
- package/api/managedUsersPortfolioApi.ts +3 -3
- package/api/managedUsersTransactionsApi.ts +11 -11
- package/api/managedUsersValidatorsApi.ts +2 -2
- package/api/ordersApi.ts +7 -7
- package/api/transactionsApi.ts +6 -6
- package/api/validatorMarketplaceBuyersApi.ts +3 -3
- package/api/validatorMarketplaceSellersApi.ts +3 -3
- package/api/validatorsApi.ts +5 -5
- package/api.ts +19 -25
- package/dist/api/apis.d.ts +1 -3
- package/dist/api/apis.js +1 -3
- package/dist/api/depositAddressesApi.d.ts +7 -7
- package/dist/api/depositAddressesApi.js +10 -10
- package/dist/api/linkedWalletsApi.d.ts +3 -3
- package/dist/api/linkedWalletsApi.js +7 -7
- package/dist/api/managedUsersApi.d.ts +14 -14
- package/dist/api/managedUsersApi.js +26 -26
- package/dist/api/managedUsersDepositAddressesApi.d.ts +4 -4
- package/dist/api/managedUsersDepositAddressesApi.js +4 -4
- package/dist/api/managedUsersLinkedWalletsApi.d.ts +7 -7
- package/dist/api/managedUsersLinkedWalletsApi.js +18 -18
- package/dist/api/managedUsersOrdersApi.d.ts +6 -6
- package/dist/api/managedUsersOrdersApi.js +15 -15
- package/dist/api/managedUsersPortfolioApi.d.ts +2 -2
- package/dist/api/managedUsersPortfolioApi.js +3 -3
- package/dist/api/managedUsersTransactionsApi.d.ts +7 -7
- package/dist/api/managedUsersTransactionsApi.js +5 -5
- package/dist/api/managedUsersValidatorsApi.d.ts +1 -1
- package/dist/api/managedUsersValidatorsApi.js +2 -2
- package/dist/api/ordersApi.d.ts +3 -3
- package/dist/api/ordersApi.js +6 -6
- package/dist/api/transactionsApi.d.ts +4 -4
- package/dist/api/transactionsApi.js +2 -2
- package/dist/api/validatorMarketplaceBuyersApi.d.ts +2 -2
- package/dist/api/validatorMarketplaceBuyersApi.js +1 -1
- package/dist/api/validatorMarketplaceSellersApi.d.ts +2 -2
- package/dist/api/validatorMarketplaceSellersApi.js +1 -1
- package/dist/api/validatorsApi.d.ts +3 -3
- package/dist/api/validatorsApi.js +2 -2
- package/dist/api.d.ts +19 -23
- package/dist/api.js +19 -24
- package/dist/model/{settlementStepAcceptedQuote.d.ts → acceptedQuote.d.ts} +4 -4
- package/dist/model/{settlementStepAcceptedQuote.js → acceptedQuote.js} +6 -6
- package/dist/model/accountEntity.d.ts +3 -1
- package/dist/model/accountEntity.js +5 -0
- package/dist/model/{addLinkedWalletForManagedUserRequest.d.ts → addLinkedWalletForUserRequest.d.ts} +4 -4
- package/dist/model/{baseOrder.js → addLinkedWalletForUserRequest.js} +10 -15
- package/dist/model/addLinkedWalletRequest.d.ts +2 -2
- package/dist/model/addLinkedWalletRequest.js +3 -3
- package/dist/model/{tokenEnum.d.ts → asset.d.ts} +1 -1
- package/dist/model/{depositAccount.d.ts → depositAddress.d.ts} +6 -6
- package/dist/model/{depositAccount.js → depositAddress.js} +8 -8
- package/dist/model/{depositAddressesForManagedUserResponse.d.ts → depositAddressesForUserResponse.d.ts} +3 -3
- package/dist/model/{depositAddressesForManagedUserResponse.js → depositAddressesForUserResponse.js} +7 -7
- package/dist/model/{settlementStepEscrowPayment.d.ts → escrowPayment.d.ts} +1 -1
- package/dist/model/{settlementStepEscrowPayment.js → escrowPayment.js} +6 -6
- package/dist/model/{settlementStepEscrowReleased.d.ts → escrowReleased.d.ts} +1 -1
- package/dist/model/{settlementStepEscrowReleased.js → escrowReleased.js} +6 -6
- package/dist/model/managedUserDetails.d.ts +31 -0
- package/dist/model/managedUserDetails.js +41 -0
- package/dist/model/models.d.ts +19 -21
- package/dist/model/models.js +42 -56
- package/dist/model/{unstakeOrder.d.ts → order.d.ts} +12 -12
- package/dist/model/{newOrderRequest.js → order.js} +7 -7
- package/dist/model/orderDocument.d.ts +4 -4
- package/dist/model/orderDocument.js +1 -1
- package/dist/model/{rFQDocumentStatusEnum.d.ts → orderType.d.ts} +4 -1
- package/dist/model/portfolioEntity.d.ts +2 -2
- package/dist/model/portfolioEntity.js +1 -1
- package/dist/model/rFQDocumentBase.d.ts +2 -2
- package/dist/model/rFQDocumentBase.js +1 -1
- package/dist/model/rFQDocumentBuyer.d.ts +2 -2
- package/dist/model/rFQDocumentBuyer.js +1 -1
- package/dist/model/rFQDocumentBuyerStatusFilter.d.ts +12 -0
- package/dist/model/rFQDocumentSeller.d.ts +2 -2
- package/dist/model/rFQDocumentSeller.js +1 -1
- package/dist/model/{rFQDocumentBuyerStatusFilterEnum.d.ts → rFQDocumentSellerStatusFilter.d.ts} +1 -1
- package/dist/model/rFQDocumentStatus.d.ts +12 -0
- package/dist/model/settlementSteps.d.ts +8 -8
- package/dist/model/settlementSteps.js +4 -4
- package/dist/model/smartContract.d.ts +36 -0
- package/dist/model/smartContract.js +56 -0
- package/dist/model/transaction.d.ts +4 -4
- package/dist/model/transaction.js +2 -2
- package/dist/model/{transactionEventTypeEnum.d.ts → transactionEventType.d.ts} +1 -1
- package/dist/model/{transactionsForManagedUser.d.ts → transactionsforUser.d.ts} +1 -1
- package/dist/model/{transactionsForManagedUser.js → transactionsforUser.js} +6 -6
- package/dist/model/validatorContractType.d.ts +12 -0
- package/dist/model/validatorInfo.d.ts +5 -5
- package/dist/model/validatorInfo.js +3 -3
- package/dist/model/validatorInfoValidatorType.d.ts +2 -2
- package/dist/model/validatorInfoValidatorType.js +1 -1
- package/dist/model/validatorInfoValidatorTypeContract.d.ts +2 -2
- package/dist/model/validatorInfoValidatorTypeContract.js +1 -1
- package/dist/model/{validatorKeyHolderEnum.d.ts → validatorKeyHolder.d.ts} +1 -1
- package/dist/model/validatorKeyHolder.js +13 -0
- package/dist/model/wallet.d.ts +5 -2
- package/dist/model/wallet.js +4 -4
- package/dist/model/{settlementStepWithdrawalRecipientSettlement.d.ts → withdrawalRecipientSettlement.d.ts} +1 -1
- package/dist/model/{settlementStepWithdrawalRecipientSettlement.js → withdrawalRecipientSettlement.js} +6 -6
- package/model/{settlementStepAcceptedQuote.ts → acceptedQuote.ts} +5 -5
- package/model/accountEntity.ts +8 -1
- package/model/{addLinkedWalletForManagedUserRequest.ts → addLinkedWalletForUserRequest.ts} +8 -8
- package/model/addLinkedWalletRequest.ts +5 -5
- package/model/{tokenEnum.ts → asset.ts} +1 -1
- package/model/{depositAccount.ts → depositAddress.ts} +8 -8
- package/model/{depositAddressesForManagedUserResponse.ts → depositAddressesForUserResponse.ts} +5 -5
- package/model/{settlementStepEscrowPayment.ts → escrowPayment.ts} +2 -2
- package/model/{settlementStepEscrowReleased.ts → escrowReleased.ts} +2 -2
- package/model/managedUserDetails.ts +47 -0
- package/model/models.ts +60 -77
- package/model/{withdrawalOrder.ts → order.ts} +16 -18
- package/model/orderDocument.ts +5 -5
- package/model/orderType.ts +21 -0
- package/model/portfolioEntity.ts +3 -3
- package/model/rFQDocumentBase.ts +3 -3
- package/model/rFQDocumentBuyer.ts +3 -3
- package/model/{rFQDocumentBuyerStatusFilterEnum.ts → rFQDocumentBuyerStatusFilter.ts} +1 -1
- package/model/rFQDocumentSeller.ts +3 -3
- package/model/{rFQDocumentSellerStatusFilterEnum.ts → rFQDocumentSellerStatusFilter.ts} +1 -1
- package/model/{rFQDocumentStatusEnum.ts → rFQDocumentStatus.ts} +1 -1
- package/model/settlementSteps.ts +12 -12
- package/model/smartContract.ts +67 -0
- package/model/transaction.ts +6 -6
- package/model/{transactionEventTypeEnum.ts → transactionEventType.ts} +1 -1
- package/model/{transactionsForManagedUser.ts → transactionsforUser.ts} +2 -2
- package/model/{validatorContractTypeEnum.ts → validatorContractType.ts} +1 -1
- package/model/validatorInfo.ts +8 -8
- package/model/validatorInfoValidatorType.ts +3 -3
- package/model/validatorInfoValidatorTypeContract.ts +3 -3
- package/model/{validatorKeyHolderEnum.ts → validatorKeyHolder.ts} +1 -1
- package/model/wallet.ts +8 -5
- package/model/{settlementStepWithdrawalRecipientSettlement.ts → withdrawalRecipientSettlement.ts} +2 -2
- package/package.json +2 -2
- package/api/liquidityProviderApi.ts +0 -178
- package/dist/api/liquidityProviderApi.d.ts +0 -49
- package/dist/api/liquidityProviderApi.js +0 -139
- package/dist/model/addLinkedWalletForManagedUserRequest.js +0 -33
- package/dist/model/baseOrder.d.ts +0 -42
- package/dist/model/createOrderForManagedUserRequest.d.ts +0 -48
- package/dist/model/createOrderForManagedUserRequest.js +0 -48
- package/dist/model/newOrderRequest.d.ts +0 -48
- package/dist/model/rFQDocumentSellerStatusFilterEnum.d.ts +0 -12
- package/dist/model/stakeOrder.d.ts +0 -44
- package/dist/model/stakeOrder.js +0 -46
- package/dist/model/unstakeOrder.js +0 -38
- package/dist/model/validatorContractTypeEnum.d.ts +0 -12
- package/dist/model/withdrawalOrder.d.ts +0 -46
- package/dist/model/withdrawalOrder.js +0 -43
- package/model/baseOrder.ts +0 -61
- package/model/createOrderForManagedUserRequest.ts +0 -80
- package/model/newOrderRequest.ts +0 -80
- package/model/stakeOrder.ts +0 -68
- package/model/unstakeOrder.ts +0 -61
- /package/dist/model/{rFQDocumentBuyerStatusFilterEnum.js → asset.js} +0 -0
- /package/dist/model/{rFQDocumentSellerStatusFilterEnum.js → orderType.js} +0 -0
- /package/dist/model/{rFQDocumentStatusEnum.js → rFQDocumentBuyerStatusFilter.js} +0 -0
- /package/dist/model/{tokenEnum.js → rFQDocumentSellerStatusFilter.js} +0 -0
- /package/dist/model/{transactionEventTypeEnum.js → rFQDocumentStatus.js} +0 -0
- /package/dist/model/{validatorContractTypeEnum.js → transactionEventType.js} +0 -0
- /package/dist/model/{validatorKeyHolderEnum.js → validatorContractType.js} +0 -0
package/model/models.ts
CHANGED
|
@@ -2,17 +2,19 @@ import localVarRequest from 'request';
|
|
|
2
2
|
import * as jwt from 'jsonwebtoken';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export * from './acceptedQuote';
|
|
5
6
|
export * from './accountEntity';
|
|
6
|
-
export * from './
|
|
7
|
+
export * from './addLinkedWalletForUserRequest';
|
|
7
8
|
export * from './addLinkedWalletRequest';
|
|
8
9
|
export * from './allManagedUsersResponse';
|
|
9
|
-
export * from './
|
|
10
|
+
export * from './asset';
|
|
10
11
|
export * from './createManagedUserRequest';
|
|
11
|
-
export * from './createOrderForManagedUserRequest';
|
|
12
12
|
export * from './createRFQRequest';
|
|
13
|
-
export * from './
|
|
14
|
-
export * from './
|
|
13
|
+
export * from './depositAddress';
|
|
14
|
+
export * from './depositAddressesForUserResponse';
|
|
15
15
|
export * from './errorResponse';
|
|
16
|
+
export * from './escrowPayment';
|
|
17
|
+
export * from './escrowReleased';
|
|
16
18
|
export * from './ethereumValidatorKey';
|
|
17
19
|
export * from './ethereumValidatorKeyKeystore';
|
|
18
20
|
export * from './ethereumValidatorKeyKeystoreCrypto';
|
|
@@ -25,9 +27,11 @@ export * from './exitEstimateBase';
|
|
|
25
27
|
export * from './exitEstimateSeller';
|
|
26
28
|
export * from './getTransactionsResponse';
|
|
27
29
|
export * from './managedUser';
|
|
28
|
-
export * from './
|
|
30
|
+
export * from './managedUserDetails';
|
|
31
|
+
export * from './order';
|
|
29
32
|
export * from './orderDocument';
|
|
30
33
|
export * from './orderDocumentSteps';
|
|
34
|
+
export * from './orderType';
|
|
31
35
|
export * from './orderUpdatePayload';
|
|
32
36
|
export * from './portfolioEntity';
|
|
33
37
|
export * from './provideEscrowHashForRFQDocumentRequest';
|
|
@@ -37,38 +41,32 @@ export * from './rFQDocumentBase';
|
|
|
37
41
|
export * from './rFQDocumentBaseUniqueEscrowVault';
|
|
38
42
|
export * from './rFQDocumentBuyer';
|
|
39
43
|
export * from './rFQDocumentBuyerAllOfValidators';
|
|
40
|
-
export * from './
|
|
44
|
+
export * from './rFQDocumentBuyerStatusFilter';
|
|
41
45
|
export * from './rFQDocumentSeller';
|
|
42
46
|
export * from './rFQDocumentSellerAllOfValidators';
|
|
43
|
-
export * from './
|
|
44
|
-
export * from './
|
|
47
|
+
export * from './rFQDocumentSellerStatusFilter';
|
|
48
|
+
export * from './rFQDocumentStatus';
|
|
45
49
|
export * from './rFQDocumentUpdate';
|
|
46
50
|
export * from './rFQUpdatePayload';
|
|
47
51
|
export * from './rFQWebhookEventType';
|
|
48
52
|
export * from './registerWithdrawalRecipientSettlementRequest';
|
|
49
|
-
export * from './settlementStepAcceptedQuote';
|
|
50
|
-
export * from './settlementStepEscrowPayment';
|
|
51
|
-
export * from './settlementStepEscrowReleased';
|
|
52
|
-
export * from './settlementStepWithdrawalRecipientSettlement';
|
|
53
53
|
export * from './settlementSteps';
|
|
54
|
-
export * from './
|
|
54
|
+
export * from './smartContract';
|
|
55
55
|
export * from './stakeStep';
|
|
56
56
|
export * from './stakeStepElement';
|
|
57
57
|
export * from './stepStatus';
|
|
58
58
|
export * from './submittedQuote';
|
|
59
|
-
export * from './tokenEnum';
|
|
60
59
|
export * from './transaction';
|
|
61
|
-
export * from './
|
|
62
|
-
export * from './
|
|
63
|
-
export * from './unstakeOrder';
|
|
60
|
+
export * from './transactionEventType';
|
|
61
|
+
export * from './transactionsforUser';
|
|
64
62
|
export * from './unstakeStep';
|
|
65
63
|
export * from './unstakeStepElement';
|
|
66
64
|
export * from './unstakeStepType';
|
|
67
|
-
export * from './
|
|
65
|
+
export * from './validatorContractType';
|
|
68
66
|
export * from './validatorInfo';
|
|
69
67
|
export * from './validatorInfoValidatorType';
|
|
70
68
|
export * from './validatorInfoValidatorTypeContract';
|
|
71
|
-
export * from './
|
|
69
|
+
export * from './validatorKeyHolder';
|
|
72
70
|
export * from './wallet';
|
|
73
71
|
export * from './webHookLookupAnswer';
|
|
74
72
|
export * from './webhookPayload';
|
|
@@ -88,7 +86,7 @@ export * from './webhookPayloadRFQValidatorExitedDetails';
|
|
|
88
86
|
export * from './webhookPayloadRFQValidatorWithdrawalChange';
|
|
89
87
|
export * from './webhookRegistration';
|
|
90
88
|
export * from './webhookRegistrationDetails';
|
|
91
|
-
export * from './
|
|
89
|
+
export * from './withdrawalRecipientSettlement';
|
|
92
90
|
export * from './withdrawalStep';
|
|
93
91
|
export * from './withdrawalStepElement';
|
|
94
92
|
export * from './withdrawalStepType';
|
|
@@ -106,10 +104,13 @@ export interface RequestDetailedFile {
|
|
|
106
104
|
export type RequestFile = string | Buffer | fs.ReadStream | RequestDetailedFile;
|
|
107
105
|
|
|
108
106
|
|
|
107
|
+
import { AcceptedQuote } from './acceptedQuote';
|
|
108
|
+
|
|
109
|
+
|
|
109
110
|
import { AccountEntity } from './accountEntity';
|
|
110
111
|
|
|
111
112
|
|
|
112
|
-
import {
|
|
113
|
+
import { AddLinkedWalletForUserRequest } from './addLinkedWalletForUserRequest';
|
|
113
114
|
|
|
114
115
|
|
|
115
116
|
import { AddLinkedWalletRequest } from './addLinkedWalletRequest';
|
|
@@ -118,27 +119,30 @@ import { AddLinkedWalletRequest } from './addLinkedWalletRequest';
|
|
|
118
119
|
import { AllManagedUsersResponse } from './allManagedUsersResponse';
|
|
119
120
|
|
|
120
121
|
|
|
121
|
-
import {
|
|
122
|
+
import { Asset } from './asset';
|
|
122
123
|
|
|
123
124
|
|
|
124
125
|
import { CreateManagedUserRequest } from './createManagedUserRequest';
|
|
125
126
|
|
|
126
127
|
|
|
127
|
-
import { CreateOrderForManagedUserRequest } from './createOrderForManagedUserRequest';
|
|
128
|
-
|
|
129
|
-
|
|
130
128
|
import { CreateRFQRequest } from './createRFQRequest';
|
|
131
129
|
|
|
132
130
|
|
|
133
|
-
import {
|
|
131
|
+
import { DepositAddress } from './depositAddress';
|
|
134
132
|
|
|
135
133
|
|
|
136
|
-
import {
|
|
134
|
+
import { DepositAddressesForUserResponse } from './depositAddressesForUserResponse';
|
|
137
135
|
|
|
138
136
|
|
|
139
137
|
import { ErrorResponse } from './errorResponse';
|
|
140
138
|
|
|
141
139
|
|
|
140
|
+
import { EscrowPayment } from './escrowPayment';
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
import { EscrowReleased } from './escrowReleased';
|
|
144
|
+
|
|
145
|
+
|
|
142
146
|
import { EthereumValidatorKey } from './ethereumValidatorKey';
|
|
143
147
|
|
|
144
148
|
|
|
@@ -175,7 +179,10 @@ import { GetTransactionsResponse } from './getTransactionsResponse';
|
|
|
175
179
|
import { ManagedUser } from './managedUser';
|
|
176
180
|
|
|
177
181
|
|
|
178
|
-
import {
|
|
182
|
+
import { ManagedUserDetails } from './managedUserDetails';
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
import { Order } from './order';
|
|
179
186
|
|
|
180
187
|
|
|
181
188
|
import { OrderDocument } from './orderDocument';
|
|
@@ -184,6 +191,9 @@ import { OrderDocument } from './orderDocument';
|
|
|
184
191
|
import { OrderDocumentSteps } from './orderDocumentSteps';
|
|
185
192
|
|
|
186
193
|
|
|
194
|
+
import { OrderType } from './orderType';
|
|
195
|
+
|
|
196
|
+
|
|
187
197
|
import { OrderUpdatePayload } from './orderUpdatePayload';
|
|
188
198
|
|
|
189
199
|
|
|
@@ -211,7 +221,7 @@ import { RFQDocumentBuyer } from './rFQDocumentBuyer';
|
|
|
211
221
|
import { RFQDocumentBuyerAllOfValidators } from './rFQDocumentBuyerAllOfValidators';
|
|
212
222
|
|
|
213
223
|
|
|
214
|
-
import {
|
|
224
|
+
import { RFQDocumentBuyerStatusFilter } from './rFQDocumentBuyerStatusFilter';
|
|
215
225
|
|
|
216
226
|
|
|
217
227
|
import { RFQDocumentSeller } from './rFQDocumentSeller';
|
|
@@ -220,10 +230,10 @@ import { RFQDocumentSeller } from './rFQDocumentSeller';
|
|
|
220
230
|
import { RFQDocumentSellerAllOfValidators } from './rFQDocumentSellerAllOfValidators';
|
|
221
231
|
|
|
222
232
|
|
|
223
|
-
import {
|
|
233
|
+
import { RFQDocumentSellerStatusFilter } from './rFQDocumentSellerStatusFilter';
|
|
224
234
|
|
|
225
235
|
|
|
226
|
-
import {
|
|
236
|
+
import { RFQDocumentStatus } from './rFQDocumentStatus';
|
|
227
237
|
|
|
228
238
|
|
|
229
239
|
import { RFQDocumentUpdate } from './rFQDocumentUpdate';
|
|
@@ -238,22 +248,10 @@ import { RFQWebhookEventType } from './rFQWebhookEventType';
|
|
|
238
248
|
import { RegisterWithdrawalRecipientSettlementRequest } from './registerWithdrawalRecipientSettlementRequest';
|
|
239
249
|
|
|
240
250
|
|
|
241
|
-
import { SettlementStepAcceptedQuote } from './settlementStepAcceptedQuote';
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
import { SettlementStepEscrowPayment } from './settlementStepEscrowPayment';
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
import { SettlementStepEscrowReleased } from './settlementStepEscrowReleased';
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
import { SettlementStepWithdrawalRecipientSettlement } from './settlementStepWithdrawalRecipientSettlement';
|
|
251
|
-
|
|
252
|
-
|
|
253
251
|
import { SettlementSteps } from './settlementSteps';
|
|
254
252
|
|
|
255
253
|
|
|
256
|
-
import {
|
|
254
|
+
import { SmartContract } from './smartContract';
|
|
257
255
|
|
|
258
256
|
|
|
259
257
|
import { StakeStep } from './stakeStep';
|
|
@@ -268,19 +266,13 @@ import { StepStatus } from './stepStatus';
|
|
|
268
266
|
import { SubmittedQuote } from './submittedQuote';
|
|
269
267
|
|
|
270
268
|
|
|
271
|
-
import { TokenEnum } from './tokenEnum';
|
|
272
|
-
|
|
273
|
-
|
|
274
269
|
import { Transaction } from './transaction';
|
|
275
270
|
|
|
276
271
|
|
|
277
|
-
import {
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
import { TransactionsForManagedUser } from './transactionsForManagedUser';
|
|
272
|
+
import { TransactionEventType } from './transactionEventType';
|
|
281
273
|
|
|
282
274
|
|
|
283
|
-
import {
|
|
275
|
+
import { TransactionsforUser } from './transactionsforUser';
|
|
284
276
|
|
|
285
277
|
|
|
286
278
|
import { UnstakeStep } from './unstakeStep';
|
|
@@ -292,7 +284,7 @@ import { UnstakeStepElement } from './unstakeStepElement';
|
|
|
292
284
|
import { UnstakeStepType } from './unstakeStepType';
|
|
293
285
|
|
|
294
286
|
|
|
295
|
-
import {
|
|
287
|
+
import { ValidatorContractType } from './validatorContractType';
|
|
296
288
|
|
|
297
289
|
|
|
298
290
|
import { ValidatorInfo } from './validatorInfo';
|
|
@@ -304,7 +296,7 @@ import { ValidatorInfoValidatorType } from './validatorInfoValidatorType';
|
|
|
304
296
|
import { ValidatorInfoValidatorTypeContract } from './validatorInfoValidatorTypeContract';
|
|
305
297
|
|
|
306
298
|
|
|
307
|
-
import {
|
|
299
|
+
import { ValidatorKeyHolder } from './validatorKeyHolder';
|
|
308
300
|
|
|
309
301
|
|
|
310
302
|
import { Wallet } from './wallet';
|
|
@@ -364,7 +356,7 @@ import { WebhookRegistration } from './webhookRegistration';
|
|
|
364
356
|
import { WebhookRegistrationDetails } from './webhookRegistrationDetails';
|
|
365
357
|
|
|
366
358
|
|
|
367
|
-
import {
|
|
359
|
+
import { WithdrawalRecipientSettlement } from './withdrawalRecipientSettlement';
|
|
368
360
|
|
|
369
361
|
|
|
370
362
|
import { WithdrawalStep } from './withdrawalStep';
|
|
@@ -389,29 +381,24 @@ let primitives = [
|
|
|
389
381
|
"any"
|
|
390
382
|
];
|
|
391
383
|
let enumsMap: {[index: string]: any} = {
|
|
392
|
-
"BaseOrder.orderType": BaseOrder,
|
|
393
|
-
"CreateOrderForManagedUserRequest.orderType": CreateOrderForManagedUserRequest,
|
|
394
|
-
"NewOrderRequest.orderType": NewOrderRequest,
|
|
395
384
|
"OrderDocument.type": OrderDocument,
|
|
396
385
|
"OrderDocument.status": OrderDocument,
|
|
397
|
-
"
|
|
398
|
-
"UnstakeOrder.orderType": UnstakeOrder,
|
|
399
|
-
"ValidatorInfo.token": ValidatorInfo,
|
|
386
|
+
"ValidatorInfo.asset": ValidatorInfo,
|
|
400
387
|
"ValidatorInfo.status": ValidatorInfo,
|
|
401
|
-
"WithdrawalOrder.orderType": WithdrawalOrder,
|
|
402
388
|
};
|
|
403
389
|
let typeMap: {[index: string]: any} = {
|
|
390
|
+
"AcceptedQuote": AcceptedQuote,
|
|
404
391
|
"AccountEntity": AccountEntity,
|
|
405
|
-
"
|
|
392
|
+
"AddLinkedWalletForUserRequest": AddLinkedWalletForUserRequest,
|
|
406
393
|
"AddLinkedWalletRequest": AddLinkedWalletRequest,
|
|
407
394
|
"AllManagedUsersResponse": AllManagedUsersResponse,
|
|
408
|
-
"BaseOrder": BaseOrder,
|
|
409
395
|
"CreateManagedUserRequest": CreateManagedUserRequest,
|
|
410
|
-
"CreateOrderForManagedUserRequest": CreateOrderForManagedUserRequest,
|
|
411
396
|
"CreateRFQRequest": CreateRFQRequest,
|
|
412
|
-
"
|
|
413
|
-
"
|
|
397
|
+
"DepositAddress": DepositAddress,
|
|
398
|
+
"DepositAddressesForUserResponse": DepositAddressesForUserResponse,
|
|
414
399
|
"ErrorResponse": ErrorResponse,
|
|
400
|
+
"EscrowPayment": EscrowPayment,
|
|
401
|
+
"EscrowReleased": EscrowReleased,
|
|
415
402
|
"EthereumValidatorKey": EthereumValidatorKey,
|
|
416
403
|
"EthereumValidatorKeyKeystore": EthereumValidatorKeyKeystore,
|
|
417
404
|
"EthereumValidatorKeyKeystoreCrypto": EthereumValidatorKeyKeystoreCrypto,
|
|
@@ -424,7 +411,8 @@ let typeMap: {[index: string]: any} = {
|
|
|
424
411
|
"ExitEstimateSeller": ExitEstimateSeller,
|
|
425
412
|
"GetTransactionsResponse": GetTransactionsResponse,
|
|
426
413
|
"ManagedUser": ManagedUser,
|
|
427
|
-
"
|
|
414
|
+
"ManagedUserDetails": ManagedUserDetails,
|
|
415
|
+
"Order": Order,
|
|
428
416
|
"OrderDocument": OrderDocument,
|
|
429
417
|
"OrderDocumentSteps": OrderDocumentSteps,
|
|
430
418
|
"OrderUpdatePayload": OrderUpdatePayload,
|
|
@@ -441,18 +429,13 @@ let typeMap: {[index: string]: any} = {
|
|
|
441
429
|
"RFQDocumentUpdate": RFQDocumentUpdate,
|
|
442
430
|
"RFQUpdatePayload": RFQUpdatePayload,
|
|
443
431
|
"RegisterWithdrawalRecipientSettlementRequest": RegisterWithdrawalRecipientSettlementRequest,
|
|
444
|
-
"SettlementStepAcceptedQuote": SettlementStepAcceptedQuote,
|
|
445
|
-
"SettlementStepEscrowPayment": SettlementStepEscrowPayment,
|
|
446
|
-
"SettlementStepEscrowReleased": SettlementStepEscrowReleased,
|
|
447
|
-
"SettlementStepWithdrawalRecipientSettlement": SettlementStepWithdrawalRecipientSettlement,
|
|
448
432
|
"SettlementSteps": SettlementSteps,
|
|
449
|
-
"
|
|
433
|
+
"SmartContract": SmartContract,
|
|
450
434
|
"StakeStep": StakeStep,
|
|
451
435
|
"StakeStepElement": StakeStepElement,
|
|
452
436
|
"SubmittedQuote": SubmittedQuote,
|
|
453
437
|
"Transaction": Transaction,
|
|
454
|
-
"
|
|
455
|
-
"UnstakeOrder": UnstakeOrder,
|
|
438
|
+
"TransactionsforUser": TransactionsforUser,
|
|
456
439
|
"UnstakeStep": UnstakeStep,
|
|
457
440
|
"UnstakeStepElement": UnstakeStepElement,
|
|
458
441
|
"ValidatorInfo": ValidatorInfo,
|
|
@@ -477,7 +460,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
477
460
|
"WebhookPayloadRFQValidatorWithdrawalChange": WebhookPayloadRFQValidatorWithdrawalChange,
|
|
478
461
|
"WebhookRegistration": WebhookRegistration,
|
|
479
462
|
"WebhookRegistrationDetails": WebhookRegistrationDetails,
|
|
480
|
-
"
|
|
463
|
+
"WithdrawalRecipientSettlement": WithdrawalRecipientSettlement,
|
|
481
464
|
"WithdrawalStep": WithdrawalStep,
|
|
482
465
|
"WithdrawalStepElement": WithdrawalStepElement,
|
|
483
466
|
}
|
|
@@ -10,22 +10,22 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { EthereumValidatorKey } from './ethereumValidatorKey';
|
|
14
|
+
import { OrderType } from './orderType';
|
|
13
15
|
|
|
14
|
-
export class
|
|
16
|
+
export class Order {
|
|
17
|
+
'orderType': OrderType;
|
|
15
18
|
/**
|
|
16
|
-
*
|
|
17
|
-
*/
|
|
18
|
-
'orderType': WithdrawalOrder;
|
|
19
|
-
/**
|
|
20
|
-
* assetId of the order - e.g., ETH, SOL.
|
|
19
|
+
* Asset ID of the order, e.g., ETH, SOL.
|
|
21
20
|
*/
|
|
22
21
|
'asset': string;
|
|
23
22
|
/**
|
|
24
|
-
* Order amount.
|
|
23
|
+
* Order amount, specified in smallest unit of the asset.
|
|
25
24
|
*/
|
|
26
25
|
'amount'?: number;
|
|
26
|
+
'validatorKey'?: EthereumValidatorKey;
|
|
27
27
|
/**
|
|
28
|
-
* Target wallet address for withdrawal orders
|
|
28
|
+
* Target wallet address for withdrawal orders, required for withdrawal type.
|
|
29
29
|
*/
|
|
30
30
|
'targetWallet'?: string;
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ export class WithdrawalOrder {
|
|
|
35
35
|
{
|
|
36
36
|
"name": "orderType",
|
|
37
37
|
"baseName": "orderType",
|
|
38
|
-
"type": "
|
|
38
|
+
"type": "OrderType"
|
|
39
39
|
},
|
|
40
40
|
{
|
|
41
41
|
"name": "asset",
|
|
@@ -47,6 +47,11 @@ export class WithdrawalOrder {
|
|
|
47
47
|
"baseName": "amount",
|
|
48
48
|
"type": "number"
|
|
49
49
|
},
|
|
50
|
+
{
|
|
51
|
+
"name": "validatorKey",
|
|
52
|
+
"baseName": "validatorKey",
|
|
53
|
+
"type": "EthereumValidatorKey"
|
|
54
|
+
},
|
|
50
55
|
{
|
|
51
56
|
"name": "targetWallet",
|
|
52
57
|
"baseName": "targetWallet",
|
|
@@ -54,17 +59,10 @@ export class WithdrawalOrder {
|
|
|
54
59
|
} ];
|
|
55
60
|
|
|
56
61
|
static getAttributeTypeMap() {
|
|
57
|
-
return
|
|
62
|
+
return Order.attributeTypeMap;
|
|
58
63
|
}
|
|
59
64
|
}
|
|
60
65
|
|
|
61
|
-
export namespace
|
|
62
|
-
/**
|
|
63
|
-
* Type of the order - can only be stake, unstake, or withdraw.
|
|
64
|
-
*/
|
|
65
|
-
export type orderTypeEnum =
|
|
66
|
-
'stake' |
|
|
67
|
-
'unstake' |
|
|
68
|
-
'withdraw';
|
|
66
|
+
export namespace Order {
|
|
69
67
|
}
|
|
70
68
|
|
package/model/orderDocument.ts
CHANGED
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { Asset } from './asset';
|
|
13
14
|
import { EthereumValidatorKey } from './ethereumValidatorKey';
|
|
14
15
|
import { OrderDocumentSteps } from './orderDocumentSteps';
|
|
15
|
-
import { TokenEnum } from './tokenEnum';
|
|
16
16
|
import { Wallet } from './wallet';
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -23,10 +23,10 @@ export class OrderDocument {
|
|
|
23
23
|
'userId': string;
|
|
24
24
|
'type': OrderDocument;
|
|
25
25
|
'amount'?: number;
|
|
26
|
-
'asset':
|
|
27
|
-
'status'
|
|
26
|
+
'asset': Asset;
|
|
27
|
+
'status': OrderDocument;
|
|
28
28
|
'targetWallet'?: Wallet;
|
|
29
|
-
'validatorKey'?: EthereumValidatorKey
|
|
29
|
+
'validatorKey'?: EthereumValidatorKey;
|
|
30
30
|
'steps'?: OrderDocumentSteps;
|
|
31
31
|
|
|
32
32
|
static discriminator: string | undefined = undefined;
|
|
@@ -55,7 +55,7 @@ export class OrderDocument {
|
|
|
55
55
|
{
|
|
56
56
|
"name": "asset",
|
|
57
57
|
"baseName": "asset",
|
|
58
|
-
"type": "
|
|
58
|
+
"type": "Asset"
|
|
59
59
|
},
|
|
60
60
|
{
|
|
61
61
|
"name": "status",
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
/**
|
|
15
|
+
* Supported order types.
|
|
16
|
+
*/
|
|
17
|
+
export type OrderType =
|
|
18
|
+
'stake' |
|
|
19
|
+
'unstake' |
|
|
20
|
+
'withdraw';
|
|
21
|
+
|
package/model/portfolioEntity.ts
CHANGED
|
@@ -10,13 +10,13 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
13
|
+
import { Asset } from './asset';
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Overview of a managed user\'s account portfolio.
|
|
17
17
|
*/
|
|
18
18
|
export class PortfolioEntity {
|
|
19
|
-
'asset':
|
|
19
|
+
'asset': Asset;
|
|
20
20
|
'totalAmount': string;
|
|
21
21
|
'stakedAmount': string;
|
|
22
22
|
|
|
@@ -26,7 +26,7 @@ export class PortfolioEntity {
|
|
|
26
26
|
{
|
|
27
27
|
"name": "asset",
|
|
28
28
|
"baseName": "asset",
|
|
29
|
-
"type": "
|
|
29
|
+
"type": "Asset"
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
"name": "totalAmount",
|
package/model/rFQDocumentBase.ts
CHANGED
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
import { RFQDocumentBaseUniqueEscrowVault } from './rFQDocumentBaseUniqueEscrowVault';
|
|
14
|
-
import {
|
|
14
|
+
import { RFQDocumentStatus } from './rFQDocumentStatus';
|
|
15
15
|
import { SettlementSteps } from './settlementSteps';
|
|
16
16
|
|
|
17
17
|
export class RFQDocumentBase {
|
|
18
18
|
'id': string;
|
|
19
|
-
'status':
|
|
19
|
+
'status': RFQDocumentStatus;
|
|
20
20
|
'total_balance': number;
|
|
21
21
|
'payment_address': string;
|
|
22
22
|
'estimated_all_validators_exited_at': Date;
|
|
@@ -34,7 +34,7 @@ export class RFQDocumentBase {
|
|
|
34
34
|
{
|
|
35
35
|
"name": "status",
|
|
36
36
|
"baseName": "status",
|
|
37
|
-
"type": "
|
|
37
|
+
"type": "RFQDocumentStatus"
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
"name": "total_balance",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
import { Quote } from './quote';
|
|
14
14
|
import { RFQDocumentBaseUniqueEscrowVault } from './rFQDocumentBaseUniqueEscrowVault';
|
|
15
15
|
import { RFQDocumentBuyerAllOfValidators } from './rFQDocumentBuyerAllOfValidators';
|
|
16
|
-
import {
|
|
16
|
+
import { RFQDocumentStatus } from './rFQDocumentStatus';
|
|
17
17
|
import { SettlementSteps } from './settlementSteps';
|
|
18
18
|
|
|
19
19
|
export class RFQDocumentBuyer {
|
|
20
20
|
'id': string;
|
|
21
|
-
'status':
|
|
21
|
+
'status': RFQDocumentStatus;
|
|
22
22
|
'total_balance': number;
|
|
23
23
|
'payment_address': string;
|
|
24
24
|
'estimated_all_validators_exited_at': Date;
|
|
@@ -38,7 +38,7 @@ export class RFQDocumentBuyer {
|
|
|
38
38
|
{
|
|
39
39
|
"name": "status",
|
|
40
40
|
"baseName": "status",
|
|
41
|
-
"type": "
|
|
41
|
+
"type": "RFQDocumentStatus"
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"name": "total_balance",
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
import { Quote } from './quote';
|
|
14
14
|
import { RFQDocumentBaseUniqueEscrowVault } from './rFQDocumentBaseUniqueEscrowVault';
|
|
15
15
|
import { RFQDocumentSellerAllOfValidators } from './rFQDocumentSellerAllOfValidators';
|
|
16
|
-
import {
|
|
16
|
+
import { RFQDocumentStatus } from './rFQDocumentStatus';
|
|
17
17
|
import { SettlementSteps } from './settlementSteps';
|
|
18
18
|
|
|
19
19
|
export class RFQDocumentSeller {
|
|
20
20
|
'id': string;
|
|
21
|
-
'status':
|
|
21
|
+
'status': RFQDocumentStatus;
|
|
22
22
|
'total_balance': number;
|
|
23
23
|
'payment_address': string;
|
|
24
24
|
'estimated_all_validators_exited_at': Date;
|
|
@@ -39,7 +39,7 @@ export class RFQDocumentSeller {
|
|
|
39
39
|
{
|
|
40
40
|
"name": "status",
|
|
41
41
|
"baseName": "status",
|
|
42
|
-
"type": "
|
|
42
|
+
"type": "RFQDocumentStatus"
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
"name": "total_balance",
|
package/model/settlementSteps.ts
CHANGED
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
13
|
+
import { AcceptedQuote } from './acceptedQuote';
|
|
14
|
+
import { EscrowPayment } from './escrowPayment';
|
|
15
|
+
import { EscrowReleased } from './escrowReleased';
|
|
16
|
+
import { WithdrawalRecipientSettlement } from './withdrawalRecipientSettlement';
|
|
17
17
|
|
|
18
18
|
export class SettlementSteps {
|
|
19
|
-
'accepted_quote'?:
|
|
20
|
-
'escrow_payment'?:
|
|
21
|
-
'withdrawal_recipient_settlement'?:
|
|
22
|
-
'escrow_released'?:
|
|
19
|
+
'accepted_quote'?: AcceptedQuote;
|
|
20
|
+
'escrow_payment'?: EscrowPayment;
|
|
21
|
+
'withdrawal_recipient_settlement'?: WithdrawalRecipientSettlement;
|
|
22
|
+
'escrow_released'?: EscrowReleased;
|
|
23
23
|
|
|
24
24
|
static discriminator: string | undefined = undefined;
|
|
25
25
|
|
|
@@ -27,22 +27,22 @@ export class SettlementSteps {
|
|
|
27
27
|
{
|
|
28
28
|
"name": "accepted_quote",
|
|
29
29
|
"baseName": "accepted_quote",
|
|
30
|
-
"type": "
|
|
30
|
+
"type": "AcceptedQuote"
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
33
|
"name": "escrow_payment",
|
|
34
34
|
"baseName": "escrow_payment",
|
|
35
|
-
"type": "
|
|
35
|
+
"type": "EscrowPayment"
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
38
|
"name": "withdrawal_recipient_settlement",
|
|
39
39
|
"baseName": "withdrawal_recipient_settlement",
|
|
40
|
-
"type": "
|
|
40
|
+
"type": "WithdrawalRecipientSettlement"
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
43
|
"name": "escrow_released",
|
|
44
44
|
"baseName": "escrow_released",
|
|
45
|
-
"type": "
|
|
45
|
+
"type": "EscrowReleased"
|
|
46
46
|
} ];
|
|
47
47
|
|
|
48
48
|
static getAttributeTypeMap() {
|