Esempio n. 1
0
def coin_transaction_polling_service_factory(coin_chain_query_service_converter_proxy, logger,
                                             coin_block_height_storage_proxy, coin_transaction_consumer,
                                             polling_delay_config, polling_state_storage: PollingStateStorageProxy,
                                             max_handle_transaction_tries: int, last_block_distance):
    """Creates a TransactionPollingService instance with the necessary dependencies for the custom cryptocurrency."""
    return service.TransactionPollingService(
        chain_query_service=coin_chain_query_service_converter_proxy,
        logger=logger,
        block_height_storage=coin_block_height_storage_proxy,
        transaction_consumer=coin_transaction_consumer,
        max_polling_delay_s=polling_delay_config.coin_max_polling_delay_s,
        min_polling_delay_s=polling_delay_config.coin_min_polling_delay_s,
        max_handle_transaction_tries=max_handle_transaction_tries,
        polling_state_storage=polling_state_storage,
        last_block_distance=last_block_distance)
Esempio n. 2
0
def waves_transaction_polling_service_factory(waves_chain_query_service_converter_proxy, logger,
                                              waves_block_height_storage_proxy, waves_transaction_consumer,
                                              polling_delay_config, polling_state_storage: PollingStateStorageProxy,
                                              max_handle_transaction_tries: int, last_block_distance: int):
    """Creates a TransactionPollingService instance with the necessary dependencies for Waves."""
    return service.TransactionPollingService(
        chain_query_service=waves_chain_query_service_converter_proxy,
        logger=logger,
        block_height_storage=waves_block_height_storage_proxy,
        transaction_consumer=waves_transaction_consumer,
        max_polling_delay_s=polling_delay_config.waves_max_polling_delay_s,
        min_polling_delay_s=polling_delay_config.waves_min_polling_delay_s,
        max_handle_transaction_tries=max_handle_transaction_tries,
        polling_state_storage=polling_state_storage,
        last_block_distance=last_block_distance)
Esempio n. 3
0
def coin_transaction_polling_service_factory(
        coin_chain_query_service_converter_proxy:
    ChainQueryServiceConverterProxyImpl, logger: logging.Logger,
        coin_block_height_storage_proxy: CoinBlockHeightStorageProxyImpl,
        coin_transaction_consumer: CoinTransactionConsumerImpl,
        polling_delay_config: model.PollingDelayConfig,
        polling_state_storage: CoinPollingStateStorageProxyImpl,
        max_handle_transaction_tries: int, last_block_distance: int):
    """Creates a TransactionPollingService instance with the necessary dependencies for the custom cryptocurrency."""
    return service.TransactionPollingService(
        chain_query_service=coin_chain_query_service_converter_proxy,
        logger=logger,
        block_height_storage=coin_block_height_storage_proxy,
        transaction_consumer=coin_transaction_consumer,
        max_polling_delay_s=polling_delay_config.coin_max_polling_delay_s,
        min_polling_delay_s=polling_delay_config.coin_min_polling_delay_s,
        max_handle_transaction_tries=max_handle_transaction_tries,
        polling_state_storage=polling_state_storage,
        last_block_distance=last_block_distance)