@b3dotfun/sdk 0.0.8-alpha.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.
Files changed (370) hide show
  1. package/README.md +0 -1
  2. package/dist/cjs/anyspend/constants/index.d.ts +16 -5
  3. package/dist/cjs/anyspend/constants/index.js +3 -4
  4. package/dist/cjs/anyspend/index.d.ts +0 -5
  5. package/dist/cjs/anyspend/index.js +0 -6
  6. package/dist/cjs/anyspend/index.native.d.ts +0 -1
  7. package/dist/cjs/anyspend/index.native.js +0 -2
  8. package/dist/cjs/anyspend/react/components/AnySpend.js +12 -12
  9. package/dist/cjs/anyspend/react/components/AnySpendBondKit.js +2 -3
  10. package/dist/cjs/anyspend/react/components/AnySpendBuySpin.js +3 -6
  11. package/dist/cjs/anyspend/react/components/AnySpendCustom.d.ts +5 -4
  12. package/dist/cjs/anyspend/react/components/AnySpendCustom.js +30 -30
  13. package/dist/cjs/anyspend/react/components/AnySpendNFT.d.ts +2 -2
  14. package/dist/cjs/anyspend/react/components/AnySpendNFT.js +2 -2
  15. package/dist/cjs/anyspend/react/components/AnySpendStakeB3.js +2 -2
  16. package/dist/cjs/anyspend/react/components/AnySpendTournament.d.ts +5 -5
  17. package/dist/cjs/anyspend/react/components/AnySpendTournament.js +2 -3
  18. package/dist/cjs/anyspend/react/components/AnyspendSignatureMint.js +2 -4
  19. package/dist/cjs/anyspend/react/components/common/AnySpendNFTButton.d.ts +2 -2
  20. package/dist/cjs/anyspend/react/components/common/OrderDetails.d.ts +6 -6
  21. package/dist/cjs/anyspend/react/components/common/OrderDetails.js +45 -47
  22. package/dist/cjs/anyspend/react/components/common/OrderHistoryItem.d.ts +2 -2
  23. package/dist/cjs/anyspend/react/components/common/OrderHistoryItem.js +10 -12
  24. package/dist/cjs/anyspend/react/components/common/OrderStatus.d.ts +2 -2
  25. package/dist/cjs/anyspend/react/components/common/OrderStatus.js +1 -1
  26. package/dist/cjs/anyspend/react/components/common/OrderToken.d.ts +3 -3
  27. package/dist/cjs/anyspend/react/components/common/OrderTokenAmount.d.ts +3 -3
  28. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.d.ts +6 -5
  29. package/dist/cjs/anyspend/react/components/common/PanelOnrampPayment.js +8 -9
  30. package/dist/cjs/anyspend/react/components/common/PaymentOneClick.d.ts +2 -2
  31. package/dist/cjs/anyspend/react/components/common/PaymentStripeWeb2.d.ts +2 -2
  32. package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.d.ts +2 -2
  33. package/dist/cjs/anyspend/react/components/common/PaymentVendorUI.js +1 -2
  34. package/dist/cjs/anyspend/react/components/common/TokenBalance.d.ts +2 -2
  35. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +2 -2
  36. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +9 -9
  37. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +3 -2
  38. package/dist/cjs/anyspend/react/components/webview/WebviewOnrampPayment.js +3 -4
  39. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +2 -2
  40. package/dist/cjs/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +6 -6
  41. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +12 -644
  42. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +72 -434
  43. package/dist/cjs/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -2
  44. package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.d.ts +7 -15
  45. package/dist/cjs/anyspend/react/hooks/useAnyspendQuote.js +4 -21
  46. package/dist/cjs/anyspend/react/hooks/useAnyspendTokens.d.ts +4 -4
  47. package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +38 -27
  48. package/dist/cjs/anyspend/react/hooks/useCoinbaseOnrampOptions.js +1 -1
  49. package/dist/cjs/anyspend/react/hooks/useGeoOnrampOptions.d.ts +16 -13
  50. package/dist/cjs/anyspend/react/hooks/useSigMint.d.ts +6 -6
  51. package/dist/cjs/anyspend/services/anyspend.d.ts +10 -321
  52. package/dist/cjs/anyspend/services/anyspend.js +7 -11
  53. package/dist/cjs/anyspend/types/api.d.ts +978 -797
  54. package/dist/cjs/anyspend/types/api_req_res.d.ts +10 -0
  55. package/dist/cjs/anyspend/types/chain.d.ts +3 -3
  56. package/dist/cjs/anyspend/utils/chain.d.ts +4 -3
  57. package/dist/cjs/anyspend/utils/chain.js +14 -14
  58. package/dist/cjs/anyspend/utils/format.d.ts +2 -2
  59. package/dist/cjs/anyspend/utils/format.js +13 -14
  60. package/dist/cjs/anyspend/utils/orderPayload.d.ts +29 -29
  61. package/dist/cjs/anyspend/utils/orderPayload.js +12 -13
  62. package/dist/cjs/anyspend/utils/token.d.ts +6 -6
  63. package/dist/cjs/global-account/react/components/ui/command.d.ts +1 -1
  64. package/dist/cjs/global-account/react/hooks/useAccountWallet.js +1 -1
  65. package/dist/cjs/global-account/react/hooks/useBestTransactionPath.d.ts +2 -2
  66. package/dist/cjs/global-account/react/hooks/useOnchainName.js +2 -2
  67. package/dist/cjs/global-account/react/hooks/useTokenBalance.d.ts +2 -2
  68. package/dist/cjs/global-account/react/hooks/useTokenFromUrl.d.ts +5 -5
  69. package/dist/cjs/global-account/react/hooks/useTokenFromUrl.js +1 -1
  70. package/dist/cjs/global-account/react/stores/useModalStore.d.ts +6 -7
  71. package/dist/cjs/shared/constants/chains/supported.d.ts +2 -2
  72. package/dist/cjs/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +249 -249
  73. package/dist/cjs/shared/utils/payment.utils.d.ts +3 -3
  74. package/dist/cjs/shared/utils/payment.utils.js +6 -7
  75. package/dist/esm/anyspend/constants/index.d.ts +16 -5
  76. package/dist/esm/anyspend/constants/index.js +3 -4
  77. package/dist/esm/anyspend/index.d.ts +0 -5
  78. package/dist/esm/anyspend/index.js +0 -6
  79. package/dist/esm/anyspend/index.native.d.ts +0 -1
  80. package/dist/esm/anyspend/index.native.js +0 -2
  81. package/dist/esm/anyspend/react/components/AnySpend.js +13 -13
  82. package/dist/esm/anyspend/react/components/AnySpendBondKit.js +2 -3
  83. package/dist/esm/anyspend/react/components/AnySpendBuySpin.js +4 -7
  84. package/dist/esm/anyspend/react/components/AnySpendCustom.d.ts +5 -4
  85. package/dist/esm/anyspend/react/components/AnySpendCustom.js +29 -29
  86. package/dist/esm/anyspend/react/components/AnySpendNFT.d.ts +2 -2
  87. package/dist/esm/anyspend/react/components/AnySpendNFT.js +3 -3
  88. package/dist/esm/anyspend/react/components/AnySpendStakeB3.js +3 -3
  89. package/dist/esm/anyspend/react/components/AnySpendTournament.d.ts +5 -5
  90. package/dist/esm/anyspend/react/components/AnySpendTournament.js +2 -3
  91. package/dist/esm/anyspend/react/components/AnyspendSignatureMint.js +3 -5
  92. package/dist/esm/anyspend/react/components/common/AnySpendNFTButton.d.ts +2 -2
  93. package/dist/esm/anyspend/react/components/common/OrderDetails.d.ts +6 -6
  94. package/dist/esm/anyspend/react/components/common/OrderDetails.js +46 -48
  95. package/dist/esm/anyspend/react/components/common/OrderHistoryItem.d.ts +2 -2
  96. package/dist/esm/anyspend/react/components/common/OrderHistoryItem.js +11 -13
  97. package/dist/esm/anyspend/react/components/common/OrderStatus.d.ts +2 -2
  98. package/dist/esm/anyspend/react/components/common/OrderStatus.js +2 -2
  99. package/dist/esm/anyspend/react/components/common/OrderToken.d.ts +3 -3
  100. package/dist/esm/anyspend/react/components/common/OrderTokenAmount.d.ts +3 -3
  101. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.d.ts +6 -5
  102. package/dist/esm/anyspend/react/components/common/PanelOnrampPayment.js +8 -9
  103. package/dist/esm/anyspend/react/components/common/PaymentOneClick.d.ts +2 -2
  104. package/dist/esm/anyspend/react/components/common/PaymentStripeWeb2.d.ts +2 -2
  105. package/dist/esm/anyspend/react/components/common/PaymentVendorUI.d.ts +2 -2
  106. package/dist/esm/anyspend/react/components/common/PaymentVendorUI.js +1 -2
  107. package/dist/esm/anyspend/react/components/common/TokenBalance.d.ts +2 -2
  108. package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +2 -2
  109. package/dist/esm/anyspend/react/components/webview/WebviewOnrampOrderStatus.js +10 -10
  110. package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +3 -2
  111. package/dist/esm/anyspend/react/components/webview/WebviewOnrampPayment.js +4 -5
  112. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +2 -2
  113. package/dist/esm/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +6 -6
  114. package/dist/esm/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +12 -644
  115. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +72 -434
  116. package/dist/esm/anyspend/react/hooks/useAnyspendOrderHistory.js +3 -2
  117. package/dist/esm/anyspend/react/hooks/useAnyspendQuote.d.ts +7 -15
  118. package/dist/esm/anyspend/react/hooks/useAnyspendQuote.js +4 -21
  119. package/dist/esm/anyspend/react/hooks/useAnyspendTokens.d.ts +4 -4
  120. package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +38 -27
  121. package/dist/esm/anyspend/react/hooks/useCoinbaseOnrampOptions.js +1 -1
  122. package/dist/esm/anyspend/react/hooks/useGeoOnrampOptions.d.ts +16 -13
  123. package/dist/esm/anyspend/react/hooks/useSigMint.d.ts +6 -6
  124. package/dist/esm/anyspend/services/anyspend.d.ts +10 -321
  125. package/dist/esm/anyspend/services/anyspend.js +7 -11
  126. package/dist/esm/anyspend/types/api.d.ts +978 -797
  127. package/dist/esm/anyspend/types/api_req_res.d.ts +10 -0
  128. package/dist/esm/anyspend/types/chain.d.ts +3 -3
  129. package/dist/esm/anyspend/utils/chain.d.ts +4 -3
  130. package/dist/esm/anyspend/utils/chain.js +1 -1
  131. package/dist/esm/anyspend/utils/format.d.ts +2 -2
  132. package/dist/esm/anyspend/utils/format.js +13 -14
  133. package/dist/esm/anyspend/utils/orderPayload.d.ts +29 -29
  134. package/dist/esm/anyspend/utils/orderPayload.js +12 -13
  135. package/dist/esm/anyspend/utils/token.d.ts +6 -6
  136. package/dist/esm/global-account/react/components/ui/command.d.ts +1 -1
  137. package/dist/esm/global-account/react/hooks/useAccountWallet.js +1 -1
  138. package/dist/esm/global-account/react/hooks/useBestTransactionPath.d.ts +2 -2
  139. package/dist/esm/global-account/react/hooks/useOnchainName.js +2 -2
  140. package/dist/esm/global-account/react/hooks/useTokenBalance.d.ts +2 -2
  141. package/dist/esm/global-account/react/hooks/useTokenFromUrl.d.ts +5 -5
  142. package/dist/esm/global-account/react/hooks/useTokenFromUrl.js +1 -1
  143. package/dist/esm/global-account/react/stores/useModalStore.d.ts +6 -7
  144. package/dist/esm/shared/constants/chains/supported.d.ts +2 -2
  145. package/dist/esm/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +249 -249
  146. package/dist/esm/shared/utils/payment.utils.d.ts +3 -3
  147. package/dist/esm/shared/utils/payment.utils.js +6 -7
  148. package/dist/types/anyspend/constants/index.d.ts +16 -5
  149. package/dist/types/anyspend/index.d.ts +0 -5
  150. package/dist/types/anyspend/index.native.d.ts +0 -1
  151. package/dist/types/anyspend/react/components/AnySpendCustom.d.ts +5 -4
  152. package/dist/types/anyspend/react/components/AnySpendNFT.d.ts +2 -2
  153. package/dist/types/anyspend/react/components/AnySpendTournament.d.ts +5 -5
  154. package/dist/types/anyspend/react/components/common/AnySpendNFTButton.d.ts +2 -2
  155. package/dist/types/anyspend/react/components/common/OrderDetails.d.ts +6 -6
  156. package/dist/types/anyspend/react/components/common/OrderHistoryItem.d.ts +2 -2
  157. package/dist/types/anyspend/react/components/common/OrderStatus.d.ts +2 -2
  158. package/dist/types/anyspend/react/components/common/OrderToken.d.ts +3 -3
  159. package/dist/types/anyspend/react/components/common/OrderTokenAmount.d.ts +3 -3
  160. package/dist/types/anyspend/react/components/common/PanelOnrampPayment.d.ts +6 -5
  161. package/dist/types/anyspend/react/components/common/PaymentOneClick.d.ts +2 -2
  162. package/dist/types/anyspend/react/components/common/PaymentStripeWeb2.d.ts +2 -2
  163. package/dist/types/anyspend/react/components/common/PaymentVendorUI.d.ts +2 -2
  164. package/dist/types/anyspend/react/components/common/TokenBalance.d.ts +2 -2
  165. package/dist/types/anyspend/react/components/webview/WebviewOnrampOrderStatus.d.ts +2 -2
  166. package/dist/types/anyspend/react/components/webview/WebviewOnrampPayment.d.ts +3 -2
  167. package/dist/types/anyspend/react/hooks/useAnyspendCreateOnrampOrder.d.ts +2 -2
  168. package/dist/types/anyspend/react/hooks/useAnyspendCreateOrder.d.ts +6 -6
  169. package/dist/types/anyspend/react/hooks/useAnyspendOrderAndTransactions.d.ts +12 -644
  170. package/dist/types/anyspend/react/hooks/useAnyspendOrderHistory.d.ts +72 -434
  171. package/dist/types/anyspend/react/hooks/useAnyspendQuote.d.ts +7 -15
  172. package/dist/types/anyspend/react/hooks/useAnyspendTokens.d.ts +4 -4
  173. package/dist/types/anyspend/react/hooks/useCoinbaseOnrampOptions.d.ts +38 -27
  174. package/dist/types/anyspend/react/hooks/useGeoOnrampOptions.d.ts +16 -13
  175. package/dist/types/anyspend/react/hooks/useSigMint.d.ts +6 -6
  176. package/dist/types/anyspend/services/anyspend.d.ts +10 -321
  177. package/dist/types/anyspend/types/api.d.ts +978 -797
  178. package/dist/types/anyspend/types/api_req_res.d.ts +10 -0
  179. package/dist/types/anyspend/types/chain.d.ts +3 -3
  180. package/dist/types/anyspend/utils/chain.d.ts +4 -3
  181. package/dist/types/anyspend/utils/format.d.ts +2 -2
  182. package/dist/types/anyspend/utils/orderPayload.d.ts +29 -29
  183. package/dist/types/anyspend/utils/token.d.ts +6 -6
  184. package/dist/types/global-account/react/components/ui/command.d.ts +1 -1
  185. package/dist/types/global-account/react/hooks/useBestTransactionPath.d.ts +2 -2
  186. package/dist/types/global-account/react/hooks/useTokenBalance.d.ts +2 -2
  187. package/dist/types/global-account/react/hooks/useTokenFromUrl.d.ts +5 -5
  188. package/dist/types/global-account/react/stores/useModalStore.d.ts +6 -7
  189. package/dist/types/shared/constants/chains/supported.d.ts +2 -2
  190. package/dist/types/shared/thirdweb/generated/@tanstack/react-query.gen.d.ts +249 -249
  191. package/dist/types/shared/utils/payment.utils.d.ts +3 -3
  192. package/package.json +1 -1
  193. package/src/anyspend/README.md +32 -32
  194. package/src/anyspend/constants/index.ts +7 -7
  195. package/src/anyspend/index.native.ts +0 -3
  196. package/src/anyspend/index.ts +0 -7
  197. package/src/anyspend/react/components/AnySpend.tsx +18 -15
  198. package/src/anyspend/react/components/AnySpendBondKit.tsx +2 -3
  199. package/src/anyspend/react/components/AnySpendBuySpin.tsx +4 -7
  200. package/src/anyspend/react/components/AnySpendCustom.tsx +77 -88
  201. package/src/anyspend/react/components/AnySpendNFT.tsx +7 -6
  202. package/src/anyspend/react/components/AnySpendStakeB3.tsx +3 -3
  203. package/src/anyspend/react/components/AnySpendTournament.tsx +8 -7
  204. package/src/anyspend/react/components/AnyspendSignatureMint.tsx +3 -6
  205. package/src/anyspend/react/components/common/AnySpendNFTButton.tsx +2 -2
  206. package/src/anyspend/react/components/common/OrderDetails.tsx +58 -70
  207. package/src/anyspend/react/components/common/OrderHistoryItem.tsx +13 -14
  208. package/src/anyspend/react/components/common/OrderStatus.tsx +4 -3
  209. package/src/anyspend/react/components/common/OrderToken.tsx +4 -3
  210. package/src/anyspend/react/components/common/OrderTokenAmount.tsx +4 -3
  211. package/src/anyspend/react/components/common/PanelOnrampPayment.tsx +19 -15
  212. package/src/anyspend/react/components/common/PaymentOneClick.tsx +2 -2
  213. package/src/anyspend/react/components/common/PaymentStripeWeb2.tsx +4 -3
  214. package/src/anyspend/react/components/common/PaymentVendorUI.tsx +3 -3
  215. package/src/anyspend/react/components/common/TokenBalance.tsx +2 -2
  216. package/src/anyspend/react/components/webview/WebviewOnrampOrderStatus.tsx +12 -11
  217. package/src/anyspend/react/components/webview/WebviewOnrampPayment.tsx +15 -16
  218. package/src/anyspend/react/hooks/useAnyspendCreateOnrampOrder.ts +2 -2
  219. package/src/anyspend/react/hooks/useAnyspendCreateOrder.ts +6 -6
  220. package/src/anyspend/react/hooks/useAnyspendOrderAndTransactions.ts +1 -1
  221. package/src/anyspend/react/hooks/useAnyspendOrderHistory.ts +10 -6
  222. package/src/anyspend/react/hooks/useAnyspendQuote.ts +15 -18
  223. package/src/anyspend/react/hooks/useCoinbaseOnrampOptions.ts +1 -1
  224. package/src/anyspend/services/anyspend.ts +38 -30
  225. package/src/anyspend/types/api.ts +1000 -810
  226. package/src/anyspend/types/api_req_res.ts +16 -0
  227. package/src/anyspend/types/chain.ts +3 -3
  228. package/src/anyspend/utils/chain.ts +4 -3
  229. package/src/anyspend/utils/format.ts +17 -15
  230. package/src/anyspend/utils/orderPayload.ts +20 -20
  231. package/src/anyspend/utils/token.ts +6 -6
  232. package/src/global-account/react/hooks/useAccountWallet.tsx +1 -1
  233. package/src/global-account/react/hooks/useBestTransactionPath.tsx +3 -2
  234. package/src/global-account/react/hooks/useOnchainName.tsx +2 -2
  235. package/src/global-account/react/hooks/useTokenBalance.tsx +3 -2
  236. package/src/global-account/react/hooks/useTokenFromUrl.tsx +10 -4
  237. package/src/global-account/react/stores/useModalStore.ts +6 -7
  238. package/src/shared/utils/payment.utils.ts +9 -9
  239. package/dist/cjs/anyspend/types/bondKit.d.ts +0 -12
  240. package/dist/cjs/anyspend/types/custom.d.ts +0 -130
  241. package/dist/cjs/anyspend/types/custom.js +0 -19
  242. package/dist/cjs/anyspend/types/globalWallet.d.ts +0 -18
  243. package/dist/cjs/anyspend/types/globalWallet.js +0 -10
  244. package/dist/cjs/anyspend/types/index.d.ts +0 -13
  245. package/dist/cjs/anyspend/types/index.js +0 -29
  246. package/dist/cjs/anyspend/types/metadata.d.ts +0 -26
  247. package/dist/cjs/anyspend/types/metadata.js +0 -16
  248. package/dist/cjs/anyspend/types/nft.d.ts +0 -274
  249. package/dist/cjs/anyspend/types/nft.js +0 -38
  250. package/dist/cjs/anyspend/types/onramp.d.ts +0 -28
  251. package/dist/cjs/anyspend/types/onramp.js +0 -18
  252. package/dist/cjs/anyspend/types/order.d.ts +0 -1629
  253. package/dist/cjs/anyspend/types/order.js +0 -81
  254. package/dist/cjs/anyspend/types/relay.d.ts +0 -10
  255. package/dist/cjs/anyspend/types/relay.js +0 -12
  256. package/dist/cjs/anyspend/types/req-res/createOrder.d.ts +0 -4026
  257. package/dist/cjs/anyspend/types/req-res/createOrder.js +0 -61
  258. package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +0 -120
  259. package/dist/cjs/anyspend/types/req-res/getCoinbaseOnrampOptions.js +0 -31
  260. package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -5167
  261. package/dist/cjs/anyspend/types/req-res/getOrderAndTransactions.js +0 -24
  262. package/dist/cjs/anyspend/types/req-res/getOrderByCreator.d.ts +0 -28
  263. package/dist/cjs/anyspend/types/req-res/getOrderByCreator.js +0 -11
  264. package/dist/cjs/anyspend/types/req-res/getOrderHistory.d.ts +0 -2117
  265. package/dist/cjs/anyspend/types/req-res/getOrderHistory.js +0 -11
  266. package/dist/cjs/anyspend/types/req-res/getQuote.d.ts +0 -290
  267. package/dist/cjs/anyspend/types/req-res/getQuote.js +0 -51
  268. package/dist/cjs/anyspend/types/req-res/getTokenList.d.ts +0 -63
  269. package/dist/cjs/anyspend/types/req-res/getTokenList.js +0 -18
  270. package/dist/cjs/anyspend/types/req-res/index.d.ts +0 -7
  271. package/dist/cjs/anyspend/types/req-res/index.js +0 -23
  272. package/dist/cjs/anyspend/types/req-res/stripe.d.ts +0 -0
  273. package/dist/cjs/anyspend/types/req-res/stripe.js +0 -1
  274. package/dist/cjs/anyspend/types/swap.d.ts +0 -119
  275. package/dist/cjs/anyspend/types/swap.js +0 -13
  276. package/dist/cjs/anyspend/types/token.d.ts +0 -34
  277. package/dist/cjs/anyspend/types/token.js +0 -14
  278. package/dist/cjs/anyspend/types/tournament.d.ts +0 -174
  279. package/dist/cjs/anyspend/types/tournament.js +0 -24
  280. package/dist/cjs/anyspend/types/transaction.d.ts +0 -84
  281. package/dist/cjs/anyspend/types/transaction.js +0 -34
  282. package/dist/esm/anyspend/types/bondKit.d.ts +0 -12
  283. package/dist/esm/anyspend/types/custom.d.ts +0 -130
  284. package/dist/esm/anyspend/types/custom.js +0 -13
  285. package/dist/esm/anyspend/types/globalWallet.d.ts +0 -18
  286. package/dist/esm/anyspend/types/globalWallet.js +0 -7
  287. package/dist/esm/anyspend/types/index.d.ts +0 -13
  288. package/dist/esm/anyspend/types/index.js +0 -13
  289. package/dist/esm/anyspend/types/metadata.d.ts +0 -26
  290. package/dist/esm/anyspend/types/metadata.js +0 -11
  291. package/dist/esm/anyspend/types/nft.d.ts +0 -274
  292. package/dist/esm/anyspend/types/nft.js +0 -35
  293. package/dist/esm/anyspend/types/onramp.d.ts +0 -28
  294. package/dist/esm/anyspend/types/onramp.js +0 -15
  295. package/dist/esm/anyspend/types/order.d.ts +0 -1629
  296. package/dist/esm/anyspend/types/order.js +0 -78
  297. package/dist/esm/anyspend/types/relay.d.ts +0 -10
  298. package/dist/esm/anyspend/types/relay.js +0 -9
  299. package/dist/esm/anyspend/types/req-res/createOrder.d.ts +0 -4026
  300. package/dist/esm/anyspend/types/req-res/createOrder.js +0 -58
  301. package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +0 -120
  302. package/dist/esm/anyspend/types/req-res/getCoinbaseOnrampOptions.js +0 -28
  303. package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -5167
  304. package/dist/esm/anyspend/types/req-res/getOrderAndTransactions.js +0 -21
  305. package/dist/esm/anyspend/types/req-res/getOrderByCreator.d.ts +0 -28
  306. package/dist/esm/anyspend/types/req-res/getOrderByCreator.js +0 -8
  307. package/dist/esm/anyspend/types/req-res/getOrderHistory.d.ts +0 -2117
  308. package/dist/esm/anyspend/types/req-res/getOrderHistory.js +0 -8
  309. package/dist/esm/anyspend/types/req-res/getQuote.d.ts +0 -290
  310. package/dist/esm/anyspend/types/req-res/getQuote.js +0 -48
  311. package/dist/esm/anyspend/types/req-res/getTokenList.d.ts +0 -63
  312. package/dist/esm/anyspend/types/req-res/getTokenList.js +0 -15
  313. package/dist/esm/anyspend/types/req-res/index.d.ts +0 -7
  314. package/dist/esm/anyspend/types/req-res/index.js +0 -7
  315. package/dist/esm/anyspend/types/req-res/stripe.d.ts +0 -0
  316. package/dist/esm/anyspend/types/req-res/stripe.js +0 -1
  317. package/dist/esm/anyspend/types/swap.d.ts +0 -119
  318. package/dist/esm/anyspend/types/swap.js +0 -10
  319. package/dist/esm/anyspend/types/token.d.ts +0 -34
  320. package/dist/esm/anyspend/types/token.js +0 -11
  321. package/dist/esm/anyspend/types/tournament.d.ts +0 -174
  322. package/dist/esm/anyspend/types/tournament.js +0 -21
  323. package/dist/esm/anyspend/types/transaction.d.ts +0 -84
  324. package/dist/esm/anyspend/types/transaction.js +0 -31
  325. package/dist/types/anyspend/types/bondKit.d.ts +0 -12
  326. package/dist/types/anyspend/types/custom.d.ts +0 -130
  327. package/dist/types/anyspend/types/globalWallet.d.ts +0 -18
  328. package/dist/types/anyspend/types/index.d.ts +0 -13
  329. package/dist/types/anyspend/types/metadata.d.ts +0 -26
  330. package/dist/types/anyspend/types/nft.d.ts +0 -274
  331. package/dist/types/anyspend/types/onramp.d.ts +0 -28
  332. package/dist/types/anyspend/types/order.d.ts +0 -1629
  333. package/dist/types/anyspend/types/relay.d.ts +0 -10
  334. package/dist/types/anyspend/types/req-res/createOrder.d.ts +0 -4026
  335. package/dist/types/anyspend/types/req-res/getCoinbaseOnrampOptions.d.ts +0 -120
  336. package/dist/types/anyspend/types/req-res/getOrderAndTransactions.d.ts +0 -5167
  337. package/dist/types/anyspend/types/req-res/getOrderByCreator.d.ts +0 -28
  338. package/dist/types/anyspend/types/req-res/getOrderHistory.d.ts +0 -2117
  339. package/dist/types/anyspend/types/req-res/getQuote.d.ts +0 -290
  340. package/dist/types/anyspend/types/req-res/getTokenList.d.ts +0 -63
  341. package/dist/types/anyspend/types/req-res/index.d.ts +0 -7
  342. package/dist/types/anyspend/types/req-res/stripe.d.ts +0 -0
  343. package/dist/types/anyspend/types/swap.d.ts +0 -119
  344. package/dist/types/anyspend/types/token.d.ts +0 -34
  345. package/dist/types/anyspend/types/tournament.d.ts +0 -174
  346. package/dist/types/anyspend/types/transaction.d.ts +0 -84
  347. package/src/anyspend/types/bondKit.ts +0 -12
  348. package/src/anyspend/types/custom.ts +0 -17
  349. package/src/anyspend/types/globalWallet.ts +0 -9
  350. package/src/anyspend/types/index.ts +0 -14
  351. package/src/anyspend/types/metadata.ts +0 -41
  352. package/src/anyspend/types/nft.ts +0 -53
  353. package/src/anyspend/types/onramp.ts +0 -16
  354. package/src/anyspend/types/order.ts +0 -88
  355. package/src/anyspend/types/relay.ts +0 -13
  356. package/src/anyspend/types/req-res/createOrder.ts +0 -67
  357. package/src/anyspend/types/req-res/getCoinbaseOnrampOptions.ts +0 -34
  358. package/src/anyspend/types/req-res/getOrderAndTransactions.ts +0 -26
  359. package/src/anyspend/types/req-res/getOrderByCreator.ts +0 -9
  360. package/src/anyspend/types/req-res/getOrderHistory.ts +0 -9
  361. package/src/anyspend/types/req-res/getQuote.ts +0 -65
  362. package/src/anyspend/types/req-res/getTokenList.ts +0 -18
  363. package/src/anyspend/types/req-res/index.ts +0 -7
  364. package/src/anyspend/types/req-res/stripe.ts +0 -0
  365. package/src/anyspend/types/swap.ts +0 -12
  366. package/src/anyspend/types/token.ts +0 -13
  367. package/src/anyspend/types/tournament.ts +0 -26
  368. package/src/anyspend/types/transaction.ts +0 -39
  369. /package/dist/cjs/anyspend/types/{bondKit.js → api_req_res.js} +0 -0
  370. /package/dist/esm/anyspend/types/{bondKit.js → api_req_res.js} +0 -0
@@ -33,32 +33,32 @@ export interface paths {
33
33
  content: {
34
34
  "application/json": {
35
35
  /** @example true */
36
- success?: boolean;
36
+ success: boolean;
37
37
  /** @example Tokens retrieved successfully */
38
- message?: string;
38
+ message: string;
39
39
  /** @description Array of tokens */
40
- data?: {
40
+ data: {
41
41
  /** @description Chain ID */
42
- chainId?: number;
42
+ chainId: number;
43
43
  /** @description Token contract address */
44
- address?: string;
44
+ address: string;
45
45
  /** @description Token symbol */
46
- symbol?: string;
46
+ symbol: string;
47
47
  /** @description Token name */
48
- name?: string;
48
+ name: string;
49
49
  /** @description Token decimals */
50
- decimals?: number;
51
- metadata?: {
50
+ decimals: number;
51
+ metadata: {
52
52
  /** @description Token logo URI */
53
- logoURI?: string;
53
+ logoURI: string;
54
54
  /** @description Whether token is verified */
55
- verified?: boolean;
55
+ verified: boolean;
56
56
  /** @description Whether token is native to chain */
57
- isNative?: boolean;
57
+ isNative: boolean;
58
58
  };
59
59
  }[];
60
60
  /** @example 200 */
61
- statusCode?: number;
61
+ statusCode: number;
62
62
  };
63
63
  };
64
64
  };
@@ -67,11 +67,11 @@ export interface paths {
67
67
  content: {
68
68
  "application/json": {
69
69
  /** @example false */
70
- success?: boolean;
70
+ success: boolean;
71
71
  /** @example Bad request */
72
- message?: string;
72
+ message: string;
73
73
  /** @example 400 */
74
- statusCode?: number;
74
+ statusCode: number;
75
75
  };
76
76
  };
77
77
  };
@@ -90,13 +90,13 @@ export interface paths {
90
90
  content: {
91
91
  "application/json": {
92
92
  /** @example true */
93
- success?: boolean;
93
+ success: boolean;
94
94
  /** @example Service is healthy */
95
- message?: string;
95
+ message: string;
96
96
  /** @example null */
97
- data?: Record<string, never>;
97
+ data?: Record<string, never> | null;
98
98
  /** @example 200 */
99
- statusCode?: number;
99
+ statusCode: number;
100
100
  };
101
101
  };
102
102
  };
@@ -143,12 +143,12 @@ export interface paths {
143
143
  content: {
144
144
  "application/json": {
145
145
  /** @example true */
146
- success?: boolean;
146
+ success: boolean;
147
147
  /** @example Coinbase options retrieved successfully */
148
- message?: string;
149
- data?: {
148
+ message: string;
149
+ data: {
150
150
  /** @description Available payment currencies */
151
- paymentCurrencies?: {
151
+ paymentCurrencies: {
152
152
  /**
153
153
  * @description Payment currency identifier
154
154
  * @example USD
@@ -174,69 +174,69 @@ export interface paths {
174
174
  }[];
175
175
  }[];
176
176
  /** @description Available purchase currencies */
177
- purchaseCurrencies?: {
177
+ purchaseCurrencies: {
178
178
  /**
179
179
  * @description Currency identifier (UUID)
180
180
  * @example 2b92315d-eab7-5bef-84fa-089a131333f5
181
181
  */
182
- id?: string;
182
+ id: string;
183
183
  /**
184
184
  * @description Currency full name
185
185
  * @example USD Coin
186
186
  */
187
- name?: string;
187
+ name: string;
188
188
  /**
189
189
  * @description Currency symbol
190
190
  * @example USDC
191
191
  */
192
- symbol?: string;
192
+ symbol: string;
193
193
  /**
194
194
  * @description Currency icon URL
195
195
  * @example https://dynamic-assets.coinbase.com/3c15df5e2ac7d4abbe9499ed9335041f00c620f28e8de2f93474a9f432058742cdf4674bd43f309e69778a26969dbc009429d4bd59cc5b85b2c6c8a6dc0b57f1/asset_icons/80422be4be5aa1bb4deb72d9f0e9d0f33e05ce6b8fb7c24bb9e14e4adacdf20c.png
196
196
  */
197
- iconUrl?: string;
197
+ iconUrl: string;
198
198
  /** @description Available networks for this currency */
199
- networks?: {
199
+ networks: {
200
200
  /**
201
201
  * @description Network name
202
202
  * @example ethereum
203
203
  */
204
- name?: string;
204
+ name: string;
205
205
  /**
206
206
  * @description Network display name
207
207
  * @example Ethereum
208
208
  */
209
- displayName?: string;
209
+ displayName: string;
210
210
  /**
211
211
  * @description Token contract address on this network
212
212
  * @example 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
213
213
  */
214
- contractAddress?: string;
214
+ contractAddress: string;
215
215
  /**
216
216
  * @description Chain ID for this network
217
217
  * @example 1
218
218
  */
219
- chainId?: string;
219
+ chainId: string;
220
220
  /**
221
221
  * @description Network display name (snake_case version)
222
222
  * @example Ethereum
223
223
  */
224
- display_name?: string;
224
+ display_name: string;
225
225
  /**
226
226
  * @description Token contract address (snake_case version)
227
227
  * @example 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48
228
228
  */
229
- contract_address?: string;
229
+ contract_address: string;
230
230
  /**
231
231
  * @description Chain ID (snake_case version)
232
232
  * @example 1
233
233
  */
234
- chain_id?: string;
234
+ chain_id: string;
235
235
  }[];
236
236
  }[];
237
237
  };
238
238
  /** @example 200 */
239
- statusCode?: number;
239
+ statusCode: number;
240
240
  };
241
241
  };
242
242
  };
@@ -245,11 +245,11 @@ export interface paths {
245
245
  content: {
246
246
  "application/json": {
247
247
  /** @example false */
248
- success?: boolean;
248
+ success: boolean;
249
249
  /** @example Bad request */
250
- message?: string;
250
+ message: string;
251
251
  /** @example 400 */
252
- statusCode?: number;
252
+ statusCode: number;
253
253
  };
254
254
  };
255
255
  };
@@ -282,23 +282,23 @@ export interface paths {
282
282
  content: {
283
283
  "application/json": {
284
284
  /** @example true */
285
- success?: boolean;
285
+ success: boolean;
286
286
  /** @example Stripe support status retrieved successfully */
287
- message?: string;
288
- data?: {
287
+ message: string;
288
+ data: {
289
289
  /**
290
290
  * @description Whether Stripe onramp is supported for this location/amount
291
291
  * @example true
292
292
  */
293
- stripeOnramp?: boolean;
293
+ stripeOnramp: boolean;
294
294
  /**
295
295
  * @description Whether Stripe Web2 onramp is supported for this location/amount
296
296
  * @example false
297
297
  */
298
- stripeWeb2?: boolean;
298
+ stripeWeb2: boolean;
299
299
  };
300
300
  /** @example 200 */
301
- statusCode?: number;
301
+ statusCode: number;
302
302
  };
303
303
  };
304
304
  };
@@ -307,11 +307,11 @@ export interface paths {
307
307
  content: {
308
308
  "application/json": {
309
309
  /** @example false */
310
- success?: boolean;
310
+ success: boolean;
311
311
  /** @example Bad request */
312
- message?: string;
312
+ message: string;
313
313
  /** @example 400 */
314
- statusCode?: number;
314
+ statusCode: number;
315
315
  };
316
316
  };
317
317
  };
@@ -349,147 +349,13 @@ export interface paths {
349
349
  content: {
350
350
  "application/json": {
351
351
  /** @example true */
352
- success?: boolean;
352
+ success: boolean;
353
353
  /** @example Get orders by creator successfully */
354
- message?: string;
354
+ message: string;
355
355
  /** @description Array of orders */
356
- data?: {
357
- /**
358
- * Format: uuid
359
- * @description Unique order identifier
360
- * @example 51d4889c-9733-4941-a9ed-98c0f336d188
361
- */
362
- id?: string;
363
- /**
364
- * @description Order type
365
- * @example swap
366
- * @enum {string}
367
- */
368
- type?: "swap" | "custom";
369
- /**
370
- * @description Address to receive tokens/NFT/etc
371
- * @example 0x58241893ef1f86c9fbd8109cd44ea961fdb474e1
372
- */
373
- recipientAddress?: string;
374
- /**
375
- * @description Global wallet address handling the order
376
- * @example 0xc6608544a3e16c2e94ca1b8c80c842765d0f3ee0
377
- */
378
- globalAddress?: string;
379
- /**
380
- * @description Source chain ID
381
- * @example 8453
382
- */
383
- srcChain?: number;
384
- /**
385
- * @description Destination chain ID
386
- * @example 8453
387
- */
388
- dstChain?: number;
389
- /**
390
- * @description Source token contract address
391
- * @example 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
392
- */
393
- srcTokenAddress?: string;
394
- /**
395
- * @description Destination token contract address
396
- * @example 0x0000000000000000000000000000000000000000
397
- */
398
- dstTokenAddress?: string;
399
- /**
400
- * @description Source amount
401
- * @example 10000000000000
402
- */
403
- srcAmount?: string;
404
- /**
405
- * @description Current order status
406
- * @example executed
407
- */
408
- status?: string;
409
- /**
410
- * @description Error details if order failed
411
- * @example null
412
- */
413
- errorDetails?: string | null;
414
- /**
415
- * @description Creation timestamp
416
- * @example 1752576294028
417
- */
418
- createdAt?: number;
419
- /**
420
- * @description Expiration timestamp
421
- * @example 1752577194028
422
- */
423
- expiredAt?: number;
424
- /**
425
- * @description Order type specific payload
426
- * @example {
427
- * "expectedDstAmount": "1667766525695385",
428
- * "actualDstAmount": null
429
- * }
430
- */
431
- payload?: Record<string, never>;
432
- /**
433
- * @description Display metadata including token information
434
- * @example {
435
- * "srcToken": {
436
- * "chainId": 8453,
437
- * "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
438
- * "symbol": "USDC",
439
- * "name": "USD Coin",
440
- * "decimals": 6,
441
- * "metadata": {
442
- * "logoURI": "https://polygonscan.com/token/images/usdc_32.png"
443
- * }
444
- * },
445
- * "dstToken": {
446
- * "chainId": 8453,
447
- * "address": "0x0000000000000000000000000000000000000000",
448
- * "symbol": "ETH",
449
- * "name": "Ether",
450
- * "decimals": 18,
451
- * "metadata": {
452
- * "logoURI": "https://assets.relay.link/icons/1/light.png"
453
- * }
454
- * }
455
- * }
456
- */
457
- metadata?: Record<string, never>;
458
- /**
459
- * @description Optional creator address
460
- * @example 0x58241893ef1f86c9fbd8109cd44ea961fdb474e1
461
- */
462
- creatorAddress?: string | null;
463
- /**
464
- * @description Optional partner identifier
465
- * @example null
466
- */
467
- partnerId?: string | null;
468
- /**
469
- * @description Onramp configuration if used
470
- * @example {
471
- * "country": "SG",
472
- * "vendor": "stripe-web2",
473
- * "paymentMethod": "",
474
- * "ipAddress": "103.216.223.204",
475
- * "redirectUrl": "https://www.anyspend.com",
476
- * "stripeAmountInCents": 500
477
- * }
478
- */
479
- onrampMetadata?: Record<string, never>;
480
- /**
481
- * @description Quick purchase URL if available
482
- * @example null
483
- */
484
- oneClickBuyUrl?: string | null;
485
- /**
486
- * @description Stripe payment intent ID if using Stripe
487
- * @example null
488
- */
489
- stripePaymentIntentId?: string | null;
490
- }[];
356
+ data: components["schemas"]["Order"][];
491
357
  /** @example 200 */
492
- statusCode?: number;
358
+ statusCode: number;
493
359
  };
494
360
  };
495
361
  };
@@ -498,11 +364,11 @@ export interface paths {
498
364
  content: {
499
365
  "application/json": {
500
366
  /** @example false */
501
- success?: boolean;
367
+ success: boolean;
502
368
  /** @example Bad request */
503
- message?: string;
369
+ message: string;
504
370
  /** @example 400 */
505
- statusCode?: number;
371
+ statusCode: number;
506
372
  };
507
373
  };
508
374
  };
@@ -515,260 +381,7 @@ export interface paths {
515
381
  post: {
516
382
  requestBody: {
517
383
  content: {
518
- "application/json": {
519
- /**
520
- * @description Order type for swap
521
- * @enum {string}
522
- */
523
- type: "swap";
524
- /**
525
- * @description Address to receive the destination tokens
526
- * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
527
- */
528
- recipientAddress: string;
529
- /**
530
- * @description Source chain ID
531
- * @example 1
532
- */
533
- srcChain: number;
534
- /**
535
- * @description Destination chain ID
536
- * @example 8453
537
- */
538
- dstChain: number;
539
- /**
540
- * @description Source token contract address
541
- * @example 0xA0b86a33E6441E8A91DEF8f5663ACb4C9B4a1234
542
- */
543
- srcTokenAddress: string;
544
- /**
545
- * @description Destination token contract address
546
- * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
547
- */
548
- dstTokenAddress: string;
549
- /**
550
- * @description Amount of source tokens to swap
551
- * @example 1000000
552
- */
553
- srcAmount: string;
554
- /** @description Swap-specific payload */
555
- payload: {
556
- /**
557
- * @description Expected amount of destination tokens
558
- * @example 990000
559
- */
560
- expectedDstAmount: string;
561
- /**
562
- * @description Actual received amount (null for new orders)
563
- * @example null
564
- */
565
- actualDstAmount: string | null;
566
- };
567
- /** @description Swap metadata for display purposes */
568
- metadata: {
569
- /** @description Source token details */
570
- srcToken?: {
571
- /**
572
- * @description Token chain ID
573
- * @example 8453
574
- */
575
- chainId?: number;
576
- /**
577
- * @description Token contract address
578
- * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
579
- */
580
- address?: string;
581
- /**
582
- * @description Token symbol
583
- * @example USDC
584
- */
585
- symbol?: string;
586
- /**
587
- * @description Token name
588
- * @example USD Coin
589
- */
590
- name?: string;
591
- /**
592
- * @description Token decimals
593
- * @example 6
594
- */
595
- decimals?: number;
596
- metadata?: {
597
- /**
598
- * @description Token logo URI
599
- * @example https://polygonscan.com/token/images/usdc_32.png
600
- */
601
- logoURI?: string;
602
- };
603
- };
604
- /** @description Destination token details */
605
- dstToken?: {
606
- /**
607
- * @description Token chain ID
608
- * @example 8453
609
- */
610
- chainId?: number;
611
- /**
612
- * @description Token contract address
613
- * @example 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
614
- */
615
- address?: string;
616
- /**
617
- * @description Token symbol
618
- * @example USDC
619
- */
620
- symbol?: string;
621
- /**
622
- * @description Token name
623
- * @example USD Coin
624
- */
625
- name?: string;
626
- /**
627
- * @description Token decimals
628
- * @example 6
629
- */
630
- decimals?: number;
631
- metadata?: {
632
- /**
633
- * @description Token logo URI
634
- * @example https://coin-images.coingecko.com/coins/images/6319/large/usdc.png?1696506694
635
- */
636
- logoURI?: string;
637
- };
638
- };
639
- };
640
- /** @description Optional partner identifier */
641
- partnerId?: string;
642
- /** @description Optional onramp configuration */
643
- onramp?: {
644
- /**
645
- * @description Onramp vendor
646
- * @enum {string}
647
- */
648
- vendor?: "coinbase" | "stripe" | "stripe-web2";
649
- /**
650
- * @description Payment method for onramp
651
- * @example
652
- */
653
- paymentMethod?: string;
654
- /**
655
- * @description Country code for the user
656
- * @example SG
657
- */
658
- country?: string;
659
- /**
660
- * @description User's IP address
661
- * @example 149.88.23.87
662
- */
663
- ipAddress?: string;
664
- /**
665
- * @description URL to redirect after payment
666
- * @example https://www.anyspend.com
667
- */
668
- redirectUrl?: string;
669
- };
670
- /**
671
- * @description Optional address of the order creator
672
- * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
673
- */
674
- creatorAddress?: string;
675
- } | {
676
- /**
677
- * @description Order type for custom execution
678
- * @enum {string}
679
- */
680
- type: "custom";
681
- /**
682
- * @description Address to receive any tokens or execute transaction
683
- * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
684
- */
685
- recipientAddress: string;
686
- /**
687
- * @description Source chain ID for payment
688
- * @example 1
689
- */
690
- srcChain: number;
691
- /**
692
- * @description Destination chain ID where custom execution will occur
693
- * @example 8453
694
- */
695
- dstChain: number;
696
- /**
697
- * @description Payment token contract address
698
- * @example 0xA0b86a33E6441E8A91DEF8f5663ACb4C9B4a1234
699
- */
700
- srcTokenAddress: string;
701
- /**
702
- * @description Token to be used in custom execution
703
- * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
704
- */
705
- dstTokenAddress: string;
706
- /**
707
- * @description Payment amount
708
- * @example 1000000
709
- */
710
- srcAmount: string;
711
- /** @description Custom execution payload */
712
- payload: {
713
- /**
714
- * @description Encoded transaction data
715
- * @example 0x1234567890abcdef...
716
- */
717
- data: string;
718
- /**
719
- * @description Target contract address
720
- * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
721
- */
722
- to: string;
723
- /**
724
- * @description Optional spender address for token approval
725
- * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
726
- */
727
- spenderAddress?: string;
728
- /**
729
- * @description Amount for the custom operation
730
- * @example 1000000
731
- */
732
- amount: string;
733
- };
734
- /** @description Custom metadata for display purposes */
735
- metadata: Record<string, never>;
736
- /** @description Optional partner identifier */
737
- partnerId?: string;
738
- /** @description Optional onramp configuration */
739
- onramp?: {
740
- /**
741
- * @description Onramp vendor
742
- * @enum {string}
743
- */
744
- vendor?: "coinbase" | "stripe" | "stripe-web2";
745
- /**
746
- * @description Payment method for onramp
747
- * @example
748
- */
749
- paymentMethod?: string;
750
- /**
751
- * @description Country code for the user
752
- * @example SG
753
- */
754
- country?: string;
755
- /**
756
- * @description User's IP address
757
- * @example 149.88.23.87
758
- */
759
- ipAddress?: string;
760
- /**
761
- * @description URL to redirect after payment
762
- * @example https://www.anyspend.com
763
- */
764
- redirectUrl?: string;
765
- };
766
- /**
767
- * @description Optional address of the order creator
768
- * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
769
- */
770
- creatorAddress?: string;
771
- };
384
+ "application/json": components["schemas"]["OrderRequest"];
772
385
  };
773
386
  };
774
387
  responses: {
@@ -777,95 +390,12 @@ export interface paths {
777
390
  content: {
778
391
  "application/json": {
779
392
  /** @example true */
780
- success?: boolean;
393
+ success: boolean;
781
394
  /** @example Created order successfully */
782
- message?: string;
783
- /** @description Complete order object */
784
- data?: {
785
- /**
786
- * Format: uuid
787
- * @description Unique order identifier
788
- */
789
- id?: string;
790
- /**
791
- * @description Order type
792
- * @enum {string}
793
- */
794
- type?: "swap" | "custom";
795
- /** @description Address to receive tokens/NFT/etc */
796
- recipientAddress?: string;
797
- /** @description Global wallet address handling the order */
798
- globalAddress?: string;
799
- /** @description Source chain ID */
800
- srcChain?: number;
801
- /** @description Destination chain ID */
802
- dstChain?: number;
803
- /** @description Source token contract address */
804
- srcTokenAddress?: string;
805
- /** @description Destination token contract address */
806
- dstTokenAddress?: string;
807
- /** @description Source amount */
808
- srcAmount?: string;
809
- /**
810
- * @description Current order status
811
- * @example waiting_stripe_payment
812
- * @enum {string}
813
- */
814
- status?: "waiting_stripe_payment" | "pending" | "executed" | "failed" | "expired" | "refunding" | "refunded";
815
- /** @description Error details if order failed */
816
- errorDetails?: string | null;
817
- /** @description Creation timestamp */
818
- createdAt?: number;
819
- /** @description Expiration timestamp */
820
- expiredAt?: number;
821
- /** @description Order type specific payload */
822
- payload?: Record<string, never>;
823
- /** @description Display metadata */
824
- metadata?: Record<string, never>;
825
- /** @description Optional creator address */
826
- creatorAddress?: string | null;
827
- /** @description Optional partner identifier */
828
- partnerId?: string | null;
829
- /** @description Onramp configuration if used */
830
- onrampMetadata?: {
831
- /**
832
- * @description Country code
833
- * @example SG
834
- */
835
- country?: string;
836
- /**
837
- * @description Onramp vendor used
838
- * @example stripe-web2
839
- */
840
- vendor?: string;
841
- /**
842
- * @description Payment method used
843
- * @example
844
- */
845
- paymentMethod?: string;
846
- /**
847
- * @description User's IP address
848
- * @example 149.88.23.82
849
- */
850
- ipAddress?: string;
851
- /**
852
- * @description Redirect URL after payment
853
- * @example https://www.anyspend.com
854
- */
855
- redirectUrl?: string;
856
- /**
857
- * @description Stripe payment amount in cents
858
- * @example 500
859
- */
860
- stripeAmountInCents?: number;
861
- } | null;
862
- /** @description Quick purchase URL if available */
863
- oneClickBuyUrl?: string | null;
864
- /** @description Stripe payment intent ID if using Stripe */
865
- stripePaymentIntentId?: string | null;
866
- };
395
+ message: string;
396
+ data: components["schemas"]["Order"];
867
397
  /** @example 200 */
868
- statusCode?: number;
398
+ statusCode: number;
869
399
  };
870
400
  };
871
401
  };
@@ -874,11 +404,11 @@ export interface paths {
874
404
  content: {
875
405
  "application/json": {
876
406
  /** @example false */
877
- success?: boolean;
407
+ success: boolean;
878
408
  /** @example Bad request */
879
- message?: string;
409
+ message: string;
880
410
  /** @example 400 */
881
- statusCode?: number;
411
+ statusCode: number;
882
412
  };
883
413
  };
884
414
  };
@@ -906,146 +436,11 @@ export interface paths {
906
436
  content: {
907
437
  "application/json": {
908
438
  /** @example true */
909
- success?: boolean;
439
+ success: boolean;
910
440
  /** @example Get order and transactions successfully */
911
- message?: string;
912
- data?: {
913
- /** @description Complete order details */
914
- order?: {
915
- /**
916
- * Format: uuid
917
- * @description Unique order identifier
918
- * @example 5392f7a7-d472-4d6b-9848-bd07117fb82d
919
- */
920
- id?: string;
921
- /**
922
- * @description Order type
923
- * @example swap
924
- * @enum {string}
925
- */
926
- type?: "swap" | "custom";
927
- /**
928
- * @description Address to receive tokens/NFT/etc
929
- * @example 0xb34facb90a200251318e8841c05102366f2158cf
930
- */
931
- recipientAddress?: string;
932
- /**
933
- * @description Global wallet address handling the order
934
- * @example 0xa640beaa78eeb64bb269f2baf8202b9a7316e123
935
- */
936
- globalAddress?: string;
937
- /**
938
- * @description Source chain ID
939
- * @example 8453
940
- */
941
- srcChain?: number;
942
- /**
943
- * @description Destination chain ID
944
- * @example 8453
945
- */
946
- dstChain?: number;
947
- /**
948
- * @description Source token contract address
949
- * @example 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
950
- */
951
- srcTokenAddress?: string;
952
- /**
953
- * @description Destination token contract address
954
- * @example 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
955
- */
956
- dstTokenAddress?: string;
957
- /**
958
- * @description Source amount
959
- * @example 93354000
960
- */
961
- srcAmount?: string;
962
- /**
963
- * @description Current order status
964
- * @example executed
965
- */
966
- status?: string;
967
- /**
968
- * @description Error details if order failed
969
- * @example null
970
- */
971
- errorDetails?: string | null;
972
- /**
973
- * @description Creation timestamp
974
- * @example 1752505794679
975
- */
976
- createdAt?: number;
977
- /**
978
- * @description Expiration timestamp
979
- * @example 1752506694679
980
- */
981
- expiredAt?: number;
982
- /**
983
- * @description Order type specific payload
984
- * @example {
985
- * "expectedDstAmount": "99000000",
986
- * "actualDstAmount": "93354000"
987
- * }
988
- */
989
- payload?: Record<string, never>;
990
- /**
991
- * @description Display metadata including token information
992
- * @example {
993
- * "srcToken": {
994
- * "chainId": 8453,
995
- * "address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
996
- * "symbol": "USDC",
997
- * "name": "USD Coin",
998
- * "decimals": 6,
999
- * "metadata": {
1000
- * "logoURI": "https://polygonscan.com/token/images/usdc_32.png"
1001
- * }
1002
- * },
1003
- * "dstToken": {
1004
- * "chainId": 8453,
1005
- * "address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
1006
- * "symbol": "USDC",
1007
- * "name": "USD Coin",
1008
- * "decimals": 6,
1009
- * "metadata": {
1010
- * "logoURI": "https://coin-images.coingecko.com/coins/images/6319/large/usdc.png?1696506694"
1011
- * }
1012
- * }
1013
- * }
1014
- */
1015
- metadata?: Record<string, never>;
1016
- /**
1017
- * @description Optional creator address
1018
- * @example 0xb34facb90a200251318e8841c05102366f2158cf
1019
- */
1020
- creatorAddress?: string | null;
1021
- /**
1022
- * @description Optional partner identifier
1023
- * @example null
1024
- */
1025
- partnerId?: string | null;
1026
- /**
1027
- * @description Onramp configuration if used
1028
- * @example {
1029
- * "country": "US",
1030
- * "vendor": "stripe-web2",
1031
- * "paymentMethod": "",
1032
- * "ipAddress": "96.225.86.216",
1033
- * "redirectUrl": "https://www.anyspend.com",
1034
- * "stripeAmountInCents": 9900
1035
- * }
1036
- */
1037
- onrampMetadata?: Record<string, never>;
1038
- /**
1039
- * @description Quick purchase URL if available
1040
- * @example null
1041
- */
1042
- oneClickBuyUrl?: string | null;
1043
- /**
1044
- * @description Stripe payment intent ID if using Stripe
1045
- * @example pi_3Rko0sJnoDg53PsP0PDLsHkR
1046
- */
1047
- stripePaymentIntentId?: string | null;
1048
- };
441
+ message: string;
442
+ data: {
443
+ order: components["schemas"]["Order"];
1049
444
  /**
1050
445
  * @description Deposit transactions (payment from user)
1051
446
  * @example [
@@ -1059,118 +454,25 @@ export interface paths {
1059
454
  * }
1060
455
  * ]
1061
456
  */
1062
- depositTxs?: {
1063
- /**
1064
- * Format: uuid
1065
- * @description Associated order ID
1066
- * @example 5392f7a7-d472-4d6b-9848-bd07117fb82d
1067
- */
1068
- orderId?: string;
1069
- /**
1070
- * @description Chain where transaction occurred
1071
- * @example 8453
1072
- */
1073
- chain?: number;
1074
- /**
1075
- * @description Sender address
1076
- * @example 0xa7539e73700B1726aBA29526606442A491Ef5747
1077
- */
1078
- from?: string;
1079
- /**
1080
- * @description Transaction hash
1081
- * @example 0x60ece99a645201668d20db6775a6b3d30967433ff0750b356cdad46d3e13f9c8
1082
- */
1083
- txHash?: string;
1084
- /**
1085
- * @description Transaction amount
1086
- * @example 93354000
1087
- */
1088
- amount?: string;
1089
- /**
1090
- * @description Transaction timestamp
1091
- * @example 1752505811105
1092
- */
1093
- createdAt?: number;
1094
- }[] | null;
1095
- /**
1096
- * @description Cross-chain relay transaction
1097
- * @example {
457
+ depositTxs: components["schemas"]["DepositTx"][] | null;
458
+ /** @example {
1098
459
  * "orderId": "5392f7a7-d472-4d6b-9848-bd07117fb82d",
1099
460
  * "chain": 8453,
1100
461
  * "txHash": "0x9df917e14bb089f74763d1d2662761d75c97a5a068b8a9e411c3d384c9c40d19",
1101
462
  * "status": "success",
1102
463
  * "createdAt": 1752505817654
1103
- * }
1104
- */
1105
- relayTx?: {
1106
- /**
1107
- * Format: uuid
1108
- * @description Associated order ID
1109
- * @example 5392f7a7-d472-4d6b-9848-bd07117fb82d
1110
- */
1111
- orderId?: string;
1112
- /**
1113
- * @description Chain where relay occurred
1114
- * @example 8453
1115
- */
1116
- chain?: number;
1117
- /**
1118
- * @description Relay transaction hash
1119
- * @example 0x9df917e14bb089f74763d1d2662761d75c97a5a068b8a9e411c3d384c9c40d19
1120
- */
1121
- txHash?: string;
1122
- /**
1123
- * @description Relay transaction status
1124
- * @example success
1125
- */
1126
- status?: string;
1127
- /**
1128
- * @description Relay timestamp
1129
- * @example 1752505817654
1130
- */
1131
- createdAt?: number;
1132
- } | null;
1133
- /**
1134
- * @description Final execution transaction (NFT mint, tournament join, etc)
1135
- * @example null
1136
- */
1137
- executeTx?: {
1138
- /**
1139
- * Format: uuid
1140
- * @description Associated order ID
1141
- */
1142
- orderId?: string;
1143
- /** @description Chain where execution occurred */
1144
- chain?: number;
1145
- /** @description Execution transaction hash */
1146
- txHash?: string;
1147
- /** @description Execution timestamp */
1148
- createdAt?: number;
1149
- } | null;
464
+ * } */
465
+ relayTx: components["schemas"]["RelayTx"] | null;
466
+ /** @example null */
467
+ executeTx: components["schemas"]["ExecuteTx"] | null;
1150
468
  /**
1151
469
  * @description Refund transactions if order failed
1152
470
  * @example null
1153
471
  */
1154
- refundTxs?: {
1155
- /**
1156
- * Format: uuid
1157
- * @description Associated order ID
1158
- */
1159
- orderId?: string;
1160
- /** @description Chain where refund occurred */
1161
- chain?: number;
1162
- /** @description Refund transaction hash */
1163
- txHash?: string;
1164
- /** @description Refunded amount */
1165
- amount?: string;
1166
- /** @description Refund status */
1167
- status?: string;
1168
- /** @description Refund timestamp */
1169
- createdAt?: number;
1170
- }[] | null;
472
+ refundTxs: components["schemas"]["RefundTx"][] | null;
1171
473
  };
1172
474
  /** @example 200 */
1173
- statusCode?: number;
475
+ statusCode: number;
1174
476
  };
1175
477
  };
1176
478
  };
@@ -1179,11 +481,11 @@ export interface paths {
1179
481
  content: {
1180
482
  "application/json": {
1181
483
  /** @example false */
1182
- success?: boolean;
484
+ success: boolean;
1183
485
  /** @example Bad request */
1184
- message?: string;
486
+ message: string;
1185
487
  /** @example 400 */
1186
- statusCode?: number;
488
+ statusCode: number;
1187
489
  };
1188
490
  };
1189
491
  };
@@ -1192,11 +494,11 @@ export interface paths {
1192
494
  content: {
1193
495
  "application/json": {
1194
496
  /** @example false */
1195
- success?: boolean;
497
+ success: boolean;
1196
498
  /** @example Order not found */
1197
- message?: string;
499
+ message: string;
1198
500
  /** @example 404 */
1199
- statusCode?: number;
501
+ statusCode: number;
1200
502
  };
1201
503
  };
1202
504
  };
@@ -1206,7 +508,7 @@ export interface paths {
1206
508
  "/orders/quote": {
1207
509
  /**
1208
510
  * Get anyspend quote
1209
- * @description Retrieves a quote for cross-chain token relay
511
+ * @description Retrieves a quote to swap or execute contract
1210
512
  */
1211
513
  post: {
1212
514
  requestBody: {
@@ -1294,6 +596,42 @@ export interface paths {
1294
596
  * @enum {string}
1295
597
  */
1296
598
  onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
599
+ } | {
600
+ /** @enum {string} */
601
+ type: "mint_nft";
602
+ srcChain: number;
603
+ dstChain: number;
604
+ srcTokenAddress: string;
605
+ dstTokenAddress: string;
606
+ /** @enum {string} */
607
+ onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
608
+ contractAddress: string;
609
+ tokenId?: number | null;
610
+ /** @enum {string} */
611
+ contractType: "erc721" | "erc1155";
612
+ price: string;
613
+ } | {
614
+ /** @enum {string} */
615
+ type: "join_tournament";
616
+ srcChain: number;
617
+ dstChain: number;
618
+ srcTokenAddress: string;
619
+ dstTokenAddress: string;
620
+ /** @enum {string} */
621
+ onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
622
+ contractAddress: string;
623
+ price: string;
624
+ } | {
625
+ /** @enum {string} */
626
+ type: "fund_tournament";
627
+ srcChain: number;
628
+ dstChain: number;
629
+ srcTokenAddress: string;
630
+ dstTokenAddress: string;
631
+ /** @enum {string} */
632
+ onrampVendor?: "coinbase" | "stripe" | "stripe-web2";
633
+ contractAddress: string;
634
+ fundAmount: string;
1297
635
  };
1298
636
  };
1299
637
  };
@@ -1303,10 +641,10 @@ export interface paths {
1303
641
  content: {
1304
642
  "application/json": {
1305
643
  /** @example true */
1306
- success?: boolean;
644
+ success: boolean;
1307
645
  /** @example Get quote successfully */
1308
- message?: string;
1309
- data?: {
646
+ message: string;
647
+ data: {
1310
648
  /**
1311
649
  * @description Type of operation
1312
650
  * @example swap
@@ -1466,7 +804,7 @@ export interface paths {
1466
804
  userBalance?: string;
1467
805
  };
1468
806
  /** @example 200 */
1469
- statusCode?: number;
807
+ statusCode: number;
1470
808
  };
1471
809
  };
1472
810
  };
@@ -1475,11 +813,11 @@ export interface paths {
1475
813
  content: {
1476
814
  "application/json": {
1477
815
  /** @example false */
1478
- success?: boolean;
816
+ success: boolean;
1479
817
  /** @example Bad request */
1480
- message?: string;
818
+ message: string;
1481
819
  /** @example 400 */
1482
- statusCode?: number;
820
+ statusCode: number;
1483
821
  };
1484
822
  };
1485
823
  };
@@ -1507,16 +845,16 @@ export interface paths {
1507
845
  content: {
1508
846
  "application/json": {
1509
847
  /** @example true */
1510
- success?: boolean;
848
+ success: boolean;
1511
849
  /** @example Client secret retrieved */
1512
- message?: string;
850
+ message: string;
1513
851
  /**
1514
852
  * @description Stripe client secret for the payment intent
1515
853
  * @example pi_3RlHbVJnoDg53PsP1349cXlR_secret_084W7pxxba11lTUHWbmeZlXi0
1516
854
  */
1517
- data?: string;
855
+ data: string;
1518
856
  /** @example 200 */
1519
- statusCode?: number;
857
+ statusCode: number;
1520
858
  };
1521
859
  };
1522
860
  };
@@ -1525,11 +863,11 @@ export interface paths {
1525
863
  content: {
1526
864
  "application/json": {
1527
865
  /** @example false */
1528
- success?: boolean;
866
+ success: boolean;
1529
867
  /** @example PaymentIntentId is required */
1530
- message?: string;
868
+ message: string;
1531
869
  /** @example 400 */
1532
- statusCode?: number;
870
+ statusCode: number;
1533
871
  };
1534
872
  };
1535
873
  };
@@ -1539,7 +877,850 @@ export interface paths {
1539
877
  }
1540
878
  export type webhooks = Record<string, never>;
1541
879
  export interface components {
1542
- schemas: never;
880
+ schemas: {
881
+ /** @description Token details */
882
+ Token: {
883
+ /**
884
+ * @description Token chain ID
885
+ * @example 8453
886
+ */
887
+ chainId: number;
888
+ /**
889
+ * @description Token contract address
890
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
891
+ */
892
+ address: string;
893
+ /**
894
+ * @description Token symbol
895
+ * @example USDC
896
+ */
897
+ symbol: string;
898
+ /**
899
+ * @description Token name
900
+ * @example USD Coin
901
+ */
902
+ name: string;
903
+ /**
904
+ * @description Token decimals
905
+ * @example 6
906
+ */
907
+ decimals: number;
908
+ metadata: {
909
+ /**
910
+ * @description Token logo URI
911
+ * @example https://polygonscan.com/token/images/usdc_32.png
912
+ */
913
+ logoURI?: string;
914
+ };
915
+ };
916
+ /** @description Onramp configuration */
917
+ OnrampMetadata: {
918
+ /**
919
+ * @description Country code
920
+ * @example US
921
+ */
922
+ country?: string;
923
+ /**
924
+ * @description Onramp vendor used
925
+ * @example stripe-web2
926
+ * @enum {string}
927
+ */
928
+ vendor?: "coinbase" | "stripe" | "stripe-web2";
929
+ /**
930
+ * @description Payment method used
931
+ * @example
932
+ */
933
+ paymentMethod?: string;
934
+ /**
935
+ * @description User's IP address
936
+ * @example 96.225.86.216
937
+ */
938
+ ipAddress?: string;
939
+ /**
940
+ * @description Redirect URL after payment
941
+ * @example https://www.anyspend.com
942
+ */
943
+ redirectUrl?: string;
944
+ /**
945
+ * @description Stripe payment amount in cents
946
+ * @example 9900
947
+ */
948
+ stripeAmountInCents?: number;
949
+ };
950
+ /** @description Optional onramp configuration */
951
+ Onramp: {
952
+ /**
953
+ * @description Onramp vendor
954
+ * @enum {string}
955
+ */
956
+ vendor?: "coinbase" | "stripe" | "stripe-web2";
957
+ /**
958
+ * @description Payment method for onramp
959
+ * @example
960
+ */
961
+ paymentMethod?: string;
962
+ /**
963
+ * @description Country code for the user
964
+ * @example SG
965
+ */
966
+ country?: string;
967
+ /**
968
+ * @description User's IP address
969
+ * @example 149.88.23.87
970
+ */
971
+ ipAddress?: string;
972
+ /**
973
+ * @description URL to redirect after payment
974
+ * @example https://www.anyspend.com
975
+ */
976
+ redirectUrl?: string;
977
+ };
978
+ /** @description Tournament details */
979
+ Tournament: {
980
+ /**
981
+ * @description Tournament slug identifier
982
+ * @example summer-championship-2024
983
+ */
984
+ slug: string;
985
+ /**
986
+ * @description Tournament name
987
+ * @example Summer Championship 2024
988
+ */
989
+ name: string;
990
+ /**
991
+ * @description Tournament description
992
+ * @example The biggest tournament of the summer
993
+ */
994
+ description: string;
995
+ /**
996
+ * @description Tournament image URL
997
+ * @example https://example.com/tournament.png
998
+ */
999
+ imageUrl: string;
1000
+ };
1001
+ /** @description ERC721 NFT */
1002
+ ERC721NFT: {
1003
+ /**
1004
+ * @description NFT type
1005
+ * @enum {string}
1006
+ */
1007
+ type: "erc721";
1008
+ /**
1009
+ * @description NFT contract address
1010
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1011
+ */
1012
+ contractAddress: string;
1013
+ /**
1014
+ * @description NFT name
1015
+ * @example Cool NFT
1016
+ */
1017
+ name: string;
1018
+ /**
1019
+ * @description NFT description
1020
+ * @example A very cool NFT
1021
+ */
1022
+ description: string;
1023
+ /**
1024
+ * @description NFT image URL
1025
+ * @example https://example.com/nft.png
1026
+ */
1027
+ imageUrl: string;
1028
+ };
1029
+ /** @description ERC1155 NFT */
1030
+ ERC1155NFT: {
1031
+ /**
1032
+ * @description NFT type
1033
+ * @enum {string}
1034
+ */
1035
+ type: "erc1155";
1036
+ /**
1037
+ * @description NFT contract address
1038
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1039
+ */
1040
+ contractAddress: string;
1041
+ /**
1042
+ * @description NFT name
1043
+ * @example Cool NFT
1044
+ */
1045
+ name: string;
1046
+ /**
1047
+ * @description NFT description
1048
+ * @example A very cool NFT
1049
+ */
1050
+ description: string;
1051
+ /**
1052
+ * @description NFT image URL
1053
+ * @example https://example.com/nft.png
1054
+ */
1055
+ imageUrl: string;
1056
+ /**
1057
+ * @description Token ID for ERC1155
1058
+ * @example 1
1059
+ */
1060
+ tokenId: number;
1061
+ };
1062
+ NFT: components["schemas"]["ERC721NFT"] | components["schemas"]["ERC1155NFT"];
1063
+ /** @description Swap-specific payload */
1064
+ SwapPayload: {
1065
+ /**
1066
+ * @description Expected amount of destination tokens
1067
+ * @example 990000
1068
+ */
1069
+ expectedDstAmount: string;
1070
+ /**
1071
+ * @description Actual received amount (null for new orders)
1072
+ * @example null
1073
+ */
1074
+ actualDstAmount: string | null;
1075
+ };
1076
+ /** @description Custom execution payload */
1077
+ CustomPayload: {
1078
+ /**
1079
+ * @description Encoded transaction data
1080
+ * @example 0x1234567890abcdef...
1081
+ */
1082
+ data: string;
1083
+ /**
1084
+ * @description Target contract address
1085
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1086
+ */
1087
+ to: string;
1088
+ /**
1089
+ * @description Optional spender address for token approval
1090
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1091
+ */
1092
+ spenderAddress?: string;
1093
+ /**
1094
+ * @description Amount for the custom operation
1095
+ * @example 1000000
1096
+ */
1097
+ amount: string;
1098
+ };
1099
+ /** @description NFT minting payload */
1100
+ MintNftPayload: {
1101
+ /**
1102
+ * @description NFT contract address
1103
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1104
+ */
1105
+ contractAddress: string;
1106
+ /**
1107
+ * @description Token ID (for ERC1155, null for ERC721)
1108
+ * @example null
1109
+ */
1110
+ tokenId: number | null;
1111
+ /**
1112
+ * @description Type of NFT contract
1113
+ * @example erc721
1114
+ * @enum {string}
1115
+ */
1116
+ contractType: "erc721" | "erc1155";
1117
+ /**
1118
+ * @description Price to mint the NFT
1119
+ * @example 1000000
1120
+ */
1121
+ nftPrice: string;
1122
+ };
1123
+ /** @description Tournament joining payload */
1124
+ JoinTournamentPayload: {
1125
+ /**
1126
+ * @description Tournament contract address
1127
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1128
+ */
1129
+ contractAddress: string;
1130
+ /**
1131
+ * @description Tournament entry price
1132
+ * @example 1000000
1133
+ */
1134
+ entryPrice: string;
1135
+ };
1136
+ /** @description Tournament funding payload */
1137
+ FundTournamentPayload: {
1138
+ /**
1139
+ * @description Tournament contract address
1140
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1141
+ */
1142
+ contractAddress: string;
1143
+ /**
1144
+ * @description Amount to fund the tournament
1145
+ * @example 1000000
1146
+ */
1147
+ fundAmount: string;
1148
+ };
1149
+ /** @description Swap metadata for display purposes */
1150
+ SwapMetadata: {
1151
+ srcToken: components["schemas"]["Token"];
1152
+ dstToken: components["schemas"]["Token"];
1153
+ };
1154
+ /** @description Custom metadata for display purposes */
1155
+ CustomMetadata: {
1156
+ srcToken: components["schemas"]["Token"];
1157
+ dstToken: components["schemas"]["Token"];
1158
+ /**
1159
+ * @description Optional custom action identifier
1160
+ * @example claim-reward
1161
+ */
1162
+ action?: string;
1163
+ };
1164
+ /** @description NFT metadata */
1165
+ MintNftMetadata: {
1166
+ srcToken: components["schemas"]["Token"];
1167
+ dstToken: components["schemas"]["Token"];
1168
+ nft: components["schemas"]["NFT"];
1169
+ };
1170
+ /** @description Tournament metadata */
1171
+ TournamentMetadata: {
1172
+ srcToken: components["schemas"]["Token"];
1173
+ dstToken: components["schemas"]["Token"];
1174
+ tournament: components["schemas"]["Tournament"];
1175
+ };
1176
+ /** @description Base order fields */
1177
+ BaseOrder: {
1178
+ /**
1179
+ * Format: uuid
1180
+ * @description Unique order identifier
1181
+ * @example 5392f7a7-d472-4d6b-9848-bd07117fb82d
1182
+ */
1183
+ id: string;
1184
+ /**
1185
+ * @description Address to receive tokens/NFT/etc
1186
+ * @example 0xb34facb90a200251318e8841c05102366f2158cf
1187
+ */
1188
+ recipientAddress: string;
1189
+ /**
1190
+ * @description Global wallet address handling the order
1191
+ * @example 0xa640beaa78eeb64bb269f2baf8202b9a7316e123
1192
+ */
1193
+ globalAddress: string;
1194
+ /**
1195
+ * @description Source chain ID
1196
+ * @example 8453
1197
+ */
1198
+ srcChain: number;
1199
+ /**
1200
+ * @description Destination chain ID
1201
+ * @example 8453
1202
+ */
1203
+ dstChain: number;
1204
+ /**
1205
+ * @description Source token contract address
1206
+ * @example 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
1207
+ */
1208
+ srcTokenAddress: string;
1209
+ /**
1210
+ * @description Destination token contract address
1211
+ * @example 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
1212
+ */
1213
+ dstTokenAddress: string;
1214
+ /**
1215
+ * @description Source amount
1216
+ * @example 93354000
1217
+ */
1218
+ srcAmount: string;
1219
+ /**
1220
+ * @description Current order status
1221
+ * @example executed
1222
+ * @enum {string}
1223
+ */
1224
+ status: "scanning_deposit_transaction" | "waiting_stripe_payment" | "expired" | "sending_token_from_vault" | "relay" | "executed" | "refunding" | "refunded" | "failure";
1225
+ /**
1226
+ * @description Error details if order failed
1227
+ * @example null
1228
+ */
1229
+ errorDetails: string | null;
1230
+ /**
1231
+ * @description Creation timestamp
1232
+ * @example 1752505794679
1233
+ */
1234
+ createdAt: number;
1235
+ /**
1236
+ * @description Expiration timestamp
1237
+ * @example 1752506694679
1238
+ */
1239
+ expiredAt: number;
1240
+ /**
1241
+ * @description Optional creator address
1242
+ * @example 0xb34facb90a200251318e8841c05102366f2158cf
1243
+ */
1244
+ creatorAddress: string | null;
1245
+ /**
1246
+ * @description Optional partner identifier
1247
+ * @example null
1248
+ */
1249
+ partnerId: string | null;
1250
+ /** @description Onramp configuration if used */
1251
+ onrampMetadata: components["schemas"]["OnrampMetadata"] | null;
1252
+ /**
1253
+ * @description Quick purchase URL if available
1254
+ * @example null
1255
+ */
1256
+ oneClickBuyUrl: string | null;
1257
+ /**
1258
+ * @description Stripe payment intent ID if using Stripe
1259
+ * @example pi_3Rko0sJnoDg53PsP0PDLsHkR
1260
+ */
1261
+ stripePaymentIntentId: string | null;
1262
+ };
1263
+ SwapOrder: components["schemas"]["BaseOrder"] & {
1264
+ /**
1265
+ * @description Order type
1266
+ * @enum {string}
1267
+ */
1268
+ type: "swap";
1269
+ payload: components["schemas"]["SwapPayload"];
1270
+ metadata: components["schemas"]["SwapMetadata"];
1271
+ };
1272
+ CustomOrder: components["schemas"]["BaseOrder"] & {
1273
+ /**
1274
+ * @description Order type
1275
+ * @enum {string}
1276
+ */
1277
+ type: "custom";
1278
+ payload: components["schemas"]["CustomPayload"];
1279
+ metadata: components["schemas"]["CustomMetadata"];
1280
+ };
1281
+ MintNftOrder: components["schemas"]["BaseOrder"] & {
1282
+ /**
1283
+ * @description Order type
1284
+ * @enum {string}
1285
+ */
1286
+ type: "mint_nft";
1287
+ payload: components["schemas"]["MintNftPayload"];
1288
+ metadata: components["schemas"]["MintNftMetadata"];
1289
+ };
1290
+ JoinTournamentOrder: components["schemas"]["BaseOrder"] & {
1291
+ /**
1292
+ * @description Order type
1293
+ * @enum {string}
1294
+ */
1295
+ type: "join_tournament";
1296
+ payload: components["schemas"]["JoinTournamentPayload"];
1297
+ metadata: components["schemas"]["TournamentMetadata"];
1298
+ };
1299
+ FundTournamentOrder: components["schemas"]["BaseOrder"] & {
1300
+ /**
1301
+ * @description Order type
1302
+ * @enum {string}
1303
+ */
1304
+ type: "fund_tournament";
1305
+ payload: components["schemas"]["FundTournamentPayload"];
1306
+ metadata: components["schemas"]["TournamentMetadata"];
1307
+ };
1308
+ Order: components["schemas"]["SwapOrder"] | components["schemas"]["CustomOrder"] | components["schemas"]["MintNftOrder"] | components["schemas"]["JoinTournamentOrder"] | components["schemas"]["FundTournamentOrder"];
1309
+ /** @description Swap order request */
1310
+ SwapOrderRequest: {
1311
+ /**
1312
+ * @description Order type
1313
+ * @enum {string}
1314
+ */
1315
+ type: "swap";
1316
+ /**
1317
+ * @description Address to receive the destination tokens
1318
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1319
+ */
1320
+ recipientAddress: string;
1321
+ /**
1322
+ * @description Source chain ID
1323
+ * @example 1
1324
+ */
1325
+ srcChain: number;
1326
+ /**
1327
+ * @description Destination chain ID
1328
+ * @example 8453
1329
+ */
1330
+ dstChain: number;
1331
+ /**
1332
+ * @description Source token contract address
1333
+ * @example 0xA0b86a33E6441E8A91DEF8f5663ACb4C9B4a1234
1334
+ */
1335
+ srcTokenAddress: string;
1336
+ /**
1337
+ * @description Destination token contract address
1338
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1339
+ */
1340
+ dstTokenAddress: string;
1341
+ /**
1342
+ * @description Amount of source tokens to swap
1343
+ * @example 1000000
1344
+ */
1345
+ srcAmount: string;
1346
+ payload: components["schemas"]["SwapPayload"];
1347
+ metadata: components["schemas"]["SwapMetadata"];
1348
+ /** @description Optional partner identifier */
1349
+ partnerId?: string;
1350
+ onramp?: components["schemas"]["Onramp"];
1351
+ /**
1352
+ * @description Optional address of the order creator
1353
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1354
+ */
1355
+ creatorAddress?: string;
1356
+ };
1357
+ /** @description Custom order request */
1358
+ CustomOrderRequest: {
1359
+ /**
1360
+ * @description Order type
1361
+ * @enum {string}
1362
+ */
1363
+ type: "custom";
1364
+ /**
1365
+ * @description Address to receive any tokens or execute transaction
1366
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1367
+ */
1368
+ recipientAddress: string;
1369
+ /**
1370
+ * @description Source chain ID for payment
1371
+ * @example 1
1372
+ */
1373
+ srcChain: number;
1374
+ /**
1375
+ * @description Destination chain ID where custom execution will occur
1376
+ * @example 8453
1377
+ */
1378
+ dstChain: number;
1379
+ /**
1380
+ * @description Payment token contract address
1381
+ * @example 0xA0b86a33E6441E8A91DEF8f5663ACb4C9B4a1234
1382
+ */
1383
+ srcTokenAddress: string;
1384
+ /**
1385
+ * @description Token to be used in custom execution
1386
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1387
+ */
1388
+ dstTokenAddress: string;
1389
+ /**
1390
+ * @description Payment amount
1391
+ * @example 1000000
1392
+ */
1393
+ srcAmount: string;
1394
+ payload: components["schemas"]["CustomPayload"];
1395
+ metadata: components["schemas"]["CustomMetadata"];
1396
+ /** @description Optional partner identifier */
1397
+ partnerId?: string;
1398
+ onramp?: components["schemas"]["Onramp"];
1399
+ /**
1400
+ * @description Optional address of the order creator
1401
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1402
+ */
1403
+ creatorAddress?: string;
1404
+ };
1405
+ /** @description Mint NFT order request */
1406
+ MintNftOrderRequest: {
1407
+ /**
1408
+ * @description Order type
1409
+ * @enum {string}
1410
+ */
1411
+ type: "mint_nft";
1412
+ /**
1413
+ * @description Address to receive the NFT
1414
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1415
+ */
1416
+ recipientAddress: string;
1417
+ /**
1418
+ * @description Source chain ID for payment
1419
+ * @example 1
1420
+ */
1421
+ srcChain: number;
1422
+ /**
1423
+ * @description Destination chain ID where NFT exists
1424
+ * @example 8453
1425
+ */
1426
+ dstChain: number;
1427
+ /**
1428
+ * @description Payment token contract address
1429
+ * @example 0xA0b86a33E6441E8A91DEF8f5663ACb4C9B4a1234
1430
+ */
1431
+ srcTokenAddress: string;
1432
+ /**
1433
+ * @description NFT contract address
1434
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1435
+ */
1436
+ dstTokenAddress: string;
1437
+ /**
1438
+ * @description Payment amount
1439
+ * @example 1000000
1440
+ */
1441
+ srcAmount: string;
1442
+ payload: components["schemas"]["MintNftPayload"];
1443
+ metadata: components["schemas"]["MintNftMetadata"];
1444
+ /** @description Optional partner identifier */
1445
+ partnerId?: string;
1446
+ onramp?: components["schemas"]["Onramp"];
1447
+ /**
1448
+ * @description Optional address of the order creator
1449
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1450
+ */
1451
+ creatorAddress?: string;
1452
+ };
1453
+ /** @description Join tournament order request */
1454
+ JoinTournamentOrderRequest: {
1455
+ /**
1456
+ * @description Order type
1457
+ * @enum {string}
1458
+ */
1459
+ type: "join_tournament";
1460
+ /**
1461
+ * @description Participant's address
1462
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1463
+ */
1464
+ recipientAddress: string;
1465
+ /**
1466
+ * @description Source chain ID for payment
1467
+ * @example 1
1468
+ */
1469
+ srcChain: number;
1470
+ /**
1471
+ * @description Destination chain for tournament contract
1472
+ * @example 8453
1473
+ */
1474
+ dstChain: number;
1475
+ /**
1476
+ * @description Payment token contract address
1477
+ * @example 0xA0b86a33E6441E8A91DEF8f5663ACb4C9B4a1234
1478
+ */
1479
+ srcTokenAddress: string;
1480
+ /**
1481
+ * @description Tournament contract address
1482
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1483
+ */
1484
+ dstTokenAddress: string;
1485
+ /**
1486
+ * @description Entry fee amount
1487
+ * @example 1000000
1488
+ */
1489
+ srcAmount: string;
1490
+ payload: components["schemas"]["JoinTournamentPayload"];
1491
+ metadata: components["schemas"]["TournamentMetadata"];
1492
+ /** @description Optional partner identifier */
1493
+ partnerId?: string;
1494
+ onramp?: components["schemas"]["Onramp"];
1495
+ /**
1496
+ * @description Optional address of the order creator
1497
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1498
+ */
1499
+ creatorAddress?: string;
1500
+ };
1501
+ /** @description Fund tournament order request */
1502
+ FundTournamentOrderRequest: {
1503
+ /**
1504
+ * @description Order type
1505
+ * @enum {string}
1506
+ */
1507
+ type: "fund_tournament";
1508
+ /**
1509
+ * @description Funder's address
1510
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1511
+ */
1512
+ recipientAddress: string;
1513
+ /**
1514
+ * @description Source chain ID for payment
1515
+ * @example 1
1516
+ */
1517
+ srcChain: number;
1518
+ /**
1519
+ * @description Destination chain for tournament contract
1520
+ * @example 8453
1521
+ */
1522
+ dstChain: number;
1523
+ /**
1524
+ * @description Payment token contract address
1525
+ * @example 0xA0b86a33E6441E8A91DEF8f5663ACb4C9B4a1234
1526
+ */
1527
+ srcTokenAddress: string;
1528
+ /**
1529
+ * @description Tournament contract address
1530
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1531
+ */
1532
+ dstTokenAddress: string;
1533
+ /**
1534
+ * @description Funding amount
1535
+ * @example 1000000
1536
+ */
1537
+ srcAmount: string;
1538
+ payload: components["schemas"]["FundTournamentPayload"];
1539
+ metadata: components["schemas"]["TournamentMetadata"];
1540
+ /** @description Optional partner identifier */
1541
+ partnerId?: string;
1542
+ onramp?: components["schemas"]["Onramp"];
1543
+ /**
1544
+ * @description Optional address of the order creator
1545
+ * @example 0x58241893EF1f86C9fBd8109Cd44Ea961fDb474e1
1546
+ */
1547
+ creatorAddress?: string;
1548
+ };
1549
+ OrderRequest: components["schemas"]["SwapOrderRequest"] | components["schemas"]["CustomOrderRequest"] | components["schemas"]["MintNftOrderRequest"] | components["schemas"]["JoinTournamentOrderRequest"] | components["schemas"]["FundTournamentOrderRequest"];
1550
+ /** @description Deposit transaction (payment from user) */
1551
+ DepositTx: {
1552
+ /**
1553
+ * Format: uuid
1554
+ * @description Associated order ID
1555
+ * @example 5392f7a7-d472-4d6b-9848-bd07117fb82d
1556
+ */
1557
+ orderId: string;
1558
+ /**
1559
+ * @description Chain where transaction occurred
1560
+ * @example 8453
1561
+ */
1562
+ chain: number;
1563
+ /**
1564
+ * @description Sender address
1565
+ * @example 0xa7539e73700B1726aBA29526606442A491Ef5747
1566
+ */
1567
+ from: string;
1568
+ /**
1569
+ * @description Transaction hash
1570
+ * @example 0x60ece99a645201668d20db6775a6b3d30967433ff0750b356cdad46d3e13f9c8
1571
+ */
1572
+ txHash: string;
1573
+ /**
1574
+ * @description Transaction amount
1575
+ * @example 93354000
1576
+ */
1577
+ amount: string;
1578
+ /**
1579
+ * @description Transaction timestamp
1580
+ * @example 1752505811105
1581
+ */
1582
+ createdAt: number;
1583
+ };
1584
+ /** @description Cross-chain relay transaction */
1585
+ RelayTx: {
1586
+ /**
1587
+ * Format: uuid
1588
+ * @description Associated order ID
1589
+ * @example 5392f7a7-d472-4d6b-9848-bd07117fb82d
1590
+ */
1591
+ orderId: string;
1592
+ /**
1593
+ * @description Chain where relay occurred
1594
+ * @example 8453
1595
+ */
1596
+ chain: number;
1597
+ /**
1598
+ * @description Relay transaction hash
1599
+ * @example 0x9df917e14bb089f74763d1d2662761d75c97a5a068b8a9e411c3d384c9c40d19
1600
+ */
1601
+ txHash: string;
1602
+ /**
1603
+ * @description Relay transaction status
1604
+ * @example success
1605
+ * @enum {string}
1606
+ */
1607
+ status: "pending" | "success" | "failure" | "refund" | "delayed" | "waiting";
1608
+ /**
1609
+ * @description Relay timestamp
1610
+ * @example 1752505817654
1611
+ */
1612
+ createdAt: number;
1613
+ };
1614
+ /** @description Final execution transaction */
1615
+ ExecuteTx: {
1616
+ /**
1617
+ * Format: uuid
1618
+ * @description Associated order ID
1619
+ * @example 5392f7a7-d472-4d6b-9848-bd07117fb82d
1620
+ */
1621
+ orderId: string;
1622
+ /**
1623
+ * @description Chain where execution occurred
1624
+ * @example 8453
1625
+ */
1626
+ chain: number;
1627
+ /**
1628
+ * @description Execution transaction hash
1629
+ * @example 0x1234567890abcdef1234567890abcdef12345678
1630
+ */
1631
+ txHash: string;
1632
+ /**
1633
+ * @description Execution timestamp
1634
+ * @example 1752505820000
1635
+ */
1636
+ createdAt: number;
1637
+ };
1638
+ /** @description Refund transaction if order failed */
1639
+ RefundTx: {
1640
+ /**
1641
+ * Format: uuid
1642
+ * @description Associated order ID
1643
+ * @example 5392f7a7-d472-4d6b-9848-bd07117fb82d
1644
+ */
1645
+ orderId: string;
1646
+ /**
1647
+ * @description Chain where refund occurred
1648
+ * @example 8453
1649
+ */
1650
+ chain: number;
1651
+ /**
1652
+ * @description Refund transaction hash
1653
+ * @example 0xabcdef1234567890abcdef1234567890abcdef12
1654
+ */
1655
+ txHash: string;
1656
+ /**
1657
+ * @description Refunded amount
1658
+ * @example 93354000
1659
+ */
1660
+ amount: string;
1661
+ /**
1662
+ * @description Refund status
1663
+ * @example success
1664
+ * @enum {string}
1665
+ */
1666
+ status: "success" | "failure";
1667
+ /**
1668
+ * @description Refund timestamp
1669
+ * @example 1752505825000
1670
+ */
1671
+ createdAt: number;
1672
+ };
1673
+ /** @description NFT contract details */
1674
+ NftContract: {
1675
+ /**
1676
+ * @description Chain ID where the NFT contract exists
1677
+ * @example 8453
1678
+ */
1679
+ chainId: number;
1680
+ /**
1681
+ * @description NFT contract address
1682
+ * @example 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
1683
+ */
1684
+ contractAddress: string;
1685
+ /**
1686
+ * @description NFT price in raw format
1687
+ * @example 1000000
1688
+ */
1689
+ price: string;
1690
+ /**
1691
+ * @description Human-readable formatted price
1692
+ * @example 1.0
1693
+ */
1694
+ priceFormatted: string;
1695
+ currency: components["schemas"]["Token"];
1696
+ /**
1697
+ * @description NFT image URL
1698
+ * @example https://example.com/nft.png
1699
+ */
1700
+ imageUrl: string;
1701
+ /**
1702
+ * @description NFT name
1703
+ * @example Cool NFT Collection
1704
+ */
1705
+ name: string;
1706
+ /**
1707
+ * @description NFT description
1708
+ * @example A collection of very cool NFTs
1709
+ */
1710
+ description: string;
1711
+ /**
1712
+ * @description Token ID (null for ERC721, specific ID for ERC1155)
1713
+ * @example null
1714
+ */
1715
+ tokenId: number | null;
1716
+ /**
1717
+ * @description NFT contract type
1718
+ * @example erc721
1719
+ * @enum {string}
1720
+ */
1721
+ type: "erc721" | "erc1155";
1722
+ };
1723
+ };
1543
1724
  responses: never;
1544
1725
  parameters: never;
1545
1726
  requestBodies: never;