cns 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 56d134edd3c53a143b01a710fa975dcaf61ff5a148d28bd2eeeeb59464ca26f1
4
- data.tar.gz: 2827f4155796bf388e37bce268c8f16968ec55b9e4f749f8829f7d94404e0b15
3
+ metadata.gz: 439f5efec89d8112201e07fdd0221ba66ab91c4c9bd2b0226f5758e5cfab3283
4
+ data.tar.gz: 37b7e4c60c173d462c0597b87b57457ed61dc50e1a649c6c73d033521f441762
5
5
  SHA512:
6
- metadata.gz: 20d41b07046c5971e779498681f270bcd1801d4b771e1f494aadaea9930d3c47130282482a1857fd106d40fc47c9ba0f872f8b69cf714a2768d8a1f5c22c678e
7
- data.tar.gz: 21725f7fe98bc861937183af6d858bcd410c1ba5452ec93ecd178421e7a159b3188a0cb54f40bab58e3e929596031b02651ed3bb7924a66d165abd3e7fd046f5
6
+ metadata.gz: c6304f5f565c63d5056329692baa00321b2baed18dec2fb2078c2725dc642f348f161891d28624818fa497a8e8e8802a07ad275ae3d22c9e22a51a9b51e7d9d8
7
+ data.tar.gz: '06081e978f7166ad78292a8702f1c14843cea67413dd46a8a87737d7bee4cfe09e2a1655e9090279d1dbb2815f638537d3098fd2b59c304711e9125eb54d3b60'
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cns (0.2.0)
4
+ cns (0.2.1)
5
5
  curb
6
6
  faraday
7
7
  google-cloud-bigquery
@@ -55,38 +55,38 @@ module Cns
55
55
 
56
56
  # insere transacoes exchange kraken novas nas tabelas ust (trades), usl (ledger)
57
57
  def processa_us
58
- puts(format("%<n>4i TRADES KRAKEN INSERIDAS #{BD}.ust", n: apius.trades.empty? ? 0 : dml(ust_ins)))
59
- puts(format("%<n>4i LEDGER KRAKEN INSERIDAS #{BD}.usl", n: apius.ledger.empty? ? 0 : dml(usl_ins)))
58
+ puts(format("%<n>4i TRADES\tKRAKEN\t\tINSERIDAS ust", n: apius.trades.empty? ? 0 : dml(ust_ins)))
59
+ puts(format("%<n>4i LEDGER\tKRAKEN\t\tINSERIDAS usl", n: apius.ledger.empty? ? 0 : dml(usl_ins)))
60
60
  end
61
61
 
62
62
  # insere transacoes exchange bitcoinde novas nas tabelas det (trades), del (ledger)
63
63
  def processa_de
64
- puts(format("%<n>4i TRADES BITCOINDE INSERIDAS #{BD}.det", n: apide.trades.empty? ? 0 : dml(det_ins)))
65
- puts(format("%<n>4i LEDGER BITCOINDE INSERIDAS #{BD}.del", n: apide.ledger.empty? ? 0 : dml(del_ins)))
64
+ puts(format("%<n>4i TRADES\tBITCOINDE\tINSERIDAS det", n: apide.trades.empty? ? 0 : dml(det_ins)))
65
+ puts(format("%<n>4i LEDGER\tBITCOINDE\tINSERIDAS del", n: apide.ledger.empty? ? 0 : dml(del_ins)))
66
66
  end
67
67
 
68
68
  # insere transacoes exchange paymium/therock novas na tabela fr/mt (ledger)
69
69
  def processa_frmt
70
- puts(format("%<n>4i LEDGER PAYMIUM INSERIDAS #{BD}.fr", n: apifr.ledger.empty? ? 0 : dml(frl_ins)))
71
- puts(format("%<n>4i LEDGER THEROCK INSERIDAS #{BD}.mt", n: apimt.ledger.empty? ? 0 : dml(mtl_ins)))
70
+ puts(format("%<n>4i LEDGER\tPAYMIUM\t\tINSERIDAS fr", n: apifr.ledger.empty? ? 0 : dml(frl_ins)))
71
+ puts(format("%<n>4i LEDGER\tTHEROCK\t\tINSERIDAS mt", n: apimt.ledger.empty? ? 0 : dml(mtl_ins)))
72
72
  end
73
73
 
74
74
  # insere transacoes blockchain novas nas tabelas etht (norml), ethk (token)
75
75
  def processa_eth
76
- puts(format("%<n>4i TRANSACOES ETH INSERIDAS #{BD}.etht", n: apies.novtx.empty? ? 0 : dml(etht_ins)))
77
- puts(format("%<n>4i TOKEN EVENTS ETH INSERIDAS #{BD}.ethk", n: apies.novkx.empty? ? 0 : dml(ethk_ins)))
76
+ puts(format("%<n>4i TRANSACOES\tETH\t\tINSERIDAS etht", n: apies.novtx.empty? ? 0 : dml(etht_ins)))
77
+ puts(format("%<n>4i TOKENS\tETH\t\tINSERIDAS ethk", n: apies.novkx.empty? ? 0 : dml(ethk_ins)))
78
78
  end
79
79
 
80
80
  # insere transacoes blockchain novas na tabela eos
81
81
  def processa_eos
82
- puts(format("%<n>4i TRANSACOES EOS INSERIDAS #{BD}.eos ", n: apigm.novax.empty? ? 0 : dml(eost_ins)))
82
+ puts(format("%<n>4i TRANSACOES\tEOS\t\tINSERIDAS eos ", n: apigm.novax.empty? ? 0 : dml(eost_ins)))
83
83
  end
84
84
 
85
85
  # insere historico sados novos na tabela eth2bh
86
86
  def processa_bc
87
87
  # puts(format("%<n>4i ATTESTATIONS INSERIDAS #{BD}.eth2at", n: apibc.novtx.empty? ? 0 : dml(eth2at_ins)))
88
88
  # puts(format("%<n>4i PROPOSALS INSERIDAS #{BD}.eth2pr", n: apibc.novkx.empty? ? 0 : dml(eth2pr_ins)))
89
- puts(format("%<n>4i BALANCES INSERIDOS #{BD}.eth2bh", n: apibc.nov.empty? ? 0 : dml(eth2bh_ins)))
89
+ puts(format("%<n>4i BALANCES\tETH2\t\tINSERIDOS eth2bh", n: apibc.nov.empty? ? 0 : dml(eth2bh_ins)))
90
90
  end
91
91
 
92
92
  # cria job bigquery & verifica execucao
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cns
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
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.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hernâni Rodrigues Vaz