@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/passport.js
CHANGED
|
@@ -320,15 +320,13 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
|
320
320
|
* @param {string} [tokenId] An `uint256` token id as string
|
|
321
321
|
* @param {string} [accountAddress] The account address activity contains
|
|
322
322
|
* @param {ActivityType} [activityType] The activity type
|
|
323
|
-
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
324
|
-
* @param {string} [toIndexedAt] To indexed at including given date
|
|
325
323
|
* @param {string} [transactionHash] The transaction hash of activity
|
|
326
324
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
327
325
|
* @param {number} [pageSize] Maximum number of items to return
|
|
328
326
|
* @param {*} [options] Override http request option.
|
|
329
327
|
* @throws {RequiredError}
|
|
330
328
|
*/
|
|
331
|
-
listActivities: async (chainName, contractAddress, tokenId, accountAddress, activityType,
|
|
329
|
+
listActivities: async (chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options = {}) => {
|
|
332
330
|
// verify required parameter 'chainName' is not null or undefined
|
|
333
331
|
assertParamExists$1('listActivities', 'chainName', chainName);
|
|
334
332
|
const localVarPath = `/v1/chains/{chain_name}/activities`
|
|
@@ -354,16 +352,6 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
|
354
352
|
if (activityType !== undefined) {
|
|
355
353
|
localVarQueryParameter['activity_type'] = activityType;
|
|
356
354
|
}
|
|
357
|
-
if (fromIndexedAt !== undefined) {
|
|
358
|
-
localVarQueryParameter['from_indexed_at'] = (fromIndexedAt instanceof Date) ?
|
|
359
|
-
fromIndexedAt.toISOString() :
|
|
360
|
-
fromIndexedAt;
|
|
361
|
-
}
|
|
362
|
-
if (toIndexedAt !== undefined) {
|
|
363
|
-
localVarQueryParameter['to_indexed_at'] = (toIndexedAt instanceof Date) ?
|
|
364
|
-
toIndexedAt.toISOString() :
|
|
365
|
-
toIndexedAt;
|
|
366
|
-
}
|
|
367
355
|
if (transactionHash !== undefined) {
|
|
368
356
|
localVarQueryParameter['transaction_hash'] = transactionHash;
|
|
369
357
|
}
|
|
@@ -381,6 +369,61 @@ const ActivitiesApiAxiosParamCreator = function (configuration) {
|
|
|
381
369
|
options: localVarRequestOptions,
|
|
382
370
|
};
|
|
383
371
|
},
|
|
372
|
+
/**
|
|
373
|
+
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
374
|
+
* @summary List history of activities
|
|
375
|
+
* @param {string} chainName The name of chain
|
|
376
|
+
* @param {string} fromUpdatedAt From indexed at including given date
|
|
377
|
+
* @param {string} [toUpdatedAt] To indexed at including given date
|
|
378
|
+
* @param {string} [contractAddress] The contract address of the collection
|
|
379
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
380
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
381
|
+
* @param {*} [options] Override http request option.
|
|
382
|
+
* @throws {RequiredError}
|
|
383
|
+
*/
|
|
384
|
+
listActivityHistory: async (chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options = {}) => {
|
|
385
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
386
|
+
assertParamExists$1('listActivityHistory', 'chainName', chainName);
|
|
387
|
+
// verify required parameter 'fromUpdatedAt' is not null or undefined
|
|
388
|
+
assertParamExists$1('listActivityHistory', 'fromUpdatedAt', fromUpdatedAt);
|
|
389
|
+
const localVarPath = `/v1/chains/{chain_name}/activity-history`
|
|
390
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
391
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
392
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
393
|
+
let baseOptions;
|
|
394
|
+
if (configuration) {
|
|
395
|
+
baseOptions = configuration.baseOptions;
|
|
396
|
+
}
|
|
397
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
398
|
+
const localVarHeaderParameter = {};
|
|
399
|
+
const localVarQueryParameter = {};
|
|
400
|
+
if (fromUpdatedAt !== undefined) {
|
|
401
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
402
|
+
fromUpdatedAt.toISOString() :
|
|
403
|
+
fromUpdatedAt;
|
|
404
|
+
}
|
|
405
|
+
if (toUpdatedAt !== undefined) {
|
|
406
|
+
localVarQueryParameter['to_updated_at'] = (toUpdatedAt instanceof Date) ?
|
|
407
|
+
toUpdatedAt.toISOString() :
|
|
408
|
+
toUpdatedAt;
|
|
409
|
+
}
|
|
410
|
+
if (contractAddress !== undefined) {
|
|
411
|
+
localVarQueryParameter['contract_address'] = contractAddress;
|
|
412
|
+
}
|
|
413
|
+
if (pageCursor !== undefined) {
|
|
414
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
415
|
+
}
|
|
416
|
+
if (pageSize !== undefined) {
|
|
417
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
418
|
+
}
|
|
419
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
420
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
421
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
422
|
+
return {
|
|
423
|
+
url: toPathString$1(localVarUrlObj),
|
|
424
|
+
options: localVarRequestOptions,
|
|
425
|
+
};
|
|
426
|
+
},
|
|
384
427
|
};
|
|
385
428
|
};
|
|
386
429
|
/**
|
|
@@ -410,16 +453,30 @@ const ActivitiesApiFp = function (configuration) {
|
|
|
410
453
|
* @param {string} [tokenId] An `uint256` token id as string
|
|
411
454
|
* @param {string} [accountAddress] The account address activity contains
|
|
412
455
|
* @param {ActivityType} [activityType] The activity type
|
|
413
|
-
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
414
|
-
* @param {string} [toIndexedAt] To indexed at including given date
|
|
415
456
|
* @param {string} [transactionHash] The transaction hash of activity
|
|
416
457
|
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
417
458
|
* @param {number} [pageSize] Maximum number of items to return
|
|
418
459
|
* @param {*} [options] Override http request option.
|
|
419
460
|
* @throws {RequiredError}
|
|
420
461
|
*/
|
|
421
|
-
async listActivities(chainName, contractAddress, tokenId, accountAddress, activityType,
|
|
422
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType,
|
|
462
|
+
async listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options) {
|
|
463
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listActivities(chainName, contractAddress, tokenId, accountAddress, activityType, transactionHash, pageCursor, pageSize, options);
|
|
464
|
+
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
465
|
+
},
|
|
466
|
+
/**
|
|
467
|
+
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
468
|
+
* @summary List history of activities
|
|
469
|
+
* @param {string} chainName The name of chain
|
|
470
|
+
* @param {string} fromUpdatedAt From indexed at including given date
|
|
471
|
+
* @param {string} [toUpdatedAt] To indexed at including given date
|
|
472
|
+
* @param {string} [contractAddress] The contract address of the collection
|
|
473
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
474
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
475
|
+
* @param {*} [options] Override http request option.
|
|
476
|
+
* @throws {RequiredError}
|
|
477
|
+
*/
|
|
478
|
+
async listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options) {
|
|
479
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listActivityHistory(chainName, fromUpdatedAt, toUpdatedAt, contractAddress, pageCursor, pageSize, options);
|
|
423
480
|
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
424
481
|
},
|
|
425
482
|
};
|
|
@@ -451,7 +508,18 @@ class ActivitiesApi extends BaseAPI$1 {
|
|
|
451
508
|
* @memberof ActivitiesApi
|
|
452
509
|
*/
|
|
453
510
|
listActivities(requestParameters, options) {
|
|
454
|
-
return ActivitiesApiFp(this.configuration).listActivities(requestParameters.chainName, requestParameters.contractAddress, requestParameters.tokenId, requestParameters.accountAddress, requestParameters.activityType, requestParameters.
|
|
511
|
+
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));
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* List activities sorted by updated_at timestamp ascending, useful for time based data replication
|
|
515
|
+
* @summary List history of activities
|
|
516
|
+
* @param {ActivitiesApiListActivityHistoryRequest} requestParameters Request parameters.
|
|
517
|
+
* @param {*} [options] Override http request option.
|
|
518
|
+
* @throws {RequiredError}
|
|
519
|
+
* @memberof ActivitiesApi
|
|
520
|
+
*/
|
|
521
|
+
listActivityHistory(requestParameters, options) {
|
|
522
|
+
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));
|
|
455
523
|
}
|
|
456
524
|
}
|
|
457
525
|
|
|
@@ -867,6 +935,49 @@ class CollectionsApi extends BaseAPI$1 {
|
|
|
867
935
|
*/
|
|
868
936
|
const NftOwnersApiAxiosParamCreator = function (configuration) {
|
|
869
937
|
return {
|
|
938
|
+
/**
|
|
939
|
+
* List all NFT owners on a chain
|
|
940
|
+
* @summary List all NFT owners
|
|
941
|
+
* @param {string} chainName The name of chain
|
|
942
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
943
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
944
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
945
|
+
* @param {*} [options] Override http request option.
|
|
946
|
+
* @throws {RequiredError}
|
|
947
|
+
*/
|
|
948
|
+
listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
949
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
950
|
+
assertParamExists$1('listAllNFTOwners', 'chainName', chainName);
|
|
951
|
+
const localVarPath = `/v1/chains/{chain_name}/nft-owners`
|
|
952
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
953
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
954
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
955
|
+
let baseOptions;
|
|
956
|
+
if (configuration) {
|
|
957
|
+
baseOptions = configuration.baseOptions;
|
|
958
|
+
}
|
|
959
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
960
|
+
const localVarHeaderParameter = {};
|
|
961
|
+
const localVarQueryParameter = {};
|
|
962
|
+
if (fromUpdatedAt !== undefined) {
|
|
963
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
964
|
+
fromUpdatedAt.toISOString() :
|
|
965
|
+
fromUpdatedAt;
|
|
966
|
+
}
|
|
967
|
+
if (pageCursor !== undefined) {
|
|
968
|
+
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
969
|
+
}
|
|
970
|
+
if (pageSize !== undefined) {
|
|
971
|
+
localVarQueryParameter['page_size'] = pageSize;
|
|
972
|
+
}
|
|
973
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
974
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
975
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
976
|
+
return {
|
|
977
|
+
url: toPathString$1(localVarUrlObj),
|
|
978
|
+
options: localVarRequestOptions,
|
|
979
|
+
};
|
|
980
|
+
},
|
|
870
981
|
/**
|
|
871
982
|
* List NFT owners by token ID
|
|
872
983
|
* @summary List NFT owners by token ID
|
|
@@ -968,6 +1079,20 @@ const NftOwnersApiAxiosParamCreator = function (configuration) {
|
|
|
968
1079
|
const NftOwnersApiFp = function (configuration) {
|
|
969
1080
|
const localVarAxiosParamCreator = NftOwnersApiAxiosParamCreator(configuration);
|
|
970
1081
|
return {
|
|
1082
|
+
/**
|
|
1083
|
+
* List all NFT owners on a chain
|
|
1084
|
+
* @summary List all NFT owners
|
|
1085
|
+
* @param {string} chainName The name of chain
|
|
1086
|
+
* @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
|
|
1087
|
+
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1088
|
+
* @param {number} [pageSize] Maximum number of items to return
|
|
1089
|
+
* @param {*} [options] Override http request option.
|
|
1090
|
+
* @throws {RequiredError}
|
|
1091
|
+
*/
|
|
1092
|
+
async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1093
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1094
|
+
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
1095
|
+
},
|
|
971
1096
|
/**
|
|
972
1097
|
* List NFT owners by token ID
|
|
973
1098
|
* @summary List NFT owners by token ID
|
|
@@ -1007,6 +1132,17 @@ const NftOwnersApiFp = function (configuration) {
|
|
|
1007
1132
|
* @extends {BaseAPI}
|
|
1008
1133
|
*/
|
|
1009
1134
|
class NftOwnersApi extends BaseAPI$1 {
|
|
1135
|
+
/**
|
|
1136
|
+
* List all NFT owners on a chain
|
|
1137
|
+
* @summary List all NFT owners
|
|
1138
|
+
* @param {NftOwnersApiListAllNFTOwnersRequest} requestParameters Request parameters.
|
|
1139
|
+
* @param {*} [options] Override http request option.
|
|
1140
|
+
* @throws {RequiredError}
|
|
1141
|
+
* @memberof NftOwnersApi
|
|
1142
|
+
*/
|
|
1143
|
+
listAllNFTOwners(requestParameters, options) {
|
|
1144
|
+
return NftOwnersApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1145
|
+
}
|
|
1010
1146
|
/**
|
|
1011
1147
|
* List NFT owners by token ID
|
|
1012
1148
|
* @summary List NFT owners by token ID
|
|
@@ -1087,51 +1223,6 @@ const NftsApiAxiosParamCreator = function (configuration) {
|
|
|
1087
1223
|
options: localVarRequestOptions,
|
|
1088
1224
|
};
|
|
1089
1225
|
},
|
|
1090
|
-
/**
|
|
1091
|
-
* List all NFT owners on a chain
|
|
1092
|
-
* @summary List all NFT owners
|
|
1093
|
-
* @param {string} chainName The name of chain
|
|
1094
|
-
* @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
|
|
1095
|
-
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1096
|
-
* @param {number} [pageSize] Maximum number of items to return
|
|
1097
|
-
* @param {*} [options] Override http request option.
|
|
1098
|
-
* @throws {RequiredError}
|
|
1099
|
-
*/
|
|
1100
|
-
listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
|
|
1101
|
-
// verify required parameter 'chainName' is not null or undefined
|
|
1102
|
-
assertParamExists$1('listAllNFTOwners', 'chainName', chainName);
|
|
1103
|
-
// verify required parameter 'fromUpdatedAt' is not null or undefined
|
|
1104
|
-
assertParamExists$1('listAllNFTOwners', 'fromUpdatedAt', fromUpdatedAt);
|
|
1105
|
-
const localVarPath = `/v1/chains/{chain_name}/nft-owners`
|
|
1106
|
-
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
1107
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1108
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
1109
|
-
let baseOptions;
|
|
1110
|
-
if (configuration) {
|
|
1111
|
-
baseOptions = configuration.baseOptions;
|
|
1112
|
-
}
|
|
1113
|
-
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
1114
|
-
const localVarHeaderParameter = {};
|
|
1115
|
-
const localVarQueryParameter = {};
|
|
1116
|
-
if (fromUpdatedAt !== undefined) {
|
|
1117
|
-
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
1118
|
-
fromUpdatedAt.toISOString() :
|
|
1119
|
-
fromUpdatedAt;
|
|
1120
|
-
}
|
|
1121
|
-
if (pageCursor !== undefined) {
|
|
1122
|
-
localVarQueryParameter['page_cursor'] = pageCursor;
|
|
1123
|
-
}
|
|
1124
|
-
if (pageSize !== undefined) {
|
|
1125
|
-
localVarQueryParameter['page_size'] = pageSize;
|
|
1126
|
-
}
|
|
1127
|
-
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
1128
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1129
|
-
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1130
|
-
return {
|
|
1131
|
-
url: toPathString$1(localVarUrlObj),
|
|
1132
|
-
options: localVarRequestOptions,
|
|
1133
|
-
};
|
|
1134
|
-
},
|
|
1135
1226
|
/**
|
|
1136
1227
|
* List all NFTs on a chain
|
|
1137
1228
|
* @summary List all NFTs
|
|
@@ -1289,20 +1380,6 @@ const NftsApiFp = function (configuration) {
|
|
|
1289
1380
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getNFT(contractAddress, tokenId, chainName, options);
|
|
1290
1381
|
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
1291
1382
|
},
|
|
1292
|
-
/**
|
|
1293
|
-
* List all NFT owners on a chain
|
|
1294
|
-
* @summary List all NFT owners
|
|
1295
|
-
* @param {string} chainName The name of chain
|
|
1296
|
-
* @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
|
|
1297
|
-
* @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
|
|
1298
|
-
* @param {number} [pageSize] Maximum number of items to return
|
|
1299
|
-
* @param {*} [options] Override http request option.
|
|
1300
|
-
* @throws {RequiredError}
|
|
1301
|
-
*/
|
|
1302
|
-
async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
|
|
1303
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
|
|
1304
|
-
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
1305
|
-
},
|
|
1306
1383
|
/**
|
|
1307
1384
|
* List all NFTs on a chain
|
|
1308
1385
|
* @summary List all NFTs
|
|
@@ -1367,17 +1444,6 @@ class NftsApi extends BaseAPI$1 {
|
|
|
1367
1444
|
getNFT(requestParameters, options) {
|
|
1368
1445
|
return NftsApiFp(this.configuration).getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(this.axios, this.basePath));
|
|
1369
1446
|
}
|
|
1370
|
-
/**
|
|
1371
|
-
* List all NFT owners on a chain
|
|
1372
|
-
* @summary List all NFT owners
|
|
1373
|
-
* @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
|
|
1374
|
-
* @param {*} [options] Override http request option.
|
|
1375
|
-
* @throws {RequiredError}
|
|
1376
|
-
* @memberof NftsApi
|
|
1377
|
-
*/
|
|
1378
|
-
listAllNFTOwners(requestParameters, options) {
|
|
1379
|
-
return NftsApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
1380
|
-
}
|
|
1381
1447
|
/**
|
|
1382
1448
|
* List all NFTs on a chain
|
|
1383
1449
|
* @summary List all NFTs
|
|
@@ -1607,7 +1673,10 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1607
1673
|
* @param {OrderStatusName} [status] Order status to filter by
|
|
1608
1674
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
1609
1675
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
1676
|
+
* @param {string} [accountAddress] The account address of the user who created the listing
|
|
1677
|
+
* @param {string} [sellItemMetadataId] The metadata_id of the sell item
|
|
1610
1678
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
1679
|
+
* @param {string} [fromUpdatedAt] From updated at including given date
|
|
1611
1680
|
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
1612
1681
|
* @param {ListListingsSortByEnum} [sortBy] Order field to sort by
|
|
1613
1682
|
* @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
|
|
@@ -1615,7 +1684,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1615
1684
|
* @param {*} [options] Override http request option.
|
|
1616
1685
|
* @throws {RequiredError}
|
|
1617
1686
|
*/
|
|
1618
|
-
listListings: async (chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
1687
|
+
listListings: async (chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
1619
1688
|
// verify required parameter 'chainName' is not null or undefined
|
|
1620
1689
|
assertParamExists$1('listListings', 'chainName', chainName);
|
|
1621
1690
|
const localVarPath = `/v1/chains/{chain_name}/orders/listings`
|
|
@@ -1638,9 +1707,20 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1638
1707
|
if (buyItemContractAddress !== undefined) {
|
|
1639
1708
|
localVarQueryParameter['buy_item_contract_address'] = buyItemContractAddress;
|
|
1640
1709
|
}
|
|
1710
|
+
if (accountAddress !== undefined) {
|
|
1711
|
+
localVarQueryParameter['account_address'] = accountAddress;
|
|
1712
|
+
}
|
|
1713
|
+
if (sellItemMetadataId !== undefined) {
|
|
1714
|
+
localVarQueryParameter['sell_item_metadata_id'] = sellItemMetadataId;
|
|
1715
|
+
}
|
|
1641
1716
|
if (sellItemTokenId !== undefined) {
|
|
1642
1717
|
localVarQueryParameter['sell_item_token_id'] = sellItemTokenId;
|
|
1643
1718
|
}
|
|
1719
|
+
if (fromUpdatedAt !== undefined) {
|
|
1720
|
+
localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
|
|
1721
|
+
fromUpdatedAt.toISOString() :
|
|
1722
|
+
fromUpdatedAt;
|
|
1723
|
+
}
|
|
1644
1724
|
if (pageSize !== undefined) {
|
|
1645
1725
|
localVarQueryParameter['page_size'] = pageSize;
|
|
1646
1726
|
}
|
|
@@ -1666,6 +1746,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1666
1746
|
* @summary List all trades
|
|
1667
1747
|
* @param {string} chainName
|
|
1668
1748
|
* @param {string} [accountAddress]
|
|
1749
|
+
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
1669
1750
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1670
1751
|
* @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
|
|
1671
1752
|
* @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
|
|
@@ -1673,7 +1754,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1673
1754
|
* @param {*} [options] Override http request option.
|
|
1674
1755
|
* @throws {RequiredError}
|
|
1675
1756
|
*/
|
|
1676
|
-
listTrades: async (chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
1757
|
+
listTrades: async (chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
|
|
1677
1758
|
// verify required parameter 'chainName' is not null or undefined
|
|
1678
1759
|
assertParamExists$1('listTrades', 'chainName', chainName);
|
|
1679
1760
|
const localVarPath = `/v1/chains/{chain_name}/trades`
|
|
@@ -1690,6 +1771,11 @@ const OrdersApiAxiosParamCreator = function (configuration) {
|
|
|
1690
1771
|
if (accountAddress !== undefined) {
|
|
1691
1772
|
localVarQueryParameter['account_address'] = accountAddress;
|
|
1692
1773
|
}
|
|
1774
|
+
if (fromIndexedAt !== undefined) {
|
|
1775
|
+
localVarQueryParameter['from_indexed_at'] = (fromIndexedAt instanceof Date) ?
|
|
1776
|
+
fromIndexedAt.toISOString() :
|
|
1777
|
+
fromIndexedAt;
|
|
1778
|
+
}
|
|
1693
1779
|
if (pageSize !== undefined) {
|
|
1694
1780
|
localVarQueryParameter['page_size'] = pageSize;
|
|
1695
1781
|
}
|
|
@@ -1786,7 +1872,10 @@ const OrdersApiFp = function (configuration) {
|
|
|
1786
1872
|
* @param {OrderStatusName} [status] Order status to filter by
|
|
1787
1873
|
* @param {string} [sellItemContractAddress] Sell item contract address to filter by
|
|
1788
1874
|
* @param {string} [buyItemContractAddress] Buy item contract address to filter by
|
|
1875
|
+
* @param {string} [accountAddress] The account address of the user who created the listing
|
|
1876
|
+
* @param {string} [sellItemMetadataId] The metadata_id of the sell item
|
|
1789
1877
|
* @param {string} [sellItemTokenId] Sell item token identifier to filter by
|
|
1878
|
+
* @param {string} [fromUpdatedAt] From updated at including given date
|
|
1790
1879
|
* @param {number} [pageSize] Maximum number of orders to return per page
|
|
1791
1880
|
* @param {ListListingsSortByEnum} [sortBy] Order field to sort by
|
|
1792
1881
|
* @param {ListListingsSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
|
|
@@ -1794,8 +1883,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
1794
1883
|
* @param {*} [options] Override http request option.
|
|
1795
1884
|
* @throws {RequiredError}
|
|
1796
1885
|
*/
|
|
1797
|
-
async listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1798
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
1886
|
+
async listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1887
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, accountAddress, sellItemMetadataId, sellItemTokenId, fromUpdatedAt, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
1799
1888
|
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
1800
1889
|
},
|
|
1801
1890
|
/**
|
|
@@ -1803,6 +1892,7 @@ const OrdersApiFp = function (configuration) {
|
|
|
1803
1892
|
* @summary List all trades
|
|
1804
1893
|
* @param {string} chainName
|
|
1805
1894
|
* @param {string} [accountAddress]
|
|
1895
|
+
* @param {string} [fromIndexedAt] From indexed at including given date
|
|
1806
1896
|
* @param {number} [pageSize] Maximum number of trades to return per page
|
|
1807
1897
|
* @param {ListTradesSortByEnum} [sortBy] Trade field to sort by
|
|
1808
1898
|
* @param {ListTradesSortDirectionEnum} [sortDirection] Ascending or descending direction for sort
|
|
@@ -1810,8 +1900,8 @@ const OrdersApiFp = function (configuration) {
|
|
|
1810
1900
|
* @param {*} [options] Override http request option.
|
|
1811
1901
|
* @throws {RequiredError}
|
|
1812
1902
|
*/
|
|
1813
|
-
async listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1814
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
1903
|
+
async listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options) {
|
|
1904
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, fromIndexedAt, pageSize, sortBy, sortDirection, pageCursor, options);
|
|
1815
1905
|
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
1816
1906
|
},
|
|
1817
1907
|
};
|
|
@@ -1887,7 +1977,7 @@ class OrdersApi extends BaseAPI$1 {
|
|
|
1887
1977
|
* @memberof OrdersApi
|
|
1888
1978
|
*/
|
|
1889
1979
|
listListings(requestParameters, options) {
|
|
1890
|
-
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));
|
|
1980
|
+
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));
|
|
1891
1981
|
}
|
|
1892
1982
|
/**
|
|
1893
1983
|
* List all trades
|
|
@@ -1898,7 +1988,7 @@ class OrdersApi extends BaseAPI$1 {
|
|
|
1898
1988
|
* @memberof OrdersApi
|
|
1899
1989
|
*/
|
|
1900
1990
|
listTrades(requestParameters, options) {
|
|
1901
|
-
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));
|
|
1991
|
+
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));
|
|
1902
1992
|
}
|
|
1903
1993
|
}
|
|
1904
1994
|
|
|
@@ -1991,6 +2081,50 @@ const PassportApiAxiosParamCreator = function (configuration) {
|
|
|
1991
2081
|
options: localVarRequestOptions,
|
|
1992
2082
|
};
|
|
1993
2083
|
},
|
|
2084
|
+
/**
|
|
2085
|
+
* Get a contract abi by contract address and method id
|
|
2086
|
+
* @summary Get a contract abi
|
|
2087
|
+
* @param {string} chainName
|
|
2088
|
+
* @param {string} contractAddress contract address
|
|
2089
|
+
* @param {string} methodId method id
|
|
2090
|
+
* @param {*} [options] Override http request option.
|
|
2091
|
+
* @throws {RequiredError}
|
|
2092
|
+
*/
|
|
2093
|
+
getContractAbi: async (chainName, contractAddress, methodId, options = {}) => {
|
|
2094
|
+
// verify required parameter 'chainName' is not null or undefined
|
|
2095
|
+
assertParamExists$1('getContractAbi', 'chainName', chainName);
|
|
2096
|
+
// verify required parameter 'contractAddress' is not null or undefined
|
|
2097
|
+
assertParamExists$1('getContractAbi', 'contractAddress', contractAddress);
|
|
2098
|
+
// verify required parameter 'methodId' is not null or undefined
|
|
2099
|
+
assertParamExists$1('getContractAbi', 'methodId', methodId);
|
|
2100
|
+
const localVarPath = `/v1/chains/{chain_name}/passport/transaction-metadata`
|
|
2101
|
+
.replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
|
|
2102
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2103
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
|
|
2104
|
+
let baseOptions;
|
|
2105
|
+
if (configuration) {
|
|
2106
|
+
baseOptions = configuration.baseOptions;
|
|
2107
|
+
}
|
|
2108
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
|
|
2109
|
+
const localVarHeaderParameter = {};
|
|
2110
|
+
const localVarQueryParameter = {};
|
|
2111
|
+
// authentication BearerAuth required
|
|
2112
|
+
// http bearer authentication required
|
|
2113
|
+
await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
|
|
2114
|
+
if (contractAddress !== undefined) {
|
|
2115
|
+
localVarQueryParameter['contract_address'] = contractAddress;
|
|
2116
|
+
}
|
|
2117
|
+
if (methodId !== undefined) {
|
|
2118
|
+
localVarQueryParameter['method_id'] = methodId;
|
|
2119
|
+
}
|
|
2120
|
+
setSearchParams$1(localVarUrlObj, localVarQueryParameter);
|
|
2121
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2122
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
2123
|
+
return {
|
|
2124
|
+
url: toPathString$1(localVarUrlObj),
|
|
2125
|
+
options: localVarRequestOptions,
|
|
2126
|
+
};
|
|
2127
|
+
},
|
|
1994
2128
|
/**
|
|
1995
2129
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
1996
2130
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -2091,6 +2225,19 @@ const PassportApiFp = function (configuration) {
|
|
|
2091
2225
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createCounterfactualAddressDeprecated(createCounterfactualAddressRequestDeprecated, options);
|
|
2092
2226
|
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
2093
2227
|
},
|
|
2228
|
+
/**
|
|
2229
|
+
* Get a contract abi by contract address and method id
|
|
2230
|
+
* @summary Get a contract abi
|
|
2231
|
+
* @param {string} chainName
|
|
2232
|
+
* @param {string} contractAddress contract address
|
|
2233
|
+
* @param {string} methodId method id
|
|
2234
|
+
* @param {*} [options] Override http request option.
|
|
2235
|
+
* @throws {RequiredError}
|
|
2236
|
+
*/
|
|
2237
|
+
async getContractAbi(chainName, contractAddress, methodId, options) {
|
|
2238
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getContractAbi(chainName, contractAddress, methodId, options);
|
|
2239
|
+
return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
|
|
2240
|
+
},
|
|
2094
2241
|
/**
|
|
2095
2242
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
2096
2243
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -2145,6 +2292,17 @@ class PassportApi extends BaseAPI$1 {
|
|
|
2145
2292
|
createCounterfactualAddressDeprecated(requestParameters, options) {
|
|
2146
2293
|
return PassportApiFp(this.configuration).createCounterfactualAddressDeprecated(requestParameters.createCounterfactualAddressRequestDeprecated, options).then((request) => request(this.axios, this.basePath));
|
|
2147
2294
|
}
|
|
2295
|
+
/**
|
|
2296
|
+
* Get a contract abi by contract address and method id
|
|
2297
|
+
* @summary Get a contract abi
|
|
2298
|
+
* @param {PassportApiGetContractAbiRequest} requestParameters Request parameters.
|
|
2299
|
+
* @param {*} [options] Override http request option.
|
|
2300
|
+
* @throws {RequiredError}
|
|
2301
|
+
* @memberof PassportApi
|
|
2302
|
+
*/
|
|
2303
|
+
getContractAbi(requestParameters, options) {
|
|
2304
|
+
return PassportApiFp(this.configuration).getContractAbi(requestParameters.chainName, requestParameters.contractAddress, requestParameters.methodId, options).then((request) => request(this.axios, this.basePath));
|
|
2305
|
+
}
|
|
2148
2306
|
/**
|
|
2149
2307
|
* Get all the Ethereum linked addresses for a user based on its userId
|
|
2150
2308
|
* @summary Get Ethereum linked addresses for a user
|
|
@@ -2191,7 +2349,7 @@ class MultiRollupApiClients {
|
|
|
2191
2349
|
}
|
|
2192
2350
|
|
|
2193
2351
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
2194
|
-
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.35.
|
|
2352
|
+
const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.35.8' };
|
|
2195
2353
|
const createConfig = ({ basePath, headers, }) => {
|
|
2196
2354
|
if (!basePath.trim()) {
|
|
2197
2355
|
throw Error('basePath can not be empty');
|
|
@@ -2247,7 +2405,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
|
|
|
2247
2405
|
chainID,
|
|
2248
2406
|
coreContractAddress,
|
|
2249
2407
|
registrationContractAddress,
|
|
2250
|
-
sdkVersion: 'ts-immutable-sdk-0.35.
|
|
2408
|
+
sdkVersion: 'ts-immutable-sdk-0.35.8',
|
|
2251
2409
|
});
|
|
2252
2410
|
/**
|
|
2253
2411
|
* Sets `sdkVersion` at the time of build
|
package/package.json
CHANGED