github.com/codingfuture/orig-energi3@v0.8.4/energi/abi/BlockRewardV1.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  // BlockRewardV1ABI is the input ABI used to generate the binding from.
    31  const BlockRewardV1ABI = "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_proxy\",\"type\":\"address\"},{\"internalType\":\"contractIGovernedProxy[]\",\"name\":\"_reward_proxies\",\"type\":\"address[]\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"fallback\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractIGovernedContract\",\"name\":\"_newImpl\",\"type\":\"address\"}],\"name\":\"destroy\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_blockNumber\",\"type\":\"uint256\"}],\"name\":\"getReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"internalType\":\"contractIGovernedContract\",\"name\":\"_oldImpl\",\"type\":\"address\"}],\"name\":\"migrate\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"proxy\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"reward\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"reward_proxies\",\"outputs\":[{\"internalType\":\"contractIGovernedProxy\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]"
    32  
    33  // BlockRewardV1Bin is the compiled bytecode used for deploying new contracts.
    34  const BlockRewardV1Bin = `608060405234801561001057600080fd5b5060405161099a38038061099a8339818101604052604081101561003357600080fd5b81516020830180516040519294929383019291908464010000000082111561005a57600080fd5b90830190602082018581111561006f57600080fd5b825186602082028301116401000000008211171561008c57600080fd5b82525081516020918201928201910280838360005b838110156100b95781810151838201526020016100a1565b50505050919091016040525050600080546001600160a01b0319166001600160a01b0386161781559150505b81518110156101415760028282815181106100fc57fe5b60209081029190910181015182546001808201855560009485529290932090920180546001600160a01b0319166001600160a01b0390931692909217909155016100e5565b505050610847806101536000396000f3fe6080604052600436106100645760003560e01c80633c92fb74116100435780633c92fb7414610151578063ce5494bb146101a4578063ec556889146101e457610064565b8062f55d9d146100cb5780631c4b774b1461010d578063228cb73314610149575b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420737570706f7274656400000000000000000000000000000000000000604482015290519081900360640190fd5b3480156100d757600080fd5b5061010b600480360360208110156100ee57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166101f9565b005b34801561011957600080fd5b506101376004803603602081101561013057600080fd5b50356102a1565b60408051918252519081900360200190f35b61010b610429565b34801561015d57600080fd5b5061017b6004803603602081101561017457600080fd5b5035610734565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101b057600080fd5b5061010b600480360360208110156101c757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610768565b3480156101f057600080fd5b5061017b6107f6565b60005473ffffffffffffffffffffffffffffffffffffffff16331461027f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f742070726f78790000000000000000000000000000000000000000000000604482015290519081900360640190fd5b610288816107f3565b8073ffffffffffffffffffffffffffffffffffffffff16ff5b6002546000905b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019015610423576000600282815481106102e057fe5b60009182526020918290200154604080517f8abf6077000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff90921692638abf607792600480840193829003018186803b15801561034f57600080fd5b505afa158015610363573d6000803e3d6000fd5b505050506040513d602081101561037957600080fd5b5051604080517f1c4b774b00000000000000000000000000000000000000000000000000000000815260048101879052905191925073ffffffffffffffffffffffffffffffffffffffff831691631c4b774b91602480820192602092909190829003018186803b1580156103ec57600080fd5b505afa158015610400573d6000803e3d6000fd5b505050506040513d602081101561041657600080fd5b50519290920191506102a8565b50919050565b6001541561049857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f5265656e74727900000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600180556002546000612710825a816104ad57fe5b0403905060005b8281101561072a576000600282815481106104cb57fe5b60009182526020918290200154604080517f8abf6077000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff90921692638abf607792600480840193829003018186803b15801561053a57600080fd5b505afa15801561054e573d6000803e3d6000fd5b505050506040513d602081101561056457600080fd5b5051604080517f1c4b774b000000000000000000000000000000000000000000000000000000008152436004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff841691631c4b774b9161271091602480820192602092909190829003018187803b1580156105dd57600080fd5b5086fa1580156105f1573d6000803e3d6000fd5b50505050506040513d602081101561060857600080fd5b5051604080517f228cb7330000000000000000000000000000000000000000000000000000000060208281019190915282518083038201815291830192839052815193945073ffffffffffffffffffffffffffffffffffffffff8616938893869392909182918401908083835b602083106106b257805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610675565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381858888f193505050503d8060008114610715576040519150601f19603f3d011682016040523d82523d6000602084013e61071a565b606091505b50505050508060010190506104b4565b5050600060015550565b6002818154811061074157fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60005473ffffffffffffffffffffffffffffffffffffffff1633146107ee57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f742070726f78790000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6107f3815b50565b60005473ffffffffffffffffffffffffffffffffffffffff168156fea265627a7a72315820c65c00e537f8ea43b1469ea417e9dc1fd316d53cb09f11584277ab9a14de198d64736f6c63430005100032`
    35  
    36  // DeployBlockRewardV1 deploys a new Ethereum contract, binding an instance of BlockRewardV1 to it.
    37  func DeployBlockRewardV1(auth *bind.TransactOpts, backend bind.ContractBackend, _proxy common.Address, _reward_proxies []common.Address) (common.Address, *types.Transaction, *BlockRewardV1, error) {
    38  	parsed, err := abi.JSON(strings.NewReader(BlockRewardV1ABI))
    39  	if err != nil {
    40  		return common.Address{}, nil, nil, err
    41  	}
    42  	address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(BlockRewardV1Bin), backend, _proxy, _reward_proxies)
    43  	if err != nil {
    44  		return common.Address{}, nil, nil, err
    45  	}
    46  	return address, tx, &BlockRewardV1{BlockRewardV1Caller: BlockRewardV1Caller{contract: contract}, BlockRewardV1Transactor: BlockRewardV1Transactor{contract: contract}, BlockRewardV1Filterer: BlockRewardV1Filterer{contract: contract}}, nil
    47  }
    48  
    49  // BlockRewardV1Bin is the compiled bytecode of contract after deployment.
    50  const BlockRewardV1RuntimeBin = `6080604052600436106100645760003560e01c80633c92fb74116100435780633c92fb7414610151578063ce5494bb146101a4578063ec556889146101e457610064565b8062f55d9d146100cb5780631c4b774b1461010d578063228cb73314610149575b604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600d60248201527f4e6f7420737570706f7274656400000000000000000000000000000000000000604482015290519081900360640190fd5b3480156100d757600080fd5b5061010b600480360360208110156100ee57600080fd5b503573ffffffffffffffffffffffffffffffffffffffff166101f9565b005b34801561011957600080fd5b506101376004803603602081101561013057600080fd5b50356102a1565b60408051918252519081900360200190f35b61010b610429565b34801561015d57600080fd5b5061017b6004803603602081101561017457600080fd5b5035610734565b6040805173ffffffffffffffffffffffffffffffffffffffff9092168252519081900360200190f35b3480156101b057600080fd5b5061010b600480360360208110156101c757600080fd5b503573ffffffffffffffffffffffffffffffffffffffff16610768565b3480156101f057600080fd5b5061017b6107f6565b60005473ffffffffffffffffffffffffffffffffffffffff16331461027f57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f742070726f78790000000000000000000000000000000000000000000000604482015290519081900360640190fd5b610288816107f3565b8073ffffffffffffffffffffffffffffffffffffffff16ff5b6002546000905b7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff81019015610423576000600282815481106102e057fe5b60009182526020918290200154604080517f8abf6077000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff90921692638abf607792600480840193829003018186803b15801561034f57600080fd5b505afa158015610363573d6000803e3d6000fd5b505050506040513d602081101561037957600080fd5b5051604080517f1c4b774b00000000000000000000000000000000000000000000000000000000815260048101879052905191925073ffffffffffffffffffffffffffffffffffffffff831691631c4b774b91602480820192602092909190829003018186803b1580156103ec57600080fd5b505afa158015610400573d6000803e3d6000fd5b505050506040513d602081101561041657600080fd5b50519290920191506102a8565b50919050565b6001541561049857604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600760248201527f5265656e74727900000000000000000000000000000000000000000000000000604482015290519081900360640190fd5b600180556002546000612710825a816104ad57fe5b0403905060005b8281101561072a576000600282815481106104cb57fe5b60009182526020918290200154604080517f8abf6077000000000000000000000000000000000000000000000000000000008152905173ffffffffffffffffffffffffffffffffffffffff90921692638abf607792600480840193829003018186803b15801561053a57600080fd5b505afa15801561054e573d6000803e3d6000fd5b505050506040513d602081101561056457600080fd5b5051604080517f1c4b774b000000000000000000000000000000000000000000000000000000008152436004820152905191925060009173ffffffffffffffffffffffffffffffffffffffff841691631c4b774b9161271091602480820192602092909190829003018187803b1580156105dd57600080fd5b5086fa1580156105f1573d6000803e3d6000fd5b50505050506040513d602081101561060857600080fd5b5051604080517f228cb7330000000000000000000000000000000000000000000000000000000060208281019190915282518083038201815291830192839052815193945073ffffffffffffffffffffffffffffffffffffffff8616938893869392909182918401908083835b602083106106b257805182527fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe09092019160209182019101610675565b6001836020036101000a038019825116818451168082178552505050505050905001915050600060405180830381858888f193505050503d8060008114610715576040519150601f19603f3d011682016040523d82523d6000602084013e61071a565b606091505b50505050508060010190506104b4565b5050600060015550565b6002818154811061074157fe5b60009182526020909120015473ffffffffffffffffffffffffffffffffffffffff16905081565b60005473ffffffffffffffffffffffffffffffffffffffff1633146107ee57604080517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152600960248201527f4e6f742070726f78790000000000000000000000000000000000000000000000604482015290519081900360640190fd5b6107f3815b50565b60005473ffffffffffffffffffffffffffffffffffffffff168156fea265627a7a72315820c65c00e537f8ea43b1469ea417e9dc1fd316d53cb09f11584277ab9a14de198d64736f6c63430005100032`
    51  
    52  // BlockRewardV1 is an auto generated Go binding around an Ethereum contract.
    53  type BlockRewardV1 struct {
    54  	BlockRewardV1Caller     // Read-only binding to the contract
    55  	BlockRewardV1Transactor // Write-only binding to the contract
    56  	BlockRewardV1Filterer   // Log filterer for contract events
    57  }
    58  
    59  // BlockRewardV1Caller is an auto generated read-only Go binding around an Ethereum contract.
    60  type BlockRewardV1Caller struct {
    61  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    62  }
    63  
    64  // BlockRewardV1Transactor is an auto generated write-only Go binding around an Ethereum contract.
    65  type BlockRewardV1Transactor struct {
    66  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    67  }
    68  
    69  // BlockRewardV1Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
    70  type BlockRewardV1Filterer struct {
    71  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    72  }
    73  
    74  // BlockRewardV1Session is an auto generated Go binding around an Ethereum contract,
    75  // with pre-set call and transact options.
    76  type BlockRewardV1Session struct {
    77  	Contract     *BlockRewardV1    // 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  // BlockRewardV1CallerSession is an auto generated read-only Go binding around an Ethereum contract,
    83  // with pre-set call options.
    84  type BlockRewardV1CallerSession struct {
    85  	Contract *BlockRewardV1Caller // Generic contract caller binding to set the session for
    86  	CallOpts bind.CallOpts        // Call options to use throughout this session
    87  }
    88  
    89  // BlockRewardV1TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
    90  // with pre-set transact options.
    91  type BlockRewardV1TransactorSession struct {
    92  	Contract     *BlockRewardV1Transactor // Generic contract transactor binding to set the session for
    93  	TransactOpts bind.TransactOpts        // Transaction auth options to use throughout this session
    94  }
    95  
    96  // BlockRewardV1Raw is an auto generated low-level Go binding around an Ethereum contract.
    97  type BlockRewardV1Raw struct {
    98  	Contract *BlockRewardV1 // Generic contract binding to access the raw methods on
    99  }
   100  
   101  // BlockRewardV1CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
   102  type BlockRewardV1CallerRaw struct {
   103  	Contract *BlockRewardV1Caller // Generic read-only contract binding to access the raw methods on
   104  }
   105  
   106  // BlockRewardV1TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
   107  type BlockRewardV1TransactorRaw struct {
   108  	Contract *BlockRewardV1Transactor // Generic write-only contract binding to access the raw methods on
   109  }
   110  
   111  // NewBlockRewardV1 creates a new instance of BlockRewardV1, bound to a specific deployed contract.
   112  func NewBlockRewardV1(address common.Address, backend bind.ContractBackend) (*BlockRewardV1, error) {
   113  	contract, err := bindBlockRewardV1(address, backend, backend, backend)
   114  	if err != nil {
   115  		return nil, err
   116  	}
   117  	return &BlockRewardV1{BlockRewardV1Caller: BlockRewardV1Caller{contract: contract}, BlockRewardV1Transactor: BlockRewardV1Transactor{contract: contract}, BlockRewardV1Filterer: BlockRewardV1Filterer{contract: contract}}, nil
   118  }
   119  
   120  // NewBlockRewardV1Caller creates a new read-only instance of BlockRewardV1, bound to a specific deployed contract.
   121  func NewBlockRewardV1Caller(address common.Address, caller bind.ContractCaller) (*BlockRewardV1Caller, error) {
   122  	contract, err := bindBlockRewardV1(address, caller, nil, nil)
   123  	if err != nil {
   124  		return nil, err
   125  	}
   126  	return &BlockRewardV1Caller{contract: contract}, nil
   127  }
   128  
   129  // NewBlockRewardV1Transactor creates a new write-only instance of BlockRewardV1, bound to a specific deployed contract.
   130  func NewBlockRewardV1Transactor(address common.Address, transactor bind.ContractTransactor) (*BlockRewardV1Transactor, error) {
   131  	contract, err := bindBlockRewardV1(address, nil, transactor, nil)
   132  	if err != nil {
   133  		return nil, err
   134  	}
   135  	return &BlockRewardV1Transactor{contract: contract}, nil
   136  }
   137  
   138  // NewBlockRewardV1Filterer creates a new log filterer instance of BlockRewardV1, bound to a specific deployed contract.
   139  func NewBlockRewardV1Filterer(address common.Address, filterer bind.ContractFilterer) (*BlockRewardV1Filterer, error) {
   140  	contract, err := bindBlockRewardV1(address, nil, nil, filterer)
   141  	if err != nil {
   142  		return nil, err
   143  	}
   144  	return &BlockRewardV1Filterer{contract: contract}, nil
   145  }
   146  
   147  // bindBlockRewardV1 binds a generic wrapper to an already deployed contract.
   148  func bindBlockRewardV1(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   149  	parsed, err := abi.JSON(strings.NewReader(BlockRewardV1ABI))
   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 (_BlockRewardV1 *BlockRewardV1Raw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   161  	return _BlockRewardV1.Contract.BlockRewardV1Caller.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 (_BlockRewardV1 *BlockRewardV1Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   167  	return _BlockRewardV1.Contract.BlockRewardV1Transactor.contract.Transfer(opts)
   168  }
   169  
   170  // Transact invokes the (paid) contract method with params as input values.
   171  func (_BlockRewardV1 *BlockRewardV1Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   172  	return _BlockRewardV1.Contract.BlockRewardV1Transactor.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 (_BlockRewardV1 *BlockRewardV1CallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   180  	return _BlockRewardV1.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 (_BlockRewardV1 *BlockRewardV1TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   186  	return _BlockRewardV1.Contract.contract.Transfer(opts)
   187  }
   188  
   189  // Transact invokes the (paid) contract method with params as input values.
   190  func (_BlockRewardV1 *BlockRewardV1TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   191  	return _BlockRewardV1.Contract.contract.Transact(opts, method, params...)
   192  }
   193  
   194  // GetReward is a free data retrieval call binding the contract method 0x1c4b774b.
   195  //
   196  // Solidity: function getReward(uint256 _blockNumber) constant returns(uint256 amount)
   197  func (_BlockRewardV1 *BlockRewardV1Caller) GetReward(opts *bind.CallOpts, _blockNumber *big.Int) (*big.Int, error) {
   198  	var (
   199  		ret0 = new(*big.Int)
   200  	)
   201  	out := ret0
   202  	err := _BlockRewardV1.contract.Call(opts, out, "getReward", _blockNumber)
   203  	return *ret0, err
   204  }
   205  
   206  // GetReward is a free data retrieval call binding the contract method 0x1c4b774b.
   207  //
   208  // Solidity: function getReward(uint256 _blockNumber) constant returns(uint256 amount)
   209  func (_BlockRewardV1 *BlockRewardV1Session) GetReward(_blockNumber *big.Int) (*big.Int, error) {
   210  	return _BlockRewardV1.Contract.GetReward(&_BlockRewardV1.CallOpts, _blockNumber)
   211  }
   212  
   213  // GetReward is a free data retrieval call binding the contract method 0x1c4b774b.
   214  //
   215  // Solidity: function getReward(uint256 _blockNumber) constant returns(uint256 amount)
   216  func (_BlockRewardV1 *BlockRewardV1CallerSession) GetReward(_blockNumber *big.Int) (*big.Int, error) {
   217  	return _BlockRewardV1.Contract.GetReward(&_BlockRewardV1.CallOpts, _blockNumber)
   218  }
   219  
   220  // Proxy is a free data retrieval call binding the contract method 0xec556889.
   221  //
   222  // Solidity: function proxy() constant returns(address)
   223  func (_BlockRewardV1 *BlockRewardV1Caller) Proxy(opts *bind.CallOpts) (common.Address, error) {
   224  	var (
   225  		ret0 = new(common.Address)
   226  	)
   227  	out := ret0
   228  	err := _BlockRewardV1.contract.Call(opts, out, "proxy")
   229  	return *ret0, err
   230  }
   231  
   232  // Proxy is a free data retrieval call binding the contract method 0xec556889.
   233  //
   234  // Solidity: function proxy() constant returns(address)
   235  func (_BlockRewardV1 *BlockRewardV1Session) Proxy() (common.Address, error) {
   236  	return _BlockRewardV1.Contract.Proxy(&_BlockRewardV1.CallOpts)
   237  }
   238  
   239  // Proxy is a free data retrieval call binding the contract method 0xec556889.
   240  //
   241  // Solidity: function proxy() constant returns(address)
   242  func (_BlockRewardV1 *BlockRewardV1CallerSession) Proxy() (common.Address, error) {
   243  	return _BlockRewardV1.Contract.Proxy(&_BlockRewardV1.CallOpts)
   244  }
   245  
   246  // RewardProxies is a free data retrieval call binding the contract method 0x3c92fb74.
   247  //
   248  // Solidity: function reward_proxies(uint256 ) constant returns(address)
   249  func (_BlockRewardV1 *BlockRewardV1Caller) RewardProxies(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error) {
   250  	var (
   251  		ret0 = new(common.Address)
   252  	)
   253  	out := ret0
   254  	err := _BlockRewardV1.contract.Call(opts, out, "reward_proxies", arg0)
   255  	return *ret0, err
   256  }
   257  
   258  // RewardProxies is a free data retrieval call binding the contract method 0x3c92fb74.
   259  //
   260  // Solidity: function reward_proxies(uint256 ) constant returns(address)
   261  func (_BlockRewardV1 *BlockRewardV1Session) RewardProxies(arg0 *big.Int) (common.Address, error) {
   262  	return _BlockRewardV1.Contract.RewardProxies(&_BlockRewardV1.CallOpts, arg0)
   263  }
   264  
   265  // RewardProxies is a free data retrieval call binding the contract method 0x3c92fb74.
   266  //
   267  // Solidity: function reward_proxies(uint256 ) constant returns(address)
   268  func (_BlockRewardV1 *BlockRewardV1CallerSession) RewardProxies(arg0 *big.Int) (common.Address, error) {
   269  	return _BlockRewardV1.Contract.RewardProxies(&_BlockRewardV1.CallOpts, arg0)
   270  }
   271  
   272  // Destroy is a paid mutator transaction binding the contract method 0x00f55d9d.
   273  //
   274  // Solidity: function destroy(address _newImpl) returns()
   275  func (_BlockRewardV1 *BlockRewardV1Transactor) Destroy(opts *bind.TransactOpts, _newImpl common.Address) (*types.Transaction, error) {
   276  	return _BlockRewardV1.contract.Transact(opts, "destroy", _newImpl)
   277  }
   278  
   279  // Destroy is a paid mutator transaction binding the contract method 0x00f55d9d.
   280  //
   281  // Solidity: function destroy(address _newImpl) returns()
   282  func (_BlockRewardV1 *BlockRewardV1Session) Destroy(_newImpl common.Address) (*types.Transaction, error) {
   283  	return _BlockRewardV1.Contract.Destroy(&_BlockRewardV1.TransactOpts, _newImpl)
   284  }
   285  
   286  // Destroy is a paid mutator transaction binding the contract method 0x00f55d9d.
   287  //
   288  // Solidity: function destroy(address _newImpl) returns()
   289  func (_BlockRewardV1 *BlockRewardV1TransactorSession) Destroy(_newImpl common.Address) (*types.Transaction, error) {
   290  	return _BlockRewardV1.Contract.Destroy(&_BlockRewardV1.TransactOpts, _newImpl)
   291  }
   292  
   293  // Migrate is a paid mutator transaction binding the contract method 0xce5494bb.
   294  //
   295  // Solidity: function migrate(address _oldImpl) returns()
   296  func (_BlockRewardV1 *BlockRewardV1Transactor) Migrate(opts *bind.TransactOpts, _oldImpl common.Address) (*types.Transaction, error) {
   297  	return _BlockRewardV1.contract.Transact(opts, "migrate", _oldImpl)
   298  }
   299  
   300  // Migrate is a paid mutator transaction binding the contract method 0xce5494bb.
   301  //
   302  // Solidity: function migrate(address _oldImpl) returns()
   303  func (_BlockRewardV1 *BlockRewardV1Session) Migrate(_oldImpl common.Address) (*types.Transaction, error) {
   304  	return _BlockRewardV1.Contract.Migrate(&_BlockRewardV1.TransactOpts, _oldImpl)
   305  }
   306  
   307  // Migrate is a paid mutator transaction binding the contract method 0xce5494bb.
   308  //
   309  // Solidity: function migrate(address _oldImpl) returns()
   310  func (_BlockRewardV1 *BlockRewardV1TransactorSession) Migrate(_oldImpl common.Address) (*types.Transaction, error) {
   311  	return _BlockRewardV1.Contract.Migrate(&_BlockRewardV1.TransactOpts, _oldImpl)
   312  }
   313  
   314  // Reward is a paid mutator transaction binding the contract method 0x228cb733.
   315  //
   316  // Solidity: function reward() returns()
   317  func (_BlockRewardV1 *BlockRewardV1Transactor) Reward(opts *bind.TransactOpts) (*types.Transaction, error) {
   318  	return _BlockRewardV1.contract.Transact(opts, "reward")
   319  }
   320  
   321  // Reward is a paid mutator transaction binding the contract method 0x228cb733.
   322  //
   323  // Solidity: function reward() returns()
   324  func (_BlockRewardV1 *BlockRewardV1Session) Reward() (*types.Transaction, error) {
   325  	return _BlockRewardV1.Contract.Reward(&_BlockRewardV1.TransactOpts)
   326  }
   327  
   328  // Reward is a paid mutator transaction binding the contract method 0x228cb733.
   329  //
   330  // Solidity: function reward() returns()
   331  func (_BlockRewardV1 *BlockRewardV1TransactorSession) Reward() (*types.Transaction, error) {
   332  	return _BlockRewardV1.Contract.Reward(&_BlockRewardV1.TransactOpts)
   333  }