cns 0.3.7 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 598e00d798ff5697dfcb400b4698b364b4278cca4814e5c55c61509116c28807
4
- data.tar.gz: 35d2b7241b9f7573f2c5ae382eb19aea9a08f6200e12f22183774faab2cae33e
3
+ metadata.gz: '09ec6b41ad03d5c325247f93965f8b5678183511658e350ed66a748189d740f1'
4
+ data.tar.gz: 1a0a33fab63109b9b0f5bc1d6942bd2a7d3df7267c73e665398675168324b211
5
5
  SHA512:
6
- metadata.gz: b0a128f371ba2e8eacbf987a1c2826fef5ac2530592b85bba04409bec35433915d257f59a8b37fd303176047bdb034a07459c12877cbc91463cd1371b2e106de
7
- data.tar.gz: bd063a649dd9d275a916ffc6ffaaa44ed4008a73a64e63d6fe67b9bf9a4a9d9c6d1c1c1c28a2f060b630ec7cc63bd4d9cc5bfb2aeca2b955affc7e08d2ec2df5
6
+ metadata.gz: f09a8091f549786ece0d79ebccf2626d6c5bd03736b8967e1abd158753efda8a8e1c020366bee743e8aea29cdbbeab0015a8349bbdacc0ac7655866c432ad256
7
+ data.tar.gz: 829489a9a52691fea47a509f99cc4347228f8665cf3d45b4fcaf5fbdff2a96d9d0d88dc7ee3929edc87de6d3f443f0d9e5214f2dbcf9ce9120f40984cccc0241
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- cns (0.3.7)
4
+ cns (0.3.9)
5
5
  curb
6
6
  faraday
7
7
  google-cloud-bigquery
@@ -23,7 +23,7 @@ GEM
23
23
  faraday-net_http (>= 2.0, < 3.1)
24
24
  ruby2_keywords (>= 0.0.4)
25
25
  faraday-net_http (3.0.2)
26
- google-apis-bigquery_v2 (0.55.0)
26
+ google-apis-bigquery_v2 (0.56.0)
27
27
  google-apis-core (>= 0.11.0, < 2.a)
28
28
  google-apis-core (0.11.0)
29
29
  addressable (~> 2.5, >= 2.5.1)
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cns
4
- VERSION = '0.3.7'
4
+ VERSION = '0.3.9'
5
5
  end
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).processa_eth
23
+ Bigquery.new(options).processa_weth
24
24
  end
25
25
 
26
26
  desc 'work', '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.7
4
+ version: 0.3.9
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: 2023-07-12 00:00:00.000000000 Z
11
+ date: 2023-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler