@hardkas/artifacts 0.6.1-alpha → 0.7.1-alpha
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/index.d.ts +537 -18
- package/dist/index.js +60 -6
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -39,8 +39,29 @@ declare const ArtifactLineageSchema: z.ZodObject<{
|
|
|
39
39
|
parentArtifactId?: string | undefined;
|
|
40
40
|
sequence?: number | undefined;
|
|
41
41
|
}>;
|
|
42
|
+
declare const ScriptCapabilitySchema: z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>;
|
|
43
|
+
declare const ScriptMetadataSchema: z.ZodObject<{
|
|
44
|
+
language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
|
|
45
|
+
version: z.ZodOptional<z.ZodString>;
|
|
46
|
+
experimental: z.ZodBoolean;
|
|
47
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
48
|
+
consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
|
|
49
|
+
}, "strip", z.ZodTypeAny, {
|
|
50
|
+
experimental: boolean;
|
|
51
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
52
|
+
version?: string | undefined;
|
|
53
|
+
notes?: string[] | undefined;
|
|
54
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
55
|
+
}, {
|
|
56
|
+
experimental: boolean;
|
|
57
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
58
|
+
version?: string | undefined;
|
|
59
|
+
notes?: string[] | undefined;
|
|
60
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
61
|
+
}>;
|
|
42
62
|
declare const BaseArtifactSchema: z.ZodObject<{
|
|
43
63
|
schema: z.ZodString;
|
|
64
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
44
65
|
hardkasVersion: z.ZodString;
|
|
45
66
|
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
46
67
|
hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
@@ -67,13 +88,38 @@ declare const BaseArtifactSchema: z.ZodObject<{
|
|
|
67
88
|
parentArtifactId?: string | undefined;
|
|
68
89
|
sequence?: number | undefined;
|
|
69
90
|
}>>;
|
|
91
|
+
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
92
|
+
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
94
|
+
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
95
|
+
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
96
|
+
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
97
|
+
language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
|
|
98
|
+
version: z.ZodOptional<z.ZodString>;
|
|
99
|
+
experimental: z.ZodBoolean;
|
|
100
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
101
|
+
consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
|
|
102
|
+
}, "strip", z.ZodTypeAny, {
|
|
103
|
+
experimental: boolean;
|
|
104
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
105
|
+
version?: string | undefined;
|
|
106
|
+
notes?: string[] | undefined;
|
|
107
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
108
|
+
}, {
|
|
109
|
+
experimental: boolean;
|
|
110
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
111
|
+
version?: string | undefined;
|
|
112
|
+
notes?: string[] | undefined;
|
|
113
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
114
|
+
}>>;
|
|
70
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
+
version: "1.0.0-alpha";
|
|
71
117
|
schema: string;
|
|
72
118
|
hardkasVersion: string;
|
|
73
|
-
version: "1.0.0-alpha";
|
|
74
119
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
75
120
|
mode: "simulated" | "real" | "readonly";
|
|
76
121
|
createdAt: string;
|
|
122
|
+
schemaVersion?: string | undefined;
|
|
77
123
|
hashVersion?: string | number | undefined;
|
|
78
124
|
contentHash?: string | undefined;
|
|
79
125
|
lineage?: {
|
|
@@ -83,13 +129,26 @@ declare const BaseArtifactSchema: z.ZodObject<{
|
|
|
83
129
|
parentArtifactId?: string | undefined;
|
|
84
130
|
sequence?: number | undefined;
|
|
85
131
|
} | undefined;
|
|
132
|
+
parents?: string[] | undefined;
|
|
133
|
+
lineageDepth?: number | undefined;
|
|
134
|
+
workflowId?: string | undefined;
|
|
135
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
136
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
137
|
+
scriptMetadata?: {
|
|
138
|
+
experimental: boolean;
|
|
139
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
140
|
+
version?: string | undefined;
|
|
141
|
+
notes?: string[] | undefined;
|
|
142
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
143
|
+
} | undefined;
|
|
86
144
|
}, {
|
|
145
|
+
version: "1.0.0-alpha";
|
|
87
146
|
schema: string;
|
|
88
147
|
hardkasVersion: string;
|
|
89
|
-
version: "1.0.0-alpha";
|
|
90
148
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
91
149
|
mode: "simulated" | "real" | "readonly";
|
|
92
150
|
createdAt: string;
|
|
151
|
+
schemaVersion?: string | undefined;
|
|
93
152
|
hashVersion?: string | number | undefined;
|
|
94
153
|
contentHash?: string | undefined;
|
|
95
154
|
lineage?: {
|
|
@@ -99,6 +158,18 @@ declare const BaseArtifactSchema: z.ZodObject<{
|
|
|
99
158
|
parentArtifactId?: string | undefined;
|
|
100
159
|
sequence?: number | undefined;
|
|
101
160
|
} | undefined;
|
|
161
|
+
parents?: string[] | undefined;
|
|
162
|
+
lineageDepth?: number | undefined;
|
|
163
|
+
workflowId?: string | undefined;
|
|
164
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
165
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
166
|
+
scriptMetadata?: {
|
|
167
|
+
experimental: boolean;
|
|
168
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
169
|
+
version?: string | undefined;
|
|
170
|
+
notes?: string[] | undefined;
|
|
171
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
172
|
+
} | undefined;
|
|
102
173
|
}>;
|
|
103
174
|
declare const AccountRefSchema: z.ZodObject<{
|
|
104
175
|
address: z.ZodString;
|
|
@@ -114,6 +185,7 @@ declare const AccountRefSchema: z.ZodObject<{
|
|
|
114
185
|
input?: string | undefined;
|
|
115
186
|
}>;
|
|
116
187
|
declare const TxPlanSchema: z.ZodObject<{
|
|
188
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
117
189
|
hardkasVersion: z.ZodString;
|
|
118
190
|
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
119
191
|
hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
@@ -138,6 +210,30 @@ declare const TxPlanSchema: z.ZodObject<{
|
|
|
138
210
|
parentArtifactId?: string | undefined;
|
|
139
211
|
sequence?: number | undefined;
|
|
140
212
|
}>>;
|
|
213
|
+
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
214
|
+
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
215
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
216
|
+
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
217
|
+
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
218
|
+
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
219
|
+
language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
|
|
220
|
+
version: z.ZodOptional<z.ZodString>;
|
|
221
|
+
experimental: z.ZodBoolean;
|
|
222
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
223
|
+
consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
|
|
224
|
+
}, "strip", z.ZodTypeAny, {
|
|
225
|
+
experimental: boolean;
|
|
226
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
227
|
+
version?: string | undefined;
|
|
228
|
+
notes?: string[] | undefined;
|
|
229
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
230
|
+
}, {
|
|
231
|
+
experimental: boolean;
|
|
232
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
233
|
+
version?: string | undefined;
|
|
234
|
+
notes?: string[] | undefined;
|
|
235
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
236
|
+
}>>;
|
|
141
237
|
} & {
|
|
142
238
|
schema: z.ZodLiteral<"hardkas.txPlan">;
|
|
143
239
|
networkId: z.ZodEnum<["mainnet", "testnet-10", "testnet-11", "testnet-12", "simnet", "simnet-1", "devnet", "simulated"]>;
|
|
@@ -219,9 +315,9 @@ declare const TxPlanSchema: z.ZodObject<{
|
|
|
219
315
|
}>>;
|
|
220
316
|
rpcUrl: z.ZodOptional<z.ZodString>;
|
|
221
317
|
}, "strip", z.ZodTypeAny, {
|
|
318
|
+
version: "1.0.0-alpha";
|
|
222
319
|
schema: "hardkas.txPlan";
|
|
223
320
|
hardkasVersion: string;
|
|
224
|
-
version: "1.0.0-alpha";
|
|
225
321
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
226
322
|
mode: "simulated" | "real" | "readonly";
|
|
227
323
|
createdAt: string;
|
|
@@ -250,6 +346,7 @@ declare const TxPlanSchema: z.ZodObject<{
|
|
|
250
346
|
address: string;
|
|
251
347
|
amountSompi: string;
|
|
252
348
|
}[];
|
|
349
|
+
schemaVersion?: string | undefined;
|
|
253
350
|
hashVersion?: string | number | undefined;
|
|
254
351
|
contentHash?: string | undefined;
|
|
255
352
|
lineage?: {
|
|
@@ -259,15 +356,27 @@ declare const TxPlanSchema: z.ZodObject<{
|
|
|
259
356
|
parentArtifactId?: string | undefined;
|
|
260
357
|
sequence?: number | undefined;
|
|
261
358
|
} | undefined;
|
|
359
|
+
parents?: string[] | undefined;
|
|
360
|
+
lineageDepth?: number | undefined;
|
|
361
|
+
workflowId?: string | undefined;
|
|
362
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
363
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
364
|
+
scriptMetadata?: {
|
|
365
|
+
experimental: boolean;
|
|
366
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
367
|
+
version?: string | undefined;
|
|
368
|
+
notes?: string[] | undefined;
|
|
369
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
370
|
+
} | undefined;
|
|
262
371
|
change?: {
|
|
263
372
|
address: string;
|
|
264
373
|
amountSompi: string;
|
|
265
374
|
} | undefined;
|
|
266
375
|
rpcUrl?: string | undefined;
|
|
267
376
|
}, {
|
|
377
|
+
version: "1.0.0-alpha";
|
|
268
378
|
schema: "hardkas.txPlan";
|
|
269
379
|
hardkasVersion: string;
|
|
270
|
-
version: "1.0.0-alpha";
|
|
271
380
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
272
381
|
mode: "simulated" | "real" | "readonly";
|
|
273
382
|
createdAt: string;
|
|
@@ -296,6 +405,7 @@ declare const TxPlanSchema: z.ZodObject<{
|
|
|
296
405
|
address: string;
|
|
297
406
|
amountSompi: string;
|
|
298
407
|
}[];
|
|
408
|
+
schemaVersion?: string | undefined;
|
|
299
409
|
hashVersion?: string | number | undefined;
|
|
300
410
|
contentHash?: string | undefined;
|
|
301
411
|
lineage?: {
|
|
@@ -305,6 +415,18 @@ declare const TxPlanSchema: z.ZodObject<{
|
|
|
305
415
|
parentArtifactId?: string | undefined;
|
|
306
416
|
sequence?: number | undefined;
|
|
307
417
|
} | undefined;
|
|
418
|
+
parents?: string[] | undefined;
|
|
419
|
+
lineageDepth?: number | undefined;
|
|
420
|
+
workflowId?: string | undefined;
|
|
421
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
422
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
423
|
+
scriptMetadata?: {
|
|
424
|
+
experimental: boolean;
|
|
425
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
426
|
+
version?: string | undefined;
|
|
427
|
+
notes?: string[] | undefined;
|
|
428
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
429
|
+
} | undefined;
|
|
308
430
|
change?: {
|
|
309
431
|
address: string;
|
|
310
432
|
amountSompi: string;
|
|
@@ -379,6 +501,7 @@ declare const LocalnetUtxoSchemaV2: z.ZodObject<{
|
|
|
379
501
|
createdAtDaaScore: string;
|
|
380
502
|
}>;
|
|
381
503
|
declare const SnapshotSchema: z.ZodObject<{
|
|
504
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
382
505
|
hardkasVersion: z.ZodString;
|
|
383
506
|
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
384
507
|
hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
@@ -405,6 +528,30 @@ declare const SnapshotSchema: z.ZodObject<{
|
|
|
405
528
|
parentArtifactId?: string | undefined;
|
|
406
529
|
sequence?: number | undefined;
|
|
407
530
|
}>>;
|
|
531
|
+
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
532
|
+
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
533
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
534
|
+
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
535
|
+
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
536
|
+
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
537
|
+
language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
|
|
538
|
+
version: z.ZodOptional<z.ZodString>;
|
|
539
|
+
experimental: z.ZodBoolean;
|
|
540
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
541
|
+
consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
|
|
542
|
+
}, "strip", z.ZodTypeAny, {
|
|
543
|
+
experimental: boolean;
|
|
544
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
545
|
+
version?: string | undefined;
|
|
546
|
+
notes?: string[] | undefined;
|
|
547
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
548
|
+
}, {
|
|
549
|
+
experimental: boolean;
|
|
550
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
551
|
+
version?: string | undefined;
|
|
552
|
+
notes?: string[] | undefined;
|
|
553
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
554
|
+
}>>;
|
|
408
555
|
} & {
|
|
409
556
|
schema: z.ZodLiteral<"hardkas.snapshot">;
|
|
410
557
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -442,9 +589,9 @@ declare const SnapshotSchema: z.ZodObject<{
|
|
|
442
589
|
createdAtDaaScore: string;
|
|
443
590
|
}>, "many">;
|
|
444
591
|
}, "strip", z.ZodTypeAny, {
|
|
592
|
+
version: "1.0.0-alpha";
|
|
445
593
|
schema: "hardkas.snapshot";
|
|
446
594
|
hardkasVersion: string;
|
|
447
|
-
version: "1.0.0-alpha";
|
|
448
595
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
449
596
|
mode: "simulated" | "real" | "readonly";
|
|
450
597
|
createdAt: string;
|
|
@@ -460,6 +607,7 @@ declare const SnapshotSchema: z.ZodObject<{
|
|
|
460
607
|
spent: boolean;
|
|
461
608
|
createdAtDaaScore: string;
|
|
462
609
|
}[];
|
|
610
|
+
schemaVersion?: string | undefined;
|
|
463
611
|
hashVersion?: string | number | undefined;
|
|
464
612
|
contentHash?: string | undefined;
|
|
465
613
|
lineage?: {
|
|
@@ -469,14 +617,26 @@ declare const SnapshotSchema: z.ZodObject<{
|
|
|
469
617
|
parentArtifactId?: string | undefined;
|
|
470
618
|
sequence?: number | undefined;
|
|
471
619
|
} | undefined;
|
|
620
|
+
parents?: string[] | undefined;
|
|
621
|
+
lineageDepth?: number | undefined;
|
|
622
|
+
workflowId?: string | undefined;
|
|
623
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
624
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
625
|
+
scriptMetadata?: {
|
|
626
|
+
experimental: boolean;
|
|
627
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
628
|
+
version?: string | undefined;
|
|
629
|
+
notes?: string[] | undefined;
|
|
630
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
631
|
+
} | undefined;
|
|
472
632
|
name?: string | undefined;
|
|
473
633
|
accountsHash?: string | undefined;
|
|
474
634
|
utxoSetHash?: string | undefined;
|
|
475
635
|
stateHash?: string | undefined;
|
|
476
636
|
}, {
|
|
637
|
+
version: "1.0.0-alpha";
|
|
477
638
|
schema: "hardkas.snapshot";
|
|
478
639
|
hardkasVersion: string;
|
|
479
|
-
version: "1.0.0-alpha";
|
|
480
640
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
481
641
|
mode: "simulated" | "real" | "readonly";
|
|
482
642
|
createdAt: string;
|
|
@@ -492,6 +652,7 @@ declare const SnapshotSchema: z.ZodObject<{
|
|
|
492
652
|
spent: boolean;
|
|
493
653
|
createdAtDaaScore: string;
|
|
494
654
|
}[];
|
|
655
|
+
schemaVersion?: string | undefined;
|
|
495
656
|
hashVersion?: string | number | undefined;
|
|
496
657
|
contentHash?: string | undefined;
|
|
497
658
|
lineage?: {
|
|
@@ -501,12 +662,25 @@ declare const SnapshotSchema: z.ZodObject<{
|
|
|
501
662
|
parentArtifactId?: string | undefined;
|
|
502
663
|
sequence?: number | undefined;
|
|
503
664
|
} | undefined;
|
|
665
|
+
parents?: string[] | undefined;
|
|
666
|
+
lineageDepth?: number | undefined;
|
|
667
|
+
workflowId?: string | undefined;
|
|
668
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
669
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
670
|
+
scriptMetadata?: {
|
|
671
|
+
experimental: boolean;
|
|
672
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
673
|
+
version?: string | undefined;
|
|
674
|
+
notes?: string[] | undefined;
|
|
675
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
676
|
+
} | undefined;
|
|
504
677
|
name?: string | undefined;
|
|
505
678
|
accountsHash?: string | undefined;
|
|
506
679
|
utxoSetHash?: string | undefined;
|
|
507
680
|
stateHash?: string | undefined;
|
|
508
681
|
}>;
|
|
509
682
|
declare const TxReceiptSchema: z.ZodObject<{
|
|
683
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
510
684
|
hardkasVersion: z.ZodString;
|
|
511
685
|
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
512
686
|
hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
@@ -531,6 +705,30 @@ declare const TxReceiptSchema: z.ZodObject<{
|
|
|
531
705
|
parentArtifactId?: string | undefined;
|
|
532
706
|
sequence?: number | undefined;
|
|
533
707
|
}>>;
|
|
708
|
+
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
709
|
+
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
710
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
711
|
+
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
712
|
+
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
713
|
+
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
714
|
+
language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
|
|
715
|
+
version: z.ZodOptional<z.ZodString>;
|
|
716
|
+
experimental: z.ZodBoolean;
|
|
717
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
718
|
+
consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
|
|
719
|
+
}, "strip", z.ZodTypeAny, {
|
|
720
|
+
experimental: boolean;
|
|
721
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
722
|
+
version?: string | undefined;
|
|
723
|
+
notes?: string[] | undefined;
|
|
724
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
725
|
+
}, {
|
|
726
|
+
experimental: boolean;
|
|
727
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
728
|
+
version?: string | undefined;
|
|
729
|
+
notes?: string[] | undefined;
|
|
730
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
731
|
+
}>>;
|
|
534
732
|
} & {
|
|
535
733
|
schema: z.ZodLiteral<"hardkas.txReceipt">;
|
|
536
734
|
txId: z.ZodString;
|
|
@@ -629,9 +827,9 @@ declare const TxReceiptSchema: z.ZodObject<{
|
|
|
629
827
|
metadata: z.ZodOptional<z.ZodAny>;
|
|
630
828
|
}, "strip", z.ZodTypeAny, {
|
|
631
829
|
status: "pending" | "submitted" | "accepted" | "confirmed" | "failed";
|
|
830
|
+
version: "1.0.0-alpha";
|
|
632
831
|
schema: "hardkas.txReceipt";
|
|
633
832
|
hardkasVersion: string;
|
|
634
|
-
version: "1.0.0-alpha";
|
|
635
833
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
636
834
|
mode: "simulated" | "real" | "readonly";
|
|
637
835
|
createdAt: string;
|
|
@@ -648,6 +846,7 @@ declare const TxReceiptSchema: z.ZodObject<{
|
|
|
648
846
|
amountSompi: string;
|
|
649
847
|
txId: string;
|
|
650
848
|
feeSompi: string;
|
|
849
|
+
schemaVersion?: string | undefined;
|
|
651
850
|
hashVersion?: string | number | undefined;
|
|
652
851
|
contentHash?: string | undefined;
|
|
653
852
|
lineage?: {
|
|
@@ -657,6 +856,18 @@ declare const TxReceiptSchema: z.ZodObject<{
|
|
|
657
856
|
parentArtifactId?: string | undefined;
|
|
658
857
|
sequence?: number | undefined;
|
|
659
858
|
} | undefined;
|
|
859
|
+
parents?: string[] | undefined;
|
|
860
|
+
lineageDepth?: number | undefined;
|
|
861
|
+
workflowId?: string | undefined;
|
|
862
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
863
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
864
|
+
scriptMetadata?: {
|
|
865
|
+
experimental: boolean;
|
|
866
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
867
|
+
version?: string | undefined;
|
|
868
|
+
notes?: string[] | undefined;
|
|
869
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
870
|
+
} | undefined;
|
|
660
871
|
rpcUrl?: string | undefined;
|
|
661
872
|
daaScore?: string | undefined;
|
|
662
873
|
mass?: string | undefined;
|
|
@@ -687,9 +898,9 @@ declare const TxReceiptSchema: z.ZodObject<{
|
|
|
687
898
|
metadata?: any;
|
|
688
899
|
}, {
|
|
689
900
|
status: "pending" | "submitted" | "accepted" | "confirmed" | "failed";
|
|
901
|
+
version: "1.0.0-alpha";
|
|
690
902
|
schema: "hardkas.txReceipt";
|
|
691
903
|
hardkasVersion: string;
|
|
692
|
-
version: "1.0.0-alpha";
|
|
693
904
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
694
905
|
mode: "simulated" | "real" | "readonly";
|
|
695
906
|
createdAt: string;
|
|
@@ -706,6 +917,7 @@ declare const TxReceiptSchema: z.ZodObject<{
|
|
|
706
917
|
amountSompi: string;
|
|
707
918
|
txId: string;
|
|
708
919
|
feeSompi: string;
|
|
920
|
+
schemaVersion?: string | undefined;
|
|
709
921
|
hashVersion?: string | number | undefined;
|
|
710
922
|
contentHash?: string | undefined;
|
|
711
923
|
lineage?: {
|
|
@@ -715,6 +927,18 @@ declare const TxReceiptSchema: z.ZodObject<{
|
|
|
715
927
|
parentArtifactId?: string | undefined;
|
|
716
928
|
sequence?: number | undefined;
|
|
717
929
|
} | undefined;
|
|
930
|
+
parents?: string[] | undefined;
|
|
931
|
+
lineageDepth?: number | undefined;
|
|
932
|
+
workflowId?: string | undefined;
|
|
933
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
934
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
935
|
+
scriptMetadata?: {
|
|
936
|
+
experimental: boolean;
|
|
937
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
938
|
+
version?: string | undefined;
|
|
939
|
+
notes?: string[] | undefined;
|
|
940
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
941
|
+
} | undefined;
|
|
718
942
|
rpcUrl?: string | undefined;
|
|
719
943
|
daaScore?: string | undefined;
|
|
720
944
|
mass?: string | undefined;
|
|
@@ -745,6 +969,7 @@ declare const TxReceiptSchema: z.ZodObject<{
|
|
|
745
969
|
metadata?: any;
|
|
746
970
|
}>;
|
|
747
971
|
declare const SignedTxSchema: z.ZodObject<{
|
|
972
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
748
973
|
hardkasVersion: z.ZodString;
|
|
749
974
|
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
750
975
|
hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
@@ -769,6 +994,30 @@ declare const SignedTxSchema: z.ZodObject<{
|
|
|
769
994
|
parentArtifactId?: string | undefined;
|
|
770
995
|
sequence?: number | undefined;
|
|
771
996
|
}>>;
|
|
997
|
+
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
998
|
+
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
999
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
1000
|
+
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
1001
|
+
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
1002
|
+
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
1003
|
+
language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
|
|
1004
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1005
|
+
experimental: z.ZodBoolean;
|
|
1006
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1007
|
+
consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
|
|
1008
|
+
}, "strip", z.ZodTypeAny, {
|
|
1009
|
+
experimental: boolean;
|
|
1010
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1011
|
+
version?: string | undefined;
|
|
1012
|
+
notes?: string[] | undefined;
|
|
1013
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1014
|
+
}, {
|
|
1015
|
+
experimental: boolean;
|
|
1016
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1017
|
+
version?: string | undefined;
|
|
1018
|
+
notes?: string[] | undefined;
|
|
1019
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1020
|
+
}>>;
|
|
772
1021
|
} & {
|
|
773
1022
|
schema: z.ZodLiteral<"hardkas.signedTx">;
|
|
774
1023
|
status: z.ZodLiteral<"signed">;
|
|
@@ -817,9 +1066,9 @@ declare const SignedTxSchema: z.ZodObject<{
|
|
|
817
1066
|
metadata: z.ZodOptional<z.ZodAny>;
|
|
818
1067
|
}, "strip", z.ZodTypeAny, {
|
|
819
1068
|
status: "signed";
|
|
1069
|
+
version: "1.0.0-alpha";
|
|
820
1070
|
schema: "hardkas.signedTx";
|
|
821
1071
|
hardkasVersion: string;
|
|
822
|
-
version: "1.0.0-alpha";
|
|
823
1072
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
824
1073
|
mode: "simulated" | "real" | "readonly";
|
|
825
1074
|
createdAt: string;
|
|
@@ -840,6 +1089,7 @@ declare const SignedTxSchema: z.ZodObject<{
|
|
|
840
1089
|
format: string;
|
|
841
1090
|
payload: string;
|
|
842
1091
|
};
|
|
1092
|
+
schemaVersion?: string | undefined;
|
|
843
1093
|
hashVersion?: string | number | undefined;
|
|
844
1094
|
contentHash?: string | undefined;
|
|
845
1095
|
lineage?: {
|
|
@@ -849,13 +1099,25 @@ declare const SignedTxSchema: z.ZodObject<{
|
|
|
849
1099
|
parentArtifactId?: string | undefined;
|
|
850
1100
|
sequence?: number | undefined;
|
|
851
1101
|
} | undefined;
|
|
1102
|
+
parents?: string[] | undefined;
|
|
1103
|
+
lineageDepth?: number | undefined;
|
|
1104
|
+
workflowId?: string | undefined;
|
|
1105
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1106
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1107
|
+
scriptMetadata?: {
|
|
1108
|
+
experimental: boolean;
|
|
1109
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1110
|
+
version?: string | undefined;
|
|
1111
|
+
notes?: string[] | undefined;
|
|
1112
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1113
|
+
} | undefined;
|
|
852
1114
|
txId?: string | undefined;
|
|
853
1115
|
metadata?: any;
|
|
854
1116
|
}, {
|
|
855
1117
|
status: "signed";
|
|
1118
|
+
version: "1.0.0-alpha";
|
|
856
1119
|
schema: "hardkas.signedTx";
|
|
857
1120
|
hardkasVersion: string;
|
|
858
|
-
version: "1.0.0-alpha";
|
|
859
1121
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
860
1122
|
mode: "simulated" | "real" | "readonly";
|
|
861
1123
|
createdAt: string;
|
|
@@ -876,6 +1138,7 @@ declare const SignedTxSchema: z.ZodObject<{
|
|
|
876
1138
|
format: string;
|
|
877
1139
|
payload: string;
|
|
878
1140
|
};
|
|
1141
|
+
schemaVersion?: string | undefined;
|
|
879
1142
|
hashVersion?: string | number | undefined;
|
|
880
1143
|
contentHash?: string | undefined;
|
|
881
1144
|
lineage?: {
|
|
@@ -885,10 +1148,23 @@ declare const SignedTxSchema: z.ZodObject<{
|
|
|
885
1148
|
parentArtifactId?: string | undefined;
|
|
886
1149
|
sequence?: number | undefined;
|
|
887
1150
|
} | undefined;
|
|
1151
|
+
parents?: string[] | undefined;
|
|
1152
|
+
lineageDepth?: number | undefined;
|
|
1153
|
+
workflowId?: string | undefined;
|
|
1154
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1155
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1156
|
+
scriptMetadata?: {
|
|
1157
|
+
experimental: boolean;
|
|
1158
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1159
|
+
version?: string | undefined;
|
|
1160
|
+
notes?: string[] | undefined;
|
|
1161
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1162
|
+
} | undefined;
|
|
888
1163
|
txId?: string | undefined;
|
|
889
1164
|
metadata?: any;
|
|
890
1165
|
}>;
|
|
891
1166
|
declare const TxTraceSchema: z.ZodObject<{
|
|
1167
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
892
1168
|
hardkasVersion: z.ZodString;
|
|
893
1169
|
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
894
1170
|
hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
@@ -913,6 +1189,30 @@ declare const TxTraceSchema: z.ZodObject<{
|
|
|
913
1189
|
parentArtifactId?: string | undefined;
|
|
914
1190
|
sequence?: number | undefined;
|
|
915
1191
|
}>>;
|
|
1192
|
+
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1193
|
+
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
1194
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
1195
|
+
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
1196
|
+
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
1197
|
+
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
1198
|
+
language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
|
|
1199
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1200
|
+
experimental: z.ZodBoolean;
|
|
1201
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1202
|
+
consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
|
|
1203
|
+
}, "strip", z.ZodTypeAny, {
|
|
1204
|
+
experimental: boolean;
|
|
1205
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1206
|
+
version?: string | undefined;
|
|
1207
|
+
notes?: string[] | undefined;
|
|
1208
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1209
|
+
}, {
|
|
1210
|
+
experimental: boolean;
|
|
1211
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1212
|
+
version?: string | undefined;
|
|
1213
|
+
notes?: string[] | undefined;
|
|
1214
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1215
|
+
}>>;
|
|
916
1216
|
} & {
|
|
917
1217
|
schema: z.ZodLiteral<"hardkas.txTrace">;
|
|
918
1218
|
txId: z.ZodString;
|
|
@@ -983,9 +1283,9 @@ declare const TxTraceSchema: z.ZodObject<{
|
|
|
983
1283
|
nonSelectedContext?: boolean | undefined;
|
|
984
1284
|
}>>;
|
|
985
1285
|
}, "strip", z.ZodTypeAny, {
|
|
1286
|
+
version: "1.0.0-alpha";
|
|
986
1287
|
schema: "hardkas.txTrace";
|
|
987
1288
|
hardkasVersion: string;
|
|
988
|
-
version: "1.0.0-alpha";
|
|
989
1289
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
990
1290
|
mode: "simulated" | "real" | "readonly";
|
|
991
1291
|
createdAt: string;
|
|
@@ -996,6 +1296,7 @@ declare const TxTraceSchema: z.ZodObject<{
|
|
|
996
1296
|
timestamp: string;
|
|
997
1297
|
details?: any;
|
|
998
1298
|
}[];
|
|
1299
|
+
schemaVersion?: string | undefined;
|
|
999
1300
|
hashVersion?: string | number | undefined;
|
|
1000
1301
|
contentHash?: string | undefined;
|
|
1001
1302
|
lineage?: {
|
|
@@ -1005,6 +1306,18 @@ declare const TxTraceSchema: z.ZodObject<{
|
|
|
1005
1306
|
parentArtifactId?: string | undefined;
|
|
1006
1307
|
sequence?: number | undefined;
|
|
1007
1308
|
} | undefined;
|
|
1309
|
+
parents?: string[] | undefined;
|
|
1310
|
+
lineageDepth?: number | undefined;
|
|
1311
|
+
workflowId?: string | undefined;
|
|
1312
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1313
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1314
|
+
scriptMetadata?: {
|
|
1315
|
+
experimental: boolean;
|
|
1316
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1317
|
+
version?: string | undefined;
|
|
1318
|
+
notes?: string[] | undefined;
|
|
1319
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1320
|
+
} | undefined;
|
|
1008
1321
|
dagContext?: {
|
|
1009
1322
|
mode: "linear" | "dag-light";
|
|
1010
1323
|
sink: string;
|
|
@@ -1020,9 +1333,9 @@ declare const TxTraceSchema: z.ZodObject<{
|
|
|
1020
1333
|
nonSelectedContext?: boolean | undefined;
|
|
1021
1334
|
} | undefined;
|
|
1022
1335
|
}, {
|
|
1336
|
+
version: "1.0.0-alpha";
|
|
1023
1337
|
schema: "hardkas.txTrace";
|
|
1024
1338
|
hardkasVersion: string;
|
|
1025
|
-
version: "1.0.0-alpha";
|
|
1026
1339
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
1027
1340
|
mode: "simulated" | "real" | "readonly";
|
|
1028
1341
|
createdAt: string;
|
|
@@ -1033,6 +1346,7 @@ declare const TxTraceSchema: z.ZodObject<{
|
|
|
1033
1346
|
timestamp: string;
|
|
1034
1347
|
details?: any;
|
|
1035
1348
|
}[];
|
|
1349
|
+
schemaVersion?: string | undefined;
|
|
1036
1350
|
hashVersion?: string | number | undefined;
|
|
1037
1351
|
contentHash?: string | undefined;
|
|
1038
1352
|
lineage?: {
|
|
@@ -1042,6 +1356,18 @@ declare const TxTraceSchema: z.ZodObject<{
|
|
|
1042
1356
|
parentArtifactId?: string | undefined;
|
|
1043
1357
|
sequence?: number | undefined;
|
|
1044
1358
|
} | undefined;
|
|
1359
|
+
parents?: string[] | undefined;
|
|
1360
|
+
lineageDepth?: number | undefined;
|
|
1361
|
+
workflowId?: string | undefined;
|
|
1362
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1363
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1364
|
+
scriptMetadata?: {
|
|
1365
|
+
experimental: boolean;
|
|
1366
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1367
|
+
version?: string | undefined;
|
|
1368
|
+
notes?: string[] | undefined;
|
|
1369
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1370
|
+
} | undefined;
|
|
1045
1371
|
dagContext?: {
|
|
1046
1372
|
mode: "linear" | "dag-light";
|
|
1047
1373
|
sink: string;
|
|
@@ -1058,6 +1384,7 @@ declare const TxTraceSchema: z.ZodObject<{
|
|
|
1058
1384
|
} | undefined;
|
|
1059
1385
|
}>;
|
|
1060
1386
|
declare const WorkflowSchema: z.ZodObject<{
|
|
1387
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
1061
1388
|
hardkasVersion: z.ZodString;
|
|
1062
1389
|
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
1063
1390
|
hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
@@ -1084,6 +1411,29 @@ declare const WorkflowSchema: z.ZodObject<{
|
|
|
1084
1411
|
parentArtifactId?: string | undefined;
|
|
1085
1412
|
sequence?: number | undefined;
|
|
1086
1413
|
}>>;
|
|
1414
|
+
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1415
|
+
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
1416
|
+
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
1417
|
+
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
1418
|
+
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
1419
|
+
language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
|
|
1420
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1421
|
+
experimental: z.ZodBoolean;
|
|
1422
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1423
|
+
consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
|
|
1424
|
+
}, "strip", z.ZodTypeAny, {
|
|
1425
|
+
experimental: boolean;
|
|
1426
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1427
|
+
version?: string | undefined;
|
|
1428
|
+
notes?: string[] | undefined;
|
|
1429
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1430
|
+
}, {
|
|
1431
|
+
experimental: boolean;
|
|
1432
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1433
|
+
version?: string | undefined;
|
|
1434
|
+
notes?: string[] | undefined;
|
|
1435
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1436
|
+
}>>;
|
|
1087
1437
|
} & {
|
|
1088
1438
|
schema: z.ZodLiteral<"hardkas.workflow.v1">;
|
|
1089
1439
|
workflowId: z.ZodString;
|
|
@@ -1165,12 +1515,13 @@ declare const WorkflowSchema: z.ZodObject<{
|
|
|
1165
1515
|
}>>;
|
|
1166
1516
|
}, "strip", z.ZodTypeAny, {
|
|
1167
1517
|
status: "pending" | "failed" | "running" | "completed";
|
|
1518
|
+
version: "1.0.0-alpha";
|
|
1168
1519
|
schema: "hardkas.workflow.v1";
|
|
1169
1520
|
hardkasVersion: string;
|
|
1170
|
-
version: "1.0.0-alpha";
|
|
1171
1521
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
1172
1522
|
mode: "simulated" | "real" | "readonly";
|
|
1173
1523
|
createdAt: string;
|
|
1524
|
+
workflowId: string;
|
|
1174
1525
|
steps: {
|
|
1175
1526
|
type: string;
|
|
1176
1527
|
status: "pending" | "failed" | "success" | "skipped";
|
|
@@ -1179,8 +1530,8 @@ declare const WorkflowSchema: z.ZodObject<{
|
|
|
1179
1530
|
producedArtifactId?: string | undefined;
|
|
1180
1531
|
error?: string | undefined;
|
|
1181
1532
|
}[];
|
|
1182
|
-
workflowId: string;
|
|
1183
1533
|
producedArtifacts: string[];
|
|
1534
|
+
schemaVersion?: string | undefined;
|
|
1184
1535
|
hashVersion?: string | number | undefined;
|
|
1185
1536
|
contentHash?: string | undefined;
|
|
1186
1537
|
lineage?: {
|
|
@@ -1190,6 +1541,17 @@ declare const WorkflowSchema: z.ZodObject<{
|
|
|
1190
1541
|
parentArtifactId?: string | undefined;
|
|
1191
1542
|
sequence?: number | undefined;
|
|
1192
1543
|
} | undefined;
|
|
1544
|
+
parents?: string[] | undefined;
|
|
1545
|
+
lineageDepth?: number | undefined;
|
|
1546
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1547
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1548
|
+
scriptMetadata?: {
|
|
1549
|
+
experimental: boolean;
|
|
1550
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1551
|
+
version?: string | undefined;
|
|
1552
|
+
notes?: string[] | undefined;
|
|
1553
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1554
|
+
} | undefined;
|
|
1193
1555
|
inputs?: Record<string, any> | undefined;
|
|
1194
1556
|
parentArtifacts?: string[] | undefined;
|
|
1195
1557
|
generationRange?: {
|
|
@@ -1214,12 +1576,13 @@ declare const WorkflowSchema: z.ZodObject<{
|
|
|
1214
1576
|
} | undefined;
|
|
1215
1577
|
}, {
|
|
1216
1578
|
status: "pending" | "failed" | "running" | "completed";
|
|
1579
|
+
version: "1.0.0-alpha";
|
|
1217
1580
|
schema: "hardkas.workflow.v1";
|
|
1218
1581
|
hardkasVersion: string;
|
|
1219
|
-
version: "1.0.0-alpha";
|
|
1220
1582
|
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
1221
1583
|
mode: "simulated" | "real" | "readonly";
|
|
1222
1584
|
createdAt: string;
|
|
1585
|
+
workflowId: string;
|
|
1223
1586
|
steps: {
|
|
1224
1587
|
type: string;
|
|
1225
1588
|
status: "pending" | "failed" | "success" | "skipped";
|
|
@@ -1228,8 +1591,8 @@ declare const WorkflowSchema: z.ZodObject<{
|
|
|
1228
1591
|
producedArtifactId?: string | undefined;
|
|
1229
1592
|
error?: string | undefined;
|
|
1230
1593
|
}[];
|
|
1231
|
-
workflowId: string;
|
|
1232
1594
|
producedArtifacts: string[];
|
|
1595
|
+
schemaVersion?: string | undefined;
|
|
1233
1596
|
hashVersion?: string | number | undefined;
|
|
1234
1597
|
contentHash?: string | undefined;
|
|
1235
1598
|
lineage?: {
|
|
@@ -1239,6 +1602,17 @@ declare const WorkflowSchema: z.ZodObject<{
|
|
|
1239
1602
|
parentArtifactId?: string | undefined;
|
|
1240
1603
|
sequence?: number | undefined;
|
|
1241
1604
|
} | undefined;
|
|
1605
|
+
parents?: string[] | undefined;
|
|
1606
|
+
lineageDepth?: number | undefined;
|
|
1607
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1608
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1609
|
+
scriptMetadata?: {
|
|
1610
|
+
experimental: boolean;
|
|
1611
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1612
|
+
version?: string | undefined;
|
|
1613
|
+
notes?: string[] | undefined;
|
|
1614
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1615
|
+
} | undefined;
|
|
1242
1616
|
inputs?: Record<string, any> | undefined;
|
|
1243
1617
|
parentArtifacts?: string[] | undefined;
|
|
1244
1618
|
generationRange?: {
|
|
@@ -1269,6 +1643,148 @@ type SignedTx = z.infer<typeof SignedTxSchema>;
|
|
|
1269
1643
|
type TxTrace = z.infer<typeof TxTraceSchema>;
|
|
1270
1644
|
type DagContext$1 = z.infer<typeof DagContextSchema>;
|
|
1271
1645
|
type Workflow = z.infer<typeof WorkflowSchema>;
|
|
1646
|
+
type ScriptCapability = z.infer<typeof ScriptCapabilitySchema>;
|
|
1647
|
+
declare const RuntimeSessionSchema: z.ZodObject<{
|
|
1648
|
+
schema: z.ZodString;
|
|
1649
|
+
schemaVersion: z.ZodOptional<z.ZodString>;
|
|
1650
|
+
hardkasVersion: z.ZodString;
|
|
1651
|
+
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
1652
|
+
hashVersion: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodString]>>;
|
|
1653
|
+
networkId: z.ZodEnum<["mainnet", "testnet-10", "testnet-11", "testnet-12", "simnet", "simnet-1", "devnet", "simulated"]>;
|
|
1654
|
+
mode: z.ZodEnum<["simulated", "real", "readonly"]>;
|
|
1655
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
1656
|
+
createdAt: z.ZodString;
|
|
1657
|
+
lineage: z.ZodOptional<z.ZodObject<{
|
|
1658
|
+
artifactId: z.ZodString;
|
|
1659
|
+
lineageId: z.ZodString;
|
|
1660
|
+
parentArtifactId: z.ZodOptional<z.ZodString>;
|
|
1661
|
+
rootArtifactId: z.ZodString;
|
|
1662
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
1663
|
+
}, "strip", z.ZodTypeAny, {
|
|
1664
|
+
artifactId: string;
|
|
1665
|
+
lineageId: string;
|
|
1666
|
+
rootArtifactId: string;
|
|
1667
|
+
parentArtifactId?: string | undefined;
|
|
1668
|
+
sequence?: number | undefined;
|
|
1669
|
+
}, {
|
|
1670
|
+
artifactId: string;
|
|
1671
|
+
lineageId: string;
|
|
1672
|
+
rootArtifactId: string;
|
|
1673
|
+
parentArtifactId?: string | undefined;
|
|
1674
|
+
sequence?: number | undefined;
|
|
1675
|
+
}>>;
|
|
1676
|
+
parents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1677
|
+
lineageDepth: z.ZodOptional<z.ZodNumber>;
|
|
1678
|
+
workflowId: z.ZodOptional<z.ZodString>;
|
|
1679
|
+
scriptProfile: z.ZodOptional<z.ZodEnum<["standard", "experimental"]>>;
|
|
1680
|
+
scriptCapabilities: z.ZodOptional<z.ZodArray<z.ZodEnum<["p2pk", "multisig", "timelock", "covenant-experimental", "silverscript-experimental", "tockata-experimental"]>, "many">>;
|
|
1681
|
+
scriptMetadata: z.ZodOptional<z.ZodObject<{
|
|
1682
|
+
language: z.ZodOptional<z.ZodEnum<["native", "silverscript", "tockata"]>>;
|
|
1683
|
+
version: z.ZodOptional<z.ZodString>;
|
|
1684
|
+
experimental: z.ZodBoolean;
|
|
1685
|
+
notes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1686
|
+
consensusImpact: z.ZodOptional<z.ZodEnum<["none", "experimental"]>>;
|
|
1687
|
+
}, "strip", z.ZodTypeAny, {
|
|
1688
|
+
experimental: boolean;
|
|
1689
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1690
|
+
version?: string | undefined;
|
|
1691
|
+
notes?: string[] | undefined;
|
|
1692
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1693
|
+
}, {
|
|
1694
|
+
experimental: boolean;
|
|
1695
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1696
|
+
version?: string | undefined;
|
|
1697
|
+
notes?: string[] | undefined;
|
|
1698
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1699
|
+
}>>;
|
|
1700
|
+
} & {
|
|
1701
|
+
sessionId: z.ZodString;
|
|
1702
|
+
workflowIds: z.ZodArray<z.ZodString, "many">;
|
|
1703
|
+
artifactIds: z.ZodArray<z.ZodString, "many">;
|
|
1704
|
+
startedAt: z.ZodString;
|
|
1705
|
+
network: z.ZodString;
|
|
1706
|
+
deterministic: z.ZodBoolean;
|
|
1707
|
+
snapshotOf: z.ZodOptional<z.ZodString>;
|
|
1708
|
+
parentSessionId: z.ZodOptional<z.ZodString>;
|
|
1709
|
+
notes: z.ZodOptional<z.ZodString>;
|
|
1710
|
+
}, "strip", z.ZodTypeAny, {
|
|
1711
|
+
version: "1.0.0-alpha";
|
|
1712
|
+
schema: string;
|
|
1713
|
+
hardkasVersion: string;
|
|
1714
|
+
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
1715
|
+
mode: "simulated" | "real" | "readonly";
|
|
1716
|
+
createdAt: string;
|
|
1717
|
+
startedAt: string;
|
|
1718
|
+
sessionId: string;
|
|
1719
|
+
workflowIds: string[];
|
|
1720
|
+
artifactIds: string[];
|
|
1721
|
+
network: string;
|
|
1722
|
+
deterministic: boolean;
|
|
1723
|
+
notes?: string | undefined;
|
|
1724
|
+
schemaVersion?: string | undefined;
|
|
1725
|
+
hashVersion?: string | number | undefined;
|
|
1726
|
+
contentHash?: string | undefined;
|
|
1727
|
+
lineage?: {
|
|
1728
|
+
artifactId: string;
|
|
1729
|
+
lineageId: string;
|
|
1730
|
+
rootArtifactId: string;
|
|
1731
|
+
parentArtifactId?: string | undefined;
|
|
1732
|
+
sequence?: number | undefined;
|
|
1733
|
+
} | undefined;
|
|
1734
|
+
parents?: string[] | undefined;
|
|
1735
|
+
lineageDepth?: number | undefined;
|
|
1736
|
+
workflowId?: string | undefined;
|
|
1737
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1738
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1739
|
+
scriptMetadata?: {
|
|
1740
|
+
experimental: boolean;
|
|
1741
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1742
|
+
version?: string | undefined;
|
|
1743
|
+
notes?: string[] | undefined;
|
|
1744
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1745
|
+
} | undefined;
|
|
1746
|
+
snapshotOf?: string | undefined;
|
|
1747
|
+
parentSessionId?: string | undefined;
|
|
1748
|
+
}, {
|
|
1749
|
+
version: "1.0.0-alpha";
|
|
1750
|
+
schema: string;
|
|
1751
|
+
hardkasVersion: string;
|
|
1752
|
+
networkId: "simulated" | "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
1753
|
+
mode: "simulated" | "real" | "readonly";
|
|
1754
|
+
createdAt: string;
|
|
1755
|
+
startedAt: string;
|
|
1756
|
+
sessionId: string;
|
|
1757
|
+
workflowIds: string[];
|
|
1758
|
+
artifactIds: string[];
|
|
1759
|
+
network: string;
|
|
1760
|
+
deterministic: boolean;
|
|
1761
|
+
notes?: string | undefined;
|
|
1762
|
+
schemaVersion?: string | undefined;
|
|
1763
|
+
hashVersion?: string | number | undefined;
|
|
1764
|
+
contentHash?: string | undefined;
|
|
1765
|
+
lineage?: {
|
|
1766
|
+
artifactId: string;
|
|
1767
|
+
lineageId: string;
|
|
1768
|
+
rootArtifactId: string;
|
|
1769
|
+
parentArtifactId?: string | undefined;
|
|
1770
|
+
sequence?: number | undefined;
|
|
1771
|
+
} | undefined;
|
|
1772
|
+
parents?: string[] | undefined;
|
|
1773
|
+
lineageDepth?: number | undefined;
|
|
1774
|
+
workflowId?: string | undefined;
|
|
1775
|
+
scriptProfile?: "experimental" | "standard" | undefined;
|
|
1776
|
+
scriptCapabilities?: ("p2pk" | "multisig" | "timelock" | "covenant-experimental" | "silverscript-experimental" | "tockata-experimental")[] | undefined;
|
|
1777
|
+
scriptMetadata?: {
|
|
1778
|
+
experimental: boolean;
|
|
1779
|
+
language?: "native" | "silverscript" | "tockata" | undefined;
|
|
1780
|
+
version?: string | undefined;
|
|
1781
|
+
notes?: string[] | undefined;
|
|
1782
|
+
consensusImpact?: "experimental" | "none" | undefined;
|
|
1783
|
+
} | undefined;
|
|
1784
|
+
snapshotOf?: string | undefined;
|
|
1785
|
+
parentSessionId?: string | undefined;
|
|
1786
|
+
}>;
|
|
1787
|
+
type RuntimeSession = z.infer<typeof RuntimeSessionSchema>;
|
|
1272
1788
|
|
|
1273
1789
|
interface ArtifactValidationResult {
|
|
1274
1790
|
ok: boolean;
|
|
@@ -1354,6 +1870,7 @@ declare function createIgraDeployPlanId(hash: string): string;
|
|
|
1354
1870
|
type AssumptionLevel = "dev" | "trusted" | "network-observed";
|
|
1355
1871
|
interface HardkasArtifactBase {
|
|
1356
1872
|
schema: HardkasArtifactSchema;
|
|
1873
|
+
schemaVersion?: string;
|
|
1357
1874
|
hardkasVersion: string;
|
|
1358
1875
|
version: string;
|
|
1359
1876
|
hashVersion?: number | string;
|
|
@@ -1363,6 +1880,7 @@ interface HardkasArtifactBase {
|
|
|
1363
1880
|
}
|
|
1364
1881
|
interface BaseArtifact<T extends ArtifactType> {
|
|
1365
1882
|
schema: `hardkas.${T}`;
|
|
1883
|
+
schemaVersion?: string;
|
|
1366
1884
|
hardkasVersion: string;
|
|
1367
1885
|
version: string;
|
|
1368
1886
|
hashVersion?: number | string;
|
|
@@ -1683,13 +2201,14 @@ declare const SEMANTIC_EXCLUSIONS: Set<string>;
|
|
|
1683
2201
|
* v3: String normalization (\r\n -> \n, NFC) for cross-platform stability.
|
|
1684
2202
|
*/
|
|
1685
2203
|
declare const CURRENT_HASH_VERSION = 3;
|
|
2204
|
+
declare const STRICT_PATH_KEYS: Set<string>;
|
|
1686
2205
|
/**
|
|
1687
2206
|
* Deterministically stringifies an object by sorting keys recursively.
|
|
1688
2207
|
* Handles BigInt by converting to string with type marker.
|
|
1689
2208
|
* Excludes fields in SEMANTIC_EXCLUSIONS during serialization.
|
|
1690
2209
|
* Skips keys with undefined values (matching JSON.stringify behavior).
|
|
1691
2210
|
*/
|
|
1692
|
-
declare function canonicalStringify(obj: unknown, version?: number): string;
|
|
2211
|
+
declare function canonicalStringify(obj: unknown, version?: number, keyName?: string): string;
|
|
1693
2212
|
/**
|
|
1694
2213
|
* Calculates a SHA-256 hash of the canonical JSON representation.
|
|
1695
2214
|
* Always excludes fields in SEMANTIC_EXCLUSIONS from the calculation.
|
|
@@ -2213,4 +2732,4 @@ declare function listDeployments(rootDir: string, networkId?: string): Promise<D
|
|
|
2213
2732
|
declare function updateDeployment(rootDir: string, networkId: string, label: string, update: Partial<DeploymentRecord>): Promise<DeploymentRecord>;
|
|
2214
2733
|
declare function deleteDeployment(rootDir: string, networkId: string, label: string): Promise<boolean>;
|
|
2215
2734
|
|
|
2216
|
-
export { ARTIFACT_SCHEMAS, ARTIFACT_VERSION, AccountRefSchema, type ArtifactDiff, type ArtifactExplanation, ArtifactLineageSchema, type ArtifactLookup, type ArtifactPayload, type ArtifactValidationResult, type ArtifactVerificationResult, type AssumptionLevel, type BaseArtifact, BaseArtifactSchema, BasicCorrelationInvariant, BasicLineageInvariant, CURRENT_HASH_VERSION, type Clock, type CreateTxPlanArtifactOptions, type DagContext, DagContextSchema, type DeploymentIndex, type DeploymentRecord, type DeploymentSummary, type DiffEntry, type DraftArtifact, type FeeAuditResult, HARDKAS_VERSION, type HardkasArtifactBase, type HardkasArtifactMode, type HardkasArtifactSchema, HashInvariant, type IgraSignedTxArtifact, type IgraTxPlanArtifact, type IgraTxReceiptArtifact, type IgraTxRequestArtifact, type Invariant, type InvariantContext, type InvariantViolation, InvariantWatcher, LifecycleInvariant, type LineageOptions, type LineageValidationResult, LocalnetUtxoSchemaV2, type MigrationResult, type MigrationStep, NetworkInvariant, ReplayInvariant, SEMANTIC_EXCLUSIONS, SchemaInvariant, type SignedTx, type SignedTxArtifact, type SignedTxArtifactV1, SignedTxSchema, type Snapshot, type SnapshotArtifact, SnapshotSchema, type TxOutputArtifact, type TxPlan, type TxPlanArtifact, type TxPlanArtifactV1, TxPlanSchema, type TxReceipt, type TxReceiptArtifact, type TxReceiptArtifactV1, TxReceiptSchema, type TxTrace, type TxTraceArtifact, type TxTraceArtifactV1, TxTraceSchema, type UtxoArtifact, type VerificationContext, type VerificationIssue, type VerificationSeverity, type WatcherOptions, type Workflow, type WorkflowArtifact, WorkflowSchema, assertDecimalBigIntString, assertEvmAddress, assertEvmTxHash, assertHexData, assertValidIgraSignedTxArtifact, assertValidIgraTxPlanArtifact, assertValidIgraTxReceiptArtifact, assertValidSignedTxArtifact, assertValidTxPlanArtifact, assertValidTxReceiptArtifact, bigIntReplacer, calculateContentHash, canMigrate, canonicalStringify, createDeploymentRecord, createIgraDeployPlanId, createIgraPlanId, createIgraSignedId, createSimulatedSignedTxArtifact, createSimulatedTxReceipt, createTxPlanArtifact, defaultClock, deleteDeployment, detectArtifactVersion, diffArtifacts, explainArtifact, formatSignedTxArtifact, formatTxPlanArtifact, formatTxReceiptArtifact, getBroadcastableSignedTransaction, getDefaultL2ReceiptsDir, getDefaultReceiptPath, getL2ReceiptPath, getMigrationPath, getRegisteredMigrationSteps, isIgraTxPlanArtifact, listDeployments, listIgraTxReceiptArtifacts, loadDeployment, loadIgraTxReceiptArtifact, migrateArtifactPayload, migrateToCanonical, readArtifact, readSignedTxArtifact, readTxPlanArtifact, readTxReceiptArtifact, recomputeMass, registerMigrationStep, saveDeployment, saveIgraTxReceiptArtifact, sortUtxosByOutpoint, txOutputFromArtifact, txOutputToArtifact, updateDeployment, updateDeploymentStatus, utxoFromArtifact, utxoToArtifact, validateArtifact, validateIgraSignedTxArtifact, validateIgraTxPlanArtifact, validateIgraTxReceiptArtifact, validateSignedTxArtifact, validateTxPlanArtifact, validateTxReceiptArtifact, verifyArtifact, verifyArtifactFile, verifyArtifactIntegrity, verifyArtifactReplay, verifyArtifactSemantics, verifyFeeSemantics, verifyLineage, writeArtifact };
|
|
2735
|
+
export { ARTIFACT_SCHEMAS, ARTIFACT_VERSION, AccountRefSchema, type ArtifactDiff, type ArtifactExplanation, ArtifactLineageSchema, type ArtifactLookup, type ArtifactPayload, type ArtifactValidationResult, type ArtifactVerificationResult, type AssumptionLevel, type BaseArtifact, BaseArtifactSchema, BasicCorrelationInvariant, BasicLineageInvariant, CURRENT_HASH_VERSION, type Clock, type CreateTxPlanArtifactOptions, type DagContext, DagContextSchema, type DeploymentIndex, type DeploymentRecord, type DeploymentSummary, type DiffEntry, type DraftArtifact, type FeeAuditResult, HARDKAS_VERSION, type HardkasArtifactBase, type HardkasArtifactMode, type HardkasArtifactSchema, HashInvariant, type IgraSignedTxArtifact, type IgraTxPlanArtifact, type IgraTxReceiptArtifact, type IgraTxRequestArtifact, type Invariant, type InvariantContext, type InvariantViolation, InvariantWatcher, LifecycleInvariant, type LineageOptions, type LineageValidationResult, LocalnetUtxoSchemaV2, type MigrationResult, type MigrationStep, NetworkInvariant, ReplayInvariant, type RuntimeSession, RuntimeSessionSchema, SEMANTIC_EXCLUSIONS, STRICT_PATH_KEYS, SchemaInvariant, type ScriptCapability, ScriptCapabilitySchema, ScriptMetadataSchema, type SignedTx, type SignedTxArtifact, type SignedTxArtifactV1, SignedTxSchema, type Snapshot, type SnapshotArtifact, SnapshotSchema, type TxOutputArtifact, type TxPlan, type TxPlanArtifact, type TxPlanArtifactV1, TxPlanSchema, type TxReceipt, type TxReceiptArtifact, type TxReceiptArtifactV1, TxReceiptSchema, type TxTrace, type TxTraceArtifact, type TxTraceArtifactV1, TxTraceSchema, type UtxoArtifact, type VerificationContext, type VerificationIssue, type VerificationSeverity, type WatcherOptions, type Workflow, type WorkflowArtifact, WorkflowSchema, assertDecimalBigIntString, assertEvmAddress, assertEvmTxHash, assertHexData, assertValidIgraSignedTxArtifact, assertValidIgraTxPlanArtifact, assertValidIgraTxReceiptArtifact, assertValidSignedTxArtifact, assertValidTxPlanArtifact, assertValidTxReceiptArtifact, bigIntReplacer, calculateContentHash, canMigrate, canonicalStringify, createDeploymentRecord, createIgraDeployPlanId, createIgraPlanId, createIgraSignedId, createSimulatedSignedTxArtifact, createSimulatedTxReceipt, createTxPlanArtifact, defaultClock, deleteDeployment, detectArtifactVersion, diffArtifacts, explainArtifact, formatSignedTxArtifact, formatTxPlanArtifact, formatTxReceiptArtifact, getBroadcastableSignedTransaction, getDefaultL2ReceiptsDir, getDefaultReceiptPath, getL2ReceiptPath, getMigrationPath, getRegisteredMigrationSteps, isIgraTxPlanArtifact, listDeployments, listIgraTxReceiptArtifacts, loadDeployment, loadIgraTxReceiptArtifact, migrateArtifactPayload, migrateToCanonical, readArtifact, readSignedTxArtifact, readTxPlanArtifact, readTxReceiptArtifact, recomputeMass, registerMigrationStep, saveDeployment, saveIgraTxReceiptArtifact, sortUtxosByOutpoint, txOutputFromArtifact, txOutputToArtifact, updateDeployment, updateDeploymentStatus, utxoFromArtifact, utxoToArtifact, validateArtifact, validateIgraSignedTxArtifact, validateIgraTxPlanArtifact, validateIgraTxReceiptArtifact, validateSignedTxArtifact, validateTxPlanArtifact, validateTxReceiptArtifact, verifyArtifact, verifyArtifactFile, verifyArtifactIntegrity, verifyArtifactReplay, verifyArtifactSemantics, verifyFeeSemantics, verifyLineage, writeArtifact };
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@hardkas/artifacts",
|
|
4
|
-
version: "0.
|
|
4
|
+
version: "0.7.0-alpha",
|
|
5
5
|
type: "module",
|
|
6
6
|
license: "MIT",
|
|
7
7
|
author: "Javier Rodriguez",
|
|
@@ -205,7 +205,18 @@ var SEMANTIC_EXCLUSIONS = /* @__PURE__ */ new Set([
|
|
|
205
205
|
"dagContext"
|
|
206
206
|
]);
|
|
207
207
|
var CURRENT_HASH_VERSION = 3;
|
|
208
|
-
|
|
208
|
+
var STRICT_PATH_KEYS = /* @__PURE__ */ new Set([
|
|
209
|
+
"file_path",
|
|
210
|
+
"sandboxSnapshotPath",
|
|
211
|
+
"receiptPath",
|
|
212
|
+
"tracePath",
|
|
213
|
+
"outputPath",
|
|
214
|
+
"artifactPath",
|
|
215
|
+
"workspacePath",
|
|
216
|
+
"relativePath",
|
|
217
|
+
"absolutePath"
|
|
218
|
+
]);
|
|
219
|
+
function canonicalStringify(obj, version = CURRENT_HASH_VERSION, keyName) {
|
|
209
220
|
if (obj === null || typeof obj !== "object") {
|
|
210
221
|
if (typeof obj === "bigint") {
|
|
211
222
|
if (version >= 2) {
|
|
@@ -214,13 +225,16 @@ function canonicalStringify(obj, version = CURRENT_HASH_VERSION) {
|
|
|
214
225
|
return JSON.stringify(obj.toString());
|
|
215
226
|
}
|
|
216
227
|
if (typeof obj === "string" && version >= 3) {
|
|
217
|
-
|
|
228
|
+
let normalized = obj.normalize("NFC").replace(/\r\n/g, "\n");
|
|
229
|
+
if (keyName && STRICT_PATH_KEYS.has(keyName)) {
|
|
230
|
+
normalized = normalized.replace(/\\/g, "/");
|
|
231
|
+
}
|
|
218
232
|
return JSON.stringify(normalized);
|
|
219
233
|
}
|
|
220
234
|
return JSON.stringify(obj);
|
|
221
235
|
}
|
|
222
236
|
if (Array.isArray(obj)) {
|
|
223
|
-
return "[" + obj.map((item) => canonicalStringify(item, version)).join(",") + "]";
|
|
237
|
+
return "[" + obj.map((item) => canonicalStringify(item, version, keyName)).join(",") + "]";
|
|
224
238
|
}
|
|
225
239
|
if (obj instanceof Map) {
|
|
226
240
|
throw new Error("Map is not canonicalizable. Use a plain object.");
|
|
@@ -240,7 +254,7 @@ function canonicalStringify(obj, version = CURRENT_HASH_VERSION) {
|
|
|
240
254
|
).sort(deterministicCompare);
|
|
241
255
|
const result = sortedKeys.map((key) => {
|
|
242
256
|
const value = obj[key];
|
|
243
|
-
return JSON.stringify(key) + ":" + canonicalStringify(value, version);
|
|
257
|
+
return JSON.stringify(key) + ":" + canonicalStringify(value, version, key);
|
|
244
258
|
}).join(",");
|
|
245
259
|
return "{" + result + "}";
|
|
246
260
|
}
|
|
@@ -260,8 +274,24 @@ var ArtifactLineageSchema = z.object({
|
|
|
260
274
|
rootArtifactId: z.string(),
|
|
261
275
|
sequence: z.number().optional()
|
|
262
276
|
});
|
|
277
|
+
var ScriptCapabilitySchema = z.enum([
|
|
278
|
+
"p2pk",
|
|
279
|
+
"multisig",
|
|
280
|
+
"timelock",
|
|
281
|
+
"covenant-experimental",
|
|
282
|
+
"silverscript-experimental",
|
|
283
|
+
"tockata-experimental"
|
|
284
|
+
]);
|
|
285
|
+
var ScriptMetadataSchema = z.object({
|
|
286
|
+
language: z.enum(["native", "silverscript", "tockata"]).optional(),
|
|
287
|
+
version: z.string().optional(),
|
|
288
|
+
experimental: z.boolean(),
|
|
289
|
+
notes: z.array(z.string()).optional(),
|
|
290
|
+
consensusImpact: z.enum(["none", "experimental"]).optional()
|
|
291
|
+
});
|
|
263
292
|
var BaseArtifactSchema = z.object({
|
|
264
293
|
schema: z.string(),
|
|
294
|
+
schemaVersion: z.string().optional(),
|
|
265
295
|
hardkasVersion: z.string(),
|
|
266
296
|
version: z.literal(ARTIFACT_VERSION),
|
|
267
297
|
hashVersion: z.union([z.number(), z.string()]).optional(),
|
|
@@ -269,7 +299,13 @@ var BaseArtifactSchema = z.object({
|
|
|
269
299
|
mode: executionModeSchema,
|
|
270
300
|
contentHash: z.string().optional(),
|
|
271
301
|
createdAt: z.string().datetime(),
|
|
272
|
-
lineage: ArtifactLineageSchema.optional()
|
|
302
|
+
lineage: ArtifactLineageSchema.optional(),
|
|
303
|
+
parents: z.array(z.string()).optional(),
|
|
304
|
+
lineageDepth: z.number().optional(),
|
|
305
|
+
workflowId: z.string().optional(),
|
|
306
|
+
scriptProfile: z.enum(["standard", "experimental"]).optional(),
|
|
307
|
+
scriptCapabilities: z.array(ScriptCapabilitySchema).optional(),
|
|
308
|
+
scriptMetadata: ScriptMetadataSchema.optional()
|
|
273
309
|
});
|
|
274
310
|
var AccountRefSchema = z.object({
|
|
275
311
|
address: z.string(),
|
|
@@ -429,6 +465,17 @@ var WorkflowSchema = BaseArtifactSchema.extend({
|
|
|
429
465
|
redacted: z.boolean()
|
|
430
466
|
}).optional()
|
|
431
467
|
});
|
|
468
|
+
var RuntimeSessionSchema = BaseArtifactSchema.extend({
|
|
469
|
+
sessionId: z.string(),
|
|
470
|
+
workflowIds: z.array(z.string()),
|
|
471
|
+
artifactIds: z.array(z.string()),
|
|
472
|
+
startedAt: z.string().datetime(),
|
|
473
|
+
network: z.string(),
|
|
474
|
+
deterministic: z.boolean(),
|
|
475
|
+
snapshotOf: z.string().optional(),
|
|
476
|
+
parentSessionId: z.string().optional(),
|
|
477
|
+
notes: z.string().optional()
|
|
478
|
+
});
|
|
432
479
|
|
|
433
480
|
// src/verify.ts
|
|
434
481
|
import fs from "fs";
|
|
@@ -1312,6 +1359,7 @@ function createTxPlanArtifact(options) {
|
|
|
1312
1359
|
const artifact = {
|
|
1313
1360
|
schema: "hardkas.txPlan",
|
|
1314
1361
|
hardkasVersion: HARDKAS_VERSION,
|
|
1362
|
+
schemaVersion: "hardkas.artifact.v1",
|
|
1315
1363
|
version: ARTIFACT_VERSION,
|
|
1316
1364
|
hashVersion: CURRENT_HASH_VERSION,
|
|
1317
1365
|
createdAt: new Date(options.ctx.clock.now()).toISOString(),
|
|
@@ -1358,6 +1406,7 @@ function createTxPlanArtifact(options) {
|
|
|
1358
1406
|
function createSimulatedSignedTxArtifact(plan, payload, ctx) {
|
|
1359
1407
|
const artifact = {
|
|
1360
1408
|
schema: "hardkas.signedTx",
|
|
1409
|
+
schemaVersion: "hardkas.artifact.v1",
|
|
1361
1410
|
hardkasVersion: HARDKAS_VERSION,
|
|
1362
1411
|
version: ARTIFACT_VERSION,
|
|
1363
1412
|
hashVersion: CURRENT_HASH_VERSION,
|
|
@@ -1383,6 +1432,7 @@ function createSimulatedSignedTxArtifact(plan, payload, ctx) {
|
|
|
1383
1432
|
function createSimulatedTxReceipt(plan, txId, ctx, extra) {
|
|
1384
1433
|
const artifact = {
|
|
1385
1434
|
schema: "hardkas.txReceipt",
|
|
1435
|
+
schemaVersion: "hardkas.receipt.v1",
|
|
1386
1436
|
hardkasVersion: HARDKAS_VERSION,
|
|
1387
1437
|
version: ARTIFACT_VERSION,
|
|
1388
1438
|
hashVersion: CURRENT_HASH_VERSION,
|
|
@@ -1809,8 +1859,12 @@ export {
|
|
|
1809
1859
|
LocalnetUtxoSchemaV2,
|
|
1810
1860
|
NetworkInvariant,
|
|
1811
1861
|
ReplayInvariant,
|
|
1862
|
+
RuntimeSessionSchema,
|
|
1812
1863
|
SEMANTIC_EXCLUSIONS,
|
|
1864
|
+
STRICT_PATH_KEYS,
|
|
1813
1865
|
SchemaInvariant,
|
|
1866
|
+
ScriptCapabilitySchema,
|
|
1867
|
+
ScriptMetadataSchema,
|
|
1814
1868
|
SignedTxSchema,
|
|
1815
1869
|
SnapshotSchema,
|
|
1816
1870
|
TxPlanSchema,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hardkas/artifacts",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.1-alpha",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Javier Rodriguez",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
"types": "./dist/index.d.ts",
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"zod": "^3.24.1",
|
|
27
|
-
"@hardkas/core": "0.
|
|
28
|
-
"@hardkas/tx-builder": "0.
|
|
27
|
+
"@hardkas/core": "0.7.1-alpha",
|
|
28
|
+
"@hardkas/tx-builder": "0.7.1-alpha"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"tsup": "^8.3.5",
|