Skip to content

Instantly share code, notes, and snippets.

{
"name": "Example Token",
"description": "Official token",
"symbol": "EXTO",
"decimals": 9,
"image_data": "4bWxuczPHN2ZyB0..."
}
@ocb013
ocb013 / records.sol
Created November 6, 2023 05:22
Фабрика записей 2
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
abstract contract Record {
uint public timeOfCreation;
function getRecordType() public virtual pure returns(string memory);
constructor() {
timeOfCreation = block.timestamp;
@ocb013
ocb013 / records.sol
Created November 6, 2023 04:09
Фабрика записей 1
// SPDX-License-Identifier: GPL-3.0
pragma solidity ^0.8.0;
abstract contract Record {
uint public timeOfCreation;
function getRecordType() public virtual pure returns(string memory);
constructor() {
timeOfCreation = block.timestamp;
@ocb013
ocb013 / ens_domen.sol
Created October 31, 2023 21:40
ENS с проверками
pragma solidity ^0.8.0;
//SPDX-License-Identifier: GPL-3.0
contract EnsDomen {
constructor() {
owner = msg.sender;
}
receive() external payable {}