@medialane/sdk 0.18.0 → 0.20.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
@@ -279,7 +279,7 @@ function encodeByteArray(str) {
279
279
  ];
280
280
  }
281
281
 
282
- // src/abis.ts
282
+ // src/abis/ipMarketplace.ts
283
283
  var IPMarketplaceABI = [
284
284
  {
285
285
  type: "impl",
@@ -586,6 +586,8 @@ var IPMarketplaceABI = [
586
586
  ]
587
587
  }
588
588
  ];
589
+
590
+ // src/abis/popCollection.ts
589
591
  var POPCollectionABI = [
590
592
  {
591
593
  type: "struct",
@@ -673,6 +675,8 @@ var POPCollectionABI = [
673
675
  state_mutability: "view"
674
676
  }
675
677
  ];
678
+
679
+ // src/abis/popFactory.ts
676
680
  var POPFactoryABI = [
677
681
  {
678
682
  type: "struct",
@@ -728,6 +732,8 @@ var POPFactoryABI = [
728
732
  state_mutability: "external"
729
733
  }
730
734
  ];
735
+
736
+ // src/abis/dropCollection.ts
731
737
  var DropCollectionABI = [
732
738
  {
733
739
  type: "struct",
@@ -897,6 +903,8 @@ var DropCollectionABI = [
897
903
  state_mutability: "view"
898
904
  }
899
905
  ];
906
+
907
+ // src/abis/dropFactory.ts
900
908
  var DropFactoryABI = [
901
909
  {
902
910
  type: "struct",
@@ -984,6 +992,8 @@ var DropFactoryABI = [
984
992
  state_mutability: "external"
985
993
  }
986
994
  ];
995
+
996
+ // src/abis/collectionRegistry.ts
987
997
  var CollectionRegistryABI = [
988
998
  {
989
999
  type: "struct",
@@ -1020,6 +1030,8 @@ var CollectionRegistryABI = [
1020
1030
  state_mutability: "view"
1021
1031
  }
1022
1032
  ];
1033
+
1034
+ // src/abis/medialane1155.ts
1023
1035
  var Medialane1155ABI = [
1024
1036
  {
1025
1037
  "type": "impl",
@@ -1513,6 +1525,8 @@ var Medialane1155ABI = [
1513
1525
  ]
1514
1526
  }
1515
1527
  ];
1528
+
1529
+ // src/abis/ipCollection1155Factory.ts
1516
1530
  var IPCollection1155FactoryABI = [
1517
1531
  {
1518
1532
  "type": "impl",
@@ -1798,6 +1812,8 @@ var IPCollection1155FactoryABI = [
1798
1812
  ]
1799
1813
  }
1800
1814
  ];
1815
+
1816
+ // src/abis/ipCollection1155.ts
1801
1817
  var IPCollection1155ABI = [
1802
1818
  {
1803
1819
  "type": "impl",
@@ -2879,6 +2895,8 @@ var IPCollection1155ABI = [
2879
2895
  ]
2880
2896
  }
2881
2897
  ];
2898
+
2899
+ // src/abis/ipCollection.ts
2882
2900
  var IPCollectionABI = [
2883
2901
  {
2884
2902
  "type": "impl",
@@ -3642,6 +3660,8 @@ var IPCollectionABI = [
3642
3660
  ]
3643
3661
  }
3644
3662
  ];
3663
+
3664
+ // src/abis/ipNft.ts
3645
3665
  var IPNftABI = [
3646
3666
  {
3647
3667
  "type": "impl",
@@ -6354,14 +6374,19 @@ var SERVICES = {
6354
6374
  capabilities: ["list", "buy", "make_offer", "cancel", "transfer"]
6355
6375
  }
6356
6376
  };
6377
+ function isServiceId(id) {
6378
+ return typeof id === "string" && id in SERVICES;
6379
+ }
6357
6380
  function getService(id) {
6358
- return id ? SERVICES[id] : void 0;
6381
+ return id && id in SERVICES ? SERVICES[id] : void 0;
6359
6382
  }
6360
6383
  function listServices() {
6361
6384
  return Object.values(SERVICES);
6362
6385
  }
6363
6386
  function getServicesByCapability(cap) {
6364
- return Object.values(SERVICES).filter((s) => s.capabilities.includes(cap));
6387
+ return Object.values(SERVICES).filter(
6388
+ (s) => s.capabilities.includes(cap)
6389
+ );
6365
6390
  }
6366
6391
 
6367
6392
  exports.ApiClient = ApiClient;
@@ -6422,6 +6447,7 @@ exports.getService = getService;
6422
6447
  exports.getServicesByCapability = getServicesByCapability;
6423
6448
  exports.getTokenByAddress = getTokenByAddress;
6424
6449
  exports.getTokenBySymbol = getTokenBySymbol;
6450
+ exports.isServiceId = isServiceId;
6425
6451
  exports.listServices = listServices;
6426
6452
  exports.normalizeAddress = normalizeAddress;
6427
6453
  exports.parseAmount = parseAmount;