otomato-sdk 2.0.631 → 2.0.632

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,84 @@ export const TRIGGERS = {
1572
1572
  }
1573
1573
  },
1574
1574
  "YIELD": {
1575
+ "OSETH": {
1576
+ "description": "StakeWise — native on-chain yield of osETH (share-price growth, no smoothing)",
1577
+ "chains": [
1578
+ 1
1579
+ ],
1580
+ "image": "https://coin-images.coingecko.com/coins/images/33117/large/Frame_27513839.png",
1581
+ "NATIVE_YIELD": {
1582
+ "name": "osETH native yield",
1583
+ "prototype": "stakewiseOsETHNativeYield",
1584
+ "dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getChainHTML, getComparisonString } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `osETH 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 osETH from the growth of its convertToAssets() 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 convertToAssets() (the dedicated share-price/manager contract, NOT the token)",
1605
+ "mandatory": true,
1606
+ "category": 0,
1607
+ "value": "0x2A261e60FB14586B474C208b1B7AC6D0f5000306"
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": "osETH native yield above 2%",
1627
+ "description": "Triggers when the on-chain native yield of osETH rises above 2% on Ethereum.",
1628
+ "externalVariableDescription": "Fetches the current on-chain native yield (APY %) of osETH.",
1629
+ "parameters": [
1630
+ {
1631
+ "key": "chainId",
1632
+ "value": 1
1633
+ },
1634
+ {
1635
+ "key": "contractAddress",
1636
+ "value": "0x2A261e60FB14586B474C208b1B7AC6D0f5000306"
1637
+ },
1638
+ {
1639
+ "key": "condition",
1640
+ "value": "gt"
1641
+ },
1642
+ {
1643
+ "key": "comparisonValue",
1644
+ "value": 2
1645
+ }
1646
+ ]
1647
+ }
1648
+ ],
1649
+ "blockId": 284,
1650
+ "image": "https://coin-images.coingecko.com/coins/images/33117/large/Frame_27513839.png"
1651
+ }
1652
+ },
1575
1653
  "CBETH": {
1576
1654
  "description": "Coinbase — native on-chain yield of cbETH (share-price growth, no smoothing)",
1577
1655
  "chains": [
@@ -1,4 +1,4 @@
1
- export const SDK_VERSION = '2.0.631';
1
+ export const SDK_VERSION = '2.0.632';
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,38 @@ export declare const TRIGGERS: {
588
588
  };
589
589
  };
590
590
  YIELD: {
591
+ OSETH: {
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
+ };
591
623
  CBETH: {
592
624
  description: string;
593
625
  chains: number[];
@@ -1,2 +1,2 @@
1
- export declare const SDK_VERSION = "2.0.631";
1
+ export declare const SDK_VERSION = "2.0.632";
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.631",
3
+ "version": "2.0.632",
4
4
  "description": "An SDK for building and managing automations on Otomato",
5
5
  "repository": {
6
6
  "type": "git",