@trustware/sdk-staging 1.1.8-staging.8 → 1.1.9-staging.3
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/README.md +0 -2
- package/dist/{blockchain-BONedEsU.d.cts → blockchain-BxAFzp0s.d.cts} +5 -1
- package/dist/{blockchain-BONedEsU.d.ts → blockchain-BxAFzp0s.d.ts} +5 -1
- package/dist/constants.cjs +1 -1
- package/dist/constants.cjs.map +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/constants.mjs.map +1 -1
- package/dist/{core-BQ0mFnLc.d.ts → core-CwT8Wd1x.d.ts} +32 -4
- package/dist/{core-BjQwlpoI.d.cts → core-Dy_rZl5y.d.cts} +32 -4
- package/dist/core.cjs +69 -32
- package/dist/core.cjs.map +1 -1
- package/dist/core.d.cts +4 -4
- package/dist/core.d.ts +4 -4
- package/dist/core.mjs +69 -32
- package/dist/core.mjs.map +1 -1
- package/dist/{detect-DlbgTrkm.d.cts → detect-DVpECOTa.d.cts} +2 -2
- package/dist/{detect-MWKHLhn9.d.ts → detect-d2PUaxE_.d.ts} +2 -2
- package/dist/index.cjs +699 -333
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -10
- package/dist/index.d.ts +9 -10
- package/dist/index.mjs +653 -287
- package/dist/index.mjs.map +1 -1
- package/dist/{manager-aOd3vkF9.d.ts → manager-B5aklGtm.d.cts} +2 -4
- package/dist/{manager-DKVW7zeh.d.cts → manager-xFiq0SHr.d.ts} +2 -4
- package/dist/smart-account.cjs +1 -2
- package/dist/smart-account.cjs.map +1 -1
- package/dist/smart-account.d.cts +31 -3
- package/dist/smart-account.d.ts +31 -3
- package/dist/smart-account.mjs +1 -2
- package/dist/smart-account.mjs.map +1 -1
- package/dist/{types-MtdjJgwT.d.ts → types-BJY9r-mz.d.ts} +1 -1
- package/dist/{types-B3nKHW6H.d.cts → types-DX3HtFcn.d.cts} +1 -1
- package/dist/wallet.cjs +124 -53
- package/dist/wallet.cjs.map +1 -1
- package/dist/wallet.d.cts +4 -4
- package/dist/wallet.d.ts +4 -4
- package/dist/wallet.mjs +124 -53
- package/dist/wallet.mjs.map +1 -1
- package/dist/widget.cjs +672 -306
- package/dist/widget.cjs.map +1 -1
- package/dist/widget.d.cts +2 -2
- package/dist/widget.d.ts +2 -2
- package/dist/widget.mjs +626 -260
- package/dist/widget.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ChainType, C as ChainDef } from './blockchain-
|
|
1
|
+
import { c as ChainType, C as ChainDef } from './blockchain-BxAFzp0s.cjs';
|
|
2
2
|
|
|
3
3
|
declare enum TrustwareErrorCode {
|
|
4
4
|
INVALID_CONFIG = "INVALID_CONFIG",
|
|
@@ -422,7 +422,6 @@ type TrustwareConfigOptions = {
|
|
|
422
422
|
fromAddress?: string;
|
|
423
423
|
toAddress?: string;
|
|
424
424
|
defaultSlippage?: number;
|
|
425
|
-
routeType?: string;
|
|
426
425
|
options?: {
|
|
427
426
|
routeRefreshMs?: number;
|
|
428
427
|
fixedFromAmount?: string | number;
|
|
@@ -449,7 +448,6 @@ type ResolvedTrustwareConfig = {
|
|
|
449
448
|
fromAddress?: string;
|
|
450
449
|
toAddress?: string;
|
|
451
450
|
defaultSlippage: number;
|
|
452
|
-
routeType: string;
|
|
453
451
|
options: {
|
|
454
452
|
routeRefreshMs?: number;
|
|
455
453
|
fixedFromAmount?: string | number;
|
|
@@ -679,4 +677,4 @@ declare function useWalletInfo(wagmi?: WagmiBridge): {
|
|
|
679
677
|
};
|
|
680
678
|
declare function useWalletExternalDisconnect(cb: () => void): void;
|
|
681
679
|
|
|
682
|
-
export {
|
|
680
|
+
export { useWireDetectionIntoManager as $, type WagmiBridge as A, type BuildRouteResult as B, type WagmiConnector as C, DEFAULT_AUTO_DETECT_PROVIDER as D, type EIP1193 as E, type FeatureFlags as F, type WalletAddressResolution as G, type WalletAddressSource as H, IdentityStore as I, type WalletCategory as J, type WalletConnectConfig as K, type WalletEcosystem as L, type WalletId as M, type WalletIdentity as N, type WalletIdentityAddress as O, type WalletIdentityChainLike as P, type WalletMeta as Q, type RateLimitInfo as R, type SimpleWalletInterface as S, type TrustwareConfigOptions as T, buildWalletIdentityAddress as U, createWalletIdentity as V, type WalletInterFaceAPI as W, resolveWalletAddressForChain as X, upsertWalletIdentityAddress as Y, useWalletExternalDisconnect as Z, useWalletInfo as _, TrustwareError as a, walletManager as a0, type WalletSnapshot as a1, useWalletConnectConnect as a2, buildRoute as a3, buildDepositAddress as a4, submitReceipt as a5, getStatus as a6, pollStatus as a7, type Transaction as b, type TrustwareEvent as c, DEFAULT_FEATURE_FLAGS as d, DEFAULT_MESSAGES as e, DEFAULT_RETRY_CONFIG as f, DEFAULT_SLIPPAGE as g, type DetectedWallet as h, type EIP6963ProviderDetail as i, type EvmWalletInterface as j, type ResolvedFeatureFlags as k, type ResolvedRetryConfig as l, type ResolvedTrustwareConfig as m, type ResolvedWalletConnectConfig as n, type RetryConfig as o, type RouteEstimate as p, type RouteIntent as q, type RouteParams as r, type RoutePlan as s, type RouteSponsorship as t, type SolanaProviderLike as u, type SolanaWalletInterface as v, type SponsorshipApproval as w, type SwapTokenRef as x, type TrustwareTheme as y, type TrustwareWidgetMessages as z };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as ChainType, C as ChainDef } from './blockchain-
|
|
1
|
+
import { c as ChainType, C as ChainDef } from './blockchain-BxAFzp0s.js';
|
|
2
2
|
|
|
3
3
|
declare enum TrustwareErrorCode {
|
|
4
4
|
INVALID_CONFIG = "INVALID_CONFIG",
|
|
@@ -422,7 +422,6 @@ type TrustwareConfigOptions = {
|
|
|
422
422
|
fromAddress?: string;
|
|
423
423
|
toAddress?: string;
|
|
424
424
|
defaultSlippage?: number;
|
|
425
|
-
routeType?: string;
|
|
426
425
|
options?: {
|
|
427
426
|
routeRefreshMs?: number;
|
|
428
427
|
fixedFromAmount?: string | number;
|
|
@@ -449,7 +448,6 @@ type ResolvedTrustwareConfig = {
|
|
|
449
448
|
fromAddress?: string;
|
|
450
449
|
toAddress?: string;
|
|
451
450
|
defaultSlippage: number;
|
|
452
|
-
routeType: string;
|
|
453
451
|
options: {
|
|
454
452
|
routeRefreshMs?: number;
|
|
455
453
|
fixedFromAmount?: string | number;
|
|
@@ -679,4 +677,4 @@ declare function useWalletInfo(wagmi?: WagmiBridge): {
|
|
|
679
677
|
};
|
|
680
678
|
declare function useWalletExternalDisconnect(cb: () => void): void;
|
|
681
679
|
|
|
682
|
-
export {
|
|
680
|
+
export { useWireDetectionIntoManager as $, type WagmiBridge as A, type BuildRouteResult as B, type WagmiConnector as C, DEFAULT_AUTO_DETECT_PROVIDER as D, type EIP1193 as E, type FeatureFlags as F, type WalletAddressResolution as G, type WalletAddressSource as H, IdentityStore as I, type WalletCategory as J, type WalletConnectConfig as K, type WalletEcosystem as L, type WalletId as M, type WalletIdentity as N, type WalletIdentityAddress as O, type WalletIdentityChainLike as P, type WalletMeta as Q, type RateLimitInfo as R, type SimpleWalletInterface as S, type TrustwareConfigOptions as T, buildWalletIdentityAddress as U, createWalletIdentity as V, type WalletInterFaceAPI as W, resolveWalletAddressForChain as X, upsertWalletIdentityAddress as Y, useWalletExternalDisconnect as Z, useWalletInfo as _, TrustwareError as a, walletManager as a0, type WalletSnapshot as a1, useWalletConnectConnect as a2, buildRoute as a3, buildDepositAddress as a4, submitReceipt as a5, getStatus as a6, pollStatus as a7, type Transaction as b, type TrustwareEvent as c, DEFAULT_FEATURE_FLAGS as d, DEFAULT_MESSAGES as e, DEFAULT_RETRY_CONFIG as f, DEFAULT_SLIPPAGE as g, type DetectedWallet as h, type EIP6963ProviderDetail as i, type EvmWalletInterface as j, type ResolvedFeatureFlags as k, type ResolvedRetryConfig as l, type ResolvedTrustwareConfig as m, type ResolvedWalletConnectConfig as n, type RetryConfig as o, type RouteEstimate as p, type RouteIntent as q, type RouteParams as r, type RoutePlan as s, type RouteSponsorship as t, type SolanaProviderLike as u, type SolanaWalletInterface as v, type SponsorshipApproval as w, type SwapTokenRef as x, type TrustwareTheme as y, type TrustwareWidgetMessages as z };
|
package/dist/smart-account.cjs
CHANGED
|
@@ -12265,7 +12265,7 @@ var init_constants = __esm({
|
|
|
12265
12265
|
"src/constants.ts"() {
|
|
12266
12266
|
"use strict";
|
|
12267
12267
|
SDK_NAME = "@trustware/sdk";
|
|
12268
|
-
SDK_VERSION = "1.1.
|
|
12268
|
+
SDK_VERSION = "1.1.9-staging.3";
|
|
12269
12269
|
API_ROOT = "https://bv-staging-api.trustware.io";
|
|
12270
12270
|
API_PREFIX = "/api";
|
|
12271
12271
|
}
|
|
@@ -13492,7 +13492,6 @@ function resolveConfig(input) {
|
|
|
13492
13492
|
defaultSlippage: normalizeSlippage(
|
|
13493
13493
|
input.routes.defaultSlippage ?? DEFAULT_SLIPPAGE
|
|
13494
13494
|
),
|
|
13495
|
-
routeType: input.routes.routeType ?? "swap",
|
|
13496
13495
|
options: {
|
|
13497
13496
|
...input.routes.options
|
|
13498
13497
|
}
|