github.com/needkane/go-ethereum@v1.7.4-0.20180131070256-c212876ea2b7/contracts/ens/contract/fifsregistrar.go (about)

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