@spicenet-io/spiceflow-ui 4.2.0-satsuma.1 → 4.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/dist/auth-privy.js +1 -1
- package/dist/components/AccountDisplay/parts/AccountActions.d.ts +0 -1
- package/dist/components/AccountDisplay/parts/AccountPanel.d.ts +0 -1
- package/dist/components/SpiceSupply/lib/buildBatches.d.ts +0 -1
- package/dist/components/SpiceSupply/lib/executors.d.ts +0 -1
- package/dist/hooks/useSupplyAssets.d.ts +1 -3
- package/dist/hooks/useSupplyQuote.d.ts +1 -4
- package/dist/index.cjs.js +9 -9
- package/dist/index.d.ts +7 -10
- package/dist/index.js +9 -9
- package/dist/types/assets.d.ts +0 -2
- package/dist/types/supply.d.ts +0 -1
- package/dist/utils/crossChainRouter/liquidityVenues.d.ts +0 -5
- package/dist/utils/spiceConstants.d.ts +0 -1
- package/package.json +2 -2
- package/dist/components/SpiceSupply/useSupplyController.d.ts +0 -71
- package/dist/utils/crossChainRouter/algebra.d.ts +0 -83
- package/dist/utils/spicenetBatch.d.ts +0 -18
- /package/dist/{privy-BeOm0JvD.js → privy-CJe6d9DR.js} +0 -0
package/dist/auth-privy.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{P as g}from"./privy-
|
|
2
|
+
import{P as g}from"./privy-CJe6d9DR.js";import"react/jsx-runtime";import"react";import"@spicenet-io/spiceflow-core";import"viem";import"viem/actions";import"@privy-io/react-auth";import"wagmi";import"@tanstack/react-query";export{g as PrivyLogin};
|
|
@@ -17,7 +17,6 @@ interface AccountPanelProps {
|
|
|
17
17
|
notice?: AccountNotice | null;
|
|
18
18
|
onDepositClick?: () => void;
|
|
19
19
|
onWithdrawClick?: () => void;
|
|
20
|
-
onDisconnectClick: () => void;
|
|
21
20
|
depositDisabled?: boolean;
|
|
22
21
|
onCompleteDeposit?: (deposit: VerifiedPendingDeposit) => void;
|
|
23
22
|
primaryColor?: string;
|
|
@@ -7,7 +7,6 @@ import type { ResolvedExactOutputSwap } from "../../../utils/swapQuotes";
|
|
|
7
7
|
import type { ExecutionOptions } from "../../../hooks/useSpiceExecution";
|
|
8
8
|
import type { FeeEstimateSummary } from "@spicenet-io/spiceflow-core";
|
|
9
9
|
type EstimateFn = (chainBatches: ChainBatch[], tokenAddress: string, tokenTransferAmount: bigint, options?: ExecutionOptions) => Promise<FeeEstimateSummary>;
|
|
10
|
-
export declare function buildEmbeddedEscrowDepositBatch(token: Address, amount: bigint, chainId: number): ChainBatch;
|
|
11
10
|
export declare function stripSpicenetFundingBatches(batches: ChainBatch[]): ChainBatch[];
|
|
12
11
|
export declare function scaleTokenAmount(amount: bigint, fromDecimals: number, toDecimals: number): bigint;
|
|
13
12
|
export interface BatchBuilderContext {
|
|
@@ -11,7 +11,6 @@ export type PaymentResult = {
|
|
|
11
11
|
txHash?: string;
|
|
12
12
|
error?: string;
|
|
13
13
|
};
|
|
14
|
-
export declare function isExternalSource(asset: SelectedAsset["asset"] | null | undefined, isNon7702: boolean): boolean;
|
|
15
14
|
export type ExecutorContext = {
|
|
16
15
|
selectedAsset: SelectedAsset | null;
|
|
17
16
|
parsedAmount: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type Address } from "viem";
|
|
2
2
|
import type { Asset } from "../types/assets";
|
|
3
|
-
export declare function isSupportedSupplyAsset(asset: Pick<Asset, "address" | "chainTokens"
|
|
3
|
+
export declare function isSupportedSupplyAsset(asset: Pick<Asset, "address" | "chainTokens">, supportedSourceAssets?: string[]): boolean;
|
|
4
4
|
type DestinationToken = {
|
|
5
5
|
address: Address;
|
|
6
6
|
decimals: number;
|
|
@@ -14,11 +14,9 @@ export declare function useSupplyAssets(opts: {
|
|
|
14
14
|
supportedSourceAssets?: string[];
|
|
15
15
|
sourceChains?: number[];
|
|
16
16
|
enabled: boolean;
|
|
17
|
-
includeExternalWalletAssets?: boolean;
|
|
18
17
|
}): {
|
|
19
18
|
displayAssets: (Asset & {
|
|
20
19
|
_source: "wallet" | "spice";
|
|
21
|
-
_fundingWallet?: "embedded" | "external";
|
|
22
20
|
})[];
|
|
23
21
|
filteredSpiceAssets: Asset[];
|
|
24
22
|
walletAssets: Asset[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Address } from "viem";
|
|
2
|
-
import type {
|
|
2
|
+
import type { ResolvedSwap } from "../utils/crossChainRouter/liquidityVenues";
|
|
3
3
|
import { type ExactOutputSwapIntent, type ResolvedExactOutputSwap } from "../utils/swapQuotes";
|
|
4
4
|
import type { SelectedAsset } from "../types/assets";
|
|
5
5
|
export interface UseSupplyQuoteOpts {
|
|
@@ -14,8 +14,6 @@ export interface UseSupplyQuoteOpts {
|
|
|
14
14
|
chainId: number;
|
|
15
15
|
recipient: Address | undefined;
|
|
16
16
|
paymentAmount?: string;
|
|
17
|
-
maxSlippage?: number;
|
|
18
|
-
resolveInputSwap?: LiquidityVenue["resolve"];
|
|
19
17
|
resolveExactOutputSwap?: (intent: ExactOutputSwapIntent, chainId: number, recipient: Address) => Promise<ResolvedExactOutputSwap | null>;
|
|
20
18
|
}
|
|
21
19
|
export interface SupplyQuoteResult {
|
|
@@ -37,6 +35,5 @@ export declare function resolveInputSupplySwapQuote(params: {
|
|
|
37
35
|
tokenIn: Address;
|
|
38
36
|
tokenOut: Address;
|
|
39
37
|
amountIn: bigint;
|
|
40
|
-
maxSlippage?: number;
|
|
41
38
|
}): Promise<ResolvedSwap>;
|
|
42
39
|
export declare function useSupplyQuote(opts: UseSupplyQuoteOpts): SupplyQuoteResult;
|