|
1 | 1 | "use client"; |
2 | | -import { Condition, Operator, ParameterType } from "zodiac-roles-sdk"; |
| 2 | +import { AbiType, Condition, Operator } from "zodiac-roles-sdk"; |
3 | 3 | import AbiTree from "@/components/tree/AbiTree"; |
4 | 4 | import ConditionTree, { gatherNodeIds } from "@/components/tree/ConditionTree"; |
5 | 5 | import clsx from "clsx"; |
@@ -144,93 +144,93 @@ const balancerSwapInputs = [ |
144 | 144 | ]; |
145 | 145 |
|
146 | 146 | const balancerSwapCondition: Condition = { |
147 | | - paramType: ParameterType.Calldata, |
| 147 | + paramType: AbiType.Calldata, |
148 | 148 | operator: Operator.Matches, |
149 | 149 | children: [ |
150 | 150 | { |
151 | | - paramType: ParameterType.Tuple, |
| 151 | + paramType: AbiType.Tuple, |
152 | 152 | operator: Operator.Matches, |
153 | 153 | children: [ |
154 | 154 | { |
155 | 155 | // poolId |
156 | | - paramType: ParameterType.Static, |
| 156 | + paramType: AbiType.Static, |
157 | 157 | operator: Operator.EqualTo, |
158 | 158 | compValue: |
159 | 159 | "0x0b09dea16768f0799065c475be02919503cb2a3500020000000000000000001a", |
160 | 160 | }, |
161 | 161 | { |
162 | 162 | // kind |
163 | | - paramType: ParameterType.Static, |
| 163 | + paramType: AbiType.Static, |
164 | 164 | operator: Operator.Pass, |
165 | 165 | }, |
166 | 166 | { |
167 | 167 | // assetIn |
168 | | - paramType: ParameterType.None, |
| 168 | + paramType: AbiType.None, |
169 | 169 | operator: Operator.Or, |
170 | 170 | children: [ |
171 | 171 | { |
172 | | - paramType: ParameterType.Static, |
| 172 | + paramType: AbiType.Static, |
173 | 173 | operator: Operator.EqualTo, |
174 | 174 | compValue: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", |
175 | 175 | }, // WETH |
176 | 176 | { |
177 | | - paramType: ParameterType.Static, |
| 177 | + paramType: AbiType.Static, |
178 | 178 | operator: Operator.EqualTo, |
179 | 179 | compValue: "0x6b175474e89094c44da98b954eedeac495271d0f", |
180 | 180 | }, // DAI |
181 | 181 | ], |
182 | 182 | }, |
183 | 183 | { |
184 | 184 | // assetOut |
185 | | - paramType: ParameterType.None, |
| 185 | + paramType: AbiType.None, |
186 | 186 | operator: Operator.Or, |
187 | 187 | children: [ |
188 | 188 | { |
189 | | - paramType: ParameterType.Static, |
| 189 | + paramType: AbiType.Static, |
190 | 190 | operator: Operator.EqualTo, |
191 | 191 | compValue: "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2", |
192 | 192 | }, // WETH |
193 | 193 | { |
194 | | - paramType: ParameterType.Static, |
| 194 | + paramType: AbiType.Static, |
195 | 195 | operator: Operator.EqualTo, |
196 | 196 | compValue: "0x6b175474e89094c44da98b954eedeac495271d0f", |
197 | 197 | }, // DAI |
198 | 198 | ], |
199 | 199 | }, |
200 | 200 | { |
201 | 201 | // amount |
202 | | - paramType: ParameterType.Static, |
| 202 | + paramType: AbiType.Static, |
203 | 203 | operator: Operator.Pass, |
204 | 204 | }, |
205 | 205 | { |
206 | 206 | // userDatq |
207 | | - paramType: ParameterType.Dynamic, |
| 207 | + paramType: AbiType.Dynamic, |
208 | 208 | operator: Operator.Pass, |
209 | 209 | }, |
210 | 210 | ], |
211 | 211 | }, |
212 | 212 | { |
213 | | - paramType: ParameterType.Tuple, |
| 213 | + paramType: AbiType.Tuple, |
214 | 214 | operator: Operator.Matches, |
215 | 215 | children: [ |
216 | 216 | { |
217 | 217 | // sender |
218 | | - paramType: ParameterType.Static, |
| 218 | + paramType: AbiType.Static, |
219 | 219 | operator: Operator.EqualToAvatar, |
220 | 220 | }, |
221 | 221 | { |
222 | 222 | // fromInternalBalance |
223 | | - paramType: ParameterType.Static, |
| 223 | + paramType: AbiType.Static, |
224 | 224 | operator: Operator.Pass, |
225 | 225 | }, |
226 | 226 | { |
227 | 227 | // recipient |
228 | | - paramType: ParameterType.Static, |
| 228 | + paramType: AbiType.Static, |
229 | 229 | operator: Operator.EqualToAvatar, |
230 | 230 | }, |
231 | 231 | { |
232 | 232 | // toInternalBalance |
233 | | - paramType: ParameterType.Static, |
| 233 | + paramType: AbiType.Static, |
234 | 234 | operator: Operator.Pass, |
235 | 235 | }, |
236 | 236 | ], |
|
0 commit comments