UNPKG

zksync-cli

Version:

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

18 lines (17 loc) 949 B
import { ethers } 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: (l1RpcUrl: string) => ethers.providers.JsonRpcProvider; export declare const getL2Provider: (rpc: string) => Provider; export declare const getL2Wallet: (privateKey: string, l2Provider: Provider, l1Provider?: ethers.providers.Provider) => 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;