otomato-sdk 2.0.626 → 2.0.628

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,162 @@ export const TRIGGERS = {
1572
1572
  }
1573
1573
  },
1574
1574
  "YIELD": {
1575
+ "RSETH": {
1576
+ "description": "Kelp DAO — native on-chain yield of rsETH (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": "rsETH native yield",
1583
+ "prototype": "kelpdaoRsETHNativeYield",
1584
+ "dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getChainHTML, getComparisonString } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `rsETH 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 rsETH from the growth of its rsETHPrice() 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 rsETHPrice() (the dedicated share-price/manager contract, NOT the token)",
1605
+ "mandatory": true,
1606
+ "category": 0,
1607
+ "value": "0x349A73444b1a310BAe67ef67973022020d70020d"
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": "rsETH native yield above 2%",
1627
+ "description": "Triggers when the on-chain native yield of rsETH rises above 2% on Ethereum.",
1628
+ "externalVariableDescription": "Fetches the current on-chain native yield (APY %) of rsETH.",
1629
+ "parameters": [
1630
+ {
1631
+ "key": "chainId",
1632
+ "value": 1
1633
+ },
1634
+ {
1635
+ "key": "contractAddress",
1636
+ "value": "0x349A73444b1a310BAe67ef67973022020d70020d"
1637
+ },
1638
+ {
1639
+ "key": "condition",
1640
+ "value": "gt"
1641
+ },
1642
+ {
1643
+ "key": "comparisonValue",
1644
+ "value": 2
1645
+ }
1646
+ ]
1647
+ }
1648
+ ],
1649
+ "blockId": 280,
1650
+ "image": "https://raw.githubusercontent.com/Otomatorg/otomato-decoder/main/jsons/data/tokens/icons/placeholder.png"
1651
+ }
1652
+ },
1653
+ "WBETH": {
1654
+ "description": "Binance — native on-chain yield of wBETH (share-price growth, no smoothing)",
1655
+ "chains": [
1656
+ 1
1657
+ ],
1658
+ "image": "https://coin-images.coingecko.com/coins/images/30061/large/wbeth-icon.png",
1659
+ "NATIVE_YIELD": {
1660
+ "name": "wBETH native yield",
1661
+ "prototype": "binanceWbethNativeYield",
1662
+ "dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getChainHTML, getComparisonString } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `wBETH 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 wBETH from the growth of its exchangeRate() 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 exchangeRate() (the token itself)",
1683
+ "mandatory": true,
1684
+ "category": 0,
1685
+ "value": "0xa2E3356610840701BDf5611a53974510Ae27E2e1"
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": "wBETH native yield above 2%",
1705
+ "description": "Triggers when the on-chain native yield of wBETH rises above 2% on Ethereum.",
1706
+ "externalVariableDescription": "Fetches the current on-chain native yield (APY %) of wBETH.",
1707
+ "parameters": [
1708
+ {
1709
+ "key": "chainId",
1710
+ "value": 1
1711
+ },
1712
+ {
1713
+ "key": "contractAddress",
1714
+ "value": "0xa2E3356610840701BDf5611a53974510Ae27E2e1"
1715
+ },
1716
+ {
1717
+ "key": "condition",
1718
+ "value": "gt"
1719
+ },
1720
+ {
1721
+ "key": "comparisonValue",
1722
+ "value": 2
1723
+ }
1724
+ ]
1725
+ }
1726
+ ],
1727
+ "blockId": 279,
1728
+ "image": "https://coin-images.coingecko.com/coins/images/30061/large/wbeth-icon.png"
1729
+ }
1730
+ },
1575
1731
  "EZETH": {
1576
1732
  "description": "Renzo — native on-chain yield of ezETH (share-price growth, no smoothing)",
1577
1733
  "chains": [
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.626';
1
+ export const SDK_VERSION = '2.0.628';
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,70 @@ export declare const TRIGGERS: {
588
588
  };
589
589
  };
590
590
  YIELD: {
591
+ RSETH: {
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
+ WBETH: {
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
+ };
591
655
  EZETH: {
592
656
  description: string;
593
657
  chains: number[];
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.626";
1
+ export declare const SDK_VERSION = "2.0.628";
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.626",
3
+ "version": "2.0.628",
4
4
  "description": "An SDK for building and managing automations on Otomato",
5
5
  "repository": {
6
6
  "type": "git",