Loading
[ { "inputs": [], "stateMutability": "nonpayable", "type": "constructor" }, { "inputs": [], "name": "AlreadyInitialized", "type": "error" }, { "inputs": [], "name": "CallerNotContractOwner", "type": "error" }, { "inputs": [], "name": "InconsistentParametersLengths", "type": "error" }, { "inputs": [], "name": "InexistentTicket", "type": "error" }, { "inputs": [], "name": "InsufficientBalance", "type": "error" }, { "inputs": [], "name": "NoOp", "type": "error" }, { "inputs": [], "name": "NotImplemented", "type": "error" }, { "inputs": [], "name": "NotOwnerOrigin", "type": "error" }, { "inputs": [], "name": "NotTicketManager", "type": "error" }, { "inputs": [], "name": "QueryForAddressZero", "type": "error" }, { "inputs": [], "name": "TransferRejected", "type": "error" }, { "inputs": [], "name": "TransferToAddressZero", "type": "error" }, { "inputs": [], "name": "Unauthorized", "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": "uint256", "name": "id", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "startId", "type": "uint256" }, { "indexed": true, "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "NewTicket", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "previousOwner", "type": "address" }, { "indexed": true, "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "OwnershipTransferred", "type": "event" }, { "anonymous": false, "inputs": [ { "indexed": true, "internalType": "address", "name": "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": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256[]", "name": "ids", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "amounts", "type": "uint256[]" } ], "name": "batchMint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "initializeManager", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" } ], "name": "isApprovedForAll", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [], "name": "manager", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "amount", "type": "uint256" } ], "name": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" }, { "internalType": "uint256", "name": "ticketId", "type": "uint256" } ], "name": "ownerOf", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "refreshMetadata", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256[]", "name": "", "type": "uint256[]" }, { "internalType": "uint256[]", "name": "", "type": "uint256[]" }, { "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "safeBatchTransferFrom", "outputs": [], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "address", "name": "", "type": "address" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "uint256", "name": "", "type": "uint256" }, { "internalType": "bytes", "name": "", "type": "bytes" } ], "name": "safeTransferFrom", "outputs": [], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "", "type": "address" }, { "internalType": "bool", "name": "", "type": "bool" } ], "name": "setApprovalForAll", "outputs": [], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "newUri", "type": "string" } ], "name": "setURI", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "id", "type": "uint256" } ], "name": "supplyOf", "outputs": [ { "internalType": "uint256", "name": "", "type": "uint256" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "bytes4", "name": "interfaceId", "type": "bytes4" } ], "name": "supportsInterface", "outputs": [ { "internalType": "bool", "name": "", "type": "bool" } ], "stateMutability": "pure", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "newOwner", "type": "address" } ], "name": "transferOwnership", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "uri", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" } ]
608060405234801561000f575f80fd5b505f80546001600160a01b031916331790556110e88061002e5f395ff3fe608060405234801561000f575f80fd5b50600436106100e3575f3560e01c8062fdd58e146100e757806301ffc9a71461012e57806302fe5305146101515780630ca83480146101665780630e89341c14610179578063156e29f6146101995780632eb2c2d6146101ac57806336fd0e2b146101ba578063481c6a75146101c25780634e1273f4146101ed5780638806792f1461020d5780638da5cb5b1461022c578063a22cb4651461023e578063d95ba42f1461024c578063d9dad80d1461025f578063e985e9c514610272578063f242432a14610287578063f2fde38b14610295575b5f80fd5b61011b6100f53660046108c6565b5f9081526002602090815260408083206001600160a01b03949094168352929052205490565b6040519081526020015b60405180910390f35b61014161013c3660046108ee565b6102a8565b6040519015158152602001610125565b61016461015f366004610960565b610314565b005b610164610174366004610a35565b61034e565b61018c610187366004610aaf565b610367565b6040516101259190610ae8565b6101646101a7366004610b1a565b61039b565b610164610174366004610b87565b61016461049d565b6001546101d5906001600160a01b031681565b6040516001600160a01b039091168152602001610125565b6102006101fb366004610cc7565b610504565b6040516101259190610d80565b61011b61021b366004610aaf565b5f9081526003602052604090205490565b5f546101d5906001600160a01b031681565b610164610174366004610dc3565b61016461025a366004610aaf565b61060b565b6101d561026d366004610dfc565b61064e565b610141610280366004610e1c565b5f92915050565b610164610174366004610e4d565b6101646102a3366004610ebf565b6106d3565b5f6001600160e01b0319821663efa07c2560e01b14806102d857506001600160e01b03198216636cdb3d1360e11b145b806102f357506001600160e01b031982166303a24d0760e21b145b8061030e57506001600160e01b031982166301ffc9a760e01b145b92915050565b5f546001600160a01b0316331461033e57604051631e0e483560e11b815260040160405180910390fd5b600561034a8282610f5c565b5050565b60405163d623472560e01b815260040160405180910390fd5b6060600561037483610747565b60405160200161038592919061101b565b6040516020818303038152906040529050919050565b6001546001600160a01b031633146103c657604051636449883f60e01b815260040160405180910390fd5b5f8281526003602090815260408083208054600284528285206001600160a01b0389168087529085528386208054880190558786528682019092556004845282852081865290935281842080546001600160a01b03191690911790555190918391839186917fc8a12edf67a588d927c432e59b6adf4764e2d1183ff137b0e5f9a21cedcc62599190a460408051848152602081018490526001600160a01b038616915f9133917fc3d58168c5ae7397731d063d5bbf3d657854427343f4c083240f7aacaa2d0f62910160405180910390a450505050565b6001546001600160a01b0316156104c65760405162dc149f60e41b815260040160405180910390fd5b5f546001600160a01b031632146104f0576040516365cc38ed60e11b815260040160405180910390fd5b600180546001600160a01b03191633179055565b6060815183511461052857604051630d3351c560e41b815260040160405180910390fd5b5f83516001600160401b038111156105425761054261091c565b60405190808252806020026020018201604052801561056b578160200160208202803683370190505b5090505f5b84518110156106035760025f85838151811061058e5761058e61109e565b602002602001015181526020019081526020015f205f8683815181106105b6576105b661109e565b60200260200101516001600160a01b03166001600160a01b031681526020019081526020015f20548282815181106105f0576105f061109e565b6020908102919091010152600101610570565b509392505050565b807f6bb7ff708619ba0610cba295a58592e0451dee2622938c8755667688daf3529b61063683610367565b6040516106439190610ae8565b60405180910390a250565b5f82815260036020526040812054821061067b5760405163bd5fbbf760e01b815260040160405180910390fd5b5b5f8381526004602090815260408083208584529091529020546001600160a01b03166106ad575f199091019061067c565b505f9182526004602090815260408084209284529190529020546001600160a01b031690565b5f546001600160a01b031633146106fd57604051631e0e483560e11b815260040160405180910390fd5b5f80546001600160a01b0319166001600160a01b0383169081178255604051909133917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a350565b60605f610753836107d6565b60010190505f816001600160401b038111156107715761077161091c565b6040519080825280601f01601f19166020018201604052801561079b576020820181803683370190505b5090508181016020015b5f19016f181899199a1a9b1b9c1cb0b131b232b360811b600a86061a8153600a85049450846107a557509392505050565b5f8072184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b83106108145772184f03e93ff9f4daa797ed6e38ed64bf6a1f0160401b830492506040015b6904ee2d6d415b85acef8160201b831061083e576904ee2d6d415b85acef8160201b830492506020015b662386f26fc10000831061085c57662386f26fc10000830492506010015b6305f5e1008310610874576305f5e100830492506008015b612710831061088857612710830492506004015b6064831061089a576064830492506002015b600a831061030e5760010192915050565b80356001600160a01b03811681146108c1575f80fd5b919050565b5f80604083850312156108d7575f80fd5b6108e0836108ab565b946020939093013593505050565b5f602082840312156108fe575f80fd5b81356001600160e01b031981168114610915575f80fd5b9392505050565b634e487b7160e01b5f52604160045260245ffd5b604051601f8201601f191681016001600160401b03811182821017156109585761095861091c565b604052919050565b5f6020808385031215610971575f80fd5b82356001600160401b0380821115610987575f80fd5b818501915085601f83011261099a575f80fd5b8135818111156109ac576109ac61091c565b6109be601f8201601f19168501610930565b915080825286848285010111156109d3575f80fd5b80848401858401375f90820190930192909252509392505050565b5f8083601f8401126109fe575f80fd5b5081356001600160401b03811115610a14575f80fd5b6020830191508360208260051b8501011115610a2e575f80fd5b9250929050565b5f805f805f60608688031215610a49575f80fd5b610a52866108ab565b945060208601356001600160401b0380821115610a6d575f80fd5b610a7989838a016109ee565b90965094506040880135915080821115610a91575f80fd5b50610a9e888289016109ee565b969995985093965092949392505050565b5f60208284031215610abf575f80fd5b5035919050565b5f5b83811015610ae0578181015183820152602001610ac8565b50505f910152565b602081525f8251806020840152610b06816040850160208701610ac6565b601f01601f19169190910160400192915050565b5f805f60608486031215610b2c575f80fd5b610b35846108ab565b95602085013595506040909401359392505050565b5f8083601f840112610b5a575f80fd5b5081356001600160401b03811115610b70575f80fd5b602083019150836020828501011115610a2e575f80fd5b5f805f805f805f8060a0898b031215610b9e575f80fd5b610ba7896108ab565b9750610bb560208a016108ab565b965060408901356001600160401b0380821115610bd0575f80fd5b610bdc8c838d016109ee565b909850965060608b0135915080821115610bf4575f80fd5b610c008c838d016109ee565b909650945060808b0135915080821115610c18575f80fd5b50610c258b828c01610b4a565b999c989b5096995094979396929594505050565b5f6001600160401b03821115610c5157610c5161091c565b5060051b60200190565b5f82601f830112610c6a575f80fd5b81356020610c7f610c7a83610c39565b610930565b8083825260208201915060208460051b870101935086841115610ca0575f80fd5b602086015b84811015610cbc5780358352918301918301610ca5565b509695505050505050565b5f8060408385031215610cd8575f80fd5b82356001600160401b0380821115610cee575f80fd5b818501915085601f830112610d01575f80fd5b81356020610d11610c7a83610c39565b82815260059290921b84018101918181019089841115610d2f575f80fd5b948201945b83861015610d5457610d45866108ab565b82529482019490820190610d34565b96505086013592505080821115610d69575f80fd5b50610d7685828601610c5b565b9150509250929050565b602080825282518282018190525f9190848201906040850190845b81811015610db757835183529284019291840191600101610d9b565b50909695505050505050565b5f8060408385031215610dd4575f80fd5b610ddd836108ab565b915060208301358015158114610df1575f80fd5b809150509250929050565b5f8060408385031215610e0d575f80fd5b50508035926020909101359150565b5f8060408385031215610e2d575f80fd5b610e36836108ab565b9150610e44602084016108ab565b90509250929050565b5f805f805f8060a08789031215610e62575f80fd5b610e6b876108ab565b9550610e79602088016108ab565b9450604087013593506060870135925060808701356001600160401b03811115610ea1575f80fd5b610ead89828a01610b4a565b979a9699509497509295939492505050565b5f60208284031215610ecf575f80fd5b610915826108ab565b600181811c90821680610eec57607f821691505b602082108103610f0a57634e487b7160e01b5f52602260045260245ffd5b50919050565b601f821115610f5757805f5260205f20601f840160051c81016020851015610f355750805b601f840160051c820191505b81811015610f54575f8155600101610f41565b50505b505050565b81516001600160401b03811115610f7557610f7561091c565b610f8981610f838454610ed8565b84610f10565b602080601f831160018114610fbc575f8415610fa55750858301515b5f19600386901b1c1916600185901b178555611013565b5f85815260208120601f198616915b82811015610fea57888601518255948401946001909101908401610fcb565b508582101561100757878501515f19600388901b60f8161c191681555b505060018460011b0185555b505050505050565b5f80845461102881610ed8565b60018281168015611040576001811461105557611081565b60ff1984168752821515830287019450611081565b885f526020805f205f5b858110156110785781548a82015290840190820161105f565b50505082870194505b505050508351611095818360208801610ac6565b01949350505050565b634e487b7160e01b5f52603260045260245ffdfea2646970667358221220a07292fa4fc4a58c85ed12ecca3d18c31542e18ba183a5f44a63caaf7f0b71cb64736f6c63430008180033