github.com/codingfuture/orig-energi3@v0.8.4/energi/abi/IBlacklistRegistry.go (about)

     1  // Code generated - DO NOT EDIT.
     2  // This file is a generated binding and any manual changes will be lost.
     3  
     4  package abi
     5  
     6  import (
     7  	"math/big"
     8  	"strings"
     9  
    10  	ethereum "github.com/ethereum/go-ethereum"
    11  	"github.com/ethereum/go-ethereum/accounts/abi"
    12  	"github.com/ethereum/go-ethereum/accounts/abi/bind"
    13  	"github.com/ethereum/go-ethereum/common"
    14  	"github.com/ethereum/go-ethereum/core/types"
    15  	"github.com/ethereum/go-ethereum/event"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var (
    20  	_ = big.NewInt
    21  	_ = strings.NewReader
    22  	_ = ethereum.NotFound
    23  	_ = abi.U256
    24  	_ = bind.Bind
    25  	_ = common.Big1
    26  	_ = types.BloomLookup
    27  	_ = event.NewSubscription
    28  )
    29  
    30  // IBlacklistRegistryABI is the input ABI used to generate the binding from.
    31  const IBlacklistRegistryABI = "[{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contractIBlacklistProposal\",\"name\":\"proposal\",\"type\":\"address\"}],\"name\":\"BlacklistProposal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contractIBlacklistProposal\",\"name\":\"proposal\",\"type\":\"address\"}],\"name\":\"DrainProposal\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"target\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"contractIBlacklistProposal\",\"name\":\"proposal\",\"type\":\"address\"}],\"name\":\"WhitelistProposal\",\"type\":\"event\"},{\"constant\":true,\"inputs\":[],\"name\":\"EBI_signer\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"collect\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"compensation_fund\",\"outputs\":[{\"internalType\":\"contractITreasury\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"item_id\",\"type\":\"uint256\"},{\"internalType\":\"bytes20\",\"name\":\"owner\",\"type\":\"bytes20\"}],\"name\":\"drainMigration\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"enumerateAll\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"addresses\",\"type\":\"address[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"enumerateBlocked\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"addresses\",\"type\":\"address[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"enumerateDrainable\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"addresses\",\"type\":\"address[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isBlacklisted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"isDrainable\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"onDrain\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"proposals\",\"outputs\":[{\"internalType\":\"contractIBlacklistProposal\",\"name\":\"enforce\",\"type\":\"address\"},{\"internalType\":\"contractIBlacklistProposal\",\"name\":\"revoke\",\"type\":\"address\"},{\"internalType\":\"contractIBlacklistProposal\",\"name\":\"drain\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"propose\",\"outputs\":[{\"internalType\":\"contractIBlacklistProposal\",\"name\":\"\",\"type\":\"address\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"proposeDrain\",\"outputs\":[{\"internalType\":\"contractIBlacklistProposal\",\"name\":\"\",\"type\":\"address\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"proposeRevoke\",\"outputs\":[{\"internalType\":\"contractIBlacklistProposal\",\"name\":\"\",\"type\":\"address\"}],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"}]"
    32  
    33  // IBlacklistRegistry is an auto generated Go binding around an Ethereum contract.
    34  type IBlacklistRegistry struct {
    35  	IBlacklistRegistryCaller     // Read-only binding to the contract
    36  	IBlacklistRegistryTransactor // Write-only binding to the contract
    37  	IBlacklistRegistryFilterer   // Log filterer for contract events
    38  }
    39  
    40  // IBlacklistRegistryCaller is an auto generated read-only Go binding around an Ethereum contract.
    41  type IBlacklistRegistryCaller struct {
    42  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    43  }
    44  
    45  // IBlacklistRegistryTransactor is an auto generated write-only Go binding around an Ethereum contract.
    46  type IBlacklistRegistryTransactor struct {
    47  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    48  }
    49  
    50  // IBlacklistRegistryFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
    51  type IBlacklistRegistryFilterer struct {
    52  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    53  }
    54  
    55  // IBlacklistRegistrySession is an auto generated Go binding around an Ethereum contract,
    56  // with pre-set call and transact options.
    57  type IBlacklistRegistrySession struct {
    58  	Contract     *IBlacklistRegistry // Generic contract binding to set the session for
    59  	CallOpts     bind.CallOpts       // Call options to use throughout this session
    60  	TransactOpts bind.TransactOpts   // Transaction auth options to use throughout this session
    61  }
    62  
    63  // IBlacklistRegistryCallerSession is an auto generated read-only Go binding around an Ethereum contract,
    64  // with pre-set call options.
    65  type IBlacklistRegistryCallerSession struct {
    66  	Contract *IBlacklistRegistryCaller // Generic contract caller binding to set the session for
    67  	CallOpts bind.CallOpts             // Call options to use throughout this session
    68  }
    69  
    70  // IBlacklistRegistryTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
    71  // with pre-set transact options.
    72  type IBlacklistRegistryTransactorSession struct {
    73  	Contract     *IBlacklistRegistryTransactor // Generic contract transactor binding to set the session for
    74  	TransactOpts bind.TransactOpts             // Transaction auth options to use throughout this session
    75  }
    76  
    77  // IBlacklistRegistryRaw is an auto generated low-level Go binding around an Ethereum contract.
    78  type IBlacklistRegistryRaw struct {
    79  	Contract *IBlacklistRegistry // Generic contract binding to access the raw methods on
    80  }
    81  
    82  // IBlacklistRegistryCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
    83  type IBlacklistRegistryCallerRaw struct {
    84  	Contract *IBlacklistRegistryCaller // Generic read-only contract binding to access the raw methods on
    85  }
    86  
    87  // IBlacklistRegistryTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
    88  type IBlacklistRegistryTransactorRaw struct {
    89  	Contract *IBlacklistRegistryTransactor // Generic write-only contract binding to access the raw methods on
    90  }
    91  
    92  // NewIBlacklistRegistry creates a new instance of IBlacklistRegistry, bound to a specific deployed contract.
    93  func NewIBlacklistRegistry(address common.Address, backend bind.ContractBackend) (*IBlacklistRegistry, error) {
    94  	contract, err := bindIBlacklistRegistry(address, backend, backend, backend)
    95  	if err != nil {
    96  		return nil, err
    97  	}
    98  	return &IBlacklistRegistry{IBlacklistRegistryCaller: IBlacklistRegistryCaller{contract: contract}, IBlacklistRegistryTransactor: IBlacklistRegistryTransactor{contract: contract}, IBlacklistRegistryFilterer: IBlacklistRegistryFilterer{contract: contract}}, nil
    99  }
   100  
   101  // NewIBlacklistRegistryCaller creates a new read-only instance of IBlacklistRegistry, bound to a specific deployed contract.
   102  func NewIBlacklistRegistryCaller(address common.Address, caller bind.ContractCaller) (*IBlacklistRegistryCaller, error) {
   103  	contract, err := bindIBlacklistRegistry(address, caller, nil, nil)
   104  	if err != nil {
   105  		return nil, err
   106  	}
   107  	return &IBlacklistRegistryCaller{contract: contract}, nil
   108  }
   109  
   110  // NewIBlacklistRegistryTransactor creates a new write-only instance of IBlacklistRegistry, bound to a specific deployed contract.
   111  func NewIBlacklistRegistryTransactor(address common.Address, transactor bind.ContractTransactor) (*IBlacklistRegistryTransactor, error) {
   112  	contract, err := bindIBlacklistRegistry(address, nil, transactor, nil)
   113  	if err != nil {
   114  		return nil, err
   115  	}
   116  	return &IBlacklistRegistryTransactor{contract: contract}, nil
   117  }
   118  
   119  // NewIBlacklistRegistryFilterer creates a new log filterer instance of IBlacklistRegistry, bound to a specific deployed contract.
   120  func NewIBlacklistRegistryFilterer(address common.Address, filterer bind.ContractFilterer) (*IBlacklistRegistryFilterer, error) {
   121  	contract, err := bindIBlacklistRegistry(address, nil, nil, filterer)
   122  	if err != nil {
   123  		return nil, err
   124  	}
   125  	return &IBlacklistRegistryFilterer{contract: contract}, nil
   126  }
   127  
   128  // bindIBlacklistRegistry binds a generic wrapper to an already deployed contract.
   129  func bindIBlacklistRegistry(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   130  	parsed, err := abi.JSON(strings.NewReader(IBlacklistRegistryABI))
   131  	if err != nil {
   132  		return nil, err
   133  	}
   134  	return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
   135  }
   136  
   137  // Call invokes the (constant) contract method with params as input values and
   138  // sets the output to result. The result type might be a single field for simple
   139  // returns, a slice of interfaces for anonymous returns and a struct for named
   140  // returns.
   141  func (_IBlacklistRegistry *IBlacklistRegistryRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   142  	return _IBlacklistRegistry.Contract.IBlacklistRegistryCaller.contract.Call(opts, result, method, params...)
   143  }
   144  
   145  // Transfer initiates a plain transaction to move funds to the contract, calling
   146  // its default method if one is available.
   147  func (_IBlacklistRegistry *IBlacklistRegistryRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   148  	return _IBlacklistRegistry.Contract.IBlacklistRegistryTransactor.contract.Transfer(opts)
   149  }
   150  
   151  // Transact invokes the (paid) contract method with params as input values.
   152  func (_IBlacklistRegistry *IBlacklistRegistryRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   153  	return _IBlacklistRegistry.Contract.IBlacklistRegistryTransactor.contract.Transact(opts, method, params...)
   154  }
   155  
   156  // Call invokes the (constant) contract method with params as input values and
   157  // sets the output to result. The result type might be a single field for simple
   158  // returns, a slice of interfaces for anonymous returns and a struct for named
   159  // returns.
   160  func (_IBlacklistRegistry *IBlacklistRegistryCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   161  	return _IBlacklistRegistry.Contract.contract.Call(opts, result, method, params...)
   162  }
   163  
   164  // Transfer initiates a plain transaction to move funds to the contract, calling
   165  // its default method if one is available.
   166  func (_IBlacklistRegistry *IBlacklistRegistryTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   167  	return _IBlacklistRegistry.Contract.contract.Transfer(opts)
   168  }
   169  
   170  // Transact invokes the (paid) contract method with params as input values.
   171  func (_IBlacklistRegistry *IBlacklistRegistryTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   172  	return _IBlacklistRegistry.Contract.contract.Transact(opts, method, params...)
   173  }
   174  
   175  // EBISigner is a free data retrieval call binding the contract method 0x94c210fc.
   176  //
   177  // Solidity: function EBI_signer() constant returns(address)
   178  func (_IBlacklistRegistry *IBlacklistRegistryCaller) EBISigner(opts *bind.CallOpts) (common.Address, error) {
   179  	var (
   180  		ret0 = new(common.Address)
   181  	)
   182  	out := ret0
   183  	err := _IBlacklistRegistry.contract.Call(opts, out, "EBI_signer")
   184  	return *ret0, err
   185  }
   186  
   187  // EBISigner is a free data retrieval call binding the contract method 0x94c210fc.
   188  //
   189  // Solidity: function EBI_signer() constant returns(address)
   190  func (_IBlacklistRegistry *IBlacklistRegistrySession) EBISigner() (common.Address, error) {
   191  	return _IBlacklistRegistry.Contract.EBISigner(&_IBlacklistRegistry.CallOpts)
   192  }
   193  
   194  // EBISigner is a free data retrieval call binding the contract method 0x94c210fc.
   195  //
   196  // Solidity: function EBI_signer() constant returns(address)
   197  func (_IBlacklistRegistry *IBlacklistRegistryCallerSession) EBISigner() (common.Address, error) {
   198  	return _IBlacklistRegistry.Contract.EBISigner(&_IBlacklistRegistry.CallOpts)
   199  }
   200  
   201  // CompensationFund is a free data retrieval call binding the contract method 0xf4441152.
   202  //
   203  // Solidity: function compensation_fund() constant returns(address)
   204  func (_IBlacklistRegistry *IBlacklistRegistryCaller) CompensationFund(opts *bind.CallOpts) (common.Address, error) {
   205  	var (
   206  		ret0 = new(common.Address)
   207  	)
   208  	out := ret0
   209  	err := _IBlacklistRegistry.contract.Call(opts, out, "compensation_fund")
   210  	return *ret0, err
   211  }
   212  
   213  // CompensationFund is a free data retrieval call binding the contract method 0xf4441152.
   214  //
   215  // Solidity: function compensation_fund() constant returns(address)
   216  func (_IBlacklistRegistry *IBlacklistRegistrySession) CompensationFund() (common.Address, error) {
   217  	return _IBlacklistRegistry.Contract.CompensationFund(&_IBlacklistRegistry.CallOpts)
   218  }
   219  
   220  // CompensationFund is a free data retrieval call binding the contract method 0xf4441152.
   221  //
   222  // Solidity: function compensation_fund() constant returns(address)
   223  func (_IBlacklistRegistry *IBlacklistRegistryCallerSession) CompensationFund() (common.Address, error) {
   224  	return _IBlacklistRegistry.Contract.CompensationFund(&_IBlacklistRegistry.CallOpts)
   225  }
   226  
   227  // EnumerateAll is a free data retrieval call binding the contract method 0xbc393afb.
   228  //
   229  // Solidity: function enumerateAll() constant returns(address[] addresses)
   230  func (_IBlacklistRegistry *IBlacklistRegistryCaller) EnumerateAll(opts *bind.CallOpts) ([]common.Address, error) {
   231  	var (
   232  		ret0 = new([]common.Address)
   233  	)
   234  	out := ret0
   235  	err := _IBlacklistRegistry.contract.Call(opts, out, "enumerateAll")
   236  	return *ret0, err
   237  }
   238  
   239  // EnumerateAll is a free data retrieval call binding the contract method 0xbc393afb.
   240  //
   241  // Solidity: function enumerateAll() constant returns(address[] addresses)
   242  func (_IBlacklistRegistry *IBlacklistRegistrySession) EnumerateAll() ([]common.Address, error) {
   243  	return _IBlacklistRegistry.Contract.EnumerateAll(&_IBlacklistRegistry.CallOpts)
   244  }
   245  
   246  // EnumerateAll is a free data retrieval call binding the contract method 0xbc393afb.
   247  //
   248  // Solidity: function enumerateAll() constant returns(address[] addresses)
   249  func (_IBlacklistRegistry *IBlacklistRegistryCallerSession) EnumerateAll() ([]common.Address, error) {
   250  	return _IBlacklistRegistry.Contract.EnumerateAll(&_IBlacklistRegistry.CallOpts)
   251  }
   252  
   253  // EnumerateBlocked is a free data retrieval call binding the contract method 0x5603125c.
   254  //
   255  // Solidity: function enumerateBlocked() constant returns(address[] addresses)
   256  func (_IBlacklistRegistry *IBlacklistRegistryCaller) EnumerateBlocked(opts *bind.CallOpts) ([]common.Address, error) {
   257  	var (
   258  		ret0 = new([]common.Address)
   259  	)
   260  	out := ret0
   261  	err := _IBlacklistRegistry.contract.Call(opts, out, "enumerateBlocked")
   262  	return *ret0, err
   263  }
   264  
   265  // EnumerateBlocked is a free data retrieval call binding the contract method 0x5603125c.
   266  //
   267  // Solidity: function enumerateBlocked() constant returns(address[] addresses)
   268  func (_IBlacklistRegistry *IBlacklistRegistrySession) EnumerateBlocked() ([]common.Address, error) {
   269  	return _IBlacklistRegistry.Contract.EnumerateBlocked(&_IBlacklistRegistry.CallOpts)
   270  }
   271  
   272  // EnumerateBlocked is a free data retrieval call binding the contract method 0x5603125c.
   273  //
   274  // Solidity: function enumerateBlocked() constant returns(address[] addresses)
   275  func (_IBlacklistRegistry *IBlacklistRegistryCallerSession) EnumerateBlocked() ([]common.Address, error) {
   276  	return _IBlacklistRegistry.Contract.EnumerateBlocked(&_IBlacklistRegistry.CallOpts)
   277  }
   278  
   279  // EnumerateDrainable is a free data retrieval call binding the contract method 0xee33f9d2.
   280  //
   281  // Solidity: function enumerateDrainable() constant returns(address[] addresses)
   282  func (_IBlacklistRegistry *IBlacklistRegistryCaller) EnumerateDrainable(opts *bind.CallOpts) ([]common.Address, error) {
   283  	var (
   284  		ret0 = new([]common.Address)
   285  	)
   286  	out := ret0
   287  	err := _IBlacklistRegistry.contract.Call(opts, out, "enumerateDrainable")
   288  	return *ret0, err
   289  }
   290  
   291  // EnumerateDrainable is a free data retrieval call binding the contract method 0xee33f9d2.
   292  //
   293  // Solidity: function enumerateDrainable() constant returns(address[] addresses)
   294  func (_IBlacklistRegistry *IBlacklistRegistrySession) EnumerateDrainable() ([]common.Address, error) {
   295  	return _IBlacklistRegistry.Contract.EnumerateDrainable(&_IBlacklistRegistry.CallOpts)
   296  }
   297  
   298  // EnumerateDrainable is a free data retrieval call binding the contract method 0xee33f9d2.
   299  //
   300  // Solidity: function enumerateDrainable() constant returns(address[] addresses)
   301  func (_IBlacklistRegistry *IBlacklistRegistryCallerSession) EnumerateDrainable() ([]common.Address, error) {
   302  	return _IBlacklistRegistry.Contract.EnumerateDrainable(&_IBlacklistRegistry.CallOpts)
   303  }
   304  
   305  // IsBlacklisted is a free data retrieval call binding the contract method 0xfe575a87.
   306  //
   307  // Solidity: function isBlacklisted(address ) constant returns(bool)
   308  func (_IBlacklistRegistry *IBlacklistRegistryCaller) IsBlacklisted(opts *bind.CallOpts, arg0 common.Address) (bool, error) {
   309  	var (
   310  		ret0 = new(bool)
   311  	)
   312  	out := ret0
   313  	err := _IBlacklistRegistry.contract.Call(opts, out, "isBlacklisted", arg0)
   314  	return *ret0, err
   315  }
   316  
   317  // IsBlacklisted is a free data retrieval call binding the contract method 0xfe575a87.
   318  //
   319  // Solidity: function isBlacklisted(address ) constant returns(bool)
   320  func (_IBlacklistRegistry *IBlacklistRegistrySession) IsBlacklisted(arg0 common.Address) (bool, error) {
   321  	return _IBlacklistRegistry.Contract.IsBlacklisted(&_IBlacklistRegistry.CallOpts, arg0)
   322  }
   323  
   324  // IsBlacklisted is a free data retrieval call binding the contract method 0xfe575a87.
   325  //
   326  // Solidity: function isBlacklisted(address ) constant returns(bool)
   327  func (_IBlacklistRegistry *IBlacklistRegistryCallerSession) IsBlacklisted(arg0 common.Address) (bool, error) {
   328  	return _IBlacklistRegistry.Contract.IsBlacklisted(&_IBlacklistRegistry.CallOpts, arg0)
   329  }
   330  
   331  // IsDrainable is a free data retrieval call binding the contract method 0x3303bbb1.
   332  //
   333  // Solidity: function isDrainable(address ) constant returns(bool)
   334  func (_IBlacklistRegistry *IBlacklistRegistryCaller) IsDrainable(opts *bind.CallOpts, arg0 common.Address) (bool, error) {
   335  	var (
   336  		ret0 = new(bool)
   337  	)
   338  	out := ret0
   339  	err := _IBlacklistRegistry.contract.Call(opts, out, "isDrainable", arg0)
   340  	return *ret0, err
   341  }
   342  
   343  // IsDrainable is a free data retrieval call binding the contract method 0x3303bbb1.
   344  //
   345  // Solidity: function isDrainable(address ) constant returns(bool)
   346  func (_IBlacklistRegistry *IBlacklistRegistrySession) IsDrainable(arg0 common.Address) (bool, error) {
   347  	return _IBlacklistRegistry.Contract.IsDrainable(&_IBlacklistRegistry.CallOpts, arg0)
   348  }
   349  
   350  // IsDrainable is a free data retrieval call binding the contract method 0x3303bbb1.
   351  //
   352  // Solidity: function isDrainable(address ) constant returns(bool)
   353  func (_IBlacklistRegistry *IBlacklistRegistryCallerSession) IsDrainable(arg0 common.Address) (bool, error) {
   354  	return _IBlacklistRegistry.Contract.IsDrainable(&_IBlacklistRegistry.CallOpts, arg0)
   355  }
   356  
   357  // Proposals is a free data retrieval call binding the contract method 0x3341b445.
   358  //
   359  // Solidity: function proposals(address ) constant returns(address enforce, address revoke, address drain)
   360  func (_IBlacklistRegistry *IBlacklistRegistryCaller) Proposals(opts *bind.CallOpts, arg0 common.Address) (struct {
   361  	Enforce common.Address
   362  	Revoke  common.Address
   363  	Drain   common.Address
   364  }, error) {
   365  	ret := new(struct {
   366  		Enforce common.Address
   367  		Revoke  common.Address
   368  		Drain   common.Address
   369  	})
   370  	out := ret
   371  	err := _IBlacklistRegistry.contract.Call(opts, out, "proposals", arg0)
   372  	return *ret, err
   373  }
   374  
   375  // Proposals is a free data retrieval call binding the contract method 0x3341b445.
   376  //
   377  // Solidity: function proposals(address ) constant returns(address enforce, address revoke, address drain)
   378  func (_IBlacklistRegistry *IBlacklistRegistrySession) Proposals(arg0 common.Address) (struct {
   379  	Enforce common.Address
   380  	Revoke  common.Address
   381  	Drain   common.Address
   382  }, error) {
   383  	return _IBlacklistRegistry.Contract.Proposals(&_IBlacklistRegistry.CallOpts, arg0)
   384  }
   385  
   386  // Proposals is a free data retrieval call binding the contract method 0x3341b445.
   387  //
   388  // Solidity: function proposals(address ) constant returns(address enforce, address revoke, address drain)
   389  func (_IBlacklistRegistry *IBlacklistRegistryCallerSession) Proposals(arg0 common.Address) (struct {
   390  	Enforce common.Address
   391  	Revoke  common.Address
   392  	Drain   common.Address
   393  }, error) {
   394  	return _IBlacklistRegistry.Contract.Proposals(&_IBlacklistRegistry.CallOpts, arg0)
   395  }
   396  
   397  // Collect is a paid mutator transaction binding the contract method 0x06ec16f8.
   398  //
   399  // Solidity: function collect(address ) returns()
   400  func (_IBlacklistRegistry *IBlacklistRegistryTransactor) Collect(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {
   401  	return _IBlacklistRegistry.contract.Transact(opts, "collect", arg0)
   402  }
   403  
   404  // Collect is a paid mutator transaction binding the contract method 0x06ec16f8.
   405  //
   406  // Solidity: function collect(address ) returns()
   407  func (_IBlacklistRegistry *IBlacklistRegistrySession) Collect(arg0 common.Address) (*types.Transaction, error) {
   408  	return _IBlacklistRegistry.Contract.Collect(&_IBlacklistRegistry.TransactOpts, arg0)
   409  }
   410  
   411  // Collect is a paid mutator transaction binding the contract method 0x06ec16f8.
   412  //
   413  // Solidity: function collect(address ) returns()
   414  func (_IBlacklistRegistry *IBlacklistRegistryTransactorSession) Collect(arg0 common.Address) (*types.Transaction, error) {
   415  	return _IBlacklistRegistry.Contract.Collect(&_IBlacklistRegistry.TransactOpts, arg0)
   416  }
   417  
   418  // DrainMigration is a paid mutator transaction binding the contract method 0x3502a130.
   419  //
   420  // Solidity: function drainMigration(uint256 item_id, bytes20 owner) returns()
   421  func (_IBlacklistRegistry *IBlacklistRegistryTransactor) DrainMigration(opts *bind.TransactOpts, item_id *big.Int, owner [20]byte) (*types.Transaction, error) {
   422  	return _IBlacklistRegistry.contract.Transact(opts, "drainMigration", item_id, owner)
   423  }
   424  
   425  // DrainMigration is a paid mutator transaction binding the contract method 0x3502a130.
   426  //
   427  // Solidity: function drainMigration(uint256 item_id, bytes20 owner) returns()
   428  func (_IBlacklistRegistry *IBlacklistRegistrySession) DrainMigration(item_id *big.Int, owner [20]byte) (*types.Transaction, error) {
   429  	return _IBlacklistRegistry.Contract.DrainMigration(&_IBlacklistRegistry.TransactOpts, item_id, owner)
   430  }
   431  
   432  // DrainMigration is a paid mutator transaction binding the contract method 0x3502a130.
   433  //
   434  // Solidity: function drainMigration(uint256 item_id, bytes20 owner) returns()
   435  func (_IBlacklistRegistry *IBlacklistRegistryTransactorSession) DrainMigration(item_id *big.Int, owner [20]byte) (*types.Transaction, error) {
   436  	return _IBlacklistRegistry.Contract.DrainMigration(&_IBlacklistRegistry.TransactOpts, item_id, owner)
   437  }
   438  
   439  // OnDrain is a paid mutator transaction binding the contract method 0x79d7bc07.
   440  //
   441  // Solidity: function onDrain(address ) returns()
   442  func (_IBlacklistRegistry *IBlacklistRegistryTransactor) OnDrain(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {
   443  	return _IBlacklistRegistry.contract.Transact(opts, "onDrain", arg0)
   444  }
   445  
   446  // OnDrain is a paid mutator transaction binding the contract method 0x79d7bc07.
   447  //
   448  // Solidity: function onDrain(address ) returns()
   449  func (_IBlacklistRegistry *IBlacklistRegistrySession) OnDrain(arg0 common.Address) (*types.Transaction, error) {
   450  	return _IBlacklistRegistry.Contract.OnDrain(&_IBlacklistRegistry.TransactOpts, arg0)
   451  }
   452  
   453  // OnDrain is a paid mutator transaction binding the contract method 0x79d7bc07.
   454  //
   455  // Solidity: function onDrain(address ) returns()
   456  func (_IBlacklistRegistry *IBlacklistRegistryTransactorSession) OnDrain(arg0 common.Address) (*types.Transaction, error) {
   457  	return _IBlacklistRegistry.Contract.OnDrain(&_IBlacklistRegistry.TransactOpts, arg0)
   458  }
   459  
   460  // Propose is a paid mutator transaction binding the contract method 0x01267951.
   461  //
   462  // Solidity: function propose(address ) returns(address)
   463  func (_IBlacklistRegistry *IBlacklistRegistryTransactor) Propose(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {
   464  	return _IBlacklistRegistry.contract.Transact(opts, "propose", arg0)
   465  }
   466  
   467  // Propose is a paid mutator transaction binding the contract method 0x01267951.
   468  //
   469  // Solidity: function propose(address ) returns(address)
   470  func (_IBlacklistRegistry *IBlacklistRegistrySession) Propose(arg0 common.Address) (*types.Transaction, error) {
   471  	return _IBlacklistRegistry.Contract.Propose(&_IBlacklistRegistry.TransactOpts, arg0)
   472  }
   473  
   474  // Propose is a paid mutator transaction binding the contract method 0x01267951.
   475  //
   476  // Solidity: function propose(address ) returns(address)
   477  func (_IBlacklistRegistry *IBlacklistRegistryTransactorSession) Propose(arg0 common.Address) (*types.Transaction, error) {
   478  	return _IBlacklistRegistry.Contract.Propose(&_IBlacklistRegistry.TransactOpts, arg0)
   479  }
   480  
   481  // ProposeDrain is a paid mutator transaction binding the contract method 0xd1e8ebda.
   482  //
   483  // Solidity: function proposeDrain(address ) returns(address)
   484  func (_IBlacklistRegistry *IBlacklistRegistryTransactor) ProposeDrain(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {
   485  	return _IBlacklistRegistry.contract.Transact(opts, "proposeDrain", arg0)
   486  }
   487  
   488  // ProposeDrain is a paid mutator transaction binding the contract method 0xd1e8ebda.
   489  //
   490  // Solidity: function proposeDrain(address ) returns(address)
   491  func (_IBlacklistRegistry *IBlacklistRegistrySession) ProposeDrain(arg0 common.Address) (*types.Transaction, error) {
   492  	return _IBlacklistRegistry.Contract.ProposeDrain(&_IBlacklistRegistry.TransactOpts, arg0)
   493  }
   494  
   495  // ProposeDrain is a paid mutator transaction binding the contract method 0xd1e8ebda.
   496  //
   497  // Solidity: function proposeDrain(address ) returns(address)
   498  func (_IBlacklistRegistry *IBlacklistRegistryTransactorSession) ProposeDrain(arg0 common.Address) (*types.Transaction, error) {
   499  	return _IBlacklistRegistry.Contract.ProposeDrain(&_IBlacklistRegistry.TransactOpts, arg0)
   500  }
   501  
   502  // ProposeRevoke is a paid mutator transaction binding the contract method 0x244fcea5.
   503  //
   504  // Solidity: function proposeRevoke(address ) returns(address)
   505  func (_IBlacklistRegistry *IBlacklistRegistryTransactor) ProposeRevoke(opts *bind.TransactOpts, arg0 common.Address) (*types.Transaction, error) {
   506  	return _IBlacklistRegistry.contract.Transact(opts, "proposeRevoke", arg0)
   507  }
   508  
   509  // ProposeRevoke is a paid mutator transaction binding the contract method 0x244fcea5.
   510  //
   511  // Solidity: function proposeRevoke(address ) returns(address)
   512  func (_IBlacklistRegistry *IBlacklistRegistrySession) ProposeRevoke(arg0 common.Address) (*types.Transaction, error) {
   513  	return _IBlacklistRegistry.Contract.ProposeRevoke(&_IBlacklistRegistry.TransactOpts, arg0)
   514  }
   515  
   516  // ProposeRevoke is a paid mutator transaction binding the contract method 0x244fcea5.
   517  //
   518  // Solidity: function proposeRevoke(address ) returns(address)
   519  func (_IBlacklistRegistry *IBlacklistRegistryTransactorSession) ProposeRevoke(arg0 common.Address) (*types.Transaction, error) {
   520  	return _IBlacklistRegistry.Contract.ProposeRevoke(&_IBlacklistRegistry.TransactOpts, arg0)
   521  }
   522  
   523  // IBlacklistRegistryBlacklistProposalIterator is returned from FilterBlacklistProposal and is used to iterate over the raw logs and unpacked data for BlacklistProposal events raised by the IBlacklistRegistry contract.
   524  type IBlacklistRegistryBlacklistProposalIterator struct {
   525  	Event *IBlacklistRegistryBlacklistProposal // Event containing the contract specifics and raw log
   526  
   527  	contract *bind.BoundContract // Generic contract to use for unpacking event data
   528  	event    string              // Event name to use for unpacking event data
   529  
   530  	logs chan types.Log        // Log channel receiving the found contract events
   531  	sub  ethereum.Subscription // Subscription for errors, completion and termination
   532  	done bool                  // Whether the subscription completed delivering logs
   533  	fail error                 // Occurred error to stop iteration
   534  }
   535  
   536  // Next advances the iterator to the subsequent event, returning whether there
   537  // are any more events found. In case of a retrieval or parsing error, false is
   538  // returned and Error() can be queried for the exact failure.
   539  func (it *IBlacklistRegistryBlacklistProposalIterator) Next() bool {
   540  	// If the iterator failed, stop iterating
   541  	if it.fail != nil {
   542  		return false
   543  	}
   544  	// If the iterator completed, deliver directly whatever's available
   545  	if it.done {
   546  		select {
   547  		case log := <-it.logs:
   548  			it.Event = new(IBlacklistRegistryBlacklistProposal)
   549  			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   550  				it.fail = err
   551  				return false
   552  			}
   553  			it.Event.Raw = log
   554  			return true
   555  
   556  		default:
   557  			return false
   558  		}
   559  	}
   560  	// Iterator still in progress, wait for either a data or an error event
   561  	select {
   562  	case log := <-it.logs:
   563  		it.Event = new(IBlacklistRegistryBlacklistProposal)
   564  		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   565  			it.fail = err
   566  			return false
   567  		}
   568  		it.Event.Raw = log
   569  		return true
   570  
   571  	case err := <-it.sub.Err():
   572  		it.done = true
   573  		it.fail = err
   574  		return it.Next()
   575  	}
   576  }
   577  
   578  // Error returns any retrieval or parsing error occurred during filtering.
   579  func (it *IBlacklistRegistryBlacklistProposalIterator) Error() error {
   580  	return it.fail
   581  }
   582  
   583  // Close terminates the iteration process, releasing any pending underlying
   584  // resources.
   585  func (it *IBlacklistRegistryBlacklistProposalIterator) Close() error {
   586  	it.sub.Unsubscribe()
   587  	return nil
   588  }
   589  
   590  // IBlacklistRegistryBlacklistProposal represents a BlacklistProposal event raised by the IBlacklistRegistry contract.
   591  type IBlacklistRegistryBlacklistProposal struct {
   592  	Target   common.Address
   593  	Proposal common.Address
   594  	Raw      types.Log // Blockchain specific contextual infos
   595  }
   596  
   597  // FilterBlacklistProposal is a free log retrieval operation binding the contract event 0xea0d3b1afc7aa1754f902b277d6f473e2f4a4526e94797814c2042405d692557.
   598  //
   599  // Solidity: event BlacklistProposal(address indexed target, address proposal)
   600  func (_IBlacklistRegistry *IBlacklistRegistryFilterer) FilterBlacklistProposal(opts *bind.FilterOpts, target []common.Address) (*IBlacklistRegistryBlacklistProposalIterator, error) {
   601  
   602  	var targetRule []interface{}
   603  	for _, targetItem := range target {
   604  		targetRule = append(targetRule, targetItem)
   605  	}
   606  
   607  	logs, sub, err := _IBlacklistRegistry.contract.FilterLogs(opts, "BlacklistProposal", targetRule)
   608  	if err != nil {
   609  		return nil, err
   610  	}
   611  	return &IBlacklistRegistryBlacklistProposalIterator{contract: _IBlacklistRegistry.contract, event: "BlacklistProposal", logs: logs, sub: sub}, nil
   612  }
   613  
   614  // WatchBlacklistProposal is a free log subscription operation binding the contract event 0xea0d3b1afc7aa1754f902b277d6f473e2f4a4526e94797814c2042405d692557.
   615  //
   616  // Solidity: event BlacklistProposal(address indexed target, address proposal)
   617  func (_IBlacklistRegistry *IBlacklistRegistryFilterer) WatchBlacklistProposal(opts *bind.WatchOpts, sink chan<- *IBlacklistRegistryBlacklistProposal, target []common.Address) (event.Subscription, error) {
   618  
   619  	var targetRule []interface{}
   620  	for _, targetItem := range target {
   621  		targetRule = append(targetRule, targetItem)
   622  	}
   623  
   624  	logs, sub, err := _IBlacklistRegistry.contract.WatchLogs(opts, "BlacklistProposal", targetRule)
   625  	if err != nil {
   626  		return nil, err
   627  	}
   628  	return event.NewSubscription(func(quit <-chan struct{}) error {
   629  		defer sub.Unsubscribe()
   630  		for {
   631  			select {
   632  			case log := <-logs:
   633  				// New log arrived, parse the event and forward to the user
   634  				event := new(IBlacklistRegistryBlacklistProposal)
   635  				if err := _IBlacklistRegistry.contract.UnpackLog(event, "BlacklistProposal", log); err != nil {
   636  					return err
   637  				}
   638  				event.Raw = log
   639  
   640  				select {
   641  				case sink <- event:
   642  				case err := <-sub.Err():
   643  					return err
   644  				case <-quit:
   645  					return nil
   646  				}
   647  			case err := <-sub.Err():
   648  				return err
   649  			case <-quit:
   650  				return nil
   651  			}
   652  		}
   653  	}), nil
   654  }
   655  
   656  // IBlacklistRegistryDrainProposalIterator is returned from FilterDrainProposal and is used to iterate over the raw logs and unpacked data for DrainProposal events raised by the IBlacklistRegistry contract.
   657  type IBlacklistRegistryDrainProposalIterator struct {
   658  	Event *IBlacklistRegistryDrainProposal // Event containing the contract specifics and raw log
   659  
   660  	contract *bind.BoundContract // Generic contract to use for unpacking event data
   661  	event    string              // Event name to use for unpacking event data
   662  
   663  	logs chan types.Log        // Log channel receiving the found contract events
   664  	sub  ethereum.Subscription // Subscription for errors, completion and termination
   665  	done bool                  // Whether the subscription completed delivering logs
   666  	fail error                 // Occurred error to stop iteration
   667  }
   668  
   669  // Next advances the iterator to the subsequent event, returning whether there
   670  // are any more events found. In case of a retrieval or parsing error, false is
   671  // returned and Error() can be queried for the exact failure.
   672  func (it *IBlacklistRegistryDrainProposalIterator) Next() bool {
   673  	// If the iterator failed, stop iterating
   674  	if it.fail != nil {
   675  		return false
   676  	}
   677  	// If the iterator completed, deliver directly whatever's available
   678  	if it.done {
   679  		select {
   680  		case log := <-it.logs:
   681  			it.Event = new(IBlacklistRegistryDrainProposal)
   682  			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   683  				it.fail = err
   684  				return false
   685  			}
   686  			it.Event.Raw = log
   687  			return true
   688  
   689  		default:
   690  			return false
   691  		}
   692  	}
   693  	// Iterator still in progress, wait for either a data or an error event
   694  	select {
   695  	case log := <-it.logs:
   696  		it.Event = new(IBlacklistRegistryDrainProposal)
   697  		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   698  			it.fail = err
   699  			return false
   700  		}
   701  		it.Event.Raw = log
   702  		return true
   703  
   704  	case err := <-it.sub.Err():
   705  		it.done = true
   706  		it.fail = err
   707  		return it.Next()
   708  	}
   709  }
   710  
   711  // Error returns any retrieval or parsing error occurred during filtering.
   712  func (it *IBlacklistRegistryDrainProposalIterator) Error() error {
   713  	return it.fail
   714  }
   715  
   716  // Close terminates the iteration process, releasing any pending underlying
   717  // resources.
   718  func (it *IBlacklistRegistryDrainProposalIterator) Close() error {
   719  	it.sub.Unsubscribe()
   720  	return nil
   721  }
   722  
   723  // IBlacklistRegistryDrainProposal represents a DrainProposal event raised by the IBlacklistRegistry contract.
   724  type IBlacklistRegistryDrainProposal struct {
   725  	Target   common.Address
   726  	Proposal common.Address
   727  	Raw      types.Log // Blockchain specific contextual infos
   728  }
   729  
   730  // FilterDrainProposal is a free log retrieval operation binding the contract event 0xb0163b33033bcea41a78d2d4a9c596c29b0667259543d6d56b8cac8cd92d2cea.
   731  //
   732  // Solidity: event DrainProposal(address indexed target, address proposal)
   733  func (_IBlacklistRegistry *IBlacklistRegistryFilterer) FilterDrainProposal(opts *bind.FilterOpts, target []common.Address) (*IBlacklistRegistryDrainProposalIterator, error) {
   734  
   735  	var targetRule []interface{}
   736  	for _, targetItem := range target {
   737  		targetRule = append(targetRule, targetItem)
   738  	}
   739  
   740  	logs, sub, err := _IBlacklistRegistry.contract.FilterLogs(opts, "DrainProposal", targetRule)
   741  	if err != nil {
   742  		return nil, err
   743  	}
   744  	return &IBlacklistRegistryDrainProposalIterator{contract: _IBlacklistRegistry.contract, event: "DrainProposal", logs: logs, sub: sub}, nil
   745  }
   746  
   747  // WatchDrainProposal is a free log subscription operation binding the contract event 0xb0163b33033bcea41a78d2d4a9c596c29b0667259543d6d56b8cac8cd92d2cea.
   748  //
   749  // Solidity: event DrainProposal(address indexed target, address proposal)
   750  func (_IBlacklistRegistry *IBlacklistRegistryFilterer) WatchDrainProposal(opts *bind.WatchOpts, sink chan<- *IBlacklistRegistryDrainProposal, target []common.Address) (event.Subscription, error) {
   751  
   752  	var targetRule []interface{}
   753  	for _, targetItem := range target {
   754  		targetRule = append(targetRule, targetItem)
   755  	}
   756  
   757  	logs, sub, err := _IBlacklistRegistry.contract.WatchLogs(opts, "DrainProposal", targetRule)
   758  	if err != nil {
   759  		return nil, err
   760  	}
   761  	return event.NewSubscription(func(quit <-chan struct{}) error {
   762  		defer sub.Unsubscribe()
   763  		for {
   764  			select {
   765  			case log := <-logs:
   766  				// New log arrived, parse the event and forward to the user
   767  				event := new(IBlacklistRegistryDrainProposal)
   768  				if err := _IBlacklistRegistry.contract.UnpackLog(event, "DrainProposal", log); err != nil {
   769  					return err
   770  				}
   771  				event.Raw = log
   772  
   773  				select {
   774  				case sink <- event:
   775  				case err := <-sub.Err():
   776  					return err
   777  				case <-quit:
   778  					return nil
   779  				}
   780  			case err := <-sub.Err():
   781  				return err
   782  			case <-quit:
   783  				return nil
   784  			}
   785  		}
   786  	}), nil
   787  }
   788  
   789  // IBlacklistRegistryWhitelistProposalIterator is returned from FilterWhitelistProposal and is used to iterate over the raw logs and unpacked data for WhitelistProposal events raised by the IBlacklistRegistry contract.
   790  type IBlacklistRegistryWhitelistProposalIterator struct {
   791  	Event *IBlacklistRegistryWhitelistProposal // Event containing the contract specifics and raw log
   792  
   793  	contract *bind.BoundContract // Generic contract to use for unpacking event data
   794  	event    string              // Event name to use for unpacking event data
   795  
   796  	logs chan types.Log        // Log channel receiving the found contract events
   797  	sub  ethereum.Subscription // Subscription for errors, completion and termination
   798  	done bool                  // Whether the subscription completed delivering logs
   799  	fail error                 // Occurred error to stop iteration
   800  }
   801  
   802  // Next advances the iterator to the subsequent event, returning whether there
   803  // are any more events found. In case of a retrieval or parsing error, false is
   804  // returned and Error() can be queried for the exact failure.
   805  func (it *IBlacklistRegistryWhitelistProposalIterator) Next() bool {
   806  	// If the iterator failed, stop iterating
   807  	if it.fail != nil {
   808  		return false
   809  	}
   810  	// If the iterator completed, deliver directly whatever's available
   811  	if it.done {
   812  		select {
   813  		case log := <-it.logs:
   814  			it.Event = new(IBlacklistRegistryWhitelistProposal)
   815  			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   816  				it.fail = err
   817  				return false
   818  			}
   819  			it.Event.Raw = log
   820  			return true
   821  
   822  		default:
   823  			return false
   824  		}
   825  	}
   826  	// Iterator still in progress, wait for either a data or an error event
   827  	select {
   828  	case log := <-it.logs:
   829  		it.Event = new(IBlacklistRegistryWhitelistProposal)
   830  		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   831  			it.fail = err
   832  			return false
   833  		}
   834  		it.Event.Raw = log
   835  		return true
   836  
   837  	case err := <-it.sub.Err():
   838  		it.done = true
   839  		it.fail = err
   840  		return it.Next()
   841  	}
   842  }
   843  
   844  // Error returns any retrieval or parsing error occurred during filtering.
   845  func (it *IBlacklistRegistryWhitelistProposalIterator) Error() error {
   846  	return it.fail
   847  }
   848  
   849  // Close terminates the iteration process, releasing any pending underlying
   850  // resources.
   851  func (it *IBlacklistRegistryWhitelistProposalIterator) Close() error {
   852  	it.sub.Unsubscribe()
   853  	return nil
   854  }
   855  
   856  // IBlacklistRegistryWhitelistProposal represents a WhitelistProposal event raised by the IBlacklistRegistry contract.
   857  type IBlacklistRegistryWhitelistProposal struct {
   858  	Target   common.Address
   859  	Proposal common.Address
   860  	Raw      types.Log // Blockchain specific contextual infos
   861  }
   862  
   863  // FilterWhitelistProposal is a free log retrieval operation binding the contract event 0x2e46fe8e502a44b05a85d4346d3e208fc845c81a81c9b7e4db08a33dca59faff.
   864  //
   865  // Solidity: event WhitelistProposal(address indexed target, address proposal)
   866  func (_IBlacklistRegistry *IBlacklistRegistryFilterer) FilterWhitelistProposal(opts *bind.FilterOpts, target []common.Address) (*IBlacklistRegistryWhitelistProposalIterator, error) {
   867  
   868  	var targetRule []interface{}
   869  	for _, targetItem := range target {
   870  		targetRule = append(targetRule, targetItem)
   871  	}
   872  
   873  	logs, sub, err := _IBlacklistRegistry.contract.FilterLogs(opts, "WhitelistProposal", targetRule)
   874  	if err != nil {
   875  		return nil, err
   876  	}
   877  	return &IBlacklistRegistryWhitelistProposalIterator{contract: _IBlacklistRegistry.contract, event: "WhitelistProposal", logs: logs, sub: sub}, nil
   878  }
   879  
   880  // WatchWhitelistProposal is a free log subscription operation binding the contract event 0x2e46fe8e502a44b05a85d4346d3e208fc845c81a81c9b7e4db08a33dca59faff.
   881  //
   882  // Solidity: event WhitelistProposal(address indexed target, address proposal)
   883  func (_IBlacklistRegistry *IBlacklistRegistryFilterer) WatchWhitelistProposal(opts *bind.WatchOpts, sink chan<- *IBlacklistRegistryWhitelistProposal, target []common.Address) (event.Subscription, error) {
   884  
   885  	var targetRule []interface{}
   886  	for _, targetItem := range target {
   887  		targetRule = append(targetRule, targetItem)
   888  	}
   889  
   890  	logs, sub, err := _IBlacklistRegistry.contract.WatchLogs(opts, "WhitelistProposal", targetRule)
   891  	if err != nil {
   892  		return nil, err
   893  	}
   894  	return event.NewSubscription(func(quit <-chan struct{}) error {
   895  		defer sub.Unsubscribe()
   896  		for {
   897  			select {
   898  			case log := <-logs:
   899  				// New log arrived, parse the event and forward to the user
   900  				event := new(IBlacklistRegistryWhitelistProposal)
   901  				if err := _IBlacklistRegistry.contract.UnpackLog(event, "WhitelistProposal", log); err != nil {
   902  					return err
   903  				}
   904  				event.Raw = log
   905  
   906  				select {
   907  				case sink <- event:
   908  				case err := <-sub.Err():
   909  					return err
   910  				case <-quit:
   911  					return nil
   912  				}
   913  			case err := <-sub.Err():
   914  				return err
   915  			case <-quit:
   916  				return nil
   917  			}
   918  		}
   919  	}), nil
   920  }