This file contains 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.0; | |
// Importing OpenZeppelin's SafeMath Implementation | |
import "@openzeppelin/contracts/utils/math/SafeMath.sol"; | |
import "@openzeppelin/contracts/token/ERC20/IERC20.sol"; | |
import './Project.sol'; | |
contract CrowdFund { | |
// SafeMath for safe integer operations |
This file contains 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: Unlicense | |
pragma solidity ^0.8.0; | |
import "hardhat/console.sol"; | |
import "@openzeppelin/contracts/utils/Counters.sol"; | |
contract NewsFeed { | |
uint256 totalFeeds; | |
using Counters for Counters.Counter; |
This file contains 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
module.exports = { | |
content: [ | |
"./pages/**/*.{js,ts,jsx,tsx}", | |
"./components/**/*.{js,ts,jsx,tsx}", | |
], | |
mode: "jit", | |
darkMode: "media", // or 'media' or 'class' | |
theme: { | |
extend: { | |
colors: { |
This file contains 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
@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;1,200;1,300;1,400;1,500;1,600&display=swap"); | |
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
body { | |
background-color: rgb(224, 247, 229); | |
color: #333; | |
} |
This file contains 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
import * as React from "react"; | |
import deployedContracts from "@celo-composer/hardhat/deployments/hardhat_contracts.json"; | |
import { useCelo } from "@celo/react-celo"; | |
import AppLayout from "@/components/layout/AppLayout"; | |
import HomePage from "./HomePage"; | |
export default function App() { | |
const { network } = useCelo(); | |
const contracts = |
This file contains 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
import * as React from "react"; | |
import deployedContracts from "@celo-composer/hardhat/deployments/hardhat_contracts.json"; | |
import { useCelo } from "@celo/react-celo"; | |
import AppLayout from "@/components/layout/AppLayout"; | |
import { HomePage } from "./HomePage"; | |
export default function App() { | |
const { network } = useCelo(); | |
const contracts = |