@hardkas/artifacts 0.1.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.
- package/LICENSE +21 -0
- package/dist/index.d.ts +1736 -0
- package/dist/index.js +1434 -0
- package/package.json +41 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,1736 @@
|
|
|
1
|
+
import { ArtifactType, NetworkId, ExecutionMode, ContentHash, WorkflowId, ArtifactId, LineageId, EventSequence, KaspaAddress, TxId, EventEnvelope } from '@hardkas/core';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { TxOutput, Utxo, TxPlan as TxPlan$1 } from '@hardkas/tx-builder';
|
|
4
|
+
|
|
5
|
+
declare const HARDKAS_VERSION = "0.2.0-alpha";
|
|
6
|
+
declare const ARTIFACT_SCHEMAS: {
|
|
7
|
+
readonly LOCALNET_STATE: "hardkas.localnetState.v1";
|
|
8
|
+
readonly REAL_ACCOUNT_STORE: "hardkas.realAccountStore.v1";
|
|
9
|
+
readonly TX_PLAN: "hardkas.txPlan";
|
|
10
|
+
readonly SIGNED_TX: "hardkas.signedTx";
|
|
11
|
+
readonly TX_RECEIPT: "hardkas.txReceipt";
|
|
12
|
+
readonly TX_TRACE: "hardkas.txTrace";
|
|
13
|
+
readonly SNAPSHOT: "hardkas.snapshot";
|
|
14
|
+
readonly IGRA_TX_PLAN: "hardkas.igraTxPlan.v1";
|
|
15
|
+
readonly IGRA_SIGNED_TX: "hardkas.igraSignedTx.v1";
|
|
16
|
+
readonly IGRA_TX_RECEIPT: "hardkas.igraTxReceipt.v1";
|
|
17
|
+
};
|
|
18
|
+
type HardkasArtifactSchema = typeof ARTIFACT_SCHEMAS[keyof typeof ARTIFACT_SCHEMAS] | string;
|
|
19
|
+
type HardkasArtifactMode = "simulated" | "node" | "rpc" | "l2-rpc" | "real";
|
|
20
|
+
|
|
21
|
+
declare const ARTIFACT_VERSION = "1.0.0-alpha";
|
|
22
|
+
declare const ArtifactLineageSchema: z.ZodObject<{
|
|
23
|
+
artifactId: z.ZodString;
|
|
24
|
+
lineageId: z.ZodString;
|
|
25
|
+
parentArtifactId: z.ZodOptional<z.ZodString>;
|
|
26
|
+
rootArtifactId: z.ZodString;
|
|
27
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
28
|
+
}, "strip", z.ZodTypeAny, {
|
|
29
|
+
artifactId: string;
|
|
30
|
+
lineageId: string;
|
|
31
|
+
rootArtifactId: string;
|
|
32
|
+
parentArtifactId?: string | undefined;
|
|
33
|
+
sequence?: number | undefined;
|
|
34
|
+
}, {
|
|
35
|
+
artifactId: string;
|
|
36
|
+
lineageId: string;
|
|
37
|
+
rootArtifactId: string;
|
|
38
|
+
parentArtifactId?: string | undefined;
|
|
39
|
+
sequence?: number | undefined;
|
|
40
|
+
}>;
|
|
41
|
+
declare const BaseArtifactSchema: z.ZodObject<{
|
|
42
|
+
schema: z.ZodString;
|
|
43
|
+
hardkasVersion: z.ZodString;
|
|
44
|
+
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
45
|
+
networkId: z.ZodEnum<["mainnet", "testnet-10", "testnet-11", "testnet-12", "simnet", "simnet-1", "devnet"]>;
|
|
46
|
+
mode: z.ZodEnum<["simulated", "real", "readonly"]>;
|
|
47
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
48
|
+
createdAt: z.ZodString;
|
|
49
|
+
lineage: z.ZodOptional<z.ZodObject<{
|
|
50
|
+
artifactId: z.ZodString;
|
|
51
|
+
lineageId: z.ZodString;
|
|
52
|
+
parentArtifactId: z.ZodOptional<z.ZodString>;
|
|
53
|
+
rootArtifactId: z.ZodString;
|
|
54
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
}, "strip", z.ZodTypeAny, {
|
|
56
|
+
artifactId: string;
|
|
57
|
+
lineageId: string;
|
|
58
|
+
rootArtifactId: string;
|
|
59
|
+
parentArtifactId?: string | undefined;
|
|
60
|
+
sequence?: number | undefined;
|
|
61
|
+
}, {
|
|
62
|
+
artifactId: string;
|
|
63
|
+
lineageId: string;
|
|
64
|
+
rootArtifactId: string;
|
|
65
|
+
parentArtifactId?: string | undefined;
|
|
66
|
+
sequence?: number | undefined;
|
|
67
|
+
}>>;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
schema: string;
|
|
70
|
+
hardkasVersion: string;
|
|
71
|
+
version: "1.0.0-alpha";
|
|
72
|
+
networkId: "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
73
|
+
mode: "simulated" | "real" | "readonly";
|
|
74
|
+
createdAt: string;
|
|
75
|
+
contentHash?: string | undefined;
|
|
76
|
+
lineage?: {
|
|
77
|
+
artifactId: string;
|
|
78
|
+
lineageId: string;
|
|
79
|
+
rootArtifactId: string;
|
|
80
|
+
parentArtifactId?: string | undefined;
|
|
81
|
+
sequence?: number | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
schema: string;
|
|
85
|
+
hardkasVersion: string;
|
|
86
|
+
version: "1.0.0-alpha";
|
|
87
|
+
networkId: "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
88
|
+
mode: "simulated" | "real" | "readonly";
|
|
89
|
+
createdAt: string;
|
|
90
|
+
contentHash?: string | undefined;
|
|
91
|
+
lineage?: {
|
|
92
|
+
artifactId: string;
|
|
93
|
+
lineageId: string;
|
|
94
|
+
rootArtifactId: string;
|
|
95
|
+
parentArtifactId?: string | undefined;
|
|
96
|
+
sequence?: number | undefined;
|
|
97
|
+
} | undefined;
|
|
98
|
+
}>;
|
|
99
|
+
declare const AccountRefSchema: z.ZodObject<{
|
|
100
|
+
address: z.ZodString;
|
|
101
|
+
accountName: z.ZodOptional<z.ZodString>;
|
|
102
|
+
input: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
address: string;
|
|
105
|
+
accountName?: string | undefined;
|
|
106
|
+
input?: string | undefined;
|
|
107
|
+
}, {
|
|
108
|
+
address: string;
|
|
109
|
+
accountName?: string | undefined;
|
|
110
|
+
input?: string | undefined;
|
|
111
|
+
}>;
|
|
112
|
+
declare const TxPlanSchema: z.ZodObject<{
|
|
113
|
+
hardkasVersion: z.ZodString;
|
|
114
|
+
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
115
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
116
|
+
createdAt: z.ZodString;
|
|
117
|
+
lineage: z.ZodOptional<z.ZodObject<{
|
|
118
|
+
artifactId: z.ZodString;
|
|
119
|
+
lineageId: z.ZodString;
|
|
120
|
+
parentArtifactId: z.ZodOptional<z.ZodString>;
|
|
121
|
+
rootArtifactId: z.ZodString;
|
|
122
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
123
|
+
}, "strip", z.ZodTypeAny, {
|
|
124
|
+
artifactId: string;
|
|
125
|
+
lineageId: string;
|
|
126
|
+
rootArtifactId: string;
|
|
127
|
+
parentArtifactId?: string | undefined;
|
|
128
|
+
sequence?: number | undefined;
|
|
129
|
+
}, {
|
|
130
|
+
artifactId: string;
|
|
131
|
+
lineageId: string;
|
|
132
|
+
rootArtifactId: string;
|
|
133
|
+
parentArtifactId?: string | undefined;
|
|
134
|
+
sequence?: number | undefined;
|
|
135
|
+
}>>;
|
|
136
|
+
} & {
|
|
137
|
+
schema: z.ZodLiteral<"hardkas.txPlan">;
|
|
138
|
+
networkId: z.ZodEnum<["mainnet", "testnet-10", "testnet-11", "testnet-12", "simnet", "simnet-1", "devnet"]>;
|
|
139
|
+
mode: z.ZodEnum<["simulated", "real", "readonly"]>;
|
|
140
|
+
planId: z.ZodString;
|
|
141
|
+
from: z.ZodObject<{
|
|
142
|
+
address: z.ZodString;
|
|
143
|
+
accountName: z.ZodOptional<z.ZodString>;
|
|
144
|
+
input: z.ZodOptional<z.ZodString>;
|
|
145
|
+
}, "strip", z.ZodTypeAny, {
|
|
146
|
+
address: string;
|
|
147
|
+
accountName?: string | undefined;
|
|
148
|
+
input?: string | undefined;
|
|
149
|
+
}, {
|
|
150
|
+
address: string;
|
|
151
|
+
accountName?: string | undefined;
|
|
152
|
+
input?: string | undefined;
|
|
153
|
+
}>;
|
|
154
|
+
to: z.ZodObject<{
|
|
155
|
+
address: z.ZodString;
|
|
156
|
+
accountName: z.ZodOptional<z.ZodString>;
|
|
157
|
+
input: z.ZodOptional<z.ZodString>;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
address: string;
|
|
160
|
+
accountName?: string | undefined;
|
|
161
|
+
input?: string | undefined;
|
|
162
|
+
}, {
|
|
163
|
+
address: string;
|
|
164
|
+
accountName?: string | undefined;
|
|
165
|
+
input?: string | undefined;
|
|
166
|
+
}>;
|
|
167
|
+
amountSompi: z.ZodString;
|
|
168
|
+
estimatedFeeSompi: z.ZodString;
|
|
169
|
+
estimatedMass: z.ZodString;
|
|
170
|
+
inputs: z.ZodArray<z.ZodObject<{
|
|
171
|
+
outpoint: z.ZodObject<{
|
|
172
|
+
transactionId: z.ZodString;
|
|
173
|
+
index: z.ZodNumber;
|
|
174
|
+
}, "strip", z.ZodTypeAny, {
|
|
175
|
+
transactionId: string;
|
|
176
|
+
index: number;
|
|
177
|
+
}, {
|
|
178
|
+
transactionId: string;
|
|
179
|
+
index: number;
|
|
180
|
+
}>;
|
|
181
|
+
amountSompi: z.ZodString;
|
|
182
|
+
}, "strip", z.ZodTypeAny, {
|
|
183
|
+
amountSompi: string;
|
|
184
|
+
outpoint: {
|
|
185
|
+
transactionId: string;
|
|
186
|
+
index: number;
|
|
187
|
+
};
|
|
188
|
+
}, {
|
|
189
|
+
amountSompi: string;
|
|
190
|
+
outpoint: {
|
|
191
|
+
transactionId: string;
|
|
192
|
+
index: number;
|
|
193
|
+
};
|
|
194
|
+
}>, "many">;
|
|
195
|
+
outputs: z.ZodArray<z.ZodObject<{
|
|
196
|
+
address: z.ZodString;
|
|
197
|
+
amountSompi: z.ZodString;
|
|
198
|
+
}, "strip", z.ZodTypeAny, {
|
|
199
|
+
address: string;
|
|
200
|
+
amountSompi: string;
|
|
201
|
+
}, {
|
|
202
|
+
address: string;
|
|
203
|
+
amountSompi: string;
|
|
204
|
+
}>, "many">;
|
|
205
|
+
change: z.ZodOptional<z.ZodObject<{
|
|
206
|
+
address: z.ZodString;
|
|
207
|
+
amountSompi: z.ZodString;
|
|
208
|
+
}, "strip", z.ZodTypeAny, {
|
|
209
|
+
address: string;
|
|
210
|
+
amountSompi: string;
|
|
211
|
+
}, {
|
|
212
|
+
address: string;
|
|
213
|
+
amountSompi: string;
|
|
214
|
+
}>>;
|
|
215
|
+
rpcUrl: z.ZodOptional<z.ZodString>;
|
|
216
|
+
}, "strip", z.ZodTypeAny, {
|
|
217
|
+
schema: "hardkas.txPlan";
|
|
218
|
+
hardkasVersion: string;
|
|
219
|
+
version: "1.0.0-alpha";
|
|
220
|
+
networkId: "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
221
|
+
mode: "simulated" | "real" | "readonly";
|
|
222
|
+
createdAt: string;
|
|
223
|
+
planId: string;
|
|
224
|
+
from: {
|
|
225
|
+
address: string;
|
|
226
|
+
accountName?: string | undefined;
|
|
227
|
+
input?: string | undefined;
|
|
228
|
+
};
|
|
229
|
+
to: {
|
|
230
|
+
address: string;
|
|
231
|
+
accountName?: string | undefined;
|
|
232
|
+
input?: string | undefined;
|
|
233
|
+
};
|
|
234
|
+
amountSompi: string;
|
|
235
|
+
estimatedFeeSompi: string;
|
|
236
|
+
estimatedMass: string;
|
|
237
|
+
inputs: {
|
|
238
|
+
amountSompi: string;
|
|
239
|
+
outpoint: {
|
|
240
|
+
transactionId: string;
|
|
241
|
+
index: number;
|
|
242
|
+
};
|
|
243
|
+
}[];
|
|
244
|
+
outputs: {
|
|
245
|
+
address: string;
|
|
246
|
+
amountSompi: string;
|
|
247
|
+
}[];
|
|
248
|
+
contentHash?: string | undefined;
|
|
249
|
+
lineage?: {
|
|
250
|
+
artifactId: string;
|
|
251
|
+
lineageId: string;
|
|
252
|
+
rootArtifactId: string;
|
|
253
|
+
parentArtifactId?: string | undefined;
|
|
254
|
+
sequence?: number | undefined;
|
|
255
|
+
} | undefined;
|
|
256
|
+
change?: {
|
|
257
|
+
address: string;
|
|
258
|
+
amountSompi: string;
|
|
259
|
+
} | undefined;
|
|
260
|
+
rpcUrl?: string | undefined;
|
|
261
|
+
}, {
|
|
262
|
+
schema: "hardkas.txPlan";
|
|
263
|
+
hardkasVersion: string;
|
|
264
|
+
version: "1.0.0-alpha";
|
|
265
|
+
networkId: "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
266
|
+
mode: "simulated" | "real" | "readonly";
|
|
267
|
+
createdAt: string;
|
|
268
|
+
planId: string;
|
|
269
|
+
from: {
|
|
270
|
+
address: string;
|
|
271
|
+
accountName?: string | undefined;
|
|
272
|
+
input?: string | undefined;
|
|
273
|
+
};
|
|
274
|
+
to: {
|
|
275
|
+
address: string;
|
|
276
|
+
accountName?: string | undefined;
|
|
277
|
+
input?: string | undefined;
|
|
278
|
+
};
|
|
279
|
+
amountSompi: string;
|
|
280
|
+
estimatedFeeSompi: string;
|
|
281
|
+
estimatedMass: string;
|
|
282
|
+
inputs: {
|
|
283
|
+
amountSompi: string;
|
|
284
|
+
outpoint: {
|
|
285
|
+
transactionId: string;
|
|
286
|
+
index: number;
|
|
287
|
+
};
|
|
288
|
+
}[];
|
|
289
|
+
outputs: {
|
|
290
|
+
address: string;
|
|
291
|
+
amountSompi: string;
|
|
292
|
+
}[];
|
|
293
|
+
contentHash?: string | undefined;
|
|
294
|
+
lineage?: {
|
|
295
|
+
artifactId: string;
|
|
296
|
+
lineageId: string;
|
|
297
|
+
rootArtifactId: string;
|
|
298
|
+
parentArtifactId?: string | undefined;
|
|
299
|
+
sequence?: number | undefined;
|
|
300
|
+
} | undefined;
|
|
301
|
+
change?: {
|
|
302
|
+
address: string;
|
|
303
|
+
amountSompi: string;
|
|
304
|
+
} | undefined;
|
|
305
|
+
rpcUrl?: string | undefined;
|
|
306
|
+
}>;
|
|
307
|
+
declare const DagContextSchema: z.ZodObject<{
|
|
308
|
+
mode: z.ZodEnum<["linear", "dag-light"]>;
|
|
309
|
+
sink: z.ZodString;
|
|
310
|
+
selectedParent: z.ZodOptional<z.ZodString>;
|
|
311
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
312
|
+
acceptedTxIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
313
|
+
displacedTxIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
314
|
+
conflictSet: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
315
|
+
outpoint: z.ZodString;
|
|
316
|
+
winnerTxId: z.ZodString;
|
|
317
|
+
loserTxIds: z.ZodArray<z.ZodString, "many">;
|
|
318
|
+
}, "strip", z.ZodTypeAny, {
|
|
319
|
+
outpoint: string;
|
|
320
|
+
winnerTxId: string;
|
|
321
|
+
loserTxIds: string[];
|
|
322
|
+
}, {
|
|
323
|
+
outpoint: string;
|
|
324
|
+
winnerTxId: string;
|
|
325
|
+
loserTxIds: string[];
|
|
326
|
+
}>, "many">>;
|
|
327
|
+
nonSelectedContext: z.ZodOptional<z.ZodBoolean>;
|
|
328
|
+
}, "strip", z.ZodTypeAny, {
|
|
329
|
+
mode: "linear" | "dag-light";
|
|
330
|
+
sink: string;
|
|
331
|
+
selectedParent?: string | undefined;
|
|
332
|
+
branchId?: string | undefined;
|
|
333
|
+
acceptedTxIds?: string[] | undefined;
|
|
334
|
+
displacedTxIds?: string[] | undefined;
|
|
335
|
+
conflictSet?: {
|
|
336
|
+
outpoint: string;
|
|
337
|
+
winnerTxId: string;
|
|
338
|
+
loserTxIds: string[];
|
|
339
|
+
}[] | undefined;
|
|
340
|
+
nonSelectedContext?: boolean | undefined;
|
|
341
|
+
}, {
|
|
342
|
+
mode: "linear" | "dag-light";
|
|
343
|
+
sink: string;
|
|
344
|
+
selectedParent?: string | undefined;
|
|
345
|
+
branchId?: string | undefined;
|
|
346
|
+
acceptedTxIds?: string[] | undefined;
|
|
347
|
+
displacedTxIds?: string[] | undefined;
|
|
348
|
+
conflictSet?: {
|
|
349
|
+
outpoint: string;
|
|
350
|
+
winnerTxId: string;
|
|
351
|
+
loserTxIds: string[];
|
|
352
|
+
}[] | undefined;
|
|
353
|
+
nonSelectedContext?: boolean | undefined;
|
|
354
|
+
}>;
|
|
355
|
+
declare const LocalnetUtxoSchemaV2: z.ZodObject<{
|
|
356
|
+
id: z.ZodString;
|
|
357
|
+
address: z.ZodString;
|
|
358
|
+
amountSompi: z.ZodString;
|
|
359
|
+
spent: z.ZodBoolean;
|
|
360
|
+
createdAtDaaScore: z.ZodString;
|
|
361
|
+
}, "strip", z.ZodTypeAny, {
|
|
362
|
+
address: string;
|
|
363
|
+
amountSompi: string;
|
|
364
|
+
id: string;
|
|
365
|
+
spent: boolean;
|
|
366
|
+
createdAtDaaScore: string;
|
|
367
|
+
}, {
|
|
368
|
+
address: string;
|
|
369
|
+
amountSompi: string;
|
|
370
|
+
id: string;
|
|
371
|
+
spent: boolean;
|
|
372
|
+
createdAtDaaScore: string;
|
|
373
|
+
}>;
|
|
374
|
+
declare const SnapshotSchema: z.ZodObject<{
|
|
375
|
+
hardkasVersion: z.ZodString;
|
|
376
|
+
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
377
|
+
networkId: z.ZodEnum<["mainnet", "testnet-10", "testnet-11", "testnet-12", "simnet", "simnet-1", "devnet"]>;
|
|
378
|
+
mode: z.ZodEnum<["simulated", "real", "readonly"]>;
|
|
379
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
380
|
+
createdAt: z.ZodString;
|
|
381
|
+
lineage: z.ZodOptional<z.ZodObject<{
|
|
382
|
+
artifactId: z.ZodString;
|
|
383
|
+
lineageId: z.ZodString;
|
|
384
|
+
parentArtifactId: z.ZodOptional<z.ZodString>;
|
|
385
|
+
rootArtifactId: z.ZodString;
|
|
386
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
387
|
+
}, "strip", z.ZodTypeAny, {
|
|
388
|
+
artifactId: string;
|
|
389
|
+
lineageId: string;
|
|
390
|
+
rootArtifactId: string;
|
|
391
|
+
parentArtifactId?: string | undefined;
|
|
392
|
+
sequence?: number | undefined;
|
|
393
|
+
}, {
|
|
394
|
+
artifactId: string;
|
|
395
|
+
lineageId: string;
|
|
396
|
+
rootArtifactId: string;
|
|
397
|
+
parentArtifactId?: string | undefined;
|
|
398
|
+
sequence?: number | undefined;
|
|
399
|
+
}>>;
|
|
400
|
+
} & {
|
|
401
|
+
schema: z.ZodLiteral<"hardkas.snapshot">;
|
|
402
|
+
name: z.ZodOptional<z.ZodString>;
|
|
403
|
+
daaScore: z.ZodString;
|
|
404
|
+
accountsHash: z.ZodOptional<z.ZodString>;
|
|
405
|
+
utxoSetHash: z.ZodOptional<z.ZodString>;
|
|
406
|
+
stateHash: z.ZodOptional<z.ZodString>;
|
|
407
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
408
|
+
name: z.ZodString;
|
|
409
|
+
address: z.ZodString;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
address: string;
|
|
412
|
+
name: string;
|
|
413
|
+
}, {
|
|
414
|
+
address: string;
|
|
415
|
+
name: string;
|
|
416
|
+
}>, "many">;
|
|
417
|
+
utxos: z.ZodArray<z.ZodObject<{
|
|
418
|
+
id: z.ZodString;
|
|
419
|
+
address: z.ZodString;
|
|
420
|
+
amountSompi: z.ZodString;
|
|
421
|
+
spent: z.ZodBoolean;
|
|
422
|
+
createdAtDaaScore: z.ZodString;
|
|
423
|
+
}, "strip", z.ZodTypeAny, {
|
|
424
|
+
address: string;
|
|
425
|
+
amountSompi: string;
|
|
426
|
+
id: string;
|
|
427
|
+
spent: boolean;
|
|
428
|
+
createdAtDaaScore: string;
|
|
429
|
+
}, {
|
|
430
|
+
address: string;
|
|
431
|
+
amountSompi: string;
|
|
432
|
+
id: string;
|
|
433
|
+
spent: boolean;
|
|
434
|
+
createdAtDaaScore: string;
|
|
435
|
+
}>, "many">;
|
|
436
|
+
}, "strip", z.ZodTypeAny, {
|
|
437
|
+
schema: "hardkas.snapshot";
|
|
438
|
+
hardkasVersion: string;
|
|
439
|
+
version: "1.0.0-alpha";
|
|
440
|
+
networkId: "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
441
|
+
mode: "simulated" | "real" | "readonly";
|
|
442
|
+
createdAt: string;
|
|
443
|
+
daaScore: string;
|
|
444
|
+
accounts: {
|
|
445
|
+
address: string;
|
|
446
|
+
name: string;
|
|
447
|
+
}[];
|
|
448
|
+
utxos: {
|
|
449
|
+
address: string;
|
|
450
|
+
amountSompi: string;
|
|
451
|
+
id: string;
|
|
452
|
+
spent: boolean;
|
|
453
|
+
createdAtDaaScore: string;
|
|
454
|
+
}[];
|
|
455
|
+
contentHash?: string | undefined;
|
|
456
|
+
lineage?: {
|
|
457
|
+
artifactId: string;
|
|
458
|
+
lineageId: string;
|
|
459
|
+
rootArtifactId: string;
|
|
460
|
+
parentArtifactId?: string | undefined;
|
|
461
|
+
sequence?: number | undefined;
|
|
462
|
+
} | undefined;
|
|
463
|
+
name?: string | undefined;
|
|
464
|
+
accountsHash?: string | undefined;
|
|
465
|
+
utxoSetHash?: string | undefined;
|
|
466
|
+
stateHash?: string | undefined;
|
|
467
|
+
}, {
|
|
468
|
+
schema: "hardkas.snapshot";
|
|
469
|
+
hardkasVersion: string;
|
|
470
|
+
version: "1.0.0-alpha";
|
|
471
|
+
networkId: "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
472
|
+
mode: "simulated" | "real" | "readonly";
|
|
473
|
+
createdAt: string;
|
|
474
|
+
daaScore: string;
|
|
475
|
+
accounts: {
|
|
476
|
+
address: string;
|
|
477
|
+
name: string;
|
|
478
|
+
}[];
|
|
479
|
+
utxos: {
|
|
480
|
+
address: string;
|
|
481
|
+
amountSompi: string;
|
|
482
|
+
id: string;
|
|
483
|
+
spent: boolean;
|
|
484
|
+
createdAtDaaScore: string;
|
|
485
|
+
}[];
|
|
486
|
+
contentHash?: string | undefined;
|
|
487
|
+
lineage?: {
|
|
488
|
+
artifactId: string;
|
|
489
|
+
lineageId: string;
|
|
490
|
+
rootArtifactId: string;
|
|
491
|
+
parentArtifactId?: string | undefined;
|
|
492
|
+
sequence?: number | undefined;
|
|
493
|
+
} | undefined;
|
|
494
|
+
name?: string | undefined;
|
|
495
|
+
accountsHash?: string | undefined;
|
|
496
|
+
utxoSetHash?: string | undefined;
|
|
497
|
+
stateHash?: string | undefined;
|
|
498
|
+
}>;
|
|
499
|
+
declare const TxReceiptSchema: z.ZodObject<{
|
|
500
|
+
hardkasVersion: z.ZodString;
|
|
501
|
+
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
502
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
503
|
+
createdAt: z.ZodString;
|
|
504
|
+
lineage: z.ZodOptional<z.ZodObject<{
|
|
505
|
+
artifactId: z.ZodString;
|
|
506
|
+
lineageId: z.ZodString;
|
|
507
|
+
parentArtifactId: z.ZodOptional<z.ZodString>;
|
|
508
|
+
rootArtifactId: z.ZodString;
|
|
509
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
510
|
+
}, "strip", z.ZodTypeAny, {
|
|
511
|
+
artifactId: string;
|
|
512
|
+
lineageId: string;
|
|
513
|
+
rootArtifactId: string;
|
|
514
|
+
parentArtifactId?: string | undefined;
|
|
515
|
+
sequence?: number | undefined;
|
|
516
|
+
}, {
|
|
517
|
+
artifactId: string;
|
|
518
|
+
lineageId: string;
|
|
519
|
+
rootArtifactId: string;
|
|
520
|
+
parentArtifactId?: string | undefined;
|
|
521
|
+
sequence?: number | undefined;
|
|
522
|
+
}>>;
|
|
523
|
+
} & {
|
|
524
|
+
schema: z.ZodLiteral<"hardkas.txReceipt">;
|
|
525
|
+
txId: z.ZodString;
|
|
526
|
+
status: z.ZodEnum<["pending", "submitted", "accepted", "confirmed", "failed"]>;
|
|
527
|
+
mode: z.ZodEnum<["simulated", "real", "readonly"]>;
|
|
528
|
+
networkId: z.ZodEnum<["mainnet", "testnet-10", "testnet-11", "testnet-12", "simnet", "simnet-1", "devnet"]>;
|
|
529
|
+
from: z.ZodObject<{
|
|
530
|
+
address: z.ZodString;
|
|
531
|
+
accountName: z.ZodOptional<z.ZodString>;
|
|
532
|
+
input: z.ZodOptional<z.ZodString>;
|
|
533
|
+
}, "strip", z.ZodTypeAny, {
|
|
534
|
+
address: string;
|
|
535
|
+
accountName?: string | undefined;
|
|
536
|
+
input?: string | undefined;
|
|
537
|
+
}, {
|
|
538
|
+
address: string;
|
|
539
|
+
accountName?: string | undefined;
|
|
540
|
+
input?: string | undefined;
|
|
541
|
+
}>;
|
|
542
|
+
to: z.ZodObject<{
|
|
543
|
+
address: z.ZodString;
|
|
544
|
+
accountName: z.ZodOptional<z.ZodString>;
|
|
545
|
+
input: z.ZodOptional<z.ZodString>;
|
|
546
|
+
}, "strip", z.ZodTypeAny, {
|
|
547
|
+
address: string;
|
|
548
|
+
accountName?: string | undefined;
|
|
549
|
+
input?: string | undefined;
|
|
550
|
+
}, {
|
|
551
|
+
address: string;
|
|
552
|
+
accountName?: string | undefined;
|
|
553
|
+
input?: string | undefined;
|
|
554
|
+
}>;
|
|
555
|
+
amountSompi: z.ZodString;
|
|
556
|
+
feeSompi: z.ZodString;
|
|
557
|
+
mass: z.ZodOptional<z.ZodString>;
|
|
558
|
+
changeSompi: z.ZodOptional<z.ZodString>;
|
|
559
|
+
spentUtxoIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
560
|
+
createdUtxoIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
561
|
+
daaScore: z.ZodOptional<z.ZodString>;
|
|
562
|
+
preStateHash: z.ZodOptional<z.ZodString>;
|
|
563
|
+
postStateHash: z.ZodOptional<z.ZodString>;
|
|
564
|
+
submittedAt: z.ZodOptional<z.ZodString>;
|
|
565
|
+
confirmedAt: z.ZodOptional<z.ZodString>;
|
|
566
|
+
dagContext: z.ZodOptional<z.ZodObject<{
|
|
567
|
+
mode: z.ZodEnum<["linear", "dag-light"]>;
|
|
568
|
+
sink: z.ZodString;
|
|
569
|
+
selectedParent: z.ZodOptional<z.ZodString>;
|
|
570
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
571
|
+
acceptedTxIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
572
|
+
displacedTxIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
573
|
+
conflictSet: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
574
|
+
outpoint: z.ZodString;
|
|
575
|
+
winnerTxId: z.ZodString;
|
|
576
|
+
loserTxIds: z.ZodArray<z.ZodString, "many">;
|
|
577
|
+
}, "strip", z.ZodTypeAny, {
|
|
578
|
+
outpoint: string;
|
|
579
|
+
winnerTxId: string;
|
|
580
|
+
loserTxIds: string[];
|
|
581
|
+
}, {
|
|
582
|
+
outpoint: string;
|
|
583
|
+
winnerTxId: string;
|
|
584
|
+
loserTxIds: string[];
|
|
585
|
+
}>, "many">>;
|
|
586
|
+
nonSelectedContext: z.ZodOptional<z.ZodBoolean>;
|
|
587
|
+
}, "strip", z.ZodTypeAny, {
|
|
588
|
+
mode: "linear" | "dag-light";
|
|
589
|
+
sink: string;
|
|
590
|
+
selectedParent?: string | undefined;
|
|
591
|
+
branchId?: string | undefined;
|
|
592
|
+
acceptedTxIds?: string[] | undefined;
|
|
593
|
+
displacedTxIds?: string[] | undefined;
|
|
594
|
+
conflictSet?: {
|
|
595
|
+
outpoint: string;
|
|
596
|
+
winnerTxId: string;
|
|
597
|
+
loserTxIds: string[];
|
|
598
|
+
}[] | undefined;
|
|
599
|
+
nonSelectedContext?: boolean | undefined;
|
|
600
|
+
}, {
|
|
601
|
+
mode: "linear" | "dag-light";
|
|
602
|
+
sink: string;
|
|
603
|
+
selectedParent?: string | undefined;
|
|
604
|
+
branchId?: string | undefined;
|
|
605
|
+
acceptedTxIds?: string[] | undefined;
|
|
606
|
+
displacedTxIds?: string[] | undefined;
|
|
607
|
+
conflictSet?: {
|
|
608
|
+
outpoint: string;
|
|
609
|
+
winnerTxId: string;
|
|
610
|
+
loserTxIds: string[];
|
|
611
|
+
}[] | undefined;
|
|
612
|
+
nonSelectedContext?: boolean | undefined;
|
|
613
|
+
}>>;
|
|
614
|
+
tracePath: z.ZodOptional<z.ZodString>;
|
|
615
|
+
rpcUrl: z.ZodOptional<z.ZodString>;
|
|
616
|
+
sourceSignedId: z.ZodOptional<z.ZodString>;
|
|
617
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
618
|
+
}, "strip", z.ZodTypeAny, {
|
|
619
|
+
status: "pending" | "submitted" | "accepted" | "confirmed" | "failed";
|
|
620
|
+
schema: "hardkas.txReceipt";
|
|
621
|
+
hardkasVersion: string;
|
|
622
|
+
version: "1.0.0-alpha";
|
|
623
|
+
networkId: "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
624
|
+
mode: "simulated" | "real" | "readonly";
|
|
625
|
+
createdAt: string;
|
|
626
|
+
from: {
|
|
627
|
+
address: string;
|
|
628
|
+
accountName?: string | undefined;
|
|
629
|
+
input?: string | undefined;
|
|
630
|
+
};
|
|
631
|
+
to: {
|
|
632
|
+
address: string;
|
|
633
|
+
accountName?: string | undefined;
|
|
634
|
+
input?: string | undefined;
|
|
635
|
+
};
|
|
636
|
+
amountSompi: string;
|
|
637
|
+
txId: string;
|
|
638
|
+
feeSompi: string;
|
|
639
|
+
contentHash?: string | undefined;
|
|
640
|
+
lineage?: {
|
|
641
|
+
artifactId: string;
|
|
642
|
+
lineageId: string;
|
|
643
|
+
rootArtifactId: string;
|
|
644
|
+
parentArtifactId?: string | undefined;
|
|
645
|
+
sequence?: number | undefined;
|
|
646
|
+
} | undefined;
|
|
647
|
+
rpcUrl?: string | undefined;
|
|
648
|
+
daaScore?: string | undefined;
|
|
649
|
+
mass?: string | undefined;
|
|
650
|
+
changeSompi?: string | undefined;
|
|
651
|
+
spentUtxoIds?: string[] | undefined;
|
|
652
|
+
createdUtxoIds?: string[] | undefined;
|
|
653
|
+
preStateHash?: string | undefined;
|
|
654
|
+
postStateHash?: string | undefined;
|
|
655
|
+
submittedAt?: string | undefined;
|
|
656
|
+
confirmedAt?: string | undefined;
|
|
657
|
+
dagContext?: {
|
|
658
|
+
mode: "linear" | "dag-light";
|
|
659
|
+
sink: string;
|
|
660
|
+
selectedParent?: string | undefined;
|
|
661
|
+
branchId?: string | undefined;
|
|
662
|
+
acceptedTxIds?: string[] | undefined;
|
|
663
|
+
displacedTxIds?: string[] | undefined;
|
|
664
|
+
conflictSet?: {
|
|
665
|
+
outpoint: string;
|
|
666
|
+
winnerTxId: string;
|
|
667
|
+
loserTxIds: string[];
|
|
668
|
+
}[] | undefined;
|
|
669
|
+
nonSelectedContext?: boolean | undefined;
|
|
670
|
+
} | undefined;
|
|
671
|
+
tracePath?: string | undefined;
|
|
672
|
+
sourceSignedId?: string | undefined;
|
|
673
|
+
metadata?: any;
|
|
674
|
+
}, {
|
|
675
|
+
status: "pending" | "submitted" | "accepted" | "confirmed" | "failed";
|
|
676
|
+
schema: "hardkas.txReceipt";
|
|
677
|
+
hardkasVersion: string;
|
|
678
|
+
version: "1.0.0-alpha";
|
|
679
|
+
networkId: "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
680
|
+
mode: "simulated" | "real" | "readonly";
|
|
681
|
+
createdAt: string;
|
|
682
|
+
from: {
|
|
683
|
+
address: string;
|
|
684
|
+
accountName?: string | undefined;
|
|
685
|
+
input?: string | undefined;
|
|
686
|
+
};
|
|
687
|
+
to: {
|
|
688
|
+
address: string;
|
|
689
|
+
accountName?: string | undefined;
|
|
690
|
+
input?: string | undefined;
|
|
691
|
+
};
|
|
692
|
+
amountSompi: string;
|
|
693
|
+
txId: string;
|
|
694
|
+
feeSompi: string;
|
|
695
|
+
contentHash?: string | undefined;
|
|
696
|
+
lineage?: {
|
|
697
|
+
artifactId: string;
|
|
698
|
+
lineageId: string;
|
|
699
|
+
rootArtifactId: string;
|
|
700
|
+
parentArtifactId?: string | undefined;
|
|
701
|
+
sequence?: number | undefined;
|
|
702
|
+
} | undefined;
|
|
703
|
+
rpcUrl?: string | undefined;
|
|
704
|
+
daaScore?: string | undefined;
|
|
705
|
+
mass?: string | undefined;
|
|
706
|
+
changeSompi?: string | undefined;
|
|
707
|
+
spentUtxoIds?: string[] | undefined;
|
|
708
|
+
createdUtxoIds?: string[] | undefined;
|
|
709
|
+
preStateHash?: string | undefined;
|
|
710
|
+
postStateHash?: string | undefined;
|
|
711
|
+
submittedAt?: string | undefined;
|
|
712
|
+
confirmedAt?: string | undefined;
|
|
713
|
+
dagContext?: {
|
|
714
|
+
mode: "linear" | "dag-light";
|
|
715
|
+
sink: string;
|
|
716
|
+
selectedParent?: string | undefined;
|
|
717
|
+
branchId?: string | undefined;
|
|
718
|
+
acceptedTxIds?: string[] | undefined;
|
|
719
|
+
displacedTxIds?: string[] | undefined;
|
|
720
|
+
conflictSet?: {
|
|
721
|
+
outpoint: string;
|
|
722
|
+
winnerTxId: string;
|
|
723
|
+
loserTxIds: string[];
|
|
724
|
+
}[] | undefined;
|
|
725
|
+
nonSelectedContext?: boolean | undefined;
|
|
726
|
+
} | undefined;
|
|
727
|
+
tracePath?: string | undefined;
|
|
728
|
+
sourceSignedId?: string | undefined;
|
|
729
|
+
metadata?: any;
|
|
730
|
+
}>;
|
|
731
|
+
declare const SignedTxSchema: z.ZodObject<{
|
|
732
|
+
hardkasVersion: z.ZodString;
|
|
733
|
+
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
734
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
735
|
+
createdAt: z.ZodString;
|
|
736
|
+
lineage: z.ZodOptional<z.ZodObject<{
|
|
737
|
+
artifactId: z.ZodString;
|
|
738
|
+
lineageId: z.ZodString;
|
|
739
|
+
parentArtifactId: z.ZodOptional<z.ZodString>;
|
|
740
|
+
rootArtifactId: z.ZodString;
|
|
741
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
742
|
+
}, "strip", z.ZodTypeAny, {
|
|
743
|
+
artifactId: string;
|
|
744
|
+
lineageId: string;
|
|
745
|
+
rootArtifactId: string;
|
|
746
|
+
parentArtifactId?: string | undefined;
|
|
747
|
+
sequence?: number | undefined;
|
|
748
|
+
}, {
|
|
749
|
+
artifactId: string;
|
|
750
|
+
lineageId: string;
|
|
751
|
+
rootArtifactId: string;
|
|
752
|
+
parentArtifactId?: string | undefined;
|
|
753
|
+
sequence?: number | undefined;
|
|
754
|
+
}>>;
|
|
755
|
+
} & {
|
|
756
|
+
schema: z.ZodLiteral<"hardkas.signedTx">;
|
|
757
|
+
status: z.ZodLiteral<"signed">;
|
|
758
|
+
signedId: z.ZodString;
|
|
759
|
+
sourcePlanId: z.ZodString;
|
|
760
|
+
networkId: z.ZodEnum<["mainnet", "testnet-10", "testnet-11", "testnet-12", "simnet", "simnet-1", "devnet"]>;
|
|
761
|
+
mode: z.ZodEnum<["simulated", "real", "readonly"]>;
|
|
762
|
+
from: z.ZodObject<{
|
|
763
|
+
address: z.ZodString;
|
|
764
|
+
accountName: z.ZodOptional<z.ZodString>;
|
|
765
|
+
input: z.ZodOptional<z.ZodString>;
|
|
766
|
+
}, "strip", z.ZodTypeAny, {
|
|
767
|
+
address: string;
|
|
768
|
+
accountName?: string | undefined;
|
|
769
|
+
input?: string | undefined;
|
|
770
|
+
}, {
|
|
771
|
+
address: string;
|
|
772
|
+
accountName?: string | undefined;
|
|
773
|
+
input?: string | undefined;
|
|
774
|
+
}>;
|
|
775
|
+
to: z.ZodObject<{
|
|
776
|
+
address: z.ZodString;
|
|
777
|
+
accountName: z.ZodOptional<z.ZodString>;
|
|
778
|
+
input: z.ZodOptional<z.ZodString>;
|
|
779
|
+
}, "strip", z.ZodTypeAny, {
|
|
780
|
+
address: string;
|
|
781
|
+
accountName?: string | undefined;
|
|
782
|
+
input?: string | undefined;
|
|
783
|
+
}, {
|
|
784
|
+
address: string;
|
|
785
|
+
accountName?: string | undefined;
|
|
786
|
+
input?: string | undefined;
|
|
787
|
+
}>;
|
|
788
|
+
amountSompi: z.ZodString;
|
|
789
|
+
signedTransaction: z.ZodObject<{
|
|
790
|
+
format: z.ZodString;
|
|
791
|
+
payload: z.ZodString;
|
|
792
|
+
}, "strip", z.ZodTypeAny, {
|
|
793
|
+
format: string;
|
|
794
|
+
payload: string;
|
|
795
|
+
}, {
|
|
796
|
+
format: string;
|
|
797
|
+
payload: string;
|
|
798
|
+
}>;
|
|
799
|
+
txId: z.ZodOptional<z.ZodString>;
|
|
800
|
+
metadata: z.ZodOptional<z.ZodAny>;
|
|
801
|
+
}, "strip", z.ZodTypeAny, {
|
|
802
|
+
status: "signed";
|
|
803
|
+
schema: "hardkas.signedTx";
|
|
804
|
+
hardkasVersion: string;
|
|
805
|
+
version: "1.0.0-alpha";
|
|
806
|
+
networkId: "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
807
|
+
mode: "simulated" | "real" | "readonly";
|
|
808
|
+
createdAt: string;
|
|
809
|
+
from: {
|
|
810
|
+
address: string;
|
|
811
|
+
accountName?: string | undefined;
|
|
812
|
+
input?: string | undefined;
|
|
813
|
+
};
|
|
814
|
+
to: {
|
|
815
|
+
address: string;
|
|
816
|
+
accountName?: string | undefined;
|
|
817
|
+
input?: string | undefined;
|
|
818
|
+
};
|
|
819
|
+
amountSompi: string;
|
|
820
|
+
signedId: string;
|
|
821
|
+
sourcePlanId: string;
|
|
822
|
+
signedTransaction: {
|
|
823
|
+
format: string;
|
|
824
|
+
payload: string;
|
|
825
|
+
};
|
|
826
|
+
contentHash?: string | undefined;
|
|
827
|
+
lineage?: {
|
|
828
|
+
artifactId: string;
|
|
829
|
+
lineageId: string;
|
|
830
|
+
rootArtifactId: string;
|
|
831
|
+
parentArtifactId?: string | undefined;
|
|
832
|
+
sequence?: number | undefined;
|
|
833
|
+
} | undefined;
|
|
834
|
+
txId?: string | undefined;
|
|
835
|
+
metadata?: any;
|
|
836
|
+
}, {
|
|
837
|
+
status: "signed";
|
|
838
|
+
schema: "hardkas.signedTx";
|
|
839
|
+
hardkasVersion: string;
|
|
840
|
+
version: "1.0.0-alpha";
|
|
841
|
+
networkId: "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
842
|
+
mode: "simulated" | "real" | "readonly";
|
|
843
|
+
createdAt: string;
|
|
844
|
+
from: {
|
|
845
|
+
address: string;
|
|
846
|
+
accountName?: string | undefined;
|
|
847
|
+
input?: string | undefined;
|
|
848
|
+
};
|
|
849
|
+
to: {
|
|
850
|
+
address: string;
|
|
851
|
+
accountName?: string | undefined;
|
|
852
|
+
input?: string | undefined;
|
|
853
|
+
};
|
|
854
|
+
amountSompi: string;
|
|
855
|
+
signedId: string;
|
|
856
|
+
sourcePlanId: string;
|
|
857
|
+
signedTransaction: {
|
|
858
|
+
format: string;
|
|
859
|
+
payload: string;
|
|
860
|
+
};
|
|
861
|
+
contentHash?: string | undefined;
|
|
862
|
+
lineage?: {
|
|
863
|
+
artifactId: string;
|
|
864
|
+
lineageId: string;
|
|
865
|
+
rootArtifactId: string;
|
|
866
|
+
parentArtifactId?: string | undefined;
|
|
867
|
+
sequence?: number | undefined;
|
|
868
|
+
} | undefined;
|
|
869
|
+
txId?: string | undefined;
|
|
870
|
+
metadata?: any;
|
|
871
|
+
}>;
|
|
872
|
+
declare const TxTraceSchema: z.ZodObject<{
|
|
873
|
+
hardkasVersion: z.ZodString;
|
|
874
|
+
version: z.ZodLiteral<"1.0.0-alpha">;
|
|
875
|
+
contentHash: z.ZodOptional<z.ZodString>;
|
|
876
|
+
createdAt: z.ZodString;
|
|
877
|
+
lineage: z.ZodOptional<z.ZodObject<{
|
|
878
|
+
artifactId: z.ZodString;
|
|
879
|
+
lineageId: z.ZodString;
|
|
880
|
+
parentArtifactId: z.ZodOptional<z.ZodString>;
|
|
881
|
+
rootArtifactId: z.ZodString;
|
|
882
|
+
sequence: z.ZodOptional<z.ZodNumber>;
|
|
883
|
+
}, "strip", z.ZodTypeAny, {
|
|
884
|
+
artifactId: string;
|
|
885
|
+
lineageId: string;
|
|
886
|
+
rootArtifactId: string;
|
|
887
|
+
parentArtifactId?: string | undefined;
|
|
888
|
+
sequence?: number | undefined;
|
|
889
|
+
}, {
|
|
890
|
+
artifactId: string;
|
|
891
|
+
lineageId: string;
|
|
892
|
+
rootArtifactId: string;
|
|
893
|
+
parentArtifactId?: string | undefined;
|
|
894
|
+
sequence?: number | undefined;
|
|
895
|
+
}>>;
|
|
896
|
+
} & {
|
|
897
|
+
schema: z.ZodLiteral<"hardkas.txTrace">;
|
|
898
|
+
txId: z.ZodString;
|
|
899
|
+
networkId: z.ZodEnum<["mainnet", "testnet-10", "testnet-11", "testnet-12", "simnet", "simnet-1", "devnet"]>;
|
|
900
|
+
mode: z.ZodEnum<["simulated", "real", "readonly"]>;
|
|
901
|
+
steps: z.ZodArray<z.ZodObject<{
|
|
902
|
+
phase: z.ZodString;
|
|
903
|
+
status: z.ZodString;
|
|
904
|
+
timestamp: z.ZodString;
|
|
905
|
+
details: z.ZodOptional<z.ZodAny>;
|
|
906
|
+
}, "strip", z.ZodTypeAny, {
|
|
907
|
+
status: string;
|
|
908
|
+
phase: string;
|
|
909
|
+
timestamp: string;
|
|
910
|
+
details?: any;
|
|
911
|
+
}, {
|
|
912
|
+
status: string;
|
|
913
|
+
phase: string;
|
|
914
|
+
timestamp: string;
|
|
915
|
+
details?: any;
|
|
916
|
+
}>, "many">;
|
|
917
|
+
dagContext: z.ZodOptional<z.ZodObject<{
|
|
918
|
+
mode: z.ZodEnum<["linear", "dag-light"]>;
|
|
919
|
+
sink: z.ZodString;
|
|
920
|
+
selectedParent: z.ZodOptional<z.ZodString>;
|
|
921
|
+
branchId: z.ZodOptional<z.ZodString>;
|
|
922
|
+
acceptedTxIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
923
|
+
displacedTxIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
924
|
+
conflictSet: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
925
|
+
outpoint: z.ZodString;
|
|
926
|
+
winnerTxId: z.ZodString;
|
|
927
|
+
loserTxIds: z.ZodArray<z.ZodString, "many">;
|
|
928
|
+
}, "strip", z.ZodTypeAny, {
|
|
929
|
+
outpoint: string;
|
|
930
|
+
winnerTxId: string;
|
|
931
|
+
loserTxIds: string[];
|
|
932
|
+
}, {
|
|
933
|
+
outpoint: string;
|
|
934
|
+
winnerTxId: string;
|
|
935
|
+
loserTxIds: string[];
|
|
936
|
+
}>, "many">>;
|
|
937
|
+
nonSelectedContext: z.ZodOptional<z.ZodBoolean>;
|
|
938
|
+
}, "strip", z.ZodTypeAny, {
|
|
939
|
+
mode: "linear" | "dag-light";
|
|
940
|
+
sink: string;
|
|
941
|
+
selectedParent?: string | undefined;
|
|
942
|
+
branchId?: string | undefined;
|
|
943
|
+
acceptedTxIds?: string[] | undefined;
|
|
944
|
+
displacedTxIds?: string[] | undefined;
|
|
945
|
+
conflictSet?: {
|
|
946
|
+
outpoint: string;
|
|
947
|
+
winnerTxId: string;
|
|
948
|
+
loserTxIds: string[];
|
|
949
|
+
}[] | undefined;
|
|
950
|
+
nonSelectedContext?: boolean | undefined;
|
|
951
|
+
}, {
|
|
952
|
+
mode: "linear" | "dag-light";
|
|
953
|
+
sink: string;
|
|
954
|
+
selectedParent?: string | undefined;
|
|
955
|
+
branchId?: string | undefined;
|
|
956
|
+
acceptedTxIds?: string[] | undefined;
|
|
957
|
+
displacedTxIds?: string[] | undefined;
|
|
958
|
+
conflictSet?: {
|
|
959
|
+
outpoint: string;
|
|
960
|
+
winnerTxId: string;
|
|
961
|
+
loserTxIds: string[];
|
|
962
|
+
}[] | undefined;
|
|
963
|
+
nonSelectedContext?: boolean | undefined;
|
|
964
|
+
}>>;
|
|
965
|
+
}, "strip", z.ZodTypeAny, {
|
|
966
|
+
schema: "hardkas.txTrace";
|
|
967
|
+
hardkasVersion: string;
|
|
968
|
+
version: "1.0.0-alpha";
|
|
969
|
+
networkId: "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
970
|
+
mode: "simulated" | "real" | "readonly";
|
|
971
|
+
createdAt: string;
|
|
972
|
+
txId: string;
|
|
973
|
+
steps: {
|
|
974
|
+
status: string;
|
|
975
|
+
phase: string;
|
|
976
|
+
timestamp: string;
|
|
977
|
+
details?: any;
|
|
978
|
+
}[];
|
|
979
|
+
contentHash?: string | undefined;
|
|
980
|
+
lineage?: {
|
|
981
|
+
artifactId: string;
|
|
982
|
+
lineageId: string;
|
|
983
|
+
rootArtifactId: string;
|
|
984
|
+
parentArtifactId?: string | undefined;
|
|
985
|
+
sequence?: number | undefined;
|
|
986
|
+
} | undefined;
|
|
987
|
+
dagContext?: {
|
|
988
|
+
mode: "linear" | "dag-light";
|
|
989
|
+
sink: string;
|
|
990
|
+
selectedParent?: string | undefined;
|
|
991
|
+
branchId?: string | undefined;
|
|
992
|
+
acceptedTxIds?: string[] | undefined;
|
|
993
|
+
displacedTxIds?: string[] | undefined;
|
|
994
|
+
conflictSet?: {
|
|
995
|
+
outpoint: string;
|
|
996
|
+
winnerTxId: string;
|
|
997
|
+
loserTxIds: string[];
|
|
998
|
+
}[] | undefined;
|
|
999
|
+
nonSelectedContext?: boolean | undefined;
|
|
1000
|
+
} | undefined;
|
|
1001
|
+
}, {
|
|
1002
|
+
schema: "hardkas.txTrace";
|
|
1003
|
+
hardkasVersion: string;
|
|
1004
|
+
version: "1.0.0-alpha";
|
|
1005
|
+
networkId: "mainnet" | "testnet-10" | "testnet-11" | "testnet-12" | "simnet" | "simnet-1" | "devnet";
|
|
1006
|
+
mode: "simulated" | "real" | "readonly";
|
|
1007
|
+
createdAt: string;
|
|
1008
|
+
txId: string;
|
|
1009
|
+
steps: {
|
|
1010
|
+
status: string;
|
|
1011
|
+
phase: string;
|
|
1012
|
+
timestamp: string;
|
|
1013
|
+
details?: any;
|
|
1014
|
+
}[];
|
|
1015
|
+
contentHash?: string | undefined;
|
|
1016
|
+
lineage?: {
|
|
1017
|
+
artifactId: string;
|
|
1018
|
+
lineageId: string;
|
|
1019
|
+
rootArtifactId: string;
|
|
1020
|
+
parentArtifactId?: string | undefined;
|
|
1021
|
+
sequence?: number | undefined;
|
|
1022
|
+
} | undefined;
|
|
1023
|
+
dagContext?: {
|
|
1024
|
+
mode: "linear" | "dag-light";
|
|
1025
|
+
sink: string;
|
|
1026
|
+
selectedParent?: string | undefined;
|
|
1027
|
+
branchId?: string | undefined;
|
|
1028
|
+
acceptedTxIds?: string[] | undefined;
|
|
1029
|
+
displacedTxIds?: string[] | undefined;
|
|
1030
|
+
conflictSet?: {
|
|
1031
|
+
outpoint: string;
|
|
1032
|
+
winnerTxId: string;
|
|
1033
|
+
loserTxIds: string[];
|
|
1034
|
+
}[] | undefined;
|
|
1035
|
+
nonSelectedContext?: boolean | undefined;
|
|
1036
|
+
} | undefined;
|
|
1037
|
+
}>;
|
|
1038
|
+
type TxPlan = z.infer<typeof TxPlanSchema>;
|
|
1039
|
+
type Snapshot = z.infer<typeof SnapshotSchema>;
|
|
1040
|
+
type TxReceipt = z.infer<typeof TxReceiptSchema>;
|
|
1041
|
+
type SignedTx = z.infer<typeof SignedTxSchema>;
|
|
1042
|
+
type TxTrace = z.infer<typeof TxTraceSchema>;
|
|
1043
|
+
|
|
1044
|
+
interface ArtifactValidationResult {
|
|
1045
|
+
ok: boolean;
|
|
1046
|
+
errors: string[];
|
|
1047
|
+
}
|
|
1048
|
+
declare function validateTxPlanArtifact(value: unknown): ArtifactValidationResult;
|
|
1049
|
+
declare function assertValidTxPlanArtifact(value: unknown): asserts value is TxPlan;
|
|
1050
|
+
declare function validateSignedTxArtifact(value: unknown): ArtifactValidationResult;
|
|
1051
|
+
declare function assertValidSignedTxArtifact(value: unknown): asserts value is SignedTx;
|
|
1052
|
+
declare function validateTxReceiptArtifact(value: unknown): ArtifactValidationResult;
|
|
1053
|
+
declare function assertValidTxReceiptArtifact(value: unknown): asserts value is TxReceipt;
|
|
1054
|
+
declare function validateArtifact(data: unknown): ArtifactValidationResult;
|
|
1055
|
+
|
|
1056
|
+
interface IgraTxRequestArtifact {
|
|
1057
|
+
readonly from?: string;
|
|
1058
|
+
readonly to?: string;
|
|
1059
|
+
readonly data: string;
|
|
1060
|
+
readonly valueWei: string;
|
|
1061
|
+
readonly gasLimit?: string;
|
|
1062
|
+
readonly gasPriceWei?: string;
|
|
1063
|
+
readonly nonce?: string;
|
|
1064
|
+
}
|
|
1065
|
+
interface IgraTxPlanArtifact {
|
|
1066
|
+
readonly schema: "hardkas.igraTxPlan.v1";
|
|
1067
|
+
readonly hardkasVersion: string;
|
|
1068
|
+
readonly networkId: string;
|
|
1069
|
+
readonly mode: "l2-rpc";
|
|
1070
|
+
readonly createdAt: string;
|
|
1071
|
+
readonly planId: string;
|
|
1072
|
+
readonly l2Network: string;
|
|
1073
|
+
readonly chainId: number;
|
|
1074
|
+
readonly txType?: "call" | "contract-deploy";
|
|
1075
|
+
readonly request: IgraTxRequestArtifact;
|
|
1076
|
+
readonly estimatedGas?: string;
|
|
1077
|
+
readonly estimatedFeeWei?: string;
|
|
1078
|
+
readonly status: "built";
|
|
1079
|
+
}
|
|
1080
|
+
interface IgraSignedTxArtifact {
|
|
1081
|
+
readonly schema: "hardkas.igraSignedTx.v1";
|
|
1082
|
+
readonly hardkasVersion: string;
|
|
1083
|
+
readonly networkId: string;
|
|
1084
|
+
readonly mode: "l2-rpc";
|
|
1085
|
+
readonly createdAt: string;
|
|
1086
|
+
readonly signedId: string;
|
|
1087
|
+
readonly sourcePlanId: string;
|
|
1088
|
+
readonly sourcePlanPath?: string;
|
|
1089
|
+
readonly l2Network: string;
|
|
1090
|
+
readonly chainId: number;
|
|
1091
|
+
readonly rawTransaction: string;
|
|
1092
|
+
readonly txHash?: string;
|
|
1093
|
+
readonly status: "signed";
|
|
1094
|
+
}
|
|
1095
|
+
interface IgraTxReceiptArtifact {
|
|
1096
|
+
readonly schema: "hardkas.igraTxReceipt.v1";
|
|
1097
|
+
readonly hardkasVersion: string;
|
|
1098
|
+
readonly networkId: string;
|
|
1099
|
+
readonly mode: "l2-rpc";
|
|
1100
|
+
readonly createdAt: string;
|
|
1101
|
+
readonly txHash: string;
|
|
1102
|
+
readonly sourceSignedId?: string;
|
|
1103
|
+
readonly sourceSignedPath?: string;
|
|
1104
|
+
readonly l2Network: string;
|
|
1105
|
+
readonly chainId: number;
|
|
1106
|
+
readonly rpcUrl: string;
|
|
1107
|
+
readonly blockNumber?: string;
|
|
1108
|
+
readonly status: "submitted" | "confirmed" | "failed";
|
|
1109
|
+
}
|
|
1110
|
+
declare function isIgraTxPlanArtifact(value: unknown): value is IgraTxPlanArtifact;
|
|
1111
|
+
declare function validateIgraTxPlanArtifact(value: unknown): ArtifactValidationResult;
|
|
1112
|
+
declare function assertValidIgraTxPlanArtifact(value: unknown): asserts value is IgraTxPlanArtifact;
|
|
1113
|
+
declare function validateIgraSignedTxArtifact(value: unknown): ArtifactValidationResult;
|
|
1114
|
+
declare function assertValidIgraSignedTxArtifact(value: unknown): asserts value is IgraSignedTxArtifact;
|
|
1115
|
+
declare function validateIgraTxReceiptArtifact(value: unknown): ArtifactValidationResult;
|
|
1116
|
+
declare function assertValidIgraTxReceiptArtifact(value: unknown): asserts value is IgraTxReceiptArtifact;
|
|
1117
|
+
declare function assertDecimalBigIntString(value: any, field: string, errors: string[]): void;
|
|
1118
|
+
declare function assertHexData(value: any, field: string, errors: string[]): void;
|
|
1119
|
+
declare function assertEvmAddress(value: any, field: string, errors: string[]): void;
|
|
1120
|
+
declare function assertEvmTxHash(value: any, field: string, errors: string[]): void;
|
|
1121
|
+
declare function createIgraPlanId(): string;
|
|
1122
|
+
declare function createIgraSignedId(): string;
|
|
1123
|
+
declare function createIgraDeployPlanId(): string;
|
|
1124
|
+
|
|
1125
|
+
type AssumptionLevel = "dev" | "trusted" | "network-observed";
|
|
1126
|
+
interface HardkasArtifactBase {
|
|
1127
|
+
schema: HardkasArtifactSchema;
|
|
1128
|
+
hardkasVersion: string;
|
|
1129
|
+
version: string;
|
|
1130
|
+
networkId: NetworkId;
|
|
1131
|
+
mode: ExecutionMode;
|
|
1132
|
+
createdAt: string;
|
|
1133
|
+
}
|
|
1134
|
+
interface BaseArtifact<T extends ArtifactType> {
|
|
1135
|
+
schema: `hardkas.${T}`;
|
|
1136
|
+
hardkasVersion: string;
|
|
1137
|
+
version: string;
|
|
1138
|
+
networkId: NetworkId;
|
|
1139
|
+
mode: ExecutionMode;
|
|
1140
|
+
createdAt: string;
|
|
1141
|
+
contentHash?: ContentHash | undefined;
|
|
1142
|
+
workflowId?: WorkflowId | undefined;
|
|
1143
|
+
assumptionLevel?: AssumptionLevel | undefined;
|
|
1144
|
+
executionMode?: ExecutionMode | undefined;
|
|
1145
|
+
lineage?: {
|
|
1146
|
+
artifactId: ArtifactId;
|
|
1147
|
+
lineageId: LineageId;
|
|
1148
|
+
parentArtifactId?: ArtifactId | undefined;
|
|
1149
|
+
rootArtifactId: ArtifactId;
|
|
1150
|
+
sequence?: EventSequence | number | undefined;
|
|
1151
|
+
} | undefined;
|
|
1152
|
+
}
|
|
1153
|
+
interface DagContext {
|
|
1154
|
+
mode: "linear" | "dag-light";
|
|
1155
|
+
sink: string;
|
|
1156
|
+
selectedParent?: string;
|
|
1157
|
+
branchId?: string;
|
|
1158
|
+
acceptedTxIds?: string[];
|
|
1159
|
+
displacedTxIds?: string[];
|
|
1160
|
+
conflictSet?: Array<{
|
|
1161
|
+
outpoint: string;
|
|
1162
|
+
winnerTxId: string;
|
|
1163
|
+
loserTxIds: string[];
|
|
1164
|
+
}>;
|
|
1165
|
+
nonSelectedContext?: boolean;
|
|
1166
|
+
}
|
|
1167
|
+
interface UtxoArtifact {
|
|
1168
|
+
readonly outpoint: {
|
|
1169
|
+
readonly transactionId: TxId;
|
|
1170
|
+
readonly index: number;
|
|
1171
|
+
};
|
|
1172
|
+
readonly address: KaspaAddress;
|
|
1173
|
+
readonly amountSompi: string;
|
|
1174
|
+
readonly scriptPublicKey: string;
|
|
1175
|
+
readonly blockDaaScore?: string | undefined;
|
|
1176
|
+
readonly isCoinbase?: boolean | undefined;
|
|
1177
|
+
}
|
|
1178
|
+
interface TxOutputArtifact {
|
|
1179
|
+
readonly address: string;
|
|
1180
|
+
readonly amountSompi: string;
|
|
1181
|
+
readonly amount?: string | undefined;
|
|
1182
|
+
readonly script?: string | undefined;
|
|
1183
|
+
}
|
|
1184
|
+
interface TxPlanArtifactV1 extends HardkasArtifactBase {
|
|
1185
|
+
readonly schema: "hardkas.txPlan.v1";
|
|
1186
|
+
readonly status: "built" | "unsigned";
|
|
1187
|
+
readonly planId: string;
|
|
1188
|
+
readonly from: {
|
|
1189
|
+
readonly input: string;
|
|
1190
|
+
readonly address: string;
|
|
1191
|
+
readonly accountName?: string | undefined;
|
|
1192
|
+
};
|
|
1193
|
+
readonly to: {
|
|
1194
|
+
readonly input: string;
|
|
1195
|
+
readonly address: string;
|
|
1196
|
+
};
|
|
1197
|
+
readonly amountSompi: string;
|
|
1198
|
+
readonly amount: string;
|
|
1199
|
+
readonly selectedUtxos: readonly UtxoArtifact[];
|
|
1200
|
+
readonly outputs: readonly TxOutputArtifact[];
|
|
1201
|
+
readonly change?: TxOutputArtifact | undefined;
|
|
1202
|
+
readonly estimatedMass: string;
|
|
1203
|
+
readonly estimatedFeeSompi: string;
|
|
1204
|
+
readonly estimatedFee: string;
|
|
1205
|
+
readonly rpcUrl?: string | null | undefined;
|
|
1206
|
+
readonly metadata?: Record<string, any> | undefined;
|
|
1207
|
+
}
|
|
1208
|
+
interface SignedTxArtifactV1 extends HardkasArtifactBase {
|
|
1209
|
+
readonly schema: "hardkas.signedTx.v1";
|
|
1210
|
+
readonly status: "signed";
|
|
1211
|
+
readonly signedId: string;
|
|
1212
|
+
readonly sourcePlanId: string;
|
|
1213
|
+
readonly sourcePlanPath?: string | undefined;
|
|
1214
|
+
readonly from: {
|
|
1215
|
+
readonly input: string;
|
|
1216
|
+
readonly address: string;
|
|
1217
|
+
readonly accountName?: string | undefined;
|
|
1218
|
+
};
|
|
1219
|
+
readonly to: {
|
|
1220
|
+
readonly input: string;
|
|
1221
|
+
readonly address: string;
|
|
1222
|
+
};
|
|
1223
|
+
readonly amountSompi: string;
|
|
1224
|
+
readonly amount: string;
|
|
1225
|
+
readonly signedTransaction: {
|
|
1226
|
+
readonly format: "kaspa-sdk" | "hex" | "simulated" | "unknown";
|
|
1227
|
+
readonly payload: string;
|
|
1228
|
+
};
|
|
1229
|
+
readonly txId?: string | undefined;
|
|
1230
|
+
readonly metadata?: Record<string, any> | undefined;
|
|
1231
|
+
}
|
|
1232
|
+
interface TxReceiptArtifactV1 extends HardkasArtifactBase {
|
|
1233
|
+
readonly schema: "hardkas.txReceipt.v1";
|
|
1234
|
+
readonly status: "submitted" | "accepted" | "confirmed" | "finalized" | "failed";
|
|
1235
|
+
readonly txId: TxId;
|
|
1236
|
+
readonly sourceSignedId?: ArtifactId | undefined;
|
|
1237
|
+
readonly sourceSignedPath?: string | undefined;
|
|
1238
|
+
readonly from: {
|
|
1239
|
+
readonly address: string;
|
|
1240
|
+
readonly accountName?: string | undefined;
|
|
1241
|
+
};
|
|
1242
|
+
readonly to: {
|
|
1243
|
+
readonly address: string;
|
|
1244
|
+
};
|
|
1245
|
+
readonly amountSompi: string;
|
|
1246
|
+
readonly amount: string;
|
|
1247
|
+
readonly feeSompi: string;
|
|
1248
|
+
readonly daaScore?: string | undefined;
|
|
1249
|
+
readonly blueScore?: string | undefined;
|
|
1250
|
+
readonly submittedAt: string;
|
|
1251
|
+
readonly confirmedAt?: string | undefined;
|
|
1252
|
+
readonly rpcUrl: string;
|
|
1253
|
+
readonly receiptPath?: string | undefined;
|
|
1254
|
+
readonly tracePath?: string | undefined;
|
|
1255
|
+
readonly metadata?: Record<string, any> | undefined;
|
|
1256
|
+
}
|
|
1257
|
+
interface TxTraceArtifactV1 extends HardkasArtifactBase {
|
|
1258
|
+
readonly schema: "hardkas.txTrace.v1";
|
|
1259
|
+
readonly txId: TxId;
|
|
1260
|
+
readonly steps: Array<{
|
|
1261
|
+
phase: string;
|
|
1262
|
+
status: string;
|
|
1263
|
+
timestamp: string;
|
|
1264
|
+
details?: any;
|
|
1265
|
+
}>;
|
|
1266
|
+
}
|
|
1267
|
+
interface TxPlanArtifact extends BaseArtifact<"txPlan"> {
|
|
1268
|
+
planId: string;
|
|
1269
|
+
from: {
|
|
1270
|
+
address: string;
|
|
1271
|
+
accountName?: string | undefined;
|
|
1272
|
+
input?: string | undefined;
|
|
1273
|
+
};
|
|
1274
|
+
to: {
|
|
1275
|
+
address: string;
|
|
1276
|
+
accountName?: string | undefined;
|
|
1277
|
+
input?: string | undefined;
|
|
1278
|
+
};
|
|
1279
|
+
amountSompi: string;
|
|
1280
|
+
estimatedFeeSompi: string;
|
|
1281
|
+
estimatedMass: string;
|
|
1282
|
+
inputs: Array<{
|
|
1283
|
+
outpoint: {
|
|
1284
|
+
transactionId: string;
|
|
1285
|
+
index: number;
|
|
1286
|
+
};
|
|
1287
|
+
amountSompi: string;
|
|
1288
|
+
}>;
|
|
1289
|
+
outputs: Array<{
|
|
1290
|
+
address: string;
|
|
1291
|
+
amountSompi: string;
|
|
1292
|
+
}>;
|
|
1293
|
+
change?: {
|
|
1294
|
+
address: string;
|
|
1295
|
+
amountSompi: string;
|
|
1296
|
+
} | undefined;
|
|
1297
|
+
}
|
|
1298
|
+
interface SignedTxArtifact extends BaseArtifact<"signedTx"> {
|
|
1299
|
+
status: "signed";
|
|
1300
|
+
signedId: ArtifactId;
|
|
1301
|
+
sourcePlanId: string;
|
|
1302
|
+
from: {
|
|
1303
|
+
address: KaspaAddress;
|
|
1304
|
+
accountName?: string | undefined;
|
|
1305
|
+
input?: string | undefined;
|
|
1306
|
+
};
|
|
1307
|
+
to: {
|
|
1308
|
+
address: KaspaAddress;
|
|
1309
|
+
accountName?: string | undefined;
|
|
1310
|
+
input?: string | undefined;
|
|
1311
|
+
};
|
|
1312
|
+
amountSompi: string;
|
|
1313
|
+
signedTransaction: {
|
|
1314
|
+
format: string;
|
|
1315
|
+
payload: string;
|
|
1316
|
+
};
|
|
1317
|
+
txId?: TxId | undefined;
|
|
1318
|
+
metadata?: any | undefined;
|
|
1319
|
+
}
|
|
1320
|
+
interface TxReceiptArtifact extends BaseArtifact<"txReceipt"> {
|
|
1321
|
+
txId: TxId;
|
|
1322
|
+
status: "pending" | "submitted" | "accepted" | "confirmed" | "failed";
|
|
1323
|
+
from: {
|
|
1324
|
+
address: KaspaAddress;
|
|
1325
|
+
};
|
|
1326
|
+
to: {
|
|
1327
|
+
address: KaspaAddress;
|
|
1328
|
+
};
|
|
1329
|
+
amountSompi: string;
|
|
1330
|
+
feeSompi: string;
|
|
1331
|
+
mass?: string | undefined;
|
|
1332
|
+
daaScore?: string | undefined;
|
|
1333
|
+
submittedAt?: string | undefined;
|
|
1334
|
+
confirmedAt?: string | undefined;
|
|
1335
|
+
preStateHash?: string | undefined;
|
|
1336
|
+
postStateHash?: string | undefined;
|
|
1337
|
+
tracePath?: string | undefined;
|
|
1338
|
+
rpcUrl?: string | undefined;
|
|
1339
|
+
sourceSignedId?: ArtifactId | undefined;
|
|
1340
|
+
metadata?: any | undefined;
|
|
1341
|
+
}
|
|
1342
|
+
interface SnapshotArtifact extends BaseArtifact<"snapshot"> {
|
|
1343
|
+
name?: string | undefined;
|
|
1344
|
+
daaScore: string;
|
|
1345
|
+
accounts: Array<{
|
|
1346
|
+
name: string;
|
|
1347
|
+
address: string;
|
|
1348
|
+
}>;
|
|
1349
|
+
utxos: Array<{
|
|
1350
|
+
id: string;
|
|
1351
|
+
address: string;
|
|
1352
|
+
amountSompi: string;
|
|
1353
|
+
spent: boolean;
|
|
1354
|
+
createdAtDaaScore: string;
|
|
1355
|
+
}>;
|
|
1356
|
+
}
|
|
1357
|
+
interface TxTraceArtifact extends BaseArtifact<"txTrace"> {
|
|
1358
|
+
txId: TxId;
|
|
1359
|
+
steps: Array<{
|
|
1360
|
+
phase: string;
|
|
1361
|
+
status: string;
|
|
1362
|
+
timestamp: string;
|
|
1363
|
+
details?: any;
|
|
1364
|
+
}>;
|
|
1365
|
+
dagContext?: DagContext | undefined;
|
|
1366
|
+
}
|
|
1367
|
+
|
|
1368
|
+
/**
|
|
1369
|
+
* Deterministically stringifies an object by sorting keys recursively.
|
|
1370
|
+
* Handles BigInt by converting to string.
|
|
1371
|
+
* Excludes 'contentHash', 'artifactId', and 'lineage' fields during serialization.
|
|
1372
|
+
* Skips keys with undefined values (matching JSON.stringify behavior).
|
|
1373
|
+
*/
|
|
1374
|
+
declare function canonicalStringify(obj: any): string;
|
|
1375
|
+
/**
|
|
1376
|
+
* Calculates a SHA-256 hash of the canonical JSON representation.
|
|
1377
|
+
* Always excludes the 'contentHash' field from the calculation.
|
|
1378
|
+
*/
|
|
1379
|
+
declare function calculateContentHash(obj: any): string;
|
|
1380
|
+
|
|
1381
|
+
interface Clock {
|
|
1382
|
+
now(): number;
|
|
1383
|
+
}
|
|
1384
|
+
declare const defaultClock: Clock;
|
|
1385
|
+
interface VerificationContext {
|
|
1386
|
+
clock?: Clock;
|
|
1387
|
+
strict?: boolean;
|
|
1388
|
+
networkId?: NetworkId;
|
|
1389
|
+
parent?: unknown;
|
|
1390
|
+
}
|
|
1391
|
+
type VerificationSeverity = "info" | "warning" | "error" | "critical";
|
|
1392
|
+
type VerificationIssue = {
|
|
1393
|
+
code: string;
|
|
1394
|
+
severity: VerificationSeverity;
|
|
1395
|
+
message: string;
|
|
1396
|
+
path?: string | undefined;
|
|
1397
|
+
artifactId?: string | undefined;
|
|
1398
|
+
};
|
|
1399
|
+
type ArtifactVerificationResult = {
|
|
1400
|
+
ok: boolean;
|
|
1401
|
+
artifactType?: string;
|
|
1402
|
+
version?: string;
|
|
1403
|
+
expectedHash?: string;
|
|
1404
|
+
actualHash?: string;
|
|
1405
|
+
errors: string[];
|
|
1406
|
+
issues: VerificationIssue[];
|
|
1407
|
+
};
|
|
1408
|
+
/**
|
|
1409
|
+
* Sorts UTXOs deterministically by outpoint (transactionId:index).
|
|
1410
|
+
*/
|
|
1411
|
+
declare function sortUtxosByOutpoint(utxos: unknown[]): unknown[];
|
|
1412
|
+
/**
|
|
1413
|
+
* Verifies an artifact's integrity.
|
|
1414
|
+
* Can take a raw object or a file path.
|
|
1415
|
+
*/
|
|
1416
|
+
declare function verifyArtifactIntegrity(artifactOrPath: unknown): Promise<ArtifactVerificationResult>;
|
|
1417
|
+
/**
|
|
1418
|
+
* Verifies an artifact's semantic and economic validity.
|
|
1419
|
+
*/
|
|
1420
|
+
declare function verifyArtifactSemantics(artifact: unknown, context?: VerificationContext): ArtifactVerificationResult;
|
|
1421
|
+
/**
|
|
1422
|
+
* Verifies an artifact's replay consistency.
|
|
1423
|
+
* Contract/Stub for Phase 4.
|
|
1424
|
+
*/
|
|
1425
|
+
declare function verifyArtifactReplay(artifact: unknown, context?: VerificationContext): Promise<ArtifactVerificationResult>;
|
|
1426
|
+
/**
|
|
1427
|
+
* @deprecated Use verifyArtifactIntegrity instead.
|
|
1428
|
+
*/
|
|
1429
|
+
declare const verifyArtifact: typeof verifyArtifactIntegrity;
|
|
1430
|
+
declare const verifyArtifactFile: typeof verifyArtifactIntegrity;
|
|
1431
|
+
|
|
1432
|
+
/**
|
|
1433
|
+
* Invariant Violation details.
|
|
1434
|
+
*/
|
|
1435
|
+
interface InvariantViolation {
|
|
1436
|
+
code: string;
|
|
1437
|
+
severity: "info" | "warning" | "error" | "critical";
|
|
1438
|
+
message: string;
|
|
1439
|
+
metadata?: Record<string, unknown>;
|
|
1440
|
+
}
|
|
1441
|
+
/**
|
|
1442
|
+
* Interface for looking up artifacts during invariant checks.
|
|
1443
|
+
*/
|
|
1444
|
+
interface ArtifactLookup {
|
|
1445
|
+
getArtifact(idOrHash: string): Promise<unknown | null>;
|
|
1446
|
+
}
|
|
1447
|
+
/**
|
|
1448
|
+
* Context provided to invariant checks.
|
|
1449
|
+
* Uses unknown + narrowing instead of any.
|
|
1450
|
+
*/
|
|
1451
|
+
interface InvariantContext {
|
|
1452
|
+
artifact?: unknown;
|
|
1453
|
+
event?: EventEnvelope;
|
|
1454
|
+
artifactStore?: ArtifactLookup | undefined;
|
|
1455
|
+
clock?: Clock;
|
|
1456
|
+
strict?: boolean;
|
|
1457
|
+
}
|
|
1458
|
+
/**
|
|
1459
|
+
* Core Invariant interface.
|
|
1460
|
+
*/
|
|
1461
|
+
interface Invariant {
|
|
1462
|
+
readonly id: string;
|
|
1463
|
+
readonly description: string;
|
|
1464
|
+
check(context: InvariantContext): Promise<InvariantViolation[]>;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
* Verifies that the artifact's contentHash field matches the calculated hash.
|
|
1469
|
+
*/
|
|
1470
|
+
declare class HashInvariant implements Invariant {
|
|
1471
|
+
readonly id = "INVAR_HASH_MATCH";
|
|
1472
|
+
readonly description = "Artifact content hash must match payload";
|
|
1473
|
+
check(context: InvariantContext): Promise<InvariantViolation[]>;
|
|
1474
|
+
}
|
|
1475
|
+
/**
|
|
1476
|
+
* Verifies that the artifact schema and version are supported.
|
|
1477
|
+
*/
|
|
1478
|
+
declare class SchemaInvariant implements Invariant {
|
|
1479
|
+
readonly id = "INVAR_SCHEMA_SUPPORT";
|
|
1480
|
+
readonly description = "Artifact schema and version must be supported";
|
|
1481
|
+
check(context: InvariantContext): Promise<InvariantViolation[]>;
|
|
1482
|
+
}
|
|
1483
|
+
/**
|
|
1484
|
+
* Basic correlation invariant: workflowId and correlationId should be present in events.
|
|
1485
|
+
*/
|
|
1486
|
+
declare class BasicCorrelationInvariant implements Invariant {
|
|
1487
|
+
readonly id = "INVAR_BASIC_CORRELATION";
|
|
1488
|
+
readonly description = "Events must have workflowId and correlationId";
|
|
1489
|
+
check(context: InvariantContext): Promise<InvariantViolation[]>;
|
|
1490
|
+
}
|
|
1491
|
+
/**
|
|
1492
|
+
* Basic lineage invariant: if parentArtifactId is present, it should ideally be resolvable.
|
|
1493
|
+
*/
|
|
1494
|
+
declare class BasicLineageInvariant implements Invariant {
|
|
1495
|
+
readonly id = "INVAR_BASIC_LINEAGE";
|
|
1496
|
+
readonly description = "Parent artifact should be resolvable if specified";
|
|
1497
|
+
check(context: InvariantContext): Promise<InvariantViolation[]>;
|
|
1498
|
+
}
|
|
1499
|
+
/**
|
|
1500
|
+
* Contract/Stub: Lifecycle invariant (ordering of events).
|
|
1501
|
+
*/
|
|
1502
|
+
declare class LifecycleInvariant implements Invariant {
|
|
1503
|
+
readonly id = "INVAR_LIFECYCLE_ORDER";
|
|
1504
|
+
readonly description = "Workflow events must follow valid lifecycle ordering";
|
|
1505
|
+
check(): Promise<InvariantViolation[]>;
|
|
1506
|
+
}
|
|
1507
|
+
/**
|
|
1508
|
+
* Contract/Stub: Network invariant (address prefix matching).
|
|
1509
|
+
*/
|
|
1510
|
+
declare class NetworkInvariant implements Invariant {
|
|
1511
|
+
readonly id = "INVAR_NETWORK_PREFIX";
|
|
1512
|
+
readonly description = "Network ID must match address prefixes";
|
|
1513
|
+
check(): Promise<InvariantViolation[]>;
|
|
1514
|
+
}
|
|
1515
|
+
/**
|
|
1516
|
+
* Contract/Stub: Replay invariant (re-execution consistency).
|
|
1517
|
+
*/
|
|
1518
|
+
declare class ReplayInvariant implements Invariant {
|
|
1519
|
+
readonly id = "INVAR_REPLAY_CONSISTENCY";
|
|
1520
|
+
readonly description = "Replay execution must produce consistent results";
|
|
1521
|
+
check(): Promise<InvariantViolation[]>;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
interface WatcherOptions {
|
|
1525
|
+
invariants: Invariant[];
|
|
1526
|
+
eventBus: {
|
|
1527
|
+
subscribe(callback: (event: EventEnvelope) => void): () => void;
|
|
1528
|
+
emit(event: EventEnvelope): void;
|
|
1529
|
+
};
|
|
1530
|
+
artifactStore?: ArtifactLookup | undefined;
|
|
1531
|
+
}
|
|
1532
|
+
/**
|
|
1533
|
+
* Lightweight, opt-in watcher for system invariants.
|
|
1534
|
+
* Listens to the event bus and performs validation.
|
|
1535
|
+
* Non-global, non-singleton.
|
|
1536
|
+
*/
|
|
1537
|
+
declare class InvariantWatcher {
|
|
1538
|
+
private invariants;
|
|
1539
|
+
private eventBus;
|
|
1540
|
+
private artifactStore?;
|
|
1541
|
+
private unsubscribe;
|
|
1542
|
+
constructor(options: WatcherOptions);
|
|
1543
|
+
/**
|
|
1544
|
+
* Starts watching for events.
|
|
1545
|
+
*/
|
|
1546
|
+
start(): void;
|
|
1547
|
+
/**
|
|
1548
|
+
* Stops watching and clears subscriptions.
|
|
1549
|
+
*/
|
|
1550
|
+
stop(): void;
|
|
1551
|
+
/**
|
|
1552
|
+
* Alias for stop().
|
|
1553
|
+
*/
|
|
1554
|
+
dispose(): void;
|
|
1555
|
+
private emitViolation;
|
|
1556
|
+
}
|
|
1557
|
+
|
|
1558
|
+
/**
|
|
1559
|
+
* Migrates a v1 artifact to canonical format by updating the schema, version,
|
|
1560
|
+
* and calculating the contentHash.
|
|
1561
|
+
*/
|
|
1562
|
+
declare function migrateToCanonical(v1Artifact: any): any;
|
|
1563
|
+
|
|
1564
|
+
declare const bigIntReplacer: (_key: string, value: any) => any;
|
|
1565
|
+
declare function writeArtifact(filePath: string, artifact: unknown): Promise<void>;
|
|
1566
|
+
declare function getDefaultReceiptPath(txId: string, cwd?: string): string;
|
|
1567
|
+
declare function readArtifact(filePath: string): Promise<any>;
|
|
1568
|
+
declare function readTxPlanArtifact(filePath: string): Promise<TxPlan>;
|
|
1569
|
+
declare function readSignedTxArtifact(filePath: string): Promise<SignedTx>;
|
|
1570
|
+
declare function readTxReceiptArtifact(filePath: string): Promise<TxReceipt>;
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* Formats a v2 TxPlan artifact for display.
|
|
1574
|
+
*/
|
|
1575
|
+
declare function formatTxPlanArtifact(artifact: any): string;
|
|
1576
|
+
/**
|
|
1577
|
+
* Formats a v2 TxReceipt artifact for display.
|
|
1578
|
+
*/
|
|
1579
|
+
declare function formatTxReceiptArtifact(artifact: any): string;
|
|
1580
|
+
/**
|
|
1581
|
+
* Formats a v2 SignedTx artifact for display.
|
|
1582
|
+
*/
|
|
1583
|
+
declare function formatSignedTxArtifact(artifact: any): string;
|
|
1584
|
+
|
|
1585
|
+
/**
|
|
1586
|
+
* Converts a domain Utxo to a UtxoArtifact for persistence.
|
|
1587
|
+
*/
|
|
1588
|
+
declare function utxoToArtifact(utxo: Utxo): UtxoArtifact;
|
|
1589
|
+
/**
|
|
1590
|
+
* Converts a UtxoArtifact back to a domain Utxo.
|
|
1591
|
+
*/
|
|
1592
|
+
declare function utxoFromArtifact(artifact: UtxoArtifact): Utxo;
|
|
1593
|
+
/**
|
|
1594
|
+
* Converts a domain TxOutput to a TxOutputArtifact for persistence.
|
|
1595
|
+
*/
|
|
1596
|
+
declare function txOutputToArtifact(output: TxOutput): TxOutputArtifact;
|
|
1597
|
+
/**
|
|
1598
|
+
* Converts a TxOutputArtifact back to a domain TxOutput.
|
|
1599
|
+
*/
|
|
1600
|
+
declare function txOutputFromArtifact(artifact: TxOutputArtifact): TxOutput;
|
|
1601
|
+
|
|
1602
|
+
interface CreateTxPlanArtifactOptions {
|
|
1603
|
+
networkId: NetworkId;
|
|
1604
|
+
mode: ExecutionMode;
|
|
1605
|
+
from: {
|
|
1606
|
+
input: string;
|
|
1607
|
+
address: string;
|
|
1608
|
+
accountName?: string;
|
|
1609
|
+
};
|
|
1610
|
+
to: {
|
|
1611
|
+
input: string;
|
|
1612
|
+
address: string;
|
|
1613
|
+
};
|
|
1614
|
+
amountSompi: bigint;
|
|
1615
|
+
plan: TxPlan$1;
|
|
1616
|
+
rpcUrl?: string;
|
|
1617
|
+
}
|
|
1618
|
+
/**
|
|
1619
|
+
* Creates a canonical TxPlan artifact from a TxBuilder plan.
|
|
1620
|
+
*/
|
|
1621
|
+
declare function createTxPlanArtifact(options: CreateTxPlanArtifactOptions): TxPlan;
|
|
1622
|
+
|
|
1623
|
+
/**
|
|
1624
|
+
* Creates a canonical simulated signed transaction artifact.
|
|
1625
|
+
*/
|
|
1626
|
+
declare function createSimulatedSignedTxArtifact(plan: TxPlan, payload: string): SignedTx;
|
|
1627
|
+
/**
|
|
1628
|
+
* Creates a canonical simulated receipt.
|
|
1629
|
+
*/
|
|
1630
|
+
declare function createSimulatedTxReceipt(plan: TxPlan, txId: string, extra?: {
|
|
1631
|
+
spentUtxoIds?: string[];
|
|
1632
|
+
createdUtxoIds?: string[];
|
|
1633
|
+
daaScore?: string;
|
|
1634
|
+
}): TxReceipt;
|
|
1635
|
+
/**
|
|
1636
|
+
* Validates and extracts the raw transaction from a signed artifact.
|
|
1637
|
+
*/
|
|
1638
|
+
declare function getBroadcastableSignedTransaction(artifact: any): {
|
|
1639
|
+
mode: string;
|
|
1640
|
+
rawTransaction: string;
|
|
1641
|
+
};
|
|
1642
|
+
|
|
1643
|
+
interface ArtifactExplanation {
|
|
1644
|
+
summary: {
|
|
1645
|
+
type: string;
|
|
1646
|
+
version: string;
|
|
1647
|
+
network: string;
|
|
1648
|
+
mode: ExecutionMode;
|
|
1649
|
+
createdAt: string;
|
|
1650
|
+
status: "valid" | "invalid" | "legacy" | "corrupted";
|
|
1651
|
+
};
|
|
1652
|
+
identity: {
|
|
1653
|
+
artifactId: string;
|
|
1654
|
+
contentHash: string;
|
|
1655
|
+
lineageId?: string;
|
|
1656
|
+
rootArtifactId?: string;
|
|
1657
|
+
parentArtifactId?: string;
|
|
1658
|
+
};
|
|
1659
|
+
economics?: {
|
|
1660
|
+
ok: boolean;
|
|
1661
|
+
mass: {
|
|
1662
|
+
reported: bigint;
|
|
1663
|
+
recomputed: bigint;
|
|
1664
|
+
delta: bigint;
|
|
1665
|
+
};
|
|
1666
|
+
fee: {
|
|
1667
|
+
reported: bigint;
|
|
1668
|
+
recomputed: bigint;
|
|
1669
|
+
delta: bigint;
|
|
1670
|
+
rate: bigint;
|
|
1671
|
+
};
|
|
1672
|
+
balance: {
|
|
1673
|
+
inputs: bigint;
|
|
1674
|
+
outputs: bigint;
|
|
1675
|
+
change: bigint;
|
|
1676
|
+
impliedFee: bigint;
|
|
1677
|
+
};
|
|
1678
|
+
};
|
|
1679
|
+
security: {
|
|
1680
|
+
strictOk: boolean;
|
|
1681
|
+
issues: Array<{
|
|
1682
|
+
code: string;
|
|
1683
|
+
severity: "warning" | "error" | "critical";
|
|
1684
|
+
message: string;
|
|
1685
|
+
}>;
|
|
1686
|
+
};
|
|
1687
|
+
metadata: Record<string, any>;
|
|
1688
|
+
}
|
|
1689
|
+
/**
|
|
1690
|
+
* Generates a deep operational explanation of a HardKAS artifact.
|
|
1691
|
+
*/
|
|
1692
|
+
declare function explainArtifact(artifact: any): Promise<ArtifactExplanation>;
|
|
1693
|
+
|
|
1694
|
+
declare function getDefaultL2ReceiptsDir(cwd?: string): string;
|
|
1695
|
+
declare function getL2ReceiptPath(txHash: string, options?: {
|
|
1696
|
+
cwd?: string;
|
|
1697
|
+
}): string;
|
|
1698
|
+
declare function saveIgraTxReceiptArtifact(receipt: IgraTxReceiptArtifact, options?: {
|
|
1699
|
+
cwd?: string;
|
|
1700
|
+
}): Promise<string>;
|
|
1701
|
+
declare function loadIgraTxReceiptArtifact(txHash: string, options?: {
|
|
1702
|
+
cwd?: string;
|
|
1703
|
+
}): Promise<IgraTxReceiptArtifact>;
|
|
1704
|
+
declare function listIgraTxReceiptArtifacts(options?: {
|
|
1705
|
+
cwd?: string;
|
|
1706
|
+
}): Promise<readonly IgraTxReceiptArtifact[]>;
|
|
1707
|
+
|
|
1708
|
+
interface FeeAuditResult {
|
|
1709
|
+
ok: boolean;
|
|
1710
|
+
actualMass: bigint;
|
|
1711
|
+
expectedMass: bigint;
|
|
1712
|
+
actualFeeSompi: bigint;
|
|
1713
|
+
expectedFeeSompi: bigint;
|
|
1714
|
+
feeRateSompiPerMass: bigint;
|
|
1715
|
+
deltaSompi: bigint;
|
|
1716
|
+
issues: string[];
|
|
1717
|
+
}
|
|
1718
|
+
/**
|
|
1719
|
+
* Recomputes mass for a transaction artifact.
|
|
1720
|
+
*/
|
|
1721
|
+
declare function recomputeMass(artifact: TxPlan | SignedTx | TxReceipt): bigint;
|
|
1722
|
+
/**
|
|
1723
|
+
* Performs a deep economic audit of a transaction artifact.
|
|
1724
|
+
*/
|
|
1725
|
+
declare function verifyFeeSemantics(artifact: any): FeeAuditResult;
|
|
1726
|
+
|
|
1727
|
+
interface LineageValidationResult {
|
|
1728
|
+
ok: boolean;
|
|
1729
|
+
issues: VerificationIssue[];
|
|
1730
|
+
}
|
|
1731
|
+
/**
|
|
1732
|
+
* Validates the lineage relationship between an artifact and its parent.
|
|
1733
|
+
*/
|
|
1734
|
+
declare function verifyLineage(artifact: any, parent?: any): LineageValidationResult;
|
|
1735
|
+
|
|
1736
|
+
export { ARTIFACT_SCHEMAS, ARTIFACT_VERSION, AccountRefSchema, type ArtifactExplanation, ArtifactLineageSchema, type ArtifactLookup, type ArtifactValidationResult, type ArtifactVerificationResult, type AssumptionLevel, type BaseArtifact, BaseArtifactSchema, BasicCorrelationInvariant, BasicLineageInvariant, type Clock, type CreateTxPlanArtifactOptions, type DagContext, DagContextSchema, 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 LineageValidationResult, LocalnetUtxoSchemaV2, NetworkInvariant, ReplayInvariant, 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, assertDecimalBigIntString, assertEvmAddress, assertEvmTxHash, assertHexData, assertValidIgraSignedTxArtifact, assertValidIgraTxPlanArtifact, assertValidIgraTxReceiptArtifact, assertValidSignedTxArtifact, assertValidTxPlanArtifact, assertValidTxReceiptArtifact, bigIntReplacer, calculateContentHash, canonicalStringify, createIgraDeployPlanId, createIgraPlanId, createIgraSignedId, createSimulatedSignedTxArtifact, createSimulatedTxReceipt, createTxPlanArtifact, defaultClock, explainArtifact, formatSignedTxArtifact, formatTxPlanArtifact, formatTxReceiptArtifact, getBroadcastableSignedTransaction, getDefaultL2ReceiptsDir, getDefaultReceiptPath, getL2ReceiptPath, isIgraTxPlanArtifact, listIgraTxReceiptArtifacts, loadIgraTxReceiptArtifact, migrateToCanonical, readArtifact, readSignedTxArtifact, readTxPlanArtifact, readTxReceiptArtifact, recomputeMass, saveIgraTxReceiptArtifact, sortUtxosByOutpoint, txOutputFromArtifact, txOutputToArtifact, utxoFromArtifact, utxoToArtifact, validateArtifact, validateIgraSignedTxArtifact, validateIgraTxPlanArtifact, validateIgraTxReceiptArtifact, validateSignedTxArtifact, validateTxPlanArtifact, validateTxReceiptArtifact, verifyArtifact, verifyArtifactFile, verifyArtifactIntegrity, verifyArtifactReplay, verifyArtifactSemantics, verifyFeeSemantics, verifyLineage, writeArtifact };
|