@xyo-network/xl1-protocol 1.22.14 → 1.22.16
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/neutral/index.mjs +20 -13
- package/dist/neutral/index.mjs.map +1 -1
- package/dist/neutral/model/Context/ChainContext.zod.d.ts +0 -63
- package/dist/neutral/model/Context/ChainContext.zod.d.ts.map +1 -1
- package/dist/neutral/model/Context/HeadContext.d.ts +4 -0
- package/dist/neutral/model/Context/HeadContext.d.ts.map +1 -0
- package/dist/neutral/model/Context/HeadContext.zod.d.ts +75 -0
- package/dist/neutral/model/Context/HeadContext.zod.d.ts.map +1 -0
- package/dist/neutral/model/Context/index.d.ts +2 -0
- package/dist/neutral/model/Context/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/model/Context/ChainContext.zod.ts +3 -8
- package/src/model/Context/HeadContext.ts +5 -0
- package/src/model/Context/HeadContext.zod.ts +10 -0
- package/src/model/Context/index.ts +2 -0
package/dist/neutral/index.mjs
CHANGED
|
@@ -288,7 +288,7 @@ import { zodIsFactory as zodIsFactory18 } from "@xylabs/zod";
|
|
|
288
288
|
import { BoundWitnessSchema } from "@xyo-network/boundwitness-model";
|
|
289
289
|
import { isHashMeta as isHashMeta2 } from "@xyo-network/payload-model";
|
|
290
290
|
import { isSchemaPayload, SchemaSchema } from "@xyo-network/schema-payload-plugin";
|
|
291
|
-
import { z as
|
|
291
|
+
import { z as z40 } from "zod";
|
|
292
292
|
|
|
293
293
|
// src/payload/elevatable/Bridge/BridgeDestinationObservation.ts
|
|
294
294
|
import { AsObjectFactory, HexZod as HexZod2 } from "@xylabs/sdk-js";
|
|
@@ -634,6 +634,9 @@ var BlockContextZod = z15.intersection(
|
|
|
634
634
|
);
|
|
635
635
|
|
|
636
636
|
// src/model/Context/ChainContext.zod.ts
|
|
637
|
+
import z38 from "zod";
|
|
638
|
+
|
|
639
|
+
// src/model/Context/HeadContext.zod.ts
|
|
637
640
|
import z37 from "zod";
|
|
638
641
|
|
|
639
642
|
// src/zod/ArrayBuffer.ts
|
|
@@ -1552,29 +1555,32 @@ var TransferPairZod = z36.tuple([
|
|
|
1552
1555
|
AddressZod5
|
|
1553
1556
|
]);
|
|
1554
1557
|
|
|
1555
|
-
// src/model/Context/
|
|
1556
|
-
var
|
|
1558
|
+
// src/model/Context/HeadContext.zod.ts
|
|
1559
|
+
var HeadContextBaseZod = z37.object(
|
|
1557
1560
|
{ head: BlockBoundWitnessWithHashMetaZod }
|
|
1558
1561
|
);
|
|
1559
|
-
var
|
|
1560
|
-
|
|
1562
|
+
var HeadContextZod = z37.intersection(CachingContextZod, HeadContextBaseZod);
|
|
1563
|
+
|
|
1564
|
+
// src/model/Context/ChainContext.zod.ts
|
|
1565
|
+
var ChainContextReadZod = z38.intersection(
|
|
1566
|
+
HeadContextBaseZod,
|
|
1561
1567
|
BlockContextReadZod
|
|
1562
1568
|
);
|
|
1563
|
-
var ChainContextWriteZod =
|
|
1564
|
-
|
|
1569
|
+
var ChainContextWriteZod = z38.intersection(
|
|
1570
|
+
HeadContextBaseZod,
|
|
1565
1571
|
BlockContextWriteZod
|
|
1566
1572
|
);
|
|
1567
|
-
var ChainContextZod =
|
|
1573
|
+
var ChainContextZod = z38.intersection(
|
|
1568
1574
|
ChainContextReadZod,
|
|
1569
1575
|
ChainContextWriteZod
|
|
1570
1576
|
);
|
|
1571
1577
|
|
|
1572
1578
|
// src/model/StepIdentity.ts
|
|
1573
1579
|
import { isUndefined } from "@xylabs/sdk-js";
|
|
1574
|
-
import { z as
|
|
1575
|
-
var StepIdentityZod =
|
|
1580
|
+
import { z as z39 } from "zod";
|
|
1581
|
+
var StepIdentityZod = z39.object({
|
|
1576
1582
|
block: XL1BlockNumberZod.describe("The block number at which the step occurs"),
|
|
1577
|
-
step:
|
|
1583
|
+
step: z39.number().int().nonnegative().describe("The index of the step into the StepSize array")
|
|
1578
1584
|
});
|
|
1579
1585
|
function tryParseInt(value) {
|
|
1580
1586
|
if (value === "") return void 0;
|
|
@@ -1616,7 +1622,7 @@ var AllowedBlockPayloadSchemas = [
|
|
|
1616
1622
|
TimeSchema,
|
|
1617
1623
|
TransferSchema
|
|
1618
1624
|
];
|
|
1619
|
-
var AllowedBlockPayloadSchemaZod =
|
|
1625
|
+
var AllowedBlockPayloadSchemaZod = z40.enum(AllowedBlockPayloadSchemas);
|
|
1620
1626
|
var isAllowedBlockPayloadSchema = zodIsFactory18(AllowedBlockPayloadSchemaZod);
|
|
1621
1627
|
var isAllowedBlockPayload = (value) => {
|
|
1622
1628
|
return isTransfer(value) || isBridgeDestinationObservation(value) || isBridgeIntent(value) || isBridgeSourceObservation(value) || isChainStakeIntent(value) || isHashPayload(value) || isSchemaPayload(value) || isTimePayload(value) || isTransactionBoundWitness(value);
|
|
@@ -1786,7 +1792,6 @@ export {
|
|
|
1786
1792
|
CachingContextZod,
|
|
1787
1793
|
CaveatTypesZod,
|
|
1788
1794
|
CaveatsZod,
|
|
1789
|
-
ChainContextBaseZod,
|
|
1790
1795
|
ChainContextReadZod,
|
|
1791
1796
|
ChainContextWriteZod,
|
|
1792
1797
|
ChainContextZod,
|
|
@@ -1814,6 +1819,8 @@ export {
|
|
|
1814
1819
|
FemtoXL1MaxValue,
|
|
1815
1820
|
FinalizationViewerMoniker,
|
|
1816
1821
|
HashSchema,
|
|
1822
|
+
HeadContextBaseZod,
|
|
1823
|
+
HeadContextZod,
|
|
1817
1824
|
HydratedBlockStateValidationError,
|
|
1818
1825
|
HydratedBlockValidationError,
|
|
1819
1826
|
HydratedBlockWithHashMetaZod,
|