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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 264bf278568bb64d32cd8445708f29436478c0b9a2bee01e74a71a00549e46f9
4
- data.tar.gz: 0a29a5a53bac041332971c8a51628289ced3606423b4f02777780eac7171eeeb
3
+ metadata.gz: 5c8eb40d6b6cfbf03769704b141d681d92229d780abf1efe4d9e32a01db4c90d
4
+ data.tar.gz: 43950d736297f149ad6fff69d88ebe342111dc1c9259b3fb5b0b78ea90492e47
5
5
  SHA512:
6
- metadata.gz: fa512a05a6afb7099c94c55a54524623ab0706fddc4b7836315f4750e6ad69abc438581aea4707e1ae6e93b23437868960a7c2bbfca8b86848d676cd587bbd7b
7
- data.tar.gz: 35d2b3175fa5c5c65a200756e7c9abb64166b44fc370cac38ecb29a8faefdba641de60a07cdb2d9f3d12a695784b09eea8ba12b502865222073fdfe171251b91
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
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BSV
4
- VERSION = '0.10.0'
4
+ VERSION = '0.10.1'
5
5
  end
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.0
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-11 00:00:00.000000000 Z
10
+ date: 2026-04-12 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: mcp