etherscan 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/etherscan.gemspec +1 -1
- data/lib/etherscan/api.rb +9 -0
- data/lib/etherscan/call.rb +3 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd1bba3e4b131a069593627bf0e5ac9fdd26de76
|
4
|
+
data.tar.gz: 335e038046944878b6d97441ac4a0dac349bc4da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e02bd1e2e92aa4cc1a7b8eb9fca4c2fe19bb2b67d0e138c119f5b45897781e381761bb7ddf74528bf5213064192aefdf939c2b0e45066f910f76871f6c6af3d9
|
7
|
+
data.tar.gz: c3ff7a3153008b782744854057f5947b36fb8511187dd39ac2f3729f6838ec71c288942f9886b0914d7ba717b8af7cb022bdfc4ef0658bdc15f9f03a430b966d
|
data/etherscan.gemspec
CHANGED
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |spec|
|
7
7
|
spec.name = 'etherscan'
|
8
|
-
spec.version = '0.0.
|
8
|
+
spec.version = '0.0.8'
|
9
9
|
spec.authors = ['wuminzhe']
|
10
10
|
spec.email = ['wuminzhe@gmail.com']
|
11
11
|
spec.description = 'Forked from: https://github.com/sebs/etherscanio-rb. 3rd party using to the API at etherscan.io'
|
data/lib/etherscan/api.rb
CHANGED
@@ -134,6 +134,15 @@ module Etherscan
|
|
134
134
|
call.txhash = txhash
|
135
135
|
call.fetch
|
136
136
|
end
|
137
|
+
|
138
|
+
def eth_call(to, data, tag)
|
139
|
+
call = Etherscan::Call.new(Etherscan.chain, 'proxy', 'eth_call')
|
140
|
+
call.api_key = Etherscan.api_key
|
141
|
+
call.to = to
|
142
|
+
call.data = data
|
143
|
+
call.tag = tag
|
144
|
+
call.fetch
|
145
|
+
end
|
137
146
|
end
|
138
147
|
end
|
139
148
|
end
|
data/lib/etherscan/call.rb
CHANGED