@northstake/northstakeapi 1.0.35 → 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.ts +1 -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 +4 -0
- package/dist/model/transaction.d.ts +3 -0
- package/dist/model/transaction.js +10 -0
- package/dist/model/validatorWithdrawal.d.ts +2 -0
- package/dist/model/validatorWithdrawal.js +5 -0
- package/model/fiatAmount.ts +68 -0
- package/model/internalTransaction.ts +7 -0
- package/model/minedBlock.ts +7 -0
- package/model/models.ts +6 -0
- package/model/transaction.ts +13 -0
- package/model/validatorWithdrawal.ts +7 -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.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';
|
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,6 +215,7 @@ 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,
|
|
@@ -240,6 +243,7 @@ let typeMap = {
|
|
|
240
243
|
"ExitEstimateBase": exitEstimateBase_1.ExitEstimateBase,
|
|
241
244
|
"ExitEstimateSeller": exitEstimateSeller_1.ExitEstimateSeller,
|
|
242
245
|
"ExitProposal": exitProposal_1.ExitProposal,
|
|
246
|
+
"FiatAmount": fiatAmount_1.FiatAmount,
|
|
243
247
|
"GenerateApiKeyRequest": generateApiKeyRequest_1.GenerateApiKeyRequest,
|
|
244
248
|
"GetMarketplaceMetadata200Response": getMarketplaceMetadata200Response_1.GetMarketplaceMetadata200Response,
|
|
245
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,7 @@ export declare class ValidatorWithdrawal {
|
|
|
19
20
|
'withdrawal_index': number;
|
|
20
21
|
'withdrawal_address': string;
|
|
21
22
|
'amount': string;
|
|
23
|
+
'amountInUSD'?: FiatAmount;
|
|
22
24
|
'withdrawal_type': ValidatorWithdrawal.withdrawalTypeEnum;
|
|
23
25
|
static discriminator: string | undefined;
|
|
24
26
|
static attributeTypeMap: Array<{
|
|
@@ -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,6 +374,7 @@ 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,
|
|
@@ -397,6 +402,7 @@ let typeMap: {[index: string]: any} = {
|
|
|
397
402
|
"ExitEstimateBase": ExitEstimateBase,
|
|
398
403
|
"ExitEstimateSeller": ExitEstimateSeller,
|
|
399
404
|
"ExitProposal": ExitProposal,
|
|
405
|
+
"FiatAmount": FiatAmount,
|
|
400
406
|
"GenerateApiKeyRequest": GenerateApiKeyRequest,
|
|
401
407
|
"GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
|
|
402
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,7 @@ export class ValidatorWithdrawal {
|
|
|
21
22
|
'withdrawal_index': number;
|
|
22
23
|
'withdrawal_address': string;
|
|
23
24
|
'amount': string;
|
|
25
|
+
'amountInUSD'?: FiatAmount;
|
|
24
26
|
'withdrawal_type': ValidatorWithdrawal.withdrawalTypeEnum;
|
|
25
27
|
|
|
26
28
|
static discriminator: string | undefined = undefined;
|
|
@@ -71,6 +73,11 @@ export class ValidatorWithdrawal {
|
|
|
71
73
|
"baseName": "amount",
|
|
72
74
|
"type": "string"
|
|
73
75
|
},
|
|
76
|
+
{
|
|
77
|
+
"name": "amountInUSD",
|
|
78
|
+
"baseName": "amountInUSD",
|
|
79
|
+
"type": "FiatAmount"
|
|
80
|
+
},
|
|
74
81
|
{
|
|
75
82
|
"name": "withdrawal_type",
|
|
76
83
|
"baseName": "withdrawal_type",
|
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.13.
|
|
24
|
+
"@types/node": "^22.13.4",
|
|
25
25
|
"typescript": "^5.7.3"
|
|
26
26
|
}
|
|
27
27
|
}
|