/** * @fileoverview chainweb_continue_pact - continue a cross-chain defpact step. * * Builds a continuation command (`cmd.payload.cont = { pactId, step, * rollback, proof, data }`), routes it to the target chain, runs `/local` * preflight, and — iff signatures are supplied — POSTs to `/send`. * * Signer is SCOPED by default (caller supplies `signerCapabilities`, * typically including `coin.GAS`). This differs from `deploy_module` which * uses an unscoped signer — see user-memory devnet-deploy-patterns.md. * * Known limitation (memory: continuation transitive deps bug): the * continuation tx's JSON may need to explicitly reference all transitive * modules. This tool does NOT auto-inject dependencies — callers must * construct `envData` accordingly. See README. */ import { z } from 'zod'; import type { ChainwebClient } from '../client/fetch.js'; /** 64KB envData cap. */ export declare const MAX_ENV_DATA_BYTES: number; /** 2MB proof cap — SPV proofs are typically a few KB. */ export declare const MAX_PROOF_BYTES: number; export declare const ContinuePactInputShape: { pactId: z.ZodString; step: z.ZodNumber; rollback: z.ZodDefault; targetChainId: z.ZodString; proof: z.ZodOptional; envData: z.ZodOptional>; signerKey: z.ZodString; signerCapabilities: z.ZodOptional>; }, z.core.$strip>>>; gasLimit: z.ZodDefault; sender: z.ZodOptional; sigs: z.ZodOptional>>; }; export declare const ContinuePactInputSchema: z.ZodObject<{ pactId: z.ZodString; step: z.ZodNumber; rollback: z.ZodDefault; targetChainId: z.ZodString; proof: z.ZodOptional; envData: z.ZodOptional>; signerKey: z.ZodString; signerCapabilities: z.ZodOptional>; }, z.core.$strip>>>; gasLimit: z.ZodDefault; sender: z.ZodOptional; sigs: z.ZodOptional>>; }, z.core.$strip>; export interface ContinuePactResult { targetChainId: string; preflight: { ok: boolean; gasUsed: number; error?: string; }; submitted: boolean; requestKey?: string; unsignedTx?: { cmd: string; hash: string; }; } export interface ContinuePactToolConfig { client: ChainwebClient; defaultSender?: string; gasPrice?: number; } export declare function createContinuePactTool(config: ContinuePactToolConfig): (args: unknown) => Promise<{ content: ContinuePactResult[]; }>; //# sourceMappingURL=continue-pact.d.ts.map