github.com/SmartMeshFoundation/Spectrum@v0.0.0-20220621030607-452a266fee1e/contracts/chief/lib/chief_0.0.2.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 chieflib 5 6 import ( 7 "math/big" 8 "strings" 9 10 "github.com/SmartMeshFoundation/Spectrum/accounts/abi" 11 "github.com/SmartMeshFoundation/Spectrum/accounts/abi/bind" 12 "github.com/SmartMeshFoundation/Spectrum/common" 13 "github.com/SmartMeshFoundation/Spectrum/core/types" 14 ) 15 16 // TribeChiefABI is the input ABI used to generate the binding from. 17 const TribeChiefABI = "[{\"constant\":false,\"inputs\":[{\"name\":\"volunteer\",\"type\":\"address\"}],\"name\":\"update\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getStatus\",\"outputs\":[{\"name\":\"volunteerList\",\"type\":\"address[]\"},{\"name\":\"signerList\",\"type\":\"address[]\"},{\"name\":\"scoreList\",\"type\":\"uint256[]\"},{\"name\":\"numberList\",\"type\":\"uint256[]\"},{\"name\":\"number\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"version\",\"outputs\":[{\"name\":\"\",\"type\":\"string\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"n\",\"type\":\"uint256\"}],\"name\":\"setVolunteerLimit\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":false,\"inputs\":[{\"name\":\"n\",\"type\":\"uint256\"}],\"name\":\"setSingerLimit\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getVolunteerLimit\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"constant\":true,\"inputs\":[],\"name\":\"getSignerLimit\",\"outputs\":[{\"name\":\"\",\"type\":\"uint256\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"genesisSigners\",\"type\":\"address[]\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}]" 18 19 // TribeChiefBin is the compiled bytecode used for deploying new contracts. 20 const TribeChiefBin = `0x606060405260408051908101604052600581527f302e302e32000000000000000000000000000000000000000000000000000000602082015260009080516200004d9291602001906200026a565b50612d00600155600380556004805534156200006857600080fd5b60405162000eae38038062000eae8339810160405280805160068054600160a060020a03191633600160a060020a0316179055919091019050600080808080808651955060008611156200012d57600094505b858510156200012757868581518110620000d157fe5b90602001906020020151600160a060020a0381166000908152600260205260409020805460ff1916600117905593506200011b8460036401000000006200097e6200020482021704565b600190940193620000bb565b620001f7565b5050734110bd1ff0b73fa12c259acf39c950277f266787600081905260026020527ff0054db7accc4f10966f99d7cf81a202687bc788eef5a559cb9a99f0ac4cb305805460ff19166001179055905073ca012e2facf405885293d8d3ba3f14fae1e58b7173adb3ea3ad356199206ca817b04fd668cc5196df2620001c18360036401000000006200097e6200020482021704565b620001dc8260036401000000006200097e6200020482021704565b620001f78160036401000000006200097e6200020482021704565b505050505050506200033b565b600354600754101562000266576007805460018101620002258382620002ef565b5060009182526020808320919091018054600160a060020a031916600160a060020a0386169081179091558252600990526040902081815543600191909101555b5050565b828054600181600116156101000203166002900490600052602060002090601f016020900481019282601f10620002ad57805160ff1916838001178555620002dd565b82800160010185558215620002dd579182015b82811115620002dd578251825591602001919060010190620002c0565b50620002eb9291506200031b565b5090565b8154818355818115116200031657600083815260209020620003169181019083016200031b565b505050565b6200033891905b80821115620002eb576000815560010162000322565b90565b610b63806200034b6000396000f3006060604052600436106100825763ffffffff7c01000000000000000000000000000000000000000000000000000000006000350416631c1b877281146100875780634e69d560146100a857806354fd4d50146101e557806355cd14c91461026f57806379fd787e14610285578063961c5c7a1461029b578063eb5c0011146102c0575b600080fd5b341561009257600080fd5b6100a6600160a060020a03600435166102d3565b005b34156100b357600080fd5b6100bb6104ef565b604051808060200180602001806020018060200186815260200185810385528a818151815260200191508051906020019060200280838360005b8381101561010d5780820151838201526020016100f5565b50505050905001858103845289818151815260200191508051906020019060200280838360005b8381101561014c578082015183820152602001610134565b50505050905001858103835288818151815260200191508051906020019060200280838360005b8381101561018b578082015183820152602001610173565b50505050905001858103825287818151815260200191508051906020019060200280838360005b838110156101ca5780820151838201526020016101b2565b50505050905001995050505050505050505060405180910390f35b34156101f057600080fd5b6101f86106d9565b60405160208082528190810183818151815260200191508051906020019080838360005b8381101561023457808201518382015260200161021c565b50505050905090810190601f1680156102615780820380516001836020036101000a031916815260200191505b509250505060405180910390f35b341561027a57600080fd5b6100a6600435610782565b341561029057600080fd5b6100a66004356107af565b34156102a657600080fd5b6102ae6107dc565b60405190815260200160405180910390f35b34156102cb57600080fd5b6102ae6107e2565b33600160a060020a038116600090815260096020526040812060010154909182918291829182901161030457600080fd5b4360058190556001549011801561032657506001544381151561032357fe5b06155b1561038d576008549450600093505b8484101561038157600a600060088681548110151561035057fe5b6000918252602080832090910154600160a060020a0316835282019290925260400181205560019390930192610335565b61038d60086000610ac9565b60075460055481151561039c57fe5b069250600260006007858154811015156103b257fe5b6000918252602080832090910154600160a060020a0316835282019290925260400190205460ff16151561047b57600960006007858154811015156103f357fe5b6000918252602080832090910154600160a060020a03168352820192909252604001902060078054919350908490811061042957fe5b60009182526020909120015433600160a060020a0390811691161461047657815460019011156104685781546000190182556005546001830155610471565b610471836107e8565b61047b565b600382555b600160a060020a0386161561049357610493866108d0565b6003546007541080156104a95750600854600090115b156104e7576104dd600860008154811015156104c157fe5b600091825260209091200154600160a060020a0316600361097e565b6104e760006109ee565b505050505050565b6104f7610ae7565b6104ff610ae7565b610507610ae7565b61050f610ae7565b60075460009081906040518059106105245750595b90808252806020026020018201604052506007549094506040518059106105485750595b90808252806020026020018201604052509250600090505b600754811015610612576009600060078381548110151561057d57fe5b6000918252602080832090910154600160a060020a031683528201929092526040019020548482815181106105ae57fe5b6020908102909101015260078054600991600091849081106105cc57fe5b6000918252602080832090910154600160a060020a0316835282019290925260400190206001015483828151811061060057fe5b60209081029091010152600101610560565b600880548060200260200160405190810160405280929190818152602001828054801561066857602002820191906000526020600020905b8154600160a060020a0316815260019091019060200180831161064a575b5050505050955060078054806020026020016040519081016040528092919081815260200182805480156106c557602002820191906000526020600020905b8154600160a060020a031681526001909101906020018083116106a7575b505050505094506005549150509091929394565b6106e1610ae7565b60008054600181600116156101000203166002900480601f0160208091040260200160405190810160405280929190818152602001828054600181600116156101000203166002900480156107775780601f1061074c57610100808354040283529160200191610777565b820191906000526020600020905b81548152906001019060200180831161075a57829003601f168201915b505050505090505b90565b33600160a060020a038116600090815260096020526040812060010154116107a957600080fd5b50600455565b33600160a060020a038116600090815260096020526040812060010154116107d657600080fd5b50600355565b60045490565b60035490565b6007546000818310156108cb576009600060078581548110151561080857fe5b6000918252602080832090910154600160a060020a0316835282019290925260400181208181556001015550815b600182038110156108b657600780546001830190811061085257fe5b60009182526020909120015460078054600160a060020a03909216918390811061087857fe5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055600101610836565b6007805460001901906108c99082610af9565b505b505050565b6004546008541080156108f95750600160a060020a0381166000908152600a6020526040902054155b801561091e5750600160a060020a038116600090815260096020526040902060010154155b1561097b5760088054600181016109358382610af9565b506000918252602080832091909101805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0385169081179091558252600a9052604090204390555b50565b60035460075410156109ea57600780546001810161099c8382610af9565b506000918252602080832091909101805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0386169081179091558252600990526040902081815543600191909101555b5050565b6008546000818310156108cb57600a6000600885815481101515610a0e57fe5b6000918252602080832090910154600160a060020a0316835282019290925260400181205550815b60018203811015610ab6576008805460018301908110610a5257fe5b60009182526020909120015460088054600160a060020a039092169183908110610a7857fe5b6000918252602090912001805473ffffffffffffffffffffffffffffffffffffffff1916600160a060020a0392909216919091179055600101610a36565b6008805460001901906108c99082610af9565b508054600082559060005260206000209081019061097b9190610b19565b60206040519081016040526000815290565b8154818355818115116108cb576000838152602090206108cb9181019083015b61077f91905b80821115610b335760008155600101610b1f565b50905600a165627a7a723058207b4818c6a089263c8aaab5297423704e330f405a4a5c3020628e103f78924fcc0029` 21 22 // DeployTribeChief deploys a new Ethereum contract, binding an instance of TribeChief to it. 23 func DeployTribeChief(auth *bind.TransactOpts, backend bind.ContractBackend, genesisSigners []common.Address) (common.Address, *types.Transaction, *TribeChief, error) { 24 parsed, err := abi.JSON(strings.NewReader(TribeChiefABI)) 25 if err != nil { 26 return common.Address{}, nil, nil, err 27 } 28 address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(TribeChiefBin), backend, genesisSigners) 29 if err != nil { 30 return common.Address{}, nil, nil, err 31 } 32 return address, tx, &TribeChief{TribeChiefCaller: TribeChiefCaller{contract: contract}, TribeChiefTransactor: TribeChiefTransactor{contract: contract}}, nil 33 } 34 35 // TribeChief is an auto generated Go binding around an Ethereum contract. 36 type TribeChief struct { 37 TribeChiefCaller // Read-only binding to the contract 38 TribeChiefTransactor // Write-only binding to the contract 39 } 40 41 // TribeChiefCaller is an auto generated read-only Go binding around an Ethereum contract. 42 type TribeChiefCaller struct { 43 contract *bind.BoundContract // Generic contract wrapper for the low level calls 44 } 45 46 // TribeChiefTransactor is an auto generated write-only Go binding around an Ethereum contract. 47 type TribeChiefTransactor struct { 48 contract *bind.BoundContract // Generic contract wrapper for the low level calls 49 } 50 51 // TribeChiefSession is an auto generated Go binding around an Ethereum contract, 52 // with pre-set call and transact options. 53 type TribeChiefSession struct { 54 Contract *TribeChief // Generic contract binding to set the session for 55 CallOpts bind.CallOptsWithNumber // Call options to use throughout this session 56 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 57 } 58 59 // TribeChiefCallerSession is an auto generated read-only Go binding around an Ethereum contract, 60 // with pre-set call options. 61 type TribeChiefCallerSession struct { 62 Contract *TribeChiefCaller // Generic contract caller binding to set the session for 63 CallOpts bind.CallOptsWithNumber // Call options to use throughout this session 64 } 65 66 // TribeChiefTransactorSession is an auto generated write-only Go binding around an Ethereum contract, 67 // with pre-set transact options. 68 type TribeChiefTransactorSession struct { 69 Contract *TribeChiefTransactor // Generic contract transactor binding to set the session for 70 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 71 } 72 73 // TribeChiefRaw is an auto generated low-level Go binding around an Ethereum contract. 74 type TribeChiefRaw struct { 75 Contract *TribeChief // Generic contract binding to access the raw methods on 76 } 77 78 // TribeChiefCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. 79 type TribeChiefCallerRaw struct { 80 Contract *TribeChiefCaller // Generic read-only contract binding to access the raw methods on 81 } 82 83 // TribeChiefTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. 84 type TribeChiefTransactorRaw struct { 85 Contract *TribeChiefTransactor // Generic write-only contract binding to access the raw methods on 86 } 87 88 // NewTribeChief creates a new instance of TribeChief, bound to a specific deployed contract. 89 func NewTribeChief(address common.Address, backend bind.ContractBackend) (*TribeChief, error) { 90 contract, err := bindTribeChief(address, backend, backend) 91 if err != nil { 92 return nil, err 93 } 94 return &TribeChief{TribeChiefCaller: TribeChiefCaller{contract: contract}, TribeChiefTransactor: TribeChiefTransactor{contract: contract}}, nil 95 } 96 97 // NewTribeChiefCaller creates a new read-only instance of TribeChief, bound to a specific deployed contract. 98 func NewTribeChiefCaller(address common.Address, caller bind.ContractCaller) (*TribeChiefCaller, error) { 99 contract, err := bindTribeChief(address, caller, nil) 100 if err != nil { 101 return nil, err 102 } 103 return &TribeChiefCaller{contract: contract}, nil 104 } 105 106 // NewTribeChiefTransactor creates a new write-only instance of TribeChief, bound to a specific deployed contract. 107 func NewTribeChiefTransactor(address common.Address, transactor bind.ContractTransactor) (*TribeChiefTransactor, error) { 108 contract, err := bindTribeChief(address, nil, transactor) 109 if err != nil { 110 return nil, err 111 } 112 return &TribeChiefTransactor{contract: contract}, nil 113 } 114 115 // bindTribeChief binds a generic wrapper to an already deployed contract. 116 func bindTribeChief(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor) (*bind.BoundContract, error) { 117 parsed, err := abi.JSON(strings.NewReader(TribeChiefABI)) 118 if err != nil { 119 return nil, err 120 } 121 return bind.NewBoundContract(address, parsed, caller, transactor), nil 122 } 123 124 // Call invokes the (constant) contract method with params as input values and 125 // sets the output to result. The result type might be a single field for simple 126 // returns, a slice of interfaces for anonymous returns and a struct for named 127 // returns. 128 func (_TribeChief *TribeChiefRaw) CallWithNumber(opts *bind.CallOptsWithNumber, result interface{}, method string, params ...interface{}) error { 129 return _TribeChief.Contract.TribeChiefCaller.contract.CallWithNumber(opts, result, method, params...) 130 } 131 132 // Transfer initiates a plain transaction to move funds to the contract, calling 133 // its default method if one is available. 134 func (_TribeChief *TribeChiefRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 135 return _TribeChief.Contract.TribeChiefTransactor.contract.Transfer(opts) 136 } 137 138 // Transact invokes the (paid) contract method with params as input values. 139 func (_TribeChief *TribeChiefRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 140 return _TribeChief.Contract.TribeChiefTransactor.contract.Transact(opts, method, params...) 141 } 142 143 // Call invokes the (constant) contract method with params as input values and 144 // sets the output to result. The result type might be a single field for simple 145 // returns, a slice of interfaces for anonymous returns and a struct for named 146 // returns. 147 func (_TribeChief *TribeChiefCallerRaw) CallWithNumber(opts *bind.CallOptsWithNumber, result interface{}, method string, params ...interface{}) error { 148 return _TribeChief.Contract.contract.CallWithNumber(opts, result, method, params...) 149 } 150 151 // Transfer initiates a plain transaction to move funds to the contract, calling 152 // its default method if one is available. 153 func (_TribeChief *TribeChiefTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 154 return _TribeChief.Contract.contract.Transfer(opts) 155 } 156 157 // Transact invokes the (paid) contract method with params as input values. 158 func (_TribeChief *TribeChiefTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 159 return _TribeChief.Contract.contract.Transact(opts, method, params...) 160 } 161 162 // GetSignerLimit is a free data retrieval call binding the contract method 0xeb5c0011. 163 // 164 // Solidity: function getSignerLimit() constant returns(uint256) 165 func (_TribeChief *TribeChiefCaller) GetSignerLimit(opts *bind.CallOptsWithNumber) (*big.Int, error) { 166 var ( 167 ret0 = new(*big.Int) 168 ) 169 out := ret0 170 err := _TribeChief.contract.CallWithNumber(opts, out, "getSignerLimit") 171 return *ret0, err 172 } 173 174 // GetSignerLimit is a free data retrieval call binding the contract method 0xeb5c0011. 175 // 176 // Solidity: function getSignerLimit() constant returns(uint256) 177 func (_TribeChief *TribeChiefSession) GetSignerLimit() (*big.Int, error) { 178 return _TribeChief.Contract.GetSignerLimit(&_TribeChief.CallOpts) 179 } 180 181 // GetSignerLimit is a free data retrieval call binding the contract method 0xeb5c0011. 182 // 183 // Solidity: function getSignerLimit() constant returns(uint256) 184 func (_TribeChief *TribeChiefCallerSession) GetSignerLimit() (*big.Int, error) { 185 return _TribeChief.Contract.GetSignerLimit(&_TribeChief.CallOpts) 186 } 187 188 // GetStatus is a free data retrieval call binding the contract method 0x4e69d560. 189 // 190 // Solidity: function getStatus() constant returns(volunteerList address[], signerList address[], scoreList uint256[], numberList uint256[], number uint256) 191 func (_TribeChief *TribeChiefCaller) GetStatus(opts *bind.CallOptsWithNumber) (struct { 192 VolunteerList []common.Address 193 SignerList []common.Address 194 ScoreList []*big.Int 195 NumberList []*big.Int 196 Number *big.Int 197 }, error) { 198 ret := new(struct { 199 VolunteerList []common.Address 200 SignerList []common.Address 201 ScoreList []*big.Int 202 NumberList []*big.Int 203 Number *big.Int 204 }) 205 out := ret 206 err := _TribeChief.contract.CallWithNumber(opts, out, "getStatus") 207 return *ret, err 208 } 209 210 // GetStatus is a free data retrieval call binding the contract method 0x4e69d560. 211 // 212 // Solidity: function getStatus() constant returns(volunteerList address[], signerList address[], scoreList uint256[], numberList uint256[], number uint256) 213 func (_TribeChief *TribeChiefSession) GetStatus() (struct { 214 VolunteerList []common.Address 215 SignerList []common.Address 216 ScoreList []*big.Int 217 NumberList []*big.Int 218 Number *big.Int 219 }, error) { 220 return _TribeChief.Contract.GetStatus(&_TribeChief.CallOpts) 221 } 222 223 // GetStatus is a free data retrieval call binding the contract method 0x4e69d560. 224 // 225 // Solidity: function getStatus() constant returns(volunteerList address[], signerList address[], scoreList uint256[], numberList uint256[], number uint256) 226 func (_TribeChief *TribeChiefCallerSession) GetStatus() (struct { 227 VolunteerList []common.Address 228 SignerList []common.Address 229 ScoreList []*big.Int 230 NumberList []*big.Int 231 Number *big.Int 232 }, error) { 233 return _TribeChief.Contract.GetStatus(&_TribeChief.CallOpts) 234 } 235 236 // GetVolunteerLimit is a free data retrieval call binding the contract method 0x961c5c7a. 237 // 238 // Solidity: function getVolunteerLimit() constant returns(uint256) 239 func (_TribeChief *TribeChiefCaller) GetVolunteerLimit(opts *bind.CallOptsWithNumber) (*big.Int, error) { 240 var ( 241 ret0 = new(*big.Int) 242 ) 243 out := ret0 244 err := _TribeChief.contract.CallWithNumber(opts, out, "getVolunteerLimit") 245 return *ret0, err 246 } 247 248 // GetVolunteerLimit is a free data retrieval call binding the contract method 0x961c5c7a. 249 // 250 // Solidity: function getVolunteerLimit() constant returns(uint256) 251 func (_TribeChief *TribeChiefSession) GetVolunteerLimit() (*big.Int, error) { 252 return _TribeChief.Contract.GetVolunteerLimit(&_TribeChief.CallOpts) 253 } 254 255 // GetVolunteerLimit is a free data retrieval call binding the contract method 0x961c5c7a. 256 // 257 // Solidity: function getVolunteerLimit() constant returns(uint256) 258 func (_TribeChief *TribeChiefCallerSession) GetVolunteerLimit() (*big.Int, error) { 259 return _TribeChief.Contract.GetVolunteerLimit(&_TribeChief.CallOpts) 260 } 261 262 // Version is a free data retrieval call binding the contract method 0x54fd4d50. 263 // 264 // Solidity: function version() constant returns(string) 265 func (_TribeChief *TribeChiefCaller) Version(opts *bind.CallOptsWithNumber) (string, error) { 266 var ( 267 ret0 = new(string) 268 ) 269 out := ret0 270 err := _TribeChief.contract.CallWithNumber(opts, out, "version") 271 return *ret0, err 272 } 273 274 // Version is a free data retrieval call binding the contract method 0x54fd4d50. 275 // 276 // Solidity: function version() constant returns(string) 277 func (_TribeChief *TribeChiefSession) Version() (string, error) { 278 return _TribeChief.Contract.Version(&_TribeChief.CallOpts) 279 } 280 281 // Version is a free data retrieval call binding the contract method 0x54fd4d50. 282 // 283 // Solidity: function version() constant returns(string) 284 func (_TribeChief *TribeChiefCallerSession) Version() (string, error) { 285 return _TribeChief.Contract.Version(&_TribeChief.CallOpts) 286 } 287 288 // SetSingerLimit is a paid mutator transaction binding the contract method 0x79fd787e. 289 // 290 // Solidity: function setSingerLimit(n uint256) returns() 291 func (_TribeChief *TribeChiefTransactor) SetSingerLimit(opts *bind.TransactOpts, n *big.Int) (*types.Transaction, error) { 292 return _TribeChief.contract.Transact(opts, "setSingerLimit", n) 293 } 294 295 // SetSingerLimit is a paid mutator transaction binding the contract method 0x79fd787e. 296 // 297 // Solidity: function setSingerLimit(n uint256) returns() 298 func (_TribeChief *TribeChiefSession) SetSingerLimit(n *big.Int) (*types.Transaction, error) { 299 return _TribeChief.Contract.SetSingerLimit(&_TribeChief.TransactOpts, n) 300 } 301 302 // SetSingerLimit is a paid mutator transaction binding the contract method 0x79fd787e. 303 // 304 // Solidity: function setSingerLimit(n uint256) returns() 305 func (_TribeChief *TribeChiefTransactorSession) SetSingerLimit(n *big.Int) (*types.Transaction, error) { 306 return _TribeChief.Contract.SetSingerLimit(&_TribeChief.TransactOpts, n) 307 } 308 309 // SetVolunteerLimit is a paid mutator transaction binding the contract method 0x55cd14c9. 310 // 311 // Solidity: function setVolunteerLimit(n uint256) returns() 312 func (_TribeChief *TribeChiefTransactor) SetVolunteerLimit(opts *bind.TransactOpts, n *big.Int) (*types.Transaction, error) { 313 return _TribeChief.contract.Transact(opts, "setVolunteerLimit", n) 314 } 315 316 // SetVolunteerLimit is a paid mutator transaction binding the contract method 0x55cd14c9. 317 // 318 // Solidity: function setVolunteerLimit(n uint256) returns() 319 func (_TribeChief *TribeChiefSession) SetVolunteerLimit(n *big.Int) (*types.Transaction, error) { 320 return _TribeChief.Contract.SetVolunteerLimit(&_TribeChief.TransactOpts, n) 321 } 322 323 // SetVolunteerLimit is a paid mutator transaction binding the contract method 0x55cd14c9. 324 // 325 // Solidity: function setVolunteerLimit(n uint256) returns() 326 func (_TribeChief *TribeChiefTransactorSession) SetVolunteerLimit(n *big.Int) (*types.Transaction, error) { 327 return _TribeChief.Contract.SetVolunteerLimit(&_TribeChief.TransactOpts, n) 328 } 329 330 // Update is a paid mutator transaction binding the contract method 0x1c1b8772. 331 // 332 // Solidity: function update(volunteer address) returns() 333 func (_TribeChief *TribeChiefTransactor) Update(opts *bind.TransactOpts, volunteer common.Address) (*types.Transaction, error) { 334 return _TribeChief.contract.Transact(opts, "update", volunteer) 335 } 336 337 // Update is a paid mutator transaction binding the contract method 0x1c1b8772. 338 // 339 // Solidity: function update(volunteer address) returns() 340 func (_TribeChief *TribeChiefSession) Update(volunteer common.Address) (*types.Transaction, error) { 341 return _TribeChief.Contract.Update(&_TribeChief.TransactOpts, volunteer) 342 } 343 344 // Update is a paid mutator transaction binding the contract method 0x1c1b8772. 345 // 346 // Solidity: function update(volunteer address) returns() 347 func (_TribeChief *TribeChiefTransactorSession) Update(volunteer common.Address) (*types.Transaction, error) { 348 return _TribeChief.Contract.Update(&_TribeChief.TransactOpts, volunteer) 349 }