// SPDX-License-Identifier: CC0
/*
/$$$$$$$$ /$$$$$$$ /$$$$$$$$ /$$$$$$$$ /$$$$$$
| $$_____/| $$__ $$| $$_____/| $$_____/ /$$$_ $$
| $$ | $$ \ $$| $$ | $$ | $$$$\ $$
| $$$$$ | $$$$$$$/| $$$$$ | $$$$$ | $$ $$ $$
| $$__/ | $$__ $$| $$__/ | $$__/ | $$\ $$$$
| $$ | $$ \ $$| $$ | $$ | $$ \ $$$
| $$ | $$ | $$| $$$$$$$$| $$$$$$$$ | $$$$$$/
|__/ |__/ |__/|________/|________/ \______/
/$$
| $$
| $$$$$$$ /$$ /$$
| $$__ $$| $$ | $$
| $$ \ $$| $$ | $$
| $$ | $$| $$ | $$
| $$$$$$$/| $$$$$$$
|_______/ \____ $$
/$$ | $$
| $$$$$$/
\______/
/$$$$$$ /$$$$$$$$ /$$$$$$$$ /$$ /$$ /$$$$$$ /$$$$$$$$ /$$$$$$$
/$$__ $$|__ $$__/| $$_____/| $$ | $$|_ $$_/| $$_____/| $$__ $$
| $$ \__/ | $$ | $$ | $$ | $$ | $$ | $$ | $$ \ $$
| $$$$$$ | $$ | $$$$$ | $$ / $$/ | $$ | $$$$$ | $$$$$$$/
\____ $$ | $$ | $$__/ \ $$ $$/ | $$ | $$__/ | $$____/
/$$ \ $$ | $$ | $$ \ $$$/ | $$ | $$ | $$
| $$$$$$/ | $$ | $$$$$$$$ \ $/ /$$$$$$| $$$$$$$$| $$
\______/ |__/ |________/ \_/ |______/|________/|__/
CC0 2021
*/
pragma solidity ^0.8.11;
interface IFree {
function mint(uint256 collectionId, address to) external;
}
contract Free0 {
IFree public immutable free;
constructor(address freeAddr) {
free = IFree(freeAddr);
}
function claim() public {
free.mint(0, msg.sender);
}
}
{
"compilationTarget": {
"contracts/Free0.sol": "Free0"
},
"evmVersion": "london",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": false,
"runs": 200
},
"remappings": []
}
[{"inputs":[{"internalType":"address","name":"freeAddr","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"claim","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"free","outputs":[{"internalType":"contract IFree","name":"","type":"address"}],"stateMutability":"view","type":"function"}]