Skip to content

Commit 9e79287

Browse files
chore: track bark master branch
Update Bark Rust dependencies to use upstream master and expose the new Lightning revocation-stuck state through the JS wrapper.
1 parent df0284d commit 9e79287

6 files changed

Lines changed: 23 additions & 11 deletions

File tree

bark-cpp/Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bark-cpp/Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ version = "0.1.0"
44
edition = "2024"
55

66
[dependencies]
7-
bark-wallet = { git = "https://gitlab.com/ark-bitcoin/bark.git", tag = "bark-0.2.2", features = [
7+
bark-wallet = { git = "https://gitlab.com/ark-bitcoin/bark.git", branch = "master", features = [
88
"native",
99
"tls-webpki-roots",
1010
"onchain-bdk",
1111
"bitcoind-rpc",
1212
"sqlite",
1313
], default-features = false }
1414

15-
bark-bitcoin-ext = { git = "https://gitlab.com/ark-bitcoin/bark.git", tag = "bark-0.2.2", default-features = false }
15+
bark-bitcoin-ext = { git = "https://gitlab.com/ark-bitcoin/bark.git", branch = "master", default-features = false }
1616
bdk_wallet = { version = "3.0.0" }
1717
bdk_bitcoind_rpc = { version = "0.22.0" }
1818
chrono = { version = "0.4", features = ["serde"] }

bark-cpp/src/utils.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,14 @@ pub(crate) async fn lightning_payment_result_from_state(
7979
Some(htlcs.movement_id.0),
8080
None,
8181
),
82+
Progress::RevocationStuck { htlcs, .. } => (
83+
"revocation_stuck",
84+
Some(send.invoice),
85+
Some(send.payment_amount),
86+
htlcs.vtxo_ids,
87+
Some(htlcs.movement_id.0),
88+
None,
89+
),
8290
},
8391
};
8492

react-native-nitro-ark/example/ios/Podfile.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ PODS:
33
- hermes-engine (250829098.0.10):
44
- hermes-engine/Pre-built (= 250829098.0.10)
55
- hermes-engine/Pre-built (250829098.0.10)
6-
- NitroArk (0.0.120):
6+
- NitroArk (0.0.121):
77
- hermes-engine
88
- NitroModules
99
- RCTRequired
@@ -2122,7 +2122,7 @@ EXTERNAL SOURCES:
21222122
SPEC CHECKSUMS:
21232123
FBLazyVector: 24e62c765683b8d89006a88a2c8f5cf019f0074d
21242124
hermes-engine: b9bc07e8e3778c44d446d1bfa9788de105e5c157
2125-
NitroArk: c21050b0ca711182b4c3949f5b02f330fc84c5fb
2125+
NitroArk: 0b05ea5828b2df9833529dd475053076da7168cf
21262126
NitroModules: ba9ddd723ffde85412ec774827d4a80ad9864b89
21272127
RCTDeprecation: a4c521821fab57cbb125b36effe84d897d0dfa12
21282128
RCTRequired: 9f3a7e5645d4bc3f551593de7550bb66ab6e42bc

react-native-nitro-ark/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-nitro-ark",
3-
"version": "0.0.120",
3+
"version": "0.0.121",
44
"description": "Pure C++ Nitro Modules for Ark client",
55
"source": "./src/index.tsx",
66
"main": "./lib/module/index.js",

react-native-nitro-ark/src/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ export type BarkNotificationEvent = Omit<
114114
movement?: BarkMovement;
115115
};
116116

117-
export type LightningPaymentState = 'unknown' | 'in_progress' | 'paid';
117+
export type LightningPaymentState =
118+
| 'unknown'
119+
| 'in_progress'
120+
| 'paid'
121+
| 'revocation_stuck';
118122

119123
export type LightningPayment = Omit<LightningPaymentResult, 'state'> & {
120124
state: LightningPaymentState;

0 commit comments

Comments
 (0)