otomato-sdk 2.0.523 → 2.0.525
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.
|
@@ -6055,6 +6055,74 @@ export const TRIGGERS = {
|
|
|
6055
6055
|
],
|
|
6056
6056
|
"blockId": 99,
|
|
6057
6057
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/hypurr.webp"
|
|
6058
|
+
},
|
|
6059
|
+
"VAULT_LENDING_RATE": {
|
|
6060
|
+
"name": "EVK Vault Lending Rate",
|
|
6061
|
+
"dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML, getComparisonString, getChainHTML, shortenAddress } = otomatoSDK;\n return getDynamicNameWrapperHTML(\n `Vault lending rate on`,\n shortenAddress(env.parameters.vault),\n `on ${getChainHTML(env.parameters.chainId)}`,\n `${getComparisonString(env.parameters.condition, env.parameters.comparisonValue)}`\n );\n }",
|
|
6062
|
+
"description": "Get the supply APY of an EVK vault on HypurrFi",
|
|
6063
|
+
"prototype": "hypurrVaultLendingRate",
|
|
6064
|
+
"type": 6,
|
|
6065
|
+
"parameters": [
|
|
6066
|
+
{
|
|
6067
|
+
"key": "chainId",
|
|
6068
|
+
"type": "chainId",
|
|
6069
|
+
"description": "Chain ID of the network",
|
|
6070
|
+
"mandatory": true,
|
|
6071
|
+
"category": 0
|
|
6072
|
+
},
|
|
6073
|
+
{
|
|
6074
|
+
"key": "vault",
|
|
6075
|
+
"type": "address",
|
|
6076
|
+
"description": "The EVK vault address",
|
|
6077
|
+
"mandatory": true,
|
|
6078
|
+
"category": 0
|
|
6079
|
+
},
|
|
6080
|
+
{
|
|
6081
|
+
"key": "condition",
|
|
6082
|
+
"type": "logic_operator",
|
|
6083
|
+
"description": "Logic operator used for the comparison: <, >, <=, >=, ==, ...",
|
|
6084
|
+
"mandatory": true,
|
|
6085
|
+
"category": 0
|
|
6086
|
+
},
|
|
6087
|
+
{
|
|
6088
|
+
"key": "comparisonValue",
|
|
6089
|
+
"type": "float",
|
|
6090
|
+
"description": "The value to compare to",
|
|
6091
|
+
"mandatory": true,
|
|
6092
|
+
"category": 0
|
|
6093
|
+
},
|
|
6094
|
+
],
|
|
6095
|
+
"output": {
|
|
6096
|
+
"lendingRate": "float",
|
|
6097
|
+
"comparisonValue": "float"
|
|
6098
|
+
},
|
|
6099
|
+
"examples": [
|
|
6100
|
+
{
|
|
6101
|
+
"name": "HypurrFi Earn USDH Vault Lending Rate above 3%",
|
|
6102
|
+
"description": "HypurrFi Earn USDH Vault supply APY is above 3% on Hyper EVM",
|
|
6103
|
+
"externalVariableDescription": "Fetches the current EVK vault supply APY on Hyper EVM",
|
|
6104
|
+
"parameters": [
|
|
6105
|
+
{
|
|
6106
|
+
"key": "chainId",
|
|
6107
|
+
"value": 999
|
|
6108
|
+
},
|
|
6109
|
+
{
|
|
6110
|
+
"key": "vault",
|
|
6111
|
+
"value": "0xF38eA9DE758a8F6be08B6E65bc0Ff2f3e3aB741b"
|
|
6112
|
+
},
|
|
6113
|
+
{
|
|
6114
|
+
"key": "condition",
|
|
6115
|
+
"value": "gt"
|
|
6116
|
+
},
|
|
6117
|
+
{
|
|
6118
|
+
"key": "comparisonValue",
|
|
6119
|
+
"value": 3
|
|
6120
|
+
}
|
|
6121
|
+
]
|
|
6122
|
+
}
|
|
6123
|
+
],
|
|
6124
|
+
"blockId": 146,
|
|
6125
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/hypurr.webp"
|
|
6058
6126
|
}
|
|
6059
6127
|
},
|
|
6060
6128
|
"VENTUALS": {
|
|
@@ -10471,6 +10539,103 @@ export const TRIGGERS = {
|
|
|
10471
10539
|
],
|
|
10472
10540
|
"blockId": 141,
|
|
10473
10541
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/lighter.webp"
|
|
10542
|
+
},
|
|
10543
|
+
"PRICE_MOVEMENT": {
|
|
10544
|
+
"name": "Price movement",
|
|
10545
|
+
"dynamicName": "async (env, { otomatoSDK }) => {\n const { getDynamicNameWrapperHTML } = otomatoSDK;\n const timeWindowHours = env.parameters.timeWindow / 3600000;\n const timeLabel = timeWindowHours >= 24 ? `${timeWindowHours / 24}d` : `${timeWindowHours}h`;\n return getDynamicNameWrapperHTML(\n `${env.parameters.token} price moves ≥${env.parameters.movementThreshold}% in ${timeLabel}`\n );\n }",
|
|
10546
|
+
"description": "Triggers when a token's price on Lighter moves by a specified percentage within a time window",
|
|
10547
|
+
"type": 6,
|
|
10548
|
+
"output": {
|
|
10549
|
+
"priceChange": "float",
|
|
10550
|
+
"direction": "string",
|
|
10551
|
+
"directionEmoji": "string",
|
|
10552
|
+
"currentPrice": "float",
|
|
10553
|
+
"previousPrice": "float",
|
|
10554
|
+
"timeWindowLabel": "string"
|
|
10555
|
+
},
|
|
10556
|
+
"parameters": [
|
|
10557
|
+
{
|
|
10558
|
+
"key": "token",
|
|
10559
|
+
"type": "string",
|
|
10560
|
+
"description": "The token symbol to monitor (e.g., ETH, BTC)",
|
|
10561
|
+
"mandatory": true,
|
|
10562
|
+
"category": 0
|
|
10563
|
+
},
|
|
10564
|
+
{
|
|
10565
|
+
"key": "timeWindow",
|
|
10566
|
+
"type": "integer",
|
|
10567
|
+
"description": "Time window in milliseconds (3600000 = 1h, 86400000 = 24h)",
|
|
10568
|
+
"mandatory": true,
|
|
10569
|
+
"category": 0,
|
|
10570
|
+
"enum": [
|
|
10571
|
+
3600000,
|
|
10572
|
+
86400000
|
|
10573
|
+
]
|
|
10574
|
+
},
|
|
10575
|
+
{
|
|
10576
|
+
"key": "movementThreshold",
|
|
10577
|
+
"type": "float",
|
|
10578
|
+
"description": "Price movement threshold percentage (e.g., 5 for 5%)",
|
|
10579
|
+
"mandatory": true,
|
|
10580
|
+
"category": 0
|
|
10581
|
+
},
|
|
10582
|
+
{
|
|
10583
|
+
"key": "condition",
|
|
10584
|
+
"type": "logic_operator",
|
|
10585
|
+
"description": "Logic operator used for the comparison",
|
|
10586
|
+
"hideInUI": true,
|
|
10587
|
+
"category": 0
|
|
10588
|
+
},
|
|
10589
|
+
{
|
|
10590
|
+
"key": "comparisonValue",
|
|
10591
|
+
"type": "boolean",
|
|
10592
|
+
"description": "The value to compare to",
|
|
10593
|
+
"hideInUI": true,
|
|
10594
|
+
"category": 0
|
|
10595
|
+
},
|
|
10596
|
+
],
|
|
10597
|
+
"examples": [
|
|
10598
|
+
{
|
|
10599
|
+
"name": "ETH 5% move in 1 hour on Lighter",
|
|
10600
|
+
"description": "Triggers when ETH price on Lighter moves 5% or more within 1 hour",
|
|
10601
|
+
"externalVariableDescription": "Monitors ETH price on Lighter for significant movements",
|
|
10602
|
+
"parameters": [
|
|
10603
|
+
{
|
|
10604
|
+
"key": "token",
|
|
10605
|
+
"value": "ETH"
|
|
10606
|
+
},
|
|
10607
|
+
{
|
|
10608
|
+
"key": "timeWindow",
|
|
10609
|
+
"value": 3600000
|
|
10610
|
+
},
|
|
10611
|
+
{
|
|
10612
|
+
"key": "movementThreshold",
|
|
10613
|
+
"value": 5
|
|
10614
|
+
}
|
|
10615
|
+
]
|
|
10616
|
+
},
|
|
10617
|
+
{
|
|
10618
|
+
"name": "BTC 8% move in 24 hours on Lighter",
|
|
10619
|
+
"description": "Triggers when BTC price on Lighter moves 8% or more within 24 hours",
|
|
10620
|
+
"externalVariableDescription": "Monitors BTC price on Lighter for sustained trend movements",
|
|
10621
|
+
"parameters": [
|
|
10622
|
+
{
|
|
10623
|
+
"key": "token",
|
|
10624
|
+
"value": "BTC"
|
|
10625
|
+
},
|
|
10626
|
+
{
|
|
10627
|
+
"key": "timeWindow",
|
|
10628
|
+
"value": 86400000
|
|
10629
|
+
},
|
|
10630
|
+
{
|
|
10631
|
+
"key": "movementThreshold",
|
|
10632
|
+
"value": 8
|
|
10633
|
+
}
|
|
10634
|
+
]
|
|
10635
|
+
}
|
|
10636
|
+
],
|
|
10637
|
+
"blockId": 142,
|
|
10638
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/lighter.webp"
|
|
10474
10639
|
}
|
|
10475
10640
|
}
|
|
10476
10641
|
},
|
|
@@ -2323,6 +2323,32 @@ export declare const TRIGGERS: {
|
|
|
2323
2323
|
blockId: number;
|
|
2324
2324
|
image: string;
|
|
2325
2325
|
};
|
|
2326
|
+
VAULT_LENDING_RATE: {
|
|
2327
|
+
name: string;
|
|
2328
|
+
dynamicName: string;
|
|
2329
|
+
description: string;
|
|
2330
|
+
prototype: string;
|
|
2331
|
+
type: number;
|
|
2332
|
+
parameters: Parameter[];
|
|
2333
|
+
output: {
|
|
2334
|
+
lendingRate: string;
|
|
2335
|
+
comparisonValue: string;
|
|
2336
|
+
};
|
|
2337
|
+
examples: {
|
|
2338
|
+
name: string;
|
|
2339
|
+
description: string;
|
|
2340
|
+
externalVariableDescription: string;
|
|
2341
|
+
parameters: ({
|
|
2342
|
+
key: string;
|
|
2343
|
+
value: number;
|
|
2344
|
+
} | {
|
|
2345
|
+
key: string;
|
|
2346
|
+
value: string;
|
|
2347
|
+
})[];
|
|
2348
|
+
}[];
|
|
2349
|
+
blockId: number;
|
|
2350
|
+
image: string;
|
|
2351
|
+
};
|
|
2326
2352
|
};
|
|
2327
2353
|
VENTUALS: {
|
|
2328
2354
|
description: string;
|
|
@@ -3850,6 +3876,35 @@ export declare const TRIGGERS: {
|
|
|
3850
3876
|
blockId: number;
|
|
3851
3877
|
image: string;
|
|
3852
3878
|
};
|
|
3879
|
+
PRICE_MOVEMENT: {
|
|
3880
|
+
name: string;
|
|
3881
|
+
dynamicName: string;
|
|
3882
|
+
description: string;
|
|
3883
|
+
type: number;
|
|
3884
|
+
output: {
|
|
3885
|
+
priceChange: string;
|
|
3886
|
+
direction: string;
|
|
3887
|
+
directionEmoji: string;
|
|
3888
|
+
currentPrice: string;
|
|
3889
|
+
previousPrice: string;
|
|
3890
|
+
timeWindowLabel: string;
|
|
3891
|
+
};
|
|
3892
|
+
parameters: Parameter[];
|
|
3893
|
+
examples: {
|
|
3894
|
+
name: string;
|
|
3895
|
+
description: string;
|
|
3896
|
+
externalVariableDescription: string;
|
|
3897
|
+
parameters: ({
|
|
3898
|
+
key: string;
|
|
3899
|
+
value: string;
|
|
3900
|
+
} | {
|
|
3901
|
+
key: string;
|
|
3902
|
+
value: number;
|
|
3903
|
+
})[];
|
|
3904
|
+
}[];
|
|
3905
|
+
blockId: number;
|
|
3906
|
+
image: string;
|
|
3907
|
+
};
|
|
3853
3908
|
};
|
|
3854
3909
|
};
|
|
3855
3910
|
SOCIALS: {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "2.0.
|
|
1
|
+
export declare const SDK_VERSION = "2.0.525";
|
|
2
2
|
export declare function compareVersions(v1: string, v2: string): number;
|