fifsregistrar.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210
  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. _ = abi.U256
  20. _ = bind.Bind
  21. _ = common.Big1
  22. _ = types.BloomLookup
  23. _ = event.NewSubscription
  24. )
  25. // FIFSRegistrarABI is the input ABI used to generate the binding from.
  26. const FIFSRegistrarABI = "[{\"constant\":false,\"inputs\":[{\"name\":\"label\",\"type\":\"bytes32\"},{\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"register\",\"outputs\":[],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"name\":\"ensAddr\",\"type\":\"address\"},{\"name\":\"node\",\"type\":\"bytes32\"}],\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"}]"
  27. // FIFSRegistrarBin is the compiled bytecode used for deploying new contracts.
  28. const FIFSRegistrarBin = `0x608060405234801561001057600080fd5b506040516040806102cc8339810180604052604081101561003057600080fd5b50805160209091015160008054600160a060020a031916600160a060020a0390931692909217825560015561026190819061006b90396000f3fe6080604052600436106100405763ffffffff7c0100000000000000000000000000000000000000000000000000000000600035041663d22057a98114610045575b600080fd5b34801561005157600080fd5b5061008b6004803603604081101561006857600080fd5b508035906020013573ffffffffffffffffffffffffffffffffffffffff1661008d565b005b6000805460015460408051602080820193909352808201879052815180820383018152606082018084528151918501919091207f02571be3000000000000000000000000000000000000000000000000000000009091526064820152905186949373ffffffffffffffffffffffffffffffffffffffff16926302571be39260848082019391829003018186803b15801561012657600080fd5b505afa15801561013a573d6000803e3d6000fd5b505050506040513d602081101561015057600080fd5b5051905073ffffffffffffffffffffffffffffffffffffffff8116158061018c575073ffffffffffffffffffffffffffffffffffffffff811633145b151561019757600080fd5b60008054600154604080517f06ab592300000000000000000000000000000000000000000000000000000000815260048101929092526024820188905273ffffffffffffffffffffffffffffffffffffffff878116604484015290519216926306ab59239260648084019382900301818387803b15801561021757600080fd5b505af115801561022b573d6000803e3d6000fd5b505050505050505056fea165627a7a723058200f21424d48c6fc6f2bc79f5b36b3a0e3067a97d4ce084ab0e0f9106303a3ee520029`
  29. // DeployFIFSRegistrar deploys a new Ethereum contract, binding an instance of FIFSRegistrar to it.
  30. func DeployFIFSRegistrar(auth *bind.TransactOpts, backend bind.ContractBackend, ensAddr common.Address, node [32]byte) (common.Address, *types.Transaction, *FIFSRegistrar, error) {
  31. parsed, err := abi.JSON(strings.NewReader(FIFSRegistrarABI))
  32. if err != nil {
  33. return common.Address{}, nil, nil, err
  34. }
  35. address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(FIFSRegistrarBin), backend, ensAddr, node)
  36. if err != nil {
  37. return common.Address{}, nil, nil, err
  38. }
  39. return address, tx, &FIFSRegistrar{FIFSRegistrarCaller: FIFSRegistrarCaller{contract: contract}, FIFSRegistrarTransactor: FIFSRegistrarTransactor{contract: contract}, FIFSRegistrarFilterer: FIFSRegistrarFilterer{contract: contract}}, nil
  40. }
  41. // FIFSRegistrar is an auto generated Go binding around an Ethereum contract.
  42. type FIFSRegistrar struct {
  43. FIFSRegistrarCaller // Read-only binding to the contract
  44. FIFSRegistrarTransactor // Write-only binding to the contract
  45. FIFSRegistrarFilterer // Log filterer for contract events
  46. }
  47. // FIFSRegistrarCaller is an auto generated read-only Go binding around an Ethereum contract.
  48. type FIFSRegistrarCaller struct {
  49. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  50. }
  51. // FIFSRegistrarTransactor is an auto generated write-only Go binding around an Ethereum contract.
  52. type FIFSRegistrarTransactor struct {
  53. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  54. }
  55. // FIFSRegistrarFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
  56. type FIFSRegistrarFilterer struct {
  57. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  58. }
  59. // FIFSRegistrarSession is an auto generated Go binding around an Ethereum contract,
  60. // with pre-set call and transact options.
  61. type FIFSRegistrarSession struct {
  62. Contract *FIFSRegistrar // Generic contract binding to set the session for
  63. CallOpts bind.CallOpts // Call options to use throughout this session
  64. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  65. }
  66. // FIFSRegistrarCallerSession is an auto generated read-only Go binding around an Ethereum contract,
  67. // with pre-set call options.
  68. type FIFSRegistrarCallerSession struct {
  69. Contract *FIFSRegistrarCaller // Generic contract caller binding to set the session for
  70. CallOpts bind.CallOpts // Call options to use throughout this session
  71. }
  72. // FIFSRegistrarTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
  73. // with pre-set transact options.
  74. type FIFSRegistrarTransactorSession struct {
  75. Contract *FIFSRegistrarTransactor // Generic contract transactor binding to set the session for
  76. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  77. }
  78. // FIFSRegistrarRaw is an auto generated low-level Go binding around an Ethereum contract.
  79. type FIFSRegistrarRaw struct {
  80. Contract *FIFSRegistrar // Generic contract binding to access the raw methods on
  81. }
  82. // FIFSRegistrarCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
  83. type FIFSRegistrarCallerRaw struct {
  84. Contract *FIFSRegistrarCaller // Generic read-only contract binding to access the raw methods on
  85. }
  86. // FIFSRegistrarTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
  87. type FIFSRegistrarTransactorRaw struct {
  88. Contract *FIFSRegistrarTransactor // Generic write-only contract binding to access the raw methods on
  89. }
  90. // NewFIFSRegistrar creates a new instance of FIFSRegistrar, bound to a specific deployed contract.
  91. func NewFIFSRegistrar(address common.Address, backend bind.ContractBackend) (*FIFSRegistrar, error) {
  92. contract, err := bindFIFSRegistrar(address, backend, backend, backend)
  93. if err != nil {
  94. return nil, err
  95. }
  96. return &FIFSRegistrar{FIFSRegistrarCaller: FIFSRegistrarCaller{contract: contract}, FIFSRegistrarTransactor: FIFSRegistrarTransactor{contract: contract}, FIFSRegistrarFilterer: FIFSRegistrarFilterer{contract: contract}}, nil
  97. }
  98. // NewFIFSRegistrarCaller creates a new read-only instance of FIFSRegistrar, bound to a specific deployed contract.
  99. func NewFIFSRegistrarCaller(address common.Address, caller bind.ContractCaller) (*FIFSRegistrarCaller, error) {
  100. contract, err := bindFIFSRegistrar(address, caller, nil, nil)
  101. if err != nil {
  102. return nil, err
  103. }
  104. return &FIFSRegistrarCaller{contract: contract}, nil
  105. }
  106. // NewFIFSRegistrarTransactor creates a new write-only instance of FIFSRegistrar, bound to a specific deployed contract.
  107. func NewFIFSRegistrarTransactor(address common.Address, transactor bind.ContractTransactor) (*FIFSRegistrarTransactor, error) {
  108. contract, err := bindFIFSRegistrar(address, nil, transactor, nil)
  109. if err != nil {
  110. return nil, err
  111. }
  112. return &FIFSRegistrarTransactor{contract: contract}, nil
  113. }
  114. // NewFIFSRegistrarFilterer creates a new log filterer instance of FIFSRegistrar, bound to a specific deployed contract.
  115. func NewFIFSRegistrarFilterer(address common.Address, filterer bind.ContractFilterer) (*FIFSRegistrarFilterer, error) {
  116. contract, err := bindFIFSRegistrar(address, nil, nil, filterer)
  117. if err != nil {
  118. return nil, err
  119. }
  120. return &FIFSRegistrarFilterer{contract: contract}, nil
  121. }
  122. // bindFIFSRegistrar binds a generic wrapper to an already deployed contract.
  123. func bindFIFSRegistrar(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
  124. parsed, err := abi.JSON(strings.NewReader(FIFSRegistrarABI))
  125. if err != nil {
  126. return nil, err
  127. }
  128. return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
  129. }
  130. // Call invokes the (constant) contract method with params as input values and
  131. // sets the output to result. The result type might be a single field for simple
  132. // returns, a slice of interfaces for anonymous returns and a struct for named
  133. // returns.
  134. func (_FIFSRegistrar *FIFSRegistrarRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
  135. return _FIFSRegistrar.Contract.FIFSRegistrarCaller.contract.Call(opts, result, method, params...)
  136. }
  137. // Transfer initiates a plain transaction to move funds to the contract, calling
  138. // its default method if one is available.
  139. func (_FIFSRegistrar *FIFSRegistrarRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  140. return _FIFSRegistrar.Contract.FIFSRegistrarTransactor.contract.Transfer(opts)
  141. }
  142. // Transact invokes the (paid) contract method with params as input values.
  143. func (_FIFSRegistrar *FIFSRegistrarRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  144. return _FIFSRegistrar.Contract.FIFSRegistrarTransactor.contract.Transact(opts, method, params...)
  145. }
  146. // Call invokes the (constant) contract method with params as input values and
  147. // sets the output to result. The result type might be a single field for simple
  148. // returns, a slice of interfaces for anonymous returns and a struct for named
  149. // returns.
  150. func (_FIFSRegistrar *FIFSRegistrarCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
  151. return _FIFSRegistrar.Contract.contract.Call(opts, result, method, params...)
  152. }
  153. // Transfer initiates a plain transaction to move funds to the contract, calling
  154. // its default method if one is available.
  155. func (_FIFSRegistrar *FIFSRegistrarTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  156. return _FIFSRegistrar.Contract.contract.Transfer(opts)
  157. }
  158. // Transact invokes the (paid) contract method with params as input values.
  159. func (_FIFSRegistrar *FIFSRegistrarTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  160. return _FIFSRegistrar.Contract.contract.Transact(opts, method, params...)
  161. }
  162. // Register is a paid mutator transaction binding the contract method 0xd22057a9.
  163. //
  164. // Solidity: function register(bytes32 label, address owner) returns()
  165. func (_FIFSRegistrar *FIFSRegistrarTransactor) Register(opts *bind.TransactOpts, label [32]byte, owner common.Address) (*types.Transaction, error) {
  166. return _FIFSRegistrar.contract.Transact(opts, "register", label, owner)
  167. }
  168. // Register is a paid mutator transaction binding the contract method 0xd22057a9.
  169. //
  170. // Solidity: function register(bytes32 label, address owner) returns()
  171. func (_FIFSRegistrar *FIFSRegistrarSession) Register(label [32]byte, owner common.Address) (*types.Transaction, error) {
  172. return _FIFSRegistrar.Contract.Register(&_FIFSRegistrar.TransactOpts, label, owner)
  173. }
  174. // Register is a paid mutator transaction binding the contract method 0xd22057a9.
  175. //
  176. // Solidity: function register(bytes32 label, address owner) returns()
  177. func (_FIFSRegistrar *FIFSRegistrarTransactorSession) Register(label [32]byte, owner common.Address) (*types.Transaction, error) {
  178. return _FIFSRegistrar.Contract.Register(&_FIFSRegistrar.TransactOpts, label, owner)
  179. }