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 React, { Fragment } from "react"; | |
| import { Menu, Transition } from "@headlessui/react"; | |
| import { ContentfulBounty } from "~/types"; | |
| import { ChevronDown16 } from "@carbon/icons-react"; | |
| import { capitalize, startCase, toLower } from "lodash"; | |
| import { getBountyStatus } from "~/utils/helpers"; | |
| const allLevels = "All Levels"; | |
| const allProjects = "All Projects"; | |
| const allDrops = "All Drops"; |
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.13; | |
| import "@openzeppelin/contracts/access/Ownable.sol"; | |
| import "./interfaces/IQuestionStateController.sol"; | |
| import "./modifiers/OnlyAPI.sol"; | |
| contract QuestionStateController is IQuestionStateController, Ownable, OnlyApi { | |
| mapping(uint256 => QuestionVote) public votes; | |
| mapping(uint256 => STATE) public state; |
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 { useLoaderData } from "@remix-run/react"; | |
| import type { SetStateAction, Dispatch } from "react"; | |
| import React from "react"; | |
| import WalletProvider from "~/components/WalletProvider"; | |
| import Wrapper from "~/components/Wrapper"; | |
| import ConnectWalletButton from "~/components/ConnectWalletButton"; | |
| import CreateQuestionContainer from "~/components/CreateQuestionContainer"; | |
| import { getContracts } from "~/services/contracts.server"; |
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 { useState, useCallback, useRef, useEffect } from "react"; | |
| import { useSubmit } from "@remix-run/react"; | |
| import { Select } from "~/components/SelectMenu"; | |
| import { LogoIcon } from "~/components/LogoIcon"; | |
| import type { Chain } from "~/types"; | |
| import { getChainClient } from "~/chain-clients"; | |
| const options = [ | |
| { name: "-- Select Value Below --", value: "" }, |
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 { useState, useEffect } from "react"; | |
| import { Link, useFetcher } from "@remix-run/react"; | |
| import { createWallet, injectedProvider } from "thirdweb/wallets"; | |
| import { checksumAddress } from "thirdweb/utils"; | |
| import { useActiveWallet, useActiveAccount, useDisconnect, ConnectButton, useAutoConnect } from "thirdweb/react"; | |
| import { signLoginPayload } from "thirdweb/auth"; | |
| import LoginModal from "./LoginModal"; | |
| function truncateAddress(address) { | |
| if (address && address.length > 25) { |
OlderNewer