Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
5ce23c5
[WIP] Add Buy with Credit Card UI
MananTank Apr 17, 2024
02c836a
add changeset
MananTank Apr 17, 2024
863051d
add confirmation screen
MananTank Apr 17, 2024
ad956e0
minor updates
MananTank Apr 18, 2024
1b15499
add currency selection
MananTank Apr 18, 2024
92a969a
add status stuff
MananTank Apr 18, 2024
bfee65c
update ui
MananTank Apr 18, 2024
c65f932
Merge branch 'main' into mnn/buy-with-credit-card
MananTank Apr 18, 2024
7d830fd
add allow to iframe
IDubuque Apr 19, 2024
8d7f848
Merge branch 'main' into mnn/buy-with-credit-card
MananTank Apr 22, 2024
1b246aa
Fix build
MananTank Apr 22, 2024
e8f8594
Fix Kado iframe theme, rename history component
MananTank Apr 22, 2024
0d4c6fa
Show both crypto+fiat history
MananTank Apr 22, 2024
32fe835
fix build, update status
MananTank Apr 22, 2024
f49a09c
Fix
MananTank Apr 22, 2024
a85146c
rename to intentId
MananTank Apr 22, 2024
6b2d424
rename transactionId to intentId
MananTank Apr 22, 2024
f876188
Fix fiat status screen
MananTank Apr 23, 2024
11e14e5
freeze the fiat quote
MananTank Apr 23, 2024
69bf6a8
updating BuyWithFiat status + cleanup
IDubuque Apr 24, 2024
193a4de
update exports
IDubuque Apr 24, 2024
c5cd694
update paths
IDubuque Apr 24, 2024
deb0deb
update imports
IDubuque Apr 24, 2024
6fc81db
add getPostOnRampQuote
IDubuque Apr 24, 2024
ad8a728
update docs
IDubuque Apr 24, 2024
7c4cc97
cleanup and fix build error
MananTank Apr 24, 2024
71559dd
Fix wrong assumptions
MananTank Apr 25, 2024
5fcf3d8
update
MananTank Apr 25, 2024
3cf6d1c
Add post onramp swap in tx history
MananTank Apr 25, 2024
a8c8bf9
Add post-on-ramp in fiat flow
MananTank Apr 25, 2024
d807e42
switch network button in swap confirmation screen
MananTank Apr 26, 2024
36f3e8c
Update
MananTank Apr 26, 2024
41648d0
cleanup
MananTank Apr 26, 2024
15ec403
opne onramp popup
MananTank Apr 26, 2024
c488d26
fix popup
MananTank Apr 26, 2024
23b4c16
Merge branch 'main' into mnn/buy-with-credit-card
MananTank Apr 29, 2024
27eeaf3
Fix lint
MananTank Apr 29, 2024
6a8354f
Fix icon alignment in Swap status screen
MananTank Apr 29, 2024
74b32d7
Update Fiat fees UI
MananTank Apr 29, 2024
a063d17
add isTestMode queryParam to buywithfiat
IDubuque Apr 29, 2024
500499a
Merge branch 'mnn/buy-with-credit-card' of https://github.com/thirdwe…
IDubuque Apr 29, 2024
d3d0c52
add provider
IDubuque Apr 29, 2024
3d28689
add options to disable buy-with-crypto or buy-with-fiat
MananTank Apr 29, 2024
67cf87d
add PayEmbed
MananTank Apr 29, 2024
fc71112
Update Fiat steps UI
MananTank Apr 29, 2024
94178a3
Add step bar
MananTank Apr 29, 2024
dba620b
step fixes
MananTank Apr 29, 2024
8ae58fc
Merge branch 'main' into mnn/buy-with-credit-card
MananTank Apr 29, 2024
a8c9b62
Fix PayEmbed prop types
MananTank Apr 29, 2024
2848fbf
UI fixes
MananTank Apr 29, 2024
c12688d
add fetching quote state in button
MananTank Apr 29, 2024
b21c6d5
Fix PayEmbed other screens not having background
MananTank Apr 29, 2024
a86028b
Fix BuyTxHistory back button
MananTank Apr 29, 2024
7054024
UI tweaks/cleanup
MananTank Apr 30, 2024
4c2bfe0
code cleanup and fixes
MananTank Apr 30, 2024
85cf860
Rename SwapScreen to BuyScreen
MananTank Apr 30, 2024
e56e151
more cleanup
MananTank Apr 30, 2024
19698b7
Add View Funds button in details modal
MananTank Apr 30, 2024
71fc112
more fixes, show step 2
MananTank Apr 30, 2024
b5c086d
fix chevron color
MananTank Apr 30, 2024
f1930be
Show step 2 UI in TX history UI
MananTank Apr 30, 2024
fa33941
add intentid to post onramp quote
IDubuque Apr 30, 2024
782826b
add fromCurrencyWithFees
IDubuque Apr 30, 2024
30e76ea
Improved Fee and breakdown
MananTank Apr 30, 2024
a48b7e9
Fix alignment issue
MananTank Apr 30, 2024
475b20f
tx history cleanup
MananTank May 1, 2024
e28bd35
remove testing address
MananTank May 1, 2024
227c70c
Add recent transactions in buy screen
MananTank May 1, 2024
392e583
Improved TX history
MananTank May 1, 2024
436f5ac
wallet balance invadation, inApp wallet fix
MananTank May 1, 2024
29ec7b0
Add name of step next to step number
MananTank May 1, 2024
0201b92
lazy import buy screen
MananTank May 1, 2024
794337a
allow configuring default token+chain selection in buy screen
MananTank May 1, 2024
f982322
Fix buy-with-crypto status type, ui tweaks
MananTank May 2, 2024
1839880
fix BuyWithCryptoStatus type
MananTank May 2, 2024
ae8aa19
fix build
MananTank May 2, 2024
080c0e2
code cleanup - postonramp fiat status screen
MananTank May 2, 2024
d249b44
Improve Buy Complete screen for fiat noswap flow
MananTank May 2, 2024
b3f6985
Fix legacy react build
MananTank May 2, 2024
8eee83d
Fix build
MananTank May 2, 2024
6cd80f8
UI tweak for swap status screen
MananTank May 2, 2024
5e706de
spacing tweaks in postonramp screen
MananTank May 2, 2024
d21460b
more ui tweaks
MananTank May 2, 2024
4f7f410
Merge branch 'main' into mnn/buy-with-credit-card
MananTank May 2, 2024
f401e6b
Fix conflict
MananTank May 2, 2024
e6e2055
show amount with fees in 2 step ui
MananTank May 2, 2024
2b6e3ce
Fix formatting in fiatSteps
MananTank May 2, 2024
fd6522e
Fix getPostOnRampQuote
MananTank May 2, 2024
337eeae
fix lint
MananTank May 2, 2024
4d9ec7d
add biome as default formatter for ts
MananTank May 2, 2024
e29ec9b
close modal on done btn click
MananTank May 2, 2024
aca8e03
poll for status in tx details
MananTank May 2, 2024
79e9576
added CRYPTO_SWAP_FALLBACK
IDubuque May 2, 2024
5049ced
Merge branch 'mnn/buy-with-credit-card' of https://github.com/thirdwe…
IDubuque May 2, 2024
54141a0
added fromCurrencyWithFees
IDubuque May 2, 2024
c74f062
add estimated duration seconds
IDubuque May 2, 2024
c9922be
show partial success state in UI
MananTank May 2, 2024
9094363
handle swap partial success case
MananTank May 2, 2024
6c56770
tx details tweaks
MananTank May 3, 2024
eb357ec
update error message
MananTank May 3, 2024
aeb912c
fix lint
MananTank May 3, 2024
f4417bf
lock fiat status
MananTank May 3, 2024
6f046e3
fix continue btn now showing up
MananTank May 3, 2024
5182e9c
fix swap after onramp screen
MananTank May 3, 2024
27e164f
fix lint
MananTank May 3, 2024
7691b06
lot of cleanup and network call optimizations
MananTank May 3, 2024
361231e
Fix status
MananTank May 3, 2024
27346eb
cleanup and improved buy pending
MananTank May 3, 2024
75346fb
add supported chains
IDubuque May 3, 2024
b8dfe2a
Merge branch 'mnn/buy-with-credit-card' of https://github.com/thirdwe…
IDubuque May 3, 2024
f9cd30f
Fix supported chains, add connect in payembed
MananTank May 3, 2024
9cb735e
disable retry when amount too low
MananTank May 3, 2024
518a129
Update View Tx list UI
MananTank May 3, 2024
8958dea
Allow configuring PayModal on TransactionButton
MananTank May 3, 2024
7854734
improved FiatStatus screen
MananTank May 3, 2024
0de2172
temp fix for getTotalTxCostForBuy
MananTank May 4, 2024
78ec932
Add continue with tx
MananTank May 4, 2024
2dc11aa
Merge branch 'main' into mnn/buy-with-credit-card
MananTank May 4, 2024
7723637
fix build
MananTank May 4, 2024
07f1697
Merge branch 'main' into mnn/buy-with-credit-card
MananTank May 6, 2024
feffc8d
update changelog
MananTank May 6, 2024
105ec03
JSdoc
MananTank May 6, 2024
9a6e97f
Merge branch 'main' into mnn/buy-with-credit-card
MananTank May 6, 2024
b99e039
Merge branch 'main' into mnn/buy-with-credit-card
MananTank May 6, 2024
e6be591
Dynamic token / chain list
MananTank May 7, 2024
8a83b17
Fix Token info not loading in disconnected state in Pay Embed
MananTank May 7, 2024
37cc43c
JSdoc updates
MananTank May 7, 2024
302aaf3
Merge branch 'main' into mnn/buy-with-credit-card
MananTank May 7, 2024
d3756fb
Fix step 1 buy info in fiat flow
MananTank May 7, 2024
04d1447
onramp buy pending screen improvements
MananTank May 7, 2024
b014e7f
fix copy in buy-with-crypto
MananTank May 7, 2024
3abfd1c
do not show unknown status in tx history
MananTank May 7, 2024
c4eb509
various fixes
MananTank May 7, 2024
415fa20
Merge branch 'main' into mnn/buy-with-credit-card
MananTank May 7, 2024
75523ec
cleanup 1
MananTank May 8, 2024
6d8b5ec
cleanup and fine grained selection control
MananTank May 8, 2024
02faa68
No backsies on certain screens
MananTank May 8, 2024
e4e1787
Show switch network only when user can actually continue
MananTank May 8, 2024
45c2f56
remove provider and cleanup
MananTank May 8, 2024
415d636
Remove stripe mentions in JSDoc
MananTank May 9, 2024
c3b4c9d
change pay to payOptions in ConnectButton
MananTank May 9, 2024
6df2297
remove dist imports
MananTank May 9, 2024
aa6bac1
Merge branch 'main' into mnn/buy-with-credit-card
MananTank May 9, 2024
be8fe46
changeset
MananTank May 9, 2024
a0823c6
Merge branch 'main' into mnn/buy-with-credit-card
jnsdls May 9, 2024
5d561e9
address gh comments
MananTank May 9, 2024
fa7f7e3
address gh comments
MananTank May 9, 2024
ac5b0dc
Merge branch 'main' into mnn/buy-with-credit-card
MananTank May 9, 2024
ffc15ea
cleanup 2
MananTank May 9, 2024
727c5af
Fix non-relative paths
MananTank May 9, 2024
0e4391e
cleanup 3
MananTank May 9, 2024
14da0b4
Merge remote-tracking branch 'origin/main' into mnn/buy-with-credit-card
joaquim-verges May 10, 2024
35adf7a
fix build
joaquim-verges May 10, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/great-rockets-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@thirdweb-dev/react": patch
---

thirdweb Pay UI minor improvements
50 changes: 50 additions & 0 deletions .changeset/little-coins-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
"thirdweb": minor
---

### "Credit Card" payment method added in thirdweb Pay for Fiat on-ramp

### `PayEmbed` component added to embed thirdweb Pay UI

```tsx
<PayEmbed
client={client}
style={{
width: "360px",
}}
/>
```

### thirdweb Pay UI customization available in `PayEmbed` and `ConnectButton`

`payOptions` prop in `PayEmbed` and `ConnectButton > detailsModal` allows you custimize :

- Enable/Disable payment methods
- Set default amount for Buy token
- Set Buy token/chain to be selected by default
- Set Source token/chain to be selected by default for Crypto payment method
- Disable editing for Buy token/chain/amount and Source token/chain

```tsx
<ConnectButton
client={client}
detailsModal={{
payOptions: yourOptions,
}}
/>

<PayEmbed
client={client}
detailsModal={{
payOptions: yourOptions,
}}
/>
```

### Fiat on-ramp functions and hooks added

- `getBuyWithFiatQuote`, `useBuyWithFiatQuote` to get a quote for buying crypto with fiat currency
- `getBuyWithFiatStatus`, `useBuyWithFiatStatus` to get status of "Buy with fiat" transaction
- `getBuyWithFiatHistory`, `useBuyWithFiatHistory` to get "Buy with fiat" transaction history
- `getPostOnRampQuote`, `usePostOnRampQuote` to get quote for swapping on-ramp token to destination token after doing on-ramp
- Add `getBuyHistory` and `useBuyHistory` to get both "Buy with Fiat" and "Buy with Crypto" transaction history in a single list
8 changes: 6 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,15 @@
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},
"typescript.preferences.importModuleSpecifier": "relative",
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
},
"[markdown]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
},
"[typescript]": {
"editor.defaultFormatter": "biomejs.biome"
},
"typescript.preferences.autoImportFileExcludePatterns": ["/exports"],
"typescript.preferences.importModuleSpecifier": "relative"
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { getBuyWithCryptoStatus } from "@thirdweb-dev/sdk";
import type { BuyWithCryptoStatus } from "@thirdweb-dev/sdk";
import { getBuyWithCryptoStatus, type BuyWithCryptoStatus } from "@thirdweb-dev/sdk";
import { wait } from "../../../../../utils/wait";

type ValidBuyWithCryptoStatus = Exclude<BuyWithCryptoStatus, { status: 'NOT_FOUND'}>

type SwapTxInfo = {
transactionHash: string;
status: BuyWithCryptoStatus["status"];
subStatus?: BuyWithCryptoStatus["subStatus"];
status: ValidBuyWithCryptoStatus["status"];
subStatus?: ValidBuyWithCryptoStatus["subStatus"];
source: {
symbol: string;
value: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,16 @@ import { BuyIcon } from "../icons/BuyIcon";
import { Text } from "../../../components/text";
import { CryptoIcon } from "../icons/CryptoIcon";

type ValidBuyWithCryptoStatus = Exclude<BuyWithCryptoStatus, { status: 'NOT_FOUND'}>


type TxStatusInfo = {
boughChainId: number;
transactionHash: string;
boughtTokenAmount: string;
boughtTokenSymbol: string;
status: BuyWithCryptoStatus["status"];
subStatus?: BuyWithCryptoStatus["subStatus"];
status: ValidBuyWithCryptoStatus["status"];
subStatus?: ValidBuyWithCryptoStatus["subStatus"];
};

const PAGE_SIZE = 10;
Expand All @@ -51,7 +54,11 @@ export function SwapTransactionsScreen(props: { onBack: () => void }) {

const txHashSet = new Set<string>();
_historyQuery.data?.page.forEach((tx) => {
txHashSet.add(tx.source.transactionHash);
if (tx.status !== "NOT_FOUND" && tx.status !== 'NONE') {
if (tx.source?.transactionHash) {
txHashSet.add(tx.source?.transactionHash);
}
}
});

// add in-memory pending transactions
Expand All @@ -76,15 +83,20 @@ export function SwapTransactionsScreen(props: { onBack: () => void }) {

// Add data from endpoint
_historyQuery.data?.page.forEach((tx) => {
txInfosToShow.push({
boughChainId: tx.destination?.token.chainId || tx.quote.toToken.chainId,
transactionHash: tx.source.transactionHash,
boughtTokenAmount: tx.destination?.amount || tx.quote.toAmount,
boughtTokenSymbol:
tx.destination?.token.symbol || tx.quote.toToken.symbol || "",
status: tx.status,
subStatus: tx.subStatus,
});
if (tx.status !== "NOT_FOUND" && tx.status !== 'NONE') {
if (tx.source?.transactionHash) {
txInfosToShow.push({
boughChainId:
tx.destination?.token.chainId || tx.quote.toToken.chainId,
transactionHash: tx.source?.transactionHash,
boughtTokenAmount: tx.destination?.amount || tx.quote.toAmount,
boughtTokenSymbol:
tx.destination?.token.symbol || tx.quote.toToken.symbol || "",
status: tx.status,
subStatus: tx.subStatus,
});
}
}
});

const activeChainId = useChainId();
Expand Down Expand Up @@ -367,8 +379,8 @@ const TxHashLink = /* @__PURE__ */ StyledAnchor(() => {
});

function getStatusMeta(
status: BuyWithCryptoStatus["status"],
subStatus?: BuyWithCryptoStatus["subStatus"],
status: ValidBuyWithCryptoStatus["status"],
subStatus?: ValidBuyWithCryptoStatus["subStatus"],
) {
if (subStatus === "WAITING_BRIDGE") {
return {
Expand Down
47 changes: 43 additions & 4 deletions packages/thirdweb/src/exports/pay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,56 @@ export {
type QuoteApprovalParams,
type QuoteTokenInfo,
type GetBuyWithCryptoQuoteParams,
} from "../pay/buyWithCrypto/actions/getQuote.js";
} from "../pay/buyWithCrypto/getQuote.js";

export {
getBuyWithCryptoStatus,
type BuyWithCryptoStatus,
type BuyWithCryptoTransaction,
type BuyWithCryptoTransactionDetails,
} from "../pay/buyWithCrypto/actions/getStatus.js";
} from "../pay/buyWithCrypto/getStatus.js";

export {
getBuyWithCryptoHistory,
type BuyWithCryptoHistoryData,
type BuyWithCryptoHistoryParams,
} from "../pay/buyWithCrypto/actions/getHistory.js";
} from "../pay/buyWithCrypto/getHistory.js";

// fiat ------------------------------------------------

export {
getBuyWithFiatQuote,
type BuyWithFiatQuote,
type GetBuyWithFiatQuoteParams,
} from "../pay/buyWithFiat/getQuote.js";

export {
getBuyWithFiatStatus,
type BuyWithFiatStatus,
type GetBuyWithFiatStatusParams,
} from "../pay/buyWithFiat/getStatus.js";

export {
getBuyWithFiatHistory,
type BuyWithFiatHistoryData,
type BuyWithFiatHistoryParams,
} from "../pay/buyWithFiat/getHistory.js";

export {
getPostOnRampQuote,
type GetPostOnRampQuoteParams,
} from "../pay/buyWithFiat/getPostOnRampQuote.js";

export {
getBuyHistory,
type BuyHistoryData,
type BuyHistoryParams,
} from "../pay/getBuyHistory.js";

export { isSwapRequiredPostOnramp } from "../pay/buyWithFiat/isSwapRequiredPostOnramp.js";

// types ------------------------------------------------

export type {
PayTokenInfo,
PayOnChainTransactionDetails,
} from "../pay/utils/commonTypes.js";
28 changes: 21 additions & 7 deletions packages/thirdweb/src/exports/react-native.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,19 +32,33 @@ export {
export { createContractQuery } from "../react/core/utils/createQuery.js";
export { useInvalidateContractQuery } from "../react/core/hooks/others/useInvalidateQueries.js";

// Buy with crypto
// pay
export {
useBuyWithCryptoQuote,
type BuyWithCryptoQuoteQueryParams,
type BuyWithCryptoQuoteQueryOptions,
} from "../react/core/hooks/pay/useBuyWithCryptoQuote.js";
export {
useBuyWithCryptoStatus,
type BuyWithCryptoStatusQueryParams,
} from "../react/core/hooks/pay/useBuyWithCryptoStatus.js";
export { useBuyWithCryptoStatus } from "../react/core/hooks/pay/useBuyWithCryptoStatus.js";
export {
useBuyWithCryptoHistory,
type BuyWithCryptoHistoryQueryParams,
type BuyWithCryptoHistoryQueryOptions,
} from "../react/core/hooks/pay/useBuyWithCryptoHistory.js";
export {
useBuyWithFiatQuote,
type BuyWithFiatQuoteQueryOptions,
} from "../react/core/hooks/pay/useBuyWithFiatQuote.js";
export { useBuyWithFiatStatus } from "../react/core/hooks/pay/useBuyWithFiatStatus.js";
export {
useBuyWithFiatHistory,
type BuyWithFiatHistoryQueryOptions,
} from "../react/core/hooks/pay/useBuyWithFiatHistory.js";
export {
useBuyHistory,
type BuyHistoryQueryOptions,
} from "../react/core/hooks/pay/useBuyHistory.js";
export {
usePostOnRampQuote,
type PostOnRampQuoteQueryOptions,
} from "../react/core/hooks/pay/usePostOnrampQuote.js";

import { useSendTransactionCore } from "../react/core/hooks/contract/useSendTransaction.js";

Expand Down
32 changes: 24 additions & 8 deletions packages/thirdweb/src/exports/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,20 +80,33 @@ export {
export { createContractQuery } from "../react/core/utils/createQuery.js";
export { useInvalidateContractQuery } from "../react/core/hooks/others/useInvalidateQueries.js";

// Buy with crypto
// pay
export {
useBuyWithCryptoQuote,
type BuyWithCryptoQuoteQueryParams,
type BuyWithCryptoQuoteQueryOptions,
} from "../react/core/hooks/pay/useBuyWithCryptoQuote.js";

export {
useBuyWithCryptoStatus,
type BuyWithCryptoStatusQueryParams,
} from "../react/core/hooks/pay/useBuyWithCryptoStatus.js";
export { useBuyWithCryptoStatus } from "../react/core/hooks/pay/useBuyWithCryptoStatus.js";
export {
useBuyWithCryptoHistory,
type BuyWithCryptoHistoryQueryParams,
type BuyWithCryptoHistoryQueryOptions,
} from "../react/core/hooks/pay/useBuyWithCryptoHistory.js";
export {
useBuyWithFiatQuote,
type BuyWithFiatQuoteQueryOptions,
} from "../react/core/hooks/pay/useBuyWithFiatQuote.js";
export { useBuyWithFiatStatus } from "../react/core/hooks/pay/useBuyWithFiatStatus.js";
export {
useBuyWithFiatHistory,
type BuyWithFiatHistoryQueryOptions,
} from "../react/core/hooks/pay/useBuyWithFiatHistory.js";
export {
useBuyHistory,
type BuyHistoryQueryOptions,
} from "../react/core/hooks/pay/useBuyHistory.js";
export {
usePostOnRampQuote,
type PostOnRampQuoteQueryOptions,
} from "../react/core/hooks/pay/usePostOnrampQuote.js";

export {
AutoConnect,
Expand All @@ -102,3 +115,6 @@ export {

// auth
export { type SiweAuthOptions } from "../react/core/hooks/auth/useSiweAuth.js";

export { PayEmbed, type PayEmbedProps } from "../react/web/ui/PayEmbed.js";
export type { PayUIOptions } from "../react/web/ui/ConnectWallet/ConnectButtonProps.js";
12 changes: 8 additions & 4 deletions packages/thirdweb/src/exports/thirdweb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,20 +156,24 @@ export {
type QuoteApprovalParams,
type QuoteTokenInfo,
type GetBuyWithCryptoQuoteParams,
} from "../pay/buyWithCrypto/actions/getQuote.js";
} from "../pay/buyWithCrypto/getQuote.js";

export {
getBuyWithCryptoStatus,
type BuyWithCryptoStatus,
type BuyWithCryptoTransaction,
type BuyWithCryptoTransactionDetails,
} from "../pay/buyWithCrypto/actions/getStatus.js";
} from "../pay/buyWithCrypto/getStatus.js";

export {
getBuyWithCryptoHistory,
type BuyWithCryptoHistoryData,
type BuyWithCryptoHistoryParams,
} from "../pay/buyWithCrypto/actions/getHistory.js";
} from "../pay/buyWithCrypto/getHistory.js";

export type {
PayOnChainTransactionDetails,
PayTokenInfo,
} from "../pay/utils/commonTypes.js";

// ------------------------------------------------
// encoding
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { ThirdwebClient } from "../../../client/client.js";
import { getClientFetch } from "../../../utils/fetch.js";
import type { ThirdwebClient } from "../../client/client.js";
import { getClientFetch } from "../../utils/fetch.js";
import { getPayBuyWithCryptoHistoryEndpoint } from "../utils/definitions.js";
import type { BuyWithCryptoStatus } from "./getStatus.js";

Expand Down
Loading