@northstake/northstakeapi 1.0.26 → 1.0.27
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 +0 -1
- package/api/smartContractsApi.ts +0 -111
- package/api.ts +0 -1
- package/dist/api/smartContractsApi.d.ts +0 -25
- package/dist/api/smartContractsApi.js +0 -83
- package/dist/api.d.ts +0 -1
- package/dist/api.js +0 -1
- package/dist/model/models.d.ts +0 -1
- package/dist/model/models.js +0 -3
- package/dist/model/transaction.d.ts +2 -0
- package/dist/model/transaction.js +5 -0
- package/model/models.ts +0 -5
- package/model/transaction.ts +7 -0
- package/package.json +1 -1
- package/dist/model/getSmartContractInternalTransactions200Response.d.ts +0 -38
- package/dist/model/getSmartContractInternalTransactions200Response.js +0 -43
- package/model/getSmartContractInternalTransactions200Response.ts +0 -59
package/.openapi-generator/FILES
CHANGED
|
@@ -34,7 +34,6 @@ model/exitEstimateSeller.ts
|
|
|
34
34
|
model/exitProposal.ts
|
|
35
35
|
model/generateApiKeyRequest.ts
|
|
36
36
|
model/getMarketplaceMetadata200Response.ts
|
|
37
|
-
model/getSmartContractInternalTransactions200Response.ts
|
|
38
37
|
model/getSmartContractMinedBlocks200Response.ts
|
|
39
38
|
model/getSmartContractTransactions200Response.ts
|
|
40
39
|
model/getWithdrawalsResponse.ts
|
package/api/smartContractsApi.ts
CHANGED
|
@@ -16,7 +16,6 @@ import http from 'http';
|
|
|
16
16
|
|
|
17
17
|
/* tslint:disable:no-unused-locals */
|
|
18
18
|
import { ErrorResponse } from '../model/errorResponse';
|
|
19
|
-
import { GetSmartContractInternalTransactions200Response } from '../model/getSmartContractInternalTransactions200Response';
|
|
20
19
|
import { GetSmartContractMinedBlocks200Response } from '../model/getSmartContractMinedBlocks200Response';
|
|
21
20
|
import { GetSmartContractTransactions200Response } from '../model/getSmartContractTransactions200Response';
|
|
22
21
|
import { SmartContract } from '../model/smartContract';
|
|
@@ -37,14 +36,6 @@ export enum SmartContractsApiApiKeys {
|
|
|
37
36
|
}
|
|
38
37
|
|
|
39
38
|
|
|
40
|
-
// If vendorExtensions.x-packageParams is true, use a single object to pass parameters
|
|
41
|
-
export interface SmartContractsApiParams {
|
|
42
|
-
contractAddress: string;
|
|
43
|
-
startDate?: string;
|
|
44
|
-
endDate?: string;
|
|
45
|
-
page?: number;
|
|
46
|
-
limit?: number;
|
|
47
|
-
}
|
|
48
39
|
// If vendorExtensions.x-packageParams is true, use a single object to pass parameters
|
|
49
40
|
export interface SmartContractsApiParams {
|
|
50
41
|
contractAddress: string;
|
|
@@ -124,108 +115,6 @@ export class SmartContractsApi {
|
|
|
124
115
|
this.interceptors.push(interceptor);
|
|
125
116
|
}
|
|
126
117
|
|
|
127
|
-
/**
|
|
128
|
-
*
|
|
129
|
-
* @summary Get internal transactions related to a specific smart contract
|
|
130
|
-
* @param contractAddress The address of the smart contract
|
|
131
|
-
* @param startDate Start date for filtering internal transactions
|
|
132
|
-
* @param endDate End date for filtering internal transactions
|
|
133
|
-
* @param page Page number for pagination
|
|
134
|
-
* @param limit Number of internal transactions per page
|
|
135
|
-
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
public async getSmartContractInternalTransactions(params?: SmartContractsApiParams, options: { headers: { [name: string]: string } } = { headers: {} }): Promise<{ body: GetSmartContractInternalTransactions200Response, status: number }> {
|
|
142
|
-
|
|
143
|
-
const localVarPath = this.basePath + '/smartContracts/{contractAddress}/internalTransactions'
|
|
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 getSmartContractInternalTransactions.');
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
if (params?.startDate !== undefined) {
|
|
165
|
-
localVarQueryParameters['start_date'] = ObjectSerializer.serialize(params?.startDate, "string");
|
|
166
|
-
}
|
|
167
|
-
if (params?.endDate !== undefined) {
|
|
168
|
-
localVarQueryParameters['end_date'] = ObjectSerializer.serialize(params?.endDate, "string");
|
|
169
|
-
}
|
|
170
|
-
if (params?.page !== undefined) {
|
|
171
|
-
localVarQueryParameters['page'] = ObjectSerializer.serialize(params?.page, "number");
|
|
172
|
-
}
|
|
173
|
-
if (params?.limit !== undefined) {
|
|
174
|
-
localVarQueryParameters['limit'] = ObjectSerializer.serialize(params?.limit, "number");
|
|
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: GetSmartContractInternalTransactions200Response, 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, "GetSmartContractInternalTransactions200Response");
|
|
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
|
-
}
|
|
229
118
|
/**
|
|
230
119
|
*
|
|
231
120
|
* @summary Get mined blocks related to a specific smart contract
|
package/api.ts
CHANGED
|
@@ -31,7 +31,6 @@ export * from './model/./exitEstimateSeller';
|
|
|
31
31
|
export * from './model/./exitProposal';
|
|
32
32
|
export * from './model/./generateApiKeyRequest';
|
|
33
33
|
export * from './model/./getMarketplaceMetadata200Response';
|
|
34
|
-
export * from './model/./getSmartContractInternalTransactions200Response';
|
|
35
34
|
export * from './model/./getSmartContractMinedBlocks200Response';
|
|
36
35
|
export * from './model/./getSmartContractTransactions200Response';
|
|
37
36
|
export * from './model/./getWithdrawalsResponse';
|
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
-
import { GetSmartContractInternalTransactions200Response } from '../model/getSmartContractInternalTransactions200Response';
|
|
13
12
|
import { GetSmartContractMinedBlocks200Response } from '../model/getSmartContractMinedBlocks200Response';
|
|
14
13
|
import { GetSmartContractTransactions200Response } from '../model/getSmartContractTransactions200Response';
|
|
15
14
|
import { SmartContract } from '../model/smartContract';
|
|
@@ -18,13 +17,6 @@ import { HttpBearerAuth, ApiKeyAuth } from '../model/models';
|
|
|
18
17
|
export declare enum SmartContractsApiApiKeys {
|
|
19
18
|
ApiKeyAuth = 0
|
|
20
19
|
}
|
|
21
|
-
export interface SmartContractsApiParams {
|
|
22
|
-
contractAddress: string;
|
|
23
|
-
startDate?: string;
|
|
24
|
-
endDate?: string;
|
|
25
|
-
page?: number;
|
|
26
|
-
limit?: number;
|
|
27
|
-
}
|
|
28
20
|
export interface SmartContractsApiParams {
|
|
29
21
|
contractAddress: string;
|
|
30
22
|
page?: number;
|
|
@@ -59,23 +51,6 @@ export declare class SmartContractsApi {
|
|
|
59
51
|
setApiKey(key: SmartContractsApiApiKeys, value: string): void;
|
|
60
52
|
set accessToken(accessToken: string | (() => string));
|
|
61
53
|
addInterceptor(interceptor: Interceptor): void;
|
|
62
|
-
/**
|
|
63
|
-
*
|
|
64
|
-
* @summary Get internal transactions related to a specific smart contract
|
|
65
|
-
* @param contractAddress The address of the smart contract
|
|
66
|
-
* @param startDate Start date for filtering internal transactions
|
|
67
|
-
* @param endDate End date for filtering internal transactions
|
|
68
|
-
* @param page Page number for pagination
|
|
69
|
-
* @param limit Number of internal transactions per page
|
|
70
|
-
*/
|
|
71
|
-
getSmartContractInternalTransactions(params?: SmartContractsApiParams, options?: {
|
|
72
|
-
headers: {
|
|
73
|
-
[name: string]: string;
|
|
74
|
-
};
|
|
75
|
-
}): Promise<{
|
|
76
|
-
body: GetSmartContractInternalTransactions200Response;
|
|
77
|
-
status: number;
|
|
78
|
-
}>;
|
|
79
54
|
/**
|
|
80
55
|
*
|
|
81
56
|
* @summary Get mined blocks related to a specific smart contract
|
|
@@ -75,89 +75,6 @@ class SmartContractsApi {
|
|
|
75
75
|
addInterceptor(interceptor) {
|
|
76
76
|
this.interceptors.push(interceptor);
|
|
77
77
|
}
|
|
78
|
-
/**
|
|
79
|
-
*
|
|
80
|
-
* @summary Get internal transactions related to a specific smart contract
|
|
81
|
-
* @param contractAddress The address of the smart contract
|
|
82
|
-
* @param startDate Start date for filtering internal transactions
|
|
83
|
-
* @param endDate End date for filtering internal transactions
|
|
84
|
-
* @param page Page number for pagination
|
|
85
|
-
* @param limit Number of internal transactions per page
|
|
86
|
-
*/
|
|
87
|
-
async getSmartContractInternalTransactions(params, options = { headers: {} }) {
|
|
88
|
-
const localVarPath = this.basePath + '/smartContracts/{contractAddress}/internalTransactions'
|
|
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 getSmartContractInternalTransactions.');
|
|
103
|
-
}
|
|
104
|
-
if ((params === null || params === void 0 ? void 0 : params.startDate) !== undefined) {
|
|
105
|
-
localVarQueryParameters['start_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.startDate, "string");
|
|
106
|
-
}
|
|
107
|
-
if ((params === null || params === void 0 ? void 0 : params.endDate) !== undefined) {
|
|
108
|
-
localVarQueryParameters['end_date'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.endDate, "string");
|
|
109
|
-
}
|
|
110
|
-
if ((params === null || params === void 0 ? void 0 : params.page) !== undefined) {
|
|
111
|
-
localVarQueryParameters['page'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.page, "number");
|
|
112
|
-
}
|
|
113
|
-
if ((params === null || params === void 0 ? void 0 : params.limit) !== undefined) {
|
|
114
|
-
localVarQueryParameters['limit'] = models_1.ObjectSerializer.serialize(params === null || params === void 0 ? void 0 : params.limit, "number");
|
|
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, "GetSmartContractInternalTransactions200Response");
|
|
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
|
-
}
|
|
161
78
|
/**
|
|
162
79
|
*
|
|
163
80
|
* @summary Get mined blocks related to a specific smart contract
|
package/dist/api.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export * from './model/./exitEstimateSeller';
|
|
|
29
29
|
export * from './model/./exitProposal';
|
|
30
30
|
export * from './model/./generateApiKeyRequest';
|
|
31
31
|
export * from './model/./getMarketplaceMetadata200Response';
|
|
32
|
-
export * from './model/./getSmartContractInternalTransactions200Response';
|
|
33
32
|
export * from './model/./getSmartContractMinedBlocks200Response';
|
|
34
33
|
export * from './model/./getSmartContractTransactions200Response';
|
|
35
34
|
export * from './model/./getWithdrawalsResponse';
|
package/dist/api.js
CHANGED
|
@@ -48,7 +48,6 @@ __exportStar(require("./model/./exitEstimateSeller"), exports);
|
|
|
48
48
|
__exportStar(require("./model/./exitProposal"), exports);
|
|
49
49
|
__exportStar(require("./model/./generateApiKeyRequest"), exports);
|
|
50
50
|
__exportStar(require("./model/./getMarketplaceMetadata200Response"), exports);
|
|
51
|
-
__exportStar(require("./model/./getSmartContractInternalTransactions200Response"), exports);
|
|
52
51
|
__exportStar(require("./model/./getSmartContractMinedBlocks200Response"), exports);
|
|
53
52
|
__exportStar(require("./model/./getSmartContractTransactions200Response"), exports);
|
|
54
53
|
__exportStar(require("./model/./getWithdrawalsResponse"), exports);
|
package/dist/model/models.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ export * from './exitEstimateSeller';
|
|
|
21
21
|
export * from './exitProposal';
|
|
22
22
|
export * from './generateApiKeyRequest';
|
|
23
23
|
export * from './getMarketplaceMetadata200Response';
|
|
24
|
-
export * from './getSmartContractInternalTransactions200Response';
|
|
25
24
|
export * from './getSmartContractMinedBlocks200Response';
|
|
26
25
|
export * from './getSmartContractTransactions200Response';
|
|
27
26
|
export * from './getWithdrawalsResponse';
|
package/dist/model/models.js
CHANGED
|
@@ -50,7 +50,6 @@ __exportStar(require("./exitEstimateSeller"), exports);
|
|
|
50
50
|
__exportStar(require("./exitProposal"), exports);
|
|
51
51
|
__exportStar(require("./generateApiKeyRequest"), exports);
|
|
52
52
|
__exportStar(require("./getMarketplaceMetadata200Response"), exports);
|
|
53
|
-
__exportStar(require("./getSmartContractInternalTransactions200Response"), exports);
|
|
54
53
|
__exportStar(require("./getSmartContractMinedBlocks200Response"), exports);
|
|
55
54
|
__exportStar(require("./getSmartContractTransactions200Response"), exports);
|
|
56
55
|
__exportStar(require("./getWithdrawalsResponse"), exports);
|
|
@@ -130,7 +129,6 @@ const exitEstimateSeller_1 = require("./exitEstimateSeller");
|
|
|
130
129
|
const exitProposal_1 = require("./exitProposal");
|
|
131
130
|
const generateApiKeyRequest_1 = require("./generateApiKeyRequest");
|
|
132
131
|
const getMarketplaceMetadata200Response_1 = require("./getMarketplaceMetadata200Response");
|
|
133
|
-
const getSmartContractInternalTransactions200Response_1 = require("./getSmartContractInternalTransactions200Response");
|
|
134
132
|
const getSmartContractMinedBlocks200Response_1 = require("./getSmartContractMinedBlocks200Response");
|
|
135
133
|
const getSmartContractTransactions200Response_1 = require("./getSmartContractTransactions200Response");
|
|
136
134
|
const getWithdrawalsResponse_1 = require("./getWithdrawalsResponse");
|
|
@@ -223,7 +221,6 @@ let typeMap = {
|
|
|
223
221
|
"ExitProposal": exitProposal_1.ExitProposal,
|
|
224
222
|
"GenerateApiKeyRequest": generateApiKeyRequest_1.GenerateApiKeyRequest,
|
|
225
223
|
"GetMarketplaceMetadata200Response": getMarketplaceMetadata200Response_1.GetMarketplaceMetadata200Response,
|
|
226
|
-
"GetSmartContractInternalTransactions200Response": getSmartContractInternalTransactions200Response_1.GetSmartContractInternalTransactions200Response,
|
|
227
224
|
"GetSmartContractMinedBlocks200Response": getSmartContractMinedBlocks200Response_1.GetSmartContractMinedBlocks200Response,
|
|
228
225
|
"GetSmartContractTransactions200Response": getSmartContractTransactions200Response_1.GetSmartContractTransactions200Response,
|
|
229
226
|
"GetWithdrawalsResponse": getWithdrawalsResponse_1.GetWithdrawalsResponse,
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
* https://openapi-generator.tech
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
|
+
import { InternalTransaction } from './internalTransaction';
|
|
12
13
|
export declare class Transaction {
|
|
13
14
|
'blockNumber': number;
|
|
14
15
|
'timeStamp': Date;
|
|
@@ -58,6 +59,7 @@ export declare class Transaction {
|
|
|
58
59
|
* Decoded arguments passed to the function called in the transaction including argument names, types, and values
|
|
59
60
|
*/
|
|
60
61
|
'functionArgsDecoded'?: object;
|
|
62
|
+
'internalTransactions': Array<InternalTransaction>;
|
|
61
63
|
static discriminator: string | undefined;
|
|
62
64
|
static attributeTypeMap: Array<{
|
|
63
65
|
name: string;
|
|
@@ -109,5 +109,10 @@ Transaction.attributeTypeMap = [
|
|
|
109
109
|
"name": "functionArgsDecoded",
|
|
110
110
|
"baseName": "functionArgsDecoded",
|
|
111
111
|
"type": "object"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"name": "internalTransactions",
|
|
115
|
+
"baseName": "internalTransactions",
|
|
116
|
+
"type": "Array<InternalTransaction>"
|
|
112
117
|
}
|
|
113
118
|
];
|
package/model/models.ts
CHANGED
|
@@ -24,7 +24,6 @@ export * from './exitEstimateSeller';
|
|
|
24
24
|
export * from './exitProposal';
|
|
25
25
|
export * from './generateApiKeyRequest';
|
|
26
26
|
export * from './getMarketplaceMetadata200Response';
|
|
27
|
-
export * from './getSmartContractInternalTransactions200Response';
|
|
28
27
|
export * from './getSmartContractMinedBlocks200Response';
|
|
29
28
|
export * from './getSmartContractTransactions200Response';
|
|
30
29
|
export * from './getWithdrawalsResponse';
|
|
@@ -163,9 +162,6 @@ import { GenerateApiKeyRequest } from './generateApiKeyRequest';
|
|
|
163
162
|
import { GetMarketplaceMetadata200Response } from './getMarketplaceMetadata200Response';
|
|
164
163
|
|
|
165
164
|
|
|
166
|
-
import { GetSmartContractInternalTransactions200Response } from './getSmartContractInternalTransactions200Response';
|
|
167
|
-
|
|
168
|
-
|
|
169
165
|
import { GetSmartContractMinedBlocks200Response } from './getSmartContractMinedBlocks200Response';
|
|
170
166
|
|
|
171
167
|
|
|
@@ -382,7 +378,6 @@ let typeMap: {[index: string]: any} = {
|
|
|
382
378
|
"ExitProposal": ExitProposal,
|
|
383
379
|
"GenerateApiKeyRequest": GenerateApiKeyRequest,
|
|
384
380
|
"GetMarketplaceMetadata200Response": GetMarketplaceMetadata200Response,
|
|
385
|
-
"GetSmartContractInternalTransactions200Response": GetSmartContractInternalTransactions200Response,
|
|
386
381
|
"GetSmartContractMinedBlocks200Response": GetSmartContractMinedBlocks200Response,
|
|
387
382
|
"GetSmartContractTransactions200Response": GetSmartContractTransactions200Response,
|
|
388
383
|
"GetWithdrawalsResponse": GetWithdrawalsResponse,
|
package/model/transaction.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
|
+
import { InternalTransaction } from './internalTransaction';
|
|
13
14
|
|
|
14
15
|
export class Transaction {
|
|
15
16
|
'blockNumber': number;
|
|
@@ -60,6 +61,7 @@ export class Transaction {
|
|
|
60
61
|
* Decoded arguments passed to the function called in the transaction including argument names, types, and values
|
|
61
62
|
*/
|
|
62
63
|
'functionArgsDecoded'?: object;
|
|
64
|
+
'internalTransactions': Array<InternalTransaction>;
|
|
63
65
|
|
|
64
66
|
static discriminator: string | undefined = undefined;
|
|
65
67
|
|
|
@@ -153,6 +155,11 @@ export class Transaction {
|
|
|
153
155
|
"name": "functionArgsDecoded",
|
|
154
156
|
"baseName": "functionArgsDecoded",
|
|
155
157
|
"type": "object"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"name": "internalTransactions",
|
|
161
|
+
"baseName": "internalTransactions",
|
|
162
|
+
"type": "Array<InternalTransaction>"
|
|
156
163
|
} ];
|
|
157
164
|
|
|
158
165
|
static getAttributeTypeMap() {
|
package/package.json
CHANGED
|
@@ -1,38 +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 { InternalTransaction } from './internalTransaction';
|
|
13
|
-
export declare class GetSmartContractInternalTransactions200Response {
|
|
14
|
-
'transactions': Array<InternalTransaction>;
|
|
15
|
-
/**
|
|
16
|
-
* Total number of internal transactions
|
|
17
|
-
*/
|
|
18
|
-
'total': number;
|
|
19
|
-
/**
|
|
20
|
-
* Total number of pages
|
|
21
|
-
*/
|
|
22
|
-
'pages': number;
|
|
23
|
-
/**
|
|
24
|
-
* Current page number
|
|
25
|
-
*/
|
|
26
|
-
'currentPage': number;
|
|
27
|
-
static discriminator: string | undefined;
|
|
28
|
-
static attributeTypeMap: Array<{
|
|
29
|
-
name: string;
|
|
30
|
-
baseName: string;
|
|
31
|
-
type: string;
|
|
32
|
-
}>;
|
|
33
|
-
static getAttributeTypeMap(): {
|
|
34
|
-
name: string;
|
|
35
|
-
baseName: string;
|
|
36
|
-
type: string;
|
|
37
|
-
}[];
|
|
38
|
-
}
|
|
@@ -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.GetSmartContractInternalTransactions200Response = void 0;
|
|
15
|
-
class GetSmartContractInternalTransactions200Response {
|
|
16
|
-
static getAttributeTypeMap() {
|
|
17
|
-
return GetSmartContractInternalTransactions200Response.attributeTypeMap;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
exports.GetSmartContractInternalTransactions200Response = GetSmartContractInternalTransactions200Response;
|
|
21
|
-
GetSmartContractInternalTransactions200Response.discriminator = undefined;
|
|
22
|
-
GetSmartContractInternalTransactions200Response.attributeTypeMap = [
|
|
23
|
-
{
|
|
24
|
-
"name": "transactions",
|
|
25
|
-
"baseName": "transactions",
|
|
26
|
-
"type": "Array<InternalTransaction>"
|
|
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
|
-
];
|
|
@@ -1,59 +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 { InternalTransaction } from './internalTransaction';
|
|
14
|
-
|
|
15
|
-
export class GetSmartContractInternalTransactions200Response {
|
|
16
|
-
'transactions': Array<InternalTransaction>;
|
|
17
|
-
/**
|
|
18
|
-
* Total number of internal transactions
|
|
19
|
-
*/
|
|
20
|
-
'total': number;
|
|
21
|
-
/**
|
|
22
|
-
* Total number of pages
|
|
23
|
-
*/
|
|
24
|
-
'pages': number;
|
|
25
|
-
/**
|
|
26
|
-
* Current page number
|
|
27
|
-
*/
|
|
28
|
-
'currentPage': number;
|
|
29
|
-
|
|
30
|
-
static discriminator: string | undefined = undefined;
|
|
31
|
-
|
|
32
|
-
static attributeTypeMap: Array<{name: string, baseName: string, type: string}> = [
|
|
33
|
-
{
|
|
34
|
-
"name": "transactions",
|
|
35
|
-
"baseName": "transactions",
|
|
36
|
-
"type": "Array<InternalTransaction>"
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"name": "total",
|
|
40
|
-
"baseName": "total",
|
|
41
|
-
"type": "number"
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"name": "pages",
|
|
45
|
-
"baseName": "pages",
|
|
46
|
-
"type": "number"
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
"name": "currentPage",
|
|
50
|
-
"baseName": "currentPage",
|
|
51
|
-
"type": "number"
|
|
52
|
-
} ];
|
|
53
|
-
|
|
54
|
-
static getAttributeTypeMap() {
|
|
55
|
-
return GetSmartContractInternalTransactions200Response.attributeTypeMap;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
|