@midnightntwrk/compact-js 0.0.0-stage → 4.0.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 +14 -0
- package/README.md +158 -2
- package/dist/dts/effect/CompactContext.d.ts +20 -0
- package/dist/dts/effect/CompactContext.d.ts.map +1 -0
- package/dist/dts/effect/CompactRuntime.d.ts +76 -0
- package/dist/dts/effect/CompactRuntime.d.ts.map +1 -0
- package/dist/dts/effect/CompiledContract.d.ts +107 -0
- package/dist/dts/effect/CompiledContract.d.ts.map +1 -0
- package/dist/dts/effect/Contract.d.ts +154 -0
- package/dist/dts/effect/Contract.d.ts.map +1 -0
- package/dist/dts/effect/ContractConfigurationError.d.ts +54 -0
- package/dist/dts/effect/ContractConfigurationError.d.ts.map +1 -0
- package/dist/dts/effect/ContractEventStore.d.ts +167 -0
- package/dist/dts/effect/ContractEventStore.d.ts.map +1 -0
- package/dist/dts/effect/ContractEventValidationError.d.ts +34 -0
- package/dist/dts/effect/ContractEventValidationError.d.ts.map +1 -0
- package/dist/dts/effect/ContractEventValidator.d.ts +18 -0
- package/dist/dts/effect/ContractEventValidator.d.ts.map +1 -0
- package/dist/dts/effect/ContractExecutable.d.ts +99 -0
- package/dist/dts/effect/ContractExecutable.d.ts.map +1 -0
- package/dist/dts/effect/ContractExecutableRuntime.d.ts +4 -0
- package/dist/dts/effect/ContractExecutableRuntime.d.ts.map +1 -0
- package/dist/dts/effect/ContractKeyLocation.d.ts +55 -0
- package/dist/dts/effect/ContractKeyLocation.d.ts.map +1 -0
- package/dist/dts/effect/ContractLog.d.ts +273 -0
- package/dist/dts/effect/ContractLog.d.ts.map +1 -0
- package/dist/dts/effect/ContractRuntimeError.d.ts +34 -0
- package/dist/dts/effect/ContractRuntimeError.d.ts.map +1 -0
- package/dist/dts/effect/Ledger.d.ts +104 -0
- package/dist/dts/effect/Ledger.d.ts.map +1 -0
- package/dist/dts/effect/MalformedHexPrefixError.d.ts +37 -0
- package/dist/dts/effect/MalformedHexPrefixError.d.ts.map +1 -0
- package/dist/dts/effect/ZKConfiguration.d.ts +52 -0
- package/dist/dts/effect/ZKConfiguration.d.ts.map +1 -0
- package/dist/dts/effect/ZKConfigurationReadError.d.ts +45 -0
- package/dist/dts/effect/ZKConfigurationReadError.d.ts.map +1 -0
- package/dist/dts/effect/ZKManifest.d.ts +50 -0
- package/dist/dts/effect/ZKManifest.d.ts.map +1 -0
- package/dist/dts/effect/ZKManifestError.d.ts +34 -0
- package/dist/dts/effect/ZKManifestError.d.ts.map +1 -0
- package/dist/dts/effect/index.d.ts +22 -0
- package/dist/dts/effect/index.d.ts.map +1 -0
- package/dist/dts/effect/internal/boundary.d.ts +35 -0
- package/dist/dts/effect/internal/boundary.d.ts.map +1 -0
- package/dist/dts/effect/internal/compactContext.d.ts +29 -0
- package/dist/dts/effect/internal/compactContext.d.ts.map +1 -0
- package/dist/dts/effect/internal/contractEventsSurface.d.ts +43 -0
- package/dist/dts/effect/internal/contractEventsSurface.d.ts.map +1 -0
- package/dist/dts/effect/internal/era/v8Executable.d.ts +65 -0
- package/dist/dts/effect/internal/era/v8Executable.d.ts.map +1 -0
- package/dist/dts/effect/internal/era/v8Ledger.d.ts +76 -0
- package/dist/dts/effect/internal/era/v8Ledger.d.ts.map +1 -0
- package/dist/dts/effect/internal/era/v8Runtime.d.ts +26 -0
- package/dist/dts/effect/internal/era/v8Runtime.d.ts.map +1 -0
- package/dist/dts/effect/internal/era/v9Executable.d.ts +65 -0
- package/dist/dts/effect/internal/era/v9Executable.d.ts.map +1 -0
- package/dist/dts/effect/internal/era/v9Ledger.d.ts +76 -0
- package/dist/dts/effect/internal/era/v9Ledger.d.ts.map +1 -0
- package/dist/dts/effect/internal/era/v9Runtime.d.ts +15 -0
- package/dist/dts/effect/internal/era/v9Runtime.d.ts.map +1 -0
- package/dist/dts/effect/internal/era.d.ts +117 -0
- package/dist/dts/effect/internal/era.d.ts.map +1 -0
- package/dist/dts/effect/internal/eraFreeSurface.d.ts +49 -0
- package/dist/dts/effect/internal/eraFreeSurface.d.ts.map +1 -0
- package/dist/dts/effect/internal/eraNeutralSurface.d.ts +35 -0
- package/dist/dts/effect/internal/eraNeutralSurface.d.ts.map +1 -0
- package/dist/dts/effect/internal/executable.d.ts +371 -0
- package/dist/dts/effect/internal/executable.d.ts.map +1 -0
- package/dist/dts/effect/internal/ledger/binding.d.ts +2 -0
- package/dist/dts/effect/internal/ledger/binding.d.ts.map +1 -0
- package/dist/dts/effect/internal/ledger/conformance.d.ts +2 -0
- package/dist/dts/effect/internal/ledger/conformance.d.ts.map +1 -0
- package/dist/dts/effect/internal/ledger/conversions.d.ts +167 -0
- package/dist/dts/effect/internal/ledger/conversions.d.ts.map +1 -0
- package/dist/dts/effect/internal/ledger/current.d.ts +8 -0
- package/dist/dts/effect/internal/ledger/current.d.ts.map +1 -0
- package/dist/dts/effect/internal/ledger/v8.d.ts +100 -0
- package/dist/dts/effect/internal/ledger/v8.d.ts.map +1 -0
- package/dist/dts/effect/internal/ledger/v9.d.ts +66 -0
- package/dist/dts/effect/internal/ledger/v9.d.ts.map +1 -0
- package/dist/dts/effect/internal/runtime/binding.d.ts +2 -0
- package/dist/dts/effect/internal/runtime/binding.d.ts.map +1 -0
- package/dist/dts/effect/internal/runtime/conformance.d.ts +2 -0
- package/dist/dts/effect/internal/runtime/conformance.d.ts.map +1 -0
- package/dist/dts/effect/internal/runtime/current.d.ts +11 -0
- package/dist/dts/effect/internal/runtime/current.d.ts.map +1 -0
- package/dist/dts/effect/internal/runtime/execution.d.ts +176 -0
- package/dist/dts/effect/internal/runtime/execution.d.ts.map +1 -0
- package/dist/dts/effect/internal/runtime/v0_16.d.ts +169 -0
- package/dist/dts/effect/internal/runtime/v0_16.d.ts.map +1 -0
- package/dist/dts/effect/internal/runtime/v0_21.d.ts +81 -0
- package/dist/dts/effect/internal/runtime/v0_21.d.ts.map +1 -0
- package/dist/dts/effect/internal/typeAssertions.d.ts +2 -0
- package/dist/dts/effect/internal/typeAssertions.d.ts.map +1 -0
- package/dist/dts/index.d.ts +7 -0
- package/dist/dts/index.d.ts.map +1 -0
- package/dist/dts/v8/effect.d.ts +50 -0
- package/dist/dts/v8/effect.d.ts.map +1 -0
- package/dist/dts/v8/index.d.ts +10 -0
- package/dist/dts/v8/index.d.ts.map +1 -0
- package/dist/dts/v9/effect.d.ts +28 -0
- package/dist/dts/v9/effect.d.ts.map +1 -0
- package/dist/dts/v9/index.d.ts +16 -0
- package/dist/dts/v9/index.d.ts.map +1 -0
- package/dist/esm/effect/CompactContext.js +16 -0
- package/dist/esm/effect/CompactContext.js.map +1 -0
- package/dist/esm/effect/CompactRuntime.js +44 -0
- package/dist/esm/effect/CompactRuntime.js.map +1 -0
- package/dist/esm/effect/CompiledContract.js +102 -0
- package/dist/esm/effect/CompiledContract.js.map +1 -0
- package/dist/esm/effect/Contract.js +40 -0
- package/dist/esm/effect/Contract.js.map +1 -0
- package/dist/esm/effect/ContractConfigurationError.js +41 -0
- package/dist/esm/effect/ContractConfigurationError.js.map +1 -0
- package/dist/esm/effect/ContractEventStore.js +150 -0
- package/dist/esm/effect/ContractEventStore.js.map +1 -0
- package/dist/esm/effect/ContractEventValidationError.js +40 -0
- package/dist/esm/effect/ContractEventValidationError.js.map +1 -0
- package/dist/esm/effect/ContractEventValidator.js +49 -0
- package/dist/esm/effect/ContractEventValidator.js.map +1 -0
- package/dist/esm/effect/ContractExecutable.js +50 -0
- package/dist/esm/effect/ContractExecutable.js.map +1 -0
- package/dist/esm/effect/ContractExecutableRuntime.js +17 -0
- package/dist/esm/effect/ContractExecutableRuntime.js.map +1 -0
- package/dist/esm/effect/ContractKeyLocation.js +67 -0
- package/dist/esm/effect/ContractKeyLocation.js.map +1 -0
- package/dist/esm/effect/ContractLog.js +268 -0
- package/dist/esm/effect/ContractLog.js.map +1 -0
- package/dist/esm/effect/ContractRuntimeError.js +40 -0
- package/dist/esm/effect/ContractRuntimeError.js.map +1 -0
- package/dist/esm/effect/Ledger.js +115 -0
- package/dist/esm/effect/Ledger.js.map +1 -0
- package/dist/esm/effect/MalformedHexPrefixError.js +43 -0
- package/dist/esm/effect/MalformedHexPrefixError.js.map +1 -0
- package/dist/esm/effect/ZKConfiguration.js +23 -0
- package/dist/esm/effect/ZKConfiguration.js.map +1 -0
- package/dist/esm/effect/ZKConfigurationReadError.js +46 -0
- package/dist/esm/effect/ZKConfigurationReadError.js.map +1 -0
- package/dist/esm/effect/ZKManifest.js +286 -0
- package/dist/esm/effect/ZKManifest.js.map +1 -0
- package/dist/esm/effect/ZKManifestError.js +40 -0
- package/dist/esm/effect/ZKManifestError.js.map +1 -0
- package/dist/esm/effect/index.js +36 -0
- package/dist/esm/effect/index.js.map +1 -0
- package/dist/esm/effect/internal/boundary.js +61 -0
- package/dist/esm/effect/internal/boundary.js.map +1 -0
- package/dist/esm/effect/internal/compactContext.js +52 -0
- package/dist/esm/effect/internal/compactContext.js.map +1 -0
- package/dist/esm/effect/internal/contractEventsSurface.js +57 -0
- package/dist/esm/effect/internal/contractEventsSurface.js.map +1 -0
- package/dist/esm/effect/internal/era/v8Executable.js +31 -0
- package/dist/esm/effect/internal/era/v8Executable.js.map +1 -0
- package/dist/esm/effect/internal/era/v8Ledger.js +85 -0
- package/dist/esm/effect/internal/era/v8Ledger.js.map +1 -0
- package/dist/esm/effect/internal/era/v8Runtime.js +39 -0
- package/dist/esm/effect/internal/era/v8Runtime.js.map +1 -0
- package/dist/esm/effect/internal/era/v9Executable.js +31 -0
- package/dist/esm/effect/internal/era/v9Executable.js.map +1 -0
- package/dist/esm/effect/internal/era/v9Ledger.js +83 -0
- package/dist/esm/effect/internal/era/v9Ledger.js.map +1 -0
- package/dist/esm/effect/internal/era/v9Runtime.js +28 -0
- package/dist/esm/effect/internal/era/v9Runtime.js.map +1 -0
- package/dist/esm/effect/internal/era.js +16 -0
- package/dist/esm/effect/internal/era.js.map +1 -0
- package/dist/esm/effect/internal/eraFreeSurface.js +63 -0
- package/dist/esm/effect/internal/eraFreeSurface.js.map +1 -0
- package/dist/esm/effect/internal/eraNeutralSurface.js +49 -0
- package/dist/esm/effect/internal/eraNeutralSurface.js.map +1 -0
- package/dist/esm/effect/internal/executable.js +531 -0
- package/dist/esm/effect/internal/executable.js.map +1 -0
- package/dist/esm/effect/internal/ledger/binding.js +20 -0
- package/dist/esm/effect/internal/ledger/binding.js.map +1 -0
- package/dist/esm/effect/internal/ledger/conformance.js +16 -0
- package/dist/esm/effect/internal/ledger/conformance.js.map +1 -0
- package/dist/esm/effect/internal/ledger/conversions.js +119 -0
- package/dist/esm/effect/internal/ledger/conversions.js.map +1 -0
- package/dist/esm/effect/internal/ledger/current.js +22 -0
- package/dist/esm/effect/internal/ledger/current.js.map +1 -0
- package/dist/esm/effect/internal/ledger/v8.js +101 -0
- package/dist/esm/effect/internal/ledger/v8.js.map +1 -0
- package/dist/esm/effect/internal/ledger/v9.js +91 -0
- package/dist/esm/effect/internal/ledger/v9.js.map +1 -0
- package/dist/esm/effect/internal/runtime/binding.js +16 -0
- package/dist/esm/effect/internal/runtime/binding.js.map +1 -0
- package/dist/esm/effect/internal/runtime/conformance.js +16 -0
- package/dist/esm/effect/internal/runtime/conformance.js.map +1 -0
- package/dist/esm/effect/internal/runtime/current.js +25 -0
- package/dist/esm/effect/internal/runtime/current.js.map +1 -0
- package/dist/esm/effect/internal/runtime/execution.js +16 -0
- package/dist/esm/effect/internal/runtime/execution.js.map +1 -0
- package/dist/esm/effect/internal/runtime/v0_16.js +178 -0
- package/dist/esm/effect/internal/runtime/v0_16.js.map +1 -0
- package/dist/esm/effect/internal/runtime/v0_21.js +129 -0
- package/dist/esm/effect/internal/runtime/v0_21.js.map +1 -0
- package/dist/esm/effect/internal/typeAssertions.js +16 -0
- package/dist/esm/effect/internal/typeAssertions.js.map +1 -0
- package/dist/esm/index.js +21 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/package.json +4 -0
- package/dist/esm/v8/effect.js +64 -0
- package/dist/esm/v8/effect.js.map +1 -0
- package/dist/esm/v8/index.js +24 -0
- package/dist/esm/v8/index.js.map +1 -0
- package/dist/esm/v9/effect.js +47 -0
- package/dist/esm/v9/effect.js.map +1 -0
- package/dist/esm/v9/index.js +30 -0
- package/dist/esm/v9/index.js.map +1 -0
- package/effect/CompactContext/package.json +5 -0
- package/effect/CompactRuntime/package.json +5 -0
- package/effect/CompiledContract/package.json +5 -0
- package/effect/Contract/package.json +5 -0
- package/effect/ContractConfigurationError/package.json +5 -0
- package/effect/ContractEventStore/package.json +5 -0
- package/effect/ContractEventValidationError/package.json +5 -0
- package/effect/ContractEventValidator/package.json +5 -0
- package/effect/ContractExecutable/package.json +5 -0
- package/effect/ContractExecutableRuntime/package.json +5 -0
- package/effect/ContractKeyLocation/package.json +5 -0
- package/effect/ContractLog/package.json +5 -0
- package/effect/ContractRuntimeError/package.json +5 -0
- package/effect/Ledger/package.json +5 -0
- package/effect/MalformedHexPrefixError/package.json +5 -0
- package/effect/ZKConfiguration/package.json +5 -0
- package/effect/ZKConfigurationReadError/package.json +5 -0
- package/effect/ZKManifest/package.json +5 -0
- package/effect/ZKManifestError/package.json +5 -0
- package/effect/index/package.json +5 -0
- package/effect/package.json +5 -0
- package/package.json +220 -4
- package/v8/effect/package.json +5 -0
- package/v8/package.json +5 -0
- package/v9/effect/package.json +5 -0
- package/v9/package.json +5 -0
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { type SignatureKind } from '@midnight-ntwrk/platform-js/effect/SigningKey';
|
|
2
|
+
/**
|
|
3
|
+
* The ledger majors this codebase has an era binding for. Extend the union as bindings are added
|
|
4
|
+
* (e.g. `9 | 10`); keeping it a literal union means a binding declaring an era with no
|
|
5
|
+
* corresponding `@midnightntwrk/ledger-v<N>` package fails the build, and `Ledger.era.ledger`
|
|
6
|
+
* stays a literal at every use site.
|
|
7
|
+
*
|
|
8
|
+
* @category era
|
|
9
|
+
*/
|
|
10
|
+
export type LedgerMajor = 8 | 9;
|
|
11
|
+
declare const eraBrand: unique symbol;
|
|
12
|
+
/**
|
|
13
|
+
* Tags a ledger type with the era it came from, so two eras' copies stop being interchangeable.
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* Only `CostModel` needs this — every other name is already nominally era-bound by an upstream
|
|
17
|
+
* private `type_`. The brand is **optional**, so raw ledger values still flow in unchanged; that is
|
|
18
|
+
* also its limit, since it means a branded value still satisfies `Transaction.prove`'s unbranded
|
|
19
|
+
* parameter (midnight-sdk#419). One shared symbol, declared here, is what makes two eras comparable.
|
|
20
|
+
*
|
|
21
|
+
* @category era
|
|
22
|
+
*/
|
|
23
|
+
export type EraBranded<T, E extends LedgerMajor> = T & {
|
|
24
|
+
readonly [eraBrand]?: E;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Which `@midnight-ntwrk/compact-runtime` line each ledger major pairs with, as `'<major>.<minor>'`
|
|
28
|
+
* — the granularity at which the runtime is era-paired, patch releases within a line being
|
|
29
|
+
* interchangeable. Add an entry alongside every {@link LedgerMajor} you add (e.g. `10: '0.22'`):
|
|
30
|
+
* {@link RuntimeLine} indexes this by `LedgerMajor`, so a major with no entry fails the build here
|
|
31
|
+
* rather than producing a binding that silently pairs with nothing.
|
|
32
|
+
*
|
|
33
|
+
* The pairing is expressed as a lookup rather than as two independent fields on {@link Era} so
|
|
34
|
+
* that a descriptor claiming a line its ledger major does not pair with is *unrepresentable*.
|
|
35
|
+
* With two eras bound this is load-bearing rather than theoretical: `{ ledger: 8, runtime: '0.21' }`
|
|
36
|
+
* does not compile. `CompactRuntime.test.ts` cannot stand in for it — that test compares the two
|
|
37
|
+
* bound `current.ts` files and can never see a mismatch *inside* a binding they do not name.
|
|
38
|
+
*
|
|
39
|
+
* @category era
|
|
40
|
+
*/
|
|
41
|
+
export interface EraPairing {
|
|
42
|
+
readonly 8: '0.16';
|
|
43
|
+
readonly 9: '0.21';
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* The `@midnight-ntwrk/compact-runtime` lines this codebase has a runtime binding for. Derived
|
|
47
|
+
* from {@link EraPairing} rather than written out, so the set of lines and the ledger↔runtime
|
|
48
|
+
* pairing cannot drift apart.
|
|
49
|
+
*
|
|
50
|
+
* @category era
|
|
51
|
+
*/
|
|
52
|
+
export type RuntimeLine = EraPairing[LedgerMajor];
|
|
53
|
+
/**
|
|
54
|
+
* The era descriptor for one specific ledger major. {@link Era} is the union of these over every
|
|
55
|
+
* bound major; this is the form to reach for when a binding wants to name its own era (e.g.
|
|
56
|
+
* `satisfies EraDescriptor<9>`). Exported because {@link Era} is built from it and both must
|
|
57
|
+
* survive declaration emit.
|
|
58
|
+
*
|
|
59
|
+
* @category era
|
|
60
|
+
*/
|
|
61
|
+
export interface EraDescriptor<L extends LedgerMajor> {
|
|
62
|
+
/** The ledger major this binding targets (e.g. `9` for `@midnightntwrk/ledger-v9`). */
|
|
63
|
+
readonly ledger: L;
|
|
64
|
+
/**
|
|
65
|
+
* The `@midnight-ntwrk/compact-runtime` line this era pairs with — fixed by `ledger` through
|
|
66
|
+
* {@link EraPairing}, not chosen independently. Declared by the *ledger* binding because the
|
|
67
|
+
* pairing is a fact about the era, not about either package alone. That the bound runtime seam
|
|
68
|
+
* actually *supplies* this line is a separate question, asserted at run time by
|
|
69
|
+
* `test/effect/CompactRuntime.test.ts`: the two seams are bound in separate `current.ts` files
|
|
70
|
+
* and nothing in the type system ties those two choices together.
|
|
71
|
+
*/
|
|
72
|
+
readonly runtime: EraPairing[L];
|
|
73
|
+
/**
|
|
74
|
+
* Whether a signature scheme is verified to work through this era's ledger CMA path (`signData`
|
|
75
|
+
* and `signatureVerifyingKey`). Deliberately a predicate over a binding-private allowlist
|
|
76
|
+
* rather than an exported set: a `ReadonlySet` is only a compile-time view and could be cast
|
|
77
|
+
* back to `Set` and mutated, whereas the closure keeps the allowlist unreachable. The allowlist
|
|
78
|
+
* is NOT platform-js's `SignatureKinds`: the constraint is what the ledger primitives support,
|
|
79
|
+
* not what the type union happens to include.
|
|
80
|
+
*/
|
|
81
|
+
readonly supportsCmaSignatureKind: (kind: SignatureKind) => boolean;
|
|
82
|
+
/**
|
|
83
|
+
* A human-readable rendering of the CMA signature-scheme allowlist, for error messages (e.g.
|
|
84
|
+
* `'schnorr, ecdsa'`).
|
|
85
|
+
*/
|
|
86
|
+
readonly cmaSignatureKindsDescription: string;
|
|
87
|
+
/**
|
|
88
|
+
* The scheme used when sampling a fresh CMA signing key for this era. Must satisfy
|
|
89
|
+
* {@link supportsCmaSignatureKind}, so a sampled key is never rejected by the era's own
|
|
90
|
+
* allowlist; era bindings assert this at module load.
|
|
91
|
+
*/
|
|
92
|
+
readonly defaultCmaSignatureKind: SignatureKind;
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Describes a ledger era: the facts about a ledger generation that vary between generations and
|
|
96
|
+
* that compact-js code must not hard-code. An era binding (e.g. `v9.ts`) supplies one of these
|
|
97
|
+
* alongside its re-exported ledger API; everything outside `internal/ledger` reads era-varying
|
|
98
|
+
* values from here rather than assuming them.
|
|
99
|
+
*
|
|
100
|
+
* The union over bound majors rather than a single generic interface with a defaulted parameter:
|
|
101
|
+
* a bare `satisfies Era` then still checks the ledger↔runtime pairing, where `Era<L = LedgerMajor>`
|
|
102
|
+
* would have widened `runtime` back to every line and let a mismatched binding through.
|
|
103
|
+
*
|
|
104
|
+
* This module sits above both seams rather than inside `internal/ledger/`, because an era is not
|
|
105
|
+
* only a ledger generation: the ledger package, the compact-runtime line, and the onchain-runtime
|
|
106
|
+
* WASM under it all move together, and `internal/runtime/` reads {@link RuntimeLine} from here too.
|
|
107
|
+
*
|
|
108
|
+
* Part of the public `Ledger` facade surface (re-exported as `Ledger.Era`), so it must survive
|
|
109
|
+
* `stripInternal` in the published typings.
|
|
110
|
+
*
|
|
111
|
+
* @category era
|
|
112
|
+
*/
|
|
113
|
+
export type Era = {
|
|
114
|
+
[L in LedgerMajor]: EraDescriptor<L>;
|
|
115
|
+
}[LedgerMajor];
|
|
116
|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AAI,WAAW,GAAG,aAAa,CAAC,CAAC,CAAC;CAAE,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The **era-free** core of the `/effect` surface: modules whose runtime behaviour has no ledger or
|
|
3
|
+
* compact-runtime dependency at all, so every era entry can re-export the same objects.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* The distinction against `eraNeutralSurface.ts` is not stylistic. "Era-neutral" means *works on
|
|
7
|
+
* whichever era the build bound* — those modules reach `Ledger.js`/`CompactRuntime.js` and so
|
|
8
|
+
* resolve through each seam's `current.ts`. "Era-free" means the module graph never reaches either
|
|
9
|
+
* facade, so the same compiled object is correct on every era simultaneously. Only the second kind
|
|
10
|
+
* can be re-exported from an era-pinned entry without mislabelling what it returns.
|
|
11
|
+
*
|
|
12
|
+
* Membership is a verifiable property, not a judgement: take the transitive `import` closure of a
|
|
13
|
+
* module in the **built** output (types erased) and check it contains neither `CompactRuntime.js`
|
|
14
|
+
* nor `Ledger.js`. Two members look era-coupled in source and are not — `Contract.ts` and
|
|
15
|
+
* `ContractConfigurationError.ts` import runtime types with `import type`, which is erased. Their
|
|
16
|
+
* *type parameters* still name the bound era's shapes; that is a type-level inaccuracy for an older
|
|
17
|
+
* era, tracked with the executable's parameterisation, and it does not make the values era-bound.
|
|
18
|
+
*
|
|
19
|
+
* `ContractExecutable` is deliberately **not** here: it is the one module in the public surface with
|
|
20
|
+
* value-level imports of both facades, which is why `/v8/effect` cannot yet offer it
|
|
21
|
+
* (midnight-sdk#388). The contract-event modules are also absent, but for the opposite reason —
|
|
22
|
+
* they are era-free at run time yet meaningless on a line that cannot emit events, so they live in
|
|
23
|
+
* `contractEventsSurface.ts` and are composed only by entries whose era supports them.
|
|
24
|
+
*
|
|
25
|
+
* Internal by design: consumers reach these through `@midnightntwrk/compact-js/effect` or an
|
|
26
|
+
* era-pinned entry, and `package.json` `exports` blocks `./effect/internal/*` with `null`. The era
|
|
27
|
+
* entry files under `src/v<N>` are package-internal source, so they may import it.
|
|
28
|
+
*
|
|
29
|
+
* Keep alphabetized, matching `effect/index.ts`.
|
|
30
|
+
*
|
|
31
|
+
* This docblock carries no internal-marker JSDoc tag: a module docblock attaches to the file's
|
|
32
|
+
* first statement, so under `stripInternal` the marker deletes the first export below — silently,
|
|
33
|
+
* since the ESM emit keeps it. Privacy comes from `package.json` `exports` blocking
|
|
34
|
+
* `./effect/internal/*` instead, and `verify-exports` fails the build if the marker comes back.
|
|
35
|
+
* See `internal/boundary.ts` for why this note does not spell the tag out.
|
|
36
|
+
*/
|
|
37
|
+
export * as CompactContext from '../CompactContext.js';
|
|
38
|
+
export * as CompiledContract from '../CompiledContract.js';
|
|
39
|
+
export * as Contract from '../Contract.js';
|
|
40
|
+
export * as ContractConfigurationError from '../ContractConfigurationError.js';
|
|
41
|
+
export * as ContractExecutableRuntime from '../ContractExecutableRuntime.js';
|
|
42
|
+
export * as ContractKeyLocation from '../ContractKeyLocation.js';
|
|
43
|
+
export * as ContractRuntimeError from '../ContractRuntimeError.js';
|
|
44
|
+
export * as MalformedHexPrefixError from '../MalformedHexPrefixError.js';
|
|
45
|
+
export * as ZKConfiguration from '../ZKConfiguration.js';
|
|
46
|
+
export * as ZKConfigurationReadError from '../ZKConfigurationReadError.js';
|
|
47
|
+
export * as ZKManifest from '../ZKManifest.js';
|
|
48
|
+
export * as ZKManifestError from '../ZKManifestError.js';
|
|
49
|
+
//# sourceMappingURL=eraFreeSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eraFreeSurface.d.ts","sourceRoot":"","sources":["../../../../src/effect/internal/eraFreeSurface.ts"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,OAAO,KAAK,cAAc,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,gBAAgB,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,0BAA0B,MAAM,kCAAkC,CAAC;AAC/E,OAAO,KAAK,yBAAyB,MAAM,iCAAiC,CAAC;AAC7E,OAAO,KAAK,mBAAmB,MAAM,2BAA2B,CAAC;AACjE,OAAO,KAAK,oBAAoB,MAAM,4BAA4B,CAAC;AACnE,OAAO,KAAK,uBAAuB,MAAM,+BAA+B,CAAC;AACzE,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC;AACzD,OAAO,KAAK,wBAAwB,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,UAAU,MAAM,kBAAkB,CAAC;AAC/C,OAAO,KAAK,eAAe,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The **era-neutral** half of the `/effect` surface: the era-free core, plus the members that work
|
|
3
|
+
* on whichever era this build bound.
|
|
4
|
+
*
|
|
5
|
+
* @remarks
|
|
6
|
+
* Split out from `effect/index.ts` so an era-scoped entry composes only the levels its runtime line
|
|
7
|
+
* can actually provide (midnight-sdk#387/#388). This barrel is what the *unsuffixed* entry uses:
|
|
8
|
+
* the three members added below reach `Ledger.js`/`CompactRuntime.js`, so they resolve through each
|
|
9
|
+
* seam's `current.ts` and describe the build's bound era rather than a named one.
|
|
10
|
+
*
|
|
11
|
+
* An era-pinned entry therefore composes `eraFreeSurface.ts` plus its **own** binding, not this
|
|
12
|
+
* module — see `src/v8/effect.ts` and `src/v9/effect.ts`. Re-exporting this barrel from `/v8` would
|
|
13
|
+
* hand back ledger-9-bound objects from a path named v8, and re-exporting it from `/v9` is what
|
|
14
|
+
* previously made `/v9` an alias that silently followed an era swap.
|
|
15
|
+
*
|
|
16
|
+
* #388 requires that a member which cannot exist on an older era is *absent* from that era's entry
|
|
17
|
+
* rather than present and failing at run time. The contract-event modules are absent from every
|
|
18
|
+
* barrel here and live in `contractEventsSurface.ts`, composed only by entries whose era can emit
|
|
19
|
+
* events. `LedgerEra.test.ts` asserts both halves of that.
|
|
20
|
+
*
|
|
21
|
+
* Internal by design: consumers reach these through `@midnightntwrk/compact-js/effect` or an
|
|
22
|
+
* era-pinned entry, and `package.json` `exports` blocks `./effect/internal/*` with `null`. The
|
|
23
|
+
* era entry files under the `src/v<N>` directories are package-internal source, so they may
|
|
24
|
+
* import it.
|
|
25
|
+
*
|
|
26
|
+
* Keep alphabetized, matching `effect/index.ts`.
|
|
27
|
+
*
|
|
28
|
+
* No internal-marker JSDoc tag — see `eraFreeSurface.ts` for why a module docblock must not carry
|
|
29
|
+
* one here.
|
|
30
|
+
*/
|
|
31
|
+
export * as CompactRuntime from '../CompactRuntime.js';
|
|
32
|
+
export * as ContractExecutable from '../ContractExecutable.js';
|
|
33
|
+
export * as Ledger from '../Ledger.js';
|
|
34
|
+
export * from './eraFreeSurface.js';
|
|
35
|
+
//# sourceMappingURL=eraNeutralSurface.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"eraNeutralSurface.d.ts","sourceRoot":"","sources":["../../../../src/effect/internal/eraNeutralSurface.ts"],"names":[],"mappings":"AAeA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,OAAO,KAAK,cAAc,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,kBAAkB,MAAM,0BAA0B,CAAC;AAC/D,OAAO,KAAK,MAAM,MAAM,cAAc,CAAC;AACvC,cAAc,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
import * as Configuration from '@midnight-ntwrk/platform-js/effect/Configuration';
|
|
2
|
+
import * as ContractAddress from '@midnight-ntwrk/platform-js/effect/ContractAddress';
|
|
3
|
+
import * as SigningKey from '@midnight-ntwrk/platform-js/effect/SigningKey';
|
|
4
|
+
import { Effect, Either, type Layer, Option } from 'effect';
|
|
5
|
+
import { type Pipeable } from 'effect/Pipeable';
|
|
6
|
+
import { type CompiledContract } from '../CompiledContract.js';
|
|
7
|
+
import * as Contract from '../Contract.js';
|
|
8
|
+
import * as ContractConfigurationError from '../ContractConfigurationError.js';
|
|
9
|
+
import * as ContractRuntimeError from '../ContractRuntimeError.js';
|
|
10
|
+
import { type ZKConfiguration as ZKConfigurationService } from '../ZKConfiguration.js';
|
|
11
|
+
import { type ZKConfigurationReadError } from '../ZKConfigurationReadError.js';
|
|
12
|
+
import { type Era, type RuntimeLine } from './era.js';
|
|
13
|
+
import { type GasCost } from './runtime/execution.js';
|
|
14
|
+
export { type GasCost } from './runtime/execution.js';
|
|
15
|
+
/**
|
|
16
|
+
* The ledger-binding members contract execution needs.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* Narrow on purpose — this is not the whole `LedgerBinding`, only what the bodies below call. The
|
|
20
|
+
* opaque handles (`PreTranscript` instances, `SingleUpdate`s, signing keys, signatures) are typed
|
|
21
|
+
* as each binding's *own* types by inference at the instantiation site, so a chain that the two
|
|
22
|
+
* eras spell differently still type-checks against itself. The relationships between those handles
|
|
23
|
+
* — that `signData`'s output is what `MaintenanceUpdate.addSignature` accepts, and so on — are
|
|
24
|
+
* asserted for every binding by `internal/ledger/conformance.ts`, which is why they can be left
|
|
25
|
+
* open here.
|
|
26
|
+
*/
|
|
27
|
+
export interface ExecutableLedger {
|
|
28
|
+
/**
|
|
29
|
+
* The whole {@link Era} descriptor, not just the members the bodies below read.
|
|
30
|
+
*
|
|
31
|
+
* @remarks
|
|
32
|
+
* `defaultCmaSignatureKind` is the only one this module *calls*, but the descriptor is also
|
|
33
|
+
* republished on {@link ContractExecutable.era} so a host that selects an era independently — the
|
|
34
|
+
* CLI, whose `--ledger-era` picks its own era pair — can compare the era it selected against the
|
|
35
|
+
* era the executable it was handed was built for. Narrowing this to the one member used here
|
|
36
|
+
* would make that comparison impossible without a second declaration of the same fact.
|
|
37
|
+
*/
|
|
38
|
+
readonly era: Era;
|
|
39
|
+
readonly LedgerParameters: {
|
|
40
|
+
initialParameters(): unknown;
|
|
41
|
+
};
|
|
42
|
+
readonly MaintenanceUpdate: new (address: never, updates: never, counter: never) => unknown;
|
|
43
|
+
readonly PreTranscript: new (context: never, program: never, commComm?: never) => unknown;
|
|
44
|
+
readonly ReplaceAuthority: new (authority: never) => unknown;
|
|
45
|
+
readonly VerifierKeyInsert: new (circuitId: never, key: never) => unknown;
|
|
46
|
+
readonly VerifierKeyRemove: new (circuitId: never, version: never) => unknown;
|
|
47
|
+
readonly fromPlatformSigningKey: (signingKey: SigningKey.SigningKey, contractState?: any) => Either.Either<unknown, ContractConfigurationError.ContractConfigurationError>;
|
|
48
|
+
readonly fromRuntimeMaintenanceAuthority: (authority: never) => Effect.Effect<unknown, ContractRuntimeError.ContractRuntimeError>;
|
|
49
|
+
readonly fromRuntimeQueryContext: (queryContext: never) => Effect.Effect<unknown, ContractRuntimeError.ContractRuntimeError>;
|
|
50
|
+
readonly makeContractOperationVersion: () => unknown;
|
|
51
|
+
readonly makeVersionedVerifierKey: (verifierKey: never) => unknown;
|
|
52
|
+
readonly partitionTranscripts: (preTranscripts: never, parameters: never) => readonly unknown[];
|
|
53
|
+
readonly signData: (signingKey: never, data: never) => unknown;
|
|
54
|
+
}
|
|
55
|
+
/** The compact-runtime-binding members contract execution needs. See {@link ExecutableLedger}. */
|
|
56
|
+
export interface ExecutableRuntime {
|
|
57
|
+
/**
|
|
58
|
+
* The compact-runtime line this binding targets. Present so {@link makeExecutable} can require it
|
|
59
|
+
* to be the line the *ledger* half's era pairs with — see its `R` constraint.
|
|
60
|
+
*/
|
|
61
|
+
readonly line: RuntimeLine;
|
|
62
|
+
readonly ContractMaintenanceAuthority: new (committee: never, threshold: never, counter?: never) => unknown;
|
|
63
|
+
readonly ContractState: abstract new (...args: never) => unknown;
|
|
64
|
+
readonly createConstructorContext: (privateState: never, coinPublicKey: never) => unknown;
|
|
65
|
+
readonly createExecutionContext: (params: never) => unknown;
|
|
66
|
+
readonly decodeZswapLocalState: (state: never) => unknown;
|
|
67
|
+
readonly emptyZswapLocalState: (coinPublicKey: never) => unknown;
|
|
68
|
+
readonly encodeZswapLocalState: (state: never) => unknown;
|
|
69
|
+
readonly makeSampleSigningKey: (kind: never) => unknown;
|
|
70
|
+
readonly readExecution: (results: never) => {
|
|
71
|
+
readonly result: unknown;
|
|
72
|
+
readonly trace: readonly {
|
|
73
|
+
readonly circuitId: string;
|
|
74
|
+
readonly contractAddress: string;
|
|
75
|
+
readonly initialQueryContext: unknown;
|
|
76
|
+
readonly finalQueryContext: unknown;
|
|
77
|
+
readonly publicTranscript: readonly unknown[];
|
|
78
|
+
readonly input: unknown;
|
|
79
|
+
readonly output: unknown;
|
|
80
|
+
readonly privateTranscriptOutputs: readonly unknown[];
|
|
81
|
+
readonly zswapLocalState: unknown;
|
|
82
|
+
readonly commCommData?: unknown;
|
|
83
|
+
}[];
|
|
84
|
+
readonly privateState: unknown;
|
|
85
|
+
readonly zswapLocalState: unknown;
|
|
86
|
+
readonly events: readonly unknown[];
|
|
87
|
+
readonly gasCosts: unknown;
|
|
88
|
+
};
|
|
89
|
+
readonly signatureVerifyingKey: (signingKey: never) => unknown;
|
|
90
|
+
readonly signingKeyHex: (signingKey: never) => string;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Every era-varying type the executable's public API mentions, read off the two bindings.
|
|
94
|
+
*
|
|
95
|
+
* @remarks
|
|
96
|
+
* There is no hand-written list of "the ledger 8 shapes" anywhere: each member below names the
|
|
97
|
+
* binding member it comes from, so the era arrives with the arguments. The ones with no value to
|
|
98
|
+
* derive from — a public transcript's `Op`, an `AlignedValue` — are reached through the execution
|
|
99
|
+
* adapter's return type, which every binding must provide (`internal/runtime/execution.ts`).
|
|
100
|
+
*/
|
|
101
|
+
export interface ExecutableTypes<L extends ExecutableLedger, R extends ExecutableRuntime> {
|
|
102
|
+
readonly ContractState: InstanceType<R['ContractState']>;
|
|
103
|
+
readonly ZswapLocalState: ReturnType<R['decodeZswapLocalState']>;
|
|
104
|
+
readonly EncodedZswapLocalState: ReturnType<R['encodeZswapLocalState']>;
|
|
105
|
+
readonly ContractMaintenanceAuthority: InstanceType<R['ContractMaintenanceAuthority']>;
|
|
106
|
+
readonly LedgerParameters: ReturnType<L['LedgerParameters']['initialParameters']>;
|
|
107
|
+
readonly MaintenanceUpdate: InstanceType<L['MaintenanceUpdate']>;
|
|
108
|
+
readonly PartitionedTranscript: ReturnType<L['partitionTranscripts']>[number];
|
|
109
|
+
readonly ContractStateProvider: StateProviderOf<R>;
|
|
110
|
+
readonly ContractModuleProvider: ModuleProviderOf<R>;
|
|
111
|
+
readonly TraceEntry: ReturnType<R['readExecution']>['trace'][number];
|
|
112
|
+
readonly AlignedValue: ExecutableTypes<L, R>['TraceEntry']['input'];
|
|
113
|
+
readonly Op: ExecutableTypes<L, R>['TraceEntry']['publicTranscript'][number];
|
|
114
|
+
readonly StateValue: QueryContextState<ExecutableTypes<L, R>['TraceEntry']['finalQueryContext']>;
|
|
115
|
+
readonly InitialStateValue: QueryContextState<ExecutableTypes<L, R>['TraceEntry']['initialQueryContext']>;
|
|
116
|
+
readonly CommunicationCommitmentData: NonNullable<ExecutableTypes<L, R>['TraceEntry']['commCommData']>;
|
|
117
|
+
readonly LogEvent: ReturnType<R['readExecution']>['events'][number];
|
|
118
|
+
readonly GasCosts: ReturnType<R['readExecution']>['gasCosts'];
|
|
119
|
+
readonly CallContext: QueryContextBlock<ExecutableTypes<L, R>['TraceEntry']['initialQueryContext']>;
|
|
120
|
+
readonly Effects: QueryContextEffects<ExecutableTypes<L, R>['TraceEntry']['initialQueryContext']>;
|
|
121
|
+
readonly ComIndices: QueryContextComIndices<ExecutableTypes<L, R>['TraceEntry']['finalQueryContext']>;
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* The cross-contract state provider this line accepts, read off the parameter object its
|
|
125
|
+
* `createExecutionContext` takes — `never` on a line that has no such concept, which is what makes
|
|
126
|
+
* the provider branch of {@link CircuitContext} unconstructable on ledger 8.
|
|
127
|
+
*/
|
|
128
|
+
type StateProviderOf<R extends ExecutableRuntime> = Parameters<R['createExecutionContext']>[0] extends {
|
|
129
|
+
stateProvider?: infer P;
|
|
130
|
+
} ? NonNullable<P> : never;
|
|
131
|
+
/**
|
|
132
|
+
* The cross-contract module provider this line accepts, read off the same parameter object as
|
|
133
|
+
* {@link StateProviderOf} — `never` on ledger 8 for the same reason.
|
|
134
|
+
*/
|
|
135
|
+
type ModuleProviderOf<R extends ExecutableRuntime> = Parameters<R['createExecutionContext']>[0] extends {
|
|
136
|
+
moduleProvider?: infer P;
|
|
137
|
+
} ? NonNullable<P> : never;
|
|
138
|
+
/**
|
|
139
|
+
* The parent block hash a provider-less {@link CircuitContext} may carry. A call-tree line hands it
|
|
140
|
+
* to the VM's block context, therefore it is a `string` there; 0.16 takes neither a provider nor a
|
|
141
|
+
* block hash, therefore the two are gated together and it is `undefined` there.
|
|
142
|
+
*/
|
|
143
|
+
type LoneParentBlockHashOf<R extends ExecutableRuntime> = [StateProviderOf<R>] extends [never] ? undefined : string;
|
|
144
|
+
/**
|
|
145
|
+
* A query context's inner ledger state — the **post**-execution context's as
|
|
146
|
+
* `ContractCallPublic.contractState` reports it, the **pre**-execution context's as
|
|
147
|
+
* `ContractCallPublic.partitionInputs.state` does. One conditional for both because the two contexts
|
|
148
|
+
* are the same type on every line; which context it is applied to is the whole distinction.
|
|
149
|
+
*/
|
|
150
|
+
type QueryContextState<Q> = Q extends {
|
|
151
|
+
state: {
|
|
152
|
+
state: infer S;
|
|
153
|
+
};
|
|
154
|
+
} ? S : never;
|
|
155
|
+
/** A query context's block-level call context, as `ContractCallPublic.partitionInputs.block` reports it. */
|
|
156
|
+
type QueryContextBlock<Q> = Q extends {
|
|
157
|
+
block: infer B;
|
|
158
|
+
} ? B : never;
|
|
159
|
+
/** A query context's contract-external effects, as `ContractCallPublic.partitionInputs.effects` reports it. */
|
|
160
|
+
type QueryContextEffects<Q> = Q extends {
|
|
161
|
+
effects: infer E;
|
|
162
|
+
} ? E : never;
|
|
163
|
+
/** A query context's commitment indices, as `ContractCallPublic.partitionInputs.comIndices` reports it. */
|
|
164
|
+
type QueryContextComIndices<Q> = Q extends {
|
|
165
|
+
comIndices: infer C;
|
|
166
|
+
} ? C : never;
|
|
167
|
+
export type ContractContext<L extends ExecutableLedger, R extends ExecutableRuntime> = {
|
|
168
|
+
readonly address: ContractAddress.ContractAddress;
|
|
169
|
+
readonly contractState: ExecutableTypes<L, R>['ContractState'];
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Resolving a cross-contract callee needs its state, the module implementing it, and a block to
|
|
173
|
+
* read that state at, so the two providers arrive together and pin a block. A block hash on its own
|
|
174
|
+
* is still meaningful on a call-tree line — it reaches the VM's block context whether or not
|
|
175
|
+
* anything is called.
|
|
176
|
+
*/
|
|
177
|
+
export type CircuitContext<L extends ExecutableLedger, R extends ExecutableRuntime, PS> = ContractContext<L, R> & {
|
|
178
|
+
readonly privateState: PS;
|
|
179
|
+
readonly zswapLocalState?: ExecutableTypes<L, R>['ZswapLocalState'];
|
|
180
|
+
readonly ledgerParameters?: ExecutableTypes<L, R>['LedgerParameters'];
|
|
181
|
+
/** A ceiling on each ledger query the call makes — per query, not per call. See `execution.ts`. */
|
|
182
|
+
readonly queryGasLimit?: GasCost;
|
|
183
|
+
} & ({
|
|
184
|
+
readonly stateProvider?: undefined;
|
|
185
|
+
readonly moduleProvider?: undefined;
|
|
186
|
+
readonly parentBlockHash?: LoneParentBlockHashOf<R>;
|
|
187
|
+
} | {
|
|
188
|
+
readonly stateProvider: ExecutableTypes<L, R>['ContractStateProvider'];
|
|
189
|
+
readonly moduleProvider: ExecutableTypes<L, R>['ContractModuleProvider'];
|
|
190
|
+
readonly parentBlockHash: string;
|
|
191
|
+
});
|
|
192
|
+
export type DeployResultPublic<L extends ExecutableLedger, R extends ExecutableRuntime> = {
|
|
193
|
+
readonly contractState: ExecutableTypes<L, R>['ContractState'];
|
|
194
|
+
};
|
|
195
|
+
export type DeployResultPrivate<L extends ExecutableLedger, R extends ExecutableRuntime, PS> = {
|
|
196
|
+
readonly signingKey: SigningKey.SigningKey;
|
|
197
|
+
readonly privateState: PS;
|
|
198
|
+
readonly zswapLocalState: ExecutableTypes<L, R>['ZswapLocalState'];
|
|
199
|
+
};
|
|
200
|
+
export type DeployResult<L extends ExecutableLedger, R extends ExecutableRuntime, PS> = {
|
|
201
|
+
readonly public: DeployResultPublic<L, R>;
|
|
202
|
+
readonly private: DeployResultPrivate<L, R, PS>;
|
|
203
|
+
};
|
|
204
|
+
export type PartitionedTranscript<L extends ExecutableLedger, R extends ExecutableRuntime> = ExecutableTypes<L, R>['PartitionedTranscript'];
|
|
205
|
+
/**
|
|
206
|
+
* Everything one call's transcript partition was built from, as the era's own types.
|
|
207
|
+
*
|
|
208
|
+
* @remarks
|
|
209
|
+
* `ContractCallPublic.partitionedTranscript` is partitioned by whichever era *executed*. Across a
|
|
210
|
+
* hard-fork window that is not always the era a call composes in — a keep-state call can execute on
|
|
211
|
+
* ledger 8 and compose on ledger 9, the artifact being pre-fork and the chain head post-fork — and
|
|
212
|
+
* there the executing era's partition is the wrong one. These are the inputs needed to redo it
|
|
213
|
+
* against the target era's `LedgerParameters`, which is why they are published alongside the
|
|
214
|
+
* partition rather than instead of it (midnight-sdk#400).
|
|
215
|
+
*
|
|
216
|
+
* Redoing it *here*, for another era, is deliberately not offered: that would put fork-window
|
|
217
|
+
* knowledge inside the era seam and break the rule that only plain data crosses it. {@link block},
|
|
218
|
+
* {@link effects} and {@link comIndices} are plain data on every line, so handing them over does
|
|
219
|
+
* not; {@link state} is a live WASM handle, and a consumer moving it across an era boundary encodes
|
|
220
|
+
* it first.
|
|
221
|
+
*
|
|
222
|
+
* Grouped rather than spread across `ContractCallPublic` because they are consumed as a set — one
|
|
223
|
+
* object rebuilds one pre-transcript — and because the set has a property no individual member
|
|
224
|
+
* shows: **three of the four come from before the call and one from after it**. `state`, `block`
|
|
225
|
+
* and `effects` are the **pre**-execution query context's (a pre-transcript describes the state a
|
|
226
|
+
* call ran against), while `comIndices` is the **post**-execution one's (the commitments the call
|
|
227
|
+
* discovered, which the partitioner matches callers to callees on). `partitionAllTranscripts` makes
|
|
228
|
+
* exactly this split; a consumer reassembling a pre-transcript must make it too.
|
|
229
|
+
*/
|
|
230
|
+
export type CallPartitionInputs<L extends ExecutableLedger, R extends ExecutableRuntime> = {
|
|
231
|
+
/**
|
|
232
|
+
* The ledger state this call ran *against* — not `ContractCallPublic.contractState`, which is the
|
|
233
|
+
* state it left behind.
|
|
234
|
+
*
|
|
235
|
+
* @remarks
|
|
236
|
+
* A partition input in its own right, because the partitioner **replays** the transcript against
|
|
237
|
+
* this state: it rejects a state the transcript's reads do not fit, and silently mis-charges one
|
|
238
|
+
* that merely differs in value. The distinction is invisible for a contract whose state does not
|
|
239
|
+
* change size — which is why publishing only the other three would have left a consumer able to
|
|
240
|
+
* build a `QueryContext` over the wrong state and be told nothing.
|
|
241
|
+
*
|
|
242
|
+
* A live WASM handle, unlike its three siblings; encode it to cross an era boundary.
|
|
243
|
+
*/
|
|
244
|
+
readonly state: ExecutableTypes<L, R>['InitialStateValue'];
|
|
245
|
+
/** The block-level call context this call ran under, from the pre-execution query context. */
|
|
246
|
+
readonly block: ExecutableTypes<L, R>['CallContext'];
|
|
247
|
+
/** The contract-external effects this call declared, from the pre-execution query context. */
|
|
248
|
+
readonly effects: ExecutableTypes<L, R>['Effects'];
|
|
249
|
+
/**
|
|
250
|
+
* The commitment indices this call **discovered**, from the post-execution query context.
|
|
251
|
+
*
|
|
252
|
+
* @remarks
|
|
253
|
+
* Not {@link block}`.comIndices`, one dot away, which is a different map: the pre-execution
|
|
254
|
+
* commitments the call *started* with, keyed to `number` rather than `bigint`. Reading that one
|
|
255
|
+
* instead produces a partition the target era will not accept, and nothing reports it — the two
|
|
256
|
+
* are structurally close enough that no type error marks the point of the mistake.
|
|
257
|
+
*/
|
|
258
|
+
readonly comIndices: ExecutableTypes<L, R>['ComIndices'];
|
|
259
|
+
};
|
|
260
|
+
/**
|
|
261
|
+
* The public half of one contract call: its post-execution state, its transcript, that transcript's
|
|
262
|
+
* partition, and the inputs the partition was built from.
|
|
263
|
+
*
|
|
264
|
+
* @remarks
|
|
265
|
+
* {@link contractState} is the state the call *left*. The state it *ran against* is
|
|
266
|
+
* {@link partitionInputs}`.state`, and the two are not interchangeable — see
|
|
267
|
+
* {@link CallPartitionInputs}.
|
|
268
|
+
*/
|
|
269
|
+
export type ContractCallPublic<L extends ExecutableLedger, R extends ExecutableRuntime> = {
|
|
270
|
+
readonly contractState: ExecutableTypes<L, R>['StateValue'];
|
|
271
|
+
readonly publicTranscript: ExecutableTypes<L, R>['Op'][];
|
|
272
|
+
readonly partitionedTranscript: PartitionedTranscript<L, R>;
|
|
273
|
+
/** The inputs {@link partitionedTranscript} was built from, for redoing it in another era. */
|
|
274
|
+
readonly partitionInputs: CallPartitionInputs<L, R>;
|
|
275
|
+
};
|
|
276
|
+
export type ContractCallPrivate<L extends ExecutableLedger, R extends ExecutableRuntime> = {
|
|
277
|
+
readonly input: ExecutableTypes<L, R>['AlignedValue'];
|
|
278
|
+
readonly output: ExecutableTypes<L, R>['AlignedValue'];
|
|
279
|
+
readonly privateTranscriptOutputs: ExecutableTypes<L, R>['AlignedValue'][];
|
|
280
|
+
/**
|
|
281
|
+
* The shielded coins this call consumed and produced. Recorded per call rather than only for
|
|
282
|
+
* the root, because a cross-contract callee can perform Zswap operations too — and must, since
|
|
283
|
+
* a coin addressed to a contract is only credited if that contract claims the receive in the
|
|
284
|
+
* same transaction. Transaction assembly uses the per-call address to bind each contract-owned
|
|
285
|
+
* input and output to the contract that actually made it.
|
|
286
|
+
*/
|
|
287
|
+
readonly zswapLocalState: ExecutableTypes<L, R>['ZswapLocalState'];
|
|
288
|
+
};
|
|
289
|
+
export type ContractCall<L extends ExecutableLedger, R extends ExecutableRuntime> = {
|
|
290
|
+
readonly contractAddress: ContractAddress.ContractAddress;
|
|
291
|
+
readonly circuitId: string;
|
|
292
|
+
readonly public: ContractCallPublic<L, R>;
|
|
293
|
+
readonly private: ContractCallPrivate<L, R>;
|
|
294
|
+
readonly communicationCommitment: Option.Option<ExecutableTypes<L, R>['CommunicationCommitmentData']>;
|
|
295
|
+
};
|
|
296
|
+
export type CallResult<L extends ExecutableLedger, R extends ExecutableRuntime, C extends Contract.Contract<PS>, PS, K extends Contract.ProvableCircuitId<C>> = {
|
|
297
|
+
readonly result: Contract.Contract.CircuitReturnType<C, K>;
|
|
298
|
+
readonly privateState: PS | undefined;
|
|
299
|
+
readonly zswapLocalState: ExecutableTypes<L, R>['ZswapLocalState'];
|
|
300
|
+
readonly events: ExecutableTypes<L, R>['LogEvent'][];
|
|
301
|
+
readonly calls: readonly ContractCall<L, R>[];
|
|
302
|
+
/**
|
|
303
|
+
* What each contract in the call tree spent, keyed by address; `undefined` on an era whose runtime
|
|
304
|
+
* cannot total it. Per contract rather than per call — a callee called twice has one entry — which
|
|
305
|
+
* is why it is here and not on {@link ContractCall}.
|
|
306
|
+
*/
|
|
307
|
+
readonly gasCosts: ExecutableTypes<L, R>['GasCosts'];
|
|
308
|
+
};
|
|
309
|
+
export type MaintenanceResultPublic<L extends ExecutableLedger, R extends ExecutableRuntime> = {
|
|
310
|
+
readonly maintenanceUpdate: ExecutableTypes<L, R>['MaintenanceUpdate'];
|
|
311
|
+
};
|
|
312
|
+
export type MaintenanceResultPrivate = {
|
|
313
|
+
readonly signingKey: SigningKey.SigningKey;
|
|
314
|
+
};
|
|
315
|
+
export type MaintenanceResult<L extends ExecutableLedger, R extends ExecutableRuntime> = {
|
|
316
|
+
readonly public: MaintenanceResultPublic<L, R>;
|
|
317
|
+
readonly private: MaintenanceResultPrivate;
|
|
318
|
+
};
|
|
319
|
+
/** The services required as context for executing contracts. */
|
|
320
|
+
export type Context = ZKConfigurationService | Configuration.Keys;
|
|
321
|
+
/** An error occurred while executing a constructor, or a circuit, of an executable contract. */
|
|
322
|
+
export type ContractExecutionError = ContractRuntimeError.ContractRuntimeError | ContractConfigurationError.ContractConfigurationError | ZKConfigurationReadError;
|
|
323
|
+
/** An executable form of a Compact compiled contract, bound to one era pair. */
|
|
324
|
+
export interface ContractExecutable<L extends ExecutableLedger, R extends ExecutableRuntime, in out C extends Contract.Contract<PS>, PS, out E = never, out Rq = never> extends Pipeable {
|
|
325
|
+
readonly compiledContract: CompiledContract<C, PS>;
|
|
326
|
+
/**
|
|
327
|
+
* The era this executable executes against — the `era` descriptor of the ledger binding it was
|
|
328
|
+
* built from.
|
|
329
|
+
*
|
|
330
|
+
* @remarks
|
|
331
|
+
* An executable's era is fixed when {@link makeExecutable} is applied, which happens at an
|
|
332
|
+
* *import*: a consumer picks it by importing `/v8/effect` or `/v9/effect`. A host that selects an
|
|
333
|
+
* era by some other route — `compact-js-command`'s `--ledger-era`, which chooses the era of the
|
|
334
|
+
* intents and state files it builds — therefore has two era choices to reconcile, and no way to
|
|
335
|
+
* see the second one without this. Comparing them turns a mismatch into a named failure at the
|
|
336
|
+
* start of the command, instead of a WASM rejection several conversions later whose message names
|
|
337
|
+
* neither era.
|
|
338
|
+
*/
|
|
339
|
+
readonly era: L['era'];
|
|
340
|
+
initialize(initialPrivateState: PS, ...args: Contract.Contract.InitializeParameters<C>): Effect.Effect<DeployResult<L, R, PS>, E, Rq>;
|
|
341
|
+
circuit<K extends Contract.ProvableCircuitId<C> = Contract.ProvableCircuitId<C>>(provableCircuitId: K, circuitContext: CircuitContext<L, R, PS>, ...args: Contract.Contract.CircuitParameters<C, K>): Effect.Effect<CallResult<L, R, C, PS, K>, E, Rq>;
|
|
342
|
+
/**
|
|
343
|
+
* Brands one of this contract's circuit ids, narrowed to the circuit it names.
|
|
344
|
+
*
|
|
345
|
+
* @remarks
|
|
346
|
+
* The narrowing route that infers: `C` comes from the executable and `K` from the literal, so
|
|
347
|
+
* neither is written. {@link circuit} then checks the arguments against that one circuit rather
|
|
348
|
+
* than against the union over every circuit, which is all a widely-branded id can support.
|
|
349
|
+
*/
|
|
350
|
+
circuitId<K extends Contract.Contract.ProvableCircuitId<C>>(id: K): Contract.ProvableCircuitId<C, K>;
|
|
351
|
+
getProvableCircuitIds(): Contract.ProvableCircuitId<C>[];
|
|
352
|
+
replaceContractMaintenanceAuthority(newSigningKey: Option.Option<SigningKey.SigningKey>, contractContext: ContractContext<L, R>): Effect.Effect<MaintenanceResult<L, R>, E, Rq>;
|
|
353
|
+
removeContractOperation(provableCircuitId: Contract.ProvableCircuitId<C>, contractContext: ContractContext<L, R>): Effect.Effect<MaintenanceResult<L, R>, E, Rq>;
|
|
354
|
+
addOrReplaceContractOperation(provableCircuitId: Contract.ProvableCircuitId<C>, verifierKey: Contract.VerifierKey, contractContext: ContractContext<L, R>): Effect.Effect<MaintenanceResult<L, R>, E, Rq>;
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* Builds the contract-execution API for one era pair.
|
|
358
|
+
*
|
|
359
|
+
* @param ledger The era's ledger facade (`internal/era/v8Ledger.ts`, `effect/Ledger.ts`, …).
|
|
360
|
+
* @param runtime The compact-runtime facade that era pairs with.
|
|
361
|
+
*/
|
|
362
|
+
export declare const makeExecutable: <L extends ExecutableLedger, R extends ExecutableRuntime & {
|
|
363
|
+
readonly line: L["era"]["runtime"];
|
|
364
|
+
}>(ledger: L, runtime: R) => {
|
|
365
|
+
readonly make: <C extends Contract.Contract<PS>, PS>(compiledContract: CompiledContract<C, PS, never>) => ContractExecutable<L, R, C, PS, ContractExecutionError, Context>;
|
|
366
|
+
readonly provide: {
|
|
367
|
+
<LA, LE, LR>(layer: Layer.Layer<LA, LE, LR>): <C extends Contract.Contract<PS_1>, PS_1, E, Rq>(self: ContractExecutable<L, R, C, PS_1, E, Rq>) => ContractExecutable<L, R, C, PS_1, E | LE, LR | Exclude<Rq, LA>>;
|
|
368
|
+
<C extends Contract.Contract<PS_2>, PS_2, E_1, Rq_1, LA, LE_1, LR_1>(self: ContractExecutable<L, R, C, PS_2, E_1, Rq_1>, layer: Layer.Layer<LA, LE_1, LR_1>): ContractExecutable<L, R, C, PS_2, E_1 | LE_1, LR_1 | Exclude<Rq_1, LA>>;
|
|
369
|
+
};
|
|
370
|
+
};
|
|
371
|
+
//# sourceMappingURL=executable.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"executable.d.ts","sourceRoot":"","sources":["../../../../src/effect/internal/executable.ts"],"names":[],"mappings":"AAqCA,OAAO,KAAK,aAAa,MAAM,kDAAkD,CAAC;AAClF,OAAO,KAAK,eAAe,MAAM,oDAAoD,CAAC;AACtF,OAAO,KAAK,UAAU,MAAM,+CAA+C,CAAC;AAC5E,OAAO,EAAS,MAAM,EAAE,MAAM,EAAE,KAAK,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEnE,OAAO,EAAE,KAAK,QAAQ,EAAiB,MAAM,iBAAiB,CAAC;AAE/D,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,QAAQ,MAAM,gBAAgB,CAAC;AAC3C,OAAO,KAAK,0BAA0B,MAAM,kCAAkC,CAAC;AAE/E,OAAO,KAAK,oBAAoB,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAmB,KAAK,eAAe,IAAI,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACxG,OAAO,EAAE,KAAK,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAG/E,OAAO,EAAE,KAAK,GAAG,EAAE,KAAK,WAAW,EAAE,MAAM,UAAU,CAAC;AACtD,OAAO,EAAE,KAAK,OAAO,EAAwB,MAAM,wBAAwB,CAAC;AAE5E,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAItD;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;;;;;;;OASG;IACH,QAAQ,CAAC,GAAG,EAAE,GAAG,CAAC;IAClB,QAAQ,CAAC,gBAAgB,EAAE;QAAE,iBAAiB,IAAI,OAAO,CAAA;KAAE,CAA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AE,EAAE,CAAC,GAC7B,CAAC,CAAC,SAAS,QAAQ,CAAC,QAAQ,CAAC,IAAE,CAAC,EAAE,IAAE,EAAE,CAAC,EAAE,EAAE,EAC5C,IAAI,EAAE,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAE,EAAE,CAAC,EAAE,EAAE,CAAC,KACzC,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAE,EAAE,CAAC,GAAG,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;SACjE,CAAC,SAAS,QAAQ,CAAC,QAAQ,CAAC,IAAE,CAAC,mBAAa,EAAE,oBACvC,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAE,EAAE,GAAC,EAAE,IAAE,CAAC,SACrC,KAAK,CAAC,KAAK,CAAC,EAAE,EAAE,IAAE,EAAE,IAAE,CAAC,GAC7B,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,IAAE,EAAE,GAAC,GAAG,IAAE,EAAE,IAAE,GAAG,OAAO,CAAC,IAAE,EAAE,EAAE,CAAC,CAAC;;CAanE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"binding.d.ts","sourceRoot":"","sources":["../../../../../src/effect/internal/ledger/binding.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conformance.d.ts","sourceRoot":"","sources":["../../../../../src/effect/internal/ledger/conformance.ts"],"names":[],"mappings":""}
|