Loading
[ { "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": 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" }, { "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": [], "name": "chainId", "outputs": [ { "internalType": "uint16", "name": "", "type": "uint16" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "getApproved", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "string", "name": "name_", "type": "string" }, { "internalType": "string", "name": "symbol_", "type": "string" }, { "internalType": "address", "name": "owner_", "type": "address" }, { "internalType": "uint16", "name": "chainId_", "type": "uint16" }, { "internalType": "bytes32", "name": "nativeContract_", "type": "bytes32" } ], "name": "initialize", "outputs": [], "stateMutability": "nonpayable", "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": "mint", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [], "name": "name", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "nativeContract", "outputs": [ { "internalType": "bytes32", "name": "", "type": "bytes32" } ], "stateMutability": "view", "type": "function" }, { "inputs": [], "name": "owner", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "ownerOf", "outputs": [ { "internalType": "address", "name": "", "type": "address" } ], "stateMutability": "view", "type": "function" }, { "inputs": [ { "internalType": "address", "name": "from", "type": "address" }, { "internalType": "address", "name": "to", "type": "address" }, { "internalType": "uint256", "name": "tokenId", "type": "uint256" } ], "name": "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": "tokenId", "type": "uint256" } ], "name": "tokenURI", "outputs": [ { "internalType": "string", "name": "", "type": "string" } ], "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" } ]
608060405234801561001057600080fd5b506116d1806100206000396000f3fe608060405234801561001057600080fd5b50600436106101215760003560e01c80636352211e116100ad578063a22cb46511610071578063a22cb46514610261578063b88d4fde14610274578063c87b56dd14610287578063d3fc98641461029a578063e985e9c5146102ad57600080fd5b80636352211e1461020157806370a08231146102145780638da5cb5b1461022757806395d89b41146102385780639a8a05921461024057600080fd5b8063095ea7b3116100f4578063095ea7b3146101a357806323b872dd146101b65780633d6c043b146101c957806342842e0e146101db57806342966c68146101ee57600080fd5b806301ffc9a71461012657806303e728581461014e57806306fdde0314610163578063081812fc14610178575b600080fd5b610139610134366004611161565b6102e9565b60405190151581526020015b60405180910390f35b61016161015c36600461124d565b61033b565b005b61016b610406565b6040516101459190611330565b61018b610186366004611343565b61049a565b6040516001600160a01b039091168152602001610145565b6101616101b136600461135c565b61052f565b6101616101c4366004611386565b610644565b6008545b604051908152602001610145565b6101616101e9366004611386565b610675565b6101616101fc366004611343565b610690565b61018b61020f366004611343565b6106f0565b6101cd6102223660046113c2565b610767565b6007546001600160a01b031661018b565b61016b6107ee565b600754600160a81b900461ffff1660405161ffff9091168152602001610145565b61016161026f3660046113dd565b610800565b610161610282366004611419565b6108c4565b61016b610295366004611343565b6108fc565b6101616102a8366004611495565b610a19565b6101396102bb3660046114ec565b6001600160a01b03918216600090815260066020908152604080832093909416825291909152205460ff1690565b60006001600160e01b031982166380ac58cd60e01b148061031a57506001600160e01b03198216635b5e139f60e01b145b8061033557506301ffc9a760e01b6001600160e01b03198316145b92915050565b600754600160a01b900460ff16156103905760405162461bcd60e51b8152602060048201526013602482015272105b1c9958591e481a5b9a5d1a585b1a5e9959606a1b60448201526064015b60405180910390fd5b6007805460ff60a01b1916600160a01b17905584516103b69060009060208801906110b2565b5083516103ca9060019060208701906110b2565b506007805461ffff909316600160a81b02600162ffff0160a01b03199093166001600160a01b0390941693909317919091179091556008555050565b60606000800180546104179061151f565b80601f01602080910402602001604051908101604052809291908181526020018280546104439061151f565b80156104905780601f1061046557610100808354040283529160200191610490565b820191906000526020600020905b81548152906001019060200180831161047357829003601f168201915b5050505050905090565b6000818152600260205260408120546001600160a01b03166105135760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a20617070726f76656420717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610387565b506000908152600460205260409020546001600160a01b031690565b600061053a826106f0565b9050806001600160a01b0316836001600160a01b0316036105a75760405162461bcd60e51b815260206004820152602160248201527f4552433732313a20617070726f76616c20746f2063757272656e74206f776e656044820152603960f91b6064820152608401610387565b336001600160a01b03821614806105c357506105c381336102bb565b6106355760405162461bcd60e51b815260206004820152603860248201527f4552433732313a20617070726f76652063616c6c6572206973206e6f74206f7760448201527f6e6572206e6f7220617070726f76656420666f7220616c6c00000000000000006064820152608401610387565b61063f8383610a78565b505050565b61064e3382610ae6565b61066a5760405162461bcd60e51b815260040161038790611559565b61063f838383610bdd565b61063f838383604051806020016040528060008152506108c4565b6007546001600160a01b031633146106e45760405162461bcd60e51b815260206004820152601760248201527631b0b63632b91034b9903737ba103a34329037bbb732b960491b6044820152606401610387565b6106ed81610d7d565b50565b6000818152600260205260408120546001600160a01b0316806103355760405162461bcd60e51b815260206004820152602960248201527f4552433732313a206f776e657220717565727920666f72206e6f6e657869737460448201526832b73a103a37b5b2b760b91b6064820152608401610387565b60006001600160a01b0382166107d25760405162461bcd60e51b815260206004820152602a60248201527f4552433732313a2062616c616e636520717565727920666f7220746865207a65604482015269726f206164647265737360b01b6064820152608401610387565b506001600160a01b031660009081526003602052604090205490565b6060600060010180546104179061151f565b336001600160a01b038316036108585760405162461bcd60e51b815260206004820152601960248201527f4552433732313a20617070726f766520746f2063616c6c6572000000000000006044820152606401610387565b3360008181526006602090815260408083206001600160a01b03871680855290835292819020805460ff191686151590811790915590519081529192917f17307eab39ab6107e8899845ad3d59bd9653f200f220920489ca2b5937696c31910160405180910390a35050565b6108ce3383610ae6565b6108ea5760405162461bcd60e51b815260040161038790611559565b6108f684848484610e18565b50505050565b6000818152600260205260409020546060906001600160a01b031661097b5760405162461bcd60e51b815260206004820152602f60248201527f4552433732314d657461646174613a2055524920717565727920666f72206e6f60448201526e3732bc34b9ba32b73a103a37b5b2b760891b6064820152608401610387565b600082815260056020526040902080546109949061151f565b80601f01602080910402602001604051908101604052809291908181526020018280546109c09061151f565b8015610a0d5780601f106109e257610100808354040283529160200191610a0d565b820191906000526020600020905b8154815290600101906020018083116109f057829003601f168201915b50505050509050919050565b6007546001600160a01b03163314610a6d5760405162461bcd60e51b815260206004820152601760248201527631b0b63632b91034b9903737ba103a34329037bbb732b960491b6044820152606401610387565b61063f838383610e4b565b600081815260046020526040902080546001600160a01b0319166001600160a01b0384169081179091558190610aad826106f0565b6001600160a01b03167f8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b92560405160405180910390a45050565b6000818152600260205260408120546001600160a01b0316610b5f5760405162461bcd60e51b815260206004820152602c60248201527f4552433732313a206f70657261746f7220717565727920666f72206e6f6e657860448201526b34b9ba32b73a103a37b5b2b760a11b6064820152608401610387565b6000610b6a836106f0565b9050806001600160a01b0316846001600160a01b03161480610ba55750836001600160a01b0316610b9a8461049a565b6001600160a01b0316145b80610bd557506001600160a01b0380821660009081526006602090815260408083209388168352929052205460ff165b949350505050565b826001600160a01b0316610bf0826106f0565b6001600160a01b031614610c585760405162461bcd60e51b815260206004820152602960248201527f4552433732313a207472616e73666572206f6620746f6b656e2074686174206960448201526839903737ba1037bbb760b91b6064820152608401610387565b6001600160a01b038216610cba5760405162461bcd60e51b8152602060048201526024808201527f4552433732313a207472616e7366657220746f20746865207a65726f206164646044820152637265737360e01b6064820152608401610387565b610cc5600082610a78565b6001600160a01b0383166000908152600360205260408120805460019290610cee9084906115c0565b90915550506001600160a01b0382166000908152600360205260408120805460019290610d1c9084906115d7565b909155505060008181526002602052604080822080546001600160a01b0319166001600160a01b0386811691821790925591518493918716917fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef91a4505050565b6000610d88826106f0565b9050610d95600083610a78565b6001600160a01b0381166000908152600360205260408120805460019290610dbe9084906115c0565b909155505060008281526002602052604080822080546001600160a01b0319169055518391906001600160a01b038416907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908390a45050565b610e23848484610bdd565b610e2f84848484610fb1565b6108f65760405162461bcd60e51b8152600401610387906115ef565b6001600160a01b038316610ea15760405162461bcd60e51b815260206004820181905260248201527f4552433732313a206d696e7420746f20746865207a65726f20616464726573736044820152606401610387565b6000828152600260205260409020546001600160a01b031615610f065760405162461bcd60e51b815260206004820152601c60248201527f4552433732313a20746f6b656e20616c7265616479206d696e746564000000006044820152606401610387565b6001600160a01b0383166000908152600360205260408120805460019290610f2f9084906115d7565b9091555050600082815260026020908152604080832080546001600160a01b0319166001600160a01b038816179055600582529091208251610f73928401906110b2565b5060405182906001600160a01b038516906000907fddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef908290a4505050565b60006001600160a01b0384163b156110a757604051630a85bd0160e11b81526001600160a01b0385169063150b7a0290610ff5903390899088908890600401611641565b6020604051808303816000875af1925050508015611030575060408051601f3d908101601f1916820190925261102d9181019061167e565b60015b61108d573d80801561105e576040519150601f19603f3d011682016040523d82523d6000602084013e611063565b606091505b5080516000036110855760405162461bcd60e51b8152600401610387906115ef565b805181602001fd5b6001600160e01b031916630a85bd0160e11b149050610bd5565b506001949350505050565b8280546110be9061151f565b90600052602060002090601f0160209004810192826110e05760008555611126565b82601f106110f957805160ff1916838001178555611126565b82800160010185558215611126579182015b8281111561112657825182559160200191906001019061110b565b50611132929150611136565b5090565b5b808211156111325760008155600101611137565b6001600160e01b0319811681146106ed57600080fd5b60006020828403121561117357600080fd5b813561117e8161114b565b9392505050565b634e487b7160e01b600052604160045260246000fd5b600067ffffffffffffffff808411156111b6576111b6611185565b604051601f8501601f19908116603f011681019082821181831017156111de576111de611185565b816040528093508581528686860111156111f757600080fd5b858560208301376000602087830101525050509392505050565b600082601f83011261122257600080fd5b61117e8383356020850161119b565b80356001600160a01b038116811461124857600080fd5b919050565b600080600080600060a0868803121561126557600080fd5b853567ffffffffffffffff8082111561127d57600080fd5b61128989838a01611211565b9650602088013591508082111561129f57600080fd5b506112ac88828901611211565b9450506112bb60408701611231565b9250606086013561ffff811681146112d257600080fd5b949793965091946080013592915050565b6000815180845260005b81811015611309576020818501810151868301820152016112ed565b8181111561131b576000602083870101525b50601f01601f19169290920160200192915050565b60208152600061117e60208301846112e3565b60006020828403121561135557600080fd5b5035919050565b6000806040838503121561136f57600080fd5b61137883611231565b946020939093013593505050565b60008060006060848603121561139b57600080fd5b6113a484611231565b92506113b260208501611231565b9150604084013590509250925092565b6000602082840312156113d457600080fd5b61117e82611231565b600080604083850312156113f057600080fd5b6113f983611231565b91506020830135801515811461140e57600080fd5b809150509250929050565b6000806000806080858703121561142f57600080fd5b61143885611231565b935061144660208601611231565b925060408501359150606085013567ffffffffffffffff81111561146957600080fd5b8501601f8101871361147a57600080fd5b6114898782356020840161119b565b91505092959194509250565b6000806000606084860312156114aa57600080fd5b6114b384611231565b925060208401359150604084013567ffffffffffffffff8111156114d657600080fd5b6114e286828701611211565b9150509250925092565b600080604083850312156114ff57600080fd5b61150883611231565b915061151660208401611231565b90509250929050565b600181811c9082168061153357607f821691505b60208210810361155357634e487b7160e01b600052602260045260246000fd5b50919050565b60208082526031908201527f4552433732313a207472616e736665722063616c6c6572206973206e6f74206f6040820152701ddb995c881b9bdc88185c1c1c9bdd9959607a1b606082015260800190565b634e487b7160e01b600052601160045260246000fd5b6000828210156115d2576115d26115aa565b500390565b600082198211156115ea576115ea6115aa565b500190565b60208082526032908201527f4552433732313a207472616e7366657220746f206e6f6e20455243373231526560408201527131b2b4bb32b91034b6b83632b6b2b73a32b960711b606082015260800190565b6001600160a01b0385811682528416602082015260408101839052608060608201819052600090611674908301846112e3565b9695505050505050565b60006020828403121561169057600080fd5b815161117e8161114b56fea2646970667358221220492841fed9d20041833f5234f65a1fa73c6e324143ee61c4f05529801ec6958964736f6c634300080e0033