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 { NextRequest } from 'next/server' | |
import { ImageResponse } from "@vercel/og"; | |
import { SECONDS_DURATION } from '@/utils/shared/seconds' | |
export const dynamic = 'error' | |
export const revalidate = SECONDS_DURATION.HOUR | |
export const runtime = 'edge' | |
export const FRAME_IMAGE_DIMENSIONS = { |
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; | |
import "@openzeppelin/contracts/token/ERC721/ERC721.sol"; | |
import "@openzeppelin/contracts/access/Ownable.sol"; | |
contract MyNFT is ERC721, Ownable { | |
using Strings for uint256; | |
// Base URI |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 { useState } from "react"; | |
import { VStack, Button, HStack } from "@chakra-ui/react"; | |
import { metamaskModal, coinbaseWalletModal, otherModal } from "./modals"; // import Web3Modals | |
export default function Home() { | |
// State variables | |
const [provider, setProvider] = useState(); | |
const [modal, setModal] = useState(); | |
// Connect to wallet given a wallet type |
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 Web3Modal from "web3modal"; | |
import WalletConnect from "@walletconnect/web3-provider"; | |
import CoinbaseWalletSDK from "@coinbase/wallet-sdk"; | |
import Portis from "@portis/web3"; | |
// Metmamask (Injected Provider) Web3Modal Instance | |
export const metamaskModal = new Web3Modal({ | |
cacheProvider: true, // optional | |
providerOptions: { | |
// Example with injected providers |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder