cns 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/cns/etherscan1.rb +2 -2
- data/lib/cns/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71fedde0768aae4c9777a3fbfeae091a8f1b67c0f638014d3e67eca4bad5bd24
|
4
|
+
data.tar.gz: 36f0d6b57fd16e29e30b98acdcf2e3c41445cb3828e78c468863d3d8bf13166e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9abb7c4776b89acafa9c473d440eaff56d57a96c4b987c3257fc0c3ed8b9acf3db0fb4dad617f97b4438d3bbd2eb00809b5614580aed6e4ee57022e65d407e9
|
7
|
+
data.tar.gz: 93dc39edab3c5aed51e8df631036a0198380ba77e1448b14b2e955281af9488c67039b7fcb41a41752cf52008a2cdf82b698d871a8cca830be52549044f0f2fa
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cns (0.2.
|
4
|
+
cns (0.2.3)
|
5
5
|
curb
|
6
6
|
faraday
|
7
7
|
google-cloud-bigquery
|
@@ -24,7 +24,7 @@ GEM
|
|
24
24
|
faraday-net_http (~> 1.0)
|
25
25
|
multipart-post (>= 1.2, < 3)
|
26
26
|
ruby2_keywords
|
27
|
-
faraday-net_http (1.0.
|
27
|
+
faraday-net_http (1.0.1)
|
28
28
|
google-api-client (0.52.0)
|
29
29
|
addressable (~> 2.5, >= 2.5.1)
|
30
30
|
googleauth (~> 0.9)
|
data/lib/cns/etherscan1.rb
CHANGED
@@ -68,7 +68,7 @@ module Cns
|
|
68
68
|
# @param [Hash] abc account etherscan
|
69
69
|
# @return [Hash] dados etherscan - address, saldo & transacoes
|
70
70
|
def base_bc(abc)
|
71
|
-
acc = abc[:account]
|
71
|
+
acc = abc[:account].downcase
|
72
72
|
{
|
73
73
|
ax: acc,
|
74
74
|
sl: (abc[:balance].to_d / 10**18).round(10),
|
@@ -99,7 +99,7 @@ module Cns
|
|
99
99
|
def filtrar_tx(add, ary)
|
100
100
|
# elimina transferencia from: (lax) to: (add) - esta transferencia aparece em from: (add) to: (lax)
|
101
101
|
# elimina chaves irrelevantes (DL) & adiciona chave indice itx & adiciona identificador da carteira iax
|
102
|
-
ary.delete_if { |odl| odl[:to]
|
102
|
+
ary.delete_if { |odl| add.casecmp?(odl[:to]) && lax.include?(odl[:from].downcase) }
|
103
103
|
.map { |omp| omp.delete_if { |key, _| DL.include?(key) }.merge(itx: Integer(omp[:blockNumber]), iax: add) }
|
104
104
|
end
|
105
105
|
|
data/lib/cns/version.rb
CHANGED