@imtbl/sdk 0.35.7 → 0.35.8
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/dist/blockchain_data.d.ts +694 -155
- package/dist/blockchain_data.js +624 -131
- package/dist/browser/checkout/sdk.js +6 -6
- package/dist/checkout.js +625 -132
- package/dist/immutablex_client.js +1 -1
- package/dist/index.browser.js +10 -10
- package/dist/index.browser.js.map +1 -1
- package/dist/index.cjs +627 -134
- package/dist/index.d.ts +694 -155
- package/dist/index.js +627 -134
- package/dist/passport.js +256 -98
- package/package.json +1 -1
package/dist/blockchain_data.js
CHANGED
|
@@ -219,15 +219,13 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
|
219
219
|
* @param {string} [tokenId] An `uint256` token id as string
|
|
220
220
|
* @param {string} [accountAddress] The account address activity contains
|
|
221
221
|
* @param {ActivityType} [activityType] The activity type
|
|
222
|
-
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
223
|
-
* @param {string} [toIndexedAt] To indexed at including given date
|
|
224
222
|
* @param {string} [transactionHash] The transaction hash of activity
|
|
225
223
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
226
224
|
* @param {number} [pageSize] Maximum number of items to return
|
|
227
225
|
* @param {*} [options] Override http request option.
|
|
228
226
|
* @throws {RequiredError}
|
|
229
227
|
*/
|
|
230
|
-
listActivities: async (chainName, contractAddress, tokenId, accountAddress, activityType,
|
|
228
|
+
listActivities: async (chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options = {}) => {
|
|
231
229
|
// verify required parameter 'chainName' is not null or undefined
|
|
232
230
|
assertParamExists('listActivities', 'chainName', chainName);
|
|
233
231
|
const localVarPath = `/v1/chains/{chain_name}/activities`
|
|
@@ -253,16 +251,6 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
|
253
251
|
if (activityType !== undefined) {
|
|
254
252
|
localVarQueryParameter['activity_type'] = activityType;
|
|
255
253
|
}
|
|
256
|
-
if (fromIndexedAt !== undefined) {
|
|
257
|
-
localVarQueryParameter['from_indexed_at'] = (fromIndexedAt instanceof Date) ?
|
|
258
|
-
fromIndexedAt.toISOString() :
|
|
259
|
-
fromIndexedAt;
|
|
260
|
-
}
|
|
261
|
-
if (toIndexedAt !== undefined) {
|
|
262
|
-
localVarQueryParameter['to_indexed_at'] = (toIndexedAt instanceof Date) ?
|
|
263
|
-
toIndexedAt.toISOString() :
|
|
264
|
-
toIndexedAt;
|
|
265
|
-
}
|
|
266
254
|
if (transactionHash !== undefined) {
|
|
267
255
|
localVarQueryParameter['transaction_hash'] = transactionHash;
|
|
268
256
|
}
|
|
@@ -280,6 +268,61 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
|
280
268
|
options: localVarRequestOptions,
|
|
281
269
|
};
|
|
282
270
|
},
|
|
271
|
+
/**
|
|
272
|
+
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
273
|
+
* @summary List history of activities
|
|
274
|
+
* @param {string} chainName The name of chain
|
|
275
|
+
* @param {string} fromUpdatedAt From indexed at including given date
|
|
276
|
+
* @param {string} [toUpdatedAt] To indexed at including given date
|
|
277
|
+
* @param {string} [contractAddress] The contract address of the collection
|
|
278
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
279
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
280
|
+
* @param {*} [options] Override http request option.
|
|
281
|
+
* @throws {RequiredError}
|
|
282
|
+
*/
|
|
283
|
+
listActivityHistory: async (chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options = {}) => {
|
|
284
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
285
|
+
assertParamExists('listActivityHistory', 'chainName', chainName);
|
|
286
|
+
// verify required parameter 'fromUpdatedAt' is not null or undefined
|
|
287
|
+
assertParamExists('listActivityHistory', 'fromUpdatedAt', fromUpdatedAt);
|
|
288
|
+
const localVarPath = `/v1/chains/{chain_name}/activity-history`
|
|
289
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
290
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
291
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
292
|
+
let baseOptions;
|
|
293
|
+
if (configuration) {
|
|
294
|
+
baseOptions = configuration.baseOptions;
|
|
295
|
+
}
|
|
296
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
297
|
+
const localVarHeaderParameter = {};
|
|
298
|
+
const localVarQueryParameter = {};
|
|
299
|
+
if (fromUpdatedAt !== undefined) {
|
|
300
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
301
|
+
fromUpdatedAt.toISOString() :
|
|
302
|
+
fromUpdatedAt;
|
|
303
|
+
}
|
|
304
|
+
if (toUpdatedAt !== undefined) {
|
|
305
|
+
localVarQueryParameter['to_updated_at'] = (toUpdatedAt instanceof Date) ?
|
|
306
|
+
toUpdatedAt.toISOString() :
|
|
307
|
+
toUpdatedAt;
|
|
308
|
+
}
|
|
309
|
+
if (contractAddress !== undefined) {
|
|
310
|
+
localVarQueryParameter['contract_address'] = contractAddress;
|
|
311
|
+
}
|
|
312
|
+
if (pageCursor !== undefined) {
|
|
313
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
314
|
+
}
|
|
315
|
+
if (pageSize !== undefined) {
|
|
316
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
317
|
+
}
|
|
318
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
319
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
320
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
321
|
+
return {
|
|
322
|
+
url: toPathString(localVarUrlObj),
|
|
323
|
+
options: localVarRequestOptions,
|
|
324
|
+
};
|
|
325
|
+
},
|
|
283
326
|
};
|
|
284
327
|
};
|
|
285
328
|
/**
|
|
@@ -309,16 +352,30 @@ const ActivitiesApiFp = function (configuration) {
|
|
|
309
352
|
* @param {string} [tokenId] An `uint256` token id as string
|
|
310
353
|
* @param {string} [accountAddress] The account address activity contains
|
|
311
354
|
* @param {ActivityType} [activityType] The activity type
|
|
312
|
-
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
313
|
-
* @param {string} [toIndexedAt] To indexed at including given date
|
|
314
355
|
* @param {string} [transactionHash] The transaction hash of activity
|
|
315
356
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
316
357
|
* @param {number} [pageSize] Maximum number of items to return
|
|
317
358
|
* @param {*} [options] Override http request option.
|
|
318
359
|
* @throws {RequiredError}
|
|
319
360
|
*/
|
|
320
|
-
async listActivities(chainName, contractAddress, tokenId, accountAddress, activityType,
|
|
321
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType,
|
|
361
|
+
async listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options) {
|
|
362
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options);
|
|
363
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
364
|
+
},
|
|
365
|
+
/**
|
|
366
|
+
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
367
|
+
* @summary List history of activities
|
|
368
|
+
* @param {string} chainName The name of chain
|
|
369
|
+
* @param {string} fromUpdatedAt From indexed at including given date
|
|
370
|
+
* @param {string} [toUpdatedAt] To indexed at including given date
|
|
371
|
+
* @param {string} [contractAddress] The contract address of the collection
|
|
372
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
373
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
374
|
+
* @param {*} [options] Override http request option.
|
|
375
|
+
* @throws {RequiredError}
|
|
376
|
+
*/
|
|
377
|
+
async listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options) {
|
|
378
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options);
|
|
322
379
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
323
380
|
},
|
|
324
381
|
};
|
|
@@ -348,7 +405,17 @@ const ActivitiesApiFactory = function (configuration, basePath, axios) {
|
|
|
348
405
|
* @throws {RequiredError}
|
|
349
406
|
*/
|
|
350
407
|
listActivities(requestParameters, options) {
|
|
351
|
-
return localVarFp.listActivities(requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.accountAddress, requestParameters.activityType, requestParameters.
|
|
408
|
+
return localVarFp.listActivities(requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.accountAddress, requestParameters.activityType, requestParameters.transactionHash, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
409
|
+
},
|
|
410
|
+
/**
|
|
411
|
+
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
412
|
+
* @summary List history of activities
|
|
413
|
+
* @param {ActivitiesApiListActivityHistoryRequest} requestParameters Request parameters.
|
|
414
|
+
* @param {*} [options] Override http request option.
|
|
415
|
+
* @throws {RequiredError}
|
|
416
|
+
*/
|
|
417
|
+
listActivityHistory(requestParameters, options) {
|
|
418
|
+
return localVarFp.listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
352
419
|
},
|
|
353
420
|
};
|
|
354
421
|
};
|
|
@@ -379,7 +446,18 @@ class ActivitiesApi extends BaseAPI {
|
|
|
379
446
|
* @memberof ActivitiesApi
|
|
380
447
|
*/
|
|
381
448
|
listActivities(requestParameters, options) {
|
|
382
|
-
return ActivitiesApiFp(this.configuration).listActivities(requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.accountAddress, requestParameters.activityType, requestParameters.
|
|
449
|
+
return ActivitiesApiFp(this.configuration).listActivities(requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.accountAddress, requestParameters.activityType, requestParameters.transactionHash, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
453
|
+
* @summary List history of activities
|
|
454
|
+
* @param {ActivitiesApiListActivityHistoryRequest} requestParameters Request parameters.
|
|
455
|
+
* @param {*} [options] Override http request option.
|
|
456
|
+
* @throws {RequiredError}
|
|
457
|
+
* @memberof ActivitiesApi
|
|
458
|
+
*/
|
|
459
|
+
listActivityHistory(requestParameters, options) {
|
|
460
|
+
return ActivitiesApiFp(this.configuration).listActivityHistory(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.toUpdatedAt, requestParameters.contractAddress, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
383
461
|
}
|
|
384
462
|
}
|
|
385
463
|
|
|
@@ -901,8 +979,8 @@ const MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
901
979
|
};
|
|
902
980
|
},
|
|
903
981
|
/**
|
|
904
|
-
* Get a list of metadata
|
|
905
|
-
* @summary Get a list of metadata
|
|
982
|
+
* Get a list of metadata from the given contract
|
|
983
|
+
* @summary Get a list of metadata from the given contract
|
|
906
984
|
* @param {string} chainName The name of chain
|
|
907
985
|
* @param {string} contractAddress The address of metadata contract
|
|
908
986
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
@@ -947,6 +1025,49 @@ const MetadataApiAxiosParamCreator = function (configuration) {
|
|
|
947
1025
|
options: localVarRequestOptions,
|
|
948
1026
|
};
|
|
949
1027
|
},
|
|
1028
|
+
/**
|
|
1029
|
+
* Get a list of metadata from the given chain
|
|
1030
|
+
* @summary Get a list of metadata from the given chain
|
|
1031
|
+
* @param {string} chainName The name of chain
|
|
1032
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1033
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1034
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1035
|
+
* @param {*} [options] Override http request option.
|
|
1036
|
+
* @throws {RequiredError}
|
|
1037
|
+
*/
|
|
1038
|
+
listMetadataForChain: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
1039
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1040
|
+
assertParamExists('listMetadataForChain', 'chainName', chainName);
|
|
1041
|
+
const localVarPath = `/v1/chains/{chain_name}/metadata`
|
|
1042
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1043
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1044
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1045
|
+
let baseOptions;
|
|
1046
|
+
if (configuration) {
|
|
1047
|
+
baseOptions = configuration.baseOptions;
|
|
1048
|
+
}
|
|
1049
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1050
|
+
const localVarHeaderParameter = {};
|
|
1051
|
+
const localVarQueryParameter = {};
|
|
1052
|
+
if (fromUpdatedAt !== undefined) {
|
|
1053
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
1054
|
+
fromUpdatedAt.toISOString() :
|
|
1055
|
+
fromUpdatedAt;
|
|
1056
|
+
}
|
|
1057
|
+
if (pageCursor !== undefined) {
|
|
1058
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1059
|
+
}
|
|
1060
|
+
if (pageSize !== undefined) {
|
|
1061
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1062
|
+
}
|
|
1063
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1064
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1065
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1066
|
+
return {
|
|
1067
|
+
url: toPathString(localVarUrlObj),
|
|
1068
|
+
options: localVarRequestOptions,
|
|
1069
|
+
};
|
|
1070
|
+
},
|
|
950
1071
|
/**
|
|
951
1072
|
* Refresh stacked metadata
|
|
952
1073
|
* @summary Refresh stacked metadata
|
|
@@ -1050,8 +1171,8 @@ const MetadataApiFp = function (configuration) {
|
|
|
1050
1171
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1051
1172
|
},
|
|
1052
1173
|
/**
|
|
1053
|
-
* Get a list of metadata
|
|
1054
|
-
* @summary Get a list of metadata
|
|
1174
|
+
* Get a list of metadata from the given contract
|
|
1175
|
+
* @summary Get a list of metadata from the given contract
|
|
1055
1176
|
* @param {string} chainName The name of chain
|
|
1056
1177
|
* @param {string} contractAddress The address of metadata contract
|
|
1057
1178
|
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
@@ -1064,6 +1185,20 @@ const MetadataApiFp = function (configuration) {
|
|
|
1064
1185
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1065
1186
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1066
1187
|
},
|
|
1188
|
+
/**
|
|
1189
|
+
* Get a list of metadata from the given chain
|
|
1190
|
+
* @summary Get a list of metadata from the given chain
|
|
1191
|
+
* @param {string} chainName The name of chain
|
|
1192
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1193
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1194
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1195
|
+
* @param {*} [options] Override http request option.
|
|
1196
|
+
* @throws {RequiredError}
|
|
1197
|
+
*/
|
|
1198
|
+
async listMetadataForChain(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1199
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listMetadataForChain(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1200
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1201
|
+
},
|
|
1067
1202
|
/**
|
|
1068
1203
|
* Refresh stacked metadata
|
|
1069
1204
|
* @summary Refresh stacked metadata
|
|
@@ -1110,8 +1245,8 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
1110
1245
|
return localVarFp.getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(axios, basePath));
|
|
1111
1246
|
},
|
|
1112
1247
|
/**
|
|
1113
|
-
* Get a list of metadata
|
|
1114
|
-
* @summary Get a list of metadata
|
|
1248
|
+
* Get a list of metadata from the given contract
|
|
1249
|
+
* @summary Get a list of metadata from the given contract
|
|
1115
1250
|
* @param {MetadataApiListMetadataRequest} requestParameters Request parameters.
|
|
1116
1251
|
* @param {*} [options] Override http request option.
|
|
1117
1252
|
* @throws {RequiredError}
|
|
@@ -1119,6 +1254,16 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
|
|
|
1119
1254
|
listMetadata(requestParameters, options) {
|
|
1120
1255
|
return localVarFp.listMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
1121
1256
|
},
|
|
1257
|
+
/**
|
|
1258
|
+
* Get a list of metadata from the given chain
|
|
1259
|
+
* @summary Get a list of metadata from the given chain
|
|
1260
|
+
* @param {MetadataApiListMetadataForChainRequest} requestParameters Request parameters.
|
|
1261
|
+
* @param {*} [options] Override http request option.
|
|
1262
|
+
* @throws {RequiredError}
|
|
1263
|
+
*/
|
|
1264
|
+
listMetadataForChain(requestParameters, options) {
|
|
1265
|
+
return localVarFp.listMetadataForChain(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
1266
|
+
},
|
|
1122
1267
|
/**
|
|
1123
1268
|
* Refresh stacked metadata
|
|
1124
1269
|
* @summary Refresh stacked metadata
|
|
@@ -1160,8 +1305,8 @@ class MetadataApi extends BaseAPI {
|
|
|
1160
1305
|
return MetadataApiFp(this.configuration).getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(this.axios, this.basePath));
|
|
1161
1306
|
}
|
|
1162
1307
|
/**
|
|
1163
|
-
* Get a list of metadata
|
|
1164
|
-
* @summary Get a list of metadata
|
|
1308
|
+
* Get a list of metadata from the given contract
|
|
1309
|
+
* @summary Get a list of metadata from the given contract
|
|
1165
1310
|
* @param {MetadataApiListMetadataRequest} requestParameters Request parameters.
|
|
1166
1311
|
* @param {*} [options] Override http request option.
|
|
1167
1312
|
* @throws {RequiredError}
|
|
@@ -1170,6 +1315,17 @@ class MetadataApi extends BaseAPI {
|
|
|
1170
1315
|
listMetadata(requestParameters, options) {
|
|
1171
1316
|
return MetadataApiFp(this.configuration).listMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1172
1317
|
}
|
|
1318
|
+
/**
|
|
1319
|
+
* Get a list of metadata from the given chain
|
|
1320
|
+
* @summary Get a list of metadata from the given chain
|
|
1321
|
+
* @param {MetadataApiListMetadataForChainRequest} requestParameters Request parameters.
|
|
1322
|
+
* @param {*} [options] Override http request option.
|
|
1323
|
+
* @throws {RequiredError}
|
|
1324
|
+
* @memberof MetadataApi
|
|
1325
|
+
*/
|
|
1326
|
+
listMetadataForChain(requestParameters, options) {
|
|
1327
|
+
return MetadataApiFp(this.configuration).listMetadataForChain(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1328
|
+
}
|
|
1173
1329
|
/**
|
|
1174
1330
|
* Refresh stacked metadata
|
|
1175
1331
|
* @summary Refresh stacked metadata
|
|
@@ -1213,6 +1369,49 @@ class MetadataApi extends BaseAPI {
|
|
|
1213
1369
|
*/
|
|
1214
1370
|
const NftOwnersApiAxiosParamCreator = function (configuration) {
|
|
1215
1371
|
return {
|
|
1372
|
+
/**
|
|
1373
|
+
* List all NFT owners on a chain
|
|
1374
|
+
* @summary List all NFT owners
|
|
1375
|
+
* @param {string} chainName The name of chain
|
|
1376
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1377
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1378
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1379
|
+
* @param {*} [options] Override http request option.
|
|
1380
|
+
* @throws {RequiredError}
|
|
1381
|
+
*/
|
|
1382
|
+
listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
1383
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
1384
|
+
assertParamExists('listAllNFTOwners', 'chainName', chainName);
|
|
1385
|
+
const localVarPath = `/v1/chains/{chain_name}/nft-owners`
|
|
1386
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1387
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1388
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1389
|
+
let baseOptions;
|
|
1390
|
+
if (configuration) {
|
|
1391
|
+
baseOptions = configuration.baseOptions;
|
|
1392
|
+
}
|
|
1393
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1394
|
+
const localVarHeaderParameter = {};
|
|
1395
|
+
const localVarQueryParameter = {};
|
|
1396
|
+
if (fromUpdatedAt !== undefined) {
|
|
1397
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
1398
|
+
fromUpdatedAt.toISOString() :
|
|
1399
|
+
fromUpdatedAt;
|
|
1400
|
+
}
|
|
1401
|
+
if (pageCursor !== undefined) {
|
|
1402
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1403
|
+
}
|
|
1404
|
+
if (pageSize !== undefined) {
|
|
1405
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
1406
|
+
}
|
|
1407
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1408
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1409
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1410
|
+
return {
|
|
1411
|
+
url: toPathString(localVarUrlObj),
|
|
1412
|
+
options: localVarRequestOptions,
|
|
1413
|
+
};
|
|
1414
|
+
},
|
|
1216
1415
|
/**
|
|
1217
1416
|
* List NFT owners by token ID
|
|
1218
1417
|
* @summary List NFT owners by token ID
|
|
@@ -1314,6 +1513,20 @@ const NftOwnersApiAxiosParamCreator = function (configuration) {
|
|
|
1314
1513
|
const NftOwnersApiFp = function (configuration) {
|
|
1315
1514
|
const localVarAxiosParamCreator = NftOwnersApiAxiosParamCreator(configuration);
|
|
1316
1515
|
return {
|
|
1516
|
+
/**
|
|
1517
|
+
* List all NFT owners on a chain
|
|
1518
|
+
* @summary List all NFT owners
|
|
1519
|
+
* @param {string} chainName The name of chain
|
|
1520
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1521
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1522
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1523
|
+
* @param {*} [options] Override http request option.
|
|
1524
|
+
* @throws {RequiredError}
|
|
1525
|
+
*/
|
|
1526
|
+
async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1527
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1528
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1529
|
+
},
|
|
1317
1530
|
/**
|
|
1318
1531
|
* List NFT owners by token ID
|
|
1319
1532
|
* @summary List NFT owners by token ID
|
|
@@ -1353,6 +1566,16 @@ const NftOwnersApiFp = function (configuration) {
|
|
|
1353
1566
|
const NftOwnersApiFactory = function (configuration, basePath, axios) {
|
|
1354
1567
|
const localVarFp = NftOwnersApiFp(configuration);
|
|
1355
1568
|
return {
|
|
1569
|
+
/**
|
|
1570
|
+
* List all NFT owners on a chain
|
|
1571
|
+
* @summary List all NFT owners
|
|
1572
|
+
* @param {NftOwnersApiListAllNFTOwnersRequest} requestParameters Request parameters.
|
|
1573
|
+
* @param {*} [options] Override http request option.
|
|
1574
|
+
* @throws {RequiredError}
|
|
1575
|
+
*/
|
|
1576
|
+
listAllNFTOwners(requestParameters, options) {
|
|
1577
|
+
return localVarFp.listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
1578
|
+
},
|
|
1356
1579
|
/**
|
|
1357
1580
|
* List NFT owners by token ID
|
|
1358
1581
|
* @summary List NFT owners by token ID
|
|
@@ -1382,6 +1605,17 @@ const NftOwnersApiFactory = function (configuration, basePath, axios) {
|
|
|
1382
1605
|
* @extends {BaseAPI}
|
|
1383
1606
|
*/
|
|
1384
1607
|
class NftOwnersApi extends BaseAPI {
|
|
1608
|
+
/**
|
|
1609
|
+
* List all NFT owners on a chain
|
|
1610
|
+
* @summary List all NFT owners
|
|
1611
|
+
* @param {NftOwnersApiListAllNFTOwnersRequest} requestParameters Request parameters.
|
|
1612
|
+
* @param {*} [options] Override http request option.
|
|
1613
|
+
* @throws {RequiredError}
|
|
1614
|
+
* @memberof NftOwnersApi
|
|
1615
|
+
*/
|
|
1616
|
+
listAllNFTOwners(requestParameters, options) {
|
|
1617
|
+
return NftOwnersApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1618
|
+
}
|
|
1385
1619
|
/**
|
|
1386
1620
|
* List NFT owners by token ID
|
|
1387
1621
|
* @summary List NFT owners by token ID
|
|
@@ -1462,51 +1696,6 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
1462
1696
|
options: localVarRequestOptions,
|
|
1463
1697
|
};
|
|
1464
1698
|
},
|
|
1465
|
-
/**
|
|
1466
|
-
* List all NFT owners on a chain
|
|
1467
|
-
* @summary List all NFT owners
|
|
1468
|
-
* @param {string} chainName The name of chain
|
|
1469
|
-
* @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
|
|
1470
|
-
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1471
|
-
* @param {number} [pageSize] Maximum number of items to return
|
|
1472
|
-
* @param {*} [options] Override http request option.
|
|
1473
|
-
* @throws {RequiredError}
|
|
1474
|
-
*/
|
|
1475
|
-
listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
1476
|
-
// verify required parameter 'chainName' is not null or undefined
|
|
1477
|
-
assertParamExists('listAllNFTOwners', 'chainName', chainName);
|
|
1478
|
-
// verify required parameter 'fromUpdatedAt' is not null or undefined
|
|
1479
|
-
assertParamExists('listAllNFTOwners', 'fromUpdatedAt', fromUpdatedAt);
|
|
1480
|
-
const localVarPath = `/v1/chains/{chain_name}/nft-owners`
|
|
1481
|
-
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1482
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1483
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1484
|
-
let baseOptions;
|
|
1485
|
-
if (configuration) {
|
|
1486
|
-
baseOptions = configuration.baseOptions;
|
|
1487
|
-
}
|
|
1488
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1489
|
-
const localVarHeaderParameter = {};
|
|
1490
|
-
const localVarQueryParameter = {};
|
|
1491
|
-
if (fromUpdatedAt !== undefined) {
|
|
1492
|
-
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
1493
|
-
fromUpdatedAt.toISOString() :
|
|
1494
|
-
fromUpdatedAt;
|
|
1495
|
-
}
|
|
1496
|
-
if (pageCursor !== undefined) {
|
|
1497
|
-
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1498
|
-
}
|
|
1499
|
-
if (pageSize !== undefined) {
|
|
1500
|
-
localVarQueryParameter['page_size'] = pageSize;
|
|
1501
|
-
}
|
|
1502
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1503
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1504
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1505
|
-
return {
|
|
1506
|
-
url: toPathString(localVarUrlObj),
|
|
1507
|
-
options: localVarRequestOptions,
|
|
1508
|
-
};
|
|
1509
|
-
},
|
|
1510
1699
|
/**
|
|
1511
1700
|
* List all NFTs on a chain
|
|
1512
1701
|
* @summary List all NFTs
|
|
@@ -1664,20 +1853,6 @@ const NftsApiFp = function (configuration) {
|
|
|
1664
1853
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getNFT(contractAddress, tokenId, chainName, options);
|
|
1665
1854
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1666
1855
|
},
|
|
1667
|
-
/**
|
|
1668
|
-
* List all NFT owners on a chain
|
|
1669
|
-
* @summary List all NFT owners
|
|
1670
|
-
* @param {string} chainName The name of chain
|
|
1671
|
-
* @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
|
|
1672
|
-
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1673
|
-
* @param {number} [pageSize] Maximum number of items to return
|
|
1674
|
-
* @param {*} [options] Override http request option.
|
|
1675
|
-
* @throws {RequiredError}
|
|
1676
|
-
*/
|
|
1677
|
-
async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1678
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1679
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1680
|
-
},
|
|
1681
1856
|
/**
|
|
1682
1857
|
* List all NFTs on a chain
|
|
1683
1858
|
* @summary List all NFTs
|
|
@@ -1741,16 +1916,6 @@ const NftsApiFactory = function (configuration, basePath, axios) {
|
|
|
1741
1916
|
getNFT(requestParameters, options) {
|
|
1742
1917
|
return localVarFp.getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(axios, basePath));
|
|
1743
1918
|
},
|
|
1744
|
-
/**
|
|
1745
|
-
* List all NFT owners on a chain
|
|
1746
|
-
* @summary List all NFT owners
|
|
1747
|
-
* @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
|
|
1748
|
-
* @param {*} [options] Override http request option.
|
|
1749
|
-
* @throws {RequiredError}
|
|
1750
|
-
*/
|
|
1751
|
-
listAllNFTOwners(requestParameters, options) {
|
|
1752
|
-
return localVarFp.listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(axios, basePath));
|
|
1753
|
-
},
|
|
1754
1919
|
/**
|
|
1755
1920
|
* List all NFTs on a chain
|
|
1756
1921
|
* @summary List all NFTs
|
|
@@ -1801,17 +1966,6 @@ class NftsApi extends BaseAPI {
|
|
|
1801
1966
|
getNFT(requestParameters, options) {
|
|
1802
1967
|
return NftsApiFp(this.configuration).getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(this.axios, this.basePath));
|
|
1803
1968
|
}
|
|
1804
|
-
/**
|
|
1805
|
-
* List all NFT owners on a chain
|
|
1806
|
-
* @summary List all NFT owners
|
|
1807
|
-
* @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
|
|
1808
|
-
* @param {*} [options] Override http request option.
|
|
1809
|
-
* @throws {RequiredError}
|
|
1810
|
-
* @memberof NftsApi
|
|
1811
|
-
*/
|
|
1812
|
-
listAllNFTOwners(requestParameters, options) {
|
|
1813
|
-
return NftsApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1814
|
-
}
|
|
1815
1969
|
/**
|
|
1816
1970
|
* List all NFTs on a chain
|
|
1817
1971
|
* @summary List all NFTs
|
|
@@ -2041,7 +2195,10 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
2041
2195
|
* @param {OrderStatusName} [status] Order status to filter by
|
|
2042
2196
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
2043
2197
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
2198
|
+
* @param {string} [accountAddress] The account address of the user who created the listing
|
|
2199
|
+
* @param {string} [sellItemMetadataId] The metadata_id of the sell item
|
|
2044
2200
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
2201
|
+
* @param {string} [fromUpdatedAt] From updated at including given date
|
|
2045
2202
|
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
2046
2203
|
* @param {ListListingsSortByEnum} [sortBy] Order field to sort by
|
|
2047
2204
|
* @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
|
|
@@ -2049,7 +2206,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
2049
2206
|
* @param {*} [options] Override http request option.
|
|
2050
2207
|
* @throws {RequiredError}
|
|
2051
2208
|
*/
|
|
2052
|
-
listListings: async (chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
2209
|
+
listListings: async (chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
2053
2210
|
// verify required parameter 'chainName' is not null or undefined
|
|
2054
2211
|
assertParamExists('listListings', 'chainName', chainName);
|
|
2055
2212
|
const localVarPath = `/v1/chains/{chain_name}/orders/listings`
|
|
@@ -2072,9 +2229,20 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
2072
2229
|
if (buyItemContractAddress !== undefined) {
|
|
2073
2230
|
localVarQueryParameter['buy_item_contract_address'] = buyItemContractAddress;
|
|
2074
2231
|
}
|
|
2232
|
+
if (accountAddress !== undefined) {
|
|
2233
|
+
localVarQueryParameter['account_address'] = accountAddress;
|
|
2234
|
+
}
|
|
2235
|
+
if (sellItemMetadataId !== undefined) {
|
|
2236
|
+
localVarQueryParameter['sell_item_metadata_id'] = sellItemMetadataId;
|
|
2237
|
+
}
|
|
2075
2238
|
if (sellItemTokenId !== undefined) {
|
|
2076
2239
|
localVarQueryParameter['sell_item_token_id'] = sellItemTokenId;
|
|
2077
2240
|
}
|
|
2241
|
+
if (fromUpdatedAt !== undefined) {
|
|
2242
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
2243
|
+
fromUpdatedAt.toISOString() :
|
|
2244
|
+
fromUpdatedAt;
|
|
2245
|
+
}
|
|
2078
2246
|
if (pageSize !== undefined) {
|
|
2079
2247
|
localVarQueryParameter['page_size'] = pageSize;
|
|
2080
2248
|
}
|
|
@@ -2100,6 +2268,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
2100
2268
|
* @summary List all trades
|
|
2101
2269
|
* @param {string} chainName
|
|
2102
2270
|
* @param {string} [accountAddress]
|
|
2271
|
+
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
2103
2272
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
2104
2273
|
* @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
|
|
2105
2274
|
* @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
|
|
@@ -2107,7 +2276,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
2107
2276
|
* @param {*} [options] Override http request option.
|
|
2108
2277
|
* @throws {RequiredError}
|
|
2109
2278
|
*/
|
|
2110
|
-
listTrades: async (chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
2279
|
+
listTrades: async (chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
2111
2280
|
// verify required parameter 'chainName' is not null or undefined
|
|
2112
2281
|
assertParamExists('listTrades', 'chainName', chainName);
|
|
2113
2282
|
const localVarPath = `/v1/chains/{chain_name}/trades`
|
|
@@ -2124,6 +2293,11 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
2124
2293
|
if (accountAddress !== undefined) {
|
|
2125
2294
|
localVarQueryParameter['account_address'] = accountAddress;
|
|
2126
2295
|
}
|
|
2296
|
+
if (fromIndexedAt !== undefined) {
|
|
2297
|
+
localVarQueryParameter['from_indexed_at'] = (fromIndexedAt instanceof Date) ?
|
|
2298
|
+
fromIndexedAt.toISOString() :
|
|
2299
|
+
fromIndexedAt;
|
|
2300
|
+
}
|
|
2127
2301
|
if (pageSize !== undefined) {
|
|
2128
2302
|
localVarQueryParameter['page_size'] = pageSize;
|
|
2129
2303
|
}
|
|
@@ -2220,7 +2394,10 @@ const OrdersApiFp = function (configuration) {
|
|
|
2220
2394
|
* @param {OrderStatusName} [status] Order status to filter by
|
|
2221
2395
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
2222
2396
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
2397
|
+
* @param {string} [accountAddress] The account address of the user who created the listing
|
|
2398
|
+
* @param {string} [sellItemMetadataId] The metadata_id of the sell item
|
|
2223
2399
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
2400
|
+
* @param {string} [fromUpdatedAt] From updated at including given date
|
|
2224
2401
|
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
2225
2402
|
* @param {ListListingsSortByEnum} [sortBy] Order field to sort by
|
|
2226
2403
|
* @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
|
|
@@ -2228,8 +2405,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
2228
2405
|
* @param {*} [options] Override http request option.
|
|
2229
2406
|
* @throws {RequiredError}
|
|
2230
2407
|
*/
|
|
2231
|
-
async listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
2232
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
2408
|
+
async listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
2409
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
2233
2410
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2234
2411
|
},
|
|
2235
2412
|
/**
|
|
@@ -2237,6 +2414,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
2237
2414
|
* @summary List all trades
|
|
2238
2415
|
* @param {string} chainName
|
|
2239
2416
|
* @param {string} [accountAddress]
|
|
2417
|
+
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
2240
2418
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
2241
2419
|
* @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
|
|
2242
2420
|
* @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
|
|
@@ -2244,8 +2422,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
2244
2422
|
* @param {*} [options] Override http request option.
|
|
2245
2423
|
* @throws {RequiredError}
|
|
2246
2424
|
*/
|
|
2247
|
-
async listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
2248
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
2425
|
+
async listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
2426
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
2249
2427
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2250
2428
|
},
|
|
2251
2429
|
};
|
|
@@ -2315,7 +2493,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
2315
2493
|
* @throws {RequiredError}
|
|
2316
2494
|
*/
|
|
2317
2495
|
listListings(requestParameters, options) {
|
|
2318
|
-
return localVarFp.listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.sellItemTokenId, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
|
|
2496
|
+
return localVarFp.listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.accountAddress, requestParameters.sellItemMetadataId, requestParameters.sellItemTokenId, requestParameters.fromUpdatedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
|
|
2319
2497
|
},
|
|
2320
2498
|
/**
|
|
2321
2499
|
* List all trades
|
|
@@ -2325,7 +2503,7 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
|
|
|
2325
2503
|
* @throws {RequiredError}
|
|
2326
2504
|
*/
|
|
2327
2505
|
listTrades(requestParameters, options) {
|
|
2328
|
-
return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
|
|
2506
|
+
return localVarFp.listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(axios, basePath));
|
|
2329
2507
|
},
|
|
2330
2508
|
};
|
|
2331
2509
|
};
|
|
@@ -2400,7 +2578,7 @@ class OrdersApi extends BaseAPI {
|
|
|
2400
2578
|
* @memberof OrdersApi
|
|
2401
2579
|
*/
|
|
2402
2580
|
listListings(requestParameters, options) {
|
|
2403
|
-
return OrdersApiFp(this.configuration).listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.sellItemTokenId, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
2581
|
+
return OrdersApiFp(this.configuration).listListings(requestParameters.chainName, requestParameters.status, requestParameters.sellItemContractAddress, requestParameters.buyItemContractAddress, requestParameters.accountAddress, requestParameters.sellItemMetadataId, requestParameters.sellItemTokenId, requestParameters.fromUpdatedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
2404
2582
|
}
|
|
2405
2583
|
/**
|
|
2406
2584
|
* List all trades
|
|
@@ -2411,7 +2589,7 @@ class OrdersApi extends BaseAPI {
|
|
|
2411
2589
|
* @memberof OrdersApi
|
|
2412
2590
|
*/
|
|
2413
2591
|
listTrades(requestParameters, options) {
|
|
2414
|
-
return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
2592
|
+
return OrdersApiFp(this.configuration).listTrades(requestParameters.chainName, requestParameters.accountAddress, requestParameters.fromIndexedAt, requestParameters.pageSize, requestParameters.sortBy, requestParameters.sortDirection, requestParameters.pageCursor, options).then((request) => request(this.axios, this.basePath));
|
|
2415
2593
|
}
|
|
2416
2594
|
}
|
|
2417
2595
|
/**
|
|
@@ -2532,6 +2710,50 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
2532
2710
|
options: localVarRequestOptions,
|
|
2533
2711
|
};
|
|
2534
2712
|
},
|
|
2713
|
+
/**
|
|
2714
|
+
* Get a contract abi by contract address and method id
|
|
2715
|
+
* @summary Get a contract abi
|
|
2716
|
+
* @param {string} chainName
|
|
2717
|
+
* @param {string} contractAddress contract address
|
|
2718
|
+
* @param {string} methodId method id
|
|
2719
|
+
* @param {*} [options] Override http request option.
|
|
2720
|
+
* @throws {RequiredError}
|
|
2721
|
+
*/
|
|
2722
|
+
getContractAbi: async (chainName, contractAddress, methodId, options = {}) => {
|
|
2723
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
2724
|
+
assertParamExists('getContractAbi', 'chainName', chainName);
|
|
2725
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
2726
|
+
assertParamExists('getContractAbi', 'contractAddress', contractAddress);
|
|
2727
|
+
// verify required parameter 'methodId' is not null or undefined
|
|
2728
|
+
assertParamExists('getContractAbi', 'methodId', methodId);
|
|
2729
|
+
const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
|
|
2730
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
2731
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2732
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2733
|
+
let baseOptions;
|
|
2734
|
+
if (configuration) {
|
|
2735
|
+
baseOptions = configuration.baseOptions;
|
|
2736
|
+
}
|
|
2737
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2738
|
+
const localVarHeaderParameter = {};
|
|
2739
|
+
const localVarQueryParameter = {};
|
|
2740
|
+
// authentication BearerAuth required
|
|
2741
|
+
// http bearer authentication required
|
|
2742
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2743
|
+
if (contractAddress !== undefined) {
|
|
2744
|
+
localVarQueryParameter['contract_address'] = contractAddress;
|
|
2745
|
+
}
|
|
2746
|
+
if (methodId !== undefined) {
|
|
2747
|
+
localVarQueryParameter['method_id'] = methodId;
|
|
2748
|
+
}
|
|
2749
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2750
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2751
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2752
|
+
return {
|
|
2753
|
+
url: toPathString(localVarUrlObj),
|
|
2754
|
+
options: localVarRequestOptions,
|
|
2755
|
+
};
|
|
2756
|
+
},
|
|
2535
2757
|
/**
|
|
2536
2758
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
2537
2759
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -2632,6 +2854,19 @@ const PassportApiFp = function (configuration) {
|
|
|
2632
2854
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCounterfactualAddressDeprecated(createCounterfactualAddressRequestDeprecated, options);
|
|
2633
2855
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2634
2856
|
},
|
|
2857
|
+
/**
|
|
2858
|
+
* Get a contract abi by contract address and method id
|
|
2859
|
+
* @summary Get a contract abi
|
|
2860
|
+
* @param {string} chainName
|
|
2861
|
+
* @param {string} contractAddress contract address
|
|
2862
|
+
* @param {string} methodId method id
|
|
2863
|
+
* @param {*} [options] Override http request option.
|
|
2864
|
+
* @throws {RequiredError}
|
|
2865
|
+
*/
|
|
2866
|
+
async getContractAbi(chainName, contractAddress, methodId, options) {
|
|
2867
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContractAbi(chainName, contractAddress, methodId, options);
|
|
2868
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
2869
|
+
},
|
|
2635
2870
|
/**
|
|
2636
2871
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
2637
2872
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -2684,6 +2919,16 @@ const PassportApiFactory = function (configuration, basePath, axios) {
|
|
|
2684
2919
|
createCounterfactualAddressDeprecated(requestParameters, options) {
|
|
2685
2920
|
return localVarFp.createCounterfactualAddressDeprecated(requestParameters.createCounterfactualAddressRequestDeprecated, options).then((request) => request(axios, basePath));
|
|
2686
2921
|
},
|
|
2922
|
+
/**
|
|
2923
|
+
* Get a contract abi by contract address and method id
|
|
2924
|
+
* @summary Get a contract abi
|
|
2925
|
+
* @param {PassportApiGetContractAbiRequest} requestParameters Request parameters.
|
|
2926
|
+
* @param {*} [options] Override http request option.
|
|
2927
|
+
* @throws {RequiredError}
|
|
2928
|
+
*/
|
|
2929
|
+
getContractAbi(requestParameters, options) {
|
|
2930
|
+
return localVarFp.getContractAbi(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, options).then((request) => request(axios, basePath));
|
|
2931
|
+
},
|
|
2687
2932
|
/**
|
|
2688
2933
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
2689
2934
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -2735,6 +2980,17 @@ class PassportApi extends BaseAPI {
|
|
|
2735
2980
|
createCounterfactualAddressDeprecated(requestParameters, options) {
|
|
2736
2981
|
return PassportApiFp(this.configuration).createCounterfactualAddressDeprecated(requestParameters.createCounterfactualAddressRequestDeprecated, options).then((request) => request(this.axios, this.basePath));
|
|
2737
2982
|
}
|
|
2983
|
+
/**
|
|
2984
|
+
* Get a contract abi by contract address and method id
|
|
2985
|
+
* @summary Get a contract abi
|
|
2986
|
+
* @param {PassportApiGetContractAbiRequest} requestParameters Request parameters.
|
|
2987
|
+
* @param {*} [options] Override http request option.
|
|
2988
|
+
* @throws {RequiredError}
|
|
2989
|
+
* @memberof PassportApi
|
|
2990
|
+
*/
|
|
2991
|
+
getContractAbi(requestParameters, options) {
|
|
2992
|
+
return PassportApiFp(this.configuration).getContractAbi(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, options).then((request) => request(this.axios, this.basePath));
|
|
2993
|
+
}
|
|
2738
2994
|
/**
|
|
2739
2995
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
2740
2996
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -3039,6 +3295,125 @@ class Configuration {
|
|
|
3039
3295
|
}
|
|
3040
3296
|
}
|
|
3041
3297
|
|
|
3298
|
+
/* tslint:disable */
|
|
3299
|
+
/* eslint-disable */
|
|
3300
|
+
/**
|
|
3301
|
+
* Immutable zkEVM API
|
|
3302
|
+
* Immutable Multi Rollup API
|
|
3303
|
+
*
|
|
3304
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3305
|
+
* Contact: support@immutable.com
|
|
3306
|
+
*
|
|
3307
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3308
|
+
* https://openapi-generator.tech
|
|
3309
|
+
* Do not edit the class manually.
|
|
3310
|
+
*/
|
|
3311
|
+
const APIError400AllOfCodeEnum = {
|
|
3312
|
+
ValidationError: 'VALIDATION_ERROR'
|
|
3313
|
+
};
|
|
3314
|
+
|
|
3315
|
+
/* tslint:disable */
|
|
3316
|
+
/* eslint-disable */
|
|
3317
|
+
/**
|
|
3318
|
+
* Immutable zkEVM API
|
|
3319
|
+
* Immutable Multi Rollup API
|
|
3320
|
+
*
|
|
3321
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3322
|
+
* Contact: support@immutable.com
|
|
3323
|
+
*
|
|
3324
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3325
|
+
* https://openapi-generator.tech
|
|
3326
|
+
* Do not edit the class manually.
|
|
3327
|
+
*/
|
|
3328
|
+
const APIError401AllOfCodeEnum = {
|
|
3329
|
+
UnauthorisedRequest: 'UNAUTHORISED_REQUEST'
|
|
3330
|
+
};
|
|
3331
|
+
|
|
3332
|
+
/* tslint:disable */
|
|
3333
|
+
/* eslint-disable */
|
|
3334
|
+
/**
|
|
3335
|
+
* Immutable zkEVM API
|
|
3336
|
+
* Immutable Multi Rollup API
|
|
3337
|
+
*
|
|
3338
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3339
|
+
* Contact: support@immutable.com
|
|
3340
|
+
*
|
|
3341
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3342
|
+
* https://openapi-generator.tech
|
|
3343
|
+
* Do not edit the class manually.
|
|
3344
|
+
*/
|
|
3345
|
+
const APIError403AllOfCodeEnum = {
|
|
3346
|
+
AuthenticationError: 'AUTHENTICATION_ERROR'
|
|
3347
|
+
};
|
|
3348
|
+
|
|
3349
|
+
/* tslint:disable */
|
|
3350
|
+
/* eslint-disable */
|
|
3351
|
+
/**
|
|
3352
|
+
* Immutable zkEVM API
|
|
3353
|
+
* Immutable Multi Rollup API
|
|
3354
|
+
*
|
|
3355
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3356
|
+
* Contact: support@immutable.com
|
|
3357
|
+
*
|
|
3358
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3359
|
+
* https://openapi-generator.tech
|
|
3360
|
+
* Do not edit the class manually.
|
|
3361
|
+
*/
|
|
3362
|
+
const APIError404AllOfCodeEnum = {
|
|
3363
|
+
ResourceNotFound: 'RESOURCE_NOT_FOUND'
|
|
3364
|
+
};
|
|
3365
|
+
|
|
3366
|
+
/* tslint:disable */
|
|
3367
|
+
/* eslint-disable */
|
|
3368
|
+
/**
|
|
3369
|
+
* Immutable zkEVM API
|
|
3370
|
+
* Immutable Multi Rollup API
|
|
3371
|
+
*
|
|
3372
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3373
|
+
* Contact: support@immutable.com
|
|
3374
|
+
*
|
|
3375
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3376
|
+
* https://openapi-generator.tech
|
|
3377
|
+
* Do not edit the class manually.
|
|
3378
|
+
*/
|
|
3379
|
+
const APIError429AllOfCodeEnum = {
|
|
3380
|
+
TooManyRequestsError: 'TOO_MANY_REQUESTS_ERROR'
|
|
3381
|
+
};
|
|
3382
|
+
|
|
3383
|
+
/* tslint:disable */
|
|
3384
|
+
/* eslint-disable */
|
|
3385
|
+
/**
|
|
3386
|
+
* Immutable zkEVM API
|
|
3387
|
+
* Immutable Multi Rollup API
|
|
3388
|
+
*
|
|
3389
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3390
|
+
* Contact: support@immutable.com
|
|
3391
|
+
*
|
|
3392
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3393
|
+
* https://openapi-generator.tech
|
|
3394
|
+
* Do not edit the class manually.
|
|
3395
|
+
*/
|
|
3396
|
+
const APIError500AllOfCodeEnum = {
|
|
3397
|
+
InternalServerError: 'INTERNAL_SERVER_ERROR'
|
|
3398
|
+
};
|
|
3399
|
+
|
|
3400
|
+
/* tslint:disable */
|
|
3401
|
+
/* eslint-disable */
|
|
3402
|
+
/**
|
|
3403
|
+
* Immutable zkEVM API
|
|
3404
|
+
* Immutable Multi Rollup API
|
|
3405
|
+
*
|
|
3406
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3407
|
+
* Contact: support@immutable.com
|
|
3408
|
+
*
|
|
3409
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3410
|
+
* https://openapi-generator.tech
|
|
3411
|
+
* Do not edit the class manually.
|
|
3412
|
+
*/
|
|
3413
|
+
const APIError501AllOfCodeEnum = {
|
|
3414
|
+
NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
|
|
3415
|
+
};
|
|
3416
|
+
|
|
3042
3417
|
/* tslint:disable */
|
|
3043
3418
|
/* eslint-disable */
|
|
3044
3419
|
/**
|
|
@@ -3123,7 +3498,25 @@ const CancelledOrderStatusCancellationTypeEnum = {
|
|
|
3123
3498
|
* @enum {string}
|
|
3124
3499
|
*/
|
|
3125
3500
|
const CollectionContractType = {
|
|
3126
|
-
Erc721: 'ERC721'
|
|
3501
|
+
Erc721: 'ERC721',
|
|
3502
|
+
Erc1155: 'ERC1155'
|
|
3503
|
+
};
|
|
3504
|
+
|
|
3505
|
+
/* tslint:disable */
|
|
3506
|
+
/* eslint-disable */
|
|
3507
|
+
/**
|
|
3508
|
+
* Immutable zkEVM API
|
|
3509
|
+
* Immutable Multi Rollup API
|
|
3510
|
+
*
|
|
3511
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3512
|
+
* Contact: support@immutable.com
|
|
3513
|
+
*
|
|
3514
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3515
|
+
* https://openapi-generator.tech
|
|
3516
|
+
* Do not edit the class manually.
|
|
3517
|
+
*/
|
|
3518
|
+
const ERC1155ItemTypeEnum = {
|
|
3519
|
+
Erc1155: 'ERC1155'
|
|
3127
3520
|
};
|
|
3128
3521
|
|
|
3129
3522
|
/* tslint:disable */
|
|
@@ -3139,7 +3532,7 @@ const CollectionContractType = {
|
|
|
3139
3532
|
* https://openapi-generator.tech
|
|
3140
3533
|
* Do not edit the class manually.
|
|
3141
3534
|
*/
|
|
3142
|
-
const
|
|
3535
|
+
const ERC20ItemTypeEnum = {
|
|
3143
3536
|
Erc20: 'ERC20'
|
|
3144
3537
|
};
|
|
3145
3538
|
|
|
@@ -3156,7 +3549,7 @@ const ERC20ItemItemTypeEnum = {
|
|
|
3156
3549
|
* https://openapi-generator.tech
|
|
3157
3550
|
* Do not edit the class manually.
|
|
3158
3551
|
*/
|
|
3159
|
-
const
|
|
3552
|
+
const ERC721ItemTypeEnum = {
|
|
3160
3553
|
Erc721: 'ERC721'
|
|
3161
3554
|
};
|
|
3162
3555
|
|
|
@@ -3191,7 +3584,7 @@ const ExpiredOrderStatusNameEnum = {
|
|
|
3191
3584
|
* Do not edit the class manually.
|
|
3192
3585
|
*/
|
|
3193
3586
|
const FailedOrderCancellationReasonCodeEnum = {
|
|
3194
|
-
|
|
3587
|
+
Filled: 'FILLED'
|
|
3195
3588
|
};
|
|
3196
3589
|
|
|
3197
3590
|
/* tslint:disable */
|
|
@@ -3207,7 +3600,7 @@ const FailedOrderCancellationReasonCodeEnum = {
|
|
|
3207
3600
|
* https://openapi-generator.tech
|
|
3208
3601
|
* Do not edit the class manually.
|
|
3209
3602
|
*/
|
|
3210
|
-
const
|
|
3603
|
+
const FeeTypeEnum = {
|
|
3211
3604
|
Royalty: 'ROYALTY',
|
|
3212
3605
|
MakerEcosystem: 'MAKER_ECOSYSTEM',
|
|
3213
3606
|
TakerEcosystem: 'TAKER_ECOSYSTEM',
|
|
@@ -3231,6 +3624,23 @@ const FilledOrderStatusNameEnum = {
|
|
|
3231
3624
|
Filled: 'FILLED'
|
|
3232
3625
|
};
|
|
3233
3626
|
|
|
3627
|
+
/* tslint:disable */
|
|
3628
|
+
/* eslint-disable */
|
|
3629
|
+
/**
|
|
3630
|
+
* Immutable zkEVM API
|
|
3631
|
+
* Immutable Multi Rollup API
|
|
3632
|
+
*
|
|
3633
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3634
|
+
* Contact: support@immutable.com
|
|
3635
|
+
*
|
|
3636
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3637
|
+
* https://openapi-generator.tech
|
|
3638
|
+
* Do not edit the class manually.
|
|
3639
|
+
*/
|
|
3640
|
+
const GetContractAbiResTransactionTypeEnum = {
|
|
3641
|
+
Erc20Approve: 'ERC20_APPROVE'
|
|
3642
|
+
};
|
|
3643
|
+
|
|
3234
3644
|
/* tslint:disable */
|
|
3235
3645
|
/* eslint-disable */
|
|
3236
3646
|
/**
|
|
@@ -3248,6 +3658,30 @@ const InactiveOrderStatusNameEnum = {
|
|
|
3248
3658
|
Inactive: 'INACTIVE'
|
|
3249
3659
|
};
|
|
3250
3660
|
|
|
3661
|
+
/* tslint:disable */
|
|
3662
|
+
/* eslint-disable */
|
|
3663
|
+
/**
|
|
3664
|
+
* Immutable zkEVM API
|
|
3665
|
+
* Immutable Multi Rollup API
|
|
3666
|
+
*
|
|
3667
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3668
|
+
* Contact: support@immutable.com
|
|
3669
|
+
*
|
|
3670
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3671
|
+
* https://openapi-generator.tech
|
|
3672
|
+
* Do not edit the class manually.
|
|
3673
|
+
*/
|
|
3674
|
+
/**
|
|
3675
|
+
* The status of the mint request
|
|
3676
|
+
* @export
|
|
3677
|
+
* @enum {string}
|
|
3678
|
+
*/
|
|
3679
|
+
const MintRequestStatus = {
|
|
3680
|
+
Pending: 'pending',
|
|
3681
|
+
Succeeded: 'succeeded',
|
|
3682
|
+
Failed: 'failed'
|
|
3683
|
+
};
|
|
3684
|
+
|
|
3251
3685
|
/* tslint:disable */
|
|
3252
3686
|
/* eslint-disable */
|
|
3253
3687
|
/**
|
|
@@ -3283,8 +3717,28 @@ const NFTContractType = {
|
|
|
3283
3717
|
* https://openapi-generator.tech
|
|
3284
3718
|
* Do not edit the class manually.
|
|
3285
3719
|
*/
|
|
3286
|
-
const
|
|
3287
|
-
Native: 'NATIVE'
|
|
3720
|
+
const NativeItemTypeEnum = {
|
|
3721
|
+
Native: 'NATIVE',
|
|
3722
|
+
Erc20: 'ERC20',
|
|
3723
|
+
Erc721: 'ERC721',
|
|
3724
|
+
Erc1155: 'ERC1155'
|
|
3725
|
+
};
|
|
3726
|
+
|
|
3727
|
+
/* tslint:disable */
|
|
3728
|
+
/* eslint-disable */
|
|
3729
|
+
/**
|
|
3730
|
+
* Immutable zkEVM API
|
|
3731
|
+
* Immutable Multi Rollup API
|
|
3732
|
+
*
|
|
3733
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3734
|
+
* Contact: support@immutable.com
|
|
3735
|
+
*
|
|
3736
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3737
|
+
* https://openapi-generator.tech
|
|
3738
|
+
* Do not edit the class manually.
|
|
3739
|
+
*/
|
|
3740
|
+
const OrderTypeEnum = {
|
|
3741
|
+
Listing: 'LISTING'
|
|
3288
3742
|
};
|
|
3289
3743
|
|
|
3290
3744
|
/* tslint:disable */
|
|
@@ -3403,6 +3857,13 @@ const TokenContractType = {
|
|
|
3403
3857
|
|
|
3404
3858
|
var index = /*#__PURE__*/Object.freeze({
|
|
3405
3859
|
__proto__: null,
|
|
3860
|
+
APIError400AllOfCodeEnum: APIError400AllOfCodeEnum,
|
|
3861
|
+
APIError401AllOfCodeEnum: APIError401AllOfCodeEnum,
|
|
3862
|
+
APIError403AllOfCodeEnum: APIError403AllOfCodeEnum,
|
|
3863
|
+
APIError404AllOfCodeEnum: APIError404AllOfCodeEnum,
|
|
3864
|
+
APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
|
|
3865
|
+
APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
|
|
3866
|
+
APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
|
|
3406
3867
|
ActiveOrderStatusNameEnum: ActiveOrderStatusNameEnum,
|
|
3407
3868
|
ActivitiesApi: ActivitiesApi,
|
|
3408
3869
|
ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
|
|
@@ -3421,12 +3882,14 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3421
3882
|
CollectionsApiFactory: CollectionsApiFactory,
|
|
3422
3883
|
CollectionsApiFp: CollectionsApiFp,
|
|
3423
3884
|
Configuration: Configuration,
|
|
3424
|
-
|
|
3425
|
-
|
|
3885
|
+
ERC1155ItemTypeEnum: ERC1155ItemTypeEnum,
|
|
3886
|
+
ERC20ItemTypeEnum: ERC20ItemTypeEnum,
|
|
3887
|
+
ERC721ItemTypeEnum: ERC721ItemTypeEnum,
|
|
3426
3888
|
ExpiredOrderStatusNameEnum: ExpiredOrderStatusNameEnum,
|
|
3427
3889
|
FailedOrderCancellationReasonCodeEnum: FailedOrderCancellationReasonCodeEnum,
|
|
3428
|
-
|
|
3890
|
+
FeeTypeEnum: FeeTypeEnum,
|
|
3429
3891
|
FilledOrderStatusNameEnum: FilledOrderStatusNameEnum,
|
|
3892
|
+
GetContractAbiResTransactionTypeEnum: GetContractAbiResTransactionTypeEnum,
|
|
3430
3893
|
InactiveOrderStatusNameEnum: InactiveOrderStatusNameEnum,
|
|
3431
3894
|
ListListingsSortByEnum: ListListingsSortByEnum$1,
|
|
3432
3895
|
ListListingsSortDirectionEnum: ListListingsSortDirectionEnum$1,
|
|
@@ -3436,8 +3899,9 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3436
3899
|
MetadataApiAxiosParamCreator: MetadataApiAxiosParamCreator,
|
|
3437
3900
|
MetadataApiFactory: MetadataApiFactory,
|
|
3438
3901
|
MetadataApiFp: MetadataApiFp,
|
|
3902
|
+
MintRequestStatus: MintRequestStatus,
|
|
3439
3903
|
NFTContractType: NFTContractType,
|
|
3440
|
-
|
|
3904
|
+
NativeItemTypeEnum: NativeItemTypeEnum,
|
|
3441
3905
|
NftOwnersApi: NftOwnersApi,
|
|
3442
3906
|
NftOwnersApiAxiosParamCreator: NftOwnersApiAxiosParamCreator,
|
|
3443
3907
|
NftOwnersApiFactory: NftOwnersApiFactory,
|
|
@@ -3447,6 +3911,7 @@ var index = /*#__PURE__*/Object.freeze({
|
|
|
3447
3911
|
NftsApiFactory: NftsApiFactory,
|
|
3448
3912
|
NftsApiFp: NftsApiFp,
|
|
3449
3913
|
OrderStatusName: OrderStatusName,
|
|
3914
|
+
OrderTypeEnum: OrderTypeEnum,
|
|
3450
3915
|
OrdersApi: OrdersApi,
|
|
3451
3916
|
OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
|
|
3452
3917
|
OrdersApiFactory: OrdersApiFactory,
|
|
@@ -3618,7 +4083,7 @@ class APIError extends Error {
|
|
|
3618
4083
|
|
|
3619
4084
|
/* eslint-disable implicit-arrow-linebreak */
|
|
3620
4085
|
const defaultHeaders = {
|
|
3621
|
-
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.
|
|
4086
|
+
sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.35.8',
|
|
3622
4087
|
};
|
|
3623
4088
|
/**
|
|
3624
4089
|
* createAPIConfiguration to create a custom Configuration
|
|
@@ -3739,6 +4204,20 @@ class BlockchainData {
|
|
|
3739
4204
|
throw formatError(err);
|
|
3740
4205
|
});
|
|
3741
4206
|
}
|
|
4207
|
+
/**
|
|
4208
|
+
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
4209
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
4210
|
+
* @returns a promise that resolves with a list of activities
|
|
4211
|
+
* @throws {@link index.APIError}
|
|
4212
|
+
*/
|
|
4213
|
+
async listActivityHistory(request) {
|
|
4214
|
+
return await this.activities
|
|
4215
|
+
.listActivityHistory(request)
|
|
4216
|
+
.then((res) => res.data)
|
|
4217
|
+
.catch((err) => {
|
|
4218
|
+
throw formatError(err);
|
|
4219
|
+
});
|
|
4220
|
+
}
|
|
3742
4221
|
/**
|
|
3743
4222
|
* Get a single activity by ID
|
|
3744
4223
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
@@ -3796,7 +4275,7 @@ class BlockchainData {
|
|
|
3796
4275
|
});
|
|
3797
4276
|
}
|
|
3798
4277
|
/**
|
|
3799
|
-
* Get collection by contract address
|
|
4278
|
+
* Get a collection by contract address
|
|
3800
4279
|
* @param request - the request object containing the parameters to be provided in the API request
|
|
3801
4280
|
* @returns a promise that resolves with a single collection
|
|
3802
4281
|
* @throws {@link index.APIError}
|
|
@@ -3900,7 +4379,7 @@ class BlockchainData {
|
|
|
3900
4379
|
* @throws {@link index.APIError}
|
|
3901
4380
|
*/
|
|
3902
4381
|
async listAllNFTOwners(request) {
|
|
3903
|
-
return await this.
|
|
4382
|
+
return await this.nftOwners
|
|
3904
4383
|
.listAllNFTOwners(request)
|
|
3905
4384
|
.then((res) => res.data)
|
|
3906
4385
|
.catch((err) => {
|
|
@@ -3963,6 +4442,20 @@ class BlockchainData {
|
|
|
3963
4442
|
throw formatError(err);
|
|
3964
4443
|
});
|
|
3965
4444
|
}
|
|
4445
|
+
/**
|
|
4446
|
+
* List NFT Metadata by chain
|
|
4447
|
+
* @param request - the request object containing the parameters to be provided in the API request
|
|
4448
|
+
* @returns a promise that resolves with a list of Metadata
|
|
4449
|
+
* @throws {@link index.APIError}
|
|
4450
|
+
*/
|
|
4451
|
+
async listNFTMetadataByChain(request) {
|
|
4452
|
+
return await this.metadata
|
|
4453
|
+
.listMetadataForChain(request)
|
|
4454
|
+
.then((res) => res.data)
|
|
4455
|
+
.catch((err) => {
|
|
4456
|
+
throw formatError(err);
|
|
4457
|
+
});
|
|
4458
|
+
}
|
|
3966
4459
|
/**
|
|
3967
4460
|
* Refresh collection metadata
|
|
3968
4461
|
* @param request - the request object containing the parameters to be provided in the API request
|