@lukso/lsp-smart-contracts
Version:
The reference smart contract implementation for the LUKSO LSP standards
80 lines • 5.25 kB
JSON
{
"_format": "hh3-artifact-1",
"contractName": "OnERC721ReceivedExtension",
"sourceName": "contracts/OnERC721ReceivedExtension.sol",
"abi": [
{
"inputs": [],
"name": "VERSION",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "address",
"name": "",
"type": "address"
},
{
"internalType": "uint256",
"name": "",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"name": "onERC721Received",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes4",
"name": "interfaceId",
"type": "bytes4"
}
],
"name": "supportsInterface",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
}
],
"bytecode": "0x608060405234801561001057600080fd5b50610359806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063150b7a021461006e578063ffa1ad74146100be575b600080fd5b610059610054366004610170565b610107565b60405190151581526020015b60405180910390f35b6100a561007c3660046101f9565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b03199091168152602001610065565b6100fa6040518060400160405280600681526020017f302e31372e32000000000000000000000000000000000000000000000000000081525081565b60405161006591906102d5565b60006001600160e01b031982167fcee78b4000000000000000000000000000000000000000000000000000000000148061016a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60006020828403121561018257600080fd5b81356001600160e01b03198116811461019a57600080fd5b9392505050565b803573ffffffffffffffffffffffffffffffffffffffff811681146101c557600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561020f57600080fd5b610218856101a1565b9350610226602086016101a1565b925060408501359150606085013567ffffffffffffffff8082111561024a57600080fd5b818701915087601f83011261025e57600080fd5b813581811115610270576102706101ca565b604051601f8201601f19908116603f01168101908382118183101715610298576102986101ca565b816040528281528a60208487010111156102b157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208083528351808285015260005b81811015610302578581018301518582016040015282016102e6565b506000604082860101526040601f19601f830116850101925050509291505056fea2646970667358221220718c4d7e5ee8e690dc12ebae3f5890317caec84089b254cf4c039f271e1fedff64736f6c63430008110033",
"deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100415760003560e01c806301ffc9a714610046578063150b7a021461006e578063ffa1ad74146100be575b600080fd5b610059610054366004610170565b610107565b60405190151581526020015b60405180910390f35b6100a561007c3660046101f9565b7f150b7a0200000000000000000000000000000000000000000000000000000000949350505050565b6040516001600160e01b03199091168152602001610065565b6100fa6040518060400160405280600681526020017f302e31372e32000000000000000000000000000000000000000000000000000081525081565b60405161006591906102d5565b60006001600160e01b031982167fcee78b4000000000000000000000000000000000000000000000000000000000148061016a57507f01ffc9a7000000000000000000000000000000000000000000000000000000006001600160e01b03198316145b92915050565b60006020828403121561018257600080fd5b81356001600160e01b03198116811461019a57600080fd5b9392505050565b803573ffffffffffffffffffffffffffffffffffffffff811681146101c557600080fd5b919050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b6000806000806080858703121561020f57600080fd5b610218856101a1565b9350610226602086016101a1565b925060408501359150606085013567ffffffffffffffff8082111561024a57600080fd5b818701915087601f83011261025e57600080fd5b813581811115610270576102706101ca565b604051601f8201601f19908116603f01168101908382118183101715610298576102986101ca565b816040528281528a60208487010111156102b157600080fd5b82602086016020830137600060208483010152809550505050505092959194509250565b600060208083528351808285015260005b81811015610302578581018301518582016040015282016102e6565b506000604082860101526040601f19601f830116850101925050509291505056fea2646970667358221220718c4d7e5ee8e690dc12ebae3f5890317caec84089b254cf4c039f271e1fedff64736f6c63430008110033",
"linkReferences": {},
"deployedLinkReferences": {},
"immutableReferences": {},
"inputSourceName": "project/contracts/OnERC721ReceivedExtension.sol",
"buildInfoId": "solc-0_8_17-4a9fed14a4975bab4788545bf93253f7d31e2e5d"
}