huginn_callisto_network_agent 0.1.84 → 0.1.85
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e413837711159b9a4b8daebbb25a1b604897b41b9f51401b85d7817513139cac
|
4
|
+
data.tar.gz: 4ebf78dd64060dfcb6bcd09766f25eee3f9570331b8134c9318e1b1440bf0ce7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 648c94e951e5ecb7582d6e530b9c943adb0ad5f0f134d92f8c03864d3c91c4d57250d81ce3d3a58d51381384faf5cdb0044548322cf5eff389495317b7549966
|
7
|
+
data.tar.gz: e07ec83a4a4c680d6de559a4acd5ed6b792aa17ce242eb6b1de67edd1d2bf7514c28d446c394801ff0c43859c66c8565d27cf58c932f636d8f5eee39774ca1f4
|
@@ -465,8 +465,6 @@ module Agents
|
|
465
465
|
if tx['type'] == "0x2"
|
466
466
|
gas_fee = transactions['result']['baseFeePerGas'].to_i(16)
|
467
467
|
fees = ( transactions['result']['gasUsed'].to_i(16) * gas_fee.to_f ) / (10 ** 18)
|
468
|
-
log gas_fee
|
469
|
-
log fees
|
470
468
|
else
|
471
469
|
fees = 0
|
472
470
|
end
|
@@ -484,16 +482,12 @@ module Agents
|
|
484
482
|
top_tx = most_common_from(tx_list)
|
485
483
|
top_count = tx_list.count { |hash| hash['from'] == top_tx }
|
486
484
|
miners_count = tx_list.select { |hash| all_miners.include?(hash['from']) }
|
487
|
-
# log "miners_count #{miners_count.count}"
|
488
485
|
shitty_count = tx_list.select { |hash| shitty_wallets.include?(hash['from']) }
|
489
486
|
callosha_count = tx_list.select { |hash| hash['to'] == callosha_address }
|
490
487
|
twobears_count = tx_list.select { |hash| hash['to'] == twobears_address }
|
491
488
|
vipwarz_count = tx_list.select { |hash| hash['to'] == vipwarz_address }
|
492
489
|
slotmachine_count = tx_list.select { |hash| hash['to'] == slotmachine_address }
|
493
|
-
# log "shitty_count #{shitty_count.count}"
|
494
490
|
active = tx_list.map { |p| p['from'] }.uniq.count
|
495
|
-
# log "top_count : #{top_count}"
|
496
|
-
# log "total : #{tx_list.count}"
|
497
491
|
create_event :payload => { 'total_tx' => "#{tx_list.count}", 'total_active' => "#{active}", 'burnt_clo' => "#{burnt_clo}", 'top_wallet': {'address' => "#{top_tx}", 'percentage' => "#{percentage(top_count.to_i,tx_list.count.to_i)}"}, 'shitty': {'address': 'shitty', 'shitty_percentage' => "#{percentage(shitty_count.count,tx_list.count.to_i)}"}, 'miners': {'address': "miners", 'percentage' => "#{percentage(miners_count.count,tx_list.count.to_i)}"}, 'callosha': {'address': callosha_address, 'percentage' => "#{percentage(callosha_count.count,tx_list.count.to_i)}"}, 'twobears': {'address': twobears_address, 'percentage' => "#{percentage(twobears_count.count,tx_list.count.to_i)}"}, 'vipwarz': {'address': vipwarz_address, 'percentage' => "#{percentage(vipwarz_count.count,tx_list.count.to_i)}"}, 'slotmachine': {'address': slotmachine_address, 'percentage' => "#{percentage(slotmachine_count.count,tx_list.count.to_i)}"}}
|
498
492
|
|
499
493
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: huginn_callisto_network_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.85
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolas Germain
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|