validator_contract_interface.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. // Code generated - DO NOT EDIT.
  2. // This file is a generated binding and any manual changes will be lost.
  3. package contract
  4. import (
  5. "math/big"
  6. "strings"
  7. ethereum "github.com/ethereum/go-ethereum"
  8. "github.com/ethereum/go-ethereum/accounts/abi"
  9. "github.com/ethereum/go-ethereum/accounts/abi/bind"
  10. "github.com/ethereum/go-ethereum/common"
  11. "github.com/ethereum/go-ethereum/core/types"
  12. "github.com/ethereum/go-ethereum/event"
  13. )
  14. // Reference imports to suppress errors if they are not otherwise used.
  15. var (
  16. _ = big.NewInt
  17. _ = strings.NewReader
  18. _ = ethereum.NotFound
  19. _ = bind.Bind
  20. _ = common.Big1
  21. _ = types.BloomLookup
  22. _ = event.NewSubscription
  23. )
  24. // ValidatorContractInterfaceABI is the input ABI used to generate the binding from.
  25. const ValidatorContractInterfaceABI = "[{\"constant\":true,\"inputs\":[],\"name\":\"getValidators\",\"outputs\":[{\"internalType\":\"address[]\",\"name\":\"\",\"type\":\"address[]\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]"
  26. var ValidatorContractInterfaceParsedABI, _ = abi.JSON(strings.NewReader(ValidatorContractInterfaceABI))
  27. // ValidatorContractInterface is an auto generated Go binding around an Ethereum contract.
  28. type ValidatorContractInterface struct {
  29. ValidatorContractInterfaceCaller // Read-only binding to the contract
  30. ValidatorContractInterfaceTransactor // Write-only binding to the contract
  31. ValidatorContractInterfaceFilterer // Log filterer for contract events
  32. }
  33. // ValidatorContractInterfaceCaller is an auto generated read-only Go binding around an Ethereum contract.
  34. type ValidatorContractInterfaceCaller struct {
  35. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  36. }
  37. // ValidatorContractInterfaceTransactor is an auto generated write-only Go binding around an Ethereum contract.
  38. type ValidatorContractInterfaceTransactor struct {
  39. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  40. }
  41. // ValidatorContractInterfaceFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
  42. type ValidatorContractInterfaceFilterer struct {
  43. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  44. }
  45. // ValidatorContractInterfaceSession is an auto generated Go binding around an Ethereum contract,
  46. // with pre-set call and transact options.
  47. type ValidatorContractInterfaceSession struct {
  48. Contract *ValidatorContractInterface // Generic contract binding to set the session for
  49. CallOpts bind.CallOpts // Call options to use throughout this session
  50. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  51. }
  52. // ValidatorContractInterfaceCallerSession is an auto generated read-only Go binding around an Ethereum contract,
  53. // with pre-set call options.
  54. type ValidatorContractInterfaceCallerSession struct {
  55. Contract *ValidatorContractInterfaceCaller // Generic contract caller binding to set the session for
  56. CallOpts bind.CallOpts // Call options to use throughout this session
  57. }
  58. // ValidatorContractInterfaceTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
  59. // with pre-set transact options.
  60. type ValidatorContractInterfaceTransactorSession struct {
  61. Contract *ValidatorContractInterfaceTransactor // Generic contract transactor binding to set the session for
  62. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  63. }
  64. // ValidatorContractInterfaceRaw is an auto generated low-level Go binding around an Ethereum contract.
  65. type ValidatorContractInterfaceRaw struct {
  66. Contract *ValidatorContractInterface // Generic contract binding to access the raw methods on
  67. }
  68. // ValidatorContractInterfaceCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
  69. type ValidatorContractInterfaceCallerRaw struct {
  70. Contract *ValidatorContractInterfaceCaller // Generic read-only contract binding to access the raw methods on
  71. }
  72. // ValidatorContractInterfaceTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
  73. type ValidatorContractInterfaceTransactorRaw struct {
  74. Contract *ValidatorContractInterfaceTransactor // Generic write-only contract binding to access the raw methods on
  75. }
  76. // NewValidatorContractInterface creates a new instance of ValidatorContractInterface, bound to a specific deployed contract.
  77. func NewValidatorContractInterface(address common.Address, backend bind.ContractBackend) (*ValidatorContractInterface, error) {
  78. contract, err := bindValidatorContractInterface(address, backend, backend, backend)
  79. if err != nil {
  80. return nil, err
  81. }
  82. return &ValidatorContractInterface{ValidatorContractInterfaceCaller: ValidatorContractInterfaceCaller{contract: contract}, ValidatorContractInterfaceTransactor: ValidatorContractInterfaceTransactor{contract: contract}, ValidatorContractInterfaceFilterer: ValidatorContractInterfaceFilterer{contract: contract}}, nil
  83. }
  84. // NewValidatorContractInterfaceCaller creates a new read-only instance of ValidatorContractInterface, bound to a specific deployed contract.
  85. func NewValidatorContractInterfaceCaller(address common.Address, caller bind.ContractCaller) (*ValidatorContractInterfaceCaller, error) {
  86. contract, err := bindValidatorContractInterface(address, caller, nil, nil)
  87. if err != nil {
  88. return nil, err
  89. }
  90. return &ValidatorContractInterfaceCaller{contract: contract}, nil
  91. }
  92. // NewValidatorContractInterfaceTransactor creates a new write-only instance of ValidatorContractInterface, bound to a specific deployed contract.
  93. func NewValidatorContractInterfaceTransactor(address common.Address, transactor bind.ContractTransactor) (*ValidatorContractInterfaceTransactor, error) {
  94. contract, err := bindValidatorContractInterface(address, nil, transactor, nil)
  95. if err != nil {
  96. return nil, err
  97. }
  98. return &ValidatorContractInterfaceTransactor{contract: contract}, nil
  99. }
  100. // NewValidatorContractInterfaceFilterer creates a new log filterer instance of ValidatorContractInterface, bound to a specific deployed contract.
  101. func NewValidatorContractInterfaceFilterer(address common.Address, filterer bind.ContractFilterer) (*ValidatorContractInterfaceFilterer, error) {
  102. contract, err := bindValidatorContractInterface(address, nil, nil, filterer)
  103. if err != nil {
  104. return nil, err
  105. }
  106. return &ValidatorContractInterfaceFilterer{contract: contract}, nil
  107. }
  108. // bindValidatorContractInterface binds a generic wrapper to an already deployed contract.
  109. func bindValidatorContractInterface(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
  110. parsed, err := abi.JSON(strings.NewReader(ValidatorContractInterfaceABI))
  111. if err != nil {
  112. return nil, err
  113. }
  114. return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
  115. }
  116. // Call invokes the (constant) contract method with params as input values and
  117. // sets the output to result. The result type might be a single field for simple
  118. // returns, a slice of interfaces for anonymous returns and a struct for named
  119. // returns.
  120. func (_ValidatorContractInterface *ValidatorContractInterfaceRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
  121. return _ValidatorContractInterface.Contract.ValidatorContractInterfaceCaller.contract.Call(opts, result, method, params...)
  122. }
  123. // Transfer initiates a plain transaction to move funds to the contract, calling
  124. // its default method if one is available.
  125. func (_ValidatorContractInterface *ValidatorContractInterfaceRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  126. return _ValidatorContractInterface.Contract.ValidatorContractInterfaceTransactor.contract.Transfer(opts)
  127. }
  128. // Transact invokes the (paid) contract method with params as input values.
  129. func (_ValidatorContractInterface *ValidatorContractInterfaceRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  130. return _ValidatorContractInterface.Contract.ValidatorContractInterfaceTransactor.contract.Transact(opts, method, params...)
  131. }
  132. // Call invokes the (constant) contract method with params as input values and
  133. // sets the output to result. The result type might be a single field for simple
  134. // returns, a slice of interfaces for anonymous returns and a struct for named
  135. // returns.
  136. func (_ValidatorContractInterface *ValidatorContractInterfaceCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
  137. return _ValidatorContractInterface.Contract.contract.Call(opts, result, method, params...)
  138. }
  139. // Transfer initiates a plain transaction to move funds to the contract, calling
  140. // its default method if one is available.
  141. func (_ValidatorContractInterface *ValidatorContractInterfaceTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  142. return _ValidatorContractInterface.Contract.contract.Transfer(opts)
  143. }
  144. // Transact invokes the (paid) contract method with params as input values.
  145. func (_ValidatorContractInterface *ValidatorContractInterfaceTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  146. return _ValidatorContractInterface.Contract.contract.Transact(opts, method, params...)
  147. }
  148. // GetValidators is a free data retrieval call binding the contract method 0xb7ab4db5.
  149. //
  150. // Solidity: function getValidators() view returns(address[])
  151. func (_ValidatorContractInterface *ValidatorContractInterfaceCaller) GetValidators(opts *bind.CallOpts) ([]common.Address, error) {
  152. var out []interface{}
  153. err := _ValidatorContractInterface.contract.Call(opts, &out, "getValidators")
  154. if err != nil {
  155. return *new([]common.Address), err
  156. }
  157. out0 := *abi.ConvertType(out[0], new([]common.Address)).(*[]common.Address)
  158. return out0, err
  159. }
  160. // GetValidators is a free data retrieval call binding the contract method 0xb7ab4db5.
  161. //
  162. // Solidity: function getValidators() view returns(address[])
  163. func (_ValidatorContractInterface *ValidatorContractInterfaceSession) GetValidators() ([]common.Address, error) {
  164. return _ValidatorContractInterface.Contract.GetValidators(&_ValidatorContractInterface.CallOpts)
  165. }
  166. // GetValidators is a free data retrieval call binding the contract method 0xb7ab4db5.
  167. //
  168. // Solidity: function getValidators() view returns(address[])
  169. func (_ValidatorContractInterface *ValidatorContractInterfaceCallerSession) GetValidators() ([]common.Address, error) {
  170. return _ValidatorContractInterface.Contract.GetValidators(&_ValidatorContractInterface.CallOpts)
  171. }