type(scope): subject
<body>
<footer>
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.4; | |
| import "@openzeppelin/contracts@4.7.1/token/ERC721/ERC721.sol"; | |
| import "@openzeppelin/contracts@4.7.1/access/Ownable.sol"; | |
| import "@openzeppelin/contracts@4.7.1/utils/Counters.sol"; | |
| contract MyToken is ERC721, Ownable { | |
| using Counters for Counters.Counter; |
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
| pragma solidity ^0.8.15; | |
| // SPDX-License-Identifier: MIT | |
| contract PaymentSplitter { | |
| address payable [] public recipients; | |
| event TransferReceived(address _from, uint _amount); | |
| constructor(address payable [] memory _addrs) { | |
| for(uint i=0; i<_addrs.length; i++){ | |
| recipients.push(_addrs[i]); |
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
| Twitter ID | Screen name | Followers | Removal observed | Before | After | |
|---|---|---|---|---|---|---|
| 17461978 | SHAQ | 15612791 | 2022-02-26T22:24:52Z | SHAQ.ETH | SHAQ.SOL | |
| 21910850 | jakeowen | 2119904 | 2022-02-26T15:45:18Z | jakeowen.eth | Jake Owen | |
| 7846 | ijustine | 1811449 | 2022-03-09T14:43:37Z | iJustine.eth | iJustineUltra | |
| 1666038950 | BoredElonMusk | 1752290 | 2022-02-17T08:05:47Z | bored.eth | Bored | |
| 381051960 | ethRuby | 1267133 | 2022-03-19T08:08:11Z | CryptoSolis.eth | Ruby | |
| 1282418324228337665 | wsbmod | 832406 | 2022-02-24T06:52:07Z | wsbmod.eth | wsbmod | |
| 20882981 | EclecticMethod | 495235 | 2022-02-18T04:39:30Z | eclecticm.eth | Eclectic Method | |
| 811350 | alexisohanian | 479340 | 2022-02-08T06:31:55Z | AlexisOhanian.eth 7️⃣7️⃣6️⃣ | Alexis Ohanian 7️⃣7️⃣6️⃣ | |
| 22784458 | Fwiz | 410813 | 2022-03-22T08:54:42Z | Ryan Wyatt - fwiz.eth 💜 | Ryan Wyatt - @ GDC |
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 | |
| // Source: | |
| // https://github.com/ensdomains/ens-contracts/blob/master/contracts/ethregistrar/StringUtils.sol | |
| pragma solidity >=0.8.4; | |
| library StringUtils { | |
| /** | |
| * @dev Returns the length of a given string | |
| * | |
| * @param s The string to measure the length of |
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 { type Key, useSWR } from 'swr'; | |
| /** | |
| * Fetcher is created to be used with `useSWR` hook. | |
| * | |
| * @param url - URL of the endpoint. | |
| * @returns JSON response of the resulting request. | |
| */ | |
| const fetcher = async (url: string) => { | |
| const res = await fetch(url); |
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 bcrypt from "bcrypt"; | |
| import { createCookieSessionStorage, redirect } from "remix"; | |
| import { db } from "./db.server"; | |
| export type LoginForm = { | |
| username: string; | |
| password: string; | |
| }; |
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
| // try it : https://codesandbox.io/s/sample-next-ts-rhf-zod-9ieev | |
| import React from "react"; | |
| import { useForm } from "react-hook-form"; | |
| import { zodResolver } from "@hookform/resolvers/zod"; | |
| import { z } from "zod"; | |
| import type { FieldError } from "react-hook-form"; | |
| // JSON.stringify(error) will not work, because of circulare structure. So we need this helper. |
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 Container from "components/ui/Container" | |
| import VideoCard from "components/VideoCard" | |
| import fetchData from "helpers/fetchData" | |
| import { useEffect, useState, Fragment, useRef } from "react" | |
| import { useInfiniteQuery } from "react-query" | |
| import useIntersectionObserver from "../hooks/useIntersectionObserver" | |
| import Select from "react-select" | |
| import { useUIDSeed } from "react-uid" | |
| import { useRouter } from "next/router" | |
| import Seo from "components/Seo" |
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
| const params = addToken({ | |
| type: 'ERC20', | |
| options: { | |
| address: '0x2acc95758f8b5f583470ba265eb685a8f45fc9d5', | |
| symbol: 'RIF', | |
| decimals: 18, | |
| image: 'https://s2.coinmarketcap.com/static/img/coins/64x64/3701.png' | |
| } | |
| }) |