Skip to content

Commit

Permalink
fix: re-export BaseTransaction
Browse files Browse the repository at this point in the history
  • Loading branch information
schmanu committed Mar 28, 2024
1 parent 4ac0c91 commit ed8e37d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/components/TokenLocking/LockTokenWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,8 @@ import { CHAIN_START_TIMESTAMPS, UNLIMITED_APPROVAL_AMOUNT } from '@/config/cons
import { getCurrentDays } from '@/utils/date'
import { BoostBreakdown } from './BoostBreakdown'
import MilesReceipt from '@/components/TokenLocking/MilesReceipt'
import { useTxSender } from '@/hooks/useTxSender'
import { BaseTransaction, useTxSender } from '@/hooks/useTxSender'
import { useSafeTokenLockingAllowance } from '@/hooks/useSafeTokenBalance'
import type { BaseTransaction } from '@safe-global/safe-apps-sdk/src/types'

export const LockTokenWidget = ({ safeBalance }: { safeBalance: BigNumberish | undefined }) => {
const [receiptOpen, setReceiptOpen] = useState<boolean>(false)
Expand Down
5 changes: 4 additions & 1 deletion src/hooks/useTxSender.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
import { useSafeAppsSDK } from '@safe-global/safe-apps-react-sdk'
import { useIsSafeApp } from './useIsSafeApp'
import { useWallet } from './useWallet'
import type { BaseTransaction } from '@safe-global/safe-apps-sdk/src/types'

import SafeAppsSDK from '@safe-global/safe-apps-sdk'

export type BaseTransaction = Parameters<SafeAppsSDK['txs']['send']>[0]['txs'][number]

export type TxSender = {
isBatchingSupported: boolean
Expand Down
2 changes: 1 addition & 1 deletion src/utils/claim.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { BigNumber } from 'ethers'
import type { BaseTransaction } from '@safe-global/safe-apps-sdk/src/types'

import { getVestingTypes } from '@/utils/vesting'
import { getAirdropInterface } from '@/services/contracts/Airdrop'
import { splitAirdropAmounts } from '@/utils/airdrop'
import type { Vesting } from '@/hooks/useSafeTokenAllocation'
import { BaseTransaction } from '@/hooks/useTxSender'

const airdropInterface = getAirdropInterface()

Expand Down

0 comments on commit ed8e37d

Please sign in to comment.