@coinbase/onchaintestkit
Version:
End-to-end testing toolkit for blockchain applications, powered by Playwright
28 lines (27 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.OnboardingPage = void 0;
const importPrivateKey_1 = require("./actions/importPrivateKey");
const importWallet_1 = require("./actions/importWallet");
class OnboardingPage {
constructor(page) {
this.page = page;
}
/**
* Imports a wallet using a seed phrase and password
* @param seedPhrase - The seed phrase to import
* @param password - The password to set for the wallet
*/
async importWallet(seedPhrase, password) {
await (0, importWallet_1.importWallet)(this.page, seedPhrase, password);
}
/**
* Imports a wallet using a private key and password during onboarding
* @param privateKey - The private key to import
* @param password - The password to set for the wallet
*/
async importPrivateKey(privateKey, password) {
await (0, importPrivateKey_1.importPrivateKey)(this.page, privateKey, password);
}
}
exports.OnboardingPage = OnboardingPage;