From 4fd666fb8fd95cf93e9b31868608eda748d94634 Mon Sep 17 00:00:00 2001 From: Sero <69639595+Seroxdesign@users.noreply.github.com> Date: Wed, 12 Jun 2024 12:01:43 -0400 Subject: [PATCH] more set up --- wallets/keplr/src/KeplrWallet.ts | 21 +++++++++++++++++++-- wallets/keplr/src/utils/constants.ts | 5 +++++ 2 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 wallets/keplr/src/utils/constants.ts diff --git a/wallets/keplr/src/KeplrWallet.ts b/wallets/keplr/src/KeplrWallet.ts index b6e47aba1..6f23cb3d1 100644 --- a/wallets/keplr/src/KeplrWallet.ts +++ b/wallets/keplr/src/KeplrWallet.ts @@ -4,9 +4,26 @@ export type Keplr = 'keplr' export class KeplrWallet { seedPhrase = '' wallet: Keplr = 'keplr' - - constructor(readonly page: Page) { + retries: number + browser: any + mainWindow: any + keplrWindow: any + keplrNotification: any + activeTabName: string + extensionData: any + + + constructor( + readonly page: Page + ) { this.page = page + this.browser = undefined + this.mainWindow = undefined + this.keplrWindow = undefined + this.keplrNotification = undefined + this.activeTabName = undefined + this.extensionData = undefined + this.retries = 0 } /** diff --git a/wallets/keplr/src/utils/constants.ts b/wallets/keplr/src/utils/constants.ts new file mode 100644 index 000000000..790974a42 --- /dev/null +++ b/wallets/keplr/src/utils/constants.ts @@ -0,0 +1,5 @@ +export const SEED_PHRASE = 'seed phrase' +export const PASSWORD = 'password' +export const NO_CONTEXT = 'No context found' +export const NO_PAGE = 'No page found' +export const MISSING_INIT = 'Keplr not initialized' \ No newline at end of file