@midnightntwrk/compact-js-command 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.
Files changed (102) hide show
  1. package/LICENSE +14 -0
  2. package/README.md +263 -2
  3. package/dist/dts/effect/CompiledContractReflection.d.ts +66 -0
  4. package/dist/dts/effect/CompiledContractReflection.d.ts.map +1 -0
  5. package/dist/dts/effect/ConfigCompilationError.d.ts +38 -0
  6. package/dist/dts/effect/ConfigCompilationError.d.ts.map +1 -0
  7. package/dist/dts/effect/ConfigCompiler.d.ts +63 -0
  8. package/dist/dts/effect/ConfigCompiler.d.ts.map +1 -0
  9. package/dist/dts/effect/ConfigError.d.ts +34 -0
  10. package/dist/dts/effect/ConfigError.d.ts.map +1 -0
  11. package/dist/dts/effect/index.d.ts +73 -0
  12. package/dist/dts/effect/index.d.ts.map +1 -0
  13. package/dist/dts/effect/internal/args.d.ts +7 -0
  14. package/dist/dts/effect/internal/args.d.ts.map +1 -0
  15. package/dist/dts/effect/internal/circuitCommand.d.ts +2 -0
  16. package/dist/dts/effect/internal/circuitCommand.d.ts.map +1 -0
  17. package/dist/dts/effect/internal/command.d.ts +98 -0
  18. package/dist/dts/effect/internal/command.d.ts.map +1 -0
  19. package/dist/dts/effect/internal/commandConfigProvider.d.ts +2 -0
  20. package/dist/dts/effect/internal/commandConfigProvider.d.ts.map +1 -0
  21. package/dist/dts/effect/internal/compiledContractReflection.d.ts +5 -0
  22. package/dist/dts/effect/internal/compiledContractReflection.d.ts.map +1 -0
  23. package/dist/dts/effect/internal/deployCommand.d.ts +2 -0
  24. package/dist/dts/effect/internal/deployCommand.d.ts.map +1 -0
  25. package/dist/dts/effect/internal/encodedZswapLocalStateSchema.d.ts +129 -0
  26. package/dist/dts/effect/internal/encodedZswapLocalStateSchema.d.ts.map +1 -0
  27. package/dist/dts/effect/internal/era/binding.d.ts +270 -0
  28. package/dist/dts/effect/internal/era/binding.d.ts.map +1 -0
  29. package/dist/dts/effect/internal/era/eras.d.ts +16 -0
  30. package/dist/dts/effect/internal/era/eras.d.ts.map +1 -0
  31. package/dist/dts/effect/internal/era/registry.d.ts +2 -0
  32. package/dist/dts/effect/internal/era/registry.d.ts.map +1 -0
  33. package/dist/dts/effect/internal/era/v8.d.ts +2 -0
  34. package/dist/dts/effect/internal/era/v8.d.ts.map +1 -0
  35. package/dist/dts/effect/internal/era/v9.d.ts +2 -0
  36. package/dist/dts/effect/internal/era/v9.d.ts.map +1 -0
  37. package/dist/dts/effect/internal/json.d.ts +2 -0
  38. package/dist/dts/effect/internal/json.d.ts.map +1 -0
  39. package/dist/dts/effect/internal/maintainCircuitCommand.d.ts +2 -0
  40. package/dist/dts/effect/internal/maintainCircuitCommand.d.ts.map +1 -0
  41. package/dist/dts/effect/internal/maintainCommand.d.ts +2 -0
  42. package/dist/dts/effect/internal/maintainCommand.d.ts.map +1 -0
  43. package/dist/dts/effect/internal/maintainContractCommand.d.ts +2 -0
  44. package/dist/dts/effect/internal/maintainContractCommand.d.ts.map +1 -0
  45. package/dist/dts/effect/internal/options.d.ts +7 -0
  46. package/dist/dts/effect/internal/options.d.ts.map +1 -0
  47. package/dist/dts/index.d.ts +2 -0
  48. package/dist/dts/index.d.ts.map +1 -0
  49. package/dist/esm/effect/CompiledContractReflection.js +33 -0
  50. package/dist/esm/effect/CompiledContractReflection.js.map +1 -0
  51. package/dist/esm/effect/ConfigCompilationError.js +40 -0
  52. package/dist/esm/effect/ConfigCompilationError.js.map +1 -0
  53. package/dist/esm/effect/ConfigCompiler.js +73 -0
  54. package/dist/esm/effect/ConfigCompiler.js.map +1 -0
  55. package/dist/esm/effect/ConfigError.js +40 -0
  56. package/dist/esm/effect/ConfigError.js.map +1 -0
  57. package/dist/esm/effect/index.js +53 -0
  58. package/dist/esm/effect/index.js.map +1 -0
  59. package/dist/esm/effect/internal/args.js +25 -0
  60. package/dist/esm/effect/internal/args.js.map +1 -0
  61. package/dist/esm/effect/internal/circuitCommand.js +282 -0
  62. package/dist/esm/effect/internal/circuitCommand.js.map +1 -0
  63. package/dist/esm/effect/internal/command.js +316 -0
  64. package/dist/esm/effect/internal/command.js.map +1 -0
  65. package/dist/esm/effect/internal/commandConfigProvider.js +19 -0
  66. package/dist/esm/effect/internal/commandConfigProvider.js.map +1 -0
  67. package/dist/esm/effect/internal/compiledContractReflection.js +296 -0
  68. package/dist/esm/effect/internal/compiledContractReflection.js.map +1 -0
  69. package/dist/esm/effect/internal/deployCommand.js +68 -0
  70. package/dist/esm/effect/internal/deployCommand.js.map +1 -0
  71. package/dist/esm/effect/internal/encodedZswapLocalStateSchema.js +51 -0
  72. package/dist/esm/effect/internal/encodedZswapLocalStateSchema.js.map +1 -0
  73. package/dist/esm/effect/internal/era/binding.js +16 -0
  74. package/dist/esm/effect/internal/era/binding.js.map +1 -0
  75. package/dist/esm/effect/internal/era/eras.js +50 -0
  76. package/dist/esm/effect/internal/era/eras.js.map +1 -0
  77. package/dist/esm/effect/internal/era/registry.js +46 -0
  78. package/dist/esm/effect/internal/era/registry.js.map +1 -0
  79. package/dist/esm/effect/internal/era/v8.js +75 -0
  80. package/dist/esm/effect/internal/era/v8.js.map +1 -0
  81. package/dist/esm/effect/internal/era/v9.js +61 -0
  82. package/dist/esm/effect/internal/era/v9.js.map +1 -0
  83. package/dist/esm/effect/internal/json.js +41 -0
  84. package/dist/esm/effect/internal/json.js.map +1 -0
  85. package/dist/esm/effect/internal/maintainCircuitCommand.js +62 -0
  86. package/dist/esm/effect/internal/maintainCircuitCommand.js.map +1 -0
  87. package/dist/esm/effect/internal/maintainCommand.js +35 -0
  88. package/dist/esm/effect/internal/maintainCommand.js.map +1 -0
  89. package/dist/esm/effect/internal/maintainContractCommand.js +64 -0
  90. package/dist/esm/effect/internal/maintainContractCommand.js.map +1 -0
  91. package/dist/esm/effect/internal/options.js +137 -0
  92. package/dist/esm/effect/internal/options.js.map +1 -0
  93. package/dist/esm/index.js +44 -0
  94. package/dist/esm/index.js.map +1 -0
  95. package/dist/esm/package.json +4 -0
  96. package/effect/CompiledContractReflection/package.json +5 -0
  97. package/effect/ConfigCompilationError/package.json +5 -0
  98. package/effect/ConfigCompiler/package.json +5 -0
  99. package/effect/ConfigError/package.json +5 -0
  100. package/effect/index/package.json +5 -0
  101. package/effect/package.json +5 -0
  102. package/package.json +96 -4
package/LICENSE ADDED
@@ -0,0 +1,14 @@
1
+ Copyright 2025 Midnight Foundation
2
+
3
+ Licensed under the Apache License, Version 2.0 (the "License");
4
+ you may not use this file except in compliance with the License.
5
+ You may obtain a copy of the License at
6
+
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+
9
+ Unless required by applicable law or agreed to in writing, software
10
+ distributed under the License is distributed on an "AS IS" BASIS,
11
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ See the License for the specific language governing permissions and
13
+ limitations under the License.
14
+
package/README.md CHANGED
@@ -1,3 +1,264 @@
1
- # Temporary Holding Version
1
+ # Compact.js (Command Line Utilities)
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ > [!IMPORTANT]
4
+ > **Renamed at 4.0.0.** This package was `@midnight-ntwrk/compact-js-command` and is now
5
+ > `@midnightntwrk/compact-js-command` — note the missing hyphen — published to npmjs rather
6
+ > than GitHub Packages. Update the dependency and every import, including the one at the top
7
+ > of your `contract.config.ts`: upgrading the CLI while a config still imports
8
+ > `@midnight-ntwrk/compact-js` loads two copies of the library with no warning.
9
+
10
+ ## Introduction
11
+
12
+ Provides an opinionated command line interface for Compact.js, allowing `compactc` compiled contracts to be
13
+ executed from the command line. The package exports commands that can be used programmatically within other
14
+ command line tools, or executed directly in its own process through its own CLI.
15
+
16
+ ## Commands
17
+
18
+ ### Prerequisites & Configuration
19
+
20
+ Since Compact.js commands operate over Compact compiled contracts, we need the following prerequisites in order
21
+ to execute them:
22
+
23
+ 1. A `.compact` contract that has been compiled using the `compactc` compiler.
24
+ The Compact compiler generates a JavaScript based _contract executable_ that will be the target of the invocations
25
+ made by the commands present in Compact.js. It also generates other assets that are required in order to fulfill
26
+ contract deployment and execution. Specifically, these are the TypeScript declaration file that describes the
27
+ contract, and the ZK file assets including prover and verifier keys.
28
+ 2. With the above in place, we also need a configuration file (written in TypeScript), that:
29
+ * Imports the _contract executable_ and makes it invocable via the `CompiledContract` and `ContractExecutable`
30
+ types present in Compact.js,
31
+ * Provides a type for private state, and a function that creates its initial value,
32
+ * Provides the implementation of the Witnesses required by the contract, and,
33
+ * Optionally provides some default configuration that can be set for all Compact.js commands.
34
+
35
+ An example configuration file for the canonical "Counter" contract is shown below:
36
+
37
+ ```ts
38
+ import { CompiledContract, type Contract, ContractExecutable } from '@midnightntwrk/compact-js/effect';
39
+ // `compactc` emits `contract/index.js`. The extension is required: Compact.js transpiles this file
40
+ // and then imports the result with plain Node ESM, which does no extension guessing for relative
41
+ // specifiers.
42
+ import { Contract as C_ } from './<path>/managed/counter/contract/index.js';
43
+
44
+ // The type of private state to use in contract execution.
45
+ type PrivateState = {
46
+ count: number;
47
+ };
48
+
49
+ type CounterContract = C_<PrivateState>;
50
+ const CounterContract = C_;
51
+
52
+ // An implementation of the required Witnesses.
53
+ const witnesses: Contract.Contract.Witnesses<CounterContract> = {
54
+ private_increment: ({ privateState }) => [{ count: privateState.count + 1 }, []]
55
+ }
56
+
57
+ // A function that creates the initial private state given to the contract when an instance is
58
+ // being deployed.
59
+ const createInitialPrivateState: () => PrivateState = () => ({
60
+ count: 0
61
+ });
62
+
63
+ // The default export that describes the binding to the Contract.
64
+ export default {
65
+ // Creates an executable from the imported contract, along with the assets it will require at runtime.
66
+ contractExecutable: CompiledContract.make<CounterContract>('CounterContract', CounterContract).pipe(
67
+ CompiledContract.withWitnesses(witnesses),
68
+ CompiledContract.withCompiledFileAssets('./<path>/managed/counter'),
69
+ ContractExecutable.make
70
+ ),
71
+ createInitialPrivateState,
72
+ config: {
73
+ keys: {
74
+ coinPublic: '...',
75
+ signing: '...',
76
+ signingKind: 'schnorr'
77
+ },
78
+ network: 'undeployed'
79
+ }
80
+ }
81
+ ```
82
+ **Note**: The `config` property is entirely optional along with its keys. The values can also be provided (or
83
+ overridden via precedence), via environment variables, or through the command line options documented below.
84
+
85
+ ### Global Options
86
+
87
+ The following options can be used with all commands:
88
+
89
+ - `-c | --config pathToConfig`. The file path to the previously mentioned Contract Configuration file.
90
+ Defaults to `'contract.config.ts'` in the current working folder.
91
+ - `-p | --coin-public key`. The user public key capable of receiving Zswap coins.
92
+ The string can be hex or Bech32m encoded. Its value can also be specified using an environment variable named
93
+ `KEYS_COIN_PUBLIC`.
94
+ - `-n | --network networkId`. An optional network identifier.
95
+ Defaults to the Midnight MainNet if not specified. Its value can also be specified using an environment variable named
96
+ `NETWORK`.
97
+
98
+ ### `deploy` Command
99
+
100
+ ```
101
+ <binName> deploy [-c ...]
102
+ [-p ...]
103
+ [-n ...]
104
+ [-s | --signing ...]
105
+ [--signing-kind ...]
106
+ [--output ...]
107
+ [--output-ps ...]
108
+ [--output-zswap ...]
109
+ ...args
110
+ ```
111
+
112
+ This command executes the contract constructor and generates a serialized `Intent` describing a contract deployment.
113
+ The constructor is executed with the given `...args`, and the serialized `Intent` is written to the `--output` file
114
+ path. The private state and Zswap local state is written to the `--output-ps` and `--output-zswap` file paths
115
+ respectively, both formatted as JSON.
116
+
117
+ #### Options
118
+
119
+ - `-s | --signing key`. An optional **secret** signing key, hex encoded, 32 bytes in length.
120
+ This is the key the Contract Maintenance Authority (CMA) is derived from, and the one you will need to sign later
121
+ maintenance operations, so keep it secret and keep it. If not provided, a sample signing key is used in order to
122
+ create a valid CMA but it will not be available for use in future maintenance operations. Its value can also be
123
+ specified using an environment variable named `KEYS_SIGNING`.
124
+ - `--signing-kind schnorr|ecdsa`. The signature scheme the `--signing` key is used with.
125
+ Defaults to `'schnorr'`. Its value can also be specified using an environment variable named `KEYS_SIGNING_KIND`, or
126
+ as `keys.signingKind` in the Contract Configuration file; the command line option takes precedence over both. Ledger 9
127
+ accepts either scheme for a maintenance authority, ledger 8 accepts `schnorr` only and rejects `ecdsa` by name. The
128
+ scheme applies to a key you supply: with no `--signing` key at all, the sampled key uses the selected era's default
129
+ scheme regardless of this option.
130
+ - `--output pathToStateOutput`. The file path to where the serialized `Intent` data should be written.
131
+ Defaults to `'output.bin'` in the current working folder.
132
+ - `--output-ps pathToPrivateStateOutput`. The file path to where the private state data should be written.
133
+ Defaults to `'output.ps.json'` in the current working folder.
134
+ - `--output-zswap pathToZswapLocalStateOutput`. The file path to where the the local Zswap state data should be written.
135
+ Defaults to `'zswap.json'` in the current working folder.
136
+
137
+ ### `circuit` Command
138
+
139
+ ```
140
+ <binName> circuit [-c ...]
141
+ [-p ...]
142
+ [-n ...]
143
+ --input ...
144
+ --input-ps ...
145
+ [--input-zswap ...]
146
+ [--contract-states-dir ... --contract-modules-dir ...]
147
+ [--output ...]
148
+ [--output-ps ...]
149
+ [--output-zswap ...]
150
+ [--output-zswap-calls ...]
151
+ [--output-contract-states-dir ...]
152
+ contractAddress,
153
+ circuitId,
154
+ ...args
155
+ ```
156
+
157
+ Executes a circuit on the contract and generates a serialized `Intent` describing a contract call. The circuit is
158
+ executed with the given `...args` in the context of some prior state provided by the `--input` file path, and private
159
+ state found in the `--input-ps` file path. Optionally, Zswap data describing coins can be provided via a JSON file
160
+ via the `--input-ps` file path.
161
+
162
+ As with the previously described `'deploy'` command, the `--output-*` options provide file paths to the outputs in
163
+ the same way.
164
+
165
+ #### Options
166
+
167
+ - `--input pathToStateInput`. The required file path to the serialized state data.
168
+ The state data is provided as part of the context given to the executing circuit.
169
+ - `--input-ps pathToPrivateStateInput`. The required file path to the private state data.
170
+ Private state is provided to the associated Witness implementations.
171
+ - `--input-zswap pathToZswapLocalStateInput`. The file path to the the local Zswap state data.
172
+ If not provided, then empty Zswap local state data will be provided to the circuit.
173
+ - `--output pathToStateOutput`. The file path to where the serialized `Intent` data should be written.
174
+ Defaults to `'output.bin'` in the current working folder.
175
+ - `--output-ps pathToPrivateStateOutput`. The file path to where the private state data should be written.
176
+ Defaults to `'output.ps.json'` in the current working folder.
177
+ - `--output-zswap pathToZswapLocalStateOutput`. The file path to where the the local Zswap state data should be written.
178
+ Defaults to `'zswap.json'` in the current working folder.
179
+
180
+ #### Cross-contract calls
181
+
182
+ A circuit that calls other contracts needs each callee's state and its compiled code, so `--contract-states-dir` and
183
+ `--contract-modules-dir` are given together. `--contract-states-dir` alone was enough before dynamic cross-contract
184
+ calls, because a caller's generated code imported its callees, but it no longer does.
185
+
186
+ - `--contract-states-dir pathToStatesDir`. A directory of ledger-serialized contract states, each file named by its
187
+ contract address.
188
+ - `--contract-modules-dir pathToModulesDir`. A directory of compiled contract directories, each named by its contract
189
+ address. Node resolves each module's imports from its real location, so keep the directory inside the project, or fill
190
+ it with symlinks to compiled directories there.
191
+ - `--output-contract-states-dir pathToStatesOutputDir`. The directory where the updated state of each called contract
192
+ is written, named by its address.
193
+ - `--output-zswap-calls pathToZswapCallsOutput`. The file path to where the local Zswap state of every call is written
194
+ as JSON, callees first and the root last. A callee's shielded coins appear only here, because `--output-zswap` holds
195
+ the root's. A contract called more than once appears once per call, each time with all of its coins so far.
196
+
197
+ ### `maintain contract` Command
198
+
199
+ ```
200
+ <binName> maintain contract [-c ...]
201
+ [-p ...]
202
+ [-n ...]
203
+ [-s | --signing ...]
204
+ [--signing-kind ...]
205
+ [--new-signing-kind ...]
206
+ --input ...
207
+ [--output ...]
208
+ contractAddress,
209
+ newSigningKey
210
+ ```
211
+
212
+ This command replaces a contract's Contract Maintenance Authority with one derived from `newSigningKey`, and writes
213
+ the resulting signed maintenance update to the `--output` file path as a serialized `Intent`.
214
+
215
+ A rotation names two keys, and they need not use the same signature scheme. `--signing` is the **current** authority
216
+ key, which signs the update; `newSigningKey` is the **new** authority key being installed.
217
+
218
+ #### Options
219
+
220
+ - `-s | --signing key` and `--signing-kind schnorr|ecdsa`. The current authority's secret signing key and its scheme,
221
+ as described for the `deploy` command. Unlike `deploy` there is no sampled fallback, so an invocation that configures
222
+ no key at all fails with `Signing key required to authorize contract maintenance update`.
223
+ - `--new-signing-kind schnorr|ecdsa`. The signature scheme the new authority key is used with.
224
+ Defaults to `'schnorr'`. Note that nothing validates that the key really is one of the named scheme — both schemes use
225
+ 32-byte scalars, and a valid verifying key can be derived from the same bytes under either — so naming the wrong
226
+ scheme installs an authority that your signer cannot later maintain the contract with.
227
+ - `--input pathToStateInput`. The required file path to the serialized state data of the contract being maintained.
228
+ - `--output pathToStateOutput`. The file path to where the serialized `Intent` data should be written.
229
+ Defaults to `'output.bin'` in the current working folder.
230
+
231
+ ### Contract Arguments
232
+
233
+ Compact allows contract constructors and circuits to receive arguments. As described in the
234
+ [Compact Language Reference](https://github.com/midnightntwrk/compactc/blob/main/doc/lang-ref.mdx#representations-in-typescript)
235
+ Compact types are mapped to TypeScript equivalents, and each command attempts to process its `...args` based on
236
+ the associated TypeScript type. Internally, the previously mentioned TypeScript declaration file (generated by
237
+ `compactc`), is reflected over to determine the required TypeScript argument types. Each argument provided in
238
+ `...args` is then parsed according to its TypeScript type before being presented to the Compact runtime.
239
+
240
+ #### Tuples & Objects
241
+
242
+ Tuples and object literals (Compact structs) can be written by enclosing them in quotes:
243
+ - `... "[100n, 200n, true]" ...`
244
+ - `... "{a: 100n, b: 200n, c: false}" ...`
245
+
246
+ Nested tuples and nested object literals are supported:
247
+ - `... "[100n, [200n, 300n], true]" ...`
248
+ - `... "{a: 100n, b: {bx: true, by: false}, c: false}" ...`
249
+ - `... "[100n, {a: 200n, b: false}, true]" ...`
250
+ - `... "{a: 100n, b: [true, false], c: false}" ...`
251
+
252
+ #### Strings
253
+
254
+ Since command line arguments are implicitly string types, you can pass them as is. Obviously, if the string has to
255
+ contain whitespace then it should be enclosed in quotes as it would for any command line argument:
256
+ - `... AString ...`
257
+ - `... "A longer string" ...`
258
+
259
+ When used in Tuple types or object literals, since the enclosing type requires enclosing quotes, strings should be
260
+ enclosed in single quotes:
261
+ - `... "[100n, 'AString']" ...`
262
+ - `... "[100n, 'A longer string']" ...`
263
+ - `... "{a: 100n, b: 'AString'}" ...`
264
+ - `... "{a: 100n, b: 'A longer string'}" ...`
@@ -0,0 +1,66 @@
1
+ import { type FileSystem, type Path } from '@effect/platform';
2
+ import { type PlatformError } from '@effect/platform/Error';
3
+ import { type CompiledContract, type Contract, type ContractRuntimeError } from '@midnightntwrk/compact-js/effect';
4
+ import { Context, type Effect, type Layer } from 'effect';
5
+ declare const CompiledContractReflection_base: Context.TagClass<CompiledContractReflection, "compact-js-command/CompiledContractReflection", CompiledContractReflection.Service>;
6
+ /**
7
+ * Provides utilities for inspecting a compiled Compact contract.
8
+ *
9
+ * @category services
10
+ */
11
+ export declare class CompiledContractReflection extends CompiledContractReflection_base {
12
+ }
13
+ export declare namespace CompiledContractReflection {
14
+ /**
15
+ * Provides utilities for inspecting a compiled Compact contract.
16
+ */
17
+ interface Service {
18
+ /**
19
+ * Creates a parser that transforms an array of string, into an array of values, typed by the reflected
20
+ * argument types of the compiled Compact contract's initializer or circuits.
21
+ *
22
+ * @param compiledContract The Compact compiled contract.
23
+ * @returns An `Effect` that yields an {@link ArgumentParser} for `compiledContract`; or a `PlatformError`
24
+ * if the Compact generated TypeScript declaration file could not be found.
25
+ */
26
+ readonly createArgumentParser: <C extends Contract.Contract<PS>, PS>(compiledContract: CompiledContract.CompiledContract<C, PS, never>) => Effect.Effect<ArgumentParser<C, PS>, PlatformError>;
27
+ }
28
+ /**
29
+ * Uses the argument types of a compiled Compact contract's initializer or circuits, to transform an array
30
+ * of string into an array of values that can be used when executing the contract.
31
+ */
32
+ interface ArgumentParser<C extends Contract.Contract<PS>, PS> {
33
+ /**
34
+ * Transforms an array of strings into an array of contract initialization arguments.
35
+ *
36
+ * @param args The array of strings to be transformed.
37
+ * @returns An `Effect` that yields an array of initialization arguments; or fails with a
38
+ * {@link ContractRuntimeError.ContractRuntimeError | ContractRuntimeError}.
39
+ */
40
+ parseInitializationArgs(args: string[]): Effect.Effect<Contract.Contract.InitializeParameters<C>, ContractRuntimeError.ContractRuntimeError>;
41
+ /**
42
+ * Transforms an array of strings into an array of circuit arguments.
43
+ *
44
+ * @param provableCircuitId The identifier of the circuit that will be invoked with `args`.
45
+ * @param args The array of strings to be transformed.
46
+ * @returns An `Effect` that yields an array of circuit arguments; or fails with a
47
+ * {@link ContractRuntimeError.ContractRuntimeError | ContractRuntimeError}.
48
+ */
49
+ parseCircuitArgs<K extends Contract.ProvableCircuitId<C>>(provableCircuitId: K, args: string[]): Effect.Effect<Contract.Contract.CircuitParameters<C, K>, ContractRuntimeError.ContractRuntimeError>;
50
+ }
51
+ /**
52
+ * Represents an {@link ArgumentParser} for any contract.
53
+ */
54
+ type AnyArgumentParser = ArgumentParser<any, any>;
55
+ }
56
+ /**
57
+ * A {@link CompiledContractReflection} implementation that uses a TypeScript declaration file (*.d.ts) produced
58
+ * by the Compact compiler, to reflect over an associated contract's types.
59
+ *
60
+ * @param baseAssetFolderPath A base path to a folder containing the compiled contract assets.
61
+ *
62
+ * @category layers
63
+ */
64
+ export declare const layer: (baseAssetFolderPath?: string) => Layer.Layer<CompiledContractReflection, PlatformError, FileSystem.FileSystem | Path.Path>;
65
+ export {};
66
+ //# sourceMappingURL=CompiledContractReflection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CompiledContractReflection.d.ts","sourceRoot":"","sources":["../../../src/effect/CompiledContractReflection.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,KAAK,UAAU,EAAE,KAAK,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,QAAQ,EAAE,KAAK,oBAAoB,EAAE,MAAM,kCAAkC,CAAC;AACnH,OAAO,EAAE,OAAO,EAAE,KAAK,MAAM,EAAC,KAAK,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAIzD;;;;GAIG;AACH,qBAAa,0BAA2B,SAAQ,+BAG7C;CAAG;AAEN,MAAM,CAAC,OAAO,WAAW,0BAA0B,CAAC;IAClD;;OAEG;IACH,UAAiB,OAAO;QACtB;;;;;;;WAOG;QACH,QAAQ,CAAC,oBAAoB,EAAE,CAAC,CAAC,SAAS,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,EACjE,gBAAgB,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,KAC9D,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE,aAAa,CAAC,CAAA;KACzD;IAED;;;OAGG;IACH,UAAiB,cAAc,CAAC,CAAC,SAAS,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE;QACjE;;;;;;WAMG;QACH,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;QAE7I;;;;;;;WAOG;QACH,gBAAgB,CAAC,CAAC,SAAS,QAAQ,CAAC,iBAAiB,CAAC,CAAC,CAAC,EACtD,iBAAiB,EAAE,CAAC,EACpB,IAAI,EAAE,MAAM,EAAE,GACb,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,iBAAiB,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,oBAAoB,CAAC,oBAAoB,CAAC,CAAC;KACxG;IAED;;OAEG;IACH,KAAY,iBAAiB,GAAG,cAAc,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;CAC1D;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,KAAK,EAAE,CAAC,mBAAmB,CAAC,EAAE,MAAM,KAAK,KAAK,CAAC,KAAK,CAC/D,0BAA0B,EAC1B,aAAa,EACb,UAAU,CAAC,UAAU,GAAG,IAAI,CAAC,IAAI,CACjB,CAAC"}
@@ -0,0 +1,38 @@
1
+ declare const TypeId: unique symbol;
2
+ type TypeId = typeof TypeId;
3
+ declare const ConfigCompilationError_base: new <A extends Record<string, any>>(args: import("effect/Types").Simplify<A>) => import("effect/Cause").YieldableError & Record<typeof TypeId, typeof TypeId> & {
4
+ readonly _tag: "ConfigCompilationError";
5
+ } & Readonly<A>;
6
+ /**
7
+ * An error occurred while compiling the contract configuration file.
8
+ *
9
+ * @category errors
10
+ */
11
+ export declare class ConfigCompilationError extends ConfigCompilationError_base<{
12
+ /** A displayable message. */
13
+ readonly message: string;
14
+ /** An array of diagnostic messages from the TypeScript compiler. */
15
+ readonly diagnostics: {
16
+ messageText: string;
17
+ }[];
18
+ }> {
19
+ }
20
+ /**
21
+ * Determines if a value is a config compilation error.
22
+ *
23
+ * @param u The value to check.
24
+ * @returns `true` if `u` is a {@link ConfigCompilationError}; `false` otherwise.
25
+ *
26
+ * @category guards
27
+ */
28
+ export declare const isConfigCompilationError: (u: unknown) => u is ConfigCompilationError;
29
+ /**
30
+ * Creates a new {@link ConfigCompilationError}.
31
+ *
32
+ * @category constructors
33
+ */
34
+ export declare const make: (message: string, diagnostics: {
35
+ messageText: string;
36
+ }[]) => ConfigCompilationError;
37
+ export {};
38
+ //# sourceMappingURL=ConfigCompilationError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigCompilationError.d.ts","sourceRoot":"","sources":["../../../src/effect/ConfigCompilationError.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,MAAM,EAAE,OAAO,MAAuE,CAAC;AAC7F,KAAK,MAAM,GAAG,OAAO,MAAM,CAAC;;;;AAE5B;;;;GAIG;AACH,qBAAa,sBAAuB,SAAQ,4BAAoD;IAC9F,6BAA6B;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,oEAAoE;IACpE,QAAQ,CAAC,WAAW,EAAE;QAAE,WAAW,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CACjD,CAAC;CAAI;AAEN;;;;;;;GAOG;AACH,eAAO,MAAM,wBAAwB,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,sBAAgD,CAAC;AAE5G;;;;GAIG;AACH,eAAO,MAAM,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,EAAE,KAAK,sBACA,CAAC"}
@@ -0,0 +1,63 @@
1
+ import { FileSystem, Path } from '@effect/platform';
2
+ import { Context, Effect, Layer } from 'effect';
3
+ import * as ConfigCompilationError from './ConfigCompilationError.js';
4
+ import * as ConfigError from './ConfigError.js';
5
+ import type * as EraBinding from './internal/era/binding.js';
6
+ declare const ConfigCompiler_base: Context.TagClass<ConfigCompiler, "compact-js-command/ConfigCompiler", ConfigCompiler.Service>;
7
+ /**
8
+ * Compiles a contract configuration file into a JavaScript module.
9
+ *
10
+ * @category services
11
+ */
12
+ export declare class ConfigCompiler extends ConfigCompiler_base {
13
+ }
14
+ export declare namespace ConfigCompiler {
15
+ /**
16
+ * Represents the _shape_ of an exported configuration module.
17
+ *
18
+ * @remarks
19
+ * `contractExecutable` is described **era-agnostically** ({@link EraBinding.CommandExecutable}),
20
+ * not as the bound era's `ContractExecutable`. A configuration fixes its own era by importing
21
+ * `@midnightntwrk/compact-js/v8/effect` or `/v9/effect`, and the CLI selects its era separately
22
+ * with `--ledger-era`; naming one era here would declare a configuration written against the
23
+ * other to be the wrong type, which is backwards. Both are accepted, and
24
+ * `internal/command.ts`'s `invocationHandler` reconciles the two choices at run time.
25
+ *
26
+ * The view is a structural supertype of every era's `ContractExecutable`, so an existing
27
+ * configuration type-checks unchanged.
28
+ */
29
+ type ModuleExport<PS = any> = {
30
+ default: {
31
+ config: Record<string, any>;
32
+ createInitialPrivateState: () => PS;
33
+ contractExecutable: EraBinding.CommandExecutable<PS>;
34
+ };
35
+ };
36
+ /**
37
+ * Describes a configuration module, the JavaScript module compiled from a contract configuration file.
38
+ */
39
+ type ModuleSpec<PS = any> = {
40
+ moduleImportDirectoryPath: string;
41
+ module: ModuleExport<PS>;
42
+ };
43
+ interface Service {
44
+ /**
45
+ * Compiles a contract configuration file.
46
+ *
47
+ * @param filePath A file path to the contract configuration file.
48
+ * @returns An `Effect` that yields a {@link ModuleSpec}; or fails with a
49
+ * {@link ConfigError.ConfigError | ConfigError} or a
50
+ * {@link ConfigCompilationError.ConfigCompilationError | ConfigCompilationError}.
51
+ */
52
+ readonly compile: (filePath: string) => Effect.Effect<ModuleSpec, ConfigError.ConfigError | ConfigCompilationError.ConfigCompilationError>;
53
+ }
54
+ }
55
+ /**
56
+ * A {@link ConfigCompiler} implementation that uses TypeScript to compile the given file path and then load
57
+ * it as a JavaScript module.
58
+ *
59
+ * @category layers
60
+ */
61
+ export declare const layer: Layer.Layer<ConfigCompiler, never, Path.Path | FileSystem.FileSystem>;
62
+ export {};
63
+ //# sourceMappingURL=ConfigCompiler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigCompiler.d.ts","sourceRoot":"","sources":["../../../src/effect/ConfigCompiler.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,UAAU,EAAC,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAU,MAAM,QAAQ,CAAC;AAGxD,OAAO,KAAK,sBAAsB,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC;AAChD,OAAO,KAAK,KAAK,UAAU,MAAM,2BAA2B,CAAC;;AAE7D;;;;GAIG;AACH,qBAAa,cAAe,SAAQ,mBAGjC;CAAG;AAEN,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC;;;;;;;;;;;;;OAaG;IACH,KAAY,YAAY,CAAC,EAAE,GAAG,GAAG,IAAI;QACnC,OAAO,EAAE;YACP,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;YAC5B,yBAAyB,EAAE,MAAM,EAAE,CAAC;YACpC,kBAAkB,EAAE,UAAU,CAAC,iBAAiB,CAAC,EAAE,CAAC,CAAC;SACtD,CAAA;KACF,CAAA;IAED;;OAEG;IACH,KAAY,UAAU,CAAC,EAAE,GAAG,GAAG,IAAI;QACjC,yBAAyB,EAAE,MAAM,CAAC;QAClC,MAAM,EAAE,YAAY,CAAC,EAAE,CAAC,CAAC;KAC1B,CAAA;IAED,UAAiB,OAAO;QACtB;;;;;;;WAOG;QACH,QAAQ,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,MAAM,CAAC,MAAM,CACnD,UAAU,EACV,WAAW,CAAC,WAAW,GAAG,sBAAsB,CAAC,sBAAsB,CACxE,CAAC;KACH;CACF;AAED;;;;;GAKG;AACH,eAAO,MAAM,KAAK,uEA4DjB,CAAA"}
@@ -0,0 +1,34 @@
1
+ declare const TypeId: unique symbol;
2
+ type TypeId = typeof TypeId;
3
+ declare const ConfigError_base: new <A extends Record<string, any>>(args: import("effect/Types").Simplify<A>) => import("effect/Cause").YieldableError & Record<typeof TypeId, typeof TypeId> & {
4
+ readonly _tag: "ConfigError";
5
+ } & Readonly<A>;
6
+ /**
7
+ * An error occurred while reading or processing the contract configuration file.
8
+ *
9
+ * @category errors
10
+ */
11
+ export declare class ConfigError extends ConfigError_base<{
12
+ /** A displayable message. */
13
+ readonly message: string;
14
+ /** Indicates a more specific cause of the error. */
15
+ readonly cause?: unknown;
16
+ }> {
17
+ }
18
+ /**
19
+ * Determines if a value is a configuration error.
20
+ *
21
+ * @param u The value to check.
22
+ * @returns `true` if `u` is a {@link ConfigError}; `false` otherwise.
23
+ *
24
+ * @category guards
25
+ */
26
+ export declare const isConfigError: (u: unknown) => u is ConfigError;
27
+ /**
28
+ * Creates a new {@link ConfigError}.
29
+ *
30
+ * @category constructors
31
+ */
32
+ export declare const make: (message: string, cause?: unknown) => ConfigError;
33
+ export {};
34
+ //# sourceMappingURL=ConfigError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConfigError.d.ts","sourceRoot":"","sources":["../../../src/effect/ConfigError.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,MAAM,EAAE,OAAO,MAA4D,CAAC;AAClF,KAAK,MAAM,GAAG,OAAO,MAAM,CAAC;;;;AAE5B;;;;GAIG;AACH,qBAAa,WAAY,SAAQ,iBAAyC;IACxE,6BAA6B;IAC7B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,oDAAoD;IACpD,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC;CAC1B,CAAC;CAAI;AAEN;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,GAAI,GAAG,OAAO,KAAG,CAAC,IAAI,WAAqC,CAAC;AAEtF;;;;GAIG;AACH,eAAO,MAAM,IAAI,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,OAAO,KAAK,WACpB,CAAC"}
@@ -0,0 +1,73 @@
1
+ import { Command } from '@effect/cli';
2
+ export declare const deployCommand: Command.Command<"deploy", import("@effect/platform/Path").Path | import("@effect/platform/FileSystem").FileSystem | import("./ConfigCompiler.js").ConfigCompiler, import("./ConfigError.js").ConfigError | import("effect/ConfigError").ConfigError, {
3
+ readonly args: string[];
4
+ } & {
5
+ readonly signingKey: import("effect/Option").Option<string & import("effect/Brand").Brand<"PlainHex"> & import("effect/Brand").Brand<"SigningKeyValue">>;
6
+ readonly signingKind: import("effect/Option").Option<"schnorr" | "ecdsa">;
7
+ readonly outputFilePath: string;
8
+ readonly outputPublicFilePath: import("effect/Option").Option<string>;
9
+ readonly outputPrivateStateFilePath: string;
10
+ readonly outputZswapLocalStateFilePath: string;
11
+ } & {
12
+ readonly config: string;
13
+ readonly coinPublicKey: import("effect/Option").Option<(string & import("effect/Brand").Brand<"PlainHex"> & import("effect/Brand").Brand<"CoinPublicKeyHex">) | (string & import("effect/Brand").Brand<"CoinPublicKeyBech32m">)>;
14
+ readonly ledgerEra: 8 | 9;
15
+ }>;
16
+ export declare const circuitCommand: Command.Command<"circuit", import("@effect/platform/Path").Path | import("@effect/platform/FileSystem").FileSystem | import("./ConfigCompiler.js").ConfigCompiler, import("./ConfigError.js").ConfigError | import("effect/ConfigError").ConfigError, {
17
+ readonly address: string & import("effect/Brand").Brand<"PlainHex"> & import("effect/Brand").Brand<"ContractAddress">;
18
+ readonly circuitId: string;
19
+ readonly args: string[];
20
+ } & {
21
+ readonly inputFilePath: string;
22
+ readonly inputPrivateStateFilePath: string;
23
+ readonly inputZswapLocalStateFilePath: import("effect/Option").Option<string>;
24
+ readonly inputLedgerParamsFilePath: import("effect/Option").Option<string>;
25
+ readonly inputContractStatesDirPath: import("effect/Option").Option<string>;
26
+ readonly inputContractModulesDirPath: import("effect/Option").Option<string>;
27
+ readonly outputContractStatesDirPath: import("effect/Option").Option<string>;
28
+ readonly outputFilePath: string;
29
+ readonly outputPublicFilePath: import("effect/Option").Option<string>;
30
+ readonly outputPrivateStateFilePath: string;
31
+ readonly outputZswapLocalStateFilePath: string;
32
+ readonly outputZswapCallsFilePath: import("effect/Option").Option<string>;
33
+ readonly outputResultFilePath: string;
34
+ readonly outputEventsFilePath: import("effect/Option").Option<string>;
35
+ } & {
36
+ readonly config: string;
37
+ readonly coinPublicKey: import("effect/Option").Option<(string & import("effect/Brand").Brand<"PlainHex"> & import("effect/Brand").Brand<"CoinPublicKeyHex">) | (string & import("effect/Brand").Brand<"CoinPublicKeyBech32m">)>;
38
+ readonly ledgerEra: 8 | 9;
39
+ }>;
40
+ export declare const maintainCommand: Command.Command<"maintain", import("@effect/platform/Path").Path | import("@effect/platform/FileSystem").FileSystem | import("./ConfigCompiler.js").ConfigCompiler, import("./ConfigError.js").ConfigError | import("effect/ConfigError").ConfigError, {
41
+ readonly subcommand: import("effect/Option").Option<({
42
+ readonly circuitId: string;
43
+ readonly verifierKeyPath: import("effect/Option").Option<string>;
44
+ readonly address: string & import("effect/Brand").Brand<"PlainHex"> & import("effect/Brand").Brand<"ContractAddress">;
45
+ } & {
46
+ readonly signingKey: import("effect/Option").Option<string & import("effect/Brand").Brand<"PlainHex"> & import("effect/Brand").Brand<"SigningKeyValue">>;
47
+ readonly signingKind: import("effect/Option").Option<"schnorr" | "ecdsa">;
48
+ readonly inputFilePath: string;
49
+ readonly outputFilePath: string;
50
+ } & {
51
+ readonly config: string;
52
+ readonly coinPublicKey: import("effect/Option").Option<(string & import("effect/Brand").Brand<"PlainHex"> & import("effect/Brand").Brand<"CoinPublicKeyHex">) | (string & import("effect/Brand").Brand<"CoinPublicKeyBech32m">)>;
53
+ readonly ledgerEra: 8 | 9;
54
+ }) | ({
55
+ readonly newSigningKey: string & import("effect/Brand").Brand<"PlainHex"> & import("effect/Brand").Brand<"SigningKeyValue">;
56
+ readonly address: string & import("effect/Brand").Brand<"PlainHex"> & import("effect/Brand").Brand<"ContractAddress">;
57
+ } & {
58
+ readonly signingKey: import("effect/Option").Option<string & import("effect/Brand").Brand<"PlainHex"> & import("effect/Brand").Brand<"SigningKeyValue">>;
59
+ readonly signingKind: import("effect/Option").Option<"schnorr" | "ecdsa">;
60
+ readonly newSigningKind: import("effect/Option").Option<"schnorr" | "ecdsa">;
61
+ readonly inputFilePath: string;
62
+ readonly outputFilePath: string;
63
+ } & {
64
+ readonly config: string;
65
+ readonly coinPublicKey: import("effect/Option").Option<(string & import("effect/Brand").Brand<"PlainHex"> & import("effect/Brand").Brand<"CoinPublicKeyHex">) | (string & import("effect/Brand").Brand<"CoinPublicKeyBech32m">)>;
66
+ readonly ledgerEra: 8 | 9;
67
+ })>;
68
+ }>;
69
+ export * as CompiledContractReflection from './CompiledContractReflection.js';
70
+ export * as ConfigCompilationError from './ConfigCompilationError.js';
71
+ export * as ConfigCompiler from './ConfigCompiler.js';
72
+ export * as ConfigError from './ConfigError.js';
73
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/effect/index.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAetC,eAAO,MAAM,aAAa;;;;;;;;;;;;;EAWzB,CAAC;AAEF,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;EAWxB,CAAC;AAEJ,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BzB,CAAC;AAEJ,OAAO,KAAK,0BAA0B,MAAM,iCAAiC,CAAC;AAC9E,OAAO,KAAK,sBAAsB,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,cAAc,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,WAAW,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { Args } from '@effect/cli';
2
+ export declare const contractArgs: Args.Args<string[]>;
3
+ export declare const contractAddress: Args.Args<string & import("effect/Brand").Brand<"PlainHex"> & import("effect/Brand").Brand<"ContractAddress">>;
4
+ export declare const signingKey: Args.Args<string & import("effect/Brand").Brand<"PlainHex"> & import("effect/Brand").Brand<"SigningKeyValue">>;
5
+ export declare const circuitId: Args.Args<string>;
6
+ export declare const verifierKeyPath: Args.Args<import("effect/Option").Option<string>>;
7
+ //# sourceMappingURL=args.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../../src/effect/internal/args.ts"],"names":[],"mappings":"AAeA,OAAO,EAAE,IAAI,EAAE,MAAM,aAAa,CAAC;AAKnC,eAAO,MAAM,YAAY,qBAGxB,CAAC;AAEF,eAAO,MAAM,eAAe,gHAK3B,CAAC;AAEF,eAAO,MAAM,UAAU,gHAMtB,CAAC;AAEF,eAAO,MAAM,SAAS,mBAAwF,CAAC;AAE/G,eAAO,MAAM,eAAe,mDAG3B,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=circuitCommand.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"circuitCommand.d.ts","sourceRoot":"","sources":["../../../../src/effect/internal/circuitCommand.ts"],"names":[],"mappings":""}