Skip to content

Instantly share code, notes, and snippets.

@hio1337
hio1337 / ens.sol
Created September 6, 2025 12:03
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.30+commit.73712a01.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
contract domainRegistrator {
address public owner;
uint public price;
uint public renewalCoefficient;
modifier onlyOwner() {
require(msg.sender == owner, "NOT ELIGBLE!");
@hio1337
hio1337 / ENS.sol
Last active August 13, 2025 14:30
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.30+commit.73712a01.js&optimize=false&runs=200&gist=
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
contract ENSReg {
address public owner = 0x5B38Da6a701c568545dCfcB03FcB875f56beddC4;
struct Domain {
address addr;
uint createdAt;
uint price;