@spicenet-io/spiceflow-ui 4.8.1-next.0 → 4.8.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/hooks/useSpiceExecution.d.ts +4 -0
- package/dist/index.cjs.js +7 -7
- package/dist/index.js +7 -7
- package/package.json +2 -2
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Address } from "viem";
|
|
2
2
|
import { ChainBatch, Call } from "../types/authorization";
|
|
3
3
|
import type { FeeEstimateSummary } from "@spicenet-io/spiceflow-core";
|
|
4
|
+
import { type ActionOutputCredit } from "../utils/actionOutputEscrowFunding";
|
|
4
5
|
export type { Call, ChainBatch };
|
|
5
6
|
export type ExecutionStep = "idle" | "building" | "signing-delegation" | "signing-intent" | "submitting" | "executing" | "confirming-rollup" | "success" | "error";
|
|
6
7
|
export interface ExecutionProgress {
|
|
@@ -33,6 +34,9 @@ export interface ExecutionOptions {
|
|
|
33
34
|
skipUserFundingPreflight?: boolean;
|
|
34
35
|
signal?: AbortSignal;
|
|
35
36
|
}
|
|
37
|
+
export declare function validateUserFundingCapacity(chainBatches: ChainBatch[], userAddress: Address, options?: {
|
|
38
|
+
actionOutputCredits?: ActionOutputCredit[];
|
|
39
|
+
}): Promise<void>;
|
|
36
40
|
export declare function useSpiceExecution(): {
|
|
37
41
|
execute: (chainBatches: ChainBatch[], tokenAddress: string, tokenTransferAmount: bigint, onProgress?: OnProgress, signal?: AbortSignal, options?: ExecutionOptions) => Promise<string>;
|
|
38
42
|
estimate: (chainBatches: ChainBatch[], tokenAddress: string, tokenTransferAmount: bigint, options?: ExecutionOptions) => Promise<FeeEstimateSummary>;
|