Skip to content

Commit 7ffa465

Browse files
committed
test(test-suite): call addPauser in host and gateway docker compose
1 parent 98908dd commit 7ffa465

4 files changed

Lines changed: 57 additions & 1 deletion

File tree

test-suite/fhevm/docker-compose/gateway-docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,5 +65,25 @@ services:
6565
volumes:
6666
- addresses-volume:/app/addresses
6767

68+
gateway-sc-add-pausers:
69+
container_name: fhevm-gateway-sc-add-pausers
70+
image: ghcr.io/zama-ai/fhevm/gateway-contracts:${GATEWAY_VERSION}
71+
build:
72+
context: ../../../gateway-contracts
73+
dockerfile: Dockerfile
74+
cache_from:
75+
- type=gha
76+
cache_to:
77+
- type=gha,mode=max
78+
env_file:
79+
- ../env/staging/.env.gateway.local
80+
command:
81+
- npx hardhat task:addPausers
82+
depends_on:
83+
gateway-node:
84+
condition: service_started
85+
gateway-sc-deploy:
86+
condition: service_completed_successfully
87+
6888
volumes:
6989
addresses-volume:

test-suite/fhevm/docker-compose/host-docker-compose.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,23 @@ services:
3838
depends_on:
3939
host-node:
4040
condition: service_started
41+
42+
host-sc-add-pausers:
43+
container_name: fhevm-host-add-pausers
44+
image: ghcr.io/zama-ai/fhevm/host-contracts:${HOST_VERSION}
45+
build:
46+
context: ../../../host-contracts
47+
dockerfile: Dockerfile
48+
cache_from:
49+
- type=gha
50+
cache_to:
51+
- type=gha,mode=max
52+
env_file:
53+
- ../env/staging/.env.host.local
54+
command:
55+
- npx hardhat task:addPausers
56+
depends_on:
57+
host-node:
58+
condition: service_started
59+
host-sc-deploy:
60+
condition: service_completed_successfully

test-suite/fhevm/env/staging/.env.gateway

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,14 @@ HOST_CHAIN_ACL_ADDRESS_0=0x05fD9B5EFE0a996095f42Ed7e77c390810CF660c
7474
HOST_CHAIN_NAME_0=
7575
HOST_CHAIN_WEBSITE_0=
7676

77+
# =============================================================================
78+
# PAUSERS
79+
# =============================================================================
80+
NUM_PAUSERS="1"
81+
82+
# Pauser 1
83+
PAUSER_ADDRESS_0="0x34B344B40eA9Ef21Da5653468a072780d19B1fa4" # accounts[7] (address)
84+
7785
# =============================================================================
7886
# FHE PARAMETERS
7987
# =============================================================================

test-suite/fhevm/env/staging/.env.host

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,12 @@ KMS_SIGNER_ADDRESS_0=0xb575E4834b183ad6bBD5Ff57d54D1dbc678fc870
3232
# COPROCESSOR CONFIGURATION
3333
# =============================================================================
3434
NUM_COPROCESSORS=1
35-
COPROCESSOR_SIGNER_ADDRESS_0=0x6254A198F67ad40290a2E7B48aDB2d19B71f67BD
35+
COPROCESSOR_SIGNER_ADDRESS_0=0x6254A198F67ad40290a2E7B48aDB2d19B71f67BD
36+
37+
# =============================================================================
38+
# PAUSERS
39+
# =============================================================================
40+
NUM_PAUSERS="1"
41+
42+
# Pauser 1
43+
PAUSER_ADDRESS_0="0xa44366bAA26296c1409AD1e284264212029F02f1" # accounts[2] (address)

0 commit comments

Comments
 (0)