github.com/codingfuture/orig-energi3@v0.8.4/energi/abi/Gen2Migration.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  // Gen2MigrationABI is the input ABI used to generate the binding from.
    31  const Gen2MigrationABI = "[{\"inputs\":[{\"internalType\":\"contractIGovernedProxy\",\"name\":\"_blacklist_proxy\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"_chain_id\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"_signer\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"item_id\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"destination\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Migrated\",\"type\":\"event\"},{\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_item_id\",\"type\":\"uint256\"},{\"internalType\":\"bytes20\",\"name\":\"_owner\",\"type\":\"bytes20\"}],\"name\":\"blacklistClaim\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"blacklist_proxy\",\"outputs\":[{\"internalType\":\"contractIGovernedProxy\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"chain_id\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_item_id\",\"type\":\"uint256\"},{\"internalType\":\"addresspayable\",\"name\":\"_destination\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"sig_v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"sig_r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"sig_s\",\"type\":\"bytes32\"}],\"name\":\"claim\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"coins\",\"outputs\":[{\"internalType\":\"bytes20\",\"name\":\"owner\",\"type\":\"bytes20\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"addresspayable\",\"name\":\"_destination\",\"type\":\"address\"}],\"name\":\"hashToSign\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"itemCount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"bytes20[]\",\"name\":\"_owners\",\"type\":\"bytes20[]\"},{\"internalType\":\"uint256[]\",\"name\":\"_amounts\",\"type\":\"uint256[]\"},{\"internalType\":\"bytes20[]\",\"name\":\"_blacklist\",\"type\":\"bytes20[]\"}],\"name\":\"setSnapshot\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"signerAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"totalAmount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_item_id\",\"type\":\"uint256\"},{\"internalType\":\"addresspayable\",\"name\":\"_destination\",\"type\":\"address\"},{\"internalType\":\"uint8\",\"name\":\"sig_v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"sig_r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"sig_s\",\"type\":\"bytes32\"}],\"name\":\"verifyClaim\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]"
    32  
    33  // Gen2MigrationBin is the compiled bytecode used for deploying new contracts.
    34  const Gen2MigrationBin = `608060405234801561001057600080fd5b506040516113a73803806113a78339818101604052606081101561003357600080fd5b5080516020820151604090920151600080546001600160a01b039384166001600160a01b031991821617909155600193909355600280549290911691909216179055611323806100846000396000f3fe6080604052600436106100bc5760003560e01c80635b7633d011610074578063a723b35a1161004e578063a723b35a14610385578063c6610657146103d7578063f71214901461043d576100bc565b80635b7633d0146102385780635b987fc91461024d5780636bfb0d0114610370576100bc565b80633af973b1116100a55780633af973b11461018a578063476ce0c31461019f57806356254fa2146101fa576100bc565b80630a96cb49146101235780631a39d8ef14610175575b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420737570706f7274656400000000000000000000000000000000000000604482015290519081900360640190fd5b34801561012f57600080fd5b506101636004803603602081101561014657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610498565b60408051918252519081900360200190f35b34801561018157600080fd5b50610163610518565b34801561019657600080fd5b5061016361051e565b3480156101ab57600080fd5b50610163600480360360a08110156101c257600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff6020820135169060ff6040820135169060608101359060800135610524565b34801561020657600080fd5b5061020f610940565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561024457600080fd5b5061020f61095c565b34801561025957600080fd5b5061036e6004803603606081101561027057600080fd5b81019060208101813564010000000081111561028b57600080fd5b82018360208201111561029d57600080fd5b803590602001918460208302840111640100000000831117156102bf57600080fd5b9193909290916020810190356401000000008111156102dd57600080fd5b8201836020820111156102ef57600080fd5b8035906020019184602083028401116401000000008311171561031157600080fd5b91939092909160208101903564010000000081111561032f57600080fd5b82018360208201111561034157600080fd5b8035906020019184602083028401116401000000008311171561036357600080fd5b509092509050610978565b005b34801561037c57600080fd5b50610163610cfb565b34801561039157600080fd5b5061036e600480360360408110156103a857600080fd5b50803590602001357fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016610d02565b3480156103e357600080fd5b50610401600480360360208110156103fa57600080fd5b50356110fd565b604080517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000909316835260208301919091528051918290030190f35b34801561044957600080fd5b5061036e600480360360a081101561046057600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff6020820135169060ff604082013516906060810135906080013561112d565b6001546040805160609390931b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166020808501919091527f7c7c456e657267692047656e2032206d6967726174696f6e20636c61696d7c7c60348501526054808501939093528151808503909301835260749093019052805191012090565b60035481565b60015481565b600454600090861061059757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f496e76616c696420494400000000000000000000000000000000000000000000604482015290519081900360640190fd5b60006105a286610498565b9050600060018287878760405160008152602001604052604051808581526020018460ff1660ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015610603573d6000803e3d6000fd5b5050506020604051035160601b9050806bffffffffffffffffffffffff19166004898154811061062f57fe5b600091825260209091206002909102015460601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016146106d157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496e76616c6964207369676e6174757265000000000000000000000000000000604482015290519081900360640190fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638abf60776040518163ffffffff1660e01b815260040160206040518083038186803b15801561073a57600080fd5b505afa15801561074e573d6000803e3d6000fd5b505050506040513d602081101561076457600080fd5b5051604080517ffe575a87000000000000000000000000000000000000000000000000000000008152606085901c6004820152905191925073ffffffffffffffffffffffffffffffffffffffff83169163fe575a8791602480820192602092909190829003018186803b1580156107da57600080fd5b505afa1580156107ee573d6000803e3d6000fd5b505050506040513d602081101561080457600080fd5b50511561087257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4f776e657220697320626c61636b6c6973746564000000000000000000000000604482015290519081900360640190fd5b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000821660009081526005602052604090205460ff161561091357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4f776e6572206973206861726420626c61636b6c697374656400000000000000604482015290519081900360640190fd5b6004898154811061092057fe5b906000526020600020906002020160010154935050505095945050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b600454156109e757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f416c726561647920736574000000000000000000000000000000000000000000604482015290519081900360640190fd5b60025473ffffffffffffffffffffffffffffffffffffffff163314610a6d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c69642073656e646572000000000000000000000000000000000000604482015290519081900360640190fd5b848314610adb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f6d61746368206c656e6774680000000000000000000000000000000000000000604482015290519081900360640190fd5b84610b4757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f6861732064617461000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b84610b53600482611276565b506000855b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019015610c4157878782818110610b8d57fe5b905060200201356bffffffffffffffffffffffff191660048281548110610bb057fe5b6000918252602090912060029091020180547fffffffffffffffffffffffff00000000000000000000000000000000000000001660609290921c919091179055858582818110610bfc57fe5b9050602002013560048281548110610c1057fe5b906000526020600020906002020160010181905550858582818110610c3157fe5b9050602002013582019150610b58565b506003819055815b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019015610cf157600160056000868685818110610c8457fe5b602090810292909201357fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001683525081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055610c49565b5050505050505050565b6004545b90565b6004548210610d7257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f496e76616c696420494400000000000000000000000000000000000000000000604482015290519081900360640190fd5b600060048381548110610d8157fe5b906000526020600020906002020160010154905060008111610e0457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f416c7265616479207370656e7400000000000000000000000000000000000000604482015290519081900360640190fd5b816bffffffffffffffffffffffff191660048481548110610e2157fe5b600091825260209091206002909102015460601b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001614610ec357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c6964204f776e657200000000000000000000000000000000000000604482015290519081900360640190fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638abf60776040518163ffffffff1660e01b815260040160206040518083038186803b158015610f2c57600080fd5b505afa158015610f40573d6000803e3d6000fd5b505050506040513d6020811015610f5657600080fd5b505190503373ffffffffffffffffffffffffffffffffffffffff821614610fde57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e6f7420626c61636b6c69737420726567697374727900000000000000000000604482015290519081900360640190fd5b600060048581548110610fed57fe5b9060005260206000209060020201600101819055508073ffffffffffffffffffffffffffffffffffffffff1663f44411526040518163ffffffff1660e01b815260040160206040518083038186803b15801561104857600080fd5b505afa15801561105c573d6000803e3d6000fd5b505050506040513d602081101561107257600080fd5b5051604080517fd7bb99ba000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff9092169163d7bb99ba918591600480830192600092919082900301818588803b1580156110de57600080fd5b505af11580156110f2573d6000803e3d6000fd5b505050505050505050565b6004818154811061110a57fe5b60009182526020909120600290910201805460019091015460609190911b915082565b600061113c8686868686610524565b9050600081116111ad57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f416c7265616479207370656e7400000000000000000000000000000000000000604482015290519081900360640190fd5b6000600487815481106111bc57fe5b6000918252602091829020600160029092020101919091556040805188815273ffffffffffffffffffffffffffffffffffffffff881692810192909252818101839052517ffd90f074a575cd9336850f79afca1e89f5ca1bf434d82a21ca5d6d4a87a724a49181900360600190a160405173ffffffffffffffffffffffffffffffffffffffff86169082156108fc029083906000818181858888f1935050505015801561126d573d6000803e3d6000fd5b50505050505050565b8154818355818111156112a2576002028160020283600052602060002091820191016112a291906112a7565b505050565b610cff91905b808211156112ea5780547fffffffffffffffffffffffff0000000000000000000000000000000000000000168155600060018201556002016112ad565b509056fea265627a7a72315820aa53da5d954f9a7b365d772152535d32935cdc8feb9499c05294ff65df1291d764736f6c63430005100032`
    35  
    36  // DeployGen2Migration deploys a new Ethereum contract, binding an instance of Gen2Migration to it.
    37  func DeployGen2Migration(auth *bind.TransactOpts, backend bind.ContractBackend, _blacklist_proxy common.Address, _chain_id *big.Int, _signer common.Address) (common.Address, *types.Transaction, *Gen2Migration, error) {
    38  	parsed, err := abi.JSON(strings.NewReader(Gen2MigrationABI))
    39  	if err != nil {
    40  		return common.Address{}, nil, nil, err
    41  	}
    42  	address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(Gen2MigrationBin), backend, _blacklist_proxy, _chain_id, _signer)
    43  	if err != nil {
    44  		return common.Address{}, nil, nil, err
    45  	}
    46  	return address, tx, &Gen2Migration{Gen2MigrationCaller: Gen2MigrationCaller{contract: contract}, Gen2MigrationTransactor: Gen2MigrationTransactor{contract: contract}, Gen2MigrationFilterer: Gen2MigrationFilterer{contract: contract}}, nil
    47  }
    48  
    49  // Gen2MigrationBin is the compiled bytecode of contract after deployment.
    50  const Gen2MigrationRuntimeBin = `6080604052600436106100bc5760003560e01c80635b7633d011610074578063a723b35a1161004e578063a723b35a14610385578063c6610657146103d7578063f71214901461043d576100bc565b80635b7633d0146102385780635b987fc91461024d5780636bfb0d0114610370576100bc565b80633af973b1116100a55780633af973b11461018a578063476ce0c31461019f57806356254fa2146101fa576100bc565b80630a96cb49146101235780631a39d8ef14610175575b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420737570706f7274656400000000000000000000000000000000000000604482015290519081900360640190fd5b34801561012f57600080fd5b506101636004803603602081101561014657600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610498565b60408051918252519081900360200190f35b34801561018157600080fd5b50610163610518565b34801561019657600080fd5b5061016361051e565b3480156101ab57600080fd5b50610163600480360360a08110156101c257600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff6020820135169060ff6040820135169060608101359060800135610524565b34801561020657600080fd5b5061020f610940565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b34801561024457600080fd5b5061020f61095c565b34801561025957600080fd5b5061036e6004803603606081101561027057600080fd5b81019060208101813564010000000081111561028b57600080fd5b82018360208201111561029d57600080fd5b803590602001918460208302840111640100000000831117156102bf57600080fd5b9193909290916020810190356401000000008111156102dd57600080fd5b8201836020820111156102ef57600080fd5b8035906020019184602083028401116401000000008311171561031157600080fd5b91939092909160208101903564010000000081111561032f57600080fd5b82018360208201111561034157600080fd5b8035906020019184602083028401116401000000008311171561036357600080fd5b509092509050610978565b005b34801561037c57600080fd5b50610163610cfb565b34801561039157600080fd5b5061036e600480360360408110156103a857600080fd5b50803590602001357fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016610d02565b3480156103e357600080fd5b50610401600480360360208110156103fa57600080fd5b50356110fd565b604080517fffffffffffffffffffffffffffffffffffffffff000000000000000000000000909316835260208301919091528051918290030190f35b34801561044957600080fd5b5061036e600480360360a081101561046057600080fd5b5080359073ffffffffffffffffffffffffffffffffffffffff6020820135169060ff604082013516906060810135906080013561112d565b6001546040805160609390931b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000166020808501919091527f7c7c456e657267692047656e2032206d6967726174696f6e20636c61696d7c7c60348501526054808501939093528151808503909301835260749093019052805191012090565b60035481565b60015481565b600454600090861061059757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f496e76616c696420494400000000000000000000000000000000000000000000604482015290519081900360640190fd5b60006105a286610498565b9050600060018287878760405160008152602001604052604051808581526020018460ff1660ff1681526020018381526020018281526020019450505050506020604051602081039080840390855afa158015610603573d6000803e3d6000fd5b5050506020604051035160601b9050806bffffffffffffffffffffffff19166004898154811061062f57fe5b600091825260209091206002909102015460601b7fffffffffffffffffffffffffffffffffffffffff00000000000000000000000016146106d157604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601160248201527f496e76616c6964207369676e6174757265000000000000000000000000000000604482015290519081900360640190fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638abf60776040518163ffffffff1660e01b815260040160206040518083038186803b15801561073a57600080fd5b505afa15801561074e573d6000803e3d6000fd5b505050506040513d602081101561076457600080fd5b5051604080517ffe575a87000000000000000000000000000000000000000000000000000000008152606085901c6004820152905191925073ffffffffffffffffffffffffffffffffffffffff83169163fe575a8791602480820192602092909190829003018186803b1580156107da57600080fd5b505afa1580156107ee573d6000803e3d6000fd5b505050506040513d602081101561080457600080fd5b50511561087257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601460248201527f4f776e657220697320626c61636b6c6973746564000000000000000000000000604482015290519081900360640190fd5b7fffffffffffffffffffffffffffffffffffffffff000000000000000000000000821660009081526005602052604090205460ff161561091357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601960248201527f4f776e6572206973206861726420626c61636b6c697374656400000000000000604482015290519081900360640190fd5b6004898154811061092057fe5b906000526020600020906002020160010154935050505095945050505050565b60005473ffffffffffffffffffffffffffffffffffffffff1681565b60025473ffffffffffffffffffffffffffffffffffffffff1681565b600454156109e757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600b60248201527f416c726561647920736574000000000000000000000000000000000000000000604482015290519081900360640190fd5b60025473ffffffffffffffffffffffffffffffffffffffff163314610a6d57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600e60248201527f496e76616c69642073656e646572000000000000000000000000000000000000604482015290519081900360640190fd5b848314610adb57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600c60248201527f6d61746368206c656e6774680000000000000000000000000000000000000000604482015290519081900360640190fd5b84610b4757604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600860248201527f6861732064617461000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b84610b53600482611276565b506000855b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019015610c4157878782818110610b8d57fe5b905060200201356bffffffffffffffffffffffff191660048281548110610bb057fe5b6000918252602090912060029091020180547fffffffffffffffffffffffff00000000000000000000000000000000000000001660609290921c919091179055858582818110610bfc57fe5b9050602002013560048281548110610c1057fe5b906000526020600020906002020160010181905550858582818110610c3157fe5b9050602002013582019150610b58565b506003819055815b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019015610cf157600160056000868685818110610c8457fe5b602090810292909201357fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001683525081019190915260400160002080547fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff0016911515919091179055610c49565b5050505050505050565b6004545b90565b6004548210610d7257604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600a60248201527f496e76616c696420494400000000000000000000000000000000000000000000604482015290519081900360640190fd5b600060048381548110610d8157fe5b906000526020600020906002020160010154905060008111610e0457604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f416c7265616479207370656e7400000000000000000000000000000000000000604482015290519081900360640190fd5b816bffffffffffffffffffffffff191660048481548110610e2157fe5b600091825260209091206002909102015460601b7fffffffffffffffffffffffffffffffffffffffff0000000000000000000000001614610ec357604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f496e76616c6964204f776e657200000000000000000000000000000000000000604482015290519081900360640190fd5b60008060009054906101000a900473ffffffffffffffffffffffffffffffffffffffff1673ffffffffffffffffffffffffffffffffffffffff16638abf60776040518163ffffffff1660e01b815260040160206040518083038186803b158015610f2c57600080fd5b505afa158015610f40573d6000803e3d6000fd5b505050506040513d6020811015610f5657600080fd5b505190503373ffffffffffffffffffffffffffffffffffffffff821614610fde57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152601660248201527f4e6f7420626c61636b6c69737420726567697374727900000000000000000000604482015290519081900360640190fd5b600060048581548110610fed57fe5b9060005260206000209060020201600101819055508073ffffffffffffffffffffffffffffffffffffffff1663f44411526040518163ffffffff1660e01b815260040160206040518083038186803b15801561104857600080fd5b505afa15801561105c573d6000803e3d6000fd5b505050506040513d602081101561107257600080fd5b5051604080517fd7bb99ba000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff9092169163d7bb99ba918591600480830192600092919082900301818588803b1580156110de57600080fd5b505af11580156110f2573d6000803e3d6000fd5b505050505050505050565b6004818154811061110a57fe5b60009182526020909120600290910201805460019091015460609190911b915082565b600061113c8686868686610524565b9050600081116111ad57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f416c7265616479207370656e7400000000000000000000000000000000000000604482015290519081900360640190fd5b6000600487815481106111bc57fe5b6000918252602091829020600160029092020101919091556040805188815273ffffffffffffffffffffffffffffffffffffffff881692810192909252818101839052517ffd90f074a575cd9336850f79afca1e89f5ca1bf434d82a21ca5d6d4a87a724a49181900360600190a160405173ffffffffffffffffffffffffffffffffffffffff86169082156108fc029083906000818181858888f1935050505015801561126d573d6000803e3d6000fd5b50505050505050565b8154818355818111156112a2576002028160020283600052602060002091820191016112a291906112a7565b505050565b610cff91905b808211156112ea5780547fffffffffffffffffffffffff0000000000000000000000000000000000000000168155600060018201556002016112ad565b509056fea265627a7a72315820aa53da5d954f9a7b365d772152535d32935cdc8feb9499c05294ff65df1291d764736f6c63430005100032`
    51  
    52  // Gen2Migration is an auto generated Go binding around an Ethereum contract.
    53  type Gen2Migration struct {
    54  	Gen2MigrationCaller     // Read-only binding to the contract
    55  	Gen2MigrationTransactor // Write-only binding to the contract
    56  	Gen2MigrationFilterer   // Log filterer for contract events
    57  }
    58  
    59  // Gen2MigrationCaller is an auto generated read-only Go binding around an Ethereum contract.
    60  type Gen2MigrationCaller struct {
    61  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    62  }
    63  
    64  // Gen2MigrationTransactor is an auto generated write-only Go binding around an Ethereum contract.
    65  type Gen2MigrationTransactor struct {
    66  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    67  }
    68  
    69  // Gen2MigrationFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
    70  type Gen2MigrationFilterer struct {
    71  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    72  }
    73  
    74  // Gen2MigrationSession is an auto generated Go binding around an Ethereum contract,
    75  // with pre-set call and transact options.
    76  type Gen2MigrationSession struct {
    77  	Contract     *Gen2Migration    // Generic contract binding to set the session for
    78  	CallOpts     bind.CallOpts     // Call options to use throughout this session
    79  	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
    80  }
    81  
    82  // Gen2MigrationCallerSession is an auto generated read-only Go binding around an Ethereum contract,
    83  // with pre-set call options.
    84  type Gen2MigrationCallerSession struct {
    85  	Contract *Gen2MigrationCaller // Generic contract caller binding to set the session for
    86  	CallOpts bind.CallOpts        // Call options to use throughout this session
    87  }
    88  
    89  // Gen2MigrationTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
    90  // with pre-set transact options.
    91  type Gen2MigrationTransactorSession struct {
    92  	Contract     *Gen2MigrationTransactor // Generic contract transactor binding to set the session for
    93  	TransactOpts bind.TransactOpts        // Transaction auth options to use throughout this session
    94  }
    95  
    96  // Gen2MigrationRaw is an auto generated low-level Go binding around an Ethereum contract.
    97  type Gen2MigrationRaw struct {
    98  	Contract *Gen2Migration // Generic contract binding to access the raw methods on
    99  }
   100  
   101  // Gen2MigrationCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
   102  type Gen2MigrationCallerRaw struct {
   103  	Contract *Gen2MigrationCaller // Generic read-only contract binding to access the raw methods on
   104  }
   105  
   106  // Gen2MigrationTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
   107  type Gen2MigrationTransactorRaw struct {
   108  	Contract *Gen2MigrationTransactor // Generic write-only contract binding to access the raw methods on
   109  }
   110  
   111  // NewGen2Migration creates a new instance of Gen2Migration, bound to a specific deployed contract.
   112  func NewGen2Migration(address common.Address, backend bind.ContractBackend) (*Gen2Migration, error) {
   113  	contract, err := bindGen2Migration(address, backend, backend, backend)
   114  	if err != nil {
   115  		return nil, err
   116  	}
   117  	return &Gen2Migration{Gen2MigrationCaller: Gen2MigrationCaller{contract: contract}, Gen2MigrationTransactor: Gen2MigrationTransactor{contract: contract}, Gen2MigrationFilterer: Gen2MigrationFilterer{contract: contract}}, nil
   118  }
   119  
   120  // NewGen2MigrationCaller creates a new read-only instance of Gen2Migration, bound to a specific deployed contract.
   121  func NewGen2MigrationCaller(address common.Address, caller bind.ContractCaller) (*Gen2MigrationCaller, error) {
   122  	contract, err := bindGen2Migration(address, caller, nil, nil)
   123  	if err != nil {
   124  		return nil, err
   125  	}
   126  	return &Gen2MigrationCaller{contract: contract}, nil
   127  }
   128  
   129  // NewGen2MigrationTransactor creates a new write-only instance of Gen2Migration, bound to a specific deployed contract.
   130  func NewGen2MigrationTransactor(address common.Address, transactor bind.ContractTransactor) (*Gen2MigrationTransactor, error) {
   131  	contract, err := bindGen2Migration(address, nil, transactor, nil)
   132  	if err != nil {
   133  		return nil, err
   134  	}
   135  	return &Gen2MigrationTransactor{contract: contract}, nil
   136  }
   137  
   138  // NewGen2MigrationFilterer creates a new log filterer instance of Gen2Migration, bound to a specific deployed contract.
   139  func NewGen2MigrationFilterer(address common.Address, filterer bind.ContractFilterer) (*Gen2MigrationFilterer, error) {
   140  	contract, err := bindGen2Migration(address, nil, nil, filterer)
   141  	if err != nil {
   142  		return nil, err
   143  	}
   144  	return &Gen2MigrationFilterer{contract: contract}, nil
   145  }
   146  
   147  // bindGen2Migration binds a generic wrapper to an already deployed contract.
   148  func bindGen2Migration(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   149  	parsed, err := abi.JSON(strings.NewReader(Gen2MigrationABI))
   150  	if err != nil {
   151  		return nil, err
   152  	}
   153  	return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
   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 (_Gen2Migration *Gen2MigrationRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   161  	return _Gen2Migration.Contract.Gen2MigrationCaller.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 (_Gen2Migration *Gen2MigrationRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   167  	return _Gen2Migration.Contract.Gen2MigrationTransactor.contract.Transfer(opts)
   168  }
   169  
   170  // Transact invokes the (paid) contract method with params as input values.
   171  func (_Gen2Migration *Gen2MigrationRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   172  	return _Gen2Migration.Contract.Gen2MigrationTransactor.contract.Transact(opts, method, params...)
   173  }
   174  
   175  // Call invokes the (constant) contract method with params as input values and
   176  // sets the output to result. The result type might be a single field for simple
   177  // returns, a slice of interfaces for anonymous returns and a struct for named
   178  // returns.
   179  func (_Gen2Migration *Gen2MigrationCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   180  	return _Gen2Migration.Contract.contract.Call(opts, result, method, params...)
   181  }
   182  
   183  // Transfer initiates a plain transaction to move funds to the contract, calling
   184  // its default method if one is available.
   185  func (_Gen2Migration *Gen2MigrationTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   186  	return _Gen2Migration.Contract.contract.Transfer(opts)
   187  }
   188  
   189  // Transact invokes the (paid) contract method with params as input values.
   190  func (_Gen2Migration *Gen2MigrationTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   191  	return _Gen2Migration.Contract.contract.Transact(opts, method, params...)
   192  }
   193  
   194  // BlacklistProxy is a free data retrieval call binding the contract method 0x56254fa2.
   195  //
   196  // Solidity: function blacklist_proxy() constant returns(address)
   197  func (_Gen2Migration *Gen2MigrationCaller) BlacklistProxy(opts *bind.CallOpts) (common.Address, error) {
   198  	var (
   199  		ret0 = new(common.Address)
   200  	)
   201  	out := ret0
   202  	err := _Gen2Migration.contract.Call(opts, out, "blacklist_proxy")
   203  	return *ret0, err
   204  }
   205  
   206  // BlacklistProxy is a free data retrieval call binding the contract method 0x56254fa2.
   207  //
   208  // Solidity: function blacklist_proxy() constant returns(address)
   209  func (_Gen2Migration *Gen2MigrationSession) BlacklistProxy() (common.Address, error) {
   210  	return _Gen2Migration.Contract.BlacklistProxy(&_Gen2Migration.CallOpts)
   211  }
   212  
   213  // BlacklistProxy is a free data retrieval call binding the contract method 0x56254fa2.
   214  //
   215  // Solidity: function blacklist_proxy() constant returns(address)
   216  func (_Gen2Migration *Gen2MigrationCallerSession) BlacklistProxy() (common.Address, error) {
   217  	return _Gen2Migration.Contract.BlacklistProxy(&_Gen2Migration.CallOpts)
   218  }
   219  
   220  // ChainId is a free data retrieval call binding the contract method 0x3af973b1.
   221  //
   222  // Solidity: function chain_id() constant returns(uint256)
   223  func (_Gen2Migration *Gen2MigrationCaller) ChainId(opts *bind.CallOpts) (*big.Int, error) {
   224  	var (
   225  		ret0 = new(*big.Int)
   226  	)
   227  	out := ret0
   228  	err := _Gen2Migration.contract.Call(opts, out, "chain_id")
   229  	return *ret0, err
   230  }
   231  
   232  // ChainId is a free data retrieval call binding the contract method 0x3af973b1.
   233  //
   234  // Solidity: function chain_id() constant returns(uint256)
   235  func (_Gen2Migration *Gen2MigrationSession) ChainId() (*big.Int, error) {
   236  	return _Gen2Migration.Contract.ChainId(&_Gen2Migration.CallOpts)
   237  }
   238  
   239  // ChainId is a free data retrieval call binding the contract method 0x3af973b1.
   240  //
   241  // Solidity: function chain_id() constant returns(uint256)
   242  func (_Gen2Migration *Gen2MigrationCallerSession) ChainId() (*big.Int, error) {
   243  	return _Gen2Migration.Contract.ChainId(&_Gen2Migration.CallOpts)
   244  }
   245  
   246  // Coins is a free data retrieval call binding the contract method 0xc6610657.
   247  //
   248  // Solidity: function coins(uint256 ) constant returns(bytes20 owner, uint256 amount)
   249  func (_Gen2Migration *Gen2MigrationCaller) Coins(opts *bind.CallOpts, arg0 *big.Int) (struct {
   250  	Owner  [20]byte
   251  	Amount *big.Int
   252  }, error) {
   253  	ret := new(struct {
   254  		Owner  [20]byte
   255  		Amount *big.Int
   256  	})
   257  	out := ret
   258  	err := _Gen2Migration.contract.Call(opts, out, "coins", arg0)
   259  	return *ret, err
   260  }
   261  
   262  // Coins is a free data retrieval call binding the contract method 0xc6610657.
   263  //
   264  // Solidity: function coins(uint256 ) constant returns(bytes20 owner, uint256 amount)
   265  func (_Gen2Migration *Gen2MigrationSession) Coins(arg0 *big.Int) (struct {
   266  	Owner  [20]byte
   267  	Amount *big.Int
   268  }, error) {
   269  	return _Gen2Migration.Contract.Coins(&_Gen2Migration.CallOpts, arg0)
   270  }
   271  
   272  // Coins is a free data retrieval call binding the contract method 0xc6610657.
   273  //
   274  // Solidity: function coins(uint256 ) constant returns(bytes20 owner, uint256 amount)
   275  func (_Gen2Migration *Gen2MigrationCallerSession) Coins(arg0 *big.Int) (struct {
   276  	Owner  [20]byte
   277  	Amount *big.Int
   278  }, error) {
   279  	return _Gen2Migration.Contract.Coins(&_Gen2Migration.CallOpts, arg0)
   280  }
   281  
   282  // HashToSign is a free data retrieval call binding the contract method 0x0a96cb49.
   283  //
   284  // Solidity: function hashToSign(address _destination) constant returns(bytes32)
   285  func (_Gen2Migration *Gen2MigrationCaller) HashToSign(opts *bind.CallOpts, _destination common.Address) ([32]byte, error) {
   286  	var (
   287  		ret0 = new([32]byte)
   288  	)
   289  	out := ret0
   290  	err := _Gen2Migration.contract.Call(opts, out, "hashToSign", _destination)
   291  	return *ret0, err
   292  }
   293  
   294  // HashToSign is a free data retrieval call binding the contract method 0x0a96cb49.
   295  //
   296  // Solidity: function hashToSign(address _destination) constant returns(bytes32)
   297  func (_Gen2Migration *Gen2MigrationSession) HashToSign(_destination common.Address) ([32]byte, error) {
   298  	return _Gen2Migration.Contract.HashToSign(&_Gen2Migration.CallOpts, _destination)
   299  }
   300  
   301  // HashToSign is a free data retrieval call binding the contract method 0x0a96cb49.
   302  //
   303  // Solidity: function hashToSign(address _destination) constant returns(bytes32)
   304  func (_Gen2Migration *Gen2MigrationCallerSession) HashToSign(_destination common.Address) ([32]byte, error) {
   305  	return _Gen2Migration.Contract.HashToSign(&_Gen2Migration.CallOpts, _destination)
   306  }
   307  
   308  // ItemCount is a free data retrieval call binding the contract method 0x6bfb0d01.
   309  //
   310  // Solidity: function itemCount() constant returns(uint256)
   311  func (_Gen2Migration *Gen2MigrationCaller) ItemCount(opts *bind.CallOpts) (*big.Int, error) {
   312  	var (
   313  		ret0 = new(*big.Int)
   314  	)
   315  	out := ret0
   316  	err := _Gen2Migration.contract.Call(opts, out, "itemCount")
   317  	return *ret0, err
   318  }
   319  
   320  // ItemCount is a free data retrieval call binding the contract method 0x6bfb0d01.
   321  //
   322  // Solidity: function itemCount() constant returns(uint256)
   323  func (_Gen2Migration *Gen2MigrationSession) ItemCount() (*big.Int, error) {
   324  	return _Gen2Migration.Contract.ItemCount(&_Gen2Migration.CallOpts)
   325  }
   326  
   327  // ItemCount is a free data retrieval call binding the contract method 0x6bfb0d01.
   328  //
   329  // Solidity: function itemCount() constant returns(uint256)
   330  func (_Gen2Migration *Gen2MigrationCallerSession) ItemCount() (*big.Int, error) {
   331  	return _Gen2Migration.Contract.ItemCount(&_Gen2Migration.CallOpts)
   332  }
   333  
   334  // SignerAddress is a free data retrieval call binding the contract method 0x5b7633d0.
   335  //
   336  // Solidity: function signerAddress() constant returns(address)
   337  func (_Gen2Migration *Gen2MigrationCaller) SignerAddress(opts *bind.CallOpts) (common.Address, error) {
   338  	var (
   339  		ret0 = new(common.Address)
   340  	)
   341  	out := ret0
   342  	err := _Gen2Migration.contract.Call(opts, out, "signerAddress")
   343  	return *ret0, err
   344  }
   345  
   346  // SignerAddress is a free data retrieval call binding the contract method 0x5b7633d0.
   347  //
   348  // Solidity: function signerAddress() constant returns(address)
   349  func (_Gen2Migration *Gen2MigrationSession) SignerAddress() (common.Address, error) {
   350  	return _Gen2Migration.Contract.SignerAddress(&_Gen2Migration.CallOpts)
   351  }
   352  
   353  // SignerAddress is a free data retrieval call binding the contract method 0x5b7633d0.
   354  //
   355  // Solidity: function signerAddress() constant returns(address)
   356  func (_Gen2Migration *Gen2MigrationCallerSession) SignerAddress() (common.Address, error) {
   357  	return _Gen2Migration.Contract.SignerAddress(&_Gen2Migration.CallOpts)
   358  }
   359  
   360  // TotalAmount is a free data retrieval call binding the contract method 0x1a39d8ef.
   361  //
   362  // Solidity: function totalAmount() constant returns(uint256)
   363  func (_Gen2Migration *Gen2MigrationCaller) TotalAmount(opts *bind.CallOpts) (*big.Int, error) {
   364  	var (
   365  		ret0 = new(*big.Int)
   366  	)
   367  	out := ret0
   368  	err := _Gen2Migration.contract.Call(opts, out, "totalAmount")
   369  	return *ret0, err
   370  }
   371  
   372  // TotalAmount is a free data retrieval call binding the contract method 0x1a39d8ef.
   373  //
   374  // Solidity: function totalAmount() constant returns(uint256)
   375  func (_Gen2Migration *Gen2MigrationSession) TotalAmount() (*big.Int, error) {
   376  	return _Gen2Migration.Contract.TotalAmount(&_Gen2Migration.CallOpts)
   377  }
   378  
   379  // TotalAmount is a free data retrieval call binding the contract method 0x1a39d8ef.
   380  //
   381  // Solidity: function totalAmount() constant returns(uint256)
   382  func (_Gen2Migration *Gen2MigrationCallerSession) TotalAmount() (*big.Int, error) {
   383  	return _Gen2Migration.Contract.TotalAmount(&_Gen2Migration.CallOpts)
   384  }
   385  
   386  // VerifyClaim is a free data retrieval call binding the contract method 0x476ce0c3.
   387  //
   388  // Solidity: function verifyClaim(uint256 _item_id, address _destination, uint8 sig_v, bytes32 sig_r, bytes32 sig_s) constant returns(uint256 amount)
   389  func (_Gen2Migration *Gen2MigrationCaller) VerifyClaim(opts *bind.CallOpts, _item_id *big.Int, _destination common.Address, sig_v uint8, sig_r [32]byte, sig_s [32]byte) (*big.Int, error) {
   390  	var (
   391  		ret0 = new(*big.Int)
   392  	)
   393  	out := ret0
   394  	err := _Gen2Migration.contract.Call(opts, out, "verifyClaim", _item_id, _destination, sig_v, sig_r, sig_s)
   395  	return *ret0, err
   396  }
   397  
   398  // VerifyClaim is a free data retrieval call binding the contract method 0x476ce0c3.
   399  //
   400  // Solidity: function verifyClaim(uint256 _item_id, address _destination, uint8 sig_v, bytes32 sig_r, bytes32 sig_s) constant returns(uint256 amount)
   401  func (_Gen2Migration *Gen2MigrationSession) VerifyClaim(_item_id *big.Int, _destination common.Address, sig_v uint8, sig_r [32]byte, sig_s [32]byte) (*big.Int, error) {
   402  	return _Gen2Migration.Contract.VerifyClaim(&_Gen2Migration.CallOpts, _item_id, _destination, sig_v, sig_r, sig_s)
   403  }
   404  
   405  // VerifyClaim is a free data retrieval call binding the contract method 0x476ce0c3.
   406  //
   407  // Solidity: function verifyClaim(uint256 _item_id, address _destination, uint8 sig_v, bytes32 sig_r, bytes32 sig_s) constant returns(uint256 amount)
   408  func (_Gen2Migration *Gen2MigrationCallerSession) VerifyClaim(_item_id *big.Int, _destination common.Address, sig_v uint8, sig_r [32]byte, sig_s [32]byte) (*big.Int, error) {
   409  	return _Gen2Migration.Contract.VerifyClaim(&_Gen2Migration.CallOpts, _item_id, _destination, sig_v, sig_r, sig_s)
   410  }
   411  
   412  // BlacklistClaim is a paid mutator transaction binding the contract method 0xa723b35a.
   413  //
   414  // Solidity: function blacklistClaim(uint256 _item_id, bytes20 _owner) returns()
   415  func (_Gen2Migration *Gen2MigrationTransactor) BlacklistClaim(opts *bind.TransactOpts, _item_id *big.Int, _owner [20]byte) (*types.Transaction, error) {
   416  	return _Gen2Migration.contract.Transact(opts, "blacklistClaim", _item_id, _owner)
   417  }
   418  
   419  // BlacklistClaim is a paid mutator transaction binding the contract method 0xa723b35a.
   420  //
   421  // Solidity: function blacklistClaim(uint256 _item_id, bytes20 _owner) returns()
   422  func (_Gen2Migration *Gen2MigrationSession) BlacklistClaim(_item_id *big.Int, _owner [20]byte) (*types.Transaction, error) {
   423  	return _Gen2Migration.Contract.BlacklistClaim(&_Gen2Migration.TransactOpts, _item_id, _owner)
   424  }
   425  
   426  // BlacklistClaim is a paid mutator transaction binding the contract method 0xa723b35a.
   427  //
   428  // Solidity: function blacklistClaim(uint256 _item_id, bytes20 _owner) returns()
   429  func (_Gen2Migration *Gen2MigrationTransactorSession) BlacklistClaim(_item_id *big.Int, _owner [20]byte) (*types.Transaction, error) {
   430  	return _Gen2Migration.Contract.BlacklistClaim(&_Gen2Migration.TransactOpts, _item_id, _owner)
   431  }
   432  
   433  // Claim is a paid mutator transaction binding the contract method 0xf7121490.
   434  //
   435  // Solidity: function claim(uint256 _item_id, address _destination, uint8 sig_v, bytes32 sig_r, bytes32 sig_s) returns()
   436  func (_Gen2Migration *Gen2MigrationTransactor) Claim(opts *bind.TransactOpts, _item_id *big.Int, _destination common.Address, sig_v uint8, sig_r [32]byte, sig_s [32]byte) (*types.Transaction, error) {
   437  	return _Gen2Migration.contract.Transact(opts, "claim", _item_id, _destination, sig_v, sig_r, sig_s)
   438  }
   439  
   440  // Claim is a paid mutator transaction binding the contract method 0xf7121490.
   441  //
   442  // Solidity: function claim(uint256 _item_id, address _destination, uint8 sig_v, bytes32 sig_r, bytes32 sig_s) returns()
   443  func (_Gen2Migration *Gen2MigrationSession) Claim(_item_id *big.Int, _destination common.Address, sig_v uint8, sig_r [32]byte, sig_s [32]byte) (*types.Transaction, error) {
   444  	return _Gen2Migration.Contract.Claim(&_Gen2Migration.TransactOpts, _item_id, _destination, sig_v, sig_r, sig_s)
   445  }
   446  
   447  // Claim is a paid mutator transaction binding the contract method 0xf7121490.
   448  //
   449  // Solidity: function claim(uint256 _item_id, address _destination, uint8 sig_v, bytes32 sig_r, bytes32 sig_s) returns()
   450  func (_Gen2Migration *Gen2MigrationTransactorSession) Claim(_item_id *big.Int, _destination common.Address, sig_v uint8, sig_r [32]byte, sig_s [32]byte) (*types.Transaction, error) {
   451  	return _Gen2Migration.Contract.Claim(&_Gen2Migration.TransactOpts, _item_id, _destination, sig_v, sig_r, sig_s)
   452  }
   453  
   454  // SetSnapshot is a paid mutator transaction binding the contract method 0x5b987fc9.
   455  //
   456  // Solidity: function setSnapshot(bytes20[] _owners, uint256[] _amounts, bytes20[] _blacklist) returns()
   457  func (_Gen2Migration *Gen2MigrationTransactor) SetSnapshot(opts *bind.TransactOpts, _owners [][20]byte, _amounts []*big.Int, _blacklist [][20]byte) (*types.Transaction, error) {
   458  	return _Gen2Migration.contract.Transact(opts, "setSnapshot", _owners, _amounts, _blacklist)
   459  }
   460  
   461  // SetSnapshot is a paid mutator transaction binding the contract method 0x5b987fc9.
   462  //
   463  // Solidity: function setSnapshot(bytes20[] _owners, uint256[] _amounts, bytes20[] _blacklist) returns()
   464  func (_Gen2Migration *Gen2MigrationSession) SetSnapshot(_owners [][20]byte, _amounts []*big.Int, _blacklist [][20]byte) (*types.Transaction, error) {
   465  	return _Gen2Migration.Contract.SetSnapshot(&_Gen2Migration.TransactOpts, _owners, _amounts, _blacklist)
   466  }
   467  
   468  // SetSnapshot is a paid mutator transaction binding the contract method 0x5b987fc9.
   469  //
   470  // Solidity: function setSnapshot(bytes20[] _owners, uint256[] _amounts, bytes20[] _blacklist) returns()
   471  func (_Gen2Migration *Gen2MigrationTransactorSession) SetSnapshot(_owners [][20]byte, _amounts []*big.Int, _blacklist [][20]byte) (*types.Transaction, error) {
   472  	return _Gen2Migration.Contract.SetSnapshot(&_Gen2Migration.TransactOpts, _owners, _amounts, _blacklist)
   473  }
   474  
   475  // Gen2MigrationMigratedIterator is returned from FilterMigrated and is used to iterate over the raw logs and unpacked data for Migrated events raised by the Gen2Migration contract.
   476  type Gen2MigrationMigratedIterator struct {
   477  	Event *Gen2MigrationMigrated // Event containing the contract specifics and raw log
   478  
   479  	contract *bind.BoundContract // Generic contract to use for unpacking event data
   480  	event    string              // Event name to use for unpacking event data
   481  
   482  	logs chan types.Log        // Log channel receiving the found contract events
   483  	sub  ethereum.Subscription // Subscription for errors, completion and termination
   484  	done bool                  // Whether the subscription completed delivering logs
   485  	fail error                 // Occurred error to stop iteration
   486  }
   487  
   488  // Next advances the iterator to the subsequent event, returning whether there
   489  // are any more events found. In case of a retrieval or parsing error, false is
   490  // returned and Error() can be queried for the exact failure.
   491  func (it *Gen2MigrationMigratedIterator) Next() bool {
   492  	// If the iterator failed, stop iterating
   493  	if it.fail != nil {
   494  		return false
   495  	}
   496  	// If the iterator completed, deliver directly whatever's available
   497  	if it.done {
   498  		select {
   499  		case log := <-it.logs:
   500  			it.Event = new(Gen2MigrationMigrated)
   501  			if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   502  				it.fail = err
   503  				return false
   504  			}
   505  			it.Event.Raw = log
   506  			return true
   507  
   508  		default:
   509  			return false
   510  		}
   511  	}
   512  	// Iterator still in progress, wait for either a data or an error event
   513  	select {
   514  	case log := <-it.logs:
   515  		it.Event = new(Gen2MigrationMigrated)
   516  		if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
   517  			it.fail = err
   518  			return false
   519  		}
   520  		it.Event.Raw = log
   521  		return true
   522  
   523  	case err := <-it.sub.Err():
   524  		it.done = true
   525  		it.fail = err
   526  		return it.Next()
   527  	}
   528  }
   529  
   530  // Error returns any retrieval or parsing error occurred during filtering.
   531  func (it *Gen2MigrationMigratedIterator) Error() error {
   532  	return it.fail
   533  }
   534  
   535  // Close terminates the iteration process, releasing any pending underlying
   536  // resources.
   537  func (it *Gen2MigrationMigratedIterator) Close() error {
   538  	it.sub.Unsubscribe()
   539  	return nil
   540  }
   541  
   542  // Gen2MigrationMigrated represents a Migrated event raised by the Gen2Migration contract.
   543  type Gen2MigrationMigrated struct {
   544  	ItemId      *big.Int
   545  	Destination common.Address
   546  	Amount      *big.Int
   547  	Raw         types.Log // Blockchain specific contextual infos
   548  }
   549  
   550  // FilterMigrated is a free log retrieval operation binding the contract event 0xfd90f074a575cd9336850f79afca1e89f5ca1bf434d82a21ca5d6d4a87a724a4.
   551  //
   552  // Solidity: event Migrated(uint256 item_id, address destination, uint256 amount)
   553  func (_Gen2Migration *Gen2MigrationFilterer) FilterMigrated(opts *bind.FilterOpts) (*Gen2MigrationMigratedIterator, error) {
   554  
   555  	logs, sub, err := _Gen2Migration.contract.FilterLogs(opts, "Migrated")
   556  	if err != nil {
   557  		return nil, err
   558  	}
   559  	return &Gen2MigrationMigratedIterator{contract: _Gen2Migration.contract, event: "Migrated", logs: logs, sub: sub}, nil
   560  }
   561  
   562  // WatchMigrated is a free log subscription operation binding the contract event 0xfd90f074a575cd9336850f79afca1e89f5ca1bf434d82a21ca5d6d4a87a724a4.
   563  //
   564  // Solidity: event Migrated(uint256 item_id, address destination, uint256 amount)
   565  func (_Gen2Migration *Gen2MigrationFilterer) WatchMigrated(opts *bind.WatchOpts, sink chan<- *Gen2MigrationMigrated) (event.Subscription, error) {
   566  
   567  	logs, sub, err := _Gen2Migration.contract.WatchLogs(opts, "Migrated")
   568  	if err != nil {
   569  		return nil, err
   570  	}
   571  	return event.NewSubscription(func(quit <-chan struct{}) error {
   572  		defer sub.Unsubscribe()
   573  		for {
   574  			select {
   575  			case log := <-logs:
   576  				// New log arrived, parse the event and forward to the user
   577  				event := new(Gen2MigrationMigrated)
   578  				if err := _Gen2Migration.contract.UnpackLog(event, "Migrated", log); err != nil {
   579  					return err
   580  				}
   581  				event.Raw = log
   582  
   583  				select {
   584  				case sink <- event:
   585  				case err := <-sub.Err():
   586  					return err
   587  				case <-quit:
   588  					return nil
   589  				}
   590  			case err := <-sub.Err():
   591  				return err
   592  			case <-quit:
   593  				return nil
   594  			}
   595  		}
   596  	}), nil
   597  }