@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,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zGetOrderHistoryResponse = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const order_1 = require("../order");
|
|
6
|
-
exports.zGetOrderHistoryResponse = zod_1.z.object({
|
|
7
|
-
success: zod_1.z.boolean(),
|
|
8
|
-
message: zod_1.z.string(),
|
|
9
|
-
data: zod_1.z.array(order_1.zOrder),
|
|
10
|
-
statusCode: zod_1.z.number(),
|
|
11
|
-
});
|
|
@@ -1,290 +0,0 @@
|
|
|
1
|
-
import { QuoteDetails } from "@reservoir0x/relay-sdk";
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
import { NftType } from "../nft";
|
|
4
|
-
import { OrderType } from "../order";
|
|
5
|
-
import { TradeType } from "../relay";
|
|
6
|
-
import { OnrampVendor } from "../onramp";
|
|
7
|
-
export declare const zGetQuoteRequest: z.ZodObject<{
|
|
8
|
-
body: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
9
|
-
srcChain: z.ZodNumber;
|
|
10
|
-
dstChain: z.ZodNumber;
|
|
11
|
-
srcTokenAddress: z.ZodString;
|
|
12
|
-
dstTokenAddress: z.ZodString;
|
|
13
|
-
onrampVendor: z.ZodOptional<z.ZodNativeEnum<typeof OnrampVendor>>;
|
|
14
|
-
} & {
|
|
15
|
-
type: z.ZodLiteral<OrderType.Swap>;
|
|
16
|
-
tradeType: z.ZodNativeEnum<typeof TradeType>;
|
|
17
|
-
amount: z.ZodString;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
type: OrderType.Swap;
|
|
20
|
-
amount: string;
|
|
21
|
-
srcChain: number;
|
|
22
|
-
dstChain: number;
|
|
23
|
-
srcTokenAddress: string;
|
|
24
|
-
dstTokenAddress: string;
|
|
25
|
-
tradeType: TradeType;
|
|
26
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
27
|
-
}, {
|
|
28
|
-
type: OrderType.Swap;
|
|
29
|
-
amount: string;
|
|
30
|
-
srcChain: number;
|
|
31
|
-
dstChain: number;
|
|
32
|
-
srcTokenAddress: string;
|
|
33
|
-
dstTokenAddress: string;
|
|
34
|
-
tradeType: TradeType;
|
|
35
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
36
|
-
}>, z.ZodObject<{
|
|
37
|
-
srcChain: z.ZodNumber;
|
|
38
|
-
dstChain: z.ZodNumber;
|
|
39
|
-
srcTokenAddress: z.ZodString;
|
|
40
|
-
dstTokenAddress: z.ZodString;
|
|
41
|
-
onrampVendor: z.ZodOptional<z.ZodNativeEnum<typeof OnrampVendor>>;
|
|
42
|
-
} & {
|
|
43
|
-
type: z.ZodLiteral<OrderType.MintNFT>;
|
|
44
|
-
contractAddress: z.ZodString;
|
|
45
|
-
tokenId: z.ZodNullable<z.ZodNumber>;
|
|
46
|
-
contractType: z.ZodNativeEnum<typeof NftType>;
|
|
47
|
-
price: z.ZodString;
|
|
48
|
-
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
type: OrderType.MintNFT;
|
|
50
|
-
contractAddress: string;
|
|
51
|
-
tokenId: number | null;
|
|
52
|
-
contractType: NftType;
|
|
53
|
-
srcChain: number;
|
|
54
|
-
dstChain: number;
|
|
55
|
-
srcTokenAddress: string;
|
|
56
|
-
dstTokenAddress: string;
|
|
57
|
-
price: string;
|
|
58
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
59
|
-
}, {
|
|
60
|
-
type: OrderType.MintNFT;
|
|
61
|
-
contractAddress: string;
|
|
62
|
-
tokenId: number | null;
|
|
63
|
-
contractType: NftType;
|
|
64
|
-
srcChain: number;
|
|
65
|
-
dstChain: number;
|
|
66
|
-
srcTokenAddress: string;
|
|
67
|
-
dstTokenAddress: string;
|
|
68
|
-
price: string;
|
|
69
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
70
|
-
}>, z.ZodObject<{
|
|
71
|
-
srcChain: z.ZodNumber;
|
|
72
|
-
dstChain: z.ZodNumber;
|
|
73
|
-
srcTokenAddress: z.ZodString;
|
|
74
|
-
dstTokenAddress: z.ZodString;
|
|
75
|
-
onrampVendor: z.ZodOptional<z.ZodNativeEnum<typeof OnrampVendor>>;
|
|
76
|
-
} & {
|
|
77
|
-
type: z.ZodLiteral<OrderType.JoinTournament>;
|
|
78
|
-
contractAddress: z.ZodString;
|
|
79
|
-
price: z.ZodString;
|
|
80
|
-
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
type: OrderType.JoinTournament;
|
|
82
|
-
contractAddress: string;
|
|
83
|
-
srcChain: number;
|
|
84
|
-
dstChain: number;
|
|
85
|
-
srcTokenAddress: string;
|
|
86
|
-
dstTokenAddress: string;
|
|
87
|
-
price: string;
|
|
88
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
89
|
-
}, {
|
|
90
|
-
type: OrderType.JoinTournament;
|
|
91
|
-
contractAddress: string;
|
|
92
|
-
srcChain: number;
|
|
93
|
-
dstChain: number;
|
|
94
|
-
srcTokenAddress: string;
|
|
95
|
-
dstTokenAddress: string;
|
|
96
|
-
price: string;
|
|
97
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
98
|
-
}>, z.ZodObject<{
|
|
99
|
-
srcChain: z.ZodNumber;
|
|
100
|
-
dstChain: z.ZodNumber;
|
|
101
|
-
srcTokenAddress: z.ZodString;
|
|
102
|
-
dstTokenAddress: z.ZodString;
|
|
103
|
-
onrampVendor: z.ZodOptional<z.ZodNativeEnum<typeof OnrampVendor>>;
|
|
104
|
-
} & {
|
|
105
|
-
type: z.ZodLiteral<OrderType.FundTournament>;
|
|
106
|
-
contractAddress: z.ZodString;
|
|
107
|
-
fundAmount: z.ZodString;
|
|
108
|
-
}, "strip", z.ZodTypeAny, {
|
|
109
|
-
type: OrderType.FundTournament;
|
|
110
|
-
contractAddress: string;
|
|
111
|
-
fundAmount: string;
|
|
112
|
-
srcChain: number;
|
|
113
|
-
dstChain: number;
|
|
114
|
-
srcTokenAddress: string;
|
|
115
|
-
dstTokenAddress: string;
|
|
116
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
117
|
-
}, {
|
|
118
|
-
type: OrderType.FundTournament;
|
|
119
|
-
contractAddress: string;
|
|
120
|
-
fundAmount: string;
|
|
121
|
-
srcChain: number;
|
|
122
|
-
dstChain: number;
|
|
123
|
-
srcTokenAddress: string;
|
|
124
|
-
dstTokenAddress: string;
|
|
125
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
126
|
-
}>, z.ZodObject<{
|
|
127
|
-
srcChain: z.ZodNumber;
|
|
128
|
-
dstChain: z.ZodNumber;
|
|
129
|
-
srcTokenAddress: z.ZodString;
|
|
130
|
-
dstTokenAddress: z.ZodString;
|
|
131
|
-
onrampVendor: z.ZodOptional<z.ZodNativeEnum<typeof OnrampVendor>>;
|
|
132
|
-
} & {
|
|
133
|
-
type: z.ZodLiteral<OrderType.Custom>;
|
|
134
|
-
payload: z.ZodObject<{
|
|
135
|
-
data: z.ZodString;
|
|
136
|
-
to: z.ZodString;
|
|
137
|
-
spenderAddress: z.ZodOptional<z.ZodString>;
|
|
138
|
-
amount: z.ZodString;
|
|
139
|
-
}, "strip", z.ZodTypeAny, {
|
|
140
|
-
data: string;
|
|
141
|
-
to: string;
|
|
142
|
-
amount: string;
|
|
143
|
-
spenderAddress?: string | undefined;
|
|
144
|
-
}, {
|
|
145
|
-
data: string;
|
|
146
|
-
to: string;
|
|
147
|
-
amount: string;
|
|
148
|
-
spenderAddress?: string | undefined;
|
|
149
|
-
}>;
|
|
150
|
-
}, "strip", z.ZodTypeAny, {
|
|
151
|
-
type: OrderType.Custom;
|
|
152
|
-
srcChain: number;
|
|
153
|
-
dstChain: number;
|
|
154
|
-
srcTokenAddress: string;
|
|
155
|
-
dstTokenAddress: string;
|
|
156
|
-
payload: {
|
|
157
|
-
data: string;
|
|
158
|
-
to: string;
|
|
159
|
-
amount: string;
|
|
160
|
-
spenderAddress?: string | undefined;
|
|
161
|
-
};
|
|
162
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
163
|
-
}, {
|
|
164
|
-
type: OrderType.Custom;
|
|
165
|
-
srcChain: number;
|
|
166
|
-
dstChain: number;
|
|
167
|
-
srcTokenAddress: string;
|
|
168
|
-
dstTokenAddress: string;
|
|
169
|
-
payload: {
|
|
170
|
-
data: string;
|
|
171
|
-
to: string;
|
|
172
|
-
amount: string;
|
|
173
|
-
spenderAddress?: string | undefined;
|
|
174
|
-
};
|
|
175
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
176
|
-
}>]>;
|
|
177
|
-
}, "strip", z.ZodTypeAny, {
|
|
178
|
-
body: {
|
|
179
|
-
type: OrderType.Swap;
|
|
180
|
-
amount: string;
|
|
181
|
-
srcChain: number;
|
|
182
|
-
dstChain: number;
|
|
183
|
-
srcTokenAddress: string;
|
|
184
|
-
dstTokenAddress: string;
|
|
185
|
-
tradeType: TradeType;
|
|
186
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
187
|
-
} | {
|
|
188
|
-
type: OrderType.MintNFT;
|
|
189
|
-
contractAddress: string;
|
|
190
|
-
tokenId: number | null;
|
|
191
|
-
contractType: NftType;
|
|
192
|
-
srcChain: number;
|
|
193
|
-
dstChain: number;
|
|
194
|
-
srcTokenAddress: string;
|
|
195
|
-
dstTokenAddress: string;
|
|
196
|
-
price: string;
|
|
197
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
198
|
-
} | {
|
|
199
|
-
type: OrderType.JoinTournament;
|
|
200
|
-
contractAddress: string;
|
|
201
|
-
srcChain: number;
|
|
202
|
-
dstChain: number;
|
|
203
|
-
srcTokenAddress: string;
|
|
204
|
-
dstTokenAddress: string;
|
|
205
|
-
price: string;
|
|
206
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
207
|
-
} | {
|
|
208
|
-
type: OrderType.FundTournament;
|
|
209
|
-
contractAddress: string;
|
|
210
|
-
fundAmount: string;
|
|
211
|
-
srcChain: number;
|
|
212
|
-
dstChain: number;
|
|
213
|
-
srcTokenAddress: string;
|
|
214
|
-
dstTokenAddress: string;
|
|
215
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
216
|
-
} | {
|
|
217
|
-
type: OrderType.Custom;
|
|
218
|
-
srcChain: number;
|
|
219
|
-
dstChain: number;
|
|
220
|
-
srcTokenAddress: string;
|
|
221
|
-
dstTokenAddress: string;
|
|
222
|
-
payload: {
|
|
223
|
-
data: string;
|
|
224
|
-
to: string;
|
|
225
|
-
amount: string;
|
|
226
|
-
spenderAddress?: string | undefined;
|
|
227
|
-
};
|
|
228
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
229
|
-
};
|
|
230
|
-
}, {
|
|
231
|
-
body: {
|
|
232
|
-
type: OrderType.Swap;
|
|
233
|
-
amount: string;
|
|
234
|
-
srcChain: number;
|
|
235
|
-
dstChain: number;
|
|
236
|
-
srcTokenAddress: string;
|
|
237
|
-
dstTokenAddress: string;
|
|
238
|
-
tradeType: TradeType;
|
|
239
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
240
|
-
} | {
|
|
241
|
-
type: OrderType.MintNFT;
|
|
242
|
-
contractAddress: string;
|
|
243
|
-
tokenId: number | null;
|
|
244
|
-
contractType: NftType;
|
|
245
|
-
srcChain: number;
|
|
246
|
-
dstChain: number;
|
|
247
|
-
srcTokenAddress: string;
|
|
248
|
-
dstTokenAddress: string;
|
|
249
|
-
price: string;
|
|
250
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
251
|
-
} | {
|
|
252
|
-
type: OrderType.JoinTournament;
|
|
253
|
-
contractAddress: string;
|
|
254
|
-
srcChain: number;
|
|
255
|
-
dstChain: number;
|
|
256
|
-
srcTokenAddress: string;
|
|
257
|
-
dstTokenAddress: string;
|
|
258
|
-
price: string;
|
|
259
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
260
|
-
} | {
|
|
261
|
-
type: OrderType.FundTournament;
|
|
262
|
-
contractAddress: string;
|
|
263
|
-
fundAmount: string;
|
|
264
|
-
srcChain: number;
|
|
265
|
-
dstChain: number;
|
|
266
|
-
srcTokenAddress: string;
|
|
267
|
-
dstTokenAddress: string;
|
|
268
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
269
|
-
} | {
|
|
270
|
-
type: OrderType.Custom;
|
|
271
|
-
srcChain: number;
|
|
272
|
-
dstChain: number;
|
|
273
|
-
srcTokenAddress: string;
|
|
274
|
-
dstTokenAddress: string;
|
|
275
|
-
payload: {
|
|
276
|
-
data: string;
|
|
277
|
-
to: string;
|
|
278
|
-
amount: string;
|
|
279
|
-
spenderAddress?: string | undefined;
|
|
280
|
-
};
|
|
281
|
-
onrampVendor?: OnrampVendor | undefined;
|
|
282
|
-
};
|
|
283
|
-
}>;
|
|
284
|
-
export type GetQuoteRequest = z.infer<typeof zGetQuoteRequest.shape.body>;
|
|
285
|
-
export interface GetQuoteResponse {
|
|
286
|
-
success: boolean;
|
|
287
|
-
message: string;
|
|
288
|
-
data: QuoteDetails;
|
|
289
|
-
statusCode: number;
|
|
290
|
-
}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zGetQuoteRequest = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const custom_1 = require("../custom");
|
|
6
|
-
const nft_1 = require("../nft");
|
|
7
|
-
const order_1 = require("../order");
|
|
8
|
-
const relay_1 = require("../relay");
|
|
9
|
-
const onramp_1 = require("../onramp");
|
|
10
|
-
const zGetQuoteBody = zod_1.z.object({
|
|
11
|
-
srcChain: zod_1.z.number(),
|
|
12
|
-
dstChain: zod_1.z.number(),
|
|
13
|
-
srcTokenAddress: zod_1.z.string(),
|
|
14
|
-
dstTokenAddress: zod_1.z.string(),
|
|
15
|
-
onrampVendor: zod_1.z.nativeEnum(onramp_1.OnrampVendor).optional(),
|
|
16
|
-
});
|
|
17
|
-
const zGetQuoteForSwapOrderBody = zGetQuoteBody.extend({
|
|
18
|
-
type: zod_1.z.literal(order_1.OrderType.Swap),
|
|
19
|
-
tradeType: zod_1.z.nativeEnum(relay_1.TradeType),
|
|
20
|
-
amount: zod_1.z.string(),
|
|
21
|
-
});
|
|
22
|
-
const zGetQuoteForMintNftOrderBody = zGetQuoteBody.extend({
|
|
23
|
-
type: zod_1.z.literal(order_1.OrderType.MintNFT),
|
|
24
|
-
contractAddress: zod_1.z.string(),
|
|
25
|
-
tokenId: zod_1.z.number().nullable(),
|
|
26
|
-
contractType: zod_1.z.nativeEnum(nft_1.NftType),
|
|
27
|
-
price: zod_1.z.string(),
|
|
28
|
-
});
|
|
29
|
-
const zGetQuoteForJoinTournamentOrderBody = zGetQuoteBody.extend({
|
|
30
|
-
type: zod_1.z.literal(order_1.OrderType.JoinTournament),
|
|
31
|
-
contractAddress: zod_1.z.string(),
|
|
32
|
-
price: zod_1.z.string(),
|
|
33
|
-
});
|
|
34
|
-
const zGetQuoteForFundTournamentOrderBody = zGetQuoteBody.extend({
|
|
35
|
-
type: zod_1.z.literal(order_1.OrderType.FundTournament),
|
|
36
|
-
contractAddress: zod_1.z.string(),
|
|
37
|
-
fundAmount: zod_1.z.string(),
|
|
38
|
-
});
|
|
39
|
-
const zGetQuoteForCustomOrderBody = zGetQuoteBody.extend({
|
|
40
|
-
type: zod_1.z.literal(order_1.OrderType.Custom),
|
|
41
|
-
payload: custom_1.zCustomPayload,
|
|
42
|
-
});
|
|
43
|
-
exports.zGetQuoteRequest = zod_1.z.object({
|
|
44
|
-
body: zod_1.z.discriminatedUnion("type", [
|
|
45
|
-
zGetQuoteForSwapOrderBody,
|
|
46
|
-
zGetQuoteForMintNftOrderBody,
|
|
47
|
-
zGetQuoteForJoinTournamentOrderBody,
|
|
48
|
-
zGetQuoteForFundTournamentOrderBody,
|
|
49
|
-
zGetQuoteForCustomOrderBody,
|
|
50
|
-
]),
|
|
51
|
-
});
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const zGetTokenListResponse: z.ZodObject<{
|
|
3
|
-
success: z.ZodBoolean;
|
|
4
|
-
message: z.ZodString;
|
|
5
|
-
data: z.ZodArray<z.ZodObject<{
|
|
6
|
-
chainId: z.ZodNumber;
|
|
7
|
-
address: z.ZodString;
|
|
8
|
-
symbol: z.ZodString;
|
|
9
|
-
name: z.ZodString;
|
|
10
|
-
decimals: z.ZodNumber;
|
|
11
|
-
metadata: z.ZodObject<{
|
|
12
|
-
logoURI: z.ZodOptional<z.ZodString>;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
logoURI?: string | undefined;
|
|
15
|
-
}, {
|
|
16
|
-
logoURI?: string | undefined;
|
|
17
|
-
}>;
|
|
18
|
-
}, "strip", z.ZodTypeAny, {
|
|
19
|
-
symbol: string;
|
|
20
|
-
chainId: number;
|
|
21
|
-
address: string;
|
|
22
|
-
name: string;
|
|
23
|
-
decimals: number;
|
|
24
|
-
metadata: {
|
|
25
|
-
logoURI?: string | undefined;
|
|
26
|
-
};
|
|
27
|
-
}, {
|
|
28
|
-
symbol: string;
|
|
29
|
-
chainId: number;
|
|
30
|
-
address: string;
|
|
31
|
-
name: string;
|
|
32
|
-
decimals: number;
|
|
33
|
-
metadata: {
|
|
34
|
-
logoURI?: string | undefined;
|
|
35
|
-
};
|
|
36
|
-
}>, "many">;
|
|
37
|
-
}, "strip", z.ZodTypeAny, {
|
|
38
|
-
message: string;
|
|
39
|
-
data: {
|
|
40
|
-
symbol: string;
|
|
41
|
-
chainId: number;
|
|
42
|
-
address: string;
|
|
43
|
-
name: string;
|
|
44
|
-
decimals: number;
|
|
45
|
-
metadata: {
|
|
46
|
-
logoURI?: string | undefined;
|
|
47
|
-
};
|
|
48
|
-
}[];
|
|
49
|
-
success: boolean;
|
|
50
|
-
}, {
|
|
51
|
-
message: string;
|
|
52
|
-
data: {
|
|
53
|
-
symbol: string;
|
|
54
|
-
chainId: number;
|
|
55
|
-
address: string;
|
|
56
|
-
name: string;
|
|
57
|
-
decimals: number;
|
|
58
|
-
metadata: {
|
|
59
|
-
logoURI?: string | undefined;
|
|
60
|
-
};
|
|
61
|
-
}[];
|
|
62
|
-
success: boolean;
|
|
63
|
-
}>;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zGetTokenListResponse = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.zGetTokenListResponse = zod_1.z.object({
|
|
6
|
-
success: zod_1.z.boolean(),
|
|
7
|
-
message: zod_1.z.string(),
|
|
8
|
-
data: zod_1.z.array(zod_1.z.object({
|
|
9
|
-
chainId: zod_1.z.number(),
|
|
10
|
-
address: zod_1.z.string(),
|
|
11
|
-
symbol: zod_1.z.string(),
|
|
12
|
-
name: zod_1.z.string(),
|
|
13
|
-
decimals: zod_1.z.number(),
|
|
14
|
-
metadata: zod_1.z.object({
|
|
15
|
-
logoURI: zod_1.z.string().optional(),
|
|
16
|
-
}),
|
|
17
|
-
})),
|
|
18
|
-
});
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./createOrder"), exports);
|
|
18
|
-
__exportStar(require("./getCoinbaseOnrampOptions"), exports);
|
|
19
|
-
__exportStar(require("./getOrderAndTransactions"), exports);
|
|
20
|
-
__exportStar(require("./getOrderByCreator"), exports);
|
|
21
|
-
__exportStar(require("./getOrderHistory"), exports);
|
|
22
|
-
__exportStar(require("./getQuote"), exports);
|
|
23
|
-
__exportStar(require("./getTokenList"), exports);
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const zSwapPayload: z.ZodObject<{
|
|
3
|
-
expectedDstAmount: z.ZodString;
|
|
4
|
-
actualDstAmount: z.ZodNullable<z.ZodString>;
|
|
5
|
-
}, "strip", z.ZodTypeAny, {
|
|
6
|
-
expectedDstAmount: string;
|
|
7
|
-
actualDstAmount: string | null;
|
|
8
|
-
}, {
|
|
9
|
-
expectedDstAmount: string;
|
|
10
|
-
actualDstAmount: string | null;
|
|
11
|
-
}>;
|
|
12
|
-
export declare const zSwapMetadata: z.ZodObject<{
|
|
13
|
-
srcToken: z.ZodObject<{
|
|
14
|
-
chainId: z.ZodNumber;
|
|
15
|
-
address: z.ZodString;
|
|
16
|
-
symbol: z.ZodString;
|
|
17
|
-
name: z.ZodString;
|
|
18
|
-
decimals: z.ZodNumber;
|
|
19
|
-
metadata: z.ZodObject<{
|
|
20
|
-
logoURI: z.ZodOptional<z.ZodString>;
|
|
21
|
-
}, "strip", z.ZodTypeAny, {
|
|
22
|
-
logoURI?: string | undefined;
|
|
23
|
-
}, {
|
|
24
|
-
logoURI?: string | undefined;
|
|
25
|
-
}>;
|
|
26
|
-
}, "strip", z.ZodTypeAny, {
|
|
27
|
-
symbol: string;
|
|
28
|
-
chainId: number;
|
|
29
|
-
address: string;
|
|
30
|
-
name: string;
|
|
31
|
-
decimals: number;
|
|
32
|
-
metadata: {
|
|
33
|
-
logoURI?: string | undefined;
|
|
34
|
-
};
|
|
35
|
-
}, {
|
|
36
|
-
symbol: string;
|
|
37
|
-
chainId: number;
|
|
38
|
-
address: string;
|
|
39
|
-
name: string;
|
|
40
|
-
decimals: number;
|
|
41
|
-
metadata: {
|
|
42
|
-
logoURI?: string | undefined;
|
|
43
|
-
};
|
|
44
|
-
}>;
|
|
45
|
-
dstToken: z.ZodObject<{
|
|
46
|
-
chainId: z.ZodNumber;
|
|
47
|
-
address: z.ZodString;
|
|
48
|
-
symbol: z.ZodString;
|
|
49
|
-
name: z.ZodString;
|
|
50
|
-
decimals: z.ZodNumber;
|
|
51
|
-
metadata: z.ZodObject<{
|
|
52
|
-
logoURI: z.ZodOptional<z.ZodString>;
|
|
53
|
-
}, "strip", z.ZodTypeAny, {
|
|
54
|
-
logoURI?: string | undefined;
|
|
55
|
-
}, {
|
|
56
|
-
logoURI?: string | undefined;
|
|
57
|
-
}>;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
symbol: string;
|
|
60
|
-
chainId: number;
|
|
61
|
-
address: string;
|
|
62
|
-
name: string;
|
|
63
|
-
decimals: number;
|
|
64
|
-
metadata: {
|
|
65
|
-
logoURI?: string | undefined;
|
|
66
|
-
};
|
|
67
|
-
}, {
|
|
68
|
-
symbol: string;
|
|
69
|
-
chainId: number;
|
|
70
|
-
address: string;
|
|
71
|
-
name: string;
|
|
72
|
-
decimals: number;
|
|
73
|
-
metadata: {
|
|
74
|
-
logoURI?: string | undefined;
|
|
75
|
-
};
|
|
76
|
-
}>;
|
|
77
|
-
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
srcToken: {
|
|
79
|
-
symbol: string;
|
|
80
|
-
chainId: number;
|
|
81
|
-
address: string;
|
|
82
|
-
name: string;
|
|
83
|
-
decimals: number;
|
|
84
|
-
metadata: {
|
|
85
|
-
logoURI?: string | undefined;
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
dstToken: {
|
|
89
|
-
symbol: string;
|
|
90
|
-
chainId: number;
|
|
91
|
-
address: string;
|
|
92
|
-
name: string;
|
|
93
|
-
decimals: number;
|
|
94
|
-
metadata: {
|
|
95
|
-
logoURI?: string | undefined;
|
|
96
|
-
};
|
|
97
|
-
};
|
|
98
|
-
}, {
|
|
99
|
-
srcToken: {
|
|
100
|
-
symbol: string;
|
|
101
|
-
chainId: number;
|
|
102
|
-
address: string;
|
|
103
|
-
name: string;
|
|
104
|
-
decimals: number;
|
|
105
|
-
metadata: {
|
|
106
|
-
logoURI?: string | undefined;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
dstToken: {
|
|
110
|
-
symbol: string;
|
|
111
|
-
chainId: number;
|
|
112
|
-
address: string;
|
|
113
|
-
name: string;
|
|
114
|
-
decimals: number;
|
|
115
|
-
metadata: {
|
|
116
|
-
logoURI?: string | undefined;
|
|
117
|
-
};
|
|
118
|
-
};
|
|
119
|
-
}>;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zSwapMetadata = exports.zSwapPayload = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
const token_1 = require("./token");
|
|
6
|
-
exports.zSwapPayload = zod_1.z.object({
|
|
7
|
-
expectedDstAmount: zod_1.z.string(),
|
|
8
|
-
actualDstAmount: zod_1.z.string().nullable(),
|
|
9
|
-
});
|
|
10
|
-
exports.zSwapMetadata = zod_1.z.object({
|
|
11
|
-
srcToken: token_1.zToken,
|
|
12
|
-
dstToken: token_1.zToken,
|
|
13
|
-
});
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const zToken: z.ZodObject<{
|
|
3
|
-
chainId: z.ZodNumber;
|
|
4
|
-
address: z.ZodString;
|
|
5
|
-
symbol: z.ZodString;
|
|
6
|
-
name: z.ZodString;
|
|
7
|
-
decimals: z.ZodNumber;
|
|
8
|
-
metadata: z.ZodObject<{
|
|
9
|
-
logoURI: z.ZodOptional<z.ZodString>;
|
|
10
|
-
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
logoURI?: string | undefined;
|
|
12
|
-
}, {
|
|
13
|
-
logoURI?: string | undefined;
|
|
14
|
-
}>;
|
|
15
|
-
}, "strip", z.ZodTypeAny, {
|
|
16
|
-
symbol: string;
|
|
17
|
-
chainId: number;
|
|
18
|
-
address: string;
|
|
19
|
-
name: string;
|
|
20
|
-
decimals: number;
|
|
21
|
-
metadata: {
|
|
22
|
-
logoURI?: string | undefined;
|
|
23
|
-
};
|
|
24
|
-
}, {
|
|
25
|
-
symbol: string;
|
|
26
|
-
chainId: number;
|
|
27
|
-
address: string;
|
|
28
|
-
name: string;
|
|
29
|
-
decimals: number;
|
|
30
|
-
metadata: {
|
|
31
|
-
logoURI?: string | undefined;
|
|
32
|
-
};
|
|
33
|
-
}>;
|
|
34
|
-
export type Token = z.infer<typeof zToken>;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.zToken = void 0;
|
|
4
|
-
const zod_1 = require("zod");
|
|
5
|
-
exports.zToken = zod_1.z.object({
|
|
6
|
-
chainId: zod_1.z.number(),
|
|
7
|
-
address: zod_1.z.string(),
|
|
8
|
-
symbol: zod_1.z.string(),
|
|
9
|
-
name: zod_1.z.string(),
|
|
10
|
-
decimals: zod_1.z.number(),
|
|
11
|
-
metadata: zod_1.z.object({
|
|
12
|
-
logoURI: zod_1.z.string().optional(),
|
|
13
|
-
}),
|
|
14
|
-
});
|