From fea350266921f9d7db0e58b93caa191486a35262 Mon Sep 17 00:00:00 2001 From: "ignacio.pena@coinfabrik.com" Date: Wed, 4 Sep 2024 17:35:01 -0300 Subject: [PATCH] fixed imports --- README.md | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index d689655..33d17c5 100644 --- a/README.md +++ b/README.md @@ -78,9 +78,12 @@ const xlinkSdk = new XLinkSDK(); ``` 1. Bridge from Stacks ```typescript -import { BridgeInfoFromStacksInput } from '@xlink-network/xlink-sdk/xlinkSdkUtils/bridgeInfoFromStacks'; -import { BridgeFromStacksInput } from '@xlink-network/xlink-sdk/xlinkSdkUtils/bridgeFromStacks'; -import { KnownChainId, KnownTokenId } from '@xlink-network/xlink-sdk/utils/types/knownIds'; +import{ + BridgeInfoFromStacksInput, + BridgeFromStacksInput, + KnownChainId, + KnownTokenId, +} from '@xlink-network/xlink-sdk'; // Get bridge info const bridgeInfo = await xlinkSdk.bridgeInfoFromStacks({ @@ -122,9 +125,12 @@ console.log("Transaction ID:", result.txid); 2. Bridge from EVM ```typescript -import { BridgeInfoFromEVMInput } from '@xlink-network/xlink-sdk/xlinkSdkUtils/bridgeInfoFromEVM'; -import { BridgeFromEVMInput } from '@xlink-network/xlink-sdk/xlinkSdkUtils/bridgeFromEVM'; -import { KnownChainId, KnownTokenId } from '@xlink-network/xlink-sdk/utils/types/knownIds'; +import { + BridgeInfoFromEVMInput, + BridgeFromEVMInput, + KnownChainId, + KnownTokenId, +} from '@xlink-network/xlink-sdk'; // Get bridge info const bridgeInfo = await xlinkSdk.bridgeInfoFromEVM({ @@ -151,9 +157,12 @@ console.log("Transaction ID:", result.txHash); 3. Bridge from Bitcoin ```typescript -import { BridgeInfoFromBitcoinInput } from '@xlink-network/xlink-sdk/xlinkSdkUtils/bridgeInfoFromBitcoin'; -import { BridgeFromBitcoinInput } from '@xlink-network/xlink-sdk/xlinkSdkUtils/bridgeFromBitcoin'; -import { KnownChainId, KnownTokenId } from '@xlink-network/xlink-sdk/utils/types/knownIds'; +import { + BridgeInfoFromBitcoinInput, + BridgeFromBitcoinInput, + KnownChainId, + KnownTokenId, +} from '@xlink-network/xlink-sdk'; // Get bridge info const bridgeInfo = await xlinkSdk.bridgeInfoFromBitcoin({