cns 0.3.8 → 0.3.9
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/cns/bigquery.rb +6 -1
- data/lib/cns/version.rb +1 -1
- data/lib/cns.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: '09ec6b41ad03d5c325247f93965f8b5678183511658e350ed66a748189d740f1'
|
|
4
|
+
data.tar.gz: 1a0a33fab63109b9b0f5bc1d6942bd2a7d3df7267c73e665398675168324b211
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f09a8091f549786ece0d79ebccf2626d6c5bd03736b8967e1abd158753efda8a8e1c020366bee743e8aea29cdbbeab0015a8349bbdacc0ac7655866c432ad256
|
|
7
|
+
data.tar.gz: 829489a9a52691fea47a509f99cc4347228f8665cf3d45b4fcaf5fbdff2a96d9d0d88dc7ee3929edc87de6d3f443f0d9e5214f2dbcf9ce9120f40984cccc0241
|
data/Gemfile.lock
CHANGED
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
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).
|
|
23
|
+
Bigquery.new(options).processa_weth
|
|
24
24
|
end
|
|
25
25
|
|
|
26
26
|
desc 'work', 'carrega transacoes novas no bigquery'
|