otomato-sdk 2.0.248 → 2.0.249

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -432,80 +432,6 @@ const createTwitterAiNotificationTemplate = (username, wfData, thumbnail) => {
432
432
  createWorkflow: createTwitterAiNotificationWorkflow(username, wfData)
433
433
  };
434
434
  };
435
- const twitterAiTemplates = [
436
- createTwitterAiNotificationTemplate({ display: 'Hyperliquid', tag: 'HyperliquidX' }, {
437
- prompt: 'the tweet announces a new listing',
438
- notification: 'Hyperliquid just announced a new listing',
439
- description: 'Get notified when Hyperliquid announces a new listing',
440
- wfTitle: 'Get notified when Hyperliquid announces a new listing via their Twitter',
441
- }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg'),
442
- createTwitterAiNotificationTemplate({ display: 'Hyperliquid', tag: 'HyperliquidX' }, {
443
- prompt: 'the tweet mentions or hints about a season 2, an airdrop, a liquidity mining campaign, points for trading or using the HyperEVM, or any trading incentives in $Hype',
444
- notification: 'Hyperliquid announces either a season 2, an airdrop, a liquidity mining or incentives',
445
- description: 'Get notified when Hyperliquid announces an aidrop',
446
- wfTitle: 'Get notified when Hyperliquid announces a season 2 or something similar (airdrop, liquidity mining, points, incentives)',
447
- }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg'),
448
- createTwitterAiNotificationTemplate({ display: 'lookonchain', tag: 'lookonchain' }, {
449
- prompt: 'the tweet mentions that AAVE has been hacked',
450
- notification: 'lookonchain mentions that AAVE has been hacked',
451
- description: 'Get notified when lookonchain mentions that AAVE has been hacked',
452
- wfTitle: 'Get notified when lookonchain mentions that AAVE has been hacked',
453
- }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg'),
454
- createTwitterAiNotificationTemplate({ display: 'MegaETH', tag: 'megaeth_labs' }, {
455
- prompt: 'the tweet announces mainnet or TGE',
456
- notification: 'MegaETH announces mainnet or TGE',
457
- description: 'Get notified when MegaETH announces mainnet or TGE',
458
- wfTitle: 'Get notified when MegaETH announces mainnet or TGE',
459
- }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg'),
460
- createTwitterAiNotificationTemplate({ display: 'Somnia', tag: 'Somnia_Network' }, {
461
- prompt: 'the tweet announces mainnet or TGE',
462
- notification: 'Somnia announces mainnet or TGE',
463
- description: 'Get notified when Somnia announces mainnet or TGE',
464
- wfTitle: 'Get notified when Somnia announces mainnet or TGE',
465
- }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg'),
466
- createTwitterAiNotificationTemplate({ display: 'Monad', tag: 'monad' }, {
467
- prompt: 'the tweet announces mainnet or TGE',
468
- notification: 'Monad announces mainnet or TGE',
469
- description: 'Get notified when Monad announces mainnet or TGE',
470
- wfTitle: 'Get notified when Monad announces mainnet or TGE',
471
- }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg'),
472
- createTwitterAiNotificationTemplate({ display: 'Binance', tag: 'binance' }, {
473
- prompt: 'the tweet announces a new token listing',
474
- notification: 'Binance announces a new token listing',
475
- description: 'Get notified when Binance announces a new token listing',
476
- wfTitle: 'Get notified when Binance announces a new token listing',
477
- }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg'),
478
- createTwitterAiNotificationTemplate({ display: 'VitalikButerin', tag: 'VitalikButerin' }, {
479
- prompt: 'the tweet is bullish about Ethereum',
480
- notification: 'VitalikButerin is bullish about Ethereum',
481
- description: 'Get notified when VitalikButerin is bullish about Ethereum',
482
- wfTitle: 'Get notified when VitalikButerin is bullish about Ethereum',
483
- }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg'),
484
- createTwitterAiNotificationTemplate({ display: 'Aave', tag: 'aave' }, {
485
- prompt: 'the tweet announces a major partnership',
486
- notification: 'Aave announces a major partnership',
487
- description: 'Get notified when Aave announces a major partnership',
488
- wfTitle: 'Get notified when Aave announces a major partnership',
489
- }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg'),
490
- createTwitterAiNotificationTemplate({ display: 'MorphoLabs', tag: 'MorphoLabs' }, {
491
- prompt: 'the tweet announces a major partnership',
492
- notification: 'MorphoLabs announces a major partnership',
493
- description: 'Get notified when MorphoLabs announces a major partnership',
494
- wfTitle: 'Get notified when MorphoLabs announces a major partnership',
495
- }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg'),
496
- createTwitterAiNotificationTemplate({ display: 'saylor', tag: 'saylor' }, {
497
- prompt: 'the tweet announces that Microstrategy acquired more bitcoin',
498
- notification: 'saylor announces that Microstrategy acquired more bitcoin',
499
- description: 'Get notified when saylor announces that Microstrategy acquired more bitcoin',
500
- wfTitle: 'Get notified when saylor announces that Microstrategy acquired more bitcoin',
501
- }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg'),
502
- createTwitterAiNotificationTemplate({ display: 'phtevenstrong', tag: 'phtevenstrong' }, {
503
- prompt: 'the tweet is about yield opportunities',
504
- notification: 'phtevenstrong mentions yield opportunities',
505
- description: 'Get notified when phtevenstrong mentions yield opportunities',
506
- wfTitle: 'Get notified when phtevenstrong mentions yield opportunities',
507
- }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg'),
508
- ];
509
435
  const createBuyBitcoinOnPeterSchiffBearishWorkflow = () => {
510
436
  const trigger = new Trigger(TRIGGERS.SOCIALS.X.X_POST_TRIGGER);
511
437
  trigger.setParams('username', 'PeterSchiff');
@@ -564,68 +490,110 @@ const createWithdrawOnAaveHackWorkflow = () => {
564
490
  };
565
491
  export const WORKFLOW_TEMPLATES = [
566
492
  {
567
- 'name': 'Get Notified When Ethereum Gas drops below 6 Gwei',
568
- 'description': 'Receive an email alert when Ethereum gas prices fall below 6 gwei.',
569
- 'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
570
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/gasMonitoring.jpg',
493
+ 'name': 'Instantly withdraw liquidity from AAVE if a hack is detected',
494
+ 'description': 'Instantly withdraw liquidity from AAVE if a hack is announced on Twitter either via AAVE\'s official account or by lookonchain',
495
+ 'tags': [WORKFLOW_TEMPLATES_TAGS.LENDING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
496
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/aave.webp',
571
497
  'image': [
572
- TRIGGERS.TECHNICAL.GAS.GAS_API.image,
573
- ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.image
498
+ TRIGGERS.SOCIALS.X.X_POST_TRIGGER.image,
499
+ ACTIONS.AI.AI.image,
500
+ ACTIONS.CORE.CONDITION.image,
501
+ ACTIONS.LENDING.AAVE.WITHDRAW.image
574
502
  ],
575
503
  'blockIDs': [
576
- TRIGGERS.TECHNICAL.GAS.GAS_API.blockId,
577
- ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.blockId
504
+ TRIGGERS.SOCIALS.X.X_POST_TRIGGER.blockId,
505
+ ACTIONS.AI.AI.AI.blockId,
506
+ ACTIONS.CORE.CONDITION.IF.blockId,
507
+ ACTIONS.LENDING.AAVE.WITHDRAW.blockId
578
508
  ],
579
- createWorkflow: gasMonitoring
509
+ createWorkflow: createWithdrawOnAaveHackWorkflow
580
510
  },
581
511
  {
582
- 'name': 'Daily yield updates',
583
- 'description': 'Receive an email every day with a recap from all the money market yields for ETH and USDC & the current gas price.',
584
- 'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
585
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg',
512
+ 'name': 'Get notified when a given uniswap position is out of range',
513
+ 'description': 'Notify me when a given uniswap position is out of range! https://app.uniswap.org/positions',
514
+ 'tags': [WORKFLOW_TEMPLATES_TAGS.DEXES, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
515
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/uniswap_template.webp',
586
516
  'image': [
587
- TRIGGERS.CORE.EVERY_PERIOD.EVERY_PERIOD.image,
517
+ TRIGGERS.DEXES.UNISWAP.IS_IN_RANGE.image,
518
+ ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.image
519
+ ],
520
+ 'blockIDs': [
521
+ TRIGGERS.DEXES.UNISWAP.IS_IN_RANGE.blockId,
522
+ ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.blockId
523
+ ],
524
+ createWorkflow: createUniswapPositionOutOfRangeNotificationWorkflow
525
+ },
526
+ createTwitterAiNotificationTemplate({ display: 'Hyperliquid', tag: 'HyperliquidX' }, {
527
+ prompt: 'the tweet mentions or hints about a season 2, an airdrop, a liquidity mining campaign, points for trading or using the HyperEVM, or any trading incentives in $Hype',
528
+ notification: 'Hyperliquid announces either a season 2, an airdrop, a liquidity mining or incentives',
529
+ description: 'Get notified when Hyperliquid announces an aidrop',
530
+ wfTitle: 'Get notified when Hyperliquid announces a season 2 or something similar (airdrop, liquidity mining, points, incentives)',
531
+ }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/hyperliquid_template.webp'),
532
+ {
533
+ 'name': 'Get notified when a new flash badge is available on Abstract',
534
+ 'description': 'Notify me when a new flash badge is available on Abstract',
535
+ 'tags': [WORKFLOW_TEMPLATES_TAGS.ABSTRACT, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
536
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/abstract-flash-badge-noti.webp',
537
+ 'image': [
538
+ TRIGGERS.SOCIALS.ABSTRACT.ABSTRACT_FLASH_BADGE.image,
539
+ ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.image
540
+ ],
541
+ 'blockIDs': [
542
+ TRIGGERS.SOCIALS.ABSTRACT.ABSTRACT_FLASH_BADGE.blockId,
543
+ ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.blockId
544
+ ],
545
+ createWorkflow: abstractGetNotifiedOnNewFlashBadge
546
+ },
547
+ {
548
+ 'name': 'When the Ethereum foundation sells ETH, notify me',
549
+ 'description': 'Notify me when the Ethereum foundation (0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe) sells ETH',
550
+ 'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS, WORKFLOW_TEMPLATES_TAGS.TRADING],
551
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/eth-foundation.webp',
552
+ 'image': [
553
+ TRIGGERS.TOKENS.TRANSFER.NATIVE_TRANSFER.image,
588
554
  ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.image
589
555
  ],
590
556
  'blockIDs': [
591
- TRIGGERS.CORE.EVERY_PERIOD.EVERY_PERIOD.blockId,
557
+ TRIGGERS.TOKENS.TRANSFER.NATIVE_TRANSFER.blockId,
592
558
  ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.blockId
593
559
  ],
594
- createWorkflow: dailyYieldEmail
560
+ createWorkflow: createEthereumFoundationTransferNotificationWorkflow
595
561
  },
596
562
  {
597
- 'name': 'Daily Fear & Greed-Based cbBTC Trading',
598
- 'description': 'Automatically trade cbBTC daily based on the Fear & Greed Index—buy when low, sell when high.',
599
- 'tags': [WORKFLOW_TEMPLATES_TAGS.TRADING, WORKFLOW_TEMPLATES_TAGS.SOCIALS],
600
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dcaFearAndGreed.png',
563
+ 'name': 'Receive alerts for wallet activity',
564
+ 'description': 'Get notified when a given wallet receives or sends any token on any chain',
565
+ 'tags': [WORKFLOW_TEMPLATES_TAGS.SOCIALS, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
566
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/transfer_alert.webp',
601
567
  'image': [
602
- TRIGGERS.SOCIALS.FEAR_AND_GREED.GET_FEAR_AND_GREED_INDEX.image,
603
- ACTIONS.CORE.SWAP.SWAP.image
568
+ TRIGGERS.TOKENS.BALANCE.image,
569
+ ACTIONS.NOTIFICATIONS.TELEGRAM.image
604
570
  ],
605
571
  'blockIDs': [
606
- TRIGGERS.SOCIALS.FEAR_AND_GREED.GET_FEAR_AND_GREED_INDEX.blockId,
607
- ACTIONS.CORE.SWAP.SWAP.blockId
572
+ TRIGGERS.TOKENS.BALANCE.BALANCE_MOVEMENT.blockId,
573
+ ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.blockId
608
574
  ],
609
- createWorkflow: createDCAFearAndGreed
575
+ createWorkflow: createTokenMovementNotificationWorkflow
610
576
  },
577
+ createTwitterAiNotificationTemplate({ display: 'saylor', tag: 'saylor' }, {
578
+ prompt: 'the tweet announces that Microstrategy acquired more bitcoin',
579
+ notification: 'saylor announces that Microstrategy acquired more bitcoin',
580
+ description: 'Get notified when saylor announces that Microstrategy acquired more bitcoin',
581
+ wfTitle: 'Get notified when saylor announces that Microstrategy acquired more bitcoin',
582
+ }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/microstrategy.webp'),
611
583
  {
612
- 'name': 'Buy ETH when the market sentiment is extremely fearful - capital efficient',
613
- 'description': 'Buy ETH when the Bitcoin Fear and Greed Index is below 45. The idle funds are generating yield on AAVE.',
614
- 'tags': [WORKFLOW_TEMPLATES_TAGS.TRADING, WORKFLOW_TEMPLATES_TAGS.SOCIALS, WORKFLOW_TEMPLATES_TAGS.YIELD],
615
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/fearAndGreed2.png',
584
+ 'name': 'Daily yield updates',
585
+ 'description': 'Receive an email every day with a recap from all the money market yields for ETH and USDC & the current gas price.',
586
+ 'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
587
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg',
616
588
  'image': [
617
- TRIGGERS.SOCIALS.FEAR_AND_GREED.GET_FEAR_AND_GREED_INDEX.image,
618
- ACTIONS.LENDING.AAVE.WITHDRAW.image,
619
- ACTIONS.CORE.SWAP.SWAP.image,
620
- ACTIONS.LENDING.AAVE.SUPPLY.image
589
+ TRIGGERS.CORE.EVERY_PERIOD.EVERY_PERIOD.image,
590
+ ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.image
621
591
  ],
622
592
  'blockIDs': [
623
- TRIGGERS.SOCIALS.FEAR_AND_GREED.GET_FEAR_AND_GREED_INDEX.blockId,
624
- ACTIONS.LENDING.AAVE.WITHDRAW.blockId,
625
- ACTIONS.CORE.SWAP.SWAP.blockId,
626
- ACTIONS.LENDING.AAVE.SUPPLY.blockId
593
+ TRIGGERS.CORE.EVERY_PERIOD.EVERY_PERIOD.blockId,
594
+ ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.blockId
627
595
  ],
628
- createWorkflow: createETHFearAndGreedCapitalEfficientBuy
596
+ createWorkflow: dailyYieldEmail
629
597
  },
630
598
  /*{
631
599
  'name': 'Buy sUSDE when the yield is above 20%',
@@ -648,7 +616,7 @@ export const WORKFLOW_TEMPLATES = [
648
616
  'name': 'sUSDE yield notification',
649
617
  'description': 'Notify me when the sUSDe yield becomes negative',
650
618
  'tags': [WORKFLOW_TEMPLATES_TAGS.TRADING, WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
651
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/shortEna.jpg',
619
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/ethena.webp',
652
620
  'image': [
653
621
  TRIGGERS.YIELD.ETHENA.SUSDE_YIELD.image,
654
622
  ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.image
@@ -659,26 +627,11 @@ export const WORKFLOW_TEMPLATES = [
659
627
  ],
660
628
  createWorkflow: createSusdeYieldNotification
661
629
  },
662
- {
663
- 'name': 'cbBTC transfer notification',
664
- 'description': 'Receive notifications when a top cbBTC holder (0xbbbb....ffcb) transfers cbBTC',
665
- 'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
666
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/transfer-monitoring.png',
667
- 'image': [
668
- TRIGGERS.TOKENS.TRANSFER.TRANSFER.image,
669
- ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.image
670
- ],
671
- 'blockIDs': [
672
- TRIGGERS.TOKENS.TRANSFER.TRANSFER.blockId,
673
- ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.blockId
674
- ],
675
- createWorkflow: createModeTransferNotificationWorkflow
676
- },
677
630
  {
678
631
  'name': 'AAVE borrowing rate notification',
679
632
  'description': 'Notify me when the USDC borrowing rate on Base is above 5%',
680
633
  'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS, WORKFLOW_TEMPLATES_TAGS.YIELD],
681
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/shortEna.jpg',
634
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/aave.webp',
682
635
  'image': [
683
636
  TRIGGERS.LENDING.AAVE.BORROWING_RATES.image,
684
637
  ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.image
@@ -689,41 +642,11 @@ export const WORKFLOW_TEMPLATES = [
689
642
  ],
690
643
  createWorkflow: createAAVEBorrowingRateNotificationWorkflow
691
644
  },
692
- {
693
- 'name': 'Get notified when a new flash badge is available on Abstract',
694
- 'description': 'Notify me when a new flash badge is available on Abstract',
695
- 'tags': [WORKFLOW_TEMPLATES_TAGS.ABSTRACT, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
696
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/abstract-flash-badge-noti.webp',
697
- 'image': [
698
- TRIGGERS.SOCIALS.ABSTRACT.ABSTRACT_FLASH_BADGE.image,
699
- ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.image
700
- ],
701
- 'blockIDs': [
702
- TRIGGERS.SOCIALS.ABSTRACT.ABSTRACT_FLASH_BADGE.blockId,
703
- ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.blockId
704
- ],
705
- createWorkflow: abstractGetNotifiedOnNewFlashBadge
706
- },
707
- {
708
- 'name': 'Get notified when a given streamer goes live',
709
- 'description': 'Notify me when a given streamer goes live',
710
- 'tags': [WORKFLOW_TEMPLATES_TAGS.ABSTRACT, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
711
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/abstract-streamer-live-noti.webp',
712
- 'image': [
713
- TRIGGERS.SOCIALS.ABSTRACT.ON_STREAMER_LIVE.image,
714
- ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.image
715
- ],
716
- 'blockIDs': [
717
- TRIGGERS.SOCIALS.ABSTRACT.ON_STREAMER_LIVE.blockId,
718
- ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.blockId
719
- ],
720
- createWorkflow: abstractGetNotifiedWhenStreamerIsLive
721
- },
722
645
  {
723
646
  'name': 'Get notified when a new app is listed on the abstract portal',
724
647
  'description': 'Notify me when a new app is listed on the abstract portal',
725
648
  'tags': [WORKFLOW_TEMPLATES_TAGS.ABSTRACT, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
726
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/abstract-new-app-noti.webp',
649
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/abstract_new_app.webp',
727
650
  'image': [
728
651
  TRIGGERS.SOCIALS.ABSTRACT.ON_NEW_APP_RELEASE.image,
729
652
  ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.image
@@ -738,7 +661,7 @@ export const WORKFLOW_TEMPLATES = [
738
661
  'name': 'Get notified when insider gets a new badge',
739
662
  'description': 'Get notified when insider gets a new badge',
740
663
  'tags': [WORKFLOW_TEMPLATES_TAGS.ABSTRACT, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
741
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/abstract-new-user-badge-noti.webp',
664
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/abstract_badge.webp',
742
665
  'image': [
743
666
  TRIGGERS.SOCIALS.ABSTRACT.ON_USERS_NEW_BADGE.image,
744
667
  ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.image
@@ -749,21 +672,6 @@ export const WORKFLOW_TEMPLATES = [
749
672
  ],
750
673
  createWorkflow: abstractGetNotifiedOnNewUserBadge
751
674
  },
752
- {
753
- 'name': 'When the Ethereum foundation sells ETH, notify me',
754
- 'description': 'Notify me when the Ethereum foundation (0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe) sells ETH',
755
- 'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS, WORKFLOW_TEMPLATES_TAGS.TRADING],
756
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/transfer-monitoring.png',
757
- 'image': [
758
- TRIGGERS.TOKENS.TRANSFER.NATIVE_TRANSFER.image,
759
- ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.image
760
- ],
761
- 'blockIDs': [
762
- TRIGGERS.TOKENS.TRANSFER.NATIVE_TRANSFER.blockId,
763
- ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.blockId
764
- ],
765
- createWorkflow: createEthereumFoundationTransferNotificationWorkflow
766
- },
767
675
  /*{
768
676
  'name': 'Buy ETH when the market sentiment is extremely fearful',
769
677
  'description': 'Buy ETH when the Bitcoin Fear and Greed Index is below 30',
@@ -809,21 +717,6 @@ export const WORKFLOW_TEMPLATES = [
809
717
  ],
810
718
  createWorkflow: createStakestoneUnstakeNotificationWorkflow
811
719
  },
812
- {
813
- 'name': 'Get notified when a given uniswap position is out of range',
814
- 'description': 'Notify me when a given uniswap position is out of range! https://app.uniswap.org/positions',
815
- 'tags': [WORKFLOW_TEMPLATES_TAGS.DEXES, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
816
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/uniswap_template.webp',
817
- 'image': [
818
- TRIGGERS.DEXES.UNISWAP.IS_IN_RANGE.image,
819
- ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.image
820
- ],
821
- 'blockIDs': [
822
- TRIGGERS.DEXES.UNISWAP.IS_IN_RANGE.blockId,
823
- ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.blockId
824
- ],
825
- createWorkflow: createUniswapPositionOutOfRangeNotificationWorkflow
826
- },
827
720
  {
828
721
  'name': 'Get notified when Hyperlend raise their deposit cap for stHype',
829
722
  'description': 'Notify me when Hyperlend raise their deposit cap for stHype',
@@ -839,7 +732,7 @@ export const WORKFLOW_TEMPLATES = [
839
732
  ],
840
733
  createWorkflow: createHyperLendDepositCapNotificationWorkflow
841
734
  },
842
- {
735
+ /*{
843
736
  'name': 'Get notified when there are more than 50 ETH in available liquidity for instant withdrawal on Stakestone',
844
737
  'description': 'Notify me when there are more than 50 ETH in available liquidity for instant withdrawal on Stakestone',
845
738
  'tags': [WORKFLOW_TEMPLATES_TAGS.YIELD, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
@@ -853,7 +746,7 @@ export const WORKFLOW_TEMPLATES = [
853
746
  ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.blockId
854
747
  ],
855
748
  createWorkflow: createStakestoneInstantWithdrawalNotificationWorkflow
856
- },
749
+ },*/
857
750
  {
858
751
  'name': 'Get notified when I receive USDC',
859
752
  'description': 'Notify me when I receive USDC',
@@ -873,7 +766,7 @@ export const WORKFLOW_TEMPLATES = [
873
766
  'name': 'Save all the current yields for USDC on base (AAVE, Compound, Moonwell, Spark USDC Vault, Moonwell Flagship USDC, Seamless USDC Vault, Steakhouse USDC, Gauntlet USDC Prime) every hour',
874
767
  'description': 'Save all the current yields for USDC on base (AAVE, Compound, Moonwell, Spark USDC Vault, Moonwell Flagship USDC, Seamless USDC Vault, Steakhouse USDC, Gauntlet USDC Prime) every hour',
875
768
  'tags': [WORKFLOW_TEMPLATES_TAGS.YIELD, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
876
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg',
769
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/google_sheet_template.webp',
877
770
  'image': [
878
771
  TRIGGERS.CORE.EVERY_PERIOD.EVERY_PERIOD.image,
879
772
  ACTIONS.OTHERS.GSHEET.GSHEET.image
@@ -888,7 +781,7 @@ export const WORKFLOW_TEMPLATES = [
888
781
  'name': 'Get notified when the difference between BTC spot and perpetual prices exceeds 0.15%',
889
782
  'description': 'Get notified when the difference between BTC spot and perpetual prices exceeds 0.15%',
890
783
  'tags': [WORKFLOW_TEMPLATES_TAGS.DEXES, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
891
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg',
784
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/hyperliquid_template.webp',
892
785
  'image': [
893
786
  TRIGGERS.DEXES.HYPERLIQUID.SPOT_PRICE.image,
894
787
  TRIGGERS.DEXES.HYPERLIQUID.PERPS_PRICE.image,
@@ -919,57 +812,161 @@ export const WORKFLOW_TEMPLATES = [
919
812
  createWorkflow: createDefillamaRaiseNotificationWorkflow
920
813
  },
921
814
  {
922
- 'name': 'Receive alerts for wallet activity',
923
- 'description': 'Get notified when a given wallet receives or sends any token on any chain',
924
- 'tags': [WORKFLOW_TEMPLATES_TAGS.SOCIALS, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
925
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg',
926
- 'image': [
927
- TRIGGERS.TOKENS.BALANCE.image,
928
- ACTIONS.NOTIFICATIONS.TELEGRAM.image
929
- ],
930
- 'blockIDs': [
931
- TRIGGERS.TOKENS.BALANCE.BALANCE_MOVEMENT.blockId,
932
- ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.blockId
933
- ],
934
- createWorkflow: createTokenMovementNotificationWorkflow
935
- },
936
- {
937
- 'name': 'Instantly withdraw liquidity from AAVE if a hack is detected',
938
- 'description': 'Instantly withdraw liquidity from AAVE if a hack is announced on Twitter either via AAVE\'s official account or by lookonchain',
939
- 'tags': [WORKFLOW_TEMPLATES_TAGS.LENDING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
940
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg',
815
+ 'name': 'Buy cbBTC when PeterSchiff tweets a bearish tweet',
816
+ 'description': 'Buy cbBTC when PeterSchiff tweets a bearish tweet',
817
+ 'tags': [WORKFLOW_TEMPLATES_TAGS.TRADING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
818
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/twitter_yield_strat.webp',
941
819
  'image': [
942
820
  TRIGGERS.SOCIALS.X.X_POST_TRIGGER.image,
943
821
  ACTIONS.AI.AI.image,
944
822
  ACTIONS.CORE.CONDITION.image,
945
- ACTIONS.LENDING.AAVE.WITHDRAW.image
823
+ ACTIONS.CORE.SWAP.SWAP.image
946
824
  ],
947
825
  'blockIDs': [
948
826
  TRIGGERS.SOCIALS.X.X_POST_TRIGGER.blockId,
949
827
  ACTIONS.AI.AI.AI.blockId,
950
828
  ACTIONS.CORE.CONDITION.IF.blockId,
951
- ACTIONS.LENDING.AAVE.WITHDRAW.blockId
829
+ ACTIONS.CORE.SWAP.SWAP.blockId
952
830
  ],
953
- createWorkflow: createWithdrawOnAaveHackWorkflow
831
+ createWorkflow: createBuyBitcoinOnPeterSchiffBearishWorkflow
954
832
  },
833
+ createTwitterAiNotificationTemplate({ display: 'Hyperliquid', tag: 'HyperliquidX' }, {
834
+ prompt: 'the tweet announces a new listing',
835
+ notification: 'Hyperliquid just announced a new listing',
836
+ description: 'Get notified when Hyperliquid announces a new listing',
837
+ wfTitle: 'Get notified when Hyperliquid announces a new listing via their Twitter',
838
+ }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/hyperliquid_template.webp'),
839
+ createTwitterAiNotificationTemplate({ display: 'lookonchain', tag: 'lookonchain' }, {
840
+ prompt: 'the tweet mentions that AAVE has been hacked',
841
+ notification: 'lookonchain mentions that AAVE has been hacked',
842
+ description: 'Get notified when lookonchain mentions that AAVE has been hacked',
843
+ wfTitle: 'Get notified when lookonchain mentions that AAVE has been hacked',
844
+ }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/aave.webp'),
845
+ createTwitterAiNotificationTemplate({ display: 'MegaETH', tag: 'megaeth_labs' }, {
846
+ prompt: 'the tweet announces mainnet or TGE',
847
+ notification: 'MegaETH announces mainnet or TGE',
848
+ description: 'Get notified when MegaETH announces mainnet or TGE',
849
+ wfTitle: 'Get notified when MegaETH announces mainnet or TGE',
850
+ }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/megaeth.webp'),
851
+ createTwitterAiNotificationTemplate({ display: 'Somnia', tag: 'Somnia_Network' }, {
852
+ prompt: 'the tweet announces mainnet or TGE',
853
+ notification: 'Somnia announces mainnet or TGE',
854
+ description: 'Get notified when Somnia announces mainnet or TGE',
855
+ wfTitle: 'Get notified when Somnia announces mainnet or TGE',
856
+ }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/somnia.webp'),
857
+ createTwitterAiNotificationTemplate({ display: 'Monad', tag: 'monad' }, {
858
+ prompt: 'the tweet announces mainnet or TGE',
859
+ notification: 'Monad announces mainnet or TGE',
860
+ description: 'Get notified when Monad announces mainnet or TGE',
861
+ wfTitle: 'Get notified when Monad announces mainnet or TGE',
862
+ }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/monad.webp'),
863
+ createTwitterAiNotificationTemplate({ display: 'Binance', tag: 'binance' }, {
864
+ prompt: 'the tweet announces a new token listing',
865
+ notification: 'Binance announces a new token listing',
866
+ description: 'Get notified when Binance announces a new token listing',
867
+ wfTitle: 'Get notified when Binance announces a new token listing',
868
+ }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/binance.webp'),
869
+ createTwitterAiNotificationTemplate({ display: 'VitalikButerin', tag: 'VitalikButerin' }, {
870
+ prompt: 'the tweet is bullish about Ethereum',
871
+ notification: 'VitalikButerin is bullish about Ethereum',
872
+ description: 'Get notified when VitalikButerin is bullish about Ethereum',
873
+ wfTitle: 'Get notified when VitalikButerin is bullish about Ethereum',
874
+ }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/vitalik.webp'),
875
+ createTwitterAiNotificationTemplate({ display: 'Aave', tag: 'aave' }, {
876
+ prompt: 'the tweet announces a major partnership',
877
+ notification: 'Aave announces a major partnership',
878
+ description: 'Get notified when Aave announces a major partnership',
879
+ wfTitle: 'Get notified when Aave announces a major partnership',
880
+ }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/aave.webp'),
881
+ createTwitterAiNotificationTemplate({ display: 'MorphoLabs', tag: 'MorphoLabs' }, {
882
+ prompt: 'the tweet announces a major partnership',
883
+ notification: 'MorphoLabs announces a major partnership',
884
+ description: 'Get notified when MorphoLabs announces a major partnership',
885
+ wfTitle: 'Get notified when MorphoLabs announces a major partnership',
886
+ }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/morpho.webp'),
887
+ createTwitterAiNotificationTemplate({ display: 'phtevenstrong', tag: 'phtevenstrong' }, {
888
+ prompt: 'the tweet is about yield opportunities',
889
+ notification: 'phtevenstrong mentions yield opportunities',
890
+ description: 'Get notified when phtevenstrong mentions yield opportunities',
891
+ wfTitle: 'Get notified when phtevenstrong mentions yield opportunities',
892
+ }, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/twitter_yield_strat.webp'),
955
893
  {
956
- 'name': 'Buy cbBTC when PeterSchiff tweets a bearish tweet',
957
- 'description': 'Buy cbBTC when PeterSchiff tweets a bearish tweet',
958
- 'tags': [WORKFLOW_TEMPLATES_TAGS.TRADING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
959
- 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dailyYieldUpdates.jpg',
894
+ 'name': 'Daily Fear & Greed-Based cbBTC Trading',
895
+ 'description': 'Automatically trade cbBTC daily based on the Fear & Greed Index—buy when low, sell when high.',
896
+ 'tags': [WORKFLOW_TEMPLATES_TAGS.TRADING, WORKFLOW_TEMPLATES_TAGS.SOCIALS],
897
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dca_fear_and_greed.webp',
960
898
  'image': [
961
- TRIGGERS.SOCIALS.X.X_POST_TRIGGER.image,
962
- ACTIONS.AI.AI.image,
963
- ACTIONS.CORE.CONDITION.image,
899
+ TRIGGERS.SOCIALS.FEAR_AND_GREED.GET_FEAR_AND_GREED_INDEX.image,
964
900
  ACTIONS.CORE.SWAP.SWAP.image
965
901
  ],
966
902
  'blockIDs': [
967
- TRIGGERS.SOCIALS.X.X_POST_TRIGGER.blockId,
968
- ACTIONS.AI.AI.AI.blockId,
969
- ACTIONS.CORE.CONDITION.IF.blockId,
903
+ TRIGGERS.SOCIALS.FEAR_AND_GREED.GET_FEAR_AND_GREED_INDEX.blockId,
970
904
  ACTIONS.CORE.SWAP.SWAP.blockId
971
905
  ],
972
- createWorkflow: createBuyBitcoinOnPeterSchiffBearishWorkflow
906
+ createWorkflow: createDCAFearAndGreed
907
+ },
908
+ {
909
+ 'name': 'Buy ETH when the market sentiment is extremely fearful - capital efficient',
910
+ 'description': 'Buy ETH when the Bitcoin Fear and Greed Index is below 45. The idle funds are generating yield on AAVE.',
911
+ 'tags': [WORKFLOW_TEMPLATES_TAGS.TRADING, WORKFLOW_TEMPLATES_TAGS.SOCIALS, WORKFLOW_TEMPLATES_TAGS.YIELD],
912
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/dca_fear_and_greed_eth.webp',
913
+ 'image': [
914
+ TRIGGERS.SOCIALS.FEAR_AND_GREED.GET_FEAR_AND_GREED_INDEX.image,
915
+ ACTIONS.LENDING.AAVE.WITHDRAW.image,
916
+ ACTIONS.CORE.SWAP.SWAP.image,
917
+ ACTIONS.LENDING.AAVE.SUPPLY.image
918
+ ],
919
+ 'blockIDs': [
920
+ TRIGGERS.SOCIALS.FEAR_AND_GREED.GET_FEAR_AND_GREED_INDEX.blockId,
921
+ ACTIONS.LENDING.AAVE.WITHDRAW.blockId,
922
+ ACTIONS.CORE.SWAP.SWAP.blockId,
923
+ ACTIONS.LENDING.AAVE.SUPPLY.blockId
924
+ ],
925
+ createWorkflow: createETHFearAndGreedCapitalEfficientBuy
926
+ },
927
+ {
928
+ 'name': 'Get notified when a given streamer goes live',
929
+ 'description': 'Notify me when a given streamer goes live',
930
+ 'tags': [WORKFLOW_TEMPLATES_TAGS.ABSTRACT, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
931
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/abstract-streamer-live-noti.webp',
932
+ 'image': [
933
+ TRIGGERS.SOCIALS.ABSTRACT.ON_STREAMER_LIVE.image,
934
+ ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.image
935
+ ],
936
+ 'blockIDs': [
937
+ TRIGGERS.SOCIALS.ABSTRACT.ON_STREAMER_LIVE.blockId,
938
+ ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.blockId
939
+ ],
940
+ createWorkflow: abstractGetNotifiedWhenStreamerIsLive
941
+ },
942
+ {
943
+ 'name': 'Get Notified When Ethereum Gas drops below 6 Gwei',
944
+ 'description': 'Receive an email alert when Ethereum gas prices fall below 6 gwei.',
945
+ 'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
946
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/gas.webp',
947
+ 'image': [
948
+ TRIGGERS.TECHNICAL.GAS.GAS_API.image,
949
+ ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.image
950
+ ],
951
+ 'blockIDs': [
952
+ TRIGGERS.TECHNICAL.GAS.GAS_API.blockId,
953
+ ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.blockId
954
+ ],
955
+ createWorkflow: gasMonitoring
956
+ },
957
+ {
958
+ 'name': 'cbBTC transfer notification',
959
+ 'description': 'Receive notifications when a top cbBTC holder (0xbbbb....ffcb) transfers cbBTC',
960
+ 'tags': [WORKFLOW_TEMPLATES_TAGS.ON_CHAIN_MONITORING, WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS],
961
+ 'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/transfer_alert.webp',
962
+ 'image': [
963
+ TRIGGERS.TOKENS.TRANSFER.TRANSFER.image,
964
+ ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.image
965
+ ],
966
+ 'blockIDs': [
967
+ TRIGGERS.TOKENS.TRANSFER.TRANSFER.blockId,
968
+ ACTIONS.NOTIFICATIONS.EMAIL.SEND_EMAIL.blockId
969
+ ],
970
+ createWorkflow: createModeTransferNotificationWorkflow
973
971
  },
974
- ...twitterAiTemplates
975
972
  ];
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.248';
1
+ export const SDK_VERSION = '2.0.249';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.248";
1
+ export declare const SDK_VERSION = "2.0.249";
2
2
  export declare function compareVersions(v1: string, v2: string): number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "2.0.248",
3
+ "version": "2.0.249",
4
4
  "description": "An SDK for building and managing automations on Otomato",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/types/src/index.d.ts",