solana-ruby 0.1.4 → 0.1.5
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/lib/solana-ruby/client.rb +4 -6
- data/lib/solana-ruby/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: 2e0202ab58e2b0ccb77296d5ffa26a1408527e52dbc3e35231c6751b2b7d4a5c
|
4
|
+
data.tar.gz: f2fa02339b07a39149bad5a5466b976df22af33065ad870481313d2b23a450ef
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bea7c63739520e701323f6449b21d097eebbf31e79dc659d0ccc1417baa113ef64e786f6d2006c910f5773f12bd157e0606ee6e56409946bdabbe2116abf5466
|
7
|
+
data.tar.gz: 4b00e4f10ea497dec5a32515b323b1eb5b76f2a0e3a34c4b9a91b7b80c2913ff6a2c5441bc5e51278262b08d4060a27141dff0813a87b5fa3d599c9475e94ac0
|
data/lib/solana-ruby/client.rb
CHANGED
@@ -12,9 +12,8 @@ module Solana
|
|
12
12
|
##
|
13
13
|
# Initializes a new Client.
|
14
14
|
#
|
15
|
-
# @param [String, nil]
|
16
|
-
def initialize(api_endpoint = Solana::Utils::MAINNET
|
17
|
-
@api_key = api_key
|
15
|
+
# @param [String, nil] api_endpoint Optional API endpoint. Mainnet by default
|
16
|
+
def initialize(api_endpoint = Solana::Utils::MAINNET)
|
18
17
|
@api_endpoint = api_endpoint
|
19
18
|
end
|
20
19
|
|
@@ -80,7 +79,6 @@ module Solana
|
|
80
79
|
# Retrieves the estimated production time of a specific block.
|
81
80
|
#
|
82
81
|
# @param [Integer] slot_number The slot number of the block.
|
83
|
-
# @param [Hash] options Optional parameters for the request.
|
84
82
|
# @return [Integer] The estimated production time in seconds.
|
85
83
|
def get_block_time(slot_number, &block)
|
86
84
|
request_http('getBlockTime', [slot_number], &block)
|
@@ -286,6 +284,7 @@ module Solana
|
|
286
284
|
##
|
287
285
|
# Retrieves recent performance samples.
|
288
286
|
#
|
287
|
+
# @param [Integer] limit The number of performance samples to retrieve.
|
289
288
|
# @param [Hash] options Optional parameters for the request.
|
290
289
|
# @return [Array<Hash>] The recent performance samples.
|
291
290
|
def get_recent_performance_samples(limit = 720, options = {}, &block)
|
@@ -295,7 +294,7 @@ module Solana
|
|
295
294
|
##
|
296
295
|
# Retrieves recent prioritization fees.
|
297
296
|
#
|
298
|
-
# @param [
|
297
|
+
# @param [Array<String>] addresses Optional array of addresses to filter the fees by.
|
299
298
|
# @return [Hash] The recent prioritization fees.
|
300
299
|
def get_recent_prioritization_fees(addresses = [], &block)
|
301
300
|
request_http('getRecentPrioritizationFees', [addresses], &block)
|
@@ -410,7 +409,6 @@ module Solana
|
|
410
409
|
request_http('getTokenAccountsByOwner', [owner, opts, options], &block)
|
411
410
|
end
|
412
411
|
|
413
|
-
## TODO
|
414
412
|
##
|
415
413
|
# Retrieves the largest accounts for a given token.
|
416
414
|
#
|
data/lib/solana-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: solana-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Fabrice Renard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httpx
|