175 txs
723 calls
constructor
constructor(address initialOwner)
functions
balanceOf
viewfunction balanceOf(address account, uint256 id) view returns (uint256)
balanceOfBatch
viewfunction balanceOfBatch(address[] accounts, uint256[] ids) view returns (uint256[])
DEFAULT_ADMIN_ROLE
viewfunction DEFAULT_ADMIN_ROLE() view returns (bytes32)
exists
viewfunction exists(uint256 id) view returns (bool)
getRoleAdmin
viewfunction getRoleAdmin(bytes32 role) view returns (bytes32)
hasRole
viewfunction hasRole(bytes32 role, address account) view returns (bool)
isApprovedForAll
viewfunction isApprovedForAll(address account, address operator) view returns (bool)
name
viewfunction name() view returns (string)
owner
viewfunction owner() view returns (address)
supportsInterface
viewfunction supportsInterface(bytes4 interfaceId) view returns (bool)
symbol
viewfunction symbol() view returns (string)
tokenURI
viewfunction tokenURI(uint256 _tokenID) view returns (string)
totalSupply
viewfunction totalSupply() view returns (uint256)
totalSupply
viewfunction totalSupply(uint256 id) view returns (uint256)
URI_SETTER_ROLE
viewfunction URI_SETTER_ROLE() view returns (bytes32)
uri
viewfunction uri(uint256 _tokenID) view returns (string)
burn
nonpayablefunction burn(address account, uint256 id, uint256 value)
burnBatch
nonpayablefunction burnBatch(address account, uint256[] ids, uint256[] values)
grantRole
nonpayablefunction grantRole(bytes32 role, address account)
mint
nonpayablefunction mint(address _toAddress, uint256 _tokenId, uint256 _amount)
mintDrop
nonpayablefunction mintDrop(uint256 _tokenId, address[] _toAddresses)
renounceOwnership
nonpayablefunction renounceOwnership()
renounceRole
nonpayablefunction renounceRole(bytes32 role, address callerConfirmation)
revokeRole
nonpayablefunction revokeRole(bytes32 role, address account)
safeBatchTransferFrom
nonpayablefunction safeBatchTransferFrom(address from, address to, uint256[] ids, uint256[] values, bytes data)
safeTransferFrom
nonpayablefunction safeTransferFrom(address from, address to, uint256 id, uint256 value, bytes data)
setApprovalForAll
nonpayablefunction setApprovalForAll(address operator, bool approved)
setURI
nonpayablefunction setURI(uint256 _tokenID, string _uri)
transferOwnership
nonpayablefunction transferOwnership(address newOwner)
withdraw
payablefunction withdraw() payable
events
ApprovalForAll
event ApprovalForAll(address indexed account, address indexed operator, bool approved)
OwnershipTransferred
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner)
RoleAdminChanged
event RoleAdminChanged(bytes32 indexed role, bytes32 indexed previousAdminRole, bytes32 indexed newAdminRole)
RoleGranted
event RoleGranted(bytes32 indexed role, address indexed account, address indexed sender)
RoleRevoked
event RoleRevoked(bytes32 indexed role, address indexed account, address indexed sender)
TransferBatch
event TransferBatch(address indexed operator, address indexed from, address indexed to, uint256[] ids, uint256[] values)
TransferSingle
event TransferSingle(address indexed operator, address indexed from, address indexed to, uint256 id, uint256 value)
URI
event URI(string value, uint256 indexed id)
errors
AccessControlBadConfirmation
error AccessControlBadConfirmation()
AccessControlUnauthorizedAccount
error AccessControlUnauthorizedAccount(address account, bytes32 neededRole)
ERC1155InsufficientBalance
error ERC1155InsufficientBalance(address sender, uint256 balance, uint256 needed, uint256 tokenId)
ERC1155InvalidApprover
error ERC1155InvalidApprover(address approver)
ERC1155InvalidArrayLength
error ERC1155InvalidArrayLength(uint256 idsLength, uint256 valuesLength)
ERC1155InvalidOperator
error ERC1155InvalidOperator(address operator)
ERC1155InvalidReceiver
error ERC1155InvalidReceiver(address receiver)
ERC1155InvalidSender
error ERC1155InvalidSender(address sender)
ERC1155MissingApprovalForAll
error ERC1155MissingApprovalForAll(address operator, address owner)
OwnableInvalidOwner
error OwnableInvalidOwner(address owner)
OwnableUnauthorizedAccount
error OwnableUnauthorizedAccount(address account)
creation bytecode
0x608060405234801562000010575f80fd5b50604051620022a1380380620022a1833981016040819052620000339162000242565b60408051602081019091525f815281906200004e816200012f565b506001600160a01b0381166200007d57604051631e4fbdf760e01b81525f600482015260240160405180910390fd5b620000888162000141565b50620000955f3362000192565b50620000c27f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c3362000192565b5060408051808201909152601081526f506f6c795265616c6d7a2044726f707360801b6020820152600890620000f990826200030f565b50604080518082019091526007815266050523a44524f560cc1b60208201526009906200012790826200030f565b5050620003db565b60026200013d82826200030f565b5050565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b5f8281526003602090815260408083206001600160a01b038516845290915281205460ff1662000239575f8381526003602090815260408083206001600160a01b03861684529091529020805460ff19166001179055620001f03390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016200023c565b505f5b92915050565b5f6020828403121562000253575f80fd5b81516001600160a01b03811681146200026a575f80fd5b9392505050565b634e487b7160e01b5f52604160045260245ffd5b600181811c908216806200029a57607f821691505b602082108103620002b957634e487b7160e01b5f52602260045260245ffd5b50919050565b601f8211156200030a57805f5260205f20601f840160051c81016020851015620002e65750805b601f840160051c820191505b8181101562000307575f8155600101620002f2565b50505b505050565b81516001600160401b038111156200032b576200032b62000271565b62000343816200033c845462000285565b84620002bf565b602080601f83116001811462000379575f8415620003615750858301515b5f19600386901b1c1916600185901b178555620003d3565b5f85815260208120601f198616915b82811015620003a95788860151825594840194600190910190840162000388565b5085821015620003c757878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b611eb880620003e95f395ff3fe6080604052600436106101c4575f3560e01c8063715018a6116100f2578063a22cb46511610092578063e985e9c511610062578063e985e9c514610504578063f242432a14610523578063f2fde38b14610542578063f5298aca14610561575f80fd5b8063a22cb4651461049b578063bd85b039146104ba578063c87b56dd1461024a578063d547741f146104e5575f80fd5b80638da5cb5b116100cd5780638da5cb5b1461042e57806391d148541461045557806395d89b4114610474578063a217fddf14610488575f80fd5b8063715018a6146103c85780637f345710146103dc578063862440e21461040f575f80fd5b80632eb2c2d6116101685780634e1273f4116101385780634e1273f4146103315780634f558e791461035d578063532efa011461038a5780636b20c454146103a9575f80fd5b80632eb2c2d6146102cc5780632f2ff15d146102eb57806336568abe1461030a5780633ccfd60b14610329575f80fd5b80630e89341c116101a35780630e89341c1461024a578063156e29f61461026957806318160ddd1461028a578063248a9ca31461029e575f80fd5b8062fdd58e146101c857806301ffc9a7146101fa57806306fdde0314610229575b5f80fd5b3480156101d3575f80fd5b506101e76101e2366004611640565b610580565b6040519081526020015b60405180910390f35b348015610205575f80fd5b5061021961021436600461167d565b6105a7565b60405190151581526020016101f1565b348015610234575f80fd5b5061023d6105b1565b6040516101f191906116e2565b348015610255575f80fd5b5061023d6102643660046116f4565b61063d565b348015610274575f80fd5b5061028861028336600461170b565b6106dc565b005b348015610295575f80fd5b506005546101e7565b3480156102a9575f80fd5b506101e76102b83660046116f4565b5f9081526003602052604090206001015490565b3480156102d7575f80fd5b506102886102e6366004611882565b610706565b3480156102f6575f80fd5b50610288610305366004611925565b610772565b348015610315575f80fd5b50610288610324366004611925565b610796565b6102886107ce565b34801561033c575f80fd5b5061035061034b3660046119b2565b610848565b6040516101f19190611a4c565b348015610368575f80fd5b506102196103773660046116f4565b5f90815260046020526040902054151590565b348015610395575f80fd5b506102886103a4366004611a5e565b610913565b3480156103b4575f80fd5b506102886103c3366004611a98565b610964565b3480156103d3575f80fd5b506102886109c3565b3480156103e7575f80fd5b506101e77f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c81565b34801561041a575f80fd5b50610288610429366004611b07565b6109d6565b348015610439575f80fd5b506006546040516001600160a01b0390911681526020016101f1565b348015610460575f80fd5b5061021961046f366004611925565b610a55565b34801561047f575f80fd5b5061023d610a7f565b348015610493575f80fd5b506101e75f81565b3480156104a6575f80fd5b506102886104b5366004611b54565b610a8c565b3480156104c5575f80fd5b506101e76104d43660046116f4565b5f9081526004602052604090205490565b3480156104f0575f80fd5b506102886104ff366004611925565b610a97565b34801561050f575f80fd5b5061021961051e366004611b8d565b610abb565b34801561052e575f80fd5b5061028861053d366004611bb5565b610ae8565b34801561054d575f80fd5b5061028861055c366004611c15565b610b47565b34801561056c575f80fd5b5061028861057b36600461170b565b610b84565b5f818152602081815260408083206001600160a01b03861684529091529020545b92915050565b5f6105a182610bba565b600880546105be90611c2e565b80601f01602080910402602001604051908101604052809291908181526020018280546105ea90611c2e565b80156106355780601f1061060c57610100808354040283529160200191610635565b820191905f5260205f20905b81548152906001019060200180831161061857829003601f168201915b505050505081565b5f81815260076020526040902080546060919061065990611c2e565b80601f016020809104026020016040519081016040528092919081815260200182805461068590611c2e565b80156106d05780601f106106a7576101008083540402835291602001916106d0565b820191905f5260205f20905b8154815290600101906020018083116106b357829003601f168201915b50505050509050919050565b5f6106e681610bde565b61070084848460405180602001604052805f815250610be8565b50505050565b336001600160a01b038616811480159061072757506107258682610abb565b155b1561075d5760405163711bec9160e11b81526001600160a01b038083166004830152871660248201526044015b60405180910390fd5b61076a8686868686610c43565b505050505050565b5f8281526003602052604090206001015461078c81610bde565b6107008383610ca8565b6001600160a01b03811633146107bf5760405163334bd91960e11b815260040160405180910390fd5b6107c98282610d39565b505050565b5f6107d881610bde565b5f6107eb6006546001600160a01b031690565b6001600160a01b0316476040515f6040518083038185875af1925050503d805f8114610832576040519150601f19603f3d011682016040523d82523d5f602084013e610837565b606091505b5050905080610844575f80fd5b5050565b606081518351146108795781518351604051635b05999160e01b815260048101929092526024820152604401610754565b5f835167ffffffffffffffff8111156108945761089461173b565b6040519080825280602002602001820160405280156108bd578160200160208202803683370190505b5090505f5b845181101561090b576020808202860101516108e690602080840287010151610580565b8282815181106108f8576108f8611c66565b60209081029190910101526001016108c2565b509392505050565b5f61091d81610bde565b5f5b82518110156107005761095c83828151811061093d5761093d611c66565b602002602001015185600160405180602001604052805f815250610be8565b60010161091f565b6001600160a01b038316331480159061098457506109828333610abb565b155b156109b857335b60405163711bec9160e11b81526001600160a01b0391821660048201529084166024820152604401610754565b6107c9838383610da4565b6109cb610de7565b6109d45f610e14565b565b7f7804d923f43a17d325d77e781528e0793b2edd9890ab45fc64efd7b4b427744c610a0081610bde565b5f838152600760205260409020610a178382611cbe565b50827f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b83604051610a4891906116e2565b60405180910390a2505050565b5f9182526003602090815260408084206001600160a01b0393909316845291905290205460ff1690565b600980546105be90611c2e565b610844338383610e65565b5f82815260036020526040902060010154610ab181610bde565b6107008383610d39565b6001600160a01b039182165f90815260016020908152604080832093909416825291909152205460ff1690565b336001600160a01b0386168114801590610b095750610b078682610abb565b155b15610b3a5760405163711bec9160e11b81526001600160a01b03808316600483015287166024820152604401610754565b61076a8686868686610ef9565b610b4f610de7565b6001600160a01b038116610b7857604051631e4fbdf760e01b81525f6004820152602401610754565b610b8181610e14565b50565b6001600160a01b0383163314801590610ba45750610ba28333610abb565b155b15610baf573361098b565b6107c9838383610f85565b5f6001600160e01b03198216637965db0b60e01b14806105a157506105a182610feb565b610b81813361103a565b6001600160a01b038416610c1157604051632bfa23e760e11b81525f6004820152602401610754565b6040805160018082526020820186905281830190815260608201859052608082019092529061076a5f87848487611073565b6001600160a01b038416610c6c57604051632bfa23e760e11b81525f6004820152602401610754565b6001600160a01b038516610c9457604051626a0d4560e21b81525f6004820152602401610754565b610ca18585858585611073565b5050505050565b5f610cb38383610a55565b610d32575f8381526003602090815260408083206001600160a01b03861684529091529020805460ff19166001179055610cea3390565b6001600160a01b0316826001600160a01b0316847f2f8788117e7eff1d82e926ec794901d17c78024a50270940304540a733656f0d60405160405180910390a45060016105a1565b505f6105a1565b5f610d448383610a55565b15610d32575f8381526003602090815260408083206001600160a01b0386168085529252808320805460ff1916905551339286917ff6391f5c32d9c69d2a47ea670b442974b53935d1edc7fd64eb21e047a839171b9190a45060016105a1565b6001600160a01b038316610dcc57604051626a0d4560e21b81525f6004820152602401610754565b6107c9835f848460405180602001604052805f815250611073565b6006546001600160a01b031633146109d45760405163118cdaa760e01b8152336004820152602401610754565b600680546001600160a01b038381166001600160a01b0319831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0905f90a35050565b6001600160a01b038216610e8d5760405162ced3e160e81b81525f6004820152602401610754565b6001600160a01b038381165f81815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b038416610f2257604051632bfa23e760e11b81525f6004820152602401610754565b6001600160a01b038516610f4a57604051626a0d4560e21b81525f6004820152602401610754565b60408051600180825260208201869052818301908152606082018590526080820190925290610f7c8787848487611073565b50505050505050565b6001600160a01b038316610fad57604051626a0d4560e21b81525f6004820152602401610754565b604080516001808252602082018590528183019081526060820184905260a082019092525f60808201818152919291610ca191879185908590611073565b5f6001600160e01b03198216636cdb3d1360e11b148061101b57506001600160e01b031982166303a24d0760e21b145b806105a157506301ffc9a760e01b6001600160e01b03198316146105a1565b6110448282610a55565b6108445760405163e2517d3f60e01b81526001600160a01b038216600482015260248101839052604401610754565b61107f858585856110c6565b6001600160a01b03841615610ca157825133906001036110b857602084810151908401516110b18389898585896110d2565b505061076a565b61076a8187878787876111f3565b610700848484846112da565b6001600160a01b0384163b1561076a5760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e61906111169089908990889088908890600401611d7a565b6020604051808303815f875af1925050508015611150575060408051601f3d908101601f1916820190925261114d91810190611dbe565b60015b6111b7573d80801561117d576040519150601f19603f3d011682016040523d82523d5f602084013e611182565b606091505b5080515f036111af57604051632bfa23e760e11b81526001600160a01b0386166004820152602401610754565b805181602001fd5b6001600160e01b0319811663f23a6e6160e01b14610f7c57604051632bfa23e760e11b81526001600160a01b0386166004820152602401610754565b6001600160a01b0384163b1561076a5760405163bc197c8160e01b81526001600160a01b0385169063bc197c81906112379089908990889088908890600401611dd9565b6020604051808303815f875af1925050508015611271575060408051601f3d908101601f1916820190925261126e91810190611dbe565b60015b61129e573d80801561117d576040519150601f19603f3d011682016040523d82523d5f602084013e611182565b6001600160e01b0319811663bc197c8160e01b14610f7c57604051632bfa23e760e11b81526001600160a01b0386166004820152602401610754565b6112e684848484611416565b6001600160a01b03841661138a575f805b8351811015611371575f83828151811061131357611313611c66565b602002602001015190508060045f87858151811061133357611333611c66565b602002602001015181526020019081526020015f205f8282546113569190611e36565b9091555061136690508184611e36565b9250506001016112f7565b508060055f8282546113839190611e36565b9091555050505b6001600160a01b038316610700575f805b8351811015611405575f8382815181106113b7576113b7611c66565b602002602001015190508060045f8785815181106113d7576113d7611c66565b60209081029190910181015182528101919091526040015f208054919091039055919091019060010161139b565b506005805491909103905550505050565b80518251146114455781518151604051635b05999160e01b815260048101929092526024820152604401610754565b335f5b8351811015611547576020818102858101820151908501909101516001600160a01b038816156114f9575f828152602081815260408083206001600160a01b038c168452909152902054818110156114d3576040516303dee4c560e01b81526001600160a01b038a166004820152602481018290526044810183905260648101849052608401610754565b5f838152602081815260408083206001600160a01b038d16845290915290209082900390555b6001600160a01b0387161561153d575f828152602081815260408083206001600160a01b038b16845290915281208054839290611537908490611e36565b90915550505b5050600101611448565b5082516001036115c75760208301515f906020840151909150856001600160a01b0316876001600160a01b0316846001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f6285856040516115b8929190918252602082015260400190565b60405180910390a45050610ca1565b836001600160a01b0316856001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051611616929190611e55565b60405180910390a45050505050565b80356001600160a01b038116811461163b575f80fd5b919050565b5f8060408385031215611651575f80fd5b61165a83611625565b946020939093013593505050565b6001600160e01b031981168114610b81575f80fd5b5f6020828403121561168d575f80fd5b813561169881611668565b9392505050565b5f81518084525f5b818110156116c3576020818501810151868301820152016116a7565b505f602082860101526020601f19601f83011685010191505092915050565b602081525f611698602083018461169f565b5f60208284031215611704575f80fd5b5035919050565b5f805f6060848603121561171d575f80fd5b61172684611625565b95602085013595506040909401359392505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f1916810167ffffffffffffffff811182821017156117785761177861173b565b604052919050565b5f67ffffffffffffffff8211156117995761179961173b565b5060051b60200190565b5f82601f8301126117b2575f80fd5b813560206117c76117c283611780565b61174f565b8083825260208201915060208460051b8701019350868411156117e8575f80fd5b602086015b8481101561180457803583529183019183016117ed565b509695505050505050565b5f67ffffffffffffffff8311156118285761182861173b565b61183b601f8401601f191660200161174f565b905082815283838301111561184e575f80fd5b828260208301375f602084830101529392505050565b5f82601f830112611873575f80fd5b6116988383356020850161180f565b5f805f805f60a08688031215611896575f80fd5b61189f86611625565b94506118ad60208701611625565b9350604086013567ffffffffffffffff808211156118c9575f80fd5b6118d589838a016117a3565b945060608801359150808211156118ea575f80fd5b6118f689838a016117a3565b9350608088013591508082111561190b575f80fd5b5061191888828901611864565b9150509295509295909350565b5f8060408385031215611936575f80fd5b8235915061194660208401611625565b90509250929050565b5f82601f83011261195e575f80fd5b8135602061196e6117c283611780565b8083825260208201915060208460051b87010193508684111561198f575f80fd5b602086015b84811015611804576119a581611625565b8352918301918301611994565b5f80604083850312156119c3575f80fd5b823567ffffffffffffffff808211156119da575f80fd5b6119e68683870161194f565b935060208501359150808211156119fb575f80fd5b50611a08858286016117a3565b9150509250929050565b5f815180845260208085019450602084015f5b83811015611a4157815187529582019590820190600101611a25565b509495945050505050565b602081525f6116986020830184611a12565b5f8060408385031215611a6f575f80fd5b82359150602083013567ffffffffffffffff811115611a8c575f80fd5b611a088582860161194f565b5f805f60608486031215611aaa575f80fd5b611ab384611625565b9250602084013567ffffffffffffffff80821115611acf575f80fd5b611adb878388016117a3565b93506040860135915080821115611af0575f80fd5b50611afd868287016117a3565b9150509250925092565b5f8060408385031215611b18575f80fd5b82359150602083013567ffffffffffffffff811115611b35575f80fd5b8301601f81018513611b45575f80fd5b611a088582356020840161180f565b5f8060408385031215611b65575f80fd5b611b6e83611625565b915060208301358015158114611b82575f80fd5b809150509250929050565b5f8060408385031215611b9e575f80fd5b611ba783611625565b915061194660208401611625565b5f805f805f60a08688031215611bc9575f80fd5b611bd286611625565b9450611be060208701611625565b93506040860135925060608601359150608086013567ffffffffffffffff811115611c09575f80fd5b61191888828901611864565b5f60208284031215611c25575f80fd5b61169882611625565b600181811c90821680611c4257607f821691505b602082108103611c6057634e487b7160e01b5f52602260045260245ffd5b50919050565b634e487b7160e01b5f52603260045260245ffd5b601f8211156107c957805f5260205f20601f840160051c81016020851015611c9f5750805b601f840160051c820191505b81811015610ca1575f8155600101611cab565b815167ffffffffffffffff811115611cd857611cd861173b565b611cec81611ce68454611c2e565b84611c7a565b602080601f831160018114611d1f575f8415611d085750858301515b5f19600386901b1c1916600185901b17855561076a565b5f85815260208120601f198616915b82811015611d4d57888601518255948401946001909101908401611d2e565b5085821015611d6a57878501515f19600388901b60f8161c191681555b5050505050600190811b01905550565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190525f90611db39083018461169f565b979650505050505050565b5f60208284031215611dce575f80fd5b815161169881611668565b6001600160a01b0386811682528516602082015260a0604082018190525f90611e0490830186611a12565b8281036060840152611e168186611a12565b90508281036080840152611e2a818561169f565b98975050505050505050565b808201808211156105a157634e487b7160e01b5f52601160045260245ffd5b604081525f611e676040830185611a12565b8281036020840152611e798185611a12565b9594505050505056fea264697066735822122000dcc48ca548b52e71298d98cf8801128c717294ffb101d05c4021b313af78e664736f6c63430008170033000000000000000000000000502481a5dd7cf74dac973d8a5e6ae30f9ea19851