@medialane/sdk 0.47.0 → 0.48.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/index.cjs CHANGED
@@ -8658,9 +8658,7 @@ var MedialaneError = class extends Error {
8658
8658
 
8659
8659
  // src/utils/rpc.ts
8660
8660
  var PUBLIC_RPC_FALLBACKS = [
8661
- "https://rpc.starknet.lava.build",
8662
- "https://starknet-mainnet.public.blastapi.io/rpc/v0_7",
8663
- "https://free-rpc.nethermind.io/mainnet-juno/v0_7"
8661
+ "https://rpc.starknet.lava.build"
8664
8662
  ];
8665
8663
  var TRANSIENT_BODY_RE = /"code"\s*:\s*-32001|"code"\s*:\s*-32603|unable to complete|rate.?limit|too many|throttl|exceed.*quota|temporarily unavailable|service unavailable|overload|gateway.*time|upstream.*time|backend.*error/i;
8666
8664
  function isTransientRpcError(input) {
@@ -11211,7 +11209,7 @@ var SERVICES = {
11211
11209
  standard: "ERC721",
11212
11210
  provenance: "MEDIALANE",
11213
11211
  uiVariant: "club",
11214
- capabilities: ["subscribe", "transfer"],
11212
+ capabilities: ["subscribe"],
11215
11213
  events: [
11216
11214
  { name: "NewClubCreated", emittedBy: "factory" }
11217
11215
  ],
@@ -11345,6 +11343,9 @@ function getServicesByCapability(cap) {
11345
11343
  (s) => s.capabilities.includes(cap)
11346
11344
  );
11347
11345
  }
11346
+ function hasCapability(id, cap) {
11347
+ return getService(id)?.capabilities.includes(cap) ?? false;
11348
+ }
11348
11349
 
11349
11350
  exports.ADMIN_HEADERS = ADMIN_HEADERS;
11350
11351
  exports.ADMIN_SCOPE = ADMIN_SCOPE;
@@ -11446,6 +11447,7 @@ exports.getSiwsStorageKey = getSiwsStorageKey;
11446
11447
  exports.getStoredSiwsToken = getStoredSiwsToken;
11447
11448
  exports.getTokenByAddress = getTokenByAddress;
11448
11449
  exports.getTokenBySymbol = getTokenBySymbol;
11450
+ exports.hasCapability = hasCapability;
11449
11451
  exports.isServiceId = isServiceId;
11450
11452
  exports.isSiwsTokenValid = isSiwsTokenValid;
11451
11453
  exports.isTransientRpcError = isTransientRpcError;