@northstake/northstakeapi 1.0.24 → 1.0.26
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 +6 -36
- package/.openapi-generator/VERSION +1 -1
- package/api/apis.ts +3 -23
- package/api/{managedUsersApi.ts → smartContractsApi.ts} +118 -53
- package/api.ts +9 -69
- package/dist/api/apis.d.ts +3 -23
- package/dist/api/apis.js +3 -23
- package/dist/api/smartContractsApi.d.ts +125 -0
- package/dist/api/{managedUsersApi.js → smartContractsApi.js} +90 -49
- package/dist/api.d.ts +7 -47
- package/dist/api.js +8 -58
- package/dist/model/{getTransactionsResponse.d.ts → getSmartContractInternalTransactions200Response.d.ts} +7 -7
- package/dist/model/{transactionsforUser.js → getSmartContractInternalTransactions200Response.js} +11 -11
- package/dist/model/{allManagedUsersResponse.d.ts → getSmartContractMinedBlocks200Response.d.ts} +4 -4
- package/dist/model/{allManagedUsersResponse.js → getSmartContractMinedBlocks200Response.js} +9 -9
- package/dist/model/{transactionsforUser.d.ts → getSmartContractTransactions200Response.d.ts} +5 -5
- package/dist/model/{getTransactionsResponse.js → getSmartContractTransactions200Response.js} +10 -10
- package/dist/model/{stakeStep.d.ts → internalTransaction.d.ts} +9 -7
- package/dist/model/internalTransaction.js +58 -0
- package/dist/model/{managedUser.d.ts → minedBlock.d.ts} +8 -6
- package/dist/model/minedBlock.js +43 -0
- package/dist/model/models.d.ts +5 -25
- package/dist/model/models.js +15 -67
- package/dist/model/transaction.d.ts +40 -17
- package/dist/model/transaction.js +74 -17
- package/dist/model/webhookPayloadData.d.ts +2 -10
- package/dist/model/webhookPayloadData.js +2 -12
- package/model/{transactionsforUser.ts → getSmartContractInternalTransactions200Response.ts} +13 -13
- package/model/{allManagedUsersResponse.ts → getSmartContractMinedBlocks200Response.ts} +8 -8
- package/model/{getTransactionsResponse.ts → getSmartContractTransactions200Response.ts} +10 -10
- package/model/internalTransaction.ts +70 -0
- package/model/{depositAddress.ts → minedBlock.ts} +19 -13
- package/model/models.ts +17 -114
- package/model/transaction.ts +114 -31
- package/model/webhookPayloadData.ts +4 -23
- package/package.json +1 -1
- package/api/depositAddressesApi.ts +0 -267
- package/api/managedUsersDepositAddressesApi.ts +0 -186
- package/api/managedUsersLinkedWalletsApi.ts +0 -369
- package/api/managedUsersOrdersApi.ts +0 -462
- package/api/managedUsersPortfolioApi.ts +0 -186
- package/api/managedUsersTransactionsApi.ts +0 -222
- package/api/managedUsersValidatorsApi.ts +0 -302
- package/api/ordersApi.ts +0 -432
- package/api/portfolioApi.ts +0 -180
- package/api/transactionsApi.ts +0 -215
- package/dist/api/depositAddressesApi.d.ts +0 -64
- package/dist/api/depositAddressesApi.js +0 -207
- package/dist/api/managedUsersApi.d.ts +0 -94
- package/dist/api/managedUsersDepositAddressesApi.d.ts +0 -51
- package/dist/api/managedUsersDepositAddressesApi.js +0 -146
- package/dist/api/managedUsersLinkedWalletsApi.d.ts +0 -80
- package/dist/api/managedUsersLinkedWalletsApi.js +0 -290
- package/dist/api/managedUsersOrdersApi.d.ts +0 -94
- package/dist/api/managedUsersOrdersApi.js +0 -364
- package/dist/api/managedUsersPortfolioApi.d.ts +0 -51
- package/dist/api/managedUsersPortfolioApi.js +0 -146
- package/dist/api/managedUsersTransactionsApi.d.ts +0 -68
- package/dist/api/managedUsersTransactionsApi.js +0 -170
- package/dist/api/managedUsersValidatorsApi.d.ts +0 -78
- package/dist/api/managedUsersValidatorsApi.js +0 -233
- package/dist/api/ordersApi.d.ts +0 -90
- package/dist/api/ordersApi.js +0 -333
- package/dist/api/portfolioApi.d.ts +0 -50
- package/dist/api/portfolioApi.js +0 -140
- package/dist/api/transactionsApi.d.ts +0 -66
- package/dist/api/transactionsApi.js +0 -164
- package/dist/model/addLinkedWalletForUserRequest.d.ts +0 -29
- package/dist/model/addLinkedWalletForUserRequest.js +0 -33
- package/dist/model/createManagedUserRequest.d.ts +0 -25
- package/dist/model/createManagedUserRequest.js +0 -28
- package/dist/model/depositAddress.d.ts +0 -35
- package/dist/model/depositAddress.js +0 -36
- package/dist/model/depositAddressesForUserResponse.d.ts +0 -27
- package/dist/model/depositAddressesForUserResponse.js +0 -33
- package/dist/model/managedUser.js +0 -36
- package/dist/model/managedUserDetails.d.ts +0 -31
- package/dist/model/managedUserDetails.js +0 -41
- package/dist/model/order.d.ts +0 -42
- package/dist/model/order.js +0 -48
- package/dist/model/orderDocument.d.ts +0 -50
- package/dist/model/orderDocument.js +0 -71
- package/dist/model/orderDocumentSteps.d.ts +0 -30
- package/dist/model/orderDocumentSteps.js +0 -33
- package/dist/model/orderType.d.ts +0 -15
- package/dist/model/orderType.js +0 -13
- package/dist/model/orderUpdatePayload.d.ts +0 -36
- package/dist/model/orderUpdatePayload.js +0 -38
- package/dist/model/portfolioEntity.d.ts +0 -33
- package/dist/model/portfolioEntity.js +0 -41
- package/dist/model/stakeStep.js +0 -33
- package/dist/model/stakeStepElement.d.ts +0 -30
- package/dist/model/stakeStepElement.js +0 -33
- package/dist/model/stepStatus.d.ts +0 -15
- package/dist/model/stepStatus.js +0 -13
- package/dist/model/transactionEventType.d.ts +0 -15
- package/dist/model/transactionEventType.js +0 -13
- package/dist/model/unstakeStep.d.ts +0 -32
- package/dist/model/unstakeStep.js +0 -33
- package/dist/model/unstakeStepElement.d.ts +0 -30
- package/dist/model/unstakeStepElement.js +0 -33
- package/dist/model/unstakeStepType.d.ts +0 -15
- package/dist/model/unstakeStepType.js +0 -13
- package/dist/model/withdrawalStep.d.ts +0 -32
- package/dist/model/withdrawalStep.js +0 -33
- package/dist/model/withdrawalStepElement.d.ts +0 -30
- package/dist/model/withdrawalStepElement.js +0 -33
- package/dist/model/withdrawalStepType.d.ts +0 -15
- package/dist/model/withdrawalStepType.js +0 -13
- package/model/addLinkedWalletForUserRequest.ts +0 -40
- package/model/createManagedUserRequest.ts +0 -31
- package/model/depositAddressesForUserResponse.ts +0 -38
- package/model/managedUser.ts +0 -40
- package/model/managedUserDetails.ts +0 -47
- package/model/order.ts +0 -68
- package/model/orderDocument.ts +0 -106
- package/model/orderDocumentSteps.ts +0 -44
- package/model/orderType.ts +0 -21
- package/model/orderUpdatePayload.ts +0 -52
- package/model/portfolioEntity.ts +0 -49
- package/model/stakeStep.ts +0 -43
- package/model/stakeStepElement.ts +0 -41
- package/model/stepStatus.ts +0 -21
- package/model/transactionEventType.ts +0 -23
- package/model/unstakeStep.ts +0 -43
- package/model/unstakeStepElement.ts +0 -41
- package/model/unstakeStepType.ts +0 -32
- package/model/withdrawalStep.ts +0 -43
- package/model/withdrawalStepElement.ts +0 -41
- package/model/withdrawalStepType.ts +0 -24
|
@@ -10,25 +10,33 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { Asset } from './asset';
|
|
14
13
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
*/
|
|
18
|
-
export class DepositAddress {
|
|
19
|
-
'type': Asset;
|
|
14
|
+
export class MinedBlock {
|
|
15
|
+
'blockNumber': number;
|
|
20
16
|
/**
|
|
21
|
-
*
|
|
17
|
+
* Block reward in ETH
|
|
22
18
|
*/
|
|
19
|
+
'blockReward': string;
|
|
20
|
+
'timeStamp': Date;
|
|
23
21
|
'address': string;
|
|
24
22
|
|
|
25
23
|
static discriminator: string | undefined = undefined;
|
|
26
24
|
|
|
27
25
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
28
26
|
{
|
|
29
|
-
"name": "
|
|
30
|
-
"baseName": "
|
|
31
|
-
"type": "
|
|
27
|
+
"name": "blockNumber",
|
|
28
|
+
"baseName": "blockNumber",
|
|
29
|
+
"type": "number"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "blockReward",
|
|
33
|
+
"baseName": "blockReward",
|
|
34
|
+
"type": "string"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"name": "timeStamp",
|
|
38
|
+
"baseName": "timeStamp",
|
|
39
|
+
"type": "Date"
|
|
32
40
|
},
|
|
33
41
|
{
|
|
34
42
|
"name": "address",
|
|
@@ -37,10 +45,8 @@ export class DepositAddress {
|
|
|
37
45
|
} ];
|
|
38
46
|
|
|
39
47
|
static getAttributeTypeMap() {
|
|
40
|
-
return
|
|
48
|
+
return MinedBlock.attributeTypeMap;
|
|
41
49
|
}
|
|
42
50
|
}
|
|
43
51
|
|
|
44
|
-
export namespace DepositAddress {
|
|
45
|
-
}
|
|
46
52
|
|
package/model/models.ts
CHANGED
|
@@ -4,15 +4,10 @@ import * as jwt from 'jsonwebtoken';
|
|
|
4
4
|
|
|
5
5
|
export * from './acceptedQuote';
|
|
6
6
|
export * from './accountEntity';
|
|
7
|
-
export * from './addLinkedWalletForUserRequest';
|
|
8
7
|
export * from './addLinkedWalletRequest';
|
|
9
|
-
export * from './allManagedUsersResponse';
|
|
10
8
|
export * from './apiKey';
|
|
11
9
|
export * from './asset';
|
|
12
|
-
export * from './createManagedUserRequest';
|
|
13
10
|
export * from './createRFQRequest';
|
|
14
|
-
export * from './depositAddress';
|
|
15
|
-
export * from './depositAddressesForUserResponse';
|
|
16
11
|
export * from './errorResponse';
|
|
17
12
|
export * from './escrowPayment';
|
|
18
13
|
export * from './escrowReleased';
|
|
@@ -29,17 +24,13 @@ export * from './exitEstimateSeller';
|
|
|
29
24
|
export * from './exitProposal';
|
|
30
25
|
export * from './generateApiKeyRequest';
|
|
31
26
|
export * from './getMarketplaceMetadata200Response';
|
|
32
|
-
export * from './
|
|
27
|
+
export * from './getSmartContractInternalTransactions200Response';
|
|
28
|
+
export * from './getSmartContractMinedBlocks200Response';
|
|
29
|
+
export * from './getSmartContractTransactions200Response';
|
|
33
30
|
export * from './getWithdrawalsResponse';
|
|
31
|
+
export * from './internalTransaction';
|
|
34
32
|
export * from './listAllRFQsForFacilitator200Response';
|
|
35
|
-
export * from './
|
|
36
|
-
export * from './managedUserDetails';
|
|
37
|
-
export * from './order';
|
|
38
|
-
export * from './orderDocument';
|
|
39
|
-
export * from './orderDocumentSteps';
|
|
40
|
-
export * from './orderType';
|
|
41
|
-
export * from './orderUpdatePayload';
|
|
42
|
-
export * from './portfolioEntity';
|
|
33
|
+
export * from './minedBlock';
|
|
43
34
|
export * from './provideEscrowHashForRFQDocumentRequest';
|
|
44
35
|
export * from './quote';
|
|
45
36
|
export * from './rFQBidFacilitator';
|
|
@@ -62,16 +53,8 @@ export * from './rFQWebhookEventType';
|
|
|
62
53
|
export * from './registerWithdrawalRecipientSettlementRequest';
|
|
63
54
|
export * from './settlementSteps';
|
|
64
55
|
export * from './smartContract';
|
|
65
|
-
export * from './stakeStep';
|
|
66
|
-
export * from './stakeStepElement';
|
|
67
|
-
export * from './stepStatus';
|
|
68
56
|
export * from './submittedQuote';
|
|
69
57
|
export * from './transaction';
|
|
70
|
-
export * from './transactionEventType';
|
|
71
|
-
export * from './transactionsforUser';
|
|
72
|
-
export * from './unstakeStep';
|
|
73
|
-
export * from './unstakeStepElement';
|
|
74
|
-
export * from './unstakeStepType';
|
|
75
58
|
export * from './validatorInfo';
|
|
76
59
|
export * from './validatorKeyHolder';
|
|
77
60
|
export * from './validatorType';
|
|
@@ -100,9 +83,6 @@ export * from './webhookPayloadRFQWithdrawalClaimableDetails';
|
|
|
100
83
|
export * from './webhookRegistration';
|
|
101
84
|
export * from './webhookRegistrationDetails';
|
|
102
85
|
export * from './withdrawalRecipientSettlement';
|
|
103
|
-
export * from './withdrawalStep';
|
|
104
|
-
export * from './withdrawalStepElement';
|
|
105
|
-
export * from './withdrawalStepType';
|
|
106
86
|
|
|
107
87
|
import * as fs from 'fs';
|
|
108
88
|
|
|
@@ -123,33 +103,18 @@ import { AcceptedQuote } from './acceptedQuote';
|
|
|
123
103
|
import { AccountEntity } from './accountEntity';
|
|
124
104
|
|
|
125
105
|
|
|
126
|
-
import { AddLinkedWalletForUserRequest } from './addLinkedWalletForUserRequest';
|
|
127
|
-
|
|
128
|
-
|
|
129
106
|
import { AddLinkedWalletRequest } from './addLinkedWalletRequest';
|
|
130
107
|
|
|
131
108
|
|
|
132
|
-
import { AllManagedUsersResponse } from './allManagedUsersResponse';
|
|
133
|
-
|
|
134
|
-
|
|
135
109
|
import { ApiKey } from './apiKey';
|
|
136
110
|
|
|
137
111
|
|
|
138
112
|
import { Asset } from './asset';
|
|
139
113
|
|
|
140
114
|
|
|
141
|
-
import { CreateManagedUserRequest } from './createManagedUserRequest';
|
|
142
|
-
|
|
143
|
-
|
|
144
115
|
import { CreateRFQRequest } from './createRFQRequest';
|
|
145
116
|
|
|
146
117
|
|
|
147
|
-
import { DepositAddress } from './depositAddress';
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
import { DepositAddressesForUserResponse } from './depositAddressesForUserResponse';
|
|
151
|
-
|
|
152
|
-
|
|
153
118
|
import { ErrorResponse } from './errorResponse';
|
|
154
119
|
|
|
155
120
|
|
|
@@ -198,37 +163,25 @@ import { GenerateApiKeyRequest } from './generateApiKeyRequest';
|
|
|
198
163
|
import { GetMarketplaceMetadata200Response } from './getMarketplaceMetadata200Response';
|
|
199
164
|
|
|
200
165
|
|
|
201
|
-
import {
|
|
202
|
-
|
|
166
|
+
import { GetSmartContractInternalTransactions200Response } from './getSmartContractInternalTransactions200Response';
|
|
203
167
|
|
|
204
|
-
import { GetWithdrawalsResponse } from './getWithdrawalsResponse';
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
import { ListAllRFQsForFacilitator200Response } from './listAllRFQsForFacilitator200Response';
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
import { ManagedUser } from './managedUser';
|
|
211
168
|
|
|
169
|
+
import { GetSmartContractMinedBlocks200Response } from './getSmartContractMinedBlocks200Response';
|
|
212
170
|
|
|
213
|
-
import { ManagedUserDetails } from './managedUserDetails';
|
|
214
171
|
|
|
172
|
+
import { GetSmartContractTransactions200Response } from './getSmartContractTransactions200Response';
|
|
215
173
|
|
|
216
|
-
import { Order } from './order';
|
|
217
174
|
|
|
218
|
-
|
|
219
|
-
import { OrderDocument } from './orderDocument';
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
import { OrderDocumentSteps } from './orderDocumentSteps';
|
|
175
|
+
import { GetWithdrawalsResponse } from './getWithdrawalsResponse';
|
|
223
176
|
|
|
224
177
|
|
|
225
|
-
import {
|
|
178
|
+
import { InternalTransaction } from './internalTransaction';
|
|
226
179
|
|
|
227
180
|
|
|
228
|
-
import {
|
|
181
|
+
import { ListAllRFQsForFacilitator200Response } from './listAllRFQsForFacilitator200Response';
|
|
229
182
|
|
|
230
183
|
|
|
231
|
-
import {
|
|
184
|
+
import { MinedBlock } from './minedBlock';
|
|
232
185
|
|
|
233
186
|
|
|
234
187
|
import { ProvideEscrowHashForRFQDocumentRequest } from './provideEscrowHashForRFQDocumentRequest';
|
|
@@ -297,36 +250,12 @@ import { SettlementSteps } from './settlementSteps';
|
|
|
297
250
|
import { SmartContract } from './smartContract';
|
|
298
251
|
|
|
299
252
|
|
|
300
|
-
import { StakeStep } from './stakeStep';
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
import { StakeStepElement } from './stakeStepElement';
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
import { StepStatus } from './stepStatus';
|
|
307
|
-
|
|
308
|
-
|
|
309
253
|
import { SubmittedQuote } from './submittedQuote';
|
|
310
254
|
|
|
311
255
|
|
|
312
256
|
import { Transaction } from './transaction';
|
|
313
257
|
|
|
314
258
|
|
|
315
|
-
import { TransactionEventType } from './transactionEventType';
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
import { TransactionsforUser } from './transactionsforUser';
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
import { UnstakeStep } from './unstakeStep';
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
import { UnstakeStepElement } from './unstakeStepElement';
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
import { UnstakeStepType } from './unstakeStepType';
|
|
328
|
-
|
|
329
|
-
|
|
330
259
|
import { ValidatorInfo } from './validatorInfo';
|
|
331
260
|
|
|
332
261
|
|
|
@@ -411,15 +340,6 @@ import { WebhookRegistrationDetails } from './webhookRegistrationDetails';
|
|
|
411
340
|
import { WithdrawalRecipientSettlement } from './withdrawalRecipientSettlement';
|
|
412
341
|
|
|
413
342
|
|
|
414
|
-
import { WithdrawalStep } from './withdrawalStep';
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
import { WithdrawalStepElement } from './withdrawalStepElement';
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
import { WithdrawalStepType } from './withdrawalStepType';
|
|
421
|
-
|
|
422
|
-
|
|
423
343
|
|
|
424
344
|
/* tslint:disable:no-unused-variable */
|
|
425
345
|
let primitives = [
|
|
@@ -435,8 +355,6 @@ let primitives = [
|
|
|
435
355
|
let enumsMap: {[index: string]: any} = {
|
|
436
356
|
"ApiKey.roles": ApiKey,
|
|
437
357
|
"GenerateApiKeyRequest.keyRights": GenerateApiKeyRequest,
|
|
438
|
-
"OrderDocument.type": OrderDocument,
|
|
439
|
-
"OrderDocument.status": OrderDocument,
|
|
440
358
|
"RFQDocumentFacilitator.status": RFQDocumentFacilitator,
|
|
441
359
|
"ValidatorInfo.asset": ValidatorInfo,
|
|
442
360
|
"ValidatorInfo.status": ValidatorInfo,
|
|
@@ -445,14 +363,9 @@ let enumsMap: {[index: string]: any} = {
|
|
|
445
363
|
let typeMap: {[index: string]: any} = {
|
|
446
364
|
"AcceptedQuote": AcceptedQuote,
|
|
447
365
|
"AccountEntity": AccountEntity,
|
|
448
|
-
"AddLinkedWalletForUserRequest": AddLinkedWalletForUserRequest,
|
|
449
366
|
"AddLinkedWalletRequest": AddLinkedWalletRequest,
|
|
450
|
-
"AllManagedUsersResponse": AllManagedUsersResponse,
|
|
451
367
|
"ApiKey": ApiKey,
|
|
452
|
-
"CreateManagedUserRequest": CreateManagedUserRequest,
|
|
453
368
|
"CreateRFQRequest": CreateRFQRequest,
|
|
454
|
-
"DepositAddress": DepositAddress,
|
|
455
|
-
"DepositAddressesForUserResponse": DepositAddressesForUserResponse,
|
|
456
369
|
"ErrorResponse": ErrorResponse,
|
|
457
370
|
"EscrowPayment": EscrowPayment,
|
|
458
371
|
"EscrowReleased": EscrowReleased,
|
|
@@ -469,16 +382,13 @@ let typeMap: {[index: string]: any} = {
|
|
|
469
382
|
"ExitProposal": ExitProposal,
|
|
470
383
|
"GenerateApiKeyRequest": GenerateApiKeyRequest,
|
|
471
384
|
"GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
|
|
472
|
-
"
|
|
385
|
+
"GetSmartContractInternalTransactions200Response": GetSmartContractInternalTransactions200Response,
|
|
386
|
+
"GetSmartContractMinedBlocks200Response": GetSmartContractMinedBlocks200Response,
|
|
387
|
+
"GetSmartContractTransactions200Response": GetSmartContractTransactions200Response,
|
|
473
388
|
"GetWithdrawalsResponse": GetWithdrawalsResponse,
|
|
389
|
+
"InternalTransaction": InternalTransaction,
|
|
474
390
|
"ListAllRFQsForFacilitator200Response": ListAllRFQsForFacilitator200Response,
|
|
475
|
-
"
|
|
476
|
-
"ManagedUserDetails": ManagedUserDetails,
|
|
477
|
-
"Order": Order,
|
|
478
|
-
"OrderDocument": OrderDocument,
|
|
479
|
-
"OrderDocumentSteps": OrderDocumentSteps,
|
|
480
|
-
"OrderUpdatePayload": OrderUpdatePayload,
|
|
481
|
-
"PortfolioEntity": PortfolioEntity,
|
|
391
|
+
"MinedBlock": MinedBlock,
|
|
482
392
|
"ProvideEscrowHashForRFQDocumentRequest": ProvideEscrowHashForRFQDocumentRequest,
|
|
483
393
|
"Quote": Quote,
|
|
484
394
|
"RFQBidFacilitator": RFQBidFacilitator,
|
|
@@ -496,13 +406,8 @@ let typeMap: {[index: string]: any} = {
|
|
|
496
406
|
"RegisterWithdrawalRecipientSettlementRequest": RegisterWithdrawalRecipientSettlementRequest,
|
|
497
407
|
"SettlementSteps": SettlementSteps,
|
|
498
408
|
"SmartContract": SmartContract,
|
|
499
|
-
"StakeStep": StakeStep,
|
|
500
|
-
"StakeStepElement": StakeStepElement,
|
|
501
409
|
"SubmittedQuote": SubmittedQuote,
|
|
502
410
|
"Transaction": Transaction,
|
|
503
|
-
"TransactionsforUser": TransactionsforUser,
|
|
504
|
-
"UnstakeStep": UnstakeStep,
|
|
505
|
-
"UnstakeStepElement": UnstakeStepElement,
|
|
506
411
|
"ValidatorInfo": ValidatorInfo,
|
|
507
412
|
"ValidatorWithdrawal": ValidatorWithdrawal,
|
|
508
413
|
"Wallet": Wallet,
|
|
@@ -529,8 +434,6 @@ let typeMap: {[index: string]: any} = {
|
|
|
529
434
|
"WebhookRegistration": WebhookRegistration,
|
|
530
435
|
"WebhookRegistrationDetails": WebhookRegistrationDetails,
|
|
531
436
|
"WithdrawalRecipientSettlement": WithdrawalRecipientSettlement,
|
|
532
|
-
"WithdrawalStep": WithdrawalStep,
|
|
533
|
-
"WithdrawalStepElement": WithdrawalStepElement,
|
|
534
437
|
}
|
|
535
438
|
|
|
536
439
|
export class ObjectSerializer {
|
package/model/transaction.ts
CHANGED
|
@@ -10,64 +10,149 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { Asset } from './asset';
|
|
14
|
-
import { TransactionEventType } from './transactionEventType';
|
|
15
13
|
|
|
16
|
-
/**
|
|
17
|
-
* Details of transactions including type, amount, and asset.
|
|
18
|
-
*/
|
|
19
14
|
export class Transaction {
|
|
15
|
+
'blockNumber': number;
|
|
16
|
+
'timeStamp': Date;
|
|
17
|
+
'hash': string;
|
|
18
|
+
'nonce'?: number;
|
|
19
|
+
'blockHash'?: string;
|
|
20
|
+
'transactionIndex'?: number;
|
|
21
|
+
'fromAddress': string;
|
|
22
|
+
'toAddress': string;
|
|
23
|
+
/**
|
|
24
|
+
* Transaction value in eth
|
|
25
|
+
*/
|
|
26
|
+
'value': string;
|
|
27
|
+
/**
|
|
28
|
+
* Gas price in gwei per unit
|
|
29
|
+
*/
|
|
30
|
+
'gasPrice'?: string;
|
|
31
|
+
/**
|
|
32
|
+
* amount of gas used
|
|
33
|
+
*/
|
|
34
|
+
'gasUsed'?: string;
|
|
35
|
+
/**
|
|
36
|
+
* Transaction fee in eth (gasPrice * gasUsed)
|
|
37
|
+
*/
|
|
38
|
+
'transactionFee'?: string;
|
|
39
|
+
/**
|
|
40
|
+
* Whether the transaction failed or not
|
|
41
|
+
*/
|
|
42
|
+
'isError'?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Transaction input data in hex
|
|
45
|
+
*/
|
|
46
|
+
'input'?: string;
|
|
20
47
|
/**
|
|
21
|
-
*
|
|
48
|
+
* Decoded transaction input data
|
|
22
49
|
*/
|
|
23
|
-
'
|
|
24
|
-
'eventType': TransactionEventType;
|
|
50
|
+
'inputDecoded'?: object;
|
|
25
51
|
/**
|
|
26
|
-
*
|
|
52
|
+
* The name of the function called in the transaction
|
|
27
53
|
*/
|
|
28
|
-
'
|
|
29
|
-
'asset': Asset;
|
|
54
|
+
'functionName'?: string;
|
|
30
55
|
/**
|
|
31
|
-
*
|
|
56
|
+
* The signature of the function called in the transaction
|
|
32
57
|
*/
|
|
33
|
-
'
|
|
58
|
+
'functionSignature'?: string;
|
|
34
59
|
/**
|
|
35
|
-
*
|
|
60
|
+
* Decoded arguments passed to the function called in the transaction including argument names, types, and values
|
|
36
61
|
*/
|
|
37
|
-
'
|
|
62
|
+
'functionArgsDecoded'?: object;
|
|
38
63
|
|
|
39
64
|
static discriminator: string | undefined = undefined;
|
|
40
65
|
|
|
41
66
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
42
67
|
{
|
|
43
|
-
"name": "
|
|
44
|
-
"baseName": "
|
|
68
|
+
"name": "blockNumber",
|
|
69
|
+
"baseName": "blockNumber",
|
|
70
|
+
"type": "number"
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "timeStamp",
|
|
74
|
+
"baseName": "timeStamp",
|
|
45
75
|
"type": "Date"
|
|
46
76
|
},
|
|
47
77
|
{
|
|
48
|
-
"name": "
|
|
49
|
-
"baseName": "
|
|
50
|
-
"type": "
|
|
78
|
+
"name": "hash",
|
|
79
|
+
"baseName": "hash",
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
"name": "nonce",
|
|
84
|
+
"baseName": "nonce",
|
|
85
|
+
"type": "number"
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
"name": "blockHash",
|
|
89
|
+
"baseName": "blockHash",
|
|
90
|
+
"type": "string"
|
|
51
91
|
},
|
|
52
92
|
{
|
|
53
|
-
"name": "
|
|
54
|
-
"baseName": "
|
|
93
|
+
"name": "transactionIndex",
|
|
94
|
+
"baseName": "transactionIndex",
|
|
55
95
|
"type": "number"
|
|
56
96
|
},
|
|
57
97
|
{
|
|
58
|
-
"name": "
|
|
59
|
-
"baseName": "
|
|
60
|
-
"type": "
|
|
98
|
+
"name": "fromAddress",
|
|
99
|
+
"baseName": "fromAddress",
|
|
100
|
+
"type": "string"
|
|
61
101
|
},
|
|
62
102
|
{
|
|
63
|
-
"name": "
|
|
64
|
-
"baseName": "
|
|
103
|
+
"name": "toAddress",
|
|
104
|
+
"baseName": "toAddress",
|
|
65
105
|
"type": "string"
|
|
66
106
|
},
|
|
67
107
|
{
|
|
68
|
-
"name": "
|
|
69
|
-
"baseName": "
|
|
108
|
+
"name": "value",
|
|
109
|
+
"baseName": "value",
|
|
70
110
|
"type": "string"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "gasPrice",
|
|
114
|
+
"baseName": "gasPrice",
|
|
115
|
+
"type": "string"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"name": "gasUsed",
|
|
119
|
+
"baseName": "gasUsed",
|
|
120
|
+
"type": "string"
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
"name": "transactionFee",
|
|
124
|
+
"baseName": "transactionFee",
|
|
125
|
+
"type": "string"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
"name": "isError",
|
|
129
|
+
"baseName": "isError",
|
|
130
|
+
"type": "boolean"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"name": "input",
|
|
134
|
+
"baseName": "input",
|
|
135
|
+
"type": "string"
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"name": "inputDecoded",
|
|
139
|
+
"baseName": "inputDecoded",
|
|
140
|
+
"type": "object"
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
"name": "functionName",
|
|
144
|
+
"baseName": "functionName",
|
|
145
|
+
"type": "string"
|
|
146
|
+
},
|
|
147
|
+
{
|
|
148
|
+
"name": "functionSignature",
|
|
149
|
+
"baseName": "functionSignature",
|
|
150
|
+
"type": "string"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"name": "functionArgsDecoded",
|
|
154
|
+
"baseName": "functionArgsDecoded",
|
|
155
|
+
"type": "object"
|
|
71
156
|
} ];
|
|
72
157
|
|
|
73
158
|
static getAttributeTypeMap() {
|
|
@@ -75,6 +160,4 @@ export class Transaction {
|
|
|
75
160
|
}
|
|
76
161
|
}
|
|
77
162
|
|
|
78
|
-
export namespace Transaction {
|
|
79
|
-
}
|
|
80
163
|
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { OrderUpdatePayload } from './orderUpdatePayload';
|
|
14
13
|
import { RFQUpdatePayload } from './rFQUpdatePayload';
|
|
15
14
|
|
|
16
15
|
/**
|
|
@@ -18,21 +17,13 @@ import { RFQUpdatePayload } from './rFQUpdatePayload';
|
|
|
18
17
|
*/
|
|
19
18
|
export class WebhookPayloadData {
|
|
20
19
|
/**
|
|
21
|
-
* Unique identifier for the
|
|
20
|
+
* Unique identifier for the RFQ.
|
|
22
21
|
*/
|
|
23
|
-
'
|
|
22
|
+
'rfqId'?: string;
|
|
24
23
|
/**
|
|
25
24
|
* New status of the RFQ.
|
|
26
25
|
*/
|
|
27
26
|
'status'?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Additional details regarding the order update.
|
|
30
|
-
*/
|
|
31
|
-
'details'?: object;
|
|
32
|
-
/**
|
|
33
|
-
* Unique identifier for the RFQ.
|
|
34
|
-
*/
|
|
35
|
-
'rfqId'?: string;
|
|
36
27
|
/**
|
|
37
28
|
* The best quote for the RFQ, if available.
|
|
38
29
|
*/
|
|
@@ -42,8 +33,8 @@ export class WebhookPayloadData {
|
|
|
42
33
|
|
|
43
34
|
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
44
35
|
{
|
|
45
|
-
"name": "
|
|
46
|
-
"baseName": "
|
|
36
|
+
"name": "rfqId",
|
|
37
|
+
"baseName": "rfqId",
|
|
47
38
|
"type": "string"
|
|
48
39
|
},
|
|
49
40
|
{
|
|
@@ -51,16 +42,6 @@ export class WebhookPayloadData {
|
|
|
51
42
|
"baseName": "status",
|
|
52
43
|
"type": "string"
|
|
53
44
|
},
|
|
54
|
-
{
|
|
55
|
-
"name": "details",
|
|
56
|
-
"baseName": "details",
|
|
57
|
-
"type": "object"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
"name": "rfqId",
|
|
61
|
-
"baseName": "rfqId",
|
|
62
|
-
"type": "string"
|
|
63
|
-
},
|
|
64
45
|
{
|
|
65
46
|
"name": "bestQuote",
|
|
66
47
|
"baseName": "bestQuote",
|