huginn_callisto_network_agent 0.1.74 → 0.1.76

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: f5e98bb687fb9916f5c7b273f1fbdd35c1efd8cbce871190fb2f7d18d0fdefc6
4
- data.tar.gz: e289f6fad07148bae9757a921713dd3cc088ba17960cff89dc8db9be9b6875a4
3
+ metadata.gz: 978696531634721dd99da0a9200ac467dab56affe953ab733388a007ddf98677
4
+ data.tar.gz: be4148d9bd03535cf47b51e4277509515053a06260fb35ecfe73435740207935
5
5
  SHA512:
6
- metadata.gz: 0b8fdc73967410c96bbd08202bc57b7a9b93b7b28bb8972c0c70a9c66101f6d39571c4170df4a9b1a78fd1c9ccc8cd184c5ae2bb6fafb7aa046066f80f3059a0
7
- data.tar.gz: 2426b66ab48c759c8cba128cc82ee6ddb4fd54432ad99e4b27d9833e15ae0bff756e2dcfd4e084916b2d9b7c056c898497e087c4b93b4a544e574eca149d49a5
6
+ metadata.gz: e7ed37406065d75edb82432406bcc2162b5a8ce289a0ad2b7f9c78814a731265cacef5753332332c24ed8c01537f8aaf93d702a00f69475eea7ee624696568cd
7
+ data.tar.gz: fff1c67747226fe34c3a762396d399c33f5a9b94996fafa16c806bd3a68c746670ac4b3f625cf50fec7aadc82afdb3659df0600d67ab0e2cf6d01d53afc763c1
@@ -445,95 +445,99 @@ 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 "0x65814455"
454
- transaction['call_type'] = 'deactivateNode'
457
+ when "0xc180f4f1"
458
+ transaction['call_type'] = 'addClassProperty'
459
+ when "0xe8e33700"
460
+ transaction['call_type'] = 'addLiquidity'
461
+ when "0x25498c75"
462
+ transaction['call_type'] = 'addNewTokenClass'
455
463
  when "0xb199892a"
456
464
  transaction['call_type'] = 'addNode'
457
- when "0xcdfdb7dc"
458
- transaction['call_type'] = 'setRatios'
459
465
  when "0x01026099"
460
466
  transaction['call_type'] = 'addTokens'
461
- when "0xb2b99ec9"
462
- transaction['call_type'] = 'removeNode'
463
467
  when "0x095ea7b3"
464
468
  transaction['call_type'] = 'approve'
465
- when "0xf2fde38b"
466
- transaction['call_type'] = 'transferOwnership'
467
- when "0x38ed1739"
468
- transaction['call_type'] = 'swapExactTokensForTokens'
469
+ when "0x514fcac7"
470
+ transaction['call_type'] = 'cancelOrder'
471
+ when "0x8f995234", "0x4e71d92d"
472
+ transaction['call_type'] = 'claim'
473
+ when "0xa0169f0d"
474
+ transaction['call_type'] = 'createDumperShield'
475
+ when "0x96d4f640"
476
+ transaction['call_type'] = 'createOrder'
477
+ when "0x65814455"
478
+ transaction['call_type'] = 'deactivateNode'
479
+ when "0xbd000546"
480
+ transaction['call_type'] = 'DeleteOrder'
481
+ when "0x1da7ee0d"
482
+ transaction['call_type'] = 'depositPosition'
483
+ when "0x487cda0d"
484
+ transaction['call_type'] = 'depositTokens'
485
+ when "0x83f818b4"
486
+ transaction['call_type'] = 'game'
487
+ when "0xc4d66de8", "0x1624f6c6"
488
+ transaction['call_type'] = 'initialize'
489
+ when "0xbf3c35c3"
490
+ transaction['call_type'] = 'migrateCLOE'
491
+ when "0x2da91f95"
492
+ transaction['call_type'] = 'migrationWithdraw'
493
+ when "0x40c10f19"
494
+ transaction['call_type'] = 'mint'
495
+ when "0x3054d9cb"
496
+ transaction['call_type'] = 'modifyClassProperty'
497
+ when "0xb2b99ec9"
498
+ transaction['call_type'] = 'removeNode'
499
+ when "0x11411e08"
500
+ transaction['call_type'] = 'sellToken'
501
+ when "0xcf456ae7"
502
+ transaction['call_type'] = 'setMinter'
503
+ when "0xcdfdb7dc"
504
+ transaction['call_type'] = 'setRatios'
505
+ when "0xfe3f3f02"
506
+ transaction['call_type'] = 'setSalary'
507
+ when "0x957138a4"
508
+ transaction['call_type'] = 'setStop'
509
+ when "0xc98e0c3c"
510
+ transaction['call_type'] = 'silentTransfer'
511
+ when "0x84daaf54"
512
+ transaction['call_type'] = 'stakingMigrate'
513
+ when "0x5d8c85ef"
514
+ transaction['call_type'] = 'start_staking'
469
515
  when "0x2e9b3dc3"
470
516
  transaction['call_type'] = 'swapExactCLOForTokens'
517
+ when "0x38ed1739"
518
+ transaction['call_type'] = 'swapExactTokensForTokens'
471
519
  when "0xa6e83852"
472
520
  transaction['call_type'] = 'swapTokensForExactCLO'
473
- when "0x487cda0d"
474
- transaction['call_type'] = 'depositTokens'
475
521
  when "0x8803dbee"
476
522
  transaction['call_type'] = 'swapTokensForExactTokens'
477
- when "0x1da7ee0d"
478
- transaction['call_type'] = 'depositPosition'
479
523
  when "0xa9059cbb"
480
524
  transaction['call_type'] = 'TokenTransfer'
481
525
  transaction['symbol'] = find_symbol(transaction['to'])
482
526
  # transaction['to'] = transaction['input'][10, 64]
483
527
  transaction['to'] = "0x#{transaction['input'][34, 40]}"
484
528
  transaction['value'] = "#{transaction['input'][74, 64].to_i(16) / power.to_i.to_f}"
485
- when "0x"
486
- transaction['call_type'] = 'Transfer'
487
- transaction['symbol'] = "CLO"
488
- transaction['value'] = "#{transaction['value'].to_i(16) / power.to_i.to_f}"
529
+ when "0x335a9406"
530
+ transaction['call_type'] = 'transfer'
531
+ when "0xf2fde38b"
532
+ transaction['call_type'] = 'transferOwnership'
489
533
  when "0xa2e62045", "0x82ab890a"
490
534
  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
535
  when "0x3659cfe6"
530
536
  transaction['call_type'] = 'upgradeTo'
531
- when "0x335a9406"
532
- transaction['call_type'] = 'transfer'
533
- when "0xcf456ae7"
534
- transaction['call_type'] = 'setMinter'
535
- when "0xbf3c35c3"
536
- transaction['call_type'] = 'migrateCLOE'
537
+ when "0xd9caed12"
538
+ transaction['call_type'] = 'withdraw'
539
+ when "0x78be0ad4", "0xcd948855"
540
+ transaction['call_type'] = 'withdraw_stake'
537
541
  else
538
542
  transaction['call_type'] = 'unknown'
539
543
  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.74
4
+ version: 0.1.76
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-20 00:00:00.000000000 Z
11
+ date: 2024-01-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler