UNPKG

zksync-cli

Version:

CLI tool that simplifies the process of developing applications and interacting with the ZKsync network

18 lines (17 loc) 926 B
import { JsonRpcProvider } from "ethers"; import { Wallet, Provider } from "zksync-ethers"; import type { Command } from "commander"; export declare const optionNameToParam: (input: string) => string; export declare const getAddressFromPrivateKey: (privateKey: string) => string; export declare const getL1Provider: (url: string) => JsonRpcProvider; export declare const getL2Provider: (rpc: string) => Provider; export declare const getL2Wallet: (privateKey: string, l2Provider: Provider, l1Provider?: JsonRpcProvider) => Wallet; export interface ExecuteOptions { silent?: boolean; cwd?: string; } export declare const executeCommand: (command: string, options?: ExecuteOptions) => Promise<string>; export declare const hasColor: (text: string) => boolean; export declare const logFullCommandFromOptions: (options: Record<string, unknown>, context: Command, formattingOptions?: { emptyLine?: boolean; }) => void;