@lionden/config 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +23 -0
- package/dist/aleo-address.d.ts +17 -0
- package/dist/aleo-address.d.ts.map +1 -0
- package/dist/aleo-address.js +21 -0
- package/dist/aleo-address.js.map +1 -0
- package/dist/config-variable.d.ts +25 -0
- package/dist/config-variable.d.ts.map +1 -0
- package/dist/config-variable.js +22 -0
- package/dist/config-variable.js.map +1 -0
- package/dist/declaration-merging.d.ts +23 -0
- package/dist/declaration-merging.d.ts.map +1 -0
- package/dist/declaration-merging.js +20 -0
- package/dist/declaration-merging.js.map +1 -0
- package/dist/define-config.d.ts +22 -0
- package/dist/define-config.d.ts.map +1 -0
- package/dist/define-config.js +4 -0
- package/dist/define-config.js.map +1 -0
- package/dist/env.d.ts +11 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/env.js +23 -0
- package/dist/env.js.map +1 -0
- package/dist/execution-imports.d.ts +51 -0
- package/dist/execution-imports.d.ts.map +1 -0
- package/dist/execution-imports.js +102 -0
- package/dist/execution-imports.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/dist/named-account.d.ts +150 -0
- package/dist/named-account.d.ts.map +1 -0
- package/dist/named-account.js +153 -0
- package/dist/named-account.js.map +1 -0
- package/dist/types.d.ts +488 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +30 -0
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,488 @@
|
|
|
1
|
+
import type { ConfigVariable } from "./config-variable.js";
|
|
2
|
+
import type { LionDenResolvedConfigExtensions, LionDenUserConfigExtensions } from "./declaration-merging.js";
|
|
3
|
+
export type { ConfigVariable } from "./config-variable.js";
|
|
4
|
+
/**
|
|
5
|
+
* A single value for a named account entry.
|
|
6
|
+
* - number: devnode account index (e.g. 0 → DEVNODE_ACCOUNTS[0])
|
|
7
|
+
* - string matching "aleo1...": a literal Aleo address (address-only)
|
|
8
|
+
* - string matching "APrivateKey1...": a literal private key (signable)
|
|
9
|
+
* - ConfigVariable: resolved eagerly to a string, then classified by prefix
|
|
10
|
+
*/
|
|
11
|
+
export type NamedAccountValue = number | string | ConfigVariable;
|
|
12
|
+
/**
|
|
13
|
+
* Per-account named account config.
|
|
14
|
+
* The `default` key applies when no network-specific override is found.
|
|
15
|
+
*/
|
|
16
|
+
export interface NamedAccountConfig {
|
|
17
|
+
readonly default?: NamedAccountValue;
|
|
18
|
+
readonly [networkName: string]: NamedAccountValue | undefined;
|
|
19
|
+
}
|
|
20
|
+
/** A resolved named account value after config variable resolution. */
|
|
21
|
+
export type ResolvedNamedAccountValue = {
|
|
22
|
+
readonly type: "index";
|
|
23
|
+
readonly index: number;
|
|
24
|
+
} | {
|
|
25
|
+
readonly type: "address";
|
|
26
|
+
readonly address: string;
|
|
27
|
+
} | {
|
|
28
|
+
readonly type: "privateKey";
|
|
29
|
+
readonly privateKey: string;
|
|
30
|
+
};
|
|
31
|
+
/** A fully resolved named account entry with per-network overrides and default. */
|
|
32
|
+
export interface ResolvedNamedAccountEntry {
|
|
33
|
+
readonly networks: Readonly<Record<string, ResolvedNamedAccountValue>>;
|
|
34
|
+
readonly default?: ResolvedNamedAccountValue;
|
|
35
|
+
}
|
|
36
|
+
/** All resolved named accounts from config. */
|
|
37
|
+
export type ResolvedNamedAccountsConfig = Readonly<Record<string, ResolvedNamedAccountEntry>>;
|
|
38
|
+
export interface DevnodeNetworkConfig {
|
|
39
|
+
readonly type: "devnode";
|
|
40
|
+
/** Socket address for the devnode REST API. Default: "127.0.0.1:3030" */
|
|
41
|
+
readonly socketAddr?: string;
|
|
42
|
+
/** Auto-create blocks on transaction broadcast. Default: true */
|
|
43
|
+
readonly autoBlock?: boolean;
|
|
44
|
+
/** Verbosity level (0-2). Default: 0 */
|
|
45
|
+
readonly verbosity?: number;
|
|
46
|
+
/** Accounts to use. Default: well-known devnode accounts */
|
|
47
|
+
readonly accounts?: AccountConfig[];
|
|
48
|
+
/** Genesis block path */
|
|
49
|
+
readonly genesisPath?: string;
|
|
50
|
+
/** Aleo network type. Default: "testnet" */
|
|
51
|
+
readonly network?: AleoNetwork;
|
|
52
|
+
/** Private key for the devnode validator. Default: well-known test key */
|
|
53
|
+
readonly privateKey?: string | ConfigVariable;
|
|
54
|
+
/**
|
|
55
|
+
* Consensus heights for devnode startup (e.g., "0,1,2,3,4,5,6,7,8").
|
|
56
|
+
* Required for V9/constructor support on devnode.
|
|
57
|
+
* Leo backend only — rejected on the standalone backend.
|
|
58
|
+
*/
|
|
59
|
+
readonly consensusHeights?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Which devnode backend to drive.
|
|
62
|
+
* - `"leo"`: the devnode bundled in the Leo CLI (`leo devnode start`).
|
|
63
|
+
* - `"standalone"`: Provable's standalone `aleo-devnode` binary.
|
|
64
|
+
* When omitted, the backend is auto-detected at start time: `aleo-devnode`
|
|
65
|
+
* is preferred when present on PATH, otherwise the Leo CLI is used.
|
|
66
|
+
*/
|
|
67
|
+
readonly provider?: "leo" | "standalone";
|
|
68
|
+
/**
|
|
69
|
+
* Path to the standalone `aleo-devnode` binary. The Leo binary comes from
|
|
70
|
+
* the top-level `leoBinary`. Setting this is standalone-only: it forces the
|
|
71
|
+
* standalone backend and fails clearly if the binary can't be run.
|
|
72
|
+
*/
|
|
73
|
+
readonly binary?: string;
|
|
74
|
+
/**
|
|
75
|
+
* Directory for the standalone devnode's persistent ledger (`--storage`).
|
|
76
|
+
* Standalone-only. Enables snapshot/restore. When unset, the devnode runs
|
|
77
|
+
* in-memory and cannot snapshot.
|
|
78
|
+
*/
|
|
79
|
+
readonly storagePath?: string;
|
|
80
|
+
/**
|
|
81
|
+
* Clear the storage directory before starting (`--clear-storage`).
|
|
82
|
+
* Standalone-only and requires `storagePath`.
|
|
83
|
+
*/
|
|
84
|
+
readonly clearStorageOnStart?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Skip disk writes/reads for deployment state on this network.
|
|
87
|
+
* When true, deployment records, ABI snapshots, history, and pending
|
|
88
|
+
* markers are kept in memory only.
|
|
89
|
+
* Default: true (devnode chain dies on process exit).
|
|
90
|
+
*/
|
|
91
|
+
readonly ephemeral?: boolean;
|
|
92
|
+
}
|
|
93
|
+
export interface HttpNetworkConfig {
|
|
94
|
+
readonly type: "http";
|
|
95
|
+
/** Full endpoint URL, e.g. "https://api.explorer.provable.com/v1" */
|
|
96
|
+
readonly endpoint: string;
|
|
97
|
+
/** Network type */
|
|
98
|
+
readonly network: AleoNetwork;
|
|
99
|
+
/** Private key or ConfigVariable reference */
|
|
100
|
+
readonly privateKey?: string | ConfigVariable;
|
|
101
|
+
/** Optional API key for explorer */
|
|
102
|
+
readonly apiKey?: string | ConfigVariable;
|
|
103
|
+
/**
|
|
104
|
+
* Skip disk writes/reads for deployment state on this network.
|
|
105
|
+
* When true, deployment records, ABI snapshots, history, and pending
|
|
106
|
+
* markers are kept in memory only.
|
|
107
|
+
* Default: false (HTTP chains persist across restarts).
|
|
108
|
+
*/
|
|
109
|
+
readonly ephemeral?: boolean;
|
|
110
|
+
}
|
|
111
|
+
export type NetworkUserConfig = DevnodeNetworkConfig | HttpNetworkConfig;
|
|
112
|
+
export type AleoNetwork = "mainnet" | "testnet" | "canary";
|
|
113
|
+
export interface AccountConfig {
|
|
114
|
+
/** Private key string or ConfigVariable reference */
|
|
115
|
+
readonly privateKey: string | ConfigVariable;
|
|
116
|
+
/** Optional label for this account */
|
|
117
|
+
readonly name?: string;
|
|
118
|
+
}
|
|
119
|
+
/** Account config after variable resolution — privateKey is always a string. */
|
|
120
|
+
export interface ResolvedAccountConfig {
|
|
121
|
+
readonly privateKey: string;
|
|
122
|
+
readonly name?: string;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Forward declaration for LionDenPlugin. The full interface is in @lionden/core.
|
|
126
|
+
* This minimal shape is what the config needs to reference plugins.
|
|
127
|
+
*/
|
|
128
|
+
export interface LionDenPluginRef {
|
|
129
|
+
readonly id: string;
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Forward declaration for TaskDefinition. The full interface is in @lionden/core.
|
|
133
|
+
*/
|
|
134
|
+
export interface TaskDefinitionRef {
|
|
135
|
+
readonly id: string;
|
|
136
|
+
}
|
|
137
|
+
export interface LionDenUserConfig extends LionDenUserConfigExtensions {
|
|
138
|
+
/**
|
|
139
|
+
* Leo compatibility declaration. Default: "4.3.2".
|
|
140
|
+
* Supported lines are currently 4.3.x, 4.2.x, 4.1.x, 4.0.x, and 3.5.x.
|
|
141
|
+
*/
|
|
142
|
+
readonly leoVersion?: string;
|
|
143
|
+
/**
|
|
144
|
+
* Skip LionDen's Leo version compatibility comparison.
|
|
145
|
+
*
|
|
146
|
+
* This still requires the configured `leoBinary` to be executable and its
|
|
147
|
+
* `--version` command to exit successfully. It only disables parsing and
|
|
148
|
+
* comparing the reported version against `leoVersion`.
|
|
149
|
+
*/
|
|
150
|
+
readonly skipLeoVersionCheck?: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Path to the Leo CLI binary.
|
|
153
|
+
* When omitted, LionDen uses the `leo` binary found on `PATH`.
|
|
154
|
+
* Useful for projects that target a specific Leo version (e.g., v3.5.0)
|
|
155
|
+
* installed alongside the default.
|
|
156
|
+
*
|
|
157
|
+
* Tilde (`~/`) is expanded to the user's home directory during config resolution.
|
|
158
|
+
*
|
|
159
|
+
* @example "~/.leo/bin/leo-3.5"
|
|
160
|
+
* @example "/Users/alice/.leo/bin/leo-3.5"
|
|
161
|
+
*/
|
|
162
|
+
readonly leoBinary?: string;
|
|
163
|
+
/** Path to Leo programs directory (relative to project root). Default: "programs" */
|
|
164
|
+
readonly programsDir?: string;
|
|
165
|
+
/** Path for build artifacts (relative to project root). Default: "artifacts" */
|
|
166
|
+
readonly artifactsDir?: string;
|
|
167
|
+
/** Path for generated TypeScript bindings (relative to project root). Default: "typechain" */
|
|
168
|
+
readonly typechainDir?: string;
|
|
169
|
+
/** Network configurations */
|
|
170
|
+
readonly networks?: Record<string, NetworkUserConfig>;
|
|
171
|
+
/** Default network to use. Default: "devnode" */
|
|
172
|
+
readonly defaultNetwork?: string;
|
|
173
|
+
/** Plugins to load. Core plugins loaded automatically. */
|
|
174
|
+
readonly plugins?: LionDenPluginRef[];
|
|
175
|
+
/** Additional tasks registered at the config level */
|
|
176
|
+
readonly tasks?: TaskDefinitionRef[];
|
|
177
|
+
/** Compilation settings */
|
|
178
|
+
readonly compiler?: CompilerConfig;
|
|
179
|
+
/** TypeScript codegen settings */
|
|
180
|
+
readonly codegen?: CodegenConfig;
|
|
181
|
+
/** Testing settings */
|
|
182
|
+
readonly testing?: TestingConfig;
|
|
183
|
+
/** Deploy settings */
|
|
184
|
+
readonly deploy?: DeployConfig;
|
|
185
|
+
/** Provable SDK integration settings */
|
|
186
|
+
readonly sdk?: SdkConfig;
|
|
187
|
+
/** Execution settings — runtime imports for dynamic dispatch, etc. */
|
|
188
|
+
readonly execution?: ExecutionConfig;
|
|
189
|
+
/**
|
|
190
|
+
* Named accounts — human-readable roles mapped to per-network account values.
|
|
191
|
+
*
|
|
192
|
+
* @example
|
|
193
|
+
* ```typescript
|
|
194
|
+
* namedAccounts: {
|
|
195
|
+
* deployer: { default: 0, testnet: configVariable("DEPLOYER_KEY") },
|
|
196
|
+
* treasury: { default: "aleo1fagxe9lxaxektcnqfz4vpp0f9w7muxvwmrprepus8tve4h9fyyzq80pwu5" },
|
|
197
|
+
* }
|
|
198
|
+
* ```
|
|
199
|
+
*/
|
|
200
|
+
readonly namedAccounts?: Record<string, NamedAccountConfig>;
|
|
201
|
+
}
|
|
202
|
+
export interface CompilerConfig {
|
|
203
|
+
/**
|
|
204
|
+
* Enable dead code elimination. Default: true.
|
|
205
|
+
*
|
|
206
|
+
* Only forwarded to `leo build` on the 4.1/4.0/3.5 lines, which expose the
|
|
207
|
+
* `--enable-dce` flag. Leo 4.2 removed the flag (DCE is now unconditional),
|
|
208
|
+
* so this is a no-op when `leoVersion` is 4.2.x or newer.
|
|
209
|
+
*/
|
|
210
|
+
readonly enableDce?: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Max conditional depth. Default: 10.
|
|
213
|
+
*
|
|
214
|
+
* Only forwarded to `leo build` on the 4.1/4.0/3.5 lines. Leo 4.2 removed the
|
|
215
|
+
* `--conditional-block-max-depth` flag, so this is a no-op on 4.2.x or newer.
|
|
216
|
+
*/
|
|
217
|
+
readonly conditionalBlockMaxDepth?: number;
|
|
218
|
+
/** Build tests along with main. Default: false */
|
|
219
|
+
readonly buildTests?: boolean;
|
|
220
|
+
/** Additional leo build flags */
|
|
221
|
+
readonly extraFlags?: readonly string[];
|
|
222
|
+
}
|
|
223
|
+
export interface CodegenConfig {
|
|
224
|
+
/** Generate TypeScript bindings on compile. Default: true */
|
|
225
|
+
readonly enabled?: boolean;
|
|
226
|
+
/** Target directory for generated files (relative to project root) */
|
|
227
|
+
readonly outDir?: string;
|
|
228
|
+
/**
|
|
229
|
+
* Generate Leo interface conversion helpers. Each entry emits a free
|
|
230
|
+
* function in the program owning `sourceRecord`. Schema follows
|
|
231
|
+
* `Leo.dynamicRecord(...)`'s `DynamicRecordSchema<T>` shape — each value is
|
|
232
|
+
* a `${LeoPrimitiveType}.${LeoVisibility}` string. Map key becomes the
|
|
233
|
+
* emitted function name.
|
|
234
|
+
*/
|
|
235
|
+
readonly dynamicRecords?: Record<string, DynamicRecordHelperConfig>;
|
|
236
|
+
}
|
|
237
|
+
export interface DynamicRecordHelperConfig {
|
|
238
|
+
/**
|
|
239
|
+
* Generated TypeScript record type name (`pathToTsName(record.path)`).
|
|
240
|
+
* Module-scoped records use their full disambiguated name, e.g.
|
|
241
|
+
* `Foo_Bar_Token` for `foo::bar::Token`.
|
|
242
|
+
*/
|
|
243
|
+
readonly sourceRecord: string;
|
|
244
|
+
/**
|
|
245
|
+
* Program ID (ending in `.aleo`) owning `sourceRecord`. Required only when
|
|
246
|
+
* multiple compiled programs declare a record by the same generated name.
|
|
247
|
+
*/
|
|
248
|
+
readonly sourceProgram?: string;
|
|
249
|
+
/**
|
|
250
|
+
* Per-field `<type>.<visibility>` schema. Keys must exactly match the
|
|
251
|
+
* generated record shape (implicit `owner: address` + ABI fields +
|
|
252
|
+
* implicit `_nonce: group`); visibility may differ per field.
|
|
253
|
+
*/
|
|
254
|
+
readonly schema: Record<string, string>;
|
|
255
|
+
}
|
|
256
|
+
export interface TestingConfig {
|
|
257
|
+
/** Test framework. Default: "vitest" */
|
|
258
|
+
readonly framework?: "vitest";
|
|
259
|
+
/** Timeout per test in ms. Default: 120000 */
|
|
260
|
+
readonly timeout?: number;
|
|
261
|
+
/** Auto-start devnode for tests. Default: true */
|
|
262
|
+
readonly autoStartDevnode?: boolean;
|
|
263
|
+
}
|
|
264
|
+
export interface DeployConfig {
|
|
265
|
+
/** Default priority fee in microcredits. Default: 0 */
|
|
266
|
+
readonly defaultPriorityFee?: number;
|
|
267
|
+
/** Pay fees from private records instead of public balance. Default: false */
|
|
268
|
+
readonly privateFee?: boolean;
|
|
269
|
+
/** Confirm transactions. Default: true */
|
|
270
|
+
readonly confirmTransactions?: boolean;
|
|
271
|
+
/** Confirmation timeout in ms. Default: 60000 */
|
|
272
|
+
readonly confirmationTimeout?: number;
|
|
273
|
+
/** Directory for deployment state (relative to project root). Default: "deployments" */
|
|
274
|
+
readonly deploymentsDir?: string;
|
|
275
|
+
/** Skip programs already deployed on-chain. Default: true */
|
|
276
|
+
readonly skipDeployed?: boolean;
|
|
277
|
+
/** Delay between dependent program deployments in ms (HTTP only). Default: 12000ms for HTTP, 0 for devnode */
|
|
278
|
+
readonly interDeploymentDelay?: number;
|
|
279
|
+
/** Automatically export deployment bundle after each deploy/upgrade. Default: false */
|
|
280
|
+
readonly autoExport?: boolean;
|
|
281
|
+
/**
|
|
282
|
+
* Global override for deployment state ephemeral mode.
|
|
283
|
+
* Overrides the per-network-type default (devnode=true, http=false)
|
|
284
|
+
* but is itself overridden by per-network `ephemeral` settings.
|
|
285
|
+
*/
|
|
286
|
+
readonly ephemeral?: boolean;
|
|
287
|
+
}
|
|
288
|
+
export interface SdkConfig {
|
|
289
|
+
/**
|
|
290
|
+
* SDK log level. Default: "warn".
|
|
291
|
+
*
|
|
292
|
+
* Applied only when the installed @provablehq/sdk exposes setLogLevel().
|
|
293
|
+
*/
|
|
294
|
+
readonly logLevel?: SdkLogLevel;
|
|
295
|
+
/** Proving/verifying key cache settings. Defaults to filesystem-backed caching. */
|
|
296
|
+
readonly keyCache?: SdkKeyCacheConfig;
|
|
297
|
+
/**
|
|
298
|
+
* Overrides for the per-connection SDK network-host egress policy. By
|
|
299
|
+
* default, `allowedNetworkHosts` is scoped to the configured endpoint
|
|
300
|
+
* (devnode socket or http endpoint). Use `networkHosts` to extend with
|
|
301
|
+
* sidecar / telemetry hosts and `violation` to switch between hard-block
|
|
302
|
+
* and warn-only for rollout / debugging. Parameter-host (credits keys,
|
|
303
|
+
* SRS) egress is governed by the SDK key cache and an internal known-host
|
|
304
|
+
* list; see `network.md` § SDK Objects.
|
|
305
|
+
*/
|
|
306
|
+
readonly egress?: SdkEgressConfig;
|
|
307
|
+
}
|
|
308
|
+
export declare const SDK_LOG_LEVELS: readonly ["silent", "error", "warn", "info", "debug"];
|
|
309
|
+
export type SdkLogLevel = (typeof SDK_LOG_LEVELS)[number];
|
|
310
|
+
export interface SdkKeyCacheConfig {
|
|
311
|
+
/** Cache storage backend. Default: "filesystem" */
|
|
312
|
+
readonly storage?: "memory" | "filesystem";
|
|
313
|
+
/** Filesystem cache directory. Relative paths resolve from project root. */
|
|
314
|
+
readonly path?: string;
|
|
315
|
+
}
|
|
316
|
+
/**
|
|
317
|
+
* Optional overrides for the SDK network-host egress policy. Host lists
|
|
318
|
+
* are literal hostnames (no `https://` prefix, no shorthand strings). When
|
|
319
|
+
* a field is omitted, the per-connection default applies (`networkHosts`:
|
|
320
|
+
* the configured endpoint host only; `violation`: `"block"`).
|
|
321
|
+
*/
|
|
322
|
+
export interface SdkEgressConfig {
|
|
323
|
+
/** Hosts the SDK may call for chain state / submission, in addition to the connection endpoint. */
|
|
324
|
+
readonly networkHosts?: readonly string[];
|
|
325
|
+
/** What to do on a disallowed network-host fetch. Default: "block". */
|
|
326
|
+
readonly violation?: "block" | "warn";
|
|
327
|
+
}
|
|
328
|
+
export interface ExecutionConfig {
|
|
329
|
+
/**
|
|
330
|
+
* Runtime imports per dispatching program. Map keys are program ids
|
|
331
|
+
* (bare names or `.aleo`-suffixed; normalized to canonical `.aleo` form).
|
|
332
|
+
* Array entries are program ids OR paths to local `.aleo` files
|
|
333
|
+
* (relative paths anchor to project root). Provides programs the VM
|
|
334
|
+
* needs at execute time but cannot discover from the source's static
|
|
335
|
+
* imports — e.g. dynamic-dispatch targets selected by a runtime
|
|
336
|
+
* `identifier` value.
|
|
337
|
+
*
|
|
338
|
+
* @example
|
|
339
|
+
* ```typescript
|
|
340
|
+
* execution: {
|
|
341
|
+
* imports: {
|
|
342
|
+
* "governance.aleo": ["voting_power.aleo", "quadratic_power.aleo"],
|
|
343
|
+
* },
|
|
344
|
+
* }
|
|
345
|
+
* ```
|
|
346
|
+
*/
|
|
347
|
+
readonly imports?: Record<string, readonly string[]>;
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Normalized runtime-import reference produced by config resolution and by
|
|
351
|
+
* `AleoConnection` when API-level imports arrive. Either points at a known
|
|
352
|
+
* program id (resolved later via artifacts → network) or at a local `.aleo`
|
|
353
|
+
* file (already absolutized and existence-checked).
|
|
354
|
+
*/
|
|
355
|
+
export type RuntimeImportRef = {
|
|
356
|
+
readonly kind: "programId";
|
|
357
|
+
readonly programId: string;
|
|
358
|
+
} | {
|
|
359
|
+
readonly kind: "path";
|
|
360
|
+
readonly absolutePath: string;
|
|
361
|
+
};
|
|
362
|
+
export interface ResolvedExecutionConfig {
|
|
363
|
+
/** Map keys are canonical `.aleo` program ids; refs are normalized + deduped. */
|
|
364
|
+
readonly imports: Readonly<Record<string, readonly RuntimeImportRef[]>>;
|
|
365
|
+
}
|
|
366
|
+
export interface ResolvedPaths {
|
|
367
|
+
/** Project root (where config file lives) */
|
|
368
|
+
readonly root: string;
|
|
369
|
+
/** Absolute path to programs directory */
|
|
370
|
+
readonly programs: string;
|
|
371
|
+
/** Absolute path to build artifacts */
|
|
372
|
+
readonly artifacts: string;
|
|
373
|
+
/** Absolute path to generated bindings */
|
|
374
|
+
readonly typechain: string;
|
|
375
|
+
/** Absolute path to cache directory */
|
|
376
|
+
readonly cache: string;
|
|
377
|
+
/** Absolute path to deployment state directory */
|
|
378
|
+
readonly deployments: string;
|
|
379
|
+
}
|
|
380
|
+
export interface ResolvedCompilerConfig {
|
|
381
|
+
readonly enableDce: boolean;
|
|
382
|
+
readonly conditionalBlockMaxDepth: number;
|
|
383
|
+
readonly buildTests: boolean;
|
|
384
|
+
readonly extraFlags: readonly string[];
|
|
385
|
+
}
|
|
386
|
+
export interface ResolvedCodegenConfig {
|
|
387
|
+
readonly enabled: boolean;
|
|
388
|
+
readonly outDir: string;
|
|
389
|
+
/**
|
|
390
|
+
* Normalized dynamic-record helpers. Each entry carries the map-key
|
|
391
|
+
* `helperName` field so codegen has everything it needs without re-keying.
|
|
392
|
+
* `sourceProgram` stays optional in the resolved form; plugin-leo binds it
|
|
393
|
+
* to the owning programId at codegen time when ABIs are available.
|
|
394
|
+
*/
|
|
395
|
+
readonly dynamicRecords: Readonly<Record<string, ResolvedDynamicRecordHelper>>;
|
|
396
|
+
}
|
|
397
|
+
export interface ResolvedDynamicRecordHelper {
|
|
398
|
+
readonly helperName: string;
|
|
399
|
+
readonly sourceRecord: string;
|
|
400
|
+
readonly sourceProgram?: string;
|
|
401
|
+
readonly schema: Readonly<Record<string, string>>;
|
|
402
|
+
}
|
|
403
|
+
export interface ResolvedTestingConfig {
|
|
404
|
+
readonly framework: "vitest";
|
|
405
|
+
readonly timeout: number;
|
|
406
|
+
readonly autoStartDevnode: boolean;
|
|
407
|
+
}
|
|
408
|
+
export interface ResolvedDeployConfig {
|
|
409
|
+
readonly defaultPriorityFee: number;
|
|
410
|
+
readonly privateFee: boolean;
|
|
411
|
+
readonly confirmTransactions: boolean;
|
|
412
|
+
readonly confirmationTimeout: number;
|
|
413
|
+
readonly deploymentsDir: string;
|
|
414
|
+
readonly skipDeployed: boolean;
|
|
415
|
+
readonly interDeploymentDelay?: number;
|
|
416
|
+
readonly autoExport: boolean;
|
|
417
|
+
}
|
|
418
|
+
export interface ResolvedSdkConfig {
|
|
419
|
+
readonly logLevel?: SdkLogLevel;
|
|
420
|
+
readonly keyCache: ResolvedSdkKeyCacheConfig;
|
|
421
|
+
/**
|
|
422
|
+
* User-supplied network-host egress overrides. `undefined` means
|
|
423
|
+
* "use the per-connection default `allowedNetworkHosts = { endpoint host }`
|
|
424
|
+
* with `violation = "block"`". The runtime `SdkEgressPolicy` is built
|
|
425
|
+
* per-connection by `NetworkManager` from the connection endpoint plus
|
|
426
|
+
* these overrides; it does not vary by network `type`.
|
|
427
|
+
*/
|
|
428
|
+
readonly egress?: ResolvedSdkEgressConfig;
|
|
429
|
+
}
|
|
430
|
+
export interface ResolvedSdkKeyCacheConfig {
|
|
431
|
+
readonly storage: "memory" | "filesystem";
|
|
432
|
+
/** Absolute effective filesystem path when storage is "filesystem". */
|
|
433
|
+
readonly path?: string;
|
|
434
|
+
}
|
|
435
|
+
export interface ResolvedSdkEgressConfig {
|
|
436
|
+
readonly networkHosts?: readonly string[];
|
|
437
|
+
readonly violation?: "block" | "warn";
|
|
438
|
+
}
|
|
439
|
+
/** Resolved network config — discriminated by type, all fields populated */
|
|
440
|
+
export interface ResolvedDevnodeNetworkConfig {
|
|
441
|
+
readonly type: "devnode";
|
|
442
|
+
readonly socketAddr: string;
|
|
443
|
+
readonly autoBlock: boolean;
|
|
444
|
+
readonly verbosity: number;
|
|
445
|
+
readonly accounts: ResolvedAccountConfig[];
|
|
446
|
+
readonly genesisPath?: string;
|
|
447
|
+
readonly network: AleoNetwork;
|
|
448
|
+
readonly privateKey?: string;
|
|
449
|
+
readonly consensusHeights?: string;
|
|
450
|
+
/** Devnode backend selection. Undefined ⇒ auto-detect at start time. */
|
|
451
|
+
readonly provider?: "leo" | "standalone";
|
|
452
|
+
/** Path to the standalone `aleo-devnode` binary (standalone backend only). */
|
|
453
|
+
readonly binary?: string;
|
|
454
|
+
/** Persistent ledger directory for the standalone backend (`--storage`). */
|
|
455
|
+
readonly storagePath?: string;
|
|
456
|
+
/** Clear `storagePath` before starting (`--clear-storage`). */
|
|
457
|
+
readonly clearStorageOnStart?: boolean;
|
|
458
|
+
/** Deployment state ephemeral mode. Default: true (devnode chain dies on exit). */
|
|
459
|
+
readonly ephemeral: boolean;
|
|
460
|
+
}
|
|
461
|
+
export interface ResolvedHttpNetworkConfig {
|
|
462
|
+
readonly type: "http";
|
|
463
|
+
readonly endpoint: string;
|
|
464
|
+
readonly network: AleoNetwork;
|
|
465
|
+
readonly privateKey?: string;
|
|
466
|
+
readonly apiKey?: string;
|
|
467
|
+
/** Deployment state ephemeral mode. Default: false (HTTP chains persist). */
|
|
468
|
+
readonly ephemeral: boolean;
|
|
469
|
+
}
|
|
470
|
+
export type ResolvedNetworkConfig = ResolvedDevnodeNetworkConfig | ResolvedHttpNetworkConfig;
|
|
471
|
+
export interface LionDenResolvedConfig extends LionDenResolvedConfigExtensions {
|
|
472
|
+
readonly leoVersion: string;
|
|
473
|
+
readonly skipLeoVersionCheck: boolean;
|
|
474
|
+
/** Resolved path to the Leo CLI binary. Default: "leo" */
|
|
475
|
+
readonly leoBinary: string;
|
|
476
|
+
readonly paths: ResolvedPaths;
|
|
477
|
+
readonly networks: Record<string, ResolvedNetworkConfig>;
|
|
478
|
+
readonly defaultNetwork: string;
|
|
479
|
+
readonly compiler: ResolvedCompilerConfig;
|
|
480
|
+
readonly codegen: ResolvedCodegenConfig;
|
|
481
|
+
readonly testing: ResolvedTestingConfig;
|
|
482
|
+
readonly deploy: ResolvedDeployConfig;
|
|
483
|
+
readonly sdk: ResolvedSdkConfig;
|
|
484
|
+
readonly execution: ResolvedExecutionConfig;
|
|
485
|
+
/** Resolved named accounts. Empty record when not configured. */
|
|
486
|
+
readonly namedAccounts: ResolvedNamedAccountsConfig;
|
|
487
|
+
}
|
|
488
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EACV,+BAA+B,EAC/B,2BAA2B,EAC5B,MAAM,0BAA0B,CAAC;AAGlC,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAM3D;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,MAAM,GAAG,cAAc,CAAC;AAEjE;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,OAAO,CAAC,EAAE,iBAAiB,CAAC;IACrC,QAAQ,EAAE,WAAW,EAAE,MAAM,GAAG,iBAAiB,GAAG,SAAS,CAAC;CAC/D;AAMD,uEAAuE;AACvE,MAAM,MAAM,yBAAyB,GACjC;IAAE,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClD;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,CAAC;IAAC,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GACtD;IAAE,QAAQ,CAAC,IAAI,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAC;AAEjE,mFAAmF;AACnF,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CA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,CAAC,mBAAmB,EAAE,OAAO,CAAC;IACtC,0DAA0D;IAC1D,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,qBAAqB,CAAC,CAAC;IACzD,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,QAAQ,EAAE,sBAAsB,CAAC;IAC1C,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC;IACxC,QAAQ,CAAC,MAAM,EAAE,oBAAoB,CAAC;IACtC,QAAQ,CAAC,GAAG,EAAE,iBAAiB,CAAC;IAChC,QAAQ,CAAC,SAAS,EAAE,uBAAuB,CAAC;IAC5C,iEAAiE;IACjE,QAAQ,CAAC,aAAa,EAAE,2BAA2B,CAAC;CACrD"}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AA2WA,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAU,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lionden/config",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/sealance-io/lionden.git",
|
|
9
|
+
"directory": "packages/config"
|
|
10
|
+
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": "^20.19.0 || >=22.12.0"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"types": "./dist/index.d.ts",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"dist",
|
|
22
|
+
"!dist/**/*.test.*"
|
|
23
|
+
],
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public"
|
|
26
|
+
},
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "tsc --build"
|
|
29
|
+
}
|
|
30
|
+
}
|