@b3dotfun/sdk 0.0.7-alpha.18 → 0.0.7-alpha.2
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/dist/cjs/anyspend/abis/abi-usdc-base.js +97 -97
- package/dist/cjs/anyspend/abis/erc20-staking.js +51 -51
- package/dist/cjs/anyspend/constants/index.js +10 -13
- package/dist/cjs/anyspend/index.d.ts +0 -1
- package/dist/cjs/anyspend/index.js +0 -1
- package/dist/cjs/anyspend/react/components/AnySpend.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnySpend.js +20 -20
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +66 -68
- package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +4 -4
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +90 -133
- package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +2 -3
- package/dist/cjs/anyspend/react/components/AnySpendNFT.js +5 -7
- package/dist/cjs/anyspend/react/components/AnySpendNFTButton.js +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +20 -21
- package/dist/cjs/anyspend/react/components/AnySpendTournament.js +4 -7
- package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/common/ChainTokenIcon.js +1 -1
- package/dist/cjs/anyspend/react/components/common/OrderDetails.js +23 -52
- package/dist/cjs/anyspend/react/components/common/OrderToken.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/common/OrderToken.js +4 -4
- package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.js +2 -2
- package/dist/cjs/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/common/PanelOnramp.js +2 -2
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +7 -7
- package/dist/cjs/anyspend/react/components/common/PaymentMethodIcons.js +1 -1
- package/dist/cjs/anyspend/react/components/common/PaymentOneClick.js +3 -3
- package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.js +12 -12
- package/dist/cjs/anyspend/react/components/common/TokenBalance.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/common/TokenBalance.js +2 -2
- package/dist/cjs/anyspend/react/components/index.d.ts +0 -1
- package/dist/cjs/anyspend/react/components/index.js +1 -3
- package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.js +6 -6
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +14 -14
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +18 -3
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +6 -6
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +6 -6
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +0 -14
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -14
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -3
- package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendSendPermitData.js +3 -3
- package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.js +3 -3
- package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useGetGeo.js +1 -1
- package/dist/cjs/anyspend/react/hooks/usePermitData.js +19 -19
- package/dist/cjs/anyspend/react/hooks/useStripeClientSecret.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useStripeSupport.js +2 -2
- package/dist/cjs/anyspend/react/providers/AnyspendProvider.js +3 -3
- package/dist/cjs/anyspend/services/anyspend.d.ts +2 -9
- package/dist/cjs/anyspend/services/anyspend.js +14 -14
- package/dist/cjs/anyspend/types/custom.js +2 -2
- package/dist/cjs/anyspend/types/globalWallet.js +1 -1
- package/dist/cjs/anyspend/types/index.d.ts +0 -1
- package/dist/cjs/anyspend/types/index.js +0 -1
- package/dist/cjs/anyspend/types/nft.d.ts +0 -7
- package/dist/cjs/anyspend/types/nft.js +6 -8
- package/dist/cjs/anyspend/types/onramp.d.ts +0 -3
- package/dist/cjs/anyspend/types/onramp.js +1 -2
- package/dist/cjs/anyspend/types/order.d.ts +0 -40
- package/dist/cjs/anyspend/types/order.js +7 -7
- package/dist/cjs/anyspend/types/permit.js +1 -1
- package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +0 -98
- package/dist/cjs/anyspend/types/req-res/createOrder.js +9 -9
- package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.js +5 -5
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -63
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.js +4 -4
- package/dist/cjs/anyspend/types/req-res/getOrderByCreator.js +2 -2
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +0 -49
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.js +1 -1
- package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +0 -37
- package/dist/cjs/anyspend/types/req-res/getQuote.js +9 -14
- package/dist/cjs/anyspend/types/req-res/getTokenList.js +3 -3
- package/dist/cjs/anyspend/types/req-res/sendPermitData.js +2 -2
- package/dist/cjs/anyspend/types/swap.js +2 -2
- package/dist/cjs/anyspend/types/token.js +2 -2
- package/dist/cjs/anyspend/types/tournament.js +4 -4
- package/dist/cjs/anyspend/types/transaction.js +4 -4
- package/dist/cjs/anyspend/utils/chain.js +16 -16
- package/dist/cjs/anyspend/utils/format.js +2 -2
- package/dist/cjs/anyspend/utils/orderPayload.d.ts +3 -3
- package/dist/cjs/anyspend/utils/orderPayload.js +8 -22
- package/dist/cjs/anyspend/utils/token.js +10 -10
- package/dist/cjs/global-account/app.js +4 -4
- package/dist/cjs/global-account/app.native.js +4 -4
- package/dist/cjs/global-account/bsmnt.js +4 -4
- package/dist/cjs/global-account/bsmnt.native.js +4 -4
- package/dist/cjs/global-account/react/components/B3DynamicModal.js +1 -1
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.d.ts +3 -3
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +6 -6
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.native.js +4 -4
- package/dist/cjs/global-account/react/components/B3Provider/types.js +1 -1
- package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ManageAccount/ManageAccount.js +5 -5
- package/dist/cjs/global-account/react/components/MintButton/MintButton.d.ts +1 -1
- package/dist/cjs/global-account/react/components/MintButton/MintButton.js +5 -5
- package/dist/cjs/global-account/react/components/RelayKitProviderWrapper.js +2 -2
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissions.js +5 -5
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
- package/dist/cjs/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +2 -2
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +2 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.js +17 -12
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +12 -12
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/components/AuthButton.js +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/components/WalletRow.js +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStep.js +9 -9
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +2 -2
- package/dist/cjs/global-account/react/components/SignInWithB3/utils/signInUtils.js +2 -2
- package/dist/cjs/global-account/react/components/StyleRoot.js +1 -0
- package/dist/cjs/global-account/react/components/Transak/TransakModal.js +4 -4
- package/dist/cjs/global-account/react/components/custom/Button.js +5 -5
- package/dist/cjs/global-account/react/components/custom/StaggeredFadeLoader.js +3 -3
- package/dist/cjs/global-account/react/components/index.d.ts +4 -4
- package/dist/cjs/global-account/react/components/magicui/AnimatedLottie.js +1 -1
- package/dist/cjs/global-account/react/components/ui/Loading.js +2 -2
- package/dist/cjs/global-account/react/components/ui/ShinyButton.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ui/ShinyButton.js +3 -3
- package/dist/cjs/global-account/react/components/ui/TabSystem.js +1 -1
- package/dist/cjs/global-account/react/components/ui/Tabs.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ui/Tabs.js +1 -1
- package/dist/cjs/global-account/react/components/ui/badge.js +4 -4
- package/dist/cjs/global-account/react/components/ui/button.js +5 -5
- package/dist/cjs/global-account/react/components/ui/command.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ui/dialog.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ui/drawer.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ui/glare-card-rounded.js +12 -12
- package/dist/cjs/global-account/react/components/ui/glare-card.js +11 -11
- package/dist/cjs/global-account/react/components/ui/input.js +1 -1
- package/dist/cjs/global-account/react/components/ui/text-loop.d.ts +1 -1
- package/dist/cjs/global-account/react/components/ui/text-loop.js +2 -2
- package/dist/cjs/global-account/react/components/ui/text-shimmer.js +2 -2
- package/dist/cjs/global-account/react/hooks/useAccountAssets.js +4 -4
- package/dist/cjs/global-account/react/hooks/useAccountWallet.js +8 -8
- package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
- package/dist/cjs/global-account/react/hooks/useAddTWSessionKey.js +6 -6
- package/dist/cjs/global-account/react/hooks/useAuthentication.js +3 -3
- package/dist/cjs/global-account/react/hooks/useB3BalanceFromAddresses.js +7 -7
- package/dist/cjs/global-account/react/hooks/useB3EnsName.d.ts +4 -8
- package/dist/cjs/global-account/react/hooks/useB3EnsName.js +23 -32
- package/dist/cjs/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useBestTransactionPath.js +10 -10
- package/dist/cjs/global-account/react/hooks/useBsmntProfile.js +1 -1
- package/dist/cjs/global-account/react/hooks/useChainSwitchWithAction.js +3 -3
- package/dist/cjs/global-account/react/hooks/useClaim.js +4 -4
- package/dist/cjs/global-account/react/hooks/useConnect.js +3 -3
- package/dist/cjs/global-account/react/hooks/useExchangeRate.js +3 -3
- package/dist/cjs/global-account/react/hooks/useGetAllTWSigners.js +7 -7
- package/dist/cjs/global-account/react/hooks/useGetGeo.js +1 -1
- package/dist/cjs/global-account/react/hooks/useHandleConnectWithPrivy.js +2 -2
- package/dist/cjs/global-account/react/hooks/useNativeBalance.js +6 -6
- package/dist/cjs/global-account/react/hooks/useOnchainName.js +10 -10
- package/dist/cjs/global-account/react/hooks/useOneBalance.js +2 -2
- package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useRemoveSessionKey.js +3 -3
- package/dist/cjs/global-account/react/hooks/useRouter.js +6 -6
- package/dist/cjs/global-account/react/hooks/useSiwe.js +4 -4
- package/dist/cjs/global-account/react/hooks/useTokenBalance.js +6 -6
- package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useTokenBalancesByChain.js +9 -9
- package/dist/cjs/global-account/react/hooks/useTokenData.js +3 -3
- package/dist/cjs/global-account/react/hooks/useTokenFromUrl.js +14 -14
- package/dist/cjs/global-account/react/hooks/useTokenPrice.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useTokenPrice.js +6 -6
- package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useTokenPriceWithFallback.js +7 -7
- package/dist/cjs/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useTokensFromAddress.js +2 -2
- package/dist/cjs/global-account/react/hooks/useURLParams.js +1 -1
- package/dist/cjs/global-account/react/stores/index.d.ts +1 -1
- package/dist/cjs/global-account/react/stores/useAuthStore.js +3 -3
- package/dist/cjs/global-account/react/stores/useModalStore.d.ts +0 -2
- package/dist/cjs/global-account/react/stores/useModalStore.js +3 -3
- package/dist/cjs/global-account/server.js +3 -3
- package/dist/cjs/global-account/types/chain-networks.js +8 -8
- package/dist/cjs/global-account/types/feature-flags.js +1 -1
- package/dist/cjs/shared/constants/chains/b3Chain.js +35 -35
- package/dist/cjs/shared/constants/chains/chainPlatformMap.js +1 -1
- package/dist/cjs/shared/constants/chains/supported.js +1 -1
- package/dist/cjs/shared/constants/index.d.ts +0 -1
- package/dist/cjs/shared/constants/index.js +2 -3
- package/dist/cjs/shared/thirdweb/initiateClient.js +2 -2
- package/dist/cjs/shared/thirdweb/openapi-ts.config.js +1 -1
- package/dist/cjs/shared/utils/b3Ens.js +4 -4
- package/dist/cjs/shared/utils/chain-transformers.js +9 -9
- package/dist/cjs/shared/utils/fetchBalances.js +4 -4
- package/dist/cjs/shared/utils/index.d.ts +0 -9
- package/dist/cjs/shared/utils/index.js +0 -17
- package/dist/cjs/shared/utils/insights.js +28 -28
- package/dist/cjs/shared/utils/ipfs.js +1 -1
- package/dist/cjs/shared/utils/number.js +3 -3
- package/dist/cjs/shared/utils/simplehash.js +22 -22
- package/dist/cjs/shared/utils/thirdweb-insights.js +15 -15
- package/dist/esm/anyspend/abis/abi-usdc-base.js +97 -97
- package/dist/esm/anyspend/abis/erc20-staking.js +51 -51
- package/dist/esm/anyspend/constants/index.js +10 -13
- package/dist/esm/anyspend/index.d.ts +0 -1
- package/dist/esm/anyspend/index.js +0 -1
- package/dist/esm/anyspend/react/components/AnySpend.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnySpend.js +22 -22
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +39 -41
- package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +4 -4
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +71 -114
- package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +2 -3
- package/dist/esm/anyspend/react/components/AnySpendNFT.js +5 -7
- package/dist/esm/anyspend/react/components/AnySpendNFTButton.js +1 -1
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +21 -22
- package/dist/esm/anyspend/react/components/AnySpendTournament.js +4 -7
- package/dist/esm/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
- package/dist/esm/anyspend/react/components/common/ChainTokenIcon.js +1 -1
- package/dist/esm/anyspend/react/components/common/OrderDetails.js +24 -53
- package/dist/esm/anyspend/react/components/common/OrderToken.d.ts +1 -1
- package/dist/esm/anyspend/react/components/common/OrderToken.js +4 -4
- package/dist/esm/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
- package/dist/esm/anyspend/react/components/common/OrderTokenAmount.js +2 -2
- package/dist/esm/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
- package/dist/esm/anyspend/react/components/common/PanelOnramp.js +2 -2
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +8 -8
- package/dist/esm/anyspend/react/components/common/PaymentMethodIcons.js +1 -1
- package/dist/esm/anyspend/react/components/common/PaymentOneClick.js +3 -3
- package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.js +12 -12
- package/dist/esm/anyspend/react/components/common/TokenBalance.d.ts +1 -1
- package/dist/esm/anyspend/react/components/common/TokenBalance.js +2 -2
- package/dist/esm/anyspend/react/components/index.d.ts +0 -1
- package/dist/esm/anyspend/react/components/index.js +0 -1
- package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
- package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.js +2 -2
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +15 -15
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +18 -3
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.js +6 -6
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +7 -7
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +0 -14
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -14
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -3
- package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendSendPermitData.js +3 -3
- package/dist/esm/anyspend/react/hooks/useAnyspendTokens.js +3 -3
- package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.js +2 -2
- package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.js +2 -2
- package/dist/esm/anyspend/react/hooks/useGetGeo.js +1 -1
- package/dist/esm/anyspend/react/hooks/usePermitData.js +19 -19
- package/dist/esm/anyspend/react/hooks/useStripeClientSecret.js +2 -2
- package/dist/esm/anyspend/react/hooks/useStripeSupport.js +2 -2
- package/dist/esm/anyspend/react/providers/AnyspendProvider.js +3 -3
- package/dist/esm/anyspend/services/anyspend.d.ts +2 -9
- package/dist/esm/anyspend/services/anyspend.js +15 -15
- package/dist/esm/anyspend/types/custom.js +2 -2
- package/dist/esm/anyspend/types/globalWallet.js +1 -1
- package/dist/esm/anyspend/types/index.d.ts +0 -1
- package/dist/esm/anyspend/types/index.js +0 -1
- package/dist/esm/anyspend/types/nft.d.ts +0 -7
- package/dist/esm/anyspend/types/nft.js +6 -8
- package/dist/esm/anyspend/types/onramp.d.ts +0 -3
- package/dist/esm/anyspend/types/onramp.js +1 -2
- package/dist/esm/anyspend/types/order.d.ts +0 -40
- package/dist/esm/anyspend/types/order.js +7 -7
- package/dist/esm/anyspend/types/permit.js +1 -1
- package/dist/esm/anyspend/types/req-res/createOrder.d.ts +0 -98
- package/dist/esm/anyspend/types/req-res/createOrder.js +9 -9
- package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.js +5 -5
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -63
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.js +4 -4
- package/dist/esm/anyspend/types/req-res/getOrderByCreator.js +2 -2
- package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +0 -49
- package/dist/esm/anyspend/types/req-res/getOrderHistory.js +1 -1
- package/dist/esm/anyspend/types/req-res/getQuote.d.ts +0 -37
- package/dist/esm/anyspend/types/req-res/getQuote.js +9 -14
- package/dist/esm/anyspend/types/req-res/getTokenList.js +3 -3
- package/dist/esm/anyspend/types/req-res/sendPermitData.js +2 -2
- package/dist/esm/anyspend/types/swap.js +2 -2
- package/dist/esm/anyspend/types/token.js +2 -2
- package/dist/esm/anyspend/types/tournament.js +4 -4
- package/dist/esm/anyspend/types/transaction.js +4 -4
- package/dist/esm/anyspend/utils/chain.js +18 -18
- package/dist/esm/anyspend/utils/format.js +2 -2
- package/dist/esm/anyspend/utils/orderPayload.d.ts +3 -3
- package/dist/esm/anyspend/utils/orderPayload.js +9 -23
- package/dist/esm/anyspend/utils/token.js +10 -10
- package/dist/esm/global-account/app.js +4 -4
- package/dist/esm/global-account/app.native.js +4 -4
- package/dist/esm/global-account/bsmnt.js +4 -4
- package/dist/esm/global-account/bsmnt.native.js +4 -4
- package/dist/esm/global-account/react/components/B3DynamicModal.js +2 -2
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.d.ts +3 -3
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +6 -6
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.native.js +4 -4
- package/dist/esm/global-account/react/components/B3Provider/types.js +1 -1
- package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
- package/dist/esm/global-account/react/components/ManageAccount/ManageAccount.js +6 -6
- package/dist/esm/global-account/react/components/MintButton/MintButton.d.ts +1 -1
- package/dist/esm/global-account/react/components/MintButton/MintButton.js +5 -5
- package/dist/esm/global-account/react/components/RelayKitProviderWrapper.js +2 -2
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissions.js +6 -6
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
- package/dist/esm/global-account/react/components/RequestPermissions/RequestPermissionsButton.js +2 -2
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +2 -1
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.js +13 -8
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Flow.js +13 -13
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3Privy.js +2 -2
- package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
- package/dist/esm/global-account/react/components/SignInWithB3/components/AuthButton.js +1 -1
- package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
- package/dist/esm/global-account/react/components/SignInWithB3/components/WalletRow.js +1 -1
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStep.js +9 -9
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
- package/dist/esm/global-account/react/components/SignInWithB3/steps/LoginStepCustom.js +3 -3
- package/dist/esm/global-account/react/components/SignInWithB3/utils/signInUtils.js +2 -2
- package/dist/esm/global-account/react/components/StyleRoot.js +1 -0
- package/dist/esm/global-account/react/components/Transak/TransakModal.js +4 -4
- package/dist/esm/global-account/react/components/custom/Button.js +5 -5
- package/dist/esm/global-account/react/components/custom/StaggeredFadeLoader.js +3 -3
- package/dist/esm/global-account/react/components/custom/WalletConnectorIcon.js +1 -1
- package/dist/esm/global-account/react/components/index.d.ts +4 -4
- package/dist/esm/global-account/react/components/index.js +4 -4
- package/dist/esm/global-account/react/components/magicui/AnimatedLottie.js +1 -1
- package/dist/esm/global-account/react/components/ui/Loading.js +2 -2
- package/dist/esm/global-account/react/components/ui/ShinyButton.d.ts +1 -1
- package/dist/esm/global-account/react/components/ui/ShinyButton.js +3 -3
- package/dist/esm/global-account/react/components/ui/TabSystem.js +1 -1
- package/dist/esm/global-account/react/components/ui/Tabs.d.ts +1 -1
- package/dist/esm/global-account/react/components/ui/Tabs.js +1 -1
- package/dist/esm/global-account/react/components/ui/badge.js +4 -4
- package/dist/esm/global-account/react/components/ui/button.js +5 -5
- package/dist/esm/global-account/react/components/ui/command.d.ts +1 -1
- package/dist/esm/global-account/react/components/ui/command.js +1 -1
- package/dist/esm/global-account/react/components/ui/dialog.d.ts +1 -1
- package/dist/esm/global-account/react/components/ui/dialog.js +1 -1
- package/dist/esm/global-account/react/components/ui/drawer.d.ts +1 -1
- package/dist/esm/global-account/react/components/ui/drawer.js +1 -1
- package/dist/esm/global-account/react/components/ui/glare-card-rounded.js +12 -12
- package/dist/esm/global-account/react/components/ui/glare-card.js +11 -11
- package/dist/esm/global-account/react/components/ui/input.js +1 -1
- package/dist/esm/global-account/react/components/ui/text-loop.d.ts +1 -1
- package/dist/esm/global-account/react/components/ui/text-loop.js +2 -2
- package/dist/esm/global-account/react/components/ui/text-shimmer.js +2 -2
- package/dist/esm/global-account/react/hooks/useAccountAssets.js +4 -4
- package/dist/esm/global-account/react/hooks/useAccountWallet.js +8 -8
- package/dist/esm/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
- package/dist/esm/global-account/react/hooks/useAddTWSessionKey.js +6 -6
- package/dist/esm/global-account/react/hooks/useAuthentication.js +3 -3
- package/dist/esm/global-account/react/hooks/useB3BalanceFromAddresses.js +7 -7
- package/dist/esm/global-account/react/hooks/useB3EnsName.d.ts +4 -8
- package/dist/esm/global-account/react/hooks/useB3EnsName.js +22 -34
- package/dist/esm/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useBestTransactionPath.js +10 -10
- package/dist/esm/global-account/react/hooks/useBsmntProfile.js +1 -1
- package/dist/esm/global-account/react/hooks/useChainSwitchWithAction.js +3 -3
- package/dist/esm/global-account/react/hooks/useClaim.js +4 -4
- package/dist/esm/global-account/react/hooks/useConnect.js +3 -3
- package/dist/esm/global-account/react/hooks/useExchangeRate.js +3 -3
- package/dist/esm/global-account/react/hooks/useGetAllTWSigners.js +7 -7
- package/dist/esm/global-account/react/hooks/useGetGeo.js +1 -1
- package/dist/esm/global-account/react/hooks/useHandleConnectWithPrivy.js +2 -2
- package/dist/esm/global-account/react/hooks/useNativeBalance.js +6 -6
- package/dist/esm/global-account/react/hooks/useOnchainName.js +10 -10
- package/dist/esm/global-account/react/hooks/useOneBalance.js +2 -2
- package/dist/esm/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useRemoveSessionKey.js +3 -3
- package/dist/esm/global-account/react/hooks/useRouter.js +6 -6
- package/dist/esm/global-account/react/hooks/useSiwe.js +4 -4
- package/dist/esm/global-account/react/hooks/useTokenBalance.js +6 -6
- package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useTokenBalancesByChain.js +9 -9
- package/dist/esm/global-account/react/hooks/useTokenData.js +3 -3
- package/dist/esm/global-account/react/hooks/useTokenFromUrl.js +13 -13
- package/dist/esm/global-account/react/hooks/useTokenPrice.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useTokenPrice.js +6 -6
- package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useTokenPriceWithFallback.js +7 -7
- package/dist/esm/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useTokensFromAddress.js +2 -2
- package/dist/esm/global-account/react/hooks/useURLParams.js +1 -1
- package/dist/esm/global-account/react/stores/index.d.ts +1 -1
- package/dist/esm/global-account/react/stores/useAuthStore.js +3 -3
- package/dist/esm/global-account/react/stores/useModalStore.d.ts +0 -2
- package/dist/esm/global-account/react/stores/useModalStore.js +3 -3
- package/dist/esm/global-account/server.js +3 -3
- package/dist/esm/global-account/types/chain-networks.js +8 -8
- package/dist/esm/global-account/types/feature-flags.js +1 -1
- package/dist/esm/shared/constants/chains/b3Chain.js +35 -35
- package/dist/esm/shared/constants/chains/chainPlatformMap.js +1 -1
- package/dist/esm/shared/constants/chains/supported.js +1 -1
- package/dist/esm/shared/constants/index.d.ts +0 -1
- package/dist/esm/shared/constants/index.js +1 -2
- package/dist/esm/shared/thirdweb/initiateClient.js +2 -2
- package/dist/esm/shared/thirdweb/openapi-ts.config.js +1 -1
- package/dist/esm/shared/utils/b3Ens.js +4 -4
- package/dist/esm/shared/utils/chain-transformers.js +9 -9
- package/dist/esm/shared/utils/fetchBalances.js +4 -4
- package/dist/esm/shared/utils/index.d.ts +0 -9
- package/dist/esm/shared/utils/index.js +0 -15
- package/dist/esm/shared/utils/insights.js +28 -28
- package/dist/esm/shared/utils/ipfs.js +1 -1
- package/dist/esm/shared/utils/number.js +3 -3
- package/dist/esm/shared/utils/simplehash.js +23 -23
- package/dist/esm/shared/utils/thirdweb-insights.js +15 -15
- package/dist/styles/index.css +1 -1
- package/dist/types/anyspend/index.d.ts +0 -1
- package/dist/types/anyspend/react/components/AnySpend.d.ts +1 -1
- package/dist/types/anyspend/react/components/AnySpendBuySpin.d.ts +1 -1
- package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +4 -4
- package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +2 -3
- package/dist/types/anyspend/react/components/AnySpendStakeB3.d.ts +1 -1
- package/dist/types/anyspend/react/components/common/ChainTokenIcon.d.ts +1 -1
- package/dist/types/anyspend/react/components/common/OrderToken.d.ts +1 -1
- package/dist/types/anyspend/react/components/common/OrderTokenAmount.d.ts +1 -1
- package/dist/types/anyspend/react/components/common/PanelOnramp.d.ts +1 -1
- package/dist/types/anyspend/react/components/common/PanelOnrampPayment.d.ts +1 -1
- package/dist/types/anyspend/react/components/common/TokenBalance.d.ts +1 -1
- package/dist/types/anyspend/react/components/index.d.ts +0 -1
- package/dist/types/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
- package/dist/types/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +1 -1
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +18 -3
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +0 -1
- package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +0 -14
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +0 -14
- package/dist/types/anyspend/services/anyspend.d.ts +2 -9
- package/dist/types/anyspend/types/index.d.ts +0 -1
- package/dist/types/anyspend/types/nft.d.ts +0 -7
- package/dist/types/anyspend/types/onramp.d.ts +0 -3
- package/dist/types/anyspend/types/order.d.ts +0 -40
- package/dist/types/anyspend/types/req-res/createOrder.d.ts +0 -98
- package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -63
- package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +0 -49
- package/dist/types/anyspend/types/req-res/getQuote.d.ts +0 -37
- package/dist/types/anyspend/utils/orderPayload.d.ts +3 -3
- package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +3 -3
- package/dist/types/global-account/react/components/B3Provider/B3Provider.native.d.ts +2 -2
- package/dist/types/global-account/react/components/ManageAccount/ManageAccount.d.ts +1 -1
- package/dist/types/global-account/react/components/MintButton/MintButton.d.ts +1 -1
- package/dist/types/global-account/react/components/RequestPermissions/RequestPermissions.d.ts +1 -1
- package/dist/types/global-account/react/components/RequestPermissions/RequestPermissionsButton.d.ts +1 -1
- package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3.d.ts +2 -1
- package/dist/types/global-account/react/components/SignInWithB3/SignInWithB3Flow.d.ts +1 -1
- package/dist/types/global-account/react/components/SignInWithB3/components/AuthButton.d.ts +1 -1
- package/dist/types/global-account/react/components/SignInWithB3/components/WalletRow.d.ts +1 -1
- package/dist/types/global-account/react/components/SignInWithB3/steps/LoginStepCustom.d.ts +1 -1
- package/dist/types/global-account/react/components/index.d.ts +4 -4
- package/dist/types/global-account/react/components/ui/ShinyButton.d.ts +1 -1
- package/dist/types/global-account/react/components/ui/Tabs.d.ts +1 -1
- package/dist/types/global-account/react/components/ui/command.d.ts +1 -1
- package/dist/types/global-account/react/components/ui/dialog.d.ts +1 -1
- package/dist/types/global-account/react/components/ui/drawer.d.ts +1 -1
- package/dist/types/global-account/react/components/ui/text-loop.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useAddTWSessionKey.d.ts +2 -2
- package/dist/types/global-account/react/hooks/useB3EnsName.d.ts +4 -8
- package/dist/types/global-account/react/hooks/useBestTransactionPath.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useRemoveSessionKey.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useTokenBalancesByChain.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useTokenPrice.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useTokenPriceWithFallback.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useTokensFromAddress.d.ts +1 -1
- package/dist/types/global-account/react/stores/index.d.ts +1 -1
- package/dist/types/global-account/react/stores/useModalStore.d.ts +0 -2
- package/dist/types/shared/constants/index.d.ts +0 -1
- package/dist/types/shared/utils/index.d.ts +0 -9
- package/package.json +3 -15
- package/src/anyspend/abis/abi-usdc-base.ts +97 -97
- package/src/anyspend/abis/erc20-staking.ts +51 -51
- package/src/anyspend/constants/index.ts +11 -13
- package/src/anyspend/index.ts +0 -1
- package/src/anyspend/react/components/AnySpend.tsx +32 -33
- package/src/anyspend/react/components/AnySpendBuySpin.tsx +41 -46
- package/src/anyspend/react/components/AnySpendCustom.tsx +70 -158
- package/src/anyspend/react/components/AnySpendNFT.tsx +6 -11
- package/src/anyspend/react/components/AnySpendNFTButton.tsx +1 -1
- package/src/anyspend/react/components/AnySpendStakeB3.tsx +22 -23
- package/src/anyspend/react/components/AnySpendTournament.tsx +4 -7
- package/src/anyspend/react/components/common/ChainTokenIcon.tsx +1 -1
- package/src/anyspend/react/components/common/OrderDetails.tsx +31 -75
- package/src/anyspend/react/components/common/OrderHistoryItem.tsx +3 -3
- package/src/anyspend/react/components/common/OrderToken.tsx +5 -5
- package/src/anyspend/react/components/common/OrderTokenAmount.tsx +4 -4
- package/src/anyspend/react/components/common/PanelOnramp.tsx +3 -3
- package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +8 -8
- package/src/anyspend/react/components/common/PaymentMethodIcons.tsx +1 -1
- package/src/anyspend/react/components/common/PaymentOneClick.tsx +3 -3
- package/src/anyspend/react/components/common/PaymentStripeWeb2.tsx +14 -14
- package/src/anyspend/react/components/common/TokenBalance.tsx +2 -2
- package/src/anyspend/react/components/index.ts +0 -1
- package/src/anyspend/react/components/modals/EnterRecipientModal.tsx +2 -2
- package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +18 -18
- package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +20 -10
- package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +8 -9
- package/src/anyspend/react/hooks/useAnyspendOrderAndTransactions.ts +3 -3
- package/src/anyspend/react/hooks/useAnyspendOrderHistory.ts +4 -4
- package/src/anyspend/react/hooks/useAnyspendQuote.ts +5 -5
- package/src/anyspend/react/hooks/useAnyspendSendPermitData.ts +3 -3
- package/src/anyspend/react/hooks/useAnyspendTokens.ts +4 -4
- package/src/anyspend/react/hooks/useCoinbaseOnrampOptions.ts +3 -3
- package/src/anyspend/react/hooks/useGeoOnrampOptions.ts +3 -3
- package/src/anyspend/react/hooks/useGetGeo.ts +1 -1
- package/src/anyspend/react/hooks/usePermitData.ts +19 -19
- package/src/anyspend/react/hooks/useStripeClientSecret.ts +3 -3
- package/src/anyspend/react/hooks/useStripeSupport.ts +3 -3
- package/src/anyspend/react/providers/AnyspendProvider.tsx +3 -3
- package/src/anyspend/services/anyspend.ts +25 -25
- package/src/anyspend/types/chain.ts +1 -1
- package/src/anyspend/types/custom.ts +2 -2
- package/src/anyspend/types/globalWallet.ts +1 -1
- package/src/anyspend/types/index.ts +0 -1
- package/src/anyspend/types/nft.ts +7 -10
- package/src/anyspend/types/onramp.ts +2 -3
- package/src/anyspend/types/order.ts +9 -9
- package/src/anyspend/types/permit.ts +1 -1
- package/src/anyspend/types/relay.ts +1 -1
- package/src/anyspend/types/req-res/createOrder.ts +9 -9
- package/src/anyspend/types/req-res/getCoinbaseOnrampOptions.ts +5 -5
- package/src/anyspend/types/req-res/getOrderAndTransactions.ts +4 -4
- package/src/anyspend/types/req-res/getOrderByCreator.ts +2 -2
- package/src/anyspend/types/req-res/getOrderHistory.ts +1 -1
- package/src/anyspend/types/req-res/getQuote.ts +9 -14
- package/src/anyspend/types/req-res/getTokenList.ts +4 -4
- package/src/anyspend/types/req-res/sendPermitData.ts +2 -2
- package/src/anyspend/types/swap.ts +2 -2
- package/src/anyspend/types/token.ts +2 -2
- package/src/anyspend/types/tournament.ts +4 -4
- package/src/anyspend/types/transaction.ts +4 -4
- package/src/anyspend/utils/chain.ts +25 -25
- package/src/anyspend/utils/format.ts +2 -2
- package/src/anyspend/utils/orderPayload.ts +9 -21
- package/src/anyspend/utils/token.ts +10 -10
- package/src/global-account/app.native.ts +5 -5
- package/src/global-account/app.ts +5 -5
- package/src/global-account/bsmnt.native.ts +5 -5
- package/src/global-account/bsmnt.ts +5 -5
- package/src/global-account/react/components/B3DynamicModal.tsx +3 -3
- package/src/global-account/react/components/B3Provider/B3Provider.native.tsx +4 -4
- package/src/global-account/react/components/B3Provider/B3Provider.tsx +8 -7
- package/src/global-account/react/components/B3Provider/types.ts +1 -1
- package/src/global-account/react/components/ManageAccount/ManageAccount.tsx +6 -6
- package/src/global-account/react/components/MintButton/MintButton.tsx +5 -5
- package/src/global-account/react/components/RelayKitProviderWrapper.tsx +2 -2
- package/src/global-account/react/components/RequestPermissions/RequestPermissions.tsx +7 -7
- package/src/global-account/react/components/RequestPermissions/RequestPermissionsButton.tsx +2 -2
- package/src/global-account/react/components/SignInWithB3/SignInWithB3.tsx +28 -16
- package/src/global-account/react/components/SignInWithB3/SignInWithB3Flow.tsx +14 -14
- package/src/global-account/react/components/SignInWithB3/SignInWithB3Privy.tsx +2 -2
- package/src/global-account/react/components/SignInWithB3/components/AuthButton.tsx +1 -1
- package/src/global-account/react/components/SignInWithB3/components/WalletRow.tsx +1 -1
- package/src/global-account/react/components/SignInWithB3/steps/LoginStep.tsx +10 -10
- package/src/global-account/react/components/SignInWithB3/steps/LoginStepCustom.tsx +3 -3
- package/src/global-account/react/components/SignInWithB3/utils/signInUtils.ts +2 -2
- package/src/global-account/react/components/StyleRoot.tsx +1 -0
- package/src/global-account/react/components/Transak/TransakModal.tsx +4 -4
- package/src/global-account/react/components/custom/Button.tsx +7 -7
- package/src/global-account/react/components/custom/StaggeredFadeLoader.tsx +3 -3
- package/src/global-account/react/components/custom/WalletConnectorIcon.tsx +1 -1
- package/src/global-account/react/components/index.ts +4 -4
- package/src/global-account/react/components/magicui/AnimatedLottie.tsx +5 -5
- package/src/global-account/react/components/ui/Loading.tsx +2 -2
- package/src/global-account/react/components/ui/ShinyButton.tsx +5 -5
- package/src/global-account/react/components/ui/TabSystem.tsx +2 -2
- package/src/global-account/react/components/ui/Tabs.tsx +4 -4
- package/src/global-account/react/components/ui/badge.tsx +5 -5
- package/src/global-account/react/components/ui/button.tsx +7 -7
- package/src/global-account/react/components/ui/command.tsx +5 -5
- package/src/global-account/react/components/ui/dialog.tsx +5 -5
- package/src/global-account/react/components/ui/drawer.tsx +2 -2
- package/src/global-account/react/components/ui/glare-card-rounded.tsx +12 -12
- package/src/global-account/react/components/ui/glare-card.tsx +11 -11
- package/src/global-account/react/components/ui/input.tsx +2 -2
- package/src/global-account/react/components/ui/popover.tsx +1 -1
- package/src/global-account/react/components/ui/scroll-area.tsx +1 -1
- package/src/global-account/react/components/ui/text-loop.tsx +2 -2
- package/src/global-account/react/components/ui/text-shimmer.tsx +3 -3
- package/src/global-account/react/components/ui/tooltip.tsx +1 -1
- package/src/global-account/react/hooks/useAccountAssets.ts +4 -4
- package/src/global-account/react/hooks/useAccountWallet.tsx +9 -9
- package/src/global-account/react/hooks/useAddTWSessionKey.tsx +7 -7
- package/src/global-account/react/hooks/useAuthentication.ts +3 -3
- package/src/global-account/react/hooks/useB3BalanceFromAddresses.ts +9 -9
- package/src/global-account/react/hooks/useB3EnsName.ts +31 -43
- package/src/global-account/react/hooks/useBestTransactionPath.tsx +11 -11
- package/src/global-account/react/hooks/useBsmntProfile.ts +1 -1
- package/src/global-account/react/hooks/useChainSwitchWithAction.ts +4 -4
- package/src/global-account/react/hooks/useClaim.tsx +5 -5
- package/src/global-account/react/hooks/useConnect.tsx +4 -4
- package/src/global-account/react/hooks/useExchangeRate.tsx +3 -3
- package/src/global-account/react/hooks/useGetAllTWSigners.tsx +9 -9
- package/src/global-account/react/hooks/useGetGeo.tsx +1 -1
- package/src/global-account/react/hooks/useHandleConnectWithPrivy.tsx +2 -2
- package/src/global-account/react/hooks/useMediaQuery.tsx +1 -1
- package/src/global-account/react/hooks/useNativeBalance.tsx +7 -7
- package/src/global-account/react/hooks/useOnchainName.tsx +11 -11
- package/src/global-account/react/hooks/useOneBalance.tsx +2 -2
- package/src/global-account/react/hooks/useQueryB3.ts +2 -2
- package/src/global-account/react/hooks/useQueryBSMNT.ts +2 -2
- package/src/global-account/react/hooks/useRemoveSessionKey.tsx +5 -5
- package/src/global-account/react/hooks/useRouter.tsx +6 -6
- package/src/global-account/react/hooks/useSiwe.tsx +4 -4
- package/src/global-account/react/hooks/useTokenBalance.tsx +6 -6
- package/src/global-account/react/hooks/useTokenBalancesByChain.tsx +10 -10
- package/src/global-account/react/hooks/useTokenData.ts +3 -3
- package/src/global-account/react/hooks/useTokenFromUrl.tsx +14 -14
- package/src/global-account/react/hooks/useTokenPrice.tsx +7 -7
- package/src/global-account/react/hooks/useTokenPriceWithFallback.tsx +7 -7
- package/src/global-account/react/hooks/useTokensFromAddress.ts +2 -2
- package/src/global-account/react/hooks/useURLParams.ts +2 -2
- package/src/global-account/react/stores/index.ts +1 -1
- package/src/global-account/react/stores/useAuthStore.ts +3 -3
- package/src/global-account/react/stores/useModalStore.ts +3 -5
- package/src/global-account/server.ts +3 -3
- package/src/global-account/types/chain-networks.ts +10 -10
- package/src/global-account/types/feature-flags.ts +2 -2
- package/src/shared/constants/chains/b3Chain.ts +35 -35
- package/src/shared/constants/chains/chainPlatformMap.ts +1 -1
- package/src/shared/constants/chains/supported.ts +1 -1
- package/src/shared/constants/index.ts +1 -3
- package/src/shared/thirdweb/initiateClient.ts +2 -2
- package/src/shared/thirdweb/openapi-ts.config.ts +1 -1
- package/src/shared/utils/b3Ens.ts +4 -4
- package/src/shared/utils/chain-transformers.ts +9 -9
- package/src/shared/utils/fetchBalances.ts +5 -5
- package/src/shared/utils/fetchBsmntProfile.ts +1 -1
- package/src/shared/utils/index.ts +0 -16
- package/src/shared/utils/insights.ts +31 -31
- package/src/shared/utils/ipfs.ts +1 -1
- package/src/shared/utils/number.ts +5 -5
- package/src/shared/utils/simplehash.ts +28 -28
- package/src/shared/utils/thirdweb-insights.ts +20 -20
- package/dist/cjs/anyspend/types/metadata.d.ts +0 -26
- package/dist/cjs/anyspend/types/metadata.js +0 -16
- package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.d.ts +0 -14
- package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.js +0 -50
- package/dist/cjs/global-account/react/components/custom/Icon.d.ts +0 -7
- package/dist/cjs/global-account/react/components/custom/Icon.js +0 -52
- package/dist/cjs/global-account/react/components/custom/ManageAccountButton.d.ts +0 -4
- package/dist/cjs/global-account/react/components/custom/ManageAccountButton.js +0 -20
- package/dist/cjs/shared/react/hooks/index.d.ts +0 -1
- package/dist/cjs/shared/react/hooks/index.js +0 -17
- package/dist/cjs/shared/react/hooks/useNavigation.d.ts +0 -17
- package/dist/cjs/shared/react/hooks/useNavigation.js +0 -57
- package/dist/cjs/shared/react/index.d.ts +0 -1
- package/dist/cjs/shared/react/index.js +0 -17
- package/dist/esm/anyspend/types/metadata.d.ts +0 -26
- package/dist/esm/anyspend/types/metadata.js +0 -11
- package/dist/esm/global-account/react/components/SignInWithB3/SignIn.d.ts +0 -14
- package/dist/esm/global-account/react/components/SignInWithB3/SignIn.js +0 -44
- package/dist/esm/global-account/react/components/custom/Icon.d.ts +0 -7
- package/dist/esm/global-account/react/components/custom/Icon.js +0 -50
- package/dist/esm/global-account/react/components/custom/ManageAccountButton.d.ts +0 -4
- package/dist/esm/global-account/react/components/custom/ManageAccountButton.js +0 -17
- package/dist/esm/shared/react/hooks/index.d.ts +0 -1
- package/dist/esm/shared/react/hooks/index.js +0 -1
- package/dist/esm/shared/react/hooks/useNavigation.d.ts +0 -17
- package/dist/esm/shared/react/hooks/useNavigation.js +0 -52
- package/dist/esm/shared/react/index.d.ts +0 -1
- package/dist/esm/shared/react/index.js +0 -1
- package/dist/types/anyspend/types/metadata.d.ts +0 -26
- package/dist/types/global-account/react/components/SignInWithB3/SignIn.d.ts +0 -14
- package/dist/types/global-account/react/components/custom/Icon.d.ts +0 -7
- package/dist/types/global-account/react/components/custom/ManageAccountButton.d.ts +0 -4
- package/dist/types/shared/react/hooks/index.d.ts +0 -1
- package/dist/types/shared/react/hooks/useNavigation.d.ts +0 -17
- package/dist/types/shared/react/index.d.ts +0 -1
- package/src/anyspend/types/metadata.ts +0 -41
- package/src/global-account/react/components/SignInWithB3/SignIn.tsx +0 -190
- package/src/global-account/react/components/custom/Icon.tsx +0 -102
- package/src/global-account/react/components/custom/ManageAccountButton.tsx +0 -33
- package/src/shared/react/hooks/index.ts +0 -1
- package/src/shared/react/hooks/useNavigation.ts +0 -61
- package/src/shared/react/index.ts +0 -1
|
@@ -47,19 +47,19 @@ const buttonVariants = (0, class_variance_authority_1.cva)("inline-flex items-ce
|
|
|
47
47
|
outline: "border border-input bg-b3-react-background hover:bg-accent hover:text-accent-b3-react-foreground",
|
|
48
48
|
secondary: "bg-secondary text-secondary-b3-react-foreground hover:bg-secondary/80",
|
|
49
49
|
ghost: "hover:bg-accent hover:text-accent-b3-react-foreground",
|
|
50
|
-
link: "text-b3-react-primary underline-offset-4 hover:underline"
|
|
50
|
+
link: "text-b3-react-primary underline-offset-4 hover:underline"
|
|
51
51
|
},
|
|
52
52
|
size: {
|
|
53
53
|
default: "h-10 px-4 py-2",
|
|
54
54
|
sm: "h-9 rounded-md px-3",
|
|
55
55
|
lg: "h-11 rounded-md px-8",
|
|
56
|
-
icon: "h-10 w-10"
|
|
57
|
-
}
|
|
56
|
+
icon: "h-10 w-10"
|
|
57
|
+
}
|
|
58
58
|
},
|
|
59
59
|
defaultVariants: {
|
|
60
60
|
variant: "default",
|
|
61
|
-
size: "default"
|
|
62
|
-
}
|
|
61
|
+
size: "default"
|
|
62
|
+
}
|
|
63
63
|
});
|
|
64
64
|
exports.buttonVariants = buttonVariants;
|
|
65
65
|
const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
|
|
@@ -79,4 +79,4 @@ declare const CommandShortcut: {
|
|
|
79
79
|
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
|
|
80
80
|
displayName: string;
|
|
81
81
|
};
|
|
82
|
-
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut
|
|
82
|
+
export { Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut };
|
|
@@ -27,4 +27,4 @@ declare const DialogTitle: React.ForwardRefExoticComponent<DialogTitleProps & Re
|
|
|
27
27
|
type DialogDescriptionElement = React.ElementRef<typeof DialogPrimitive.Description>;
|
|
28
28
|
type DialogDescriptionProps = React.ComponentPropsWithoutRef<typeof DialogPrimitive.Description>;
|
|
29
29
|
declare const DialogDescription: React.ForwardRefExoticComponent<DialogDescriptionProps & React.RefAttributes<DialogDescriptionElement>>;
|
|
30
|
-
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger
|
|
30
|
+
export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };
|
|
@@ -19,4 +19,4 @@ declare const DrawerFooter: {
|
|
|
19
19
|
};
|
|
20
20
|
declare const DrawerTitle: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogTitleProps & React.RefAttributes<HTMLHeadingElement>, "ref"> & React.RefAttributes<HTMLHeadingElement>>;
|
|
21
21
|
declare const DrawerDescription: React.ForwardRefExoticComponent<Omit<import("@radix-ui/react-dialog").DialogDescriptionProps & React.RefAttributes<HTMLParagraphElement>, "ref"> & React.RefAttributes<HTMLParagraphElement>>;
|
|
22
|
-
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger
|
|
22
|
+
export { Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerFooter, DrawerHeader, DrawerOverlay, DrawerPortal, DrawerTitle, DrawerTrigger };
|
|
@@ -12,16 +12,16 @@ const GlareCardRounded = ({ children, className }) => {
|
|
|
12
12
|
const state = (0, react_1.useRef)({
|
|
13
13
|
glare: {
|
|
14
14
|
x: 50,
|
|
15
|
-
y: 50
|
|
15
|
+
y: 50
|
|
16
16
|
},
|
|
17
17
|
background: {
|
|
18
18
|
x: 50,
|
|
19
|
-
y: 50
|
|
19
|
+
y: 50
|
|
20
20
|
},
|
|
21
21
|
rotate: {
|
|
22
22
|
x: 0,
|
|
23
|
-
y: 0
|
|
24
|
-
}
|
|
23
|
+
y: 0
|
|
24
|
+
}
|
|
25
25
|
});
|
|
26
26
|
const containerStyle = {
|
|
27
27
|
"--m-x": "50%",
|
|
@@ -36,7 +36,7 @@ const GlareCardRounded = ({ children, className }) => {
|
|
|
36
36
|
"--radius": "13px",
|
|
37
37
|
"--easing": "ease",
|
|
38
38
|
"--transition": "var(--duration) var(--easing)",
|
|
39
|
-
transition: "transform var(--duration) var(--easing), opacity var(--duration) var(--easing), background var(--duration) var(--easing)"
|
|
39
|
+
transition: "transform var(--duration) var(--easing), opacity var(--duration) var(--easing), background var(--duration) var(--easing)"
|
|
40
40
|
};
|
|
41
41
|
const backgroundStyle = {
|
|
42
42
|
"--step": "5%",
|
|
@@ -45,7 +45,7 @@ const GlareCardRounded = ({ children, className }) => {
|
|
|
45
45
|
"--rainbow": "repeating-linear-gradient( 0deg,rgb(255,119,115) calc(var(--step) * 1),rgba(255,237,95,1) calc(var(--step) * 2),rgba(168,255,95,1) calc(var(--step) * 3),rgba(131,255,247,1) calc(var(--step) * 4),rgba(120,148,255,1) calc(var(--step) * 5),rgb(216,117,255) calc(var(--step) * 6),rgb(255,119,115) calc(var(--step) * 7) ) 0% var(--bg-y)/200% 700% no-repeat",
|
|
46
46
|
"--diagonal": "repeating-linear-gradient( 128deg,#0e152e 0%,hsl(180,10%,60%) 3.8%,hsl(180,10%,60%) 4.5%,hsl(180,10%,60%) 5.2%,#0e152e 10%,#0e152e 12% ) var(--bg-x) var(--bg-y)/300% no-repeat",
|
|
47
47
|
"--shade": "radial-gradient( farthest-corner circle at var(--m-x) var(--m-y),rgba(255,255,255,0.1) 12%,rgba(255,255,255,0.15) 20%,rgba(255,255,255,0.25) 120% ) var(--bg-x) var(--bg-y)/300% no-repeat",
|
|
48
|
-
backgroundBlendMode: "hue, hue, hue, overlay"
|
|
48
|
+
backgroundBlendMode: "hue, hue, hue, overlay"
|
|
49
49
|
};
|
|
50
50
|
const updateStyles = () => {
|
|
51
51
|
if (refElement.current) {
|
|
@@ -66,7 +66,7 @@ const GlareCardRounded = ({ children, className }) => {
|
|
|
66
66
|
const initialPercentage = { x: 75, y: 75 }; // Example coordinates for initial animation
|
|
67
67
|
const initialDelta = {
|
|
68
68
|
x: initialPercentage.x - 50,
|
|
69
|
-
y: initialPercentage.y - 50
|
|
69
|
+
y: initialPercentage.y - 50
|
|
70
70
|
};
|
|
71
71
|
const rotateFactor = 0.4;
|
|
72
72
|
state.current.background.x = 50 + initialPercentage.x / 4 - 12.5;
|
|
@@ -97,21 +97,21 @@ const GlareCardRounded = ({ children, className }) => {
|
|
|
97
97
|
}
|
|
98
98
|
}, []);
|
|
99
99
|
return ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
100
|
-
...containerStyle
|
|
100
|
+
...containerStyle
|
|
101
101
|
}, className: "relative isolate h-auto w-full will-change-transform [contain:layout_style] [perspective:600px]", ref: refElement, onPointerMove: event => {
|
|
102
102
|
const rotateFactor = 0.4;
|
|
103
103
|
const rect = event.currentTarget.getBoundingClientRect();
|
|
104
104
|
const position = {
|
|
105
105
|
x: event.clientX - rect.left,
|
|
106
|
-
y: event.clientY - rect.top
|
|
106
|
+
y: event.clientY - rect.top
|
|
107
107
|
};
|
|
108
108
|
const percentage = {
|
|
109
109
|
x: (100 / rect.width) * position.x,
|
|
110
|
-
y: (100 / rect.height) * position.y
|
|
110
|
+
y: (100 / rect.height) * position.y
|
|
111
111
|
};
|
|
112
112
|
const delta = {
|
|
113
113
|
x: percentage.x - 50,
|
|
114
|
-
y: percentage.y - 50
|
|
114
|
+
y: percentage.y - 50
|
|
115
115
|
};
|
|
116
116
|
const { background, rotate, glare } = state.current;
|
|
117
117
|
background.x = 50 + percentage.x / 4 - 12.5;
|
|
@@ -140,7 +140,7 @@ const GlareCardRounded = ({ children, className }) => {
|
|
|
140
140
|
refElement.current?.style.setProperty("--r-y", `0deg`);
|
|
141
141
|
}
|
|
142
142
|
}, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid h-full w-full origin-center overflow-hidden rounded-full border-none will-change-transform [transform:rotateY(var(--r-x))_rotateX(var(--r-y))] hover:filter-none hover:[--duration:200ms] hover:[--easing:linear] hover:[--opacity:0.1]", children: [(0, jsx_runtime_1.jsx)("div", { className: "grid h-full w-full mix-blend-soft-light [clip-path:inset(0_0_0_0_round_var(--radius))] [grid-area:1/1]", children: (0, jsx_runtime_1.jsx)("div", { ref: contentRef, className: (0, utils_1.cn)("h-full w-full object-cover", className), children: children }) }), (0, jsx_runtime_1.jsx)("div", { className: "grid h-full w-full opacity-[var(--opacity)] mix-blend-soft-light [grid-area:1/1] [background:radial-gradient(farthest-corner_circle_at_var(--m-x)_var(--m-y),_rgba(255,255,255,0.8)_10%,_rgba(255,255,255,0.65)_20%,_rgba(255,255,255,0)_90%)] [clip-path:inset(0_0_1px_0_round_var(--radius))]", style: {
|
|
143
|
-
transition: "opacity var(--duration) var(--easing), background var(--duration) var(--easing)"
|
|
143
|
+
transition: "opacity var(--duration) var(--easing), background var(--duration) var(--easing)"
|
|
144
144
|
} }), (0, jsx_runtime_1.jsx)("div", { className: "relative grid h-full w-full opacity-[var(--opacity)] mix-blend-color-dodge transition-opacity [grid-area:1/1] [clip-path:inset(0_0_1px_0_round_var(--radius))] [background-blend-mode:hue_hue_hue_overlay] [background:var(--pattern),_var(--rainbow),_var(--diagonal),_var(--shade)] after:bg-[inherit] after:mix-blend-exclusion after:content-[''] after:[background-blend-mode:soft-light,_hue,_hard-light] after:[background-position:center,_0%_var(--bg-y),_calc(var(--bg-x)*_-1)_calc(var(--bg-y)*_-1),_var(--bg-x)_var(--bg-y)] after:[background-size:var(--foil-size),_200%_400%,_800%,_200%]", style: { ...backgroundStyle } })] }) }));
|
|
145
145
|
};
|
|
146
146
|
exports.GlareCardRounded = GlareCardRounded;
|
|
@@ -12,16 +12,16 @@ const GlareCard = ({ children, className }) => {
|
|
|
12
12
|
const state = (0, react_1.useRef)({
|
|
13
13
|
glare: {
|
|
14
14
|
x: 50,
|
|
15
|
-
y: 50
|
|
15
|
+
y: 50
|
|
16
16
|
},
|
|
17
17
|
background: {
|
|
18
18
|
x: 50,
|
|
19
|
-
y: 50
|
|
19
|
+
y: 50
|
|
20
20
|
},
|
|
21
21
|
rotate: {
|
|
22
22
|
x: 0,
|
|
23
|
-
y: 0
|
|
24
|
-
}
|
|
23
|
+
y: 0
|
|
24
|
+
}
|
|
25
25
|
});
|
|
26
26
|
const containerStyle = {
|
|
27
27
|
"--m-x": "50%",
|
|
@@ -36,7 +36,7 @@ const GlareCard = ({ children, className }) => {
|
|
|
36
36
|
"--radius": "13px",
|
|
37
37
|
"--easing": "ease",
|
|
38
38
|
"--transition": "var(--duration) var(--easing)",
|
|
39
|
-
transition: "transform var(--duration) var(--easing), opacity var(--duration) var(--easing), background var(--duration) var(--easing)"
|
|
39
|
+
transition: "transform var(--duration) var(--easing), opacity var(--duration) var(--easing), background var(--duration) var(--easing)"
|
|
40
40
|
};
|
|
41
41
|
const backgroundStyle = {
|
|
42
42
|
"--step": "5%",
|
|
@@ -45,7 +45,7 @@ const GlareCard = ({ children, className }) => {
|
|
|
45
45
|
"--rainbow": "repeating-linear-gradient( 0deg,rgb(255,119,115) calc(var(--step) * 1),rgba(255,237,95,1) calc(var(--step) * 2),rgba(168,255,95,1) calc(var(--step) * 3),rgba(131,255,247,1) calc(var(--step) * 4),rgba(120,148,255,1) calc(var(--step) * 5),rgb(216,117,255) calc(var(--step) * 6),rgb(255,119,115) calc(var(--step) * 7) ) 0% var(--bg-y)/200% 700% no-repeat",
|
|
46
46
|
"--diagonal": "repeating-linear-gradient( 128deg,#0e152e 0%,hsl(180,10%,60%) 3.8%,hsl(180,10%,60%) 4.5%,hsl(180,10%,60%) 5.2%,#0e152e 10%,#0e152e 12% ) var(--bg-x) var(--bg-y)/300% no-repeat",
|
|
47
47
|
"--shade": "radial-gradient( farthest-corner circle at var(--m-x) var(--m-y),rgba(255,255,255,0.1) 12%,rgba(255,255,255,0.15) 20%,rgba(255,255,255,0.25) 120% ) var(--bg-x) var(--bg-y)/300% no-repeat",
|
|
48
|
-
backgroundBlendMode: "hue, hue, hue, overlay"
|
|
48
|
+
backgroundBlendMode: "hue, hue, hue, overlay"
|
|
49
49
|
};
|
|
50
50
|
const updateStyles = () => {
|
|
51
51
|
if (refElement.current) {
|
|
@@ -59,21 +59,21 @@ const GlareCard = ({ children, className }) => {
|
|
|
59
59
|
}
|
|
60
60
|
};
|
|
61
61
|
return ((0, jsx_runtime_1.jsx)("div", { style: {
|
|
62
|
-
...containerStyle
|
|
62
|
+
...containerStyle
|
|
63
63
|
}, className: "relative isolate h-auto w-full will-change-transform [contain:layout_style] [perspective:600px]", ref: refElement, onPointerMove: event => {
|
|
64
64
|
const rotateFactor = 0.4;
|
|
65
65
|
const rect = event.currentTarget.getBoundingClientRect();
|
|
66
66
|
const position = {
|
|
67
67
|
x: event.clientX - rect.left,
|
|
68
|
-
y: event.clientY - rect.top
|
|
68
|
+
y: event.clientY - rect.top
|
|
69
69
|
};
|
|
70
70
|
const percentage = {
|
|
71
71
|
x: (100 / rect.width) * position.x,
|
|
72
|
-
y: (100 / rect.height) * position.y
|
|
72
|
+
y: (100 / rect.height) * position.y
|
|
73
73
|
};
|
|
74
74
|
const delta = {
|
|
75
75
|
x: percentage.x - 50,
|
|
76
|
-
y: percentage.y - 50
|
|
76
|
+
y: percentage.y - 50
|
|
77
77
|
};
|
|
78
78
|
const { background, rotate, glare } = state.current;
|
|
79
79
|
background.x = 50 + percentage.x / 4 - 12.5;
|
|
@@ -102,7 +102,7 @@ const GlareCard = ({ children, className }) => {
|
|
|
102
102
|
refElement.current?.style.setProperty("--r-y", `0deg`);
|
|
103
103
|
}
|
|
104
104
|
}, children: (0, jsx_runtime_1.jsxs)("div", { className: "grid h-full w-full origin-center overflow-hidden rounded-[var(--radius)] border border-black/50 will-change-transform [transform:rotateY(var(--r-x))_rotateX(var(--r-y))] hover:filter-none hover:[--duration:200ms] hover:[--easing:linear] hover:[--opacity:0.1]", children: [(0, jsx_runtime_1.jsx)("div", { className: "grid h-full w-full mix-blend-soft-light [clip-path:inset(0_0_0_0_round_var(--radius))] [grid-area:1/1]", children: (0, jsx_runtime_1.jsx)("div", { ref: contentRef, className: (0, utils_1.cn)("h-full w-full bg-slate-950 object-cover", className), children: children }) }), (0, jsx_runtime_1.jsx)("div", { className: "grid h-full w-full opacity-[var(--opacity)] mix-blend-soft-light [grid-area:1/1] [background:radial-gradient(farthest-corner_circle_at_var(--m-x)_var(--m-y),_rgba(255,255,255,0.8)_10%,_rgba(255,255,255,0.65)_20%,_rgba(255,255,255,0)_90%)] [clip-path:inset(0_0_1px_0_round_var(--radius))]", style: {
|
|
105
|
-
transition: "opacity var(--duration) var(--easing), background var(--duration) var(--easing)"
|
|
105
|
+
transition: "opacity var(--duration) var(--easing), background var(--duration) var(--easing)"
|
|
106
106
|
} }), (0, jsx_runtime_1.jsx)("div", { className: "relative grid h-full w-full opacity-[var(--opacity)] mix-blend-color-dodge transition-opacity [grid-area:1/1] [clip-path:inset(0_0_1px_0_round_var(--radius))] [background-blend-mode:hue_hue_hue_overlay] [background:var(--pattern),_var(--rainbow),_var(--diagonal),_var(--shade)] after:bg-[inherit] after:mix-blend-exclusion after:content-[''] after:[background-blend-mode:soft-light,_hue,_hard-light] after:[background-position:center,_0%_var(--bg-y),_calc(var(--bg-x)*_-1)_calc(var(--bg-y)*_-1),_var(--bg-x)_var(--bg-y)] after:[background-size:var(--foil-size),_200%_400%,_800%,_200%]", style: { ...backgroundStyle } })] }) }));
|
|
107
107
|
};
|
|
108
108
|
exports.GlareCard = GlareCard;
|
|
@@ -39,7 +39,7 @@ const React = __importStar(require("react"));
|
|
|
39
39
|
const utils_1 = require("../../../../shared/utils");
|
|
40
40
|
const Input = React.forwardRef(({ className, type, ...props }, ref) => {
|
|
41
41
|
return ((0, jsx_runtime_1.jsx)("input", { type: type, className: (0, utils_1.cn)("border-b3-react-border bg-b3-react-background ring-offset-b3-react-background placeholder:text-b3-react-muted-foreground focus-visible:ring-b3-react-ring flex h-10 w-full rounded-md border px-3 py-2 text-sm file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50", className), style: {
|
|
42
|
-
boxShadow: "inset 0 0 0 1px rgba(255, 255, 255, 0.05)"
|
|
42
|
+
boxShadow: "inset 0 0 0 1px rgba(255, 255, 255, 0.05)"
|
|
43
43
|
}, ref: ref, ...props }));
|
|
44
44
|
});
|
|
45
45
|
exports.Input = Input;
|
|
@@ -7,5 +7,5 @@ type TextLoopProps = {
|
|
|
7
7
|
variants?: Variants;
|
|
8
8
|
onIndexChange?: (index: number) => void;
|
|
9
9
|
};
|
|
10
|
-
export declare function TextLoop({ children, className, interval, transition, variants, onIndexChange
|
|
10
|
+
export declare function TextLoop({ children, className, interval, transition, variants, onIndexChange }: TextLoopProps): import("react/jsx-runtime").JSX.Element;
|
|
11
11
|
export {};
|
|
@@ -6,7 +6,7 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
6
6
|
const cn_1 = require("../../../../shared/utils/cn");
|
|
7
7
|
const framer_motion_1 = require("framer-motion");
|
|
8
8
|
const react_1 = require("react");
|
|
9
|
-
function TextLoop({ children, className, interval = 2, transition = { duration: 0.3 }, variants, onIndexChange
|
|
9
|
+
function TextLoop({ children, className, interval = 2, transition = { duration: 0.3 }, variants, onIndexChange }) {
|
|
10
10
|
const [currentIndex, setCurrentIndex] = (0, react_1.useState)(0);
|
|
11
11
|
const items = react_1.Children.toArray(children);
|
|
12
12
|
(0, react_1.useEffect)(() => {
|
|
@@ -23,7 +23,7 @@ function TextLoop({ children, className, interval = 2, transition = { duration:
|
|
|
23
23
|
const motionVariants = {
|
|
24
24
|
initial: { y: 20, opacity: 0 },
|
|
25
25
|
animate: { y: 0, opacity: 1 },
|
|
26
|
-
exit: { y: -20, opacity: 0 }
|
|
26
|
+
exit: { y: -20, opacity: 0 }
|
|
27
27
|
};
|
|
28
28
|
return ((0, jsx_runtime_1.jsx)("div", { className: (0, cn_1.cn)("relative inline-block whitespace-nowrap", className), children: (0, jsx_runtime_1.jsx)(framer_motion_1.AnimatePresence, { mode: "popLayout", initial: false, children: (0, jsx_runtime_1.jsx)(framer_motion_1.motion.div, { initial: "initial", animate: "animate", exit: "exit", transition: transition, variants: variants || motionVariants, children: items[currentIndex] }, currentIndex) }) }));
|
|
29
29
|
}
|
|
@@ -14,9 +14,9 @@ function TextShimmer({ children, as: Component = "p", className, duration = 2, s
|
|
|
14
14
|
return ((0, jsx_runtime_1.jsx)(MotionComponent, { className: (0, cn_1.cn)("relative inline-block bg-[length:250%_100%,auto] bg-clip-text", "text-transparent [--base-color:#a1a1aa] [--base-gradient-color:#000]", "[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--base-gradient-color),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]", "dark:[--base-color:#71717a] dark:[--base-gradient-color:#ffffff] dark:[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--base-gradient-color),#0000_calc(50%+var(--spread)))]", className), initial: { backgroundPosition: "100% center" }, animate: { backgroundPosition: "0% center" }, transition: {
|
|
15
15
|
repeat: Infinity,
|
|
16
16
|
duration,
|
|
17
|
-
ease: "linear"
|
|
17
|
+
ease: "linear"
|
|
18
18
|
}, style: {
|
|
19
19
|
"--spread": `${dynamicSpread}px`,
|
|
20
|
-
backgroundImage: `var(--bg), linear-gradient(var(--base-color), var(--base-color))
|
|
20
|
+
backgroundImage: `var(--bg), linear-gradient(var(--base-color), var(--base-color))`
|
|
21
21
|
}, children: children }));
|
|
22
22
|
}
|
|
@@ -10,8 +10,8 @@ async function fetchAccountAssets(address) {
|
|
|
10
10
|
(0, simplehash_1.fetchSimpleHashData)(`/v0/nfts/owners`, {
|
|
11
11
|
chains: "b3,b3-sepolia,base",
|
|
12
12
|
wallet_addresses: address,
|
|
13
|
-
count: true
|
|
14
|
-
})
|
|
13
|
+
count: true
|
|
14
|
+
})
|
|
15
15
|
// we are not using the tokenResponse anywhere in the app, let's not call it, if we don't need it
|
|
16
16
|
// getERC20Balances(address, {
|
|
17
17
|
// chainIds: [8333, 1993, 8453, 84532],
|
|
@@ -20,7 +20,7 @@ async function fetchAccountAssets(address) {
|
|
|
20
20
|
// }),
|
|
21
21
|
]);
|
|
22
22
|
return {
|
|
23
|
-
nftResponse
|
|
23
|
+
nftResponse
|
|
24
24
|
//tokenResponse,
|
|
25
25
|
};
|
|
26
26
|
}
|
|
@@ -30,6 +30,6 @@ function useAccountAssets(address) {
|
|
|
30
30
|
queryFn: () => fetchAccountAssets(address),
|
|
31
31
|
enabled: Boolean(address),
|
|
32
32
|
staleTime: 30 * 1000, // Consider data fresh for 30 seconds
|
|
33
|
-
gcTime: 5 * 60 * 1000
|
|
33
|
+
gcTime: 5 * 60 * 1000 // Keep unused data in cache for 5 minutes
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -40,8 +40,8 @@ function useAccountWallet() {
|
|
|
40
40
|
...account,
|
|
41
41
|
ensName,
|
|
42
42
|
meta: {
|
|
43
|
-
icon: avatarUrl || (isActiveSmartWallet ? smartWalletIcon : walletImage) || ""
|
|
44
|
-
}
|
|
43
|
+
icon: avatarUrl || (isActiveSmartWallet ? smartWalletIcon : walletImage) || ""
|
|
44
|
+
}
|
|
45
45
|
},
|
|
46
46
|
address: account?.address,
|
|
47
47
|
ensName,
|
|
@@ -50,7 +50,7 @@ function useAccountWallet() {
|
|
|
50
50
|
isActiveSmartWallet: isActiveSmartWallet,
|
|
51
51
|
isActiveEOAWallet: isActiveEOAWallet,
|
|
52
52
|
smartWalletIcon: smartWalletIcon,
|
|
53
|
-
eoaWalletIcon: walletImage
|
|
53
|
+
eoaWalletIcon: walletImage
|
|
54
54
|
}), [
|
|
55
55
|
account,
|
|
56
56
|
avatarUrl,
|
|
@@ -60,11 +60,11 @@ function useAccountWallet() {
|
|
|
60
60
|
isActiveEOAWallet,
|
|
61
61
|
isActiveSmartWallet,
|
|
62
62
|
smartWalletIcon,
|
|
63
|
-
walletImage
|
|
63
|
+
walletImage
|
|
64
64
|
]);
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}, [account, res]);
|
|
65
|
+
// useEffect(() => {
|
|
66
|
+
// console.log(`account`, account);
|
|
67
|
+
// console.log(`useAccountWallet`, res);
|
|
68
|
+
// }, [account, res]);
|
|
69
69
|
return res;
|
|
70
70
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Chain, Hex, ThirdwebClient } from "thirdweb";
|
|
2
2
|
import { Address } from "viem";
|
|
3
|
-
export declare function useAddTWSessionKey({ onSuccess, onError, refetchSigners, chain
|
|
3
|
+
export declare function useAddTWSessionKey({ onSuccess, onError, refetchSigners, chain }: {
|
|
4
4
|
chain?: Chain;
|
|
5
5
|
onSuccess: (transactionResult: {
|
|
6
6
|
transactionHash: Hex;
|
|
@@ -11,7 +11,7 @@ export declare function useAddTWSessionKey({ onSuccess, onError, refetchSigners,
|
|
|
11
11
|
onError: (error: Error) => void;
|
|
12
12
|
refetchSigners: () => Promise<any>;
|
|
13
13
|
}): {
|
|
14
|
-
newSessionKey: ({ sessionKeyAddress, approvedTargets, nativeTokenLimitPerTransaction, permissionStartTimestamp, permissionEndTimestamp
|
|
14
|
+
newSessionKey: ({ sessionKeyAddress, approvedTargets, nativeTokenLimitPerTransaction, permissionStartTimestamp, permissionEndTimestamp }: {
|
|
15
15
|
sessionKeyAddress: Address;
|
|
16
16
|
approvedTargets: Address[];
|
|
17
17
|
nativeTokenLimitPerTransaction: number;
|
|
@@ -10,12 +10,12 @@ const thirdweb_2 = require("thirdweb");
|
|
|
10
10
|
const erc4337_1 = require("thirdweb/extensions/erc4337");
|
|
11
11
|
const react_1 = require("thirdweb/react");
|
|
12
12
|
const debug = (0, debug_1.default)("@@b3:useHandleTWConnect");
|
|
13
|
-
function useAddTWSessionKey({ onSuccess, onError, refetchSigners, chain
|
|
13
|
+
function useAddTWSessionKey({ onSuccess, onError, refetchSigners, chain }) {
|
|
14
14
|
if (!chain) {
|
|
15
15
|
throw new Error("Chain is required");
|
|
16
16
|
}
|
|
17
17
|
const account = (0, react_1.useActiveAccount)();
|
|
18
|
-
const newSessionKey = async ({ sessionKeyAddress, approvedTargets, nativeTokenLimitPerTransaction, permissionStartTimestamp, permissionEndTimestamp
|
|
18
|
+
const newSessionKey = async ({ sessionKeyAddress, approvedTargets, nativeTokenLimitPerTransaction, permissionStartTimestamp, permissionEndTimestamp }) => {
|
|
19
19
|
if (!account || !chain)
|
|
20
20
|
return;
|
|
21
21
|
debug("@@newSessionKey:", {
|
|
@@ -23,14 +23,14 @@ function useAddTWSessionKey({ onSuccess, onError, refetchSigners, chain, }) {
|
|
|
23
23
|
approvedTargets,
|
|
24
24
|
nativeTokenLimitPerTransaction,
|
|
25
25
|
permissionStartTimestamp,
|
|
26
|
-
permissionEndTimestamp
|
|
26
|
+
permissionEndTimestamp
|
|
27
27
|
});
|
|
28
28
|
try {
|
|
29
29
|
const transaction = (0, erc4337_1.addSessionKey)({
|
|
30
30
|
contract: {
|
|
31
31
|
client: thirdweb_1.client,
|
|
32
32
|
chain,
|
|
33
|
-
address: account.address
|
|
33
|
+
address: account.address
|
|
34
34
|
},
|
|
35
35
|
account,
|
|
36
36
|
sessionKeyAddress,
|
|
@@ -38,8 +38,8 @@ function useAddTWSessionKey({ onSuccess, onError, refetchSigners, chain, }) {
|
|
|
38
38
|
approvedTargets,
|
|
39
39
|
nativeTokenLimitPerTransaction,
|
|
40
40
|
permissionStartTimestamp,
|
|
41
|
-
permissionEndTimestamp
|
|
42
|
-
}
|
|
41
|
+
permissionEndTimestamp
|
|
42
|
+
}
|
|
43
43
|
});
|
|
44
44
|
debug("@@ecosystem:newSessionKey:transaction:", transaction);
|
|
45
45
|
const transactionResult = await (0, thirdweb_2.sendTransaction)({ transaction, account });
|
|
@@ -29,7 +29,7 @@ function useAuthentication(partnerId, loginWithSiwe) {
|
|
|
29
29
|
const setIsAuthenticating = (0, react_1.useAuthStore)(state => state.setIsAuthenticating);
|
|
30
30
|
const { connect } = (0, useConnect_1.useConnect)(partnerId, supported_1.b3MainnetThirdWeb);
|
|
31
31
|
const wallet = (0, wallets_1.ecosystemWallet)(constants_1.ecosystemWalletId, {
|
|
32
|
-
partnerId: partnerId
|
|
32
|
+
partnerId: partnerId
|
|
33
33
|
});
|
|
34
34
|
const { isLoading: useAutoConnectLoading } = (0, react_3.useAutoConnect)({
|
|
35
35
|
client: thirdweb_1.client,
|
|
@@ -66,7 +66,7 @@ function useAuthentication(partnerId, loginWithSiwe) {
|
|
|
66
66
|
setIsAuthenticated(false);
|
|
67
67
|
setUser();
|
|
68
68
|
}
|
|
69
|
-
}
|
|
69
|
+
}
|
|
70
70
|
});
|
|
71
71
|
// Ensure isAuthenticating stays true until we're fully ready
|
|
72
72
|
(0, react_2.useEffect)(() => {
|
|
@@ -117,6 +117,6 @@ function useAuthentication(partnerId, loginWithSiwe) {
|
|
|
117
117
|
isReady,
|
|
118
118
|
wallet,
|
|
119
119
|
preAuthenticate: in_app_1.preAuthenticate,
|
|
120
|
-
connect
|
|
120
|
+
connect
|
|
121
121
|
};
|
|
122
122
|
}
|
|
@@ -13,13 +13,13 @@ const abi = [
|
|
|
13
13
|
name: "balanceOf",
|
|
14
14
|
outputs: [{ name: "", type: "uint256" }],
|
|
15
15
|
stateMutability: "view",
|
|
16
|
-
type: "function"
|
|
17
|
-
}
|
|
16
|
+
type: "function"
|
|
17
|
+
}
|
|
18
18
|
];
|
|
19
19
|
// Create a public client for Base
|
|
20
20
|
const client = (0, viem_1.createPublicClient)({
|
|
21
21
|
chain: chains_1.base,
|
|
22
|
-
transport: (0, viem_1.http)()
|
|
22
|
+
transport: (0, viem_1.http)()
|
|
23
23
|
});
|
|
24
24
|
async function fetchB3Balances(addresses) {
|
|
25
25
|
try {
|
|
@@ -29,12 +29,12 @@ async function fetchB3Balances(addresses) {
|
|
|
29
29
|
address: anyspend_1.B3_TOKEN.address,
|
|
30
30
|
abi,
|
|
31
31
|
functionName: "balanceOf",
|
|
32
|
-
args: [address]
|
|
32
|
+
args: [address]
|
|
33
33
|
});
|
|
34
34
|
return {
|
|
35
35
|
address,
|
|
36
36
|
balance,
|
|
37
|
-
formatted: (0, viem_1.formatUnits)(balance, anyspend_1.B3_TOKEN.decimals)
|
|
37
|
+
formatted: (0, viem_1.formatUnits)(balance, anyspend_1.B3_TOKEN.decimals)
|
|
38
38
|
};
|
|
39
39
|
}));
|
|
40
40
|
// Calculate total
|
|
@@ -42,7 +42,7 @@ async function fetchB3Balances(addresses) {
|
|
|
42
42
|
return {
|
|
43
43
|
totalBalance,
|
|
44
44
|
formattedTotal: (0, formatNumber_1.formatNumber)(Number((0, viem_1.formatUnits)(totalBalance, anyspend_1.B3_TOKEN.decimals))),
|
|
45
|
-
breakdown: balances
|
|
45
|
+
breakdown: balances
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
catch (error) {
|
|
@@ -64,7 +64,7 @@ function useB3BalanceFromAddresses(addresses, options) {
|
|
|
64
64
|
queryFn: () => fetchB3Balances(normalizedAddresses),
|
|
65
65
|
enabled: (options?.enabled ?? true) && normalizedAddresses.length > 0,
|
|
66
66
|
refetchInterval: options?.refetchInterval ?? 30000, // Default 30s refresh
|
|
67
|
-
staleTime: 10000
|
|
67
|
+
staleTime: 10000 // Consider data stale after 10s
|
|
68
68
|
});
|
|
69
69
|
}
|
|
70
70
|
exports.default = useB3BalanceFromAddresses;
|
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
export declare const useB3EnsName: () => {
|
|
2
|
-
registerEns: (
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
registerEns: (username: string, message: string, hash: string) => Promise<{
|
|
3
|
+
success: boolean;
|
|
4
|
+
error?: string;
|
|
5
5
|
}>;
|
|
6
|
-
|
|
6
|
+
getEns: (address: string) => Promise<{
|
|
7
7
|
name: string;
|
|
8
|
-
owner: `0x${string}`;
|
|
9
|
-
addresses: Record<string, `0x${string}`>;
|
|
10
|
-
createdAt: number;
|
|
11
|
-
updatedAt: number;
|
|
12
8
|
}>;
|
|
13
9
|
};
|
|
@@ -1,48 +1,39 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
2
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
6
|
exports.useB3EnsName = void 0;
|
|
7
|
+
const bsmnt_1 = __importDefault(require("../../../global-account/bsmnt"));
|
|
4
8
|
const constants_1 = require("../../../shared/constants");
|
|
9
|
+
const js_cookie_1 = __importDefault(require("js-cookie"));
|
|
5
10
|
const react_1 = require("react");
|
|
6
11
|
const useB3EnsName = () => {
|
|
7
|
-
const registerEns = async (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
message: message,
|
|
20
|
-
hash: hash,
|
|
21
|
-
},
|
|
22
|
-
}),
|
|
23
|
-
});
|
|
12
|
+
const registerEns = (0, react_1.useCallback)(async (username, message, hash) => {
|
|
13
|
+
if (!bsmnt_1.default.authentication.authenticated) {
|
|
14
|
+
await bsmnt_1.default.authentication.authenticate({
|
|
15
|
+
strategy: "b3-jwt",
|
|
16
|
+
accessToken: js_cookie_1.default.get(constants_1.B3_AUTH_COOKIE_NAME) || ""
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
const response = await bsmnt_1.default.service("profiles").registerUsername({
|
|
20
|
+
username,
|
|
21
|
+
message,
|
|
22
|
+
hash
|
|
23
|
+
}, {});
|
|
24
24
|
return response;
|
|
25
|
-
};
|
|
26
|
-
const getEns = async (address) => {
|
|
27
|
-
const response = await fetch(
|
|
25
|
+
}, [bsmnt_1.default.authentication.authenticated]);
|
|
26
|
+
const getEns = (0, react_1.useCallback)(async (address) => {
|
|
27
|
+
const response = await fetch(`https://ens-gateway.b3.fun/address/${address}`);
|
|
28
28
|
if (!response.ok) {
|
|
29
29
|
throw new Error(`Failed to fetch ENS name: ${response.statusText}`);
|
|
30
30
|
}
|
|
31
31
|
const data = await response.json();
|
|
32
32
|
return data;
|
|
33
|
-
};
|
|
34
|
-
const lookupEnsName = async (name) => {
|
|
35
|
-
const response = await fetch(`${constants_1.ENS_GATEWAY_URL}get/${name}`);
|
|
36
|
-
if (!response.ok) {
|
|
37
|
-
throw new Error(`Failed to fetch ENS lookup: ${response.statusText}`);
|
|
38
|
-
}
|
|
39
|
-
const data = await response.json();
|
|
40
|
-
return data;
|
|
41
|
-
};
|
|
33
|
+
}, []);
|
|
42
34
|
return (0, react_1.useMemo)(() => ({
|
|
43
35
|
registerEns,
|
|
44
|
-
getEns
|
|
45
|
-
|
|
46
|
-
}), []);
|
|
36
|
+
getEns
|
|
37
|
+
}), [registerEns, getEns]);
|
|
47
38
|
};
|
|
48
39
|
exports.useB3EnsName = useB3EnsName;
|
|
@@ -37,5 +37,5 @@ interface UseBestTransactionPathProps {
|
|
|
37
37
|
* - sprinterOptions: Available chains and balances for bridging
|
|
38
38
|
* @returns TransactionPathResult object containing path information and loading state
|
|
39
39
|
*/
|
|
40
|
-
export declare function useBestTransactionPath({ amount, token, address, transactionType: _transactionType
|
|
40
|
+
export declare function useBestTransactionPath({ amount, token, address, transactionType: _transactionType }: UseBestTransactionPathProps): TransactionPathResult;
|
|
41
41
|
export {};
|
|
@@ -22,7 +22,7 @@ const supportedSprinterTokenSymbols = ["ETH", "USDC", "WETH"];
|
|
|
22
22
|
* - sprinterOptions: Available chains and balances for bridging
|
|
23
23
|
* @returns TransactionPathResult object containing path information and loading state
|
|
24
24
|
*/
|
|
25
|
-
function useBestTransactionPath({ amount, token, address, transactionType: _transactionType = "send"
|
|
25
|
+
function useBestTransactionPath({ amount, token, address, transactionType: _transactionType = "send" }) {
|
|
26
26
|
const account = (0, react_1.useAccountWallet)();
|
|
27
27
|
const effectiveAddress = address || account?.address;
|
|
28
28
|
const isSupportedSprinterToken = supportedSprinterTokenSymbols.includes(token.symbol.toUpperCase());
|
|
@@ -31,7 +31,7 @@ function useBestTransactionPath({ amount, token, address, transactionType: _tran
|
|
|
31
31
|
// Get the token balance using our new hook
|
|
32
32
|
const { rawBalance, isLoading: tokenBalanceLoading } = (0, react_1.useTokenBalance)({
|
|
33
33
|
token,
|
|
34
|
-
address: effectiveAddress
|
|
34
|
+
address: effectiveAddress
|
|
35
35
|
});
|
|
36
36
|
// Check if amount is available natively on destination chain
|
|
37
37
|
const hasNativeBalance = (0, react_2.useMemo)(() => {
|
|
@@ -63,7 +63,7 @@ function useBestTransactionPath({ amount, token, address, transactionType: _tran
|
|
|
63
63
|
isSupportedSprinterToken,
|
|
64
64
|
oneBalanceLoading,
|
|
65
65
|
aggregatedBalances,
|
|
66
|
-
rawBalance
|
|
66
|
+
rawBalance
|
|
67
67
|
]);
|
|
68
68
|
const totalCrossChainBalance = (0, react_2.useMemo)(() => {
|
|
69
69
|
if (oneBalanceLoading || !aggregatedTokenBalances || !token.symbol)
|
|
@@ -87,13 +87,13 @@ function useBestTransactionPath({ amount, token, address, transactionType: _tran
|
|
|
87
87
|
options.push({
|
|
88
88
|
chainId: chainBalance.chainId,
|
|
89
89
|
balance: balanceBi,
|
|
90
|
-
formattedBalance: (0, viem_1.formatUnits)(balanceBi, chainBalance.tokenDecimals)
|
|
90
|
+
formattedBalance: (0, viem_1.formatUnits)(balanceBi, chainBalance.tokenDecimals)
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
94
|
return {
|
|
95
95
|
hasSprinterPath: options.length > 0,
|
|
96
|
-
sprinterOptions: options
|
|
96
|
+
sprinterOptions: options
|
|
97
97
|
};
|
|
98
98
|
}, [isSupportedSprinterToken, oneBalanceLoading, aggregatedBalances, token.symbol, token.chainId, amount]);
|
|
99
99
|
// Determine the best path
|
|
@@ -107,7 +107,7 @@ function useBestTransactionPath({ amount, token, address, transactionType: _tran
|
|
|
107
107
|
hasSprinterPath,
|
|
108
108
|
availableBalance,
|
|
109
109
|
totalCrossChainBalance,
|
|
110
|
-
sprinterOptions
|
|
110
|
+
sprinterOptions
|
|
111
111
|
};
|
|
112
112
|
}
|
|
113
113
|
// Case 2: Sprinter path if available
|
|
@@ -118,7 +118,7 @@ function useBestTransactionPath({ amount, token, address, transactionType: _tran
|
|
|
118
118
|
hasSprinterPath: true,
|
|
119
119
|
availableBalance,
|
|
120
120
|
totalCrossChainBalance,
|
|
121
|
-
sprinterOptions
|
|
121
|
+
sprinterOptions
|
|
122
122
|
};
|
|
123
123
|
}
|
|
124
124
|
// Case 3: Fallback to anyspend
|
|
@@ -128,7 +128,7 @@ function useBestTransactionPath({ amount, token, address, transactionType: _tran
|
|
|
128
128
|
hasSprinterPath: false,
|
|
129
129
|
availableBalance,
|
|
130
130
|
totalCrossChainBalance,
|
|
131
|
-
sprinterOptions: []
|
|
131
|
+
sprinterOptions: []
|
|
132
132
|
};
|
|
133
133
|
}, [
|
|
134
134
|
token.address,
|
|
@@ -137,12 +137,12 @@ function useBestTransactionPath({ amount, token, address, transactionType: _tran
|
|
|
137
137
|
hasNativeBalance,
|
|
138
138
|
hasSprinterPath,
|
|
139
139
|
totalCrossChainBalance,
|
|
140
|
-
sprinterOptions
|
|
140
|
+
sprinterOptions
|
|
141
141
|
]);
|
|
142
142
|
// Combine all loading states
|
|
143
143
|
const loading = oneBalanceLoading || tokenBalanceLoading;
|
|
144
144
|
return {
|
|
145
145
|
...path,
|
|
146
|
-
loading
|
|
146
|
+
loading
|
|
147
147
|
};
|
|
148
148
|
}
|