@virtuals-protocol/acp-node-v2 0.1.2 → 0.1.4

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 (303) hide show
  1. package/README.md +9 -20
  2. package/dist/acpAgent.d.ts +2 -2
  3. package/dist/acpAgent.d.ts.map +1 -1
  4. package/dist/acpAgent.js +6 -6
  5. package/dist/acpAgent.js.map +1 -1
  6. package/dist/clientFactory.d.ts +1 -2
  7. package/dist/clientFactory.d.ts.map +1 -1
  8. package/dist/clientFactory.js +1 -5
  9. package/dist/clientFactory.js.map +1 -1
  10. package/dist/core/agentAuth.d.ts +22 -0
  11. package/dist/core/agentAuth.d.ts.map +1 -0
  12. package/dist/core/agentAuth.js +27 -0
  13. package/dist/core/agentAuth.js.map +1 -0
  14. package/dist/core/approvalGate.d.ts +28 -0
  15. package/dist/core/approvalGate.d.ts.map +1 -0
  16. package/dist/core/approvalGate.js +63 -0
  17. package/dist/core/approvalGate.js.map +1 -0
  18. package/dist/core/chains.d.ts +1 -0
  19. package/dist/core/chains.d.ts.map +1 -1
  20. package/dist/core/chains.js +12 -1
  21. package/dist/core/chains.js.map +1 -1
  22. package/dist/core/constants.d.ts +6 -0
  23. package/dist/core/constants.d.ts.map +1 -1
  24. package/dist/core/constants.js +18 -0
  25. package/dist/core/constants.js.map +1 -1
  26. package/dist/core/solana/constants.d.ts +5 -0
  27. package/dist/core/solana/constants.d.ts.map +1 -0
  28. package/dist/core/solana/constants.js +5 -0
  29. package/dist/core/solana/constants.js.map +1 -0
  30. package/dist/core/solana/generated/acp/accounts/acpState.d.ts +60 -0
  31. package/dist/core/solana/generated/acp/accounts/acpState.d.ts.map +1 -0
  32. package/dist/core/solana/generated/acp/accounts/acpState.js +68 -0
  33. package/dist/core/solana/generated/acp/accounts/acpState.js.map +1 -0
  34. package/dist/core/solana/generated/acp/accounts/hookWhitelist.d.ts +37 -0
  35. package/dist/core/solana/generated/acp/accounts/hookWhitelist.d.ts.map +1 -0
  36. package/dist/core/solana/generated/acp/accounts/hookWhitelist.js +59 -0
  37. package/dist/core/solana/generated/acp/accounts/hookWhitelist.js.map +1 -0
  38. package/dist/core/solana/generated/acp/accounts/index.d.ts +11 -0
  39. package/dist/core/solana/generated/acp/accounts/index.d.ts.map +1 -0
  40. package/dist/core/solana/generated/acp/accounts/index.js +11 -0
  41. package/dist/core/solana/generated/acp/accounts/index.js.map +1 -0
  42. package/dist/core/solana/generated/acp/accounts/job.d.ts +89 -0
  43. package/dist/core/solana/generated/acp/accounts/job.d.ts.map +1 -0
  44. package/dist/core/solana/generated/acp/accounts/job.js +83 -0
  45. package/dist/core/solana/generated/acp/accounts/job.js.map +1 -0
  46. package/dist/core/solana/generated/acp/errors/agenticCommerceV3.d.ts +94 -0
  47. package/dist/core/solana/generated/acp/errors/agenticCommerceV3.d.ts.map +1 -0
  48. package/dist/core/solana/generated/acp/errors/agenticCommerceV3.js +135 -0
  49. package/dist/core/solana/generated/acp/errors/agenticCommerceV3.js.map +1 -0
  50. package/dist/core/solana/generated/acp/errors/index.d.ts +9 -0
  51. package/dist/core/solana/generated/acp/errors/index.d.ts.map +1 -0
  52. package/dist/core/solana/generated/acp/errors/index.js +9 -0
  53. package/dist/core/solana/generated/acp/errors/index.js.map +1 -0
  54. package/dist/core/solana/generated/acp/index.d.ts +14 -0
  55. package/dist/core/solana/generated/acp/index.d.ts.map +1 -0
  56. package/dist/core/solana/generated/acp/index.js +14 -0
  57. package/dist/core/solana/generated/acp/index.js.map +1 -0
  58. package/dist/core/solana/generated/acp/instructions/acceptAuthority.d.ts +47 -0
  59. package/dist/core/solana/generated/acp/instructions/acceptAuthority.d.ts.map +1 -0
  60. package/dist/core/solana/generated/acp/instructions/acceptAuthority.js +88 -0
  61. package/dist/core/solana/generated/acp/instructions/acceptAuthority.js.map +1 -0
  62. package/dist/core/solana/generated/acp/instructions/addHookWhitelist.d.ts +64 -0
  63. package/dist/core/solana/generated/acp/instructions/addHookWhitelist.d.ts.map +1 -0
  64. package/dist/core/solana/generated/acp/instructions/addHookWhitelist.js +140 -0
  65. package/dist/core/solana/generated/acp/instructions/addHookWhitelist.js.map +1 -0
  66. package/dist/core/solana/generated/acp/instructions/claimRefund.d.ts +74 -0
  67. package/dist/core/solana/generated/acp/instructions/claimRefund.d.ts.map +1 -0
  68. package/dist/core/solana/generated/acp/instructions/claimRefund.js +142 -0
  69. package/dist/core/solana/generated/acp/instructions/claimRefund.js.map +1 -0
  70. package/dist/core/solana/generated/acp/instructions/complete.d.ts +108 -0
  71. package/dist/core/solana/generated/acp/instructions/complete.d.ts.map +1 -0
  72. package/dist/core/solana/generated/acp/instructions/complete.js +190 -0
  73. package/dist/core/solana/generated/acp/instructions/complete.js.map +1 -0
  74. package/dist/core/solana/generated/acp/instructions/createJob.d.ts +83 -0
  75. package/dist/core/solana/generated/acp/instructions/createJob.d.ts.map +1 -0
  76. package/dist/core/solana/generated/acp/instructions/createJob.js +137 -0
  77. package/dist/core/solana/generated/acp/instructions/createJob.js.map +1 -0
  78. package/dist/core/solana/generated/acp/instructions/fund.d.ts +99 -0
  79. package/dist/core/solana/generated/acp/instructions/fund.d.ts.map +1 -0
  80. package/dist/core/solana/generated/acp/instructions/fund.js +126 -0
  81. package/dist/core/solana/generated/acp/instructions/fund.js.map +1 -0
  82. package/dist/core/solana/generated/acp/instructions/index.d.ts +23 -0
  83. package/dist/core/solana/generated/acp/instructions/index.d.ts.map +1 -0
  84. package/dist/core/solana/generated/acp/instructions/index.js +23 -0
  85. package/dist/core/solana/generated/acp/instructions/index.js.map +1 -0
  86. package/dist/core/solana/generated/acp/instructions/initialize.d.ts +76 -0
  87. package/dist/core/solana/generated/acp/instructions/initialize.d.ts.map +1 -0
  88. package/dist/core/solana/generated/acp/instructions/initialize.js +141 -0
  89. package/dist/core/solana/generated/acp/instructions/initialize.js.map +1 -0
  90. package/dist/core/solana/generated/acp/instructions/nominateAuthority.d.ts +52 -0
  91. package/dist/core/solana/generated/acp/instructions/nominateAuthority.d.ts.map +1 -0
  92. package/dist/core/solana/generated/acp/instructions/nominateAuthority.js +96 -0
  93. package/dist/core/solana/generated/acp/instructions/nominateAuthority.js.map +1 -0
  94. package/dist/core/solana/generated/acp/instructions/reject.d.ts +88 -0
  95. package/dist/core/solana/generated/acp/instructions/reject.d.ts.map +1 -0
  96. package/dist/core/solana/generated/acp/instructions/reject.js +168 -0
  97. package/dist/core/solana/generated/acp/instructions/reject.js.map +1 -0
  98. package/dist/core/solana/generated/acp/instructions/removeHookWhitelist.d.ts +56 -0
  99. package/dist/core/solana/generated/acp/instructions/removeHookWhitelist.d.ts.map +1 -0
  100. package/dist/core/solana/generated/acp/instructions/removeHookWhitelist.js +112 -0
  101. package/dist/core/solana/generated/acp/instructions/removeHookWhitelist.js.map +1 -0
  102. package/dist/core/solana/generated/acp/instructions/setBudget.d.ts +56 -0
  103. package/dist/core/solana/generated/acp/instructions/setBudget.d.ts.map +1 -0
  104. package/dist/core/solana/generated/acp/instructions/setBudget.js +90 -0
  105. package/dist/core/solana/generated/acp/instructions/setBudget.js.map +1 -0
  106. package/dist/core/solana/generated/acp/instructions/setEvaluatorFee.d.ts +52 -0
  107. package/dist/core/solana/generated/acp/instructions/setEvaluatorFee.d.ts.map +1 -0
  108. package/dist/core/solana/generated/acp/instructions/setEvaluatorFee.js +96 -0
  109. package/dist/core/solana/generated/acp/instructions/setEvaluatorFee.js.map +1 -0
  110. package/dist/core/solana/generated/acp/instructions/setPlatformFee.d.ts +56 -0
  111. package/dist/core/solana/generated/acp/instructions/setPlatformFee.d.ts.map +1 -0
  112. package/dist/core/solana/generated/acp/instructions/setPlatformFee.js +98 -0
  113. package/dist/core/solana/generated/acp/instructions/setPlatformFee.js.map +1 -0
  114. package/dist/core/solana/generated/acp/instructions/setProvider.d.ts +50 -0
  115. package/dist/core/solana/generated/acp/instructions/setProvider.d.ts.map +1 -0
  116. package/dist/core/solana/generated/acp/instructions/setProvider.js +85 -0
  117. package/dist/core/solana/generated/acp/instructions/setProvider.js.map +1 -0
  118. package/dist/core/solana/generated/acp/instructions/submit.d.ts +150 -0
  119. package/dist/core/solana/generated/acp/instructions/submit.d.ts.map +1 -0
  120. package/dist/core/solana/generated/acp/instructions/submit.js +214 -0
  121. package/dist/core/solana/generated/acp/instructions/submit.js.map +1 -0
  122. package/dist/core/solana/generated/acp/pdas/acpState.d.ts +12 -0
  123. package/dist/core/solana/generated/acp/pdas/acpState.d.ts.map +1 -0
  124. package/dist/core/solana/generated/acp/pdas/acpState.js +18 -0
  125. package/dist/core/solana/generated/acp/pdas/acpState.js.map +1 -0
  126. package/dist/core/solana/generated/acp/pdas/hookWhitelist.d.ts +15 -0
  127. package/dist/core/solana/generated/acp/pdas/hookWhitelist.d.ts.map +1 -0
  128. package/dist/core/solana/generated/acp/pdas/hookWhitelist.js +21 -0
  129. package/dist/core/solana/generated/acp/pdas/hookWhitelist.js.map +1 -0
  130. package/dist/core/solana/generated/acp/pdas/index.d.ts +10 -0
  131. package/dist/core/solana/generated/acp/pdas/index.d.ts.map +1 -0
  132. package/dist/core/solana/generated/acp/pdas/index.js +10 -0
  133. package/dist/core/solana/generated/acp/pdas/index.js.map +1 -0
  134. package/dist/core/solana/generated/acp/programs/agenticCommerceV3.d.ts +71 -0
  135. package/dist/core/solana/generated/acp/programs/agenticCommerceV3.d.ts.map +1 -0
  136. package/dist/core/solana/generated/acp/programs/agenticCommerceV3.js +209 -0
  137. package/dist/core/solana/generated/acp/programs/agenticCommerceV3.js.map +1 -0
  138. package/dist/core/solana/generated/acp/programs/index.d.ts +9 -0
  139. package/dist/core/solana/generated/acp/programs/index.d.ts.map +1 -0
  140. package/dist/core/solana/generated/acp/programs/index.js +9 -0
  141. package/dist/core/solana/generated/acp/programs/index.js.map +1 -0
  142. package/dist/core/solana/generated/acp/shared/index.d.ts +50 -0
  143. package/dist/core/solana/generated/acp/shared/index.d.ts.map +1 -0
  144. package/dist/core/solana/generated/acp/shared/index.js +87 -0
  145. package/dist/core/solana/generated/acp/shared/index.js.map +1 -0
  146. package/dist/core/solana/generated/acp/types/index.d.ts +9 -0
  147. package/dist/core/solana/generated/acp/types/index.d.ts.map +1 -0
  148. package/dist/core/solana/generated/acp/types/index.js +9 -0
  149. package/dist/core/solana/generated/acp/types/index.js.map +1 -0
  150. package/dist/core/solana/generated/acp/types/jobCreated.d.ts +11 -0
  151. package/dist/core/solana/generated/acp/types/jobCreated.d.ts.map +1 -0
  152. package/dist/core/solana/generated/acp/types/jobCreated.js +12 -0
  153. package/dist/core/solana/generated/acp/types/jobCreated.js.map +1 -0
  154. package/dist/core/solana/generated/acp/types/jobState.d.ts +27 -0
  155. package/dist/core/solana/generated/acp/types/jobState.d.ts.map +1 -0
  156. package/dist/core/solana/generated/acp/types/jobState.js +33 -0
  157. package/dist/core/solana/generated/acp/types/jobState.js.map +1 -0
  158. package/dist/core/solana/generated/fund-transfer-hook/accounts/fundRequestIntentId.d.ts +35 -0
  159. package/dist/core/solana/generated/fund-transfer-hook/accounts/fundRequestIntentId.d.ts.map +1 -0
  160. package/dist/core/solana/generated/fund-transfer-hook/accounts/fundRequestIntentId.js +64 -0
  161. package/dist/core/solana/generated/fund-transfer-hook/accounts/fundRequestIntentId.js.map +1 -0
  162. package/dist/core/solana/generated/fund-transfer-hook/accounts/hookMetadata.d.ts +33 -0
  163. package/dist/core/solana/generated/fund-transfer-hook/accounts/hookMetadata.d.ts.map +1 -0
  164. package/dist/core/solana/generated/fund-transfer-hook/accounts/hookMetadata.js +59 -0
  165. package/dist/core/solana/generated/fund-transfer-hook/accounts/hookMetadata.js.map +1 -0
  166. package/dist/core/solana/generated/fund-transfer-hook/accounts/hookState.d.ts +38 -0
  167. package/dist/core/solana/generated/fund-transfer-hook/accounts/hookState.d.ts.map +1 -0
  168. package/dist/core/solana/generated/fund-transfer-hook/accounts/hookState.js +62 -0
  169. package/dist/core/solana/generated/fund-transfer-hook/accounts/hookState.js.map +1 -0
  170. package/dist/core/solana/generated/fund-transfer-hook/accounts/index.d.ts +13 -0
  171. package/dist/core/solana/generated/fund-transfer-hook/accounts/index.d.ts.map +1 -0
  172. package/dist/core/solana/generated/fund-transfer-hook/accounts/index.js +13 -0
  173. package/dist/core/solana/generated/fund-transfer-hook/accounts/index.js.map +1 -0
  174. package/dist/core/solana/generated/fund-transfer-hook/accounts/intent.d.ts +61 -0
  175. package/dist/core/solana/generated/fund-transfer-hook/accounts/intent.d.ts.map +1 -0
  176. package/dist/core/solana/generated/fund-transfer-hook/accounts/intent.js +77 -0
  177. package/dist/core/solana/generated/fund-transfer-hook/accounts/intent.js.map +1 -0
  178. package/dist/core/solana/generated/fund-transfer-hook/accounts/providerEscrowIntentId.d.ts +35 -0
  179. package/dist/core/solana/generated/fund-transfer-hook/accounts/providerEscrowIntentId.d.ts.map +1 -0
  180. package/dist/core/solana/generated/fund-transfer-hook/accounts/providerEscrowIntentId.js +64 -0
  181. package/dist/core/solana/generated/fund-transfer-hook/accounts/providerEscrowIntentId.js.map +1 -0
  182. package/dist/core/solana/generated/fund-transfer-hook/index.d.ts +12 -0
  183. package/dist/core/solana/generated/fund-transfer-hook/index.d.ts.map +1 -0
  184. package/dist/core/solana/generated/fund-transfer-hook/index.js +12 -0
  185. package/dist/core/solana/generated/fund-transfer-hook/index.js.map +1 -0
  186. package/dist/core/solana/generated/fund-transfer-hook/instructions/acceptAuthority.d.ts +47 -0
  187. package/dist/core/solana/generated/fund-transfer-hook/instructions/acceptAuthority.d.ts.map +1 -0
  188. package/dist/core/solana/generated/fund-transfer-hook/instructions/acceptAuthority.js +88 -0
  189. package/dist/core/solana/generated/fund-transfer-hook/instructions/acceptAuthority.js.map +1 -0
  190. package/dist/core/solana/generated/fund-transfer-hook/instructions/afterAction.d.ts +56 -0
  191. package/dist/core/solana/generated/fund-transfer-hook/instructions/afterAction.d.ts.map +1 -0
  192. package/dist/core/solana/generated/fund-transfer-hook/instructions/afterAction.js +92 -0
  193. package/dist/core/solana/generated/fund-transfer-hook/instructions/afterAction.js.map +1 -0
  194. package/dist/core/solana/generated/fund-transfer-hook/instructions/beforeAction.d.ts +52 -0
  195. package/dist/core/solana/generated/fund-transfer-hook/instructions/beforeAction.d.ts.map +1 -0
  196. package/dist/core/solana/generated/fund-transfer-hook/instructions/beforeAction.js +90 -0
  197. package/dist/core/solana/generated/fund-transfer-hook/instructions/beforeAction.js.map +1 -0
  198. package/dist/core/solana/generated/fund-transfer-hook/instructions/claimEscrowRefund.d.ts +86 -0
  199. package/dist/core/solana/generated/fund-transfer-hook/instructions/claimEscrowRefund.d.ts.map +1 -0
  200. package/dist/core/solana/generated/fund-transfer-hook/instructions/claimEscrowRefund.js +169 -0
  201. package/dist/core/solana/generated/fund-transfer-hook/instructions/claimEscrowRefund.js.map +1 -0
  202. package/dist/core/solana/generated/fund-transfer-hook/instructions/closeIntent.d.ts +114 -0
  203. package/dist/core/solana/generated/fund-transfer-hook/instructions/closeIntent.d.ts.map +1 -0
  204. package/dist/core/solana/generated/fund-transfer-hook/instructions/closeIntent.js +120 -0
  205. package/dist/core/solana/generated/fund-transfer-hook/instructions/closeIntent.js.map +1 -0
  206. package/dist/core/solana/generated/fund-transfer-hook/instructions/index.d.ts +15 -0
  207. package/dist/core/solana/generated/fund-transfer-hook/instructions/index.d.ts.map +1 -0
  208. package/dist/core/solana/generated/fund-transfer-hook/instructions/index.js +15 -0
  209. package/dist/core/solana/generated/fund-transfer-hook/instructions/index.js.map +1 -0
  210. package/dist/core/solana/generated/fund-transfer-hook/instructions/initialize.d.ts +67 -0
  211. package/dist/core/solana/generated/fund-transfer-hook/instructions/initialize.d.ts.map +1 -0
  212. package/dist/core/solana/generated/fund-transfer-hook/instructions/initialize.js +138 -0
  213. package/dist/core/solana/generated/fund-transfer-hook/instructions/initialize.js.map +1 -0
  214. package/dist/core/solana/generated/fund-transfer-hook/instructions/nominateAuthority.d.ts +52 -0
  215. package/dist/core/solana/generated/fund-transfer-hook/instructions/nominateAuthority.d.ts.map +1 -0
  216. package/dist/core/solana/generated/fund-transfer-hook/instructions/nominateAuthority.js +96 -0
  217. package/dist/core/solana/generated/fund-transfer-hook/instructions/nominateAuthority.js.map +1 -0
  218. package/dist/core/solana/generated/fund-transfer-hook/pdas/escrowAuthority.d.ts +15 -0
  219. package/dist/core/solana/generated/fund-transfer-hook/pdas/escrowAuthority.d.ts.map +1 -0
  220. package/dist/core/solana/generated/fund-transfer-hook/pdas/escrowAuthority.js +22 -0
  221. package/dist/core/solana/generated/fund-transfer-hook/pdas/escrowAuthority.js.map +1 -0
  222. package/dist/core/solana/generated/fund-transfer-hook/pdas/hookMetadata.d.ts +12 -0
  223. package/dist/core/solana/generated/fund-transfer-hook/pdas/hookMetadata.d.ts.map +1 -0
  224. package/dist/core/solana/generated/fund-transfer-hook/pdas/hookMetadata.js +20 -0
  225. package/dist/core/solana/generated/fund-transfer-hook/pdas/hookMetadata.js.map +1 -0
  226. package/dist/core/solana/generated/fund-transfer-hook/pdas/hookState.d.ts +12 -0
  227. package/dist/core/solana/generated/fund-transfer-hook/pdas/hookState.d.ts.map +1 -0
  228. package/dist/core/solana/generated/fund-transfer-hook/pdas/hookState.js +18 -0
  229. package/dist/core/solana/generated/fund-transfer-hook/pdas/hookState.js.map +1 -0
  230. package/dist/core/solana/generated/fund-transfer-hook/pdas/index.d.ts +13 -0
  231. package/dist/core/solana/generated/fund-transfer-hook/pdas/index.d.ts.map +1 -0
  232. package/dist/core/solana/generated/fund-transfer-hook/pdas/index.js +13 -0
  233. package/dist/core/solana/generated/fund-transfer-hook/pdas/index.js.map +1 -0
  234. package/dist/core/solana/generated/fund-transfer-hook/pdas/intent.d.ts +15 -0
  235. package/dist/core/solana/generated/fund-transfer-hook/pdas/intent.d.ts.map +1 -0
  236. package/dist/core/solana/generated/fund-transfer-hook/pdas/intent.js +19 -0
  237. package/dist/core/solana/generated/fund-transfer-hook/pdas/intent.js.map +1 -0
  238. package/dist/core/solana/generated/fund-transfer-hook/pdas/providerEscrowIntentId.d.ts +15 -0
  239. package/dist/core/solana/generated/fund-transfer-hook/pdas/providerEscrowIntentId.d.ts.map +1 -0
  240. package/dist/core/solana/generated/fund-transfer-hook/pdas/providerEscrowIntentId.js +22 -0
  241. package/dist/core/solana/generated/fund-transfer-hook/pdas/providerEscrowIntentId.js.map +1 -0
  242. package/dist/core/solana/generated/fund-transfer-hook/programs/fundTransferHook.d.ts +49 -0
  243. package/dist/core/solana/generated/fund-transfer-hook/programs/fundTransferHook.d.ts.map +1 -0
  244. package/dist/core/solana/generated/fund-transfer-hook/programs/fundTransferHook.js +129 -0
  245. package/dist/core/solana/generated/fund-transfer-hook/programs/fundTransferHook.js.map +1 -0
  246. package/dist/core/solana/generated/fund-transfer-hook/programs/index.d.ts +9 -0
  247. package/dist/core/solana/generated/fund-transfer-hook/programs/index.d.ts.map +1 -0
  248. package/dist/core/solana/generated/fund-transfer-hook/programs/index.js +9 -0
  249. package/dist/core/solana/generated/fund-transfer-hook/programs/index.js.map +1 -0
  250. package/dist/core/solana/generated/fund-transfer-hook/shared/index.d.ts +50 -0
  251. package/dist/core/solana/generated/fund-transfer-hook/shared/index.d.ts.map +1 -0
  252. package/dist/core/solana/generated/fund-transfer-hook/shared/index.js +87 -0
  253. package/dist/core/solana/generated/fund-transfer-hook/shared/index.js.map +1 -0
  254. package/dist/core/solana/wallet.d.ts +49 -0
  255. package/dist/core/solana/wallet.d.ts.map +1 -0
  256. package/dist/core/solana/wallet.js +119 -0
  257. package/dist/core/solana/wallet.js.map +1 -0
  258. package/dist/events/acpHttpClient.d.ts.map +1 -1
  259. package/dist/events/acpHttpClient.js +12 -3
  260. package/dist/events/acpHttpClient.js.map +1 -1
  261. package/dist/events/socketTransport.d.ts +18 -0
  262. package/dist/events/socketTransport.d.ts.map +1 -0
  263. package/dist/events/socketTransport.js +117 -0
  264. package/dist/events/socketTransport.js.map +1 -0
  265. package/dist/events/sseTransport.d.ts +9 -2
  266. package/dist/events/sseTransport.d.ts.map +1 -1
  267. package/dist/events/sseTransport.js +100 -40
  268. package/dist/events/sseTransport.js.map +1 -1
  269. package/dist/events/types.d.ts +3 -2
  270. package/dist/events/types.d.ts.map +1 -1
  271. package/dist/index.d.ts +7 -3
  272. package/dist/index.d.ts.map +1 -1
  273. package/dist/index.js +7 -2
  274. package/dist/index.js.map +1 -1
  275. package/dist/providers/evm/privyAlchemyEvmProviderAdapter.d.ts +12 -2
  276. package/dist/providers/evm/privyAlchemyEvmProviderAdapter.d.ts.map +1 -1
  277. package/dist/providers/evm/privyAlchemyEvmProviderAdapter.js +264 -60
  278. package/dist/providers/evm/privyAlchemyEvmProviderAdapter.js.map +1 -1
  279. package/dist/providers/evm/types.d.ts +24 -0
  280. package/dist/providers/evm/types.d.ts.map +1 -0
  281. package/dist/providers/evm/types.js +2 -0
  282. package/dist/providers/evm/types.js.map +1 -0
  283. package/dist/providers/providerAuthClient.d.ts +8 -2
  284. package/dist/providers/providerAuthClient.d.ts.map +1 -1
  285. package/dist/providers/providerAuthClient.js +3 -3
  286. package/dist/providers/providerAuthClient.js.map +1 -1
  287. package/dist/providers/solana/keypairSolanaProviderAdapter.d.ts +16 -0
  288. package/dist/providers/solana/keypairSolanaProviderAdapter.d.ts.map +1 -0
  289. package/dist/providers/solana/keypairSolanaProviderAdapter.js +68 -0
  290. package/dist/providers/solana/keypairSolanaProviderAdapter.js.map +1 -0
  291. package/dist/providers/solana/privySolanaProviderAdapter.d.ts +54 -0
  292. package/dist/providers/solana/privySolanaProviderAdapter.d.ts.map +1 -0
  293. package/dist/providers/solana/privySolanaProviderAdapter.js +357 -0
  294. package/dist/providers/solana/privySolanaProviderAdapter.js.map +1 -0
  295. package/dist/providers/solana/solanaProviderAdapter.d.ts +5 -1
  296. package/dist/providers/solana/solanaProviderAdapter.d.ts.map +1 -1
  297. package/dist/providers/solana/solanaProviderAdapter.js +17 -1
  298. package/dist/providers/solana/solanaProviderAdapter.js.map +1 -1
  299. package/dist/providers/types.d.ts +11 -6
  300. package/dist/providers/types.d.ts.map +1 -1
  301. package/dist/providers/types.js +1 -1
  302. package/dist/providers/types.js.map +1 -1
  303. package/package.json +3 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agenticCommerceV3.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/errors/agenticCommerceV3.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,KAAK,OAAO,EACZ,KAAK,uCAAuC,EAC5C,KAAK,WAAW,EACjB,MAAM,aAAa,CAAC;AAGrB,iCAAiC;AACjC,eAAO,MAAM,uCAAuC,OAAS,CAAC;AAC9D,oDAAoD;AACpD,eAAO,MAAM,kDAAkD,OAAS,CAAC;AACzE,oCAAoC;AACpC,eAAO,MAAM,yCAAyC,OAAS,CAAC;AAChE,kCAAkC;AAClC,eAAO,MAAM,wCAAwC,OAAS,CAAC;AAC/D,8BAA8B;AAC9B,eAAO,MAAM,sCAAsC,OAAS,CAAC;AAC7D,+BAA+B;AAC/B,eAAO,MAAM,uCAAuC,OAAS,CAAC;AAC9D,iDAAiD;AACjD,eAAO,MAAM,iDAAiD,OAAS,CAAC;AACxE,+CAA+C;AAC/C,eAAO,MAAM,gDAAgD,OAAS,CAAC;AACvE,+CAA+C;AAC/C,eAAO,MAAM,+CAA+C,OAAS,CAAC;AACtE,4DAA4D;AAC5D,eAAO,MAAM,oDAAoD,OAAS,CAAC;AAC3E,kEAAkE;AAClE,eAAO,MAAM,uDAAuD,OAAS,CAAC;AAC9E,8DAA8D;AAC9D,eAAO,MAAM,qDAAqD,OAAS,CAAC;AAC5E,+CAA+C;AAC/C,eAAO,MAAM,+CAA+C,OAAS,CAAC;AACtE,+CAA+C;AAC/C,eAAO,MAAM,+CAA+C,OAAS,CAAC;AACtE,8BAA8B;AAC9B,eAAO,MAAM,sCAAsC,OAAS,CAAC;AAC7D,oCAAoC;AACpC,eAAO,MAAM,uCAAuC,OAAS,CAAC;AAC9D,oEAAoE;AACpE,eAAO,MAAM,2DAA2D,OAAS,CAAC;AAClF,iDAAiD;AACjD,eAAO,MAAM,gDAAgD,OAA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O,2DAA2D,GAClE,OAAO,2CAA2C,GAClD,OAAO,wCAAwC,GAC/C,OAAO,+CAA+C,GACtD,OAAO,sDAAsD,GAC7D,OAAO,qDAAqD,GAC5D,OAAO,uDAAuD,GAC9D,OAAO,8CAA8C,GACrD,OAAO,+CAA+C,GACtD,OAAO,sCAAsC,GAC7C,OAAO,8CAA8C,GACrD,OAAO,gDAAgD,GACvD,OAAO,kDAAkD,GACzD,OAAO,6CAA6C,GACpD,OAAO,8CAA8C,GACrD,OAAO,+CAA+C,GACtD,OAAO,mDAAmD,GAC1D,OAAO,sCAAsC,GAC7C,OAAO,kDAAkD,GACzD,OAAO,yCAAyC,GAChD,OAAO,wCAAwC,GAC/C,OAAO,gDAAgD,GACvD,OAAO,oDAAoD,GAC3D,OAAO,2CAA2C,GAClD,OAAO,uCAAuC,GAC9C,OAAO,uCAAuC,GAC9C,OAAO,uCAAuC,GAC9C,OAAO,iDAAiD,GACxD,OAAO,gDAAgD,CAAC;AA+C5D,wBAAgB,gCAAgC,CAC9C,IAAI,EAAE,sBAAsB,GAC3B,MAAM,CAQR;AAED,wBAAgB,wBAAwB,CACtC,iBAAiB,SAAS,sBAAsB,EAEhD,KAAK,EAAE,OAAO,EACd,kBAAkB,EAAE;IAClB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,cAAc,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;CAC3D,EACD,IAAI,CAAC,EAAE,iBAAiB,GACvB,KAAK,IAAI,WAAW,CAAC,OAAO,uCAAuC,CAAC,GACrE,QAAQ,CAAC;IAAE,OAAO,EAAE,QAAQ,CAAC;QAAE,IAAI,EAAE,iBAAiB,CAAA;KAAE,CAAC,CAAA;CAAE,CAAC,CAO7D"}
@@ -0,0 +1,135 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { isProgramError, } from "@solana/kit";
9
+ import { AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS } from "../programs/index.js";
10
+ /** Unauthorized: Unauthorized */
11
+ export const AGENTIC_COMMERCE_V3_ERROR__UNAUTHORIZED = 0x1770; // 6000
12
+ /** OnlyClientOrProvider: Only client or provider */
13
+ export const AGENTIC_COMMERCE_V3_ERROR__ONLY_CLIENT_OR_PROVIDER = 0x1771; // 6001
14
+ /** OnlyEvaluator: Only evaluator */
15
+ export const AGENTIC_COMMERCE_V3_ERROR__ONLY_EVALUATOR = 0x1772; // 6002
16
+ /** OnlyProvider: Only provider */
17
+ export const AGENTIC_COMMERCE_V3_ERROR__ONLY_PROVIDER = 0x1773; // 6003
18
+ /** OnlyClient: Only client */
19
+ export const AGENTIC_COMMERCE_V3_ERROR__ONLY_CLIENT = 0x1774; // 6004
20
+ /** ZeroAddress: ZeroAddress */
21
+ export const AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS = 0x1775; // 6005
22
+ /** ZeroAddressEvaluator: ZeroAddressEvaluator */
23
+ export const AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS_EVALUATOR = 0x1776; // 6006
24
+ /** ZeroAddressProvider: ZeroAddressProvider */
25
+ export const AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS_PROVIDER = 0x1777; // 6007
26
+ /** DescriptionTooLong: Description too long */
27
+ export const AGENTIC_COMMERCE_V3_ERROR__DESCRIPTION_TOO_LONG = 0x1778; // 6008
28
+ /** ProviderCannotBeClient: Provider cannot be the client */
29
+ export const AGENTIC_COMMERCE_V3_ERROR__PROVIDER_CANNOT_BE_CLIENT = 0x1779; // 6009
30
+ /** EvaluatorCannotBeProvider: Evaluator cannot be the provider */
31
+ export const AGENTIC_COMMERCE_V3_ERROR__EVALUATOR_CANNOT_BE_PROVIDER = 0x177a; // 6010
32
+ /** EvaluatorCannotBeClient: Evaluator cannot be the client */
33
+ export const AGENTIC_COMMERCE_V3_ERROR__EVALUATOR_CANNOT_BE_CLIENT = 0x177b; // 6011
34
+ /** InvalidHookProgram: Invalid hook program */
35
+ export const AGENTIC_COMMERCE_V3_ERROR__INVALID_HOOK_PROGRAM = 0x177c; // 6012
36
+ /** HookNotWhitelisted: Hook not whitelisted */
37
+ export const AGENTIC_COMMERCE_V3_ERROR__HOOK_NOT_WHITELISTED = 0x177d; // 6013
38
+ /** InvalidJob: Invalid job */
39
+ export const AGENTIC_COMMERCE_V3_ERROR__INVALID_JOB = 0x177e; // 6014
40
+ /** WrongStatus: Wrong job status */
41
+ export const AGENTIC_COMMERCE_V3_ERROR__WRONG_STATUS = 0x177f; // 6015
42
+ /** AmountMustBeGreaterThanZero: Amount must be greater than zero */
43
+ export const AGENTIC_COMMERCE_V3_ERROR__AMOUNT_MUST_BE_GREATER_THAN_ZERO = 0x1780; // 6016
44
+ /** InvalidPaymentToken: Invalid payment token */
45
+ export const AGENTIC_COMMERCE_V3_ERROR__INVALID_PAYMENT_TOKEN = 0x1781; // 6017
46
+ /** BudgetNotSet: Budget not set */
47
+ export const AGENTIC_COMMERCE_V3_ERROR__BUDGET_NOT_SET = 0x1782; // 6018
48
+ /** BudgetMismatch: Budget mismatch */
49
+ export const AGENTIC_COMMERCE_V3_ERROR__BUDGET_MISMATCH = 0x1783; // 6019
50
+ /** ProviderNotSet: Provider not set */
51
+ export const AGENTIC_COMMERCE_V3_ERROR__PROVIDER_NOT_SET = 0x1784; // 6020
52
+ /** ExpiryTooShort: Expiry too short */
53
+ export const AGENTIC_COMMERCE_V3_ERROR__EXPIRY_TOO_SHORT = 0x1785; // 6021
54
+ /** ExpiredAtMustBeInTheFuture: ExpiredAt must be in the future */
55
+ export const AGENTIC_COMMERCE_V3_ERROR__EXPIRED_AT_MUST_BE_IN_THE_FUTURE = 0x1786; // 6022
56
+ /** PlatformFeeTooHigh: Platform fee too high */
57
+ export const AGENTIC_COMMERCE_V3_ERROR__PLATFORM_FEE_TOO_HIGH = 0x1787; // 6023
58
+ /** FeesTooHigh: Combined fees too high */
59
+ export const AGENTIC_COMMERCE_V3_ERROR__FEES_TOO_HIGH = 0x1788; // 6024
60
+ /** InvalidDestination: Invalid destination account */
61
+ export const AGENTIC_COMMERCE_V3_ERROR__INVALID_DESTINATION = 0x1789; // 6025
62
+ /** InvalidVaultAuthority: Invalid vault authority */
63
+ export const AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_AUTHORITY = 0x178a; // 6026
64
+ /** InvalidVaultOwner: Invalid vault owner */
65
+ export const AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_OWNER = 0x178b; // 6027
66
+ /** InvalidVaultMint: Invalid vault mint */
67
+ export const AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_MINT = 0x178c; // 6028
68
+ /** BudgetMintNotSet: Budget mint must be set when budget amount is nonzero */
69
+ export const AGENTIC_COMMERCE_V3_ERROR__BUDGET_MINT_NOT_SET = 0x178d; // 6029
70
+ /** InvalidJobCounter: Job counter must be >= 1 */
71
+ export const AGENTIC_COMMERCE_V3_ERROR__INVALID_JOB_COUNTER = 0x178e; // 6030
72
+ /** InsufficientVaultBalance: Insufficient vault balance */
73
+ export const AGENTIC_COMMERCE_V3_ERROR__INSUFFICIENT_VAULT_BALANCE = 0x178f; // 6031
74
+ /** MissingRequiredAccount: Missing required account for funded job */
75
+ export const AGENTIC_COMMERCE_V3_ERROR__MISSING_REQUIRED_ACCOUNT = 0x1790; // 6032
76
+ /** ArithmeticOverflow: Arithmetic overflow */
77
+ export const AGENTIC_COMMERCE_V3_ERROR__ARITHMETIC_OVERFLOW = 0x1791; // 6033
78
+ /** HookProgramIsUpgradeable: Hook program must be immutable (upgrade authority must be None) */
79
+ export const AGENTIC_COMMERCE_V3_ERROR__HOOK_PROGRAM_IS_UPGRADEABLE = 0x1792; // 6034
80
+ /** MissingHookProgram: Missing hook program account: job declares a hook but hook_program was not supplied */
81
+ export const AGENTIC_COMMERCE_V3_ERROR__MISSING_HOOK_PROGRAM = 0x1793; // 6035
82
+ /** InvalidAutoCompleteParams: Invalid complete_opt_params: must be empty (legacy mode) or [u16 submit_count][...] with submit_count <= remaining_accounts.len() */
83
+ export const AGENTIC_COMMERCE_V3_ERROR__INVALID_AUTO_COMPLETE_PARAMS = 0x1794; // 6036
84
+ let agenticCommerceV3ErrorMessages;
85
+ if (process.env.NODE_ENV !== "production") {
86
+ agenticCommerceV3ErrorMessages = {
87
+ [AGENTIC_COMMERCE_V3_ERROR__AMOUNT_MUST_BE_GREATER_THAN_ZERO]: `Amount must be greater than zero`,
88
+ [AGENTIC_COMMERCE_V3_ERROR__ARITHMETIC_OVERFLOW]: `Arithmetic overflow`,
89
+ [AGENTIC_COMMERCE_V3_ERROR__BUDGET_MINT_NOT_SET]: `Budget mint must be set when budget amount is nonzero`,
90
+ [AGENTIC_COMMERCE_V3_ERROR__BUDGET_MISMATCH]: `Budget mismatch`,
91
+ [AGENTIC_COMMERCE_V3_ERROR__BUDGET_NOT_SET]: `Budget not set`,
92
+ [AGENTIC_COMMERCE_V3_ERROR__DESCRIPTION_TOO_LONG]: `Description too long`,
93
+ [AGENTIC_COMMERCE_V3_ERROR__EVALUATOR_CANNOT_BE_CLIENT]: `Evaluator cannot be the client`,
94
+ [AGENTIC_COMMERCE_V3_ERROR__EVALUATOR_CANNOT_BE_PROVIDER]: `Evaluator cannot be the provider`,
95
+ [AGENTIC_COMMERCE_V3_ERROR__EXPIRED_AT_MUST_BE_IN_THE_FUTURE]: `ExpiredAt must be in the future`,
96
+ [AGENTIC_COMMERCE_V3_ERROR__EXPIRY_TOO_SHORT]: `Expiry too short`,
97
+ [AGENTIC_COMMERCE_V3_ERROR__FEES_TOO_HIGH]: `Combined fees too high`,
98
+ [AGENTIC_COMMERCE_V3_ERROR__HOOK_NOT_WHITELISTED]: `Hook not whitelisted`,
99
+ [AGENTIC_COMMERCE_V3_ERROR__HOOK_PROGRAM_IS_UPGRADEABLE]: `Hook program must be immutable (upgrade authority must be None)`,
100
+ [AGENTIC_COMMERCE_V3_ERROR__INSUFFICIENT_VAULT_BALANCE]: `Insufficient vault balance`,
101
+ [AGENTIC_COMMERCE_V3_ERROR__INVALID_AUTO_COMPLETE_PARAMS]: `Invalid complete_opt_params: must be empty (legacy mode) or [u16 submit_count][...] with submit_count <= remaining_accounts.len()`,
102
+ [AGENTIC_COMMERCE_V3_ERROR__INVALID_DESTINATION]: `Invalid destination account`,
103
+ [AGENTIC_COMMERCE_V3_ERROR__INVALID_HOOK_PROGRAM]: `Invalid hook program`,
104
+ [AGENTIC_COMMERCE_V3_ERROR__INVALID_JOB]: `Invalid job`,
105
+ [AGENTIC_COMMERCE_V3_ERROR__INVALID_JOB_COUNTER]: `Job counter must be >= 1`,
106
+ [AGENTIC_COMMERCE_V3_ERROR__INVALID_PAYMENT_TOKEN]: `Invalid payment token`,
107
+ [AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_AUTHORITY]: `Invalid vault authority`,
108
+ [AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_MINT]: `Invalid vault mint`,
109
+ [AGENTIC_COMMERCE_V3_ERROR__INVALID_VAULT_OWNER]: `Invalid vault owner`,
110
+ [AGENTIC_COMMERCE_V3_ERROR__MISSING_HOOK_PROGRAM]: `Missing hook program account: job declares a hook but hook_program was not supplied`,
111
+ [AGENTIC_COMMERCE_V3_ERROR__MISSING_REQUIRED_ACCOUNT]: `Missing required account for funded job`,
112
+ [AGENTIC_COMMERCE_V3_ERROR__ONLY_CLIENT]: `Only client`,
113
+ [AGENTIC_COMMERCE_V3_ERROR__ONLY_CLIENT_OR_PROVIDER]: `Only client or provider`,
114
+ [AGENTIC_COMMERCE_V3_ERROR__ONLY_EVALUATOR]: `Only evaluator`,
115
+ [AGENTIC_COMMERCE_V3_ERROR__ONLY_PROVIDER]: `Only provider`,
116
+ [AGENTIC_COMMERCE_V3_ERROR__PLATFORM_FEE_TOO_HIGH]: `Platform fee too high`,
117
+ [AGENTIC_COMMERCE_V3_ERROR__PROVIDER_CANNOT_BE_CLIENT]: `Provider cannot be the client`,
118
+ [AGENTIC_COMMERCE_V3_ERROR__PROVIDER_NOT_SET]: `Provider not set`,
119
+ [AGENTIC_COMMERCE_V3_ERROR__UNAUTHORIZED]: `Unauthorized`,
120
+ [AGENTIC_COMMERCE_V3_ERROR__WRONG_STATUS]: `Wrong job status`,
121
+ [AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS]: `ZeroAddress`,
122
+ [AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS_EVALUATOR]: `ZeroAddressEvaluator`,
123
+ [AGENTIC_COMMERCE_V3_ERROR__ZERO_ADDRESS_PROVIDER]: `ZeroAddressProvider`,
124
+ };
125
+ }
126
+ export function getAgenticCommerceV3ErrorMessage(code) {
127
+ if (process.env.NODE_ENV !== "production") {
128
+ return agenticCommerceV3ErrorMessages[code];
129
+ }
130
+ return "Error message not available in production bundles.";
131
+ }
132
+ export function isAgenticCommerceV3Error(error, transactionMessage, code) {
133
+ return isProgramError(error, transactionMessage, AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS, code);
134
+ }
135
+ //# sourceMappingURL=agenticCommerceV3.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agenticCommerceV3.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/errors/agenticCommerceV3.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,cAAc,GAIf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,mCAAmC,EAAE,MAAM,sBAAsB,CAAC;AAE3E,iCAAiC;AACjC,MAAM,CAAC,MAAM,uCAAuC,GAAG,MAAM,CAAC,CAAC,OAAO;AACtE,oDAAoD;AACpD,MAAM,CAAC,MAAM,kDAAkD,GAAG,MAAM,CAAC,CAAC,OAAO;AACjF,oCAAoC;AACpC,MAAM,CAAC,MAAM,yCAAyC,GAAG,MAAM,CAAC,CAAC,OAAO;AACxE,kCAAkC;AAClC,MAAM,CAAC,MAAM,wCAAwC,GAAG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,EAAE,qFAAqF;QACxI,CAAC,mDAAmD,CAAC,EAAE,yCAAyC;QAChG,CAAC,sCAAsC,CAAC,EAAE,aAAa;QACvD,CAAC,kDAAkD,CAAC,EAAE,yBAAyB;QAC/E,CAAC,yCAAyC,CAAC,EAAE,gBAAgB;QAC7D,CAAC,wCAAwC,CAAC,EAAE,eAAe;QAC3D,CAAC,gDAAgD,CAAC,EAAE,uBAAuB;QAC3E,CAAC,oDAAoD,CAAC,EAAE,+BAA+B;QACvF,CAAC,2CAA2C,CAAC,EAAE,kBAAkB;QACjE,CAAC,uCAAuC,CAAC,EAAE,cAAc;QACzD,CAAC,uCAAuC,CAAC,EAAE,kBAAkB;QAC7D,CAAC,uCAAuC,CAAC,EAAE,aAAa;QACxD,CAAC,iDAAiD,CAAC,EAAE,sBAAsB;QAC3E,CAAC,gDAAgD,CAAC,EAAE,qBAAqB;KAC1E,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,IAA4B;IAE5B,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE,CAAC;QAC1C,OACE,8BACD,CAAC,IAAI,CAAC,CAAC;IACV,CAAC;IAED,OAAO,oDAAoD,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,wBAAwB,CAGtC,KAAc,EACd,kBAEC,EACD,IAAwB;IAGxB,OAAO,cAAc,CACnB,KAAK,EACL,kBAAkB,EAClB,mCAAmC,EACnC,IAAI,CACL,CAAC;AACJ,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ export * from "./agenticCommerceV3.js";
9
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/errors/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ export * from "./agenticCommerceV3.js";
9
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/errors/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,wBAAwB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ export * from "./accounts/index.js";
9
+ export * from "./errors/index.js";
10
+ export * from "./instructions/index.js";
11
+ export * from "./pdas/index.js";
12
+ export * from "./programs/index.js";
13
+ export * from "./types/index.js";
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/core/solana/generated/acp/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ export * from "./accounts/index.js";
9
+ export * from "./errors/index.js";
10
+ export * from "./instructions/index.js";
11
+ export * from "./pdas/index.js";
12
+ export * from "./programs/index.js";
13
+ export * from "./types/index.js";
14
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/core/solana/generated/acp/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlySignerAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount } from "@solana/kit";
9
+ import { AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS } from "../programs/index.js";
10
+ export declare const ACCEPT_AUTHORITY_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getAcceptAuthorityDiscriminatorBytes(): ReadonlyUint8Array;
12
+ export type AcceptAuthorityInstruction<TProgram extends string = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS, TAccountNewAuthority extends string | AccountMeta<string> = string, TAccountAcpState extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
+ TAccountNewAuthority extends string ? ReadonlySignerAccount<TAccountNewAuthority> & AccountSignerMeta<TAccountNewAuthority> : TAccountNewAuthority,
14
+ TAccountAcpState extends string ? WritableAccount<TAccountAcpState> : TAccountAcpState,
15
+ ...TRemainingAccounts
16
+ ]>;
17
+ export type AcceptAuthorityInstructionData = {
18
+ discriminator: ReadonlyUint8Array;
19
+ };
20
+ export type AcceptAuthorityInstructionDataArgs = {};
21
+ export declare function getAcceptAuthorityInstructionDataEncoder(): FixedSizeEncoder<AcceptAuthorityInstructionDataArgs>;
22
+ export declare function getAcceptAuthorityInstructionDataDecoder(): FixedSizeDecoder<AcceptAuthorityInstructionData>;
23
+ export declare function getAcceptAuthorityInstructionDataCodec(): FixedSizeCodec<AcceptAuthorityInstructionDataArgs, AcceptAuthorityInstructionData>;
24
+ export type AcceptAuthorityAsyncInput<TAccountNewAuthority extends string = string, TAccountAcpState extends string = string> = {
25
+ newAuthority: TransactionSigner<TAccountNewAuthority>;
26
+ acpState?: Address<TAccountAcpState>;
27
+ };
28
+ export declare function getAcceptAuthorityInstructionAsync<TAccountNewAuthority extends string, TAccountAcpState extends string, TProgramAddress extends Address = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS>(input: AcceptAuthorityAsyncInput<TAccountNewAuthority, TAccountAcpState>, config?: {
29
+ programAddress?: TProgramAddress;
30
+ }): Promise<AcceptAuthorityInstruction<TProgramAddress, TAccountNewAuthority, TAccountAcpState>>;
31
+ export type AcceptAuthorityInput<TAccountNewAuthority extends string = string, TAccountAcpState extends string = string> = {
32
+ newAuthority: TransactionSigner<TAccountNewAuthority>;
33
+ acpState: Address<TAccountAcpState>;
34
+ };
35
+ export declare function getAcceptAuthorityInstruction<TAccountNewAuthority extends string, TAccountAcpState extends string, TProgramAddress extends Address = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS>(input: AcceptAuthorityInput<TAccountNewAuthority, TAccountAcpState>, config?: {
36
+ programAddress?: TProgramAddress;
37
+ }): AcceptAuthorityInstruction<TProgramAddress, TAccountNewAuthority, TAccountAcpState>;
38
+ export type ParsedAcceptAuthorityInstruction<TProgram extends string = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
39
+ programAddress: Address<TProgram>;
40
+ accounts: {
41
+ newAuthority: TAccountMetas[0];
42
+ acpState: TAccountMetas[1];
43
+ };
44
+ data: AcceptAuthorityInstructionData;
45
+ };
46
+ export declare function parseAcceptAuthorityInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAcceptAuthorityInstruction<TProgram, TAccountMetas>;
47
+ //# sourceMappingURL=acceptAuthority.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acceptAuthority.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/instructions/acceptAuthority.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EASL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACrB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,mCAAmC,EAAE,MAAM,sBAAsB,CAAC;AAG3E,eAAO,MAAM,8BAA8B,yBAEzC,CAAC;AAEH,wBAAgB,oCAAoC,uBAInD;AAED,MAAM,MAAM,0BAA0B,CACpC,QAAQ,SAAS,MAAM,GAAG,OAAO,mCAAmC,EACpE,oBAAoB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAClE,gBAAgB,SAAS,MAAM,GAAG,WAAW,CAAC,MAAM,CAAC,GAAG,MAAM,EAC9D,kBAAkB,SAAS,SAAS,WAAW,CAAC,MAAM,CAAC,EAAE,GAAG,EAAE,IAC5D,WAAW,CAAC,QAAQ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,GAAG,MAAM,EAC5C,gBAAgB,SAAS,MAAM,GAAG,MAAM,IACtC;IACF,YAAY,EAAE,iBAAiB,CAAC,oBAAoB,CAAC,CAAC;IACtD,QAAQ,EAAE,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACrC,CAAC;AAEF,wBAAgB,6BAA6B,CAC3C,oBAAoB,SAAS,MAAM,EACnC,gBAAgB,SAAS,MAAM,EAC/B,eAAe,SAAS,OAAO,GAAG,OAAO,mCAAmC,EAE5E,KAAK,EAAE,oBAAoB,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,EACnE,MAAM,CAAC,EAAE;IAAE,cAAc,CAAC,EAAE,eAAe,CAAA;CAAE,GAC5C,0BAA0B,CAC3B,eAAe,EACf,oBAAoB,EACpB,gBAAgB,CACjB,CA4BA;AAED,MAAM,MAAM,gCAAgC,CAC1C,QAAQ,SAAS,MAAM,GAAG,OAAO,mCAAmC,EACpE,aAAa,SAAS,SAAS,WAAW,EAAE,GAAG,SAAS,WAAW,EAAE,IACnE;IACF,cAAc,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC;IAClC,QAAQ,EAAE;QACR,YAAY,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC/B,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KAC5B,CAAC;IACF,IAAI,EAAE,8BAA8B,CAAC;CACtC,CAAC;AAEF,wBAAgB,+BAA+B,CAC7C,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,gCAAgC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAgB3D"}
@@ -0,0 +1,88 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { combineCodec, fixDecoderSize, fixEncoderSize, getBytesDecoder, getBytesEncoder, getStructDecoder, getStructEncoder, transformEncoder, } from "@solana/kit";
9
+ import { findAcpStatePda } from "../pdas/index.js";
10
+ import { AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS } from "../programs/index.js";
11
+ import { getAccountMetaFactory } from "../shared/index.js";
12
+ export const ACCEPT_AUTHORITY_DISCRIMINATOR = new Uint8Array([
13
+ 107, 86, 198, 91, 33, 12, 107, 160,
14
+ ]);
15
+ export function getAcceptAuthorityDiscriminatorBytes() {
16
+ return fixEncoderSize(getBytesEncoder(), 8).encode(ACCEPT_AUTHORITY_DISCRIMINATOR);
17
+ }
18
+ export function getAcceptAuthorityInstructionDataEncoder() {
19
+ return transformEncoder(getStructEncoder([["discriminator", fixEncoderSize(getBytesEncoder(), 8)]]), (value) => ({ ...value, discriminator: ACCEPT_AUTHORITY_DISCRIMINATOR }));
20
+ }
21
+ export function getAcceptAuthorityInstructionDataDecoder() {
22
+ return getStructDecoder([
23
+ ["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
24
+ ]);
25
+ }
26
+ export function getAcceptAuthorityInstructionDataCodec() {
27
+ return combineCodec(getAcceptAuthorityInstructionDataEncoder(), getAcceptAuthorityInstructionDataDecoder());
28
+ }
29
+ export async function getAcceptAuthorityInstructionAsync(input, config) {
30
+ // Program address.
31
+ const programAddress = config?.programAddress ?? AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS;
32
+ // Original accounts.
33
+ const originalAccounts = {
34
+ newAuthority: { value: input.newAuthority ?? null, isWritable: false },
35
+ acpState: { value: input.acpState ?? null, isWritable: true },
36
+ };
37
+ const accounts = originalAccounts;
38
+ // Resolve default values.
39
+ if (!accounts.acpState.value) {
40
+ accounts.acpState.value = await findAcpStatePda();
41
+ }
42
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
43
+ return Object.freeze({
44
+ accounts: [
45
+ getAccountMeta(accounts.newAuthority),
46
+ getAccountMeta(accounts.acpState),
47
+ ],
48
+ data: getAcceptAuthorityInstructionDataEncoder().encode({}),
49
+ programAddress,
50
+ });
51
+ }
52
+ export function getAcceptAuthorityInstruction(input, config) {
53
+ // Program address.
54
+ const programAddress = config?.programAddress ?? AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS;
55
+ // Original accounts.
56
+ const originalAccounts = {
57
+ newAuthority: { value: input.newAuthority ?? null, isWritable: false },
58
+ acpState: { value: input.acpState ?? null, isWritable: true },
59
+ };
60
+ const accounts = originalAccounts;
61
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
62
+ return Object.freeze({
63
+ accounts: [
64
+ getAccountMeta(accounts.newAuthority),
65
+ getAccountMeta(accounts.acpState),
66
+ ],
67
+ data: getAcceptAuthorityInstructionDataEncoder().encode({}),
68
+ programAddress,
69
+ });
70
+ }
71
+ export function parseAcceptAuthorityInstruction(instruction) {
72
+ if (instruction.accounts.length < 2) {
73
+ // TODO: Coded error.
74
+ throw new Error("Not enough accounts");
75
+ }
76
+ let accountIndex = 0;
77
+ const getNextAccount = () => {
78
+ const accountMeta = instruction.accounts[accountIndex];
79
+ accountIndex += 1;
80
+ return accountMeta;
81
+ };
82
+ return {
83
+ programAddress: instruction.programAddress,
84
+ accounts: { newAuthority: getNextAccount(), acpState: getNextAccount() },
85
+ data: getAcceptAuthorityInstructionDataDecoder().decode(instruction.data),
86
+ };
87
+ }
88
+ //# sourceMappingURL=acceptAuthority.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acceptAuthority.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/instructions/acceptAuthority.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GAcjB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,eAA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AQ,CAAC,YAAY,CAAC;YACrC,cAAc,CAAC,QAAQ,CAAC,QAAQ,CAAC;SAClC;QACD,IAAI,EAAE,wCAAwC,EAAE,CAAC,MAAM,CAAC,EAAE,CAAC;QAC3D,cAAc;KAKf,CAAC,CAAC;AACL,CAAC;AAcD,MAAM,UAAU,+BAA+B,CAI7C,WAEyC;IAEzC,IAAI,WAAW,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACpC,qBAAqB;QACrB,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACzC,CAAC;IACD,IAAI,YAAY,GAAG,CAAC,CAAC;IACrB,MAAM,cAAc,GAAG,GAAG,EAAE;QAC1B,MAAM,WAAW,GAAI,WAAW,CAAC,QAA0B,CAAC,YAAY,CAAE,CAAC;QAC3E,YAAY,IAAI,CAAC,CAAC;QAClB,OAAO,WAAW,CAAC;IACrB,CAAC,CAAC;IACF,OAAO;QACL,cAAc,EAAE,WAAW,CAAC,cAAc;QAC1C,QAAQ,EAAE,EAAE,YAAY,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE;QACxE,IAAI,EAAE,wCAAwC,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,IAAI,CAAC;KAC1E,CAAC;AACJ,CAAC"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { type AccountMeta, type AccountSignerMeta, type Address, type FixedSizeCodec, type FixedSizeDecoder, type FixedSizeEncoder, type Instruction, type InstructionWithAccounts, type InstructionWithData, type ReadonlyAccount, type ReadonlyUint8Array, type TransactionSigner, type WritableAccount, type WritableSignerAccount } from "@solana/kit";
9
+ import { AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS } from "../programs/index.js";
10
+ export declare const ADD_HOOK_WHITELIST_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getAddHookWhitelistDiscriminatorBytes(): ReadonlyUint8Array;
12
+ export type AddHookWhitelistInstruction<TProgram extends string = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS, TAccountAuthority extends string | AccountMeta<string> = string, TAccountAcpState extends string | AccountMeta<string> = string, TAccountHookWhitelist extends string | AccountMeta<string> = string, TAccountHookProgramData extends string | AccountMeta<string> = string, TAccountSystemProgram extends string | AccountMeta<string> = "11111111111111111111111111111111", TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
+ TAccountAuthority extends string ? WritableSignerAccount<TAccountAuthority> & AccountSignerMeta<TAccountAuthority> : TAccountAuthority,
14
+ TAccountAcpState extends string ? ReadonlyAccount<TAccountAcpState> : TAccountAcpState,
15
+ TAccountHookWhitelist extends string ? WritableAccount<TAccountHookWhitelist> : TAccountHookWhitelist,
16
+ TAccountHookProgramData extends string ? ReadonlyAccount<TAccountHookProgramData> : TAccountHookProgramData,
17
+ TAccountSystemProgram extends string ? ReadonlyAccount<TAccountSystemProgram> : TAccountSystemProgram,
18
+ ...TRemainingAccounts
19
+ ]>;
20
+ export type AddHookWhitelistInstructionData = {
21
+ discriminator: ReadonlyUint8Array;
22
+ hook: Address;
23
+ };
24
+ export type AddHookWhitelistInstructionDataArgs = {
25
+ hook: Address;
26
+ };
27
+ export declare function getAddHookWhitelistInstructionDataEncoder(): FixedSizeEncoder<AddHookWhitelistInstructionDataArgs>;
28
+ export declare function getAddHookWhitelistInstructionDataDecoder(): FixedSizeDecoder<AddHookWhitelistInstructionData>;
29
+ export declare function getAddHookWhitelistInstructionDataCodec(): FixedSizeCodec<AddHookWhitelistInstructionDataArgs, AddHookWhitelistInstructionData>;
30
+ export type AddHookWhitelistAsyncInput<TAccountAuthority extends string = string, TAccountAcpState extends string = string, TAccountHookWhitelist extends string = string, TAccountHookProgramData extends string = string, TAccountSystemProgram extends string = string> = {
31
+ authority: TransactionSigner<TAccountAuthority>;
32
+ acpState?: Address<TAccountAcpState>;
33
+ hookWhitelist?: Address<TAccountHookWhitelist>;
34
+ hookProgramData?: Address<TAccountHookProgramData>;
35
+ systemProgram?: Address<TAccountSystemProgram>;
36
+ hook: AddHookWhitelistInstructionDataArgs["hook"];
37
+ };
38
+ export declare function getAddHookWhitelistInstructionAsync<TAccountAuthority extends string, TAccountAcpState extends string, TAccountHookWhitelist extends string, TAccountHookProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS>(input: AddHookWhitelistAsyncInput<TAccountAuthority, TAccountAcpState, TAccountHookWhitelist, TAccountHookProgramData, TAccountSystemProgram>, config?: {
39
+ programAddress?: TProgramAddress;
40
+ }): Promise<AddHookWhitelistInstruction<TProgramAddress, TAccountAuthority, TAccountAcpState, TAccountHookWhitelist, TAccountHookProgramData, TAccountSystemProgram>>;
41
+ export type AddHookWhitelistInput<TAccountAuthority extends string = string, TAccountAcpState extends string = string, TAccountHookWhitelist extends string = string, TAccountHookProgramData extends string = string, TAccountSystemProgram extends string = string> = {
42
+ authority: TransactionSigner<TAccountAuthority>;
43
+ acpState: Address<TAccountAcpState>;
44
+ hookWhitelist: Address<TAccountHookWhitelist>;
45
+ hookProgramData: Address<TAccountHookProgramData>;
46
+ systemProgram?: Address<TAccountSystemProgram>;
47
+ hook: AddHookWhitelistInstructionDataArgs["hook"];
48
+ };
49
+ export declare function getAddHookWhitelistInstruction<TAccountAuthority extends string, TAccountAcpState extends string, TAccountHookWhitelist extends string, TAccountHookProgramData extends string, TAccountSystemProgram extends string, TProgramAddress extends Address = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS>(input: AddHookWhitelistInput<TAccountAuthority, TAccountAcpState, TAccountHookWhitelist, TAccountHookProgramData, TAccountSystemProgram>, config?: {
50
+ programAddress?: TProgramAddress;
51
+ }): AddHookWhitelistInstruction<TProgramAddress, TAccountAuthority, TAccountAcpState, TAccountHookWhitelist, TAccountHookProgramData, TAccountSystemProgram>;
52
+ export type ParsedAddHookWhitelistInstruction<TProgram extends string = typeof AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
53
+ programAddress: Address<TProgram>;
54
+ accounts: {
55
+ authority: TAccountMetas[0];
56
+ acpState: TAccountMetas[1];
57
+ hookWhitelist: TAccountMetas[2];
58
+ hookProgramData: TAccountMetas[3];
59
+ systemProgram: TAccountMetas[4];
60
+ };
61
+ data: AddHookWhitelistInstructionData;
62
+ };
63
+ export declare function parseAddHookWhitelistInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedAddHookWhitelistInstruction<TProgram, TAccountMetas>;
64
+ //# sourceMappingURL=addHookWhitelist.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addHookWhitelist.d.ts","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/instructions/addHookWhitelist.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAYL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,eAAe,EACpB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,qBAAqB,EAC3B,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,mCAAmC,EAAE,MAAM,sBAAsB,CAAC;AAO3E,eAAO,MAAM,gCAAgC,yBAE3C,CAAC;AAEH,wBAAgB,qCAAqC,uBAIpD;AAED,MAAM,MAAM,2BAA2B,CACrC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QACR,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC5B,QAAQ,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAC3B,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAChC,eAAe,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;QAClC,aAAa,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;KACjC,CAAC;IACF,IAAI,EAAE,+BAA+B,CAAC;CACvC,CAAC;AAEF,wBAAgB,gCAAgC,CAC9C,QAAQ,SAAS,MAAM,EACvB,aAAa,SAAS,SAAS,WAAW,EAAE,EAE5C,WAAW,EAAE,WAAW,CAAC,QAAQ,CAAC,GAChC,uBAAuB,CAAC,aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,iCAAiC,CAAC,QAAQ,EAAE,aAAa,CAAC,CAsB5D"}
@@ -0,0 +1,140 @@
1
+ /**
2
+ * This code was AUTOGENERATED using the Codama library.
3
+ * Please DO NOT EDIT THIS FILE, instead use visitors
4
+ * to add features, then rerun Codama to update it.
5
+ *
6
+ * @see https://github.com/codama-idl/codama
7
+ */
8
+ import { combineCodec, fixDecoderSize, fixEncoderSize, getAddressDecoder, getAddressEncoder, getBytesDecoder, getBytesEncoder, getProgramDerivedAddress, getStructDecoder, getStructEncoder, transformEncoder, } from "@solana/kit";
9
+ import { findAcpStatePda, findHookWhitelistPda } from "../pdas/index.js";
10
+ import { AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS } from "../programs/index.js";
11
+ import { expectSome, getAccountMetaFactory, } from "../shared/index.js";
12
+ export const ADD_HOOK_WHITELIST_DISCRIMINATOR = new Uint8Array([
13
+ 155, 81, 232, 227, 41, 160, 231, 189,
14
+ ]);
15
+ export function getAddHookWhitelistDiscriminatorBytes() {
16
+ return fixEncoderSize(getBytesEncoder(), 8).encode(ADD_HOOK_WHITELIST_DISCRIMINATOR);
17
+ }
18
+ export function getAddHookWhitelistInstructionDataEncoder() {
19
+ return transformEncoder(getStructEncoder([
20
+ ["discriminator", fixEncoderSize(getBytesEncoder(), 8)],
21
+ ["hook", getAddressEncoder()],
22
+ ]), (value) => ({ ...value, discriminator: ADD_HOOK_WHITELIST_DISCRIMINATOR }));
23
+ }
24
+ export function getAddHookWhitelistInstructionDataDecoder() {
25
+ return getStructDecoder([
26
+ ["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
27
+ ["hook", getAddressDecoder()],
28
+ ]);
29
+ }
30
+ export function getAddHookWhitelistInstructionDataCodec() {
31
+ return combineCodec(getAddHookWhitelistInstructionDataEncoder(), getAddHookWhitelistInstructionDataDecoder());
32
+ }
33
+ export async function getAddHookWhitelistInstructionAsync(input, config) {
34
+ // Program address.
35
+ const programAddress = config?.programAddress ?? AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS;
36
+ // Original accounts.
37
+ const originalAccounts = {
38
+ authority: { value: input.authority ?? null, isWritable: true },
39
+ acpState: { value: input.acpState ?? null, isWritable: false },
40
+ hookWhitelist: { value: input.hookWhitelist ?? null, isWritable: true },
41
+ hookProgramData: {
42
+ value: input.hookProgramData ?? null,
43
+ isWritable: false,
44
+ },
45
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false },
46
+ };
47
+ const accounts = originalAccounts;
48
+ // Original args.
49
+ const args = { ...input };
50
+ // Resolve default values.
51
+ if (!accounts.acpState.value) {
52
+ accounts.acpState.value = await findAcpStatePda();
53
+ }
54
+ if (!accounts.hookWhitelist.value) {
55
+ accounts.hookWhitelist.value = await findHookWhitelistPda({
56
+ hook: expectSome(args.hook),
57
+ });
58
+ }
59
+ if (!accounts.hookProgramData.value) {
60
+ accounts.hookProgramData.value = await getProgramDerivedAddress({
61
+ programAddress: "BPFLoaderUpgradeab1e11111111111111111111111",
62
+ seeds: [getAddressEncoder().encode(expectSome(args.hook))],
63
+ });
64
+ }
65
+ if (!accounts.systemProgram.value) {
66
+ accounts.systemProgram.value =
67
+ "11111111111111111111111111111111";
68
+ }
69
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
70
+ return Object.freeze({
71
+ accounts: [
72
+ getAccountMeta(accounts.authority),
73
+ getAccountMeta(accounts.acpState),
74
+ getAccountMeta(accounts.hookWhitelist),
75
+ getAccountMeta(accounts.hookProgramData),
76
+ getAccountMeta(accounts.systemProgram),
77
+ ],
78
+ data: getAddHookWhitelistInstructionDataEncoder().encode(args),
79
+ programAddress,
80
+ });
81
+ }
82
+ export function getAddHookWhitelistInstruction(input, config) {
83
+ // Program address.
84
+ const programAddress = config?.programAddress ?? AGENTIC_COMMERCE_V3_PROGRAM_ADDRESS;
85
+ // Original accounts.
86
+ const originalAccounts = {
87
+ authority: { value: input.authority ?? null, isWritable: true },
88
+ acpState: { value: input.acpState ?? null, isWritable: false },
89
+ hookWhitelist: { value: input.hookWhitelist ?? null, isWritable: true },
90
+ hookProgramData: {
91
+ value: input.hookProgramData ?? null,
92
+ isWritable: false,
93
+ },
94
+ systemProgram: { value: input.systemProgram ?? null, isWritable: false },
95
+ };
96
+ const accounts = originalAccounts;
97
+ // Original args.
98
+ const args = { ...input };
99
+ // Resolve default values.
100
+ if (!accounts.systemProgram.value) {
101
+ accounts.systemProgram.value =
102
+ "11111111111111111111111111111111";
103
+ }
104
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
105
+ return Object.freeze({
106
+ accounts: [
107
+ getAccountMeta(accounts.authority),
108
+ getAccountMeta(accounts.acpState),
109
+ getAccountMeta(accounts.hookWhitelist),
110
+ getAccountMeta(accounts.hookProgramData),
111
+ getAccountMeta(accounts.systemProgram),
112
+ ],
113
+ data: getAddHookWhitelistInstructionDataEncoder().encode(args),
114
+ programAddress,
115
+ });
116
+ }
117
+ export function parseAddHookWhitelistInstruction(instruction) {
118
+ if (instruction.accounts.length < 5) {
119
+ // TODO: Coded error.
120
+ throw new Error("Not enough accounts");
121
+ }
122
+ let accountIndex = 0;
123
+ const getNextAccount = () => {
124
+ const accountMeta = instruction.accounts[accountIndex];
125
+ accountIndex += 1;
126
+ return accountMeta;
127
+ };
128
+ return {
129
+ programAddress: instruction.programAddress,
130
+ accounts: {
131
+ authority: getNextAccount(),
132
+ acpState: getNextAccount(),
133
+ hookWhitelist: getNextAccount(),
134
+ hookProgramData: getNextAccount(),
135
+ systemProgram: getNextAccount(),
136
+ },
137
+ data: getAddHookWhitelistInstructionDataDecoder().decode(instruction.data),
138
+ };
139
+ }
140
+ //# sourceMappingURL=addHookWhitelist.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"addHookWhitelist.js","sourceRoot":"","sources":["../../../../../../src/core/solana/generated/acp/instructions/addHookWhitelist.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,YAAY,EACZ,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB,gBAAgB,EAChB,gBAAgB,GAejB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAAE,mCAAmC,EAAE,MAAM,sBAAsB,CAAC;AAC3E,OAAO,EACL,UAAU,EACV,qBAAqB,GAEtB,MAAM,oBAAoB,CAAC;AAE5B,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAI,UAAU,CAAC;IAC7D,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;CACrC,CAAC,CAAC;AAEH,MAAM,UAAU,qCAAqC;IACnD,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,gCAAgC,CACjC,CAAC;AACJ,CAAC;AA0CD,MAAM,UAAU,yCAAyC;IACvD,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC;QACv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