@northstake/northstakeapi 1.0.34 → 1.0.36
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 -0
- package/api/validatorsApi.ts +5 -0
- package/api.ts +1 -0
- package/dist/api/validatorsApi.d.ts +2 -0
- package/dist/api/validatorsApi.js +4 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/model/fiatAmount.d.ts +46 -0
- package/dist/model/fiatAmount.js +43 -0
- package/dist/model/internalTransaction.d.ts +2 -0
- package/dist/model/internalTransaction.js +5 -0
- package/dist/model/minedBlock.d.ts +2 -0
- package/dist/model/minedBlock.js +5 -0
- package/dist/model/models.d.ts +1 -0
- package/dist/model/models.js +5 -0
- package/dist/model/transaction.d.ts +3 -0
- package/dist/model/transaction.js +10 -0
- package/dist/model/validatorWithdrawal.d.ts +7 -0
- package/dist/model/validatorWithdrawal.js +10 -0
- package/model/fiatAmount.ts +68 -0
- package/model/internalTransaction.ts +7 -0
- package/model/minedBlock.ts +7 -0
- package/model/models.ts +7 -0
- package/model/transaction.ts +13 -0
- package/model/validatorWithdrawal.ts +19 -0
- package/package.json +2 -2
package/.openapi-generator/FILES
CHANGED
|
@@ -32,6 +32,7 @@ model/ethereumValidatorKeyKeystoreCryptoKdfParams.ts
|
|
|
32
32
|
model/exitEstimateBase.ts
|
|
33
33
|
model/exitEstimateSeller.ts
|
|
34
34
|
model/exitProposal.ts
|
|
35
|
+
model/fiatAmount.ts
|
|
35
36
|
model/generateApiKeyRequest.ts
|
|
36
37
|
model/getMarketplaceMetadata200Response.ts
|
|
37
38
|
model/getSmartContractMinedBlocks200Response.ts
|
package/api/validatorsApi.ts
CHANGED
|
@@ -45,6 +45,7 @@ export interface ValidatorsApiParams {
|
|
|
45
45
|
page?: number;
|
|
46
46
|
limit?: number;
|
|
47
47
|
validatorIndices?: string;
|
|
48
|
+
withdrawalType?: 'full' | 'partial';
|
|
48
49
|
}
|
|
49
50
|
|
|
50
51
|
export class ValidatorsApi {
|
|
@@ -207,6 +208,7 @@ export class ValidatorsApi {
|
|
|
207
208
|
* @param page Withdrawal list page number
|
|
208
209
|
* @param limit Number of withdrawals to return per page
|
|
209
210
|
* @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \"123,456,789\")
|
|
211
|
+
* @param withdrawalType
|
|
210
212
|
*/
|
|
211
213
|
|
|
212
214
|
|
|
@@ -246,6 +248,9 @@ export class ValidatorsApi {
|
|
|
246
248
|
if (params?.validatorIndices !== undefined) {
|
|
247
249
|
localVarQueryParameters['validator_indices'] = ObjectSerializer.serialize(params?.validatorIndices, "string");
|
|
248
250
|
}
|
|
251
|
+
if (params?.withdrawalType !== undefined) {
|
|
252
|
+
localVarQueryParameters['withdrawal_type'] = ObjectSerializer.serialize(params?.withdrawalType, "'full' | 'partial'");
|
|
253
|
+
}
|
|
249
254
|
|
|
250
255
|
|
|
251
256
|
|
package/api.ts
CHANGED
|
@@ -29,6 +29,7 @@ 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';
|
|
32
33
|
export * from './model/./generateApiKeyRequest';
|
|
33
34
|
export * from './model/./getMarketplaceMetadata200Response';
|
|
34
35
|
export * from './model/./getSmartContractMinedBlocks200Response';
|
|
@@ -25,6 +25,7 @@ export interface ValidatorsApiParams {
|
|
|
25
25
|
page?: number;
|
|
26
26
|
limit?: number;
|
|
27
27
|
validatorIndices?: string;
|
|
28
|
+
withdrawalType?: 'full' | 'partial';
|
|
28
29
|
}
|
|
29
30
|
export declare class ValidatorsApi {
|
|
30
31
|
protected _basePath: string;
|
|
@@ -68,6 +69,7 @@ export declare class ValidatorsApi {
|
|
|
68
69
|
* @param page Withdrawal list page number
|
|
69
70
|
* @param limit Number of withdrawals to return per page
|
|
70
71
|
* @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \"123,456,789\")
|
|
72
|
+
* @param withdrawalType
|
|
71
73
|
*/
|
|
72
74
|
getValidatorWithdrawals(params?: ValidatorsApiParams, options?: {
|
|
73
75
|
headers: {
|
|
@@ -154,6 +154,7 @@ class ValidatorsApi {
|
|
|
154
154
|
* @param page Withdrawal list page number
|
|
155
155
|
* @param limit Number of withdrawals to return per page
|
|
156
156
|
* @param validatorIndices Comma-separated list of validator indices to filter withdrawals (e.g., \"123,456,789\")
|
|
157
|
+
* @param withdrawalType
|
|
157
158
|
*/
|
|
158
159
|
async getValidatorWithdrawals(params, options = { headers: {} }) {
|
|
159
160
|
const localVarPath = this.basePath + '/validators/withdrawals';
|
|
@@ -182,6 +183,9 @@ class ValidatorsApi {
|
|
|
182
183
|
if ((params === null || params === void 0 ? void 0 : params.validatorIndices) !== undefined) {
|
|
183
184
|
localVarQueryParameters['validator_indices'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.validatorIndices, "string");
|
|
184
185
|
}
|
|
186
|
+
if ((params === null || params === void 0 ? void 0 : params.withdrawalType) !== undefined) {
|
|
187
|
+
localVarQueryParameters['withdrawal_type'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.withdrawalType, "'full' | 'partial'");
|
|
188
|
+
}
|
|
185
189
|
Object.assign(localVarHeaderParams, options.headers);
|
|
186
190
|
let localVarUseFormData = false;
|
|
187
191
|
let localVarRequestOptions = {
|
package/dist/api.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ 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';
|
|
30
31
|
export * from './model/./generateApiKeyRequest';
|
|
31
32
|
export * from './model/./getMarketplaceMetadata200Response';
|
|
32
33
|
export * from './model/./getSmartContractMinedBlocks200Response';
|
package/dist/api.js
CHANGED
|
@@ -46,6 +46,7 @@ __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);
|
|
49
50
|
__exportStar(require("./model/./generateApiKeyRequest"), exports);
|
|
50
51
|
__exportStar(require("./model/./getMarketplaceMetadata200Response"), exports);
|
|
51
52
|
__exportStar(require("./model/./getSmartContractMinedBlocks200Response"), exports);
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
];
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { FiatAmount } from './fiatAmount';
|
|
12
13
|
export declare class InternalTransaction {
|
|
13
14
|
'blockNumber': number;
|
|
14
15
|
'timeStamp': Date;
|
|
@@ -19,6 +20,7 @@ export declare class InternalTransaction {
|
|
|
19
20
|
* Transaction value in ETH
|
|
20
21
|
*/
|
|
21
22
|
'value': string;
|
|
23
|
+
'valueInUSD'?: FiatAmount;
|
|
22
24
|
'isError'?: boolean;
|
|
23
25
|
static discriminator: string | undefined;
|
|
24
26
|
static attributeTypeMap: Array<{
|
|
@@ -9,12 +9,14 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { FiatAmount } from './fiatAmount';
|
|
12
13
|
export declare class MinedBlock {
|
|
13
14
|
'blockNumber': number;
|
|
14
15
|
/**
|
|
15
16
|
* Block reward in ETH
|
|
16
17
|
*/
|
|
17
18
|
'blockReward': string;
|
|
19
|
+
'blockRewardInUSD'?: FiatAmount;
|
|
18
20
|
'timeStamp': Date;
|
|
19
21
|
'address': string;
|
|
20
22
|
static discriminator: string | undefined;
|
package/dist/model/minedBlock.js
CHANGED
package/dist/model/models.d.ts
CHANGED
|
@@ -19,6 +19,7 @@ export * from './ethereumValidatorKeyKeystoreCryptoKdfParams';
|
|
|
19
19
|
export * from './exitEstimateBase';
|
|
20
20
|
export * from './exitEstimateSeller';
|
|
21
21
|
export * from './exitProposal';
|
|
22
|
+
export * from './fiatAmount';
|
|
22
23
|
export * from './generateApiKeyRequest';
|
|
23
24
|
export * from './getMarketplaceMetadata200Response';
|
|
24
25
|
export * from './getSmartContractMinedBlocks200Response';
|
package/dist/model/models.js
CHANGED
|
@@ -58,6 +58,7 @@ __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);
|
|
61
62
|
__exportStar(require("./generateApiKeyRequest"), exports);
|
|
62
63
|
__exportStar(require("./getMarketplaceMetadata200Response"), exports);
|
|
63
64
|
__exportStar(require("./getSmartContractMinedBlocks200Response"), exports);
|
|
@@ -142,6 +143,7 @@ const ethereumValidatorKeyKeystoreCryptoKdfParams_1 = require("./ethereumValidat
|
|
|
142
143
|
const exitEstimateBase_1 = require("./exitEstimateBase");
|
|
143
144
|
const exitEstimateSeller_1 = require("./exitEstimateSeller");
|
|
144
145
|
const exitProposal_1 = require("./exitProposal");
|
|
146
|
+
const fiatAmount_1 = require("./fiatAmount");
|
|
145
147
|
const generateApiKeyRequest_1 = require("./generateApiKeyRequest");
|
|
146
148
|
const getMarketplaceMetadata200Response_1 = require("./getMarketplaceMetadata200Response");
|
|
147
149
|
const getSmartContractMinedBlocks200Response_1 = require("./getSmartContractMinedBlocks200Response");
|
|
@@ -213,11 +215,13 @@ let primitives = [
|
|
|
213
215
|
];
|
|
214
216
|
let enumsMap = {
|
|
215
217
|
"ApiKey.roles": apiKey_1.ApiKey,
|
|
218
|
+
"FiatAmount.fiatCurrency": fiatAmount_1.FiatAmount,
|
|
216
219
|
"GenerateApiKeyRequest.keyRights": generateApiKeyRequest_1.GenerateApiKeyRequest,
|
|
217
220
|
"RFQDocumentFacilitator.status": rFQDocumentFacilitator_1.RFQDocumentFacilitator,
|
|
218
221
|
"ValidatorInfo.asset": validatorInfo_1.ValidatorInfo,
|
|
219
222
|
"ValidatorInfo.status": validatorInfo_1.ValidatorInfo,
|
|
220
223
|
"ValidatorWithdrawal.asset": validatorWithdrawal_1.ValidatorWithdrawal,
|
|
224
|
+
"ValidatorWithdrawal.withdrawalType": validatorWithdrawal_1.ValidatorWithdrawal,
|
|
221
225
|
};
|
|
222
226
|
let typeMap = {
|
|
223
227
|
"AcceptedQuote": acceptedQuote_1.AcceptedQuote,
|
|
@@ -239,6 +243,7 @@ let typeMap = {
|
|
|
239
243
|
"ExitEstimateBase": exitEstimateBase_1.ExitEstimateBase,
|
|
240
244
|
"ExitEstimateSeller": exitEstimateSeller_1.ExitEstimateSeller,
|
|
241
245
|
"ExitProposal": exitProposal_1.ExitProposal,
|
|
246
|
+
"FiatAmount": fiatAmount_1.FiatAmount,
|
|
242
247
|
"GenerateApiKeyRequest": generateApiKeyRequest_1.GenerateApiKeyRequest,
|
|
243
248
|
"GetMarketplaceMetadata200Response": getMarketplaceMetadata200Response_1.GetMarketplaceMetadata200Response,
|
|
244
249
|
"GetSmartContractMinedBlocks200Response": getSmartContractMinedBlocks200Response_1.GetSmartContractMinedBlocks200Response,
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { FiatAmount } from './fiatAmount';
|
|
12
13
|
import { InternalTransaction } from './internalTransaction';
|
|
13
14
|
export declare class Transaction {
|
|
14
15
|
'blockNumber': number;
|
|
@@ -23,6 +24,7 @@ export declare class Transaction {
|
|
|
23
24
|
* Transaction value in eth
|
|
24
25
|
*/
|
|
25
26
|
'value': string;
|
|
27
|
+
'valueInUSD'?: FiatAmount;
|
|
26
28
|
/**
|
|
27
29
|
* Gas price in gwei per unit
|
|
28
30
|
*/
|
|
@@ -35,6 +37,7 @@ export declare class Transaction {
|
|
|
35
37
|
* Transaction fee in eth (gasPrice * gasUsed)
|
|
36
38
|
*/
|
|
37
39
|
'transactionFee'?: string;
|
|
40
|
+
'transactionFeeInUSD'?: FiatAmount;
|
|
38
41
|
/**
|
|
39
42
|
* Whether the transaction failed or not
|
|
40
43
|
*/
|
|
@@ -65,6 +65,11 @@ Transaction.attributeTypeMap = [
|
|
|
65
65
|
"baseName": "value",
|
|
66
66
|
"type": "string"
|
|
67
67
|
},
|
|
68
|
+
{
|
|
69
|
+
"name": "valueInUSD",
|
|
70
|
+
"baseName": "valueInUSD",
|
|
71
|
+
"type": "FiatAmount"
|
|
72
|
+
},
|
|
68
73
|
{
|
|
69
74
|
"name": "gasPrice",
|
|
70
75
|
"baseName": "gasPrice",
|
|
@@ -80,6 +85,11 @@ Transaction.attributeTypeMap = [
|
|
|
80
85
|
"baseName": "transactionFee",
|
|
81
86
|
"type": "string"
|
|
82
87
|
},
|
|
88
|
+
{
|
|
89
|
+
"name": "transactionFeeInUSD",
|
|
90
|
+
"baseName": "transactionFeeInUSD",
|
|
91
|
+
"type": "FiatAmount"
|
|
92
|
+
},
|
|
83
93
|
{
|
|
84
94
|
"name": "isError",
|
|
85
95
|
"baseName": "isError",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { FiatAmount } from './fiatAmount';
|
|
12
13
|
export declare class ValidatorWithdrawal {
|
|
13
14
|
'asset': ValidatorWithdrawal.assetEnum;
|
|
14
15
|
'validator_public_key': string;
|
|
@@ -19,6 +20,8 @@ export declare class ValidatorWithdrawal {
|
|
|
19
20
|
'withdrawal_index': number;
|
|
20
21
|
'withdrawal_address': string;
|
|
21
22
|
'amount': string;
|
|
23
|
+
'amountInUSD'?: FiatAmount;
|
|
24
|
+
'withdrawal_type': ValidatorWithdrawal.withdrawalTypeEnum;
|
|
22
25
|
static discriminator: string | undefined;
|
|
23
26
|
static attributeTypeMap: Array<{
|
|
24
27
|
name: string;
|
|
@@ -36,4 +39,8 @@ export declare namespace ValidatorWithdrawal {
|
|
|
36
39
|
*
|
|
37
40
|
*/
|
|
38
41
|
type assetEnum = 'ETH';
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
*/
|
|
45
|
+
type withdrawalTypeEnum = 'full' | 'partial';
|
|
39
46
|
}
|
|
@@ -64,5 +64,15 @@ ValidatorWithdrawal.attributeTypeMap = [
|
|
|
64
64
|
"name": "amount",
|
|
65
65
|
"baseName": "amount",
|
|
66
66
|
"type": "string"
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
"name": "amountInUSD",
|
|
70
|
+
"baseName": "amountInUSD",
|
|
71
|
+
"type": "FiatAmount"
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
"name": "withdrawal_type",
|
|
75
|
+
"baseName": "withdrawal_type",
|
|
76
|
+
"type": "ValidatorWithdrawal.withdrawalTypeEnum"
|
|
67
77
|
}
|
|
68
78
|
];
|
|
@@ -0,0 +1,68 @@
|
|
|
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
|
+
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { FiatAmount } from './fiatAmount';
|
|
13
14
|
|
|
14
15
|
export class InternalTransaction {
|
|
15
16
|
'blockNumber': number;
|
|
@@ -21,6 +22,7 @@ export class InternalTransaction {
|
|
|
21
22
|
* Transaction value in ETH
|
|
22
23
|
*/
|
|
23
24
|
'value': string;
|
|
25
|
+
'valueInUSD'?: FiatAmount;
|
|
24
26
|
'isError'?: boolean;
|
|
25
27
|
|
|
26
28
|
static discriminator: string | undefined = undefined;
|
|
@@ -56,6 +58,11 @@ export class InternalTransaction {
|
|
|
56
58
|
"baseName": "value",
|
|
57
59
|
"type": "string"
|
|
58
60
|
},
|
|
61
|
+
{
|
|
62
|
+
"name": "valueInUSD",
|
|
63
|
+
"baseName": "valueInUSD",
|
|
64
|
+
"type": "FiatAmount"
|
|
65
|
+
},
|
|
59
66
|
{
|
|
60
67
|
"name": "isError",
|
|
61
68
|
"baseName": "isError",
|
package/model/minedBlock.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { FiatAmount } from './fiatAmount';
|
|
13
14
|
|
|
14
15
|
export class MinedBlock {
|
|
15
16
|
'blockNumber': number;
|
|
@@ -17,6 +18,7 @@ export class MinedBlock {
|
|
|
17
18
|
* Block reward in ETH
|
|
18
19
|
*/
|
|
19
20
|
'blockReward': string;
|
|
21
|
+
'blockRewardInUSD'?: FiatAmount;
|
|
20
22
|
'timeStamp': Date;
|
|
21
23
|
'address': string;
|
|
22
24
|
|
|
@@ -33,6 +35,11 @@ export class MinedBlock {
|
|
|
33
35
|
"baseName": "blockReward",
|
|
34
36
|
"type": "string"
|
|
35
37
|
},
|
|
38
|
+
{
|
|
39
|
+
"name": "blockRewardInUSD",
|
|
40
|
+
"baseName": "blockRewardInUSD",
|
|
41
|
+
"type": "FiatAmount"
|
|
42
|
+
},
|
|
36
43
|
{
|
|
37
44
|
"name": "timeStamp",
|
|
38
45
|
"baseName": "timeStamp",
|
package/model/models.ts
CHANGED
|
@@ -22,6 +22,7 @@ export * from './ethereumValidatorKeyKeystoreCryptoKdfParams';
|
|
|
22
22
|
export * from './exitEstimateBase';
|
|
23
23
|
export * from './exitEstimateSeller';
|
|
24
24
|
export * from './exitProposal';
|
|
25
|
+
export * from './fiatAmount';
|
|
25
26
|
export * from './generateApiKeyRequest';
|
|
26
27
|
export * from './getMarketplaceMetadata200Response';
|
|
27
28
|
export * from './getSmartContractMinedBlocks200Response';
|
|
@@ -161,6 +162,9 @@ import { ExitEstimateSeller } from './exitEstimateSeller';
|
|
|
161
162
|
import { ExitProposal } from './exitProposal';
|
|
162
163
|
|
|
163
164
|
|
|
165
|
+
import { FiatAmount } from './fiatAmount';
|
|
166
|
+
|
|
167
|
+
|
|
164
168
|
import { GenerateApiKeyRequest } from './generateApiKeyRequest';
|
|
165
169
|
|
|
166
170
|
|
|
@@ -370,11 +374,13 @@ let primitives = [
|
|
|
370
374
|
];
|
|
371
375
|
let enumsMap: {[index: string]: any} = {
|
|
372
376
|
"ApiKey.roles": ApiKey,
|
|
377
|
+
"FiatAmount.fiatCurrency": FiatAmount,
|
|
373
378
|
"GenerateApiKeyRequest.keyRights": GenerateApiKeyRequest,
|
|
374
379
|
"RFQDocumentFacilitator.status": RFQDocumentFacilitator,
|
|
375
380
|
"ValidatorInfo.asset": ValidatorInfo,
|
|
376
381
|
"ValidatorInfo.status": ValidatorInfo,
|
|
377
382
|
"ValidatorWithdrawal.asset": ValidatorWithdrawal,
|
|
383
|
+
"ValidatorWithdrawal.withdrawalType": ValidatorWithdrawal,
|
|
378
384
|
};
|
|
379
385
|
let typeMap: {[index: string]: any} = {
|
|
380
386
|
"AcceptedQuote": AcceptedQuote,
|
|
@@ -396,6 +402,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
396
402
|
"ExitEstimateBase": ExitEstimateBase,
|
|
397
403
|
"ExitEstimateSeller": ExitEstimateSeller,
|
|
398
404
|
"ExitProposal": ExitProposal,
|
|
405
|
+
"FiatAmount": FiatAmount,
|
|
399
406
|
"GenerateApiKeyRequest": GenerateApiKeyRequest,
|
|
400
407
|
"GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
|
|
401
408
|
"GetSmartContractMinedBlocks200Response": GetSmartContractMinedBlocks200Response,
|
package/model/transaction.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { FiatAmount } from './fiatAmount';
|
|
13
14
|
import { InternalTransaction } from './internalTransaction';
|
|
14
15
|
|
|
15
16
|
export class Transaction {
|
|
@@ -25,6 +26,7 @@ export class Transaction {
|
|
|
25
26
|
* Transaction value in eth
|
|
26
27
|
*/
|
|
27
28
|
'value': string;
|
|
29
|
+
'valueInUSD'?: FiatAmount;
|
|
28
30
|
/**
|
|
29
31
|
* Gas price in gwei per unit
|
|
30
32
|
*/
|
|
@@ -37,6 +39,7 @@ export class Transaction {
|
|
|
37
39
|
* Transaction fee in eth (gasPrice * gasUsed)
|
|
38
40
|
*/
|
|
39
41
|
'transactionFee'?: string;
|
|
42
|
+
'transactionFeeInUSD'?: FiatAmount;
|
|
40
43
|
/**
|
|
41
44
|
* Whether the transaction failed or not
|
|
42
45
|
*/
|
|
@@ -111,6 +114,11 @@ export class Transaction {
|
|
|
111
114
|
"baseName": "value",
|
|
112
115
|
"type": "string"
|
|
113
116
|
},
|
|
117
|
+
{
|
|
118
|
+
"name": "valueInUSD",
|
|
119
|
+
"baseName": "valueInUSD",
|
|
120
|
+
"type": "FiatAmount"
|
|
121
|
+
},
|
|
114
122
|
{
|
|
115
123
|
"name": "gasPrice",
|
|
116
124
|
"baseName": "gasPrice",
|
|
@@ -126,6 +134,11 @@ export class Transaction {
|
|
|
126
134
|
"baseName": "transactionFee",
|
|
127
135
|
"type": "string"
|
|
128
136
|
},
|
|
137
|
+
{
|
|
138
|
+
"name": "transactionFeeInUSD",
|
|
139
|
+
"baseName": "transactionFeeInUSD",
|
|
140
|
+
"type": "FiatAmount"
|
|
141
|
+
},
|
|
129
142
|
{
|
|
130
143
|
"name": "isError",
|
|
131
144
|
"baseName": "isError",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { FiatAmount } from './fiatAmount';
|
|
13
14
|
|
|
14
15
|
export class ValidatorWithdrawal {
|
|
15
16
|
'asset': ValidatorWithdrawal.assetEnum;
|
|
@@ -21,6 +22,8 @@ export class ValidatorWithdrawal {
|
|
|
21
22
|
'withdrawal_index': number;
|
|
22
23
|
'withdrawal_address': string;
|
|
23
24
|
'amount': string;
|
|
25
|
+
'amountInUSD'?: FiatAmount;
|
|
26
|
+
'withdrawal_type': ValidatorWithdrawal.withdrawalTypeEnum;
|
|
24
27
|
|
|
25
28
|
static discriminator: string | undefined = undefined;
|
|
26
29
|
|
|
@@ -69,6 +72,16 @@ export class ValidatorWithdrawal {
|
|
|
69
72
|
"name": "amount",
|
|
70
73
|
"baseName": "amount",
|
|
71
74
|
"type": "string"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "amountInUSD",
|
|
78
|
+
"baseName": "amountInUSD",
|
|
79
|
+
"type": "FiatAmount"
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
"name": "withdrawal_type",
|
|
83
|
+
"baseName": "withdrawal_type",
|
|
84
|
+
"type": "ValidatorWithdrawal.withdrawalTypeEnum"
|
|
72
85
|
} ];
|
|
73
86
|
|
|
74
87
|
static getAttributeTypeMap() {
|
|
@@ -82,5 +95,11 @@ export namespace ValidatorWithdrawal {
|
|
|
82
95
|
*/
|
|
83
96
|
export type assetEnum =
|
|
84
97
|
'ETH';
|
|
98
|
+
/**
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
export type withdrawalTypeEnum =
|
|
102
|
+
'full' |
|
|
103
|
+
'partial';
|
|
85
104
|
}
|
|
86
105
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@northstake/northstakeapi",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.36",
|
|
4
4
|
"description": "Northstake SDK",
|
|
5
5
|
"main": "dist/api.js",
|
|
6
6
|
"types": "dist/api.d.ts",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"author": "Northstake build process <buildadmin@northstake.dk>",
|
|
22
22
|
"license": "ISC",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@types/node": "^22.
|
|
24
|
+
"@types/node": "^22.13.4",
|
|
25
25
|
"typescript": "^5.7.3"
|
|
26
26
|
}
|
|
27
27
|
}
|