otomato-sdk 2.0.611 → 2.0.613
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.
|
@@ -1570,6 +1570,162 @@ export const TRIGGERS = {
|
|
|
1570
1570
|
}
|
|
1571
1571
|
},
|
|
1572
1572
|
"YIELD": {
|
|
1573
|
+
"WSTETH": {
|
|
1574
|
+
"description": "Lido — native on-chain yield of wstETH (share-price growth, no smoothing)",
|
|
1575
|
+
"chains": [
|
|
1576
|
+
1
|
|
1577
|
+
],
|
|
1578
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/lido.webp",
|
|
1579
|
+
"NATIVE_YIELD": {
|
|
1580
|
+
"name": "wstETH native yield",
|
|
1581
|
+
"prototype": "lidoWstethNativeYield",
|
|
1582
|
+
"dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getChainHTML, getComparisonString } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `wstETH native yield on ${getChainHTML(env.parameters.chainId)} ${getComparisonString(env.parameters.condition, env.parameters.comparisonValue)}%`\n );\n }",
|
|
1583
|
+
"description": "Reads the on-chain native yield (APY %) of wstETH from the growth of its stEthPerToken() share-price over a 14-day window, and fires when it meets the condition.",
|
|
1584
|
+
"type": 6,
|
|
1585
|
+
"output": {
|
|
1586
|
+
"nativeApy": "float",
|
|
1587
|
+
"sharePrice": "float",
|
|
1588
|
+
"windowDays": "float"
|
|
1589
|
+
},
|
|
1590
|
+
"parameters": [
|
|
1591
|
+
{
|
|
1592
|
+
"key": "chainId",
|
|
1593
|
+
"type": "chainId",
|
|
1594
|
+
"description": "Chain ID of the network",
|
|
1595
|
+
"mandatory": true,
|
|
1596
|
+
"category": 0,
|
|
1597
|
+
"value": 1
|
|
1598
|
+
},
|
|
1599
|
+
{
|
|
1600
|
+
"key": "contractAddress",
|
|
1601
|
+
"type": "address",
|
|
1602
|
+
"description": "Rate-holder contract exposing stEthPerToken() (the token itself)",
|
|
1603
|
+
"mandatory": true,
|
|
1604
|
+
"category": 0,
|
|
1605
|
+
"value": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"
|
|
1606
|
+
},
|
|
1607
|
+
{
|
|
1608
|
+
"key": "condition",
|
|
1609
|
+
"type": "logic_operator",
|
|
1610
|
+
"description": "Logic operator used for the comparison (e.g. >, <, >=)",
|
|
1611
|
+
"mandatory": true,
|
|
1612
|
+
"category": 0
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
"key": "comparisonValue",
|
|
1616
|
+
"type": "float",
|
|
1617
|
+
"description": "The native yield (in %) to compare against (e.g. 3 = 3% APY)",
|
|
1618
|
+
"mandatory": true,
|
|
1619
|
+
"category": 0
|
|
1620
|
+
},
|
|
1621
|
+
],
|
|
1622
|
+
"examples": [
|
|
1623
|
+
{
|
|
1624
|
+
"name": "wstETH native yield above 2%",
|
|
1625
|
+
"description": "Triggers when the on-chain native yield of wstETH rises above 2% on Ethereum.",
|
|
1626
|
+
"externalVariableDescription": "Fetches the current on-chain native yield (APY %) of wstETH.",
|
|
1627
|
+
"parameters": [
|
|
1628
|
+
{
|
|
1629
|
+
"key": "chainId",
|
|
1630
|
+
"value": 1
|
|
1631
|
+
},
|
|
1632
|
+
{
|
|
1633
|
+
"key": "contractAddress",
|
|
1634
|
+
"value": "0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0"
|
|
1635
|
+
},
|
|
1636
|
+
{
|
|
1637
|
+
"key": "condition",
|
|
1638
|
+
"value": "gt"
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
"key": "comparisonValue",
|
|
1642
|
+
"value": 2
|
|
1643
|
+
}
|
|
1644
|
+
]
|
|
1645
|
+
}
|
|
1646
|
+
],
|
|
1647
|
+
"blockId": 270,
|
|
1648
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/lido.webp"
|
|
1649
|
+
}
|
|
1650
|
+
},
|
|
1651
|
+
"WSTHYPE": {
|
|
1652
|
+
"description": "StakedHYPE — native on-chain yield of wstHYPE (share-price growth, no smoothing)",
|
|
1653
|
+
"chains": [
|
|
1654
|
+
999
|
|
1655
|
+
],
|
|
1656
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/hype.webp",
|
|
1657
|
+
"NATIVE_YIELD": {
|
|
1658
|
+
"name": "wstHYPE native yield",
|
|
1659
|
+
"prototype": "stakedhypeWsthypeNativeYield",
|
|
1660
|
+
"dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getChainHTML, getComparisonString } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `wstHYPE native yield on ${getChainHTML(env.parameters.chainId)} ${getComparisonString(env.parameters.condition, env.parameters.comparisonValue)}%`\n );\n }",
|
|
1661
|
+
"description": "Reads the on-chain native yield (APY %) of wstHYPE from the growth of its sharesToBalance() share-price over a 30-day window, and fires when it meets the condition.",
|
|
1662
|
+
"type": 6,
|
|
1663
|
+
"output": {
|
|
1664
|
+
"nativeApy": "float",
|
|
1665
|
+
"sharePrice": "float",
|
|
1666
|
+
"windowDays": "float"
|
|
1667
|
+
},
|
|
1668
|
+
"parameters": [
|
|
1669
|
+
{
|
|
1670
|
+
"key": "chainId",
|
|
1671
|
+
"type": "chainId",
|
|
1672
|
+
"description": "Chain ID of the network",
|
|
1673
|
+
"mandatory": true,
|
|
1674
|
+
"category": 0,
|
|
1675
|
+
"value": 999
|
|
1676
|
+
},
|
|
1677
|
+
{
|
|
1678
|
+
"key": "contractAddress",
|
|
1679
|
+
"type": "address",
|
|
1680
|
+
"description": "Rate-holder contract exposing sharesToBalance() (the dedicated share-price/manager contract, NOT the token)",
|
|
1681
|
+
"mandatory": true,
|
|
1682
|
+
"category": 0,
|
|
1683
|
+
"value": "0xfFaa4a3D97fE9107Cef8a3F48c069F577Ff76cC1"
|
|
1684
|
+
},
|
|
1685
|
+
{
|
|
1686
|
+
"key": "condition",
|
|
1687
|
+
"type": "logic_operator",
|
|
1688
|
+
"description": "Logic operator used for the comparison (e.g. >, <, >=)",
|
|
1689
|
+
"mandatory": true,
|
|
1690
|
+
"category": 0
|
|
1691
|
+
},
|
|
1692
|
+
{
|
|
1693
|
+
"key": "comparisonValue",
|
|
1694
|
+
"type": "float",
|
|
1695
|
+
"description": "The native yield (in %) to compare against (e.g. 3 = 3% APY)",
|
|
1696
|
+
"mandatory": true,
|
|
1697
|
+
"category": 0
|
|
1698
|
+
},
|
|
1699
|
+
],
|
|
1700
|
+
"examples": [
|
|
1701
|
+
{
|
|
1702
|
+
"name": "wstHYPE native yield above 2%",
|
|
1703
|
+
"description": "Triggers when the on-chain native yield of wstHYPE rises above 2% on HyperEVM.",
|
|
1704
|
+
"externalVariableDescription": "Fetches the current on-chain native yield (APY %) of wstHYPE.",
|
|
1705
|
+
"parameters": [
|
|
1706
|
+
{
|
|
1707
|
+
"key": "chainId",
|
|
1708
|
+
"value": 999
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"key": "contractAddress",
|
|
1712
|
+
"value": "0xfFaa4a3D97fE9107Cef8a3F48c069F577Ff76cC1"
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"key": "condition",
|
|
1716
|
+
"value": "gt"
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"key": "comparisonValue",
|
|
1720
|
+
"value": 2
|
|
1721
|
+
}
|
|
1722
|
+
]
|
|
1723
|
+
}
|
|
1724
|
+
],
|
|
1725
|
+
"blockId": 269,
|
|
1726
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/hype.webp"
|
|
1727
|
+
}
|
|
1728
|
+
},
|
|
1573
1729
|
"REUSDE": {
|
|
1574
1730
|
"description": "Re Protocol — native on-chain yield of reUSDe (share-price growth, no smoothing)",
|
|
1575
1731
|
"chains": [
|
|
@@ -586,6 +586,70 @@ export declare const TRIGGERS: {
|
|
|
586
586
|
};
|
|
587
587
|
};
|
|
588
588
|
YIELD: {
|
|
589
|
+
WSTETH: {
|
|
590
|
+
description: string;
|
|
591
|
+
chains: number[];
|
|
592
|
+
image: string;
|
|
593
|
+
NATIVE_YIELD: {
|
|
594
|
+
name: string;
|
|
595
|
+
prototype: string;
|
|
596
|
+
dynamicName: string;
|
|
597
|
+
description: string;
|
|
598
|
+
type: number;
|
|
599
|
+
output: {
|
|
600
|
+
nativeApy: string;
|
|
601
|
+
sharePrice: string;
|
|
602
|
+
windowDays: string;
|
|
603
|
+
};
|
|
604
|
+
parameters: Parameter[];
|
|
605
|
+
examples: {
|
|
606
|
+
name: string;
|
|
607
|
+
description: string;
|
|
608
|
+
externalVariableDescription: string;
|
|
609
|
+
parameters: ({
|
|
610
|
+
key: string;
|
|
611
|
+
value: number;
|
|
612
|
+
} | {
|
|
613
|
+
key: string;
|
|
614
|
+
value: string;
|
|
615
|
+
})[];
|
|
616
|
+
}[];
|
|
617
|
+
blockId: number;
|
|
618
|
+
image: string;
|
|
619
|
+
};
|
|
620
|
+
};
|
|
621
|
+
WSTHYPE: {
|
|
622
|
+
description: string;
|
|
623
|
+
chains: number[];
|
|
624
|
+
image: string;
|
|
625
|
+
NATIVE_YIELD: {
|
|
626
|
+
name: string;
|
|
627
|
+
prototype: string;
|
|
628
|
+
dynamicName: string;
|
|
629
|
+
description: string;
|
|
630
|
+
type: number;
|
|
631
|
+
output: {
|
|
632
|
+
nativeApy: string;
|
|
633
|
+
sharePrice: string;
|
|
634
|
+
windowDays: string;
|
|
635
|
+
};
|
|
636
|
+
parameters: Parameter[];
|
|
637
|
+
examples: {
|
|
638
|
+
name: string;
|
|
639
|
+
description: string;
|
|
640
|
+
externalVariableDescription: string;
|
|
641
|
+
parameters: ({
|
|
642
|
+
key: string;
|
|
643
|
+
value: number;
|
|
644
|
+
} | {
|
|
645
|
+
key: string;
|
|
646
|
+
value: string;
|
|
647
|
+
})[];
|
|
648
|
+
}[];
|
|
649
|
+
blockId: number;
|
|
650
|
+
image: string;
|
|
651
|
+
};
|
|
652
|
+
};
|
|
589
653
|
REUSDE: {
|
|
590
654
|
description: string;
|
|
591
655
|
chains: number[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.613";
|
|
2
2
|
export declare function compareVersions(v1: string, v2: string): number;
|