@junobuild/config 0.0.10 → 0.0.11
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/dist/browser/index.js +1 -1
- package/dist/node/index.mjs +1 -1
- package/dist/types/console/console.config.d.ts +1 -1
- package/dist/types/index.d.ts +6 -3
- package/dist/types/module/module.settings.d.ts +64 -0
- package/dist/types/satellite/mainnet/configs/assertions.config.d.ts +16 -0
- package/dist/types/satellite/mainnet/configs/orbiter.config.d.ts +17 -0
- package/dist/types/satellite/mainnet/{satellite.config.d.ts → configs/satellite.config.d.ts} +13 -20
- package/dist/types/satellite/mainnet/juno.config.d.ts +2 -18
- package/package.json +1 -1
- /package/dist/types/satellite/mainnet/{authentication.config.d.ts → configs/authentication.config.d.ts} +0 -0
- /package/dist/types/{satellite/mainnet → storage}/storage.config.d.ts +0 -0
package/dist/browser/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
function n(o){return o}function i(o){return o}function
|
|
1
|
+
function n(o){return o}function i(o){return o}function f(o){return o}export{f as defineConfig,n as defineConsoleConfig,i as defineDevConfig};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as topLevelCreateRequire } from 'module';
|
|
2
2
|
const require = topLevelCreateRequire(import.meta.url);
|
|
3
|
-
function n(o){return o}function i(o){return o}function
|
|
3
|
+
function n(o){return o}function i(o){return o}function f(o){return o}export{f as defineConfig,n as defineConsoleConfig,i as defineDevConfig};
|
|
4
4
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { StorageConfig } from '../
|
|
1
|
+
import type { StorageConfig } from '../storage/storage.config';
|
|
2
2
|
import type { CliConfig } from '../types/cli.config';
|
|
3
3
|
import type { JunoConfigMode } from '../types/juno.env';
|
|
4
4
|
import type { Either } from '../utils/ts.utils';
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
export type * from './console/console.config';
|
|
2
|
+
export type * from './module/module.settings';
|
|
2
3
|
export type * from './satellite/dev/juno.dev.config';
|
|
3
|
-
export type * from './satellite/mainnet/
|
|
4
|
+
export type * from './satellite/mainnet/configs/assertions.config';
|
|
5
|
+
export type * from './satellite/mainnet/configs/authentication.config';
|
|
6
|
+
export type * from './satellite/mainnet/configs/orbiter.config';
|
|
7
|
+
export type * from './satellite/mainnet/configs/satellite.config';
|
|
4
8
|
export type * from './satellite/mainnet/juno.config';
|
|
5
|
-
export type * from './satellite/mainnet/satellite.config';
|
|
6
|
-
export type * from './satellite/mainnet/storage.config';
|
|
7
9
|
export type * from './satellite/types/rules';
|
|
10
|
+
export type * from './storage/storage.config';
|
|
8
11
|
export type * from './types/cli.config';
|
|
9
12
|
export type * from './types/encoding';
|
|
10
13
|
export type * from './types/juno.env';
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Specifies who can see the logs of the module.
|
|
3
|
+
*
|
|
4
|
+
* - 'controllers': Only the controllers of the module can see the logs.
|
|
5
|
+
* - 'public': Everyone can see the logs.
|
|
6
|
+
*
|
|
7
|
+
* @typedef {'controllers' | 'public'} ModuleLogVisibility
|
|
8
|
+
*/
|
|
9
|
+
export type ModuleLogVisibility = 'controllers' | 'public';
|
|
10
|
+
/**
|
|
11
|
+
* Settings for a module - Satellite, Mission Control or Orbiter.
|
|
12
|
+
*
|
|
13
|
+
* These settings control various aspects of the module's behavior and resource usage.
|
|
14
|
+
*
|
|
15
|
+
* @interface ModuleSettings
|
|
16
|
+
*/
|
|
17
|
+
export interface ModuleSettings {
|
|
18
|
+
/**
|
|
19
|
+
* The cycle threshold below which the module will automatically stop to avoid running out of cycles.
|
|
20
|
+
*
|
|
21
|
+
* For example, if set to `BigInt(1000000)`, the module will stop when it has fewer than 1,000,000 cycles remaining.
|
|
22
|
+
*
|
|
23
|
+
* @type {bigint}
|
|
24
|
+
*/
|
|
25
|
+
freezingThreshold: bigint;
|
|
26
|
+
/**
|
|
27
|
+
* The number of cycles reserved for the module's operations to ensure it has enough cycles to function.
|
|
28
|
+
*
|
|
29
|
+
* For example, setting it to `BigInt(5000000)` reserves 5,000,000 cycles for the module.
|
|
30
|
+
*
|
|
31
|
+
* @type {bigint}
|
|
32
|
+
*/
|
|
33
|
+
reservedCyclesLimit: bigint;
|
|
34
|
+
/**
|
|
35
|
+
* Controls who can see the module's logs.
|
|
36
|
+
*
|
|
37
|
+
* @type {ModuleLogVisibility}
|
|
38
|
+
*/
|
|
39
|
+
logVisibility: ModuleLogVisibility;
|
|
40
|
+
/**
|
|
41
|
+
* The maximum amount of WebAssembly (Wasm) memory the module can use on the heap.
|
|
42
|
+
*
|
|
43
|
+
* For example, setting it to `BigInt(1024 * 1024 * 64)` allows the module to use up to 64 MB of Wasm memory.
|
|
44
|
+
*
|
|
45
|
+
* @type {bigint}
|
|
46
|
+
*/
|
|
47
|
+
wasmMemoryLimit: bigint;
|
|
48
|
+
/**
|
|
49
|
+
* The amount of memory explicitly allocated to the module.
|
|
50
|
+
*
|
|
51
|
+
* For example, setting it to `BigInt(1024 * 1024 * 128)` allocates 128 MB of memory to the module.
|
|
52
|
+
*
|
|
53
|
+
* @type {bigint}
|
|
54
|
+
*/
|
|
55
|
+
memoryAllocation: bigint;
|
|
56
|
+
/**
|
|
57
|
+
* The proportion of compute capacity allocated to the module.
|
|
58
|
+
*
|
|
59
|
+
* This is a fraction of the total compute capacity of the subnet. For example, setting it to `BigInt(10)` allocates 10% of the compute capacity to the module.
|
|
60
|
+
*
|
|
61
|
+
* @type {bigint}
|
|
62
|
+
*/
|
|
63
|
+
computeAllocation: bigint;
|
|
64
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Configuration for satellite assertions.
|
|
3
|
+
* @interface SatelliteAssertions
|
|
4
|
+
*/
|
|
5
|
+
export interface SatelliteAssertions {
|
|
6
|
+
/**
|
|
7
|
+
* Configuration for the heap memory size check, which can be:
|
|
8
|
+
* - `true` to enable the check with a default threshold of 900MB,
|
|
9
|
+
* - `false` to disable the heap memory size check,
|
|
10
|
+
* - A `number` to specify a custom threshold in MB (megabytes) for the heap memory size check.
|
|
11
|
+
*
|
|
12
|
+
* If not specified, then `true` is used as the default value.
|
|
13
|
+
* @type {number | boolean}
|
|
14
|
+
*/
|
|
15
|
+
heapMemory?: number | boolean;
|
|
16
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Represents the configuration for an orbiter.
|
|
3
|
+
* @interface OrbiterConfig
|
|
4
|
+
*/
|
|
5
|
+
export interface OrbiterConfig {
|
|
6
|
+
/**
|
|
7
|
+
* The identifier of the orbiter used in the dApp.
|
|
8
|
+
* @type {string}
|
|
9
|
+
*/
|
|
10
|
+
id: string;
|
|
11
|
+
/**
|
|
12
|
+
* The deprecated identifier of the orbiter.
|
|
13
|
+
* @deprecated `orbiterId` will be removed in the future. Use `id` instead.
|
|
14
|
+
* @type {string}
|
|
15
|
+
*/
|
|
16
|
+
orbiterId?: string;
|
|
17
|
+
}
|
package/dist/types/satellite/mainnet/{satellite.config.d.ts → configs/satellite.config.d.ts}
RENAMED
|
@@ -1,24 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
1
|
+
import { ModuleSettings } from '../../../module/module.settings';
|
|
2
|
+
import type { StorageConfig } from '../../../storage/storage.config';
|
|
3
|
+
import type { CliConfig } from '../../../types/cli.config';
|
|
4
|
+
import type { JunoConfigMode } from '../../../types/juno.env';
|
|
5
|
+
import type { Either } from '../../../utils/ts.utils';
|
|
6
|
+
import type { SatelliteAssertions } from './assertions.config';
|
|
4
7
|
import type { AuthenticationConfig } from './authentication.config';
|
|
5
|
-
import type { StorageConfig } from './storage.config';
|
|
6
|
-
/**
|
|
7
|
-
* Configuration for satellite assertions.
|
|
8
|
-
* @interface SatelliteAssertions
|
|
9
|
-
*/
|
|
10
|
-
export interface SatelliteAssertions {
|
|
11
|
-
/**
|
|
12
|
-
* Configuration for the heap memory size check, which can be:
|
|
13
|
-
* - `true` to enable the check with a default threshold of 900MB,
|
|
14
|
-
* - `false` to disable the heap memory size check,
|
|
15
|
-
* - A `number` to specify a custom threshold in MB (megabytes) for the heap memory size check.
|
|
16
|
-
*
|
|
17
|
-
* If not specified, then `true` is used as the default value.
|
|
18
|
-
* @type {number | boolean}
|
|
19
|
-
*/
|
|
20
|
-
heapMemory?: number | boolean;
|
|
21
|
-
}
|
|
22
8
|
/**
|
|
23
9
|
* Represents the unique identifier for a satellite.
|
|
24
10
|
* @interface SatelliteId
|
|
@@ -80,4 +66,11 @@ export type SatelliteConfig = Either<SatelliteId, SatelliteIds> & CliConfig & {
|
|
|
80
66
|
* @optional
|
|
81
67
|
*/
|
|
82
68
|
assertions?: SatelliteAssertions;
|
|
69
|
+
/**
|
|
70
|
+
* Optional configuration parameters for the Satellite.
|
|
71
|
+
* These settings control various aspects of the module's behavior and resource usage.
|
|
72
|
+
* @type {ModuleSettings}
|
|
73
|
+
* @optional
|
|
74
|
+
*/
|
|
75
|
+
settings?: ModuleSettings;
|
|
83
76
|
};
|
|
@@ -1,21 +1,5 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
|
|
3
|
-
* Represents the configuration for an orbiter.
|
|
4
|
-
* @interface OrbiterConfig
|
|
5
|
-
*/
|
|
6
|
-
export interface OrbiterConfig {
|
|
7
|
-
/**
|
|
8
|
-
* The identifier of the orbiter used in the dApp.
|
|
9
|
-
* @type {string}
|
|
10
|
-
*/
|
|
11
|
-
id: string;
|
|
12
|
-
/**
|
|
13
|
-
* The deprecated identifier of the orbiter.
|
|
14
|
-
* @deprecated `orbiterId` will be removed in the future. Use `id` instead.
|
|
15
|
-
* @type {string}
|
|
16
|
-
*/
|
|
17
|
-
orbiterId?: string;
|
|
18
|
-
}
|
|
1
|
+
import type { OrbiterConfig } from './configs/orbiter.config';
|
|
2
|
+
import type { SatelliteConfig } from './configs/satellite.config';
|
|
19
3
|
/**
|
|
20
4
|
* Represents the overall configuration for Juno.
|
|
21
5
|
* @interface JunoConfig
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|