cns 0.3.1 → 0.3.3
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 +45 -49
- 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: 00db558ab8907678d896c4c9af0a4520815eb2159340804799be40e487e788a8
|
|
4
|
+
data.tar.gz: 533c85ce882e271dd9f66ae5445066e0fbf0ff265f66f7de25222d86e0789f0a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 16fb0ed5e6430cdf5eec1f16157df679605ed691ed558249059002b7772764b8230e4b04e8017d81ab0c0e58b6644e8b157c324c9cd2cadd37b4042abdea2183
|
|
7
|
+
data.tar.gz: 4744d1fa97206235eb403ae9ce703e4d55369b3b0b614f0ed80556c248feb99fcd0fbbeac8f1e9105830c3f84873b5cd828eb8abeb019b9ad7e05f19adff96b7
|
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.3)
|
|
5
5
|
curb
|
|
6
6
|
faraday
|
|
7
7
|
google-cloud-bigquery
|
|
@@ -10,23 +10,22 @@ PATH
|
|
|
10
10
|
GEM
|
|
11
11
|
remote: https://rubygems.org/
|
|
12
12
|
specs:
|
|
13
|
-
addressable (2.8.
|
|
13
|
+
addressable (2.8.4)
|
|
14
14
|
public_suffix (>= 2.0.2, < 6.0)
|
|
15
15
|
ast (2.4.2)
|
|
16
16
|
backport (1.2.0)
|
|
17
|
-
benchmark (0.2.
|
|
18
|
-
concurrent-ruby (1.
|
|
19
|
-
curb (1.0.
|
|
17
|
+
benchmark (0.2.1)
|
|
18
|
+
concurrent-ruby (1.2.2)
|
|
19
|
+
curb (1.0.5)
|
|
20
20
|
declarative (0.0.20)
|
|
21
|
-
diff-lcs (1.5.0)
|
|
22
21
|
e2mmap (0.1.0)
|
|
23
|
-
faraday (2.
|
|
22
|
+
faraday (2.7.10)
|
|
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.
|
|
28
|
-
google-apis-core (>= 0.
|
|
29
|
-
google-apis-core (0.
|
|
25
|
+
faraday-net_http (3.0.2)
|
|
26
|
+
google-apis-bigquery_v2 (0.55.0)
|
|
27
|
+
google-apis-core (>= 0.11.0, < 2.a)
|
|
28
|
+
google-apis-core (0.11.0)
|
|
30
29
|
addressable (~> 2.5, >= 2.5.1)
|
|
31
30
|
googleauth (>= 0.16.2, < 2.a)
|
|
32
31
|
httpclient (>= 2.8.1, < 3.a)
|
|
@@ -35,7 +34,7 @@ GEM
|
|
|
35
34
|
retriable (>= 2.0, < 4.a)
|
|
36
35
|
rexml
|
|
37
36
|
webrick
|
|
38
|
-
google-cloud-bigquery (1.
|
|
37
|
+
google-cloud-bigquery (1.43.1)
|
|
39
38
|
concurrent-ruby (~> 1.0)
|
|
40
39
|
google-apis-bigquery_v2 (~> 0.1)
|
|
41
40
|
google-cloud-core (~> 1.6)
|
|
@@ -46,8 +45,8 @@ GEM
|
|
|
46
45
|
google-cloud-errors (~> 1.0)
|
|
47
46
|
google-cloud-env (1.6.0)
|
|
48
47
|
faraday (>= 0.17.3, < 3.0)
|
|
49
|
-
google-cloud-errors (1.3.
|
|
50
|
-
googleauth (1.
|
|
48
|
+
google-cloud-errors (1.3.1)
|
|
49
|
+
googleauth (1.6.0)
|
|
51
50
|
faraday (>= 0.17.3, < 3.a)
|
|
52
51
|
jwt (>= 1.4, < 3.0)
|
|
53
52
|
memoist (~> 0.16)
|
|
@@ -55,9 +54,8 @@ GEM
|
|
|
55
54
|
os (>= 0.9, < 2.0)
|
|
56
55
|
signet (>= 0.16, < 2.a)
|
|
57
56
|
httpclient (2.8.3)
|
|
58
|
-
jaro_winkler (1.5.
|
|
59
|
-
|
|
60
|
-
jwt (2.5.0)
|
|
57
|
+
jaro_winkler (1.5.6)
|
|
58
|
+
jwt (2.7.1)
|
|
61
59
|
kramdown (2.4.0)
|
|
62
60
|
rexml
|
|
63
61
|
kramdown-parser-gfm (1.1.0)
|
|
@@ -66,21 +64,23 @@ GEM
|
|
|
66
64
|
memoist (0.16.2)
|
|
67
65
|
mini_mime (1.1.2)
|
|
68
66
|
multi_json (1.15.0)
|
|
69
|
-
nokogiri (1.
|
|
67
|
+
nokogiri (1.15.3-x86_64-linux)
|
|
70
68
|
racc (~> 1.4)
|
|
71
69
|
os (1.1.4)
|
|
72
|
-
parallel (1.
|
|
73
|
-
parser (
|
|
70
|
+
parallel (1.23.0)
|
|
71
|
+
parser (2.7.2.0)
|
|
74
72
|
ast (~> 2.4.1)
|
|
75
|
-
|
|
76
|
-
|
|
73
|
+
psych (3.3.4)
|
|
74
|
+
public_suffix (5.0.1)
|
|
75
|
+
racc (1.7.1)
|
|
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
|
-
regexp_parser (2.
|
|
83
|
+
regexp_parser (2.8.1)
|
|
84
84
|
representable (3.2.0)
|
|
85
85
|
declarative (< 0.1.0)
|
|
86
86
|
trailblazer-option (>= 0.1.1, < 0.2.0)
|
|
@@ -89,55 +89,51 @@ 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
|
-
|
|
110
|
-
ruby-progressbar (1.11.0)
|
|
105
|
+
ruby-lint (2.3.1)
|
|
106
|
+
parser (~> 2.2)
|
|
107
|
+
slop (~> 3.4, >= 3.4.7)
|
|
108
|
+
ruby-progressbar (1.13.0)
|
|
111
109
|
ruby2_keywords (0.0.5)
|
|
112
110
|
signet (0.17.0)
|
|
113
111
|
addressable (~> 2.8)
|
|
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)
|
|
131
128
|
tilt (~> 2.0)
|
|
132
129
|
yard (~> 0.9, >= 0.9.24)
|
|
133
|
-
thor (1.2.
|
|
134
|
-
tilt (2.0
|
|
130
|
+
thor (1.2.2)
|
|
131
|
+
tilt (2.2.0)
|
|
135
132
|
trailblazer-option (0.1.2)
|
|
136
133
|
uber (0.1.0)
|
|
137
|
-
unicode-display_width (
|
|
138
|
-
webrick (1.
|
|
139
|
-
yard (0.9.
|
|
140
|
-
webrick (~> 1.7.0)
|
|
134
|
+
unicode-display_width (1.8.0)
|
|
135
|
+
webrick (1.8.1)
|
|
136
|
+
yard (0.9.34)
|
|
141
137
|
|
|
142
138
|
PLATFORMS
|
|
143
139
|
x86_64-linux
|
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.3
|
|
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:
|
|
11
|
+
date: 2023-07-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|