github.com/diadata-org/diadata@v1.4.593/config/nftContracts/erc165/erc165.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 erc165
     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  	_ = bind.Bind
    24  	_ = common.Big1
    25  	_ = types.BloomLookup
    26  	_ = event.NewSubscription
    27  )
    28  
    29  // Erc165ABI is the input ABI used to generate the binding from.
    30  const Erc165ABI = "[{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]"
    31  
    32  // Erc165 is an auto generated Go binding around an Ethereum contract.
    33  type Erc165 struct {
    34  	Erc165Caller     // Read-only binding to the contract
    35  	Erc165Transactor // Write-only binding to the contract
    36  	Erc165Filterer   // Log filterer for contract events
    37  }
    38  
    39  // Erc165Caller is an auto generated read-only Go binding around an Ethereum contract.
    40  type Erc165Caller struct {
    41  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    42  }
    43  
    44  // Erc165Transactor is an auto generated write-only Go binding around an Ethereum contract.
    45  type Erc165Transactor struct {
    46  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    47  }
    48  
    49  // Erc165Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
    50  type Erc165Filterer struct {
    51  	contract *bind.BoundContract // Generic contract wrapper for the low level calls
    52  }
    53  
    54  // Erc165Session is an auto generated Go binding around an Ethereum contract,
    55  // with pre-set call and transact options.
    56  type Erc165Session struct {
    57  	Contract     *Erc165           // Generic contract binding to set the session for
    58  	CallOpts     bind.CallOpts     // Call options to use throughout this session
    59  	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
    60  }
    61  
    62  // Erc165CallerSession is an auto generated read-only Go binding around an Ethereum contract,
    63  // with pre-set call options.
    64  type Erc165CallerSession struct {
    65  	Contract *Erc165Caller // Generic contract caller binding to set the session for
    66  	CallOpts bind.CallOpts // Call options to use throughout this session
    67  }
    68  
    69  // Erc165TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
    70  // with pre-set transact options.
    71  type Erc165TransactorSession struct {
    72  	Contract     *Erc165Transactor // Generic contract transactor binding to set the session for
    73  	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
    74  }
    75  
    76  // Erc165Raw is an auto generated low-level Go binding around an Ethereum contract.
    77  type Erc165Raw struct {
    78  	Contract *Erc165 // Generic contract binding to access the raw methods on
    79  }
    80  
    81  // Erc165CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
    82  type Erc165CallerRaw struct {
    83  	Contract *Erc165Caller // Generic read-only contract binding to access the raw methods on
    84  }
    85  
    86  // Erc165TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
    87  type Erc165TransactorRaw struct {
    88  	Contract *Erc165Transactor // Generic write-only contract binding to access the raw methods on
    89  }
    90  
    91  // NewErc165 creates a new instance of Erc165, bound to a specific deployed contract.
    92  func NewErc165(address common.Address, backend bind.ContractBackend) (*Erc165, error) {
    93  	contract, err := bindErc165(address, backend, backend, backend)
    94  	if err != nil {
    95  		return nil, err
    96  	}
    97  	return &Erc165{Erc165Caller: Erc165Caller{contract: contract}, Erc165Transactor: Erc165Transactor{contract: contract}, Erc165Filterer: Erc165Filterer{contract: contract}}, nil
    98  }
    99  
   100  // NewErc165Caller creates a new read-only instance of Erc165, bound to a specific deployed contract.
   101  func NewErc165Caller(address common.Address, caller bind.ContractCaller) (*Erc165Caller, error) {
   102  	contract, err := bindErc165(address, caller, nil, nil)
   103  	if err != nil {
   104  		return nil, err
   105  	}
   106  	return &Erc165Caller{contract: contract}, nil
   107  }
   108  
   109  // NewErc165Transactor creates a new write-only instance of Erc165, bound to a specific deployed contract.
   110  func NewErc165Transactor(address common.Address, transactor bind.ContractTransactor) (*Erc165Transactor, error) {
   111  	contract, err := bindErc165(address, nil, transactor, nil)
   112  	if err != nil {
   113  		return nil, err
   114  	}
   115  	return &Erc165Transactor{contract: contract}, nil
   116  }
   117  
   118  // NewErc165Filterer creates a new log filterer instance of Erc165, bound to a specific deployed contract.
   119  func NewErc165Filterer(address common.Address, filterer bind.ContractFilterer) (*Erc165Filterer, error) {
   120  	contract, err := bindErc165(address, nil, nil, filterer)
   121  	if err != nil {
   122  		return nil, err
   123  	}
   124  	return &Erc165Filterer{contract: contract}, nil
   125  }
   126  
   127  // bindErc165 binds a generic wrapper to an already deployed contract.
   128  func bindErc165(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
   129  	parsed, err := abi.JSON(strings.NewReader(Erc165ABI))
   130  	if err != nil {
   131  		return nil, err
   132  	}
   133  	return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil
   134  }
   135  
   136  // Call invokes the (constant) contract method with params as input values and
   137  // sets the output to result. The result type might be a single field for simple
   138  // returns, a slice of interfaces for anonymous returns and a struct for named
   139  // returns.
   140  func (_Erc165 *Erc165Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
   141  	return _Erc165.Contract.Erc165Caller.contract.Call(opts, result, method, params...)
   142  }
   143  
   144  // Transfer initiates a plain transaction to move funds to the contract, calling
   145  // its default method if one is available.
   146  func (_Erc165 *Erc165Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   147  	return _Erc165.Contract.Erc165Transactor.contract.Transfer(opts)
   148  }
   149  
   150  // Transact invokes the (paid) contract method with params as input values.
   151  func (_Erc165 *Erc165Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   152  	return _Erc165.Contract.Erc165Transactor.contract.Transact(opts, method, params...)
   153  }
   154  
   155  // Call invokes the (constant) contract method with params as input values and
   156  // sets the output to result. The result type might be a single field for simple
   157  // returns, a slice of interfaces for anonymous returns and a struct for named
   158  // returns.
   159  func (_Erc165 *Erc165CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
   160  	return _Erc165.Contract.contract.Call(opts, result, method, params...)
   161  }
   162  
   163  // Transfer initiates a plain transaction to move funds to the contract, calling
   164  // its default method if one is available.
   165  func (_Erc165 *Erc165TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
   166  	return _Erc165.Contract.contract.Transfer(opts)
   167  }
   168  
   169  // Transact invokes the (paid) contract method with params as input values.
   170  func (_Erc165 *Erc165TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
   171  	return _Erc165.Contract.contract.Transact(opts, method, params...)
   172  }
   173  
   174  // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
   175  //
   176  // Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
   177  func (_Erc165 *Erc165Caller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) {
   178  	var out []interface{}
   179  	err := _Erc165.contract.Call(opts, &out, "supportsInterface", interfaceId)
   180  
   181  	if err != nil {
   182  		return *new(bool), err
   183  	}
   184  
   185  	out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
   186  
   187  	return out0, err
   188  
   189  }
   190  
   191  // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
   192  //
   193  // Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
   194  func (_Erc165 *Erc165Session) SupportsInterface(interfaceId [4]byte) (bool, error) {
   195  	return _Erc165.Contract.SupportsInterface(&_Erc165.CallOpts, interfaceId)
   196  }
   197  
   198  // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
   199  //
   200  // Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
   201  func (_Erc165 *Erc165CallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) {
   202  	return _Erc165.Contract.SupportsInterface(&_Erc165.CallOpts, interfaceId)
   203  }