bsv-sdk 0.11.0 → 0.11.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: 392488d3baa5c87f80eda541ca38b55ef0c4c55aa0848acdee995e6f4d1b79b1
4
- data.tar.gz: 10bc2f546ec61020eac37158792de00328db64150d1f394375e4287cf32c5ab2
3
+ metadata.gz: dcf5a5168875f0ff711c5bd328a513689dca51ec26e7d2c1ccf48a0ba54389d9
4
+ data.tar.gz: 378499b7a78c41aa0b10026cf40a3dcf80b07e66a0df2c9c364336d9180a0051
5
5
  SHA512:
6
- metadata.gz: 973064e412dba805c930504c065fac014bfda41ef0306129e7035516b8c4f3f4450b1935667531ef2711a44ef8aad5bddecd146d36f3d35cb6fd2505bbc5be17
7
- data.tar.gz: 46f59effd056e78c6a93d3fadcd4858550fc405a97032201e7d8daa2fdbcef60eb13fd87e15597b0250c4a7acebfa1773d76f095ea349baadf56ef27f2a3fb44
6
+ metadata.gz: fb7ad05f65c746db6ad60cd7d85ff90067df2f70d11f88ae65beed84521479fa9c898261d56ca18a220c774f98532d8cc367ac1f85a22b6fd287e283eb0285d5
7
+ data.tar.gz: ae3baed0d279ffb883267656a0a3734a3192f9f84d9bdd8f6f67d4e50adbf01bbdcea3e1ab9f079572afb5f4a86c537b39eaca34821e8ed5d2c02b192a6d0ab9
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.11.1 — 2026-04-13
9
+
10
+ ### Fixed
11
+ - `ARC.default` and `LivePolicy::DEFAULT_ARC_URL` now point to `arcade.gorillapool.io` (ARCADE) instead of the old `arc.gorillapool.io` endpoint (#418)
12
+ - Centralised ARCADE URLs into `BSV::MAINNET_URL` / `BSV::TESTNET_URL` constants, overridable via `BSV_ARC_MAINNET_URL` and `BSV_ARC_TESTNET_URL` environment variables
13
+
8
14
  ## 0.11.0 — 2026-04-12
9
15
 
10
16
  ### Added
@@ -21,7 +21,7 @@ module BSV
21
21
  # @param opts [Hash] forwarded to {#initialize} (e.g. +api_key:+, +callback_url:+)
22
22
  # @return [ARC]
23
23
  def self.default(testnet: false, **opts)
24
- url = testnet ? 'https://testnet.arc.gorillapool.io' : 'https://arc.gorillapool.io'
24
+ url = testnet ? TESTNET_URL : MAINNET_URL
25
25
  new(url, **opts)
26
26
  end
27
27
 
@@ -20,8 +20,8 @@ module BSV
20
20
  # tracker = BSV::Transaction::ChainTrackers::Chaintracks.new(api_key: 'my-key')
21
21
  # tracker.current_height
22
22
  class Chaintracks < ChainTracker
23
- MAINNET_URL = 'https://arcade.gorillapool.io'
24
- TESTNET_URL = 'https://testnet.arcade.gorillapool.io'
23
+ MAINNET_URL = BSV::MAINNET_URL
24
+ TESTNET_URL = BSV::TESTNET_URL
25
25
 
26
26
  # @param url [String] base URL for the Chaintracks API
27
27
  # @param api_key [String, nil] optional Bearer API key
@@ -16,7 +16,7 @@ module BSV
16
16
  #
17
17
  # @example
18
18
  # model = BSV::Transaction::FeeModels::LivePolicy.new(
19
- # arc_url: 'https://arc.gorillapool.io',
19
+ # arc_url: 'https://arcade.gorillapool.io',
20
20
  # fallback_rate: 50
21
21
  # )
22
22
  # fee = model.compute_fee(transaction)
@@ -32,7 +32,7 @@ module BSV
32
32
  # @return [Integer] cache TTL in seconds
33
33
  attr_reader :cache_ttl
34
34
 
35
- DEFAULT_ARC_URL = 'https://arc.gorillapool.io'
35
+ DEFAULT_ARC_URL = BSV::MAINNET_URL
36
36
  DEFAULT_FALLBACK_RATE = 100
37
37
 
38
38
  # Returns a LivePolicy with sensible defaults (GorillaPool ARC,
@@ -44,7 +44,7 @@ module BSV
44
44
  new(arc_url: DEFAULT_ARC_URL, fallback_rate: DEFAULT_FALLBACK_RATE, api_key: api_key)
45
45
  end
46
46
 
47
- # @param arc_url [String] ARC base URL (e.g. 'https://arc.gorillapool.io')
47
+ # @param arc_url [String] ARC base URL (e.g. 'https://arcade.gorillapool.io')
48
48
  # @param fallback_rate [Integer] sat/kB to use when fetch fails (default: 100)
49
49
  # @param cache_ttl [Integer] seconds to cache a fetched rate (default: 300)
50
50
  # @param api_key [String, nil] optional Bearer token for ARC authentication
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.11.0'
4
+ VERSION = '0.11.1'
5
5
  end
data/lib/bsv-sdk.rb CHANGED
@@ -3,6 +3,9 @@
3
3
  require_relative 'bsv/version'
4
4
 
5
5
  module BSV
6
+ MAINNET_URL = ENV['BSV_ARC_MAINNET_URL'] || 'https://arcade.gorillapool.io'
7
+ TESTNET_URL = ENV['BSV_ARC_TESTNET_URL'] || 'https://testnet.arcade.gorillapool.io'
8
+
6
9
  autoload :Primitives, 'bsv/primitives'
7
10
  autoload :Script, 'bsv/script'
8
11
  autoload :Transaction, 'bsv/transaction'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bsv-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.11.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Bettison