@lifi/compose-spec
Version:
Public wire-format types and schemas for Compose flows
167 lines (157 loc) • 3.02 kB
text/typescript
export type {
SolType,
ResourceInput,
HandleInput,
FlowInput,
Ref,
LiteralBinding,
BindValue,
AppliedGuard,
Call,
Continuation,
Flow,
} from "./flowSchema.js";
export {
FlowSchema,
ResourceSchema,
SolTypeSchema,
ResourceInputSchema,
HandleInputSchema,
FlowInputSchema,
RefSchema,
LiteralBindingSchema,
BindValueSchema,
AppliedGuardSchema,
CallSchema,
ContinuationSchema,
} from "./flowSchema.js";
export type {
Port,
ResourcePort,
HandlePort,
OpInputPort,
ResourceOutputPort,
OpOutputPort,
ComposeError,
ComposeErrorKind,
GenericComposeErrorKind,
PreparationComposeError,
SimulationRevertComposeError,
GenericComposeError,
FailedPreparedOp,
MaterialiserInputBase,
MaterialiserInput,
MaterialiserInputOf,
MaterialiserConfigOf,
InputSpec,
PreconditionBase,
Precondition,
PreconditionOf,
PreconditionConfigOf,
} from "./flow.js";
export {
isResourceInput,
flowInputType,
flowInputMode,
flowInputResource,
isResourcePort,
isHandlePort,
isResourceOutputPort,
isMaterialiserInput,
} from "./flow.js";
export type {
Availability,
OutputAmount,
Resource,
ProducedResource,
SimulatedAmounts,
} from "./resource.js";
export {
erc20Resource,
erc20Token,
foldResource,
isERC20Resource,
isNativeResource,
nativeResource,
resourceKey,
resourcesEqual,
} from "./resource.js";
export type {
ProviderKindName,
FlashloanMaterialiserInput,
} from "./flashloan.js";
export {
PROVIDER_KIND,
providerKindByName,
providerKindNames,
} from "./flashloan.js";
export {
linear,
copy,
handle,
native,
erc20,
resource,
readResource,
opHandle,
resourceOutput,
inputRef,
outputRef,
} from "./constructors.js";
export type { ParsedRef, RefScope, ContextKey } from "./ref.js";
export {
parseRef,
foldRef,
refKey,
isRef,
isContextKey,
RESERVED_REF_SCOPES,
} from "./ref.js";
export type {
ComposeManifest,
ManifestOperation,
ManifestGuard,
ManifestMaterialiser,
ManifestPrecondition,
GuardSelector,
GuardCompatibility,
} from "./manifest.js";
export type {
SweepTo,
ComposeRun,
ComposeCompileRequest,
ComposeCompileSuccessData,
ComposeContinuation,
PriceImpact,
SimulationPolicy,
ApprovalEntry,
SimulationRevert,
ComposeTransactionRequest,
ComposeCompilePartialData,
ComposeCompileResult,
} from "./compile.js";
export type {
MaterialiserMetadata,
MaterialiserResolution,
} from "./materialiserMetadata.js";
export { foldMaterialiserMetadata } from "./materialiserMetadata.js";
export {
ResourcePortZod,
HandlePortZod,
HandleUnitsZod,
StaticSolTypeZod,
HANDLE_UNITS,
STATIC_SOL_TYPES,
isStaticSolType,
InputPortZod,
ResourceOutputPortZod,
OutputPortZod,
ManifestOperationZod,
ManifestGuardZod,
ManifestMaterialiserZod,
ManifestPreconditionZod,
ComposeManifestZod,
GuardSelectorZod,
GuardCompatibilityZod,
} from "./zodSchemas.js";
export type { HandleUnits, StaticSolType } from "./zodSchemas.js";