github.com/klaytn/klaytn@v1.12.1/contracts/kip13/InterfaceIdentifier.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 kip13 5 6 import ( 7 "errors" 8 "math/big" 9 "strings" 10 11 "github.com/klaytn/klaytn" 12 "github.com/klaytn/klaytn/accounts/abi" 13 "github.com/klaytn/klaytn/accounts/abi/bind" 14 "github.com/klaytn/klaytn/blockchain/types" 15 "github.com/klaytn/klaytn/common" 16 "github.com/klaytn/klaytn/event" 17 ) 18 19 // Reference imports to suppress errors if they are not otherwise used. 20 var ( 21 _ = errors.New 22 _ = big.NewInt 23 _ = strings.NewReader 24 _ = klaytn.NotFound 25 _ = bind.Bind 26 _ = common.Big1 27 _ = types.BloomLookup 28 _ = event.NewSubscription 29 _ = abi.ConvertType 30 ) 31 32 // InterfaceIdentifierMetaData contains all meta data concerning the InterfaceIdentifier contract. 33 var InterfaceIdentifierMetaData = &bind.MetaData{ 34 ABI: "[{\"constant\":true,\"inputs\":[{\"name\":\"interfaceID\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"name\":\"\",\"type\":\"bool\"}],\"payable\":false,\"stateMutability\":\"view\",\"type\":\"function\"}]", 35 Sigs: map[string]string{ 36 "01ffc9a7": "supportsInterface(bytes4)", 37 }, 38 } 39 40 // InterfaceIdentifierABI is the input ABI used to generate the binding from. 41 // Deprecated: Use InterfaceIdentifierMetaData.ABI instead. 42 var InterfaceIdentifierABI = InterfaceIdentifierMetaData.ABI 43 44 // InterfaceIdentifierBinRuntime is the compiled bytecode used for adding genesis block without deploying code. 45 const InterfaceIdentifierBinRuntime = `` 46 47 // InterfaceIdentifierFuncSigs maps the 4-byte function signature to its string representation. 48 // Deprecated: Use InterfaceIdentifierMetaData.Sigs instead. 49 var InterfaceIdentifierFuncSigs = InterfaceIdentifierMetaData.Sigs 50 51 // InterfaceIdentifier is an auto generated Go binding around a Klaytn contract. 52 type InterfaceIdentifier struct { 53 InterfaceIdentifierCaller // Read-only binding to the contract 54 InterfaceIdentifierTransactor // Write-only binding to the contract 55 InterfaceIdentifierFilterer // Log filterer for contract events 56 } 57 58 // InterfaceIdentifierCaller is an auto generated read-only Go binding around a Klaytn contract. 59 type InterfaceIdentifierCaller struct { 60 contract *bind.BoundContract // Generic contract wrapper for the low level calls 61 } 62 63 // InterfaceIdentifierTransactor is an auto generated write-only Go binding around a Klaytn contract. 64 type InterfaceIdentifierTransactor struct { 65 contract *bind.BoundContract // Generic contract wrapper for the low level calls 66 } 67 68 // InterfaceIdentifierFilterer is an auto generated log filtering Go binding around a Klaytn contract events. 69 type InterfaceIdentifierFilterer struct { 70 contract *bind.BoundContract // Generic contract wrapper for the low level calls 71 } 72 73 // InterfaceIdentifierSession is an auto generated Go binding around a Klaytn contract, 74 // with pre-set call and transact options. 75 type InterfaceIdentifierSession struct { 76 Contract *InterfaceIdentifier // Generic contract binding to set the session for 77 CallOpts bind.CallOpts // Call options to use throughout this session 78 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 79 } 80 81 // InterfaceIdentifierCallerSession is an auto generated read-only Go binding around a Klaytn contract, 82 // with pre-set call options. 83 type InterfaceIdentifierCallerSession struct { 84 Contract *InterfaceIdentifierCaller // Generic contract caller binding to set the session for 85 CallOpts bind.CallOpts // Call options to use throughout this session 86 } 87 88 // InterfaceIdentifierTransactorSession is an auto generated write-only Go binding around a Klaytn contract, 89 // with pre-set transact options. 90 type InterfaceIdentifierTransactorSession struct { 91 Contract *InterfaceIdentifierTransactor // Generic contract transactor binding to set the session for 92 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 93 } 94 95 // InterfaceIdentifierRaw is an auto generated low-level Go binding around a Klaytn contract. 96 type InterfaceIdentifierRaw struct { 97 Contract *InterfaceIdentifier // Generic contract binding to access the raw methods on 98 } 99 100 // InterfaceIdentifierCallerRaw is an auto generated low-level read-only Go binding around a Klaytn contract. 101 type InterfaceIdentifierCallerRaw struct { 102 Contract *InterfaceIdentifierCaller // Generic read-only contract binding to access the raw methods on 103 } 104 105 // InterfaceIdentifierTransactorRaw is an auto generated low-level write-only Go binding around a Klaytn contract. 106 type InterfaceIdentifierTransactorRaw struct { 107 Contract *InterfaceIdentifierTransactor // Generic write-only contract binding to access the raw methods on 108 } 109 110 // NewInterfaceIdentifier creates a new instance of InterfaceIdentifier, bound to a specific deployed contract. 111 func NewInterfaceIdentifier(address common.Address, backend bind.ContractBackend) (*InterfaceIdentifier, error) { 112 contract, err := bindInterfaceIdentifier(address, backend, backend, backend) 113 if err != nil { 114 return nil, err 115 } 116 return &InterfaceIdentifier{InterfaceIdentifierCaller: InterfaceIdentifierCaller{contract: contract}, InterfaceIdentifierTransactor: InterfaceIdentifierTransactor{contract: contract}, InterfaceIdentifierFilterer: InterfaceIdentifierFilterer{contract: contract}}, nil 117 } 118 119 // NewInterfaceIdentifierCaller creates a new read-only instance of InterfaceIdentifier, bound to a specific deployed contract. 120 func NewInterfaceIdentifierCaller(address common.Address, caller bind.ContractCaller) (*InterfaceIdentifierCaller, error) { 121 contract, err := bindInterfaceIdentifier(address, caller, nil, nil) 122 if err != nil { 123 return nil, err 124 } 125 return &InterfaceIdentifierCaller{contract: contract}, nil 126 } 127 128 // NewInterfaceIdentifierTransactor creates a new write-only instance of InterfaceIdentifier, bound to a specific deployed contract. 129 func NewInterfaceIdentifierTransactor(address common.Address, transactor bind.ContractTransactor) (*InterfaceIdentifierTransactor, error) { 130 contract, err := bindInterfaceIdentifier(address, nil, transactor, nil) 131 if err != nil { 132 return nil, err 133 } 134 return &InterfaceIdentifierTransactor{contract: contract}, nil 135 } 136 137 // NewInterfaceIdentifierFilterer creates a new log filterer instance of InterfaceIdentifier, bound to a specific deployed contract. 138 func NewInterfaceIdentifierFilterer(address common.Address, filterer bind.ContractFilterer) (*InterfaceIdentifierFilterer, error) { 139 contract, err := bindInterfaceIdentifier(address, nil, nil, filterer) 140 if err != nil { 141 return nil, err 142 } 143 return &InterfaceIdentifierFilterer{contract: contract}, nil 144 } 145 146 // bindInterfaceIdentifier binds a generic wrapper to an already deployed contract. 147 func bindInterfaceIdentifier(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { 148 parsed, err := InterfaceIdentifierMetaData.GetAbi() 149 if err != nil { 150 return nil, err 151 } 152 return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil 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 (_InterfaceIdentifier *InterfaceIdentifierRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 160 return _InterfaceIdentifier.Contract.InterfaceIdentifierCaller.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 (_InterfaceIdentifier *InterfaceIdentifierRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 166 return _InterfaceIdentifier.Contract.InterfaceIdentifierTransactor.contract.Transfer(opts) 167 } 168 169 // Transact invokes the (paid) contract method with params as input values. 170 func (_InterfaceIdentifier *InterfaceIdentifierRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 171 return _InterfaceIdentifier.Contract.InterfaceIdentifierTransactor.contract.Transact(opts, method, params...) 172 } 173 174 // Call invokes the (constant) contract method with params as input values and 175 // sets the output to result. The result type might be a single field for simple 176 // returns, a slice of interfaces for anonymous returns and a struct for named 177 // returns. 178 func (_InterfaceIdentifier *InterfaceIdentifierCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 179 return _InterfaceIdentifier.Contract.contract.Call(opts, result, method, params...) 180 } 181 182 // Transfer initiates a plain transaction to move funds to the contract, calling 183 // its default method if one is available. 184 func (_InterfaceIdentifier *InterfaceIdentifierTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 185 return _InterfaceIdentifier.Contract.contract.Transfer(opts) 186 } 187 188 // Transact invokes the (paid) contract method with params as input values. 189 func (_InterfaceIdentifier *InterfaceIdentifierTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 190 return _InterfaceIdentifier.Contract.contract.Transact(opts, method, params...) 191 } 192 193 // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. 194 // 195 // Solidity: function supportsInterface(bytes4 interfaceID) view returns(bool) 196 func (_InterfaceIdentifier *InterfaceIdentifierCaller) SupportsInterface(opts *bind.CallOpts, interfaceID [4]byte) (bool, error) { 197 var out []interface{} 198 err := _InterfaceIdentifier.contract.Call(opts, &out, "supportsInterface", interfaceID) 199 200 if err != nil { 201 return *new(bool), err 202 } 203 204 out0 := *abi.ConvertType(out[0], new(bool)).(*bool) 205 206 return out0, err 207 208 } 209 210 // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. 211 // 212 // Solidity: function supportsInterface(bytes4 interfaceID) view returns(bool) 213 func (_InterfaceIdentifier *InterfaceIdentifierSession) SupportsInterface(interfaceID [4]byte) (bool, error) { 214 return _InterfaceIdentifier.Contract.SupportsInterface(&_InterfaceIdentifier.CallOpts, interfaceID) 215 } 216 217 // SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. 218 // 219 // Solidity: function supportsInterface(bytes4 interfaceID) view returns(bool) 220 func (_InterfaceIdentifier *InterfaceIdentifierCallerSession) SupportsInterface(interfaceID [4]byte) (bool, error) { 221 return _InterfaceIdentifier.Contract.SupportsInterface(&_InterfaceIdentifier.CallOpts, interfaceID) 222 }