otomato-sdk 2.0.604 → 2.0.606
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.
|
@@ -829,6 +829,34 @@ const createHyperlendBorrowingYieldIncreaseWorkflow = async () => {
|
|
|
829
829
|
const workflow = new Workflow('Get notified when when wHYPE borrowing rate below 6%', [hyperlendBorrowingRatesTrigger, telegramSendMessageAction], [edge1], null);
|
|
830
830
|
return workflow;
|
|
831
831
|
};
|
|
832
|
+
const createMorphoMarketUtilizationWorkflow = async () => {
|
|
833
|
+
const morphoMarketUtilizationTrigger = new Trigger(TRIGGERS.LENDING.MORPHO.MARKET_UTILIZATION);
|
|
834
|
+
morphoMarketUtilizationTrigger.setParams('chainId', CHAINS.BASE);
|
|
835
|
+
morphoMarketUtilizationTrigger.setParams('marketId', '0xf9ed1dba3b6ba1ede10e2115a9554e9c52091c9f1b1af21f9e0fecc855ee74bf');
|
|
836
|
+
morphoMarketUtilizationTrigger.setParams('condition', 'gt');
|
|
837
|
+
morphoMarketUtilizationTrigger.setParams('comparisonValue', 90);
|
|
838
|
+
morphoMarketUtilizationTrigger.setPosition(400, 120);
|
|
839
|
+
const telegramSendMessageAction = new Action(ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE);
|
|
840
|
+
telegramSendMessageAction.setParams('message', 'Morpho market utilization is above 90%');
|
|
841
|
+
telegramSendMessageAction.setPosition(400, 240);
|
|
842
|
+
const edge1 = new Edge({ source: morphoMarketUtilizationTrigger, target: telegramSendMessageAction });
|
|
843
|
+
const workflow = new Workflow('Get notified when a Morpho market utilization rises above 90%', [morphoMarketUtilizationTrigger, telegramSendMessageAction], [edge1], null);
|
|
844
|
+
return workflow;
|
|
845
|
+
};
|
|
846
|
+
const createMorphoVaultUtilizationWorkflow = async () => {
|
|
847
|
+
const morphoVaultUtilizationTrigger = new Trigger(TRIGGERS.LENDING.MORPHO.VAULT_UTILIZATION);
|
|
848
|
+
morphoVaultUtilizationTrigger.setParams('chainId', CHAINS.BASE);
|
|
849
|
+
morphoVaultUtilizationTrigger.setParams('vault', '0xbeeF010f9cb27031ad51e3333f9aF9C6B1228183');
|
|
850
|
+
morphoVaultUtilizationTrigger.setParams('condition', 'gt');
|
|
851
|
+
morphoVaultUtilizationTrigger.setParams('comparisonValue', 90);
|
|
852
|
+
morphoVaultUtilizationTrigger.setPosition(400, 120);
|
|
853
|
+
const telegramSendMessageAction = new Action(ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE);
|
|
854
|
+
telegramSendMessageAction.setParams('message', 'Steakhouse USDC vault utilization is above 90%');
|
|
855
|
+
telegramSendMessageAction.setPosition(400, 240);
|
|
856
|
+
const edge1 = new Edge({ source: morphoVaultUtilizationTrigger, target: telegramSendMessageAction });
|
|
857
|
+
const workflow = new Workflow('Get notified when a Morpho vault utilization rises above 90%', [morphoVaultUtilizationTrigger, telegramSendMessageAction], [edge1], null);
|
|
858
|
+
return workflow;
|
|
859
|
+
};
|
|
832
860
|
const createPendleTokenExpiresWorkflow = async () => {
|
|
833
861
|
const hyperEvmProtocolsPointsOnNewPointsTrigger = new Trigger(TRIGGERS.SOCIALS.HYPER_EVM_PROTOCOLS_POINTS.ON_NEW_POINTS);
|
|
834
862
|
hyperEvmProtocolsPointsOnNewPointsTrigger.setParams('chainId', 999);
|
|
@@ -2062,6 +2090,46 @@ export const WORKFLOW_TEMPLATES = [
|
|
|
2062
2090
|
description: 'Get notified when Kinetiq talks about points, their token, airdrop or TGE.',
|
|
2063
2091
|
wfTitle: 'Get notified when Kinetiq talks about points, their token, airdrop or TGE',
|
|
2064
2092
|
}, 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/kinetiq_template.webp', [WORKFLOW_TEMPLATES_TAGS.HYPER_EVM]),
|
|
2093
|
+
{
|
|
2094
|
+
'id': 73,
|
|
2095
|
+
'name': 'Get notified when a Morpho market utilization rises above a threshold',
|
|
2096
|
+
'description': 'Pick a Morpho market and get notified when its utilization crosses your threshold.',
|
|
2097
|
+
'tags': [
|
|
2098
|
+
WORKFLOW_TEMPLATES_TAGS.LENDING,
|
|
2099
|
+
WORKFLOW_TEMPLATES_TAGS.YIELD,
|
|
2100
|
+
WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS
|
|
2101
|
+
],
|
|
2102
|
+
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/morpho.webp',
|
|
2103
|
+
'image': [
|
|
2104
|
+
TRIGGERS.LENDING.MORPHO.image,
|
|
2105
|
+
ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.image
|
|
2106
|
+
],
|
|
2107
|
+
'blockIDs': [
|
|
2108
|
+
TRIGGERS.LENDING.MORPHO.MARKET_UTILIZATION.blockId,
|
|
2109
|
+
ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.blockId
|
|
2110
|
+
],
|
|
2111
|
+
createWorkflow: createMorphoMarketUtilizationWorkflow
|
|
2112
|
+
},
|
|
2113
|
+
{
|
|
2114
|
+
'id': 74,
|
|
2115
|
+
'name': 'Get notified when a Morpho vault utilization rises above a threshold',
|
|
2116
|
+
'description': 'Pick a Morpho vault and get notified when its utilization crosses your threshold.',
|
|
2117
|
+
'tags': [
|
|
2118
|
+
WORKFLOW_TEMPLATES_TAGS.LENDING,
|
|
2119
|
+
WORKFLOW_TEMPLATES_TAGS.YIELD,
|
|
2120
|
+
WORKFLOW_TEMPLATES_TAGS.NOTIFICATIONS
|
|
2121
|
+
],
|
|
2122
|
+
'thumbnail': 'https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/templates/morpho.webp',
|
|
2123
|
+
'image': [
|
|
2124
|
+
TRIGGERS.LENDING.MORPHO.image,
|
|
2125
|
+
ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.image
|
|
2126
|
+
],
|
|
2127
|
+
'blockIDs': [
|
|
2128
|
+
TRIGGERS.LENDING.MORPHO.VAULT_UTILIZATION.blockId,
|
|
2129
|
+
ACTIONS.NOTIFICATIONS.TELEGRAM.SEND_MESSAGE.blockId
|
|
2130
|
+
],
|
|
2131
|
+
createWorkflow: createMorphoVaultUtilizationWorkflow
|
|
2132
|
+
},
|
|
2065
2133
|
].map((template) => {
|
|
2066
2134
|
if (specialSettingTemplates.includes(template.id)) {
|
|
2067
2135
|
return {
|
|
@@ -1983,6 +1983,83 @@ export declare const TRIGGERS: {
|
|
|
1983
1983
|
blockId: number;
|
|
1984
1984
|
image: string;
|
|
1985
1985
|
};
|
|
1986
|
+
ASSET_ALLOCATION_CHANGE: {
|
|
1987
|
+
name: string;
|
|
1988
|
+
dynamicName: string;
|
|
1989
|
+
description: string;
|
|
1990
|
+
prototype: string;
|
|
1991
|
+
type: number;
|
|
1992
|
+
method: string;
|
|
1993
|
+
parameters: Parameter[];
|
|
1994
|
+
examples: {
|
|
1995
|
+
name: string;
|
|
1996
|
+
description: string;
|
|
1997
|
+
parameters: ({
|
|
1998
|
+
key: string;
|
|
1999
|
+
value: number;
|
|
2000
|
+
} | {
|
|
2001
|
+
key: string;
|
|
2002
|
+
value: string;
|
|
2003
|
+
})[];
|
|
2004
|
+
}[];
|
|
2005
|
+
output: {
|
|
2006
|
+
newAssets: string;
|
|
2007
|
+
vaultName: string;
|
|
2008
|
+
currentComposition: string;
|
|
2009
|
+
};
|
|
2010
|
+
blockId: number;
|
|
2011
|
+
image: string;
|
|
2012
|
+
};
|
|
2013
|
+
MARKET_UTILIZATION: {
|
|
2014
|
+
name: string;
|
|
2015
|
+
dynamicName: string;
|
|
2016
|
+
description: string;
|
|
2017
|
+
prototype: string;
|
|
2018
|
+
type: number;
|
|
2019
|
+
method: string;
|
|
2020
|
+
parameters: Parameter[];
|
|
2021
|
+
examples: {
|
|
2022
|
+
name: string;
|
|
2023
|
+
description: string;
|
|
2024
|
+
parameters: ({
|
|
2025
|
+
key: string;
|
|
2026
|
+
value: number;
|
|
2027
|
+
} | {
|
|
2028
|
+
key: string;
|
|
2029
|
+
value: string;
|
|
2030
|
+
})[];
|
|
2031
|
+
}[];
|
|
2032
|
+
output: {
|
|
2033
|
+
utilization: string;
|
|
2034
|
+
};
|
|
2035
|
+
blockId: number;
|
|
2036
|
+
image: string;
|
|
2037
|
+
};
|
|
2038
|
+
VAULT_UTILIZATION: {
|
|
2039
|
+
name: string;
|
|
2040
|
+
dynamicName: string;
|
|
2041
|
+
description: string;
|
|
2042
|
+
prototype: string;
|
|
2043
|
+
type: number;
|
|
2044
|
+
method: string;
|
|
2045
|
+
parameters: Parameter[];
|
|
2046
|
+
examples: {
|
|
2047
|
+
name: string;
|
|
2048
|
+
description: string;
|
|
2049
|
+
parameters: ({
|
|
2050
|
+
key: string;
|
|
2051
|
+
value: number;
|
|
2052
|
+
} | {
|
|
2053
|
+
key: string;
|
|
2054
|
+
value: string;
|
|
2055
|
+
})[];
|
|
2056
|
+
}[];
|
|
2057
|
+
output: {
|
|
2058
|
+
utilization: string;
|
|
2059
|
+
};
|
|
2060
|
+
blockId: number;
|
|
2061
|
+
image: string;
|
|
2062
|
+
};
|
|
1986
2063
|
};
|
|
1987
2064
|
ACCUMULATED_FINANCE: {
|
|
1988
2065
|
description: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.606";
|
|
2
2
|
export declare function compareVersions(v1: string, v2: string): number;
|