Description:
Smart contract deployed on Ethereum with Factory features.
Blockchain: Ethereum
Source Code: View Code On The Blockchain
Solidity Source Code:
{{
"language": "Solidity",
"sources": {
"contracts/OwlFeetTrait.sol": {
"content": "// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
contract OwlFeetTrait {
function renderTrait(uint256 seed, string memory color) external pure returns (string memory) {
if (seed == 10 || seed == 11) return renderFeetStanding(color);
return "";
}
function makePath(string memory pos, string memory pathData, string memory color) private pure returns (string memory) {
return string(abi.encodePacked(
'<g transform="translate(', pos, ') scale(0.011, -0.011)"><path d="',
pathData, '" fill="', color, '"/></g>'
));
}
function renderFeetStanding(string memory color) private pure returns (string memory) {
return string(abi.encodePacked('<g id="feet-standing">',
makePath('148,192', 'M137 238v276h1055v-276h-1055zM137 731v277h1055v-277h-1055z', color),
makePath('162,192', 'M137 238v276h1055v-276h-1055zM137 731v277h1055v-277h-1055z', color),
'</g>'));
}
}"
}
},
"settings": {
"optimizer": {
"enabled": true,
"runs": 200
},
"viaIR": true,
"evmVersion": "paris",
"outputSelection": {
"*": {
"*": [
"evm.bytecode",
"evm.deployedBytecode",
"devdoc",
"userdoc",
"metadata",
"abi"
]
}
}
}
}}
Submitted on: 2025-09-25 16:28:25
Comments
Log in to comment.
No comments yet.