lib/solana_ruby/http_client.rb in solana-ruby-web3js-1.0.0 vs lib/solana_ruby/http_client.rb in solana-ruby-web3js-1.0.1.beta1
- old
+ new
@@ -1,11 +1,10 @@
# frozen_string_literal: true
require 'net/http'
require 'json'
require 'uri'
-require 'pry'
require 'base64'
require 'base58'
require_relative 'base_client'
Dir[File.join(__dir__, 'http_methods', '*.rb')].each { |file| require file }
@@ -39,22 +38,5 @@
rescue StandardError => e
handle_error(e)
end
end
end
-
-# # Testing ....
-
-# client = SolanaRuby::HttpClient.new("https://api.devnet.solana.com")
-
-# # # pubkeys = ["9B5XszUGdMaxCZ7uSQhPzdks5ZQSmWxrmzCSvtJ6Ns6g", "BuqVvwzGAwjZ2mVsxCDpPaqBeJCZxoMWaK6k9pKznkyE"]
-
-# signatures = ["4QV3nLZy8Z6oWynP7CuKV4XJwbCSiy3wzzSs2HRL5SrvrBqN4cxHGHPkBYeR2sQ5XPisFvPpEcthAynynvyu7YWp", "5w6EzfU9GjLyUmRmLRRUQd1c1sBUKotP21ehqZT5rw3jqRT3YNF7kz1HJXYCkZ1cYC57C76ETN1XY1F63JE2viGd"]
-# # # programId = "NativeLoader1111111111111111111111111111111"
-# # # owner_pubkey = "9mLs5EGBtCfEEV1wFuRAZwmyVQes7zTSqbvUbi25FD7P"
-# # # addresses = [pubkey]
-# # # options = { encoding: 'jsonParsed', commitment: 'finalized' }
-# # # token_account_pubkey = 'CQBoNEWHa8pFDdwuFeNsDaRfeVnLECZWC27zreSHDRUa'
-# # # tran = 'AQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEDArczbMia1tLmq7zz4DinMNN0pJ1JtLdqIJPUw3YrGCzYAMHBsgN27lcgB6H2WQvFgyZuJYHa46puOQo9yQ8CVQbd9uHXZaGT2cvhRs7reawctIXtX1s3kTqM9YV'
-# # rewards = client.get_slot()
-# inflation_rewards = client.get_transaction(signatures[1])
-# puts inflation_rewards
\ No newline at end of file