@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.
- package/CHANGELOG.md +24 -0
- package/README.md +97 -61
- package/dist/{chunk-B3HT6MCO.js → chunk-6FIALX2E.js} +3 -3
- package/dist/{chunk-B3HT6MCO.js.map → chunk-6FIALX2E.js.map} +1 -1
- package/dist/{chunk-AYVWYEOK.js → chunk-6PHQBYQ4.js} +2 -2
- package/dist/chunk-6PHQBYQ4.js.map +1 -0
- package/dist/chunk-ALFITFBN.js +105 -0
- package/dist/chunk-ALFITFBN.js.map +1 -0
- package/dist/chunk-PAQHOXQ6.js +392 -0
- package/dist/chunk-PAQHOXQ6.js.map +1 -0
- package/dist/{cosmosProvider-DTz0Y8xZ.d.cts → cosmosProvider-BrpOdL_b.d.cts} +3 -3
- package/dist/{cosmosProvider-DTz0Y8xZ.d.ts → cosmosProvider-BrpOdL_b.d.ts} +3 -3
- package/dist/errors-CZu5mmz1.d.cts +293 -0
- package/dist/errors-Cqh7UdUO.d.ts +293 -0
- package/dist/index.cjs +18 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +12 -7
- package/dist/index.d.ts +12 -7
- package/dist/index.js +19 -6
- package/dist/index.js.map +1 -1
- package/dist/intent-input-BybnwL83.d.ts +126 -0
- package/dist/intent-input-C2PTr2XH.d.cts +126 -0
- package/dist/swk/index.cjs +2 -2
- package/dist/swk/index.cjs.map +1 -1
- package/dist/swk/index.d.cts +7 -7
- package/dist/swk/index.d.ts +7 -7
- package/dist/swk/index.js +2 -104
- package/dist/swk/index.js.map +1 -1
- package/dist/wallets/index.cjs +1043 -0
- package/dist/wallets/index.cjs.map +1 -0
- package/dist/wallets/index.d.cts +384 -0
- package/dist/wallets/index.d.ts +384 -0
- package/dist/wallets/index.js +629 -0
- package/dist/wallets/index.js.map +1 -0
- package/dist/{intent-input-CP5bkBYI.d.cts → wallets-CeIjESt5.d.cts} +39 -126
- package/dist/{intent-input-CP5bkBYI.d.ts → wallets-CeIjESt5.d.ts} +39 -126
- package/dist/web/index.cjs +4 -4
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.d.cts +11 -296
- package/dist/web/index.d.ts +11 -296
- package/dist/web/index.js +6 -392
- package/dist/web/index.js.map +1 -1
- package/llms/07-webhooks.md +2 -0
- package/llms/15-swaps.md +2 -0
- package/llms/18-wallets.md +94 -0
- package/llms/llms-full.txt +101 -0
- package/llms/llms.txt +1 -0
- package/package.json +22 -8
- package/dist/chunk-AYVWYEOK.js.map +0 -1
package/dist/web/index.cjs
CHANGED
|
@@ -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.
|
|
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
|