cns 0.1.4 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -27,38 +27,39 @@ module Cns
27
27
 
28
28
  # @return [Array<Hash>] lista transacoes novas
29
29
  def novax
30
- @novax ||= bcd.map { |e| e[:tx].select { |s| idt.include?(s[:itx]) } }.flatten
30
+ @novax ||= bcd.map { |obc| obc[:tx].select { |obj| idt.include?(obj[:itx]) } }.flatten
31
31
  end
32
32
 
33
33
  # @return [Array<String>] lista dos meus enderecos
34
34
  def lax
35
- @lax ||= bqd[:wb].map { |h| h[:ax] }
35
+ @lax ||= bqd[:wb].map { |obj| obj[:ax] }
36
36
  end
37
37
 
38
38
  # @return [Array<Hash>] todos os dados greymass - saldos & transacoes
39
39
  def bcd
40
- @bcd ||= bqd[:wb].map { |e| base_bc(e) }
40
+ @bcd ||= bqd[:wb].map { |obj| base_bc(obj) }
41
41
  end
42
42
 
43
43
  # @return [Array<Hash>] todos os dados juntos bigquery & greymass
44
44
  def dados
45
- @dados ||= bqd[:wb].map { |b| bq_bc(b, bcd.select { |s| b[:ax] == s[:ax] }.first) }
45
+ @dados ||= bqd[:wb].map { |obq| bq_bc(obq, bcd.select { |obj| obq[:ax] == obj[:ax] }.first) }
46
46
  end
47
47
 
48
48
  # @return [Array<Integer>] lista indices transacoes novas
49
49
  def idt
50
- @idt ||= (bcd.map { |e| e[:tx].map { |n| n[:itx] } }.flatten - (ops[:t] ? [] : bqd[:nt].map { |t| t[:itx] }))
50
+ @idt ||= bcd.map { |obc| obc[:tx].map { |obj| obj[:itx] } }.flatten -
51
+ (ops[:t] ? [] : bqd[:nt].map { |obq| obq[:itx] })
51
52
  end
52
53
 
53
54
  # @example (see Apibc#account_gm)
54
55
  # @param [Hash] wbq wallet bigquery
55
56
  # @return [Hash] dados greymass - address, saldo & transacoes
56
57
  def base_bc(wbq)
57
- a = wbq[:ax]
58
+ xbq = wbq[:ax]
58
59
  {
59
- ax: a,
60
- sl: greymass_sl(a).inject(:+),
61
- tx: filtrar_tx(a, api.ledger_gm(a))
60
+ ax: xbq,
61
+ sl: greymass_sl(xbq).inject(:+),
62
+ tx: filtrar_tx(xbq, api.ledger_gm(xbq))
62
63
  }
63
64
  end
64
65
 
@@ -66,11 +67,12 @@ module Cns
66
67
  # @param [Hash] hbc dados greymass - address, saldo & transacoes
67
68
  # @return [Hash] dados juntos bigquery & greymass
68
69
  def bq_bc(wbq, hbc)
70
+ xbq = wbq[:ax]
69
71
  {
70
72
  id: wbq[:id],
71
- ax: wbq[:ax],
73
+ ax: xbq,
72
74
  bs: wbq[:sl],
73
- bt: bqd[:nt].select { |t| t[:iax] == wbq[:ax] },
75
+ bt: bqd[:nt].select { |obj| obj[:iax] == xbq },
74
76
  es: hbc[:sl],
75
77
  et: hbc[:tx]
76
78
  }
@@ -79,11 +81,12 @@ module Cns
79
81
  # @param (see filtrar_tx)
80
82
  # @return [Array<BigDecimal>] lista recursos - liquido, net, spu
81
83
  def greymass_sl(add)
82
- v = api.account_gm(add)
84
+ hac = api.account_gm(add)
85
+ htr = hac[:total_resources]
83
86
  [
84
- v[:core_liquid_balance].to_d,
85
- v[:total_resources][:net_weight].to_d,
86
- v[:total_resources][:cpu_weight].to_d
87
+ hac[:core_liquid_balance].to_d,
88
+ htr[:net_weight].to_d,
89
+ htr[:cpu_weight].to_d
87
90
  ]
88
91
  end
89
92
 
@@ -93,13 +96,15 @@ module Cns
93
96
  def filtrar_tx(add, ary)
94
97
  # elimina transferencia from: (lax) to: (add) - esta transferencia aparece em from: (add) to: (lax)
95
98
  # adiciona chave indice itx & adiciona identificador da carteira iax
96
- ary.delete_if { |h| act_data(h)[:to] == add && lax.include?(act_data(h)[:from]) }
97
- .map { |h| h.merge(itx: h[:global_action_seq], iax: add) }
99
+ (ary.delete_if do |odl|
100
+ adt = odl[:action_trace][:act][:data]
101
+ adt[:to] == add && lax.include?(adt[:from])
102
+ end).map { |omp| omp.merge(itx: omp[:global_action_seq], iax: add) }
98
103
  end
99
104
 
100
105
  # @return [Array<Hash>] lista ordenada transacoes novas
101
106
  def sorax
102
- novax.sort { |a, b| b[:itx] <=> a[:itx] }
107
+ novax.sort { |ant, prx| prx[:itx] <=> ant[:itx] }
103
108
  end
104
109
  end
105
110
  end
@@ -9,7 +9,7 @@ module Cns
9
9
  return unless dados.count.positive?
10
10
 
11
11
  puts("\naddress greymass ntx bigquery ntx")
12
- dados.each { |e| puts(formata_carteira(e)) }
12
+ dados.each { |obj| puts(formata_carteira(obj)) }
13
13
  mostra_transacoes_novas
14
14
  mostra_configuracao_ajuste_dias
15
15
  end
@@ -40,47 +40,29 @@ module Cns
40
40
  def formata_ledger(hlx)
41
41
  format(
42
42
  '%<bn>12i %<fr>-12.12s %<to>-12.12s %<ac>-10.10s %<dt>10.10s %<vl>12.4f %<sy>-6.6s',
43
+ ac: (act = hlx[:action_trace][:act])[:name],
44
+ fr: (adt = act[:data])[:from],
45
+ vl: (aqt = adt[:quantity].to_s).to_d,
43
46
  bn: hlx[:itx],
44
- fr: act_data(hlx)[:from],
45
- to: act_data(hlx)[:to],
46
- ac: act(hlx)[:name],
47
+ to: adt[:to],
47
48
  dt: Date.parse(hlx[:block_time]),
48
- vl: act_data_quantity(hlx).to_d,
49
- sy: act_data_quantity(hlx)[/[[:upper:]]+/]
49
+ sy: aqt[/[[:upper:]]+/]
50
50
  )
51
51
  end
52
52
 
53
- # @param (see formata_ledger)
54
- # @return [Hash] dados da acao
55
- def act(hlx)
56
- hlx[:action_trace][:act]
57
- end
58
-
59
- # @param (see formata_ledger)
60
- # @return [Hash] dados da acao
61
- def act_data(hlx)
62
- act(hlx)[:data]
63
- end
64
-
65
- # @param (see formata_ledger)
66
- # @return [String] dados da quantidade
67
- def act_data_quantity(hlx)
68
- act_data(hlx)[:quantity].to_s
69
- end
70
-
71
53
  # @return [String] texto transacoes
72
54
  def mostra_transacoes_novas
73
55
  return unless ops[:v] && novax.count.positive?
74
56
 
75
57
  puts("\nsequence num from to accao data valor moeda")
76
- sorax.each { |e| puts(formata_ledger(e)) }
58
+ sorax.each { |obj| puts(formata_ledger(obj)) }
77
59
  end
78
60
 
79
61
  # @return [String] texto configuracao ajuste dias das transacoes
80
62
  def mostra_configuracao_ajuste_dias
81
63
  return unless novax.count.positive?
82
64
 
83
- puts("\nstring ajuste dias\n-h=#{sorax.map { |e| "#{e[:itx]}:0" }.join(' ')}")
65
+ puts("\nstring ajuste dias\n-h=#{sorax.map { |obj| "#{obj[:itx]}:0" }.join(' ')}")
84
66
  end
85
67
  end
86
68
  end
@@ -27,25 +27,25 @@ module Cns
27
27
 
28
28
  # @return [Hash] trades kraken novos
29
29
  def trades
30
- @trades ||= exd[:kt].select { |k, _| kyt.include?(k) }
30
+ @trades ||= exd[:kt].select { |key, _| kyt.include?(key) }
31
31
  end
32
32
 
33
33
  # @return [Hash] ledger kraken novos
34
34
  def ledger
35
- @ledger ||= exd[:kl].select { |k, _| kyl.include?(k) }
35
+ @ledger ||= exd[:kl].select { |key, _| kyl.include?(key) }
36
36
  end
37
37
 
38
38
  # @return [String] texto saldos & transacoes & ajuste dias
39
39
  def mostra_resumo
40
40
  puts("\nKRAKEN\ntipo kraken bigquery")
41
- exd[:sl].each { |k, v| puts(formata_saldos(k, v)) }
41
+ exd[:sl].each { |key, val| puts(formata_saldos(key, val)) }
42
42
  mostra_totais
43
43
 
44
44
  mostra_trades
45
45
  mostra_ledger
46
46
  return if trades.empty?
47
47
 
48
- puts("\nstring ajuste dias dos trades\n-h=#{kyt.map { |e| "#{e}:0" }.join(' ')}")
48
+ puts("\nstring ajuste dias dos trades\n-h=#{kyt.map { |obj| "#{obj}:0" }.join(' ')}")
49
49
  end
50
50
 
51
51
  # @return [Hash] dados exchange kraken - saldos & transacoes trades e ledger
@@ -59,12 +59,12 @@ module Cns
59
59
 
60
60
  # @return [Array<String>] lista txid dos trades novos
61
61
  def kyt
62
- @kyt ||= exd[:kt].keys - (ops[:t] ? [] : bqd[:nt].map { |e| e[:txid].to_sym })
62
+ @kyt ||= exd[:kt].keys - (ops[:t] ? [] : bqd[:nt].map { |obj| obj[:txid].to_sym })
63
63
  end
64
64
 
65
65
  # @return [Array<String>] lista txid dos ledger novos
66
66
  def kyl
67
- @kyl ||= exd[:kl].keys - (ops[:t] ? [] : bqd[:nl].map { |e| e[:txid].to_sym })
67
+ @kyl ||= exd[:kl].keys - (ops[:t] ? [] : bqd[:nl].map { |obj| obj[:txid].to_sym })
68
68
  end
69
69
 
70
70
  # @example (see Apice#account_us)
@@ -72,13 +72,14 @@ module Cns
72
72
  # @param [BigDecimal] sal saldo kraken da moeda
73
73
  # @return [String] texto formatado saldos
74
74
  def formata_saldos(moe, sal)
75
- t = bqd[:sl][moe.downcase.to_sym].to_d
75
+ vbq = bqd[:sl][moe.downcase.to_sym].to_d
76
+ vsl = sal.to_d
76
77
  format(
77
78
  '%<mo>-5.5s %<kr>21.9f %<bq>21.9f %<ok>3.3s',
78
79
  mo: moe.upcase,
79
- kr: sal.to_d,
80
- bq: t,
81
- ok: t == sal.to_d ? 'OK' : 'NOK'
80
+ kr: vsl,
81
+ bq: vbq,
82
+ ok: vbq == vsl ? 'OK' : 'NOK'
82
83
  )
83
84
  end
84
85
 
@@ -115,29 +116,29 @@ module Cns
115
116
 
116
117
  # @return [String] texto totais numero de transacoes
117
118
  def mostra_totais
118
- a = exd[:kt].count
119
- b = bqd[:nt].count
120
- c = exd[:kl].count
121
- d = bqd[:nl].count
119
+ vkt = exd[:kt].count
120
+ vnt = bqd[:nt].count
121
+ vkl = exd[:kl].count
122
+ vnl = bqd[:nl].count
122
123
 
123
- puts("TRADES #{format('%<a>20i %<b>21i %<o>3.3s', a: a, b: b, o: a == b ? 'OK' : 'NOK')}")
124
- puts("LEDGER #{format('%<c>20i %<d>21i %<o>3.3s', c: c, d: d, o: c == d ? 'OK' : 'NOK')}")
124
+ puts("TRADES #{format('%<a>20i %<b>21i %<o>3.3s', a: vkt, b: vnt, o: vkt == vnt ? 'OK' : 'NOK')}")
125
+ puts("LEDGER #{format('%<c>20i %<d>21i %<o>3.3s', c: vkl, d: vnl, o: vkl == vnl ? 'OK' : 'NOK')}")
125
126
  end
126
127
 
127
128
  # @return [String] texto transacoes trades
128
129
  def mostra_trades
129
130
  return unless ops[:v] && trades.count.positive?
130
131
 
131
- puts("\ntrade data hora tipo par ---preco ---------volume ---custo")
132
- trades.sort { |a, b| b[1][:time] <=> a[1][:time] }.each { |k, v| puts(formata_trades(k, v)) }
132
+ puts("\ntrade data hora tipo par preco volume custo")
133
+ trades.sort { |ant, prx| prx[1][:time] <=> ant[1][:time] }.each { |key, val| puts(formata_trades(key, val)) }
133
134
  end
134
135
 
135
136
  # @return [String] texto transacoes ledger
136
137
  def mostra_ledger
137
138
  return unless ops[:v] && ledger.count.positive?
138
139
 
139
- puts("\nledger data hora tipo moeda -------quantidade -------------custo")
140
- ledger.sort { |a, b| b[1][:time] <=> a[1][:time] }.each { |k, v| puts(formata_ledger(k, v)) }
140
+ puts("\nledger data hora tipo moeda quantidade custo")
141
+ ledger.sort { |ant, prx| prx[1][:time] <=> ant[1][:time] }.each { |key, val| puts(formata_ledger(key, val)) }
141
142
  end
142
143
  end
143
144
  end
@@ -27,7 +27,7 @@ module Cns
27
27
 
28
28
  # @return [Array<Hash>] lista ledger paymium novos
29
29
  def ledger
30
- @ledger ||= exd[:kl].map { |h| h[:account_operations].select { |o| kyl.include?(o[:uuid]) } }.flatten
30
+ @ledger ||= exd[:kl].map { |map| map[:account_operations].select { |obj| kyl.include?(obj[:uuid]) } }.flatten
31
31
  end
32
32
 
33
33
  # @return [String] texto saldos & transacoes & ajuste dias
@@ -40,7 +40,7 @@ module Cns
40
40
  mostra_ledger
41
41
  return unless ledger.count.positive?
42
42
 
43
- puts("\nstring ajuste dias da ledger\n-h=#{kyl.map { |e| "#{e}:0" }.join(' ')}")
43
+ puts("\nstring ajuste dias da ledger\n-h=#{kyl.map { |obj| "#{obj}:0" }.join(' ')}")
44
44
  end
45
45
 
46
46
  # @return [Hash] dados exchange paymium - saldos & transacoes ledger
@@ -53,22 +53,22 @@ module Cns
53
53
 
54
54
  # @return [Array<String>] lista txid dos ledger novos
55
55
  def kyl
56
- @kyl ||= exd[:kl].map { |h| h[:account_operations].map { |o| o[:uuid] } }.flatten -
57
- (ops[:t] ? [] : bqd[:nl].map { |e| e[:txid] })
56
+ @kyl ||= exd[:kl].map { |oex| oex[:account_operations].map { |obj| obj[:uuid] } }.flatten -
57
+ (ops[:t] ? [] : bqd[:nl].map { |obq| obq[:txid] })
58
58
  end
59
59
 
60
60
  # @example (see Apice#account_fr)
61
61
  # @param [Symbol] bqm symbol paymium da moeda
62
62
  # @return [String] texto formatado saldos
63
63
  def formata_saldos(bqm)
64
- b = bqd[:sl][bqm].to_d
65
- t = exd[:sl]["balance_#{bqm}".to_sym].to_d
64
+ vbq = bqd[:sl][bqm].to_d
65
+ vkr = exd[:sl]["balance_#{bqm}".to_sym].to_d
66
66
  format(
67
67
  '%<mo>-5.5s %<kr>21.9f %<bq>21.9f %<ok>3.3s',
68
68
  mo: bqm.upcase,
69
- kr: t,
70
- bq: b,
71
- ok: t == b ? 'OK' : 'NOK'
69
+ kr: vkr,
70
+ bq: vbq,
71
+ ok: vkr == vbq ? 'OK' : 'NOK'
72
72
  )
73
73
  end
74
74
 
@@ -90,16 +90,16 @@ module Cns
90
90
  # @param [Integer] max chars a mostrar
91
91
  # @return [String] texto formatado identificacor da ledger
92
92
  def formata_uuid(uid, max)
93
- i = Integer(max / 2)
94
- max < 7 ? 'erro' : "#{uid[0, i]}#{uid[-i..]}"
93
+ int = Integer(max / 2)
94
+ max < 7 ? 'erro' : "#{uid[0, int]}#{uid[-int..]}"
95
95
  end
96
96
 
97
97
  # @return [String] texto totais numero de transacoes
98
98
  def mostra_totais
99
- c = exd[:kl].map { |h| h[:account_operations].count }.flatten.inject(:+)
100
- d = bqd[:nl].count
99
+ vkl = exd[:kl].map { |obj| obj[:account_operations].count }.flatten.inject(:+)
100
+ vnl = bqd[:nl].count
101
101
 
102
- puts("LEDGER #{format('%<c>20i %<d>21i %<o>3.3s', c: c, d: d, o: c == d ? 'OK' : 'NOK')}")
102
+ puts("LEDGER #{format('%<c>20i %<d>21i %<o>3.3s', c: vkl, d: vnl, o: vkl == vnl ? 'OK' : 'NOK')}")
103
103
  end
104
104
 
105
105
  # @return [String] texto transacoes ledger
@@ -107,7 +107,7 @@ module Cns
107
107
  return unless ops[:v] && ledger.count.positive?
108
108
 
109
109
  puts("\nledger data hora tipo moeda quantidade")
110
- ledger.sort { |a, b| b[:created_at_int] <=> a[:created_at_int] }.each { |o| puts(formata_ledger(o)) }
110
+ ledger.sort { |ant, prx| prx[:created_at_int] <=> ant[:created_at_int] }.each { |obj| puts(formata_ledger(obj)) }
111
111
  end
112
112
  end
113
113
  end
@@ -27,19 +27,19 @@ module Cns
27
27
 
28
28
  # @return [Array<Hash>] lista ledger therock novos
29
29
  def ledger
30
- @ledger ||= exd[:kl].select { |o| kyl.include?(o[:id]) }
30
+ @ledger ||= exd[:kl].select { |obj| kyl.include?(obj[:id]) }
31
31
  end
32
32
 
33
33
  # @return [String] texto saldos & transacoes & ajuste dias
34
34
  def mostra_resumo
35
35
  puts("\nTHEROCK\ntipo therock bigquery")
36
- exd[:sl].each { |h| puts(formata_saldos(h)) }
36
+ exd[:sl].each { |obj| puts(formata_saldos(obj)) }
37
37
  mostra_totais
38
38
 
39
39
  mostra_ledger
40
40
  return unless ledger.count.positive?
41
41
 
42
- puts("\nstring ajuste dias da ledger\n-h=#{kyl.map { |e| "#{e}:0" }.join(' ')}")
42
+ puts("\nstring ajuste dias da ledger\n-h=#{kyl.map { |obj| "#{obj}:0" }.join(' ')}")
43
43
  end
44
44
 
45
45
  # @return [Hash] dados exchange therock - saldos & transacoes ledger
@@ -52,21 +52,22 @@ module Cns
52
52
 
53
53
  # @return [Array<String>] lista txid dos ledger novos
54
54
  def kyl
55
- @kyl ||= exd[:kl].map { |h| h[:id] } - (ops[:t] ? [] : bqd[:nl].map { |e| e[:txid] })
55
+ @kyl ||= exd[:kl].map { |oex| oex[:id] } - (ops[:t] ? [] : bqd[:nl].map { |obq| obq[:txid] })
56
56
  end
57
57
 
58
58
  # @example (see Apice#account_mt)
59
59
  # @param [Hash] hsl saldo therock da moeda
60
60
  # @return [String] texto formatado saldos
61
61
  def formata_saldos(hsl)
62
- b = bqd[:sl][hsl[:currency].downcase.to_sym].to_d
63
- k = hsl[:balance].to_d
62
+ cur = hsl[:currency]
63
+ vbq = bqd[:sl][cur.downcase.to_sym].to_d
64
+ vkr = hsl[:balance].to_d
64
65
  format(
65
66
  '%<mo>-5.5s %<kr>21.9f %<bq>21.9f %<ok>3.3s',
66
- mo: hsl[:currency].upcase,
67
- kr: k,
68
- bq: b,
69
- ok: k == b ? 'OK' : 'NOK'
67
+ mo: cur.upcase,
68
+ kr: vkr,
69
+ bq: vbq,
70
+ ok: vkr == vbq ? 'OK' : 'NOK'
70
71
  )
71
72
  end
72
73
 
@@ -86,18 +87,18 @@ module Cns
86
87
 
87
88
  # @return [String] texto totais numero de transacoes
88
89
  def mostra_totais
89
- c = exd[:kl].count
90
- d = bqd[:nl].count
90
+ vkl = exd[:kl].count
91
+ vnl = bqd[:nl].count
91
92
 
92
- puts("LEDGER #{format('%<c>20i %<d>21i %<o>3.3s', c: c, d: d, o: c == d ? 'OK' : 'NOK')}")
93
+ puts("LEDGER #{format('%<c>20i %<d>21i %<o>3.3s', c: vkl, d: vnl, o: vkl == vnl ? 'OK' : 'NOK')}")
93
94
  end
94
95
 
95
96
  # @return [String] texto transacoes ledger
96
97
  def mostra_ledger
97
98
  return unless ops[:v] && ledger.count.positive?
98
99
 
99
- puts("\nledger data hora tipo moeda ---------quantidade")
100
- ledger.sort { |a, b| b[:id] <=> a[:id] }.each { |o| puts(formata_ledger(o)) }
100
+ puts("\nledger data hora tipo moeda quantidade")
101
+ ledger.sort { |ant, prx| prx[:id] <=> ant[:id] }.each { |obj| puts(formata_ledger(obj)) }
101
102
  end
102
103
  end
103
104
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Cns
4
- VERSION = '0.1.4'
4
+ VERSION = '0.2.1'
5
5
  end
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.1.4
4
+ version: 0.2.1
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: 2020-09-22 00:00:00.000000000 Z
11
+ date: 2021-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -39,13 +39,13 @@ dependencies:
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: curb
42
+ name: reek
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
- type: :runtime
48
+ type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
@@ -53,7 +53,63 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: faraday
56
+ name: rubocop
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: solargraph
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: yard
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: curb
57
113
  requirement: !ruby/object:Gem::Requirement
58
114
  requirements:
59
115
  - - ">="
@@ -67,7 +123,7 @@ dependencies:
67
123
  - !ruby/object:Gem::Version
68
124
  version: '0'
69
125
  - !ruby/object:Gem::Dependency
70
- name: google-cloud-bigquery
126
+ name: faraday
71
127
  requirement: !ruby/object:Gem::Requirement
72
128
  requirements:
73
129
  - - ">="
@@ -81,7 +137,7 @@ dependencies:
81
137
  - !ruby/object:Gem::Version
82
138
  version: '0'
83
139
  - !ruby/object:Gem::Dependency
84
- name: thor
140
+ name: google-cloud-bigquery
85
141
  requirement: !ruby/object:Gem::Requirement
86
142
  requirements:
87
143
  - - ">="
@@ -95,7 +151,7 @@ dependencies:
95
151
  - !ruby/object:Gem::Version
96
152
  version: '0'
97
153
  - !ruby/object:Gem::Dependency
98
- name: yard
154
+ name: thor
99
155
  requirement: !ruby/object:Gem::Requirement
100
156
  requirements:
101
157
  - - ">="
@@ -118,6 +174,7 @@ extensions: []
118
174
  extra_rdoc_files: []
119
175
  files:
120
176
  - ".gitignore"
177
+ - ".reek.yml"
121
178
  - ".rubocop.yml"
122
179
  - ".travis.yml"
123
180
  - CODE_OF_CONDUCT.md
@@ -134,6 +191,8 @@ files:
134
191
  - lib/cns/apibc.rb
135
192
  - lib/cns/apice1.rb
136
193
  - lib/cns/apice2.rb
194
+ - lib/cns/beaconchain1.rb
195
+ - lib/cns/beaconchain2.rb
137
196
  - lib/cns/bigquery1.rb
138
197
  - lib/cns/bigquery2.rb
139
198
  - lib/cns/bigquery3.rb
@@ -159,9 +218,9 @@ require_paths:
159
218
  - lib
160
219
  required_ruby_version: !ruby/object:Gem::Requirement
161
220
  requirements:
162
- - - ">="
221
+ - - "~>"
163
222
  - !ruby/object:Gem::Version
164
- version: 2.3.0
223
+ version: '2.7'
165
224
  required_rubygems_version: !ruby/object:Gem::Requirement
166
225
  requirements:
167
226
  - - ">="