@hazbase/simplicity 0.0.5 → 0.2.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.
Files changed (61) hide show
  1. package/README.md +140 -1038
  2. package/dist/cli.js +3341 -269
  3. package/dist/client/SimplicityClient.d.ts +91 -290
  4. package/dist/client/SimplicityClient.js +93 -23
  5. package/dist/core/executor.js +67 -92
  6. package/dist/core/lineage.d.ts +18 -0
  7. package/dist/core/lineage.js +30 -0
  8. package/dist/core/outputBinding.d.ts +61 -0
  9. package/dist/core/outputBinding.js +552 -0
  10. package/dist/core/reporting.d.ts +22 -0
  11. package/dist/core/reporting.js +40 -0
  12. package/dist/core/schnorr.d.ts +5 -0
  13. package/dist/core/schnorr.js +46 -0
  14. package/dist/core/types.d.ts +799 -1
  15. package/dist/docs/definitions/bond-anchor.simf +19 -0
  16. package/dist/docs/definitions/bond-definition.json +10 -0
  17. package/dist/docs/definitions/bond-descriptor-bound-settlement-machine.simf +144 -0
  18. package/dist/docs/definitions/bond-issuance-anchor.simf +26 -0
  19. package/dist/docs/definitions/bond-issuance-state-partial-redemption.json +18 -0
  20. package/dist/docs/definitions/bond-issuance-state-redeemed.json +18 -0
  21. package/dist/docs/definitions/bond-issuance-state.json +12 -0
  22. package/dist/docs/definitions/bond-redemption-state-machine.simf +118 -0
  23. package/dist/docs/definitions/bond-redemption-transition.simf +41 -0
  24. package/dist/docs/definitions/bond-script-bound-settlement-machine.simf +142 -0
  25. package/dist/docs/definitions/fund-capital-call-open.simf +82 -0
  26. package/dist/docs/definitions/fund-capital-call-refund-only.simf +67 -0
  27. package/dist/docs/definitions/fund-capital-call-state.json +11 -0
  28. package/dist/docs/definitions/fund-definition.json +8 -0
  29. package/dist/docs/definitions/fund-distribution-claim.simf +57 -0
  30. package/dist/docs/definitions/receivable-definition.json +9 -0
  31. package/dist/docs/definitions/receivable-funding-claim.json +13 -0
  32. package/dist/docs/definitions/receivable-funding-claim.simf +58 -0
  33. package/dist/docs/definitions/receivable-repayment-claim.json +13 -0
  34. package/dist/docs/definitions/receivable-repayment-claim.simf +59 -0
  35. package/dist/docs/definitions/receivable-state-funded.json +20 -0
  36. package/dist/docs/definitions/receivable-state-originated.json +19 -0
  37. package/dist/docs/definitions/receivable-state-repaid.json +20 -0
  38. package/dist/docs/definitions/recursive-delay-direct-next.simf +60 -0
  39. package/dist/docs/definitions/recursive-delay-optional.simf +88 -0
  40. package/dist/docs/definitions/recursive-delay-required.simf +72 -0
  41. package/dist/docs/definitions/recursive-delay.simf +83 -0
  42. package/dist/docs/definitions/recursive-policy-transfer-machine.simf +65 -0
  43. package/dist/domain/bond.d.ts +8649 -720
  44. package/dist/domain/bond.js +1398 -8
  45. package/dist/domain/bondSettlementValidation.d.ts +2 -0
  46. package/dist/domain/bondSettlementValidation.js +28 -0
  47. package/dist/domain/bondValidation.d.ts +37 -1
  48. package/dist/domain/bondValidation.js +137 -11
  49. package/dist/domain/fund.d.ts +2452 -0
  50. package/dist/domain/fund.js +1756 -0
  51. package/dist/domain/fundValidation.d.ts +152 -0
  52. package/dist/domain/fundValidation.js +767 -0
  53. package/dist/domain/policies.d.ts +1064 -0
  54. package/dist/domain/policies.js +1625 -0
  55. package/dist/domain/receivable.d.ts +824 -0
  56. package/dist/domain/receivable.js +1375 -0
  57. package/dist/domain/receivableValidation.d.ts +147 -0
  58. package/dist/domain/receivableValidation.js +831 -0
  59. package/dist/index.d.ts +8 -2
  60. package/dist/index.js +137 -21
  61. package/package.json +20 -2
@@ -0,0 +1,1064 @@
1
+ import type { SimplicityClient } from "../client/SimplicityClient";
2
+ import type { BondOutputBindingMode, OutputRawFields, PolicyOutputAmountForm, PolicyOutputAssetForm, PolicyEvidenceBundle, PolicyEvidenceBundleSchemaVersion, PolicyOutputBindingReasonCode, PolicyOutputBindingSupportedForm, PolicyOutputDescriptor, PolicyOutputNonceForm, PolicyReceiver, PolicyOutputRangeProofForm, PolicyState, PolicyTemplateDocument, PolicyTemplateManifest, PolicyTemplateManifestValidationResult, PolicyTemplateManifestVersion, PolicyTemplateInput, PolicyTransferDescriptor, PolicyVerificationReportSchemaVersion, PropagationMode, SimplicityArtifact } from "../core/types";
3
+ export declare const POLICY_TEMPLATE_MANIFEST_SCHEMA_VERSION: PolicyTemplateManifestVersion;
4
+ export declare const POLICY_VERIFICATION_REPORT_SCHEMA_VERSION: PolicyVerificationReportSchemaVersion;
5
+ export declare const POLICY_EVIDENCE_BUNDLE_SCHEMA_VERSION: PolicyEvidenceBundleSchemaVersion;
6
+ export declare function listPolicyTemplates(): PolicyTemplateManifest[];
7
+ export declare function describePolicyTemplate(input: {
8
+ templateId: string;
9
+ propagationMode?: PropagationMode;
10
+ }): PolicyTemplateManifest;
11
+ export declare function validatePolicyTemplateManifest(input: {
12
+ manifestValue: unknown;
13
+ }): PolicyTemplateManifestValidationResult;
14
+ export declare function loadPolicyTemplateManifest(input: {
15
+ templateId?: string;
16
+ propagationMode?: PropagationMode;
17
+ manifestPath?: string;
18
+ manifestValue?: unknown;
19
+ }): Promise<PolicyTemplateManifest>;
20
+ export declare function validatePolicyTemplateParams(input: {
21
+ templateId?: string;
22
+ manifestValue?: PolicyTemplateManifest;
23
+ params?: Record<string, string | number | boolean>;
24
+ propagationMode?: PropagationMode;
25
+ }): Record<string, string | number | boolean>;
26
+ export declare function summarizePolicyState(state: PolicyState): {
27
+ canonicalJson: string;
28
+ hash: string;
29
+ };
30
+ export declare function validatePolicyState(state: PolicyState): PolicyState;
31
+ export declare function summarizePolicyOutputDescriptor(descriptor: PolicyOutputDescriptor): {
32
+ canonicalJson: string;
33
+ hash: string;
34
+ };
35
+ export declare function validatePolicyOutputDescriptor(descriptor: PolicyOutputDescriptor): PolicyOutputDescriptor;
36
+ export declare function summarizePolicyTransferDescriptor(descriptor: PolicyTransferDescriptor): {
37
+ canonicalJson: string;
38
+ hash: string;
39
+ };
40
+ export declare function validatePolicyTransferDescriptor(descriptor: PolicyTransferDescriptor): PolicyTransferDescriptor;
41
+ export declare function compilePolicyStateContract(sdk: SimplicityClient, input: {
42
+ template: PolicyTemplateInput;
43
+ stateValue: PolicyState;
44
+ artifactPath?: string;
45
+ }): Promise<import("..").CompiledContract>;
46
+ export declare function issue(sdk: SimplicityClient, input: {
47
+ recipient: PolicyReceiver;
48
+ template: PolicyTemplateInput;
49
+ params?: Record<string, string | number | boolean>;
50
+ amountSat: number;
51
+ assetId: string;
52
+ propagationMode?: PropagationMode;
53
+ artifactPath?: string;
54
+ }): Promise<{
55
+ compiled: import("..").CompiledContract;
56
+ state: PolicyState;
57
+ policyTemplate: PolicyTemplateDocument;
58
+ policyHash: string;
59
+ }>;
60
+ export declare function verifyState(sdk: SimplicityClient, input: {
61
+ artifactPath?: string;
62
+ artifact?: SimplicityArtifact;
63
+ template?: PolicyTemplateInput;
64
+ statePath?: string;
65
+ stateValue?: PolicyState;
66
+ }): Promise<{
67
+ ok: boolean;
68
+ reason: string | undefined;
69
+ artifact: SimplicityArtifact;
70
+ template: import("../core/types").DefinitionVerificationResult;
71
+ state: import("../core/types").StateVerificationResult;
72
+ stateValue: PolicyState;
73
+ policyHashMatches: boolean;
74
+ report: {
75
+ schemaVersion: "policy-verification-report/v1";
76
+ templateTrust: {
77
+ artifactMatch: boolean;
78
+ onChainAnchorPresent: boolean;
79
+ onChainAnchorVerified: boolean;
80
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
81
+ };
82
+ stateTrust: {
83
+ artifactMatch: boolean;
84
+ onChainAnchorPresent: boolean;
85
+ onChainAnchorVerified: boolean;
86
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
87
+ };
88
+ propagationMode: PropagationMode;
89
+ nextPolicyRequired: boolean;
90
+ nextPolicyPresent: false;
91
+ plainExitAllowed: boolean;
92
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
93
+ };
94
+ trustSummary: import("../core/types").VerificationTrustSummary;
95
+ }>;
96
+ export declare function buildPolicyOutputDescriptor(sdk: SimplicityClient, input: {
97
+ nextCompiledContractAddress: string;
98
+ nextAmountSat: number;
99
+ assetId: string;
100
+ maxFeeSat?: number;
101
+ nextOutputIndex?: number;
102
+ feeIndex?: number;
103
+ nextOutputHash?: string;
104
+ outputForm?: {
105
+ assetForm?: PolicyOutputAssetForm;
106
+ amountForm?: PolicyOutputAmountForm;
107
+ nonceForm?: PolicyOutputNonceForm;
108
+ rangeProofForm?: PolicyOutputRangeProofForm;
109
+ };
110
+ rawOutput?: Partial<OutputRawFields>;
111
+ outputBindingMode?: BondOutputBindingMode;
112
+ }): Promise<{
113
+ descriptor: PolicyOutputDescriptor;
114
+ summary: {
115
+ canonicalJson: string;
116
+ hash: string;
117
+ };
118
+ supportedForm: import("../core/types").OutputBindingSupportedForm;
119
+ autoDerivedNextOutputHash: boolean;
120
+ reasonCode: import("../core/types").OutputBindingReasonCode;
121
+ fallbackReason: string | undefined;
122
+ bindingInputs: {
123
+ rawOutputComponents?: {
124
+ scriptPubKey: "raw-bytes" | "hash";
125
+ rangeProof: "raw-bytes" | "hash";
126
+ } | undefined;
127
+ assetId: string;
128
+ assetForm: import("../core/types").OutputAssetForm;
129
+ amountForm: import("../core/types").OutputAmountForm;
130
+ nonceForm: import("../core/types").OutputNonceForm;
131
+ rangeProofForm: import("../core/types").OutputRangeProofForm;
132
+ nextAmountSat: number;
133
+ nextOutputIndex: number;
134
+ feeIndex: number;
135
+ maxFeeSat: number;
136
+ };
137
+ }>;
138
+ export declare function prepareTransfer(sdk: SimplicityClient, input: {
139
+ currentArtifactPath?: string;
140
+ currentArtifact?: SimplicityArtifact;
141
+ template: PolicyTemplateInput;
142
+ currentStatePath?: string;
143
+ currentStateValue?: PolicyState;
144
+ nextReceiver: PolicyReceiver;
145
+ nextAmountSat: number;
146
+ nextParams?: Record<string, string | number | boolean>;
147
+ propagationMode?: PropagationMode;
148
+ nextArtifactPath?: string;
149
+ machineArtifactPath?: string;
150
+ nextOutputHash?: string;
151
+ nextOutputForm?: {
152
+ assetForm?: PolicyOutputAssetForm;
153
+ amountForm?: PolicyOutputAmountForm;
154
+ nonceForm?: PolicyOutputNonceForm;
155
+ rangeProofForm?: PolicyOutputRangeProofForm;
156
+ };
157
+ nextRawOutput?: Partial<OutputRawFields>;
158
+ outputBindingMode?: BondOutputBindingMode;
159
+ }): Promise<{
160
+ current: {
161
+ ok: boolean;
162
+ reason: string | undefined;
163
+ artifact: SimplicityArtifact;
164
+ template: import("../core/types").DefinitionVerificationResult;
165
+ state: import("../core/types").StateVerificationResult;
166
+ stateValue: PolicyState;
167
+ policyHashMatches: boolean;
168
+ report: {
169
+ schemaVersion: "policy-verification-report/v1";
170
+ templateTrust: {
171
+ artifactMatch: boolean;
172
+ onChainAnchorPresent: boolean;
173
+ onChainAnchorVerified: boolean;
174
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
175
+ };
176
+ stateTrust: {
177
+ artifactMatch: boolean;
178
+ onChainAnchorPresent: boolean;
179
+ onChainAnchorVerified: boolean;
180
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
181
+ };
182
+ propagationMode: PropagationMode;
183
+ nextPolicyRequired: boolean;
184
+ nextPolicyPresent: false;
185
+ plainExitAllowed: boolean;
186
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
187
+ };
188
+ trustSummary: import("../core/types").VerificationTrustSummary;
189
+ };
190
+ nextState: null;
191
+ nextCompiled: null;
192
+ machineArtifact: null;
193
+ transferDescriptor: PolicyTransferDescriptor;
194
+ transferSummary: {
195
+ canonicalJson: string;
196
+ hash: string;
197
+ };
198
+ verificationReport: {
199
+ nextPolicyPresent: false;
200
+ plainExitAllowed: true;
201
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
202
+ schemaVersion: "policy-verification-report/v1";
203
+ templateTrust: {
204
+ artifactMatch: boolean;
205
+ onChainAnchorPresent: boolean;
206
+ onChainAnchorVerified: boolean;
207
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
208
+ };
209
+ stateTrust: {
210
+ artifactMatch: boolean;
211
+ onChainAnchorPresent: boolean;
212
+ onChainAnchorVerified: boolean;
213
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
214
+ };
215
+ propagationMode: PropagationMode;
216
+ nextPolicyRequired: boolean;
217
+ };
218
+ } | {
219
+ current: {
220
+ ok: boolean;
221
+ reason: string | undefined;
222
+ artifact: SimplicityArtifact;
223
+ template: import("../core/types").DefinitionVerificationResult;
224
+ state: import("../core/types").StateVerificationResult;
225
+ stateValue: PolicyState;
226
+ policyHashMatches: boolean;
227
+ report: {
228
+ schemaVersion: "policy-verification-report/v1";
229
+ templateTrust: {
230
+ artifactMatch: boolean;
231
+ onChainAnchorPresent: boolean;
232
+ onChainAnchorVerified: boolean;
233
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
234
+ };
235
+ stateTrust: {
236
+ artifactMatch: boolean;
237
+ onChainAnchorPresent: boolean;
238
+ onChainAnchorVerified: boolean;
239
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
240
+ };
241
+ propagationMode: PropagationMode;
242
+ nextPolicyRequired: boolean;
243
+ nextPolicyPresent: false;
244
+ plainExitAllowed: boolean;
245
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
246
+ };
247
+ trustSummary: import("../core/types").VerificationTrustSummary;
248
+ };
249
+ nextState: PolicyState;
250
+ nextCompiled: import("..").CompiledContract;
251
+ machineArtifact: null;
252
+ transferDescriptor: PolicyTransferDescriptor;
253
+ transferSummary: {
254
+ canonicalJson: string;
255
+ hash: string;
256
+ };
257
+ verificationReport: {
258
+ nextPolicyPresent: true;
259
+ outputBinding: {
260
+ mode: BondOutputBindingMode;
261
+ supportedForm: PolicyOutputBindingSupportedForm;
262
+ committed: boolean;
263
+ runtimeBound: boolean;
264
+ sdkVerified: boolean;
265
+ amountRuntimeBound: boolean;
266
+ nextOutputHashRuntimeBound: boolean;
267
+ nextOutputScriptRuntimeBound: boolean;
268
+ reasonCode: PolicyOutputBindingReasonCode;
269
+ nextOutputHash?: string;
270
+ autoDerived?: boolean;
271
+ fallbackReason?: string;
272
+ bindingInputs?: import("../core/types").OutputBindingInputs;
273
+ } | undefined;
274
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
275
+ schemaVersion: "policy-verification-report/v1";
276
+ templateTrust: {
277
+ artifactMatch: boolean;
278
+ onChainAnchorPresent: boolean;
279
+ onChainAnchorVerified: boolean;
280
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
281
+ };
282
+ stateTrust: {
283
+ artifactMatch: boolean;
284
+ onChainAnchorPresent: boolean;
285
+ onChainAnchorVerified: boolean;
286
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
287
+ };
288
+ propagationMode: PropagationMode;
289
+ nextPolicyRequired: boolean;
290
+ plainExitAllowed: boolean;
291
+ };
292
+ }>;
293
+ export declare function prepareDirectTransfer(sdk: SimplicityClient, input: {
294
+ currentArtifactPath?: string;
295
+ currentArtifact?: SimplicityArtifact;
296
+ template: PolicyTemplateInput;
297
+ currentStatePath?: string;
298
+ currentStateValue?: PolicyState;
299
+ nextReceiver: PolicyReceiver;
300
+ nextAmountSat: number;
301
+ nextParams?: Record<string, string | number | boolean>;
302
+ propagationMode?: PropagationMode;
303
+ nextArtifactPath?: string;
304
+ nextOutputHash?: string;
305
+ nextOutputForm?: {
306
+ assetForm?: PolicyOutputAssetForm;
307
+ amountForm?: PolicyOutputAmountForm;
308
+ nonceForm?: PolicyOutputNonceForm;
309
+ rangeProofForm?: PolicyOutputRangeProofForm;
310
+ };
311
+ nextRawOutput?: Partial<OutputRawFields>;
312
+ outputBindingMode?: BondOutputBindingMode;
313
+ }): Promise<{
314
+ current: {
315
+ ok: boolean;
316
+ reason: string | undefined;
317
+ artifact: SimplicityArtifact;
318
+ template: import("../core/types").DefinitionVerificationResult;
319
+ state: import("../core/types").StateVerificationResult;
320
+ stateValue: PolicyState;
321
+ policyHashMatches: boolean;
322
+ report: {
323
+ schemaVersion: "policy-verification-report/v1";
324
+ templateTrust: {
325
+ artifactMatch: boolean;
326
+ onChainAnchorPresent: boolean;
327
+ onChainAnchorVerified: boolean;
328
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
329
+ };
330
+ stateTrust: {
331
+ artifactMatch: boolean;
332
+ onChainAnchorPresent: boolean;
333
+ onChainAnchorVerified: boolean;
334
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
335
+ };
336
+ propagationMode: PropagationMode;
337
+ nextPolicyRequired: boolean;
338
+ nextPolicyPresent: false;
339
+ plainExitAllowed: boolean;
340
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
341
+ };
342
+ trustSummary: import("../core/types").VerificationTrustSummary;
343
+ };
344
+ nextState: PolicyState;
345
+ nextCompiled: import("..").CompiledContract;
346
+ machineArtifact: null;
347
+ transferDescriptor: PolicyTransferDescriptor;
348
+ transferSummary: {
349
+ canonicalJson: string;
350
+ hash: string;
351
+ };
352
+ verificationReport: {
353
+ nextPolicyPresent: true;
354
+ plainExitAllowed: false;
355
+ outputBinding: {
356
+ mode: BondOutputBindingMode;
357
+ supportedForm: PolicyOutputBindingSupportedForm;
358
+ committed: boolean;
359
+ runtimeBound: boolean;
360
+ sdkVerified: boolean;
361
+ amountRuntimeBound: boolean;
362
+ nextOutputHashRuntimeBound: boolean;
363
+ nextOutputScriptRuntimeBound: boolean;
364
+ reasonCode: PolicyOutputBindingReasonCode;
365
+ nextOutputHash?: string;
366
+ autoDerived?: boolean;
367
+ fallbackReason?: string;
368
+ bindingInputs?: import("../core/types").OutputBindingInputs;
369
+ } | undefined;
370
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
371
+ schemaVersion: "policy-verification-report/v1";
372
+ templateTrust: {
373
+ artifactMatch: boolean;
374
+ onChainAnchorPresent: boolean;
375
+ onChainAnchorVerified: boolean;
376
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
377
+ };
378
+ stateTrust: {
379
+ artifactMatch: boolean;
380
+ onChainAnchorPresent: boolean;
381
+ onChainAnchorVerified: boolean;
382
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
383
+ };
384
+ propagationMode: PropagationMode;
385
+ nextPolicyRequired: boolean;
386
+ };
387
+ }>;
388
+ export declare function verifyDirectTransfer(sdk: SimplicityClient, input: {
389
+ template: PolicyTemplateInput;
390
+ currentArtifactPath?: string;
391
+ currentArtifact?: SimplicityArtifact;
392
+ currentStatePath?: string;
393
+ currentStateValue?: PolicyState;
394
+ transferDescriptorValue?: PolicyTransferDescriptor;
395
+ nextStatePath?: string;
396
+ nextStateValue?: PolicyState;
397
+ }): Promise<{
398
+ ok: boolean;
399
+ reason: string | undefined;
400
+ current: {
401
+ ok: boolean;
402
+ reason: string | undefined;
403
+ artifact: SimplicityArtifact;
404
+ template: import("../core/types").DefinitionVerificationResult;
405
+ state: import("../core/types").StateVerificationResult;
406
+ stateValue: PolicyState;
407
+ policyHashMatches: boolean;
408
+ report: {
409
+ schemaVersion: "policy-verification-report/v1";
410
+ templateTrust: {
411
+ artifactMatch: boolean;
412
+ onChainAnchorPresent: boolean;
413
+ onChainAnchorVerified: boolean;
414
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
415
+ };
416
+ stateTrust: {
417
+ artifactMatch: boolean;
418
+ onChainAnchorPresent: boolean;
419
+ onChainAnchorVerified: boolean;
420
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
421
+ };
422
+ propagationMode: PropagationMode;
423
+ nextPolicyRequired: boolean;
424
+ nextPolicyPresent: false;
425
+ plainExitAllowed: boolean;
426
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
427
+ };
428
+ trustSummary: import("../core/types").VerificationTrustSummary;
429
+ };
430
+ transfer: PolicyTransferDescriptor | undefined;
431
+ transferSummary: {
432
+ canonicalJson: string;
433
+ hash: string;
434
+ } | undefined;
435
+ nextState: PolicyState | undefined;
436
+ verificationReport: {
437
+ nextPolicyPresent: boolean;
438
+ plainExitAllowed: false;
439
+ outputBinding: {
440
+ mode: BondOutputBindingMode;
441
+ supportedForm: PolicyOutputBindingSupportedForm;
442
+ committed: boolean;
443
+ runtimeBound: boolean;
444
+ sdkVerified: boolean;
445
+ amountRuntimeBound: boolean;
446
+ nextOutputHashRuntimeBound: boolean;
447
+ nextOutputScriptRuntimeBound: boolean;
448
+ reasonCode: PolicyOutputBindingReasonCode;
449
+ nextOutputHash?: string;
450
+ autoDerived?: boolean;
451
+ fallbackReason?: string;
452
+ bindingInputs?: import("../core/types").OutputBindingInputs;
453
+ } | undefined;
454
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
455
+ schemaVersion: "policy-verification-report/v1";
456
+ templateTrust: {
457
+ artifactMatch: boolean;
458
+ onChainAnchorPresent: boolean;
459
+ onChainAnchorVerified: boolean;
460
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
461
+ };
462
+ stateTrust: {
463
+ artifactMatch: boolean;
464
+ onChainAnchorPresent: boolean;
465
+ onChainAnchorVerified: boolean;
466
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
467
+ };
468
+ propagationMode: PropagationMode;
469
+ nextPolicyRequired: boolean;
470
+ };
471
+ }>;
472
+ export declare function inspectDirectTransfer(sdk: SimplicityClient, input: Parameters<typeof executeDirectTransfer>[1]): Promise<{
473
+ mode: "direct-hop";
474
+ prepared: {
475
+ current: {
476
+ ok: boolean;
477
+ reason: string | undefined;
478
+ artifact: SimplicityArtifact;
479
+ template: import("../core/types").DefinitionVerificationResult;
480
+ state: import("../core/types").StateVerificationResult;
481
+ stateValue: PolicyState;
482
+ policyHashMatches: boolean;
483
+ report: {
484
+ schemaVersion: "policy-verification-report/v1";
485
+ templateTrust: {
486
+ artifactMatch: boolean;
487
+ onChainAnchorPresent: boolean;
488
+ onChainAnchorVerified: boolean;
489
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
490
+ };
491
+ stateTrust: {
492
+ artifactMatch: boolean;
493
+ onChainAnchorPresent: boolean;
494
+ onChainAnchorVerified: boolean;
495
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
496
+ };
497
+ propagationMode: PropagationMode;
498
+ nextPolicyRequired: boolean;
499
+ nextPolicyPresent: false;
500
+ plainExitAllowed: boolean;
501
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
502
+ };
503
+ trustSummary: import("../core/types").VerificationTrustSummary;
504
+ };
505
+ nextState: PolicyState;
506
+ nextCompiled: import("..").CompiledContract;
507
+ machineArtifact: null;
508
+ transferDescriptor: PolicyTransferDescriptor;
509
+ transferSummary: {
510
+ canonicalJson: string;
511
+ hash: string;
512
+ };
513
+ verificationReport: {
514
+ nextPolicyPresent: true;
515
+ plainExitAllowed: false;
516
+ outputBinding: {
517
+ mode: BondOutputBindingMode;
518
+ supportedForm: PolicyOutputBindingSupportedForm;
519
+ committed: boolean;
520
+ runtimeBound: boolean;
521
+ sdkVerified: boolean;
522
+ amountRuntimeBound: boolean;
523
+ nextOutputHashRuntimeBound: boolean;
524
+ nextOutputScriptRuntimeBound: boolean;
525
+ reasonCode: PolicyOutputBindingReasonCode;
526
+ nextOutputHash?: string;
527
+ autoDerived?: boolean;
528
+ fallbackReason?: string;
529
+ bindingInputs?: import("../core/types").OutputBindingInputs;
530
+ } | undefined;
531
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
532
+ schemaVersion: "policy-verification-report/v1";
533
+ templateTrust: {
534
+ artifactMatch: boolean;
535
+ onChainAnchorPresent: boolean;
536
+ onChainAnchorVerified: boolean;
537
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
538
+ };
539
+ stateTrust: {
540
+ artifactMatch: boolean;
541
+ onChainAnchorPresent: boolean;
542
+ onChainAnchorVerified: boolean;
543
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
544
+ };
545
+ propagationMode: PropagationMode;
546
+ nextPolicyRequired: boolean;
547
+ };
548
+ };
549
+ inspect: import("../core/types").InspectResult;
550
+ }>;
551
+ export declare function executeDirectTransfer(sdk: SimplicityClient, input: {
552
+ currentArtifactPath?: string;
553
+ currentArtifact?: SimplicityArtifact;
554
+ template: PolicyTemplateInput;
555
+ currentStatePath?: string;
556
+ currentStateValue?: PolicyState;
557
+ nextReceiver: PolicyReceiver;
558
+ nextAmountSat: number;
559
+ nextParams?: Record<string, string | number | boolean>;
560
+ propagationMode?: PropagationMode;
561
+ nextArtifactPath?: string;
562
+ nextOutputHash?: string;
563
+ nextOutputForm?: {
564
+ assetForm?: PolicyOutputAssetForm;
565
+ amountForm?: PolicyOutputAmountForm;
566
+ nonceForm?: PolicyOutputNonceForm;
567
+ rangeProofForm?: PolicyOutputRangeProofForm;
568
+ };
569
+ nextRawOutput?: Partial<OutputRawFields>;
570
+ outputBindingMode?: BondOutputBindingMode;
571
+ wallet: string;
572
+ signer: {
573
+ type: "schnorrPrivkeyHex";
574
+ privkeyHex: string;
575
+ };
576
+ broadcast?: boolean;
577
+ feeSat?: number;
578
+ utxoPolicy?: "smallest_over" | "largest" | "newest";
579
+ }): Promise<{
580
+ mode: "direct-hop";
581
+ prepared: {
582
+ current: {
583
+ ok: boolean;
584
+ reason: string | undefined;
585
+ artifact: SimplicityArtifact;
586
+ template: import("../core/types").DefinitionVerificationResult;
587
+ state: import("../core/types").StateVerificationResult;
588
+ stateValue: PolicyState;
589
+ policyHashMatches: boolean;
590
+ report: {
591
+ schemaVersion: "policy-verification-report/v1";
592
+ templateTrust: {
593
+ artifactMatch: boolean;
594
+ onChainAnchorPresent: boolean;
595
+ onChainAnchorVerified: boolean;
596
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
597
+ };
598
+ stateTrust: {
599
+ artifactMatch: boolean;
600
+ onChainAnchorPresent: boolean;
601
+ onChainAnchorVerified: boolean;
602
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
603
+ };
604
+ propagationMode: PropagationMode;
605
+ nextPolicyRequired: boolean;
606
+ nextPolicyPresent: false;
607
+ plainExitAllowed: boolean;
608
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
609
+ };
610
+ trustSummary: import("../core/types").VerificationTrustSummary;
611
+ };
612
+ nextState: PolicyState;
613
+ nextCompiled: import("..").CompiledContract;
614
+ machineArtifact: null;
615
+ transferDescriptor: PolicyTransferDescriptor;
616
+ transferSummary: {
617
+ canonicalJson: string;
618
+ hash: string;
619
+ };
620
+ verificationReport: {
621
+ nextPolicyPresent: true;
622
+ plainExitAllowed: false;
623
+ outputBinding: {
624
+ mode: BondOutputBindingMode;
625
+ supportedForm: PolicyOutputBindingSupportedForm;
626
+ committed: boolean;
627
+ runtimeBound: boolean;
628
+ sdkVerified: boolean;
629
+ amountRuntimeBound: boolean;
630
+ nextOutputHashRuntimeBound: boolean;
631
+ nextOutputScriptRuntimeBound: boolean;
632
+ reasonCode: PolicyOutputBindingReasonCode;
633
+ nextOutputHash?: string;
634
+ autoDerived?: boolean;
635
+ fallbackReason?: string;
636
+ bindingInputs?: import("../core/types").OutputBindingInputs;
637
+ } | undefined;
638
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
639
+ schemaVersion: "policy-verification-report/v1";
640
+ templateTrust: {
641
+ artifactMatch: boolean;
642
+ onChainAnchorPresent: boolean;
643
+ onChainAnchorVerified: boolean;
644
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
645
+ };
646
+ stateTrust: {
647
+ artifactMatch: boolean;
648
+ onChainAnchorPresent: boolean;
649
+ onChainAnchorVerified: boolean;
650
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
651
+ };
652
+ propagationMode: PropagationMode;
653
+ nextPolicyRequired: boolean;
654
+ };
655
+ };
656
+ execution: import("../core/types").ExecuteResult;
657
+ }>;
658
+ export declare function verifyTransfer(sdk: SimplicityClient, input: {
659
+ template: PolicyTemplateInput;
660
+ currentArtifactPath?: string;
661
+ currentArtifact?: SimplicityArtifact;
662
+ currentStatePath?: string;
663
+ currentStateValue?: PolicyState;
664
+ transferDescriptorValue?: PolicyTransferDescriptor;
665
+ nextStatePath?: string;
666
+ nextStateValue?: PolicyState;
667
+ }): Promise<{
668
+ ok: boolean;
669
+ reason: string | undefined;
670
+ current: {
671
+ ok: boolean;
672
+ reason: string | undefined;
673
+ artifact: SimplicityArtifact;
674
+ template: import("../core/types").DefinitionVerificationResult;
675
+ state: import("../core/types").StateVerificationResult;
676
+ stateValue: PolicyState;
677
+ policyHashMatches: boolean;
678
+ report: {
679
+ schemaVersion: "policy-verification-report/v1";
680
+ templateTrust: {
681
+ artifactMatch: boolean;
682
+ onChainAnchorPresent: boolean;
683
+ onChainAnchorVerified: boolean;
684
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
685
+ };
686
+ stateTrust: {
687
+ artifactMatch: boolean;
688
+ onChainAnchorPresent: boolean;
689
+ onChainAnchorVerified: boolean;
690
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
691
+ };
692
+ propagationMode: PropagationMode;
693
+ nextPolicyRequired: boolean;
694
+ nextPolicyPresent: false;
695
+ plainExitAllowed: boolean;
696
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
697
+ };
698
+ trustSummary: import("../core/types").VerificationTrustSummary;
699
+ };
700
+ transfer: PolicyTransferDescriptor | undefined;
701
+ transferSummary: {
702
+ canonicalJson: string;
703
+ hash: string;
704
+ } | undefined;
705
+ nextState: PolicyState | undefined;
706
+ verificationReport: {
707
+ nextPolicyPresent: boolean;
708
+ plainExitAllowed: boolean;
709
+ outputBinding: {
710
+ mode: BondOutputBindingMode;
711
+ supportedForm: PolicyOutputBindingSupportedForm;
712
+ committed: boolean;
713
+ runtimeBound: boolean;
714
+ sdkVerified: boolean;
715
+ amountRuntimeBound: boolean;
716
+ nextOutputHashRuntimeBound: boolean;
717
+ nextOutputScriptRuntimeBound: boolean;
718
+ reasonCode: PolicyOutputBindingReasonCode;
719
+ nextOutputHash?: string;
720
+ autoDerived?: boolean;
721
+ fallbackReason?: string;
722
+ bindingInputs?: import("../core/types").OutputBindingInputs;
723
+ } | undefined;
724
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
725
+ schemaVersion: "policy-verification-report/v1";
726
+ templateTrust: {
727
+ artifactMatch: boolean;
728
+ onChainAnchorPresent: boolean;
729
+ onChainAnchorVerified: boolean;
730
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
731
+ };
732
+ stateTrust: {
733
+ artifactMatch: boolean;
734
+ onChainAnchorPresent: boolean;
735
+ onChainAnchorVerified: boolean;
736
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
737
+ };
738
+ propagationMode: PropagationMode;
739
+ nextPolicyRequired: boolean;
740
+ };
741
+ trustSummary: import("../core/types").VerificationTrustSummary;
742
+ }>;
743
+ export declare function inspectTransfer(sdk: SimplicityClient, input: Parameters<typeof executeTransfer>[1] & {
744
+ utxoPolicy?: "smallest_over" | "largest" | "newest";
745
+ }): Promise<{
746
+ mode: "plain-exit";
747
+ prepared: {
748
+ current: {
749
+ ok: boolean;
750
+ reason: string | undefined;
751
+ artifact: SimplicityArtifact;
752
+ template: import("../core/types").DefinitionVerificationResult;
753
+ state: import("../core/types").StateVerificationResult;
754
+ stateValue: PolicyState;
755
+ policyHashMatches: boolean;
756
+ report: {
757
+ schemaVersion: "policy-verification-report/v1";
758
+ templateTrust: {
759
+ artifactMatch: boolean;
760
+ onChainAnchorPresent: boolean;
761
+ onChainAnchorVerified: boolean;
762
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
763
+ };
764
+ stateTrust: {
765
+ artifactMatch: boolean;
766
+ onChainAnchorPresent: boolean;
767
+ onChainAnchorVerified: boolean;
768
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
769
+ };
770
+ propagationMode: PropagationMode;
771
+ nextPolicyRequired: boolean;
772
+ nextPolicyPresent: false;
773
+ plainExitAllowed: boolean;
774
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
775
+ };
776
+ trustSummary: import("../core/types").VerificationTrustSummary;
777
+ };
778
+ nextState: null;
779
+ nextCompiled: null;
780
+ machineArtifact: null;
781
+ transferDescriptor: PolicyTransferDescriptor;
782
+ transferSummary: {
783
+ canonicalJson: string;
784
+ hash: string;
785
+ };
786
+ verificationReport: {
787
+ nextPolicyPresent: false;
788
+ plainExitAllowed: true;
789
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
790
+ schemaVersion: "policy-verification-report/v1";
791
+ templateTrust: {
792
+ artifactMatch: boolean;
793
+ onChainAnchorPresent: boolean;
794
+ onChainAnchorVerified: boolean;
795
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
796
+ };
797
+ stateTrust: {
798
+ artifactMatch: boolean;
799
+ onChainAnchorPresent: boolean;
800
+ onChainAnchorVerified: boolean;
801
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
802
+ };
803
+ propagationMode: PropagationMode;
804
+ nextPolicyRequired: boolean;
805
+ };
806
+ };
807
+ inspect: import("../core/types").InspectResult;
808
+ } | {
809
+ mode: "sdk-path" | "conditional-hop" | "direct-hop";
810
+ prepared: {
811
+ current: {
812
+ ok: boolean;
813
+ reason: string | undefined;
814
+ artifact: SimplicityArtifact;
815
+ template: import("../core/types").DefinitionVerificationResult;
816
+ state: import("../core/types").StateVerificationResult;
817
+ stateValue: PolicyState;
818
+ policyHashMatches: boolean;
819
+ report: {
820
+ schemaVersion: "policy-verification-report/v1";
821
+ templateTrust: {
822
+ artifactMatch: boolean;
823
+ onChainAnchorPresent: boolean;
824
+ onChainAnchorVerified: boolean;
825
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
826
+ };
827
+ stateTrust: {
828
+ artifactMatch: boolean;
829
+ onChainAnchorPresent: boolean;
830
+ onChainAnchorVerified: boolean;
831
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
832
+ };
833
+ propagationMode: PropagationMode;
834
+ nextPolicyRequired: boolean;
835
+ nextPolicyPresent: false;
836
+ plainExitAllowed: boolean;
837
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
838
+ };
839
+ trustSummary: import("../core/types").VerificationTrustSummary;
840
+ };
841
+ nextState: PolicyState;
842
+ nextCompiled: import("..").CompiledContract;
843
+ machineArtifact: null;
844
+ transferDescriptor: PolicyTransferDescriptor;
845
+ transferSummary: {
846
+ canonicalJson: string;
847
+ hash: string;
848
+ };
849
+ verificationReport: {
850
+ nextPolicyPresent: true;
851
+ outputBinding: {
852
+ mode: BondOutputBindingMode;
853
+ supportedForm: PolicyOutputBindingSupportedForm;
854
+ committed: boolean;
855
+ runtimeBound: boolean;
856
+ sdkVerified: boolean;
857
+ amountRuntimeBound: boolean;
858
+ nextOutputHashRuntimeBound: boolean;
859
+ nextOutputScriptRuntimeBound: boolean;
860
+ reasonCode: PolicyOutputBindingReasonCode;
861
+ nextOutputHash?: string;
862
+ autoDerived?: boolean;
863
+ fallbackReason?: string;
864
+ bindingInputs?: import("../core/types").OutputBindingInputs;
865
+ } | undefined;
866
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
867
+ schemaVersion: "policy-verification-report/v1";
868
+ templateTrust: {
869
+ artifactMatch: boolean;
870
+ onChainAnchorPresent: boolean;
871
+ onChainAnchorVerified: boolean;
872
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
873
+ };
874
+ stateTrust: {
875
+ artifactMatch: boolean;
876
+ onChainAnchorPresent: boolean;
877
+ onChainAnchorVerified: boolean;
878
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
879
+ };
880
+ propagationMode: PropagationMode;
881
+ nextPolicyRequired: boolean;
882
+ plainExitAllowed: boolean;
883
+ };
884
+ };
885
+ inspect: import("../core/types").InspectResult;
886
+ }>;
887
+ export declare function executeTransfer(sdk: SimplicityClient, input: {
888
+ currentArtifactPath?: string;
889
+ currentArtifact?: SimplicityArtifact;
890
+ template: PolicyTemplateInput;
891
+ currentStatePath?: string;
892
+ currentStateValue?: PolicyState;
893
+ nextReceiver: PolicyReceiver;
894
+ nextAmountSat: number;
895
+ nextParams?: Record<string, string | number | boolean>;
896
+ propagationMode?: PropagationMode;
897
+ nextArtifactPath?: string;
898
+ nextOutputHash?: string;
899
+ nextOutputForm?: {
900
+ assetForm?: PolicyOutputAssetForm;
901
+ amountForm?: PolicyOutputAmountForm;
902
+ nonceForm?: PolicyOutputNonceForm;
903
+ rangeProofForm?: PolicyOutputRangeProofForm;
904
+ };
905
+ nextRawOutput?: Partial<OutputRawFields>;
906
+ outputBindingMode?: BondOutputBindingMode;
907
+ wallet: string;
908
+ signer: {
909
+ type: "schnorrPrivkeyHex";
910
+ privkeyHex: string;
911
+ };
912
+ broadcast?: boolean;
913
+ feeSat?: number;
914
+ utxoPolicy?: "smallest_over" | "largest" | "newest";
915
+ }): Promise<{
916
+ mode: "plain-exit";
917
+ prepared: {
918
+ current: {
919
+ ok: boolean;
920
+ reason: string | undefined;
921
+ artifact: SimplicityArtifact;
922
+ template: import("../core/types").DefinitionVerificationResult;
923
+ state: import("../core/types").StateVerificationResult;
924
+ stateValue: PolicyState;
925
+ policyHashMatches: boolean;
926
+ report: {
927
+ schemaVersion: "policy-verification-report/v1";
928
+ templateTrust: {
929
+ artifactMatch: boolean;
930
+ onChainAnchorPresent: boolean;
931
+ onChainAnchorVerified: boolean;
932
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
933
+ };
934
+ stateTrust: {
935
+ artifactMatch: boolean;
936
+ onChainAnchorPresent: boolean;
937
+ onChainAnchorVerified: boolean;
938
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
939
+ };
940
+ propagationMode: PropagationMode;
941
+ nextPolicyRequired: boolean;
942
+ nextPolicyPresent: false;
943
+ plainExitAllowed: boolean;
944
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
945
+ };
946
+ trustSummary: import("../core/types").VerificationTrustSummary;
947
+ };
948
+ nextState: null;
949
+ nextCompiled: null;
950
+ machineArtifact: null;
951
+ transferDescriptor: PolicyTransferDescriptor;
952
+ transferSummary: {
953
+ canonicalJson: string;
954
+ hash: string;
955
+ };
956
+ verificationReport: {
957
+ nextPolicyPresent: false;
958
+ plainExitAllowed: true;
959
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
960
+ schemaVersion: "policy-verification-report/v1";
961
+ templateTrust: {
962
+ artifactMatch: boolean;
963
+ onChainAnchorPresent: boolean;
964
+ onChainAnchorVerified: boolean;
965
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
966
+ };
967
+ stateTrust: {
968
+ artifactMatch: boolean;
969
+ onChainAnchorPresent: boolean;
970
+ onChainAnchorVerified: boolean;
971
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
972
+ };
973
+ propagationMode: PropagationMode;
974
+ nextPolicyRequired: boolean;
975
+ };
976
+ };
977
+ execution: import("../core/types").ExecuteResult;
978
+ } | {
979
+ mode: "sdk-path" | "conditional-hop" | "direct-hop";
980
+ prepared: {
981
+ current: {
982
+ ok: boolean;
983
+ reason: string | undefined;
984
+ artifact: SimplicityArtifact;
985
+ template: import("../core/types").DefinitionVerificationResult;
986
+ state: import("../core/types").StateVerificationResult;
987
+ stateValue: PolicyState;
988
+ policyHashMatches: boolean;
989
+ report: {
990
+ schemaVersion: "policy-verification-report/v1";
991
+ templateTrust: {
992
+ artifactMatch: boolean;
993
+ onChainAnchorPresent: boolean;
994
+ onChainAnchorVerified: boolean;
995
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
996
+ };
997
+ stateTrust: {
998
+ artifactMatch: boolean;
999
+ onChainAnchorPresent: boolean;
1000
+ onChainAnchorVerified: boolean;
1001
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
1002
+ };
1003
+ propagationMode: PropagationMode;
1004
+ nextPolicyRequired: boolean;
1005
+ nextPolicyPresent: false;
1006
+ plainExitAllowed: boolean;
1007
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
1008
+ };
1009
+ trustSummary: import("../core/types").VerificationTrustSummary;
1010
+ };
1011
+ nextState: PolicyState;
1012
+ nextCompiled: import("..").CompiledContract;
1013
+ machineArtifact: null;
1014
+ transferDescriptor: PolicyTransferDescriptor;
1015
+ transferSummary: {
1016
+ canonicalJson: string;
1017
+ hash: string;
1018
+ };
1019
+ verificationReport: {
1020
+ nextPolicyPresent: true;
1021
+ outputBinding: {
1022
+ mode: BondOutputBindingMode;
1023
+ supportedForm: PolicyOutputBindingSupportedForm;
1024
+ committed: boolean;
1025
+ runtimeBound: boolean;
1026
+ sdkVerified: boolean;
1027
+ amountRuntimeBound: boolean;
1028
+ nextOutputHashRuntimeBound: boolean;
1029
+ nextOutputScriptRuntimeBound: boolean;
1030
+ reasonCode: PolicyOutputBindingReasonCode;
1031
+ nextOutputHash?: string;
1032
+ autoDerived?: boolean;
1033
+ fallbackReason?: string;
1034
+ bindingInputs?: import("../core/types").OutputBindingInputs;
1035
+ } | undefined;
1036
+ enforcement: "sdk-path" | "conditional-hop" | "direct-hop";
1037
+ schemaVersion: "policy-verification-report/v1";
1038
+ templateTrust: {
1039
+ artifactMatch: boolean;
1040
+ onChainAnchorPresent: boolean;
1041
+ onChainAnchorVerified: boolean;
1042
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
1043
+ };
1044
+ stateTrust: {
1045
+ artifactMatch: boolean;
1046
+ onChainAnchorPresent: boolean;
1047
+ onChainAnchorVerified: boolean;
1048
+ effectiveMode: "none" | import("../core/types").DefinitionAnchorMode;
1049
+ };
1050
+ propagationMode: PropagationMode;
1051
+ nextPolicyRequired: boolean;
1052
+ plainExitAllowed: boolean;
1053
+ };
1054
+ };
1055
+ execution: import("../core/types").ExecuteResult;
1056
+ }>;
1057
+ export declare function exportEvidence(sdk: SimplicityClient, input: {
1058
+ artifactPath?: string;
1059
+ artifact?: SimplicityArtifact;
1060
+ template: PolicyTemplateInput;
1061
+ statePath?: string;
1062
+ stateValue?: PolicyState;
1063
+ transferDescriptorValue?: PolicyTransferDescriptor;
1064
+ }): Promise<PolicyEvidenceBundle>;