@northstake/northstakeapi 1.0.7 → 1.0.9
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 +25 -15
- package/api/apis.ts +17 -9
- package/api/northstake.ts +47 -23
- package/api/portfolioApi.ts +4 -4
- package/api/stakingPartnerManagedUsersApi.ts +0 -279
- package/api/stakingPartnerManagedUsersDepositAddressesApi.ts +167 -0
- package/api/stakingPartnerManagedUsersPortfolioApi.ts +167 -0
- package/api/stakingPartnerManagedUsersStatsApi.ts +167 -0
- package/api/stakingPartnerManagedUsersValidatorsApi.ts +167 -0
- package/api/statsApi.ts +0 -73
- package/api/{rfqMarketPlaceBuyersApi.ts → validatorMarketplaceBuyersApi.ts} +34 -21
- package/api/{rfqMarketPlaceSellersApi.ts → validatorMarketplaceSellersApi.ts} +69 -60
- package/api/{rfqMarketPlaceWebhooksApi.ts → validatorMarketplaceWebhooksApi.ts} +7 -7
- package/api/validatorsApi.ts +172 -0
- package/dist/api/apis.d.ts +17 -9
- package/dist/api/apis.js +17 -9
- package/dist/api/northstake.d.ts +16 -8
- package/dist/api/northstake.js +32 -16
- package/dist/api/portfolioApi.d.ts +2 -2
- package/dist/api/portfolioApi.js +1 -1
- package/dist/api/stakingPartnerManagedUsersApi.d.ts +0 -55
- package/dist/api/stakingPartnerManagedUsersApi.js +0 -264
- package/dist/api/stakingPartnerManagedUsersDepositAddressesApi.d.ts +53 -0
- package/dist/api/stakingPartnerManagedUsersDepositAddressesApi.js +146 -0
- package/dist/api/stakingPartnerManagedUsersPortfolioApi.d.ts +53 -0
- package/dist/api/stakingPartnerManagedUsersPortfolioApi.js +146 -0
- package/dist/api/stakingPartnerManagedUsersStatsApi.d.ts +53 -0
- package/dist/api/stakingPartnerManagedUsersStatsApi.js +146 -0
- package/dist/api/{stakingPartnerValidatorKeysApi.d.ts → stakingPartnerManagedUsersValidatorsApi.d.ts} +5 -31
- package/dist/api/stakingPartnerManagedUsersValidatorsApi.js +146 -0
- package/dist/api/statsApi.d.ts +0 -15
- package/dist/api/statsApi.js +0 -68
- package/dist/api/{rfqMarketPlaceBuyersApi.d.ts → validatorMarketplaceBuyersApi.d.ts} +12 -10
- package/dist/api/{rfqMarketPlaceBuyersApi.js → validatorMarketplaceBuyersApi.js} +36 -24
- package/dist/api/{rfqMarketPlaceSellersApi.d.ts → validatorMarketplaceSellersApi.d.ts} +28 -26
- package/dist/api/{rfqMarketPlaceSellersApi.js → validatorMarketplaceSellersApi.js} +64 -57
- package/dist/api/{rfqMarketPlaceWebhooksApi.d.ts → validatorMarketplaceWebhooksApi.d.ts} +2 -2
- package/dist/api/{rfqMarketPlaceWebhooksApi.js → validatorMarketplaceWebhooksApi.js} +11 -11
- package/dist/api/validatorsApi.d.ts +56 -0
- package/dist/api/validatorsApi.js +148 -0
- package/dist/model/{createRFQDocumentForSellerRequest.d.ts → createRFQDocumentRequest.d.ts} +1 -1
- package/dist/model/{createRFQDocumentForSellerRequest.js → createRFQDocumentRequest.js} +6 -6
- package/dist/model/{registerRewardRecipientSettlementRequestInner.d.ts → exitEstimateBase.d.ts} +3 -3
- package/dist/model/exitEstimateBase.js +33 -0
- package/dist/model/{exitEstimate.d.ts → exitEstimateSeller.d.ts} +2 -2
- package/dist/model/{exitEstimate.js → exitEstimateSeller.js} +10 -10
- package/dist/model/models.d.ts +17 -11
- package/dist/model/models.js +51 -33
- package/dist/model/{getRewardsStatistics200ResponseInner.d.ts → portfolioEntity.d.ts} +7 -6
- package/dist/model/portfolioEntity.js +38 -0
- package/dist/model/rFQDocumentBase.d.ts +6 -3
- package/dist/model/rFQDocumentBase.js +8 -8
- package/dist/model/rFQDocumentBuyer.d.ts +7 -4
- package/dist/model/rFQDocumentBuyer.js +8 -8
- package/dist/model/{rFQDocumentBaseValidatorsInner.d.ts → rFQDocumentBuyerAllOfValidators.d.ts} +3 -3
- package/dist/model/{rFQDocumentBaseValidatorsInner.js → rFQDocumentBuyerAllOfValidators.js} +9 -9
- package/dist/model/rFQDocumentBuyerStatusFilterEnum.d.ts +19 -0
- package/dist/model/rFQDocumentBuyerStatusFilterEnum.js +23 -0
- package/dist/model/rFQDocumentSeller.d.ts +8 -4
- package/dist/model/rFQDocumentSeller.js +18 -13
- package/dist/model/rFQDocumentSellerAllOfValidators.d.ts +28 -0
- package/dist/model/rFQDocumentSellerAllOfValidators.js +38 -0
- package/dist/model/rFQDocumentSellerStatusFilterEnum.d.ts +20 -0
- package/dist/model/rFQDocumentSellerStatusFilterEnum.js +24 -0
- package/dist/model/rFQDocumentStatusEnum.d.ts +17 -0
- package/dist/model/rFQDocumentStatusEnum.js +21 -0
- package/dist/model/{acceptBidForRFQDocumentRequest.d.ts → rejectQuoteForRFQDocumentRequest.d.ts} +1 -1
- package/dist/model/{acceptBidForRFQDocumentRequest.js → rejectQuoteForRFQDocumentRequest.js} +6 -6
- package/dist/model/settlementStepEscrowPayment.d.ts +1 -0
- package/dist/model/settlementStepEscrowPayment.js +5 -0
- package/dist/model/settlementStepEscrowReleased.d.ts +2 -0
- package/dist/model/settlementStepEscrowReleased.js +10 -0
- package/dist/model/{settlementStepRewardRecipientSettlementInner.d.ts → settlementStepWithdrawalRecipientSettlement.d.ts} +1 -2
- package/dist/model/{settlementStepRewardRecipientSettlementInner.js → settlementStepWithdrawalRecipientSettlement.js} +6 -11
- package/dist/model/settlementSteps.d.ts +2 -2
- package/dist/model/settlementSteps.js +3 -3
- package/dist/model/stakeStep.d.ts +1 -1
- package/dist/model/stepStatus.d.ts +1 -1
- package/dist/model/stepStatus.js +1 -1
- package/dist/model/submitQuoteForRFQDocumentRequest.d.ts +25 -0
- package/dist/model/submitQuoteForRFQDocumentRequest.js +28 -0
- package/dist/model/tokenEnum.d.ts +1 -3
- package/dist/model/tokenEnum.js +1 -3
- package/dist/model/unstakeStep.d.ts +1 -1
- package/dist/model/unstakeStepType.d.ts +1 -1
- package/dist/model/unstakeStepType.js +1 -1
- package/dist/model/validatorContractTypeEnum.d.ts +15 -0
- package/dist/model/validatorContractTypeEnum.js +19 -0
- package/dist/model/validatorInfo.d.ts +6 -1
- package/dist/model/validatorInfo.js +17 -2
- package/dist/model/{portfolioTableRow.d.ts → validatorInfoValidatorType.d.ts} +6 -10
- package/dist/model/validatorInfoValidatorType.js +33 -0
- package/dist/model/validatorInfoValidatorTypeContract.d.ts +29 -0
- package/dist/model/validatorInfoValidatorTypeContract.js +33 -0
- package/dist/model/validatorKeyHolderEnum.d.ts +15 -0
- package/dist/model/validatorKeyHolderEnum.js +19 -0
- package/dist/model/webhookPayloadRFQAvailable.d.ts +2 -2
- package/dist/model/webhookPayloadRFQAvailable.js +1 -1
- package/dist/model/webhookPayloadRFQEscrowReleasedDetails.d.ts +1 -0
- package/dist/model/webhookPayloadRFQEscrowReleasedDetails.js +5 -0
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.d.ts +2 -2
- package/dist/model/webhookPayloadRFQValidatorWithdrawalChange.js +1 -1
- package/dist/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.d.ts → webhookPayloadRFQValidatorWithdrawalChangeDetails.d.ts} +1 -2
- package/dist/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.js → webhookPayloadRFQValidatorWithdrawalChangeDetails.js} +6 -11
- package/dist/model/withdrawalStep.d.ts +1 -1
- package/dist/model/withdrawalStepType.d.ts +1 -1
- package/dist/model/withdrawalStepType.js +1 -1
- package/model/{createRFQDocumentForSellerRequest.ts → createRFQDocumentRequest.ts} +2 -2
- package/model/exitEstimateBase.ts +37 -0
- package/model/{exitEstimate.ts → exitEstimateSeller.ts} +7 -7
- package/model/models.ts +51 -33
- package/model/portfolioEntity.ts +46 -0
- package/model/rFQDocumentBase.ts +14 -11
- package/model/rFQDocumentBuyer.ts +15 -12
- package/model/{rFQDocumentBaseValidatorsInner.ts → rFQDocumentBuyerAllOfValidators.ts} +7 -7
- package/model/rFQDocumentBuyerStatusFilterEnum.ts +22 -0
- package/model/rFQDocumentSeller.ts +26 -17
- package/model/{registerRewardRecipientSettlementRequestInner.ts → rFQDocumentSellerAllOfValidators.ts} +15 -8
- package/model/rFQDocumentSellerStatusFilterEnum.ts +23 -0
- package/model/rFQDocumentStatusEnum.ts +20 -0
- package/model/{acceptBidForRFQDocumentRequest.ts → rejectQuoteForRFQDocumentRequest.ts} +2 -2
- package/model/settlementStepEscrowPayment.ts +6 -0
- package/model/settlementStepEscrowReleased.ts +12 -0
- package/model/{settlementStepRewardRecipientSettlementInner.ts → settlementStepWithdrawalRecipientSettlement.ts} +2 -8
- package/model/settlementSteps.ts +5 -5
- package/model/stakeStep.ts +1 -1
- package/model/stepStatus.ts +1 -1
- package/model/{rFQMarketPlaceMetadata.ts → submitQuoteForRFQDocumentRequest.ts} +5 -17
- package/model/tokenEnum.ts +1 -3
- package/model/unstakeStep.ts +1 -1
- package/model/unstakeStepType.ts +1 -1
- package/model/validatorContractTypeEnum.ts +18 -0
- package/model/validatorInfo.ts +23 -3
- package/model/validatorInfoValidatorType.ts +41 -0
- package/model/validatorInfoValidatorTypeContract.ts +40 -0
- package/model/validatorKeyHolderEnum.ts +18 -0
- package/model/webhookPayloadRFQAvailable.ts +3 -3
- package/model/webhookPayloadRFQEscrowReleasedDetails.ts +6 -0
- package/model/webhookPayloadRFQValidatorWithdrawalChange.ts +3 -3
- package/model/{webhookPayloadRFQValidatorWithdrawalChangeDetailsInner.ts → webhookPayloadRFQValidatorWithdrawalChangeDetails.ts} +2 -8
- package/model/withdrawalStep.ts +1 -1
- package/model/withdrawalStepType.ts +1 -1
- package/package.json +1 -1
- package/api/stakingPartnerValidatorKeysApi.ts +0 -292
- package/dist/api/stakingPartnerValidatorKeysApi.js +0 -265
- package/dist/model/getRewardsStatistics200ResponseInner.js +0 -48
- package/dist/model/getValidatorKeys200ResponseInner.d.ts +0 -40
- package/dist/model/getValidatorKeys200ResponseInner.js +0 -43
- package/dist/model/portfolioTableRow.js +0 -58
- package/dist/model/rFQMarketPlaceMetadata.d.ts +0 -32
- package/dist/model/rFQMarketPlaceMetadata.js +0 -33
- package/dist/model/registerRewardRecipientSettlementRequestInner.js +0 -33
- package/model/getRewardsStatistics200ResponseInner.ts +0 -55
- package/model/getValidatorKeys200ResponseInner.ts +0 -61
- package/model/portfolioTableRow.ts +0 -70
|
@@ -1,265 +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
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.StakingPartnerValidatorKeysApi = exports.StakingPartnerValidatorKeysApiApiKeys = void 0;
|
|
18
|
-
const request_1 = __importDefault(require("request"));
|
|
19
|
-
const models_1 = require("../model/models");
|
|
20
|
-
const models_2 = require("../model/models");
|
|
21
|
-
const apis_1 = require("./apis");
|
|
22
|
-
let defaultBasePath = '/v1';
|
|
23
|
-
// ===============================================
|
|
24
|
-
// This file is autogenerated - Please do not edit
|
|
25
|
-
// ===============================================
|
|
26
|
-
var StakingPartnerValidatorKeysApiApiKeys;
|
|
27
|
-
(function (StakingPartnerValidatorKeysApiApiKeys) {
|
|
28
|
-
StakingPartnerValidatorKeysApiApiKeys[StakingPartnerValidatorKeysApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
|
|
29
|
-
})(StakingPartnerValidatorKeysApiApiKeys || (exports.StakingPartnerValidatorKeysApiApiKeys = StakingPartnerValidatorKeysApiApiKeys = {}));
|
|
30
|
-
class StakingPartnerValidatorKeysApi {
|
|
31
|
-
constructor(basePathOrUsername, password, basePath) {
|
|
32
|
-
this._basePath = defaultBasePath;
|
|
33
|
-
this._defaultHeaders = {};
|
|
34
|
-
this._useQuerystring = false;
|
|
35
|
-
this.authentications = {
|
|
36
|
-
'default': new models_2.JWTAuth('your_api_key', 'your_private_key'),
|
|
37
|
-
'bearerTokenAuth': new models_2.HttpBearerAuth(),
|
|
38
|
-
'ApiKeyAuth': new models_2.ApiKeyAuth('header', 'x-api-key'),
|
|
39
|
-
};
|
|
40
|
-
this.interceptors = [];
|
|
41
|
-
if (password) {
|
|
42
|
-
if (basePath) {
|
|
43
|
-
this.basePath = basePath;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
if (basePathOrUsername) {
|
|
48
|
-
this.basePath = basePathOrUsername;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
set useQuerystring(value) {
|
|
53
|
-
this._useQuerystring = value;
|
|
54
|
-
}
|
|
55
|
-
set basePath(basePath) {
|
|
56
|
-
this._basePath = basePath;
|
|
57
|
-
}
|
|
58
|
-
set defaultHeaders(defaultHeaders) {
|
|
59
|
-
this._defaultHeaders = defaultHeaders;
|
|
60
|
-
}
|
|
61
|
-
get defaultHeaders() {
|
|
62
|
-
return this._defaultHeaders;
|
|
63
|
-
}
|
|
64
|
-
get basePath() {
|
|
65
|
-
return this._basePath;
|
|
66
|
-
}
|
|
67
|
-
setDefaultAuthentication(auth) {
|
|
68
|
-
this.authentications.default = auth;
|
|
69
|
-
}
|
|
70
|
-
setApiKey(key, value) {
|
|
71
|
-
this.authentications[StakingPartnerValidatorKeysApiApiKeys[key]].apiKey = value;
|
|
72
|
-
}
|
|
73
|
-
set accessToken(accessToken) {
|
|
74
|
-
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
75
|
-
}
|
|
76
|
-
addInterceptor(interceptor) {
|
|
77
|
-
this.interceptors.push(interceptor);
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @summary Submit a pregenerated/external validator key to Northstake for non-custodial staking
|
|
82
|
-
* @param validatorKey
|
|
83
|
-
*/
|
|
84
|
-
async createValidatorKey(validatorKey, options = { headers: {} }) {
|
|
85
|
-
const localVarPath = this.basePath + '/stakingPartner/validatorKeys/';
|
|
86
|
-
let localVarQueryParameters = {};
|
|
87
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
88
|
-
const produces = ['application/json'];
|
|
89
|
-
// give precedence to 'application/json'
|
|
90
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
91
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
95
|
-
}
|
|
96
|
-
let localVarFormParams = {};
|
|
97
|
-
// verify required parameter 'validatorKey' is not null or undefined
|
|
98
|
-
if (validatorKey === null || validatorKey === undefined) {
|
|
99
|
-
throw new Error('Required parameter validatorKey was null or undefined when calling createValidatorKey.');
|
|
100
|
-
}
|
|
101
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
102
|
-
let localVarUseFormData = false;
|
|
103
|
-
let localVarRequestOptions = {
|
|
104
|
-
method: 'POST',
|
|
105
|
-
qs: localVarQueryParameters,
|
|
106
|
-
headers: localVarHeaderParams,
|
|
107
|
-
uri: localVarPath,
|
|
108
|
-
useQuerystring: this._useQuerystring,
|
|
109
|
-
json: true,
|
|
110
|
-
body: models_1.ObjectSerializer.serialize(validatorKey, "ValidatorKey")
|
|
111
|
-
};
|
|
112
|
-
let authenticationPromise = Promise.resolve();
|
|
113
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
114
|
-
let interceptorPromise = authenticationPromise;
|
|
115
|
-
for (const interceptor of this.interceptors) {
|
|
116
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
117
|
-
}
|
|
118
|
-
return interceptorPromise.then(() => {
|
|
119
|
-
if (Object.keys(localVarFormParams).length) {
|
|
120
|
-
if (localVarUseFormData) {
|
|
121
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
return new Promise((resolve, reject) => {
|
|
128
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
129
|
-
if (error) {
|
|
130
|
-
reject(error);
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
134
|
-
resolve({ response: response, body: body });
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
});
|
|
141
|
-
});
|
|
142
|
-
});
|
|
143
|
-
}
|
|
144
|
-
/**
|
|
145
|
-
*
|
|
146
|
-
* @summary Get all validators associated with the staking partner
|
|
147
|
-
*/
|
|
148
|
-
async getAllValidators(options = { headers: {} }) {
|
|
149
|
-
const localVarPath = this.basePath + '/stakingPartner/validators';
|
|
150
|
-
let localVarQueryParameters = {};
|
|
151
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
152
|
-
const produces = ['application/json'];
|
|
153
|
-
// give precedence to 'application/json'
|
|
154
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
155
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
159
|
-
}
|
|
160
|
-
let localVarFormParams = {};
|
|
161
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
162
|
-
let localVarUseFormData = false;
|
|
163
|
-
let localVarRequestOptions = {
|
|
164
|
-
method: 'GET',
|
|
165
|
-
qs: localVarQueryParameters,
|
|
166
|
-
headers: localVarHeaderParams,
|
|
167
|
-
uri: localVarPath,
|
|
168
|
-
useQuerystring: this._useQuerystring,
|
|
169
|
-
json: true,
|
|
170
|
-
};
|
|
171
|
-
let authenticationPromise = Promise.resolve();
|
|
172
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
173
|
-
let interceptorPromise = authenticationPromise;
|
|
174
|
-
for (const interceptor of this.interceptors) {
|
|
175
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
176
|
-
}
|
|
177
|
-
return interceptorPromise.then(() => {
|
|
178
|
-
if (Object.keys(localVarFormParams).length) {
|
|
179
|
-
if (localVarUseFormData) {
|
|
180
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
return new Promise((resolve, reject) => {
|
|
187
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
188
|
-
if (error) {
|
|
189
|
-
reject(error);
|
|
190
|
-
}
|
|
191
|
-
else {
|
|
192
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
193
|
-
body = models_1.ObjectSerializer.deserialize(body, "Array<ValidatorInfo>");
|
|
194
|
-
resolve({ response: response, body: body });
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
});
|
|
201
|
-
});
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
*
|
|
206
|
-
* @summary Get a list of pregenerated/external validator keys held by Northstake for the stakingPartner
|
|
207
|
-
*/
|
|
208
|
-
async getValidatorKeys(options = { headers: {} }) {
|
|
209
|
-
const localVarPath = this.basePath + '/stakingPartner/validatorKeys/';
|
|
210
|
-
let localVarQueryParameters = {};
|
|
211
|
-
let localVarHeaderParams = Object.assign({}, this._defaultHeaders);
|
|
212
|
-
const produces = ['application/json'];
|
|
213
|
-
// give precedence to 'application/json'
|
|
214
|
-
if (produces.indexOf('application/json') >= 0) {
|
|
215
|
-
localVarHeaderParams.Accept = 'application/json';
|
|
216
|
-
}
|
|
217
|
-
else {
|
|
218
|
-
localVarHeaderParams.Accept = produces.join(',');
|
|
219
|
-
}
|
|
220
|
-
let localVarFormParams = {};
|
|
221
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
222
|
-
let localVarUseFormData = false;
|
|
223
|
-
let localVarRequestOptions = {
|
|
224
|
-
method: 'GET',
|
|
225
|
-
qs: localVarQueryParameters,
|
|
226
|
-
headers: localVarHeaderParams,
|
|
227
|
-
uri: localVarPath,
|
|
228
|
-
useQuerystring: this._useQuerystring,
|
|
229
|
-
json: true,
|
|
230
|
-
};
|
|
231
|
-
let authenticationPromise = Promise.resolve();
|
|
232
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
233
|
-
let interceptorPromise = authenticationPromise;
|
|
234
|
-
for (const interceptor of this.interceptors) {
|
|
235
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
236
|
-
}
|
|
237
|
-
return interceptorPromise.then(() => {
|
|
238
|
-
if (Object.keys(localVarFormParams).length) {
|
|
239
|
-
if (localVarUseFormData) {
|
|
240
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
241
|
-
}
|
|
242
|
-
else {
|
|
243
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
return new Promise((resolve, reject) => {
|
|
247
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
248
|
-
if (error) {
|
|
249
|
-
reject(error);
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
253
|
-
body = models_1.ObjectSerializer.deserialize(body, "Array<GetValidatorKeys200ResponseInner>");
|
|
254
|
-
resolve({ response: response, body: body });
|
|
255
|
-
}
|
|
256
|
-
else {
|
|
257
|
-
reject(new apis_1.HttpError(response, body, response.statusCode));
|
|
258
|
-
}
|
|
259
|
-
}
|
|
260
|
-
});
|
|
261
|
-
});
|
|
262
|
-
});
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
exports.StakingPartnerValidatorKeysApi = StakingPartnerValidatorKeysApi;
|
|
@@ -1,48 +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.GetRewardsStatistics200ResponseInner = void 0;
|
|
15
|
-
class GetRewardsStatistics200ResponseInner {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return GetRewardsStatistics200ResponseInner.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.GetRewardsStatistics200ResponseInner = GetRewardsStatistics200ResponseInner;
|
|
21
|
-
GetRewardsStatistics200ResponseInner.discriminator = undefined;
|
|
22
|
-
GetRewardsStatistics200ResponseInner.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "date",
|
|
25
|
-
"baseName": "date",
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "amount",
|
|
30
|
-
"baseName": "amount",
|
|
31
|
-
"type": "number"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "currency",
|
|
35
|
-
"baseName": "currency",
|
|
36
|
-
"type": "string"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "stakePool",
|
|
40
|
-
"baseName": "stakePool",
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "transactionId",
|
|
45
|
-
"baseName": "transactionId",
|
|
46
|
-
"type": "string"
|
|
47
|
-
}
|
|
48
|
-
];
|
|
@@ -1,40 +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
|
-
export declare class GetValidatorKeys200ResponseInner {
|
|
13
|
-
/**
|
|
14
|
-
* UUID of the validator key
|
|
15
|
-
*/
|
|
16
|
-
'uuid'?: string;
|
|
17
|
-
/**
|
|
18
|
-
* timestamp of key registration
|
|
19
|
-
*/
|
|
20
|
-
'timestamp'?: number;
|
|
21
|
-
/**
|
|
22
|
-
* ID of submitter entity (API key)
|
|
23
|
-
*/
|
|
24
|
-
'submitterId'?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Reference user id
|
|
27
|
-
*/
|
|
28
|
-
'referenceUserId'?: string;
|
|
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
|
-
}
|
|
@@ -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.GetValidatorKeys200ResponseInner = void 0;
|
|
15
|
-
class GetValidatorKeys200ResponseInner {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return GetValidatorKeys200ResponseInner.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.GetValidatorKeys200ResponseInner = GetValidatorKeys200ResponseInner;
|
|
21
|
-
GetValidatorKeys200ResponseInner.discriminator = undefined;
|
|
22
|
-
GetValidatorKeys200ResponseInner.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "uuid",
|
|
25
|
-
"baseName": "uuid",
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "timestamp",
|
|
30
|
-
"baseName": "timestamp",
|
|
31
|
-
"type": "number"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "submitterId",
|
|
35
|
-
"baseName": "submitter_id",
|
|
36
|
-
"type": "string"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "referenceUserId",
|
|
40
|
-
"baseName": "reference_user_id",
|
|
41
|
-
"type": "string"
|
|
42
|
-
}
|
|
43
|
-
];
|
|
@@ -1,58 +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.PortfolioTableRow = void 0;
|
|
15
|
-
class PortfolioTableRow {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return PortfolioTableRow.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.PortfolioTableRow = PortfolioTableRow;
|
|
21
|
-
PortfolioTableRow.discriminator = undefined;
|
|
22
|
-
PortfolioTableRow.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "token",
|
|
25
|
-
"baseName": "token",
|
|
26
|
-
"type": "TokenEnum"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "walletAddress",
|
|
30
|
-
"baseName": "walletAddress",
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "walletAmount",
|
|
35
|
-
"baseName": "walletAmount",
|
|
36
|
-
"type": "number"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "value",
|
|
40
|
-
"baseName": "value",
|
|
41
|
-
"type": "number"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "stakedAmount",
|
|
45
|
-
"baseName": "stakedAmount",
|
|
46
|
-
"type": "number"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "rewardsLastSevenDays",
|
|
50
|
-
"baseName": "rewardsLastSevenDays",
|
|
51
|
-
"type": "number"
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"name": "apr",
|
|
55
|
-
"baseName": "apr",
|
|
56
|
-
"type": "number"
|
|
57
|
-
}
|
|
58
|
-
];
|
|
@@ -1,32 +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
|
-
export declare class RFQMarketPlaceMetadata {
|
|
13
|
-
/**
|
|
14
|
-
* Total number of documents in the RFQ Marketplace
|
|
15
|
-
*/
|
|
16
|
-
'totalDocuments': number;
|
|
17
|
-
/**
|
|
18
|
-
* Number of documents with a \"submitted\" seller status
|
|
19
|
-
*/
|
|
20
|
-
'activeDocuments': number;
|
|
21
|
-
static discriminator: string | undefined;
|
|
22
|
-
static attributeTypeMap: Array<{
|
|
23
|
-
name: string;
|
|
24
|
-
baseName: string;
|
|
25
|
-
type: string;
|
|
26
|
-
}>;
|
|
27
|
-
static getAttributeTypeMap(): {
|
|
28
|
-
name: string;
|
|
29
|
-
baseName: string;
|
|
30
|
-
type: string;
|
|
31
|
-
}[];
|
|
32
|
-
}
|
|
@@ -1,33 +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.RFQMarketPlaceMetadata = void 0;
|
|
15
|
-
class RFQMarketPlaceMetadata {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return RFQMarketPlaceMetadata.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.RFQMarketPlaceMetadata = RFQMarketPlaceMetadata;
|
|
21
|
-
RFQMarketPlaceMetadata.discriminator = undefined;
|
|
22
|
-
RFQMarketPlaceMetadata.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "totalDocuments",
|
|
25
|
-
"baseName": "total_documents",
|
|
26
|
-
"type": "number"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "activeDocuments",
|
|
30
|
-
"baseName": "active_documents",
|
|
31
|
-
"type": "number"
|
|
32
|
-
}
|
|
33
|
-
];
|
|
@@ -1,33 +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.RegisterRewardRecipientSettlementRequestInner = void 0;
|
|
15
|
-
class RegisterRewardRecipientSettlementRequestInner {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return RegisterRewardRecipientSettlementRequestInner.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.RegisterRewardRecipientSettlementRequestInner = RegisterRewardRecipientSettlementRequestInner;
|
|
21
|
-
RegisterRewardRecipientSettlementRequestInner.discriminator = undefined;
|
|
22
|
-
RegisterRewardRecipientSettlementRequestInner.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "transactionHash",
|
|
25
|
-
"baseName": "transaction_hash",
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "validatorIndex",
|
|
30
|
-
"baseName": "validator_index",
|
|
31
|
-
"type": "number"
|
|
32
|
-
}
|
|
33
|
-
];
|
|
@@ -1,55 +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
|
-
import { RequestFile } from './models';
|
|
14
|
-
|
|
15
|
-
export class GetRewardsStatistics200ResponseInner {
|
|
16
|
-
'date'?: string;
|
|
17
|
-
'amount'?: number;
|
|
18
|
-
'currency'?: string;
|
|
19
|
-
'stakePool'?: string;
|
|
20
|
-
'transactionId'?: string;
|
|
21
|
-
|
|
22
|
-
static discriminator: string | undefined = undefined;
|
|
23
|
-
|
|
24
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
25
|
-
{
|
|
26
|
-
"name": "date",
|
|
27
|
-
"baseName": "date",
|
|
28
|
-
"type": "string"
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
"name": "amount",
|
|
32
|
-
"baseName": "amount",
|
|
33
|
-
"type": "number"
|
|
34
|
-
},
|
|
35
|
-
{
|
|
36
|
-
"name": "currency",
|
|
37
|
-
"baseName": "currency",
|
|
38
|
-
"type": "string"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "stakePool",
|
|
42
|
-
"baseName": "stakePool",
|
|
43
|
-
"type": "string"
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"name": "transactionId",
|
|
47
|
-
"baseName": "transactionId",
|
|
48
|
-
"type": "string"
|
|
49
|
-
} ];
|
|
50
|
-
|
|
51
|
-
static getAttributeTypeMap() {
|
|
52
|
-
return GetRewardsStatistics200ResponseInner.attributeTypeMap;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
@@ -1,61 +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
|
-
import { RequestFile } from './models';
|
|
14
|
-
|
|
15
|
-
export class GetValidatorKeys200ResponseInner {
|
|
16
|
-
/**
|
|
17
|
-
* UUID of the validator key
|
|
18
|
-
*/
|
|
19
|
-
'uuid'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* timestamp of key registration
|
|
22
|
-
*/
|
|
23
|
-
'timestamp'?: number;
|
|
24
|
-
/**
|
|
25
|
-
* ID of submitter entity (API key)
|
|
26
|
-
*/
|
|
27
|
-
'submitterId'?: string;
|
|
28
|
-
/**
|
|
29
|
-
* Reference user id
|
|
30
|
-
*/
|
|
31
|
-
'referenceUserId'?: string;
|
|
32
|
-
|
|
33
|
-
static discriminator: string | undefined = undefined;
|
|
34
|
-
|
|
35
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
36
|
-
{
|
|
37
|
-
"name": "uuid",
|
|
38
|
-
"baseName": "uuid",
|
|
39
|
-
"type": "string"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"name": "timestamp",
|
|
43
|
-
"baseName": "timestamp",
|
|
44
|
-
"type": "number"
|
|
45
|
-
},
|
|
46
|
-
{
|
|
47
|
-
"name": "submitterId",
|
|
48
|
-
"baseName": "submitter_id",
|
|
49
|
-
"type": "string"
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"name": "referenceUserId",
|
|
53
|
-
"baseName": "reference_user_id",
|
|
54
|
-
"type": "string"
|
|
55
|
-
} ];
|
|
56
|
-
|
|
57
|
-
static getAttributeTypeMap() {
|
|
58
|
-
return GetValidatorKeys200ResponseInner.attributeTypeMap;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|