@cosmosapp/pay_sdk 2.1.0 → 2.2.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 +14 -0
- package/README.md +12 -2
- package/dist/{chunk-NK5EHEKJ.js → chunk-AQEHMCJZ.js} +3 -3
- package/dist/{chunk-NK5EHEKJ.js.map → chunk-AQEHMCJZ.js.map} +1 -1
- package/dist/{cosmosProvider-CFASjnd5.d.cts → cosmosProvider-DTz0Y8xZ.d.cts} +2 -1
- package/dist/{cosmosProvider-CFASjnd5.d.ts → cosmosProvider-DTz0Y8xZ.d.ts} +2 -1
- package/dist/index.cjs +12 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +14 -8
- package/dist/index.d.ts +14 -8
- package/dist/index.js +13 -5
- package/dist/index.js.map +1 -1
- package/dist/{intent-input-8rZfCrQ0.d.cts → intent-input-GiCgpAWR.d.cts} +24 -6
- package/dist/{intent-input-8rZfCrQ0.d.ts → intent-input-GiCgpAWR.d.ts} +24 -6
- package/dist/swk/index.d.cts +4 -3
- package/dist/swk/index.d.ts +4 -3
- package/dist/web/index.cjs +1 -1
- package/dist/web/index.cjs.map +1 -1
- package/dist/web/index.d.cts +7 -5
- package/dist/web/index.d.ts +7 -5
- package/dist/web/index.js +2 -2
- package/llms/05-payment-intents.md +19 -6
- package/llms/llms-full.txt +19 -6
- package/package.json +19 -12
|
@@ -215,8 +215,19 @@ interface CreateTxPaymentIntentOptions {
|
|
|
215
215
|
callback?: string;
|
|
216
216
|
}
|
|
217
217
|
/** Body for `POST /v1/payment-intents/pay`. */
|
|
218
|
+
/** The chain a payment intent settles on. */
|
|
219
|
+
type PaymentChain = 'stellar' | 'solana' | 'monad';
|
|
218
220
|
interface CreatePayPaymentIntentOptions {
|
|
219
|
-
/**
|
|
221
|
+
/**
|
|
222
|
+
* Chain the payment settles on: `stellar` (the default, a SEP-7 `web+stellar:pay` link),
|
|
223
|
+
* `solana` (a Solana Pay link) or `monad` (an EIP-681 link). The network (mainnet or test)
|
|
224
|
+
* is the API key's, as on every route.
|
|
225
|
+
*/
|
|
226
|
+
chain?: PaymentChain;
|
|
227
|
+
/**
|
|
228
|
+
* Payee's account on that chain: a Stellar `G...` account, a Solana address or a Monad
|
|
229
|
+
* `0x...` address. A registered address-book name also works.
|
|
230
|
+
*/
|
|
220
231
|
destination: string;
|
|
221
232
|
/** Amount the destination should receive. Omit to let the user enter it (e.g. donations). */
|
|
222
233
|
amount?: string;
|
|
@@ -225,15 +236,15 @@ interface CreatePayPaymentIntentOptions {
|
|
|
225
236
|
* and `assetIssuer` for you. Takes a back seat to explicit code/issuer below.
|
|
226
237
|
*/
|
|
227
238
|
asset?: AssetRef;
|
|
228
|
-
/** Asset code the destination receives. Omit for
|
|
239
|
+
/** Asset code the destination receives. Omit for the chain's coin (XLM, SOL or MON). */
|
|
229
240
|
assetCode?: string;
|
|
230
|
-
/**
|
|
241
|
+
/** Who issues a token: the Stellar issuer account, the Solana SPL mint or the Monad ERC-20 contract. */
|
|
231
242
|
assetIssuer?: string;
|
|
232
243
|
/** MEMO_ID (numeric uint64) for idempotency + on-chain identification. Auto-generated when omitted. */
|
|
233
244
|
memo?: string;
|
|
234
|
-
/**
|
|
245
|
+
/** Shown to the user in their wallet (≤ 300 chars): SEP-7 `msg` on Stellar, the Solana Pay `message`. */
|
|
235
246
|
msg?: string;
|
|
236
|
-
/** SEP-7 `callback`, e.g. `url:https://...`. */
|
|
247
|
+
/** SEP-7 `callback`, e.g. `url:https://...`. Stellar only. */
|
|
237
248
|
callback?: string;
|
|
238
249
|
}
|
|
239
250
|
/** Body for `PATCH /v1/payment-intents/:id`. */
|
|
@@ -247,6 +258,10 @@ interface UpdatePaymentIntentOptions {
|
|
|
247
258
|
/** Query for `GET /v1/payment-intents`. */
|
|
248
259
|
interface ListPaymentIntentsOptions {
|
|
249
260
|
status?: PaymentIntentStatus;
|
|
261
|
+
/** Only intents on this chain. Omit for every chain. */
|
|
262
|
+
chain?: PaymentChain;
|
|
263
|
+
/** Only intents created at or after this instant (a Date or an ISO 8601 string). */
|
|
264
|
+
createdFrom?: Date | string;
|
|
250
265
|
/** Page size (max 100, default 20). */
|
|
251
266
|
take?: number;
|
|
252
267
|
/** Offset (default 0). */
|
|
@@ -257,6 +272,8 @@ interface PaymentIntentData {
|
|
|
257
272
|
id: string;
|
|
258
273
|
kind: PaymentIntentKind;
|
|
259
274
|
status: PaymentIntentStatus;
|
|
275
|
+
/** Chain the payment settles on (TX intents are always Stellar). Older servers omit it: Stellar. */
|
|
276
|
+
chain?: PaymentChain;
|
|
260
277
|
network: string;
|
|
261
278
|
source: string | null;
|
|
262
279
|
destination: string;
|
|
@@ -2039,4 +2056,5 @@ interface ResolvableIntentInput {
|
|
|
2039
2056
|
*/
|
|
2040
2057
|
declare function resolveIntentBody<T extends ResolvableIntentInput>(options: T, book?: AddressBook): Omit<T, 'asset'>;
|
|
2041
2058
|
|
|
2042
|
-
export {
|
|
2059
|
+
export { PaymentIntentKind as aC, PaymentIntentStatus as aD, ProductKind as aO, SwapStatus as aT, CrossChainSwapStatus as am, TestnetAssets as b$, WebhookEventType as b1, WebhookDeliveryStatus as b2, AddressBook as bh, Assets as br, CosmosPayAPIError as bx, CosmosPayRequestError as by, Wallets as c1, addresses as c4, assertAddress as c5, defineAsset as c6, isAddress as c7, isContractAddress as c8, isMuxedAddress as c9, isNativeAsset as ca, isStellarAddress as cb, resolveAddress as cc, resolveAsset as cd, resolveIntentBody as ce, LiquidityOperationKind as r, LiquidityOperationStatus as s };
|
|
2060
|
+
export type { ActivityReportData as $, AliasResolutionData as A, BrowseLiquidityPoolsOptions as B, CreateAliasChallengeOptions as C, DepositLiquidityOptions as D, ListPayinsOptions as E, CreateTrustlineOptions as F, CreateVirtualAccountOptions as G, HealthCheckData as H, CreatePayoutQuoteOptions as I, PayoutQuoteData as J, AuthorizePayoutOptions as K, ListRegistryAssetsOptions as L, AuthorizePayoutData as M, CreatePayoutOptions as N, OwnedAliasData as O, PayinQuoteData as P, PayoutData as Q, ListPayoutsOptions as R, SubmitLiquidityOptions as S, TrustlineData as T, UpdateCustomerOptions as U, VirtualAccountData as V, WebhookLogsData as W, AttachPayoutDocumentOptions as X, PayoutDocumentData as Y, ActivityEventInput as Z, ReportActivityOptions as _, AliasAvailabilityData as a, SubmitSwapOptions as a$, ListActivityOptions as a0, ActivityListData as a1, ActivitySummaryData as a2, ReceiverData as a3, UpdateReceiverOptions as a4, ApproveReceiverOptions as a5, RequestTosOptions as a6, TermsOfServiceData as a7, EnableReceiverOptions as a8, CreateReceiverWalletOptions as a9, PublicKeyData as aA, PaymentIntentData as aB, PaymentChain as aE, UpdatePaymentIntentOptions as aF, DeletedData as aG, ValidationOutcomeData as aH, CreateTxPaymentIntentOptions as aI, CreatePayPaymentIntentOptions as aJ, PaymentIntentTransitionData as aK, ListPaymentIntentsOptions as aL, ValidatePaymentIntentOptions as aM, ProductData as aN, UpdateProductOptions as aP, CreateProductOptions as aQ, ChainSwapData as aR, OtherSwapChain as aS, ChainSwapTransaction as aU, EvmCallData as aV, SwapData as aW, QuoteSwapOptions as aX, SwapQuoteData as aY, CreateSwapOptions as aZ, ListSwapsOptions as a_, ReceiverWalletData as aa, ListKycOptions as ab, CreateBankAccountOptions as ac, BankAccountData as ad, CreateReceiverOptions as ae, SetReceiverAccessOptions as af, WalletSignMessageData as ag, KycUploadData as ah, InitiateTosOptions as ai, KycRailsData as aj, BankDetailsData as ak, CrossChainSwapData as al, SwapChain as an, CrossChainTransactionData as ao, CrossChainAssetData as ap, QuoteCrossChainSwapOptions as aq, CrossChainQuoteData as ar, CreateCrossChainSwapOptions as as, ListCrossChainSwapsOptions as at, DefindexDepositOptions as au, DefindexWithdrawOptions as av, PluginData as aw, InstallPluginOptions as ax, PluginUninstalledData as ay, PluginActionResultData as az, AliasByAddressData as b, WebhookDeliveryData as b0, WebhookEndpointData as b3, WebhookEndpointWithSecretData as b4, UpdateWebhookEndpointOptions as b5, WebhookPingData as b6, ListWebhookDeliveriesOptions as b7, AnyWebhookEvent as b8, WebhookEventDataMap as b9, CurrencyType as bA, CustomerListData as bB, KycType as bC, LiquidityOperationListData as bD, LiquidityPoolListData as bE, LiquidityPositionData as bF, LiquidityReserveData as bG, LiquiditySubmitOutcomeData as bH, PayinListData as bI, PayinMethod as bJ, PayinPayerRules as bK, PaymentIntentListData as bL, PayoutChain as bM, PayoutListData as bN, PayoutNetwork as bO, PluginListData as bP, RampToken as bQ, ReceiverListData as bR, ReceiverOwner as bS, ReceiverType as bT, ReceiverWalletListData as bU, ReceiverWalletNetwork as bV, RegistryAssetData as bW, ResolvableIntentInput as bX, ResolvedAsset as bY, SwapListData as bZ, SwapSubmitOutcomeData as b_, TypedWebhookEvent as ba, CreateWebhookEndpointOptions as bb, WebhookEvent as bc, ActivityBucket as bd, ActivityEventData as be, ActivityLevel as bf, ActivitySource as bg, AddressRef as bi, AliasChallengePurpose as bj, AnalyticsBalanceEntry as bk, AnalyticsRecentRow as bl, AnalyticsSeriesPoint as bm, AnalyticsVolumeEntry as bn, ApiLogRow as bo, AssetDefinition as bp, AssetRef as bq, BankAccountListData as bs, BankRail as bt, BankingPartner as bu, ChainSwapListData as bv, ChainSwapSubmitOutcomeData as bw, CrossChainSwapListData as bz, AliasChallengeData as c, WalletId as c0, WebhookDeliveryListData as c2, WebhookLogRow as c3, ClaimAliasOptions as d, AliasListData as e, AddAliasAddressOptions as f, AliasAddressData as g, AliasDeletedData as h, AliasRecoveryStartedData as i, CompleteAliasRecoveryOptions as j, AnalyticsSummaryData as k, AnalyticsBalancesData as l, ApiLogsData as m, AssetRegistryData as n, CustomerData as o, CreateCustomerOptions as p, LiquidityOperationData as q, WithdrawLiquidityOptions as t, LiquidityPositionsData as u, LiquidityPoolData as v, ListLiquidityOperationsOptions as w, CreatePayinQuoteOptions as x, CreatePayinOptions as y, PayinData as z };
|
|
@@ -215,8 +215,19 @@ interface CreateTxPaymentIntentOptions {
|
|
|
215
215
|
callback?: string;
|
|
216
216
|
}
|
|
217
217
|
/** Body for `POST /v1/payment-intents/pay`. */
|
|
218
|
+
/** The chain a payment intent settles on. */
|
|
219
|
+
type PaymentChain = 'stellar' | 'solana' | 'monad';
|
|
218
220
|
interface CreatePayPaymentIntentOptions {
|
|
219
|
-
/**
|
|
221
|
+
/**
|
|
222
|
+
* Chain the payment settles on: `stellar` (the default, a SEP-7 `web+stellar:pay` link),
|
|
223
|
+
* `solana` (a Solana Pay link) or `monad` (an EIP-681 link). The network (mainnet or test)
|
|
224
|
+
* is the API key's, as on every route.
|
|
225
|
+
*/
|
|
226
|
+
chain?: PaymentChain;
|
|
227
|
+
/**
|
|
228
|
+
* Payee's account on that chain: a Stellar `G...` account, a Solana address or a Monad
|
|
229
|
+
* `0x...` address. A registered address-book name also works.
|
|
230
|
+
*/
|
|
220
231
|
destination: string;
|
|
221
232
|
/** Amount the destination should receive. Omit to let the user enter it (e.g. donations). */
|
|
222
233
|
amount?: string;
|
|
@@ -225,15 +236,15 @@ interface CreatePayPaymentIntentOptions {
|
|
|
225
236
|
* and `assetIssuer` for you. Takes a back seat to explicit code/issuer below.
|
|
226
237
|
*/
|
|
227
238
|
asset?: AssetRef;
|
|
228
|
-
/** Asset code the destination receives. Omit for
|
|
239
|
+
/** Asset code the destination receives. Omit for the chain's coin (XLM, SOL or MON). */
|
|
229
240
|
assetCode?: string;
|
|
230
|
-
/**
|
|
241
|
+
/** Who issues a token: the Stellar issuer account, the Solana SPL mint or the Monad ERC-20 contract. */
|
|
231
242
|
assetIssuer?: string;
|
|
232
243
|
/** MEMO_ID (numeric uint64) for idempotency + on-chain identification. Auto-generated when omitted. */
|
|
233
244
|
memo?: string;
|
|
234
|
-
/**
|
|
245
|
+
/** Shown to the user in their wallet (≤ 300 chars): SEP-7 `msg` on Stellar, the Solana Pay `message`. */
|
|
235
246
|
msg?: string;
|
|
236
|
-
/** SEP-7 `callback`, e.g. `url:https://...`. */
|
|
247
|
+
/** SEP-7 `callback`, e.g. `url:https://...`. Stellar only. */
|
|
237
248
|
callback?: string;
|
|
238
249
|
}
|
|
239
250
|
/** Body for `PATCH /v1/payment-intents/:id`. */
|
|
@@ -247,6 +258,10 @@ interface UpdatePaymentIntentOptions {
|
|
|
247
258
|
/** Query for `GET /v1/payment-intents`. */
|
|
248
259
|
interface ListPaymentIntentsOptions {
|
|
249
260
|
status?: PaymentIntentStatus;
|
|
261
|
+
/** Only intents on this chain. Omit for every chain. */
|
|
262
|
+
chain?: PaymentChain;
|
|
263
|
+
/** Only intents created at or after this instant (a Date or an ISO 8601 string). */
|
|
264
|
+
createdFrom?: Date | string;
|
|
250
265
|
/** Page size (max 100, default 20). */
|
|
251
266
|
take?: number;
|
|
252
267
|
/** Offset (default 0). */
|
|
@@ -257,6 +272,8 @@ interface PaymentIntentData {
|
|
|
257
272
|
id: string;
|
|
258
273
|
kind: PaymentIntentKind;
|
|
259
274
|
status: PaymentIntentStatus;
|
|
275
|
+
/** Chain the payment settles on (TX intents are always Stellar). Older servers omit it: Stellar. */
|
|
276
|
+
chain?: PaymentChain;
|
|
260
277
|
network: string;
|
|
261
278
|
source: string | null;
|
|
262
279
|
destination: string;
|
|
@@ -2039,4 +2056,5 @@ interface ResolvableIntentInput {
|
|
|
2039
2056
|
*/
|
|
2040
2057
|
declare function resolveIntentBody<T extends ResolvableIntentInput>(options: T, book?: AddressBook): Omit<T, 'asset'>;
|
|
2041
2058
|
|
|
2042
|
-
export {
|
|
2059
|
+
export { PaymentIntentKind as aC, PaymentIntentStatus as aD, ProductKind as aO, SwapStatus as aT, CrossChainSwapStatus as am, TestnetAssets as b$, WebhookEventType as b1, WebhookDeliveryStatus as b2, AddressBook as bh, Assets as br, CosmosPayAPIError as bx, CosmosPayRequestError as by, Wallets as c1, addresses as c4, assertAddress as c5, defineAsset as c6, isAddress as c7, isContractAddress as c8, isMuxedAddress as c9, isNativeAsset as ca, isStellarAddress as cb, resolveAddress as cc, resolveAsset as cd, resolveIntentBody as ce, LiquidityOperationKind as r, LiquidityOperationStatus as s };
|
|
2060
|
+
export type { ActivityReportData as $, AliasResolutionData as A, BrowseLiquidityPoolsOptions as B, CreateAliasChallengeOptions as C, DepositLiquidityOptions as D, ListPayinsOptions as E, CreateTrustlineOptions as F, CreateVirtualAccountOptions as G, HealthCheckData as H, CreatePayoutQuoteOptions as I, PayoutQuoteData as J, AuthorizePayoutOptions as K, ListRegistryAssetsOptions as L, AuthorizePayoutData as M, CreatePayoutOptions as N, OwnedAliasData as O, PayinQuoteData as P, PayoutData as Q, ListPayoutsOptions as R, SubmitLiquidityOptions as S, TrustlineData as T, UpdateCustomerOptions as U, VirtualAccountData as V, WebhookLogsData as W, AttachPayoutDocumentOptions as X, PayoutDocumentData as Y, ActivityEventInput as Z, ReportActivityOptions as _, AliasAvailabilityData as a, SubmitSwapOptions as a$, ListActivityOptions as a0, ActivityListData as a1, ActivitySummaryData as a2, ReceiverData as a3, UpdateReceiverOptions as a4, ApproveReceiverOptions as a5, RequestTosOptions as a6, TermsOfServiceData as a7, EnableReceiverOptions as a8, CreateReceiverWalletOptions as a9, PublicKeyData as aA, PaymentIntentData as aB, PaymentChain as aE, UpdatePaymentIntentOptions as aF, DeletedData as aG, ValidationOutcomeData as aH, CreateTxPaymentIntentOptions as aI, CreatePayPaymentIntentOptions as aJ, PaymentIntentTransitionData as aK, ListPaymentIntentsOptions as aL, ValidatePaymentIntentOptions as aM, ProductData as aN, UpdateProductOptions as aP, CreateProductOptions as aQ, ChainSwapData as aR, OtherSwapChain as aS, ChainSwapTransaction as aU, EvmCallData as aV, SwapData as aW, QuoteSwapOptions as aX, SwapQuoteData as aY, CreateSwapOptions as aZ, ListSwapsOptions as a_, ReceiverWalletData as aa, ListKycOptions as ab, CreateBankAccountOptions as ac, BankAccountData as ad, CreateReceiverOptions as ae, SetReceiverAccessOptions as af, WalletSignMessageData as ag, KycUploadData as ah, InitiateTosOptions as ai, KycRailsData as aj, BankDetailsData as ak, CrossChainSwapData as al, SwapChain as an, CrossChainTransactionData as ao, CrossChainAssetData as ap, QuoteCrossChainSwapOptions as aq, CrossChainQuoteData as ar, CreateCrossChainSwapOptions as as, ListCrossChainSwapsOptions as at, DefindexDepositOptions as au, DefindexWithdrawOptions as av, PluginData as aw, InstallPluginOptions as ax, PluginUninstalledData as ay, PluginActionResultData as az, AliasByAddressData as b, WebhookDeliveryData as b0, WebhookEndpointData as b3, WebhookEndpointWithSecretData as b4, UpdateWebhookEndpointOptions as b5, WebhookPingData as b6, ListWebhookDeliveriesOptions as b7, AnyWebhookEvent as b8, WebhookEventDataMap as b9, CurrencyType as bA, CustomerListData as bB, KycType as bC, LiquidityOperationListData as bD, LiquidityPoolListData as bE, LiquidityPositionData as bF, LiquidityReserveData as bG, LiquiditySubmitOutcomeData as bH, PayinListData as bI, PayinMethod as bJ, PayinPayerRules as bK, PaymentIntentListData as bL, PayoutChain as bM, PayoutListData as bN, PayoutNetwork as bO, PluginListData as bP, RampToken as bQ, ReceiverListData as bR, ReceiverOwner as bS, ReceiverType as bT, ReceiverWalletListData as bU, ReceiverWalletNetwork as bV, RegistryAssetData as bW, ResolvableIntentInput as bX, ResolvedAsset as bY, SwapListData as bZ, SwapSubmitOutcomeData as b_, TypedWebhookEvent as ba, CreateWebhookEndpointOptions as bb, WebhookEvent as bc, ActivityBucket as bd, ActivityEventData as be, ActivityLevel as bf, ActivitySource as bg, AddressRef as bi, AliasChallengePurpose as bj, AnalyticsBalanceEntry as bk, AnalyticsRecentRow as bl, AnalyticsSeriesPoint as bm, AnalyticsVolumeEntry as bn, ApiLogRow as bo, AssetDefinition as bp, AssetRef as bq, BankAccountListData as bs, BankRail as bt, BankingPartner as bu, ChainSwapListData as bv, ChainSwapSubmitOutcomeData as bw, CrossChainSwapListData as bz, AliasChallengeData as c, WalletId as c0, WebhookDeliveryListData as c2, WebhookLogRow as c3, ClaimAliasOptions as d, AliasListData as e, AddAliasAddressOptions as f, AliasAddressData as g, AliasDeletedData as h, AliasRecoveryStartedData as i, CompleteAliasRecoveryOptions as j, AnalyticsSummaryData as k, AnalyticsBalancesData as l, ApiLogsData as m, AssetRegistryData as n, CustomerData as o, CreateCustomerOptions as p, LiquidityOperationData as q, WithdrawLiquidityOptions as t, LiquidityPositionsData as u, LiquidityPoolData as v, ListLiquidityOperationsOptions as w, CreatePayinQuoteOptions as x, CreatePayinOptions as y, PayinData as z };
|
package/dist/swk/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CosmosProviderOptions } from '../cosmosProvider-
|
|
2
|
-
export { a as CosmosWalletProvider, i as injectedProvider, l as loadHostedProvider, r as resetProviderCache, b as resolveProvider } from '../cosmosProvider-
|
|
1
|
+
import { C as CosmosProviderOptions } from '../cosmosProvider-DTz0Y8xZ.cjs';
|
|
2
|
+
export { a as CosmosWalletProvider, i as injectedProvider, l as loadHostedProvider, r as resetProviderCache, b as resolveProvider } from '../cosmosProvider-DTz0Y8xZ.cjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The Stellar Wallets Kit module contract, transcribed.
|
|
@@ -204,4 +204,5 @@ declare class CosmosWalletModule<TModuleType extends string = string> implements
|
|
|
204
204
|
}>;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
export { COSMOS_WALLET_ID, CosmosProviderOptions, CosmosWalletModule,
|
|
207
|
+
export { COSMOS_WALLET_ID, CosmosProviderOptions, CosmosWalletModule, SwkModuleType };
|
|
208
|
+
export type { CosmosWalletModuleOptions, IKitError, IOnChangeEvent, SwkModule, SwkModuleTypeValue, SwkSignOptions };
|
package/dist/swk/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as CosmosProviderOptions } from '../cosmosProvider-
|
|
2
|
-
export { a as CosmosWalletProvider, i as injectedProvider, l as loadHostedProvider, r as resetProviderCache, b as resolveProvider } from '../cosmosProvider-
|
|
1
|
+
import { C as CosmosProviderOptions } from '../cosmosProvider-DTz0Y8xZ.js';
|
|
2
|
+
export { a as CosmosWalletProvider, i as injectedProvider, l as loadHostedProvider, r as resetProviderCache, b as resolveProvider } from '../cosmosProvider-DTz0Y8xZ.js';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* The Stellar Wallets Kit module contract, transcribed.
|
|
@@ -204,4 +204,5 @@ declare class CosmosWalletModule<TModuleType extends string = string> implements
|
|
|
204
204
|
}>;
|
|
205
205
|
}
|
|
206
206
|
|
|
207
|
-
export { COSMOS_WALLET_ID, CosmosProviderOptions, CosmosWalletModule,
|
|
207
|
+
export { COSMOS_WALLET_ID, CosmosProviderOptions, CosmosWalletModule, SwkModuleType };
|
|
208
|
+
export type { CosmosWalletModuleOptions, IKitError, IOnChangeEvent, SwkModule, SwkModuleTypeValue, SwkSignOptions };
|
package/dist/web/index.cjs
CHANGED
|
@@ -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.2.0";
|
|
953
953
|
var DEFAULT_BASE_URL = "https://api.cosmospay.lat/cosmos-api";
|
|
954
954
|
|
|
955
955
|
// src/web/rest.ts
|