@xyo-network/xl1-protocol 1.14.13 → 1.14.15

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.
Files changed (66) hide show
  1. package/dist/neutral/block/AllowedBlockPayload.d.ts +3 -3
  2. package/dist/neutral/block/AllowedBlockPayload.d.ts.map +1 -1
  3. package/dist/neutral/index.mjs +269 -181
  4. package/dist/neutral/index.mjs.map +1 -1
  5. package/dist/neutral/model/BlockNumber/BlockNumber.d.ts +15 -5
  6. package/dist/neutral/model/BlockNumber/BlockNumber.d.ts.map +1 -1
  7. package/dist/neutral/model/BlockNumber/EthBlockNumber.d.ts +25 -5
  8. package/dist/neutral/model/BlockNumber/EthBlockNumber.d.ts.map +1 -1
  9. package/dist/neutral/model/BlockNumber/XL1BlockNumber.d.ts +25 -5
  10. package/dist/neutral/model/BlockNumber/XL1BlockNumber.d.ts.map +1 -1
  11. package/dist/neutral/model/BlockRange/BlockRange.d.ts +4 -4
  12. package/dist/neutral/model/BlockRange/EthBlockRange.d.ts +4 -4
  13. package/dist/neutral/model/BlockRange/Range.d.ts +5 -5
  14. package/dist/neutral/model/BlockRange/Range.d.ts.map +1 -1
  15. package/dist/neutral/model/BlockRange/XL1BlockRange.d.ts +4 -4
  16. package/dist/neutral/payload/elevatable/Time.d.ts.map +1 -1
  17. package/dist/neutral/payload/elevatable/TransferPayload.d.ts +0 -3
  18. package/dist/neutral/payload/elevatable/TransferPayload.d.ts.map +1 -1
  19. package/dist/neutral/zod/HydratedBlock.d.ts +213 -42
  20. package/dist/neutral/zod/HydratedBlock.d.ts.map +1 -1
  21. package/dist/neutral/zod/HydratedTransaction.d.ts +63 -63
  22. package/dist/neutral/zod/TransactionBoundWitness.d.ts +63 -63
  23. package/dist/neutral/zod/TransactionFees.d.ts +14 -14
  24. package/dist/neutral/zod/block/BlockBoundWitness.d.ts +345 -0
  25. package/dist/neutral/zod/block/BlockBoundWitness.d.ts.map +1 -0
  26. package/dist/neutral/zod/block/index.d.ts +4 -0
  27. package/dist/neutral/zod/block/index.d.ts.map +1 -0
  28. package/dist/neutral/zod/block/signed/SignedBlockBoundWitness.d.ts +103 -0
  29. package/dist/neutral/zod/block/signed/SignedBlockBoundWitness.d.ts.map +1 -0
  30. package/dist/neutral/zod/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts +179 -0
  31. package/dist/neutral/zod/block/signed/SignedBlockBoundWitnessWithHashMeta.d.ts.map +1 -0
  32. package/dist/neutral/zod/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts +216 -0
  33. package/dist/neutral/zod/block/signed/SignedBlockBoundWitnessWithStorageMeta.d.ts.map +1 -0
  34. package/dist/neutral/zod/block/signed/index.d.ts +4 -0
  35. package/dist/neutral/zod/block/signed/index.d.ts.map +1 -0
  36. package/dist/neutral/zod/block/unsigned/UnsignedBlockBoundWitness.d.ts +103 -0
  37. package/dist/neutral/zod/block/unsigned/UnsignedBlockBoundWitness.d.ts.map +1 -0
  38. package/dist/neutral/zod/block/unsigned/index.d.ts +2 -0
  39. package/dist/neutral/zod/block/unsigned/index.d.ts.map +1 -0
  40. package/dist/neutral/zod/index.d.ts +2 -1
  41. package/dist/neutral/zod/index.d.ts.map +1 -1
  42. package/dist/neutral/zod/payload/WithHashMetaish.d.ts +27 -0
  43. package/dist/neutral/zod/payload/WithHashMetaish.d.ts.map +1 -0
  44. package/dist/neutral/zod/payload/WithStorageMetaish.d.ts +30 -0
  45. package/dist/neutral/zod/payload/WithStorageMetaish.d.ts.map +1 -0
  46. package/dist/neutral/zod/payload/index.d.ts +3 -0
  47. package/dist/neutral/zod/payload/index.d.ts.map +1 -0
  48. package/package.json +22 -21
  49. package/src/payload/elevatable/Time.ts +1 -3
  50. package/src/payload/elevatable/TransferPayload.ts +1 -3
  51. package/src/zod/HydratedBlock.ts +17 -1
  52. package/src/zod/block/BlockBoundWitness.ts +48 -0
  53. package/src/zod/block/index.ts +3 -0
  54. package/src/zod/block/signed/SignedBlockBoundWitness.ts +17 -0
  55. package/src/zod/block/signed/SignedBlockBoundWitnessWithHashMeta.ts +29 -0
  56. package/src/zod/block/signed/SignedBlockBoundWitnessWithStorageMeta.ts +35 -0
  57. package/src/zod/block/signed/index.ts +3 -0
  58. package/src/zod/block/unsigned/UnsignedBlockBoundWitness.ts +17 -0
  59. package/src/zod/block/unsigned/index.ts +1 -0
  60. package/src/zod/index.ts +2 -1
  61. package/src/zod/payload/WithHashMetaish.ts +23 -0
  62. package/src/zod/payload/WithStorageMetaish.ts +23 -0
  63. package/src/zod/payload/index.ts +2 -0
  64. package/dist/neutral/zod/BlockBoundWitness.d.ts +0 -1011
  65. package/dist/neutral/zod/BlockBoundWitness.d.ts.map +0 -1
  66. package/src/zod/BlockBoundWitness.ts +0 -114
@@ -1 +0,0 @@
1
- {"version":3,"file":"BlockBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/zod/BlockBoundWitness.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AAKxB,eAAO,MAAM,0BAA0B;;;;;;iBAMrC,CAAA;AAEF,eAAO,MAAM,wBAAwB;;iBAAmC,CAAA;AAExE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;iBAEY,CAAA;AAE7C,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAA;AAEpE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;CAAqC,CAAA;AACrE,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4D,CAAA;AAC5F,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4D,CAAA;AAE5F,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;iBACb,CAAA;AAEhC,MAAM,MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAA;AAE5F,eAAO,MAAM,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BAA8D,CAAA;AAEpH,MAAM,MAAM,sCAAsC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yCAAyC,CAAC,CAAA;AAE9G,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;CAA0D,CAAA;AAC/G,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpD,CAAA;AACD,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGpD,CAAA"}
@@ -1,114 +0,0 @@
1
- import { HashZod } from '@xylabs/sdk-js'
2
- import {
3
- zodAsFactory, zodIsFactory, zodToFactory,
4
- } from '@xylabs/zod'
5
- import {
6
- BoundWitnessZod, SignedBoundWitnessZod, UnsignedBoundWitnessZod,
7
- } from '@xyo-network/boundwitness-model'
8
- import { HashMetaZod, StorageMetaZod } from '@xyo-network/payload-model'
9
- import * as z from 'zod'
10
-
11
- import { XL1BlockNumberZod } from '../model/index.ts'
12
- import { ChainZod } from './Chain.ts'
13
-
14
- export const BlockBoundWitnessFieldsZod = z.object({
15
- block: XL1BlockNumberZod,
16
- chain: ChainZod,
17
- previous: HashZod.nullable(),
18
- protocol: z.number().optional(),
19
- step_hashes: z.array(HashZod).optional(),
20
- })
21
-
22
- export const BlockBoundWitnessMetaZod = z.object({ $epoch: z.number() })
23
-
24
- export const BlockBoundWitnessZod = BoundWitnessZod
25
- .safeExtend(BlockBoundWitnessFieldsZod.shape)
26
- .safeExtend(BlockBoundWitnessMetaZod.shape)
27
-
28
- export type BlockBoundWitness = z.infer<typeof BlockBoundWitnessZod>
29
-
30
- export const isBlockBoundWitness = zodIsFactory(BlockBoundWitnessZod)
31
- export const asBlockBoundWitness = zodAsFactory(BlockBoundWitnessZod, 'asBlockBoundWitness')
32
- export const toBlockBoundWitness = zodToFactory(BlockBoundWitnessZod, 'toBlockBoundWitness')
33
-
34
- export const BlockBoundWitnessWithHashMetaZod = BlockBoundWitnessZod
35
- .safeExtend(HashMetaZod.shape)
36
-
37
- export type BlockBoundWitnessWithHashMeta = z.infer<typeof BlockBoundWitnessWithHashMetaZod>
38
-
39
- export const isBlockBoundWitnessWithHashMeta = zodIsFactory(BlockBoundWitnessWithHashMetaZod)
40
- export const asBlockBoundWitnessWithHashMeta = zodAsFactory(BlockBoundWitnessWithHashMetaZod, 'asBlockBoundWitnessWithHashMeta')
41
- export const toBlockBoundWitnessWithHashMeta = zodToFactory(BlockBoundWitnessWithHashMetaZod, 'toBlockBoundWitnessWithHashMeta')
42
-
43
- export const BlockBoundWitnessWithStorageMetaZod = BlockBoundWitnessZod
44
- .safeExtend(StorageMetaZod.shape)
45
-
46
- export type BlockBoundWitnessWithStorageMeta = z.infer<typeof BlockBoundWitnessWithStorageMetaZod>
47
-
48
- export const isBlockBoundWitnessWithStorageMeta = zodIsFactory(BlockBoundWitnessWithStorageMetaZod)
49
- export const asBlockBoundWitnessWithStorageMeta = zodAsFactory(BlockBoundWitnessWithStorageMetaZod, 'asBlockBoundWitnessWithStorageMeta')
50
- export const toBlockBoundWitnessWithStorageMeta = zodToFactory(BlockBoundWitnessWithStorageMetaZod, 'toBlockBoundWitnessWithStorageMeta')
51
-
52
- export const UnsignedBlockBoundWitnessZod = UnsignedBoundWitnessZod
53
- .safeExtend(BlockBoundWitnessFieldsZod.shape)
54
- .safeExtend(BlockBoundWitnessMetaZod.shape)
55
-
56
- export type UnsignedBlockBoundWitness = z.infer<typeof UnsignedBlockBoundWitnessZod>
57
-
58
- export const isUnsignedBlockBoundWitness = zodIsFactory(UnsignedBlockBoundWitnessZod)
59
- export const asUnsignedBlockBoundWitness = zodAsFactory(UnsignedBlockBoundWitnessZod, 'asUnsignedBlockBoundWitness')
60
- export const toUnsignedBlockBoundWitness = zodToFactory(UnsignedBlockBoundWitnessZod, 'toUnsignedBlockBoundWitness')
61
-
62
- export const UnsignedBlockBoundWitnessWithHashMetaZod = UnsignedBlockBoundWitnessZod.safeExtend(HashMetaZod.shape)
63
-
64
- export type UnsignedBlockBoundWitnessWithHashMeta = z.infer<typeof UnsignedBlockBoundWitnessWithHashMetaZod>
65
-
66
- export const isUnsignedBlockBoundWitnessWithHashMeta = zodIsFactory(UnsignedBlockBoundWitnessWithHashMetaZod)
67
- export const asUnsignedBlockBoundWitnessWithHashMeta = zodAsFactory(UnsignedBlockBoundWitnessWithHashMetaZod, 'asUnsignedBlockBoundWitnessWithHashMeta')
68
- export const toUnsignedBlockBoundWitnessWithHashMeta = zodToFactory(UnsignedBlockBoundWitnessWithHashMetaZod, 'toUnsignedBlockBoundWitnessWithHashMeta')
69
-
70
- export const UnsignedBlockBoundWitnessWithStorageMetaZod = UnsignedBlockBoundWitnessZod.safeExtend(StorageMetaZod.shape)
71
-
72
- export type UnsignedBlockBoundWitnessWithStorageMeta = z.infer<typeof UnsignedBlockBoundWitnessWithStorageMetaZod>
73
-
74
- export const isUnsignedBlockBoundWitnessWithStorageMeta = zodIsFactory(UnsignedBlockBoundWitnessWithStorageMetaZod)
75
- export const asUnsignedBlockBoundWitnessWithStorageMeta = zodAsFactory(
76
- UnsignedBlockBoundWitnessWithStorageMetaZod,
77
- 'asUnsignedBlockBoundWitnessWithStorageMeta',
78
- )
79
- export const toUnsignedBlockBoundWitnessWithStorageMeta = zodToFactory(
80
- UnsignedBlockBoundWitnessWithStorageMetaZod,
81
- 'toUnsignedBlockBoundWitnessWithStorageMeta',
82
- )
83
-
84
- export const SignedBlockBoundWitnessZod = SignedBoundWitnessZod
85
- .safeExtend(BlockBoundWitnessFieldsZod.shape)
86
- .safeExtend(BlockBoundWitnessMetaZod.shape)
87
-
88
- export type SignedBlockBoundWitness = z.infer<typeof SignedBlockBoundWitnessZod>
89
-
90
- export const isSignedBlockBoundWitness = zodIsFactory(SignedBlockBoundWitnessZod)
91
- export const asSignedBlockBoundWitness = zodAsFactory(SignedBlockBoundWitnessZod, 'asSignedBlockBoundWitness')
92
- export const toSignedBlockBoundWitness = zodToFactory(SignedBlockBoundWitnessZod, 'toSignedBlockBoundWitness')
93
-
94
- export const SignedBlockBoundWitnessWithHashMetaZod = SignedBlockBoundWitnessZod.safeExtend(HashMetaZod.shape)
95
-
96
- export type SignedBlockBoundWitnessWithHashMeta = z.infer<typeof SignedBlockBoundWitnessWithHashMetaZod>
97
-
98
- export const isSignedBlockBoundWitnessWithHashMeta = zodIsFactory(SignedBlockBoundWitnessWithHashMetaZod)
99
- export const asSignedBlockBoundWitnessWithHashMeta = zodAsFactory(SignedBlockBoundWitnessWithHashMetaZod, 'asSignedBlockBoundWitnessWithHashMeta')
100
- export const toSignedBlockBoundWitnessWithHashMeta = zodToFactory(SignedBlockBoundWitnessWithHashMetaZod, 'toSignedBlockBoundWitnessWithHashMeta')
101
-
102
- export const SignedBlockBoundWitnessWithStorageMetaZod = SignedBlockBoundWitnessZod.safeExtend(StorageMetaZod.shape)
103
-
104
- export type SignedBlockBoundWitnessWithStorageMeta = z.infer<typeof SignedBlockBoundWitnessWithStorageMetaZod>
105
-
106
- export const isSignedBlockBoundWitnessWithStorageMeta = zodIsFactory(SignedBlockBoundWitnessWithStorageMetaZod)
107
- export const asSignedBlockBoundWitnessWithStorageMeta = zodAsFactory(
108
- SignedBlockBoundWitnessWithStorageMetaZod,
109
- 'asSignedBlockBoundWitnessWithStorageMeta',
110
- )
111
- export const toSignedBlockBoundWitnessWithStorageMeta = zodToFactory(
112
- SignedBlockBoundWitnessWithStorageMetaZod,
113
- 'toSignedBlockBoundWitnessWithStorageMeta',
114
- )