@cosmosapp/pay_sdk 2.3.1 → 2.4.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.
Files changed (49) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +97 -61
  3. package/dist/{chunk-B3HT6MCO.js → chunk-6FIALX2E.js} +3 -3
  4. package/dist/{chunk-B3HT6MCO.js.map → chunk-6FIALX2E.js.map} +1 -1
  5. package/dist/{chunk-AYVWYEOK.js → chunk-6PHQBYQ4.js} +2 -2
  6. package/dist/chunk-6PHQBYQ4.js.map +1 -0
  7. package/dist/chunk-ALFITFBN.js +105 -0
  8. package/dist/chunk-ALFITFBN.js.map +1 -0
  9. package/dist/chunk-PAQHOXQ6.js +392 -0
  10. package/dist/chunk-PAQHOXQ6.js.map +1 -0
  11. package/dist/{cosmosProvider-DTz0Y8xZ.d.cts → cosmosProvider-BrpOdL_b.d.cts} +3 -3
  12. package/dist/{cosmosProvider-DTz0Y8xZ.d.ts → cosmosProvider-BrpOdL_b.d.ts} +3 -3
  13. package/dist/errors-CZu5mmz1.d.cts +293 -0
  14. package/dist/errors-Cqh7UdUO.d.ts +293 -0
  15. package/dist/index.cjs +18 -5
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +12 -7
  18. package/dist/index.d.ts +12 -7
  19. package/dist/index.js +19 -6
  20. package/dist/index.js.map +1 -1
  21. package/dist/intent-input-BybnwL83.d.ts +126 -0
  22. package/dist/intent-input-C2PTr2XH.d.cts +126 -0
  23. package/dist/swk/index.cjs +2 -2
  24. package/dist/swk/index.cjs.map +1 -1
  25. package/dist/swk/index.d.cts +7 -7
  26. package/dist/swk/index.d.ts +7 -7
  27. package/dist/swk/index.js +2 -104
  28. package/dist/swk/index.js.map +1 -1
  29. package/dist/wallets/index.cjs +1043 -0
  30. package/dist/wallets/index.cjs.map +1 -0
  31. package/dist/wallets/index.d.cts +384 -0
  32. package/dist/wallets/index.d.ts +384 -0
  33. package/dist/wallets/index.js +629 -0
  34. package/dist/wallets/index.js.map +1 -0
  35. package/dist/{intent-input-CP5bkBYI.d.cts → wallets-CeIjESt5.d.cts} +39 -126
  36. package/dist/{intent-input-CP5bkBYI.d.ts → wallets-CeIjESt5.d.ts} +39 -126
  37. package/dist/web/index.cjs +4 -4
  38. package/dist/web/index.cjs.map +1 -1
  39. package/dist/web/index.d.cts +11 -296
  40. package/dist/web/index.d.ts +11 -296
  41. package/dist/web/index.js +6 -392
  42. package/dist/web/index.js.map +1 -1
  43. package/llms/07-webhooks.md +2 -0
  44. package/llms/15-swaps.md +2 -0
  45. package/llms/18-wallets.md +94 -0
  46. package/llms/llms-full.txt +101 -0
  47. package/llms/llms.txt +1 -0
  48. package/package.json +22 -8
  49. package/dist/chunk-AYVWYEOK.js.map +0 -1
@@ -529,7 +529,7 @@ var CosmosWalletAdapter = class {
529
529
  */
530
530
  constructor(options = {}) {
531
531
  this.id = "cosmos";
532
- this.name = "Cosmos Wallet";
532
+ this.name = "Cosmos Pay Wallet";
533
533
  this.options = isProvider(options) ? { provider: options } : options;
534
534
  }
535
535
  /**
@@ -547,7 +547,7 @@ var CosmosWalletAdapter = class {
547
547
  }
548
548
  async provider() {
549
549
  const provider = await resolveProvider(this.options);
550
- if (!provider) throw new WalletError(this.id, "Cosmos Wallet is not available.");
550
+ if (!provider) throw new WalletError(this.id, "Cosmos Pay Wallet is not available.");
551
551
  return provider;
552
552
  }
553
553
  async getPublicKey(_network) {
@@ -585,7 +585,7 @@ function defaultAdapters(injected = {}) {
585
585
  new AlbedoAdapter(injected.albedo),
586
586
  // Appended LAST on purpose. Auto-detection takes the first available adapter,
587
587
  // so putting the first-party wallet at the front would silently move an
588
- // existing integration off Freighter the day a user installs Cosmos Wallet.
588
+ // existing integration off Freighter the day a user installs Cosmos Pay Wallet.
589
589
  // A dapp that wants it preferred says so — `pay({ wallet: Wallets.COSMOS })`,
590
590
  // or `registry.register(adapter, true)`.
591
591
  new CosmosWalletAdapter(injected.cosmos ?? {})
@@ -949,7 +949,7 @@ var CosmosPayRequestError = class _CosmosPayRequestError extends Error {
949
949
  };
950
950
 
951
951
  // src/util/Constants.ts
952
- var version = "2.3.1";
952
+ var version = "2.4.0";
953
953
  var DEFAULT_BASE_URL = "https://api.cosmospay.lat/cosmos-api";
954
954
 
955
955
  // src/web/rest.ts