@b3dotfun/sdk 0.0.7-alpha.19 → 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
|
@@ -9,8 +9,8 @@ async function fetchTokenPrice(contractAddress, chainId, vsCurrency = "usd") {
|
|
|
9
9
|
const response = await fetch(`https://pro-api.coingecko.com/api/v3/simple/token_price/${platformId}?contract_addresses=${contractAddress}&vs_currencies=${vsCurrency}`, {
|
|
10
10
|
headers: {
|
|
11
11
|
accept: "application/json",
|
|
12
|
-
"x-cg-pro-api-key": process.env.COINGECKO_API_KEY
|
|
13
|
-
}
|
|
12
|
+
"x-cg-pro-api-key": process.env.COINGECKO_API_KEY
|
|
13
|
+
}
|
|
14
14
|
});
|
|
15
15
|
if (!response.ok) {
|
|
16
16
|
throw new Error(`Failed to fetch token price: ${response.status} ${response.statusText}`);
|
|
@@ -28,21 +28,21 @@ async function fetchTokenPrice(contractAddress, chainId, vsCurrency = "usd") {
|
|
|
28
28
|
return data[contractAddress][vsCurrency];
|
|
29
29
|
}
|
|
30
30
|
function useTokenPrice({ contractAddress, chainId = 8453, // Default to Base
|
|
31
|
-
vsCurrency = "usd", refreshInterval = 30000, queryOptions = {}
|
|
32
|
-
const { data: price = 0, isLoading, error, refetch
|
|
31
|
+
vsCurrency = "usd", refreshInterval = 30000, queryOptions = {} }) {
|
|
32
|
+
const { data: price = 0, isLoading, error, refetch } = (0, react_query_1.useQuery)({
|
|
33
33
|
queryKey: ["tokenPrice", contractAddress, chainId, vsCurrency],
|
|
34
34
|
queryFn: () => fetchTokenPrice(contractAddress, chainId, vsCurrency),
|
|
35
35
|
refetchInterval: refreshInterval,
|
|
36
36
|
staleTime: refreshInterval / 2, // Consider data stale after half the refresh interval
|
|
37
37
|
retry: 3,
|
|
38
38
|
retryDelay: attemptIndex => Math.min(1000 * 2 ** attemptIndex, 30000),
|
|
39
|
-
...queryOptions
|
|
39
|
+
...queryOptions
|
|
40
40
|
});
|
|
41
41
|
return {
|
|
42
42
|
price,
|
|
43
43
|
isLoading,
|
|
44
44
|
error,
|
|
45
|
-
refetch
|
|
45
|
+
refetch
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
48
|
exports.default = useTokenPrice;
|
|
@@ -7,7 +7,7 @@ interface UseTokenPriceWithFallbackProps {
|
|
|
7
7
|
refreshInterval?: number;
|
|
8
8
|
}
|
|
9
9
|
export declare function useTokenPriceWithFallback({ contractAddress, symbol, chainId, // Default to Base
|
|
10
|
-
vsCurrency, refreshInterval
|
|
10
|
+
vsCurrency, refreshInterval }: UseTokenPriceWithFallbackProps): {
|
|
11
11
|
price: number;
|
|
12
12
|
isLoading: boolean;
|
|
13
13
|
error: false | Error | null;
|
|
@@ -5,22 +5,22 @@ exports.useTokenPriceWithFallback = useTokenPriceWithFallback;
|
|
|
5
5
|
const useExchangeRate_1 = require("./useExchangeRate");
|
|
6
6
|
const useTokenPrice_1 = require("./useTokenPrice");
|
|
7
7
|
function useTokenPriceWithFallback({ contractAddress, symbol, chainId = 8453, // Default to Base
|
|
8
|
-
vsCurrency = "usd", refreshInterval = 30000
|
|
8
|
+
vsCurrency = "usd", refreshInterval = 30000 }) {
|
|
9
9
|
// Try to get the exchange rate using the symbol if provided
|
|
10
|
-
const { rate: exchangeRate, isLoading: isExchangeRateLoading, error: exchangeRateError
|
|
10
|
+
const { rate: exchangeRate, isLoading: isExchangeRateLoading, error: exchangeRateError } = (0, useExchangeRate_1.useExchangeRate)({
|
|
11
11
|
baseCurrency: symbol || "",
|
|
12
12
|
quoteCurrency: vsCurrency,
|
|
13
|
-
refreshInterval
|
|
13
|
+
refreshInterval
|
|
14
14
|
});
|
|
15
15
|
// Only call useTokenPrice if exchange rate is not available
|
|
16
|
-
const { price: tokenPrice, isLoading: isTokenPriceLoading, error: tokenPriceError
|
|
16
|
+
const { price: tokenPrice, isLoading: isTokenPriceLoading, error: tokenPriceError } = (0, useTokenPrice_1.useTokenPrice)({
|
|
17
17
|
contractAddress,
|
|
18
18
|
chainId,
|
|
19
19
|
vsCurrency,
|
|
20
20
|
refreshInterval,
|
|
21
21
|
queryOptions: {
|
|
22
|
-
enabled: !isExchangeRateLoading && !exchangeRate && !exchangeRateError
|
|
23
|
-
}
|
|
22
|
+
enabled: !isExchangeRateLoading && !exchangeRate && !exchangeRateError
|
|
23
|
+
}
|
|
24
24
|
});
|
|
25
25
|
// Determine which price to use
|
|
26
26
|
const price = exchangeRate || tokenPrice;
|
|
@@ -29,6 +29,6 @@ vsCurrency = "usd", refreshInterval = 30000, }) {
|
|
|
29
29
|
return {
|
|
30
30
|
price,
|
|
31
31
|
isLoading,
|
|
32
|
-
error
|
|
32
|
+
error
|
|
33
33
|
};
|
|
34
34
|
}
|
|
@@ -50,5 +50,5 @@ interface UseTokensFromAddressProps {
|
|
|
50
50
|
page?: number;
|
|
51
51
|
metadata?: boolean;
|
|
52
52
|
}
|
|
53
|
-
export declare function useTokensFromAddress({ ownerAddress, chain, limit, page, metadata
|
|
53
|
+
export declare function useTokensFromAddress({ ownerAddress, chain, limit, page, metadata }: UseTokensFromAddressProps): import("@tanstack/react-query").UseQueryResult<TokensResponse, Error>;
|
|
54
54
|
export {};
|
|
@@ -8,7 +8,7 @@ const constants_1 = require("../../../shared/constants");
|
|
|
8
8
|
const react_query_1 = require("@tanstack/react-query");
|
|
9
9
|
const debug_1 = __importDefault(require("debug"));
|
|
10
10
|
const debug = (0, debug_1.default)("@@b3:useTokensFromAddress");
|
|
11
|
-
function useTokensFromAddress({ ownerAddress, chain, limit = 50, page = 0, metadata = true
|
|
11
|
+
function useTokensFromAddress({ ownerAddress, chain, limit = 50, page = 0, metadata = true }) {
|
|
12
12
|
return (0, react_query_1.useQuery)({
|
|
13
13
|
queryKey: ["useTokensFromAddress", ownerAddress, chain, limit, page, metadata],
|
|
14
14
|
queryFn: async () => {
|
|
@@ -46,6 +46,6 @@ function useTokensFromAddress({ ownerAddress, chain, limit = 50, page = 0, metad
|
|
|
46
46
|
const data = await response.json();
|
|
47
47
|
return data;
|
|
48
48
|
},
|
|
49
|
-
enabled: Boolean(ownerAddress)
|
|
49
|
+
enabled: Boolean(ownerAddress)
|
|
50
50
|
});
|
|
51
51
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { useAuthStore } from "./useAuthStore";
|
|
2
2
|
export { useModalStore } from "./useModalStore";
|
|
3
|
-
export type { AnySpendBuySpinProps, AnySpendFundTournamentProps, AnySpendJoinTournamentProps, AnySpendModalProps, AnySpendNftProps, AnyspendOrderDetailsProps, AnySpendOrderHistoryProps, AnySpendStakeB3Props, ManageAccountModalProps, ModalContentType, RequestPermissionsModalProps, SignInWithB3ModalProps, TransakProps
|
|
3
|
+
export type { AnySpendBuySpinProps, AnySpendFundTournamentProps, AnySpendJoinTournamentProps, AnySpendModalProps, AnySpendNftProps, AnyspendOrderDetailsProps, AnySpendOrderHistoryProps, AnySpendStakeB3Props, ManageAccountModalProps, ModalContentType, RequestPermissionsModalProps, SignInWithB3ModalProps, TransakProps } from "./useModalStore";
|
|
@@ -23,7 +23,7 @@ exports.useAuthStore = (0, zustand_1.create)(set => ({
|
|
|
23
23
|
accessToken: params.accessToken,
|
|
24
24
|
chain: params.chain,
|
|
25
25
|
onSuccess: params.onSuccess,
|
|
26
|
-
onError: params.onError
|
|
26
|
+
onError: params.onError
|
|
27
27
|
}),
|
|
28
28
|
reset: () => set({
|
|
29
29
|
isOpen: false,
|
|
@@ -34,6 +34,6 @@ exports.useAuthStore = (0, zustand_1.create)(set => ({
|
|
|
34
34
|
isAuthenticating: false,
|
|
35
35
|
isAuthenticated: false,
|
|
36
36
|
onSuccess: undefined,
|
|
37
|
-
onError: undefined
|
|
38
|
-
})
|
|
37
|
+
onError: undefined
|
|
38
|
+
})
|
|
39
39
|
}));
|
|
@@ -124,8 +124,6 @@ export interface AnySpendNftProps extends BaseModalProps {
|
|
|
124
124
|
nftContract: NftContract;
|
|
125
125
|
/** Recipient address to receive the NFT */
|
|
126
126
|
recipientAddress?: string;
|
|
127
|
-
/** Callback function called when the NFT is successfully transferred */
|
|
128
|
-
onSuccess?: (txHash?: string) => void;
|
|
129
127
|
}
|
|
130
128
|
/**
|
|
131
129
|
* Props for the AnySpend tournament modal
|
|
@@ -16,7 +16,7 @@ exports.useModalStore = (0, zustand_1.create)(set => ({
|
|
|
16
16
|
const newHistory = state.contentType ? [...state.history, state.contentType] : state.history;
|
|
17
17
|
return {
|
|
18
18
|
contentType: content,
|
|
19
|
-
history: newHistory
|
|
19
|
+
history: newHistory
|
|
20
20
|
};
|
|
21
21
|
}),
|
|
22
22
|
navigateBack: () => set(state => {
|
|
@@ -27,10 +27,10 @@ exports.useModalStore = (0, zustand_1.create)(set => ({
|
|
|
27
27
|
const previousModal = newHistory.pop();
|
|
28
28
|
return {
|
|
29
29
|
contentType: previousModal || null,
|
|
30
|
-
history: newHistory
|
|
30
|
+
history: newHistory
|
|
31
31
|
};
|
|
32
32
|
}),
|
|
33
33
|
clearHistory: () => set({ history: [] }),
|
|
34
34
|
ecoSystemAccountAddress: undefined,
|
|
35
|
-
setEcoSystemAccountAddress: (address) => set({ ecoSystemAccountAddress: address })
|
|
35
|
+
setEcoSystemAccountAddress: (address) => set({ ecoSystemAccountAddress: address })
|
|
36
36
|
}));
|
|
@@ -14,12 +14,12 @@ const authenticateWithRest = async (token) => {
|
|
|
14
14
|
method: "POST",
|
|
15
15
|
headers: {
|
|
16
16
|
"Content-Type": "application/json",
|
|
17
|
-
Authorization: `Bearer ${token}
|
|
17
|
+
Authorization: `Bearer ${token}`
|
|
18
18
|
},
|
|
19
19
|
body: JSON.stringify({
|
|
20
20
|
strategy: "jwt",
|
|
21
|
-
accessToken: token
|
|
22
|
-
})
|
|
21
|
+
accessToken: token
|
|
22
|
+
})
|
|
23
23
|
});
|
|
24
24
|
return response;
|
|
25
25
|
};
|
|
@@ -4,7 +4,7 @@ exports.chainNetworksSchema = void 0;
|
|
|
4
4
|
const typebox_1 = require("@feathersjs/typebox");
|
|
5
5
|
const ChainContractSchema = typebox_1.Type.Object({
|
|
6
6
|
address: typebox_1.Type.String(),
|
|
7
|
-
blockCreated: typebox_1.Type.Optional(typebox_1.Type.Integer())
|
|
7
|
+
blockCreated: typebox_1.Type.Optional(typebox_1.Type.Integer())
|
|
8
8
|
});
|
|
9
9
|
exports.chainNetworksSchema = typebox_1.Type.Object({
|
|
10
10
|
_id: (0, typebox_1.ObjectIdSchema)(),
|
|
@@ -13,27 +13,27 @@ exports.chainNetworksSchema = typebox_1.Type.Object({
|
|
|
13
13
|
rpcUrls: typebox_1.Type.Object({
|
|
14
14
|
default: typebox_1.Type.Object({
|
|
15
15
|
http: typebox_1.Type.String({ format: "uri" }),
|
|
16
|
-
ws: typebox_1.Type.String({ format: "uri" })
|
|
16
|
+
ws: typebox_1.Type.String({ format: "uri" })
|
|
17
17
|
}),
|
|
18
18
|
backups: typebox_1.Type.Array(typebox_1.Type.Object({
|
|
19
19
|
type: typebox_1.Type.Union([typebox_1.Type.Literal("http"), typebox_1.Type.Literal("ws")]),
|
|
20
|
-
uri: typebox_1.Type.String()
|
|
21
|
-
}))
|
|
20
|
+
uri: typebox_1.Type.String()
|
|
21
|
+
}))
|
|
22
22
|
}),
|
|
23
23
|
icon: typebox_1.Type.Object({
|
|
24
24
|
url: typebox_1.Type.String({ format: "uri" }),
|
|
25
25
|
width: typebox_1.Type.Integer(),
|
|
26
26
|
height: typebox_1.Type.Integer(),
|
|
27
|
-
format: typebox_1.Type.String()
|
|
27
|
+
format: typebox_1.Type.String()
|
|
28
28
|
}),
|
|
29
29
|
blockExplorers: typebox_1.Type.Object({
|
|
30
30
|
explorerTitle: typebox_1.Type.String(),
|
|
31
|
-
default: typebox_1.Type.String({ format: "uri" })
|
|
31
|
+
default: typebox_1.Type.String({ format: "uri" })
|
|
32
32
|
}),
|
|
33
33
|
nativeCurrency: typebox_1.Type.Object({
|
|
34
34
|
name: typebox_1.Type.String(),
|
|
35
35
|
symbol: typebox_1.Type.String(),
|
|
36
|
-
decimals: typebox_1.Type.Integer()
|
|
36
|
+
decimals: typebox_1.Type.Integer()
|
|
37
37
|
}),
|
|
38
38
|
testnet: typebox_1.Type.Optional(typebox_1.Type.Boolean()),
|
|
39
39
|
testnetConfigID: typebox_1.Type.Optional(typebox_1.Type.Integer()),
|
|
@@ -44,5 +44,5 @@ exports.chainNetworksSchema = typebox_1.Type.Object({
|
|
|
44
44
|
fees: typebox_1.Type.Optional(typebox_1.Type.Record(typebox_1.Type.String(), typebox_1.Type.Any())),
|
|
45
45
|
badge: typebox_1.Type.Optional(typebox_1.Type.String({ format: "uri" })),
|
|
46
46
|
color: typebox_1.Type.Optional(typebox_1.Type.String()),
|
|
47
|
-
enabledFeatures: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String()))
|
|
47
|
+
enabledFeatures: typebox_1.Type.Optional(typebox_1.Type.Array(typebox_1.Type.String()))
|
|
48
48
|
}, { $id: "ChainNetworks", additionalProperties: false });
|
|
@@ -6,5 +6,5 @@ exports.featureFlagsSchema = typebox_1.Type.Object({
|
|
|
6
6
|
_id: (0, typebox_1.ObjectIdSchema)(),
|
|
7
7
|
id: typebox_1.Type.String(),
|
|
8
8
|
enabled: typebox_1.Type.Boolean(),
|
|
9
|
-
description: typebox_1.Type.String()
|
|
9
|
+
description: typebox_1.Type.String()
|
|
10
10
|
}, { $id: "FeatureFlags", additionalProperties: false });
|
|
@@ -16,11 +16,11 @@ const viemToThirdwebChain = (chain) => {
|
|
|
16
16
|
? [
|
|
17
17
|
{
|
|
18
18
|
name: chain.blockExplorers.default.name,
|
|
19
|
-
url: chain.blockExplorers.default.url
|
|
20
|
-
}
|
|
19
|
+
url: chain.blockExplorers.default.url
|
|
20
|
+
}
|
|
21
21
|
]
|
|
22
22
|
: undefined,
|
|
23
|
-
testnet: chain.testnet ? true : undefined
|
|
23
|
+
testnet: chain.testnet ? true : undefined
|
|
24
24
|
});
|
|
25
25
|
};
|
|
26
26
|
exports.viemToThirdwebChain = viemToThirdwebChain;
|
|
@@ -31,27 +31,27 @@ exports.b3Testnet = (0, viem_1.defineChain)({
|
|
|
31
31
|
rpcUrls: {
|
|
32
32
|
default: {
|
|
33
33
|
http: ["https://sepolia.b3.fun"],
|
|
34
|
-
ws: ["wss://sepolia.b3.fun/ws"]
|
|
35
|
-
}
|
|
34
|
+
ws: ["wss://sepolia.b3.fun/ws"]
|
|
35
|
+
}
|
|
36
36
|
},
|
|
37
37
|
icon: {
|
|
38
38
|
url: "https://cdn.b3.fun/b3_logo.svg",
|
|
39
39
|
width: 32,
|
|
40
40
|
height: 32,
|
|
41
|
-
format: "svg"
|
|
41
|
+
format: "svg"
|
|
42
42
|
},
|
|
43
43
|
blockExplorers: {
|
|
44
44
|
default: {
|
|
45
45
|
name: "B3 Explorer",
|
|
46
|
-
url: "https://sepolia-explorer.b3.fun"
|
|
47
|
-
}
|
|
46
|
+
url: "https://sepolia-explorer.b3.fun"
|
|
47
|
+
}
|
|
48
48
|
},
|
|
49
49
|
nativeCurrency: {
|
|
50
50
|
name: "Ether",
|
|
51
51
|
symbol: "ETH",
|
|
52
|
-
decimals: 18
|
|
52
|
+
decimals: 18
|
|
53
53
|
},
|
|
54
|
-
testnet: true
|
|
54
|
+
testnet: true
|
|
55
55
|
});
|
|
56
56
|
exports.b3Mainnet = (0, viem_1.defineChain)({
|
|
57
57
|
id: 8333,
|
|
@@ -60,26 +60,26 @@ exports.b3Mainnet = (0, viem_1.defineChain)({
|
|
|
60
60
|
rpcUrls: {
|
|
61
61
|
default: {
|
|
62
62
|
http: ["https://mainnet-rpc.b3.fun"],
|
|
63
|
-
ws: ["wss://mainnet-rpc.b3.fun/ws"]
|
|
64
|
-
}
|
|
63
|
+
ws: ["wss://mainnet-rpc.b3.fun/ws"]
|
|
64
|
+
}
|
|
65
65
|
},
|
|
66
66
|
icon: {
|
|
67
67
|
url: "https://cdn.b3.fun/b3_logo.svg",
|
|
68
68
|
width: 32,
|
|
69
69
|
height: 32,
|
|
70
|
-
format: "svg"
|
|
70
|
+
format: "svg"
|
|
71
71
|
},
|
|
72
72
|
blockExplorers: {
|
|
73
73
|
default: {
|
|
74
74
|
name: "B3 Explorer",
|
|
75
|
-
url: "https://explorer.b3.fun"
|
|
76
|
-
}
|
|
75
|
+
url: "https://explorer.b3.fun"
|
|
76
|
+
}
|
|
77
77
|
},
|
|
78
78
|
nativeCurrency: {
|
|
79
79
|
name: "Ether",
|
|
80
80
|
symbol: "ETH",
|
|
81
|
-
decimals: 18
|
|
82
|
-
}
|
|
81
|
+
decimals: 18
|
|
82
|
+
}
|
|
83
83
|
});
|
|
84
84
|
const getViemChainConfig = (config) => (0, viem_1.defineChain)({
|
|
85
85
|
id: config.id,
|
|
@@ -88,18 +88,18 @@ const getViemChainConfig = (config) => (0, viem_1.defineChain)({
|
|
|
88
88
|
rpcUrls: {
|
|
89
89
|
default: {
|
|
90
90
|
http: [config.rpcUrls.default.http],
|
|
91
|
-
ws: [config.rpcUrls.default.ws]
|
|
92
|
-
}
|
|
91
|
+
ws: [config.rpcUrls.default.ws]
|
|
92
|
+
}
|
|
93
93
|
},
|
|
94
94
|
icon: config.icon,
|
|
95
95
|
blockExplorers: {
|
|
96
96
|
default: {
|
|
97
97
|
name: config.blockExplorers.explorerTitle,
|
|
98
|
-
url: config.blockExplorers.default
|
|
99
|
-
}
|
|
98
|
+
url: config.blockExplorers.default
|
|
99
|
+
}
|
|
100
100
|
},
|
|
101
101
|
nativeCurrency: config.nativeCurrency,
|
|
102
|
-
testnet: config.testnet ? true : undefined
|
|
102
|
+
testnet: config.testnet ? true : undefined
|
|
103
103
|
});
|
|
104
104
|
exports.getViemChainConfig = getViemChainConfig;
|
|
105
105
|
exports.thirdwebB3Testnet = (0, thirdweb_1.defineChain)({
|
|
@@ -110,20 +110,20 @@ exports.thirdwebB3Testnet = (0, thirdweb_1.defineChain)({
|
|
|
110
110
|
url: "https://cdn.b3.fun/b3_logo.svg",
|
|
111
111
|
width: 32,
|
|
112
112
|
height: 32,
|
|
113
|
-
format: "svg"
|
|
113
|
+
format: "svg"
|
|
114
114
|
},
|
|
115
115
|
blockExplorers: [
|
|
116
116
|
{
|
|
117
117
|
name: "B3 Explorer",
|
|
118
|
-
url: "https://sepolia-explorer.b3.fun"
|
|
119
|
-
}
|
|
118
|
+
url: "https://sepolia-explorer.b3.fun"
|
|
119
|
+
}
|
|
120
120
|
],
|
|
121
121
|
nativeCurrency: {
|
|
122
122
|
name: "Ether",
|
|
123
123
|
symbol: "ETH",
|
|
124
|
-
decimals: 18
|
|
124
|
+
decimals: 18
|
|
125
125
|
},
|
|
126
|
-
testnet: true
|
|
126
|
+
testnet: true
|
|
127
127
|
});
|
|
128
128
|
exports.thirdwebB3Mainnet = (0, thirdweb_1.defineChain)({
|
|
129
129
|
id: 8333,
|
|
@@ -133,19 +133,19 @@ exports.thirdwebB3Mainnet = (0, thirdweb_1.defineChain)({
|
|
|
133
133
|
url: "https://cdn.b3.fun/b3_logo.svg",
|
|
134
134
|
width: 32,
|
|
135
135
|
height: 32,
|
|
136
|
-
format: "svg"
|
|
136
|
+
format: "svg"
|
|
137
137
|
},
|
|
138
138
|
blockExplorers: [
|
|
139
139
|
{
|
|
140
140
|
name: "B3 Explorer",
|
|
141
|
-
url: "https://explorer.b3.fun"
|
|
142
|
-
}
|
|
141
|
+
url: "https://explorer.b3.fun"
|
|
142
|
+
}
|
|
143
143
|
],
|
|
144
144
|
nativeCurrency: {
|
|
145
145
|
name: "Ether",
|
|
146
146
|
symbol: "ETH",
|
|
147
|
-
decimals: 18
|
|
148
|
-
}
|
|
147
|
+
decimals: 18
|
|
148
|
+
}
|
|
149
149
|
});
|
|
150
150
|
const getThirdwebChainConfig = (config) => (0, thirdweb_1.defineChain)({
|
|
151
151
|
id: config.id,
|
|
@@ -155,11 +155,11 @@ const getThirdwebChainConfig = (config) => (0, thirdweb_1.defineChain)({
|
|
|
155
155
|
blockExplorers: [
|
|
156
156
|
{
|
|
157
157
|
name: config.blockExplorers.explorerTitle,
|
|
158
|
-
url: config.blockExplorers.default
|
|
159
|
-
}
|
|
158
|
+
url: config.blockExplorers.default
|
|
159
|
+
}
|
|
160
160
|
],
|
|
161
161
|
nativeCurrency: config.nativeCurrency,
|
|
162
|
-
testnet: config.testnet ? true : undefined
|
|
162
|
+
testnet: config.testnet ? true : undefined
|
|
163
163
|
});
|
|
164
164
|
exports.getThirdwebChainConfig = getThirdwebChainConfig;
|
|
165
165
|
exports.b3Chain = process.env.NEXT_PUBLIC_B3_CHAINID === "8333" ? exports.b3Mainnet : exports.b3Testnet;
|
|
@@ -25,7 +25,7 @@ exports.supportedChainsTW = [
|
|
|
25
25
|
const networkData = chainNetworks.find(n => n.id === chain.id);
|
|
26
26
|
return networkData ? (0, chain_transformers_1.toThirdwebChain)(networkData) : undefined;
|
|
27
27
|
})
|
|
28
|
-
.filter((chain) => chain !== undefined)
|
|
28
|
+
.filter((chain) => chain !== undefined)
|
|
29
29
|
];
|
|
30
30
|
// Original format from chain-networks.json
|
|
31
31
|
exports.supportedChainNetworks = chainNetworks;
|
|
@@ -13,4 +13,3 @@ export declare const THIRDWEB_SECRET_KEY: string;
|
|
|
13
13
|
export declare const THIRDWEB_CLIENT_ID: string;
|
|
14
14
|
export declare const CLIENT_APP_BUNDLE_ID: string;
|
|
15
15
|
export declare const B3_AUTH_COOKIE_NAME = "b3-auth";
|
|
16
|
-
export declare const ENS_GATEWAY_URL = "https://ens-gateway.b3.fun/";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.B3_AUTH_COOKIE_NAME = exports.CLIENT_APP_BUNDLE_ID = exports.THIRDWEB_CLIENT_ID = exports.THIRDWEB_SECRET_KEY = exports.tokenIcons = exports.ecosystemWalletId = exports.b3CoinIcon = exports.siteURL = void 0;
|
|
4
4
|
exports.siteURL = "https://basement.fun";
|
|
5
5
|
exports.b3CoinIcon = "https://cdn.b3.fun/b3-coin-3d.png";
|
|
6
6
|
exports.ecosystemWalletId = (process.env.EXPO_PUBLIC_THIRDWEB_ECOSYSTEM_ID ||
|
|
@@ -12,11 +12,10 @@ exports.tokenIcons = {
|
|
|
12
12
|
USDC: "https://cdn.b3.fun/usd-coin.svg",
|
|
13
13
|
USDT: "https://cdn.b3.fun/usdt.svg",
|
|
14
14
|
DAI: "https://cdn.b3.fun/dai.svg",
|
|
15
|
-
B3: exports.b3CoinIcon
|
|
15
|
+
B3: exports.b3CoinIcon
|
|
16
16
|
// Add more asset icons as needed
|
|
17
17
|
};
|
|
18
18
|
exports.THIRDWEB_SECRET_KEY = process.env.THIRDWEB_SECRET_KEY || "";
|
|
19
19
|
exports.THIRDWEB_CLIENT_ID = process.env.NEXT_PUBLIC_THIRDWEB_CLIENT_ID || process.env.EXPO_PUBLIC_THIRDWEB_CLIENT_ID || "";
|
|
20
20
|
exports.CLIENT_APP_BUNDLE_ID = process.env.EXPO_PUBLIC_B3_BUNDLE_ID || "";
|
|
21
21
|
exports.B3_AUTH_COOKIE_NAME = "b3-auth";
|
|
22
|
-
exports.ENS_GATEWAY_URL = "https://ens-gateway.b3.fun/";
|
|
@@ -5,7 +5,7 @@ const client_gen_1 = require("./generated/client.gen");
|
|
|
5
5
|
(function () {
|
|
6
6
|
// Set BASE URL
|
|
7
7
|
client_gen_1.client.setConfig({
|
|
8
|
-
baseUrl: "https://insight.thirdweb.com"
|
|
8
|
+
baseUrl: "https://insight.thirdweb.com"
|
|
9
9
|
});
|
|
10
10
|
// Interceptors for issues described here https://npc-labs.slack.com/archives/C070E6HNG85/p1742446793549779?thread_ts=1741637902.666019&cid=C070E6HNG85
|
|
11
11
|
client_gen_1.client.interceptors.request.use((request, options) => {
|
|
@@ -21,7 +21,7 @@ const client_gen_1 = require("./generated/client.gen");
|
|
|
21
21
|
}
|
|
22
22
|
return new Request(newUrl, {
|
|
23
23
|
...request,
|
|
24
|
-
headers
|
|
24
|
+
headers
|
|
25
25
|
});
|
|
26
26
|
});
|
|
27
27
|
})();
|
|
@@ -4,5 +4,5 @@ const openapi_ts_1 = require("@hey-api/openapi-ts");
|
|
|
4
4
|
exports.default = (0, openapi_ts_1.defineConfig)({
|
|
5
5
|
input: "./insight-service.json",
|
|
6
6
|
output: "./src/thirdweb/generated",
|
|
7
|
-
plugins: ["@hey-api/client-fetch", "@tanstack/react-query"]
|
|
7
|
+
plugins: ["@hey-api/client-fetch", "@tanstack/react-query"] // Using fetch client as an example
|
|
8
8
|
});
|
|
@@ -7,8 +7,8 @@ function getEnsName(name) {
|
|
|
7
7
|
return fetch(url + `get/${name}`, {
|
|
8
8
|
method: "GET",
|
|
9
9
|
headers: {
|
|
10
|
-
"Content-Type": "application/json"
|
|
11
|
-
}
|
|
10
|
+
"Content-Type": "application/json"
|
|
11
|
+
}
|
|
12
12
|
});
|
|
13
13
|
}
|
|
14
14
|
async function getB3NameByAddress(address) {
|
|
@@ -16,8 +16,8 @@ async function getB3NameByAddress(address) {
|
|
|
16
16
|
const response = await fetch(url + `address/${address}`, {
|
|
17
17
|
method: "GET",
|
|
18
18
|
headers: {
|
|
19
|
-
"Content-Type": "application/json"
|
|
20
|
-
}
|
|
19
|
+
"Content-Type": "application/json"
|
|
20
|
+
}
|
|
21
21
|
});
|
|
22
22
|
return response.json();
|
|
23
23
|
}
|
|
@@ -11,20 +11,20 @@ function toViemChain(network) {
|
|
|
11
11
|
rpcUrls: {
|
|
12
12
|
default: {
|
|
13
13
|
http: [network.rpcUrls.default.http],
|
|
14
|
-
webSocket: network.rpcUrls.default.ws ? [network.rpcUrls.default.ws] : undefined
|
|
15
|
-
}
|
|
14
|
+
webSocket: network.rpcUrls.default.ws ? [network.rpcUrls.default.ws] : undefined
|
|
15
|
+
}
|
|
16
16
|
},
|
|
17
17
|
blockExplorers: {
|
|
18
18
|
default: {
|
|
19
19
|
name: network.blockExplorers.explorerTitle,
|
|
20
|
-
url: network.blockExplorers.default
|
|
21
|
-
}
|
|
20
|
+
url: network.blockExplorers.default
|
|
21
|
+
}
|
|
22
22
|
},
|
|
23
23
|
contracts: network.contracts,
|
|
24
24
|
testnet: network.testnet,
|
|
25
25
|
sourceId: network.sourceId,
|
|
26
26
|
formatters: network.formatters,
|
|
27
|
-
fees: network.fees
|
|
27
|
+
fees: network.fees
|
|
28
28
|
};
|
|
29
29
|
}
|
|
30
30
|
function toThirdwebChain(network) {
|
|
@@ -37,14 +37,14 @@ function toThirdwebChain(network) {
|
|
|
37
37
|
url: network.icon.url,
|
|
38
38
|
width: network.icon.width,
|
|
39
39
|
height: network.icon.height,
|
|
40
|
-
format: network.icon.format
|
|
40
|
+
format: network.icon.format
|
|
41
41
|
},
|
|
42
42
|
blockExplorers: [
|
|
43
43
|
{
|
|
44
44
|
name: network.blockExplorers.explorerTitle,
|
|
45
|
-
url: network.blockExplorers.default
|
|
46
|
-
}
|
|
45
|
+
url: network.blockExplorers.default
|
|
46
|
+
}
|
|
47
47
|
],
|
|
48
|
-
testnet: network.testnet ? true : undefined
|
|
48
|
+
testnet: network.testnet ? true : undefined
|
|
49
49
|
});
|
|
50
50
|
}
|
|
@@ -21,7 +21,7 @@ const fetchBalances = async (address, testnet) => {
|
|
|
21
21
|
symbol: asset.symbol,
|
|
22
22
|
name: asset.name,
|
|
23
23
|
totalBalance: totalBalance.toString(),
|
|
24
|
-
chainBalances
|
|
24
|
+
chainBalances
|
|
25
25
|
};
|
|
26
26
|
});
|
|
27
27
|
const aggregatedBalances = await Promise.all(balancePromises);
|
|
@@ -46,9 +46,9 @@ const fetchBalances = async (address, testnet) => {
|
|
|
46
46
|
{
|
|
47
47
|
chainId: data.chainId,
|
|
48
48
|
balance: data.balance,
|
|
49
|
-
tokenDecimals: data.tokenDecimals
|
|
50
|
-
}
|
|
51
|
-
]
|
|
49
|
+
tokenDecimals: data.tokenDecimals
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
52
|
};
|
|
53
53
|
}
|
|
54
54
|
catch (error) {
|
|
@@ -1,11 +1,2 @@
|
|
|
1
1
|
export declare function formatUsername(username: string): string;
|
|
2
|
-
/**
|
|
3
|
-
* Helper functions for formatting data
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Truncates a wallet address to show first 4 and last 4 characters
|
|
7
|
-
* @param address Wallet address to truncate
|
|
8
|
-
* @returns Truncated address in format "0x1234...5678"
|
|
9
|
-
*/
|
|
10
|
-
export declare const truncateAddress: (address: string) => string;
|
|
11
2
|
export * from "./cn";
|
|
@@ -14,27 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.truncateAddress = void 0;
|
|
18
17
|
exports.formatUsername = formatUsername;
|
|
19
18
|
function formatUsername(username) {
|
|
20
19
|
// Remove .b3.fun and put an @ before it
|
|
21
20
|
// Make it all lowercase
|
|
22
21
|
return `@${username.replace(".b3.fun", "").toLowerCase()}`;
|
|
23
22
|
}
|
|
24
|
-
/**
|
|
25
|
-
* Helper functions for formatting data
|
|
26
|
-
*/
|
|
27
|
-
/**
|
|
28
|
-
* Truncates a wallet address to show first 4 and last 4 characters
|
|
29
|
-
* @param address Wallet address to truncate
|
|
30
|
-
* @returns Truncated address in format "0x1234...5678"
|
|
31
|
-
*/
|
|
32
|
-
const truncateAddress = (address) => {
|
|
33
|
-
if (!address)
|
|
34
|
-
return "";
|
|
35
|
-
if (address.length <= 9)
|
|
36
|
-
return address;
|
|
37
|
-
return `${address.slice(0, 6)}...${address.slice(-4)}`;
|
|
38
|
-
};
|
|
39
|
-
exports.truncateAddress = truncateAddress;
|
|
40
23
|
__exportStar(require("./cn"), exports);
|