cns 0.1.8 → 0.2.0
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/apibc.rb +1 -1
- data/lib/cns/bigquery1.rb +12 -12
- data/lib/cns/bigquery2.rb +1 -1
- data/lib/cns/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56d134edd3c53a143b01a710fa975dcaf61ff5a148d28bd2eeeeb59464ca26f1
|
4
|
+
data.tar.gz: 2827f4155796bf388e37bce268c8f16968ec55b9e4f749f8829f7d94404e0b15
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20d41b07046c5971e779498681f270bcd1801d4b771e1f494aadaea9930d3c47130282482a1857fd106d40fc47c9ba0f872f8b69cf714a2768d8a1f5c22c678e
|
7
|
+
data.tar.gz: 21725f7fe98bc861937183af6d858bcd410c1ba5452ec93ecd178421e7a159b3188a0cb54f40bab58e3e929596031b02651ed3bb7924a66d165abd3e7fd046f5
|
data/Gemfile.lock
CHANGED
data/lib/cns/apibc.rb
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>
|
59
|
-
puts(format("%<n>
|
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)))
|
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>
|
65
|
-
puts(format("%<n>
|
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)))
|
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>
|
71
|
-
puts(format("%<n>
|
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)))
|
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>
|
77
|
-
puts(format("%<n>
|
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)))
|
78
78
|
end
|
79
79
|
|
80
80
|
# insere transacoes blockchain novas na tabela eos
|
81
81
|
def processa_eos
|
82
|
-
puts(format("%<n>
|
82
|
+
puts(format("%<n>4i TRANSACOES EOS INSERIDAS #{BD}.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
|
-
# puts(format("%<n>
|
88
|
-
# puts(format("%<n>
|
89
|
-
puts(format("%<n>
|
87
|
+
# puts(format("%<n>4i ATTESTATIONS INSERIDAS #{BD}.eth2at", n: apibc.novtx.empty? ? 0 : dml(eth2at_ins)))
|
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)))
|
90
90
|
end
|
91
91
|
|
92
92
|
# cria job bigquery & verifica execucao
|
data/lib/cns/bigquery2.rb
CHANGED
@@ -15,7 +15,7 @@ module Cns
|
|
15
15
|
# @return [String] comando insert SQL formatado eth2bh
|
16
16
|
def eth2bh_ins
|
17
17
|
"insert #{BD}.eth2bh(balance,effectivebalance,epoch,validatorindex" \
|
18
|
-
") VALUES#{apibc.nov[0..
|
18
|
+
") VALUES#{apibc.nov[0..1000].map { |obj| eth2bh_1val(obj) }.join(',')}"
|
19
19
|
end
|
20
20
|
|
21
21
|
# @return [Etherscan] API blockchain ETH
|
data/lib/cns/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Hernâni Rodrigues Vaz
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-01-
|
11
|
+
date: 2021-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|