@northstake/northstakeapi 1.0.36 → 1.0.38
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 +3 -1
- package/.openapi-generator/VERSION +1 -1
- package/api/smartContractsApi.ts +111 -0
- package/api.ts +3 -1
- package/dist/api/smartContractsApi.d.ts +25 -0
- package/dist/api/smartContractsApi.js +83 -0
- package/dist/api.d.ts +3 -1
- package/dist/api.js +3 -1
- package/dist/model/{fiatAmount.d.ts → getSmartContractMEVRewards200Response.d.ts} +9 -17
- package/dist/model/getSmartContractMEVRewards200Response.js +43 -0
- package/dist/model/internalTransaction.d.ts +4 -2
- package/dist/model/internalTransaction.js +1 -1
- package/dist/model/mEVReward.d.ts +45 -0
- package/dist/model/mEVReward.js +83 -0
- package/dist/model/minedBlock.d.ts +4 -2
- package/dist/model/minedBlock.js +1 -1
- package/dist/model/models.d.ts +3 -1
- package/dist/model/models.js +9 -4
- package/dist/model/settlementSteps.d.ts +2 -0
- package/dist/model/settlementSteps.js +5 -0
- package/dist/model/transaction.d.ts +8 -3
- package/dist/model/transaction.js +2 -2
- package/dist/model/validatorWithdrawal.d.ts +4 -2
- package/dist/model/validatorWithdrawal.js +1 -1
- package/dist/model/withdrawalClaimable.d.ts +29 -0
- package/dist/model/withdrawalClaimable.js +48 -0
- package/model/getSmartContractMEVRewards200Response.ts +59 -0
- package/model/internalTransaction.ts +5 -3
- package/model/mEVReward.ts +106 -0
- package/model/minedBlock.ts +5 -3
- package/model/models.ts +15 -6
- package/model/settlementSteps.ts +7 -0
- package/model/transaction.ts +10 -5
- package/model/validatorWithdrawal.ts +5 -3
- package/model/withdrawalClaimable.ts +55 -0
- package/package.json +3 -3
- package/dist/model/fiatAmount.js +0 -43
- package/model/fiatAmount.ts +0 -68
package/dist/model/models.d.ts
CHANGED
|
@@ -19,14 +19,15 @@ export * from './ethereumValidatorKeyKeystoreCryptoKdfParams';
|
|
|
19
19
|
export * from './exitEstimateBase';
|
|
20
20
|
export * from './exitEstimateSeller';
|
|
21
21
|
export * from './exitProposal';
|
|
22
|
-
export * from './fiatAmount';
|
|
23
22
|
export * from './generateApiKeyRequest';
|
|
24
23
|
export * from './getMarketplaceMetadata200Response';
|
|
24
|
+
export * from './getSmartContractMEVRewards200Response';
|
|
25
25
|
export * from './getSmartContractMinedBlocks200Response';
|
|
26
26
|
export * from './getSmartContractTransactions200Response';
|
|
27
27
|
export * from './getWithdrawalsResponse';
|
|
28
28
|
export * from './internalTransaction';
|
|
29
29
|
export * from './listAllRFQsForFacilitator200Response';
|
|
30
|
+
export * from './mEVReward';
|
|
30
31
|
export * from './minedBlock';
|
|
31
32
|
export * from './presignedExitKey';
|
|
32
33
|
export * from './presignedExitKeyMessage';
|
|
@@ -84,6 +85,7 @@ export * from './webhookPayloadRFQWithdrawalClaimable';
|
|
|
84
85
|
export * from './webhookPayloadRFQWithdrawalClaimableDetails';
|
|
85
86
|
export * from './webhookRegistration';
|
|
86
87
|
export * from './webhookRegistrationDetails';
|
|
88
|
+
export * from './withdrawalClaimable';
|
|
87
89
|
export * from './withdrawalRecipientSettlement';
|
|
88
90
|
import * as fs from 'fs';
|
|
89
91
|
export interface RequestDetailedFile {
|
package/dist/model/models.js
CHANGED
|
@@ -58,14 +58,15 @@ __exportStar(require("./ethereumValidatorKeyKeystoreCryptoKdfParams"), exports);
|
|
|
58
58
|
__exportStar(require("./exitEstimateBase"), exports);
|
|
59
59
|
__exportStar(require("./exitEstimateSeller"), exports);
|
|
60
60
|
__exportStar(require("./exitProposal"), exports);
|
|
61
|
-
__exportStar(require("./fiatAmount"), exports);
|
|
62
61
|
__exportStar(require("./generateApiKeyRequest"), exports);
|
|
63
62
|
__exportStar(require("./getMarketplaceMetadata200Response"), exports);
|
|
63
|
+
__exportStar(require("./getSmartContractMEVRewards200Response"), exports);
|
|
64
64
|
__exportStar(require("./getSmartContractMinedBlocks200Response"), exports);
|
|
65
65
|
__exportStar(require("./getSmartContractTransactions200Response"), exports);
|
|
66
66
|
__exportStar(require("./getWithdrawalsResponse"), exports);
|
|
67
67
|
__exportStar(require("./internalTransaction"), exports);
|
|
68
68
|
__exportStar(require("./listAllRFQsForFacilitator200Response"), exports);
|
|
69
|
+
__exportStar(require("./mEVReward"), exports);
|
|
69
70
|
__exportStar(require("./minedBlock"), exports);
|
|
70
71
|
__exportStar(require("./presignedExitKey"), exports);
|
|
71
72
|
__exportStar(require("./presignedExitKeyMessage"), exports);
|
|
@@ -123,6 +124,7 @@ __exportStar(require("./webhookPayloadRFQWithdrawalClaimable"), exports);
|
|
|
123
124
|
__exportStar(require("./webhookPayloadRFQWithdrawalClaimableDetails"), exports);
|
|
124
125
|
__exportStar(require("./webhookRegistration"), exports);
|
|
125
126
|
__exportStar(require("./webhookRegistrationDetails"), exports);
|
|
127
|
+
__exportStar(require("./withdrawalClaimable"), exports);
|
|
126
128
|
__exportStar(require("./withdrawalRecipientSettlement"), exports);
|
|
127
129
|
const acceptedQuote_1 = require("./acceptedQuote");
|
|
128
130
|
const accountEntity_1 = require("./accountEntity");
|
|
@@ -143,14 +145,15 @@ const ethereumValidatorKeyKeystoreCryptoKdfParams_1 = require("./ethereumValidat
|
|
|
143
145
|
const exitEstimateBase_1 = require("./exitEstimateBase");
|
|
144
146
|
const exitEstimateSeller_1 = require("./exitEstimateSeller");
|
|
145
147
|
const exitProposal_1 = require("./exitProposal");
|
|
146
|
-
const fiatAmount_1 = require("./fiatAmount");
|
|
147
148
|
const generateApiKeyRequest_1 = require("./generateApiKeyRequest");
|
|
148
149
|
const getMarketplaceMetadata200Response_1 = require("./getMarketplaceMetadata200Response");
|
|
150
|
+
const getSmartContractMEVRewards200Response_1 = require("./getSmartContractMEVRewards200Response");
|
|
149
151
|
const getSmartContractMinedBlocks200Response_1 = require("./getSmartContractMinedBlocks200Response");
|
|
150
152
|
const getSmartContractTransactions200Response_1 = require("./getSmartContractTransactions200Response");
|
|
151
153
|
const getWithdrawalsResponse_1 = require("./getWithdrawalsResponse");
|
|
152
154
|
const internalTransaction_1 = require("./internalTransaction");
|
|
153
155
|
const listAllRFQsForFacilitator200Response_1 = require("./listAllRFQsForFacilitator200Response");
|
|
156
|
+
const mEVReward_1 = require("./mEVReward");
|
|
154
157
|
const minedBlock_1 = require("./minedBlock");
|
|
155
158
|
const presignedExitKey_1 = require("./presignedExitKey");
|
|
156
159
|
const presignedExitKeyMessage_1 = require("./presignedExitKeyMessage");
|
|
@@ -201,6 +204,7 @@ const webhookPayloadRFQWithdrawalClaimable_1 = require("./webhookPayloadRFQWithd
|
|
|
201
204
|
const webhookPayloadRFQWithdrawalClaimableDetails_1 = require("./webhookPayloadRFQWithdrawalClaimableDetails");
|
|
202
205
|
const webhookRegistration_1 = require("./webhookRegistration");
|
|
203
206
|
const webhookRegistrationDetails_1 = require("./webhookRegistrationDetails");
|
|
207
|
+
const withdrawalClaimable_1 = require("./withdrawalClaimable");
|
|
204
208
|
const withdrawalRecipientSettlement_1 = require("./withdrawalRecipientSettlement");
|
|
205
209
|
/* tslint:disable:no-unused-variable */
|
|
206
210
|
let primitives = [
|
|
@@ -215,7 +219,6 @@ let primitives = [
|
|
|
215
219
|
];
|
|
216
220
|
let enumsMap = {
|
|
217
221
|
"ApiKey.roles": apiKey_1.ApiKey,
|
|
218
|
-
"FiatAmount.fiatCurrency": fiatAmount_1.FiatAmount,
|
|
219
222
|
"GenerateApiKeyRequest.keyRights": generateApiKeyRequest_1.GenerateApiKeyRequest,
|
|
220
223
|
"RFQDocumentFacilitator.status": rFQDocumentFacilitator_1.RFQDocumentFacilitator,
|
|
221
224
|
"ValidatorInfo.asset": validatorInfo_1.ValidatorInfo,
|
|
@@ -243,14 +246,15 @@ let typeMap = {
|
|
|
243
246
|
"ExitEstimateBase": exitEstimateBase_1.ExitEstimateBase,
|
|
244
247
|
"ExitEstimateSeller": exitEstimateSeller_1.ExitEstimateSeller,
|
|
245
248
|
"ExitProposal": exitProposal_1.ExitProposal,
|
|
246
|
-
"FiatAmount": fiatAmount_1.FiatAmount,
|
|
247
249
|
"GenerateApiKeyRequest": generateApiKeyRequest_1.GenerateApiKeyRequest,
|
|
248
250
|
"GetMarketplaceMetadata200Response": getMarketplaceMetadata200Response_1.GetMarketplaceMetadata200Response,
|
|
251
|
+
"GetSmartContractMEVRewards200Response": getSmartContractMEVRewards200Response_1.GetSmartContractMEVRewards200Response,
|
|
249
252
|
"GetSmartContractMinedBlocks200Response": getSmartContractMinedBlocks200Response_1.GetSmartContractMinedBlocks200Response,
|
|
250
253
|
"GetSmartContractTransactions200Response": getSmartContractTransactions200Response_1.GetSmartContractTransactions200Response,
|
|
251
254
|
"GetWithdrawalsResponse": getWithdrawalsResponse_1.GetWithdrawalsResponse,
|
|
252
255
|
"InternalTransaction": internalTransaction_1.InternalTransaction,
|
|
253
256
|
"ListAllRFQsForFacilitator200Response": listAllRFQsForFacilitator200Response_1.ListAllRFQsForFacilitator200Response,
|
|
257
|
+
"MEVReward": mEVReward_1.MEVReward,
|
|
254
258
|
"MinedBlock": minedBlock_1.MinedBlock,
|
|
255
259
|
"PresignedExitKey": presignedExitKey_1.PresignedExitKey,
|
|
256
260
|
"PresignedExitKeyMessage": presignedExitKeyMessage_1.PresignedExitKeyMessage,
|
|
@@ -301,6 +305,7 @@ let typeMap = {
|
|
|
301
305
|
"WebhookPayloadRFQWithdrawalClaimableDetails": webhookPayloadRFQWithdrawalClaimableDetails_1.WebhookPayloadRFQWithdrawalClaimableDetails,
|
|
302
306
|
"WebhookRegistration": webhookRegistration_1.WebhookRegistration,
|
|
303
307
|
"WebhookRegistrationDetails": webhookRegistrationDetails_1.WebhookRegistrationDetails,
|
|
308
|
+
"WithdrawalClaimable": withdrawalClaimable_1.WithdrawalClaimable,
|
|
304
309
|
"WithdrawalRecipientSettlement": withdrawalRecipientSettlement_1.WithdrawalRecipientSettlement,
|
|
305
310
|
};
|
|
306
311
|
class ObjectSerializer {
|
|
@@ -13,6 +13,7 @@ import { AcceptedQuote } from './acceptedQuote';
|
|
|
13
13
|
import { EscrowPayment } from './escrowPayment';
|
|
14
14
|
import { EscrowReleased } from './escrowReleased';
|
|
15
15
|
import { ExitProposal } from './exitProposal';
|
|
16
|
+
import { WithdrawalClaimable } from './withdrawalClaimable';
|
|
16
17
|
import { WithdrawalRecipientSettlement } from './withdrawalRecipientSettlement';
|
|
17
18
|
export declare class SettlementSteps {
|
|
18
19
|
'accepted_quote'?: AcceptedQuote;
|
|
@@ -20,6 +21,7 @@ export declare class SettlementSteps {
|
|
|
20
21
|
'withdrawal_recipient_settlement'?: WithdrawalRecipientSettlement;
|
|
21
22
|
'escrow_released'?: EscrowReleased;
|
|
22
23
|
'exit_proposal'?: ExitProposal;
|
|
24
|
+
'withdrawals_claimable'?: Array<WithdrawalClaimable>;
|
|
23
25
|
static discriminator: string | undefined;
|
|
24
26
|
static attributeTypeMap: Array<{
|
|
25
27
|
name: string;
|
|
@@ -44,5 +44,10 @@ SettlementSteps.attributeTypeMap = [
|
|
|
44
44
|
"name": "exit_proposal",
|
|
45
45
|
"baseName": "exit_proposal",
|
|
46
46
|
"type": "ExitProposal"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "withdrawals_claimable",
|
|
50
|
+
"baseName": "withdrawals_claimable",
|
|
51
|
+
"type": "Array<WithdrawalClaimable>"
|
|
47
52
|
}
|
|
48
53
|
];
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FiatAmount } from './fiatAmount';
|
|
13
12
|
import { InternalTransaction } from './internalTransaction';
|
|
14
13
|
export declare class Transaction {
|
|
15
14
|
'blockNumber': number;
|
|
@@ -24,7 +23,10 @@ export declare class Transaction {
|
|
|
24
23
|
* Transaction value in eth
|
|
25
24
|
*/
|
|
26
25
|
'value': string;
|
|
27
|
-
|
|
26
|
+
/**
|
|
27
|
+
* Transaction value in USD
|
|
28
|
+
*/
|
|
29
|
+
'valueInUSD'?: string;
|
|
28
30
|
/**
|
|
29
31
|
* Gas price in gwei per unit
|
|
30
32
|
*/
|
|
@@ -37,7 +39,10 @@ export declare class Transaction {
|
|
|
37
39
|
* Transaction fee in eth (gasPrice * gasUsed)
|
|
38
40
|
*/
|
|
39
41
|
'transactionFee'?: string;
|
|
40
|
-
|
|
42
|
+
/**
|
|
43
|
+
* Transaction fee in USD
|
|
44
|
+
*/
|
|
45
|
+
'transactionFeeInUSD'?: string;
|
|
41
46
|
/**
|
|
42
47
|
* Whether the transaction failed or not
|
|
43
48
|
*/
|
|
@@ -68,7 +68,7 @@ Transaction.attributeTypeMap = [
|
|
|
68
68
|
{
|
|
69
69
|
"name": "valueInUSD",
|
|
70
70
|
"baseName": "valueInUSD",
|
|
71
|
-
"type": "
|
|
71
|
+
"type": "string"
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
74
|
"name": "gasPrice",
|
|
@@ -88,7 +88,7 @@ Transaction.attributeTypeMap = [
|
|
|
88
88
|
{
|
|
89
89
|
"name": "transactionFeeInUSD",
|
|
90
90
|
"baseName": "transactionFeeInUSD",
|
|
91
|
-
"type": "
|
|
91
|
+
"type": "string"
|
|
92
92
|
},
|
|
93
93
|
{
|
|
94
94
|
"name": "isError",
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { FiatAmount } from './fiatAmount';
|
|
13
12
|
export declare class ValidatorWithdrawal {
|
|
14
13
|
'asset': ValidatorWithdrawal.assetEnum;
|
|
15
14
|
'validator_public_key': string;
|
|
@@ -20,7 +19,10 @@ export declare class ValidatorWithdrawal {
|
|
|
20
19
|
'withdrawal_index': number;
|
|
21
20
|
'withdrawal_address': string;
|
|
22
21
|
'amount': string;
|
|
23
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Withdrawal amount in USD
|
|
24
|
+
*/
|
|
25
|
+
'amountInUSD'?: string;
|
|
24
26
|
'withdrawal_type': ValidatorWithdrawal.withdrawalTypeEnum;
|
|
25
27
|
static discriminator: string | undefined;
|
|
26
28
|
static attributeTypeMap: Array<{
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
export declare class WithdrawalClaimable {
|
|
13
|
+
'validator_index': number;
|
|
14
|
+
'amount': number;
|
|
15
|
+
'block': number;
|
|
16
|
+
'timestamp': Date;
|
|
17
|
+
'beneficiary_address': string;
|
|
18
|
+
static discriminator: string | undefined;
|
|
19
|
+
static attributeTypeMap: Array<{
|
|
20
|
+
name: string;
|
|
21
|
+
baseName: string;
|
|
22
|
+
type: string;
|
|
23
|
+
}>;
|
|
24
|
+
static getAttributeTypeMap(): {
|
|
25
|
+
name: string;
|
|
26
|
+
baseName: string;
|
|
27
|
+
type: string;
|
|
28
|
+
}[];
|
|
29
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
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.WithdrawalClaimable = void 0;
|
|
15
|
+
class WithdrawalClaimable {
|
|
16
|
+
static getAttributeTypeMap() {
|
|
17
|
+
return WithdrawalClaimable.attributeTypeMap;
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
exports.WithdrawalClaimable = WithdrawalClaimable;
|
|
21
|
+
WithdrawalClaimable.discriminator = undefined;
|
|
22
|
+
WithdrawalClaimable.attributeTypeMap = [
|
|
23
|
+
{
|
|
24
|
+
"name": "validator_index",
|
|
25
|
+
"baseName": "validator_index",
|
|
26
|
+
"type": "number"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"name": "amount",
|
|
30
|
+
"baseName": "amount",
|
|
31
|
+
"type": "number"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"name": "block",
|
|
35
|
+
"baseName": "block",
|
|
36
|
+
"type": "number"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "timestamp",
|
|
40
|
+
"baseName": "timestamp",
|
|
41
|
+
"type": "Date"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "beneficiary_address",
|
|
45
|
+
"baseName": "beneficiary_address",
|
|
46
|
+
"type": "string"
|
|
47
|
+
}
|
|
48
|
+
];
|
|
@@ -0,0 +1,59 @@
|
|
|
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 { MEVReward } from './mEVReward';
|
|
14
|
+
|
|
15
|
+
export class GetSmartContractMEVRewards200Response {
|
|
16
|
+
'mevRewards': Array<MEVReward>;
|
|
17
|
+
/**
|
|
18
|
+
* Total number of MEV rewards
|
|
19
|
+
*/
|
|
20
|
+
'total': number;
|
|
21
|
+
/**
|
|
22
|
+
* Total number of pages
|
|
23
|
+
*/
|
|
24
|
+
'pages': number;
|
|
25
|
+
/**
|
|
26
|
+
* Current page number
|
|
27
|
+
*/
|
|
28
|
+
'currentPage': number;
|
|
29
|
+
|
|
30
|
+
static discriminator: string | undefined = undefined;
|
|
31
|
+
|
|
32
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
33
|
+
{
|
|
34
|
+
"name": "mevRewards",
|
|
35
|
+
"baseName": "mevRewards",
|
|
36
|
+
"type": "Array<MEVReward>"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"name": "total",
|
|
40
|
+
"baseName": "total",
|
|
41
|
+
"type": "number"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
"name": "pages",
|
|
45
|
+
"baseName": "pages",
|
|
46
|
+
"type": "number"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "currentPage",
|
|
50
|
+
"baseName": "currentPage",
|
|
51
|
+
"type": "number"
|
|
52
|
+
} ];
|
|
53
|
+
|
|
54
|
+
static getAttributeTypeMap() {
|
|
55
|
+
return GetSmartContractMEVRewards200Response.attributeTypeMap;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
|
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { FiatAmount } from './fiatAmount';
|
|
14
13
|
|
|
15
14
|
export class InternalTransaction {
|
|
16
15
|
'blockNumber': number;
|
|
@@ -22,7 +21,10 @@ export class InternalTransaction {
|
|
|
22
21
|
* Transaction value in ETH
|
|
23
22
|
*/
|
|
24
23
|
'value': string;
|
|
25
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Transaction value in USD
|
|
26
|
+
*/
|
|
27
|
+
'valueInUSD'?: string;
|
|
26
28
|
'isError'?: boolean;
|
|
27
29
|
|
|
28
30
|
static discriminator: string | undefined = undefined;
|
|
@@ -61,7 +63,7 @@ export class InternalTransaction {
|
|
|
61
63
|
{
|
|
62
64
|
"name": "valueInUSD",
|
|
63
65
|
"baseName": "valueInUSD",
|
|
64
|
-
"type": "
|
|
66
|
+
"type": "string"
|
|
65
67
|
},
|
|
66
68
|
{
|
|
67
69
|
"name": "isError",
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Northstake
|
|
3
|
+
* Northstake api
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
export class MEVReward {
|
|
15
|
+
'timeStamp': Date;
|
|
16
|
+
'transactionHash': string;
|
|
17
|
+
'transactionBlockNumber': number;
|
|
18
|
+
'transactionBlockHash'?: string;
|
|
19
|
+
'blockNumber': number;
|
|
20
|
+
'blockHash'?: string;
|
|
21
|
+
'fromAddress': string;
|
|
22
|
+
'toAddress': string;
|
|
23
|
+
/**
|
|
24
|
+
* MEV reward value in ETH
|
|
25
|
+
*/
|
|
26
|
+
'value': string;
|
|
27
|
+
/**
|
|
28
|
+
* MEV reward value in USD
|
|
29
|
+
*/
|
|
30
|
+
'valueInUSD'?: string;
|
|
31
|
+
'validatorIndex': number;
|
|
32
|
+
/**
|
|
33
|
+
* The tag of the relay that provided the MEV reward
|
|
34
|
+
*/
|
|
35
|
+
'relayTag'?: string;
|
|
36
|
+
|
|
37
|
+
static discriminator: string | undefined = undefined;
|
|
38
|
+
|
|
39
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
40
|
+
{
|
|
41
|
+
"name": "timeStamp",
|
|
42
|
+
"baseName": "timeStamp",
|
|
43
|
+
"type": "Date"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "transactionHash",
|
|
47
|
+
"baseName": "transactionHash",
|
|
48
|
+
"type": "string"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"name": "transactionBlockNumber",
|
|
52
|
+
"baseName": "transactionBlockNumber",
|
|
53
|
+
"type": "number"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "transactionBlockHash",
|
|
57
|
+
"baseName": "transactionBlockHash",
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"name": "blockNumber",
|
|
62
|
+
"baseName": "blockNumber",
|
|
63
|
+
"type": "number"
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "blockHash",
|
|
67
|
+
"baseName": "blockHash",
|
|
68
|
+
"type": "string"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"name": "fromAddress",
|
|
72
|
+
"baseName": "fromAddress",
|
|
73
|
+
"type": "string"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"name": "toAddress",
|
|
77
|
+
"baseName": "toAddress",
|
|
78
|
+
"type": "string"
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
"name": "value",
|
|
82
|
+
"baseName": "value",
|
|
83
|
+
"type": "string"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"name": "valueInUSD",
|
|
87
|
+
"baseName": "valueInUSD",
|
|
88
|
+
"type": "string"
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
"name": "validatorIndex",
|
|
92
|
+
"baseName": "validatorIndex",
|
|
93
|
+
"type": "number"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"name": "relayTag",
|
|
97
|
+
"baseName": "relayTag",
|
|
98
|
+
"type": "string"
|
|
99
|
+
} ];
|
|
100
|
+
|
|
101
|
+
static getAttributeTypeMap() {
|
|
102
|
+
return MEVReward.attributeTypeMap;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
|
package/model/minedBlock.ts
CHANGED
|
@@ -10,7 +10,6 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
-
import { FiatAmount } from './fiatAmount';
|
|
14
13
|
|
|
15
14
|
export class MinedBlock {
|
|
16
15
|
'blockNumber': number;
|
|
@@ -18,7 +17,10 @@ export class MinedBlock {
|
|
|
18
17
|
* Block reward in ETH
|
|
19
18
|
*/
|
|
20
19
|
'blockReward': string;
|
|
21
|
-
|
|
20
|
+
/**
|
|
21
|
+
* Block reward in USD
|
|
22
|
+
*/
|
|
23
|
+
'blockRewardInUSD'?: string;
|
|
22
24
|
'timeStamp': Date;
|
|
23
25
|
'address': string;
|
|
24
26
|
|
|
@@ -38,7 +40,7 @@ export class MinedBlock {
|
|
|
38
40
|
{
|
|
39
41
|
"name": "blockRewardInUSD",
|
|
40
42
|
"baseName": "blockRewardInUSD",
|
|
41
|
-
"type": "
|
|
43
|
+
"type": "string"
|
|
42
44
|
},
|
|
43
45
|
{
|
|
44
46
|
"name": "timeStamp",
|
package/model/models.ts
CHANGED
|
@@ -22,14 +22,15 @@ export * from './ethereumValidatorKeyKeystoreCryptoKdfParams';
|
|
|
22
22
|
export * from './exitEstimateBase';
|
|
23
23
|
export * from './exitEstimateSeller';
|
|
24
24
|
export * from './exitProposal';
|
|
25
|
-
export * from './fiatAmount';
|
|
26
25
|
export * from './generateApiKeyRequest';
|
|
27
26
|
export * from './getMarketplaceMetadata200Response';
|
|
27
|
+
export * from './getSmartContractMEVRewards200Response';
|
|
28
28
|
export * from './getSmartContractMinedBlocks200Response';
|
|
29
29
|
export * from './getSmartContractTransactions200Response';
|
|
30
30
|
export * from './getWithdrawalsResponse';
|
|
31
31
|
export * from './internalTransaction';
|
|
32
32
|
export * from './listAllRFQsForFacilitator200Response';
|
|
33
|
+
export * from './mEVReward';
|
|
33
34
|
export * from './minedBlock';
|
|
34
35
|
export * from './presignedExitKey';
|
|
35
36
|
export * from './presignedExitKeyMessage';
|
|
@@ -87,6 +88,7 @@ export * from './webhookPayloadRFQWithdrawalClaimable';
|
|
|
87
88
|
export * from './webhookPayloadRFQWithdrawalClaimableDetails';
|
|
88
89
|
export * from './webhookRegistration';
|
|
89
90
|
export * from './webhookRegistrationDetails';
|
|
91
|
+
export * from './withdrawalClaimable';
|
|
90
92
|
export * from './withdrawalRecipientSettlement';
|
|
91
93
|
|
|
92
94
|
import * as fs from 'fs';
|
|
@@ -162,15 +164,15 @@ import { ExitEstimateSeller } from './exitEstimateSeller';
|
|
|
162
164
|
import { ExitProposal } from './exitProposal';
|
|
163
165
|
|
|
164
166
|
|
|
165
|
-
import { FiatAmount } from './fiatAmount';
|
|
166
|
-
|
|
167
|
-
|
|
168
167
|
import { GenerateApiKeyRequest } from './generateApiKeyRequest';
|
|
169
168
|
|
|
170
169
|
|
|
171
170
|
import { GetMarketplaceMetadata200Response } from './getMarketplaceMetadata200Response';
|
|
172
171
|
|
|
173
172
|
|
|
173
|
+
import { GetSmartContractMEVRewards200Response } from './getSmartContractMEVRewards200Response';
|
|
174
|
+
|
|
175
|
+
|
|
174
176
|
import { GetSmartContractMinedBlocks200Response } from './getSmartContractMinedBlocks200Response';
|
|
175
177
|
|
|
176
178
|
|
|
@@ -186,6 +188,9 @@ import { InternalTransaction } from './internalTransaction';
|
|
|
186
188
|
import { ListAllRFQsForFacilitator200Response } from './listAllRFQsForFacilitator200Response';
|
|
187
189
|
|
|
188
190
|
|
|
191
|
+
import { MEVReward } from './mEVReward';
|
|
192
|
+
|
|
193
|
+
|
|
189
194
|
import { MinedBlock } from './minedBlock';
|
|
190
195
|
|
|
191
196
|
|
|
@@ -357,6 +362,9 @@ import { WebhookRegistration } from './webhookRegistration';
|
|
|
357
362
|
import { WebhookRegistrationDetails } from './webhookRegistrationDetails';
|
|
358
363
|
|
|
359
364
|
|
|
365
|
+
import { WithdrawalClaimable } from './withdrawalClaimable';
|
|
366
|
+
|
|
367
|
+
|
|
360
368
|
import { WithdrawalRecipientSettlement } from './withdrawalRecipientSettlement';
|
|
361
369
|
|
|
362
370
|
|
|
@@ -374,7 +382,6 @@ let primitives = [
|
|
|
374
382
|
];
|
|
375
383
|
let enumsMap: {[index: string]: any} = {
|
|
376
384
|
"ApiKey.roles": ApiKey,
|
|
377
|
-
"FiatAmount.fiatCurrency": FiatAmount,
|
|
378
385
|
"GenerateApiKeyRequest.keyRights": GenerateApiKeyRequest,
|
|
379
386
|
"RFQDocumentFacilitator.status": RFQDocumentFacilitator,
|
|
380
387
|
"ValidatorInfo.asset": ValidatorInfo,
|
|
@@ -402,14 +409,15 @@ let typeMap: {[index: string]: any} = {
|
|
|
402
409
|
"ExitEstimateBase": ExitEstimateBase,
|
|
403
410
|
"ExitEstimateSeller": ExitEstimateSeller,
|
|
404
411
|
"ExitProposal": ExitProposal,
|
|
405
|
-
"FiatAmount": FiatAmount,
|
|
406
412
|
"GenerateApiKeyRequest": GenerateApiKeyRequest,
|
|
407
413
|
"GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
|
|
414
|
+
"GetSmartContractMEVRewards200Response": GetSmartContractMEVRewards200Response,
|
|
408
415
|
"GetSmartContractMinedBlocks200Response": GetSmartContractMinedBlocks200Response,
|
|
409
416
|
"GetSmartContractTransactions200Response": GetSmartContractTransactions200Response,
|
|
410
417
|
"GetWithdrawalsResponse": GetWithdrawalsResponse,
|
|
411
418
|
"InternalTransaction": InternalTransaction,
|
|
412
419
|
"ListAllRFQsForFacilitator200Response": ListAllRFQsForFacilitator200Response,
|
|
420
|
+
"MEVReward": MEVReward,
|
|
413
421
|
"MinedBlock": MinedBlock,
|
|
414
422
|
"PresignedExitKey": PresignedExitKey,
|
|
415
423
|
"PresignedExitKeyMessage": PresignedExitKeyMessage,
|
|
@@ -460,6 +468,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
460
468
|
"WebhookPayloadRFQWithdrawalClaimableDetails": WebhookPayloadRFQWithdrawalClaimableDetails,
|
|
461
469
|
"WebhookRegistration": WebhookRegistration,
|
|
462
470
|
"WebhookRegistrationDetails": WebhookRegistrationDetails,
|
|
471
|
+
"WithdrawalClaimable": WithdrawalClaimable,
|
|
463
472
|
"WithdrawalRecipientSettlement": WithdrawalRecipientSettlement,
|
|
464
473
|
}
|
|
465
474
|
|
package/model/settlementSteps.ts
CHANGED
|
@@ -14,6 +14,7 @@ import { AcceptedQuote } from './acceptedQuote';
|
|
|
14
14
|
import { EscrowPayment } from './escrowPayment';
|
|
15
15
|
import { EscrowReleased } from './escrowReleased';
|
|
16
16
|
import { ExitProposal } from './exitProposal';
|
|
17
|
+
import { WithdrawalClaimable } from './withdrawalClaimable';
|
|
17
18
|
import { WithdrawalRecipientSettlement } from './withdrawalRecipientSettlement';
|
|
18
19
|
|
|
19
20
|
export class SettlementSteps {
|
|
@@ -22,6 +23,7 @@ export class SettlementSteps {
|
|
|
22
23
|
'withdrawal_recipient_settlement'?: WithdrawalRecipientSettlement;
|
|
23
24
|
'escrow_released'?: EscrowReleased;
|
|
24
25
|
'exit_proposal'?: ExitProposal;
|
|
26
|
+
'withdrawals_claimable'?: Array<WithdrawalClaimable>;
|
|
25
27
|
|
|
26
28
|
static discriminator: string | undefined = undefined;
|
|
27
29
|
|
|
@@ -50,6 +52,11 @@ export class SettlementSteps {
|
|
|
50
52
|
"name": "exit_proposal",
|
|
51
53
|
"baseName": "exit_proposal",
|
|
52
54
|
"type": "ExitProposal"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"name": "withdrawals_claimable",
|
|
58
|
+
"baseName": "withdrawals_claimable",
|
|
59
|
+
"type": "Array<WithdrawalClaimable>"
|
|
53
60
|
} ];
|
|
54
61
|
|
|
55
62
|
static getAttributeTypeMap() {
|