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 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/accept-offer/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,6BAA6B,QAyB/B,CAAC"}
@@ -0,0 +1,27 @@
1
+ export const ACCEPT_CELL_OFFER_DESCRIPTION = [
2
+ 'Sell ONE Cell you own by accepting ONE exact offer on the NFT marketplace, in a single call. This is the land',
3
+ 'market — Cells traded as NFTs for a configured currency — and it is entirely separate from `cpu_create_lot`,',
4
+ 'which sells RESOURCES for $CPU inside the game.',
5
+ "YOU PICK THE OFFER AND THE CELL. Read `cpu_get_my_offers_received` first and pass that offer's exact",
6
+ '`orderHash`. An offer for one exact Cell already names the Cell; a trait or collection offer bids for a SET of',
7
+ 'Cells, so you must also pass the `tokenId` you are willing to sell — the call fails before sending anything',
8
+ 'when a criteria offer is not given one.',
9
+ 'If the pinned offer has been filled, cancelled, expired, or cannot be fulfilled as it stands, the call fails',
10
+ 'with `staleOffer` or `unfulfillable` and sells NOTHING — it never substitutes a different offer or a',
11
+ 'different Cell for you.',
12
+ 'The call performs the whole action itself: it prepares the acceptance, checks that the prepared work is still',
13
+ 'that exact offer and that exact Cell of yours, sends any collection approval the wallet still owes and waits',
14
+ 'for its receipt, then sends the one fulfilment transaction. There is nothing to confirm afterwards.',
15
+ "Success is proven, not assumed: the receipt must carry the protocol's own fulfilment event for that exact",
16
+ 'order, the transaction must have been sent by your wallet, and the Cell must no longer be owned by you. A',
17
+ 'trait or collection offer may stay ACTIVE afterwards — it can still buy other Cells — and that is not a',
18
+ 'failure and never a second sale of the same Cell.',
19
+ 'Retrying is safe for your Cells: once ownership has moved, a repeat refuses before sending anything, and a',
20
+ 'repeat of a transaction already broadcast re-checks that transaction instead of selling again. At worst a',
21
+ 'retry spends gas on a transaction the protocol rejects.',
22
+ 'The result reports `status` (`completed`, or `already_completed` when the sale proved to be done already), the',
23
+ "`orderHash` accepted, the Cell sold, the buyer, the offer amount and currency before the marketplace's",
24
+ 'mandatory fee split, and every transaction',
25
+ 'hash in `txHashes` in the order it was broadcast.',
26
+ ].join(' ');
27
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/tools/market/accept-offer/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,6BAA6B,GAAG;IACzC,+GAA+G;IAC/G,8GAA8G;IAC9G,iDAAiD;IACjD,sGAAsG;IACtG,gHAAgH;IAChH,6GAA6G;IAC7G,yCAAyC;IACzC,8GAA8G;IAC9G,sGAAsG;IACtG,yBAAyB;IACzB,+GAA+G;IAC/G,8GAA8G;IAC9G,qGAAqG;IACrG,2GAA2G;IAC3G,2GAA2G;IAC3G,yGAAyG;IACzG,mDAAmD;IACnD,4GAA4G;IAC5G,2GAA2G;IAC3G,yDAAyD;IACzD,gHAAgH;IAChH,wGAAwG;IACxG,4CAA4C;IAC5C,mDAAmD;CACtD,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { AcceptCellOfferResult } from '../../../services/market/acceptance.types.js';
2
+ export declare function summarizeSoldCell(result: AcceptCellOfferResult): string;
3
+ //# sourceMappingURL=format.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.utils.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/accept-offer/format.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,8CAA8C,CAAC;AAS1F,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,qBAAqB,GAAG,MAAM,CAiBvE"}
@@ -0,0 +1,22 @@
1
+ import { MarketActionStatus, MarketOfferKind } from '../../../services/market/types.js';
2
+ function offerShape(kind) {
3
+ return kind === MarketOfferKind.Item
4
+ ? 'an offer for that exact Cell'
5
+ : `a ${kind} offer, which may stay active and buy other Cells`;
6
+ }
7
+ export function summarizeSoldCell(result) {
8
+ const opening = result.status === MarketActionStatus.AlreadyCompleted
9
+ ? `Cell ${result.tokenId} was already sold on this exact offer — no second sale was made`
10
+ : `Cell ${result.tokenId} is sold`;
11
+ const approvals = result.approvalTxHashes.length === 0
12
+ ? 'no collection approval was needed'
13
+ : `collection approvals broadcast in order: ${result.approvalTxHashes.join(', ')}`;
14
+ return [
15
+ `${opening} (order ${result.orderHash}, seller ${result.wallet}, buyer ${result.buyer})`,
16
+ `offer amount before the marketplace's mandatory fee split: ${result.amount} ${result.currency.symbol} ` +
17
+ `base units (decimals=${result.currency.decimals}), from ${offerShape(result.offer.kind)}`,
18
+ approvals,
19
+ `fulfilment transaction: ${result.fulfilmentTxHash}`,
20
+ ].join('\n');
21
+ }
22
+ //# sourceMappingURL=format.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.utils.js","sourceRoot":"","sources":["../../../../src/tools/market/accept-offer/format.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAExF,SAAS,UAAU,CAAC,IAAqB;IACrC,OAAO,IAAI,KAAK,eAAe,CAAC,IAAI;QAChC,CAAC,CAAC,8BAA8B;QAChC,CAAC,CAAC,KAAK,IAAI,mDAAmD,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,iBAAiB,CAAC,MAA6B;IAC3D,MAAM,OAAO,GACT,MAAM,CAAC,MAAM,KAAK,kBAAkB,CAAC,gBAAgB;QACjD,CAAC,CAAC,QAAQ,MAAM,CAAC,OAAO,iEAAiE;QACzF,CAAC,CAAC,QAAQ,MAAM,CAAC,OAAO,UAAU,CAAC;IAC3C,MAAM,SAAS,GACX,MAAM,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC;QAChC,CAAC,CAAC,mCAAmC;QACrC,CAAC,CAAC,4CAA4C,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC;IAE3F,OAAO;QACH,GAAG,OAAO,WAAW,MAAM,CAAC,SAAS,YAAY,MAAM,CAAC,MAAM,WAAW,MAAM,CAAC,KAAK,GAAG;QACxF,8DAA8D,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,GAAG;YACpG,wBAAwB,MAAM,CAAC,QAAQ,CAAC,QAAQ,WAAW,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;QAC9F,SAAS;QACT,2BAA2B,MAAM,CAAC,gBAAgB,EAAE;KACvD,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjB,CAAC"}
@@ -0,0 +1,9 @@
1
+ import type { IMarketAcceptanceService } from '../../../services/market/acceptance.types.js';
2
+ export interface AcceptCellOfferContext {
3
+ marketAcceptance: IMarketAcceptanceService;
4
+ }
5
+ export declare const acceptCellOfferInputSchema: {
6
+ orderHash: import("zod").ZodString;
7
+ tokenId: import("zod").ZodDefault<import("zod").ZodNullable<import("zod").ZodEffects<import("zod").ZodString, string, string>>>;
8
+ };
9
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/accept-offer/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,8CAA8C,CAAC;AAG7F,MAAM,WAAW,sBAAsB;IACnC,gBAAgB,EAAE,wBAAwB,CAAC;CAC9C;AAED,eAAO,MAAM,0BAA0B;;;CAetC,CAAC"}
@@ -0,0 +1,14 @@
1
+ import { cellTokenIdSchema, orderHashSchema } from '../../../services/market/types.js';
2
+ export const acceptCellOfferInputSchema = {
3
+ orderHash: orderHashSchema.describe('The exact 32-byte 0x-prefixed `orderHash` of the offer you decided to accept, copied from ' +
4
+ '`cpu_get_my_offers_received` or `cpu_get_cell_market`. This tool accepts that offer or nothing: it ' +
5
+ 'never falls back to a higher, newer or otherwise different offer.'),
6
+ tokenId: cellTokenIdSchema
7
+ .nullable()
8
+ .default(null)
9
+ .describe('The one Cell of yours to sell, as a decimal token id with no leading zeroes (e.g. "0" or "1234", never ' +
10
+ '"01234"). REQUIRED for a trait or collection offer, because such an offer names a set of Cells ' +
11
+ 'and never picks one for you. For an item offer you may omit it (or pass null) and the Cell the ' +
12
+ 'offer bids for is used; if you do pass it, it must be that same Cell.'),
13
+ };
14
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/market/accept-offer/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAMvF,MAAM,CAAC,MAAM,0BAA0B,GAAG;IACtC,SAAS,EAAE,eAAe,CAAC,QAAQ,CAC/B,4FAA4F;QACxF,qGAAqG;QACrG,mEAAmE,CAC1E;IACD,OAAO,EAAE,iBAAiB;SACrB,QAAQ,EAAE;SACV,OAAO,CAAC,IAAI,CAAC;SACb,QAAQ,CACL,yGAAyG;QACrG,iGAAiG;QACjG,iGAAiG;QACjG,uEAAuE,CAC9E;CACR,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { AppContext } from '../../../types.js';
2
+ import type { MarketToolDefinition } from '../types.js';
3
+ export declare function createBuyCellTool(context: AppContext): MarketToolDefinition;
4
+ //# sourceMappingURL=buy-cell.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buy-cell.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/buy-cell/buy-cell.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,UAAU,GAAG,oBAAoB,CAwB3E"}
@@ -0,0 +1,30 @@
1
+ import { BUY_CELL_DESCRIPTION } from './constants.js';
2
+ import { summarizeBoughtCell } from './format.utils.js';
3
+ import { buyCellInputSchema } from './types.js';
4
+ import { ToolEventType } from '../../types.js';
5
+ import { buyCellOutputSchema } from '../output.types.js';
6
+ export function createBuyCellTool(context) {
7
+ return {
8
+ name: 'cpu_buy_cell',
9
+ description: BUY_CELL_DESCRIPTION,
10
+ inputSchema: buyCellInputSchema,
11
+ outputSchema: buyCellOutputSchema,
12
+ handler: async (args) => {
13
+ const input = args;
14
+ const result = await context.marketPurchase.buyCell({
15
+ tokenId: input.tokenId,
16
+ expectedOrderHash: input.expectedOrderHash,
17
+ maxAmount: input.maxAmount,
18
+ });
19
+ const output = { ...result, eventType: ToolEventType.CellBought };
20
+ return {
21
+ content: [
22
+ { type: 'text', text: summarizeBoughtCell(result) },
23
+ { type: 'text', text: JSON.stringify(output) },
24
+ ],
25
+ structuredContent: output,
26
+ };
27
+ },
28
+ };
29
+ }
30
+ //# sourceMappingURL=buy-cell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buy-cell.js","sourceRoot":"","sources":["../../../../src/tools/market/buy-cell/buy-cell.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,OAAO,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAGhD,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAGzD,MAAM,UAAU,iBAAiB,CAAC,OAAmB;IACjD,OAAO;QACH,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,oBAAoB;QACjC,WAAW,EAAE,kBAAkB;QAC/B,YAAY,EAAE,mBAAmB;QACjC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACpB,MAAM,KAAK,GAAG,IAAsB,CAAC;YACrC,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,cAAc,CAAC,OAAO,CAAC;gBAChD,OAAO,EAAE,KAAK,CAAC,OAAO;gBACtB,iBAAiB,EAAE,KAAK,CAAC,iBAAiB;gBAC1C,SAAS,EAAE,KAAK,CAAC,SAAS;aAC7B,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,2 @@
1
+ export declare const BUY_CELL_DESCRIPTION: string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/buy-cell/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,QAqBtB,CAAC"}
@@ -0,0 +1,23 @@
1
+ export const BUY_CELL_DESCRIPTION = [
2
+ 'Buy ONE exact Cell listing on the NFT marketplace, in a single call. This is the land market — Cells traded',
3
+ 'as NFTs for a configured currency — and it is entirely separate from `cpu_buy_lot`, which buys RESOURCES for',
4
+ '$CPU inside the game.',
5
+ "YOU PICK THE ORDER. Read `cpu_get_cell_market` first and pass that listing's exact `expectedOrderHash`. If",
6
+ 'that order has been filled, cancelled, expired, or repriced above your `maxAmount`, the call fails with',
7
+ '`staleListing`, `unfulfillable`, or a local price-limit error and buys NOTHING — it never substitutes a',
8
+ 'different listing or a different Cell for you.',
9
+ '`maxAmount` is a hard ceiling in the currency base units, as a decimal integer STRING (never a number). The',
10
+ 'call refuses to send anything that would cost more.',
11
+ 'The call performs the whole action itself: it prepares the purchase, checks that the prepared work is still',
12
+ 'that exact order, sends any currency approval the wallet still owes and waits for its receipt, then sends the',
13
+ 'one fulfilment transaction. There is nothing to confirm afterwards.',
14
+ "Success is proven, not assumed: the receipt must carry the protocol's own fulfilment event for that exact",
15
+ 'order, the transaction must have been sent by your wallet, and the Cell must end up owned by you. Ownership',
16
+ 'alone is never accepted as proof that you were the buyer.',
17
+ 'Retrying is safe for your money: a repeated call re-checks the transaction it already sent instead of buying',
18
+ 'again, and can never bind a second order. At worst a retry spends gas on a transaction the protocol rejects.',
19
+ 'The result reports `status` (`completed`, or `already_completed` when the purchase proved to be done',
20
+ 'already), the `orderHash` bought, the seller, the price paid, and every transaction hash in `txHashes` in the',
21
+ 'order it was broadcast.',
22
+ ].join(' ');
23
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/tools/market/buy-cell/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAChC,6GAA6G;IAC7G,8GAA8G;IAC9G,uBAAuB;IACvB,4GAA4G;IAC5G,yGAAyG;IACzG,yGAAyG;IACzG,gDAAgD;IAChD,6GAA6G;IAC7G,qDAAqD;IACrD,6GAA6G;IAC7G,+GAA+G;IAC/G,qEAAqE;IACrE,2GAA2G;IAC3G,6GAA6G;IAC7G,2DAA2D;IAC3D,8GAA8G;IAC9G,8GAA8G;IAC9G,sGAAsG;IACtG,+GAA+G;IAC/G,yBAAyB;CAC5B,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { BuyCellResult } from '../../../services/market/purchase.types.js';
2
+ export declare function summarizeBoughtCell(result: BuyCellResult): string;
3
+ //# sourceMappingURL=format.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.utils.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/buy-cell/format.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAGhF,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAiBjE"}
@@ -0,0 +1,17 @@
1
+ import { MarketActionStatus } from '../../../services/market/types.js';
2
+ export function summarizeBoughtCell(result) {
3
+ const opening = result.status === MarketActionStatus.AlreadyCompleted
4
+ ? `Cell ${result.tokenId} was already bought on this exact order — no second purchase was made`
5
+ : `Cell ${result.tokenId} is bought`;
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.orderHash}, buyer ${result.wallet}, seller ${result.seller})`,
11
+ `paid: ${result.price} ${result.currency.symbol} base units (decimals=${result.currency.decimals}), ` +
12
+ `within your ceiling of ${result.maxAmount}`,
13
+ approvals,
14
+ `fulfilment transaction: ${result.fulfilmentTxHash}`,
15
+ ].join('\n');
16
+ }
17
+ //# sourceMappingURL=format.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.utils.js","sourceRoot":"","sources":["../../../../src/tools/market/buy-cell/format.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,UAAU,mBAAmB,CAAC,MAAqB;IACrD,MAAM,OAAO,GACT,MAAM,CAAC,MAAM,KAAK,kBAAkB,CAAC,gBAAgB;QACjD,CAAC,CAAC,QAAQ,MAAM,CAAC,OAAO,uEAAuE;QAC/F,CAAC,CAAC,QAAQ,MAAM,CAAC,OAAO,YAAY,CAAC;IAC7C,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,SAAS,WAAW,MAAM,CAAC,MAAM,YAAY,MAAM,CAAC,MAAM,GAAG;QACzF,SAAS,MAAM,CAAC,KAAK,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,yBAAyB,MAAM,CAAC,QAAQ,CAAC,QAAQ,KAAK;YACjG,0BAA0B,MAAM,CAAC,SAAS,EAAE;QAChD,SAAS;QACT,2BAA2B,MAAM,CAAC,gBAAgB,EAAE;KACvD,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjB,CAAC"}
@@ -0,0 +1,6 @@
1
+ export declare const buyCellInputSchema: {
2
+ tokenId: import("zod").ZodEffects<import("zod").ZodString, string, string>;
3
+ expectedOrderHash: import("zod").ZodString;
4
+ maxAmount: import("zod").ZodEffects<import("zod").ZodString, string, string>;
5
+ };
6
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/buy-cell/types.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB;;;;CAa9B,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { cellTokenIdSchema, orderHashSchema, positiveBaseUnitAmountSchema } from '../../../services/market/types.js';
2
+ export const buyCellInputSchema = {
3
+ tokenId: cellTokenIdSchema.describe('The Cell the listing sells, as a decimal token id with no leading zeroes (e.g. "0" or "1234", never "01234").'),
4
+ expectedOrderHash: orderHashSchema.describe('The exact 32-byte 0x-prefixed `orderHash` of the listing you decided to buy, copied from ' +
5
+ '`cpu_get_cell_market`. This tool buys that order or nothing: it never falls back to a cheaper, ' +
6
+ 'newer or otherwise different listing.'),
7
+ maxAmount: positiveBaseUnitAmountSchema.describe('The most you are willing to pay, as a positive decimal integer of the currency base units — never a ' +
8
+ 'decimal fraction. If the pinned order costs more than this, the call fails without sending anything.'),
9
+ };
10
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/market/buy-cell/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,eAAe,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAC;AAErH,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAC9B,OAAO,EAAE,iBAAiB,CAAC,QAAQ,CAC/B,+GAA+G,CAClH;IACD,iBAAiB,EAAE,eAAe,CAAC,QAAQ,CACvC,2FAA2F;QACvF,iGAAiG;QACjG,uCAAuC,CAC9C;IACD,SAAS,EAAE,4BAA4B,CAAC,QAAQ,CAC5C,sGAAsG;QAClG,sGAAsG,CAC7G;CACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import { type CancelOrderContext } from './types.js';
2
+ import type { MarketToolDefinition } from '../types.js';
3
+ export declare function createCancelOrderTool(context: CancelOrderContext): MarketToolDefinition;
4
+ //# sourceMappingURL=cancel-order.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-order.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/cancel-order/cancel-order.ts"],"names":[],"mappings":"AAEA,OAAO,EAA0B,KAAK,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAI7E,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,kBAAkB,GAAG,oBAAoB,CAuBvF"}
@@ -0,0 +1,29 @@
1
+ import { CANCEL_ORDER_DESCRIPTION } from './constants.js';
2
+ import { summarizeCancelledOrder } from './format.utils.js';
3
+ import { cancelOrderInputSchema } from './types.js';
4
+ import { ToolEventType } from '../../types.js';
5
+ import { cancelOrderOutputSchema } from '../output.types.js';
6
+ export function createCancelOrderTool(context) {
7
+ return {
8
+ name: 'cpu_cancel_order',
9
+ description: CANCEL_ORDER_DESCRIPTION,
10
+ inputSchema: cancelOrderInputSchema,
11
+ outputSchema: cancelOrderOutputSchema,
12
+ handler: async (args) => {
13
+ const input = args;
14
+ const result = await context.marketCancel.cancelOrder({ orderHash: input.orderHash });
15
+ const output = { ...result, eventType: ToolEventType.MarketOrderCancelled };
16
+ return {
17
+ content: [
18
+ { type: 'text', text: summarizeCancelledOrder(result) },
19
+ {
20
+ type: 'text',
21
+ text: JSON.stringify(output),
22
+ },
23
+ ],
24
+ structuredContent: output,
25
+ };
26
+ },
27
+ };
28
+ }
29
+ //# sourceMappingURL=cancel-order.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-order.js","sourceRoot":"","sources":["../../../../src/tools/market/cancel-order/cancel-order.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAC1D,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAA2B,MAAM,YAAY,CAAC;AAE7E,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AAG7D,MAAM,UAAU,qBAAqB,CAAC,OAA2B;IAC7D,OAAO;QACH,IAAI,EAAE,kBAAkB;QACxB,WAAW,EAAE,wBAAwB;QACrC,WAAW,EAAE,sBAAsB;QACnC,YAAY,EAAE,uBAAuB;QACrC,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE;YACpB,MAAM,KAAK,GAAG,IAA0B,CAAC;YACzC,MAAM,MAAM,GAAG,MAAM,OAAO,CAAC,YAAY,CAAC,WAAW,CAAC,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC,CAAC;YACtF,MAAM,MAAM,GAAG,EAAE,GAAG,MAAM,EAAE,SAAS,EAAE,aAAa,CAAC,oBAAoB,EAAE,CAAC;YAE5E,OAAO;gBACH,OAAO,EAAE;oBACL,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,uBAAuB,CAAC,MAAM,CAAC,EAAE;oBACvD;wBACI,IAAI,EAAE,MAAM;wBACZ,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;qBAC/B;iBACJ;gBACD,iBAAiB,EAAE,MAAM;aAC5B,CAAC;QACN,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const CANCEL_ORDER_DESCRIPTION: string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/cancel-order/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,QAoB1B,CAAC"}
@@ -0,0 +1,22 @@
1
+ export const CANCEL_ORDER_DESCRIPTION = [
2
+ 'Cancel ONE exact Market order you made on the NFT marketplace, in a single call. One action covers both',
3
+ 'sides: a Cell listing you published with `cpu_list_cell` and a Cell offer you published with',
4
+ '`cpu_make_cell_offer` are cancelled by the same input, because the side is a fact of the order rather than',
5
+ 'something you select. This is the land market — Cells traded as NFTs — and a Market order is not a resource',
6
+ 'Lot: ending one of those is `cpu_return_lot`, and this call never touches it.',
7
+ "YOU PICK THE ORDER. Read `cpu_get_my_listings` or `cpu_get_my_offers` first and pass that order's exact",
8
+ "`orderHash`. Only the wallet that made the order can cancel it: another wallet's order fails before anything",
9
+ 'is broadcast.',
10
+ 'The call performs the whole action itself: it prepares the cancellation, checks that the prepared transaction',
11
+ 'goes to the pinned marketplace protocol contract on this chain and that its bytes cancel exactly the order you',
12
+ 'named, then sends that one transaction and waits for its receipt.',
13
+ "Success is proven, not assumed: the receipt must carry the protocol's own cancellation event for that exact",
14
+ 'order, naming your wallet as the maker, and the transaction must have been sent by your wallet. An order that',
15
+ 'merely stopped being active is NEVER reported as cancelled — it may have been filled or expired instead, so an',
16
+ 'order that is gone without that proof fails with `staleListing` or `staleOffer` and no other order is touched.',
17
+ 'Retrying is safe: a repeated call re-checks the transaction it already sent instead of cancelling again, and',
18
+ 'can never bind another order. At worst a retry spends gas on a transaction the protocol rejects.',
19
+ 'The result reports `status` (`completed`, or `already_completed` when the cancellation proved to be done',
20
+ 'already), the `orderHash` cancelled, whether it was a listing or an offer, and the `cancellationTxHash`.',
21
+ ].join(' ');
22
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/tools/market/cancel-order/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACpC,yGAAyG;IACzG,8FAA8F;IAC9F,4GAA4G;IAC5G,6GAA6G;IAC7G,+EAA+E;IAC/E,yGAAyG;IACzG,8GAA8G;IAC9G,eAAe;IACf,+GAA+G;IAC/G,gHAAgH;IAChH,mEAAmE;IACnE,6GAA6G;IAC7G,+GAA+G;IAC/G,gHAAgH;IAChH,gHAAgH;IAChH,8GAA8G;IAC9G,kGAAkG;IAClG,0GAA0G;IAC1G,0GAA0G;CAC7G,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import type { CancelOrderResult } from '../../../services/market/cancel.types.js';
2
+ export declare function summarizeCancelledOrder(result: CancelOrderResult): string;
3
+ //# sourceMappingURL=format.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.utils.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/cancel-order/format.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAC;AAGlF,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,CAYzE"}
@@ -0,0 +1,13 @@
1
+ import { MarketActionStatus } from '../../../services/market/types.js';
2
+ export function summarizeCancelledOrder(result) {
3
+ const opening = result.status === MarketActionStatus.AlreadyCompleted
4
+ ? `Your ${result.orderKind} was already cancelled on-chain — no second cancellation was sent`
5
+ : `Your ${result.orderKind} is cancelled`;
6
+ const subject = result.tokenId === null ? 'it names no single Cell' : `it was made on Cell ${result.tokenId}`;
7
+ return [
8
+ `${opening} (order ${result.orderHash}, maker ${result.wallet})`,
9
+ subject,
10
+ `cancellation transaction: ${result.cancellationTxHash}`,
11
+ ].join('\n');
12
+ }
13
+ //# sourceMappingURL=format.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.utils.js","sourceRoot":"","sources":["../../../../src/tools/market/cancel-order/format.utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEvE,MAAM,UAAU,uBAAuB,CAAC,MAAyB;IAC7D,MAAM,OAAO,GACT,MAAM,CAAC,MAAM,KAAK,kBAAkB,CAAC,gBAAgB;QACjD,CAAC,CAAC,QAAQ,MAAM,CAAC,SAAS,mEAAmE;QAC7F,CAAC,CAAC,QAAQ,MAAM,CAAC,SAAS,eAAe,CAAC;IAClD,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,uBAAuB,MAAM,CAAC,OAAO,EAAE,CAAC;IAE9G,OAAO;QACH,GAAG,OAAO,WAAW,MAAM,CAAC,SAAS,WAAW,MAAM,CAAC,MAAM,GAAG;QAChE,OAAO;QACP,6BAA6B,MAAM,CAAC,kBAAkB,EAAE;KAC3D,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { IMarketCancelService } from '../../../services/market/cancel.types.js';
2
+ export interface CancelOrderContext {
3
+ marketCancel: IMarketCancelService;
4
+ }
5
+ export declare const cancelOrderInputSchema: {
6
+ orderHash: import("zod").ZodString;
7
+ };
8
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/cancel-order/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAGrF,MAAM,WAAW,kBAAkB;IAC/B,YAAY,EAAE,oBAAoB,CAAC;CACtC;AAED,eAAO,MAAM,sBAAsB;;CAMlC,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { orderHashSchema } from '../../../services/market/types.js';
2
+ export const cancelOrderInputSchema = {
3
+ orderHash: orderHashSchema.describe('The exact 32-byte 0x-prefixed `orderHash` of YOUR OWN Market order, copied from `cpu_get_my_listings` or ' +
4
+ '`cpu_get_my_offers`. The same input cancels a listing and an offer alike — the side is a fact of the ' +
5
+ 'order, not something you choose here.'),
6
+ };
7
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/tools/market/cancel-order/types.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAMpE,MAAM,CAAC,MAAM,sBAAsB,GAAG;IAClC,SAAS,EAAE,eAAe,CAAC,QAAQ,CAC/B,2GAA2G;QACvG,uGAAuG;QACvG,uCAAuC,CAC9C;CACJ,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { AppContext } from '../../../types.js';
2
+ import { type MarketToolDefinition } from '../types.js';
3
+ export declare function createGetCellMarketTool(context: AppContext): MarketToolDefinition;
4
+ //# sourceMappingURL=cell-market.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cell-market.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/cell-market/cell-market.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAA4B,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAElF,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,UAAU,GAAG,oBAAoB,CAmBjF"}
@@ -0,0 +1,24 @@
1
+ import { GET_CELL_MARKET_DESCRIPTION } from './constants.js';
2
+ import { summarizeCellMarket } from '../format.utils.js';
3
+ import { getCellMarketOutputSchema } from '../output.types.js';
4
+ import { getCellMarketInputSchema } from '../types.js';
5
+ export function createGetCellMarketTool(context) {
6
+ return {
7
+ name: 'cpu_get_cell_market',
8
+ description: GET_CELL_MARKET_DESCRIPTION,
9
+ inputSchema: getCellMarketInputSchema,
10
+ outputSchema: getCellMarketOutputSchema,
11
+ handler: async (args) => {
12
+ const { tokenId } = args;
13
+ const snapshot = await context.market.getCellMarket(tokenId);
14
+ return {
15
+ content: [
16
+ { type: 'text', text: summarizeCellMarket(snapshot) },
17
+ { type: 'text', text: JSON.stringify(snapshot) },
18
+ ],
19
+ structuredContent: snapshot,
20
+ };
21
+ },
22
+ };
23
+ }
24
+ //# sourceMappingURL=cell-market.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cell-market.js","sourceRoot":"","sources":["../../../../src/tools/market/cell-market/cell-market.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,gBAAgB,CAAC;AAE7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAA6B,MAAM,aAAa,CAAC;AAElF,MAAM,UAAU,uBAAuB,CAAC,OAAmB;IACvD,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,EAAE,OAAO,EAAE,GAAG,IAA2B,CAAC;YAChD,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;YAE7D,OAAO;gBACH,OAAO,EAAE;oBACL,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,mBAAmB,CAAC,QAAQ,CAAC,EAAE;oBACrD,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE;iBACnD;gBACD,iBAAiB,EAAE,QAAQ;aAC9B,CAAC;QACN,CAAC;KACJ,CAAC;AACN,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const GET_CELL_MARKET_DESCRIPTION: string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/cell-market/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,2BAA2B,QAc7B,CAAC"}
@@ -0,0 +1,16 @@
1
+ export const GET_CELL_MARKET_DESCRIPTION = [
2
+ 'The NFT marketplace snapshot for ONE Cell: the best (lowest) active listing anyone has published for it and',
3
+ 'the best (highest) active offer standing against it. This is the land market — Cells traded as NFTs for a',
4
+ 'configured currency — and it is entirely separate from `cpu_get_markets` / `cpu_list_lots`, which trade',
5
+ 'RESOURCES for $CPU inside the game.',
6
+ 'BOTH SIDES ARE INDEPENDENTLY NULLABLE. `bestListing: null` means nobody is selling that Cell right now;',
7
+ '`bestOffer: null` means nobody is bidding on it. Neither null is an error and neither implies the other.',
8
+ 'An offer carries its `kind`: `item` (bound to this exact Cell), `trait`, or `collection`. A trait or',
9
+ 'collection offer is not made for this Cell specifically, so its `tokenId` may be null — it would still be',
10
+ 'fillable with this Cell.',
11
+ 'Every price is a base-unit decimal integer STRING (never a number), paired with a `currency` carrying the',
12
+ 'address, symbol and decimals you need to read it. Times are Unix seconds.',
13
+ 'The snapshot is about 10 seconds old; re-reading it faster than that returns the same picture and burns the',
14
+ 'read budget. 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/cell-market/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACvC,6GAA6G;IAC7G,2GAA2G;IAC3G,yGAAyG;IACzG,qCAAqC;IACrC,yGAAyG;IACzG,0GAA0G;IAC1G,sGAAsG;IACtG,2GAA2G;IAC3G,0BAA0B;IAC1B,2GAA2G;IAC3G,2EAA2E;IAC3E,6GAA6G;IAC7G,gFAAgF;CACnF,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { ListCellResult } from '../../services/market/listing.types.js';
2
+ import type { MarketListingPage, MarketOfferPage } from '../../services/market/profile.schemas.js';
3
+ import { type CellMarketSnapshot } from '../../services/market/types.js';
4
+ export declare function summarizeListingPage(page: MarketListingPage): string;
5
+ export declare function summarizeOfferPage(heading: string, page: MarketOfferPage): string;
6
+ export declare function summarizeListedCell(result: ListCellResult): string;
7
+ export declare function summarizeCellMarket(snapshot: CellMarketSnapshot): string;
8
+ //# sourceMappingURL=format.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.utils.d.ts","sourceRoot":"","sources":["../../../src/tools/market/format.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AACnG,OAAO,EAAsB,KAAK,kBAAkB,EAAuB,MAAM,gCAAgC,CAAC;AAwBlH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,iBAAiB,GAAG,MAAM,CAUpE;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,eAAe,GAAG,MAAM,CAUjF;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAkBlE;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,kBAAkB,GAAG,MAAM,CAyBxE"}
@@ -0,0 +1,75 @@
1
+ import { MarketActionStatus } from '../../services/market/types.js';
2
+ function describeMoney(amount, currency) {
3
+ return `${amount} ${currency.symbol} base units (decimals=${currency.decimals})`;
4
+ }
5
+ function describeNextCursor(nextCursor) {
6
+ if (nextCursor === null) {
7
+ return 'no further pages — nextCursor is null';
8
+ }
9
+ return `more pages remain — call again with cursor "${nextCursor}"`;
10
+ }
11
+ function describeListingRow(listing) {
12
+ return `Cell ${listing.tokenId} — ${describeMoney(listing.price, listing.currency)} (order ${listing.orderHash})`;
13
+ }
14
+ function describeOfferRow(offer) {
15
+ const bound = offer.tokenId === null ? 'no bound Cell (criteria offer)' : `Cell ${offer.tokenId}`;
16
+ return `[${offer.kind}] ${bound} — ${describeMoney(offer.amount, offer.currency)} (order ${offer.orderHash})`;
17
+ }
18
+ export function summarizeListingPage(page) {
19
+ if (page.items.length === 0) {
20
+ return [`Your Cell listings — no listings on this page`, describeNextCursor(page.nextCursor)].join('\n');
21
+ }
22
+ return [
23
+ `Your Cell listings — ${page.items.length} on this page`,
24
+ ...page.items.map(describeListingRow),
25
+ describeNextCursor(page.nextCursor),
26
+ ].join('\n');
27
+ }
28
+ export function summarizeOfferPage(heading, page) {
29
+ if (page.items.length === 0) {
30
+ return [`${heading} — no offers on this page`, describeNextCursor(page.nextCursor)].join('\n');
31
+ }
32
+ return [
33
+ `${heading} — ${page.items.length} on this page`,
34
+ ...page.items.map(describeOfferRow),
35
+ describeNextCursor(page.nextCursor),
36
+ ].join('\n');
37
+ }
38
+ export function summarizeListedCell(result) {
39
+ const opening = result.status === MarketActionStatus.AlreadyCompleted
40
+ ? `Cell ${result.tokenId} was already listed on these exact terms — no second listing was published`
41
+ : `Cell ${result.tokenId} is listed`;
42
+ const approvals = result.approvalTxHashes.length === 0
43
+ ? 'no collection approval was needed'
44
+ : `collection approvals broadcast in order: ${result.approvalTxHashes.join(', ')}`;
45
+ return [
46
+ `${opening} (order ${result.listing.orderHash}, seller ${result.wallet})`,
47
+ `gross price: ${describeMoney(result.grossPrice, result.currency)}`,
48
+ `platform fee ${result.platformFee}, creator fee ${result.creatorFee}, ` +
49
+ `your estimated proceeds ${result.estimatedProceeds} (same base units)`,
50
+ `expires at ${result.listing.expirationTime}`,
51
+ approvals,
52
+ ].join('\n');
53
+ }
54
+ export function summarizeCellMarket(snapshot) {
55
+ const lines = [`Cell ${snapshot.tokenId} — marketplace snapshot`];
56
+ if (snapshot.bestListing === null) {
57
+ lines.push('best listing: none — this Cell is not for sale right now');
58
+ }
59
+ else {
60
+ const listing = snapshot.bestListing;
61
+ lines.push(`best listing: ${describeMoney(listing.price, listing.currency)} from ${listing.maker}, ` +
62
+ `expires at ${listing.expirationTime} (order ${listing.orderHash})`);
63
+ }
64
+ if (snapshot.bestOffer === null) {
65
+ lines.push('best offer: none — nobody is bidding on this Cell right now');
66
+ }
67
+ else {
68
+ const offer = snapshot.bestOffer;
69
+ const bound = offer.tokenId === null ? 'no bound Cell (criteria offer)' : `Cell ${offer.tokenId}`;
70
+ lines.push(`best offer [${offer.kind}]: ${describeMoney(offer.amount, offer.currency)} from ${offer.maker}, ` +
71
+ `${bound}, expires at ${offer.expirationTime} (order ${offer.orderHash})`);
72
+ }
73
+ return lines.join('\n');
74
+ }
75
+ //# sourceMappingURL=format.utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"format.utils.js","sourceRoot":"","sources":["../../../src/tools/market/format.utils.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ export declare const LIST_CELL_DESCRIPTION: string;
2
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../../../src/tools/market/list-cell/constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,qBAAqB,QAqBvB,CAAC"}
@@ -0,0 +1,23 @@
1
+ export const LIST_CELL_DESCRIPTION = [
2
+ 'Publish ONE Cell of yours for sale on the NFT marketplace, in a single call. This is the land market —',
3
+ 'Cells traded as NFTs for a configured currency — and it is entirely separate from `cpu_create_lot`, which',
4
+ 'sells RESOURCES for $CPU inside the game.',
5
+ 'The call performs the whole action itself: it checks that you are not about to duplicate an order, prepares',
6
+ 'the order, sends any collection approval your wallet still owes and waits for each receipt, signs the order',
7
+ 'locally, and publishes it. There is nothing to confirm afterwards.',
8
+ 'That collection approval is `setApprovalForAll`: a persistent operator grant over every Cell your wallet',
9
+ 'holds, not over the one Cell you are listing. It is sent once and then stays in force.',
10
+ '`price` is the GROSS amount a buyer pays, as a base-unit decimal integer STRING (never a number). The',
11
+ 'marketplace and creator fees are mandatory and come out of that amount: calling this tool authorizes that',
12
+ 'split, and the result reports `platformFee`, `creatorFee` and `estimatedProceeds` so you can see it. There',
13
+ 'is no minimum-proceeds input.',
14
+ 'Pass `buyerAddress` to reserve the listing for exactly one wallet; pass null to let anyone buy it. The',
15
+ 'seller is always the authenticated wallet.',
16
+ 'Retrying is safe: an identical repeated call resumes the same prepared order instead of publishing a second',
17
+ 'one. If a listing of yours at the same Cell, price and expiry is already active, the call fails with',
18
+ 'ACTIVE_ORDER_EXISTS rather than duplicating it — cancel that order first if you meant to replace it.',
19
+ 'The result reports `status` (`completed`, or `already_completed` when the order proved to be published',
20
+ 'already), the published listing with its `orderHash`, the fee split, and every approval transaction hash in',
21
+ 'the order it was broadcast.',
22
+ ].join(' ');
23
+ //# sourceMappingURL=constants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../../../../src/tools/market/list-cell/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACjC,wGAAwG;IACxG,2GAA2G;IAC3G,2CAA2C;IAC3C,6GAA6G;IAC7G,6GAA6G;IAC7G,oEAAoE;IACpE,0GAA0G;IAC1G,wFAAwF;IACxF,uGAAuG;IACvG,2GAA2G;IAC3G,4GAA4G;IAC5G,+BAA+B;IAC/B,wGAAwG;IACxG,4CAA4C;IAC5C,6GAA6G;IAC7G,sGAAsG;IACtG,sGAAsG;IACtG,wGAAwG;IACxG,6GAA6G;IAC7G,6BAA6B;CAChC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}