B1: plm_engine takes the modules without a database (ADR-59)
HD derivation (pure part), PSBT builder, Electrum client/merkle/quorum/scripthash, network profile, addresses and header checks move to plm_engine; the old stack imports them from there. A test forbids framework imports in the package. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
c9784efa07
commit
3ee60a23da
87 files changed
+290
-260
No files matched your search
@@ -34,8 +34,8 @@ from app.tx.broadcast import RbfError, bump_fee
|
||||
from app.tx.confirmation import poll_once
|
||||
from app.tx.reconcile import reconcile_once
|
||||
from app.wallet.hd import derive_pool_address, derive_user_address, derive_user_key
|
||||
from app.wallet.plm_network import PLM_MAINNET
|
||||
from app.wallet.psbt_builder import Utxo, build_signed_transaction
|
||||
from plm_engine.network import PLM_MAINNET
|
||||
from plm_engine.psbt_builder import Utxo, build_signed_transaction
|
||||
from app.withdrawals.service import request_withdrawal
|
||||
from tests.unit.fake_network import FakeNetwork, ScriptedNetwork, rpc_error
|
||||
from tests.unit.test_bets import _make_funded_user
|
||||
@@ -358,7 +358,7 @@ async def test_an_explicitly_refused_replacement_leaves_the_row_alone(session_fa
|
||||
|
||||
|
||||
async def test_an_uncertain_replacement_is_adopted_and_an_accepted_one_is_fanned_out(session_factory):
|
||||
from app.electrum.client import ElectrumError
|
||||
from plm_engine.electrum.client import ElectrumError
|
||||
|
||||
seeded = await _seed_pending_bet(session_factory)
|
||||
network = FakeNetwork(known=False)
|
||||
|
||||
Reference in new issue
Block a user