@hazbase/simplicity 0.0.5 → 0.1.1

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