123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079 |
- // Code generated - DO NOT EDIT.
- // This file is a generated binding and any manual changes will be lost.
- package operator
- 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
- )
- // MetaRareOperatorNFTVoucher is an auto generated low-level Go binding around an user-defined struct.
- type MetaRareOperatorNFTVoucher struct {
- Signer common.Address
- TokenAddress common.Address
- TokenType *big.Int
- TokenId *big.Int
- AssetAddress common.Address
- Price *big.Int
- Balance *big.Int
- TotalBalance *big.Int
- CreationTax *big.Int
- TreasuryTax *big.Int
- TreasuryAddress common.Address
- Uri string
- }
- // ECDSAMetaData contains all meta data concerning the ECDSA contract.
- var ECDSAMetaData = &bind.MetaData{
- ABI: "[]",
- Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207399d7bed8861595eae1922da30eaff01349050487eb3c339a8f061492540c2364736f6c63430008000033",
- }
- // ECDSAABI is the input ABI used to generate the binding from.
- // Deprecated: Use ECDSAMetaData.ABI instead.
- var ECDSAABI = ECDSAMetaData.ABI
- // ECDSABin is the compiled bytecode used for deploying new contracts.
- // Deprecated: Use ECDSAMetaData.Bin instead.
- var ECDSABin = ECDSAMetaData.Bin
- // DeployECDSA deploys a new Ethereum contract, binding an instance of ECDSA to it.
- func DeployECDSA(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *ECDSA, error) {
- parsed, err := ECDSAMetaData.GetAbi()
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- if parsed == nil {
- return common.Address{}, nil, nil, errors.New("GetABI returned nil")
- }
- address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(ECDSABin), backend)
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- return address, tx, &ECDSA{ECDSACaller: ECDSACaller{contract: contract}, ECDSATransactor: ECDSATransactor{contract: contract}, ECDSAFilterer: ECDSAFilterer{contract: contract}}, nil
- }
- // ECDSA is an auto generated Go binding around an Ethereum contract.
- type ECDSA struct {
- ECDSACaller // Read-only binding to the contract
- ECDSATransactor // Write-only binding to the contract
- ECDSAFilterer // Log filterer for contract events
- }
- // ECDSACaller is an auto generated read-only Go binding around an Ethereum contract.
- type ECDSACaller struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // ECDSATransactor is an auto generated write-only Go binding around an Ethereum contract.
- type ECDSATransactor struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // ECDSAFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
- type ECDSAFilterer struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // ECDSASession is an auto generated Go binding around an Ethereum contract,
- // with pre-set call and transact options.
- type ECDSASession struct {
- Contract *ECDSA // 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
- }
- // ECDSACallerSession is an auto generated read-only Go binding around an Ethereum contract,
- // with pre-set call options.
- type ECDSACallerSession struct {
- Contract *ECDSACaller // Generic contract caller binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- }
- // ECDSATransactorSession is an auto generated write-only Go binding around an Ethereum contract,
- // with pre-set transact options.
- type ECDSATransactorSession struct {
- Contract *ECDSATransactor // Generic contract transactor binding to set the session for
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // ECDSARaw is an auto generated low-level Go binding around an Ethereum contract.
- type ECDSARaw struct {
- Contract *ECDSA // Generic contract binding to access the raw methods on
- }
- // ECDSACallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
- type ECDSACallerRaw struct {
- Contract *ECDSACaller // Generic read-only contract binding to access the raw methods on
- }
- // ECDSATransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
- type ECDSATransactorRaw struct {
- Contract *ECDSATransactor // Generic write-only contract binding to access the raw methods on
- }
- // NewECDSA creates a new instance of ECDSA, bound to a specific deployed contract.
- func NewECDSA(address common.Address, backend bind.ContractBackend) (*ECDSA, error) {
- contract, err := bindECDSA(address, backend, backend, backend)
- if err != nil {
- return nil, err
- }
- return &ECDSA{ECDSACaller: ECDSACaller{contract: contract}, ECDSATransactor: ECDSATransactor{contract: contract}, ECDSAFilterer: ECDSAFilterer{contract: contract}}, nil
- }
- // NewECDSACaller creates a new read-only instance of ECDSA, bound to a specific deployed contract.
- func NewECDSACaller(address common.Address, caller bind.ContractCaller) (*ECDSACaller, error) {
- contract, err := bindECDSA(address, caller, nil, nil)
- if err != nil {
- return nil, err
- }
- return &ECDSACaller{contract: contract}, nil
- }
- // NewECDSATransactor creates a new write-only instance of ECDSA, bound to a specific deployed contract.
- func NewECDSATransactor(address common.Address, transactor bind.ContractTransactor) (*ECDSATransactor, error) {
- contract, err := bindECDSA(address, nil, transactor, nil)
- if err != nil {
- return nil, err
- }
- return &ECDSATransactor{contract: contract}, nil
- }
- // NewECDSAFilterer creates a new log filterer instance of ECDSA, bound to a specific deployed contract.
- func NewECDSAFilterer(address common.Address, filterer bind.ContractFilterer) (*ECDSAFilterer, error) {
- contract, err := bindECDSA(address, nil, nil, filterer)
- if err != nil {
- return nil, err
- }
- return &ECDSAFilterer{contract: contract}, nil
- }
- // bindECDSA binds a generic wrapper to an already deployed contract.
- func bindECDSA(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
- parsed, err := abi.JSON(strings.NewReader(ECDSAABI))
- 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 (_ECDSA *ECDSARaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _ECDSA.Contract.ECDSACaller.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 (_ECDSA *ECDSARaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _ECDSA.Contract.ECDSATransactor.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_ECDSA *ECDSARaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _ECDSA.Contract.ECDSATransactor.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 (_ECDSA *ECDSACallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _ECDSA.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 (_ECDSA *ECDSATransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _ECDSA.Contract.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_ECDSA *ECDSATransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _ECDSA.Contract.contract.Transact(opts, method, params...)
- }
- // EIP712MetaData contains all meta data concerning the EIP712 contract.
- var EIP712MetaData = &bind.MetaData{
- ABI: "[]",
- }
- // EIP712ABI is the input ABI used to generate the binding from.
- // Deprecated: Use EIP712MetaData.ABI instead.
- var EIP712ABI = EIP712MetaData.ABI
- // EIP712 is an auto generated Go binding around an Ethereum contract.
- type EIP712 struct {
- EIP712Caller // Read-only binding to the contract
- EIP712Transactor // Write-only binding to the contract
- EIP712Filterer // Log filterer for contract events
- }
- // EIP712Caller is an auto generated read-only Go binding around an Ethereum contract.
- type EIP712Caller struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // EIP712Transactor is an auto generated write-only Go binding around an Ethereum contract.
- type EIP712Transactor struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // EIP712Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
- type EIP712Filterer struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // EIP712Session is an auto generated Go binding around an Ethereum contract,
- // with pre-set call and transact options.
- type EIP712Session struct {
- Contract *EIP712 // 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
- }
- // EIP712CallerSession is an auto generated read-only Go binding around an Ethereum contract,
- // with pre-set call options.
- type EIP712CallerSession struct {
- Contract *EIP712Caller // Generic contract caller binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- }
- // EIP712TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
- // with pre-set transact options.
- type EIP712TransactorSession struct {
- Contract *EIP712Transactor // Generic contract transactor binding to set the session for
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // EIP712Raw is an auto generated low-level Go binding around an Ethereum contract.
- type EIP712Raw struct {
- Contract *EIP712 // Generic contract binding to access the raw methods on
- }
- // EIP712CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
- type EIP712CallerRaw struct {
- Contract *EIP712Caller // Generic read-only contract binding to access the raw methods on
- }
- // EIP712TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
- type EIP712TransactorRaw struct {
- Contract *EIP712Transactor // Generic write-only contract binding to access the raw methods on
- }
- // NewEIP712 creates a new instance of EIP712, bound to a specific deployed contract.
- func NewEIP712(address common.Address, backend bind.ContractBackend) (*EIP712, error) {
- contract, err := bindEIP712(address, backend, backend, backend)
- if err != nil {
- return nil, err
- }
- return &EIP712{EIP712Caller: EIP712Caller{contract: contract}, EIP712Transactor: EIP712Transactor{contract: contract}, EIP712Filterer: EIP712Filterer{contract: contract}}, nil
- }
- // NewEIP712Caller creates a new read-only instance of EIP712, bound to a specific deployed contract.
- func NewEIP712Caller(address common.Address, caller bind.ContractCaller) (*EIP712Caller, error) {
- contract, err := bindEIP712(address, caller, nil, nil)
- if err != nil {
- return nil, err
- }
- return &EIP712Caller{contract: contract}, nil
- }
- // NewEIP712Transactor creates a new write-only instance of EIP712, bound to a specific deployed contract.
- func NewEIP712Transactor(address common.Address, transactor bind.ContractTransactor) (*EIP712Transactor, error) {
- contract, err := bindEIP712(address, nil, transactor, nil)
- if err != nil {
- return nil, err
- }
- return &EIP712Transactor{contract: contract}, nil
- }
- // NewEIP712Filterer creates a new log filterer instance of EIP712, bound to a specific deployed contract.
- func NewEIP712Filterer(address common.Address, filterer bind.ContractFilterer) (*EIP712Filterer, error) {
- contract, err := bindEIP712(address, nil, nil, filterer)
- if err != nil {
- return nil, err
- }
- return &EIP712Filterer{contract: contract}, nil
- }
- // bindEIP712 binds a generic wrapper to an already deployed contract.
- func bindEIP712(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
- parsed, err := abi.JSON(strings.NewReader(EIP712ABI))
- 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 (_EIP712 *EIP712Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _EIP712.Contract.EIP712Caller.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 (_EIP712 *EIP712Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _EIP712.Contract.EIP712Transactor.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_EIP712 *EIP712Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _EIP712.Contract.EIP712Transactor.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 (_EIP712 *EIP712CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _EIP712.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 (_EIP712 *EIP712TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _EIP712.Contract.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_EIP712 *EIP712TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _EIP712.Contract.contract.Transact(opts, method, params...)
- }
- // IERC20MetaData contains all meta data concerning the IERC20 contract.
- var IERC20MetaData = &bind.MetaData{
- ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"spender\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"amount\",\"type\":\"uint256\"}],\"name\":\"transfer\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"value\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
- Sigs: map[string]string{
- "095ea7b3": "approve(address,uint256)",
- "70a08231": "balanceOf(address)",
- "a9059cbb": "transfer(address,uint256)",
- "23b872dd": "transferFrom(address,address,uint256)",
- },
- }
- // IERC20ABI is the input ABI used to generate the binding from.
- // Deprecated: Use IERC20MetaData.ABI instead.
- var IERC20ABI = IERC20MetaData.ABI
- // Deprecated: Use IERC20MetaData.Sigs instead.
- // IERC20FuncSigs maps the 4-byte function signature to its string representation.
- var IERC20FuncSigs = IERC20MetaData.Sigs
- // IERC20 is an auto generated Go binding around an Ethereum contract.
- type IERC20 struct {
- IERC20Caller // Read-only binding to the contract
- IERC20Transactor // Write-only binding to the contract
- IERC20Filterer // Log filterer for contract events
- }
- // IERC20Caller is an auto generated read-only Go binding around an Ethereum contract.
- type IERC20Caller struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // IERC20Transactor is an auto generated write-only Go binding around an Ethereum contract.
- type IERC20Transactor struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // IERC20Filterer is an auto generated log filtering Go binding around an Ethereum contract events.
- type IERC20Filterer struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // IERC20Session is an auto generated Go binding around an Ethereum contract,
- // with pre-set call and transact options.
- type IERC20Session struct {
- Contract *IERC20 // 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
- }
- // IERC20CallerSession is an auto generated read-only Go binding around an Ethereum contract,
- // with pre-set call options.
- type IERC20CallerSession struct {
- Contract *IERC20Caller // Generic contract caller binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- }
- // IERC20TransactorSession is an auto generated write-only Go binding around an Ethereum contract,
- // with pre-set transact options.
- type IERC20TransactorSession struct {
- Contract *IERC20Transactor // Generic contract transactor binding to set the session for
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // IERC20Raw is an auto generated low-level Go binding around an Ethereum contract.
- type IERC20Raw struct {
- Contract *IERC20 // Generic contract binding to access the raw methods on
- }
- // IERC20CallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
- type IERC20CallerRaw struct {
- Contract *IERC20Caller // Generic read-only contract binding to access the raw methods on
- }
- // IERC20TransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
- type IERC20TransactorRaw struct {
- Contract *IERC20Transactor // Generic write-only contract binding to access the raw methods on
- }
- // NewIERC20 creates a new instance of IERC20, bound to a specific deployed contract.
- func NewIERC20(address common.Address, backend bind.ContractBackend) (*IERC20, error) {
- contract, err := bindIERC20(address, backend, backend, backend)
- if err != nil {
- return nil, err
- }
- return &IERC20{IERC20Caller: IERC20Caller{contract: contract}, IERC20Transactor: IERC20Transactor{contract: contract}, IERC20Filterer: IERC20Filterer{contract: contract}}, nil
- }
- // NewIERC20Caller creates a new read-only instance of IERC20, bound to a specific deployed contract.
- func NewIERC20Caller(address common.Address, caller bind.ContractCaller) (*IERC20Caller, error) {
- contract, err := bindIERC20(address, caller, nil, nil)
- if err != nil {
- return nil, err
- }
- return &IERC20Caller{contract: contract}, nil
- }
- // NewIERC20Transactor creates a new write-only instance of IERC20, bound to a specific deployed contract.
- func NewIERC20Transactor(address common.Address, transactor bind.ContractTransactor) (*IERC20Transactor, error) {
- contract, err := bindIERC20(address, nil, transactor, nil)
- if err != nil {
- return nil, err
- }
- return &IERC20Transactor{contract: contract}, nil
- }
- // NewIERC20Filterer creates a new log filterer instance of IERC20, bound to a specific deployed contract.
- func NewIERC20Filterer(address common.Address, filterer bind.ContractFilterer) (*IERC20Filterer, error) {
- contract, err := bindIERC20(address, nil, nil, filterer)
- if err != nil {
- return nil, err
- }
- return &IERC20Filterer{contract: contract}, nil
- }
- // bindIERC20 binds a generic wrapper to an already deployed contract.
- func bindIERC20(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
- parsed, err := abi.JSON(strings.NewReader(IERC20ABI))
- 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 (_IERC20 *IERC20Raw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _IERC20.Contract.IERC20Caller.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 (_IERC20 *IERC20Raw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _IERC20.Contract.IERC20Transactor.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_IERC20 *IERC20Raw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _IERC20.Contract.IERC20Transactor.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 (_IERC20 *IERC20CallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _IERC20.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 (_IERC20 *IERC20TransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _IERC20.Contract.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_IERC20 *IERC20TransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _IERC20.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 (_IERC20 *IERC20Caller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) {
- var out []interface{}
- err := _IERC20.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 (_IERC20 *IERC20Session) BalanceOf(owner common.Address) (*big.Int, error) {
- return _IERC20.Contract.BalanceOf(&_IERC20.CallOpts, owner)
- }
- // BalanceOf is a free data retrieval call binding the contract method 0x70a08231.
- //
- // Solidity: function balanceOf(address owner) view returns(uint256)
- func (_IERC20 *IERC20CallerSession) BalanceOf(owner common.Address) (*big.Int, error) {
- return _IERC20.Contract.BalanceOf(&_IERC20.CallOpts, owner)
- }
- // Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
- //
- // Solidity: function approve(address spender, uint256 value) returns(bool)
- func (_IERC20 *IERC20Transactor) Approve(opts *bind.TransactOpts, spender common.Address, value *big.Int) (*types.Transaction, error) {
- return _IERC20.contract.Transact(opts, "approve", spender, value)
- }
- // Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
- //
- // Solidity: function approve(address spender, uint256 value) returns(bool)
- func (_IERC20 *IERC20Session) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {
- return _IERC20.Contract.Approve(&_IERC20.TransactOpts, spender, value)
- }
- // Approve is a paid mutator transaction binding the contract method 0x095ea7b3.
- //
- // Solidity: function approve(address spender, uint256 value) returns(bool)
- func (_IERC20 *IERC20TransactorSession) Approve(spender common.Address, value *big.Int) (*types.Transaction, error) {
- return _IERC20.Contract.Approve(&_IERC20.TransactOpts, spender, value)
- }
- // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
- //
- // Solidity: function transfer(address to, uint256 amount) returns(bool)
- func (_IERC20 *IERC20Transactor) Transfer(opts *bind.TransactOpts, to common.Address, amount *big.Int) (*types.Transaction, error) {
- return _IERC20.contract.Transact(opts, "transfer", to, amount)
- }
- // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
- //
- // Solidity: function transfer(address to, uint256 amount) returns(bool)
- func (_IERC20 *IERC20Session) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) {
- return _IERC20.Contract.Transfer(&_IERC20.TransactOpts, to, amount)
- }
- // Transfer is a paid mutator transaction binding the contract method 0xa9059cbb.
- //
- // Solidity: function transfer(address to, uint256 amount) returns(bool)
- func (_IERC20 *IERC20TransactorSession) Transfer(to common.Address, amount *big.Int) (*types.Transaction, error) {
- return _IERC20.Contract.Transfer(&_IERC20.TransactOpts, to, amount)
- }
- // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
- //
- // Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)
- func (_IERC20 *IERC20Transactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) {
- return _IERC20.contract.Transact(opts, "transferFrom", from, to, value)
- }
- // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
- //
- // Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)
- func (_IERC20 *IERC20Session) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) {
- return _IERC20.Contract.TransferFrom(&_IERC20.TransactOpts, from, to, value)
- }
- // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
- //
- // Solidity: function transferFrom(address from, address to, uint256 value) returns(bool)
- func (_IERC20 *IERC20TransactorSession) TransferFrom(from common.Address, to common.Address, value *big.Int) (*types.Transaction, error) {
- return _IERC20.Contract.TransferFrom(&_IERC20.TransactOpts, from, to, value)
- }
- // IMetaRareERC1155CollectionMetaData contains all meta data concerning the IMetaRareERC1155Collection contract.
- var IMetaRareERC1155CollectionMetaData = &bind.MetaData{
- ABI: "[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"createByOperator\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"exists\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"transferOnlyOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
- Sigs: map[string]string{
- "00fdd58e": "balanceOf(address,uint256)",
- "61321c14": "createByOperator(address,uint256,uint256,string,bytes)",
- "4f558e79": "exists(uint256)",
- "8da5cb5b": "owner()",
- "f242432a": "safeTransferFrom(address,address,uint256,uint256,bytes)",
- "7c7ae4d1": "transferOnlyOperator(address,address,uint256,uint256)",
- },
- }
- // IMetaRareERC1155CollectionABI is the input ABI used to generate the binding from.
- // Deprecated: Use IMetaRareERC1155CollectionMetaData.ABI instead.
- var IMetaRareERC1155CollectionABI = IMetaRareERC1155CollectionMetaData.ABI
- // Deprecated: Use IMetaRareERC1155CollectionMetaData.Sigs instead.
- // IMetaRareERC1155CollectionFuncSigs maps the 4-byte function signature to its string representation.
- var IMetaRareERC1155CollectionFuncSigs = IMetaRareERC1155CollectionMetaData.Sigs
- // IMetaRareERC1155Collection is an auto generated Go binding around an Ethereum contract.
- type IMetaRareERC1155Collection struct {
- IMetaRareERC1155CollectionCaller // Read-only binding to the contract
- IMetaRareERC1155CollectionTransactor // Write-only binding to the contract
- IMetaRareERC1155CollectionFilterer // Log filterer for contract events
- }
- // IMetaRareERC1155CollectionCaller is an auto generated read-only Go binding around an Ethereum contract.
- type IMetaRareERC1155CollectionCaller struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // IMetaRareERC1155CollectionTransactor is an auto generated write-only Go binding around an Ethereum contract.
- type IMetaRareERC1155CollectionTransactor struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // IMetaRareERC1155CollectionFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
- type IMetaRareERC1155CollectionFilterer struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // IMetaRareERC1155CollectionSession is an auto generated Go binding around an Ethereum contract,
- // with pre-set call and transact options.
- type IMetaRareERC1155CollectionSession struct {
- Contract *IMetaRareERC1155Collection // 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
- }
- // IMetaRareERC1155CollectionCallerSession is an auto generated read-only Go binding around an Ethereum contract,
- // with pre-set call options.
- type IMetaRareERC1155CollectionCallerSession struct {
- Contract *IMetaRareERC1155CollectionCaller // Generic contract caller binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- }
- // IMetaRareERC1155CollectionTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
- // with pre-set transact options.
- type IMetaRareERC1155CollectionTransactorSession struct {
- Contract *IMetaRareERC1155CollectionTransactor // Generic contract transactor binding to set the session for
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // IMetaRareERC1155CollectionRaw is an auto generated low-level Go binding around an Ethereum contract.
- type IMetaRareERC1155CollectionRaw struct {
- Contract *IMetaRareERC1155Collection // Generic contract binding to access the raw methods on
- }
- // IMetaRareERC1155CollectionCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
- type IMetaRareERC1155CollectionCallerRaw struct {
- Contract *IMetaRareERC1155CollectionCaller // Generic read-only contract binding to access the raw methods on
- }
- // IMetaRareERC1155CollectionTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
- type IMetaRareERC1155CollectionTransactorRaw struct {
- Contract *IMetaRareERC1155CollectionTransactor // Generic write-only contract binding to access the raw methods on
- }
- // NewIMetaRareERC1155Collection creates a new instance of IMetaRareERC1155Collection, bound to a specific deployed contract.
- func NewIMetaRareERC1155Collection(address common.Address, backend bind.ContractBackend) (*IMetaRareERC1155Collection, error) {
- contract, err := bindIMetaRareERC1155Collection(address, backend, backend, backend)
- if err != nil {
- return nil, err
- }
- return &IMetaRareERC1155Collection{IMetaRareERC1155CollectionCaller: IMetaRareERC1155CollectionCaller{contract: contract}, IMetaRareERC1155CollectionTransactor: IMetaRareERC1155CollectionTransactor{contract: contract}, IMetaRareERC1155CollectionFilterer: IMetaRareERC1155CollectionFilterer{contract: contract}}, nil
- }
- // NewIMetaRareERC1155CollectionCaller creates a new read-only instance of IMetaRareERC1155Collection, bound to a specific deployed contract.
- func NewIMetaRareERC1155CollectionCaller(address common.Address, caller bind.ContractCaller) (*IMetaRareERC1155CollectionCaller, error) {
- contract, err := bindIMetaRareERC1155Collection(address, caller, nil, nil)
- if err != nil {
- return nil, err
- }
- return &IMetaRareERC1155CollectionCaller{contract: contract}, nil
- }
- // NewIMetaRareERC1155CollectionTransactor creates a new write-only instance of IMetaRareERC1155Collection, bound to a specific deployed contract.
- func NewIMetaRareERC1155CollectionTransactor(address common.Address, transactor bind.ContractTransactor) (*IMetaRareERC1155CollectionTransactor, error) {
- contract, err := bindIMetaRareERC1155Collection(address, nil, transactor, nil)
- if err != nil {
- return nil, err
- }
- return &IMetaRareERC1155CollectionTransactor{contract: contract}, nil
- }
- // NewIMetaRareERC1155CollectionFilterer creates a new log filterer instance of IMetaRareERC1155Collection, bound to a specific deployed contract.
- func NewIMetaRareERC1155CollectionFilterer(address common.Address, filterer bind.ContractFilterer) (*IMetaRareERC1155CollectionFilterer, error) {
- contract, err := bindIMetaRareERC1155Collection(address, nil, nil, filterer)
- if err != nil {
- return nil, err
- }
- return &IMetaRareERC1155CollectionFilterer{contract: contract}, nil
- }
- // bindIMetaRareERC1155Collection binds a generic wrapper to an already deployed contract.
- func bindIMetaRareERC1155Collection(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
- parsed, err := abi.JSON(strings.NewReader(IMetaRareERC1155CollectionABI))
- 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 (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _IMetaRareERC1155Collection.Contract.IMetaRareERC1155CollectionCaller.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 (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _IMetaRareERC1155Collection.Contract.IMetaRareERC1155CollectionTransactor.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _IMetaRareERC1155Collection.Contract.IMetaRareERC1155CollectionTransactor.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 (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _IMetaRareERC1155Collection.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 (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _IMetaRareERC1155Collection.Contract.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _IMetaRareERC1155Collection.Contract.contract.Transact(opts, method, params...)
- }
- // BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.
- //
- // Solidity: function balanceOf(address , uint256 ) view returns(uint256)
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionCaller) BalanceOf(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error) {
- var out []interface{}
- err := _IMetaRareERC1155Collection.contract.Call(opts, &out, "balanceOf", arg0, arg1)
- 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 0x00fdd58e.
- //
- // Solidity: function balanceOf(address , uint256 ) view returns(uint256)
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionSession) BalanceOf(arg0 common.Address, arg1 *big.Int) (*big.Int, error) {
- return _IMetaRareERC1155Collection.Contract.BalanceOf(&_IMetaRareERC1155Collection.CallOpts, arg0, arg1)
- }
- // BalanceOf is a free data retrieval call binding the contract method 0x00fdd58e.
- //
- // Solidity: function balanceOf(address , uint256 ) view returns(uint256)
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionCallerSession) BalanceOf(arg0 common.Address, arg1 *big.Int) (*big.Int, error) {
- return _IMetaRareERC1155Collection.Contract.BalanceOf(&_IMetaRareERC1155Collection.CallOpts, arg0, arg1)
- }
- // Exists is a free data retrieval call binding the contract method 0x4f558e79.
- //
- // Solidity: function exists(uint256 ) view returns(bool)
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionCaller) Exists(opts *bind.CallOpts, arg0 *big.Int) (bool, error) {
- var out []interface{}
- err := _IMetaRareERC1155Collection.contract.Call(opts, &out, "exists", arg0)
- if err != nil {
- return *new(bool), err
- }
- out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
- return out0, err
- }
- // Exists is a free data retrieval call binding the contract method 0x4f558e79.
- //
- // Solidity: function exists(uint256 ) view returns(bool)
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionSession) Exists(arg0 *big.Int) (bool, error) {
- return _IMetaRareERC1155Collection.Contract.Exists(&_IMetaRareERC1155Collection.CallOpts, arg0)
- }
- // Exists is a free data retrieval call binding the contract method 0x4f558e79.
- //
- // Solidity: function exists(uint256 ) view returns(bool)
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionCallerSession) Exists(arg0 *big.Int) (bool, error) {
- return _IMetaRareERC1155Collection.Contract.Exists(&_IMetaRareERC1155Collection.CallOpts, arg0)
- }
- // Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
- //
- // Solidity: function owner() view returns(address)
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionCaller) Owner(opts *bind.CallOpts) (common.Address, error) {
- var out []interface{}
- err := _IMetaRareERC1155Collection.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 (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionSession) Owner() (common.Address, error) {
- return _IMetaRareERC1155Collection.Contract.Owner(&_IMetaRareERC1155Collection.CallOpts)
- }
- // Owner is a free data retrieval call binding the contract method 0x8da5cb5b.
- //
- // Solidity: function owner() view returns(address)
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionCallerSession) Owner() (common.Address, error) {
- return _IMetaRareERC1155Collection.Contract.Owner(&_IMetaRareERC1155Collection.CallOpts)
- }
- // CreateByOperator is a paid mutator transaction binding the contract method 0x61321c14.
- //
- // Solidity: function createByOperator(address , uint256 , uint256 , string , bytes ) returns(uint256)
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionTransactor) CreateByOperator(opts *bind.TransactOpts, arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 string, arg4 []byte) (*types.Transaction, error) {
- return _IMetaRareERC1155Collection.contract.Transact(opts, "createByOperator", arg0, arg1, arg2, arg3, arg4)
- }
- // CreateByOperator is a paid mutator transaction binding the contract method 0x61321c14.
- //
- // Solidity: function createByOperator(address , uint256 , uint256 , string , bytes ) returns(uint256)
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionSession) CreateByOperator(arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 string, arg4 []byte) (*types.Transaction, error) {
- return _IMetaRareERC1155Collection.Contract.CreateByOperator(&_IMetaRareERC1155Collection.TransactOpts, arg0, arg1, arg2, arg3, arg4)
- }
- // CreateByOperator is a paid mutator transaction binding the contract method 0x61321c14.
- //
- // Solidity: function createByOperator(address , uint256 , uint256 , string , bytes ) returns(uint256)
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionTransactorSession) CreateByOperator(arg0 common.Address, arg1 *big.Int, arg2 *big.Int, arg3 string, arg4 []byte) (*types.Transaction, error) {
- return _IMetaRareERC1155Collection.Contract.CreateByOperator(&_IMetaRareERC1155Collection.TransactOpts, arg0, arg1, arg2, arg3, arg4)
- }
- // SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.
- //
- // Solidity: function safeTransferFrom(address , address , uint256 , uint256 , bytes ) returns()
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionTransactor) SafeTransferFrom(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int, arg4 []byte) (*types.Transaction, error) {
- return _IMetaRareERC1155Collection.contract.Transact(opts, "safeTransferFrom", arg0, arg1, arg2, arg3, arg4)
- }
- // SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.
- //
- // Solidity: function safeTransferFrom(address , address , uint256 , uint256 , bytes ) returns()
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionSession) SafeTransferFrom(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int, arg4 []byte) (*types.Transaction, error) {
- return _IMetaRareERC1155Collection.Contract.SafeTransferFrom(&_IMetaRareERC1155Collection.TransactOpts, arg0, arg1, arg2, arg3, arg4)
- }
- // SafeTransferFrom is a paid mutator transaction binding the contract method 0xf242432a.
- //
- // Solidity: function safeTransferFrom(address , address , uint256 , uint256 , bytes ) returns()
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionTransactorSession) SafeTransferFrom(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int, arg4 []byte) (*types.Transaction, error) {
- return _IMetaRareERC1155Collection.Contract.SafeTransferFrom(&_IMetaRareERC1155Collection.TransactOpts, arg0, arg1, arg2, arg3, arg4)
- }
- // TransferOnlyOperator is a paid mutator transaction binding the contract method 0x7c7ae4d1.
- //
- // Solidity: function transferOnlyOperator(address , address , uint256 , uint256 ) returns()
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionTransactor) TransferOnlyOperator(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int) (*types.Transaction, error) {
- return _IMetaRareERC1155Collection.contract.Transact(opts, "transferOnlyOperator", arg0, arg1, arg2, arg3)
- }
- // TransferOnlyOperator is a paid mutator transaction binding the contract method 0x7c7ae4d1.
- //
- // Solidity: function transferOnlyOperator(address , address , uint256 , uint256 ) returns()
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionSession) TransferOnlyOperator(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int) (*types.Transaction, error) {
- return _IMetaRareERC1155Collection.Contract.TransferOnlyOperator(&_IMetaRareERC1155Collection.TransactOpts, arg0, arg1, arg2, arg3)
- }
- // TransferOnlyOperator is a paid mutator transaction binding the contract method 0x7c7ae4d1.
- //
- // Solidity: function transferOnlyOperator(address , address , uint256 , uint256 ) returns()
- func (_IMetaRareERC1155Collection *IMetaRareERC1155CollectionTransactorSession) TransferOnlyOperator(arg0 common.Address, arg1 common.Address, arg2 *big.Int, arg3 *big.Int) (*types.Transaction, error) {
- return _IMetaRareERC1155Collection.Contract.TransferOnlyOperator(&_IMetaRareERC1155Collection.TransactOpts, arg0, arg1, arg2, arg3)
- }
- // IMetaRareERC721CollectionMetaData contains all meta data concerning the IMetaRareERC721Collection contract.
- var IMetaRareERC721CollectionMetaData = &bind.MetaData{
- ABI: "[{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"mint\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"transferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"transferOnlyOperator\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
- Sigs: map[string]string{
- "91d14854": "hasRole(bytes32,address)",
- "40c10f19": "mint(address,uint256)",
- "6352211e": "ownerOf(uint256)",
- "23b872dd": "transferFrom(address,address,uint256)",
- "5145dc57": "transferOnlyOperator(address,address,uint256)",
- },
- }
- // IMetaRareERC721CollectionABI is the input ABI used to generate the binding from.
- // Deprecated: Use IMetaRareERC721CollectionMetaData.ABI instead.
- var IMetaRareERC721CollectionABI = IMetaRareERC721CollectionMetaData.ABI
- // Deprecated: Use IMetaRareERC721CollectionMetaData.Sigs instead.
- // IMetaRareERC721CollectionFuncSigs maps the 4-byte function signature to its string representation.
- var IMetaRareERC721CollectionFuncSigs = IMetaRareERC721CollectionMetaData.Sigs
- // IMetaRareERC721Collection is an auto generated Go binding around an Ethereum contract.
- type IMetaRareERC721Collection struct {
- IMetaRareERC721CollectionCaller // Read-only binding to the contract
- IMetaRareERC721CollectionTransactor // Write-only binding to the contract
- IMetaRareERC721CollectionFilterer // Log filterer for contract events
- }
- // IMetaRareERC721CollectionCaller is an auto generated read-only Go binding around an Ethereum contract.
- type IMetaRareERC721CollectionCaller struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // IMetaRareERC721CollectionTransactor is an auto generated write-only Go binding around an Ethereum contract.
- type IMetaRareERC721CollectionTransactor struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // IMetaRareERC721CollectionFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
- type IMetaRareERC721CollectionFilterer struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // IMetaRareERC721CollectionSession is an auto generated Go binding around an Ethereum contract,
- // with pre-set call and transact options.
- type IMetaRareERC721CollectionSession struct {
- Contract *IMetaRareERC721Collection // 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
- }
- // IMetaRareERC721CollectionCallerSession is an auto generated read-only Go binding around an Ethereum contract,
- // with pre-set call options.
- type IMetaRareERC721CollectionCallerSession struct {
- Contract *IMetaRareERC721CollectionCaller // Generic contract caller binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- }
- // IMetaRareERC721CollectionTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
- // with pre-set transact options.
- type IMetaRareERC721CollectionTransactorSession struct {
- Contract *IMetaRareERC721CollectionTransactor // Generic contract transactor binding to set the session for
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // IMetaRareERC721CollectionRaw is an auto generated low-level Go binding around an Ethereum contract.
- type IMetaRareERC721CollectionRaw struct {
- Contract *IMetaRareERC721Collection // Generic contract binding to access the raw methods on
- }
- // IMetaRareERC721CollectionCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
- type IMetaRareERC721CollectionCallerRaw struct {
- Contract *IMetaRareERC721CollectionCaller // Generic read-only contract binding to access the raw methods on
- }
- // IMetaRareERC721CollectionTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
- type IMetaRareERC721CollectionTransactorRaw struct {
- Contract *IMetaRareERC721CollectionTransactor // Generic write-only contract binding to access the raw methods on
- }
- // NewIMetaRareERC721Collection creates a new instance of IMetaRareERC721Collection, bound to a specific deployed contract.
- func NewIMetaRareERC721Collection(address common.Address, backend bind.ContractBackend) (*IMetaRareERC721Collection, error) {
- contract, err := bindIMetaRareERC721Collection(address, backend, backend, backend)
- if err != nil {
- return nil, err
- }
- return &IMetaRareERC721Collection{IMetaRareERC721CollectionCaller: IMetaRareERC721CollectionCaller{contract: contract}, IMetaRareERC721CollectionTransactor: IMetaRareERC721CollectionTransactor{contract: contract}, IMetaRareERC721CollectionFilterer: IMetaRareERC721CollectionFilterer{contract: contract}}, nil
- }
- // NewIMetaRareERC721CollectionCaller creates a new read-only instance of IMetaRareERC721Collection, bound to a specific deployed contract.
- func NewIMetaRareERC721CollectionCaller(address common.Address, caller bind.ContractCaller) (*IMetaRareERC721CollectionCaller, error) {
- contract, err := bindIMetaRareERC721Collection(address, caller, nil, nil)
- if err != nil {
- return nil, err
- }
- return &IMetaRareERC721CollectionCaller{contract: contract}, nil
- }
- // NewIMetaRareERC721CollectionTransactor creates a new write-only instance of IMetaRareERC721Collection, bound to a specific deployed contract.
- func NewIMetaRareERC721CollectionTransactor(address common.Address, transactor bind.ContractTransactor) (*IMetaRareERC721CollectionTransactor, error) {
- contract, err := bindIMetaRareERC721Collection(address, nil, transactor, nil)
- if err != nil {
- return nil, err
- }
- return &IMetaRareERC721CollectionTransactor{contract: contract}, nil
- }
- // NewIMetaRareERC721CollectionFilterer creates a new log filterer instance of IMetaRareERC721Collection, bound to a specific deployed contract.
- func NewIMetaRareERC721CollectionFilterer(address common.Address, filterer bind.ContractFilterer) (*IMetaRareERC721CollectionFilterer, error) {
- contract, err := bindIMetaRareERC721Collection(address, nil, nil, filterer)
- if err != nil {
- return nil, err
- }
- return &IMetaRareERC721CollectionFilterer{contract: contract}, nil
- }
- // bindIMetaRareERC721Collection binds a generic wrapper to an already deployed contract.
- func bindIMetaRareERC721Collection(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
- parsed, err := abi.JSON(strings.NewReader(IMetaRareERC721CollectionABI))
- 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 (_IMetaRareERC721Collection *IMetaRareERC721CollectionRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _IMetaRareERC721Collection.Contract.IMetaRareERC721CollectionCaller.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 (_IMetaRareERC721Collection *IMetaRareERC721CollectionRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _IMetaRareERC721Collection.Contract.IMetaRareERC721CollectionTransactor.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _IMetaRareERC721Collection.Contract.IMetaRareERC721CollectionTransactor.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 (_IMetaRareERC721Collection *IMetaRareERC721CollectionCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _IMetaRareERC721Collection.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 (_IMetaRareERC721Collection *IMetaRareERC721CollectionTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _IMetaRareERC721Collection.Contract.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _IMetaRareERC721Collection.Contract.contract.Transact(opts, method, params...)
- }
- // HasRole is a free data retrieval call binding the contract method 0x91d14854.
- //
- // Solidity: function hasRole(bytes32 , address ) view returns(bool)
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionCaller) HasRole(opts *bind.CallOpts, arg0 [32]byte, arg1 common.Address) (bool, error) {
- var out []interface{}
- err := _IMetaRareERC721Collection.contract.Call(opts, &out, "hasRole", arg0, arg1)
- if err != nil {
- return *new(bool), err
- }
- out0 := *abi.ConvertType(out[0], new(bool)).(*bool)
- return out0, err
- }
- // HasRole is a free data retrieval call binding the contract method 0x91d14854.
- //
- // Solidity: function hasRole(bytes32 , address ) view returns(bool)
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionSession) HasRole(arg0 [32]byte, arg1 common.Address) (bool, error) {
- return _IMetaRareERC721Collection.Contract.HasRole(&_IMetaRareERC721Collection.CallOpts, arg0, arg1)
- }
- // HasRole is a free data retrieval call binding the contract method 0x91d14854.
- //
- // Solidity: function hasRole(bytes32 , address ) view returns(bool)
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionCallerSession) HasRole(arg0 [32]byte, arg1 common.Address) (bool, error) {
- return _IMetaRareERC721Collection.Contract.HasRole(&_IMetaRareERC721Collection.CallOpts, arg0, arg1)
- }
- // OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
- //
- // Solidity: function ownerOf(uint256 tokenId) view returns(address)
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionCaller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error) {
- var out []interface{}
- err := _IMetaRareERC721Collection.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 (_IMetaRareERC721Collection *IMetaRareERC721CollectionSession) OwnerOf(tokenId *big.Int) (common.Address, error) {
- return _IMetaRareERC721Collection.Contract.OwnerOf(&_IMetaRareERC721Collection.CallOpts, tokenId)
- }
- // OwnerOf is a free data retrieval call binding the contract method 0x6352211e.
- //
- // Solidity: function ownerOf(uint256 tokenId) view returns(address)
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionCallerSession) OwnerOf(tokenId *big.Int) (common.Address, error) {
- return _IMetaRareERC721Collection.Contract.OwnerOf(&_IMetaRareERC721Collection.CallOpts, tokenId)
- }
- // Mint is a paid mutator transaction binding the contract method 0x40c10f19.
- //
- // Solidity: function mint(address , uint256 ) returns()
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionTransactor) Mint(opts *bind.TransactOpts, arg0 common.Address, arg1 *big.Int) (*types.Transaction, error) {
- return _IMetaRareERC721Collection.contract.Transact(opts, "mint", arg0, arg1)
- }
- // Mint is a paid mutator transaction binding the contract method 0x40c10f19.
- //
- // Solidity: function mint(address , uint256 ) returns()
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionSession) Mint(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error) {
- return _IMetaRareERC721Collection.Contract.Mint(&_IMetaRareERC721Collection.TransactOpts, arg0, arg1)
- }
- // Mint is a paid mutator transaction binding the contract method 0x40c10f19.
- //
- // Solidity: function mint(address , uint256 ) returns()
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionTransactorSession) Mint(arg0 common.Address, arg1 *big.Int) (*types.Transaction, error) {
- return _IMetaRareERC721Collection.Contract.Mint(&_IMetaRareERC721Collection.TransactOpts, arg0, arg1)
- }
- // TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd.
- //
- // Solidity: function transferFrom(address from, address to, uint256 tokenId) returns()
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
- return _IMetaRareERC721Collection.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 (_IMetaRareERC721Collection *IMetaRareERC721CollectionSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
- return _IMetaRareERC721Collection.Contract.TransferFrom(&_IMetaRareERC721Collection.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 (_IMetaRareERC721Collection *IMetaRareERC721CollectionTransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) {
- return _IMetaRareERC721Collection.Contract.TransferFrom(&_IMetaRareERC721Collection.TransactOpts, from, to, tokenId)
- }
- // TransferOnlyOperator is a paid mutator transaction binding the contract method 0x5145dc57.
- //
- // Solidity: function transferOnlyOperator(address , address , uint256 ) returns()
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionTransactor) TransferOnlyOperator(opts *bind.TransactOpts, arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error) {
- return _IMetaRareERC721Collection.contract.Transact(opts, "transferOnlyOperator", arg0, arg1, arg2)
- }
- // TransferOnlyOperator is a paid mutator transaction binding the contract method 0x5145dc57.
- //
- // Solidity: function transferOnlyOperator(address , address , uint256 ) returns()
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionSession) TransferOnlyOperator(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error) {
- return _IMetaRareERC721Collection.Contract.TransferOnlyOperator(&_IMetaRareERC721Collection.TransactOpts, arg0, arg1, arg2)
- }
- // TransferOnlyOperator is a paid mutator transaction binding the contract method 0x5145dc57.
- //
- // Solidity: function transferOnlyOperator(address , address , uint256 ) returns()
- func (_IMetaRareERC721Collection *IMetaRareERC721CollectionTransactorSession) TransferOnlyOperator(arg0 common.Address, arg1 common.Address, arg2 *big.Int) (*types.Transaction, error) {
- return _IMetaRareERC721Collection.Contract.TransferOnlyOperator(&_IMetaRareERC721Collection.TransactOpts, arg0, arg1, arg2)
- }
- // MetaRareOperatorMetaData contains all meta data concerning the MetaRareOperator contract.
- var MetaRareOperatorMetaData = &bind.MetaData{
- ABI: "[{\"inputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"inputs\":[],\"name\":\"DEFAULT_ADMIN_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"MINTER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"creationTaxRate\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"creators\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"name\":\"creatorsWithinCollection\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"assetAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"creationTax\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"treasuryTax\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"treasuryAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"internalType\":\"structMetaRareOperator.NFTVoucher\",\"name\":\"voucher\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"excuteMintingOrderWithERC1155Collection\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"assetAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"creationTax\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"treasuryTax\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"treasuryAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"internalType\":\"structMetaRareOperator.NFTVoucher\",\"name\":\"voucher\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"excuteMintingOrderWithERC1155MetaRareCollection\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"assetAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"creationTax\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"treasuryTax\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"treasuryAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"internalType\":\"structMetaRareOperator.NFTVoucher\",\"name\":\"voucher\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"excuteMintingOrderWithERC721Collection\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"assetAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"creationTax\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"treasuryTax\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"treasuryAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"internalType\":\"structMetaRareOperator.NFTVoucher\",\"name\":\"voucher\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"excuteMintingOrderWithERC721MetaRareCollection\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"assetAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"creationTax\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"treasuryTax\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"treasuryAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"internalType\":\"structMetaRareOperator.NFTVoucher\",\"name\":\"voucher\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"excuteTransferOrderWithERC1155Collection\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"components\":[{\"internalType\":\"address\",\"name\":\"signer\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"tokenAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenType\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"assetAddress\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"price\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"balance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"totalBalance\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"creationTax\",\"type\":\"uint256\"},{\"internalType\":\"uint256\",\"name\":\"treasuryTax\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"treasuryAddress\",\"type\":\"address\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"internalType\":\"structMetaRareOperator.NFTVoucher\",\"name\":\"voucher\",\"type\":\"tuple\"},{\"internalType\":\"bytes32\",\"name\":\"hash\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"excuteTransferOrderWithERC721Collection\",\"outputs\":[],\"stateMutability\":\"payable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"msgHash\",\"type\":\"bytes32\"},{\"internalType\":\"uint8\",\"name\":\"v\",\"type\":\"uint8\"},{\"internalType\":\"bytes32\",\"name\":\"r\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"s\",\"type\":\"bytes32\"}],\"name\":\"recoverAddress\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"pure\",\"type\":\"function\"}]",
- Sigs: map[string]string{
- "a217fddf": "DEFAULT_ADMIN_ROLE()",
- "d5391393": "MINTER_ROLE()",
- "5ac3ac45": "creationTaxRate(address,uint256)",
- "cd53d08e": "creators(uint256)",
- "0370a7a2": "creatorsWithinCollection(address,uint256)",
- "b2381e3d": "excuteMintingOrderWithERC1155Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string),bytes32,uint8,bytes32,bytes32)",
- "33bd3379": "excuteMintingOrderWithERC1155MetaRareCollection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string),bytes32,uint8,bytes32,bytes32)",
- "6104c09b": "excuteMintingOrderWithERC721Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string),bytes32,uint8,bytes32,bytes32)",
- "1f247a2f": "excuteMintingOrderWithERC721MetaRareCollection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string),bytes32,uint8,bytes32,bytes32)",
- "03b5b423": "excuteTransferOrderWithERC1155Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string),bytes32,uint8,bytes32,bytes32)",
- "ec938286": "excuteTransferOrderWithERC721Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string),bytes32,uint8,bytes32,bytes32)",
- "8428cf83": "recoverAddress(bytes32,uint8,bytes32,bytes32)",
- },
- Bin: "0x61014060405234801561001157600080fd5b5060408051808201825260088152674d4554415241524560c01b6020808301918252835180850190945260018452603160f81b908401528151902060e08190527fc89efdaa54c0f20c7adf612882df0950f5a951637e0307cdcb4c672f298b8bc66101008190524660a0529192917f8b73c3c69bb8fe3d512ecc4cf759cc79239f7b179b0ffacaa9a75d522b39400f6100ab8184846100c3565b6080523060601b60c052610120525061012992505050565b600083838346306040516020016100de9594939291906100fd565b6040516020818303038152906040528051906020012090509392505050565b9485526020850193909352604084019190915260608301526001600160a01b0316608082015260a00190565b60805160a05160c05160601c60e05161010051610120516122fd6200016a6000396000505060005050600050506000505060005050600050506122fd6000f3fe6080604052600436106100a75760003560e01c80638428cf83116100645780638428cf831461015d578063a217fddf1461017d578063b2381e3d14610192578063cd53d08e146101a5578063d5391393146101c5578063ec938286146101da576100a7565b80630370a7a2146100ac57806303b5b423146100e25780631f247a2f146100f757806333bd33791461010a5780635ac3ac451461011d5780636104c09b1461014a575b600080fd5b3480156100b857600080fd5b506100cc6100c7366004611ef7565b6101ed565b6040516100d99190612018565b60405180910390f35b6100f56100f0366004611f7c565b610213565b005b6100f5610105366004611f7c565b61087a565b6100f5610118366004611f7c565b610d0a565b34801561012957600080fd5b5061013d610138366004611ef7565b61133c565b6040516100d9919061212b565b6100f5610158366004611f7c565b611359565b34801561016957600080fd5b506100cc610178366004611f42565b6115a5565b34801561018957600080fd5b5061013d611600565b6100f56101a0366004611f7c565b611605565b3480156101b157600080fd5b506100cc6101c0366004611fe8565b61183a565b3480156101d157600080fd5b5061013d611855565b6100f56101e8366004611f7c565b611879565b60016020908152600092835260408084209091529082529020546001600160a01b031681565b6000610221858585856115a5565b90506102306020870187611ebf565b6001600160a01b0316816001600160a01b0316146102695760405162461bcd60e51b81526004016102609061218b565b60405180910390fd5b61027b61016087016101408801611ebf565b600380546001600160a01b0319166001600160a01b039290921691909117905560006102ad6040880160208901611ebf565b604051627eeac760e11b8152909150819060c0890135906001600160a01b0383169062fdd58e906102e890879060608e0135906004016120b1565b60206040518083038186803b15801561030057600080fd5b505afa158015610314573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906103389190612000565b10156103565760405162461bcd60e51b8152600401610260906121b6565b600061036860a08a0160808b01611ebf565b6001600160a01b031614156104f9578760a0013534101561039b5760405162461bcd60e51b815260040161026090612169565b8260006001816103b160408d0160208e01611ebf565b6001600160a01b0390811682526020808301939093526040918201600090812060608f01358252909352908220541691506104016127106103fb60a08e01356101208f0135611e7e565b90611e91565b905060008b60a00135905061042a6127106103fb8e610100013584611e7e90919063ffffffff16565b905060a08c01356104458261043f8386611e9d565b90611e9d565b6003546040519192506001600160a01b03169084156108fc029085906000818181858888f19350505050158015610480573d6000803e3d6000fd5b506040516001600160a01b0385169083156108fc029084906000818181858888f193505050501580156104b7573d6000803e3d6000fd5b506040516001600160a01b0386169082156108fc029083906000818181858888f193505050501580156104ee573d6000803e3d6000fd5b505050505050610804565b600061050b60a08a0160808b01611ebf565b90508860a00135816001600160a01b03166370a08231336040518263ffffffff1660e01b815260040161053e9190612018565b60206040518083038186803b15801561055657600080fd5b505afa15801561056a573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061058e9190612000565b10156105ac5760405162461bcd60e51b815260040161026090612169565b60006105c76127106103fb60a08d01356101208e0135611e7e565b905060006105e46127106103fb60a08e01356101008f0135611e7e565b905060006105fa8261043f60a08f013586611e9d565b90506000600160008e60200160208101906106159190611ebf565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008e60600135815260200190815260200160002060009054906101000a90046001600160a01b03169050846001600160a01b03166323b872dd33600360009054906101000a90046001600160a01b0316876040518463ffffffff1660e01b81526004016106a59392919061202c565b602060405180830381600087803b1580156106bf57600080fd5b505af11580156106d3573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906106f79190611f22565b506040516323b872dd60e01b81526001600160a01b038616906323b872dd906107289033908590889060040161202c565b602060405180830381600087803b15801561074257600080fd5b505af1158015610756573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061077a9190611f22565b506040516323b872dd60e01b81526001600160a01b038616906323b872dd906107ab9033908c90879060040161202c565b602060405180830381600087803b1580156107c557600080fd5b505af11580156107d9573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906107fd9190611f22565b5050505050505b604051637c7ae4d160e01b81526001600160a01b03821690637c7ae4d19061083e908690339060608e01359060c08f013590600401612050565b600060405180830381600087803b15801561085857600080fd5b505af115801561086c573d6000803e3d6000fd5b505050505050505050505050565b6000610888858585856115a5565b90506108976020870187611ebf565b6001600160a01b0316816001600160a01b0316146108c75760405162461bcd60e51b81526004016102609061218b565b606086013560009081526020818152604080832080546001600160a01b0319166001600160a01b0386811691909117918290551692600192909161091091908b01908b01611ebf565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008860600135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550856101000135600260008860200160208101906109869190611ebf565b6001600160a01b031681526020808201929092526040908101600090812060608b013582529092529020556109c361016087016101408801611ebf565b600380546001600160a01b0319166001600160a01b039290921691909117905560006109f56040880160208901611ebf565b9050806000610a0a60a08a0160808b01611ebf565b6001600160a01b03161415610ae6578760a00135341015610a3d5760405162461bcd60e51b815260040161026090612169565b826000610a596127106103fb60a08d01356101208e0135611e7e565b90506000610a6b60a08c013583611e9d565b6003546040519192506001600160a01b03169083156108fc029084906000818181858888f19350505050158015610aa6573d6000803e3d6000fd5b506040516001600160a01b0384169082156108fc029083906000818181858888f19350505050158015610add573d6000803e3d6000fd5b50505050610cd8565b6000610af860a08a0160808b01611ebf565b90508860a00135816001600160a01b03166370a08231336040518263ffffffff1660e01b8152600401610b2b9190612018565b60206040518083038186803b158015610b4357600080fd5b505afa158015610b57573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610b7b9190612000565b1015610b995760405162461bcd60e51b815260040161026090612169565b6000610bb46127106103fb60a08d01356101208e0135611e7e565b90506000610bc660a08c013583611e9d565b6003546040516323b872dd60e01b81529192506001600160a01b03808616926323b872dd92610bfe923392911690879060040161202c565b602060405180830381600087803b158015610c1857600080fd5b505af1158015610c2c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610c509190611f22565b506040516323b872dd60e01b81526001600160a01b038416906323b872dd90610c819033908a90869060040161202c565b602060405180830381600087803b158015610c9b57600080fd5b505af1158015610caf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190610cd39190611f22565b505050505b6040516340c10f1960e01b81526001600160a01b038216906340c10f199061083e90339060608d0135906004016120b1565b6000610d18858585856115a5565b9050610d276020870187611ebf565b6001600160a01b0316816001600160a01b031614610d575760405162461bcd60e51b81526004016102609061218b565b606086013560009081526020818152604080832080546001600160a01b0319166001600160a01b03868116919091179182905516926001929091610da091908b01908b01611ebf565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008860600135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b0316021790555085610100013560026000886020016020810190610e169190611ebf565b6001600160a01b031681526020808201929092526040908101600090812060608b01358252909252902055610e5361016087016101408801611ebf565b600380546001600160a01b0319166001600160a01b03929092169190911790556000610e856040880160208901611ebf565b9050806000610e9a60a08a0160808b01611ebf565b6001600160a01b03161415610f76578760a00135341015610ecd5760405162461bcd60e51b815260040161026090612169565b826000610ee96127106103fb60a08d01356101208e0135611e7e565b90506000610efb60a08c013583611e9d565b6003546040519192506001600160a01b03169083156108fc029084906000818181858888f19350505050158015610f36573d6000803e3d6000fd5b506040516001600160a01b0384169082156108fc029083906000818181858888f19350505050158015610f6d573d6000803e3d6000fd5b50505050611168565b6000610f8860a08a0160808b01611ebf565b90508860a00135816001600160a01b03166370a08231336040518263ffffffff1660e01b8152600401610fbb9190612018565b60206040518083038186803b158015610fd357600080fd5b505afa158015610fe7573d6000803e3d6000fd5b505050506040513d601f19601f8201168201806040525081019061100b9190612000565b10156110295760405162461bcd60e51b815260040161026090612169565b60006110446127106103fb60a08d01356101208e0135611e7e565b9050600061105660a08c013583611e9d565b6003546040516323b872dd60e01b81529192506001600160a01b03808616926323b872dd9261108e923392911690879060040161202c565b602060405180830381600087803b1580156110a857600080fd5b505af11580156110bc573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906110e09190611f22565b506040516323b872dd60e01b81526001600160a01b038416906323b872dd906111119033908a90869060040161202c565b602060405180830381600087803b15801561112b57600080fd5b505af115801561113f573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111639190611f22565b505050505b604051634f558e7960e01b81526001600160a01b03821690634f558e79906111989060608c01359060040161212b565b60206040518083038186803b1580156111b057600080fd5b505afa1580156111c4573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906111e89190611f22565b6112f8576001600160a01b0381166361321c148460608b013560e08c01356112146101608e018e6121f7565b6040518663ffffffff1660e01b81526004016112349594939291906120ca565b602060405180830381600087803b15801561124e57600080fd5b505af1158015611262573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906112869190612000565b50604051637921219560e11b81526001600160a01b0382169063f242432a906112c1908690339060608e01359060c08f013590600401612079565b600060405180830381600087803b1580156112db57600080fd5b505af11580156112ef573d6000803e3d6000fd5b50505050611332565b604051637921219560e11b81526001600160a01b0382169063f242432a9061083e908690339060608e01359060c08f013590600401612079565b5050505050505050565b600260209081526000928352604080842090915290825290205481565b6000611367858585856115a5565b90506113766020870187611ebf565b6001600160a01b0316816001600160a01b0316146113a65760405162461bcd60e51b81526004016102609061218b565b606086013560009081526020818152604080832080546001600160a01b0319166001600160a01b038681169190911791829055169260019290916113ef91908b01908b01611ebf565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008860600135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550856101000135600260008860200160208101906114659190611ebf565b6001600160a01b031681526020808201929092526040908101600090812060608b013582529092529020556114a261016087016101408801611ebf565b600380546001600160a01b0319166001600160a01b039290921691909117905560006114d46040880160208901611ebf565b604051632474521560e21b815290915081906001600160a01b038216906391d1485490611527907f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a6908790600401612134565b60206040518083038186803b15801561153f57600080fd5b505afa158015611553573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906115779190611f22565b6115935760405162461bcd60e51b8152600401610260906121b6565b6000610a0a60a08a0160808b01611ebf565b6000600185858585604051600081526020016040526040516115ca949392919061214b565b6020604051602081039080840390855afa1580156115ec573d6000803e3d6000fd5b5050604051601f1901519695505050505050565b600081565b6000611613858585856115a5565b90506116226020870187611ebf565b6001600160a01b0316816001600160a01b0316146116525760405162461bcd60e51b81526004016102609061218b565b606086013560009081526020818152604080832080546001600160a01b0319166001600160a01b0386811691909117918290551692600192909161169b91908b01908b01611ebf565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008860600135815260200190815260200160002060006101000a8154816001600160a01b0302191690836001600160a01b03160217905550856101000135600260008860200160208101906117119190611ebf565b6001600160a01b031681526020808201929092526040908101600090812060608b0135825290925290205561174e61016087016101408801611ebf565b600380546001600160a01b0319166001600160a01b039290921691909117905560006117806040880160208901611ebf565b90506000819050826001600160a01b0316816001600160a01b0316638da5cb5b6040518163ffffffff1660e01b815260040160206040518083038186803b1580156117ca57600080fd5b505afa1580156117de573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906118029190611edb565b6001600160a01b0316146118285760405162461bcd60e51b8152600401610260906121b6565b6000610e9a60a08a0160808b01611ebf565b6000602081905290815260409020546001600160a01b031681565b7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b6000611887858585856115a5565b90506118966020870187611ebf565b6001600160a01b0316816001600160a01b0316146118c65760405162461bcd60e51b81526004016102609061218b565b6118d861016087016101408801611ebf565b600380546001600160a01b0319166001600160a01b0392909216919091179055600061190a6040880160208901611ebf565b6040516331a9108f60e11b815290915081906001600160a01b038085169190831690636352211e906119449060608d01359060040161212b565b60206040518083038186803b15801561195c57600080fd5b505afa158015611970573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906119949190611edb565b6001600160a01b0316146119ba5760405162461bcd60e51b8152600401610260906121b6565b60006119cc60a08a0160808b01611ebf565b6001600160a01b03161415611b4e578760a001353410156119ff5760405162461bcd60e51b815260040161026090612169565b826000600181611a1560408d0160208e01611ebf565b6001600160a01b0390811682526020808301939093526040918201600090812060608f0135825290935290822054169150611a5f6127106103fb60a08e01356101208f0135611e7e565b90506000611a856127106103fb8e61010001358f60a00135611e7e90919063ffffffff16565b905060a08c0135611a9a8261043f8386611e9d565b6003546040519192506001600160a01b03169084156108fc029085906000818181858888f19350505050158015611ad5573d6000803e3d6000fd5b506040516001600160a01b0385169083156108fc029084906000818181858888f19350505050158015611b0c573d6000803e3d6000fd5b506040516001600160a01b0386169082156108fc029083906000818181858888f19350505050158015611b43573d6000803e3d6000fd5b505050505050611e4a565b6000611b6060a08a0160808b01611ebf565b90508860a00135816001600160a01b03166370a08231336040518263ffffffff1660e01b8152600401611b939190612018565b60206040518083038186803b158015611bab57600080fd5b505afa158015611bbf573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611be39190612000565b1015611c015760405162461bcd60e51b815260040161026090612169565b6000611c1c6127106103fb60a08d01356101208e0135611e7e565b90506000611c396127106103fb60a08e01356101008f0135611e7e565b90506000611c4f8261043f60a08f013586611e9d565b6003546040516323b872dd60e01b81529192506001600160a01b03808716926323b872dd92611c87923392911690889060040161202c565b602060405180830381600087803b158015611ca157600080fd5b505af1158015611cb5573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611cd99190611f22565b506000600160008e6020016020810190611cf39190611ebf565b6001600160a01b03166001600160a01b0316815260200190815260200160002060008e60600135815260200190815260200160002060009054906101000a90046001600160a01b03169050846001600160a01b03166323b872dd3383866040518463ffffffff1660e01b8152600401611d6e9392919061202c565b602060405180830381600087803b158015611d8857600080fd5b505af1158015611d9c573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611dc09190611f22565b506040516323b872dd60e01b81526001600160a01b038616906323b872dd90611df19033908c90879060040161202c565b602060405180830381600087803b158015611e0b57600080fd5b505af1158015611e1f573d6000803e3d6000fd5b505050506040513d601f19601f82011682018060405250810190611e439190611f22565b5050505050505b604051635145dc5760e01b81526001600160a01b03821690635145dc579061083e908690339060608e01359060040161202c565b6000611e8a8284612263565b9392505050565b6000611e8a8284612243565b6000611e8a8284612282565b803560ff81168114611eba57600080fd5b919050565b600060208284031215611ed0578081fd5b8135611e8a816122af565b600060208284031215611eec578081fd5b8151611e8a816122af565b60008060408385031215611f09578081fd5b8235611f14816122af565b946020939093013593505050565b600060208284031215611f33578081fd5b81518015158114611e8a578182fd5b60008060008060808587031215611f57578182fd5b84359350611f6760208601611ea9565b93969395505050506040820135916060013590565b600080600080600060a08688031215611f93578081fd5b853567ffffffffffffffff811115611fa9578182fd5b86016101808189031215611fbb578182fd5b945060208601359350611fd060408701611ea9565b94979396509394606081013594506080013592915050565b600060208284031215611ff9578081fd5b5035919050565b600060208284031215612011578081fd5b5051919050565b6001600160a01b0391909116815260200190565b6001600160a01b039384168152919092166020820152604081019190915260600190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260800190565b6001600160a01b0394851681529290931660208301526040820152606081019190915260a06080820181905260009082015260c00190565b6001600160a01b03929092168252602082015260400190565b600060018060a01b038716825285602083015284604083015260a060608301528260a0830152828460c08401378060c08484010152601f19601f840116820160c08382030160808401528160c082015260e081019150509695505050505050565b90815260200190565b9182526001600160a01b0316602082015260400190565b93845260ff9290921660208401526040830152606082015260800190565b6020808252600890820152674e6f206d6f6e657960c01b604082015260600190565b602080825260119082015270496e76616c6964207369676e617475726560781b604082015260600190565b60208082526021908201527f5369676e617475726520696e76616c6964206f7220756e617574686f72697a656040820152601960fa1b606082015260800190565b6000808335601e1984360301811261220d578283fd5b83018035915067ffffffffffffffff821115612227578283fd5b60200191503681900382131561223c57600080fd5b9250929050565b60008261225e57634e487b7160e01b81526012600452602481fd5b500490565b600081600019048311821515161561227d5761227d612299565b500290565b60008282101561229457612294612299565b500390565b634e487b7160e01b600052601160045260246000fd5b6001600160a01b03811681146122c457600080fd5b5056fea26469706673582212204d544963f58a467c293a895508e8d68efe851ff78b519b05a6a5aae62f36a55964736f6c63430008000033",
- }
- // MetaRareOperatorABI is the input ABI used to generate the binding from.
- // Deprecated: Use MetaRareOperatorMetaData.ABI instead.
- var MetaRareOperatorABI = MetaRareOperatorMetaData.ABI
- // Deprecated: Use MetaRareOperatorMetaData.Sigs instead.
- // MetaRareOperatorFuncSigs maps the 4-byte function signature to its string representation.
- var MetaRareOperatorFuncSigs = MetaRareOperatorMetaData.Sigs
- // MetaRareOperatorBin is the compiled bytecode used for deploying new contracts.
- // Deprecated: Use MetaRareOperatorMetaData.Bin instead.
- var MetaRareOperatorBin = MetaRareOperatorMetaData.Bin
- // DeployMetaRareOperator deploys a new Ethereum contract, binding an instance of MetaRareOperator to it.
- func DeployMetaRareOperator(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *MetaRareOperator, error) {
- parsed, err := MetaRareOperatorMetaData.GetAbi()
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- if parsed == nil {
- return common.Address{}, nil, nil, errors.New("GetABI returned nil")
- }
- address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(MetaRareOperatorBin), backend)
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- return address, tx, &MetaRareOperator{MetaRareOperatorCaller: MetaRareOperatorCaller{contract: contract}, MetaRareOperatorTransactor: MetaRareOperatorTransactor{contract: contract}, MetaRareOperatorFilterer: MetaRareOperatorFilterer{contract: contract}}, nil
- }
- // MetaRareOperator is an auto generated Go binding around an Ethereum contract.
- type MetaRareOperator struct {
- MetaRareOperatorCaller // Read-only binding to the contract
- MetaRareOperatorTransactor // Write-only binding to the contract
- MetaRareOperatorFilterer // Log filterer for contract events
- }
- // MetaRareOperatorCaller is an auto generated read-only Go binding around an Ethereum contract.
- type MetaRareOperatorCaller struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // MetaRareOperatorTransactor is an auto generated write-only Go binding around an Ethereum contract.
- type MetaRareOperatorTransactor struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // MetaRareOperatorFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
- type MetaRareOperatorFilterer struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // MetaRareOperatorSession is an auto generated Go binding around an Ethereum contract,
- // with pre-set call and transact options.
- type MetaRareOperatorSession struct {
- Contract *MetaRareOperator // 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
- }
- // MetaRareOperatorCallerSession is an auto generated read-only Go binding around an Ethereum contract,
- // with pre-set call options.
- type MetaRareOperatorCallerSession struct {
- Contract *MetaRareOperatorCaller // Generic contract caller binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- }
- // MetaRareOperatorTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
- // with pre-set transact options.
- type MetaRareOperatorTransactorSession struct {
- Contract *MetaRareOperatorTransactor // Generic contract transactor binding to set the session for
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // MetaRareOperatorRaw is an auto generated low-level Go binding around an Ethereum contract.
- type MetaRareOperatorRaw struct {
- Contract *MetaRareOperator // Generic contract binding to access the raw methods on
- }
- // MetaRareOperatorCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
- type MetaRareOperatorCallerRaw struct {
- Contract *MetaRareOperatorCaller // Generic read-only contract binding to access the raw methods on
- }
- // MetaRareOperatorTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
- type MetaRareOperatorTransactorRaw struct {
- Contract *MetaRareOperatorTransactor // Generic write-only contract binding to access the raw methods on
- }
- // NewMetaRareOperator creates a new instance of MetaRareOperator, bound to a specific deployed contract.
- func NewMetaRareOperator(address common.Address, backend bind.ContractBackend) (*MetaRareOperator, error) {
- contract, err := bindMetaRareOperator(address, backend, backend, backend)
- if err != nil {
- return nil, err
- }
- return &MetaRareOperator{MetaRareOperatorCaller: MetaRareOperatorCaller{contract: contract}, MetaRareOperatorTransactor: MetaRareOperatorTransactor{contract: contract}, MetaRareOperatorFilterer: MetaRareOperatorFilterer{contract: contract}}, nil
- }
- // NewMetaRareOperatorCaller creates a new read-only instance of MetaRareOperator, bound to a specific deployed contract.
- func NewMetaRareOperatorCaller(address common.Address, caller bind.ContractCaller) (*MetaRareOperatorCaller, error) {
- contract, err := bindMetaRareOperator(address, caller, nil, nil)
- if err != nil {
- return nil, err
- }
- return &MetaRareOperatorCaller{contract: contract}, nil
- }
- // NewMetaRareOperatorTransactor creates a new write-only instance of MetaRareOperator, bound to a specific deployed contract.
- func NewMetaRareOperatorTransactor(address common.Address, transactor bind.ContractTransactor) (*MetaRareOperatorTransactor, error) {
- contract, err := bindMetaRareOperator(address, nil, transactor, nil)
- if err != nil {
- return nil, err
- }
- return &MetaRareOperatorTransactor{contract: contract}, nil
- }
- // NewMetaRareOperatorFilterer creates a new log filterer instance of MetaRareOperator, bound to a specific deployed contract.
- func NewMetaRareOperatorFilterer(address common.Address, filterer bind.ContractFilterer) (*MetaRareOperatorFilterer, error) {
- contract, err := bindMetaRareOperator(address, nil, nil, filterer)
- if err != nil {
- return nil, err
- }
- return &MetaRareOperatorFilterer{contract: contract}, nil
- }
- // bindMetaRareOperator binds a generic wrapper to an already deployed contract.
- func bindMetaRareOperator(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
- parsed, err := abi.JSON(strings.NewReader(MetaRareOperatorABI))
- 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 (_MetaRareOperator *MetaRareOperatorRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _MetaRareOperator.Contract.MetaRareOperatorCaller.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 (_MetaRareOperator *MetaRareOperatorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.MetaRareOperatorTransactor.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_MetaRareOperator *MetaRareOperatorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.MetaRareOperatorTransactor.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 (_MetaRareOperator *MetaRareOperatorCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _MetaRareOperator.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 (_MetaRareOperator *MetaRareOperatorTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_MetaRareOperator *MetaRareOperatorTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.contract.Transact(opts, method, params...)
- }
- // DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
- //
- // Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
- func (_MetaRareOperator *MetaRareOperatorCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error) {
- var out []interface{}
- err := _MetaRareOperator.contract.Call(opts, &out, "DEFAULT_ADMIN_ROLE")
- if err != nil {
- return *new([32]byte), err
- }
- out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
- return out0, err
- }
- // DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
- //
- // Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
- func (_MetaRareOperator *MetaRareOperatorSession) DEFAULTADMINROLE() ([32]byte, error) {
- return _MetaRareOperator.Contract.DEFAULTADMINROLE(&_MetaRareOperator.CallOpts)
- }
- // DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf.
- //
- // Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32)
- func (_MetaRareOperator *MetaRareOperatorCallerSession) DEFAULTADMINROLE() ([32]byte, error) {
- return _MetaRareOperator.Contract.DEFAULTADMINROLE(&_MetaRareOperator.CallOpts)
- }
- // MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.
- //
- // Solidity: function MINTER_ROLE() view returns(bytes32)
- func (_MetaRareOperator *MetaRareOperatorCaller) MINTERROLE(opts *bind.CallOpts) ([32]byte, error) {
- var out []interface{}
- err := _MetaRareOperator.contract.Call(opts, &out, "MINTER_ROLE")
- if err != nil {
- return *new([32]byte), err
- }
- out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte)
- return out0, err
- }
- // MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.
- //
- // Solidity: function MINTER_ROLE() view returns(bytes32)
- func (_MetaRareOperator *MetaRareOperatorSession) MINTERROLE() ([32]byte, error) {
- return _MetaRareOperator.Contract.MINTERROLE(&_MetaRareOperator.CallOpts)
- }
- // MINTERROLE is a free data retrieval call binding the contract method 0xd5391393.
- //
- // Solidity: function MINTER_ROLE() view returns(bytes32)
- func (_MetaRareOperator *MetaRareOperatorCallerSession) MINTERROLE() ([32]byte, error) {
- return _MetaRareOperator.Contract.MINTERROLE(&_MetaRareOperator.CallOpts)
- }
- // CreationTaxRate is a free data retrieval call binding the contract method 0x5ac3ac45.
- //
- // Solidity: function creationTaxRate(address , uint256 ) view returns(uint256)
- func (_MetaRareOperator *MetaRareOperatorCaller) CreationTaxRate(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (*big.Int, error) {
- var out []interface{}
- err := _MetaRareOperator.contract.Call(opts, &out, "creationTaxRate", arg0, arg1)
- if err != nil {
- return *new(*big.Int), err
- }
- out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int)
- return out0, err
- }
- // CreationTaxRate is a free data retrieval call binding the contract method 0x5ac3ac45.
- //
- // Solidity: function creationTaxRate(address , uint256 ) view returns(uint256)
- func (_MetaRareOperator *MetaRareOperatorSession) CreationTaxRate(arg0 common.Address, arg1 *big.Int) (*big.Int, error) {
- return _MetaRareOperator.Contract.CreationTaxRate(&_MetaRareOperator.CallOpts, arg0, arg1)
- }
- // CreationTaxRate is a free data retrieval call binding the contract method 0x5ac3ac45.
- //
- // Solidity: function creationTaxRate(address , uint256 ) view returns(uint256)
- func (_MetaRareOperator *MetaRareOperatorCallerSession) CreationTaxRate(arg0 common.Address, arg1 *big.Int) (*big.Int, error) {
- return _MetaRareOperator.Contract.CreationTaxRate(&_MetaRareOperator.CallOpts, arg0, arg1)
- }
- // Creators is a free data retrieval call binding the contract method 0xcd53d08e.
- //
- // Solidity: function creators(uint256 ) view returns(address)
- func (_MetaRareOperator *MetaRareOperatorCaller) Creators(opts *bind.CallOpts, arg0 *big.Int) (common.Address, error) {
- var out []interface{}
- err := _MetaRareOperator.contract.Call(opts, &out, "creators", arg0)
- if err != nil {
- return *new(common.Address), err
- }
- out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
- return out0, err
- }
- // Creators is a free data retrieval call binding the contract method 0xcd53d08e.
- //
- // Solidity: function creators(uint256 ) view returns(address)
- func (_MetaRareOperator *MetaRareOperatorSession) Creators(arg0 *big.Int) (common.Address, error) {
- return _MetaRareOperator.Contract.Creators(&_MetaRareOperator.CallOpts, arg0)
- }
- // Creators is a free data retrieval call binding the contract method 0xcd53d08e.
- //
- // Solidity: function creators(uint256 ) view returns(address)
- func (_MetaRareOperator *MetaRareOperatorCallerSession) Creators(arg0 *big.Int) (common.Address, error) {
- return _MetaRareOperator.Contract.Creators(&_MetaRareOperator.CallOpts, arg0)
- }
- // CreatorsWithinCollection is a free data retrieval call binding the contract method 0x0370a7a2.
- //
- // Solidity: function creatorsWithinCollection(address , uint256 ) view returns(address)
- func (_MetaRareOperator *MetaRareOperatorCaller) CreatorsWithinCollection(opts *bind.CallOpts, arg0 common.Address, arg1 *big.Int) (common.Address, error) {
- var out []interface{}
- err := _MetaRareOperator.contract.Call(opts, &out, "creatorsWithinCollection", arg0, arg1)
- if err != nil {
- return *new(common.Address), err
- }
- out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
- return out0, err
- }
- // CreatorsWithinCollection is a free data retrieval call binding the contract method 0x0370a7a2.
- //
- // Solidity: function creatorsWithinCollection(address , uint256 ) view returns(address)
- func (_MetaRareOperator *MetaRareOperatorSession) CreatorsWithinCollection(arg0 common.Address, arg1 *big.Int) (common.Address, error) {
- return _MetaRareOperator.Contract.CreatorsWithinCollection(&_MetaRareOperator.CallOpts, arg0, arg1)
- }
- // CreatorsWithinCollection is a free data retrieval call binding the contract method 0x0370a7a2.
- //
- // Solidity: function creatorsWithinCollection(address , uint256 ) view returns(address)
- func (_MetaRareOperator *MetaRareOperatorCallerSession) CreatorsWithinCollection(arg0 common.Address, arg1 *big.Int) (common.Address, error) {
- return _MetaRareOperator.Contract.CreatorsWithinCollection(&_MetaRareOperator.CallOpts, arg0, arg1)
- }
- // RecoverAddress is a free data retrieval call binding the contract method 0x8428cf83.
- //
- // Solidity: function recoverAddress(bytes32 msgHash, uint8 v, bytes32 r, bytes32 s) pure returns(address)
- func (_MetaRareOperator *MetaRareOperatorCaller) RecoverAddress(opts *bind.CallOpts, msgHash [32]byte, v uint8, r [32]byte, s [32]byte) (common.Address, error) {
- var out []interface{}
- err := _MetaRareOperator.contract.Call(opts, &out, "recoverAddress", msgHash, v, r, s)
- if err != nil {
- return *new(common.Address), err
- }
- out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address)
- return out0, err
- }
- // RecoverAddress is a free data retrieval call binding the contract method 0x8428cf83.
- //
- // Solidity: function recoverAddress(bytes32 msgHash, uint8 v, bytes32 r, bytes32 s) pure returns(address)
- func (_MetaRareOperator *MetaRareOperatorSession) RecoverAddress(msgHash [32]byte, v uint8, r [32]byte, s [32]byte) (common.Address, error) {
- return _MetaRareOperator.Contract.RecoverAddress(&_MetaRareOperator.CallOpts, msgHash, v, r, s)
- }
- // RecoverAddress is a free data retrieval call binding the contract method 0x8428cf83.
- //
- // Solidity: function recoverAddress(bytes32 msgHash, uint8 v, bytes32 r, bytes32 s) pure returns(address)
- func (_MetaRareOperator *MetaRareOperatorCallerSession) RecoverAddress(msgHash [32]byte, v uint8, r [32]byte, s [32]byte) (common.Address, error) {
- return _MetaRareOperator.Contract.RecoverAddress(&_MetaRareOperator.CallOpts, msgHash, v, r, s)
- }
- // ExcuteMintingOrderWithERC1155Collection is a paid mutator transaction binding the contract method 0xb2381e3d.
- //
- // Solidity: function excuteMintingOrderWithERC1155Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorTransactor) ExcuteMintingOrderWithERC1155Collection(opts *bind.TransactOpts, voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.contract.Transact(opts, "excuteMintingOrderWithERC1155Collection", voucher, hash, v, r, s)
- }
- // ExcuteMintingOrderWithERC1155Collection is a paid mutator transaction binding the contract method 0xb2381e3d.
- //
- // Solidity: function excuteMintingOrderWithERC1155Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorSession) ExcuteMintingOrderWithERC1155Collection(voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.ExcuteMintingOrderWithERC1155Collection(&_MetaRareOperator.TransactOpts, voucher, hash, v, r, s)
- }
- // ExcuteMintingOrderWithERC1155Collection is a paid mutator transaction binding the contract method 0xb2381e3d.
- //
- // Solidity: function excuteMintingOrderWithERC1155Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorTransactorSession) ExcuteMintingOrderWithERC1155Collection(voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.ExcuteMintingOrderWithERC1155Collection(&_MetaRareOperator.TransactOpts, voucher, hash, v, r, s)
- }
- // ExcuteMintingOrderWithERC1155MetaRareCollection is a paid mutator transaction binding the contract method 0x33bd3379.
- //
- // Solidity: function excuteMintingOrderWithERC1155MetaRareCollection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorTransactor) ExcuteMintingOrderWithERC1155MetaRareCollection(opts *bind.TransactOpts, voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.contract.Transact(opts, "excuteMintingOrderWithERC1155MetaRareCollection", voucher, hash, v, r, s)
- }
- // ExcuteMintingOrderWithERC1155MetaRareCollection is a paid mutator transaction binding the contract method 0x33bd3379.
- //
- // Solidity: function excuteMintingOrderWithERC1155MetaRareCollection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorSession) ExcuteMintingOrderWithERC1155MetaRareCollection(voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.ExcuteMintingOrderWithERC1155MetaRareCollection(&_MetaRareOperator.TransactOpts, voucher, hash, v, r, s)
- }
- // ExcuteMintingOrderWithERC1155MetaRareCollection is a paid mutator transaction binding the contract method 0x33bd3379.
- //
- // Solidity: function excuteMintingOrderWithERC1155MetaRareCollection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorTransactorSession) ExcuteMintingOrderWithERC1155MetaRareCollection(voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.ExcuteMintingOrderWithERC1155MetaRareCollection(&_MetaRareOperator.TransactOpts, voucher, hash, v, r, s)
- }
- // ExcuteMintingOrderWithERC721Collection is a paid mutator transaction binding the contract method 0x6104c09b.
- //
- // Solidity: function excuteMintingOrderWithERC721Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorTransactor) ExcuteMintingOrderWithERC721Collection(opts *bind.TransactOpts, voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.contract.Transact(opts, "excuteMintingOrderWithERC721Collection", voucher, hash, v, r, s)
- }
- // ExcuteMintingOrderWithERC721Collection is a paid mutator transaction binding the contract method 0x6104c09b.
- //
- // Solidity: function excuteMintingOrderWithERC721Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorSession) ExcuteMintingOrderWithERC721Collection(voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.ExcuteMintingOrderWithERC721Collection(&_MetaRareOperator.TransactOpts, voucher, hash, v, r, s)
- }
- // ExcuteMintingOrderWithERC721Collection is a paid mutator transaction binding the contract method 0x6104c09b.
- //
- // Solidity: function excuteMintingOrderWithERC721Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorTransactorSession) ExcuteMintingOrderWithERC721Collection(voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.ExcuteMintingOrderWithERC721Collection(&_MetaRareOperator.TransactOpts, voucher, hash, v, r, s)
- }
- // ExcuteMintingOrderWithERC721MetaRareCollection is a paid mutator transaction binding the contract method 0x1f247a2f.
- //
- // Solidity: function excuteMintingOrderWithERC721MetaRareCollection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorTransactor) ExcuteMintingOrderWithERC721MetaRareCollection(opts *bind.TransactOpts, voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.contract.Transact(opts, "excuteMintingOrderWithERC721MetaRareCollection", voucher, hash, v, r, s)
- }
- // ExcuteMintingOrderWithERC721MetaRareCollection is a paid mutator transaction binding the contract method 0x1f247a2f.
- //
- // Solidity: function excuteMintingOrderWithERC721MetaRareCollection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorSession) ExcuteMintingOrderWithERC721MetaRareCollection(voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.ExcuteMintingOrderWithERC721MetaRareCollection(&_MetaRareOperator.TransactOpts, voucher, hash, v, r, s)
- }
- // ExcuteMintingOrderWithERC721MetaRareCollection is a paid mutator transaction binding the contract method 0x1f247a2f.
- //
- // Solidity: function excuteMintingOrderWithERC721MetaRareCollection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorTransactorSession) ExcuteMintingOrderWithERC721MetaRareCollection(voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.ExcuteMintingOrderWithERC721MetaRareCollection(&_MetaRareOperator.TransactOpts, voucher, hash, v, r, s)
- }
- // ExcuteTransferOrderWithERC1155Collection is a paid mutator transaction binding the contract method 0x03b5b423.
- //
- // Solidity: function excuteTransferOrderWithERC1155Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorTransactor) ExcuteTransferOrderWithERC1155Collection(opts *bind.TransactOpts, voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.contract.Transact(opts, "excuteTransferOrderWithERC1155Collection", voucher, hash, v, r, s)
- }
- // ExcuteTransferOrderWithERC1155Collection is a paid mutator transaction binding the contract method 0x03b5b423.
- //
- // Solidity: function excuteTransferOrderWithERC1155Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorSession) ExcuteTransferOrderWithERC1155Collection(voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.ExcuteTransferOrderWithERC1155Collection(&_MetaRareOperator.TransactOpts, voucher, hash, v, r, s)
- }
- // ExcuteTransferOrderWithERC1155Collection is a paid mutator transaction binding the contract method 0x03b5b423.
- //
- // Solidity: function excuteTransferOrderWithERC1155Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorTransactorSession) ExcuteTransferOrderWithERC1155Collection(voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.ExcuteTransferOrderWithERC1155Collection(&_MetaRareOperator.TransactOpts, voucher, hash, v, r, s)
- }
- // ExcuteTransferOrderWithERC721Collection is a paid mutator transaction binding the contract method 0xec938286.
- //
- // Solidity: function excuteTransferOrderWithERC721Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorTransactor) ExcuteTransferOrderWithERC721Collection(opts *bind.TransactOpts, voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.contract.Transact(opts, "excuteTransferOrderWithERC721Collection", voucher, hash, v, r, s)
- }
- // ExcuteTransferOrderWithERC721Collection is a paid mutator transaction binding the contract method 0xec938286.
- //
- // Solidity: function excuteTransferOrderWithERC721Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorSession) ExcuteTransferOrderWithERC721Collection(voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.ExcuteTransferOrderWithERC721Collection(&_MetaRareOperator.TransactOpts, voucher, hash, v, r, s)
- }
- // ExcuteTransferOrderWithERC721Collection is a paid mutator transaction binding the contract method 0xec938286.
- //
- // Solidity: function excuteTransferOrderWithERC721Collection((address,address,uint256,uint256,address,uint256,uint256,uint256,uint256,uint256,address,string) voucher, bytes32 hash, uint8 v, bytes32 r, bytes32 s) payable returns()
- func (_MetaRareOperator *MetaRareOperatorTransactorSession) ExcuteTransferOrderWithERC721Collection(voucher MetaRareOperatorNFTVoucher, hash [32]byte, v uint8, r [32]byte, s [32]byte) (*types.Transaction, error) {
- return _MetaRareOperator.Contract.ExcuteTransferOrderWithERC721Collection(&_MetaRareOperator.TransactOpts, voucher, hash, v, r, s)
- }
- // SafeMathMetaData contains all meta data concerning the SafeMath contract.
- var SafeMathMetaData = &bind.MetaData{
- ABI: "[]",
- Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212204173583db44453e2ec033090065c8f937218a7a4d9cd71e88b72d5f40c689bfd64736f6c63430008000033",
- }
- // SafeMathABI is the input ABI used to generate the binding from.
- // Deprecated: Use SafeMathMetaData.ABI instead.
- var SafeMathABI = SafeMathMetaData.ABI
- // SafeMathBin is the compiled bytecode used for deploying new contracts.
- // Deprecated: Use SafeMathMetaData.Bin instead.
- var SafeMathBin = SafeMathMetaData.Bin
- // DeploySafeMath deploys a new Ethereum contract, binding an instance of SafeMath to it.
- func DeploySafeMath(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *SafeMath, error) {
- parsed, err := SafeMathMetaData.GetAbi()
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- if parsed == nil {
- return common.Address{}, nil, nil, errors.New("GetABI returned nil")
- }
- address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(SafeMathBin), backend)
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- return address, tx, &SafeMath{SafeMathCaller: SafeMathCaller{contract: contract}, SafeMathTransactor: SafeMathTransactor{contract: contract}, SafeMathFilterer: SafeMathFilterer{contract: contract}}, nil
- }
- // SafeMath is an auto generated Go binding around an Ethereum contract.
- type SafeMath struct {
- SafeMathCaller // Read-only binding to the contract
- SafeMathTransactor // Write-only binding to the contract
- SafeMathFilterer // Log filterer for contract events
- }
- // SafeMathCaller is an auto generated read-only Go binding around an Ethereum contract.
- type SafeMathCaller struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // SafeMathTransactor is an auto generated write-only Go binding around an Ethereum contract.
- type SafeMathTransactor struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // SafeMathFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
- type SafeMathFilterer struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // SafeMathSession is an auto generated Go binding around an Ethereum contract,
- // with pre-set call and transact options.
- type SafeMathSession struct {
- Contract *SafeMath // 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
- }
- // SafeMathCallerSession is an auto generated read-only Go binding around an Ethereum contract,
- // with pre-set call options.
- type SafeMathCallerSession struct {
- Contract *SafeMathCaller // Generic contract caller binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- }
- // SafeMathTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
- // with pre-set transact options.
- type SafeMathTransactorSession struct {
- Contract *SafeMathTransactor // Generic contract transactor binding to set the session for
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // SafeMathRaw is an auto generated low-level Go binding around an Ethereum contract.
- type SafeMathRaw struct {
- Contract *SafeMath // Generic contract binding to access the raw methods on
- }
- // SafeMathCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
- type SafeMathCallerRaw struct {
- Contract *SafeMathCaller // Generic read-only contract binding to access the raw methods on
- }
- // SafeMathTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
- type SafeMathTransactorRaw struct {
- Contract *SafeMathTransactor // Generic write-only contract binding to access the raw methods on
- }
- // NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract.
- func NewSafeMath(address common.Address, backend bind.ContractBackend) (*SafeMath, error) {
- contract, err := bindSafeMath(address, backend, backend, backend)
- if err != nil {
- return nil, err
- }
- return &SafeMath{SafeMathCaller: SafeMathCaller{contract: contract}, SafeMathTransactor: SafeMathTransactor{contract: contract}, SafeMathFilterer: SafeMathFilterer{contract: contract}}, nil
- }
- // NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract.
- func NewSafeMathCaller(address common.Address, caller bind.ContractCaller) (*SafeMathCaller, error) {
- contract, err := bindSafeMath(address, caller, nil, nil)
- if err != nil {
- return nil, err
- }
- return &SafeMathCaller{contract: contract}, nil
- }
- // NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract.
- func NewSafeMathTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeMathTransactor, error) {
- contract, err := bindSafeMath(address, nil, transactor, nil)
- if err != nil {
- return nil, err
- }
- return &SafeMathTransactor{contract: contract}, nil
- }
- // NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract.
- func NewSafeMathFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeMathFilterer, error) {
- contract, err := bindSafeMath(address, nil, nil, filterer)
- if err != nil {
- return nil, err
- }
- return &SafeMathFilterer{contract: contract}, nil
- }
- // bindSafeMath binds a generic wrapper to an already deployed contract.
- func bindSafeMath(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
- parsed, err := abi.JSON(strings.NewReader(SafeMathABI))
- 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 (_SafeMath *SafeMathRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _SafeMath.Contract.SafeMathCaller.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 (_SafeMath *SafeMathRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _SafeMath.Contract.SafeMathTransactor.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_SafeMath *SafeMathRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _SafeMath.Contract.SafeMathTransactor.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 (_SafeMath *SafeMathCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _SafeMath.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 (_SafeMath *SafeMathTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _SafeMath.Contract.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_SafeMath *SafeMathTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _SafeMath.Contract.contract.Transact(opts, method, params...)
- }
- // StringsMetaData contains all meta data concerning the Strings contract.
- var StringsMetaData = &bind.MetaData{
- ABI: "[]",
- Bin: "0x60566037600b82828239805160001a607314602a57634e487b7160e01b600052600060045260246000fd5b30600052607381538281f3fe73000000000000000000000000000000000000000030146080604052600080fdfea26469706673582212207edb8077e74c13cedbc2fb5fd5736eee7e0684a72011c3cf1afca22ef41419e364736f6c63430008000033",
- }
- // StringsABI is the input ABI used to generate the binding from.
- // Deprecated: Use StringsMetaData.ABI instead.
- var StringsABI = StringsMetaData.ABI
- // StringsBin is the compiled bytecode used for deploying new contracts.
- // Deprecated: Use StringsMetaData.Bin instead.
- var StringsBin = StringsMetaData.Bin
- // DeployStrings deploys a new Ethereum contract, binding an instance of Strings to it.
- func DeployStrings(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *Strings, error) {
- parsed, err := StringsMetaData.GetAbi()
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- if parsed == nil {
- return common.Address{}, nil, nil, errors.New("GetABI returned nil")
- }
- address, tx, contract, err := bind.DeployContract(auth, *parsed, common.FromHex(StringsBin), backend)
- if err != nil {
- return common.Address{}, nil, nil, err
- }
- return address, tx, &Strings{StringsCaller: StringsCaller{contract: contract}, StringsTransactor: StringsTransactor{contract: contract}, StringsFilterer: StringsFilterer{contract: contract}}, nil
- }
- // Strings is an auto generated Go binding around an Ethereum contract.
- type Strings struct {
- StringsCaller // Read-only binding to the contract
- StringsTransactor // Write-only binding to the contract
- StringsFilterer // Log filterer for contract events
- }
- // StringsCaller is an auto generated read-only Go binding around an Ethereum contract.
- type StringsCaller struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // StringsTransactor is an auto generated write-only Go binding around an Ethereum contract.
- type StringsTransactor struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // StringsFilterer is an auto generated log filtering Go binding around an Ethereum contract events.
- type StringsFilterer struct {
- contract *bind.BoundContract // Generic contract wrapper for the low level calls
- }
- // StringsSession is an auto generated Go binding around an Ethereum contract,
- // with pre-set call and transact options.
- type StringsSession struct {
- Contract *Strings // 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
- }
- // StringsCallerSession is an auto generated read-only Go binding around an Ethereum contract,
- // with pre-set call options.
- type StringsCallerSession struct {
- Contract *StringsCaller // Generic contract caller binding to set the session for
- CallOpts bind.CallOpts // Call options to use throughout this session
- }
- // StringsTransactorSession is an auto generated write-only Go binding around an Ethereum contract,
- // with pre-set transact options.
- type StringsTransactorSession struct {
- Contract *StringsTransactor // Generic contract transactor binding to set the session for
- TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
- }
- // StringsRaw is an auto generated low-level Go binding around an Ethereum contract.
- type StringsRaw struct {
- Contract *Strings // Generic contract binding to access the raw methods on
- }
- // StringsCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.
- type StringsCallerRaw struct {
- Contract *StringsCaller // Generic read-only contract binding to access the raw methods on
- }
- // StringsTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.
- type StringsTransactorRaw struct {
- Contract *StringsTransactor // Generic write-only contract binding to access the raw methods on
- }
- // NewStrings creates a new instance of Strings, bound to a specific deployed contract.
- func NewStrings(address common.Address, backend bind.ContractBackend) (*Strings, error) {
- contract, err := bindStrings(address, backend, backend, backend)
- if err != nil {
- return nil, err
- }
- return &Strings{StringsCaller: StringsCaller{contract: contract}, StringsTransactor: StringsTransactor{contract: contract}, StringsFilterer: StringsFilterer{contract: contract}}, nil
- }
- // NewStringsCaller creates a new read-only instance of Strings, bound to a specific deployed contract.
- func NewStringsCaller(address common.Address, caller bind.ContractCaller) (*StringsCaller, error) {
- contract, err := bindStrings(address, caller, nil, nil)
- if err != nil {
- return nil, err
- }
- return &StringsCaller{contract: contract}, nil
- }
- // NewStringsTransactor creates a new write-only instance of Strings, bound to a specific deployed contract.
- func NewStringsTransactor(address common.Address, transactor bind.ContractTransactor) (*StringsTransactor, error) {
- contract, err := bindStrings(address, nil, transactor, nil)
- if err != nil {
- return nil, err
- }
- return &StringsTransactor{contract: contract}, nil
- }
- // NewStringsFilterer creates a new log filterer instance of Strings, bound to a specific deployed contract.
- func NewStringsFilterer(address common.Address, filterer bind.ContractFilterer) (*StringsFilterer, error) {
- contract, err := bindStrings(address, nil, nil, filterer)
- if err != nil {
- return nil, err
- }
- return &StringsFilterer{contract: contract}, nil
- }
- // bindStrings binds a generic wrapper to an already deployed contract.
- func bindStrings(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) {
- parsed, err := abi.JSON(strings.NewReader(StringsABI))
- 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 (_Strings *StringsRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _Strings.Contract.StringsCaller.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 (_Strings *StringsRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _Strings.Contract.StringsTransactor.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_Strings *StringsRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _Strings.Contract.StringsTransactor.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 (_Strings *StringsCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error {
- return _Strings.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 (_Strings *StringsTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) {
- return _Strings.Contract.contract.Transfer(opts)
- }
- // Transact invokes the (paid) contract method with params as input values.
- func (_Strings *StringsTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) {
- return _Strings.Contract.contract.Transact(opts, method, params...)
- }
|