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 +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/bsv/network/arc.rb +1 -1
- data/lib/bsv/transaction/chain_trackers/chaintracks.rb +2 -2
- data/lib/bsv/transaction/fee_models/live_policy.rb +3 -3
- data/lib/bsv/version.rb +1 -1
- data/lib/bsv-sdk.rb +3 -0
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dcf5a5168875f0ff711c5bd328a513689dca51ec26e7d2c1ccf48a0ba54389d9
|
|
4
|
+
data.tar.gz: 378499b7a78c41aa0b10026cf40a3dcf80b07e66a0df2c9c364336d9180a0051
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/bsv/network/arc.rb
CHANGED
|
@@ -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 ?
|
|
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 =
|
|
24
|
-
TESTNET_URL =
|
|
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://
|
|
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 =
|
|
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://
|
|
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
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'
|