otomato-sdk 2.0.628 → 2.0.630
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
|
+
"METH": {
|
|
1576
|
+
"description": "Mantle — native on-chain yield of mETH (share-price growth, no smoothing)",
|
|
1577
|
+
"chains": [
|
|
1578
|
+
1
|
|
1579
|
+
],
|
|
1580
|
+
"image": "https://coin-images.coingecko.com/coins/images/33345/large/symbol_transparent_bg.png",
|
|
1581
|
+
"NATIVE_YIELD": {
|
|
1582
|
+
"name": "mETH native yield",
|
|
1583
|
+
"prototype": "mantleMETHNativeYield",
|
|
1584
|
+
"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 }",
|
|
1585
|
+
"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.",
|
|
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 mETHToETH() (the dedicated share-price/manager contract, NOT the token)",
|
|
1605
|
+
"mandatory": true,
|
|
1606
|
+
"category": 0,
|
|
1607
|
+
"value": "0xe3cBd06D7dadB3F4e6557bAb7EdD924CD1489E8f"
|
|
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": "mETH native yield above 2%",
|
|
1627
|
+
"description": "Triggers when the on-chain native yield of mETH rises above 2% on Ethereum.",
|
|
1628
|
+
"externalVariableDescription": "Fetches the current on-chain native yield (APY %) of mETH.",
|
|
1629
|
+
"parameters": [
|
|
1630
|
+
{
|
|
1631
|
+
"key": "chainId",
|
|
1632
|
+
"value": 1
|
|
1633
|
+
},
|
|
1634
|
+
{
|
|
1635
|
+
"key": "contractAddress",
|
|
1636
|
+
"value": "0xe3cBd06D7dadB3F4e6557bAb7EdD924CD1489E8f"
|
|
1637
|
+
},
|
|
1638
|
+
{
|
|
1639
|
+
"key": "condition",
|
|
1640
|
+
"value": "gt"
|
|
1641
|
+
},
|
|
1642
|
+
{
|
|
1643
|
+
"key": "comparisonValue",
|
|
1644
|
+
"value": 2
|
|
1645
|
+
}
|
|
1646
|
+
]
|
|
1647
|
+
}
|
|
1648
|
+
],
|
|
1649
|
+
"blockId": 282,
|
|
1650
|
+
"image": "https://coin-images.coingecko.com/coins/images/33345/large/symbol_transparent_bg.png"
|
|
1651
|
+
}
|
|
1652
|
+
},
|
|
1653
|
+
"LSETH": {
|
|
1654
|
+
"description": "Liquid Collective — native on-chain yield of lsETH (share-price growth, no smoothing)",
|
|
1655
|
+
"chains": [
|
|
1656
|
+
1
|
|
1657
|
+
],
|
|
1658
|
+
"image": "https://coin-images.coingecko.com/coins/images/28848/large/LsETH-receipt-token-circle.png",
|
|
1659
|
+
"NATIVE_YIELD": {
|
|
1660
|
+
"name": "lsETH native yield",
|
|
1661
|
+
"prototype": "liquidcollectiveLsETHNativeYield",
|
|
1662
|
+
"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 }",
|
|
1663
|
+
"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.",
|
|
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 underlyingBalanceFromShares() (the token itself)",
|
|
1683
|
+
"mandatory": true,
|
|
1684
|
+
"category": 0,
|
|
1685
|
+
"value": "0x8c1BEd5b9a0928467c9B1341Da1D7BD5e10b6549"
|
|
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": "lsETH native yield above 2%",
|
|
1705
|
+
"description": "Triggers when the on-chain native yield of lsETH rises above 2% on Ethereum.",
|
|
1706
|
+
"externalVariableDescription": "Fetches the current on-chain native yield (APY %) of lsETH.",
|
|
1707
|
+
"parameters": [
|
|
1708
|
+
{
|
|
1709
|
+
"key": "chainId",
|
|
1710
|
+
"value": 1
|
|
1711
|
+
},
|
|
1712
|
+
{
|
|
1713
|
+
"key": "contractAddress",
|
|
1714
|
+
"value": "0x8c1BEd5b9a0928467c9B1341Da1D7BD5e10b6549"
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"key": "condition",
|
|
1718
|
+
"value": "gt"
|
|
1719
|
+
},
|
|
1720
|
+
{
|
|
1721
|
+
"key": "comparisonValue",
|
|
1722
|
+
"value": 2
|
|
1723
|
+
}
|
|
1724
|
+
]
|
|
1725
|
+
}
|
|
1726
|
+
],
|
|
1727
|
+
"blockId": 281,
|
|
1728
|
+
"image": "https://coin-images.coingecko.com/coins/images/28848/large/LsETH-receipt-token-circle.png"
|
|
1729
|
+
}
|
|
1730
|
+
},
|
|
1575
1731
|
"RSETH": {
|
|
1576
1732
|
"description": "Kelp DAO — native on-chain yield of rsETH (share-price growth, no smoothing)",
|
|
1577
1733
|
"chains": [
|
|
@@ -588,6 +588,70 @@ export declare const TRIGGERS: {
|
|
|
588
588
|
};
|
|
589
589
|
};
|
|
590
590
|
YIELD: {
|
|
591
|
+
METH: {
|
|
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
|
+
LSETH: {
|
|
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
|
RSETH: {
|
|
592
656
|
description: string;
|
|
593
657
|
chains: number[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.630";
|
|
2
2
|
export declare function compareVersions(v1: string, v2: string): number;
|