Collect.go 61 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497
  1. // Code generated - DO NOT EDIT.
  2. // This file is a generated binding and any manual changes will be lost.
  3. package Collect
  4. import (
  5. "errors"
  6. "math/big"
  7. "strings"
  8. ethereum "github.com/ethereum/go-ethereum"
  9. "github.com/ethereum/go-ethereum/accounts/abi"
  10. "github.com/ethereum/go-ethereum/accounts/abi/bind"
  11. "github.com/ethereum/go-ethereum/common"
  12. "github.com/ethereum/go-ethereum/core/types"
  13. "github.com/ethereum/go-ethereum/event"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var (
  17. _ = errors.New
  18. _ = big.NewInt
  19. _ = strings.NewReader
  20. _ = ethereum.NotFound
  21. _ = bind.Bind
  22. _ = common.Big1
  23. _ = types.BloomLookup
  24. _ = event.NewSubscription
  25. )
  26. // CollectMetaData contains all meta data concerning the Collect contract.
  27. var CollectMetaData = &bind.MetaData{
  28. ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"user\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"indexed\":false,\"internalType\":\"bytes32\",\"name\":\"signature\",\"type\":\"bytes32\"}],\"name\":\"Claim\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"claimValue\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"signTime\",\"type\":\"string\"},{\"internalType\":\"bytes32\",\"name\":\"signature\",\"type\":\"bytes32\"}],\"name\":\"claimRewards\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"community\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"technical\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"devAddress\",\"type\":\"address\"}],\"name\":\"initialize\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"inviter\",\"type\":\"address\"}],\"name\":\"participate\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"participant\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"address\",\"name\":\"inviter\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"Participate\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"name\":\"removeManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"name\":\"RemoveManager\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"baseReward\",\"type\":\"uint256\"}],\"name\":\"setBaseReward\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"setBaseValue\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_digit\",\"type\":\"string\"}],\"name\":\"setDigit\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"name\":\"setManager\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"_manager\",\"type\":\"address\"}],\"name\":\"SetManager\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"withdraw\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_baseReward\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_baseValue\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_community\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_devAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_reinputLimit\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_reinputModBase\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"_technical\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getDigit\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"managers\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"signTime\",\"type\":\"string\"},{\"internalType\":\"bytes32\",\"name\":\"signature\",\"type\":\"bytes32\"}],\"name\":\"verify\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"_amount\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"_time\",\"type\":\"string\"},{\"internalType\":\"address\",\"name\":\"_user\",\"type\":\"address\"},{\"internalType\":\"bytes32\",\"name\":\"_sign\",\"type\":\"bytes32\"}],\"name\":\"verifySignature\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]",
  29. }
  30. // CollectABI is the input ABI used to generate the binding from.
  31. // Deprecated: Use CollectMetaData.ABI instead.
  32. var CollectABI = CollectMetaData.ABI
  33. // Collect is an auto generated Go binding around an Ethereum contract.
  34. type Collect struct {
  35. CollectCaller // Read-only binding to the contract
  36. CollectTransactor // Write-only binding to the contract
  37. CollectFilterer // Log filterer for contract events
  38. }
  39. // CollectCaller is an auto generated read-only Go binding around an Ethereum contract.
  40. type CollectCaller struct {
  41. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  42. }
  43. // CollectTransactor is an auto generated write-only Go binding around an Ethereum contract.
  44. type CollectTransactor struct {
  45. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  46. }
  47. // CollectFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
  48. type CollectFilterer struct {
  49. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  50. }
  51. // CollectSession is an auto generated Go binding around an Ethereum contract,
  52. // with pre-set call and transact options.
  53. type CollectSession struct {
  54. Contract *Collect // Generic contract binding to set the session for
  55. CallOpts bind.CallOpts // Call options to use throughout this session
  56. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  57. }
  58. // CollectCallerSession is an auto generated read-only Go binding around an Ethereum contract,
  59. // with pre-set call options.
  60. type CollectCallerSession struct {
  61. Contract *CollectCaller // Generic contract caller binding to set the session for
  62. CallOpts bind.CallOpts // Call options to use throughout this session
  63. }
  64. // CollectTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
  65. // with pre-set transact options.
  66. type CollectTransactorSession struct {
  67. Contract *CollectTransactor // Generic contract transactor binding to set the session for
  68. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  69. }
  70. // CollectRaw is an auto generated low-level Go binding around an Ethereum contract.
  71. type CollectRaw struct {
  72. Contract *Collect // Generic contract binding to access the raw methods on
  73. }
  74. // CollectCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
  75. type CollectCallerRaw struct {
  76. Contract *CollectCaller // Generic read-only contract binding to access the raw methods on
  77. }
  78. // CollectTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
  79. type CollectTransactorRaw struct {
  80. Contract *CollectTransactor // Generic write-only contract binding to access the raw methods on
  81. }
  82. // NewCollect creates a new instance of Collect, bound to a specific deployed contract.
  83. func NewCollect(address common.Address, backend bind.ContractBackend) (*Collect, error) {
  84. contract, err := bindCollect(address, backend, backend, backend)
  85. if err != nil {
  86. return nil, err
  87. }
  88. return &Collect{CollectCaller: CollectCaller{contract: contract}, CollectTransactor: CollectTransactor{contract: contract}, CollectFilterer: CollectFilterer{contract: contract}}, nil
  89. }
  90. // NewCollectCaller creates a new read-only instance of Collect, bound to a specific deployed contract.
  91. func NewCollectCaller(address common.Address, caller bind.ContractCaller) (*CollectCaller, error) {
  92. contract, err := bindCollect(address, caller, nil, nil)
  93. if err != nil {
  94. return nil, err
  95. }
  96. return &CollectCaller{contract: contract}, nil
  97. }
  98. // NewCollectTransactor creates a new write-only instance of Collect, bound to a specific deployed contract.
  99. func NewCollectTransactor(address common.Address, transactor bind.ContractTransactor) (*CollectTransactor, error) {
  100. contract, err := bindCollect(address, nil, transactor, nil)
  101. if err != nil {
  102. return nil, err
  103. }
  104. return &CollectTransactor{contract: contract}, nil
  105. }
  106. // NewCollectFilterer creates a new log filterer instance of Collect, bound to a specific deployed contract.
  107. func NewCollectFilterer(address common.Address, filterer bind.ContractFilterer) (*CollectFilterer, error) {
  108. contract, err := bindCollect(address, nil, nil, filterer)
  109. if err != nil {
  110. return nil, err
  111. }
  112. return &CollectFilterer{contract: contract}, nil
  113. }
  114. // bindCollect binds a generic wrapper to an already deployed contract.
  115. func bindCollect(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
  116. parsed, err := abi.JSON(strings.NewReader(CollectABI))
  117. if err != nil {
  118. return nil, err
  119. }
  120. return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
  121. }
  122. // Call invokes the (constant) contract method with params as input values and
  123. // sets the output to result. The result type might be a single field for simple
  124. // returns, a slice of interfaces for anonymous returns and a struct for named
  125. // returns.
  126. func (_Collect *CollectRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
  127. return _Collect.Contract.CollectCaller.contract.Call(opts, result, method, params...)
  128. }
  129. // Transfer initiates a plain transaction to move funds to the contract, calling
  130. // its default method if one is available.
  131. func (_Collect *CollectRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  132. return _Collect.Contract.CollectTransactor.contract.Transfer(opts)
  133. }
  134. // Transact invokes the (paid) contract method with params as input values.
  135. func (_Collect *CollectRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  136. return _Collect.Contract.CollectTransactor.contract.Transact(opts, method, params...)
  137. }
  138. // Call invokes the (constant) contract method with params as input values and
  139. // sets the output to result. The result type might be a single field for simple
  140. // returns, a slice of interfaces for anonymous returns and a struct for named
  141. // returns.
  142. func (_Collect *CollectCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
  143. return _Collect.Contract.contract.Call(opts, result, method, params...)
  144. }
  145. // Transfer initiates a plain transaction to move funds to the contract, calling
  146. // its default method if one is available.
  147. func (_Collect *CollectTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  148. return _Collect.Contract.contract.Transfer(opts)
  149. }
  150. // Transact invokes the (paid) contract method with params as input values.
  151. func (_Collect *CollectTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  152. return _Collect.Contract.contract.Transact(opts, method, params...)
  153. }
  154. // BaseReward is a free data retrieval call binding the contract method 0xb0c466d8.
  155. //
  156. // Solidity: function _baseReward() view returns(uint256)
  157. func (_Collect *CollectCaller) BaseReward(opts *bind.CallOpts) (*big.Int, error) {
  158. var out []interface{}
  159. err := _Collect.contract.Call(opts, &out, "_baseReward")
  160. if err != nil {
  161. return *new(*big.Int), err
  162. }
  163. out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
  164. return out0, err
  165. }
  166. // BaseReward is a free data retrieval call binding the contract method 0xb0c466d8.
  167. //
  168. // Solidity: function _baseReward() view returns(uint256)
  169. func (_Collect *CollectSession) BaseReward() (*big.Int, error) {
  170. return _Collect.Contract.BaseReward(&_Collect.CallOpts)
  171. }
  172. // BaseReward is a free data retrieval call binding the contract method 0xb0c466d8.
  173. //
  174. // Solidity: function _baseReward() view returns(uint256)
  175. func (_Collect *CollectCallerSession) BaseReward() (*big.Int, error) {
  176. return _Collect.Contract.BaseReward(&_Collect.CallOpts)
  177. }
  178. // BaseValue is a free data retrieval call binding the contract method 0x138efbaf.
  179. //
  180. // Solidity: function _baseValue() view returns(uint256)
  181. func (_Collect *CollectCaller) BaseValue(opts *bind.CallOpts) (*big.Int, error) {
  182. var out []interface{}
  183. err := _Collect.contract.Call(opts, &out, "_baseValue")
  184. if err != nil {
  185. return *new(*big.Int), err
  186. }
  187. out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
  188. return out0, err
  189. }
  190. // BaseValue is a free data retrieval call binding the contract method 0x138efbaf.
  191. //
  192. // Solidity: function _baseValue() view returns(uint256)
  193. func (_Collect *CollectSession) BaseValue() (*big.Int, error) {
  194. return _Collect.Contract.BaseValue(&_Collect.CallOpts)
  195. }
  196. // BaseValue is a free data retrieval call binding the contract method 0x138efbaf.
  197. //
  198. // Solidity: function _baseValue() view returns(uint256)
  199. func (_Collect *CollectCallerSession) BaseValue() (*big.Int, error) {
  200. return _Collect.Contract.BaseValue(&_Collect.CallOpts)
  201. }
  202. // Community is a free data retrieval call binding the contract method 0x723bc11a.
  203. //
  204. // Solidity: function _community() view returns(address)
  205. func (_Collect *CollectCaller) Community(opts *bind.CallOpts) (common.Address, error) {
  206. var out []interface{}
  207. err := _Collect.contract.Call(opts, &out, "_community")
  208. if err != nil {
  209. return *new(common.Address), err
  210. }
  211. out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
  212. return out0, err
  213. }
  214. // Community is a free data retrieval call binding the contract method 0x723bc11a.
  215. //
  216. // Solidity: function _community() view returns(address)
  217. func (_Collect *CollectSession) Community() (common.Address, error) {
  218. return _Collect.Contract.Community(&_Collect.CallOpts)
  219. }
  220. // Community is a free data retrieval call binding the contract method 0x723bc11a.
  221. //
  222. // Solidity: function _community() view returns(address)
  223. func (_Collect *CollectCallerSession) Community() (common.Address, error) {
  224. return _Collect.Contract.Community(&_Collect.CallOpts)
  225. }
  226. // DevAddress is a free data retrieval call binding the contract method 0x6af65929.
  227. //
  228. // Solidity: function _devAddress() view returns(address)
  229. func (_Collect *CollectCaller) DevAddress(opts *bind.CallOpts) (common.Address, error) {
  230. var out []interface{}
  231. err := _Collect.contract.Call(opts, &out, "_devAddress")
  232. if err != nil {
  233. return *new(common.Address), err
  234. }
  235. out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
  236. return out0, err
  237. }
  238. // DevAddress is a free data retrieval call binding the contract method 0x6af65929.
  239. //
  240. // Solidity: function _devAddress() view returns(address)
  241. func (_Collect *CollectSession) DevAddress() (common.Address, error) {
  242. return _Collect.Contract.DevAddress(&_Collect.CallOpts)
  243. }
  244. // DevAddress is a free data retrieval call binding the contract method 0x6af65929.
  245. //
  246. // Solidity: function _devAddress() view returns(address)
  247. func (_Collect *CollectCallerSession) DevAddress() (common.Address, error) {
  248. return _Collect.Contract.DevAddress(&_Collect.CallOpts)
  249. }
  250. // ReinputLimit is a free data retrieval call binding the contract method 0xe975e999.
  251. //
  252. // Solidity: function _reinputLimit() view returns(uint256)
  253. func (_Collect *CollectCaller) ReinputLimit(opts *bind.CallOpts) (*big.Int, error) {
  254. var out []interface{}
  255. err := _Collect.contract.Call(opts, &out, "_reinputLimit")
  256. if err != nil {
  257. return *new(*big.Int), err
  258. }
  259. out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
  260. return out0, err
  261. }
  262. // ReinputLimit is a free data retrieval call binding the contract method 0xe975e999.
  263. //
  264. // Solidity: function _reinputLimit() view returns(uint256)
  265. func (_Collect *CollectSession) ReinputLimit() (*big.Int, error) {
  266. return _Collect.Contract.ReinputLimit(&_Collect.CallOpts)
  267. }
  268. // ReinputLimit is a free data retrieval call binding the contract method 0xe975e999.
  269. //
  270. // Solidity: function _reinputLimit() view returns(uint256)
  271. func (_Collect *CollectCallerSession) ReinputLimit() (*big.Int, error) {
  272. return _Collect.Contract.ReinputLimit(&_Collect.CallOpts)
  273. }
  274. // ReinputModBase is a free data retrieval call binding the contract method 0xf517767f.
  275. //
  276. // Solidity: function _reinputModBase() view returns(uint256)
  277. func (_Collect *CollectCaller) ReinputModBase(opts *bind.CallOpts) (*big.Int, error) {
  278. var out []interface{}
  279. err := _Collect.contract.Call(opts, &out, "_reinputModBase")
  280. if err != nil {
  281. return *new(*big.Int), err
  282. }
  283. out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
  284. return out0, err
  285. }
  286. // ReinputModBase is a free data retrieval call binding the contract method 0xf517767f.
  287. //
  288. // Solidity: function _reinputModBase() view returns(uint256)
  289. func (_Collect *CollectSession) ReinputModBase() (*big.Int, error) {
  290. return _Collect.Contract.ReinputModBase(&_Collect.CallOpts)
  291. }
  292. // ReinputModBase is a free data retrieval call binding the contract method 0xf517767f.
  293. //
  294. // Solidity: function _reinputModBase() view returns(uint256)
  295. func (_Collect *CollectCallerSession) ReinputModBase() (*big.Int, error) {
  296. return _Collect.Contract.ReinputModBase(&_Collect.CallOpts)
  297. }
  298. // Technical is a free data retrieval call binding the contract method 0x37a56907.
  299. //
  300. // Solidity: function _technical() view returns(address)
  301. func (_Collect *CollectCaller) Technical(opts *bind.CallOpts) (common.Address, error) {
  302. var out []interface{}
  303. err := _Collect.contract.Call(opts, &out, "_technical")
  304. if err != nil {
  305. return *new(common.Address), err
  306. }
  307. out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
  308. return out0, err
  309. }
  310. // Technical is a free data retrieval call binding the contract method 0x37a56907.
  311. //
  312. // Solidity: function _technical() view returns(address)
  313. func (_Collect *CollectSession) Technical() (common.Address, error) {
  314. return _Collect.Contract.Technical(&_Collect.CallOpts)
  315. }
  316. // Technical is a free data retrieval call binding the contract method 0x37a56907.
  317. //
  318. // Solidity: function _technical() view returns(address)
  319. func (_Collect *CollectCallerSession) Technical() (common.Address, error) {
  320. return _Collect.Contract.Technical(&_Collect.CallOpts)
  321. }
  322. // GetDigit is a free data retrieval call binding the contract method 0x6b590248.
  323. //
  324. // Solidity: function getDigit() view returns(string)
  325. func (_Collect *CollectCaller) GetDigit(opts *bind.CallOpts) (string, error) {
  326. var out []interface{}
  327. err := _Collect.contract.Call(opts, &out, "getDigit")
  328. if err != nil {
  329. return *new(string), err
  330. }
  331. out0 := *abi.ConvertType(out[0], new(string)).(*string)
  332. return out0, err
  333. }
  334. // GetDigit is a free data retrieval call binding the contract method 0x6b590248.
  335. //
  336. // Solidity: function getDigit() view returns(string)
  337. func (_Collect *CollectSession) GetDigit() (string, error) {
  338. return _Collect.Contract.GetDigit(&_Collect.CallOpts)
  339. }
  340. // GetDigit is a free data retrieval call binding the contract method 0x6b590248.
  341. //
  342. // Solidity: function getDigit() view returns(string)
  343. func (_Collect *CollectCallerSession) GetDigit() (string, error) {
  344. return _Collect.Contract.GetDigit(&_Collect.CallOpts)
  345. }
  346. // Managers is a free data retrieval call binding the contract method 0xfdff9b4d.
  347. //
  348. // Solidity: function managers(address ) view returns(bool)
  349. func (_Collect *CollectCaller) Managers(opts *bind.CallOpts, arg0 common.Address) (bool, error) {
  350. var out []interface{}
  351. err := _Collect.contract.Call(opts, &out, "managers", arg0)
  352. if err != nil {
  353. return *new(bool), err
  354. }
  355. out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
  356. return out0, err
  357. }
  358. // Managers is a free data retrieval call binding the contract method 0xfdff9b4d.
  359. //
  360. // Solidity: function managers(address ) view returns(bool)
  361. func (_Collect *CollectSession) Managers(arg0 common.Address) (bool, error) {
  362. return _Collect.Contract.Managers(&_Collect.CallOpts, arg0)
  363. }
  364. // Managers is a free data retrieval call binding the contract method 0xfdff9b4d.
  365. //
  366. // Solidity: function managers(address ) view returns(bool)
  367. func (_Collect *CollectCallerSession) Managers(arg0 common.Address) (bool, error) {
  368. return _Collect.Contract.Managers(&_Collect.CallOpts, arg0)
  369. }
  370. // Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
  371. //
  372. // Solidity: function owner() view returns(address)
  373. func (_Collect *CollectCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
  374. var out []interface{}
  375. err := _Collect.contract.Call(opts, &out, "owner")
  376. if err != nil {
  377. return *new(common.Address), err
  378. }
  379. out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
  380. return out0, err
  381. }
  382. // Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
  383. //
  384. // Solidity: function owner() view returns(address)
  385. func (_Collect *CollectSession) Owner() (common.Address, error) {
  386. return _Collect.Contract.Owner(&_Collect.CallOpts)
  387. }
  388. // Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
  389. //
  390. // Solidity: function owner() view returns(address)
  391. func (_Collect *CollectCallerSession) Owner() (common.Address, error) {
  392. return _Collect.Contract.Owner(&_Collect.CallOpts)
  393. }
  394. // Verify is a free data retrieval call binding the contract method 0x6cd80733.
  395. //
  396. // Solidity: function verify(uint256 amount, string signTime, bytes32 signature) view returns(bool)
  397. func (_Collect *CollectCaller) Verify(opts *bind.CallOpts, amount *big.Int, signTime string, signature [32]byte) (bool, error) {
  398. var out []interface{}
  399. err := _Collect.contract.Call(opts, &out, "verify", amount, signTime, signature)
  400. if err != nil {
  401. return *new(bool), err
  402. }
  403. out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
  404. return out0, err
  405. }
  406. // Verify is a free data retrieval call binding the contract method 0x6cd80733.
  407. //
  408. // Solidity: function verify(uint256 amount, string signTime, bytes32 signature) view returns(bool)
  409. func (_Collect *CollectSession) Verify(amount *big.Int, signTime string, signature [32]byte) (bool, error) {
  410. return _Collect.Contract.Verify(&_Collect.CallOpts, amount, signTime, signature)
  411. }
  412. // Verify is a free data retrieval call binding the contract method 0x6cd80733.
  413. //
  414. // Solidity: function verify(uint256 amount, string signTime, bytes32 signature) view returns(bool)
  415. func (_Collect *CollectCallerSession) Verify(amount *big.Int, signTime string, signature [32]byte) (bool, error) {
  416. return _Collect.Contract.Verify(&_Collect.CallOpts, amount, signTime, signature)
  417. }
  418. // VerifySignature is a free data retrieval call binding the contract method 0x19ba5284.
  419. //
  420. // Solidity: function verifySignature(uint256 _amount, string _time, address _user, bytes32 _sign) view returns(bool)
  421. func (_Collect *CollectCaller) VerifySignature(opts *bind.CallOpts, _amount *big.Int, _time string, _user common.Address, _sign [32]byte) (bool, error) {
  422. var out []interface{}
  423. err := _Collect.contract.Call(opts, &out, "verifySignature", _amount, _time, _user, _sign)
  424. if err != nil {
  425. return *new(bool), err
  426. }
  427. out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
  428. return out0, err
  429. }
  430. // VerifySignature is a free data retrieval call binding the contract method 0x19ba5284.
  431. //
  432. // Solidity: function verifySignature(uint256 _amount, string _time, address _user, bytes32 _sign) view returns(bool)
  433. func (_Collect *CollectSession) VerifySignature(_amount *big.Int, _time string, _user common.Address, _sign [32]byte) (bool, error) {
  434. return _Collect.Contract.VerifySignature(&_Collect.CallOpts, _amount, _time, _user, _sign)
  435. }
  436. // VerifySignature is a free data retrieval call binding the contract method 0x19ba5284.
  437. //
  438. // Solidity: function verifySignature(uint256 _amount, string _time, address _user, bytes32 _sign) view returns(bool)
  439. func (_Collect *CollectCallerSession) VerifySignature(_amount *big.Int, _time string, _user common.Address, _sign [32]byte) (bool, error) {
  440. return _Collect.Contract.VerifySignature(&_Collect.CallOpts, _amount, _time, _user, _sign)
  441. }
  442. // ClaimRewards is a paid mutator transaction binding the contract method 0xd56099aa.
  443. //
  444. // Solidity: function claimRewards(uint256 claimValue, string signTime, bytes32 signature) returns()
  445. func (_Collect *CollectTransactor) ClaimRewards(opts *bind.TransactOpts, claimValue *big.Int, signTime string, signature [32]byte) (*types.Transaction, error) {
  446. return _Collect.contract.Transact(opts, "claimRewards", claimValue, signTime, signature)
  447. }
  448. // ClaimRewards is a paid mutator transaction binding the contract method 0xd56099aa.
  449. //
  450. // Solidity: function claimRewards(uint256 claimValue, string signTime, bytes32 signature) returns()
  451. func (_Collect *CollectSession) ClaimRewards(claimValue *big.Int, signTime string, signature [32]byte) (*types.Transaction, error) {
  452. return _Collect.Contract.ClaimRewards(&_Collect.TransactOpts, claimValue, signTime, signature)
  453. }
  454. // ClaimRewards is a paid mutator transaction binding the contract method 0xd56099aa.
  455. //
  456. // Solidity: function claimRewards(uint256 claimValue, string signTime, bytes32 signature) returns()
  457. func (_Collect *CollectTransactorSession) ClaimRewards(claimValue *big.Int, signTime string, signature [32]byte) (*types.Transaction, error) {
  458. return _Collect.Contract.ClaimRewards(&_Collect.TransactOpts, claimValue, signTime, signature)
  459. }
  460. // Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
  461. //
  462. // Solidity: function initialize() returns()
  463. func (_Collect *CollectTransactor) Initialize(opts *bind.TransactOpts) (*types.Transaction, error) {
  464. return _Collect.contract.Transact(opts, "initialize")
  465. }
  466. // Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
  467. //
  468. // Solidity: function initialize() returns()
  469. func (_Collect *CollectSession) Initialize() (*types.Transaction, error) {
  470. return _Collect.Contract.Initialize(&_Collect.TransactOpts)
  471. }
  472. // Initialize is a paid mutator transaction binding the contract method 0x8129fc1c.
  473. //
  474. // Solidity: function initialize() returns()
  475. func (_Collect *CollectTransactorSession) Initialize() (*types.Transaction, error) {
  476. return _Collect.Contract.Initialize(&_Collect.TransactOpts)
  477. }
  478. // Initialize0 is a paid mutator transaction binding the contract method 0xc0c53b8b.
  479. //
  480. // Solidity: function initialize(address community, address technical, address devAddress) returns()
  481. func (_Collect *CollectTransactor) Initialize0(opts *bind.TransactOpts, community common.Address, technical common.Address, devAddress common.Address) (*types.Transaction, error) {
  482. return _Collect.contract.Transact(opts, "initialize0", community, technical, devAddress)
  483. }
  484. // Initialize0 is a paid mutator transaction binding the contract method 0xc0c53b8b.
  485. //
  486. // Solidity: function initialize(address community, address technical, address devAddress) returns()
  487. func (_Collect *CollectSession) Initialize0(community common.Address, technical common.Address, devAddress common.Address) (*types.Transaction, error) {
  488. return _Collect.Contract.Initialize0(&_Collect.TransactOpts, community, technical, devAddress)
  489. }
  490. // Initialize0 is a paid mutator transaction binding the contract method 0xc0c53b8b.
  491. //
  492. // Solidity: function initialize(address community, address technical, address devAddress) returns()
  493. func (_Collect *CollectTransactorSession) Initialize0(community common.Address, technical common.Address, devAddress common.Address) (*types.Transaction, error) {
  494. return _Collect.Contract.Initialize0(&_Collect.TransactOpts, community, technical, devAddress)
  495. }
  496. // Participate is a paid mutator transaction binding the contract method 0xb91038c7.
  497. //
  498. // Solidity: function participate(address inviter) payable returns()
  499. func (_Collect *CollectTransactor) Participate(opts *bind.TransactOpts, inviter common.Address) (*types.Transaction, error) {
  500. return _Collect.contract.Transact(opts, "participate", inviter)
  501. }
  502. // Participate is a paid mutator transaction binding the contract method 0xb91038c7.
  503. //
  504. // Solidity: function participate(address inviter) payable returns()
  505. func (_Collect *CollectSession) Participate(inviter common.Address) (*types.Transaction, error) {
  506. return _Collect.Contract.Participate(&_Collect.TransactOpts, inviter)
  507. }
  508. // Participate is a paid mutator transaction binding the contract method 0xb91038c7.
  509. //
  510. // Solidity: function participate(address inviter) payable returns()
  511. func (_Collect *CollectTransactorSession) Participate(inviter common.Address) (*types.Transaction, error) {
  512. return _Collect.Contract.Participate(&_Collect.TransactOpts, inviter)
  513. }
  514. // RemoveManager is a paid mutator transaction binding the contract method 0xac18de43.
  515. //
  516. // Solidity: function removeManager(address _manager) returns()
  517. func (_Collect *CollectTransactor) RemoveManager(opts *bind.TransactOpts, _manager common.Address) (*types.Transaction, error) {
  518. return _Collect.contract.Transact(opts, "removeManager", _manager)
  519. }
  520. // RemoveManager is a paid mutator transaction binding the contract method 0xac18de43.
  521. //
  522. // Solidity: function removeManager(address _manager) returns()
  523. func (_Collect *CollectSession) RemoveManager(_manager common.Address) (*types.Transaction, error) {
  524. return _Collect.Contract.RemoveManager(&_Collect.TransactOpts, _manager)
  525. }
  526. // RemoveManager is a paid mutator transaction binding the contract method 0xac18de43.
  527. //
  528. // Solidity: function removeManager(address _manager) returns()
  529. func (_Collect *CollectTransactorSession) RemoveManager(_manager common.Address) (*types.Transaction, error) {
  530. return _Collect.Contract.RemoveManager(&_Collect.TransactOpts, _manager)
  531. }
  532. // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
  533. //
  534. // Solidity: function renounceOwnership() returns()
  535. func (_Collect *CollectTransactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {
  536. return _Collect.contract.Transact(opts, "renounceOwnership")
  537. }
  538. // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
  539. //
  540. // Solidity: function renounceOwnership() returns()
  541. func (_Collect *CollectSession) RenounceOwnership() (*types.Transaction, error) {
  542. return _Collect.Contract.RenounceOwnership(&_Collect.TransactOpts)
  543. }
  544. // RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
  545. //
  546. // Solidity: function renounceOwnership() returns()
  547. func (_Collect *CollectTransactorSession) RenounceOwnership() (*types.Transaction, error) {
  548. return _Collect.Contract.RenounceOwnership(&_Collect.TransactOpts)
  549. }
  550. // SetBaseReward is a paid mutator transaction binding the contract method 0x0373a23a.
  551. //
  552. // Solidity: function setBaseReward(uint256 baseReward) returns()
  553. func (_Collect *CollectTransactor) SetBaseReward(opts *bind.TransactOpts, baseReward *big.Int) (*types.Transaction, error) {
  554. return _Collect.contract.Transact(opts, "setBaseReward", baseReward)
  555. }
  556. // SetBaseReward is a paid mutator transaction binding the contract method 0x0373a23a.
  557. //
  558. // Solidity: function setBaseReward(uint256 baseReward) returns()
  559. func (_Collect *CollectSession) SetBaseReward(baseReward *big.Int) (*types.Transaction, error) {
  560. return _Collect.Contract.SetBaseReward(&_Collect.TransactOpts, baseReward)
  561. }
  562. // SetBaseReward is a paid mutator transaction binding the contract method 0x0373a23a.
  563. //
  564. // Solidity: function setBaseReward(uint256 baseReward) returns()
  565. func (_Collect *CollectTransactorSession) SetBaseReward(baseReward *big.Int) (*types.Transaction, error) {
  566. return _Collect.Contract.SetBaseReward(&_Collect.TransactOpts, baseReward)
  567. }
  568. // SetBaseValue is a paid mutator transaction binding the contract method 0x3faf24a1.
  569. //
  570. // Solidity: function setBaseValue(uint256 value) returns()
  571. func (_Collect *CollectTransactor) SetBaseValue(opts *bind.TransactOpts, value *big.Int) (*types.Transaction, error) {
  572. return _Collect.contract.Transact(opts, "setBaseValue", value)
  573. }
  574. // SetBaseValue is a paid mutator transaction binding the contract method 0x3faf24a1.
  575. //
  576. // Solidity: function setBaseValue(uint256 value) returns()
  577. func (_Collect *CollectSession) SetBaseValue(value *big.Int) (*types.Transaction, error) {
  578. return _Collect.Contract.SetBaseValue(&_Collect.TransactOpts, value)
  579. }
  580. // SetBaseValue is a paid mutator transaction binding the contract method 0x3faf24a1.
  581. //
  582. // Solidity: function setBaseValue(uint256 value) returns()
  583. func (_Collect *CollectTransactorSession) SetBaseValue(value *big.Int) (*types.Transaction, error) {
  584. return _Collect.Contract.SetBaseValue(&_Collect.TransactOpts, value)
  585. }
  586. // SetDigit is a paid mutator transaction binding the contract method 0x4dbfaecf.
  587. //
  588. // Solidity: function setDigit(string _digit) returns()
  589. func (_Collect *CollectTransactor) SetDigit(opts *bind.TransactOpts, _digit string) (*types.Transaction, error) {
  590. return _Collect.contract.Transact(opts, "setDigit", _digit)
  591. }
  592. // SetDigit is a paid mutator transaction binding the contract method 0x4dbfaecf.
  593. //
  594. // Solidity: function setDigit(string _digit) returns()
  595. func (_Collect *CollectSession) SetDigit(_digit string) (*types.Transaction, error) {
  596. return _Collect.Contract.SetDigit(&_Collect.TransactOpts, _digit)
  597. }
  598. // SetDigit is a paid mutator transaction binding the contract method 0x4dbfaecf.
  599. //
  600. // Solidity: function setDigit(string _digit) returns()
  601. func (_Collect *CollectTransactorSession) SetDigit(_digit string) (*types.Transaction, error) {
  602. return _Collect.Contract.SetDigit(&_Collect.TransactOpts, _digit)
  603. }
  604. // SetManager is a paid mutator transaction binding the contract method 0xd0ebdbe7.
  605. //
  606. // Solidity: function setManager(address _manager) returns()
  607. func (_Collect *CollectTransactor) SetManager(opts *bind.TransactOpts, _manager common.Address) (*types.Transaction, error) {
  608. return _Collect.contract.Transact(opts, "setManager", _manager)
  609. }
  610. // SetManager is a paid mutator transaction binding the contract method 0xd0ebdbe7.
  611. //
  612. // Solidity: function setManager(address _manager) returns()
  613. func (_Collect *CollectSession) SetManager(_manager common.Address) (*types.Transaction, error) {
  614. return _Collect.Contract.SetManager(&_Collect.TransactOpts, _manager)
  615. }
  616. // SetManager is a paid mutator transaction binding the contract method 0xd0ebdbe7.
  617. //
  618. // Solidity: function setManager(address _manager) returns()
  619. func (_Collect *CollectTransactorSession) SetManager(_manager common.Address) (*types.Transaction, error) {
  620. return _Collect.Contract.SetManager(&_Collect.TransactOpts, _manager)
  621. }
  622. // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
  623. //
  624. // Solidity: function transferOwnership(address newOwner) returns()
  625. func (_Collect *CollectTransactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
  626. return _Collect.contract.Transact(opts, "transferOwnership", newOwner)
  627. }
  628. // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
  629. //
  630. // Solidity: function transferOwnership(address newOwner) returns()
  631. func (_Collect *CollectSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
  632. return _Collect.Contract.TransferOwnership(&_Collect.TransactOpts, newOwner)
  633. }
  634. // TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
  635. //
  636. // Solidity: function transferOwnership(address newOwner) returns()
  637. func (_Collect *CollectTransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
  638. return _Collect.Contract.TransferOwnership(&_Collect.TransactOpts, newOwner)
  639. }
  640. // Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
  641. //
  642. // Solidity: function withdraw(uint256 amount) returns()
  643. func (_Collect *CollectTransactor) Withdraw(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error) {
  644. return _Collect.contract.Transact(opts, "withdraw", amount)
  645. }
  646. // Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
  647. //
  648. // Solidity: function withdraw(uint256 amount) returns()
  649. func (_Collect *CollectSession) Withdraw(amount *big.Int) (*types.Transaction, error) {
  650. return _Collect.Contract.Withdraw(&_Collect.TransactOpts, amount)
  651. }
  652. // Withdraw is a paid mutator transaction binding the contract method 0x2e1a7d4d.
  653. //
  654. // Solidity: function withdraw(uint256 amount) returns()
  655. func (_Collect *CollectTransactorSession) Withdraw(amount *big.Int) (*types.Transaction, error) {
  656. return _Collect.Contract.Withdraw(&_Collect.TransactOpts, amount)
  657. }
  658. // CollectClaimIterator is returned from FilterClaim and is used to iterate over the raw logs and unpacked data for Claim events raised by the Collect contract.
  659. type CollectClaimIterator struct {
  660. Event *CollectClaim // Event containing the contract specifics and raw log
  661. contract *bind.BoundContract // Generic contract to use for unpacking event data
  662. event string // Event name to use for unpacking event data
  663. logs chan types.Log // Log channel receiving the found contract events
  664. sub ethereum.Subscription // Subscription for errors, completion and termination
  665. done bool // Whether the subscription completed delivering logs
  666. fail error // Occurred error to stop iteration
  667. }
  668. // Next advances the iterator to the subsequent event, returning whether there
  669. // are any more events found. In case of a retrieval or parsing error, false is
  670. // returned and Error() can be queried for the exact failure.
  671. func (it *CollectClaimIterator) Next() bool {
  672. // If the iterator failed, stop iterating
  673. if it.fail != nil {
  674. return false
  675. }
  676. // If the iterator completed, deliver directly whatever's available
  677. if it.done {
  678. select {
  679. case log := <-it.logs:
  680. it.Event = new(CollectClaim)
  681. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  682. it.fail = err
  683. return false
  684. }
  685. it.Event.Raw = log
  686. return true
  687. default:
  688. return false
  689. }
  690. }
  691. // Iterator still in progress, wait for either a data or an error event
  692. select {
  693. case log := <-it.logs:
  694. it.Event = new(CollectClaim)
  695. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  696. it.fail = err
  697. return false
  698. }
  699. it.Event.Raw = log
  700. return true
  701. case err := <-it.sub.Err():
  702. it.done = true
  703. it.fail = err
  704. return it.Next()
  705. }
  706. }
  707. // Error returns any retrieval or parsing error occurred during filtering.
  708. func (it *CollectClaimIterator) Error() error {
  709. return it.fail
  710. }
  711. // Close terminates the iteration process, releasing any pending underlying
  712. // resources.
  713. func (it *CollectClaimIterator) Close() error {
  714. it.sub.Unsubscribe()
  715. return nil
  716. }
  717. // CollectClaim represents a Claim event raised by the Collect contract.
  718. type CollectClaim struct {
  719. User common.Address
  720. Amount *big.Int
  721. Signature [32]byte
  722. Raw types.Log // Blockchain specific contextual infos
  723. }
  724. // FilterClaim is a free log retrieval operation binding the contract event 0x4804104ccbc53649f5b8b29ecf858272a4a6ed6b9949f0d30237c7a147e84671.
  725. //
  726. // Solidity: event Claim(address user, uint256 amount, bytes32 signature)
  727. func (_Collect *CollectFilterer) FilterClaim(opts *bind.FilterOpts) (*CollectClaimIterator, error) {
  728. logs, sub, err := _Collect.contract.FilterLogs(opts, "Claim")
  729. if err != nil {
  730. return nil, err
  731. }
  732. return &CollectClaimIterator{contract: _Collect.contract, event: "Claim", logs: logs, sub: sub}, nil
  733. }
  734. // WatchClaim is a free log subscription operation binding the contract event 0x4804104ccbc53649f5b8b29ecf858272a4a6ed6b9949f0d30237c7a147e84671.
  735. //
  736. // Solidity: event Claim(address user, uint256 amount, bytes32 signature)
  737. func (_Collect *CollectFilterer) WatchClaim(opts *bind.WatchOpts, sink chan<- *CollectClaim) (event.Subscription, error) {
  738. logs, sub, err := _Collect.contract.WatchLogs(opts, "Claim")
  739. if err != nil {
  740. return nil, err
  741. }
  742. return event.NewSubscription(func(quit <-chan struct{}) error {
  743. defer sub.Unsubscribe()
  744. for {
  745. select {
  746. case log := <-logs:
  747. // New log arrived, parse the event and forward to the user
  748. event := new(CollectClaim)
  749. if err := _Collect.contract.UnpackLog(event, "Claim", log); err != nil {
  750. return err
  751. }
  752. event.Raw = log
  753. select {
  754. case sink <- event:
  755. case err := <-sub.Err():
  756. return err
  757. case <-quit:
  758. return nil
  759. }
  760. case err := <-sub.Err():
  761. return err
  762. case <-quit:
  763. return nil
  764. }
  765. }
  766. }), nil
  767. }
  768. // ParseClaim is a log parse operation binding the contract event 0x4804104ccbc53649f5b8b29ecf858272a4a6ed6b9949f0d30237c7a147e84671.
  769. //
  770. // Solidity: event Claim(address user, uint256 amount, bytes32 signature)
  771. func (_Collect *CollectFilterer) ParseClaim(log types.Log) (*CollectClaim, error) {
  772. event := new(CollectClaim)
  773. if err := _Collect.contract.UnpackLog(event, "Claim", log); err != nil {
  774. return nil, err
  775. }
  776. event.Raw = log
  777. return event, nil
  778. }
  779. // CollectOwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Collect contract.
  780. type CollectOwnershipTransferredIterator struct {
  781. Event *CollectOwnershipTransferred // Event containing the contract specifics and raw log
  782. contract *bind.BoundContract // Generic contract to use for unpacking event data
  783. event string // Event name to use for unpacking event data
  784. logs chan types.Log // Log channel receiving the found contract events
  785. sub ethereum.Subscription // Subscription for errors, completion and termination
  786. done bool // Whether the subscription completed delivering logs
  787. fail error // Occurred error to stop iteration
  788. }
  789. // Next advances the iterator to the subsequent event, returning whether there
  790. // are any more events found. In case of a retrieval or parsing error, false is
  791. // returned and Error() can be queried for the exact failure.
  792. func (it *CollectOwnershipTransferredIterator) Next() bool {
  793. // If the iterator failed, stop iterating
  794. if it.fail != nil {
  795. return false
  796. }
  797. // If the iterator completed, deliver directly whatever's available
  798. if it.done {
  799. select {
  800. case log := <-it.logs:
  801. it.Event = new(CollectOwnershipTransferred)
  802. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  803. it.fail = err
  804. return false
  805. }
  806. it.Event.Raw = log
  807. return true
  808. default:
  809. return false
  810. }
  811. }
  812. // Iterator still in progress, wait for either a data or an error event
  813. select {
  814. case log := <-it.logs:
  815. it.Event = new(CollectOwnershipTransferred)
  816. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  817. it.fail = err
  818. return false
  819. }
  820. it.Event.Raw = log
  821. return true
  822. case err := <-it.sub.Err():
  823. it.done = true
  824. it.fail = err
  825. return it.Next()
  826. }
  827. }
  828. // Error returns any retrieval or parsing error occurred during filtering.
  829. func (it *CollectOwnershipTransferredIterator) Error() error {
  830. return it.fail
  831. }
  832. // Close terminates the iteration process, releasing any pending underlying
  833. // resources.
  834. func (it *CollectOwnershipTransferredIterator) Close() error {
  835. it.sub.Unsubscribe()
  836. return nil
  837. }
  838. // CollectOwnershipTransferred represents a OwnershipTransferred event raised by the Collect contract.
  839. type CollectOwnershipTransferred struct {
  840. PreviousOwner common.Address
  841. NewOwner common.Address
  842. Raw types.Log // Blockchain specific contextual infos
  843. }
  844. // FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
  845. //
  846. // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
  847. func (_Collect *CollectFilterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*CollectOwnershipTransferredIterator, error) {
  848. var previousOwnerRule []interface{}
  849. for _, previousOwnerItem := range previousOwner {
  850. previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
  851. }
  852. var newOwnerRule []interface{}
  853. for _, newOwnerItem := range newOwner {
  854. newOwnerRule = append(newOwnerRule, newOwnerItem)
  855. }
  856. logs, sub, err := _Collect.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
  857. if err != nil {
  858. return nil, err
  859. }
  860. return &CollectOwnershipTransferredIterator{contract: _Collect.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil
  861. }
  862. // WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
  863. //
  864. // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
  865. func (_Collect *CollectFilterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *CollectOwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {
  866. var previousOwnerRule []interface{}
  867. for _, previousOwnerItem := range previousOwner {
  868. previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
  869. }
  870. var newOwnerRule []interface{}
  871. for _, newOwnerItem := range newOwner {
  872. newOwnerRule = append(newOwnerRule, newOwnerItem)
  873. }
  874. logs, sub, err := _Collect.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
  875. if err != nil {
  876. return nil, err
  877. }
  878. return event.NewSubscription(func(quit <-chan struct{}) error {
  879. defer sub.Unsubscribe()
  880. for {
  881. select {
  882. case log := <-logs:
  883. // New log arrived, parse the event and forward to the user
  884. event := new(CollectOwnershipTransferred)
  885. if err := _Collect.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
  886. return err
  887. }
  888. event.Raw = log
  889. select {
  890. case sink <- event:
  891. case err := <-sub.Err():
  892. return err
  893. case <-quit:
  894. return nil
  895. }
  896. case err := <-sub.Err():
  897. return err
  898. case <-quit:
  899. return nil
  900. }
  901. }
  902. }), nil
  903. }
  904. // ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
  905. //
  906. // Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
  907. func (_Collect *CollectFilterer) ParseOwnershipTransferred(log types.Log) (*CollectOwnershipTransferred, error) {
  908. event := new(CollectOwnershipTransferred)
  909. if err := _Collect.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
  910. return nil, err
  911. }
  912. event.Raw = log
  913. return event, nil
  914. }
  915. // CollectParticipateIterator is returned from FilterParticipate and is used to iterate over the raw logs and unpacked data for Participate events raised by the Collect contract.
  916. type CollectParticipateIterator struct {
  917. Event *CollectParticipate // Event containing the contract specifics and raw log
  918. contract *bind.BoundContract // Generic contract to use for unpacking event data
  919. event string // Event name to use for unpacking event data
  920. logs chan types.Log // Log channel receiving the found contract events
  921. sub ethereum.Subscription // Subscription for errors, completion and termination
  922. done bool // Whether the subscription completed delivering logs
  923. fail error // Occurred error to stop iteration
  924. }
  925. // Next advances the iterator to the subsequent event, returning whether there
  926. // are any more events found. In case of a retrieval or parsing error, false is
  927. // returned and Error() can be queried for the exact failure.
  928. func (it *CollectParticipateIterator) Next() bool {
  929. // If the iterator failed, stop iterating
  930. if it.fail != nil {
  931. return false
  932. }
  933. // If the iterator completed, deliver directly whatever's available
  934. if it.done {
  935. select {
  936. case log := <-it.logs:
  937. it.Event = new(CollectParticipate)
  938. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  939. it.fail = err
  940. return false
  941. }
  942. it.Event.Raw = log
  943. return true
  944. default:
  945. return false
  946. }
  947. }
  948. // Iterator still in progress, wait for either a data or an error event
  949. select {
  950. case log := <-it.logs:
  951. it.Event = new(CollectParticipate)
  952. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  953. it.fail = err
  954. return false
  955. }
  956. it.Event.Raw = log
  957. return true
  958. case err := <-it.sub.Err():
  959. it.done = true
  960. it.fail = err
  961. return it.Next()
  962. }
  963. }
  964. // Error returns any retrieval or parsing error occurred during filtering.
  965. func (it *CollectParticipateIterator) Error() error {
  966. return it.fail
  967. }
  968. // Close terminates the iteration process, releasing any pending underlying
  969. // resources.
  970. func (it *CollectParticipateIterator) Close() error {
  971. it.sub.Unsubscribe()
  972. return nil
  973. }
  974. // CollectParticipate represents a Participate event raised by the Collect contract.
  975. type CollectParticipate struct {
  976. Participant common.Address
  977. Inviter common.Address
  978. Amount *big.Int
  979. Raw types.Log // Blockchain specific contextual infos
  980. }
  981. // FilterParticipate is a free log retrieval operation binding the contract event 0x8ed860f76da405897619eab937f09dcb4d0d9b56cf68a3d489130a2489cf151f.
  982. //
  983. // Solidity: event Participate(address participant, address inviter, uint256 amount)
  984. func (_Collect *CollectFilterer) FilterParticipate(opts *bind.FilterOpts) (*CollectParticipateIterator, error) {
  985. logs, sub, err := _Collect.contract.FilterLogs(opts, "Participate")
  986. if err != nil {
  987. return nil, err
  988. }
  989. return &CollectParticipateIterator{contract: _Collect.contract, event: "Participate", logs: logs, sub: sub}, nil
  990. }
  991. // WatchParticipate is a free log subscription operation binding the contract event 0x8ed860f76da405897619eab937f09dcb4d0d9b56cf68a3d489130a2489cf151f.
  992. //
  993. // Solidity: event Participate(address participant, address inviter, uint256 amount)
  994. func (_Collect *CollectFilterer) WatchParticipate(opts *bind.WatchOpts, sink chan<- *CollectParticipate) (event.Subscription, error) {
  995. logs, sub, err := _Collect.contract.WatchLogs(opts, "Participate")
  996. if err != nil {
  997. return nil, err
  998. }
  999. return event.NewSubscription(func(quit <-chan struct{}) error {
  1000. defer sub.Unsubscribe()
  1001. for {
  1002. select {
  1003. case log := <-logs:
  1004. // New log arrived, parse the event and forward to the user
  1005. event := new(CollectParticipate)
  1006. if err := _Collect.contract.UnpackLog(event, "Participate", log); err != nil {
  1007. return err
  1008. }
  1009. event.Raw = log
  1010. select {
  1011. case sink <- event:
  1012. case err := <-sub.Err():
  1013. return err
  1014. case <-quit:
  1015. return nil
  1016. }
  1017. case err := <-sub.Err():
  1018. return err
  1019. case <-quit:
  1020. return nil
  1021. }
  1022. }
  1023. }), nil
  1024. }
  1025. // ParseParticipate is a log parse operation binding the contract event 0x8ed860f76da405897619eab937f09dcb4d0d9b56cf68a3d489130a2489cf151f.
  1026. //
  1027. // Solidity: event Participate(address participant, address inviter, uint256 amount)
  1028. func (_Collect *CollectFilterer) ParseParticipate(log types.Log) (*CollectParticipate, error) {
  1029. event := new(CollectParticipate)
  1030. if err := _Collect.contract.UnpackLog(event, "Participate", log); err != nil {
  1031. return nil, err
  1032. }
  1033. event.Raw = log
  1034. return event, nil
  1035. }
  1036. // CollectRemoveManagerIterator is returned from FilterRemoveManager and is used to iterate over the raw logs and unpacked data for RemoveManager events raised by the Collect contract.
  1037. type CollectRemoveManagerIterator struct {
  1038. Event *CollectRemoveManager // Event containing the contract specifics and raw log
  1039. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1040. event string // Event name to use for unpacking event data
  1041. logs chan types.Log // Log channel receiving the found contract events
  1042. sub ethereum.Subscription // Subscription for errors, completion and termination
  1043. done bool // Whether the subscription completed delivering logs
  1044. fail error // Occurred error to stop iteration
  1045. }
  1046. // Next advances the iterator to the subsequent event, returning whether there
  1047. // are any more events found. In case of a retrieval or parsing error, false is
  1048. // returned and Error() can be queried for the exact failure.
  1049. func (it *CollectRemoveManagerIterator) Next() bool {
  1050. // If the iterator failed, stop iterating
  1051. if it.fail != nil {
  1052. return false
  1053. }
  1054. // If the iterator completed, deliver directly whatever's available
  1055. if it.done {
  1056. select {
  1057. case log := <-it.logs:
  1058. it.Event = new(CollectRemoveManager)
  1059. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1060. it.fail = err
  1061. return false
  1062. }
  1063. it.Event.Raw = log
  1064. return true
  1065. default:
  1066. return false
  1067. }
  1068. }
  1069. // Iterator still in progress, wait for either a data or an error event
  1070. select {
  1071. case log := <-it.logs:
  1072. it.Event = new(CollectRemoveManager)
  1073. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1074. it.fail = err
  1075. return false
  1076. }
  1077. it.Event.Raw = log
  1078. return true
  1079. case err := <-it.sub.Err():
  1080. it.done = true
  1081. it.fail = err
  1082. return it.Next()
  1083. }
  1084. }
  1085. // Error returns any retrieval or parsing error occurred during filtering.
  1086. func (it *CollectRemoveManagerIterator) Error() error {
  1087. return it.fail
  1088. }
  1089. // Close terminates the iteration process, releasing any pending underlying
  1090. // resources.
  1091. func (it *CollectRemoveManagerIterator) Close() error {
  1092. it.sub.Unsubscribe()
  1093. return nil
  1094. }
  1095. // CollectRemoveManager represents a RemoveManager event raised by the Collect contract.
  1096. type CollectRemoveManager struct {
  1097. Manager common.Address
  1098. Raw types.Log // Blockchain specific contextual infos
  1099. }
  1100. // FilterRemoveManager is a free log retrieval operation binding the contract event 0x1e25ed4cabec84d314dc176241019653f237da01f2bdd3a10cb0f38b33da6763.
  1101. //
  1102. // Solidity: event RemoveManager(address _manager)
  1103. func (_Collect *CollectFilterer) FilterRemoveManager(opts *bind.FilterOpts) (*CollectRemoveManagerIterator, error) {
  1104. logs, sub, err := _Collect.contract.FilterLogs(opts, "RemoveManager")
  1105. if err != nil {
  1106. return nil, err
  1107. }
  1108. return &CollectRemoveManagerIterator{contract: _Collect.contract, event: "RemoveManager", logs: logs, sub: sub}, nil
  1109. }
  1110. // WatchRemoveManager is a free log subscription operation binding the contract event 0x1e25ed4cabec84d314dc176241019653f237da01f2bdd3a10cb0f38b33da6763.
  1111. //
  1112. // Solidity: event RemoveManager(address _manager)
  1113. func (_Collect *CollectFilterer) WatchRemoveManager(opts *bind.WatchOpts, sink chan<- *CollectRemoveManager) (event.Subscription, error) {
  1114. logs, sub, err := _Collect.contract.WatchLogs(opts, "RemoveManager")
  1115. if err != nil {
  1116. return nil, err
  1117. }
  1118. return event.NewSubscription(func(quit <-chan struct{}) error {
  1119. defer sub.Unsubscribe()
  1120. for {
  1121. select {
  1122. case log := <-logs:
  1123. // New log arrived, parse the event and forward to the user
  1124. event := new(CollectRemoveManager)
  1125. if err := _Collect.contract.UnpackLog(event, "RemoveManager", log); err != nil {
  1126. return err
  1127. }
  1128. event.Raw = log
  1129. select {
  1130. case sink <- event:
  1131. case err := <-sub.Err():
  1132. return err
  1133. case <-quit:
  1134. return nil
  1135. }
  1136. case err := <-sub.Err():
  1137. return err
  1138. case <-quit:
  1139. return nil
  1140. }
  1141. }
  1142. }), nil
  1143. }
  1144. // ParseRemoveManager is a log parse operation binding the contract event 0x1e25ed4cabec84d314dc176241019653f237da01f2bdd3a10cb0f38b33da6763.
  1145. //
  1146. // Solidity: event RemoveManager(address _manager)
  1147. func (_Collect *CollectFilterer) ParseRemoveManager(log types.Log) (*CollectRemoveManager, error) {
  1148. event := new(CollectRemoveManager)
  1149. if err := _Collect.contract.UnpackLog(event, "RemoveManager", log); err != nil {
  1150. return nil, err
  1151. }
  1152. event.Raw = log
  1153. return event, nil
  1154. }
  1155. // CollectSetManagerIterator is returned from FilterSetManager and is used to iterate over the raw logs and unpacked data for SetManager events raised by the Collect contract.
  1156. type CollectSetManagerIterator struct {
  1157. Event *CollectSetManager // Event containing the contract specifics and raw log
  1158. contract *bind.BoundContract // Generic contract to use for unpacking event data
  1159. event string // Event name to use for unpacking event data
  1160. logs chan types.Log // Log channel receiving the found contract events
  1161. sub ethereum.Subscription // Subscription for errors, completion and termination
  1162. done bool // Whether the subscription completed delivering logs
  1163. fail error // Occurred error to stop iteration
  1164. }
  1165. // Next advances the iterator to the subsequent event, returning whether there
  1166. // are any more events found. In case of a retrieval or parsing error, false is
  1167. // returned and Error() can be queried for the exact failure.
  1168. func (it *CollectSetManagerIterator) Next() bool {
  1169. // If the iterator failed, stop iterating
  1170. if it.fail != nil {
  1171. return false
  1172. }
  1173. // If the iterator completed, deliver directly whatever's available
  1174. if it.done {
  1175. select {
  1176. case log := <-it.logs:
  1177. it.Event = new(CollectSetManager)
  1178. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1179. it.fail = err
  1180. return false
  1181. }
  1182. it.Event.Raw = log
  1183. return true
  1184. default:
  1185. return false
  1186. }
  1187. }
  1188. // Iterator still in progress, wait for either a data or an error event
  1189. select {
  1190. case log := <-it.logs:
  1191. it.Event = new(CollectSetManager)
  1192. if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
  1193. it.fail = err
  1194. return false
  1195. }
  1196. it.Event.Raw = log
  1197. return true
  1198. case err := <-it.sub.Err():
  1199. it.done = true
  1200. it.fail = err
  1201. return it.Next()
  1202. }
  1203. }
  1204. // Error returns any retrieval or parsing error occurred during filtering.
  1205. func (it *CollectSetManagerIterator) Error() error {
  1206. return it.fail
  1207. }
  1208. // Close terminates the iteration process, releasing any pending underlying
  1209. // resources.
  1210. func (it *CollectSetManagerIterator) Close() error {
  1211. it.sub.Unsubscribe()
  1212. return nil
  1213. }
  1214. // CollectSetManager represents a SetManager event raised by the Collect contract.
  1215. type CollectSetManager struct {
  1216. Manager common.Address
  1217. Raw types.Log // Blockchain specific contextual infos
  1218. }
  1219. // FilterSetManager is a free log retrieval operation binding the contract event 0x54a6385aa0292b04e1ef8513253c17d1863f7cdfc87029d77fd55cc4c2e717e2.
  1220. //
  1221. // Solidity: event SetManager(address _manager)
  1222. func (_Collect *CollectFilterer) FilterSetManager(opts *bind.FilterOpts) (*CollectSetManagerIterator, error) {
  1223. logs, sub, err := _Collect.contract.FilterLogs(opts, "SetManager")
  1224. if err != nil {
  1225. return nil, err
  1226. }
  1227. return &CollectSetManagerIterator{contract: _Collect.contract, event: "SetManager", logs: logs, sub: sub}, nil
  1228. }
  1229. // WatchSetManager is a free log subscription operation binding the contract event 0x54a6385aa0292b04e1ef8513253c17d1863f7cdfc87029d77fd55cc4c2e717e2.
  1230. //
  1231. // Solidity: event SetManager(address _manager)
  1232. func (_Collect *CollectFilterer) WatchSetManager(opts *bind.WatchOpts, sink chan<- *CollectSetManager) (event.Subscription, error) {
  1233. logs, sub, err := _Collect.contract.WatchLogs(opts, "SetManager")
  1234. if err != nil {
  1235. return nil, err
  1236. }
  1237. return event.NewSubscription(func(quit <-chan struct{}) error {
  1238. defer sub.Unsubscribe()
  1239. for {
  1240. select {
  1241. case log := <-logs:
  1242. // New log arrived, parse the event and forward to the user
  1243. event := new(CollectSetManager)
  1244. if err := _Collect.contract.UnpackLog(event, "SetManager", log); err != nil {
  1245. return err
  1246. }
  1247. event.Raw = log
  1248. select {
  1249. case sink <- event:
  1250. case err := <-sub.Err():
  1251. return err
  1252. case <-quit:
  1253. return nil
  1254. }
  1255. case err := <-sub.Err():
  1256. return err
  1257. case <-quit:
  1258. return nil
  1259. }
  1260. }
  1261. }), nil
  1262. }
  1263. // ParseSetManager is a log parse operation binding the contract event 0x54a6385aa0292b04e1ef8513253c17d1863f7cdfc87029d77fd55cc4c2e717e2.
  1264. //
  1265. // Solidity: event SetManager(address _manager)
  1266. func (_Collect *CollectFilterer) ParseSetManager(log types.Log) (*CollectSetManager, error) {
  1267. event := new(CollectSetManager)
  1268. if err := _Collect.contract.UnpackLog(event, "SetManager", log); err != nil {
  1269. return nil, err
  1270. }
  1271. event.Raw = log
  1272. return event, nil
  1273. }