@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.
Files changed (38) hide show
  1. package/.openapi-generator/FILES +3 -1
  2. package/.openapi-generator/VERSION +1 -1
  3. package/api/smartContractsApi.ts +111 -0
  4. package/api.ts +3 -1
  5. package/dist/api/smartContractsApi.d.ts +25 -0
  6. package/dist/api/smartContractsApi.js +83 -0
  7. package/dist/api.d.ts +3 -1
  8. package/dist/api.js +3 -1
  9. package/dist/model/{fiatAmount.d.ts → getSmartContractMEVRewards200Response.d.ts} +9 -17
  10. package/dist/model/getSmartContractMEVRewards200Response.js +43 -0
  11. package/dist/model/internalTransaction.d.ts +4 -2
  12. package/dist/model/internalTransaction.js +1 -1
  13. package/dist/model/mEVReward.d.ts +45 -0
  14. package/dist/model/mEVReward.js +83 -0
  15. package/dist/model/minedBlock.d.ts +4 -2
  16. package/dist/model/minedBlock.js +1 -1
  17. package/dist/model/models.d.ts +3 -1
  18. package/dist/model/models.js +9 -4
  19. package/dist/model/settlementSteps.d.ts +2 -0
  20. package/dist/model/settlementSteps.js +5 -0
  21. package/dist/model/transaction.d.ts +8 -3
  22. package/dist/model/transaction.js +2 -2
  23. package/dist/model/validatorWithdrawal.d.ts +4 -2
  24. package/dist/model/validatorWithdrawal.js +1 -1
  25. package/dist/model/withdrawalClaimable.d.ts +29 -0
  26. package/dist/model/withdrawalClaimable.js +48 -0
  27. package/model/getSmartContractMEVRewards200Response.ts +59 -0
  28. package/model/internalTransaction.ts +5 -3
  29. package/model/mEVReward.ts +106 -0
  30. package/model/minedBlock.ts +5 -3
  31. package/model/models.ts +15 -6
  32. package/model/settlementSteps.ts +7 -0
  33. package/model/transaction.ts +10 -5
  34. package/model/validatorWithdrawal.ts +5 -3
  35. package/model/withdrawalClaimable.ts +55 -0
  36. package/package.json +3 -3
  37. package/dist/model/fiatAmount.js +0 -43
  38. package/model/fiatAmount.ts +0 -68
@@ -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
- 'valueInUSD'?: FiatAmount;
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
- 'transactionFeeInUSD'?: FiatAmount;
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": "FiatAmount"
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": "FiatAmount"
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
- 'amountInUSD'?: FiatAmount;
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": "FiatAmount"
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,6 +1,6 @@
1
1
  {
2
2
  "name": "@northstake/northstakeapi",
3
- "version": "1.0.36",
3
+ "version": "1.0.38",
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.4",
25
- "typescript": "^5.7.3"
24
+ "@types/node": "^22.13.9",
25
+ "typescript": "^5.8.2"
26
26
  }
27
27
  }
@@ -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
- ];
@@ -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
-