@imtbl/sdk 0.16.0 → 0.17.1

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/passport.js CHANGED
@@ -627,6 +627,47 @@ const CollectionsApiAxiosParamCreator = function (configuration) {
627
627
  options: localVarRequestOptions,
628
628
  };
629
629
  },
630
+ /**
631
+ * List collections by NFT owner account address
632
+ * @summary List collections by NFT owner
633
+ * @param {string} accountAddress Account address
634
+ * @param {string} chainName The name of chain
635
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
636
+ * @param {number} [pageSize] Maximum number of items to return
637
+ * @param {*} [options] Override http request option.
638
+ * @throws {RequiredError}
639
+ */
640
+ listCollectionsByNFTOwner: async (accountAddress, chainName, pageCursor, pageSize, options = {}) => {
641
+ // verify required parameter 'accountAddress' is not null or undefined
642
+ assertParamExists$1('listCollectionsByNFTOwner', 'accountAddress', accountAddress);
643
+ // verify required parameter 'chainName' is not null or undefined
644
+ assertParamExists$1('listCollectionsByNFTOwner', 'chainName', chainName);
645
+ const localVarPath = `/v1/chains/{chain_name}/accounts/{account_address}/collections`
646
+ .replace(`{${"account_address"}}`, encodeURIComponent(String(accountAddress)))
647
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
648
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
649
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
650
+ let baseOptions;
651
+ if (configuration) {
652
+ baseOptions = configuration.baseOptions;
653
+ }
654
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
655
+ const localVarHeaderParameter = {};
656
+ const localVarQueryParameter = {};
657
+ if (pageCursor !== undefined) {
658
+ localVarQueryParameter['page_cursor'] = pageCursor;
659
+ }
660
+ if (pageSize !== undefined) {
661
+ localVarQueryParameter['page_size'] = pageSize;
662
+ }
663
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
664
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
665
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
666
+ return {
667
+ url: toPathString$1(localVarUrlObj),
668
+ options: localVarRequestOptions,
669
+ };
670
+ },
630
671
  };
631
672
  };
632
673
  /**
@@ -661,6 +702,20 @@ const CollectionsApiFp = function (configuration) {
661
702
  const localVarAxiosArgs = await localVarAxiosParamCreator.listCollections(chainName, pageCursor, pageSize, options);
662
703
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
663
704
  },
705
+ /**
706
+ * List collections by NFT owner account address
707
+ * @summary List collections by NFT owner
708
+ * @param {string} accountAddress Account address
709
+ * @param {string} chainName The name of chain
710
+ * @param {string} [pageCursor] Encoded page cursor to retrieve previous or next page. Use the value returned in the response.
711
+ * @param {number} [pageSize] Maximum number of items to return
712
+ * @param {*} [options] Override http request option.
713
+ * @throws {RequiredError}
714
+ */
715
+ async listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options) {
716
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listCollectionsByNFTOwner(accountAddress, chainName, pageCursor, pageSize, options);
717
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
718
+ },
664
719
  };
665
720
  };
666
721
  /**
@@ -692,6 +747,17 @@ class CollectionsApi extends BaseAPI$1 {
692
747
  listCollections(requestParameters, options) {
693
748
  return CollectionsApiFp(this.configuration).listCollections(requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
694
749
  }
750
+ /**
751
+ * List collections by NFT owner account address
752
+ * @summary List collections by NFT owner
753
+ * @param {CollectionsApiListCollectionsByNFTOwnerRequest} requestParameters Request parameters.
754
+ * @param {*} [options] Override http request option.
755
+ * @throws {RequiredError}
756
+ * @memberof CollectionsApi
757
+ */
758
+ listCollectionsByNFTOwner(requestParameters, options) {
759
+ return CollectionsApiFp(this.configuration).listCollectionsByNFTOwner(requestParameters.accountAddress, requestParameters.chainName, requestParameters.pageCursor, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
760
+ }
695
761
  }
696
762
 
697
763
  /* tslint:disable */
@@ -1098,16 +1164,16 @@ const OrdersApiAxiosParamCreator = function (configuration) {
1098
1164
  * Retrieve signed fulfillment data based on the list of order IDs and corresponding fees.
1099
1165
  * @summary Retrieve fulfillment data for orders
1100
1166
  * @param {string} chainName
1101
- * @param {Array<FulfillmentDataRequestInner>} fulfillmentDataRequestInner
1167
+ * @param {Array<FulfillmentDataRequest>} fulfillmentDataRequest
1102
1168
  * @param {*} [options] Override http request option.
1103
1169
  * @throws {RequiredError}
1104
1170
  */
1105
- fulfillmentData: async (chainName, fulfillmentDataRequestInner, options = {}) => {
1171
+ fulfillmentData: async (chainName, fulfillmentDataRequest, options = {}) => {
1106
1172
  // verify required parameter 'chainName' is not null or undefined
1107
1173
  assertParamExists$1('fulfillmentData', 'chainName', chainName);
1108
- // verify required parameter 'fulfillmentDataRequestInner' is not null or undefined
1109
- assertParamExists$1('fulfillmentData', 'fulfillmentDataRequestInner', fulfillmentDataRequestInner);
1110
- const localVarPath = `/v1/chains/{chain_name}/orders/fulfillment_data`
1174
+ // verify required parameter 'fulfillmentDataRequest' is not null or undefined
1175
+ assertParamExists$1('fulfillmentData', 'fulfillmentDataRequest', fulfillmentDataRequest);
1176
+ const localVarPath = `/v1/chains/{chain_name}/orders/fulfillment-data`
1111
1177
  .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
1112
1178
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
1113
1179
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
@@ -1122,7 +1188,7 @@ const OrdersApiAxiosParamCreator = function (configuration) {
1122
1188
  setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1123
1189
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1124
1190
  localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1125
- localVarRequestOptions.data = serializeDataIfNeeded$1(fulfillmentDataRequestInner, localVarRequestOptions, configuration);
1191
+ localVarRequestOptions.data = serializeDataIfNeeded$1(fulfillmentDataRequest, localVarRequestOptions, configuration);
1126
1192
  return {
1127
1193
  url: toPathString$1(localVarUrlObj),
1128
1194
  options: localVarRequestOptions,
@@ -1161,6 +1227,39 @@ const OrdersApiAxiosParamCreator = function (configuration) {
1161
1227
  options: localVarRequestOptions,
1162
1228
  };
1163
1229
  },
1230
+ /**
1231
+ * Get a single trade by ID
1232
+ * @summary Get a single trade by ID
1233
+ * @param {string} chainName
1234
+ * @param {string} tradeId Global Trade identifier
1235
+ * @param {*} [options] Override http request option.
1236
+ * @throws {RequiredError}
1237
+ */
1238
+ getTrade: async (chainName, tradeId, options = {}) => {
1239
+ // verify required parameter 'chainName' is not null or undefined
1240
+ assertParamExists$1('getTrade', 'chainName', chainName);
1241
+ // verify required parameter 'tradeId' is not null or undefined
1242
+ assertParamExists$1('getTrade', 'tradeId', tradeId);
1243
+ const localVarPath = `/v1/chains/{chain_name}/trades/{trade_id}`
1244
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)))
1245
+ .replace(`{${"trade_id"}}`, encodeURIComponent(String(tradeId)));
1246
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1247
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
1248
+ let baseOptions;
1249
+ if (configuration) {
1250
+ baseOptions = configuration.baseOptions;
1251
+ }
1252
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1253
+ const localVarHeaderParameter = {};
1254
+ const localVarQueryParameter = {};
1255
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1256
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1257
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1258
+ return {
1259
+ url: toPathString$1(localVarUrlObj),
1260
+ options: localVarRequestOptions,
1261
+ };
1262
+ },
1164
1263
  /**
1165
1264
  * List all listings
1166
1265
  * @summary List all listings
@@ -1222,6 +1321,55 @@ const OrdersApiAxiosParamCreator = function (configuration) {
1222
1321
  options: localVarRequestOptions,
1223
1322
  };
1224
1323
  },
1324
+ /**
1325
+ * List all trades
1326
+ * @summary List all trades
1327
+ * @param {string} chainName
1328
+ * @param {string} [accountAddress]
1329
+ * @param {number} [pageSize] Maximum number of trades to return per page
1330
+ * @param {'created_at'} [sortBy] Trade field to sort by
1331
+ * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
1332
+ * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
1333
+ * @param {*} [options] Override http request option.
1334
+ * @throws {RequiredError}
1335
+ */
1336
+ listTrades: async (chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options = {}) => {
1337
+ // verify required parameter 'chainName' is not null or undefined
1338
+ assertParamExists$1('listTrades', 'chainName', chainName);
1339
+ const localVarPath = `/v1/chains/{chain_name}/trades`
1340
+ .replace(`{${"chain_name"}}`, encodeURIComponent(String(chainName)));
1341
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1342
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
1343
+ let baseOptions;
1344
+ if (configuration) {
1345
+ baseOptions = configuration.baseOptions;
1346
+ }
1347
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1348
+ const localVarHeaderParameter = {};
1349
+ const localVarQueryParameter = {};
1350
+ if (accountAddress !== undefined) {
1351
+ localVarQueryParameter['account_address'] = accountAddress;
1352
+ }
1353
+ if (pageSize !== undefined) {
1354
+ localVarQueryParameter['page_size'] = pageSize;
1355
+ }
1356
+ if (sortBy !== undefined) {
1357
+ localVarQueryParameter['sort_by'] = sortBy;
1358
+ }
1359
+ if (sortDirection !== undefined) {
1360
+ localVarQueryParameter['sort_direction'] = sortDirection;
1361
+ }
1362
+ if (pageCursor !== undefined) {
1363
+ localVarQueryParameter['page_cursor'] = pageCursor;
1364
+ }
1365
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1366
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1367
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1368
+ return {
1369
+ url: toPathString$1(localVarUrlObj),
1370
+ options: localVarRequestOptions,
1371
+ };
1372
+ },
1225
1373
  };
1226
1374
  };
1227
1375
  /**
@@ -1247,12 +1395,12 @@ const OrdersApiFp = function (configuration) {
1247
1395
  * Retrieve signed fulfillment data based on the list of order IDs and corresponding fees.
1248
1396
  * @summary Retrieve fulfillment data for orders
1249
1397
  * @param {string} chainName
1250
- * @param {Array<FulfillmentDataRequestInner>} fulfillmentDataRequestInner
1398
+ * @param {Array<FulfillmentDataRequest>} fulfillmentDataRequest
1251
1399
  * @param {*} [options] Override http request option.
1252
1400
  * @throws {RequiredError}
1253
1401
  */
1254
- async fulfillmentData(chainName, fulfillmentDataRequestInner, options) {
1255
- const localVarAxiosArgs = await localVarAxiosParamCreator.fulfillmentData(chainName, fulfillmentDataRequestInner, options);
1402
+ async fulfillmentData(chainName, fulfillmentDataRequest, options) {
1403
+ const localVarAxiosArgs = await localVarAxiosParamCreator.fulfillmentData(chainName, fulfillmentDataRequest, options);
1256
1404
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1257
1405
  },
1258
1406
  /**
@@ -1267,6 +1415,18 @@ const OrdersApiFp = function (configuration) {
1267
1415
  const localVarAxiosArgs = await localVarAxiosParamCreator.getListing(chainName, listingId, options);
1268
1416
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1269
1417
  },
1418
+ /**
1419
+ * Get a single trade by ID
1420
+ * @summary Get a single trade by ID
1421
+ * @param {string} chainName
1422
+ * @param {string} tradeId Global Trade identifier
1423
+ * @param {*} [options] Override http request option.
1424
+ * @throws {RequiredError}
1425
+ */
1426
+ async getTrade(chainName, tradeId, options) {
1427
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getTrade(chainName, tradeId, options);
1428
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1429
+ },
1270
1430
  /**
1271
1431
  * List all listings
1272
1432
  * @summary List all listings
@@ -1286,6 +1446,22 @@ const OrdersApiFp = function (configuration) {
1286
1446
  const localVarAxiosArgs = await localVarAxiosParamCreator.listListings(chainName, status, sellItemContractAddress, buyItemContractAddress, sellItemTokenId, pageSize, sortBy, sortDirection, pageCursor, options);
1287
1447
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1288
1448
  },
1449
+ /**
1450
+ * List all trades
1451
+ * @summary List all trades
1452
+ * @param {string} chainName
1453
+ * @param {string} [accountAddress]
1454
+ * @param {number} [pageSize] Maximum number of trades to return per page
1455
+ * @param {'created_at'} [sortBy] Trade field to sort by
1456
+ * @param {'asc' | 'desc'} [sortDirection] Ascending or descending direction for sort
1457
+ * @param {string} [pageCursor] Page cursor to retrieve previous or next page. Use the value returned in the response.
1458
+ * @param {*} [options] Override http request option.
1459
+ * @throws {RequiredError}
1460
+ */
1461
+ async listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options) {
1462
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listTrades(chainName, accountAddress, pageSize, sortBy, sortDirection, pageCursor, options);
1463
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1464
+ },
1289
1465
  };
1290
1466
  };
1291
1467
  /**
@@ -1315,7 +1491,7 @@ class OrdersApi extends BaseAPI$1 {
1315
1491
  * @memberof OrdersApi
1316
1492
  */
1317
1493
  fulfillmentData(requestParameters, options) {
1318
- return OrdersApiFp(this.configuration).fulfillmentData(requestParameters.chainName, requestParameters.fulfillmentDataRequestInner, options).then((request) => request(this.axios, this.basePath));
1494
+ return OrdersApiFp(this.configuration).fulfillmentData(requestParameters.chainName, requestParameters.fulfillmentDataRequest, options).then((request) => request(this.axios, this.basePath));
1319
1495
  }
1320
1496
  /**
1321
1497
  * Get a single listing by ID
@@ -1328,6 +1504,17 @@ class OrdersApi extends BaseAPI$1 {
1328
1504
  getListing(requestParameters, options) {
1329
1505
  return OrdersApiFp(this.configuration).getListing(requestParameters.chainName, requestParameters.listingId, options).then((request) => request(this.axios, this.basePath));
1330
1506
  }
1507
+ /**
1508
+ * Get a single trade by ID
1509
+ * @summary Get a single trade by ID
1510
+ * @param {OrdersApiGetTradeRequest} requestParameters Request parameters.
1511
+ * @param {*} [options] Override http request option.
1512
+ * @throws {RequiredError}
1513
+ * @memberof OrdersApi
1514
+ */
1515
+ getTrade(requestParameters, options) {
1516
+ return OrdersApiFp(this.configuration).getTrade(requestParameters.chainName, requestParameters.tradeId, options).then((request) => request(this.axios, this.basePath));
1517
+ }
1331
1518
  /**
1332
1519
  * List all listings
1333
1520
  * @summary List all listings
@@ -1339,6 +1526,17 @@ class OrdersApi extends BaseAPI$1 {
1339
1526
  listListings(requestParameters, options) {
1340
1527
  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));
1341
1528
  }
1529
+ /**
1530
+ * List all trades
1531
+ * @summary List all trades
1532
+ * @param {OrdersApiListTradesRequest} requestParameters Request parameters.
1533
+ * @param {*} [options] Override http request option.
1534
+ * @throws {RequiredError}
1535
+ * @memberof OrdersApi
1536
+ */
1537
+ listTrades(requestParameters, options) {
1538
+ 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));
1539
+ }
1342
1540
  }
1343
1541
 
1344
1542
  /* tslint:disable */
@@ -1393,6 +1591,38 @@ const PassportApiAxiosParamCreator = function (configuration) {
1393
1591
  options: localVarRequestOptions,
1394
1592
  };
1395
1593
  },
1594
+ /**
1595
+ * Get all the Ethereum linked addresses for a user based on its userId
1596
+ * @summary Get Ethereum linked addresses for a user
1597
+ * @param {string} userId The user\&#39;s userId
1598
+ * @param {*} [options] Override http request option.
1599
+ * @throws {RequiredError}
1600
+ */
1601
+ getLinkedAddresses: async (userId, options = {}) => {
1602
+ // verify required parameter 'userId' is not null or undefined
1603
+ assertParamExists$1('getLinkedAddresses', 'userId', userId);
1604
+ const localVarPath = `/passport-mr/v1/users/{userId}/linked-addresses`
1605
+ .replace(`{${"userId"}}`, encodeURIComponent(String(userId)));
1606
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1607
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL$1);
1608
+ let baseOptions;
1609
+ if (configuration) {
1610
+ baseOptions = configuration.baseOptions;
1611
+ }
1612
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
1613
+ const localVarHeaderParameter = {};
1614
+ const localVarQueryParameter = {};
1615
+ // authentication BearerAuth required
1616
+ // http bearer authentication required
1617
+ await setBearerAuthToObject$1(localVarHeaderParameter, configuration);
1618
+ setSearchParams$1(localVarUrlObj, localVarQueryParameter);
1619
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1620
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
1621
+ return {
1622
+ url: toPathString$1(localVarUrlObj),
1623
+ options: localVarRequestOptions,
1624
+ };
1625
+ },
1396
1626
  };
1397
1627
  };
1398
1628
  /**
@@ -1413,6 +1643,17 @@ const PassportApiFp = function (configuration) {
1413
1643
  const localVarAxiosArgs = await localVarAxiosParamCreator.createCounterfactualAddress(createCounterfactualAddressRequest, options);
1414
1644
  return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1415
1645
  },
1646
+ /**
1647
+ * Get all the Ethereum linked addresses for a user based on its userId
1648
+ * @summary Get Ethereum linked addresses for a user
1649
+ * @param {string} userId The user\&#39;s userId
1650
+ * @param {*} [options] Override http request option.
1651
+ * @throws {RequiredError}
1652
+ */
1653
+ async getLinkedAddresses(userId, options) {
1654
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getLinkedAddresses(userId, options);
1655
+ return createRequestFunction$1(localVarAxiosArgs, globalAxios$1, BASE_PATH$1, configuration);
1656
+ },
1416
1657
  };
1417
1658
  };
1418
1659
  /**
@@ -1433,6 +1674,17 @@ class PassportApi extends BaseAPI$1 {
1433
1674
  createCounterfactualAddress(requestParameters, options) {
1434
1675
  return PassportApiFp(this.configuration).createCounterfactualAddress(requestParameters.createCounterfactualAddressRequest, options).then((request) => request(this.axios, this.basePath));
1435
1676
  }
1677
+ /**
1678
+ * Get all the Ethereum linked addresses for a user based on its userId
1679
+ * @summary Get Ethereum linked addresses for a user
1680
+ * @param {PassportApiGetLinkedAddressesRequest} requestParameters Request parameters.
1681
+ * @param {*} [options] Override http request option.
1682
+ * @throws {RequiredError}
1683
+ * @memberof PassportApi
1684
+ */
1685
+ getLinkedAddresses(requestParameters, options) {
1686
+ return PassportApiFp(this.configuration).getLinkedAddresses(requestParameters.userId, options).then((request) => request(this.axios, this.basePath));
1687
+ }
1436
1688
  }
1437
1689
 
1438
1690
  class MultiRollupApiClients {
@@ -1457,7 +1709,7 @@ class MultiRollupApiClients {
1457
1709
  }
1458
1710
 
1459
1711
  // eslint-disable-next-line @typescript-eslint/naming-convention
1460
- const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.0.0' };
1712
+ const defaultHeaders = { 'x-sdk-version': 'ts-immutable-sdk-0.17.1' };
1461
1713
  const createConfig = ({ basePath, headers, }) => {
1462
1714
  if (!basePath.trim()) {
1463
1715
  throw Error('basePath can not be empty');
@@ -1513,7 +1765,7 @@ const createImmutableXConfiguration = ({ basePath, chainID, coreContractAddress,
1513
1765
  chainID,
1514
1766
  coreContractAddress,
1515
1767
  registrationContractAddress,
1516
- sdkVersion: 'ts-immutable-sdk-0.0.0',
1768
+ sdkVersion: 'ts-immutable-sdk-0.17.1',
1517
1769
  });
1518
1770
  /**
1519
1771
  * Sets `sdkVersion` at the time of build
@@ -7712,6 +7964,17 @@ class Passport {
7712
7964
  const user = await this.authManager.getUser();
7713
7965
  return user?.accessToken;
7714
7966
  }
7967
+ async getLinkedAddresses() {
7968
+ const user = await this.authManager.getUser();
7969
+ if (!user?.profile.sub) {
7970
+ return [];
7971
+ }
7972
+ const headers = { Authorization: `Bearer ${user.accessToken}` };
7973
+ const linkedAddressesResult = await this.multiRollupApiClients.passportApi.getLinkedAddresses({
7974
+ userId: user?.profile.sub,
7975
+ }, { headers });
7976
+ return linkedAddressesResult.data.linkedAddresses;
7977
+ }
7715
7978
  }
7716
7979
 
7717
7980
  export { JsonRpcError, Networks, Passport, PassportError, ProviderErrorCode, ProviderEvent, RpcErrorCode };
package/package.json CHANGED
@@ -1,14 +1,17 @@
1
1
  {
2
2
  "name": "@imtbl/sdk",
3
3
  "description": "Immutable Unified SDK",
4
- "version": "0.16.0",
4
+ "version": "0.17.1",
5
5
  "author": "Immutable",
6
6
  "browser": "./dist/index.browser.js",
7
7
  "bugs": "https://github.com/immutable/ts-immutable-sdk/issues",
8
8
  "dependencies": {
9
9
  "@0xsequence/abi": "^0.43.34",
10
10
  "@0xsequence/config": "^0.43.34",
11
+ "@ethersproject/abi": "^5.7.0",
11
12
  "@ethersproject/abstract-signer": "^5.7.0",
13
+ "@ethersproject/bignumber": "^5.7.0",
14
+ "@ethersproject/contracts": "^5.7.0",
12
15
  "@ethersproject/providers": "^5.7.2",
13
16
  "@ethersproject/wallet": "^5.7.0",
14
17
  "@imtbl/core-sdk": "^2.0.2",
@@ -24,7 +27,8 @@
24
27
  "enc-utils": "^3.0.0",
25
28
  "ethers": "^5.7.2",
26
29
  "magic-sdk": "^13.3.1",
27
- "oidc-client-ts": "^2.2.1"
30
+ "oidc-client-ts": "^2.2.1",
31
+ "typechain": "^8.1.1"
28
32
  },
29
33
  "devDependencies": {
30
34
  "@imtbl/blockchain-data": "0.0.0",