@settlemint/ssolidity-token-erc721-generative-art
Version:
Smart contract set to build an ERC721 token with generated art in SettleMint
111 lines • 3.33 kB
JSON
{
"compiler": {
"version": "0.8.27+commit.40a35a09"
},
"language": "Solidity",
"output": {
"abi": [
{
"inputs": [
{
"internalType": "address",
"name": "_operator",
"type": "address"
},
{
"internalType": "address",
"name": "_from",
"type": "address"
},
{
"internalType": "uint256",
"name": "_tokenId",
"type": "uint256"
},
{
"internalType": "bytes",
"name": "_data",
"type": "bytes"
}
],
"stateMutability": "nonpayable",
"type": "function",
"name": "onERC721Received",
"outputs": [
{
"internalType": "bytes4",
"name": "",
"type": "bytes4"
}
]
}
],
"devdoc": {
"kind": "dev",
"methods": {
"onERC721Received(address,address,uint256,bytes)": {
"details": "The ERC721 smart contract calls this function on the recipient after a `transfer`. This function MAY throw to revert and reject the transfer. Return of other than the magic value MUST result in the transaction being reverted. Note: the contract address is always the message sender.",
"params": {
"_data": "Additional data with no specified format",
"_from": "The address which previously owned the token",
"_operator": "The address which called `safeTransferFrom` function",
"_tokenId": "The NFT identifier which is being transferred"
},
"returns": {
"_0": "`bytes4(keccak256(\"onERC721Received(address,address,uint256,bytes)\"))` unless throwing"
}
}
},
"version": 1
},
"userdoc": {
"kind": "user",
"methods": {
"onERC721Received(address,address,uint256,bytes)": {
"notice": "Handle the receipt of an NFT"
}
},
"version": 1
}
},
"settings": {
"remappings": [
"@openzeppelin/=node_modules/@openzeppelin/",
"eth-gas-reporter/=node_modules/eth-gas-reporter/",
"forge-std/=lib/forge-std/src/",
"hardhat/=node_modules/hardhat/"
],
"optimizer": {
"enabled": true,
"runs": 10000
},
"metadata": {
"bytecodeHash": "ipfs"
},
"compilationTarget": {
"lib/forge-std/src/interfaces/IERC721.sol": "IERC721TokenReceiver"
},
"evmVersion": "cancun",
"libraries": {},
"viaIR": true
},
"sources": {
"lib/forge-std/src/interfaces/IERC165.sol": {
"keccak256": "0x414b2861b1acbf816ccb7346d3f16cf6c1e002e9e5e40d2f1f26fa5ddc2ea600",
"urls": [
"bzz-raw://698352fb240868ea8f1d1fe389993035eeab930f10d06934f80ccfb2b6ccbfbc",
"dweb:/ipfs/QmT6WLHAgXxFhh12kWym895oTzXid1326iZiwT3pyfggoT"
],
"license": "MIT"
},
"lib/forge-std/src/interfaces/IERC721.sol": {
"keccak256": "0xf069262a264fdb69f8f37a10d2df7374649e9ba73f8414c9c8a3b51184625f15",
"urls": [
"bzz-raw://924a41ca82a68ffbd503a5faf2f76d13e9938f10501a71094716f12bb64b4b7f",
"dweb:/ipfs/QmdWnqfKc5ZGhmxNPTde4zrFchnv9Yk9MpCMb2rdhXE5gm"
],
"license": "MIT"
}
},
"version": 1
}