@lifi/composer-sdk
Version:
Public Composer SDK for building and submitting flows
20 lines • 1.13 kB
text/typescript
import { TypedGuard } from "../types.cjs";
import { BandGuardConfig, CoreNumericInvariantGuardConfig, SlippageGuardConfig } from "./config.generated.cjs";
declare namespace guards_generated_d_exports {
export { band, coreNumericInvariant, slippage };
}
/** Assert that output amounts are within a slippage tolerance in basis points */
export declare const slippage: <P extends string>(config: Omit<SlippageGuardConfig, "port"> & {
port: P;
}) => TypedGuard<P>;
/** Assert a numeric (uint256) handle output of the target op satisfies a comparison against a constant threshold. Emits one IR1 binary invariant; reverts the run on violation. */
export declare const coreNumericInvariant: <P extends string>(config: Omit<CoreNumericInvariantGuardConfig, "port"> & {
port: P;
}) => TypedGuard<P>;
/** Assert that an output stays within a tolerance in basis points of its simulated value, in both directions */
export declare const band: <P extends string>(config: Omit<BandGuardConfig, "port"> & {
port: P;
}) => TypedGuard<P>;
//#endregion
export { guards_generated_d_exports };
//# sourceMappingURL=guards.generated.d.cts.map