2021-07-23 22:46:21 +00:00
|
|
|
import { ethers } from "ethers";
|
|
|
|
|
2021-07-09 16:54:59 +00:00
|
|
|
export const fourBytesURL = (
|
|
|
|
assetsURLPrefix: string,
|
|
|
|
fourBytes: string
|
|
|
|
): string => `${assetsURLPrefix}/signatures/${fourBytes}`;
|
|
|
|
|
|
|
|
export const tokenLogoURL = (
|
|
|
|
assetsURLPrefix: string,
|
|
|
|
address: string
|
|
|
|
): string => `${assetsURLPrefix}/assets/${address}/logo.png`;
|
2021-07-23 22:46:21 +00:00
|
|
|
|
|
|
|
export const blockURL = (blockNum: ethers.providers.BlockTag) =>
|
|
|
|
`/block/${blockNum}`;
|
|
|
|
|
|
|
|
export const blockTxsURL = (blockNum: ethers.providers.BlockTag) =>
|
|
|
|
`/block/${blockNum}/txs`;
|