Skip to content

Commit

Permalink
feat: add zkevm permissionless node (#4)
Browse files Browse the repository at this point in the history
* chore: add comments

* feat: enable to generate permissionless node config

* chore: refactor dbs

* chore: refactor pool_db fn

* chore: add start_postgres_db fn

* chore: remove start_prover_db

* chore: refactor dbs fn

* chore: start_trusted_node_databases

* chore: lint

* feat: start permissionless dbs

* chore: rename trusted node config

* chore: nit

* feat: create permissionless config

* feat: generate permissionless prover config

* chore: add permissionless configs to zkevm_artifact

* feat: start permissionless prover

* feat: start permissionless rpc

* fix: typo

* fi:x typo

* fix: dbs init script issue

* chore: nit

* chore: refactor agglayer and dac dbs

* chore: nit

* chore: config update

* fix: typos

* chore: update permissionless node config

* chore: avoid renaming databases for migrations checks

* chore: for real???

* john comments
  • Loading branch information
leovct authored Mar 15, 2024
1 parent 7893c23 commit 878ae56
Show file tree
Hide file tree
Showing 5 changed files with 548 additions and 160 deletions.
59 changes: 45 additions & 14 deletions cdk-params.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,40 +50,71 @@ zkevm_l2_keystore_password: "pSnv6Dh5s9ahuzGzH9RoCDrKAMddaX3m"
# Databases
zkevm_db_postgres_port: 5432

zkevm_db_prover_user: "prover_user"
zkevm_db_prover_password: "SR5xq2KZPgvQkPDranCRhvkv6pnqfo77"
## Prover db
zkevm_db_prover_name: "prover_db"

zkevm_db_prover_hostname: "prover-db"
zkevm_db_prover_user: "prover_user"
zkevm_db_prover_password: "SR5xq2KZPgvQkPDranCRhvkv6pnqfo77"

zkevm_db_pool_user: "pool_user"
zkevm_db_pool_password: "Qso5wMcLAN3oF7EfaawzgWKUUKWM3Vov"
zkevm_permissionless_db_prover_hostname: "permissionless-prover-db"
zkevm_permissionless_db_prover_user: "permissionless_prover_user"
zkevm_permissionless_db_prover_password: "fJc3BNTnURMNtie4w3HUhtQbe7omWn23"

## Pool db
# Note: Do not change the name of the db
# https://github.com/0xPolygonHermez/zkevm-node/blob/develop/db/db.go#L19
zkevm_db_pool_name: "pool_db"

zkevm_db_pool_hostname: "pool-db"
zkevm_db_pool_user: "pool_user"
zkevm_db_pool_password: "Qso5wMcLAN3oF7EfaawzgWKUUKWM3Vov"

zkevm_db_event_user: "event_user"
zkevm_db_event_password: "rJXJN6iUAczh4oz8HRKYbVM8yC7tPeZm"
zkevm_permissionless_db_pool_hostname: "permissionless-pool-db"
zkevm_permissionless_db_pool_user: "permissionless_pool_user"
zkevm_permissionless_db_pool_password: "hkqvUnE65RvFjxaurXxNTDf4j6ozkejn"

## Event db
zkevm_db_event_name: "event_db"

zkevm_db_event_hostname: "event-db"
zkevm_db_event_user: "event_user"
zkevm_db_event_password: "rJXJN6iUAczh4oz8HRKYbVM8yC7tPeZm"

zkevm_db_state_user: "state_user"
zkevm_db_state_password: "rHTX7EpajF8zYDPatN32rH3B2pn89dmq"
zkevm_permissionless_db_event_hostname: "permissionless-event-db"
zkevm_permissionless_db_event_user: "permissionless_event_user"
zkevm_permissionless_db_event_password: "d3GSJ8dkWxtMpNbP7w4Za7dF3Gh23XwM"

## State db
# Note: Do not change the name of the db
# https://github.com/0xPolygonHermez/zkevm-node/blob/develop/db/db.go#L17
zkevm_db_state_name: "state_db"

zkevm_db_state_hostname: "state-db"
zkevm_db_state_user: "state_user"
zkevm_db_state_password: "rHTX7EpajF8zYDPatN32rH3B2pn89dmq"

zkevm_db_bridge_user: "bridge_user"
zkevm_db_bridge_password: "aXPqaRvgo5DfnTbHtpYS9rMhVpjvb6tY"
zkevm_permissionless_db_state_hostname: "permissionless-state-db"
zkevm_permissionless_db_state_user: "permissionless_state_user"
zkevm_permissionless_db_state_password: "BXeRf7Y4QgkB4Z6c7w6mtXzkdptvwixR"

## Bridge db
zkevm_db_bridge_name: "bridge_db"

zkevm_db_bridge_hostname: "bridge-db"
zkevm_db_bridge_user: "bridge_user"
zkevm_db_bridge_password: "aXPqaRvgo5DfnTbHtpYS9rMhVpjvb6tY"

zkevm_db_agglayer_user: "agglayer_user"
zkevm_db_agglayer_password: "PzycR2uB6PQv8ahj465ExvdyRLkknRNW"
## AggLayer db
zkevm_db_agglayer_name: "agglayer_db"
zkevm_db_agglayer_hostname: "agglayer-db"
zkevm_db_agglayer_user: "agglayer_user"
zkevm_db_agglayer_password: "PzycR2uB6PQv8ahj465ExvdyRLkknRNW"

zkevm_db_dac_user: "dac_user"
zkevm_db_dac_password: "PzycR2uB6PQv8ahj465ExvdyRLkknRNW"
zkevm_db_dac_name: "dac_db"
zkevm_db_dac_hostname: "dac-db"
zkevm_db_dac_user: "dac_user"
zkevm_db_dac_password: "PzycR2uB6PQv8ahj465ExvdyRLkknRNW"

zkevm_deployment_salt: "0x0000000000000000000000000000000000000000000000000000000000000001"
zkevm_l2_timelock_address:
Expand Down
Loading

0 comments on commit 878ae56

Please sign in to comment.