From c1df2afe68a37f41a38844b2c34e4ce9871e5ada Mon Sep 17 00:00:00 2001 From: Akshay Dahiya Date: Tue, 14 Nov 2023 19:01:18 +0530 Subject: [PATCH] chore: add .gitignore, will add config files to respective branches --- .gitignore | 11 +++ aggregator.example.json | 3 - auth_settings.example.json | 12 ---- preloader.json | 27 ------- projects.example.json | 88 ----------------------- settings.example.json | 144 ------------------------------------- 6 files changed, 11 insertions(+), 274 deletions(-) create mode 100644 .gitignore delete mode 100644 aggregator.example.json delete mode 100644 auth_settings.example.json delete mode 100644 preloader.json delete mode 100644 projects.example.json delete mode 100644 settings.example.json diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c82a9e --- /dev/null +++ b/.gitignore @@ -0,0 +1,11 @@ +.env +.python-version +__pycache__/ +.idea/ +.DS_Store +screenlog* +temp/* +*projects.json +*aggregator.json +*settings.json +*.backup diff --git a/aggregator.example.json b/aggregator.example.json deleted file mode 100644 index ee086c1..0000000 --- a/aggregator.example.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "config": [] -} diff --git a/auth_settings.example.json b/auth_settings.example.json deleted file mode 100644 index b6d0e8f..0000000 --- a/auth_settings.example.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "redis": { - "host": "redis", - "port": 6379, - "db": 0, - "password": null - }, - "bind": { - "host": "0.0.0.0", - "port": 8555 - } -} diff --git a/preloader.json b/preloader.json deleted file mode 100644 index 1395109..0000000 --- a/preloader.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "preloaders": [ - { - "task_type": "block_transactions", - "module": "snapshotter.utils.preloaders.tx_receipts.preloader", - "class_name": "TxPreloadWorker" - }, - { - "task_type": "block_details", - "module": "snapshotter.utils.preloaders.block_details.preloader", - "class_name": "BlockDetailsPreloader" - }, - { - "task_type": "eth_price", - "module": "snapshotter.utils.preloaders.eth_price.preloader", - "class_name": "EthPricePreloader" - } - ], - "delegate_tasks": [ - { - "task_type": "txreceipt", - "module": "snapshotter.utils.preloaders.tx_receipts.delegated_worker.tx_receipts", - "class_name": "TxReceiptProcessor" - } - ], - "timeout": 90 -} diff --git a/projects.example.json b/projects.example.json deleted file mode 100644 index 8e2446c..0000000 --- a/projects.example.json +++ /dev/null @@ -1,88 +0,0 @@ -{ - "config": [ - { - "project_type": "zkevm:bungee_bridge", - "projects":[ - ], - "preload_tasks":[ - "block_transactions" - ], - "processor":{ - "module": "snapshotter.modules.boost.bungee_bridge", - "class_name": "BungeeBridgeProcessor" - } - }, - { - "project_type": "zkevm:owlto_bridge", - "projects":[ - ], - "preload_tasks":[ - "block_transactions" - ], - "processor":{ - "module": "snapshotter.modules.boost.owlto_bridge", - "class_name": "OwltoBridgeProcessor" - } - }, - { - "project_type": "zkevm:quickswap_usdc_swap", - "projects":[ - ], - "preload_tasks":[ - "block_transactions" - ], - "processor":{ - "module": "snapshotter.modules.boost.quickswap_usdc_swap", - "class_name": "QuickswapUSDCSwapProcessor" - } - }, - { - "project_type": "zkevm:quickswap_dai_swap", - "projects":[ - ], - "preload_tasks":[ - "block_transactions" - ], - "processor":{ - "module": "snapshotter.modules.boost.quickswap_dai_swap", - "class_name": "QuickswapDAISwapProcessor" - } - }, - { - "project_type": "zkevm:quickswap_eth_usdc_lp", - "projects":[ - ], - "preload_tasks":[ - "block_transactions" - ], - "processor":{ - "module": "snapshotter.modules.boost.quickswap_eth_usdc_lp", - "class_name": "QuickswapEthUSDCLPProcessor" - } - }, - { - "project_type": "zkevm:safe_create", - "projects":[ - ], - "preload_tasks":[ - "block_transactions" - ], - "processor":{ - "module": "snapshotter.modules.boost.safe_create", - "class_name": "SafeCreateProcessor" - } - }, - { - "project_type": "zkevm:safe_add_owner", - "projects":[ - ], - "preload_tasks":[ - "block_transactions" - ], - "processor":{ - "module": "snapshotter.modules.boost.safe_add_owner", - "class_name": "SafeAddOwnerProcessor" - } - } - ] -} diff --git a/settings.example.json b/settings.example.json deleted file mode 100644 index 4e5e0a0..0000000 --- a/settings.example.json +++ /dev/null @@ -1,144 +0,0 @@ -{ - "namespace": "relevant-namespace", - "core_api": { - "host": "0.0.0.0", - "port": 8002, - "auth": { - "enabled": false, - "header_key": "X-API-KEY" - }, - "public_rate_limit": "20000/day;300/minute;10/second" - }, - "instance_id": "account-address", - "rpc": { - "full_nodes": [{ - "url": "https://rpc-url", - "rate_limit": "10000000/day;2000/minute;100/second" - }], - "archive_nodes": [], - "force_archive_blocks": 100, - "retry": 5, - "request_time_out": 5, - "skip_epoch_threshold_blocks": 30, - "polling_interval": 15, - "connection_limits":{ - "max_connections": 100, - "max_keepalive_connections": 50, - "keepalive_expiry": 300 - } - }, - "rlimit": { - "file_descriptors": 2048 - }, - "rabbitmq": { - "user": "guest", - "password": "guest", - "host": "rabbitmq", - "port": 5672, - "setup": { - "core": { - "exchange": "powerloom-backend" - }, - "callbacks": { - "exchange": "powerloom-backend-callbacks" - }, - "commit_payload": { - "exchange": "powerloom-backend-commit-payload" - }, - "event_detector": { - "exchange": "powerloom-backend-event-detector" - }, - "delegated_worker": { - "exchange": "powerloom-backend-delegated-worker" - } - } - }, - "reporting": { - "slack_url": "https://slack-reporting-url", - "service_url": "https://powerloom-reporting-url" - }, - "redis": { - "host": "redis", - "port": 6379, - "db": 0, - "password": null, - "ssl": false, - "cluster_mode": false - }, - "redis_reader": { - "host": "redis", - "port": 6379, - "db": 0, - "password": null - }, - "logs": { - "trace_enabled": false, - "write_to_files": true - }, - "projects_config_path": "config/projects.json", - "aggregator_config_path": "config/aggregator.json", - "preloader_config_path": "config/preloader.json", - "pair_contract_abi": "snapshotter/static/abis/UniswapV2Pair.json", - "protocol_state": { - "abi": "snapshotter/static/abis/ProtocolContract.json", - "address": "protocol-state-contract" - }, - "callback_worker_config": { - "num_delegate_workers": 8, - "num_snapshot_workers": 2, - "num_aggregation_workers": 4 - }, - "ipfs": { - "url": "ipfs-writer-url", - "url_auth": { - "apiKey": "ipfs-writer-key", - "apiSecret": "ipfs-writer-secret" - }, - "reader_url": "ipfs-reader-url", - "reader_url_auth": { - "apiKey": "ipfs-reader-key", - "apiSecret": "ipfs-reader-secret" - }, - "write_rate_limit": { - "req_per_sec": 10, - "burst": 10 - }, - "timeout": 60, - "local_cache_path": "/home/ubuntu/local_cache/", - "connection_limits":{ - "max_connections": 100, - "max_keepalive_connections": 50, - "keepalive_expiry": 300 - }, - "remote_pinning": { - "enabled": false, - "service_name": "", - "service_endpoint": "", - "service_token": "", - "background_pinning": false - } - }, - "web3storage":{ - "upload_snapshots": false, - "upload_aggregates": true, - "url": "https://api.web3.storage", - "upload_url_suffix": "/upload", - "api_token": "web3-storage-token", - "timeout": 30, - "max_idle_conns": 5, - "idle_conn_timeout": 300 - }, - "anchor_chain_rpc": { - "full_nodes": [{ - "url": "https://prost-rpc-url", - "rate_limit": "100000000/day;18000/minute;300/second" - }], - "retry": 5, - "request_time_out": 5, - "connection_limits":{ - "max_connections": 100, - "max_keepalive_connections": 50, - "keepalive_expiry": 300 - } - } -} \ No newline at end of file