@b3dotfun/sdk 0.0.1-alpha.1
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 +345 -0
- package/constants/chains/b3Chain.js +2 -0
- package/dist/cjs/anyspend/abis/abi-usdc-base.d.ts +1074 -0
- package/dist/cjs/anyspend/abis/abi-usdc-base.js +602 -0
- package/dist/cjs/anyspend/abis/erc20-staking.d.ts +540 -0
- package/dist/cjs/anyspend/abis/erc20-staking.js +301 -0
- package/dist/cjs/anyspend/constants/index.d.ts +28 -0
- package/dist/cjs/anyspend/constants/index.js +72 -0
- package/dist/cjs/anyspend/index.d.ts +13 -0
- package/dist/cjs/anyspend/index.js +35 -0
- package/dist/cjs/anyspend/react/components/AnySpend.d.ts +22 -0
- package/dist/cjs/anyspend/react/components/AnySpend.js +700 -0
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +9 -0
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +333 -0
- package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +22 -0
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +399 -0
- package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +8 -0
- package/dist/cjs/anyspend/react/components/AnySpendNFT.js +31 -0
- package/dist/cjs/anyspend/react/components/AnySpendNFTButton.d.ts +7 -0
- package/dist/cjs/anyspend/react/components/AnySpendNFTButton.js +19 -0
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +8 -0
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +269 -0
- package/dist/cjs/anyspend/react/components/AnySpendTournament.d.ts +27 -0
- package/dist/cjs/anyspend/react/components/AnySpendTournament.js +21 -0
- package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.d.ts +5 -0
- package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.js +7 -0
- package/dist/cjs/anyspend/react/components/common/HowItWorks.d.ts +10 -0
- package/dist/cjs/anyspend/react/components/common/HowItWorks.js +7 -0
- package/dist/cjs/anyspend/react/components/common/OrderDetails.d.ts +14 -0
- package/dist/cjs/anyspend/react/components/common/OrderDetails.js +391 -0
- package/dist/cjs/anyspend/react/components/common/OrderHistory.d.ts +7 -0
- package/dist/cjs/anyspend/react/components/common/OrderHistory.js +24 -0
- package/dist/cjs/anyspend/react/components/common/OrderHistoryItem.d.ts +8 -0
- package/dist/cjs/anyspend/react/components/common/OrderHistoryItem.js +38 -0
- package/dist/cjs/anyspend/react/components/common/OrderStatus.d.ts +4 -0
- package/dist/cjs/anyspend/react/components/common/OrderStatus.js +14 -0
- package/dist/cjs/anyspend/react/components/common/OrderToken.d.ts +11 -0
- package/dist/cjs/anyspend/react/components/common/OrderToken.js +59 -0
- package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.d.ts +18 -0
- package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.js +50 -0
- package/dist/cjs/anyspend/react/components/common/PanelOnramp.d.ts +4 -0
- package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +46 -0
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.d.ts +29 -0
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +124 -0
- package/dist/cjs/anyspend/react/components/common/PaymentMethodIcons.d.ts +1 -0
- package/dist/cjs/anyspend/react/components/common/PaymentMethodIcons.js +15 -0
- package/dist/cjs/anyspend/react/components/common/PaymentOneClick.d.ts +7 -0
- package/dist/cjs/anyspend/react/components/common/PaymentOneClick.js +27 -0
- package/dist/cjs/anyspend/react/components/common/PaymentOptions.d.ts +1 -0
- package/dist/cjs/anyspend/react/components/common/PaymentOptions.js +7 -0
- package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.d.ts +8 -0
- package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.js +153 -0
- package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.d.ts +8 -0
- package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.js +23 -0
- package/dist/cjs/anyspend/react/components/common/TokenBalance.d.ts +6 -0
- package/dist/cjs/anyspend/react/components/common/TokenBalance.js +21 -0
- package/dist/cjs/anyspend/react/components/icons/EthIcon.d.ts +3 -0
- package/dist/cjs/anyspend/react/components/icons/EthIcon.js +7 -0
- package/dist/cjs/anyspend/react/components/icons/SolIcon.d.ts +3 -0
- package/dist/cjs/anyspend/react/components/icons/SolIcon.js +7 -0
- package/dist/cjs/anyspend/react/components/icons/USDCIcon.d.ts +3 -0
- package/dist/cjs/anyspend/react/components/icons/USDCIcon.js +7 -0
- package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.d.ts +6 -0
- package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.js +21 -0
- package/dist/cjs/anyspend/react/hooks/index.d.ts +13 -0
- package/dist/cjs/anyspend/react/hooks/index.js +29 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +39 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +83 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +34 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +68 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +706 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +37 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +634 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.js +20 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.d.ts +23 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +52 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.js +39 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.d.ts +23 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.js +18 -0
- package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +48 -0
- package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.js +19 -0
- package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.d.ts +40 -0
- package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.js +53 -0
- package/dist/cjs/anyspend/react/hooks/useGetGeo.d.ts +16 -0
- package/dist/cjs/anyspend/react/hooks/useGetGeo.js +15 -0
- package/dist/cjs/anyspend/react/hooks/usePermitData.d.ts +92 -0
- package/dist/cjs/anyspend/react/hooks/usePermitData.js +158 -0
- package/dist/cjs/anyspend/react/hooks/useStripeClientSecret.d.ts +6 -0
- package/dist/cjs/anyspend/react/hooks/useStripeClientSecret.js +18 -0
- package/dist/cjs/anyspend/react/hooks/useStripeSupport.d.ts +10 -0
- package/dist/cjs/anyspend/react/hooks/useStripeSupport.js +20 -0
- package/dist/cjs/anyspend/react/providers/AnyspendProvider.d.ts +27 -0
- package/dist/cjs/anyspend/react/providers/AnyspendProvider.js +42 -0
- package/dist/cjs/anyspend/services/anyspend.d.ts +372 -0
- package/dist/cjs/anyspend/services/anyspend.js +126 -0
- package/dist/cjs/anyspend/types/chain.d.ts +26 -0
- package/dist/cjs/anyspend/types/chain.js +8 -0
- package/dist/cjs/anyspend/types/custom.d.ts +130 -0
- package/dist/cjs/anyspend/types/custom.js +19 -0
- package/dist/cjs/anyspend/types/globalWallet.d.ts +18 -0
- package/dist/cjs/anyspend/types/globalWallet.js +10 -0
- package/dist/cjs/anyspend/types/index.d.ts +13 -0
- package/dist/cjs/anyspend/types/index.js +29 -0
- package/dist/cjs/anyspend/types/nft.d.ts +267 -0
- package/dist/cjs/anyspend/types/nft.js +36 -0
- package/dist/cjs/anyspend/types/onramp.d.ts +25 -0
- package/dist/cjs/anyspend/types/onramp.js +17 -0
- package/dist/cjs/anyspend/types/order.d.ts +1771 -0
- package/dist/cjs/anyspend/types/order.js +85 -0
- package/dist/cjs/anyspend/types/permit.d.ts +21 -0
- package/dist/cjs/anyspend/types/permit.js +11 -0
- package/dist/cjs/anyspend/types/relay.d.ts +10 -0
- package/dist/cjs/anyspend/types/relay.js +12 -0
- package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +4113 -0
- package/dist/cjs/anyspend/types/req-res/createOrder.js +60 -0
- package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +120 -0
- package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.js +31 -0
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +3129 -0
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.js +23 -0
- package/dist/cjs/anyspend/types/req-res/getOrderByCreator.d.ts +28 -0
- package/dist/cjs/anyspend/types/req-res/getOrderByCreator.js +11 -0
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +2278 -0
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.js +11 -0
- package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +253 -0
- package/dist/cjs/anyspend/types/req-res/getQuote.js +46 -0
- package/dist/cjs/anyspend/types/req-res/getTokenList.d.ts +63 -0
- package/dist/cjs/anyspend/types/req-res/getTokenList.js +18 -0
- package/dist/cjs/anyspend/types/req-res/index.d.ts +8 -0
- package/dist/cjs/anyspend/types/req-res/index.js +24 -0
- package/dist/cjs/anyspend/types/req-res/sendPermitData.d.ts +66 -0
- package/dist/cjs/anyspend/types/req-res/sendPermitData.js +11 -0
- package/dist/cjs/anyspend/types/req-res/stripe.d.ts +0 -0
- package/dist/cjs/anyspend/types/req-res/stripe.js +1 -0
- package/dist/cjs/anyspend/types/swap.d.ts +119 -0
- package/dist/cjs/anyspend/types/swap.js +13 -0
- package/dist/cjs/anyspend/types/token.d.ts +34 -0
- package/dist/cjs/anyspend/types/token.js +14 -0
- package/dist/cjs/anyspend/types/tournament.d.ts +174 -0
- package/dist/cjs/anyspend/types/tournament.js +24 -0
- package/dist/cjs/anyspend/types/transaction.d.ts +84 -0
- package/dist/cjs/anyspend/types/transaction.js +34 -0
- package/dist/cjs/anyspend/utils/address.d.ts +4 -0
- package/dist/cjs/anyspend/utils/address.js +29 -0
- package/dist/cjs/anyspend/utils/chain.d.ts +25 -0
- package/dist/cjs/anyspend/utils/chain.js +294 -0
- package/dist/cjs/anyspend/utils/format.d.ts +6 -0
- package/dist/cjs/anyspend/utils/format.js +59 -0
- package/dist/cjs/anyspend/utils/index.d.ts +8 -0
- package/dist/cjs/anyspend/utils/index.js +24 -0
- package/dist/cjs/anyspend/utils/json.d.ts +1 -0
- package/dist/cjs/anyspend/utils/json.js +6 -0
- package/dist/cjs/anyspend/utils/number.d.ts +13 -0
- package/dist/cjs/anyspend/utils/number.js +90 -0
- package/dist/cjs/anyspend/utils/orderPayload.d.ts +127 -0
- package/dist/cjs/anyspend/utils/orderPayload.js +56 -0
- package/dist/cjs/anyspend/utils/string.d.ts +1 -0
- package/dist/cjs/anyspend/utils/string.js +9 -0
- package/dist/cjs/anyspend/utils/token.d.ts +7 -0
- package/dist/cjs/anyspend/utils/token.js +73 -0
- package/dist/cjs/generated/chain-networks.json +483 -0
- package/dist/cjs/global-account/app.d.ts +4 -0
- package/dist/cjs/global-account/app.js +65 -0
- package/dist/cjs/global-account/app.native.d.ts +5 -0
- package/dist/cjs/global-account/app.native.js +90 -0
- package/dist/cjs/global-account/bsmnt.d.ts +4 -0
- package/dist/cjs/global-account/bsmnt.js +69 -0
- package/dist/cjs/global-account/bsmnt.native.d.ts +5 -0
- package/dist/cjs/global-account/bsmnt.native.js +93 -0
- package/dist/cjs/global-account/index.d.ts +9 -0
- package/dist/cjs/global-account/index.js +27 -0
- package/dist/cjs/global-account/index.native.d.ts +3 -0
- package/dist/cjs/global-account/index.native.js +18 -0
- package/dist/cjs/global-account/react/components/AccountAssets/AccountAssets.d.ts +7 -0
- package/dist/cjs/global-account/react/components/AccountAssets/AccountAssets.js +13 -0
- package/dist/cjs/global-account/react/components/B3DynamicModal.d.ts +1 -0
- package/dist/cjs/global-account/react/components/B3DynamicModal.js +92 -0
- package/dist/cjs/global-account/react/components/B3Provider.d.ts +53 -0
- package/dist/cjs/global-account/react/components/B3Provider.js +118 -0
- package/dist/cjs/global-account/react/components/B3Provider.native.d.ts +46 -0
- package/dist/cjs/global-account/react/components/B3Provider.native.js +76 -0
- package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.d.ts +11 -0
- package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.js +85 -0
- package/dist/cjs/global-account/react/components/MintButton/MintButton.d.ts +17 -0
- package/dist/cjs/global-account/react/components/MintButton/MintButton.js +51 -0
- package/dist/cjs/global-account/react/components/ProfileAvatar.d.ts +0 -0
- package/dist/cjs/global-account/react/components/ProfileAvatar.js +127 -0
- package/dist/cjs/global-account/react/components/RelayKitProviderWrapper.d.ts +4 -0
- package/dist/cjs/global-account/react/components/RelayKitProviderWrapper.js +29 -0
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +6 -0
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.js +83 -0
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +11 -0
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +26 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +10 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.js +45 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +6 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +203 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.d.ts +11 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +51 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +5 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.js +9 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/components/PermissionItem.d.ts +10 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/components/PermissionItem.js +8 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +6 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.js +9 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.d.ts +24 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.js +89 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +14 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +76 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.d.ts +17 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.js +56 -0
- package/dist/cjs/global-account/react/components/StyleRoot.d.ts +4 -0
- package/dist/cjs/global-account/react/components/StyleRoot.js +10 -0
- package/dist/cjs/global-account/react/components/Transak/TransakModal.d.ts +1 -0
- package/dist/cjs/global-account/react/components/Transak/TransakModal.js +113 -0
- package/dist/cjs/global-account/react/components/custom/Button.d.ts +12 -0
- package/dist/cjs/global-account/react/components/custom/Button.js +36 -0
- package/dist/cjs/global-account/react/components/custom/ClientOnly.d.ts +7 -0
- package/dist/cjs/global-account/react/components/custom/ClientOnly.js +13 -0
- package/dist/cjs/global-account/react/components/custom/CopyToClipboard.d.ts +7 -0
- package/dist/cjs/global-account/react/components/custom/CopyToClipboard.js +21 -0
- package/dist/cjs/global-account/react/components/custom/StaggeredFadeLoader.d.ts +4 -0
- package/dist/cjs/global-account/react/components/custom/StaggeredFadeLoader.js +24 -0
- package/dist/cjs/global-account/react/components/custom/WalletConnectorIcon.d.ts +4 -0
- package/dist/cjs/global-account/react/components/custom/WalletConnectorIcon.js +27 -0
- package/dist/cjs/global-account/react/components/magicui/AnimatedLottie.d.ts +13 -0
- package/dist/cjs/global-account/react/components/magicui/AnimatedLottie.js +93 -0
- package/dist/cjs/global-account/react/components/ui/Loading.d.ts +7 -0
- package/dist/cjs/global-account/react/components/ui/Loading.js +18 -0
- package/dist/cjs/global-account/react/components/ui/ShinyButton.d.ts +14 -0
- package/dist/cjs/global-account/react/components/ui/ShinyButton.js +29 -0
- package/dist/cjs/global-account/react/components/ui/TabSystem.d.ts +30 -0
- package/dist/cjs/global-account/react/components/ui/TabSystem.js +86 -0
- package/dist/cjs/global-account/react/components/ui/Tabs.d.ts +9 -0
- package/dist/cjs/global-account/react/components/ui/Tabs.js +53 -0
- package/dist/cjs/global-account/react/components/ui/badge.d.ts +9 -0
- package/dist/cjs/global-account/react/components/ui/badge.js +24 -0
- package/dist/cjs/global-account/react/components/ui/button.d.ts +11 -0
- package/dist/cjs/global-account/react/components/ui/button.js +72 -0
- package/dist/cjs/global-account/react/components/ui/command.d.ts +82 -0
- package/dist/cjs/global-account/react/components/ui/command.js +74 -0
- package/dist/cjs/global-account/react/components/ui/dialog.d.ts +30 -0
- package/dist/cjs/global-account/react/components/ui/dialog.js +71 -0
- package/dist/cjs/global-account/react/components/ui/drawer.d.ts +22 -0
- package/dist/cjs/global-account/react/components/ui/drawer.js +71 -0
- package/dist/cjs/global-account/react/components/ui/glare-card-rounded.d.ts +4 -0
- package/dist/cjs/global-account/react/components/ui/glare-card-rounded.js +146 -0
- package/dist/cjs/global-account/react/components/ui/glare-card.d.ts +4 -0
- package/dist/cjs/global-account/react/components/ui/glare-card.js +108 -0
- package/dist/cjs/global-account/react/components/ui/input.d.ts +5 -0
- package/dist/cjs/global-account/react/components/ui/input.js +46 -0
- package/dist/cjs/global-account/react/components/ui/popover.d.ts +6 -0
- package/dist/cjs/global-account/react/components/ui/popover.js +52 -0
- package/dist/cjs/global-account/react/components/ui/scroll-area.d.ts +5 -0
- package/dist/cjs/global-account/react/components/ui/scroll-area.js +47 -0
- package/dist/cjs/global-account/react/components/ui/skeleton.d.ts +2 -0
- package/dist/cjs/global-account/react/components/ui/skeleton.js +8 -0
- package/dist/cjs/global-account/react/components/ui/text-loop.d.ts +11 -0
- package/dist/cjs/global-account/react/components/ui/text-loop.js +29 -0
- package/dist/cjs/global-account/react/components/ui/text-shimmer.d.ts +10 -0
- package/dist/cjs/global-account/react/components/ui/text-shimmer.js +22 -0
- package/dist/cjs/global-account/react/components/ui/tooltip.d.ts +7 -0
- package/dist/cjs/global-account/react/components/ui/tooltip.js +50 -0
- package/dist/cjs/global-account/react/components/ui/transition-panel.d.ts +14 -0
- package/dist/cjs/global-account/react/components/ui/transition-panel.js +10 -0
- package/dist/cjs/global-account/react/hooks/useAccountAssets.d.ts +3 -0
- package/dist/cjs/global-account/react/hooks/useAccountAssets.js +35 -0
- package/dist/cjs/global-account/react/hooks/useAccountWallet.d.ts +18 -0
- package/dist/cjs/global-account/react/hooks/useAccountWallet.js +70 -0
- package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.d.ts +21 -0
- package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.js +56 -0
- package/dist/cjs/global-account/react/hooks/useAuthentication.d.ts +10 -0
- package/dist/cjs/global-account/react/hooks/useAuthentication.js +123 -0
- package/dist/cjs/global-account/react/hooks/useB3BalanceFromAddresses.d.ts +15 -0
- package/dist/cjs/global-account/react/hooks/useB3BalanceFromAddresses.js +70 -0
- package/dist/cjs/global-account/react/hooks/useBestTransactionPath.d.ts +41 -0
- package/dist/cjs/global-account/react/hooks/useBestTransactionPath.js +150 -0
- package/dist/cjs/global-account/react/hooks/useBsmntProfile.d.ts +4 -0
- package/dist/cjs/global-account/react/hooks/useBsmntProfile.js +13 -0
- package/dist/cjs/global-account/react/hooks/useChainSwitchWithAction.d.ts +5 -0
- package/dist/cjs/global-account/react/hooks/useChainSwitchWithAction.js +73 -0
- package/dist/cjs/global-account/react/hooks/useClaim.d.ts +16 -0
- package/dist/cjs/global-account/react/hooks/useClaim.js +50 -0
- package/dist/cjs/global-account/react/hooks/useConnect.d.ts +9 -0
- package/dist/cjs/global-account/react/hooks/useConnect.js +52 -0
- package/dist/cjs/global-account/react/hooks/useExchangeRate.d.ts +12 -0
- package/dist/cjs/global-account/react/hooks/useExchangeRate.js +30 -0
- package/dist/cjs/global-account/react/hooks/useGetAllTWSigners.d.ts +30 -0
- package/dist/cjs/global-account/react/hooks/useGetAllTWSigners.js +77 -0
- package/dist/cjs/global-account/react/hooks/useGetGeo.d.ts +17 -0
- package/dist/cjs/global-account/react/hooks/useGetGeo.js +20 -0
- package/dist/cjs/global-account/react/hooks/useHandleConnectWithPrivy.d.ts +11 -0
- package/dist/cjs/global-account/react/hooks/useHandleConnectWithPrivy.js +69 -0
- package/dist/cjs/global-account/react/hooks/useHasMounted.d.ts +1 -0
- package/dist/cjs/global-account/react/hooks/useHasMounted.js +11 -0
- package/dist/cjs/global-account/react/hooks/useIsMobile.d.ts +2 -0
- package/dist/cjs/global-account/react/hooks/useIsMobile.js +8 -0
- package/dist/cjs/global-account/react/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/cjs/global-account/react/hooks/useIsomorphicLayoutEffect.js +5 -0
- package/dist/cjs/global-account/react/hooks/useMediaQuery.d.ts +6 -0
- package/dist/cjs/global-account/react/hooks/useMediaQuery.js +47 -0
- package/dist/cjs/global-account/react/hooks/useNativeBalance.d.ts +22 -0
- package/dist/cjs/global-account/react/hooks/useNativeBalance.js +76 -0
- package/dist/cjs/global-account/react/hooks/useOnchainName.d.ts +19 -0
- package/dist/cjs/global-account/react/hooks/useOnchainName.js +193 -0
- package/dist/cjs/global-account/react/hooks/useOneBalance.d.ts +26 -0
- package/dist/cjs/global-account/react/hooks/useOneBalance.js +69 -0
- package/dist/cjs/global-account/react/hooks/useQueryB3.d.ts +25 -0
- package/dist/cjs/global-account/react/hooks/useQueryB3.js +40 -0
- package/dist/cjs/global-account/react/hooks/useQueryBSMNT.d.ts +25 -0
- package/dist/cjs/global-account/react/hooks/useQueryBSMNT.js +40 -0
- package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.d.ts +16 -0
- package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.js +49 -0
- package/dist/cjs/global-account/react/hooks/useRouter.d.ts +14 -0
- package/dist/cjs/global-account/react/hooks/useRouter.js +78 -0
- package/dist/cjs/global-account/react/hooks/useSearchParamsSSR.d.ts +2 -0
- package/dist/cjs/global-account/react/hooks/useSearchParamsSSR.js +31 -0
- package/dist/cjs/global-account/react/hooks/useSiwe.d.ts +4 -0
- package/dist/cjs/global-account/react/hooks/useSiwe.js +38 -0
- package/dist/cjs/global-account/react/hooks/useTokenBalance.d.ts +12 -0
- package/dist/cjs/global-account/react/hooks/useTokenBalance.js +64 -0
- package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.d.ts +22 -0
- package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.js +58 -0
- package/dist/cjs/global-account/react/hooks/useTokenData.d.ts +9 -0
- package/dist/cjs/global-account/react/hooks/useTokenData.js +47 -0
- package/dist/cjs/global-account/react/hooks/useTokenFromUrl.d.ts +17 -0
- package/dist/cjs/global-account/react/hooks/useTokenFromUrl.js +30 -0
- package/dist/cjs/global-account/react/hooks/useTokenPrice.d.ts +17 -0
- package/dist/cjs/global-account/react/hooks/useTokenPrice.js +48 -0
- package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.d.ts +15 -0
- package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.js +34 -0
- package/dist/cjs/global-account/react/hooks/useTokensFromAddress.d.ts +54 -0
- package/dist/cjs/global-account/react/hooks/useTokensFromAddress.js +51 -0
- package/dist/cjs/global-account/react/hooks/useURLParams.d.ts +8 -0
- package/dist/cjs/global-account/react/hooks/useURLParams.js +38 -0
- package/dist/cjs/global-account/react/stores/useAuthStore.d.ts +26 -0
- package/dist/cjs/global-account/react/stores/useAuthStore.js +39 -0
- package/dist/cjs/global-account/react/stores/useModalStore.d.ts +267 -0
- package/dist/cjs/global-account/react/stores/useModalStore.js +36 -0
- package/dist/cjs/global-account/server.d.ts +8 -0
- package/dist/cjs/global-account/server.js +26 -0
- package/dist/cjs/global-account/types/b3-api.d.ts +3 -0
- package/dist/cjs/global-account/types/b3-api.js +41 -0
- package/dist/cjs/global-account/types/b3-api.types.d.ts +51 -0
- package/dist/cjs/global-account/types/b3-api.types.js +4 -0
- package/dist/cjs/global-account/types/chain-networks.d.ts +44 -0
- package/dist/cjs/global-account/types/chain-networks.js +48 -0
- package/dist/cjs/global-account/types/feature-flags.d.ts +8 -0
- package/dist/cjs/global-account/types/feature-flags.js +10 -0
- package/dist/cjs/global-account/types/permissions.d.ts +21 -0
- package/dist/cjs/global-account/types/permissions.js +2 -0
- package/dist/cjs/global-account/types/reservoir.types.d.ts +89 -0
- package/dist/cjs/global-account/types/reservoir.types.js +2 -0
- package/dist/cjs/global-account/types/simplehash.types.d.ts +292 -0
- package/dist/cjs/global-account/types/simplehash.types.js +2 -0
- package/dist/cjs/global-account/types.d.ts +19 -0
- package/dist/cjs/global-account/types.js +2 -0
- package/dist/cjs/shared/constants/chains/b3Chain.d.ts +144 -0
- package/dist/cjs/shared/constants/chains/b3Chain.js +167 -0
- package/dist/cjs/shared/constants/chains/chainPlatformMap.d.ts +24 -0
- package/dist/cjs/shared/constants/chains/chainPlatformMap.js +47 -0
- package/dist/cjs/shared/constants/chains/supported.d.ts +53 -0
- package/dist/cjs/shared/constants/chains/supported.js +31 -0
- package/dist/cjs/shared/constants/index.d.ts +15 -0
- package/dist/cjs/shared/constants/index.js +21 -0
- package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +11494 -0
- package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.js +1355 -0
- package/dist/cjs/shared/thirdweb/generated/client.gen.d.ts +12 -0
- package/dist/cjs/shared/thirdweb/generated/client.gen.js +6 -0
- package/dist/cjs/shared/thirdweb/generated/index.d.ts +2 -0
- package/dist/cjs/shared/thirdweb/generated/index.js +19 -0
- package/dist/cjs/shared/thirdweb/generated/sdk.gen.d.ts +1448 -0
- package/dist/cjs/shared/thirdweb/generated/sdk.gen.js +1037 -0
- package/dist/cjs/shared/thirdweb/generated/types.gen.d.ts +4159 -0
- package/dist/cjs/shared/thirdweb/generated/types.gen.js +3 -0
- package/dist/cjs/shared/thirdweb/initiateClient.d.ts +1 -0
- package/dist/cjs/shared/thirdweb/initiateClient.js +27 -0
- package/dist/cjs/shared/thirdweb/openapi-ts.config.d.ts +2 -0
- package/dist/cjs/shared/thirdweb/openapi-ts.config.js +8 -0
- package/dist/cjs/shared/utils/b3Ens.d.ts +5 -0
- package/dist/cjs/shared/utils/b3Ens.js +27 -0
- package/dist/cjs/shared/utils/centerTruncate.d.ts +1 -0
- package/dist/cjs/shared/utils/centerTruncate.js +14 -0
- package/dist/cjs/shared/utils/chain-transformers.d.ts +5 -0
- package/dist/cjs/shared/utils/chain-transformers.js +50 -0
- package/dist/cjs/shared/utils/chains.d.ts +6 -0
- package/dist/cjs/shared/utils/chains.js +38 -0
- package/dist/cjs/shared/utils/cn.d.ts +2 -0
- package/dist/cjs/shared/utils/cn.js +8 -0
- package/dist/cjs/shared/utils/colors.d.ts +2 -0
- package/dist/cjs/shared/utils/colors.js +33 -0
- package/dist/cjs/shared/utils/cookies.d.ts +3 -0
- package/dist/cjs/shared/utils/cookies.js +17 -0
- package/dist/cjs/shared/utils/debug.d.ts +4 -0
- package/dist/cjs/shared/utils/debug.js +20 -0
- package/dist/cjs/shared/utils/fetchBalances.d.ts +16 -0
- package/dist/cjs/shared/utils/fetchBalances.js +64 -0
- package/dist/cjs/shared/utils/fetchBsmntProfile.d.ts +1 -0
- package/dist/cjs/shared/utils/fetchBsmntProfile.js +26 -0
- package/dist/cjs/shared/utils/formatAddress.d.ts +2 -0
- package/dist/cjs/shared/utils/formatAddress.js +19 -0
- package/dist/cjs/shared/utils/formatNumber.d.ts +7 -0
- package/dist/cjs/shared/utils/formatNumber.js +49 -0
- package/dist/cjs/shared/utils/index.d.ts +2 -0
- package/dist/cjs/shared/utils/index.js +23 -0
- package/dist/cjs/shared/utils/insights.d.ts +7 -0
- package/dist/cjs/shared/utils/insights.js +388 -0
- package/dist/cjs/shared/utils/ipfs.d.ts +12 -0
- package/dist/cjs/shared/utils/ipfs.js +32 -0
- package/dist/cjs/shared/utils/number.d.ts +11 -0
- package/dist/cjs/shared/utils/number.js +110 -0
- package/dist/cjs/shared/utils/payment.utils.d.ts +5 -0
- package/dist/cjs/shared/utils/payment.utils.js +36 -0
- package/dist/cjs/shared/utils/simplehash.d.ts +12 -0
- package/dist/cjs/shared/utils/simplehash.js +308 -0
- package/dist/cjs/shared/utils/sprinter.d.ts +1 -0
- package/dist/cjs/shared/utils/sprinter.js +15 -0
- package/dist/cjs/shared/utils/thirdweb-insights.d.ts +105 -0
- package/dist/cjs/shared/utils/thirdweb-insights.js +200 -0
- package/dist/cjs/shared/utils/thirdweb.d.ts +1 -0
- package/dist/cjs/shared/utils/thirdweb.js +11 -0
- package/dist/cjs/styles/index.d.ts +20 -0
- package/dist/cjs/styles/index.js +22 -0
- package/dist/esm/anyspend/abis/abi-usdc-base.d.ts +1074 -0
- package/dist/esm/anyspend/abis/abi-usdc-base.js +599 -0
- package/dist/esm/anyspend/abis/erc20-staking.d.ts +540 -0
- package/dist/esm/anyspend/abis/erc20-staking.js +298 -0
- package/dist/esm/anyspend/constants/index.d.ts +28 -0
- package/dist/esm/anyspend/constants/index.js +69 -0
- package/dist/esm/anyspend/index.d.ts +13 -0
- package/dist/esm/anyspend/index.js +19 -0
- package/dist/esm/anyspend/react/components/AnySpend.d.ts +22 -0
- package/dist/esm/anyspend/react/components/AnySpend.js +693 -0
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +9 -0
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +327 -0
- package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +22 -0
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +393 -0
- package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +8 -0
- package/dist/esm/anyspend/react/components/AnySpendNFT.js +25 -0
- package/dist/esm/anyspend/react/components/AnySpendNFTButton.d.ts +7 -0
- package/dist/esm/anyspend/react/components/AnySpendNFTButton.js +16 -0
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +8 -0
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +263 -0
- package/dist/esm/anyspend/react/components/AnySpendTournament.d.ts +27 -0
- package/dist/esm/anyspend/react/components/AnySpendTournament.js +15 -0
- package/dist/esm/anyspend/react/components/common/ChainTokenIcon.d.ts +5 -0
- package/dist/esm/anyspend/react/components/common/ChainTokenIcon.js +4 -0
- package/dist/esm/anyspend/react/components/common/HowItWorks.d.ts +10 -0
- package/dist/esm/anyspend/react/components/common/HowItWorks.js +4 -0
- package/dist/esm/anyspend/react/components/common/OrderDetails.d.ts +14 -0
- package/dist/esm/anyspend/react/components/common/OrderDetails.js +385 -0
- package/dist/esm/anyspend/react/components/common/OrderHistory.d.ts +7 -0
- package/dist/esm/anyspend/react/components/common/OrderHistory.js +18 -0
- package/dist/esm/anyspend/react/components/common/OrderHistoryItem.d.ts +8 -0
- package/dist/esm/anyspend/react/components/common/OrderHistoryItem.js +32 -0
- package/dist/esm/anyspend/react/components/common/OrderStatus.d.ts +4 -0
- package/dist/esm/anyspend/react/components/common/OrderStatus.js +11 -0
- package/dist/esm/anyspend/react/components/common/OrderToken.d.ts +11 -0
- package/dist/esm/anyspend/react/components/common/OrderToken.js +56 -0
- package/dist/esm/anyspend/react/components/common/OrderTokenAmount.d.ts +18 -0
- package/dist/esm/anyspend/react/components/common/OrderTokenAmount.js +47 -0
- package/dist/esm/anyspend/react/components/common/PanelOnramp.d.ts +4 -0
- package/dist/esm/anyspend/react/components/common/PanelOnramp.js +40 -0
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.d.ts +29 -0
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +118 -0
- package/dist/esm/anyspend/react/components/common/PaymentMethodIcons.d.ts +1 -0
- package/dist/esm/anyspend/react/components/common/PaymentMethodIcons.js +12 -0
- package/dist/esm/anyspend/react/components/common/PaymentOneClick.d.ts +7 -0
- package/dist/esm/anyspend/react/components/common/PaymentOneClick.js +21 -0
- package/dist/esm/anyspend/react/components/common/PaymentOptions.d.ts +1 -0
- package/dist/esm/anyspend/react/components/common/PaymentOptions.js +4 -0
- package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.d.ts +8 -0
- package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.js +147 -0
- package/dist/esm/anyspend/react/components/common/PaymentVendorUI.d.ts +8 -0
- package/dist/esm/anyspend/react/components/common/PaymentVendorUI.js +17 -0
- package/dist/esm/anyspend/react/components/common/TokenBalance.d.ts +6 -0
- package/dist/esm/anyspend/react/components/common/TokenBalance.js +18 -0
- package/dist/esm/anyspend/react/components/icons/EthIcon.d.ts +3 -0
- package/dist/esm/anyspend/react/components/icons/EthIcon.js +4 -0
- package/dist/esm/anyspend/react/components/icons/SolIcon.d.ts +3 -0
- package/dist/esm/anyspend/react/components/icons/SolIcon.js +4 -0
- package/dist/esm/anyspend/react/components/icons/USDCIcon.d.ts +3 -0
- package/dist/esm/anyspend/react/components/icons/USDCIcon.js +4 -0
- package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.d.ts +6 -0
- package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.js +15 -0
- package/dist/esm/anyspend/react/hooks/index.d.ts +13 -0
- package/dist/esm/anyspend/react/hooks/index.js +13 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +39 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +80 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +34 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +65 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +706 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +31 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +634 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.js +17 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendQuote.d.ts +23 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +49 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.js +36 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendTokens.d.ts +23 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendTokens.js +15 -0
- package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +48 -0
- package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.js +16 -0
- package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.d.ts +40 -0
- package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.js +50 -0
- package/dist/esm/anyspend/react/hooks/useGetGeo.d.ts +16 -0
- package/dist/esm/anyspend/react/hooks/useGetGeo.js +12 -0
- package/dist/esm/anyspend/react/hooks/usePermitData.d.ts +92 -0
- package/dist/esm/anyspend/react/hooks/usePermitData.js +154 -0
- package/dist/esm/anyspend/react/hooks/useStripeClientSecret.d.ts +6 -0
- package/dist/esm/anyspend/react/hooks/useStripeClientSecret.js +15 -0
- package/dist/esm/anyspend/react/hooks/useStripeSupport.d.ts +10 -0
- package/dist/esm/anyspend/react/hooks/useStripeSupport.js +17 -0
- package/dist/esm/anyspend/react/providers/AnyspendProvider.d.ts +27 -0
- package/dist/esm/anyspend/react/providers/AnyspendProvider.js +38 -0
- package/dist/esm/anyspend/services/anyspend.d.ts +372 -0
- package/dist/esm/anyspend/services/anyspend.js +120 -0
- package/dist/esm/anyspend/types/chain.d.ts +26 -0
- package/dist/esm/anyspend/types/chain.js +5 -0
- package/dist/esm/anyspend/types/custom.d.ts +130 -0
- package/dist/esm/anyspend/types/custom.js +13 -0
- package/dist/esm/anyspend/types/globalWallet.d.ts +18 -0
- package/dist/esm/anyspend/types/globalWallet.js +7 -0
- package/dist/esm/anyspend/types/index.d.ts +13 -0
- package/dist/esm/anyspend/types/index.js +13 -0
- package/dist/esm/anyspend/types/nft.d.ts +267 -0
- package/dist/esm/anyspend/types/nft.js +33 -0
- package/dist/esm/anyspend/types/onramp.d.ts +25 -0
- package/dist/esm/anyspend/types/onramp.js +14 -0
- package/dist/esm/anyspend/types/order.d.ts +1771 -0
- package/dist/esm/anyspend/types/order.js +82 -0
- package/dist/esm/anyspend/types/permit.d.ts +21 -0
- package/dist/esm/anyspend/types/permit.js +8 -0
- package/dist/esm/anyspend/types/relay.d.ts +10 -0
- package/dist/esm/anyspend/types/relay.js +9 -0
- package/dist/esm/anyspend/types/req-res/createOrder.d.ts +4113 -0
- package/dist/esm/anyspend/types/req-res/createOrder.js +57 -0
- package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +120 -0
- package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.js +28 -0
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +3129 -0
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.js +20 -0
- package/dist/esm/anyspend/types/req-res/getOrderByCreator.d.ts +28 -0
- package/dist/esm/anyspend/types/req-res/getOrderByCreator.js +8 -0
- package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +2278 -0
- package/dist/esm/anyspend/types/req-res/getOrderHistory.js +8 -0
- package/dist/esm/anyspend/types/req-res/getQuote.d.ts +253 -0
- package/dist/esm/anyspend/types/req-res/getQuote.js +43 -0
- package/dist/esm/anyspend/types/req-res/getTokenList.d.ts +63 -0
- package/dist/esm/anyspend/types/req-res/getTokenList.js +15 -0
- package/dist/esm/anyspend/types/req-res/index.d.ts +8 -0
- package/dist/esm/anyspend/types/req-res/index.js +8 -0
- package/dist/esm/anyspend/types/req-res/sendPermitData.d.ts +66 -0
- package/dist/esm/anyspend/types/req-res/sendPermitData.js +8 -0
- package/dist/esm/anyspend/types/req-res/stripe.d.ts +0 -0
- package/dist/esm/anyspend/types/req-res/stripe.js +1 -0
- package/dist/esm/anyspend/types/swap.d.ts +119 -0
- package/dist/esm/anyspend/types/swap.js +10 -0
- package/dist/esm/anyspend/types/token.d.ts +34 -0
- package/dist/esm/anyspend/types/token.js +11 -0
- package/dist/esm/anyspend/types/tournament.d.ts +174 -0
- package/dist/esm/anyspend/types/tournament.js +21 -0
- package/dist/esm/anyspend/types/transaction.d.ts +84 -0
- package/dist/esm/anyspend/types/transaction.js +31 -0
- package/dist/esm/anyspend/utils/address.d.ts +4 -0
- package/dist/esm/anyspend/utils/address.js +23 -0
- package/dist/esm/anyspend/utils/chain.d.ts +25 -0
- package/dist/esm/anyspend/utils/chain.js +271 -0
- package/dist/esm/anyspend/utils/format.d.ts +6 -0
- package/dist/esm/anyspend/utils/format.js +54 -0
- package/dist/esm/anyspend/utils/index.d.ts +8 -0
- package/dist/esm/anyspend/utils/index.js +8 -0
- package/dist/esm/anyspend/utils/json.d.ts +1 -0
- package/dist/esm/anyspend/utils/json.js +3 -0
- package/dist/esm/anyspend/utils/number.d.ts +13 -0
- package/dist/esm/anyspend/utils/number.js +79 -0
- package/dist/esm/anyspend/utils/orderPayload.d.ts +127 -0
- package/dist/esm/anyspend/utils/orderPayload.js +51 -0
- package/dist/esm/anyspend/utils/string.d.ts +1 -0
- package/dist/esm/anyspend/utils/string.js +5 -0
- package/dist/esm/anyspend/utils/token.d.ts +7 -0
- package/dist/esm/anyspend/utils/token.js +65 -0
- package/dist/esm/generated/chain-networks.json +483 -0
- package/dist/esm/global-account/app.d.ts +4 -0
- package/dist/esm/global-account/app.js +57 -0
- package/dist/esm/global-account/app.native.d.ts +5 -0
- package/dist/esm/global-account/app.native.js +83 -0
- package/dist/esm/global-account/bsmnt.d.ts +4 -0
- package/dist/esm/global-account/bsmnt.js +61 -0
- package/dist/esm/global-account/bsmnt.native.d.ts +5 -0
- package/dist/esm/global-account/bsmnt.native.js +86 -0
- package/dist/esm/global-account/index.d.ts +9 -0
- package/dist/esm/global-account/index.js +11 -0
- package/dist/esm/global-account/index.native.d.ts +3 -0
- package/dist/esm/global-account/index.native.js +11 -0
- package/dist/esm/global-account/react/components/AccountAssets/AccountAssets.d.ts +7 -0
- package/dist/esm/global-account/react/components/AccountAssets/AccountAssets.js +10 -0
- package/dist/esm/global-account/react/components/B3DynamicModal.d.ts +1 -0
- package/dist/esm/global-account/react/components/B3DynamicModal.js +86 -0
- package/dist/esm/global-account/react/components/B3Provider.d.ts +53 -0
- package/dist/esm/global-account/react/components/B3Provider.js +109 -0
- package/dist/esm/global-account/react/components/B3Provider.native.d.ts +46 -0
- package/dist/esm/global-account/react/components/B3Provider.native.js +70 -0
- package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.d.ts +11 -0
- package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.js +79 -0
- package/dist/esm/global-account/react/components/MintButton/MintButton.d.ts +17 -0
- package/dist/esm/global-account/react/components/MintButton/MintButton.js +48 -0
- package/dist/esm/global-account/react/components/ProfileAvatar.d.ts +0 -0
- package/dist/esm/global-account/react/components/ProfileAvatar.js +127 -0
- package/dist/esm/global-account/react/components/RelayKitProviderWrapper.d.ts +4 -0
- package/dist/esm/global-account/react/components/RelayKitProviderWrapper.js +26 -0
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +6 -0
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.js +77 -0
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +11 -0
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +23 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +10 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.js +39 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +6 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +200 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.d.ts +11 -0
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +45 -0
- package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +5 -0
- package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.js +6 -0
- package/dist/esm/global-account/react/components/SignInWithB3/components/PermissionItem.d.ts +10 -0
- package/dist/esm/global-account/react/components/SignInWithB3/components/PermissionItem.js +5 -0
- package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +6 -0
- package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.js +6 -0
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.d.ts +24 -0
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.js +82 -0
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +14 -0
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +70 -0
- package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.d.ts +17 -0
- package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.js +50 -0
- package/dist/esm/global-account/react/components/StyleRoot.d.ts +4 -0
- package/dist/esm/global-account/react/components/StyleRoot.js +7 -0
- package/dist/esm/global-account/react/components/Transak/TransakModal.d.ts +1 -0
- package/dist/esm/global-account/react/components/Transak/TransakModal.js +107 -0
- package/dist/esm/global-account/react/components/custom/Button.d.ts +12 -0
- package/dist/esm/global-account/react/components/custom/Button.js +32 -0
- package/dist/esm/global-account/react/components/custom/ClientOnly.d.ts +7 -0
- package/dist/esm/global-account/react/components/custom/ClientOnly.js +10 -0
- package/dist/esm/global-account/react/components/custom/CopyToClipboard.d.ts +7 -0
- package/dist/esm/global-account/react/components/custom/CopyToClipboard.js +18 -0
- package/dist/esm/global-account/react/components/custom/StaggeredFadeLoader.d.ts +4 -0
- package/dist/esm/global-account/react/components/custom/StaggeredFadeLoader.js +21 -0
- package/dist/esm/global-account/react/components/custom/WalletConnectorIcon.d.ts +4 -0
- package/dist/esm/global-account/react/components/custom/WalletConnectorIcon.js +24 -0
- package/dist/esm/global-account/react/components/magicui/AnimatedLottie.d.ts +13 -0
- package/dist/esm/global-account/react/components/magicui/AnimatedLottie.js +58 -0
- package/dist/esm/global-account/react/components/ui/Loading.d.ts +7 -0
- package/dist/esm/global-account/react/components/ui/Loading.js +15 -0
- package/dist/esm/global-account/react/components/ui/ShinyButton.d.ts +14 -0
- package/dist/esm/global-account/react/components/ui/ShinyButton.js +24 -0
- package/dist/esm/global-account/react/components/ui/TabSystem.d.ts +30 -0
- package/dist/esm/global-account/react/components/ui/TabSystem.js +46 -0
- package/dist/esm/global-account/react/components/ui/Tabs.d.ts +9 -0
- package/dist/esm/global-account/react/components/ui/Tabs.js +13 -0
- package/dist/esm/global-account/react/components/ui/badge.d.ts +9 -0
- package/dist/esm/global-account/react/components/ui/badge.js +20 -0
- package/dist/esm/global-account/react/components/ui/button.d.ts +11 -0
- package/dist/esm/global-account/react/components/ui/button.js +35 -0
- package/dist/esm/global-account/react/components/ui/command.d.ts +82 -0
- package/dist/esm/global-account/react/components/ui/command.js +30 -0
- package/dist/esm/global-account/react/components/ui/dialog.d.ts +30 -0
- package/dist/esm/global-account/react/components/ui/dialog.js +26 -0
- package/dist/esm/global-account/react/components/ui/drawer.d.ts +22 -0
- package/dist/esm/global-account/react/components/ui/drawer.js +26 -0
- package/dist/esm/global-account/react/components/ui/glare-card-rounded.d.ts +4 -0
- package/dist/esm/global-account/react/components/ui/glare-card-rounded.js +142 -0
- package/dist/esm/global-account/react/components/ui/glare-card.d.ts +4 -0
- package/dist/esm/global-account/react/components/ui/glare-card.js +104 -0
- package/dist/esm/global-account/react/components/ui/input.d.ts +5 -0
- package/dist/esm/global-account/react/components/ui/input.js +10 -0
- package/dist/esm/global-account/react/components/ui/popover.d.ts +6 -0
- package/dist/esm/global-account/react/components/ui/popover.js +11 -0
- package/dist/esm/global-account/react/components/ui/scroll-area.d.ts +5 -0
- package/dist/esm/global-account/react/components/ui/scroll-area.js +10 -0
- package/dist/esm/global-account/react/components/ui/skeleton.d.ts +2 -0
- package/dist/esm/global-account/react/components/ui/skeleton.js +6 -0
- package/dist/esm/global-account/react/components/ui/text-loop.d.ts +11 -0
- package/dist/esm/global-account/react/components/ui/text-loop.js +26 -0
- package/dist/esm/global-account/react/components/ui/text-shimmer.d.ts +10 -0
- package/dist/esm/global-account/react/components/ui/text-shimmer.js +19 -0
- package/dist/esm/global-account/react/components/ui/tooltip.d.ts +7 -0
- package/dist/esm/global-account/react/components/ui/tooltip.js +11 -0
- package/dist/esm/global-account/react/components/ui/transition-panel.d.ts +14 -0
- package/dist/esm/global-account/react/components/ui/transition-panel.js +7 -0
- package/dist/esm/global-account/react/hooks/useAccountAssets.d.ts +3 -0
- package/dist/esm/global-account/react/hooks/useAccountAssets.js +32 -0
- package/dist/esm/global-account/react/hooks/useAccountWallet.d.ts +18 -0
- package/dist/esm/global-account/react/hooks/useAccountWallet.js +67 -0
- package/dist/esm/global-account/react/hooks/useAddTWSessionKey.d.ts +21 -0
- package/dist/esm/global-account/react/hooks/useAddTWSessionKey.js +50 -0
- package/dist/esm/global-account/react/hooks/useAuthentication.d.ts +10 -0
- package/dist/esm/global-account/react/hooks/useAuthentication.js +117 -0
- package/dist/esm/global-account/react/hooks/useB3BalanceFromAddresses.d.ts +15 -0
- package/dist/esm/global-account/react/hooks/useB3BalanceFromAddresses.js +67 -0
- package/dist/esm/global-account/react/hooks/useBestTransactionPath.d.ts +41 -0
- package/dist/esm/global-account/react/hooks/useBestTransactionPath.js +147 -0
- package/dist/esm/global-account/react/hooks/useBsmntProfile.d.ts +4 -0
- package/dist/esm/global-account/react/hooks/useBsmntProfile.js +9 -0
- package/dist/esm/global-account/react/hooks/useChainSwitchWithAction.d.ts +5 -0
- package/dist/esm/global-account/react/hooks/useChainSwitchWithAction.js +70 -0
- package/dist/esm/global-account/react/hooks/useClaim.d.ts +16 -0
- package/dist/esm/global-account/react/hooks/useClaim.js +46 -0
- package/dist/esm/global-account/react/hooks/useConnect.d.ts +9 -0
- package/dist/esm/global-account/react/hooks/useConnect.js +49 -0
- package/dist/esm/global-account/react/hooks/useExchangeRate.d.ts +12 -0
- package/dist/esm/global-account/react/hooks/useExchangeRate.js +27 -0
- package/dist/esm/global-account/react/hooks/useGetAllTWSigners.d.ts +30 -0
- package/dist/esm/global-account/react/hooks/useGetAllTWSigners.js +71 -0
- package/dist/esm/global-account/react/hooks/useGetGeo.d.ts +17 -0
- package/dist/esm/global-account/react/hooks/useGetGeo.js +18 -0
- package/dist/esm/global-account/react/hooks/useHandleConnectWithPrivy.d.ts +11 -0
- package/dist/esm/global-account/react/hooks/useHandleConnectWithPrivy.js +66 -0
- package/dist/esm/global-account/react/hooks/useHasMounted.d.ts +1 -0
- package/dist/esm/global-account/react/hooks/useHasMounted.js +8 -0
- package/dist/esm/global-account/react/hooks/useIsMobile.d.ts +2 -0
- package/dist/esm/global-account/react/hooks/useIsMobile.js +6 -0
- package/dist/esm/global-account/react/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/esm/global-account/react/hooks/useIsomorphicLayoutEffect.js +2 -0
- package/dist/esm/global-account/react/hooks/useMediaQuery.d.ts +6 -0
- package/dist/esm/global-account/react/hooks/useMediaQuery.js +44 -0
- package/dist/esm/global-account/react/hooks/useNativeBalance.d.ts +22 -0
- package/dist/esm/global-account/react/hooks/useNativeBalance.js +72 -0
- package/dist/esm/global-account/react/hooks/useOnchainName.d.ts +19 -0
- package/dist/esm/global-account/react/hooks/useOnchainName.js +187 -0
- package/dist/esm/global-account/react/hooks/useOneBalance.d.ts +26 -0
- package/dist/esm/global-account/react/hooks/useOneBalance.js +65 -0
- package/dist/esm/global-account/react/hooks/useQueryB3.d.ts +25 -0
- package/dist/esm/global-account/react/hooks/useQueryB3.js +34 -0
- package/dist/esm/global-account/react/hooks/useQueryBSMNT.d.ts +25 -0
- package/dist/esm/global-account/react/hooks/useQueryBSMNT.js +34 -0
- package/dist/esm/global-account/react/hooks/useRemoveSessionKey.d.ts +16 -0
- package/dist/esm/global-account/react/hooks/useRemoveSessionKey.js +43 -0
- package/dist/esm/global-account/react/hooks/useRouter.d.ts +14 -0
- package/dist/esm/global-account/react/hooks/useRouter.js +75 -0
- package/dist/esm/global-account/react/hooks/useSearchParamsSSR.d.ts +2 -0
- package/dist/esm/global-account/react/hooks/useSearchParamsSSR.js +27 -0
- package/dist/esm/global-account/react/hooks/useSiwe.d.ts +4 -0
- package/dist/esm/global-account/react/hooks/useSiwe.js +32 -0
- package/dist/esm/global-account/react/hooks/useTokenBalance.d.ts +12 -0
- package/dist/esm/global-account/react/hooks/useTokenBalance.js +61 -0
- package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.d.ts +22 -0
- package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.js +55 -0
- package/dist/esm/global-account/react/hooks/useTokenData.d.ts +9 -0
- package/dist/esm/global-account/react/hooks/useTokenData.js +44 -0
- package/dist/esm/global-account/react/hooks/useTokenFromUrl.d.ts +17 -0
- package/dist/esm/global-account/react/hooks/useTokenFromUrl.js +27 -0
- package/dist/esm/global-account/react/hooks/useTokenPrice.d.ts +17 -0
- package/dist/esm/global-account/react/hooks/useTokenPrice.js +45 -0
- package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.d.ts +15 -0
- package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.js +31 -0
- package/dist/esm/global-account/react/hooks/useTokensFromAddress.d.ts +54 -0
- package/dist/esm/global-account/react/hooks/useTokensFromAddress.js +45 -0
- package/dist/esm/global-account/react/hooks/useURLParams.d.ts +8 -0
- package/dist/esm/global-account/react/hooks/useURLParams.js +32 -0
- package/dist/esm/global-account/react/stores/useAuthStore.d.ts +26 -0
- package/dist/esm/global-account/react/stores/useAuthStore.js +36 -0
- package/dist/esm/global-account/react/stores/useModalStore.d.ts +267 -0
- package/dist/esm/global-account/react/stores/useModalStore.js +33 -0
- package/dist/esm/global-account/server.d.ts +8 -0
- package/dist/esm/global-account/server.js +22 -0
- package/dist/esm/global-account/types/b3-api.d.ts +3 -0
- package/dist/esm/global-account/types/b3-api.js +3 -0
- package/dist/esm/global-account/types/b3-api.types.d.ts +51 -0
- package/dist/esm/global-account/types/b3-api.types.js +3 -0
- package/dist/esm/global-account/types/chain-networks.d.ts +44 -0
- package/dist/esm/global-account/types/chain-networks.js +45 -0
- package/dist/esm/global-account/types/feature-flags.d.ts +8 -0
- package/dist/esm/global-account/types/feature-flags.js +7 -0
- package/dist/esm/global-account/types/permissions.d.ts +21 -0
- package/dist/esm/global-account/types/permissions.js +1 -0
- package/dist/esm/global-account/types/reservoir.types.d.ts +89 -0
- package/dist/esm/global-account/types/reservoir.types.js +1 -0
- package/dist/esm/global-account/types/simplehash.types.d.ts +292 -0
- package/dist/esm/global-account/types/simplehash.types.js +1 -0
- package/dist/esm/global-account/types.d.ts +19 -0
- package/dist/esm/global-account/types.js +1 -0
- package/dist/esm/shared/constants/chains/b3Chain.d.ts +144 -0
- package/dist/esm/shared/constants/chains/b3Chain.js +161 -0
- package/dist/esm/shared/constants/chains/chainPlatformMap.d.ts +24 -0
- package/dist/esm/shared/constants/chains/chainPlatformMap.js +43 -0
- package/dist/esm/shared/constants/chains/supported.d.ts +53 -0
- package/dist/esm/shared/constants/chains/supported.js +25 -0
- package/dist/esm/shared/constants/index.d.ts +15 -0
- package/dist/esm/shared/constants/index.js +18 -0
- package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +11494 -0
- package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.js +1225 -0
- package/dist/esm/shared/thirdweb/generated/client.gen.d.ts +12 -0
- package/dist/esm/shared/thirdweb/generated/client.gen.js +3 -0
- package/dist/esm/shared/thirdweb/generated/index.d.ts +2 -0
- package/dist/esm/shared/thirdweb/generated/index.js +3 -0
- package/dist/esm/shared/thirdweb/generated/sdk.gen.d.ts +1448 -0
- package/dist/esm/shared/thirdweb/generated/sdk.gen.js +995 -0
- package/dist/esm/shared/thirdweb/generated/types.gen.d.ts +4159 -0
- package/dist/esm/shared/thirdweb/generated/types.gen.js +2 -0
- package/dist/esm/shared/thirdweb/initiateClient.d.ts +1 -0
- package/dist/esm/shared/thirdweb/initiateClient.js +25 -0
- package/dist/esm/shared/thirdweb/openapi-ts.config.d.ts +2 -0
- package/dist/esm/shared/thirdweb/openapi-ts.config.js +6 -0
- package/dist/esm/shared/utils/b3Ens.d.ts +5 -0
- package/dist/esm/shared/utils/b3Ens.js +23 -0
- package/dist/esm/shared/utils/centerTruncate.d.ts +1 -0
- package/dist/esm/shared/utils/centerTruncate.js +11 -0
- package/dist/esm/shared/utils/chain-transformers.d.ts +5 -0
- package/dist/esm/shared/utils/chain-transformers.js +46 -0
- package/dist/esm/shared/utils/chains.d.ts +6 -0
- package/dist/esm/shared/utils/chains.js +31 -0
- package/dist/esm/shared/utils/cn.d.ts +2 -0
- package/dist/esm/shared/utils/cn.js +5 -0
- package/dist/esm/shared/utils/colors.d.ts +2 -0
- package/dist/esm/shared/utils/colors.js +29 -0
- package/dist/esm/shared/utils/cookies.d.ts +3 -0
- package/dist/esm/shared/utils/cookies.js +12 -0
- package/dist/esm/shared/utils/debug.d.ts +4 -0
- package/dist/esm/shared/utils/debug.js +13 -0
- package/dist/esm/shared/utils/fetchBalances.d.ts +16 -0
- package/dist/esm/shared/utils/fetchBalances.js +60 -0
- package/dist/esm/shared/utils/fetchBsmntProfile.d.ts +1 -0
- package/dist/esm/shared/utils/fetchBsmntProfile.js +23 -0
- package/dist/esm/shared/utils/formatAddress.d.ts +2 -0
- package/dist/esm/shared/utils/formatAddress.js +14 -0
- package/dist/esm/shared/utils/formatNumber.d.ts +7 -0
- package/dist/esm/shared/utils/formatNumber.js +45 -0
- package/dist/esm/shared/utils/index.d.ts +2 -0
- package/dist/esm/shared/utils/index.js +6 -0
- package/dist/esm/shared/utils/insights.d.ts +7 -0
- package/dist/esm/shared/utils/insights.js +381 -0
- package/dist/esm/shared/utils/ipfs.d.ts +12 -0
- package/dist/esm/shared/utils/ipfs.js +29 -0
- package/dist/esm/shared/utils/number.d.ts +11 -0
- package/dist/esm/shared/utils/number.js +102 -0
- package/dist/esm/shared/utils/payment.utils.d.ts +5 -0
- package/dist/esm/shared/utils/payment.utils.js +30 -0
- package/dist/esm/shared/utils/simplehash.d.ts +12 -0
- package/dist/esm/shared/utils/simplehash.js +286 -0
- package/dist/esm/shared/utils/sprinter.d.ts +1 -0
- package/dist/esm/shared/utils/sprinter.js +11 -0
- package/dist/esm/shared/utils/thirdweb-insights.d.ts +105 -0
- package/dist/esm/shared/utils/thirdweb-insights.js +192 -0
- package/dist/esm/shared/utils/thirdweb.d.ts +1 -0
- package/dist/esm/shared/utils/thirdweb.js +8 -0
- package/dist/esm/styles/index.d.ts +20 -0
- package/dist/esm/styles/index.js +20 -0
- package/dist/styles/index.css +1 -0
- package/dist/types/anyspend/abis/abi-usdc-base.d.ts +1074 -0
- package/dist/types/anyspend/abis/erc20-staking.d.ts +540 -0
- package/dist/types/anyspend/constants/index.d.ts +28 -0
- package/dist/types/anyspend/index.d.ts +13 -0
- package/dist/types/anyspend/react/components/AnySpend.d.ts +22 -0
- package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +9 -0
- package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +22 -0
- package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +8 -0
- package/dist/types/anyspend/react/components/AnySpendNFTButton.d.ts +7 -0
- package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +8 -0
- package/dist/types/anyspend/react/components/AnySpendTournament.d.ts +27 -0
- package/dist/types/anyspend/react/components/common/ChainTokenIcon.d.ts +5 -0
- package/dist/types/anyspend/react/components/common/HowItWorks.d.ts +10 -0
- package/dist/types/anyspend/react/components/common/OrderDetails.d.ts +14 -0
- package/dist/types/anyspend/react/components/common/OrderHistory.d.ts +7 -0
- package/dist/types/anyspend/react/components/common/OrderHistoryItem.d.ts +8 -0
- package/dist/types/anyspend/react/components/common/OrderStatus.d.ts +4 -0
- package/dist/types/anyspend/react/components/common/OrderToken.d.ts +11 -0
- package/dist/types/anyspend/react/components/common/OrderTokenAmount.d.ts +18 -0
- package/dist/types/anyspend/react/components/common/PanelOnramp.d.ts +4 -0
- package/dist/types/anyspend/react/components/common/PanelOnrampPayment.d.ts +29 -0
- package/dist/types/anyspend/react/components/common/PaymentMethodIcons.d.ts +1 -0
- package/dist/types/anyspend/react/components/common/PaymentOneClick.d.ts +7 -0
- package/dist/types/anyspend/react/components/common/PaymentOptions.d.ts +1 -0
- package/dist/types/anyspend/react/components/common/PaymentStripeWeb2.d.ts +8 -0
- package/dist/types/anyspend/react/components/common/PaymentVendorUI.d.ts +8 -0
- package/dist/types/anyspend/react/components/common/TokenBalance.d.ts +6 -0
- package/dist/types/anyspend/react/components/icons/EthIcon.d.ts +3 -0
- package/dist/types/anyspend/react/components/icons/SolIcon.d.ts +3 -0
- package/dist/types/anyspend/react/components/icons/USDCIcon.d.ts +3 -0
- package/dist/types/anyspend/react/components/modals/EnterRecipientModal.d.ts +6 -0
- package/dist/types/anyspend/react/hooks/index.d.ts +13 -0
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +39 -0
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +34 -0
- package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +706 -0
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +634 -0
- package/dist/types/anyspend/react/hooks/useAnyspendQuote.d.ts +23 -0
- package/dist/types/anyspend/react/hooks/useAnyspendSendPermitData.d.ts +16 -0
- package/dist/types/anyspend/react/hooks/useAnyspendTokens.d.ts +23 -0
- package/dist/types/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +48 -0
- package/dist/types/anyspend/react/hooks/useGeoOnrampOptions.d.ts +40 -0
- package/dist/types/anyspend/react/hooks/useGetGeo.d.ts +16 -0
- package/dist/types/anyspend/react/hooks/usePermitData.d.ts +92 -0
- package/dist/types/anyspend/react/hooks/useStripeClientSecret.d.ts +6 -0
- package/dist/types/anyspend/react/hooks/useStripeSupport.d.ts +10 -0
- package/dist/types/anyspend/react/providers/AnyspendProvider.d.ts +27 -0
- package/dist/types/anyspend/services/anyspend.d.ts +372 -0
- package/dist/types/anyspend/types/chain.d.ts +26 -0
- package/dist/types/anyspend/types/custom.d.ts +130 -0
- package/dist/types/anyspend/types/globalWallet.d.ts +18 -0
- package/dist/types/anyspend/types/index.d.ts +13 -0
- package/dist/types/anyspend/types/nft.d.ts +267 -0
- package/dist/types/anyspend/types/onramp.d.ts +25 -0
- package/dist/types/anyspend/types/order.d.ts +1771 -0
- package/dist/types/anyspend/types/permit.d.ts +21 -0
- package/dist/types/anyspend/types/relay.d.ts +10 -0
- package/dist/types/anyspend/types/req-res/createOrder.d.ts +4113 -0
- package/dist/types/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +120 -0
- package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +3129 -0
- package/dist/types/anyspend/types/req-res/getOrderByCreator.d.ts +28 -0
- package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +2278 -0
- package/dist/types/anyspend/types/req-res/getQuote.d.ts +253 -0
- package/dist/types/anyspend/types/req-res/getTokenList.d.ts +63 -0
- package/dist/types/anyspend/types/req-res/index.d.ts +8 -0
- package/dist/types/anyspend/types/req-res/sendPermitData.d.ts +66 -0
- package/dist/types/anyspend/types/req-res/stripe.d.ts +0 -0
- package/dist/types/anyspend/types/swap.d.ts +119 -0
- package/dist/types/anyspend/types/token.d.ts +34 -0
- package/dist/types/anyspend/types/tournament.d.ts +174 -0
- package/dist/types/anyspend/types/transaction.d.ts +84 -0
- package/dist/types/anyspend/utils/address.d.ts +4 -0
- package/dist/types/anyspend/utils/chain.d.ts +25 -0
- package/dist/types/anyspend/utils/format.d.ts +6 -0
- package/dist/types/anyspend/utils/index.d.ts +8 -0
- package/dist/types/anyspend/utils/json.d.ts +1 -0
- package/dist/types/anyspend/utils/number.d.ts +13 -0
- package/dist/types/anyspend/utils/orderPayload.d.ts +127 -0
- package/dist/types/anyspend/utils/string.d.ts +1 -0
- package/dist/types/anyspend/utils/token.d.ts +7 -0
- package/dist/types/global-account/app.d.ts +4 -0
- package/dist/types/global-account/app.native.d.ts +5 -0
- package/dist/types/global-account/bsmnt.d.ts +4 -0
- package/dist/types/global-account/bsmnt.native.d.ts +5 -0
- package/dist/types/global-account/index.d.ts +9 -0
- package/dist/types/global-account/index.native.d.ts +3 -0
- package/dist/types/global-account/react/components/AccountAssets/AccountAssets.d.ts +7 -0
- package/dist/types/global-account/react/components/B3DynamicModal.d.ts +1 -0
- package/dist/types/global-account/react/components/B3Provider.d.ts +53 -0
- package/dist/types/global-account/react/components/B3Provider.native.d.ts +46 -0
- package/dist/types/global-account/react/components/ManageAccount/ManageAccount.d.ts +11 -0
- package/dist/types/global-account/react/components/MintButton/MintButton.d.ts +17 -0
- package/dist/types/global-account/react/components/ProfileAvatar.d.ts +0 -0
- package/dist/types/global-account/react/components/RelayKitProviderWrapper.d.ts +4 -0
- package/dist/types/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +6 -0
- package/dist/types/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +11 -0
- package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +10 -0
- package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +6 -0
- package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3Privy.d.ts +11 -0
- package/dist/types/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +5 -0
- package/dist/types/global-account/react/components/SignInWithB3/components/PermissionItem.d.ts +10 -0
- package/dist/types/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +6 -0
- package/dist/types/global-account/react/components/SignInWithB3/steps/LoginStep.d.ts +24 -0
- package/dist/types/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +14 -0
- package/dist/types/global-account/react/components/SignInWithB3/utils/signInUtils.d.ts +17 -0
- package/dist/types/global-account/react/components/StyleRoot.d.ts +4 -0
- package/dist/types/global-account/react/components/Transak/TransakModal.d.ts +1 -0
- package/dist/types/global-account/react/components/custom/Button.d.ts +12 -0
- package/dist/types/global-account/react/components/custom/ClientOnly.d.ts +7 -0
- package/dist/types/global-account/react/components/custom/CopyToClipboard.d.ts +7 -0
- package/dist/types/global-account/react/components/custom/StaggeredFadeLoader.d.ts +4 -0
- package/dist/types/global-account/react/components/custom/WalletConnectorIcon.d.ts +4 -0
- package/dist/types/global-account/react/components/magicui/AnimatedLottie.d.ts +13 -0
- package/dist/types/global-account/react/components/ui/Loading.d.ts +7 -0
- package/dist/types/global-account/react/components/ui/ShinyButton.d.ts +14 -0
- package/dist/types/global-account/react/components/ui/TabSystem.d.ts +30 -0
- package/dist/types/global-account/react/components/ui/Tabs.d.ts +9 -0
- package/dist/types/global-account/react/components/ui/badge.d.ts +9 -0
- package/dist/types/global-account/react/components/ui/button.d.ts +11 -0
- package/dist/types/global-account/react/components/ui/command.d.ts +82 -0
- package/dist/types/global-account/react/components/ui/dialog.d.ts +30 -0
- package/dist/types/global-account/react/components/ui/drawer.d.ts +22 -0
- package/dist/types/global-account/react/components/ui/glare-card-rounded.d.ts +4 -0
- package/dist/types/global-account/react/components/ui/glare-card.d.ts +4 -0
- package/dist/types/global-account/react/components/ui/input.d.ts +5 -0
- package/dist/types/global-account/react/components/ui/popover.d.ts +6 -0
- package/dist/types/global-account/react/components/ui/scroll-area.d.ts +5 -0
- package/dist/types/global-account/react/components/ui/skeleton.d.ts +2 -0
- package/dist/types/global-account/react/components/ui/text-loop.d.ts +11 -0
- package/dist/types/global-account/react/components/ui/text-shimmer.d.ts +10 -0
- package/dist/types/global-account/react/components/ui/tooltip.d.ts +7 -0
- package/dist/types/global-account/react/components/ui/transition-panel.d.ts +14 -0
- package/dist/types/global-account/react/hooks/useAccountAssets.d.ts +3 -0
- package/dist/types/global-account/react/hooks/useAccountWallet.d.ts +18 -0
- package/dist/types/global-account/react/hooks/useAddTWSessionKey.d.ts +21 -0
- package/dist/types/global-account/react/hooks/useAuthentication.d.ts +10 -0
- package/dist/types/global-account/react/hooks/useB3BalanceFromAddresses.d.ts +15 -0
- package/dist/types/global-account/react/hooks/useBestTransactionPath.d.ts +41 -0
- package/dist/types/global-account/react/hooks/useBsmntProfile.d.ts +4 -0
- package/dist/types/global-account/react/hooks/useChainSwitchWithAction.d.ts +5 -0
- package/dist/types/global-account/react/hooks/useClaim.d.ts +16 -0
- package/dist/types/global-account/react/hooks/useConnect.d.ts +9 -0
- package/dist/types/global-account/react/hooks/useExchangeRate.d.ts +12 -0
- package/dist/types/global-account/react/hooks/useGetAllTWSigners.d.ts +30 -0
- package/dist/types/global-account/react/hooks/useGetGeo.d.ts +17 -0
- package/dist/types/global-account/react/hooks/useHandleConnectWithPrivy.d.ts +11 -0
- package/dist/types/global-account/react/hooks/useHasMounted.d.ts +1 -0
- package/dist/types/global-account/react/hooks/useIsMobile.d.ts +2 -0
- package/dist/types/global-account/react/hooks/useIsomorphicLayoutEffect.d.ts +2 -0
- package/dist/types/global-account/react/hooks/useMediaQuery.d.ts +6 -0
- package/dist/types/global-account/react/hooks/useNativeBalance.d.ts +22 -0
- package/dist/types/global-account/react/hooks/useOnchainName.d.ts +19 -0
- package/dist/types/global-account/react/hooks/useOneBalance.d.ts +26 -0
- package/dist/types/global-account/react/hooks/useQueryB3.d.ts +25 -0
- package/dist/types/global-account/react/hooks/useQueryBSMNT.d.ts +25 -0
- package/dist/types/global-account/react/hooks/useRemoveSessionKey.d.ts +16 -0
- package/dist/types/global-account/react/hooks/useRouter.d.ts +14 -0
- package/dist/types/global-account/react/hooks/useSearchParamsSSR.d.ts +2 -0
- package/dist/types/global-account/react/hooks/useSiwe.d.ts +4 -0
- package/dist/types/global-account/react/hooks/useTokenBalance.d.ts +12 -0
- package/dist/types/global-account/react/hooks/useTokenBalancesByChain.d.ts +22 -0
- package/dist/types/global-account/react/hooks/useTokenData.d.ts +9 -0
- package/dist/types/global-account/react/hooks/useTokenFromUrl.d.ts +17 -0
- package/dist/types/global-account/react/hooks/useTokenPrice.d.ts +17 -0
- package/dist/types/global-account/react/hooks/useTokenPriceWithFallback.d.ts +15 -0
- package/dist/types/global-account/react/hooks/useTokensFromAddress.d.ts +54 -0
- package/dist/types/global-account/react/hooks/useURLParams.d.ts +8 -0
- package/dist/types/global-account/react/stores/useAuthStore.d.ts +26 -0
- package/dist/types/global-account/react/stores/useModalStore.d.ts +267 -0
- package/dist/types/global-account/server.d.ts +8 -0
- package/dist/types/global-account/types/b3-api.d.ts +3 -0
- package/dist/types/global-account/types/b3-api.types.d.ts +51 -0
- package/dist/types/global-account/types/chain-networks.d.ts +44 -0
- package/dist/types/global-account/types/feature-flags.d.ts +8 -0
- package/dist/types/global-account/types/permissions.d.ts +21 -0
- package/dist/types/global-account/types/reservoir.types.d.ts +89 -0
- package/dist/types/global-account/types/simplehash.types.d.ts +292 -0
- package/dist/types/global-account/types.d.ts +19 -0
- package/dist/types/shared/constants/chains/b3Chain.d.ts +144 -0
- package/dist/types/shared/constants/chains/chainPlatformMap.d.ts +24 -0
- package/dist/types/shared/constants/chains/supported.d.ts +53 -0
- package/dist/types/shared/constants/index.d.ts +15 -0
- package/dist/types/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +11494 -0
- package/dist/types/shared/thirdweb/generated/client.gen.d.ts +12 -0
- package/dist/types/shared/thirdweb/generated/index.d.ts +2 -0
- package/dist/types/shared/thirdweb/generated/sdk.gen.d.ts +1448 -0
- package/dist/types/shared/thirdweb/generated/types.gen.d.ts +4159 -0
- package/dist/types/shared/thirdweb/initiateClient.d.ts +1 -0
- package/dist/types/shared/thirdweb/openapi-ts.config.d.ts +2 -0
- package/dist/types/shared/utils/b3Ens.d.ts +5 -0
- package/dist/types/shared/utils/centerTruncate.d.ts +1 -0
- package/dist/types/shared/utils/chain-transformers.d.ts +5 -0
- package/dist/types/shared/utils/chains.d.ts +6 -0
- package/dist/types/shared/utils/cn.d.ts +2 -0
- package/dist/types/shared/utils/colors.d.ts +2 -0
- package/dist/types/shared/utils/cookies.d.ts +3 -0
- package/dist/types/shared/utils/debug.d.ts +4 -0
- package/dist/types/shared/utils/fetchBalances.d.ts +16 -0
- package/dist/types/shared/utils/fetchBsmntProfile.d.ts +1 -0
- package/dist/types/shared/utils/formatAddress.d.ts +2 -0
- package/dist/types/shared/utils/formatNumber.d.ts +7 -0
- package/dist/types/shared/utils/index.d.ts +2 -0
- package/dist/types/shared/utils/insights.d.ts +7 -0
- package/dist/types/shared/utils/ipfs.d.ts +12 -0
- package/dist/types/shared/utils/number.d.ts +11 -0
- package/dist/types/shared/utils/payment.utils.d.ts +5 -0
- package/dist/types/shared/utils/simplehash.d.ts +12 -0
- package/dist/types/shared/utils/sprinter.d.ts +1 -0
- package/dist/types/shared/utils/thirdweb-insights.d.ts +105 -0
- package/dist/types/shared/utils/thirdweb.d.ts +1 -0
- package/dist/types/styles/index.d.ts +20 -0
- package/package.json +340 -0
- package/src/anyspend/abis/abi-usdc-base.ts +600 -0
- package/src/anyspend/abis/erc20-staking.ts +299 -0
- package/src/anyspend/constants/index.ts +88 -0
- package/src/anyspend/index.ts +24 -0
- package/src/anyspend/react/components/AnySpend.tsx +1144 -0
- package/src/anyspend/react/components/AnySpendBuySpin.tsx +623 -0
- package/src/anyspend/react/components/AnySpendCustom.tsx +812 -0
- package/src/anyspend/react/components/AnySpendNFT.tsx +134 -0
- package/src/anyspend/react/components/AnySpendNFTButton.tsx +33 -0
- package/src/anyspend/react/components/AnySpendStakeB3.tsx +491 -0
- package/src/anyspend/react/components/AnySpendTournament.tsx +109 -0
- package/src/anyspend/react/components/common/ChainTokenIcon.tsx +18 -0
- package/src/anyspend/react/components/common/HowItWorks.tsx +37 -0
- package/src/anyspend/react/components/common/OrderDetails.tsx +1195 -0
- package/src/anyspend/react/components/common/OrderHistory.tsx +64 -0
- package/src/anyspend/react/components/common/OrderHistoryItem.tsx +189 -0
- package/src/anyspend/react/components/common/OrderStatus.tsx +39 -0
- package/src/anyspend/react/components/common/OrderToken.tsx +132 -0
- package/src/anyspend/react/components/common/OrderTokenAmount.tsx +168 -0
- package/src/anyspend/react/components/common/PanelOnramp.tsx +108 -0
- package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +354 -0
- package/src/anyspend/react/components/common/PaymentMethodIcons.tsx +22 -0
- package/src/anyspend/react/components/common/PaymentOneClick.tsx +42 -0
- package/src/anyspend/react/components/common/PaymentOptions.tsx +36 -0
- package/src/anyspend/react/components/common/PaymentStripeWeb2.tsx +368 -0
- package/src/anyspend/react/components/common/PaymentVendorUI.tsx +26 -0
- package/src/anyspend/react/components/common/TokenBalance.tsx +63 -0
- package/src/anyspend/react/components/icons/EthIcon.tsx +31 -0
- package/src/anyspend/react/components/icons/SolIcon.tsx +39 -0
- package/src/anyspend/react/components/icons/USDCIcon.tsx +19 -0
- package/src/anyspend/react/components/modals/EnterRecipientModal.tsx +50 -0
- package/src/anyspend/react/hooks/index.ts +13 -0
- package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +131 -0
- package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +102 -0
- package/src/anyspend/react/hooks/useAnyspendOrderAndTransactions.ts +36 -0
- package/src/anyspend/react/hooks/useAnyspendOrderHistory.ts +29 -0
- package/src/anyspend/react/hooks/useAnyspendQuote.ts +58 -0
- package/src/anyspend/react/hooks/useAnyspendSendPermitData.ts +38 -0
- package/src/anyspend/react/hooks/useAnyspendTokens.ts +24 -0
- package/src/anyspend/react/hooks/useCoinbaseOnrampOptions.ts +21 -0
- package/src/anyspend/react/hooks/useGeoOnrampOptions.ts +58 -0
- package/src/anyspend/react/hooks/useGetGeo.ts +31 -0
- package/src/anyspend/react/hooks/usePermitData.ts +183 -0
- package/src/anyspend/react/hooks/useStripeClientSecret.ts +20 -0
- package/src/anyspend/react/hooks/useStripeSupport.ts +22 -0
- package/src/anyspend/react/providers/AnyspendProvider.tsx +45 -0
- package/src/anyspend/services/anyspend.ts +191 -0
- package/src/anyspend/types/chain.ts +30 -0
- package/src/anyspend/types/custom.ts +17 -0
- package/src/anyspend/types/globalWallet.ts +9 -0
- package/src/anyspend/types/index.ts +14 -0
- package/src/anyspend/types/nft.ts +50 -0
- package/src/anyspend/types/onramp.ts +15 -0
- package/src/anyspend/types/order.ts +94 -0
- package/src/anyspend/types/permit.ts +10 -0
- package/src/anyspend/types/relay.ts +13 -0
- package/src/anyspend/types/req-res/createOrder.ts +66 -0
- package/src/anyspend/types/req-res/getCoinbaseOnrampOptions.ts +34 -0
- package/src/anyspend/types/req-res/getOrderAndTransactions.ts +23 -0
- package/src/anyspend/types/req-res/getOrderByCreator.ts +9 -0
- package/src/anyspend/types/req-res/getOrderHistory.ts +9 -0
- package/src/anyspend/types/req-res/getQuote.ts +60 -0
- package/src/anyspend/types/req-res/getTokenList.ts +18 -0
- package/src/anyspend/types/req-res/index.ts +8 -0
- package/src/anyspend/types/req-res/sendPermitData.ts +10 -0
- package/src/anyspend/types/req-res/stripe.ts +0 -0
- package/src/anyspend/types/swap.ts +12 -0
- package/src/anyspend/types/token.ts +13 -0
- package/src/anyspend/types/tournament.ts +26 -0
- package/src/anyspend/types/transaction.ts +39 -0
- package/src/anyspend/utils/address.ts +25 -0
- package/src/anyspend/utils/chain.ts +342 -0
- package/src/anyspend/utils/format.ts +64 -0
- package/src/anyspend/utils/index.ts +8 -0
- package/src/anyspend/utils/json.ts +3 -0
- package/src/anyspend/utils/number.ts +93 -0
- package/src/anyspend/utils/orderPayload.ts +63 -0
- package/src/anyspend/utils/string.ts +4 -0
- package/src/anyspend/utils/token.ts +72 -0
- package/src/generated/chain-networks.json +483 -0
- package/src/global-account/app.native.ts +105 -0
- package/src/global-account/app.ts +68 -0
- package/src/global-account/bsmnt.native.ts +108 -0
- package/src/global-account/bsmnt.ts +73 -0
- package/src/global-account/index.native.ts +17 -0
- package/src/global-account/index.ts +17 -0
- package/src/global-account/react/components/AccountAssets/AccountAssets.tsx +48 -0
- package/src/global-account/react/components/B3DynamicModal.tsx +118 -0
- package/src/global-account/react/components/B3Provider.native.tsx +141 -0
- package/src/global-account/react/components/B3Provider.tsx +201 -0
- package/src/global-account/react/components/ManageAccount/ManageAccount.tsx +242 -0
- package/src/global-account/react/components/MintButton/MintButton.tsx +83 -0
- package/src/global-account/react/components/ProfileAvatar.tsx +138 -0
- package/src/global-account/react/components/RelayKitProviderWrapper.tsx +34 -0
- package/src/global-account/react/components/RequestPermissions/RequestPermissions.tsx +167 -0
- package/src/global-account/react/components/RequestPermissions/RequestPermissionsButton.tsx +51 -0
- package/src/global-account/react/components/SignInWithB3/SignInWithB3.tsx +93 -0
- package/src/global-account/react/components/SignInWithB3/SignInWithB3Flow.tsx +255 -0
- package/src/global-account/react/components/SignInWithB3/SignInWithB3Privy.tsx +60 -0
- package/src/global-account/react/components/SignInWithB3/components/AuthButton.tsx +23 -0
- package/src/global-account/react/components/SignInWithB3/components/PermissionItem.tsx +22 -0
- package/src/global-account/react/components/SignInWithB3/components/WalletRow.tsx +32 -0
- package/src/global-account/react/components/SignInWithB3/steps/LoginStep.tsx +135 -0
- package/src/global-account/react/components/SignInWithB3/steps/LoginStepCustom.tsx +148 -0
- package/src/global-account/react/components/SignInWithB3/utils/signInUtils.ts +70 -0
- package/src/global-account/react/components/StyleRoot.tsx +12 -0
- package/src/global-account/react/components/Transak/TransakModal.tsx +134 -0
- package/src/global-account/react/components/custom/Button.tsx +54 -0
- package/src/global-account/react/components/custom/ClientOnly.tsx +20 -0
- package/src/global-account/react/components/custom/CopyToClipboard.tsx +47 -0
- package/src/global-account/react/components/custom/StaggeredFadeLoader.tsx +43 -0
- package/src/global-account/react/components/custom/WalletConnectorIcon.tsx +32 -0
- package/src/global-account/react/components/magicui/AnimatedLottie.tsx +106 -0
- package/src/global-account/react/components/ui/Loading.tsx +27 -0
- package/src/global-account/react/components/ui/ShinyButton.tsx +82 -0
- package/src/global-account/react/components/ui/TabSystem.tsx +157 -0
- package/src/global-account/react/components/ui/Tabs.tsx +56 -0
- package/src/global-account/react/components/ui/badge.tsx +30 -0
- package/src/global-account/react/components/ui/button.tsx +57 -0
- package/src/global-account/react/components/ui/command.tsx +140 -0
- package/src/global-account/react/components/ui/dialog.tsx +131 -0
- package/src/global-account/react/components/ui/drawer.tsx +97 -0
- package/src/global-account/react/components/ui/glare-card-rounded.tsx +182 -0
- package/src/global-account/react/components/ui/glare-card.tsx +138 -0
- package/src/global-account/react/components/ui/input.tsx +25 -0
- package/src/global-account/react/components/ui/popover.tsx +34 -0
- package/src/global-account/react/components/ui/scroll-area.tsx +40 -0
- package/src/global-account/react/components/ui/skeleton.tsx +7 -0
- package/src/global-account/react/components/ui/text-loop.tsx +61 -0
- package/src/global-account/react/components/ui/text-shimmer.tsx +47 -0
- package/src/global-account/react/components/ui/tooltip.tsx +34 -0
- package/src/global-account/react/components/ui/transition-panel.tsx +38 -0
- package/src/global-account/react/hooks/useAccountAssets.ts +34 -0
- package/src/global-account/react/hooks/useAccountWallet.tsx +110 -0
- package/src/global-account/react/hooks/useAddTWSessionKey.tsx +85 -0
- package/src/global-account/react/hooks/useAuthentication.ts +127 -0
- package/src/global-account/react/hooks/useB3BalanceFromAddresses.ts +91 -0
- package/src/global-account/react/hooks/useBestTransactionPath.tsx +202 -0
- package/src/global-account/react/hooks/useBsmntProfile.ts +14 -0
- package/src/global-account/react/hooks/useChainSwitchWithAction.ts +79 -0
- package/src/global-account/react/hooks/useClaim.tsx +66 -0
- package/src/global-account/react/hooks/useConnect.tsx +60 -0
- package/src/global-account/react/hooks/useExchangeRate.tsx +43 -0
- package/src/global-account/react/hooks/useGetAllTWSigners.tsx +139 -0
- package/src/global-account/react/hooks/useGetGeo.tsx +40 -0
- package/src/global-account/react/hooks/useHandleConnectWithPrivy.tsx +78 -0
- package/src/global-account/react/hooks/useHasMounted.ts +11 -0
- package/src/global-account/react/hooks/useIsMobile.tsx +9 -0
- package/src/global-account/react/hooks/useIsomorphicLayoutEffect.tsx +3 -0
- package/src/global-account/react/hooks/useMediaQuery.tsx +60 -0
- package/src/global-account/react/hooks/useNativeBalance.tsx +90 -0
- package/src/global-account/react/hooks/useOnchainName.tsx +198 -0
- package/src/global-account/react/hooks/useOneBalance.tsx +95 -0
- package/src/global-account/react/hooks/useQueryB3.ts +72 -0
- package/src/global-account/react/hooks/useQueryBSMNT.ts +72 -0
- package/src/global-account/react/hooks/useRemoveSessionKey.tsx +69 -0
- package/src/global-account/react/hooks/useRouter.tsx +103 -0
- package/src/global-account/react/hooks/useSearchParamsSSR.tsx +34 -0
- package/src/global-account/react/hooks/useSiwe.tsx +39 -0
- package/src/global-account/react/hooks/useTokenBalance.tsx +85 -0
- package/src/global-account/react/hooks/useTokenBalancesByChain.tsx +93 -0
- package/src/global-account/react/hooks/useTokenData.ts +56 -0
- package/src/global-account/react/hooks/useTokenFromUrl.tsx +46 -0
- package/src/global-account/react/hooks/useTokenPrice.tsx +85 -0
- package/src/global-account/react/hooks/useTokenPriceWithFallback.tsx +58 -0
- package/src/global-account/react/hooks/useTokensFromAddress.ts +118 -0
- package/src/global-account/react/hooks/useURLParams.ts +43 -0
- package/src/global-account/react/stores/useAuthStore.ts +64 -0
- package/src/global-account/react/stores/useModalStore.ts +325 -0
- package/src/global-account/server.ts +23 -0
- package/src/global-account/types/b3-api.ts +4 -0
- package/src/global-account/types/b3-api.types.ts +83 -0
- package/src/global-account/types/chain-networks.ts +54 -0
- package/src/global-account/types/feature-flags.ts +13 -0
- package/src/global-account/types/permissions.ts +24 -0
- package/src/global-account/types/react-timeago.d.ts +18 -0
- package/src/global-account/types/reservoir.types.ts +94 -0
- package/src/global-account/types/simplehash.types.ts +301 -0
- package/src/global-account/types.ts +24 -0
- package/src/shared/constants/chains/b3Chain.ts +177 -0
- package/src/shared/constants/chains/chainPlatformMap.ts +47 -0
- package/src/shared/constants/chains/supported.ts +33 -0
- package/src/shared/constants/index.ts +26 -0
- package/src/shared/thirdweb/generated/@tanstack/react-query.gen.ts +1363 -0
- package/src/shared/thirdweb/generated/client.gen.ts +16 -0
- package/src/shared/thirdweb/generated/index.ts +3 -0
- package/src/shared/thirdweb/generated/sdk.gen.ts +1051 -0
- package/src/shared/thirdweb/generated/types.gen.ts +4349 -0
- package/src/shared/thirdweb/initiateClient.ts +30 -0
- package/src/shared/thirdweb/insight-service.json +12664 -0
- package/src/shared/thirdweb/openapi-ts.config.ts +7 -0
- package/src/shared/utils/b3Ens.ts +28 -0
- package/src/shared/utils/centerTruncate.ts +12 -0
- package/src/shared/utils/chain-transformers.ts +51 -0
- package/src/shared/utils/chains.ts +38 -0
- package/src/shared/utils/cn.ts +6 -0
- package/src/shared/utils/colors.ts +33 -0
- package/src/shared/utils/cookies.ts +13 -0
- package/src/shared/utils/debug.ts +17 -0
- package/src/shared/utils/fetchBalances.ts +89 -0
- package/src/shared/utils/fetchBsmntProfile.ts +29 -0
- package/src/shared/utils/formatAddress.ts +16 -0
- package/src/shared/utils/formatNumber.ts +43 -0
- package/src/shared/utils/index.ts +7 -0
- package/src/shared/utils/insights.ts +409 -0
- package/src/shared/utils/ipfs.ts +33 -0
- package/src/shared/utils/number.ts +142 -0
- package/src/shared/utils/payment.utils.ts +34 -0
- package/src/shared/utils/simplehash.ts +372 -0
- package/src/shared/utils/sprinter.ts +14 -0
- package/src/shared/utils/thirdweb-insights.ts +338 -0
- package/src/shared/utils/thirdweb.ts +11 -0
- package/src/styles/index.css +279 -0
- package/src/styles/index.ts +24 -0
|
@@ -0,0 +1,368 @@
|
|
|
1
|
+
import { Order, USDC_BASE, useStripeClientSecret } from "@b3dotfun/sdk/anyspend";
|
|
2
|
+
import { STRIPE_CONFIG } from "@b3dotfun/sdk/anyspend/constants";
|
|
3
|
+
import { useB3 } from "@b3dotfun/sdk/global-account/react/components/B3Provider";
|
|
4
|
+
import ShinyButton from "@b3dotfun/sdk/global-account/react/components/ui/ShinyButton";
|
|
5
|
+
import { formatStripeAmount } from "@b3dotfun/sdk/shared/utils/payment.utils";
|
|
6
|
+
import { Elements, PaymentElement, useElements, useStripe } from "@stripe/react-stripe-js";
|
|
7
|
+
import { loadStripe } from "@stripe/stripe-js";
|
|
8
|
+
import { HelpCircle, Info, X } from "lucide-react";
|
|
9
|
+
import { useEffect, useState } from "react";
|
|
10
|
+
import HowItWorks from "./HowItWorks";
|
|
11
|
+
import PaymentMethodIcons from "./PaymentMethodIcons";
|
|
12
|
+
|
|
13
|
+
const stripePromise = loadStripe(STRIPE_CONFIG.publishableKey);
|
|
14
|
+
|
|
15
|
+
interface PaymentStripeWeb2Props {
|
|
16
|
+
isMainnet: boolean;
|
|
17
|
+
order: Order;
|
|
18
|
+
onPaymentSuccess?: (paymentIntent: any) => void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export default function PaymentStripeWeb2({ isMainnet, order, onPaymentSuccess }: PaymentStripeWeb2Props) {
|
|
22
|
+
const { theme } = useB3();
|
|
23
|
+
|
|
24
|
+
const { clientSecret, isLoadingStripeClientSecret, stripeClientSecretError } = useStripeClientSecret(
|
|
25
|
+
isMainnet,
|
|
26
|
+
order.stripePaymentIntentId!
|
|
27
|
+
);
|
|
28
|
+
|
|
29
|
+
if (isLoadingStripeClientSecret) {
|
|
30
|
+
return <StripeLoadingState />;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
if (stripeClientSecretError) {
|
|
34
|
+
return <StripeErrorState error={stripeClientSecretError.message} />;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
return (
|
|
38
|
+
<Elements
|
|
39
|
+
stripe={stripePromise}
|
|
40
|
+
options={{
|
|
41
|
+
clientSecret: clientSecret || undefined,
|
|
42
|
+
appearance: { theme: theme === "light" ? "stripe" : "night" }
|
|
43
|
+
}}
|
|
44
|
+
>
|
|
45
|
+
<StripePaymentForm order={order} clientSecret={clientSecret} onPaymentSuccess={onPaymentSuccess} />
|
|
46
|
+
</Elements>
|
|
47
|
+
);
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
function StripeLoadingState() {
|
|
51
|
+
return (
|
|
52
|
+
<div className="relative my-8 flex w-full flex-1 flex-col items-center justify-center">
|
|
53
|
+
<div className="bg-as-on-surface-1 flex w-full flex-col items-center justify-center gap-4 rounded-2xl p-8">
|
|
54
|
+
<div className="bg-as-brand/20 flex h-16 w-16 items-center justify-center rounded-full">
|
|
55
|
+
<div className="text-as-brand h-8 w-8 animate-spin rounded-full border-2 border-current border-t-transparent" />
|
|
56
|
+
</div>
|
|
57
|
+
<div className="text-as-primary/70 text-center">
|
|
58
|
+
<div className="text-lg font-medium">Initializing payment</div>
|
|
59
|
+
<div className="text-as-primary/50 mt-2 text-sm">Setting up secure payment form...</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
function StripeErrorState({ error }: { error: string }) {
|
|
67
|
+
return (
|
|
68
|
+
<div className="relative my-8 flex w-full flex-1 flex-col items-center justify-center">
|
|
69
|
+
<div className="bg-as-red/10 border-as-red/20 flex w-full items-center gap-3 rounded-2xl border p-4">
|
|
70
|
+
<div className="bg-as-red flex h-6 w-6 shrink-0 items-center justify-center rounded-full">
|
|
71
|
+
<svg className="h-4 w-4 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
72
|
+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12" />
|
|
73
|
+
</svg>
|
|
74
|
+
</div>
|
|
75
|
+
<div className="text-as-red text-sm font-medium">Error: {error}</div>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function StripePaymentForm({
|
|
82
|
+
order,
|
|
83
|
+
clientSecret,
|
|
84
|
+
onPaymentSuccess
|
|
85
|
+
}: {
|
|
86
|
+
order: Order;
|
|
87
|
+
clientSecret: string | null;
|
|
88
|
+
onPaymentSuccess?: (paymentIntent: any) => void;
|
|
89
|
+
}) {
|
|
90
|
+
const stripe = useStripe();
|
|
91
|
+
const elements = useElements();
|
|
92
|
+
|
|
93
|
+
const [loading, setLoading] = useState<boolean>(false);
|
|
94
|
+
const [message, setMessage] = useState<string | null>(null);
|
|
95
|
+
const [amount, setAmount] = useState<string | null>(null);
|
|
96
|
+
const [stripeReady, setStripeReady] = useState<boolean>(false);
|
|
97
|
+
const [showHowItWorks, setShowHowItWorks] = useState<boolean>(false);
|
|
98
|
+
|
|
99
|
+
useEffect(() => {
|
|
100
|
+
if (stripe && elements) {
|
|
101
|
+
setStripeReady(true);
|
|
102
|
+
console.log("@@stripe-web2-payment:initialized:", JSON.stringify({ orderId: order.id }, null, 2));
|
|
103
|
+
}
|
|
104
|
+
}, [stripe, elements, order.id]);
|
|
105
|
+
|
|
106
|
+
useEffect(() => {
|
|
107
|
+
const fetchPaymentIntent = async () => {
|
|
108
|
+
if (!stripe || !clientSecret) return;
|
|
109
|
+
|
|
110
|
+
try {
|
|
111
|
+
const paymentIntent = await stripe.retrievePaymentIntent(clientSecret);
|
|
112
|
+
const amount = paymentIntent.paymentIntent?.amount
|
|
113
|
+
? formatStripeAmount(paymentIntent.paymentIntent.amount)
|
|
114
|
+
: null;
|
|
115
|
+
setAmount(amount);
|
|
116
|
+
} catch (error) {
|
|
117
|
+
console.error("@@stripe-web2-payment:retrieve-intent-error:", JSON.stringify(error, null, 2));
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
|
|
121
|
+
fetchPaymentIntent();
|
|
122
|
+
}, [clientSecret, stripe]);
|
|
123
|
+
|
|
124
|
+
const handleSubmit = async (e: React.FormEvent) => {
|
|
125
|
+
e.preventDefault();
|
|
126
|
+
|
|
127
|
+
if (!stripe || !elements) {
|
|
128
|
+
setMessage("Stripe is not initialized");
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
setLoading(true);
|
|
133
|
+
setMessage(null);
|
|
134
|
+
|
|
135
|
+
try {
|
|
136
|
+
console.log("@@stripe-web2-payment:confirming-payment:", JSON.stringify({ orderId: order.id }, null, 2));
|
|
137
|
+
const { error, paymentIntent } = await stripe.confirmPayment({
|
|
138
|
+
elements,
|
|
139
|
+
redirect: "if_required"
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
if (error) {
|
|
143
|
+
console.error("@@stripe-web2-payment:error:", JSON.stringify(error, null, 2));
|
|
144
|
+
setMessage(error.message || "An unexpected error occurred.");
|
|
145
|
+
} else if (paymentIntent && paymentIntent.status === "succeeded") {
|
|
146
|
+
console.log(
|
|
147
|
+
"@@stripe-web2-payment:success:",
|
|
148
|
+
JSON.stringify({ orderId: order.id, paymentIntentId: paymentIntent.id }, null, 2)
|
|
149
|
+
);
|
|
150
|
+
// Payment succeeded without redirect - handle success in the modal
|
|
151
|
+
setMessage(null);
|
|
152
|
+
|
|
153
|
+
// Add waitingForDeposit=true to query params
|
|
154
|
+
const currentUrl = new URL(window.location.href);
|
|
155
|
+
currentUrl.searchParams.set("waitingForDeposit", "true");
|
|
156
|
+
window.history.replaceState(null, "", currentUrl.toString());
|
|
157
|
+
|
|
158
|
+
// Call the success callback if provided
|
|
159
|
+
onPaymentSuccess?.(paymentIntent);
|
|
160
|
+
}
|
|
161
|
+
} catch (error) {
|
|
162
|
+
console.error("@@stripe-web2-payment:confirmation-error:", JSON.stringify(error, null, 2));
|
|
163
|
+
setMessage("Payment failed. Please try again.");
|
|
164
|
+
} finally {
|
|
165
|
+
setLoading(false);
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
if (!stripeReady) {
|
|
170
|
+
return <StripeLoadingState />;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
const stripeElementOptions = {
|
|
174
|
+
layout: "tabs" as const,
|
|
175
|
+
defaultValues: {
|
|
176
|
+
billingDetails: {
|
|
177
|
+
name: "",
|
|
178
|
+
email: ""
|
|
179
|
+
}
|
|
180
|
+
},
|
|
181
|
+
fields: {
|
|
182
|
+
billingDetails: "auto" as const
|
|
183
|
+
},
|
|
184
|
+
wallets: {
|
|
185
|
+
applePay: "auto" as const,
|
|
186
|
+
googlePay: "auto" as const
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
|
|
190
|
+
const howItWorksSteps = [
|
|
191
|
+
{
|
|
192
|
+
number: 1,
|
|
193
|
+
description: "Enter your payment details securely using Stripe's encrypted form"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
number: 2,
|
|
197
|
+
description: "Your payment is processed instantly and securely through our payment partner"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
number: 3,
|
|
201
|
+
description: "After payment confirmation, your order will be processed and completed automatically"
|
|
202
|
+
}
|
|
203
|
+
];
|
|
204
|
+
|
|
205
|
+
return (
|
|
206
|
+
<div className="relative my-8 flex w-full flex-1 flex-col items-center justify-center">
|
|
207
|
+
<form onSubmit={handleSubmit} className="w-full space-y-6">
|
|
208
|
+
{/* Combined Header with Security and Amount */}
|
|
209
|
+
<div className="bg-as-on-surface-1 w-full rounded-2xl p-6">
|
|
210
|
+
{/* Security Badge */}
|
|
211
|
+
<div className="mb-4 flex items-center justify-between">
|
|
212
|
+
<div className="flex items-center gap-3">
|
|
213
|
+
<div className="bg-as-brand/20 flex h-8 w-8 shrink-0 items-center justify-center rounded-full">
|
|
214
|
+
<svg className="text-as-brand h-4 w-4" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
215
|
+
<path
|
|
216
|
+
strokeLinecap="round"
|
|
217
|
+
strokeLinejoin="round"
|
|
218
|
+
strokeWidth={2}
|
|
219
|
+
d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"
|
|
220
|
+
/>
|
|
221
|
+
</svg>
|
|
222
|
+
</div>
|
|
223
|
+
<div>
|
|
224
|
+
<div className="text-as-primary text-sm font-medium">Secured by Stripe</div>
|
|
225
|
+
<div className="text-as-primary/50 text-xs">End-to-end encrypted payment</div>
|
|
226
|
+
</div>
|
|
227
|
+
</div>
|
|
228
|
+
|
|
229
|
+
{/* How it works button */}
|
|
230
|
+
<button
|
|
231
|
+
type="button"
|
|
232
|
+
onClick={() => setShowHowItWorks(true)}
|
|
233
|
+
className="text-as-primary/60 hover:text-as-primary flex items-center gap-1 text-xs transition-colors"
|
|
234
|
+
>
|
|
235
|
+
<HelpCircle className="h-4 w-4" />
|
|
236
|
+
<span>How it works</span>
|
|
237
|
+
</button>
|
|
238
|
+
</div>
|
|
239
|
+
|
|
240
|
+
{/* Amount Display */}
|
|
241
|
+
{amount && (
|
|
242
|
+
<div className="border-as-stroke border-t pt-4">
|
|
243
|
+
<div className="text-as-primary/50 mb-3 text-sm">Payment Breakdown</div>
|
|
244
|
+
|
|
245
|
+
{/* Calculate fee breakdown */}
|
|
246
|
+
{(() => {
|
|
247
|
+
const originalAmount = Number(order.srcAmount) / 10 ** USDC_BASE.decimals;
|
|
248
|
+
const finalAmount = Number(amount);
|
|
249
|
+
const calculatedFee = finalAmount - originalAmount;
|
|
250
|
+
|
|
251
|
+
return (
|
|
252
|
+
<div className="space-y-2">
|
|
253
|
+
<div className="flex items-center justify-between text-sm">
|
|
254
|
+
<span className="text-as-primary/60">Amount</span>
|
|
255
|
+
<span className="text-as-primary">${originalAmount.toFixed(2)}</span>
|
|
256
|
+
</div>
|
|
257
|
+
<div className="flex items-center justify-between text-sm">
|
|
258
|
+
<div className="flex items-center gap-1">
|
|
259
|
+
<span className="text-as-primary/60">Processing fee</span>
|
|
260
|
+
<Tooltip
|
|
261
|
+
content={`Credit card companies charge a processing fee of 5.4% + $0.30 for all transactions.\n\nThis fee covers secure payment processing and fraud protection.`}
|
|
262
|
+
>
|
|
263
|
+
<Info className="text-as-primary/40 hover:text-as-primary/60 h-3 w-3 transition-colors" />
|
|
264
|
+
</Tooltip>
|
|
265
|
+
</div>
|
|
266
|
+
<span className="text-as-primary">${calculatedFee.toFixed(2)}</span>
|
|
267
|
+
</div>
|
|
268
|
+
<div className="border-as-stroke border-t pt-2">
|
|
269
|
+
<div className="flex items-center justify-between">
|
|
270
|
+
<span className="text-as-primary font-semibold">Total Amount</span>
|
|
271
|
+
<span className="text-as-primary text-2xl font-bold">${finalAmount.toFixed(2)} USD</span>
|
|
272
|
+
</div>
|
|
273
|
+
</div>
|
|
274
|
+
</div>
|
|
275
|
+
);
|
|
276
|
+
})()}
|
|
277
|
+
</div>
|
|
278
|
+
)}
|
|
279
|
+
</div>
|
|
280
|
+
|
|
281
|
+
{/* Simplified Payment Form */}
|
|
282
|
+
<div className="bg-as-on-surface-1 w-full rounded-2xl p-6">
|
|
283
|
+
<div className="text-as-primary mb-4 text-lg font-semibold">Payment Details</div>
|
|
284
|
+
<PaymentElement options={stripeElementOptions} />
|
|
285
|
+
</div>
|
|
286
|
+
|
|
287
|
+
{/* Error Message */}
|
|
288
|
+
{message && (
|
|
289
|
+
<div className="bg-as-red/10 border-as-red/20 flex w-full items-center gap-3 rounded-2xl border p-4">
|
|
290
|
+
<div className="bg-as-red flex h-6 w-6 shrink-0 items-center justify-center rounded-full">
|
|
291
|
+
<svg className="h-4 w-4 text-white" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
292
|
+
<path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M6 18L18 6M6 6l12 12" />
|
|
293
|
+
</svg>
|
|
294
|
+
</div>
|
|
295
|
+
<div className="text-as-red text-sm font-medium">{message}</div>
|
|
296
|
+
</div>
|
|
297
|
+
)}
|
|
298
|
+
|
|
299
|
+
{/* Submit Button */}
|
|
300
|
+
<ShinyButton
|
|
301
|
+
type="submit"
|
|
302
|
+
accentColor="hsl(var(--as-brand))"
|
|
303
|
+
disabled={!stripe || !elements || loading}
|
|
304
|
+
className="relative w-full py-4 text-lg font-semibold"
|
|
305
|
+
>
|
|
306
|
+
{loading ? (
|
|
307
|
+
<div className="flex items-center justify-center gap-3">
|
|
308
|
+
<div className="h-5 w-5 animate-spin rounded-full border-2 border-current border-t-transparent" />
|
|
309
|
+
<span className="text-white">Processing Payment...</span>
|
|
310
|
+
</div>
|
|
311
|
+
) : (
|
|
312
|
+
<div className="flex items-center justify-center gap-2">
|
|
313
|
+
<span className="text-white">Complete Payment</span>
|
|
314
|
+
{amount && <span className="text-white/90">${Number(amount).toFixed(2)}</span>}
|
|
315
|
+
</div>
|
|
316
|
+
)}
|
|
317
|
+
</ShinyButton>
|
|
318
|
+
</form>
|
|
319
|
+
|
|
320
|
+
{/* How it works modal */}
|
|
321
|
+
{showHowItWorks && (
|
|
322
|
+
<div className="fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4">
|
|
323
|
+
<div className="bg-as-on-surface-1 relative max-h-[80vh] w-full max-w-2xl overflow-y-auto rounded-2xl p-6">
|
|
324
|
+
{/* Modal header */}
|
|
325
|
+
<div className="mb-6 flex items-center justify-between">
|
|
326
|
+
<h2 className="text-as-primary text-xl font-semibold">How it works</h2>
|
|
327
|
+
<button
|
|
328
|
+
onClick={() => setShowHowItWorks(false)}
|
|
329
|
+
className="text-as-primary/60 hover:text-as-primary transition-colors"
|
|
330
|
+
>
|
|
331
|
+
<X className="h-6 w-6" />
|
|
332
|
+
</button>
|
|
333
|
+
</div>
|
|
334
|
+
|
|
335
|
+
{/* Modal content */}
|
|
336
|
+
<div className="space-y-6">
|
|
337
|
+
<PaymentMethodIcons />
|
|
338
|
+
<HowItWorks steps={howItWorksSteps} />
|
|
339
|
+
</div>
|
|
340
|
+
</div>
|
|
341
|
+
</div>
|
|
342
|
+
)}
|
|
343
|
+
</div>
|
|
344
|
+
);
|
|
345
|
+
}
|
|
346
|
+
|
|
347
|
+
// Add tooltip component
|
|
348
|
+
function Tooltip({ children, content }: { children: React.ReactNode; content: string }) {
|
|
349
|
+
const [isVisible, setIsVisible] = useState(false);
|
|
350
|
+
|
|
351
|
+
return (
|
|
352
|
+
<div className="relative inline-block">
|
|
353
|
+
<div onMouseEnter={() => setIsVisible(true)} onMouseLeave={() => setIsVisible(false)} className="cursor-help">
|
|
354
|
+
{children}
|
|
355
|
+
</div>
|
|
356
|
+
{isVisible && (
|
|
357
|
+
<div className="absolute bottom-full left-1/2 z-50 mb-2 w-80 -translate-x-1/2">
|
|
358
|
+
<div className="bg-as-on-surface-1 border-as-stroke text-as-primary rounded-lg border p-3 text-sm shadow-lg">
|
|
359
|
+
<div className="whitespace-pre-line">{content}</div>
|
|
360
|
+
<div className="absolute left-1/2 top-full -translate-x-1/2">
|
|
361
|
+
<div className="border-t-as-on-surface-1 border-l-4 border-r-4 border-t-4 border-transparent"></div>
|
|
362
|
+
</div>
|
|
363
|
+
</div>
|
|
364
|
+
</div>
|
|
365
|
+
)}
|
|
366
|
+
</div>
|
|
367
|
+
);
|
|
368
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OnrampVendor, Order } from "@b3dotfun/sdk/anyspend";
|
|
2
|
+
import PaymentOneClick from "./PaymentOneClick";
|
|
3
|
+
import PaymentStripeWeb2 from "./PaymentStripeWeb2";
|
|
4
|
+
|
|
5
|
+
interface PaymentVendorUIProps {
|
|
6
|
+
isMainnet: boolean;
|
|
7
|
+
order: Order;
|
|
8
|
+
dstTokenSymbol: string;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export default function PaymentVendorUI({ isMainnet, order, dstTokenSymbol }: PaymentVendorUIProps) {
|
|
12
|
+
const vendor = order.onrampMetadata?.vendor;
|
|
13
|
+
|
|
14
|
+
// Handle one-click payment flows (Coinbase, Stripe redirect)
|
|
15
|
+
if (order.oneClickBuyUrl) {
|
|
16
|
+
return <PaymentOneClick order={order} dstTokenSymbol={dstTokenSymbol} />;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
// Handle Stripe Web2 payment flow
|
|
20
|
+
if (vendor === OnrampVendor.StripeWeb2) {
|
|
21
|
+
return <PaymentStripeWeb2 isMainnet={isMainnet} order={order} />;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Return null for unsupported vendors
|
|
25
|
+
return null;
|
|
26
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { Token } from "@b3dotfun/sdk/anyspend";
|
|
2
|
+
import { useTokenBalance } from "@b3dotfun/sdk/global-account/react/hooks/useTokenBalance";
|
|
3
|
+
import { formatUnits } from "viem";
|
|
4
|
+
|
|
5
|
+
export default function TokenBalance({
|
|
6
|
+
token,
|
|
7
|
+
walletAddress,
|
|
8
|
+
onChangeInput
|
|
9
|
+
}: {
|
|
10
|
+
token: Token;
|
|
11
|
+
walletAddress: string | undefined;
|
|
12
|
+
onChangeInput: (value: string) => void;
|
|
13
|
+
}) {
|
|
14
|
+
const { rawBalance, formattedBalance, isLoading } = useTokenBalance({
|
|
15
|
+
token,
|
|
16
|
+
address: walletAddress
|
|
17
|
+
});
|
|
18
|
+
|
|
19
|
+
const handlePercentageClick = (percentage: number) => {
|
|
20
|
+
if (!rawBalance) return;
|
|
21
|
+
|
|
22
|
+
// Calculate the amount based on percentage of balance
|
|
23
|
+
// Multiply first, then divide to avoid BigInt truncation
|
|
24
|
+
const amount = percentage === 100 ? rawBalance : (rawBalance * BigInt(percentage)) / 100n;
|
|
25
|
+
|
|
26
|
+
onChangeInput(formatUnits(amount, token.decimals));
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
return (
|
|
30
|
+
<div className="flex h-7 items-center justify-end gap-1" key={`balance-${token.address}-${token.chainId}`}>
|
|
31
|
+
{!isLoading && (
|
|
32
|
+
<>
|
|
33
|
+
<div className="text-as-primary/50 inline-flex rounded-lg text-sm">
|
|
34
|
+
{rawBalance ? `Balance: ${formattedBalance}` : `Balance: 0`}
|
|
35
|
+
</div>
|
|
36
|
+
|
|
37
|
+
{!!rawBalance && (
|
|
38
|
+
<>
|
|
39
|
+
<button
|
|
40
|
+
onClick={() => handlePercentageClick(20)}
|
|
41
|
+
className="text-as-primary/50 bg-as-on-surface-2 hover:bg-as-on-surface-3 inline-flex rounded-lg px-2 py-1 text-xs transition-colors sm:hidden"
|
|
42
|
+
>
|
|
43
|
+
20%
|
|
44
|
+
</button>
|
|
45
|
+
<button
|
|
46
|
+
onClick={() => handlePercentageClick(50)}
|
|
47
|
+
className="text-as-primary/50 bg-as-on-surface-2 hover:bg-as-on-surface-3 inline-flex rounded-lg px-2 py-1 text-xs transition-colors"
|
|
48
|
+
>
|
|
49
|
+
50%
|
|
50
|
+
</button>
|
|
51
|
+
<button
|
|
52
|
+
onClick={() => handlePercentageClick(100)}
|
|
53
|
+
className="text-as-primary/50 bg-as-on-surface-2 hover:bg-as-on-surface-3 inline-flex rounded-lg px-2 py-1 text-xs transition-colors"
|
|
54
|
+
>
|
|
55
|
+
MAX
|
|
56
|
+
</button>
|
|
57
|
+
</>
|
|
58
|
+
)}
|
|
59
|
+
</>
|
|
60
|
+
)}
|
|
61
|
+
</div>
|
|
62
|
+
);
|
|
63
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export function EthIcon({ className }: { className?: string }) {
|
|
2
|
+
return (
|
|
3
|
+
<svg
|
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="24"
|
|
6
|
+
height="24"
|
|
7
|
+
fill="none"
|
|
8
|
+
viewBox="0 0 24 24"
|
|
9
|
+
className={className}
|
|
10
|
+
>
|
|
11
|
+
<path fill="#8FFCF3" d="M12 3v6.65l5.625 2.516z" />
|
|
12
|
+
<path fill="#CABCF8" d="m12 3-5.625 9.166L12 9.651z" />
|
|
13
|
+
<path fill="#CBA7F5" d="M12 16.477v4.522l5.625-7.784z" />
|
|
14
|
+
<path fill="#74A0F3" d="M12 21v-4.523l-5.625-3.262z" />
|
|
15
|
+
<path fill="#CBA7F5" d="m12 15.43 5.625-3.263L12 9.65z" />
|
|
16
|
+
<path fill="#74A0F3" d="M6.375 12.167 12 15.429V9.651z" />
|
|
17
|
+
<path
|
|
18
|
+
fill="#202699"
|
|
19
|
+
fillRule="evenodd"
|
|
20
|
+
d="m12 15.429-5.625-3.263L12 3l5.625 9.166zM6.749 11.9l5.16-8.41v6.115zm-.077.23 5.238-2.327v5.364zm5.418-2.327v5.364l5.233-3.038zm0-.198 5.16 2.295-5.16-8.41z"
|
|
21
|
+
clipRule="evenodd"
|
|
22
|
+
/>
|
|
23
|
+
<path
|
|
24
|
+
fill="#202699"
|
|
25
|
+
fillRule="evenodd"
|
|
26
|
+
d="M12 16.406 6.375 13.21 12 21l5.625-7.79zm-4.995-2.633 4.905 2.79v4.005zm5.085 2.79v4.005l4.905-6.795z"
|
|
27
|
+
clipRule="evenodd"
|
|
28
|
+
/>
|
|
29
|
+
</svg>
|
|
30
|
+
);
|
|
31
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
export function SolIcon({ className }: { className?: string }) {
|
|
2
|
+
return (
|
|
3
|
+
<svg
|
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="24"
|
|
6
|
+
height="24"
|
|
7
|
+
fill="none"
|
|
8
|
+
viewBox="0 0 24 24"
|
|
9
|
+
className={className}
|
|
10
|
+
>
|
|
11
|
+
<path
|
|
12
|
+
fill="url(#SOL__a)"
|
|
13
|
+
d="M18.413 7.903a.62.62 0 0 1-.411.164H3.58c-.512 0-.77-.585-.416-.929l2.368-2.283a.6.6 0 0 1 .41-.169h14.479c.517 0 .77.59.41.934z"
|
|
14
|
+
/>
|
|
15
|
+
<path
|
|
16
|
+
fill="url(#SOL__b)"
|
|
17
|
+
d="M18.413 19.157a.6.6 0 0 1-.411.157H3.58c-.512 0-.77-.58-.416-.923l2.368-2.289a.6.6 0 0 1 .41-.163h14.479c.517 0 .77.585.41.928z"
|
|
18
|
+
/>
|
|
19
|
+
<path
|
|
20
|
+
fill="url(#SOL__c)"
|
|
21
|
+
d="M18.413 10.472a.6.6 0 0 0-.411-.158H3.58c-.512 0-.77.58-.416.922l2.368 2.29a.62.62 0 0 0 .41.163h14.479c.517 0 .77-.585.41-.928z"
|
|
22
|
+
/>
|
|
23
|
+
<defs>
|
|
24
|
+
<linearGradient id="SOL__a" x1="3.001" x2="21.431" y1="16.322" y2="15.591" gradientUnits="userSpaceOnUse">
|
|
25
|
+
<stop stopColor="#599DB0" />
|
|
26
|
+
<stop offset="1" stopColor="#47F8C3" />
|
|
27
|
+
</linearGradient>
|
|
28
|
+
<linearGradient id="SOL__b" x1="3.001" x2="21.323" y1="16.973" y2="16.366" gradientUnits="userSpaceOnUse">
|
|
29
|
+
<stop stopColor="#C44FE2" />
|
|
30
|
+
<stop offset="1" stopColor="#73B0D0" />
|
|
31
|
+
</linearGradient>
|
|
32
|
+
<linearGradient id="SOL__c" x1="4.035" x2="20.302" y1="12.002" y2="12.002" gradientUnits="userSpaceOnUse">
|
|
33
|
+
<stop stopColor="#778CBF" />
|
|
34
|
+
<stop offset="1" stopColor="#5DCDC9" />
|
|
35
|
+
</linearGradient>
|
|
36
|
+
</defs>
|
|
37
|
+
</svg>
|
|
38
|
+
);
|
|
39
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export function UsdcIcon({ className }: { className?: string }) {
|
|
2
|
+
return (
|
|
3
|
+
<svg
|
|
4
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
+
width="24"
|
|
6
|
+
height="24"
|
|
7
|
+
fill="none"
|
|
8
|
+
viewBox="0 0 24 24"
|
|
9
|
+
className={className}
|
|
10
|
+
>
|
|
11
|
+
<path
|
|
12
|
+
fill="#2775CA"
|
|
13
|
+
fillRule="evenodd"
|
|
14
|
+
d="M12 21c4.99 0 9-4.01 9-9s-4.01-9-9-9-9 4.01-9 9 4.01 9 9 9m2.475-7.578c0-1.31-.787-1.76-2.362-1.946-1.125-.152-1.35-.45-1.35-.978 0-.523.377-.86 1.125-.86.675 0 1.052.224 1.237.787.04.112.152.185.265.185h.596a.256.256 0 0 0 .264-.259v-.039c-.152-.827-.827-1.614-1.687-1.687v-.827c0-.152-.113-.265-.298-.298h-.495c-.152 0-.293.112-.332.298v.827c-1.125.151-1.873 1.012-1.873 1.951 0 1.238.748 1.722 2.323 1.913 1.052.185 1.39.41 1.39 1.012 0 .597-.53 1.013-1.238 1.013-.98 0-1.316-.416-1.429-.979-.034-.146-.146-.225-.259-.225h-.641a.256.256 0 0 0-.259.264v.04c.146.934.748 1.575 1.986 1.76v.833c0 .152.112.253.298.293h.54c.146 0 .248-.102.287-.293v-.833c1.125-.185 1.912-.939 1.912-1.952m-6.262 2.803a5.6 5.6 0 0 0 1.875 1.135c.112.079.225.225.225.338v.528c0 .073 0 .113-.04.146-.033.152-.185.225-.337.152a6.751 6.751 0 0 1 0-12.864c.04-.034.112-.034.152-.034.152.034.225.147.225.298v.524c0 .19-.073.303-.225.376a5.55 5.55 0 0 0-3.336 3.336 5.59 5.59 0 0 0 1.46 6.065m5.514-10.413c.034-.152.186-.225.338-.152a6.8 6.8 0 0 1 4.387 4.427c1.125 3.56-.827 7.352-4.387 8.477-.04.033-.113.033-.152.033-.152-.033-.225-.146-.225-.298v-.523c0-.191.073-.303.225-.377a5.55 5.55 0 0 0 3.335-3.335 5.585 5.585 0 0 0-3.335-7.2c-.113-.079-.225-.225-.225-.377v-.523c0-.079 0-.113.04-.152"
|
|
15
|
+
clipRule="evenodd"
|
|
16
|
+
/>
|
|
17
|
+
</svg>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { useEffect, useState } from "react";
|
|
2
|
+
import { Dialog, DialogContent } from "@b3dotfun/sdk/global-account/react/components/ui/dialog";
|
|
3
|
+
import { Input } from "@b3dotfun/sdk/global-account/react/components/ui/input";
|
|
4
|
+
import ShinyButton from "@b3dotfun/sdk/global-account/react/components/ui/ShinyButton";
|
|
5
|
+
|
|
6
|
+
export function EnterRecipientModal({
|
|
7
|
+
isOpenPasteRecipientAddress,
|
|
8
|
+
setIsOpenPasteRecipientAddress,
|
|
9
|
+
recipientAddress,
|
|
10
|
+
setRecipientAddress
|
|
11
|
+
}: {
|
|
12
|
+
isOpenPasteRecipientAddress: boolean;
|
|
13
|
+
setIsOpenPasteRecipientAddress: (isOpen: boolean) => void;
|
|
14
|
+
recipientAddress: string | undefined;
|
|
15
|
+
setRecipientAddress: (address: string) => void;
|
|
16
|
+
}) {
|
|
17
|
+
const [modalRecipientAddress, setModalRecipientAddress] = useState(recipientAddress || "");
|
|
18
|
+
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
setModalRecipientAddress(recipientAddress || "");
|
|
21
|
+
}, [recipientAddress]);
|
|
22
|
+
|
|
23
|
+
return (
|
|
24
|
+
<Dialog open={isOpenPasteRecipientAddress} onOpenChange={setIsOpenPasteRecipientAddress}>
|
|
25
|
+
<DialogContent className="w-[420px] max-w-[calc(100vw-32px)] rounded-2xl p-3.5">
|
|
26
|
+
<div className="flex flex-col gap-3">
|
|
27
|
+
<div className="text-as-primary font-semibold">To address</div>
|
|
28
|
+
<Input
|
|
29
|
+
value={modalRecipientAddress}
|
|
30
|
+
onChange={e => setModalRecipientAddress(e.target.value)}
|
|
31
|
+
placeholder="Enter address"
|
|
32
|
+
className="h-12 rounded-lg"
|
|
33
|
+
spellCheck={false}
|
|
34
|
+
/>
|
|
35
|
+
<ShinyButton
|
|
36
|
+
accentColor={"hsl(var(--as-brand))"}
|
|
37
|
+
textColor="text-white"
|
|
38
|
+
className="w-full rounded-lg"
|
|
39
|
+
onClick={() => {
|
|
40
|
+
setIsOpenPasteRecipientAddress(false);
|
|
41
|
+
setRecipientAddress(modalRecipientAddress);
|
|
42
|
+
}}
|
|
43
|
+
>
|
|
44
|
+
Save
|
|
45
|
+
</ShinyButton>
|
|
46
|
+
</div>
|
|
47
|
+
</DialogContent>
|
|
48
|
+
</Dialog>
|
|
49
|
+
);
|
|
50
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export * from "./useAnyspendCreateOnrampOrder";
|
|
2
|
+
export * from "./useAnyspendCreateOrder";
|
|
3
|
+
export * from "./useAnyspendOrderAndTransactions";
|
|
4
|
+
export * from "./useAnyspendOrderHistory";
|
|
5
|
+
export * from "./useAnyspendQuote";
|
|
6
|
+
export * from "./useAnyspendSendPermitData";
|
|
7
|
+
export * from "./useAnyspendTokens";
|
|
8
|
+
export * from "./useCoinbaseOnrampOptions";
|
|
9
|
+
export * from "./useGeoOnrampOptions";
|
|
10
|
+
export * from "./useGetGeo";
|
|
11
|
+
export * from "./usePermitData";
|
|
12
|
+
export * from "./useStripeClientSecret";
|
|
13
|
+
export * from "./useStripeSupport";
|