github.com/codingfuture/orig-energi3@v0.8.4/energi/abi/IProposal.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 // IProposalABI is the input ABI used to generate the binding from. 31 const IProposalABI = "[{\"constant\":true,\"inputs\":[],\"name\":\"accepted_weight\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"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\":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\":\"parent\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"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\":\"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 // IProposal is an auto generated Go binding around an Ethereum contract. 34 type IProposal struct { 35 IProposalCaller // Read-only binding to the contract 36 IProposalTransactor // Write-only binding to the contract 37 IProposalFilterer // Log filterer for contract events 38 } 39 40 // IProposalCaller is an auto generated read-only Go binding around an Ethereum contract. 41 type IProposalCaller struct { 42 contract *bind.BoundContract // Generic contract wrapper for the low level calls 43 } 44 45 // IProposalTransactor is an auto generated write-only Go binding around an Ethereum contract. 46 type IProposalTransactor struct { 47 contract *bind.BoundContract // Generic contract wrapper for the low level calls 48 } 49 50 // IProposalFilterer is an auto generated log filtering Go binding around an Ethereum contract events. 51 type IProposalFilterer struct { 52 contract *bind.BoundContract // Generic contract wrapper for the low level calls 53 } 54 55 // IProposalSession is an auto generated Go binding around an Ethereum contract, 56 // with pre-set call and transact options. 57 type IProposalSession struct { 58 Contract *IProposal // 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 // IProposalCallerSession is an auto generated read-only Go binding around an Ethereum contract, 64 // with pre-set call options. 65 type IProposalCallerSession struct { 66 Contract *IProposalCaller // Generic contract caller binding to set the session for 67 CallOpts bind.CallOpts // Call options to use throughout this session 68 } 69 70 // IProposalTransactorSession is an auto generated write-only Go binding around an Ethereum contract, 71 // with pre-set transact options. 72 type IProposalTransactorSession struct { 73 Contract *IProposalTransactor // Generic contract transactor binding to set the session for 74 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 75 } 76 77 // IProposalRaw is an auto generated low-level Go binding around an Ethereum contract. 78 type IProposalRaw struct { 79 Contract *IProposal // Generic contract binding to access the raw methods on 80 } 81 82 // IProposalCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. 83 type IProposalCallerRaw struct { 84 Contract *IProposalCaller // Generic read-only contract binding to access the raw methods on 85 } 86 87 // IProposalTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. 88 type IProposalTransactorRaw struct { 89 Contract *IProposalTransactor // Generic write-only contract binding to access the raw methods on 90 } 91 92 // NewIProposal creates a new instance of IProposal, bound to a specific deployed contract. 93 func NewIProposal(address common.Address, backend bind.ContractBackend) (*IProposal, error) { 94 contract, err := bindIProposal(address, backend, backend, backend) 95 if err != nil { 96 return nil, err 97 } 98 return &IProposal{IProposalCaller: IProposalCaller{contract: contract}, IProposalTransactor: IProposalTransactor{contract: contract}, IProposalFilterer: IProposalFilterer{contract: contract}}, nil 99 } 100 101 // NewIProposalCaller creates a new read-only instance of IProposal, bound to a specific deployed contract. 102 func NewIProposalCaller(address common.Address, caller bind.ContractCaller) (*IProposalCaller, error) { 103 contract, err := bindIProposal(address, caller, nil, nil) 104 if err != nil { 105 return nil, err 106 } 107 return &IProposalCaller{contract: contract}, nil 108 } 109 110 // NewIProposalTransactor creates a new write-only instance of IProposal, bound to a specific deployed contract. 111 func NewIProposalTransactor(address common.Address, transactor bind.ContractTransactor) (*IProposalTransactor, error) { 112 contract, err := bindIProposal(address, nil, transactor, nil) 113 if err != nil { 114 return nil, err 115 } 116 return &IProposalTransactor{contract: contract}, nil 117 } 118 119 // NewIProposalFilterer creates a new log filterer instance of IProposal, bound to a specific deployed contract. 120 func NewIProposalFilterer(address common.Address, filterer bind.ContractFilterer) (*IProposalFilterer, error) { 121 contract, err := bindIProposal(address, nil, nil, filterer) 122 if err != nil { 123 return nil, err 124 } 125 return &IProposalFilterer{contract: contract}, nil 126 } 127 128 // bindIProposal binds a generic wrapper to an already deployed contract. 129 func bindIProposal(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { 130 parsed, err := abi.JSON(strings.NewReader(IProposalABI)) 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 (_IProposal *IProposalRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { 142 return _IProposal.Contract.IProposalCaller.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 (_IProposal *IProposalRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 148 return _IProposal.Contract.IProposalTransactor.contract.Transfer(opts) 149 } 150 151 // Transact invokes the (paid) contract method with params as input values. 152 func (_IProposal *IProposalRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 153 return _IProposal.Contract.IProposalTransactor.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 (_IProposal *IProposalCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error { 161 return _IProposal.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 (_IProposal *IProposalTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 167 return _IProposal.Contract.contract.Transfer(opts) 168 } 169 170 // Transact invokes the (paid) contract method with params as input values. 171 func (_IProposal *IProposalTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 172 return _IProposal.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 (_IProposal *IProposalCaller) AcceptedWeight(opts *bind.CallOpts) (*big.Int, error) { 179 var ( 180 ret0 = new(*big.Int) 181 ) 182 out := ret0 183 err := _IProposal.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 (_IProposal *IProposalSession) AcceptedWeight() (*big.Int, error) { 191 return _IProposal.Contract.AcceptedWeight(&_IProposal.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 (_IProposal *IProposalCallerSession) AcceptedWeight() (*big.Int, error) { 198 return _IProposal.Contract.AcceptedWeight(&_IProposal.CallOpts) 199 } 200 201 // CanVote is a free data retrieval call binding the contract method 0xadfaa72e. 202 // 203 // Solidity: function canVote(address owner) constant returns(bool) 204 func (_IProposal *IProposalCaller) CanVote(opts *bind.CallOpts, owner common.Address) (bool, error) { 205 var ( 206 ret0 = new(bool) 207 ) 208 out := ret0 209 err := _IProposal.contract.Call(opts, out, "canVote", owner) 210 return *ret0, err 211 } 212 213 // CanVote is a free data retrieval call binding the contract method 0xadfaa72e. 214 // 215 // Solidity: function canVote(address owner) constant returns(bool) 216 func (_IProposal *IProposalSession) CanVote(owner common.Address) (bool, error) { 217 return _IProposal.Contract.CanVote(&_IProposal.CallOpts, owner) 218 } 219 220 // CanVote is a free data retrieval call binding the contract method 0xadfaa72e. 221 // 222 // Solidity: function canVote(address owner) constant returns(bool) 223 func (_IProposal *IProposalCallerSession) CanVote(owner common.Address) (bool, error) { 224 return _IProposal.Contract.CanVote(&_IProposal.CallOpts, owner) 225 } 226 227 // CreatedBlock is a free data retrieval call binding the contract method 0x0b62be45. 228 // 229 // Solidity: function created_block() constant returns(uint256) 230 func (_IProposal *IProposalCaller) CreatedBlock(opts *bind.CallOpts) (*big.Int, error) { 231 var ( 232 ret0 = new(*big.Int) 233 ) 234 out := ret0 235 err := _IProposal.contract.Call(opts, out, "created_block") 236 return *ret0, err 237 } 238 239 // CreatedBlock is a free data retrieval call binding the contract method 0x0b62be45. 240 // 241 // Solidity: function created_block() constant returns(uint256) 242 func (_IProposal *IProposalSession) CreatedBlock() (*big.Int, error) { 243 return _IProposal.Contract.CreatedBlock(&_IProposal.CallOpts) 244 } 245 246 // CreatedBlock is a free data retrieval call binding the contract method 0x0b62be45. 247 // 248 // Solidity: function created_block() constant returns(uint256) 249 func (_IProposal *IProposalCallerSession) CreatedBlock() (*big.Int, error) { 250 return _IProposal.Contract.CreatedBlock(&_IProposal.CallOpts) 251 } 252 253 // Deadline is a free data retrieval call binding the contract method 0x29dcb0cf. 254 // 255 // Solidity: function deadline() constant returns(uint256) 256 func (_IProposal *IProposalCaller) Deadline(opts *bind.CallOpts) (*big.Int, error) { 257 var ( 258 ret0 = new(*big.Int) 259 ) 260 out := ret0 261 err := _IProposal.contract.Call(opts, out, "deadline") 262 return *ret0, err 263 } 264 265 // Deadline is a free data retrieval call binding the contract method 0x29dcb0cf. 266 // 267 // Solidity: function deadline() constant returns(uint256) 268 func (_IProposal *IProposalSession) Deadline() (*big.Int, error) { 269 return _IProposal.Contract.Deadline(&_IProposal.CallOpts) 270 } 271 272 // Deadline is a free data retrieval call binding the contract method 0x29dcb0cf. 273 // 274 // Solidity: function deadline() constant returns(uint256) 275 func (_IProposal *IProposalCallerSession) Deadline() (*big.Int, error) { 276 return _IProposal.Contract.Deadline(&_IProposal.CallOpts) 277 } 278 279 // FeeAmount is a free data retrieval call binding the contract method 0x990a663b. 280 // 281 // Solidity: function fee_amount() constant returns(uint256) 282 func (_IProposal *IProposalCaller) FeeAmount(opts *bind.CallOpts) (*big.Int, error) { 283 var ( 284 ret0 = new(*big.Int) 285 ) 286 out := ret0 287 err := _IProposal.contract.Call(opts, out, "fee_amount") 288 return *ret0, err 289 } 290 291 // FeeAmount is a free data retrieval call binding the contract method 0x990a663b. 292 // 293 // Solidity: function fee_amount() constant returns(uint256) 294 func (_IProposal *IProposalSession) FeeAmount() (*big.Int, error) { 295 return _IProposal.Contract.FeeAmount(&_IProposal.CallOpts) 296 } 297 298 // FeeAmount is a free data retrieval call binding the contract method 0x990a663b. 299 // 300 // Solidity: function fee_amount() constant returns(uint256) 301 func (_IProposal *IProposalCallerSession) FeeAmount() (*big.Int, error) { 302 return _IProposal.Contract.FeeAmount(&_IProposal.CallOpts) 303 } 304 305 // FeePayer is a free data retrieval call binding the contract method 0xc40a70f8. 306 // 307 // Solidity: function fee_payer() constant returns(address) 308 func (_IProposal *IProposalCaller) FeePayer(opts *bind.CallOpts) (common.Address, error) { 309 var ( 310 ret0 = new(common.Address) 311 ) 312 out := ret0 313 err := _IProposal.contract.Call(opts, out, "fee_payer") 314 return *ret0, err 315 } 316 317 // FeePayer is a free data retrieval call binding the contract method 0xc40a70f8. 318 // 319 // Solidity: function fee_payer() constant returns(address) 320 func (_IProposal *IProposalSession) FeePayer() (common.Address, error) { 321 return _IProposal.Contract.FeePayer(&_IProposal.CallOpts) 322 } 323 324 // FeePayer is a free data retrieval call binding the contract method 0xc40a70f8. 325 // 326 // Solidity: function fee_payer() constant returns(address) 327 func (_IProposal *IProposalCallerSession) FeePayer() (common.Address, error) { 328 return _IProposal.Contract.FeePayer(&_IProposal.CallOpts) 329 } 330 331 // IsAccepted is a free data retrieval call binding the contract method 0x5051a5ec. 332 // 333 // Solidity: function isAccepted() constant returns(bool) 334 func (_IProposal *IProposalCaller) IsAccepted(opts *bind.CallOpts) (bool, error) { 335 var ( 336 ret0 = new(bool) 337 ) 338 out := ret0 339 err := _IProposal.contract.Call(opts, out, "isAccepted") 340 return *ret0, err 341 } 342 343 // IsAccepted is a free data retrieval call binding the contract method 0x5051a5ec. 344 // 345 // Solidity: function isAccepted() constant returns(bool) 346 func (_IProposal *IProposalSession) IsAccepted() (bool, error) { 347 return _IProposal.Contract.IsAccepted(&_IProposal.CallOpts) 348 } 349 350 // IsAccepted is a free data retrieval call binding the contract method 0x5051a5ec. 351 // 352 // Solidity: function isAccepted() constant returns(bool) 353 func (_IProposal *IProposalCallerSession) IsAccepted() (bool, error) { 354 return _IProposal.Contract.IsAccepted(&_IProposal.CallOpts) 355 } 356 357 // IsFinished is a free data retrieval call binding the contract method 0x7b352962. 358 // 359 // Solidity: function isFinished() constant returns(bool) 360 func (_IProposal *IProposalCaller) IsFinished(opts *bind.CallOpts) (bool, error) { 361 var ( 362 ret0 = new(bool) 363 ) 364 out := ret0 365 err := _IProposal.contract.Call(opts, out, "isFinished") 366 return *ret0, err 367 } 368 369 // IsFinished is a free data retrieval call binding the contract method 0x7b352962. 370 // 371 // Solidity: function isFinished() constant returns(bool) 372 func (_IProposal *IProposalSession) IsFinished() (bool, error) { 373 return _IProposal.Contract.IsFinished(&_IProposal.CallOpts) 374 } 375 376 // IsFinished is a free data retrieval call binding the contract method 0x7b352962. 377 // 378 // Solidity: function isFinished() constant returns(bool) 379 func (_IProposal *IProposalCallerSession) IsFinished() (bool, error) { 380 return _IProposal.Contract.IsFinished(&_IProposal.CallOpts) 381 } 382 383 // Parent is a free data retrieval call binding the contract method 0x60f96a8f. 384 // 385 // Solidity: function parent() constant returns(address) 386 func (_IProposal *IProposalCaller) Parent(opts *bind.CallOpts) (common.Address, error) { 387 var ( 388 ret0 = new(common.Address) 389 ) 390 out := ret0 391 err := _IProposal.contract.Call(opts, out, "parent") 392 return *ret0, err 393 } 394 395 // Parent is a free data retrieval call binding the contract method 0x60f96a8f. 396 // 397 // Solidity: function parent() constant returns(address) 398 func (_IProposal *IProposalSession) Parent() (common.Address, error) { 399 return _IProposal.Contract.Parent(&_IProposal.CallOpts) 400 } 401 402 // Parent is a free data retrieval call binding the contract method 0x60f96a8f. 403 // 404 // Solidity: function parent() constant returns(address) 405 func (_IProposal *IProposalCallerSession) Parent() (common.Address, error) { 406 return _IProposal.Contract.Parent(&_IProposal.CallOpts) 407 } 408 409 // QuorumWeight is a free data retrieval call binding the contract method 0x75df0f99. 410 // 411 // Solidity: function quorum_weight() constant returns(uint256) 412 func (_IProposal *IProposalCaller) QuorumWeight(opts *bind.CallOpts) (*big.Int, error) { 413 var ( 414 ret0 = new(*big.Int) 415 ) 416 out := ret0 417 err := _IProposal.contract.Call(opts, out, "quorum_weight") 418 return *ret0, err 419 } 420 421 // QuorumWeight is a free data retrieval call binding the contract method 0x75df0f99. 422 // 423 // Solidity: function quorum_weight() constant returns(uint256) 424 func (_IProposal *IProposalSession) QuorumWeight() (*big.Int, error) { 425 return _IProposal.Contract.QuorumWeight(&_IProposal.CallOpts) 426 } 427 428 // QuorumWeight is a free data retrieval call binding the contract method 0x75df0f99. 429 // 430 // Solidity: function quorum_weight() constant returns(uint256) 431 func (_IProposal *IProposalCallerSession) QuorumWeight() (*big.Int, error) { 432 return _IProposal.Contract.QuorumWeight(&_IProposal.CallOpts) 433 } 434 435 // RejectedWeight is a free data retrieval call binding the contract method 0xc86e6c15. 436 // 437 // Solidity: function rejected_weight() constant returns(uint256) 438 func (_IProposal *IProposalCaller) RejectedWeight(opts *bind.CallOpts) (*big.Int, error) { 439 var ( 440 ret0 = new(*big.Int) 441 ) 442 out := ret0 443 err := _IProposal.contract.Call(opts, out, "rejected_weight") 444 return *ret0, err 445 } 446 447 // RejectedWeight is a free data retrieval call binding the contract method 0xc86e6c15. 448 // 449 // Solidity: function rejected_weight() constant returns(uint256) 450 func (_IProposal *IProposalSession) RejectedWeight() (*big.Int, error) { 451 return _IProposal.Contract.RejectedWeight(&_IProposal.CallOpts) 452 } 453 454 // RejectedWeight is a free data retrieval call binding the contract method 0xc86e6c15. 455 // 456 // Solidity: function rejected_weight() constant returns(uint256) 457 func (_IProposal *IProposalCallerSession) RejectedWeight() (*big.Int, error) { 458 return _IProposal.Contract.RejectedWeight(&_IProposal.CallOpts) 459 } 460 461 // TotalWeight is a free data retrieval call binding the contract method 0x91840a6b. 462 // 463 // Solidity: function total_weight() constant returns(uint256) 464 func (_IProposal *IProposalCaller) TotalWeight(opts *bind.CallOpts) (*big.Int, error) { 465 var ( 466 ret0 = new(*big.Int) 467 ) 468 out := ret0 469 err := _IProposal.contract.Call(opts, out, "total_weight") 470 return *ret0, err 471 } 472 473 // TotalWeight is a free data retrieval call binding the contract method 0x91840a6b. 474 // 475 // Solidity: function total_weight() constant returns(uint256) 476 func (_IProposal *IProposalSession) TotalWeight() (*big.Int, error) { 477 return _IProposal.Contract.TotalWeight(&_IProposal.CallOpts) 478 } 479 480 // TotalWeight is a free data retrieval call binding the contract method 0x91840a6b. 481 // 482 // Solidity: function total_weight() constant returns(uint256) 483 func (_IProposal *IProposalCallerSession) TotalWeight() (*big.Int, error) { 484 return _IProposal.Contract.TotalWeight(&_IProposal.CallOpts) 485 } 486 487 // Collect is a paid mutator transaction binding the contract method 0xe5225381. 488 // 489 // Solidity: function collect() returns() 490 func (_IProposal *IProposalTransactor) Collect(opts *bind.TransactOpts) (*types.Transaction, error) { 491 return _IProposal.contract.Transact(opts, "collect") 492 } 493 494 // Collect is a paid mutator transaction binding the contract method 0xe5225381. 495 // 496 // Solidity: function collect() returns() 497 func (_IProposal *IProposalSession) Collect() (*types.Transaction, error) { 498 return _IProposal.Contract.Collect(&_IProposal.TransactOpts) 499 } 500 501 // Collect is a paid mutator transaction binding the contract method 0xe5225381. 502 // 503 // Solidity: function collect() returns() 504 func (_IProposal *IProposalTransactorSession) Collect() (*types.Transaction, error) { 505 return _IProposal.Contract.Collect(&_IProposal.TransactOpts) 506 } 507 508 // Destroy is a paid mutator transaction binding the contract method 0x83197ef0. 509 // 510 // Solidity: function destroy() returns() 511 func (_IProposal *IProposalTransactor) Destroy(opts *bind.TransactOpts) (*types.Transaction, error) { 512 return _IProposal.contract.Transact(opts, "destroy") 513 } 514 515 // Destroy is a paid mutator transaction binding the contract method 0x83197ef0. 516 // 517 // Solidity: function destroy() returns() 518 func (_IProposal *IProposalSession) Destroy() (*types.Transaction, error) { 519 return _IProposal.Contract.Destroy(&_IProposal.TransactOpts) 520 } 521 522 // Destroy is a paid mutator transaction binding the contract method 0x83197ef0. 523 // 524 // Solidity: function destroy() returns() 525 func (_IProposal *IProposalTransactorSession) Destroy() (*types.Transaction, error) { 526 return _IProposal.Contract.Destroy(&_IProposal.TransactOpts) 527 } 528 529 // SetFee is a paid mutator transaction binding the contract method 0x2ded3227. 530 // 531 // Solidity: function setFee() returns() 532 func (_IProposal *IProposalTransactor) SetFee(opts *bind.TransactOpts) (*types.Transaction, error) { 533 return _IProposal.contract.Transact(opts, "setFee") 534 } 535 536 // SetFee is a paid mutator transaction binding the contract method 0x2ded3227. 537 // 538 // Solidity: function setFee() returns() 539 func (_IProposal *IProposalSession) SetFee() (*types.Transaction, error) { 540 return _IProposal.Contract.SetFee(&_IProposal.TransactOpts) 541 } 542 543 // SetFee is a paid mutator transaction binding the contract method 0x2ded3227. 544 // 545 // Solidity: function setFee() returns() 546 func (_IProposal *IProposalTransactorSession) SetFee() (*types.Transaction, error) { 547 return _IProposal.Contract.SetFee(&_IProposal.TransactOpts) 548 } 549 550 // VoteAccept is a paid mutator transaction binding the contract method 0xc2472ef8. 551 // 552 // Solidity: function voteAccept() returns() 553 func (_IProposal *IProposalTransactor) VoteAccept(opts *bind.TransactOpts) (*types.Transaction, error) { 554 return _IProposal.contract.Transact(opts, "voteAccept") 555 } 556 557 // VoteAccept is a paid mutator transaction binding the contract method 0xc2472ef8. 558 // 559 // Solidity: function voteAccept() returns() 560 func (_IProposal *IProposalSession) VoteAccept() (*types.Transaction, error) { 561 return _IProposal.Contract.VoteAccept(&_IProposal.TransactOpts) 562 } 563 564 // VoteAccept is a paid mutator transaction binding the contract method 0xc2472ef8. 565 // 566 // Solidity: function voteAccept() returns() 567 func (_IProposal *IProposalTransactorSession) VoteAccept() (*types.Transaction, error) { 568 return _IProposal.Contract.VoteAccept(&_IProposal.TransactOpts) 569 } 570 571 // VoteReject is a paid mutator transaction binding the contract method 0x56c2a0a1. 572 // 573 // Solidity: function voteReject() returns() 574 func (_IProposal *IProposalTransactor) VoteReject(opts *bind.TransactOpts) (*types.Transaction, error) { 575 return _IProposal.contract.Transact(opts, "voteReject") 576 } 577 578 // VoteReject is a paid mutator transaction binding the contract method 0x56c2a0a1. 579 // 580 // Solidity: function voteReject() returns() 581 func (_IProposal *IProposalSession) VoteReject() (*types.Transaction, error) { 582 return _IProposal.Contract.VoteReject(&_IProposal.TransactOpts) 583 } 584 585 // VoteReject is a paid mutator transaction binding the contract method 0x56c2a0a1. 586 // 587 // Solidity: function voteReject() returns() 588 func (_IProposal *IProposalTransactorSession) VoteReject() (*types.Transaction, error) { 589 return _IProposal.Contract.VoteReject(&_IProposal.TransactOpts) 590 } 591 592 // Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b. 593 // 594 // Solidity: function withdraw() returns() 595 func (_IProposal *IProposalTransactor) Withdraw(opts *bind.TransactOpts) (*types.Transaction, error) { 596 return _IProposal.contract.Transact(opts, "withdraw") 597 } 598 599 // Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b. 600 // 601 // Solidity: function withdraw() returns() 602 func (_IProposal *IProposalSession) Withdraw() (*types.Transaction, error) { 603 return _IProposal.Contract.Withdraw(&_IProposal.TransactOpts) 604 } 605 606 // Withdraw is a paid mutator transaction binding the contract method 0x3ccfd60b. 607 // 608 // Solidity: function withdraw() returns() 609 func (_IProposal *IProposalTransactorSession) Withdraw() (*types.Transaction, error) { 610 return _IProposal.Contract.Withdraw(&_IProposal.TransactOpts) 611 }