@b3dotfun/sdk 0.0.7-alpha.12 → 0.0.7-alpha.14
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 -10
- 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 +32 -32
- package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +29 -29
- package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnySpendNFT.js +4 -4
- 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 +17 -17
- package/dist/cjs/anyspend/react/components/AnySpendTournament.js +4 -4
- 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 +9 -9
- 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 +1 -0
- package/dist/cjs/anyspend/react/components/index.js +3 -1
- package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/modals/EnterRecipientModal.js +1 -1
- 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.js +6 -6
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.js +6 -6
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +10 -0
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -0
- 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 +6 -1
- package/dist/cjs/anyspend/services/anyspend.js +13 -13
- package/dist/cjs/anyspend/types/custom.js +2 -2
- package/dist/cjs/anyspend/types/globalWallet.js +1 -1
- package/dist/cjs/anyspend/types/nft.js +6 -6
- package/dist/cjs/anyspend/types/onramp.d.ts +3 -0
- package/dist/cjs/anyspend/types/onramp.js +2 -1
- package/dist/cjs/anyspend/types/order.d.ts +30 -0
- 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 +70 -0
- 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 +45 -0
- 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 +35 -0
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.js +1 -1
- package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +26 -0
- package/dist/cjs/anyspend/types/req-res/getQuote.js +10 -8
- 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.js +6 -6
- 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 +2 -2
- package/dist/cjs/global-account/react/components/B3Provider/B3Provider.js +5 -5
- 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/SignIn.js +1 -1
- package/dist/cjs/global-account/react/components/SignInWithB3/SignInWithB3.js +1 -1
- 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/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/Icon.js +1 -1
- package/dist/cjs/global-account/react/components/custom/ManageAccountButton.js +1 -1
- 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 +4 -4
- 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.js +5 -5
- 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 +10 -10
- 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.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.js +1 -1
- 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/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 -10
- 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 +33 -33
- package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +2 -2
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +31 -31
- package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnySpendNFT.js +4 -4
- 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 +18 -18
- package/dist/esm/anyspend/react/components/AnySpendTournament.js +4 -4
- 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 +12 -12
- 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 +1 -0
- package/dist/esm/anyspend/react/components/index.js +1 -0
- package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.d.ts +1 -1
- package/dist/esm/anyspend/react/components/modals/EnterRecipientModal.js +1 -1
- 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.js +6 -6
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.js +6 -6
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +10 -0
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -0
- 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 +6 -1
- package/dist/esm/anyspend/services/anyspend.js +14 -14
- package/dist/esm/anyspend/types/custom.js +2 -2
- package/dist/esm/anyspend/types/globalWallet.js +1 -1
- package/dist/esm/anyspend/types/nft.js +6 -6
- package/dist/esm/anyspend/types/onramp.d.ts +3 -0
- package/dist/esm/anyspend/types/onramp.js +2 -1
- package/dist/esm/anyspend/types/order.d.ts +30 -0
- 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 +70 -0
- 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 +45 -0
- 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 +35 -0
- package/dist/esm/anyspend/types/req-res/getOrderHistory.js +1 -1
- package/dist/esm/anyspend/types/req-res/getQuote.d.ts +26 -0
- package/dist/esm/anyspend/types/req-res/getQuote.js +10 -8
- 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.js +6 -6
- 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 +2 -2
- package/dist/esm/global-account/react/components/B3Provider/B3Provider.js +5 -5
- 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/SignIn.js +2 -2
- package/dist/esm/global-account/react/components/SignInWithB3/SignInWithB3.js +2 -2
- 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/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/Icon.js +1 -1
- package/dist/esm/global-account/react/components/custom/ManageAccountButton.js +1 -1
- 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 +4 -4
- 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.js +5 -5
- 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 +10 -10
- 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.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.js +1 -1
- 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/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/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 +2 -2
- package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +1 -1
- 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 +1 -0
- 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/useAnyspendOrderAndTransactions.d.ts +10 -0
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +10 -0
- package/dist/types/anyspend/services/anyspend.d.ts +6 -1
- package/dist/types/anyspend/types/onramp.d.ts +3 -0
- package/dist/types/anyspend/types/order.d.ts +30 -0
- package/dist/types/anyspend/types/req-res/createOrder.d.ts +70 -0
- package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +45 -0
- package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +35 -0
- package/dist/types/anyspend/types/req-res/getQuote.d.ts +26 -0
- package/dist/types/global-account/react/components/B3Provider/B3Provider.d.ts +2 -2
- 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/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/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/package.json +1 -1
- 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 +10 -10
- package/src/anyspend/react/components/AnySpend.tsx +33 -32
- package/src/anyspend/react/components/AnySpendBuySpin.tsx +34 -34
- package/src/anyspend/react/components/AnySpendCustom.tsx +39 -39
- package/src/anyspend/react/components/AnySpendNFT.tsx +4 -4
- package/src/anyspend/react/components/AnySpendNFTButton.tsx +1 -1
- package/src/anyspend/react/components/AnySpendStakeB3.tsx +18 -18
- package/src/anyspend/react/components/AnySpendTournament.tsx +4 -4
- package/src/anyspend/react/components/common/ChainTokenIcon.tsx +1 -1
- package/src/anyspend/react/components/common/OrderDetails.tsx +15 -15
- 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 +1 -0
- package/src/anyspend/react/components/modals/EnterRecipientModal.tsx +1 -1
- package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +18 -18
- package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +7 -7
- package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +7 -7
- 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 +23 -23
- 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/nft.ts +7 -7
- package/src/anyspend/types/onramp.ts +3 -2
- 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 +10 -8
- 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 +6 -6
- 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 +5 -5
- 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/SignIn.tsx +4 -4
- package/src/global-account/react/components/SignInWithB3/SignInWithB3.tsx +2 -2
- 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/Transak/TransakModal.tsx +4 -4
- package/src/global-account/react/components/custom/Button.tsx +7 -7
- package/src/global-account/react/components/custom/Icon.tsx +1 -1
- package/src/global-account/react/components/custom/ManageAccountButton.tsx +1 -1
- 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 +5 -5
- 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 +6 -6
- 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 +11 -11
- 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 -3
- 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 -1
- 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/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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CLIENT_APP_BUNDLE_ID, THIRDWEB_CLIENT_ID, THIRDWEB_SECRET_KEY } from "../../shared/constants/index.js";
|
|
2
|
-
import { getV1Nfts, getV1NftsByContractAddress, getV1NftsByContractAddressByTokenId, getV1NftsTransfersByContractAddress } from "../../shared/thirdweb/generated/sdk.gen.js";
|
|
2
|
+
import { getV1Nfts, getV1NftsByContractAddress, getV1NftsByContractAddressByTokenId, getV1NftsTransfersByContractAddress, } from "../../shared/thirdweb/generated/sdk.gen.js";
|
|
3
3
|
import { transformCollectionResponse, transformNFTResponse, transformTransferResponse } from "./insights.js";
|
|
4
4
|
export * from "../../global-account/types/simplehash.types.js";
|
|
5
5
|
export const simpleHashChainToChainId = (chain) => {
|
|
@@ -46,13 +46,13 @@ export async function fetchSimpleHashData(route, params = {}, fetchOptions) {
|
|
|
46
46
|
query: {
|
|
47
47
|
chain: params.chains?.split(",").map((chain) => simpleHashChainToChainId(chain)),
|
|
48
48
|
owner_address: params.wallet_addresses,
|
|
49
|
-
limit: params.limit || 50
|
|
49
|
+
limit: params.limit || 50,
|
|
50
50
|
},
|
|
51
51
|
headers: {
|
|
52
52
|
"x-secret-key": THIRDWEB_SECRET_KEY,
|
|
53
53
|
"x-client-id": THIRDWEB_CLIENT_ID,
|
|
54
|
-
"x-bundle-id": CLIENT_APP_BUNDLE_ID
|
|
55
|
-
}
|
|
54
|
+
"x-bundle-id": CLIENT_APP_BUNDLE_ID,
|
|
55
|
+
},
|
|
56
56
|
};
|
|
57
57
|
const response = await getV1Nfts(options);
|
|
58
58
|
if (!response.data) {
|
|
@@ -80,11 +80,11 @@ export async function fetchSimpleHashData(route, params = {}, fetchOptions) {
|
|
|
80
80
|
try {
|
|
81
81
|
const options = {
|
|
82
82
|
path: {
|
|
83
|
-
contract_address: contractAddress
|
|
83
|
+
contract_address: contractAddress,
|
|
84
84
|
},
|
|
85
85
|
query: {
|
|
86
|
-
chain: [chainId]
|
|
87
|
-
}
|
|
86
|
+
chain: [chainId],
|
|
87
|
+
},
|
|
88
88
|
};
|
|
89
89
|
const thirdwebResponse = await getV1NftsByContractAddress(options);
|
|
90
90
|
if (!thirdwebResponse.data?.data?.length) {
|
|
@@ -110,7 +110,7 @@ export async function fetchSimpleHashData(route, params = {}, fetchOptions) {
|
|
|
110
110
|
try {
|
|
111
111
|
const options = {
|
|
112
112
|
path: {
|
|
113
|
-
contract_address: contractAddress
|
|
113
|
+
contract_address: contractAddress,
|
|
114
114
|
},
|
|
115
115
|
query: {
|
|
116
116
|
chain: [chainId],
|
|
@@ -118,15 +118,15 @@ export async function fetchSimpleHashData(route, params = {}, fetchOptions) {
|
|
|
118
118
|
metadata: params.include_nft_details === "1" ? "true" : "false",
|
|
119
119
|
sort_by: "block_timestamp",
|
|
120
120
|
sort_order: params.order_by?.includes("desc") ? "desc" : "asc",
|
|
121
|
-
page: params.page ? parseInt(params.page) : undefined
|
|
122
|
-
}
|
|
121
|
+
page: params.page ? parseInt(params.page) : undefined,
|
|
122
|
+
},
|
|
123
123
|
};
|
|
124
124
|
const response = await getV1NftsTransfersByContractAddress(options);
|
|
125
125
|
if (!response.data?.data) {
|
|
126
126
|
throw new Error("No data returned from ThirdWeb API");
|
|
127
127
|
}
|
|
128
128
|
return {
|
|
129
|
-
transfers: transformTransferResponse(response.data)
|
|
129
|
+
transfers: transformTransferResponse(response.data),
|
|
130
130
|
};
|
|
131
131
|
}
|
|
132
132
|
catch (error) {
|
|
@@ -147,13 +147,13 @@ export async function fetchSimpleHashData(route, params = {}, fetchOptions) {
|
|
|
147
147
|
const options = {
|
|
148
148
|
path: {
|
|
149
149
|
contract_address: contractAddress,
|
|
150
|
-
token_id: tokenId
|
|
150
|
+
token_id: tokenId,
|
|
151
151
|
},
|
|
152
152
|
query: {
|
|
153
153
|
chain: [chainId],
|
|
154
154
|
include_owners: "true",
|
|
155
|
-
resolve_metadata_links: "true"
|
|
156
|
-
}
|
|
155
|
+
resolve_metadata_links: "true",
|
|
156
|
+
},
|
|
157
157
|
};
|
|
158
158
|
const response = await getV1NftsByContractAddressByTokenId(options);
|
|
159
159
|
if (!response.data?.data?.[0]) {
|
|
@@ -163,8 +163,8 @@ export async function fetchSimpleHashData(route, params = {}, fetchOptions) {
|
|
|
163
163
|
{
|
|
164
164
|
...response.data.data[0],
|
|
165
165
|
// Needed, because Thirdweb doesn't return the token_id in the response
|
|
166
|
-
token_id: tokenId
|
|
167
|
-
}
|
|
166
|
+
token_id: tokenId,
|
|
167
|
+
},
|
|
168
168
|
]);
|
|
169
169
|
if (!transformedResponse.nfts?.[0]) {
|
|
170
170
|
throw new Error("Failed to transform NFT data");
|
|
@@ -191,8 +191,8 @@ export async function fetchSimpleHashData(route, params = {}, fetchOptions) {
|
|
|
191
191
|
method: "GET",
|
|
192
192
|
headers: {
|
|
193
193
|
accept: "application/json",
|
|
194
|
-
"X-API-KEY": process.env.SIMPLEHASH_API_KEY
|
|
195
|
-
}
|
|
194
|
+
"X-API-KEY": process.env.SIMPLEHASH_API_KEY,
|
|
195
|
+
},
|
|
196
196
|
};
|
|
197
197
|
}
|
|
198
198
|
else {
|
|
@@ -211,8 +211,8 @@ export async function fetchSimpleHashData(route, params = {}, fetchOptions) {
|
|
|
211
211
|
options = {
|
|
212
212
|
method: "GET",
|
|
213
213
|
headers: {
|
|
214
|
-
accept: "application/json"
|
|
215
|
-
}
|
|
214
|
+
accept: "application/json",
|
|
215
|
+
},
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
218
|
try {
|
|
@@ -240,7 +240,7 @@ export async function fetchFungibleAssets(fungibleIds, includePrices = true) {
|
|
|
240
240
|
const route = "/v0/fungibles/assets";
|
|
241
241
|
const params = {
|
|
242
242
|
fungible_ids: fungibleIds.join(","),
|
|
243
|
-
include_prices: includePrices ? "1" : "0"
|
|
243
|
+
include_prices: includePrices ? "1" : "0",
|
|
244
244
|
};
|
|
245
245
|
const response = await fetchSimpleHashData(route, params);
|
|
246
246
|
if ("fungibles" in response && Array.isArray(response.fungibles)) {
|
|
@@ -261,7 +261,7 @@ export async function fetchNativeTokenBalances(chains, walletAddresses) {
|
|
|
261
261
|
const route = "/v0/native_tokens/balances";
|
|
262
262
|
const params = {
|
|
263
263
|
chains: chains.join(","),
|
|
264
|
-
wallet_addresses: walletAddresses.join(",")
|
|
264
|
+
wallet_addresses: walletAddresses.join(","),
|
|
265
265
|
};
|
|
266
266
|
try {
|
|
267
267
|
const response = await fetchSimpleHashData(route, params);
|
|
@@ -274,7 +274,7 @@ export async function fetchNativeTokenBalances(chains, walletAddresses) {
|
|
|
274
274
|
console.error("Failed to fetch native token balances:", {
|
|
275
275
|
error,
|
|
276
276
|
chains,
|
|
277
|
-
walletAddresses
|
|
277
|
+
walletAddresses,
|
|
278
278
|
});
|
|
279
279
|
// Rethrow with more context
|
|
280
280
|
if (error instanceof Error) {
|
|
@@ -43,8 +43,8 @@ export async function getTokenBalances(ownerAddress, options = {}) {
|
|
|
43
43
|
const response = await fetch(url, {
|
|
44
44
|
headers: {
|
|
45
45
|
...(client.clientId ? { "x-client-id": client.clientId } : {}),
|
|
46
|
-
...(client.secretKey ? { "x-secret-key": client.secretKey } : {})
|
|
47
|
-
}
|
|
46
|
+
...(client.secretKey ? { "x-secret-key": client.secretKey } : {}),
|
|
47
|
+
},
|
|
48
48
|
});
|
|
49
49
|
if (!response.ok) {
|
|
50
50
|
throw new Error(`Failed to fetch token balances: ${response.statusText}`);
|
|
@@ -59,15 +59,15 @@ export async function getERC20Balances(ownerAddress, options = {}) {
|
|
|
59
59
|
export async function getNFTBalances(ownerAddress, options = {}) {
|
|
60
60
|
const erc721Response = await getTokenBalances(ownerAddress, {
|
|
61
61
|
...options,
|
|
62
|
-
tokenType: "erc721"
|
|
62
|
+
tokenType: "erc721",
|
|
63
63
|
});
|
|
64
64
|
const erc1155Response = await getTokenBalances(ownerAddress, {
|
|
65
65
|
...options,
|
|
66
|
-
tokenType: "erc1155"
|
|
66
|
+
tokenType: "erc1155",
|
|
67
67
|
});
|
|
68
68
|
return {
|
|
69
69
|
data: [...erc721Response.data, ...erc1155Response.data],
|
|
70
|
-
continuation: erc1155Response.continuation
|
|
70
|
+
continuation: erc1155Response.continuation,
|
|
71
71
|
};
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
@@ -97,8 +97,8 @@ export async function getNFTsByContract(chainId, contractAddress, options = {})
|
|
|
97
97
|
headers: {
|
|
98
98
|
...(client.clientId ? { "x-client-id": client.clientId } : {}),
|
|
99
99
|
...(client.secretKey ? { "x-secret-key": client.secretKey } : {}),
|
|
100
|
-
"x-chain-id": chainId.toString()
|
|
101
|
-
}
|
|
100
|
+
"x-chain-id": chainId.toString(),
|
|
101
|
+
},
|
|
102
102
|
});
|
|
103
103
|
if (!response.ok) {
|
|
104
104
|
throw new Error(`Failed to fetch NFTs by contract: ${response.statusText}`);
|
|
@@ -127,8 +127,8 @@ export async function getFungibleAssetByContract(chainId, contractAddress, optio
|
|
|
127
127
|
headers: {
|
|
128
128
|
...(client.clientId ? { "x-client-id": client.clientId } : {}),
|
|
129
129
|
...(client.secretKey ? { "x-secret-key": client.secretKey } : {}),
|
|
130
|
-
"x-chain-id": chainId.toString()
|
|
131
|
-
}
|
|
130
|
+
"x-chain-id": chainId.toString(),
|
|
131
|
+
},
|
|
132
132
|
});
|
|
133
133
|
if (!response.ok) {
|
|
134
134
|
throw new Error(`Failed to fetch NFTs by contract: ${response.statusText}`);
|
|
@@ -157,14 +157,14 @@ export async function getNativeTokenBalance(address, chainId) {
|
|
|
157
157
|
nativeCurrency: {
|
|
158
158
|
name: chainInfo?.nativeCurrency?.name || "Native Currency",
|
|
159
159
|
symbol: chainInfo?.nativeCurrency?.symbol || "ETH",
|
|
160
|
-
decimals: chainInfo?.nativeCurrency?.decimals || 18
|
|
161
|
-
}
|
|
160
|
+
decimals: chainInfo?.nativeCurrency?.decimals || 18,
|
|
161
|
+
},
|
|
162
162
|
});
|
|
163
163
|
// Get native token balance
|
|
164
164
|
const balance = await getWalletBalance({
|
|
165
165
|
address,
|
|
166
166
|
client,
|
|
167
|
-
chain
|
|
167
|
+
chain,
|
|
168
168
|
});
|
|
169
169
|
// Format to match TokenData structure
|
|
170
170
|
return {
|
|
@@ -177,12 +177,12 @@ export async function getNativeTokenBalance(address, chainId) {
|
|
|
177
177
|
balance: balance.value.toString(),
|
|
178
178
|
metadata: {
|
|
179
179
|
logoURI: chainInfo?.icon?.url ||
|
|
180
|
-
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/info/logo.png"
|
|
180
|
+
"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/info/logo.png",
|
|
181
181
|
},
|
|
182
182
|
// Add native token info in extra_metadata
|
|
183
183
|
extra_metadata: {
|
|
184
|
-
is_native: true
|
|
185
|
-
}
|
|
184
|
+
is_native: true,
|
|
185
|
+
},
|
|
186
186
|
};
|
|
187
187
|
}
|
|
188
188
|
catch (error) {
|
|
@@ -11,7 +11,7 @@ export declare enum PanelView {
|
|
|
11
11
|
LOADING = 3,
|
|
12
12
|
FIAT_PAYMENT = 4
|
|
13
13
|
}
|
|
14
|
-
export declare function AnySpend({ destinationTokenAddress, destinationTokenChainId, isMainnet, mode, defaultActiveTab, loadOrder, hideTransactionHistoryButton, recipientAddress: recipientAddressFromProps }: {
|
|
14
|
+
export declare function AnySpend({ destinationTokenAddress, destinationTokenChainId, isMainnet, mode, defaultActiveTab, loadOrder, hideTransactionHistoryButton, recipientAddress: recipientAddressFromProps, }: {
|
|
15
15
|
destinationTokenAddress?: string;
|
|
16
16
|
destinationTokenChainId?: number;
|
|
17
17
|
isMainnet?: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function AnySpendBuySpin({ isMainnet, loadOrder, mode, spinwheelContractAddress, chainId, recipientAddress, prefillQuantity, onSuccess }: {
|
|
1
|
+
export declare function AnySpendBuySpin({ isMainnet, loadOrder, mode, spinwheelContractAddress, chainId, recipientAddress, prefillQuantity, onSuccess, }: {
|
|
2
2
|
isMainnet?: boolean;
|
|
3
3
|
loadOrder?: string;
|
|
4
4
|
mode?: "modal" | "page";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnySpendMetadata, GetQuoteResponse, OrderType, Token } from "@b3dotfun/sdk/anyspend";
|
|
2
2
|
import React from "react";
|
|
3
|
-
export declare function AnySpendCustom({ isMainnet, loadOrder, mode, recipientAddress: recipientAddressProps, spenderAddress, orderType, dstChainId, dstToken, dstAmount, contractAddress, encodedData, metadata, header, onSuccess, showRecipient }: {
|
|
3
|
+
export declare function AnySpendCustom({ isMainnet, loadOrder, mode, recipientAddress: recipientAddressProps, spenderAddress, orderType, dstChainId, dstToken, dstAmount, contractAddress, encodedData, metadata, header, onSuccess, showRecipient, }: {
|
|
4
4
|
isMainnet?: boolean;
|
|
5
5
|
loadOrder?: string;
|
|
6
6
|
mode?: "modal" | "page";
|
|
@@ -13,7 +13,7 @@ export declare function AnySpendCustom({ isMainnet, loadOrder, mode, recipientAd
|
|
|
13
13
|
contractAddress: string;
|
|
14
14
|
encodedData: string;
|
|
15
15
|
metadata: AnySpendMetadata;
|
|
16
|
-
header: ({ anyspendPrice, isLoadingAnyspendPrice }: {
|
|
16
|
+
header: ({ anyspendPrice, isLoadingAnyspendPrice, }: {
|
|
17
17
|
anyspendPrice: GetQuoteResponse | undefined;
|
|
18
18
|
isLoadingAnyspendPrice: boolean;
|
|
19
19
|
}) => React.JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NftContract } from "@b3dotfun/sdk/anyspend/types";
|
|
2
|
-
export declare function AnySpendNFT({ isMainnet, loadOrder, mode, recipientAddress, nftContract, onSuccess }: {
|
|
2
|
+
export declare function AnySpendNFT({ isMainnet, loadOrder, mode, recipientAddress, nftContract, onSuccess, }: {
|
|
3
3
|
isMainnet?: boolean;
|
|
4
4
|
loadOrder?: string;
|
|
5
5
|
mode?: "modal" | "page";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function AnySpendStakeB3({ isMainnet, loadOrder, mode, recipientAddress, stakeAmount, onSuccess }: {
|
|
1
|
+
export declare function AnySpendStakeB3({ isMainnet, loadOrder, mode, recipientAddress, stakeAmount, onSuccess, }: {
|
|
2
2
|
isMainnet?: boolean;
|
|
3
3
|
loadOrder?: string;
|
|
4
4
|
mode?: "modal" | "page";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Token } from "@b3dotfun/sdk/anyspend";
|
|
2
|
-
export declare function OrderToken({ context, address, chainId, setChainId, token, setToken, requiredAmount, tokenSelectClassName }: {
|
|
2
|
+
export declare function OrderToken({ context, address, chainId, setChainId, token, setToken, requiredAmount, tokenSelectClassName, }: {
|
|
3
3
|
context: "from" | "to";
|
|
4
4
|
address: string | undefined;
|
|
5
5
|
token: Token;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Token } from "@b3dotfun/sdk/anyspend";
|
|
2
|
-
export declare function OrderTokenAmount({ disabled, inputValue, onChangeInput, context, address, chainId, setChainId, token, setToken, hideTokenSelect, canEditAmount, className, innerClassName, amountClassName, tokenSelectClassName }: {
|
|
2
|
+
export declare function OrderTokenAmount({ disabled, inputValue, onChangeInput, context, address, chainId, setChainId, token, setToken, hideTokenSelect, canEditAmount, className, innerClassName, amountClassName, tokenSelectClassName, }: {
|
|
3
3
|
disabled?: boolean;
|
|
4
4
|
inputValue: string;
|
|
5
5
|
onChangeInput: (value: string) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function PanelOnramp({ srcAmountOnRamp, setSrcAmountOnRamp }: {
|
|
1
|
+
export declare function PanelOnramp({ srcAmountOnRamp, setSrcAmountOnRamp, }: {
|
|
2
2
|
srcAmountOnRamp: string;
|
|
3
3
|
setSrcAmountOnRamp: (amount: string) => void;
|
|
4
4
|
}): import("react/jsx-runtime").JSX.Element;
|
|
@@ -25,5 +25,5 @@ interface PanelOnrampPaymentProps {
|
|
|
25
25
|
recipientEnsName?: string;
|
|
26
26
|
recipientImageUrl?: string;
|
|
27
27
|
}
|
|
28
|
-
export declare function PanelOnrampPayment({ srcAmountOnRamp, recipientAddress, isMainnet, isBuyMode, destinationTokenChainId, destinationTokenAddress, selectedDstChainId, selectedDstToken, anyspendQuote, globalAddress, onOrderCreated, onBack, orderType, nft, tournament, payload, recipientEnsName, recipientImageUrl }: PanelOnrampPaymentProps): import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
export declare function PanelOnrampPayment({ srcAmountOnRamp, recipientAddress, isMainnet, isBuyMode, destinationTokenChainId, destinationTokenAddress, selectedDstChainId, selectedDstToken, anyspendQuote, globalAddress, onOrderCreated, onBack, orderType, nft, tournament, payload, recipientEnsName, recipientImageUrl, }: PanelOnrampPaymentProps): import("react/jsx-runtime").JSX.Element;
|
|
29
29
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Token } from "@b3dotfun/sdk/anyspend";
|
|
2
|
-
export declare function TokenBalance({ token, walletAddress, onChangeInput }: {
|
|
2
|
+
export declare function TokenBalance({ token, walletAddress, onChangeInput, }: {
|
|
3
3
|
token: Token;
|
|
4
4
|
walletAddress: string | undefined;
|
|
5
5
|
onChangeInput: (value: string) => void;
|
|
@@ -5,6 +5,7 @@ export { AnySpendNFT } from "./AnySpendNFT";
|
|
|
5
5
|
export { AnySpendNFTButton } from "./AnySpendNFTButton";
|
|
6
6
|
export { AnySpendStakeB3 } from "./AnySpendStakeB3";
|
|
7
7
|
export { AnySpendTournament } from "./AnySpendTournament";
|
|
8
|
+
export { ChainTokenIcon } from "./common/ChainTokenIcon";
|
|
8
9
|
export { OrderDetails } from "./common/OrderDetails";
|
|
9
10
|
export { OrderHistory } from "./common/OrderHistory";
|
|
10
11
|
export { OrderHistoryItem } from "./common/OrderHistoryItem";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare function EnterRecipientModal({ isOpenPasteRecipientAddress, setIsOpenPasteRecipientAddress, recipientAddress, setRecipientAddress }: {
|
|
1
|
+
export declare function EnterRecipientModal({ isOpenPasteRecipientAddress, setIsOpenPasteRecipientAddress, recipientAddress, setRecipientAddress, }: {
|
|
2
2
|
isOpenPasteRecipientAddress: boolean;
|
|
3
3
|
setIsOpenPasteRecipientAddress: (isOpen: boolean) => void;
|
|
4
4
|
recipientAddress: string | undefined;
|
|
@@ -8,5 +8,5 @@ interface WebviewOnrampPaymentProps {
|
|
|
8
8
|
onPaymentSuccess: (orderId: string) => void;
|
|
9
9
|
userId?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare function WebviewOnrampPayment({ srcAmountOnRamp, recipientAddress, destinationToken, anyspendQuote, onPaymentSuccess, userId, partnerId }: WebviewOnrampPaymentProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
export declare function WebviewOnrampPayment({ srcAmountOnRamp, recipientAddress, destinationToken, anyspendQuote, onPaymentSuccess, userId, partnerId, }: WebviewOnrampPaymentProps): import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export {};
|
|
@@ -44,6 +44,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
44
44
|
paymentMethod: string;
|
|
45
45
|
redirectUrl: string;
|
|
46
46
|
ipAddress?: string | undefined;
|
|
47
|
+
stripeAmountInCents?: number | undefined;
|
|
47
48
|
} | null;
|
|
48
49
|
creatorAddress: string | null;
|
|
49
50
|
partnerId: string | null;
|
|
@@ -116,6 +117,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
116
117
|
paymentMethod: string;
|
|
117
118
|
redirectUrl: string;
|
|
118
119
|
ipAddress?: string | undefined;
|
|
120
|
+
stripeAmountInCents?: number | undefined;
|
|
119
121
|
} | null;
|
|
120
122
|
creatorAddress: string | null;
|
|
121
123
|
partnerId: string | null;
|
|
@@ -182,6 +184,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
182
184
|
paymentMethod: string;
|
|
183
185
|
redirectUrl: string;
|
|
184
186
|
ipAddress?: string | undefined;
|
|
187
|
+
stripeAmountInCents?: number | undefined;
|
|
185
188
|
} | null;
|
|
186
189
|
creatorAddress: string | null;
|
|
187
190
|
partnerId: string | null;
|
|
@@ -246,6 +249,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
246
249
|
paymentMethod: string;
|
|
247
250
|
redirectUrl: string;
|
|
248
251
|
ipAddress?: string | undefined;
|
|
252
|
+
stripeAmountInCents?: number | undefined;
|
|
249
253
|
} | null;
|
|
250
254
|
creatorAddress: string | null;
|
|
251
255
|
partnerId: string | null;
|
|
@@ -305,6 +309,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
305
309
|
paymentMethod: string;
|
|
306
310
|
redirectUrl: string;
|
|
307
311
|
ipAddress?: string | undefined;
|
|
312
|
+
stripeAmountInCents?: number | undefined;
|
|
308
313
|
} | null;
|
|
309
314
|
creatorAddress: string | null;
|
|
310
315
|
partnerId: string | null;
|
|
@@ -404,6 +409,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
404
409
|
paymentMethod: string;
|
|
405
410
|
redirectUrl: string;
|
|
406
411
|
ipAddress?: string | undefined;
|
|
412
|
+
stripeAmountInCents?: number | undefined;
|
|
407
413
|
} | null;
|
|
408
414
|
creatorAddress: string | null;
|
|
409
415
|
partnerId: string | null;
|
|
@@ -476,6 +482,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
476
482
|
paymentMethod: string;
|
|
477
483
|
redirectUrl: string;
|
|
478
484
|
ipAddress?: string | undefined;
|
|
485
|
+
stripeAmountInCents?: number | undefined;
|
|
479
486
|
} | null;
|
|
480
487
|
creatorAddress: string | null;
|
|
481
488
|
partnerId: string | null;
|
|
@@ -542,6 +549,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
542
549
|
paymentMethod: string;
|
|
543
550
|
redirectUrl: string;
|
|
544
551
|
ipAddress?: string | undefined;
|
|
552
|
+
stripeAmountInCents?: number | undefined;
|
|
545
553
|
} | null;
|
|
546
554
|
creatorAddress: string | null;
|
|
547
555
|
partnerId: string | null;
|
|
@@ -606,6 +614,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
606
614
|
paymentMethod: string;
|
|
607
615
|
redirectUrl: string;
|
|
608
616
|
ipAddress?: string | undefined;
|
|
617
|
+
stripeAmountInCents?: number | undefined;
|
|
609
618
|
} | null;
|
|
610
619
|
creatorAddress: string | null;
|
|
611
620
|
partnerId: string | null;
|
|
@@ -665,6 +674,7 @@ export declare function useAnyspendOrderAndTransactions(isMainnet: boolean, orde
|
|
|
665
674
|
paymentMethod: string;
|
|
666
675
|
redirectUrl: string;
|
|
667
676
|
ipAddress?: string | undefined;
|
|
677
|
+
stripeAmountInCents?: number | undefined;
|
|
668
678
|
} | null;
|
|
669
679
|
creatorAddress: string | null;
|
|
670
680
|
partnerId: string | null;
|
|
@@ -41,6 +41,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
41
41
|
paymentMethod: string;
|
|
42
42
|
redirectUrl: string;
|
|
43
43
|
ipAddress?: string | undefined;
|
|
44
|
+
stripeAmountInCents?: number | undefined;
|
|
44
45
|
} | null;
|
|
45
46
|
creatorAddress: string | null;
|
|
46
47
|
partnerId: string | null;
|
|
@@ -113,6 +114,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
113
114
|
paymentMethod: string;
|
|
114
115
|
redirectUrl: string;
|
|
115
116
|
ipAddress?: string | undefined;
|
|
117
|
+
stripeAmountInCents?: number | undefined;
|
|
116
118
|
} | null;
|
|
117
119
|
creatorAddress: string | null;
|
|
118
120
|
partnerId: string | null;
|
|
@@ -179,6 +181,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
179
181
|
paymentMethod: string;
|
|
180
182
|
redirectUrl: string;
|
|
181
183
|
ipAddress?: string | undefined;
|
|
184
|
+
stripeAmountInCents?: number | undefined;
|
|
182
185
|
} | null;
|
|
183
186
|
creatorAddress: string | null;
|
|
184
187
|
partnerId: string | null;
|
|
@@ -243,6 +246,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
243
246
|
paymentMethod: string;
|
|
244
247
|
redirectUrl: string;
|
|
245
248
|
ipAddress?: string | undefined;
|
|
249
|
+
stripeAmountInCents?: number | undefined;
|
|
246
250
|
} | null;
|
|
247
251
|
creatorAddress: string | null;
|
|
248
252
|
partnerId: string | null;
|
|
@@ -302,6 +306,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
302
306
|
paymentMethod: string;
|
|
303
307
|
redirectUrl: string;
|
|
304
308
|
ipAddress?: string | undefined;
|
|
309
|
+
stripeAmountInCents?: number | undefined;
|
|
305
310
|
} | null;
|
|
306
311
|
creatorAddress: string | null;
|
|
307
312
|
partnerId: string | null;
|
|
@@ -365,6 +370,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
365
370
|
paymentMethod: string;
|
|
366
371
|
redirectUrl: string;
|
|
367
372
|
ipAddress?: string | undefined;
|
|
373
|
+
stripeAmountInCents?: number | undefined;
|
|
368
374
|
} | null;
|
|
369
375
|
creatorAddress: string | null;
|
|
370
376
|
partnerId: string | null;
|
|
@@ -437,6 +443,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
437
443
|
paymentMethod: string;
|
|
438
444
|
redirectUrl: string;
|
|
439
445
|
ipAddress?: string | undefined;
|
|
446
|
+
stripeAmountInCents?: number | undefined;
|
|
440
447
|
} | null;
|
|
441
448
|
creatorAddress: string | null;
|
|
442
449
|
partnerId: string | null;
|
|
@@ -503,6 +510,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
503
510
|
paymentMethod: string;
|
|
504
511
|
redirectUrl: string;
|
|
505
512
|
ipAddress?: string | undefined;
|
|
513
|
+
stripeAmountInCents?: number | undefined;
|
|
506
514
|
} | null;
|
|
507
515
|
creatorAddress: string | null;
|
|
508
516
|
partnerId: string | null;
|
|
@@ -567,6 +575,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
567
575
|
paymentMethod: string;
|
|
568
576
|
redirectUrl: string;
|
|
569
577
|
ipAddress?: string | undefined;
|
|
578
|
+
stripeAmountInCents?: number | undefined;
|
|
570
579
|
} | null;
|
|
571
580
|
creatorAddress: string | null;
|
|
572
581
|
partnerId: string | null;
|
|
@@ -626,6 +635,7 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
626
635
|
paymentMethod: string;
|
|
627
636
|
redirectUrl: string;
|
|
628
637
|
ipAddress?: string | undefined;
|
|
638
|
+
stripeAmountInCents?: number | undefined;
|
|
629
639
|
} | null;
|
|
630
640
|
creatorAddress: string | null;
|
|
631
641
|
partnerId: string | null;
|
|
@@ -4,7 +4,7 @@ export declare const anyspendService: {
|
|
|
4
4
|
getTokenList: (isMainnet: boolean, chainId: number, query: string) => Promise<Token[]>;
|
|
5
5
|
getToken: (isMainnet: boolean, chainId: number, tokenAddress: string) => Promise<Token>;
|
|
6
6
|
getQuote: (isMainnet: boolean, req: GetQuoteRequest) => Promise<GetQuoteResponse>;
|
|
7
|
-
createOrder: ({ isMainnet, recipientAddress, type, srcChain, dstChain, srcTokenAddress, dstTokenAddress, srcAmount, payload, onramp, metadata, creatorAddress, partnerId }: {
|
|
7
|
+
createOrder: ({ isMainnet, recipientAddress, type, srcChain, dstChain, srcTokenAddress, dstTokenAddress, srcAmount, payload, onramp, metadata, creatorAddress, partnerId, }: {
|
|
8
8
|
isMainnet: boolean;
|
|
9
9
|
recipientAddress: string;
|
|
10
10
|
type: string;
|
|
@@ -64,6 +64,7 @@ export declare const anyspendService: {
|
|
|
64
64
|
paymentMethod: string;
|
|
65
65
|
redirectUrl: string;
|
|
66
66
|
ipAddress?: string | undefined;
|
|
67
|
+
stripeAmountInCents?: number | undefined;
|
|
67
68
|
} | null;
|
|
68
69
|
creatorAddress: string | null;
|
|
69
70
|
partnerId: string | null;
|
|
@@ -136,6 +137,7 @@ export declare const anyspendService: {
|
|
|
136
137
|
paymentMethod: string;
|
|
137
138
|
redirectUrl: string;
|
|
138
139
|
ipAddress?: string | undefined;
|
|
140
|
+
stripeAmountInCents?: number | undefined;
|
|
139
141
|
} | null;
|
|
140
142
|
creatorAddress: string | null;
|
|
141
143
|
partnerId: string | null;
|
|
@@ -202,6 +204,7 @@ export declare const anyspendService: {
|
|
|
202
204
|
paymentMethod: string;
|
|
203
205
|
redirectUrl: string;
|
|
204
206
|
ipAddress?: string | undefined;
|
|
207
|
+
stripeAmountInCents?: number | undefined;
|
|
205
208
|
} | null;
|
|
206
209
|
creatorAddress: string | null;
|
|
207
210
|
partnerId: string | null;
|
|
@@ -266,6 +269,7 @@ export declare const anyspendService: {
|
|
|
266
269
|
paymentMethod: string;
|
|
267
270
|
redirectUrl: string;
|
|
268
271
|
ipAddress?: string | undefined;
|
|
272
|
+
stripeAmountInCents?: number | undefined;
|
|
269
273
|
} | null;
|
|
270
274
|
creatorAddress: string | null;
|
|
271
275
|
partnerId: string | null;
|
|
@@ -325,6 +329,7 @@ export declare const anyspendService: {
|
|
|
325
329
|
paymentMethod: string;
|
|
326
330
|
redirectUrl: string;
|
|
327
331
|
ipAddress?: string | undefined;
|
|
332
|
+
stripeAmountInCents?: number | undefined;
|
|
328
333
|
} | null;
|
|
329
334
|
creatorAddress: string | null;
|
|
330
335
|
partnerId: string | null;
|
|
@@ -10,16 +10,19 @@ export declare const zOnrampMetadata: z.ZodObject<{
|
|
|
10
10
|
paymentMethod: z.ZodString;
|
|
11
11
|
ipAddress: z.ZodOptional<z.ZodString>;
|
|
12
12
|
redirectUrl: z.ZodString;
|
|
13
|
+
stripeAmountInCents: z.ZodOptional<z.ZodNumber>;
|
|
13
14
|
}, "strip", z.ZodTypeAny, {
|
|
14
15
|
country: string;
|
|
15
16
|
vendor: OnrampVendor;
|
|
16
17
|
paymentMethod: string;
|
|
17
18
|
redirectUrl: string;
|
|
18
19
|
ipAddress?: string | undefined;
|
|
20
|
+
stripeAmountInCents?: number | undefined;
|
|
19
21
|
}, {
|
|
20
22
|
country: string;
|
|
21
23
|
vendor: OnrampVendor;
|
|
22
24
|
paymentMethod: string;
|
|
23
25
|
redirectUrl: string;
|
|
24
26
|
ipAddress?: string | undefined;
|
|
27
|
+
stripeAmountInCents?: number | undefined;
|
|
25
28
|
}>;
|