@holographxyz/cli
Version:
Holograph operator CLI
40 lines (39 loc) • 1.83 kB
TypeScript
import Web3 from 'web3';
import { BigNumber, BigNumberish } from '@ethersproject/bignumber';
export declare const web3: Web3;
export declare function randomNumber(min: number, max: number): number;
export declare function capitalize(input: string): string;
export declare const sleep: (ms: number) => Promise<unknown>;
export declare const getSecondsLeft: (timestamp: number) => number;
export declare const webSocketConfig: {
reconnect: {
auto: boolean;
onTimeout: boolean;
};
timeout: number;
clientConfig: {
maxReceivedFrameSize: number;
maxReceivedMessageSize: number;
keepalive: boolean;
keepaliveInterval: number;
dropConnectionOnKeepaliveTimeout: boolean;
keepaliveGracePeriod: number;
};
};
export declare const networkToChainId: Record<string, number>;
export declare const NETWORK_COLORS: Record<string, string>;
export declare const rgbToHex: (rgb: number) => string;
export declare const zeroAddress: string;
export declare function generateInitCode(vars: string[], vals: any[]): string;
export declare function remove0x(input: string): string;
export declare function toAscii(input: string): string;
export declare function sha3(input: string | undefined): string;
export declare function functionSignature(input: string | undefined): string;
export declare function storageSlot(input: string): string;
export declare function randomASCII(bytes: number): string;
export declare function isStringAValidURL(s: string): boolean;
export declare const toShort18Str: (num: string) => string;
export declare const toShort18: (num: BigNumberish) => BigNumber;
export declare const toLong18: (num: BigNumberish) => BigNumber;
export declare const generateRandomSalt: () => string;
export declare const utf8ToBytes32: (str: string) => string;