cns 0.3.8 → 0.3.9

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: 2c9a5c258c826d1e40061b723fdd3fcd54a00fc4ca00a66dc3f966a27590e808
4
- data.tar.gz: 060b4b375474e47b5a0ebf90d5cccabe01ef00c745b0cfd3d2f67d62efccbf5f
3
+ metadata.gz: '09ec6b41ad03d5c325247f93965f8b5678183511658e350ed66a748189d740f1'
4
+ data.tar.gz: 1a0a33fab63109b9b0f5bc1d6942bd2a7d3df7267c73e665398675168324b211
5
5
  SHA512:
6
- metadata.gz: 98997f03f3031ac5536f128b3eaed7f3cf1ebbf77e854b15633d395e40c09fe751eeaf4672d6ccf33563f1a02ebfff006674fc7240071cc39b7e0c8d490b1564
7
- data.tar.gz: bc1ecfacb6ddf886ac425713da2d08c934953d20f649bf434df9606b2471a2aaec396dddeb63f77801af935ef4bb785441eedc933a40e83ad73c32c18fadee3d
6
+ metadata.gz: f09a8091f549786ece0d79ebccf2626d6c5bd03736b8967e1abd158753efda8a8e1c020366bee743e8aea29cdbbeab0015a8349bbdacc0ac7655866c432ad256
7
+ data.tar.gz: 829489a9a52691fea47a509f99cc4347228f8665cf3d45b4fcaf5fbdff2a96d9d0d88dc7ee3929edc87de6d3f443f0d9e5214f2dbcf9ce9120f40984cccc0241
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cns (0.3.8)
4
+ cns (0.3.9)
5
5
  curb
6
6
  faraday
7
7
  google-cloud-bigquery
data/lib/cns/bigquery.rb CHANGED
@@ -51,7 +51,7 @@ module Cns
51
51
  #processa_bc
52
52
  end
53
53
 
54
- # insere transacoes blockchain novas nas tabelas etht (norml), ethi (internas), ethp (block), ethk (token)
54
+ # insere transacoes blockchain novas nas tabelas etht (norml), ethi (internas), ethp (block), ethw (withdrawals), ethk (token)
55
55
  def processa_eth
56
56
  puts(format("%<n>4i TRANSACOES ETH NORMAIS\tINSERIDAS etht", n: apies.novtx.empty? ? 0 : dml(etht_ins)))
57
57
  puts(format("%<n>4i TRANSACOES ETH INTERNAS\tINSERIDAS ethi", n: apies.novix.empty? ? 0 : dml(ethi_ins)))
@@ -60,6 +60,11 @@ module Cns
60
60
  puts(format("%<n>4i TOKENS\tETH\t\tINSERIDAS ethk", n: apies.novkx.empty? ? 0 : dml(ethk_ins)))
61
61
  end
62
62
 
63
+ # insere transacoes blockchain novas nas tabelas etht (norml), ethi (internas), ethp (block), ethw (withdrawals), ethk (token)
64
+ def processa_weth
65
+ puts(format("%<m>16s etht %<t>4i NORMAIS\t;ethi %<i>4i INTERNAS\t;ethp %<p>4i BLOCK\t;ethw %<w>4i WITHDRAWALS\t;ethk %<k>4i TOKENS", m: Time.now.strftime("%Y-%m-%d %k:%M"), t: apies.novtx.empty? ? 0 : dml(etht_ins), i: apies.novix.empty? ? 0 : dml(ethi_ins), p: apies.novpx.empty? ? 0 : dml(ethp_ins), w: apies.novwx.empty? ? 0 : dml(ethw_ins), k: apies.novkx.empty? ? 0 : dml(ethk_ins)))
66
+ end
67
+
63
68
  private
64
69
 
65
70
  # insere transacoes exchange kraken novas nas tabelas ust (trades), usl (ledger)
data/lib/cns/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cns
4
- VERSION = '0.3.8'
4
+ VERSION = '0.3.9'
5
5
  end
data/lib/cns.rb CHANGED
@@ -20,7 +20,7 @@ module Cns
20
20
  option :h, type: :hash, default: {}, desc: 'configuracao ajuste reposicionamento temporal'
21
21
  # carrega transacoes eth no bigquery
22
22
  def weth
23
- Bigquery.new(options).processa_eth
23
+ Bigquery.new(options).processa_weth
24
24
  end
25
25
 
26
26
  desc 'work', 'carrega transacoes novas no bigquery'
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.3.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hernâni Rodrigues Vaz