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
}
NewYregistry creates a new instance of Yregistry, bound to a specific deployed contract.
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  
}