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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f642549d635214afc3acc2ff532381e566efde31
4
- data.tar.gz: c682141386a50286449fefdb50edb81521bb969e
3
+ metadata.gz: cd1bba3e4b131a069593627bf0e5ac9fdd26de76
4
+ data.tar.gz: 335e038046944878b6d97441ac4a0dac349bc4da
5
5
  SHA512:
6
- metadata.gz: 586014073fa5204b3a73e17917cd3f2460c779f99f22a5283a36b76febeb47f442fb157f7b59facf62b4d3534e9c550880a9660395394c91414e8d7a50d955ea
7
- data.tar.gz: ad7889a61b7ed70192d241ae85e3901bf10d1448cecca9242e3ee9cf995f7f4f36b11b19b470e2e283262f829dcc0cb8339082630eb5beef052c3fbb90db2652
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.7'
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
@@ -19,7 +19,9 @@ module Etherscan
19
19
  :txhash,
20
20
  :blockno,
21
21
  :hex,
22
- :boolean
22
+ :boolean,
23
+ :data,
24
+ :to
23
25
 
24
26
  CHAINS = {
25
27
  mainnet: 'http://api.etherscan.io/api?',
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etherscan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - wuminzhe