|
| 1 | +[ |
| 2 | + { |
| 3 | + "type": "impl", |
| 4 | + "name": "IAbbotImpl", |
| 5 | + "interface_name": "opus::interfaces::IAbbot::IAbbot" |
| 6 | + }, |
| 7 | + { |
| 8 | + "type": "enum", |
| 9 | + "name": "core::option::Option::<core::starknet::contract_address::ContractAddress>", |
| 10 | + "variants": [ |
| 11 | + { |
| 12 | + "name": "Some", |
| 13 | + "type": "core::starknet::contract_address::ContractAddress" |
| 14 | + }, |
| 15 | + { |
| 16 | + "name": "None", |
| 17 | + "type": "()" |
| 18 | + } |
| 19 | + ] |
| 20 | + }, |
| 21 | + { |
| 22 | + "type": "struct", |
| 23 | + "name": "core::array::Span::<core::integer::u64>", |
| 24 | + "members": [ |
| 25 | + { |
| 26 | + "name": "snapshot", |
| 27 | + "type": "@core::array::Array::<core::integer::u64>" |
| 28 | + } |
| 29 | + ] |
| 30 | + }, |
| 31 | + { |
| 32 | + "type": "struct", |
| 33 | + "name": "opus::types::AssetBalance", |
| 34 | + "members": [ |
| 35 | + { |
| 36 | + "name": "address", |
| 37 | + "type": "core::starknet::contract_address::ContractAddress" |
| 38 | + }, |
| 39 | + { |
| 40 | + "name": "amount", |
| 41 | + "type": "core::integer::u128" |
| 42 | + } |
| 43 | + ] |
| 44 | + }, |
| 45 | + { |
| 46 | + "type": "struct", |
| 47 | + "name": "core::array::Span::<opus::types::AssetBalance>", |
| 48 | + "members": [ |
| 49 | + { |
| 50 | + "name": "snapshot", |
| 51 | + "type": "@core::array::Array::<opus::types::AssetBalance>" |
| 52 | + } |
| 53 | + ] |
| 54 | + }, |
| 55 | + { |
| 56 | + "type": "struct", |
| 57 | + "name": "wadray::wadray::Wad", |
| 58 | + "members": [ |
| 59 | + { |
| 60 | + "name": "val", |
| 61 | + "type": "core::integer::u128" |
| 62 | + } |
| 63 | + ] |
| 64 | + }, |
| 65 | + { |
| 66 | + "type": "interface", |
| 67 | + "name": "opus::interfaces::IAbbot::IAbbot", |
| 68 | + "items": [ |
| 69 | + { |
| 70 | + "type": "function", |
| 71 | + "name": "get_trove_owner", |
| 72 | + "inputs": [ |
| 73 | + { |
| 74 | + "name": "trove_id", |
| 75 | + "type": "core::integer::u64" |
| 76 | + } |
| 77 | + ], |
| 78 | + "outputs": [ |
| 79 | + { |
| 80 | + "type": "core::option::Option::<core::starknet::contract_address::ContractAddress>" |
| 81 | + } |
| 82 | + ], |
| 83 | + "state_mutability": "view" |
| 84 | + }, |
| 85 | + { |
| 86 | + "type": "function", |
| 87 | + "name": "get_user_trove_ids", |
| 88 | + "inputs": [ |
| 89 | + { |
| 90 | + "name": "user", |
| 91 | + "type": "core::starknet::contract_address::ContractAddress" |
| 92 | + } |
| 93 | + ], |
| 94 | + "outputs": [ |
| 95 | + { |
| 96 | + "type": "core::array::Span::<core::integer::u64>" |
| 97 | + } |
| 98 | + ], |
| 99 | + "state_mutability": "view" |
| 100 | + }, |
| 101 | + { |
| 102 | + "type": "function", |
| 103 | + "name": "get_troves_count", |
| 104 | + "inputs": [], |
| 105 | + "outputs": [ |
| 106 | + { |
| 107 | + "type": "core::integer::u64" |
| 108 | + } |
| 109 | + ], |
| 110 | + "state_mutability": "view" |
| 111 | + }, |
| 112 | + { |
| 113 | + "type": "function", |
| 114 | + "name": "get_trove_asset_balance", |
| 115 | + "inputs": [ |
| 116 | + { |
| 117 | + "name": "trove_id", |
| 118 | + "type": "core::integer::u64" |
| 119 | + }, |
| 120 | + { |
| 121 | + "name": "yang", |
| 122 | + "type": "core::starknet::contract_address::ContractAddress" |
| 123 | + } |
| 124 | + ], |
| 125 | + "outputs": [ |
| 126 | + { |
| 127 | + "type": "core::integer::u128" |
| 128 | + } |
| 129 | + ], |
| 130 | + "state_mutability": "view" |
| 131 | + }, |
| 132 | + { |
| 133 | + "type": "function", |
| 134 | + "name": "open_trove", |
| 135 | + "inputs": [ |
| 136 | + { |
| 137 | + "name": "yang_assets", |
| 138 | + "type": "core::array::Span::<opus::types::AssetBalance>" |
| 139 | + }, |
| 140 | + { |
| 141 | + "name": "forge_amount", |
| 142 | + "type": "wadray::wadray::Wad" |
| 143 | + }, |
| 144 | + { |
| 145 | + "name": "max_forge_fee_pct", |
| 146 | + "type": "wadray::wadray::Wad" |
| 147 | + } |
| 148 | + ], |
| 149 | + "outputs": [ |
| 150 | + { |
| 151 | + "type": "core::integer::u64" |
| 152 | + } |
| 153 | + ], |
| 154 | + "state_mutability": "external" |
| 155 | + }, |
| 156 | + { |
| 157 | + "type": "function", |
| 158 | + "name": "close_trove", |
| 159 | + "inputs": [ |
| 160 | + { |
| 161 | + "name": "trove_id", |
| 162 | + "type": "core::integer::u64" |
| 163 | + } |
| 164 | + ], |
| 165 | + "outputs": [], |
| 166 | + "state_mutability": "external" |
| 167 | + }, |
| 168 | + { |
| 169 | + "type": "function", |
| 170 | + "name": "deposit", |
| 171 | + "inputs": [ |
| 172 | + { |
| 173 | + "name": "trove_id", |
| 174 | + "type": "core::integer::u64" |
| 175 | + }, |
| 176 | + { |
| 177 | + "name": "yang_asset", |
| 178 | + "type": "opus::types::AssetBalance" |
| 179 | + } |
| 180 | + ], |
| 181 | + "outputs": [], |
| 182 | + "state_mutability": "external" |
| 183 | + }, |
| 184 | + { |
| 185 | + "type": "function", |
| 186 | + "name": "withdraw", |
| 187 | + "inputs": [ |
| 188 | + { |
| 189 | + "name": "trove_id", |
| 190 | + "type": "core::integer::u64" |
| 191 | + }, |
| 192 | + { |
| 193 | + "name": "yang_asset", |
| 194 | + "type": "opus::types::AssetBalance" |
| 195 | + } |
| 196 | + ], |
| 197 | + "outputs": [], |
| 198 | + "state_mutability": "external" |
| 199 | + }, |
| 200 | + { |
| 201 | + "type": "function", |
| 202 | + "name": "forge", |
| 203 | + "inputs": [ |
| 204 | + { |
| 205 | + "name": "trove_id", |
| 206 | + "type": "core::integer::u64" |
| 207 | + }, |
| 208 | + { |
| 209 | + "name": "amount", |
| 210 | + "type": "wadray::wadray::Wad" |
| 211 | + }, |
| 212 | + { |
| 213 | + "name": "max_forge_fee_pct", |
| 214 | + "type": "wadray::wadray::Wad" |
| 215 | + } |
| 216 | + ], |
| 217 | + "outputs": [], |
| 218 | + "state_mutability": "external" |
| 219 | + }, |
| 220 | + { |
| 221 | + "type": "function", |
| 222 | + "name": "melt", |
| 223 | + "inputs": [ |
| 224 | + { |
| 225 | + "name": "trove_id", |
| 226 | + "type": "core::integer::u64" |
| 227 | + }, |
| 228 | + { |
| 229 | + "name": "amount", |
| 230 | + "type": "wadray::wadray::Wad" |
| 231 | + } |
| 232 | + ], |
| 233 | + "outputs": [], |
| 234 | + "state_mutability": "external" |
| 235 | + } |
| 236 | + ] |
| 237 | + }, |
| 238 | + { |
| 239 | + "type": "constructor", |
| 240 | + "name": "constructor", |
| 241 | + "inputs": [ |
| 242 | + { |
| 243 | + "name": "shrine", |
| 244 | + "type": "core::starknet::contract_address::ContractAddress" |
| 245 | + }, |
| 246 | + { |
| 247 | + "name": "sentinel", |
| 248 | + "type": "core::starknet::contract_address::ContractAddress" |
| 249 | + } |
| 250 | + ] |
| 251 | + }, |
| 252 | + { |
| 253 | + "type": "event", |
| 254 | + "name": "opus::utils::reentrancy_guard::reentrancy_guard_component::Event", |
| 255 | + "kind": "enum", |
| 256 | + "variants": [] |
| 257 | + }, |
| 258 | + { |
| 259 | + "type": "event", |
| 260 | + "name": "opus::core::abbot::abbot::Deposit", |
| 261 | + "kind": "struct", |
| 262 | + "members": [ |
| 263 | + { |
| 264 | + "name": "user", |
| 265 | + "type": "core::starknet::contract_address::ContractAddress", |
| 266 | + "kind": "key" |
| 267 | + }, |
| 268 | + { |
| 269 | + "name": "trove_id", |
| 270 | + "type": "core::integer::u64", |
| 271 | + "kind": "key" |
| 272 | + }, |
| 273 | + { |
| 274 | + "name": "yang", |
| 275 | + "type": "core::starknet::contract_address::ContractAddress", |
| 276 | + "kind": "key" |
| 277 | + }, |
| 278 | + { |
| 279 | + "name": "yang_amt", |
| 280 | + "type": "wadray::wadray::Wad", |
| 281 | + "kind": "data" |
| 282 | + }, |
| 283 | + { |
| 284 | + "name": "asset_amt", |
| 285 | + "type": "core::integer::u128", |
| 286 | + "kind": "data" |
| 287 | + } |
| 288 | + ] |
| 289 | + }, |
| 290 | + { |
| 291 | + "type": "event", |
| 292 | + "name": "opus::core::abbot::abbot::Withdraw", |
| 293 | + "kind": "struct", |
| 294 | + "members": [ |
| 295 | + { |
| 296 | + "name": "user", |
| 297 | + "type": "core::starknet::contract_address::ContractAddress", |
| 298 | + "kind": "key" |
| 299 | + }, |
| 300 | + { |
| 301 | + "name": "trove_id", |
| 302 | + "type": "core::integer::u64", |
| 303 | + "kind": "key" |
| 304 | + }, |
| 305 | + { |
| 306 | + "name": "yang", |
| 307 | + "type": "core::starknet::contract_address::ContractAddress", |
| 308 | + "kind": "key" |
| 309 | + }, |
| 310 | + { |
| 311 | + "name": "yang_amt", |
| 312 | + "type": "wadray::wadray::Wad", |
| 313 | + "kind": "data" |
| 314 | + }, |
| 315 | + { |
| 316 | + "name": "asset_amt", |
| 317 | + "type": "core::integer::u128", |
| 318 | + "kind": "data" |
| 319 | + } |
| 320 | + ] |
| 321 | + }, |
| 322 | + { |
| 323 | + "type": "event", |
| 324 | + "name": "opus::core::abbot::abbot::TroveOpened", |
| 325 | + "kind": "struct", |
| 326 | + "members": [ |
| 327 | + { |
| 328 | + "name": "user", |
| 329 | + "type": "core::starknet::contract_address::ContractAddress", |
| 330 | + "kind": "key" |
| 331 | + }, |
| 332 | + { |
| 333 | + "name": "trove_id", |
| 334 | + "type": "core::integer::u64", |
| 335 | + "kind": "key" |
| 336 | + } |
| 337 | + ] |
| 338 | + }, |
| 339 | + { |
| 340 | + "type": "event", |
| 341 | + "name": "opus::core::abbot::abbot::TroveClosed", |
| 342 | + "kind": "struct", |
| 343 | + "members": [ |
| 344 | + { |
| 345 | + "name": "trove_id", |
| 346 | + "type": "core::integer::u64", |
| 347 | + "kind": "key" |
| 348 | + } |
| 349 | + ] |
| 350 | + }, |
| 351 | + { |
| 352 | + "type": "event", |
| 353 | + "name": "opus::core::abbot::abbot::Event", |
| 354 | + "kind": "enum", |
| 355 | + "variants": [ |
| 356 | + { |
| 357 | + "name": "ReentrancyGuardEvent", |
| 358 | + "type": "opus::utils::reentrancy_guard::reentrancy_guard_component::Event", |
| 359 | + "kind": "nested" |
| 360 | + }, |
| 361 | + { |
| 362 | + "name": "Deposit", |
| 363 | + "type": "opus::core::abbot::abbot::Deposit", |
| 364 | + "kind": "nested" |
| 365 | + }, |
| 366 | + { |
| 367 | + "name": "Withdraw", |
| 368 | + "type": "opus::core::abbot::abbot::Withdraw", |
| 369 | + "kind": "nested" |
| 370 | + }, |
| 371 | + { |
| 372 | + "name": "TroveOpened", |
| 373 | + "type": "opus::core::abbot::abbot::TroveOpened", |
| 374 | + "kind": "nested" |
| 375 | + }, |
| 376 | + { |
| 377 | + "name": "TroveClosed", |
| 378 | + "type": "opus::core::abbot::abbot::TroveClosed", |
| 379 | + "kind": "nested" |
| 380 | + } |
| 381 | + ] |
| 382 | + } |
| 383 | +] |
0 commit comments