mirror of
https://github.com/logos-messaging/logos-messaging-nim.git
synced 2026-01-02 14:03:06 +00:00
* update RLN contract abi functions and procs * Clean up debugging lines * Use more descriptive object field names for MembershipInfo * Fix formatting * fix group_manager after rebase to use new contract method sig * Fix linting for group_manager.nim * Test idcommitment to BE and debug logs * Improve IdCommitment logging * Update all keystore credentials to use BE format * Add workaround for groupmanager web3 eth_call * Add await to sendEthCallWithChainID * Add error handling for failed eth_call * Improve error handling for eth_call workaround * Revert keystore credentials back to using LE * Update toRateCommitment proc to use LE instead of BE * Add IdCommitment to calldata as BE * feat: Update rln contract deployment and tests (#3408) * update RLN contract abi functions and procs * update waku-rlnv2-contract submodule commit to latest * Add RlnV2 contract deployment using forge scripts * Clean up output of forge script command, debug logs to trace, warn to error * Move TestToken deployment to own proc * first implementation of token minting and approval * Update rln tests with usermessagelimit new minimum * Clean up code and error handling * Rework RLN tests WIP * Fix RLN test for new contract * RLN Tests updated * Fix formatting * Improve error logs * Fix error message formatting * Fix linting * Add pnpm dependency installation for rln tests * Update test dependencies in makefile * Minor updates, error messages etc * Code cleanup and change some debug logging to trace * Improve handling of Result return value * Use absolute path for waku-rlnv2-contract * Simplify token approval and balance check * Remove unused Anvil options * Add additional checks for stopAnvil process * Fix anvil process call to null * Add lock to tests for rln_group_manager_onchain * Debug for forge command * Verify paths * Install pnpm as global * Cleanup anvil running procs * Add check before installing anvil * CLean up onchain group_manager * Add proc to setup environment for contract deployer * Refactoring and improved error handling * Fix anvil install directory string * Fix linting in test_range_split * Add const for the contract address length * Add separate checks for why Approval transaction fails * Update RLN contract address and chainID for TWN
114 lines
3.5 KiB
YAML
114 lines
3.5 KiB
YAML
|
|
x-logging: &logging
|
|
logging:
|
|
driver: json-file
|
|
options:
|
|
max-size: 1000m
|
|
|
|
# Environment variable definitions
|
|
x-rln-relay-eth-client-address: &rln_relay_eth_client_address ${RLN_RELAY_ETH_CLIENT_ADDRESS:-} # Add your RLN_RELAY_ETH_CLIENT_ADDRESS after the "-"
|
|
|
|
x-rln-environment: &rln_env
|
|
RLN_RELAY_CONTRACT_ADDRESS: ${RLN_RELAY_CONTRACT_ADDRESS:-0xB9cd878C90E49F797B4431fBF4fb333108CB90e6}
|
|
RLN_RELAY_CRED_PATH: ${RLN_RELAY_CRED_PATH:-} # Optional: Add your RLN_RELAY_CRED_PATH after the "-"
|
|
RLN_RELAY_CRED_PASSWORD: ${RLN_RELAY_CRED_PASSWORD:-} # Optional: Add your RLN_RELAY_CRED_PASSWORD after the "-"
|
|
|
|
x-sonda-env: &sonda_env
|
|
METRICS_PORT: ${METRICS_PORT:-8004}
|
|
NODE_REST_ADDRESS: ${NODE_REST_ADDRESS:-"http://nwaku:8645"}
|
|
CLUSTER_ID: ${CLUSTER_ID:-1}
|
|
SHARD: ${SHARD:-0}
|
|
STORE_NODES: ${STORE_NODES:-}
|
|
QUERY_DELAY: ${QUERY_DELAY-60}
|
|
HEALTH_THRESHOLD: ${HEALTH_THRESHOLD-5}
|
|
|
|
# Services definitions
|
|
services:
|
|
nwaku:
|
|
image: ${NWAKU_IMAGE:-harbor.status.im/wakuorg/nwaku:deploy-status-prod}
|
|
container_name: nwaku
|
|
restart: on-failure
|
|
ports:
|
|
- 30304:30304/tcp
|
|
- 30304:30304/udp
|
|
- 9005:9005/udp
|
|
- 127.0.0.1:8003:8003
|
|
- 80:80 #Let's Encrypt
|
|
- 8000:8000/tcp #WSS
|
|
- 127.0.0.1:8645:8645
|
|
<<:
|
|
- *logging
|
|
environment:
|
|
DOMAIN: ${DOMAIN}
|
|
NODEKEY: ${NODEKEY}
|
|
RLN_RELAY_CRED_PASSWORD: "${RLN_RELAY_CRED_PASSWORD}"
|
|
RLN_RELAY_ETH_CLIENT_ADDRESS: *rln_relay_eth_client_address
|
|
EXTRA_ARGS: ${EXTRA_ARGS}
|
|
STORAGE_SIZE: ${STORAGE_SIZE}
|
|
<<:
|
|
- *rln_env
|
|
- *sonda_env
|
|
volumes:
|
|
- ./run_node.sh:/opt/run_node.sh:Z
|
|
- ${CERTS_DIR:-./certs}:/etc/letsencrypt/:Z
|
|
- ./rln_tree:/etc/rln_tree/:Z
|
|
- ./keystore:/keystore:Z
|
|
entrypoint: sh
|
|
command:
|
|
- /opt/run_node.sh
|
|
networks:
|
|
- nwaku-sonda
|
|
|
|
sonda:
|
|
build:
|
|
context: .
|
|
dockerfile: Dockerfile.sonda
|
|
container_name: sonda
|
|
ports:
|
|
- 127.0.0.1:${METRICS_PORT}:${METRICS_PORT}
|
|
environment:
|
|
<<:
|
|
- *sonda_env
|
|
depends_on:
|
|
- nwaku
|
|
networks:
|
|
- nwaku-sonda
|
|
|
|
prometheus:
|
|
image: docker.io/prom/prometheus:latest
|
|
container_name: prometheus
|
|
volumes:
|
|
- ./monitoring/prometheus-config.yml:/etc/prometheus/prometheus.yml:Z
|
|
command:
|
|
- --config.file=/etc/prometheus/prometheus.yml
|
|
# ports:
|
|
# - 127.0.0.1:9090:9090
|
|
restart: on-failure:5
|
|
depends_on:
|
|
- nwaku
|
|
networks:
|
|
- nwaku-sonda
|
|
|
|
grafana:
|
|
image: docker.io/grafana/grafana:latest
|
|
container_name: grafana
|
|
env_file:
|
|
- ./monitoring/configuration/grafana-plugins.env
|
|
volumes:
|
|
- ./monitoring/configuration/grafana.ini:/etc/grafana/grafana.ini:Z
|
|
- ./monitoring/configuration/dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:Z
|
|
- ./monitoring/configuration/datasources.yaml:/etc/grafana/provisioning/datasources/datasources.yaml:Z
|
|
- ./monitoring/configuration/dashboards:/var/lib/grafana/dashboards/:Z
|
|
- ./monitoring/configuration/customizations/custom-logo.svg:/usr/share/grafana/public/img/grafana_icon.svg:Z
|
|
- ./monitoring/configuration/customizations/custom-logo.svg:/usr/share/grafana/public/img/grafana_typelogo.svg:Z
|
|
- ./monitoring/configuration/customizations/custom-logo.png:/usr/share/grafana/public/img/fav32.png:Z
|
|
ports:
|
|
- 0.0.0.0:3000:3000
|
|
restart: on-failure:5
|
|
depends_on:
|
|
- prometheus
|
|
networks:
|
|
- nwaku-sonda
|
|
|
|
networks:
|
|
nwaku-sonda: |