@northstake/northstakeapi 1.0.36 → 1.0.37
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 -1
- package/api.ts +1 -1
- package/dist/api.d.ts +1 -1
- package/dist/api.js +1 -1
- package/dist/model/internalTransaction.d.ts +4 -2
- package/dist/model/internalTransaction.js +1 -1
- package/dist/model/minedBlock.d.ts +4 -2
- package/dist/model/minedBlock.js +1 -1
- package/dist/model/models.d.ts +1 -1
- package/dist/model/models.js +3 -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/internalTransaction.ts +5 -3
- package/model/minedBlock.ts +5 -3
- package/model/models.ts +5 -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 +1 -1
- package/dist/model/fiatAmount.d.ts +0 -46
- package/dist/model/fiatAmount.js +0 -43
- package/model/fiatAmount.ts +0 -68
package/.openapi-generator/FILES
CHANGED
|
@@ -32,7 +32,6 @@ model/ethereumValidatorKeyKeystoreCryptoKdfParams.ts
|
|
|
32
32
|
model/exitEstimateBase.ts
|
|
33
33
|
model/exitEstimateSeller.ts
|
|
34
34
|
model/exitProposal.ts
|
|
35
|
-
model/fiatAmount.ts
|
|
36
35
|
model/generateApiKeyRequest.ts
|
|
37
36
|
model/getMarketplaceMetadata200Response.ts
|
|
38
37
|
model/getSmartContractMinedBlocks200Response.ts
|
|
@@ -98,4 +97,5 @@ model/webhookPayloadRFQWithdrawalClaimable.ts
|
|
|
98
97
|
model/webhookPayloadRFQWithdrawalClaimableDetails.ts
|
|
99
98
|
model/webhookRegistration.ts
|
|
100
99
|
model/webhookRegistrationDetails.ts
|
|
100
|
+
model/withdrawalClaimable.ts
|
|
101
101
|
model/withdrawalRecipientSettlement.ts
|
package/api.ts
CHANGED
|
@@ -29,7 +29,6 @@ export * from './model/./ethereumValidatorKeyKeystoreCryptoKdfParams';
|
|
|
29
29
|
export * from './model/./exitEstimateBase';
|
|
30
30
|
export * from './model/./exitEstimateSeller';
|
|
31
31
|
export * from './model/./exitProposal';
|
|
32
|
-
export * from './model/./fiatAmount';
|
|
33
32
|
export * from './model/./generateApiKeyRequest';
|
|
34
33
|
export * from './model/./getMarketplaceMetadata200Response';
|
|
35
34
|
export * from './model/./getSmartContractMinedBlocks200Response';
|
|
@@ -94,6 +93,7 @@ export * from './model/./webhookPayloadRFQWithdrawalClaimable';
|
|
|
94
93
|
export * from './model/./webhookPayloadRFQWithdrawalClaimableDetails';
|
|
95
94
|
export * from './model/./webhookRegistration';
|
|
96
95
|
export * from './model/./webhookRegistrationDetails';
|
|
96
|
+
export * from './model/./withdrawalClaimable';
|
|
97
97
|
export * from './model/./withdrawalRecipientSettlement';
|
|
98
98
|
|
|
99
99
|
export class NorthstakeApi {
|
package/dist/api.d.ts
CHANGED
|
@@ -27,7 +27,6 @@ export * from './model/./ethereumValidatorKeyKeystoreCryptoKdfParams';
|
|
|
27
27
|
export * from './model/./exitEstimateBase';
|
|
28
28
|
export * from './model/./exitEstimateSeller';
|
|
29
29
|
export * from './model/./exitProposal';
|
|
30
|
-
export * from './model/./fiatAmount';
|
|
31
30
|
export * from './model/./generateApiKeyRequest';
|
|
32
31
|
export * from './model/./getMarketplaceMetadata200Response';
|
|
33
32
|
export * from './model/./getSmartContractMinedBlocks200Response';
|
|
@@ -92,6 +91,7 @@ export * from './model/./webhookPayloadRFQWithdrawalClaimable';
|
|
|
92
91
|
export * from './model/./webhookPayloadRFQWithdrawalClaimableDetails';
|
|
93
92
|
export * from './model/./webhookRegistration';
|
|
94
93
|
export * from './model/./webhookRegistrationDetails';
|
|
94
|
+
export * from './model/./withdrawalClaimable';
|
|
95
95
|
export * from './model/./withdrawalRecipientSettlement';
|
|
96
96
|
export declare class NorthstakeApi {
|
|
97
97
|
constructor(apiKey: string, privateKey: string, basePath?: string);
|
package/dist/api.js
CHANGED
|
@@ -46,7 +46,6 @@ __exportStar(require("./model/./ethereumValidatorKeyKeystoreCryptoKdfParams"), e
|
|
|
46
46
|
__exportStar(require("./model/./exitEstimateBase"), exports);
|
|
47
47
|
__exportStar(require("./model/./exitEstimateSeller"), exports);
|
|
48
48
|
__exportStar(require("./model/./exitProposal"), exports);
|
|
49
|
-
__exportStar(require("./model/./fiatAmount"), exports);
|
|
50
49
|
__exportStar(require("./model/./generateApiKeyRequest"), exports);
|
|
51
50
|
__exportStar(require("./model/./getMarketplaceMetadata200Response"), exports);
|
|
52
51
|
__exportStar(require("./model/./getSmartContractMinedBlocks200Response"), exports);
|
|
@@ -111,6 +110,7 @@ __exportStar(require("./model/./webhookPayloadRFQWithdrawalClaimable"), exports)
|
|
|
111
110
|
__exportStar(require("./model/./webhookPayloadRFQWithdrawalClaimableDetails"), exports);
|
|
112
111
|
__exportStar(require("./model/./webhookRegistration"), exports);
|
|
113
112
|
__exportStar(require("./model/./webhookRegistrationDetails"), exports);
|
|
113
|
+
__exportStar(require("./model/./withdrawalClaimable"), exports);
|
|
114
114
|
__exportStar(require("./model/./withdrawalRecipientSettlement"), exports);
|
|
115
115
|
class NorthstakeApi {
|
|
116
116
|
constructor(apiKey, privateKey, basePath = "https://api.northstake.dk/v1") {
|
|
@@ -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 InternalTransaction {
|
|
14
13
|
'blockNumber': number;
|
|
15
14
|
'timeStamp': Date;
|
|
@@ -20,7 +19,10 @@ export declare class InternalTransaction {
|
|
|
20
19
|
* Transaction value in ETH
|
|
21
20
|
*/
|
|
22
21
|
'value': string;
|
|
23
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Transaction value in USD
|
|
24
|
+
*/
|
|
25
|
+
'valueInUSD'?: string;
|
|
24
26
|
'isError'?: boolean;
|
|
25
27
|
static discriminator: string | undefined;
|
|
26
28
|
static attributeTypeMap: Array<{
|
|
@@ -9,14 +9,16 @@
|
|
|
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 MinedBlock {
|
|
14
13
|
'blockNumber': number;
|
|
15
14
|
/**
|
|
16
15
|
* Block reward in ETH
|
|
17
16
|
*/
|
|
18
17
|
'blockReward': string;
|
|
19
|
-
|
|
18
|
+
/**
|
|
19
|
+
* Block reward in USD
|
|
20
|
+
*/
|
|
21
|
+
'blockRewardInUSD'?: string;
|
|
20
22
|
'timeStamp': Date;
|
|
21
23
|
'address': string;
|
|
22
24
|
static discriminator: string | undefined;
|
package/dist/model/minedBlock.js
CHANGED
package/dist/model/models.d.ts
CHANGED
|
@@ -19,7 +19,6 @@ 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';
|
|
25
24
|
export * from './getSmartContractMinedBlocks200Response';
|
|
@@ -84,6 +83,7 @@ export * from './webhookPayloadRFQWithdrawalClaimable';
|
|
|
84
83
|
export * from './webhookPayloadRFQWithdrawalClaimableDetails';
|
|
85
84
|
export * from './webhookRegistration';
|
|
86
85
|
export * from './webhookRegistrationDetails';
|
|
86
|
+
export * from './withdrawalClaimable';
|
|
87
87
|
export * from './withdrawalRecipientSettlement';
|
|
88
88
|
import * as fs from 'fs';
|
|
89
89
|
export interface RequestDetailedFile {
|
package/dist/model/models.js
CHANGED
|
@@ -58,7 +58,6 @@ __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);
|
|
64
63
|
__exportStar(require("./getSmartContractMinedBlocks200Response"), exports);
|
|
@@ -123,6 +122,7 @@ __exportStar(require("./webhookPayloadRFQWithdrawalClaimable"), exports);
|
|
|
123
122
|
__exportStar(require("./webhookPayloadRFQWithdrawalClaimableDetails"), exports);
|
|
124
123
|
__exportStar(require("./webhookRegistration"), exports);
|
|
125
124
|
__exportStar(require("./webhookRegistrationDetails"), exports);
|
|
125
|
+
__exportStar(require("./withdrawalClaimable"), exports);
|
|
126
126
|
__exportStar(require("./withdrawalRecipientSettlement"), exports);
|
|
127
127
|
const acceptedQuote_1 = require("./acceptedQuote");
|
|
128
128
|
const accountEntity_1 = require("./accountEntity");
|
|
@@ -143,7 +143,6 @@ const ethereumValidatorKeyKeystoreCryptoKdfParams_1 = require("./ethereumValidat
|
|
|
143
143
|
const exitEstimateBase_1 = require("./exitEstimateBase");
|
|
144
144
|
const exitEstimateSeller_1 = require("./exitEstimateSeller");
|
|
145
145
|
const exitProposal_1 = require("./exitProposal");
|
|
146
|
-
const fiatAmount_1 = require("./fiatAmount");
|
|
147
146
|
const generateApiKeyRequest_1 = require("./generateApiKeyRequest");
|
|
148
147
|
const getMarketplaceMetadata200Response_1 = require("./getMarketplaceMetadata200Response");
|
|
149
148
|
const getSmartContractMinedBlocks200Response_1 = require("./getSmartContractMinedBlocks200Response");
|
|
@@ -201,6 +200,7 @@ const webhookPayloadRFQWithdrawalClaimable_1 = require("./webhookPayloadRFQWithd
|
|
|
201
200
|
const webhookPayloadRFQWithdrawalClaimableDetails_1 = require("./webhookPayloadRFQWithdrawalClaimableDetails");
|
|
202
201
|
const webhookRegistration_1 = require("./webhookRegistration");
|
|
203
202
|
const webhookRegistrationDetails_1 = require("./webhookRegistrationDetails");
|
|
203
|
+
const withdrawalClaimable_1 = require("./withdrawalClaimable");
|
|
204
204
|
const withdrawalRecipientSettlement_1 = require("./withdrawalRecipientSettlement");
|
|
205
205
|
/* tslint:disable:no-unused-variable */
|
|
206
206
|
let primitives = [
|
|
@@ -215,7 +215,6 @@ let primitives = [
|
|
|
215
215
|
];
|
|
216
216
|
let enumsMap = {
|
|
217
217
|
"ApiKey.roles": apiKey_1.ApiKey,
|
|
218
|
-
"FiatAmount.fiatCurrency": fiatAmount_1.FiatAmount,
|
|
219
218
|
"GenerateApiKeyRequest.keyRights": generateApiKeyRequest_1.GenerateApiKeyRequest,
|
|
220
219
|
"RFQDocumentFacilitator.status": rFQDocumentFacilitator_1.RFQDocumentFacilitator,
|
|
221
220
|
"ValidatorInfo.asset": validatorInfo_1.ValidatorInfo,
|
|
@@ -243,7 +242,6 @@ let typeMap = {
|
|
|
243
242
|
"ExitEstimateBase": exitEstimateBase_1.ExitEstimateBase,
|
|
244
243
|
"ExitEstimateSeller": exitEstimateSeller_1.ExitEstimateSeller,
|
|
245
244
|
"ExitProposal": exitProposal_1.ExitProposal,
|
|
246
|
-
"FiatAmount": fiatAmount_1.FiatAmount,
|
|
247
245
|
"GenerateApiKeyRequest": generateApiKeyRequest_1.GenerateApiKeyRequest,
|
|
248
246
|
"GetMarketplaceMetadata200Response": getMarketplaceMetadata200Response_1.GetMarketplaceMetadata200Response,
|
|
249
247
|
"GetSmartContractMinedBlocks200Response": getSmartContractMinedBlocks200Response_1.GetSmartContractMinedBlocks200Response,
|
|
@@ -301,6 +299,7 @@ let typeMap = {
|
|
|
301
299
|
"WebhookPayloadRFQWithdrawalClaimableDetails": webhookPayloadRFQWithdrawalClaimableDetails_1.WebhookPayloadRFQWithdrawalClaimableDetails,
|
|
302
300
|
"WebhookRegistration": webhookRegistration_1.WebhookRegistration,
|
|
303
301
|
"WebhookRegistrationDetails": webhookRegistrationDetails_1.WebhookRegistrationDetails,
|
|
302
|
+
"WithdrawalClaimable": withdrawalClaimable_1.WithdrawalClaimable,
|
|
304
303
|
"WithdrawalRecipientSettlement": withdrawalRecipientSettlement_1.WithdrawalRecipientSettlement,
|
|
305
304
|
};
|
|
306
305
|
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
|
+
];
|
|
@@ -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",
|
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,7 +22,6 @@ 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';
|
|
28
27
|
export * from './getSmartContractMinedBlocks200Response';
|
|
@@ -87,6 +86,7 @@ export * from './webhookPayloadRFQWithdrawalClaimable';
|
|
|
87
86
|
export * from './webhookPayloadRFQWithdrawalClaimableDetails';
|
|
88
87
|
export * from './webhookRegistration';
|
|
89
88
|
export * from './webhookRegistrationDetails';
|
|
89
|
+
export * from './withdrawalClaimable';
|
|
90
90
|
export * from './withdrawalRecipientSettlement';
|
|
91
91
|
|
|
92
92
|
import * as fs from 'fs';
|
|
@@ -162,9 +162,6 @@ import { ExitEstimateSeller } from './exitEstimateSeller';
|
|
|
162
162
|
import { ExitProposal } from './exitProposal';
|
|
163
163
|
|
|
164
164
|
|
|
165
|
-
import { FiatAmount } from './fiatAmount';
|
|
166
|
-
|
|
167
|
-
|
|
168
165
|
import { GenerateApiKeyRequest } from './generateApiKeyRequest';
|
|
169
166
|
|
|
170
167
|
|
|
@@ -357,6 +354,9 @@ import { WebhookRegistration } from './webhookRegistration';
|
|
|
357
354
|
import { WebhookRegistrationDetails } from './webhookRegistrationDetails';
|
|
358
355
|
|
|
359
356
|
|
|
357
|
+
import { WithdrawalClaimable } from './withdrawalClaimable';
|
|
358
|
+
|
|
359
|
+
|
|
360
360
|
import { WithdrawalRecipientSettlement } from './withdrawalRecipientSettlement';
|
|
361
361
|
|
|
362
362
|
|
|
@@ -374,7 +374,6 @@ let primitives = [
|
|
|
374
374
|
];
|
|
375
375
|
let enumsMap: {[index: string]: any} = {
|
|
376
376
|
"ApiKey.roles": ApiKey,
|
|
377
|
-
"FiatAmount.fiatCurrency": FiatAmount,
|
|
378
377
|
"GenerateApiKeyRequest.keyRights": GenerateApiKeyRequest,
|
|
379
378
|
"RFQDocumentFacilitator.status": RFQDocumentFacilitator,
|
|
380
379
|
"ValidatorInfo.asset": ValidatorInfo,
|
|
@@ -402,7 +401,6 @@ let typeMap: {[index: string]: any} = {
|
|
|
402
401
|
"ExitEstimateBase": ExitEstimateBase,
|
|
403
402
|
"ExitEstimateSeller": ExitEstimateSeller,
|
|
404
403
|
"ExitProposal": ExitProposal,
|
|
405
|
-
"FiatAmount": FiatAmount,
|
|
406
404
|
"GenerateApiKeyRequest": GenerateApiKeyRequest,
|
|
407
405
|
"GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
|
|
408
406
|
"GetSmartContractMinedBlocks200Response": GetSmartContractMinedBlocks200Response,
|
|
@@ -460,6 +458,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
460
458
|
"WebhookPayloadRFQWithdrawalClaimableDetails": WebhookPayloadRFQWithdrawalClaimableDetails,
|
|
461
459
|
"WebhookRegistration": WebhookRegistration,
|
|
462
460
|
"WebhookRegistrationDetails": WebhookRegistrationDetails,
|
|
461
|
+
"WithdrawalClaimable": WithdrawalClaimable,
|
|
463
462
|
"WithdrawalRecipientSettlement": WithdrawalRecipientSettlement,
|
|
464
463
|
}
|
|
465
464
|
|
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() {
|
package/model/transaction.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
|
import { InternalTransaction } from './internalTransaction';
|
|
15
14
|
|
|
16
15
|
export class Transaction {
|
|
@@ -26,7 +25,10 @@ export class Transaction {
|
|
|
26
25
|
* Transaction value in eth
|
|
27
26
|
*/
|
|
28
27
|
'value': string;
|
|
29
|
-
|
|
28
|
+
/**
|
|
29
|
+
* Transaction value in USD
|
|
30
|
+
*/
|
|
31
|
+
'valueInUSD'?: string;
|
|
30
32
|
/**
|
|
31
33
|
* Gas price in gwei per unit
|
|
32
34
|
*/
|
|
@@ -39,7 +41,10 @@ export class Transaction {
|
|
|
39
41
|
* Transaction fee in eth (gasPrice * gasUsed)
|
|
40
42
|
*/
|
|
41
43
|
'transactionFee'?: string;
|
|
42
|
-
|
|
44
|
+
/**
|
|
45
|
+
* Transaction fee in USD
|
|
46
|
+
*/
|
|
47
|
+
'transactionFeeInUSD'?: string;
|
|
43
48
|
/**
|
|
44
49
|
* Whether the transaction failed or not
|
|
45
50
|
*/
|
|
@@ -117,7 +122,7 @@ export class Transaction {
|
|
|
117
122
|
{
|
|
118
123
|
"name": "valueInUSD",
|
|
119
124
|
"baseName": "valueInUSD",
|
|
120
|
-
"type": "
|
|
125
|
+
"type": "string"
|
|
121
126
|
},
|
|
122
127
|
{
|
|
123
128
|
"name": "gasPrice",
|
|
@@ -137,7 +142,7 @@ export class Transaction {
|
|
|
137
142
|
{
|
|
138
143
|
"name": "transactionFeeInUSD",
|
|
139
144
|
"baseName": "transactionFeeInUSD",
|
|
140
|
-
"type": "
|
|
145
|
+
"type": "string"
|
|
141
146
|
},
|
|
142
147
|
{
|
|
143
148
|
"name": "isError",
|
|
@@ -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 ValidatorWithdrawal {
|
|
16
15
|
'asset': ValidatorWithdrawal.assetEnum;
|
|
@@ -22,7 +21,10 @@ export class ValidatorWithdrawal {
|
|
|
22
21
|
'withdrawal_index': number;
|
|
23
22
|
'withdrawal_address': string;
|
|
24
23
|
'amount': string;
|
|
25
|
-
|
|
24
|
+
/**
|
|
25
|
+
* Withdrawal amount in USD
|
|
26
|
+
*/
|
|
27
|
+
'amountInUSD'?: string;
|
|
26
28
|
'withdrawal_type': ValidatorWithdrawal.withdrawalTypeEnum;
|
|
27
29
|
|
|
28
30
|
static discriminator: string | undefined = undefined;
|
|
@@ -76,7 +78,7 @@ export class ValidatorWithdrawal {
|
|
|
76
78
|
{
|
|
77
79
|
"name": "amountInUSD",
|
|
78
80
|
"baseName": "amountInUSD",
|
|
79
|
-
"type": "
|
|
81
|
+
"type": "string"
|
|
80
82
|
},
|
|
81
83
|
{
|
|
82
84
|
"name": "withdrawal_type",
|
|
@@ -0,0 +1,55 @@
|
|
|
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 WithdrawalClaimable {
|
|
15
|
+
'validator_index': number;
|
|
16
|
+
'amount': number;
|
|
17
|
+
'block': number;
|
|
18
|
+
'timestamp': Date;
|
|
19
|
+
'beneficiary_address': string;
|
|
20
|
+
|
|
21
|
+
static discriminator: string | undefined = undefined;
|
|
22
|
+
|
|
23
|
+
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
24
|
+
{
|
|
25
|
+
"name": "validator_index",
|
|
26
|
+
"baseName": "validator_index",
|
|
27
|
+
"type": "number"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"name": "amount",
|
|
31
|
+
"baseName": "amount",
|
|
32
|
+
"type": "number"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"name": "block",
|
|
36
|
+
"baseName": "block",
|
|
37
|
+
"type": "number"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "timestamp",
|
|
41
|
+
"baseName": "timestamp",
|
|
42
|
+
"type": "Date"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "beneficiary_address",
|
|
46
|
+
"baseName": "beneficiary_address",
|
|
47
|
+
"type": "string"
|
|
48
|
+
} ];
|
|
49
|
+
|
|
50
|
+
static getAttributeTypeMap() {
|
|
51
|
+
return WithdrawalClaimable.attributeTypeMap;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
|
package/package.json
CHANGED
|
@@ -1,46 +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
|
-
export declare class FiatAmount {
|
|
13
|
-
/**
|
|
14
|
-
* The fiat currency of the converted amount
|
|
15
|
-
*/
|
|
16
|
-
'fiatCurrency': FiatAmount.fiatCurrencyEnum;
|
|
17
|
-
/**
|
|
18
|
-
* The amount converted to fiat currency
|
|
19
|
-
*/
|
|
20
|
-
'fiatAmount': string;
|
|
21
|
-
/**
|
|
22
|
-
* The exchange rate used for fiat conversion
|
|
23
|
-
*/
|
|
24
|
-
'exchangeRate': string;
|
|
25
|
-
/**
|
|
26
|
-
* Timestamp when the exchange rate was captured
|
|
27
|
-
*/
|
|
28
|
-
'rateTimestamp': Date;
|
|
29
|
-
static discriminator: string | undefined;
|
|
30
|
-
static attributeTypeMap: Array<{
|
|
31
|
-
name: string;
|
|
32
|
-
baseName: string;
|
|
33
|
-
type: string;
|
|
34
|
-
}>;
|
|
35
|
-
static getAttributeTypeMap(): {
|
|
36
|
-
name: string;
|
|
37
|
-
baseName: string;
|
|
38
|
-
type: string;
|
|
39
|
-
}[];
|
|
40
|
-
}
|
|
41
|
-
export declare namespace FiatAmount {
|
|
42
|
-
/**
|
|
43
|
-
* The fiat currency of the converted amount
|
|
44
|
-
*/
|
|
45
|
-
type fiatCurrencyEnum = 'USD';
|
|
46
|
-
}
|
package/dist/model/fiatAmount.js
DELETED
|
@@ -1,43 +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.FiatAmount = void 0;
|
|
15
|
-
class FiatAmount {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return FiatAmount.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.FiatAmount = FiatAmount;
|
|
21
|
-
FiatAmount.discriminator = undefined;
|
|
22
|
-
FiatAmount.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "fiatCurrency",
|
|
25
|
-
"baseName": "fiatCurrency",
|
|
26
|
-
"type": "FiatAmount.fiatCurrencyEnum"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "fiatAmount",
|
|
30
|
-
"baseName": "fiatAmount",
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "exchangeRate",
|
|
35
|
-
"baseName": "exchangeRate",
|
|
36
|
-
"type": "string"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "rateTimestamp",
|
|
40
|
-
"baseName": "rateTimestamp",
|
|
41
|
-
"type": "Date"
|
|
42
|
-
}
|
|
43
|
-
];
|
package/model/fiatAmount.ts
DELETED
|
@@ -1,68 +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
|
-
|
|
14
|
-
export class FiatAmount {
|
|
15
|
-
/**
|
|
16
|
-
* The fiat currency of the converted amount
|
|
17
|
-
*/
|
|
18
|
-
'fiatCurrency': FiatAmount.fiatCurrencyEnum;
|
|
19
|
-
/**
|
|
20
|
-
* The amount converted to fiat currency
|
|
21
|
-
*/
|
|
22
|
-
'fiatAmount': string;
|
|
23
|
-
/**
|
|
24
|
-
* The exchange rate used for fiat conversion
|
|
25
|
-
*/
|
|
26
|
-
'exchangeRate': string;
|
|
27
|
-
/**
|
|
28
|
-
* Timestamp when the exchange rate was captured
|
|
29
|
-
*/
|
|
30
|
-
'rateTimestamp': Date;
|
|
31
|
-
|
|
32
|
-
static discriminator: string | undefined = undefined;
|
|
33
|
-
|
|
34
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
35
|
-
{
|
|
36
|
-
"name": "fiatCurrency",
|
|
37
|
-
"baseName": "fiatCurrency",
|
|
38
|
-
"type": "FiatAmount.fiatCurrencyEnum"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "fiatAmount",
|
|
42
|
-
"baseName": "fiatAmount",
|
|
43
|
-
"type": "string"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "exchangeRate",
|
|
47
|
-
"baseName": "exchangeRate",
|
|
48
|
-
"type": "string"
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "rateTimestamp",
|
|
52
|
-
"baseName": "rateTimestamp",
|
|
53
|
-
"type": "Date"
|
|
54
|
-
} ];
|
|
55
|
-
|
|
56
|
-
static getAttributeTypeMap() {
|
|
57
|
-
return FiatAmount.attributeTypeMap;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
export namespace FiatAmount {
|
|
62
|
-
/**
|
|
63
|
-
* The fiat currency of the converted amount
|
|
64
|
-
*/
|
|
65
|
-
export type fiatCurrencyEnum =
|
|
66
|
-
'USD';
|
|
67
|
-
}
|
|
68
|
-
|