// Code generated - DO NOT EDIT. // This file is a generated binding and any manual changes will be lost. package baseregistrar 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" ) // Reference imports to suppress errors if they are not otherwise used. var ( _ = big.NewInt _ = strings.NewReader _ = ethereum.NotFound _ = bind.Bind _ = common.Big1 _ = types.BloomLookup _ = event.NewSubscription ) // ContractABI is the input ABI used to generate the binding from. const ContractABI = "[{\"constant\":true,\"inputs\":[{\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"from\",\"type\":\"address\"},{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"id\",\"type\":\"uint256\"},{\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"reclaim\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"ens\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"from\",\"type\":\"address\"},{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"transferPeriodEnds\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"resolver\",\"type\":\"address\"}],\"name\":\"setResolver\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"MIGRATION_LOCK_PERIOD\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isOwner\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"available\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"controller\",\"type\":\"address\"}],\"name\":\"addController\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"previousRegistrar\",\"outputs\":[{\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"from\",\"type\":\"address\"},{\"name\":\"to\",\"type\":\"address\"},{\"name\":\"tokenId\",\"type\":\"uint256\"},{\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"GRACE_PERIOD\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"id\",\"type\":\"uint256\"},{\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"renew\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"id\",\"type\":\"uint256\"}],\"name\":\"nameExpires\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"\",\"type\":\"address\"}],\"name\":\"controllers\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"baseNode\",\"outputs\":[{\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"label\",\"type\":\"bytes32\"},{\"name\":\"deed\",\"type\":\"address\"},{\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"acceptRegistrarTransfer\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"controller\",\"type\":\"address\"}],\"name\":\"removeController\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"id\",\"type\":\"uint256\"},{\"name\":\"owner\",\"type\":\"address\"},{\"name\":\"duration\",\"type\":\"uint256\"}],\"name\":\"register\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"_ens\",\"type\":\"address\"},{\"name\":\"_previousRegistrar\",\"type\":\"address\"},{\"name\":\"_baseNode\",\"type\":\"bytes32\"},{\"name\":\"_transferPeriodEnds\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"controller\",\"type\":\"address\"}],\"name\":\"ControllerAdded\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"controller\",\"type\":\"address\"}],\"name\":\"ControllerRemoved\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"expires\",\"type\":\"uint256\"}],\"name\":\"NameMigrated\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"expires\",\"type\":\"uint256\"}],\"name\":\"NameRegistered\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"id\",\"type\":\"uint256\"},{\"indexed\":false,\"name\":\"expires\",\"type\":\"uint256\"}],\"name\":\"NameRenewed\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"}]" // Contract is an auto generated Go binding around an Ethereum contract. type Contract struct { ContractCaller // Read-only binding to the contract ContractTransactor // Write-only binding to the contract ContractFilterer // Log filterer for contract events } // ContractCaller is an auto generated read-only Go binding around an Ethereum contract. type ContractCaller struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // ContractTransactor is an auto generated write-only Go binding around an Ethereum contract. type ContractTransactor struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // ContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events. type ContractFilterer struct { contract *bind.BoundContract // Generic contract wrapper for the low level calls } // ContractSession is an auto generated Go binding around an Ethereum contract, // with pre-set call and transact options. type ContractSession struct { Contract *Contract // Generic contract binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // ContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, // with pre-set call options. type ContractCallerSession struct { Contract *ContractCaller // Generic contract caller binding to set the session for CallOpts bind.CallOpts // Call options to use throughout this session } // ContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, // with pre-set transact options. type ContractTransactorSession struct { Contract *ContractTransactor // Generic contract transactor binding to set the session for TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session } // ContractRaw is an auto generated low-level Go binding around an Ethereum contract. type ContractRaw struct { Contract *Contract // Generic contract binding to access the raw methods on } // ContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. type ContractCallerRaw struct { Contract *ContractCaller // Generic read-only contract binding to access the raw methods on } // ContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. type ContractTransactorRaw struct { Contract *ContractTransactor // Generic write-only contract binding to access the raw methods on } // NewContract creates a new instance of Contract, bound to a specific deployed contract. func NewContract(address common.Address, backend bind.ContractBackend) (*Contract, error) { contract, err := bindContract(address, backend, backend, backend) if err != nil { return nil, err } return &Contract{ContractCaller: ContractCaller{contract: contract}, ContractTransactor: ContractTransactor{contract: contract}, ContractFilterer: ContractFilterer{contract: contract}}, nil } // NewContractCaller creates a new read-only instance of Contract, bound to a specific deployed contract. func NewContractCaller(address common.Address, caller bind.ContractCaller) (*ContractCaller, error) { contract, err := bindContract(address, caller, nil, nil) if err != nil { return nil, err } return &ContractCaller{contract: contract}, nil } // NewContractTransactor creates a new write-only instance of Contract, bound to a specific deployed contract. func NewContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractTransactor, error) { contract, err := bindContract(address, nil, transactor, nil) if err != nil { return nil, err } return &ContractTransactor{contract: contract}, nil } // NewContractFilterer creates a new log filterer instance of Contract, bound to a specific deployed contract. func NewContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractFilterer, error) { contract, err := bindContract(address, nil, nil, filterer) if err != nil { return nil, err } return &ContractFilterer{contract: contract}, nil } // bindContract binds a generic wrapper to an already deployed contract. func bindContract(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { parsed, err := abi.JSON(strings.NewReader(ContractABI)) if err != nil { return nil, err } return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil } // Call invokes the (constant) contract method with params as input values and // sets the output to result. The result type might be a single field for simple // returns, a slice of interfaces for anonymous returns and a struct for named // returns. func (_Contract *ContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _Contract.Contract.ContractCaller.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_Contract *ContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _Contract.Contract.ContractTransactor.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _Contract.Contract.ContractTransactor.contract.Transact(opts, method, params...) } // Call invokes the (constant) contract method with params as input values and // sets the output to result. The result type might be a single field for simple // returns, a slice of interfaces for anonymous returns and a struct for named // returns. func (_Contract *ContractCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { return _Contract.Contract.contract.Call(opts, result, method, params...) } // Transfer initiates a plain transaction to move funds to the contract, calling // its default method if one is available. func (_Contract *ContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { return _Contract.Contract.contract.Transfer(opts) } // Transact invokes the (paid) contract method with params as input values. func (_Contract *ContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { return _Contract.Contract.contract.Transact(opts, method, params...) } // GRACEPERIOD is a free data retrieval call binding the contract method 0xc1a287e2. // // Solidity: function GRACE_PERIOD() view returns(uint256) func (_Contract *ContractCaller) GRACEPERIOD(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "GRACE_PERIOD") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // GRACEPERIOD is a free data retrieval call binding the contract method 0xc1a287e2. // // Solidity: function GRACE_PERIOD() view returns(uint256) func (_Contract *ContractSession) GRACEPERIOD() (*big.Int, error) { return _Contract.Contract.GRACEPERIOD(&_Contract.CallOpts) } // GRACEPERIOD is a free data retrieval call binding the contract method 0xc1a287e2. // // Solidity: function GRACE_PERIOD() view returns(uint256) func (_Contract *ContractCallerSession) GRACEPERIOD() (*big.Int, error) { return _Contract.Contract.GRACEPERIOD(&_Contract.CallOpts) } // MIGRATIONLOCKPERIOD is a free data retrieval call binding the contract method 0x6b1bd1c5. // // Solidity: function MIGRATION_LOCK_PERIOD() view returns(uint256) func (_Contract *ContractCaller) MIGRATIONLOCKPERIOD(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "MIGRATION_LOCK_PERIOD") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // MIGRATIONLOCKPERIOD is a free data retrieval call binding the contract method 0x6b1bd1c5. // // Solidity: function MIGRATION_LOCK_PERIOD() view returns(uint256) func (_Contract *ContractSession) MIGRATIONLOCKPERIOD() (*big.Int, error) { return _Contract.Contract.MIGRATIONLOCKPERIOD(&_Contract.CallOpts) } // MIGRATIONLOCKPERIOD is a free data retrieval call binding the contract method 0x6b1bd1c5. // // Solidity: function MIGRATION_LOCK_PERIOD() view returns(uint256) func (_Contract *ContractCallerSession) MIGRATIONLOCKPERIOD() (*big.Int, error) { return _Contract.Contract.MIGRATIONLOCKPERIOD(&_Contract.CallOpts) } // Available is a free data retrieval call binding the contract method 0x96e494e8. // // Solidity: function available(uint256 id) view returns(bool) func (_Contract *ContractCaller) Available(opts *bind.CallOpts, id *big.Int) (bool, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "available", id) if err != nil { return *new(bool), err } out0 := *abi.ConvertType(out[0], new(bool)).(*bool) return out0, err } // Available is a free data retrieval call binding the contract method 0x96e494e8. // // Solidity: function available(uint256 id) view returns(bool) func (_Contract *ContractSession) Available(id *big.Int) (bool, error) { return _Contract.Contract.Available(&_Contract.CallOpts, id) } // Available is a free data retrieval call binding the contract method 0x96e494e8. // // Solidity: function available(uint256 id) view returns(bool) func (_Contract *ContractCallerSession) Available(id *big.Int) (bool, error) { return _Contract.Contract.Available(&_Contract.CallOpts, id) } // BalanceOf is a free data retrieval call binding the contract method 0x70a08231. // // Solidity: function balanceOf(address owner) view returns(uint256) func (_Contract *ContractCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "balanceOf", owner) if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // BalanceOf is a free data retrieval call binding the contract method 0x70a08231. // // Solidity: function balanceOf(address owner) view returns(uint256) func (_Contract *ContractSession) BalanceOf(owner common.Address) (*big.Int, error) { return _Contract.Contract.BalanceOf(&_Contract.CallOpts, owner) } // BalanceOf is a free data retrieval call binding the contract method 0x70a08231. // // Solidity: function balanceOf(address owner) view returns(uint256) func (_Contract *ContractCallerSession) BalanceOf(owner common.Address) (*big.Int, error) { return _Contract.Contract.BalanceOf(&_Contract.CallOpts, owner) } // BaseNode is a free data retrieval call binding the contract method 0xddf7fcb0. // // Solidity: function baseNode() view returns(bytes32) func (_Contract *ContractCaller) BaseNode(opts *bind.CallOpts) ([32]byte, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "baseNode") if err != nil { return *new([32]byte), err } out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) return out0, err } // BaseNode is a free data retrieval call binding the contract method 0xddf7fcb0. // // Solidity: function baseNode() view returns(bytes32) func (_Contract *ContractSession) BaseNode() ([32]byte, error) { return _Contract.Contract.BaseNode(&_Contract.CallOpts) } // BaseNode is a free data retrieval call binding the contract method 0xddf7fcb0. // // Solidity: function baseNode() view returns(bytes32) func (_Contract *ContractCallerSession) BaseNode() ([32]byte, error) { return _Contract.Contract.BaseNode(&_Contract.CallOpts) } // Controllers is a free data retrieval call binding the contract method 0xda8c229e. // // Solidity: function controllers(address ) view returns(bool) func (_Contract *ContractCaller) Controllers(opts *bind.CallOpts, arg0 common.Address) (bool, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "controllers", arg0) if err != nil { return *new(bool), err } out0 := *abi.ConvertType(out[0], new(bool)).(*bool) return out0, err } // Controllers is a free data retrieval call binding the contract method 0xda8c229e. // // Solidity: function controllers(address ) view returns(bool) func (_Contract *ContractSession) Controllers(arg0 common.Address) (bool, error) { return _Contract.Contract.Controllers(&_Contract.CallOpts, arg0) } // Controllers is a free data retrieval call binding the contract method 0xda8c229e. // // Solidity: function controllers(address ) view returns(bool) func (_Contract *ContractCallerSession) Controllers(arg0 common.Address) (bool, error) { return _Contract.Contract.Controllers(&_Contract.CallOpts, arg0) } // Ens is a free data retrieval call binding the contract method 0x3f15457f. // // Solidity: function ens() view returns(address) func (_Contract *ContractCaller) Ens(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "ens") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Ens is a free data retrieval call binding the contract method 0x3f15457f. // // Solidity: function ens() view returns(address) func (_Contract *ContractSession) Ens() (common.Address, error) { return _Contract.Contract.Ens(&_Contract.CallOpts) } // Ens is a free data retrieval call binding the contract method 0x3f15457f. // // Solidity: function ens() view returns(address) func (_Contract *ContractCallerSession) Ens() (common.Address, error) { return _Contract.Contract.Ens(&_Contract.CallOpts) } // GetApproved is a free data retrieval call binding the contract method 0x081812fc. // // Solidity: function getApproved(uint256 tokenId) view returns(address) func (_Contract *ContractCaller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "getApproved", tokenId) if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // GetApproved is a free data retrieval call binding the contract method 0x081812fc. // // Solidity: function getApproved(uint256 tokenId) view returns(address) func (_Contract *ContractSession) GetApproved(tokenId *big.Int) (common.Address, error) { return _Contract.Contract.GetApproved(&_Contract.CallOpts, tokenId) } // GetApproved is a free data retrieval call binding the contract method 0x081812fc. // // Solidity: function getApproved(uint256 tokenId) view returns(address) func (_Contract *ContractCallerSession) GetApproved(tokenId *big.Int) (common.Address, error) { return _Contract.Contract.GetApproved(&_Contract.CallOpts, tokenId) } // IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5. // // Solidity: function isApprovedForAll(address owner, address operator) view returns(bool) func (_Contract *ContractCaller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "isApprovedForAll", owner, operator) if err != nil { return *new(bool), err } out0 := *abi.ConvertType(out[0], new(bool)).(*bool) return out0, err } // IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5. // // Solidity: function isApprovedForAll(address owner, address operator) view returns(bool) func (_Contract *ContractSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error) { return _Contract.Contract.IsApprovedForAll(&_Contract.CallOpts, owner, operator) } // IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5. // // Solidity: function isApprovedForAll(address owner, address operator) view returns(bool) func (_Contract *ContractCallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error) { return _Contract.Contract.IsApprovedForAll(&_Contract.CallOpts, owner, operator) } // IsOwner is a free data retrieval call binding the contract method 0x8f32d59b. // // Solidity: function isOwner() view returns(bool) func (_Contract *ContractCaller) IsOwner(opts *bind.CallOpts) (bool, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "isOwner") if err != nil { return *new(bool), err } out0 := *abi.ConvertType(out[0], new(bool)).(*bool) return out0, err } // IsOwner is a free data retrieval call binding the contract method 0x8f32d59b. // // Solidity: function isOwner() view returns(bool) func (_Contract *ContractSession) IsOwner() (bool, error) { return _Contract.Contract.IsOwner(&_Contract.CallOpts) } // IsOwner is a free data retrieval call binding the contract method 0x8f32d59b. // // Solidity: function isOwner() view returns(bool) func (_Contract *ContractCallerSession) IsOwner() (bool, error) { return _Contract.Contract.IsOwner(&_Contract.CallOpts) } // NameExpires is a free data retrieval call binding the contract method 0xd6e4fa86. // // Solidity: function nameExpires(uint256 id) view returns(uint256) func (_Contract *ContractCaller) NameExpires(opts *bind.CallOpts, id *big.Int) (*big.Int, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "nameExpires", id) if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // NameExpires is a free data retrieval call binding the contract method 0xd6e4fa86. // // Solidity: function nameExpires(uint256 id) view returns(uint256) func (_Contract *ContractSession) NameExpires(id *big.Int) (*big.Int, error) { return _Contract.Contract.NameExpires(&_Contract.CallOpts, id) } // NameExpires is a free data retrieval call binding the contract method 0xd6e4fa86. // // Solidity: function nameExpires(uint256 id) view returns(uint256) func (_Contract *ContractCallerSession) NameExpires(id *big.Int) (*big.Int, error) { return _Contract.Contract.NameExpires(&_Contract.CallOpts, id) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_Contract *ContractCaller) Owner(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "owner") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_Contract *ContractSession) Owner() (common.Address, error) { return _Contract.Contract.Owner(&_Contract.CallOpts) } // Owner is a free data retrieval call binding the contract method 0x8da5cb5b. // // Solidity: function owner() view returns(address) func (_Contract *ContractCallerSession) Owner() (common.Address, error) { return _Contract.Contract.Owner(&_Contract.CallOpts) } // OwnerOf is a free data retrieval call binding the contract method 0x6352211e. // // Solidity: function ownerOf(uint256 tokenId) view returns(address) func (_Contract *ContractCaller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "ownerOf", tokenId) if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // OwnerOf is a free data retrieval call binding the contract method 0x6352211e. // // Solidity: function ownerOf(uint256 tokenId) view returns(address) func (_Contract *ContractSession) OwnerOf(tokenId *big.Int) (common.Address, error) { return _Contract.Contract.OwnerOf(&_Contract.CallOpts, tokenId) } // OwnerOf is a free data retrieval call binding the contract method 0x6352211e. // // Solidity: function ownerOf(uint256 tokenId) view returns(address) func (_Contract *ContractCallerSession) OwnerOf(tokenId *big.Int) (common.Address, error) { return _Contract.Contract.OwnerOf(&_Contract.CallOpts, tokenId) } // PreviousRegistrar is a free data retrieval call binding the contract method 0xab14ec59. // // Solidity: function previousRegistrar() view returns(address) func (_Contract *ContractCaller) PreviousRegistrar(opts *bind.CallOpts) (common.Address, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "previousRegistrar") if err != nil { return *new(common.Address), err } out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) return out0, err } // PreviousRegistrar is a free data retrieval call binding the contract method 0xab14ec59. // // Solidity: function previousRegistrar() view returns(address) func (_Contract *ContractSession) PreviousRegistrar() (common.Address, error) { return _Contract.Contract.PreviousRegistrar(&_Contract.CallOpts) } // PreviousRegistrar is a free data retrieval call binding the contract method 0xab14ec59. // // Solidity: function previousRegistrar() view returns(address) func (_Contract *ContractCallerSession) PreviousRegistrar() (common.Address, error) { return _Contract.Contract.PreviousRegistrar(&_Contract.CallOpts) } // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. // // Solidity: function supportsInterface(bytes4 interfaceID) view returns(bool) func (_Contract *ContractCaller) SupportsInterface(opts *bind.CallOpts, interfaceID [4]byte) (bool, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "supportsInterface", interfaceID) if err != nil { return *new(bool), err } out0 := *abi.ConvertType(out[0], new(bool)).(*bool) return out0, err } // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. // // Solidity: function supportsInterface(bytes4 interfaceID) view returns(bool) func (_Contract *ContractSession) SupportsInterface(interfaceID [4]byte) (bool, error) { return _Contract.Contract.SupportsInterface(&_Contract.CallOpts, interfaceID) } // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. // // Solidity: function supportsInterface(bytes4 interfaceID) view returns(bool) func (_Contract *ContractCallerSession) SupportsInterface(interfaceID [4]byte) (bool, error) { return _Contract.Contract.SupportsInterface(&_Contract.CallOpts, interfaceID) } // TransferPeriodEnds is a free data retrieval call binding the contract method 0x4ae05da7. // // Solidity: function transferPeriodEnds() view returns(uint256) func (_Contract *ContractCaller) TransferPeriodEnds(opts *bind.CallOpts) (*big.Int, error) { var out []interface{} err := _Contract.contract.Call(opts, &out, "transferPeriodEnds") if err != nil { return *new(*big.Int), err } out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) return out0, err } // TransferPeriodEnds is a free data retrieval call binding the contract method 0x4ae05da7. // // Solidity: function transferPeriodEnds() view returns(uint256) func (_Contract *ContractSession) TransferPeriodEnds() (*big.Int, error) { return _Contract.Contract.TransferPeriodEnds(&_Contract.CallOpts) } // TransferPeriodEnds is a free data retrieval call binding the contract method 0x4ae05da7. // // Solidity: function transferPeriodEnds() view returns(uint256) func (_Contract *ContractCallerSession) TransferPeriodEnds() (*big.Int, error) { return _Contract.Contract.TransferPeriodEnds(&_Contract.CallOpts) } // AcceptRegistrarTransfer is a paid mutator transaction binding the contract method 0xea9e107a. // // Solidity: function acceptRegistrarTransfer(bytes32 label, address deed, uint256 ) returns() func (_Contract *ContractTransactor) AcceptRegistrarTransfer(opts *bind.TransactOpts, label [32]byte, deed common.Address, arg2 *big.Int) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "acceptRegistrarTransfer", label, deed, arg2) } // AcceptRegistrarTransfer is a paid mutator transaction binding the contract method 0xea9e107a. // // Solidity: function acceptRegistrarTransfer(bytes32 label, address deed, uint256 ) returns() func (_Contract *ContractSession) AcceptRegistrarTransfer(label [32]byte, deed common.Address, arg2 *big.Int) (*types.Transaction, error) { return _Contract.Contract.AcceptRegistrarTransfer(&_Contract.TransactOpts, label, deed, arg2) } // AcceptRegistrarTransfer is a paid mutator transaction binding the contract method 0xea9e107a. // // Solidity: function acceptRegistrarTransfer(bytes32 label, address deed, uint256 ) returns() func (_Contract *ContractTransactorSession) AcceptRegistrarTransfer(label [32]byte, deed common.Address, arg2 *big.Int) (*types.Transaction, error) { return _Contract.Contract.AcceptRegistrarTransfer(&_Contract.TransactOpts, label, deed, arg2) } // AddController is a paid mutator transaction binding the contract method 0xa7fc7a07. // // Solidity: function addController(address controller) returns() func (_Contract *ContractTransactor) AddController(opts *bind.TransactOpts, controller common.Address) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "addController", controller) } // AddController is a paid mutator transaction binding the contract method 0xa7fc7a07. // // Solidity: function addController(address controller) returns() func (_Contract *ContractSession) AddController(controller common.Address) (*types.Transaction, error) { return _Contract.Contract.AddController(&_Contract.TransactOpts, controller) } // AddController is a paid mutator transaction binding the contract method 0xa7fc7a07. // // Solidity: function addController(address controller) returns() func (_Contract *ContractTransactorSession) AddController(controller common.Address) (*types.Transaction, error) { return _Contract.Contract.AddController(&_Contract.TransactOpts, controller) } // Approve is a paid mutator transaction binding the contract method 0x095ea7b3. // // Solidity: function approve(address to, uint256 tokenId) returns() func (_Contract *ContractTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "approve", to, tokenId) } // Approve is a paid mutator transaction binding the contract method 0x095ea7b3. // // Solidity: function approve(address to, uint256 tokenId) returns() func (_Contract *ContractSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) { return _Contract.Contract.Approve(&_Contract.TransactOpts, to, tokenId) } // Approve is a paid mutator transaction binding the contract method 0x095ea7b3. // // Solidity: function approve(address to, uint256 tokenId) returns() func (_Contract *ContractTransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) { return _Contract.Contract.Approve(&_Contract.TransactOpts, to, tokenId) } // Reclaim is a paid mutator transaction binding the contract method 0x28ed4f6c. // // Solidity: function reclaim(uint256 id, address owner) returns() func (_Contract *ContractTransactor) Reclaim(opts *bind.TransactOpts, id *big.Int, owner common.Address) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "reclaim", id, owner) } // Reclaim is a paid mutator transaction binding the contract method 0x28ed4f6c. // // Solidity: function reclaim(uint256 id, address owner) returns() func (_Contract *ContractSession) Reclaim(id *big.Int, owner common.Address) (*types.Transaction, error) { return _Contract.Contract.Reclaim(&_Contract.TransactOpts, id, owner) } // Reclaim is a paid mutator transaction binding the contract method 0x28ed4f6c. // // Solidity: function reclaim(uint256 id, address owner) returns() func (_Contract *ContractTransactorSession) Reclaim(id *big.Int, owner common.Address) (*types.Transaction, error) { return _Contract.Contract.Reclaim(&_Contract.TransactOpts, id, owner) } // Register is a paid mutator transaction binding the contract method 0xfca247ac. // // Solidity: function register(uint256 id, address owner, uint256 duration) returns(uint256) func (_Contract *ContractTransactor) Register(opts *bind.TransactOpts, id *big.Int, owner common.Address, duration *big.Int) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "register", id, owner, duration) } // Register is a paid mutator transaction binding the contract method 0xfca247ac. // // Solidity: function register(uint256 id, address owner, uint256 duration) returns(uint256) func (_Contract *ContractSession) Register(id *big.Int, owner common.Address, duration *big.Int) (*types.Transaction, error) { return _Contract.Contract.Register(&_Contract.TransactOpts, id, owner, duration) } // Register is a paid mutator transaction binding the contract method 0xfca247ac. // // Solidity: function register(uint256 id, address owner, uint256 duration) returns(uint256) func (_Contract *ContractTransactorSession) Register(id *big.Int, owner common.Address, duration *big.Int) (*types.Transaction, error) { return _Contract.Contract.Register(&_Contract.TransactOpts, id, owner, duration) } // RemoveController is a paid mutator transaction binding the contract method 0xf6a74ed7. // // Solidity: function removeController(address controller) returns() func (_Contract *ContractTransactor) RemoveController(opts *bind.TransactOpts, controller common.Address) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "removeController", controller) } // RemoveController is a paid mutator transaction binding the contract method 0xf6a74ed7. // // Solidity: function removeController(address controller) returns() func (_Contract *ContractSession) RemoveController(controller common.Address) (*types.Transaction, error) { return _Contract.Contract.RemoveController(&_Contract.TransactOpts, controller) } // RemoveController is a paid mutator transaction binding the contract method 0xf6a74ed7. // // Solidity: function removeController(address controller) returns() func (_Contract *ContractTransactorSession) RemoveController(controller common.Address) (*types.Transaction, error) { return _Contract.Contract.RemoveController(&_Contract.TransactOpts, controller) } // Renew is a paid mutator transaction binding the contract method 0xc475abff. // // Solidity: function renew(uint256 id, uint256 duration) returns(uint256) func (_Contract *ContractTransactor) Renew(opts *bind.TransactOpts, id *big.Int, duration *big.Int) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "renew", id, duration) } // Renew is a paid mutator transaction binding the contract method 0xc475abff. // // Solidity: function renew(uint256 id, uint256 duration) returns(uint256) func (_Contract *ContractSession) Renew(id *big.Int, duration *big.Int) (*types.Transaction, error) { return _Contract.Contract.Renew(&_Contract.TransactOpts, id, duration) } // Renew is a paid mutator transaction binding the contract method 0xc475abff. // // Solidity: function renew(uint256 id, uint256 duration) returns(uint256) func (_Contract *ContractTransactorSession) Renew(id *big.Int, duration *big.Int) (*types.Transaction, error) { return _Contract.Contract.Renew(&_Contract.TransactOpts, id, duration) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_Contract *ContractTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "renounceOwnership") } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_Contract *ContractSession) RenounceOwnership() (*types.Transaction, error) { return _Contract.Contract.RenounceOwnership(&_Contract.TransactOpts) } // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6. // // Solidity: function renounceOwnership() returns() func (_Contract *ContractTransactorSession) RenounceOwnership() (*types.Transaction, error) { return _Contract.Contract.RenounceOwnership(&_Contract.TransactOpts) } // SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e. // // Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns() func (_Contract *ContractTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "safeTransferFrom", from, to, tokenId) } // SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e. // // Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns() func (_Contract *ContractSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { return _Contract.Contract.SafeTransferFrom(&_Contract.TransactOpts, from, to, tokenId) } // SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e. // // Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns() func (_Contract *ContractTransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { return _Contract.Contract.SafeTransferFrom(&_Contract.TransactOpts, from, to, tokenId) } // SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde. // // Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) returns() func (_Contract *ContractTransactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "safeTransferFrom0", from, to, tokenId, _data) } // SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde. // // Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) returns() func (_Contract *ContractSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error) { return _Contract.Contract.SafeTransferFrom0(&_Contract.TransactOpts, from, to, tokenId, _data) } // SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde. // // Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) returns() func (_Contract *ContractTransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error) { return _Contract.Contract.SafeTransferFrom0(&_Contract.TransactOpts, from, to, tokenId, _data) } // SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465. // // Solidity: function setApprovalForAll(address to, bool approved) returns() func (_Contract *ContractTransactor) SetApprovalForAll(opts *bind.TransactOpts, to common.Address, approved bool) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "setApprovalForAll", to, approved) } // SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465. // // Solidity: function setApprovalForAll(address to, bool approved) returns() func (_Contract *ContractSession) SetApprovalForAll(to common.Address, approved bool) (*types.Transaction, error) { return _Contract.Contract.SetApprovalForAll(&_Contract.TransactOpts, to, approved) } // SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465. // // Solidity: function setApprovalForAll(address to, bool approved) returns() func (_Contract *ContractTransactorSession) SetApprovalForAll(to common.Address, approved bool) (*types.Transaction, error) { return _Contract.Contract.SetApprovalForAll(&_Contract.TransactOpts, to, approved) } // SetResolver is a paid mutator transaction binding the contract method 0x4e543b26. // // Solidity: function setResolver(address resolver) returns() func (_Contract *ContractTransactor) SetResolver(opts *bind.TransactOpts, resolver common.Address) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "setResolver", resolver) } // SetResolver is a paid mutator transaction binding the contract method 0x4e543b26. // // Solidity: function setResolver(address resolver) returns() func (_Contract *ContractSession) SetResolver(resolver common.Address) (*types.Transaction, error) { return _Contract.Contract.SetResolver(&_Contract.TransactOpts, resolver) } // SetResolver is a paid mutator transaction binding the contract method 0x4e543b26. // // Solidity: function setResolver(address resolver) returns() func (_Contract *ContractTransactorSession) SetResolver(resolver common.Address) (*types.Transaction, error) { return _Contract.Contract.SetResolver(&_Contract.TransactOpts, resolver) } // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. // // Solidity: function transferFrom(address from, address to, uint256 tokenId) returns() func (_Contract *ContractTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "transferFrom", from, to, tokenId) } // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. // // Solidity: function transferFrom(address from, address to, uint256 tokenId) returns() func (_Contract *ContractSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { return _Contract.Contract.TransferFrom(&_Contract.TransactOpts, from, to, tokenId) } // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. // // Solidity: function transferFrom(address from, address to, uint256 tokenId) returns() func (_Contract *ContractTransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { return _Contract.Contract.TransferFrom(&_Contract.TransactOpts, from, to, tokenId) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_Contract *ContractTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) { return _Contract.contract.Transact(opts, "transferOwnership", newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_Contract *ContractSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { return _Contract.Contract.TransferOwnership(&_Contract.TransactOpts, newOwner) } // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b. // // Solidity: function transferOwnership(address newOwner) returns() func (_Contract *ContractTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) { return _Contract.Contract.TransferOwnership(&_Contract.TransactOpts, newOwner) } // ContractApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Contract contract. type ContractApprovalIterator struct { Event *ContractApproval // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. func (it *ContractApprovalIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(ContractApproval) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(ContractApproval) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *ContractApprovalIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *ContractApprovalIterator) Close() error { it.sub.Unsubscribe() return nil } // ContractApproval represents a Approval event raised by the Contract contract. type ContractApproval struct { Owner common.Address Approved common.Address TokenId *big.Int Raw types.Log // Blockchain specific contextual infos } // FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. // // Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId) func (_Contract *ContractFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ContractApprovalIterator, error) { var ownerRule []interface{} for _, ownerItem := range owner { ownerRule = append(ownerRule, ownerItem) } var approvedRule []interface{} for _, approvedItem := range approved { approvedRule = append(approvedRule, approvedItem) } var tokenIdRule []interface{} for _, tokenIdItem := range tokenId { tokenIdRule = append(tokenIdRule, tokenIdItem) } logs, sub, err := _Contract.contract.FilterLogs(opts, "Approval", ownerRule, approvedRule, tokenIdRule) if err != nil { return nil, err } return &ContractApprovalIterator{contract: _Contract.contract, event: "Approval", logs: logs, sub: sub}, nil } // WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. // // Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId) func (_Contract *ContractFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ContractApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) { var ownerRule []interface{} for _, ownerItem := range owner { ownerRule = append(ownerRule, ownerItem) } var approvedRule []interface{} for _, approvedItem := range approved { approvedRule = append(approvedRule, approvedItem) } var tokenIdRule []interface{} for _, tokenIdItem := range tokenId { tokenIdRule = append(tokenIdRule, tokenIdItem) } logs, sub, err := _Contract.contract.WatchLogs(opts, "Approval", ownerRule, approvedRule, tokenIdRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(ContractApproval) if err := _Contract.contract.UnpackLog(event, "Approval", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. // // Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId) func (_Contract *ContractFilterer) ParseApproval(log types.Log) (*ContractApproval, error) { event := new(ContractApproval) if err := _Contract.contract.UnpackLog(event, "Approval", log); err != nil { return nil, err } return event, nil } // ContractApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the Contract contract. type ContractApprovalForAllIterator struct { Event *ContractApprovalForAll // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. func (it *ContractApprovalForAllIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(ContractApprovalForAll) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(ContractApprovalForAll) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *ContractApprovalForAllIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *ContractApprovalForAllIterator) Close() error { it.sub.Unsubscribe() return nil } // ContractApprovalForAll represents a ApprovalForAll event raised by the Contract contract. type ContractApprovalForAll struct { Owner common.Address Operator common.Address Approved bool Raw types.Log // Blockchain specific contextual infos } // FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31. // // Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved) func (_Contract *ContractFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*ContractApprovalForAllIterator, error) { var ownerRule []interface{} for _, ownerItem := range owner { ownerRule = append(ownerRule, ownerItem) } var operatorRule []interface{} for _, operatorItem := range operator { operatorRule = append(operatorRule, operatorItem) } logs, sub, err := _Contract.contract.FilterLogs(opts, "ApprovalForAll", ownerRule, operatorRule) if err != nil { return nil, err } return &ContractApprovalForAllIterator{contract: _Contract.contract, event: "ApprovalForAll", logs: logs, sub: sub}, nil } // WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31. // // Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved) func (_Contract *ContractFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *ContractApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error) { var ownerRule []interface{} for _, ownerItem := range owner { ownerRule = append(ownerRule, ownerItem) } var operatorRule []interface{} for _, operatorItem := range operator { operatorRule = append(operatorRule, operatorItem) } logs, sub, err := _Contract.contract.WatchLogs(opts, "ApprovalForAll", ownerRule, operatorRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(ContractApprovalForAll) if err := _Contract.contract.UnpackLog(event, "ApprovalForAll", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31. // // Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved) func (_Contract *ContractFilterer) ParseApprovalForAll(log types.Log) (*ContractApprovalForAll, error) { event := new(ContractApprovalForAll) if err := _Contract.contract.UnpackLog(event, "ApprovalForAll", log); err != nil { return nil, err } return event, nil } // ContractControllerAddedIterator is returned from FilterControllerAdded and is used to iterate over the raw logs and unpacked data for ControllerAdded events raised by the Contract contract. type ContractControllerAddedIterator struct { Event *ContractControllerAdded // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. func (it *ContractControllerAddedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(ContractControllerAdded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(ContractControllerAdded) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *ContractControllerAddedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *ContractControllerAddedIterator) Close() error { it.sub.Unsubscribe() return nil } // ContractControllerAdded represents a ControllerAdded event raised by the Contract contract. type ContractControllerAdded struct { Controller common.Address Raw types.Log // Blockchain specific contextual infos } // FilterControllerAdded is a free log retrieval operation binding the contract event 0x0a8bb31534c0ed46f380cb867bd5c803a189ced9a764e30b3a4991a9901d7474. // // Solidity: event ControllerAdded(address indexed controller) func (_Contract *ContractFilterer) FilterControllerAdded(opts *bind.FilterOpts, controller []common.Address) (*ContractControllerAddedIterator, error) { var controllerRule []interface{} for _, controllerItem := range controller { controllerRule = append(controllerRule, controllerItem) } logs, sub, err := _Contract.contract.FilterLogs(opts, "ControllerAdded", controllerRule) if err != nil { return nil, err } return &ContractControllerAddedIterator{contract: _Contract.contract, event: "ControllerAdded", logs: logs, sub: sub}, nil } // WatchControllerAdded is a free log subscription operation binding the contract event 0x0a8bb31534c0ed46f380cb867bd5c803a189ced9a764e30b3a4991a9901d7474. // // Solidity: event ControllerAdded(address indexed controller) func (_Contract *ContractFilterer) WatchControllerAdded(opts *bind.WatchOpts, sink chan<- *ContractControllerAdded, controller []common.Address) (event.Subscription, error) { var controllerRule []interface{} for _, controllerItem := range controller { controllerRule = append(controllerRule, controllerItem) } logs, sub, err := _Contract.contract.WatchLogs(opts, "ControllerAdded", controllerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(ContractControllerAdded) if err := _Contract.contract.UnpackLog(event, "ControllerAdded", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseControllerAdded is a log parse operation binding the contract event 0x0a8bb31534c0ed46f380cb867bd5c803a189ced9a764e30b3a4991a9901d7474. // // Solidity: event ControllerAdded(address indexed controller) func (_Contract *ContractFilterer) ParseControllerAdded(log types.Log) (*ContractControllerAdded, error) { event := new(ContractControllerAdded) if err := _Contract.contract.UnpackLog(event, "ControllerAdded", log); err != nil { return nil, err } return event, nil } // ContractControllerRemovedIterator is returned from FilterControllerRemoved and is used to iterate over the raw logs and unpacked data for ControllerRemoved events raised by the Contract contract. type ContractControllerRemovedIterator struct { Event *ContractControllerRemoved // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. func (it *ContractControllerRemovedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(ContractControllerRemoved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(ContractControllerRemoved) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *ContractControllerRemovedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *ContractControllerRemovedIterator) Close() error { it.sub.Unsubscribe() return nil } // ContractControllerRemoved represents a ControllerRemoved event raised by the Contract contract. type ContractControllerRemoved struct { Controller common.Address Raw types.Log // Blockchain specific contextual infos } // FilterControllerRemoved is a free log retrieval operation binding the contract event 0x33d83959be2573f5453b12eb9d43b3499bc57d96bd2f067ba44803c859e81113. // // Solidity: event ControllerRemoved(address indexed controller) func (_Contract *ContractFilterer) FilterControllerRemoved(opts *bind.FilterOpts, controller []common.Address) (*ContractControllerRemovedIterator, error) { var controllerRule []interface{} for _, controllerItem := range controller { controllerRule = append(controllerRule, controllerItem) } logs, sub, err := _Contract.contract.FilterLogs(opts, "ControllerRemoved", controllerRule) if err != nil { return nil, err } return &ContractControllerRemovedIterator{contract: _Contract.contract, event: "ControllerRemoved", logs: logs, sub: sub}, nil } // WatchControllerRemoved is a free log subscription operation binding the contract event 0x33d83959be2573f5453b12eb9d43b3499bc57d96bd2f067ba44803c859e81113. // // Solidity: event ControllerRemoved(address indexed controller) func (_Contract *ContractFilterer) WatchControllerRemoved(opts *bind.WatchOpts, sink chan<- *ContractControllerRemoved, controller []common.Address) (event.Subscription, error) { var controllerRule []interface{} for _, controllerItem := range controller { controllerRule = append(controllerRule, controllerItem) } logs, sub, err := _Contract.contract.WatchLogs(opts, "ControllerRemoved", controllerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(ContractControllerRemoved) if err := _Contract.contract.UnpackLog(event, "ControllerRemoved", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseControllerRemoved is a log parse operation binding the contract event 0x33d83959be2573f5453b12eb9d43b3499bc57d96bd2f067ba44803c859e81113. // // Solidity: event ControllerRemoved(address indexed controller) func (_Contract *ContractFilterer) ParseControllerRemoved(log types.Log) (*ContractControllerRemoved, error) { event := new(ContractControllerRemoved) if err := _Contract.contract.UnpackLog(event, "ControllerRemoved", log); err != nil { return nil, err } return event, nil } // ContractNameMigratedIterator is returned from FilterNameMigrated and is used to iterate over the raw logs and unpacked data for NameMigrated events raised by the Contract contract. type ContractNameMigratedIterator struct { Event *ContractNameMigrated // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. func (it *ContractNameMigratedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(ContractNameMigrated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(ContractNameMigrated) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *ContractNameMigratedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *ContractNameMigratedIterator) Close() error { it.sub.Unsubscribe() return nil } // ContractNameMigrated represents a NameMigrated event raised by the Contract contract. type ContractNameMigrated struct { Id *big.Int Owner common.Address Expires *big.Int Raw types.Log // Blockchain specific contextual infos } // FilterNameMigrated is a free log retrieval operation binding the contract event 0xea3d7e1195a15d2ddcd859b01abd4c6b960fa9f9264e499a70a90c7f0c64b717. // // Solidity: event NameMigrated(uint256 indexed id, address indexed owner, uint256 expires) func (_Contract *ContractFilterer) FilterNameMigrated(opts *bind.FilterOpts, id []*big.Int, owner []common.Address) (*ContractNameMigratedIterator, error) { var idRule []interface{} for _, idItem := range id { idRule = append(idRule, idItem) } var ownerRule []interface{} for _, ownerItem := range owner { ownerRule = append(ownerRule, ownerItem) } logs, sub, err := _Contract.contract.FilterLogs(opts, "NameMigrated", idRule, ownerRule) if err != nil { return nil, err } return &ContractNameMigratedIterator{contract: _Contract.contract, event: "NameMigrated", logs: logs, sub: sub}, nil } // WatchNameMigrated is a free log subscription operation binding the contract event 0xea3d7e1195a15d2ddcd859b01abd4c6b960fa9f9264e499a70a90c7f0c64b717. // // Solidity: event NameMigrated(uint256 indexed id, address indexed owner, uint256 expires) func (_Contract *ContractFilterer) WatchNameMigrated(opts *bind.WatchOpts, sink chan<- *ContractNameMigrated, id []*big.Int, owner []common.Address) (event.Subscription, error) { var idRule []interface{} for _, idItem := range id { idRule = append(idRule, idItem) } var ownerRule []interface{} for _, ownerItem := range owner { ownerRule = append(ownerRule, ownerItem) } logs, sub, err := _Contract.contract.WatchLogs(opts, "NameMigrated", idRule, ownerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(ContractNameMigrated) if err := _Contract.contract.UnpackLog(event, "NameMigrated", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseNameMigrated is a log parse operation binding the contract event 0xea3d7e1195a15d2ddcd859b01abd4c6b960fa9f9264e499a70a90c7f0c64b717. // // Solidity: event NameMigrated(uint256 indexed id, address indexed owner, uint256 expires) func (_Contract *ContractFilterer) ParseNameMigrated(log types.Log) (*ContractNameMigrated, error) { event := new(ContractNameMigrated) if err := _Contract.contract.UnpackLog(event, "NameMigrated", log); err != nil { return nil, err } return event, nil } // ContractNameRegisteredIterator is returned from FilterNameRegistered and is used to iterate over the raw logs and unpacked data for NameRegistered events raised by the Contract contract. type ContractNameRegisteredIterator struct { Event *ContractNameRegistered // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. func (it *ContractNameRegisteredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(ContractNameRegistered) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(ContractNameRegistered) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *ContractNameRegisteredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *ContractNameRegisteredIterator) Close() error { it.sub.Unsubscribe() return nil } // ContractNameRegistered represents a NameRegistered event raised by the Contract contract. type ContractNameRegistered struct { Id *big.Int Owner common.Address Expires *big.Int Raw types.Log // Blockchain specific contextual infos } // FilterNameRegistered is a free log retrieval operation binding the contract event 0xb3d987963d01b2f68493b4bdb130988f157ea43070d4ad840fee0466ed9370d9. // // Solidity: event NameRegistered(uint256 indexed id, address indexed owner, uint256 expires) func (_Contract *ContractFilterer) FilterNameRegistered(opts *bind.FilterOpts, id []*big.Int, owner []common.Address) (*ContractNameRegisteredIterator, error) { var idRule []interface{} for _, idItem := range id { idRule = append(idRule, idItem) } var ownerRule []interface{} for _, ownerItem := range owner { ownerRule = append(ownerRule, ownerItem) } logs, sub, err := _Contract.contract.FilterLogs(opts, "NameRegistered", idRule, ownerRule) if err != nil { return nil, err } return &ContractNameRegisteredIterator{contract: _Contract.contract, event: "NameRegistered", logs: logs, sub: sub}, nil } // WatchNameRegistered is a free log subscription operation binding the contract event 0xb3d987963d01b2f68493b4bdb130988f157ea43070d4ad840fee0466ed9370d9. // // Solidity: event NameRegistered(uint256 indexed id, address indexed owner, uint256 expires) func (_Contract *ContractFilterer) WatchNameRegistered(opts *bind.WatchOpts, sink chan<- *ContractNameRegistered, id []*big.Int, owner []common.Address) (event.Subscription, error) { var idRule []interface{} for _, idItem := range id { idRule = append(idRule, idItem) } var ownerRule []interface{} for _, ownerItem := range owner { ownerRule = append(ownerRule, ownerItem) } logs, sub, err := _Contract.contract.WatchLogs(opts, "NameRegistered", idRule, ownerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(ContractNameRegistered) if err := _Contract.contract.UnpackLog(event, "NameRegistered", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseNameRegistered is a log parse operation binding the contract event 0xb3d987963d01b2f68493b4bdb130988f157ea43070d4ad840fee0466ed9370d9. // // Solidity: event NameRegistered(uint256 indexed id, address indexed owner, uint256 expires) func (_Contract *ContractFilterer) ParseNameRegistered(log types.Log) (*ContractNameRegistered, error) { event := new(ContractNameRegistered) if err := _Contract.contract.UnpackLog(event, "NameRegistered", log); err != nil { return nil, err } return event, nil } // ContractNameRenewedIterator is returned from FilterNameRenewed and is used to iterate over the raw logs and unpacked data for NameRenewed events raised by the Contract contract. type ContractNameRenewedIterator struct { Event *ContractNameRenewed // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. func (it *ContractNameRenewedIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(ContractNameRenewed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(ContractNameRenewed) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *ContractNameRenewedIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *ContractNameRenewedIterator) Close() error { it.sub.Unsubscribe() return nil } // ContractNameRenewed represents a NameRenewed event raised by the Contract contract. type ContractNameRenewed struct { Id *big.Int Expires *big.Int Raw types.Log // Blockchain specific contextual infos } // FilterNameRenewed is a free log retrieval operation binding the contract event 0x9b87a00e30f1ac65d898f070f8a3488fe60517182d0a2098e1b4b93a54aa9bd6. // // Solidity: event NameRenewed(uint256 indexed id, uint256 expires) func (_Contract *ContractFilterer) FilterNameRenewed(opts *bind.FilterOpts, id []*big.Int) (*ContractNameRenewedIterator, error) { var idRule []interface{} for _, idItem := range id { idRule = append(idRule, idItem) } logs, sub, err := _Contract.contract.FilterLogs(opts, "NameRenewed", idRule) if err != nil { return nil, err } return &ContractNameRenewedIterator{contract: _Contract.contract, event: "NameRenewed", logs: logs, sub: sub}, nil } // WatchNameRenewed is a free log subscription operation binding the contract event 0x9b87a00e30f1ac65d898f070f8a3488fe60517182d0a2098e1b4b93a54aa9bd6. // // Solidity: event NameRenewed(uint256 indexed id, uint256 expires) func (_Contract *ContractFilterer) WatchNameRenewed(opts *bind.WatchOpts, sink chan<- *ContractNameRenewed, id []*big.Int) (event.Subscription, error) { var idRule []interface{} for _, idItem := range id { idRule = append(idRule, idItem) } logs, sub, err := _Contract.contract.WatchLogs(opts, "NameRenewed", idRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(ContractNameRenewed) if err := _Contract.contract.UnpackLog(event, "NameRenewed", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseNameRenewed is a log parse operation binding the contract event 0x9b87a00e30f1ac65d898f070f8a3488fe60517182d0a2098e1b4b93a54aa9bd6. // // Solidity: event NameRenewed(uint256 indexed id, uint256 expires) func (_Contract *ContractFilterer) ParseNameRenewed(log types.Log) (*ContractNameRenewed, error) { event := new(ContractNameRenewed) if err := _Contract.contract.UnpackLog(event, "NameRenewed", log); err != nil { return nil, err } return event, nil } // ContractOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Contract contract. type ContractOwnershipTransferredIterator struct { Event *ContractOwnershipTransferred // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. func (it *ContractOwnershipTransferredIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(ContractOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(ContractOwnershipTransferred) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *ContractOwnershipTransferredIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *ContractOwnershipTransferredIterator) Close() error { it.sub.Unsubscribe() return nil } // ContractOwnershipTransferred represents a OwnershipTransferred event raised by the Contract contract. type ContractOwnershipTransferred struct { PreviousOwner common.Address NewOwner common.Address Raw types.Log // Blockchain specific contextual infos } // FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_Contract *ContractFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*ContractOwnershipTransferredIterator, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _Contract.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return &ContractOwnershipTransferredIterator{contract: _Contract.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil } // WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_Contract *ContractFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *ContractOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) { var previousOwnerRule []interface{} for _, previousOwnerItem := range previousOwner { previousOwnerRule = append(previousOwnerRule, previousOwnerItem) } var newOwnerRule []interface{} for _, newOwnerItem := range newOwner { newOwnerRule = append(newOwnerRule, newOwnerItem) } logs, sub, err := _Contract.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(ContractOwnershipTransferred) if err := _Contract.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0. // // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner) func (_Contract *ContractFilterer) ParseOwnershipTransferred(log types.Log) (*ContractOwnershipTransferred, error) { event := new(ContractOwnershipTransferred) if err := _Contract.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil { return nil, err } return event, nil } // ContractTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Contract contract. type ContractTransferIterator struct { Event *ContractTransfer // Event containing the contract specifics and raw log contract *bind.BoundContract // Generic contract to use for unpacking event data event string // Event name to use for unpacking event data logs chan types.Log // Log channel receiving the found contract events sub ethereum.Subscription // Subscription for errors, completion and termination done bool // Whether the subscription completed delivering logs fail error // Occurred error to stop iteration } // Next advances the iterator to the subsequent event, returning whether there // are any more events found. In case of a retrieval or parsing error, false is // returned and Error() can be queried for the exact failure. func (it *ContractTransferIterator) Next() bool { // If the iterator failed, stop iterating if it.fail != nil { return false } // If the iterator completed, deliver directly whatever's available if it.done { select { case log := <-it.logs: it.Event = new(ContractTransfer) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true default: return false } } // Iterator still in progress, wait for either a data or an error event select { case log := <-it.logs: it.Event = new(ContractTransfer) if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { it.fail = err return false } it.Event.Raw = log return true case err := <-it.sub.Err(): it.done = true it.fail = err return it.Next() } } // Error returns any retrieval or parsing error occurred during filtering. func (it *ContractTransferIterator) Error() error { return it.fail } // Close terminates the iteration process, releasing any pending underlying // resources. func (it *ContractTransferIterator) Close() error { it.sub.Unsubscribe() return nil } // ContractTransfer represents a Transfer event raised by the Contract contract. type ContractTransfer struct { From common.Address To common.Address TokenId *big.Int Raw types.Log // Blockchain specific contextual infos } // FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. // // Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId) func (_Contract *ContractFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*ContractTransferIterator, error) { var fromRule []interface{} for _, fromItem := range from { fromRule = append(fromRule, fromItem) } var toRule []interface{} for _, toItem := range to { toRule = append(toRule, toItem) } var tokenIdRule []interface{} for _, tokenIdItem := range tokenId { tokenIdRule = append(tokenIdRule, tokenIdItem) } logs, sub, err := _Contract.contract.FilterLogs(opts, "Transfer", fromRule, toRule, tokenIdRule) if err != nil { return nil, err } return &ContractTransferIterator{contract: _Contract.contract, event: "Transfer", logs: logs, sub: sub}, nil } // WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. // // Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId) func (_Contract *ContractFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ContractTransfer, from []common.Address, to []common.Address, tokenId []*big.Int) (event.Subscription, error) { var fromRule []interface{} for _, fromItem := range from { fromRule = append(fromRule, fromItem) } var toRule []interface{} for _, toItem := range to { toRule = append(toRule, toItem) } var tokenIdRule []interface{} for _, tokenIdItem := range tokenId { tokenIdRule = append(tokenIdRule, tokenIdItem) } logs, sub, err := _Contract.contract.WatchLogs(opts, "Transfer", fromRule, toRule, tokenIdRule) if err != nil { return nil, err } return event.NewSubscription(func(quit <-chan struct{}) error { defer sub.Unsubscribe() for { select { case log := <-logs: // New log arrived, parse the event and forward to the user event := new(ContractTransfer) if err := _Contract.contract.UnpackLog(event, "Transfer", log); err != nil { return err } event.Raw = log select { case sink <- event: case err := <-sub.Err(): return err case <-quit: return nil } case err := <-sub.Err(): return err case <-quit: return nil } } }), nil } // ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. // // Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId) func (_Contract *ContractFilterer) ParseTransfer(log types.Log) (*ContractTransfer, error) { event := new(ContractTransfer) if err := _Contract.contract.UnpackLog(event, "Transfer", log); err != nil { return nil, err } return event, nil }