otomato-sdk 2.0.628 → 2.0.631

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.
@@ -1572,6 +1572,240 @@ export const TRIGGERS = {
1572
1572
  }
1573
1573
  },
1574
1574
  "YIELD": {
1575
+ "CBETH": {
1576
+ "description": "Coinbase — native on-chain yield of cbETH (share-price growth, no smoothing)",
1577
+ "chains": [
1578
+ 1
1579
+ ],
1580
+ "image": "https://raw.githubusercontent.com/Otomatorg/otomato-decoder/main/jsons/data/tokens/icons/placeholder.png",
1581
+ "NATIVE_YIELD": {
1582
+ "name": "cbETH native yield",
1583
+ "prototype": "coinbaseCbETHNativeYield",
1584
+ "dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getChainHTML, getComparisonString } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `cbETH native yield on ${getChainHTML(env.parameters.chainId)} ${getComparisonString(env.parameters.condition, env.parameters.comparisonValue)}%`\n );\n }",
1585
+ "description": "Reads the on-chain native yield (APY %) of cbETH from the growth of its exchangeRate() share-price over a 14-day window, and fires when it meets the condition.",
1586
+ "type": 6,
1587
+ "output": {
1588
+ "nativeApy": "float",
1589
+ "sharePrice": "float",
1590
+ "windowDays": "float"
1591
+ },
1592
+ "parameters": [
1593
+ {
1594
+ "key": "chainId",
1595
+ "type": "chainId",
1596
+ "description": "Chain ID of the network",
1597
+ "mandatory": true,
1598
+ "category": 0,
1599
+ "value": 1
1600
+ },
1601
+ {
1602
+ "key": "contractAddress",
1603
+ "type": "address",
1604
+ "description": "Rate-holder contract exposing exchangeRate() (the token itself)",
1605
+ "mandatory": true,
1606
+ "category": 0,
1607
+ "value": "0xBe9895146f7AF43049ca1c1AE358B0541Ea49704"
1608
+ },
1609
+ {
1610
+ "key": "condition",
1611
+ "type": "logic_operator",
1612
+ "description": "Logic operator used for the comparison (e.g. >, <, >=)",
1613
+ "mandatory": true,
1614
+ "category": 0
1615
+ },
1616
+ {
1617
+ "key": "comparisonValue",
1618
+ "type": "float",
1619
+ "description": "The native yield (in %) to compare against (e.g. 3 = 3% APY)",
1620
+ "mandatory": true,
1621
+ "category": 0
1622
+ },
1623
+ ],
1624
+ "examples": [
1625
+ {
1626
+ "name": "cbETH native yield above 2%",
1627
+ "description": "Triggers when the on-chain native yield of cbETH rises above 2% on Ethereum.",
1628
+ "externalVariableDescription": "Fetches the current on-chain native yield (APY %) of cbETH.",
1629
+ "parameters": [
1630
+ {
1631
+ "key": "chainId",
1632
+ "value": 1
1633
+ },
1634
+ {
1635
+ "key": "contractAddress",
1636
+ "value": "0xBe9895146f7AF43049ca1c1AE358B0541Ea49704"
1637
+ },
1638
+ {
1639
+ "key": "condition",
1640
+ "value": "gt"
1641
+ },
1642
+ {
1643
+ "key": "comparisonValue",
1644
+ "value": 2
1645
+ }
1646
+ ]
1647
+ }
1648
+ ],
1649
+ "blockId": 283,
1650
+ "image": "https://raw.githubusercontent.com/Otomatorg/otomato-decoder/main/jsons/data/tokens/icons/placeholder.png"
1651
+ }
1652
+ },
1653
+ "METH": {
1654
+ "description": "Mantle — native on-chain yield of mETH (share-price growth, no smoothing)",
1655
+ "chains": [
1656
+ 1
1657
+ ],
1658
+ "image": "https://coin-images.coingecko.com/coins/images/33345/large/symbol_transparent_bg.png",
1659
+ "NATIVE_YIELD": {
1660
+ "name": "mETH native yield",
1661
+ "prototype": "mantleMETHNativeYield",
1662
+ "dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getChainHTML, getComparisonString } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `mETH native yield on ${getChainHTML(env.parameters.chainId)} ${getComparisonString(env.parameters.condition, env.parameters.comparisonValue)}%`\n );\n }",
1663
+ "description": "Reads the on-chain native yield (APY %) of mETH from the growth of its mETHToETH() share-price over a 14-day window, and fires when it meets the condition.",
1664
+ "type": 6,
1665
+ "output": {
1666
+ "nativeApy": "float",
1667
+ "sharePrice": "float",
1668
+ "windowDays": "float"
1669
+ },
1670
+ "parameters": [
1671
+ {
1672
+ "key": "chainId",
1673
+ "type": "chainId",
1674
+ "description": "Chain ID of the network",
1675
+ "mandatory": true,
1676
+ "category": 0,
1677
+ "value": 1
1678
+ },
1679
+ {
1680
+ "key": "contractAddress",
1681
+ "type": "address",
1682
+ "description": "Rate-holder contract exposing mETHToETH() (the dedicated share-price/manager contract, NOT the token)",
1683
+ "mandatory": true,
1684
+ "category": 0,
1685
+ "value": "0xe3cBd06D7dadB3F4e6557bAb7EdD924CD1489E8f"
1686
+ },
1687
+ {
1688
+ "key": "condition",
1689
+ "type": "logic_operator",
1690
+ "description": "Logic operator used for the comparison (e.g. >, <, >=)",
1691
+ "mandatory": true,
1692
+ "category": 0
1693
+ },
1694
+ {
1695
+ "key": "comparisonValue",
1696
+ "type": "float",
1697
+ "description": "The native yield (in %) to compare against (e.g. 3 = 3% APY)",
1698
+ "mandatory": true,
1699
+ "category": 0
1700
+ },
1701
+ ],
1702
+ "examples": [
1703
+ {
1704
+ "name": "mETH native yield above 2%",
1705
+ "description": "Triggers when the on-chain native yield of mETH rises above 2% on Ethereum.",
1706
+ "externalVariableDescription": "Fetches the current on-chain native yield (APY %) of mETH.",
1707
+ "parameters": [
1708
+ {
1709
+ "key": "chainId",
1710
+ "value": 1
1711
+ },
1712
+ {
1713
+ "key": "contractAddress",
1714
+ "value": "0xe3cBd06D7dadB3F4e6557bAb7EdD924CD1489E8f"
1715
+ },
1716
+ {
1717
+ "key": "condition",
1718
+ "value": "gt"
1719
+ },
1720
+ {
1721
+ "key": "comparisonValue",
1722
+ "value": 2
1723
+ }
1724
+ ]
1725
+ }
1726
+ ],
1727
+ "blockId": 282,
1728
+ "image": "https://coin-images.coingecko.com/coins/images/33345/large/symbol_transparent_bg.png"
1729
+ }
1730
+ },
1731
+ "LSETH": {
1732
+ "description": "Liquid Collective — native on-chain yield of lsETH (share-price growth, no smoothing)",
1733
+ "chains": [
1734
+ 1
1735
+ ],
1736
+ "image": "https://coin-images.coingecko.com/coins/images/28848/large/LsETH-receipt-token-circle.png",
1737
+ "NATIVE_YIELD": {
1738
+ "name": "lsETH native yield",
1739
+ "prototype": "liquidcollectiveLsETHNativeYield",
1740
+ "dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getChainHTML, getComparisonString } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `lsETH native yield on ${getChainHTML(env.parameters.chainId)} ${getComparisonString(env.parameters.condition, env.parameters.comparisonValue)}%`\n );\n }",
1741
+ "description": "Reads the on-chain native yield (APY %) of lsETH from the growth of its underlyingBalanceFromShares() share-price over a 14-day window, and fires when it meets the condition.",
1742
+ "type": 6,
1743
+ "output": {
1744
+ "nativeApy": "float",
1745
+ "sharePrice": "float",
1746
+ "windowDays": "float"
1747
+ },
1748
+ "parameters": [
1749
+ {
1750
+ "key": "chainId",
1751
+ "type": "chainId",
1752
+ "description": "Chain ID of the network",
1753
+ "mandatory": true,
1754
+ "category": 0,
1755
+ "value": 1
1756
+ },
1757
+ {
1758
+ "key": "contractAddress",
1759
+ "type": "address",
1760
+ "description": "Rate-holder contract exposing underlyingBalanceFromShares() (the token itself)",
1761
+ "mandatory": true,
1762
+ "category": 0,
1763
+ "value": "0x8c1BEd5b9a0928467c9B1341Da1D7BD5e10b6549"
1764
+ },
1765
+ {
1766
+ "key": "condition",
1767
+ "type": "logic_operator",
1768
+ "description": "Logic operator used for the comparison (e.g. >, <, >=)",
1769
+ "mandatory": true,
1770
+ "category": 0
1771
+ },
1772
+ {
1773
+ "key": "comparisonValue",
1774
+ "type": "float",
1775
+ "description": "The native yield (in %) to compare against (e.g. 3 = 3% APY)",
1776
+ "mandatory": true,
1777
+ "category": 0
1778
+ },
1779
+ ],
1780
+ "examples": [
1781
+ {
1782
+ "name": "lsETH native yield above 2%",
1783
+ "description": "Triggers when the on-chain native yield of lsETH rises above 2% on Ethereum.",
1784
+ "externalVariableDescription": "Fetches the current on-chain native yield (APY %) of lsETH.",
1785
+ "parameters": [
1786
+ {
1787
+ "key": "chainId",
1788
+ "value": 1
1789
+ },
1790
+ {
1791
+ "key": "contractAddress",
1792
+ "value": "0x8c1BEd5b9a0928467c9B1341Da1D7BD5e10b6549"
1793
+ },
1794
+ {
1795
+ "key": "condition",
1796
+ "value": "gt"
1797
+ },
1798
+ {
1799
+ "key": "comparisonValue",
1800
+ "value": 2
1801
+ }
1802
+ ]
1803
+ }
1804
+ ],
1805
+ "blockId": 281,
1806
+ "image": "https://coin-images.coingecko.com/coins/images/28848/large/LsETH-receipt-token-circle.png"
1807
+ }
1808
+ },
1575
1809
  "RSETH": {
1576
1810
  "description": "Kelp DAO — native on-chain yield of rsETH (share-price growth, no smoothing)",
1577
1811
  "chains": [
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.628';
1
+ export const SDK_VERSION = '2.0.631';
2
2
  export function compareVersions(v1, v2) {
3
3
  // Split the version strings into parts
4
4
  const v1Parts = v1.split('.').map(Number);
@@ -588,6 +588,102 @@ export declare const TRIGGERS: {
588
588
  };
589
589
  };
590
590
  YIELD: {
591
+ CBETH: {
592
+ description: string;
593
+ chains: number[];
594
+ image: string;
595
+ NATIVE_YIELD: {
596
+ name: string;
597
+ prototype: string;
598
+ dynamicName: string;
599
+ description: string;
600
+ type: number;
601
+ output: {
602
+ nativeApy: string;
603
+ sharePrice: string;
604
+ windowDays: string;
605
+ };
606
+ parameters: Parameter[];
607
+ examples: {
608
+ name: string;
609
+ description: string;
610
+ externalVariableDescription: string;
611
+ parameters: ({
612
+ key: string;
613
+ value: number;
614
+ } | {
615
+ key: string;
616
+ value: string;
617
+ })[];
618
+ }[];
619
+ blockId: number;
620
+ image: string;
621
+ };
622
+ };
623
+ METH: {
624
+ description: string;
625
+ chains: number[];
626
+ image: string;
627
+ NATIVE_YIELD: {
628
+ name: string;
629
+ prototype: string;
630
+ dynamicName: string;
631
+ description: string;
632
+ type: number;
633
+ output: {
634
+ nativeApy: string;
635
+ sharePrice: string;
636
+ windowDays: string;
637
+ };
638
+ parameters: Parameter[];
639
+ examples: {
640
+ name: string;
641
+ description: string;
642
+ externalVariableDescription: string;
643
+ parameters: ({
644
+ key: string;
645
+ value: number;
646
+ } | {
647
+ key: string;
648
+ value: string;
649
+ })[];
650
+ }[];
651
+ blockId: number;
652
+ image: string;
653
+ };
654
+ };
655
+ LSETH: {
656
+ description: string;
657
+ chains: number[];
658
+ image: string;
659
+ NATIVE_YIELD: {
660
+ name: string;
661
+ prototype: string;
662
+ dynamicName: string;
663
+ description: string;
664
+ type: number;
665
+ output: {
666
+ nativeApy: string;
667
+ sharePrice: string;
668
+ windowDays: string;
669
+ };
670
+ parameters: Parameter[];
671
+ examples: {
672
+ name: string;
673
+ description: string;
674
+ externalVariableDescription: string;
675
+ parameters: ({
676
+ key: string;
677
+ value: number;
678
+ } | {
679
+ key: string;
680
+ value: string;
681
+ })[];
682
+ }[];
683
+ blockId: number;
684
+ image: string;
685
+ };
686
+ };
591
687
  RSETH: {
592
688
  description: string;
593
689
  chains: number[];
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.628";
1
+ export declare const SDK_VERSION = "2.0.631";
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.628",
3
+ "version": "2.0.631",
4
4
  "description": "An SDK for building and managing automations on Otomato",
5
5
  "repository": {
6
6
  "type": "git",