Skip to content

Commit 3c70fd1

Browse files
authored
Merge pull request #164 from blocknative/feature/wallet-url
Add url to wallet object. Closes #162
2 parents 1640b29 + ef652e6 commit 3c70fd1

File tree

6 files changed

+6
-0
lines changed

6 files changed

+6
-0
lines changed

src/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ export interface WalletModule {
7575
instance?: any
7676
}>
7777
link?: string
78+
url?: string
7879
installMessage?: (wallets: {
7980
currentWallet: string | undefined
8081
selectedWallet: string

src/modules/select/wallets/authereum.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ function authereum(options: {
5151
},
5252
desktop: true,
5353
mobile: true,
54+
url: 'https://accounts.authereum.org/',
5455
preferred
5556
}
5657
}

src/modules/select/wallets/portis.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ function portis(options: SdkWalletOptions): WalletModule {
6464
},
6565
desktop: true,
6666
mobile: true,
67+
url: 'https://wallet.portis.io/',
6768
preferred
6869
}
6970
}

src/modules/select/wallets/squarelink.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ function squarelink(options: SdkWalletOptions): WalletModule {
6969
},
7070
desktop: true,
7171
mobile: true,
72+
url: 'https://app.squarelink.com/',
7273
preferred
7374
}
7475
}

src/stores.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export const wallet: WritableStore = writable({
4949
provider: null,
5050
connect: null,
5151
instance: null,
52+
url: null,
5253
loading: null
5354
})
5455

src/views/WalletSelect.svelte

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@
148148
wallet.set({
149149
provider,
150150
instance,
151+
url: module.url,
151152
name: module.name,
152153
connect: selectedWalletInterface.connect,
153154
loading: selectedWalletInterface.loading

0 commit comments

Comments
 (0)