@coinbase/onchaintestkit
Version:
End-to-end testing toolkit for blockchain applications, powered by Playwright
22 lines (21 loc) • 930 B
TypeScript
import { Page } from "@playwright/test";
import type { SupportedChain } from "../../types";
export declare class OnboardingPage {
private readonly page;
constructor(page: Page);
/**
* Imports a wallet using a seed phrase, password, and username
* @param seedPhrase - The seed phrase to import
* @param password - The password to set for the wallet
* @param username - The username for the wallet
*/
importWallet(seedPhrase: string, password: string, username?: string): Promise<void>;
/**
* Imports a wallet using a private key
* @param privateKey - The private key to import
* @param password - The password to set for the wallet
* @param chain - The blockchain to use (defaults to "base")
* @param name - The name for the private key
*/
importPrivateKey(privateKey: string, password: string, chain?: SupportedChain, name?: string): Promise<void>;
}