w3wallets 0.9.2 → 0.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -3
- package/dist/index.mjs +2 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -76,7 +76,7 @@ declare class Metamask extends Wallet {
|
|
|
76
76
|
importAccount(privateKey: string): Promise<void>;
|
|
77
77
|
addAccount(accountName?: string): Promise<void>;
|
|
78
78
|
getAccountName(): Promise<string>;
|
|
79
|
-
connectToNetwork(networkName: string, networkType?: "
|
|
79
|
+
connectToNetwork(networkName: string, networkType?: "Popular" | "Custom"): Promise<void>;
|
|
80
80
|
addCustomNetwork(settings: NetworkSettings): Promise<void>;
|
|
81
81
|
enableTestNetworks(): Promise<void>;
|
|
82
82
|
approve(): Promise<void>;
|
package/dist/index.d.ts
CHANGED
|
@@ -76,7 +76,7 @@ declare class Metamask extends Wallet {
|
|
|
76
76
|
importAccount(privateKey: string): Promise<void>;
|
|
77
77
|
addAccount(accountName?: string): Promise<void>;
|
|
78
78
|
getAccountName(): Promise<string>;
|
|
79
|
-
connectToNetwork(networkName: string, networkType?: "
|
|
79
|
+
connectToNetwork(networkName: string, networkType?: "Popular" | "Custom"): Promise<void>;
|
|
80
80
|
addCustomNetwork(settings: NetworkSettings): Promise<void>;
|
|
81
81
|
enableTestNetworks(): Promise<void>;
|
|
82
82
|
approve(): Promise<void>;
|
package/dist/index.js
CHANGED
|
@@ -230,8 +230,8 @@ var Metamask = class extends Wallet {
|
|
|
230
230
|
await this.page.getByTestId("create-password-submit").click();
|
|
231
231
|
await this.page.getByTestId("metametrics-no-thanks").click();
|
|
232
232
|
await this.page.getByTestId("onboarding-complete-done").click();
|
|
233
|
+
await this.page.getByTestId("download-app-continue").click();
|
|
233
234
|
await this.page.getByTestId("pin-extension-done").click();
|
|
234
|
-
await this.page.getByTestId("not-now-button").click();
|
|
235
235
|
}
|
|
236
236
|
async switchAccount(accountNameOrAddress) {
|
|
237
237
|
await this.page.getByTestId("account-menu-icon").click();
|
|
@@ -264,7 +264,7 @@ var Metamask = class extends Wallet {
|
|
|
264
264
|
if (!text) throw Error("Cannot get account name");
|
|
265
265
|
return text;
|
|
266
266
|
}
|
|
267
|
-
async connectToNetwork(networkName, networkType = "
|
|
267
|
+
async connectToNetwork(networkName, networkType = "Popular") {
|
|
268
268
|
await this.page.getByTestId("sort-by-networks").click();
|
|
269
269
|
await this.page.getByRole("button", { name: networkType, exact: true }).click();
|
|
270
270
|
const additionalNetwork = this.page.getByTestId("additional-network-item").getByText(networkName);
|
|
@@ -274,7 +274,6 @@ var Metamask = class extends Wallet {
|
|
|
274
274
|
await this.page.getByTestId("confirmation-submit-button").click();
|
|
275
275
|
} catch (error) {
|
|
276
276
|
await this.page.getByText(networkName).click();
|
|
277
|
-
await this.page.getByTestId("modal-header-close-button").click();
|
|
278
277
|
}
|
|
279
278
|
}
|
|
280
279
|
async addCustomNetwork(settings) {
|
package/dist/index.mjs
CHANGED
|
@@ -196,8 +196,8 @@ var Metamask = class extends Wallet {
|
|
|
196
196
|
await this.page.getByTestId("create-password-submit").click();
|
|
197
197
|
await this.page.getByTestId("metametrics-no-thanks").click();
|
|
198
198
|
await this.page.getByTestId("onboarding-complete-done").click();
|
|
199
|
+
await this.page.getByTestId("download-app-continue").click();
|
|
199
200
|
await this.page.getByTestId("pin-extension-done").click();
|
|
200
|
-
await this.page.getByTestId("not-now-button").click();
|
|
201
201
|
}
|
|
202
202
|
async switchAccount(accountNameOrAddress) {
|
|
203
203
|
await this.page.getByTestId("account-menu-icon").click();
|
|
@@ -230,7 +230,7 @@ var Metamask = class extends Wallet {
|
|
|
230
230
|
if (!text) throw Error("Cannot get account name");
|
|
231
231
|
return text;
|
|
232
232
|
}
|
|
233
|
-
async connectToNetwork(networkName, networkType = "
|
|
233
|
+
async connectToNetwork(networkName, networkType = "Popular") {
|
|
234
234
|
await this.page.getByTestId("sort-by-networks").click();
|
|
235
235
|
await this.page.getByRole("button", { name: networkType, exact: true }).click();
|
|
236
236
|
const additionalNetwork = this.page.getByTestId("additional-network-item").getByText(networkName);
|
|
@@ -240,7 +240,6 @@ var Metamask = class extends Wallet {
|
|
|
240
240
|
await this.page.getByTestId("confirmation-submit-button").click();
|
|
241
241
|
} catch (error) {
|
|
242
242
|
await this.page.getByText(networkName).click();
|
|
243
|
-
await this.page.getByTestId("modal-header-close-button").click();
|
|
244
243
|
}
|
|
245
244
|
}
|
|
246
245
|
async addCustomNetwork(settings) {
|