@xyo-network/xl1-protocol 1.14.2 → 1.14.4

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.
@@ -1 +1 @@
1
- {"version":3,"file":"TransactionBoundWitness.d.ts","sourceRoot":"","sources":["../../../src/zod/TransactionBoundWitness.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAA;AASxB,eAAO,MAAM,aAAa;;iBAAoC,CAAA;AAC9D,eAAO,MAAM,WAAW;;iBAAoC,CAAA;AAC5D,eAAO,MAAM,gBAAgB;;;iBAAyD,CAAA;AACtF,eAAO,MAAM,eAAe;;iBAAuD,CAAA;AAEnF,eAAO,MAAM,kBAAkB;;;;;;;iBAA4C,CAAA;AAI3E,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;iBAIP,CAAA;AAEhC,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAA;AAEhF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;CAA2C,CAAA;AACjF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwE,CAAA;AAC9G,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwE,CAAA;AAE9G,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;;;;;;iBAIf,CAAA;AAEhC,MAAM,MAAM,+BAA+B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAA;AAEhG,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;CAAmD,CAAA;AACjG,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAwF,CAAA;AACtI,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;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I,eAAO,MAAM,4CAA4C;;;;;;;;;;;;;;;;;;;;;;iBAC7B,CAAA;AAE5B,MAAM,MAAM,yCAAyC,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4CAA4C,CAAC,CAAA;AAEpH,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;CAA6D,CAAA;AACrH,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvD,CAAA;AACD,eAAO,MAAM,2CAA2C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAGvD,CAAA;AAED,eAAO,MAAM,+CAA+C;;;;;;;;;;;;;;;;;;;;;;;iBAC7B,CAAA;AAE/B,MAAM,MAAM,4CAA4C,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+CAA+C,CAAC,CAAA;AAE1H,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;CAAgE,CAAA;AAC3H,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG1D,CAAA;AACD,eAAO,MAAM,8CAA8C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAG1D,CAAA"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/package.json",
3
3
  "name": "@xyo-network/xl1-protocol",
4
- "version": "1.14.2",
4
+ "version": "1.14.4",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -2,6 +2,7 @@ import { AddressZod } from '@xylabs/sdk-js'
2
2
  import {
3
3
  zodAsFactory, zodIsFactory, zodToFactory,
4
4
  } from '@xylabs/zod'
5
+ import { HashMetaZod, StorageMetaZod } from '@xyo-network/payload-model'
5
6
  import * as z from 'zod'
6
7
 
7
8
  import { BlockNumberZod } from '../model/index.ts'
@@ -18,25 +19,43 @@ export const BlockScriptsZod = z.object({ script: z.array(z.string()).optional()
18
19
 
19
20
  export const TransactionFeesZod = z.object({ fees: TransactionFeesHexZod })
20
21
 
21
- const TransactionBoundWitnessFields = z.object({ chain: ChainZod, from: AddressZod })
22
+ export const TransactionBoundWitnessIdentityFields = z.object({ chain: ChainZod, from: AddressZod })
22
23
 
23
- export const TransactionBoundWitnessZod = BoundWitnessZod
24
+ export const TransactionBoundWitnessFieldsZod = z.object()
24
25
  .extend(BlockDurationZod.shape)
25
26
  .extend(TransactionFeesZod.shape)
26
- .extend(TransactionBoundWitnessFields.shape)
27
+ .extend(TransactionBoundWitnessIdentityFields.shape)
27
28
  .extend(BlockScriptsZod.shape)
28
29
 
30
+ export const TransactionBoundWitnessZod = BoundWitnessZod
31
+ .extend(TransactionBoundWitnessFieldsZod.shape)
32
+
29
33
  export type TransactionBoundWitness = z.infer<typeof TransactionBoundWitnessZod>
30
34
 
31
35
  export const isTransactionBoundWitness = zodIsFactory(TransactionBoundWitnessZod)
32
36
  export const asTransactionBoundWitness = zodAsFactory(TransactionBoundWitnessZod, 'asTransactionBoundWitness')
33
37
  export const toTransactionBoundWitness = zodToFactory(TransactionBoundWitnessZod, 'toTransactionBoundWitness')
34
38
 
39
+ export const TransactionBoundWitnessWithHashMetaZod = TransactionBoundWitnessZod
40
+ .extend(HashMetaZod.shape)
41
+
42
+ export type TransactionBoundWitnessWithHashMeta = z.infer<typeof TransactionBoundWitnessWithHashMetaZod>
43
+
44
+ export const isTransactionBoundWitnessWithHashMeta = zodIsFactory(TransactionBoundWitnessWithHashMetaZod)
45
+ export const asTransactionBoundWitnessWithHashMeta = zodAsFactory(TransactionBoundWitnessWithHashMetaZod, 'asTransactionBoundWitnessWithHashMeta')
46
+ export const toTransactionBoundWitnessWithHashMeta = zodToFactory(TransactionBoundWitnessWithHashMetaZod, 'toTransactionBoundWitnessWithHashMeta')
47
+
48
+ export const TransactionBoundWitnessWithStorageMetaZod = TransactionBoundWitnessZod
49
+ .extend(StorageMetaZod.shape)
50
+
51
+ export type TransactionBoundWitnessWithStorageMeta = z.infer<typeof TransactionBoundWitnessWithStorageMetaZod>
52
+
53
+ export const isTransactionBoundWitnessWithStorageMeta = zodIsFactory(TransactionBoundWitnessWithStorageMetaZod)
54
+ export const asTransactionBoundWitnessWithStorageMeta = zodAsFactory(TransactionBoundWitnessWithStorageMetaZod, 'asTransactionBoundWitnessWithStorageMeta')
55
+ export const toTransactionBoundWitnessWithStorageMeta = zodToFactory(TransactionBoundWitnessWithStorageMetaZod, 'toTransactionBoundWitnessWithStorageMeta')
56
+
35
57
  export const UnsignedTransactionBoundWitnessZod = UnsignedBoundWitnessZod
36
- .extend(BlockDurationZod.shape)
37
- .extend(TransactionFeesZod.shape)
38
- .extend(TransactionBoundWitnessFields.shape)
39
- .extend(BlockScriptsZod.shape)
58
+ .extend(TransactionBoundWitnessFieldsZod.shape)
40
59
 
41
60
  export type UnsignedTransactionBoundWitness = z.infer<typeof UnsignedTransactionBoundWitnessZod>
42
61
 
@@ -44,14 +63,70 @@ export const isUnsignedTransactionBoundWitness = zodIsFactory(UnsignedTransactio
44
63
  export const asUnsignedTransactionBoundWitness = zodAsFactory(UnsignedTransactionBoundWitnessZod, 'asUnsignedTransactionBoundWitness')
45
64
  export const toUnsignedTransactionBoundWitness = zodToFactory(UnsignedTransactionBoundWitnessZod, 'toUnsignedTransactionBoundWitness')
46
65
 
66
+ export const UnsignedTransactionBoundWitnessWithHashMetaZod = UnsignedTransactionBoundWitnessZod.extend(HashMetaZod.shape)
67
+
68
+ export type UnsignedTransactionBoundWitnessWithHashMeta = z.infer<typeof UnsignedTransactionBoundWitnessWithHashMetaZod>
69
+
70
+ export const isUnsignedTransactionBoundWitnessWithHashMeta = zodIsFactory(UnsignedTransactionBoundWitnessWithHashMetaZod)
71
+ export const asUnsignedTransactionBoundWitnessWithHashMeta = zodAsFactory(
72
+ UnsignedTransactionBoundWitnessWithHashMetaZod,
73
+ 'asUnsignedTransactionBoundWitnessWithHashMeta',
74
+ )
75
+ export const toUnsignedTransactionBoundWitnessWithHashMeta = zodToFactory(
76
+ UnsignedTransactionBoundWitnessWithHashMetaZod,
77
+ 'toUnsignedTransactionBoundWitnessWithHashMeta',
78
+ )
79
+
80
+ export const UnsignedTransactionBoundWitnessWithStorageMetaZod = UnsignedTransactionBoundWitnessZod
81
+ .extend(StorageMetaZod.shape)
82
+
83
+ export type UnsignedTransactionBoundWitnessWithStorageMeta = z.infer<typeof UnsignedTransactionBoundWitnessWithStorageMetaZod>
84
+
85
+ export const isUnsignedTransactionBoundWitnessWithStorageMeta = zodIsFactory(UnsignedTransactionBoundWitnessWithStorageMetaZod)
86
+ export const asUnsignedTransactionBoundWitnessWithStorageMeta = zodAsFactory(
87
+ UnsignedTransactionBoundWitnessWithStorageMetaZod,
88
+ 'asUnsignedTransactionBoundWitnessWithStorageMeta',
89
+ )
90
+ export const toUnsignedTransactionBoundWitnessWithStorageMeta = zodToFactory(
91
+ UnsignedTransactionBoundWitnessWithStorageMetaZod,
92
+ 'toUnsignedTransactionBoundWitnessWithStorageMeta',
93
+ )
94
+
47
95
  export const SignedTransactionBoundWitnessZod = SignedBoundWitnessZod
48
- .extend(BlockDurationZod.shape)
49
- .extend(TransactionFeesZod.shape)
50
- .extend(TransactionBoundWitnessFields.shape)
51
- .extend(BlockScriptsZod.shape)
96
+ .extend(TransactionBoundWitnessFieldsZod.shape)
52
97
 
53
98
  export type SignedTransactionBoundWitness = z.infer<typeof SignedTransactionBoundWitnessZod>
54
99
 
55
100
  export const isSignedTransactionBoundWitness = zodIsFactory(SignedTransactionBoundWitnessZod)
56
101
  export const asSignedTransactionBoundWitness = zodAsFactory(SignedTransactionBoundWitnessZod, 'asSignedTransactionBoundWitness')
57
102
  export const toSignedTransactionBoundWitness = zodToFactory(SignedTransactionBoundWitnessZod, 'toSignedTransactionBoundWitness')
103
+
104
+ export const SignedTransactionBoundWitnessWithHashMetaZod = SignedTransactionBoundWitnessZod
105
+ .extend(HashMetaZod.shape)
106
+
107
+ export type SignedTransactionBoundWitnessWithHashMeta = z.infer<typeof SignedTransactionBoundWitnessWithHashMetaZod>
108
+
109
+ export const isSignedTransactionBoundWitnessWithHashMeta = zodIsFactory(SignedTransactionBoundWitnessWithHashMetaZod)
110
+ export const asSignedTransactionBoundWitnessWithHashMeta = zodAsFactory(
111
+ SignedTransactionBoundWitnessWithHashMetaZod,
112
+ 'asSignedTransactionBoundWitnessWithHashMeta',
113
+ )
114
+ export const toSignedTransactionBoundWitnessWithHashMeta = zodToFactory(
115
+ SignedTransactionBoundWitnessWithHashMetaZod,
116
+ 'toSignedTransactionBoundWitnessWithHashMeta',
117
+ )
118
+
119
+ export const SignedTransactionBoundWitnessWithStorageMetaZod = SignedTransactionBoundWitnessZod
120
+ .extend(StorageMetaZod.shape)
121
+
122
+ export type SignedTransactionBoundWitnessWithStorageMeta = z.infer<typeof SignedTransactionBoundWitnessWithStorageMetaZod>
123
+
124
+ export const isSignedTransactionBoundWitnessWithStorageMeta = zodIsFactory(SignedTransactionBoundWitnessWithStorageMetaZod)
125
+ export const asSignedTransactionBoundWitnessWithStorageMeta = zodAsFactory(
126
+ SignedTransactionBoundWitnessWithStorageMetaZod,
127
+ 'asSignedTransactionBoundWitnessWithStorageMeta',
128
+ )
129
+ export const toSignedTransactionBoundWitnessWithStorageMeta = zodToFactory(
130
+ SignedTransactionBoundWitnessWithStorageMetaZod,
131
+ 'toSignedTransactionBoundWitnessWithStorageMeta',
132
+ )