Skip to content

Instantly share code, notes, and snippets.

View marvelous-007's full-sized avatar
🎯
Focusing

marvelous-007

🎯
Focusing
View GitHub Profile
const {
data: approveBallotData,
isLoading: isLoadingBallotData,
write: approveBallot,
} = useContractWrite({
mode: "recklesslyUnprepared",
address: "0xDA57a96E31148FD1992Ef3dE08742F3DAEAee369",
abi: erc20ABI,
functionName: "approve",
args: [ballotAddress, 6],
// SPDX-License-Identifier: GPL-3.0
pragma solidity 0.8.17;
struct Data{
string name;
uint Id;
uint age;
string gender;
bool status;
}
@marvelous-007
marvelous-007 / ERC-20.sol
Created February 9, 2023 11:38
an erc-20 token where a user can transfer and burn token
// SPDX-License-Identifier: GPL-3.0
// @author Johnson Marvelous
// @title ERC-20
pragma solidity 0.8.17;
contract W3BVIII{
// @notice this is the address of the owner
// SPDX-License-Identifier: MIT
// @author Johnson Marvelous
// @title Student Records
pragma solidity ^0.8.0;
contract School {
// @notice this data type holds the information of students
// SPDX-License-Identifier: MIT
pragma solidity 0.8.17;
// @title ENS: Ethereum Naming system
// @author Johnson MArvelous (Prime)
// @use a local blockchain i.e Ganache cli for a faster transaction and a better user experience
contract ENS_Registry {
// @notice this data type holds the mapped address and the owner of the domain name