huginn_callisto_network_agent 0.1.86 → 0.1.87
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: 6219080211b6e50ca5cbcbb05bebf2f9157385551feef225954ade4b293d2576
|
4
|
+
data.tar.gz: 5a5399afe59892d9500fd19971efd58fc5eee5d8914e24bb28f9e779a14e4556
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25ac957425bd0d03f99160c13f16943d726573a0ace02a960df78ebd3f2d29534d0c756e935048cfbfd80d7456dc7fd442cd963533889c411eb7c5af59d0e795
|
7
|
+
data.tar.gz: a704bb8e408294de17ec1bf625bf8a0b11424dc2a07c46d77910a0e1b2a0a11c98c58c9a76bfbf610a962443efc1cab4c5fe59a3930ee59abbf03dba7302d649
|
@@ -455,18 +455,19 @@ module Agents
|
|
455
455
|
internal = true
|
456
456
|
tx_list = []
|
457
457
|
burnt_clo = 0
|
458
|
-
burnt_type2 = 0
|
459
458
|
burnt_dead = 0
|
460
459
|
(interpolated['first_block']..interpolated['last_block']).each do |i|
|
461
460
|
transactions = get_data(i.to_i,internal)
|
461
|
+
burnt_per_block = 0
|
462
|
+
burnt_type2_per_block = 0
|
463
|
+
fees = 0
|
462
464
|
transactions['result']['transactions'].each do |tx|
|
465
|
+
gas_fee = transactions['result']['baseFeePerGas'].to_i(16)
|
463
466
|
if !tx.empty?
|
464
467
|
tx_list << tx
|
465
468
|
if tx['type'] == "0x2"
|
466
|
-
|
467
|
-
fees = (
|
468
|
-
else
|
469
|
-
fees = 0
|
469
|
+
tx_hash_info = get_tx_receipt(tx['hash'])
|
470
|
+
fees = ( tx_hash_info['result']['gasUsed'].to_i(16) * gas_fee.to_f ) / (10 ** 18)
|
470
471
|
end
|
471
472
|
if tx['to'] == dead_address
|
472
473
|
burnt = tx['value'].to_i(16).to_f / 10**18
|
@@ -474,11 +475,12 @@ module Agents
|
|
474
475
|
burnt = 0
|
475
476
|
end
|
476
477
|
end
|
477
|
-
|
478
|
+
burnt_type2_per_block += fees
|
478
479
|
burnt_dead += burnt
|
479
480
|
end
|
481
|
+
burnt_per_block += ( burnt_dead + burnt_type2_per_block )
|
482
|
+
burnt_clo += burnt_per_block
|
480
483
|
end
|
481
|
-
burnt_clo = ( burnt_type2 / tx_list.count ) + burnt_dead
|
482
484
|
top_tx = most_common_from(tx_list)
|
483
485
|
top_count = tx_list.count { |hash| hash['from'] == top_tx }
|
484
486
|
miners_count = tx_list.select { |hash| all_miners.include?(hash['from']) }
|
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.87
|
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-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|