diff --git a/E2E-tests/config/api_config.py b/E2E-tests/config/api_config.py index 1e60beafc..c98ab3aa1 100644 --- a/E2E-tests/config/api_config.py +++ b/E2E-tests/config/api_config.py @@ -143,12 +143,8 @@ class StackApiConfig: @dataclass class ApiConfig: - chain_id: int = MISSING - genesis_committee_hash_utxo: str = MISSING - governance_authority: str = MISSING + genesis_utxo: str = MISSING atms_kind: str = MISSING - threshold_numerator: int = MISSING - threshold_denominator: int = MISSING committee_epoch_slippage: int = MISSING committee_participation_tolerance: float = MISSING max_validators: int = MISSING diff --git a/E2E-tests/config/config.json b/E2E-tests/config/config.json index d6ee949b8..624631942 100644 --- a/E2E-tests/config/config.json +++ b/E2E-tests/config/config.json @@ -1,8 +1,5 @@ { - "chain_id": 0, "atms_kind": "plain-ecdsa-secp256k1", - "threshold_numerator": 2, - "threshold_denominator": 3, "committee_epoch_slippage": 0, "committee_participation_tolerance": 0.18, "max_validators": 32, @@ -33,4 +30,4 @@ }, "block_encoding_suffix_grandpa": "5906", "block_encoding_suffix_aura": "0905" -} \ No newline at end of file +} diff --git a/E2E-tests/config/substrate/staging_nodes.json b/E2E-tests/config/substrate/staging_nodes.json index 2260e3acb..78bb201c4 100644 --- a/E2E-tests/config/substrate/staging_nodes.json +++ b/E2E-tests/config/substrate/staging_nodes.json @@ -1,8 +1,6 @@ { - "chain_id": 1, "deployment_mc_epoch": 777, - "genesis_committee_hash_utxo": "4e65eddc6132c1b9891d43f9d67a4a0a7b6e614b648f59dc97538f3f23eb96bf#1", - "governance_authority": "0x1f0977bc0f57c67ca6d77296c1b575fe05a6dc2c5fa38056ba63c50c", + "genesis_utxo": "de7b8efb08243b770be30cfa22a9ed64317c50052bb4394392960ddcc9810048#1", "deployment_version": "v1.4.0", "test_environment": "staging", "nodes_config": { @@ -153,4 +151,4 @@ "trustless_candidates_number": 4 } } -} \ No newline at end of file +} diff --git a/E2E-tests/config/substrate/staging_stack.json b/E2E-tests/config/substrate/staging_stack.json index 7f16a3b10..d2252fd63 100644 --- a/E2E-tests/config/substrate/staging_stack.json +++ b/E2E-tests/config/substrate/staging_stack.json @@ -18,11 +18,11 @@ "ssh": "${stack_config[ssh]}" }, "sidechain_main_cli": { - "cli": "/tools/partner-chains-smart-contracts-6.2.2/pc-contracts-cli", + "cli": "/tools/partner-chains-smart-contracts-7.0.1/pc-contracts-cli", "ssh": "${stack_config[ssh]}" }, "generate_signatures_cli": { - "cli": "/tools/v1.3.0-rc1/partner-chains-node", + "cli": "/tools/partner-chains-node", "ssh": "${stack_config[ssh]}" }, "bech32": { diff --git a/E2E-tests/docs/run-tests-on-new-env.md b/E2E-tests/docs/run-tests-on-new-env.md index 66353adf0..ae2d57c5c 100644 --- a/E2E-tests/docs/run-tests-on-new-env.md +++ b/E2E-tests/docs/run-tests-on-new-env.md @@ -9,7 +9,7 @@ * [partner-chains-node](https://github.com/input-output-hk/partner-chains) and [pc-contracts-cli](https://github.com/input-output-hk/partner-chains-smart-contracts) (running locally OR on the remote tools host) * cardano-cli (from a local cardano-node OR on the remote tools host) -**NOTE:** +**NOTE:** - `` is a placeholder for a your environment name - `` is a placeholder for partner chain node name @@ -38,11 +38,9 @@ Add payment signing key of the governance authority as `init.skey` to `secrets/< #### `_nodes.json` structure: -- `chain_id` - partner chain id from `sidechain_getParams()` - `deployment_mc_epoch` - mainchain epoch when partner chain was deployed - `initial_pc_epoch` - first partner chain epoch number -- `governance_authority` - governance authority key from `sidechain_getParams()` -- `genesis_committee_hash_utxo` - genesis committee utxo from `sidechain_getParams()` +- `genesis_utxo` - genesis utxo from `sidechain_getParams()` - `deployment_version` - release version of partner chains - `test_environment` - name of your environment - `nodes_config` - list of node configurations for partner chain @@ -89,8 +87,7 @@ E.g. for Cardano Preview it will be: ``` { "deployment_mc_epoch": , - "genesis_committee_hash_utxo": , - "governance_authority": , + "genesis_utxo": , "committee_participation_tolerance": , "main_chain": { "network": , @@ -243,4 +240,4 @@ where: * `-m` - pytest markers to filter tests for execution * `-vv` - pytest parameter to show duration of tests * `-s` - pytest parameter to show test output to console -* `-rP` - pytest parameter to show skipped tests \ No newline at end of file +* `-rP` - pytest parameter to show skipped tests diff --git a/E2E-tests/src/sidechain_main_cli.py b/E2E-tests/src/sidechain_main_cli.py index 708327d04..9eaa29956 100644 --- a/E2E-tests/src/sidechain_main_cli.py +++ b/E2E-tests/src/sidechain_main_cli.py @@ -50,11 +50,7 @@ def get_signatures( ): get_signatures_cmd = ( f"{self.generate_signatures_cli} registration-signatures " - f"--chain-id {self.config.chain_id} " - f"--genesis-committee-utxo {self.config.genesis_committee_hash_utxo} " - f"--threshold-numerator {self.config.threshold_numerator} " - f"--threshold-denominator {self.config.threshold_denominator} " - f"--governance-authority {self.config.governance_authority} " + f"--genesis-utxo {self.config.genesis_utxo} " f"--mainchain-signing-key {spo_signing_key} " f"--sidechain-signing-key {sidechain_signing_key} " f"--registration-utxo {sidechain_registration_utxo}" @@ -110,11 +106,7 @@ def register_candidate(self, signatures: RegistrationSignatures, payment_key, sp register_cmd = ( f"{self.cli} register " f"--payment-signing-key-file {payment_key} " - f"--sidechain-id {self.config.chain_id} " - f"--genesis-committee-hash-utxo {self.config.genesis_committee_hash_utxo} " - f"--governance-authority {self.config.governance_authority} " - f"--threshold-numerator {self.config.threshold_numerator} " - f"--threshold-denominator {self.config.threshold_denominator} " + f"--genesis-utxo {self.config.genesis_utxo} " "--ada-based-staking " f"--spo-public-key {spo_public_key} " f"--sidechain-public-keys {signatures.sidechain_public_keys} " @@ -141,11 +133,7 @@ def deregister_candidate(self, payment_key, spo_public_key): deregister_cmd = ( f"{self.cli} deregister " f"--payment-signing-key-file {payment_key} " - f"--sidechain-id {self.config.chain_id} " - f"--genesis-committee-hash-utxo {self.config.genesis_committee_hash_utxo} " - f"--governance-authority {self.config.governance_authority} " - f"--threshold-numerator {self.config.threshold_numerator} " - f"--threshold-denominator {self.config.threshold_denominator} " + f"--genesis-utxo {self.config.genesis_utxo} " "--ada-based-staking " f"--spo-public-key {spo_public_key} " f"--ogmios-host {self.config.stack_config.ogmios_host} " @@ -172,11 +160,7 @@ def update_permissioned_candidates(self, governance_key, add_candidates_list, re update_candidates_cmd = ( f"{self.cli} update-permissioned-candidates " f"--payment-signing-key-file {governance_key} " - f"--threshold-numerator {self.config.threshold_numerator} " - f"--threshold-denominator {self.config.threshold_denominator} " - f"--genesis-committee-hash-utxo {self.config.genesis_committee_hash_utxo} " - f"--sidechain-id {self.config.chain_id} " - f"--governance-authority {self.config.governance_authority} " + f"--genesis-utxo {self.config.genesis_utxo} " f"--ogmios-host {self.config.stack_config.ogmios_host} " f"--ogmios-port {self.config.stack_config.ogmios_port} " f"--kupo-host {self.config.stack_config.kupo_host} " diff --git a/E2E-tests/tests/test_smoke.py b/E2E-tests/tests/test_smoke.py index f64357b99..0af23fe60 100644 --- a/E2E-tests/tests/test_smoke.py +++ b/E2E-tests/tests/test_smoke.py @@ -96,6 +96,4 @@ def test_get_params(self, api: BlockchainApi, config: ApiConfig): * check that the return data is equal to the config values """ params = api.get_params() - assert params["chainId"] == config.chain_id, "Chain ID mismatch" - assert params["genesisCommitteeUtxo"] == config.genesis_committee_hash_utxo, "Genesis committee hash mismatch" - assert params["governanceAuthority"] == config.governance_authority, "Governance authority mismatch" + assert params["genesis_utxo"] == config.genesis_utxo, "Genesis UTXO mismatch" diff --git a/dev/local-environment/.env.bak b/dev/local-environment/.env.bak new file mode 100644 index 000000000..21c582cee --- /dev/null +++ b/dev/local-environment/.env.bak @@ -0,0 +1,28 @@ +POSTGRES_PORT=5432 +POSTGRES_PASSWORD=postgres +OGMIOS_PORT=1337 +KUPO_PORT=1442 +CPU_PARTNER_CHAINS_NODE=0.000 +MEM_PARTNER_CHAINS_NODE=1000G +CPU_CARDANO=0.000 +MEM_CARDANO=1000G +CPU_POSTGRES=0.000 +MEM_POSTGRES=1000G +CPU_DBSYNC=0.000 +MEM_DBSYNC=1000G +CPU_OGMIOS=0.000 +MEM_OGMIOS=1000G +CPU_KUPO=0.000 +MEM_KUPO=1000G +ARTIFACT_OVERRIDE=no +CARDANO_IMAGE=ghcr.io/intersectmbo/cardano-node:10.1.2 +DBSYNC_IMAGE=ghcr.io/intersectmbo/cardano-db-sync:13.5.0.2 +KUPO_IMAGE=cardanosolutions/kupo:v2.9.0 +OGMIOS_IMAGE=cardanosolutions/ogmios:v6.8.0 +POSTGRES_IMAGE=postgres:15.3 +SIDECHAIN_MAIN_CLI_IMAGE=node:22-bookworm +TESTS_IMAGE=python:3.10-slim +PARTNER_CHAINS_NODE_IMAGE=ghcr.io/input-output-hk/partner-chains/partner-chains-node:v1.3.0 +PC_CONTRACTS_CLI_ZIP_URL=https://github.com/input-output-hk/partner-chains-smart-contracts/releases/download/v6.2.2/pc-contracts-cli-v6.2.2.zip +PARTNER_CHAINS_NODE_URL=https://github.com/input-output-hk/partner-chains/releases/download/v1.3.0/partner-chains-node-v1.3.0-x86_64-linux +PARTNER_CHAINS_CLI_URL=https://github.com/input-output-hk/partner-chains/releases/download/v1.3.0/partner-chains-cli-v1.3.0-x86_64-linux diff --git a/dev/local-environment/docker-compose.yml.bak b/dev/local-environment/docker-compose.yml.bak new file mode 100644 index 000000000..3663d36b7 --- /dev/null +++ b/dev/local-environment/docker-compose.yml.bak @@ -0,0 +1,392 @@ +services: + + cardano-node-1: + container_name: cardano-node-1 + image: ${CARDANO_IMAGE} + platform: linux/amd64 + volumes: + - cardano-node-1-data:/data + - shared-volume:/shared + - ./configurations/busybox:/busybox + - ./configurations/pc-contracts-cli:/pc-contracts-cli + - ./configurations/cardano/cardano-node-1/entrypoint.sh:/entrypoint.sh + - ./configurations/cardano/cardano-node-1/topology-pool1.json:/shared/node-1-topology.json + - ./configurations/cardano/cardano-node-1/keys/cold.vkey:/keys/cold.vkey + - ./configurations/cardano/cardano-node-1/keys/kes.skey:/keys/kes.skey + - ./configurations/cardano/cardano-node-1/keys/vrf.skey:/keys/vrf.skey + - ./configurations/cardano/cardano-node-1/keys/funded_address.skey:/keys/funded_address.skey + - ./configurations/cardano/cardano-node-1/keys/funded_address.vkey:/keys/funded_address.vkey + - ./configurations/cardano/cardano-node-1/keys/op.cert:/keys/node.cert + - ./configurations/cardano/cardano-node-1/config-pool1.json:/shared/node-1-config.json.base + - ./configurations/cardano/cardano-node-2/config-pool2.json:/shared/node-2-config.json.base + - ./configurations/cardano/cardano-node-3/config-pool3.json:/shared/node-3-config.json.base + - ./configurations/db-sync/config.json:/shared/db-sync-config.json.base + - ./configurations/genesis/byron/genesis.json:/shared/byron/genesis.json.base + - ./configurations/genesis/shelley/genesis.json:/shared/shelley/genesis.json.base + - ./configurations/genesis/shelley/genesis.alonzo.json:/shared/shelley/genesis.alonzo.json.base + - ./configurations/genesis/shelley/genesis-utxo.addr:/shared/shelley/genesis-utxo.addr + - ./configurations/genesis/shelley/genesis-utxo.skey:/shared/shelley/genesis-utxo.skey + - ./configurations/genesis/shelley/genesis-utxo.vkey:/shared/shelley/genesis-utxo.vkey + - ./configurations/genesis/conway/genesis.conway.json:/shared/conway/genesis.conway.json.base + environment: + - CARDANO_NODE_SOCKET_PATH=/data/node.socket + entrypoint: ["/bin/bash", "/entrypoint.sh"] + ports: + - "32000:32000" + + cardano-node-2: + container_name: cardano-node-2 + image: ${CARDANO_IMAGE} + platform: linux/amd64 + volumes: + - cardano-node-2-data:/data + - shared-volume:/shared + - ./configurations/busybox:/busybox + - ./configurations/cardano/cardano-node-2/entrypoint.sh:/entrypoint.sh + - ./configurations/cardano/cardano-node-2/topology-pool2.json:/shared/node-2-topology.json + - ./configurations/cardano/cardano-node-2/keys/cold.vkey:/keys/cold.vkey + - ./configurations/cardano/cardano-node-2/keys/kes.skey:/keys/kes.skey + - ./configurations/cardano/cardano-node-2/keys/vrf.skey:/keys/vrf.skey + - ./configurations/cardano/cardano-node-2/keys/op.cert:/keys/node.cert + environment: + - CARDANO_NODE_SOCKET_PATH=/data/node.socket + entrypoint: ["/bin/bash", "/entrypoint.sh"] + ports: + - "32005:32005" + + cardano-node-3: + container_name: cardano-node-3 + image: ${CARDANO_IMAGE} + platform: linux/amd64 + volumes: + - cardano-node-3-data:/data + - shared-volume:/shared + - ./configurations/busybox:/busybox + - ./configurations/cardano/cardano-node-3/entrypoint.sh:/entrypoint.sh + - ./configurations/cardano/cardano-node-3/topology-pool3.json:/shared/node-3-topology.json + - ./configurations/cardano/cardano-node-3/keys/cold.vkey:/keys/cold.vkey + - ./configurations/cardano/cardano-node-3/keys/kes.skey:/keys/kes.skey + - ./configurations/cardano/cardano-node-3/keys/vrf.skey:/keys/vrf.skey + - ./configurations/cardano/cardano-node-3/keys/op.cert:/keys/node.cert + environment: + - CARDANO_NODE_SOCKET_PATH=/data/node.socket + entrypoint: ["/bin/bash", "/entrypoint.sh"] + ports: + - "32010:32010" + + ogmios: + container_name: ogmios + image: ${OGMIOS_IMAGE} + platform: linux/amd64 + entrypoint: ["/bin/sh", "/entrypoint.sh"] + environment: + - DATA_DIR=/data + - OGMIOS_PORT=${OGMIOS_PORT} + volumes: + - shared-volume:/shared + - ogmios-data:/data + - cardano-node-1-data:/node-ipc + - ./configurations/ogmios/entrypoint.sh:/entrypoint.sh + - ./configurations/busybox:/busybox + ports: + - "${OGMIOS_PORT}:${OGMIOS_PORT}" + healthcheck: + disable: true + deploy: + resources: + limits: + cpus: ${CPU_OGMIOS:-} + memory: ${MEM_OGMIOS:-} + + kupo: + container_name: kupo + image: ${KUPO_IMAGE} + platform: linux/amd64 + entrypoint: ["/bin/sh", "/entrypoint.sh"] + volumes: + - shared-volume:/shared + - cardano-node-1-data:/node-ipc + - kupo-workdir:/kupo-workdir + - ./configurations/kupo/entrypoint.sh:/entrypoint.sh + - ./configurations/busybox:/busybox + ports: + - "${KUPO_PORT}:1442" + healthcheck: + disable: true + deploy: + resources: + limits: + cpus: ${CPU_KUPO:-} + memory: ${MEM_KUPO:-} + + db-sync: + container_name: db-sync + image: ${DBSYNC_IMAGE} + platform: linux/amd64 + volumes: + - shared-volume:/shared + - db-sync-state-dir:/var/lib + - cardano-node-1-data:/node-ipc + - ./configurations/busybox:/busybox + - ./configurations/db-sync/entrypoint.sh:/entrypoint.sh + entrypoint: ["/bin/bash", "/entrypoint.sh"] + command: > + --config /shared/db-sync-config.json + --socket-path /node-ipc/node.socket + environment: + - POSTGRES_HOST=postgres + - POSTGRES_USER=postgres + - POSTGRES_DB=cexplorer + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - POSTGRES_PORT=${POSTGRES_PORT} + restart: always + deploy: + resources: + limits: + cpus: ${CPU_DBSYNC:-} + memory: ${MEM_DBSYNC:-} + + postgres: + container_name: postgres + image: ${POSTGRES_IMAGE} + platform: linux/amd64 + command: postgres -c maintenance_work_mem=256MB -p ${POSTGRES_PORT} + environment: + - POSTGRES_USER=postgres + - POSTGRES_PASSWORD=${POSTGRES_PASSWORD} + - PGDATA=/pgdata + - POSTGRES_HOST_AUTH_METHOD=trust + - POSTGRES_MULTIPLE_DATABASES=cexplorer,qa_demo + ports: + - "${POSTGRES_PORT}:${POSTGRES_PORT}" + volumes: + - ./configurations/postgres/entrypoint.sh:/usr/local/bin/custom-entrypoint.sh + - ./configurations/postgres/init.sh:/docker-entrypoint-initdb.d/init.sh + deploy: + resources: + limits: + cpus: ${CPU_POSTGRES:-} + memory: ${MEM_POSTGRES:-} + partner-chains-node-1: + container_name: partner-chains-node-1 + image: 689191102645.dkr.ecr.eu-central-1.amazonaws.com/substrate-node:d51491fa31b6b2d936ce7f5695bc4c686eea3b98 + platform: linux/amd64 + volumes: + - shared-volume:/shared + - partner-chains-node-1-data:/data + - ./configurations/partner-chains-nodes/partner-chains-node-1/entrypoint.sh:/entrypoint.sh + environment: + DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer" + SIDECHAIN_BLOCK_BENEFICIARY: "0000000000000000000000000000000000000000000000000000000000000001" + CHAIN_ID: "0" + GENESIS_COMMITTEE_UTXO: "781cb948a37c7c38b43872af9b1e22135a94826eafd3740260a6db0a303885d8#0" + GOVERNANCE_AUTHORITY: "e8c300330fe315531ca89d4a2e7d0c80211bc70b473b1ed4979dff2b" + CARDANO_SECURITY_PARAMETER: "5" + CARDANO_ACTIVE_SLOTS_COEFF: "0.4" + MC__FIRST_EPOCH_NUMBER: "0" + MC__FIRST_SLOT_NUMBER: "0" + MC__EPOCH_DURATION_MILLIS: "120000" + THRESHOLD_NUMERATOR: "2" + THRESHOLD_DENOMINATOR: "3" + BLOCK_STABILITY_MARGIN: "0" + MINIMUM_MC_EPOCH: "0" + entrypoint: ["/bin/bash", "/entrypoint.sh"] + ports: + - "30333:30333" + - "9933:9933" + - "9615:9615" + restart: always + deploy: + resources: + limits: + cpus: ${CPU_PARTNER_CHAINS_NODE:-} + memory: ${MEM_PARTNER_CHAINS_NODE:-} + + partner-chains-node-2: + container_name: partner-chains-node-2 + image: 689191102645.dkr.ecr.eu-central-1.amazonaws.com/substrate-node:d51491fa31b6b2d936ce7f5695bc4c686eea3b98 + platform: linux/amd64 + volumes: + - partner-chains-node-2-data:/data + - shared-volume:/shared + - ./configurations/partner-chains-nodes/partner-chains-node-2/entrypoint.sh:/entrypoint.sh + environment: + DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer" + SIDECHAIN_BLOCK_BENEFICIARY: "0000000000000000000000000000000000000000000000000000000000000002" + CHAIN_ID: "0" + GENESIS_COMMITTEE_UTXO: "781cb948a37c7c38b43872af9b1e22135a94826eafd3740260a6db0a303885d8#0" + GOVERNANCE_AUTHORITY: "e8c300330fe315531ca89d4a2e7d0c80211bc70b473b1ed4979dff2b" + CARDANO_SECURITY_PARAMETER: "5" + CARDANO_ACTIVE_SLOTS_COEFF: "0.4" + MC__FIRST_EPOCH_NUMBER: "0" + MC__FIRST_SLOT_NUMBER: "0" + MC__EPOCH_DURATION_MILLIS: "120000" + THRESHOLD_NUMERATOR: "2" + THRESHOLD_DENOMINATOR: "3" + BLOCK_STABILITY_MARGIN: "0" + MINIMUM_MC_EPOCH: "0" + entrypoint: ["/bin/bash", "/entrypoint.sh"] + ports: + - "30334:30334" + - "9934:9934" + - "9616:9616" + restart: always + deploy: + resources: + limits: + cpus: ${CPU_PARTNER_CHAINS_NODE:-} + memory: ${MEM_PARTNER_CHAINS_NODE:-} + + partner-chains-node-3: + container_name: partner-chains-node-3 + image: 689191102645.dkr.ecr.eu-central-1.amazonaws.com/substrate-node:d51491fa31b6b2d936ce7f5695bc4c686eea3b98 + platform: linux/amd64 + volumes: + - partner-chains-node-3-data:/data + - shared-volume:/shared + - ./configurations/partner-chains-nodes/partner-chains-node-3/entrypoint.sh:/entrypoint.sh + environment: + DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer" + SIDECHAIN_BLOCK_BENEFICIARY: "0000000000000000000000000000000000000000000000000000000000000003" + GOVERNANCE_AUTHORITY: "e8c300330fe315531ca89d4a2e7d0c80211bc70b473b1ed4979dff2b" + CHAIN_ID: "0" + GENESIS_COMMITTEE_UTXO: "781cb948a37c7c38b43872af9b1e22135a94826eafd3740260a6db0a303885d8#0" + CARDANO_SECURITY_PARAMETER: "5" + CARDANO_ACTIVE_SLOTS_COEFF: "0.4" + MC__FIRST_EPOCH_NUMBER: "0" + MC__FIRST_SLOT_NUMBER: "0" + MC__EPOCH_DURATION_MILLIS: "120000" + THRESHOLD_NUMERATOR: "2" + THRESHOLD_DENOMINATOR: "3" + BLOCK_STABILITY_MARGIN: "0" + MINIMUM_MC_EPOCH: "0" + entrypoint: ["/bin/bash", "/entrypoint.sh"] + ports: + - "30335:30335" + - "9935:9935" + - "9617:9617" + restart: always + deploy: + resources: + limits: + cpus: ${CPU_PARTNER_CHAINS_NODE:-} + memory: ${MEM_PARTNER_CHAINS_NODE:-} + + partner-chains-node-4: + container_name: partner-chains-node-4 + image: 689191102645.dkr.ecr.eu-central-1.amazonaws.com/substrate-node:d51491fa31b6b2d936ce7f5695bc4c686eea3b98 + platform: linux/amd64 + volumes: + - partner-chains-node-4-data:/data + - shared-volume:/shared + - ./configurations/partner-chains-nodes/partner-chains-node-4/entrypoint.sh:/entrypoint.sh + - ./configurations/partner-chains-nodes/partner-chains-node-4/keystore:/keystore + - ./configurations/partner-chains-nodes/partner-chains-node-4/network:/network + environment: + DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer" + SIDECHAIN_BLOCK_BENEFICIARY: "0000000000000000000000000000000000000000000000000000000000000004" + GOVERNANCE_AUTHORITY: "e8c300330fe315531ca89d4a2e7d0c80211bc70b473b1ed4979dff2b" + CHAIN_ID: "0" + GENESIS_COMMITTEE_UTXO: "781cb948a37c7c38b43872af9b1e22135a94826eafd3740260a6db0a303885d8#0" + CARDANO_SECURITY_PARAMETER: "5" + CARDANO_ACTIVE_SLOTS_COEFF: "0.4" + MC__FIRST_EPOCH_NUMBER: "0" + MC__FIRST_SLOT_NUMBER: "0" + MC__EPOCH_DURATION_MILLIS: "120000" + THRESHOLD_NUMERATOR: "2" + THRESHOLD_DENOMINATOR: "3" + BLOCK_STABILITY_MARGIN: "0" + MINIMUM_MC_EPOCH: "0" + entrypoint: ["/bin/bash", "/entrypoint.sh"] + ports: + - "30336:30336" + - "9936:9936" + - "9618:9618" + restart: always + deploy: + resources: + limits: + cpus: ${CPU_PARTNER_CHAINS_NODE:-} + memory: ${MEM_PARTNER_CHAINS_NODE:-} + + partner-chains-node-5: + container_name: partner-chains-node-5 + image: 689191102645.dkr.ecr.eu-central-1.amazonaws.com/substrate-node:d51491fa31b6b2d936ce7f5695bc4c686eea3b98 + platform: linux/amd64 + volumes: + - partner-chains-node-5-data:/data + - shared-volume:/shared + - ./configurations/partner-chains-nodes/partner-chains-node-5/entrypoint.sh:/entrypoint.sh + - ./configurations/partner-chains-nodes/partner-chains-node-5/keystore:/keystore + - ./configurations/partner-chains-nodes/partner-chains-node-5/network:/network + environment: + DB_SYNC_POSTGRES_CONNECTION_STRING: "postgres://postgres:${POSTGRES_PASSWORD}@postgres:${POSTGRES_PORT}/cexplorer" + SIDECHAIN_BLOCK_BENEFICIARY: "0000000000000000000000000000000000000000000000000000000000000005" + GOVERNANCE_AUTHORITY: "e8c300330fe315531ca89d4a2e7d0c80211bc70b473b1ed4979dff2b" + CHAIN_ID: "0" + GENESIS_COMMITTEE_UTXO: "781cb948a37c7c38b43872af9b1e22135a94826eafd3740260a6db0a303885d8#0" + CARDANO_SECURITY_PARAMETER: "5" + CARDANO_ACTIVE_SLOTS_COEFF: "0.4" + MC__FIRST_EPOCH_NUMBER: "0" + MC__FIRST_SLOT_NUMBER: "0" + MC__EPOCH_DURATION_MILLIS: "120000" + THRESHOLD_NUMERATOR: "2" + THRESHOLD_DENOMINATOR: "3" + BLOCK_STABILITY_MARGIN: "0" + MINIMUM_MC_EPOCH: "0" + entrypoint: ["/bin/bash", "/entrypoint.sh"] + ports: + - "30337:30337" + - "9937:9937" + - "9619:9619" + restart: always + deploy: + resources: + limits: + cpus: ${CPU_PARTNER_CHAINS_NODE:-} + memory: ${MEM_PARTNER_CHAINS_NODE:-} + + pc-contracts-cli: + container_name: pc-contracts-cli + image: ${SIDECHAIN_MAIN_CLI_IMAGE} + platform: linux/amd64 + volumes: + - shared-volume:/shared + - cardano-node-1-data:/data + - ./configurations/genesis/shelley/genesis-utxo.skey:/shared/shelley/genesis-utxo.skey + - ./configurations/cardano/cardano-node-1/keys/funded_address.skey:/keys/funded_address.skey + - ./configurations/cardano/cardano-node-1/keys/funded_address.vkey:/keys/funded_address.vkey + - ./configurations/cardano/cardano-node-1/keys/owner-stake.skey:/keys/owner-stake.skey + - ./configurations/pc-contracts-cli/entrypoint.sh:/entrypoint.sh + - ./configurations/pc-contracts-cli/overrides:/overrides/ + - ./configurations/partner-chains-nodes/:/partner-chains-nodes/ + environment: + - CARDANO_NODE_SOCKET_PATH=/data/node.socket + - GENESIS_COMMITTEE_UTXO=781cb948a37c7c38b43872af9b1e22135a94826eafd3740260a6db0a303885d8#0 + - GOVERNANCE_AUTHORITY=e8c300330fe315531ca89d4a2e7d0c80211bc70b473b1ed4979dff2b + - COMMITTEE_CANDIDATE_ADDRESS=addr_test1wprv57gwyty4v6xa9dju0ezudwqxekwdjdkjg2ytpkye9xcf8lw2p + - CHAIN_ID=0 + - THRESHOLD_NUMERATOR=2 + - THRESHOLD_DENOMINATOR=3 + - KUPO_PORT=${KUPO_PORT} + - OGMIOS_PORT=${OGMIOS_PORT} + - ARTIFACT_OVERRIDE=${ARTIFACT_OVERRIDE} + - PC_CONTRACTS_CLI_ZIP_URL=${PC_CONTRACTS_CLI_ZIP_URL} + - PARTNER_CHAINS_NODE_URL=${PARTNER_CHAINS_NODE_URL} + - PARTNER_CHAINS_CLI_URL=${PARTNER_CHAINS_CLI_URL} + entrypoint: ["/bin/bash", "/entrypoint.sh"] + +volumes: + cardano-node-1-data: {} + cardano-node-2-data: {} + cardano-node-3-data: {} + shared-volume: {} + db-sync-state-dir: {} + partner-chains-node-1-data: {} + partner-chains-node-2-data: {} + partner-chains-node-3-data: {} + partner-chains-node-4-data: {} + partner-chains-node-5-data: {} + ogmios-data: {} + ipc: {} + kupo-workdir: {}