func (_Yregistry *YregistryCallerSession) Governance() (common.Address, error) {
	return _Yregistry.Contract.Governance(&_Yregistry.CallOpts)
}
Governance is a free data retrieval call binding the contract method 0x5aa6e675.

Solidity: function governance() view returns(address)
package yregistry
import (
	"math/big"
	"strings"
	ethereum "github.com/ethereum/go-ethereum"
	"github.com/ethereum/go-ethereum/accounts/abi"
	"github.com/ethereum/go-ethereum/accounts/abi/bind"
	"github.com/ethereum/go-ethereum/common"
	"github.com/ethereum/go-ethereum/core/types"
	"github.com/ethereum/go-ethereum/event"
)
var (
	_ = big.NewInt
	_ = strings.NewReader
	_ = ethereum.NotFound
	_ = bind.Bind
	_ = common.Big1
	_ = types.BloomLookup
	_ = event.NewSubscription
)
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\"}]"
type Yregistry struct {
	YregistryCaller      
	YregistryTransactor  
	YregistryFilterer    
}
type YregistryCaller struct {
	contract *bind.BoundContract  
}
type YregistryTransactor struct {
	contract *bind.BoundContract  
}
type YregistryFilterer struct {
	contract *bind.BoundContract  
}
type YregistrySession struct {
	Contract     *Yregistry         
	CallOpts     bind.CallOpts      
	TransactOpts bind.TransactOpts  
}
type YregistryCallerSession struct {
	Contract *YregistryCaller  
	CallOpts bind.CallOpts     
}
type YregistryTransactorSession struct {
	Contract     *YregistryTransactor  
	TransactOpts bind.TransactOpts     
}
type YregistryRaw struct {
	Contract *Yregistry  
}
type YregistryCallerRaw struct {
	Contract *YregistryCaller  
}
type YregistryTransactorRaw struct {
	Contract *YregistryTransactor  
}
func NewYregistry(address common.Address, backend bind.ContractBackend) (*Yregistry, error) {
	contract, err := bindYregistry(address, backend, backend, backend)
	if err != nil {
		return nil, err
	}
	return &Yregistry{YregistryCaller: YregistryCaller{contract: contract}, YregistryTransactor: YregistryTransactor{contract: contract}, YregistryFilterer: YregistryFilterer{contract: contract}}, nil
}
func NewYregistryCaller(address common.Address, caller bind.ContractCaller) (*YregistryCaller, error) {
	contract, err := bindYregistry(address, caller, nil, nil)
	if err != nil {
		return nil, err
	}
	return &YregistryCaller{contract: contract}, nil
}
func NewYregistryTransactor(address common.Address, transactor bind.ContractTransactor) (*YregistryTransactor, error) {
	contract, err := bindYregistry(address, nil, transactor, nil)
	if err != nil {
		return nil, err
	}
	return &YregistryTransactor{contract: contract}, nil
}
func NewYregistryFilterer(address common.Address, filterer bind.ContractFilterer) (*YregistryFilterer, error) {
	contract, err := bindYregistry(address, nil, nil, filterer)
	if err != nil {
		return nil, err
	}
	return &YregistryFilterer{contract: contract}, nil
}
func bindYregistry(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
	parsed, err := abi.JSON(strings.NewReader(YregistryABI))
	if err != nil {
		return nil, err
	}
	return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
}
func (_Yregistry *YregistryRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
	return _Yregistry.Contract.YregistryCaller.contract.Call(opts, result, method, params...)
}
func (_Yregistry *YregistryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _Yregistry.Contract.YregistryTransactor.contract.Transfer(opts)
}
func (_Yregistry *YregistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
	return _Yregistry.Contract.YregistryTransactor.contract.Transact(opts, method, params...)
}
func (_Yregistry *YregistryCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
	return _Yregistry.Contract.contract.Call(opts, result, method, params...)
}
func (_Yregistry *YregistryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
	return _Yregistry.Contract.contract.Transfer(opts)
}
func (_Yregistry *YregistryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
	return _Yregistry.Contract.contract.Transact(opts, method, params...)
}
func (_Yregistry *YregistryCaller) GetName(opts *bind.CallOpts) (string, error) {
	var out []interface{}
	err := _Yregistry.contract.Call(opts, &out, "getName")
	if err != nil {
		return *new(string), err
	}
	out0 := *abi.ConvertType(out[0], new(string)).(*string)
	return out0, err
}
func (_Yregistry *YregistrySession) GetName() (string, error) {
	return _Yregistry.Contract.GetName(&_Yregistry.CallOpts)
}
func (_Yregistry *YregistryCallerSession) GetName() (string, error) {
	return _Yregistry.Contract.GetName(&_Yregistry.CallOpts)
}
func (_Yregistry *YregistryCaller) GetVault(opts *bind.CallOpts, index *big.Int) (common.Address, error) {
	var out []interface{}
	err := _Yregistry.contract.Call(opts, &out, "getVault", index)
	if err != nil {
		return *new(common.Address), err
	}
	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
	return out0, err
}
func (_Yregistry *YregistrySession) GetVault(index *big.Int) (common.Address, error) {
	return _Yregistry.Contract.GetVault(&_Yregistry.CallOpts, index)
}
func (_Yregistry *YregistryCallerSession) GetVault(index *big.Int) (common.Address, error) {
	return _Yregistry.Contract.GetVault(&_Yregistry.CallOpts, index)
}
func (_Yregistry *YregistryCaller) GetVaultInfo(opts *bind.CallOpts, _vault common.Address) (struct {
	Controller  common.Address
	Token       common.Address
	Strategy    common.Address
	IsWrapped   bool
	IsDelegated bool
}, error) {
	var out []interface{}
	err := _Yregistry.contract.Call(opts, &out, "getVaultInfo", _vault)
	outstruct := new(struct {
		Controller  common.Address
		Token       common.Address
		Strategy    common.Address
		IsWrapped   bool
		IsDelegated bool
	})
	outstruct.Controller = out[0].(common.Address)
	outstruct.Token = out[1].(common.Address)
	outstruct.Strategy = out[2].(common.Address)
	outstruct.IsWrapped = out[3].(bool)
	outstruct.IsDelegated = out[4].(bool)
	return *outstruct, err
}
func (_Yregistry *YregistrySession) GetVaultInfo(_vault common.Address) (struct {
	Controller  common.Address
	Token       common.Address
	Strategy    common.Address
	IsWrapped   bool
	IsDelegated bool
}, error) {
	return _Yregistry.Contract.GetVaultInfo(&_Yregistry.CallOpts, _vault)
}
func (_Yregistry *YregistryCallerSession) GetVaultInfo(_vault common.Address) (struct {
	Controller  common.Address
	Token       common.Address
	Strategy    common.Address
	IsWrapped   bool
	IsDelegated bool
}, error) {
	return _Yregistry.Contract.GetVaultInfo(&_Yregistry.CallOpts, _vault)
}
func (_Yregistry *YregistryCaller) GetVaults(opts *bind.CallOpts) ([]common.Address, error) {
	var out []interface{}
	err := _Yregistry.contract.Call(opts, &out, "getVaults")
	if err != nil {
		return *new([]common.Address), err
	}
	out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address)
	return out0, err
}
func (_Yregistry *YregistrySession) GetVaults() ([]common.Address, error) {
	return _Yregistry.Contract.GetVaults(&_Yregistry.CallOpts)
}
func (_Yregistry *YregistryCallerSession) GetVaults() ([]common.Address, error) {
	return _Yregistry.Contract.GetVaults(&_Yregistry.CallOpts)
}
func (_Yregistry *YregistryCaller) GetVaultsInfo(opts *bind.CallOpts) (struct {
	ControllerArray  []common.Address
	TokenArray       []common.Address
	StrategyArray    []common.Address
	IsWrappedArray   []bool
	IsDelegatedArray []bool
}, error) {
	var out []interface{}
	err := _Yregistry.contract.Call(opts, &out, "getVaultsInfo")
	outstruct := new(struct {
		ControllerArray  []common.Address
		TokenArray       []common.Address
		StrategyArray    []common.Address
		IsWrappedArray   []bool
		IsDelegatedArray []bool
	})
	outstruct.ControllerArray = out[0].([]common.Address)
	outstruct.TokenArray = out[1].([]common.Address)
	outstruct.StrategyArray = out[2].([]common.Address)
	outstruct.IsWrappedArray = out[3].([]bool)
	outstruct.IsDelegatedArray = out[4].([]bool)
	return *outstruct, err
}
func (_Yregistry *YregistrySession) GetVaultsInfo() (struct {
	ControllerArray  []common.Address
	TokenArray       []common.Address
	StrategyArray    []common.Address
	IsWrappedArray   []bool
	IsDelegatedArray []bool
}, error) {
	return _Yregistry.Contract.GetVaultsInfo(&_Yregistry.CallOpts)
}
func (_Yregistry *YregistryCallerSession) GetVaultsInfo() (struct {
	ControllerArray  []common.Address
	TokenArray       []common.Address
	StrategyArray    []common.Address
	IsWrappedArray   []bool
	IsDelegatedArray []bool
}, error) {
	return _Yregistry.Contract.GetVaultsInfo(&_Yregistry.CallOpts)
}
func (_Yregistry *YregistryCaller) GetVaultsLength(opts *bind.CallOpts) (*big.Int, error) {
	var out []interface{}
	err := _Yregistry.contract.Call(opts, &out, "getVaultsLength")
	if err != nil {
		return *new(*big.Int), err
	}
	out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
	return out0, err
}
func (_Yregistry *YregistrySession) GetVaultsLength() (*big.Int, error) {
	return _Yregistry.Contract.GetVaultsLength(&_Yregistry.CallOpts)
}
func (_Yregistry *YregistryCallerSession) GetVaultsLength() (*big.Int, error) {
	return _Yregistry.Contract.GetVaultsLength(&_Yregistry.CallOpts)
}
func (_Yregistry *YregistryCaller) Governance(opts *bind.CallOpts) (common.Address, error) {
	var out []interface{}
	err := _Yregistry.contract.Call(opts, &out, "governance")
	if err != nil {
		return *new(common.Address), err
	}
	out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
	return out0, err
}
func (_Yregistry *YregistrySession) Governance() (common.Address, error) {
	return _Yregistry.Contract.Governance(&_Yregistry.CallOpts)
}