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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8a1cf9704e8ec6d00b5c85e0af4b8a55ab5358fbc650d37471bfe9201caf6dbf
4
- data.tar.gz: 0136a2129eabca46d1b6d23798e628f1e1c5c034e81d35fc350e0545aff14b6e
3
+ metadata.gz: 71fedde0768aae4c9777a3fbfeae091a8f1b67c0f638014d3e67eca4bad5bd24
4
+ data.tar.gz: 36f0d6b57fd16e29e30b98acdcf2e3c41445cb3828e78c468863d3d8bf13166e
5
5
  SHA512:
6
- metadata.gz: '05993d0c2cd1830d7e7e28f4a24dac4b0489b3fcdeabdc49f02e3be3f5b0bb76617f08f5c35973683361365371efd6ed04a38ba8667e65bdb4b1ce9f9c84bed4'
7
- data.tar.gz: 5d58eff9b68fab68f14c689700934c6bf47c728acdf03399b3a829e7ff860a30b105379d89af6cfb9a62140abc8b35d7506a1b411a1f9b637f589bed090f1bec
6
+ metadata.gz: b9abb7c4776b89acafa9c473d440eaff56d57a96c4b987c3257fc0c3ed8b9acf3db0fb4dad617f97b4438d3bbd2eb00809b5614580aed6e4ee57022e65d407e9
7
+ data.tar.gz: 93dc39edab3c5aed51e8df631036a0198380ba77e1448b14b2e955281af9488c67039b7fcb41a41752cf52008a2cdf82b698d871a8cca830be52549044f0f2fa
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cns (0.2.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.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)
@@ -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] == add && lax.include?(odl[:from]) }
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cns
4
- VERSION = '0.2.2'
4
+ VERSION = '0.2.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cns
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hernâni Rodrigues Vaz