bsv-sdk 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/bsv/network/arc.rb +4 -2
- data/lib/bsv/network/broadcast_error.rb +3 -2
- data/lib/bsv/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5c8eb40d6b6cfbf03769704b141d681d92229d780abf1efe4d9e32a01db4c90d
|
|
4
|
+
data.tar.gz: 43950d736297f149ad6fff69d88ebe342111dc1c9259b3fb5b0b78ea90492e47
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b0a2a209b899e5f5b4527c91c880fe3c0c3113c155ea5ce34d87496a956656cbe06e78a0b02b03b17da2355c97e91e597352c2fceda438185802f1665fdd4c0a
|
|
7
|
+
data.tar.gz: ec8d4fef6344e1f121dba4516c80d36f6089133d70ae355d69ac361b62b2aa712fec2e0a84e397db5545efc434e606004bf7ff5d3fddb573cfef5cdd4c46c052
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to the `bsv-sdk` gem are documented here.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/)
|
|
6
6
|
and this gem adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 0.10.1 — 2026-04-12
|
|
9
|
+
|
|
10
|
+
### Added
|
|
11
|
+
- `arc_status` attribute on `BroadcastError` to distinguish ARC rejection reasons
|
|
12
|
+
(double-spend, invalid, malformed) for downstream status mapping
|
|
13
|
+
|
|
8
14
|
## 0.10.0 — 2026-04-11
|
|
9
15
|
|
|
10
16
|
### Added
|
data/lib/bsv/network/arc.rb
CHANGED
|
@@ -195,7 +195,8 @@ module BSV
|
|
|
195
195
|
raise BroadcastError.new(
|
|
196
196
|
body['detail'] || body['title'] || body['txStatus'],
|
|
197
197
|
status_code: code,
|
|
198
|
-
txid: body['txid']
|
|
198
|
+
txid: body['txid'],
|
|
199
|
+
arc_status: body['txStatus'].to_s.upcase
|
|
199
200
|
)
|
|
200
201
|
end
|
|
201
202
|
|
|
@@ -277,7 +278,8 @@ module BSV
|
|
|
277
278
|
BroadcastError.new(
|
|
278
279
|
body['detail'] || body['title'] || body['txStatus'],
|
|
279
280
|
status_code: 200,
|
|
280
|
-
txid: body['txid']
|
|
281
|
+
txid: body['txid'],
|
|
282
|
+
arc_status: body['txStatus'].to_s.upcase
|
|
281
283
|
)
|
|
282
284
|
elsif !body['txid']
|
|
283
285
|
BroadcastError.new(
|
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
module BSV
|
|
4
4
|
module Network
|
|
5
5
|
class BroadcastError < StandardError
|
|
6
|
-
attr_reader :status_code, :txid
|
|
6
|
+
attr_reader :status_code, :txid, :arc_status
|
|
7
7
|
|
|
8
|
-
def initialize(message, status_code: nil, txid: nil)
|
|
8
|
+
def initialize(message, status_code: nil, txid: nil, arc_status: nil)
|
|
9
9
|
@status_code = status_code
|
|
10
10
|
@txid = txid
|
|
11
|
+
@arc_status = arc_status
|
|
11
12
|
super(message)
|
|
12
13
|
end
|
|
13
14
|
end
|
data/lib/bsv/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bsv-sdk
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.10.
|
|
4
|
+
version: 0.10.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Simon Bettison
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2026-04-
|
|
10
|
+
date: 2026-04-12 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: mcp
|