otomato-sdk 2.0.14 → 2.0.15
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.
- package/dist/src/constants/Blocks.js +710 -9
- package/dist/src/constants/tokens.js +1 -1
- package/dist/src/constants/version.js +1 -1
- package/dist/types/examples/UseCases/lending-aggregator-v2.d.ts +4 -0
- package/dist/types/examples/UseCases/stop-lending-aggregator.d.ts +7 -0
- package/dist/types/src/constants/Blocks.d.ts +349 -6
- package/dist/types/src/constants/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/constants/ActionBlocks.js +0 -321
- package/dist/src/models/Automation.js +0 -44
- package/dist/src/utils/balances/addressBalance.js +0 -177
- package/dist/src/utils/balances/getBalanceInUnderlying.js +0 -95
- package/dist/types/examples/ex.d.ts +0 -1
- package/dist/types/examples/lending-aggregator.d.ts +0 -1
- package/dist/types/examples/load-workflows.d.ts +0 -1
- package/dist/types/examples/protocols/aave_trigger_borrow_action_borrow.d.ts +0 -1
- package/dist/types/examples/protocols/aave_trigger_borrow_action_withdraw.d.ts +0 -1
- package/dist/types/examples/protocols/aave_trigger_supply_action_supply.d.ts +0 -1
- package/dist/types/examples/protocols/ionic_base_supply.d.ts +0 -1
- package/dist/types/examples/protocols/ionic_base_withdraw.d.ts +0 -1
- package/dist/types/examples/sandbox.d.ts +0 -1
- package/dist/types/examples/update-edge.d.ts +0 -1
- package/dist/types/examples/yield-comparator.d.ts +0 -1
- package/dist/types/src/constants/ActionBlocks.d.ts +0 -91
- package/dist/types/src/models/Automation.d.ts +0 -23
- package/dist/types/src/models/Condition.d.ts +0 -6
- package/dist/types/src/services/AutomationService.d.ts +0 -6
- package/dist/types/src/utils/balances/addressBalance.d.ts +0 -20
- package/dist/types/src/utils/balances/getBalanceInUnderlying.d.ts +0 -44
- package/dist/types/test/automation.spec.d.ts +0 -1
- package/dist/types/test/sessionKeyPermission.spec.d.ts +0 -1
- /package/dist/types/examples/{authorizations.d.ts → Core/authorizations.d.ts} +0 -0
- /package/dist/types/examples/{create-action.d.ts → Core/create-action.d.ts} +0 -0
- /package/dist/types/examples/{create-condition.d.ts → Core/create-condition.d.ts} +0 -0
- /package/dist/types/examples/{create-trigger-list.d.ts → Core/create-trigger-list.d.ts} +0 -0
- /package/dist/types/examples/{create-trigger.d.ts → Core/create-trigger.d.ts} +0 -0
- /package/dist/types/examples/{delete-edge.d.ts → Core/delete-edge.d.ts} +0 -0
- /package/dist/types/examples/{login.d.ts → Core/login.d.ts} +0 -0
- /package/dist/types/examples/{rpcServices.d.ts → Core/rpcServices.d.ts} +0 -0
- /package/dist/types/examples/{sessionKeyPermissions.d.ts → Core/sessionKeyPermissions.d.ts} +0 -0
- /package/dist/types/examples/{update-action.d.ts → Core/update-action.d.ts} +0 -0
- /package/dist/types/examples/{version.d.ts → Core/version.d.ts} +0 -0
- /package/dist/types/examples/{aave-trigger-borrow-action-borrow.d.ts → DeFi/AAVE/aave-trigger-borrow-action-borrow.d.ts} +0 -0
- /package/dist/types/examples/{aave-trigger-supply-action-supply.d.ts → DeFi/AAVE/aave-trigger-supply-action-supply.d.ts} +0 -0
- /package/dist/types/examples/{compound-supply-trigger-and-supply-action.d.ts → DeFi/Compound/compound-supply-trigger-and-supply-action.d.ts} +0 -0
- /package/dist/types/examples/{compound-withdraw-trigger-and-withdraw-action.d.ts → DeFi/Compound/compound-withdraw-trigger-and-withdraw-action.d.ts} +0 -0
- /package/dist/types/examples/{ionic-base-supply.d.ts → DeFi/Ionic/ionic-base-supply.d.ts} +0 -0
- /package/dist/types/examples/{ionic-base-withdraw.d.ts → DeFi/Ionic/ionic-base-withdraw.d.ts} +0 -0
- /package/dist/types/examples/{ionic-trigger-lending.d.ts → DeFi/Ionic/ionic-trigger-lending.d.ts} +0 -0
- /package/dist/types/examples/{ionic-trigger-withdraw.d.ts → DeFi/Ionic/ionic-trigger-withdraw.d.ts} +0 -0
- /package/dist/{src/models/Condition.js → types/examples/DeFi/Ironclad/ironclad-trigger-borrow-action-withdraw.d.ts} +0 -0
- /package/dist/{src/services/AutomationService.js → types/examples/DeFi/Ironclad/ironclad-trigger-supply-action-supply.d.ts} +0 -0
- /package/dist/types/examples/{moonwell-borrow-trigger-deposit-action.d.ts → DeFi/Moonwell/moonwell-borrow-trigger-deposit-action.d.ts} +0 -0
- /package/dist/types/examples/{moonwell-borrow.d.ts → DeFi/Moonwell/moonwell-borrow.d.ts} +0 -0
- /package/dist/types/examples/{moonwell-repay.d.ts → DeFi/Moonwell/moonwell-repay.d.ts} +0 -0
- /package/dist/types/examples/{moonwell-supply-trigger-withdraw-action.d.ts → DeFi/Moonwell/moonwell-supply-trigger-withdraw-action.d.ts} +0 -0
- /package/dist/types/examples/{create-odos-swap.d.ts → DeFi/Odos/create-odos-swap.d.ts} +0 -0
- /package/dist/types/examples/{create-automation.d.ts → UseCases/lending-aggregator-base.d.ts} +0 -0
- /package/dist/types/examples/{create-workflow-with-condition-and-split.d.ts → UseCases/lending-aggregator-mode.d.ts} +0 -0
- /package/dist/types/examples/{create-workflow-with-condition.d.ts → Workflow/create-workflow-with-condition-and-split.d.ts} +0 -0
- /package/dist/types/examples/{create-workflow-with-external-variable-condition.d.ts → Workflow/create-workflow-with-condition.d.ts} +0 -0
- /package/dist/types/examples/{create-workflow-with-notes.d.ts → Workflow/create-workflow-with-external-variable-condition.d.ts} +0 -0
- /package/dist/types/examples/{create-workflow-with-split.d.ts → Workflow/create-workflow-with-notes.d.ts} +0 -0
- /package/dist/types/examples/{create-workflow-with-variables.d.ts → Workflow/create-workflow-with-split.d.ts} +0 -0
- /package/dist/types/examples/{create-workflow.d.ts → Workflow/create-workflow-with-variables.d.ts} +0 -0
- /package/dist/types/examples/{delete-workflow.d.ts → Workflow/create-workflow.d.ts} +0 -0
- /package/dist/types/examples/{everyhour-ifusdc-ionic.d.ts → Workflow/delete-workflow.d.ts} +0 -0
- /package/dist/types/examples/{get-all-workflows-from-user.d.ts → Workflow/get-all-workflows-from-user.d.ts} +0 -0
- /package/dist/types/examples/{load-workflow.d.ts → Workflow/load-workflow.d.ts} +0 -0
- /package/dist/types/examples/{workflow-templates.d.ts → Workflow/workflow-templates.d.ts} +0 -0
|
@@ -15,6 +15,32 @@ export const TRIGGERS = {
|
|
|
15
15
|
"mandatory": true,
|
|
16
16
|
"category": 0
|
|
17
17
|
},
|
|
18
|
+
{
|
|
19
|
+
"key": "timeout",
|
|
20
|
+
"type": "integer",
|
|
21
|
+
"description": "The maximum amount of time to wait before stopping the trigger (in ms)",
|
|
22
|
+
"mandatory": true,
|
|
23
|
+
"category": 1,
|
|
24
|
+
"hideInUI": true,
|
|
25
|
+
"value": 63072000000
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
"key": "limit",
|
|
29
|
+
"type": "integer",
|
|
30
|
+
"description": "The maximum number of times this trigger should execute before stopping.",
|
|
31
|
+
"mandatory": true,
|
|
32
|
+
"category": 0
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
"examples": [
|
|
36
|
+
{
|
|
37
|
+
"name": "Run it every day for 2 weeks",
|
|
38
|
+
"description": "Set the period to 1 day and the limit to 14 to execute daily for 2 weeks.",
|
|
39
|
+
"parameters": {
|
|
40
|
+
"period": 86400000,
|
|
41
|
+
"limit": 14
|
|
42
|
+
}
|
|
43
|
+
}
|
|
18
44
|
],
|
|
19
45
|
"blockId": 18,
|
|
20
46
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/every_hour_trigger.png"
|
|
@@ -230,6 +256,104 @@ export const TRIGGERS = {
|
|
|
230
256
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/BalanceCheck.svg"
|
|
231
257
|
}
|
|
232
258
|
},
|
|
259
|
+
"APPROVAL": {
|
|
260
|
+
"description": "Monitors token approvals",
|
|
261
|
+
"chains": [
|
|
262
|
+
0
|
|
263
|
+
],
|
|
264
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/Approval.svg",
|
|
265
|
+
"APPROVAL": {
|
|
266
|
+
"name": "Token Approval",
|
|
267
|
+
"description": "Triggers when someone approves this token.",
|
|
268
|
+
"type": 0,
|
|
269
|
+
"output": {
|
|
270
|
+
"owner": "address",
|
|
271
|
+
"spender": "address",
|
|
272
|
+
"value": "uint256",
|
|
273
|
+
"transactionHash": "string"
|
|
274
|
+
},
|
|
275
|
+
"parameters": [
|
|
276
|
+
{
|
|
277
|
+
"key": "chainId",
|
|
278
|
+
"type": "chainId",
|
|
279
|
+
"description": "The network where the token is deployed (e.g., Ethereum or Base).",
|
|
280
|
+
"mandatory": true,
|
|
281
|
+
"category": 0
|
|
282
|
+
},
|
|
283
|
+
{
|
|
284
|
+
"key": "contractAddress",
|
|
285
|
+
"type": "erc20",
|
|
286
|
+
"description": "The token you want to monitor for approvals.",
|
|
287
|
+
"mandatory": true,
|
|
288
|
+
"category": 0
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"key": "abiParams.owner",
|
|
292
|
+
"type": "address",
|
|
293
|
+
"description": "Filter by the wallet that approved the token",
|
|
294
|
+
"category": 1
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"key": "abiParams.spender",
|
|
298
|
+
"type": "address",
|
|
299
|
+
"description": "Filter by the wallet that was approved to spend the token",
|
|
300
|
+
"category": 1
|
|
301
|
+
},
|
|
302
|
+
{
|
|
303
|
+
"key": "abiParams.value",
|
|
304
|
+
"type": "uint256",
|
|
305
|
+
"description": "Filter by the amount of tokens approved",
|
|
306
|
+
"category": 1
|
|
307
|
+
},
|
|
308
|
+
],
|
|
309
|
+
"frontendHelpers": {
|
|
310
|
+
"output": {
|
|
311
|
+
"value": {
|
|
312
|
+
"erc20Token": {
|
|
313
|
+
"contractAddress": "{{parameters.contractAddress}}",
|
|
314
|
+
"chainId": "{{parameters.chainId}}"
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
},
|
|
319
|
+
"examples": [
|
|
320
|
+
{
|
|
321
|
+
"name": "Track all MODE approvals",
|
|
322
|
+
"description": "Get notified whenever someone approves the use of this token.",
|
|
323
|
+
"parameters": [
|
|
324
|
+
{
|
|
325
|
+
"key": "chainId",
|
|
326
|
+
"value": 34443
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"key": "contractAddress",
|
|
330
|
+
"value": "0xDfc7C877a950e49D2610114102175A06C2e3167a"
|
|
331
|
+
}
|
|
332
|
+
]
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"name": "Track USDC approvals for a specific app",
|
|
336
|
+
"description": "Get notified when someone approves Uniswap to use their tokens.",
|
|
337
|
+
"parameters": [
|
|
338
|
+
{
|
|
339
|
+
"key": "chainId",
|
|
340
|
+
"value": 8453
|
|
341
|
+
},
|
|
342
|
+
{
|
|
343
|
+
"key": "contractAddress",
|
|
344
|
+
"value": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
|
|
345
|
+
},
|
|
346
|
+
{
|
|
347
|
+
"key": "abiParams.spender",
|
|
348
|
+
"value": "0xeC8B0F7Ffe3ae75d7FfAb09429e3675bb63503e4"
|
|
349
|
+
}
|
|
350
|
+
]
|
|
351
|
+
}
|
|
352
|
+
],
|
|
353
|
+
"blockId": 27,
|
|
354
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/Approval.svg"
|
|
355
|
+
}
|
|
356
|
+
},
|
|
233
357
|
"ON_CHAIN_PRICE_MOVEMENT": {
|
|
234
358
|
"description": "Triggers based on the movement of on-chain prices against specified currencies",
|
|
235
359
|
"chains": [
|
|
@@ -1611,6 +1735,571 @@ export const TRIGGERS = {
|
|
|
1611
1735
|
"blockId": 4,
|
|
1612
1736
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/odos.png"
|
|
1613
1737
|
}
|
|
1738
|
+
},
|
|
1739
|
+
"UNISWAP": {
|
|
1740
|
+
"description": "Monitors events on Uniswap pools",
|
|
1741
|
+
"chains": [
|
|
1742
|
+
8453,
|
|
1743
|
+
0
|
|
1744
|
+
],
|
|
1745
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/uniswap.jpg",
|
|
1746
|
+
"V3_SWAP": {
|
|
1747
|
+
"name": "Track swaps on Uniswap V3",
|
|
1748
|
+
"description": "Triggers every time there is a swap on a Uniswap V3 pool.",
|
|
1749
|
+
"type": 0,
|
|
1750
|
+
"output": {
|
|
1751
|
+
"sender": "address",
|
|
1752
|
+
"recipient": "address",
|
|
1753
|
+
"amount0": "int256",
|
|
1754
|
+
"amount1": "int256",
|
|
1755
|
+
"sqrtPriceX96": "uint160",
|
|
1756
|
+
"liquidity": "uint128",
|
|
1757
|
+
"tick": "int24",
|
|
1758
|
+
"transactionHash": "string"
|
|
1759
|
+
},
|
|
1760
|
+
"parameters": [
|
|
1761
|
+
{
|
|
1762
|
+
"key": "chainId",
|
|
1763
|
+
"type": "chainId",
|
|
1764
|
+
"description": "The network to monitor swaps on (e.g., Base, Ethereum).",
|
|
1765
|
+
"mandatory": true,
|
|
1766
|
+
"category": 0
|
|
1767
|
+
},
|
|
1768
|
+
{
|
|
1769
|
+
"key": "contractAddress",
|
|
1770
|
+
"type": "address",
|
|
1771
|
+
"description": "The address of the Uniswap V3 pool to monitor.",
|
|
1772
|
+
"mandatory": true,
|
|
1773
|
+
"category": 0
|
|
1774
|
+
},
|
|
1775
|
+
{
|
|
1776
|
+
"key": "abiParams.amount0",
|
|
1777
|
+
"type": "int256",
|
|
1778
|
+
"description": "Filter by the amount of token0 swapped (exact amount).",
|
|
1779
|
+
"category": 1
|
|
1780
|
+
},
|
|
1781
|
+
{
|
|
1782
|
+
"key": "abiParams.amount1",
|
|
1783
|
+
"type": "int256",
|
|
1784
|
+
"description": "Filter by the amount of token1 swapped (exact amount).",
|
|
1785
|
+
"category": 1
|
|
1786
|
+
},
|
|
1787
|
+
{
|
|
1788
|
+
"key": "abiParams.sender",
|
|
1789
|
+
"type": "address",
|
|
1790
|
+
"description": "Filter by the address initiating the swap.",
|
|
1791
|
+
"category": 1
|
|
1792
|
+
},
|
|
1793
|
+
{
|
|
1794
|
+
"key": "abiParams.recipient",
|
|
1795
|
+
"type": "address",
|
|
1796
|
+
"description": "Filter by the address receiving the swapped tokens.",
|
|
1797
|
+
"category": 1
|
|
1798
|
+
},
|
|
1799
|
+
],
|
|
1800
|
+
"frontendHelpers": {
|
|
1801
|
+
"output": {
|
|
1802
|
+
"amount0": {
|
|
1803
|
+
"erc20Token": {
|
|
1804
|
+
"contractAddress": "{{parameters.contractAddress}}",
|
|
1805
|
+
"chainId": "{{parameters.chainId}}"
|
|
1806
|
+
}
|
|
1807
|
+
},
|
|
1808
|
+
"amount1": {
|
|
1809
|
+
"erc20Token": {
|
|
1810
|
+
"contractAddress": "{{parameters.contractAddress}}",
|
|
1811
|
+
"chainId": "{{parameters.chainId}}"
|
|
1812
|
+
}
|
|
1813
|
+
}
|
|
1814
|
+
}
|
|
1815
|
+
},
|
|
1816
|
+
"examples": [
|
|
1817
|
+
{
|
|
1818
|
+
"name": "Monitor all swaps",
|
|
1819
|
+
"description": "Triggers whenever a swap occurs on a specific Uniswap V3 pool (ETH/FAI 1%).",
|
|
1820
|
+
"parameters": [
|
|
1821
|
+
{
|
|
1822
|
+
"key": "chainId",
|
|
1823
|
+
"value": 8453
|
|
1824
|
+
},
|
|
1825
|
+
{
|
|
1826
|
+
"key": "contractAddress",
|
|
1827
|
+
"value": "0x68B27E9066d3aAdC6078E17C8611b37868F96A1D"
|
|
1828
|
+
}
|
|
1829
|
+
]
|
|
1830
|
+
}
|
|
1831
|
+
],
|
|
1832
|
+
"blockId": 28,
|
|
1833
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/uniswap.jpg"
|
|
1834
|
+
},
|
|
1835
|
+
"V2_SWAP": {
|
|
1836
|
+
"name": "Track swaps on Uniswap V2",
|
|
1837
|
+
"description": "Triggers every time there is a swap on a Uniswap V2 pool.",
|
|
1838
|
+
"type": 0,
|
|
1839
|
+
"output": {
|
|
1840
|
+
"sender": "address",
|
|
1841
|
+
"amount0In": "uint256",
|
|
1842
|
+
"amount1In": "uint256",
|
|
1843
|
+
"amount0Out": "uint256",
|
|
1844
|
+
"amount1Out": "uint256",
|
|
1845
|
+
"to": "address",
|
|
1846
|
+
"transactionHash": "string"
|
|
1847
|
+
},
|
|
1848
|
+
"parameters": [
|
|
1849
|
+
{
|
|
1850
|
+
"key": "chainId",
|
|
1851
|
+
"type": "chainId",
|
|
1852
|
+
"description": "The network to monitor swaps on (e.g., Base, Ethereum).",
|
|
1853
|
+
"mandatory": true,
|
|
1854
|
+
"category": 0
|
|
1855
|
+
},
|
|
1856
|
+
{
|
|
1857
|
+
"key": "contractAddress",
|
|
1858
|
+
"type": "address",
|
|
1859
|
+
"description": "The address of the Uniswap V2 pool to monitor.",
|
|
1860
|
+
"mandatory": true,
|
|
1861
|
+
"category": 0
|
|
1862
|
+
},
|
|
1863
|
+
{
|
|
1864
|
+
"key": "abiParams.amount0In",
|
|
1865
|
+
"type": "uint256",
|
|
1866
|
+
"description": "Filter by the amount of token0 input (exact amount).",
|
|
1867
|
+
"category": 1
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
"key": "abiParams.amount1In",
|
|
1871
|
+
"type": "uint256",
|
|
1872
|
+
"description": "Filter by the amount of token1 input (exact amount).",
|
|
1873
|
+
"category": 1
|
|
1874
|
+
},
|
|
1875
|
+
{
|
|
1876
|
+
"key": "abiParams.amount0Out",
|
|
1877
|
+
"type": "uint256",
|
|
1878
|
+
"description": "Filter by the amount of token0 output (exact amount).",
|
|
1879
|
+
"category": 1
|
|
1880
|
+
},
|
|
1881
|
+
{
|
|
1882
|
+
"key": "abiParams.amount1Out",
|
|
1883
|
+
"type": "uint256",
|
|
1884
|
+
"description": "Filter by the amount of token1 output (exact amount).",
|
|
1885
|
+
"category": 1
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
"key": "abiParams.sender",
|
|
1889
|
+
"type": "address",
|
|
1890
|
+
"description": "Filter by the address initiating the swap.",
|
|
1891
|
+
"category": 1
|
|
1892
|
+
},
|
|
1893
|
+
{
|
|
1894
|
+
"key": "abiParams.to",
|
|
1895
|
+
"type": "address",
|
|
1896
|
+
"description": "Filter by the address receiving the swapped tokens.",
|
|
1897
|
+
"category": 1
|
|
1898
|
+
},
|
|
1899
|
+
],
|
|
1900
|
+
"frontendHelpers": {
|
|
1901
|
+
"output": {
|
|
1902
|
+
"amount0In": {
|
|
1903
|
+
"erc20Token": {
|
|
1904
|
+
"contractAddress": "{{parameters.contractAddress}}",
|
|
1905
|
+
"chainId": "{{parameters.chainId}}"
|
|
1906
|
+
}
|
|
1907
|
+
},
|
|
1908
|
+
"amount1In": {
|
|
1909
|
+
"erc20Token": {
|
|
1910
|
+
"contractAddress": "{{parameters.contractAddress}}",
|
|
1911
|
+
"chainId": "{{parameters.chainId}}"
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
}
|
|
1915
|
+
},
|
|
1916
|
+
"examples": [
|
|
1917
|
+
{
|
|
1918
|
+
"name": "Monitor all swaps",
|
|
1919
|
+
"description": "Triggers whenever a swap occurs on a specific Uniswap V2 pool (ETH/USDC 0.3%)",
|
|
1920
|
+
"parameters": [
|
|
1921
|
+
{
|
|
1922
|
+
"key": "chainId",
|
|
1923
|
+
"value": 8453
|
|
1924
|
+
},
|
|
1925
|
+
{
|
|
1926
|
+
"key": "contractAddress",
|
|
1927
|
+
"value": "0x88A43bbDF9D098eEC7bCEda4e2494615dfD9bB9C"
|
|
1928
|
+
}
|
|
1929
|
+
]
|
|
1930
|
+
}
|
|
1931
|
+
],
|
|
1932
|
+
"blockId": 33,
|
|
1933
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/uniswap.jpg"
|
|
1934
|
+
}
|
|
1935
|
+
},
|
|
1936
|
+
"AERODROME": {
|
|
1937
|
+
"description": "Monitors swaps on Aerodrome pools",
|
|
1938
|
+
"chains": [
|
|
1939
|
+
8453
|
|
1940
|
+
],
|
|
1941
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/aerodrome.jpg",
|
|
1942
|
+
"SWAP_IN_CONCENTRATED_POOL": {
|
|
1943
|
+
"name": "Swap in Concentrated Pool",
|
|
1944
|
+
"description": "Triggers every time there is a swap in an Aerodrome concentrated liquidity pool.",
|
|
1945
|
+
"type": 0,
|
|
1946
|
+
"output": {
|
|
1947
|
+
"sender": "address",
|
|
1948
|
+
"recipient": "address",
|
|
1949
|
+
"amount0": "int256",
|
|
1950
|
+
"amount1": "int256",
|
|
1951
|
+
"sqrtPriceX96": "uint160",
|
|
1952
|
+
"liquidity": "uint128",
|
|
1953
|
+
"tick": "int24",
|
|
1954
|
+
"transactionHash": "string"
|
|
1955
|
+
},
|
|
1956
|
+
"parameters": [
|
|
1957
|
+
{
|
|
1958
|
+
"key": "chainId",
|
|
1959
|
+
"type": "chainId",
|
|
1960
|
+
"description": "The network to monitor swaps on (Base).",
|
|
1961
|
+
"mandatory": true,
|
|
1962
|
+
"category": 0
|
|
1963
|
+
},
|
|
1964
|
+
{
|
|
1965
|
+
"key": "contractAddress",
|
|
1966
|
+
"type": "address",
|
|
1967
|
+
"description": "The address of the liquidity pool.",
|
|
1968
|
+
"mandatory": true,
|
|
1969
|
+
"category": 0
|
|
1970
|
+
},
|
|
1971
|
+
{
|
|
1972
|
+
"key": "abiParams.amount0",
|
|
1973
|
+
"type": "int256",
|
|
1974
|
+
"description": "Filter by the amount of token0 swapped (exact amount)",
|
|
1975
|
+
"category": 1
|
|
1976
|
+
},
|
|
1977
|
+
{
|
|
1978
|
+
"key": "abiParams.amount1",
|
|
1979
|
+
"type": "int256",
|
|
1980
|
+
"description": "Filter by the amount of token1 swapped (exact amount)",
|
|
1981
|
+
"category": 1
|
|
1982
|
+
},
|
|
1983
|
+
{
|
|
1984
|
+
"key": "abiParams.sender",
|
|
1985
|
+
"type": "address",
|
|
1986
|
+
"description": "Filter by the address initiating the swap.",
|
|
1987
|
+
"category": 1
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
"key": "abiParams.recipient",
|
|
1991
|
+
"type": "address",
|
|
1992
|
+
"description": "Filter by the address receiving the swapped tokens.",
|
|
1993
|
+
"category": 1
|
|
1994
|
+
},
|
|
1995
|
+
],
|
|
1996
|
+
"frontendHelpers": {
|
|
1997
|
+
"output": {
|
|
1998
|
+
"amount0": {
|
|
1999
|
+
"erc20Token": {
|
|
2000
|
+
"contractAddress": "{{parameters.contractAddress}}",
|
|
2001
|
+
"chainId": "{{parameters.chainId}}"
|
|
2002
|
+
}
|
|
2003
|
+
},
|
|
2004
|
+
"amount1": {
|
|
2005
|
+
"erc20Token": {
|
|
2006
|
+
"contractAddress": "{{parameters.contractAddress}}",
|
|
2007
|
+
"chainId": "{{parameters.chainId}}"
|
|
2008
|
+
}
|
|
2009
|
+
}
|
|
2010
|
+
}
|
|
2011
|
+
},
|
|
2012
|
+
"examples": [
|
|
2013
|
+
{
|
|
2014
|
+
"name": "Monitor all swaps in concentrated pool",
|
|
2015
|
+
"description": "Triggers whenever a swap occurs in an Aerodrome concentrated liquidity pool (WETH/USDC 0.04%)",
|
|
2016
|
+
"parameters": [
|
|
2017
|
+
{
|
|
2018
|
+
"key": "chainId",
|
|
2019
|
+
"value": 8453
|
|
2020
|
+
},
|
|
2021
|
+
{
|
|
2022
|
+
"key": "contractAddress",
|
|
2023
|
+
"value": "0xb2cc224c1c9feE385f8ad6a55b4d94E92359DC59"
|
|
2024
|
+
}
|
|
2025
|
+
]
|
|
2026
|
+
}
|
|
2027
|
+
],
|
|
2028
|
+
"blockId": 29,
|
|
2029
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/aerodrome.jpg"
|
|
2030
|
+
},
|
|
2031
|
+
"SWAP_IN_BASIC_POOL": {
|
|
2032
|
+
"name": "Swap in Basic Pool",
|
|
2033
|
+
"description": "Triggers every time there is a swap in an Aerodrome basic liquidity pool.",
|
|
2034
|
+
"type": 0,
|
|
2035
|
+
"output": {
|
|
2036
|
+
"sender": "address",
|
|
2037
|
+
"to": "address",
|
|
2038
|
+
"amount0In": "uint256",
|
|
2039
|
+
"amount1In": "uint256",
|
|
2040
|
+
"amount0Out": "uint256",
|
|
2041
|
+
"amount1Out": "uint256",
|
|
2042
|
+
"transactionHash": "string"
|
|
2043
|
+
},
|
|
2044
|
+
"parameters": [
|
|
2045
|
+
{
|
|
2046
|
+
"key": "chainId",
|
|
2047
|
+
"type": "chainId",
|
|
2048
|
+
"description": "The network to monitor swaps on (Base).",
|
|
2049
|
+
"mandatory": true,
|
|
2050
|
+
"category": 0
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"key": "contractAddress",
|
|
2054
|
+
"type": "address",
|
|
2055
|
+
"description": "The address of the liquidity pool.",
|
|
2056
|
+
"mandatory": true,
|
|
2057
|
+
"category": 0
|
|
2058
|
+
},
|
|
2059
|
+
{
|
|
2060
|
+
"key": "abiParams.amount0In",
|
|
2061
|
+
"type": "uint256",
|
|
2062
|
+
"description": "Filter by the amount of token0 input (exact amount)",
|
|
2063
|
+
"category": 1
|
|
2064
|
+
},
|
|
2065
|
+
{
|
|
2066
|
+
"key": "abiParams.amount1In",
|
|
2067
|
+
"type": "uint256",
|
|
2068
|
+
"description": "Filter by the amount of token1 input (exact amount)",
|
|
2069
|
+
"category": 1
|
|
2070
|
+
},
|
|
2071
|
+
{
|
|
2072
|
+
"key": "abiParams.amount0Out",
|
|
2073
|
+
"type": "uint256",
|
|
2074
|
+
"description": "Filter by the amount of token0 output (exact amount)",
|
|
2075
|
+
"category": 1
|
|
2076
|
+
},
|
|
2077
|
+
{
|
|
2078
|
+
"key": "abiParams.amount1Out",
|
|
2079
|
+
"type": "uint256",
|
|
2080
|
+
"description": "Filter by the amount of token1 output (exact amount)",
|
|
2081
|
+
"category": 1
|
|
2082
|
+
},
|
|
2083
|
+
],
|
|
2084
|
+
"frontendHelpers": {
|
|
2085
|
+
"output": {
|
|
2086
|
+
"amount0In": {
|
|
2087
|
+
"erc20Token": {
|
|
2088
|
+
"contractAddress": "{{parameters.contractAddress}}",
|
|
2089
|
+
"chainId": "{{parameters.chainId}}"
|
|
2090
|
+
}
|
|
2091
|
+
},
|
|
2092
|
+
"amount1In": {
|
|
2093
|
+
"erc20Token": {
|
|
2094
|
+
"contractAddress": "{{parameters.contractAddress}}",
|
|
2095
|
+
"chainId": "{{parameters.chainId}}"
|
|
2096
|
+
}
|
|
2097
|
+
}
|
|
2098
|
+
}
|
|
2099
|
+
},
|
|
2100
|
+
"examples": [
|
|
2101
|
+
{
|
|
2102
|
+
"name": "Monitor all swaps in basic pool",
|
|
2103
|
+
"description": "Triggers whenever a swap occurs in an Aerodrome basic liquidity pool (USDC/AERO 0.3%)",
|
|
2104
|
+
"parameters": [
|
|
2105
|
+
{
|
|
2106
|
+
"key": "chainId",
|
|
2107
|
+
"value": 8453
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
"key": "contractAddress",
|
|
2111
|
+
"value": "0x6cDcb1C4A4D1C3C6d054b27AC5B77e89eAFb971d"
|
|
2112
|
+
}
|
|
2113
|
+
]
|
|
2114
|
+
}
|
|
2115
|
+
],
|
|
2116
|
+
"blockId": 30,
|
|
2117
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/aerodrome.jpg"
|
|
2118
|
+
}
|
|
2119
|
+
},
|
|
2120
|
+
"VELODROME": {
|
|
2121
|
+
"description": "Monitors swaps on Velodrome pools",
|
|
2122
|
+
"chains": [
|
|
2123
|
+
8453
|
|
2124
|
+
],
|
|
2125
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/velodrome.jpg",
|
|
2126
|
+
"SWAP_IN_CONCENTRATED_POOL": {
|
|
2127
|
+
"name": "Swap in Concentrated Pool",
|
|
2128
|
+
"description": "Triggers every time there is a swap in a Velodrome concentrated liquidity pool.",
|
|
2129
|
+
"type": 0,
|
|
2130
|
+
"output": {
|
|
2131
|
+
"sender": "address",
|
|
2132
|
+
"recipient": "address",
|
|
2133
|
+
"amount0": "int256",
|
|
2134
|
+
"amount1": "int256",
|
|
2135
|
+
"sqrtPriceX96": "uint160",
|
|
2136
|
+
"liquidity": "uint128",
|
|
2137
|
+
"tick": "int24",
|
|
2138
|
+
"transactionHash": "string"
|
|
2139
|
+
},
|
|
2140
|
+
"parameters": [
|
|
2141
|
+
{
|
|
2142
|
+
"key": "chainId",
|
|
2143
|
+
"type": "chainId",
|
|
2144
|
+
"description": "The network to monitor swaps on (Base).",
|
|
2145
|
+
"mandatory": true,
|
|
2146
|
+
"category": 0
|
|
2147
|
+
},
|
|
2148
|
+
{
|
|
2149
|
+
"key": "contractAddress",
|
|
2150
|
+
"type": "address",
|
|
2151
|
+
"description": "The address of the liquidity pool.",
|
|
2152
|
+
"mandatory": true,
|
|
2153
|
+
"category": 0
|
|
2154
|
+
},
|
|
2155
|
+
{
|
|
2156
|
+
"key": "abiParams.amount0",
|
|
2157
|
+
"type": "int256",
|
|
2158
|
+
"description": "Filter by the amount of token0 swapped (exact amount).",
|
|
2159
|
+
"category": 1
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
"key": "abiParams.amount1",
|
|
2163
|
+
"type": "int256",
|
|
2164
|
+
"description": "Filter by the amount of token1 swapped (exact amount).",
|
|
2165
|
+
"category": 1
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
"key": "abiParams.sender",
|
|
2169
|
+
"type": "address",
|
|
2170
|
+
"description": "Filter by the address initiating the swap.",
|
|
2171
|
+
"category": 1
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
"key": "abiParams.recipient",
|
|
2175
|
+
"type": "address",
|
|
2176
|
+
"description": "Filter by the address receiving the swapped tokens.",
|
|
2177
|
+
"category": 1
|
|
2178
|
+
},
|
|
2179
|
+
],
|
|
2180
|
+
"frontendHelpers": {
|
|
2181
|
+
"output": {
|
|
2182
|
+
"amount0": {
|
|
2183
|
+
"erc20Token": {
|
|
2184
|
+
"contractAddress": "{{parameters.contractAddress}}",
|
|
2185
|
+
"chainId": "{{parameters.chainId}}"
|
|
2186
|
+
}
|
|
2187
|
+
},
|
|
2188
|
+
"amount1": {
|
|
2189
|
+
"erc20Token": {
|
|
2190
|
+
"contractAddress": "{{parameters.contractAddress}}",
|
|
2191
|
+
"chainId": "{{parameters.chainId}}"
|
|
2192
|
+
}
|
|
2193
|
+
}
|
|
2194
|
+
}
|
|
2195
|
+
},
|
|
2196
|
+
"examples": [
|
|
2197
|
+
{
|
|
2198
|
+
"name": "Monitor all swaps in concentrated pool",
|
|
2199
|
+
"description": "Triggers whenever a swap occurs in a Velodrome concentrated liquidity pool (WETH/MODE 0.3%).",
|
|
2200
|
+
"parameters": [
|
|
2201
|
+
{
|
|
2202
|
+
"key": "chainId",
|
|
2203
|
+
"value": 8453
|
|
2204
|
+
},
|
|
2205
|
+
{
|
|
2206
|
+
"key": "contractAddress",
|
|
2207
|
+
"value": "0x1E41CDE26b30646bb3DBBea48A63708b00470c1c"
|
|
2208
|
+
}
|
|
2209
|
+
]
|
|
2210
|
+
}
|
|
2211
|
+
],
|
|
2212
|
+
"blockId": 31,
|
|
2213
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/velodrome.jpg"
|
|
2214
|
+
},
|
|
2215
|
+
"SWAP_IN_BASIC_POOL": {
|
|
2216
|
+
"name": "Swap in Basic Pool",
|
|
2217
|
+
"description": "Triggers every time there is a swap in a Velodrome basic liquidity pool.",
|
|
2218
|
+
"type": 0,
|
|
2219
|
+
"output": {
|
|
2220
|
+
"sender": "address",
|
|
2221
|
+
"to": "address",
|
|
2222
|
+
"amount0In": "uint256",
|
|
2223
|
+
"amount1In": "uint256",
|
|
2224
|
+
"amount0Out": "uint256",
|
|
2225
|
+
"amount1Out": "uint256",
|
|
2226
|
+
"transactionHash": "string"
|
|
2227
|
+
},
|
|
2228
|
+
"parameters": [
|
|
2229
|
+
{
|
|
2230
|
+
"key": "chainId",
|
|
2231
|
+
"type": "chainId",
|
|
2232
|
+
"description": "The network to monitor swaps on (Base).",
|
|
2233
|
+
"mandatory": true,
|
|
2234
|
+
"category": 0
|
|
2235
|
+
},
|
|
2236
|
+
{
|
|
2237
|
+
"key": "contractAddress",
|
|
2238
|
+
"type": "address",
|
|
2239
|
+
"description": "The address of the liquidity pool.",
|
|
2240
|
+
"mandatory": true,
|
|
2241
|
+
"category": 0
|
|
2242
|
+
},
|
|
2243
|
+
{
|
|
2244
|
+
"key": "abiParams.amount0In",
|
|
2245
|
+
"type": "uint256",
|
|
2246
|
+
"description": "Filter by the amount of token0 input (exact amount).",
|
|
2247
|
+
"category": 1
|
|
2248
|
+
},
|
|
2249
|
+
{
|
|
2250
|
+
"key": "abiParams.amount1In",
|
|
2251
|
+
"type": "uint256",
|
|
2252
|
+
"description": "Filter by the amount of token1 input (exact amount).",
|
|
2253
|
+
"category": 1
|
|
2254
|
+
},
|
|
2255
|
+
{
|
|
2256
|
+
"key": "abiParams.amount0Out",
|
|
2257
|
+
"type": "uint256",
|
|
2258
|
+
"description": "Filter by the amount of token0 output (exact amount).",
|
|
2259
|
+
"category": 1
|
|
2260
|
+
},
|
|
2261
|
+
{
|
|
2262
|
+
"key": "abiParams.amount1Out",
|
|
2263
|
+
"type": "uint256",
|
|
2264
|
+
"description": "Filter by the amount of token1 output (exact amount).",
|
|
2265
|
+
"category": 1
|
|
2266
|
+
},
|
|
2267
|
+
],
|
|
2268
|
+
"frontendHelpers": {
|
|
2269
|
+
"output": {
|
|
2270
|
+
"amount0In": {
|
|
2271
|
+
"erc20Token": {
|
|
2272
|
+
"contractAddress": "{{parameters.contractAddress}}",
|
|
2273
|
+
"chainId": "{{parameters.chainId}}"
|
|
2274
|
+
}
|
|
2275
|
+
},
|
|
2276
|
+
"amount1In": {
|
|
2277
|
+
"erc20Token": {
|
|
2278
|
+
"contractAddress": "{{parameters.contractAddress}}",
|
|
2279
|
+
"chainId": "{{parameters.chainId}}"
|
|
2280
|
+
}
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
},
|
|
2284
|
+
"examples": [
|
|
2285
|
+
{
|
|
2286
|
+
"name": "Monitor all swaps in basic pool",
|
|
2287
|
+
"description": "Triggers whenever a swap occurs in a Velodrome basic liquidity pool (WETH/MODE 0.3%).",
|
|
2288
|
+
"parameters": [
|
|
2289
|
+
{
|
|
2290
|
+
"key": "chainId",
|
|
2291
|
+
"value": 8453
|
|
2292
|
+
},
|
|
2293
|
+
{
|
|
2294
|
+
"key": "contractAddress",
|
|
2295
|
+
"value": "0x0fba984c97539B3fb49ACDA6973288D0EFA903DB"
|
|
2296
|
+
}
|
|
2297
|
+
]
|
|
2298
|
+
}
|
|
2299
|
+
],
|
|
2300
|
+
"blockId": 32,
|
|
2301
|
+
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/velodrome.jpg"
|
|
2302
|
+
}
|
|
1614
2303
|
}
|
|
1615
2304
|
},
|
|
1616
2305
|
"SOCIALS": {
|
|
@@ -2065,6 +2754,7 @@ export const ACTIONS = {
|
|
|
2065
2754
|
}
|
|
2066
2755
|
],
|
|
2067
2756
|
"permissions": {
|
|
2757
|
+
"chainId": "{{parameters.chainId}}",
|
|
2068
2758
|
"approvedTargets": [
|
|
2069
2759
|
"{{before.contractAddress}}",
|
|
2070
2760
|
"{{parameters.tokenIn}}"
|
|
@@ -2345,6 +3035,7 @@ export const ACTIONS = {
|
|
|
2345
3035
|
}
|
|
2346
3036
|
],
|
|
2347
3037
|
"permissions": {
|
|
3038
|
+
"chainId": "{{parameters.chainId}}",
|
|
2348
3039
|
"approvedTargets": [
|
|
2349
3040
|
"{{parameters.contractAddress}}"
|
|
2350
3041
|
],
|
|
@@ -2440,6 +3131,7 @@ export const ACTIONS = {
|
|
|
2440
3131
|
"transactionHash": "string"
|
|
2441
3132
|
},
|
|
2442
3133
|
"permissions": {
|
|
3134
|
+
"chainId": "{{parameters.chainId}}",
|
|
2443
3135
|
"approvedTargets": [
|
|
2444
3136
|
"{{parameters.tokenToDeposit}}",
|
|
2445
3137
|
"{{before.contractAddress}}"
|
|
@@ -2543,6 +3235,7 @@ export const ACTIONS = {
|
|
|
2543
3235
|
"transactionHash": "string"
|
|
2544
3236
|
},
|
|
2545
3237
|
"permissions": {
|
|
3238
|
+
"chainId": "{{parameters.chainId}}",
|
|
2546
3239
|
"approvedTargets": [
|
|
2547
3240
|
"{{before.contractAddress}}"
|
|
2548
3241
|
],
|
|
@@ -2622,6 +3315,7 @@ export const ACTIONS = {
|
|
|
2622
3315
|
"transactionHash": "string"
|
|
2623
3316
|
},
|
|
2624
3317
|
"permissions": {
|
|
3318
|
+
"chainId": "{{parameters.chainId}}",
|
|
2625
3319
|
"approvedTargets": [
|
|
2626
3320
|
"{{before.contractAddress}}"
|
|
2627
3321
|
],
|
|
@@ -2632,14 +3326,6 @@ export const ACTIONS = {
|
|
|
2632
3326
|
"Transfer {{tokenSymbol({{parameters.chainId}}, {{parameters.tokenToBorrow}})}}"
|
|
2633
3327
|
]
|
|
2634
3328
|
},
|
|
2635
|
-
"checks": [
|
|
2636
|
-
{
|
|
2637
|
-
"type": 0,
|
|
2638
|
-
"chainId": "{{parameters.chainId}}",
|
|
2639
|
-
"contractAddress": "{{before.contractAddress}}",
|
|
2640
|
-
"amount": "{{parameters.abi.parameters.amount}}"
|
|
2641
|
-
}
|
|
2642
|
-
],
|
|
2643
3329
|
"blockId": 100008,
|
|
2644
3330
|
"image": "https://otomato-sdk-images.s3.eu-west-1.amazonaws.com/ionic.jpg"
|
|
2645
3331
|
},
|
|
@@ -2715,6 +3401,7 @@ export const ACTIONS = {
|
|
|
2715
3401
|
"transactionHash": "string"
|
|
2716
3402
|
},
|
|
2717
3403
|
"permissions": {
|
|
3404
|
+
"chainId": "{{parameters.chainId}}",
|
|
2718
3405
|
"approvedTargets": [
|
|
2719
3406
|
"{{before.contractAddress}}"
|
|
2720
3407
|
],
|
|
@@ -2752,6 +3439,7 @@ export const ACTIONS = {
|
|
|
2752
3439
|
],
|
|
2753
3440
|
"examples": [],
|
|
2754
3441
|
"permissions": {
|
|
3442
|
+
"chainId": "{{parameters.chainId}}",
|
|
2755
3443
|
"approvedTargets": [
|
|
2756
3444
|
"{{before.contractAddress}}"
|
|
2757
3445
|
],
|
|
@@ -2882,6 +3570,7 @@ export const ACTIONS = {
|
|
|
2882
3570
|
"transactionHash": "string"
|
|
2883
3571
|
},
|
|
2884
3572
|
"permissions": {
|
|
3573
|
+
"chainId": "{{parameters.chainId}}",
|
|
2885
3574
|
"approvedTargets": [
|
|
2886
3575
|
"{{parameters.abi.parameters.asset}}",
|
|
2887
3576
|
"{{before.contractAddress}}"
|
|
@@ -2983,6 +3672,7 @@ export const ACTIONS = {
|
|
|
2983
3672
|
"transactionHash": "string"
|
|
2984
3673
|
},
|
|
2985
3674
|
"permissions": {
|
|
3675
|
+
"chainId": "{{parameters.chainId}}",
|
|
2986
3676
|
"approvedTargets": [
|
|
2987
3677
|
"{{parameters.abi.parameters.asset}}",
|
|
2988
3678
|
"{{before.contractAddress}}"
|
|
@@ -3064,6 +3754,7 @@ export const ACTIONS = {
|
|
|
3064
3754
|
"transactionHash": "string"
|
|
3065
3755
|
},
|
|
3066
3756
|
"permissions": {
|
|
3757
|
+
"chainId": "{{parameters.chainId}}",
|
|
3067
3758
|
"approvedTargets": [
|
|
3068
3759
|
"{{parameters.tokenToDeposit}}",
|
|
3069
3760
|
"{{before.contractAddress}}"
|
|
@@ -3187,6 +3878,7 @@ export const ACTIONS = {
|
|
|
3187
3878
|
"transactionHash": "string"
|
|
3188
3879
|
},
|
|
3189
3880
|
"permissions": {
|
|
3881
|
+
"chainId": "{{parameters.chainId}}",
|
|
3190
3882
|
"approvedTargets": [
|
|
3191
3883
|
"{{before.contractAddress}}"
|
|
3192
3884
|
],
|
|
@@ -3266,6 +3958,7 @@ export const ACTIONS = {
|
|
|
3266
3958
|
"transactionHash": "string"
|
|
3267
3959
|
},
|
|
3268
3960
|
"permissions": {
|
|
3961
|
+
"chainId": "{{parameters.chainId}}",
|
|
3269
3962
|
"approvedTargets": [
|
|
3270
3963
|
"{{before.contractAddress}}"
|
|
3271
3964
|
],
|
|
@@ -3351,8 +4044,10 @@ export const ACTIONS = {
|
|
|
3351
4044
|
"transactionHash": "string"
|
|
3352
4045
|
},
|
|
3353
4046
|
"permissions": {
|
|
4047
|
+
"chainId": "{{parameters.chainId}}",
|
|
3354
4048
|
"approvedTargets": [
|
|
3355
|
-
"{{before.contractAddress}}"
|
|
4049
|
+
"{{before.contractAddress}}",
|
|
4050
|
+
"{{parameters.tokenToRepay}}"
|
|
3356
4051
|
],
|
|
3357
4052
|
"label": [
|
|
3358
4053
|
"Repay {{tokenSymbol({{parameters.chainId}}, {{parameters.tokenToRepay}})}} on MOONWELL"
|
|
@@ -3388,6 +4083,7 @@ export const ACTIONS = {
|
|
|
3388
4083
|
],
|
|
3389
4084
|
"examples": [],
|
|
3390
4085
|
"permissions": {
|
|
4086
|
+
"chainId": "{{parameters.chainId}}",
|
|
3391
4087
|
"approvedTargets": [
|
|
3392
4088
|
"{{before.contractAddress}}"
|
|
3393
4089
|
],
|
|
@@ -3480,6 +4176,7 @@ export const ACTIONS = {
|
|
|
3480
4176
|
"transactionHash": "string"
|
|
3481
4177
|
},
|
|
3482
4178
|
"permissions": {
|
|
4179
|
+
"chainId": "{{parameters.chainId}}",
|
|
3483
4180
|
"approvedTargets": [
|
|
3484
4181
|
"{{parameters.abi.parameters.asset}}",
|
|
3485
4182
|
"{{before.contractAddress}}"
|
|
@@ -3574,6 +4271,7 @@ export const ACTIONS = {
|
|
|
3574
4271
|
"transactionHash": "string"
|
|
3575
4272
|
},
|
|
3576
4273
|
"permissions": {
|
|
4274
|
+
"chainId": "{{parameters.chainId}}",
|
|
3577
4275
|
"approvedTargets": [
|
|
3578
4276
|
"{{parameters.abi.parameters.asset}}",
|
|
3579
4277
|
"{{before.contractAddress}}"
|
|
@@ -3691,6 +4389,7 @@ export const ACTIONS = {
|
|
|
3691
4389
|
"transactionHash": "string"
|
|
3692
4390
|
},
|
|
3693
4391
|
"permissions": {
|
|
4392
|
+
"chainId": "{{parameters.chainId}}",
|
|
3694
4393
|
"approvedTargets": [
|
|
3695
4394
|
"{{parameters.abi.parameters.asset}}",
|
|
3696
4395
|
"{{before.contractAddress}}"
|
|
@@ -3792,6 +4491,7 @@ export const ACTIONS = {
|
|
|
3792
4491
|
"transactionHash": "string"
|
|
3793
4492
|
},
|
|
3794
4493
|
"permissions": {
|
|
4494
|
+
"chainId": "{{parameters.chainId}}",
|
|
3795
4495
|
"approvedTargets": [
|
|
3796
4496
|
"{{parameters.abi.parameters.asset}}",
|
|
3797
4497
|
"{{before.contractAddress}}"
|
|
@@ -3937,6 +4637,7 @@ export const ACTIONS = {
|
|
|
3937
4637
|
}
|
|
3938
4638
|
],
|
|
3939
4639
|
"permissions": {
|
|
4640
|
+
"chainId": "{{parameters.chainId}}",
|
|
3940
4641
|
"approvedTargets": [
|
|
3941
4642
|
"{{before.contractAddress}}",
|
|
3942
4643
|
"{{parameters.tokenIn}}"
|