Verified contractExactMIT
ImageParamsProvider
Address0xe2d846d42ffcf933c85a98813e7315d4ed7ca37f
- Balance
0 ETH
- Transactions
1
- Compiler
solc 0.8.30
- Same code
Only this contract
Details
- Compiler
- solc 0.8.30+commit.73712a01
- Language
- solidity
- Optimization
- No
- EVM version
- prague
- License
- MIT
- Match
- Exactcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 24,958,931
- Creation transaction
- 0x140b3932cb…9b14d68a77
2 files
src/ImageParamsProvider.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
import "./svg_generation/IImageParams.sol";
/// @notice Default image parameters for Ethereum Artboard
contract ImageParamsProvider is IImageParams {
function getImageParams() external pure override returns (ImageParams memory) {
return ImageParams({
colorsCount: 12,
backgroundColorsCount: 8,
accessoriesCount: 5,
bodyCount: 4,
eyesCount: 6,
hairCount: 5,
hornCount: 4,
legsFrontCount: 3,
legsBackCount: 3,
tailCount: 4,
groundCount: 3,
wingsCount: 3
});
}
}
src/svg_generation/IImageParams.sol
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;
/// @dev Generation parameters (element counts and palette sizes).
struct ImageParams {
// palette sizes
uint8 colorsCount; // full color palette
uint8 backgroundColorsCount; // background palette
// element counts per layer
uint accessoriesCount;
uint bodyCount;
uint eyesCount;
uint hairCount;
uint hornCount;
uint legsFrontCount;
uint legsBackCount;
uint tailCount;
uint groundCount;
uint wingsCount;
}
interface IImageParams {
/// @dev Returns aggregated parameters for seed/Upeg generation.
function getImageParams() external view returns (ImageParams memory);
}
Compiler settingsShow
{
"viaIR": false,
"metadata": {
"appendCBOR": true,
"bytecodeHash": "ipfs",
"useLiteralContent": false
},
"optimizer": {
"runs": 200,
"enabled": false
},
"evmVersion": "prague",
"remappings": [
"solady/=lib/solady/",
"forge-std/=lib/forge-std/src/"
]
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.