UNPKG

@coinbase/onchaintestkit

Version:

End-to-end testing toolkit for blockchain applications, powered by Playwright

26 lines (25 loc) 1.03 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HomePage = void 0; const importPrivateKey_1 = require("../OnboardingPage/actions/importPrivateKey"); const addNewAccount_1 = require("./actions/addNewAccount"); const enableTestMode_1 = require("./actions/enableTestMode"); const switchAccount_1 = require("./actions/switchAccount"); class HomePage { constructor(page) { this.page = page; } async importPrivateKey(privateKey, password, chain = "base", name) { await (0, importPrivateKey_1.importPrivateKey)(this.page, privateKey, password, chain, name); } async switchAccount(accountName) { await (0, switchAccount_1.switchAccount)(this.page, accountName); } async addNewAccount(accountName, privateKey, chain) { await (0, addNewAccount_1.addNewAccount)(this.page, accountName, chain, privateKey); } async enableTestMode() { await (0, enableTestMode_1.enableTestMode)(this.page); } } exports.HomePage = HomePage;