github.com/cwntr/go-defi@v0.0.0-20210629134751-07f9ec2f7e66/abi/yearn/yWETH.json (about) 1 [ 2 { 3 "inputs":[ 4 { 5 "internalType":"address", 6 "name":"_token", 7 "type":"address" 8 }, 9 { 10 "internalType":"address", 11 "name":"_controller", 12 "type":"address" 13 } 14 ], 15 "payable":false, 16 "stateMutability":"nonpayable", 17 "type":"constructor" 18 }, 19 { 20 "anonymous":false, 21 "inputs":[ 22 { 23 "indexed":true, 24 "internalType":"address", 25 "name":"owner", 26 "type":"address" 27 }, 28 { 29 "indexed":true, 30 "internalType":"address", 31 "name":"spender", 32 "type":"address" 33 }, 34 { 35 "indexed":false, 36 "internalType":"uint256", 37 "name":"value", 38 "type":"uint256" 39 } 40 ], 41 "name":"Approval", 42 "type":"event" 43 }, 44 { 45 "anonymous":false, 46 "inputs":[ 47 { 48 "indexed":true, 49 "internalType":"address", 50 "name":"from", 51 "type":"address" 52 }, 53 { 54 "indexed":true, 55 "internalType":"address", 56 "name":"to", 57 "type":"address" 58 }, 59 { 60 "indexed":false, 61 "internalType":"uint256", 62 "name":"value", 63 "type":"uint256" 64 } 65 ], 66 "name":"Transfer", 67 "type":"event" 68 }, 69 { 70 "payable":true, 71 "stateMutability":"payable", 72 "type":"fallback" 73 }, 74 { 75 "constant":true, 76 "inputs":[ 77 { 78 "internalType":"address", 79 "name":"owner", 80 "type":"address" 81 }, 82 { 83 "internalType":"address", 84 "name":"spender", 85 "type":"address" 86 } 87 ], 88 "name":"allowance", 89 "outputs":[ 90 { 91 "internalType":"uint256", 92 "name":"", 93 "type":"uint256" 94 } 95 ], 96 "payable":false, 97 "stateMutability":"view", 98 "type":"function" 99 }, 100 { 101 "constant":false, 102 "inputs":[ 103 { 104 "internalType":"address", 105 "name":"spender", 106 "type":"address" 107 }, 108 { 109 "internalType":"uint256", 110 "name":"amount", 111 "type":"uint256" 112 } 113 ], 114 "name":"approve", 115 "outputs":[ 116 { 117 "internalType":"bool", 118 "name":"", 119 "type":"bool" 120 } 121 ], 122 "payable":false, 123 "stateMutability":"nonpayable", 124 "type":"function" 125 }, 126 { 127 "constant":true, 128 "inputs":[ 129 130 ], 131 "name":"available", 132 "outputs":[ 133 { 134 "internalType":"uint256", 135 "name":"", 136 "type":"uint256" 137 } 138 ], 139 "payable":false, 140 "stateMutability":"view", 141 "type":"function" 142 }, 143 { 144 "constant":true, 145 "inputs":[ 146 147 ], 148 "name":"balance", 149 "outputs":[ 150 { 151 "internalType":"uint256", 152 "name":"", 153 "type":"uint256" 154 } 155 ], 156 "payable":false, 157 "stateMutability":"view", 158 "type":"function" 159 }, 160 { 161 "constant":true, 162 "inputs":[ 163 { 164 "internalType":"address", 165 "name":"account", 166 "type":"address" 167 } 168 ], 169 "name":"balanceOf", 170 "outputs":[ 171 { 172 "internalType":"uint256", 173 "name":"", 174 "type":"uint256" 175 } 176 ], 177 "payable":false, 178 "stateMutability":"view", 179 "type":"function" 180 }, 181 { 182 "constant":true, 183 "inputs":[ 184 185 ], 186 "name":"controller", 187 "outputs":[ 188 { 189 "internalType":"address", 190 "name":"", 191 "type":"address" 192 } 193 ], 194 "payable":false, 195 "stateMutability":"view", 196 "type":"function" 197 }, 198 { 199 "constant":true, 200 "inputs":[ 201 202 ], 203 "name":"decimals", 204 "outputs":[ 205 { 206 "internalType":"uint8", 207 "name":"", 208 "type":"uint8" 209 } 210 ], 211 "payable":false, 212 "stateMutability":"view", 213 "type":"function" 214 }, 215 { 216 "constant":false, 217 "inputs":[ 218 { 219 "internalType":"address", 220 "name":"spender", 221 "type":"address" 222 }, 223 { 224 "internalType":"uint256", 225 "name":"subtractedValue", 226 "type":"uint256" 227 } 228 ], 229 "name":"decreaseAllowance", 230 "outputs":[ 231 { 232 "internalType":"bool", 233 "name":"", 234 "type":"bool" 235 } 236 ], 237 "payable":false, 238 "stateMutability":"nonpayable", 239 "type":"function" 240 }, 241 { 242 "constant":false, 243 "inputs":[ 244 { 245 "internalType":"uint256", 246 "name":"_amount", 247 "type":"uint256" 248 } 249 ], 250 "name":"deposit", 251 "outputs":[ 252 253 ], 254 "payable":false, 255 "stateMutability":"nonpayable", 256 "type":"function" 257 }, 258 { 259 "constant":false, 260 "inputs":[ 261 262 ], 263 "name":"depositAll", 264 "outputs":[ 265 266 ], 267 "payable":false, 268 "stateMutability":"nonpayable", 269 "type":"function" 270 }, 271 { 272 "constant":false, 273 "inputs":[ 274 275 ], 276 "name":"depositETH", 277 "outputs":[ 278 279 ], 280 "payable":true, 281 "stateMutability":"payable", 282 "type":"function" 283 }, 284 { 285 "constant":false, 286 "inputs":[ 287 288 ], 289 "name":"earn", 290 "outputs":[ 291 292 ], 293 "payable":false, 294 "stateMutability":"nonpayable", 295 "type":"function" 296 }, 297 { 298 "constant":true, 299 "inputs":[ 300 301 ], 302 "name":"getPricePerFullShare", 303 "outputs":[ 304 { 305 "internalType":"uint256", 306 "name":"", 307 "type":"uint256" 308 } 309 ], 310 "payable":false, 311 "stateMutability":"view", 312 "type":"function" 313 }, 314 { 315 "constant":true, 316 "inputs":[ 317 318 ], 319 "name":"governance", 320 "outputs":[ 321 { 322 "internalType":"address", 323 "name":"", 324 "type":"address" 325 } 326 ], 327 "payable":false, 328 "stateMutability":"view", 329 "type":"function" 330 }, 331 { 332 "constant":false, 333 "inputs":[ 334 { 335 "internalType":"address", 336 "name":"reserve", 337 "type":"address" 338 }, 339 { 340 "internalType":"uint256", 341 "name":"amount", 342 "type":"uint256" 343 } 344 ], 345 "name":"harvest", 346 "outputs":[ 347 348 ], 349 "payable":false, 350 "stateMutability":"nonpayable", 351 "type":"function" 352 }, 353 { 354 "constant":false, 355 "inputs":[ 356 { 357 "internalType":"address", 358 "name":"spender", 359 "type":"address" 360 }, 361 { 362 "internalType":"uint256", 363 "name":"addedValue", 364 "type":"uint256" 365 } 366 ], 367 "name":"increaseAllowance", 368 "outputs":[ 369 { 370 "internalType":"bool", 371 "name":"", 372 "type":"bool" 373 } 374 ], 375 "payable":false, 376 "stateMutability":"nonpayable", 377 "type":"function" 378 }, 379 { 380 "constant":true, 381 "inputs":[ 382 383 ], 384 "name":"max", 385 "outputs":[ 386 { 387 "internalType":"uint256", 388 "name":"", 389 "type":"uint256" 390 } 391 ], 392 "payable":false, 393 "stateMutability":"view", 394 "type":"function" 395 }, 396 { 397 "constant":true, 398 "inputs":[ 399 400 ], 401 "name":"min", 402 "outputs":[ 403 { 404 "internalType":"uint256", 405 "name":"", 406 "type":"uint256" 407 } 408 ], 409 "payable":false, 410 "stateMutability":"view", 411 "type":"function" 412 }, 413 { 414 "constant":true, 415 "inputs":[ 416 417 ], 418 "name":"name", 419 "outputs":[ 420 { 421 "internalType":"string", 422 "name":"", 423 "type":"string" 424 } 425 ], 426 "payable":false, 427 "stateMutability":"view", 428 "type":"function" 429 }, 430 { 431 "constant":false, 432 "inputs":[ 433 { 434 "internalType":"address", 435 "name":"_controller", 436 "type":"address" 437 } 438 ], 439 "name":"setController", 440 "outputs":[ 441 442 ], 443 "payable":false, 444 "stateMutability":"nonpayable", 445 "type":"function" 446 }, 447 { 448 "constant":false, 449 "inputs":[ 450 { 451 "internalType":"address", 452 "name":"_governance", 453 "type":"address" 454 } 455 ], 456 "name":"setGovernance", 457 "outputs":[ 458 459 ], 460 "payable":false, 461 "stateMutability":"nonpayable", 462 "type":"function" 463 }, 464 { 465 "constant":false, 466 "inputs":[ 467 { 468 "internalType":"uint256", 469 "name":"_min", 470 "type":"uint256" 471 } 472 ], 473 "name":"setMin", 474 "outputs":[ 475 476 ], 477 "payable":false, 478 "stateMutability":"nonpayable", 479 "type":"function" 480 }, 481 { 482 "constant":true, 483 "inputs":[ 484 485 ], 486 "name":"symbol", 487 "outputs":[ 488 { 489 "internalType":"string", 490 "name":"", 491 "type":"string" 492 } 493 ], 494 "payable":false, 495 "stateMutability":"view", 496 "type":"function" 497 }, 498 { 499 "constant":true, 500 "inputs":[ 501 502 ], 503 "name":"token", 504 "outputs":[ 505 { 506 "internalType":"contract IERC20", 507 "name":"", 508 "type":"address" 509 } 510 ], 511 "payable":false, 512 "stateMutability":"view", 513 "type":"function" 514 }, 515 { 516 "constant":true, 517 "inputs":[ 518 519 ], 520 "name":"totalSupply", 521 "outputs":[ 522 { 523 "internalType":"uint256", 524 "name":"", 525 "type":"uint256" 526 } 527 ], 528 "payable":false, 529 "stateMutability":"view", 530 "type":"function" 531 }, 532 { 533 "constant":false, 534 "inputs":[ 535 { 536 "internalType":"address", 537 "name":"recipient", 538 "type":"address" 539 }, 540 { 541 "internalType":"uint256", 542 "name":"amount", 543 "type":"uint256" 544 } 545 ], 546 "name":"transfer", 547 "outputs":[ 548 { 549 "internalType":"bool", 550 "name":"", 551 "type":"bool" 552 } 553 ], 554 "payable":false, 555 "stateMutability":"nonpayable", 556 "type":"function" 557 }, 558 { 559 "constant":false, 560 "inputs":[ 561 { 562 "internalType":"address", 563 "name":"sender", 564 "type":"address" 565 }, 566 { 567 "internalType":"address", 568 "name":"recipient", 569 "type":"address" 570 }, 571 { 572 "internalType":"uint256", 573 "name":"amount", 574 "type":"uint256" 575 } 576 ], 577 "name":"transferFrom", 578 "outputs":[ 579 { 580 "internalType":"bool", 581 "name":"", 582 "type":"bool" 583 } 584 ], 585 "payable":false, 586 "stateMutability":"nonpayable", 587 "type":"function" 588 }, 589 { 590 "constant":false, 591 "inputs":[ 592 { 593 "internalType":"uint256", 594 "name":"_shares", 595 "type":"uint256" 596 } 597 ], 598 "name":"withdraw", 599 "outputs":[ 600 601 ], 602 "payable":false, 603 "stateMutability":"nonpayable", 604 "type":"function" 605 }, 606 { 607 "constant":false, 608 "inputs":[ 609 610 ], 611 "name":"withdrawAll", 612 "outputs":[ 613 614 ], 615 "payable":false, 616 "stateMutability":"nonpayable", 617 "type":"function" 618 }, 619 { 620 "constant":false, 621 "inputs":[ 622 623 ], 624 "name":"withdrawAllETH", 625 "outputs":[ 626 627 ], 628 "payable":false, 629 "stateMutability":"nonpayable", 630 "type":"function" 631 }, 632 { 633 "constant":false, 634 "inputs":[ 635 { 636 "internalType":"uint256", 637 "name":"_shares", 638 "type":"uint256" 639 } 640 ], 641 "name":"withdrawETH", 642 "outputs":[ 643 644 ], 645 "payable":false, 646 "stateMutability":"nonpayable", 647 "type":"function" 648 } 649 ]