@excubiae/contracts
Version:
138 lines (137 loc) • 2.88 kB
JSON
{
"_format": "hh-sol-artifact-1",
"contractName": "IHats",
"sourceName": "contracts/extensions/hats/IHats.sol",
"abi": [
{
"inputs": [
{
"internalType": "uint256",
"name": "admin",
"type": "uint256"
},
{
"internalType": "string",
"name": "details",
"type": "string"
},
{
"internalType": "uint32",
"name": "maxSupply",
"type": "uint32"
},
{
"internalType": "address",
"name": "eligibility",
"type": "address"
},
{
"internalType": "address",
"name": "toggle",
"type": "address"
},
{
"internalType": "bool",
"name": "isMutable",
"type": "bool"
},
{
"internalType": "string",
"name": "imageURI",
"type": "string"
}
],
"name": "createHat",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "account",
"type": "address"
},
{
"internalType": "uint256",
"name": "hat",
"type": "uint256"
}
],
"name": "isWearerOfHat",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "hatId",
"type": "uint256"
},
{
"internalType": "address",
"name": "wearer",
"type": "address"
}
],
"name": "mintHat",
"outputs": [
{
"internalType": "bool",
"name": "success",
"type": "bool"
}
],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "target",
"type": "address"
},
{
"internalType": "string",
"name": "details",
"type": "string"
},
{
"internalType": "string",
"name": "imageURI",
"type": "string"
}
],
"name": "mintTopHat",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
],
"bytecode": "0x",
"deployedBytecode": "0x",
"linkReferences": {},
"deployedLinkReferences": {}
}