@compose-market/sdk 0.8.17 → 0.8.20

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 (459) hide show
  1. package/CHANGELOG.md +18 -1
  2. package/dist/blockchain/index.d.ts +2038 -0
  3. package/dist/blockchain/index.d.ts.map +1 -0
  4. package/dist/blockchain/index.js +945 -0
  5. package/dist/blockchain/index.js.map +1 -0
  6. package/dist/chains/index.d.ts +10 -16
  7. package/dist/chains/index.d.ts.map +1 -1
  8. package/dist/chains/index.js.map +1 -1
  9. package/dist/events.d.ts +4 -3
  10. package/dist/events.d.ts.map +1 -1
  11. package/dist/events.js.map +1 -1
  12. package/dist/http.d.ts +4 -2
  13. package/dist/http.d.ts.map +1 -1
  14. package/dist/http.js +31 -7
  15. package/dist/http.js.map +1 -1
  16. package/dist/index.d.ts +17 -13
  17. package/dist/index.d.ts.map +1 -1
  18. package/dist/index.js +54 -44
  19. package/dist/index.js.map +1 -1
  20. package/dist/resources/accounts.d.ts +2 -1
  21. package/dist/resources/accounts.d.ts.map +1 -1
  22. package/dist/resources/accounts.js +1 -1
  23. package/dist/resources/accounts.js.map +1 -1
  24. package/dist/resources/agent.d.ts +2 -1
  25. package/dist/resources/agent.d.ts.map +1 -1
  26. package/dist/resources/agent.js +7 -7
  27. package/dist/resources/agent.js.map +1 -1
  28. package/dist/resources/analytics.d.ts +2 -1
  29. package/dist/resources/analytics.d.ts.map +1 -1
  30. package/dist/resources/analytics.js +2 -2
  31. package/dist/resources/analytics.js.map +1 -1
  32. package/dist/resources/channels.d.ts +2 -1
  33. package/dist/resources/channels.d.ts.map +1 -1
  34. package/dist/resources/channels.js +15 -0
  35. package/dist/resources/channels.js.map +1 -1
  36. package/dist/resources/dispenser.d.ts +3 -2
  37. package/dist/resources/dispenser.d.ts.map +1 -1
  38. package/dist/resources/dispenser.js +8 -8
  39. package/dist/resources/dispenser.js.map +1 -1
  40. package/dist/resources/feedback.d.ts +2 -1
  41. package/dist/resources/feedback.d.ts.map +1 -1
  42. package/dist/resources/feedback.js +3 -3
  43. package/dist/resources/feedback.js.map +1 -1
  44. package/dist/resources/inference.d.ts +4 -3
  45. package/dist/resources/inference.d.ts.map +1 -1
  46. package/dist/resources/inference.js +5 -5
  47. package/dist/resources/inference.js.map +1 -1
  48. package/dist/resources/instrumentation.d.ts +2 -1
  49. package/dist/resources/instrumentation.d.ts.map +1 -1
  50. package/dist/resources/instrumentation.js +3 -3
  51. package/dist/resources/instrumentation.js.map +1 -1
  52. package/dist/resources/keys.d.ts +5 -4
  53. package/dist/resources/keys.d.ts.map +1 -1
  54. package/dist/resources/keys.js +8 -8
  55. package/dist/resources/keys.js.map +1 -1
  56. package/dist/resources/local.d.ts +2 -1
  57. package/dist/resources/local.d.ts.map +1 -1
  58. package/dist/resources/local.js +17 -17
  59. package/dist/resources/local.js.map +1 -1
  60. package/dist/resources/memory.d.ts +2 -1
  61. package/dist/resources/memory.d.ts.map +1 -1
  62. package/dist/resources/memory.js +1 -1
  63. package/dist/resources/memory.js.map +1 -1
  64. package/dist/resources/permissions.d.ts +2 -1
  65. package/dist/resources/permissions.d.ts.map +1 -1
  66. package/dist/resources/permissions.js +1 -1
  67. package/dist/resources/permissions.js.map +1 -1
  68. package/dist/resources/receipts.d.ts +3 -2
  69. package/dist/resources/receipts.d.ts.map +1 -1
  70. package/dist/resources/receipts.js +6 -6
  71. package/dist/resources/receipts.js.map +1 -1
  72. package/dist/resources/session-events.d.ts +4 -3
  73. package/dist/resources/session-events.d.ts.map +1 -1
  74. package/dist/resources/session-events.js +8 -8
  75. package/dist/resources/session-events.js.map +1 -1
  76. package/dist/resources/settlement.d.ts +2 -1
  77. package/dist/resources/settlement.d.ts.map +1 -1
  78. package/dist/resources/settlement.js +3 -3
  79. package/dist/resources/settlement.js.map +1 -1
  80. package/dist/resources/svm.d.ts +13 -0
  81. package/dist/resources/svm.d.ts.map +1 -0
  82. package/dist/resources/svm.js +35 -0
  83. package/dist/resources/svm.js.map +1 -0
  84. package/dist/resources/workflow.d.ts +2 -1
  85. package/dist/resources/workflow.d.ts.map +1 -1
  86. package/dist/resources/workflow.js +5 -5
  87. package/dist/resources/workflow.js.map +1 -1
  88. package/dist/resources/x402.d.ts +3 -2
  89. package/dist/resources/x402.d.ts.map +1 -1
  90. package/dist/resources/x402.js +1 -1
  91. package/dist/resources/x402.js.map +1 -1
  92. package/dist/storage.d.ts +3 -3
  93. package/dist/storage.d.ts.map +1 -1
  94. package/dist/storage.js +5 -4
  95. package/dist/storage.js.map +1 -1
  96. package/dist/types/index.d.ts +41 -43
  97. package/dist/types/index.d.ts.map +1 -1
  98. package/dist/version.d.ts +1 -1
  99. package/dist/version.js +1 -1
  100. package/generated/channels/esm/lib/config.d.ts +4 -4
  101. package/generated/channels/esm/lib/config.js +4 -4
  102. package/generated/channels/esm/lib/config.js.map +1 -1
  103. package/generated/channels/esm/lib/encodings.d.ts +2 -2
  104. package/generated/channels/esm/lib/http.d.ts +1 -1
  105. package/generated/channels/esm/lib/http.d.ts.map +1 -1
  106. package/generated/channels/esm/lib/http.js +1 -1
  107. package/generated/channels/esm/lib/http.js.map +1 -1
  108. package/generated/channels/esm/lib/security.d.ts +5 -4
  109. package/generated/channels/esm/lib/security.d.ts.map +1 -1
  110. package/generated/channels/esm/lib/security.js +4 -6
  111. package/generated/channels/esm/lib/security.js.map +1 -1
  112. package/generated/channels/esm/sdk/sdk.js +1 -1
  113. package/generated/channels/esm/sdk/sdk.js.map +1 -1
  114. package/generated/channels/esm/types/async.js +1 -1
  115. package/generated/channels/esm/types/async.js.map +1 -1
  116. package/generated/channels/package.json +1 -1
  117. package/generated/channels/src/lib/config.ts +4 -4
  118. package/generated/channels/src/lib/http.ts +3 -1
  119. package/generated/channels/src/lib/security.ts +10 -5
  120. package/generated/inference/esm/funcs/inference-responses-create.js +2 -2
  121. package/generated/inference/esm/funcs/inference-responses-create.js.map +1 -1
  122. package/generated/inference/esm/lib/config.d.ts +4 -4
  123. package/generated/inference/esm/lib/config.js +4 -4
  124. package/generated/inference/esm/lib/config.js.map +1 -1
  125. package/generated/inference/esm/lib/encodings.d.ts +2 -2
  126. package/generated/inference/esm/lib/http.d.ts +1 -1
  127. package/generated/inference/esm/lib/http.d.ts.map +1 -1
  128. package/generated/inference/esm/lib/http.js +1 -1
  129. package/generated/inference/esm/lib/http.js.map +1 -1
  130. package/generated/inference/esm/lib/security.d.ts +5 -4
  131. package/generated/inference/esm/lib/security.d.ts.map +1 -1
  132. package/generated/inference/esm/lib/security.js +4 -6
  133. package/generated/inference/esm/lib/security.js.map +1 -1
  134. package/generated/inference/esm/models/index.d.ts +1 -1
  135. package/generated/inference/esm/models/index.d.ts.map +1 -1
  136. package/generated/inference/esm/models/index.js +1 -1
  137. package/generated/inference/esm/models/index.js.map +1 -1
  138. package/generated/inference/esm/models/{receipt-line-item.d.ts → line-item.d.ts} +2 -2
  139. package/generated/inference/esm/models/line-item.d.ts.map +1 -0
  140. package/generated/inference/esm/models/{receipt-line-item.js → line-item.js} +2 -2
  141. package/generated/inference/esm/models/line-item.js.map +1 -0
  142. package/generated/inference/esm/models/operations/responses-create.d.ts +2 -2
  143. package/generated/inference/esm/models/operations/responses-create.d.ts.map +1 -1
  144. package/generated/inference/esm/models/operations/responses-create.js +2 -2
  145. package/generated/inference/esm/models/operations/responses-create.js.map +1 -1
  146. package/generated/inference/esm/models/receipt-body.d.ts +1 -1
  147. package/generated/inference/esm/models/receipt-body.d.ts.map +1 -1
  148. package/generated/inference/esm/models/receipt-body.js +1 -1
  149. package/generated/inference/esm/models/receipt-body.js.map +1 -1
  150. package/generated/inference/esm/models/responses-create-request.d.ts +2 -0
  151. package/generated/inference/esm/models/responses-create-request.d.ts.map +1 -1
  152. package/generated/inference/esm/models/responses-create-request.js +1 -0
  153. package/generated/inference/esm/models/responses-create-request.js.map +1 -1
  154. package/generated/inference/esm/sdk/sdk.js +4 -4
  155. package/generated/inference/esm/sdk/sdk.js.map +1 -1
  156. package/generated/inference/esm/types/async.js +1 -1
  157. package/generated/inference/esm/types/async.js.map +1 -1
  158. package/generated/inference/package.json +1 -1
  159. package/generated/inference/src/funcs/inference-responses-create.ts +4 -4
  160. package/generated/inference/src/lib/config.ts +4 -4
  161. package/generated/inference/src/lib/http.ts +3 -1
  162. package/generated/inference/src/lib/security.ts +10 -5
  163. package/generated/inference/src/models/index.ts +1 -1
  164. package/generated/inference/src/models/{receipt-line-item.ts → line-item.ts} +2 -5
  165. package/generated/inference/src/models/operations/responses-create.ts +4 -4
  166. package/generated/inference/src/models/receipt-body.ts +1 -4
  167. package/generated/inference/src/models/responses-create-request.ts +3 -0
  168. package/generated/manowar/esm/funcs/agents-responses-create.js +2 -2
  169. package/generated/manowar/esm/funcs/agents-responses-create.js.map +1 -1
  170. package/generated/manowar/esm/funcs/agents-runs-state-get.js +2 -2
  171. package/generated/manowar/esm/funcs/agents-runs-state-get.js.map +1 -1
  172. package/generated/manowar/esm/funcs/agents-stream-create.js +2 -2
  173. package/generated/manowar/esm/funcs/agents-stream-create.js.map +1 -1
  174. package/generated/manowar/esm/funcs/workflows-execute.js +2 -2
  175. package/generated/manowar/esm/funcs/workflows-execute.js.map +1 -1
  176. package/generated/manowar/esm/funcs/workflows-run-alias.js +2 -2
  177. package/generated/manowar/esm/funcs/workflows-run-alias.js.map +1 -1
  178. package/generated/manowar/esm/funcs/workflows-runs-approval-signal.js +2 -2
  179. package/generated/manowar/esm/funcs/workflows-runs-approval-signal.js.map +1 -1
  180. package/generated/manowar/esm/funcs/workflows-runs-state-get.js +2 -2
  181. package/generated/manowar/esm/funcs/workflows-runs-state-get.js.map +1 -1
  182. package/generated/manowar/esm/funcs/workflows-stop.js +2 -2
  183. package/generated/manowar/esm/funcs/workflows-stop.js.map +1 -1
  184. package/generated/manowar/esm/funcs/workflows-stream-create.js +2 -2
  185. package/generated/manowar/esm/funcs/workflows-stream-create.js.map +1 -1
  186. package/generated/manowar/esm/lib/config.d.ts +5 -5
  187. package/generated/manowar/esm/lib/config.d.ts.map +1 -1
  188. package/generated/manowar/esm/lib/config.js +7 -7
  189. package/generated/manowar/esm/lib/config.js.map +1 -1
  190. package/generated/manowar/esm/lib/encodings.d.ts +2 -2
  191. package/generated/manowar/esm/lib/http.d.ts +1 -1
  192. package/generated/manowar/esm/lib/http.d.ts.map +1 -1
  193. package/generated/manowar/esm/lib/http.js +1 -1
  194. package/generated/manowar/esm/lib/http.js.map +1 -1
  195. package/generated/manowar/esm/lib/security.d.ts +5 -4
  196. package/generated/manowar/esm/lib/security.d.ts.map +1 -1
  197. package/generated/manowar/esm/lib/security.js +4 -6
  198. package/generated/manowar/esm/lib/security.js.map +1 -1
  199. package/generated/manowar/esm/models/agent-stream-request.d.ts +2 -0
  200. package/generated/manowar/esm/models/agent-stream-request.d.ts.map +1 -1
  201. package/generated/manowar/esm/models/agent-stream-request.js +1 -0
  202. package/generated/manowar/esm/models/agent-stream-request.js.map +1 -1
  203. package/generated/manowar/esm/models/operations/execute.d.ts +1 -1
  204. package/generated/manowar/esm/models/operations/execute.d.ts.map +1 -1
  205. package/generated/manowar/esm/models/operations/execute.js +2 -2
  206. package/generated/manowar/esm/models/operations/execute.js.map +1 -1
  207. package/generated/manowar/esm/models/operations/responses-create.d.ts +1 -1
  208. package/generated/manowar/esm/models/operations/responses-create.d.ts.map +1 -1
  209. package/generated/manowar/esm/models/operations/responses-create.js +2 -2
  210. package/generated/manowar/esm/models/operations/responses-create.js.map +1 -1
  211. package/generated/manowar/esm/models/operations/run-alias.d.ts +1 -1
  212. package/generated/manowar/esm/models/operations/run-alias.d.ts.map +1 -1
  213. package/generated/manowar/esm/models/operations/run-alias.js +2 -2
  214. package/generated/manowar/esm/models/operations/run-alias.js.map +1 -1
  215. package/generated/manowar/esm/models/operations/runs-approval-signal.d.ts +1 -1
  216. package/generated/manowar/esm/models/operations/runs-approval-signal.d.ts.map +1 -1
  217. package/generated/manowar/esm/models/operations/runs-approval-signal.js +2 -2
  218. package/generated/manowar/esm/models/operations/runs-approval-signal.js.map +1 -1
  219. package/generated/manowar/esm/models/operations/runs-state-get.d.ts +1 -1
  220. package/generated/manowar/esm/models/operations/runs-state-get.d.ts.map +1 -1
  221. package/generated/manowar/esm/models/operations/runs-state-get.js +2 -2
  222. package/generated/manowar/esm/models/operations/runs-state-get.js.map +1 -1
  223. package/generated/manowar/esm/models/operations/stop.d.ts +1 -1
  224. package/generated/manowar/esm/models/operations/stop.d.ts.map +1 -1
  225. package/generated/manowar/esm/models/operations/stop.js +2 -2
  226. package/generated/manowar/esm/models/operations/stop.js.map +1 -1
  227. package/generated/manowar/esm/models/operations/stream-create.d.ts +1 -1
  228. package/generated/manowar/esm/models/operations/stream-create.d.ts.map +1 -1
  229. package/generated/manowar/esm/models/operations/stream-create.js +2 -2
  230. package/generated/manowar/esm/models/operations/stream-create.js.map +1 -1
  231. package/generated/manowar/esm/models/operations/workflow-runs-state-get.d.ts +1 -1
  232. package/generated/manowar/esm/models/operations/workflow-runs-state-get.d.ts.map +1 -1
  233. package/generated/manowar/esm/models/operations/workflow-runs-state-get.js +2 -2
  234. package/generated/manowar/esm/models/operations/workflow-runs-state-get.js.map +1 -1
  235. package/generated/manowar/esm/models/operations/workflow-stream-create.d.ts +1 -1
  236. package/generated/manowar/esm/models/operations/workflow-stream-create.d.ts.map +1 -1
  237. package/generated/manowar/esm/models/operations/workflow-stream-create.js +2 -2
  238. package/generated/manowar/esm/models/operations/workflow-stream-create.js.map +1 -1
  239. package/generated/manowar/esm/models/workflow-stream-request.d.ts +2 -0
  240. package/generated/manowar/esm/models/workflow-stream-request.d.ts.map +1 -1
  241. package/generated/manowar/esm/models/workflow-stream-request.js +1 -0
  242. package/generated/manowar/esm/models/workflow-stream-request.js.map +1 -1
  243. package/generated/manowar/esm/sdk/sdk.js +4 -4
  244. package/generated/manowar/esm/sdk/sdk.js.map +1 -1
  245. package/generated/manowar/esm/types/async.js +1 -1
  246. package/generated/manowar/esm/types/async.js.map +1 -1
  247. package/generated/manowar/package.json +1 -1
  248. package/generated/manowar/src/funcs/agents-responses-create.ts +2 -2
  249. package/generated/manowar/src/funcs/agents-runs-state-get.ts +2 -2
  250. package/generated/manowar/src/funcs/agents-stream-create.ts +2 -2
  251. package/generated/manowar/src/funcs/workflows-execute.ts +2 -2
  252. package/generated/manowar/src/funcs/workflows-run-alias.ts +2 -2
  253. package/generated/manowar/src/funcs/workflows-runs-approval-signal.ts +2 -2
  254. package/generated/manowar/src/funcs/workflows-runs-state-get.ts +2 -2
  255. package/generated/manowar/src/funcs/workflows-stop.ts +2 -2
  256. package/generated/manowar/src/funcs/workflows-stream-create.ts +2 -2
  257. package/generated/manowar/src/lib/config.ts +7 -7
  258. package/generated/manowar/src/lib/http.ts +3 -1
  259. package/generated/manowar/src/lib/security.ts +10 -5
  260. package/generated/manowar/src/models/agent-stream-request.ts +3 -0
  261. package/generated/manowar/src/models/operations/execute.ts +2 -2
  262. package/generated/manowar/src/models/operations/responses-create.ts +2 -2
  263. package/generated/manowar/src/models/operations/run-alias.ts +2 -2
  264. package/generated/manowar/src/models/operations/runs-approval-signal.ts +2 -2
  265. package/generated/manowar/src/models/operations/runs-state-get.ts +2 -2
  266. package/generated/manowar/src/models/operations/stop.ts +2 -2
  267. package/generated/manowar/src/models/operations/stream-create.ts +2 -2
  268. package/generated/manowar/src/models/operations/workflow-runs-state-get.ts +2 -2
  269. package/generated/manowar/src/models/operations/workflow-stream-create.ts +2 -2
  270. package/generated/manowar/src/models/workflow-stream-request.ts +3 -0
  271. package/generated/memory/esm/lib/config.d.ts +5 -5
  272. package/generated/memory/esm/lib/config.d.ts.map +1 -1
  273. package/generated/memory/esm/lib/config.js +7 -7
  274. package/generated/memory/esm/lib/config.js.map +1 -1
  275. package/generated/memory/esm/lib/encodings.d.ts +2 -2
  276. package/generated/memory/esm/lib/http.d.ts +1 -1
  277. package/generated/memory/esm/lib/http.d.ts.map +1 -1
  278. package/generated/memory/esm/lib/http.js +1 -1
  279. package/generated/memory/esm/lib/http.js.map +1 -1
  280. package/generated/memory/esm/lib/security.d.ts +5 -4
  281. package/generated/memory/esm/lib/security.d.ts.map +1 -1
  282. package/generated/memory/esm/lib/security.js +4 -6
  283. package/generated/memory/esm/lib/security.js.map +1 -1
  284. package/generated/memory/esm/sdk/sdk.js +1 -1
  285. package/generated/memory/esm/sdk/sdk.js.map +1 -1
  286. package/generated/memory/esm/types/async.js +1 -1
  287. package/generated/memory/esm/types/async.js.map +1 -1
  288. package/generated/memory/package.json +1 -1
  289. package/generated/memory/src/lib/config.ts +7 -7
  290. package/generated/memory/src/lib/http.ts +3 -1
  291. package/generated/memory/src/lib/security.ts +10 -5
  292. package/generated/x402/esm/funcs/feedback-submit.js +1 -1
  293. package/generated/x402/esm/funcs/feedback-submit.js.map +1 -1
  294. package/generated/x402/esm/funcs/{compose-keys-create.d.ts → keys-create.d.ts} +1 -1
  295. package/generated/x402/esm/funcs/keys-create.d.ts.map +1 -0
  296. package/generated/x402/esm/funcs/{compose-keys-create.js → keys-create.js} +2 -2
  297. package/generated/x402/esm/funcs/keys-create.js.map +1 -0
  298. package/generated/x402/esm/funcs/{compose-keys-get.d.ts → keys-get.d.ts} +1 -1
  299. package/generated/x402/esm/funcs/keys-get.d.ts.map +1 -0
  300. package/generated/x402/esm/funcs/{compose-keys-get.js → keys-get.js} +1 -1
  301. package/generated/x402/esm/funcs/keys-get.js.map +1 -0
  302. package/generated/x402/esm/funcs/{compose-keys-list.d.ts → keys-list.d.ts} +1 -1
  303. package/generated/x402/esm/funcs/keys-list.d.ts.map +1 -0
  304. package/generated/x402/esm/funcs/{compose-keys-list.js → keys-list.js} +2 -2
  305. package/generated/x402/esm/funcs/keys-list.js.map +1 -0
  306. package/generated/x402/esm/funcs/{compose-keys-revoke.d.ts → keys-revoke.d.ts} +1 -1
  307. package/generated/x402/esm/funcs/keys-revoke.d.ts.map +1 -0
  308. package/generated/x402/esm/funcs/{compose-keys-revoke.js → keys-revoke.js} +1 -1
  309. package/generated/x402/esm/funcs/keys-revoke.js.map +1 -0
  310. package/generated/x402/esm/funcs/{compose-keys-session-events-subscribe.d.ts → keys-session-events-subscribe.d.ts} +1 -1
  311. package/generated/x402/esm/funcs/keys-session-events-subscribe.d.ts.map +1 -0
  312. package/generated/x402/esm/funcs/{compose-keys-session-events-subscribe.js → keys-session-events-subscribe.js} +2 -2
  313. package/generated/x402/esm/funcs/keys-session-events-subscribe.js.map +1 -0
  314. package/generated/x402/esm/funcs/{compose-keys-session-get-active.d.ts → keys-session-get-active.d.ts} +1 -1
  315. package/generated/x402/esm/funcs/keys-session-get-active.d.ts.map +1 -0
  316. package/generated/x402/esm/funcs/{compose-keys-session-get-active.js → keys-session-get-active.js} +2 -2
  317. package/generated/x402/esm/funcs/keys-session-get-active.js.map +1 -0
  318. package/generated/x402/esm/funcs/payments-prepare.js +1 -1
  319. package/generated/x402/esm/funcs/payments-prepare.js.map +1 -1
  320. package/generated/x402/esm/funcs/x402-chains-list.d.ts +1 -1
  321. package/generated/x402/esm/funcs/x402-chains-list.d.ts.map +1 -1
  322. package/generated/x402/esm/funcs/x402-chains-list.js +1 -1
  323. package/generated/x402/esm/funcs/x402-chains-list.js.map +1 -1
  324. package/generated/x402/esm/lib/config.d.ts +4 -4
  325. package/generated/x402/esm/lib/config.js +4 -4
  326. package/generated/x402/esm/lib/config.js.map +1 -1
  327. package/generated/x402/esm/lib/encodings.d.ts +2 -2
  328. package/generated/x402/esm/lib/http.d.ts +1 -1
  329. package/generated/x402/esm/lib/http.d.ts.map +1 -1
  330. package/generated/x402/esm/lib/http.js +1 -1
  331. package/generated/x402/esm/lib/http.js.map +1 -1
  332. package/generated/x402/esm/lib/security.d.ts +5 -4
  333. package/generated/x402/esm/lib/security.d.ts.map +1 -1
  334. package/generated/x402/esm/lib/security.js +4 -6
  335. package/generated/x402/esm/lib/security.js.map +1 -1
  336. package/generated/x402/esm/models/active-session-metadata.d.ts +1 -1
  337. package/generated/x402/esm/models/active-session-metadata.js +1 -1
  338. package/generated/x402/esm/models/facilitator-network.d.ts +27 -0
  339. package/generated/x402/esm/models/facilitator-network.d.ts.map +1 -0
  340. package/generated/x402/esm/models/{facilitator-chain.js → facilitator-network.js} +8 -9
  341. package/generated/x402/esm/models/facilitator-network.js.map +1 -0
  342. package/generated/x402/esm/models/facilitator-networks-response.d.ts +12 -0
  343. package/generated/x402/esm/models/facilitator-networks-response.d.ts.map +1 -0
  344. package/generated/x402/esm/models/facilitator-networks-response.js +16 -0
  345. package/generated/x402/esm/models/facilitator-networks-response.js.map +1 -0
  346. package/generated/x402/esm/models/feedback-context.d.ts +2 -2
  347. package/generated/x402/esm/models/feedback-context.js +2 -2
  348. package/generated/x402/esm/models/feedback-context.js.map +1 -1
  349. package/generated/x402/esm/models/feedback-summary.d.ts +1 -1
  350. package/generated/x402/esm/models/feedback-summary.d.ts.map +1 -1
  351. package/generated/x402/esm/models/feedback-summary.js +1 -1
  352. package/generated/x402/esm/models/feedback-summary.js.map +1 -1
  353. package/generated/x402/esm/models/feedback-verification-kind.d.ts +1 -1
  354. package/generated/x402/esm/models/feedback-verification-kind.js +1 -1
  355. package/generated/x402/esm/models/feedback-verification-kind.js.map +1 -1
  356. package/generated/x402/esm/models/index.d.ts +2 -2
  357. package/generated/x402/esm/models/index.d.ts.map +1 -1
  358. package/generated/x402/esm/models/index.js +2 -2
  359. package/generated/x402/esm/models/index.js.map +1 -1
  360. package/generated/x402/esm/models/key-create-request.d.ts +2 -2
  361. package/generated/x402/esm/models/key-create-request.js +1 -1
  362. package/generated/x402/esm/models/key-create-request.js.map +1 -1
  363. package/generated/x402/esm/models/key-create-response.d.ts +1 -1
  364. package/generated/x402/esm/models/key-create-response.js +1 -1
  365. package/generated/x402/esm/models/key-record.d.ts +1 -1
  366. package/generated/x402/esm/models/key-record.js +1 -1
  367. package/generated/x402/esm/models/operations/create.d.ts +2 -2
  368. package/generated/x402/esm/models/operations/create.d.ts.map +1 -1
  369. package/generated/x402/esm/models/operations/create.js +2 -2
  370. package/generated/x402/esm/models/operations/create.js.map +1 -1
  371. package/generated/x402/esm/models/operations/list.d.ts +2 -2
  372. package/generated/x402/esm/models/operations/list.d.ts.map +1 -1
  373. package/generated/x402/esm/models/operations/list.js +2 -2
  374. package/generated/x402/esm/models/operations/list.js.map +1 -1
  375. package/generated/x402/esm/models/operations/prepare.d.ts +2 -2
  376. package/generated/x402/esm/models/operations/prepare.d.ts.map +1 -1
  377. package/generated/x402/esm/models/operations/prepare.js +2 -2
  378. package/generated/x402/esm/models/operations/prepare.js.map +1 -1
  379. package/generated/x402/esm/models/operations/session-events-subscribe.d.ts +2 -2
  380. package/generated/x402/esm/models/operations/session-events-subscribe.js +1 -1
  381. package/generated/x402/esm/models/operations/session-events-subscribe.js.map +1 -1
  382. package/generated/x402/esm/models/operations/session-get-active.d.ts +2 -2
  383. package/generated/x402/esm/models/operations/session-get-active.d.ts.map +1 -1
  384. package/generated/x402/esm/models/operations/session-get-active.js +2 -2
  385. package/generated/x402/esm/models/operations/session-get-active.js.map +1 -1
  386. package/generated/x402/esm/models/operations/submit.d.ts +2 -2
  387. package/generated/x402/esm/models/operations/submit.d.ts.map +1 -1
  388. package/generated/x402/esm/models/operations/submit.js +2 -2
  389. package/generated/x402/esm/models/operations/submit.js.map +1 -1
  390. package/generated/x402/esm/sdk/{compose-keys.d.ts → keys.d.ts} +1 -1
  391. package/generated/x402/esm/sdk/keys.d.ts.map +1 -0
  392. package/generated/x402/esm/sdk/{compose-keys.js → keys.js} +7 -7
  393. package/generated/x402/esm/sdk/keys.js.map +1 -0
  394. package/generated/x402/esm/sdk/sdk.d.ts +1 -1
  395. package/generated/x402/esm/sdk/sdk.d.ts.map +1 -1
  396. package/generated/x402/esm/sdk/sdk.js +6 -6
  397. package/generated/x402/esm/sdk/sdk.js.map +1 -1
  398. package/generated/x402/esm/sdk/x402.d.ts +1 -1
  399. package/generated/x402/esm/sdk/x402.d.ts.map +1 -1
  400. package/generated/x402/esm/sdk/x402.js.map +1 -1
  401. package/generated/x402/esm/types/async.js +1 -1
  402. package/generated/x402/esm/types/async.js.map +1 -1
  403. package/generated/x402/package.json +1 -1
  404. package/generated/x402/src/funcs/feedback-submit.ts +1 -1
  405. package/generated/x402/src/funcs/{compose-keys-create.ts → keys-create.ts} +1 -1
  406. package/generated/x402/src/funcs/{compose-keys-list.ts → keys-list.ts} +1 -1
  407. package/generated/x402/src/funcs/{compose-keys-session-events-subscribe.ts → keys-session-events-subscribe.ts} +1 -1
  408. package/generated/x402/src/funcs/{compose-keys-session-get-active.ts → keys-session-get-active.ts} +1 -1
  409. package/generated/x402/src/funcs/payments-prepare.ts +1 -1
  410. package/generated/x402/src/funcs/x402-chains-list.ts +4 -4
  411. package/generated/x402/src/lib/config.ts +4 -4
  412. package/generated/x402/src/lib/http.ts +3 -1
  413. package/generated/x402/src/lib/security.ts +10 -5
  414. package/generated/x402/src/models/active-session-metadata.ts +2 -2
  415. package/generated/x402/src/models/{facilitator-chain.ts → facilitator-network.ts} +18 -18
  416. package/generated/x402/src/models/facilitator-networks-response.ts +37 -0
  417. package/generated/x402/src/models/feedback-context.ts +4 -4
  418. package/generated/x402/src/models/feedback-summary.ts +2 -2
  419. package/generated/x402/src/models/feedback-verification-kind.ts +1 -1
  420. package/generated/x402/src/models/index.ts +2 -2
  421. package/generated/x402/src/models/key-create-request.ts +3 -3
  422. package/generated/x402/src/models/key-create-response.ts +2 -2
  423. package/generated/x402/src/models/key-record.ts +2 -2
  424. package/generated/x402/src/models/operations/create.ts +4 -4
  425. package/generated/x402/src/models/operations/list.ts +4 -4
  426. package/generated/x402/src/models/operations/prepare.ts +4 -4
  427. package/generated/x402/src/models/operations/session-events-subscribe.ts +3 -3
  428. package/generated/x402/src/models/operations/session-get-active.ts +4 -4
  429. package/generated/x402/src/models/operations/submit.ts +4 -4
  430. package/generated/x402/src/sdk/{compose-keys.ts → keys.ts} +6 -6
  431. package/generated/x402/src/sdk/sdk.ts +1 -1
  432. package/generated/x402/src/sdk/x402.ts +1 -1
  433. package/package.json +12 -6
  434. package/generated/inference/esm/models/receipt-line-item.d.ts.map +0 -1
  435. package/generated/inference/esm/models/receipt-line-item.js.map +0 -1
  436. package/generated/x402/esm/funcs/compose-keys-create.d.ts.map +0 -1
  437. package/generated/x402/esm/funcs/compose-keys-create.js.map +0 -1
  438. package/generated/x402/esm/funcs/compose-keys-get.d.ts.map +0 -1
  439. package/generated/x402/esm/funcs/compose-keys-get.js.map +0 -1
  440. package/generated/x402/esm/funcs/compose-keys-list.d.ts.map +0 -1
  441. package/generated/x402/esm/funcs/compose-keys-list.js.map +0 -1
  442. package/generated/x402/esm/funcs/compose-keys-revoke.d.ts.map +0 -1
  443. package/generated/x402/esm/funcs/compose-keys-revoke.js.map +0 -1
  444. package/generated/x402/esm/funcs/compose-keys-session-events-subscribe.d.ts.map +0 -1
  445. package/generated/x402/esm/funcs/compose-keys-session-events-subscribe.js.map +0 -1
  446. package/generated/x402/esm/funcs/compose-keys-session-get-active.d.ts.map +0 -1
  447. package/generated/x402/esm/funcs/compose-keys-session-get-active.js.map +0 -1
  448. package/generated/x402/esm/models/facilitator-chain.d.ts +0 -28
  449. package/generated/x402/esm/models/facilitator-chain.d.ts.map +0 -1
  450. package/generated/x402/esm/models/facilitator-chain.js.map +0 -1
  451. package/generated/x402/esm/models/facilitator-chains-response.d.ts +0 -12
  452. package/generated/x402/esm/models/facilitator-chains-response.d.ts.map +0 -1
  453. package/generated/x402/esm/models/facilitator-chains-response.js +0 -16
  454. package/generated/x402/esm/models/facilitator-chains-response.js.map +0 -1
  455. package/generated/x402/esm/sdk/compose-keys.d.ts.map +0 -1
  456. package/generated/x402/esm/sdk/compose-keys.js.map +0 -1
  457. package/generated/x402/src/models/facilitator-chains-response.ts +0 -37
  458. /package/generated/x402/src/funcs/{compose-keys-get.ts → keys-get.ts} +0 -0
  459. /package/generated/x402/src/funcs/{compose-keys-revoke.ts → keys-revoke.ts} +0 -0
@@ -0,0 +1,2038 @@
1
+ import { type Address as SolanaAddress, type Instruction } from "@solana/kit";
2
+ import { type Abi, type Address as EvmAddress } from "viem";
3
+ import type { NetworkId } from "../chains/index.js";
4
+ export type Hex = `0x${string}`;
5
+ export type ManowarContractName = "AgentFactory" | "Workflow" | "Clone" | "Warp" | "RFA" | "Lease" | "Reputation" | "Validation" | "Royalties" | "Distributor" | "Delegation" | "AgentManager" | "Utils";
6
+ export interface ManowarEvmDeployment {
7
+ readonly contracts: Partial<Record<ManowarContractName, EvmAddress>>;
8
+ }
9
+ export interface ManowarSolanaDeployment {
10
+ readonly identityProgramId: string;
11
+ readonly reputationProgramId: string;
12
+ readonly validationProgramId: string;
13
+ readonly marketProgramId: string;
14
+ }
15
+ export interface ManowarDeploymentConfig {
16
+ readonly network: NetworkId;
17
+ readonly evm?: ManowarEvmDeployment;
18
+ readonly solana?: ManowarSolanaDeployment;
19
+ }
20
+ export interface CreateManowarBlockchainClientInput {
21
+ readonly network: NetworkId;
22
+ readonly deployment: ManowarDeploymentConfig;
23
+ }
24
+ export interface ManowarEvmOperation {
25
+ readonly kind: "evm";
26
+ readonly network: NetworkId;
27
+ readonly contractName: ManowarContractName;
28
+ readonly to: EvmAddress;
29
+ readonly abi: Abi;
30
+ readonly functionName: string;
31
+ readonly args: readonly unknown[];
32
+ readonly data: Hex;
33
+ }
34
+ export interface ManowarSolanaOperation {
35
+ readonly kind: "solana";
36
+ readonly network: NetworkId;
37
+ readonly programName: "identity" | "market" | "reputation" | "validation";
38
+ readonly instructions: readonly Instruction[];
39
+ }
40
+ export declare const SYSTEM_PROGRAM_ADDRESS: SolanaAddress<"11111111111111111111111111111111">;
41
+ export declare const TOKEN_PROGRAM_ADDRESS: SolanaAddress<"TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA">;
42
+ export declare const ASSOCIATED_TOKEN_PROGRAM_ADDRESS: SolanaAddress<"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL">;
43
+ export declare const AgentFactoryABI: readonly [{
44
+ readonly name: "getAgentData";
45
+ readonly type: "function";
46
+ readonly stateMutability: "view";
47
+ readonly inputs: readonly [{
48
+ readonly name: "agentId";
49
+ readonly type: "uint256";
50
+ }];
51
+ readonly outputs: readonly [{
52
+ readonly name: "data";
53
+ readonly type: "tuple";
54
+ readonly components: readonly [{
55
+ readonly name: "dnaHash";
56
+ readonly type: "bytes32";
57
+ }, {
58
+ readonly name: "licenses";
59
+ readonly type: "uint256";
60
+ }, {
61
+ readonly name: "licensesMinted";
62
+ readonly type: "uint256";
63
+ }, {
64
+ readonly name: "licensePrice";
65
+ readonly type: "uint256";
66
+ }, {
67
+ readonly name: "creatorFee";
68
+ readonly type: "uint256";
69
+ }, {
70
+ readonly name: "creator";
71
+ readonly type: "address";
72
+ }, {
73
+ readonly name: "cloneable";
74
+ readonly type: "bool";
75
+ }, {
76
+ readonly name: "isClone";
77
+ readonly type: "bool";
78
+ }, {
79
+ readonly name: "parentAgentId";
80
+ readonly type: "uint256";
81
+ }, {
82
+ readonly name: "agentCardUri";
83
+ readonly type: "string";
84
+ }];
85
+ }];
86
+ }, {
87
+ readonly name: "totalAgents";
88
+ readonly type: "function";
89
+ readonly stateMutability: "view";
90
+ readonly inputs: readonly [];
91
+ readonly outputs: readonly [{
92
+ readonly name: "total";
93
+ readonly type: "uint256";
94
+ }];
95
+ }, {
96
+ readonly name: "hasAvailableLicenses";
97
+ readonly type: "function";
98
+ readonly stateMutability: "view";
99
+ readonly inputs: readonly [{
100
+ readonly name: "agentId";
101
+ readonly type: "uint256";
102
+ }];
103
+ readonly outputs: readonly [{
104
+ readonly name: "available";
105
+ readonly type: "bool";
106
+ }];
107
+ }, {
108
+ readonly name: "getDnaHash";
109
+ readonly type: "function";
110
+ readonly stateMutability: "view";
111
+ readonly inputs: readonly [{
112
+ readonly name: "agentId";
113
+ readonly type: "uint256";
114
+ }];
115
+ readonly outputs: readonly [{
116
+ readonly name: "dnaHash";
117
+ readonly type: "bytes32";
118
+ }];
119
+ }, {
120
+ readonly name: "ownerOf";
121
+ readonly type: "function";
122
+ readonly stateMutability: "view";
123
+ readonly inputs: readonly [{
124
+ readonly name: "tokenId";
125
+ readonly type: "uint256";
126
+ }];
127
+ readonly outputs: readonly [{
128
+ readonly name: "owner";
129
+ readonly type: "address";
130
+ }];
131
+ }, {
132
+ readonly name: "tokenURI";
133
+ readonly type: "function";
134
+ readonly stateMutability: "view";
135
+ readonly inputs: readonly [{
136
+ readonly name: "tokenId";
137
+ readonly type: "uint256";
138
+ }];
139
+ readonly outputs: readonly [{
140
+ readonly name: "uri";
141
+ readonly type: "string";
142
+ }];
143
+ }, {
144
+ readonly name: "isLicensedTo";
145
+ readonly type: "function";
146
+ readonly stateMutability: "view";
147
+ readonly inputs: readonly [{
148
+ readonly name: "agentId";
149
+ readonly type: "uint256";
150
+ }, {
151
+ readonly name: "workflowContract";
152
+ readonly type: "address";
153
+ }, {
154
+ readonly name: "workflowId";
155
+ readonly type: "uint256";
156
+ }];
157
+ readonly outputs: readonly [{
158
+ readonly name: "licensed";
159
+ readonly type: "bool";
160
+ }];
161
+ }, {
162
+ readonly name: "getLicenseRecords";
163
+ readonly type: "function";
164
+ readonly stateMutability: "view";
165
+ readonly inputs: readonly [{
166
+ readonly name: "agentId";
167
+ readonly type: "uint256";
168
+ }];
169
+ readonly outputs: readonly [{
170
+ readonly name: "records";
171
+ readonly type: "tuple[]";
172
+ readonly components: readonly [{
173
+ readonly name: "workflowContract";
174
+ readonly type: "address";
175
+ }, {
176
+ readonly name: "workflowId";
177
+ readonly type: "uint256";
178
+ }, {
179
+ readonly name: "licensedAt";
180
+ readonly type: "uint256";
181
+ }];
182
+ }];
183
+ }, {
184
+ readonly name: "agentExists";
185
+ readonly type: "function";
186
+ readonly stateMutability: "view";
187
+ readonly inputs: readonly [{
188
+ readonly name: "agentId";
189
+ readonly type: "uint256";
190
+ }];
191
+ readonly outputs: readonly [{
192
+ readonly name: "exists";
193
+ readonly type: "bool";
194
+ }];
195
+ }, {
196
+ readonly name: "mintAgent";
197
+ readonly type: "function";
198
+ readonly stateMutability: "nonpayable";
199
+ readonly inputs: readonly [{
200
+ readonly name: "dnaHash";
201
+ readonly type: "bytes32";
202
+ }, {
203
+ readonly name: "licenses";
204
+ readonly type: "uint256";
205
+ }, {
206
+ readonly name: "licensePrice";
207
+ readonly type: "uint256";
208
+ }, {
209
+ readonly name: "creatorFee";
210
+ readonly type: "uint256";
211
+ }, {
212
+ readonly name: "cloneable";
213
+ readonly type: "bool";
214
+ }, {
215
+ readonly name: "agentCardUri";
216
+ readonly type: "string";
217
+ }];
218
+ readonly outputs: readonly [{
219
+ readonly name: "agentId";
220
+ readonly type: "uint256";
221
+ }];
222
+ }, {
223
+ readonly name: "updatePrice";
224
+ readonly type: "function";
225
+ readonly stateMutability: "nonpayable";
226
+ readonly inputs: readonly [{
227
+ readonly name: "agentId";
228
+ readonly type: "uint256";
229
+ }, {
230
+ readonly name: "newPrice";
231
+ readonly type: "uint256";
232
+ }];
233
+ readonly outputs: readonly [];
234
+ }];
235
+ export declare const WorkflowABI: readonly [{
236
+ readonly name: "getWorkflowData";
237
+ readonly type: "function";
238
+ readonly stateMutability: "view";
239
+ readonly inputs: readonly [{
240
+ readonly name: "workflowId";
241
+ readonly type: "uint256";
242
+ }];
243
+ readonly outputs: readonly [{
244
+ readonly name: "data";
245
+ readonly type: "tuple";
246
+ readonly components: readonly [{
247
+ readonly name: "title";
248
+ readonly type: "string";
249
+ }, {
250
+ readonly name: "description";
251
+ readonly type: "string";
252
+ }, {
253
+ readonly name: "banner";
254
+ readonly type: "string";
255
+ }, {
256
+ readonly name: "workflowCardUri";
257
+ readonly type: "string";
258
+ }, {
259
+ readonly name: "totalPrice";
260
+ readonly type: "uint256";
261
+ }, {
262
+ readonly name: "units";
263
+ readonly type: "uint256";
264
+ }, {
265
+ readonly name: "unitsMinted";
266
+ readonly type: "uint256";
267
+ }, {
268
+ readonly name: "creator";
269
+ readonly type: "address";
270
+ }, {
271
+ readonly name: "leaseEnabled";
272
+ readonly type: "bool";
273
+ }, {
274
+ readonly name: "leaseDuration";
275
+ readonly type: "uint256";
276
+ }, {
277
+ readonly name: "leasePercent";
278
+ readonly type: "uint8";
279
+ }, {
280
+ readonly name: "hasCoordinator";
281
+ readonly type: "bool";
282
+ }, {
283
+ readonly name: "coordinatorModel";
284
+ readonly type: "string";
285
+ }, {
286
+ readonly name: "hasActiveRfa";
287
+ readonly type: "bool";
288
+ }, {
289
+ readonly name: "rfaId";
290
+ readonly type: "uint256";
291
+ }];
292
+ }];
293
+ }, {
294
+ readonly name: "totalWorkflows";
295
+ readonly type: "function";
296
+ readonly stateMutability: "view";
297
+ readonly inputs: readonly [];
298
+ readonly outputs: readonly [{
299
+ readonly name: "total";
300
+ readonly type: "uint256";
301
+ }];
302
+ }, {
303
+ readonly name: "tokenURI";
304
+ readonly type: "function";
305
+ readonly stateMutability: "view";
306
+ readonly inputs: readonly [{
307
+ readonly name: "tokenId";
308
+ readonly type: "uint256";
309
+ }];
310
+ readonly outputs: readonly [{
311
+ readonly name: "uri";
312
+ readonly type: "string";
313
+ }];
314
+ }, {
315
+ readonly name: "getAgents";
316
+ readonly type: "function";
317
+ readonly stateMutability: "view";
318
+ readonly inputs: readonly [{
319
+ readonly name: "workflowId";
320
+ readonly type: "uint256";
321
+ }];
322
+ readonly outputs: readonly [{
323
+ readonly name: "agentIds";
324
+ readonly type: "uint256[]";
325
+ }];
326
+ }, {
327
+ readonly name: "getAgentCount";
328
+ readonly type: "function";
329
+ readonly stateMutability: "view";
330
+ readonly inputs: readonly [{
331
+ readonly name: "workflowId";
332
+ readonly type: "uint256";
333
+ }];
334
+ readonly outputs: readonly [{
335
+ readonly name: "count";
336
+ readonly type: "uint256";
337
+ }];
338
+ }, {
339
+ readonly name: "isComplete";
340
+ readonly type: "function";
341
+ readonly stateMutability: "view";
342
+ readonly inputs: readonly [{
343
+ readonly name: "workflowId";
344
+ readonly type: "uint256";
345
+ }];
346
+ readonly outputs: readonly [{
347
+ readonly name: "complete";
348
+ readonly type: "bool";
349
+ }];
350
+ }, {
351
+ readonly name: "getCompleteWorkflows";
352
+ readonly type: "function";
353
+ readonly stateMutability: "view";
354
+ readonly inputs: readonly [];
355
+ readonly outputs: readonly [{
356
+ readonly name: "workflowIds";
357
+ readonly type: "uint256[]";
358
+ }];
359
+ }, {
360
+ readonly name: "getWorkflowsWithRFA";
361
+ readonly type: "function";
362
+ readonly stateMutability: "view";
363
+ readonly inputs: readonly [];
364
+ readonly outputs: readonly [{
365
+ readonly name: "workflowIds";
366
+ readonly type: "uint256[]";
367
+ }];
368
+ }, {
369
+ readonly name: "getWorkflowsByCreator";
370
+ readonly type: "function";
371
+ readonly stateMutability: "view";
372
+ readonly inputs: readonly [{
373
+ readonly name: "creator";
374
+ readonly type: "address";
375
+ }];
376
+ readonly outputs: readonly [{
377
+ readonly name: "workflowIds";
378
+ readonly type: "uint256[]";
379
+ }];
380
+ }, {
381
+ readonly name: "calculateTotalPrice";
382
+ readonly type: "function";
383
+ readonly stateMutability: "view";
384
+ readonly inputs: readonly [{
385
+ readonly name: "workflowId";
386
+ readonly type: "uint256";
387
+ }];
388
+ readonly outputs: readonly [{
389
+ readonly name: "total";
390
+ readonly type: "uint256";
391
+ }];
392
+ }, {
393
+ readonly name: "mintWorkflow";
394
+ readonly type: "function";
395
+ readonly stateMutability: "nonpayable";
396
+ readonly inputs: readonly [{
397
+ readonly name: "params";
398
+ readonly type: "tuple";
399
+ readonly components: readonly [{
400
+ readonly name: "title";
401
+ readonly type: "string";
402
+ }, {
403
+ readonly name: "description";
404
+ readonly type: "string";
405
+ }, {
406
+ readonly name: "banner";
407
+ readonly type: "string";
408
+ }, {
409
+ readonly name: "workflowCardUri";
410
+ readonly type: "string";
411
+ }, {
412
+ readonly name: "units";
413
+ readonly type: "uint256";
414
+ }, {
415
+ readonly name: "leaseEnabled";
416
+ readonly type: "bool";
417
+ }, {
418
+ readonly name: "leaseDuration";
419
+ readonly type: "uint256";
420
+ }, {
421
+ readonly name: "leasePercent";
422
+ readonly type: "uint8";
423
+ }, {
424
+ readonly name: "hasCoordinator";
425
+ readonly type: "bool";
426
+ }, {
427
+ readonly name: "coordinatorModel";
428
+ readonly type: "string";
429
+ }];
430
+ }, {
431
+ readonly name: "agentIds";
432
+ readonly type: "uint256[]";
433
+ }];
434
+ readonly outputs: readonly [{
435
+ readonly name: "workflowId";
436
+ readonly type: "uint256";
437
+ }];
438
+ }, {
439
+ readonly name: "addAgent";
440
+ readonly type: "function";
441
+ readonly stateMutability: "nonpayable";
442
+ readonly inputs: readonly [{
443
+ readonly name: "workflowId";
444
+ readonly type: "uint256";
445
+ }, {
446
+ readonly name: "agentId";
447
+ readonly type: "uint256";
448
+ }];
449
+ readonly outputs: readonly [];
450
+ }, {
451
+ readonly name: "removeAgent";
452
+ readonly type: "function";
453
+ readonly stateMutability: "nonpayable";
454
+ readonly inputs: readonly [{
455
+ readonly name: "workflowId";
456
+ readonly type: "uint256";
457
+ }, {
458
+ readonly name: "agentId";
459
+ readonly type: "uint256";
460
+ }];
461
+ readonly outputs: readonly [];
462
+ }, {
463
+ readonly name: "setCoordinator";
464
+ readonly type: "function";
465
+ readonly stateMutability: "nonpayable";
466
+ readonly inputs: readonly [{
467
+ readonly name: "workflowId";
468
+ readonly type: "uint256";
469
+ }, {
470
+ readonly name: "hasCoordinator";
471
+ readonly type: "bool";
472
+ }, {
473
+ readonly name: "model";
474
+ readonly type: "string";
475
+ }];
476
+ readonly outputs: readonly [];
477
+ }, {
478
+ readonly name: "updateLeaseSettings";
479
+ readonly type: "function";
480
+ readonly stateMutability: "nonpayable";
481
+ readonly inputs: readonly [{
482
+ readonly name: "workflowId";
483
+ readonly type: "uint256";
484
+ }, {
485
+ readonly name: "enabled";
486
+ readonly type: "bool";
487
+ }, {
488
+ readonly name: "duration";
489
+ readonly type: "uint256";
490
+ }, {
491
+ readonly name: "percent";
492
+ readonly type: "uint8";
493
+ }];
494
+ readonly outputs: readonly [];
495
+ }];
496
+ export declare const CloneABI: readonly [{
497
+ readonly name: "cloneAgent";
498
+ readonly type: "function";
499
+ readonly stateMutability: "nonpayable";
500
+ readonly inputs: readonly [{
501
+ readonly name: "originalAgentId";
502
+ readonly type: "uint256";
503
+ }, {
504
+ readonly name: "params";
505
+ readonly type: "tuple";
506
+ readonly components: readonly [{
507
+ readonly name: "chainId";
508
+ readonly type: "uint256";
509
+ }, {
510
+ readonly name: "licensePrice";
511
+ readonly type: "uint256";
512
+ }, {
513
+ readonly name: "model";
514
+ readonly type: "string";
515
+ }, {
516
+ readonly name: "licenses";
517
+ readonly type: "uint256";
518
+ }];
519
+ }, {
520
+ readonly name: "newAgentCardUri";
521
+ readonly type: "string";
522
+ }];
523
+ readonly outputs: readonly [{
524
+ readonly name: "clonedAgentId";
525
+ readonly type: "uint256";
526
+ }];
527
+ }, {
528
+ readonly name: "canClone";
529
+ readonly type: "function";
530
+ readonly stateMutability: "view";
531
+ readonly inputs: readonly [{
532
+ readonly name: "agentId";
533
+ readonly type: "uint256";
534
+ }];
535
+ readonly outputs: readonly [{
536
+ readonly name: "canClone";
537
+ readonly type: "bool";
538
+ }];
539
+ }, {
540
+ readonly name: "getClonesOf";
541
+ readonly type: "function";
542
+ readonly stateMutability: "view";
543
+ readonly inputs: readonly [{
544
+ readonly name: "originalAgentId";
545
+ readonly type: "uint256";
546
+ }];
547
+ readonly outputs: readonly [{
548
+ readonly name: "cloneIds";
549
+ readonly type: "uint256[]";
550
+ }];
551
+ }];
552
+ export declare const WarpABI: readonly [{
553
+ readonly name: "warpAgent";
554
+ readonly type: "function";
555
+ readonly stateMutability: "nonpayable";
556
+ readonly inputs: readonly [{
557
+ readonly name: "originalAgentHash";
558
+ readonly type: "bytes32";
559
+ }, {
560
+ readonly name: "originalCreator";
561
+ readonly type: "address";
562
+ }, {
563
+ readonly name: "licenses";
564
+ readonly type: "uint256";
565
+ }, {
566
+ readonly name: "licensePrice";
567
+ readonly type: "uint256";
568
+ }, {
569
+ readonly name: "agentCardUri";
570
+ readonly type: "string";
571
+ }];
572
+ readonly outputs: readonly [{
573
+ readonly name: "warpedAgentId";
574
+ readonly type: "uint256";
575
+ }];
576
+ }, {
577
+ readonly name: "isWarped";
578
+ readonly type: "function";
579
+ readonly stateMutability: "view";
580
+ readonly inputs: readonly [{
581
+ readonly name: "agentId";
582
+ readonly type: "uint256";
583
+ }];
584
+ readonly outputs: readonly [{
585
+ readonly name: "isWarped";
586
+ readonly type: "bool";
587
+ }];
588
+ }, {
589
+ readonly name: "getWarpedData";
590
+ readonly type: "function";
591
+ readonly stateMutability: "view";
592
+ readonly inputs: readonly [{
593
+ readonly name: "warpedAgentId";
594
+ readonly type: "uint256";
595
+ }];
596
+ readonly outputs: readonly [{
597
+ readonly name: "data";
598
+ readonly type: "tuple";
599
+ readonly components: readonly [{
600
+ readonly name: "originalCreator";
601
+ readonly type: "address";
602
+ }, {
603
+ readonly name: "warper";
604
+ readonly type: "address";
605
+ }, {
606
+ readonly name: "originalAgentHash";
607
+ readonly type: "bytes32";
608
+ }, {
609
+ readonly name: "royaltyExpiryDate";
610
+ readonly type: "uint256";
611
+ }, {
612
+ readonly name: "royaltiesClaimed";
613
+ readonly type: "bool";
614
+ }, {
615
+ readonly name: "accumulatedRoyalties";
616
+ readonly type: "uint256";
617
+ }];
618
+ }];
619
+ }, {
620
+ readonly name: "totalWarped";
621
+ readonly type: "function";
622
+ readonly stateMutability: "view";
623
+ readonly inputs: readonly [];
624
+ readonly outputs: readonly [{
625
+ readonly name: "total";
626
+ readonly type: "uint256";
627
+ }];
628
+ }, {
629
+ readonly name: "getWarpedAgentId";
630
+ readonly type: "function";
631
+ readonly stateMutability: "view";
632
+ readonly inputs: readonly [{
633
+ readonly name: "externalHash";
634
+ readonly type: "bytes32";
635
+ }];
636
+ readonly outputs: readonly [{
637
+ readonly name: "warpedAgentId";
638
+ readonly type: "uint256";
639
+ }];
640
+ }];
641
+ export declare const RFAABI: readonly [{
642
+ readonly name: "createRFA";
643
+ readonly type: "function";
644
+ readonly stateMutability: "nonpayable";
645
+ readonly inputs: readonly [{
646
+ readonly name: "workflowId";
647
+ readonly type: "uint256";
648
+ }, {
649
+ readonly name: "title";
650
+ readonly type: "string";
651
+ }, {
652
+ readonly name: "description";
653
+ readonly type: "string";
654
+ }, {
655
+ readonly name: "requiredSkills";
656
+ readonly type: "bytes32[]";
657
+ }, {
658
+ readonly name: "offerAmount";
659
+ readonly type: "uint256";
660
+ }];
661
+ readonly outputs: readonly [{
662
+ readonly name: "rfaId";
663
+ readonly type: "uint256";
664
+ }];
665
+ }, {
666
+ readonly name: "submitAgent";
667
+ readonly type: "function";
668
+ readonly stateMutability: "nonpayable";
669
+ readonly inputs: readonly [{
670
+ readonly name: "rfaId";
671
+ readonly type: "uint256";
672
+ }, {
673
+ readonly name: "agentId";
674
+ readonly type: "uint256";
675
+ }];
676
+ readonly outputs: readonly [];
677
+ }, {
678
+ readonly name: "acceptAgent";
679
+ readonly type: "function";
680
+ readonly stateMutability: "nonpayable";
681
+ readonly inputs: readonly [{
682
+ readonly name: "rfaId";
683
+ readonly type: "uint256";
684
+ }, {
685
+ readonly name: "agentId";
686
+ readonly type: "uint256";
687
+ }];
688
+ readonly outputs: readonly [];
689
+ }, {
690
+ readonly name: "cancelRFA";
691
+ readonly type: "function";
692
+ readonly stateMutability: "nonpayable";
693
+ readonly inputs: readonly [{
694
+ readonly name: "rfaId";
695
+ readonly type: "uint256";
696
+ }];
697
+ readonly outputs: readonly [];
698
+ }, {
699
+ readonly name: "getRFAData";
700
+ readonly type: "function";
701
+ readonly stateMutability: "view";
702
+ readonly inputs: readonly [{
703
+ readonly name: "rfaId";
704
+ readonly type: "uint256";
705
+ }];
706
+ readonly outputs: readonly [{
707
+ readonly name: "data";
708
+ readonly type: "tuple";
709
+ readonly components: readonly [{
710
+ readonly name: "workflowId";
711
+ readonly type: "uint256";
712
+ }, {
713
+ readonly name: "title";
714
+ readonly type: "string";
715
+ }, {
716
+ readonly name: "description";
717
+ readonly type: "string";
718
+ }, {
719
+ readonly name: "requiredSkills";
720
+ readonly type: "bytes32[]";
721
+ }, {
722
+ readonly name: "offerAmount";
723
+ readonly type: "uint256";
724
+ }, {
725
+ readonly name: "publisher";
726
+ readonly type: "address";
727
+ }, {
728
+ readonly name: "createdAt";
729
+ readonly type: "uint256";
730
+ }, {
731
+ readonly name: "status";
732
+ readonly type: "uint8";
733
+ }, {
734
+ readonly name: "fulfilledByAgentId";
735
+ readonly type: "uint256";
736
+ }, {
737
+ readonly name: "agentCreator";
738
+ readonly type: "address";
739
+ }];
740
+ }];
741
+ }, {
742
+ readonly name: "getOpenRFAs";
743
+ readonly type: "function";
744
+ readonly stateMutability: "view";
745
+ readonly inputs: readonly [];
746
+ readonly outputs: readonly [{
747
+ readonly name: "rfaIds";
748
+ readonly type: "uint256[]";
749
+ }];
750
+ }, {
751
+ readonly name: "getSubmissions";
752
+ readonly type: "function";
753
+ readonly stateMutability: "view";
754
+ readonly inputs: readonly [{
755
+ readonly name: "rfaId";
756
+ readonly type: "uint256";
757
+ }];
758
+ readonly outputs: readonly [{
759
+ readonly name: "submissions";
760
+ readonly type: "tuple[]";
761
+ readonly components: readonly [{
762
+ readonly name: "agentId";
763
+ readonly type: "uint256";
764
+ }, {
765
+ readonly name: "creator";
766
+ readonly type: "address";
767
+ }, {
768
+ readonly name: "submittedAt";
769
+ readonly type: "uint256";
770
+ }];
771
+ }];
772
+ }, {
773
+ readonly name: "getRFAsForWorkflow";
774
+ readonly type: "function";
775
+ readonly stateMutability: "view";
776
+ readonly inputs: readonly [{
777
+ readonly name: "workflowId";
778
+ readonly type: "uint256";
779
+ }];
780
+ readonly outputs: readonly [{
781
+ readonly name: "rfaIds";
782
+ readonly type: "uint256[]";
783
+ }];
784
+ }, {
785
+ readonly name: "getRFAsByPublisher";
786
+ readonly type: "function";
787
+ readonly stateMutability: "view";
788
+ readonly inputs: readonly [{
789
+ readonly name: "publisher";
790
+ readonly type: "address";
791
+ }];
792
+ readonly outputs: readonly [{
793
+ readonly name: "rfaIds";
794
+ readonly type: "uint256[]";
795
+ }];
796
+ }];
797
+ export declare const ManowarEvmABIs: {
798
+ readonly AgentFactory: readonly [{
799
+ readonly name: "getAgentData";
800
+ readonly type: "function";
801
+ readonly stateMutability: "view";
802
+ readonly inputs: readonly [{
803
+ readonly name: "agentId";
804
+ readonly type: "uint256";
805
+ }];
806
+ readonly outputs: readonly [{
807
+ readonly name: "data";
808
+ readonly type: "tuple";
809
+ readonly components: readonly [{
810
+ readonly name: "dnaHash";
811
+ readonly type: "bytes32";
812
+ }, {
813
+ readonly name: "licenses";
814
+ readonly type: "uint256";
815
+ }, {
816
+ readonly name: "licensesMinted";
817
+ readonly type: "uint256";
818
+ }, {
819
+ readonly name: "licensePrice";
820
+ readonly type: "uint256";
821
+ }, {
822
+ readonly name: "creatorFee";
823
+ readonly type: "uint256";
824
+ }, {
825
+ readonly name: "creator";
826
+ readonly type: "address";
827
+ }, {
828
+ readonly name: "cloneable";
829
+ readonly type: "bool";
830
+ }, {
831
+ readonly name: "isClone";
832
+ readonly type: "bool";
833
+ }, {
834
+ readonly name: "parentAgentId";
835
+ readonly type: "uint256";
836
+ }, {
837
+ readonly name: "agentCardUri";
838
+ readonly type: "string";
839
+ }];
840
+ }];
841
+ }, {
842
+ readonly name: "totalAgents";
843
+ readonly type: "function";
844
+ readonly stateMutability: "view";
845
+ readonly inputs: readonly [];
846
+ readonly outputs: readonly [{
847
+ readonly name: "total";
848
+ readonly type: "uint256";
849
+ }];
850
+ }, {
851
+ readonly name: "hasAvailableLicenses";
852
+ readonly type: "function";
853
+ readonly stateMutability: "view";
854
+ readonly inputs: readonly [{
855
+ readonly name: "agentId";
856
+ readonly type: "uint256";
857
+ }];
858
+ readonly outputs: readonly [{
859
+ readonly name: "available";
860
+ readonly type: "bool";
861
+ }];
862
+ }, {
863
+ readonly name: "getDnaHash";
864
+ readonly type: "function";
865
+ readonly stateMutability: "view";
866
+ readonly inputs: readonly [{
867
+ readonly name: "agentId";
868
+ readonly type: "uint256";
869
+ }];
870
+ readonly outputs: readonly [{
871
+ readonly name: "dnaHash";
872
+ readonly type: "bytes32";
873
+ }];
874
+ }, {
875
+ readonly name: "ownerOf";
876
+ readonly type: "function";
877
+ readonly stateMutability: "view";
878
+ readonly inputs: readonly [{
879
+ readonly name: "tokenId";
880
+ readonly type: "uint256";
881
+ }];
882
+ readonly outputs: readonly [{
883
+ readonly name: "owner";
884
+ readonly type: "address";
885
+ }];
886
+ }, {
887
+ readonly name: "tokenURI";
888
+ readonly type: "function";
889
+ readonly stateMutability: "view";
890
+ readonly inputs: readonly [{
891
+ readonly name: "tokenId";
892
+ readonly type: "uint256";
893
+ }];
894
+ readonly outputs: readonly [{
895
+ readonly name: "uri";
896
+ readonly type: "string";
897
+ }];
898
+ }, {
899
+ readonly name: "isLicensedTo";
900
+ readonly type: "function";
901
+ readonly stateMutability: "view";
902
+ readonly inputs: readonly [{
903
+ readonly name: "agentId";
904
+ readonly type: "uint256";
905
+ }, {
906
+ readonly name: "workflowContract";
907
+ readonly type: "address";
908
+ }, {
909
+ readonly name: "workflowId";
910
+ readonly type: "uint256";
911
+ }];
912
+ readonly outputs: readonly [{
913
+ readonly name: "licensed";
914
+ readonly type: "bool";
915
+ }];
916
+ }, {
917
+ readonly name: "getLicenseRecords";
918
+ readonly type: "function";
919
+ readonly stateMutability: "view";
920
+ readonly inputs: readonly [{
921
+ readonly name: "agentId";
922
+ readonly type: "uint256";
923
+ }];
924
+ readonly outputs: readonly [{
925
+ readonly name: "records";
926
+ readonly type: "tuple[]";
927
+ readonly components: readonly [{
928
+ readonly name: "workflowContract";
929
+ readonly type: "address";
930
+ }, {
931
+ readonly name: "workflowId";
932
+ readonly type: "uint256";
933
+ }, {
934
+ readonly name: "licensedAt";
935
+ readonly type: "uint256";
936
+ }];
937
+ }];
938
+ }, {
939
+ readonly name: "agentExists";
940
+ readonly type: "function";
941
+ readonly stateMutability: "view";
942
+ readonly inputs: readonly [{
943
+ readonly name: "agentId";
944
+ readonly type: "uint256";
945
+ }];
946
+ readonly outputs: readonly [{
947
+ readonly name: "exists";
948
+ readonly type: "bool";
949
+ }];
950
+ }, {
951
+ readonly name: "mintAgent";
952
+ readonly type: "function";
953
+ readonly stateMutability: "nonpayable";
954
+ readonly inputs: readonly [{
955
+ readonly name: "dnaHash";
956
+ readonly type: "bytes32";
957
+ }, {
958
+ readonly name: "licenses";
959
+ readonly type: "uint256";
960
+ }, {
961
+ readonly name: "licensePrice";
962
+ readonly type: "uint256";
963
+ }, {
964
+ readonly name: "creatorFee";
965
+ readonly type: "uint256";
966
+ }, {
967
+ readonly name: "cloneable";
968
+ readonly type: "bool";
969
+ }, {
970
+ readonly name: "agentCardUri";
971
+ readonly type: "string";
972
+ }];
973
+ readonly outputs: readonly [{
974
+ readonly name: "agentId";
975
+ readonly type: "uint256";
976
+ }];
977
+ }, {
978
+ readonly name: "updatePrice";
979
+ readonly type: "function";
980
+ readonly stateMutability: "nonpayable";
981
+ readonly inputs: readonly [{
982
+ readonly name: "agentId";
983
+ readonly type: "uint256";
984
+ }, {
985
+ readonly name: "newPrice";
986
+ readonly type: "uint256";
987
+ }];
988
+ readonly outputs: readonly [];
989
+ }];
990
+ readonly Workflow: readonly [{
991
+ readonly name: "getWorkflowData";
992
+ readonly type: "function";
993
+ readonly stateMutability: "view";
994
+ readonly inputs: readonly [{
995
+ readonly name: "workflowId";
996
+ readonly type: "uint256";
997
+ }];
998
+ readonly outputs: readonly [{
999
+ readonly name: "data";
1000
+ readonly type: "tuple";
1001
+ readonly components: readonly [{
1002
+ readonly name: "title";
1003
+ readonly type: "string";
1004
+ }, {
1005
+ readonly name: "description";
1006
+ readonly type: "string";
1007
+ }, {
1008
+ readonly name: "banner";
1009
+ readonly type: "string";
1010
+ }, {
1011
+ readonly name: "workflowCardUri";
1012
+ readonly type: "string";
1013
+ }, {
1014
+ readonly name: "totalPrice";
1015
+ readonly type: "uint256";
1016
+ }, {
1017
+ readonly name: "units";
1018
+ readonly type: "uint256";
1019
+ }, {
1020
+ readonly name: "unitsMinted";
1021
+ readonly type: "uint256";
1022
+ }, {
1023
+ readonly name: "creator";
1024
+ readonly type: "address";
1025
+ }, {
1026
+ readonly name: "leaseEnabled";
1027
+ readonly type: "bool";
1028
+ }, {
1029
+ readonly name: "leaseDuration";
1030
+ readonly type: "uint256";
1031
+ }, {
1032
+ readonly name: "leasePercent";
1033
+ readonly type: "uint8";
1034
+ }, {
1035
+ readonly name: "hasCoordinator";
1036
+ readonly type: "bool";
1037
+ }, {
1038
+ readonly name: "coordinatorModel";
1039
+ readonly type: "string";
1040
+ }, {
1041
+ readonly name: "hasActiveRfa";
1042
+ readonly type: "bool";
1043
+ }, {
1044
+ readonly name: "rfaId";
1045
+ readonly type: "uint256";
1046
+ }];
1047
+ }];
1048
+ }, {
1049
+ readonly name: "totalWorkflows";
1050
+ readonly type: "function";
1051
+ readonly stateMutability: "view";
1052
+ readonly inputs: readonly [];
1053
+ readonly outputs: readonly [{
1054
+ readonly name: "total";
1055
+ readonly type: "uint256";
1056
+ }];
1057
+ }, {
1058
+ readonly name: "tokenURI";
1059
+ readonly type: "function";
1060
+ readonly stateMutability: "view";
1061
+ readonly inputs: readonly [{
1062
+ readonly name: "tokenId";
1063
+ readonly type: "uint256";
1064
+ }];
1065
+ readonly outputs: readonly [{
1066
+ readonly name: "uri";
1067
+ readonly type: "string";
1068
+ }];
1069
+ }, {
1070
+ readonly name: "getAgents";
1071
+ readonly type: "function";
1072
+ readonly stateMutability: "view";
1073
+ readonly inputs: readonly [{
1074
+ readonly name: "workflowId";
1075
+ readonly type: "uint256";
1076
+ }];
1077
+ readonly outputs: readonly [{
1078
+ readonly name: "agentIds";
1079
+ readonly type: "uint256[]";
1080
+ }];
1081
+ }, {
1082
+ readonly name: "getAgentCount";
1083
+ readonly type: "function";
1084
+ readonly stateMutability: "view";
1085
+ readonly inputs: readonly [{
1086
+ readonly name: "workflowId";
1087
+ readonly type: "uint256";
1088
+ }];
1089
+ readonly outputs: readonly [{
1090
+ readonly name: "count";
1091
+ readonly type: "uint256";
1092
+ }];
1093
+ }, {
1094
+ readonly name: "isComplete";
1095
+ readonly type: "function";
1096
+ readonly stateMutability: "view";
1097
+ readonly inputs: readonly [{
1098
+ readonly name: "workflowId";
1099
+ readonly type: "uint256";
1100
+ }];
1101
+ readonly outputs: readonly [{
1102
+ readonly name: "complete";
1103
+ readonly type: "bool";
1104
+ }];
1105
+ }, {
1106
+ readonly name: "getCompleteWorkflows";
1107
+ readonly type: "function";
1108
+ readonly stateMutability: "view";
1109
+ readonly inputs: readonly [];
1110
+ readonly outputs: readonly [{
1111
+ readonly name: "workflowIds";
1112
+ readonly type: "uint256[]";
1113
+ }];
1114
+ }, {
1115
+ readonly name: "getWorkflowsWithRFA";
1116
+ readonly type: "function";
1117
+ readonly stateMutability: "view";
1118
+ readonly inputs: readonly [];
1119
+ readonly outputs: readonly [{
1120
+ readonly name: "workflowIds";
1121
+ readonly type: "uint256[]";
1122
+ }];
1123
+ }, {
1124
+ readonly name: "getWorkflowsByCreator";
1125
+ readonly type: "function";
1126
+ readonly stateMutability: "view";
1127
+ readonly inputs: readonly [{
1128
+ readonly name: "creator";
1129
+ readonly type: "address";
1130
+ }];
1131
+ readonly outputs: readonly [{
1132
+ readonly name: "workflowIds";
1133
+ readonly type: "uint256[]";
1134
+ }];
1135
+ }, {
1136
+ readonly name: "calculateTotalPrice";
1137
+ readonly type: "function";
1138
+ readonly stateMutability: "view";
1139
+ readonly inputs: readonly [{
1140
+ readonly name: "workflowId";
1141
+ readonly type: "uint256";
1142
+ }];
1143
+ readonly outputs: readonly [{
1144
+ readonly name: "total";
1145
+ readonly type: "uint256";
1146
+ }];
1147
+ }, {
1148
+ readonly name: "mintWorkflow";
1149
+ readonly type: "function";
1150
+ readonly stateMutability: "nonpayable";
1151
+ readonly inputs: readonly [{
1152
+ readonly name: "params";
1153
+ readonly type: "tuple";
1154
+ readonly components: readonly [{
1155
+ readonly name: "title";
1156
+ readonly type: "string";
1157
+ }, {
1158
+ readonly name: "description";
1159
+ readonly type: "string";
1160
+ }, {
1161
+ readonly name: "banner";
1162
+ readonly type: "string";
1163
+ }, {
1164
+ readonly name: "workflowCardUri";
1165
+ readonly type: "string";
1166
+ }, {
1167
+ readonly name: "units";
1168
+ readonly type: "uint256";
1169
+ }, {
1170
+ readonly name: "leaseEnabled";
1171
+ readonly type: "bool";
1172
+ }, {
1173
+ readonly name: "leaseDuration";
1174
+ readonly type: "uint256";
1175
+ }, {
1176
+ readonly name: "leasePercent";
1177
+ readonly type: "uint8";
1178
+ }, {
1179
+ readonly name: "hasCoordinator";
1180
+ readonly type: "bool";
1181
+ }, {
1182
+ readonly name: "coordinatorModel";
1183
+ readonly type: "string";
1184
+ }];
1185
+ }, {
1186
+ readonly name: "agentIds";
1187
+ readonly type: "uint256[]";
1188
+ }];
1189
+ readonly outputs: readonly [{
1190
+ readonly name: "workflowId";
1191
+ readonly type: "uint256";
1192
+ }];
1193
+ }, {
1194
+ readonly name: "addAgent";
1195
+ readonly type: "function";
1196
+ readonly stateMutability: "nonpayable";
1197
+ readonly inputs: readonly [{
1198
+ readonly name: "workflowId";
1199
+ readonly type: "uint256";
1200
+ }, {
1201
+ readonly name: "agentId";
1202
+ readonly type: "uint256";
1203
+ }];
1204
+ readonly outputs: readonly [];
1205
+ }, {
1206
+ readonly name: "removeAgent";
1207
+ readonly type: "function";
1208
+ readonly stateMutability: "nonpayable";
1209
+ readonly inputs: readonly [{
1210
+ readonly name: "workflowId";
1211
+ readonly type: "uint256";
1212
+ }, {
1213
+ readonly name: "agentId";
1214
+ readonly type: "uint256";
1215
+ }];
1216
+ readonly outputs: readonly [];
1217
+ }, {
1218
+ readonly name: "setCoordinator";
1219
+ readonly type: "function";
1220
+ readonly stateMutability: "nonpayable";
1221
+ readonly inputs: readonly [{
1222
+ readonly name: "workflowId";
1223
+ readonly type: "uint256";
1224
+ }, {
1225
+ readonly name: "hasCoordinator";
1226
+ readonly type: "bool";
1227
+ }, {
1228
+ readonly name: "model";
1229
+ readonly type: "string";
1230
+ }];
1231
+ readonly outputs: readonly [];
1232
+ }, {
1233
+ readonly name: "updateLeaseSettings";
1234
+ readonly type: "function";
1235
+ readonly stateMutability: "nonpayable";
1236
+ readonly inputs: readonly [{
1237
+ readonly name: "workflowId";
1238
+ readonly type: "uint256";
1239
+ }, {
1240
+ readonly name: "enabled";
1241
+ readonly type: "bool";
1242
+ }, {
1243
+ readonly name: "duration";
1244
+ readonly type: "uint256";
1245
+ }, {
1246
+ readonly name: "percent";
1247
+ readonly type: "uint8";
1248
+ }];
1249
+ readonly outputs: readonly [];
1250
+ }];
1251
+ readonly Clone: readonly [{
1252
+ readonly name: "cloneAgent";
1253
+ readonly type: "function";
1254
+ readonly stateMutability: "nonpayable";
1255
+ readonly inputs: readonly [{
1256
+ readonly name: "originalAgentId";
1257
+ readonly type: "uint256";
1258
+ }, {
1259
+ readonly name: "params";
1260
+ readonly type: "tuple";
1261
+ readonly components: readonly [{
1262
+ readonly name: "chainId";
1263
+ readonly type: "uint256";
1264
+ }, {
1265
+ readonly name: "licensePrice";
1266
+ readonly type: "uint256";
1267
+ }, {
1268
+ readonly name: "model";
1269
+ readonly type: "string";
1270
+ }, {
1271
+ readonly name: "licenses";
1272
+ readonly type: "uint256";
1273
+ }];
1274
+ }, {
1275
+ readonly name: "newAgentCardUri";
1276
+ readonly type: "string";
1277
+ }];
1278
+ readonly outputs: readonly [{
1279
+ readonly name: "clonedAgentId";
1280
+ readonly type: "uint256";
1281
+ }];
1282
+ }, {
1283
+ readonly name: "canClone";
1284
+ readonly type: "function";
1285
+ readonly stateMutability: "view";
1286
+ readonly inputs: readonly [{
1287
+ readonly name: "agentId";
1288
+ readonly type: "uint256";
1289
+ }];
1290
+ readonly outputs: readonly [{
1291
+ readonly name: "canClone";
1292
+ readonly type: "bool";
1293
+ }];
1294
+ }, {
1295
+ readonly name: "getClonesOf";
1296
+ readonly type: "function";
1297
+ readonly stateMutability: "view";
1298
+ readonly inputs: readonly [{
1299
+ readonly name: "originalAgentId";
1300
+ readonly type: "uint256";
1301
+ }];
1302
+ readonly outputs: readonly [{
1303
+ readonly name: "cloneIds";
1304
+ readonly type: "uint256[]";
1305
+ }];
1306
+ }];
1307
+ readonly Warp: readonly [{
1308
+ readonly name: "warpAgent";
1309
+ readonly type: "function";
1310
+ readonly stateMutability: "nonpayable";
1311
+ readonly inputs: readonly [{
1312
+ readonly name: "originalAgentHash";
1313
+ readonly type: "bytes32";
1314
+ }, {
1315
+ readonly name: "originalCreator";
1316
+ readonly type: "address";
1317
+ }, {
1318
+ readonly name: "licenses";
1319
+ readonly type: "uint256";
1320
+ }, {
1321
+ readonly name: "licensePrice";
1322
+ readonly type: "uint256";
1323
+ }, {
1324
+ readonly name: "agentCardUri";
1325
+ readonly type: "string";
1326
+ }];
1327
+ readonly outputs: readonly [{
1328
+ readonly name: "warpedAgentId";
1329
+ readonly type: "uint256";
1330
+ }];
1331
+ }, {
1332
+ readonly name: "isWarped";
1333
+ readonly type: "function";
1334
+ readonly stateMutability: "view";
1335
+ readonly inputs: readonly [{
1336
+ readonly name: "agentId";
1337
+ readonly type: "uint256";
1338
+ }];
1339
+ readonly outputs: readonly [{
1340
+ readonly name: "isWarped";
1341
+ readonly type: "bool";
1342
+ }];
1343
+ }, {
1344
+ readonly name: "getWarpedData";
1345
+ readonly type: "function";
1346
+ readonly stateMutability: "view";
1347
+ readonly inputs: readonly [{
1348
+ readonly name: "warpedAgentId";
1349
+ readonly type: "uint256";
1350
+ }];
1351
+ readonly outputs: readonly [{
1352
+ readonly name: "data";
1353
+ readonly type: "tuple";
1354
+ readonly components: readonly [{
1355
+ readonly name: "originalCreator";
1356
+ readonly type: "address";
1357
+ }, {
1358
+ readonly name: "warper";
1359
+ readonly type: "address";
1360
+ }, {
1361
+ readonly name: "originalAgentHash";
1362
+ readonly type: "bytes32";
1363
+ }, {
1364
+ readonly name: "royaltyExpiryDate";
1365
+ readonly type: "uint256";
1366
+ }, {
1367
+ readonly name: "royaltiesClaimed";
1368
+ readonly type: "bool";
1369
+ }, {
1370
+ readonly name: "accumulatedRoyalties";
1371
+ readonly type: "uint256";
1372
+ }];
1373
+ }];
1374
+ }, {
1375
+ readonly name: "totalWarped";
1376
+ readonly type: "function";
1377
+ readonly stateMutability: "view";
1378
+ readonly inputs: readonly [];
1379
+ readonly outputs: readonly [{
1380
+ readonly name: "total";
1381
+ readonly type: "uint256";
1382
+ }];
1383
+ }, {
1384
+ readonly name: "getWarpedAgentId";
1385
+ readonly type: "function";
1386
+ readonly stateMutability: "view";
1387
+ readonly inputs: readonly [{
1388
+ readonly name: "externalHash";
1389
+ readonly type: "bytes32";
1390
+ }];
1391
+ readonly outputs: readonly [{
1392
+ readonly name: "warpedAgentId";
1393
+ readonly type: "uint256";
1394
+ }];
1395
+ }];
1396
+ readonly RFA: readonly [{
1397
+ readonly name: "createRFA";
1398
+ readonly type: "function";
1399
+ readonly stateMutability: "nonpayable";
1400
+ readonly inputs: readonly [{
1401
+ readonly name: "workflowId";
1402
+ readonly type: "uint256";
1403
+ }, {
1404
+ readonly name: "title";
1405
+ readonly type: "string";
1406
+ }, {
1407
+ readonly name: "description";
1408
+ readonly type: "string";
1409
+ }, {
1410
+ readonly name: "requiredSkills";
1411
+ readonly type: "bytes32[]";
1412
+ }, {
1413
+ readonly name: "offerAmount";
1414
+ readonly type: "uint256";
1415
+ }];
1416
+ readonly outputs: readonly [{
1417
+ readonly name: "rfaId";
1418
+ readonly type: "uint256";
1419
+ }];
1420
+ }, {
1421
+ readonly name: "submitAgent";
1422
+ readonly type: "function";
1423
+ readonly stateMutability: "nonpayable";
1424
+ readonly inputs: readonly [{
1425
+ readonly name: "rfaId";
1426
+ readonly type: "uint256";
1427
+ }, {
1428
+ readonly name: "agentId";
1429
+ readonly type: "uint256";
1430
+ }];
1431
+ readonly outputs: readonly [];
1432
+ }, {
1433
+ readonly name: "acceptAgent";
1434
+ readonly type: "function";
1435
+ readonly stateMutability: "nonpayable";
1436
+ readonly inputs: readonly [{
1437
+ readonly name: "rfaId";
1438
+ readonly type: "uint256";
1439
+ }, {
1440
+ readonly name: "agentId";
1441
+ readonly type: "uint256";
1442
+ }];
1443
+ readonly outputs: readonly [];
1444
+ }, {
1445
+ readonly name: "cancelRFA";
1446
+ readonly type: "function";
1447
+ readonly stateMutability: "nonpayable";
1448
+ readonly inputs: readonly [{
1449
+ readonly name: "rfaId";
1450
+ readonly type: "uint256";
1451
+ }];
1452
+ readonly outputs: readonly [];
1453
+ }, {
1454
+ readonly name: "getRFAData";
1455
+ readonly type: "function";
1456
+ readonly stateMutability: "view";
1457
+ readonly inputs: readonly [{
1458
+ readonly name: "rfaId";
1459
+ readonly type: "uint256";
1460
+ }];
1461
+ readonly outputs: readonly [{
1462
+ readonly name: "data";
1463
+ readonly type: "tuple";
1464
+ readonly components: readonly [{
1465
+ readonly name: "workflowId";
1466
+ readonly type: "uint256";
1467
+ }, {
1468
+ readonly name: "title";
1469
+ readonly type: "string";
1470
+ }, {
1471
+ readonly name: "description";
1472
+ readonly type: "string";
1473
+ }, {
1474
+ readonly name: "requiredSkills";
1475
+ readonly type: "bytes32[]";
1476
+ }, {
1477
+ readonly name: "offerAmount";
1478
+ readonly type: "uint256";
1479
+ }, {
1480
+ readonly name: "publisher";
1481
+ readonly type: "address";
1482
+ }, {
1483
+ readonly name: "createdAt";
1484
+ readonly type: "uint256";
1485
+ }, {
1486
+ readonly name: "status";
1487
+ readonly type: "uint8";
1488
+ }, {
1489
+ readonly name: "fulfilledByAgentId";
1490
+ readonly type: "uint256";
1491
+ }, {
1492
+ readonly name: "agentCreator";
1493
+ readonly type: "address";
1494
+ }];
1495
+ }];
1496
+ }, {
1497
+ readonly name: "getOpenRFAs";
1498
+ readonly type: "function";
1499
+ readonly stateMutability: "view";
1500
+ readonly inputs: readonly [];
1501
+ readonly outputs: readonly [{
1502
+ readonly name: "rfaIds";
1503
+ readonly type: "uint256[]";
1504
+ }];
1505
+ }, {
1506
+ readonly name: "getSubmissions";
1507
+ readonly type: "function";
1508
+ readonly stateMutability: "view";
1509
+ readonly inputs: readonly [{
1510
+ readonly name: "rfaId";
1511
+ readonly type: "uint256";
1512
+ }];
1513
+ readonly outputs: readonly [{
1514
+ readonly name: "submissions";
1515
+ readonly type: "tuple[]";
1516
+ readonly components: readonly [{
1517
+ readonly name: "agentId";
1518
+ readonly type: "uint256";
1519
+ }, {
1520
+ readonly name: "creator";
1521
+ readonly type: "address";
1522
+ }, {
1523
+ readonly name: "submittedAt";
1524
+ readonly type: "uint256";
1525
+ }];
1526
+ }];
1527
+ }, {
1528
+ readonly name: "getRFAsForWorkflow";
1529
+ readonly type: "function";
1530
+ readonly stateMutability: "view";
1531
+ readonly inputs: readonly [{
1532
+ readonly name: "workflowId";
1533
+ readonly type: "uint256";
1534
+ }];
1535
+ readonly outputs: readonly [{
1536
+ readonly name: "rfaIds";
1537
+ readonly type: "uint256[]";
1538
+ }];
1539
+ }, {
1540
+ readonly name: "getRFAsByPublisher";
1541
+ readonly type: "function";
1542
+ readonly stateMutability: "view";
1543
+ readonly inputs: readonly [{
1544
+ readonly name: "publisher";
1545
+ readonly type: "address";
1546
+ }];
1547
+ readonly outputs: readonly [{
1548
+ readonly name: "rfaIds";
1549
+ readonly type: "uint256[]";
1550
+ }];
1551
+ }];
1552
+ };
1553
+ export interface EvmMintAgentArgs {
1554
+ readonly dnaHash: Hex;
1555
+ readonly licenses: bigint;
1556
+ readonly licensePrice: bigint;
1557
+ readonly creatorFee?: bigint | number;
1558
+ readonly cloneable: boolean;
1559
+ readonly agentCardUri: string;
1560
+ }
1561
+ export interface EvmWarpAgentArgs {
1562
+ readonly originalAgentHash: Hex;
1563
+ readonly originalCreator: EvmAddress;
1564
+ readonly licenses: bigint;
1565
+ readonly licensePrice: bigint;
1566
+ readonly agentCardUri: string;
1567
+ }
1568
+ export interface EvmMintWorkflowArgs {
1569
+ readonly params: {
1570
+ readonly title: string;
1571
+ readonly description: string;
1572
+ readonly banner: string;
1573
+ readonly workflowCardUri: string;
1574
+ readonly units: bigint;
1575
+ readonly leaseEnabled: boolean;
1576
+ readonly leaseDuration: bigint;
1577
+ readonly leasePercent: number;
1578
+ readonly hasCoordinator: boolean;
1579
+ readonly coordinatorModel: string;
1580
+ };
1581
+ readonly agentIds: readonly bigint[];
1582
+ }
1583
+ export declare function buildEvmMintAgentOperation(network: NetworkId, deployment: ManowarDeploymentConfig, args: EvmMintAgentArgs): ManowarEvmOperation;
1584
+ export declare function buildEvmWarpAgentOperation(network: NetworkId, deployment: ManowarDeploymentConfig, args: EvmWarpAgentArgs): ManowarEvmOperation;
1585
+ export declare function buildEvmMintWorkflowOperation(network: NetworkId, deployment: ManowarDeploymentConfig, args: EvmMintWorkflowArgs): ManowarEvmOperation;
1586
+ export declare function buildEvmCreateRfaOperation(network: NetworkId, deployment: ManowarDeploymentConfig, args: {
1587
+ workflowId: bigint;
1588
+ title: string;
1589
+ description: string;
1590
+ requiredSkills: readonly Hex[];
1591
+ offerAmount: bigint;
1592
+ }): ManowarEvmOperation;
1593
+ export interface MetadataEntry {
1594
+ readonly key: string;
1595
+ readonly value: Uint8Array;
1596
+ }
1597
+ export interface IdentityRegistryAccount {
1598
+ readonly version: number;
1599
+ readonly admin: string;
1600
+ readonly nextAgentId: bigint;
1601
+ readonly totalAgents: bigint;
1602
+ readonly consumers: readonly string[];
1603
+ }
1604
+ export interface AgentAccount {
1605
+ readonly version: number;
1606
+ readonly agentId: bigint;
1607
+ readonly owner: string;
1608
+ readonly creator: string;
1609
+ readonly dnaHash: Uint8Array;
1610
+ readonly licenses: bigint;
1611
+ readonly licensesMinted: bigint;
1612
+ readonly licensePrice: bigint;
1613
+ readonly creatorFee: bigint;
1614
+ readonly cloneable: boolean;
1615
+ readonly isClone: boolean;
1616
+ readonly parentAgentId: bigint;
1617
+ readonly agentWallet: string;
1618
+ readonly uri: string;
1619
+ readonly metadata: readonly MetadataEntry[];
1620
+ }
1621
+ export interface U64IndexAccount {
1622
+ readonly version: number;
1623
+ readonly page: number;
1624
+ readonly total: bigint;
1625
+ readonly values: readonly bigint[];
1626
+ }
1627
+ export interface PubkeyIndexAccount {
1628
+ readonly version: number;
1629
+ readonly page: number;
1630
+ readonly total: bigint;
1631
+ readonly values: readonly string[];
1632
+ }
1633
+ export interface MarketRegistryAccount {
1634
+ readonly version: number;
1635
+ readonly admin: string;
1636
+ readonly treasuryToken: string;
1637
+ readonly paymentMint: string;
1638
+ readonly nextWorkflowId: bigint;
1639
+ readonly nextRfaId: bigint;
1640
+ readonly nextLeaseId: bigint;
1641
+ readonly totalWorkflows: bigint;
1642
+ readonly totalEscrowed: bigint;
1643
+ }
1644
+ export interface WorkflowAccount {
1645
+ readonly version: number;
1646
+ readonly workflowId: bigint;
1647
+ readonly owner: string;
1648
+ readonly creator: string;
1649
+ readonly title: string;
1650
+ readonly description: string;
1651
+ readonly banner: string;
1652
+ readonly uri: string;
1653
+ readonly totalPrice: bigint;
1654
+ readonly units: bigint;
1655
+ readonly unitsMinted: bigint;
1656
+ readonly leaseEnabled: boolean;
1657
+ readonly leaseDuration: bigint;
1658
+ readonly leasePercent: number;
1659
+ readonly hasCoordinator: boolean;
1660
+ readonly coordinatorModel: string;
1661
+ readonly hasActiveRfa: boolean;
1662
+ readonly rfaId: bigint;
1663
+ readonly activeLeaseId: bigint;
1664
+ readonly agents: readonly bigint[];
1665
+ }
1666
+ export type RfaStatus = "open" | "fulfilled" | "cancelled";
1667
+ export interface RfaAccount {
1668
+ readonly version: number;
1669
+ readonly rfaId: bigint;
1670
+ readonly workflowId: bigint;
1671
+ readonly title: string;
1672
+ readonly description: string;
1673
+ readonly requiredSkills: readonly Uint8Array[];
1674
+ readonly offerAmount: bigint;
1675
+ readonly publisher: string;
1676
+ readonly createdAt: bigint;
1677
+ readonly status: RfaStatus;
1678
+ readonly fulfilledByAgentId: bigint;
1679
+ readonly agentCreator: string;
1680
+ }
1681
+ export interface SubmissionAccount {
1682
+ readonly version: number;
1683
+ readonly rfaId: bigint;
1684
+ readonly agentId: bigint;
1685
+ readonly creator: string;
1686
+ readonly submittedAt: bigint;
1687
+ }
1688
+ export interface ReputationRegistryAccount {
1689
+ readonly version: number;
1690
+ readonly admin: string;
1691
+ readonly identityRegistry: string;
1692
+ }
1693
+ export interface FeedbackAccount {
1694
+ readonly version: number;
1695
+ readonly agentId: bigint;
1696
+ readonly client: string;
1697
+ readonly feedbackIndex: bigint;
1698
+ readonly value: bigint;
1699
+ readonly valueDecimals: number;
1700
+ readonly isRevoked: boolean;
1701
+ readonly tag1: string;
1702
+ readonly tag2: string;
1703
+ readonly endpoint: string;
1704
+ readonly feedbackUri: string;
1705
+ readonly feedbackHash: Uint8Array;
1706
+ readonly createdAt: bigint;
1707
+ }
1708
+ export interface ValidationRegistryAccount {
1709
+ readonly version: number;
1710
+ readonly admin: string;
1711
+ readonly nextRequestId: bigint;
1712
+ readonly totalRequests: bigint;
1713
+ }
1714
+ export interface ValidationRequestAccount {
1715
+ readonly version: number;
1716
+ readonly requestId: bigint;
1717
+ readonly agentId: bigint;
1718
+ readonly requester: string;
1719
+ readonly validatorType: string;
1720
+ readonly taskHash: Uint8Array;
1721
+ readonly requestUri: string;
1722
+ readonly timestamp: bigint;
1723
+ readonly closed: boolean;
1724
+ readonly responseCount: bigint;
1725
+ }
1726
+ export declare function decodeLengthPrefixedAccount(data: Uint8Array | ArrayBuffer): Uint8Array;
1727
+ export declare function decodeIdentityRegistryAccount(data: Uint8Array | ArrayBuffer): IdentityRegistryAccount;
1728
+ export declare function decodeAgentAccount(data: Uint8Array | ArrayBuffer): AgentAccount;
1729
+ export declare function decodeU64IndexAccount(data: Uint8Array | ArrayBuffer): U64IndexAccount;
1730
+ export declare function decodePubkeyIndexAccount(data: Uint8Array | ArrayBuffer): PubkeyIndexAccount;
1731
+ export declare function decodeMarketRegistryAccount(data: Uint8Array | ArrayBuffer): MarketRegistryAccount;
1732
+ export declare function decodeWorkflowAccount(data: Uint8Array | ArrayBuffer): WorkflowAccount;
1733
+ export declare function decodeRfaAccount(data: Uint8Array | ArrayBuffer): RfaAccount;
1734
+ export declare function decodeSubmissionAccount(data: Uint8Array | ArrayBuffer): SubmissionAccount;
1735
+ export declare function decodeReputationRegistryAccount(data: Uint8Array | ArrayBuffer): ReputationRegistryAccount;
1736
+ export declare function decodeFeedbackAccount(data: Uint8Array | ArrayBuffer): FeedbackAccount;
1737
+ export declare function decodeValidationRegistryAccount(data: Uint8Array | ArrayBuffer): ValidationRegistryAccount;
1738
+ export declare function decodeValidationRequestAccount(data: Uint8Array | ArrayBuffer): ValidationRequestAccount;
1739
+ export declare const ManowarSeeds: {
1740
+ readonly REGISTRY: "registry";
1741
+ readonly AGENT: "agent";
1742
+ readonly DNA: "dna";
1743
+ readonly WARP: "warp";
1744
+ readonly FEEDBACK: "feedback";
1745
+ readonly FEEDBACK_INDEX: "feedback-index";
1746
+ readonly RESPONSE: "response";
1747
+ readonly REQUEST: "request";
1748
+ readonly WORKFLOW: "workflow";
1749
+ readonly LICENSE_INDEX: "license-index";
1750
+ readonly LICENSE_RECORD: "license-record";
1751
+ readonly RFA: "rfa";
1752
+ readonly RFA_INDEX: "rfa-index";
1753
+ readonly OPEN_RFA_INDEX: "open-rfa-index";
1754
+ readonly PUBLISHER_RFA_INDEX: "publisher-rfa-index";
1755
+ readonly SUBMISSION: "submission";
1756
+ readonly SUBMISSION_INDEX: "submission-index";
1757
+ readonly LEASE: "lease";
1758
+ readonly LEASE_INDEX: "lease-index";
1759
+ readonly ACTIVE_LEASE: "active-lease";
1760
+ readonly ROYALTY: "royalty";
1761
+ readonly DEFAULT_ROYALTY: "default-royalty";
1762
+ readonly CLONE_INDEX: "clone-index";
1763
+ readonly IDENTITY_STATS: "identity-stats";
1764
+ readonly WARP_AGENT: "warp-agent";
1765
+ readonly CREATOR_WORKFLOW_INDEX: "creator-workflow-index";
1766
+ readonly COMPLETE_WORKFLOW_INDEX: "complete-workflow-index";
1767
+ readonly RFA_WORKFLOW_INDEX: "rfa-workflow-index";
1768
+ readonly MARKET_AUTHORITY: "market-authority";
1769
+ readonly MARKET_CONFIG: "market-config";
1770
+ readonly REPUTATION_REGISTRY: "reputation-registry";
1771
+ readonly FEEDBACK_CLIENT_INDEX: "feedback-client-index";
1772
+ readonly RESPONSE_COUNTER: "response-counter";
1773
+ readonly VALIDATION_AGENT_INDEX: "validation-agent-index";
1774
+ readonly VALIDATION_RESPONSE_INDEX: "validation-response-index";
1775
+ };
1776
+ export declare function u64Seed(value: bigint | number): Uint8Array;
1777
+ export declare function bytes32FromHex(hex: Hex): Uint8Array;
1778
+ export declare function hexFromBytes32(bytes: Uint8Array): Hex;
1779
+ export declare function findManowarPda(programId: string, seeds: readonly Uint8Array[]): Promise<SolanaAddress>;
1780
+ export declare const identityPdas: {
1781
+ registry: (programId: string) => Promise<SolanaAddress>;
1782
+ agent: (programId: string, agentId: bigint | number) => Promise<SolanaAddress>;
1783
+ dna: (programId: string, dnaHash: Uint8Array) => Promise<SolanaAddress>;
1784
+ cloneIndex: (programId: string, agentId: bigint | number) => Promise<SolanaAddress>;
1785
+ stats: (programId: string) => Promise<SolanaAddress>;
1786
+ warp: (programId: string, originalHash: Uint8Array) => Promise<SolanaAddress>;
1787
+ warpAgent: (programId: string, agentId: bigint | number) => Promise<SolanaAddress>;
1788
+ licenseIndex: (programId: string, agentId: bigint | number) => Promise<SolanaAddress>;
1789
+ licenseRecord: (programId: string, agentId: bigint | number, workflowProgram: string, workflowId: bigint | number) => Promise<SolanaAddress>;
1790
+ };
1791
+ export declare const marketPdas: {
1792
+ registry: (programId: string) => Promise<SolanaAddress>;
1793
+ config: (programId: string) => Promise<SolanaAddress>;
1794
+ authority: (programId: string) => Promise<SolanaAddress>;
1795
+ workflow: (programId: string, workflowId: bigint | number) => Promise<SolanaAddress>;
1796
+ creatorWorkflowIndex: (programId: string, creator: string) => Promise<SolanaAddress>;
1797
+ completeWorkflowIndex: (programId: string) => Promise<SolanaAddress>;
1798
+ openRfaIndex: (programId: string) => Promise<SolanaAddress>;
1799
+ rfaWorkflowIndex: (programId: string) => Promise<SolanaAddress>;
1800
+ workflowRfaIndex: (programId: string, workflowId: bigint | number) => Promise<SolanaAddress>;
1801
+ publisherRfaIndex: (programId: string, publisher: string) => Promise<SolanaAddress>;
1802
+ rfa: (programId: string, rfaId: bigint | number) => Promise<SolanaAddress>;
1803
+ submission: (programId: string, rfaId: bigint | number, agentId: bigint | number) => Promise<SolanaAddress>;
1804
+ submissionIndex: (programId: string, rfaId: bigint | number) => Promise<SolanaAddress>;
1805
+ lease: (programId: string, leaseId: bigint | number) => Promise<SolanaAddress>;
1806
+ leaseIndex: (programId: string, leaser: string) => Promise<SolanaAddress>;
1807
+ activeLease: (programId: string, workflowId: bigint | number) => Promise<SolanaAddress>;
1808
+ royalty: (programId: string, tokenId: bigint | number) => Promise<SolanaAddress>;
1809
+ defaultRoyalty: (programId: string) => Promise<SolanaAddress>;
1810
+ };
1811
+ export declare const reputationPdas: {
1812
+ registry: (programId: string) => Promise<SolanaAddress>;
1813
+ feedbackClientIndex: (programId: string, agentId: bigint | number) => Promise<SolanaAddress>;
1814
+ feedbackIndex: (programId: string, agentId: bigint | number, client: string) => Promise<SolanaAddress>;
1815
+ feedback: (programId: string, agentId: bigint | number, client: string, feedbackIndex: bigint | number) => Promise<SolanaAddress>;
1816
+ responseCounter: (programId: string, agentId: bigint | number, client: string, feedbackIndex: bigint | number, responder: string) => Promise<SolanaAddress>;
1817
+ };
1818
+ export declare const validationPdas: {
1819
+ registry: (programId: string) => Promise<SolanaAddress>;
1820
+ request: (programId: string, requestId: bigint | number) => Promise<SolanaAddress>;
1821
+ requestIndex: (programId: string, agentId: bigint | number) => Promise<SolanaAddress>;
1822
+ response: (programId: string, requestId: bigint | number, responseId: bigint | number) => Promise<SolanaAddress>;
1823
+ responseIndex: (programId: string, requestId: bigint | number) => Promise<SolanaAddress>;
1824
+ };
1825
+ export declare function encodeIdentityInstruction(instruction: {
1826
+ readonly type: "initialize";
1827
+ } | {
1828
+ readonly type: "mint";
1829
+ readonly dnaHash: Uint8Array;
1830
+ readonly licenses: bigint | number;
1831
+ readonly licensePrice: bigint | number;
1832
+ readonly creatorFee: bigint | number;
1833
+ readonly cloneable: boolean;
1834
+ readonly uri: string;
1835
+ readonly metadata?: readonly MetadataEntry[];
1836
+ } | {
1837
+ readonly type: "warp";
1838
+ readonly originalHash: Uint8Array;
1839
+ readonly originalCreator: string;
1840
+ readonly licenses: bigint | number;
1841
+ readonly licensePrice: bigint | number;
1842
+ readonly uri: string;
1843
+ readonly metadata?: readonly MetadataEntry[];
1844
+ } | {
1845
+ readonly type: "consumeLicense" | "revokeLicense";
1846
+ readonly agentId: bigint | number;
1847
+ readonly workflow: string;
1848
+ readonly workflowId: bigint | number;
1849
+ }): Uint8Array;
1850
+ export declare function buildIdentityMintInstruction(input: {
1851
+ readonly programId: string;
1852
+ readonly nextAgentId: bigint | number;
1853
+ readonly owner: string;
1854
+ readonly dnaHash: Uint8Array;
1855
+ readonly licenses: bigint | number;
1856
+ readonly licensePrice: bigint | number;
1857
+ readonly creatorFee?: bigint | number;
1858
+ readonly cloneable: boolean;
1859
+ readonly uri: string;
1860
+ readonly metadata?: readonly MetadataEntry[];
1861
+ }): Promise<{
1862
+ instruction: Instruction;
1863
+ agent: SolanaAddress;
1864
+ dna: SolanaAddress;
1865
+ }>;
1866
+ export declare function buildIdentityWarpInstruction(input: {
1867
+ readonly programId: string;
1868
+ readonly nextAgentId: bigint | number;
1869
+ readonly warper: string;
1870
+ readonly originalHash: Uint8Array;
1871
+ readonly originalCreator: string;
1872
+ readonly licenses: bigint | number;
1873
+ readonly licensePrice: bigint | number;
1874
+ readonly uri: string;
1875
+ readonly metadata?: readonly MetadataEntry[];
1876
+ }): Promise<{
1877
+ instruction: Instruction;
1878
+ agent: SolanaAddress;
1879
+ dna: SolanaAddress;
1880
+ warp: SolanaAddress;
1881
+ warpAgent: SolanaAddress;
1882
+ }>;
1883
+ export declare function encodeMarketInstruction(instruction: {
1884
+ readonly type: "mintWorkflow";
1885
+ readonly title: string;
1886
+ readonly description: string;
1887
+ readonly banner: string;
1888
+ readonly uri: string;
1889
+ readonly units: bigint | number;
1890
+ readonly leaseEnabled: boolean;
1891
+ readonly leaseDuration: bigint | number;
1892
+ readonly leasePercent: number;
1893
+ readonly hasCoordinator: boolean;
1894
+ readonly coordinatorModel: string;
1895
+ } | {
1896
+ readonly type: "createRfa";
1897
+ readonly workflowId: bigint | number;
1898
+ readonly title: string;
1899
+ readonly description: string;
1900
+ readonly requiredSkills: readonly Uint8Array[];
1901
+ readonly offerAmount: bigint | number;
1902
+ } | {
1903
+ readonly type: "submitAgent" | "acceptAgent";
1904
+ readonly rfaId: bigint | number;
1905
+ readonly agentId: bigint | number;
1906
+ } | {
1907
+ readonly type: "cancelRfa";
1908
+ readonly rfaId: bigint | number;
1909
+ }): Uint8Array;
1910
+ export declare function buildMarketMintWorkflowInstruction(input: {
1911
+ readonly marketProgramId: string;
1912
+ readonly identityProgramId: string;
1913
+ readonly nextWorkflowId: bigint | number;
1914
+ readonly owner: string;
1915
+ readonly tokenProgram: string;
1916
+ readonly payerToken: string;
1917
+ readonly treasuryToken: string;
1918
+ readonly title: string;
1919
+ readonly description: string;
1920
+ readonly banner: string;
1921
+ readonly uri: string;
1922
+ readonly units: bigint | number;
1923
+ readonly leaseEnabled: boolean;
1924
+ readonly leaseDuration: bigint | number;
1925
+ readonly leasePercent: number;
1926
+ readonly hasCoordinator: boolean;
1927
+ readonly coordinatorModel: string;
1928
+ readonly agents?: readonly {
1929
+ agentId: bigint | number;
1930
+ creatorToken: string;
1931
+ }[];
1932
+ }): Promise<{
1933
+ instruction: Instruction;
1934
+ workflow: SolanaAddress;
1935
+ }>;
1936
+ export declare function buildMarketCreateRfaInstruction(input: {
1937
+ readonly marketProgramId: string;
1938
+ readonly nextRfaId: bigint | number;
1939
+ readonly workflowId: bigint | number;
1940
+ readonly publisher: string;
1941
+ readonly tokenProgram: string;
1942
+ readonly publisherToken: string;
1943
+ readonly escrowToken: string;
1944
+ readonly title: string;
1945
+ readonly description: string;
1946
+ readonly requiredSkills: readonly Uint8Array[];
1947
+ readonly offerAmount: bigint | number;
1948
+ }): Promise<{
1949
+ instruction: Instruction;
1950
+ rfa: SolanaAddress;
1951
+ }>;
1952
+ export declare function computeDnaHash(skills: readonly string[], networkOrChain: NetworkId | number, model: string): Hex;
1953
+ export declare function computeExternalAgentHash(registry: string, agentAddress: string): Hex;
1954
+ export declare function encodeSkillAsBytes32(skill: string): Hex;
1955
+ export declare function createManowarBlockchainClient(input: CreateManowarBlockchainClientInput): {
1956
+ network: NetworkId;
1957
+ deployment: ManowarDeploymentConfig;
1958
+ evm: {
1959
+ mintAgent: (args: EvmMintAgentArgs) => ManowarEvmOperation;
1960
+ warpAgent: (args: EvmWarpAgentArgs) => ManowarEvmOperation;
1961
+ mintWorkflow: (args: EvmMintWorkflowArgs) => ManowarEvmOperation;
1962
+ createRfa: (args: Parameters<typeof buildEvmCreateRfaOperation>[2]) => ManowarEvmOperation;
1963
+ };
1964
+ solana: {
1965
+ pdas: {
1966
+ identity: {
1967
+ registry: (programId: string) => Promise<SolanaAddress>;
1968
+ agent: (programId: string, agentId: bigint | number) => Promise<SolanaAddress>;
1969
+ dna: (programId: string, dnaHash: Uint8Array) => Promise<SolanaAddress>;
1970
+ cloneIndex: (programId: string, agentId: bigint | number) => Promise<SolanaAddress>;
1971
+ stats: (programId: string) => Promise<SolanaAddress>;
1972
+ warp: (programId: string, originalHash: Uint8Array) => Promise<SolanaAddress>;
1973
+ warpAgent: (programId: string, agentId: bigint | number) => Promise<SolanaAddress>;
1974
+ licenseIndex: (programId: string, agentId: bigint | number) => Promise<SolanaAddress>;
1975
+ licenseRecord: (programId: string, agentId: bigint | number, workflowProgram: string, workflowId: bigint | number) => Promise<SolanaAddress>;
1976
+ };
1977
+ market: {
1978
+ registry: (programId: string) => Promise<SolanaAddress>;
1979
+ config: (programId: string) => Promise<SolanaAddress>;
1980
+ authority: (programId: string) => Promise<SolanaAddress>;
1981
+ workflow: (programId: string, workflowId: bigint | number) => Promise<SolanaAddress>;
1982
+ creatorWorkflowIndex: (programId: string, creator: string) => Promise<SolanaAddress>;
1983
+ completeWorkflowIndex: (programId: string) => Promise<SolanaAddress>;
1984
+ openRfaIndex: (programId: string) => Promise<SolanaAddress>;
1985
+ rfaWorkflowIndex: (programId: string) => Promise<SolanaAddress>;
1986
+ workflowRfaIndex: (programId: string, workflowId: bigint | number) => Promise<SolanaAddress>;
1987
+ publisherRfaIndex: (programId: string, publisher: string) => Promise<SolanaAddress>;
1988
+ rfa: (programId: string, rfaId: bigint | number) => Promise<SolanaAddress>;
1989
+ submission: (programId: string, rfaId: bigint | number, agentId: bigint | number) => Promise<SolanaAddress>;
1990
+ submissionIndex: (programId: string, rfaId: bigint | number) => Promise<SolanaAddress>;
1991
+ lease: (programId: string, leaseId: bigint | number) => Promise<SolanaAddress>;
1992
+ leaseIndex: (programId: string, leaser: string) => Promise<SolanaAddress>;
1993
+ activeLease: (programId: string, workflowId: bigint | number) => Promise<SolanaAddress>;
1994
+ royalty: (programId: string, tokenId: bigint | number) => Promise<SolanaAddress>;
1995
+ defaultRoyalty: (programId: string) => Promise<SolanaAddress>;
1996
+ };
1997
+ reputation: {
1998
+ registry: (programId: string) => Promise<SolanaAddress>;
1999
+ feedbackClientIndex: (programId: string, agentId: bigint | number) => Promise<SolanaAddress>;
2000
+ feedbackIndex: (programId: string, agentId: bigint | number, client: string) => Promise<SolanaAddress>;
2001
+ feedback: (programId: string, agentId: bigint | number, client: string, feedbackIndex: bigint | number) => Promise<SolanaAddress>;
2002
+ responseCounter: (programId: string, agentId: bigint | number, client: string, feedbackIndex: bigint | number, responder: string) => Promise<SolanaAddress>;
2003
+ };
2004
+ validation: {
2005
+ registry: (programId: string) => Promise<SolanaAddress>;
2006
+ request: (programId: string, requestId: bigint | number) => Promise<SolanaAddress>;
2007
+ requestIndex: (programId: string, agentId: bigint | number) => Promise<SolanaAddress>;
2008
+ response: (programId: string, requestId: bigint | number, responseId: bigint | number) => Promise<SolanaAddress>;
2009
+ responseIndex: (programId: string, requestId: bigint | number) => Promise<SolanaAddress>;
2010
+ };
2011
+ };
2012
+ identity: {
2013
+ mint: (args: Omit<Parameters<typeof buildIdentityMintInstruction>[0], "programId">) => Promise<{
2014
+ instruction: Instruction;
2015
+ agent: SolanaAddress;
2016
+ dna: SolanaAddress;
2017
+ }>;
2018
+ warp: (args: Omit<Parameters<typeof buildIdentityWarpInstruction>[0], "programId">) => Promise<{
2019
+ instruction: Instruction;
2020
+ agent: SolanaAddress;
2021
+ dna: SolanaAddress;
2022
+ warp: SolanaAddress;
2023
+ warpAgent: SolanaAddress;
2024
+ }>;
2025
+ };
2026
+ market: {
2027
+ mintWorkflow: (args: Omit<Parameters<typeof buildMarketMintWorkflowInstruction>[0], "marketProgramId" | "identityProgramId">) => Promise<{
2028
+ instruction: Instruction;
2029
+ workflow: SolanaAddress;
2030
+ }>;
2031
+ createRfa: (args: Omit<Parameters<typeof buildMarketCreateRfaInstruction>[0], "marketProgramId">) => Promise<{
2032
+ instruction: Instruction;
2033
+ rfa: SolanaAddress;
2034
+ }>;
2035
+ };
2036
+ } | null;
2037
+ };
2038
+ //# sourceMappingURL=index.d.ts.map