@spicenet-io/spiceflow-ui 4.0.14 → 4.1.1
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/dist/auth-privy.cjs.js +1 -1
- package/dist/auth-privy.js +1 -1
- package/dist/components/SpiceDeposit/lib/executors.d.ts +2 -1
- package/dist/components/SpiceLock/lib/executors.d.ts +1 -6
- package/dist/components/SpiceSupply/lib/executors.d.ts +2 -10
- package/dist/components/SpiceSupply/parts/SupplyStepStatusCard.d.ts +20 -0
- package/dist/components/SpiceWithdraw/SpiceWithdraw.d.ts +0 -1
- package/dist/components/SpiceWithdraw/parts/WithdrawBalanceCardHeader.d.ts +12 -0
- package/dist/components/SpiceWithdraw/parts/WithdrawDestinationCard.d.ts +28 -0
- package/dist/components/SpiceWithdraw/parts/WithdrawSourceCard.d.ts +34 -0
- package/dist/components/SpiceWithdraw/parts/WithdrawSubtitle.d.ts +8 -0
- package/dist/components/ui/AmountText.d.ts +0 -1
- package/dist/components/ui/PercentageDial.d.ts +8 -0
- package/dist/components/ui/WarningBanner.d.ts +16 -0
- package/dist/components/ui/icons.d.ts +3 -0
- package/dist/components/ui/index.d.ts +1 -1
- package/dist/execution/externalWalletClient.d.ts +21 -0
- package/dist/execution/fundEmbeddedWallet.d.ts +7 -0
- package/dist/execution/intentSigning.d.ts +12 -0
- package/dist/execution/intentStatus.d.ts +0 -6
- package/dist/execution/pollIntentStep.d.ts +2 -3
- package/dist/hooks/useDebouncedEstimate.d.ts +12 -0
- package/dist/hooks/useLockWalletAssets.d.ts +18 -0
- package/dist/index.cjs.js +21 -44
- package/dist/index.d.ts +7 -11
- package/dist/index.js +25 -48
- package/dist/privy-COlZvldu.js +2 -0
- package/dist/privy-JCBW-mP2.js +2 -0
- package/dist/types/deposit.d.ts +3 -2
- package/dist/types/lock.d.ts +2 -1
- package/dist/types/status.d.ts +1 -0
- package/dist/types/supply.d.ts +6 -1
- package/dist/types/withdraw.d.ts +2 -15
- package/dist/utils/actionOutputEscrowFunding.d.ts +0 -7
- package/dist/utils/amounts.d.ts +1 -0
- package/dist/utils/chains/index.d.ts +0 -1
- package/dist/utils/crossChainRouter/index.d.ts +0 -1
- package/dist/utils/crossChainRouter/liquidityVenues.d.ts +0 -2
- package/dist/utils/crossChainRouter/uniV3.d.ts +0 -4
- package/dist/utils/errors.d.ts +8 -0
- package/dist/utils/logos.d.ts +0 -4
- package/dist/utils/relayer/index.d.ts +4 -1
- package/package.json +2 -16
- package/dist/privy-BdHp5Owr.js +0 -0
- package/dist/privy-Ds5DCgFX.js +0 -0
- package/dist/utils/crossChainRouter/buildIntent.d.ts +0 -34
- package/dist/utils/crossChainRouter/executeSwapThenAction.d.ts +0 -17
package/dist/index.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type { ProviderLoginProps } from "./components/ProviderLogins";
|
|
|
12
12
|
export type { PostDepositContext } from "./types/deposit";
|
|
13
13
|
export type { SpiceDepositProps, EscrowRecovery, } from "./components/SpiceDeposit/SpiceDeposit";
|
|
14
14
|
export type { SpiceWithdrawProps } from "./components/SpiceWithdraw/SpiceWithdraw";
|
|
15
|
-
export type { DestinationToken, SpiceWithdrawDeliveryTransfer,
|
|
15
|
+
export type { DestinationToken, SpiceWithdrawDeliveryTransfer, } from "./types/withdraw";
|
|
16
16
|
export type { SpiceSupplyProps, DestinationTokenConfig, BuildActionCallsContext, PayExecuteContext, } from "./types/supply";
|
|
17
17
|
export type { SpiceLockModalProps, LockDurationOption, LockBatchContext, LockExecuteContext, } from "./types/lock";
|
|
18
18
|
export type { AccountDisplayProps, AccountNotice, CustomSection, CustomSectionItem, SpiceAsset, BreakdownLabel, } from "./components/AccountDisplay";
|
|
@@ -42,10 +42,10 @@ export { buildPayChainBatches, buildSupplyChainBatches, estimateRequiredGrossFun
|
|
|
42
42
|
export type { BatchBuilderContext } from "./components/SpiceSupply/lib/buildBatches";
|
|
43
43
|
export { estimateFeePreview, estimateSupplyMaxAmount, } from "./components/SpiceSupply/lib/feePreview";
|
|
44
44
|
export type { FeePreviewContext } from "./components/SpiceSupply/lib/feePreview";
|
|
45
|
-
export { executeSupply,
|
|
45
|
+
export { executeSupply, executePay, } from "./components/SpiceSupply/lib/executors";
|
|
46
46
|
export type { ExecutorContext, SupplyStep, PaymentResult, } from "./components/SpiceSupply/lib/executors";
|
|
47
47
|
export { SpiceflowError, isSpiceflowError } from "./utils/errors";
|
|
48
|
-
export type { SpiceflowErrorCode } from "./utils/errors";
|
|
48
|
+
export type { SpiceflowErrorCode, RelayerErrorDetail } from "./utils/errors";
|
|
49
49
|
export type { WalletProvider, WalletLoginProps, ProviderConfig, } from "./types/wallet";
|
|
50
50
|
export { relayerService } from "./utils/relayer";
|
|
51
51
|
export { spicenetAbi, spicenetAbi as spicenetWithdrawalAbi, } from "@spicenet-io/spiceflow-core";
|
|
@@ -53,17 +53,13 @@ export { getChainConfig, getChainName } from "./utils/chains";
|
|
|
53
53
|
export { SPICE_COMBINED_FEE_RECIPIENT, SPICE_GAS_FEE_RECIPIENT, SPICE_PLATFORM_FEE_RECIPIENT, SPICE_SOLVER_ADDRESS, } from "./utils/spiceConstants";
|
|
54
54
|
export { isNativeToken, getEscrowContractAddress, SPICENET_NATIVE_CHAIN_ID, isSpicenetChainId, normalizeNativeTokenAddress, getChainIdsByNetwork, ZERO_ADDRESS as NATIVE_TOKEN_ADDRESS, } from "@spicenet-io/spiceflow-core";
|
|
55
55
|
export type { SpiceFlowNetwork } from "./providers";
|
|
56
|
-
export { resolveRoute, buildRoutedBatches,
|
|
56
|
+
export { resolveRoute, buildRoutedBatches, findEquivalentOnChain, } from "./utils/crossChainRouter";
|
|
57
57
|
export { areEquivalentOnChains, getAssetChainTokenCandidates, resolveAssetTokenAddressOnChain, resolveFundedToken, } from "./utils/tokenResolution";
|
|
58
|
-
export { buildIntent, resolveTokenRef, } from "./utils/crossChainRouter/buildIntent";
|
|
59
58
|
export type { ChainToken, RouteStrategy, RoutePlan, ResolveRouteParams, BuildRoutedBatchesParams, RoutedBatchesResult, } from "./utils/crossChainRouter";
|
|
60
|
-
export
|
|
61
|
-
export {
|
|
62
|
-
export { executeSwapThenAction, applyBuffer, } from "./utils/crossChainRouter/executeSwapThenAction";
|
|
63
|
-
export type { ResolvedSwap, LiquidityVenue, LiquidityRegistry, LiquidityRegistryConfig, OneInchVenueConfig, SatsumaVenueConfig, } from "./utils/crossChainRouter/liquidityVenues";
|
|
64
|
-
export type { ExecuteFn, SwapThenActionParams, } from "./utils/crossChainRouter/executeSwapThenAction";
|
|
59
|
+
export { createLiquidityRegistry, createSatsumaVenue, SATSUMA_CITREA_CONFIG, UNIV3_BASE_CONFIG, } from "./utils/crossChainRouter/liquidityVenues";
|
|
60
|
+
export type { ResolvedSwap, LiquidityVenue, LiquidityRegistry, LiquidityRegistryConfig, SatsumaVenueConfig, } from "./utils/crossChainRouter/liquidityVenues";
|
|
65
61
|
export { createExactOutputRegistry } from "./utils/swapQuotes";
|
|
66
62
|
export type { ExactOutputSwapIntent, ResolvedExactOutputSwap, ExactOutputVenue, ExactOutputRegistry, } from "./utils/swapQuotes";
|
|
67
63
|
export { buildUniV3SwapCalls, applySlippage, } from "@spicenet-io/spiceflow-core";
|
|
68
64
|
export type { UniV3SwapConfig, UniV3BuildSwapParams, UniV3QuoteParams, UniV3QuoteResult, } from "@spicenet-io/spiceflow-core";
|
|
69
|
-
export {
|
|
65
|
+
export { getBestUniV3Quote } from "./utils/crossChainRouter/uniV3";
|