@spicenet-io/spiceflow-ui 4.1.1 → 4.2.0-next.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.cjs.js +1 -1
- package/dist/auth-privy.js +1 -1
- package/dist/components/SpiceDeposit/lib/swapper.d.ts +27 -0
- package/dist/components/SpiceDeposit/steps/SelectSourceModal.d.ts +3 -0
- package/dist/components/SpiceDeposit/steps/SwapperDepositModal.d.ts +3 -0
- package/dist/index.cjs.js +7 -7
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -9
- package/dist/{privy-COlZvldu.js → privy-Bc1n_r6h.js} +1 -1
- package/dist/privy-C-sOsJ4F.js +2 -0
- package/dist/providers/SpiceFlowProvider.d.ts +3 -0
- package/dist/types/deposit.d.ts +42 -0
- package/package.json +2 -1
- package/dist/privy-JCBW-mP2.js +0 -2
package/dist/auth-privy.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
"use strict";const r=require("./privy-
|
|
2
|
+
"use strict";const r=require("./privy-C-sOsJ4F.js");require("react/jsx-runtime"),require("react"),require("@spicenet-io/spiceflow-core"),require("viem"),require("viem/actions"),require("@privy-io/react-auth"),require("wagmi"),require("@tanstack/react-query"),exports.PrivyLogin=r.PrivyLogin;
|
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-Bc1n_r6h.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};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type Address } from "viem";
|
|
2
|
+
import type { SwapperIframeOptions, SwapperStyles } from "@swapper-finance/deposit-sdk";
|
|
3
|
+
import { type Token } from "@spicenet-io/spiceflow-core";
|
|
4
|
+
import type { DepositSource, SpiceSwapperConfig, SwapperIframeFactory } from "../../../types/deposit";
|
|
5
|
+
import type { ResolvedDarkPalette } from "../../../utils/theme";
|
|
6
|
+
export declare const DEFAULT_SWAPPER_INTEGRATOR_ID = "692fb8af264069ca12a9";
|
|
7
|
+
export declare const SWAPPER_DESTINATION_CHAIN_ID = 8453;
|
|
8
|
+
export declare function getSwapperDestinationToken(): Token | undefined;
|
|
9
|
+
export declare function resolveSwapperConfig(config?: SpiceSwapperConfig): {
|
|
10
|
+
integratorId: string;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
iframeFactory?: SwapperIframeFactory;
|
|
13
|
+
};
|
|
14
|
+
export declare const defaultSwapperFactory: SwapperIframeFactory;
|
|
15
|
+
export declare function buildSwapperStyles(dk: ResolvedDarkPalette, dark: boolean, primaryColor: string): SwapperStyles;
|
|
16
|
+
export declare function buildSwapperOptions(params: {
|
|
17
|
+
integratorId: string;
|
|
18
|
+
depositWalletAddress: Address;
|
|
19
|
+
source: Exclude<DepositSource, "wallet">;
|
|
20
|
+
styles: SwapperStyles;
|
|
21
|
+
}): SwapperIframeOptions;
|
|
22
|
+
export declare function readSwapperUsdcBalance(embeddedWalletAddress: Address): Promise<bigint>;
|
|
23
|
+
export declare function waitForUsdcArrival(embeddedWalletAddress: Address, baseline: bigint, options?: {
|
|
24
|
+
timeoutMs?: number;
|
|
25
|
+
intervalMs?: number;
|
|
26
|
+
signal?: AbortSignal;
|
|
27
|
+
}): Promise<bigint | null>;
|