lib/cns/bigquery1.rb in cns-0.3.0 vs lib/cns/bigquery1.rb in cns-0.3.1

- old
+ new

@@ -36,21 +36,21 @@ apide.mostra_resumo apifr.mostra_resumo apimt.mostra_resumo apies.mostra_resumo apigm.mostra_resumo - apibc.mostra_resumo + # apibc.mostra_resumo end # insere (caso existam) dados novos kraken/bitcoinde/paymium/therock/etherscan/greymass/beaconchain no bigquery def processa_tudo processa_us processa_de processa_frmt processa_eth processa_eos - processa_bc + # processa_bc end private # insere transacoes exchange kraken novas nas tabelas ust (trades), usl (ledger) @@ -69,12 +69,14 @@ def processa_frmt puts(format("%<n>4i LEDGER\tPAYMIUM\t\tINSERIDAS fr", n: apifr.ledger.empty? ? 0 : dml(frl_ins))) puts(format("%<n>4i LEDGER\tTHEROCK\t\tINSERIDAS mt", n: apimt.ledger.empty? ? 0 : dml(mtl_ins))) end - # insere transacoes blockchain novas nas tabelas etht (norml), ethk (token) + # insere transacoes blockchain novas nas tabelas etht (norml), ethi (internas), ethp (block), ethk (token) def processa_eth - puts(format("%<n>4i TRANSACOES\tETH\t\tINSERIDAS etht", n: apies.novtx.empty? ? 0 : dml(etht_ins))) + puts(format("%<n>4i TRANSACOES ETH NORMAIS\tINSERIDAS etht", n: apies.novtx.empty? ? 0 : dml(etht_ins))) + puts(format("%<n>4i TRANSACOES ETH INTERNAS\tINSERIDAS ethi", n: apies.novix.empty? ? 0 : dml(ethi_ins))) + puts(format("%<n>4i TRANSACOES ETH BLOCK\tINSERIDAS ethp", n: apies.novpx.empty? ? 0 : dml(ethp_ins))) puts(format("%<n>4i TOKENS\tETH\t\tINSERIDAS ethk", n: apies.novkx.empty? ? 0 : dml(ethk_ins))) end # insere transacoes blockchain novas na tabela eos def processa_eos