log tweaks
This commit is contained in:
@@ -2,3 +2,4 @@ metadata = '' # this setting approves no tokens
|
|||||||
account = '${accounts.gas}'
|
account = '${accounts.gas}'
|
||||||
rpc_url = '${rpc_urls.arbitrum_alchemy}'
|
rpc_url = '${rpc_urls.arbitrum_alchemy}'
|
||||||
ws_url = '${rpc_urls.arbitrum_alchemy_ws}'
|
ws_url = '${rpc_urls.arbitrum_alchemy_ws}'
|
||||||
|
concurrent_rpc_connections=16
|
||||||
@@ -10,7 +10,7 @@ level='DEBUG'
|
|||||||
|
|
||||||
[handlers.console]
|
[handlers.console]
|
||||||
class='logging.StreamHandler'
|
class='logging.StreamHandler'
|
||||||
formatter='default'
|
formatter='notime'
|
||||||
stream='ext://sys.stdout'
|
stream='ext://sys.stdout'
|
||||||
|
|
||||||
[formatters.default]
|
[formatters.default]
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ from dexorder import current_pub, minutely
|
|||||||
from dexorder.base.chain import current_chain
|
from dexorder.base.chain import current_chain
|
||||||
from dexorder.base.order import TrancheKey, OrderKey
|
from dexorder.base.order import TrancheKey, OrderKey
|
||||||
from dexorder.base.orderlib import SwapOrderState
|
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.contract.dexorder import vault_address, VaultContract, get_factory_contract
|
||||||
from dexorder.impls import get_impl_version
|
from dexorder.impls import get_impl_version
|
||||||
from dexorder.ohlc import ohlcs
|
from dexorder.ohlc import ohlcs
|
||||||
@@ -31,7 +31,6 @@ def init():
|
|||||||
|
|
||||||
|
|
||||||
async def handle_order_placed(event: EventData):
|
async def handle_order_placed(event: EventData):
|
||||||
log.debug(f'handle order placed {event}')
|
|
||||||
# event DexorderPlaced (uint64 startOrderIndex, uint8 numOrders);
|
# event DexorderPlaced (uint64 startOrderIndex, uint8 numOrders);
|
||||||
addr = event['address']
|
addr = event['address']
|
||||||
start_index = int(event['args']['startOrderIndex'])
|
start_index = int(event['args']['startOrderIndex'])
|
||||||
@@ -57,7 +56,6 @@ async def handle_order_placed(event: EventData):
|
|||||||
|
|
||||||
|
|
||||||
async def handle_swap_filled(event: EventData):
|
async def handle_swap_filled(event: EventData):
|
||||||
log.debug('handle_swap_filled')
|
|
||||||
# event DexorderSwapFilled (uint64 orderIndex, uint8 trancheIndex, uint256 amountIn, uint256 amountOut);
|
# event DexorderSwapFilled (uint64 orderIndex, uint8 trancheIndex, uint256 amountIn, uint256 amountOut);
|
||||||
log.debug(f'DexorderSwapFilled {event}')
|
log.debug(f'DexorderSwapFilled {event}')
|
||||||
args = event['args']
|
args = event['args']
|
||||||
|
|||||||
Reference in New Issue
Block a user