{
"language": "Solidity",
"sources": {
"contracts/EthboxMetadata.sol": {
"content": "// SPDX-License-Identifier: Unlicensed\r\n\r\npragma solidity 0.8.16;\r\n\r\nimport \"@openzeppelin/contracts/access/Ownable.sol\";\r\nimport \"@openzeppelin/contracts/utils/Address.sol\";\r\nimport \"@openzeppelin/contracts/utils/Strings.sol\";\r\nimport \"./strings.sol\";\r\nimport \"./base64.sol\";\r\nimport \"./EthboxStructs.sol\";\r\n\r\nabstract contract ReverseRegistrar {\r\n function node(address addr) public pure virtual returns (bytes32);\r\n}\r\n\r\nabstract contract ENS {\r\n function resolver(bytes32 node) public view virtual returns (address);\r\n}\r\n\r\nabstract contract Resolver {\r\n function name(bytes32 node) public view virtual returns (string memory);\r\n}\r\n\r\ncontract EthboxMetadata is Ownable {\r\n using Address for address;\r\n using Strings for uint256;\r\n using strings for *;\r\n\r\n ENS ens;\r\n ReverseRegistrar reverseRegistrar;\r\n\r\n string private desc;\r\n string private externalUrl;\r\n string private messageInsert;\r\n string private ethboxInsert;\r\n string private emptyInsert;\r\n\r\n constructor() {\r\n ens = ENS(0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e);\r\n // reverseRegistrar = ReverseRegistrar(0x6F628b68b30Dc3c17f345c9dbBb1E483c2b7aE5c); //rinkeby\r\n reverseRegistrar = ReverseRegistrar(0x084b1c3C81545d370f3634392De611CaaBFf8148);//mainnet\r\n externalUrl = \"https://ethbox.nxc.io/address/\";\r\n desc = \"Ethbox is a fully on-chain Ethereum messaging protocol that enables any wallet to bid ETH to send messages to another wallet.\";\r\n messageInsert = '