-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCoverLetter.sol
More file actions
47 lines (38 loc) · 1.69 KB
/
CoverLetter.sol
File metadata and controls
47 lines (38 loc) · 1.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.25;
/// @title CoverLEtter - A Solidity-encoded developer introduction and motivation letter
contract CoverLetter {
address public immutable author;
string public constant GITHUB = "https://github.com/diego-g";
string public constant ENS = "diego-g.eth";
enum Status { Drafted, Published }
Status public profileStatus;
event ProfilePublished(address indexed author);
error AlreadyPublished();
constructor() {
author = msg.sender;
profileStatus = Status.Drafted;
}
function publishProfile() external {
if (msg.sender != author) revert AlreadyPublished();
profileStatus = Status.Published;
emit ProfilePublished(author);
}
function getSummary() external pure returns (string memory) {
return string.concat(
"Hi, I'm Diego.\n\n",
"I'm a smart contract engineer with a deep interest in the Ethereum ecosystem, rollups, and protocol design.\n",
"I work primarily in Solidity, Foundry, and enjoy writing gas-efficient, secure, and auditable code.\n\n",
"My recent focus includes crosschain interop, L2 architecture, and developer tooling.\n\n",
"Open-source, rigor, and clean design are core to my philosophy.\n\n",
"GitHub: ", GITHUB, "\n",
"ENS: ", ENS, "\n"
);
}
function values() external pure returns (string memory) {
return "Security, simplicity, composability, and open-source collaboration.";
}
function favoriteOpcode() external pure returns (bytes1) {
return 0x42; // TIMESTAMP — or 'The Answer to Life, the Universe, and Everything'
}
}