Skip to content

Commit 2993732

Browse files
committed
Merge branch 'release/2.1.0' of blocknative.github.com:blocknative/onboard into release/2.1.0
2 parents c229884 + c4d0ff9 commit 2993732

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"dependencies": {
4444
"@web3-onboard/common": "^2.1.2",
4545
"bignumber.js": "^9.0.0",
46-
"bnc-sdk": "^4.4.0",
46+
"bnc-sdk": "^4.4.1",
4747
"bowser": "^2.11.0",
4848
"ethers": "5.5.3",
4949
"eventemitter3": "^4.0.7",

packages/core/src/services.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import type { MultichainSDK } from 'bnc-sdk'
1+
import type { MultiChain } from 'bnc-sdk'
22
import { configuration } from './configuration'
33
import { handleTransactionUpdates } from './notify'
44

5-
let blocknativeSdk: MultichainSDK
5+
let blocknativeSdk: MultiChain
66

77
/**
88
*
99
* @returns SDK if apikey
1010
*/
11-
export async function getBlocknativeSdk(): Promise<MultichainSDK | null> {
11+
export async function getBlocknativeSdk(): Promise<MultiChain | null> {
1212
const { apiKey } = configuration
1313

1414
if (!apiKey) return null
1515

1616
if (!blocknativeSdk) {
17-
const { MultichainSDK } = await import('bnc-sdk')
18-
blocknativeSdk = new MultichainSDK({
17+
const { default: Blocknative } = await import('bnc-sdk')
18+
blocknativeSdk = Blocknative.multichain({
1919
apiKey: configuration.apiKey
2020
})
2121

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3343,10 +3343,10 @@ bnb-javascript-sdk-nobroadcast@^2.16.14:
33433343
uuid "^3.3.2"
33443344
websocket-stream "^5.5.0"
33453345

3346-
bnc-sdk@^4.4.0:
3347-
version "4.4.0"
3348-
resolved "https://registry.yarnpkg.com/bnc-sdk/-/bnc-sdk-4.4.0.tgz#2468fbf64a51b8dc29c3ecb73eb76cd496c279c5"
3349-
integrity sha512-yx6Gve+UMB1HUaMwPtZpnmKEvkF/Md3npO6z5krtbdZxJdpm71II2d4GskmPOzZ/tXD7LymXpPVbbBsov+T+Yg==
3346+
bnc-sdk@^4.4.1:
3347+
version "4.4.1"
3348+
resolved "https://registry.yarnpkg.com/bnc-sdk/-/bnc-sdk-4.4.1.tgz#dc9dda2962eb28a5deafe8ac0f9305b63fa38ac4"
3349+
integrity sha512-S8urB7JPqTo+BGiAJJ9g7/NqMspzXXYhWlxFXOKy6YjyVEDBMqZ1j4aVLQaoPkaIPRV249wnu+tb4kuWbsKk3A==
33503350
dependencies:
33513351
crypto-es "^1.2.2"
33523352
nanoid "^3.3.1"

0 commit comments

Comments
 (0)