github.com/codingfuture/orig-energi3@v0.8.4/energi/abi/IBudgetProposal.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  // IBudgetProposalABI is the input ABI used to generate the binding from.
    31  const IBudgetProposalABI = "[{\"constant\":true,\"inputs\":[],\"name\":\"accepted_weight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"budgetStatus\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"_ref_uuid\",\"type\":\"uint256\"},{\"internalType\":\"bool\",\"name\":\"_is_accepted\",\"type\":\"bool\"},{\"internalType\":\"bool\",\"name\":\"_is_finished\",\"type\":\"bool\"},{\"internalType\":\"uint256\",\"name\":\"_unpaid\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"canVote\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"collect\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"created_block\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"deadline\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"destroy\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"distributePayout\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"fee_amount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"fee_payer\",\"outputs\":[{\"internalType\":\"addresspayable\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isAccepted\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"isFinished\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"paid_amount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"parent\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"payout_address\",\"outputs\":[{\"internalType\":\"addresspayable\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"proposed_amount\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"quorum_weight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"ref_uuid\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"rejected_weight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"setFee\",\"outputs\":[],\"payable\":true,\"stateMutability\":\"payable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"total_weight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"voteAccept\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"voteReject\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[],\"name\":\"withdraw\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]"
    32  
    33  // IBudgetProposal is an auto generated Go binding around an Ethereum contract.
    34  type IBudgetProposal struct {
    35  	IBudgetProposalCaller     // Read-only binding to the contract
    36  	IBudgetProposalTransactor // Write-only binding to the contract
    37  	IBudgetProposalFilterer   // Log filterer for contract events
    38  }
    39  
    40  // IBudgetProposalCaller is an auto generated read-only Go binding around an Ethereum contract.
    41  type IBudgetProposalCaller struct {
    42  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    43  }
    44  
    45  // IBudgetProposalTransactor is an auto generated write-only Go binding around an Ethereum contract.
    46  type IBudgetProposalTransactor struct {
    47  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    48  }
    49  
    50  // IBudgetProposalFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
    51  type IBudgetProposalFilterer struct {
    52  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    53  }
    54  
    55  // IBudgetProposalSession is an auto generated Go binding around an Ethereum contract,
    56  // with pre-set call and transact options.
    57  type IBudgetProposalSession struct {
    58  	Contract     *IBudgetProposal  // 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  // IBudgetProposalCallerSession is an auto generated read-only Go binding around an Ethereum contract,
    64  // with pre-set call options.
    65  type IBudgetProposalCallerSession struct {
    66  	Contract *IBudgetProposalCaller // Generic contract caller binding to set the session for
    67  	CallOpts bind.CallOpts          // Call options to use throughout this session
    68  }
    69  
    70  // IBudgetProposalTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
    71  // with pre-set transact options.
    72  type IBudgetProposalTransactorSession struct {
    73  	Contract     *IBudgetProposalTransactor // Generic contract transactor binding to set the session for
    74  	TransactOpts bind.TransactOpts          // Transaction auth options to use throughout this session
    75  }
    76  
    77  // IBudgetProposalRaw is an auto generated low-level Go binding around an Ethereum contract.
    78  type IBudgetProposalRaw struct {
    79  	Contract *IBudgetProposal // Generic contract binding to access the raw methods on
    80  }
    81  
    82  // IBudgetProposalCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
    83  type IBudgetProposalCallerRaw struct {
    84  	Contract *IBudgetProposalCaller // Generic read-only contract binding to access the raw methods on
    85  }
    86  
    87  // IBudgetProposalTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
    88  type IBudgetProposalTransactorRaw struct {
    89  	Contract *IBudgetProposalTransactor // Generic write-only contract binding to access the raw methods on
    90  }
    91  
    92  // NewIBudgetProposal creates a new instance of IBudgetProposal, bound to a specific deployed contract.
    93  func NewIBudgetProposal(address common.Address, backend bind.ContractBackend) (*IBudgetProposal, error) {
    94  	contract, err := bindIBudgetProposal(address, backend, backend, backend)
    95  	if err != nil {
    96  		return nil, err
    97  	}
    98  	return &IBudgetProposal{IBudgetProposalCaller: IBudgetProposalCaller{contract: contract}, IBudgetProposalTransactor: IBudgetProposalTransactor{contract: contract}, IBudgetProposalFilterer: IBudgetProposalFilterer{contract: contract}}, nil
    99  }
   100  
   101  // NewIBudgetProposalCaller creates a new read-only instance of IBudgetProposal, bound to a specific deployed contract.
   102  func NewIBudgetProposalCaller(address common.Address, caller bind.ContractCaller) (*IBudgetProposalCaller, error) {
   103  	contract, err := bindIBudgetProposal(address, caller, nil, nil)
   104  	if err != nil {
   105  		return nil, err
   106  	}
   107  	return &IBudgetProposalCaller{contract: contract}, nil
   108  }
   109  
   110  // NewIBudgetProposalTransactor creates a new write-only instance of IBudgetProposal, bound to a specific deployed contract.
   111  func NewIBudgetProposalTransactor(address common.Address, transactor bind.ContractTransactor) (*IBudgetProposalTransactor, error) {
   112  	contract, err := bindIBudgetProposal(address, nil, transactor, nil)
   113  	if err != nil {
   114  		return nil, err
   115  	}
   116  	return &IBudgetProposalTransactor{contract: contract}, nil
   117  }
   118  
   119  // NewIBudgetProposalFilterer creates a new log filterer instance of IBudgetProposal, bound to a specific deployed contract.
   120  func NewIBudgetProposalFilterer(address common.Address, filterer bind.ContractFilterer) (*IBudgetProposalFilterer, error) {
   121  	contract, err := bindIBudgetProposal(address, nil, nil, filterer)
   122  	if err != nil {
   123  		return nil, err
   124  	}
   125  	return &IBudgetProposalFilterer{contract: contract}, nil
   126  }
   127  
   128  // bindIBudgetProposal binds a generic wrapper to an already deployed contract.
   129  func bindIBudgetProposal(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   130  	parsed, err := abi.JSON(strings.NewReader(IBudgetProposalABI))
   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 (_IBudgetProposal *IBudgetProposalRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   142  	return _IBudgetProposal.Contract.IBudgetProposalCaller.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 (_IBudgetProposal *IBudgetProposalRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   148  	return _IBudgetProposal.Contract.IBudgetProposalTransactor.contract.Transfer(opts)
   149  }
   150  
   151  // Transact invokes the (paid) contract method with params as input values.
   152  func (_IBudgetProposal *IBudgetProposalRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   153  	return _IBudgetProposal.Contract.IBudgetProposalTransactor.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 (_IBudgetProposal *IBudgetProposalCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   161  	return _IBudgetProposal.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 (_IBudgetProposal *IBudgetProposalTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   167  	return _IBudgetProposal.Contract.contract.Transfer(opts)
   168  }
   169  
   170  // Transact invokes the (paid) contract method with params as input values.
   171  func (_IBudgetProposal *IBudgetProposalTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   172  	return _IBudgetProposal.Contract.contract.Transact(opts, method, params...)
   173  }
   174  
   175  // AcceptedWeight is a free data retrieval call binding the contract method 0x7639b1eb.
   176  //
   177  // Solidity: function accepted_weight() constant returns(uint256)
   178  func (_IBudgetProposal *IBudgetProposalCaller) AcceptedWeight(opts *bind.CallOpts) (*big.Int, error) {
   179  	var (
   180  		ret0 = new(*big.Int)
   181  	)
   182  	out := ret0
   183  	err := _IBudgetProposal.contract.Call(opts, out, "accepted_weight")
   184  	return *ret0, err
   185  }
   186  
   187  // AcceptedWeight is a free data retrieval call binding the contract method 0x7639b1eb.
   188  //
   189  // Solidity: function accepted_weight() constant returns(uint256)
   190  func (_IBudgetProposal *IBudgetProposalSession) AcceptedWeight() (*big.Int, error) {
   191  	return _IBudgetProposal.Contract.AcceptedWeight(&_IBudgetProposal.CallOpts)
   192  }
   193  
   194  // AcceptedWeight is a free data retrieval call binding the contract method 0x7639b1eb.
   195  //
   196  // Solidity: function accepted_weight() constant returns(uint256)
   197  func (_IBudgetProposal *IBudgetProposalCallerSession) AcceptedWeight() (*big.Int, error) {
   198  	return _IBudgetProposal.Contract.AcceptedWeight(&_IBudgetProposal.CallOpts)
   199  }
   200  
   201  // BudgetStatus is a free data retrieval call binding the contract method 0x3b2a1b14.
   202  //
   203  // Solidity: function budgetStatus() constant returns(uint256 _ref_uuid, bool _is_accepted, bool _is_finished, uint256 _unpaid)
   204  func (_IBudgetProposal *IBudgetProposalCaller) BudgetStatus(opts *bind.CallOpts) (struct {
   205  	RefUuid    *big.Int
   206  	IsAccepted bool
   207  	IsFinished bool
   208  	Unpaid     *big.Int
   209  }, error) {
   210  	ret := new(struct {
   211  		RefUuid    *big.Int
   212  		IsAccepted bool
   213  		IsFinished bool
   214  		Unpaid     *big.Int
   215  	})
   216  	out := ret
   217  	err := _IBudgetProposal.contract.Call(opts, out, "budgetStatus")
   218  	return *ret, err
   219  }
   220  
   221  // BudgetStatus is a free data retrieval call binding the contract method 0x3b2a1b14.
   222  //
   223  // Solidity: function budgetStatus() constant returns(uint256 _ref_uuid, bool _is_accepted, bool _is_finished, uint256 _unpaid)
   224  func (_IBudgetProposal *IBudgetProposalSession) BudgetStatus() (struct {
   225  	RefUuid    *big.Int
   226  	IsAccepted bool
   227  	IsFinished bool
   228  	Unpaid     *big.Int
   229  }, error) {
   230  	return _IBudgetProposal.Contract.BudgetStatus(&_IBudgetProposal.CallOpts)
   231  }
   232  
   233  // BudgetStatus is a free data retrieval call binding the contract method 0x3b2a1b14.
   234  //
   235  // Solidity: function budgetStatus() constant returns(uint256 _ref_uuid, bool _is_accepted, bool _is_finished, uint256 _unpaid)
   236  func (_IBudgetProposal *IBudgetProposalCallerSession) BudgetStatus() (struct {
   237  	RefUuid    *big.Int
   238  	IsAccepted bool
   239  	IsFinished bool
   240  	Unpaid     *big.Int
   241  }, error) {
   242  	return _IBudgetProposal.Contract.BudgetStatus(&_IBudgetProposal.CallOpts)
   243  }
   244  
   245  // CanVote is a free data retrieval call binding the contract method 0xadfaa72e.
   246  //
   247  // Solidity: function canVote(address owner) constant returns(bool)
   248  func (_IBudgetProposal *IBudgetProposalCaller) CanVote(opts *bind.CallOpts, owner common.Address) (bool, error) {
   249  	var (
   250  		ret0 = new(bool)
   251  	)
   252  	out := ret0
   253  	err := _IBudgetProposal.contract.Call(opts, out, "canVote", owner)
   254  	return *ret0, err
   255  }
   256  
   257  // CanVote is a free data retrieval call binding the contract method 0xadfaa72e.
   258  //
   259  // Solidity: function canVote(address owner) constant returns(bool)
   260  func (_IBudgetProposal *IBudgetProposalSession) CanVote(owner common.Address) (bool, error) {
   261  	return _IBudgetProposal.Contract.CanVote(&_IBudgetProposal.CallOpts, owner)
   262  }
   263  
   264  // CanVote is a free data retrieval call binding the contract method 0xadfaa72e.
   265  //
   266  // Solidity: function canVote(address owner) constant returns(bool)
   267  func (_IBudgetProposal *IBudgetProposalCallerSession) CanVote(owner common.Address) (bool, error) {
   268  	return _IBudgetProposal.Contract.CanVote(&_IBudgetProposal.CallOpts, owner)
   269  }
   270  
   271  // CreatedBlock is a free data retrieval call binding the contract method 0x0b62be45.
   272  //
   273  // Solidity: function created_block() constant returns(uint256)
   274  func (_IBudgetProposal *IBudgetProposalCaller) CreatedBlock(opts *bind.CallOpts) (*big.Int, error) {
   275  	var (
   276  		ret0 = new(*big.Int)
   277  	)
   278  	out := ret0
   279  	err := _IBudgetProposal.contract.Call(opts, out, "created_block")
   280  	return *ret0, err
   281  }
   282  
   283  // CreatedBlock is a free data retrieval call binding the contract method 0x0b62be45.
   284  //
   285  // Solidity: function created_block() constant returns(uint256)
   286  func (_IBudgetProposal *IBudgetProposalSession) CreatedBlock() (*big.Int, error) {
   287  	return _IBudgetProposal.Contract.CreatedBlock(&_IBudgetProposal.CallOpts)
   288  }
   289  
   290  // CreatedBlock is a free data retrieval call binding the contract method 0x0b62be45.
   291  //
   292  // Solidity: function created_block() constant returns(uint256)
   293  func (_IBudgetProposal *IBudgetProposalCallerSession) CreatedBlock() (*big.Int, error) {
   294  	return _IBudgetProposal.Contract.CreatedBlock(&_IBudgetProposal.CallOpts)
   295  }
   296  
   297  // Deadline is a free data retrieval call binding the contract method 0x29dcb0cf.
   298  //
   299  // Solidity: function deadline() constant returns(uint256)
   300  func (_IBudgetProposal *IBudgetProposalCaller) Deadline(opts *bind.CallOpts) (*big.Int, error) {
   301  	var (
   302  		ret0 = new(*big.Int)
   303  	)
   304  	out := ret0
   305  	err := _IBudgetProposal.contract.Call(opts, out, "deadline")
   306  	return *ret0, err
   307  }
   308  
   309  // Deadline is a free data retrieval call binding the contract method 0x29dcb0cf.
   310  //
   311  // Solidity: function deadline() constant returns(uint256)
   312  func (_IBudgetProposal *IBudgetProposalSession) Deadline() (*big.Int, error) {
   313  	return _IBudgetProposal.Contract.Deadline(&_IBudgetProposal.CallOpts)
   314  }
   315  
   316  // Deadline is a free data retrieval call binding the contract method 0x29dcb0cf.
   317  //
   318  // Solidity: function deadline() constant returns(uint256)
   319  func (_IBudgetProposal *IBudgetProposalCallerSession) Deadline() (*big.Int, error) {
   320  	return _IBudgetProposal.Contract.Deadline(&_IBudgetProposal.CallOpts)
   321  }
   322  
   323  // FeeAmount is a free data retrieval call binding the contract method 0x990a663b.
   324  //
   325  // Solidity: function fee_amount() constant returns(uint256)
   326  func (_IBudgetProposal *IBudgetProposalCaller) FeeAmount(opts *bind.CallOpts) (*big.Int, error) {
   327  	var (
   328  		ret0 = new(*big.Int)
   329  	)
   330  	out := ret0
   331  	err := _IBudgetProposal.contract.Call(opts, out, "fee_amount")
   332  	return *ret0, err
   333  }
   334  
   335  // FeeAmount is a free data retrieval call binding the contract method 0x990a663b.
   336  //
   337  // Solidity: function fee_amount() constant returns(uint256)
   338  func (_IBudgetProposal *IBudgetProposalSession) FeeAmount() (*big.Int, error) {
   339  	return _IBudgetProposal.Contract.FeeAmount(&_IBudgetProposal.CallOpts)
   340  }
   341  
   342  // FeeAmount is a free data retrieval call binding the contract method 0x990a663b.
   343  //
   344  // Solidity: function fee_amount() constant returns(uint256)
   345  func (_IBudgetProposal *IBudgetProposalCallerSession) FeeAmount() (*big.Int, error) {
   346  	return _IBudgetProposal.Contract.FeeAmount(&_IBudgetProposal.CallOpts)
   347  }
   348  
   349  // FeePayer is a free data retrieval call binding the contract method 0xc40a70f8.
   350  //
   351  // Solidity: function fee_payer() constant returns(address)
   352  func (_IBudgetProposal *IBudgetProposalCaller) FeePayer(opts *bind.CallOpts) (common.Address, error) {
   353  	var (
   354  		ret0 = new(common.Address)
   355  	)
   356  	out := ret0
   357  	err := _IBudgetProposal.contract.Call(opts, out, "fee_payer")
   358  	return *ret0, err
   359  }
   360  
   361  // FeePayer is a free data retrieval call binding the contract method 0xc40a70f8.
   362  //
   363  // Solidity: function fee_payer() constant returns(address)
   364  func (_IBudgetProposal *IBudgetProposalSession) FeePayer() (common.Address, error) {
   365  	return _IBudgetProposal.Contract.FeePayer(&_IBudgetProposal.CallOpts)
   366  }
   367  
   368  // FeePayer is a free data retrieval call binding the contract method 0xc40a70f8.
   369  //
   370  // Solidity: function fee_payer() constant returns(address)
   371  func (_IBudgetProposal *IBudgetProposalCallerSession) FeePayer() (common.Address, error) {
   372  	return _IBudgetProposal.Contract.FeePayer(&_IBudgetProposal.CallOpts)
   373  }
   374  
   375  // IsAccepted is a free data retrieval call binding the contract method 0x5051a5ec.
   376  //
   377  // Solidity: function isAccepted() constant returns(bool)
   378  func (_IBudgetProposal *IBudgetProposalCaller) IsAccepted(opts *bind.CallOpts) (bool, error) {
   379  	var (
   380  		ret0 = new(bool)
   381  	)
   382  	out := ret0
   383  	err := _IBudgetProposal.contract.Call(opts, out, "isAccepted")
   384  	return *ret0, err
   385  }
   386  
   387  // IsAccepted is a free data retrieval call binding the contract method 0x5051a5ec.
   388  //
   389  // Solidity: function isAccepted() constant returns(bool)
   390  func (_IBudgetProposal *IBudgetProposalSession) IsAccepted() (bool, error) {
   391  	return _IBudgetProposal.Contract.IsAccepted(&_IBudgetProposal.CallOpts)
   392  }
   393  
   394  // IsAccepted is a free data retrieval call binding the contract method 0x5051a5ec.
   395  //
   396  // Solidity: function isAccepted() constant returns(bool)
   397  func (_IBudgetProposal *IBudgetProposalCallerSession) IsAccepted() (bool, error) {
   398  	return _IBudgetProposal.Contract.IsAccepted(&_IBudgetProposal.CallOpts)
   399  }
   400  
   401  // IsFinished is a free data retrieval call binding the contract method 0x7b352962.
   402  //
   403  // Solidity: function isFinished() constant returns(bool)
   404  func (_IBudgetProposal *IBudgetProposalCaller) IsFinished(opts *bind.CallOpts) (bool, error) {
   405  	var (
   406  		ret0 = new(bool)
   407  	)
   408  	out := ret0
   409  	err := _IBudgetProposal.contract.Call(opts, out, "isFinished")
   410  	return *ret0, err
   411  }
   412  
   413  // IsFinished is a free data retrieval call binding the contract method 0x7b352962.
   414  //
   415  // Solidity: function isFinished() constant returns(bool)
   416  func (_IBudgetProposal *IBudgetProposalSession) IsFinished() (bool, error) {
   417  	return _IBudgetProposal.Contract.IsFinished(&_IBudgetProposal.CallOpts)
   418  }
   419  
   420  // IsFinished is a free data retrieval call binding the contract method 0x7b352962.
   421  //
   422  // Solidity: function isFinished() constant returns(bool)
   423  func (_IBudgetProposal *IBudgetProposalCallerSession) IsFinished() (bool, error) {
   424  	return _IBudgetProposal.Contract.IsFinished(&_IBudgetProposal.CallOpts)
   425  }
   426  
   427  // PaidAmount is a free data retrieval call binding the contract method 0x504881df.
   428  //
   429  // Solidity: function paid_amount() constant returns(uint256)
   430  func (_IBudgetProposal *IBudgetProposalCaller) PaidAmount(opts *bind.CallOpts) (*big.Int, error) {
   431  	var (
   432  		ret0 = new(*big.Int)
   433  	)
   434  	out := ret0
   435  	err := _IBudgetProposal.contract.Call(opts, out, "paid_amount")
   436  	return *ret0, err
   437  }
   438  
   439  // PaidAmount is a free data retrieval call binding the contract method 0x504881df.
   440  //
   441  // Solidity: function paid_amount() constant returns(uint256)
   442  func (_IBudgetProposal *IBudgetProposalSession) PaidAmount() (*big.Int, error) {
   443  	return _IBudgetProposal.Contract.PaidAmount(&_IBudgetProposal.CallOpts)
   444  }
   445  
   446  // PaidAmount is a free data retrieval call binding the contract method 0x504881df.
   447  //
   448  // Solidity: function paid_amount() constant returns(uint256)
   449  func (_IBudgetProposal *IBudgetProposalCallerSession) PaidAmount() (*big.Int, error) {
   450  	return _IBudgetProposal.Contract.PaidAmount(&_IBudgetProposal.CallOpts)
   451  }
   452  
   453  // Parent is a free data retrieval call binding the contract method 0x60f96a8f.
   454  //
   455  // Solidity: function parent() constant returns(address)
   456  func (_IBudgetProposal *IBudgetProposalCaller) Parent(opts *bind.CallOpts) (common.Address, error) {
   457  	var (
   458  		ret0 = new(common.Address)
   459  	)
   460  	out := ret0
   461  	err := _IBudgetProposal.contract.Call(opts, out, "parent")
   462  	return *ret0, err
   463  }
   464  
   465  // Parent is a free data retrieval call binding the contract method 0x60f96a8f.
   466  //
   467  // Solidity: function parent() constant returns(address)
   468  func (_IBudgetProposal *IBudgetProposalSession) Parent() (common.Address, error) {
   469  	return _IBudgetProposal.Contract.Parent(&_IBudgetProposal.CallOpts)
   470  }
   471  
   472  // Parent is a free data retrieval call binding the contract method 0x60f96a8f.
   473  //
   474  // Solidity: function parent() constant returns(address)
   475  func (_IBudgetProposal *IBudgetProposalCallerSession) Parent() (common.Address, error) {
   476  	return _IBudgetProposal.Contract.Parent(&_IBudgetProposal.CallOpts)
   477  }
   478  
   479  // PayoutAddress is a free data retrieval call binding the contract method 0x9d5e6c9d.
   480  //
   481  // Solidity: function payout_address() constant returns(address)
   482  func (_IBudgetProposal *IBudgetProposalCaller) PayoutAddress(opts *bind.CallOpts) (common.Address, error) {
   483  	var (
   484  		ret0 = new(common.Address)
   485  	)
   486  	out := ret0
   487  	err := _IBudgetProposal.contract.Call(opts, out, "payout_address")
   488  	return *ret0, err
   489  }
   490  
   491  // PayoutAddress is a free data retrieval call binding the contract method 0x9d5e6c9d.
   492  //
   493  // Solidity: function payout_address() constant returns(address)
   494  func (_IBudgetProposal *IBudgetProposalSession) PayoutAddress() (common.Address, error) {
   495  	return _IBudgetProposal.Contract.PayoutAddress(&_IBudgetProposal.CallOpts)
   496  }
   497  
   498  // PayoutAddress is a free data retrieval call binding the contract method 0x9d5e6c9d.
   499  //
   500  // Solidity: function payout_address() constant returns(address)
   501  func (_IBudgetProposal *IBudgetProposalCallerSession) PayoutAddress() (common.Address, error) {
   502  	return _IBudgetProposal.Contract.PayoutAddress(&_IBudgetProposal.CallOpts)
   503  }
   504  
   505  // ProposedAmount is a free data retrieval call binding the contract method 0x4cafdfb2.
   506  //
   507  // Solidity: function proposed_amount() constant returns(uint256)
   508  func (_IBudgetProposal *IBudgetProposalCaller) ProposedAmount(opts *bind.CallOpts) (*big.Int, error) {
   509  	var (
   510  		ret0 = new(*big.Int)
   511  	)
   512  	out := ret0
   513  	err := _IBudgetProposal.contract.Call(opts, out, "proposed_amount")
   514  	return *ret0, err
   515  }
   516  
   517  // ProposedAmount is a free data retrieval call binding the contract method 0x4cafdfb2.
   518  //
   519  // Solidity: function proposed_amount() constant returns(uint256)
   520  func (_IBudgetProposal *IBudgetProposalSession) ProposedAmount() (*big.Int, error) {
   521  	return _IBudgetProposal.Contract.ProposedAmount(&_IBudgetProposal.CallOpts)
   522  }
   523  
   524  // ProposedAmount is a free data retrieval call binding the contract method 0x4cafdfb2.
   525  //
   526  // Solidity: function proposed_amount() constant returns(uint256)
   527  func (_IBudgetProposal *IBudgetProposalCallerSession) ProposedAmount() (*big.Int, error) {
   528  	return _IBudgetProposal.Contract.ProposedAmount(&_IBudgetProposal.CallOpts)
   529  }
   530  
   531  // QuorumWeight is a free data retrieval call binding the contract method 0x75df0f99.
   532  //
   533  // Solidity: function quorum_weight() constant returns(uint256)
   534  func (_IBudgetProposal *IBudgetProposalCaller) QuorumWeight(opts *bind.CallOpts) (*big.Int, error) {
   535  	var (
   536  		ret0 = new(*big.Int)
   537  	)
   538  	out := ret0
   539  	err := _IBudgetProposal.contract.Call(opts, out, "quorum_weight")
   540  	return *ret0, err
   541  }
   542  
   543  // QuorumWeight is a free data retrieval call binding the contract method 0x75df0f99.
   544  //
   545  // Solidity: function quorum_weight() constant returns(uint256)
   546  func (_IBudgetProposal *IBudgetProposalSession) QuorumWeight() (*big.Int, error) {
   547  	return _IBudgetProposal.Contract.QuorumWeight(&_IBudgetProposal.CallOpts)
   548  }
   549  
   550  // QuorumWeight is a free data retrieval call binding the contract method 0x75df0f99.
   551  //
   552  // Solidity: function quorum_weight() constant returns(uint256)
   553  func (_IBudgetProposal *IBudgetProposalCallerSession) QuorumWeight() (*big.Int, error) {
   554  	return _IBudgetProposal.Contract.QuorumWeight(&_IBudgetProposal.CallOpts)
   555  }
   556  
   557  // RefUuid is a free data retrieval call binding the contract method 0xbd4c1f39.
   558  //
   559  // Solidity: function ref_uuid() constant returns(uint256)
   560  func (_IBudgetProposal *IBudgetProposalCaller) RefUuid(opts *bind.CallOpts) (*big.Int, error) {
   561  	var (
   562  		ret0 = new(*big.Int)
   563  	)
   564  	out := ret0
   565  	err := _IBudgetProposal.contract.Call(opts, out, "ref_uuid")
   566  	return *ret0, err
   567  }
   568  
   569  // RefUuid is a free data retrieval call binding the contract method 0xbd4c1f39.
   570  //
   571  // Solidity: function ref_uuid() constant returns(uint256)
   572  func (_IBudgetProposal *IBudgetProposalSession) RefUuid() (*big.Int, error) {
   573  	return _IBudgetProposal.Contract.RefUuid(&_IBudgetProposal.CallOpts)
   574  }
   575  
   576  // RefUuid is a free data retrieval call binding the contract method 0xbd4c1f39.
   577  //
   578  // Solidity: function ref_uuid() constant returns(uint256)
   579  func (_IBudgetProposal *IBudgetProposalCallerSession) RefUuid() (*big.Int, error) {
   580  	return _IBudgetProposal.Contract.RefUuid(&_IBudgetProposal.CallOpts)
   581  }
   582  
   583  // RejectedWeight is a free data retrieval call binding the contract method 0xc86e6c15.
   584  //
   585  // Solidity: function rejected_weight() constant returns(uint256)
   586  func (_IBudgetProposal *IBudgetProposalCaller) RejectedWeight(opts *bind.CallOpts) (*big.Int, error) {
   587  	var (
   588  		ret0 = new(*big.Int)
   589  	)
   590  	out := ret0
   591  	err := _IBudgetProposal.contract.Call(opts, out, "rejected_weight")
   592  	return *ret0, err
   593  }
   594  
   595  // RejectedWeight is a free data retrieval call binding the contract method 0xc86e6c15.
   596  //
   597  // Solidity: function rejected_weight() constant returns(uint256)
   598  func (_IBudgetProposal *IBudgetProposalSession) RejectedWeight() (*big.Int, error) {
   599  	return _IBudgetProposal.Contract.RejectedWeight(&_IBudgetProposal.CallOpts)
   600  }
   601  
   602  // RejectedWeight is a free data retrieval call binding the contract method 0xc86e6c15.
   603  //
   604  // Solidity: function rejected_weight() constant returns(uint256)
   605  func (_IBudgetProposal *IBudgetProposalCallerSession) RejectedWeight() (*big.Int, error) {
   606  	return _IBudgetProposal.Contract.RejectedWeight(&_IBudgetProposal.CallOpts)
   607  }
   608  
   609  // TotalWeight is a free data retrieval call binding the contract method 0x91840a6b.
   610  //
   611  // Solidity: function total_weight() constant returns(uint256)
   612  func (_IBudgetProposal *IBudgetProposalCaller) TotalWeight(opts *bind.CallOpts) (*big.Int, error) {
   613  	var (
   614  		ret0 = new(*big.Int)
   615  	)
   616  	out := ret0
   617  	err := _IBudgetProposal.contract.Call(opts, out, "total_weight")
   618  	return *ret0, err
   619  }
   620  
   621  // TotalWeight is a free data retrieval call binding the contract method 0x91840a6b.
   622  //
   623  // Solidity: function total_weight() constant returns(uint256)
   624  func (_IBudgetProposal *IBudgetProposalSession) TotalWeight() (*big.Int, error) {
   625  	return _IBudgetProposal.Contract.TotalWeight(&_IBudgetProposal.CallOpts)
   626  }
   627  
   628  // TotalWeight is a free data retrieval call binding the contract method 0x91840a6b.
   629  //
   630  // Solidity: function total_weight() constant returns(uint256)
   631  func (_IBudgetProposal *IBudgetProposalCallerSession) TotalWeight() (*big.Int, error) {
   632  	return _IBudgetProposal.Contract.TotalWeight(&_IBudgetProposal.CallOpts)
   633  }
   634  
   635  // Collect is a paid mutator transaction binding the contract method 0xe5225381.
   636  //
   637  // Solidity: function collect() returns()
   638  func (_IBudgetProposal *IBudgetProposalTransactor) Collect(opts *bind.TransactOpts) (*types.Transaction, error) {
   639  	return _IBudgetProposal.contract.Transact(opts, "collect")
   640  }
   641  
   642  // Collect is a paid mutator transaction binding the contract method 0xe5225381.
   643  //
   644  // Solidity: function collect() returns()
   645  func (_IBudgetProposal *IBudgetProposalSession) Collect() (*types.Transaction, error) {
   646  	return _IBudgetProposal.Contract.Collect(&_IBudgetProposal.TransactOpts)
   647  }
   648  
   649  // Collect is a paid mutator transaction binding the contract method 0xe5225381.
   650  //
   651  // Solidity: function collect() returns()
   652  func (_IBudgetProposal *IBudgetProposalTransactorSession) Collect() (*types.Transaction, error) {
   653  	return _IBudgetProposal.Contract.Collect(&_IBudgetProposal.TransactOpts)
   654  }
   655  
   656  // Destroy is a paid mutator transaction binding the contract method 0x83197ef0.
   657  //
   658  // Solidity: function destroy() returns()
   659  func (_IBudgetProposal *IBudgetProposalTransactor) Destroy(opts *bind.TransactOpts) (*types.Transaction, error) {
   660  	return _IBudgetProposal.contract.Transact(opts, "destroy")
   661  }
   662  
   663  // Destroy is a paid mutator transaction binding the contract method 0x83197ef0.
   664  //
   665  // Solidity: function destroy() returns()
   666  func (_IBudgetProposal *IBudgetProposalSession) Destroy() (*types.Transaction, error) {
   667  	return _IBudgetProposal.Contract.Destroy(&_IBudgetProposal.TransactOpts)
   668  }
   669  
   670  // Destroy is a paid mutator transaction binding the contract method 0x83197ef0.
   671  //
   672  // Solidity: function destroy() returns()
   673  func (_IBudgetProposal *IBudgetProposalTransactorSession) Destroy() (*types.Transaction, error) {
   674  	return _IBudgetProposal.Contract.Destroy(&_IBudgetProposal.TransactOpts)
   675  }
   676  
   677  // DistributePayout is a paid mutator transaction binding the contract method 0x10cac8a5.
   678  //
   679  // Solidity: function distributePayout() returns()
   680  func (_IBudgetProposal *IBudgetProposalTransactor) DistributePayout(opts *bind.TransactOpts) (*types.Transaction, error) {
   681  	return _IBudgetProposal.contract.Transact(opts, "distributePayout")
   682  }
   683  
   684  // DistributePayout is a paid mutator transaction binding the contract method 0x10cac8a5.
   685  //
   686  // Solidity: function distributePayout() returns()
   687  func (_IBudgetProposal *IBudgetProposalSession) DistributePayout() (*types.Transaction, error) {
   688  	return _IBudgetProposal.Contract.DistributePayout(&_IBudgetProposal.TransactOpts)
   689  }
   690  
   691  // DistributePayout is a paid mutator transaction binding the contract method 0x10cac8a5.
   692  //
   693  // Solidity: function distributePayout() returns()
   694  func (_IBudgetProposal *IBudgetProposalTransactorSession) DistributePayout() (*types.Transaction, error) {
   695  	return _IBudgetProposal.Contract.DistributePayout(&_IBudgetProposal.TransactOpts)
   696  }
   697  
   698  // SetFee is a paid mutator transaction binding the contract method 0x2ded3227.
   699  //
   700  // Solidity: function setFee() returns()
   701  func (_IBudgetProposal *IBudgetProposalTransactor) SetFee(opts *bind.TransactOpts) (*types.Transaction, error) {
   702  	return _IBudgetProposal.contract.Transact(opts, "setFee")
   703  }
   704  
   705  // SetFee is a paid mutator transaction binding the contract method 0x2ded3227.
   706  //
   707  // Solidity: function setFee() returns()
   708  func (_IBudgetProposal *IBudgetProposalSession) SetFee() (*types.Transaction, error) {
   709  	return _IBudgetProposal.Contract.SetFee(&_IBudgetProposal.TransactOpts)
   710  }
   711  
   712  // SetFee is a paid mutator transaction binding the contract method 0x2ded3227.
   713  //
   714  // Solidity: function setFee() returns()
   715  func (_IBudgetProposal *IBudgetProposalTransactorSession) SetFee() (*types.Transaction, error) {
   716  	return _IBudgetProposal.Contract.SetFee(&_IBudgetProposal.TransactOpts)
   717  }
   718  
   719  // VoteAccept is a paid mutator transaction binding the contract method 0xc2472ef8.
   720  //
   721  // Solidity: function voteAccept() returns()
   722  func (_IBudgetProposal *IBudgetProposalTransactor) VoteAccept(opts *bind.TransactOpts) (*types.Transaction, error) {
   723  	return _IBudgetProposal.contract.Transact(opts, "voteAccept")
   724  }
   725  
   726  // VoteAccept is a paid mutator transaction binding the contract method 0xc2472ef8.
   727  //
   728  // Solidity: function voteAccept() returns()
   729  func (_IBudgetProposal *IBudgetProposalSession) VoteAccept() (*types.Transaction, error) {
   730  	return _IBudgetProposal.Contract.VoteAccept(&_IBudgetProposal.TransactOpts)
   731  }
   732  
   733  // VoteAccept is a paid mutator transaction binding the contract method 0xc2472ef8.
   734  //
   735  // Solidity: function voteAccept() returns()
   736  func (_IBudgetProposal *IBudgetProposalTransactorSession) VoteAccept() (*types.Transaction, error) {
   737  	return _IBudgetProposal.Contract.VoteAccept(&_IBudgetProposal.TransactOpts)
   738  }
   739  
   740  // VoteReject is a paid mutator transaction binding the contract method 0x56c2a0a1.
   741  //
   742  // Solidity: function voteReject() returns()
   743  func (_IBudgetProposal *IBudgetProposalTransactor) VoteReject(opts *bind.TransactOpts) (*types.Transaction, error) {
   744  	return _IBudgetProposal.contract.Transact(opts, "voteReject")
   745  }
   746  
   747  // VoteReject is a paid mutator transaction binding the contract method 0x56c2a0a1.
   748  //
   749  // Solidity: function voteReject() returns()
   750  func (_IBudgetProposal *IBudgetProposalSession) VoteReject() (*types.Transaction, error) {
   751  	return _IBudgetProposal.Contract.VoteReject(&_IBudgetProposal.TransactOpts)
   752  }
   753  
   754  // VoteReject is a paid mutator transaction binding the contract method 0x56c2a0a1.
   755  //
   756  // Solidity: function voteReject() returns()
   757  func (_IBudgetProposal *IBudgetProposalTransactorSession) VoteReject() (*types.Transaction, error) {
   758  	return _IBudgetProposal.Contract.VoteReject(&_IBudgetProposal.TransactOpts)
   759  }
   760  
   761  // Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
   762  //
   763  // Solidity: function withdraw() returns()
   764  func (_IBudgetProposal *IBudgetProposalTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error) {
   765  	return _IBudgetProposal.contract.Transact(opts, "withdraw")
   766  }
   767  
   768  // Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
   769  //
   770  // Solidity: function withdraw() returns()
   771  func (_IBudgetProposal *IBudgetProposalSession) Withdraw() (*types.Transaction, error) {
   772  	return _IBudgetProposal.Contract.Withdraw(&_IBudgetProposal.TransactOpts)
   773  }
   774  
   775  // Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b.
   776  //
   777  // Solidity: function withdraw() returns()
   778  func (_IBudgetProposal *IBudgetProposalTransactorSession) Withdraw() (*types.Transaction, error) {
   779  	return _IBudgetProposal.Contract.Withdraw(&_IBudgetProposal.TransactOpts)
   780  }