@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.
- package/.openapi-generator/FILES +3 -1
- package/.openapi-generator/VERSION +1 -1
- package/api/smartContractsApi.ts +111 -0
- package/api.ts +3 -1
- package/dist/api/smartContractsApi.d.ts +25 -0
- package/dist/api/smartContractsApi.js +83 -0
- package/dist/api.d.ts +3 -1
- package/dist/api.js +3 -1
- package/dist/model/{fiatAmount.d.ts → getSmartContractMEVRewards200Response.d.ts} +9 -17
- package/dist/model/getSmartContractMEVRewards200Response.js +43 -0
- package/dist/model/internalTransaction.d.ts +4 -2
- package/dist/model/internalTransaction.js +1 -1
- package/dist/model/mEVReward.d.ts +45 -0
- package/dist/model/mEVReward.js +83 -0
- package/dist/model/minedBlock.d.ts +4 -2
- package/dist/model/minedBlock.js +1 -1
- package/dist/model/models.d.ts +3 -1
- package/dist/model/models.js +9 -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/getSmartContractMEVRewards200Response.ts +59 -0
- package/model/internalTransaction.ts +5 -3
- package/model/mEVReward.ts +106 -0
- package/model/minedBlock.ts +5 -3
- package/model/models.ts +15 -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 +3 -3
- package/dist/model/fiatAmount.js +0 -43
- package/model/fiatAmount.ts +0 -68
package/.openapi-generator/FILES
CHANGED
|
@@ -32,14 +32,15 @@ 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
|
|
37
|
+
model/getSmartContractMEVRewards200Response.ts
|
|
38
38
|
model/getSmartContractMinedBlocks200Response.ts
|
|
39
39
|
model/getSmartContractTransactions200Response.ts
|
|
40
40
|
model/getWithdrawalsResponse.ts
|
|
41
41
|
model/internalTransaction.ts
|
|
42
42
|
model/listAllRFQsForFacilitator200Response.ts
|
|
43
|
+
model/mEVReward.ts
|
|
43
44
|
model/minedBlock.ts
|
|
44
45
|
model/models.ts
|
|
45
46
|
model/presignedExitKey.ts
|
|
@@ -98,4 +99,5 @@ model/webhookPayloadRFQWithdrawalClaimable.ts
|
|
|
98
99
|
model/webhookPayloadRFQWithdrawalClaimableDetails.ts
|
|
99
100
|
model/webhookRegistration.ts
|
|
100
101
|
model/webhookRegistrationDetails.ts
|
|
102
|
+
model/withdrawalClaimable.ts
|
|
101
103
|
model/withdrawalRecipientSettlement.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.13.0-SNAPSHOT
|
package/api/smartContractsApi.ts
CHANGED
|
@@ -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
|
@@ -29,14 +29,15 @@ 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';
|
|
34
|
+
export * from './model/./getSmartContractMEVRewards200Response';
|
|
35
35
|
export * from './model/./getSmartContractMinedBlocks200Response';
|
|
36
36
|
export * from './model/./getSmartContractTransactions200Response';
|
|
37
37
|
export * from './model/./getWithdrawalsResponse';
|
|
38
38
|
export * from './model/./internalTransaction';
|
|
39
39
|
export * from './model/./listAllRFQsForFacilitator200Response';
|
|
40
|
+
export * from './model/./mEVReward';
|
|
40
41
|
export * from './model/./minedBlock';
|
|
41
42
|
export * from './model/./presignedExitKey';
|
|
42
43
|
export * from './model/./presignedExitKeyMessage';
|
|
@@ -94,6 +95,7 @@ export * from './model/./webhookPayloadRFQWithdrawalClaimable';
|
|
|
94
95
|
export * from './model/./webhookPayloadRFQWithdrawalClaimableDetails';
|
|
95
96
|
export * from './model/./webhookRegistration';
|
|
96
97
|
export * from './model/./webhookRegistrationDetails';
|
|
98
|
+
export * from './model/./withdrawalClaimable';
|
|
97
99
|
export * from './model/./withdrawalRecipientSettlement';
|
|
98
100
|
|
|
99
101
|
export class NorthstakeApi {
|
|
@@ -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
|
@@ -27,14 +27,15 @@ 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';
|
|
32
|
+
export * from './model/./getSmartContractMEVRewards200Response';
|
|
33
33
|
export * from './model/./getSmartContractMinedBlocks200Response';
|
|
34
34
|
export * from './model/./getSmartContractTransactions200Response';
|
|
35
35
|
export * from './model/./getWithdrawalsResponse';
|
|
36
36
|
export * from './model/./internalTransaction';
|
|
37
37
|
export * from './model/./listAllRFQsForFacilitator200Response';
|
|
38
|
+
export * from './model/./mEVReward';
|
|
38
39
|
export * from './model/./minedBlock';
|
|
39
40
|
export * from './model/./presignedExitKey';
|
|
40
41
|
export * from './model/./presignedExitKeyMessage';
|
|
@@ -92,6 +93,7 @@ export * from './model/./webhookPayloadRFQWithdrawalClaimable';
|
|
|
92
93
|
export * from './model/./webhookPayloadRFQWithdrawalClaimableDetails';
|
|
93
94
|
export * from './model/./webhookRegistration';
|
|
94
95
|
export * from './model/./webhookRegistrationDetails';
|
|
96
|
+
export * from './model/./withdrawalClaimable';
|
|
95
97
|
export * from './model/./withdrawalRecipientSettlement';
|
|
96
98
|
export declare class NorthstakeApi {
|
|
97
99
|
constructor(apiKey: string, privateKey: string, basePath?: string);
|
package/dist/api.js
CHANGED
|
@@ -46,14 +46,15 @@ __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);
|
|
51
|
+
__exportStar(require("./model/./getSmartContractMEVRewards200Response"), exports);
|
|
52
52
|
__exportStar(require("./model/./getSmartContractMinedBlocks200Response"), exports);
|
|
53
53
|
__exportStar(require("./model/./getSmartContractTransactions200Response"), exports);
|
|
54
54
|
__exportStar(require("./model/./getWithdrawalsResponse"), exports);
|
|
55
55
|
__exportStar(require("./model/./internalTransaction"), exports);
|
|
56
56
|
__exportStar(require("./model/./listAllRFQsForFacilitator200Response"), exports);
|
|
57
|
+
__exportStar(require("./model/./mEVReward"), exports);
|
|
57
58
|
__exportStar(require("./model/./minedBlock"), exports);
|
|
58
59
|
__exportStar(require("./model/./presignedExitKey"), exports);
|
|
59
60
|
__exportStar(require("./model/./presignedExitKeyMessage"), exports);
|
|
@@ -111,6 +112,7 @@ __exportStar(require("./model/./webhookPayloadRFQWithdrawalClaimable"), exports)
|
|
|
111
112
|
__exportStar(require("./model/./webhookPayloadRFQWithdrawalClaimableDetails"), exports);
|
|
112
113
|
__exportStar(require("./model/./webhookRegistration"), exports);
|
|
113
114
|
__exportStar(require("./model/./webhookRegistrationDetails"), exports);
|
|
115
|
+
__exportStar(require("./model/./withdrawalClaimable"), exports);
|
|
114
116
|
__exportStar(require("./model/./withdrawalRecipientSettlement"), exports);
|
|
115
117
|
class NorthstakeApi {
|
|
116
118
|
constructor(apiKey, privateKey, basePath = "https://api.northstake.dk/v1") {
|
|
@@ -9,23 +9,21 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
import { MEVReward } from './mEVReward';
|
|
13
|
+
export declare class GetSmartContractMEVRewards200Response {
|
|
14
|
+
'mevRewards': Array<MEVReward>;
|
|
13
15
|
/**
|
|
14
|
-
*
|
|
16
|
+
* Total number of MEV rewards
|
|
15
17
|
*/
|
|
16
|
-
'
|
|
18
|
+
'total': number;
|
|
17
19
|
/**
|
|
18
|
-
*
|
|
20
|
+
* Total number of pages
|
|
19
21
|
*/
|
|
20
|
-
'
|
|
22
|
+
'pages': number;
|
|
21
23
|
/**
|
|
22
|
-
*
|
|
24
|
+
* Current page number
|
|
23
25
|
*/
|
|
24
|
-
'
|
|
25
|
-
/**
|
|
26
|
-
* Timestamp when the exchange rate was captured
|
|
27
|
-
*/
|
|
28
|
-
'rateTimestamp': Date;
|
|
26
|
+
'currentPage': number;
|
|
29
27
|
static discriminator: string | undefined;
|
|
30
28
|
static attributeTypeMap: Array<{
|
|
31
29
|
name: string;
|
|
@@ -38,9 +36,3 @@ export declare class FiatAmount {
|
|
|
38
36
|
type: string;
|
|
39
37
|
}[];
|
|
40
38
|
}
|
|
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.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
|
+
];
|
|
@@ -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<{
|
|
@@ -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
|
+
];
|
|
@@ -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;
|