@lifi/compose-spec 0.7.1 → 0.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/README.md CHANGED
@@ -13,7 +13,7 @@ npm install @lifi/compose-spec
13
13
  ## What's included
14
14
 
15
15
  - **Flow schema types** — `Flow`, `Call`, `Ref`, `BindValue`, and related types that define the structure of a Compose flow document
16
- - **Continuation types** — `ContinuationIntent`, `ContinuationOutcome`, `ContinuationPlan`
16
+ - **Continuation types** — `ContinuationIntent`, `ContinuationOutcome`, `AssertionSpec`
17
17
  - **Resource types** — `Resource`, `Availability`, plus helpers like `erc20Token`, `foldResource`, `resourceKey`
18
18
  - **Output types** — `Outputs`, `Output`, `ConsumedOutput`, `TerminalOutput`, `Amount`, `Estimate`, `Minimum`, `Delivery`, `EstimateBasis`, `MinimumBasis` — the per-port `outputs` record on a compile result
19
19
  - **Manifest types** — `ComposeManifest`, `ManifestOperation`, `ManifestGuard`, `ManifestMaterialiser`, `ManifestPrecondition`
package/dist/index.cjs CHANGED
@@ -48,13 +48,9 @@ __export(index_exports, {
48
48
  CONTINUATION_COMMITMENT_OP_ID: () => CONTINUATION_COMMITMENT_OP_ID,
49
49
  CallCheckSpecSchema: () => CallCheckSpecSchema,
50
50
  CallSchema: () => CallSchema,
51
- CheckSchema: () => CheckSchema,
52
- CheckZod: () => CheckZod,
53
51
  ComposeManifestZod: () => ComposeManifestZod,
54
52
  ContinuationIntentSchema: () => ContinuationIntentSchema,
55
53
  ContinuationOutcomeSchema: () => ContinuationOutcomeSchema,
56
- ContinuationPlanSchema: () => ContinuationPlanSchema,
57
- ContinuationPlanZod: () => ContinuationPlanZod,
58
54
  EVMAddressString: () => EVMAddressString,
59
55
  EVM_NATIVE_SENTINEL: () => EVM_NATIVE_SENTINEL,
60
56
  Erc20BalanceDeltaGteSpecSchema: () => Erc20BalanceDeltaGteSpecSchema,
@@ -122,14 +118,11 @@ __export(index_exports, {
122
118
  instancePortName: () => instancePortName,
123
119
  isAsErc20Chain: () => isAsErc20Chain,
124
120
  isContextKey: () => isContextKey,
125
- isEQCheck: () => isEQCheck,
126
121
  isERC20Resource: () => isERC20Resource,
127
122
  isErc20AllowancePrecondition: () => isErc20AllowancePrecondition,
128
123
  isErc20BalancePrecondition: () => isErc20BalancePrecondition,
129
124
  isFutureResourceOutput: () => isFutureResourceOutput,
130
- isGTECheck: () => isGTECheck,
131
125
  isHandlePort: () => isHandlePort,
132
- isLTECheck: () => isLTECheck,
133
126
  isMaterialiserInput: () => isMaterialiserInput,
134
127
  isMsgValueNative: () => isMsgValueNative,
135
128
  isNativeAddressForChain: () => isNativeAddressForChain,
@@ -496,20 +489,6 @@ var decodeNativeBalanceGte = (check, ast) => {
496
489
  return import_effect2.ParseResult.fail(new import_effect2.ParseResult.Type(ast, check, policy.reason));
497
490
  }
498
491
  };
499
- var RawCheckSchema = import_effect2.Schema.Union(
500
- Erc20BalanceGteSpecSchema,
501
- NativeBalanceGteSpecSchema,
502
- CallCheckSpecSchema
503
- );
504
- var CheckSchema = import_effect2.Schema.transformOrFail(
505
- RawCheckSchema,
506
- import_effect2.Schema.typeSchema(RawCheckSchema),
507
- {
508
- strict: true,
509
- decode: (check, _options, ast) => check.kind === "nativeBalanceGte" ? decodeNativeBalanceGte(check, ast) : import_effect2.ParseResult.succeed(check),
510
- encode: (check) => import_effect2.ParseResult.succeed(check)
511
- }
512
- );
513
492
  var Erc20BalanceDeltaGteSpecSchema = import_effect2.Schema.Struct({
514
493
  kind: import_effect2.Schema.Literal("erc20BalanceDeltaGte"),
515
494
  chainId: ChainIdSchema,
@@ -530,17 +509,7 @@ var AssertionSpecSchema = import_effect2.Schema.Union(
530
509
  Erc20BalanceDeltaGteSpecSchema,
531
510
  NativeBalanceDeltaGteSpecSchema
532
511
  );
533
- var ContinuationPlanSchema = import_effect2.Schema.Struct({
534
- chainId: ChainIdSchema,
535
- nextFlow: FlowSchema,
536
- check: CheckSchema,
537
- validity: import_effect2.Schema.Struct({ expiresAtMs: EpochMsSchema }),
538
- correlationId: import_effect2.Schema.optional(import_effect2.Schema.String)
539
- });
540
512
  var settledOutcome = (intent) => intent.outcomes[0];
541
- var isGTECheck = (check) => check.kind === "call" && check.comparator === "gte";
542
- var isLTECheck = (check) => check.kind === "call" && check.comparator === "lte";
543
- var isEQCheck = (check) => check.kind === "call" && check.comparator === "eq";
544
513
 
545
514
  // src/descriptor.ts
546
515
  var import_effect3 = require("effect");
@@ -855,7 +824,6 @@ var hexBytesZod = import_zod.default.string().regex(HEX_BYTES);
855
824
  var uintStringZod = import_zod.default.string().refine((value) => DECIMAL_UINT.test(value) && BigInt(value) <= MAX_UINT256, {
856
825
  message: "expected a uint256 decimal integer string"
857
826
  });
858
- var epochMsZod = import_zod.default.number().int().min(-MAX_DATE_MS).max(MAX_DATE_MS);
859
827
  var SolTypeZod = import_zod.default.enum([
860
828
  "uint8",
861
829
  "uint16",
@@ -1008,7 +976,7 @@ var assertionOwnerZod = import_zod.default.union([
1008
976
  evmAddressZod,
1009
977
  import_zod.default.enum(["escrow", "delivery"])
1010
978
  ]);
1011
- var CheckZod = import_zod.default.discriminatedUnion("kind", [
979
+ var AssertionSpecZod = import_zod.default.discriminatedUnion("kind", [
1012
980
  import_zod.default.object({
1013
981
  kind: import_zod.default.literal("erc20BalanceGte"),
1014
982
  chainId: chainIdZod,
@@ -1029,10 +997,7 @@ var CheckZod = import_zod.default.discriminatedUnion("kind", [
1029
997
  calldata: hexBytesZod,
1030
998
  comparator: import_zod.default.enum(["gte", "eq", "lte"]),
1031
999
  value: uintStringZod
1032
- })
1033
- ]);
1034
- var AssertionSpecZod = import_zod.default.discriminatedUnion("kind", [
1035
- ...CheckZod.options,
1000
+ }),
1036
1001
  import_zod.default.object({
1037
1002
  kind: import_zod.default.literal("erc20BalanceDeltaGte"),
1038
1003
  chainId: import_zod.default.number().int().positive(),
@@ -1082,16 +1047,8 @@ var VerificationDescriptorZod = import_zod.default.object({
1082
1047
  paramsHash: import_zod.default.string().regex(BYTES32_LOWER_HEX),
1083
1048
  assertedPredicate: import_zod.default.array(AssertedPredicateZod)
1084
1049
  });
1085
- var ContinuationPlanZod = import_zod.default.object({
1086
- chainId: chainIdZod,
1087
- nextFlow: import_zod.default.unknown(),
1088
- check: CheckZod,
1089
- validity: import_zod.default.object({ expiresAtMs: epochMsZod }),
1090
- correlationId: import_zod.default.string().optional()
1091
- });
1092
1050
  var SettlementZod = import_zod.default.object({
1093
- escrow: SettlementEscrowZod.optional(),
1094
- continuation: ContinuationPlanZod.optional()
1051
+ escrow: SettlementEscrowZod.optional()
1095
1052
  });
1096
1053
  // Annotate the CommonJS export names for ESM import in node:
1097
1054
  0 && (module.exports = {
@@ -1113,13 +1070,9 @@ var SettlementZod = import_zod.default.object({
1113
1070
  CONTINUATION_COMMITMENT_OP_ID,
1114
1071
  CallCheckSpecSchema,
1115
1072
  CallSchema,
1116
- CheckSchema,
1117
- CheckZod,
1118
1073
  ComposeManifestZod,
1119
1074
  ContinuationIntentSchema,
1120
1075
  ContinuationOutcomeSchema,
1121
- ContinuationPlanSchema,
1122
- ContinuationPlanZod,
1123
1076
  EVMAddressString,
1124
1077
  EVM_NATIVE_SENTINEL,
1125
1078
  Erc20BalanceDeltaGteSpecSchema,
@@ -1187,14 +1140,11 @@ var SettlementZod = import_zod.default.object({
1187
1140
  instancePortName,
1188
1141
  isAsErc20Chain,
1189
1142
  isContextKey,
1190
- isEQCheck,
1191
1143
  isERC20Resource,
1192
1144
  isErc20AllowancePrecondition,
1193
1145
  isErc20BalancePrecondition,
1194
1146
  isFutureResourceOutput,
1195
- isGTECheck,
1196
1147
  isHandlePort,
1197
- isLTECheck,
1198
1148
  isMaterialiserInput,
1199
1149
  isMsgValueNative,
1200
1150
  isNativeAddressForChain,
package/dist/index.d.cts CHANGED
@@ -363,61 +363,6 @@ declare const CallCheckSpecSchema: Schema.Struct<{
363
363
  comparator: Schema.Literal<["gte", "eq", "lte"]>;
364
364
  value: Schema.filter<typeof Schema.String>;
365
365
  }>;
366
- declare const CheckSchema: Schema.transformOrFail<Schema.Union<[Schema.Struct<{
367
- kind: Schema.Literal<["erc20BalanceGte"]>;
368
- chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
369
- token: Schema.refine<string, typeof Schema.String>;
370
- owner: Schema.refine<string, typeof Schema.String>;
371
- minAmount: Schema.filter<typeof Schema.String>;
372
- }>, Schema.Struct<{
373
- kind: Schema.Literal<["nativeBalanceGte"]>;
374
- chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
375
- owner: Schema.refine<string, typeof Schema.String>;
376
- minAmount: Schema.filter<typeof Schema.String>;
377
- }>, Schema.Struct<{
378
- kind: Schema.Literal<["call"]>;
379
- chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
380
- to: Schema.refine<string, typeof Schema.String>;
381
- calldata: Schema.refine<string, typeof Schema.String>;
382
- comparator: Schema.Literal<["gte", "eq", "lte"]>;
383
- value: Schema.filter<typeof Schema.String>;
384
- }>]>, Schema.SchemaClass<{
385
- readonly token: string;
386
- readonly kind: "erc20BalanceGte";
387
- readonly chainId: number;
388
- readonly minAmount: string;
389
- readonly owner: string;
390
- } | {
391
- readonly kind: "nativeBalanceGte";
392
- readonly chainId: number;
393
- readonly minAmount: string;
394
- readonly owner: string;
395
- } | {
396
- readonly kind: "call";
397
- readonly chainId: number;
398
- readonly value: string;
399
- readonly to: string;
400
- readonly calldata: string;
401
- readonly comparator: "gte" | "eq" | "lte";
402
- }, {
403
- readonly token: string;
404
- readonly kind: "erc20BalanceGte";
405
- readonly chainId: number;
406
- readonly minAmount: string;
407
- readonly owner: string;
408
- } | {
409
- readonly kind: "nativeBalanceGte";
410
- readonly chainId: number;
411
- readonly minAmount: string;
412
- readonly owner: string;
413
- } | {
414
- readonly kind: "call";
415
- readonly chainId: number;
416
- readonly value: string;
417
- readonly to: string;
418
- readonly calldata: string;
419
- readonly comparator: "gte" | "eq" | "lte";
420
- }, never>, never>;
421
366
  declare const Erc20BalanceDeltaGteSpecSchema: Schema.Struct<{
422
367
  kind: Schema.Literal<["erc20BalanceDeltaGte"]>;
423
368
  chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
@@ -461,137 +406,11 @@ declare const AssertionSpecSchema: Schema.Union<[Schema.Struct<{
461
406
  owner: Schema.Union<[Schema.refine<string, typeof Schema.String>, Schema.Literal<["escrow", "delivery"]>]>;
462
407
  minDelta: Schema.filter<typeof Schema.String>;
463
408
  }>]>;
464
- declare const ContinuationPlanSchema: Schema.Struct<{
465
- chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
466
- nextFlow: Schema.Struct<{
467
- version: Schema.Literal<[1]>;
468
- id: typeof Schema.String;
469
- chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
470
- inputs: Schema.Array$<Schema.Union<[Schema.Struct<{
471
- name: typeof Schema.String;
472
- resource: Schema.transform<Schema.Union<[Schema.Struct<{
473
- kind: Schema.Literal<["native"]>;
474
- chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
475
- }>, Schema.Struct<{
476
- kind: Schema.Literal<["erc20"]>;
477
- token: Schema.refine<string, typeof Schema.String>;
478
- chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
479
- }>]>, Schema.SchemaClass<{
480
- readonly kind: "native";
481
- readonly chainId: number;
482
- } | {
483
- readonly token: string;
484
- readonly kind: "erc20";
485
- readonly chainId: number;
486
- }, {
487
- readonly kind: "native";
488
- readonly chainId: number;
489
- } | {
490
- readonly token: string;
491
- readonly kind: "erc20";
492
- readonly chainId: number;
493
- }, never>>;
494
- }>, Schema.Struct<{
495
- name: typeof Schema.String;
496
- type: Schema.Literal<["uint8", "uint16", "uint32", "uint64", "uint128", "uint256", "int128", "int256", "address", "bool", "bytes", "bytes4", "bytes32", "string"]>;
497
- }>]>>;
498
- nodes: Schema.Array$<Schema.Struct<{
499
- id: Schema.filter<typeof Schema.String>;
500
- op: typeof Schema.String;
501
- bind: Schema.optionalWith<Schema.Record$<typeof Schema.String, Schema.Union<[Schema.Struct<{
502
- $ref: Schema.filter<typeof Schema.String>;
503
- }>, Schema.Struct<{
504
- kind: Schema.Literal<["uint8", "uint16", "uint32", "uint64", "uint128", "uint256", "int128", "int256", "address", "bool", "bytes", "bytes4", "bytes32", "string"]>;
505
- value: typeof Schema.String;
506
- }>]>>, {
507
- default: () => {};
508
- }>;
509
- config: Schema.optionalWith<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>, {
510
- default: () => {};
511
- }>;
512
- guards: Schema.optional<Schema.Array$<Schema.TypeLiteral<{
513
- kind: typeof Schema.String;
514
- }, readonly [{
515
- readonly key: typeof Schema.String;
516
- readonly value: typeof Schema.Unknown;
517
- }]>>>;
518
- }>>;
519
- lineage: Schema.optional<Schema.Struct<{
520
- journeyId: Schema.filter<typeof Schema.String>;
521
- parentRequestId: Schema.filter<typeof Schema.String>;
522
- }>>;
523
- }>;
524
- check: Schema.transformOrFail<Schema.Union<[Schema.Struct<{
525
- kind: Schema.Literal<["erc20BalanceGte"]>;
526
- chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
527
- token: Schema.refine<string, typeof Schema.String>;
528
- owner: Schema.refine<string, typeof Schema.String>;
529
- minAmount: Schema.filter<typeof Schema.String>;
530
- }>, Schema.Struct<{
531
- kind: Schema.Literal<["nativeBalanceGte"]>;
532
- chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
533
- owner: Schema.refine<string, typeof Schema.String>;
534
- minAmount: Schema.filter<typeof Schema.String>;
535
- }>, Schema.Struct<{
536
- kind: Schema.Literal<["call"]>;
537
- chainId: Schema.filter<Schema.filter<typeof Schema.Number>>;
538
- to: Schema.refine<string, typeof Schema.String>;
539
- calldata: Schema.refine<string, typeof Schema.String>;
540
- comparator: Schema.Literal<["gte", "eq", "lte"]>;
541
- value: Schema.filter<typeof Schema.String>;
542
- }>]>, Schema.SchemaClass<{
543
- readonly token: string;
544
- readonly kind: "erc20BalanceGte";
545
- readonly chainId: number;
546
- readonly minAmount: string;
547
- readonly owner: string;
548
- } | {
549
- readonly kind: "nativeBalanceGte";
550
- readonly chainId: number;
551
- readonly minAmount: string;
552
- readonly owner: string;
553
- } | {
554
- readonly kind: "call";
555
- readonly chainId: number;
556
- readonly value: string;
557
- readonly to: string;
558
- readonly calldata: string;
559
- readonly comparator: "gte" | "eq" | "lte";
560
- }, {
561
- readonly token: string;
562
- readonly kind: "erc20BalanceGte";
563
- readonly chainId: number;
564
- readonly minAmount: string;
565
- readonly owner: string;
566
- } | {
567
- readonly kind: "nativeBalanceGte";
568
- readonly chainId: number;
569
- readonly minAmount: string;
570
- readonly owner: string;
571
- } | {
572
- readonly kind: "call";
573
- readonly chainId: number;
574
- readonly value: string;
575
- readonly to: string;
576
- readonly calldata: string;
577
- readonly comparator: "gte" | "eq" | "lte";
578
- }, never>, never>;
579
- validity: Schema.Struct<{
580
- expiresAtMs: Schema.filter<Schema.filter<typeof Schema.Number>>;
581
- }>;
582
- correlationId: Schema.optional<typeof Schema.String>;
583
- }>;
584
409
  type ContinuationOutcome = typeof ContinuationOutcomeSchema.Type;
585
410
  type ContinuationIntent = typeof ContinuationIntentSchema.Type;
586
411
  type Phase1Artifact = typeof Phase1ArtifactSchema.Type;
587
- type Check = typeof CheckSchema.Type;
588
412
  type AssertionSpec = typeof AssertionSpecSchema.Type;
589
- type ContinuationPlan = typeof ContinuationPlanSchema.Type;
590
413
  declare const settledOutcome: (intent: ContinuationIntent) => ContinuationOutcome;
591
- type CheckComparator = 'gte' | 'eq' | 'lte';
592
- declare const isGTECheck: (check: Check) => boolean;
593
- declare const isLTECheck: (check: Check) => boolean;
594
- declare const isEQCheck: (check: Check) => boolean;
595
414
 
596
415
  declare const Bytes32HexSchema: Schema.filter<typeof Schema.String>;
597
416
  declare const AssertedErc20BalanceGteSpecSchema: Schema.Struct<{
@@ -1443,29 +1262,6 @@ declare const SettlementEscrowZod: z.ZodObject<{
1443
1262
  refund: z.ZodString;
1444
1263
  expiresAtMs: z.ZodNumber;
1445
1264
  }, z.core.$strip>;
1446
- declare const CheckZod: z.ZodDiscriminatedUnion<[z.ZodObject<{
1447
- kind: z.ZodLiteral<"erc20BalanceGte">;
1448
- chainId: z.ZodNumber;
1449
- token: z.ZodString;
1450
- owner: z.ZodString;
1451
- minAmount: z.ZodString;
1452
- }, z.core.$strip>, z.ZodObject<{
1453
- kind: z.ZodLiteral<"nativeBalanceGte">;
1454
- chainId: z.ZodNumber;
1455
- owner: z.ZodString;
1456
- minAmount: z.ZodString;
1457
- }, z.core.$strip>, z.ZodObject<{
1458
- kind: z.ZodLiteral<"call">;
1459
- chainId: z.ZodNumber;
1460
- to: z.ZodString;
1461
- calldata: z.ZodString;
1462
- comparator: z.ZodEnum<{
1463
- gte: "gte";
1464
- eq: "eq";
1465
- lte: "lte";
1466
- }>;
1467
- value: z.ZodString;
1468
- }, z.core.$strip>], "kind">;
1469
1265
  declare const AssertionSpecZod: z.ZodDiscriminatedUnion<[z.ZodObject<{
1470
1266
  kind: z.ZodLiteral<"erc20BalanceGte">;
1471
1267
  chainId: z.ZodNumber;
@@ -1783,37 +1579,6 @@ declare const VerificationDescriptorZod: z.ZodObject<{
1783
1579
  }, z.core.$strip>;
1784
1580
  type AssertedPredicateWire = z.infer<typeof AssertedPredicateZod>;
1785
1581
  type VerificationDescriptorWire = z.infer<typeof VerificationDescriptorZod>;
1786
- declare const ContinuationPlanZod: z.ZodObject<{
1787
- chainId: z.ZodNumber;
1788
- nextFlow: z.ZodUnknown;
1789
- check: z.ZodDiscriminatedUnion<[z.ZodObject<{
1790
- kind: z.ZodLiteral<"erc20BalanceGte">;
1791
- chainId: z.ZodNumber;
1792
- token: z.ZodString;
1793
- owner: z.ZodString;
1794
- minAmount: z.ZodString;
1795
- }, z.core.$strip>, z.ZodObject<{
1796
- kind: z.ZodLiteral<"nativeBalanceGte">;
1797
- chainId: z.ZodNumber;
1798
- owner: z.ZodString;
1799
- minAmount: z.ZodString;
1800
- }, z.core.$strip>, z.ZodObject<{
1801
- kind: z.ZodLiteral<"call">;
1802
- chainId: z.ZodNumber;
1803
- to: z.ZodString;
1804
- calldata: z.ZodString;
1805
- comparator: z.ZodEnum<{
1806
- gte: "gte";
1807
- eq: "eq";
1808
- lte: "lte";
1809
- }>;
1810
- value: z.ZodString;
1811
- }, z.core.$strip>], "kind">;
1812
- validity: z.ZodObject<{
1813
- expiresAtMs: z.ZodNumber;
1814
- }, z.core.$strip>;
1815
- correlationId: z.ZodOptional<z.ZodString>;
1816
- }, z.core.$strip>;
1817
1582
  declare const SettlementZod: z.ZodObject<{
1818
1583
  escrow: z.ZodOptional<z.ZodObject<{
1819
1584
  chainId: z.ZodNumber;
@@ -1825,37 +1590,6 @@ declare const SettlementZod: z.ZodObject<{
1825
1590
  refund: z.ZodString;
1826
1591
  expiresAtMs: z.ZodNumber;
1827
1592
  }, z.core.$strip>>;
1828
- continuation: z.ZodOptional<z.ZodObject<{
1829
- chainId: z.ZodNumber;
1830
- nextFlow: z.ZodUnknown;
1831
- check: z.ZodDiscriminatedUnion<[z.ZodObject<{
1832
- kind: z.ZodLiteral<"erc20BalanceGte">;
1833
- chainId: z.ZodNumber;
1834
- token: z.ZodString;
1835
- owner: z.ZodString;
1836
- minAmount: z.ZodString;
1837
- }, z.core.$strip>, z.ZodObject<{
1838
- kind: z.ZodLiteral<"nativeBalanceGte">;
1839
- chainId: z.ZodNumber;
1840
- owner: z.ZodString;
1841
- minAmount: z.ZodString;
1842
- }, z.core.$strip>, z.ZodObject<{
1843
- kind: z.ZodLiteral<"call">;
1844
- chainId: z.ZodNumber;
1845
- to: z.ZodString;
1846
- calldata: z.ZodString;
1847
- comparator: z.ZodEnum<{
1848
- gte: "gte";
1849
- eq: "eq";
1850
- lte: "lte";
1851
- }>;
1852
- value: z.ZodString;
1853
- }, z.core.$strip>], "kind">;
1854
- validity: z.ZodObject<{
1855
- expiresAtMs: z.ZodNumber;
1856
- }, z.core.$strip>;
1857
- correlationId: z.ZodOptional<z.ZodString>;
1858
- }, z.core.$strip>>;
1859
1593
  }, z.core.$strip>;
1860
1594
  type ResourcePort = z.infer<typeof ResourcePortZod>;
1861
1595
  type HandlePort = z.infer<typeof HandlePortZod>;
@@ -1873,7 +1607,6 @@ type ManifestPrecondition = z.infer<typeof ManifestPreconditionZod>;
1873
1607
  type ComposeManifest = z.infer<typeof ComposeManifestZod>;
1874
1608
  type SettlementEscrowWire = z.infer<typeof SettlementEscrowZod>;
1875
1609
  type SettlementWire = z.infer<typeof SettlementZod>;
1876
- type ContinuationPlanWire = z.infer<typeof ContinuationPlanZod>;
1877
1610
 
1878
1611
  type SimulationPolicy = 'strict' | 'allow-revert';
1879
1612
  /**
@@ -2312,9 +2045,9 @@ declare const foldChainCapabilities: <R>(caps: ChainCapabilities, cases: {
2312
2045
  * check pass 1e12 too easily. The check must be authored as
2313
2046
  * `erc20BalanceGte` of the facade; `reason` says so.
2314
2047
  *
2315
- * Consumers (the `CheckSchema` / `AssertedPredicateSchema` decodes and
2316
- * compose-core's derive backstop) are adapters over this result, so the unit
2317
- * rule lives in one place and the fold's exhaustiveness reaches every site.
2048
+ * Consumers (the `AssertedPredicateSchema` decode and compose-core's derive
2049
+ * backstop) are adapters over this result, so the unit rule lives in one place
2050
+ * and the fold's exhaustiveness reaches every site.
2318
2051
  */
2319
2052
  type NativeCheckPolicy = {
2320
2053
  readonly kind: 'keep';
@@ -2835,4 +2568,4 @@ declare const foldMaterialiserMetadata: <R>(meta: MaterialiserMetadata, cases: {
2835
2568
  readonly runtime: () => R;
2836
2569
  }) => R;
2837
2570
 
2838
- export { ARC_CHAIN_ID, ARC_NATIVE_ERC20, ARC_NATIVE_SCALE, type Amount, type AppliedGuard, AppliedGuardSchema, type ApprovalEntry, AssertedErc20BalanceGteSpecSchema, AssertedNativeBalanceGteSpecSchema, type AssertedPredicate, AssertedPredicateSchema, type AssertedPredicateWire, AssertedPredicateZod, type AssertionOwner, AssertionOwnerSchema, type AssertionSpec, AssertionSpecSchema, type AssertionSpecWire, AssertionSpecZod, type Availability, type BindValue, BindValueSchema, Bytes32HexSchema, COMPOSER_SDK_VERSION_HEADER, COMPOSE_VERSION_HEADER, CONTINUATION_COMMITMENT_OP_ID, type Call, CallCheckSpecSchema, CallSchema, type ChainCapabilities, type Check, type CheckComparator, CheckSchema, CheckZod, type ComposeAction, type ComposeCompilePartialData, type ComposeCompileRequest, type ComposeCompileResult, type ComposeCompileSuccessData, type ComposeError, type ComposeErrorKind, type ComposeFee, type ComposeFill, type ComposeManifest, ComposeManifestZod, type ComposeRouteErrorKind, type ComposeRouteRequest, type ComposeRun, type ComposeTransactionRequest, type ComposeUserProgramSimulation, type ComposeVersion, type ConsumedOutput, type ContextKey, type ContinuationIntent, ContinuationIntentSchema, type ContinuationOutcome, ContinuationOutcomeSchema, type ContinuationPlan, ContinuationPlanSchema, type ContinuationPlanWire, ContinuationPlanZod, type Delivery, EVMAddressString, EVM_NATIVE_SENTINEL, type Erc20AllowancePrecondition, type Erc20AllowanceRequirement, Erc20BalanceDeltaGteSpecSchema, Erc20BalanceGteSpecSchema, type Erc20BalancePrecondition, type Erc20BalanceRequirement, type Estimate, type EstimateBasis, type FailedPreparedOp, type FlashloanMaterialiserInput, type Flow, type FlowInput, FlowInputSchema, FlowSchema, type GenericComposeError, type GenericComposeErrorKind, type GuardCompatibility, GuardCompatibilityZod, type GuardSelector, GuardSelectorZod, HANDLE_UNITS, type HandleInput, HandleInputSchema, type HandlePort, HandlePortZod, type HandleUnits, HandleUnitsZod, HexStringSchema, InputPortZod, type InputSpec, IntegerString, type Lineage, LineageSchema, type LiteralBinding, LiteralBindingSchema, type ManifestGuard, ManifestGuardZod, type ManifestMaterialiser, ManifestMaterialiserZod, type ManifestOperation, ManifestOperationZod, type ManifestPrecondition, ManifestPreconditionZod, type MaterialiserConfigOf, type MaterialiserInput, type MaterialiserInputBase, type MaterialiserInputOf, type MaterialiserMetadata, type MaterialiserResolution, type Minimum, type MinimumBasis, NativeBalanceDeltaGteSpecSchema, NativeBalanceGteSpecSchema, type NativeBalancePrecondition, type NativeBalanceRequirement, type NativeCheckPolicy, type NativeErc20, type OpInputPort, type OpOutputPort, type Output, type OutputAmount, type OutputFamilyPort, OutputPortZod, type Outputs, PROVIDER_KIND, type ParsedRef, type Phase1Artifact, Phase1ArtifactSchema, type Port, type Precondition, type PreconditionBase, type PreconditionConfigOf, type PreconditionOf, type PreparationComposeError, type PriceImpact, type ProviderKindName, RESERVED_REF_SCOPES, type Ref, type RefBuilder, type RefPath, RefSchema, type RefScope, type Resource, type ResourceInput, ResourceInputSchema, type ResourceOutputPort, ResourceOutputPortZod, type ResourcePort, ResourcePortZod, ResourceSchema, type RouteAmount, type RouteAmountAll, type RouteAmountExact, SIMULATE_MAX_REQUIREMENTS, SIMULATE_MAX_TRACKED_BALANCES, STATIC_SOL_TYPES, type SettlementEscrowWire, type SettlementWire, SettlementZod, type SimulateBalanceEntry, type SimulateOkResult, type SimulateRequest, type SimulateResult, type SimulateRevertDecodeResult, type SimulateRevertResult, type SimulateSetupErrorResult, type SimulationPolicy, type SimulationRevert, type SimulationRevertComposeError, type SlotFinderRequirement, type SolType, SolTypeSchema, type SpendEntry, type StaticSolType, StaticSolTypeZod, type SweepTo, TEMPO_CHAIN_ID, TEMPO_NATIVE_ERC20, type TerminalOutput, type TrackedBalance, UuidSchema, type VerificationDescriptor, VerificationDescriptorSchema, type VerificationDescriptorWire, VerificationDescriptorZod, type VersionCompatibility, canonicalAssertedPredicate, canonicalNativeAddress, checkCompatibility, copy, erc20, erc20Allowance, erc20Balance, erc20Resource, erc20Token, expandOutputPorts, familySize, flowInputMode, flowInputResource, flowInputType, foldChainCapabilities, foldMaterialiserMetadata, foldRef, foldResource, getChainCapabilities, handle, hasErc20CanonicalNative, instancePortName, isAsErc20Chain, isContextKey, isEQCheck, isERC20Resource, isErc20AllowancePrecondition, isErc20BalancePrecondition, isFutureResourceOutput, isGTECheck, isHandlePort, isLTECheck, isMaterialiserInput, isMsgValueNative, isNativeAddressForChain, isNativeBalancePrecondition, isNativeResource, isOutputFamily, isRef, isResourceInput, isResourceOutputPort, isResourcePort, isStaticSolType, linear, native, nativeBalance, nativeCheckPolicy, nativeResource, normalizeNativeTokenAddress, normalizeResource, opHandle, parseRef, parseVersion, providerKindByName, providerKindNames, readResource, ref, refKey, resource, resourceKey, resourceOutput, resourceToken, resourcesEqual, settledOutcome };
2571
+ export { ARC_CHAIN_ID, ARC_NATIVE_ERC20, ARC_NATIVE_SCALE, type Amount, type AppliedGuard, AppliedGuardSchema, type ApprovalEntry, AssertedErc20BalanceGteSpecSchema, AssertedNativeBalanceGteSpecSchema, type AssertedPredicate, AssertedPredicateSchema, type AssertedPredicateWire, AssertedPredicateZod, type AssertionOwner, AssertionOwnerSchema, type AssertionSpec, AssertionSpecSchema, type AssertionSpecWire, AssertionSpecZod, type Availability, type BindValue, BindValueSchema, Bytes32HexSchema, COMPOSER_SDK_VERSION_HEADER, COMPOSE_VERSION_HEADER, CONTINUATION_COMMITMENT_OP_ID, type Call, CallCheckSpecSchema, CallSchema, type ChainCapabilities, type ComposeAction, type ComposeCompilePartialData, type ComposeCompileRequest, type ComposeCompileResult, type ComposeCompileSuccessData, type ComposeError, type ComposeErrorKind, type ComposeFee, type ComposeFill, type ComposeManifest, ComposeManifestZod, type ComposeRouteErrorKind, type ComposeRouteRequest, type ComposeRun, type ComposeTransactionRequest, type ComposeUserProgramSimulation, type ComposeVersion, type ConsumedOutput, type ContextKey, type ContinuationIntent, ContinuationIntentSchema, type ContinuationOutcome, ContinuationOutcomeSchema, type Delivery, EVMAddressString, EVM_NATIVE_SENTINEL, type Erc20AllowancePrecondition, type Erc20AllowanceRequirement, Erc20BalanceDeltaGteSpecSchema, Erc20BalanceGteSpecSchema, type Erc20BalancePrecondition, type Erc20BalanceRequirement, type Estimate, type EstimateBasis, type FailedPreparedOp, type FlashloanMaterialiserInput, type Flow, type FlowInput, FlowInputSchema, FlowSchema, type GenericComposeError, type GenericComposeErrorKind, type GuardCompatibility, GuardCompatibilityZod, type GuardSelector, GuardSelectorZod, HANDLE_UNITS, type HandleInput, HandleInputSchema, type HandlePort, HandlePortZod, type HandleUnits, HandleUnitsZod, HexStringSchema, InputPortZod, type InputSpec, IntegerString, type Lineage, LineageSchema, type LiteralBinding, LiteralBindingSchema, type ManifestGuard, ManifestGuardZod, type ManifestMaterialiser, ManifestMaterialiserZod, type ManifestOperation, ManifestOperationZod, type ManifestPrecondition, ManifestPreconditionZod, type MaterialiserConfigOf, type MaterialiserInput, type MaterialiserInputBase, type MaterialiserInputOf, type MaterialiserMetadata, type MaterialiserResolution, type Minimum, type MinimumBasis, NativeBalanceDeltaGteSpecSchema, NativeBalanceGteSpecSchema, type NativeBalancePrecondition, type NativeBalanceRequirement, type NativeCheckPolicy, type NativeErc20, type OpInputPort, type OpOutputPort, type Output, type OutputAmount, type OutputFamilyPort, OutputPortZod, type Outputs, PROVIDER_KIND, type ParsedRef, type Phase1Artifact, Phase1ArtifactSchema, type Port, type Precondition, type PreconditionBase, type PreconditionConfigOf, type PreconditionOf, type PreparationComposeError, type PriceImpact, type ProviderKindName, RESERVED_REF_SCOPES, type Ref, type RefBuilder, type RefPath, RefSchema, type RefScope, type Resource, type ResourceInput, ResourceInputSchema, type ResourceOutputPort, ResourceOutputPortZod, type ResourcePort, ResourcePortZod, ResourceSchema, type RouteAmount, type RouteAmountAll, type RouteAmountExact, SIMULATE_MAX_REQUIREMENTS, SIMULATE_MAX_TRACKED_BALANCES, STATIC_SOL_TYPES, type SettlementEscrowWire, type SettlementWire, SettlementZod, type SimulateBalanceEntry, type SimulateOkResult, type SimulateRequest, type SimulateResult, type SimulateRevertDecodeResult, type SimulateRevertResult, type SimulateSetupErrorResult, type SimulationPolicy, type SimulationRevert, type SimulationRevertComposeError, type SlotFinderRequirement, type SolType, SolTypeSchema, type SpendEntry, type StaticSolType, StaticSolTypeZod, type SweepTo, TEMPO_CHAIN_ID, TEMPO_NATIVE_ERC20, type TerminalOutput, type TrackedBalance, UuidSchema, type VerificationDescriptor, VerificationDescriptorSchema, type VerificationDescriptorWire, VerificationDescriptorZod, type VersionCompatibility, canonicalAssertedPredicate, canonicalNativeAddress, checkCompatibility, copy, erc20, erc20Allowance, erc20Balance, erc20Resource, erc20Token, expandOutputPorts, familySize, flowInputMode, flowInputResource, flowInputType, foldChainCapabilities, foldMaterialiserMetadata, foldRef, foldResource, getChainCapabilities, handle, hasErc20CanonicalNative, instancePortName, isAsErc20Chain, isContextKey, isERC20Resource, isErc20AllowancePrecondition, isErc20BalancePrecondition, isFutureResourceOutput, isHandlePort, isMaterialiserInput, isMsgValueNative, isNativeAddressForChain, isNativeBalancePrecondition, isNativeResource, isOutputFamily, isRef, isResourceInput, isResourceOutputPort, isResourcePort, isStaticSolType, linear, native, nativeBalance, nativeCheckPolicy, nativeResource, normalizeNativeTokenAddress, normalizeResource, opHandle, parseRef, parseVersion, providerKindByName, providerKindNames, readResource, ref, refKey, resource, resourceKey, resourceOutput, resourceToken, resourcesEqual, settledOutcome };