2070 lines
89 KiB
Go
2070 lines
89 KiB
Go
|
// Code generated - DO NOT EDIT.
|
||
|
// This file is a generated binding and any manual changes will be lost.
|
||
|
|
||
|
package erc721
|
||
|
|
||
|
import (
|
||
|
"errors"
|
||
|
"math/big"
|
||
|
"strings"
|
||
|
|
||
|
ethereum "github.com/ethereum/go-ethereum"
|
||
|
"github.com/ethereum/go-ethereum/accounts/abi"
|
||
|
"github.com/ethereum/go-ethereum/accounts/abi/bind"
|
||
|
"github.com/ethereum/go-ethereum/common"
|
||
|
"github.com/ethereum/go-ethereum/core/types"
|
||
|
"github.com/ethereum/go-ethereum/event"
|
||
|
)
|
||
|
|
||
|
// Reference imports to suppress errors if they are not otherwise used.
|
||
|
var (
|
||
|
_ = errors.New
|
||
|
_ = big.NewInt
|
||
|
_ = strings.NewReader
|
||
|
_ = ethereum.NotFound
|
||
|
_ = bind.Bind
|
||
|
_ = common.Big1
|
||
|
_ = types.BloomLookup
|
||
|
_ = event.NewSubscription
|
||
|
_ = abi.ConvertType
|
||
|
)
|
||
|
|
||
|
// Erc721MetaData contains all meta data concerning the Erc721 contract.
|
||
|
var Erc721MetaData = &bind.MetaData{
|
||
|
ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ERC20name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ERC20symbol_\",\"type\":\"string\"},{\"internalType\":\"uint256\",\"name\":\"ERC20amount\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"ERC20owneraddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"ancientnftname_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"ancientnftsymbol_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"babynftname_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"babynftsymbol_\",\"type\":\"string\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"baseExtension\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"baseURI_\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"id2\",\"type\":\"uint256\"}],\"name\":\"breed\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"id1\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"id2\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"id3\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"checkPause\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"checkancientnftaddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"checkbabynftaddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":
|
||
|
}
|
||
|
|
||
|
// Erc721ABI is the input ABI used to generate the binding from.
|
||
|
// Deprecated: Use Erc721MetaData.ABI instead.
|
||
|
var Erc721ABI = Erc721MetaData.ABI
|
||
|
|
||
|
// Erc721 is an auto generated Go binding around an Ethereum contract.
|
||
|
type Erc721 struct {
|
||
|
Erc721Caller // Read-only binding to the contract
|
||
|
Erc721Transactor // Write-only binding to the contract
|
||
|
Erc721Filterer // Log filterer for contract events
|
||
|
}
|
||
|
|
||
|
// Erc721Caller is an auto generated read-only Go binding around an Ethereum contract.
|
||
|
type Erc721Caller struct {
|
||
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
||
|
}
|
||
|
|
||
|
// Erc721Transactor is an auto generated write-only Go binding around an Ethereum contract.
|
||
|
type Erc721Transactor struct {
|
||
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
||
|
}
|
||
|
|
||
|
// Erc721Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
|
||
|
type Erc721Filterer struct {
|
||
|
contract *bind.BoundContract // Generic contract wrapper for the low level calls
|
||
|
}
|
||
|
|
||
|
// Erc721Session is an auto generated Go binding around an Ethereum contract,
|
||
|
// with pre-set call and transact options.
|
||
|
type Erc721Session struct {
|
||
|
Contract *Erc721 // Generic contract binding to set the session for
|
||
|
CallOpts bind.CallOpts // Call options to use throughout this session
|
||
|
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
|
||
|
}
|
||
|
|
||
|
// Erc721CallerSession is an auto generated read-only Go binding around an Ethereum contract,
|
||
|
// with pre-set call options.
|
||
|
type Erc721CallerSession struct {
|
||
|
Contract *Erc721Caller // Generic contract caller binding to set the session for
|
||
|
CallOpts bind.CallOpts // Call options to use throughout this session
|
||
|
}
|
||
|
|
||
|
// Erc721TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
|
||
|
// with pre-set transact options.
|
||
|
type Erc721TransactorSession struct {
|
||
|
Contract *Erc721Transactor // Generic contract transactor binding to set the session for
|
||
|
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
|
||
|
}
|
||
|
|
||
|
// Erc721Raw is an auto generated low-level Go binding around an Ethereum contract.
|
||
|
type Erc721Raw struct {
|
||
|
Contract *Erc721 // Generic contract binding to access the raw methods on
|
||
|
}
|
||
|
|
||
|
// Erc721CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
|
||
|
type Erc721CallerRaw struct {
|
||
|
Contract *Erc721Caller // Generic read-only contract binding to access the raw methods on
|
||
|
}
|
||
|
|
||
|
// Erc721TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
|
||
|
type Erc721TransactorRaw struct {
|
||
|
Contract *Erc721Transactor // Generic write-only contract binding to access the raw methods on
|
||
|
}
|
||
|
|
||
|
// NewErc721 creates a new instance of Erc721, bound to a specific deployed contract.
|
||
|
func NewErc721(address common.Address, backend bind.ContractBackend) (*Erc721, error) {
|
||
|
contract, err := bindErc721(address, backend, backend, backend)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &Erc721{Erc721Caller: Erc721Caller{contract: contract}, Erc721Transactor: Erc721Transactor{contract: contract}, Erc721Filterer: Erc721Filterer{contract: contract}}, nil
|
||
|
}
|
||
|
|
||
|
// NewErc721Caller creates a new read-only instance of Erc721, bound to a specific deployed contract.
|
||
|
func NewErc721Caller(address common.Address, caller bind.ContractCaller) (*Erc721Caller, error) {
|
||
|
contract, err := bindErc721(address, caller, nil, nil)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &Erc721Caller{contract: contract}, nil
|
||
|
}
|
||
|
|
||
|
// NewErc721Transactor creates a new write-only instance of Erc721, bound to a specific deployed contract.
|
||
|
func NewErc721Transactor(address common.Address, transactor bind.ContractTransactor) (*Erc721Transactor, error) {
|
||
|
contract, err := bindErc721(address, nil, transactor, nil)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &Erc721Transactor{contract: contract}, nil
|
||
|
}
|
||
|
|
||
|
// NewErc721Filterer creates a new log filterer instance of Erc721, bound to a specific deployed contract.
|
||
|
func NewErc721Filterer(address common.Address, filterer bind.ContractFilterer) (*Erc721Filterer, error) {
|
||
|
contract, err := bindErc721(address, nil, nil, filterer)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &Erc721Filterer{contract: contract}, nil
|
||
|
}
|
||
|
|
||
|
// bindErc721 binds a generic wrapper to an already deployed contract.
|
||
|
func bindErc721(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
|
||
|
parsed, err := Erc721MetaData.GetAbi()
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return bind.NewBoundContract(address, *parsed, caller, transactor, filterer), nil
|
||
|
}
|
||
|
|
||
|
// Call invokes the (constant) contract method with params as input values and
|
||
|
// sets the output to result. The result type might be a single field for simple
|
||
|
// returns, a slice of interfaces for anonymous returns and a struct for named
|
||
|
// returns.
|
||
|
func (_Erc721 *Erc721Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
|
||
|
return _Erc721.Contract.Erc721Caller.contract.Call(opts, result, method, params...)
|
||
|
}
|
||
|
|
||
|
// Transfer initiates a plain transaction to move funds to the contract, calling
|
||
|
// its default method if one is available.
|
||
|
func (_Erc721 *Erc721Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Erc721Transactor.contract.Transfer(opts)
|
||
|
}
|
||
|
|
||
|
// Transact invokes the (paid) contract method with params as input values.
|
||
|
func (_Erc721 *Erc721Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Erc721Transactor.contract.Transact(opts, method, params...)
|
||
|
}
|
||
|
|
||
|
// Call invokes the (constant) contract method with params as input values and
|
||
|
// sets the output to result. The result type might be a single field for simple
|
||
|
// returns, a slice of interfaces for anonymous returns and a struct for named
|
||
|
// returns.
|
||
|
func (_Erc721 *Erc721CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
|
||
|
return _Erc721.Contract.contract.Call(opts, result, method, params...)
|
||
|
}
|
||
|
|
||
|
// Transfer initiates a plain transaction to move funds to the contract, calling
|
||
|
// its default method if one is available.
|
||
|
func (_Erc721 *Erc721TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.contract.Transfer(opts)
|
||
|
}
|
||
|
|
||
|
// Transact invokes the (paid) contract method with params as input values.
|
||
|
func (_Erc721 *Erc721TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.contract.Transact(opts, method, params...)
|
||
|
}
|
||
|
|
||
|
// BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
|
||
|
//
|
||
|
// Solidity: function balanceOf(address owner) view returns(uint256)
|
||
|
func (_Erc721 *Erc721Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "balanceOf", owner)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
|
||
|
//
|
||
|
// Solidity: function balanceOf(address owner) view returns(uint256)
|
||
|
func (_Erc721 *Erc721Session) BalanceOf(owner common.Address) (*big.Int, error) {
|
||
|
return _Erc721.Contract.BalanceOf(&_Erc721.CallOpts, owner)
|
||
|
}
|
||
|
|
||
|
// BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
|
||
|
//
|
||
|
// Solidity: function balanceOf(address owner) view returns(uint256)
|
||
|
func (_Erc721 *Erc721CallerSession) BalanceOf(owner common.Address) (*big.Int, error) {
|
||
|
return _Erc721.Contract.BalanceOf(&_Erc721.CallOpts, owner)
|
||
|
}
|
||
|
|
||
|
// BaseExtension is a free data retrieval call binding the contract method 0xc6682862.
|
||
|
//
|
||
|
// Solidity: function baseExtension() view returns(string)
|
||
|
func (_Erc721 *Erc721Caller) BaseExtension(opts *bind.CallOpts) (string, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "baseExtension")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(string), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(string)).(*string)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// BaseExtension is a free data retrieval call binding the contract method 0xc6682862.
|
||
|
//
|
||
|
// Solidity: function baseExtension() view returns(string)
|
||
|
func (_Erc721 *Erc721Session) BaseExtension() (string, error) {
|
||
|
return _Erc721.Contract.BaseExtension(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// BaseExtension is a free data retrieval call binding the contract method 0xc6682862.
|
||
|
//
|
||
|
// Solidity: function baseExtension() view returns(string)
|
||
|
func (_Erc721 *Erc721CallerSession) BaseExtension() (string, error) {
|
||
|
return _Erc721.Contract.BaseExtension(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// BaseURI is a free data retrieval call binding the contract method 0xf259a29e.
|
||
|
//
|
||
|
// Solidity: function baseURI_() view returns(string)
|
||
|
func (_Erc721 *Erc721Caller) BaseURI(opts *bind.CallOpts) (string, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "baseURI_")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(string), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(string)).(*string)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// BaseURI is a free data retrieval call binding the contract method 0xf259a29e.
|
||
|
//
|
||
|
// Solidity: function baseURI_() view returns(string)
|
||
|
func (_Erc721 *Erc721Session) BaseURI() (string, error) {
|
||
|
return _Erc721.Contract.BaseURI(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// BaseURI is a free data retrieval call binding the contract method 0xf259a29e.
|
||
|
//
|
||
|
// Solidity: function baseURI_() view returns(string)
|
||
|
func (_Erc721 *Erc721CallerSession) BaseURI() (string, error) {
|
||
|
return _Erc721.Contract.BaseURI(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// CheckPause is a free data retrieval call binding the contract method 0xa0b9f0e1.
|
||
|
//
|
||
|
// Solidity: function checkPause() view returns(bool)
|
||
|
func (_Erc721 *Erc721Caller) CheckPause(opts *bind.CallOpts) (bool, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "checkPause")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(bool), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// CheckPause is a free data retrieval call binding the contract method 0xa0b9f0e1.
|
||
|
//
|
||
|
// Solidity: function checkPause() view returns(bool)
|
||
|
func (_Erc721 *Erc721Session) CheckPause() (bool, error) {
|
||
|
return _Erc721.Contract.CheckPause(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// CheckPause is a free data retrieval call binding the contract method 0xa0b9f0e1.
|
||
|
//
|
||
|
// Solidity: function checkPause() view returns(bool)
|
||
|
func (_Erc721 *Erc721CallerSession) CheckPause() (bool, error) {
|
||
|
return _Erc721.Contract.CheckPause(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Checkancientnftaddress is a free data retrieval call binding the contract method 0xe2d358ac.
|
||
|
//
|
||
|
// Solidity: function checkancientnftaddress() view returns(address)
|
||
|
func (_Erc721 *Erc721Caller) Checkancientnftaddress(opts *bind.CallOpts) (common.Address, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "checkancientnftaddress")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(common.Address), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// Checkancientnftaddress is a free data retrieval call binding the contract method 0xe2d358ac.
|
||
|
//
|
||
|
// Solidity: function checkancientnftaddress() view returns(address)
|
||
|
func (_Erc721 *Erc721Session) Checkancientnftaddress() (common.Address, error) {
|
||
|
return _Erc721.Contract.Checkancientnftaddress(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Checkancientnftaddress is a free data retrieval call binding the contract method 0xe2d358ac.
|
||
|
//
|
||
|
// Solidity: function checkancientnftaddress() view returns(address)
|
||
|
func (_Erc721 *Erc721CallerSession) Checkancientnftaddress() (common.Address, error) {
|
||
|
return _Erc721.Contract.Checkancientnftaddress(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Checkbabynftaddress is a free data retrieval call binding the contract method 0x374fdb87.
|
||
|
//
|
||
|
// Solidity: function checkbabynftaddress() view returns(address)
|
||
|
func (_Erc721 *Erc721Caller) Checkbabynftaddress(opts *bind.CallOpts) (common.Address, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "checkbabynftaddress")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(common.Address), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// Checkbabynftaddress is a free data retrieval call binding the contract method 0x374fdb87.
|
||
|
//
|
||
|
// Solidity: function checkbabynftaddress() view returns(address)
|
||
|
func (_Erc721 *Erc721Session) Checkbabynftaddress() (common.Address, error) {
|
||
|
return _Erc721.Contract.Checkbabynftaddress(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Checkbabynftaddress is a free data retrieval call binding the contract method 0x374fdb87.
|
||
|
//
|
||
|
// Solidity: function checkbabynftaddress() view returns(address)
|
||
|
func (_Erc721 *Erc721CallerSession) Checkbabynftaddress() (common.Address, error) {
|
||
|
return _Erc721.Contract.Checkbabynftaddress(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Checkdragonnotbreeded is a free data retrieval call binding the contract method 0xf6368b83.
|
||
|
//
|
||
|
// Solidity: function checkdragonnotbreeded(address add) view returns(uint256[])
|
||
|
func (_Erc721 *Erc721Caller) Checkdragonnotbreeded(opts *bind.CallOpts, add common.Address) ([]*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "checkdragonnotbreeded", add)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new([]*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// Checkdragonnotbreeded is a free data retrieval call binding the contract method 0xf6368b83.
|
||
|
//
|
||
|
// Solidity: function checkdragonnotbreeded(address add) view returns(uint256[])
|
||
|
func (_Erc721 *Erc721Session) Checkdragonnotbreeded(add common.Address) ([]*big.Int, error) {
|
||
|
return _Erc721.Contract.Checkdragonnotbreeded(&_Erc721.CallOpts, add)
|
||
|
}
|
||
|
|
||
|
// Checkdragonnotbreeded is a free data retrieval call binding the contract method 0xf6368b83.
|
||
|
//
|
||
|
// Solidity: function checkdragonnotbreeded(address add) view returns(uint256[])
|
||
|
func (_Erc721 *Erc721CallerSession) Checkdragonnotbreeded(add common.Address) ([]*big.Int, error) {
|
||
|
return _Erc721.Contract.Checkdragonnotbreeded(&_Erc721.CallOpts, add)
|
||
|
}
|
||
|
|
||
|
// Checkerc20address is a free data retrieval call binding the contract method 0xbe597c3e.
|
||
|
//
|
||
|
// Solidity: function checkerc20address() view returns(address)
|
||
|
func (_Erc721 *Erc721Caller) Checkerc20address(opts *bind.CallOpts) (common.Address, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "checkerc20address")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(common.Address), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// Checkerc20address is a free data retrieval call binding the contract method 0xbe597c3e.
|
||
|
//
|
||
|
// Solidity: function checkerc20address() view returns(address)
|
||
|
func (_Erc721 *Erc721Session) Checkerc20address() (common.Address, error) {
|
||
|
return _Erc721.Contract.Checkerc20address(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Checkerc20address is a free data retrieval call binding the contract method 0xbe597c3e.
|
||
|
//
|
||
|
// Solidity: function checkerc20address() view returns(address)
|
||
|
func (_Erc721 *Erc721CallerSession) Checkerc20address() (common.Address, error) {
|
||
|
return _Erc721.Contract.Checkerc20address(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Checkrewardbal is a free data retrieval call binding the contract method 0x4e157569.
|
||
|
//
|
||
|
// Solidity: function checkrewardbal() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Caller) Checkrewardbal(opts *bind.CallOpts) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "checkrewardbal")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// Checkrewardbal is a free data retrieval call binding the contract method 0x4e157569.
|
||
|
//
|
||
|
// Solidity: function checkrewardbal() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Session) Checkrewardbal() (*big.Int, error) {
|
||
|
return _Erc721.Contract.Checkrewardbal(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Checkrewardbal is a free data retrieval call binding the contract method 0x4e157569.
|
||
|
//
|
||
|
// Solidity: function checkrewardbal() view returns(uint256)
|
||
|
func (_Erc721 *Erc721CallerSession) Checkrewardbal() (*big.Int, error) {
|
||
|
return _Erc721.Contract.Checkrewardbal(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Checkrewardforancientbal is a free data retrieval call binding the contract method 0x8894038d.
|
||
|
//
|
||
|
// Solidity: function checkrewardforancientbal() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Caller) Checkrewardforancientbal(opts *bind.CallOpts) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "checkrewardforancientbal")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// Checkrewardforancientbal is a free data retrieval call binding the contract method 0x8894038d.
|
||
|
//
|
||
|
// Solidity: function checkrewardforancientbal() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Session) Checkrewardforancientbal() (*big.Int, error) {
|
||
|
return _Erc721.Contract.Checkrewardforancientbal(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Checkrewardforancientbal is a free data retrieval call binding the contract method 0x8894038d.
|
||
|
//
|
||
|
// Solidity: function checkrewardforancientbal() view returns(uint256)
|
||
|
func (_Erc721 *Erc721CallerSession) Checkrewardforancientbal() (*big.Int, error) {
|
||
|
return _Erc721.Contract.Checkrewardforancientbal(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Checkrewardforbabybal is a free data retrieval call binding the contract method 0x73508aec.
|
||
|
//
|
||
|
// Solidity: function checkrewardforbabybal() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Caller) Checkrewardforbabybal(opts *bind.CallOpts) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "checkrewardforbabybal")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// Checkrewardforbabybal is a free data retrieval call binding the contract method 0x73508aec.
|
||
|
//
|
||
|
// Solidity: function checkrewardforbabybal() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Session) Checkrewardforbabybal() (*big.Int, error) {
|
||
|
return _Erc721.Contract.Checkrewardforbabybal(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Checkrewardforbabybal is a free data retrieval call binding the contract method 0x73508aec.
|
||
|
//
|
||
|
// Solidity: function checkrewardforbabybal() view returns(uint256)
|
||
|
func (_Erc721 *Erc721CallerSession) Checkrewardforbabybal() (*big.Int, error) {
|
||
|
return _Erc721.Contract.Checkrewardforbabybal(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Cost is a free data retrieval call binding the contract method 0x13faede6.
|
||
|
//
|
||
|
// Solidity: function cost() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Caller) Cost(opts *bind.CallOpts) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "cost")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// Cost is a free data retrieval call binding the contract method 0x13faede6.
|
||
|
//
|
||
|
// Solidity: function cost() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Session) Cost() (*big.Int, error) {
|
||
|
return _Erc721.Contract.Cost(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Cost is a free data retrieval call binding the contract method 0x13faede6.
|
||
|
//
|
||
|
// Solidity: function cost() view returns(uint256)
|
||
|
func (_Erc721 *Erc721CallerSession) Cost() (*big.Int, error) {
|
||
|
return _Erc721.Contract.Cost(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// GetApproved is a free data retrieval call binding the contract method 0x081812fc.
|
||
|
//
|
||
|
// Solidity: function getApproved(uint256 tokenId) view returns(address)
|
||
|
func (_Erc721 *Erc721Caller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "getApproved", tokenId)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(common.Address), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// GetApproved is a free data retrieval call binding the contract method 0x081812fc.
|
||
|
//
|
||
|
// Solidity: function getApproved(uint256 tokenId) view returns(address)
|
||
|
func (_Erc721 *Erc721Session) GetApproved(tokenId *big.Int) (common.Address, error) {
|
||
|
return _Erc721.Contract.GetApproved(&_Erc721.CallOpts, tokenId)
|
||
|
}
|
||
|
|
||
|
// GetApproved is a free data retrieval call binding the contract method 0x081812fc.
|
||
|
//
|
||
|
// Solidity: function getApproved(uint256 tokenId) view returns(address)
|
||
|
func (_Erc721 *Erc721CallerSession) GetApproved(tokenId *big.Int) (common.Address, error) {
|
||
|
return _Erc721.Contract.GetApproved(&_Erc721.CallOpts, tokenId)
|
||
|
}
|
||
|
|
||
|
// IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
|
||
|
//
|
||
|
// Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
|
||
|
func (_Erc721 *Erc721Caller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "isApprovedForAll", owner, operator)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(bool), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
|
||
|
//
|
||
|
// Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
|
||
|
func (_Erc721 *Erc721Session) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error) {
|
||
|
return _Erc721.Contract.IsApprovedForAll(&_Erc721.CallOpts, owner, operator)
|
||
|
}
|
||
|
|
||
|
// IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5.
|
||
|
//
|
||
|
// Solidity: function isApprovedForAll(address owner, address operator) view returns(bool)
|
||
|
func (_Erc721 *Erc721CallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error) {
|
||
|
return _Erc721.Contract.IsApprovedForAll(&_Erc721.CallOpts, owner, operator)
|
||
|
}
|
||
|
|
||
|
// MaxMintAmount is a free data retrieval call binding the contract method 0x239c70ae.
|
||
|
//
|
||
|
// Solidity: function maxMintAmount() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Caller) MaxMintAmount(opts *bind.CallOpts) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "maxMintAmount")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// MaxMintAmount is a free data retrieval call binding the contract method 0x239c70ae.
|
||
|
//
|
||
|
// Solidity: function maxMintAmount() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Session) MaxMintAmount() (*big.Int, error) {
|
||
|
return _Erc721.Contract.MaxMintAmount(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// MaxMintAmount is a free data retrieval call binding the contract method 0x239c70ae.
|
||
|
//
|
||
|
// Solidity: function maxMintAmount() view returns(uint256)
|
||
|
func (_Erc721 *Erc721CallerSession) MaxMintAmount() (*big.Int, error) {
|
||
|
return _Erc721.Contract.MaxMintAmount(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01.
|
||
|
//
|
||
|
// Solidity: function maxSupply() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Caller) MaxSupply(opts *bind.CallOpts) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "maxSupply")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01.
|
||
|
//
|
||
|
// Solidity: function maxSupply() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Session) MaxSupply() (*big.Int, error) {
|
||
|
return _Erc721.Contract.MaxSupply(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// MaxSupply is a free data retrieval call binding the contract method 0xd5abeb01.
|
||
|
//
|
||
|
// Solidity: function maxSupply() view returns(uint256)
|
||
|
func (_Erc721 *Erc721CallerSession) MaxSupply() (*big.Int, error) {
|
||
|
return _Erc721.Contract.MaxSupply(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Name is a free data retrieval call binding the contract method 0x06fdde03.
|
||
|
//
|
||
|
// Solidity: function name() view returns(string)
|
||
|
func (_Erc721 *Erc721Caller) Name(opts *bind.CallOpts) (string, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "name")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(string), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(string)).(*string)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// Name is a free data retrieval call binding the contract method 0x06fdde03.
|
||
|
//
|
||
|
// Solidity: function name() view returns(string)
|
||
|
func (_Erc721 *Erc721Session) Name() (string, error) {
|
||
|
return _Erc721.Contract.Name(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Name is a free data retrieval call binding the contract method 0x06fdde03.
|
||
|
//
|
||
|
// Solidity: function name() view returns(string)
|
||
|
func (_Erc721 *Erc721CallerSession) Name() (string, error) {
|
||
|
return _Erc721.Contract.Name(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
|
||
|
//
|
||
|
// Solidity: function owner() view returns(address)
|
||
|
func (_Erc721 *Erc721Caller) Owner(opts *bind.CallOpts) (common.Address, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "owner")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(common.Address), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
|
||
|
//
|
||
|
// Solidity: function owner() view returns(address)
|
||
|
func (_Erc721 *Erc721Session) Owner() (common.Address, error) {
|
||
|
return _Erc721.Contract.Owner(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
|
||
|
//
|
||
|
// Solidity: function owner() view returns(address)
|
||
|
func (_Erc721 *Erc721CallerSession) Owner() (common.Address, error) {
|
||
|
return _Erc721.Contract.Owner(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
|
||
|
//
|
||
|
// Solidity: function ownerOf(uint256 tokenId) view returns(address)
|
||
|
func (_Erc721 *Erc721Caller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "ownerOf", tokenId)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(common.Address), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
|
||
|
//
|
||
|
// Solidity: function ownerOf(uint256 tokenId) view returns(address)
|
||
|
func (_Erc721 *Erc721Session) OwnerOf(tokenId *big.Int) (common.Address, error) {
|
||
|
return _Erc721.Contract.OwnerOf(&_Erc721.CallOpts, tokenId)
|
||
|
}
|
||
|
|
||
|
// OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
|
||
|
//
|
||
|
// Solidity: function ownerOf(uint256 tokenId) view returns(address)
|
||
|
func (_Erc721 *Erc721CallerSession) OwnerOf(tokenId *big.Int) (common.Address, error) {
|
||
|
return _Erc721.Contract.OwnerOf(&_Erc721.CallOpts, tokenId)
|
||
|
}
|
||
|
|
||
|
// Paused is a free data retrieval call binding the contract method 0x5c975abb.
|
||
|
//
|
||
|
// Solidity: function paused() view returns(bool)
|
||
|
func (_Erc721 *Erc721Caller) Paused(opts *bind.CallOpts) (bool, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "paused")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(bool), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// Paused is a free data retrieval call binding the contract method 0x5c975abb.
|
||
|
//
|
||
|
// Solidity: function paused() view returns(bool)
|
||
|
func (_Erc721 *Erc721Session) Paused() (bool, error) {
|
||
|
return _Erc721.Contract.Paused(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Paused is a free data retrieval call binding the contract method 0x5c975abb.
|
||
|
//
|
||
|
// Solidity: function paused() view returns(bool)
|
||
|
func (_Erc721 *Erc721CallerSession) Paused() (bool, error) {
|
||
|
return _Erc721.Contract.Paused(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
|
||
|
//
|
||
|
// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
|
||
|
func (_Erc721 *Erc721Caller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "supportsInterface", interfaceId)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(bool), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
|
||
|
//
|
||
|
// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
|
||
|
func (_Erc721 *Erc721Session) SupportsInterface(interfaceId [4]byte) (bool, error) {
|
||
|
return _Erc721.Contract.SupportsInterface(&_Erc721.CallOpts, interfaceId)
|
||
|
}
|
||
|
|
||
|
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7.
|
||
|
//
|
||
|
// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool)
|
||
|
func (_Erc721 *Erc721CallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) {
|
||
|
return _Erc721.Contract.SupportsInterface(&_Erc721.CallOpts, interfaceId)
|
||
|
}
|
||
|
|
||
|
// Symbol is a free data retrieval call binding the contract method 0x95d89b41.
|
||
|
//
|
||
|
// Solidity: function symbol() view returns(string)
|
||
|
func (_Erc721 *Erc721Caller) Symbol(opts *bind.CallOpts) (string, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "symbol")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(string), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(string)).(*string)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// Symbol is a free data retrieval call binding the contract method 0x95d89b41.
|
||
|
//
|
||
|
// Solidity: function symbol() view returns(string)
|
||
|
func (_Erc721 *Erc721Session) Symbol() (string, error) {
|
||
|
return _Erc721.Contract.Symbol(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// Symbol is a free data retrieval call binding the contract method 0x95d89b41.
|
||
|
//
|
||
|
// Solidity: function symbol() view returns(string)
|
||
|
func (_Erc721 *Erc721CallerSession) Symbol() (string, error) {
|
||
|
return _Erc721.Contract.Symbol(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.
|
||
|
//
|
||
|
// Solidity: function tokenByIndex(uint256 index) view returns(uint256)
|
||
|
func (_Erc721 *Erc721Caller) TokenByIndex(opts *bind.CallOpts, index *big.Int) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "tokenByIndex", index)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.
|
||
|
//
|
||
|
// Solidity: function tokenByIndex(uint256 index) view returns(uint256)
|
||
|
func (_Erc721 *Erc721Session) TokenByIndex(index *big.Int) (*big.Int, error) {
|
||
|
return _Erc721.Contract.TokenByIndex(&_Erc721.CallOpts, index)
|
||
|
}
|
||
|
|
||
|
// TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7.
|
||
|
//
|
||
|
// Solidity: function tokenByIndex(uint256 index) view returns(uint256)
|
||
|
func (_Erc721 *Erc721CallerSession) TokenByIndex(index *big.Int) (*big.Int, error) {
|
||
|
return _Erc721.Contract.TokenByIndex(&_Erc721.CallOpts, index)
|
||
|
}
|
||
|
|
||
|
// TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.
|
||
|
//
|
||
|
// Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)
|
||
|
func (_Erc721 *Erc721Caller) TokenOfOwnerByIndex(opts *bind.CallOpts, owner common.Address, index *big.Int) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "tokenOfOwnerByIndex", owner, index)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.
|
||
|
//
|
||
|
// Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)
|
||
|
func (_Erc721 *Erc721Session) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error) {
|
||
|
return _Erc721.Contract.TokenOfOwnerByIndex(&_Erc721.CallOpts, owner, index)
|
||
|
}
|
||
|
|
||
|
// TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59.
|
||
|
//
|
||
|
// Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256)
|
||
|
func (_Erc721 *Erc721CallerSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error) {
|
||
|
return _Erc721.Contract.TokenOfOwnerByIndex(&_Erc721.CallOpts, owner, index)
|
||
|
}
|
||
|
|
||
|
// TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.
|
||
|
//
|
||
|
// Solidity: function tokenURI(uint256 tokenId) view returns(string)
|
||
|
func (_Erc721 *Erc721Caller) TokenURI(opts *bind.CallOpts, tokenId *big.Int) (string, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "tokenURI", tokenId)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(string), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(string)).(*string)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.
|
||
|
//
|
||
|
// Solidity: function tokenURI(uint256 tokenId) view returns(string)
|
||
|
func (_Erc721 *Erc721Session) TokenURI(tokenId *big.Int) (string, error) {
|
||
|
return _Erc721.Contract.TokenURI(&_Erc721.CallOpts, tokenId)
|
||
|
}
|
||
|
|
||
|
// TokenURI is a free data retrieval call binding the contract method 0xc87b56dd.
|
||
|
//
|
||
|
// Solidity: function tokenURI(uint256 tokenId) view returns(string)
|
||
|
func (_Erc721 *Erc721CallerSession) TokenURI(tokenId *big.Int) (string, error) {
|
||
|
return _Erc721.Contract.TokenURI(&_Erc721.CallOpts, tokenId)
|
||
|
}
|
||
|
|
||
|
// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
|
||
|
//
|
||
|
// Solidity: function totalSupply() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Caller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "totalSupply")
|
||
|
|
||
|
if err != nil {
|
||
|
return *new(*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
|
||
|
//
|
||
|
// Solidity: function totalSupply() view returns(uint256)
|
||
|
func (_Erc721 *Erc721Session) TotalSupply() (*big.Int, error) {
|
||
|
return _Erc721.Contract.TotalSupply(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.
|
||
|
//
|
||
|
// Solidity: function totalSupply() view returns(uint256)
|
||
|
func (_Erc721 *Erc721CallerSession) TotalSupply() (*big.Int, error) {
|
||
|
return _Erc721.Contract.TotalSupply(&_Erc721.CallOpts)
|
||
|
}
|
||
|
|
||
|
// WalletofNFT is a free data retrieval call binding the contract method 0x2d38f11e.
|
||
|
//
|
||
|
// Solidity: function walletofNFT(address _owner) view returns(uint256[])
|
||
|
func (_Erc721 *Erc721Caller) WalletofNFT(opts *bind.CallOpts, _owner common.Address) ([]*big.Int, error) {
|
||
|
var out []interface{}
|
||
|
err := _Erc721.contract.Call(opts, &out, "walletofNFT", _owner)
|
||
|
|
||
|
if err != nil {
|
||
|
return *new([]*big.Int), err
|
||
|
}
|
||
|
|
||
|
out0 := *abi.ConvertType(out[0], new([]*big.Int)).(*[]*big.Int)
|
||
|
|
||
|
return out0, err
|
||
|
|
||
|
}
|
||
|
|
||
|
// WalletofNFT is a free data retrieval call binding the contract method 0x2d38f11e.
|
||
|
//
|
||
|
// Solidity: function walletofNFT(address _owner) view returns(uint256[])
|
||
|
func (_Erc721 *Erc721Session) WalletofNFT(_owner common.Address) ([]*big.Int, error) {
|
||
|
return _Erc721.Contract.WalletofNFT(&_Erc721.CallOpts, _owner)
|
||
|
}
|
||
|
|
||
|
// WalletofNFT is a free data retrieval call binding the contract method 0x2d38f11e.
|
||
|
//
|
||
|
// Solidity: function walletofNFT(address _owner) view returns(uint256[])
|
||
|
func (_Erc721 *Erc721CallerSession) WalletofNFT(_owner common.Address) ([]*big.Int, error) {
|
||
|
return _Erc721.Contract.WalletofNFT(&_Erc721.CallOpts, _owner)
|
||
|
}
|
||
|
|
||
|
// Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
|
||
|
//
|
||
|
// Solidity: function approve(address to, uint256 tokenId) returns()
|
||
|
func (_Erc721 *Erc721Transactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "approve", to, tokenId)
|
||
|
}
|
||
|
|
||
|
// Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
|
||
|
//
|
||
|
// Solidity: function approve(address to, uint256 tokenId) returns()
|
||
|
func (_Erc721 *Erc721Session) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Approve(&_Erc721.TransactOpts, to, tokenId)
|
||
|
}
|
||
|
|
||
|
// Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
|
||
|
//
|
||
|
// Solidity: function approve(address to, uint256 tokenId) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Approve(&_Erc721.TransactOpts, to, tokenId)
|
||
|
}
|
||
|
|
||
|
// Breed is a paid mutator transaction binding the contract method 0xd9ecad7b.
|
||
|
//
|
||
|
// Solidity: function breed(uint256 id1, uint256 id2) returns()
|
||
|
func (_Erc721 *Erc721Transactor) Breed(opts *bind.TransactOpts, id1 *big.Int, id2 *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "breed", id1, id2)
|
||
|
}
|
||
|
|
||
|
// Breed is a paid mutator transaction binding the contract method 0xd9ecad7b.
|
||
|
//
|
||
|
// Solidity: function breed(uint256 id1, uint256 id2) returns()
|
||
|
func (_Erc721 *Erc721Session) Breed(id1 *big.Int, id2 *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Breed(&_Erc721.TransactOpts, id1, id2)
|
||
|
}
|
||
|
|
||
|
// Breed is a paid mutator transaction binding the contract method 0xd9ecad7b.
|
||
|
//
|
||
|
// Solidity: function breed(uint256 id1, uint256 id2) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) Breed(id1 *big.Int, id2 *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Breed(&_Erc721.TransactOpts, id1, id2)
|
||
|
}
|
||
|
|
||
|
// Burn is a paid mutator transaction binding the contract method 0x05a10028.
|
||
|
//
|
||
|
// Solidity: function burn(uint256 id1, uint256 id2, uint256 id3) returns()
|
||
|
func (_Erc721 *Erc721Transactor) Burn(opts *bind.TransactOpts, id1 *big.Int, id2 *big.Int, id3 *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "burn", id1, id2, id3)
|
||
|
}
|
||
|
|
||
|
// Burn is a paid mutator transaction binding the contract method 0x05a10028.
|
||
|
//
|
||
|
// Solidity: function burn(uint256 id1, uint256 id2, uint256 id3) returns()
|
||
|
func (_Erc721 *Erc721Session) Burn(id1 *big.Int, id2 *big.Int, id3 *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Burn(&_Erc721.TransactOpts, id1, id2, id3)
|
||
|
}
|
||
|
|
||
|
// Burn is a paid mutator transaction binding the contract method 0x05a10028.
|
||
|
//
|
||
|
// Solidity: function burn(uint256 id1, uint256 id2, uint256 id3) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) Burn(id1 *big.Int, id2 *big.Int, id3 *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Burn(&_Erc721.TransactOpts, id1, id2, id3)
|
||
|
}
|
||
|
|
||
|
// Claim is a paid mutator transaction binding the contract method 0x4e71d92d.
|
||
|
//
|
||
|
// Solidity: function claim() returns()
|
||
|
func (_Erc721 *Erc721Transactor) Claim(opts *bind.TransactOpts) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "claim")
|
||
|
}
|
||
|
|
||
|
// Claim is a paid mutator transaction binding the contract method 0x4e71d92d.
|
||
|
//
|
||
|
// Solidity: function claim() returns()
|
||
|
func (_Erc721 *Erc721Session) Claim() (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Claim(&_Erc721.TransactOpts)
|
||
|
}
|
||
|
|
||
|
// Claim is a paid mutator transaction binding the contract method 0x4e71d92d.
|
||
|
//
|
||
|
// Solidity: function claim() returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) Claim() (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Claim(&_Erc721.TransactOpts)
|
||
|
}
|
||
|
|
||
|
// Claimreward is a paid mutator transaction binding the contract method 0xbb6bf51d.
|
||
|
//
|
||
|
// Solidity: function claimreward() returns()
|
||
|
func (_Erc721 *Erc721Transactor) Claimreward(opts *bind.TransactOpts) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "claimreward")
|
||
|
}
|
||
|
|
||
|
// Claimreward is a paid mutator transaction binding the contract method 0xbb6bf51d.
|
||
|
//
|
||
|
// Solidity: function claimreward() returns()
|
||
|
func (_Erc721 *Erc721Session) Claimreward() (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Claimreward(&_Erc721.TransactOpts)
|
||
|
}
|
||
|
|
||
|
// Claimreward is a paid mutator transaction binding the contract method 0xbb6bf51d.
|
||
|
//
|
||
|
// Solidity: function claimreward() returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) Claimreward() (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Claimreward(&_Erc721.TransactOpts)
|
||
|
}
|
||
|
|
||
|
// Mint is a paid mutator transaction binding the contract method 0x40c10f19.
|
||
|
//
|
||
|
// Solidity: function mint(address _to, uint256 _mintAmount) payable returns()
|
||
|
func (_Erc721 *Erc721Transactor) Mint(opts *bind.TransactOpts, _to common.Address, _mintAmount *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "mint", _to, _mintAmount)
|
||
|
}
|
||
|
|
||
|
// Mint is a paid mutator transaction binding the contract method 0x40c10f19.
|
||
|
//
|
||
|
// Solidity: function mint(address _to, uint256 _mintAmount) payable returns()
|
||
|
func (_Erc721 *Erc721Session) Mint(_to common.Address, _mintAmount *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Mint(&_Erc721.TransactOpts, _to, _mintAmount)
|
||
|
}
|
||
|
|
||
|
// Mint is a paid mutator transaction binding the contract method 0x40c10f19.
|
||
|
//
|
||
|
// Solidity: function mint(address _to, uint256 _mintAmount) payable returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) Mint(_to common.Address, _mintAmount *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Mint(&_Erc721.TransactOpts, _to, _mintAmount)
|
||
|
}
|
||
|
|
||
|
// Pause is a paid mutator transaction binding the contract method 0x8456cb59.
|
||
|
//
|
||
|
// Solidity: function pause() returns()
|
||
|
func (_Erc721 *Erc721Transactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "pause")
|
||
|
}
|
||
|
|
||
|
// Pause is a paid mutator transaction binding the contract method 0x8456cb59.
|
||
|
//
|
||
|
// Solidity: function pause() returns()
|
||
|
func (_Erc721 *Erc721Session) Pause() (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Pause(&_Erc721.TransactOpts)
|
||
|
}
|
||
|
|
||
|
// Pause is a paid mutator transaction binding the contract method 0x8456cb59.
|
||
|
//
|
||
|
// Solidity: function pause() returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) Pause() (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Pause(&_Erc721.TransactOpts)
|
||
|
}
|
||
|
|
||
|
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
|
||
|
//
|
||
|
// Solidity: function renounceOwnership() returns()
|
||
|
func (_Erc721 *Erc721Transactor) RenounceOwnership(opts *bind.TransactOpts) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "renounceOwnership")
|
||
|
}
|
||
|
|
||
|
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
|
||
|
//
|
||
|
// Solidity: function renounceOwnership() returns()
|
||
|
func (_Erc721 *Erc721Session) RenounceOwnership() (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.RenounceOwnership(&_Erc721.TransactOpts)
|
||
|
}
|
||
|
|
||
|
// RenounceOwnership is a paid mutator transaction binding the contract method 0x715018a6.
|
||
|
//
|
||
|
// Solidity: function renounceOwnership() returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) RenounceOwnership() (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.RenounceOwnership(&_Erc721.TransactOpts)
|
||
|
}
|
||
|
|
||
|
// SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.
|
||
|
//
|
||
|
// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()
|
||
|
func (_Erc721 *Erc721Transactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "safeTransferFrom", from, to, tokenId)
|
||
|
}
|
||
|
|
||
|
// SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.
|
||
|
//
|
||
|
// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()
|
||
|
func (_Erc721 *Erc721Session) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SafeTransferFrom(&_Erc721.TransactOpts, from, to, tokenId)
|
||
|
}
|
||
|
|
||
|
// SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e.
|
||
|
//
|
||
|
// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SafeTransferFrom(&_Erc721.TransactOpts, from, to, tokenId)
|
||
|
}
|
||
|
|
||
|
// SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.
|
||
|
//
|
||
|
// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) returns()
|
||
|
func (_Erc721 *Erc721Transactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "safeTransferFrom0", from, to, tokenId, _data)
|
||
|
}
|
||
|
|
||
|
// SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.
|
||
|
//
|
||
|
// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) returns()
|
||
|
func (_Erc721 *Erc721Session) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SafeTransferFrom0(&_Erc721.TransactOpts, from, to, tokenId, _data)
|
||
|
}
|
||
|
|
||
|
// SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde.
|
||
|
//
|
||
|
// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SafeTransferFrom0(&_Erc721.TransactOpts, from, to, tokenId, _data)
|
||
|
}
|
||
|
|
||
|
// SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
|
||
|
//
|
||
|
// Solidity: function setApprovalForAll(address operator, bool approved) returns()
|
||
|
func (_Erc721 *Erc721Transactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "setApprovalForAll", operator, approved)
|
||
|
}
|
||
|
|
||
|
// SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
|
||
|
//
|
||
|
// Solidity: function setApprovalForAll(address operator, bool approved) returns()
|
||
|
func (_Erc721 *Erc721Session) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SetApprovalForAll(&_Erc721.TransactOpts, operator, approved)
|
||
|
}
|
||
|
|
||
|
// SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465.
|
||
|
//
|
||
|
// Solidity: function setApprovalForAll(address operator, bool approved) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SetApprovalForAll(&_Erc721.TransactOpts, operator, approved)
|
||
|
}
|
||
|
|
||
|
// SetBaseExtension is a paid mutator transaction binding the contract method 0xda3ef23f.
|
||
|
//
|
||
|
// Solidity: function setBaseExtension(string _newBaseExtension) returns()
|
||
|
func (_Erc721 *Erc721Transactor) SetBaseExtension(opts *bind.TransactOpts, _newBaseExtension string) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "setBaseExtension", _newBaseExtension)
|
||
|
}
|
||
|
|
||
|
// SetBaseExtension is a paid mutator transaction binding the contract method 0xda3ef23f.
|
||
|
//
|
||
|
// Solidity: function setBaseExtension(string _newBaseExtension) returns()
|
||
|
func (_Erc721 *Erc721Session) SetBaseExtension(_newBaseExtension string) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SetBaseExtension(&_Erc721.TransactOpts, _newBaseExtension)
|
||
|
}
|
||
|
|
||
|
// SetBaseExtension is a paid mutator transaction binding the contract method 0xda3ef23f.
|
||
|
//
|
||
|
// Solidity: function setBaseExtension(string _newBaseExtension) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) SetBaseExtension(_newBaseExtension string) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SetBaseExtension(&_Erc721.TransactOpts, _newBaseExtension)
|
||
|
}
|
||
|
|
||
|
// SetBaseURI is a paid mutator transaction binding the contract method 0x55f804b3.
|
||
|
//
|
||
|
// Solidity: function setBaseURI(string _newBaseURI) returns()
|
||
|
func (_Erc721 *Erc721Transactor) SetBaseURI(opts *bind.TransactOpts, _newBaseURI string) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "setBaseURI", _newBaseURI)
|
||
|
}
|
||
|
|
||
|
// SetBaseURI is a paid mutator transaction binding the contract method 0x55f804b3.
|
||
|
//
|
||
|
// Solidity: function setBaseURI(string _newBaseURI) returns()
|
||
|
func (_Erc721 *Erc721Session) SetBaseURI(_newBaseURI string) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SetBaseURI(&_Erc721.TransactOpts, _newBaseURI)
|
||
|
}
|
||
|
|
||
|
// SetBaseURI is a paid mutator transaction binding the contract method 0x55f804b3.
|
||
|
//
|
||
|
// Solidity: function setBaseURI(string _newBaseURI) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) SetBaseURI(_newBaseURI string) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SetBaseURI(&_Erc721.TransactOpts, _newBaseURI)
|
||
|
}
|
||
|
|
||
|
// SetCost is a paid mutator transaction binding the contract method 0x44a0d68a.
|
||
|
//
|
||
|
// Solidity: function setCost(uint256 _newCost) returns()
|
||
|
func (_Erc721 *Erc721Transactor) SetCost(opts *bind.TransactOpts, _newCost *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "setCost", _newCost)
|
||
|
}
|
||
|
|
||
|
// SetCost is a paid mutator transaction binding the contract method 0x44a0d68a.
|
||
|
//
|
||
|
// Solidity: function setCost(uint256 _newCost) returns()
|
||
|
func (_Erc721 *Erc721Session) SetCost(_newCost *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SetCost(&_Erc721.TransactOpts, _newCost)
|
||
|
}
|
||
|
|
||
|
// SetCost is a paid mutator transaction binding the contract method 0x44a0d68a.
|
||
|
//
|
||
|
// Solidity: function setCost(uint256 _newCost) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) SetCost(_newCost *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SetCost(&_Erc721.TransactOpts, _newCost)
|
||
|
}
|
||
|
|
||
|
// Setbaseuriforancientnft is a paid mutator transaction binding the contract method 0x5843029b.
|
||
|
//
|
||
|
// Solidity: function setbaseuriforancientnft(string _newBaseURI) returns()
|
||
|
func (_Erc721 *Erc721Transactor) Setbaseuriforancientnft(opts *bind.TransactOpts, _newBaseURI string) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "setbaseuriforancientnft", _newBaseURI)
|
||
|
}
|
||
|
|
||
|
// Setbaseuriforancientnft is a paid mutator transaction binding the contract method 0x5843029b.
|
||
|
//
|
||
|
// Solidity: function setbaseuriforancientnft(string _newBaseURI) returns()
|
||
|
func (_Erc721 *Erc721Session) Setbaseuriforancientnft(_newBaseURI string) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Setbaseuriforancientnft(&_Erc721.TransactOpts, _newBaseURI)
|
||
|
}
|
||
|
|
||
|
// Setbaseuriforancientnft is a paid mutator transaction binding the contract method 0x5843029b.
|
||
|
//
|
||
|
// Solidity: function setbaseuriforancientnft(string _newBaseURI) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) Setbaseuriforancientnft(_newBaseURI string) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Setbaseuriforancientnft(&_Erc721.TransactOpts, _newBaseURI)
|
||
|
}
|
||
|
|
||
|
// Setbaseuriforbabynft is a paid mutator transaction binding the contract method 0x056e5a7f.
|
||
|
//
|
||
|
// Solidity: function setbaseuriforbabynft(string _newBaseURI) returns()
|
||
|
func (_Erc721 *Erc721Transactor) Setbaseuriforbabynft(opts *bind.TransactOpts, _newBaseURI string) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "setbaseuriforbabynft", _newBaseURI)
|
||
|
}
|
||
|
|
||
|
// Setbaseuriforbabynft is a paid mutator transaction binding the contract method 0x056e5a7f.
|
||
|
//
|
||
|
// Solidity: function setbaseuriforbabynft(string _newBaseURI) returns()
|
||
|
func (_Erc721 *Erc721Session) Setbaseuriforbabynft(_newBaseURI string) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Setbaseuriforbabynft(&_Erc721.TransactOpts, _newBaseURI)
|
||
|
}
|
||
|
|
||
|
// Setbaseuriforbabynft is a paid mutator transaction binding the contract method 0x056e5a7f.
|
||
|
//
|
||
|
// Solidity: function setbaseuriforbabynft(string _newBaseURI) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) Setbaseuriforbabynft(_newBaseURI string) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Setbaseuriforbabynft(&_Erc721.TransactOpts, _newBaseURI)
|
||
|
}
|
||
|
|
||
|
// SetmaxMintAmount is a paid mutator transaction binding the contract method 0x7f00c7a6.
|
||
|
//
|
||
|
// Solidity: function setmaxMintAmount(uint256 _newmaxMintAmount) returns()
|
||
|
func (_Erc721 *Erc721Transactor) SetmaxMintAmount(opts *bind.TransactOpts, _newmaxMintAmount *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "setmaxMintAmount", _newmaxMintAmount)
|
||
|
}
|
||
|
|
||
|
// SetmaxMintAmount is a paid mutator transaction binding the contract method 0x7f00c7a6.
|
||
|
//
|
||
|
// Solidity: function setmaxMintAmount(uint256 _newmaxMintAmount) returns()
|
||
|
func (_Erc721 *Erc721Session) SetmaxMintAmount(_newmaxMintAmount *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SetmaxMintAmount(&_Erc721.TransactOpts, _newmaxMintAmount)
|
||
|
}
|
||
|
|
||
|
// SetmaxMintAmount is a paid mutator transaction binding the contract method 0x7f00c7a6.
|
||
|
//
|
||
|
// Solidity: function setmaxMintAmount(uint256 _newmaxMintAmount) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) SetmaxMintAmount(_newmaxMintAmount *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.SetmaxMintAmount(&_Erc721.TransactOpts, _newmaxMintAmount)
|
||
|
}
|
||
|
|
||
|
// Setmaxsupplyforbabynft is a paid mutator transaction binding the contract method 0xcf7f9e95.
|
||
|
//
|
||
|
// Solidity: function setmaxsupplyforbabynft(uint256 amount) returns()
|
||
|
func (_Erc721 *Erc721Transactor) Setmaxsupplyforbabynft(opts *bind.TransactOpts, amount *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "setmaxsupplyforbabynft", amount)
|
||
|
}
|
||
|
|
||
|
// Setmaxsupplyforbabynft is a paid mutator transaction binding the contract method 0xcf7f9e95.
|
||
|
//
|
||
|
// Solidity: function setmaxsupplyforbabynft(uint256 amount) returns()
|
||
|
func (_Erc721 *Erc721Session) Setmaxsupplyforbabynft(amount *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Setmaxsupplyforbabynft(&_Erc721.TransactOpts, amount)
|
||
|
}
|
||
|
|
||
|
// Setmaxsupplyforbabynft is a paid mutator transaction binding the contract method 0xcf7f9e95.
|
||
|
//
|
||
|
// Solidity: function setmaxsupplyforbabynft(uint256 amount) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) Setmaxsupplyforbabynft(amount *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.Setmaxsupplyforbabynft(&_Erc721.TransactOpts, amount)
|
||
|
}
|
||
|
|
||
|
// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
|
||
|
//
|
||
|
// Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
|
||
|
func (_Erc721 *Erc721Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "transferFrom", from, to, tokenId)
|
||
|
}
|
||
|
|
||
|
// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
|
||
|
//
|
||
|
// Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
|
||
|
func (_Erc721 *Erc721Session) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.TransferFrom(&_Erc721.TransactOpts, from, to, tokenId)
|
||
|
}
|
||
|
|
||
|
// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
|
||
|
//
|
||
|
// Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.TransferFrom(&_Erc721.TransactOpts, from, to, tokenId)
|
||
|
}
|
||
|
|
||
|
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
|
||
|
//
|
||
|
// Solidity: function transferOwnership(address newOwner) returns()
|
||
|
func (_Erc721 *Erc721Transactor) TransferOwnership(opts *bind.TransactOpts, newOwner common.Address) (*types.Transaction, error) {
|
||
|
return _Erc721.contract.Transact(opts, "transferOwnership", newOwner)
|
||
|
}
|
||
|
|
||
|
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
|
||
|
//
|
||
|
// Solidity: function transferOwnership(address newOwner) returns()
|
||
|
func (_Erc721 *Erc721Session) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.TransferOwnership(&_Erc721.TransactOpts, newOwner)
|
||
|
}
|
||
|
|
||
|
// TransferOwnership is a paid mutator transaction binding the contract method 0xf2fde38b.
|
||
|
//
|
||
|
// Solidity: function transferOwnership(address newOwner) returns()
|
||
|
func (_Erc721 *Erc721TransactorSession) TransferOwnership(newOwner common.Address) (*types.Transaction, error) {
|
||
|
return _Erc721.Contract.TransferOwnership(&_Erc721.TransactOpts, newOwner)
|
||
|
}
|
||
|
|
||
|
// Erc721ApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Erc721 contract.
|
||
|
type Erc721ApprovalIterator struct {
|
||
|
Event *Erc721Approval // Event containing the contract specifics and raw log
|
||
|
|
||
|
contract *bind.BoundContract // Generic contract to use for unpacking event data
|
||
|
event string // Event name to use for unpacking event data
|
||
|
|
||
|
logs chan types.Log // Log channel receiving the found contract events
|
||
|
sub ethereum.Subscription // Subscription for errors, completion and termination
|
||
|
done bool // Whether the subscription completed delivering logs
|
||
|
fail error // Occurred error to stop iteration
|
||
|
}
|
||
|
|
||
|
// Next advances the iterator to the subsequent event, returning whether there
|
||
|
// are any more events found. In case of a retrieval or parsing error, false is
|
||
|
// returned and Error() can be queried for the exact failure.
|
||
|
func (it *Erc721ApprovalIterator) Next() bool {
|
||
|
// If the iterator failed, stop iterating
|
||
|
if it.fail != nil {
|
||
|
return false
|
||
|
}
|
||
|
// If the iterator completed, deliver directly whatever's available
|
||
|
if it.done {
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(Erc721Approval)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
default:
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
// Iterator still in progress, wait for either a data or an error event
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(Erc721Approval)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
case err := <-it.sub.Err():
|
||
|
it.done = true
|
||
|
it.fail = err
|
||
|
return it.Next()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Error returns any retrieval or parsing error occurred during filtering.
|
||
|
func (it *Erc721ApprovalIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *Erc721ApprovalIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Erc721Approval represents a Approval event raised by the Erc721 contract.
|
||
|
type Erc721Approval struct {
|
||
|
Owner common.Address
|
||
|
Approved common.Address
|
||
|
TokenId *big.Int
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
|
||
|
//
|
||
|
// Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
|
||
|
func (_Erc721 *Erc721Filterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*Erc721ApprovalIterator, error) {
|
||
|
|
||
|
var ownerRule []interface{}
|
||
|
for _, ownerItem := range owner {
|
||
|
ownerRule = append(ownerRule, ownerItem)
|
||
|
}
|
||
|
var approvedRule []interface{}
|
||
|
for _, approvedItem := range approved {
|
||
|
approvedRule = append(approvedRule, approvedItem)
|
||
|
}
|
||
|
var tokenIdRule []interface{}
|
||
|
for _, tokenIdItem := range tokenId {
|
||
|
tokenIdRule = append(tokenIdRule, tokenIdItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Erc721.contract.FilterLogs(opts, "Approval", ownerRule, approvedRule, tokenIdRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &Erc721ApprovalIterator{contract: _Erc721.contract, event: "Approval", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
|
||
|
//
|
||
|
// Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
|
||
|
func (_Erc721 *Erc721Filterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *Erc721Approval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) {
|
||
|
|
||
|
var ownerRule []interface{}
|
||
|
for _, ownerItem := range owner {
|
||
|
ownerRule = append(ownerRule, ownerItem)
|
||
|
}
|
||
|
var approvedRule []interface{}
|
||
|
for _, approvedItem := range approved {
|
||
|
approvedRule = append(approvedRule, approvedItem)
|
||
|
}
|
||
|
var tokenIdRule []interface{}
|
||
|
for _, tokenIdItem := range tokenId {
|
||
|
tokenIdRule = append(tokenIdRule, tokenIdItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Erc721.contract.WatchLogs(opts, "Approval", ownerRule, approvedRule, tokenIdRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return event.NewSubscription(func(quit <-chan struct{}) error {
|
||
|
defer sub.Unsubscribe()
|
||
|
for {
|
||
|
select {
|
||
|
case log := <-logs:
|
||
|
// New log arrived, parse the event and forward to the user
|
||
|
event := new(Erc721Approval)
|
||
|
if err := _Erc721.contract.UnpackLog(event, "Approval", log); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
|
||
|
select {
|
||
|
case sink <- event:
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}), nil
|
||
|
}
|
||
|
|
||
|
// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925.
|
||
|
//
|
||
|
// Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId)
|
||
|
func (_Erc721 *Erc721Filterer) ParseApproval(log types.Log) (*Erc721Approval, error) {
|
||
|
event := new(Erc721Approval)
|
||
|
if err := _Erc721.contract.UnpackLog(event, "Approval", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// Erc721ApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the Erc721 contract.
|
||
|
type Erc721ApprovalForAllIterator struct {
|
||
|
Event *Erc721ApprovalForAll // Event containing the contract specifics and raw log
|
||
|
|
||
|
contract *bind.BoundContract // Generic contract to use for unpacking event data
|
||
|
event string // Event name to use for unpacking event data
|
||
|
|
||
|
logs chan types.Log // Log channel receiving the found contract events
|
||
|
sub ethereum.Subscription // Subscription for errors, completion and termination
|
||
|
done bool // Whether the subscription completed delivering logs
|
||
|
fail error // Occurred error to stop iteration
|
||
|
}
|
||
|
|
||
|
// Next advances the iterator to the subsequent event, returning whether there
|
||
|
// are any more events found. In case of a retrieval or parsing error, false is
|
||
|
// returned and Error() can be queried for the exact failure.
|
||
|
func (it *Erc721ApprovalForAllIterator) Next() bool {
|
||
|
// If the iterator failed, stop iterating
|
||
|
if it.fail != nil {
|
||
|
return false
|
||
|
}
|
||
|
// If the iterator completed, deliver directly whatever's available
|
||
|
if it.done {
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(Erc721ApprovalForAll)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
default:
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
// Iterator still in progress, wait for either a data or an error event
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(Erc721ApprovalForAll)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
case err := <-it.sub.Err():
|
||
|
it.done = true
|
||
|
it.fail = err
|
||
|
return it.Next()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Error returns any retrieval or parsing error occurred during filtering.
|
||
|
func (it *Erc721ApprovalForAllIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *Erc721ApprovalForAllIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Erc721ApprovalForAll represents a ApprovalForAll event raised by the Erc721 contract.
|
||
|
type Erc721ApprovalForAll struct {
|
||
|
Owner common.Address
|
||
|
Operator common.Address
|
||
|
Approved bool
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
|
||
|
//
|
||
|
// Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
|
||
|
func (_Erc721 *Erc721Filterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*Erc721ApprovalForAllIterator, error) {
|
||
|
|
||
|
var ownerRule []interface{}
|
||
|
for _, ownerItem := range owner {
|
||
|
ownerRule = append(ownerRule, ownerItem)
|
||
|
}
|
||
|
var operatorRule []interface{}
|
||
|
for _, operatorItem := range operator {
|
||
|
operatorRule = append(operatorRule, operatorItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Erc721.contract.FilterLogs(opts, "ApprovalForAll", ownerRule, operatorRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &Erc721ApprovalForAllIterator{contract: _Erc721.contract, event: "ApprovalForAll", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
|
||
|
//
|
||
|
// Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
|
||
|
func (_Erc721 *Erc721Filterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *Erc721ApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error) {
|
||
|
|
||
|
var ownerRule []interface{}
|
||
|
for _, ownerItem := range owner {
|
||
|
ownerRule = append(ownerRule, ownerItem)
|
||
|
}
|
||
|
var operatorRule []interface{}
|
||
|
for _, operatorItem := range operator {
|
||
|
operatorRule = append(operatorRule, operatorItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Erc721.contract.WatchLogs(opts, "ApprovalForAll", ownerRule, operatorRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return event.NewSubscription(func(quit <-chan struct{}) error {
|
||
|
defer sub.Unsubscribe()
|
||
|
for {
|
||
|
select {
|
||
|
case log := <-logs:
|
||
|
// New log arrived, parse the event and forward to the user
|
||
|
event := new(Erc721ApprovalForAll)
|
||
|
if err := _Erc721.contract.UnpackLog(event, "ApprovalForAll", log); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
|
||
|
select {
|
||
|
case sink <- event:
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}), nil
|
||
|
}
|
||
|
|
||
|
// ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31.
|
||
|
//
|
||
|
// Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved)
|
||
|
func (_Erc721 *Erc721Filterer) ParseApprovalForAll(log types.Log) (*Erc721ApprovalForAll, error) {
|
||
|
event := new(Erc721ApprovalForAll)
|
||
|
if err := _Erc721.contract.UnpackLog(event, "ApprovalForAll", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// Erc721OwnershipTransferredIterator is returned from FilterOwnershipTransferred and is used to iterate over the raw logs and unpacked data for OwnershipTransferred events raised by the Erc721 contract.
|
||
|
type Erc721OwnershipTransferredIterator struct {
|
||
|
Event *Erc721OwnershipTransferred // Event containing the contract specifics and raw log
|
||
|
|
||
|
contract *bind.BoundContract // Generic contract to use for unpacking event data
|
||
|
event string // Event name to use for unpacking event data
|
||
|
|
||
|
logs chan types.Log // Log channel receiving the found contract events
|
||
|
sub ethereum.Subscription // Subscription for errors, completion and termination
|
||
|
done bool // Whether the subscription completed delivering logs
|
||
|
fail error // Occurred error to stop iteration
|
||
|
}
|
||
|
|
||
|
// Next advances the iterator to the subsequent event, returning whether there
|
||
|
// are any more events found. In case of a retrieval or parsing error, false is
|
||
|
// returned and Error() can be queried for the exact failure.
|
||
|
func (it *Erc721OwnershipTransferredIterator) Next() bool {
|
||
|
// If the iterator failed, stop iterating
|
||
|
if it.fail != nil {
|
||
|
return false
|
||
|
}
|
||
|
// If the iterator completed, deliver directly whatever's available
|
||
|
if it.done {
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(Erc721OwnershipTransferred)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
default:
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
// Iterator still in progress, wait for either a data or an error event
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(Erc721OwnershipTransferred)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
case err := <-it.sub.Err():
|
||
|
it.done = true
|
||
|
it.fail = err
|
||
|
return it.Next()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Error returns any retrieval or parsing error occurred during filtering.
|
||
|
func (it *Erc721OwnershipTransferredIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *Erc721OwnershipTransferredIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Erc721OwnershipTransferred represents a OwnershipTransferred event raised by the Erc721 contract.
|
||
|
type Erc721OwnershipTransferred struct {
|
||
|
PreviousOwner common.Address
|
||
|
NewOwner common.Address
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterOwnershipTransferred is a free log retrieval operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
|
||
|
//
|
||
|
// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
|
||
|
func (_Erc721 *Erc721Filterer) FilterOwnershipTransferred(opts *bind.FilterOpts, previousOwner []common.Address, newOwner []common.Address) (*Erc721OwnershipTransferredIterator, error) {
|
||
|
|
||
|
var previousOwnerRule []interface{}
|
||
|
for _, previousOwnerItem := range previousOwner {
|
||
|
previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
|
||
|
}
|
||
|
var newOwnerRule []interface{}
|
||
|
for _, newOwnerItem := range newOwner {
|
||
|
newOwnerRule = append(newOwnerRule, newOwnerItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Erc721.contract.FilterLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &Erc721OwnershipTransferredIterator{contract: _Erc721.contract, event: "OwnershipTransferred", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchOwnershipTransferred is a free log subscription operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
|
||
|
//
|
||
|
// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
|
||
|
func (_Erc721 *Erc721Filterer) WatchOwnershipTransferred(opts *bind.WatchOpts, sink chan<- *Erc721OwnershipTransferred, previousOwner []common.Address, newOwner []common.Address) (event.Subscription, error) {
|
||
|
|
||
|
var previousOwnerRule []interface{}
|
||
|
for _, previousOwnerItem := range previousOwner {
|
||
|
previousOwnerRule = append(previousOwnerRule, previousOwnerItem)
|
||
|
}
|
||
|
var newOwnerRule []interface{}
|
||
|
for _, newOwnerItem := range newOwner {
|
||
|
newOwnerRule = append(newOwnerRule, newOwnerItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Erc721.contract.WatchLogs(opts, "OwnershipTransferred", previousOwnerRule, newOwnerRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return event.NewSubscription(func(quit <-chan struct{}) error {
|
||
|
defer sub.Unsubscribe()
|
||
|
for {
|
||
|
select {
|
||
|
case log := <-logs:
|
||
|
// New log arrived, parse the event and forward to the user
|
||
|
event := new(Erc721OwnershipTransferred)
|
||
|
if err := _Erc721.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
|
||
|
select {
|
||
|
case sink <- event:
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}), nil
|
||
|
}
|
||
|
|
||
|
// ParseOwnershipTransferred is a log parse operation binding the contract event 0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0.
|
||
|
//
|
||
|
// Solidity: event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
|
||
|
func (_Erc721 *Erc721Filterer) ParseOwnershipTransferred(log types.Log) (*Erc721OwnershipTransferred, error) {
|
||
|
event := new(Erc721OwnershipTransferred)
|
||
|
if err := _Erc721.contract.UnpackLog(event, "OwnershipTransferred", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|
||
|
|
||
|
// Erc721TransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Erc721 contract.
|
||
|
type Erc721TransferIterator struct {
|
||
|
Event *Erc721Transfer // Event containing the contract specifics and raw log
|
||
|
|
||
|
contract *bind.BoundContract // Generic contract to use for unpacking event data
|
||
|
event string // Event name to use for unpacking event data
|
||
|
|
||
|
logs chan types.Log // Log channel receiving the found contract events
|
||
|
sub ethereum.Subscription // Subscription for errors, completion and termination
|
||
|
done bool // Whether the subscription completed delivering logs
|
||
|
fail error // Occurred error to stop iteration
|
||
|
}
|
||
|
|
||
|
// Next advances the iterator to the subsequent event, returning whether there
|
||
|
// are any more events found. In case of a retrieval or parsing error, false is
|
||
|
// returned and Error() can be queried for the exact failure.
|
||
|
func (it *Erc721TransferIterator) Next() bool {
|
||
|
// If the iterator failed, stop iterating
|
||
|
if it.fail != nil {
|
||
|
return false
|
||
|
}
|
||
|
// If the iterator completed, deliver directly whatever's available
|
||
|
if it.done {
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(Erc721Transfer)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
default:
|
||
|
return false
|
||
|
}
|
||
|
}
|
||
|
// Iterator still in progress, wait for either a data or an error event
|
||
|
select {
|
||
|
case log := <-it.logs:
|
||
|
it.Event = new(Erc721Transfer)
|
||
|
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil {
|
||
|
it.fail = err
|
||
|
return false
|
||
|
}
|
||
|
it.Event.Raw = log
|
||
|
return true
|
||
|
|
||
|
case err := <-it.sub.Err():
|
||
|
it.done = true
|
||
|
it.fail = err
|
||
|
return it.Next()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// Error returns any retrieval or parsing error occurred during filtering.
|
||
|
func (it *Erc721TransferIterator) Error() error {
|
||
|
return it.fail
|
||
|
}
|
||
|
|
||
|
// Close terminates the iteration process, releasing any pending underlying
|
||
|
// resources.
|
||
|
func (it *Erc721TransferIterator) Close() error {
|
||
|
it.sub.Unsubscribe()
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
// Erc721Transfer represents a Transfer event raised by the Erc721 contract.
|
||
|
type Erc721Transfer struct {
|
||
|
From common.Address
|
||
|
To common.Address
|
||
|
TokenId *big.Int
|
||
|
Raw types.Log // Blockchain specific contextual infos
|
||
|
}
|
||
|
|
||
|
// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
|
||
|
//
|
||
|
// Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
|
||
|
func (_Erc721 *Erc721Filterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*Erc721TransferIterator, error) {
|
||
|
|
||
|
var fromRule []interface{}
|
||
|
for _, fromItem := range from {
|
||
|
fromRule = append(fromRule, fromItem)
|
||
|
}
|
||
|
var toRule []interface{}
|
||
|
for _, toItem := range to {
|
||
|
toRule = append(toRule, toItem)
|
||
|
}
|
||
|
var tokenIdRule []interface{}
|
||
|
for _, tokenIdItem := range tokenId {
|
||
|
tokenIdRule = append(tokenIdRule, tokenIdItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Erc721.contract.FilterLogs(opts, "Transfer", fromRule, toRule, tokenIdRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return &Erc721TransferIterator{contract: _Erc721.contract, event: "Transfer", logs: logs, sub: sub}, nil
|
||
|
}
|
||
|
|
||
|
// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
|
||
|
//
|
||
|
// Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
|
||
|
func (_Erc721 *Erc721Filterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *Erc721Transfer, from []common.Address, to []common.Address, tokenId []*big.Int) (event.Subscription, error) {
|
||
|
|
||
|
var fromRule []interface{}
|
||
|
for _, fromItem := range from {
|
||
|
fromRule = append(fromRule, fromItem)
|
||
|
}
|
||
|
var toRule []interface{}
|
||
|
for _, toItem := range to {
|
||
|
toRule = append(toRule, toItem)
|
||
|
}
|
||
|
var tokenIdRule []interface{}
|
||
|
for _, tokenIdItem := range tokenId {
|
||
|
tokenIdRule = append(tokenIdRule, tokenIdItem)
|
||
|
}
|
||
|
|
||
|
logs, sub, err := _Erc721.contract.WatchLogs(opts, "Transfer", fromRule, toRule, tokenIdRule)
|
||
|
if err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
return event.NewSubscription(func(quit <-chan struct{}) error {
|
||
|
defer sub.Unsubscribe()
|
||
|
for {
|
||
|
select {
|
||
|
case log := <-logs:
|
||
|
// New log arrived, parse the event and forward to the user
|
||
|
event := new(Erc721Transfer)
|
||
|
if err := _Erc721.contract.UnpackLog(event, "Transfer", log); err != nil {
|
||
|
return err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
|
||
|
select {
|
||
|
case sink <- event:
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
case err := <-sub.Err():
|
||
|
return err
|
||
|
case <-quit:
|
||
|
return nil
|
||
|
}
|
||
|
}
|
||
|
}), nil
|
||
|
}
|
||
|
|
||
|
// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef.
|
||
|
//
|
||
|
// Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId)
|
||
|
func (_Erc721 *Erc721Filterer) ParseTransfer(log types.Log) (*Erc721Transfer, error) {
|
||
|
event := new(Erc721Transfer)
|
||
|
if err := _Erc721.contract.UnpackLog(event, "Transfer", log); err != nil {
|
||
|
return nil, err
|
||
|
}
|
||
|
event.Raw = log
|
||
|
return event, nil
|
||
|
}
|