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