@cosmosapp/pay_sdk 2.3.0 → 2.3.2

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.
@@ -1,8 +1,8 @@
1
- import { cN as WalletId, aG as PaymentIntentData } from '../intent-input-B16Lt69q.cjs';
1
+ import { cN as WalletId, aG as PaymentIntentData } from '../intent-input-CP5bkBYI.cjs';
2
2
  import { CreatePayPaymentIntentOptions, CreateTxPaymentIntentOptions, ValidationOutcomeData } from '../index.cjs';
3
- export { bE as AddressBook, bF as AddressRef, c2 as AssetDefinition, c3 as AssetRef, c4 as Assets, ca as CosmosPayAPIError, cb as CosmosPayRequestError, cE as ResolvableIntentInput, cF as ResolvedAsset, cI as TestnetAssets, cO as Wallets, cR as addresses, cS as assertAddress, cT as defineAsset, cU as isAddress, cV as isContractAddress, cW as isMuxedAddress, cX as isNativeAsset, cY as isStellarAddress, cZ as resolveAddress, c_ as resolveAsset, c$ as resolveIntentBody } from '../intent-input-B16Lt69q.cjs';
4
- import { C as CosmosProviderOptions, a as CosmosWalletProvider } from '../cosmosProvider-DTz0Y8xZ.cjs';
5
- export { i as injectedProvider, l as loadHostedProvider, r as resetProviderCache, b as resolveProvider } from '../cosmosProvider-DTz0Y8xZ.cjs';
3
+ export { bE as AddressBook, bF as AddressRef, c2 as AssetDefinition, c3 as AssetRef, c4 as Assets, ca as CosmosPayAPIError, cb as CosmosPayRequestError, cE as ResolvableIntentInput, cF as ResolvedAsset, cI as TestnetAssets, cO as Wallets, cR as addresses, cS as assertAddress, cT as defineAsset, cU as isAddress, cV as isContractAddress, cW as isMuxedAddress, cX as isNativeAsset, cY as isStellarAddress, cZ as resolveAddress, c_ as resolveAsset, c$ as resolveIntentBody } from '../intent-input-CP5bkBYI.cjs';
4
+ import { C as CosmosProviderOptions, a as CosmosWalletProvider } from '../cosmosProvider-BrpOdL_b.cjs';
5
+ export { i as injectedProvider, l as loadHostedProvider, r as resetProviderCache, b as resolveProvider } from '../cosmosProvider-BrpOdL_b.cjs';
6
6
 
7
7
  /**
8
8
  * Types for the browser ("web client") side of the SDK.
@@ -362,7 +362,7 @@ declare class AlbedoAdapter implements WalletAdapter {
362
362
  }
363
363
 
364
364
  /**
365
- * Cosmos Wallet — https://github.com/CosmosPay/CosmosPay-Wallet
365
+ * Cosmos Pay Wallet — https://github.com/CosmosPay/CosmosPay-Wallet
366
366
  *
367
367
  * Cosmos Pay's own non-custodial Stellar wallet. It reaches the page two ways and
368
368
  * this adapter serves both: the browser extension injects `window.cosmosWallet`,
@@ -377,7 +377,7 @@ declare class AlbedoAdapter implements WalletAdapter {
377
377
 
378
378
  declare class CosmosWalletAdapter implements WalletAdapter {
379
379
  readonly id = "cosmos";
380
- readonly name = "Cosmos Wallet";
380
+ readonly name = "Cosmos Pay Wallet";
381
381
  private readonly options;
382
382
  /**
383
383
  * @param options - A provider to use directly, or the origin of a hosted Cosmos
@@ -403,7 +403,7 @@ declare class CosmosWalletAdapter implements WalletAdapter {
403
403
  * Built-in wallet adapters and the default registration set.
404
404
  *
405
405
  * Auto-detection order (first available wins): Freighter → xBull → Rabet →
406
- * LOBSTR → Albedo → Cosmos Wallet. Freighter, xBull and Rabet inject browser globals so they're
406
+ * LOBSTR → Albedo → Cosmos Pay Wallet. Freighter, xBull and Rabet inject browser globals so they're
407
407
  * detected with zero configuration; LOBSTR and Albedo need their library passed
408
408
  * in (no reliable global), so they only activate when injected.
409
409
  */
@@ -425,7 +425,7 @@ interface InjectedWallets {
425
425
  /** A `@lobstrco/signer-extension-api` module. */
426
426
  lobstr?: any;
427
427
  /**
428
- * A Cosmos Wallet provider, or `{ walletUrl }` to reach the HOSTED wallet when
428
+ * A Cosmos Pay Wallet provider, or `{ walletUrl }` to reach the HOSTED wallet when
429
429
  * the extension is absent (otherwise `window.cosmosWallet`).
430
430
  */
431
431
  cosmos?: CosmosWalletProvider | CosmosProviderOptions;
@@ -1,8 +1,8 @@
1
- import { cN as WalletId, aG as PaymentIntentData } from '../intent-input-B16Lt69q.js';
1
+ import { cN as WalletId, aG as PaymentIntentData } from '../intent-input-CP5bkBYI.js';
2
2
  import { CreatePayPaymentIntentOptions, CreateTxPaymentIntentOptions, ValidationOutcomeData } from '../index.js';
3
- export { bE as AddressBook, bF as AddressRef, c2 as AssetDefinition, c3 as AssetRef, c4 as Assets, ca as CosmosPayAPIError, cb as CosmosPayRequestError, cE as ResolvableIntentInput, cF as ResolvedAsset, cI as TestnetAssets, cO as Wallets, cR as addresses, cS as assertAddress, cT as defineAsset, cU as isAddress, cV as isContractAddress, cW as isMuxedAddress, cX as isNativeAsset, cY as isStellarAddress, cZ as resolveAddress, c_ as resolveAsset, c$ as resolveIntentBody } from '../intent-input-B16Lt69q.js';
4
- import { C as CosmosProviderOptions, a as CosmosWalletProvider } from '../cosmosProvider-DTz0Y8xZ.js';
5
- export { i as injectedProvider, l as loadHostedProvider, r as resetProviderCache, b as resolveProvider } from '../cosmosProvider-DTz0Y8xZ.js';
3
+ export { bE as AddressBook, bF as AddressRef, c2 as AssetDefinition, c3 as AssetRef, c4 as Assets, ca as CosmosPayAPIError, cb as CosmosPayRequestError, cE as ResolvableIntentInput, cF as ResolvedAsset, cI as TestnetAssets, cO as Wallets, cR as addresses, cS as assertAddress, cT as defineAsset, cU as isAddress, cV as isContractAddress, cW as isMuxedAddress, cX as isNativeAsset, cY as isStellarAddress, cZ as resolveAddress, c_ as resolveAsset, c$ as resolveIntentBody } from '../intent-input-CP5bkBYI.js';
4
+ import { C as CosmosProviderOptions, a as CosmosWalletProvider } from '../cosmosProvider-BrpOdL_b.js';
5
+ export { i as injectedProvider, l as loadHostedProvider, r as resetProviderCache, b as resolveProvider } from '../cosmosProvider-BrpOdL_b.js';
6
6
 
7
7
  /**
8
8
  * Types for the browser ("web client") side of the SDK.
@@ -362,7 +362,7 @@ declare class AlbedoAdapter implements WalletAdapter {
362
362
  }
363
363
 
364
364
  /**
365
- * Cosmos Wallet — https://github.com/CosmosPay/CosmosPay-Wallet
365
+ * Cosmos Pay Wallet — https://github.com/CosmosPay/CosmosPay-Wallet
366
366
  *
367
367
  * Cosmos Pay's own non-custodial Stellar wallet. It reaches the page two ways and
368
368
  * this adapter serves both: the browser extension injects `window.cosmosWallet`,
@@ -377,7 +377,7 @@ declare class AlbedoAdapter implements WalletAdapter {
377
377
 
378
378
  declare class CosmosWalletAdapter implements WalletAdapter {
379
379
  readonly id = "cosmos";
380
- readonly name = "Cosmos Wallet";
380
+ readonly name = "Cosmos Pay Wallet";
381
381
  private readonly options;
382
382
  /**
383
383
  * @param options - A provider to use directly, or the origin of a hosted Cosmos
@@ -403,7 +403,7 @@ declare class CosmosWalletAdapter implements WalletAdapter {
403
403
  * Built-in wallet adapters and the default registration set.
404
404
  *
405
405
  * Auto-detection order (first available wins): Freighter → xBull → Rabet →
406
- * LOBSTR → Albedo → Cosmos Wallet. Freighter, xBull and Rabet inject browser globals so they're
406
+ * LOBSTR → Albedo → Cosmos Pay Wallet. Freighter, xBull and Rabet inject browser globals so they're
407
407
  * detected with zero configuration; LOBSTR and Albedo need their library passed
408
408
  * in (no reliable global), so they only activate when injected.
409
409
  */
@@ -425,7 +425,7 @@ interface InjectedWallets {
425
425
  /** A `@lobstrco/signer-extension-api` module. */
426
426
  lobstr?: any;
427
427
  /**
428
- * A Cosmos Wallet provider, or `{ walletUrl }` to reach the HOSTED wallet when
428
+ * A Cosmos Pay Wallet provider, or `{ walletUrl }` to reach the HOSTED wallet when
429
429
  * the extension is absent (otherwise `window.cosmosWallet`).
430
430
  */
431
431
  cosmos?: CosmosWalletProvider | CosmosProviderOptions;
package/dist/web/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { version, CosmosPayAPIError, CosmosPayRequestError, DEFAULT_BASE_URL, resolveIntentBody } from '../chunk-FTHQKUE5.js';
2
- export { AddressBook, Assets, CosmosPayAPIError, CosmosPayRequestError, TestnetAssets, Wallets, addresses, assertAddress, defineAsset, isAddress, isContractAddress, isMuxedAddress, isNativeAsset, isStellarAddress, resolveAddress, resolveAsset, resolveIntentBody } from '../chunk-FTHQKUE5.js';
3
- import { injectedProvider, resolveProvider } from '../chunk-AYVWYEOK.js';
4
- export { injectedProvider, loadHostedProvider, resetProviderCache, resolveProvider } from '../chunk-AYVWYEOK.js';
1
+ import { version, CosmosPayAPIError, CosmosPayRequestError, DEFAULT_BASE_URL, resolveIntentBody } from '../chunk-U3WDM2FJ.js';
2
+ export { AddressBook, Assets, CosmosPayAPIError, CosmosPayRequestError, TestnetAssets, Wallets, addresses, assertAddress, defineAsset, isAddress, isContractAddress, isMuxedAddress, isNativeAsset, isStellarAddress, resolveAddress, resolveAsset, resolveIntentBody } from '../chunk-U3WDM2FJ.js';
3
+ import { injectedProvider, resolveProvider } from '../chunk-6PHQBYQ4.js';
4
+ export { injectedProvider, loadHostedProvider, resetProviderCache, resolveProvider } from '../chunk-6PHQBYQ4.js';
5
5
 
6
6
  // src/web/errors.ts
7
7
  var CosmosPayWebError = class _CosmosPayWebError extends Error {
@@ -327,7 +327,7 @@ var CosmosWalletAdapter = class {
327
327
  */
328
328
  constructor(options = {}) {
329
329
  this.id = "cosmos";
330
- this.name = "Cosmos Wallet";
330
+ this.name = "Cosmos Pay Wallet";
331
331
  this.options = isProvider(options) ? { provider: options } : options;
332
332
  }
333
333
  /**
@@ -345,7 +345,7 @@ var CosmosWalletAdapter = class {
345
345
  }
346
346
  async provider() {
347
347
  const provider = await resolveProvider(this.options);
348
- if (!provider) throw new WalletError(this.id, "Cosmos Wallet is not available.");
348
+ if (!provider) throw new WalletError(this.id, "Cosmos Pay Wallet is not available.");
349
349
  return provider;
350
350
  }
351
351
  async getPublicKey(_network) {
@@ -383,7 +383,7 @@ function defaultAdapters(injected = {}) {
383
383
  new AlbedoAdapter(injected.albedo),
384
384
  // Appended LAST on purpose. Auto-detection takes the first available adapter,
385
385
  // so putting the first-party wallet at the front would silently move an
386
- // existing integration off Freighter the day a user installs Cosmos Wallet.
386
+ // existing integration off Freighter the day a user installs Cosmos Pay Wallet.
387
387
  // A dapp that wants it preferred says so — `pay({ wallet: Wallets.COSMOS })`,
388
388
  // or `registry.register(adapter, true)`.
389
389
  new CosmosWalletAdapter(injected.cosmos ?? {})