@b3dotfun/sdk 0.0.8 → 0.0.9-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -1
- package/dist/cjs/anyspend/abis/bondKit.d.ts +35 -0
- package/dist/cjs/anyspend/abis/bondKit.js +29 -0
- package/dist/cjs/anyspend/constants/index.d.ts +16 -5
- package/dist/cjs/anyspend/constants/index.js +3 -4
- package/dist/cjs/anyspend/index.d.ts +2 -7
- package/dist/cjs/anyspend/index.js +2 -8
- package/dist/cjs/anyspend/index.native.d.ts +2 -3
- package/dist/cjs/anyspend/index.native.js +2 -4
- package/dist/cjs/anyspend/react/components/AnySpend.js +12 -12
- package/dist/cjs/anyspend/react/components/AnySpendBondKit.d.ts +2 -0
- package/dist/cjs/anyspend/react/components/AnySpendBondKit.js +209 -0
- package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +3 -10
- package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +5 -4
- package/dist/cjs/anyspend/react/components/AnySpendCustom.js +49 -49
- package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendNFT.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +2 -2
- package/dist/cjs/anyspend/react/components/AnySpendTournament.d.ts +5 -5
- package/dist/cjs/anyspend/react/components/AnySpendTournament.js +2 -3
- package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.d.ts +1 -1
- package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.js +10 -8
- package/dist/cjs/anyspend/react/components/{AnySpendNFTButton.d.ts → common/AnySpendNFTButton.d.ts} +2 -2
- package/dist/cjs/anyspend/react/components/{AnySpendNFTButton.js → common/AnySpendNFTButton.js} +2 -2
- package/dist/cjs/anyspend/react/components/common/OrderDetails.d.ts +6 -6
- package/dist/cjs/anyspend/react/components/common/OrderDetails.js +45 -47
- package/dist/cjs/anyspend/react/components/common/OrderHistoryItem.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/common/OrderHistoryItem.js +10 -12
- package/dist/cjs/anyspend/react/components/common/OrderStatus.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/common/OrderStatus.js +1 -1
- package/dist/cjs/anyspend/react/components/common/OrderToken.d.ts +3 -3
- package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.d.ts +3 -3
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.d.ts +6 -5
- package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +8 -9
- package/dist/cjs/anyspend/react/components/common/PaymentOneClick.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.js +1 -2
- package/dist/cjs/anyspend/react/components/common/TokenBalance.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/index.d.ts +2 -1
- package/dist/cjs/anyspend/react/components/index.js +5 -3
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +2 -2
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +9 -9
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +3 -2
- package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +3 -4
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +2 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +6 -6
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +12 -644
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +21 -6
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +72 -434
- package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -2
- package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.d.ts +7 -15
- package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +4 -21
- package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.d.ts +4 -4
- package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +38 -27
- package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.js +1 -1
- package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.d.ts +16 -13
- package/dist/cjs/anyspend/react/hooks/useSigMint.d.ts +7 -7
- package/dist/cjs/anyspend/services/anyspend.d.ts +10 -321
- package/dist/cjs/anyspend/services/anyspend.js +7 -11
- package/dist/cjs/anyspend/types/api.d.ts +1731 -0
- package/dist/cjs/anyspend/types/api.js +6 -0
- package/dist/cjs/anyspend/types/api_req_res.d.ts +10 -0
- package/dist/cjs/anyspend/types/chain.d.ts +3 -3
- package/dist/cjs/anyspend/types/signatureMint.js +2 -0
- package/dist/cjs/anyspend/utils/chain.d.ts +4 -3
- package/dist/cjs/anyspend/utils/chain.js +14 -14
- package/dist/cjs/anyspend/utils/format.d.ts +2 -2
- package/dist/cjs/anyspend/utils/format.js +13 -14
- package/dist/cjs/anyspend/utils/orderPayload.d.ts +29 -29
- package/dist/cjs/anyspend/utils/orderPayload.js +12 -13
- package/dist/cjs/anyspend/utils/token.d.ts +6 -6
- package/dist/cjs/global-account/react/components/B3DynamicModal.js +4 -0
- package/dist/cjs/global-account/react/components/SignInWithB3/SignIn.js +1 -1
- package/dist/cjs/global-account/react/components/ui/TabSystem.d.ts +2 -2
- package/dist/cjs/global-account/react/components/ui/TabSystem.js +5 -5
- package/dist/cjs/global-account/react/components/ui/command.d.ts +1 -1
- package/dist/cjs/global-account/react/hooks/useAccountWallet.js +1 -1
- package/dist/cjs/global-account/react/hooks/useBestTransactionPath.d.ts +2 -2
- package/dist/cjs/global-account/react/hooks/useOnchainName.js +2 -2
- package/dist/cjs/global-account/react/hooks/useTokenBalance.d.ts +2 -2
- package/dist/cjs/global-account/react/hooks/useTokenFromUrl.d.ts +5 -5
- package/dist/cjs/global-account/react/hooks/useTokenFromUrl.js +1 -1
- package/dist/cjs/global-account/react/stores/useModalStore.d.ts +32 -9
- package/dist/cjs/shared/constants/chains/supported.d.ts +2 -2
- package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +249 -249
- package/dist/cjs/shared/utils/payment.utils.d.ts +3 -3
- package/dist/cjs/shared/utils/payment.utils.js +6 -7
- package/dist/esm/anyspend/abis/bondKit.d.ts +35 -0
- package/dist/esm/anyspend/abis/bondKit.js +26 -0
- package/dist/esm/anyspend/constants/index.d.ts +16 -5
- package/dist/esm/anyspend/constants/index.js +3 -4
- package/dist/esm/anyspend/index.d.ts +2 -7
- package/dist/esm/anyspend/index.js +2 -8
- package/dist/esm/anyspend/index.native.d.ts +2 -3
- package/dist/esm/anyspend/index.native.js +2 -4
- package/dist/esm/anyspend/react/components/AnySpend.js +13 -13
- package/dist/esm/anyspend/react/components/AnySpendBondKit.d.ts +2 -0
- package/dist/esm/anyspend/react/components/AnySpendBondKit.js +206 -0
- package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +4 -11
- package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +5 -4
- package/dist/esm/anyspend/react/components/AnySpendCustom.js +49 -49
- package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +2 -2
- package/dist/esm/anyspend/react/components/AnySpendNFT.js +3 -3
- package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +3 -3
- package/dist/esm/anyspend/react/components/AnySpendTournament.d.ts +5 -5
- package/dist/esm/anyspend/react/components/AnySpendTournament.js +2 -3
- package/dist/esm/anyspend/react/components/AnyspendSignatureMint.d.ts +1 -1
- package/dist/esm/anyspend/react/components/AnyspendSignatureMint.js +10 -8
- package/dist/esm/anyspend/react/components/{AnySpendNFTButton.d.ts → common/AnySpendNFTButton.d.ts} +2 -2
- package/dist/esm/anyspend/react/components/{AnySpendNFTButton.js → common/AnySpendNFTButton.js} +2 -2
- package/dist/esm/anyspend/react/components/common/OrderDetails.d.ts +6 -6
- package/dist/esm/anyspend/react/components/common/OrderDetails.js +46 -48
- package/dist/esm/anyspend/react/components/common/OrderHistoryItem.d.ts +2 -2
- package/dist/esm/anyspend/react/components/common/OrderHistoryItem.js +11 -13
- package/dist/esm/anyspend/react/components/common/OrderStatus.d.ts +2 -2
- package/dist/esm/anyspend/react/components/common/OrderStatus.js +2 -2
- package/dist/esm/anyspend/react/components/common/OrderToken.d.ts +3 -3
- package/dist/esm/anyspend/react/components/common/OrderTokenAmount.d.ts +3 -3
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.d.ts +6 -5
- package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +8 -9
- package/dist/esm/anyspend/react/components/common/PaymentOneClick.d.ts +2 -2
- package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.d.ts +2 -2
- package/dist/esm/anyspend/react/components/common/PaymentVendorUI.d.ts +2 -2
- package/dist/esm/anyspend/react/components/common/PaymentVendorUI.js +1 -2
- package/dist/esm/anyspend/react/components/common/TokenBalance.d.ts +2 -2
- package/dist/esm/anyspend/react/components/index.d.ts +2 -1
- package/dist/esm/anyspend/react/components/index.js +2 -1
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +2 -2
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +10 -10
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +3 -2
- package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +4 -5
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +2 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +6 -6
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +12 -644
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.js +21 -3
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +72 -434
- package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -2
- package/dist/esm/anyspend/react/hooks/useAnyspendQuote.d.ts +7 -15
- package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +4 -21
- package/dist/esm/anyspend/react/hooks/useAnyspendTokens.d.ts +4 -4
- package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +38 -27
- package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.js +1 -1
- package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.d.ts +16 -13
- package/dist/esm/anyspend/react/hooks/useSigMint.d.ts +7 -7
- package/dist/esm/anyspend/services/anyspend.d.ts +10 -321
- package/dist/esm/anyspend/services/anyspend.js +7 -11
- package/dist/esm/anyspend/types/api.d.ts +1731 -0
- package/dist/esm/anyspend/types/api.js +5 -0
- package/dist/esm/anyspend/types/api_req_res.d.ts +10 -0
- package/dist/esm/anyspend/types/chain.d.ts +3 -3
- package/dist/esm/anyspend/types/signatureMint.js +1 -0
- package/dist/esm/anyspend/utils/chain.d.ts +4 -3
- package/dist/esm/anyspend/utils/chain.js +1 -1
- package/dist/esm/anyspend/utils/format.d.ts +2 -2
- package/dist/esm/anyspend/utils/format.js +13 -14
- package/dist/esm/anyspend/utils/orderPayload.d.ts +29 -29
- package/dist/esm/anyspend/utils/orderPayload.js +12 -13
- package/dist/esm/anyspend/utils/token.d.ts +6 -6
- package/dist/esm/global-account/react/components/B3DynamicModal.js +5 -1
- package/dist/esm/global-account/react/components/SignInWithB3/SignIn.js +1 -1
- package/dist/esm/global-account/react/components/ui/TabSystem.d.ts +2 -2
- package/dist/esm/global-account/react/components/ui/TabSystem.js +4 -4
- package/dist/esm/global-account/react/components/ui/command.d.ts +1 -1
- package/dist/esm/global-account/react/hooks/useAccountWallet.js +1 -1
- package/dist/esm/global-account/react/hooks/useBestTransactionPath.d.ts +2 -2
- package/dist/esm/global-account/react/hooks/useOnchainName.js +2 -2
- package/dist/esm/global-account/react/hooks/useTokenBalance.d.ts +2 -2
- package/dist/esm/global-account/react/hooks/useTokenFromUrl.d.ts +5 -5
- package/dist/esm/global-account/react/hooks/useTokenFromUrl.js +1 -1
- package/dist/esm/global-account/react/stores/useModalStore.d.ts +32 -9
- package/dist/esm/shared/constants/chains/supported.d.ts +2 -2
- package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +249 -249
- package/dist/esm/shared/utils/payment.utils.d.ts +3 -3
- package/dist/esm/shared/utils/payment.utils.js +6 -7
- package/dist/styles/index.css +1 -1
- package/dist/types/anyspend/abis/bondKit.d.ts +35 -0
- package/dist/types/anyspend/constants/index.d.ts +16 -5
- package/dist/types/anyspend/index.d.ts +2 -7
- package/dist/types/anyspend/index.native.d.ts +2 -3
- package/dist/types/anyspend/react/components/AnySpendBondKit.d.ts +2 -0
- package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +5 -4
- package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +2 -2
- package/dist/types/anyspend/react/components/AnySpendTournament.d.ts +5 -5
- package/dist/types/anyspend/react/components/AnyspendSignatureMint.d.ts +1 -1
- package/dist/types/anyspend/react/components/{AnySpendNFTButton.d.ts → common/AnySpendNFTButton.d.ts} +2 -2
- package/dist/types/anyspend/react/components/common/OrderDetails.d.ts +6 -6
- package/dist/types/anyspend/react/components/common/OrderHistoryItem.d.ts +2 -2
- package/dist/types/anyspend/react/components/common/OrderStatus.d.ts +2 -2
- package/dist/types/anyspend/react/components/common/OrderToken.d.ts +3 -3
- package/dist/types/anyspend/react/components/common/OrderTokenAmount.d.ts +3 -3
- package/dist/types/anyspend/react/components/common/PanelOnrampPayment.d.ts +6 -5
- package/dist/types/anyspend/react/components/common/PaymentOneClick.d.ts +2 -2
- package/dist/types/anyspend/react/components/common/PaymentStripeWeb2.d.ts +2 -2
- package/dist/types/anyspend/react/components/common/PaymentVendorUI.d.ts +2 -2
- package/dist/types/anyspend/react/components/common/TokenBalance.d.ts +2 -2
- package/dist/types/anyspend/react/components/index.d.ts +2 -1
- package/dist/types/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +2 -2
- package/dist/types/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +3 -2
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +2 -2
- package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +6 -6
- package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +12 -644
- package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +72 -434
- package/dist/types/anyspend/react/hooks/useAnyspendQuote.d.ts +7 -15
- package/dist/types/anyspend/react/hooks/useAnyspendTokens.d.ts +4 -4
- package/dist/types/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +38 -27
- package/dist/types/anyspend/react/hooks/useGeoOnrampOptions.d.ts +16 -13
- package/dist/types/anyspend/react/hooks/useSigMint.d.ts +7 -7
- package/dist/types/anyspend/services/anyspend.d.ts +10 -321
- package/dist/types/anyspend/types/api.d.ts +1731 -0
- package/dist/types/anyspend/types/api_req_res.d.ts +10 -0
- package/dist/types/anyspend/types/chain.d.ts +3 -3
- package/dist/types/anyspend/utils/chain.d.ts +4 -3
- package/dist/types/anyspend/utils/format.d.ts +2 -2
- package/dist/types/anyspend/utils/orderPayload.d.ts +29 -29
- package/dist/types/anyspend/utils/token.d.ts +6 -6
- package/dist/types/global-account/react/components/ui/TabSystem.d.ts +2 -2
- package/dist/types/global-account/react/components/ui/command.d.ts +1 -1
- package/dist/types/global-account/react/hooks/useBestTransactionPath.d.ts +2 -2
- package/dist/types/global-account/react/hooks/useTokenBalance.d.ts +2 -2
- package/dist/types/global-account/react/hooks/useTokenFromUrl.d.ts +5 -5
- package/dist/types/global-account/react/stores/useModalStore.d.ts +32 -9
- package/dist/types/shared/constants/chains/supported.d.ts +2 -2
- package/dist/types/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +249 -249
- package/dist/types/shared/utils/payment.utils.d.ts +3 -3
- package/package.json +3 -1
- package/src/anyspend/README.md +33 -32
- package/src/anyspend/abis/bondKit.ts +26 -0
- package/src/anyspend/constants/index.ts +7 -7
- package/src/anyspend/index.native.ts +2 -5
- package/src/anyspend/index.ts +2 -9
- package/src/anyspend/react/components/AnySpend.tsx +19 -17
- package/src/anyspend/react/components/AnySpendBondKit.tsx +378 -0
- package/src/anyspend/react/components/AnySpendBuySpin.tsx +4 -12
- package/src/anyspend/react/components/AnySpendCustom.tsx +100 -112
- package/src/anyspend/react/components/AnySpendNFT.tsx +7 -6
- package/src/anyspend/react/components/AnySpendStakeB3.tsx +3 -3
- package/src/anyspend/react/components/AnySpendTournament.tsx +8 -7
- package/src/anyspend/react/components/AnyspendSignatureMint.tsx +22 -13
- package/src/anyspend/react/components/{AnySpendNFTButton.tsx → common/AnySpendNFTButton.tsx} +2 -2
- package/src/anyspend/react/components/common/OrderDetails.tsx +58 -70
- package/src/anyspend/react/components/common/OrderHistoryItem.tsx +13 -14
- package/src/anyspend/react/components/common/OrderStatus.tsx +4 -3
- package/src/anyspend/react/components/common/OrderToken.tsx +4 -3
- package/src/anyspend/react/components/common/OrderTokenAmount.tsx +4 -3
- package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +19 -15
- package/src/anyspend/react/components/common/PaymentOneClick.tsx +2 -2
- package/src/anyspend/react/components/common/PaymentStripeWeb2.tsx +4 -3
- package/src/anyspend/react/components/common/PaymentVendorUI.tsx +3 -3
- package/src/anyspend/react/components/common/TokenBalance.tsx +2 -2
- package/src/anyspend/react/components/index.ts +2 -1
- package/src/anyspend/react/components/webview/WebviewOnrampOrderStatus.tsx +12 -11
- package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +15 -16
- package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +2 -2
- package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +6 -6
- package/src/anyspend/react/hooks/useAnyspendOrderAndTransactions.ts +27 -5
- package/src/anyspend/react/hooks/useAnyspendOrderHistory.ts +10 -6
- package/src/anyspend/react/hooks/useAnyspendQuote.ts +15 -18
- package/src/anyspend/react/hooks/useCoinbaseOnrampOptions.ts +1 -1
- package/src/anyspend/react/hooks/useSigMint.tsx +1 -1
- package/src/anyspend/services/anyspend.ts +38 -30
- package/src/anyspend/types/api.ts +1756 -0
- package/src/anyspend/types/api_req_res.ts +16 -0
- package/src/anyspend/types/chain.ts +3 -3
- package/src/anyspend/utils/chain.ts +4 -3
- package/src/anyspend/utils/format.ts +17 -15
- package/src/anyspend/utils/orderPayload.ts +20 -20
- package/src/anyspend/utils/token.ts +6 -6
- package/src/global-account/react/components/B3DynamicModal.tsx +6 -1
- package/src/global-account/react/components/SignInWithB3/SignIn.tsx +1 -1
- package/src/global-account/react/components/StyleRoot.tsx +1 -0
- package/src/global-account/react/components/ui/TabSystem.tsx +36 -33
- package/src/global-account/react/hooks/useAccountWallet.tsx +1 -1
- package/src/global-account/react/hooks/useBestTransactionPath.tsx +3 -2
- package/src/global-account/react/hooks/useOnchainName.tsx +2 -2
- package/src/global-account/react/hooks/useTokenBalance.tsx +3 -2
- package/src/global-account/react/hooks/useTokenFromUrl.tsx +10 -4
- package/src/global-account/react/stores/useModalStore.ts +34 -9
- package/src/shared/utils/payment.utils.ts +9 -9
- package/dist/cjs/anyspend/types/custom.d.ts +0 -130
- package/dist/cjs/anyspend/types/custom.js +0 -19
- package/dist/cjs/anyspend/types/globalWallet.d.ts +0 -18
- package/dist/cjs/anyspend/types/globalWallet.js +0 -10
- package/dist/cjs/anyspend/types/index.d.ts +0 -13
- package/dist/cjs/anyspend/types/index.js +0 -29
- package/dist/cjs/anyspend/types/metadata.d.ts +0 -26
- package/dist/cjs/anyspend/types/metadata.js +0 -16
- package/dist/cjs/anyspend/types/nft.d.ts +0 -274
- package/dist/cjs/anyspend/types/nft.js +0 -38
- package/dist/cjs/anyspend/types/onramp.d.ts +0 -28
- package/dist/cjs/anyspend/types/onramp.js +0 -18
- package/dist/cjs/anyspend/types/order.d.ts +0 -1629
- package/dist/cjs/anyspend/types/order.js +0 -81
- package/dist/cjs/anyspend/types/relay.d.ts +0 -10
- package/dist/cjs/anyspend/types/relay.js +0 -12
- package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +0 -4026
- package/dist/cjs/anyspend/types/req-res/createOrder.js +0 -61
- package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +0 -120
- package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.js +0 -31
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -2922
- package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.js +0 -23
- package/dist/cjs/anyspend/types/req-res/getOrderByCreator.d.ts +0 -28
- package/dist/cjs/anyspend/types/req-res/getOrderByCreator.js +0 -11
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +0 -2117
- package/dist/cjs/anyspend/types/req-res/getOrderHistory.js +0 -11
- package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +0 -290
- package/dist/cjs/anyspend/types/req-res/getQuote.js +0 -51
- package/dist/cjs/anyspend/types/req-res/getTokenList.d.ts +0 -63
- package/dist/cjs/anyspend/types/req-res/getTokenList.js +0 -18
- package/dist/cjs/anyspend/types/req-res/index.d.ts +0 -7
- package/dist/cjs/anyspend/types/req-res/index.js +0 -23
- package/dist/cjs/anyspend/types/req-res/stripe.d.ts +0 -0
- package/dist/cjs/anyspend/types/req-res/stripe.js +0 -1
- package/dist/cjs/anyspend/types/swap.d.ts +0 -119
- package/dist/cjs/anyspend/types/swap.js +0 -13
- package/dist/cjs/anyspend/types/token.d.ts +0 -34
- package/dist/cjs/anyspend/types/token.js +0 -14
- package/dist/cjs/anyspend/types/tournament.d.ts +0 -174
- package/dist/cjs/anyspend/types/tournament.js +0 -24
- package/dist/cjs/anyspend/types/transaction.d.ts +0 -84
- package/dist/cjs/anyspend/types/transaction.js +0 -34
- package/dist/esm/anyspend/types/custom.d.ts +0 -130
- package/dist/esm/anyspend/types/custom.js +0 -13
- package/dist/esm/anyspend/types/globalWallet.d.ts +0 -18
- package/dist/esm/anyspend/types/globalWallet.js +0 -7
- package/dist/esm/anyspend/types/index.d.ts +0 -13
- package/dist/esm/anyspend/types/index.js +0 -13
- package/dist/esm/anyspend/types/metadata.d.ts +0 -26
- package/dist/esm/anyspend/types/metadata.js +0 -11
- package/dist/esm/anyspend/types/nft.d.ts +0 -274
- package/dist/esm/anyspend/types/nft.js +0 -35
- package/dist/esm/anyspend/types/onramp.d.ts +0 -28
- package/dist/esm/anyspend/types/onramp.js +0 -15
- package/dist/esm/anyspend/types/order.d.ts +0 -1629
- package/dist/esm/anyspend/types/order.js +0 -78
- package/dist/esm/anyspend/types/relay.d.ts +0 -10
- package/dist/esm/anyspend/types/relay.js +0 -9
- package/dist/esm/anyspend/types/req-res/createOrder.d.ts +0 -4026
- package/dist/esm/anyspend/types/req-res/createOrder.js +0 -58
- package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +0 -120
- package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.js +0 -28
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -2922
- package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.js +0 -20
- package/dist/esm/anyspend/types/req-res/getOrderByCreator.d.ts +0 -28
- package/dist/esm/anyspend/types/req-res/getOrderByCreator.js +0 -8
- package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +0 -2117
- package/dist/esm/anyspend/types/req-res/getOrderHistory.js +0 -8
- package/dist/esm/anyspend/types/req-res/getQuote.d.ts +0 -290
- package/dist/esm/anyspend/types/req-res/getQuote.js +0 -48
- package/dist/esm/anyspend/types/req-res/getTokenList.d.ts +0 -63
- package/dist/esm/anyspend/types/req-res/getTokenList.js +0 -15
- package/dist/esm/anyspend/types/req-res/index.d.ts +0 -7
- package/dist/esm/anyspend/types/req-res/index.js +0 -7
- package/dist/esm/anyspend/types/req-res/stripe.d.ts +0 -0
- package/dist/esm/anyspend/types/req-res/stripe.js +0 -1
- package/dist/esm/anyspend/types/swap.d.ts +0 -119
- package/dist/esm/anyspend/types/swap.js +0 -10
- package/dist/esm/anyspend/types/token.d.ts +0 -34
- package/dist/esm/anyspend/types/token.js +0 -11
- package/dist/esm/anyspend/types/tournament.d.ts +0 -174
- package/dist/esm/anyspend/types/tournament.js +0 -21
- package/dist/esm/anyspend/types/transaction.d.ts +0 -84
- package/dist/esm/anyspend/types/transaction.js +0 -31
- package/dist/types/anyspend/types/custom.d.ts +0 -130
- package/dist/types/anyspend/types/globalWallet.d.ts +0 -18
- package/dist/types/anyspend/types/index.d.ts +0 -13
- package/dist/types/anyspend/types/metadata.d.ts +0 -26
- package/dist/types/anyspend/types/nft.d.ts +0 -274
- package/dist/types/anyspend/types/onramp.d.ts +0 -28
- package/dist/types/anyspend/types/order.d.ts +0 -1629
- package/dist/types/anyspend/types/relay.d.ts +0 -10
- package/dist/types/anyspend/types/req-res/createOrder.d.ts +0 -4026
- package/dist/types/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +0 -120
- package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -2922
- package/dist/types/anyspend/types/req-res/getOrderByCreator.d.ts +0 -28
- package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +0 -2117
- package/dist/types/anyspend/types/req-res/getQuote.d.ts +0 -290
- package/dist/types/anyspend/types/req-res/getTokenList.d.ts +0 -63
- package/dist/types/anyspend/types/req-res/index.d.ts +0 -7
- package/dist/types/anyspend/types/req-res/stripe.d.ts +0 -0
- package/dist/types/anyspend/types/swap.d.ts +0 -119
- package/dist/types/anyspend/types/token.d.ts +0 -34
- package/dist/types/anyspend/types/tournament.d.ts +0 -174
- package/dist/types/anyspend/types/transaction.d.ts +0 -84
- package/src/anyspend/types/custom.ts +0 -17
- package/src/anyspend/types/globalWallet.ts +0 -9
- package/src/anyspend/types/index.ts +0 -14
- package/src/anyspend/types/metadata.ts +0 -41
- package/src/anyspend/types/nft.ts +0 -53
- package/src/anyspend/types/onramp.ts +0 -16
- package/src/anyspend/types/order.ts +0 -88
- package/src/anyspend/types/relay.ts +0 -13
- package/src/anyspend/types/req-res/createOrder.ts +0 -67
- package/src/anyspend/types/req-res/getCoinbaseOnrampOptions.ts +0 -34
- package/src/anyspend/types/req-res/getOrderAndTransactions.ts +0 -23
- package/src/anyspend/types/req-res/getOrderByCreator.ts +0 -9
- package/src/anyspend/types/req-res/getOrderHistory.ts +0 -9
- package/src/anyspend/types/req-res/getQuote.ts +0 -65
- package/src/anyspend/types/req-res/getTokenList.ts +0 -18
- package/src/anyspend/types/req-res/index.ts +0 -7
- package/src/anyspend/types/req-res/stripe.ts +0 -0
- package/src/anyspend/types/swap.ts +0 -12
- package/src/anyspend/types/token.ts +0 -13
- package/src/anyspend/types/tournament.ts +0 -26
- package/src/anyspend/types/transaction.ts +0 -39
- /package/dist/cjs/anyspend/abis/{abi-usdc-base.d.ts → abiUsdcBase.d.ts} +0 -0
- /package/dist/cjs/anyspend/abis/{abi-usdc-base.js → abiUsdcBase.js} +0 -0
- /package/dist/cjs/anyspend/abis/{erc20-staking.d.ts → erc20Staking.d.ts} +0 -0
- /package/dist/cjs/anyspend/abis/{erc20-staking.js → erc20Staking.js} +0 -0
- /package/dist/cjs/anyspend/abis/{signature-minting.d.ts → signatureMinting.d.ts} +0 -0
- /package/dist/cjs/anyspend/abis/{signature-minting.js → signatureMinting.js} +0 -0
- /package/dist/cjs/anyspend/types/{signature-mint.js → api_req_res.js} +0 -0
- /package/dist/cjs/anyspend/types/{signature-mint.d.ts → signatureMint.d.ts} +0 -0
- /package/dist/esm/anyspend/abis/{abi-usdc-base.d.ts → abiUsdcBase.d.ts} +0 -0
- /package/dist/esm/anyspend/abis/{abi-usdc-base.js → abiUsdcBase.js} +0 -0
- /package/dist/esm/anyspend/abis/{erc20-staking.d.ts → erc20Staking.d.ts} +0 -0
- /package/dist/esm/anyspend/abis/{erc20-staking.js → erc20Staking.js} +0 -0
- /package/dist/esm/anyspend/abis/{signature-minting.d.ts → signatureMinting.d.ts} +0 -0
- /package/dist/esm/anyspend/abis/{signature-minting.js → signatureMinting.js} +0 -0
- /package/dist/esm/anyspend/types/{signature-mint.js → api_req_res.js} +0 -0
- /package/dist/esm/anyspend/types/{signature-mint.d.ts → signatureMint.d.ts} +0 -0
- /package/dist/types/anyspend/abis/{abi-usdc-base.d.ts → abiUsdcBase.d.ts} +0 -0
- /package/dist/types/anyspend/abis/{erc20-staking.d.ts → erc20Staking.d.ts} +0 -0
- /package/dist/types/anyspend/abis/{signature-minting.d.ts → signatureMinting.d.ts} +0 -0
- /package/dist/types/anyspend/types/{signature-mint.d.ts → signatureMint.d.ts} +0 -0
- /package/src/anyspend/abis/{abi-usdc-base.ts → abiUsdcBase.ts} +0 -0
- /package/src/anyspend/abis/{erc20-staking.ts → erc20Staking.ts} +0 -0
- /package/src/anyspend/abis/{signature-minting.ts → signatureMinting.ts} +0 -0
- /package/src/anyspend/types/{signature-mint.ts → signatureMint.ts} +0 -0
|
@@ -1,29 +1,5 @@
|
|
|
1
1
|
export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddress: string | undefined, limit?: number, offset?: number): {
|
|
2
|
-
orderHistory: ({
|
|
3
|
-
type: import("../..").OrderType.Swap;
|
|
4
|
-
status: import("../..").OrderStatus;
|
|
5
|
-
metadata: {
|
|
6
|
-
srcToken: {
|
|
7
|
-
symbol: string;
|
|
8
|
-
chainId: number;
|
|
9
|
-
address: string;
|
|
10
|
-
name: string;
|
|
11
|
-
decimals: number;
|
|
12
|
-
metadata: {
|
|
13
|
-
logoURI?: string | undefined;
|
|
14
|
-
};
|
|
15
|
-
};
|
|
16
|
-
dstToken: {
|
|
17
|
-
symbol: string;
|
|
18
|
-
chainId: number;
|
|
19
|
-
address: string;
|
|
20
|
-
name: string;
|
|
21
|
-
decimals: number;
|
|
22
|
-
metadata: {
|
|
23
|
-
logoURI?: string | undefined;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
2
|
+
orderHistory: (({
|
|
27
3
|
id: string;
|
|
28
4
|
recipientAddress: string;
|
|
29
5
|
globalAddress: string;
|
|
@@ -32,64 +8,20 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
32
8
|
srcTokenAddress: string;
|
|
33
9
|
dstTokenAddress: string;
|
|
34
10
|
srcAmount: string;
|
|
11
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
|
|
35
12
|
errorDetails: string | null;
|
|
36
13
|
createdAt: number;
|
|
37
14
|
expiredAt: number;
|
|
38
|
-
onrampMetadata: {
|
|
39
|
-
country: string;
|
|
40
|
-
vendor: import("../..").OnrampVendor;
|
|
41
|
-
paymentMethod: string;
|
|
42
|
-
redirectUrl: string;
|
|
43
|
-
ipAddress?: string | undefined;
|
|
44
|
-
stripeAmountInCents?: number | undefined;
|
|
45
|
-
} | null;
|
|
46
15
|
creatorAddress: string | null;
|
|
47
16
|
partnerId: string | null;
|
|
17
|
+
onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
|
|
48
18
|
oneClickBuyUrl: string | null;
|
|
49
19
|
stripePaymentIntentId: string | null;
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} | {
|
|
55
|
-
type: import("../..").OrderType.MintNFT;
|
|
56
|
-
status: import("../..").OrderStatus;
|
|
57
|
-
metadata: {
|
|
58
|
-
srcToken: {
|
|
59
|
-
symbol: string;
|
|
60
|
-
chainId: number;
|
|
61
|
-
address: string;
|
|
62
|
-
name: string;
|
|
63
|
-
decimals: number;
|
|
64
|
-
metadata: {
|
|
65
|
-
logoURI?: string | undefined;
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
|
-
dstToken: {
|
|
69
|
-
symbol: string;
|
|
70
|
-
chainId: number;
|
|
71
|
-
address: string;
|
|
72
|
-
name: string;
|
|
73
|
-
decimals: number;
|
|
74
|
-
metadata: {
|
|
75
|
-
logoURI?: string | undefined;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
nft: {
|
|
79
|
-
name: string;
|
|
80
|
-
type: import("../..").NftType.ERC721;
|
|
81
|
-
contractAddress: string;
|
|
82
|
-
description: string;
|
|
83
|
-
imageUrl: string;
|
|
84
|
-
} | {
|
|
85
|
-
name: string;
|
|
86
|
-
type: import("../..").NftType.ERC1155;
|
|
87
|
-
contractAddress: string;
|
|
88
|
-
description: string;
|
|
89
|
-
imageUrl: string;
|
|
90
|
-
tokenId: number;
|
|
91
|
-
};
|
|
92
|
-
};
|
|
20
|
+
} & {
|
|
21
|
+
type: "swap";
|
|
22
|
+
payload: import("../../types/api").components["schemas"]["SwapPayload"];
|
|
23
|
+
metadata: import("../../types/api").components["schemas"]["SwapMetadata"];
|
|
24
|
+
}) | ({
|
|
93
25
|
id: string;
|
|
94
26
|
recipientAddress: string;
|
|
95
27
|
globalAddress: string;
|
|
@@ -98,58 +30,20 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
98
30
|
srcTokenAddress: string;
|
|
99
31
|
dstTokenAddress: string;
|
|
100
32
|
srcAmount: string;
|
|
33
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
|
|
101
34
|
errorDetails: string | null;
|
|
102
35
|
createdAt: number;
|
|
103
36
|
expiredAt: number;
|
|
104
|
-
onrampMetadata: {
|
|
105
|
-
country: string;
|
|
106
|
-
vendor: import("../..").OnrampVendor;
|
|
107
|
-
paymentMethod: string;
|
|
108
|
-
redirectUrl: string;
|
|
109
|
-
ipAddress?: string | undefined;
|
|
110
|
-
stripeAmountInCents?: number | undefined;
|
|
111
|
-
} | null;
|
|
112
37
|
creatorAddress: string | null;
|
|
113
38
|
partnerId: string | null;
|
|
39
|
+
onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
|
|
114
40
|
oneClickBuyUrl: string | null;
|
|
115
41
|
stripePaymentIntentId: string | null;
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
};
|
|
122
|
-
} | {
|
|
123
|
-
type: import("../..").OrderType.JoinTournament;
|
|
124
|
-
status: import("../..").OrderStatus;
|
|
125
|
-
metadata: {
|
|
126
|
-
srcToken: {
|
|
127
|
-
symbol: string;
|
|
128
|
-
chainId: number;
|
|
129
|
-
address: string;
|
|
130
|
-
name: string;
|
|
131
|
-
decimals: number;
|
|
132
|
-
metadata: {
|
|
133
|
-
logoURI?: string | undefined;
|
|
134
|
-
};
|
|
135
|
-
};
|
|
136
|
-
dstToken: {
|
|
137
|
-
symbol: string;
|
|
138
|
-
chainId: number;
|
|
139
|
-
address: string;
|
|
140
|
-
name: string;
|
|
141
|
-
decimals: number;
|
|
142
|
-
metadata: {
|
|
143
|
-
logoURI?: string | undefined;
|
|
144
|
-
};
|
|
145
|
-
};
|
|
146
|
-
tournament: {
|
|
147
|
-
name: string;
|
|
148
|
-
description: string;
|
|
149
|
-
imageUrl: string;
|
|
150
|
-
slug: string;
|
|
151
|
-
};
|
|
152
|
-
};
|
|
42
|
+
} & {
|
|
43
|
+
type: "custom";
|
|
44
|
+
payload: import("../../types/api").components["schemas"]["CustomPayload"];
|
|
45
|
+
metadata: import("../../types/api").components["schemas"]["CustomMetadata"];
|
|
46
|
+
}) | ({
|
|
153
47
|
id: string;
|
|
154
48
|
recipientAddress: string;
|
|
155
49
|
globalAddress: string;
|
|
@@ -158,56 +52,20 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
158
52
|
srcTokenAddress: string;
|
|
159
53
|
dstTokenAddress: string;
|
|
160
54
|
srcAmount: string;
|
|
55
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
|
|
161
56
|
errorDetails: string | null;
|
|
162
57
|
createdAt: number;
|
|
163
58
|
expiredAt: number;
|
|
164
|
-
onrampMetadata: {
|
|
165
|
-
country: string;
|
|
166
|
-
vendor: import("../..").OnrampVendor;
|
|
167
|
-
paymentMethod: string;
|
|
168
|
-
redirectUrl: string;
|
|
169
|
-
ipAddress?: string | undefined;
|
|
170
|
-
stripeAmountInCents?: number | undefined;
|
|
171
|
-
} | null;
|
|
172
59
|
creatorAddress: string | null;
|
|
173
60
|
partnerId: string | null;
|
|
61
|
+
onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
|
|
174
62
|
oneClickBuyUrl: string | null;
|
|
175
63
|
stripePaymentIntentId: string | null;
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
} | {
|
|
181
|
-
type: import("../..").OrderType.FundTournament;
|
|
182
|
-
status: import("../..").OrderStatus;
|
|
183
|
-
metadata: {
|
|
184
|
-
srcToken: {
|
|
185
|
-
symbol: string;
|
|
186
|
-
chainId: number;
|
|
187
|
-
address: string;
|
|
188
|
-
name: string;
|
|
189
|
-
decimals: number;
|
|
190
|
-
metadata: {
|
|
191
|
-
logoURI?: string | undefined;
|
|
192
|
-
};
|
|
193
|
-
};
|
|
194
|
-
dstToken: {
|
|
195
|
-
symbol: string;
|
|
196
|
-
chainId: number;
|
|
197
|
-
address: string;
|
|
198
|
-
name: string;
|
|
199
|
-
decimals: number;
|
|
200
|
-
metadata: {
|
|
201
|
-
logoURI?: string | undefined;
|
|
202
|
-
};
|
|
203
|
-
};
|
|
204
|
-
tournament: {
|
|
205
|
-
name: string;
|
|
206
|
-
description: string;
|
|
207
|
-
imageUrl: string;
|
|
208
|
-
slug: string;
|
|
209
|
-
};
|
|
210
|
-
};
|
|
64
|
+
} & {
|
|
65
|
+
type: "mint_nft";
|
|
66
|
+
payload: import("../../types/api").components["schemas"]["MintNftPayload"];
|
|
67
|
+
metadata: import("../../types/api").components["schemas"]["MintNftMetadata"];
|
|
68
|
+
}) | ({
|
|
211
69
|
id: string;
|
|
212
70
|
recipientAddress: string;
|
|
213
71
|
globalAddress: string;
|
|
@@ -216,51 +74,20 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
216
74
|
srcTokenAddress: string;
|
|
217
75
|
dstTokenAddress: string;
|
|
218
76
|
srcAmount: string;
|
|
77
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
|
|
219
78
|
errorDetails: string | null;
|
|
220
79
|
createdAt: number;
|
|
221
80
|
expiredAt: number;
|
|
222
|
-
onrampMetadata: {
|
|
223
|
-
country: string;
|
|
224
|
-
vendor: import("../..").OnrampVendor;
|
|
225
|
-
paymentMethod: string;
|
|
226
|
-
redirectUrl: string;
|
|
227
|
-
ipAddress?: string | undefined;
|
|
228
|
-
stripeAmountInCents?: number | undefined;
|
|
229
|
-
} | null;
|
|
230
81
|
creatorAddress: string | null;
|
|
231
82
|
partnerId: string | null;
|
|
83
|
+
onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
|
|
232
84
|
oneClickBuyUrl: string | null;
|
|
233
85
|
stripePaymentIntentId: string | null;
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
} | {
|
|
239
|
-
type: import("../..").OrderType.Custom;
|
|
240
|
-
status: import("../..").OrderStatus;
|
|
241
|
-
metadata: {
|
|
242
|
-
srcToken: {
|
|
243
|
-
symbol: string;
|
|
244
|
-
chainId: number;
|
|
245
|
-
address: string;
|
|
246
|
-
name: string;
|
|
247
|
-
decimals: number;
|
|
248
|
-
metadata: {
|
|
249
|
-
logoURI?: string | undefined;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
dstToken: {
|
|
253
|
-
symbol: string;
|
|
254
|
-
chainId: number;
|
|
255
|
-
address: string;
|
|
256
|
-
name: string;
|
|
257
|
-
decimals: number;
|
|
258
|
-
metadata: {
|
|
259
|
-
logoURI?: string | undefined;
|
|
260
|
-
};
|
|
261
|
-
};
|
|
262
|
-
action?: string | undefined;
|
|
263
|
-
};
|
|
86
|
+
} & {
|
|
87
|
+
type: "join_tournament";
|
|
88
|
+
payload: import("../../types/api").components["schemas"]["JoinTournamentPayload"];
|
|
89
|
+
metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
|
|
90
|
+
}) | ({
|
|
264
91
|
id: string;
|
|
265
92
|
recipientAddress: string;
|
|
266
93
|
globalAddress: string;
|
|
@@ -269,55 +96,23 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
269
96
|
srcTokenAddress: string;
|
|
270
97
|
dstTokenAddress: string;
|
|
271
98
|
srcAmount: string;
|
|
99
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
|
|
272
100
|
errorDetails: string | null;
|
|
273
101
|
createdAt: number;
|
|
274
102
|
expiredAt: number;
|
|
275
|
-
onrampMetadata: {
|
|
276
|
-
country: string;
|
|
277
|
-
vendor: import("../..").OnrampVendor;
|
|
278
|
-
paymentMethod: string;
|
|
279
|
-
redirectUrl: string;
|
|
280
|
-
ipAddress?: string | undefined;
|
|
281
|
-
stripeAmountInCents?: number | undefined;
|
|
282
|
-
} | null;
|
|
283
103
|
creatorAddress: string | null;
|
|
284
104
|
partnerId: string | null;
|
|
105
|
+
onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
|
|
285
106
|
oneClickBuyUrl: string | null;
|
|
286
107
|
stripePaymentIntentId: string | null;
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
};
|
|
293
|
-
})[];
|
|
108
|
+
} & {
|
|
109
|
+
type: "fund_tournament";
|
|
110
|
+
payload: import("../../types/api").components["schemas"]["FundTournamentPayload"];
|
|
111
|
+
metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
|
|
112
|
+
}))[];
|
|
294
113
|
isLoadingOrderHistory: boolean;
|
|
295
114
|
getOrderHistoryError: Error | null;
|
|
296
|
-
refetchOrderHistory: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<({
|
|
297
|
-
type: import("../..").OrderType.Swap;
|
|
298
|
-
status: import("../..").OrderStatus;
|
|
299
|
-
metadata: {
|
|
300
|
-
srcToken: {
|
|
301
|
-
symbol: string;
|
|
302
|
-
chainId: number;
|
|
303
|
-
address: string;
|
|
304
|
-
name: string;
|
|
305
|
-
decimals: number;
|
|
306
|
-
metadata: {
|
|
307
|
-
logoURI?: string | undefined;
|
|
308
|
-
};
|
|
309
|
-
};
|
|
310
|
-
dstToken: {
|
|
311
|
-
symbol: string;
|
|
312
|
-
chainId: number;
|
|
313
|
-
address: string;
|
|
314
|
-
name: string;
|
|
315
|
-
decimals: number;
|
|
316
|
-
metadata: {
|
|
317
|
-
logoURI?: string | undefined;
|
|
318
|
-
};
|
|
319
|
-
};
|
|
320
|
-
};
|
|
115
|
+
refetchOrderHistory: (options?: import("@tanstack/react-query").RefetchOptions) => Promise<import("@tanstack/react-query").QueryObserverResult<(({
|
|
321
116
|
id: string;
|
|
322
117
|
recipientAddress: string;
|
|
323
118
|
globalAddress: string;
|
|
@@ -326,64 +121,20 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
326
121
|
srcTokenAddress: string;
|
|
327
122
|
dstTokenAddress: string;
|
|
328
123
|
srcAmount: string;
|
|
124
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
|
|
329
125
|
errorDetails: string | null;
|
|
330
126
|
createdAt: number;
|
|
331
127
|
expiredAt: number;
|
|
332
|
-
onrampMetadata: {
|
|
333
|
-
country: string;
|
|
334
|
-
vendor: import("../..").OnrampVendor;
|
|
335
|
-
paymentMethod: string;
|
|
336
|
-
redirectUrl: string;
|
|
337
|
-
ipAddress?: string | undefined;
|
|
338
|
-
stripeAmountInCents?: number | undefined;
|
|
339
|
-
} | null;
|
|
340
128
|
creatorAddress: string | null;
|
|
341
129
|
partnerId: string | null;
|
|
130
|
+
onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
|
|
342
131
|
oneClickBuyUrl: string | null;
|
|
343
132
|
stripePaymentIntentId: string | null;
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
} | {
|
|
349
|
-
type: import("../..").OrderType.MintNFT;
|
|
350
|
-
status: import("../..").OrderStatus;
|
|
351
|
-
metadata: {
|
|
352
|
-
srcToken: {
|
|
353
|
-
symbol: string;
|
|
354
|
-
chainId: number;
|
|
355
|
-
address: string;
|
|
356
|
-
name: string;
|
|
357
|
-
decimals: number;
|
|
358
|
-
metadata: {
|
|
359
|
-
logoURI?: string | undefined;
|
|
360
|
-
};
|
|
361
|
-
};
|
|
362
|
-
dstToken: {
|
|
363
|
-
symbol: string;
|
|
364
|
-
chainId: number;
|
|
365
|
-
address: string;
|
|
366
|
-
name: string;
|
|
367
|
-
decimals: number;
|
|
368
|
-
metadata: {
|
|
369
|
-
logoURI?: string | undefined;
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
|
-
nft: {
|
|
373
|
-
name: string;
|
|
374
|
-
type: import("../..").NftType.ERC721;
|
|
375
|
-
contractAddress: string;
|
|
376
|
-
description: string;
|
|
377
|
-
imageUrl: string;
|
|
378
|
-
} | {
|
|
379
|
-
name: string;
|
|
380
|
-
type: import("../..").NftType.ERC1155;
|
|
381
|
-
contractAddress: string;
|
|
382
|
-
description: string;
|
|
383
|
-
imageUrl: string;
|
|
384
|
-
tokenId: number;
|
|
385
|
-
};
|
|
386
|
-
};
|
|
133
|
+
} & {
|
|
134
|
+
type: "swap";
|
|
135
|
+
payload: import("../../types/api").components["schemas"]["SwapPayload"];
|
|
136
|
+
metadata: import("../../types/api").components["schemas"]["SwapMetadata"];
|
|
137
|
+
}) | ({
|
|
387
138
|
id: string;
|
|
388
139
|
recipientAddress: string;
|
|
389
140
|
globalAddress: string;
|
|
@@ -392,58 +143,20 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
392
143
|
srcTokenAddress: string;
|
|
393
144
|
dstTokenAddress: string;
|
|
394
145
|
srcAmount: string;
|
|
146
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
|
|
395
147
|
errorDetails: string | null;
|
|
396
148
|
createdAt: number;
|
|
397
149
|
expiredAt: number;
|
|
398
|
-
onrampMetadata: {
|
|
399
|
-
country: string;
|
|
400
|
-
vendor: import("../..").OnrampVendor;
|
|
401
|
-
paymentMethod: string;
|
|
402
|
-
redirectUrl: string;
|
|
403
|
-
ipAddress?: string | undefined;
|
|
404
|
-
stripeAmountInCents?: number | undefined;
|
|
405
|
-
} | null;
|
|
406
150
|
creatorAddress: string | null;
|
|
407
151
|
partnerId: string | null;
|
|
152
|
+
onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
|
|
408
153
|
oneClickBuyUrl: string | null;
|
|
409
154
|
stripePaymentIntentId: string | null;
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
};
|
|
416
|
-
} | {
|
|
417
|
-
type: import("../..").OrderType.JoinTournament;
|
|
418
|
-
status: import("../..").OrderStatus;
|
|
419
|
-
metadata: {
|
|
420
|
-
srcToken: {
|
|
421
|
-
symbol: string;
|
|
422
|
-
chainId: number;
|
|
423
|
-
address: string;
|
|
424
|
-
name: string;
|
|
425
|
-
decimals: number;
|
|
426
|
-
metadata: {
|
|
427
|
-
logoURI?: string | undefined;
|
|
428
|
-
};
|
|
429
|
-
};
|
|
430
|
-
dstToken: {
|
|
431
|
-
symbol: string;
|
|
432
|
-
chainId: number;
|
|
433
|
-
address: string;
|
|
434
|
-
name: string;
|
|
435
|
-
decimals: number;
|
|
436
|
-
metadata: {
|
|
437
|
-
logoURI?: string | undefined;
|
|
438
|
-
};
|
|
439
|
-
};
|
|
440
|
-
tournament: {
|
|
441
|
-
name: string;
|
|
442
|
-
description: string;
|
|
443
|
-
imageUrl: string;
|
|
444
|
-
slug: string;
|
|
445
|
-
};
|
|
446
|
-
};
|
|
155
|
+
} & {
|
|
156
|
+
type: "custom";
|
|
157
|
+
payload: import("../../types/api").components["schemas"]["CustomPayload"];
|
|
158
|
+
metadata: import("../../types/api").components["schemas"]["CustomMetadata"];
|
|
159
|
+
}) | ({
|
|
447
160
|
id: string;
|
|
448
161
|
recipientAddress: string;
|
|
449
162
|
globalAddress: string;
|
|
@@ -452,56 +165,20 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
452
165
|
srcTokenAddress: string;
|
|
453
166
|
dstTokenAddress: string;
|
|
454
167
|
srcAmount: string;
|
|
168
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
|
|
455
169
|
errorDetails: string | null;
|
|
456
170
|
createdAt: number;
|
|
457
171
|
expiredAt: number;
|
|
458
|
-
onrampMetadata: {
|
|
459
|
-
country: string;
|
|
460
|
-
vendor: import("../..").OnrampVendor;
|
|
461
|
-
paymentMethod: string;
|
|
462
|
-
redirectUrl: string;
|
|
463
|
-
ipAddress?: string | undefined;
|
|
464
|
-
stripeAmountInCents?: number | undefined;
|
|
465
|
-
} | null;
|
|
466
172
|
creatorAddress: string | null;
|
|
467
173
|
partnerId: string | null;
|
|
174
|
+
onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
|
|
468
175
|
oneClickBuyUrl: string | null;
|
|
469
176
|
stripePaymentIntentId: string | null;
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
} | {
|
|
475
|
-
type: import("../..").OrderType.FundTournament;
|
|
476
|
-
status: import("../..").OrderStatus;
|
|
477
|
-
metadata: {
|
|
478
|
-
srcToken: {
|
|
479
|
-
symbol: string;
|
|
480
|
-
chainId: number;
|
|
481
|
-
address: string;
|
|
482
|
-
name: string;
|
|
483
|
-
decimals: number;
|
|
484
|
-
metadata: {
|
|
485
|
-
logoURI?: string | undefined;
|
|
486
|
-
};
|
|
487
|
-
};
|
|
488
|
-
dstToken: {
|
|
489
|
-
symbol: string;
|
|
490
|
-
chainId: number;
|
|
491
|
-
address: string;
|
|
492
|
-
name: string;
|
|
493
|
-
decimals: number;
|
|
494
|
-
metadata: {
|
|
495
|
-
logoURI?: string | undefined;
|
|
496
|
-
};
|
|
497
|
-
};
|
|
498
|
-
tournament: {
|
|
499
|
-
name: string;
|
|
500
|
-
description: string;
|
|
501
|
-
imageUrl: string;
|
|
502
|
-
slug: string;
|
|
503
|
-
};
|
|
504
|
-
};
|
|
177
|
+
} & {
|
|
178
|
+
type: "mint_nft";
|
|
179
|
+
payload: import("../../types/api").components["schemas"]["MintNftPayload"];
|
|
180
|
+
metadata: import("../../types/api").components["schemas"]["MintNftMetadata"];
|
|
181
|
+
}) | ({
|
|
505
182
|
id: string;
|
|
506
183
|
recipientAddress: string;
|
|
507
184
|
globalAddress: string;
|
|
@@ -510,51 +187,20 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
510
187
|
srcTokenAddress: string;
|
|
511
188
|
dstTokenAddress: string;
|
|
512
189
|
srcAmount: string;
|
|
190
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
|
|
513
191
|
errorDetails: string | null;
|
|
514
192
|
createdAt: number;
|
|
515
193
|
expiredAt: number;
|
|
516
|
-
onrampMetadata: {
|
|
517
|
-
country: string;
|
|
518
|
-
vendor: import("../..").OnrampVendor;
|
|
519
|
-
paymentMethod: string;
|
|
520
|
-
redirectUrl: string;
|
|
521
|
-
ipAddress?: string | undefined;
|
|
522
|
-
stripeAmountInCents?: number | undefined;
|
|
523
|
-
} | null;
|
|
524
194
|
creatorAddress: string | null;
|
|
525
195
|
partnerId: string | null;
|
|
196
|
+
onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
|
|
526
197
|
oneClickBuyUrl: string | null;
|
|
527
198
|
stripePaymentIntentId: string | null;
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
} | {
|
|
533
|
-
type: import("../..").OrderType.Custom;
|
|
534
|
-
status: import("../..").OrderStatus;
|
|
535
|
-
metadata: {
|
|
536
|
-
srcToken: {
|
|
537
|
-
symbol: string;
|
|
538
|
-
chainId: number;
|
|
539
|
-
address: string;
|
|
540
|
-
name: string;
|
|
541
|
-
decimals: number;
|
|
542
|
-
metadata: {
|
|
543
|
-
logoURI?: string | undefined;
|
|
544
|
-
};
|
|
545
|
-
};
|
|
546
|
-
dstToken: {
|
|
547
|
-
symbol: string;
|
|
548
|
-
chainId: number;
|
|
549
|
-
address: string;
|
|
550
|
-
name: string;
|
|
551
|
-
decimals: number;
|
|
552
|
-
metadata: {
|
|
553
|
-
logoURI?: string | undefined;
|
|
554
|
-
};
|
|
555
|
-
};
|
|
556
|
-
action?: string | undefined;
|
|
557
|
-
};
|
|
199
|
+
} & {
|
|
200
|
+
type: "join_tournament";
|
|
201
|
+
payload: import("../../types/api").components["schemas"]["JoinTournamentPayload"];
|
|
202
|
+
metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
|
|
203
|
+
}) | ({
|
|
558
204
|
id: string;
|
|
559
205
|
recipientAddress: string;
|
|
560
206
|
globalAddress: string;
|
|
@@ -563,26 +209,18 @@ export declare function useAnyspendOrderHistory(isMainnet: boolean, creatorAddre
|
|
|
563
209
|
srcTokenAddress: string;
|
|
564
210
|
dstTokenAddress: string;
|
|
565
211
|
srcAmount: string;
|
|
212
|
+
status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
|
|
566
213
|
errorDetails: string | null;
|
|
567
214
|
createdAt: number;
|
|
568
215
|
expiredAt: number;
|
|
569
|
-
onrampMetadata: {
|
|
570
|
-
country: string;
|
|
571
|
-
vendor: import("../..").OnrampVendor;
|
|
572
|
-
paymentMethod: string;
|
|
573
|
-
redirectUrl: string;
|
|
574
|
-
ipAddress?: string | undefined;
|
|
575
|
-
stripeAmountInCents?: number | undefined;
|
|
576
|
-
} | null;
|
|
577
216
|
creatorAddress: string | null;
|
|
578
217
|
partnerId: string | null;
|
|
218
|
+
onrampMetadata: import("../../types/api").components["schemas"]["OnrampMetadata"] | null;
|
|
579
219
|
oneClickBuyUrl: string | null;
|
|
580
220
|
stripePaymentIntentId: string | null;
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
};
|
|
587
|
-
})[], Error>>;
|
|
221
|
+
} & {
|
|
222
|
+
type: "fund_tournament";
|
|
223
|
+
payload: import("../../types/api").components["schemas"]["FundTournamentPayload"];
|
|
224
|
+
metadata: import("../../types/api").components["schemas"]["TournamentMetadata"];
|
|
225
|
+
}))[], Error>>;
|
|
588
226
|
};
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.useAnyspendOrderHistory = useAnyspendOrderHistory;
|
|
4
4
|
const anyspend_1 = require("../../../anyspend/services/anyspend");
|
|
5
5
|
const react_query_1 = require("@tanstack/react-query");
|
|
6
|
+
const react_1 = require("react");
|
|
6
7
|
function useAnyspendOrderHistory(isMainnet, creatorAddress, limit = 100, offset = 0) {
|
|
7
8
|
const { data: rawData = [], isLoading, refetch, error, } = (0, react_query_1.useQuery)({
|
|
8
9
|
queryKey: ["getOrderHistory", creatorAddress, limit, offset],
|
|
@@ -11,10 +12,10 @@ function useAnyspendOrderHistory(isMainnet, creatorAddress, limit = 100, offset
|
|
|
11
12
|
return response.data;
|
|
12
13
|
},
|
|
13
14
|
});
|
|
14
|
-
return {
|
|
15
|
+
return (0, react_1.useMemo)(() => ({
|
|
15
16
|
orderHistory: rawData,
|
|
16
17
|
isLoadingOrderHistory: isLoading,
|
|
17
18
|
getOrderHistoryError: error,
|
|
18
19
|
refetchOrderHistory: refetch,
|
|
19
|
-
};
|
|
20
|
+
}), [error, isLoading, rawData, refetch]);
|
|
20
21
|
}
|