0x2d27cb0f653bbdada3538d6d487400567e9ba75f1798fd5946130e93705050f0
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
type Resp = { | |
code: `${number}` | |
data: { | |
total: number | |
pages: number | |
currentPage: number | |
pageSize: number | |
symbolCommissionActivityList: { | |
makerZero: boolean | |
takerZero: boolean |
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 { ethers } from 'ethers' | |
const ETHRegistrarControllerABI = [ | |
"function available(string) view returns (bool)", | |
] | |
const provider = new ethers.providers.JsonRpcProvider(process.env.RPC_URL, 1) | |
const controllers = [ | |
'0xf0ad5cad05e10572efceb849f6ff0c68f9700455', |
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
0x83Fca45a538F9CAd6BCb0fF6B82171a7A6F4E3BE |
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
const handleAxiosError = function(err) { | |
if (err.response) { | |
const customError = new Error(err.response.statusText || 'Internal server error'); | |
customError.status = err.response.status || 500; | |
customError.description = err.response.data ? err.response.data.msg : null; | |
throw customError; | |
} | |
throw new Error(err); | |
} |
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
// sizeToString prettifies sizes. | |
func sizeToString(size uint64) (str string) { | |
b := float64(size) | |
switch { | |
case size >= 1<<60: | |
str = fmt.Sprintf("%.1fE", b/(1<<60)) | |
case size >= 1<<50: | |
str = fmt.Sprintf("%.1fP", b/(1<<50)) | |
case size >= 1<<40: |
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
Guilty as Sin? Taylor Swift | |
Fortnight (feat. Post M Taylor Swift & Po | |
SKINNY Billie Eilish | |
Come Back To Me Utada | |
L’AMOUR DE MA VIE Billie Eilish | |
LUNCH Billie Eilish | |
Me Muero Utada | |
愛, 很簡單 David Tao | |
CHIHIRO Billie Eilish | |
Apple And Cinnamon Utada |
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
TypeScript 34 hrs 14 mins ███████████████▍░░░░░ 73.2% | |
Solidity 8 hrs 49 mins ███▉░░░░░░░░░░░░░░░░░ 18.9% | |
Other 1 hr 17 mins ▌░░░░░░░░░░░░░░░░░░░░ 2.8% | |
TOML 47 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.7% | |
JSON 43 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.5% |
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
package main | |
import ( | |
"bufio" | |
"flag" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"log" |
NewerOlder