@northstake/northstakeapi 1.0.37 → 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.
@@ -34,11 +34,13 @@ model/exitEstimateSeller.ts
34
34
  model/exitProposal.ts
35
35
  model/generateApiKeyRequest.ts
36
36
  model/getMarketplaceMetadata200Response.ts
37
+ model/getSmartContractMEVRewards200Response.ts
37
38
  model/getSmartContractMinedBlocks200Response.ts
38
39
  model/getSmartContractTransactions200Response.ts
39
40
  model/getWithdrawalsResponse.ts
40
41
  model/internalTransaction.ts
41
42
  model/listAllRFQsForFacilitator200Response.ts
43
+ model/mEVReward.ts
42
44
  model/minedBlock.ts
43
45
  model/models.ts
44
46
  model/presignedExitKey.ts
@@ -1 +1 @@
1
- 7.12.0-SNAPSHOT
1
+ 7.13.0-SNAPSHOT
@@ -16,6 +16,7 @@ import http from 'http';
16
16
 
17
17
  /* tslint:disable:no-unused-locals */
18
18
  import { ErrorResponse } from '../model/errorResponse';
19
+ import { GetSmartContractMEVRewards200Response } from '../model/getSmartContractMEVRewards200Response';
19
20
  import { GetSmartContractMinedBlocks200Response } from '../model/getSmartContractMinedBlocks200Response';
20
21
  import { GetSmartContractTransactions200Response } from '../model/getSmartContractTransactions200Response';
21
22
  import { SmartContractDetailed } from '../model/smartContractDetailed';
@@ -45,6 +46,14 @@ export interface SmartContractsApiParams {
45
46
  endDate?: Date;
46
47
  }
47
48
  // If vendorExtensions.x-packageParams is true, use a single object to pass parameters
49
+ export interface SmartContractsApiParams {
50
+ contractAddress: string;
51
+ page?: number;
52
+ limit?: number;
53
+ startDate?: Date;
54
+ endDate?: Date;
55
+ }
56
+ // If vendorExtensions.x-packageParams is true, use a single object to pass parameters
48
57
  export interface SmartContractsApiParams {
49
58
  contractAddress: string;
50
59
  startDate?: Date;
@@ -115,6 +124,108 @@ export class SmartContractsApi {
115
124
  this.interceptors.push(interceptor);
116
125
  }
117
126
 
127
+ /**
128
+ *
129
+ * @summary Get MEV rewards related to a specific smart contract
130
+ * @param contractAddress The address of the smart contract
131
+ * @param page Page number for pagination
132
+ * @param limit Number of MEV rewards per page
133
+ * @param startDate Start date for filtering MEV rewards
134
+ * @param endDate End date for filtering MEV rewards
135
+ */
136
+
137
+
138
+
139
+
140
+
141
+ public async getSmartContractMEVRewards(params?: SmartContractsApiParams, options: { headers: { [name: string]: string } } = { headers: {} }): Promise<{ body: GetSmartContractMEVRewards200Response, status: number }> {
142
+
143
+ const localVarPath = this.basePath + '/smartContracts/{contractAddress}/MEVRewards'
144
+ .replace('{' + 'contractAddress' + '}', encodeURIComponent(String(params?.contractAddress)));
145
+
146
+ let localVarQueryParameters: any = {};
147
+ let localVarHeaderParams: any = (<any>Object).assign({}, this._defaultHeaders);
148
+ const produces = ['application/json'];
149
+ if (produces.indexOf('application/json') >= 0) {
150
+ localVarHeaderParams.Accept = 'application/json';
151
+ } else {
152
+ localVarHeaderParams.Accept = produces.join(',');
153
+ }
154
+ let localVarFormParams: any = {};
155
+
156
+
157
+ // Verify required parameter 'contractAddress' is not null or undefined
158
+ if (params?.contractAddress === null || params?.contractAddress === undefined) {
159
+ throw new Error('Required parameter "contractAddress" was null or undefined when calling getSmartContractMEVRewards.');
160
+ }
161
+
162
+
163
+
164
+ if (params?.page !== undefined) {
165
+ localVarQueryParameters['page'] = ObjectSerializer.serialize(params?.page, "number");
166
+ }
167
+ if (params?.limit !== undefined) {
168
+ localVarQueryParameters['limit'] = ObjectSerializer.serialize(params?.limit, "number");
169
+ }
170
+ if (params?.startDate !== undefined) {
171
+ localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "Date");
172
+ }
173
+ if (params?.endDate !== undefined) {
174
+ localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "Date");
175
+ }
176
+
177
+
178
+
179
+
180
+ (<any>Object).assign(localVarHeaderParams, options.headers);
181
+
182
+ let localVarUseFormData = false;
183
+
184
+
185
+
186
+ let localVarRequestOptions: localVarRequest.Options = {
187
+ method: 'GET',
188
+ qs: localVarQueryParameters,
189
+ headers: localVarHeaderParams,
190
+ uri: localVarPath,
191
+ useQuerystring: this._useQuerystring,
192
+ json: true,
193
+ };
194
+
195
+ let authenticationPromise = Promise.resolve();
196
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
197
+
198
+ let interceptorPromise = authenticationPromise;
199
+ for (const interceptor of this.interceptors) {
200
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
201
+ }
202
+
203
+ return interceptorPromise.then(() => {
204
+ if (Object.keys(localVarFormParams).length) {
205
+ if (localVarUseFormData) {
206
+ (<any>localVarRequestOptions).formData = localVarFormParams;
207
+ } else {
208
+ localVarRequestOptions.form = localVarFormParams;
209
+ }
210
+ }
211
+ return new Promise<{ body: GetSmartContractMEVRewards200Response, status: number }>((resolve, reject) => {
212
+ localVarRequest(localVarRequestOptions, (error, response, body) => {
213
+ if (error) {
214
+ console.error('API call error:', error);
215
+ reject(error);
216
+ } else {
217
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
218
+ body = ObjectSerializer.deserialize(body, "GetSmartContractMEVRewards200Response");
219
+ resolve({ body: body, status: response.statusCode });
220
+ } else {
221
+ console.error('API response error:', response.statusCode);
222
+ resolve({ body: body, status: response.statusCode });
223
+ }
224
+ }
225
+ });
226
+ });
227
+ } )
228
+ }
118
229
  /**
119
230
  *
120
231
  * @summary Get mined blocks related to a specific smart contract
package/api.ts CHANGED
@@ -31,11 +31,13 @@ export * from './model/./exitEstimateSeller';
31
31
  export * from './model/./exitProposal';
32
32
  export * from './model/./generateApiKeyRequest';
33
33
  export * from './model/./getMarketplaceMetadata200Response';
34
+ export * from './model/./getSmartContractMEVRewards200Response';
34
35
  export * from './model/./getSmartContractMinedBlocks200Response';
35
36
  export * from './model/./getSmartContractTransactions200Response';
36
37
  export * from './model/./getWithdrawalsResponse';
37
38
  export * from './model/./internalTransaction';
38
39
  export * from './model/./listAllRFQsForFacilitator200Response';
40
+ export * from './model/./mEVReward';
39
41
  export * from './model/./minedBlock';
40
42
  export * from './model/./presignedExitKey';
41
43
  export * from './model/./presignedExitKeyMessage';
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import { GetSmartContractMEVRewards200Response } from '../model/getSmartContractMEVRewards200Response';
12
13
  import { GetSmartContractMinedBlocks200Response } from '../model/getSmartContractMinedBlocks200Response';
13
14
  import { GetSmartContractTransactions200Response } from '../model/getSmartContractTransactions200Response';
14
15
  import { SmartContractDetailed } from '../model/smartContractDetailed';
@@ -24,6 +25,13 @@ export interface SmartContractsApiParams {
24
25
  startDate?: Date;
25
26
  endDate?: Date;
26
27
  }
28
+ export interface SmartContractsApiParams {
29
+ contractAddress: string;
30
+ page?: number;
31
+ limit?: number;
32
+ startDate?: Date;
33
+ endDate?: Date;
34
+ }
27
35
  export interface SmartContractsApiParams {
28
36
  contractAddress: string;
29
37
  startDate?: Date;
@@ -51,6 +59,23 @@ export declare class SmartContractsApi {
51
59
  setApiKey(key: SmartContractsApiApiKeys, value: string): void;
52
60
  set accessToken(accessToken: string | (() => string));
53
61
  addInterceptor(interceptor: Interceptor): void;
62
+ /**
63
+ *
64
+ * @summary Get MEV rewards related to a specific smart contract
65
+ * @param contractAddress The address of the smart contract
66
+ * @param page Page number for pagination
67
+ * @param limit Number of MEV rewards per page
68
+ * @param startDate Start date for filtering MEV rewards
69
+ * @param endDate End date for filtering MEV rewards
70
+ */
71
+ getSmartContractMEVRewards(params?: SmartContractsApiParams, options?: {
72
+ headers: {
73
+ [name: string]: string;
74
+ };
75
+ }): Promise<{
76
+ body: GetSmartContractMEVRewards200Response;
77
+ status: number;
78
+ }>;
54
79
  /**
55
80
  *
56
81
  * @summary Get mined blocks related to a specific smart contract
@@ -75,6 +75,89 @@ class SmartContractsApi {
75
75
  addInterceptor(interceptor) {
76
76
  this.interceptors.push(interceptor);
77
77
  }
78
+ /**
79
+ *
80
+ * @summary Get MEV rewards related to a specific smart contract
81
+ * @param contractAddress The address of the smart contract
82
+ * @param page Page number for pagination
83
+ * @param limit Number of MEV rewards per page
84
+ * @param startDate Start date for filtering MEV rewards
85
+ * @param endDate End date for filtering MEV rewards
86
+ */
87
+ async getSmartContractMEVRewards(params, options = { headers: {} }) {
88
+ const localVarPath = this.basePath + '/smartContracts/{contractAddress}/MEVRewards'
89
+ .replace('{' + 'contractAddress' + '}', encodeURIComponent(String(params === null || params === void 0 ? void 0 : params.contractAddress)));
90
+ let localVarQueryParameters = {};
91
+ let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
92
+ const produces = ['application/json'];
93
+ if (produces.indexOf('application/json') >= 0) {
94
+ localVarHeaderParams.Accept = 'application/json';
95
+ }
96
+ else {
97
+ localVarHeaderParams.Accept = produces.join(',');
98
+ }
99
+ let localVarFormParams = {};
100
+ // Verify required parameter 'contractAddress' is not null or undefined
101
+ if ((params === null || params === void 0 ? void 0 : params.contractAddress) === null || (params === null || params === void 0 ? void 0 : params.contractAddress) === undefined) {
102
+ throw new Error('Required parameter "contractAddress" was null or undefined when calling getSmartContractMEVRewards.');
103
+ }
104
+ if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
105
+ localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
106
+ }
107
+ if ((params === null || params === void 0 ? void 0 : params.limit) !== undefined) {
108
+ localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.limit, "number");
109
+ }
110
+ if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
111
+ localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "Date");
112
+ }
113
+ if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
114
+ localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "Date");
115
+ }
116
+ Object.assign(localVarHeaderParams, options.headers);
117
+ let localVarUseFormData = false;
118
+ let localVarRequestOptions = {
119
+ method: 'GET',
120
+ qs: localVarQueryParameters,
121
+ headers: localVarHeaderParams,
122
+ uri: localVarPath,
123
+ useQuerystring: this._useQuerystring,
124
+ json: true,
125
+ };
126
+ let authenticationPromise = Promise.resolve();
127
+ authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
128
+ let interceptorPromise = authenticationPromise;
129
+ for (const interceptor of this.interceptors) {
130
+ interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
131
+ }
132
+ return interceptorPromise.then(() => {
133
+ if (Object.keys(localVarFormParams).length) {
134
+ if (localVarUseFormData) {
135
+ localVarRequestOptions.formData = localVarFormParams;
136
+ }
137
+ else {
138
+ localVarRequestOptions.form = localVarFormParams;
139
+ }
140
+ }
141
+ return new Promise((resolve, reject) => {
142
+ (0, request_1.default)(localVarRequestOptions, (error, response, body) => {
143
+ if (error) {
144
+ console.error('API call error:', error);
145
+ reject(error);
146
+ }
147
+ else {
148
+ if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
149
+ body = models_1.ObjectSerializer.deserialize(body, "GetSmartContractMEVRewards200Response");
150
+ resolve({ body: body, status: response.statusCode });
151
+ }
152
+ else {
153
+ console.error('API response error:', response.statusCode);
154
+ resolve({ body: body, status: response.statusCode });
155
+ }
156
+ }
157
+ });
158
+ });
159
+ });
160
+ }
78
161
  /**
79
162
  *
80
163
  * @summary Get mined blocks related to a specific smart contract
package/dist/api.d.ts CHANGED
@@ -29,11 +29,13 @@ export * from './model/./exitEstimateSeller';
29
29
  export * from './model/./exitProposal';
30
30
  export * from './model/./generateApiKeyRequest';
31
31
  export * from './model/./getMarketplaceMetadata200Response';
32
+ export * from './model/./getSmartContractMEVRewards200Response';
32
33
  export * from './model/./getSmartContractMinedBlocks200Response';
33
34
  export * from './model/./getSmartContractTransactions200Response';
34
35
  export * from './model/./getWithdrawalsResponse';
35
36
  export * from './model/./internalTransaction';
36
37
  export * from './model/./listAllRFQsForFacilitator200Response';
38
+ export * from './model/./mEVReward';
37
39
  export * from './model/./minedBlock';
38
40
  export * from './model/./presignedExitKey';
39
41
  export * from './model/./presignedExitKeyMessage';
package/dist/api.js CHANGED
@@ -48,11 +48,13 @@ __exportStar(require("./model/./exitEstimateSeller"), exports);
48
48
  __exportStar(require("./model/./exitProposal"), exports);
49
49
  __exportStar(require("./model/./generateApiKeyRequest"), exports);
50
50
  __exportStar(require("./model/./getMarketplaceMetadata200Response"), exports);
51
+ __exportStar(require("./model/./getSmartContractMEVRewards200Response"), exports);
51
52
  __exportStar(require("./model/./getSmartContractMinedBlocks200Response"), exports);
52
53
  __exportStar(require("./model/./getSmartContractTransactions200Response"), exports);
53
54
  __exportStar(require("./model/./getWithdrawalsResponse"), exports);
54
55
  __exportStar(require("./model/./internalTransaction"), exports);
55
56
  __exportStar(require("./model/./listAllRFQsForFacilitator200Response"), exports);
57
+ __exportStar(require("./model/./mEVReward"), exports);
56
58
  __exportStar(require("./model/./minedBlock"), exports);
57
59
  __exportStar(require("./model/./presignedExitKey"), exports);
58
60
  __exportStar(require("./model/./presignedExitKeyMessage"), exports);
@@ -0,0 +1,38 @@
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
+ import { MEVReward } from './mEVReward';
13
+ export declare class GetSmartContractMEVRewards200Response {
14
+ 'mevRewards': Array<MEVReward>;
15
+ /**
16
+ * Total number of MEV rewards
17
+ */
18
+ 'total': number;
19
+ /**
20
+ * Total number of pages
21
+ */
22
+ 'pages': number;
23
+ /**
24
+ * Current page number
25
+ */
26
+ 'currentPage': number;
27
+ static discriminator: string | undefined;
28
+ static attributeTypeMap: Array<{
29
+ name: string;
30
+ baseName: string;
31
+ type: string;
32
+ }>;
33
+ static getAttributeTypeMap(): {
34
+ name: string;
35
+ baseName: string;
36
+ type: string;
37
+ }[];
38
+ }
@@ -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.GetSmartContractMEVRewards200Response = void 0;
15
+ class GetSmartContractMEVRewards200Response {
16
+ static getAttributeTypeMap() {
17
+ return GetSmartContractMEVRewards200Response.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.GetSmartContractMEVRewards200Response = GetSmartContractMEVRewards200Response;
21
+ GetSmartContractMEVRewards200Response.discriminator = undefined;
22
+ GetSmartContractMEVRewards200Response.attributeTypeMap = [
23
+ {
24
+ "name": "mevRewards",
25
+ "baseName": "mevRewards",
26
+ "type": "Array<MEVReward>"
27
+ },
28
+ {
29
+ "name": "total",
30
+ "baseName": "total",
31
+ "type": "number"
32
+ },
33
+ {
34
+ "name": "pages",
35
+ "baseName": "pages",
36
+ "type": "number"
37
+ },
38
+ {
39
+ "name": "currentPage",
40
+ "baseName": "currentPage",
41
+ "type": "number"
42
+ }
43
+ ];
@@ -0,0 +1,45 @@
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 MEVReward {
13
+ 'timeStamp': Date;
14
+ 'transactionHash': string;
15
+ 'transactionBlockNumber': number;
16
+ 'transactionBlockHash'?: string;
17
+ 'blockNumber': number;
18
+ 'blockHash'?: string;
19
+ 'fromAddress': string;
20
+ 'toAddress': string;
21
+ /**
22
+ * MEV reward value in ETH
23
+ */
24
+ 'value': string;
25
+ /**
26
+ * MEV reward value in USD
27
+ */
28
+ 'valueInUSD'?: string;
29
+ 'validatorIndex': number;
30
+ /**
31
+ * The tag of the relay that provided the MEV reward
32
+ */
33
+ 'relayTag'?: string;
34
+ static discriminator: string | undefined;
35
+ static attributeTypeMap: Array<{
36
+ name: string;
37
+ baseName: string;
38
+ type: string;
39
+ }>;
40
+ static getAttributeTypeMap(): {
41
+ name: string;
42
+ baseName: string;
43
+ type: string;
44
+ }[];
45
+ }
@@ -0,0 +1,83 @@
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.MEVReward = void 0;
15
+ class MEVReward {
16
+ static getAttributeTypeMap() {
17
+ return MEVReward.attributeTypeMap;
18
+ }
19
+ }
20
+ exports.MEVReward = MEVReward;
21
+ MEVReward.discriminator = undefined;
22
+ MEVReward.attributeTypeMap = [
23
+ {
24
+ "name": "timeStamp",
25
+ "baseName": "timeStamp",
26
+ "type": "Date"
27
+ },
28
+ {
29
+ "name": "transactionHash",
30
+ "baseName": "transactionHash",
31
+ "type": "string"
32
+ },
33
+ {
34
+ "name": "transactionBlockNumber",
35
+ "baseName": "transactionBlockNumber",
36
+ "type": "number"
37
+ },
38
+ {
39
+ "name": "transactionBlockHash",
40
+ "baseName": "transactionBlockHash",
41
+ "type": "string"
42
+ },
43
+ {
44
+ "name": "blockNumber",
45
+ "baseName": "blockNumber",
46
+ "type": "number"
47
+ },
48
+ {
49
+ "name": "blockHash",
50
+ "baseName": "blockHash",
51
+ "type": "string"
52
+ },
53
+ {
54
+ "name": "fromAddress",
55
+ "baseName": "fromAddress",
56
+ "type": "string"
57
+ },
58
+ {
59
+ "name": "toAddress",
60
+ "baseName": "toAddress",
61
+ "type": "string"
62
+ },
63
+ {
64
+ "name": "value",
65
+ "baseName": "value",
66
+ "type": "string"
67
+ },
68
+ {
69
+ "name": "valueInUSD",
70
+ "baseName": "valueInUSD",
71
+ "type": "string"
72
+ },
73
+ {
74
+ "name": "validatorIndex",
75
+ "baseName": "validatorIndex",
76
+ "type": "number"
77
+ },
78
+ {
79
+ "name": "relayTag",
80
+ "baseName": "relayTag",
81
+ "type": "string"
82
+ }
83
+ ];
@@ -21,11 +21,13 @@ export * from './exitEstimateSeller';
21
21
  export * from './exitProposal';
22
22
  export * from './generateApiKeyRequest';
23
23
  export * from './getMarketplaceMetadata200Response';
24
+ export * from './getSmartContractMEVRewards200Response';
24
25
  export * from './getSmartContractMinedBlocks200Response';
25
26
  export * from './getSmartContractTransactions200Response';
26
27
  export * from './getWithdrawalsResponse';
27
28
  export * from './internalTransaction';
28
29
  export * from './listAllRFQsForFacilitator200Response';
30
+ export * from './mEVReward';
29
31
  export * from './minedBlock';
30
32
  export * from './presignedExitKey';
31
33
  export * from './presignedExitKeyMessage';
@@ -60,11 +60,13 @@ __exportStar(require("./exitEstimateSeller"), exports);
60
60
  __exportStar(require("./exitProposal"), exports);
61
61
  __exportStar(require("./generateApiKeyRequest"), exports);
62
62
  __exportStar(require("./getMarketplaceMetadata200Response"), exports);
63
+ __exportStar(require("./getSmartContractMEVRewards200Response"), exports);
63
64
  __exportStar(require("./getSmartContractMinedBlocks200Response"), exports);
64
65
  __exportStar(require("./getSmartContractTransactions200Response"), exports);
65
66
  __exportStar(require("./getWithdrawalsResponse"), exports);
66
67
  __exportStar(require("./internalTransaction"), exports);
67
68
  __exportStar(require("./listAllRFQsForFacilitator200Response"), exports);
69
+ __exportStar(require("./mEVReward"), exports);
68
70
  __exportStar(require("./minedBlock"), exports);
69
71
  __exportStar(require("./presignedExitKey"), exports);
70
72
  __exportStar(require("./presignedExitKeyMessage"), exports);
@@ -145,11 +147,13 @@ const exitEstimateSeller_1 = require("./exitEstimateSeller");
145
147
  const exitProposal_1 = require("./exitProposal");
146
148
  const generateApiKeyRequest_1 = require("./generateApiKeyRequest");
147
149
  const getMarketplaceMetadata200Response_1 = require("./getMarketplaceMetadata200Response");
150
+ const getSmartContractMEVRewards200Response_1 = require("./getSmartContractMEVRewards200Response");
148
151
  const getSmartContractMinedBlocks200Response_1 = require("./getSmartContractMinedBlocks200Response");
149
152
  const getSmartContractTransactions200Response_1 = require("./getSmartContractTransactions200Response");
150
153
  const getWithdrawalsResponse_1 = require("./getWithdrawalsResponse");
151
154
  const internalTransaction_1 = require("./internalTransaction");
152
155
  const listAllRFQsForFacilitator200Response_1 = require("./listAllRFQsForFacilitator200Response");
156
+ const mEVReward_1 = require("./mEVReward");
153
157
  const minedBlock_1 = require("./minedBlock");
154
158
  const presignedExitKey_1 = require("./presignedExitKey");
155
159
  const presignedExitKeyMessage_1 = require("./presignedExitKeyMessage");
@@ -244,11 +248,13 @@ let typeMap = {
244
248
  "ExitProposal": exitProposal_1.ExitProposal,
245
249
  "GenerateApiKeyRequest": generateApiKeyRequest_1.GenerateApiKeyRequest,
246
250
  "GetMarketplaceMetadata200Response": getMarketplaceMetadata200Response_1.GetMarketplaceMetadata200Response,
251
+ "GetSmartContractMEVRewards200Response": getSmartContractMEVRewards200Response_1.GetSmartContractMEVRewards200Response,
247
252
  "GetSmartContractMinedBlocks200Response": getSmartContractMinedBlocks200Response_1.GetSmartContractMinedBlocks200Response,
248
253
  "GetSmartContractTransactions200Response": getSmartContractTransactions200Response_1.GetSmartContractTransactions200Response,
249
254
  "GetWithdrawalsResponse": getWithdrawalsResponse_1.GetWithdrawalsResponse,
250
255
  "InternalTransaction": internalTransaction_1.InternalTransaction,
251
256
  "ListAllRFQsForFacilitator200Response": listAllRFQsForFacilitator200Response_1.ListAllRFQsForFacilitator200Response,
257
+ "MEVReward": mEVReward_1.MEVReward,
252
258
  "MinedBlock": minedBlock_1.MinedBlock,
253
259
  "PresignedExitKey": presignedExitKey_1.PresignedExitKey,
254
260
  "PresignedExitKeyMessage": presignedExitKeyMessage_1.PresignedExitKeyMessage,
@@ -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
+
@@ -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/models.ts CHANGED
@@ -24,11 +24,13 @@ export * from './exitEstimateSeller';
24
24
  export * from './exitProposal';
25
25
  export * from './generateApiKeyRequest';
26
26
  export * from './getMarketplaceMetadata200Response';
27
+ export * from './getSmartContractMEVRewards200Response';
27
28
  export * from './getSmartContractMinedBlocks200Response';
28
29
  export * from './getSmartContractTransactions200Response';
29
30
  export * from './getWithdrawalsResponse';
30
31
  export * from './internalTransaction';
31
32
  export * from './listAllRFQsForFacilitator200Response';
33
+ export * from './mEVReward';
32
34
  export * from './minedBlock';
33
35
  export * from './presignedExitKey';
34
36
  export * from './presignedExitKeyMessage';
@@ -168,6 +170,9 @@ import { GenerateApiKeyRequest } from './generateApiKeyRequest';
168
170
  import { GetMarketplaceMetadata200Response } from './getMarketplaceMetadata200Response';
169
171
 
170
172
 
173
+ import { GetSmartContractMEVRewards200Response } from './getSmartContractMEVRewards200Response';
174
+
175
+
171
176
  import { GetSmartContractMinedBlocks200Response } from './getSmartContractMinedBlocks200Response';
172
177
 
173
178
 
@@ -183,6 +188,9 @@ import { InternalTransaction } from './internalTransaction';
183
188
  import { ListAllRFQsForFacilitator200Response } from './listAllRFQsForFacilitator200Response';
184
189
 
185
190
 
191
+ import { MEVReward } from './mEVReward';
192
+
193
+
186
194
  import { MinedBlock } from './minedBlock';
187
195
 
188
196
 
@@ -403,11 +411,13 @@ let typeMap: {[index: string]: any} = {
403
411
  "ExitProposal": ExitProposal,
404
412
  "GenerateApiKeyRequest": GenerateApiKeyRequest,
405
413
  "GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
414
+ "GetSmartContractMEVRewards200Response": GetSmartContractMEVRewards200Response,
406
415
  "GetSmartContractMinedBlocks200Response": GetSmartContractMinedBlocks200Response,
407
416
  "GetSmartContractTransactions200Response": GetSmartContractTransactions200Response,
408
417
  "GetWithdrawalsResponse": GetWithdrawalsResponse,
409
418
  "InternalTransaction": InternalTransaction,
410
419
  "ListAllRFQsForFacilitator200Response": ListAllRFQsForFacilitator200Response,
420
+ "MEVReward": MEVReward,
411
421
  "MinedBlock": MinedBlock,
412
422
  "PresignedExitKey": PresignedExitKey,
413
423
  "PresignedExitKeyMessage": PresignedExitKeyMessage,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@northstake/northstakeapi",
3
- "version": "1.0.37",
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
  }