log tweaks

This commit is contained in:
tim
2024-10-23 01:21:01 -04:00
parent f9f13daea7
commit 012192cec6
3 changed files with 3 additions and 4 deletions

View File

@@ -2,3 +2,4 @@ metadata = '' # this setting approves no tokens
account = '${accounts.gas}'
rpc_url = '${rpc_urls.arbitrum_alchemy}'
ws_url = '${rpc_urls.arbitrum_alchemy_ws}'
concurrent_rpc_connections=16

View File

@@ -10,7 +10,7 @@ level='DEBUG'
[handlers.console]
class='logging.StreamHandler'
formatter='default'
formatter='notime'
stream='ext://sys.stdout'
[formatters.default]

View File

@@ -7,7 +7,7 @@ from dexorder import current_pub, minutely
from dexorder.base.chain import current_chain
from dexorder.base.order import TrancheKey, OrderKey
from dexorder.base.orderlib import SwapOrderState
from dexorder.blocks import get_block_timestamp, current_block
from dexorder.blocks import get_block_timestamp
from dexorder.contract.dexorder import vault_address, VaultContract, get_factory_contract
from dexorder.impls import get_impl_version
from dexorder.ohlc import ohlcs
@@ -31,7 +31,6 @@ def init():
async def handle_order_placed(event: EventData):
log.debug(f'handle order placed {event}')
# event DexorderPlaced (uint64 startOrderIndex, uint8 numOrders);
addr = event['address']
start_index = int(event['args']['startOrderIndex'])
@@ -57,7 +56,6 @@ async def handle_order_placed(event: EventData):
async def handle_swap_filled(event: EventData):
log.debug('handle_swap_filled')
# event DexorderSwapFilled (uint64 orderIndex, uint8 trancheIndex, uint256 amountIn, uint256 amountOut);
log.debug(f'DexorderSwapFilled {event}')
args = event['args']