cns 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cns/bigquery1.rb +10 -10
- 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: 439f5efec89d8112201e07fdd0221ba66ab91c4c9bd2b0226f5758e5cfab3283
|
4
|
+
data.tar.gz: 37b7e4c60c173d462c0597b87b57457ed61dc50e1a649c6c73d033521f441762
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6304f5f565c63d5056329692baa00321b2baed18dec2fb2078c2725dc642f348f161891d28624818fa497a8e8e8802a07ad275ae3d22c9e22a51a9b51e7d9d8
|
7
|
+
data.tar.gz: '06081e978f7166ad78292a8702f1c14843cea67413dd46a8a87737d7bee4cfe09e2a1655e9090279d1dbb2815f638537d3098fd2b59c304711e9125eb54d3b60'
|
data/Gemfile.lock
CHANGED
data/lib/cns/bigquery1.rb
CHANGED
@@ -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
|
59
|
-
puts(format("%<n>4i LEDGER
|
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
|
65
|
-
puts(format("%<n>4i LEDGER
|
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
|
71
|
-
puts(format("%<n>4i LEDGER
|
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
|
77
|
-
puts(format("%<n>4i
|
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
|
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
|
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
|
data/lib/cns/version.rb
CHANGED