This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { | |
data: approveBallotData, | |
isLoading: isLoadingBallotData, | |
write: approveBallot, | |
} = useContractWrite({ | |
mode: "recklesslyUnprepared", | |
address: "0xDA57a96E31148FD1992Ef3dE08742F3DAEAee369", | |
abi: erc20ABI, | |
functionName: "approve", | |
args: [ballotAddress, 6], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// SPDX-License-Identifier: GPL-3.0 | |
pragma solidity 0.8.17; | |
struct Data{ | |
string name; | |
uint Id; | |
uint age; | |
string gender; | |
bool status; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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 |