huginn_callisto_network_agent 0.1.73 → 0.1.75
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/huginn_callisto_network_agent/callisto_network_agent.rb +64 -58
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34fa3a00a75637bb883f7668df619823cbfc3ccc1eb04057a0ac14f624f2d57a
|
4
|
+
data.tar.gz: 818e3a4e3823040ba3696a9342aed4e280028cea0bda55e480ca72539b2bd87b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2708f9218ceda303874d6843fd9726b0a1ea64a8f88c75fcd3343b60b161796284651b926265ab3ec0be0d3c4785323fa1f72ee7483a269c405cd0d51730a3e6
|
7
|
+
data.tar.gz: 477d040fba0d091f19b5cf85b5ae592d110a219d3e03bec5718ee0acd1734e5389efe44820c3773b3ff65e97a84dd3e782b2387e024f7920c8cef822f0a9b68d
|
@@ -445,91 +445,97 @@ module Agents
|
|
445
445
|
transaction['status'] = receipt_data['result']['status']
|
446
446
|
# transaction['input_converted_utf8'] = [transaction['input']].pack("H*")
|
447
447
|
case transaction['input'][0, 10]
|
448
|
+
when "0x"
|
449
|
+
transaction['call_type'] = 'Transfer'
|
450
|
+
transaction['symbol'] = "CLO"
|
451
|
+
transaction['value'] = "#{transaction['value'].to_i(16) / power.to_i.to_f}"
|
448
452
|
when "0xb88a802f"
|
449
453
|
transaction['call_type'] = 'claimReward'
|
450
454
|
transaction['symbol'] = find_symbol(transaction['to'])
|
451
455
|
when "0xe80233c6"
|
452
456
|
transaction['call_type'] = 'activateNode'
|
453
|
-
when "
|
454
|
-
transaction['call_type'] = '
|
457
|
+
when "0xc180f4f1"
|
458
|
+
transaction['call_type'] = 'addClassProperty'
|
459
|
+
when "0x25498c75"
|
460
|
+
transaction['call_type'] = 'addNewTokenClass'
|
455
461
|
when "0xb199892a"
|
456
462
|
transaction['call_type'] = 'addNode'
|
457
|
-
when "0xcdfdb7dc"
|
458
|
-
transaction['call_type'] = 'setRatios'
|
459
463
|
when "0x01026099"
|
460
464
|
transaction['call_type'] = 'addTokens'
|
461
|
-
when "0xb2b99ec9"
|
462
|
-
transaction['call_type'] = 'removeNode'
|
463
465
|
when "0x095ea7b3"
|
464
466
|
transaction['call_type'] = 'approve'
|
465
|
-
when "
|
466
|
-
transaction['call_type'] = '
|
467
|
-
when "
|
468
|
-
transaction['call_type'] = '
|
467
|
+
when "0x514fcac7"
|
468
|
+
transaction['call_type'] = 'cancelOrder'
|
469
|
+
when "0x8f995234", "0x4e71d92d"
|
470
|
+
transaction['call_type'] = 'claim'
|
471
|
+
when "0xa0169f0d"
|
472
|
+
transaction['call_type'] = 'createDumperShield'
|
473
|
+
when "0x96d4f640"
|
474
|
+
transaction['call_type'] = 'createOrder'
|
475
|
+
when "0x65814455"
|
476
|
+
transaction['call_type'] = 'deactivateNode'
|
477
|
+
when "0xbd000546"
|
478
|
+
transaction['call_type'] = 'DeleteOrder'
|
479
|
+
when "0x1da7ee0d"
|
480
|
+
transaction['call_type'] = 'depositPosition'
|
481
|
+
when "0x487cda0d"
|
482
|
+
transaction['call_type'] = 'depositTokens'
|
483
|
+
when "0x83f818b4"
|
484
|
+
transaction['call_type'] = 'game'
|
485
|
+
when "0xc4d66de8", "0x1624f6c6"
|
486
|
+
transaction['call_type'] = 'initialize'
|
487
|
+
when "0xbf3c35c3"
|
488
|
+
transaction['call_type'] = 'migrateCLOE'
|
489
|
+
when "0x2da91f95"
|
490
|
+
transaction['call_type'] = 'migrationWithdraw'
|
491
|
+
when "0x40c10f19"
|
492
|
+
transaction['call_type'] = 'mint'
|
493
|
+
when "0x3054d9cb"
|
494
|
+
transaction['call_type'] = 'modifyClassProperty'
|
495
|
+
when "0xb2b99ec9"
|
496
|
+
transaction['call_type'] = 'removeNode'
|
497
|
+
when "0x11411e08"
|
498
|
+
transaction['call_type'] = 'sellToken'
|
499
|
+
when "0xcf456ae7"
|
500
|
+
transaction['call_type'] = 'setMinter'
|
501
|
+
when "0xcdfdb7dc"
|
502
|
+
transaction['call_type'] = 'setRatios'
|
503
|
+
when "0xfe3f3f02"
|
504
|
+
transaction['call_type'] = 'setSalary'
|
505
|
+
when "0x957138a4"
|
506
|
+
transaction['call_type'] = 'setStop'
|
507
|
+
when "0xc98e0c3c"
|
508
|
+
transaction['call_type'] = 'silentTransfer'
|
509
|
+
when "0x84daaf54"
|
510
|
+
transaction['call_type'] = 'stakingMigrate'
|
511
|
+
when "0x5d8c85ef"
|
512
|
+
transaction['call_type'] = 'start_staking'
|
469
513
|
when "0x2e9b3dc3"
|
470
514
|
transaction['call_type'] = 'swapExactCLOForTokens'
|
515
|
+
when "0x38ed1739"
|
516
|
+
transaction['call_type'] = 'swapExactTokensForTokens'
|
471
517
|
when "0xa6e83852"
|
472
518
|
transaction['call_type'] = 'swapTokensForExactCLO'
|
473
|
-
when "0x487cda0d"
|
474
|
-
transaction['call_type'] = 'depositTokens'
|
475
519
|
when "0x8803dbee"
|
476
520
|
transaction['call_type'] = 'swapTokensForExactTokens'
|
477
|
-
when "0x1da7ee0d"
|
478
|
-
transaction['call_type'] = 'depositPosition'
|
479
521
|
when "0xa9059cbb"
|
480
522
|
transaction['call_type'] = 'TokenTransfer'
|
481
523
|
transaction['symbol'] = find_symbol(transaction['to'])
|
482
524
|
# transaction['to'] = transaction['input'][10, 64]
|
483
525
|
transaction['to'] = "0x#{transaction['input'][34, 40]}"
|
484
526
|
transaction['value'] = "#{transaction['input'][74, 64].to_i(16) / power.to_i.to_f}"
|
485
|
-
when "
|
486
|
-
transaction['call_type'] = '
|
487
|
-
|
488
|
-
transaction['
|
527
|
+
when "0x335a9406"
|
528
|
+
transaction['call_type'] = 'transfer'
|
529
|
+
when "0xf2fde38b"
|
530
|
+
transaction['call_type'] = 'transferOwnership'
|
489
531
|
when "0xa2e62045", "0x82ab890a"
|
490
532
|
transaction['call_type'] = 'update'
|
491
|
-
when "0x40c10f19"
|
492
|
-
transaction['call_type'] = 'mint'
|
493
|
-
when "0x78be0ad4", "0xcd948855"
|
494
|
-
transaction['call_type'] = 'withdraw_stake'
|
495
|
-
when "0x5d8c85ef"
|
496
|
-
transaction['call_type'] = 'start_staking'
|
497
|
-
when "0x8f995234", "0x4e71d92d"
|
498
|
-
transaction['call_type'] = 'claim'
|
499
|
-
when "0xfe3f3f02"
|
500
|
-
transaction['call_type'] = 'setSalary'
|
501
|
-
when "0x957138a4"
|
502
|
-
transaction['call_type'] = 'setStop'
|
503
|
-
when "0xc4d66de8", "0x1624f6c6"
|
504
|
-
transaction['call_type'] = 'initialize'
|
505
|
-
when "0x96d4f640"
|
506
|
-
transaction['call_type'] = 'createOrder'
|
507
|
-
when "0xbd000546"
|
508
|
-
transaction['call_type'] = 'DeleteOrder'
|
509
|
-
when "0x514fcac7"
|
510
|
-
transaction['call_type'] = 'cancelOrder'
|
511
|
-
when "0xd9caed12"
|
512
|
-
transaction['call_type'] = 'withdraw'
|
513
|
-
when "0x83f818b4"
|
514
|
-
transaction['call_type'] = 'game'
|
515
|
-
when "0xc180f4f1"
|
516
|
-
transaction['call_type'] = 'addClassProperty'
|
517
|
-
when "0x3054d9cb"
|
518
|
-
transaction['call_type'] = 'modifyClassProperty'
|
519
|
-
when "0xc98e0c3c"
|
520
|
-
transaction['call_type'] = 'silentTransfer'
|
521
|
-
when "0x25498c75"
|
522
|
-
transaction['call_type'] = 'addNewTokenClass'
|
523
|
-
when "0x11411e08"
|
524
|
-
transaction['call_type'] = 'sellToken'
|
525
|
-
when "0xa0169f0d"
|
526
|
-
transaction['call_type'] = 'createDumperShield'
|
527
|
-
when "0x2da91f95"
|
528
|
-
transaction['call_type'] = 'migrationWithdraw'
|
529
533
|
when "0x3659cfe6"
|
530
534
|
transaction['call_type'] = 'upgradeTo'
|
531
|
-
when "
|
532
|
-
transaction['call_type'] = '
|
535
|
+
when "0xd9caed12"
|
536
|
+
transaction['call_type'] = 'withdraw'
|
537
|
+
when "0x78be0ad4", "0xcd948855"
|
538
|
+
transaction['call_type'] = 'withdraw_stake'
|
533
539
|
else
|
534
540
|
transaction['call_type'] = 'unknown'
|
535
541
|
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.75
|
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-
|
11
|
+
date: 2024-01-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|