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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0009e34787d1786fde5b184a9e9d4ba090b52175abd8cc5d2efba47dbbc8eea9'
4
- data.tar.gz: 3761ee4dcb2b182b8469c60814045581180770e555844dc74caf27ef27c3364a
3
+ metadata.gz: 2e0202ab58e2b0ccb77296d5ffa26a1408527e52dbc3e35231c6751b2b7d4a5c
4
+ data.tar.gz: f2fa02339b07a39149bad5a5466b976df22af33065ad870481313d2b23a450ef
5
5
  SHA512:
6
- metadata.gz: 77af58126eb32a211745baa0e1ce8d9a22249723bd2e77f4669d497e841ba7f55c74d0e5cb464f0ee75a195351a4ae1f73bf82677d3bcb19ad09d891088ab773
7
- data.tar.gz: 70694ab44025b3fe3ad4310f5e49f1649fabb6254c766a369ae4da4f2c8b4bb15a8c6f0c8d2ecd1f9b9803e5c907d62949cc463b16634a8ac0ae7b2ee93a4f2c
6
+ metadata.gz: bea7c63739520e701323f6449b21d097eebbf31e79dc659d0ccc1417baa113ef64e786f6d2006c910f5773f12bd157e0606ee6e56409946bdabbe2116abf5466
7
+ data.tar.gz: 4b00e4f10ea497dec5a32515b323b1eb5b76f2a0e3a34c4b9a91b7b80c2913ff6a2c5441bc5e51278262b08d4060a27141dff0813a87b5fa3d599c9475e94ac0
@@ -12,9 +12,8 @@ module Solana
12
12
  ##
13
13
  # Initializes a new Client.
14
14
  #
15
- # @param [String, nil] api_key Optional API key for authentication.
16
- def initialize(api_endpoint = Solana::Utils::MAINNET, api_key = nil)
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 [Hash] options Optional parameters for the request.
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
  #
@@ -1,3 +1,3 @@
1
1
  module Solana
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.5'.freeze
3
3
  end
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
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-02 00:00:00.000000000 Z
11
+ date: 2024-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httpx