fifsregistrar.go 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196
  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. "strings"
  6. "github.com/ethereum/go-ethereum/accounts/abi"
  7. "github.com/ethereum/go-ethereum/accounts/abi/bind"
  8. "github.com/ethereum/go-ethereum/common"
  9. "github.com/ethereum/go-ethereum/core/types"
  10. )
  11. // FIFSRegistrarABI is the input ABI used to generate the binding from.
  12. const FIFSRegistrarABI = "[{\"constant\":false,\"inputs\":[{\"name\":\"subnode\",\"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\"}]"
  13. // FIFSRegistrarBin is the compiled bytecode used for deploying new contracts.
  14. const FIFSRegistrarBin = `0x6060604052341561000f57600080fd5b604051604080610224833981016040528080519190602001805160008054600160a060020a03909516600160a060020a03199095169490941790935550506001556101c58061005f6000396000f3006060604052600436106100275763ffffffff60e060020a600035041663d22057a9811461002c575b600080fd5b341561003757600080fd5b61004e600435600160a060020a0360243516610050565b005b816000806001548360405191825260208201526040908101905190819003902060008054919350600160a060020a03909116906302571be39084906040516020015260405160e060020a63ffffffff84160281526004810191909152602401602060405180830381600087803b15156100c857600080fd5b6102c65a03f115156100d957600080fd5b5050506040518051915050600160a060020a0381161580159061010e575033600160a060020a031681600160a060020a031614155b1561011857600080fd5b600054600154600160a060020a03909116906306ab592390878760405160e060020a63ffffffff861602815260048101939093526024830191909152600160a060020a03166044820152606401600060405180830381600087803b151561017e57600080fd5b6102c65a03f1151561018f57600080fd5b50505050505050505600a165627a7a723058206fb963cb168d5e3a51af12cd6bb23e324dbd32dd4954f43653ba27e66b68ea650029`
  15. // DeployFIFSRegistrar deploys a new Ethereum contract, binding an instance of FIFSRegistrar to it.
  16. func DeployFIFSRegistrar(auth *bind.TransactOpts, backend bind.ContractBackend, ensAddr common.Address, node [32]byte) (common.Address, *types.Transaction, *FIFSRegistrar, error) {
  17. parsed, err := abi.JSON(strings.NewReader(FIFSRegistrarABI))
  18. if err != nil {
  19. return common.Address{}, nil, nil, err
  20. }
  21. address, tx, contract, err := bind.DeployContract(auth, parsed, common.FromHex(FIFSRegistrarBin), backend, ensAddr, node)
  22. if err != nil {
  23. return common.Address{}, nil, nil, err
  24. }
  25. return address, tx, &FIFSRegistrar{FIFSRegistrarCaller: FIFSRegistrarCaller{contract: contract}, FIFSRegistrarTransactor: FIFSRegistrarTransactor{contract: contract}, FIFSRegistrarFilterer: FIFSRegistrarFilterer{contract: contract}}, nil
  26. }
  27. // FIFSRegistrar is an auto generated Go binding around an Ethereum contract.
  28. type FIFSRegistrar struct {
  29. FIFSRegistrarCaller // Read-only binding to the contract
  30. FIFSRegistrarTransactor // Write-only binding to the contract
  31. FIFSRegistrarFilterer // Log filterer for contract events
  32. }
  33. // FIFSRegistrarCaller is an auto generated read-only Go binding around an Ethereum contract.
  34. type FIFSRegistrarCaller struct {
  35. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  36. }
  37. // FIFSRegistrarTransactor is an auto generated write-only Go binding around an Ethereum contract.
  38. type FIFSRegistrarTransactor struct {
  39. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  40. }
  41. // FIFSRegistrarFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
  42. type FIFSRegistrarFilterer struct {
  43. contract *bind.BoundContract // Generic contract wrapper for the low level calls
  44. }
  45. // FIFSRegistrarSession is an auto generated Go binding around an Ethereum contract,
  46. // with pre-set call and transact options.
  47. type FIFSRegistrarSession struct {
  48. Contract *FIFSRegistrar // 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. // FIFSRegistrarCallerSession is an auto generated read-only Go binding around an Ethereum contract,
  53. // with pre-set call options.
  54. type FIFSRegistrarCallerSession struct {
  55. Contract *FIFSRegistrarCaller // Generic contract caller binding to set the session for
  56. CallOpts bind.CallOpts // Call options to use throughout this session
  57. }
  58. // FIFSRegistrarTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
  59. // with pre-set transact options.
  60. type FIFSRegistrarTransactorSession struct {
  61. Contract *FIFSRegistrarTransactor // Generic contract transactor binding to set the session for
  62. TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
  63. }
  64. // FIFSRegistrarRaw is an auto generated low-level Go binding around an Ethereum contract.
  65. type FIFSRegistrarRaw struct {
  66. Contract *FIFSRegistrar // Generic contract binding to access the raw methods on
  67. }
  68. // FIFSRegistrarCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
  69. type FIFSRegistrarCallerRaw struct {
  70. Contract *FIFSRegistrarCaller // Generic read-only contract binding to access the raw methods on
  71. }
  72. // FIFSRegistrarTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
  73. type FIFSRegistrarTransactorRaw struct {
  74. Contract *FIFSRegistrarTransactor // Generic write-only contract binding to access the raw methods on
  75. }
  76. // NewFIFSRegistrar creates a new instance of FIFSRegistrar, bound to a specific deployed contract.
  77. func NewFIFSRegistrar(address common.Address, backend bind.ContractBackend) (*FIFSRegistrar, error) {
  78. contract, err := bindFIFSRegistrar(address, backend, backend, backend)
  79. if err != nil {
  80. return nil, err
  81. }
  82. return &FIFSRegistrar{FIFSRegistrarCaller: FIFSRegistrarCaller{contract: contract}, FIFSRegistrarTransactor: FIFSRegistrarTransactor{contract: contract}, FIFSRegistrarFilterer: FIFSRegistrarFilterer{contract: contract}}, nil
  83. }
  84. // NewFIFSRegistrarCaller creates a new read-only instance of FIFSRegistrar, bound to a specific deployed contract.
  85. func NewFIFSRegistrarCaller(address common.Address, caller bind.ContractCaller) (*FIFSRegistrarCaller, error) {
  86. contract, err := bindFIFSRegistrar(address, caller, nil, nil)
  87. if err != nil {
  88. return nil, err
  89. }
  90. return &FIFSRegistrarCaller{contract: contract}, nil
  91. }
  92. // NewFIFSRegistrarTransactor creates a new write-only instance of FIFSRegistrar, bound to a specific deployed contract.
  93. func NewFIFSRegistrarTransactor(address common.Address, transactor bind.ContractTransactor) (*FIFSRegistrarTransactor, error) {
  94. contract, err := bindFIFSRegistrar(address, nil, transactor, nil)
  95. if err != nil {
  96. return nil, err
  97. }
  98. return &FIFSRegistrarTransactor{contract: contract}, nil
  99. }
  100. // NewFIFSRegistrarFilterer creates a new log filterer instance of FIFSRegistrar, bound to a specific deployed contract.
  101. func NewFIFSRegistrarFilterer(address common.Address, filterer bind.ContractFilterer) (*FIFSRegistrarFilterer, error) {
  102. contract, err := bindFIFSRegistrar(address, nil, nil, filterer)
  103. if err != nil {
  104. return nil, err
  105. }
  106. return &FIFSRegistrarFilterer{contract: contract}, nil
  107. }
  108. // bindFIFSRegistrar binds a generic wrapper to an already deployed contract.
  109. func bindFIFSRegistrar(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
  110. parsed, err := abi.JSON(strings.NewReader(FIFSRegistrarABI))
  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 (_FIFSRegistrar *FIFSRegistrarRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
  121. return _FIFSRegistrar.Contract.FIFSRegistrarCaller.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 (_FIFSRegistrar *FIFSRegistrarRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  126. return _FIFSRegistrar.Contract.FIFSRegistrarTransactor.contract.Transfer(opts)
  127. }
  128. // Transact invokes the (paid) contract method with params as input values.
  129. func (_FIFSRegistrar *FIFSRegistrarRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  130. return _FIFSRegistrar.Contract.FIFSRegistrarTransactor.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 (_FIFSRegistrar *FIFSRegistrarCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
  137. return _FIFSRegistrar.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 (_FIFSRegistrar *FIFSRegistrarTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
  142. return _FIFSRegistrar.Contract.contract.Transfer(opts)
  143. }
  144. // Transact invokes the (paid) contract method with params as input values.
  145. func (_FIFSRegistrar *FIFSRegistrarTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
  146. return _FIFSRegistrar.Contract.contract.Transact(opts, method, params...)
  147. }
  148. // Register is a paid mutator transaction binding the contract method 0xd22057a9.
  149. //
  150. // Solidity: function register(subnode bytes32, owner address) returns()
  151. func (_FIFSRegistrar *FIFSRegistrarTransactor) Register(opts *bind.TransactOpts, subnode [32]byte, owner common.Address) (*types.Transaction, error) {
  152. return _FIFSRegistrar.contract.Transact(opts, "register", subnode, owner)
  153. }
  154. // Register is a paid mutator transaction binding the contract method 0xd22057a9.
  155. //
  156. // Solidity: function register(subnode bytes32, owner address) returns()
  157. func (_FIFSRegistrar *FIFSRegistrarSession) Register(subnode [32]byte, owner common.Address) (*types.Transaction, error) {
  158. return _FIFSRegistrar.Contract.Register(&_FIFSRegistrar.TransactOpts, subnode, owner)
  159. }
  160. // Register is a paid mutator transaction binding the contract method 0xd22057a9.
  161. //
  162. // Solidity: function register(subnode bytes32, owner address) returns()
  163. func (_FIFSRegistrar *FIFSRegistrarTransactorSession) Register(subnode [32]byte, owner common.Address) (*types.Transaction, error) {
  164. return _FIFSRegistrar.Contract.Register(&_FIFSRegistrar.TransactOpts, subnode, owner)
  165. }