project-cpu-mcp 0.12.0 → 0.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (418) hide show
  1. package/dist/api/client.d.ts.map +1 -1
  2. package/dist/api/client.js +7 -3
  3. package/dist/api/client.js.map +1 -1
  4. package/dist/api/types.d.ts +12 -1
  5. package/dist/api/types.d.ts.map +1 -1
  6. package/dist/api/types.js +2 -0
  7. package/dist/api/types.js.map +1 -1
  8. package/dist/contracts/approval.constants.d.ts +4 -0
  9. package/dist/contracts/approval.constants.d.ts.map +1 -0
  10. package/dist/contracts/approval.constants.js +4 -0
  11. package/dist/contracts/approval.constants.js.map +1 -0
  12. package/dist/contracts/approval.types.d.ts +9 -0
  13. package/dist/contracts/approval.types.d.ts.map +1 -0
  14. package/dist/contracts/approval.types.js +2 -0
  15. package/dist/contracts/approval.types.js.map +1 -0
  16. package/dist/contracts/approval.utils.d.ts +4 -0
  17. package/dist/contracts/approval.utils.d.ts.map +1 -0
  18. package/dist/contracts/approval.utils.js +41 -0
  19. package/dist/contracts/approval.utils.js.map +1 -0
  20. package/dist/contracts/erc721.abi.d.ts +27 -0
  21. package/dist/contracts/erc721.abi.d.ts.map +1 -0
  22. package/dist/contracts/erc721.abi.js +6 -0
  23. package/dist/contracts/erc721.abi.js.map +1 -0
  24. package/dist/contracts/seaport-events.abi.d.ts +95 -0
  25. package/dist/contracts/seaport-events.abi.d.ts.map +1 -0
  26. package/dist/contracts/seaport-events.abi.js +52 -0
  27. package/dist/contracts/seaport-events.abi.js.map +1 -0
  28. package/dist/contracts/seaport-spender.reader.d.ts +9 -0
  29. package/dist/contracts/seaport-spender.reader.d.ts.map +1 -0
  30. package/dist/contracts/seaport-spender.reader.js +101 -0
  31. package/dist/contracts/seaport-spender.reader.js.map +1 -0
  32. package/dist/contracts/seaport.constants.d.ts +136 -0
  33. package/dist/contracts/seaport.constants.d.ts.map +1 -0
  34. package/dist/contracts/seaport.constants.js +57 -0
  35. package/dist/contracts/seaport.constants.js.map +1 -0
  36. package/dist/contracts/seaport.types.d.ts +34 -0
  37. package/dist/contracts/seaport.types.d.ts.map +1 -0
  38. package/dist/contracts/seaport.types.js +24 -0
  39. package/dist/contracts/seaport.types.js.map +1 -0
  40. package/dist/index.js +11 -1
  41. package/dist/index.js.map +1 -1
  42. package/dist/logger/constants.d.ts.map +1 -1
  43. package/dist/logger/constants.js +2 -0
  44. package/dist/logger/constants.js.map +1 -1
  45. package/dist/paybox/auth/types.d.ts +2 -2
  46. package/dist/paybox/auth/types.d.ts.map +1 -1
  47. package/dist/paybox/sdk/adapter.d.ts +2 -1
  48. package/dist/paybox/sdk/adapter.d.ts.map +1 -1
  49. package/dist/paybox/sdk/adapter.js +24 -0
  50. package/dist/paybox/sdk/adapter.js.map +1 -1
  51. package/dist/paybox/types.d.ts +20 -16
  52. package/dist/paybox/types.d.ts.map +1 -1
  53. package/dist/paybox/types.js +1 -0
  54. package/dist/paybox/types.js.map +1 -1
  55. package/dist/paybox/wallet/manager.d.ts +3 -1
  56. package/dist/paybox/wallet/manager.d.ts.map +1 -1
  57. package/dist/paybox/wallet/manager.js +16 -5
  58. package/dist/paybox/wallet/manager.js.map +1 -1
  59. package/dist/paybox/wallet/rpc.client.d.ts +1 -0
  60. package/dist/paybox/wallet/rpc.client.d.ts.map +1 -1
  61. package/dist/paybox/wallet/rpc.client.js +4 -0
  62. package/dist/paybox/wallet/rpc.client.js.map +1 -1
  63. package/dist/paybox/wallet/utils.d.ts +0 -2
  64. package/dist/paybox/wallet/utils.d.ts.map +1 -1
  65. package/dist/paybox/wallet/utils.js +2 -65
  66. package/dist/paybox/wallet/utils.js.map +1 -1
  67. package/dist/server.constants.d.ts.map +1 -1
  68. package/dist/server.constants.js +13 -19
  69. package/dist/server.constants.js.map +1 -1
  70. package/dist/server.d.ts.map +1 -1
  71. package/dist/server.js +11 -5
  72. package/dist/server.js.map +1 -1
  73. package/dist/services/app-config.utils.d.ts.map +1 -1
  74. package/dist/services/app-config.utils.js +1 -0
  75. package/dist/services/app-config.utils.js.map +1 -1
  76. package/dist/services/auth.service.d.ts.map +1 -1
  77. package/dist/services/auth.service.js +16 -4
  78. package/dist/services/auth.service.js.map +1 -1
  79. package/dist/services/market/acceptance.constants.d.ts +5 -0
  80. package/dist/services/market/acceptance.constants.d.ts.map +1 -0
  81. package/dist/services/market/acceptance.constants.js +6 -0
  82. package/dist/services/market/acceptance.constants.js.map +1 -0
  83. package/dist/services/market/acceptance.service.d.ts +51 -0
  84. package/dist/services/market/acceptance.service.d.ts.map +1 -0
  85. package/dist/services/market/acceptance.service.js +595 -0
  86. package/dist/services/market/acceptance.service.js.map +1 -0
  87. package/dist/services/market/acceptance.types.d.ts +214 -0
  88. package/dist/services/market/acceptance.types.d.ts.map +1 -0
  89. package/dist/services/market/acceptance.types.js +13 -0
  90. package/dist/services/market/acceptance.types.js.map +1 -0
  91. package/dist/services/market/acceptance.utils.d.ts +7 -0
  92. package/dist/services/market/acceptance.utils.d.ts.map +1 -0
  93. package/dist/services/market/acceptance.utils.js +15 -0
  94. package/dist/services/market/acceptance.utils.js.map +1 -0
  95. package/dist/services/market/action.types.d.ts +29 -0
  96. package/dist/services/market/action.types.d.ts.map +1 -0
  97. package/dist/services/market/action.types.js +9 -0
  98. package/dist/services/market/action.types.js.map +1 -0
  99. package/dist/services/market/budget.d.ts +17 -0
  100. package/dist/services/market/budget.d.ts.map +1 -0
  101. package/dist/services/market/budget.js +52 -0
  102. package/dist/services/market/budget.js.map +1 -0
  103. package/dist/services/market/budget.scope.d.ts +4 -0
  104. package/dist/services/market/budget.scope.d.ts.map +1 -0
  105. package/dist/services/market/budget.scope.js +10 -0
  106. package/dist/services/market/budget.scope.js.map +1 -0
  107. package/dist/services/market/budget.utils.d.ts +4 -0
  108. package/dist/services/market/budget.utils.d.ts.map +1 -0
  109. package/dist/services/market/budget.utils.js +29 -0
  110. package/dist/services/market/budget.utils.js.map +1 -0
  111. package/dist/services/market/cancel.abi.d.ts +108 -0
  112. package/dist/services/market/cancel.abi.d.ts.map +1 -0
  113. package/dist/services/market/cancel.abi.js +50 -0
  114. package/dist/services/market/cancel.abi.js.map +1 -0
  115. package/dist/services/market/cancel.constants.d.ts +4 -0
  116. package/dist/services/market/cancel.constants.d.ts.map +1 -0
  117. package/dist/services/market/cancel.constants.js +5 -0
  118. package/dist/services/market/cancel.constants.js.map +1 -0
  119. package/dist/services/market/cancel.service.d.ts +34 -0
  120. package/dist/services/market/cancel.service.d.ts.map +1 -0
  121. package/dist/services/market/cancel.service.js +342 -0
  122. package/dist/services/market/cancel.service.js.map +1 -0
  123. package/dist/services/market/cancel.types.d.ts +87 -0
  124. package/dist/services/market/cancel.types.d.ts.map +1 -0
  125. package/dist/services/market/cancel.types.js +8 -0
  126. package/dist/services/market/cancel.types.js.map +1 -0
  127. package/dist/services/market/cancel.utils.d.ts +7 -0
  128. package/dist/services/market/cancel.utils.d.ts.map +1 -0
  129. package/dist/services/market/cancel.utils.js +71 -0
  130. package/dist/services/market/cancel.utils.js.map +1 -0
  131. package/dist/services/market/client.d.ts +19 -0
  132. package/dist/services/market/client.d.ts.map +1 -0
  133. package/dist/services/market/client.js +198 -0
  134. package/dist/services/market/client.js.map +1 -0
  135. package/dist/services/market/client.types.d.ts +6 -0
  136. package/dist/services/market/client.types.d.ts.map +1 -0
  137. package/dist/services/market/client.types.js +2 -0
  138. package/dist/services/market/client.types.js.map +1 -0
  139. package/dist/services/market/constants.d.ts +21 -0
  140. package/dist/services/market/constants.d.ts.map +1 -0
  141. package/dist/services/market/constants.js +36 -0
  142. package/dist/services/market/constants.js.map +1 -0
  143. package/dist/services/market/error.d.ts +10 -0
  144. package/dist/services/market/error.d.ts.map +1 -0
  145. package/dist/services/market/error.js +18 -0
  146. package/dist/services/market/error.js.map +1 -0
  147. package/dist/services/market/error.utils.d.ts +10 -0
  148. package/dist/services/market/error.utils.d.ts.map +1 -0
  149. package/dist/services/market/error.utils.js +56 -0
  150. package/dist/services/market/error.utils.js.map +1 -0
  151. package/dist/services/market/factory.d.ts +4 -0
  152. package/dist/services/market/factory.d.ts.map +1 -0
  153. package/dist/services/market/factory.js +86 -0
  154. package/dist/services/market/factory.js.map +1 -0
  155. package/dist/services/market/factory.types.d.ts +34 -0
  156. package/dist/services/market/factory.types.d.ts.map +1 -0
  157. package/dist/services/market/factory.types.js +2 -0
  158. package/dist/services/market/factory.types.js.map +1 -0
  159. package/dist/services/market/fulfilment-proof.d.ts +13 -0
  160. package/dist/services/market/fulfilment-proof.d.ts.map +1 -0
  161. package/dist/services/market/fulfilment-proof.js +116 -0
  162. package/dist/services/market/fulfilment-proof.js.map +1 -0
  163. package/dist/services/market/fulfilment-proof.reader.d.ts +8 -0
  164. package/dist/services/market/fulfilment-proof.reader.d.ts.map +1 -0
  165. package/dist/services/market/fulfilment-proof.reader.js +22 -0
  166. package/dist/services/market/fulfilment-proof.reader.js.map +1 -0
  167. package/dist/services/market/fulfilment-proof.types.d.ts +46 -0
  168. package/dist/services/market/fulfilment-proof.types.d.ts.map +1 -0
  169. package/dist/services/market/fulfilment-proof.types.js +6 -0
  170. package/dist/services/market/fulfilment-proof.types.js.map +1 -0
  171. package/dist/services/market/fulfilment-proof.utils.d.ts +19 -0
  172. package/dist/services/market/fulfilment-proof.utils.d.ts.map +1 -0
  173. package/dist/services/market/fulfilment-proof.utils.js +69 -0
  174. package/dist/services/market/fulfilment-proof.utils.js.map +1 -0
  175. package/dist/services/market/idempotency.utils.d.ts +4 -0
  176. package/dist/services/market/idempotency.utils.d.ts.map +1 -0
  177. package/dist/services/market/idempotency.utils.js +15 -0
  178. package/dist/services/market/idempotency.utils.js.map +1 -0
  179. package/dist/services/market/listing.constants.d.ts +7 -0
  180. package/dist/services/market/listing.constants.d.ts.map +1 -0
  181. package/dist/services/market/listing.constants.js +8 -0
  182. package/dist/services/market/listing.constants.js.map +1 -0
  183. package/dist/services/market/listing.service.d.ts +53 -0
  184. package/dist/services/market/listing.service.d.ts.map +1 -0
  185. package/dist/services/market/listing.service.js +671 -0
  186. package/dist/services/market/listing.service.js.map +1 -0
  187. package/dist/services/market/listing.types.d.ts +718 -0
  188. package/dist/services/market/listing.types.d.ts.map +1 -0
  189. package/dist/services/market/listing.types.js +84 -0
  190. package/dist/services/market/listing.types.js.map +1 -0
  191. package/dist/services/market/listing.utils.d.ts +12 -0
  192. package/dist/services/market/listing.utils.d.ts.map +1 -0
  193. package/dist/services/market/listing.utils.js +51 -0
  194. package/dist/services/market/listing.utils.js.map +1 -0
  195. package/dist/services/market/offer.constants.d.ts +8 -0
  196. package/dist/services/market/offer.constants.d.ts.map +1 -0
  197. package/dist/services/market/offer.constants.js +9 -0
  198. package/dist/services/market/offer.constants.js.map +1 -0
  199. package/dist/services/market/offer.service.d.ts +54 -0
  200. package/dist/services/market/offer.service.d.ts.map +1 -0
  201. package/dist/services/market/offer.service.js +757 -0
  202. package/dist/services/market/offer.service.js.map +1 -0
  203. package/dist/services/market/offer.types.d.ts +554 -0
  204. package/dist/services/market/offer.types.d.ts.map +1 -0
  205. package/dist/services/market/offer.types.js +73 -0
  206. package/dist/services/market/offer.types.js.map +1 -0
  207. package/dist/services/market/offer.utils.d.ts +7 -0
  208. package/dist/services/market/offer.utils.d.ts.map +1 -0
  209. package/dist/services/market/offer.utils.js +25 -0
  210. package/dist/services/market/offer.utils.js.map +1 -0
  211. package/dist/services/market/profile.client.d.ts +14 -0
  212. package/dist/services/market/profile.client.d.ts.map +1 -0
  213. package/dist/services/market/profile.client.js +65 -0
  214. package/dist/services/market/profile.client.js.map +1 -0
  215. package/dist/services/market/profile.schemas.d.ts +630 -0
  216. package/dist/services/market/profile.schemas.d.ts.map +1 -0
  217. package/dist/services/market/profile.schemas.js +84 -0
  218. package/dist/services/market/profile.schemas.js.map +1 -0
  219. package/dist/services/market/profile.utils.d.ts +2 -0
  220. package/dist/services/market/profile.utils.d.ts.map +1 -0
  221. package/dist/services/market/profile.utils.js +8 -0
  222. package/dist/services/market/profile.utils.js.map +1 -0
  223. package/dist/services/market/purchase.constants.d.ts +5 -0
  224. package/dist/services/market/purchase.constants.d.ts.map +1 -0
  225. package/dist/services/market/purchase.constants.js +6 -0
  226. package/dist/services/market/purchase.constants.js.map +1 -0
  227. package/dist/services/market/purchase.service.d.ts +48 -0
  228. package/dist/services/market/purchase.service.d.ts.map +1 -0
  229. package/dist/services/market/purchase.service.js +564 -0
  230. package/dist/services/market/purchase.service.js.map +1 -0
  231. package/dist/services/market/purchase.types.d.ts +207 -0
  232. package/dist/services/market/purchase.types.d.ts.map +1 -0
  233. package/dist/services/market/purchase.types.js +13 -0
  234. package/dist/services/market/purchase.types.js.map +1 -0
  235. package/dist/services/market/purchase.utils.d.ts +11 -0
  236. package/dist/services/market/purchase.utils.d.ts.map +1 -0
  237. package/dist/services/market/purchase.utils.js +29 -0
  238. package/dist/services/market/purchase.utils.js.map +1 -0
  239. package/dist/services/market/recovery.constants.d.ts +6 -0
  240. package/dist/services/market/recovery.constants.d.ts.map +1 -0
  241. package/dist/services/market/recovery.constants.js +6 -0
  242. package/dist/services/market/recovery.constants.js.map +1 -0
  243. package/dist/services/market/recovery.store.d.ts +10 -0
  244. package/dist/services/market/recovery.store.d.ts.map +1 -0
  245. package/dist/services/market/recovery.store.js +44 -0
  246. package/dist/services/market/recovery.store.js.map +1 -0
  247. package/dist/services/market/service.d.ts +11 -0
  248. package/dist/services/market/service.d.ts.map +1 -0
  249. package/dist/services/market/service.js +71 -0
  250. package/dist/services/market/service.js.map +1 -0
  251. package/dist/services/market/single-flight.d.ts +6 -0
  252. package/dist/services/market/single-flight.d.ts.map +1 -0
  253. package/dist/services/market/single-flight.js +19 -0
  254. package/dist/services/market/single-flight.js.map +1 -0
  255. package/dist/services/market/snapshot.schemas.d.ts +385 -0
  256. package/dist/services/market/snapshot.schemas.d.ts.map +1 -0
  257. package/dist/services/market/snapshot.schemas.js +67 -0
  258. package/dist/services/market/snapshot.schemas.js.map +1 -0
  259. package/dist/services/market/types.d.ts +787 -0
  260. package/dist/services/market/types.d.ts.map +1 -0
  261. package/dist/services/market/types.js +216 -0
  262. package/dist/services/market/types.js.map +1 -0
  263. package/dist/services/types.d.ts +2 -0
  264. package/dist/services/types.d.ts.map +1 -1
  265. package/dist/services/types.js.map +1 -1
  266. package/dist/session/jwt.utils.d.ts +1 -0
  267. package/dist/session/jwt.utils.d.ts.map +1 -1
  268. package/dist/session/jwt.utils.js +4 -0
  269. package/dist/session/jwt.utils.js.map +1 -1
  270. package/dist/session/manager.d.ts +1 -1
  271. package/dist/session/manager.d.ts.map +1 -1
  272. package/dist/session/manager.js.map +1 -1
  273. package/dist/tools/authenticate.d.ts +1 -1
  274. package/dist/tools/authenticate.d.ts.map +1 -1
  275. package/dist/tools/authenticate.js.map +1 -1
  276. package/dist/tools/config/get-game-config/get-game-config.utils.js +1 -1
  277. package/dist/tools/config/get-game-config/get-game-config.utils.js.map +1 -1
  278. package/dist/tools/market/accept-offer/accept-offer.d.ts +4 -0
  279. package/dist/tools/market/accept-offer/accept-offer.d.ts.map +1 -0
  280. package/dist/tools/market/accept-offer/accept-offer.js +29 -0
  281. package/dist/tools/market/accept-offer/accept-offer.js.map +1 -0
  282. package/dist/tools/market/accept-offer/constants.d.ts +2 -0
  283. package/dist/tools/market/accept-offer/constants.d.ts.map +1 -0
  284. package/dist/tools/market/accept-offer/constants.js +27 -0
  285. package/dist/tools/market/accept-offer/constants.js.map +1 -0
  286. package/dist/tools/market/accept-offer/format.utils.d.ts +3 -0
  287. package/dist/tools/market/accept-offer/format.utils.d.ts.map +1 -0
  288. package/dist/tools/market/accept-offer/format.utils.js +22 -0
  289. package/dist/tools/market/accept-offer/format.utils.js.map +1 -0
  290. package/dist/tools/market/accept-offer/types.d.ts +9 -0
  291. package/dist/tools/market/accept-offer/types.d.ts.map +1 -0
  292. package/dist/tools/market/accept-offer/types.js +14 -0
  293. package/dist/tools/market/accept-offer/types.js.map +1 -0
  294. package/dist/tools/market/buy-cell/buy-cell.d.ts +4 -0
  295. package/dist/tools/market/buy-cell/buy-cell.d.ts.map +1 -0
  296. package/dist/tools/market/buy-cell/buy-cell.js +30 -0
  297. package/dist/tools/market/buy-cell/buy-cell.js.map +1 -0
  298. package/dist/tools/market/buy-cell/constants.d.ts +2 -0
  299. package/dist/tools/market/buy-cell/constants.d.ts.map +1 -0
  300. package/dist/tools/market/buy-cell/constants.js +23 -0
  301. package/dist/tools/market/buy-cell/constants.js.map +1 -0
  302. package/dist/tools/market/buy-cell/format.utils.d.ts +3 -0
  303. package/dist/tools/market/buy-cell/format.utils.d.ts.map +1 -0
  304. package/dist/tools/market/buy-cell/format.utils.js +17 -0
  305. package/dist/tools/market/buy-cell/format.utils.js.map +1 -0
  306. package/dist/tools/market/buy-cell/types.d.ts +6 -0
  307. package/dist/tools/market/buy-cell/types.d.ts.map +1 -0
  308. package/dist/tools/market/buy-cell/types.js +10 -0
  309. package/dist/tools/market/buy-cell/types.js.map +1 -0
  310. package/dist/tools/market/cancel-order/cancel-order.d.ts +4 -0
  311. package/dist/tools/market/cancel-order/cancel-order.d.ts.map +1 -0
  312. package/dist/tools/market/cancel-order/cancel-order.js +29 -0
  313. package/dist/tools/market/cancel-order/cancel-order.js.map +1 -0
  314. package/dist/tools/market/cancel-order/constants.d.ts +2 -0
  315. package/dist/tools/market/cancel-order/constants.d.ts.map +1 -0
  316. package/dist/tools/market/cancel-order/constants.js +22 -0
  317. package/dist/tools/market/cancel-order/constants.js.map +1 -0
  318. package/dist/tools/market/cancel-order/format.utils.d.ts +3 -0
  319. package/dist/tools/market/cancel-order/format.utils.d.ts.map +1 -0
  320. package/dist/tools/market/cancel-order/format.utils.js +13 -0
  321. package/dist/tools/market/cancel-order/format.utils.js.map +1 -0
  322. package/dist/tools/market/cancel-order/types.d.ts +8 -0
  323. package/dist/tools/market/cancel-order/types.d.ts.map +1 -0
  324. package/dist/tools/market/cancel-order/types.js +7 -0
  325. package/dist/tools/market/cancel-order/types.js.map +1 -0
  326. package/dist/tools/market/cell-market/cell-market.d.ts +4 -0
  327. package/dist/tools/market/cell-market/cell-market.d.ts.map +1 -0
  328. package/dist/tools/market/cell-market/cell-market.js +24 -0
  329. package/dist/tools/market/cell-market/cell-market.js.map +1 -0
  330. package/dist/tools/market/cell-market/constants.d.ts +2 -0
  331. package/dist/tools/market/cell-market/constants.d.ts.map +1 -0
  332. package/dist/tools/market/cell-market/constants.js +16 -0
  333. package/dist/tools/market/cell-market/constants.js.map +1 -0
  334. package/dist/tools/market/format.utils.d.ts +8 -0
  335. package/dist/tools/market/format.utils.d.ts.map +1 -0
  336. package/dist/tools/market/format.utils.js +75 -0
  337. package/dist/tools/market/format.utils.js.map +1 -0
  338. package/dist/tools/market/list-cell/constants.d.ts +2 -0
  339. package/dist/tools/market/list-cell/constants.d.ts.map +1 -0
  340. package/dist/tools/market/list-cell/constants.js +23 -0
  341. package/dist/tools/market/list-cell/constants.js.map +1 -0
  342. package/dist/tools/market/list-cell/list-cell.d.ts +4 -0
  343. package/dist/tools/market/list-cell/list-cell.d.ts.map +1 -0
  344. package/dist/tools/market/list-cell/list-cell.js +31 -0
  345. package/dist/tools/market/list-cell/list-cell.js.map +1 -0
  346. package/dist/tools/market/list-cell/types.d.ts +7 -0
  347. package/dist/tools/market/list-cell/types.d.ts.map +1 -0
  348. package/dist/tools/market/list-cell/types.js +15 -0
  349. package/dist/tools/market/list-cell/types.js.map +1 -0
  350. package/dist/tools/market/make-offer/constants.d.ts +2 -0
  351. package/dist/tools/market/make-offer/constants.d.ts.map +1 -0
  352. package/dist/tools/market/make-offer/constants.js +22 -0
  353. package/dist/tools/market/make-offer/constants.js.map +1 -0
  354. package/dist/tools/market/make-offer/format.utils.d.ts +3 -0
  355. package/dist/tools/market/make-offer/format.utils.d.ts.map +1 -0
  356. package/dist/tools/market/make-offer/format.utils.js +16 -0
  357. package/dist/tools/market/make-offer/format.utils.js.map +1 -0
  358. package/dist/tools/market/make-offer/make-offer.d.ts +4 -0
  359. package/dist/tools/market/make-offer/make-offer.d.ts.map +1 -0
  360. package/dist/tools/market/make-offer/make-offer.js +30 -0
  361. package/dist/tools/market/make-offer/make-offer.js.map +1 -0
  362. package/dist/tools/market/make-offer/types.d.ts +10 -0
  363. package/dist/tools/market/make-offer/types.d.ts.map +1 -0
  364. package/dist/tools/market/make-offer/types.js +10 -0
  365. package/dist/tools/market/make-offer/types.js.map +1 -0
  366. package/dist/tools/market/my-listings/constants.d.ts +2 -0
  367. package/dist/tools/market/my-listings/constants.d.ts.map +1 -0
  368. package/dist/tools/market/my-listings/constants.js +14 -0
  369. package/dist/tools/market/my-listings/constants.js.map +1 -0
  370. package/dist/tools/market/my-listings/my-listings.d.ts +4 -0
  371. package/dist/tools/market/my-listings/my-listings.d.ts.map +1 -0
  372. package/dist/tools/market/my-listings/my-listings.js +24 -0
  373. package/dist/tools/market/my-listings/my-listings.js.map +1 -0
  374. package/dist/tools/market/my-offers/constants.d.ts +2 -0
  375. package/dist/tools/market/my-offers/constants.d.ts.map +1 -0
  376. package/dist/tools/market/my-offers/constants.js +15 -0
  377. package/dist/tools/market/my-offers/constants.js.map +1 -0
  378. package/dist/tools/market/my-offers/my-offers.d.ts +4 -0
  379. package/dist/tools/market/my-offers/my-offers.d.ts.map +1 -0
  380. package/dist/tools/market/my-offers/my-offers.js +24 -0
  381. package/dist/tools/market/my-offers/my-offers.js.map +1 -0
  382. package/dist/tools/market/my-offers-received/constants.d.ts +2 -0
  383. package/dist/tools/market/my-offers-received/constants.d.ts.map +1 -0
  384. package/dist/tools/market/my-offers-received/constants.js +16 -0
  385. package/dist/tools/market/my-offers-received/constants.js.map +1 -0
  386. package/dist/tools/market/my-offers-received/my-offers-received.d.ts +4 -0
  387. package/dist/tools/market/my-offers-received/my-offers-received.d.ts.map +1 -0
  388. package/dist/tools/market/my-offers-received/my-offers-received.js +24 -0
  389. package/dist/tools/market/my-offers-received/my-offers-received.js.map +1 -0
  390. package/dist/tools/market/output.types.d.ts +822 -0
  391. package/dist/tools/market/output.types.d.ts.map +1 -0
  392. package/dist/tools/market/output.types.js +75 -0
  393. package/dist/tools/market/output.types.js.map +1 -0
  394. package/dist/tools/market/register.d.ts +12 -0
  395. package/dist/tools/market/register.d.ts.map +1 -0
  396. package/dist/tools/market/register.js +50 -0
  397. package/dist/tools/market/register.js.map +1 -0
  398. package/dist/tools/market/types.d.ts +16 -0
  399. package/dist/tools/market/types.d.ts.map +1 -0
  400. package/dist/tools/market/types.js +14 -0
  401. package/dist/tools/market/types.js.map +1 -0
  402. package/dist/tools/types.d.ts +6 -1
  403. package/dist/tools/types.d.ts.map +1 -1
  404. package/dist/tools/types.js +5 -0
  405. package/dist/tools/types.js.map +1 -1
  406. package/dist/types.d.ts +14 -0
  407. package/dist/types.d.ts.map +1 -1
  408. package/dist/types.js.map +1 -1
  409. package/dist/wallet/evm.manager.d.ts +3 -1
  410. package/dist/wallet/evm.manager.d.ts.map +1 -1
  411. package/dist/wallet/evm.manager.js +12 -0
  412. package/dist/wallet/evm.manager.js.map +1 -1
  413. package/dist/wallet/evm.provider.d.ts.map +1 -1
  414. package/dist/wallet/evm.provider.js +0 -3
  415. package/dist/wallet/evm.provider.js.map +1 -1
  416. package/dist/wallet/types.d.ts +19 -0
  417. package/dist/wallet/types.d.ts.map +1 -1
  418. package/package.json +1 -1
@@ -0,0 +1,4 @@
1
+ import type { AppContext } from '../../../types.js';
2
+ import type { MarketToolDefinition } from '../types.js';
3
+ export declare function createListCellTool(context: AppContext): MarketToolDefinition;
4
+ //# sourceMappingURL=list-cell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-cell.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/list-cell/list-cell.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,UAAU,GAAG,oBAAoB,CAyB5E"}
@@ -0,0 +1,31 @@
1
+ import { LIST_CELL_DESCRIPTION } from './constants.js';
2
+ import { listCellInputSchema } from './types.js';
3
+ import { ToolEventType } from '../../types.js';
4
+ import { summarizeListedCell } from '../format.utils.js';
5
+ import { listCellOutputSchema } from '../output.types.js';
6
+ export function createListCellTool(context) {
7
+ return {
8
+ name: 'cpu_list_cell',
9
+ description: LIST_CELL_DESCRIPTION,
10
+ inputSchema: listCellInputSchema,
11
+ outputSchema: listCellOutputSchema,
12
+ handler: async (args) => {
13
+ const input = args;
14
+ const result = await context.marketListing.listCell({
15
+ tokenId: input.tokenId,
16
+ price: input.price,
17
+ expirationTime: input.expirationTime,
18
+ buyerAddress: input.buyerAddress ?? null,
19
+ });
20
+ const output = { ...result, eventType: ToolEventType.CellListed };
21
+ return {
22
+ content: [
23
+ { type: 'text', text: summarizeListedCell(result) },
24
+ { type: 'text', text: JSON.stringify(output) },
25
+ ],
26
+ structuredContent: output,
27
+ };
28
+ },
29
+ };
30
+ }
31
+ //# sourceMappingURL=list-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"list-cell.js","sourceRoot":"","sources":["../../../../src/tools/market/list-cell/list-cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAGjD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAG1D,MAAM,UAAU,kBAAkB,CAAC,OAAmB;IAClD,OAAO;QACH,IAAI,EAAE,eAAe;QACrB,WAAW,EAAE,qBAAqB;QAClC,WAAW,EAAE,mBAAmB;QAChC,YAAY,EAAE,oBAAoB;QAClC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACpB,MAAM,KAAK,GAAG,IAAuB,CAAC;YACtC,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC;gBAChD,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,KAAK,EAAE,KAAK,CAAC,KAAK;gBAClB,cAAc,EAAE,KAAK,CAAC,cAAc;gBACpC,YAAY,EAAE,KAAK,CAAC,YAAY,IAAI,IAAI;aAC3C,CAAC,CAAC;YACH,MAAM,MAAM,GAAG,EAAE,GAAG,MAAM,EAAE,SAAS,EAAE,aAAa,CAAC,UAAU,EAAE,CAAC;YAElE,OAAO;gBACH,OAAO,EAAE;oBACL,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,CAAC,MAAM,CAAC,EAAE;oBACnD,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE;iBACjD;gBACD,iBAAiB,EAAE,MAAM;aAC5B,CAAC;QACN,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -0,0 +1,7 @@
1
+ export declare const listCellInputSchema: {
2
+ tokenId: import("zod").ZodEffects<import("zod").ZodString, string, string>;
3
+ price: import("zod").ZodEffects<import("zod").ZodString, string, string>;
4
+ expirationTime: import("zod").ZodNumber;
5
+ buyerAddress: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodString>>;
6
+ };
7
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/list-cell/types.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,mBAAmB;;;;;CAoB/B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { cellTokenIdSchema, evmAddressSchema, positiveBaseUnitAmountSchema, unixSecondsSchema, } from '../../../services/market/types.js';
2
+ export const listCellInputSchema = {
3
+ tokenId: cellTokenIdSchema.describe('The Cell to sell, as a decimal token id with no leading zeroes (e.g. "0" or "1234", never "01234"). ' +
4
+ 'You must own it.'),
5
+ price: positiveBaseUnitAmountSchema.describe('The gross amount a buyer pays, as a positive decimal integer of the currency base units — never a ' +
6
+ 'decimal fraction. Marketplace and creator fees are taken out of this amount; the call returns the ' +
7
+ 'split and your estimated proceeds.'),
8
+ expirationTime: unixSecondsSchema.describe('The Unix second at which the listing stops being fillable. It must be in the future.'),
9
+ buyerAddress: evmAddressSchema
10
+ .nullable()
11
+ .default(null)
12
+ .describe('Reserve the listing for exactly one buyer by passing their address; pass null (or omit it) to let ' +
13
+ 'anyone buy it. This never changes which wallet sells — that is always the authenticated wallet.'),
14
+ };
15
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/market/list-cell/types.ts"],"names":[],"mappings":"AAAA,OAAO,EACH,iBAAiB,EACjB,gBAAgB,EAChB,4BAA4B,EAC5B,iBAAiB,GACpB,MAAM,mCAAmC,CAAC;AAE3C,MAAM,CAAC,MAAM,mBAAmB,GAAG;IAC/B,OAAO,EAAE,iBAAiB,CAAC,QAAQ,CAC/B,sGAAsG;QAClG,kBAAkB,CACzB;IACD,KAAK,EAAE,4BAA4B,CAAC,QAAQ,CACxC,oGAAoG;QAChG,oGAAoG;QACpG,oCAAoC,CAC3C;IACD,cAAc,EAAE,iBAAiB,CAAC,QAAQ,CACtC,sFAAsF,CACzF;IACD,YAAY,EAAE,gBAAgB;SACzB,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACL,oGAAoG;QAChG,iGAAiG,CACxG;CACR,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const MAKE_CELL_OFFER_DESCRIPTION: string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/make-offer/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,QAoB7B,CAAC"}
@@ -0,0 +1,22 @@
1
+ export const MAKE_CELL_OFFER_DESCRIPTION = [
2
+ 'Bid on ONE exact Cell you do not own on the NFT marketplace, in a single call. This is the land market —',
3
+ 'Cells traded as NFTs for a configured ERC-20 currency — and it is entirely separate from `cpu_create_lot`,',
4
+ 'which sells RESOURCES for $CPU inside the game. What you publish here is a Cell offer: an off-chain signed',
5
+ 'Market order, not a Lot and never a Fill.',
6
+ 'The call performs the whole action itself: it checks that you are not about to duplicate an offer, reads your',
7
+ 'current order counter from the marketplace protocol contract, prepares the offer, sends any currency approval',
8
+ 'your wallet still owes and waits for each receipt, signs the offer locally, and publishes it. There is',
9
+ 'nothing to confirm afterwards.',
10
+ '`amount` is what you bid, as a base-unit decimal integer STRING (never a number), in the currency the',
11
+ 'marketplace configures for this collection — the result reports that currency with its symbol and decimals.',
12
+ 'You never pass the currency or the protocol counter: the currency comes from the marketplace configuration',
13
+ 'and the counter is read from the marketplace protocol contract.',
14
+ 'The offer is always an item offer for the one exact Cell you name; this tool never creates trait or',
15
+ 'collection offers. Your currency approval is for exactly the amount you bid, never an open-ended allowance.',
16
+ 'Retrying is safe: an identical repeated call resumes the same prepared offer instead of publishing a second',
17
+ 'one, and an equivalent offer of yours that is already active is returned with `already_completed` rather',
18
+ 'than duplicated.',
19
+ 'The result reports `status` (`completed`, or `already_completed`), the published offer with its `orderHash`,',
20
+ 'the currency, and every approval transaction hash in the order it was broadcast.',
21
+ ].join(' ');
22
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/tools/market/make-offer/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACvC,0GAA0G;IAC1G,4GAA4G;IAC5G,4GAA4G;IAC5G,2CAA2C;IAC3C,+GAA+G;IAC/G,+GAA+G;IAC/G,wGAAwG;IACxG,gCAAgC;IAChC,uGAAuG;IACvG,6GAA6G;IAC7G,4GAA4G;IAC5G,iEAAiE;IACjE,qGAAqG;IACrG,6GAA6G;IAC7G,6GAA6G;IAC7G,0GAA0G;IAC1G,kBAAkB;IAClB,8GAA8G;IAC9G,kFAAkF;CACrF,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { MakeCellOfferResult } from '../../../services/market/offer.types.js';
2
+ export declare function summarizeCellOffer(result: MakeCellOfferResult): string;
3
+ //# sourceMappingURL=format.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.utils.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/make-offer/format.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAGnF,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,mBAAmB,GAAG,MAAM,CAgBtE"}
@@ -0,0 +1,16 @@
1
+ import { MarketActionStatus } from '../../../services/market/types.js';
2
+ export function summarizeCellOffer(result) {
3
+ const opening = result.status === MarketActionStatus.AlreadyCompleted
4
+ ? `Cell ${result.tokenId} already carries this exact offer of yours — no second offer was published`
5
+ : `Cell ${result.tokenId} now carries your offer`;
6
+ const approvals = result.approvalTxHashes.length === 0
7
+ ? 'no currency approval was needed'
8
+ : `currency approvals broadcast in order: ${result.approvalTxHashes.join(', ')}`;
9
+ return [
10
+ `${opening} (order ${result.offer.orderHash}, buyer ${result.wallet})`,
11
+ `you bid: ${result.amount} ${result.currency.symbol} base units (decimals=${result.currency.decimals})`,
12
+ `expires at ${result.offer.expirationTime}`,
13
+ approvals,
14
+ ].join('\n');
15
+ }
16
+ //# sourceMappingURL=format.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.utils.js","sourceRoot":"","sources":["../../../../src/tools/market/make-offer/format.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,UAAU,kBAAkB,CAAC,MAA2B;IAC1D,MAAM,OAAO,GACT,MAAM,CAAC,MAAM,KAAK,kBAAkB,CAAC,gBAAgB;QACjD,CAAC,CAAC,QAAQ,MAAM,CAAC,OAAO,4EAA4E;QACpG,CAAC,CAAC,QAAQ,MAAM,CAAC,OAAO,yBAAyB,CAAC;IAC1D,MAAM,SAAS,GACX,MAAM,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC;QAChC,CAAC,CAAC,iCAAiC;QACnC,CAAC,CAAC,0CAA0C,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IAEzF,OAAO;QACH,GAAG,OAAO,WAAW,MAAM,CAAC,KAAK,CAAC,SAAS,WAAW,MAAM,CAAC,MAAM,GAAG;QACtE,YAAY,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,yBAAyB,MAAM,CAAC,QAAQ,CAAC,QAAQ,GAAG;QACvG,cAAc,MAAM,CAAC,KAAK,CAAC,cAAc,EAAE;QAC3C,SAAS;KACZ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type MakeCellOfferContext } from './types.js';
2
+ import type { MarketToolDefinition } from '../types.js';
3
+ export declare function createMakeCellOfferTool(context: MakeCellOfferContext): MarketToolDefinition;
4
+ //# sourceMappingURL=make-offer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"make-offer.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/make-offer/make-offer.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4B,KAAK,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAIjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,oBAAoB,GAAG,oBAAoB,CAwB3F"}
@@ -0,0 +1,30 @@
1
+ import { MAKE_CELL_OFFER_DESCRIPTION } from './constants.js';
2
+ import { summarizeCellOffer } from './format.utils.js';
3
+ import { makeCellOfferInputSchema } from './types.js';
4
+ import { ToolEventType } from '../../types.js';
5
+ import { makeCellOfferOutputSchema } from '../output.types.js';
6
+ export function createMakeCellOfferTool(context) {
7
+ return {
8
+ name: 'cpu_make_cell_offer',
9
+ description: MAKE_CELL_OFFER_DESCRIPTION,
10
+ inputSchema: makeCellOfferInputSchema,
11
+ outputSchema: makeCellOfferOutputSchema,
12
+ handler: async (args) => {
13
+ const input = args;
14
+ const result = await context.marketOffer.makeCellOffer({
15
+ tokenId: input.tokenId,
16
+ amount: input.amount,
17
+ expirationTime: input.expirationTime,
18
+ });
19
+ const output = { ...result, eventType: ToolEventType.CellOfferMade };
20
+ return {
21
+ content: [
22
+ { type: 'text', text: summarizeCellOffer(result) },
23
+ { type: 'text', text: JSON.stringify(output) },
24
+ ],
25
+ structuredContent: output,
26
+ };
27
+ },
28
+ };
29
+ }
30
+ //# sourceMappingURL=make-offer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"make-offer.js","sourceRoot":"","sources":["../../../../src/tools/market/make-offer/make-offer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAC7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAA6B,MAAM,YAAY,CAAC;AAEjF,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAG/D,MAAM,UAAU,uBAAuB,CAAC,OAA6B;IACjE,OAAO;QACH,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EAAE,2BAA2B;QACxC,WAAW,EAAE,wBAAwB;QACrC,YAAY,EAAE,yBAAyB;QACvC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACpB,MAAM,KAAK,GAAG,IAA4B,CAAC;YAC3C,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,WAAW,CAAC,aAAa,CAAC;gBACnD,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,MAAM,EAAE,KAAK,CAAC,MAAM;gBACpB,cAAc,EAAE,KAAK,CAAC,cAAc;aACvC,CAAC,CAAC;YACH,MAAM,MAAM,GAAG,EAAE,GAAG,MAAM,EAAE,SAAS,EAAE,aAAa,CAAC,aAAa,EAAE,CAAC;YAErE,OAAO;gBACH,OAAO,EAAE;oBACL,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,CAAC,MAAM,CAAC,EAAE;oBAClD,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE;iBACjD;gBACD,iBAAiB,EAAE,MAAM;aAC5B,CAAC;QACN,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { type IMarketOfferService } from '../../../services/market/offer.types.js';
2
+ export interface MakeCellOfferContext {
3
+ marketOffer: IMarketOfferService;
4
+ }
5
+ export declare const makeCellOfferInputSchema: {
6
+ tokenId: import("zod").ZodEffects<import("zod").ZodString, string, string>;
7
+ amount: import("zod").ZodEffects<import("zod").ZodEffects<import("zod").ZodString, string, string>, string, string>;
8
+ expirationTime: import("zod").ZodNumber;
9
+ };
10
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/make-offer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,mBAAmB,EAAyB,MAAM,yCAAyC,CAAC;AAG1G,MAAM,WAAW,oBAAoB;IACjC,WAAW,EAAE,mBAAmB,CAAC;CACpC;AAED,eAAO,MAAM,wBAAwB;;;;CAYpC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { usdgOfferAmountSchema } from '../../../services/market/offer.types.js';
2
+ import { cellTokenIdSchema, unixSecondsSchema } from '../../../services/market/types.js';
3
+ export const makeCellOfferInputSchema = {
4
+ tokenId: cellTokenIdSchema.describe('The one exact Cell to bid on, as a decimal token id with no leading zeroes (e.g. "0" or "1234", never "01234"). ' +
5
+ 'Somebody else owns it.'),
6
+ amount: usdgOfferAmountSchema.describe('What you bid in USDG base units, as a positive decimal integer in whole-cent increments. USDG has 6 ' +
7
+ 'decimals, so 10000 base units is $0.01 and values such as 15000 are rejected.'),
8
+ expirationTime: unixSecondsSchema.describe('The Unix second at which the offer stops being acceptable. It must be in the future.'),
9
+ };
10
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/market/make-offer/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAC1G,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAMzF,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,OAAO,EAAE,iBAAiB,CAAC,QAAQ,CAC/B,kHAAkH;QAC9G,wBAAwB,CAC/B;IACD,MAAM,EAAE,qBAAqB,CAAC,QAAQ,CAClC,sGAAsG;QAClG,+EAA+E,CACtF;IACD,cAAc,EAAE,iBAAiB,CAAC,QAAQ,CACtC,sFAAsF,CACzF;CACJ,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const GET_MY_LISTINGS_DESCRIPTION: string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/my-listings/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,2BAA2B,QAW7B,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { MARKET_PAGE_SIZE_HINT } from '../../../services/market/constants.js';
2
+ export const GET_MY_LISTINGS_DESCRIPTION = [
3
+ 'Your own active Cell listings on the public NFT marketplace — the land you have put up for sale, one page at',
4
+ 'a time. The wallet is the authenticated one; there is no wallet input and no way to read another player.',
5
+ 'This is the land market, entirely separate from `cpu_list_my_lots`, which lists your RESOURCE lots for $CPU',
6
+ 'inside the game.',
7
+ 'PAGINATION: omit `cursor` for the first page, then pass back the exact `nextCursor` you received. Stop only',
8
+ `when \`nextCursor\` is null — a page with fewer than ${MARKET_PAGE_SIZE_HINT} rows may still have another page,`,
9
+ 'so never decide you are done by counting rows.',
10
+ 'Every price is a base-unit decimal integer STRING (never a number), paired with a `currency` carrying the',
11
+ 'symbol and decimals you need to read it. Every row carries the exact `orderHash` needed to cancel it.',
12
+ 'Ordinary map and Cell reads carry no marketplace data — ask here.',
13
+ ].join(' ');
14
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/tools/market/my-listings/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACvC,8GAA8G;IAC9G,0GAA0G;IAC1G,6GAA6G;IAC7G,kBAAkB;IAClB,6GAA6G;IAC7G,wDAAwD,qBAAqB,oCAAoC;IACjH,gDAAgD;IAChD,2GAA2G;IAC3G,uGAAuG;IACvG,mEAAmE;CACtE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { AppContext } from '../../../types.js';
2
+ import { type MarketToolDefinition } from '../types.js';
3
+ export declare function createGetMyListingsTool(context: AppContext): MarketToolDefinition;
4
+ //# sourceMappingURL=my-listings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-listings.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/my-listings/my-listings.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAyB,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE/E,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,UAAU,GAAG,oBAAoB,CAmBjF"}
@@ -0,0 +1,24 @@
1
+ import { GET_MY_LISTINGS_DESCRIPTION } from './constants.js';
2
+ import { summarizeListingPage } from '../format.utils.js';
3
+ import { getMyListingsOutputSchema } from '../output.types.js';
4
+ import { marketPageInputSchema } from '../types.js';
5
+ export function createGetMyListingsTool(context) {
6
+ return {
7
+ name: 'cpu_get_my_listings',
8
+ description: GET_MY_LISTINGS_DESCRIPTION,
9
+ inputSchema: marketPageInputSchema,
10
+ outputSchema: getMyListingsOutputSchema,
11
+ handler: async (args) => {
12
+ const { cursor } = args;
13
+ const page = await context.marketProfile.getMyListings(cursor ?? null);
14
+ return {
15
+ content: [
16
+ { type: 'text', text: summarizeListingPage(page) },
17
+ { type: 'text', text: JSON.stringify(page) },
18
+ ],
19
+ structuredContent: page,
20
+ };
21
+ },
22
+ };
23
+ }
24
+ //# sourceMappingURL=my-listings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-listings.js","sourceRoot":"","sources":["../../../../src/tools/market/my-listings/my-listings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAA6B,MAAM,aAAa,CAAC;AAE/E,MAAM,UAAU,uBAAuB,CAAC,OAAmB;IACvD,OAAO;QACH,IAAI,EAAE,qBAAqB;QAC3B,WAAW,EAAE,2BAA2B;QACxC,WAAW,EAAE,qBAAqB;QAClC,YAAY,EAAE,yBAAyB;QACvC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACpB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAiC,CAAC;YACrD,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,aAAa,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC;YAEvE,OAAO;gBACH,OAAO,EAAE;oBACL,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC,EAAE;oBAClD,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;iBAC/C;gBACD,iBAAiB,EAAE,IAAI;aAC1B,CAAC;QACN,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const GET_MY_OFFERS_DESCRIPTION: string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/my-offers/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,QAY3B,CAAC"}
@@ -0,0 +1,15 @@
1
+ import { MARKET_PAGE_SIZE_HINT } from '../../../services/market/constants.js';
2
+ export const GET_MY_OFFERS_DESCRIPTION = [
3
+ 'The active offers YOU made on the public NFT marketplace — bids you published on land owned by others,',
4
+ 'page at a time. The wallet is the authenticated one; there is no wallet input. For bids other players made on',
5
+ 'your Cells, call `cpu_get_my_offers_received` instead.',
6
+ 'Each offer carries its `kind`: `item` (bound to one exact Cell), `trait`, or `collection`. A trait or',
7
+ 'collection offer is not made for one Cell, so its `tokenId` may be null while the offer is still fillable.',
8
+ 'PAGINATION: omit `cursor` for the first page, then pass back the exact `nextCursor` you received. Stop only',
9
+ `when \`nextCursor\` is null — a page with fewer than ${MARKET_PAGE_SIZE_HINT} rows may still have another page,`,
10
+ 'so never decide you are done by counting rows.',
11
+ 'Every amount is a base-unit decimal integer STRING (never a number), paired with a `currency` carrying the',
12
+ 'symbol and decimals you need to read it. Every row carries the exact `orderHash` needed to cancel it.',
13
+ 'Ordinary map and Cell reads carry no marketplace data — ask here.',
14
+ ].join(' ');
15
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/tools/market/my-offers/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,MAAM,CAAC,MAAM,yBAAyB,GAAG;IACrC,wGAAwG;IACxG,+GAA+G;IAC/G,wDAAwD;IACxD,uGAAuG;IACvG,4GAA4G;IAC5G,6GAA6G;IAC7G,wDAAwD,qBAAqB,oCAAoC;IACjH,gDAAgD;IAChD,4GAA4G;IAC5G,uGAAuG;IACvG,mEAAmE;CACtE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { AppContext } from '../../../types.js';
2
+ import { type MarketToolDefinition } from '../types.js';
3
+ export declare function createGetMyOffersTool(context: AppContext): MarketToolDefinition;
4
+ //# sourceMappingURL=my-offers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-offers.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/my-offers/my-offers.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAyB,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE/E,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,UAAU,GAAG,oBAAoB,CAmB/E"}
@@ -0,0 +1,24 @@
1
+ import { GET_MY_OFFERS_DESCRIPTION } from './constants.js';
2
+ import { summarizeOfferPage } from '../format.utils.js';
3
+ import { getMyOffersOutputSchema } from '../output.types.js';
4
+ import { marketPageInputSchema } from '../types.js';
5
+ export function createGetMyOffersTool(context) {
6
+ return {
7
+ name: 'cpu_get_my_offers',
8
+ description: GET_MY_OFFERS_DESCRIPTION,
9
+ inputSchema: marketPageInputSchema,
10
+ outputSchema: getMyOffersOutputSchema,
11
+ handler: async (args) => {
12
+ const { cursor } = args;
13
+ const page = await context.marketProfile.getMyOffers(cursor ?? null);
14
+ return {
15
+ content: [
16
+ { type: 'text', text: summarizeOfferPage('Offers you made', page) },
17
+ { type: 'text', text: JSON.stringify(page) },
18
+ ],
19
+ structuredContent: page,
20
+ };
21
+ },
22
+ };
23
+ }
24
+ //# sourceMappingURL=my-offers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-offers.js","sourceRoot":"","sources":["../../../../src/tools/market/my-offers/my-offers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAA6B,MAAM,aAAa,CAAC;AAE/E,MAAM,UAAU,qBAAqB,CAAC,OAAmB;IACrD,OAAO;QACH,IAAI,EAAE,mBAAmB;QACzB,WAAW,EAAE,yBAAyB;QACtC,WAAW,EAAE,qBAAqB;QAClC,YAAY,EAAE,uBAAuB;QACrC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACpB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAiC,CAAC;YACrD,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,WAAW,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC;YAErE,OAAO;gBACH,OAAO,EAAE;oBACL,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,CAAC,iBAAiB,EAAE,IAAI,CAAC,EAAE;oBACnE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;iBAC/C;gBACD,iBAAiB,EAAE,IAAI;aAC1B,CAAC;QACN,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const GET_MY_OFFERS_RECEIVED_DESCRIPTION: string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/my-offers-received/constants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kCAAkC,QAapC,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { MARKET_PAGE_SIZE_HINT } from '../../../services/market/constants.js';
2
+ export const GET_MY_OFFERS_RECEIVED_DESCRIPTION = [
3
+ 'The active offers standing on YOUR Cells on the public NFT marketplace — what other players are bidding to',
4
+ 'buy your land, one page at a time. The wallet is the authenticated one; there is no wallet input. For the',
5
+ 'bids you published yourself, call `cpu_get_my_offers` instead.',
6
+ 'An offer carries its `kind`: `item` (bound to one exact Cell), `trait`, or `collection`; a trait or collection',
7
+ 'offer has no single bound Cell, so its `tokenId` may be null while it is still fillable with one of your',
8
+ 'Cells.',
9
+ 'PAGINATION: omit `cursor` for the first page, then pass back the exact `nextCursor` you received. Stop only',
10
+ `when \`nextCursor\` is null — a page with fewer than ${MARKET_PAGE_SIZE_HINT} rows may still have another page,`,
11
+ 'so never decide you are done by counting rows.',
12
+ 'Every amount is a base-unit decimal integer STRING (never a number), paired with a `currency` carrying the',
13
+ 'symbol and decimals you need to read it. Every row carries the exact `orderHash` needed to accept it.',
14
+ 'Ordinary map and Cell reads carry no marketplace data — ask here.',
15
+ ].join(' ');
16
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/tools/market/my-offers-received/constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAC;AAE9E,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAC9C,4GAA4G;IAC5G,2GAA2G;IAC3G,gEAAgE;IAChE,gHAAgH;IAChH,0GAA0G;IAC1G,QAAQ;IACR,6GAA6G;IAC7G,wDAAwD,qBAAqB,oCAAoC;IACjH,gDAAgD;IAChD,4GAA4G;IAC5G,uGAAuG;IACvG,mEAAmE;CACtE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { AppContext } from '../../../types.js';
2
+ import { type MarketToolDefinition } from '../types.js';
3
+ export declare function createGetMyOffersReceivedTool(context: AppContext): MarketToolDefinition;
4
+ //# sourceMappingURL=my-offers-received.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-offers-received.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/my-offers-received/my-offers-received.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAyB,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE/E,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,UAAU,GAAG,oBAAoB,CAmBvF"}
@@ -0,0 +1,24 @@
1
+ import { GET_MY_OFFERS_RECEIVED_DESCRIPTION } from './constants.js';
2
+ import { summarizeOfferPage } from '../format.utils.js';
3
+ import { getMyOffersOutputSchema } from '../output.types.js';
4
+ import { marketPageInputSchema } from '../types.js';
5
+ export function createGetMyOffersReceivedTool(context) {
6
+ return {
7
+ name: 'cpu_get_my_offers_received',
8
+ description: GET_MY_OFFERS_RECEIVED_DESCRIPTION,
9
+ inputSchema: marketPageInputSchema,
10
+ outputSchema: getMyOffersOutputSchema,
11
+ handler: async (args) => {
12
+ const { cursor } = args;
13
+ const page = await context.marketProfile.getMyOffersReceived(cursor ?? null);
14
+ return {
15
+ content: [
16
+ { type: 'text', text: summarizeOfferPage('Offers on your Cells', page) },
17
+ { type: 'text', text: JSON.stringify(page) },
18
+ ],
19
+ structuredContent: page,
20
+ };
21
+ },
22
+ };
23
+ }
24
+ //# sourceMappingURL=my-offers-received.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"my-offers-received.js","sourceRoot":"","sources":["../../../../src/tools/market/my-offers-received/my-offers-received.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,gBAAgB,CAAC;AAEpE,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAA6B,MAAM,aAAa,CAAC;AAE/E,MAAM,UAAU,6BAA6B,CAAC,OAAmB;IAC7D,OAAO;QACH,IAAI,EAAE,4BAA4B;QAClC,WAAW,EAAE,kCAAkC;QAC/C,WAAW,EAAE,qBAAqB;QAClC,YAAY,EAAE,uBAAuB;QACrC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACpB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAiC,CAAC;YACrD,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,mBAAmB,CAAC,MAAM,IAAI,IAAI,CAAC,CAAC;YAE7E,OAAO;gBACH,OAAO,EAAE;oBACL,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,kBAAkB,CAAC,sBAAsB,EAAE,IAAI,CAAC,EAAE;oBACxE,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE;iBAC/C;gBACD,iBAAiB,EAAE,IAAI;aAC1B,CAAC;QACN,CAAC;KACJ,CAAC;AACN,CAAC"}