Created
April 16, 2022 10:04
-
-
Save zhouqiang-cl/6c3a0648f3740d38e80b011348cb4f72 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Code generated - DO NOT EDIT. | |
// This file is a generated binding and any manual changes will be lost. | |
package contract | |
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 | |
) | |
// ContractMetaData contains all meta data concerning the Contract contract. | |
var ContractMetaData = &bind.MetaData{ | |
ABI: "[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"name_\",\"type\":\"string\"},{\"internalType\":\"string\",\"name\":\"symbol_\",\"type\":\"string\"},{\"internalType\":\"bool\",\"name\":\"publicMint\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"approved\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Approval\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"indexed\":false,\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"ApprovalForAll\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Paused\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"previousAdminRole\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"newAdminRole\",\"type\":\"bytes32\"}],\"name\":\"RoleAdminChanged\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleGranted\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"sender\",\"type\":\"address\"}],\"name\":\"RoleRevoked\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"Transfer\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"Unpaused\",\"type\":\"event\"},{\"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\":[],\"name\":\"PAUSER_ROLE\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"approve\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"}],\"name\":\"balanceOf\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"burn\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"getApproved\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"}],\"name\":\"getRoleAdmin\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"grantRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"hasRole\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"}],\"name\":\"isApprovedForAll\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address[]\",\"name\":\"to\",\"type\":\"address[]\"},{\"internalType\":\"uint256[]\",\"name\":\"tokenId\",\"type\":\"uint256[]\"},{\"internalType\":\"string[]\",\"name\":\"uri\",\"type\":\"string[]\"}],\"name\":\"mintMultiple\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"string\",\"name\":\"uri\",\"type\":\"string\"}],\"name\":\"mintWithTokenURI\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"name\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"ownerOf\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"pause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"paused\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"renounceRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"role\",\"type\":\"bytes32\"},{\"internalType\":\"address\",\"name\":\"account\",\"type\":\"address\"}],\"name\":\"revokeRole\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"data\",\"type\":\"bytes\"}],\"name\":\"safeTransfer\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"from\",\"type\":\"address\"},{\"internalType\":\"address\",\"name\":\"to\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"},{\"internalType\":\"bytes\",\"name\":\"_data\",\"type\":\"bytes\"}],\"name\":\"safeTransferFrom\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"operator\",\"type\":\"address\"},{\"internalType\":\"bool\",\"name\":\"approved\",\"type\":\"bool\"}],\"name\":\"setApprovalForAll\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes4\",\"name\":\"interfaceId\",\"type\":\"bytes4\"}],\"name\":\"supportsInterface\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"symbol\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"owner\",\"type\":\"address\"},{\"internalType\":\"uint256\",\"name\":\"index\",\"type\":\"uint256\"}],\"name\":\"tokenOfOwnerByIndex\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"tokenId\",\"type\":\"uint256\"}],\"name\":\"tokenURI\",\"outputs\":[{\"internalType\":\"string\",\"name\":\"\",\"type\":\"string\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"totalSupply\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"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\":[],\"name\":\"unpause\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]", | |
Bin: "0x60806040523480156200001157600080fd5b5060405162002e7c38038062002e7c833981016040819052620000349162000316565b8251839083906200004d906000906020850190620001a3565b50805162000063906001906020840190620001a3565b5050600b805460ff19169055506200007d600033620000ef565b620000a97f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633620000ef565b620000d57f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33620000ef565b600d805460ff191691151591909117905550620003d79050565b620000fb8282620000ff565b5050565b6000828152600c602090815260408083206001600160a01b038516845290915290205460ff16620000fb576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556200015f3390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b828054620001b1906200039a565b90600052602060002090601f016020900481019282620001d5576000855562000220565b82601f10620001f057805160ff191683800117855562000220565b8280016001018555821562000220579182015b828111156200022057825182559160200191906001019062000203565b506200022e92915062000232565b5090565b5b808211156200022e576000815560010162000233565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126200027157600080fd5b81516001600160401b03808211156200028e576200028e62000249565b604051601f8301601f19908116603f01168101908282118183101715620002b957620002b962000249565b81604052838152602092508683858801011115620002d657600080fd5b600091505b83821015620002fa5785820183015181830184015290820190620002db565b838211156200030c5760008385830101525b9695505050505050565b6000806000606084860312156200032c57600080fd5b83516001600160401b03808211156200034457600080fd5b62000352878388016200025f565b945060208601519150808211156200036957600080fd5b5062000378868287016200025f565b925050604084015180151581146200038f57600080fd5b809150509250925092565b600181811c90821680620003af57607f821691505b60208210811415620003d157634e487b7160e01b600052602260045260246000fd5b50919050565b612a9580620003e76000396000f3fe608060405234801561001057600080fd5b50600436106101f05760003560e01c80635a9c9eb81161010f578063a22cb465116100a2578063d547741f11610071578063d547741f14610429578063e63ab1e91461043c578063e985e9c514610463578063eb7955491461049f57600080fd5b8063a22cb465146103c9578063b88d4fde146103dc578063c87b56dd146103ef578063d53913931461040257600080fd5b80638456cb59116100de5780638456cb591461039e57806391d14854146103a657806395d89b41146103b9578063a217fddf146103c157600080fd5b80635a9c9eb81461035a5780635c975abb1461036d5780636352211e1461037857806370a082311461038b57600080fd5b80632f745c591161018757806342842e0e1161015657806342842e0e1461030e57806342966c68146103215780634f6ccce71461033457806350bb4e7f1461034757600080fd5b80632f745c59146102cd57806336568abe146102e05780633f4ba83a146102f3578063423f6cef146102fb57600080fd5b806318160ddd116101c357806318160ddd1461027257806323b872dd14610284578063248a9ca3146102975780632f2ff15d146102ba57600080fd5b806301ffc9a7146101f557806306fdde031461021d578063081812fc14610232578063095ea7b31461025d575b600080fd5b610208610203366004612112565b6104b2565b60405190151581526020015b60405180910390f35b6102256104c3565b6040516102149190612187565b61024561024036600461219a565b610555565b6040516001600160a01b039091168152602001610214565b61027061026b3660046121cf565b6105e2565b005b6008545b604051908152602001610214565b6102706102923660046121f9565b6106f8565b6102766102a536600461219a565b6000908152600c602052604090206001015490565b6102706102c8366004612235565b61072a565b6102766102db3660046121cf565b610750565b6102706102ee366004612235565b6107e6565b610270610864565b6102706103093660046121cf565b6108b4565b61027061031c3660046121f9565b6108cf565b61027061032f36600461219a565b6108ea565b61027661034236600461219a565b610964565b610208610355366004612320565b6109f7565b610208610368366004612486565b610a68565b600b5460ff16610208565b61024561038636600461219a565b610b5c565b610276610399366004612560565b610bd3565b610270610c5a565b6102086103b4366004612235565b610ca8565b610225610cd3565b610276600081565b6102706103d736600461257b565b610ce2565b6102706103ea3660046125b7565b610ced565b6102256103fd36600461219a565b610d25565b6102767f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a681565b610270610437366004612235565b610d30565b6102767f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a81565b610208610471366004612633565b6001600160a01b03918216600090815260056020908152604080832093909416825291909152205460ff1690565b6102706104ad36600461265d565b610d56565b60006104bd82610d98565b92915050565b6060600080546104d2906126e4565b80601f01602080910402602001604051908101604052809291908181526020018280546104fe906126e4565b801561054b5780601f106105205761010080835404028352916020019161054b565b820191906000526020600020905b81548152906001019060200180831161052e57829003601f168201915b5050505050905090565b600061056082610dbd565b6105c65760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084015b60405180910390fd5b506000908152600460205260409020546001600160a01b031690565b60006105ed82610b5c565b9050806001600160a01b0316836001600160a01b0316141561065b5760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b60648201526084016105bd565b336001600160a01b038216148061067757506106778133610471565b6106e95760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c000000000000000060648201526084016105bd565b6106f38383610dda565b505050565b610703335b82610e48565b61071f5760405162461bcd60e51b81526004016105bd9061271f565b6106f3838383610f32565b6000828152600c602052604090206001015461074681336110dd565b6106f38383611141565b600061075b83610bd3565b82106107bd5760405162461bcd60e51b815260206004820152602b60248201527f455243373231456e756d657261626c653a206f776e657220696e646578206f7560448201526a74206f6620626f756e647360a81b60648201526084016105bd565b506001600160a01b03919091166000908152600660209081526040808320938352929052205490565b6001600160a01b03811633146108565760405162461bcd60e51b815260206004820152602f60248201527f416363657373436f6e74726f6c3a2063616e206f6e6c792072656e6f756e636560448201526e103937b632b9903337b91039b2b63360891b60648201526084016105bd565b61086082826111c7565b5050565b61088e7f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610ca8565b6108aa5760405162461bcd60e51b81526004016105bd90612770565b6108b261122e565b565b610860338383604051806020016040528060008152506112c1565b6106f383838360405180602001604052806000815250610ced565b6108f3336106fd565b6109585760405162461bcd60e51b815260206004820152603060248201527f4552433732314275726e61626c653a2063616c6c6572206973206e6f74206f7760448201526f1b995c881b9bdc88185c1c1c9bdd995960821b60648201526084016105bd565b610961816112f4565b50565b600061096f60085490565b82106109d25760405162461bcd60e51b815260206004820152602c60248201527f455243373231456e756d657261626c653a20676c6f62616c20696e646578206f60448201526b7574206f6620626f756e647360a01b60648201526084016105bd565b600882815481106109e5576109e56127c0565b90600052602060002001549050919050565b600d5460009060ff16610a4a57610a2e7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610ca8565b610a4a5760405162461bcd60e51b81526004016105bd906127d6565b610a5484846112fd565b610a5e8383611317565b5060019392505050565b600d5460009060ff16610abb57610a9f7f9f2df0fed2c77648de5860a4cc508cd0818c85b8b8a1ab4ceeef8d981c8956a633610ca8565b610abb5760405162461bcd60e51b81526004016105bd906127d6565b60005b8451811015610b5157610b03858281518110610adc57610adc6127c0565b6020026020010151858381518110610af657610af66127c0565b60200260200101516112fd565b610b3f848281518110610b1857610b186127c0565b6020026020010151848381518110610b3257610b326127c0565b6020026020010151611317565b80610b498161283b565b915050610abe565b506001949350505050565b6000818152600260205260408120546001600160a01b0316806104bd5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b60648201526084016105bd565b60006001600160a01b038216610c3e5760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b60648201526084016105bd565b506001600160a01b031660009081526003602052604090205490565b610c847f65d7a28e3265b37a6474929f336521b332c1681b933f6cb9f3376673440d862a33610ca8565b610ca05760405162461bcd60e51b81526004016105bd90612770565b6108b26113a2565b6000918252600c602090815260408084206001600160a01b0393909316845291905290205460ff1690565b6060600180546104d2906126e4565b61086033838361141d565b610cf73383610e48565b610d135760405162461bcd60e51b81526004016105bd9061271f565b610d1f848484846112c1565b50505050565b60606104bd826114ec565b6000828152600c6020526040902060010154610d4c81336110dd565b6106f383836111c7565b610d1f33858585858080601f0160208091040260200160405190810160405280939291908181526020018383808284376000920191909152506112c192505050565b60006001600160e01b03198216637965db0b60e01b14806104bd57506104bd8261165b565b6000908152600260205260409020546001600160a01b0316151590565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610e0f82610b5c565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000610e5382610dbd565b610eb45760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b60648201526084016105bd565b6000610ebf83610b5c565b9050806001600160a01b0316846001600160a01b03161480610efa5750836001600160a01b0316610eef84610555565b6001600160a01b0316145b80610f2a57506001600160a01b0380821660009081526005602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610f4582610b5c565b6001600160a01b031614610fad5760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b60648201526084016105bd565b6001600160a01b03821661100f5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b60648201526084016105bd565b61101a838383611680565b611025600082610dda565b6001600160a01b038316600090815260036020526040812080546001929061104e908490612856565b90915550506001600160a01b038216600090815260036020526040812080546001929061107c90849061286d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6110e78282610ca8565b610860576110ff816001600160a01b031660146116d1565b61110a8360206116d1565b60405160200161111b929190612885565b60408051601f198184030181529082905262461bcd60e51b82526105bd91600401612187565b61114b8282610ca8565b610860576000828152600c602090815260408083206001600160a01b03851684529091529020805460ff191660011790556111833390565b6001600160a01b0316816001600160a01b0316837f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45050565b6111d18282610ca8565b15610860576000828152600c602090815260408083206001600160a01b0385168085529252808320805460ff1916905551339285917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45050565b600b5460ff166112775760405162461bcd60e51b815260206004820152601460248201527314185d5cd8589b194e881b9bdd081c185d5cd95960621b60448201526064016105bd565b600b805460ff191690557f5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa335b6040516001600160a01b03909116815260200160405180910390a1565b6112cc848484610f32565b6112d884848484611874565b610d1f5760405162461bcd60e51b81526004016105bd906128fa565b61096181611967565b6108608282604051806020016040528060008152506119a7565b61132082610dbd565b6113835760405162461bcd60e51b815260206004820152602e60248201527f45524337323155524953746f726167653a2055524920736574206f66206e6f6e60448201526d32bc34b9ba32b73a103a37b5b2b760911b60648201526084016105bd565b6000828152600a6020908152604090912082516106f39284019061202d565b600b5460ff16156113e85760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105bd565b600b805460ff191660011790557f62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a2586112a43390565b816001600160a01b0316836001600160a01b0316141561147f5760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c65720000000000000060448201526064016105bd565b6001600160a01b03838116600081815260056020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b60606114f782610dbd565b61155d5760405162461bcd60e51b815260206004820152603160248201527f45524337323155524953746f726167653a2055524920717565727920666f72206044820152703737b732bc34b9ba32b73a103a37b5b2b760791b60648201526084016105bd565b6000828152600a602052604081208054611576906126e4565b80601f01602080910402602001604051908101604052809291908181526020018280546115a2906126e4565b80156115ef5780601f106115c4576101008083540402835291602001916115ef565b820191906000526020600020905b8154815290600101906020018083116115d257829003601f168201915b50505050509050600061160d60408051602081019091526000815290565b9050805160001415611620575092915050565b81511561165257808260405160200161163a92919061294c565b60405160208183030381529060405292505050919050565b610f2a846119da565b60006001600160e01b0319821663780e9d6360e01b14806104bd57506104bd82611ab1565b600b5460ff16156116c65760405162461bcd60e51b815260206004820152601060248201526f14185d5cd8589b194e881c185d5cd95960821b60448201526064016105bd565b6106f3838383611b01565b606060006116e083600261297b565b6116eb90600261286d565b67ffffffffffffffff81111561170357611703612261565b6040519080825280601f01601f19166020018201604052801561172d576020820181803683370190505b509050600360fc1b81600081518110611748576117486127c0565b60200101906001600160f81b031916908160001a905350600f60fb1b81600181518110611777576117776127c0565b60200101906001600160f81b031916908160001a905350600061179b84600261297b565b6117a690600161286d565b90505b600181111561181e576f181899199a1a9b1b9c1cb0b131b232b360811b85600f16601081106117da576117da6127c0565b1a60f81b8282815181106117f0576117f06127c0565b60200101906001600160f81b031916908160001a90535060049490941c936118178161299a565b90506117a9565b50831561186d5760405162461bcd60e51b815260206004820181905260248201527f537472696e67733a20686578206c656e67746820696e73756666696369656e7460448201526064016105bd565b9392505050565b60006001600160a01b0384163b15610b5157604051630a85bd0160e11b81526001600160a01b0385169063150b7a02906118b89033908990889088906004016129b1565b6020604051808303816000875af19250505080156118f3575060408051601f3d908101601f191682019092526118f0918101906129ee565b60015b61194d573d808015611921576040519150601f19603f3d011682016040523d82523d6000602084013e611926565b606091505b5080516119455760405162461bcd60e51b81526004016105bd906128fa565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610f2a565b61197081611bb9565b6000818152600a602052604090208054611989906126e4565b159050610961576000818152600a60205260408120610961916120b1565b6119b18383611c60565b6119be6000848484611874565b6106f35760405162461bcd60e51b81526004016105bd906128fa565b60606119e582610dbd565b611a495760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b60648201526084016105bd565b6000611a6060408051602081019091526000815290565b90506000815111611a80576040518060200160405280600081525061186d565b80611a8a84611d9f565b604051602001611a9b92919061294c565b6040516020818303038152906040529392505050565b60006001600160e01b031982166380ac58cd60e01b1480611ae257506001600160e01b03198216635b5e139f60e01b145b806104bd57506301ffc9a760e01b6001600160e01b03198316146104bd565b6001600160a01b038316611b5c57611b5781600880546000838152600960205260408120829055600182018355919091527ff3f7a9fe364faab93b216da50a3214154f22a0a2b415b23a84c8169e8b636ee30155565b611b7f565b816001600160a01b0316836001600160a01b031614611b7f57611b7f8382611e9d565b6001600160a01b038216611b96576106f381611f3a565b826001600160a01b0316826001600160a01b0316146106f3576106f38282611fe9565b6000611bc482610b5c565b9050611bd281600084611680565b611bdd600083610dda565b6001600160a01b0381166000908152600360205260408120805460019290611c06908490612856565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b6001600160a01b038216611cb65760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f206164647265737360448201526064016105bd565b611cbf81610dbd565b15611d0c5760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e7465640000000060448201526064016105bd565b611d1860008383611680565b6001600160a01b0382166000908152600360205260408120805460019290611d4190849061286d565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b03861690811790915590518392907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a45050565b606081611dc35750506040805180820190915260018152600360fc1b602082015290565b8160005b8115611ded5780611dd78161283b565b9150611de69050600a83612a21565b9150611dc7565b60008167ffffffffffffffff811115611e0857611e08612261565b6040519080825280601f01601f191660200182016040528015611e32576020820181803683370190505b5090505b8415610f2a57611e47600183612856565b9150611e54600a86612a35565b611e5f90603061286d565b60f81b818381518110611e7457611e746127c0565b60200101906001600160f81b031916908160001a905350611e96600a86612a21565b9450611e36565b60006001611eaa84610bd3565b611eb49190612856565b600083815260076020526040902054909150808214611f07576001600160a01b03841660009081526006602090815260408083208584528252808320548484528184208190558352600790915290208190555b5060009182526007602090815260408084208490556001600160a01b039094168352600681528383209183525290812055565b600854600090611f4c90600190612856565b60008381526009602052604081205460088054939450909284908110611f7457611f746127c0565b906000526020600020015490508060088381548110611f9557611f956127c0565b6000918252602080832090910192909255828152600990915260408082208490558582528120556008805480611fcd57611fcd612a49565b6001900381819060005260206000200160009055905550505050565b6000611ff483610bd3565b6001600160a01b039093166000908152600660209081526040808320868452825280832085905593825260079052919091209190915550565b828054612039906126e4565b90600052602060002090601f01602090048101928261205b57600085556120a1565b82601f1061207457805160ff19168380011785556120a1565b828001600101855582156120a1579182015b828111156120a1578251825591602001919060010190612086565b506120ad9291506120e7565b5090565b5080546120bd906126e4565b6000825580601f106120cd575050565b601f01602090049060005260206000209081019061096191905b5b808211156120ad57600081556001016120e8565b6001600160e01b03198116811461096157600080fd5b60006020828403121561212457600080fd5b813561186d816120fc565b60005b8381101561214a578181015183820152602001612132565b83811115610d1f5750506000910152565b6000815180845261217381602086016020860161212f565b601f01601f19169290920160200192915050565b60208152600061186d602083018461215b565b6000602082840312156121ac57600080fd5b5035919050565b80356001600160a01b03811681146121ca57600080fd5b919050565b600080604083850312156121e257600080fd5b6121eb836121b3565b946020939093013593505050565b60008060006060848603121561220e57600080fd5b612217846121b3565b9250612225602085016121b3565b9150604084013590509250925092565b6000806040838503121561224857600080fd5b82359150612258602084016121b3565b90509250929050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f1916810167ffffffffffffffff811182821017156122a0576122a0612261565b604052919050565b600067ffffffffffffffff8311156122c2576122c2612261565b6122d5601f8401601f1916602001612277565b90508281528383830111156122e957600080fd5b828260208301376000602084830101529392505050565b600082601f83011261231157600080fd5b61186d838335602085016122a8565b60008060006060848603121561233557600080fd5b61233e846121b3565b925060208401359150604084013567ffffffffffffffff81111561236157600080fd5b61236d86828701612300565b9150509250925092565b600067ffffffffffffffff82111561239157612391612261565b5060051b60200190565b600082601f8301126123ac57600080fd5b813560206123c16123bc83612377565b612277565b82815260059290921b840181019181810190868411156123e057600080fd5b8286015b848110156123fb57803583529183019183016123e4565b509695505050505050565b600082601f83011261241757600080fd5b813560206124276123bc83612377565b82815260059290921b8401810191818101908684111561244657600080fd5b8286015b848110156123fb57803567ffffffffffffffff81111561246a5760008081fd5b6124788986838b0101612300565b84525091830191830161244a565b60008060006060848603121561249b57600080fd5b833567ffffffffffffffff808211156124b357600080fd5b818601915086601f8301126124c757600080fd5b813560206124d76123bc83612377565b82815260059290921b8401810191818101908a8411156124f657600080fd5b948201945b8386101561251b5761250c866121b3565b825294820194908201906124fb565b9750508701359250508082111561253157600080fd5b61253d8783880161239b565b9350604086013591508082111561255357600080fd5b5061236d86828701612406565b60006020828403121561257257600080fd5b61186d826121b3565b6000806040838503121561258e57600080fd5b612597836121b3565b9150602083013580151581146125ac57600080fd5b809150509250929050565b600080600080608085870312156125cd57600080fd5b6125d6856121b3565b93506125e4602086016121b3565b925060408501359150606085013567ffffffffffffffff81111561260757600080fd5b8501601f8101871361261857600080fd5b612627878235602084016122a8565b91505092959194509250565b6000806040838503121561264657600080fd5b61264f836121b3565b9150612258602084016121b3565b6000806000806060858703121561267357600080fd5b61267c856121b3565b935060208501359250604085013567ffffffffffffffff808211156126a057600080fd5b818701915087601f8301126126b457600080fd5b8135818111156126c357600080fd5b8860208285010111156126d557600080fd5b95989497505060200194505050565b600181811c908216806126f857607f821691505b6020821081141561271957634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b60208082526030908201527f52656464696f47656e6572616c3732313a206d7573742068617665207061757360408201526f657220726f6c6520746f20706175736560801b606082015260800190565b634e487b7160e01b600052603260045260246000fd5b6020808252602f908201527f52656464696f47656e6572616c3732313a206d7573742068617665206d696e7460408201526e195c881c9bdb19481d1bc81b5a5b9d608a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b600060001982141561284f5761284f612825565b5060010190565b60008282101561286857612868612825565b500390565b6000821982111561288057612880612825565b500190565b7f416363657373436f6e74726f6c3a206163636f756e74200000000000000000008152600083516128bd81601785016020880161212f565b7001034b99036b4b9b9b4b733903937b6329607d1b60179184019182015283516128ee81602884016020880161212f565b01602801949350505050565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6000835161295e81846020880161212f565b83519083019061297281836020880161212f565b01949350505050565b600081600019048311821515161561299557612995612825565b500290565b6000816129a9576129a9612825565b506000190190565b6001600160a01b03858116825284166020820152604081018390526080606082018190526000906129e49083018461215b565b9695505050505050565b600060208284031215612a0057600080fd5b815161186d816120fc565b634e487b7160e01b600052601260045260246000fd5b600082612a3057612a30612a0b565b500490565b600082612a4457612a44612a0b565b500690565b634e487b7160e01b600052603160045260246000fdfea264697066735822122015258e652a13f067db80a18cc7790a593be57023f3363a60ffcf732f6d14a53464736f6c634300080a0033", | |
} | |
// ContractABI is the input ABI used to generate the binding from. | |
// Deprecated: Use ContractMetaData.ABI instead. | |
var ContractABI = ContractMetaData.ABI | |
// ContractBin is the compiled bytecode used for deploying new contracts. | |
// Deprecated: Use ContractMetaData.Bin instead. | |
var ContractBin = ContractMetaData.Bin | |
// DeployContract deploys a new Ethereum contract, binding an instance of Contract to it. | |
func DeployContract(auth *bind.TransactOpts, backend bind.ContractBackend, name_ string, symbol_ string, publicMint bool) (common.Address, *types.Transaction, *Contract, error) { | |
parsed, err := ContractMetaData.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(ContractBin), backend, name_, symbol_, publicMint) | |
if err != nil { | |
return common.Address{}, nil, nil, err | |
} | |
return address, tx, &Contract{ContractCaller: ContractCaller{contract: contract}, ContractTransactor: ContractTransactor{contract: contract}, ContractFilterer: ContractFilterer{contract: contract}}, nil | |
} | |
// Contract is an auto generated Go binding around an Ethereum contract. | |
type Contract struct { | |
ContractCaller // Read-only binding to the contract | |
ContractTransactor // Write-only binding to the contract | |
ContractFilterer // Log filterer for contract events | |
} | |
// ContractCaller is an auto generated read-only Go binding around an Ethereum contract. | |
type ContractCaller struct { | |
contract *bind.BoundContract // Generic contract wrapper for the low level calls | |
} | |
// ContractTransactor is an auto generated write-only Go binding around an Ethereum contract. | |
type ContractTransactor struct { | |
contract *bind.BoundContract // Generic contract wrapper for the low level calls | |
} | |
// ContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events. | |
type ContractFilterer struct { | |
contract *bind.BoundContract // Generic contract wrapper for the low level calls | |
} | |
// ContractSession is an auto generated Go binding around an Ethereum contract, | |
// with pre-set call and transact options. | |
type ContractSession struct { | |
Contract *Contract // 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 | |
} | |
// ContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, | |
// with pre-set call options. | |
type ContractCallerSession struct { | |
Contract *ContractCaller // Generic contract caller binding to set the session for | |
CallOpts bind.CallOpts // Call options to use throughout this session | |
} | |
// ContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, | |
// with pre-set transact options. | |
type ContractTransactorSession struct { | |
Contract *ContractTransactor // Generic contract transactor binding to set the session for | |
TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session | |
} | |
// ContractRaw is an auto generated low-level Go binding around an Ethereum contract. | |
type ContractRaw struct { | |
Contract *Contract // Generic contract binding to access the raw methods on | |
} | |
// ContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract. | |
type ContractCallerRaw struct { | |
Contract *ContractCaller // Generic read-only contract binding to access the raw methods on | |
} | |
// ContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract. | |
type ContractTransactorRaw struct { | |
Contract *ContractTransactor // Generic write-only contract binding to access the raw methods on | |
} | |
// NewContract creates a new instance of Contract, bound to a specific deployed contract. | |
func NewContract(address common.Address, backend bind.ContractBackend) (*Contract, error) { | |
contract, err := bindContract(address, backend, backend, backend) | |
if err != nil { | |
return nil, err | |
} | |
return &Contract{ContractCaller: ContractCaller{contract: contract}, ContractTransactor: ContractTransactor{contract: contract}, ContractFilterer: ContractFilterer{contract: contract}}, nil | |
} | |
// NewContractCaller creates a new read-only instance of Contract, bound to a specific deployed contract. | |
func NewContractCaller(address common.Address, caller bind.ContractCaller) (*ContractCaller, error) { | |
contract, err := bindContract(address, caller, nil, nil) | |
if err != nil { | |
return nil, err | |
} | |
return &ContractCaller{contract: contract}, nil | |
} | |
// NewContractTransactor creates a new write-only instance of Contract, bound to a specific deployed contract. | |
func NewContractTransactor(address common.Address, transactor bind.ContractTransactor) (*ContractTransactor, error) { | |
contract, err := bindContract(address, nil, transactor, nil) | |
if err != nil { | |
return nil, err | |
} | |
return &ContractTransactor{contract: contract}, nil | |
} | |
// NewContractFilterer creates a new log filterer instance of Contract, bound to a specific deployed contract. | |
func NewContractFilterer(address common.Address, filterer bind.ContractFilterer) (*ContractFilterer, error) { | |
contract, err := bindContract(address, nil, nil, filterer) | |
if err != nil { | |
return nil, err | |
} | |
return &ContractFilterer{contract: contract}, nil | |
} | |
// bindContract binds a generic wrapper to an already deployed contract. | |
func bindContract(address common.Address, caller bind.ContractCaller, transactor bind.ContractTransactor, filterer bind.ContractFilterer) (*bind.BoundContract, error) { | |
parsed, err := abi.JSON(strings.NewReader(ContractABI)) | |
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 (_Contract *ContractRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { | |
return _Contract.Contract.ContractCaller.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 (_Contract *ContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { | |
return _Contract.Contract.ContractTransactor.contract.Transfer(opts) | |
} | |
// Transact invokes the (paid) contract method with params as input values. | |
func (_Contract *ContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { | |
return _Contract.Contract.ContractTransactor.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 (_Contract *ContractCallerRaw) Call(opts *bind.CallOpts, result *[]interface{}, method string, params ...interface{}) error { | |
return _Contract.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 (_Contract *ContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error) { | |
return _Contract.Contract.contract.Transfer(opts) | |
} | |
// Transact invokes the (paid) contract method with params as input values. | |
func (_Contract *ContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error) { | |
return _Contract.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 (_Contract *ContractCaller) DEFAULTADMINROLE(opts *bind.CallOpts) ([32]byte, error) { | |
var out []interface{} | |
err := _Contract.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 (_Contract *ContractSession) DEFAULTADMINROLE() ([32]byte, error) { | |
return _Contract.Contract.DEFAULTADMINROLE(&_Contract.CallOpts) | |
} | |
// DEFAULTADMINROLE is a free data retrieval call binding the contract method 0xa217fddf. | |
// | |
// Solidity: function DEFAULT_ADMIN_ROLE() view returns(bytes32) | |
func (_Contract *ContractCallerSession) DEFAULTADMINROLE() ([32]byte, error) { | |
return _Contract.Contract.DEFAULTADMINROLE(&_Contract.CallOpts) | |
} | |
// MINTERROLE is a free data retrieval call binding the contract method 0xd5391393. | |
// | |
// Solidity: function MINTER_ROLE() view returns(bytes32) | |
func (_Contract *ContractCaller) MINTERROLE(opts *bind.CallOpts) ([32]byte, error) { | |
var out []interface{} | |
err := _Contract.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 (_Contract *ContractSession) MINTERROLE() ([32]byte, error) { | |
return _Contract.Contract.MINTERROLE(&_Contract.CallOpts) | |
} | |
// MINTERROLE is a free data retrieval call binding the contract method 0xd5391393. | |
// | |
// Solidity: function MINTER_ROLE() view returns(bytes32) | |
func (_Contract *ContractCallerSession) MINTERROLE() ([32]byte, error) { | |
return _Contract.Contract.MINTERROLE(&_Contract.CallOpts) | |
} | |
// PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9. | |
// | |
// Solidity: function PAUSER_ROLE() view returns(bytes32) | |
func (_Contract *ContractCaller) PAUSERROLE(opts *bind.CallOpts) ([32]byte, error) { | |
var out []interface{} | |
err := _Contract.contract.Call(opts, &out, "PAUSER_ROLE") | |
if err != nil { | |
return *new([32]byte), err | |
} | |
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) | |
return out0, err | |
} | |
// PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9. | |
// | |
// Solidity: function PAUSER_ROLE() view returns(bytes32) | |
func (_Contract *ContractSession) PAUSERROLE() ([32]byte, error) { | |
return _Contract.Contract.PAUSERROLE(&_Contract.CallOpts) | |
} | |
// PAUSERROLE is a free data retrieval call binding the contract method 0xe63ab1e9. | |
// | |
// Solidity: function PAUSER_ROLE() view returns(bytes32) | |
func (_Contract *ContractCallerSession) PAUSERROLE() ([32]byte, error) { | |
return _Contract.Contract.PAUSERROLE(&_Contract.CallOpts) | |
} | |
// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. | |
// | |
// Solidity: function balanceOf(address owner) view returns(uint256) | |
func (_Contract *ContractCaller) BalanceOf(opts *bind.CallOpts, owner common.Address) (*big.Int, error) { | |
var out []interface{} | |
err := _Contract.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 (_Contract *ContractSession) BalanceOf(owner common.Address) (*big.Int, error) { | |
return _Contract.Contract.BalanceOf(&_Contract.CallOpts, owner) | |
} | |
// BalanceOf is a free data retrieval call binding the contract method 0x70a08231. | |
// | |
// Solidity: function balanceOf(address owner) view returns(uint256) | |
func (_Contract *ContractCallerSession) BalanceOf(owner common.Address) (*big.Int, error) { | |
return _Contract.Contract.BalanceOf(&_Contract.CallOpts, owner) | |
} | |
// GetApproved is a free data retrieval call binding the contract method 0x081812fc. | |
// | |
// Solidity: function getApproved(uint256 tokenId) view returns(address) | |
func (_Contract *ContractCaller) GetApproved(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error) { | |
var out []interface{} | |
err := _Contract.contract.Call(opts, &out, "getApproved", tokenId) | |
if err != nil { | |
return *new(common.Address), err | |
} | |
out0 := *abi.ConvertType(out[0], new(common.Address)).(*common.Address) | |
return out0, err | |
} | |
// GetApproved is a free data retrieval call binding the contract method 0x081812fc. | |
// | |
// Solidity: function getApproved(uint256 tokenId) view returns(address) | |
func (_Contract *ContractSession) GetApproved(tokenId *big.Int) (common.Address, error) { | |
return _Contract.Contract.GetApproved(&_Contract.CallOpts, tokenId) | |
} | |
// GetApproved is a free data retrieval call binding the contract method 0x081812fc. | |
// | |
// Solidity: function getApproved(uint256 tokenId) view returns(address) | |
func (_Contract *ContractCallerSession) GetApproved(tokenId *big.Int) (common.Address, error) { | |
return _Contract.Contract.GetApproved(&_Contract.CallOpts, tokenId) | |
} | |
// GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3. | |
// | |
// Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32) | |
func (_Contract *ContractCaller) GetRoleAdmin(opts *bind.CallOpts, role [32]byte) ([32]byte, error) { | |
var out []interface{} | |
err := _Contract.contract.Call(opts, &out, "getRoleAdmin", role) | |
if err != nil { | |
return *new([32]byte), err | |
} | |
out0 := *abi.ConvertType(out[0], new([32]byte)).(*[32]byte) | |
return out0, err | |
} | |
// GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3. | |
// | |
// Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32) | |
func (_Contract *ContractSession) GetRoleAdmin(role [32]byte) ([32]byte, error) { | |
return _Contract.Contract.GetRoleAdmin(&_Contract.CallOpts, role) | |
} | |
// GetRoleAdmin is a free data retrieval call binding the contract method 0x248a9ca3. | |
// | |
// Solidity: function getRoleAdmin(bytes32 role) view returns(bytes32) | |
func (_Contract *ContractCallerSession) GetRoleAdmin(role [32]byte) ([32]byte, error) { | |
return _Contract.Contract.GetRoleAdmin(&_Contract.CallOpts, role) | |
} | |
// HasRole is a free data retrieval call binding the contract method 0x91d14854. | |
// | |
// Solidity: function hasRole(bytes32 role, address account) view returns(bool) | |
func (_Contract *ContractCaller) HasRole(opts *bind.CallOpts, role [32]byte, account common.Address) (bool, error) { | |
var out []interface{} | |
err := _Contract.contract.Call(opts, &out, "hasRole", role, account) | |
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 role, address account) view returns(bool) | |
func (_Contract *ContractSession) HasRole(role [32]byte, account common.Address) (bool, error) { | |
return _Contract.Contract.HasRole(&_Contract.CallOpts, role, account) | |
} | |
// HasRole is a free data retrieval call binding the contract method 0x91d14854. | |
// | |
// Solidity: function hasRole(bytes32 role, address account) view returns(bool) | |
func (_Contract *ContractCallerSession) HasRole(role [32]byte, account common.Address) (bool, error) { | |
return _Contract.Contract.HasRole(&_Contract.CallOpts, role, account) | |
} | |
// IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5. | |
// | |
// Solidity: function isApprovedForAll(address owner, address operator) view returns(bool) | |
func (_Contract *ContractCaller) IsApprovedForAll(opts *bind.CallOpts, owner common.Address, operator common.Address) (bool, error) { | |
var out []interface{} | |
err := _Contract.contract.Call(opts, &out, "isApprovedForAll", owner, operator) | |
if err != nil { | |
return *new(bool), err | |
} | |
out0 := *abi.ConvertType(out[0], new(bool)).(*bool) | |
return out0, err | |
} | |
// IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5. | |
// | |
// Solidity: function isApprovedForAll(address owner, address operator) view returns(bool) | |
func (_Contract *ContractSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error) { | |
return _Contract.Contract.IsApprovedForAll(&_Contract.CallOpts, owner, operator) | |
} | |
// IsApprovedForAll is a free data retrieval call binding the contract method 0xe985e9c5. | |
// | |
// Solidity: function isApprovedForAll(address owner, address operator) view returns(bool) | |
func (_Contract *ContractCallerSession) IsApprovedForAll(owner common.Address, operator common.Address) (bool, error) { | |
return _Contract.Contract.IsApprovedForAll(&_Contract.CallOpts, owner, operator) | |
} | |
// Name is a free data retrieval call binding the contract method 0x06fdde03. | |
// | |
// Solidity: function name() view returns(string) | |
func (_Contract *ContractCaller) Name(opts *bind.CallOpts) (string, error) { | |
var out []interface{} | |
err := _Contract.contract.Call(opts, &out, "name") | |
if err != nil { | |
return *new(string), err | |
} | |
out0 := *abi.ConvertType(out[0], new(string)).(*string) | |
return out0, err | |
} | |
// Name is a free data retrieval call binding the contract method 0x06fdde03. | |
// | |
// Solidity: function name() view returns(string) | |
func (_Contract *ContractSession) Name() (string, error) { | |
return _Contract.Contract.Name(&_Contract.CallOpts) | |
} | |
// Name is a free data retrieval call binding the contract method 0x06fdde03. | |
// | |
// Solidity: function name() view returns(string) | |
func (_Contract *ContractCallerSession) Name() (string, error) { | |
return _Contract.Contract.Name(&_Contract.CallOpts) | |
} | |
// OwnerOf is a free data retrieval call binding the contract method 0x6352211e. | |
// | |
// Solidity: function ownerOf(uint256 tokenId) view returns(address) | |
func (_Contract *ContractCaller) OwnerOf(opts *bind.CallOpts, tokenId *big.Int) (common.Address, error) { | |
var out []interface{} | |
err := _Contract.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 (_Contract *ContractSession) OwnerOf(tokenId *big.Int) (common.Address, error) { | |
return _Contract.Contract.OwnerOf(&_Contract.CallOpts, tokenId) | |
} | |
// OwnerOf is a free data retrieval call binding the contract method 0x6352211e. | |
// | |
// Solidity: function ownerOf(uint256 tokenId) view returns(address) | |
func (_Contract *ContractCallerSession) OwnerOf(tokenId *big.Int) (common.Address, error) { | |
return _Contract.Contract.OwnerOf(&_Contract.CallOpts, tokenId) | |
} | |
// Paused is a free data retrieval call binding the contract method 0x5c975abb. | |
// | |
// Solidity: function paused() view returns(bool) | |
func (_Contract *ContractCaller) Paused(opts *bind.CallOpts) (bool, error) { | |
var out []interface{} | |
err := _Contract.contract.Call(opts, &out, "paused") | |
if err != nil { | |
return *new(bool), err | |
} | |
out0 := *abi.ConvertType(out[0], new(bool)).(*bool) | |
return out0, err | |
} | |
// Paused is a free data retrieval call binding the contract method 0x5c975abb. | |
// | |
// Solidity: function paused() view returns(bool) | |
func (_Contract *ContractSession) Paused() (bool, error) { | |
return _Contract.Contract.Paused(&_Contract.CallOpts) | |
} | |
// Paused is a free data retrieval call binding the contract method 0x5c975abb. | |
// | |
// Solidity: function paused() view returns(bool) | |
func (_Contract *ContractCallerSession) Paused() (bool, error) { | |
return _Contract.Contract.Paused(&_Contract.CallOpts) | |
} | |
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. | |
// | |
// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) | |
func (_Contract *ContractCaller) SupportsInterface(opts *bind.CallOpts, interfaceId [4]byte) (bool, error) { | |
var out []interface{} | |
err := _Contract.contract.Call(opts, &out, "supportsInterface", interfaceId) | |
if err != nil { | |
return *new(bool), err | |
} | |
out0 := *abi.ConvertType(out[0], new(bool)).(*bool) | |
return out0, err | |
} | |
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. | |
// | |
// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) | |
func (_Contract *ContractSession) SupportsInterface(interfaceId [4]byte) (bool, error) { | |
return _Contract.Contract.SupportsInterface(&_Contract.CallOpts, interfaceId) | |
} | |
// SupportsInterface is a free data retrieval call binding the contract method 0x01ffc9a7. | |
// | |
// Solidity: function supportsInterface(bytes4 interfaceId) view returns(bool) | |
func (_Contract *ContractCallerSession) SupportsInterface(interfaceId [4]byte) (bool, error) { | |
return _Contract.Contract.SupportsInterface(&_Contract.CallOpts, interfaceId) | |
} | |
// Symbol is a free data retrieval call binding the contract method 0x95d89b41. | |
// | |
// Solidity: function symbol() view returns(string) | |
func (_Contract *ContractCaller) Symbol(opts *bind.CallOpts) (string, error) { | |
var out []interface{} | |
err := _Contract.contract.Call(opts, &out, "symbol") | |
if err != nil { | |
return *new(string), err | |
} | |
out0 := *abi.ConvertType(out[0], new(string)).(*string) | |
return out0, err | |
} | |
// Symbol is a free data retrieval call binding the contract method 0x95d89b41. | |
// | |
// Solidity: function symbol() view returns(string) | |
func (_Contract *ContractSession) Symbol() (string, error) { | |
return _Contract.Contract.Symbol(&_Contract.CallOpts) | |
} | |
// Symbol is a free data retrieval call binding the contract method 0x95d89b41. | |
// | |
// Solidity: function symbol() view returns(string) | |
func (_Contract *ContractCallerSession) Symbol() (string, error) { | |
return _Contract.Contract.Symbol(&_Contract.CallOpts) | |
} | |
// TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7. | |
// | |
// Solidity: function tokenByIndex(uint256 index) view returns(uint256) | |
func (_Contract *ContractCaller) TokenByIndex(opts *bind.CallOpts, index *big.Int) (*big.Int, error) { | |
var out []interface{} | |
err := _Contract.contract.Call(opts, &out, "tokenByIndex", index) | |
if err != nil { | |
return *new(*big.Int), err | |
} | |
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) | |
return out0, err | |
} | |
// TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7. | |
// | |
// Solidity: function tokenByIndex(uint256 index) view returns(uint256) | |
func (_Contract *ContractSession) TokenByIndex(index *big.Int) (*big.Int, error) { | |
return _Contract.Contract.TokenByIndex(&_Contract.CallOpts, index) | |
} | |
// TokenByIndex is a free data retrieval call binding the contract method 0x4f6ccce7. | |
// | |
// Solidity: function tokenByIndex(uint256 index) view returns(uint256) | |
func (_Contract *ContractCallerSession) TokenByIndex(index *big.Int) (*big.Int, error) { | |
return _Contract.Contract.TokenByIndex(&_Contract.CallOpts, index) | |
} | |
// TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59. | |
// | |
// Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256) | |
func (_Contract *ContractCaller) TokenOfOwnerByIndex(opts *bind.CallOpts, owner common.Address, index *big.Int) (*big.Int, error) { | |
var out []interface{} | |
err := _Contract.contract.Call(opts, &out, "tokenOfOwnerByIndex", owner, index) | |
if err != nil { | |
return *new(*big.Int), err | |
} | |
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) | |
return out0, err | |
} | |
// TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59. | |
// | |
// Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256) | |
func (_Contract *ContractSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error) { | |
return _Contract.Contract.TokenOfOwnerByIndex(&_Contract.CallOpts, owner, index) | |
} | |
// TokenOfOwnerByIndex is a free data retrieval call binding the contract method 0x2f745c59. | |
// | |
// Solidity: function tokenOfOwnerByIndex(address owner, uint256 index) view returns(uint256) | |
func (_Contract *ContractCallerSession) TokenOfOwnerByIndex(owner common.Address, index *big.Int) (*big.Int, error) { | |
return _Contract.Contract.TokenOfOwnerByIndex(&_Contract.CallOpts, owner, index) | |
} | |
// TokenURI is a free data retrieval call binding the contract method 0xc87b56dd. | |
// | |
// Solidity: function tokenURI(uint256 tokenId) view returns(string) | |
func (_Contract *ContractCaller) TokenURI(opts *bind.CallOpts, tokenId *big.Int) (string, error) { | |
var out []interface{} | |
err := _Contract.contract.Call(opts, &out, "tokenURI", tokenId) | |
if err != nil { | |
return *new(string), err | |
} | |
out0 := *abi.ConvertType(out[0], new(string)).(*string) | |
return out0, err | |
} | |
// TokenURI is a free data retrieval call binding the contract method 0xc87b56dd. | |
// | |
// Solidity: function tokenURI(uint256 tokenId) view returns(string) | |
func (_Contract *ContractSession) TokenURI(tokenId *big.Int) (string, error) { | |
return _Contract.Contract.TokenURI(&_Contract.CallOpts, tokenId) | |
} | |
// TokenURI is a free data retrieval call binding the contract method 0xc87b56dd. | |
// | |
// Solidity: function tokenURI(uint256 tokenId) view returns(string) | |
func (_Contract *ContractCallerSession) TokenURI(tokenId *big.Int) (string, error) { | |
return _Contract.Contract.TokenURI(&_Contract.CallOpts, tokenId) | |
} | |
// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. | |
// | |
// Solidity: function totalSupply() view returns(uint256) | |
func (_Contract *ContractCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error) { | |
var out []interface{} | |
err := _Contract.contract.Call(opts, &out, "totalSupply") | |
if err != nil { | |
return *new(*big.Int), err | |
} | |
out0 := *abi.ConvertType(out[0], new(*big.Int)).(**big.Int) | |
return out0, err | |
} | |
// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. | |
// | |
// Solidity: function totalSupply() view returns(uint256) | |
func (_Contract *ContractSession) TotalSupply() (*big.Int, error) { | |
return _Contract.Contract.TotalSupply(&_Contract.CallOpts) | |
} | |
// TotalSupply is a free data retrieval call binding the contract method 0x18160ddd. | |
// | |
// Solidity: function totalSupply() view returns(uint256) | |
func (_Contract *ContractCallerSession) TotalSupply() (*big.Int, error) { | |
return _Contract.Contract.TotalSupply(&_Contract.CallOpts) | |
} | |
// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. | |
// | |
// Solidity: function approve(address to, uint256 tokenId) returns() | |
func (_Contract *ContractTransactor) Approve(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "approve", to, tokenId) | |
} | |
// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. | |
// | |
// Solidity: function approve(address to, uint256 tokenId) returns() | |
func (_Contract *ContractSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.Contract.Approve(&_Contract.TransactOpts, to, tokenId) | |
} | |
// Approve is a paid mutator transaction binding the contract method 0x095ea7b3. | |
// | |
// Solidity: function approve(address to, uint256 tokenId) returns() | |
func (_Contract *ContractTransactorSession) Approve(to common.Address, tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.Contract.Approve(&_Contract.TransactOpts, to, tokenId) | |
} | |
// Burn is a paid mutator transaction binding the contract method 0x42966c68. | |
// | |
// Solidity: function burn(uint256 tokenId) returns() | |
func (_Contract *ContractTransactor) Burn(opts *bind.TransactOpts, tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "burn", tokenId) | |
} | |
// Burn is a paid mutator transaction binding the contract method 0x42966c68. | |
// | |
// Solidity: function burn(uint256 tokenId) returns() | |
func (_Contract *ContractSession) Burn(tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.Contract.Burn(&_Contract.TransactOpts, tokenId) | |
} | |
// Burn is a paid mutator transaction binding the contract method 0x42966c68. | |
// | |
// Solidity: function burn(uint256 tokenId) returns() | |
func (_Contract *ContractTransactorSession) Burn(tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.Contract.Burn(&_Contract.TransactOpts, tokenId) | |
} | |
// GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d. | |
// | |
// Solidity: function grantRole(bytes32 role, address account) returns() | |
func (_Contract *ContractTransactor) GrantRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "grantRole", role, account) | |
} | |
// GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d. | |
// | |
// Solidity: function grantRole(bytes32 role, address account) returns() | |
func (_Contract *ContractSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error) { | |
return _Contract.Contract.GrantRole(&_Contract.TransactOpts, role, account) | |
} | |
// GrantRole is a paid mutator transaction binding the contract method 0x2f2ff15d. | |
// | |
// Solidity: function grantRole(bytes32 role, address account) returns() | |
func (_Contract *ContractTransactorSession) GrantRole(role [32]byte, account common.Address) (*types.Transaction, error) { | |
return _Contract.Contract.GrantRole(&_Contract.TransactOpts, role, account) | |
} | |
// MintMultiple is a paid mutator transaction binding the contract method 0x5a9c9eb8. | |
// | |
// Solidity: function mintMultiple(address[] to, uint256[] tokenId, string[] uri) returns(bool) | |
func (_Contract *ContractTransactor) MintMultiple(opts *bind.TransactOpts, to []common.Address, tokenId []*big.Int, uri []string) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "mintMultiple", to, tokenId, uri) | |
} | |
// MintMultiple is a paid mutator transaction binding the contract method 0x5a9c9eb8. | |
// | |
// Solidity: function mintMultiple(address[] to, uint256[] tokenId, string[] uri) returns(bool) | |
func (_Contract *ContractSession) MintMultiple(to []common.Address, tokenId []*big.Int, uri []string) (*types.Transaction, error) { | |
return _Contract.Contract.MintMultiple(&_Contract.TransactOpts, to, tokenId, uri) | |
} | |
// MintMultiple is a paid mutator transaction binding the contract method 0x5a9c9eb8. | |
// | |
// Solidity: function mintMultiple(address[] to, uint256[] tokenId, string[] uri) returns(bool) | |
func (_Contract *ContractTransactorSession) MintMultiple(to []common.Address, tokenId []*big.Int, uri []string) (*types.Transaction, error) { | |
return _Contract.Contract.MintMultiple(&_Contract.TransactOpts, to, tokenId, uri) | |
} | |
// MintWithTokenURI is a paid mutator transaction binding the contract method 0x50bb4e7f. | |
// | |
// Solidity: function mintWithTokenURI(address to, uint256 tokenId, string uri) returns(bool) | |
func (_Contract *ContractTransactor) MintWithTokenURI(opts *bind.TransactOpts, to common.Address, tokenId *big.Int, uri string) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "mintWithTokenURI", to, tokenId, uri) | |
} | |
// MintWithTokenURI is a paid mutator transaction binding the contract method 0x50bb4e7f. | |
// | |
// Solidity: function mintWithTokenURI(address to, uint256 tokenId, string uri) returns(bool) | |
func (_Contract *ContractSession) MintWithTokenURI(to common.Address, tokenId *big.Int, uri string) (*types.Transaction, error) { | |
return _Contract.Contract.MintWithTokenURI(&_Contract.TransactOpts, to, tokenId, uri) | |
} | |
// MintWithTokenURI is a paid mutator transaction binding the contract method 0x50bb4e7f. | |
// | |
// Solidity: function mintWithTokenURI(address to, uint256 tokenId, string uri) returns(bool) | |
func (_Contract *ContractTransactorSession) MintWithTokenURI(to common.Address, tokenId *big.Int, uri string) (*types.Transaction, error) { | |
return _Contract.Contract.MintWithTokenURI(&_Contract.TransactOpts, to, tokenId, uri) | |
} | |
// Pause is a paid mutator transaction binding the contract method 0x8456cb59. | |
// | |
// Solidity: function pause() returns() | |
func (_Contract *ContractTransactor) Pause(opts *bind.TransactOpts) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "pause") | |
} | |
// Pause is a paid mutator transaction binding the contract method 0x8456cb59. | |
// | |
// Solidity: function pause() returns() | |
func (_Contract *ContractSession) Pause() (*types.Transaction, error) { | |
return _Contract.Contract.Pause(&_Contract.TransactOpts) | |
} | |
// Pause is a paid mutator transaction binding the contract method 0x8456cb59. | |
// | |
// Solidity: function pause() returns() | |
func (_Contract *ContractTransactorSession) Pause() (*types.Transaction, error) { | |
return _Contract.Contract.Pause(&_Contract.TransactOpts) | |
} | |
// RenounceRole is a paid mutator transaction binding the contract method 0x36568abe. | |
// | |
// Solidity: function renounceRole(bytes32 role, address account) returns() | |
func (_Contract *ContractTransactor) RenounceRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "renounceRole", role, account) | |
} | |
// RenounceRole is a paid mutator transaction binding the contract method 0x36568abe. | |
// | |
// Solidity: function renounceRole(bytes32 role, address account) returns() | |
func (_Contract *ContractSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error) { | |
return _Contract.Contract.RenounceRole(&_Contract.TransactOpts, role, account) | |
} | |
// RenounceRole is a paid mutator transaction binding the contract method 0x36568abe. | |
// | |
// Solidity: function renounceRole(bytes32 role, address account) returns() | |
func (_Contract *ContractTransactorSession) RenounceRole(role [32]byte, account common.Address) (*types.Transaction, error) { | |
return _Contract.Contract.RenounceRole(&_Contract.TransactOpts, role, account) | |
} | |
// RevokeRole is a paid mutator transaction binding the contract method 0xd547741f. | |
// | |
// Solidity: function revokeRole(bytes32 role, address account) returns() | |
func (_Contract *ContractTransactor) RevokeRole(opts *bind.TransactOpts, role [32]byte, account common.Address) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "revokeRole", role, account) | |
} | |
// RevokeRole is a paid mutator transaction binding the contract method 0xd547741f. | |
// | |
// Solidity: function revokeRole(bytes32 role, address account) returns() | |
func (_Contract *ContractSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error) { | |
return _Contract.Contract.RevokeRole(&_Contract.TransactOpts, role, account) | |
} | |
// RevokeRole is a paid mutator transaction binding the contract method 0xd547741f. | |
// | |
// Solidity: function revokeRole(bytes32 role, address account) returns() | |
func (_Contract *ContractTransactorSession) RevokeRole(role [32]byte, account common.Address) (*types.Transaction, error) { | |
return _Contract.Contract.RevokeRole(&_Contract.TransactOpts, role, account) | |
} | |
// SafeTransfer is a paid mutator transaction binding the contract method 0x423f6cef. | |
// | |
// Solidity: function safeTransfer(address to, uint256 tokenId) returns() | |
func (_Contract *ContractTransactor) SafeTransfer(opts *bind.TransactOpts, to common.Address, tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "safeTransfer", to, tokenId) | |
} | |
// SafeTransfer is a paid mutator transaction binding the contract method 0x423f6cef. | |
// | |
// Solidity: function safeTransfer(address to, uint256 tokenId) returns() | |
func (_Contract *ContractSession) SafeTransfer(to common.Address, tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.Contract.SafeTransfer(&_Contract.TransactOpts, to, tokenId) | |
} | |
// SafeTransfer is a paid mutator transaction binding the contract method 0x423f6cef. | |
// | |
// Solidity: function safeTransfer(address to, uint256 tokenId) returns() | |
func (_Contract *ContractTransactorSession) SafeTransfer(to common.Address, tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.Contract.SafeTransfer(&_Contract.TransactOpts, to, tokenId) | |
} | |
// SafeTransfer0 is a paid mutator transaction binding the contract method 0xeb795549. | |
// | |
// Solidity: function safeTransfer(address to, uint256 tokenId, bytes data) returns() | |
func (_Contract *ContractTransactor) SafeTransfer0(opts *bind.TransactOpts, to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "safeTransfer0", to, tokenId, data) | |
} | |
// SafeTransfer0 is a paid mutator transaction binding the contract method 0xeb795549. | |
// | |
// Solidity: function safeTransfer(address to, uint256 tokenId, bytes data) returns() | |
func (_Contract *ContractSession) SafeTransfer0(to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error) { | |
return _Contract.Contract.SafeTransfer0(&_Contract.TransactOpts, to, tokenId, data) | |
} | |
// SafeTransfer0 is a paid mutator transaction binding the contract method 0xeb795549. | |
// | |
// Solidity: function safeTransfer(address to, uint256 tokenId, bytes data) returns() | |
func (_Contract *ContractTransactorSession) SafeTransfer0(to common.Address, tokenId *big.Int, data []byte) (*types.Transaction, error) { | |
return _Contract.Contract.SafeTransfer0(&_Contract.TransactOpts, to, tokenId, data) | |
} | |
// SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e. | |
// | |
// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns() | |
func (_Contract *ContractTransactor) SafeTransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "safeTransferFrom", from, to, tokenId) | |
} | |
// SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e. | |
// | |
// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns() | |
func (_Contract *ContractSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.Contract.SafeTransferFrom(&_Contract.TransactOpts, from, to, tokenId) | |
} | |
// SafeTransferFrom is a paid mutator transaction binding the contract method 0x42842e0e. | |
// | |
// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId) returns() | |
func (_Contract *ContractTransactorSession) SafeTransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.Contract.SafeTransferFrom(&_Contract.TransactOpts, from, to, tokenId) | |
} | |
// SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde. | |
// | |
// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) returns() | |
func (_Contract *ContractTransactor) SafeTransferFrom0(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "safeTransferFrom0", from, to, tokenId, _data) | |
} | |
// SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde. | |
// | |
// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) returns() | |
func (_Contract *ContractSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error) { | |
return _Contract.Contract.SafeTransferFrom0(&_Contract.TransactOpts, from, to, tokenId, _data) | |
} | |
// SafeTransferFrom0 is a paid mutator transaction binding the contract method 0xb88d4fde. | |
// | |
// Solidity: function safeTransferFrom(address from, address to, uint256 tokenId, bytes _data) returns() | |
func (_Contract *ContractTransactorSession) SafeTransferFrom0(from common.Address, to common.Address, tokenId *big.Int, _data []byte) (*types.Transaction, error) { | |
return _Contract.Contract.SafeTransferFrom0(&_Contract.TransactOpts, from, to, tokenId, _data) | |
} | |
// SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465. | |
// | |
// Solidity: function setApprovalForAll(address operator, bool approved) returns() | |
func (_Contract *ContractTransactor) SetApprovalForAll(opts *bind.TransactOpts, operator common.Address, approved bool) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "setApprovalForAll", operator, approved) | |
} | |
// SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465. | |
// | |
// Solidity: function setApprovalForAll(address operator, bool approved) returns() | |
func (_Contract *ContractSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error) { | |
return _Contract.Contract.SetApprovalForAll(&_Contract.TransactOpts, operator, approved) | |
} | |
// SetApprovalForAll is a paid mutator transaction binding the contract method 0xa22cb465. | |
// | |
// Solidity: function setApprovalForAll(address operator, bool approved) returns() | |
func (_Contract *ContractTransactorSession) SetApprovalForAll(operator common.Address, approved bool) (*types.Transaction, error) { | |
return _Contract.Contract.SetApprovalForAll(&_Contract.TransactOpts, operator, approved) | |
} | |
// TransferFrom is a paid mutator transaction binding the contract method 0x23b872dd. | |
// | |
// Solidity: function transferFrom(address from, address to, uint256 tokenId) returns() | |
func (_Contract *ContractTransactor) TransferFrom(opts *bind.TransactOpts, from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.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 (_Contract *ContractSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.Contract.TransferFrom(&_Contract.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 (_Contract *ContractTransactorSession) TransferFrom(from common.Address, to common.Address, tokenId *big.Int) (*types.Transaction, error) { | |
return _Contract.Contract.TransferFrom(&_Contract.TransactOpts, from, to, tokenId) | |
} | |
// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. | |
// | |
// Solidity: function unpause() returns() | |
func (_Contract *ContractTransactor) Unpause(opts *bind.TransactOpts) (*types.Transaction, error) { | |
return _Contract.contract.Transact(opts, "unpause") | |
} | |
// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. | |
// | |
// Solidity: function unpause() returns() | |
func (_Contract *ContractSession) Unpause() (*types.Transaction, error) { | |
return _Contract.Contract.Unpause(&_Contract.TransactOpts) | |
} | |
// Unpause is a paid mutator transaction binding the contract method 0x3f4ba83a. | |
// | |
// Solidity: function unpause() returns() | |
func (_Contract *ContractTransactorSession) Unpause() (*types.Transaction, error) { | |
return _Contract.Contract.Unpause(&_Contract.TransactOpts) | |
} | |
// ContractApprovalIterator is returned from FilterApproval and is used to iterate over the raw logs and unpacked data for Approval events raised by the Contract contract. | |
type ContractApprovalIterator struct { | |
Event *ContractApproval // Event containing the contract specifics and raw log | |
contract *bind.BoundContract // Generic contract to use for unpacking event data | |
event string // Event name to use for unpacking event data | |
logs chan types.Log // Log channel receiving the found contract events | |
sub ethereum.Subscription // Subscription for errors, completion and termination | |
done bool // Whether the subscription completed delivering logs | |
fail error // Occurred error to stop iteration | |
} | |
// Next advances the iterator to the subsequent event, returning whether there | |
// are any more events found. In case of a retrieval or parsing error, false is | |
// returned and Error() can be queried for the exact failure. | |
func (it *ContractApprovalIterator) Next() bool { | |
// If the iterator failed, stop iterating | |
if it.fail != nil { | |
return false | |
} | |
// If the iterator completed, deliver directly whatever's available | |
if it.done { | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractApproval) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
default: | |
return false | |
} | |
} | |
// Iterator still in progress, wait for either a data or an error event | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractApproval) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
case err := <-it.sub.Err(): | |
it.done = true | |
it.fail = err | |
return it.Next() | |
} | |
} | |
// Error returns any retrieval or parsing error occurred during filtering. | |
func (it *ContractApprovalIterator) Error() error { | |
return it.fail | |
} | |
// Close terminates the iteration process, releasing any pending underlying | |
// resources. | |
func (it *ContractApprovalIterator) Close() error { | |
it.sub.Unsubscribe() | |
return nil | |
} | |
// ContractApproval represents a Approval event raised by the Contract contract. | |
type ContractApproval struct { | |
Owner common.Address | |
Approved common.Address | |
TokenId *big.Int | |
Raw types.Log // Blockchain specific contextual infos | |
} | |
// FilterApproval is a free log retrieval operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. | |
// | |
// Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId) | |
func (_Contract *ContractFilterer) FilterApproval(opts *bind.FilterOpts, owner []common.Address, approved []common.Address, tokenId []*big.Int) (*ContractApprovalIterator, error) { | |
var ownerRule []interface{} | |
for _, ownerItem := range owner { | |
ownerRule = append(ownerRule, ownerItem) | |
} | |
var approvedRule []interface{} | |
for _, approvedItem := range approved { | |
approvedRule = append(approvedRule, approvedItem) | |
} | |
var tokenIdRule []interface{} | |
for _, tokenIdItem := range tokenId { | |
tokenIdRule = append(tokenIdRule, tokenIdItem) | |
} | |
logs, sub, err := _Contract.contract.FilterLogs(opts, "Approval", ownerRule, approvedRule, tokenIdRule) | |
if err != nil { | |
return nil, err | |
} | |
return &ContractApprovalIterator{contract: _Contract.contract, event: "Approval", logs: logs, sub: sub}, nil | |
} | |
// WatchApproval is a free log subscription operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. | |
// | |
// Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId) | |
func (_Contract *ContractFilterer) WatchApproval(opts *bind.WatchOpts, sink chan<- *ContractApproval, owner []common.Address, approved []common.Address, tokenId []*big.Int) (event.Subscription, error) { | |
var ownerRule []interface{} | |
for _, ownerItem := range owner { | |
ownerRule = append(ownerRule, ownerItem) | |
} | |
var approvedRule []interface{} | |
for _, approvedItem := range approved { | |
approvedRule = append(approvedRule, approvedItem) | |
} | |
var tokenIdRule []interface{} | |
for _, tokenIdItem := range tokenId { | |
tokenIdRule = append(tokenIdRule, tokenIdItem) | |
} | |
logs, sub, err := _Contract.contract.WatchLogs(opts, "Approval", ownerRule, approvedRule, tokenIdRule) | |
if err != nil { | |
return nil, err | |
} | |
return event.NewSubscription(func(quit <-chan struct{}) error { | |
defer sub.Unsubscribe() | |
for { | |
select { | |
case log := <-logs: | |
// New log arrived, parse the event and forward to the user | |
event := new(ContractApproval) | |
if err := _Contract.contract.UnpackLog(event, "Approval", log); err != nil { | |
return err | |
} | |
event.Raw = log | |
select { | |
case sink <- event: | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
} | |
}), nil | |
} | |
// ParseApproval is a log parse operation binding the contract event 0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925. | |
// | |
// Solidity: event Approval(address indexed owner, address indexed approved, uint256 indexed tokenId) | |
func (_Contract *ContractFilterer) ParseApproval(log types.Log) (*ContractApproval, error) { | |
event := new(ContractApproval) | |
if err := _Contract.contract.UnpackLog(event, "Approval", log); err != nil { | |
return nil, err | |
} | |
event.Raw = log | |
return event, nil | |
} | |
// ContractApprovalForAllIterator is returned from FilterApprovalForAll and is used to iterate over the raw logs and unpacked data for ApprovalForAll events raised by the Contract contract. | |
type ContractApprovalForAllIterator struct { | |
Event *ContractApprovalForAll // Event containing the contract specifics and raw log | |
contract *bind.BoundContract // Generic contract to use for unpacking event data | |
event string // Event name to use for unpacking event data | |
logs chan types.Log // Log channel receiving the found contract events | |
sub ethereum.Subscription // Subscription for errors, completion and termination | |
done bool // Whether the subscription completed delivering logs | |
fail error // Occurred error to stop iteration | |
} | |
// Next advances the iterator to the subsequent event, returning whether there | |
// are any more events found. In case of a retrieval or parsing error, false is | |
// returned and Error() can be queried for the exact failure. | |
func (it *ContractApprovalForAllIterator) Next() bool { | |
// If the iterator failed, stop iterating | |
if it.fail != nil { | |
return false | |
} | |
// If the iterator completed, deliver directly whatever's available | |
if it.done { | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractApprovalForAll) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
default: | |
return false | |
} | |
} | |
// Iterator still in progress, wait for either a data or an error event | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractApprovalForAll) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
case err := <-it.sub.Err(): | |
it.done = true | |
it.fail = err | |
return it.Next() | |
} | |
} | |
// Error returns any retrieval or parsing error occurred during filtering. | |
func (it *ContractApprovalForAllIterator) Error() error { | |
return it.fail | |
} | |
// Close terminates the iteration process, releasing any pending underlying | |
// resources. | |
func (it *ContractApprovalForAllIterator) Close() error { | |
it.sub.Unsubscribe() | |
return nil | |
} | |
// ContractApprovalForAll represents a ApprovalForAll event raised by the Contract contract. | |
type ContractApprovalForAll struct { | |
Owner common.Address | |
Operator common.Address | |
Approved bool | |
Raw types.Log // Blockchain specific contextual infos | |
} | |
// FilterApprovalForAll is a free log retrieval operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31. | |
// | |
// Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved) | |
func (_Contract *ContractFilterer) FilterApprovalForAll(opts *bind.FilterOpts, owner []common.Address, operator []common.Address) (*ContractApprovalForAllIterator, error) { | |
var ownerRule []interface{} | |
for _, ownerItem := range owner { | |
ownerRule = append(ownerRule, ownerItem) | |
} | |
var operatorRule []interface{} | |
for _, operatorItem := range operator { | |
operatorRule = append(operatorRule, operatorItem) | |
} | |
logs, sub, err := _Contract.contract.FilterLogs(opts, "ApprovalForAll", ownerRule, operatorRule) | |
if err != nil { | |
return nil, err | |
} | |
return &ContractApprovalForAllIterator{contract: _Contract.contract, event: "ApprovalForAll", logs: logs, sub: sub}, nil | |
} | |
// WatchApprovalForAll is a free log subscription operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31. | |
// | |
// Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved) | |
func (_Contract *ContractFilterer) WatchApprovalForAll(opts *bind.WatchOpts, sink chan<- *ContractApprovalForAll, owner []common.Address, operator []common.Address) (event.Subscription, error) { | |
var ownerRule []interface{} | |
for _, ownerItem := range owner { | |
ownerRule = append(ownerRule, ownerItem) | |
} | |
var operatorRule []interface{} | |
for _, operatorItem := range operator { | |
operatorRule = append(operatorRule, operatorItem) | |
} | |
logs, sub, err := _Contract.contract.WatchLogs(opts, "ApprovalForAll", ownerRule, operatorRule) | |
if err != nil { | |
return nil, err | |
} | |
return event.NewSubscription(func(quit <-chan struct{}) error { | |
defer sub.Unsubscribe() | |
for { | |
select { | |
case log := <-logs: | |
// New log arrived, parse the event and forward to the user | |
event := new(ContractApprovalForAll) | |
if err := _Contract.contract.UnpackLog(event, "ApprovalForAll", log); err != nil { | |
return err | |
} | |
event.Raw = log | |
select { | |
case sink <- event: | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
} | |
}), nil | |
} | |
// ParseApprovalForAll is a log parse operation binding the contract event 0x17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31. | |
// | |
// Solidity: event ApprovalForAll(address indexed owner, address indexed operator, bool approved) | |
func (_Contract *ContractFilterer) ParseApprovalForAll(log types.Log) (*ContractApprovalForAll, error) { | |
event := new(ContractApprovalForAll) | |
if err := _Contract.contract.UnpackLog(event, "ApprovalForAll", log); err != nil { | |
return nil, err | |
} | |
event.Raw = log | |
return event, nil | |
} | |
// ContractPausedIterator is returned from FilterPaused and is used to iterate over the raw logs and unpacked data for Paused events raised by the Contract contract. | |
type ContractPausedIterator struct { | |
Event *ContractPaused // Event containing the contract specifics and raw log | |
contract *bind.BoundContract // Generic contract to use for unpacking event data | |
event string // Event name to use for unpacking event data | |
logs chan types.Log // Log channel receiving the found contract events | |
sub ethereum.Subscription // Subscription for errors, completion and termination | |
done bool // Whether the subscription completed delivering logs | |
fail error // Occurred error to stop iteration | |
} | |
// Next advances the iterator to the subsequent event, returning whether there | |
// are any more events found. In case of a retrieval or parsing error, false is | |
// returned and Error() can be queried for the exact failure. | |
func (it *ContractPausedIterator) Next() bool { | |
// If the iterator failed, stop iterating | |
if it.fail != nil { | |
return false | |
} | |
// If the iterator completed, deliver directly whatever's available | |
if it.done { | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractPaused) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
default: | |
return false | |
} | |
} | |
// Iterator still in progress, wait for either a data or an error event | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractPaused) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
case err := <-it.sub.Err(): | |
it.done = true | |
it.fail = err | |
return it.Next() | |
} | |
} | |
// Error returns any retrieval or parsing error occurred during filtering. | |
func (it *ContractPausedIterator) Error() error { | |
return it.fail | |
} | |
// Close terminates the iteration process, releasing any pending underlying | |
// resources. | |
func (it *ContractPausedIterator) Close() error { | |
it.sub.Unsubscribe() | |
return nil | |
} | |
// ContractPaused represents a Paused event raised by the Contract contract. | |
type ContractPaused struct { | |
Account common.Address | |
Raw types.Log // Blockchain specific contextual infos | |
} | |
// FilterPaused is a free log retrieval operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. | |
// | |
// Solidity: event Paused(address account) | |
func (_Contract *ContractFilterer) FilterPaused(opts *bind.FilterOpts) (*ContractPausedIterator, error) { | |
logs, sub, err := _Contract.contract.FilterLogs(opts, "Paused") | |
if err != nil { | |
return nil, err | |
} | |
return &ContractPausedIterator{contract: _Contract.contract, event: "Paused", logs: logs, sub: sub}, nil | |
} | |
// WatchPaused is a free log subscription operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. | |
// | |
// Solidity: event Paused(address account) | |
func (_Contract *ContractFilterer) WatchPaused(opts *bind.WatchOpts, sink chan<- *ContractPaused) (event.Subscription, error) { | |
logs, sub, err := _Contract.contract.WatchLogs(opts, "Paused") | |
if err != nil { | |
return nil, err | |
} | |
return event.NewSubscription(func(quit <-chan struct{}) error { | |
defer sub.Unsubscribe() | |
for { | |
select { | |
case log := <-logs: | |
// New log arrived, parse the event and forward to the user | |
event := new(ContractPaused) | |
if err := _Contract.contract.UnpackLog(event, "Paused", log); err != nil { | |
return err | |
} | |
event.Raw = log | |
select { | |
case sink <- event: | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
} | |
}), nil | |
} | |
// ParsePaused is a log parse operation binding the contract event 0x62e78cea01bee320cd4e420270b5ea74000d11b0c9f74754ebdbfc544b05a258. | |
// | |
// Solidity: event Paused(address account) | |
func (_Contract *ContractFilterer) ParsePaused(log types.Log) (*ContractPaused, error) { | |
event := new(ContractPaused) | |
if err := _Contract.contract.UnpackLog(event, "Paused", log); err != nil { | |
return nil, err | |
} | |
event.Raw = log | |
return event, nil | |
} | |
// ContractRoleAdminChangedIterator is returned from FilterRoleAdminChanged and is used to iterate over the raw logs and unpacked data for RoleAdminChanged events raised by the Contract contract. | |
type ContractRoleAdminChangedIterator struct { | |
Event *ContractRoleAdminChanged // Event containing the contract specifics and raw log | |
contract *bind.BoundContract // Generic contract to use for unpacking event data | |
event string // Event name to use for unpacking event data | |
logs chan types.Log // Log channel receiving the found contract events | |
sub ethereum.Subscription // Subscription for errors, completion and termination | |
done bool // Whether the subscription completed delivering logs | |
fail error // Occurred error to stop iteration | |
} | |
// Next advances the iterator to the subsequent event, returning whether there | |
// are any more events found. In case of a retrieval or parsing error, false is | |
// returned and Error() can be queried for the exact failure. | |
func (it *ContractRoleAdminChangedIterator) Next() bool { | |
// If the iterator failed, stop iterating | |
if it.fail != nil { | |
return false | |
} | |
// If the iterator completed, deliver directly whatever's available | |
if it.done { | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractRoleAdminChanged) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
default: | |
return false | |
} | |
} | |
// Iterator still in progress, wait for either a data or an error event | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractRoleAdminChanged) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
case err := <-it.sub.Err(): | |
it.done = true | |
it.fail = err | |
return it.Next() | |
} | |
} | |
// Error returns any retrieval or parsing error occurred during filtering. | |
func (it *ContractRoleAdminChangedIterator) Error() error { | |
return it.fail | |
} | |
// Close terminates the iteration process, releasing any pending underlying | |
// resources. | |
func (it *ContractRoleAdminChangedIterator) Close() error { | |
it.sub.Unsubscribe() | |
return nil | |
} | |
// ContractRoleAdminChanged represents a RoleAdminChanged event raised by the Contract contract. | |
type ContractRoleAdminChanged struct { | |
Role [32]byte | |
PreviousAdminRole [32]byte | |
NewAdminRole [32]byte | |
Raw types.Log // Blockchain specific contextual infos | |
} | |
// FilterRoleAdminChanged is a free log retrieval operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff. | |
// | |
// Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole) | |
func (_Contract *ContractFilterer) FilterRoleAdminChanged(opts *bind.FilterOpts, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (*ContractRoleAdminChangedIterator, error) { | |
var roleRule []interface{} | |
for _, roleItem := range role { | |
roleRule = append(roleRule, roleItem) | |
} | |
var previousAdminRoleRule []interface{} | |
for _, previousAdminRoleItem := range previousAdminRole { | |
previousAdminRoleRule = append(previousAdminRoleRule, previousAdminRoleItem) | |
} | |
var newAdminRoleRule []interface{} | |
for _, newAdminRoleItem := range newAdminRole { | |
newAdminRoleRule = append(newAdminRoleRule, newAdminRoleItem) | |
} | |
logs, sub, err := _Contract.contract.FilterLogs(opts, "RoleAdminChanged", roleRule, previousAdminRoleRule, newAdminRoleRule) | |
if err != nil { | |
return nil, err | |
} | |
return &ContractRoleAdminChangedIterator{contract: _Contract.contract, event: "RoleAdminChanged", logs: logs, sub: sub}, nil | |
} | |
// WatchRoleAdminChanged is a free log subscription operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff. | |
// | |
// Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole) | |
func (_Contract *ContractFilterer) WatchRoleAdminChanged(opts *bind.WatchOpts, sink chan<- *ContractRoleAdminChanged, role [][32]byte, previousAdminRole [][32]byte, newAdminRole [][32]byte) (event.Subscription, error) { | |
var roleRule []interface{} | |
for _, roleItem := range role { | |
roleRule = append(roleRule, roleItem) | |
} | |
var previousAdminRoleRule []interface{} | |
for _, previousAdminRoleItem := range previousAdminRole { | |
previousAdminRoleRule = append(previousAdminRoleRule, previousAdminRoleItem) | |
} | |
var newAdminRoleRule []interface{} | |
for _, newAdminRoleItem := range newAdminRole { | |
newAdminRoleRule = append(newAdminRoleRule, newAdminRoleItem) | |
} | |
logs, sub, err := _Contract.contract.WatchLogs(opts, "RoleAdminChanged", roleRule, previousAdminRoleRule, newAdminRoleRule) | |
if err != nil { | |
return nil, err | |
} | |
return event.NewSubscription(func(quit <-chan struct{}) error { | |
defer sub.Unsubscribe() | |
for { | |
select { | |
case log := <-logs: | |
// New log arrived, parse the event and forward to the user | |
event := new(ContractRoleAdminChanged) | |
if err := _Contract.contract.UnpackLog(event, "RoleAdminChanged", log); err != nil { | |
return err | |
} | |
event.Raw = log | |
select { | |
case sink <- event: | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
} | |
}), nil | |
} | |
// ParseRoleAdminChanged is a log parse operation binding the contract event 0xbd79b86ffe0ab8e8776151514217cd7cacd52c909f66475c3af44e129f0b00ff. | |
// | |
// Solidity: event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole) | |
func (_Contract *ContractFilterer) ParseRoleAdminChanged(log types.Log) (*ContractRoleAdminChanged, error) { | |
event := new(ContractRoleAdminChanged) | |
if err := _Contract.contract.UnpackLog(event, "RoleAdminChanged", log); err != nil { | |
return nil, err | |
} | |
event.Raw = log | |
return event, nil | |
} | |
// ContractRoleGrantedIterator is returned from FilterRoleGranted and is used to iterate over the raw logs and unpacked data for RoleGranted events raised by the Contract contract. | |
type ContractRoleGrantedIterator struct { | |
Event *ContractRoleGranted // Event containing the contract specifics and raw log | |
contract *bind.BoundContract // Generic contract to use for unpacking event data | |
event string // Event name to use for unpacking event data | |
logs chan types.Log // Log channel receiving the found contract events | |
sub ethereum.Subscription // Subscription for errors, completion and termination | |
done bool // Whether the subscription completed delivering logs | |
fail error // Occurred error to stop iteration | |
} | |
// Next advances the iterator to the subsequent event, returning whether there | |
// are any more events found. In case of a retrieval or parsing error, false is | |
// returned and Error() can be queried for the exact failure. | |
func (it *ContractRoleGrantedIterator) Next() bool { | |
// If the iterator failed, stop iterating | |
if it.fail != nil { | |
return false | |
} | |
// If the iterator completed, deliver directly whatever's available | |
if it.done { | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractRoleGranted) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
default: | |
return false | |
} | |
} | |
// Iterator still in progress, wait for either a data or an error event | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractRoleGranted) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
case err := <-it.sub.Err(): | |
it.done = true | |
it.fail = err | |
return it.Next() | |
} | |
} | |
// Error returns any retrieval or parsing error occurred during filtering. | |
func (it *ContractRoleGrantedIterator) Error() error { | |
return it.fail | |
} | |
// Close terminates the iteration process, releasing any pending underlying | |
// resources. | |
func (it *ContractRoleGrantedIterator) Close() error { | |
it.sub.Unsubscribe() | |
return nil | |
} | |
// ContractRoleGranted represents a RoleGranted event raised by the Contract contract. | |
type ContractRoleGranted struct { | |
Role [32]byte | |
Account common.Address | |
Sender common.Address | |
Raw types.Log // Blockchain specific contextual infos | |
} | |
// FilterRoleGranted is a free log retrieval operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d. | |
// | |
// Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender) | |
func (_Contract *ContractFilterer) FilterRoleGranted(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ContractRoleGrantedIterator, error) { | |
var roleRule []interface{} | |
for _, roleItem := range role { | |
roleRule = append(roleRule, roleItem) | |
} | |
var accountRule []interface{} | |
for _, accountItem := range account { | |
accountRule = append(accountRule, accountItem) | |
} | |
var senderRule []interface{} | |
for _, senderItem := range sender { | |
senderRule = append(senderRule, senderItem) | |
} | |
logs, sub, err := _Contract.contract.FilterLogs(opts, "RoleGranted", roleRule, accountRule, senderRule) | |
if err != nil { | |
return nil, err | |
} | |
return &ContractRoleGrantedIterator{contract: _Contract.contract, event: "RoleGranted", logs: logs, sub: sub}, nil | |
} | |
// WatchRoleGranted is a free log subscription operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d. | |
// | |
// Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender) | |
func (_Contract *ContractFilterer) WatchRoleGranted(opts *bind.WatchOpts, sink chan<- *ContractRoleGranted, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error) { | |
var roleRule []interface{} | |
for _, roleItem := range role { | |
roleRule = append(roleRule, roleItem) | |
} | |
var accountRule []interface{} | |
for _, accountItem := range account { | |
accountRule = append(accountRule, accountItem) | |
} | |
var senderRule []interface{} | |
for _, senderItem := range sender { | |
senderRule = append(senderRule, senderItem) | |
} | |
logs, sub, err := _Contract.contract.WatchLogs(opts, "RoleGranted", roleRule, accountRule, senderRule) | |
if err != nil { | |
return nil, err | |
} | |
return event.NewSubscription(func(quit <-chan struct{}) error { | |
defer sub.Unsubscribe() | |
for { | |
select { | |
case log := <-logs: | |
// New log arrived, parse the event and forward to the user | |
event := new(ContractRoleGranted) | |
if err := _Contract.contract.UnpackLog(event, "RoleGranted", log); err != nil { | |
return err | |
} | |
event.Raw = log | |
select { | |
case sink <- event: | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
} | |
}), nil | |
} | |
// ParseRoleGranted is a log parse operation binding the contract event 0x2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d. | |
// | |
// Solidity: event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender) | |
func (_Contract *ContractFilterer) ParseRoleGranted(log types.Log) (*ContractRoleGranted, error) { | |
event := new(ContractRoleGranted) | |
if err := _Contract.contract.UnpackLog(event, "RoleGranted", log); err != nil { | |
return nil, err | |
} | |
event.Raw = log | |
return event, nil | |
} | |
// ContractRoleRevokedIterator is returned from FilterRoleRevoked and is used to iterate over the raw logs and unpacked data for RoleRevoked events raised by the Contract contract. | |
type ContractRoleRevokedIterator struct { | |
Event *ContractRoleRevoked // Event containing the contract specifics and raw log | |
contract *bind.BoundContract // Generic contract to use for unpacking event data | |
event string // Event name to use for unpacking event data | |
logs chan types.Log // Log channel receiving the found contract events | |
sub ethereum.Subscription // Subscription for errors, completion and termination | |
done bool // Whether the subscription completed delivering logs | |
fail error // Occurred error to stop iteration | |
} | |
// Next advances the iterator to the subsequent event, returning whether there | |
// are any more events found. In case of a retrieval or parsing error, false is | |
// returned and Error() can be queried for the exact failure. | |
func (it *ContractRoleRevokedIterator) Next() bool { | |
// If the iterator failed, stop iterating | |
if it.fail != nil { | |
return false | |
} | |
// If the iterator completed, deliver directly whatever's available | |
if it.done { | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractRoleRevoked) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
default: | |
return false | |
} | |
} | |
// Iterator still in progress, wait for either a data or an error event | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractRoleRevoked) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
case err := <-it.sub.Err(): | |
it.done = true | |
it.fail = err | |
return it.Next() | |
} | |
} | |
// Error returns any retrieval or parsing error occurred during filtering. | |
func (it *ContractRoleRevokedIterator) Error() error { | |
return it.fail | |
} | |
// Close terminates the iteration process, releasing any pending underlying | |
// resources. | |
func (it *ContractRoleRevokedIterator) Close() error { | |
it.sub.Unsubscribe() | |
return nil | |
} | |
// ContractRoleRevoked represents a RoleRevoked event raised by the Contract contract. | |
type ContractRoleRevoked struct { | |
Role [32]byte | |
Account common.Address | |
Sender common.Address | |
Raw types.Log // Blockchain specific contextual infos | |
} | |
// FilterRoleRevoked is a free log retrieval operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b. | |
// | |
// Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender) | |
func (_Contract *ContractFilterer) FilterRoleRevoked(opts *bind.FilterOpts, role [][32]byte, account []common.Address, sender []common.Address) (*ContractRoleRevokedIterator, error) { | |
var roleRule []interface{} | |
for _, roleItem := range role { | |
roleRule = append(roleRule, roleItem) | |
} | |
var accountRule []interface{} | |
for _, accountItem := range account { | |
accountRule = append(accountRule, accountItem) | |
} | |
var senderRule []interface{} | |
for _, senderItem := range sender { | |
senderRule = append(senderRule, senderItem) | |
} | |
logs, sub, err := _Contract.contract.FilterLogs(opts, "RoleRevoked", roleRule, accountRule, senderRule) | |
if err != nil { | |
return nil, err | |
} | |
return &ContractRoleRevokedIterator{contract: _Contract.contract, event: "RoleRevoked", logs: logs, sub: sub}, nil | |
} | |
// WatchRoleRevoked is a free log subscription operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b. | |
// | |
// Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender) | |
func (_Contract *ContractFilterer) WatchRoleRevoked(opts *bind.WatchOpts, sink chan<- *ContractRoleRevoked, role [][32]byte, account []common.Address, sender []common.Address) (event.Subscription, error) { | |
var roleRule []interface{} | |
for _, roleItem := range role { | |
roleRule = append(roleRule, roleItem) | |
} | |
var accountRule []interface{} | |
for _, accountItem := range account { | |
accountRule = append(accountRule, accountItem) | |
} | |
var senderRule []interface{} | |
for _, senderItem := range sender { | |
senderRule = append(senderRule, senderItem) | |
} | |
logs, sub, err := _Contract.contract.WatchLogs(opts, "RoleRevoked", roleRule, accountRule, senderRule) | |
if err != nil { | |
return nil, err | |
} | |
return event.NewSubscription(func(quit <-chan struct{}) error { | |
defer sub.Unsubscribe() | |
for { | |
select { | |
case log := <-logs: | |
// New log arrived, parse the event and forward to the user | |
event := new(ContractRoleRevoked) | |
if err := _Contract.contract.UnpackLog(event, "RoleRevoked", log); err != nil { | |
return err | |
} | |
event.Raw = log | |
select { | |
case sink <- event: | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
} | |
}), nil | |
} | |
// ParseRoleRevoked is a log parse operation binding the contract event 0xf6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b. | |
// | |
// Solidity: event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender) | |
func (_Contract *ContractFilterer) ParseRoleRevoked(log types.Log) (*ContractRoleRevoked, error) { | |
event := new(ContractRoleRevoked) | |
if err := _Contract.contract.UnpackLog(event, "RoleRevoked", log); err != nil { | |
return nil, err | |
} | |
event.Raw = log | |
return event, nil | |
} | |
// ContractTransferIterator is returned from FilterTransfer and is used to iterate over the raw logs and unpacked data for Transfer events raised by the Contract contract. | |
type ContractTransferIterator struct { | |
Event *ContractTransfer // Event containing the contract specifics and raw log | |
contract *bind.BoundContract // Generic contract to use for unpacking event data | |
event string // Event name to use for unpacking event data | |
logs chan types.Log // Log channel receiving the found contract events | |
sub ethereum.Subscription // Subscription for errors, completion and termination | |
done bool // Whether the subscription completed delivering logs | |
fail error // Occurred error to stop iteration | |
} | |
// Next advances the iterator to the subsequent event, returning whether there | |
// are any more events found. In case of a retrieval or parsing error, false is | |
// returned and Error() can be queried for the exact failure. | |
func (it *ContractTransferIterator) Next() bool { | |
// If the iterator failed, stop iterating | |
if it.fail != nil { | |
return false | |
} | |
// If the iterator completed, deliver directly whatever's available | |
if it.done { | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractTransfer) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
default: | |
return false | |
} | |
} | |
// Iterator still in progress, wait for either a data or an error event | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractTransfer) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
case err := <-it.sub.Err(): | |
it.done = true | |
it.fail = err | |
return it.Next() | |
} | |
} | |
// Error returns any retrieval or parsing error occurred during filtering. | |
func (it *ContractTransferIterator) Error() error { | |
return it.fail | |
} | |
// Close terminates the iteration process, releasing any pending underlying | |
// resources. | |
func (it *ContractTransferIterator) Close() error { | |
it.sub.Unsubscribe() | |
return nil | |
} | |
// ContractTransfer represents a Transfer event raised by the Contract contract. | |
type ContractTransfer struct { | |
From common.Address | |
To common.Address | |
TokenId *big.Int | |
Raw types.Log // Blockchain specific contextual infos | |
} | |
// FilterTransfer is a free log retrieval operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. | |
// | |
// Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId) | |
func (_Contract *ContractFilterer) FilterTransfer(opts *bind.FilterOpts, from []common.Address, to []common.Address, tokenId []*big.Int) (*ContractTransferIterator, error) { | |
var fromRule []interface{} | |
for _, fromItem := range from { | |
fromRule = append(fromRule, fromItem) | |
} | |
var toRule []interface{} | |
for _, toItem := range to { | |
toRule = append(toRule, toItem) | |
} | |
var tokenIdRule []interface{} | |
for _, tokenIdItem := range tokenId { | |
tokenIdRule = append(tokenIdRule, tokenIdItem) | |
} | |
logs, sub, err := _Contract.contract.FilterLogs(opts, "Transfer", fromRule, toRule, tokenIdRule) | |
if err != nil { | |
return nil, err | |
} | |
return &ContractTransferIterator{contract: _Contract.contract, event: "Transfer", logs: logs, sub: sub}, nil | |
} | |
// WatchTransfer is a free log subscription operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. | |
// | |
// Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId) | |
func (_Contract *ContractFilterer) WatchTransfer(opts *bind.WatchOpts, sink chan<- *ContractTransfer, from []common.Address, to []common.Address, tokenId []*big.Int) (event.Subscription, error) { | |
var fromRule []interface{} | |
for _, fromItem := range from { | |
fromRule = append(fromRule, fromItem) | |
} | |
var toRule []interface{} | |
for _, toItem := range to { | |
toRule = append(toRule, toItem) | |
} | |
var tokenIdRule []interface{} | |
for _, tokenIdItem := range tokenId { | |
tokenIdRule = append(tokenIdRule, tokenIdItem) | |
} | |
logs, sub, err := _Contract.contract.WatchLogs(opts, "Transfer", fromRule, toRule, tokenIdRule) | |
if err != nil { | |
return nil, err | |
} | |
return event.NewSubscription(func(quit <-chan struct{}) error { | |
defer sub.Unsubscribe() | |
for { | |
select { | |
case log := <-logs: | |
// New log arrived, parse the event and forward to the user | |
event := new(ContractTransfer) | |
if err := _Contract.contract.UnpackLog(event, "Transfer", log); err != nil { | |
return err | |
} | |
event.Raw = log | |
select { | |
case sink <- event: | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
} | |
}), nil | |
} | |
// ParseTransfer is a log parse operation binding the contract event 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef. | |
// | |
// Solidity: event Transfer(address indexed from, address indexed to, uint256 indexed tokenId) | |
func (_Contract *ContractFilterer) ParseTransfer(log types.Log) (*ContractTransfer, error) { | |
event := new(ContractTransfer) | |
if err := _Contract.contract.UnpackLog(event, "Transfer", log); err != nil { | |
return nil, err | |
} | |
event.Raw = log | |
return event, nil | |
} | |
// ContractUnpausedIterator is returned from FilterUnpaused and is used to iterate over the raw logs and unpacked data for Unpaused events raised by the Contract contract. | |
type ContractUnpausedIterator struct { | |
Event *ContractUnpaused // Event containing the contract specifics and raw log | |
contract *bind.BoundContract // Generic contract to use for unpacking event data | |
event string // Event name to use for unpacking event data | |
logs chan types.Log // Log channel receiving the found contract events | |
sub ethereum.Subscription // Subscription for errors, completion and termination | |
done bool // Whether the subscription completed delivering logs | |
fail error // Occurred error to stop iteration | |
} | |
// Next advances the iterator to the subsequent event, returning whether there | |
// are any more events found. In case of a retrieval or parsing error, false is | |
// returned and Error() can be queried for the exact failure. | |
func (it *ContractUnpausedIterator) Next() bool { | |
// If the iterator failed, stop iterating | |
if it.fail != nil { | |
return false | |
} | |
// If the iterator completed, deliver directly whatever's available | |
if it.done { | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractUnpaused) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
default: | |
return false | |
} | |
} | |
// Iterator still in progress, wait for either a data or an error event | |
select { | |
case log := <-it.logs: | |
it.Event = new(ContractUnpaused) | |
if err := it.contract.UnpackLog(it.Event, it.event, log); err != nil { | |
it.fail = err | |
return false | |
} | |
it.Event.Raw = log | |
return true | |
case err := <-it.sub.Err(): | |
it.done = true | |
it.fail = err | |
return it.Next() | |
} | |
} | |
// Error returns any retrieval or parsing error occurred during filtering. | |
func (it *ContractUnpausedIterator) Error() error { | |
return it.fail | |
} | |
// Close terminates the iteration process, releasing any pending underlying | |
// resources. | |
func (it *ContractUnpausedIterator) Close() error { | |
it.sub.Unsubscribe() | |
return nil | |
} | |
// ContractUnpaused represents a Unpaused event raised by the Contract contract. | |
type ContractUnpaused struct { | |
Account common.Address | |
Raw types.Log // Blockchain specific contextual infos | |
} | |
// FilterUnpaused is a free log retrieval operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. | |
// | |
// Solidity: event Unpaused(address account) | |
func (_Contract *ContractFilterer) FilterUnpaused(opts *bind.FilterOpts) (*ContractUnpausedIterator, error) { | |
logs, sub, err := _Contract.contract.FilterLogs(opts, "Unpaused") | |
if err != nil { | |
return nil, err | |
} | |
return &ContractUnpausedIterator{contract: _Contract.contract, event: "Unpaused", logs: logs, sub: sub}, nil | |
} | |
// WatchUnpaused is a free log subscription operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. | |
// | |
// Solidity: event Unpaused(address account) | |
func (_Contract *ContractFilterer) WatchUnpaused(opts *bind.WatchOpts, sink chan<- *ContractUnpaused) (event.Subscription, error) { | |
logs, sub, err := _Contract.contract.WatchLogs(opts, "Unpaused") | |
if err != nil { | |
return nil, err | |
} | |
return event.NewSubscription(func(quit <-chan struct{}) error { | |
defer sub.Unsubscribe() | |
for { | |
select { | |
case log := <-logs: | |
// New log arrived, parse the event and forward to the user | |
event := new(ContractUnpaused) | |
if err := _Contract.contract.UnpackLog(event, "Unpaused", log); err != nil { | |
return err | |
} | |
event.Raw = log | |
select { | |
case sink <- event: | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
case err := <-sub.Err(): | |
return err | |
case <-quit: | |
return nil | |
} | |
} | |
}), nil | |
} | |
// ParseUnpaused is a log parse operation binding the contract event 0x5db9ee0a495bf2e6ff9c91a7834c1ba4fdd244a5e8aa4e537bd38aeae4b073aa. | |
// | |
// Solidity: event Unpaused(address account) | |
func (_Contract *ContractFilterer) ParseUnpaused(log types.Log) (*ContractUnpaused, error) { | |
event := new(ContractUnpaused) | |
if err := _Contract.contract.UnpackLog(event, "Unpaused", log); err != nil { | |
return nil, err | |
} | |
event.Raw = log | |
return event, nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment