From 83283be5b196283ba9a6466bf4177e799300a34a Mon Sep 17 00:00:00 2001 From: Misha Date: Wed, 17 Apr 2024 19:31:39 +0300 Subject: [PATCH] add interactions abi --- .../pg_tx_fetcher/source/{ => app}/main.py | 0 .../tx_root_publisher/source/app/config.py | 29 +++++++++++++++---- services/tx_root_publisher/source/app/main.py | 0 3 files changed, 24 insertions(+), 5 deletions(-) rename services/pg_tx_fetcher/source/{ => app}/main.py (100%) create mode 100644 services/tx_root_publisher/source/app/main.py diff --git a/services/pg_tx_fetcher/source/main.py b/services/pg_tx_fetcher/source/app/main.py similarity index 100% rename from services/pg_tx_fetcher/source/main.py rename to services/pg_tx_fetcher/source/app/main.py diff --git a/services/tx_root_publisher/source/app/config.py b/services/tx_root_publisher/source/app/config.py index 63a5eb0..60449d0 100644 --- a/services/tx_root_publisher/source/app/config.py +++ b/services/tx_root_publisher/source/app/config.py @@ -1,7 +1,26 @@ import os -class PgConfig: - # POSTGRES_PASSWORD = os.getenv("POSTGRES_PASSWORD") - POSTGRES_DB = os.getenv("POSTGRES_DB") - POSTGRES_USER = os.getenv("POSTGRES_USER") - POSTGRES_HOST = "postgres" + +class ContractsRelayerConfig: + INTERACTION_DATASET_ADDR = os.getenv("INTERACION_DATASET_ADDR") + RELAYER_PK: str = os.getenv("RELAYER_PK") + DATASET_ABI: dict = { + "abi": [{ + "type": "function", + "name": "updateRoot", + "inputs": [ + { + "name": "nextMerkleRoot", + "type": "bytes32", + "internalType": "bytes32" + }, + { + "name": "nextProofsHash", + "type": "bytes32", + "internalType": "bytes32" + } + ], + "outputs": [], + "stateMutability": "nonpayable" + }] + } diff --git a/services/tx_root_publisher/source/app/main.py b/services/tx_root_publisher/source/app/main.py new file mode 100644 index 0000000..e69de29