Skip to content

Instantly share code, notes, and snippets.

View ginika-chinonso's full-sized avatar

Ginika Chinonso ginika-chinonso

View GitHub Profile
// SPDX-License-Identifier: UNLICENSED
pragma solidity ^0.8.13;
import "lib/forge-std/src/Script.sol";
struct User {
address r;
bytes12 s;
}
@ginika-chinonso
ginika-chinonso / votetoken.sol
Last active February 14, 2023 13:03
voteToken Contract
// SPDX-License-Identifier: MIT
pragma solidity 0.8.6;
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol";
contract voteContract is ERC20{
address public owner;
@ginika-chinonso
ginika-chinonso / EthAjo.sol
Created February 6, 2023 00:25
A smart contract to track the contribution of different people
/*
A fallback function is a function that is called when someone calls a function that is not in the smart contract. The fall back function can also be used to recieve payment made to the contract.
*/
//SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
@ginika-chinonso
ginika-chinonso / studentrecord.sol
Last active February 4, 2023 02:39
Student Record Keeping Smart Contract
/*
Student record Assignment
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract studentRecords{
address public admin_address;
@ginika-chinonso
ginika-chinonso / extdens.sol
Last active February 4, 2023 02:26
Mini ENS smart contract with extended functionality
/*
Extended ENS Assignment
*/
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract ENS {
address public owner;
@ginika-chinonso
ginika-chinonso / ens.sol
Last active February 4, 2023 01:25
Mini ENS smart contract
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
contract ENS {
mapping(address => bytes) public AddressToBytesNames;
mapping(bytes => address) public bytesNameToAddress;
uint public TotalRegAddr = 0;