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
"use client"; | |
import { useState } from "react"; | |
export default function Login() { | |
const [email, setEmail] = useState(""); | |
const [password, setPassword] = useState(""); | |
const [loading, setLoading] = useState(false); | |
const [mode, setMode] = useState("signin"); // 'signin' or 'signup' | |
const [message, setMessage] = useState(""); |
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
"use client"; | |
import { useState } from "react"; | |
export default function Home() { | |
const [imageUrl, setImageUrl] = useState(""); | |
const [uploading, setUploading] = useState(false); | |
const [images, setImages] = useState([]); | |
const [copySuccess, setCopySuccess] = useState(""); |
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.22; | |
import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
contract MyToken is ERC721 { | |
constructor() ERC721("MyToken", "MTK") {} | |
} |
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: UNLICENSED | |
pragma solidity ^0.8.13; | |
import "@pythnetwork/pyth-sdk-solidity/IPyth.sol"; | |
contract EthBettingDapp { | |
IPyth public pyth; | |
bytes32 public ethUsdPriceId; | |
struct Bet { |
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.0; | |
import "@openzeppelin/contracts/token/ERC20/ERC20.sol"; | |
contract HotelBooking { | |
address public owner; | |
IERC20 public token; | |
enum RoomCategory { Presidential, Deluxe, Suite } |
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
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 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
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 = |
NewerOlder