@cartesi/cli 2.0.0-alpha.2 → 2.0.0-alpha.21
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/base.d.ts +28 -0
- package/dist/base.d.ts.map +1 -0
- package/dist/base.js +109 -0
- package/dist/builder/directory.d.ts +2 -2
- package/dist/builder/directory.d.ts.map +1 -1
- package/dist/builder/directory.js +5 -3
- package/dist/builder/docker.d.ts +2 -2
- package/dist/builder/docker.d.ts.map +1 -1
- package/dist/builder/docker.js +39 -37
- package/dist/builder/empty.d.ts +1 -1
- package/dist/builder/empty.d.ts.map +1 -1
- package/dist/builder/empty.js +1 -1
- package/dist/builder/none.d.ts +1 -1
- package/dist/builder/none.d.ts.map +1 -1
- package/dist/builder/none.js +1 -1
- package/dist/builder/tar.d.ts +1 -1
- package/dist/builder/tar.d.ts.map +1 -1
- package/dist/builder/tar.js +1 -1
- package/dist/commands/address-book.d.ts +5 -8
- package/dist/commands/address-book.d.ts.map +1 -1
- package/dist/commands/address-book.js +18 -14
- package/dist/commands/build.d.ts +7 -11
- package/dist/commands/build.d.ts.map +1 -1
- package/dist/commands/build.js +82 -58
- package/dist/commands/clean.d.ts +2 -7
- package/dist/commands/clean.d.ts.map +1 -1
- package/dist/commands/clean.js +9 -10
- package/dist/commands/create.d.ts +6 -15
- package/dist/commands/create.d.ts.map +1 -1
- package/dist/commands/create.js +25 -54
- package/dist/commands/deploy/build.d.ts +2 -14
- package/dist/commands/deploy/build.d.ts.map +1 -1
- package/dist/commands/deploy/build.js +8 -61
- package/dist/commands/deploy.d.ts +3 -0
- package/dist/commands/deploy.d.ts.map +1 -0
- package/dist/commands/deploy.js +12 -0
- package/dist/commands/deposit/erc1155.d.ts +18 -0
- package/dist/commands/deposit/erc1155.d.ts.map +1 -0
- package/dist/commands/deposit/erc1155.js +254 -0
- package/dist/commands/deposit/erc20.d.ts +10 -0
- package/dist/commands/deposit/erc20.d.ts.map +1 -0
- package/dist/commands/deposit/erc20.js +125 -0
- package/dist/commands/deposit/erc721.d.ts +10 -0
- package/dist/commands/deposit/erc721.d.ts.map +1 -0
- package/dist/commands/deposit/erc721.js +143 -0
- package/dist/commands/deposit/ether.d.ts +10 -0
- package/dist/commands/deposit/ether.d.ts.map +1 -0
- package/dist/commands/deposit/ether.js +65 -0
- package/dist/commands/deposit.d.ts +9 -0
- package/dist/commands/deposit.d.ts.map +1 -0
- package/dist/commands/deposit.js +37 -0
- package/dist/commands/doctor.d.ts +2 -12
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +90 -91
- package/dist/commands/hash.d.ts +4 -9
- package/dist/commands/hash.d.ts.map +1 -1
- package/dist/commands/hash.js +14 -14
- package/dist/commands/logs.d.ts +9 -0
- package/dist/commands/logs.d.ts.map +1 -0
- package/dist/commands/logs.js +34 -0
- package/dist/commands/run.d.ts +14 -20
- package/dist/commands/run.d.ts.map +1 -1
- package/dist/commands/run.js +193 -182
- package/dist/commands/send.d.ts +10 -0
- package/dist/commands/send.d.ts.map +1 -0
- package/dist/commands/send.js +130 -0
- package/dist/commands/shell.d.ts +6 -14
- package/dist/commands/shell.d.ts.map +1 -1
- package/dist/commands/shell.js +34 -51
- package/dist/commands/status.d.ts +6 -0
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/commands/status.js +50 -0
- package/dist/compose/default.env +36 -0
- package/dist/compose/docker-compose-anvil.yaml +39 -0
- package/dist/compose/docker-compose-bundler.yaml +71 -0
- package/dist/{node → compose}/docker-compose-database.yaml +4 -2
- package/dist/compose/docker-compose-explorer.yaml +96 -0
- package/dist/compose/docker-compose-node-cpus.yaml +6 -0
- package/dist/compose/docker-compose-node-memory.yaml +6 -0
- package/dist/compose/docker-compose-node.yaml +50 -0
- package/dist/compose/docker-compose-passkey-server.yaml +37 -0
- package/dist/compose/docker-compose-paymaster.yaml +40 -0
- package/dist/compose/docker-compose-proxy.yaml +24 -0
- package/dist/config.d.ts +30 -9
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +93 -53
- package/dist/contracts.d.ts +1695 -1636
- package/dist/contracts.d.ts.map +1 -1
- package/dist/contracts.js +632 -592
- package/dist/exec/cartesi-machine.d.ts +2 -2
- package/dist/exec/cartesi-machine.d.ts.map +1 -1
- package/dist/exec/cartesi-machine.js +3 -5
- package/dist/exec/genext2fs.d.ts +6 -3
- package/dist/exec/genext2fs.d.ts.map +1 -1
- package/dist/exec/genext2fs.js +5 -5
- package/dist/exec/index.d.ts +0 -1
- package/dist/exec/index.d.ts.map +1 -1
- package/dist/exec/index.js +0 -1
- package/dist/exec/mksquashfs.d.ts +2 -2
- package/dist/exec/mksquashfs.d.ts.map +1 -1
- package/dist/exec/mksquashfs.js +4 -2
- package/dist/exec/rollups.d.ts +105 -0
- package/dist/exec/rollups.d.ts.map +1 -0
- package/dist/exec/rollups.js +375 -0
- package/dist/exec/util.d.ts +1 -16
- package/dist/exec/util.d.ts.map +1 -1
- package/dist/exec/util.js +3 -50
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +57 -1
- package/dist/machine.d.ts +8 -2
- package/dist/machine.d.ts.map +1 -1
- package/dist/machine.js +26 -16
- package/dist/prompts.d.ts +13 -2
- package/dist/prompts.d.ts.map +1 -1
- package/dist/prompts.js +60 -26
- package/dist/template.d.ts +3 -0
- package/dist/template.d.ts.map +1 -0
- package/dist/template.js +16 -0
- package/dist/wallet.d.ts +9222 -21
- package/dist/wallet.d.ts.map +1 -1
- package/dist/wallet.js +35 -198
- package/package.json +39 -57
- package/bin/dev.cmd +0 -3
- package/bin/dev.js +0 -25
- package/bin/run.cmd +0 -3
- package/bin/run.js +0 -8
- package/dist/baseCommand.d.ts +0 -22
- package/dist/baseCommand.d.ts.map +0 -1
- package/dist/baseCommand.js +0 -92
- package/dist/commands/deploy/index.d.ts +0 -12
- package/dist/commands/deploy/index.d.ts.map +0 -1
- package/dist/commands/deploy/index.js +0 -78
- package/dist/commands/send/erc20.d.ts +0 -14
- package/dist/commands/send/erc20.d.ts.map +0 -1
- package/dist/commands/send/erc20.js +0 -70
- package/dist/commands/send/erc721.d.ts +0 -14
- package/dist/commands/send/erc721.d.ts.map +0 -1
- package/dist/commands/send/erc721.js +0 -73
- package/dist/commands/send/ether.d.ts +0 -13
- package/dist/commands/send/ether.d.ts.map +0 -1
- package/dist/commands/send/ether.js +0 -32
- package/dist/commands/send/generic.d.ts +0 -15
- package/dist/commands/send/generic.d.ts.map +0 -1
- package/dist/commands/send/generic.js +0 -119
- package/dist/commands/send/index.d.ts +0 -28
- package/dist/commands/send/index.d.ts.map +0 -1
- package/dist/commands/send/index.js +0 -102
- package/dist/exec/crane.d.ts +0 -15
- package/dist/exec/crane.d.ts.map +0 -1
- package/dist/exec/crane.js +0 -17
- package/dist/flags.d.ts +0 -17
- package/dist/flags.d.ts.map +0 -1
- package/dist/flags.js +0 -28
- package/dist/node/DockerfileDeploy.txt +0 -4
- package/dist/node/default.env +0 -27
- package/dist/node/docker-compose-anvil.yaml +0 -50
- package/dist/node/docker-compose-bundler.yaml +0 -57
- package/dist/node/docker-compose-envfile.yaml +0 -4
- package/dist/node/docker-compose-explorer.yaml +0 -88
- package/dist/node/docker-compose-host.yaml +0 -30
- package/dist/node/docker-compose-paymaster.yaml +0 -33
- package/dist/node/docker-compose-prompt.yaml +0 -17
- package/dist/node/docker-compose-proxy.yaml +0 -48
- package/dist/node/docker-compose-snapshot-volume.yaml +0 -8
- package/dist/node/docker-compose-validator-cpus.yaml +0 -6
- package/dist/node/docker-compose-validator-memory.yaml +0 -6
- package/dist/node/docker-compose-validator.yaml +0 -59
- package/oclif.manifest.json +0 -876
package/dist/flags.js
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Flags } from "@oclif/core";
|
|
2
|
-
import { isAddress, isHex } from "viem";
|
|
3
|
-
// custom flag for Address, does validation
|
|
4
|
-
export const address = Flags.custom({
|
|
5
|
-
parse: async (input) => {
|
|
6
|
-
if (isAddress(input)) {
|
|
7
|
-
return input;
|
|
8
|
-
}
|
|
9
|
-
throw new Error("Invalid address");
|
|
10
|
-
},
|
|
11
|
-
});
|
|
12
|
-
// custom flag for bigint
|
|
13
|
-
export const bigint = Flags.custom({
|
|
14
|
-
parse: async (input) => BigInt(input),
|
|
15
|
-
});
|
|
16
|
-
// custom flag for string number
|
|
17
|
-
export const number = Flags.custom({
|
|
18
|
-
parse: async (input) => input,
|
|
19
|
-
});
|
|
20
|
-
// custom flag for hex string
|
|
21
|
-
export const hex = Flags.custom({
|
|
22
|
-
parse: async (input) => {
|
|
23
|
-
if (isHex(input)) {
|
|
24
|
-
return input;
|
|
25
|
-
}
|
|
26
|
-
throw new Error("Invalid hex string");
|
|
27
|
-
},
|
|
28
|
-
});
|
package/dist/node/default.env
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# cartesi/rollups-node
|
|
2
|
-
CARTESI_LOG_LEVEL="${CARTESI_LOG_LEVEL:-error}"
|
|
3
|
-
CARTESI_HTTP_ADDRESS="${CARTESI_HTTP_ADDRESS:-0.0.0.0}"
|
|
4
|
-
CARTESI_HTTP_PORT="${CARTESI_HTTP_PORT:-10000}"
|
|
5
|
-
CARTESI_FEATURE_HOST_MODE="${CARTESI_FEATURE_HOST_MODE:-false}"
|
|
6
|
-
CARTESI_FEATURE_READER_MODE_ENABLED="${CARTESI_FEATURE_READER_MODE_ENABLED:-false}"
|
|
7
|
-
CARTESI_FEATURE_DISABLE_CLAIMER="${CARTESI_FEATURE_DISABLE_CLAIMER:-false}"
|
|
8
|
-
CARTESI_FEATURE_DISABLE_MACHINE_HASH_CHECK="${CARTESI_FEATURE_DISABLE_MACHINE_HASH_CHECK:-true}"
|
|
9
|
-
CARTESI_EPOCH_LENGTH="${CARTESI_EPOCH_LENGTH:-720}"
|
|
10
|
-
CARTESI_BLOCKCHAIN_ID="${CARTESI_BLOCKCHAIN_ID:-31337}"
|
|
11
|
-
CARTESI_BLOCKCHAIN_HTTP_ENDPOINT="${CARTESI_BLOCKCHAIN_HTTP_ENDPOINT:-http://anvil:8545}"
|
|
12
|
-
CARTESI_BLOCKCHAIN_WS_ENDPOINT="${CARTESI_BLOCKCHAIN_WS_ENDPOINT:-ws://anvil:8545}"
|
|
13
|
-
CARTESI_BLOCKCHAIN_IS_LEGACY="${CARTESI_BLOCKCHAIN_IS_LEGACY:-false}"
|
|
14
|
-
CARTESI_BLOCKCHAIN_FINALITY_OFFSET="${CARTESI_BLOCKCHAIN_FINALITY_OFFSET:-0}"
|
|
15
|
-
CARTESI_BLOCKCHAIN_BLOCK_TIMEOUT="${CARTESI_BLOCKCHAIN_BLOCK_TIMEOUT:-60}"
|
|
16
|
-
CARTESI_CONTRACTS_APPLICATION_ADDRESS="${CARTESI_CONTRACTS_APPLICATION_ADDRESS:-0xab7528bb862fb57e8a2bcd567a2e929a0be56a5e}"
|
|
17
|
-
CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER="${CARTESI_CONTRACTS_INPUT_BOX_DEPLOYMENT_BLOCK_NUMBER:-22}"
|
|
18
|
-
CARTESI_CONTRACTS_HISTORY_ADDRESS="${CARTESI_CONTRACTS_HISTORY_ADDRESS:-0x325272217ae6815b494bf38ced004c5eb8a7cda7}"
|
|
19
|
-
CARTESI_CONTRACTS_AUTHORITY_ADDRESS="${CARTESI_CONTRACTS_AUTHORITY_ADDRESS:-0x58c93f83fb3304730c95aad2e360cdb88b782010}"
|
|
20
|
-
CARTESI_CONTRACTS_INPUT_BOX_ADDRESS="${CARTESI_CONTRACTS_INPUT_BOX_ADDRESS:-0x59b22D57D4f067708AB0c00552767405926dc768}"
|
|
21
|
-
CARTESI_SNAPSHOT_DIR="${CARTESI_SNAPSHOT_DIR:-/usr/share/cartesi/snapshot}"
|
|
22
|
-
CARTESI_AUTH_MNEMONIC="${CARTESI_AUTH_MNEMONIC:-test test test test test test test test test test test junk}"
|
|
23
|
-
CARTESI_POSTGRES_ENDPOINT="${CARTESI_POSTGRES_ENDPOINT:-postgres://postgres:password@database:5432/postgres}"
|
|
24
|
-
CARTESI_EXPERIMENTAL_SERVER_MANAGER_BYPASS_LOG="${CARTESI_EXPERIMENTAL_SERVER_MANAGER_BYPASS_LOG:-false}"
|
|
25
|
-
|
|
26
|
-
# server-manager
|
|
27
|
-
SM_DEADLINE_MACHINE="${SM_DEADLINE_MACHINE:-30000}"
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
services:
|
|
2
|
-
anvil:
|
|
3
|
-
image: cartesi/sdk:0.12.0-alpha.1
|
|
4
|
-
command:
|
|
5
|
-
[
|
|
6
|
-
"devnet",
|
|
7
|
-
"--block-time",
|
|
8
|
-
"${BLOCK_TIME:-5}",
|
|
9
|
-
"${ANVIL_VERBOSITY:---silent}",
|
|
10
|
-
]
|
|
11
|
-
healthcheck:
|
|
12
|
-
test: ["CMD", "eth_isready"]
|
|
13
|
-
interval: 10s
|
|
14
|
-
timeout: 1s
|
|
15
|
-
retries: 5
|
|
16
|
-
environment:
|
|
17
|
-
ANVIL_IP_ADDR: 0.0.0.0
|
|
18
|
-
ports:
|
|
19
|
-
- 8545:8545
|
|
20
|
-
|
|
21
|
-
dapp_deployer:
|
|
22
|
-
image: cartesi/sdk:0.12.0-alpha.1
|
|
23
|
-
restart: on-failure
|
|
24
|
-
depends_on:
|
|
25
|
-
anvil:
|
|
26
|
-
condition: service_started
|
|
27
|
-
command:
|
|
28
|
-
[
|
|
29
|
-
"cast",
|
|
30
|
-
"send",
|
|
31
|
-
"--rpc-url",
|
|
32
|
-
"http://anvil:8545",
|
|
33
|
-
"--private-key",
|
|
34
|
-
"0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80",
|
|
35
|
-
"0x4C11C7F82D6D56a726f9B53dd99af031AFd86BB6",
|
|
36
|
-
"deployContracts(address,address,bytes32,bytes32)",
|
|
37
|
-
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
38
|
-
"720",
|
|
39
|
-
"0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266",
|
|
40
|
-
"0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
41
|
-
"0x0000000000000000000000000000000000000000000000000000000000000000",
|
|
42
|
-
]
|
|
43
|
-
|
|
44
|
-
prompt:
|
|
45
|
-
image: debian:bookworm-slim
|
|
46
|
-
environment:
|
|
47
|
-
PROMPT_TXT_01_ANVIL: "Anvil running at http://localhost:8545"
|
|
48
|
-
|
|
49
|
-
volumes:
|
|
50
|
-
blockchain-data: {}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
services:
|
|
2
|
-
alto:
|
|
3
|
-
image: cartesi/sdk:0.12.0-alpha.1
|
|
4
|
-
command:
|
|
5
|
-
- "alto"
|
|
6
|
-
- "--entrypoints"
|
|
7
|
-
- "0x5ff137d4b0fdcd49dca30c7cf57e578a026d2789,0x0000000071727De22E5E9d8BAf0edAc6f37da032"
|
|
8
|
-
- "--log-level"
|
|
9
|
-
- "info"
|
|
10
|
-
- "--entrypoint-simulation-contract"
|
|
11
|
-
- "0x74Cb5e4eE81b86e70f9045036a1C5477de69eE87"
|
|
12
|
-
- "--rpc-url"
|
|
13
|
-
- "http://anvil:8545"
|
|
14
|
-
- "--min-executor-balance"
|
|
15
|
-
- "0"
|
|
16
|
-
- "--utility-private-key"
|
|
17
|
-
- "0xdbda1821b80551c9d65939329250298aa3472ba22feea921c0cf5d620ea67b97"
|
|
18
|
-
- "--executor-private-keys"
|
|
19
|
-
- "0x2a871d0798f97d79848a013d4936a73bf4cc922c825d33c1cf7073dff6d409c6,0x4bbbf85ce3377467afe5d46f804f221813b2bb87f24d81f60f1fcdbf7cbf4356,0x92db14e403b83dfe3df233f83dfa3a0d7096f21ca9b0d6d6b8d88b2b4ec1564e,0x8b3a350cf5c34c9194ca85829a2df0ec3153be0318b5e2d3348e872092edffba,0x47e179ec197488593b187f80a00eb0da91f1b9d0b13f8733639f19c30a34926a"
|
|
20
|
-
- "--max-block-range"
|
|
21
|
-
- "10000"
|
|
22
|
-
- "--safe-mode"
|
|
23
|
-
- "false"
|
|
24
|
-
- "--port"
|
|
25
|
-
- "4337"
|
|
26
|
-
- "--public-client-log-level"
|
|
27
|
-
- "error"
|
|
28
|
-
- "--wallet-client-log-level"
|
|
29
|
-
- "error"
|
|
30
|
-
- "--polling-interval"
|
|
31
|
-
- "100"
|
|
32
|
-
- "--enable-debug-endpoints"
|
|
33
|
-
prompt:
|
|
34
|
-
image: debian:bookworm-slim
|
|
35
|
-
environment:
|
|
36
|
-
PROMPT_TXT_06_BUNDLER: "Bundler running at http://localhost:${CARTESI_LISTEN_PORT}/bundler/rpc"
|
|
37
|
-
|
|
38
|
-
traefik-config-generator:
|
|
39
|
-
environment:
|
|
40
|
-
TRAEFIK_CONFIG_BUNDLER: |
|
|
41
|
-
http:
|
|
42
|
-
routers:
|
|
43
|
-
bundler:
|
|
44
|
-
rule: "PathPrefix(`/bundler`)"
|
|
45
|
-
middlewares:
|
|
46
|
-
- "remove-bundler-prefix"
|
|
47
|
-
service: bundler
|
|
48
|
-
middlewares:
|
|
49
|
-
remove-bundler-prefix:
|
|
50
|
-
replacePathRegex:
|
|
51
|
-
regex: "^/bundler/(.*)"
|
|
52
|
-
replacement: "/$1"
|
|
53
|
-
services:
|
|
54
|
-
bundler:
|
|
55
|
-
loadBalancer:
|
|
56
|
-
servers:
|
|
57
|
-
- url: "http://alto:4337"
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
services:
|
|
2
|
-
database_creator:
|
|
3
|
-
image: postgres:15-alpine
|
|
4
|
-
command: ["createdb", "squid"]
|
|
5
|
-
depends_on:
|
|
6
|
-
database:
|
|
7
|
-
condition: service_healthy
|
|
8
|
-
environment:
|
|
9
|
-
PGHOST: ${PGHOST:-database}
|
|
10
|
-
PGPORT: ${PGPORT:-5432}
|
|
11
|
-
PGUSER: ${PGUSER:-postgres}
|
|
12
|
-
PGPASSWORD: ${PGPASSWORD:-password}
|
|
13
|
-
PGDATABASE: ${PGDATABASE:-postgres}
|
|
14
|
-
|
|
15
|
-
explorer_api:
|
|
16
|
-
image: cartesi/rollups-explorer-api:0.5.0
|
|
17
|
-
environment:
|
|
18
|
-
DB_NAME: ${PGDATABASE:-squid}
|
|
19
|
-
DB_PORT: ${PGPORT:-5432}
|
|
20
|
-
DB_HOST: ${PGHOST:-database}
|
|
21
|
-
DB_PASS: ${PGPASSWORD:-password}
|
|
22
|
-
GQL_PORT: 4350
|
|
23
|
-
expose:
|
|
24
|
-
- 4350
|
|
25
|
-
command: ["sqd", "serve:prod"]
|
|
26
|
-
depends_on:
|
|
27
|
-
database_creator:
|
|
28
|
-
condition: service_completed_successfully
|
|
29
|
-
|
|
30
|
-
squid_processor:
|
|
31
|
-
image: cartesi/rollups-explorer-api:0.5.0
|
|
32
|
-
environment:
|
|
33
|
-
CHAIN_ID: ${CHAIN_ID:-31337}
|
|
34
|
-
RPC_URL_31337: ${RPC_URL:-http://anvil:8545}
|
|
35
|
-
BLOCK_CONFIRMATIONS_31337: 0
|
|
36
|
-
DB_NAME: ${PGDATABASE:-squid}
|
|
37
|
-
DB_PORT: ${PGPORT:-5432}
|
|
38
|
-
DB_HOST: ${PGHOST:-database}
|
|
39
|
-
DB_PASS: ${PGPASSWORD:-password}
|
|
40
|
-
command: ["sqd", "process:prod"]
|
|
41
|
-
depends_on:
|
|
42
|
-
database_creator:
|
|
43
|
-
condition: service_completed_successfully
|
|
44
|
-
|
|
45
|
-
explorer:
|
|
46
|
-
image: cartesi/rollups-explorer:0.12.0
|
|
47
|
-
expose:
|
|
48
|
-
- 3000
|
|
49
|
-
depends_on:
|
|
50
|
-
database_creator:
|
|
51
|
-
condition: service_completed_successfully
|
|
52
|
-
|
|
53
|
-
prompt:
|
|
54
|
-
image: debian:bookworm-slim
|
|
55
|
-
environment:
|
|
56
|
-
PROMPT_TXT_04_EXPLORER: "Explorer running at http://localhost:${CARTESI_LISTEN_PORT}/explorer/"
|
|
57
|
-
|
|
58
|
-
traefik-config-generator:
|
|
59
|
-
environment:
|
|
60
|
-
TRAEFIK_CONFIG_EXPLORER_API: |
|
|
61
|
-
http:
|
|
62
|
-
routers:
|
|
63
|
-
explorer-api:
|
|
64
|
-
rule: "PathPrefix(`/explorer-api`)"
|
|
65
|
-
middlewares:
|
|
66
|
-
- "remove-explorer-api-prefix"
|
|
67
|
-
service: explorer-api
|
|
68
|
-
middlewares:
|
|
69
|
-
remove-explorer-api-prefix:
|
|
70
|
-
replacePathRegex:
|
|
71
|
-
regex: "^/explorer-api/(.*)"
|
|
72
|
-
replacement: "/$1"
|
|
73
|
-
services:
|
|
74
|
-
explorer-api:
|
|
75
|
-
loadBalancer:
|
|
76
|
-
servers:
|
|
77
|
-
- url: "http://explorer_api:4350"
|
|
78
|
-
TRAEFIK_CONFIG_EXPLORER: |
|
|
79
|
-
http:
|
|
80
|
-
routers:
|
|
81
|
-
explorer:
|
|
82
|
-
rule: "PathPrefix(`/explorer`)"
|
|
83
|
-
service: explorer
|
|
84
|
-
services:
|
|
85
|
-
explorer:
|
|
86
|
-
loadBalancer:
|
|
87
|
-
servers:
|
|
88
|
-
- url: "http://explorer:3000"
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
services:
|
|
2
|
-
validator:
|
|
3
|
-
environment:
|
|
4
|
-
CARTESI_FEATURE_HOST_MODE: true
|
|
5
|
-
command: ["cartesi-rollups-node"]
|
|
6
|
-
|
|
7
|
-
traefik-config-generator:
|
|
8
|
-
environment:
|
|
9
|
-
TRAEFIK_CONFIG_HOST_RUNNER: |
|
|
10
|
-
http:
|
|
11
|
-
routers:
|
|
12
|
-
host-runner:
|
|
13
|
-
rule: "PathPrefix(`/host-runner`)"
|
|
14
|
-
middlewares:
|
|
15
|
-
- "replace-host-runner-prefix"
|
|
16
|
-
service: host-runner
|
|
17
|
-
middlewares:
|
|
18
|
-
replace-host-runner-prefix:
|
|
19
|
-
replacePathRegex:
|
|
20
|
-
regex: "^/host-runner/(.*)"
|
|
21
|
-
replacement: "/rollup/$1"
|
|
22
|
-
services:
|
|
23
|
-
host-runner:
|
|
24
|
-
loadBalancer:
|
|
25
|
-
servers:
|
|
26
|
-
- url: "http://validator:10000"
|
|
27
|
-
|
|
28
|
-
prompt:
|
|
29
|
-
environment:
|
|
30
|
-
PROMPT_TXT_05_HOST_RUNNER: "Host Runner running at http://localhost:${CARTESI_LISTEN_PORT}/host-runner"
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
services:
|
|
2
|
-
mock-verifying-paymaster:
|
|
3
|
-
image: cartesi/sdk:0.12.0-alpha.1
|
|
4
|
-
command: "mock-verifying-paymaster"
|
|
5
|
-
environment:
|
|
6
|
-
- ALTO_RPC=http://alto:4337
|
|
7
|
-
- ANVIL_RPC=http://anvil:8545
|
|
8
|
-
|
|
9
|
-
prompt:
|
|
10
|
-
image: debian:bookworm-slim
|
|
11
|
-
environment:
|
|
12
|
-
PROMPT_TXT_07_PAYMASTER: "Paymaster running at http://localhost:${CARTESI_LISTEN_PORT}/paymaster/"
|
|
13
|
-
|
|
14
|
-
traefik-config-generator:
|
|
15
|
-
environment:
|
|
16
|
-
TRAEFIK_CONFIG_PAYMASTER: |
|
|
17
|
-
http:
|
|
18
|
-
routers:
|
|
19
|
-
paymaster:
|
|
20
|
-
rule: "PathPrefix(`/paymaster`)"
|
|
21
|
-
middlewares:
|
|
22
|
-
- "remove-paymaster-prefix"
|
|
23
|
-
service: paymaster
|
|
24
|
-
middlewares:
|
|
25
|
-
remove-paymaster-prefix:
|
|
26
|
-
replacePathRegex:
|
|
27
|
-
regex: "^/paymaster/(.*)"
|
|
28
|
-
replacement: "/$1"
|
|
29
|
-
services:
|
|
30
|
-
paymaster:
|
|
31
|
-
loadBalancer:
|
|
32
|
-
servers:
|
|
33
|
-
- url: "http://mock-verifying-paymaster:3000"
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
services:
|
|
2
|
-
prompt:
|
|
3
|
-
image: debian:bookworm-slim
|
|
4
|
-
environment:
|
|
5
|
-
PROMPT_TXT_10_EXIT: "Press Ctrl+C to stop the node"
|
|
6
|
-
command:
|
|
7
|
-
- /bin/bash
|
|
8
|
-
- -c
|
|
9
|
-
- |
|
|
10
|
-
for txt_file in $${!PROMPT_TXT_*}
|
|
11
|
-
do
|
|
12
|
-
declare -n txt_content=$$txt_file
|
|
13
|
-
_txt_file=$${txt_file:11}
|
|
14
|
-
echo "$$txt_content"
|
|
15
|
-
done
|
|
16
|
-
trap exit INT TERM; sleep infinity & wait
|
|
17
|
-
working_dir: /prompt
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
services:
|
|
2
|
-
traefik-config-generator:
|
|
3
|
-
image: debian:bookworm-slim
|
|
4
|
-
command:
|
|
5
|
-
- /bin/bash
|
|
6
|
-
- -c
|
|
7
|
-
- |
|
|
8
|
-
for cfg_file in $${!TRAEFIK_CONFIG_*}
|
|
9
|
-
do
|
|
10
|
-
declare -n cfg_content=$$cfg_file
|
|
11
|
-
_cfg_file=$${cfg_file:15}
|
|
12
|
-
echo "$$cfg_content" > /etc/traefik/conf.d/$${_cfg_file,,}.yaml
|
|
13
|
-
done
|
|
14
|
-
volumes:
|
|
15
|
-
- traefik-conf:/etc/traefik/conf.d
|
|
16
|
-
|
|
17
|
-
proxy:
|
|
18
|
-
image: traefik:v2.10
|
|
19
|
-
depends_on:
|
|
20
|
-
traefik-config-generator:
|
|
21
|
-
condition: service_completed_successfully
|
|
22
|
-
healthcheck:
|
|
23
|
-
test: ["CMD", "traefik", "healthcheck", "--ping"]
|
|
24
|
-
interval: 5s
|
|
25
|
-
timeout: 1s
|
|
26
|
-
retries: 5
|
|
27
|
-
command:
|
|
28
|
-
[
|
|
29
|
-
"--ping=true",
|
|
30
|
-
"--entryPoints.web.address=:8088",
|
|
31
|
-
"--entryPoints.traefik.address=:8080",
|
|
32
|
-
"--metrics.prometheus=true",
|
|
33
|
-
"--metrics.prometheus.addServicesLabels=true",
|
|
34
|
-
"--providers.file.directory=/etc/traefik/conf.d",
|
|
35
|
-
"--providers.file.watch=true",
|
|
36
|
-
]
|
|
37
|
-
ports:
|
|
38
|
-
- ${CARTESI_LISTEN_PORT:-8080}:8088
|
|
39
|
-
volumes:
|
|
40
|
-
- traefik-conf:/etc/traefik/conf.d
|
|
41
|
-
|
|
42
|
-
prompt:
|
|
43
|
-
depends_on:
|
|
44
|
-
proxy:
|
|
45
|
-
condition: service_healthy
|
|
46
|
-
|
|
47
|
-
volumes:
|
|
48
|
-
traefik-conf: {}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
services:
|
|
2
|
-
validator:
|
|
3
|
-
image: cartesi/rollups-node:1.5.1
|
|
4
|
-
depends_on:
|
|
5
|
-
dapp_deployer:
|
|
6
|
-
condition: service_completed_successfully
|
|
7
|
-
expose:
|
|
8
|
-
- "10000"
|
|
9
|
-
healthcheck:
|
|
10
|
-
test: ["CMD", "curl", "-f", "http://localhost:10000/healthz"]
|
|
11
|
-
interval: 10s
|
|
12
|
-
timeout: 1s
|
|
13
|
-
retries: 5
|
|
14
|
-
command:
|
|
15
|
-
- /bin/bash
|
|
16
|
-
- -c
|
|
17
|
-
- |
|
|
18
|
-
mkdir -p "$CARTESI_SNAPSHOT_DIR"
|
|
19
|
-
cp --recursive /tmp/snapshot/* "$CARTESI_SNAPSHOT_DIR"
|
|
20
|
-
exec cartesi-rollups-node
|
|
21
|
-
|
|
22
|
-
env_file:
|
|
23
|
-
- ${CARTESI_BIN_PATH}/node/default.env
|
|
24
|
-
|
|
25
|
-
proxy:
|
|
26
|
-
depends_on:
|
|
27
|
-
validator:
|
|
28
|
-
condition: service_healthy
|
|
29
|
-
|
|
30
|
-
prompt:
|
|
31
|
-
image: debian:bookworm-slim
|
|
32
|
-
environment:
|
|
33
|
-
PROMPT_TXT_02_GRAPHQL: "GraphQL running at http://localhost:${CARTESI_LISTEN_PORT}/graphql"
|
|
34
|
-
PROMPT_TXT_03_INSPECT: "Inspect running at http://localhost:${CARTESI_LISTEN_PORT}/inspect/"
|
|
35
|
-
|
|
36
|
-
traefik-config-generator:
|
|
37
|
-
environment:
|
|
38
|
-
TRAEFIK_CONFIG_INSPECT_SERVER: |
|
|
39
|
-
http:
|
|
40
|
-
routers:
|
|
41
|
-
inspect_server:
|
|
42
|
-
rule: "PathPrefix(`/inspect`)"
|
|
43
|
-
service: inspect_server
|
|
44
|
-
services:
|
|
45
|
-
inspect_server:
|
|
46
|
-
loadBalancer:
|
|
47
|
-
servers:
|
|
48
|
-
- url: "http://validator:10000/inspect"
|
|
49
|
-
TRAEFIK_CONFIG_GRAPHQL_SERVER: |
|
|
50
|
-
http:
|
|
51
|
-
routers:
|
|
52
|
-
graphql_server:
|
|
53
|
-
rule: "PathPrefix(`/graphql`)"
|
|
54
|
-
service: graphql_server
|
|
55
|
-
services:
|
|
56
|
-
graphql_server:
|
|
57
|
-
loadBalancer:
|
|
58
|
-
servers:
|
|
59
|
-
- url: "http://validator:10000/graphql"
|