github.com/cwntr/go-defi@v0.0.0-20210629134751-07f9ec2f7e66/binding/yearn/yregistry/yregistry.go (about) 1 // Code generated - DO NOT EDIT. 2 // This file is a generated binding and any manual changes will be lost. 3 4 package yregistry 5 6 import ( 7 "math/big" 8 "strings" 9 10 ethereum "github.com/ethereum/go-ethereum" 11 "github.com/ethereum/go-ethereum/accounts/abi" 12 "github.com/ethereum/go-ethereum/accounts/abi/bind" 13 "github.com/ethereum/go-ethereum/common" 14 "github.com/ethereum/go-ethereum/core/types" 15 "github.com/ethereum/go-ethereum/event" 16 ) 17 18 // Reference imports to suppress errors if they are not otherwise used. 19 var ( 20 _ = big.NewInt 21 _ = strings.NewReader 22 _ = ethereum.NotFound 23 _ = bind.Bind 24 _ = common.Big1 25 _ = types.BloomLookup 26 _ = event.NewSubscription 27 ) 28 29 // YregistryABI is the input ABI used to generate the binding from. 30 const YregistryABI = "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_governance\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"acceptGovernance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_vault\",\"type\":\"address\"}],\"name\":\"addDelegatedVault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_vault\",\"type\":\"address\"}],\"name\":\"addVault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_vault\",\"type\":\"address\"}],\"name\":\"addWrappedVault\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"pure\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"getVault\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"vault\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_vault\",\"type\":\"address\"}],\"name\":\"getVaultInfo\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"controller\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"token\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"strategy\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"isWrapped\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"isDelegated\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVaults\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVaultsInfo\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"controllerArray\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"tokenArray\",\"type\":\"address[]\"},{\"internalType\":\"address[]\",\"name\":\"strategyArray\",\"type\":\"address[]\"},{\"internalType\":\"bool[]\",\"name\":\"isWrappedArray\",\"type\":\"bool[]\"},{\"internalType\":\"bool[]\",\"name\":\"isDelegatedArray\",\"type\":\"bool[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getVaultsLength\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"governance\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isDelegatedVault\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pendingGovernance\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_pendingGovernance\",\"type\":\"address\"}],\"name\":\"setPendingGovernance\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]" 31 32 // Yregistry is an auto generated Go binding around an Ethereum contract. 33 type Yregistry struct { 34 YregistryCaller // Read-only binding to the contract 35 YregistryTransactor // Write-only binding to the contract 36 YregistryFilterer // Log filterer for contract events 37 } 38 39 // YregistryCaller is an auto generated read-only Go binding around an Ethereum contract. 40 type YregistryCaller struct { 41 contract *bind.BoundContract // Generic contract wrapper for the low level calls 42 } 43 44 // YregistryTransactor is an auto generated write-only Go binding around an Ethereum contract. 45 type YregistryTransactor struct { 46 contract *bind.BoundContract // Generic contract wrapper for the low level calls 47 } 48 49 // YregistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events. 50 type YregistryFilterer struct { 51 contract *bind.BoundContract // Generic contract wrapper for the low level calls 52 } 53 54 // YregistrySession is an auto generated Go binding around an Ethereum contract, 55 // with pre-set call and transact options. 56 type YregistrySession struct { 57 Contract *Yregistry // Generic contract binding to set the session for 58 CallOpts bind.CallOpts // Call options to use throughout this session 59 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 60 } 61 62 // YregistryCallerSession is an auto generated read-only Go binding around an Ethereum contract, 63 // with pre-set call options. 64 type YregistryCallerSession struct { 65 Contract *YregistryCaller // Generic contract caller binding to set the session for 66 CallOpts bind.CallOpts // Call options to use throughout this session 67 } 68 69 // YregistryTransactorSession is an auto generated write-only Go binding around an Ethereum contract, 70 // with pre-set transact options. 71 type YregistryTransactorSession struct { 72 Contract *YregistryTransactor // Generic contract transactor binding to set the session for 73 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 74 } 75 76 // YregistryRaw is an auto generated low-level Go binding around an Ethereum contract. 77 type YregistryRaw struct { 78 Contract *Yregistry // Generic contract binding to access the raw methods on 79 } 80 81 // YregistryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. 82 type YregistryCallerRaw struct { 83 Contract *YregistryCaller // Generic read-only contract binding to access the raw methods on 84 } 85 86 // YregistryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. 87 type YregistryTransactorRaw struct { 88 Contract *YregistryTransactor // Generic write-only contract binding to access the raw methods on 89 } 90 91 // NewYregistry creates a new instance of Yregistry, bound to a specific deployed contract. 92 func NewYregistry(address common.Address, backend bind.ContractBackend) (*Yregistry, error) { 93 contract, err := bindYregistry(address, backend, backend, backend) 94 if err != nil { 95 return nil, err 96 } 97 return &Yregistry{YregistryCaller: YregistryCaller{contract: contract}, YregistryTransactor: YregistryTransactor{contract: contract}, YregistryFilterer: YregistryFilterer{contract: contract}}, nil 98 } 99 100 // NewYregistryCaller creates a new read-only instance of Yregistry, bound to a specific deployed contract. 101 func NewYregistryCaller(address common.Address, caller bind.ContractCaller) (*YregistryCaller, error) { 102 contract, err := bindYregistry(address, caller, nil, nil) 103 if err != nil { 104 return nil, err 105 } 106 return &YregistryCaller{contract: contract}, nil 107 } 108 109 // NewYregistryTransactor creates a new write-only instance of Yregistry, bound to a specific deployed contract. 110 func NewYregistryTransactor(address common.Address, transactor bind.ContractTransactor) (*YregistryTransactor, error) { 111 contract, err := bindYregistry(address, nil, transactor, nil) 112 if err != nil { 113 return nil, err 114 } 115 return &YregistryTransactor{contract: contract}, nil 116 } 117 118 // NewYregistryFilterer creates a new log filterer instance of Yregistry, bound to a specific deployed contract. 119 func NewYregistryFilterer(address common.Address, filterer bind.ContractFilterer) (*YregistryFilterer, error) { 120 contract, err := bindYregistry(address, nil, nil, filterer) 121 if err != nil { 122 return nil, err 123 } 124 return &YregistryFilterer{contract: contract}, nil 125 } 126 127 // bindYregistry binds a generic wrapper to an already deployed contract. 128 func bindYregistry(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { 129 parsed, err := abi.JSON(strings.NewReader(YregistryABI)) 130 if err != nil { 131 return nil, err 132 } 133 return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil 134 } 135 136 // Call invokes the (constant) contract method with params as input values and 137 // sets the output to result. The result type might be a single field for simple 138 // returns, a slice of interfaces for anonymous returns and a struct for named 139 // returns. 140 func (_Yregistry *YregistryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 141 return _Yregistry.Contract.YregistryCaller.contract.Call(opts, result, method, params...) 142 } 143 144 // Transfer initiates a plain transaction to move funds to the contract, calling 145 // its default method if one is available. 146 func (_Yregistry *YregistryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 147 return _Yregistry.Contract.YregistryTransactor.contract.Transfer(opts) 148 } 149 150 // Transact invokes the (paid) contract method with params as input values. 151 func (_Yregistry *YregistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 152 return _Yregistry.Contract.YregistryTransactor.contract.Transact(opts, method, params...) 153 } 154 155 // Call invokes the (constant) contract method with params as input values and 156 // sets the output to result. The result type might be a single field for simple 157 // returns, a slice of interfaces for anonymous returns and a struct for named 158 // returns. 159 func (_Yregistry *YregistryCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 160 return _Yregistry.Contract.contract.Call(opts, result, method, params...) 161 } 162 163 // Transfer initiates a plain transaction to move funds to the contract, calling 164 // its default method if one is available. 165 func (_Yregistry *YregistryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 166 return _Yregistry.Contract.contract.Transfer(opts) 167 } 168 169 // Transact invokes the (paid) contract method with params as input values. 170 func (_Yregistry *YregistryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 171 return _Yregistry.Contract.contract.Transact(opts, method, params...) 172 } 173 174 // GetName is a free data retrieval call binding the contract method 0x17d7de7c. 175 // 176 // Solidity: function getName() pure returns(string) 177 func (_Yregistry *YregistryCaller) GetName(opts *bind.CallOpts) (string, error) { 178 var out []interface{} 179 err := _Yregistry.contract.Call(opts, &out, "getName") 180 181 if err != nil { 182 return *new(string), err 183 } 184 185 out0 := *abi.ConvertType(out[0], new(string)).(*string) 186 187 return out0, err 188 189 } 190 191 // GetName is a free data retrieval call binding the contract method 0x17d7de7c. 192 // 193 // Solidity: function getName() pure returns(string) 194 func (_Yregistry *YregistrySession) GetName() (string, error) { 195 return _Yregistry.Contract.GetName(&_Yregistry.CallOpts) 196 } 197 198 // GetName is a free data retrieval call binding the contract method 0x17d7de7c. 199 // 200 // Solidity: function getName() pure returns(string) 201 func (_Yregistry *YregistryCallerSession) GetName() (string, error) { 202 return _Yregistry.Contract.GetName(&_Yregistry.CallOpts) 203 } 204 205 // GetVault is a free data retrieval call binding the contract method 0x9403b634. 206 // 207 // Solidity: function getVault(uint256 index) view returns(address vault) 208 func (_Yregistry *YregistryCaller) GetVault(opts *bind.CallOpts, index *big.Int) (common.Address, error) { 209 var out []interface{} 210 err := _Yregistry.contract.Call(opts, &out, "getVault", index) 211 212 if err != nil { 213 return *new(common.Address), err 214 } 215 216 out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) 217 218 return out0, err 219 220 } 221 222 // GetVault is a free data retrieval call binding the contract method 0x9403b634. 223 // 224 // Solidity: function getVault(uint256 index) view returns(address vault) 225 func (_Yregistry *YregistrySession) GetVault(index *big.Int) (common.Address, error) { 226 return _Yregistry.Contract.GetVault(&_Yregistry.CallOpts, index) 227 } 228 229 // GetVault is a free data retrieval call binding the contract method 0x9403b634. 230 // 231 // Solidity: function getVault(uint256 index) view returns(address vault) 232 func (_Yregistry *YregistryCallerSession) GetVault(index *big.Int) (common.Address, error) { 233 return _Yregistry.Contract.GetVault(&_Yregistry.CallOpts, index) 234 } 235 236 // GetVaultInfo is a free data retrieval call binding the contract method 0x90229af7. 237 // 238 // Solidity: function getVaultInfo(address _vault) view returns(address controller, address token, address strategy, bool isWrapped, bool isDelegated) 239 func (_Yregistry *YregistryCaller) GetVaultInfo(opts *bind.CallOpts, _vault common.Address) (struct { 240 Controller common.Address 241 Token common.Address 242 Strategy common.Address 243 IsWrapped bool 244 IsDelegated bool 245 }, error) { 246 var out []interface{} 247 err := _Yregistry.contract.Call(opts, &out, "getVaultInfo", _vault) 248 249 outstruct := new(struct { 250 Controller common.Address 251 Token common.Address 252 Strategy common.Address 253 IsWrapped bool 254 IsDelegated bool 255 }) 256 257 outstruct.Controller = out[0].(common.Address) 258 outstruct.Token = out[1].(common.Address) 259 outstruct.Strategy = out[2].(common.Address) 260 outstruct.IsWrapped = out[3].(bool) 261 outstruct.IsDelegated = out[4].(bool) 262 263 return *outstruct, err 264 265 } 266 267 // GetVaultInfo is a free data retrieval call binding the contract method 0x90229af7. 268 // 269 // Solidity: function getVaultInfo(address _vault) view returns(address controller, address token, address strategy, bool isWrapped, bool isDelegated) 270 func (_Yregistry *YregistrySession) GetVaultInfo(_vault common.Address) (struct { 271 Controller common.Address 272 Token common.Address 273 Strategy common.Address 274 IsWrapped bool 275 IsDelegated bool 276 }, error) { 277 return _Yregistry.Contract.GetVaultInfo(&_Yregistry.CallOpts, _vault) 278 } 279 280 // GetVaultInfo is a free data retrieval call binding the contract method 0x90229af7. 281 // 282 // Solidity: function getVaultInfo(address _vault) view returns(address controller, address token, address strategy, bool isWrapped, bool isDelegated) 283 func (_Yregistry *YregistryCallerSession) GetVaultInfo(_vault common.Address) (struct { 284 Controller common.Address 285 Token common.Address 286 Strategy common.Address 287 IsWrapped bool 288 IsDelegated bool 289 }, error) { 290 return _Yregistry.Contract.GetVaultInfo(&_Yregistry.CallOpts, _vault) 291 } 292 293 // GetVaults is a free data retrieval call binding the contract method 0x44d00f82. 294 // 295 // Solidity: function getVaults() view returns(address[]) 296 func (_Yregistry *YregistryCaller) GetVaults(opts *bind.CallOpts) ([]common.Address, error) { 297 var out []interface{} 298 err := _Yregistry.contract.Call(opts, &out, "getVaults") 299 300 if err != nil { 301 return *new([]common.Address), err 302 } 303 304 out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address) 305 306 return out0, err 307 308 } 309 310 // GetVaults is a free data retrieval call binding the contract method 0x44d00f82. 311 // 312 // Solidity: function getVaults() view returns(address[]) 313 func (_Yregistry *YregistrySession) GetVaults() ([]common.Address, error) { 314 return _Yregistry.Contract.GetVaults(&_Yregistry.CallOpts) 315 } 316 317 // GetVaults is a free data retrieval call binding the contract method 0x44d00f82. 318 // 319 // Solidity: function getVaults() view returns(address[]) 320 func (_Yregistry *YregistryCallerSession) GetVaults() ([]common.Address, error) { 321 return _Yregistry.Contract.GetVaults(&_Yregistry.CallOpts) 322 } 323 324 // GetVaultsInfo is a free data retrieval call binding the contract method 0x6b708788. 325 // 326 // Solidity: function getVaultsInfo() view returns(address[] controllerArray, address[] tokenArray, address[] strategyArray, bool[] isWrappedArray, bool[] isDelegatedArray) 327 func (_Yregistry *YregistryCaller) GetVaultsInfo(opts *bind.CallOpts) (struct { 328 ControllerArray []common.Address 329 TokenArray []common.Address 330 StrategyArray []common.Address 331 IsWrappedArray []bool 332 IsDelegatedArray []bool 333 }, error) { 334 var out []interface{} 335 err := _Yregistry.contract.Call(opts, &out, "getVaultsInfo") 336 337 outstruct := new(struct { 338 ControllerArray []common.Address 339 TokenArray []common.Address 340 StrategyArray []common.Address 341 IsWrappedArray []bool 342 IsDelegatedArray []bool 343 }) 344 345 outstruct.ControllerArray = out[0].([]common.Address) 346 outstruct.TokenArray = out[1].([]common.Address) 347 outstruct.StrategyArray = out[2].([]common.Address) 348 outstruct.IsWrappedArray = out[3].([]bool) 349 outstruct.IsDelegatedArray = out[4].([]bool) 350 351 return *outstruct, err 352 353 } 354 355 // GetVaultsInfo is a free data retrieval call binding the contract method 0x6b708788. 356 // 357 // Solidity: function getVaultsInfo() view returns(address[] controllerArray, address[] tokenArray, address[] strategyArray, bool[] isWrappedArray, bool[] isDelegatedArray) 358 func (_Yregistry *YregistrySession) GetVaultsInfo() (struct { 359 ControllerArray []common.Address 360 TokenArray []common.Address 361 StrategyArray []common.Address 362 IsWrappedArray []bool 363 IsDelegatedArray []bool 364 }, error) { 365 return _Yregistry.Contract.GetVaultsInfo(&_Yregistry.CallOpts) 366 } 367 368 // GetVaultsInfo is a free data retrieval call binding the contract method 0x6b708788. 369 // 370 // Solidity: function getVaultsInfo() view returns(address[] controllerArray, address[] tokenArray, address[] strategyArray, bool[] isWrappedArray, bool[] isDelegatedArray) 371 func (_Yregistry *YregistryCallerSession) GetVaultsInfo() (struct { 372 ControllerArray []common.Address 373 TokenArray []common.Address 374 StrategyArray []common.Address 375 IsWrappedArray []bool 376 IsDelegatedArray []bool 377 }, error) { 378 return _Yregistry.Contract.GetVaultsInfo(&_Yregistry.CallOpts) 379 } 380 381 // GetVaultsLength is a free data retrieval call binding the contract method 0x44b19dfc. 382 // 383 // Solidity: function getVaultsLength() view returns(uint256) 384 func (_Yregistry *YregistryCaller) GetVaultsLength(opts *bind.CallOpts) (*big.Int, error) { 385 var out []interface{} 386 err := _Yregistry.contract.Call(opts, &out, "getVaultsLength") 387 388 if err != nil { 389 return *new(*big.Int), err 390 } 391 392 out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) 393 394 return out0, err 395 396 } 397 398 // GetVaultsLength is a free data retrieval call binding the contract method 0x44b19dfc. 399 // 400 // Solidity: function getVaultsLength() view returns(uint256) 401 func (_Yregistry *YregistrySession) GetVaultsLength() (*big.Int, error) { 402 return _Yregistry.Contract.GetVaultsLength(&_Yregistry.CallOpts) 403 } 404 405 // GetVaultsLength is a free data retrieval call binding the contract method 0x44b19dfc. 406 // 407 // Solidity: function getVaultsLength() view returns(uint256) 408 func (_Yregistry *YregistryCallerSession) GetVaultsLength() (*big.Int, error) { 409 return _Yregistry.Contract.GetVaultsLength(&_Yregistry.CallOpts) 410 } 411 412 // Governance is a free data retrieval call binding the contract method 0x5aa6e675. 413 // 414 // Solidity: function governance() view returns(address) 415 func (_Yregistry *YregistryCaller) Governance(opts *bind.CallOpts) (common.Address, error) { 416 var out []interface{} 417 err := _Yregistry.contract.Call(opts, &out, "governance") 418 419 if err != nil { 420 return *new(common.Address), err 421 } 422 423 out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) 424 425 return out0, err 426 427 } 428 429 // Governance is a free data retrieval call binding the contract method 0x5aa6e675. 430 // 431 // Solidity: function governance() view returns(address) 432 func (_Yregistry *YregistrySession) Governance() (common.Address, error) { 433 return _Yregistry.Contract.Governance(&_Yregistry.CallOpts) 434 } 435 436 // Governance is a free data retrieval call binding the contract method 0x5aa6e675. 437 // 438 // Solidity: function governance() view returns(address) 439 func (_Yregistry *YregistryCallerSession) Governance() (common.Address, error) { 440 return _Yregistry.Contract.Governance(&_Yregistry.CallOpts) 441 } 442 443 // IsDelegatedVault is a free data retrieval call binding the contract method 0x44064be7. 444 // 445 // Solidity: function isDelegatedVault(address ) view returns(bool) 446 func (_Yregistry *YregistryCaller) IsDelegatedVault(opts *bind.CallOpts, arg0 common.Address) (bool, error) { 447 var out []interface{} 448 err := _Yregistry.contract.Call(opts, &out, "isDelegatedVault", arg0) 449 450 if err != nil { 451 return *new(bool), err 452 } 453 454 out0 := *abi.ConvertType(out[0], new(bool)).(*bool) 455 456 return out0, err 457 458 } 459 460 // IsDelegatedVault is a free data retrieval call binding the contract method 0x44064be7. 461 // 462 // Solidity: function isDelegatedVault(address ) view returns(bool) 463 func (_Yregistry *YregistrySession) IsDelegatedVault(arg0 common.Address) (bool, error) { 464 return _Yregistry.Contract.IsDelegatedVault(&_Yregistry.CallOpts, arg0) 465 } 466 467 // IsDelegatedVault is a free data retrieval call binding the contract method 0x44064be7. 468 // 469 // Solidity: function isDelegatedVault(address ) view returns(bool) 470 func (_Yregistry *YregistryCallerSession) IsDelegatedVault(arg0 common.Address) (bool, error) { 471 return _Yregistry.Contract.IsDelegatedVault(&_Yregistry.CallOpts, arg0) 472 } 473 474 // PendingGovernance is a free data retrieval call binding the contract method 0xf39c38a0. 475 // 476 // Solidity: function pendingGovernance() view returns(address) 477 func (_Yregistry *YregistryCaller) PendingGovernance(opts *bind.CallOpts) (common.Address, error) { 478 var out []interface{} 479 err := _Yregistry.contract.Call(opts, &out, "pendingGovernance") 480 481 if err != nil { 482 return *new(common.Address), err 483 } 484 485 out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) 486 487 return out0, err 488 489 } 490 491 // PendingGovernance is a free data retrieval call binding the contract method 0xf39c38a0. 492 // 493 // Solidity: function pendingGovernance() view returns(address) 494 func (_Yregistry *YregistrySession) PendingGovernance() (common.Address, error) { 495 return _Yregistry.Contract.PendingGovernance(&_Yregistry.CallOpts) 496 } 497 498 // PendingGovernance is a free data retrieval call binding the contract method 0xf39c38a0. 499 // 500 // Solidity: function pendingGovernance() view returns(address) 501 func (_Yregistry *YregistryCallerSession) PendingGovernance() (common.Address, error) { 502 return _Yregistry.Contract.PendingGovernance(&_Yregistry.CallOpts) 503 } 504 505 // AcceptGovernance is a paid mutator transaction binding the contract method 0x238efcbc. 506 // 507 // Solidity: function acceptGovernance() returns() 508 func (_Yregistry *YregistryTransactor) AcceptGovernance(opts *bind.TransactOpts) (*types.Transaction, error) { 509 return _Yregistry.contract.Transact(opts, "acceptGovernance") 510 } 511 512 // AcceptGovernance is a paid mutator transaction binding the contract method 0x238efcbc. 513 // 514 // Solidity: function acceptGovernance() returns() 515 func (_Yregistry *YregistrySession) AcceptGovernance() (*types.Transaction, error) { 516 return _Yregistry.Contract.AcceptGovernance(&_Yregistry.TransactOpts) 517 } 518 519 // AcceptGovernance is a paid mutator transaction binding the contract method 0x238efcbc. 520 // 521 // Solidity: function acceptGovernance() returns() 522 func (_Yregistry *YregistryTransactorSession) AcceptGovernance() (*types.Transaction, error) { 523 return _Yregistry.Contract.AcceptGovernance(&_Yregistry.TransactOpts) 524 } 525 526 // AddDelegatedVault is a paid mutator transaction binding the contract method 0x2019c75a. 527 // 528 // Solidity: function addDelegatedVault(address _vault) returns() 529 func (_Yregistry *YregistryTransactor) AddDelegatedVault(opts *bind.TransactOpts, _vault common.Address) (*types.Transaction, error) { 530 return _Yregistry.contract.Transact(opts, "addDelegatedVault", _vault) 531 } 532 533 // AddDelegatedVault is a paid mutator transaction binding the contract method 0x2019c75a. 534 // 535 // Solidity: function addDelegatedVault(address _vault) returns() 536 func (_Yregistry *YregistrySession) AddDelegatedVault(_vault common.Address) (*types.Transaction, error) { 537 return _Yregistry.Contract.AddDelegatedVault(&_Yregistry.TransactOpts, _vault) 538 } 539 540 // AddDelegatedVault is a paid mutator transaction binding the contract method 0x2019c75a. 541 // 542 // Solidity: function addDelegatedVault(address _vault) returns() 543 func (_Yregistry *YregistryTransactorSession) AddDelegatedVault(_vault common.Address) (*types.Transaction, error) { 544 return _Yregistry.Contract.AddDelegatedVault(&_Yregistry.TransactOpts, _vault) 545 } 546 547 // AddVault is a paid mutator transaction binding the contract method 0x256b5a02. 548 // 549 // Solidity: function addVault(address _vault) returns() 550 func (_Yregistry *YregistryTransactor) AddVault(opts *bind.TransactOpts, _vault common.Address) (*types.Transaction, error) { 551 return _Yregistry.contract.Transact(opts, "addVault", _vault) 552 } 553 554 // AddVault is a paid mutator transaction binding the contract method 0x256b5a02. 555 // 556 // Solidity: function addVault(address _vault) returns() 557 func (_Yregistry *YregistrySession) AddVault(_vault common.Address) (*types.Transaction, error) { 558 return _Yregistry.Contract.AddVault(&_Yregistry.TransactOpts, _vault) 559 } 560 561 // AddVault is a paid mutator transaction binding the contract method 0x256b5a02. 562 // 563 // Solidity: function addVault(address _vault) returns() 564 func (_Yregistry *YregistryTransactorSession) AddVault(_vault common.Address) (*types.Transaction, error) { 565 return _Yregistry.Contract.AddVault(&_Yregistry.TransactOpts, _vault) 566 } 567 568 // AddWrappedVault is a paid mutator transaction binding the contract method 0x61de8389. 569 // 570 // Solidity: function addWrappedVault(address _vault) returns() 571 func (_Yregistry *YregistryTransactor) AddWrappedVault(opts *bind.TransactOpts, _vault common.Address) (*types.Transaction, error) { 572 return _Yregistry.contract.Transact(opts, "addWrappedVault", _vault) 573 } 574 575 // AddWrappedVault is a paid mutator transaction binding the contract method 0x61de8389. 576 // 577 // Solidity: function addWrappedVault(address _vault) returns() 578 func (_Yregistry *YregistrySession) AddWrappedVault(_vault common.Address) (*types.Transaction, error) { 579 return _Yregistry.Contract.AddWrappedVault(&_Yregistry.TransactOpts, _vault) 580 } 581 582 // AddWrappedVault is a paid mutator transaction binding the contract method 0x61de8389. 583 // 584 // Solidity: function addWrappedVault(address _vault) returns() 585 func (_Yregistry *YregistryTransactorSession) AddWrappedVault(_vault common.Address) (*types.Transaction, error) { 586 return _Yregistry.Contract.AddWrappedVault(&_Yregistry.TransactOpts, _vault) 587 } 588 589 // SetPendingGovernance is a paid mutator transaction binding the contract method 0x0abb6035. 590 // 591 // Solidity: function setPendingGovernance(address _pendingGovernance) returns() 592 func (_Yregistry *YregistryTransactor) SetPendingGovernance(opts *bind.TransactOpts, _pendingGovernance common.Address) (*types.Transaction, error) { 593 return _Yregistry.contract.Transact(opts, "setPendingGovernance", _pendingGovernance) 594 } 595 596 // SetPendingGovernance is a paid mutator transaction binding the contract method 0x0abb6035. 597 // 598 // Solidity: function setPendingGovernance(address _pendingGovernance) returns() 599 func (_Yregistry *YregistrySession) SetPendingGovernance(_pendingGovernance common.Address) (*types.Transaction, error) { 600 return _Yregistry.Contract.SetPendingGovernance(&_Yregistry.TransactOpts, _pendingGovernance) 601 } 602 603 // SetPendingGovernance is a paid mutator transaction binding the contract method 0x0abb6035. 604 // 605 // Solidity: function setPendingGovernance(address _pendingGovernance) returns() 606 func (_Yregistry *YregistryTransactorSession) SetPendingGovernance(_pendingGovernance common.Address) (*types.Transaction, error) { 607 return _Yregistry.Contract.SetPendingGovernance(&_Yregistry.TransactOpts, _pendingGovernance) 608 }