Skip to content

Instantly share code, notes, and snippets.

View Age1eSS-create's full-sized avatar
🐥
Chill

Elvira Husainova Age1eSS-create

🐥
Chill
View GitHub Profile
@Age1eSS-create
Age1eSS-create / contracts...Projects...3.RecordFactory1.sol
Created October 13, 2025 13:46
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;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol";
interface IRecordsStorage {
function addRecord(address _newRecord) external;
}
abstract contract Record {
@Age1eSS-create
Age1eSS-create / contracts...Projects...3.RecordFactory.sol
Created October 13, 2025 12:50
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;
abstract contract Record {
uint public immutable timeOfCreation;
constructor() {
timeOfCreation = block.timestamp;
}
@Age1eSS-create
Age1eSS-create / contracts...Projects...2. DomainWithCheck.sol
Created September 26, 2025 03:51
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 Domain {
struct InfoAddress {
address domainOwner;
uint createdAt;
uint paid;
uint duration;
}
@Age1eSS-create
Age1eSS-create / contracts...Projects...1. Domain.sol
Created August 20, 2025 18:16
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 Domain {
struct InfoAddress {
address domainOwner;
uint createdAt;
uint paid;
}
mapping(string => InfoAddress) public domains;