OwlFeetTrait

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"
        ]
      }
    }
  }
}}

Tags:
Factory|addr:0x44168bd4996f39f7e0ef69584bf39b73fe33e695|verified:true|block:23440325|tx:0x01ffbda8a8adc16a8b416f78c5d32eca5aa1908351e075a2034a520c8638cd6f|first_check:1758810504

Submitted on: 2025-09-25 16:28:25

Comments

Log in to comment.

No comments yet.