@xyo-network/xl1-schema 1.9.0 → 1.10.0

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.
@@ -9,48 +9,24 @@ var BlockBoundWitnessJsonSchema = {
9
9
  $id: "https://schemas.xyo.network/2.0/block",
10
10
  properties: {
11
11
  ...boundWitnessProperties,
12
- block: {
13
- type: "integer"
14
- },
15
- chain: {
16
- type: "string",
17
- pattern: AddressRegEx
18
- },
12
+ block: { type: "integer" },
13
+ chain: { type: "string", pattern: AddressRegEx },
19
14
  previous: {
20
15
  type: "string",
21
16
  pattern: HashRegEx,
22
17
  nullable: true
23
18
  },
24
19
  step_hashes: {
25
- items: {
26
- type: "string",
27
- pattern: HashRegEx
28
- },
20
+ items: { type: "string", pattern: HashRegEx },
29
21
  type: "array"
30
22
  },
31
- $epoch: {
32
- type: "integer"
33
- },
34
- schema: {
35
- type: "string",
36
- pattern: BoundWitnessSchema
37
- }
23
+ $epoch: { type: "integer" },
24
+ schema: { type: "string", pattern: BoundWitnessSchema }
38
25
  },
39
- required: [
40
- ...boundWitnessJsonSchema.required,
41
- "block",
42
- "chain",
43
- "step_hashes",
44
- "previous",
45
- "$epoch"
46
- ],
26
+ required: [...boundWitnessJsonSchema.required, "block", "chain", "step_hashes", "previous", "$epoch"],
47
27
  type: "object"
48
28
  };
49
- var BlockBoundWitnessSchemaPayload = new PayloadBuilder({
50
- schema: SchemaSchema
51
- }).fields({
52
- definition: BlockBoundWitnessJsonSchema
53
- }).build();
29
+ var BlockBoundWitnessSchemaPayload = new PayloadBuilder({ schema: SchemaSchema }).fields({ definition: BlockBoundWitnessJsonSchema }).build();
54
30
 
55
31
  // src/boundwitness/BlockBoundWitnessWithStorageMeta.ts
56
32
  import { BoundWitnessSchema as BoundWitnessSchema2 } from "@xyo-network/boundwitness-model";
@@ -63,24 +39,11 @@ import { HashRegEx as HashRegEx2, HexRegEx } from "@xyo-network/payload-wrapper"
63
39
  var StorageMetaJsonSchema = {
64
40
  $id: "https://schemas.xyo.network/2.0/storage-meta",
65
41
  properties: {
66
- _sequence: {
67
- type: "string",
68
- pattern: HexRegEx
69
- },
70
- _hash: {
71
- type: "string",
72
- pattern: HashRegEx2
73
- },
74
- _dataHash: {
75
- type: "string",
76
- pattern: HashRegEx2
77
- }
42
+ _sequence: { type: "string", pattern: HexRegEx },
43
+ _hash: { type: "string", pattern: HashRegEx2 },
44
+ _dataHash: { type: "string", pattern: HashRegEx2 }
78
45
  },
79
- required: [
80
- "_sequence",
81
- "_hash",
82
- "_dataHash"
83
- ],
46
+ required: ["_sequence", "_hash", "_dataHash"],
84
47
  type: "object"
85
48
  };
86
49
 
@@ -91,25 +54,12 @@ var BlockBoundWitnessWithStorageMetaJsonSchema = {
91
54
  ...boundWitnessProperties2,
92
55
  ...BlockBoundWitnessJsonSchema.properties,
93
56
  ...StorageMetaJsonSchema.properties,
94
- schema: {
95
- type: "string",
96
- pattern: BoundWitnessSchema2
97
- }
57
+ schema: { type: "string", pattern: BoundWitnessSchema2 }
98
58
  },
99
- required: [
100
- .../* @__PURE__ */ new Set([
101
- ...boundWitnessJsonSchema2.required,
102
- ...BlockBoundWitnessJsonSchema.required,
103
- ...StorageMetaJsonSchema.required
104
- ])
105
- ],
59
+ required: [.../* @__PURE__ */ new Set([...boundWitnessJsonSchema2.required, ...BlockBoundWitnessJsonSchema.required, ...StorageMetaJsonSchema.required])],
106
60
  type: "object"
107
61
  };
108
- var BlockBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder2({
109
- schema: SchemaSchema2
110
- }).fields({
111
- definition: BlockBoundWitnessWithStorageMetaJsonSchema
112
- }).build();
62
+ var BlockBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder2({ schema: SchemaSchema2 }).fields({ definition: BlockBoundWitnessWithStorageMetaJsonSchema }).build();
113
63
 
114
64
  // src/boundwitness/TransactionBoundWitness.ts
115
65
  import { BoundWitnessSchema as BoundWitnessSchema3 } from "@xyo-network/boundwitness-model";
@@ -122,18 +72,8 @@ import { SchemaSchema as SchemaSchema3 } from "@xyo-network/schema-payload-plugi
122
72
  var ExecutableJsonSchema = {
123
73
  $id: "https://schemas.xyo.network/2.0/executable",
124
74
  additionalProperties: true,
125
- properties: {
126
- script: {
127
- items: {
128
- type: "string",
129
- pattern: String.raw`^elevate\|`
130
- },
131
- type: "array"
132
- }
133
- },
134
- required: [
135
- "script"
136
- ],
75
+ properties: { script: { items: { type: "string", pattern: String.raw`^elevate\|` }, type: "array" } },
76
+ required: ["script"],
137
77
  type: "object"
138
78
  };
139
79
 
@@ -145,64 +85,27 @@ var TransactionBoundWitnessJsonSchema = {
145
85
  properties: {
146
86
  ...boundWitnessJsonSchema3.properties,
147
87
  ...ExecutableJsonSchema.properties,
148
- chain: {
149
- type: "string",
150
- pattern: AddressRegEx2
151
- },
88
+ chain: { type: "string", pattern: AddressRegEx2 },
152
89
  fees: {
153
90
  type: "object",
154
91
  properties: {
155
- base: {
156
- type: "string",
157
- pattern: Uint256RegEx
158
- },
159
- gasLimit: {
160
- type: "string",
161
- pattern: Uint256RegEx
162
- },
163
- gasPrice: {
164
- type: "string",
165
- pattern: Uint256RegEx
166
- },
167
- priority: {
168
- type: "string",
169
- pattern: Uint256RegEx
170
- }
92
+ base: { type: "string", pattern: Uint256RegEx },
93
+ gasLimit: { type: "string", pattern: Uint256RegEx },
94
+ gasPrice: { type: "string", pattern: Uint256RegEx },
95
+ priority: { type: "string", pattern: Uint256RegEx }
171
96
  },
172
- required: [
173
- "base"
174
- ],
97
+ required: ["base"],
175
98
  additionalProperties: false
176
99
  },
177
- from: {
178
- type: "string",
179
- pattern: AddressRegEx2
180
- },
181
- nbf: {
182
- type: "integer"
183
- },
184
- exp: {
185
- type: "integer"
186
- },
187
- schema: {
188
- type: "string",
189
- pattern: BoundWitnessSchema3
190
- }
100
+ from: { type: "string", pattern: AddressRegEx2 },
101
+ nbf: { type: "integer" },
102
+ exp: { type: "integer" },
103
+ schema: { type: "string", pattern: BoundWitnessSchema3 }
191
104
  },
192
- required: [
193
- ...boundWitnessJsonSchema3.required,
194
- "chain",
195
- "fees",
196
- "nbf",
197
- "exp"
198
- ],
105
+ required: [...boundWitnessJsonSchema3.required, "chain", "fees", "nbf", "exp"],
199
106
  type: "object"
200
107
  };
201
- var TransactionBoundWitnessSchemaPayload = new PayloadBuilder3({
202
- schema: SchemaSchema3
203
- }).fields({
204
- definition: TransactionBoundWitnessJsonSchema
205
- }).build();
108
+ var TransactionBoundWitnessSchemaPayload = new PayloadBuilder3({ schema: SchemaSchema3 }).fields({ definition: TransactionBoundWitnessJsonSchema }).build();
206
109
 
207
110
  // src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts
208
111
  import { BoundWitnessSchema as BoundWitnessSchema4 } from "@xyo-network/boundwitness-model";
@@ -217,40 +120,16 @@ var TransactionBoundWitnessWithStorageMetaJsonSchema = {
217
120
  properties: {
218
121
  ...boundWitnessJsonSchema4.properties,
219
122
  ...StorageMetaJsonSchema.properties,
220
- chain: {
221
- type: "string",
222
- pattern: AddressRegEx3
223
- },
224
- gas: {
225
- type: "string",
226
- pattern: Uint256RegEx2
227
- },
228
- nbf: {
229
- type: "integer"
230
- },
231
- exp: {
232
- type: "integer"
233
- },
234
- schema: {
235
- type: "string",
236
- pattern: BoundWitnessSchema4
237
- }
123
+ chain: { type: "string", pattern: AddressRegEx3 },
124
+ gas: { type: "string", pattern: Uint256RegEx2 },
125
+ nbf: { type: "integer" },
126
+ exp: { type: "integer" },
127
+ schema: { type: "string", pattern: BoundWitnessSchema4 }
238
128
  },
239
- required: [
240
- ...boundWitnessJsonSchema4.required,
241
- ...StorageMetaJsonSchema.required,
242
- "chain",
243
- "gas",
244
- "nbf",
245
- "exp"
246
- ],
129
+ required: [...boundWitnessJsonSchema4.required, ...StorageMetaJsonSchema.required, "chain", "gas", "nbf", "exp"],
247
130
  type: "object"
248
131
  };
249
- var TransactionBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder4({
250
- schema: SchemaSchema4
251
- }).fields({
252
- definition: TransactionBoundWitnessWithStorageMetaJsonSchema
253
- }).build();
132
+ var TransactionBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder4({ schema: SchemaSchema4 }).fields({ definition: TransactionBoundWitnessWithStorageMetaJsonSchema }).build();
254
133
 
255
134
  // src/payload/ChainStakeIntent.ts
256
135
  import { PayloadBuilder as PayloadBuilder5 } from "@xyo-network/payload-builder";
@@ -263,32 +142,14 @@ var ChainStakeIntentPayloadJsonSchema = {
263
142
  additionalProperties: false,
264
143
  properties: {
265
144
  ...payloadJsonSchema.properties,
266
- from: {
267
- type: "string",
268
- pattern: AddressRegEx4
269
- },
270
- intent: {
271
- type: "string",
272
- enum: [
273
- "producer"
274
- ]
275
- },
276
- schema: {
277
- type: "string",
278
- pattern: ChainStakeIntentSchema
279
- }
145
+ from: { type: "string", pattern: AddressRegEx4 },
146
+ intent: { type: "string", enum: ["producer"] },
147
+ schema: { type: "string", pattern: ChainStakeIntentSchema }
280
148
  },
281
- required: [
282
- ...payloadJsonSchema.required,
283
- "intent"
284
- ],
149
+ required: [...payloadJsonSchema.required, "intent"],
285
150
  type: "object"
286
151
  };
287
- var ChainStakeIntentPayloadJsonSchemaPayload = new PayloadBuilder5({
288
- schema: SchemaSchema5
289
- }).fields({
290
- definition: ChainStakeIntentPayloadJsonSchema
291
- }).build();
152
+ var ChainStakeIntentPayloadJsonSchemaPayload = new PayloadBuilder5({ schema: SchemaSchema5 }).fields({ definition: ChainStakeIntentPayloadJsonSchema }).build();
292
153
 
293
154
  // src/payload/HashPayload.ts
294
155
  import { PayloadBuilder as PayloadBuilder6 } from "@xyo-network/payload-builder";
@@ -301,30 +162,21 @@ var HashPayloadJsonSchema = {
301
162
  additionalProperties: false,
302
163
  properties: {
303
164
  ...payloadJsonSchema2.properties,
304
- hash: {
305
- type: "string",
306
- pattern: HashRegEx3
307
- },
308
- schema: {
309
- type: "string",
310
- pattern: HashSchema
311
- }
165
+ hash: { type: "string", pattern: HashRegEx3 },
166
+ schema: { type: "string", pattern: HashSchema }
312
167
  },
313
- required: [
314
- ...payloadJsonSchema2.required,
315
- "hash"
316
- ],
168
+ required: [...payloadJsonSchema2.required, "hash"],
317
169
  type: "object"
318
170
  };
319
- var HashPayloadJsonSchemaPayload = new PayloadBuilder6({
320
- schema: SchemaSchema6
321
- }).fields({
322
- definition: HashPayloadJsonSchema
323
- }).build();
171
+ var HashPayloadJsonSchemaPayload = new PayloadBuilder6({ schema: SchemaSchema6 }).fields({ definition: HashPayloadJsonSchema }).build();
324
172
 
325
173
  // src/payload/TransferPayload.ts
326
174
  import { PayloadBuilder as PayloadBuilder7 } from "@xyo-network/payload-builder";
327
- import { AddressRegEx as AddressRegEx5, payloadJsonSchema as payloadJsonSchema3, Uint256RegEx as Uint256RegEx3 } from "@xyo-network/payload-wrapper";
175
+ import {
176
+ AddressRegEx as AddressRegEx5,
177
+ payloadJsonSchema as payloadJsonSchema3,
178
+ Uint256RegEx as Uint256RegEx3
179
+ } from "@xyo-network/payload-wrapper";
328
180
  import { SchemaSchema as SchemaSchema7 } from "@xyo-network/schema-payload-plugin";
329
181
  import { TransferSchema } from "@xyo-network/xl1-protocol";
330
182
  var TransferPayloadJsonSchema = {
@@ -333,42 +185,19 @@ var TransferPayloadJsonSchema = {
333
185
  additionalProperties: false,
334
186
  properties: {
335
187
  ...payloadJsonSchema3.properties,
336
- from: {
337
- type: "string",
338
- pattern: AddressRegEx5
339
- },
340
- epoch: {
341
- type: "number"
342
- },
188
+ from: { type: "string", pattern: AddressRegEx5 },
189
+ epoch: { type: "number" },
343
190
  transfers: {
344
191
  type: "object",
345
- propertyNames: {
346
- pattern: AddressRegEx5
347
- },
348
- patternProperties: {
349
- [AddressRegEx5]: {
350
- type: "string",
351
- pattern: Uint256RegEx3
352
- }
353
- }
192
+ propertyNames: { pattern: AddressRegEx5 },
193
+ patternProperties: { [AddressRegEx5]: { type: "string", pattern: Uint256RegEx3 } }
354
194
  },
355
- schema: {
356
- type: "string",
357
- pattern: TransferSchema
358
- }
195
+ schema: { type: "string", pattern: TransferSchema }
359
196
  },
360
- required: [
361
- ...payloadJsonSchema3.required,
362
- "transfers",
363
- "epoch"
364
- ],
197
+ required: [...payloadJsonSchema3.required, "transfers", "epoch"],
365
198
  type: "object"
366
199
  };
367
- var TransferPayloadJsonSchemaPayload = new PayloadBuilder7({
368
- schema: SchemaSchema7
369
- }).fields({
370
- definition: TransferPayloadJsonSchema
371
- }).build();
200
+ var TransferPayloadJsonSchemaPayload = new PayloadBuilder7({ schema: SchemaSchema7 }).fields({ definition: TransferPayloadJsonSchema }).build();
372
201
  export {
373
202
  BlockBoundWitnessJsonSchema,
374
203
  BlockBoundWitnessSchemaPayload,
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/boundwitness/BlockBoundWitness.ts","../../src/boundwitness/BlockBoundWitnessWithStorageMeta.ts","../../src/StorageMeta.ts","../../src/boundwitness/TransactionBoundWitness.ts","../../src/Executable.ts","../../src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts","../../src/payload/ChainStakeIntent.ts","../../src/payload/HashPayload.ts","../../src/payload/TransferPayload.ts"],"sourcesContent":["import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\nimport { boundWitnessJsonSchema, boundWitnessProperties } from '@xyo-network/boundwitness-wrapper'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { AddressRegEx, HashRegEx } from '@xyo-network/payload-wrapper'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { BlockBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nexport const BlockBoundWitnessJsonSchema: JSONSchemaType<BlockBoundWitness> = {\n ...boundWitnessJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/block',\n properties: {\n ...boundWitnessProperties,\n block: { type: 'integer' },\n chain: { type: 'string', pattern: AddressRegEx },\n previous: {\n type: 'string', pattern: HashRegEx, nullable: true,\n },\n step_hashes: {\n items: { type: 'string', pattern: HashRegEx },\n type: 'array',\n },\n $epoch: { type: 'integer' },\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n required: [...boundWitnessJsonSchema.required, 'block', 'chain', 'step_hashes', 'previous', '$epoch'],\n type: 'object',\n} as const\n\nexport const BlockBoundWitnessSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: BlockBoundWitnessJsonSchema }).build()\n","import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\nimport { boundWitnessJsonSchema, boundWitnessProperties } from '@xyo-network/boundwitness-wrapper'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport type { WithStorageMeta } from '@xyo-network/payload-model'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { BlockBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { StorageMetaJsonSchema } from '../StorageMeta.ts'\nimport { BlockBoundWitnessJsonSchema } from './BlockBoundWitness.ts'\n\nexport const BlockBoundWitnessWithStorageMetaJsonSchema: JSONSchemaType<WithStorageMeta<BlockBoundWitness>> = {\n $id: 'https://schemas.xyo.network/2.0/block-with-storage-meta',\n properties: {\n ...boundWitnessProperties,\n ...BlockBoundWitnessJsonSchema.properties,\n ...StorageMetaJsonSchema.properties,\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n required: [...new Set([...boundWitnessJsonSchema.required, ...BlockBoundWitnessJsonSchema.required, ...StorageMetaJsonSchema.required])],\n type: 'object',\n} as const\n\nexport const BlockBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: BlockBoundWitnessWithStorageMetaJsonSchema }).build()\n","import type { StorageMeta } from '@xyo-network/payload-model'\nimport { HashRegEx, HexRegEx } from '@xyo-network/payload-wrapper'\nimport type { JSONSchemaType } from 'ajv'\n\nexport const StorageMetaJsonSchema: JSONSchemaType<StorageMeta> = {\n $id: 'https://schemas.xyo.network/2.0/storage-meta',\n properties: {\n _sequence: { type: 'string', pattern: HexRegEx },\n _hash: { type: 'string', pattern: HashRegEx },\n _dataHash: { type: 'string', pattern: HashRegEx },\n },\n required: ['_sequence', '_hash', '_dataHash'],\n type: 'object',\n} as const\n","import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\nimport { boundWitnessJsonSchema } from '@xyo-network/boundwitness-wrapper'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { AddressRegEx, Uint256RegEx } from '@xyo-network/payload-wrapper'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { TransactionBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { ExecutableJsonSchema } from '../Executable.ts'\n\nexport const TransactionBoundWitnessJsonSchema: JSONSchemaType<TransactionBoundWitness> = {\n ...boundWitnessJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/transaction',\n additionalProperties: false,\n properties: {\n ...boundWitnessJsonSchema.properties,\n ...ExecutableJsonSchema.properties,\n chain: { type: 'string', pattern: AddressRegEx },\n fees: {\n type: 'object',\n properties: {\n base: { type: 'string', pattern: Uint256RegEx },\n gasLimit: { type: 'string', pattern: Uint256RegEx },\n gasPrice: { type: 'string', pattern: Uint256RegEx },\n priority: { type: 'string', pattern: Uint256RegEx },\n },\n required: ['base'],\n additionalProperties: false,\n },\n from: { type: 'string', pattern: AddressRegEx },\n nbf: { type: 'integer' },\n exp: { type: 'integer' },\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n required: [...boundWitnessJsonSchema.required, 'chain', 'fees', 'nbf', 'exp'],\n type: 'object',\n} as const\n\nexport const TransactionBoundWitnessSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: TransactionBoundWitnessJsonSchema }).build()\n","import type { Executable } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nexport const ExecutableJsonSchema: JSONSchemaType<Executable> = {\n $id: 'https://schemas.xyo.network/2.0/executable',\n additionalProperties: true,\n properties: { script: { items: { type: 'string', pattern: String.raw`^elevate\\|` }, type: 'array' } },\n required: ['script'],\n type: 'object',\n} as const\n","import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\nimport { boundWitnessJsonSchema } from '@xyo-network/boundwitness-wrapper'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { AddressRegEx, Uint256RegEx } from '@xyo-network/payload-wrapper'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { TransactionBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { StorageMetaJsonSchema } from '../StorageMeta.ts'\n\nexport const TransactionBoundWitnessWithStorageMetaJsonSchema: JSONSchemaType<TransactionBoundWitness> = {\n ...boundWitnessJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/transaction-with-storage-meta',\n additionalProperties: false,\n properties: {\n ...boundWitnessJsonSchema.properties,\n ...StorageMetaJsonSchema.properties,\n chain: { type: 'string', pattern: AddressRegEx },\n gas: { type: 'string', pattern: Uint256RegEx },\n nbf: { type: 'integer' },\n exp: { type: 'integer' },\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n required: [...boundWitnessJsonSchema.required, ...StorageMetaJsonSchema.required, 'chain', 'gas', 'nbf', 'exp'],\n type: 'object',\n} as const\n\nexport const TransactionBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: TransactionBoundWitnessWithStorageMetaJsonSchema }).build()\n","import { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { AddressRegEx, payloadJsonSchema } from '@xyo-network/payload-wrapper'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { ChainStakeIntent } from '@xyo-network/xl1-protocol'\nimport { ChainStakeIntentSchema } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nexport const ChainStakeIntentPayloadJsonSchema: JSONSchemaType<ChainStakeIntent> = {\n ...payloadJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/payload/chain-stake-intent',\n additionalProperties: false,\n properties: {\n ...payloadJsonSchema.properties,\n from: { type: 'string', pattern: AddressRegEx },\n intent: { type: 'string', enum: ['producer'] },\n schema: { type: 'string', pattern: ChainStakeIntentSchema },\n },\n required: [...payloadJsonSchema.required, 'intent'],\n type: 'object',\n}\n\nexport const ChainStakeIntentPayloadJsonSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: ChainStakeIntentPayloadJsonSchema }).build()\n","import { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { HashRegEx, payloadJsonSchema } from '@xyo-network/payload-wrapper'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { HashPayload } from '@xyo-network/xl1-protocol'\nimport { HashSchema } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nexport const HashPayloadJsonSchema: JSONSchemaType<HashPayload> = {\n ...payloadJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/payload/hash',\n additionalProperties: false,\n properties: {\n ...payloadJsonSchema.properties,\n hash: { type: 'string', pattern: HashRegEx },\n schema: { type: 'string', pattern: HashSchema },\n },\n required: [...payloadJsonSchema.required, 'hash'],\n type: 'object',\n}\n\nexport const HashPayloadJsonSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: HashPayloadJsonSchema }).build()\n","import { PayloadBuilder } from '@xyo-network/payload-builder'\nimport {\n AddressRegEx, payloadJsonSchema, Uint256RegEx,\n} from '@xyo-network/payload-wrapper'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { Transfer } from '@xyo-network/xl1-protocol'\nimport { TransferSchema } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nexport const TransferPayloadJsonSchema: JSONSchemaType<Transfer> = {\n ...payloadJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/payload/transfer',\n additionalProperties: false,\n properties: {\n ...payloadJsonSchema.properties,\n from: { type: 'string', pattern: AddressRegEx },\n epoch: { type: 'number' },\n transfers: {\n type: 'object',\n propertyNames: { pattern: AddressRegEx },\n patternProperties: { [AddressRegEx]: { type: 'string', pattern: Uint256RegEx } },\n },\n schema: { type: 'string', pattern: TransferSchema },\n },\n required: [...payloadJsonSchema.required, 'transfers', 'epoch'],\n type: 'object',\n}\n\nexport const TransferPayloadJsonSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: TransferPayloadJsonSchema }).build()\n"],"mappings":";AAAA,SAASA,0BAA0B;AACnC,SAASC,wBAAwBC,8BAA8B;AAC/D,SAASC,sBAAsB;AAC/B,SAASC,cAAcC,iBAAiB;AAExC,SAASC,oBAAoB;AAItB,IAAMC,8BAAiE;EAC5E,GAAGN;EACHO,KAAK;EACLC,YAAY;IACV,GAAGP;IACHQ,OAAO;MAAEC,MAAM;IAAU;IACzBC,OAAO;MAAED,MAAM;MAAUE,SAAST;IAAa;IAC/CU,UAAU;MACRH,MAAM;MAAUE,SAASR;MAAWU,UAAU;IAChD;IACAC,aAAa;MACXC,OAAO;QAAEN,MAAM;QAAUE,SAASR;MAAU;MAC5CM,MAAM;IACR;IACAO,QAAQ;MAAEP,MAAM;IAAU;IAC1BQ,QAAQ;MAAER,MAAM;MAAUE,SAASb;IAAmB;EACxD;EACAoB,UAAU;OAAInB,uBAAuBmB;IAAU;IAAS;IAAS;IAAe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ASP;IAAW;EAChD;EACAS,UAAU;OAAIX,mBAAkBW;IAAU;;EAC1CH,MAAM;AACR;AAEO,IAAMI,+BAA+B,IAAId,gBAA8B;EAAEY,QAAQT;AAAa,CAAA,EAClGY,OAAO;EAAEC,YAAYX;AAAsB,CAAA,EAAGY,MAAK;;;ACtBtD,SAASC,kBAAAA,uBAAsB;AAC/B,SACEC,gBAAAA,eAAcC,qBAAAA,oBAAmBC,gBAAAA,qBAC5B;AAEP,SAASC,gBAAAA,qBAAoB;AAE7B,SAASC,sBAAsB;AAGxB,IAAMC,4BAAsD;EACjE,GAAGJ;EACHK,KAAK;EACLC,sBAAsB;EACtBC,YAAY;IACV,GAAGP,mBAAkBO;IACrBC,MAAM;MAAEC,MAAM;MAAUC,SAASX;IAAa;IAC9CY,OAAO;MAAEF,MAAM;IAAS;IACxBG,WAAW;MACTH,MAAM;MACNI,eAAe;QAAEH,SAASX;MAAa;MACvCe,mBAAmB;QAAE,CAACf,aAAAA,GAAe;UAAEU,MAAM;UAAUC,SAAST;QAAa;MAAE;IACjF;IACAc,QAAQ;MAAEN,MAAM;MAAUC,SAASP;IAAe;EACpD;EACAa,UAAU;OAAIhB,mBAAkBgB;IAAU;IAAa;;EACvDP,MAAM;AACR;AAEO,IAAMQ,mCAAmC,IAAInB,gBAA8B;EAAEiB,QAAQb;AAAa,CAAA,EACtGgB,OAAO;EAAEC,YAAYf;AAA0B,CAAA,EAAGgB,MAAK;","names":["BoundWitnessSchema","boundWitnessJsonSchema","boundWitnessProperties","PayloadBuilder","AddressRegEx","HashRegEx","SchemaSchema","BlockBoundWitnessJsonSchema","$id","properties","block","type","chain","pattern","previous","nullable","step_hashes","items","$epoch","schema","required","BlockBoundWitnessSchemaPayload","fields","definition","build","BoundWitnessSchema","boundWitnessJsonSchema","boundWitnessProperties","PayloadBuilder","SchemaSchema","HashRegEx","HexRegEx","StorageMetaJsonSchema","$id","properties","_sequence","type","pattern","_hash","_dataHash","required","BlockBoundWitnessWithStorageMetaJsonSchema","$id","properties","boundWitnessProperties","BlockBoundWitnessJsonSchema","StorageMetaJsonSchema","schema","type","pattern","BoundWitnessSchema","required","Set","boundWitnessJsonSchema","BlockBoundWitnessWithStorageMetaSchemaPayload","PayloadBuilder","SchemaSchema","fields","definition","build","BoundWitnessSchema","boundWitnessJsonSchema","PayloadBuilder","AddressRegEx","Uint256RegEx","SchemaSchema","ExecutableJsonSchema","$id","additionalProperties","properties","script","items","type","pattern","String","raw","required","TransactionBoundWitnessJsonSchema","boundWitnessJsonSchema","$id","additionalProperties","properties","ExecutableJsonSchema","chain","type","pattern","AddressRegEx","fees","base","Uint256RegEx","gasLimit","gasPrice","priority","required","from","nbf","exp","schema","BoundWitnessSchema","TransactionBoundWitnessSchemaPayload","PayloadBuilder","SchemaSchema","fields","definition","build","BoundWitnessSchema","boundWitnessJsonSchema","PayloadBuilder","AddressRegEx","Uint256RegEx","SchemaSchema","TransactionBoundWitnessWithStorageMetaJsonSchema","boundWitnessJsonSchema","$id","additionalProperties","properties","StorageMetaJsonSchema","chain","type","pattern","AddressRegEx","gas","Uint256RegEx","nbf","exp","schema","BoundWitnessSchema","required","TransactionBoundWitnessWithStorageMetaSchemaPayload","PayloadBuilder","SchemaSchema","fields","definition","build","PayloadBuilder","AddressRegEx","payloadJsonSchema","SchemaSchema","ChainStakeIntentSchema","ChainStakeIntentPayloadJsonSchema","$id","additionalProperties","properties","from","type","pattern","intent","enum","schema","required","ChainStakeIntentPayloadJsonSchemaPayload","fields","definition","build","PayloadBuilder","HashRegEx","payloadJsonSchema","SchemaSchema","HashSchema","HashPayloadJsonSchema","$id","additionalProperties","properties","hash","type","pattern","schema","required","HashPayloadJsonSchemaPayload","fields","definition","build","PayloadBuilder","AddressRegEx","payloadJsonSchema","Uint256RegEx","SchemaSchema","TransferSchema","TransferPayloadJsonSchema","$id","additionalProperties","properties","from","type","pattern","epoch","transfers","propertyNames","patternProperties","schema","required","TransferPayloadJsonSchemaPayload","fields","definition","build"]}
1
+ {"version":3,"sources":["../../src/boundwitness/BlockBoundWitness.ts","../../src/boundwitness/BlockBoundWitnessWithStorageMeta.ts","../../src/StorageMeta.ts","../../src/boundwitness/TransactionBoundWitness.ts","../../src/Executable.ts","../../src/boundwitness/TransactionBoundWitnessWithStorageMeta.ts","../../src/payload/ChainStakeIntent.ts","../../src/payload/HashPayload.ts","../../src/payload/TransferPayload.ts"],"sourcesContent":["import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\nimport { boundWitnessJsonSchema, boundWitnessProperties } from '@xyo-network/boundwitness-wrapper'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { AddressRegEx, HashRegEx } from '@xyo-network/payload-wrapper'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { BlockBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nexport const BlockBoundWitnessJsonSchema: JSONSchemaType<BlockBoundWitness> = {\n ...boundWitnessJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/block',\n properties: {\n ...boundWitnessProperties,\n block: { type: 'integer' },\n chain: { type: 'string', pattern: AddressRegEx },\n previous: {\n type: 'string', pattern: HashRegEx, nullable: true,\n },\n step_hashes: {\n items: { type: 'string', pattern: HashRegEx },\n type: 'array',\n },\n $epoch: { type: 'integer' },\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n required: [...boundWitnessJsonSchema.required, 'block', 'chain', 'step_hashes', 'previous', '$epoch'],\n type: 'object',\n} as const\n\nexport const BlockBoundWitnessSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: BlockBoundWitnessJsonSchema }).build()\n","import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\nimport { boundWitnessJsonSchema, boundWitnessProperties } from '@xyo-network/boundwitness-wrapper'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport type { WithStorageMeta } from '@xyo-network/payload-model'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { BlockBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { StorageMetaJsonSchema } from '../StorageMeta.ts'\nimport { BlockBoundWitnessJsonSchema } from './BlockBoundWitness.ts'\n\nexport const BlockBoundWitnessWithStorageMetaJsonSchema: JSONSchemaType<WithStorageMeta<BlockBoundWitness>> = {\n $id: 'https://schemas.xyo.network/2.0/block-with-storage-meta',\n properties: {\n ...boundWitnessProperties,\n ...BlockBoundWitnessJsonSchema.properties,\n ...StorageMetaJsonSchema.properties,\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n required: [...new Set([...boundWitnessJsonSchema.required, ...BlockBoundWitnessJsonSchema.required, ...StorageMetaJsonSchema.required])],\n type: 'object',\n} as const\n\nexport const BlockBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: BlockBoundWitnessWithStorageMetaJsonSchema }).build()\n","import type { StorageMeta } from '@xyo-network/payload-model'\nimport { HashRegEx, HexRegEx } from '@xyo-network/payload-wrapper'\nimport type { JSONSchemaType } from 'ajv'\n\nexport const StorageMetaJsonSchema: JSONSchemaType<StorageMeta> = {\n $id: 'https://schemas.xyo.network/2.0/storage-meta',\n properties: {\n _sequence: { type: 'string', pattern: HexRegEx },\n _hash: { type: 'string', pattern: HashRegEx },\n _dataHash: { type: 'string', pattern: HashRegEx },\n },\n required: ['_sequence', '_hash', '_dataHash'],\n type: 'object',\n} as const\n","import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\nimport { boundWitnessJsonSchema } from '@xyo-network/boundwitness-wrapper'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { AddressRegEx, Uint256RegEx } from '@xyo-network/payload-wrapper'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { TransactionBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { ExecutableJsonSchema } from '../Executable.ts'\n\nexport const TransactionBoundWitnessJsonSchema: JSONSchemaType<TransactionBoundWitness> = {\n ...boundWitnessJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/transaction',\n additionalProperties: false,\n properties: {\n ...boundWitnessJsonSchema.properties,\n ...ExecutableJsonSchema.properties,\n chain: { type: 'string', pattern: AddressRegEx },\n fees: {\n type: 'object',\n properties: {\n base: { type: 'string', pattern: Uint256RegEx },\n gasLimit: { type: 'string', pattern: Uint256RegEx },\n gasPrice: { type: 'string', pattern: Uint256RegEx },\n priority: { type: 'string', pattern: Uint256RegEx },\n },\n required: ['base'],\n additionalProperties: false,\n },\n from: { type: 'string', pattern: AddressRegEx },\n nbf: { type: 'integer' },\n exp: { type: 'integer' },\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n required: [...boundWitnessJsonSchema.required, 'chain', 'fees', 'nbf', 'exp'],\n type: 'object',\n} as const\n\nexport const TransactionBoundWitnessSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: TransactionBoundWitnessJsonSchema }).build()\n","import type { Executable } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nexport const ExecutableJsonSchema: JSONSchemaType<Executable> = {\n $id: 'https://schemas.xyo.network/2.0/executable',\n additionalProperties: true,\n properties: { script: { items: { type: 'string', pattern: String.raw`^elevate\\|` }, type: 'array' } },\n required: ['script'],\n type: 'object',\n} as const\n","import { BoundWitnessSchema } from '@xyo-network/boundwitness-model'\nimport { boundWitnessJsonSchema } from '@xyo-network/boundwitness-wrapper'\nimport { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { AddressRegEx, Uint256RegEx } from '@xyo-network/payload-wrapper'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { TransactionBoundWitness } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nimport { StorageMetaJsonSchema } from '../StorageMeta.ts'\n\nexport const TransactionBoundWitnessWithStorageMetaJsonSchema: JSONSchemaType<TransactionBoundWitness> = {\n ...boundWitnessJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/transaction-with-storage-meta',\n additionalProperties: false,\n properties: {\n ...boundWitnessJsonSchema.properties,\n ...StorageMetaJsonSchema.properties,\n chain: { type: 'string', pattern: AddressRegEx },\n gas: { type: 'string', pattern: Uint256RegEx },\n nbf: { type: 'integer' },\n exp: { type: 'integer' },\n schema: { type: 'string', pattern: BoundWitnessSchema },\n },\n required: [...boundWitnessJsonSchema.required, ...StorageMetaJsonSchema.required, 'chain', 'gas', 'nbf', 'exp'],\n type: 'object',\n} as const\n\nexport const TransactionBoundWitnessWithStorageMetaSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: TransactionBoundWitnessWithStorageMetaJsonSchema }).build()\n","import { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { AddressRegEx, payloadJsonSchema } from '@xyo-network/payload-wrapper'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { ChainStakeIntent } from '@xyo-network/xl1-protocol'\nimport { ChainStakeIntentSchema } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nexport const ChainStakeIntentPayloadJsonSchema: JSONSchemaType<ChainStakeIntent> = {\n ...payloadJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/payload/chain-stake-intent',\n additionalProperties: false,\n properties: {\n ...payloadJsonSchema.properties,\n from: { type: 'string', pattern: AddressRegEx },\n intent: { type: 'string', enum: ['producer'] },\n schema: { type: 'string', pattern: ChainStakeIntentSchema },\n },\n required: [...payloadJsonSchema.required, 'intent'],\n type: 'object',\n}\n\nexport const ChainStakeIntentPayloadJsonSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: ChainStakeIntentPayloadJsonSchema }).build()\n","import { PayloadBuilder } from '@xyo-network/payload-builder'\nimport { HashRegEx, payloadJsonSchema } from '@xyo-network/payload-wrapper'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { HashPayload } from '@xyo-network/xl1-protocol'\nimport { HashSchema } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nexport const HashPayloadJsonSchema: JSONSchemaType<HashPayload> = {\n ...payloadJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/payload/hash',\n additionalProperties: false,\n properties: {\n ...payloadJsonSchema.properties,\n hash: { type: 'string', pattern: HashRegEx },\n schema: { type: 'string', pattern: HashSchema },\n },\n required: [...payloadJsonSchema.required, 'hash'],\n type: 'object',\n}\n\nexport const HashPayloadJsonSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: HashPayloadJsonSchema }).build()\n","import { PayloadBuilder } from '@xyo-network/payload-builder'\nimport {\n AddressRegEx, payloadJsonSchema, Uint256RegEx,\n} from '@xyo-network/payload-wrapper'\nimport type { SchemaPayload } from '@xyo-network/schema-payload-plugin'\nimport { SchemaSchema } from '@xyo-network/schema-payload-plugin'\nimport type { Transfer } from '@xyo-network/xl1-protocol'\nimport { TransferSchema } from '@xyo-network/xl1-protocol'\nimport type { JSONSchemaType } from 'ajv'\n\nexport const TransferPayloadJsonSchema: JSONSchemaType<Transfer> = {\n ...payloadJsonSchema,\n $id: 'https://schemas.xyo.network/2.0/payload/transfer',\n additionalProperties: false,\n properties: {\n ...payloadJsonSchema.properties,\n from: { type: 'string', pattern: AddressRegEx },\n epoch: { type: 'number' },\n transfers: {\n type: 'object',\n propertyNames: { pattern: AddressRegEx },\n patternProperties: { [AddressRegEx]: { type: 'string', pattern: Uint256RegEx } },\n },\n schema: { type: 'string', pattern: TransferSchema },\n },\n required: [...payloadJsonSchema.required, 'transfers', 'epoch'],\n type: 'object',\n}\n\nexport const TransferPayloadJsonSchemaPayload = new PayloadBuilder<SchemaPayload>({ schema: SchemaSchema })\n .fields({ definition: TransferPayloadJsonSchema }).build()\n"],"mappings":";AAAA,SAAS,0BAA0B;AACnC,SAAS,wBAAwB,8BAA8B;AAC/D,SAAS,sBAAsB;AAC/B,SAAS,cAAc,iBAAiB;AAExC,SAAS,oBAAoB;AAItB,IAAM,8BAAiE;AAAA,EAC5E,GAAG;AAAA,EACH,KAAK;AAAA,EACL,YAAY;AAAA,IACV,GAAG;AAAA,IACH,OAAO,EAAE,MAAM,UAAU;AAAA,IACzB,OAAO,EAAE,MAAM,UAAU,SAAS,aAAa;AAAA,IAC/C,UAAU;AAAA,MACR,MAAM;AAAA,MAAU,SAAS;AAAA,MAAW,UAAU;AAAA,IAChD;AAAA,IACA,aAAa;AAAA,MACX,OAAO,EAAE,MAAM,UAAU,SAAS,UAAU;AAAA,MAC5C,MAAM;AAAA,IACR;AAAA,IACA,QAAQ,EAAE,MAAM,UAAU;AAAA,IAC1B,QAAQ,EAAE,MAAM,UAAU,SAAS,mBAAmB;AAAA,EACxD;AAAA,EACA,UAAU,CAAC,GAAG,uBAAuB,UAAU,SAAS,SAAS,eAAe,YAAY,QAAQ;AAAA,EACpG,MAAM;AACR;AAEO,IAAM,iCAAiC,IAAI,eAA8B,EAAE,QAAQ,aAAa,CAAC,EACrG,OAAO,EAAE,YAAY,4BAA4B,CAAC,EAAE,MAAM;;;AC/B7D,SAAS,sBAAAA,2BAA0B;AACnC,SAAS,0BAAAC,yBAAwB,0BAAAC,+BAA8B;AAC/D,SAAS,kBAAAC,uBAAsB;AAG/B,SAAS,gBAAAC,qBAAoB;;;ACJ7B,SAAS,aAAAC,YAAW,gBAAgB;AAG7B,IAAM,wBAAqD;AAAA,EAChE,KAAK;AAAA,EACL,YAAY;AAAA,IACV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AA,EACA,UAAU,CAAC,GAAGC,mBAAkB,UAAU,MAAM;AAAA,EAChD,MAAM;AACR;AAEO,IAAM,+BAA+B,IAAIF,gBAA8B,EAAE,QAAQG,cAAa,CAAC,EACnG,OAAO,EAAE,YAAY,sBAAsB,CAAC,EAAE,MAAM;;;ACtBvD,SAAS,kBAAAC,uBAAsB;AAC/B;AAAA,EACE,gBAAAC;AAAA,EAAc,qBAAAC;AAAA,EAAmB,gBAAAC;AAAA,OAC5B;AAEP,SAAS,gBAAAC,qBAAoB;AAE7B,SAAS,sBAAsB;AAGxB,IAAM,4BAAsD;AAAA,EACjE,GAAGF;AAAA,EACH,KAAK;AAAA,EACL,sBAAsB;AAAA,EACtB,YAAY;AAAA,IACV,GAAGA,mBAAkB;AAAA,IACrB,MAAM,EAAE,MAAM,UAAU,SAASD,cAAa;AAAA,IAC9C,OAAO,EAAE,MAAM,SAAS;AAAA,IACxB,WAAW;AAAA,MACT,MAAM;AAAA,MACN,eAAe,EAAE,SAASA,cAAa;AAAA,MACvC,mBAAmB,EAAE,CAACA,aAAY,GAAG,EAAE,MAAM,UAAU,SAASE,cAAa,EAAE;AAAA,IACjF;AAAA,IACA,QAAQ,EAAE,MAAM,UAAU,SAAS,eAAe;AAAA,EACpD;AAAA,EACA,UAAU,CAAC,GAAGD,mBAAkB,UAAU,aAAa,OAAO;AAAA,EAC9D,MAAM;AACR;AAEO,IAAM,mCAAmC,IAAIF,gBAA8B,EAAE,QAAQI,cAAa,CAAC,EACvG,OAAO,EAAE,YAAY,0BAA0B,CAAC,EAAE,MAAM;","names":["BoundWitnessSchema","boundWitnessJsonSchema","boundWitnessProperties","PayloadBuilder","SchemaSchema","HashRegEx","boundWitnessProperties","BoundWitnessSchema","boundWitnessJsonSchema","PayloadBuilder","SchemaSchema","BoundWitnessSchema","boundWitnessJsonSchema","PayloadBuilder","AddressRegEx","SchemaSchema","boundWitnessJsonSchema","AddressRegEx","BoundWitnessSchema","PayloadBuilder","SchemaSchema","BoundWitnessSchema","boundWitnessJsonSchema","PayloadBuilder","AddressRegEx","Uint256RegEx","SchemaSchema","boundWitnessJsonSchema","AddressRegEx","Uint256RegEx","BoundWitnessSchema","PayloadBuilder","SchemaSchema","PayloadBuilder","AddressRegEx","SchemaSchema","PayloadBuilder","HashRegEx","payloadJsonSchema","SchemaSchema","PayloadBuilder","AddressRegEx","payloadJsonSchema","Uint256RegEx","SchemaSchema"]}
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-schema",
4
- "version": "1.9.0",
4
+ "version": "1.10.0",
5
5
  "description": "XYO Layer One SDK Schema",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -36,24 +36,23 @@
36
36
  "src"
37
37
  ],
38
38
  "dependencies": {
39
- "@xyo-network/boundwitness-model": "^5.0.0",
40
- "@xyo-network/boundwitness-wrapper": "^5.0.0",
41
- "@xyo-network/payload-builder": "^5.0.0",
42
- "@xyo-network/payload-model": "^5.0.0",
43
- "@xyo-network/payload-wrapper": "^5.0.0",
44
- "@xyo-network/schema-payload-plugin": "^5.0.0",
45
- "@xyo-network/xl1-protocol": "^1.8.0",
46
- "zod": "^3.25.76"
39
+ "@xyo-network/boundwitness-model": "~5.0.0",
40
+ "@xyo-network/boundwitness-wrapper": "~5.0.0",
41
+ "@xyo-network/payload-builder": "~5.0.0",
42
+ "@xyo-network/payload-model": "~5.0.0",
43
+ "@xyo-network/payload-wrapper": "~5.0.0",
44
+ "@xyo-network/schema-payload-plugin": "~5.0.0",
45
+ "@xyo-network/xl1-protocol": "~1.9.3",
46
+ "zod": "~3.25.76"
47
47
  },
48
48
  "devDependencies": {
49
- "@types/node": "^24.1.0",
50
- "@xylabs/ts-scripts-yarn3": "^7.0.2",
51
- "@xylabs/tsconfig": "^7.0.2",
52
- "@xyo-network/account": "^5.0.0",
53
- "ajv": "^8.17.1",
54
- "knip": "^5.62.0",
55
- "typescript": "^5.8.3",
56
- "vitest": "^3.2.4"
49
+ "@types/node": "~24.2.0",
50
+ "@xylabs/ts-scripts-yarn3": "~7.0.3",
51
+ "@xylabs/tsconfig": "~7.0.3",
52
+ "@xyo-network/account": "~5.0.0",
53
+ "ajv": "~8.17.1",
54
+ "typescript": "~5.9.2",
55
+ "vitest": "~3.2.4"
57
56
  },
58
57
  "engines": {
59
58
  "node": ">=22.3 <23"