@lifi/widget 3.12.4 → 3.12.6-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/CHANGELOG.md +2 -0
  2. package/dist/esm/components/ActiveTransactions/ActiveTransactions.style.d.ts +2 -2
  3. package/dist/esm/components/AmountInput/AmountInput.js +7 -1
  4. package/dist/esm/components/AmountInput/AmountInput.js.map +1 -1
  5. package/dist/esm/components/AmountInput/AmountInput.style.d.ts +1 -1
  6. package/dist/esm/components/AmountInput/AmountInputAdornment.style.d.ts +1 -1
  7. package/dist/esm/components/AppContainer.d.ts +1 -1
  8. package/dist/esm/components/Avatar/Avatar.style.d.ts +1 -1
  9. package/dist/esm/components/Avatar/SmallAvatar.d.ts +1 -1
  10. package/dist/esm/components/ButtonTertiary.d.ts +1 -1
  11. package/dist/esm/components/Card/CardHeader.d.ts +1 -1
  12. package/dist/esm/components/Card/InputCard.d.ts +1 -1
  13. package/dist/esm/components/ContractComponent/ItemPrice.js +2 -1
  14. package/dist/esm/components/ContractComponent/ItemPrice.js.map +1 -1
  15. package/dist/esm/components/ContractComponent/NFT/NFT.js +2 -1
  16. package/dist/esm/components/ContractComponent/NFT/NFT.js.map +1 -1
  17. package/dist/esm/components/ContractComponent/NFT/NFT.style.d.ts +1 -1
  18. package/dist/esm/components/Header/Header.style.d.ts +2 -2
  19. package/dist/esm/components/Header/SettingsButton.style.d.ts +1 -1
  20. package/dist/esm/components/Header/WalletHeader.js +9 -6
  21. package/dist/esm/components/Header/WalletHeader.js.map +1 -1
  22. package/dist/esm/components/ListItem/ListItem.d.ts +1 -1
  23. package/dist/esm/components/PageContainer.d.ts +1 -1
  24. package/dist/esm/components/RouteCard/RouteCard.js +2 -2
  25. package/dist/esm/components/RouteCard/RouteCard.js.map +1 -1
  26. package/dist/esm/components/Routes/Routes.js +7 -2
  27. package/dist/esm/components/Routes/Routes.js.map +1 -1
  28. package/dist/esm/components/Routes/RoutesExpanded.js +7 -4
  29. package/dist/esm/components/Routes/RoutesExpanded.js.map +1 -1
  30. package/dist/esm/components/SelectTokenButton/SelectTokenButton.style.d.ts +1 -1
  31. package/dist/esm/components/SendToWallet/SendToWallet.style.d.ts +1 -1
  32. package/dist/esm/components/SendToWallet/SendToWalletButton.js +5 -2
  33. package/dist/esm/components/SendToWallet/SendToWalletButton.js.map +1 -1
  34. package/dist/esm/components/Skeleton/WidgetSkeleton.style.d.ts +3 -3
  35. package/dist/esm/components/Step/Step.js +2 -2
  36. package/dist/esm/components/Step/Step.js.map +1 -1
  37. package/dist/esm/components/StepActions/StepActions.style.d.ts +1 -1
  38. package/dist/esm/components/StepDivider/StepDivider.style.d.ts +1 -1
  39. package/dist/esm/components/Tabs/Tabs.style.d.ts +1 -1
  40. package/dist/esm/components/TokenList/TokenList.style.d.ts +1 -1
  41. package/dist/esm/config/version.d.ts +1 -1
  42. package/dist/esm/config/version.js +1 -1
  43. package/dist/esm/config/version.js.map +1 -1
  44. package/dist/esm/hooks/useGasRefuel.js +6 -9
  45. package/dist/esm/hooks/useGasRefuel.js.map +1 -1
  46. package/dist/esm/hooks/useIsContractAddress.js.map +1 -1
  47. package/dist/esm/hooks/useRoutes.js +6 -4
  48. package/dist/esm/hooks/useRoutes.js.map +1 -1
  49. package/dist/esm/i18n/en.json +5 -1
  50. package/dist/esm/index.d.ts +1 -1
  51. package/dist/esm/index.js +1 -1
  52. package/dist/esm/index.js.map +1 -1
  53. package/dist/esm/pages/MainPage/MainPage.js +2 -1
  54. package/dist/esm/pages/MainPage/MainPage.js.map +1 -1
  55. package/dist/esm/pages/MainPage/MainPage.style.d.ts +1 -1
  56. package/dist/esm/pages/SendToWallet/SendToWalletPage.style.d.ts +4 -4
  57. package/dist/esm/pages/SettingsPage/SettingsCard/SettingCard.style.d.ts +1 -1
  58. package/dist/esm/types/widget.d.ts +2 -1
  59. package/package.json +16 -16
  60. package/src/components/AmountInput/AmountInput.tsx +9 -1
  61. package/src/components/ContractComponent/ItemPrice.tsx +8 -3
  62. package/src/components/ContractComponent/NFT/NFT.tsx +8 -3
  63. package/src/components/Header/WalletHeader.tsx +9 -6
  64. package/src/components/RouteCard/RouteCard.tsx +2 -2
  65. package/src/components/Routes/Routes.tsx +10 -4
  66. package/src/components/Routes/RoutesExpanded.tsx +9 -4
  67. package/src/components/SendToWallet/SendToWalletButton.tsx +14 -4
  68. package/src/components/Step/Step.tsx +2 -2
  69. package/src/config/version.ts +1 -1
  70. package/src/hooks/useGasRefuel.ts +6 -18
  71. package/src/hooks/useIsContractAddress.ts +1 -0
  72. package/src/hooks/useRoutes.ts +6 -4
  73. package/src/i18n/en.json +5 -1
  74. package/src/i18n/i18next.d.ts +4 -8
  75. package/src/index.ts +1 -1
  76. package/src/pages/MainPage/MainPage.tsx +9 -8
  77. package/src/types/widget.ts +2 -1
  78. package/tsconfig.json +4 -2
@@ -1,5 +1,6 @@
1
1
  import type { ContractCall } from '@lifi/sdk'
2
2
  import { useEffect } from 'react'
3
+ import { formatUnits } from 'viem'
3
4
  import { useFieldActions } from '../../stores/form/useFieldActions.js'
4
5
  import type { TokenAmount } from '../../types/token.js'
5
6
  import { Token } from '../Token/Token.js'
@@ -19,9 +20,13 @@ export const ItemPrice: React.FC<ItemPriceProps> = ({
19
20
  if (token) {
20
21
  setFieldValue('toChain', token.chainId, { isTouched: true })
21
22
  setFieldValue('toToken', token.address, { isTouched: true })
22
- setFieldValue('toAmount', token.amount?.toString(), {
23
- isTouched: true,
24
- })
23
+ setFieldValue(
24
+ 'toAmount',
25
+ token.amount ? formatUnits(token.amount, token.decimals) : '',
26
+ {
27
+ isTouched: true,
28
+ }
29
+ )
25
30
  }
26
31
  if (contractCalls) {
27
32
  setFieldValue('contractCalls', contractCalls, {
@@ -1,4 +1,5 @@
1
1
  import { useEffect } from 'react'
2
+ import { formatUnits } from 'viem'
2
3
  import { useFieldActions } from '../../../stores/form/useFieldActions.js'
3
4
  import { NFTBase } from './NFTBase.js'
4
5
  import type { NFTProps } from './types.js'
@@ -18,9 +19,13 @@ export const NFT: React.FC<NFTProps> = ({
18
19
  if (token) {
19
20
  setFieldValue('toChain', token.chainId, { isTouched: true })
20
21
  setFieldValue('toToken', token.address, { isTouched: true })
21
- setFieldValue('toAmount', token.amount?.toString(), {
22
- isTouched: true,
23
- })
22
+ setFieldValue(
23
+ 'toAmount',
24
+ token.amount ? formatUnits(token.amount, token.decimals) : '',
25
+ {
26
+ isTouched: true,
27
+ }
28
+ )
24
29
  }
25
30
  if (contractCall) {
26
31
  setFieldValue('contractCalls', [contractCall], {
@@ -33,15 +33,18 @@ const useInternalWalletManagement = () => {
33
33
  const isWalletMenuHidden = hiddenUI?.includes(HiddenUI.WalletMenu)
34
34
 
35
35
  const shouldShowWalletMenu =
36
- !useExternalWalletProvidersOnly && !isSplitVariant && !isWalletMenuHidden
36
+ !useExternalWalletProvidersOnly && !isWalletMenuHidden
37
37
 
38
- return shouldShowWalletMenu
38
+ return {
39
+ shouldShowWalletMenu,
40
+ isSplitVariant,
41
+ }
39
42
  }
40
43
 
41
44
  export const WalletHeader: React.FC = () => {
42
- const shouldShowWalletMenu = useInternalWalletManagement()
45
+ const { shouldShowWalletMenu, isSplitVariant } = useInternalWalletManagement()
43
46
 
44
- return shouldShowWalletMenu ? (
47
+ return shouldShowWalletMenu && !isSplitVariant ? (
45
48
  <HeaderAppBar elevation={0} sx={{ justifyContent: 'flex-end' }}>
46
49
  <WalletMenuButton />
47
50
  </HeaderAppBar>
@@ -49,8 +52,8 @@ export const WalletHeader: React.FC = () => {
49
52
  }
50
53
 
51
54
  export const SplitWalletMenuButton: React.FC = () => {
52
- const shouldShowWalletMenu = useInternalWalletManagement()
53
- return shouldShowWalletMenu ? <WalletMenuButton /> : null
55
+ const { shouldShowWalletMenu, isSplitVariant } = useInternalWalletManagement()
56
+ return shouldShowWalletMenu && isSplitVariant ? <WalletMenuButton /> : null
54
57
  }
55
58
 
56
59
  export const WalletMenuButton: React.FC = () => {
@@ -26,7 +26,7 @@ export const RouteCard: React.FC<
26
26
  ...other
27
27
  }) => {
28
28
  const { t } = useTranslation()
29
- const { subvariant } = useWidgetConfig()
29
+ const { subvariant, subvariantOptions } = useWidgetConfig()
30
30
  const [cardExpanded, setCardExpanded] = useState(defaulExpanded)
31
31
 
32
32
  const handleExpand: MouseEventHandler<HTMLButtonElement> = (e) => {
@@ -35,7 +35,7 @@ export const RouteCard: React.FC<
35
35
  }
36
36
 
37
37
  const token: TokenAmount =
38
- subvariant === 'custom'
38
+ subvariant === 'custom' && subvariantOptions?.custom !== 'deposit'
39
39
  ? { ...route.fromToken, amount: BigInt(route.fromAmount) }
40
40
  : { ...route.toToken, amount: BigInt(route.toAmount) }
41
41
  const impactToken: TokenAmount | undefined =
@@ -16,7 +16,8 @@ import { RouteNotFoundCard } from '../RouteCard/RouteNotFoundCard.js'
16
16
  export const Routes: React.FC<CardProps> = (props) => {
17
17
  const { t } = useTranslation()
18
18
  const navigate = useNavigate()
19
- const { subvariant, useRecommendedRoute } = useWidgetConfig()
19
+ const { subvariant, subvariantOptions, useRecommendedRoute } =
20
+ useWidgetConfig()
20
21
  const {
21
22
  routes,
22
23
  isLoading,
@@ -42,11 +43,16 @@ export const Routes: React.FC<CardProps> = (props) => {
42
43
  const showAll =
43
44
  !onlyRecommendedRoute && !routeNotFound && (routes?.length ?? 0) > 1
44
45
 
46
+ const title =
47
+ subvariant === 'custom'
48
+ ? subvariantOptions?.custom === 'deposit'
49
+ ? t('header.receive')
50
+ : t('header.youPay')
51
+ : t('header.receive')
52
+
45
53
  return (
46
54
  <Card {...props}>
47
- <CardTitle>
48
- {subvariant === 'custom' ? t('header.youPay') : t('header.receive')}
49
- </CardTitle>
55
+ <CardTitle>{title}</CardTitle>
50
56
  <ProgressToNextUpdate
51
57
  updatedAt={dataUpdatedAt || new Date().getTime()}
52
58
  timeToUpdate={refetchTime}
@@ -64,7 +64,7 @@ export const RoutesExpanded = () => {
64
64
  export const RoutesExpandedElement = () => {
65
65
  const { t } = useTranslation()
66
66
  const navigate = useNavigate()
67
- const { subvariant } = useWidgetConfig()
67
+ const { subvariant, subvariantOptions } = useWidgetConfig()
68
68
  const routesRef = useRef<Route[]>()
69
69
  const emitter = useWidgetEvents()
70
70
  const routesActiveRef = useRef(false)
@@ -118,6 +118,13 @@ export const RoutesExpandedElement = () => {
118
118
  emitter.emit(WidgetEvent.WidgetExpanded, expanded)
119
119
  }, [emitter, expanded])
120
120
 
121
+ const title =
122
+ subvariant === 'custom'
123
+ ? subvariantOptions?.custom === 'deposit'
124
+ ? t('header.deposit')
125
+ : t('header.youPay')
126
+ : t('header.receive')
127
+
121
128
  return (
122
129
  <RoutesExpandedCollapse
123
130
  timeout={timeout.enter}
@@ -130,9 +137,7 @@ export const RoutesExpandedElement = () => {
130
137
  <ScrollableContainer>
131
138
  <Header>
132
139
  <Typography fontSize={18} fontWeight="700" flex={1} noWrap>
133
- {subvariant === 'custom'
134
- ? t('header.youPay')
135
- : t('header.receive')}
140
+ {title}
136
141
  </Typography>
137
142
  <ProgressToNextUpdate
138
143
  updatedAt={dataUpdatedAt || new Date().getTime()}
@@ -28,7 +28,14 @@ import { SendToWalletCardHeader } from './SendToWallet.style.js'
28
28
  export const SendToWalletButton: React.FC<CardProps> = (props) => {
29
29
  const { t } = useTranslation()
30
30
  const navigate = useNavigate()
31
- const { disabledUI, hiddenUI, toAddress, toAddresses } = useWidgetConfig()
31
+ const {
32
+ disabledUI,
33
+ hiddenUI,
34
+ toAddress,
35
+ toAddresses,
36
+ subvariant,
37
+ subvariantOptions,
38
+ } = useWidgetConfig()
32
39
  const { showSendToWallet } = useSendToWalletStore()
33
40
  const [toAddressFieldValue, toChainId, toTokenAddress] = useFieldValues(
34
41
  'toAddress',
@@ -114,6 +121,11 @@ export const SendToWalletButton: React.FC<CardProps> = (props) => {
114
121
  const isOpenCollapse =
115
122
  requiredToAddress || (showSendToWallet && !hiddenToAddress)
116
123
 
124
+ const title =
125
+ subvariant === 'custom' && subvariantOptions?.custom === 'deposit'
126
+ ? t('header.depositTo')
127
+ : t('header.sendToWallet')
128
+
117
129
  return (
118
130
  <Collapse
119
131
  timeout={collapseTransitionTime.current}
@@ -127,9 +139,7 @@ export const SendToWalletButton: React.FC<CardProps> = (props) => {
127
139
  onClick={disabledForChanges ? undefined : handleOnClick}
128
140
  sx={{ width: '100%', ...props.sx }}
129
141
  >
130
- <CardTitle required={requiredToAddress}>
131
- {t('header.sendToWallet')}
132
- </CardTitle>
142
+ <CardTitle required={requiredToAddress}>{title}</CardTitle>
133
143
  <Box display="flex" justifyContent="center" alignItems="center">
134
144
  <SendToWalletCardHeader
135
145
  avatar={
@@ -58,8 +58,8 @@ export const Step: React.FC<{
58
58
  default:
59
59
  return subvariant === 'custom'
60
60
  ? subvariantOptions?.custom === 'deposit'
61
- ? t('main.stepSwapAndDeposit')
62
- : t('main.stepSwapAndBuy')
61
+ ? t('main.stepDeposit')
62
+ : t('main.stepBuy')
63
63
  : t('main.stepSwap')
64
64
  }
65
65
  }
@@ -1,2 +1,2 @@
1
1
  export const name = '@lifi/widget'
2
- export const version = '3.12.4'
2
+ export const version = '3.12.6-beta.0'
@@ -19,29 +19,18 @@ export const useGasRefuel = () => {
19
19
  const toChain = getChainById(toChainId)
20
20
  const fromChain = getChainById(fromChainId)
21
21
 
22
- const { accounts } = useAccount()
22
+ const { account: toAccount } = useAccount({ chainType: toChain?.chainType })
23
23
 
24
- const fromAccount = accounts.find(
25
- (account) => account.chainType === fromChain?.chainType
26
- )
27
-
28
- const toAccount = accounts.find(
29
- (account) => account.chainType === toChain?.chainType
30
- )
24
+ const effectiveToAddress = toAddress || toAccount?.address
31
25
 
32
- const isFromContractAddress = useIsContractAddress(
33
- fromAccount?.address,
34
- fromChainId,
35
- fromAccount?.chainType
36
- )
37
26
  const isToContractAddress = useIsContractAddress(
38
- toAddress,
27
+ effectiveToAddress,
39
28
  toChainId,
40
29
  toChain?.chainType
41
30
  )
42
31
 
43
32
  const { token: destinationNativeToken } = useTokenBalance(
44
- toAddress || toAccount?.address,
33
+ effectiveToAddress,
45
34
  toChainId ? toChain?.nativeToken : undefined
46
35
  )
47
36
 
@@ -55,9 +44,8 @@ export const useGasRefuel = () => {
55
44
  const isChainTypeSatisfied =
56
45
  fromChain?.chainType !== toChain?.chainType ? Boolean(toAddress) : true
57
46
 
58
- const isToAddressSatisfied = isFromContractAddress
59
- ? toAddress && toAddress !== fromAccount?.address && !isToContractAddress
60
- : true
47
+ // We should not refuel to the contract address
48
+ const isToAddressSatisfied = effectiveToAddress && !isToContractAddress
61
49
 
62
50
  const enabled = useMemo(() => {
63
51
  if (
@@ -16,6 +16,7 @@ export const useIsContractAddress = (
16
16
  enabled: Boolean(chainType === ChainType.EVM && chainId),
17
17
  },
18
18
  })
19
+
19
20
  const isContractAddress = !!contractCode
20
21
  return isContractAddress
21
22
  }
@@ -177,6 +177,7 @@ export const useRoutes = ({ observableRoute }: RoutesProps = {}) => {
177
177
  signal,
178
178
  }) => {
179
179
  const fromAmount = parseUnits(fromTokenAmount, fromToken!.decimals)
180
+ const toAmount = parseUnits(toTokenAmount, toToken!.decimals)
180
181
  const formattedSlippage = Number.parseFloat(slippage) / 100
181
182
 
182
183
  const allowBridges = swapOnly
@@ -210,17 +211,18 @@ export const useRoutes = ({ observableRoute }: RoutesProps = {}) => {
210
211
  fromAddress,
211
212
  toAddress,
212
213
  fromAmount,
214
+ toAmount,
213
215
  slippage: formattedSlippage,
214
216
  })
215
217
 
216
- if (subvariant === 'custom' && contractCalls && toTokenAmount) {
218
+ if (subvariant === 'custom' && contractCalls && toAmount) {
217
219
  const contractCallQuote = await getContractCallsQuote(
218
220
  {
219
221
  // Contract calls are enabled only when fromAddress is set
220
222
  fromAddress: fromAddress as string,
221
223
  fromChain: fromChainId,
222
224
  fromToken: fromTokenAddress,
223
- toAmount: toTokenAmount,
225
+ toAmount: toAmount.toString(),
224
226
  toChain: toChainId,
225
227
  toToken: toTokenAddress,
226
228
  contractCalls,
@@ -265,8 +267,8 @@ export const useRoutes = ({ observableRoute }: RoutesProps = {}) => {
265
267
  fromAddress: contractCallQuote.action.fromAddress,
266
268
  toChainId: contractCallQuote.action.toChainId,
267
269
  toAmountUSD: contractCallQuote.estimate.toAmountUSD || '',
268
- toAmount: toTokenAmount,
269
- toAmountMin: toTokenAmount,
270
+ toAmount: contractCallQuote.estimate.toAmount,
271
+ toAmountMin: contractCallQuote.estimate.toAmountMin,
270
272
  toToken: toToken!,
271
273
  toAddress:
272
274
  contractCallQuote.action.toAddress ||
package/src/i18n/en.json CHANGED
@@ -52,12 +52,14 @@
52
52
  },
53
53
  "header": {
54
54
  "activeTransactions": "Active transactions",
55
+ "amount": "Amount",
55
56
  "bookmarkedWallets": "Bookmarked wallets",
56
57
  "bridge": "Bridge",
57
58
  "checkout": "Checkout",
58
59
  "checkoutDetails": "Checkout details",
59
60
  "deposit": "Deposit",
60
61
  "depositDetails": "Deposit details",
62
+ "depositTo": "Deposit to",
61
63
  "exchange": "Exchange",
62
64
  "from": "Exchange from",
63
65
  "gas": "Gas",
@@ -265,13 +267,15 @@
265
267
  "stepBridge": "Bridge",
266
268
  "stepBridgeAndBuy": "Bridge and buy",
267
269
  "stepBridgeAndDeposit": "Bridge and deposit",
270
+ "stepBuy": "Buy",
271
+ "stepDeposit": "Deposit",
268
272
  "stepDetails": "{{tool}} via LI.FI",
269
273
  "stepSwap": "Swap",
270
274
  "stepSwapAndBridge": "Swap and bridge",
271
275
  "stepSwapAndBuy": "Swap and buy",
272
276
  "stepSwapAndDeposit": "Swap and deposit",
273
- "transferId": "Transfer ID",
274
277
  "swapStepDetails": "Swap on {{chain}} via {{tool}}",
278
+ "transferId": "Transfer ID",
275
279
  "tags": {
276
280
  "cheapest": "Best Return",
277
281
  "fastest": "Fastest"
@@ -2,13 +2,9 @@ import en from './en.json' with { type: 'json' }
2
2
 
3
3
  const defaultResource = { translation: en }
4
4
 
5
- declare global {
6
- namespace GeneralTranslation {
7
- declare module 'i18next' {
8
- interface CustomTypeOptions {
9
- defaultNS: 'translation'
10
- resources: typeof defaultResource
11
- }
12
- }
5
+ declare module 'i18next' {
6
+ interface CustomTypeOptions {
7
+ defaultNS: 'translation'
8
+ resources: typeof defaultResource
13
9
  }
14
10
  }
package/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export type * from '@lifi/sdk'
2
- export { ChainType, ChainId } from '@lifi/sdk'
2
+ export { ChainType, ChainId, CoinKey } from '@lifi/sdk'
3
3
  export { App as LiFiWidget } from './App.js'
4
4
  export type { WidgetDrawer } from './AppDrawer.js'
5
5
  export * from './components/ContractComponent/ItemPrice.js'
@@ -31,22 +31,23 @@ export const MainPage: React.FC = () => {
31
31
  : subvariant === 'refuel'
32
32
  ? t('header.gas')
33
33
  : t('header.exchange')
34
+
34
35
  useHeader(title)
35
36
 
37
+ const marginSx = { marginBottom: 2 }
38
+
36
39
  return (
37
40
  <PageContainer>
38
- <ActiveTransactions sx={{ marginBottom: 2 }} />
41
+ <ActiveTransactions sx={marginSx} />
39
42
  {custom ? (
40
- <ContractComponent sx={{ marginBottom: 2 }}>
41
- {contractComponent}
42
- </ContractComponent>
43
+ <ContractComponent sx={marginSx}>{contractComponent}</ContractComponent>
43
44
  ) : null}
44
45
  <SelectChainAndToken mb={2} />
45
- {!custom ? (
46
- <AmountInput formType="from" sx={{ marginBottom: 2 }} />
46
+ {!custom || subvariantOptions?.custom === 'deposit' ? (
47
+ <AmountInput formType="from" sx={marginSx} />
47
48
  ) : null}
48
- {!wideVariant ? <Routes sx={{ marginBottom: 2 }} /> : null}
49
- <SendToWalletButton sx={{ marginBottom: 2 }} />
49
+ {!wideVariant ? <Routes sx={marginSx} /> : null}
50
+ <SendToWalletButton sx={marginSx} />
50
51
  <GasRefuelMessage mb={2} />
51
52
  <MainMessages mb={2} />
52
53
  <Box display="flex" mb={showPoweredBy ? 1 : 3} gap={1.5}>
@@ -141,7 +141,8 @@ export interface CalculateFeeParams {
141
141
  toTokenAddress: string
142
142
  fromAddress?: string
143
143
  toAddress?: string
144
- fromAmount: bigint
144
+ fromAmount?: bigint
145
+ toAmount?: bigint
145
146
  slippage: number
146
147
  }
147
148
 
package/tsconfig.json CHANGED
@@ -7,7 +7,9 @@
7
7
  "outDir": "dist/esm",
8
8
  "rootDir": "./src",
9
9
  "module": "NodeNext",
10
- "moduleResolution": "NodeNext"
10
+ "moduleResolution": "NodeNext",
11
+ "skipLibCheck": true
11
12
  },
12
- "include": ["./src/**/*", "./src/**/*.json"]
13
+ "include": ["./src/**/*", "./src/**/*.json"],
14
+ "references": [{ "path": "../wallet-management" }]
13
15
  }