@cartesi/cli 2.0.0-alpha.21 → 2.0.0-alpha.22
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/index.js +685 -50
- package/dist/index.js.map +785 -0
- package/package.json +80 -84
- package/LICENSE +0 -202
- package/dist/base.d.ts +0 -28
- package/dist/base.d.ts.map +0 -1
- package/dist/base.js +0 -109
- package/dist/builder/directory.d.ts +0 -3
- package/dist/builder/directory.d.ts.map +0 -1
- package/dist/builder/directory.js +0 -39
- package/dist/builder/docker.d.ts +0 -10
- package/dist/builder/docker.d.ts.map +0 -1
- package/dist/builder/docker.js +0 -114
- package/dist/builder/empty.d.ts +0 -3
- package/dist/builder/empty.d.ts.map +0 -1
- package/dist/builder/empty.js +0 -21
- package/dist/builder/index.d.ts +0 -6
- package/dist/builder/index.d.ts.map +0 -1
- package/dist/builder/index.js +0 -5
- package/dist/builder/none.d.ts +0 -3
- package/dist/builder/none.d.ts.map +0 -1
- package/dist/builder/none.js +0 -11
- package/dist/builder/tar.d.ts +0 -3
- package/dist/builder/tar.d.ts.map +0 -1
- package/dist/builder/tar.js +0 -30
- package/dist/commands/address-book.d.ts +0 -6
- package/dist/commands/address-book.d.ts.map +0 -1
- package/dist/commands/address-book.js +0 -44
- package/dist/commands/build.d.ts +0 -8
- package/dist/commands/build.d.ts.map +0 -1
- package/dist/commands/build.js +0 -97
- package/dist/commands/clean.d.ts +0 -3
- package/dist/commands/clean.d.ts.map +0 -1
- package/dist/commands/clean.js +0 -10
- package/dist/commands/create.d.ts +0 -7
- package/dist/commands/create.d.ts.map +0 -1
- package/dist/commands/create.js +0 -37
- package/dist/commands/deploy/build.d.ts +0 -3
- package/dist/commands/deploy/build.d.ts.map +0 -1
- package/dist/commands/deploy/build.js +0 -9
- package/dist/commands/deploy.d.ts +0 -3
- package/dist/commands/deploy.d.ts.map +0 -1
- package/dist/commands/deploy.js +0 -12
- package/dist/commands/deposit/erc1155.d.ts +0 -18
- package/dist/commands/deposit/erc1155.d.ts.map +0 -1
- package/dist/commands/deposit/erc1155.js +0 -254
- package/dist/commands/deposit/erc20.d.ts +0 -10
- package/dist/commands/deposit/erc20.d.ts.map +0 -1
- package/dist/commands/deposit/erc20.js +0 -125
- package/dist/commands/deposit/erc721.d.ts +0 -10
- package/dist/commands/deposit/erc721.d.ts.map +0 -1
- package/dist/commands/deposit/erc721.js +0 -143
- package/dist/commands/deposit/ether.d.ts +0 -10
- package/dist/commands/deposit/ether.d.ts.map +0 -1
- package/dist/commands/deposit/ether.js +0 -65
- package/dist/commands/deposit.d.ts +0 -9
- package/dist/commands/deposit.d.ts.map +0 -1
- package/dist/commands/deposit.js +0 -37
- package/dist/commands/doctor.d.ts +0 -3
- package/dist/commands/doctor.d.ts.map +0 -1
- package/dist/commands/doctor.js +0 -105
- package/dist/commands/hash.d.ts +0 -5
- package/dist/commands/hash.d.ts.map +0 -1
- package/dist/commands/hash.js +0 -22
- package/dist/commands/logs.d.ts +0 -9
- package/dist/commands/logs.d.ts.map +0 -1
- package/dist/commands/logs.js +0 -34
- package/dist/commands/run.d.ts +0 -15
- package/dist/commands/run.d.ts.map +0 -1
- package/dist/commands/run.js +0 -202
- package/dist/commands/send.d.ts +0 -10
- package/dist/commands/send.d.ts.map +0 -1
- package/dist/commands/send.js +0 -130
- package/dist/commands/shell.d.ts +0 -7
- package/dist/commands/shell.d.ts.map +0 -1
- package/dist/commands/shell.js +0 -48
- package/dist/commands/status.d.ts +0 -6
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js +0 -50
- package/dist/compose/default.env +0 -36
- package/dist/compose/docker-compose-anvil.yaml +0 -39
- package/dist/compose/docker-compose-bundler.yaml +0 -71
- package/dist/compose/docker-compose-database.yaml +0 -12
- package/dist/compose/docker-compose-explorer.yaml +0 -96
- package/dist/compose/docker-compose-node-cpus.yaml +0 -6
- package/dist/compose/docker-compose-node-memory.yaml +0 -6
- package/dist/compose/docker-compose-node.yaml +0 -50
- package/dist/compose/docker-compose-passkey-server.yaml +0 -37
- package/dist/compose/docker-compose-paymaster.yaml +0 -40
- package/dist/compose/docker-compose-proxy.yaml +0 -24
- package/dist/config.d.ts +0 -124
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -418
- package/dist/contracts.d.ts +0 -4376
- package/dist/contracts.d.ts.map +0 -1
- package/dist/contracts.js +0 -1839
- package/dist/exec/cartesi-machine.d.ts +0 -9
- package/dist/exec/cartesi-machine.d.ts.map +0 -1
- package/dist/exec/cartesi-machine.js +0 -18
- package/dist/exec/genext2fs.d.ts +0 -31
- package/dist/exec/genext2fs.d.ts.map +0 -1
- package/dist/exec/genext2fs.js +0 -44
- package/dist/exec/index.d.ts +0 -4
- package/dist/exec/index.d.ts.map +0 -1
- package/dist/exec/index.js +0 -3
- package/dist/exec/mksquashfs.d.ts +0 -21
- package/dist/exec/mksquashfs.d.ts.map +0 -1
- package/dist/exec/mksquashfs.js +0 -47
- package/dist/exec/rollups.d.ts +0 -105
- package/dist/exec/rollups.d.ts.map +0 -1
- package/dist/exec/rollups.js +0 -375
- package/dist/exec/util.d.ts +0 -21
- package/dist/exec/util.d.ts.map +0 -1
- package/dist/exec/util.js +0 -31
- package/dist/index.d.ts +0 -3
- package/dist/index.d.ts.map +0 -1
- package/dist/machine.d.ts +0 -12
- package/dist/machine.d.ts.map +0 -1
- package/dist/machine.js +0 -90
- package/dist/prompts.d.ts +0 -73
- package/dist/prompts.d.ts.map +0 -1
- package/dist/prompts.js +0 -192
- package/dist/template.d.ts +0 -3
- package/dist/template.d.ts.map +0 -1
- package/dist/template.js +0 -16
- package/dist/types/docker.d.ts +0 -22
- package/dist/types/docker.d.ts.map +0 -1
- package/dist/types/docker.js +0 -1
- package/dist/wallet.d.ts +0 -9225
- package/dist/wallet.d.ts.map +0 -1
- package/dist/wallet.js +0 -41
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Range, type SemVer } from "semver";
|
|
2
|
-
import { type DockerFallbackOptions, type ExecaOptionsDockerFallback } from "./util.js";
|
|
3
|
-
export declare const requiredVersion: Range;
|
|
4
|
-
export declare const boot: (args: readonly string[], options: ExecaOptionsDockerFallback) => Promise<import("execa").Result<import("execa").Options & {
|
|
5
|
-
image?: string;
|
|
6
|
-
forceDocker?: false;
|
|
7
|
-
}>>;
|
|
8
|
-
export declare const version: (options?: DockerFallbackOptions) => Promise<SemVer | null>;
|
|
9
|
-
//# sourceMappingURL=cartesi-machine.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cartesi-machine.d.ts","sourceRoot":"","sources":["../../src/exec/cartesi-machine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAEH,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAClC,MAAM,WAAW,CAAC;AAEnB,eAAO,MAAM,eAAe,OAAuB,CAAC;AAEpD,eAAO,MAAM,IAAI,GACb,MAAM,SAAS,MAAM,EAAE,EACvB,SAAS,0BAA0B;;;GACmB,CAAC;AAE3D,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAgBvB,CAAC"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { parse, Range } from "semver";
|
|
2
|
-
import { execaDockerFallback, } from "./util.js";
|
|
3
|
-
export const requiredVersion = new Range("^0.19.0");
|
|
4
|
-
export const boot = (args, options) => execaDockerFallback("cartesi-machine", args, options);
|
|
5
|
-
export const version = async (options) => {
|
|
6
|
-
const { image } = options || {};
|
|
7
|
-
try {
|
|
8
|
-
const { stdout } = await execaDockerFallback("cartesi-machine", ["--version-json"], { image });
|
|
9
|
-
if (typeof stdout === "string") {
|
|
10
|
-
const output = JSON.parse(stdout);
|
|
11
|
-
return parse(output.version);
|
|
12
|
-
}
|
|
13
|
-
return null;
|
|
14
|
-
}
|
|
15
|
-
catch {
|
|
16
|
-
return null;
|
|
17
|
-
}
|
|
18
|
-
};
|
package/dist/exec/genext2fs.d.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Range, type SemVer } from "semver";
|
|
2
|
-
import { type DockerFallbackOptions } from "./util.js";
|
|
3
|
-
export declare const requiredVersion: Range;
|
|
4
|
-
export declare const empty: (options: {
|
|
5
|
-
cwd?: string;
|
|
6
|
-
size: number;
|
|
7
|
-
output: string;
|
|
8
|
-
} & DockerFallbackOptions) => Promise<import("execa").Result<import("execa").Options & {
|
|
9
|
-
image?: string;
|
|
10
|
-
forceDocker?: false;
|
|
11
|
-
}>>;
|
|
12
|
-
export declare const fromDirectory: (options: {
|
|
13
|
-
cwd?: string;
|
|
14
|
-
extraSize: number;
|
|
15
|
-
input: string;
|
|
16
|
-
output: string;
|
|
17
|
-
} & DockerFallbackOptions) => Promise<import("execa").Result<import("execa").Options & {
|
|
18
|
-
image?: string;
|
|
19
|
-
forceDocker?: false;
|
|
20
|
-
}>>;
|
|
21
|
-
export declare const fromTar: (options: {
|
|
22
|
-
cwd?: string;
|
|
23
|
-
extraSize: number;
|
|
24
|
-
input: string;
|
|
25
|
-
output: string;
|
|
26
|
-
} & DockerFallbackOptions) => Promise<import("execa").Result<import("execa").Options & {
|
|
27
|
-
image?: string;
|
|
28
|
-
forceDocker?: false;
|
|
29
|
-
}>>;
|
|
30
|
-
export declare const version: (options?: DockerFallbackOptions) => Promise<SemVer | null>;
|
|
31
|
-
//# sourceMappingURL=genext2fs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"genext2fs.d.ts","sourceRoot":"","sources":["../../src/exec/genext2fs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,KAAK,EAAE,KAAK,MAAM,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,KAAK,qBAAqB,EAAuB,MAAM,WAAW,CAAC;AAI5E,eAAO,MAAM,eAAe,EAAE,KAA2B,CAAC;AAU1D,eAAO,MAAM,KAAK,GACd,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAgB5B,CAAC;AAEF,eAAO,MAAM,aAAa,GACtB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAS5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAS5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAevB,CAAC"}
|
package/dist/exec/genext2fs.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { parse, Range } from "semver";
|
|
2
|
-
import { execaDockerFallback } from "./util.js";
|
|
3
|
-
const BLOCK_SIZE = 4096; // fixed at 4k
|
|
4
|
-
export const requiredVersion = new Range("^1.5.6");
|
|
5
|
-
const baseArgs = (options) => [
|
|
6
|
-
"--block-size",
|
|
7
|
-
BLOCK_SIZE.toString(),
|
|
8
|
-
"--faketime",
|
|
9
|
-
"--readjustment",
|
|
10
|
-
`+${options.extraBlocks}`,
|
|
11
|
-
];
|
|
12
|
-
export const empty = (options) => {
|
|
13
|
-
const { size, output } = options;
|
|
14
|
-
const blocks = Math.ceil(size / BLOCK_SIZE); // size in blocks
|
|
15
|
-
return execaDockerFallback("xgenext2fs", [
|
|
16
|
-
"--block-size",
|
|
17
|
-
BLOCK_SIZE.toString(),
|
|
18
|
-
"--faketime",
|
|
19
|
-
"--size-in-blocks",
|
|
20
|
-
blocks.toString(),
|
|
21
|
-
output,
|
|
22
|
-
], options);
|
|
23
|
-
};
|
|
24
|
-
export const fromDirectory = (options) => {
|
|
25
|
-
const { cwd, extraSize, image, input, output } = options;
|
|
26
|
-
const extraBlocks = Math.ceil(extraSize / BLOCK_SIZE);
|
|
27
|
-
return execaDockerFallback("xgenext2fs", [...baseArgs({ extraBlocks }), "--root", input, output], { cwd, image });
|
|
28
|
-
};
|
|
29
|
-
export const fromTar = (options) => {
|
|
30
|
-
const { cwd, extraSize, image, input, output } = options;
|
|
31
|
-
const extraBlocks = Math.ceil(extraSize / BLOCK_SIZE);
|
|
32
|
-
return execaDockerFallback("xgenext2fs", [...baseArgs({ extraBlocks }), "--tarball", input, output], { cwd, image });
|
|
33
|
-
};
|
|
34
|
-
export const version = async (options) => {
|
|
35
|
-
const { stdout } = await execaDockerFallback("xgenext2fs", ["--version"], options || {});
|
|
36
|
-
if (typeof stdout === "string") {
|
|
37
|
-
const regex = /(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?/;
|
|
38
|
-
const m = stdout.match(regex);
|
|
39
|
-
if (m?.[0]) {
|
|
40
|
-
return parse(m[0]);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
return null;
|
|
44
|
-
};
|
package/dist/exec/index.d.ts
DELETED
package/dist/exec/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/exec/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,cAAc,MAAM,sBAAsB,CAAC;AACvD,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAC;AAC5C,OAAO,KAAK,UAAU,MAAM,iBAAiB,CAAC"}
|
package/dist/exec/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { Range, type SemVer } from "semver";
|
|
2
|
-
import { type DockerFallbackOptions } from "./util.js";
|
|
3
|
-
export declare const requiredVersion: Range;
|
|
4
|
-
export declare const fromDirectory: (options: {
|
|
5
|
-
cwd?: string;
|
|
6
|
-
input: string;
|
|
7
|
-
output: string;
|
|
8
|
-
} & DockerFallbackOptions) => Promise<import("execa").Result<import("execa").Options & {
|
|
9
|
-
image?: string;
|
|
10
|
-
forceDocker?: false;
|
|
11
|
-
}>>;
|
|
12
|
-
export declare const fromTar: (options: {
|
|
13
|
-
cwd?: string;
|
|
14
|
-
input: string;
|
|
15
|
-
output: string;
|
|
16
|
-
} & DockerFallbackOptions) => Promise<import("execa").Result<import("execa").Options & {
|
|
17
|
-
image?: string;
|
|
18
|
-
forceDocker?: false;
|
|
19
|
-
}>>;
|
|
20
|
-
export declare const version: (options?: DockerFallbackOptions) => Promise<SemVer | null>;
|
|
21
|
-
//# sourceMappingURL=mksquashfs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mksquashfs.d.ts","sourceRoot":"","sources":["../../src/exec/mksquashfs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,MAAM,EAAS,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,KAAK,qBAAqB,EAAuB,MAAM,WAAW,CAAC;AAI5E,eAAO,MAAM,eAAe,EAAE,KAA2B,CAAC;AAc1D,eAAO,MAAM,aAAa,GACtB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAO5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,SAAS;IACL,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB,GAAG,qBAAqB;;;GAY5B,CAAC;AAEF,eAAO,MAAM,OAAO,GAChB,UAAU,qBAAqB,KAChC,OAAO,CAAC,MAAM,GAAG,IAAI,CAoBvB,CAAC"}
|
package/dist/exec/mksquashfs.js
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { Range, parse } from "semver";
|
|
2
|
-
import { execaDockerFallback } from "./util.js";
|
|
3
|
-
const COMPRESSION = "lzo"; // make customizable? default is gzip
|
|
4
|
-
export const requiredVersion = new Range("^4.5.1");
|
|
5
|
-
const baseArgs = () => [
|
|
6
|
-
"-all-time",
|
|
7
|
-
"0",
|
|
8
|
-
"-mkfs-time",
|
|
9
|
-
"0",
|
|
10
|
-
"-all-root", // XXX: should we use this?
|
|
11
|
-
"-noappend",
|
|
12
|
-
"-comp",
|
|
13
|
-
COMPRESSION,
|
|
14
|
-
"-no-progress",
|
|
15
|
-
];
|
|
16
|
-
export const fromDirectory = (options) => {
|
|
17
|
-
const { cwd, image, input, output } = options;
|
|
18
|
-
return execaDockerFallback("mksquashfs", [input, output, ...baseArgs()], {
|
|
19
|
-
cwd,
|
|
20
|
-
image,
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
export const fromTar = (options) => {
|
|
24
|
-
const { cwd, image, input, output } = options;
|
|
25
|
-
return execaDockerFallback("mksquashfs", ["-", output, "-tar", ...baseArgs()], {
|
|
26
|
-
cwd,
|
|
27
|
-
image,
|
|
28
|
-
inputFile: input, // use stdin in case of tar file
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
export const version = async (options) => {
|
|
32
|
-
try {
|
|
33
|
-
const { stdout } = await execaDockerFallback("mksquashfs", ["-version"], options || {});
|
|
34
|
-
if (typeof stdout === "string") {
|
|
35
|
-
const regex = /(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?/gm;
|
|
36
|
-
const m = stdout.match(regex);
|
|
37
|
-
if (m?.[0]) {
|
|
38
|
-
return parse(m[0]);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
catch (e) {
|
|
43
|
-
console.error(e);
|
|
44
|
-
return null;
|
|
45
|
-
}
|
|
46
|
-
return null;
|
|
47
|
-
};
|
package/dist/exec/rollups.d.ts
DELETED
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { type Address, type Hash, type Hex } from "viem";
|
|
2
|
-
export type RollupsDeployment = {
|
|
3
|
-
name: string;
|
|
4
|
-
address: Address;
|
|
5
|
-
consensus: Address;
|
|
6
|
-
templateHash: Hash;
|
|
7
|
-
epochLength: number;
|
|
8
|
-
state: "ENABLED" | "DISABLED";
|
|
9
|
-
};
|
|
10
|
-
type ComposeParams = {
|
|
11
|
-
projectName: string;
|
|
12
|
-
};
|
|
13
|
-
export declare const getDeployments: (options: ComposeParams) => Promise<RollupsDeployment[]>;
|
|
14
|
-
export declare const getApplicationDeployment: (options: ComposeParams) => Promise<RollupsDeployment | undefined>;
|
|
15
|
-
export declare const getApplicationAddress: (options: {
|
|
16
|
-
projectName?: string;
|
|
17
|
-
}) => Promise<Address | undefined>;
|
|
18
|
-
export declare const AVAILABLE_SERVICES: string[];
|
|
19
|
-
export declare const startEnvironment: (options: {
|
|
20
|
-
blockTime: number;
|
|
21
|
-
cpus?: number;
|
|
22
|
-
defaultBlock: string;
|
|
23
|
-
dryRun: boolean;
|
|
24
|
-
memory?: number;
|
|
25
|
-
port: number;
|
|
26
|
-
projectName: string;
|
|
27
|
-
runtimeVersion: string;
|
|
28
|
-
services: string[];
|
|
29
|
-
verbose: boolean;
|
|
30
|
-
}) => Promise<{
|
|
31
|
-
address: string;
|
|
32
|
-
config: string;
|
|
33
|
-
} | {
|
|
34
|
-
address: string;
|
|
35
|
-
config?: undefined;
|
|
36
|
-
}>;
|
|
37
|
-
/**
|
|
38
|
-
* Wait for the environment to be healthy
|
|
39
|
-
* @param options
|
|
40
|
-
*/
|
|
41
|
-
export declare const waitHealthyEnvironment: (options: {
|
|
42
|
-
name?: string;
|
|
43
|
-
port: number;
|
|
44
|
-
projectName: string;
|
|
45
|
-
services: string[];
|
|
46
|
-
}) => Promise<void>;
|
|
47
|
-
/**
|
|
48
|
-
* Publish machine snapshot to rollups node by copying it to the rollups node container
|
|
49
|
-
* @param options
|
|
50
|
-
* @returns path to the snapshot in the rollups node
|
|
51
|
-
*/
|
|
52
|
-
export declare const publishMachine: (options: {
|
|
53
|
-
projectName: string;
|
|
54
|
-
templateHash: Hash;
|
|
55
|
-
}) => Promise<string>;
|
|
56
|
-
/**
|
|
57
|
-
* Stop an environment by removing the containers and volumes
|
|
58
|
-
* @param options
|
|
59
|
-
* @returns
|
|
60
|
-
*/
|
|
61
|
-
export declare const stopEnvironment: (options: {
|
|
62
|
-
projectName: string;
|
|
63
|
-
}) => Promise<import("execa").Result<{}>>;
|
|
64
|
-
/**
|
|
65
|
-
* Deploy application to rollups node
|
|
66
|
-
* @param options
|
|
67
|
-
* @returns address of the application
|
|
68
|
-
*/
|
|
69
|
-
export declare const deployAuthority: (options: {
|
|
70
|
-
epochLength: number;
|
|
71
|
-
projectName: string;
|
|
72
|
-
}) => Promise<Address>;
|
|
73
|
-
/**
|
|
74
|
-
* Deploy application to rollups node
|
|
75
|
-
* @param options
|
|
76
|
-
* @returns address of the application
|
|
77
|
-
*/
|
|
78
|
-
export declare const deployApplication: (options: {
|
|
79
|
-
consensus?: Address;
|
|
80
|
-
epochLength: number;
|
|
81
|
-
name: string;
|
|
82
|
-
projectName: string;
|
|
83
|
-
salt?: Hex;
|
|
84
|
-
snapshotPath: string;
|
|
85
|
-
}) => Promise<RollupsDeployment>;
|
|
86
|
-
/**
|
|
87
|
-
* Remove application from rollups node
|
|
88
|
-
* @param options
|
|
89
|
-
* @returns
|
|
90
|
-
*/
|
|
91
|
-
export declare const removeApplication: (options: {
|
|
92
|
-
application: string | Address;
|
|
93
|
-
force: boolean;
|
|
94
|
-
projectName: string;
|
|
95
|
-
}) => Promise<import("execa").Result<{}>>;
|
|
96
|
-
/**
|
|
97
|
-
* Get the host and port of the docker compose project entrypoint
|
|
98
|
-
* @param options
|
|
99
|
-
* @returns port of the proxy service
|
|
100
|
-
*/
|
|
101
|
-
export declare const getProjectPort: (options: {
|
|
102
|
-
projectName: string;
|
|
103
|
-
}) => Promise<string>;
|
|
104
|
-
export {};
|
|
105
|
-
//# sourceMappingURL=rollups.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"rollups.d.ts","sourceRoot":"","sources":["../../src/exec/rollups.ts"],"names":[],"mappings":"AAKA,OAAO,EACH,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,GAAG,EAGX,MAAM,MAAM,CAAC;AASd,MAAM,MAAM,iBAAiB,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,EAAE,OAAO,CAAC;IACnB,YAAY,EAAE,IAAI,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,SAAS,GAAG,UAAU,CAAC;CACjC,CAAC;AAWF,KAAK,aAAa,GAAG;IACjB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAaF,eAAO,MAAM,cAAc,GACvB,SAAS,aAAa,KACvB,OAAO,CAAC,iBAAiB,EAAE,CAgB7B,CAAC;AAEF,eAAO,MAAM,wBAAwB,GACjC,SAAS,aAAa,KACvB,OAAO,CAAC,iBAAiB,GAAG,SAAS,CASvC,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAU,SAAS;IACjD,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB,KAAG,OAAO,CAAC,OAAO,GAAG,SAAS,CAI9B,CAAC;AA2FF,eAAO,MAAM,kBAAkB,UAA4C,CAAC;AAgC5E,eAAO,MAAM,gBAAgB,GAAU,SAAS;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;CACpB;;;;;;EAkGA,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,sBAAsB,GAAU,SAAS;IAClD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACtB,kBA4BA,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAU,SAAS;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,IAAI,CAAC;CACtB,KAAG,OAAO,CAAC,MAAM,CAajB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAU,SAAS;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,wCASrE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,GAAU,SAAS;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB,KAAG,OAAO,CAAC,OAAO,CAmBlB,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAU,SAAS;IAC7C,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;CACxB,KAAG,OAAO,CAAC,iBAAiB,CAmC5B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,GAAU,SAAS;IAC7C,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC;IAC9B,KAAK,EAAE,OAAO,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;CACvB,wCAkCA,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,GAAU,SAAS;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,oBAWpE,CAAC"}
|