File tree Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Expand file tree Collapse file tree 3 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 43
43
"dependencies" : {
44
44
"@web3-onboard/common" : " ^2.1.2" ,
45
45
"bignumber.js" : " ^9.0.0" ,
46
- "bnc-sdk" : " ^4.4.0 " ,
46
+ "bnc-sdk" : " ^4.4.1 " ,
47
47
"bowser" : " ^2.11.0" ,
48
48
"ethers" : " 5.5.3" ,
49
49
"eventemitter3" : " ^4.0.7" ,
Original file line number Diff line number Diff line change 1
- import type { MultichainSDK } from 'bnc-sdk'
1
+ import type { MultiChain } from 'bnc-sdk'
2
2
import { configuration } from './configuration'
3
3
import { handleTransactionUpdates } from './notify'
4
4
5
- let blocknativeSdk : MultichainSDK
5
+ let blocknativeSdk : MultiChain
6
6
7
7
/**
8
8
*
9
9
* @returns SDK if apikey
10
10
*/
11
- export async function getBlocknativeSdk ( ) : Promise < MultichainSDK | null > {
11
+ export async function getBlocknativeSdk ( ) : Promise < MultiChain | null > {
12
12
const { apiKey } = configuration
13
13
14
14
if ( ! apiKey ) return null
15
15
16
16
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 ( {
19
19
apiKey : configuration . apiKey
20
20
} )
21
21
Original file line number Diff line number Diff line change @@ -3343,10 +3343,10 @@ bnb-javascript-sdk-nobroadcast@^2.16.14:
3343
3343
uuid "^3.3.2"
3344
3344
websocket-stream "^5.5.0"
3345
3345
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 ==
3350
3350
dependencies :
3351
3351
crypto-es "^1.2.2"
3352
3352
nanoid "^3.3.1"
You can’t perform that action at this time.
0 commit comments