github.com/0chain/gosdk@v1.17.11/znft/contracts/factorymoduleerc721pack/binding/factorymoduleerc721pack.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 binding 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 ) 30 31 // BindingMetaData contains all meta data concerning the Binding contract. 32 var BindingMetaData = &bind.MetaData{ 33 ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"factory_\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"random_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"name\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"max\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"batch\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"createToken\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", 34 } 35 36 // BindingABI is the input ABI used to generate the binding from. 37 // Deprecated: Use BindingMetaData.ABI instead. 38 var BindingABI = BindingMetaData.ABI 39 40 // Binding is an auto generated Go binding around an Ethereum contract. 41 type Binding struct { 42 BindingCaller // Read-only binding to the contract 43 BindingTransactor // Write-only binding to the contract 44 BindingFilterer // Log filterer for contract events 45 } 46 47 // BindingCaller is an auto generated read-only Go binding around an Ethereum contract. 48 type BindingCaller struct { 49 contract *bind.BoundContract // Generic contract wrapper for the low level calls 50 } 51 52 // BindingTransactor is an auto generated write-only Go binding around an Ethereum contract. 53 type BindingTransactor struct { 54 contract *bind.BoundContract // Generic contract wrapper for the low level calls 55 } 56 57 // BindingFilterer is an auto generated log filtering Go binding around an Ethereum contract events. 58 type BindingFilterer struct { 59 contract *bind.BoundContract // Generic contract wrapper for the low level calls 60 } 61 62 // BindingSession is an auto generated Go binding around an Ethereum contract, 63 // with pre-set call and transact options. 64 type BindingSession struct { 65 Contract *Binding // Generic contract binding to set the session for 66 CallOpts bind.CallOpts // Call options to use throughout this session 67 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 68 } 69 70 // BindingCallerSession is an auto generated read-only Go binding around an Ethereum contract, 71 // with pre-set call options. 72 type BindingCallerSession struct { 73 Contract *BindingCaller // Generic contract caller binding to set the session for 74 CallOpts bind.CallOpts // Call options to use throughout this session 75 } 76 77 // BindingTransactorSession is an auto generated write-only Go binding around an Ethereum contract, 78 // with pre-set transact options. 79 type BindingTransactorSession struct { 80 Contract *BindingTransactor // Generic contract transactor binding to set the session for 81 TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session 82 } 83 84 // BindingRaw is an auto generated low-level Go binding around an Ethereum contract. 85 type BindingRaw struct { 86 Contract *Binding // Generic contract binding to access the raw methods on 87 } 88 89 // BindingCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. 90 type BindingCallerRaw struct { 91 Contract *BindingCaller // Generic read-only contract binding to access the raw methods on 92 } 93 94 // BindingTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. 95 type BindingTransactorRaw struct { 96 Contract *BindingTransactor // Generic write-only contract binding to access the raw methods on 97 } 98 99 // NewBinding creates a new instance of Binding, bound to a specific deployed contract. 100 func NewBinding(address common.Address, backend bind.ContractBackend) (*Binding, error) { 101 contract, err := bindBinding(address, backend, backend, backend) 102 if err != nil { 103 return nil, err 104 } 105 return &Binding{BindingCaller: BindingCaller{contract: contract}, BindingTransactor: BindingTransactor{contract: contract}, BindingFilterer: BindingFilterer{contract: contract}}, nil 106 } 107 108 // NewBindingCaller creates a new read-only instance of Binding, bound to a specific deployed contract. 109 func NewBindingCaller(address common.Address, caller bind.ContractCaller) (*BindingCaller, error) { 110 contract, err := bindBinding(address, caller, nil, nil) 111 if err != nil { 112 return nil, err 113 } 114 return &BindingCaller{contract: contract}, nil 115 } 116 117 // NewBindingTransactor creates a new write-only instance of Binding, bound to a specific deployed contract. 118 func NewBindingTransactor(address common.Address, transactor bind.ContractTransactor) (*BindingTransactor, error) { 119 contract, err := bindBinding(address, nil, transactor, nil) 120 if err != nil { 121 return nil, err 122 } 123 return &BindingTransactor{contract: contract}, nil 124 } 125 126 // NewBindingFilterer creates a new log filterer instance of Binding, bound to a specific deployed contract. 127 func NewBindingFilterer(address common.Address, filterer bind.ContractFilterer) (*BindingFilterer, error) { 128 contract, err := bindBinding(address, nil, nil, filterer) 129 if err != nil { 130 return nil, err 131 } 132 return &BindingFilterer{contract: contract}, nil 133 } 134 135 // bindBinding binds a generic wrapper to an already deployed contract. 136 func bindBinding(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { 137 parsed, err := abi.JSON(strings.NewReader(BindingABI)) 138 if err != nil { 139 return nil, err 140 } 141 return bind.NewBoundContract(address, parsed, caller, transactor, filterer), nil 142 } 143 144 // Call invokes the (constant) contract method with params as input values and 145 // sets the output to result. The result type might be a single field for simple 146 // returns, a slice of interfaces for anonymous returns and a struct for named 147 // returns. 148 func (_Binding *BindingRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 149 return _Binding.Contract.BindingCaller.contract.Call(opts, result, method, params...) 150 } 151 152 // Transfer initiates a plain transaction to move funds to the contract, calling 153 // its default method if one is available. 154 func (_Binding *BindingRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 155 return _Binding.Contract.BindingTransactor.contract.Transfer(opts) 156 } 157 158 // Transact invokes the (paid) contract method with params as input values. 159 func (_Binding *BindingRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 160 return _Binding.Contract.BindingTransactor.contract.Transact(opts, method, params...) 161 } 162 163 // Call invokes the (constant) contract method with params as input values and 164 // sets the output to result. The result type might be a single field for simple 165 // returns, a slice of interfaces for anonymous returns and a struct for named 166 // returns. 167 func (_Binding *BindingCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { 168 return _Binding.Contract.contract.Call(opts, result, method, params...) 169 } 170 171 // Transfer initiates a plain transaction to move funds to the contract, calling 172 // its default method if one is available. 173 func (_Binding *BindingTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { 174 return _Binding.Contract.contract.Transfer(opts) 175 } 176 177 // Transact invokes the (paid) contract method with params as input values. 178 func (_Binding *BindingTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { 179 return _Binding.Contract.contract.Transact(opts, method, params...) 180 } 181 182 // CreateToken is a paid mutator transaction binding the contract method 0x3d774115. 183 // 184 // Solidity: function createToken(address owner, string name, string symbol, string uri, uint256 max, uint256 price, uint256 batch, bytes data) returns(address) 185 func (_Binding *BindingTransactor) CreateToken(opts *bind.TransactOpts, owner common.Address, name string, symbol string, uri string, max *big.Int, price *big.Int, batch *big.Int, data []byte) (*types.Transaction, error) { 186 return _Binding.contract.Transact(opts, "createToken", owner, name, symbol, uri, max, price, batch, data) 187 } 188 189 // CreateToken is a paid mutator transaction binding the contract method 0x3d774115. 190 // 191 // Solidity: function createToken(address owner, string name, string symbol, string uri, uint256 max, uint256 price, uint256 batch, bytes data) returns(address) 192 func (_Binding *BindingSession) CreateToken(owner common.Address, name string, symbol string, uri string, max *big.Int, price *big.Int, batch *big.Int, data []byte) (*types.Transaction, error) { 193 return _Binding.Contract.CreateToken(&_Binding.TransactOpts, owner, name, symbol, uri, max, price, batch, data) 194 } 195 196 // CreateToken is a paid mutator transaction binding the contract method 0x3d774115. 197 // 198 // Solidity: function createToken(address owner, string name, string symbol, string uri, uint256 max, uint256 price, uint256 batch, bytes data) returns(address) 199 func (_Binding *BindingTransactorSession) CreateToken(owner common.Address, name string, symbol string, uri string, max *big.Int, price *big.Int, batch *big.Int, data []byte) (*types.Transaction, error) { 200 return _Binding.Contract.CreateToken(&_Binding.TransactOpts, owner, name, symbol, uri, max, price, batch, data) 201 }