@usesigil/kit 0.13.0 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (260) hide show
  1. package/dist/advanced-analytics.d.ts +3 -1
  2. package/dist/advanced-analytics.d.ts.map +1 -1
  3. package/dist/advanced-analytics.js +4 -6
  4. package/dist/advanced-analytics.js.map +1 -1
  5. package/dist/agent-bootstrap.d.ts +118 -0
  6. package/dist/agent-bootstrap.d.ts.map +1 -0
  7. package/dist/agent-bootstrap.js +211 -0
  8. package/dist/agent-bootstrap.js.map +1 -0
  9. package/dist/agent-errors.d.ts +3 -3
  10. package/dist/agent-errors.d.ts.map +1 -1
  11. package/dist/agent-errors.js +230 -206
  12. package/dist/agent-errors.js.map +1 -1
  13. package/dist/build-unsigned.d.ts +152 -0
  14. package/dist/build-unsigned.d.ts.map +1 -0
  15. package/dist/build-unsigned.js +152 -0
  16. package/dist/build-unsigned.js.map +1 -0
  17. package/dist/constraints/index.d.ts +23 -0
  18. package/dist/constraints/index.d.ts.map +1 -0
  19. package/dist/constraints/index.js +24 -0
  20. package/dist/constraints/index.js.map +1 -0
  21. package/dist/create-vault.d.ts +10 -2
  22. package/dist/create-vault.d.ts.map +1 -1
  23. package/dist/create-vault.js +10 -3
  24. package/dist/create-vault.js.map +1 -1
  25. package/dist/dashboard/constraint-builders.d.ts +82 -0
  26. package/dist/dashboard/constraint-builders.d.ts.map +1 -0
  27. package/dist/dashboard/constraint-builders.js +204 -0
  28. package/dist/dashboard/constraint-builders.js.map +1 -0
  29. package/dist/dashboard/errors.d.ts +37 -0
  30. package/dist/dashboard/errors.d.ts.map +1 -1
  31. package/dist/dashboard/errors.js +76 -0
  32. package/dist/dashboard/errors.js.map +1 -1
  33. package/dist/dashboard/from-json.d.ts.map +1 -1
  34. package/dist/dashboard/from-json.js +1 -5
  35. package/dist/dashboard/from-json.js.map +1 -1
  36. package/dist/dashboard/index.d.ts +31 -10
  37. package/dist/dashboard/index.d.ts.map +1 -1
  38. package/dist/dashboard/index.js +40 -10
  39. package/dist/dashboard/index.js.map +1 -1
  40. package/dist/dashboard/mutations.d.ts +60 -3
  41. package/dist/dashboard/mutations.d.ts.map +1 -1
  42. package/dist/dashboard/mutations.js +129 -32
  43. package/dist/dashboard/mutations.js.map +1 -1
  44. package/dist/dashboard/post-assertion-validation.d.ts +88 -0
  45. package/dist/dashboard/post-assertion-validation.d.ts.map +1 -0
  46. package/dist/dashboard/post-assertion-validation.js +191 -0
  47. package/dist/dashboard/post-assertion-validation.js.map +1 -0
  48. package/dist/dashboard/reads.d.ts +93 -1
  49. package/dist/dashboard/reads.d.ts.map +1 -1
  50. package/dist/dashboard/reads.js +244 -40
  51. package/dist/dashboard/reads.js.map +1 -1
  52. package/dist/dashboard/types.d.ts +149 -21
  53. package/dist/dashboard/types.d.ts.map +1 -1
  54. package/dist/errors/codes.js +1 -1
  55. package/dist/event-analytics.d.ts +1 -3
  56. package/dist/event-analytics.d.ts.map +1 -1
  57. package/dist/event-analytics.js +4 -9
  58. package/dist/event-analytics.js.map +1 -1
  59. package/dist/events.js +2 -2
  60. package/dist/events.js.map +1 -1
  61. package/dist/generated/accounts/agentVault.d.ts +0 -20
  62. package/dist/generated/accounts/agentVault.d.ts.map +1 -1
  63. package/dist/generated/accounts/agentVault.js +0 -2
  64. package/dist/generated/accounts/agentVault.js.map +1 -1
  65. package/dist/generated/accounts/pendingAgentPermissionsUpdate.d.ts +12 -0
  66. package/dist/generated/accounts/pendingAgentPermissionsUpdate.d.ts.map +1 -1
  67. package/dist/generated/accounts/pendingAgentPermissionsUpdate.js +3 -1
  68. package/dist/generated/accounts/pendingAgentPermissionsUpdate.js.map +1 -1
  69. package/dist/generated/accounts/pendingCloseConstraints.d.ts +12 -0
  70. package/dist/generated/accounts/pendingCloseConstraints.d.ts.map +1 -1
  71. package/dist/generated/accounts/pendingCloseConstraints.js +4 -2
  72. package/dist/generated/accounts/pendingCloseConstraints.js.map +1 -1
  73. package/dist/generated/accounts/pendingConstraintsUpdate.d.ts +14 -0
  74. package/dist/generated/accounts/pendingConstraintsUpdate.d.ts.map +1 -1
  75. package/dist/generated/accounts/pendingConstraintsUpdate.js +4 -2
  76. package/dist/generated/accounts/pendingConstraintsUpdate.js.map +1 -1
  77. package/dist/generated/accounts/pendingPolicyUpdate.d.ts +24 -8
  78. package/dist/generated/accounts/pendingPolicyUpdate.d.ts.map +1 -1
  79. package/dist/generated/accounts/pendingPolicyUpdate.js +6 -8
  80. package/dist/generated/accounts/pendingPolicyUpdate.js.map +1 -1
  81. package/dist/generated/accounts/policyConfig.d.ts +28 -18
  82. package/dist/generated/accounts/policyConfig.d.ts.map +1 -1
  83. package/dist/generated/accounts/policyConfig.js +4 -8
  84. package/dist/generated/accounts/policyConfig.js.map +1 -1
  85. package/dist/generated/accounts/sessionAuthority.d.ts +18 -8
  86. package/dist/generated/accounts/sessionAuthority.d.ts.map +1 -1
  87. package/dist/generated/accounts/sessionAuthority.js +4 -6
  88. package/dist/generated/accounts/sessionAuthority.js.map +1 -1
  89. package/dist/generated/errors/sigil.d.ts +95 -89
  90. package/dist/generated/errors/sigil.d.ts.map +1 -1
  91. package/dist/generated/errors/sigil.js +107 -98
  92. package/dist/generated/errors/sigil.js.map +1 -1
  93. package/dist/generated/event-discriminators.js +1 -1
  94. package/dist/generated/event-discriminators.js.map +1 -1
  95. package/dist/generated/instructions/cleanupOrphanConstraintsPda.d.ts +67 -0
  96. package/dist/generated/instructions/cleanupOrphanConstraintsPda.d.ts.map +1 -0
  97. package/dist/generated/instructions/cleanupOrphanConstraintsPda.js +120 -0
  98. package/dist/generated/instructions/cleanupOrphanConstraintsPda.js.map +1 -0
  99. package/dist/generated/instructions/freezeVault.d.ts +8 -5
  100. package/dist/generated/instructions/freezeVault.d.ts.map +1 -1
  101. package/dist/generated/instructions/freezeVault.js +14 -3
  102. package/dist/generated/instructions/freezeVault.js.map +1 -1
  103. package/dist/generated/instructions/index.d.ts +1 -1
  104. package/dist/generated/instructions/index.d.ts.map +1 -1
  105. package/dist/generated/instructions/index.js +1 -1
  106. package/dist/generated/instructions/index.js.map +1 -1
  107. package/dist/generated/instructions/initializeVault.d.ts +0 -8
  108. package/dist/generated/instructions/initializeVault.d.ts.map +1 -1
  109. package/dist/generated/instructions/initializeVault.js +0 -4
  110. package/dist/generated/instructions/initializeVault.js.map +1 -1
  111. package/dist/generated/instructions/queuePolicyUpdate.d.ts +8 -16
  112. package/dist/generated/instructions/queuePolicyUpdate.d.ts.map +1 -1
  113. package/dist/generated/instructions/queuePolicyUpdate.js +4 -8
  114. package/dist/generated/instructions/queuePolicyUpdate.js.map +1 -1
  115. package/dist/generated/programs/sigil.d.ts +26 -26
  116. package/dist/generated/programs/sigil.d.ts.map +1 -1
  117. package/dist/generated/programs/sigil.js +34 -34
  118. package/dist/generated/programs/sigil.js.map +1 -1
  119. package/dist/generated/types/accountConstraint.d.ts +16 -1
  120. package/dist/generated/types/accountConstraint.d.ts.map +1 -1
  121. package/dist/generated/types/accountConstraint.js +2 -0
  122. package/dist/generated/types/accountConstraint.js.map +1 -1
  123. package/dist/generated/types/accountConstraintZC.d.ts +7 -0
  124. package/dist/generated/types/accountConstraintZC.d.ts.map +1 -1
  125. package/dist/generated/types/accountConstraintZC.js +4 -2
  126. package/dist/generated/types/accountConstraintZC.js.map +1 -1
  127. package/dist/generated/types/constraintEntry.d.ts +0 -8
  128. package/dist/generated/types/constraintEntry.d.ts.map +1 -1
  129. package/dist/generated/types/constraintEntry.js +1 -5
  130. package/dist/generated/types/constraintEntry.js.map +1 -1
  131. package/dist/generated/types/constraintEntryZC.d.ts +22 -27
  132. package/dist/generated/types/constraintEntryZC.d.ts.map +1 -1
  133. package/dist/generated/types/constraintEntryZC.js +4 -6
  134. package/dist/generated/types/constraintEntryZC.js.map +1 -1
  135. package/dist/generated/types/index.d.ts +1 -1
  136. package/dist/generated/types/index.d.ts.map +1 -1
  137. package/dist/generated/types/index.js +1 -1
  138. package/dist/generated/types/index.js.map +1 -1
  139. package/dist/generated/types/orphanConstraintsPdaCleaned.d.ts +22 -0
  140. package/dist/generated/types/orphanConstraintsPdaCleaned.d.ts.map +1 -0
  141. package/dist/generated/types/{positionsSynced.js → orphanConstraintsPdaCleaned.js} +8 -10
  142. package/dist/generated/types/orphanConstraintsPdaCleaned.js.map +1 -0
  143. package/dist/generated/types/sessionFinalized.d.ts +0 -4
  144. package/dist/generated/types/sessionFinalized.d.ts.map +1 -1
  145. package/dist/generated/types/sessionFinalized.js +1 -3
  146. package/dist/generated/types/sessionFinalized.js.map +1 -1
  147. package/dist/generated/types/vaultFrozen.d.ts +12 -0
  148. package/dist/generated/types/vaultFrozen.d.ts.map +1 -1
  149. package/dist/generated/types/vaultFrozen.js +3 -1
  150. package/dist/generated/types/vaultFrozen.js.map +1 -1
  151. package/dist/index.d.ts +13 -3
  152. package/dist/index.d.ts.map +1 -1
  153. package/dist/index.js +23 -2
  154. package/dist/index.js.map +1 -1
  155. package/dist/inscribe.d.ts +0 -8
  156. package/dist/inscribe.d.ts.map +1 -1
  157. package/dist/inscribe.js +0 -2
  158. package/dist/inscribe.js.map +1 -1
  159. package/dist/kit-adapter.d.ts +1 -1
  160. package/dist/kit-adapter.d.ts.map +1 -1
  161. package/dist/kit-adapter.js +1 -1
  162. package/dist/kit-adapter.js.map +1 -1
  163. package/dist/logger.d.ts +48 -0
  164. package/dist/logger.d.ts.map +1 -1
  165. package/dist/logger.js +36 -0
  166. package/dist/logger.js.map +1 -1
  167. package/dist/owner-transaction.d.ts +8 -0
  168. package/dist/owner-transaction.d.ts.map +1 -1
  169. package/dist/owner-transaction.js +1 -0
  170. package/dist/owner-transaction.js.map +1 -1
  171. package/dist/post-assertions/cross-field-lte.d.ts +134 -0
  172. package/dist/post-assertions/cross-field-lte.d.ts.map +1 -0
  173. package/dist/post-assertions/cross-field-lte.js +129 -0
  174. package/dist/post-assertions/cross-field-lte.js.map +1 -0
  175. package/dist/post-assertions/index.d.ts +28 -0
  176. package/dist/post-assertions/index.d.ts.map +1 -0
  177. package/dist/post-assertions/index.js +28 -0
  178. package/dist/post-assertions/index.js.map +1 -0
  179. package/dist/post-assertions/presets/flash-trade.d.ts +139 -0
  180. package/dist/post-assertions/presets/flash-trade.d.ts.map +1 -0
  181. package/dist/post-assertions/presets/flash-trade.js +154 -0
  182. package/dist/post-assertions/presets/flash-trade.js.map +1 -0
  183. package/dist/presets.d.ts +1 -13
  184. package/dist/presets.d.ts.map +1 -1
  185. package/dist/presets.js +0 -10
  186. package/dist/presets.js.map +1 -1
  187. package/dist/preview-create-vault.d.ts +280 -0
  188. package/dist/preview-create-vault.d.ts.map +1 -0
  189. package/dist/preview-create-vault.js +477 -0
  190. package/dist/preview-create-vault.js.map +1 -0
  191. package/dist/protocol-registry/annotations/drift.json +7 -0
  192. package/dist/protocol-registry/annotations/flash-trade.json +7 -0
  193. package/dist/protocol-registry/annotations/jupiter-borrow.json +7 -0
  194. package/dist/protocol-registry/annotations/jupiter-earn.json +7 -0
  195. package/dist/protocol-registry/annotations/jupiter-lend.json +7 -0
  196. package/dist/protocol-registry/annotations/jupiter.json +7 -0
  197. package/dist/protocol-registry/annotations/kamino.json +7 -0
  198. package/dist/protocol-registry/index.d.ts +45 -0
  199. package/dist/protocol-registry/index.d.ts.map +1 -0
  200. package/dist/protocol-registry/index.js +76 -0
  201. package/dist/protocol-registry/index.js.map +1 -0
  202. package/dist/protocol-tier.d.ts +157 -0
  203. package/dist/protocol-tier.d.ts.map +1 -0
  204. package/dist/protocol-tier.js +104 -0
  205. package/dist/protocol-tier.js.map +1 -0
  206. package/dist/seal.d.ts.map +1 -1
  207. package/dist/seal.js +30 -12
  208. package/dist/seal.js.map +1 -1
  209. package/dist/sigil.d.ts +0 -8
  210. package/dist/sigil.d.ts.map +1 -1
  211. package/dist/simulation.d.ts.map +1 -1
  212. package/dist/simulation.js +131 -82
  213. package/dist/simulation.js.map +1 -1
  214. package/dist/testing/devnet.d.ts.map +1 -1
  215. package/dist/testing/devnet.js +0 -2
  216. package/dist/testing/devnet.js.map +1 -1
  217. package/dist/testing/errors/expect.d.ts +137 -0
  218. package/dist/testing/errors/expect.d.ts.map +1 -0
  219. package/dist/testing/errors/expect.js +372 -0
  220. package/dist/testing/errors/expect.js.map +1 -0
  221. package/dist/testing/errors/index.d.ts +3 -0
  222. package/dist/testing/errors/index.d.ts.map +1 -0
  223. package/dist/testing/errors/index.js +8 -0
  224. package/dist/testing/errors/index.js.map +1 -0
  225. package/dist/testing/errors/names.generated.d.ts +188 -0
  226. package/dist/testing/errors/names.generated.d.ts.map +1 -0
  227. package/dist/testing/errors/names.generated.js +183 -0
  228. package/dist/testing/errors/names.generated.js.map +1 -0
  229. package/dist/testing/index.d.ts +1 -0
  230. package/dist/testing/index.d.ts.map +1 -1
  231. package/dist/testing/index.js +8 -0
  232. package/dist/testing/index.js.map +1 -1
  233. package/dist/testing/mock-rpc.d.ts +8 -0
  234. package/dist/testing/mock-rpc.d.ts.map +1 -1
  235. package/dist/testing/mock-rpc.js +14 -0
  236. package/dist/testing/mock-rpc.js.map +1 -1
  237. package/dist/testing/mock-state.d.ts +0 -2
  238. package/dist/testing/mock-state.d.ts.map +1 -1
  239. package/dist/testing/mock-state.js +2 -5
  240. package/dist/testing/mock-state.js.map +1 -1
  241. package/dist/types.d.ts +1 -3
  242. package/dist/types.d.ts.map +1 -1
  243. package/dist/types.js +5 -9
  244. package/dist/types.js.map +1 -1
  245. package/dist/vault-analytics.d.ts +0 -1
  246. package/dist/vault-analytics.d.ts.map +1 -1
  247. package/dist/vault-analytics.js +0 -1
  248. package/dist/vault-analytics.js.map +1 -1
  249. package/package.json +15 -3
  250. package/dist/generated/instructions/syncPositions.d.ts +0 -44
  251. package/dist/generated/instructions/syncPositions.d.ts.map +0 -1
  252. package/dist/generated/instructions/syncPositions.js +0 -72
  253. package/dist/generated/instructions/syncPositions.js.map +0 -1
  254. package/dist/generated/types/positionsSynced.d.ts +0 -24
  255. package/dist/generated/types/positionsSynced.d.ts.map +0 -1
  256. package/dist/generated/types/positionsSynced.js.map +0 -1
  257. package/dist/integrations/protocol-handler.d.ts +0 -59
  258. package/dist/integrations/protocol-handler.d.ts.map +0 -1
  259. package/dist/integrations/protocol-handler.js +0 -9
  260. package/dist/integrations/protocol-handler.js.map +0 -1
@@ -21,165 +21,172 @@ export const SIGIL_ERROR__PROTOCOL_NOT_ALLOWED = 0x1774; // 6004
21
21
  export const SIGIL_ERROR__TRANSACTION_TOO_LARGE = 0x1775; // 6005
22
22
  /** SpendingCapExceeded: Rolling 24h spending cap would be exceeded */
23
23
  export const SIGIL_ERROR__SPENDING_CAP_EXCEEDED = 0x1776; // 6006
24
- /** LeverageTooHigh: Leverage exceeds maximum allowed */
25
- export const SIGIL_ERROR__LEVERAGE_TOO_HIGH = 0x1777; // 6007
26
- /** TooManyPositions: Maximum concurrent open positions reached */
27
- export const SIGIL_ERROR__TOO_MANY_POSITIONS = 0x1778; // 6008
28
- /** PositionOpeningDisallowed: Cannot open new positions (policy disallows) */
29
- export const SIGIL_ERROR__POSITION_OPENING_DISALLOWED = 0x1779; // 6009
30
24
  /** SessionNotAuthorized: Session not authorized */
31
- export const SIGIL_ERROR__SESSION_NOT_AUTHORIZED = 0x177a; // 6010
25
+ export const SIGIL_ERROR__SESSION_NOT_AUTHORIZED = 0x1777; // 6007
32
26
  /** InvalidSession: Invalid session: does not belong to this vault */
33
- export const SIGIL_ERROR__INVALID_SESSION = 0x177b; // 6011
34
- /** OpenPositionsExist: Vault has open positions, cannot close */
35
- export const SIGIL_ERROR__OPEN_POSITIONS_EXIST = 0x177c; // 6012
27
+ export const SIGIL_ERROR__INVALID_SESSION = 0x1778; // 6008
36
28
  /** TooManyAllowedProtocols: Policy configuration invalid: too many allowed protocols */
37
- export const SIGIL_ERROR__TOO_MANY_ALLOWED_PROTOCOLS = 0x177d; // 6013
29
+ export const SIGIL_ERROR__TOO_MANY_ALLOWED_PROTOCOLS = 0x1779; // 6009
38
30
  /** AgentAlreadyRegistered: Agent already registered for this vault */
39
- export const SIGIL_ERROR__AGENT_ALREADY_REGISTERED = 0x177e; // 6014
31
+ export const SIGIL_ERROR__AGENT_ALREADY_REGISTERED = 0x177a; // 6010
40
32
  /** NoAgentRegistered: No agent registered for this vault */
41
- export const SIGIL_ERROR__NO_AGENT_REGISTERED = 0x177f; // 6015
33
+ export const SIGIL_ERROR__NO_AGENT_REGISTERED = 0x177b; // 6011
42
34
  /** VaultNotFrozen: Vault is not frozen (expected frozen for reactivation) */
43
- export const SIGIL_ERROR__VAULT_NOT_FROZEN = 0x1780; // 6016
35
+ export const SIGIL_ERROR__VAULT_NOT_FROZEN = 0x177c; // 6012
44
36
  /** VaultAlreadyClosed: Vault is already closed */
45
- export const SIGIL_ERROR__VAULT_ALREADY_CLOSED = 0x1781; // 6017
37
+ export const SIGIL_ERROR__VAULT_ALREADY_CLOSED = 0x177d; // 6013
46
38
  /** InsufficientBalance: Insufficient vault balance for withdrawal */
47
- export const SIGIL_ERROR__INSUFFICIENT_BALANCE = 0x1782; // 6018
39
+ export const SIGIL_ERROR__INSUFFICIENT_BALANCE = 0x177e; // 6014
48
40
  /** DeveloperFeeTooHigh: Developer fee rate exceeds maximum (500 / 1,000,000 = 5 BPS) */
49
- export const SIGIL_ERROR__DEVELOPER_FEE_TOO_HIGH = 0x1783; // 6019
41
+ export const SIGIL_ERROR__DEVELOPER_FEE_TOO_HIGH = 0x177f; // 6015
50
42
  /** InvalidFeeDestination: Fee destination account invalid */
51
- export const SIGIL_ERROR__INVALID_FEE_DESTINATION = 0x1784; // 6020
43
+ export const SIGIL_ERROR__INVALID_FEE_DESTINATION = 0x1780; // 6016
52
44
  /** InvalidProtocolTreasury: Protocol treasury account does not match expected address */
53
- export const SIGIL_ERROR__INVALID_PROTOCOL_TREASURY = 0x1785; // 6021
45
+ export const SIGIL_ERROR__INVALID_PROTOCOL_TREASURY = 0x1781; // 6017
54
46
  /** InvalidAgentKey: Invalid agent: cannot be the zero address */
55
- export const SIGIL_ERROR__INVALID_AGENT_KEY = 0x1786; // 6022
47
+ export const SIGIL_ERROR__INVALID_AGENT_KEY = 0x1782; // 6018
56
48
  /** AgentIsOwner: Invalid agent: agent cannot be the vault owner */
57
- export const SIGIL_ERROR__AGENT_IS_OWNER = 0x1787; // 6023
49
+ export const SIGIL_ERROR__AGENT_IS_OWNER = 0x1783; // 6019
58
50
  /** Overflow: Arithmetic overflow */
59
- export const SIGIL_ERROR__OVERFLOW = 0x1788; // 6024
51
+ export const SIGIL_ERROR__OVERFLOW = 0x1784; // 6020
60
52
  /** InvalidTokenAccount: Token account does not belong to vault or has wrong mint */
61
- export const SIGIL_ERROR__INVALID_TOKEN_ACCOUNT = 0x1789; // 6025
53
+ export const SIGIL_ERROR__INVALID_TOKEN_ACCOUNT = 0x1785; // 6021
62
54
  /** TimelockNotExpired: Timelock period has not expired yet */
63
- export const SIGIL_ERROR__TIMELOCK_NOT_EXPIRED = 0x178a; // 6026
55
+ export const SIGIL_ERROR__TIMELOCK_NOT_EXPIRED = 0x1786; // 6022
64
56
  /** NoTimelockConfigured: No timelock configured on this vault */
65
- export const SIGIL_ERROR__NO_TIMELOCK_CONFIGURED = 0x178b; // 6027
57
+ export const SIGIL_ERROR__NO_TIMELOCK_CONFIGURED = 0x1787; // 6023
66
58
  /** DestinationNotAllowed: Destination not in allowed list */
67
- export const SIGIL_ERROR__DESTINATION_NOT_ALLOWED = 0x178c; // 6028
59
+ export const SIGIL_ERROR__DESTINATION_NOT_ALLOWED = 0x1788; // 6024
68
60
  /** TooManyDestinations: Too many destinations (max 10) */
69
- export const SIGIL_ERROR__TOO_MANY_DESTINATIONS = 0x178d; // 6029
61
+ export const SIGIL_ERROR__TOO_MANY_DESTINATIONS = 0x1789; // 6025
70
62
  /** InvalidProtocolMode: Invalid protocol mode (must be 0, 1, or 2) */
71
- export const SIGIL_ERROR__INVALID_PROTOCOL_MODE = 0x178e; // 6030
72
- /** InvalidNonSpendingAmount: Non-spending action must have amount = 0 */
73
- export const SIGIL_ERROR__INVALID_NON_SPENDING_AMOUNT = 0x178f; // 6031
74
- /** NoPositionsToClose: No open positions to close or cancel */
75
- export const SIGIL_ERROR__NO_POSITIONS_TO_CLOSE = 0x1790; // 6032
63
+ export const SIGIL_ERROR__INVALID_PROTOCOL_MODE = 0x178a; // 6026
76
64
  /** CpiCallNotAllowed: Instruction must be top-level (CPI calls not allowed) */
77
- export const SIGIL_ERROR__CPI_CALL_NOT_ALLOWED = 0x1791; // 6033
65
+ export const SIGIL_ERROR__CPI_CALL_NOT_ALLOWED = 0x178b; // 6027
78
66
  /** MissingFinalizeInstruction: Transaction must include finalize_session after validate */
79
- export const SIGIL_ERROR__MISSING_FINALIZE_INSTRUCTION = 0x1792; // 6034
67
+ export const SIGIL_ERROR__MISSING_FINALIZE_INSTRUCTION = 0x178c; // 6028
80
68
  /** NonTrackedSwapMustReturnStablecoin: Non-stablecoin swap must return stablecoin (balance did not increase) */
81
- export const SIGIL_ERROR__NON_TRACKED_SWAP_MUST_RETURN_STABLECOIN = 0x1793; // 6035
69
+ export const SIGIL_ERROR__NON_TRACKED_SWAP_MUST_RETURN_STABLECOIN = 0x178d; // 6029
82
70
  /** SwapSlippageExceeded: Swap slippage exceeds policy max_slippage_bps or quoted output is zero */
83
- export const SIGIL_ERROR__SWAP_SLIPPAGE_EXCEEDED = 0x1794; // 6036
71
+ export const SIGIL_ERROR__SWAP_SLIPPAGE_EXCEEDED = 0x178e; // 6030
84
72
  /** InvalidJupiterInstruction: Cannot parse Jupiter swap instruction data */
85
- export const SIGIL_ERROR__INVALID_JUPITER_INSTRUCTION = 0x1795; // 6037
73
+ export const SIGIL_ERROR__INVALID_JUPITER_INSTRUCTION = 0x178f; // 6031
86
74
  /** UnauthorizedTokenTransfer: Top-level SPL Token transfer not allowed between validate and finalize */
87
- export const SIGIL_ERROR__UNAUTHORIZED_TOKEN_TRANSFER = 0x1796; // 6038
75
+ export const SIGIL_ERROR__UNAUTHORIZED_TOKEN_TRANSFER = 0x1790; // 6032
88
76
  /** SlippageBpsTooHigh: Slippage BPS exceeds maximum (5000 = 50%) */
89
- export const SIGIL_ERROR__SLIPPAGE_BPS_TOO_HIGH = 0x1797; // 6039
77
+ export const SIGIL_ERROR__SLIPPAGE_BPS_TOO_HIGH = 0x1791; // 6033
90
78
  /** ProtocolMismatch: DeFi instruction program does not match declared target_protocol */
91
- export const SIGIL_ERROR__PROTOCOL_MISMATCH = 0x1798; // 6040
79
+ export const SIGIL_ERROR__PROTOCOL_MISMATCH = 0x1792; // 6034
92
80
  /** TooManyDeFiInstructions: Spending allows at most one DeFi instruction */
93
- export const SIGIL_ERROR__TOO_MANY_DE_FI_INSTRUCTIONS = 0x1799; // 6041
81
+ export const SIGIL_ERROR__TOO_MANY_DE_FI_INSTRUCTIONS = 0x1793; // 6035
94
82
  /** MaxAgentsReached: Maximum agents per vault reached (limit: 10) */
95
- export const SIGIL_ERROR__MAX_AGENTS_REACHED = 0x179a; // 6042
83
+ export const SIGIL_ERROR__MAX_AGENTS_REACHED = 0x1794; // 6036
96
84
  /** InsufficientPermissions: Agent lacks permission for this action type */
97
- export const SIGIL_ERROR__INSUFFICIENT_PERMISSIONS = 0x179b; // 6043
85
+ export const SIGIL_ERROR__INSUFFICIENT_PERMISSIONS = 0x1795; // 6037
98
86
  /** InvalidPermissions: Permission bitmask contains invalid bits */
99
- export const SIGIL_ERROR__INVALID_PERMISSIONS = 0x179c; // 6044
87
+ export const SIGIL_ERROR__INVALID_PERMISSIONS = 0x1796; // 6038
100
88
  /** EscrowNotActive: Escrow is not in Active status */
101
- export const SIGIL_ERROR__ESCROW_NOT_ACTIVE = 0x179d; // 6045
89
+ export const SIGIL_ERROR__ESCROW_NOT_ACTIVE = 0x1797; // 6039
102
90
  /** EscrowExpired: Escrow has expired */
103
- export const SIGIL_ERROR__ESCROW_EXPIRED = 0x179e; // 6046
91
+ export const SIGIL_ERROR__ESCROW_EXPIRED = 0x1798; // 6040
104
92
  /** EscrowNotExpired: Escrow has not expired yet */
105
- export const SIGIL_ERROR__ESCROW_NOT_EXPIRED = 0x179f; // 6047
93
+ export const SIGIL_ERROR__ESCROW_NOT_EXPIRED = 0x1799; // 6041
106
94
  /** InvalidEscrowVault: Invalid escrow vault */
107
- export const SIGIL_ERROR__INVALID_ESCROW_VAULT = 0x17a0; // 6048
95
+ export const SIGIL_ERROR__INVALID_ESCROW_VAULT = 0x179a; // 6042
108
96
  /** EscrowConditionsNotMet: Escrow conditions not met */
109
- export const SIGIL_ERROR__ESCROW_CONDITIONS_NOT_MET = 0x17a1; // 6049
97
+ export const SIGIL_ERROR__ESCROW_CONDITIONS_NOT_MET = 0x179b; // 6043
110
98
  /** EscrowDurationExceeded: Escrow duration exceeds maximum (30 days) */
111
- export const SIGIL_ERROR__ESCROW_DURATION_EXCEEDED = 0x17a2; // 6050
99
+ export const SIGIL_ERROR__ESCROW_DURATION_EXCEEDED = 0x179c; // 6044
112
100
  /** InvalidConstraintConfig: Invalid constraint configuration: bounds exceeded */
113
- export const SIGIL_ERROR__INVALID_CONSTRAINT_CONFIG = 0x17a3; // 6051
101
+ export const SIGIL_ERROR__INVALID_CONSTRAINT_CONFIG = 0x179d; // 6045
114
102
  /** ConstraintViolated: Instruction constraint violated */
115
- export const SIGIL_ERROR__CONSTRAINT_VIOLATED = 0x17a4; // 6052
103
+ export const SIGIL_ERROR__CONSTRAINT_VIOLATED = 0x179e; // 6046
116
104
  /** InvalidConstraintsPda: Invalid constraints PDA: wrong owner or vault */
117
- export const SIGIL_ERROR__INVALID_CONSTRAINTS_PDA = 0x17a5; // 6053
105
+ export const SIGIL_ERROR__INVALID_CONSTRAINTS_PDA = 0x179f; // 6047
118
106
  /** InvalidPendingConstraintsPda: Invalid pending constraints PDA: wrong owner or vault */
119
- export const SIGIL_ERROR__INVALID_PENDING_CONSTRAINTS_PDA = 0x17a6; // 6054
107
+ export const SIGIL_ERROR__INVALID_PENDING_CONSTRAINTS_PDA = 0x17a0; // 6048
120
108
  /** AgentSpendLimitExceeded: Agent rolling 24h spend exceeds per-agent spending limit */
121
- export const SIGIL_ERROR__AGENT_SPEND_LIMIT_EXCEEDED = 0x17a7; // 6055
109
+ export const SIGIL_ERROR__AGENT_SPEND_LIMIT_EXCEEDED = 0x17a1; // 6049
122
110
  /** OverlaySlotExhausted: Per-agent overlay is full; cannot register agent with spending limit */
123
- export const SIGIL_ERROR__OVERLAY_SLOT_EXHAUSTED = 0x17a8; // 6056
111
+ export const SIGIL_ERROR__OVERLAY_SLOT_EXHAUSTED = 0x17a2; // 6050
124
112
  /** AgentSlotNotFound: Agent has per-agent spending limit but no overlay tracking slot */
125
- export const SIGIL_ERROR__AGENT_SLOT_NOT_FOUND = 0x17a9; // 6057
113
+ export const SIGIL_ERROR__AGENT_SLOT_NOT_FOUND = 0x17a3; // 6051
126
114
  /** UnauthorizedTokenApproval: Unauthorized SPL Token Approve between validate and finalize */
127
- export const SIGIL_ERROR__UNAUTHORIZED_TOKEN_APPROVAL = 0x17aa; // 6058
115
+ export const SIGIL_ERROR__UNAUTHORIZED_TOKEN_APPROVAL = 0x17a4; // 6052
128
116
  /** InvalidSessionExpiry: Session expiry slots out of range (10-450) */
129
- export const SIGIL_ERROR__INVALID_SESSION_EXPIRY = 0x17ab; // 6059
117
+ export const SIGIL_ERROR__INVALID_SESSION_EXPIRY = 0x17a5; // 6053
130
118
  /** UnconstrainedProgramBlocked: Program has no constraint entry and strict mode is enabled */
131
- export const SIGIL_ERROR__UNCONSTRAINED_PROGRAM_BLOCKED = 0x17ac; // 6060
119
+ export const SIGIL_ERROR__UNCONSTRAINED_PROGRAM_BLOCKED = 0x17a6; // 6054
132
120
  /** ProtocolCapExceeded: Per-protocol rolling 24h spending cap would be exceeded */
133
- export const SIGIL_ERROR__PROTOCOL_CAP_EXCEEDED = 0x17ad; // 6061
121
+ export const SIGIL_ERROR__PROTOCOL_CAP_EXCEEDED = 0x17a7; // 6055
134
122
  /** ProtocolCapsMismatch: protocol_caps length must match protocols length when has_protocol_caps is true */
135
- export const SIGIL_ERROR__PROTOCOL_CAPS_MISMATCH = 0x17ae; // 6062
123
+ export const SIGIL_ERROR__PROTOCOL_CAPS_MISMATCH = 0x17a8; // 6056
136
124
  /** ActiveEscrowsExist: Cannot close vault with active escrow deposits */
137
- export const SIGIL_ERROR__ACTIVE_ESCROWS_EXIST = 0x17af; // 6063
125
+ export const SIGIL_ERROR__ACTIVE_ESCROWS_EXIST = 0x17a9; // 6057
138
126
  /** ConstraintsNotClosed: Instruction constraints must be closed before closing vault */
139
- export const SIGIL_ERROR__CONSTRAINTS_NOT_CLOSED = 0x17b0; // 6064
127
+ export const SIGIL_ERROR__CONSTRAINTS_NOT_CLOSED = 0x17aa; // 6058
140
128
  /** PendingPolicyExists: Pending policy update must be applied or cancelled before closing vault */
141
- export const SIGIL_ERROR__PENDING_POLICY_EXISTS = 0x17b1; // 6065
129
+ export const SIGIL_ERROR__PENDING_POLICY_EXISTS = 0x17ab; // 6059
142
130
  /** AgentPaused: Agent is paused and cannot execute actions */
143
- export const SIGIL_ERROR__AGENT_PAUSED = 0x17b2; // 6066
131
+ export const SIGIL_ERROR__AGENT_PAUSED = 0x17ac; // 6060
144
132
  /** AgentAlreadyPaused: Agent is already paused */
145
- export const SIGIL_ERROR__AGENT_ALREADY_PAUSED = 0x17b3; // 6067
133
+ export const SIGIL_ERROR__AGENT_ALREADY_PAUSED = 0x17ad; // 6061
146
134
  /** AgentNotPaused: Agent is not paused */
147
- export const SIGIL_ERROR__AGENT_NOT_PAUSED = 0x17b4; // 6068
135
+ export const SIGIL_ERROR__AGENT_NOT_PAUSED = 0x17ae; // 6062
148
136
  /** UnauthorizedPostFinalizeInstruction: Instructions after finalize_session must be ComputeBudget or SystemProgram only */
149
- export const SIGIL_ERROR__UNAUTHORIZED_POST_FINALIZE_INSTRUCTION = 0x17b5; // 6069
137
+ export const SIGIL_ERROR__UNAUTHORIZED_POST_FINALIZE_INSTRUCTION = 0x17af; // 6063
150
138
  /** UnexpectedBalanceDecrease: Vault balance decreased more than delegated amount — potential CPI attack */
151
- export const SIGIL_ERROR__UNEXPECTED_BALANCE_DECREASE = 0x17b6; // 6070
139
+ export const SIGIL_ERROR__UNEXPECTED_BALANCE_DECREASE = 0x17b0; // 6064
152
140
  /** TimelockTooShort: Timelock duration below minimum (1800 seconds / 30 minutes) */
153
- export const SIGIL_ERROR__TIMELOCK_TOO_SHORT = 0x17b7; // 6071
141
+ export const SIGIL_ERROR__TIMELOCK_TOO_SHORT = 0x17b1; // 6065
154
142
  /** PolicyVersionMismatch: Policy version mismatch — policy changed since agent's last RPC read */
155
- export const SIGIL_ERROR__POLICY_VERSION_MISMATCH = 0x17b8; // 6072
156
- /** PendingAgentPermsExists: A pending agent permissions update already exists for this agent */
157
- export const SIGIL_ERROR__PENDING_AGENT_PERMS_EXISTS = 0x17b9; // 6073
158
- /** PendingCloseConstraintsExists: A pending close constraints operation already exists for this vault */
159
- export const SIGIL_ERROR__PENDING_CLOSE_CONSTRAINTS_EXISTS = 0x17ba; // 6074
143
+ export const SIGIL_ERROR__POLICY_VERSION_MISMATCH = 0x17b2; // 6066
160
144
  /** ActiveSessionsExist: Cannot close vault with active sessions (finalize pending sessions first) */
161
- export const SIGIL_ERROR__ACTIVE_SESSIONS_EXIST = 0x17bb; // 6075
145
+ export const SIGIL_ERROR__ACTIVE_SESSIONS_EXIST = 0x17b3; // 6067
162
146
  /** PostAssertionFailed: Post-execution assertion failed: account state did not satisfy constraint */
163
- export const SIGIL_ERROR__POST_ASSERTION_FAILED = 0x17bc; // 6076
147
+ export const SIGIL_ERROR__POST_ASSERTION_FAILED = 0x17b4; // 6068
164
148
  /** InvalidPostAssertionIndex: Post-assertion constraint references invalid instruction index */
165
- export const SIGIL_ERROR__INVALID_POST_ASSERTION_INDEX = 0x17bd; // 6077
149
+ export const SIGIL_ERROR__INVALID_POST_ASSERTION_INDEX = 0x17b5; // 6069
166
150
  /** UnauthorizedPreValidateInstruction: Non-infrastructure instruction detected before validate_and_authorize */
167
- export const SIGIL_ERROR__UNAUTHORIZED_PRE_VALIDATE_INSTRUCTION = 0x17be; // 6078
151
+ export const SIGIL_ERROR__UNAUTHORIZED_PRE_VALIDATE_INSTRUCTION = 0x17b6; // 6070
168
152
  /** SnapshotNotCaptured: Delta assertion snapshot was not captured in validate_and_authorize */
169
- export const SIGIL_ERROR__SNAPSHOT_NOT_CAPTURED = 0x17bf; // 6079
170
- /** ConstraintIndexOutOfBounds: Constraint entry index out of bounds for zero-copy array */
171
- export const SIGIL_ERROR__CONSTRAINT_INDEX_OUT_OF_BOUNDS = 0x17c0; // 6080
153
+ export const SIGIL_ERROR__SNAPSHOT_NOT_CAPTURED = 0x17b7; // 6071
172
154
  /** InvalidConstraintOperator: Constraint operator value is not a valid ConstraintOperator discriminant */
173
- export const SIGIL_ERROR__INVALID_CONSTRAINT_OPERATOR = 0x17c1; // 6081
155
+ export const SIGIL_ERROR__INVALID_CONSTRAINT_OPERATOR = 0x17b8; // 6072
174
156
  /** ConstraintsVaultMismatch: Zero-copy constraints account has wrong vault */
175
- export const SIGIL_ERROR__CONSTRAINTS_VAULT_MISMATCH = 0x17c2; // 6082
176
- /** ConstraintEntryCountExceeded: Cannot pack entries: entry count exceeds MAX_CONSTRAINT_ENTRIES */
177
- export const SIGIL_ERROR__CONSTRAINT_ENTRY_COUNT_EXCEEDED = 0x17c3; // 6083
157
+ export const SIGIL_ERROR__CONSTRAINTS_VAULT_MISMATCH = 0x17b9; // 6073
178
158
  /** BlockedSplOpcode: SPL opcode is blocked at runtime and cannot be used in constraints */
179
- export const SIGIL_ERROR__BLOCKED_SPL_OPCODE = 0x17c4; // 6084
159
+ export const SIGIL_ERROR__BLOCKED_SPL_OPCODE = 0x17ba; // 6074
160
+ /** QueuedUpdateExpired: Queued update is too old (>MAX_APPLY_AGE_SLOTS) — re-queue to apply. Defends against durable-nonce pre-signing. */
161
+ export const SIGIL_ERROR__QUEUED_UPDATE_EXPIRED = 0x17bb; // 6075
162
+ /** AccountWritabilityMismatch: Account writability flag does not match constraint requirement */
163
+ export const SIGIL_ERROR__ACCOUNT_WRITABILITY_MISMATCH = 0x17bc; // 6076
164
+ /** SysvarScanBoundExceeded: Sysvar instruction scan exceeded the per-tx safety bound */
165
+ export const SIGIL_ERROR__SYSVAR_SCAN_BOUND_EXCEEDED = 0x17bd; // 6077
166
+ /** AsyncFulfillmentNotPermitted: Async-fulfillment program is not permitted in V1 (Jupiter Perps, Drift, Drift JIT). Spending cannot be measured because keeper submits the actual transfer in a separate transaction after finalize_session returns. */
167
+ export const SIGIL_ERROR__ASYNC_FULFILLMENT_NOT_PERMITTED = 0x17be; // 6078
168
+ /** ConstraintsAlreadyPopulated: Cannot clean an active constraints PDA; use queue+apply_close_constraints */
169
+ export const SIGIL_ERROR__CONSTRAINTS_ALREADY_POPULATED = 0x17bf; // 6079
170
+ /** OrphanPdaWrongOwner: PDA at constraints seeds is not program-owned */
171
+ export const SIGIL_ERROR__ORPHAN_PDA_WRONG_OWNER = 0x17c0; // 6080
172
+ /** OrphanPdaPopulated: PDA is fully populated; not an orphan */
173
+ export const SIGIL_ERROR__ORPHAN_PDA_POPULATED = 0x17c1; // 6081
174
+ /** ConfidentialTransferBlocked: Token-2022 ConfidentialTransfer not permitted between validate and finalize */
175
+ export const SIGIL_ERROR__CONFIDENTIAL_TRANSFER_BLOCKED = 0x17c2; // 6082
176
+ /** PermanentDelegateBlocked: Token-2022 PermanentDelegate not permitted between validate and finalize */
177
+ export const SIGIL_ERROR__PERMANENT_DELEGATE_BLOCKED = 0x17c3; // 6083
178
+ /** TransferHookBlocked: Token-2022 TransferHook not permitted between validate and finalize */
179
+ export const SIGIL_ERROR__TRANSFER_HOOK_BLOCKED = 0x17c4; // 6084
180
+ /** LamportDrainBlocked: Token-2022 destructive-balance ix (opcodes 38/45/46) not permitted between validate and finalize */
181
+ export const SIGIL_ERROR__LAMPORT_DRAIN_BLOCKED = 0x17c5; // 6085
182
+ /** BatchInstructionBlocked: Token-2022 Batch instruction (opcode 255) is blocked outright — wraps inner instructions and bypasses byte-0 blocklist */
183
+ export const SIGIL_ERROR__BATCH_INSTRUCTION_BLOCKED = 0x17c6; // 6086
184
+ /** InvalidDestinationMode: Invalid destination mode (must be 0 = Restricted or 1 = OpenWithCap) */
185
+ export const SIGIL_ERROR__INVALID_DESTINATION_MODE = 0x17c7; // 6087
180
186
  let sigilErrorMessages;
181
187
  if (process.env.NODE_ENV !== "production") {
182
188
  sigilErrorMessages = {
189
+ [SIGIL_ERROR__ACCOUNT_WRITABILITY_MISMATCH]: `Account writability flag does not match constraint requirement`,
183
190
  [SIGIL_ERROR__ACTIVE_ESCROWS_EXIST]: `Cannot close vault with active escrow deposits`,
184
191
  [SIGIL_ERROR__ACTIVE_SESSIONS_EXIST]: `Cannot close vault with active sessions (finalize pending sessions first)`,
185
192
  [SIGIL_ERROR__AGENT_ALREADY_PAUSED]: `Agent is already paused`,
@@ -189,9 +196,11 @@ if (process.env.NODE_ENV !== "production") {
189
196
  [SIGIL_ERROR__AGENT_PAUSED]: `Agent is paused and cannot execute actions`,
190
197
  [SIGIL_ERROR__AGENT_SLOT_NOT_FOUND]: `Agent has per-agent spending limit but no overlay tracking slot`,
191
198
  [SIGIL_ERROR__AGENT_SPEND_LIMIT_EXCEEDED]: `Agent rolling 24h spend exceeds per-agent spending limit`,
199
+ [SIGIL_ERROR__ASYNC_FULFILLMENT_NOT_PERMITTED]: `Async-fulfillment program is not permitted in V1 (Jupiter Perps, Drift, Drift JIT). Spending cannot be measured because keeper submits the actual transfer in a separate transaction after finalize_session returns.`,
200
+ [SIGIL_ERROR__BATCH_INSTRUCTION_BLOCKED]: `Token-2022 Batch instruction (opcode 255) is blocked outright — wraps inner instructions and bypasses byte-0 blocklist`,
192
201
  [SIGIL_ERROR__BLOCKED_SPL_OPCODE]: `SPL opcode is blocked at runtime and cannot be used in constraints`,
193
- [SIGIL_ERROR__CONSTRAINT_ENTRY_COUNT_EXCEEDED]: `Cannot pack entries: entry count exceeds MAX_CONSTRAINT_ENTRIES`,
194
- [SIGIL_ERROR__CONSTRAINT_INDEX_OUT_OF_BOUNDS]: `Constraint entry index out of bounds for zero-copy array`,
202
+ [SIGIL_ERROR__CONFIDENTIAL_TRANSFER_BLOCKED]: `Token-2022 ConfidentialTransfer not permitted between validate and finalize`,
203
+ [SIGIL_ERROR__CONSTRAINTS_ALREADY_POPULATED]: `Cannot clean an active constraints PDA; use queue+apply_close_constraints`,
195
204
  [SIGIL_ERROR__CONSTRAINTS_NOT_CLOSED]: `Instruction constraints must be closed before closing vault`,
196
205
  [SIGIL_ERROR__CONSTRAINTS_VAULT_MISMATCH]: `Zero-copy constraints account has wrong vault`,
197
206
  [SIGIL_ERROR__CONSTRAINT_VIOLATED]: `Instruction constraint violated`,
@@ -209,10 +218,10 @@ if (process.env.NODE_ENV !== "production") {
209
218
  [SIGIL_ERROR__INVALID_CONSTRAINT_CONFIG]: `Invalid constraint configuration: bounds exceeded`,
210
219
  [SIGIL_ERROR__INVALID_CONSTRAINT_OPERATOR]: `Constraint operator value is not a valid ConstraintOperator discriminant`,
211
220
  [SIGIL_ERROR__INVALID_CONSTRAINTS_PDA]: `Invalid constraints PDA: wrong owner or vault`,
221
+ [SIGIL_ERROR__INVALID_DESTINATION_MODE]: `Invalid destination mode (must be 0 = Restricted or 1 = OpenWithCap)`,
212
222
  [SIGIL_ERROR__INVALID_ESCROW_VAULT]: `Invalid escrow vault`,
213
223
  [SIGIL_ERROR__INVALID_FEE_DESTINATION]: `Fee destination account invalid`,
214
224
  [SIGIL_ERROR__INVALID_JUPITER_INSTRUCTION]: `Cannot parse Jupiter swap instruction data`,
215
- [SIGIL_ERROR__INVALID_NON_SPENDING_AMOUNT]: `Non-spending action must have amount = 0`,
216
225
  [SIGIL_ERROR__INVALID_PENDING_CONSTRAINTS_PDA]: `Invalid pending constraints PDA: wrong owner or vault`,
217
226
  [SIGIL_ERROR__INVALID_PERMISSIONS]: `Permission bitmask contains invalid bits`,
218
227
  [SIGIL_ERROR__INVALID_POST_ASSERTION_INDEX]: `Post-assertion constraint references invalid instruction index`,
@@ -221,38 +230,38 @@ if (process.env.NODE_ENV !== "production") {
221
230
  [SIGIL_ERROR__INVALID_SESSION]: `Invalid session: does not belong to this vault`,
222
231
  [SIGIL_ERROR__INVALID_SESSION_EXPIRY]: `Session expiry slots out of range (10-450)`,
223
232
  [SIGIL_ERROR__INVALID_TOKEN_ACCOUNT]: `Token account does not belong to vault or has wrong mint`,
224
- [SIGIL_ERROR__LEVERAGE_TOO_HIGH]: `Leverage exceeds maximum allowed`,
233
+ [SIGIL_ERROR__LAMPORT_DRAIN_BLOCKED]: `Token-2022 destructive-balance ix (opcodes 38/45/46) not permitted between validate and finalize`,
225
234
  [SIGIL_ERROR__MAX_AGENTS_REACHED]: `Maximum agents per vault reached (limit: 10)`,
226
235
  [SIGIL_ERROR__MISSING_FINALIZE_INSTRUCTION]: `Transaction must include finalize_session after validate`,
227
236
  [SIGIL_ERROR__NO_AGENT_REGISTERED]: `No agent registered for this vault`,
228
237
  [SIGIL_ERROR__NON_TRACKED_SWAP_MUST_RETURN_STABLECOIN]: `Non-stablecoin swap must return stablecoin (balance did not increase)`,
229
- [SIGIL_ERROR__NO_POSITIONS_TO_CLOSE]: `No open positions to close or cancel`,
230
238
  [SIGIL_ERROR__NO_TIMELOCK_CONFIGURED]: `No timelock configured on this vault`,
231
- [SIGIL_ERROR__OPEN_POSITIONS_EXIST]: `Vault has open positions, cannot close`,
239
+ [SIGIL_ERROR__ORPHAN_PDA_POPULATED]: `PDA is fully populated; not an orphan`,
240
+ [SIGIL_ERROR__ORPHAN_PDA_WRONG_OWNER]: `PDA at constraints seeds is not program-owned`,
232
241
  [SIGIL_ERROR__OVERFLOW]: `Arithmetic overflow`,
233
242
  [SIGIL_ERROR__OVERLAY_SLOT_EXHAUSTED]: `Per-agent overlay is full; cannot register agent with spending limit`,
234
- [SIGIL_ERROR__PENDING_AGENT_PERMS_EXISTS]: `A pending agent permissions update already exists for this agent`,
235
- [SIGIL_ERROR__PENDING_CLOSE_CONSTRAINTS_EXISTS]: `A pending close constraints operation already exists for this vault`,
236
243
  [SIGIL_ERROR__PENDING_POLICY_EXISTS]: `Pending policy update must be applied or cancelled before closing vault`,
244
+ [SIGIL_ERROR__PERMANENT_DELEGATE_BLOCKED]: `Token-2022 PermanentDelegate not permitted between validate and finalize`,
237
245
  [SIGIL_ERROR__POLICY_VERSION_MISMATCH]: `Policy version mismatch — policy changed since agent's last RPC read`,
238
- [SIGIL_ERROR__POSITION_OPENING_DISALLOWED]: `Cannot open new positions (policy disallows)`,
239
246
  [SIGIL_ERROR__POST_ASSERTION_FAILED]: `Post-execution assertion failed: account state did not satisfy constraint`,
240
247
  [SIGIL_ERROR__PROTOCOL_CAP_EXCEEDED]: `Per-protocol rolling 24h spending cap would be exceeded`,
241
248
  [SIGIL_ERROR__PROTOCOL_CAPS_MISMATCH]: `protocol_caps length must match protocols length when has_protocol_caps is true`,
242
249
  [SIGIL_ERROR__PROTOCOL_MISMATCH]: `DeFi instruction program does not match declared target_protocol`,
243
250
  [SIGIL_ERROR__PROTOCOL_NOT_ALLOWED]: `Protocol not allowed by policy`,
251
+ [SIGIL_ERROR__QUEUED_UPDATE_EXPIRED]: `Queued update is too old (>MAX_APPLY_AGE_SLOTS) — re-queue to apply. Defends against durable-nonce pre-signing.`,
244
252
  [SIGIL_ERROR__SESSION_NOT_AUTHORIZED]: `Session not authorized`,
245
253
  [SIGIL_ERROR__SLIPPAGE_BPS_TOO_HIGH]: `Slippage BPS exceeds maximum (5000 = 50%)`,
246
254
  [SIGIL_ERROR__SNAPSHOT_NOT_CAPTURED]: `Delta assertion snapshot was not captured in validate_and_authorize`,
247
255
  [SIGIL_ERROR__SPENDING_CAP_EXCEEDED]: `Rolling 24h spending cap would be exceeded`,
248
256
  [SIGIL_ERROR__SWAP_SLIPPAGE_EXCEEDED]: `Swap slippage exceeds policy max_slippage_bps or quoted output is zero`,
257
+ [SIGIL_ERROR__SYSVAR_SCAN_BOUND_EXCEEDED]: `Sysvar instruction scan exceeded the per-tx safety bound`,
249
258
  [SIGIL_ERROR__TIMELOCK_NOT_EXPIRED]: `Timelock period has not expired yet`,
250
259
  [SIGIL_ERROR__TIMELOCK_TOO_SHORT]: `Timelock duration below minimum (1800 seconds / 30 minutes)`,
251
260
  [SIGIL_ERROR__TOO_MANY_ALLOWED_PROTOCOLS]: `Policy configuration invalid: too many allowed protocols`,
252
261
  [SIGIL_ERROR__TOO_MANY_DE_FI_INSTRUCTIONS]: `Spending allows at most one DeFi instruction`,
253
262
  [SIGIL_ERROR__TOO_MANY_DESTINATIONS]: `Too many destinations (max 10)`,
254
- [SIGIL_ERROR__TOO_MANY_POSITIONS]: `Maximum concurrent open positions reached`,
255
263
  [SIGIL_ERROR__TRANSACTION_TOO_LARGE]: `Transaction exceeds maximum single transaction size`,
264
+ [SIGIL_ERROR__TRANSFER_HOOK_BLOCKED]: `Token-2022 TransferHook not permitted between validate and finalize`,
256
265
  [SIGIL_ERROR__UNAUTHORIZED_AGENT]: `Unauthorized: signer is not the registered agent`,
257
266
  [SIGIL_ERROR__UNAUTHORIZED_OWNER]: `Unauthorized: signer is not the vault owner`,
258
267
  [SIGIL_ERROR__UNAUTHORIZED_POST_FINALIZE_INSTRUCTION]: `Instructions after finalize_session must be ComputeBudget or SystemProgram only`,
@@ -1 +1 @@
1
- {"version":3,"file":"sigil.js","sourceRoot":"","sources":["../../../src/generated/errors/sigil.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,cAAc,GAIf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAE7D,0CAA0C;AAC1C,MAAM,CAAC,MAAM,6BAA6B,GAAG,MAAM,CAAC,CAAC,OAAO;AAC5D,0EAA0E;AAC1E,MAAM,CAAC,MAAM,+BAA+B,GAAG,MAAM,CAAC,CAAC,OAAO;AAC9D,qEAAqE;AACrE,MAAM,CAAC,MAAM,+BAA+B,GAAG,MAAM,CAAC,CAA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AAE,wEAAwE;QACpH,CAAC,0CAA0C,CAAC,EAAE,4DAA4D;QAC1G,CAAC,wCAAwC,CAAC,EAAE,2EAA2E;QACvH,CAAC,8BAA8B,CAAC,EAAE,0DAA0D;QAC5F,CAAC,iCAAiC,CAAC,EAAE,yBAAyB;QAC9D,CAAC,6BAA6B,CAAC,EAAE,qBAAqB;QACtD,CAAC,6BAA6B,CAAC,EAAE,wDAAwD;KAC1F,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAgB;IACnD,IAAI,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,EAAE,CAAC;QAC1C,OAAQ,kBAAiD,CAAC,IAAI,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,oDAAoD,CAAC;AAC9D,CAAC;AAED,MAAM,UAAU,YAAY,CAC1B,KAAc,EACd,kBAEC,EACD,IAAwB;IAGxB,OAAO,cAAc,CACnB,KAAK,EACL,kBAAkB,EAClB,qBAAqB,EACrB,IAAI,CACL,CAAC;AACJ,CAAC"}
@@ -28,12 +28,12 @@ export const EVENT_DISCRIMINATOR_MAP = {
28
28
  "9dd1645f3b640344": "FundsDeposited",
29
29
  "3882e69a235c0b76": "FundsWithdrawn",
30
30
  "08aa63e81fd8391a": "InstructionConstraintsCreated",
31
+ "a1ea93831fa39119": "OrphanConstraintsPdaCleaned",
31
32
  "1b63c3c6ee3503b5": "PdaAllocated",
32
33
  "43975f4f0c0b33f2": "PdaExtended",
33
34
  "68590564b4ca3449": "PolicyChangeApplied",
34
35
  "c89ee2ff19d31e97": "PolicyChangeCancelled",
35
36
  "49e7b6888d78204f": "PolicyChangeQueued",
36
- "532190c9a80d005f": "PositionsSynced",
37
37
  "a66a5c0ac33cf77d": "PostAssertionChecked",
38
38
  "0714e066503c4e0b": "PostAssertionsClosed",
39
39
  "3159986e3a14441f": "PostAssertionsCreated",
@@ -1 +1 @@
1
- {"version":3,"file":"event-discriminators.js","sourceRoot":"","sources":["../../src/generated/event-disc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AC"}
1
+ {"version":3,"file":"event-discriminators.js","sourceRoot":"","sources":["../../src/generated/event-discriminators.ts"],"names":[],"mappings":"AAAA,uDAAuD;AACvD,yDAAyD;AACzD,EAAE;AACF,4CAA4C;AAC5C,oDAAoD;AAEpD,MAAM,CAAC,MAAM,uBAAuB,GAA2B;IAC7D,kBAAkB,EAAE,kBAAkB;IACtC,kBAAkB,EAAE,kBAAkB;IACtC,kBAAkB,EAAE,+BAA+B;IACnD,kBAAkB,EAAE,iCAAiC;IACrD,kBAAkB,EAAE,8BAA8B;IAClD,kBAAkB,EAAE,iBAAiB;IACrC,kBAAkB,EAAE,cAAc;IAClC,kBAAkB,EAAE,wBAAwB;IAC5C,kBAAkB,EAAE,uBAAuB;IAC3C,kBAAkB,EAAE,oBAAoB;IACxC,kBAAkB,EAAE,yBAAyB;IAC7C,kBAAkB,EAAE,2BAA2B;IAC/C,kBAAkB,EAAE,wBAAwB;IAC5C,kBAAkB,EAAE,0BAA0B;IAC9C,kBAAkB,EAAE,4BAA4B;IAChD,kBAAkB,EAAE,yBAAyB;IAC7C,kBAAkB,EAAE,mBAAmB;IACvC,kBAAkB,EAAE,eAAe;IACnC,kBAAkB,EAAE,gBAAgB;IACpC,kBAAkB,EAAE,eAAe;IACnC,kBAAkB,EAAE,eAAe;IACnC,kBAAkB,EAAE,gBAAgB;IACpC,kBAAkB,EAAE,gBAAgB;IACpC,kBAAkB,EAAE,+BAA+B;IACnD,kBAAkB,EAAE,6BAA6B;IACjD,kBAAkB,EAAE,cAAc;IAClC,kBAAkB,EAAE,aAAa;IACjC,kBAAkB,EAAE,qBAAqB;IACzC,kBAAkB,EAAE,uBAAuB;IAC3C,kBAAkB,EAAE,oBAAoB;IACxC,kBAAkB,EAAE,sBAAsB;IAC1C,kBAAkB,EAAE,sBAAsB;IAC1C,kBAAkB,EAAE,uBAAuB;IAC3C,kBAAkB,EAAE,kBAAkB;IACtC,kBAAkB,EAAE,aAAa;IACjC,kBAAkB,EAAE,cAAc;IAClC,kBAAkB,EAAE,aAAa;IACjC,kBAAkB,EAAE,kBAAkB;CACvC,CAAC"}
@@ -0,0 +1,67 @@
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 { SIGIL_PROGRAM_ADDRESS } from "../programs/index.js";
10
+ export declare const CLEANUP_ORPHAN_CONSTRAINTS_PDA_DISCRIMINATOR: Uint8Array<ArrayBuffer>;
11
+ export declare function getCleanupOrphanConstraintsPdaDiscriminatorBytes(): ReadonlyUint8Array<ArrayBuffer>;
12
+ export type CleanupOrphanConstraintsPdaInstruction<TProgram extends string = typeof SIGIL_PROGRAM_ADDRESS, TAccountOwner extends string | AccountMeta<string> = string, TAccountVault extends string | AccountMeta<string> = string, TAccountPolicy extends string | AccountMeta<string> = string, TAccountOrphanPda extends string | AccountMeta<string> = string, TRemainingAccounts extends readonly AccountMeta<string>[] = []> = Instruction<TProgram> & InstructionWithData<ReadonlyUint8Array> & InstructionWithAccounts<[
13
+ TAccountOwner extends string ? WritableSignerAccount<TAccountOwner> & AccountSignerMeta<TAccountOwner> : TAccountOwner,
14
+ TAccountVault extends string ? ReadonlyAccount<TAccountVault> : TAccountVault,
15
+ TAccountPolicy extends string ? ReadonlyAccount<TAccountPolicy> : TAccountPolicy,
16
+ TAccountOrphanPda extends string ? WritableAccount<TAccountOrphanPda> : TAccountOrphanPda,
17
+ ...TRemainingAccounts
18
+ ]>;
19
+ export type CleanupOrphanConstraintsPdaInstructionData = {
20
+ discriminator: ReadonlyUint8Array;
21
+ };
22
+ export type CleanupOrphanConstraintsPdaInstructionDataArgs = {};
23
+ export declare function getCleanupOrphanConstraintsPdaInstructionDataEncoder(): FixedSizeEncoder<CleanupOrphanConstraintsPdaInstructionDataArgs>;
24
+ export declare function getCleanupOrphanConstraintsPdaInstructionDataDecoder(): FixedSizeDecoder<CleanupOrphanConstraintsPdaInstructionData>;
25
+ export declare function getCleanupOrphanConstraintsPdaInstructionDataCodec(): FixedSizeCodec<CleanupOrphanConstraintsPdaInstructionDataArgs, CleanupOrphanConstraintsPdaInstructionData>;
26
+ export type CleanupOrphanConstraintsPdaAsyncInput<TAccountOwner extends string = string, TAccountVault extends string = string, TAccountPolicy extends string = string, TAccountOrphanPda extends string = string> = {
27
+ owner: TransactionSigner<TAccountOwner>;
28
+ vault: Address<TAccountVault>;
29
+ policy?: Address<TAccountPolicy>;
30
+ /**
31
+ * by this program, and discriminator zero (orphan from incomplete
32
+ * allocate+extend+populate chain).
33
+ */
34
+ orphanPda?: Address<TAccountOrphanPda>;
35
+ };
36
+ export declare function getCleanupOrphanConstraintsPdaInstructionAsync<TAccountOwner extends string, TAccountVault extends string, TAccountPolicy extends string, TAccountOrphanPda extends string, TProgramAddress extends Address = typeof SIGIL_PROGRAM_ADDRESS>(input: CleanupOrphanConstraintsPdaAsyncInput<TAccountOwner, TAccountVault, TAccountPolicy, TAccountOrphanPda>, config?: {
37
+ programAddress?: TProgramAddress;
38
+ }): Promise<CleanupOrphanConstraintsPdaInstruction<TProgramAddress, TAccountOwner, TAccountVault, TAccountPolicy, TAccountOrphanPda>>;
39
+ export type CleanupOrphanConstraintsPdaInput<TAccountOwner extends string = string, TAccountVault extends string = string, TAccountPolicy extends string = string, TAccountOrphanPda extends string = string> = {
40
+ owner: TransactionSigner<TAccountOwner>;
41
+ vault: Address<TAccountVault>;
42
+ policy: Address<TAccountPolicy>;
43
+ /**
44
+ * by this program, and discriminator zero (orphan from incomplete
45
+ * allocate+extend+populate chain).
46
+ */
47
+ orphanPda: Address<TAccountOrphanPda>;
48
+ };
49
+ export declare function getCleanupOrphanConstraintsPdaInstruction<TAccountOwner extends string, TAccountVault extends string, TAccountPolicy extends string, TAccountOrphanPda extends string, TProgramAddress extends Address = typeof SIGIL_PROGRAM_ADDRESS>(input: CleanupOrphanConstraintsPdaInput<TAccountOwner, TAccountVault, TAccountPolicy, TAccountOrphanPda>, config?: {
50
+ programAddress?: TProgramAddress;
51
+ }): CleanupOrphanConstraintsPdaInstruction<TProgramAddress, TAccountOwner, TAccountVault, TAccountPolicy, TAccountOrphanPda>;
52
+ export type ParsedCleanupOrphanConstraintsPdaInstruction<TProgram extends string = typeof SIGIL_PROGRAM_ADDRESS, TAccountMetas extends readonly AccountMeta[] = readonly AccountMeta[]> = {
53
+ programAddress: Address<TProgram>;
54
+ accounts: {
55
+ owner: TAccountMetas[0];
56
+ vault: TAccountMetas[1];
57
+ policy: TAccountMetas[2];
58
+ /**
59
+ * by this program, and discriminator zero (orphan from incomplete
60
+ * allocate+extend+populate chain).
61
+ */
62
+ orphanPda: TAccountMetas[3];
63
+ };
64
+ data: CleanupOrphanConstraintsPdaInstructionData;
65
+ };
66
+ export declare function parseCleanupOrphanConstraintsPdaInstruction<TProgram extends string, TAccountMetas extends readonly AccountMeta[]>(instruction: Instruction<TProgram> & InstructionWithAccounts<TAccountMetas> & InstructionWithData<ReadonlyUint8Array>): ParsedCleanupOrphanConstraintsPdaInstruction<TProgram, TAccountMetas>;
67
+ //# sourceMappingURL=cleanupOrphanConstraintsPda.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cleanupOrphanConstraintsPda.d.ts","sourceRoot":"","sources":["../../../src/generated/instructions/cleanupOrphanConstraintsPda.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAaL,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,OAAO,EACZ,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,uBAAuB,E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aAAa,CAAC,GACtC,mBAAmB,CAAC,kBAAkB,CAAC,GACxC,4CAA4C,CAAC,QAAQ,EAAE,aAAa,CAAC,CA4BvE"}
@@ -0,0 +1,120 @@
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, getAddressEncoder, getBytesDecoder, getBytesEncoder, getProgramDerivedAddress, getStructDecoder, getStructEncoder, SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, SolanaError, transformEncoder, } from "@solana/kit";
9
+ import { getAccountMetaFactory, getAddressFromResolvedInstructionAccount, } from "@solana/program-client-core";
10
+ import { SIGIL_PROGRAM_ADDRESS } from "../programs/index.js";
11
+ export const CLEANUP_ORPHAN_CONSTRAINTS_PDA_DISCRIMINATOR = new Uint8Array([
12
+ 69, 181, 93, 235, 116, 229, 116, 4,
13
+ ]);
14
+ export function getCleanupOrphanConstraintsPdaDiscriminatorBytes() {
15
+ return fixEncoderSize(getBytesEncoder(), 8).encode(CLEANUP_ORPHAN_CONSTRAINTS_PDA_DISCRIMINATOR);
16
+ }
17
+ export function getCleanupOrphanConstraintsPdaInstructionDataEncoder() {
18
+ return transformEncoder(getStructEncoder([["discriminator", fixEncoderSize(getBytesEncoder(), 8)]]), (value) => ({
19
+ ...value,
20
+ discriminator: CLEANUP_ORPHAN_CONSTRAINTS_PDA_DISCRIMINATOR,
21
+ }));
22
+ }
23
+ export function getCleanupOrphanConstraintsPdaInstructionDataDecoder() {
24
+ return getStructDecoder([
25
+ ["discriminator", fixDecoderSize(getBytesDecoder(), 8)],
26
+ ]);
27
+ }
28
+ export function getCleanupOrphanConstraintsPdaInstructionDataCodec() {
29
+ return combineCodec(getCleanupOrphanConstraintsPdaInstructionDataEncoder(), getCleanupOrphanConstraintsPdaInstructionDataDecoder());
30
+ }
31
+ export async function getCleanupOrphanConstraintsPdaInstructionAsync(input, config) {
32
+ // Program address.
33
+ const programAddress = config?.programAddress ?? SIGIL_PROGRAM_ADDRESS;
34
+ // Original accounts.
35
+ const originalAccounts = {
36
+ owner: { value: input.owner ?? null, isWritable: true },
37
+ vault: { value: input.vault ?? null, isWritable: false },
38
+ policy: { value: input.policy ?? null, isWritable: false },
39
+ orphanPda: { value: input.orphanPda ?? null, isWritable: true },
40
+ };
41
+ const accounts = originalAccounts;
42
+ // Resolve default values.
43
+ if (!accounts.policy.value) {
44
+ accounts.policy.value = await getProgramDerivedAddress({
45
+ programAddress,
46
+ seeds: [
47
+ getBytesEncoder().encode(new Uint8Array([112, 111, 108, 105, 99, 121])),
48
+ getAddressEncoder().encode(getAddressFromResolvedInstructionAccount("vault", accounts.vault.value)),
49
+ ],
50
+ });
51
+ }
52
+ if (!accounts.orphanPda.value) {
53
+ accounts.orphanPda.value = await getProgramDerivedAddress({
54
+ programAddress,
55
+ seeds: [
56
+ getBytesEncoder().encode(new Uint8Array([99, 111, 110, 115, 116, 114, 97, 105, 110, 116, 115])),
57
+ getAddressEncoder().encode(getAddressFromResolvedInstructionAccount("vault", accounts.vault.value)),
58
+ ],
59
+ });
60
+ }
61
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
62
+ return Object.freeze({
63
+ accounts: [
64
+ getAccountMeta("owner", accounts.owner),
65
+ getAccountMeta("vault", accounts.vault),
66
+ getAccountMeta("policy", accounts.policy),
67
+ getAccountMeta("orphanPda", accounts.orphanPda),
68
+ ],
69
+ data: getCleanupOrphanConstraintsPdaInstructionDataEncoder().encode({}),
70
+ programAddress,
71
+ });
72
+ }
73
+ export function getCleanupOrphanConstraintsPdaInstruction(input, config) {
74
+ // Program address.
75
+ const programAddress = config?.programAddress ?? SIGIL_PROGRAM_ADDRESS;
76
+ // Original accounts.
77
+ const originalAccounts = {
78
+ owner: { value: input.owner ?? null, isWritable: true },
79
+ vault: { value: input.vault ?? null, isWritable: false },
80
+ policy: { value: input.policy ?? null, isWritable: false },
81
+ orphanPda: { value: input.orphanPda ?? null, isWritable: true },
82
+ };
83
+ const accounts = originalAccounts;
84
+ const getAccountMeta = getAccountMetaFactory(programAddress, "programId");
85
+ return Object.freeze({
86
+ accounts: [
87
+ getAccountMeta("owner", accounts.owner),
88
+ getAccountMeta("vault", accounts.vault),
89
+ getAccountMeta("policy", accounts.policy),
90
+ getAccountMeta("orphanPda", accounts.orphanPda),
91
+ ],
92
+ data: getCleanupOrphanConstraintsPdaInstructionDataEncoder().encode({}),
93
+ programAddress,
94
+ });
95
+ }
96
+ export function parseCleanupOrphanConstraintsPdaInstruction(instruction) {
97
+ if (instruction.accounts.length < 4) {
98
+ throw new SolanaError(SOLANA_ERROR__PROGRAM_CLIENTS__INSUFFICIENT_ACCOUNT_METAS, {
99
+ actualAccountMetas: instruction.accounts.length,
100
+ expectedAccountMetas: 4,
101
+ });
102
+ }
103
+ let accountIndex = 0;
104
+ const getNextAccount = () => {
105
+ const accountMeta = instruction.accounts[accountIndex];
106
+ accountIndex += 1;
107
+ return accountMeta;
108
+ };
109
+ return {
110
+ programAddress: instruction.programAddress,
111
+ accounts: {
112
+ owner: getNextAccount(),
113
+ vault: getNextAccount(),
114
+ policy: getNextAccount(),
115
+ orphanPda: getNextAccount(),
116
+ },
117
+ data: getCleanupOrphanConstraintsPdaInstructionDataDecoder().decode(instruction.data),
118
+ };
119
+ }
120
+ //# sourceMappingURL=cleanupOrphanConstraintsPda.js.map