@northstake/northstakeapi 1.0.24 → 1.0.26
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 +6 -36
- package/.openapi-generator/VERSION +1 -1
- package/api/apis.ts +3 -23
- package/api/{managedUsersApi.ts → smartContractsApi.ts} +118 -53
- package/api.ts +9 -69
- package/dist/api/apis.d.ts +3 -23
- package/dist/api/apis.js +3 -23
- package/dist/api/smartContractsApi.d.ts +125 -0
- package/dist/api/{managedUsersApi.js → smartContractsApi.js} +90 -49
- package/dist/api.d.ts +7 -47
- package/dist/api.js +8 -58
- package/dist/model/{getTransactionsResponse.d.ts → getSmartContractInternalTransactions200Response.d.ts} +7 -7
- package/dist/model/{transactionsforUser.js → getSmartContractInternalTransactions200Response.js} +11 -11
- package/dist/model/{allManagedUsersResponse.d.ts → getSmartContractMinedBlocks200Response.d.ts} +4 -4
- package/dist/model/{allManagedUsersResponse.js → getSmartContractMinedBlocks200Response.js} +9 -9
- package/dist/model/{transactionsforUser.d.ts → getSmartContractTransactions200Response.d.ts} +5 -5
- package/dist/model/{getTransactionsResponse.js → getSmartContractTransactions200Response.js} +10 -10
- package/dist/model/{stakeStep.d.ts → internalTransaction.d.ts} +9 -7
- package/dist/model/internalTransaction.js +58 -0
- package/dist/model/{managedUser.d.ts → minedBlock.d.ts} +8 -6
- package/dist/model/minedBlock.js +43 -0
- package/dist/model/models.d.ts +5 -25
- package/dist/model/models.js +15 -67
- package/dist/model/transaction.d.ts +40 -17
- package/dist/model/transaction.js +74 -17
- package/dist/model/webhookPayloadData.d.ts +2 -10
- package/dist/model/webhookPayloadData.js +2 -12
- package/model/{transactionsforUser.ts → getSmartContractInternalTransactions200Response.ts} +13 -13
- package/model/{allManagedUsersResponse.ts → getSmartContractMinedBlocks200Response.ts} +8 -8
- package/model/{getTransactionsResponse.ts → getSmartContractTransactions200Response.ts} +10 -10
- package/model/internalTransaction.ts +70 -0
- package/model/{depositAddress.ts → minedBlock.ts} +19 -13
- package/model/models.ts +17 -114
- package/model/transaction.ts +114 -31
- package/model/webhookPayloadData.ts +4 -23
- package/package.json +1 -1
- package/api/depositAddressesApi.ts +0 -267
- package/api/managedUsersDepositAddressesApi.ts +0 -186
- package/api/managedUsersLinkedWalletsApi.ts +0 -369
- package/api/managedUsersOrdersApi.ts +0 -462
- package/api/managedUsersPortfolioApi.ts +0 -186
- package/api/managedUsersTransactionsApi.ts +0 -222
- package/api/managedUsersValidatorsApi.ts +0 -302
- package/api/ordersApi.ts +0 -432
- package/api/portfolioApi.ts +0 -180
- package/api/transactionsApi.ts +0 -215
- package/dist/api/depositAddressesApi.d.ts +0 -64
- package/dist/api/depositAddressesApi.js +0 -207
- package/dist/api/managedUsersApi.d.ts +0 -94
- package/dist/api/managedUsersDepositAddressesApi.d.ts +0 -51
- package/dist/api/managedUsersDepositAddressesApi.js +0 -146
- package/dist/api/managedUsersLinkedWalletsApi.d.ts +0 -80
- package/dist/api/managedUsersLinkedWalletsApi.js +0 -290
- package/dist/api/managedUsersOrdersApi.d.ts +0 -94
- package/dist/api/managedUsersOrdersApi.js +0 -364
- package/dist/api/managedUsersPortfolioApi.d.ts +0 -51
- package/dist/api/managedUsersPortfolioApi.js +0 -146
- package/dist/api/managedUsersTransactionsApi.d.ts +0 -68
- package/dist/api/managedUsersTransactionsApi.js +0 -170
- package/dist/api/managedUsersValidatorsApi.d.ts +0 -78
- package/dist/api/managedUsersValidatorsApi.js +0 -233
- package/dist/api/ordersApi.d.ts +0 -90
- package/dist/api/ordersApi.js +0 -333
- package/dist/api/portfolioApi.d.ts +0 -50
- package/dist/api/portfolioApi.js +0 -140
- package/dist/api/transactionsApi.d.ts +0 -66
- package/dist/api/transactionsApi.js +0 -164
- package/dist/model/addLinkedWalletForUserRequest.d.ts +0 -29
- package/dist/model/addLinkedWalletForUserRequest.js +0 -33
- package/dist/model/createManagedUserRequest.d.ts +0 -25
- package/dist/model/createManagedUserRequest.js +0 -28
- package/dist/model/depositAddress.d.ts +0 -35
- package/dist/model/depositAddress.js +0 -36
- package/dist/model/depositAddressesForUserResponse.d.ts +0 -27
- package/dist/model/depositAddressesForUserResponse.js +0 -33
- package/dist/model/managedUser.js +0 -36
- package/dist/model/managedUserDetails.d.ts +0 -31
- package/dist/model/managedUserDetails.js +0 -41
- package/dist/model/order.d.ts +0 -42
- package/dist/model/order.js +0 -48
- package/dist/model/orderDocument.d.ts +0 -50
- package/dist/model/orderDocument.js +0 -71
- package/dist/model/orderDocumentSteps.d.ts +0 -30
- package/dist/model/orderDocumentSteps.js +0 -33
- package/dist/model/orderType.d.ts +0 -15
- package/dist/model/orderType.js +0 -13
- package/dist/model/orderUpdatePayload.d.ts +0 -36
- package/dist/model/orderUpdatePayload.js +0 -38
- package/dist/model/portfolioEntity.d.ts +0 -33
- package/dist/model/portfolioEntity.js +0 -41
- package/dist/model/stakeStep.js +0 -33
- package/dist/model/stakeStepElement.d.ts +0 -30
- package/dist/model/stakeStepElement.js +0 -33
- package/dist/model/stepStatus.d.ts +0 -15
- package/dist/model/stepStatus.js +0 -13
- package/dist/model/transactionEventType.d.ts +0 -15
- package/dist/model/transactionEventType.js +0 -13
- package/dist/model/unstakeStep.d.ts +0 -32
- package/dist/model/unstakeStep.js +0 -33
- package/dist/model/unstakeStepElement.d.ts +0 -30
- package/dist/model/unstakeStepElement.js +0 -33
- package/dist/model/unstakeStepType.d.ts +0 -15
- package/dist/model/unstakeStepType.js +0 -13
- package/dist/model/withdrawalStep.d.ts +0 -32
- package/dist/model/withdrawalStep.js +0 -33
- package/dist/model/withdrawalStepElement.d.ts +0 -30
- package/dist/model/withdrawalStepElement.js +0 -33
- package/dist/model/withdrawalStepType.d.ts +0 -15
- package/dist/model/withdrawalStepType.js +0 -13
- package/model/addLinkedWalletForUserRequest.ts +0 -40
- package/model/createManagedUserRequest.ts +0 -31
- package/model/depositAddressesForUserResponse.ts +0 -38
- package/model/managedUser.ts +0 -40
- package/model/managedUserDetails.ts +0 -47
- package/model/order.ts +0 -68
- package/model/orderDocument.ts +0 -106
- package/model/orderDocumentSteps.ts +0 -44
- package/model/orderType.ts +0 -21
- package/model/orderUpdatePayload.ts +0 -52
- package/model/portfolioEntity.ts +0 -49
- package/model/stakeStep.ts +0 -43
- package/model/stakeStepElement.ts +0 -41
- package/model/stepStatus.ts +0 -21
- package/model/transactionEventType.ts +0 -23
- package/model/unstakeStep.ts +0 -43
- package/model/unstakeStepElement.ts +0 -41
- package/model/unstakeStepType.ts +0 -32
- package/model/withdrawalStep.ts +0 -43
- package/model/withdrawalStepElement.ts +0 -41
- package/model/withdrawalStepType.ts +0 -24
|
@@ -1,164 +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.TransactionsApi = exports.TransactionsApiApiKeys = void 0;
|
|
18
|
-
const request_1 = __importDefault(require("request"));
|
|
19
|
-
const models_1 = require("../model/models");
|
|
20
|
-
const models_2 = require("../model/models");
|
|
21
|
-
let defaultBasePath = 'https://api.northstake.dk/v1';
|
|
22
|
-
// ===============================================
|
|
23
|
-
// This file is autogenerated - Please do not edit
|
|
24
|
-
// ===============================================
|
|
25
|
-
var TransactionsApiApiKeys;
|
|
26
|
-
(function (TransactionsApiApiKeys) {
|
|
27
|
-
TransactionsApiApiKeys[TransactionsApiApiKeys["ApiKeyAuth"] = 0] = "ApiKeyAuth";
|
|
28
|
-
})(TransactionsApiApiKeys || (exports.TransactionsApiApiKeys = TransactionsApiApiKeys = {}));
|
|
29
|
-
class TransactionsApi {
|
|
30
|
-
constructor(basePathOrUsername, password, basePath) {
|
|
31
|
-
this._basePath = defaultBasePath;
|
|
32
|
-
this._defaultHeaders = {};
|
|
33
|
-
this._useQuerystring = false;
|
|
34
|
-
this.authentications = {
|
|
35
|
-
'default': new models_2.JWTAuth('your_api_key', 'your_private_key'),
|
|
36
|
-
'bearerTokenAuth': new models_2.HttpBearerAuth(),
|
|
37
|
-
'ApiKeyAuth': new models_2.ApiKeyAuth('header', 'x-api-key'),
|
|
38
|
-
};
|
|
39
|
-
this.interceptors = [];
|
|
40
|
-
if (password) {
|
|
41
|
-
if (basePath) {
|
|
42
|
-
this.basePath = basePath;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
if (basePathOrUsername) {
|
|
47
|
-
this.basePath = basePathOrUsername;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
set useQuerystring(value) {
|
|
52
|
-
this._useQuerystring = value;
|
|
53
|
-
}
|
|
54
|
-
set basePath(basePath) {
|
|
55
|
-
this._basePath = basePath;
|
|
56
|
-
}
|
|
57
|
-
set defaultHeaders(defaultHeaders) {
|
|
58
|
-
this._defaultHeaders = defaultHeaders;
|
|
59
|
-
}
|
|
60
|
-
get defaultHeaders() {
|
|
61
|
-
return this._defaultHeaders;
|
|
62
|
-
}
|
|
63
|
-
get basePath() {
|
|
64
|
-
return this._basePath;
|
|
65
|
-
}
|
|
66
|
-
setDefaultAuthentication(auth) {
|
|
67
|
-
this.authentications.default = auth;
|
|
68
|
-
}
|
|
69
|
-
setApiKey(key, value) {
|
|
70
|
-
this.authentications[TransactionsApiApiKeys[key]].apiKey = value;
|
|
71
|
-
}
|
|
72
|
-
set accessToken(accessToken) {
|
|
73
|
-
this.authentications.bearerTokenAuth.accessToken = accessToken;
|
|
74
|
-
}
|
|
75
|
-
addInterceptor(interceptor) {
|
|
76
|
-
this.interceptors.push(interceptor);
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @summary Get transactions
|
|
81
|
-
* @param startDate Start date for filtering transaction statistics
|
|
82
|
-
* @param endDate End date for filtering transaction statistics
|
|
83
|
-
* @param type Type of transaction (e.g., deposit, withdrawal)
|
|
84
|
-
* @param asset Asset type (e.g., ETH, SOL)
|
|
85
|
-
* @param page Transaction list page number
|
|
86
|
-
* @param limit Number of transactions to return per page
|
|
87
|
-
*/
|
|
88
|
-
async getTransactions(params, options = { headers: {} }) {
|
|
89
|
-
const localVarPath = this.basePath + '/transactions';
|
|
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
|
-
if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
|
|
101
|
-
localVarQueryParameters['startDate'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "string");
|
|
102
|
-
}
|
|
103
|
-
if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
|
|
104
|
-
localVarQueryParameters['endDate'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "string");
|
|
105
|
-
}
|
|
106
|
-
if ((params === null || params === void 0 ? void 0 : params.type) !== undefined) {
|
|
107
|
-
localVarQueryParameters['type'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.type, "TransactionEventType");
|
|
108
|
-
}
|
|
109
|
-
if ((params === null || params === void 0 ? void 0 : params.asset) !== undefined) {
|
|
110
|
-
localVarQueryParameters['asset'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.asset, "Asset");
|
|
111
|
-
}
|
|
112
|
-
if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
|
|
113
|
-
localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
|
|
114
|
-
}
|
|
115
|
-
if ((params === null || params === void 0 ? void 0 : params.limit) !== undefined) {
|
|
116
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.limit, "number");
|
|
117
|
-
}
|
|
118
|
-
Object.assign(localVarHeaderParams, options.headers);
|
|
119
|
-
let localVarUseFormData = false;
|
|
120
|
-
let localVarRequestOptions = {
|
|
121
|
-
method: 'GET',
|
|
122
|
-
qs: localVarQueryParameters,
|
|
123
|
-
headers: localVarHeaderParams,
|
|
124
|
-
uri: localVarPath,
|
|
125
|
-
useQuerystring: this._useQuerystring,
|
|
126
|
-
json: true,
|
|
127
|
-
};
|
|
128
|
-
let authenticationPromise = Promise.resolve();
|
|
129
|
-
authenticationPromise = authenticationPromise.then(() => this.authentications.default.applyToRequest(localVarRequestOptions));
|
|
130
|
-
let interceptorPromise = authenticationPromise;
|
|
131
|
-
for (const interceptor of this.interceptors) {
|
|
132
|
-
interceptorPromise = interceptorPromise.then(() => interceptor(localVarRequestOptions));
|
|
133
|
-
}
|
|
134
|
-
return interceptorPromise.then(() => {
|
|
135
|
-
if (Object.keys(localVarFormParams).length) {
|
|
136
|
-
if (localVarUseFormData) {
|
|
137
|
-
localVarRequestOptions.formData = localVarFormParams;
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
localVarRequestOptions.form = localVarFormParams;
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
return new Promise((resolve, reject) => {
|
|
144
|
-
(0, request_1.default)(localVarRequestOptions, (error, response, body) => {
|
|
145
|
-
if (error) {
|
|
146
|
-
console.error('API call error:', error);
|
|
147
|
-
reject(error);
|
|
148
|
-
}
|
|
149
|
-
else {
|
|
150
|
-
if (response.statusCode && response.statusCode >= 200 && response.statusCode <= 299) {
|
|
151
|
-
body = models_1.ObjectSerializer.deserialize(body, "GetTransactionsResponse");
|
|
152
|
-
resolve({ body: body, status: response.statusCode });
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
console.error('API response error:', response.statusCode);
|
|
156
|
-
resolve({ body: body, status: response.statusCode });
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
});
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
}
|
|
164
|
-
exports.TransactionsApi = TransactionsApi;
|
|
@@ -1,29 +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
|
-
import { Asset } from './asset';
|
|
13
|
-
export declare class AddLinkedWalletForUserRequest {
|
|
14
|
-
'walletAddress': string;
|
|
15
|
-
'asset': Asset;
|
|
16
|
-
static discriminator: string | undefined;
|
|
17
|
-
static attributeTypeMap: Array<{
|
|
18
|
-
name: string;
|
|
19
|
-
baseName: string;
|
|
20
|
-
type: string;
|
|
21
|
-
}>;
|
|
22
|
-
static getAttributeTypeMap(): {
|
|
23
|
-
name: string;
|
|
24
|
-
baseName: string;
|
|
25
|
-
type: string;
|
|
26
|
-
}[];
|
|
27
|
-
}
|
|
28
|
-
export declare namespace AddLinkedWalletForUserRequest {
|
|
29
|
-
}
|
|
@@ -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.AddLinkedWalletForUserRequest = void 0;
|
|
15
|
-
class AddLinkedWalletForUserRequest {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return AddLinkedWalletForUserRequest.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.AddLinkedWalletForUserRequest = AddLinkedWalletForUserRequest;
|
|
21
|
-
AddLinkedWalletForUserRequest.discriminator = undefined;
|
|
22
|
-
AddLinkedWalletForUserRequest.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "walletAddress",
|
|
25
|
-
"baseName": "walletAddress",
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "asset",
|
|
30
|
-
"baseName": "asset",
|
|
31
|
-
"type": "Asset"
|
|
32
|
-
}
|
|
33
|
-
];
|
|
@@ -1,25 +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 CreateManagedUserRequest {
|
|
13
|
-
'reference_user_id': string;
|
|
14
|
-
static discriminator: string | undefined;
|
|
15
|
-
static attributeTypeMap: Array<{
|
|
16
|
-
name: string;
|
|
17
|
-
baseName: string;
|
|
18
|
-
type: string;
|
|
19
|
-
}>;
|
|
20
|
-
static getAttributeTypeMap(): {
|
|
21
|
-
name: string;
|
|
22
|
-
baseName: string;
|
|
23
|
-
type: string;
|
|
24
|
-
}[];
|
|
25
|
-
}
|
|
@@ -1,28 +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.CreateManagedUserRequest = void 0;
|
|
15
|
-
class CreateManagedUserRequest {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return CreateManagedUserRequest.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.CreateManagedUserRequest = CreateManagedUserRequest;
|
|
21
|
-
CreateManagedUserRequest.discriminator = undefined;
|
|
22
|
-
CreateManagedUserRequest.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "reference_user_id",
|
|
25
|
-
"baseName": "reference_user_id",
|
|
26
|
-
"type": "string"
|
|
27
|
-
}
|
|
28
|
-
];
|
|
@@ -1,35 +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
|
-
import { Asset } from './asset';
|
|
13
|
-
/**
|
|
14
|
-
* Details of a deposit address including type and address.
|
|
15
|
-
*/
|
|
16
|
-
export declare class DepositAddress {
|
|
17
|
-
'type': Asset;
|
|
18
|
-
/**
|
|
19
|
-
* The wallet deposit address.
|
|
20
|
-
*/
|
|
21
|
-
'address': string;
|
|
22
|
-
static discriminator: string | undefined;
|
|
23
|
-
static attributeTypeMap: Array<{
|
|
24
|
-
name: string;
|
|
25
|
-
baseName: string;
|
|
26
|
-
type: string;
|
|
27
|
-
}>;
|
|
28
|
-
static getAttributeTypeMap(): {
|
|
29
|
-
name: string;
|
|
30
|
-
baseName: string;
|
|
31
|
-
type: string;
|
|
32
|
-
}[];
|
|
33
|
-
}
|
|
34
|
-
export declare namespace DepositAddress {
|
|
35
|
-
}
|
|
@@ -1,36 +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.DepositAddress = void 0;
|
|
15
|
-
/**
|
|
16
|
-
* Details of a deposit address including type and address.
|
|
17
|
-
*/
|
|
18
|
-
class DepositAddress {
|
|
19
|
-
static getAttributeTypeMap() {
|
|
20
|
-
return DepositAddress.attributeTypeMap;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.DepositAddress = DepositAddress;
|
|
24
|
-
DepositAddress.discriminator = undefined;
|
|
25
|
-
DepositAddress.attributeTypeMap = [
|
|
26
|
-
{
|
|
27
|
-
"name": "type",
|
|
28
|
-
"baseName": "type",
|
|
29
|
-
"type": "Asset"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "address",
|
|
33
|
-
"baseName": "address",
|
|
34
|
-
"type": "string"
|
|
35
|
-
}
|
|
36
|
-
];
|
|
@@ -1,27 +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
|
-
import { DepositAddress } from './depositAddress';
|
|
13
|
-
export declare class DepositAddressesForUserResponse {
|
|
14
|
-
'userId': string;
|
|
15
|
-
'depositAccounts': Array<DepositAddress>;
|
|
16
|
-
static discriminator: string | undefined;
|
|
17
|
-
static attributeTypeMap: Array<{
|
|
18
|
-
name: string;
|
|
19
|
-
baseName: string;
|
|
20
|
-
type: string;
|
|
21
|
-
}>;
|
|
22
|
-
static getAttributeTypeMap(): {
|
|
23
|
-
name: string;
|
|
24
|
-
baseName: string;
|
|
25
|
-
type: string;
|
|
26
|
-
}[];
|
|
27
|
-
}
|
|
@@ -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.DepositAddressesForUserResponse = void 0;
|
|
15
|
-
class DepositAddressesForUserResponse {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return DepositAddressesForUserResponse.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.DepositAddressesForUserResponse = DepositAddressesForUserResponse;
|
|
21
|
-
DepositAddressesForUserResponse.discriminator = undefined;
|
|
22
|
-
DepositAddressesForUserResponse.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "userId",
|
|
25
|
-
"baseName": "userId",
|
|
26
|
-
"type": "string"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "depositAccounts",
|
|
30
|
-
"baseName": "depositAccounts",
|
|
31
|
-
"type": "Array<DepositAddress>"
|
|
32
|
-
}
|
|
33
|
-
];
|
|
@@ -1,36 +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.ManagedUser = void 0;
|
|
15
|
-
/**
|
|
16
|
-
* Information about a user managed by the account.
|
|
17
|
-
*/
|
|
18
|
-
class ManagedUser {
|
|
19
|
-
static getAttributeTypeMap() {
|
|
20
|
-
return ManagedUser.attributeTypeMap;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.ManagedUser = ManagedUser;
|
|
24
|
-
ManagedUser.discriminator = undefined;
|
|
25
|
-
ManagedUser.attributeTypeMap = [
|
|
26
|
-
{
|
|
27
|
-
"name": "reference_user_id",
|
|
28
|
-
"baseName": "reference_user_id",
|
|
29
|
-
"type": "string"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "userId",
|
|
33
|
-
"baseName": "userId",
|
|
34
|
-
"type": "string"
|
|
35
|
-
}
|
|
36
|
-
];
|
|
@@ -1,31 +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
|
-
import { Wallet } from './wallet';
|
|
13
|
-
/**
|
|
14
|
-
* Represents detailed account information for a managed user.
|
|
15
|
-
*/
|
|
16
|
-
export declare class ManagedUserDetails {
|
|
17
|
-
'userId': string;
|
|
18
|
-
'reference_user_id': string;
|
|
19
|
-
'wallets'?: Array<Wallet>;
|
|
20
|
-
static discriminator: string | undefined;
|
|
21
|
-
static attributeTypeMap: Array<{
|
|
22
|
-
name: string;
|
|
23
|
-
baseName: string;
|
|
24
|
-
type: string;
|
|
25
|
-
}>;
|
|
26
|
-
static getAttributeTypeMap(): {
|
|
27
|
-
name: string;
|
|
28
|
-
baseName: string;
|
|
29
|
-
type: string;
|
|
30
|
-
}[];
|
|
31
|
-
}
|
|
@@ -1,41 +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.ManagedUserDetails = void 0;
|
|
15
|
-
/**
|
|
16
|
-
* Represents detailed account information for a managed user.
|
|
17
|
-
*/
|
|
18
|
-
class ManagedUserDetails {
|
|
19
|
-
static getAttributeTypeMap() {
|
|
20
|
-
return ManagedUserDetails.attributeTypeMap;
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
exports.ManagedUserDetails = ManagedUserDetails;
|
|
24
|
-
ManagedUserDetails.discriminator = undefined;
|
|
25
|
-
ManagedUserDetails.attributeTypeMap = [
|
|
26
|
-
{
|
|
27
|
-
"name": "userId",
|
|
28
|
-
"baseName": "userId",
|
|
29
|
-
"type": "string"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
"name": "reference_user_id",
|
|
33
|
-
"baseName": "reference_user_id",
|
|
34
|
-
"type": "string"
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"name": "wallets",
|
|
38
|
-
"baseName": "wallets",
|
|
39
|
-
"type": "Array<Wallet>"
|
|
40
|
-
}
|
|
41
|
-
];
|
package/dist/model/order.d.ts
DELETED
|
@@ -1,42 +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
|
-
import { EthereumValidatorKey } from './ethereumValidatorKey';
|
|
13
|
-
import { OrderType } from './orderType';
|
|
14
|
-
export declare class Order {
|
|
15
|
-
'orderType': OrderType;
|
|
16
|
-
/**
|
|
17
|
-
* Asset ID of the order, e.g., ETH, SOL.
|
|
18
|
-
*/
|
|
19
|
-
'asset': string;
|
|
20
|
-
/**
|
|
21
|
-
* Order amount, specified in smallest unit of the asset.
|
|
22
|
-
*/
|
|
23
|
-
'amount'?: number;
|
|
24
|
-
'validatorKey'?: EthereumValidatorKey;
|
|
25
|
-
/**
|
|
26
|
-
* Id of the linked wallet that should be the target of a withdrawal order
|
|
27
|
-
*/
|
|
28
|
-
'targetWalletId'?: 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
|
-
}
|
|
41
|
-
export declare namespace Order {
|
|
42
|
-
}
|
package/dist/model/order.js
DELETED
|
@@ -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.Order = void 0;
|
|
15
|
-
class Order {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return Order.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.Order = Order;
|
|
21
|
-
Order.discriminator = undefined;
|
|
22
|
-
Order.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "orderType",
|
|
25
|
-
"baseName": "orderType",
|
|
26
|
-
"type": "OrderType"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"name": "asset",
|
|
30
|
-
"baseName": "asset",
|
|
31
|
-
"type": "string"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "amount",
|
|
35
|
-
"baseName": "amount",
|
|
36
|
-
"type": "number"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "validatorKey",
|
|
40
|
-
"baseName": "validatorKey",
|
|
41
|
-
"type": "EthereumValidatorKey"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "targetWalletId",
|
|
45
|
-
"baseName": "targetWalletId",
|
|
46
|
-
"type": "string"
|
|
47
|
-
}
|
|
48
|
-
];
|
|
@@ -1,50 +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
|
-
import { Asset } from './asset';
|
|
13
|
-
import { EthereumValidatorKey } from './ethereumValidatorKey';
|
|
14
|
-
import { OrderDocumentSteps } from './orderDocumentSteps';
|
|
15
|
-
import { Wallet } from './wallet';
|
|
16
|
-
/**
|
|
17
|
-
* Detailed information about a specific order.
|
|
18
|
-
*/
|
|
19
|
-
export declare class OrderDocument {
|
|
20
|
-
'orderId': string;
|
|
21
|
-
'userId': string;
|
|
22
|
-
'type': OrderDocument;
|
|
23
|
-
'amount'?: number;
|
|
24
|
-
'asset': Asset;
|
|
25
|
-
'status': OrderDocument;
|
|
26
|
-
'targetWallet'?: Wallet;
|
|
27
|
-
'validatorKey'?: EthereumValidatorKey;
|
|
28
|
-
'steps'?: OrderDocumentSteps;
|
|
29
|
-
static discriminator: string | undefined;
|
|
30
|
-
static attributeTypeMap: Array<{
|
|
31
|
-
name: string;
|
|
32
|
-
baseName: string;
|
|
33
|
-
type: string;
|
|
34
|
-
}>;
|
|
35
|
-
static getAttributeTypeMap(): {
|
|
36
|
-
name: string;
|
|
37
|
-
baseName: string;
|
|
38
|
-
type: string;
|
|
39
|
-
}[];
|
|
40
|
-
}
|
|
41
|
-
export declare namespace OrderDocument {
|
|
42
|
-
/**
|
|
43
|
-
*
|
|
44
|
-
*/
|
|
45
|
-
type typeEnum = 'stake' | 'unstake' | 'withdraw';
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
*/
|
|
49
|
-
type statusEnum = 'cancelled' | 'completed' | 'accepted' | 'submitted' | 'pending' | 'failed' | 'rejected';
|
|
50
|
-
}
|