@imtbl/sdk 0.24.1 → 0.25.0

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/index.cjs CHANGED
@@ -719,12 +719,13 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
719
719
  * List all collections
720
720
  * @summary List all collections
721
721
  * @param {string} chainName The name of chain
722
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
722
723
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
723
724
  * @param {number} [pageSize] Maximum number of items to return
724
725
  * @param {*} [options] Override http request option.
725
726
  * @throws {RequiredError}
726
727
  */
727
- listCollections: async (chainName, pageCursor, pageSize, options = {}) => {
728
+ listCollections: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
728
729
  // verify required parameter 'chainName' is not null or undefined
729
730
  assertParamExists$1('listCollections', 'chainName', chainName);
730
731
  const localVarPath = `/v1/chains/{chain_name}/collections`
@@ -738,6 +739,11 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
738
739
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
739
740
  const localVarHeaderParameter = {};
740
741
  const localVarQueryParameter = {};
742
+ if (fromUpdatedAt !== undefined) {
743
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
744
+ fromUpdatedAt.toISOString() :
745
+ fromUpdatedAt;
746
+ }
741
747
  if (pageCursor !== undefined) {
742
748
  localVarQueryParameter['page_cursor'] = pageCursor;
743
749
  }
@@ -822,7 +828,7 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
822
828
  const localVarHeaderParameter = {};
823
829
  const localVarQueryParameter = {};
824
830
  // authentication ImmutableApiKey required
825
- await setApiKeyToObject(localVarHeaderParameter, "X-Immutable-API-Key", configuration);
831
+ await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-Key", configuration);
826
832
  localVarHeaderParameter['Content-Type'] = 'application/json';
827
833
  setSearchParams$1(localVarUrlObj, localVarQueryParameter);
828
834
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -858,13 +864,14 @@ const CollectionsApiFp = function (configuration) {
858
864
  * List all collections
859
865
  * @summary List all collections
860
866
  * @param {string} chainName The name of chain
867
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
861
868
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
862
869
  * @param {number} [pageSize] Maximum number of items to return
863
870
  * @param {*} [options] Override http request option.
864
871
  * @throws {RequiredError}
865
872
  */
866
- async listCollections(chainName, pageCursor, pageSize, options) {
867
- const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, pageCursor, pageSize, options);
873
+ async listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
874
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options);
868
875
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
869
876
  },
870
877
  /**
@@ -918,13 +925,14 @@ const CollectionsApiFactory = function (configuration, basePath, axios) {
918
925
  * List all collections
919
926
  * @summary List all collections
920
927
  * @param {string} chainName The name of chain
928
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
921
929
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
922
930
  * @param {number} [pageSize] Maximum number of items to return
923
931
  * @param {*} [options] Override http request option.
924
932
  * @throws {RequiredError}
925
933
  */
926
- listCollections(chainName, pageCursor, pageSize, options) {
927
- return localVarFp.listCollections(chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
934
+ listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
935
+ return localVarFp.listCollections(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
928
936
  },
929
937
  /**
930
938
  * List collections by NFT owner account address
@@ -980,7 +988,7 @@ class CollectionsApi extends BaseAPI$1 {
980
988
  * @memberof CollectionsApi
981
989
  */
982
990
  listCollections(requestParameters, options) {
983
- return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
991
+ return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
984
992
  }
985
993
  /**
986
994
  * List collections by NFT owner account address
@@ -1026,8 +1034,8 @@ class CollectionsApi extends BaseAPI$1 {
1026
1034
  const MetadataApiAxiosParamCreator = function (configuration) {
1027
1035
  return {
1028
1036
  /**
1029
- * Get a single metadata by ID
1030
- * @summary Get a single metadata by ID
1037
+ * Get metadata by ID
1038
+ * @summary Get metadata by ID
1031
1039
  * @param {string} chainName The name of chain
1032
1040
  * @param {string} contractAddress The address of metadata contract
1033
1041
  * @param {string} metadataId The id of the metadata
@@ -1063,7 +1071,55 @@ const MetadataApiAxiosParamCreator = function (configuration) {
1063
1071
  };
1064
1072
  },
1065
1073
  /**
1066
- * Refresh shared metadata for a collection
1074
+ * Get a list of metadata by from the a given contract
1075
+ * @summary Get a list of metadata by from the a given contract
1076
+ * @param {string} chainName The name of chain
1077
+ * @param {string} contractAddress The address of metadata contract
1078
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1079
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1080
+ * @param {number} [pageSize] Maximum number of items to return
1081
+ * @param {*} [options] Override http request option.
1082
+ * @throws {RequiredError}
1083
+ */
1084
+ listMetadata: async (chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
1085
+ // verify required parameter 'chainName' is not null or undefined
1086
+ assertParamExists$1('listMetadata', 'chainName', chainName);
1087
+ // verify required parameter 'contractAddress' is not null or undefined
1088
+ assertParamExists$1('listMetadata', 'contractAddress', contractAddress);
1089
+ const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/metadata`
1090
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
1091
+ .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)));
1092
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1093
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
1094
+ let baseOptions;
1095
+ if (configuration) {
1096
+ baseOptions = configuration.baseOptions;
1097
+ }
1098
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1099
+ const localVarHeaderParameter = {};
1100
+ const localVarQueryParameter = {};
1101
+ if (fromUpdatedAt !== undefined) {
1102
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
1103
+ fromUpdatedAt.toISOString() :
1104
+ fromUpdatedAt;
1105
+ }
1106
+ if (pageCursor !== undefined) {
1107
+ localVarQueryParameter['page_cursor'] = pageCursor;
1108
+ }
1109
+ if (pageSize !== undefined) {
1110
+ localVarQueryParameter['page_size'] = pageSize;
1111
+ }
1112
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1113
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1114
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1115
+ return {
1116
+ url: toPathString$1(localVarUrlObj),
1117
+ options: localVarRequestOptions,
1118
+ };
1119
+ },
1120
+ /**
1121
+ * Refresh stacked metadata
1122
+ * @summary Refresh stacked metadata
1067
1123
  * @param {string} chainName The name of chain
1068
1124
  * @param {string} contractAddress Contract address
1069
1125
  * @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
@@ -1090,7 +1146,7 @@ const MetadataApiAxiosParamCreator = function (configuration) {
1090
1146
  const localVarHeaderParameter = {};
1091
1147
  const localVarQueryParameter = {};
1092
1148
  // authentication ImmutableApiKey required
1093
- await setApiKeyToObject(localVarHeaderParameter, "X-Immutable-API-Key", configuration);
1149
+ await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-Key", configuration);
1094
1150
  localVarHeaderParameter['Content-Type'] = 'application/json';
1095
1151
  setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1096
1152
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1102,8 +1158,8 @@ const MetadataApiAxiosParamCreator = function (configuration) {
1102
1158
  };
1103
1159
  },
1104
1160
  /**
1105
- * refresh metadata of a list of nfts
1106
- * @summary refresh the metedata data of a list of nfts by token id
1161
+ * Refresh NFT metadata
1162
+ * @summary Refresh NFT metadata
1107
1163
  * @param {string} contractAddress The address of contract
1108
1164
  * @param {string} chainName The name of chain
1109
1165
  * @param {RefreshNFTMetadataByTokenIDRequest} refreshNFTMetadataByTokenIDRequest the request body
@@ -1130,7 +1186,7 @@ const MetadataApiAxiosParamCreator = function (configuration) {
1130
1186
  const localVarHeaderParameter = {};
1131
1187
  const localVarQueryParameter = {};
1132
1188
  // authentication ImmutableApiKey required
1133
- await setApiKeyToObject(localVarHeaderParameter, "X-Immutable-API-Key", configuration);
1189
+ await setApiKeyToObject(localVarHeaderParameter, "x-immutable-api-Key", configuration);
1134
1190
  localVarHeaderParameter['Content-Type'] = 'application/json';
1135
1191
  setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1136
1192
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -1151,8 +1207,8 @@ const MetadataApiFp = function (configuration) {
1151
1207
  const localVarAxiosParamCreator = MetadataApiAxiosParamCreator(configuration);
1152
1208
  return {
1153
1209
  /**
1154
- * Get a single metadata by ID
1155
- * @summary Get a single metadata by ID
1210
+ * Get metadata by ID
1211
+ * @summary Get metadata by ID
1156
1212
  * @param {string} chainName The name of chain
1157
1213
  * @param {string} contractAddress The address of metadata contract
1158
1214
  * @param {string} metadataId The id of the metadata
@@ -1164,7 +1220,23 @@ const MetadataApiFp = function (configuration) {
1164
1220
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1165
1221
  },
1166
1222
  /**
1167
- * Refresh shared metadata for a collection
1223
+ * Get a list of metadata by from the a given contract
1224
+ * @summary Get a list of metadata by from the a given contract
1225
+ * @param {string} chainName The name of chain
1226
+ * @param {string} contractAddress The address of metadata contract
1227
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1228
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1229
+ * @param {number} [pageSize] Maximum number of items to return
1230
+ * @param {*} [options] Override http request option.
1231
+ * @throws {RequiredError}
1232
+ */
1233
+ async listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
1234
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options);
1235
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1236
+ },
1237
+ /**
1238
+ * Refresh stacked metadata
1239
+ * @summary Refresh stacked metadata
1168
1240
  * @param {string} chainName The name of chain
1169
1241
  * @param {string} contractAddress Contract address
1170
1242
  * @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
@@ -1176,8 +1248,8 @@ const MetadataApiFp = function (configuration) {
1176
1248
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1177
1249
  },
1178
1250
  /**
1179
- * refresh metadata of a list of nfts
1180
- * @summary refresh the metedata data of a list of nfts by token id
1251
+ * Refresh NFT metadata
1252
+ * @summary Refresh NFT metadata
1181
1253
  * @param {string} contractAddress The address of contract
1182
1254
  * @param {string} chainName The name of chain
1183
1255
  * @param {RefreshNFTMetadataByTokenIDRequest} refreshNFTMetadataByTokenIDRequest the request body
@@ -1198,8 +1270,8 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
1198
1270
  const localVarFp = MetadataApiFp(configuration);
1199
1271
  return {
1200
1272
  /**
1201
- * Get a single metadata by ID
1202
- * @summary Get a single metadata by ID
1273
+ * Get metadata by ID
1274
+ * @summary Get metadata by ID
1203
1275
  * @param {string} chainName The name of chain
1204
1276
  * @param {string} contractAddress The address of metadata contract
1205
1277
  * @param {string} metadataId The id of the metadata
@@ -1210,7 +1282,22 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
1210
1282
  return localVarFp.getMetadata(chainName, contractAddress, metadataId, options).then((request) => request(axios, basePath));
1211
1283
  },
1212
1284
  /**
1213
- * Refresh shared metadata for a collection
1285
+ * Get a list of metadata by from the a given contract
1286
+ * @summary Get a list of metadata by from the a given contract
1287
+ * @param {string} chainName The name of chain
1288
+ * @param {string} contractAddress The address of metadata contract
1289
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1290
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1291
+ * @param {number} [pageSize] Maximum number of items to return
1292
+ * @param {*} [options] Override http request option.
1293
+ * @throws {RequiredError}
1294
+ */
1295
+ listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options) {
1296
+ return localVarFp.listMetadata(chainName, contractAddress, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1297
+ },
1298
+ /**
1299
+ * Refresh stacked metadata
1300
+ * @summary Refresh stacked metadata
1214
1301
  * @param {string} chainName The name of chain
1215
1302
  * @param {string} contractAddress Contract address
1216
1303
  * @param {RefreshMetadataByIDRequest} refreshMetadataByIDRequest NFT Metadata Refresh Request
@@ -1221,8 +1308,8 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
1221
1308
  return localVarFp.refreshMetadataByID(chainName, contractAddress, refreshMetadataByIDRequest, options).then((request) => request(axios, basePath));
1222
1309
  },
1223
1310
  /**
1224
- * refresh metadata of a list of nfts
1225
- * @summary refresh the metedata data of a list of nfts by token id
1311
+ * Refresh NFT metadata
1312
+ * @summary Refresh NFT metadata
1226
1313
  * @param {string} contractAddress The address of contract
1227
1314
  * @param {string} chainName The name of chain
1228
1315
  * @param {RefreshNFTMetadataByTokenIDRequest} refreshNFTMetadataByTokenIDRequest the request body
@@ -1242,8 +1329,8 @@ const MetadataApiFactory = function (configuration, basePath, axios) {
1242
1329
  */
1243
1330
  class MetadataApi extends BaseAPI$1 {
1244
1331
  /**
1245
- * Get a single metadata by ID
1246
- * @summary Get a single metadata by ID
1332
+ * Get metadata by ID
1333
+ * @summary Get metadata by ID
1247
1334
  * @param {MetadataApiGetMetadataRequest} requestParameters Request parameters.
1248
1335
  * @param {*} [options] Override http request option.
1249
1336
  * @throws {RequiredError}
@@ -1253,7 +1340,19 @@ class MetadataApi extends BaseAPI$1 {
1253
1340
  return MetadataApiFp(this.configuration).getMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.metadataId, options).then((request) => request(this.axios, this.basePath));
1254
1341
  }
1255
1342
  /**
1256
- * Refresh shared metadata for a collection
1343
+ * Get a list of metadata by from the a given contract
1344
+ * @summary Get a list of metadata by from the a given contract
1345
+ * @param {MetadataApiListMetadataRequest} requestParameters Request parameters.
1346
+ * @param {*} [options] Override http request option.
1347
+ * @throws {RequiredError}
1348
+ * @memberof MetadataApi
1349
+ */
1350
+ listMetadata(requestParameters, options) {
1351
+ return MetadataApiFp(this.configuration).listMetadata(requestParameters.chainName, requestParameters.contractAddress, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1352
+ }
1353
+ /**
1354
+ * Refresh stacked metadata
1355
+ * @summary Refresh stacked metadata
1257
1356
  * @param {MetadataApiRefreshMetadataByIDRequest} requestParameters Request parameters.
1258
1357
  * @param {*} [options] Override http request option.
1259
1358
  * @throws {RequiredError}
@@ -1263,8 +1362,8 @@ class MetadataApi extends BaseAPI$1 {
1263
1362
  return MetadataApiFp(this.configuration).refreshMetadataByID(requestParameters.chainName, requestParameters.contractAddress, requestParameters.refreshMetadataByIDRequest, options).then((request) => request(this.axios, this.basePath));
1264
1363
  }
1265
1364
  /**
1266
- * refresh metadata of a list of nfts
1267
- * @summary refresh the metedata data of a list of nfts by token id
1365
+ * Refresh NFT metadata
1366
+ * @summary Refresh NFT metadata
1268
1367
  * @param {MetadataApiRefreshNFTMetadataByTokenIDRequest} requestParameters Request parameters.
1269
1368
  * @param {*} [options] Override http request option.
1270
1369
  * @throws {RequiredError}
@@ -1339,6 +1438,53 @@ const NftOwnersApiAxiosParamCreator = function (configuration) {
1339
1438
  options: localVarRequestOptions,
1340
1439
  };
1341
1440
  },
1441
+ /**
1442
+ * List owners by contract address
1443
+ * @summary List owners by contract address
1444
+ * @param {string} contractAddress The address of contract
1445
+ * @param {string} chainName The name of chain
1446
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1447
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1448
+ * @param {number} [pageSize] Maximum number of items to return
1449
+ * @param {*} [options] Override http request option.
1450
+ * @throws {RequiredError}
1451
+ */
1452
+ listOwnersByContractAddress: async (contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
1453
+ // verify required parameter 'contractAddress' is not null or undefined
1454
+ assertParamExists$1('listOwnersByContractAddress', 'contractAddress', contractAddress);
1455
+ // verify required parameter 'chainName' is not null or undefined
1456
+ assertParamExists$1('listOwnersByContractAddress', 'chainName', chainName);
1457
+ const localVarPath = `/v1/chains/{chain_name}/collections/{contract_address}/owners`
1458
+ .replace(`{${"contract_address"}}`, encodeURIComponent(String(contractAddress)))
1459
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
1460
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1461
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
1462
+ let baseOptions;
1463
+ if (configuration) {
1464
+ baseOptions = configuration.baseOptions;
1465
+ }
1466
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1467
+ const localVarHeaderParameter = {};
1468
+ const localVarQueryParameter = {};
1469
+ if (fromUpdatedAt !== undefined) {
1470
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
1471
+ fromUpdatedAt.toISOString() :
1472
+ fromUpdatedAt;
1473
+ }
1474
+ if (pageCursor !== undefined) {
1475
+ localVarQueryParameter['page_cursor'] = pageCursor;
1476
+ }
1477
+ if (pageSize !== undefined) {
1478
+ localVarQueryParameter['page_size'] = pageSize;
1479
+ }
1480
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1481
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1482
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1483
+ return {
1484
+ url: toPathString$1(localVarUrlObj),
1485
+ options: localVarRequestOptions,
1486
+ };
1487
+ },
1342
1488
  };
1343
1489
  };
1344
1490
  /**
@@ -1363,6 +1509,21 @@ const NftOwnersApiFp = function (configuration) {
1363
1509
  const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options);
1364
1510
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1365
1511
  },
1512
+ /**
1513
+ * List owners by contract address
1514
+ * @summary List owners by contract address
1515
+ * @param {string} contractAddress The address of contract
1516
+ * @param {string} chainName The name of chain
1517
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1518
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1519
+ * @param {number} [pageSize] Maximum number of items to return
1520
+ * @param {*} [options] Override http request option.
1521
+ * @throws {RequiredError}
1522
+ */
1523
+ async listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1524
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options);
1525
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1526
+ },
1366
1527
  };
1367
1528
  };
1368
1529
  /**
@@ -1386,6 +1547,20 @@ const NftOwnersApiFactory = function (configuration, basePath, axios) {
1386
1547
  listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options) {
1387
1548
  return localVarFp.listNFTOwners(contractAddress, tokenId, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1388
1549
  },
1550
+ /**
1551
+ * List owners by contract address
1552
+ * @summary List owners by contract address
1553
+ * @param {string} contractAddress The address of contract
1554
+ * @param {string} chainName The name of chain
1555
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1556
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1557
+ * @param {number} [pageSize] Maximum number of items to return
1558
+ * @param {*} [options] Override http request option.
1559
+ * @throws {RequiredError}
1560
+ */
1561
+ listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1562
+ return localVarFp.listOwnersByContractAddress(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1563
+ },
1389
1564
  };
1390
1565
  };
1391
1566
  /**
@@ -1406,6 +1581,17 @@ class NftOwnersApi extends BaseAPI$1 {
1406
1581
  listNFTOwners(requestParameters, options) {
1407
1582
  return NftOwnersApiFp(this.configuration).listNFTOwners(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1408
1583
  }
1584
+ /**
1585
+ * List owners by contract address
1586
+ * @summary List owners by contract address
1587
+ * @param {NftOwnersApiListOwnersByContractAddressRequest} requestParameters Request parameters.
1588
+ * @param {*} [options] Override http request option.
1589
+ * @throws {RequiredError}
1590
+ * @memberof NftOwnersApi
1591
+ */
1592
+ listOwnersByContractAddress(requestParameters, options) {
1593
+ return NftOwnersApiFp(this.configuration).listOwnersByContractAddress(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1594
+ }
1409
1595
  }
1410
1596
 
1411
1597
  /* tslint:disable */
@@ -1464,17 +1650,106 @@ const NftsApiAxiosParamCreator = function (configuration) {
1464
1650
  options: localVarRequestOptions,
1465
1651
  };
1466
1652
  },
1653
+ /**
1654
+ * List all NFT owners on a chain
1655
+ * @summary List all NFT owners
1656
+ * @param {string} chainName The name of chain
1657
+ * @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
1658
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1659
+ * @param {number} [pageSize] Maximum number of items to return
1660
+ * @param {*} [options] Override http request option.
1661
+ * @throws {RequiredError}
1662
+ */
1663
+ listAllNFTOwners: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
1664
+ // verify required parameter 'chainName' is not null or undefined
1665
+ assertParamExists$1('listAllNFTOwners', 'chainName', chainName);
1666
+ // verify required parameter 'fromUpdatedAt' is not null or undefined
1667
+ assertParamExists$1('listAllNFTOwners', 'fromUpdatedAt', fromUpdatedAt);
1668
+ const localVarPath = `/v1/chains/{chain_name}/nft-owners`
1669
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
1670
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1671
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
1672
+ let baseOptions;
1673
+ if (configuration) {
1674
+ baseOptions = configuration.baseOptions;
1675
+ }
1676
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1677
+ const localVarHeaderParameter = {};
1678
+ const localVarQueryParameter = {};
1679
+ if (fromUpdatedAt !== undefined) {
1680
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
1681
+ fromUpdatedAt.toISOString() :
1682
+ fromUpdatedAt;
1683
+ }
1684
+ if (pageCursor !== undefined) {
1685
+ localVarQueryParameter['page_cursor'] = pageCursor;
1686
+ }
1687
+ if (pageSize !== undefined) {
1688
+ localVarQueryParameter['page_size'] = pageSize;
1689
+ }
1690
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1691
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1692
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1693
+ return {
1694
+ url: toPathString$1(localVarUrlObj),
1695
+ options: localVarRequestOptions,
1696
+ };
1697
+ },
1698
+ /**
1699
+ * List all NFTs on a chain
1700
+ * @summary List all NFTs
1701
+ * @param {string} chainName The name of chain
1702
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1703
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1704
+ * @param {number} [pageSize] Maximum number of items to return
1705
+ * @param {*} [options] Override http request option.
1706
+ * @throws {RequiredError}
1707
+ */
1708
+ listAllNFTs: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
1709
+ // verify required parameter 'chainName' is not null or undefined
1710
+ assertParamExists$1('listAllNFTs', 'chainName', chainName);
1711
+ const localVarPath = `/v1/chains/{chain_name}/nfts`
1712
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
1713
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1714
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
1715
+ let baseOptions;
1716
+ if (configuration) {
1717
+ baseOptions = configuration.baseOptions;
1718
+ }
1719
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1720
+ const localVarHeaderParameter = {};
1721
+ const localVarQueryParameter = {};
1722
+ if (fromUpdatedAt !== undefined) {
1723
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
1724
+ fromUpdatedAt.toISOString() :
1725
+ fromUpdatedAt;
1726
+ }
1727
+ if (pageCursor !== undefined) {
1728
+ localVarQueryParameter['page_cursor'] = pageCursor;
1729
+ }
1730
+ if (pageSize !== undefined) {
1731
+ localVarQueryParameter['page_size'] = pageSize;
1732
+ }
1733
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1734
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1735
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1736
+ return {
1737
+ url: toPathString$1(localVarUrlObj),
1738
+ options: localVarRequestOptions,
1739
+ };
1740
+ },
1467
1741
  /**
1468
1742
  * List NFTs by contract address
1469
1743
  * @summary List NFTs by contract address
1470
1744
  * @param {string} contractAddress Contract address
1471
1745
  * @param {string} chainName The name of chain
1746
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1472
1747
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1473
1748
  * @param {number} [pageSize] Maximum number of items to return
1474
1749
  * @param {*} [options] Override http request option.
1475
1750
  * @throws {RequiredError}
1476
1751
  */
1477
- listNFTs: async (contractAddress, chainName, pageCursor, pageSize, options = {}) => {
1752
+ listNFTs: async (contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
1478
1753
  // verify required parameter 'contractAddress' is not null or undefined
1479
1754
  assertParamExists$1('listNFTs', 'contractAddress', contractAddress);
1480
1755
  // verify required parameter 'chainName' is not null or undefined
@@ -1491,6 +1766,11 @@ const NftsApiAxiosParamCreator = function (configuration) {
1491
1766
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1492
1767
  const localVarHeaderParameter = {};
1493
1768
  const localVarQueryParameter = {};
1769
+ if (fromUpdatedAt !== undefined) {
1770
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
1771
+ fromUpdatedAt.toISOString() :
1772
+ fromUpdatedAt;
1773
+ }
1494
1774
  if (pageCursor !== undefined) {
1495
1775
  localVarQueryParameter['page_cursor'] = pageCursor;
1496
1776
  }
@@ -1572,18 +1852,47 @@ const NftsApiFp = function (configuration) {
1572
1852
  const localVarAxiosArgs = await localVarAxiosParamCreator.getNFT(contractAddress, tokenId, chainName, options);
1573
1853
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1574
1854
  },
1855
+ /**
1856
+ * List all NFT owners on a chain
1857
+ * @summary List all NFT owners
1858
+ * @param {string} chainName The name of chain
1859
+ * @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
1860
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1861
+ * @param {number} [pageSize] Maximum number of items to return
1862
+ * @param {*} [options] Override http request option.
1863
+ * @throws {RequiredError}
1864
+ */
1865
+ async listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1866
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options);
1867
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1868
+ },
1869
+ /**
1870
+ * List all NFTs on a chain
1871
+ * @summary List all NFTs
1872
+ * @param {string} chainName The name of chain
1873
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1874
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1875
+ * @param {number} [pageSize] Maximum number of items to return
1876
+ * @param {*} [options] Override http request option.
1877
+ * @throws {RequiredError}
1878
+ */
1879
+ async listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1880
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options);
1881
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1882
+ },
1575
1883
  /**
1576
1884
  * List NFTs by contract address
1577
1885
  * @summary List NFTs by contract address
1578
1886
  * @param {string} contractAddress Contract address
1579
1887
  * @param {string} chainName The name of chain
1888
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1580
1889
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1581
1890
  * @param {number} [pageSize] Maximum number of items to return
1582
1891
  * @param {*} [options] Override http request option.
1583
1892
  * @throws {RequiredError}
1584
1893
  */
1585
- async listNFTs(contractAddress, chainName, pageCursor, pageSize, options) {
1586
- const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, pageCursor, pageSize, options);
1894
+ async listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1895
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options);
1587
1896
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1588
1897
  },
1589
1898
  /**
@@ -1622,18 +1931,45 @@ const NftsApiFactory = function (configuration, basePath, axios) {
1622
1931
  getNFT(contractAddress, tokenId, chainName, options) {
1623
1932
  return localVarFp.getNFT(contractAddress, tokenId, chainName, options).then((request) => request(axios, basePath));
1624
1933
  },
1934
+ /**
1935
+ * List all NFT owners on a chain
1936
+ * @summary List all NFT owners
1937
+ * @param {string} chainName The name of chain
1938
+ * @param {string} fromUpdatedAt Datetime to use as the oldest updated timestamp
1939
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1940
+ * @param {number} [pageSize] Maximum number of items to return
1941
+ * @param {*} [options] Override http request option.
1942
+ * @throws {RequiredError}
1943
+ */
1944
+ listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1945
+ return localVarFp.listAllNFTOwners(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1946
+ },
1947
+ /**
1948
+ * List all NFTs on a chain
1949
+ * @summary List all NFTs
1950
+ * @param {string} chainName The name of chain
1951
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1952
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1953
+ * @param {number} [pageSize] Maximum number of items to return
1954
+ * @param {*} [options] Override http request option.
1955
+ * @throws {RequiredError}
1956
+ */
1957
+ listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1958
+ return localVarFp.listAllNFTs(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1959
+ },
1625
1960
  /**
1626
1961
  * List NFTs by contract address
1627
1962
  * @summary List NFTs by contract address
1628
1963
  * @param {string} contractAddress Contract address
1629
1964
  * @param {string} chainName The name of chain
1965
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
1630
1966
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
1631
1967
  * @param {number} [pageSize] Maximum number of items to return
1632
1968
  * @param {*} [options] Override http request option.
1633
1969
  * @throws {RequiredError}
1634
1970
  */
1635
- listNFTs(contractAddress, chainName, pageCursor, pageSize, options) {
1636
- return localVarFp.listNFTs(contractAddress, chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1971
+ listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options) {
1972
+ return localVarFp.listNFTs(contractAddress, chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
1637
1973
  },
1638
1974
  /**
1639
1975
  * List NFTs by account address
@@ -1669,6 +2005,28 @@ class NftsApi extends BaseAPI$1 {
1669
2005
  getNFT(requestParameters, options) {
1670
2006
  return NftsApiFp(this.configuration).getNFT(requestParameters.contractAddress, requestParameters.tokenId, requestParameters.chainName, options).then((request) => request(this.axios, this.basePath));
1671
2007
  }
2008
+ /**
2009
+ * List all NFT owners on a chain
2010
+ * @summary List all NFT owners
2011
+ * @param {NftsApiListAllNFTOwnersRequest} requestParameters Request parameters.
2012
+ * @param {*} [options] Override http request option.
2013
+ * @throws {RequiredError}
2014
+ * @memberof NftsApi
2015
+ */
2016
+ listAllNFTOwners(requestParameters, options) {
2017
+ return NftsApiFp(this.configuration).listAllNFTOwners(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
2018
+ }
2019
+ /**
2020
+ * List all NFTs on a chain
2021
+ * @summary List all NFTs
2022
+ * @param {NftsApiListAllNFTsRequest} requestParameters Request parameters.
2023
+ * @param {*} [options] Override http request option.
2024
+ * @throws {RequiredError}
2025
+ * @memberof NftsApi
2026
+ */
2027
+ listAllNFTs(requestParameters, options) {
2028
+ return NftsApiFp(this.configuration).listAllNFTs(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
2029
+ }
1672
2030
  /**
1673
2031
  * List NFTs by contract address
1674
2032
  * @summary List NFTs by contract address
@@ -1678,7 +2036,7 @@ class NftsApi extends BaseAPI$1 {
1678
2036
  * @memberof NftsApi
1679
2037
  */
1680
2038
  listNFTs(requestParameters, options) {
1681
- return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
2039
+ return NftsApiFp(this.configuration).listNFTs(requestParameters.contractAddress, requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
1682
2040
  }
1683
2041
  /**
1684
2042
  * List NFTs by account address
@@ -1712,6 +2070,40 @@ class NftsApi extends BaseAPI$1 {
1712
2070
  */
1713
2071
  const OrdersApiAxiosParamCreator = function (configuration) {
1714
2072
  return {
2073
+ /**
2074
+ * Cancel one or more orders
2075
+ * @summary Cancel one or more orders
2076
+ * @param {string} chainName
2077
+ * @param {CancelOrdersRequestBody} cancelOrdersRequestBody
2078
+ * @param {*} [options] Override http request option.
2079
+ * @throws {RequiredError}
2080
+ */
2081
+ cancelOrders: async (chainName, cancelOrdersRequestBody, options = {}) => {
2082
+ // verify required parameter 'chainName' is not null or undefined
2083
+ assertParamExists$1('cancelOrders', 'chainName', chainName);
2084
+ // verify required parameter 'cancelOrdersRequestBody' is not null or undefined
2085
+ assertParamExists$1('cancelOrders', 'cancelOrdersRequestBody', cancelOrdersRequestBody);
2086
+ const localVarPath = `/v1/chains/{chain_name}/orders/cancel`
2087
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
2088
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2089
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
2090
+ let baseOptions;
2091
+ if (configuration) {
2092
+ baseOptions = configuration.baseOptions;
2093
+ }
2094
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options };
2095
+ const localVarHeaderParameter = {};
2096
+ const localVarQueryParameter = {};
2097
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2098
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
2099
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2100
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
2101
+ localVarRequestOptions.data = serializeDataIfNeeded$1(cancelOrdersRequestBody, localVarRequestOptions, configuration);
2102
+ return {
2103
+ url: toPathString$1(localVarUrlObj),
2104
+ options: localVarRequestOptions,
2105
+ };
2106
+ },
1715
2107
  /**
1716
2108
  * Create a listing
1717
2109
  * @summary Create a listing
@@ -1965,6 +2357,18 @@ const OrdersApiAxiosParamCreator = function (configuration) {
1965
2357
  const OrdersApiFp = function (configuration) {
1966
2358
  const localVarAxiosParamCreator = OrdersApiAxiosParamCreator(configuration);
1967
2359
  return {
2360
+ /**
2361
+ * Cancel one or more orders
2362
+ * @summary Cancel one or more orders
2363
+ * @param {string} chainName
2364
+ * @param {CancelOrdersRequestBody} cancelOrdersRequestBody
2365
+ * @param {*} [options] Override http request option.
2366
+ * @throws {RequiredError}
2367
+ */
2368
+ async cancelOrders(chainName, cancelOrdersRequestBody, options) {
2369
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelOrders(chainName, cancelOrdersRequestBody, options);
2370
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
2371
+ },
1968
2372
  /**
1969
2373
  * Create a listing
1970
2374
  * @summary Create a listing
@@ -2057,6 +2461,17 @@ const OrdersApiFp = function (configuration) {
2057
2461
  const OrdersApiFactory = function (configuration, basePath, axios) {
2058
2462
  const localVarFp = OrdersApiFp(configuration);
2059
2463
  return {
2464
+ /**
2465
+ * Cancel one or more orders
2466
+ * @summary Cancel one or more orders
2467
+ * @param {string} chainName
2468
+ * @param {CancelOrdersRequestBody} cancelOrdersRequestBody
2469
+ * @param {*} [options] Override http request option.
2470
+ * @throws {RequiredError}
2471
+ */
2472
+ cancelOrders(chainName, cancelOrdersRequestBody, options) {
2473
+ return localVarFp.cancelOrders(chainName, cancelOrdersRequestBody, options).then((request) => request(axios, basePath));
2474
+ },
2060
2475
  /**
2061
2476
  * Create a listing
2062
2477
  * @summary Create a listing
@@ -2143,6 +2558,17 @@ const OrdersApiFactory = function (configuration, basePath, axios) {
2143
2558
  * @extends {BaseAPI}
2144
2559
  */
2145
2560
  class OrdersApi extends BaseAPI$1 {
2561
+ /**
2562
+ * Cancel one or more orders
2563
+ * @summary Cancel one or more orders
2564
+ * @param {OrdersApiCancelOrdersRequest} requestParameters Request parameters.
2565
+ * @param {*} [options] Override http request option.
2566
+ * @throws {RequiredError}
2567
+ * @memberof OrdersApi
2568
+ */
2569
+ cancelOrders(requestParameters, options) {
2570
+ return OrdersApiFp(this.configuration).cancelOrders(requestParameters.chainName, requestParameters.cancelOrdersRequestBody, options).then((request) => request(this.axios, this.basePath));
2571
+ }
2146
2572
  /**
2147
2573
  * Create a listing
2148
2574
  * @summary Create a listing
@@ -2444,12 +2870,13 @@ const TokensApiAxiosParamCreator = function (configuration) {
2444
2870
  * List ERC20 tokens
2445
2871
  * @summary List ERC20 tokens
2446
2872
  * @param {string} chainName The name of chain
2873
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
2447
2874
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2448
2875
  * @param {number} [pageSize] Maximum number of items to return
2449
2876
  * @param {*} [options] Override http request option.
2450
2877
  * @throws {RequiredError}
2451
2878
  */
2452
- listERC20Tokens: async (chainName, pageCursor, pageSize, options = {}) => {
2879
+ listERC20Tokens: async (chainName, fromUpdatedAt, pageCursor, pageSize, options = {}) => {
2453
2880
  // verify required parameter 'chainName' is not null or undefined
2454
2881
  assertParamExists$1('listERC20Tokens', 'chainName', chainName);
2455
2882
  const localVarPath = `/v1/chains/{chain_name}/tokens`
@@ -2463,6 +2890,11 @@ const TokensApiAxiosParamCreator = function (configuration) {
2463
2890
  const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
2464
2891
  const localVarHeaderParameter = {};
2465
2892
  const localVarQueryParameter = {};
2893
+ if (fromUpdatedAt !== undefined) {
2894
+ localVarQueryParameter['from_updated_at'] = (fromUpdatedAt instanceof Date) ?
2895
+ fromUpdatedAt.toISOString() :
2896
+ fromUpdatedAt;
2897
+ }
2466
2898
  if (pageCursor !== undefined) {
2467
2899
  localVarQueryParameter['page_cursor'] = pageCursor;
2468
2900
  }
@@ -2502,13 +2934,14 @@ const TokensApiFp = function (configuration) {
2502
2934
  * List ERC20 tokens
2503
2935
  * @summary List ERC20 tokens
2504
2936
  * @param {string} chainName The name of chain
2937
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
2505
2938
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2506
2939
  * @param {number} [pageSize] Maximum number of items to return
2507
2940
  * @param {*} [options] Override http request option.
2508
2941
  * @throws {RequiredError}
2509
2942
  */
2510
- async listERC20Tokens(chainName, pageCursor, pageSize, options) {
2511
- const localVarAxiosArgs = await localVarAxiosParamCreator.listERC20Tokens(chainName, pageCursor, pageSize, options);
2943
+ async listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
2944
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options);
2512
2945
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
2513
2946
  },
2514
2947
  };
@@ -2535,13 +2968,14 @@ const TokensApiFactory = function (configuration, basePath, axios) {
2535
2968
  * List ERC20 tokens
2536
2969
  * @summary List ERC20 tokens
2537
2970
  * @param {string} chainName The name of chain
2971
+ * @param {string} [fromUpdatedAt] Datetime to use as the oldest updated timestamp
2538
2972
  * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
2539
2973
  * @param {number} [pageSize] Maximum number of items to return
2540
2974
  * @param {*} [options] Override http request option.
2541
2975
  * @throws {RequiredError}
2542
2976
  */
2543
- listERC20Tokens(chainName, pageCursor, pageSize, options) {
2544
- return localVarFp.listERC20Tokens(chainName, pageCursor, pageSize, options).then((request) => request(axios, basePath));
2977
+ listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options) {
2978
+ return localVarFp.listERC20Tokens(chainName, fromUpdatedAt, pageCursor, pageSize, options).then((request) => request(axios, basePath));
2545
2979
  },
2546
2980
  };
2547
2981
  };
@@ -2572,7 +3006,7 @@ class TokensApi extends BaseAPI$1 {
2572
3006
  * @memberof TokensApi
2573
3007
  */
2574
3008
  listERC20Tokens(requestParameters, options) {
2575
- return TokensApiFp(this.configuration).listERC20Tokens(requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
3009
+ return TokensApiFp(this.configuration).listERC20Tokens(requestParameters.chainName, requestParameters.fromUpdatedAt, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
2576
3010
  }
2577
3011
  }
2578
3012
 
@@ -2766,6 +3200,23 @@ const APIError500AllOfCodeEnum = {
2766
3200
  InternalServerError: 'INTERNAL_SERVER_ERROR'
2767
3201
  };
2768
3202
 
3203
+ /* tslint:disable */
3204
+ /* eslint-disable */
3205
+ /**
3206
+ * Immutable zkEVM API
3207
+ * Immutable Multi Rollup API
3208
+ *
3209
+ * The version of the OpenAPI document: 1.0.0
3210
+ * Contact: support@immutable.com
3211
+ *
3212
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3213
+ * https://openapi-generator.tech
3214
+ * Do not edit the class manually.
3215
+ */
3216
+ const APIError501AllOfCodeEnum = {
3217
+ NotImplementedError: 'NOT_IMPLEMENTED_ERROR'
3218
+ };
3219
+
2769
3220
  /* tslint:disable */
2770
3221
  /* eslint-disable */
2771
3222
  /**
@@ -2793,6 +3244,23 @@ const ActivityType = {
2793
3244
  Withdrawal: 'withdrawal'
2794
3245
  };
2795
3246
 
3247
+ /* tslint:disable */
3248
+ /* eslint-disable */
3249
+ /**
3250
+ * Immutable zkEVM API
3251
+ * Immutable Multi Rollup API
3252
+ *
3253
+ * The version of the OpenAPI document: 1.0.0
3254
+ * Contact: support@immutable.com
3255
+ *
3256
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3257
+ * https://openapi-generator.tech
3258
+ * Do not edit the class manually.
3259
+ */
3260
+ const CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum = {
3261
+ AlreadyFilled: 'ALREADY_FILLED'
3262
+ };
3263
+
2796
3264
  /* tslint:disable */
2797
3265
  /* eslint-disable */
2798
3266
  /**
@@ -2864,8 +3332,8 @@ const ERC721ItemItemTypeEnum = {
2864
3332
  */
2865
3333
  const FeeFeeTypeEnum = {
2866
3334
  Royalty: 'ROYALTY',
2867
- MakerMarketplace: 'MAKER_MARKETPLACE',
2868
- TakerMarketplace: 'TAKER_MARKETPLACE',
3335
+ MakerEcosystem: 'MAKER_ECOSYSTEM',
3336
+ TakerEcosystem: 'TAKER_ECOSYSTEM',
2869
3337
  Protocol: 'PROTOCOL'
2870
3338
  };
2871
3339
 
@@ -2926,7 +3394,7 @@ const NativeItemItemTypeEnum = {
2926
3394
  * @export
2927
3395
  * @enum {string}
2928
3396
  */
2929
- const OrderStatus$1 = {
3397
+ const OrderStatus = {
2930
3398
  Pending: 'PENDING',
2931
3399
  Active: 'ACTIVE',
2932
3400
  Inactive: 'INACTIVE',
@@ -3013,11 +3481,13 @@ var index = /*#__PURE__*/Object.freeze({
3013
3481
  APIError404AllOfCodeEnum: APIError404AllOfCodeEnum,
3014
3482
  APIError429AllOfCodeEnum: APIError429AllOfCodeEnum,
3015
3483
  APIError500AllOfCodeEnum: APIError500AllOfCodeEnum,
3484
+ APIError501AllOfCodeEnum: APIError501AllOfCodeEnum,
3016
3485
  ActivitiesApi: ActivitiesApi,
3017
3486
  ActivitiesApiAxiosParamCreator: ActivitiesApiAxiosParamCreator,
3018
3487
  ActivitiesApiFactory: ActivitiesApiFactory,
3019
3488
  ActivitiesApiFp: ActivitiesApiFp,
3020
3489
  ActivityType: ActivityType,
3490
+ CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum: CancelOrdersResultResultFailedCancellationsInnerReasonCodeEnum,
3021
3491
  ChainsApi: ChainsApi,
3022
3492
  ChainsApiAxiosParamCreator: ChainsApiAxiosParamCreator,
3023
3493
  ChainsApiFactory: ChainsApiFactory,
@@ -3045,7 +3515,7 @@ var index = /*#__PURE__*/Object.freeze({
3045
3515
  NftsApiAxiosParamCreator: NftsApiAxiosParamCreator,
3046
3516
  NftsApiFactory: NftsApiFactory,
3047
3517
  NftsApiFp: NftsApiFp,
3048
- OrderStatus: OrderStatus$1,
3518
+ OrderStatus: OrderStatus,
3049
3519
  OrdersApi: OrdersApi,
3050
3520
  OrdersApiAxiosParamCreator: OrdersApiAxiosParamCreator,
3051
3521
  OrdersApiFactory: OrdersApiFactory,
@@ -3085,7 +3555,7 @@ class MultiRollupApiClients {
3085
3555
  }
3086
3556
 
3087
3557
  // eslint-disable-next-line @typescript-eslint/naming-convention
3088
- const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.24.1' };
3558
+ const defaultHeaders$1 = { 'x-sdk-version': 'ts-immutable-sdk-0.25.0' };
3089
3559
  const createConfig = ({ basePath, headers, }) => {
3090
3560
  if (!basePath.trim()) {
3091
3561
  throw Error('basePath can not be empty');
@@ -3145,7 +3615,7 @@ class APIError extends Error {
3145
3615
 
3146
3616
  /* eslint-disable implicit-arrow-linebreak */
3147
3617
  const defaultHeaders = {
3148
- sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.24.1',
3618
+ sdkVersion: 'ts-immutable-sdk-multi-rollup-api-client-0.25.0',
3149
3619
  };
3150
3620
  /**
3151
3621
  * createAPIConfiguration to create a custom Configuration
@@ -3378,6 +3848,20 @@ class BlockchainData {
3378
3848
  throw formatError(err);
3379
3849
  });
3380
3850
  }
3851
+ /**
3852
+ * List All NFTs on a chain
3853
+ * @param request - the request object containing the parameters to be provided in the API request
3854
+ * @returns a promise that resolves with a list of NFTs
3855
+ * @throws {@link index.APIError}
3856
+ */
3857
+ async listAllNFTs(request) {
3858
+ return await this.nfts
3859
+ .listAllNFTs(request)
3860
+ .then((res) => res.data)
3861
+ .catch((err) => {
3862
+ throw formatError(err);
3863
+ });
3864
+ }
3381
3865
  /**
3382
3866
  * List NFT owners by token ID
3383
3867
  * @param request - the request object containing the parameters to be provided in the API request
@@ -3392,6 +3876,34 @@ class BlockchainData {
3392
3876
  throw formatError(err);
3393
3877
  });
3394
3878
  }
3879
+ /**
3880
+ * List NFT owners by contract address
3881
+ * @param request - the request object containing the parameters to be provided in the API request
3882
+ * @returns a promise that resolves with a list of NFT owners
3883
+ * @throws {@link index.APIError}
3884
+ */
3885
+ async listNFTOwnersByContractAddress(request) {
3886
+ return await this.nftOwners
3887
+ .listOwnersByContractAddress(request)
3888
+ .then((res) => res.data)
3889
+ .catch((err) => {
3890
+ throw formatError(err);
3891
+ });
3892
+ }
3893
+ /**
3894
+ * List All NFT owners on a chain
3895
+ * @param request - the request object containing the parameters to be provided in the API request
3896
+ * @returns a promise that resolves with a list of NFT owners
3897
+ * @throws {@link index.APIError}
3898
+ */
3899
+ async listAllNFTOwners(request) {
3900
+ return await this.nfts
3901
+ .listAllNFTOwners(request)
3902
+ .then((res) => res.data)
3903
+ .catch((err) => {
3904
+ throw formatError(err);
3905
+ });
3906
+ }
3395
3907
  /**
3396
3908
  * List ERC20 Token contracts
3397
3909
  * @param request - the request object containing the parameters to be provided in the API request
@@ -3420,6 +3932,20 @@ class BlockchainData {
3420
3932
  throw formatError(err);
3421
3933
  });
3422
3934
  }
3935
+ /**
3936
+ * List NFT Metadata by contract address
3937
+ * @param request - the request object containing the parameters to be provided in the API request
3938
+ * @returns a promise that resolves with a list of Metadata
3939
+ * @throws {@link index.APIError}
3940
+ */
3941
+ async listNFTMetadataByContractAddress(request) {
3942
+ return await this.metadata
3943
+ .listMetadata(request)
3944
+ .then((res) => res.data)
3945
+ .catch((err) => {
3946
+ throw formatError(err);
3947
+ });
3948
+ }
3423
3949
  /**
3424
3950
  * Refresh collection metadata
3425
3951
  * @param request - the request object containing the parameters to be provided in the API request
@@ -3479,7 +4005,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
3479
4005
  chainID,
3480
4006
  coreContractAddress,
3481
4007
  registrationContractAddress,
3482
- sdkVersion: 'ts-immutable-sdk-0.24.1',
4008
+ sdkVersion: 'ts-immutable-sdk-0.25.0',
3483
4009
  });
3484
4010
  /**
3485
4011
  * Sets `sdkVersion` at the time of build
@@ -10556,6 +11082,31 @@ class OrdersService {
10556
11082
  constructor(httpRequest) {
10557
11083
  this.httpRequest = httpRequest;
10558
11084
  }
11085
+ /**
11086
+ * Cancel one or more orders
11087
+ * Cancel one or more orders
11088
+ * @returns CancelOrdersResult Orders cancellation response.
11089
+ * @throws ApiError
11090
+ */
11091
+ cancelOrders({ chainName, requestBody, }) {
11092
+ return this.httpRequest.request({
11093
+ method: 'POST',
11094
+ url: '/v1/chains/{chain_name}/orders/cancel',
11095
+ path: {
11096
+ 'chain_name': chainName,
11097
+ },
11098
+ body: requestBody,
11099
+ mediaType: 'application/json',
11100
+ errors: {
11101
+ 400: `Bad Request (400)`,
11102
+ 401: `Unauthorised Request (401)`,
11103
+ 404: `The specified resource was not found (404)`,
11104
+ 429: `Too Many Requests (429)`,
11105
+ 500: `Internal Server Error (500)`,
11106
+ 501: `Not Implemented Error (501)`,
11107
+ },
11108
+ });
11109
+ }
10559
11110
  /**
10560
11111
  * List all listings
10561
11112
  * List all listings
@@ -10720,6 +11271,17 @@ class OrderBookClient {
10720
11271
  }
10721
11272
  }
10722
11273
 
11274
+ /* istanbul ignore file */
11275
+ /* tslint:disable */
11276
+ /* eslint-disable */
11277
+ var CancelledOrderStatus;
11278
+ (function (CancelledOrderStatus) {
11279
+ (function (cancellation_type) {
11280
+ cancellation_type["ON_CHAIN"] = "ON_CHAIN";
11281
+ cancellation_type["OFF_CHAIN"] = "OFF_CHAIN";
11282
+ })(CancelledOrderStatus.cancellation_type || (CancelledOrderStatus.cancellation_type = {}));
11283
+ })(CancelledOrderStatus || (CancelledOrderStatus = {}));
11284
+
10723
11285
  /* istanbul ignore file */
10724
11286
  /* tslint:disable */
10725
11287
  /* eslint-disable */
@@ -10739,15 +11301,15 @@ var Fee;
10739
11301
  /**
10740
11302
  * The Order status
10741
11303
  */
10742
- var OrderStatus;
10743
- (function (OrderStatus) {
10744
- OrderStatus["PENDING"] = "PENDING";
10745
- OrderStatus["ACTIVE"] = "ACTIVE";
10746
- OrderStatus["INACTIVE"] = "INACTIVE";
10747
- OrderStatus["FILLED"] = "FILLED";
10748
- OrderStatus["CANCELLED"] = "CANCELLED";
10749
- OrderStatus["EXPIRED"] = "EXPIRED";
10750
- })(OrderStatus || (OrderStatus = {}));
11304
+ var OrderStatusName;
11305
+ (function (OrderStatusName) {
11306
+ OrderStatusName["PENDING"] = "PENDING";
11307
+ OrderStatusName["ACTIVE"] = "ACTIVE";
11308
+ OrderStatusName["INACTIVE"] = "INACTIVE";
11309
+ OrderStatusName["FILLED"] = "FILLED";
11310
+ OrderStatusName["EXPIRED"] = "EXPIRED";
11311
+ OrderStatusName["CANCELLED"] = "CANCELLED";
11312
+ })(OrderStatusName || (OrderStatusName = {}));
10751
11313
 
10752
11314
  /* istanbul ignore file */
10753
11315
  /* tslint:disable */
@@ -11122,18 +11684,57 @@ class Seaport {
11122
11684
  buildTransaction: prepareTransaction(fulfilOrderAction.transactionMethods),
11123
11685
  purpose: TransactionPurpose.FULFILL_ORDER,
11124
11686
  });
11125
- // Expirtaion bytes in SIP7 extra data [21:29]
11126
- // In hex string -> [21 * 2 + 2 (0x) : 29 * 2]
11127
- // In JS slice (start, end_inclusive), (44,60)
11128
- // 8 bytes uint64 epoch time in seconds
11129
- const expirationHex = extraData.slice(44, 60);
11130
- const expirationInSeconds = parseInt(expirationHex, 16);
11131
11687
  return {
11132
11688
  actions: fulfillmentActions,
11133
- expiration: (new Date(expirationInSeconds * 1000)).toISOString(),
11689
+ expiration: Seaport.getExpirationISOTimeFromExtraData(extraData),
11134
11690
  order: mapFromOpenApiOrder(order),
11135
11691
  };
11136
11692
  }
11693
+ async fulfillBulkOrders(fulfillingOrders, account) {
11694
+ // TODO: this function right now does not handle errors from the seaport.js
11695
+ // we should figure out why orders are rejected and return a submission
11696
+ // transaction on best efforts basis
11697
+ const fulfillOrderDetails = fulfillingOrders.map((o) => {
11698
+ const { orderComponents, tips } = this.mapImmutableOrderToSeaportOrderComponents(o.order);
11699
+ return {
11700
+ order: {
11701
+ parameters: orderComponents,
11702
+ signature: o.order.signature,
11703
+ },
11704
+ extraData: o.extra_data,
11705
+ tips,
11706
+ };
11707
+ });
11708
+ const { actions: seaportActions } = await this.getSeaportLib().fulfillOrders({
11709
+ fulfillOrderDetails,
11710
+ accountAddress: account,
11711
+ });
11712
+ const fulfillmentActions = [];
11713
+ const approvalAction = seaportActions.find((action) => action.type === 'approval');
11714
+ if (approvalAction) {
11715
+ fulfillmentActions.push({
11716
+ type: ActionType.TRANSACTION,
11717
+ buildTransaction: prepareTransaction(approvalAction.transactionMethods),
11718
+ purpose: TransactionPurpose.APPROVAL,
11719
+ });
11720
+ }
11721
+ const fulfilOrderAction = seaportActions.find((action) => action.type === 'exchange');
11722
+ if (!fulfilOrderAction) {
11723
+ throw new Error('No exchange action found');
11724
+ }
11725
+ fulfillmentActions.push({
11726
+ type: ActionType.TRANSACTION,
11727
+ buildTransaction: prepareTransaction(fulfilOrderAction.transactionMethods),
11728
+ purpose: TransactionPurpose.FULFILL_ORDER,
11729
+ });
11730
+ return {
11731
+ actions: fulfillmentActions,
11732
+ // return the shortest expiration out of all extraData - they should be very close
11733
+ expiration: fulfillOrderDetails
11734
+ .map((d) => Seaport.getExpirationISOTimeFromExtraData(d.extraData))
11735
+ .reduce((p, c) => (new Date(p) < new Date(c) ? p : c)),
11736
+ };
11737
+ }
11137
11738
  async cancelOrder(order, account) {
11138
11739
  const { orderComponents } = this.mapImmutableOrderToSeaportOrderComponents(order);
11139
11740
  const seaportLib = this.getSeaportLib(order);
@@ -11157,9 +11758,7 @@ class Seaport {
11157
11758
  ],
11158
11759
  consideration: [
11159
11760
  {
11160
- token: considerationItem.type === 'ERC20'
11161
- ? considerationItem.contractAddress
11162
- : undefined,
11761
+ token: considerationItem.type === 'ERC20' ? considerationItem.contractAddress : undefined,
11163
11762
  amount: considerationItem.amount,
11164
11763
  recipient: offerer,
11165
11764
  },
@@ -11192,6 +11791,15 @@ class Seaport {
11192
11791
  // }
11193
11792
  return this.seaportLibFactory.create(seaportVersion, seaportAddress);
11194
11793
  }
11794
+ static getExpirationISOTimeFromExtraData(extraData) {
11795
+ // Expirtaion bytes in SIP7 extra data [21:29]
11796
+ // In hex string -> [21 * 2 + 2 (0x) : 29 * 2]
11797
+ // In JS slice (start, end_inclusive), (44,60)
11798
+ // 8 bytes uint64 epoch time in seconds
11799
+ const expirationHex = extraData.slice(44, 60);
11800
+ const expirationInSeconds = parseInt(expirationHex, 16);
11801
+ return new Date(expirationInSeconds * 1000).toISOString();
11802
+ }
11195
11803
  }
11196
11804
 
11197
11805
  class ImmutableApiClient {
@@ -11490,11 +12098,29 @@ class Orderbook {
11490
12098
  }
11491
12099
  const extraData = fulfillmentDataRes.result.fulfillable_orders[0].extra_data;
11492
12100
  const orderResult = fulfillmentDataRes.result.fulfillable_orders[0].order;
11493
- if (orderResult.status !== OrderStatus.ACTIVE) {
12101
+ if (orderResult.status.name !== OrderStatusName.ACTIVE) {
11494
12102
  throw new Error(`Cannot fulfil order that is not active. Current status: ${orderResult.status}`);
11495
12103
  }
11496
12104
  return this.seaport.fulfillOrder(orderResult, takerAddress, extraData);
11497
12105
  }
12106
+ async fulfillBulkOrders(listings, takerAddress) {
12107
+ const fulfillmentDataRes = await this.apiClient.fulfillmentData(listings.map((listingRequest) => ({
12108
+ order_id: listingRequest.listingId,
12109
+ fees: listingRequest.takerFees.map((fee) => ({
12110
+ amount: fee.amount,
12111
+ fee_type: FeeType.TAKER_ECOSYSTEM,
12112
+ recipient: fee.recipient,
12113
+ })),
12114
+ })));
12115
+ return {
12116
+ ...(await this.seaport.fulfillBulkOrders(fulfillmentDataRes.result.fulfillable_orders, takerAddress)),
12117
+ fulfillableOrders: fulfillmentDataRes.result.fulfillable_orders.map((o) => mapFromOpenApiOrder(o.order)),
12118
+ unfulfillableOrders: fulfillmentDataRes.result.unfulfillable_orders.map((o) => ({
12119
+ orderId: o.order_id,
12120
+ reason: o.reason,
12121
+ })),
12122
+ };
12123
+ }
11498
12124
  /**
11499
12125
  * Get an unsigned cancel order transaction. Orders can only be cancelled by
11500
12126
  * the account that created them.
@@ -11504,9 +12130,9 @@ class Orderbook {
11504
12130
  */
11505
12131
  async cancelOrder(listingId, accountAddress) {
11506
12132
  const orderResult = await this.apiClient.getListing(listingId);
11507
- if (orderResult.result.status !== OrderStatus.ACTIVE
11508
- && orderResult.result.status !== OrderStatus.INACTIVE
11509
- && orderResult.result.status !== OrderStatus.PENDING) {
12133
+ if (orderResult.result.status.name !== OrderStatusName.ACTIVE
12134
+ && orderResult.result.status.name !== OrderStatusName.INACTIVE
12135
+ && orderResult.result.status.name !== OrderStatusName.PENDING) {
11510
12136
  throw new Error(`Cannot cancel order with status ${orderResult.result.status}`);
11511
12137
  }
11512
12138
  if (orderResult.result.account_address !== accountAddress.toLowerCase()) {
@@ -11529,7 +12155,7 @@ var orderbook = /*#__PURE__*/Object.freeze({
11529
12155
  __proto__: null,
11530
12156
  get ActionType () { return ActionType; },
11531
12157
  get FeeType () { return FeeType; },
11532
- get OrderStatus () { return OrderStatus; },
12158
+ get OrderStatusName () { return OrderStatusName; },
11533
12159
  Orderbook: Orderbook,
11534
12160
  get SignablePurpose () { return SignablePurpose; },
11535
12161
  get TransactionPurpose () { return TransactionPurpose; },
@@ -32307,7 +32933,7 @@ var $045213b18e9f1f94$export$75be0f6af9650f2c;
32307
32933
  })($045213b18e9f1f94$export$75be0f6af9650f2c || ($045213b18e9f1f94$export$75be0f6af9650f2c = {}));
32308
32934
 
32309
32935
 
32310
- const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.24.1";
32936
+ const $d663162fd5a0853f$export$38a083d9fb5551ca = "0.25.0";
32311
32937
  const $d663162fd5a0853f$export$83bf90b30cdfd29f = ()=>false;
32312
32938
  const $d663162fd5a0853f$export$1169f5475725171b = ()=>$d663162fd5a0853f$export$38a083d9fb5551ca;
32313
32939