Skip to content

Commit eaed100

Browse files
authored
Merge pull request #38 from AminaBank/feature/v0_30
upgrading to match bdk v0.30
2 parents db6c428 + dfcbe50 commit eaed100

File tree

4 files changed

+22
-77
lines changed

4 files changed

+22
-77
lines changed

.github/workflows/cont_integration.yml

Lines changed: 10 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,15 @@ jobs:
1010
strategy:
1111
matrix:
1212
rust:
13-
- 1.75.0 # STABLE
13+
- 1.81.0 # current
1414
- 1.63.0 # MSRV
1515
steps:
1616
- name: checkout
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818
- name: Generate cache key
1919
run: echo "${{ matrix.rust }} ${{ matrix.features }}" | tee .cache_key
2020
- name: cache
21-
uses: actions/cache@v2
21+
uses: actions/cache@v4
2222
with:
2323
path: |
2424
~/.cargo/registry
@@ -38,49 +38,21 @@ jobs:
3838
- name: Pin dependencies for MSRV
3939
if: matrix.rust == '1.63.0'
4040
run: |
41-
cargo update -p home:0.5.9 --precise 0.5.5
42-
cargo update -p tokio:1.40.0 --precise 1.38.1
41+
cargo update -p home --precise 0.5.5
42+
cargo update -p tokio --precise 1.38.1
43+
cargo update -p ring:0.17.14 --precise 0.17.8
4344
cargo update -p cc --precise 1.0.105
45+
cargo update -p flate2 --precise 1.0.35
46+
cargo update -p once_cell --precise 1.20.3
47+
cargo update -p bzip2-sys --precise 0.1.11+1.0.8
48+
cargo update -p minreq --precise 2.12.0
4449
- name: Build
4550
run: cargo build
4651
- name: Clippy
4752
run: cargo clippy --all-targets -- -D warnings
4853
- name: Test
4954
run: cargo test
5055

51-
check-wasm:
52-
name: Check WASM
53-
runs-on: ubuntu-20.04
54-
env:
55-
CC: clang-10
56-
CFLAGS: -I/usr/include
57-
steps:
58-
- name: Checkout
59-
uses: actions/checkout@v2
60-
- name: Cache
61-
uses: actions/cache@v2
62-
with:
63-
path: |
64-
~/.cargo/registry
65-
~/.cargo/git
66-
target
67-
key: ${{ runner.os }}-cargo-${{ github.job }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
68-
# Install a recent version of clang that supports wasm32
69-
- run: wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - || exit 1
70-
- run: sudo apt-add-repository "deb http://apt.llvm.org/focal/ llvm-toolchain-focal-10 main" || exit 1
71-
- run: sudo apt-get update || exit 1
72-
- run: sudo apt-get install -y libclang-common-10-dev clang-10 libc6-dev-i386 || exit 1
73-
- name: Set default toolchain
74-
run: rustup default 1.65.0 # STABLE
75-
- name: Set profile
76-
run: rustup set profile minimal
77-
- name: Add target wasm32
78-
run: rustup target add wasm32-unknown-unknown
79-
- name: Update toolchain
80-
run: rustup update
81-
# - name: Check
82-
# run: cargo check --target wasm32-unknown-unknown
83-
8456
fmt:
8557
name: Rust fmt
8658
runs-on: ubuntu-latest

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bdk-reserves"
3-
version = "0.29.0"
3+
version = "0.30.2"
44
authors = ["Richard Ulrich <[email protected]>"]
55
edition = "2018"
66
description = "Proof of reserves for bitcoin dev kit"
@@ -10,12 +10,12 @@ license = "MIT OR Apache-2.0"
1010
repository = "https://github.com/bitcoindevkit/bdk-reserves"
1111

1212
[dependencies]
13-
bdk = { version = "0.29", default-features = false, features = ["std"] }
13+
bdk = { version = "0.30.2", default-features = false, features = ["std"] }
1414
bitcoinconsensus = "0.19.0-3"
1515
log = "^0.4"
1616

1717
[dev-dependencies]
1818
rstest = "^0.11"
1919
bdk-testutils = "^0.4"
20-
bdk = { version = "0.29", default-features = true }
20+
bdk = { version = "0.30.1", default-features = true }
2121
electrsd = { version = "0.24", features = ["bitcoind_22_0", "electrs_0_9_1"] }

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM rust:1.70-bookworm
1+
FROM rust:1.81-bookworm
22
ARG http_proxy
33
ENV http_proxy=$http_proxy
44
ENV https_proxy=$http_proxy

Makefile

Lines changed: 8 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
TAG := bdk-reserves
2-
TAG_57 := bdk-reserves-57
3-
TAG_63 := bdk-reserves-61
2+
TAG_63 := bdk-reserves-63
43
http_proxy ?= http://172.17.0.1:3128
54
DOCKER_RUN := docker run --interactive --rm \
65
-v ${PWD}:/home/satoshi \
@@ -14,36 +13,17 @@ test_current: builder
1413
rm -f Cargo.lock
1514
$(DOCKER_RUN) ${TAG} cargo test
1615

17-
test_57: builder_57
18-
#rm -f Cargo.lock
19-
#$(DOCKER_RUN) ${TAG_57} cargo update -p log:0.4.20 --precise 0.4.18
20-
#$(DOCKER_RUN) ${TAG_57} cargo update -p tempfile --precise 3.6.0
21-
#$(DOCKER_RUN) ${TAG_57} cargo update -p sct:0.7.1 --precise 0.7.0
22-
$(DOCKER_RUN) ${TAG_57} cargo update -p zip:0.6.6 --precise 0.6.3 || true
23-
$(DOCKER_RUN) ${TAG_57} cargo update -p rustls:0.21.10 --precise 0.21.1 || true
24-
$(DOCKER_RUN) ${TAG_57} cargo update -p rustls:0.21.7 --precise 0.21.1 || true
25-
$(DOCKER_RUN) ${TAG_57} cargo update -p rustls:0.21.4 --precise 0.21.1 || true
26-
$(DOCKER_RUN) ${TAG_57} cargo update -p rustls:0.21.2 --precise 0.21.1 || true
27-
$(DOCKER_RUN) ${TAG_57} cargo update -p rustls:0.20.9 --precise 0.20.8 || true
28-
$(DOCKER_RUN) ${TAG_57} cargo update -p rustls-webpki:0.100.3 --precise 0.100.1 || true
29-
$(DOCKER_RUN) ${TAG_57} cargo update -p rustls-webpki:0.101.4 --precise 0.101.1 || true
30-
$(DOCKER_RUN) ${TAG_57} cargo update -p rustls-webpki:0.101.7 --precise 0.101.1 || true
31-
$(DOCKER_RUN) ${TAG_57} cargo update -p crossbeam-utils:0.8.18 --precise 0.8.16 || true
32-
$(DOCKER_RUN) ${TAG_57} cargo update -p tokio:1.35.1 --precise 1.29.1 || true
33-
$(DOCKER_RUN) ${TAG_57} cargo update -p rustix:0.38.9 --precise 0.38.3 || true
34-
$(DOCKER_RUN) ${TAG_57} cargo update -p ring:0.17.7 --precise 0.16.20 || true
35-
$(DOCKER_RUN) ${TAG_57} cargo update -p byteorder:1.5.0 --precise 0.4.3 || true
36-
$(DOCKER_RUN) ${TAG_57} cargo update -p webpki:0.22.4 --precise 0.22.0 || true
37-
$(DOCKER_RUN) ${TAG_57} cargo update -p crossbeam-epoch:0.9.17 --precise 0.9.15 || true
38-
$(DOCKER_RUN) ${TAG_57} cargo update -p byteorder:1.5.0 --precise 0.4.3 || true
39-
$(DOCKER_RUN) ${TAG_57} cargo test
40-
4116
test_63: builder_63
4217
rm -f Cargo.lock
4318
$(DOCKER_RUN) ${TAG_63} cargo test || true
44-
$(DOCKER_RUN) ${TAG_63} cargo update -p home:0.5.9 --precise 0.5.5 || true
45-
$(DOCKER_RUN) ${TAG_63} cargo update -p tokio:1.40.0 --precise 1.38.1 || true
19+
$(DOCKER_RUN) ${TAG_63} cargo update -p home --precise 0.5.5 || true
20+
$(DOCKER_RUN) ${TAG_63} cargo update -p tokio --precise 1.38.1 || true
21+
$(DOCKER_RUN) ${TAG_63} cargo update -p ring:0.17.14 --precise 0.17.8 || true
4622
$(DOCKER_RUN) ${TAG_63} cargo update -p cc --precise 1.0.105 || true
23+
$(DOCKER_RUN) ${TAG_63} cargo update -p flate2 --precise 1.0.35 || true
24+
$(DOCKER_RUN) ${TAG_63} cargo update -p once_cell --precise 1.20.3 || true
25+
$(DOCKER_RUN) ${TAG_63} cargo update -p bzip2-sys --precise 0.1.11+1.0.8 || true
26+
$(DOCKER_RUN) ${TAG_63} cargo update -p minreq --precise 2.12.0 || true
4727
$(DOCKER_RUN) ${TAG_63} cargo test
4828

4929
run: builder
@@ -67,13 +47,6 @@ builder:
6747
--build-arg UID="$(shell id -u)" \
6848
.
6949

70-
builder_57:
71-
docker build --tag ${TAG_57}\
72-
--build-arg http_proxy="${http_proxy}" \
73-
--build-arg UID="$(shell id -u)" \
74-
-f Dockerfile_57 \
75-
.
76-
7750
builder_63:
7851
docker build --tag ${TAG_63}\
7952
--build-arg http_proxy="${http_proxy}" \

0 commit comments

Comments
 (0)