@b3dotfun/sdk 0.0.8 → 0.0.9-alpha.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.
- package/README.md +0 -1
- package/dist/cjs/anyspend/abis/bondKit.d.ts +35 -0
- package/dist/cjs/anyspend/abis/bondKit.js +29 -0
- package/dist/cjs/anyspend/constants/index.d.ts +16 -5
- package/dist/cjs/anyspend/constants/index.js +3 -4
- package/dist/cjs/anyspend/index.d.ts +2 -7
- package/dist/cjs/anyspend/index.js +2 -8
- package/dist/cjs/anyspend/index.native.d.ts +2 -3
- package/dist/cjs/anyspend/index.native.js +2 -4
- package/dist/cjs/anyspend/react/components/AnySpend.js +12 -12
- package/dist/cjs/anyspend/react/components/AnySpendBondKit.d.ts +2 -0
- package/dist/cjs/anyspend/react/components/AnySpendBondKit.js +209 -0
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +3 -10
- package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +5 -4
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +49 -49
- package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendNFT.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendTournament.d.ts +5 -5
- package/dist/cjs/anyspend/react/components/AnySpendTournament.js +2 -3
- package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.js +10 -8
- package/dist/cjs/anyspend/react/components/{AnySpendNFTButton.d.ts → common/AnySpendNFTButton.d.ts} +2 -2
- package/dist/cjs/anyspend/react/components/{AnySpendNFTButton.js → common/AnySpendNFTButton.js} +2 -2
- package/dist/cjs/anyspend/react/components/common/OrderDetails.d.ts +6 -6
- package/dist/cjs/anyspend/react/components/common/OrderDetails.js +45 -47
- package/dist/cjs/anyspend/react/components/common/OrderHistoryItem.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/common/OrderHistoryItem.js +10 -12
- package/dist/cjs/anyspend/react/components/common/OrderStatus.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/common/OrderStatus.js +1 -1
- package/dist/cjs/anyspend/react/components/common/OrderToken.d.ts +3 -3
- package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.d.ts +3 -3
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.d.ts +6 -5
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +8 -9
- package/dist/cjs/anyspend/react/components/common/PaymentOneClick.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.js +1 -2
- package/dist/cjs/anyspend/react/components/common/TokenBalance.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/index.d.ts +2 -1
- package/dist/cjs/anyspend/react/components/index.js +5 -3
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +9 -9
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +3 -2
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +3 -4
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +6 -6
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +12 -644
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +21 -6
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +72 -434
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.d.ts +7 -15
- package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +4 -21
- package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.d.ts +4 -4
- package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +38 -27
- package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.js +1 -1
- package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.d.ts +16 -13
- package/dist/cjs/anyspend/react/hooks/useSigMint.d.ts +7 -7
- package/dist/cjs/anyspend/services/anyspend.d.ts +10 -321
- package/dist/cjs/anyspend/services/anyspend.js +7 -11
- package/dist/cjs/anyspend/types/api.d.ts +1731 -0
- package/dist/cjs/anyspend/types/api.js +6 -0
- package/dist/cjs/anyspend/types/api_req_res.d.ts +10 -0
- package/dist/cjs/anyspend/types/chain.d.ts +3 -3
- package/dist/cjs/anyspend/types/signatureMint.js +2 -0
- package/dist/cjs/anyspend/utils/chain.d.ts +4 -3
- package/dist/cjs/anyspend/utils/chain.js +14 -14
- package/dist/cjs/anyspend/utils/format.d.ts +2 -2
- package/dist/cjs/anyspend/utils/format.js +13 -14
- package/dist/cjs/anyspend/utils/orderPayload.d.ts +29 -29
- package/dist/cjs/anyspend/utils/orderPayload.js +12 -13
- package/dist/cjs/anyspend/utils/token.d.ts +6 -6
- package/dist/cjs/global-account/react/components/B3DynamicModal.js +4 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.js +1 -1
- package/dist/cjs/global-account/react/components/ui/TabSystem.d.ts +2 -2
- package/dist/cjs/global-account/react/components/ui/TabSystem.js +5 -5
- package/dist/cjs/global-account/react/components/ui/command.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useAccountWallet.js +1 -1
- package/dist/cjs/global-account/react/hooks/useBestTransactionPath.d.ts +2 -2
- package/dist/cjs/global-account/react/hooks/useOnchainName.js +2 -2
- package/dist/cjs/global-account/react/hooks/useTokenBalance.d.ts +2 -2
- package/dist/cjs/global-account/react/hooks/useTokenFromUrl.d.ts +5 -5
- package/dist/cjs/global-account/react/hooks/useTokenFromUrl.js +1 -1
- package/dist/cjs/global-account/react/stores/useModalStore.d.ts +32 -9
- package/dist/cjs/shared/constants/chains/supported.d.ts +2 -2
- package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +249 -249
- package/dist/cjs/shared/utils/payment.utils.d.ts +3 -3
- package/dist/cjs/shared/utils/payment.utils.js +6 -7
- package/dist/esm/anyspend/abis/bondKit.d.ts +35 -0
- package/dist/esm/anyspend/abis/bondKit.js +26 -0
- package/dist/esm/anyspend/constants/index.d.ts +16 -5
- package/dist/esm/anyspend/constants/index.js +3 -4
- package/dist/esm/anyspend/index.d.ts +2 -7
- package/dist/esm/anyspend/index.js +2 -8
- package/dist/esm/anyspend/index.native.d.ts +2 -3
- package/dist/esm/anyspend/index.native.js +2 -4
- package/dist/esm/anyspend/react/components/AnySpend.js +13 -13
- package/dist/esm/anyspend/react/components/AnySpendBondKit.d.ts +2 -0
- package/dist/esm/anyspend/react/components/AnySpendBondKit.js +206 -0
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +4 -11
- package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +5 -4
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +49 -49
- package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +2 -2
- package/dist/esm/anyspend/react/components/AnySpendNFT.js +3 -3
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +3 -3
- package/dist/esm/anyspend/react/components/AnySpendTournament.d.ts +5 -5
- package/dist/esm/anyspend/react/components/AnySpendTournament.js +2 -3
- package/dist/esm/anyspend/react/components/AnyspendSignatureMint.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnyspendSignatureMint.js +10 -8
- package/dist/esm/anyspend/react/components/{AnySpendNFTButton.d.ts → common/AnySpendNFTButton.d.ts} +2 -2
- package/dist/esm/anyspend/react/components/{AnySpendNFTButton.js → common/AnySpendNFTButton.js} +2 -2
- package/dist/esm/anyspend/react/components/common/OrderDetails.d.ts +6 -6
- package/dist/esm/anyspend/react/components/common/OrderDetails.js +46 -48
- package/dist/esm/anyspend/react/components/common/OrderHistoryItem.d.ts +2 -2
- package/dist/esm/anyspend/react/components/common/OrderHistoryItem.js +11 -13
- package/dist/esm/anyspend/react/components/common/OrderStatus.d.ts +2 -2
- package/dist/esm/anyspend/react/components/common/OrderStatus.js +2 -2
- package/dist/esm/anyspend/react/components/common/OrderToken.d.ts +3 -3
- package/dist/esm/anyspend/react/components/common/OrderTokenAmount.d.ts +3 -3
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.d.ts +6 -5
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +8 -9
- package/dist/esm/anyspend/react/components/common/PaymentOneClick.d.ts +2 -2
- package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.d.ts +2 -2
- package/dist/esm/anyspend/react/components/common/PaymentVendorUI.d.ts +2 -2
- package/dist/esm/anyspend/react/components/common/PaymentVendorUI.js +1 -2
- package/dist/esm/anyspend/react/components/common/TokenBalance.d.ts +2 -2
- package/dist/esm/anyspend/react/components/index.d.ts +2 -1
- package/dist/esm/anyspend/react/components/index.js +2 -1
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +2 -2
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +10 -10
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +3 -2
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +4 -5
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +6 -6
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +12 -644
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +21 -3
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +72 -434
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendQuote.d.ts +7 -15
- package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +4 -21
- package/dist/esm/anyspend/react/hooks/useAnyspendTokens.d.ts +4 -4
- package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +38 -27
- package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.js +1 -1
- package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.d.ts +16 -13
- package/dist/esm/anyspend/react/hooks/useSigMint.d.ts +7 -7
- package/dist/esm/anyspend/services/anyspend.d.ts +10 -321
- package/dist/esm/anyspend/services/anyspend.js +7 -11
- package/dist/esm/anyspend/types/api.d.ts +1731 -0
- package/dist/esm/anyspend/types/api.js +5 -0
- package/dist/esm/anyspend/types/api_req_res.d.ts +10 -0
- package/dist/esm/anyspend/types/chain.d.ts +3 -3
- package/dist/esm/anyspend/types/signatureMint.js +1 -0
- package/dist/esm/anyspend/utils/chain.d.ts +4 -3
- package/dist/esm/anyspend/utils/chain.js +1 -1
- package/dist/esm/anyspend/utils/format.d.ts +2 -2
- package/dist/esm/anyspend/utils/format.js +13 -14
- package/dist/esm/anyspend/utils/orderPayload.d.ts +29 -29
- package/dist/esm/anyspend/utils/orderPayload.js +12 -13
- package/dist/esm/anyspend/utils/token.d.ts +6 -6
- package/dist/esm/global-account/react/components/B3DynamicModal.js +5 -1
- package/dist/esm/global-account/react/components/SignInWithB3/SignIn.js +1 -1
- package/dist/esm/global-account/react/components/ui/TabSystem.d.ts +2 -2
- package/dist/esm/global-account/react/components/ui/TabSystem.js +4 -4
- package/dist/esm/global-account/react/components/ui/command.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useAccountWallet.js +1 -1
- package/dist/esm/global-account/react/hooks/useBestTransactionPath.d.ts +2 -2
- package/dist/esm/global-account/react/hooks/useOnchainName.js +2 -2
- package/dist/esm/global-account/react/hooks/useTokenBalance.d.ts +2 -2
- package/dist/esm/global-account/react/hooks/useTokenFromUrl.d.ts +5 -5
- package/dist/esm/global-account/react/hooks/useTokenFromUrl.js +1 -1
- package/dist/esm/global-account/react/stores/useModalStore.d.ts +32 -9
- package/dist/esm/shared/constants/chains/supported.d.ts +2 -2
- package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +249 -249
- package/dist/esm/shared/utils/payment.utils.d.ts +3 -3
- package/dist/esm/shared/utils/payment.utils.js +6 -7
- package/dist/styles/index.css +1 -1
- package/dist/types/anyspend/abis/bondKit.d.ts +35 -0
- package/dist/types/anyspend/constants/index.d.ts +16 -5
- package/dist/types/anyspend/index.d.ts +2 -7
- package/dist/types/anyspend/index.native.d.ts +2 -3
- package/dist/types/anyspend/react/components/AnySpendBondKit.d.ts +2 -0
- package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +5 -4
- package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +2 -2
- package/dist/types/anyspend/react/components/AnySpendTournament.d.ts +5 -5
- package/dist/types/anyspend/react/components/AnyspendSignatureMint.d.ts +1 -1
- package/dist/types/anyspend/react/components/{AnySpendNFTButton.d.ts → common/AnySpendNFTButton.d.ts} +2 -2
- package/dist/types/anyspend/react/components/common/OrderDetails.d.ts +6 -6
- package/dist/types/anyspend/react/components/common/OrderHistoryItem.d.ts +2 -2
- package/dist/types/anyspend/react/components/common/OrderStatus.d.ts +2 -2
- package/dist/types/anyspend/react/components/common/OrderToken.d.ts +3 -3
- package/dist/types/anyspend/react/components/common/OrderTokenAmount.d.ts +3 -3
- package/dist/types/anyspend/react/components/common/PanelOnrampPayment.d.ts +6 -5
- package/dist/types/anyspend/react/components/common/PaymentOneClick.d.ts +2 -2
- package/dist/types/anyspend/react/components/common/PaymentStripeWeb2.d.ts +2 -2
- package/dist/types/anyspend/react/components/common/PaymentVendorUI.d.ts +2 -2
- package/dist/types/anyspend/react/components/common/TokenBalance.d.ts +2 -2
- package/dist/types/anyspend/react/components/index.d.ts +2 -1
- package/dist/types/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +2 -2
- package/dist/types/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +3 -2
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +2 -2
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +6 -6
- package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +12 -644
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +72 -434
- package/dist/types/anyspend/react/hooks/useAnyspendQuote.d.ts +7 -15
- package/dist/types/anyspend/react/hooks/useAnyspendTokens.d.ts +4 -4
- package/dist/types/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +38 -27
- package/dist/types/anyspend/react/hooks/useGeoOnrampOptions.d.ts +16 -13
- package/dist/types/anyspend/react/hooks/useSigMint.d.ts +7 -7
- package/dist/types/anyspend/services/anyspend.d.ts +10 -321
- package/dist/types/anyspend/types/api.d.ts +1731 -0
- package/dist/types/anyspend/types/api_req_res.d.ts +10 -0
- package/dist/types/anyspend/types/chain.d.ts +3 -3
- package/dist/types/anyspend/utils/chain.d.ts +4 -3
- package/dist/types/anyspend/utils/format.d.ts +2 -2
- package/dist/types/anyspend/utils/orderPayload.d.ts +29 -29
- package/dist/types/anyspend/utils/token.d.ts +6 -6
- package/dist/types/global-account/react/components/ui/TabSystem.d.ts +2 -2
- package/dist/types/global-account/react/components/ui/command.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useBestTransactionPath.d.ts +2 -2
- package/dist/types/global-account/react/hooks/useTokenBalance.d.ts +2 -2
- package/dist/types/global-account/react/hooks/useTokenFromUrl.d.ts +5 -5
- package/dist/types/global-account/react/stores/useModalStore.d.ts +32 -9
- package/dist/types/shared/constants/chains/supported.d.ts +2 -2
- package/dist/types/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +249 -249
- package/dist/types/shared/utils/payment.utils.d.ts +3 -3
- package/package.json +3 -1
- package/src/anyspend/README.md +33 -32
- package/src/anyspend/abis/bondKit.ts +26 -0
- package/src/anyspend/constants/index.ts +7 -7
- package/src/anyspend/index.native.ts +2 -5
- package/src/anyspend/index.ts +2 -9
- package/src/anyspend/react/components/AnySpend.tsx +19 -17
- package/src/anyspend/react/components/AnySpendBondKit.tsx +378 -0
- package/src/anyspend/react/components/AnySpendBuySpin.tsx +4 -12
- package/src/anyspend/react/components/AnySpendCustom.tsx +100 -112
- package/src/anyspend/react/components/AnySpendNFT.tsx +7 -6
- package/src/anyspend/react/components/AnySpendStakeB3.tsx +3 -3
- package/src/anyspend/react/components/AnySpendTournament.tsx +8 -7
- package/src/anyspend/react/components/AnyspendSignatureMint.tsx +22 -13
- package/src/anyspend/react/components/{AnySpendNFTButton.tsx → common/AnySpendNFTButton.tsx} +2 -2
- package/src/anyspend/react/components/common/OrderDetails.tsx +58 -70
- package/src/anyspend/react/components/common/OrderHistoryItem.tsx +13 -14
- package/src/anyspend/react/components/common/OrderStatus.tsx +4 -3
- package/src/anyspend/react/components/common/OrderToken.tsx +4 -3
- package/src/anyspend/react/components/common/OrderTokenAmount.tsx +4 -3
- package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +19 -15
- package/src/anyspend/react/components/common/PaymentOneClick.tsx +2 -2
- package/src/anyspend/react/components/common/PaymentStripeWeb2.tsx +4 -3
- package/src/anyspend/react/components/common/PaymentVendorUI.tsx +3 -3
- package/src/anyspend/react/components/common/TokenBalance.tsx +2 -2
- package/src/anyspend/react/components/index.ts +2 -1
- package/src/anyspend/react/components/webview/WebviewOnrampOrderStatus.tsx +12 -11
- package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +15 -16
- package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +2 -2
- package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +6 -6
- package/src/anyspend/react/hooks/useAnyspendOrderAndTransactions.ts +27 -5
- package/src/anyspend/react/hooks/useAnyspendOrderHistory.ts +10 -6
- package/src/anyspend/react/hooks/useAnyspendQuote.ts +15 -18
- package/src/anyspend/react/hooks/useCoinbaseOnrampOptions.ts +1 -1
- package/src/anyspend/react/hooks/useSigMint.tsx +1 -1
- package/src/anyspend/services/anyspend.ts +38 -30
- package/src/anyspend/types/api.ts +1756 -0
- package/src/anyspend/types/api_req_res.ts +16 -0
- package/src/anyspend/types/chain.ts +3 -3
- package/src/anyspend/utils/chain.ts +4 -3
- package/src/anyspend/utils/format.ts +17 -15
- package/src/anyspend/utils/orderPayload.ts +20 -20
- package/src/anyspend/utils/token.ts +6 -6
- package/src/global-account/react/components/B3DynamicModal.tsx +6 -1
- package/src/global-account/react/components/SignInWithB3/SignIn.tsx +1 -1
- package/src/global-account/react/components/StyleRoot.tsx +1 -0
- package/src/global-account/react/components/ui/TabSystem.tsx +36 -33
- package/src/global-account/react/hooks/useAccountWallet.tsx +1 -1
- package/src/global-account/react/hooks/useBestTransactionPath.tsx +3 -2
- package/src/global-account/react/hooks/useOnchainName.tsx +2 -2
- package/src/global-account/react/hooks/useTokenBalance.tsx +3 -2
- package/src/global-account/react/hooks/useTokenFromUrl.tsx +10 -4
- package/src/global-account/react/stores/useModalStore.ts +34 -9
- package/src/shared/utils/payment.utils.ts +9 -9
- package/dist/cjs/anyspend/types/custom.d.ts +0 -130
- package/dist/cjs/anyspend/types/custom.js +0 -19
- package/dist/cjs/anyspend/types/globalWallet.d.ts +0 -18
- package/dist/cjs/anyspend/types/globalWallet.js +0 -10
- package/dist/cjs/anyspend/types/index.d.ts +0 -13
- package/dist/cjs/anyspend/types/index.js +0 -29
- package/dist/cjs/anyspend/types/metadata.d.ts +0 -26
- package/dist/cjs/anyspend/types/metadata.js +0 -16
- package/dist/cjs/anyspend/types/nft.d.ts +0 -274
- package/dist/cjs/anyspend/types/nft.js +0 -38
- package/dist/cjs/anyspend/types/onramp.d.ts +0 -28
- package/dist/cjs/anyspend/types/onramp.js +0 -18
- package/dist/cjs/anyspend/types/order.d.ts +0 -1629
- package/dist/cjs/anyspend/types/order.js +0 -81
- package/dist/cjs/anyspend/types/relay.d.ts +0 -10
- package/dist/cjs/anyspend/types/relay.js +0 -12
- package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +0 -4026
- package/dist/cjs/anyspend/types/req-res/createOrder.js +0 -61
- package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +0 -120
- package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.js +0 -31
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -2922
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.js +0 -23
- package/dist/cjs/anyspend/types/req-res/getOrderByCreator.d.ts +0 -28
- package/dist/cjs/anyspend/types/req-res/getOrderByCreator.js +0 -11
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +0 -2117
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.js +0 -11
- package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +0 -290
- package/dist/cjs/anyspend/types/req-res/getQuote.js +0 -51
- package/dist/cjs/anyspend/types/req-res/getTokenList.d.ts +0 -63
- package/dist/cjs/anyspend/types/req-res/getTokenList.js +0 -18
- package/dist/cjs/anyspend/types/req-res/index.d.ts +0 -7
- package/dist/cjs/anyspend/types/req-res/index.js +0 -23
- package/dist/cjs/anyspend/types/req-res/stripe.d.ts +0 -0
- package/dist/cjs/anyspend/types/req-res/stripe.js +0 -1
- package/dist/cjs/anyspend/types/swap.d.ts +0 -119
- package/dist/cjs/anyspend/types/swap.js +0 -13
- package/dist/cjs/anyspend/types/token.d.ts +0 -34
- package/dist/cjs/anyspend/types/token.js +0 -14
- package/dist/cjs/anyspend/types/tournament.d.ts +0 -174
- package/dist/cjs/anyspend/types/tournament.js +0 -24
- package/dist/cjs/anyspend/types/transaction.d.ts +0 -84
- package/dist/cjs/anyspend/types/transaction.js +0 -34
- package/dist/esm/anyspend/types/custom.d.ts +0 -130
- package/dist/esm/anyspend/types/custom.js +0 -13
- package/dist/esm/anyspend/types/globalWallet.d.ts +0 -18
- package/dist/esm/anyspend/types/globalWallet.js +0 -7
- package/dist/esm/anyspend/types/index.d.ts +0 -13
- package/dist/esm/anyspend/types/index.js +0 -13
- package/dist/esm/anyspend/types/metadata.d.ts +0 -26
- package/dist/esm/anyspend/types/metadata.js +0 -11
- package/dist/esm/anyspend/types/nft.d.ts +0 -274
- package/dist/esm/anyspend/types/nft.js +0 -35
- package/dist/esm/anyspend/types/onramp.d.ts +0 -28
- package/dist/esm/anyspend/types/onramp.js +0 -15
- package/dist/esm/anyspend/types/order.d.ts +0 -1629
- package/dist/esm/anyspend/types/order.js +0 -78
- package/dist/esm/anyspend/types/relay.d.ts +0 -10
- package/dist/esm/anyspend/types/relay.js +0 -9
- package/dist/esm/anyspend/types/req-res/createOrder.d.ts +0 -4026
- package/dist/esm/anyspend/types/req-res/createOrder.js +0 -58
- package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +0 -120
- package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.js +0 -28
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -2922
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.js +0 -20
- package/dist/esm/anyspend/types/req-res/getOrderByCreator.d.ts +0 -28
- package/dist/esm/anyspend/types/req-res/getOrderByCreator.js +0 -8
- package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +0 -2117
- package/dist/esm/anyspend/types/req-res/getOrderHistory.js +0 -8
- package/dist/esm/anyspend/types/req-res/getQuote.d.ts +0 -290
- package/dist/esm/anyspend/types/req-res/getQuote.js +0 -48
- package/dist/esm/anyspend/types/req-res/getTokenList.d.ts +0 -63
- package/dist/esm/anyspend/types/req-res/getTokenList.js +0 -15
- package/dist/esm/anyspend/types/req-res/index.d.ts +0 -7
- package/dist/esm/anyspend/types/req-res/index.js +0 -7
- package/dist/esm/anyspend/types/req-res/stripe.d.ts +0 -0
- package/dist/esm/anyspend/types/req-res/stripe.js +0 -1
- package/dist/esm/anyspend/types/swap.d.ts +0 -119
- package/dist/esm/anyspend/types/swap.js +0 -10
- package/dist/esm/anyspend/types/token.d.ts +0 -34
- package/dist/esm/anyspend/types/token.js +0 -11
- package/dist/esm/anyspend/types/tournament.d.ts +0 -174
- package/dist/esm/anyspend/types/tournament.js +0 -21
- package/dist/esm/anyspend/types/transaction.d.ts +0 -84
- package/dist/esm/anyspend/types/transaction.js +0 -31
- package/dist/types/anyspend/types/custom.d.ts +0 -130
- package/dist/types/anyspend/types/globalWallet.d.ts +0 -18
- package/dist/types/anyspend/types/index.d.ts +0 -13
- package/dist/types/anyspend/types/metadata.d.ts +0 -26
- package/dist/types/anyspend/types/nft.d.ts +0 -274
- package/dist/types/anyspend/types/onramp.d.ts +0 -28
- package/dist/types/anyspend/types/order.d.ts +0 -1629
- package/dist/types/anyspend/types/relay.d.ts +0 -10
- package/dist/types/anyspend/types/req-res/createOrder.d.ts +0 -4026
- package/dist/types/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +0 -120
- package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -2922
- package/dist/types/anyspend/types/req-res/getOrderByCreator.d.ts +0 -28
- package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +0 -2117
- package/dist/types/anyspend/types/req-res/getQuote.d.ts +0 -290
- package/dist/types/anyspend/types/req-res/getTokenList.d.ts +0 -63
- package/dist/types/anyspend/types/req-res/index.d.ts +0 -7
- package/dist/types/anyspend/types/req-res/stripe.d.ts +0 -0
- package/dist/types/anyspend/types/swap.d.ts +0 -119
- package/dist/types/anyspend/types/token.d.ts +0 -34
- package/dist/types/anyspend/types/tournament.d.ts +0 -174
- package/dist/types/anyspend/types/transaction.d.ts +0 -84
- package/src/anyspend/types/custom.ts +0 -17
- package/src/anyspend/types/globalWallet.ts +0 -9
- package/src/anyspend/types/index.ts +0 -14
- package/src/anyspend/types/metadata.ts +0 -41
- package/src/anyspend/types/nft.ts +0 -53
- package/src/anyspend/types/onramp.ts +0 -16
- package/src/anyspend/types/order.ts +0 -88
- package/src/anyspend/types/relay.ts +0 -13
- package/src/anyspend/types/req-res/createOrder.ts +0 -67
- package/src/anyspend/types/req-res/getCoinbaseOnrampOptions.ts +0 -34
- package/src/anyspend/types/req-res/getOrderAndTransactions.ts +0 -23
- package/src/anyspend/types/req-res/getOrderByCreator.ts +0 -9
- package/src/anyspend/types/req-res/getOrderHistory.ts +0 -9
- package/src/anyspend/types/req-res/getQuote.ts +0 -65
- package/src/anyspend/types/req-res/getTokenList.ts +0 -18
- package/src/anyspend/types/req-res/index.ts +0 -7
- package/src/anyspend/types/req-res/stripe.ts +0 -0
- package/src/anyspend/types/swap.ts +0 -12
- package/src/anyspend/types/token.ts +0 -13
- package/src/anyspend/types/tournament.ts +0 -26
- package/src/anyspend/types/transaction.ts +0 -39
- /package/dist/cjs/anyspend/abis/{abi-usdc-base.d.ts → abiUsdcBase.d.ts} +0 -0
- /package/dist/cjs/anyspend/abis/{abi-usdc-base.js → abiUsdcBase.js} +0 -0
- /package/dist/cjs/anyspend/abis/{erc20-staking.d.ts → erc20Staking.d.ts} +0 -0
- /package/dist/cjs/anyspend/abis/{erc20-staking.js → erc20Staking.js} +0 -0
- /package/dist/cjs/anyspend/abis/{signature-minting.d.ts → signatureMinting.d.ts} +0 -0
- /package/dist/cjs/anyspend/abis/{signature-minting.js → signatureMinting.js} +0 -0
- /package/dist/cjs/anyspend/types/{signature-mint.js → api_req_res.js} +0 -0
- /package/dist/cjs/anyspend/types/{signature-mint.d.ts → signatureMint.d.ts} +0 -0
- /package/dist/esm/anyspend/abis/{abi-usdc-base.d.ts → abiUsdcBase.d.ts} +0 -0
- /package/dist/esm/anyspend/abis/{abi-usdc-base.js → abiUsdcBase.js} +0 -0
- /package/dist/esm/anyspend/abis/{erc20-staking.d.ts → erc20Staking.d.ts} +0 -0
- /package/dist/esm/anyspend/abis/{erc20-staking.js → erc20Staking.js} +0 -0
- /package/dist/esm/anyspend/abis/{signature-minting.d.ts → signatureMinting.d.ts} +0 -0
- /package/dist/esm/anyspend/abis/{signature-minting.js → signatureMinting.js} +0 -0
- /package/dist/esm/anyspend/types/{signature-mint.js → api_req_res.js} +0 -0
- /package/dist/esm/anyspend/types/{signature-mint.d.ts → signatureMint.d.ts} +0 -0
- /package/dist/types/anyspend/abis/{abi-usdc-base.d.ts → abiUsdcBase.d.ts} +0 -0
- /package/dist/types/anyspend/abis/{erc20-staking.d.ts → erc20Staking.d.ts} +0 -0
- /package/dist/types/anyspend/abis/{signature-minting.d.ts → signatureMinting.d.ts} +0 -0
- /package/dist/types/anyspend/types/{signature-mint.d.ts → signatureMint.d.ts} +0 -0
- /package/src/anyspend/abis/{abi-usdc-base.ts → abiUsdcBase.ts} +0 -0
- /package/src/anyspend/abis/{erc20-staking.ts → erc20Staking.ts} +0 -0
- /package/src/anyspend/abis/{signature-minting.ts → signatureMinting.ts} +0 -0
- /package/src/anyspend/types/{signature-mint.ts → signatureMint.ts} +0 -0
|
@@ -3,26 +3,16 @@
|
|
|
3
3
|
import {
|
|
4
4
|
ALL_CHAINS,
|
|
5
5
|
capitalizeFirstLetter,
|
|
6
|
-
DepositTransaction,
|
|
7
6
|
EVM_CHAINS,
|
|
8
|
-
ExecuteTransaction,
|
|
9
7
|
getChainName,
|
|
10
8
|
getErrorDisplay,
|
|
11
9
|
getExplorerTxUrl,
|
|
12
10
|
getPaymentUrl,
|
|
13
11
|
getStatusDisplay,
|
|
14
12
|
isNativeToken,
|
|
15
|
-
OnrampVendor,
|
|
16
|
-
Order,
|
|
17
|
-
OrderStatus,
|
|
18
|
-
OrderType,
|
|
19
|
-
RefundTransaction,
|
|
20
13
|
RELAY_ETH_ADDRESS,
|
|
21
|
-
RelayTransaction,
|
|
22
|
-
zNft,
|
|
23
|
-
zToken,
|
|
24
|
-
zTournament,
|
|
25
14
|
} from "@b3dotfun/sdk/anyspend";
|
|
15
|
+
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
26
16
|
import {
|
|
27
17
|
Badge,
|
|
28
18
|
Button,
|
|
@@ -67,11 +57,11 @@ import PaymentVendorUI from "./PaymentVendorUI";
|
|
|
67
57
|
interface OrderDetailsProps {
|
|
68
58
|
isMainnet: boolean;
|
|
69
59
|
mode?: "modal" | "page";
|
|
70
|
-
order: Order;
|
|
71
|
-
depositTxs:
|
|
72
|
-
relayTx:
|
|
73
|
-
executeTx:
|
|
74
|
-
refundTxs:
|
|
60
|
+
order: components["schemas"]["Order"];
|
|
61
|
+
depositTxs: components["schemas"]["DepositTx"][] | null;
|
|
62
|
+
relayTx: components["schemas"]["RelayTx"] | null;
|
|
63
|
+
executeTx: components["schemas"]["ExecuteTx"] | null;
|
|
64
|
+
refundTxs: components["schemas"]["RefundTx"][] | null;
|
|
75
65
|
onBack?: () => void;
|
|
76
66
|
}
|
|
77
67
|
|
|
@@ -84,7 +74,7 @@ function getOrderSuccessText({
|
|
|
84
74
|
recipientName,
|
|
85
75
|
centerTruncate,
|
|
86
76
|
}: {
|
|
87
|
-
order: Order;
|
|
77
|
+
order: components["schemas"]["Order"];
|
|
88
78
|
tournament?: any;
|
|
89
79
|
formattedActualDstAmount?: string;
|
|
90
80
|
dstToken: any;
|
|
@@ -95,19 +85,19 @@ function getOrderSuccessText({
|
|
|
95
85
|
|
|
96
86
|
let actionText = "";
|
|
97
87
|
switch (order.type) {
|
|
98
|
-
case
|
|
88
|
+
case "swap":
|
|
99
89
|
actionText = `sent ${formattedActualDstAmount || "--"} ${dstToken.symbol}`;
|
|
100
90
|
return `Successfully ${actionText} to ${recipient}`;
|
|
101
|
-
case
|
|
91
|
+
case "mint_nft":
|
|
102
92
|
actionText = `minted ${order.metadata.nft.name}`;
|
|
103
93
|
return `Successfully ${actionText} to ${recipient}`;
|
|
104
|
-
case
|
|
94
|
+
case "join_tournament":
|
|
105
95
|
actionText = `joined ${tournament?.name}`;
|
|
106
96
|
return `Successfully ${actionText} for ${recipient}`;
|
|
107
|
-
case
|
|
97
|
+
case "fund_tournament":
|
|
108
98
|
actionText = `funded ${tournament?.name}`;
|
|
109
99
|
return `Successfully ${actionText}`;
|
|
110
|
-
case
|
|
100
|
+
case "custom":
|
|
111
101
|
actionText = order.metadata.action || `executed contract`;
|
|
112
102
|
return `Successfully ${actionText}`;
|
|
113
103
|
default:
|
|
@@ -215,13 +205,11 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
215
205
|
|
|
216
206
|
const setB3ModalOpen = useModalStore(state => state.setB3ModalOpen);
|
|
217
207
|
|
|
218
|
-
const srcToken =
|
|
219
|
-
const dstToken =
|
|
220
|
-
const nft = order.type ===
|
|
208
|
+
const srcToken = order.metadata.srcToken;
|
|
209
|
+
const dstToken = order.metadata.dstToken;
|
|
210
|
+
const nft = order.type === "mint_nft" ? order.metadata.nft : undefined;
|
|
221
211
|
const tournament =
|
|
222
|
-
order.type ===
|
|
223
|
-
? zTournament.parse(order.metadata.tournament)
|
|
224
|
-
: undefined;
|
|
212
|
+
order.type === "join_tournament" || order.type === "fund_tournament" ? order.metadata.tournament : undefined;
|
|
225
213
|
|
|
226
214
|
const { name: recipientName } = useOnchainName(order.recipientAddress);
|
|
227
215
|
const account = useAccountWallet();
|
|
@@ -332,19 +320,19 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
332
320
|
}
|
|
333
321
|
|
|
334
322
|
const expectedDstAmount =
|
|
335
|
-
order.type ===
|
|
336
|
-
order.type ===
|
|
337
|
-
order.type ===
|
|
338
|
-
order.type ===
|
|
323
|
+
order.type === "mint_nft" ||
|
|
324
|
+
order.type === "join_tournament" ||
|
|
325
|
+
order.type === "fund_tournament" ||
|
|
326
|
+
order.type === "custom"
|
|
339
327
|
? "0"
|
|
340
328
|
: order.payload.expectedDstAmount.toString();
|
|
341
329
|
const formattedExpectedDstAmount = formatTokenAmount(BigInt(expectedDstAmount), dstToken.decimals);
|
|
342
330
|
|
|
343
331
|
const actualDstAmount =
|
|
344
|
-
order.type ===
|
|
345
|
-
order.type ===
|
|
346
|
-
order.type ===
|
|
347
|
-
order.type ===
|
|
332
|
+
order.type === "mint_nft" ||
|
|
333
|
+
order.type === "join_tournament" ||
|
|
334
|
+
order.type === "fund_tournament" ||
|
|
335
|
+
order.type === "custom"
|
|
348
336
|
? undefined
|
|
349
337
|
: order.payload.actualDstAmount;
|
|
350
338
|
const formattedActualDstAmount = actualDstAmount
|
|
@@ -392,7 +380,7 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
392
380
|
<TransactionDetails
|
|
393
381
|
key={dTx.txHash}
|
|
394
382
|
title={
|
|
395
|
-
order.onrampMetadata?.vendor ===
|
|
383
|
+
order.onrampMetadata?.vendor === "stripe-web2"
|
|
396
384
|
? `Received payment`
|
|
397
385
|
: `Received ${formatTokenAmount(BigInt(dTx.amount), srcToken.decimals)} ${srcToken.symbol}`
|
|
398
386
|
}
|
|
@@ -454,7 +442,7 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
454
442
|
<TransactionDetails
|
|
455
443
|
key={dTxs.txHash}
|
|
456
444
|
title={
|
|
457
|
-
order.onrampMetadata?.vendor ===
|
|
445
|
+
order.onrampMetadata?.vendor === "stripe-web2"
|
|
458
446
|
? `Received payment`
|
|
459
447
|
: `Received ${formatTokenAmount(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`
|
|
460
448
|
}
|
|
@@ -473,13 +461,13 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
473
461
|
/>
|
|
474
462
|
<TransactionDetails
|
|
475
463
|
title={
|
|
476
|
-
order.type ===
|
|
464
|
+
order.type === "swap"
|
|
477
465
|
? "Processed Swap"
|
|
478
|
-
: order.type ===
|
|
466
|
+
: order.type === "mint_nft"
|
|
479
467
|
? "Minted NFT"
|
|
480
|
-
: order.type ===
|
|
468
|
+
: order.type === "join_tournament"
|
|
481
469
|
? "Joined Tournament"
|
|
482
|
-
: order.type ===
|
|
470
|
+
: order.type === "fund_tournament"
|
|
483
471
|
? "Funded Tournament"
|
|
484
472
|
: "Processed Order"
|
|
485
473
|
}
|
|
@@ -510,7 +498,7 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
510
498
|
</Button>
|
|
511
499
|
</div>
|
|
512
500
|
|
|
513
|
-
{order.type ===
|
|
501
|
+
{order.type === "join_tournament" && order.status === "executed" && (
|
|
514
502
|
<ShinyButton
|
|
515
503
|
accentColor={"hsl(var(--as-brand))"}
|
|
516
504
|
textColor="text-white"
|
|
@@ -523,7 +511,7 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
523
511
|
</ShinyButton>
|
|
524
512
|
)}
|
|
525
513
|
|
|
526
|
-
{order.status ===
|
|
514
|
+
{order.status === "executed" && (
|
|
527
515
|
<button
|
|
528
516
|
className="bg-as-on-surface-2 text-as-secondary flex w-full items-center justify-center gap-2 rounded-lg p-2"
|
|
529
517
|
onClick={mode === "page" ? handleBack : handleCloseModal}
|
|
@@ -558,7 +546,7 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
558
546
|
<TransactionDetails
|
|
559
547
|
key={dTxs.txHash}
|
|
560
548
|
title={
|
|
561
|
-
order.onrampMetadata?.vendor ===
|
|
549
|
+
order.onrampMetadata?.vendor === "stripe-web2"
|
|
562
550
|
? `Received payment`
|
|
563
551
|
: `Received ${formatTokenAmount(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`
|
|
564
552
|
}
|
|
@@ -572,13 +560,13 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
572
560
|
{order.srcChain === order.dstChain ? (
|
|
573
561
|
<TransactionDetails
|
|
574
562
|
title={
|
|
575
|
-
order.type ===
|
|
563
|
+
order.type === "swap"
|
|
576
564
|
? "Processed Swap"
|
|
577
|
-
: order.type ===
|
|
565
|
+
: order.type === "mint_nft"
|
|
578
566
|
? "Minted NFT"
|
|
579
|
-
: order.type ===
|
|
567
|
+
: order.type === "join_tournament"
|
|
580
568
|
? "Joined Tournament"
|
|
581
|
-
: order.type ===
|
|
569
|
+
: order.type === "fund_tournament"
|
|
582
570
|
? "Funded Tournament"
|
|
583
571
|
: "Processed Transaction"
|
|
584
572
|
}
|
|
@@ -598,13 +586,13 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
598
586
|
/>
|
|
599
587
|
<TransactionDetails
|
|
600
588
|
title={
|
|
601
|
-
order.type ===
|
|
589
|
+
order.type === "swap"
|
|
602
590
|
? "Processing Swap"
|
|
603
|
-
: order.type ===
|
|
591
|
+
: order.type === "mint_nft"
|
|
604
592
|
? "Minting NFT"
|
|
605
|
-
: order.type ===
|
|
593
|
+
: order.type === "join_tournament"
|
|
606
594
|
? "Joining Tournament"
|
|
607
|
-
: order.type ===
|
|
595
|
+
: order.type === "fund_tournament"
|
|
608
596
|
? "Funding Tournament"
|
|
609
597
|
: "Processing Bridge"
|
|
610
598
|
}
|
|
@@ -638,7 +626,7 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
638
626
|
</Button>
|
|
639
627
|
</div>
|
|
640
628
|
|
|
641
|
-
{order.type ===
|
|
629
|
+
{order.type === "join_tournament" && order.status === "executed" && (
|
|
642
630
|
<ShinyButton
|
|
643
631
|
accentColor={"hsl(var(--as-brand))"}
|
|
644
632
|
textColor="text-white"
|
|
@@ -651,7 +639,7 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
651
639
|
</ShinyButton>
|
|
652
640
|
)}
|
|
653
641
|
|
|
654
|
-
{order.status ===
|
|
642
|
+
{order.status === "executed" && (
|
|
655
643
|
<button
|
|
656
644
|
className="bg-as-on-surface-2 text-as-secondary flex w-full items-center justify-center gap-2 rounded-lg p-2"
|
|
657
645
|
onClick={mode === "page" ? handleBack : handleCloseModal}
|
|
@@ -687,7 +675,7 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
687
675
|
<TransactionDetails
|
|
688
676
|
key={dTxs.txHash}
|
|
689
677
|
title={
|
|
690
|
-
order.onrampMetadata?.vendor ===
|
|
678
|
+
order.onrampMetadata?.vendor === "stripe-web2"
|
|
691
679
|
? `Received payment`
|
|
692
680
|
: `Received ${formatTokenAmount(BigInt(dTxs.amount), srcToken.decimals)} ${srcToken.symbol}`
|
|
693
681
|
}
|
|
@@ -707,13 +695,13 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
707
695
|
) : depositEnoughAmount ? (
|
|
708
696
|
<TransactionDetails
|
|
709
697
|
title={
|
|
710
|
-
order.type ===
|
|
698
|
+
order.type === "swap"
|
|
711
699
|
? "Processing Swap"
|
|
712
|
-
: order.type ===
|
|
700
|
+
: order.type === "mint_nft"
|
|
713
701
|
? "Minting NFT"
|
|
714
|
-
: order.type ===
|
|
702
|
+
: order.type === "join_tournament"
|
|
715
703
|
? "Joining Tournament"
|
|
716
|
-
: order.type ===
|
|
704
|
+
: order.type === "fund_tournament"
|
|
717
705
|
? "Funding Tournament"
|
|
718
706
|
: "Processing Transaction"
|
|
719
707
|
}
|
|
@@ -725,7 +713,7 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
725
713
|
) : (
|
|
726
714
|
<TransactionDetails
|
|
727
715
|
title={
|
|
728
|
-
order.onrampMetadata?.vendor ===
|
|
716
|
+
order.onrampMetadata?.vendor === "stripe-web2"
|
|
729
717
|
? `Waiting for payment`
|
|
730
718
|
: `Waiting for deposit ${formattedDepositDeficit} ${srcToken.symbol}`
|
|
731
719
|
}
|
|
@@ -950,7 +938,7 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
950
938
|
<div className="text-as-primary">
|
|
951
939
|
{depositEnoughAmount ? (
|
|
952
940
|
"Received"
|
|
953
|
-
) : order.status ===
|
|
941
|
+
) : order.status === "expired" ? (
|
|
954
942
|
"Expired"
|
|
955
943
|
) : (
|
|
956
944
|
<TimeAgo date={new Date(order.expiredAt)} live={true} />
|
|
@@ -968,13 +956,13 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
968
956
|
<div className="flex w-full flex-col items-center gap-3 whitespace-nowrap py-2 text-sm">
|
|
969
957
|
<div className="flex w-full items-center justify-between gap-2">
|
|
970
958
|
<div className="text-as-primary/30">
|
|
971
|
-
{order.type ===
|
|
959
|
+
{order.type === "swap" || order.type === "mint_nft"
|
|
972
960
|
? "Expected to receive"
|
|
973
|
-
: order.type ===
|
|
961
|
+
: order.type === "join_tournament"
|
|
974
962
|
? "Join tournament"
|
|
975
|
-
: order.type ===
|
|
963
|
+
: order.type === "fund_tournament"
|
|
976
964
|
? "Fund tournament"
|
|
977
|
-
: order.type ===
|
|
965
|
+
: order.type === "custom"
|
|
978
966
|
? order.metadata.action
|
|
979
967
|
? capitalizeFirstLetter(order.metadata.action)
|
|
980
968
|
: "Contract execution"
|
|
@@ -982,14 +970,14 @@ export const OrderDetails = memo(function OrderDetails({
|
|
|
982
970
|
</div>
|
|
983
971
|
|
|
984
972
|
<div className="flex items-end gap-2">
|
|
985
|
-
{order.type ===
|
|
973
|
+
{order.type === "swap" ? (
|
|
986
974
|
`~${formattedExpectedDstAmount} ${dstToken.symbol}`
|
|
987
|
-
) : order.type ===
|
|
975
|
+
) : order.type === "mint_nft" ? (
|
|
988
976
|
<div className="flex items-center gap-2">
|
|
989
977
|
<img src={nft?.imageUrl} alt={nft?.name || "NFT"} className="h-5 w-5" />
|
|
990
978
|
<div>{nft?.name || "NFT"}</div>
|
|
991
979
|
</div>
|
|
992
|
-
) : order.type ===
|
|
980
|
+
) : order.type === "join_tournament" || order.type === "fund_tournament" ? (
|
|
993
981
|
<div className="flex items-center gap-2">
|
|
994
982
|
<img src={tournament?.imageUrl} alt={tournament?.name || "Tournament"} className="h-5 w-5" />
|
|
995
983
|
<div>{tournament?.name || "Tournament"}</div>
|
|
@@ -1071,7 +1059,7 @@ function TransactionDetails({
|
|
|
1071
1059
|
}: {
|
|
1072
1060
|
title: string;
|
|
1073
1061
|
chainId: number;
|
|
1074
|
-
tx:
|
|
1062
|
+
tx: components["schemas"]["DepositTx"] | components["schemas"]["RelayTx"] | components["schemas"]["ExecuteTx"] | null;
|
|
1075
1063
|
isProcessing: boolean;
|
|
1076
1064
|
delay?: number;
|
|
1077
1065
|
}) {
|
|
@@ -1,36 +1,35 @@
|
|
|
1
|
-
import { ALL_CHAINS, getChainName, getStatusDisplay
|
|
1
|
+
import { ALL_CHAINS, getChainName, getStatusDisplay } from "@b3dotfun/sdk/anyspend";
|
|
2
2
|
import { Badge, Button, useIsMobile } from "@b3dotfun/sdk/global-account/react";
|
|
3
3
|
import { cn } from "@b3dotfun/sdk/shared/utils";
|
|
4
4
|
import { formatTokenAmount } from "@b3dotfun/sdk/shared/utils/number";
|
|
5
5
|
import { ArrowRight, ChevronDown } from "lucide-react";
|
|
6
6
|
import TimeAgo from "react-timeago";
|
|
7
7
|
import { b3 } from "viem/chains";
|
|
8
|
+
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
8
9
|
|
|
9
10
|
interface OrderHistoryItemProps {
|
|
10
|
-
order: Order;
|
|
11
|
+
order: components["schemas"]["Order"];
|
|
11
12
|
onSelectOrder?: (orderId: string) => void;
|
|
12
13
|
mode: "modal" | "page";
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
export function OrderHistoryItem({ order, onSelectOrder, mode }: OrderHistoryItemProps) {
|
|
16
|
-
const nft = order.type ===
|
|
17
|
+
const nft = order.type === "mint_nft" ? order.metadata.nft : undefined;
|
|
17
18
|
const tournament =
|
|
18
|
-
order.type ===
|
|
19
|
-
? order.metadata.tournament
|
|
20
|
-
: undefined;
|
|
19
|
+
order.type === "join_tournament" || order.type === "fund_tournament" ? order.metadata.tournament : undefined;
|
|
21
20
|
const dstToken = order.metadata.dstToken;
|
|
22
21
|
const actualDstAmount =
|
|
23
|
-
order.type ===
|
|
24
|
-
order.type ===
|
|
25
|
-
order.type ===
|
|
26
|
-
order.type ===
|
|
22
|
+
order.type === "mint_nft" ||
|
|
23
|
+
order.type === "join_tournament" ||
|
|
24
|
+
order.type === "fund_tournament" ||
|
|
25
|
+
order.type === "custom"
|
|
27
26
|
? undefined
|
|
28
27
|
: order.payload.actualDstAmount;
|
|
29
28
|
const expectedDstAmount =
|
|
30
|
-
order.type ===
|
|
31
|
-
order.type ===
|
|
32
|
-
order.type ===
|
|
33
|
-
order.type ===
|
|
29
|
+
order.type === "mint_nft" ||
|
|
30
|
+
order.type === "join_tournament" ||
|
|
31
|
+
order.type === "fund_tournament" ||
|
|
32
|
+
order.type === "custom"
|
|
34
33
|
? undefined
|
|
35
34
|
: order.payload.expectedDstAmount;
|
|
36
35
|
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getStatusDisplay } from "@b3dotfun/sdk/anyspend";
|
|
2
|
+
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
2
3
|
import { Badge, TextShimmer } from "@b3dotfun/sdk/global-account/react";
|
|
3
4
|
import { Check, Loader2 } from "lucide-react";
|
|
4
5
|
import { memo } from "react";
|
|
5
6
|
|
|
6
|
-
export const OrderStatus = memo(function OrderStatus({ order }: { order: Order }) {
|
|
7
|
-
const isComplete = order.status ===
|
|
7
|
+
export const OrderStatus = memo(function OrderStatus({ order }: { order: components["schemas"]["Order"] }) {
|
|
8
|
+
const isComplete = order.status === "executed";
|
|
8
9
|
const { text, status: displayStatus } = getStatusDisplay(order);
|
|
9
10
|
|
|
10
11
|
return (
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
-
import { ALL_CHAINS, RELAY_ETH_ADDRESS, RELAY_SOLANA_MAINNET_CHAIN_ID
|
|
3
|
+
import { ALL_CHAINS, RELAY_ETH_ADDRESS, RELAY_SOLANA_MAINNET_CHAIN_ID } from "@b3dotfun/sdk/anyspend";
|
|
4
4
|
import { Button, useAccountWallet, useTokenBalancesByChain } from "@b3dotfun/sdk/global-account/react";
|
|
5
5
|
import { cn } from "@b3dotfun/sdk/shared/utils";
|
|
6
6
|
import { formatTokenAmount } from "@b3dotfun/sdk/shared/utils/number";
|
|
@@ -9,6 +9,7 @@ import { TokenSelector } from "@reservoir0x/relay-kit-ui";
|
|
|
9
9
|
import { CheckCircle2, ChevronsUpDown } from "lucide-react";
|
|
10
10
|
import { useMemo } from "react";
|
|
11
11
|
import { ChainTokenIcon } from "./ChainTokenIcon";
|
|
12
|
+
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
12
13
|
|
|
13
14
|
export function OrderToken({
|
|
14
15
|
context,
|
|
@@ -22,8 +23,8 @@ export function OrderToken({
|
|
|
22
23
|
}: {
|
|
23
24
|
context: "from" | "to";
|
|
24
25
|
address: string | undefined;
|
|
25
|
-
token: Token;
|
|
26
|
-
setToken: (token: Token) => void;
|
|
26
|
+
token: components["schemas"]["Token"];
|
|
27
|
+
setToken: (token: components["schemas"]["Token"]) => void;
|
|
27
28
|
chainId: number;
|
|
28
29
|
setChainId: (chainId: number) => void;
|
|
29
30
|
requiredAmount: bigint | undefined;
|
|
@@ -4,11 +4,12 @@ import { ChevronsUpDown } from "lucide-react";
|
|
|
4
4
|
import { useEffect, useRef } from "react";
|
|
5
5
|
import { NumericFormat } from "react-number-format";
|
|
6
6
|
|
|
7
|
-
import { ALL_CHAINS, RELAY_SOLANA_MAINNET_CHAIN_ID
|
|
7
|
+
import { ALL_CHAINS, RELAY_SOLANA_MAINNET_CHAIN_ID } from "@b3dotfun/sdk/anyspend";
|
|
8
8
|
import { Button } from "@b3dotfun/sdk/global-account/react";
|
|
9
9
|
import { cn } from "@b3dotfun/sdk/shared/utils";
|
|
10
10
|
import { TokenSelector } from "@reservoir0x/relay-kit-ui";
|
|
11
11
|
import { ChainTokenIcon } from "./ChainTokenIcon";
|
|
12
|
+
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
12
13
|
|
|
13
14
|
export function OrderTokenAmount({
|
|
14
15
|
disabled,
|
|
@@ -32,8 +33,8 @@ export function OrderTokenAmount({
|
|
|
32
33
|
onChangeInput: (value: string) => void;
|
|
33
34
|
context: "from" | "to";
|
|
34
35
|
address: string | undefined;
|
|
35
|
-
token: Token;
|
|
36
|
-
setToken: (token: Token) => void;
|
|
36
|
+
token: components["schemas"]["Token"];
|
|
37
|
+
setToken: (token: components["schemas"]["Token"]) => void;
|
|
37
38
|
chainId: number;
|
|
38
39
|
setChainId: (chainId: number) => void;
|
|
39
40
|
hideTokenSelect?: boolean;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { GetQuoteResponse, Nft, OnrampVendor, OrderType, Token, Tournament } from "@b3dotfun/sdk/anyspend";
|
|
2
1
|
import { useAnyspendCreateOnrampOrder, useGeoOnrampOptions } from "@b3dotfun/sdk/anyspend/react";
|
|
3
2
|
import { Button } from "@b3dotfun/sdk/global-account/react";
|
|
4
3
|
import centerTruncate from "@b3dotfun/sdk/shared/utils/centerTruncate";
|
|
@@ -7,6 +6,8 @@ import invariant from "invariant";
|
|
|
7
6
|
import { ChevronLeft, ChevronRight, Landmark, Loader2 } from "lucide-react";
|
|
8
7
|
import { useEffect, useRef, useState } from "react";
|
|
9
8
|
import { toast } from "sonner";
|
|
9
|
+
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
10
|
+
import { GetQuoteResponse } from "@b3dotfun/sdk/anyspend/types/api_req_res";
|
|
10
11
|
|
|
11
12
|
interface PanelOnrampPaymentProps {
|
|
12
13
|
srcAmountOnRamp: string;
|
|
@@ -17,14 +18,14 @@ interface PanelOnrampPaymentProps {
|
|
|
17
18
|
destinationTokenChainId?: number;
|
|
18
19
|
destinationTokenAddress?: string;
|
|
19
20
|
selectedDstChainId: number;
|
|
20
|
-
selectedDstToken: Token;
|
|
21
|
+
selectedDstToken: components["schemas"]["Token"];
|
|
21
22
|
anyspendQuote: GetQuoteResponse | undefined;
|
|
22
23
|
globalAddress?: string;
|
|
23
24
|
onOrderCreated: (orderId: string) => void;
|
|
24
25
|
onBack: () => void;
|
|
25
|
-
orderType:
|
|
26
|
-
nft?:
|
|
27
|
-
tournament?: Tournament & { contractAddress: string; entryPriceOrFundAmount: string };
|
|
26
|
+
orderType: components["schemas"]["Order"]["type"];
|
|
27
|
+
nft?: components["schemas"]["NFT"] & { price: string };
|
|
28
|
+
tournament?: components["schemas"]["Tournament"] & { contractAddress: string; entryPriceOrFundAmount: string };
|
|
28
29
|
payload?: any;
|
|
29
30
|
recipientEnsName?: string;
|
|
30
31
|
recipientImageUrl?: string;
|
|
@@ -83,7 +84,10 @@ export function PanelOnrampPayment({
|
|
|
83
84
|
},
|
|
84
85
|
});
|
|
85
86
|
|
|
86
|
-
const handlePaymentMethodClick = async (
|
|
87
|
+
const handlePaymentMethodClick = async (
|
|
88
|
+
vendor: components["schemas"]["OnrampMetadata"]["vendor"],
|
|
89
|
+
paymentMethod?: string,
|
|
90
|
+
) => {
|
|
87
91
|
try {
|
|
88
92
|
if (!recipientAddress) {
|
|
89
93
|
toast.error("Please select a recipient");
|
|
@@ -95,17 +99,17 @@ export function PanelOnrampPayment({
|
|
|
95
99
|
return;
|
|
96
100
|
}
|
|
97
101
|
|
|
98
|
-
if (vendor ===
|
|
102
|
+
if (vendor === "coinbase" && !coinbaseOnrampOptions) {
|
|
99
103
|
toast.error("Onramp options not available");
|
|
100
104
|
return;
|
|
101
105
|
}
|
|
102
106
|
|
|
103
|
-
if (vendor ===
|
|
107
|
+
if (vendor === "stripe" && !isStripeOnrampSupported) {
|
|
104
108
|
toast.error("Stripe onramp not available");
|
|
105
109
|
return;
|
|
106
110
|
}
|
|
107
111
|
|
|
108
|
-
if (vendor ===
|
|
112
|
+
if (vendor === "stripe-web2" && !isStripeWeb2Supported) {
|
|
109
113
|
toast.error("Stripe credit card not available");
|
|
110
114
|
return;
|
|
111
115
|
}
|
|
@@ -115,7 +119,7 @@ export function PanelOnrampPayment({
|
|
|
115
119
|
return;
|
|
116
120
|
}
|
|
117
121
|
|
|
118
|
-
const getDstToken = (): Token => {
|
|
122
|
+
const getDstToken = (): components["schemas"]["Token"] => {
|
|
119
123
|
if (isBuyMode) {
|
|
120
124
|
invariant(destinationTokenAddress, "destinationTokenAddress is required");
|
|
121
125
|
return {
|
|
@@ -173,11 +177,11 @@ export function PanelOnrampPayment({
|
|
|
173
177
|
className="flex items-center justify-between"
|
|
174
178
|
>
|
|
175
179
|
<p className="text-b3-react-foreground/60">
|
|
176
|
-
{orderType ===
|
|
180
|
+
{orderType === "swap"
|
|
177
181
|
? "Recipient"
|
|
178
|
-
: orderType ===
|
|
182
|
+
: orderType === "mint_nft"
|
|
179
183
|
? "Receive NFT at"
|
|
180
|
-
: orderType ===
|
|
184
|
+
: orderType === "join_tournament"
|
|
181
185
|
? "Join for"
|
|
182
186
|
: "Recipient"}
|
|
183
187
|
</p>
|
|
@@ -278,7 +282,7 @@ export function PanelOnrampPayment({
|
|
|
278
282
|
|
|
279
283
|
return (
|
|
280
284
|
<button
|
|
281
|
-
onClick={() => handlePaymentMethodClick(
|
|
285
|
+
onClick={() => handlePaymentMethodClick("coinbase", method.id)}
|
|
282
286
|
disabled={isCreatingOrder}
|
|
283
287
|
className="bg-b3-react-background border-b3-react-border hover:border-as-brand disabled:hover:border-b3-react-border group flex w-full items-center justify-between gap-4 rounded-xl border p-5 transition-all duration-200 hover:shadow-md disabled:cursor-not-allowed disabled:opacity-50"
|
|
284
288
|
>
|
|
@@ -307,7 +311,7 @@ export function PanelOnrampPayment({
|
|
|
307
311
|
{/* Stripe Option - Show if supported */}
|
|
308
312
|
{isStripeWeb2Supported && (
|
|
309
313
|
<button
|
|
310
|
-
onClick={() => handlePaymentMethodClick(
|
|
314
|
+
onClick={() => handlePaymentMethodClick("stripe-web2")}
|
|
311
315
|
className="bg-b3-react-background border-b3-react-border hover:border-as-brand group flex w-full items-center justify-between gap-4 rounded-xl border p-5 transition-all duration-200 hover:shadow-md"
|
|
312
316
|
>
|
|
313
317
|
<div className="flex items-center gap-4">
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
2
2
|
import { ShinyButton } from "@b3dotfun/sdk/global-account/react";
|
|
3
3
|
import { getPaymentMethodDescription, getVendorDisplayName } from "@b3dotfun/sdk/shared/utils/payment.utils";
|
|
4
4
|
import { ChevronRight } from "lucide-react";
|
|
5
5
|
import HowItWorks from "./HowItWorks";
|
|
6
6
|
|
|
7
7
|
interface PaymentOneClickProps {
|
|
8
|
-
order: Order;
|
|
8
|
+
order: components["schemas"]["Order"];
|
|
9
9
|
dstTokenSymbol: string;
|
|
10
10
|
}
|
|
11
11
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { USDC_BASE } from "@b3dotfun/sdk/anyspend";
|
|
2
2
|
import { useStripeClientSecret } from "@b3dotfun/sdk/anyspend/react";
|
|
3
3
|
import { STRIPE_CONFIG } from "@b3dotfun/sdk/anyspend/constants";
|
|
4
4
|
import { ShinyButton, useB3 } from "@b3dotfun/sdk/global-account/react";
|
|
@@ -9,12 +9,13 @@ import { HelpCircle, Info, X } from "lucide-react";
|
|
|
9
9
|
import { useEffect, useState } from "react";
|
|
10
10
|
import HowItWorks from "./HowItWorks";
|
|
11
11
|
import PaymentMethodIcons from "./PaymentMethodIcons";
|
|
12
|
+
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
12
13
|
|
|
13
14
|
const stripePromise = loadStripe(STRIPE_CONFIG.publishableKey);
|
|
14
15
|
|
|
15
16
|
interface PaymentStripeWeb2Props {
|
|
16
17
|
isMainnet: boolean;
|
|
17
|
-
order: Order;
|
|
18
|
+
order: components["schemas"]["Order"];
|
|
18
19
|
onPaymentSuccess?: (paymentIntent: any) => void;
|
|
19
20
|
}
|
|
20
21
|
|
|
@@ -83,7 +84,7 @@ function StripePaymentForm({
|
|
|
83
84
|
clientSecret,
|
|
84
85
|
onPaymentSuccess,
|
|
85
86
|
}: {
|
|
86
|
-
order: Order;
|
|
87
|
+
order: components["schemas"]["Order"];
|
|
87
88
|
clientSecret: string | null;
|
|
88
89
|
onPaymentSuccess?: (paymentIntent: any) => void;
|
|
89
90
|
}) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
2
2
|
import PaymentOneClick from "./PaymentOneClick";
|
|
3
3
|
import PaymentStripeWeb2 from "./PaymentStripeWeb2";
|
|
4
4
|
|
|
5
5
|
interface PaymentVendorUIProps {
|
|
6
6
|
isMainnet: boolean;
|
|
7
|
-
order: Order;
|
|
7
|
+
order: components["schemas"]["Order"];
|
|
8
8
|
dstTokenSymbol: string;
|
|
9
9
|
}
|
|
10
10
|
|
|
@@ -17,7 +17,7 @@ export default function PaymentVendorUI({ isMainnet, order, dstTokenSymbol }: Pa
|
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
// Handle Stripe Web2 payment flow
|
|
20
|
-
if (vendor ===
|
|
20
|
+
if (vendor === "stripe-web2") {
|
|
21
21
|
return <PaymentStripeWeb2 isMainnet={isMainnet} order={order} />;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { components } from "@b3dotfun/sdk/anyspend/types/api";
|
|
2
2
|
import { useTokenBalance } from "@b3dotfun/sdk/global-account/react";
|
|
3
3
|
import { formatUnits } from "viem";
|
|
4
4
|
|
|
@@ -7,7 +7,7 @@ export function TokenBalance({
|
|
|
7
7
|
walletAddress,
|
|
8
8
|
onChangeInput,
|
|
9
9
|
}: {
|
|
10
|
-
token: Token;
|
|
10
|
+
token: components["schemas"]["Token"];
|
|
11
11
|
walletAddress: string | undefined;
|
|
12
12
|
onChangeInput: (value: string) => void;
|
|
13
13
|
}) {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
// Components
|
|
2
2
|
export { AnySpend } from "./AnySpend";
|
|
3
|
+
export { AnySpendBondKit } from "./AnySpendBondKit";
|
|
3
4
|
export { AnySpendBuySpin } from "./AnySpendBuySpin";
|
|
4
5
|
export { AnySpendCustom } from "./AnySpendCustom";
|
|
5
6
|
export { AnySpendNFT } from "./AnySpendNFT";
|
|
6
|
-
export { AnySpendNFTButton } from "./AnySpendNFTButton";
|
|
7
7
|
export { AnyspendSignatureMint } from "./AnyspendSignatureMint";
|
|
8
8
|
export { AnySpendStakeB3 } from "./AnySpendStakeB3";
|
|
9
9
|
export { AnySpendTournament } from "./AnySpendTournament";
|
|
10
|
+
export { AnySpendNFTButton } from "./common/AnySpendNFTButton";
|
|
10
11
|
|
|
11
12
|
// Common Components
|
|
12
13
|
export { ChainTokenIcon } from "./common/ChainTokenIcon";
|