[ { "inputs": [ { "internalType": "string", "name": "_name", "type": "string" }, { "internalType": "string", "name": "_symbol", "type": "string" } ], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" }, { "internalType": "uint256", "name": "balance", "type": "uint256" }, { "internalType": "uint256", "name": "needed", "type": "uint256" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "ERC1155InsufficientBalance", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "approver", "type": "address" } ], "name": "ERC1155InvalidApprover", "type": "error" }, { "inputs": [ { "internalType": "uint256", "name": "idsLength", "type": "uint256" }, { "internalType": "uint256", "name": "valuesLength", "type": "uint256" } ], "name": "ERC1155InvalidArrayLength", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" } ], "name": "ERC1155InvalidOperator", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "receiver", "type": "address" } ], "name": "ERC1155InvalidReceiver", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "sender", "type": "address" } ], "name": "ERC1155InvalidSender", "type": "error" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "address", "name": "owner", "type": "address" } ], "name": "ERC1155MissingApprovalForAll", "type": "error" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "account", "type": "address" }, { "indexed": true, "internalType": "address", "name": "operator", "type": "address" }, { "indexed": false, "internalType": "bool", "name": "approved", "type": "bool" } ], "name": "ApprovalForAll", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "operator", "type": "address" }, { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }, { "indexed": false, "internalType": "uint256[]", "name": "values", "type": "uint256[]" } ], "name": "TransferBatch", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "operator", "type": "address" }, { "indexed": true, "internalType": "address", "name": "from", "type": "address" }, { "indexed": true, "internalType": "address", "name": "to", "type": "address" }, { "indexed": false, "internalType": "uint256", "name": "id", "type": "uint256" }, { "indexed": false, "internalType": "uint256", "name": "value", "type": "uint256" } ], "name": "TransferSingle", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": false, "internalType": "string", "name": "value", "type": "string" }, { "indexed": true, "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "URI", "type": "event" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "balanceOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address[]", "name": "accounts", "type": "address[]" }, { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" } ], "name": "balanceOfBatch", "outputs": [ { "internalType": "uint256[]", "name": "", "type": "uint256[]" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "deployer", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "account", "type": "address" }, { "internalType": "address", "name": "operator", "type": "address" } ], "name": "isApprovedForAll", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" } ], "name": "no_of_mintedNFTs", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "uint256[]", "name": "tokenIds", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "onERC1155BatchReceived", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "operator", "type": "address" }, { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "onERC1155Received", "outputs": [ { "internalType": "bytes4", "name": "", "type": "bytes4" } ], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "values", "type": "uint256[]" }, { "internalType": "bytes", "name": "data", "type": "bytes" } ], "name": "safeBatchTransferFrom", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "safeMint", "outputs": [], "stateMutability": "payable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "value", "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": "", "type": "uint256" } ], "name": "uri", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" } ]
608060405234801561001057600080fd5b506040516119e93803806119e983398101604081905261002f9161014e565b6040518060a00160405280606981526020016119806069913961005181610085565b50600680546001600160a01b0319163317905560036100708382610240565b50600461007d8282610240565b5050506102fe565b60026100918282610240565b5050565b634e487b7160e01b600052604160045260246000fd5b600082601f8301126100bc57600080fd5b81516001600160401b038111156100d5576100d5610095565b604051601f8201601f19908116603f011681016001600160401b038111828210171561010357610103610095565b60405281815283820160200185101561011b57600080fd5b60005b8281101561013a5760208186018101518383018201520161011e565b506000918101602001919091529392505050565b6000806040838503121561016157600080fd5b82516001600160401b0381111561017757600080fd5b610183858286016100ab565b602085015190935090506001600160401b038111156101a157600080fd5b6101ad858286016100ab565b9150509250929050565b600181811c908216806101cb57607f821691505b6020821081036101eb57634e487b7160e01b600052602260045260246000fd5b50919050565b601f82111561023b57806000526020600020601f840160051c810160208510156102185750805b601f840160051c820191505b818110156102385760008155600101610224565b50505b505050565b81516001600160401b0381111561025957610259610095565b61026d8161026784546101b7565b846101f1565b6020601f8211600181146102a157600083156102895750848201515b600019600385901b1c1916600184901b178455610238565b600084815260208120601f198516915b828110156102d157878501518255602094850194600190920191016102b1565b50848210156102ef5786840151600019600387901b60f8161c191681555b50505050600190811b01905550565b6116738061030d6000396000f3fe6080604052600436106100e75760003560e01c806395d89b411161008a578063d5f3948811610059578063d5f394881461029d578063e985e9c5146102d5578063f23a6e61146102f5578063f242432a1461032257600080fd5b806395d89b41146101f3578063a22cb46514610208578063bc197c8114610228578063cdab8e471461027057600080fd5b80630e89341c116100c65780630e89341c1461017157806324eeedf6146101915780632eb2c2d6146101a65780634e1273f4146101c657600080fd5b8062fdd58e146100ec57806301ffc9a71461011f57806306fdde031461014f575b600080fd5b3480156100f857600080fd5b5061010c610107366004610dfa565b610342565b6040519081526020015b60405180910390f35b34801561012b57600080fd5b5061013f61013a366004610e3d565b61036a565b6040519015158152602001610116565b34801561015b57600080fd5b506101646103ba565b6040516101169190610ea7565b34801561017d57600080fd5b5061016461018c366004610eba565b610448565b6101a461019f366004610ed3565b6104dc565b005b3480156101b257600080fd5b506101a46101c136600461104b565b6105a6565b3480156101d257600080fd5b506101e66101e13660046110fe565b61060d565b6040516101169190611201565b3480156101ff57600080fd5b506101646106d9565b34801561021457600080fd5b506101a4610223366004611214565b6106e6565b34801561023457600080fd5b506102576102433660046112dc565b63bc197c8160e01b98975050505050505050565b6040516001600160e01b03199091168152602001610116565b34801561027c57600080fd5b5061010c61028b3660046113a0565b60056020526000908152604090205481565b3480156102a957600080fd5b506006546102bd906001600160a01b031681565b6040516001600160a01b039091168152602001610116565b3480156102e157600080fd5b5061013f6102f03660046113bb565b6106f5565b34801561030157600080fd5b506102576103103660046113ee565b63f23a6e6160e01b9695505050505050565b34801561032e57600080fd5b506101a461033d366004611465565b610723565b6000818152602081815260408083206001600160a01b03861684529091529020545b92915050565b60006001600160e01b03198216636cdb3d1360e11b148061039b57506001600160e01b031982166303a24d0760e21b145b8061036457506301ffc9a760e01b6001600160e01b0319831614610364565b600380546103c7906114bd565b80601f01602080910402602001604051908101604052809291908181526020018280546103f3906114bd565b80156104405780601f1061041557610100808354040283529160200191610440565b820191906000526020600020905b81548152906001019060200180831161042357829003601f168201915b505050505081565b606060028054610457906114bd565b80601f0160208091040260200160405190810160405280929190818152602001828054610483906114bd565b80156104d05780601f106104a5576101008083540402835291602001916104d0565b820191906000526020600020905b8154815290600101906020018083116104b357829003601f168201915b50505050509050919050565b6006546001600160a01b0316330361050e5761050983838360405180602001604052806000815250610782565b505050565b336000908152600560205260409020546002101561056b5760405162461bcd60e51b8152602060048201526015602482015274416c7265616479206d696e7465642032204e46547360581b60448201526064015b60405180910390fd5b3360009081526005602052604081208054916105868361150d565b919050555061050983838360405180602001604052806000815250610782565b336001600160a01b03861681148015906105c757506105c586826106f5565b155b156105f85760405163711bec9160e11b81526001600160a01b03808316600483015287166024820152604401610562565b61060586868686866107df565b505050505050565b6060815183511461063e5781518351604051635b05999160e01b815260048101929092526024820152604401610562565b600083516001600160401b0381111561065957610659610f06565b604051908082528060200260200182016040528015610682578160200160208202803683370190505b50905060005b84518110156106d1576020808202860101516106ac90602080840287010151610342565b8282815181106106be576106be611526565b6020908102919091010152600101610688565b509392505050565b600480546103c7906114bd565b6106f1338383610846565b5050565b6001600160a01b03918216600090815260016020908152604080832093909416825291909152205460ff1690565b336001600160a01b0386168114801590610744575061074286826106f5565b155b156107755760405163711bec9160e11b81526001600160a01b03808316600483015287166024820152604401610562565b61060586868686866108dc565b6001600160a01b0384166107ac57604051632bfa23e760e11b815260006004820152602401610562565b6040805160018082526020820186905281830190815260608201859052608082019092529061060560008784848761096a565b6001600160a01b03841661080957604051632bfa23e760e11b815260006004820152602401610562565b6001600160a01b03851661083257604051626a0d4560e21b815260006004820152602401610562565b61083f858585858561096a565b5050505050565b6001600160a01b03821661086f5760405162ced3e160e81b815260006004820152602401610562565b6001600160a01b03838116600081815260016020908152604080832094871680845294825291829020805460ff191686151590811790915591519182527f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a3505050565b6001600160a01b03841661090657604051632bfa23e760e11b815260006004820152602401610562565b6001600160a01b03851661092f57604051626a0d4560e21b815260006004820152602401610562565b60408051600180825260208201869052818301908152606082018590526080820190925290610961878784848761096a565b50505050505050565b610976858585856109bd565b6001600160a01b0384161561083f57825133906001036109af57602084810151908401516109a8838989858589610bd1565b5050610605565b610605818787878787610cf5565b80518251146109ec5781518151604051635b05999160e01b815260048101929092526024820152604401610562565b3360005b8351811015610af2576020818102858101820151908501909101516001600160a01b03881615610aa3576000828152602081815260408083206001600160a01b038c16845290915290205481811015610a7c576040516303dee4c560e01b81526001600160a01b038a166004820152602481018290526044810183905260648101849052608401610562565b6000838152602081815260408083206001600160a01b038d16845290915290209082900390555b6001600160a01b03871615610ae8576000828152602081815260408083206001600160a01b038b16845290915281208054839290610ae290849061153c565b90915550505b50506001016109f0565b508251600103610b735760208301516000906020840151909150856001600160a01b0316876001600160a01b0316846001600160a01b03167fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f628585604051610b64929190918252602082015260400190565b60405180910390a4505061083f565b836001600160a01b0316856001600160a01b0316826001600160a01b03167f4a39dc06d4c0dbc64b70af90fd698a233a518aa5d07e595d983b8c0526c8f7fb8686604051610bc292919061154f565b60405180910390a45050505050565b6001600160a01b0384163b156106055760405163f23a6e6160e01b81526001600160a01b0385169063f23a6e6190610c15908990899088908890889060040161157d565b6020604051808303816000875af1925050508015610c50575060408051601f3d908101601f19168201909252610c4d918101906115c2565b60015b610cb9573d808015610c7e576040519150601f19603f3d011682016040523d82523d6000602084013e610c83565b606091505b508051600003610cb157604051632bfa23e760e11b81526001600160a01b0386166004820152602401610562565b805181602001fd5b6001600160e01b0319811663f23a6e6160e01b1461096157604051632bfa23e760e11b81526001600160a01b0386166004820152602401610562565b6001600160a01b0384163b156106055760405163bc197c8160e01b81526001600160a01b0385169063bc197c8190610d3990899089908890889088906004016115df565b6020604051808303816000875af1925050508015610d74575060408051601f3d908101601f19168201909252610d71918101906115c2565b60015b610da2573d808015610c7e576040519150601f19603f3d011682016040523d82523d6000602084013e610c83565b6001600160e01b0319811663bc197c8160e01b1461096157604051632bfa23e760e11b81526001600160a01b0386166004820152602401610562565b80356001600160a01b0381168114610df557600080fd5b919050565b60008060408385031215610e0d57600080fd5b610e1683610dde565b946020939093013593505050565b6001600160e01b031981168114610e3a57600080fd5b50565b600060208284031215610e4f57600080fd5b8135610e5a81610e24565b9392505050565b6000815180845260005b81811015610e8757602081850181015186830182015201610e6b565b506000602082860101526020601f19601f83011685010191505092915050565b602081526000610e5a6020830184610e61565b600060208284031215610ecc57600080fd5b5035919050565b600080600060608486031215610ee857600080fd5b610ef184610dde565b95602085013595506040909401359392505050565b634e487b7160e01b600052604160045260246000fd5b604051601f8201601f191681016001600160401b0381118282101715610f4457610f44610f06565b604052919050565b60006001600160401b03821115610f6557610f65610f06565b5060051b60200190565b600082601f830112610f8057600080fd5b8135610f93610f8e82610f4c565b610f1c565b8082825260208201915060208360051b860101925085831115610fb557600080fd5b602085015b83811015610fd2578035835260209283019201610fba565b5095945050505050565b600082601f830112610fed57600080fd5b81356001600160401b0381111561100657611006610f06565b611019601f8201601f1916602001610f1c565b81815284602083860101111561102e57600080fd5b816020850160208301376000918101602001919091529392505050565b600080600080600060a0868803121561106357600080fd5b61106c86610dde565b945061107a60208701610dde565b935060408601356001600160401b0381111561109557600080fd5b6110a188828901610f6f565b93505060608601356001600160401b038111156110bd57600080fd5b6110c988828901610f6f565b92505060808601356001600160401b038111156110e557600080fd5b6110f188828901610fdc565b9150509295509295909350565b6000806040838503121561111157600080fd5b82356001600160401b0381111561112757600080fd5b8301601f8101851361113857600080fd5b8035611146610f8e82610f4c565b8082825260208201915060208360051b85010192508783111561116857600080fd5b6020840193505b828410156111915761118084610dde565b82526020938401939091019061116f565b945050505060208301356001600160401b038111156111af57600080fd5b6111bb85828601610f6f565b9150509250929050565b600081518084526020840193506020830160005b828110156111f75781518652602095860195909101906001016111d9565b5093949350505050565b602081526000610e5a60208301846111c5565b6000806040838503121561122757600080fd5b61123083610dde565b91506020830135801515811461124557600080fd5b809150509250929050565b60008083601f84011261126257600080fd5b5081356001600160401b0381111561127957600080fd5b6020830191508360208260051b850101111561129457600080fd5b9250929050565b60008083601f8401126112ad57600080fd5b5081356001600160401b038111156112c457600080fd5b60208301915083602082850101111561129457600080fd5b60008060008060008060008060a0898b0312156112f857600080fd5b61130189610dde565b975061130f60208a01610dde565b965060408901356001600160401b0381111561132a57600080fd5b6113368b828c01611250565b90975095505060608901356001600160401b0381111561135557600080fd5b6113618b828c01611250565b90955093505060808901356001600160401b0381111561138057600080fd5b61138c8b828c0161129b565b999c989b5096995094979396929594505050565b6000602082840312156113b257600080fd5b610e5a82610dde565b600080604083850312156113ce57600080fd5b6113d783610dde565b91506113e560208401610dde565b90509250929050565b60008060008060008060a0878903121561140757600080fd5b61141087610dde565b955061141e60208801610dde565b9450604087013593506060870135925060808701356001600160401b0381111561144757600080fd5b61145389828a0161129b565b979a9699509497509295939492505050565b600080600080600060a0868803121561147d57600080fd5b61148686610dde565b945061149460208701610dde565b9350604086013592506060860135915060808601356001600160401b038111156110e557600080fd5b600181811c908216806114d157607f821691505b6020821081036114f157634e487b7160e01b600052602260045260246000fd5b50919050565b634e487b7160e01b600052601160045260246000fd5b60006001820161151f5761151f6114f7565b5060010190565b634e487b7160e01b600052603260045260246000fd5b80820180821115610364576103646114f7565b60408152600061156260408301856111c5565b828103602084015261157481856111c5565b95945050505050565b6001600160a01b03868116825285166020820152604081018490526060810183905260a0608082018190526000906115b790830184610e61565b979650505050505050565b6000602082840312156115d457600080fd5b8151610e5a81610e24565b6001600160a01b0386811682528516602082015260a06040820181905260009061160b908301866111c5565b828103606084015261161d81866111c5565b905082810360808401526116318185610e61565b9897505050505050505056fea2646970667358221220eaa65f988c6c8cfc2693021c14941f0fe67cccf601c40928f6e6d2fb59c2500664736f6c634300081a003368747470733a2f2f616d6172616e74682d67656e75696e652d6b616e6761726f6f2d3133392e6d7970696e6174612e636c6f75642f697066732f516d5134566f45476e54353158566954336f3357457a6368704b6d656178376e6745345974566e6d454a554d71342f0000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000008000000000000000000000000000000000000000000000000000000000000000084e657875734e465400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000034e45580000000000000000000000000000000000000000000000000000000000