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 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" ,
Original file line number Diff line number Diff line change 1- import type { MultichainSDK } from 'bnc-sdk'
1+ import type { MultiChain } from 'bnc-sdk'
22import { configuration } from './configuration'
33import { 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
Original file line number Diff line number Diff 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"
You can’t perform that action at this time.
0 commit comments