tron.rb 1.0.2 → 1.0.3
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/tron/version.rb +1 -1
- data/lib/tron.rb +10 -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: 47245c19132066a0f55673961d9bd8501bef9377debef4eaadc9e2ed879915e7
|
|
4
|
+
data.tar.gz: 589e32a25eab5e81040e094e3178f334084830b0abf023b290e13b0c8d6720f6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b690a27e2d498cd3f30fa5ac6390ef7a789a4c1f3647b144e13ea81e9a9caa894e73ca71c44f5d2b8f649a36cc5bfd1bb55ac03b396f4e95e71fe1f01bae8f8a
|
|
7
|
+
data.tar.gz: a25185d641615a26d40bcbb21ea8fb6f0fc6bf9aea69d842fe54d159cc0932a932f34966ce1d72bf2353ab945540b32c9ddaacff7c7338996fdaacfaeb231632
|
data/lib/tron/version.rb
CHANGED
data/lib/tron.rb
CHANGED
|
@@ -8,7 +8,12 @@ require_relative 'tron/configuration'
|
|
|
8
8
|
module Tron
|
|
9
9
|
class << self
|
|
10
10
|
def client
|
|
11
|
-
@client ||= Client.new
|
|
11
|
+
@client ||= Client.new(
|
|
12
|
+
api_key: Client.configuration.api_key,
|
|
13
|
+
tronscan_api_key: Client.configuration.tronscan_api_key,
|
|
14
|
+
network: Client.configuration.network,
|
|
15
|
+
timeout: Client.configuration.timeout
|
|
16
|
+
)
|
|
12
17
|
end
|
|
13
18
|
|
|
14
19
|
def configure(&block)
|
|
@@ -16,6 +21,10 @@ module Tron
|
|
|
16
21
|
Client.configure(&block)
|
|
17
22
|
end
|
|
18
23
|
|
|
24
|
+
def configuration
|
|
25
|
+
Client.configuration
|
|
26
|
+
end
|
|
27
|
+
|
|
19
28
|
# Delegate common methods to the default client
|
|
20
29
|
def method_missing(method, *args, &block)
|
|
21
30
|
if client.respond_to?(method)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tron.rb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.
|
|
4
|
+
version: 1.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Your Name
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-10-
|
|
11
|
+
date: 2025-10-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: base58
|