16 lines
485 B
TypeScript
16 lines
485 B
TypeScript
import { BlockTag } from "@ethersproject/abstract-provider";
|
|
|
|
export const fourBytesURL = (
|
|
assetsURLPrefix: string,
|
|
fourBytes: string
|
|
): string => `${assetsURLPrefix}/signatures/${fourBytes}`;
|
|
|
|
export const tokenLogoURL = (
|
|
assetsURLPrefix: string,
|
|
address: string
|
|
): string => `${assetsURLPrefix}/assets/${address}/logo.png`;
|
|
|
|
export const blockURL = (blockNum: BlockTag) => `/block/${blockNum}`;
|
|
|
|
export const blockTxsURL = (blockNum: BlockTag) => `/block/${blockNum}/txs`;
|