github.com/codingfuture/orig-energi3@v0.8.4/energi/abi/IDelegatedPoS.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 abi
     5  
     6  import (
     7  	"math/big"
     8  	"strings"
     9  
    10  	ethereum "github.com/ethereum/go-ethereum"
    11  	"github.com/ethereum/go-ethereum/accounts/abi"
    12  	"github.com/ethereum/go-ethereum/accounts/abi/bind"
    13  	"github.com/ethereum/go-ethereum/common"
    14  	"github.com/ethereum/go-ethereum/core/types"
    15  	"github.com/ethereum/go-ethereum/event"
    16  )
    17  
    18  // Reference imports to suppress errors if they are not otherwise used.
    19  var (
    20  	_ = big.NewInt
    21  	_ = strings.NewReader
    22  	_ = ethereum.NotFound
    23  	_ = abi.U256
    24  	_ = bind.Bind
    25  	_ = common.Big1
    26  	_ = types.BloomLookup
    27  	_ = event.NewSubscription
    28  )
    29  
    30  // IDelegatedPoSABI is the input ABI used to generate the binding from.
    31  const IDelegatedPoSABI = "[{\"constant\":true,\"inputs\":[],\"name\":\"signerAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]"
    32  
    33  // IDelegatedPoS is an auto generated Go binding around an Ethereum contract.
    34  type IDelegatedPoS struct {
    35  	IDelegatedPoSCaller     // Read-only binding to the contract
    36  	IDelegatedPoSTransactor // Write-only binding to the contract
    37  	IDelegatedPoSFilterer   // Log filterer for contract events
    38  }
    39  
    40  // IDelegatedPoSCaller is an auto generated read-only Go binding around an Ethereum contract.
    41  type IDelegatedPoSCaller struct {
    42  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    43  }
    44  
    45  // IDelegatedPoSTransactor is an auto generated write-only Go binding around an Ethereum contract.
    46  type IDelegatedPoSTransactor struct {
    47  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    48  }
    49  
    50  // IDelegatedPoSFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
    51  type IDelegatedPoSFilterer struct {
    52  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    53  }
    54  
    55  // IDelegatedPoSSession is an auto generated Go binding around an Ethereum contract,
    56  // with pre-set call and transact options.
    57  type IDelegatedPoSSession struct {
    58  	Contract     *IDelegatedPoS    // Generic contract binding to set the session for
    59  	CallOpts     bind.CallOpts     // Call options to use throughout this session
    60  	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
    61  }
    62  
    63  // IDelegatedPoSCallerSession is an auto generated read-only Go binding around an Ethereum contract,
    64  // with pre-set call options.
    65  type IDelegatedPoSCallerSession struct {
    66  	Contract *IDelegatedPoSCaller // Generic contract caller binding to set the session for
    67  	CallOpts bind.CallOpts        // Call options to use throughout this session
    68  }
    69  
    70  // IDelegatedPoSTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
    71  // with pre-set transact options.
    72  type IDelegatedPoSTransactorSession struct {
    73  	Contract     *IDelegatedPoSTransactor // Generic contract transactor binding to set the session for
    74  	TransactOpts bind.TransactOpts        // Transaction auth options to use throughout this session
    75  }
    76  
    77  // IDelegatedPoSRaw is an auto generated low-level Go binding around an Ethereum contract.
    78  type IDelegatedPoSRaw struct {
    79  	Contract *IDelegatedPoS // Generic contract binding to access the raw methods on
    80  }
    81  
    82  // IDelegatedPoSCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
    83  type IDelegatedPoSCallerRaw struct {
    84  	Contract *IDelegatedPoSCaller // Generic read-only contract binding to access the raw methods on
    85  }
    86  
    87  // IDelegatedPoSTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
    88  type IDelegatedPoSTransactorRaw struct {
    89  	Contract *IDelegatedPoSTransactor // Generic write-only contract binding to access the raw methods on
    90  }
    91  
    92  // NewIDelegatedPoS creates a new instance of IDelegatedPoS, bound to a specific deployed contract.
    93  func NewIDelegatedPoS(address common.Address, backend bind.ContractBackend) (*IDelegatedPoS, error) {
    94  	contract, err := bindIDelegatedPoS(address, backend, backend, backend)
    95  	if err != nil {
    96  		return nil, err
    97  	}
    98  	return &IDelegatedPoS{IDelegatedPoSCaller: IDelegatedPoSCaller{contract: contract}, IDelegatedPoSTransactor: IDelegatedPoSTransactor{contract: contract}, IDelegatedPoSFilterer: IDelegatedPoSFilterer{contract: contract}}, nil
    99  }
   100  
   101  // NewIDelegatedPoSCaller creates a new read-only instance of IDelegatedPoS, bound to a specific deployed contract.
   102  func NewIDelegatedPoSCaller(address common.Address, caller bind.ContractCaller) (*IDelegatedPoSCaller, error) {
   103  	contract, err := bindIDelegatedPoS(address, caller, nil, nil)
   104  	if err != nil {
   105  		return nil, err
   106  	}
   107  	return &IDelegatedPoSCaller{contract: contract}, nil
   108  }
   109  
   110  // NewIDelegatedPoSTransactor creates a new write-only instance of IDelegatedPoS, bound to a specific deployed contract.
   111  func NewIDelegatedPoSTransactor(address common.Address, transactor bind.ContractTransactor) (*IDelegatedPoSTransactor, error) {
   112  	contract, err := bindIDelegatedPoS(address, nil, transactor, nil)
   113  	if err != nil {
   114  		return nil, err
   115  	}
   116  	return &IDelegatedPoSTransactor{contract: contract}, nil
   117  }
   118  
   119  // NewIDelegatedPoSFilterer creates a new log filterer instance of IDelegatedPoS, bound to a specific deployed contract.
   120  func NewIDelegatedPoSFilterer(address common.Address, filterer bind.ContractFilterer) (*IDelegatedPoSFilterer, error) {
   121  	contract, err := bindIDelegatedPoS(address, nil, nil, filterer)
   122  	if err != nil {
   123  		return nil, err
   124  	}
   125  	return &IDelegatedPoSFilterer{contract: contract}, nil
   126  }
   127  
   128  // bindIDelegatedPoS binds a generic wrapper to an already deployed contract.
   129  func bindIDelegatedPoS(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   130  	parsed, err := abi.JSON(strings.NewReader(IDelegatedPoSABI))
   131  	if err != nil {
   132  		return nil, err
   133  	}
   134  	return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
   135  }
   136  
   137  // Call invokes the (constant) contract method with params as input values and
   138  // sets the output to result. The result type might be a single field for simple
   139  // returns, a slice of interfaces for anonymous returns and a struct for named
   140  // returns.
   141  func (_IDelegatedPoS *IDelegatedPoSRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   142  	return _IDelegatedPoS.Contract.IDelegatedPoSCaller.contract.Call(opts, result, method, params...)
   143  }
   144  
   145  // Transfer initiates a plain transaction to move funds to the contract, calling
   146  // its default method if one is available.
   147  func (_IDelegatedPoS *IDelegatedPoSRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   148  	return _IDelegatedPoS.Contract.IDelegatedPoSTransactor.contract.Transfer(opts)
   149  }
   150  
   151  // Transact invokes the (paid) contract method with params as input values.
   152  func (_IDelegatedPoS *IDelegatedPoSRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   153  	return _IDelegatedPoS.Contract.IDelegatedPoSTransactor.contract.Transact(opts, method, params...)
   154  }
   155  
   156  // Call invokes the (constant) contract method with params as input values and
   157  // sets the output to result. The result type might be a single field for simple
   158  // returns, a slice of interfaces for anonymous returns and a struct for named
   159  // returns.
   160  func (_IDelegatedPoS *IDelegatedPoSCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error {
   161  	return _IDelegatedPoS.Contract.contract.Call(opts, result, method, params...)
   162  }
   163  
   164  // Transfer initiates a plain transaction to move funds to the contract, calling
   165  // its default method if one is available.
   166  func (_IDelegatedPoS *IDelegatedPoSTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   167  	return _IDelegatedPoS.Contract.contract.Transfer(opts)
   168  }
   169  
   170  // Transact invokes the (paid) contract method with params as input values.
   171  func (_IDelegatedPoS *IDelegatedPoSTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   172  	return _IDelegatedPoS.Contract.contract.Transact(opts, method, params...)
   173  }
   174  
   175  // SignerAddress is a free data retrieval call binding the contract method 0x5b7633d0.
   176  //
   177  // Solidity: function signerAddress() constant returns(address)
   178  func (_IDelegatedPoS *IDelegatedPoSCaller) SignerAddress(opts *bind.CallOpts) (common.Address, error) {
   179  	var (
   180  		ret0 = new(common.Address)
   181  	)
   182  	out := ret0
   183  	err := _IDelegatedPoS.contract.Call(opts, out, "signerAddress")
   184  	return *ret0, err
   185  }
   186  
   187  // SignerAddress is a free data retrieval call binding the contract method 0x5b7633d0.
   188  //
   189  // Solidity: function signerAddress() constant returns(address)
   190  func (_IDelegatedPoS *IDelegatedPoSSession) SignerAddress() (common.Address, error) {
   191  	return _IDelegatedPoS.Contract.SignerAddress(&_IDelegatedPoS.CallOpts)
   192  }
   193  
   194  // SignerAddress is a free data retrieval call binding the contract method 0x5b7633d0.
   195  //
   196  // Solidity: function signerAddress() constant returns(address)
   197  func (_IDelegatedPoS *IDelegatedPoSCallerSession) SignerAddress() (common.Address, error) {
   198  	return _IDelegatedPoS.Contract.SignerAddress(&_IDelegatedPoS.CallOpts)
   199  }