otomato-sdk 1.5.21 → 1.5.23

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.
@@ -34,7 +34,11 @@ export const TRIGGERS = {
34
34
  "key": "abiParams.value",
35
35
  "type": "uint256",
36
36
  "description": "Amount of crypto to transfer",
37
- "category": 1
37
+ "category": 1,
38
+ "erc20FormattedAmount": {
39
+ "contractAddress": "{{parameters.contractAddress}}",
40
+ "chain": "{{parameters.chainId}}"
41
+ }
38
42
  },
39
43
  {
40
44
  "key": "abiParams.to",
@@ -74,7 +78,7 @@ export const TRIGGERS = {
74
78
  "description": "Fetches the balance of an ERC20 and checks it against the specified condition.",
75
79
  "type": 1,
76
80
  "method": "function balanceOf(address account) view returns (uint256)",
77
- "handler": "output => { const params=JSON.parse(output);const balance = BigInt(params)/1000000n; return {balance: Number(balance)}; }",
81
+ "handler": "output => { const params=JSON.parse(output);const balance = BigInt(params)/1000000n; return {balance: Number(balance), comparisonValue: Number(balance)}; }",
78
82
  "output": {
79
83
  "balance": "integer"
80
84
  },
@@ -112,7 +116,11 @@ export const TRIGGERS = {
112
116
  "type": "any",
113
117
  "description": "The value to compare to",
114
118
  "mandatory": true,
115
- "category": 0
119
+ "category": 0,
120
+ "erc20FormattedAmount": {
121
+ "contractAddress": "{{parameters.contractAddress}}",
122
+ "chain": "{{parameters.chainId}}"
123
+ }
116
124
  },
117
125
  ],
118
126
  "examples": [
@@ -363,7 +371,7 @@ export const TRIGGERS = {
363
371
  "name": "Lend Recalled",
364
372
  "description": "Lend recalled in Astaria",
365
373
  "type": 0,
366
- "contractAddress": "0x34cf9BF641bd5f34197060A3f3478a1f97f78f0a",
374
+ "contractAddress": "0x0000000002546f9C641E000DD4b22875236BC147",
367
375
  "output": {
368
376
  "loanId": "uint256",
369
377
  "recaller": "address",
@@ -586,7 +594,7 @@ export const TRIGGERS = {
586
594
  "description": "Fetches the Fear and Greed Index from the specified API and processes the result.",
587
595
  "type": 3,
588
596
  "url": "https://api.alternative.me/fng/",
589
- "handler": "async (res) => { return {value: res.data?.[0]?.value} }",
597
+ "handler": "async (res) => { return {value: res.data?.[0]?.value, comparisonValue: res.data?.[0]?.value} }",
590
598
  "output": {
591
599
  "value": "integer"
592
600
  },
@@ -935,7 +943,11 @@ export const ACTIONS = {
935
943
  "type": "uint256",
936
944
  "description": "Amount of crypto to transfer",
937
945
  "mandatory": true,
938
- "category": 0
946
+ "category": 0,
947
+ "erc20FormattedAmount": {
948
+ "contractAddress": "{{parameters.contractAddress}}",
949
+ "chain": "{{parameters.chainId}}"
950
+ }
939
951
  },
940
952
  {
941
953
  "key": "abiParams.to",
@@ -1017,7 +1029,11 @@ export const ACTIONS = {
1017
1029
  "type": "uint256",
1018
1030
  "description": "Amount of crypto to deposit",
1019
1031
  "mandatory": true,
1020
- "category": 0
1032
+ "category": 0,
1033
+ "erc20FormattedAmount": {
1034
+ "contractAddress": "{{parameters.contractAddress}}",
1035
+ "chain": "{{parameters.chainId}}"
1036
+ }
1021
1037
  },
1022
1038
  {
1023
1039
  "key": "contractAddress",
@@ -1132,7 +1148,11 @@ export const ACTIONS = {
1132
1148
  "type": "uint256",
1133
1149
  "description": "Amount to sell",
1134
1150
  "mandatory": true,
1135
- "category": 0
1151
+ "category": 0,
1152
+ "erc20FormattedAmount": {
1153
+ "contractAddress": "{{parameters.contractAddress}}",
1154
+ "chain": "{{parameters.chainId}}"
1155
+ }
1136
1156
  },
1137
1157
  {
1138
1158
  "key": "slippage",
@@ -65,13 +65,6 @@ export const TOKENS = {
65
65
  decimals: 18,
66
66
  image: 'https://static.debank.com/image/chain/logo_url/mode/466e6e12f4fd827f8f497cceb0601a5e.png'
67
67
  },
68
- {
69
- contractAddress: '0x71ef7EDa2Be775E5A7aa8afD02C45F059833e9d2',
70
- symbol: 'ionWETH',
71
- name: 'Ionic Wrapped Ether',
72
- decimals: 18,
73
- image: null,
74
- },
75
68
  {
76
69
  contractAddress: '0x4200000000000000000000000000000000000006',
77
70
  symbol: 'WETH',
@@ -79,13 +72,6 @@ export const TOKENS = {
79
72
  decimals: 18,
80
73
  image: 'https://static.debank.com/image/mtr_token/logo_url/0x79a61d3a28f8c8537a3df63092927cfa1150fb3c/61844453e63cf81301f845d7864236f6.png'
81
74
  },
82
- {
83
- contractAddress: '0x59e710215d45F584f44c0FEe83DA6d43D762D857',
84
- symbol: 'ionezETH',
85
- name: 'Ionic Renzo Restaked ETH',
86
- decimals: 18,
87
- image: null
88
- },
89
75
  {
90
76
  contractAddress: '0x2416092f143378750bb29b79eD961ab195CcEea5',
91
77
  symbol: 'ezETH',
@@ -93,6 +79,35 @@ export const TOKENS = {
93
79
  decimals: 18,
94
80
  image: 'https://static.debank.com/image/mode_token/logo_url/0x2416092f143378750bb29b79ed961ab195cceea5/a66d77b85dfd99539744bc62966e1fac.png'
95
81
  },
82
+ {
83
+ contractAddress: "0x04C0599Ae5A44757c0af6F9eC3b93da8976c150A",
84
+ symbol: "weETH.mode",
85
+ name: "Etherfi Restaked ETH",
86
+ decimals: 18,
87
+ image: 'https://static.debank.com/image/eth_token/logo_url/0xcd5fe23c85820f7b72d0926fc9b05b43e359b7ee/6c02f6b3bcd264d433c3676100ad8da6.png'
88
+ },
89
+ {
90
+ contractAddress: "0x80137510979822322193FC997d400D5A6C747bf7",
91
+ symbol: "STONE",
92
+ name: "Stakestone ETH",
93
+ decimals: 18,
94
+ image: 'https://static.debank.com/image/b2_token/logo_url/0x7537c1f80c9e157ed7afd93a494be3e1f04f1462/670162c2c0d81b3d1790e60c78e136e1.png'
95
+ },
96
+ {
97
+ contractAddress: "0xe7903B1F75C534Dd8159b313d92cDCfbC62cB3Cd",
98
+ symbol: "wrsETH",
99
+ name: "Kelp Restaked ETH",
100
+ decimals: 18,
101
+ image: 'https://static.debank.com/image/blast_token/logo_url/0xe7903b1f75c534dd8159b313d92cdcfbc62cb3cd/570bd8c5a7c151124d71d35ccbfaaefb.png'
102
+ },
103
+ {
104
+ contractAddress: "0x59889b7021243dB5B1e065385F918316cD90D46c",
105
+ symbol: "M-BTC",
106
+ name: "Merlin BTC",
107
+ decimals: 18,
108
+ image: 'https://static.debank.com/image/merlin_token/logo_url/0xb880fd278198bd590252621d4cd071b1842e9bcd/ef8e2efb7606de9fb88463282c0cbef0.png'
109
+ },
110
+ // ironclad
96
111
  {
97
112
  contractAddress: '0x9c29a8eC901DBec4fFf165cD57D4f9E03D4838f7',
98
113
  symbol: 'ironETH',
@@ -100,6 +115,70 @@ export const TOKENS = {
100
115
  decimals: 18,
101
116
  image: null
102
117
  },
118
+ // ionic
119
+ {
120
+ contractAddress: "0x94812F2eEa03A49869f95e1b5868C6f3206ee3D3",
121
+ symbol: "ion-USDT",
122
+ name: "ionic USDT",
123
+ decimals: 6,
124
+ image: null
125
+ },
126
+ {
127
+ contractAddress: "0x2BE717340023C9e14C1Bb12cb3ecBcfd3c3fB038",
128
+ symbol: "ion-USDC",
129
+ name: "ionic USDC",
130
+ decimals: 6,
131
+ image: null
132
+ },
133
+ {
134
+ contractAddress: "0x59e710215d45F584f44c0FEe83DA6d43D762D857",
135
+ symbol: "ion-ezETH",
136
+ name: "ionic ezETH",
137
+ decimals: 18,
138
+ image: null
139
+ },
140
+ {
141
+ contractAddress: "0x71ef7EDa2Be775E5A7aa8afD02C45F059833e9d2",
142
+ symbol: "ion-WETH",
143
+ name: "ionic WETH",
144
+ decimals: 18,
145
+ image: null
146
+ },
147
+ {
148
+ contractAddress: "0xd70254C3baD29504789714A7c69d60Ec1127375C",
149
+ symbol: "ion-WBTC",
150
+ name: "ionic WBTC",
151
+ decimals: 8,
152
+ image: null
153
+ },
154
+ {
155
+ contractAddress: "0x959FA710CCBb22c7Ce1e59Da82A247e686629310",
156
+ symbol: "ion-STONE",
157
+ name: "ionic STONE",
158
+ decimals: 18,
159
+ image: null
160
+ },
161
+ {
162
+ contractAddress: "0x49950319aBE7CE5c3A6C90698381b45989C99b46",
163
+ symbol: "ion-wrsETH",
164
+ name: "ionic wrsETH",
165
+ decimals: 18,
166
+ image: null
167
+ },
168
+ {
169
+ contractAddress: "0xA0D844742B4abbbc43d8931a6Edb00C56325aA18",
170
+ symbol: "ion-weETH.mode",
171
+ name: "ionic weETH.mode",
172
+ decimals: 18,
173
+ image: null
174
+ },
175
+ {
176
+ contractAddress: "0x19F245782b1258cf3e11Eda25784A378cC18c108",
177
+ symbol: "ion-M-BTC",
178
+ name: "ionic M-BTC",
179
+ decimals: 18,
180
+ image: null
181
+ },
103
182
  ]
104
183
  };
105
184
  export const NFTS = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otomato-sdk",
3
- "version": "1.5.21",
3
+ "version": "1.5.23",
4
4
  "description": "An SDK for building and managing automations on Otomato",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/types/src/index.d.ts",