Skip to content

Commit fdf7c1d

Browse files
authored
Merge pull request #369 from blocknative/develop
Release 1.9.5
2 parents 470ab2c + 16f1084 commit fdf7c1d

File tree

5 files changed

+15
-11
lines changed

5 files changed

+15
-11
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bnc-onboard",
3-
"version": "1.9.4",
3+
"version": "1.9.5",
44
"description": "Onboard users to web3 by allowing them to select a wallet, get that wallet ready to transact and have access to synced wallet state.",
55
"keywords": [
66
"ethereum",

src/elements/Button.svelte

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,10 @@
3939

4040
<button
4141
on:click={onclick}
42+
class="bn-onboard-prepare-button"
4243
class:bn-onboard-prepare-button-right={position === 'right'}
4344
class:bn-onboard-prepare-button-left={position === 'left'}
45+
class:bn-onboard-prepare-button-center={position !== 'left' && position !== 'right'}
4446
class:bn-onboard-dark-mode-link={$app.darkMode}
4547
class:bn-onboard-dark-mode-background-hover={$app.darkMode}>
4648
<slot />

src/interfaces.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,12 @@ interface TorusVerifierStatus {
210210
}
211211

212212
export interface AuthereumOptions extends CommonWalletOptions {
213+
apiKey?: string
213214
disableNotifications?: boolean
215+
rpcUri?: string
216+
webUri?: string
217+
xsUri?: string
218+
blockedPopupRedirect?: string
214219
}
215220

216221
export interface WalletLinkOptions extends CommonWalletOptions {

src/modules/select/wallets/authereum.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,7 @@ import { WalletModule, AuthereumOptions } from '../../../interfaces'
55
function authereum(
66
options: AuthereumOptions & { networkId: number }
77
): WalletModule {
8-
const {
9-
networkId,
10-
preferred,
11-
label,
12-
iconSrc,
13-
svg,
14-
disableNotifications
15-
} = options
8+
const { networkId, preferred, label, iconSrc, svg, ...otherOptions } = options
169

1710
return {
1811
name: label || 'Authereum',
@@ -22,7 +15,7 @@ function authereum(
2215
const { default: Authereum } = await import('authereum')
2316
const instance = new Authereum({
2417
networkName: networkName(networkId),
25-
disableNotifications: disableNotifications // default: false
18+
...otherOptions
2619
})
2720

2821
const provider = instance.getProvider()

src/validation.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,11 @@ export function validateWalletInit(
614614
'appName',
615615
'appLogoUrl',
616616
'enabledVerifiers',
617-
'disableNotifications'
617+
'disableNotifications',
618+
'rpcUri',
619+
'webUri',
620+
'xsUri',
621+
'blockedPopupRedirect'
618622
],
619623
'walletInitObject'
620624
)

0 commit comments

Comments
 (0)