chore: update rust bdk_wallet to alpha 12

This commit also introduces the sqlite store and removes the flat file
 store
This commit is contained in:
thunderbiscuit committed 2024-06-04 09:11:32 -04:00
1 parent e5e7aba208
commit 19b4e1159a
24 files changed
+330 -197

No files matched your search

+4 -4
View File
@@ -8,8 +8,8 @@ TESTNET_ESPLORA_URL = "https://esplora.testnet.kuutamo.cloud"
class LiveTxBuilderTest(unittest.TestCase):
def tearDown(self) -> None:
if os.path.exists("./bdk_persistence.db"):
os.remove("./bdk_persistence.db")
if os.path.exists("./bdk_persistence.sqlite"):
os.remove("./bdk_persistence.sqlite")
def test_tx_builder(self):
descriptor: bdk.Descriptor = bdk.Descriptor(
@@ -19,7 +19,7 @@ class LiveTxBuilderTest(unittest.TestCase):
wallet: bdk.Wallet = bdk.Wallet(
descriptor,
None,
"./bdk_persistence.db",
"./bdk_persistence.sqlite",
bdk.Network.SIGNET
)
esplora_client: bdk.EsploraClient = bdk.EsploraClient(url = SIGNET_ESPLORA_URL)
@@ -55,7 +55,7 @@ class LiveTxBuilderTest(unittest.TestCase):
wallet: bdk.Wallet = bdk.Wallet(
descriptor,
None,
"./bdk_persistence.db",
"./bdk_persistence.sqlite",
bdk.Network.SIGNET
)
esplora_client: bdk.EsploraClient = bdk.EsploraClient(url = SIGNET_ESPLORA_URL)
+4 -4
View File
@@ -8,8 +8,8 @@ TESTNET_ESPLORA_URL = "https://esplora.testnet.kuutamo.cloud"
class LiveWalletTest(unittest.TestCase):
def tearDown(self) -> None:
if os.path.exists("./bdk_persistence.db"):
os.remove("./bdk_persistence.db")
if os.path.exists("./bdk_persistence.sqlite"):
os.remove("./bdk_persistence.sqlite")
def test_synced_balance(self):
descriptor: bdk.Descriptor = bdk.Descriptor(
@@ -19,7 +19,7 @@ class LiveWalletTest(unittest.TestCase):
wallet: bdk.Wallet = bdk.Wallet(
descriptor,
None,
"./bdk_persistence.db",
"./bdk_persistence.sqlite",
bdk.Network.SIGNET
)
esplora_client: bdk.EsploraClient = bdk.EsploraClient(url = SIGNET_ESPLORA_URL)
@@ -55,7 +55,7 @@ class LiveWalletTest(unittest.TestCase):
wallet: bdk.Wallet = bdk.Wallet(
descriptor,
None,
"./bdk_persistence.db",
"./bdk_persistence.sqlite",
bdk.Network.SIGNET
)
esplora_client: bdk.EsploraClient = bdk.EsploraClient(url = SIGNET_ESPLORA_URL)
+4 -4
View File
@@ -5,8 +5,8 @@ import os
class OfflineWalletTest(unittest.TestCase):
def tearDown(self) -> None:
if os.path.exists("./bdk_persistence.db"):
os.remove("./bdk_persistence.db")
if os.path.exists("./bdk_persistence.sqlite"):
os.remove("./bdk_persistence.sqlite")
def test_new_address(self):
descriptor: bdk.Descriptor = bdk.Descriptor(
@@ -16,7 +16,7 @@ class OfflineWalletTest(unittest.TestCase):
wallet: Wallet = bdk.Wallet(
descriptor,
None,
"./bdk_persistence.db",
"./bdk_persistence.sqlite",
bdk.Network.TESTNET
)
address_info: bdk.AddressInfo = wallet.reveal_next_address(bdk.KeychainKind.EXTERNAL)
@@ -36,7 +36,7 @@ class OfflineWalletTest(unittest.TestCase):
wallet: bdk.Wallet = bdk.Wallet(
descriptor,
None,
"./bdk_persistence.db",
"./bdk_persistence.sqlite",
bdk.Network.TESTNET
)