huginn_callisto_network_agent 0.1.70 → 0.1.72

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: 78a4f98394887c498ce4c5de2c219cc780ff2facb5db8251f87d5e262f709cb9
4
- data.tar.gz: 0f63cfe15a891c8f56c032b8b5d418236fc2aaec9652caf8b6515e26862d8ab6
3
+ metadata.gz: 6f2545eab4348e8542fa8bad5c20b63e8259dcb1ec24543f31793441629da4a4
4
+ data.tar.gz: 8fe165210f074588f01491294372a4303a05da85bf96a92fac491f2971709014
5
5
  SHA512:
6
- metadata.gz: 78cc796e72dd596ec78d9241de4d3e8c4412011f87e105afcf2383791b8fabb1622139ec6dff0e280371c5c2b0ec0d78631116831f5ff2a2d7c92bdd3cfb23e3
7
- data.tar.gz: b786e7457c5a7ef5dacd7ea277f8263a1d7145d33ed7963c5b369e01af65a1d696062799435a547bdcb5f7404d9161924998e5e8dcbdc3ea03de7c2e03e70b34
6
+ metadata.gz: 88ab30061fbfe9a9fa683cb31de81753cd292ee4aa42aa79edd3c083b99db4621909baf6e4eae6ccdba038efba285954f4f58af2a51842624e53518c63f5e5e8
7
+ data.tar.gz: 0ecdbe96470d22941d990a317bfb22c5fa8078bea8617ee95fe94b2836d3946fab3dfb058195f40ef43545bd0ef15a5dee69b7d90f65fe8cb5f8f1200680dc3e
@@ -524,9 +524,28 @@ module Agents
524
524
  transaction['call_type'] = 'sellToken'
525
525
  when "0xa0169f0d"
526
526
  transaction['call_type'] = 'createDumperShield'
527
+ when "0x2da91f95"
528
+ transaction['call_type'] = 'migrationWithdraw'
529
+ when "0x3659cfe6"
530
+ transaction['call_type'] = 'upgradeTo'
531
+ when "0x335a9406"
532
+ transaction['call_type'] = 'transfer'
527
533
  else
528
534
  transaction['call_type'] = 'unknown'
529
535
  end
536
+ if transaction['input'] != '0x'
537
+ hex_string = transaction['input'].dup
538
+ hex_string.slice!(0, 2)
539
+ # Convert hexadecimal string to bytes
540
+ bytes_string = [hex_string].pack("H*")
541
+ # Try to convert bytes to UTF-8 and check if it's readable
542
+ decoded_string = bytes_string.force_encoding("utf-8")
543
+ # Check if the conversion is successful without loss of information
544
+ if decoded_string.valid_encoding? && decoded_string.encode("utf-8", invalid: :replace, undef: :replace) == decoded_string
545
+ puts "The string is readable by a human: #{decoded_string}"
546
+ transaction['input_utf8'] = decoded_string
547
+ end
548
+ end
530
549
  create_event payload: transaction
531
550
  end
532
551
  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.70
4
+ version: 0.1.72
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-01-12 00:00:00.000000000 Z
11
+ date: 2024-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler