huginn_callisto_network_agent 0.1.84 → 0.1.86
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: 54120413bfbba6c75b67f02845e80123b94bfbcb9267d5945dca48502d19cc02
|
4
|
+
data.tar.gz: 8e435d1a64c618ed701c56302b43dc2940b5b618a60564c0953391e4a70c54ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 324269800ee3b21dfbed82d47f69aab26c38d51a60e87cfaa2d67265361244ce9c05b883e2886ac09d0c96e235b209e495fd03a092671789edc05cf1693656cb
|
7
|
+
data.tar.gz: 750411846e5cc5ccdb8e4bda8e6a68eb80edec8acfc1b049f4007f4984904b28d038685e1919d83bc5159a9de306733004cefe4c8f9a5de6dcf80fa78d80bad6
|
@@ -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.86
|
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
|