Skip to content

Commit e624074

Browse files
committed
rebase(tests): remove unneeded dependencies, fix rebase
1 parent 1bb34e1 commit e624074

File tree

7 files changed

+278
-726
lines changed

7 files changed

+278
-726
lines changed

Cargo.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,4 @@ tracing-subscriber = { version = "0.3.18", features = ["env-filter", "serde_json
1515

1616
[dev-dependencies]
1717
assert_matches = "1.5.0"
18-
bdk_electrum = { version = "0.19.0"}
19-
bdk_testenv = { version = "0.10.0" }
20-
better-panic = "0.3.0"
18+
anyhow = "1.0.89"

migrations/postgres/01_bdk_wallet.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CREATE TABLE IF NOT EXISTS keychain (
2626
-- Hash is block hash hex string,
2727
-- Block height is a u32
2828
CREATE TABLE IF NOT EXISTS block (
29-
wallet_name TEXT,
29+
wallet_name TEXT NOT NULL,
3030
hash TEXT NOT NULL,
3131
height INTEGER NOT NULL,
3232
PRIMARY KEY (wallet_name, hash)
@@ -37,7 +37,7 @@ CREATE INDEX idx_block_height ON block (height);
3737
-- Whole_tx is a consensus encoded transaction,
3838
-- Last seen is a u64 unix epoch seconds
3939
CREATE TABLE IF NOT EXISTS tx (
40-
wallet_name TEXT,
40+
wallet_name TEXT NOT NULL,
4141
txid TEXT NOT NULL,
4242
whole_tx BYTEA,
4343
last_seen BIGINT,
@@ -49,7 +49,7 @@ CREATE TABLE IF NOT EXISTS tx (
4949
-- TxOut value as SATs
5050
-- TxOut script consensus encoded
5151
CREATE TABLE IF NOT EXISTS txout (
52-
wallet_name TEXT,
52+
wallet_name TEXT NOT NULL,
5353
txid TEXT NOT NULL,
5454
vout INTEGER NOT NULL,
5555
value BIGINT NOT NULL,
@@ -62,7 +62,7 @@ CREATE TABLE IF NOT EXISTS txout (
6262
-- Anchor is a json serialized Anchor structure as JSONB,
6363
-- Txid is transaction hash hex string (reversed)
6464
CREATE TABLE IF NOT EXISTS anchor_tx (
65-
wallet_name TEXT,
65+
wallet_name TEXT NOT NULL,
6666
block_hash TEXT NOT NULL,
6767
anchor JSONB NOT NULL,
6868
txid TEXT NOT NULL,

migrations/sqlite/01_bdk_wallet.sql

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ CREATE TABLE IF NOT EXISTS keychain (
2626
-- Hash is block hash hex string,
2727
-- Block height is a u32
2828
CREATE TABLE IF NOT EXISTS block (
29-
wallet_name TEXT,
29+
wallet_name TEXT NOT NULL,
3030
hash TEXT NOT NULL,
3131
height INTEGER NOT NULL,
3232
PRIMARY KEY (wallet_name, hash)
@@ -37,7 +37,7 @@ CREATE INDEX idx_block_height ON block (height);
3737
-- Whole_tx is a consensus encoded transaction,
3838
-- Last seen is a u64 unix epoch seconds
3939
CREATE TABLE IF NOT EXISTS tx (
40-
wallet_name TEXT,
40+
wallet_name TEXT NOT NULL,
4141
txid TEXT NOT NULL,
4242
whole_tx BLOB,
4343
last_seen INTEGER,
@@ -49,7 +49,7 @@ CREATE TABLE IF NOT EXISTS tx (
4949
-- TxOut value as SATs
5050
-- TxOut script consensus encoded
5151
CREATE TABLE IF NOT EXISTS txout (
52-
wallet_name TEXT,
52+
wallet_name TEXT NOT NULL,
5353
txid TEXT NOT NULL,
5454
vout INTEGER NOT NULL,
5555
value INTEGER NOT NULL,
@@ -62,7 +62,7 @@ CREATE TABLE IF NOT EXISTS txout (
6262
-- Anchor is a json serialized Anchor structure as JSONB,
6363
-- Txid is transaction hash hex string (reversed)
6464
CREATE TABLE IF NOT EXISTS anchor_tx (
65-
wallet_name TEXT,
65+
wallet_name TEXT NOT NULL,
6666
block_hash TEXT NOT NULL,
6767
anchor BLOB NOT NULL,
6868
txid TEXT NOT NULL,

0 commit comments

Comments
 (0)