Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.44 KB

v2.md

File metadata and controls

47 lines (31 loc) · 1.44 KB

Upgrading to 2.0

Breaking Changes

Babylon Gateway SDK

The Gateway SDK is no longer exposed by dApp toolkit.

import { GatewayApiClient } from '@radixdlt/babylon-gateway-api-sdk'

const dAppToolkit = RadixDappToolkit({
  dAppDefinitionAddress:
    'account_rdx12y7md4spfq5qy7e3mfjpa52937uvkxf0nmydsu5wydkkxw3qx6nghn',
  networkId: RadixNetwork.Mainnet,
  applicationName: 'Radix Web3 dApp',
  applicationVersion: '1.0.0',
})

const gatewayApi = GatewayApiClient.initialize(
  dAppToolkit.gatewayApi.clientConfig,
)

Detailed installation guide can be found in @radixdlt/babylon-gateway-api-sdk

Logger

createLogger has been renamed to Logger

import { Logger } from '@radixdlt/radix-dapp-toolkit'

onUpdateSharedData -> onUpdateSharedAccounts

User can only update shared accounts during single login session. Persona data will no longer be requested from wallet. Because of that change callback has been renamed.

Monorepo

Following npm packages are no longer released independently

All future development will proceed in the Radix dApp Toolkit.