cns 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +26 -29
- data/lib/cns/bigquery1.rb +8 -8
- data/lib/cns/version.rb +1 -1
- data/lib/cns.rb +7 -0
- 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: ba2ef03e5bc93d772b32c6bbf375ae4322778e4ff00ca43fddf5c041924f4597
|
4
|
+
data.tar.gz: 63c40eebbcb8ca9425153db0a6113659b1ef7f3b16f00b3faa7153e1af04d79d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c32420b68e4ab9e8b4015b2ad2bf55d6b668da22a7ef58e71b57deb6a908961f2050057c3d7bb80b189fc13b365d239282e9aefce7beca59a7534388431cd2dd
|
7
|
+
data.tar.gz: bb370c40be2ed5ae0b3da752270ddbe44746e9f584c1a14715e23a76a5aa0b3c5431e9587504c64d074ad49c89c65b78bda6cad8580527842f1d1862e4940836
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
cns (0.3.
|
4
|
+
cns (0.3.2)
|
5
5
|
curb
|
6
6
|
faraday
|
7
7
|
google-cloud-bigquery
|
@@ -18,15 +18,14 @@ GEM
|
|
18
18
|
concurrent-ruby (1.1.10)
|
19
19
|
curb (1.0.1)
|
20
20
|
declarative (0.0.20)
|
21
|
-
diff-lcs (1.5.0)
|
22
21
|
e2mmap (0.1.0)
|
23
22
|
faraday (2.6.0)
|
24
23
|
faraday-net_http (>= 2.0, < 3.1)
|
25
24
|
ruby2_keywords (>= 0.0.4)
|
26
|
-
faraday-net_http (3.0.
|
27
|
-
google-apis-bigquery_v2 (0.
|
25
|
+
faraday-net_http (3.0.2)
|
26
|
+
google-apis-bigquery_v2 (0.42.0)
|
28
27
|
google-apis-core (>= 0.9.0, < 2.a)
|
29
|
-
google-apis-core (0.9.
|
28
|
+
google-apis-core (0.9.1)
|
30
29
|
addressable (~> 2.5, >= 2.5.1)
|
31
30
|
googleauth (>= 0.16.2, < 2.a)
|
32
31
|
httpclient (>= 2.8.1, < 3.a)
|
@@ -47,7 +46,7 @@ GEM
|
|
47
46
|
google-cloud-env (1.6.0)
|
48
47
|
faraday (>= 0.17.3, < 3.0)
|
49
48
|
google-cloud-errors (1.3.0)
|
50
|
-
googleauth (1.
|
49
|
+
googleauth (1.3.0)
|
51
50
|
faraday (>= 0.17.3, < 3.a)
|
52
51
|
jwt (>= 1.4, < 3.0)
|
53
52
|
memoist (~> 0.16)
|
@@ -56,7 +55,6 @@ GEM
|
|
56
55
|
signet (>= 0.16, < 2.a)
|
57
56
|
httpclient (2.8.3)
|
58
57
|
jaro_winkler (1.5.4)
|
59
|
-
json (2.6.2)
|
60
58
|
jwt (2.5.0)
|
61
59
|
kramdown (2.4.0)
|
62
60
|
rexml
|
@@ -66,19 +64,21 @@ GEM
|
|
66
64
|
memoist (0.16.2)
|
67
65
|
mini_mime (1.1.2)
|
68
66
|
multi_json (1.15.0)
|
69
|
-
nokogiri (1.13.
|
67
|
+
nokogiri (1.13.9-x86_64-linux)
|
70
68
|
racc (~> 1.4)
|
71
69
|
os (1.1.4)
|
72
70
|
parallel (1.22.1)
|
73
|
-
parser (
|
71
|
+
parser (2.7.2.0)
|
74
72
|
ast (~> 2.4.1)
|
73
|
+
psych (3.3.4)
|
75
74
|
public_suffix (5.0.0)
|
76
75
|
racc (1.6.0)
|
77
76
|
rainbow (3.1.1)
|
78
77
|
rake (12.3.3)
|
79
|
-
reek (6.
|
78
|
+
reek (6.0.2)
|
80
79
|
kwalify (~> 0.7.0)
|
81
|
-
parser (
|
80
|
+
parser (>= 2.5.0.0, < 2.8, != 2.5.1.1)
|
81
|
+
psych (~> 3.1)
|
82
82
|
rainbow (>= 2.0, < 4.0)
|
83
83
|
regexp_parser (2.6.0)
|
84
84
|
representable (3.2.0)
|
@@ -89,24 +89,22 @@ GEM
|
|
89
89
|
reverse_markdown (2.1.1)
|
90
90
|
nokogiri
|
91
91
|
rexml (3.2.5)
|
92
|
-
rubocop (1.
|
93
|
-
json (~> 2.3)
|
92
|
+
rubocop (1.7.0)
|
94
93
|
parallel (~> 1.10)
|
95
|
-
parser (>=
|
94
|
+
parser (>= 2.7.1.5)
|
96
95
|
rainbow (>= 2.2.2, < 4.0)
|
97
96
|
regexp_parser (>= 1.8, < 3.0)
|
98
|
-
rexml
|
99
|
-
rubocop-ast (>= 1.
|
97
|
+
rexml
|
98
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
100
99
|
ruby-progressbar (~> 1.7)
|
101
|
-
unicode-display_width (>= 1.4.0, <
|
102
|
-
rubocop-ast (1.
|
103
|
-
parser (>=
|
100
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
101
|
+
rubocop-ast (1.4.1)
|
102
|
+
parser (>= 2.7.1.5)
|
104
103
|
rubocop-rake (0.6.0)
|
105
104
|
rubocop (~> 1.0)
|
106
|
-
ruby-lint (
|
107
|
-
parser (
|
108
|
-
|
109
|
-
slop
|
105
|
+
ruby-lint (2.3.1)
|
106
|
+
parser (~> 2.2)
|
107
|
+
slop (~> 3.4, >= 3.4.7)
|
110
108
|
ruby-progressbar (1.11.0)
|
111
109
|
ruby2_keywords (0.0.5)
|
112
110
|
signet (0.17.0)
|
@@ -114,17 +112,16 @@ GEM
|
|
114
112
|
faraday (>= 0.17.5, < 3.a)
|
115
113
|
jwt (>= 1.5, < 3.0)
|
116
114
|
multi_json (~> 1.10)
|
117
|
-
slop (
|
118
|
-
solargraph (0.
|
119
|
-
backport (~> 1.
|
115
|
+
slop (3.6.0)
|
116
|
+
solargraph (0.40.1)
|
117
|
+
backport (~> 1.1)
|
120
118
|
benchmark
|
121
119
|
bundler (>= 1.17.2)
|
122
|
-
diff-lcs (~> 1.4)
|
123
120
|
e2mmap
|
124
121
|
jaro_winkler (~> 1.5)
|
125
122
|
kramdown (~> 2.3)
|
126
123
|
kramdown-parser-gfm (~> 1.1)
|
127
|
-
parser (~> 3
|
124
|
+
parser (~> 2.3)
|
128
125
|
reverse_markdown (>= 1.0.5, < 3)
|
129
126
|
rubocop (>= 0.52)
|
130
127
|
thor (~> 1.0)
|
@@ -134,7 +131,7 @@ GEM
|
|
134
131
|
tilt (2.0.11)
|
135
132
|
trailblazer-option (0.1.2)
|
136
133
|
uber (0.1.0)
|
137
|
-
unicode-display_width (
|
134
|
+
unicode-display_width (1.8.0)
|
138
135
|
webrick (1.7.0)
|
139
136
|
yard (0.9.28)
|
140
137
|
webrick (~> 1.7.0)
|
data/lib/cns/bigquery1.rb
CHANGED
@@ -51,6 +51,14 @@ 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)
|
55
|
+
def processa_eth
|
56
|
+
puts(format("%<n>4i TRANSACOES ETH NORMAIS\tINSERIDAS etht", n: apies.novtx.empty? ? 0 : dml(etht_ins)))
|
57
|
+
puts(format("%<n>4i TRANSACOES ETH INTERNAS\tINSERIDAS ethi", n: apies.novix.empty? ? 0 : dml(ethi_ins)))
|
58
|
+
puts(format("%<n>4i TRANSACOES ETH BLOCK\tINSERIDAS ethp", n: apies.novpx.empty? ? 0 : dml(ethp_ins)))
|
59
|
+
puts(format("%<n>4i TOKENS\tETH\t\tINSERIDAS ethk", n: apies.novkx.empty? ? 0 : dml(ethk_ins)))
|
60
|
+
end
|
61
|
+
|
54
62
|
private
|
55
63
|
|
56
64
|
# insere transacoes exchange kraken novas nas tabelas ust (trades), usl (ledger)
|
@@ -71,14 +79,6 @@ module Cns
|
|
71
79
|
puts(format("%<n>4i LEDGER\tTHEROCK\t\tINSERIDAS mt", n: apimt.ledger.empty? ? 0 : dml(mtl_ins)))
|
72
80
|
end
|
73
81
|
|
74
|
-
# insere transacoes blockchain novas nas tabelas etht (norml), ethi (internas), ethp (block), ethk (token)
|
75
|
-
def processa_eth
|
76
|
-
puts(format("%<n>4i TRANSACOES ETH NORMAIS\tINSERIDAS etht", n: apies.novtx.empty? ? 0 : dml(etht_ins)))
|
77
|
-
puts(format("%<n>4i TRANSACOES ETH INTERNAS\tINSERIDAS ethi", n: apies.novix.empty? ? 0 : dml(ethi_ins)))
|
78
|
-
puts(format("%<n>4i TRANSACOES ETH BLOCK\tINSERIDAS ethp", n: apies.novpx.empty? ? 0 : dml(ethp_ins)))
|
79
|
-
puts(format("%<n>4i TOKENS\tETH\t\tINSERIDAS ethk", n: apies.novkx.empty? ? 0 : dml(ethk_ins)))
|
80
|
-
end
|
81
|
-
|
82
82
|
# insere transacoes blockchain novas na tabela eos
|
83
83
|
def processa_eos
|
84
84
|
puts(format("%<n>4i TRANSACOES\tEOS\t\tINSERIDAS eos ", n: apigm.novax.empty? ? 0 : dml(eost_ins)))
|
data/lib/cns/version.rb
CHANGED
data/lib/cns.rb
CHANGED
@@ -23,6 +23,13 @@ require('cns/version')
|
|
23
23
|
module Cns
|
24
24
|
# classe para carregar/mostrar dados transacoes eth & eos no bigquery
|
25
25
|
class CLI < Thor
|
26
|
+
desc 'weth', 'carrega transacoes eth no bigquery'
|
27
|
+
option :h, type: :hash, default: {}, desc: 'configuracao ajuste reposicionamento temporal'
|
28
|
+
# carrega transacoes eth no bigquery
|
29
|
+
def weth
|
30
|
+
Bigquery.new(options).processa_eth
|
31
|
+
end
|
32
|
+
|
26
33
|
desc 'work', 'carrega transacoes novas no bigquery'
|
27
34
|
option :h, type: :hash, default: {}, desc: 'configuracao ajuste reposicionamento temporal'
|
28
35
|
# carrega transacoes novas no bigquery
|
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.3.
|
4
|
+
version: 0.3.2
|
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: 2022-
|
11
|
+
date: 2022-11-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|