github.com/0xPolygon/supernets2-node@v0.0.0-20230711153321-2fe574524eaa/test/contracts/bin/Read/Read.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 Read 5 6 import ( 7 "errors" 8 "math/big" 9 "strings" 10 11 ethereum "github.com/ethereum/go-ethereum" 12 "github.com/ethereum/go-ethereum/accounts/abi" 13 "github.com/ethereum/go-ethereum/accounts/abi/bind" 14 "github.com/ethereum/go-ethereum/common" 15 "github.com/ethereum/go-ethereum/core/types" 16 "github.com/ethereum/go-ethereum/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 _ = ethereum.NotFound 25 _ = bind.Bind 26 _ = common.Big1 27 _ = types.BloomLookup 28 _ = event.NewSubscription 29 _ = abi.ConvertType 30 ) 31 32 // Readtoken is an auto generated low-level Go binding around an user-defined struct. 33 type Readtoken struct { 34 Name string 35 Quantity *big.Int 36 Address common.Address 37 } 38 39 // ReadMetaData contains all meta data concerning the Read contract. 40 var ReadMetaData = &bind.MetaData{ 41 ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"Owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"OwnerName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"Tokens\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"Name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"Quantity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"Address\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"Value\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"Name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"Quantity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"Address\",\"type\":\"address\"}],\"internalType\":\"structRead.token\",\"name\":\"t\",\"type\":\"tuple\"}],\"name\":\"externalAddToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"externalGetOwnerName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"a\",\"type\":\"address\"}],\"name\":\"externalGetToken\",\"outputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"Name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"Quantity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"Address\",\"type\":\"address\"}],\"internalType\":\"structRead.token\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"externalRead\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"p\",\"type\":\"uint256\"}],\"name\":\"externalReadWParams\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"Name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"Quantity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"Address\",\"type\":\"address\"}],\"internalType\":\"structRead.token\",\"name\":\"t\",\"type\":\"tuple\"}],\"name\":\"publicAddToken\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"publicGetOwnerName\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"a\",\"type\":\"address\"}],\"name\":\"publicGetToken\",\"outputs\":[{\"components\":[{\"internalType\":\"string\",\"name\":\"Name\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"Quantity\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"Address\",\"type\":\"address\"}],\"internalType\":\"structRead.token\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"publicRead\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"p\",\"type\":\"uint256\"}],\"name\":\"publicReadWParams\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]", 42 Bin: "0x608060405260016002553480156200001657600080fd5b5060405162000b1238038062000b12833981016040819052620000399162000124565b80516200004e90600190602084019062000068565b5050600080546001600160a01b031916331790556200023d565b828054620000769062000200565b90600052602060002090601f0160209004810192826200009a5760008555620000e5565b82601f10620000b557805160ff1916838001178555620000e5565b82800160010185558215620000e5579182015b82811115620000e5578251825591602001919060010190620000c8565b50620000f3929150620000f7565b5090565b5b80821115620000f35760008155600101620000f8565b634e487b7160e01b600052604160045260246000fd5b600060208083850312156200013857600080fd5b82516001600160401b03808211156200015057600080fd5b818501915085601f8301126200016557600080fd5b8151818111156200017a576200017a6200010e565b604051601f8201601f19908116603f01168101908382118183101715620001a557620001a56200010e565b816040528281528886848701011115620001be57600080fd5b600093505b82841015620001e25784840186015181850187015292850192620001c3565b82841115620001f45760008684830101525b98975050505050505050565b600181811c908216806200021557607f821691505b602082108114156200023757634e487b7160e01b600052602260045260246000fd5b50919050565b6108c5806200024d6000396000f3fe608060405234801561001057600080fd5b50600436106100ea5760003560e01c8063b1ceff4e1161008c578063c191ace511610066578063c191ace5146100ef578063d05c715a146101b4578063e117176a14610169578063f1d876b4146101bc57600080fd5b8063b1ceff4e14610169578063b4a99a4e14610189578063bfa044ed1461015657600080fd5b806333eb6be8116100c857806333eb6be8146101415780636e5298b2146101565780639553400f14610141578063af3347571461012f57600080fd5b8063081540b2146100ef5780630deef63a1461010d57806310f3f91a1461012f575b600080fd5b6100f76101c5565b6040516101049190610602565b60405180910390f35b61012061011b366004610638565b610257565b60405161010493929190610653565b6002545b604051908152602001610104565b61015461014f3660046106f6565b61030b565b005b6101336101643660046107ce565b610373565b61017c610177366004610638565b610389565b60405161010491906107e7565b60005461019c906001600160a01b031681565b6040516001600160a01b039091168152602001610104565b6100f761048e565b61013360025481565b6060600180546101d49061082e565b80601f01602080910402602001604051908101604052809291908181526020018280546102009061082e565b801561024d5780601f106102225761010080835404028352916020019161024d565b820191906000526020600020905b81548152906001019060200180831161023057829003601f168201915b5050505050905090565b6003602052600090815260409020805481906102729061082e565b80601f016020809104026020016040519081016040528092919081815260200182805461029e9061082e565b80156102eb5780601f106102c0576101008083540402835291602001916102eb565b820191906000526020600020905b8154815290600101906020018083116102ce57829003601f168201915b5050505060018301546002909301549192916001600160a01b0316905083565b6040808201516001600160a01b031660009081526003602090815291902082518051849361033d92849291019061051c565b5060208201516001820155604090910151600290910180546001600160a01b0319166001600160a01b0390921691909117905550565b6000816002546103839190610869565b92915050565b6103b66040518060600160405280606081526020016000815260200160006001600160a01b031681525090565b6001600160a01b038216600090815260036020526040908190208151606081019092528054829082906103e89061082e565b80601f01602080910402602001604051908101604052809291908181526020018280546104149061082e565b80156104615780601f1061043657610100808354040283529160200191610461565b820191906000526020600020905b81548152906001019060200180831161044457829003601f168201915b5050509183525050600182015460208201526002909101546001600160a01b031660409091015292915050565b6001805461049b9061082e565b80601f01602080910402602001604051908101604052809291908181526020018280546104c79061082e565b80156105145780601f106104e957610100808354040283529160200191610514565b820191906000526020600020905b8154815290600101906020018083116104f757829003601f168201915b505050505081565b8280546105289061082e565b90600052602060002090601f01602090048101928261054a5760008555610590565b82601f1061056357805160ff1916838001178555610590565b82800160010185558215610590579182015b82811115610590578251825591602001919060010190610575565b5061059c9291506105a0565b5090565b5b8082111561059c57600081556001016105a1565b6000815180845260005b818110156105db576020818501810151868301820152016105bf565b818111156105ed576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061061560208301846105b5565b9392505050565b80356001600160a01b038116811461063357600080fd5b919050565b60006020828403121561064a57600080fd5b6106158261061c565b60608152600061066660608301866105b5565b6020830194909452506001600160a01b0391909116604090910152919050565b634e487b7160e01b600052604160045260246000fd5b6040516060810167ffffffffffffffff811182821017156106bf576106bf610686565b60405290565b604051601f8201601f1916810167ffffffffffffffff811182821017156106ee576106ee610686565b604052919050565b6000602080838503121561070957600080fd5b823567ffffffffffffffff8082111561072157600080fd5b908401906060828703121561073557600080fd5b61073d61069c565b82358281111561074c57600080fd5b8301601f8101881361075d57600080fd5b80358381111561076f5761076f610686565b610781601f8201601f191687016106c5565b9350808452888682840101111561079757600080fd5b808683018786013760009084018601525081815282840135818501526107bf6040840161061c565b60408201529695505050505050565b6000602082840312156107e057600080fd5b5035919050565b60208152600082516060602084015261080360808401826105b5565b6020850151604085810191909152909401516001600160a01b03166060909301929092525090919050565b600181811c9082168061084257607f821691505b6020821081141561086357634e487b7160e01b600052602260045260246000fd5b50919050565b6000821982111561088a57634e487b7160e01b600052601160045260246000fd5b50019056fea2646970667358221220a0f0d200f69f0e789d27f571230dfef313a2709f90ab94a804881830d196e05164736f6c634300080c0033", 43 } 44 45 // ReadABI is the input ABI used to generate the binding from. 46 // Deprecated: Use ReadMetaData.ABI instead. 47 var ReadABI = ReadMetaData.ABI 48 49 // ReadBin is the compiled bytecode used for deploying new contracts. 50 // Deprecated: Use ReadMetaData.Bin instead. 51 var ReadBin = ReadMetaData.Bin 52 53 // DeployRead deploys a new Ethereum contract, binding an instance of Read to it. 54 func DeployRead(auth *bind.TransactOpts, backend bind.ContractBackend, name string) (common.Address, *types.Transaction, *Read, error) { 55 parsed, err := ReadMetaData.GetAbi() 56 if err != nil { 57 return common.Address{}, nil, nil, err 58 } 59 if parsed == nil { 60 return common.Address{}, nil, nil, errors.New("GetABI returned nil") 61 } 62 63 address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ReadBin), backend, name) 64 if err != nil { 65 return common.Address{}, nil, nil, err 66 } 67 return address, tx, &Read{ReadCaller: ReadCaller{contract: contract}, ReadTransactor: ReadTransactor{contract: contract}, ReadFilterer: ReadFilterer{contract: contract}}, nil 68 } 69 70 // Read is an auto generated Go binding around an Ethereum contract. 71 type Read struct { 72 ReadCaller // Read-only binding to the contract 73 ReadTransactor // Write-only binding to the contract 74 ReadFilterer // Log filterer for contract events 75 } 76 77 // ReadCaller is an auto generated read-only Go binding around an Ethereum contract. 78 type ReadCaller struct { 79 contract *bind.BoundContract // Generic contract wrapper for the low level calls 80 } 81 82 // ReadTransactor is an auto generated write-only Go binding around an Ethereum contract. 83 type ReadTransactor struct { 84 contract *bind.BoundContract // Generic contract wrapper for the low level calls 85 } 86 87 // ReadFilterer is an auto generated log filtering Go binding around an Ethereum contract events. 88 type ReadFilterer struct { 89 contract *bind.BoundContract // Generic contract wrapper for the low level calls 90 } 91 92 // ReadSession is an auto generated Go binding around an Ethereum contract, 93 // with pre-set call and transact options. 94 type ReadSession struct { 95 Contract *Read // Generic contract binding to set the session for 96 CallOpts bind.CallOpts // Call options to use throughout this session 97 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 98 } 99 100 // ReadCallerSession is an auto generated read-only Go binding around an Ethereum contract, 101 // with pre-set call options. 102 type ReadCallerSession struct { 103 Contract *ReadCaller // Generic contract caller binding to set the session for 104 CallOpts bind.CallOpts // Call options to use throughout this session 105 } 106 107 // ReadTransactorSession is an auto generated write-only Go binding around an Ethereum contract, 108 // with pre-set transact options. 109 type ReadTransactorSession struct { 110 Contract *ReadTransactor // Generic contract transactor binding to set the session for 111 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 112 } 113 114 // ReadRaw is an auto generated low-level Go binding around an Ethereum contract. 115 type ReadRaw struct { 116 Contract *Read // Generic contract binding to access the raw methods on 117 } 118 119 // ReadCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. 120 type ReadCallerRaw struct { 121 Contract *ReadCaller // Generic read-only contract binding to access the raw methods on 122 } 123 124 // ReadTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. 125 type ReadTransactorRaw struct { 126 Contract *ReadTransactor // Generic write-only contract binding to access the raw methods on 127 } 128 129 // NewRead creates a new instance of Read, bound to a specific deployed contract. 130 func NewRead(address common.Address, backend bind.ContractBackend) (*Read, error) { 131 contract, err := bindRead(address, backend, backend, backend) 132 if err != nil { 133 return nil, err 134 } 135 return &Read{ReadCaller: ReadCaller{contract: contract}, ReadTransactor: ReadTransactor{contract: contract}, ReadFilterer: ReadFilterer{contract: contract}}, nil 136 } 137 138 // NewReadCaller creates a new read-only instance of Read, bound to a specific deployed contract. 139 func NewReadCaller(address common.Address, caller bind.ContractCaller) (*ReadCaller, error) { 140 contract, err := bindRead(address, caller, nil, nil) 141 if err != nil { 142 return nil, err 143 } 144 return &ReadCaller{contract: contract}, nil 145 } 146 147 // NewReadTransactor creates a new write-only instance of Read, bound to a specific deployed contract. 148 func NewReadTransactor(address common.Address, transactor bind.ContractTransactor) (*ReadTransactor, error) { 149 contract, err := bindRead(address, nil, transactor, nil) 150 if err != nil { 151 return nil, err 152 } 153 return &ReadTransactor{contract: contract}, nil 154 } 155 156 // NewReadFilterer creates a new log filterer instance of Read, bound to a specific deployed contract. 157 func NewReadFilterer(address common.Address, filterer bind.ContractFilterer) (*ReadFilterer, error) { 158 contract, err := bindRead(address, nil, nil, filterer) 159 if err != nil { 160 return nil, err 161 } 162 return &ReadFilterer{contract: contract}, nil 163 } 164 165 // bindRead binds a generic wrapper to an already deployed contract. 166 func bindRead(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { 167 parsed, err := ReadMetaData.GetAbi() 168 if err != nil { 169 return nil, err 170 } 171 return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil 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 (_Read *ReadRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 179 return _Read.Contract.ReadCaller.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 (_Read *ReadRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 185 return _Read.Contract.ReadTransactor.contract.Transfer(opts) 186 } 187 188 // Transact invokes the (paid) contract method with params as input values. 189 func (_Read *ReadRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 190 return _Read.Contract.ReadTransactor.contract.Transact(opts, method, params...) 191 } 192 193 // Call invokes the (constant) contract method with params as input values and 194 // sets the output to result. The result type might be a single field for simple 195 // returns, a slice of interfaces for anonymous returns and a struct for named 196 // returns. 197 func (_Read *ReadCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 198 return _Read.Contract.contract.Call(opts, result, method, params...) 199 } 200 201 // Transfer initiates a plain transaction to move funds to the contract, calling 202 // its default method if one is available. 203 func (_Read *ReadTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 204 return _Read.Contract.contract.Transfer(opts) 205 } 206 207 // Transact invokes the (paid) contract method with params as input values. 208 func (_Read *ReadTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 209 return _Read.Contract.contract.Transact(opts, method, params...) 210 } 211 212 // Owner is a free data retrieval call binding the contract method 0xb4a99a4e. 213 // 214 // Solidity: function Owner() view returns(address) 215 func (_Read *ReadCaller) Owner(opts *bind.CallOpts) (common.Address, error) { 216 var out []interface{} 217 err := _Read.contract.Call(opts, &out, "Owner") 218 219 if err != nil { 220 return *new(common.Address), err 221 } 222 223 out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) 224 225 return out0, err 226 227 } 228 229 // Owner is a free data retrieval call binding the contract method 0xb4a99a4e. 230 // 231 // Solidity: function Owner() view returns(address) 232 func (_Read *ReadSession) Owner() (common.Address, error) { 233 return _Read.Contract.Owner(&_Read.CallOpts) 234 } 235 236 // Owner is a free data retrieval call binding the contract method 0xb4a99a4e. 237 // 238 // Solidity: function Owner() view returns(address) 239 func (_Read *ReadCallerSession) Owner() (common.Address, error) { 240 return _Read.Contract.Owner(&_Read.CallOpts) 241 } 242 243 // OwnerName is a free data retrieval call binding the contract method 0xd05c715a. 244 // 245 // Solidity: function OwnerName() view returns(string) 246 func (_Read *ReadCaller) OwnerName(opts *bind.CallOpts) (string, error) { 247 var out []interface{} 248 err := _Read.contract.Call(opts, &out, "OwnerName") 249 250 if err != nil { 251 return *new(string), err 252 } 253 254 out0 := *abi.ConvertType(out[0], new(string)).(*string) 255 256 return out0, err 257 258 } 259 260 // OwnerName is a free data retrieval call binding the contract method 0xd05c715a. 261 // 262 // Solidity: function OwnerName() view returns(string) 263 func (_Read *ReadSession) OwnerName() (string, error) { 264 return _Read.Contract.OwnerName(&_Read.CallOpts) 265 } 266 267 // OwnerName is a free data retrieval call binding the contract method 0xd05c715a. 268 // 269 // Solidity: function OwnerName() view returns(string) 270 func (_Read *ReadCallerSession) OwnerName() (string, error) { 271 return _Read.Contract.OwnerName(&_Read.CallOpts) 272 } 273 274 // Tokens is a free data retrieval call binding the contract method 0x0deef63a. 275 // 276 // Solidity: function Tokens(address ) view returns(string Name, uint256 Quantity, address Address) 277 func (_Read *ReadCaller) Tokens(opts *bind.CallOpts, arg0 common.Address) (struct { 278 Name string 279 Quantity *big.Int 280 Address common.Address 281 }, error) { 282 var out []interface{} 283 err := _Read.contract.Call(opts, &out, "Tokens", arg0) 284 285 outstruct := new(struct { 286 Name string 287 Quantity *big.Int 288 Address common.Address 289 }) 290 if err != nil { 291 return *outstruct, err 292 } 293 294 outstruct.Name = *abi.ConvertType(out[0], new(string)).(*string) 295 outstruct.Quantity = *abi.ConvertType(out[1], new(*big.Int)).(**big.Int) 296 outstruct.Address = *abi.ConvertType(out[2], new(common.Address)).(*common.Address) 297 298 return *outstruct, err 299 300 } 301 302 // Tokens is a free data retrieval call binding the contract method 0x0deef63a. 303 // 304 // Solidity: function Tokens(address ) view returns(string Name, uint256 Quantity, address Address) 305 func (_Read *ReadSession) Tokens(arg0 common.Address) (struct { 306 Name string 307 Quantity *big.Int 308 Address common.Address 309 }, error) { 310 return _Read.Contract.Tokens(&_Read.CallOpts, arg0) 311 } 312 313 // Tokens is a free data retrieval call binding the contract method 0x0deef63a. 314 // 315 // Solidity: function Tokens(address ) view returns(string Name, uint256 Quantity, address Address) 316 func (_Read *ReadCallerSession) Tokens(arg0 common.Address) (struct { 317 Name string 318 Quantity *big.Int 319 Address common.Address 320 }, error) { 321 return _Read.Contract.Tokens(&_Read.CallOpts, arg0) 322 } 323 324 // Value is a free data retrieval call binding the contract method 0xf1d876b4. 325 // 326 // Solidity: function Value() view returns(uint256) 327 func (_Read *ReadCaller) Value(opts *bind.CallOpts) (*big.Int, error) { 328 var out []interface{} 329 err := _Read.contract.Call(opts, &out, "Value") 330 331 if err != nil { 332 return *new(*big.Int), err 333 } 334 335 out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) 336 337 return out0, err 338 339 } 340 341 // Value is a free data retrieval call binding the contract method 0xf1d876b4. 342 // 343 // Solidity: function Value() view returns(uint256) 344 func (_Read *ReadSession) Value() (*big.Int, error) { 345 return _Read.Contract.Value(&_Read.CallOpts) 346 } 347 348 // Value is a free data retrieval call binding the contract method 0xf1d876b4. 349 // 350 // Solidity: function Value() view returns(uint256) 351 func (_Read *ReadCallerSession) Value() (*big.Int, error) { 352 return _Read.Contract.Value(&_Read.CallOpts) 353 } 354 355 // ExternalGetOwnerName is a free data retrieval call binding the contract method 0xc191ace5. 356 // 357 // Solidity: function externalGetOwnerName() view returns(string) 358 func (_Read *ReadCaller) ExternalGetOwnerName(opts *bind.CallOpts) (string, error) { 359 var out []interface{} 360 err := _Read.contract.Call(opts, &out, "externalGetOwnerName") 361 362 if err != nil { 363 return *new(string), err 364 } 365 366 out0 := *abi.ConvertType(out[0], new(string)).(*string) 367 368 return out0, err 369 370 } 371 372 // ExternalGetOwnerName is a free data retrieval call binding the contract method 0xc191ace5. 373 // 374 // Solidity: function externalGetOwnerName() view returns(string) 375 func (_Read *ReadSession) ExternalGetOwnerName() (string, error) { 376 return _Read.Contract.ExternalGetOwnerName(&_Read.CallOpts) 377 } 378 379 // ExternalGetOwnerName is a free data retrieval call binding the contract method 0xc191ace5. 380 // 381 // Solidity: function externalGetOwnerName() view returns(string) 382 func (_Read *ReadCallerSession) ExternalGetOwnerName() (string, error) { 383 return _Read.Contract.ExternalGetOwnerName(&_Read.CallOpts) 384 } 385 386 // ExternalGetToken is a free data retrieval call binding the contract method 0xe117176a. 387 // 388 // Solidity: function externalGetToken(address a) view returns((string,uint256,address)) 389 func (_Read *ReadCaller) ExternalGetToken(opts *bind.CallOpts, a common.Address) (Readtoken, error) { 390 var out []interface{} 391 err := _Read.contract.Call(opts, &out, "externalGetToken", a) 392 393 if err != nil { 394 return *new(Readtoken), err 395 } 396 397 out0 := *abi.ConvertType(out[0], new(Readtoken)).(*Readtoken) 398 399 return out0, err 400 401 } 402 403 // ExternalGetToken is a free data retrieval call binding the contract method 0xe117176a. 404 // 405 // Solidity: function externalGetToken(address a) view returns((string,uint256,address)) 406 func (_Read *ReadSession) ExternalGetToken(a common.Address) (Readtoken, error) { 407 return _Read.Contract.ExternalGetToken(&_Read.CallOpts, a) 408 } 409 410 // ExternalGetToken is a free data retrieval call binding the contract method 0xe117176a. 411 // 412 // Solidity: function externalGetToken(address a) view returns((string,uint256,address)) 413 func (_Read *ReadCallerSession) ExternalGetToken(a common.Address) (Readtoken, error) { 414 return _Read.Contract.ExternalGetToken(&_Read.CallOpts, a) 415 } 416 417 // ExternalRead is a free data retrieval call binding the contract method 0x10f3f91a. 418 // 419 // Solidity: function externalRead() view returns(uint256) 420 func (_Read *ReadCaller) ExternalRead(opts *bind.CallOpts) (*big.Int, error) { 421 var out []interface{} 422 err := _Read.contract.Call(opts, &out, "externalRead") 423 424 if err != nil { 425 return *new(*big.Int), err 426 } 427 428 out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) 429 430 return out0, err 431 432 } 433 434 // ExternalRead is a free data retrieval call binding the contract method 0x10f3f91a. 435 // 436 // Solidity: function externalRead() view returns(uint256) 437 func (_Read *ReadSession) ExternalRead() (*big.Int, error) { 438 return _Read.Contract.ExternalRead(&_Read.CallOpts) 439 } 440 441 // ExternalRead is a free data retrieval call binding the contract method 0x10f3f91a. 442 // 443 // Solidity: function externalRead() view returns(uint256) 444 func (_Read *ReadCallerSession) ExternalRead() (*big.Int, error) { 445 return _Read.Contract.ExternalRead(&_Read.CallOpts) 446 } 447 448 // ExternalReadWParams is a free data retrieval call binding the contract method 0x6e5298b2. 449 // 450 // Solidity: function externalReadWParams(uint256 p) view returns(uint256) 451 func (_Read *ReadCaller) ExternalReadWParams(opts *bind.CallOpts, p *big.Int) (*big.Int, error) { 452 var out []interface{} 453 err := _Read.contract.Call(opts, &out, "externalReadWParams", p) 454 455 if err != nil { 456 return *new(*big.Int), err 457 } 458 459 out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) 460 461 return out0, err 462 463 } 464 465 // ExternalReadWParams is a free data retrieval call binding the contract method 0x6e5298b2. 466 // 467 // Solidity: function externalReadWParams(uint256 p) view returns(uint256) 468 func (_Read *ReadSession) ExternalReadWParams(p *big.Int) (*big.Int, error) { 469 return _Read.Contract.ExternalReadWParams(&_Read.CallOpts, p) 470 } 471 472 // ExternalReadWParams is a free data retrieval call binding the contract method 0x6e5298b2. 473 // 474 // Solidity: function externalReadWParams(uint256 p) view returns(uint256) 475 func (_Read *ReadCallerSession) ExternalReadWParams(p *big.Int) (*big.Int, error) { 476 return _Read.Contract.ExternalReadWParams(&_Read.CallOpts, p) 477 } 478 479 // PublicGetOwnerName is a free data retrieval call binding the contract method 0x081540b2. 480 // 481 // Solidity: function publicGetOwnerName() view returns(string) 482 func (_Read *ReadCaller) PublicGetOwnerName(opts *bind.CallOpts) (string, error) { 483 var out []interface{} 484 err := _Read.contract.Call(opts, &out, "publicGetOwnerName") 485 486 if err != nil { 487 return *new(string), err 488 } 489 490 out0 := *abi.ConvertType(out[0], new(string)).(*string) 491 492 return out0, err 493 494 } 495 496 // PublicGetOwnerName is a free data retrieval call binding the contract method 0x081540b2. 497 // 498 // Solidity: function publicGetOwnerName() view returns(string) 499 func (_Read *ReadSession) PublicGetOwnerName() (string, error) { 500 return _Read.Contract.PublicGetOwnerName(&_Read.CallOpts) 501 } 502 503 // PublicGetOwnerName is a free data retrieval call binding the contract method 0x081540b2. 504 // 505 // Solidity: function publicGetOwnerName() view returns(string) 506 func (_Read *ReadCallerSession) PublicGetOwnerName() (string, error) { 507 return _Read.Contract.PublicGetOwnerName(&_Read.CallOpts) 508 } 509 510 // PublicGetToken is a free data retrieval call binding the contract method 0xb1ceff4e. 511 // 512 // Solidity: function publicGetToken(address a) view returns((string,uint256,address)) 513 func (_Read *ReadCaller) PublicGetToken(opts *bind.CallOpts, a common.Address) (Readtoken, error) { 514 var out []interface{} 515 err := _Read.contract.Call(opts, &out, "publicGetToken", a) 516 517 if err != nil { 518 return *new(Readtoken), err 519 } 520 521 out0 := *abi.ConvertType(out[0], new(Readtoken)).(*Readtoken) 522 523 return out0, err 524 525 } 526 527 // PublicGetToken is a free data retrieval call binding the contract method 0xb1ceff4e. 528 // 529 // Solidity: function publicGetToken(address a) view returns((string,uint256,address)) 530 func (_Read *ReadSession) PublicGetToken(a common.Address) (Readtoken, error) { 531 return _Read.Contract.PublicGetToken(&_Read.CallOpts, a) 532 } 533 534 // PublicGetToken is a free data retrieval call binding the contract method 0xb1ceff4e. 535 // 536 // Solidity: function publicGetToken(address a) view returns((string,uint256,address)) 537 func (_Read *ReadCallerSession) PublicGetToken(a common.Address) (Readtoken, error) { 538 return _Read.Contract.PublicGetToken(&_Read.CallOpts, a) 539 } 540 541 // PublicRead is a free data retrieval call binding the contract method 0xaf334757. 542 // 543 // Solidity: function publicRead() view returns(uint256) 544 func (_Read *ReadCaller) PublicRead(opts *bind.CallOpts) (*big.Int, error) { 545 var out []interface{} 546 err := _Read.contract.Call(opts, &out, "publicRead") 547 548 if err != nil { 549 return *new(*big.Int), err 550 } 551 552 out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) 553 554 return out0, err 555 556 } 557 558 // PublicRead is a free data retrieval call binding the contract method 0xaf334757. 559 // 560 // Solidity: function publicRead() view returns(uint256) 561 func (_Read *ReadSession) PublicRead() (*big.Int, error) { 562 return _Read.Contract.PublicRead(&_Read.CallOpts) 563 } 564 565 // PublicRead is a free data retrieval call binding the contract method 0xaf334757. 566 // 567 // Solidity: function publicRead() view returns(uint256) 568 func (_Read *ReadCallerSession) PublicRead() (*big.Int, error) { 569 return _Read.Contract.PublicRead(&_Read.CallOpts) 570 } 571 572 // PublicReadWParams is a free data retrieval call binding the contract method 0xbfa044ed. 573 // 574 // Solidity: function publicReadWParams(uint256 p) view returns(uint256) 575 func (_Read *ReadCaller) PublicReadWParams(opts *bind.CallOpts, p *big.Int) (*big.Int, error) { 576 var out []interface{} 577 err := _Read.contract.Call(opts, &out, "publicReadWParams", p) 578 579 if err != nil { 580 return *new(*big.Int), err 581 } 582 583 out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) 584 585 return out0, err 586 587 } 588 589 // PublicReadWParams is a free data retrieval call binding the contract method 0xbfa044ed. 590 // 591 // Solidity: function publicReadWParams(uint256 p) view returns(uint256) 592 func (_Read *ReadSession) PublicReadWParams(p *big.Int) (*big.Int, error) { 593 return _Read.Contract.PublicReadWParams(&_Read.CallOpts, p) 594 } 595 596 // PublicReadWParams is a free data retrieval call binding the contract method 0xbfa044ed. 597 // 598 // Solidity: function publicReadWParams(uint256 p) view returns(uint256) 599 func (_Read *ReadCallerSession) PublicReadWParams(p *big.Int) (*big.Int, error) { 600 return _Read.Contract.PublicReadWParams(&_Read.CallOpts, p) 601 } 602 603 // ExternalAddToken is a paid mutator transaction binding the contract method 0x9553400f. 604 // 605 // Solidity: function externalAddToken((string,uint256,address) t) returns() 606 func (_Read *ReadTransactor) ExternalAddToken(opts *bind.TransactOpts, t Readtoken) (*types.Transaction, error) { 607 return _Read.contract.Transact(opts, "externalAddToken", t) 608 } 609 610 // ExternalAddToken is a paid mutator transaction binding the contract method 0x9553400f. 611 // 612 // Solidity: function externalAddToken((string,uint256,address) t) returns() 613 func (_Read *ReadSession) ExternalAddToken(t Readtoken) (*types.Transaction, error) { 614 return _Read.Contract.ExternalAddToken(&_Read.TransactOpts, t) 615 } 616 617 // ExternalAddToken is a paid mutator transaction binding the contract method 0x9553400f. 618 // 619 // Solidity: function externalAddToken((string,uint256,address) t) returns() 620 func (_Read *ReadTransactorSession) ExternalAddToken(t Readtoken) (*types.Transaction, error) { 621 return _Read.Contract.ExternalAddToken(&_Read.TransactOpts, t) 622 } 623 624 // PublicAddToken is a paid mutator transaction binding the contract method 0x33eb6be8. 625 // 626 // Solidity: function publicAddToken((string,uint256,address) t) returns() 627 func (_Read *ReadTransactor) PublicAddToken(opts *bind.TransactOpts, t Readtoken) (*types.Transaction, error) { 628 return _Read.contract.Transact(opts, "publicAddToken", t) 629 } 630 631 // PublicAddToken is a paid mutator transaction binding the contract method 0x33eb6be8. 632 // 633 // Solidity: function publicAddToken((string,uint256,address) t) returns() 634 func (_Read *ReadSession) PublicAddToken(t Readtoken) (*types.Transaction, error) { 635 return _Read.Contract.PublicAddToken(&_Read.TransactOpts, t) 636 } 637 638 // PublicAddToken is a paid mutator transaction binding the contract method 0x33eb6be8. 639 // 640 // Solidity: function publicAddToken((string,uint256,address) t) returns() 641 func (_Read *ReadTransactorSession) PublicAddToken(t Readtoken) (*types.Transaction, error) { 642 return _Read.Contract.PublicAddToken(&_Read.TransactOpts, t) 643 }