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, 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) { |
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, 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 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 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 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 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
[ | |
{ | |
"id":"770287896669978684", | |
"name":"Remix", | |
"icon":"e1e3ff1c3519034de5b462ee06e3b6f9", | |
"owner":false, | |
"permissions":104189505, | |
"features":[ | |
"ENABLED_DISCOVERABLE_BEFORE", | |
"SEVEN_DAY_THREAD_ARCHIVE", |
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
React.useEffect(() => { | |
const id = setInterval(() => { | |
if (document.visibilityState === 'visible') { | |
liveData.load("/drops"); | |
} | |
}, 10000); | |
return () => clearInterval(id); | |
}, []); |
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
{ | |
"config": { | |
"chainId": 8572054696, | |
"homesteadBlock": 0, | |
"eip150Block": 0, | |
"eip155Block": 0, | |
"eip158Block": 0, | |
"byzantiumBlock": 0, | |
"constantinopleBlock": 0, | |
"petersburgBlock": 0, |
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
/* | |
Implements EIP20 token standard: https://github.com/ethereum/EIPs/issues/20 | |
.*/ | |
pragma solidity >=0.4.21 <0.7.0; | |
import "../installed_contracts/tokens/contracts/eip20/EIP20Interface.sol"; | |
contract WWTtoken is EIP20Interface { | |
uint256 constant MAX_UINT256 = 2**256 - 1; |
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 assert from 'assert'; | |
import uuid from 'uuid'; | |
import btoa from 'btoa'; | |
import _ from 'lodash'; | |
import randomName from 'node-random-name'; | |
import {request} from '@webex/http-core'; | |
const BASE_PATH_SECURE = '/users/test_users_s'; | |
const BASE_PATH = '/users/test_users'; |
NewerOlder