Releases: airgap-it/beacon-sdk
Releases · airgap-it/beacon-sdk
v4.0.2
4.0.1 (2023-04-25)
Features
- internal: Update WalletConnect dependencies
Fixes
- UI: Add white border around QR code in dark mode
v4.0.1
4.0.1 (2023-04-21)
Features
- Tezos: Add Nairobinet
- WalletConnect: If no public key is shared by the wallet, an error is thrown
- internal: Update WalletConnect dependencies
Fixes
- UI: Font styling is no longer overwritten by dApp styles
- internal: Fix
preferredNetwork
preference with Kukai Wallet - internal: Remove unused dependencies
- internal: Change build settings of beacon-ui package to improve compatibility with different frameworks
v4.0.0
4.0.0 (2023-04-04)
Features
- WalletConnect: Support for WalletConnect 2 has been added. This means that wallets that support Tezos and WalletConnect 2 (eg. TrustWallet) can easily add support for Tezos dApps. Read more about the supported WalletConnect 2 messages here: https://docs.walletconnect.com/2.0/advanced/rpc-reference/tezos-rpc. WalletConnect 2 support works out of the box, but some options can be customised by dApps.
const client = getDAppClientInstance({
name: 'Name of the dApp',
walletConnectOptions: {
projectId: '97f804b46f0db632c52af0556586a5f3', // Project ID can be customised
relayUrl: 'wss://relay.walletconnect.com' // WC2 relayUrl can be customised
}
})
- TrustWallet: Support for TrustWallet has been added
- UI: Beacon now includes a completely new Pairing UI. The new modal provides a better onboarding experience for new users, as certain wallets are highlighted and the setup of wallets is explained.
The list of the new UI is opinionated, but it can be adjusted by the dApps to include other wallets. The following code can be used to adjust the highlighted wallets:
const client = getDAppClientInstance({
name: 'Name of the dApp',
featuredWallets: ['airgap', 'kukai', 'temple', 'naan']
})
- Analytics: DApps can now choose to pass an analytics instance to the beacon-sdk, where some events like clicks in the UI modal will be tracked. This feature is turned off by default and has to be explicitly enabled by dApps!
export class MyAnalytics implements AnalyticsInterface {
track(
trigger: 'click' | 'event',
section: string,
label: string,
data?: Record<string, any>
) {
console.log('##### TRACK', trigger, section, label, data)
}
}
const client = getDAppClientInstance({
name: 'Name of the dApp',
analytics: new MyAnalytics()
})
- Naan: Naan logo updated
- SDK: Changed from browserify to webpack
v3.3.4
3.3.4 (2023-02-16)
Features
- Internal: Update build environment
Fixes
- Pairing: Remove Alert Overflow
v3.3.3
3.3.3 (2023-02-09)
Features
- Wallet: Add Umami Mobile
- Wallet: Add Atomex Mobile
- Wallet: Update Naan Metadata
- Wallet: Update AltMe Logo
- Internal: Add support for svg logos
- Internal: Use NPM Workspaces
v3.3.2
3.3.2 (2023-01-10)
Features
- Wallet: Add Atomex Wallet
- Tezos: Add Limanet and Mumbainet
v3.3.1
3.3.1 (2022-12-30)
Features
- Wallet: Add Altme Wallet
- Wallet: Add Infinity Wallet
- Wallet: Update Autonomy logo
- Wallet: Update AirGap logo
Fixes
- Storage: Improve typescript typings
v3.3.0
3.3.0 (2022-10-13)
Features
- SDK: Multi Region Support: The Beacon SDK now supports multiple server regions. With this feature, the SDK will always try to select the server closest to the user to improve performance. (Note: There is currently only one region being used. This feature will only have an impact once more servers in different regions are being added.)
- Tezos: Human Readable Contract Errors:
Sometimes when trying to do a contract call, the contract returns an error. Those errors are often numbers or short strings that tell developers what is wrong, but they are not useful to users. In this update, we added a way to add a simple mapping of error codes to a short description, which will be displayed to the user.
new DAppClient({
errorMessages: {
KT1CpeSQKdkhWi4pinYcseCFKmDhs5M74BkU: {
'AUC_ID_ALREADY_IN_USE': 'This auction ID is already in use. Please choose another one and try again.'
}
}
})
- SDK: Notification Support: The Beacon SDK now supports sending notifications to wallets. This feature is brand new and will require wallets to add support for it. So at the moment, the feature cannot be used, besides for testing on the side of wallet developers. Any wallet that is interested in adding support for notifications through beacon should reach out to us. We're still in the process of writing a proper documentation.
v3.2.0
3.2.0 (2022-09-21)
Features
- SDK: Replace
libsodium
with@stablelib
. This change will reduce the bundle size and solve build issues related tolibsodium
.
Fixes
- Matrix: Prepare for an API change in newer synapse versions
v3.1.4
3.1.4 (2022-09-01)
Features
- API: Add
getDAppClientInstance(config)
method. This method should be used instead ofnew DAppClient(config)
. The advantage of using the new method is that it makes sure there is only one instance created. If it is called multiple times, the same same (cached) instance is returned. This is important because creating multiple client instances can lead to problems. - Tezos: The
TezBlockExplorer
was replaced byTzktExplorer
because tezblock.io now redirects to tzkt.io. - Tezos: Update Autonomy wallet metadata
Fixes
- Tezos: The value in the TezosNetworks enum for "dailynet" was wrong.