@usesigil/kit 0.15.0 → 0.17.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.
- package/README.md +56 -0
- package/dist/advanced-analytics.d.ts +3 -2
- package/dist/advanced-analytics.d.ts.map +1 -1
- package/dist/advanced-analytics.js +9 -42
- package/dist/advanced-analytics.js.map +1 -1
- package/dist/agent-bootstrap.d.ts +117 -0
- package/dist/agent-bootstrap.d.ts.map +1 -0
- package/dist/agent-bootstrap.js +211 -0
- package/dist/agent-bootstrap.js.map +1 -0
- package/dist/agent-errors.d.ts +20 -4
- package/dist/agent-errors.d.ts.map +1 -1
- package/dist/agent-errors.js +947 -377
- package/dist/agent-errors.js.map +1 -1
- package/dist/audit-log.d.ts +101 -0
- package/dist/audit-log.d.ts.map +1 -0
- package/dist/audit-log.js +145 -0
- package/dist/audit-log.js.map +1 -0
- package/dist/build-unsigned.d.ts +152 -0
- package/dist/build-unsigned.d.ts.map +1 -0
- package/dist/build-unsigned.js +152 -0
- package/dist/build-unsigned.js.map +1 -0
- package/dist/caip2-network.d.ts +171 -0
- package/dist/caip2-network.d.ts.map +1 -0
- package/dist/caip2-network.js +202 -0
- package/dist/caip2-network.js.map +1 -0
- package/dist/canonical-encode.d.ts +59 -0
- package/dist/canonical-encode.d.ts.map +1 -0
- package/dist/canonical-encode.js +141 -0
- package/dist/canonical-encode.js.map +1 -0
- package/dist/cosign-helper.d.ts +264 -0
- package/dist/cosign-helper.d.ts.map +1 -0
- package/dist/cosign-helper.js +147 -0
- package/dist/cosign-helper.js.map +1 -0
- package/dist/create-vault.d.ts +102 -1
- package/dist/create-vault.d.ts.map +1 -1
- package/dist/create-vault.js +108 -9
- package/dist/create-vault.js.map +1 -1
- package/dist/dashboard/close-vault.d.ts +110 -0
- package/dist/dashboard/close-vault.d.ts.map +1 -0
- package/dist/dashboard/close-vault.js +165 -0
- package/dist/dashboard/close-vault.js.map +1 -0
- package/dist/dashboard/errors.d.ts +37 -0
- package/dist/dashboard/errors.d.ts.map +1 -1
- package/dist/dashboard/errors.js +81 -1
- package/dist/dashboard/errors.js.map +1 -1
- package/dist/dashboard/from-json.d.ts.map +1 -1
- package/dist/dashboard/from-json.js +1 -2
- package/dist/dashboard/from-json.js.map +1 -1
- package/dist/dashboard/index.d.ts +204 -31
- package/dist/dashboard/index.d.ts.map +1 -1
- package/dist/dashboard/index.js +290 -49
- package/dist/dashboard/index.js.map +1 -1
- package/dist/dashboard/mutations.d.ts +160 -10
- package/dist/dashboard/mutations.d.ts.map +1 -1
- package/dist/dashboard/mutations.js +584 -66
- package/dist/dashboard/mutations.js.map +1 -1
- package/dist/dashboard/post-assertion-validation.d.ts +88 -0
- package/dist/dashboard/post-assertion-validation.d.ts.map +1 -0
- package/dist/dashboard/post-assertion-validation.js +312 -0
- package/dist/dashboard/post-assertion-validation.js.map +1 -0
- package/dist/dashboard/reads.d.ts +92 -1
- package/dist/dashboard/reads.d.ts.map +1 -1
- package/dist/dashboard/reads.js +244 -26
- package/dist/dashboard/reads.js.map +1 -1
- package/dist/dashboard/types.d.ts +172 -21
- package/dist/dashboard/types.d.ts.map +1 -1
- package/dist/errors/agent-errors.generated.d.ts +21 -0
- package/dist/errors/agent-errors.generated.d.ts.map +1 -0
- package/dist/errors/agent-errors.generated.js +133 -0
- package/dist/errors/agent-errors.generated.js.map +1 -0
- package/dist/errors/codes.d.ts +21 -2
- package/dist/errors/codes.d.ts.map +1 -1
- package/dist/errors/codes.js +20 -1
- package/dist/errors/codes.js.map +1 -1
- package/dist/errors/context.d.ts +9 -1
- package/dist/errors/context.d.ts.map +1 -1
- package/dist/event-analytics.d.ts +1 -3
- package/dist/event-analytics.d.ts.map +1 -1
- package/dist/event-analytics.js +28 -81
- package/dist/event-analytics.js.map +1 -1
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +23 -13
- package/dist/events.js.map +1 -1
- package/dist/generated/accounts/agentSpendOverlay.d.ts +60 -0
- package/dist/generated/accounts/agentSpendOverlay.d.ts.map +1 -1
- package/dist/generated/accounts/agentSpendOverlay.js +6 -2
- package/dist/generated/accounts/agentSpendOverlay.js.map +1 -1
- package/dist/generated/accounts/agentVault.d.ts +168 -4
- package/dist/generated/accounts/agentVault.d.ts.map +1 -1
- package/dist/generated/accounts/agentVault.js +11 -3
- package/dist/generated/accounts/agentVault.js.map +1 -1
- package/dist/generated/accounts/auditLogRejected.d.ts +66 -0
- package/dist/generated/accounts/auditLogRejected.d.ts.map +1 -0
- package/dist/generated/accounts/auditLogRejected.js +68 -0
- package/dist/generated/accounts/auditLogRejected.js.map +1 -0
- package/dist/generated/accounts/auditLogSuccess.d.ts +78 -0
- package/dist/generated/accounts/auditLogSuccess.d.ts.map +1 -0
- package/dist/generated/accounts/auditLogSuccess.js +68 -0
- package/dist/generated/accounts/auditLogSuccess.js.map +1 -0
- package/dist/generated/accounts/index.d.ts +4 -4
- package/dist/generated/accounts/index.d.ts.map +1 -1
- package/dist/generated/accounts/index.js +4 -4
- package/dist/generated/accounts/index.js.map +1 -1
- package/dist/generated/accounts/pendingAgentGrant.d.ts +199 -0
- package/dist/generated/accounts/pendingAgentGrant.d.ts.map +1 -0
- package/dist/generated/accounts/pendingAgentGrant.js +75 -0
- package/dist/generated/accounts/pendingAgentGrant.js.map +1 -0
- package/dist/generated/accounts/pendingAgentPermissionsUpdate.d.ts +76 -0
- package/dist/generated/accounts/pendingAgentPermissionsUpdate.d.ts.map +1 -1
- package/dist/generated/accounts/pendingAgentPermissionsUpdate.js +9 -1
- package/dist/generated/accounts/pendingAgentPermissionsUpdate.js.map +1 -1
- package/dist/generated/accounts/pendingOwnershipTransfer.d.ts +131 -0
- package/dist/generated/accounts/pendingOwnershipTransfer.d.ts.map +1 -0
- package/dist/generated/accounts/pendingOwnershipTransfer.js +76 -0
- package/dist/generated/accounts/pendingOwnershipTransfer.js.map +1 -0
- package/dist/generated/accounts/pendingPolicyUpdate.d.ts +220 -4
- package/dist/generated/accounts/pendingPolicyUpdate.d.ts.map +1 -1
- package/dist/generated/accounts/pendingPolicyUpdate.js +25 -5
- package/dist/generated/accounts/pendingPolicyUpdate.js.map +1 -1
- package/dist/generated/accounts/policyConfig.d.ts +495 -34
- package/dist/generated/accounts/policyConfig.d.ts.map +1 -1
- package/dist/generated/accounts/policyConfig.js +34 -7
- package/dist/generated/accounts/policyConfig.js.map +1 -1
- package/dist/generated/accounts/postExecutionAssertions.d.ts +2 -2
- package/dist/generated/accounts/postExecutionAssertions.d.ts.map +1 -1
- package/dist/generated/accounts/postExecutionAssertions.js +3 -3
- package/dist/generated/accounts/sessionAuthority.d.ts +154 -12
- package/dist/generated/accounts/sessionAuthority.d.ts.map +1 -1
- package/dist/generated/accounts/sessionAuthority.js +12 -10
- package/dist/generated/accounts/sessionAuthority.js.map +1 -1
- package/dist/generated/accounts/spendTracker.d.ts +83 -3
- package/dist/generated/accounts/spendTracker.d.ts.map +1 -1
- package/dist/generated/accounts/spendTracker.js +14 -2
- package/dist/generated/accounts/spendTracker.js.map +1 -1
- package/dist/generated/errors/sigil.d.ts +160 -100
- package/dist/generated/errors/sigil.d.ts.map +1 -1
- package/dist/generated/errors/sigil.js +214 -124
- package/dist/generated/errors/sigil.js.map +1 -1
- package/dist/generated/event-discriminators.d.ts.map +1 -1
- package/dist/generated/event-discriminators.js +11 -13
- package/dist/generated/event-discriminators.js.map +1 -1
- package/dist/generated/instructions/acceptOwnershipTransfer.d.ts +142 -0
- package/dist/generated/instructions/acceptOwnershipTransfer.d.ts.map +1 -0
- package/dist/generated/instructions/acceptOwnershipTransfer.js +171 -0
- package/dist/generated/instructions/acceptOwnershipTransfer.js.map +1 -0
- package/dist/generated/instructions/acceptOwnershipTransferMultisig.d.ts +142 -0
- package/dist/generated/instructions/acceptOwnershipTransferMultisig.d.ts.map +1 -0
- package/dist/generated/instructions/acceptOwnershipTransferMultisig.js +171 -0
- package/dist/generated/instructions/acceptOwnershipTransferMultisig.js.map +1 -0
- package/dist/generated/instructions/applyAgentGrant.d.ts +100 -0
- package/dist/generated/instructions/applyAgentGrant.d.ts.map +1 -0
- package/dist/generated/instructions/{applyConstraintsUpdate.js → applyAgentGrant.js} +66 -42
- package/dist/generated/instructions/applyAgentGrant.js.map +1 -0
- package/dist/generated/instructions/applyAgentPermissionsUpdate.d.ts +31 -8
- package/dist/generated/instructions/applyAgentPermissionsUpdate.d.ts.map +1 -1
- package/dist/generated/instructions/applyAgentPermissionsUpdate.js +38 -2
- package/dist/generated/instructions/applyAgentPermissionsUpdate.js.map +1 -1
- package/dist/generated/instructions/applyPendingPolicy.d.ts +18 -7
- package/dist/generated/instructions/applyPendingPolicy.d.ts.map +1 -1
- package/dist/generated/instructions/applyPendingPolicy.js +38 -2
- package/dist/generated/instructions/applyPendingPolicy.js.map +1 -1
- package/dist/generated/instructions/cancelAgentGrant.d.ts +106 -0
- package/dist/generated/instructions/cancelAgentGrant.d.ts.map +1 -0
- package/dist/generated/instructions/{allocatePendingConstraintsPda.js → cancelAgentGrant.js} +54 -42
- package/dist/generated/instructions/cancelAgentGrant.js.map +1 -0
- package/dist/generated/instructions/cancelOwnershipTransfer.d.ts +121 -0
- package/dist/generated/instructions/cancelOwnershipTransfer.d.ts.map +1 -0
- package/dist/generated/instructions/{queueCloseConstraints.js → cancelOwnershipTransfer.js} +58 -44
- package/dist/generated/instructions/cancelOwnershipTransfer.js.map +1 -0
- package/dist/generated/instructions/closePostAssertions.d.ts +6 -1
- package/dist/generated/instructions/closePostAssertions.d.ts.map +1 -1
- package/dist/generated/instructions/closePostAssertions.js +11 -3
- package/dist/generated/instructions/closePostAssertions.js.map +1 -1
- package/dist/generated/instructions/closeVault.d.ts +40 -8
- package/dist/generated/instructions/closeVault.d.ts.map +1 -1
- package/dist/generated/instructions/closeVault.js +40 -2
- package/dist/generated/instructions/closeVault.js.map +1 -1
- package/dist/generated/instructions/createPostAssertions.d.ts +4 -0
- package/dist/generated/instructions/createPostAssertions.d.ts.map +1 -1
- package/dist/generated/instructions/createPostAssertions.js +2 -0
- package/dist/generated/instructions/createPostAssertions.js.map +1 -1
- package/dist/generated/instructions/depositFunds.d.ts +21 -10
- package/dist/generated/instructions/depositFunds.d.ts.map +1 -1
- package/dist/generated/instructions/depositFunds.js +37 -2
- package/dist/generated/instructions/depositFunds.js.map +1 -1
- package/dist/generated/instructions/finalizeSession.d.ts +49 -7
- package/dist/generated/instructions/finalizeSession.d.ts.map +1 -1
- package/dist/generated/instructions/finalizeSession.js +59 -2
- package/dist/generated/instructions/finalizeSession.js.map +1 -1
- package/dist/generated/instructions/freezeVault.d.ts +39 -5
- package/dist/generated/instructions/freezeVault.d.ts.map +1 -1
- package/dist/generated/instructions/freezeVault.js +77 -5
- package/dist/generated/instructions/freezeVault.js.map +1 -1
- package/dist/generated/instructions/index.d.ts +10 -14
- package/dist/generated/instructions/index.d.ts.map +1 -1
- package/dist/generated/instructions/index.js +10 -14
- package/dist/generated/instructions/index.js.map +1 -1
- package/dist/generated/instructions/initializeVault.d.ts +79 -13
- package/dist/generated/instructions/initializeVault.d.ts.map +1 -1
- package/dist/generated/instructions/initializeVault.js +57 -5
- package/dist/generated/instructions/initializeVault.js.map +1 -1
- package/dist/generated/instructions/initiateOwnershipTransfer.d.ts +106 -0
- package/dist/generated/instructions/initiateOwnershipTransfer.d.ts.map +1 -0
- package/dist/generated/instructions/initiateOwnershipTransfer.js +181 -0
- package/dist/generated/instructions/initiateOwnershipTransfer.js.map +1 -0
- package/dist/generated/instructions/pauseAgent.d.ts +49 -5
- package/dist/generated/instructions/pauseAgent.d.ts.map +1 -1
- package/dist/generated/instructions/pauseAgent.js +80 -5
- package/dist/generated/instructions/pauseAgent.js.map +1 -1
- package/dist/generated/instructions/promoteGraylistDestination.d.ts +56 -0
- package/dist/generated/instructions/promoteGraylistDestination.d.ts.map +1 -0
- package/dist/generated/instructions/{createInstructionConstraints.js → promoteGraylistDestination.js} +23 -40
- package/dist/generated/instructions/promoteGraylistDestination.js.map +1 -0
- package/dist/generated/instructions/queueAgentGrant.d.ts +113 -0
- package/dist/generated/instructions/queueAgentGrant.d.ts.map +1 -0
- package/dist/generated/instructions/queueAgentGrant.js +181 -0
- package/dist/generated/instructions/queueAgentGrant.js.map +1 -0
- package/dist/generated/instructions/queueAgentPermissionsUpdate.d.ts +8 -0
- package/dist/generated/instructions/queueAgentPermissionsUpdate.d.ts.map +1 -1
- package/dist/generated/instructions/queueAgentPermissionsUpdate.js +4 -0
- package/dist/generated/instructions/queueAgentPermissionsUpdate.js.map +1 -1
- package/dist/generated/instructions/queuePolicyUpdate.d.ts +40 -8
- package/dist/generated/instructions/queuePolicyUpdate.d.ts.map +1 -1
- package/dist/generated/instructions/queuePolicyUpdate.js +21 -5
- package/dist/generated/instructions/queuePolicyUpdate.js.map +1 -1
- package/dist/generated/instructions/reactivateVault.d.ts +71 -5
- package/dist/generated/instructions/reactivateVault.d.ts.map +1 -1
- package/dist/generated/instructions/reactivateVault.js +80 -5
- package/dist/generated/instructions/reactivateVault.js.map +1 -1
- package/dist/generated/instructions/recordAgentViolation.d.ts +89 -0
- package/dist/generated/instructions/recordAgentViolation.d.ts.map +1 -0
- package/dist/generated/instructions/recordAgentViolation.js +152 -0
- package/dist/generated/instructions/recordAgentViolation.js.map +1 -0
- package/dist/generated/instructions/registerAgent.d.ts +84 -6
- package/dist/generated/instructions/registerAgent.d.ts.map +1 -1
- package/dist/generated/instructions/registerAgent.js +81 -4
- package/dist/generated/instructions/registerAgent.js.map +1 -1
- package/dist/generated/instructions/revokeAgent.d.ts +49 -6
- package/dist/generated/instructions/revokeAgent.d.ts.map +1 -1
- package/dist/generated/instructions/revokeAgent.js +81 -4
- package/dist/generated/instructions/revokeAgent.js.map +1 -1
- package/dist/generated/instructions/setObserveOnly.d.ts +56 -0
- package/dist/generated/instructions/setObserveOnly.d.ts.map +1 -0
- package/dist/generated/instructions/setObserveOnly.js +111 -0
- package/dist/generated/instructions/setObserveOnly.js.map +1 -0
- package/dist/generated/instructions/unpauseAgent.d.ts +46 -5
- package/dist/generated/instructions/unpauseAgent.d.ts.map +1 -1
- package/dist/generated/instructions/unpauseAgent.js +80 -5
- package/dist/generated/instructions/unpauseAgent.js.map +1 -1
- package/dist/generated/instructions/validateAndAuthorize.d.ts +29 -0
- package/dist/generated/instructions/validateAndAuthorize.d.ts.map +1 -1
- package/dist/generated/instructions/validateAndAuthorize.js +4 -0
- package/dist/generated/instructions/validateAndAuthorize.js.map +1 -1
- package/dist/generated/instructions/withdrawFunds.d.ts +53 -11
- package/dist/generated/instructions/withdrawFunds.d.ts.map +1 -1
- package/dist/generated/instructions/withdrawFunds.js +51 -2
- package/dist/generated/instructions/withdrawFunds.js.map +1 -1
- package/dist/generated/programs/sigil.d.ts +79 -95
- package/dist/generated/programs/sigil.d.ts.map +1 -1
- package/dist/generated/programs/sigil.js +139 -187
- package/dist/generated/programs/sigil.js.map +1 -1
- package/dist/generated/types/actionAuthorized.d.ts +0 -2
- package/dist/generated/types/actionAuthorized.d.ts.map +1 -1
- package/dist/generated/types/actionAuthorized.js +0 -2
- package/dist/generated/types/actionAuthorized.js.map +1 -1
- package/dist/generated/types/agentAutoRevoked.d.ts +31 -0
- package/dist/generated/types/agentAutoRevoked.d.ts.map +1 -0
- package/dist/generated/types/{pdaAllocated.js → agentAutoRevoked.js} +12 -10
- package/dist/generated/types/agentAutoRevoked.js.map +1 -0
- package/dist/generated/types/agentEntry.d.ts +48 -0
- package/dist/generated/types/agentEntry.d.ts.map +1 -1
- package/dist/generated/types/agentEntry.js +4 -2
- package/dist/generated/types/agentEntry.js.map +1 -1
- package/dist/generated/types/agentGrantApplied.d.ts +38 -0
- package/dist/generated/types/agentGrantApplied.d.ts.map +1 -0
- package/dist/generated/types/agentGrantApplied.js +34 -0
- package/dist/generated/types/agentGrantApplied.js.map +1 -0
- package/dist/generated/types/agentGrantCancelled.d.ts +33 -0
- package/dist/generated/types/agentGrantCancelled.d.ts.map +1 -0
- package/dist/generated/types/agentGrantCancelled.js +28 -0
- package/dist/generated/types/agentGrantCancelled.js.map +1 -0
- package/dist/generated/types/agentGrantQueued.d.ts +38 -0
- package/dist/generated/types/agentGrantQueued.d.ts.map +1 -0
- package/dist/generated/types/agentGrantQueued.js +32 -0
- package/dist/generated/types/agentGrantQueued.js.map +1 -0
- package/dist/generated/types/auditEntry.d.ts +120 -0
- package/dist/generated/types/auditEntry.d.ts.map +1 -0
- package/dist/generated/types/auditEntry.js +34 -0
- package/dist/generated/types/auditEntry.js.map +1 -0
- package/dist/generated/types/destinationGraylistEntry.d.ts +32 -0
- package/dist/generated/types/destinationGraylistEntry.d.ts.map +1 -0
- package/dist/generated/types/destinationGraylistEntry.js +24 -0
- package/dist/generated/types/destinationGraylistEntry.js.map +1 -0
- package/dist/generated/types/graylistEntered.d.ts +31 -0
- package/dist/generated/types/graylistEntered.d.ts.map +1 -0
- package/dist/generated/types/graylistEntered.js +30 -0
- package/dist/generated/types/graylistEntered.js.map +1 -0
- package/dist/generated/types/graylistPromoted.d.ts +29 -0
- package/dist/generated/types/graylistPromoted.d.ts.map +1 -0
- package/dist/generated/types/graylistPromoted.js +28 -0
- package/dist/generated/types/graylistPromoted.js.map +1 -0
- package/dist/generated/types/index.d.ts +13 -21
- package/dist/generated/types/index.d.ts.map +1 -1
- package/dist/generated/types/index.js +13 -21
- package/dist/generated/types/index.js.map +1 -1
- package/dist/generated/types/observeOnlyChanged.d.ts +33 -0
- package/dist/generated/types/observeOnlyChanged.d.ts.map +1 -0
- package/dist/generated/types/observeOnlyChanged.js +32 -0
- package/dist/generated/types/observeOnlyChanged.js.map +1 -0
- package/dist/generated/types/ownershipTransferAccepted.d.ts +32 -0
- package/dist/generated/types/ownershipTransferAccepted.d.ts.map +1 -0
- package/dist/generated/types/ownershipTransferAccepted.js +30 -0
- package/dist/generated/types/ownershipTransferAccepted.js.map +1 -0
- package/dist/generated/types/ownershipTransferCancelled.d.ts +29 -0
- package/dist/generated/types/ownershipTransferCancelled.d.ts.map +1 -0
- package/dist/generated/types/ownershipTransferCancelled.js +28 -0
- package/dist/generated/types/ownershipTransferCancelled.js.map +1 -0
- package/dist/generated/types/ownershipTransferInitiated.d.ts +33 -0
- package/dist/generated/types/ownershipTransferInitiated.d.ts.map +1 -0
- package/dist/generated/types/ownershipTransferInitiated.js +30 -0
- package/dist/generated/types/ownershipTransferInitiated.js.map +1 -0
- package/dist/generated/types/perRecipientCounter.d.ts +61 -0
- package/dist/generated/types/perRecipientCounter.d.ts.map +1 -0
- package/dist/generated/types/perRecipientCounter.js +26 -0
- package/dist/generated/types/perRecipientCounter.js.map +1 -0
- package/dist/generated/types/postAssertionEntry.d.ts +14 -7
- package/dist/generated/types/postAssertionEntry.d.ts.map +1 -1
- package/dist/generated/types/postAssertionEntry.js +5 -7
- package/dist/generated/types/postAssertionEntry.js.map +1 -1
- package/dist/generated/types/postAssertionEntryZC.d.ts +53 -22
- package/dist/generated/types/postAssertionEntryZC.d.ts.map +1 -1
- package/dist/generated/types/postAssertionEntryZC.js +4 -6
- package/dist/generated/types/postAssertionEntryZC.js.map +1 -1
- package/dist/generated/types/sessionFinalized.d.ts +0 -4
- package/dist/generated/types/sessionFinalized.d.ts.map +1 -1
- package/dist/generated/types/sessionFinalized.js +0 -2
- package/dist/generated/types/sessionFinalized.js.map +1 -1
- package/dist/generated/types/vaultFrozen.d.ts +26 -0
- package/dist/generated/types/vaultFrozen.d.ts.map +1 -1
- package/dist/generated/types/vaultFrozen.js +5 -1
- package/dist/generated/types/vaultFrozen.js.map +1 -1
- package/dist/index.d.ts +35 -6
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +81 -7
- package/dist/index.js.map +1 -1
- package/dist/inscribe.d.ts +0 -4
- package/dist/inscribe.d.ts.map +1 -1
- package/dist/inscribe.js +0 -1
- package/dist/inscribe.js.map +1 -1
- package/dist/inspector.d.ts +0 -23
- package/dist/inspector.d.ts.map +1 -1
- package/dist/inspector.js +0 -52
- package/dist/inspector.js.map +1 -1
- package/dist/kit-adapter.d.ts +1 -1
- package/dist/kit-adapter.d.ts.map +1 -1
- package/dist/kit-adapter.js +1 -1
- package/dist/kit-adapter.js.map +1 -1
- package/dist/logger.d.ts +48 -0
- package/dist/logger.d.ts.map +1 -1
- package/dist/logger.js +36 -0
- package/dist/logger.js.map +1 -1
- package/dist/multisig-detection.d.ts +83 -0
- package/dist/multisig-detection.d.ts.map +1 -0
- package/dist/multisig-detection.js +128 -0
- package/dist/multisig-detection.js.map +1 -0
- package/dist/owner-transaction.d.ts +8 -0
- package/dist/owner-transaction.d.ts.map +1 -1
- package/dist/owner-transaction.js +1 -0
- package/dist/owner-transaction.js.map +1 -1
- package/dist/ownership-transfer.d.ts +79 -0
- package/dist/ownership-transfer.d.ts.map +1 -0
- package/dist/ownership-transfer.js +66 -0
- package/dist/ownership-transfer.js.map +1 -0
- package/dist/policy/compute-cosign-digest.d.ts +193 -0
- package/dist/policy/compute-cosign-digest.d.ts.map +1 -0
- package/dist/policy/compute-cosign-digest.js +318 -0
- package/dist/policy/compute-cosign-digest.js.map +1 -0
- package/dist/policy/compute-policy-preview-digest.d.ts +258 -0
- package/dist/policy/compute-policy-preview-digest.d.ts.map +1 -0
- package/dist/policy/compute-policy-preview-digest.js +351 -0
- package/dist/policy/compute-policy-preview-digest.js.map +1 -0
- package/dist/policy-attestation.d.ts +51 -0
- package/dist/policy-attestation.d.ts.map +1 -0
- package/dist/policy-attestation.js +43 -0
- package/dist/policy-attestation.js.map +1 -0
- package/dist/presets.d.ts +1 -7
- package/dist/presets.d.ts.map +1 -1
- package/dist/presets.js +0 -5
- package/dist/presets.js.map +1 -1
- package/dist/preview-create-vault.d.ts +280 -0
- package/dist/preview-create-vault.d.ts.map +1 -0
- package/dist/preview-create-vault.js +498 -0
- package/dist/preview-create-vault.js.map +1 -0
- package/dist/resolve-accounts.d.ts +75 -10
- package/dist/resolve-accounts.d.ts.map +1 -1
- package/dist/resolve-accounts.js +68 -32
- package/dist/resolve-accounts.js.map +1 -1
- package/dist/rpc-helpers.d.ts +29 -3
- package/dist/rpc-helpers.d.ts.map +1 -1
- package/dist/rpc-helpers.js +51 -12
- package/dist/rpc-helpers.js.map +1 -1
- package/dist/seal/intent-digest.d.ts +195 -0
- package/dist/seal/intent-digest.d.ts.map +1 -0
- package/dist/seal/intent-digest.js +372 -0
- package/dist/seal/intent-digest.js.map +1 -0
- package/dist/seal.d.ts +166 -3
- package/dist/seal.d.ts.map +1 -1
- package/dist/seal.js +428 -8
- package/dist/seal.js.map +1 -1
- package/dist/security-analytics.d.ts +3 -3
- package/dist/security-analytics.d.ts.map +1 -1
- package/dist/security-analytics.js +13 -128
- package/dist/security-analytics.js.map +1 -1
- package/dist/session-mint.d.ts +72 -0
- package/dist/session-mint.d.ts.map +1 -0
- package/dist/session-mint.js +59 -0
- package/dist/session-mint.js.map +1 -0
- package/dist/sigil.d.ts +0 -4
- package/dist/sigil.d.ts.map +1 -1
- package/dist/simulation.d.ts +19 -0
- package/dist/simulation.d.ts.map +1 -1
- package/dist/simulation.js +211 -138
- package/dist/simulation.js.map +1 -1
- package/dist/squads-detection.d.ts +135 -0
- package/dist/squads-detection.d.ts.map +1 -0
- package/dist/squads-detection.js +124 -0
- package/dist/squads-detection.js.map +1 -0
- package/dist/state-resolver.d.ts +0 -16
- package/dist/state-resolver.d.ts.map +1 -1
- package/dist/state-resolver.js +162 -97
- package/dist/state-resolver.js.map +1 -1
- package/dist/testing/devnet.d.ts +40 -1
- package/dist/testing/devnet.d.ts.map +1 -1
- package/dist/testing/devnet.js +333 -45
- package/dist/testing/devnet.js.map +1 -1
- package/dist/testing/errors/expect.d.ts +137 -0
- package/dist/testing/errors/expect.d.ts.map +1 -0
- package/dist/testing/errors/expect.js +372 -0
- package/dist/testing/errors/expect.js.map +1 -0
- package/dist/testing/errors/index.d.ts +3 -0
- package/dist/testing/errors/index.d.ts.map +1 -0
- package/dist/testing/errors/index.js +8 -0
- package/dist/testing/errors/index.js.map +1 -0
- package/dist/testing/errors/names.generated.d.ts +211 -0
- package/dist/testing/errors/names.generated.d.ts.map +1 -0
- package/dist/testing/errors/names.generated.js +206 -0
- package/dist/testing/errors/names.generated.js.map +1 -0
- package/dist/testing/index.d.ts +1 -0
- package/dist/testing/index.d.ts.map +1 -1
- package/dist/testing/index.js +8 -0
- package/dist/testing/index.js.map +1 -1
- package/dist/testing/mock-rpc.d.ts +16 -0
- package/dist/testing/mock-rpc.d.ts.map +1 -1
- package/dist/testing/mock-rpc.js +27 -0
- package/dist/testing/mock-rpc.js.map +1 -1
- package/dist/testing/mock-state.d.ts +2 -0
- package/dist/testing/mock-state.d.ts.map +1 -1
- package/dist/testing/mock-state.js +45 -6
- package/dist/testing/mock-state.js.map +1 -1
- package/dist/types.d.ts +5 -15
- package/dist/types.d.ts.map +1 -1
- package/dist/types.js +11 -69
- package/dist/types.js.map +1 -1
- package/dist/vault-analytics.d.ts +0 -2
- package/dist/vault-analytics.d.ts.map +1 -1
- package/dist/vault-analytics.js +1 -9
- package/dist/vault-analytics.js.map +1 -1
- package/package.json +12 -5
- package/dist/dashboard/constraint-reads.d.ts +0 -50
- package/dist/dashboard/constraint-reads.d.ts.map +0 -1
- package/dist/dashboard/constraint-reads.js +0 -119
- package/dist/dashboard/constraint-reads.js.map +0 -1
- package/dist/generated/accounts/escrowDeposit.d.ts +0 -50
- package/dist/generated/accounts/escrowDeposit.d.ts.map +0 -1
- package/dist/generated/accounts/escrowDeposit.js +0 -76
- package/dist/generated/accounts/escrowDeposit.js.map +0 -1
- package/dist/generated/accounts/instructionConstraints.d.ts +0 -46
- package/dist/generated/accounts/instructionConstraints.d.ts.map +0 -1
- package/dist/generated/accounts/instructionConstraints.js +0 -73
- package/dist/generated/accounts/instructionConstraints.js.map +0 -1
- package/dist/generated/accounts/pendingCloseConstraints.d.ts +0 -37
- package/dist/generated/accounts/pendingCloseConstraints.d.ts.map +0 -1
- package/dist/generated/accounts/pendingCloseConstraints.js +0 -66
- package/dist/generated/accounts/pendingCloseConstraints.js.map +0 -1
- package/dist/generated/accounts/pendingConstraintsUpdate.d.ts +0 -62
- package/dist/generated/accounts/pendingConstraintsUpdate.d.ts.map +0 -1
- package/dist/generated/accounts/pendingConstraintsUpdate.js +0 -75
- package/dist/generated/accounts/pendingConstraintsUpdate.js.map +0 -1
- package/dist/generated/instructions/allocateConstraintsPda.d.ts +0 -62
- package/dist/generated/instructions/allocateConstraintsPda.d.ts.map +0 -1
- package/dist/generated/instructions/allocateConstraintsPda.js +0 -134
- package/dist/generated/instructions/allocateConstraintsPda.js.map +0 -1
- package/dist/generated/instructions/allocatePendingConstraintsPda.d.ts +0 -66
- package/dist/generated/instructions/allocatePendingConstraintsPda.d.ts.map +0 -1
- package/dist/generated/instructions/allocatePendingConstraintsPda.js.map +0 -1
- package/dist/generated/instructions/applyCloseConstraints.d.ts +0 -59
- package/dist/generated/instructions/applyCloseConstraints.d.ts.map +0 -1
- package/dist/generated/instructions/applyCloseConstraints.js +0 -143
- package/dist/generated/instructions/applyCloseConstraints.js.map +0 -1
- package/dist/generated/instructions/applyConstraintsUpdate.d.ts +0 -62
- package/dist/generated/instructions/applyConstraintsUpdate.d.ts.map +0 -1
- package/dist/generated/instructions/applyConstraintsUpdate.js.map +0 -1
- package/dist/generated/instructions/cancelCloseConstraints.d.ts +0 -51
- package/dist/generated/instructions/cancelCloseConstraints.d.ts.map +0 -1
- package/dist/generated/instructions/cancelCloseConstraints.js +0 -115
- package/dist/generated/instructions/cancelCloseConstraints.js.map +0 -1
- package/dist/generated/instructions/cancelConstraintsUpdate.d.ts +0 -51
- package/dist/generated/instructions/cancelConstraintsUpdate.d.ts.map +0 -1
- package/dist/generated/instructions/cancelConstraintsUpdate.js +0 -115
- package/dist/generated/instructions/cancelConstraintsUpdate.js.map +0 -1
- package/dist/generated/instructions/closeSettledEscrow.d.ts +0 -72
- package/dist/generated/instructions/closeSettledEscrow.d.ts.map +0 -1
- package/dist/generated/instructions/closeSettledEscrow.js +0 -127
- package/dist/generated/instructions/closeSettledEscrow.js.map +0 -1
- package/dist/generated/instructions/createEscrow.d.ts +0 -131
- package/dist/generated/instructions/createEscrow.d.ts.map +0 -1
- package/dist/generated/instructions/createEscrow.js +0 -272
- package/dist/generated/instructions/createEscrow.js.map +0 -1
- package/dist/generated/instructions/createInstructionConstraints.d.ts +0 -68
- package/dist/generated/instructions/createInstructionConstraints.d.ts.map +0 -1
- package/dist/generated/instructions/createInstructionConstraints.js.map +0 -1
- package/dist/generated/instructions/extendPda.d.ts +0 -52
- package/dist/generated/instructions/extendPda.d.ts.map +0 -1
- package/dist/generated/instructions/extendPda.js +0 -86
- package/dist/generated/instructions/extendPda.js.map +0 -1
- package/dist/generated/instructions/queueCloseConstraints.d.ts +0 -66
- package/dist/generated/instructions/queueCloseConstraints.d.ts.map +0 -1
- package/dist/generated/instructions/queueCloseConstraints.js.map +0 -1
- package/dist/generated/instructions/queueConstraintsUpdate.d.ts +0 -75
- package/dist/generated/instructions/queueConstraintsUpdate.d.ts.map +0 -1
- package/dist/generated/instructions/queueConstraintsUpdate.js +0 -154
- package/dist/generated/instructions/queueConstraintsUpdate.js.map +0 -1
- package/dist/generated/instructions/refundEscrow.d.ts +0 -74
- package/dist/generated/instructions/refundEscrow.d.ts.map +0 -1
- package/dist/generated/instructions/refundEscrow.js +0 -142
- package/dist/generated/instructions/refundEscrow.js.map +0 -1
- package/dist/generated/instructions/settleEscrow.d.ts +0 -80
- package/dist/generated/instructions/settleEscrow.d.ts.map +0 -1
- package/dist/generated/instructions/settleEscrow.js +0 -173
- package/dist/generated/instructions/settleEscrow.js.map +0 -1
- package/dist/generated/types/accountConstraint.d.ts +0 -18
- package/dist/generated/types/accountConstraint.d.ts.map +0 -1
- package/dist/generated/types/accountConstraint.js +0 -24
- package/dist/generated/types/accountConstraint.js.map +0 -1
- package/dist/generated/types/accountConstraintZC.d.ts +0 -18
- package/dist/generated/types/accountConstraintZC.d.ts.map +0 -1
- package/dist/generated/types/accountConstraintZC.js +0 -26
- package/dist/generated/types/accountConstraintZC.js.map +0 -1
- package/dist/generated/types/closeConstraintsApplied.d.ts +0 -20
- package/dist/generated/types/closeConstraintsApplied.d.ts.map +0 -1
- package/dist/generated/types/closeConstraintsApplied.js +0 -24
- package/dist/generated/types/closeConstraintsApplied.js.map +0 -1
- package/dist/generated/types/closeConstraintsCancelled.d.ts +0 -16
- package/dist/generated/types/closeConstraintsCancelled.d.ts.map +0 -1
- package/dist/generated/types/closeConstraintsCancelled.js +0 -18
- package/dist/generated/types/closeConstraintsCancelled.js.map +0 -1
- package/dist/generated/types/closeConstraintsQueued.d.ts +0 -20
- package/dist/generated/types/closeConstraintsQueued.d.ts.map +0 -1
- package/dist/generated/types/closeConstraintsQueued.js +0 -24
- package/dist/generated/types/closeConstraintsQueued.js.map +0 -1
- package/dist/generated/types/constraintEntry.d.ts +0 -39
- package/dist/generated/types/constraintEntry.d.ts.map +0 -1
- package/dist/generated/types/constraintEntry.js +0 -31
- package/dist/generated/types/constraintEntry.js.map +0 -1
- package/dist/generated/types/constraintEntryZC.d.ts +0 -68
- package/dist/generated/types/constraintEntryZC.d.ts.map +0 -1
- package/dist/generated/types/constraintEntryZC.js +0 -49
- package/dist/generated/types/constraintEntryZC.js.map +0 -1
- package/dist/generated/types/constraintOperator.d.ts +0 -22
- package/dist/generated/types/constraintOperator.d.ts.map +0 -1
- package/dist/generated/types/constraintOperator.js +0 -28
- package/dist/generated/types/constraintOperator.js.map +0 -1
- package/dist/generated/types/constraintsChangeApplied.d.ts +0 -30
- package/dist/generated/types/constraintsChangeApplied.d.ts.map +0 -1
- package/dist/generated/types/constraintsChangeApplied.js +0 -32
- package/dist/generated/types/constraintsChangeApplied.js.map +0 -1
- package/dist/generated/types/constraintsChangeCancelled.d.ts +0 -16
- package/dist/generated/types/constraintsChangeCancelled.d.ts.map +0 -1
- package/dist/generated/types/constraintsChangeCancelled.js +0 -18
- package/dist/generated/types/constraintsChangeCancelled.js.map +0 -1
- package/dist/generated/types/constraintsChangeQueued.d.ts +0 -30
- package/dist/generated/types/constraintsChangeQueued.d.ts.map +0 -1
- package/dist/generated/types/constraintsChangeQueued.js +0 -32
- package/dist/generated/types/constraintsChangeQueued.js.map +0 -1
- package/dist/generated/types/dataConstraint.d.ts +0 -23
- package/dist/generated/types/dataConstraint.d.ts.map +0 -1
- package/dist/generated/types/dataConstraint.js +0 -27
- package/dist/generated/types/dataConstraint.js.map +0 -1
- package/dist/generated/types/dataConstraintZC.d.ts +0 -20
- package/dist/generated/types/dataConstraintZC.d.ts.map +0 -1
- package/dist/generated/types/dataConstraintZC.js +0 -30
- package/dist/generated/types/dataConstraintZC.js.map +0 -1
- package/dist/generated/types/discriminatorFormat.d.ts +0 -25
- package/dist/generated/types/discriminatorFormat.d.ts.map +0 -1
- package/dist/generated/types/discriminatorFormat.js +0 -31
- package/dist/generated/types/discriminatorFormat.js.map +0 -1
- package/dist/generated/types/escrowCreated.d.ts +0 -30
- package/dist/generated/types/escrowCreated.d.ts.map +0 -1
- package/dist/generated/types/escrowCreated.js +0 -34
- package/dist/generated/types/escrowCreated.js.map +0 -1
- package/dist/generated/types/escrowRefunded.d.ts +0 -26
- package/dist/generated/types/escrowRefunded.d.ts.map +0 -1
- package/dist/generated/types/escrowRefunded.js +0 -30
- package/dist/generated/types/escrowRefunded.js.map +0 -1
- package/dist/generated/types/escrowSettled.d.ts +0 -26
- package/dist/generated/types/escrowSettled.d.ts.map +0 -1
- package/dist/generated/types/escrowSettled.js +0 -30
- package/dist/generated/types/escrowSettled.js.map +0 -1
- package/dist/generated/types/escrowStatus.d.ts +0 -18
- package/dist/generated/types/escrowStatus.d.ts.map +0 -1
- package/dist/generated/types/escrowStatus.js +0 -24
- package/dist/generated/types/escrowStatus.js.map +0 -1
- package/dist/generated/types/instructionConstraintsCreated.d.ts +0 -34
- package/dist/generated/types/instructionConstraintsCreated.d.ts.map +0 -1
- package/dist/generated/types/instructionConstraintsCreated.js +0 -36
- package/dist/generated/types/instructionConstraintsCreated.js.map +0 -1
- package/dist/generated/types/pdaAllocated.d.ts +0 -24
- package/dist/generated/types/pdaAllocated.d.ts.map +0 -1
- package/dist/generated/types/pdaAllocated.js.map +0 -1
- package/dist/generated/types/pdaExtended.d.ts +0 -24
- package/dist/generated/types/pdaExtended.d.ts.map +0 -1
- package/dist/generated/types/pdaExtended.js +0 -28
- package/dist/generated/types/pdaExtended.js.map +0 -1
- package/dist/integrations/protocol-handler.d.ts +0 -59
- package/dist/integrations/protocol-handler.d.ts.map +0 -1
- package/dist/integrations/protocol-handler.js +0 -9
- package/dist/integrations/protocol-handler.js.map +0 -1
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @see https://github.com/codama-idl/codama
|
|
7
7
|
*/
|
|
8
8
|
import { assertAccountExists, assertAccountsExist, combineCodec, decodeAccount, fetchEncodedAccount, fetchEncodedAccounts, fixDecoderSize, fixEncoderSize, getAddressDecoder, getAddressEncoder, getArrayDecoder, getArrayEncoder, getBytesDecoder, getBytesEncoder, getI64Decoder, getI64Encoder, getStructDecoder, getStructEncoder, getU8Decoder, getU8Encoder, transformEncoder, } from "@solana/kit";
|
|
9
|
-
import { getEpochBucketDecoder, getEpochBucketEncoder, getProtocolSpendCounterDecoder, getProtocolSpendCounterEncoder, } from "../types/index.js";
|
|
9
|
+
import { getEpochBucketDecoder, getEpochBucketEncoder, getPerRecipientCounterDecoder, getPerRecipientCounterEncoder, getProtocolSpendCounterDecoder, getProtocolSpendCounterEncoder, } from "../types/index.js";
|
|
10
10
|
export const SPEND_TRACKER_DISCRIMINATOR = new Uint8Array([
|
|
11
11
|
180, 17, 195, 180, 162, 207, 239, 205,
|
|
12
12
|
]);
|
|
@@ -26,6 +26,12 @@ export function getSpendTrackerEncoder() {
|
|
|
26
26
|
["lastWriteEpoch", getI64Encoder()],
|
|
27
27
|
["bump", getU8Encoder()],
|
|
28
28
|
["padding", fixEncoderSize(getBytesEncoder(), 7)],
|
|
29
|
+
[
|
|
30
|
+
"perRecipient",
|
|
31
|
+
getArrayEncoder(getPerRecipientCounterEncoder(), { size: 10 }),
|
|
32
|
+
],
|
|
33
|
+
["perRecipientCount", getU8Encoder()],
|
|
34
|
+
["paddingRecipient", fixEncoderSize(getBytesEncoder(), 7)],
|
|
29
35
|
]), (value) => ({ ...value, discriminator: SPEND_TRACKER_DISCRIMINATOR }));
|
|
30
36
|
}
|
|
31
37
|
/** Gets the decoder for {@link SpendTracker} account data. */
|
|
@@ -41,6 +47,12 @@ export function getSpendTrackerDecoder() {
|
|
|
41
47
|
["lastWriteEpoch", getI64Decoder()],
|
|
42
48
|
["bump", getU8Decoder()],
|
|
43
49
|
["padding", fixDecoderSize(getBytesDecoder(), 7)],
|
|
50
|
+
[
|
|
51
|
+
"perRecipient",
|
|
52
|
+
getArrayDecoder(getPerRecipientCounterDecoder(), { size: 10 }),
|
|
53
|
+
],
|
|
54
|
+
["perRecipientCount", getU8Decoder()],
|
|
55
|
+
["paddingRecipient", fixDecoderSize(getBytesDecoder(), 7)],
|
|
44
56
|
]);
|
|
45
57
|
}
|
|
46
58
|
/** Gets the codec for {@link SpendTracker} account data. */
|
|
@@ -69,6 +81,6 @@ export async function fetchAllMaybeSpendTracker(rpc, addresses, config) {
|
|
|
69
81
|
return maybeAccounts.map((maybeAccount) => decodeSpendTracker(maybeAccount));
|
|
70
82
|
}
|
|
71
83
|
export function getSpendTrackerSize() {
|
|
72
|
-
return
|
|
84
|
+
return 3328;
|
|
73
85
|
}
|
|
74
86
|
//# sourceMappingURL=spendTracker.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spendTracker.js","sourceRoot":"","sources":["../../../src/generated/accounts/spendTracker.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,gBAAgB,GAYjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,8BAA8B,EAC9B,8BAA8B,
|
|
1
|
+
{"version":3,"file":"spendTracker.js","sourceRoot":"","sources":["../../../src/generated/accounts/spendTracker.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,mBAAmB,EACnB,mBAAmB,EACnB,YAAY,EACZ,aAAa,EACb,mBAAmB,EACnB,oBAAoB,EACpB,cAAc,EACd,cAAc,EACd,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,aAAa,EACb,aAAa,EACb,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,YAAY,EACZ,gBAAgB,GAYjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,6BAA6B,EAC7B,6BAA6B,EAC7B,8BAA8B,EAC9B,8BAA8B,GAO/B,MAAM,mBAAmB,CAAC;AAE3B,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,UAAU,CAAC;IACxD,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG;CACtC,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC;IAC/C,OAAO,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,CAChD,2BAA2B,CAC5B,CAAC;AACJ,CAAC;AAuHD,kEAAkE;AAClE,MAAM,UAAU,sBAAsB;IACpC,OAAO,gBAAgB,CACrB,gBAAgB,CAAC;QACf,CAAC,eAAe,EAAE,cAAc,CAAC,eAAe,EAAE,EAAE,CAAC,CAAC,CAAC;QACvD,CAAC,OAAO,EAAE,iBAAiB,EAAE,CAAC;QAC9B,CAAC,SAAS,EAAE,eAAe,CAAC,qBAAqB,EAAE,EAAE,EAAE,IAAI,EAAE,G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AAa,GAAG,MAAM,oBAAoB,CAAC,GAAG,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;IACzE,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC,YAAY,EAAE,EAAE,CAAC,kBAAkB,CAAC,YAAY,CAAC,CAAC,CAAC;AAC/E,CAAC;AAED,MAAM,UAAU,mBAAmB;IACjC,OAAO,IAAI,CAAC;AACd,CAAC"}
|
|
@@ -20,155 +20,215 @@ export declare const SIGIL_ERROR__PROTOCOL_NOT_ALLOWED = 6004;
|
|
|
20
20
|
export declare const SIGIL_ERROR__TRANSACTION_TOO_LARGE = 6005;
|
|
21
21
|
/** SpendingCapExceeded: Rolling 24h spending cap would be exceeded */
|
|
22
22
|
export declare const SIGIL_ERROR__SPENDING_CAP_EXCEEDED = 6006;
|
|
23
|
-
/** LeverageTooHigh: Leverage exceeds maximum allowed */
|
|
24
|
-
export declare const SIGIL_ERROR__LEVERAGE_TOO_HIGH = 6007;
|
|
25
23
|
/** SessionNotAuthorized: Session not authorized */
|
|
26
|
-
export declare const SIGIL_ERROR__SESSION_NOT_AUTHORIZED =
|
|
24
|
+
export declare const SIGIL_ERROR__SESSION_NOT_AUTHORIZED = 6007;
|
|
27
25
|
/** InvalidSession: Invalid session: does not belong to this vault */
|
|
28
|
-
export declare const SIGIL_ERROR__INVALID_SESSION =
|
|
26
|
+
export declare const SIGIL_ERROR__INVALID_SESSION = 6008;
|
|
29
27
|
/** TooManyAllowedProtocols: Policy configuration invalid: too many allowed protocols */
|
|
30
|
-
export declare const SIGIL_ERROR__TOO_MANY_ALLOWED_PROTOCOLS =
|
|
28
|
+
export declare const SIGIL_ERROR__TOO_MANY_ALLOWED_PROTOCOLS = 6009;
|
|
31
29
|
/** AgentAlreadyRegistered: Agent already registered for this vault */
|
|
32
|
-
export declare const SIGIL_ERROR__AGENT_ALREADY_REGISTERED =
|
|
30
|
+
export declare const SIGIL_ERROR__AGENT_ALREADY_REGISTERED = 6010;
|
|
33
31
|
/** NoAgentRegistered: No agent registered for this vault */
|
|
34
|
-
export declare const SIGIL_ERROR__NO_AGENT_REGISTERED =
|
|
32
|
+
export declare const SIGIL_ERROR__NO_AGENT_REGISTERED = 6011;
|
|
35
33
|
/** VaultNotFrozen: Vault is not frozen (expected frozen for reactivation) */
|
|
36
|
-
export declare const SIGIL_ERROR__VAULT_NOT_FROZEN =
|
|
34
|
+
export declare const SIGIL_ERROR__VAULT_NOT_FROZEN = 6012;
|
|
37
35
|
/** VaultAlreadyClosed: Vault is already closed */
|
|
38
|
-
export declare const SIGIL_ERROR__VAULT_ALREADY_CLOSED =
|
|
36
|
+
export declare const SIGIL_ERROR__VAULT_ALREADY_CLOSED = 6013;
|
|
39
37
|
/** InsufficientBalance: Insufficient vault balance for withdrawal */
|
|
40
|
-
export declare const SIGIL_ERROR__INSUFFICIENT_BALANCE =
|
|
38
|
+
export declare const SIGIL_ERROR__INSUFFICIENT_BALANCE = 6014;
|
|
41
39
|
/** DeveloperFeeTooHigh: Developer fee rate exceeds maximum (500 / 1,000,000 = 5 BPS) */
|
|
42
|
-
export declare const SIGIL_ERROR__DEVELOPER_FEE_TOO_HIGH =
|
|
40
|
+
export declare const SIGIL_ERROR__DEVELOPER_FEE_TOO_HIGH = 6015;
|
|
43
41
|
/** InvalidFeeDestination: Fee destination account invalid */
|
|
44
|
-
export declare const SIGIL_ERROR__INVALID_FEE_DESTINATION =
|
|
42
|
+
export declare const SIGIL_ERROR__INVALID_FEE_DESTINATION = 6016;
|
|
45
43
|
/** InvalidProtocolTreasury: Protocol treasury account does not match expected address */
|
|
46
|
-
export declare const SIGIL_ERROR__INVALID_PROTOCOL_TREASURY =
|
|
44
|
+
export declare const SIGIL_ERROR__INVALID_PROTOCOL_TREASURY = 6017;
|
|
47
45
|
/** InvalidAgentKey: Invalid agent: cannot be the zero address */
|
|
48
|
-
export declare const SIGIL_ERROR__INVALID_AGENT_KEY =
|
|
46
|
+
export declare const SIGIL_ERROR__INVALID_AGENT_KEY = 6018;
|
|
49
47
|
/** AgentIsOwner: Invalid agent: agent cannot be the vault owner */
|
|
50
|
-
export declare const SIGIL_ERROR__AGENT_IS_OWNER =
|
|
48
|
+
export declare const SIGIL_ERROR__AGENT_IS_OWNER = 6019;
|
|
51
49
|
/** Overflow: Arithmetic overflow */
|
|
52
|
-
export declare const SIGIL_ERROR__OVERFLOW =
|
|
50
|
+
export declare const SIGIL_ERROR__OVERFLOW = 6020;
|
|
53
51
|
/** InvalidTokenAccount: Token account does not belong to vault or has wrong mint */
|
|
54
|
-
export declare const SIGIL_ERROR__INVALID_TOKEN_ACCOUNT =
|
|
52
|
+
export declare const SIGIL_ERROR__INVALID_TOKEN_ACCOUNT = 6021;
|
|
55
53
|
/** TimelockNotExpired: Timelock period has not expired yet */
|
|
56
|
-
export declare const SIGIL_ERROR__TIMELOCK_NOT_EXPIRED =
|
|
54
|
+
export declare const SIGIL_ERROR__TIMELOCK_NOT_EXPIRED = 6022;
|
|
57
55
|
/** NoTimelockConfigured: No timelock configured on this vault */
|
|
58
|
-
export declare const SIGIL_ERROR__NO_TIMELOCK_CONFIGURED =
|
|
56
|
+
export declare const SIGIL_ERROR__NO_TIMELOCK_CONFIGURED = 6023;
|
|
59
57
|
/** DestinationNotAllowed: Destination not in allowed list */
|
|
60
|
-
export declare const SIGIL_ERROR__DESTINATION_NOT_ALLOWED =
|
|
58
|
+
export declare const SIGIL_ERROR__DESTINATION_NOT_ALLOWED = 6024;
|
|
61
59
|
/** TooManyDestinations: Too many destinations (max 10) */
|
|
62
|
-
export declare const SIGIL_ERROR__TOO_MANY_DESTINATIONS =
|
|
63
|
-
/** InvalidProtocolMode: Invalid protocol mode (must be
|
|
64
|
-
export declare const SIGIL_ERROR__INVALID_PROTOCOL_MODE =
|
|
65
|
-
/** InvalidNonSpendingAmount: Non-spending action must have amount = 0 */
|
|
66
|
-
export declare const SIGIL_ERROR__INVALID_NON_SPENDING_AMOUNT = 6028;
|
|
60
|
+
export declare const SIGIL_ERROR__TOO_MANY_DESTINATIONS = 6025;
|
|
61
|
+
/** InvalidProtocolMode: Invalid protocol mode (must be 1 = ALLOWLIST) */
|
|
62
|
+
export declare const SIGIL_ERROR__INVALID_PROTOCOL_MODE = 6026;
|
|
67
63
|
/** CpiCallNotAllowed: Instruction must be top-level (CPI calls not allowed) */
|
|
68
|
-
export declare const SIGIL_ERROR__CPI_CALL_NOT_ALLOWED =
|
|
64
|
+
export declare const SIGIL_ERROR__CPI_CALL_NOT_ALLOWED = 6027;
|
|
69
65
|
/** MissingFinalizeInstruction: Transaction must include finalize_session after validate */
|
|
70
|
-
export declare const SIGIL_ERROR__MISSING_FINALIZE_INSTRUCTION =
|
|
66
|
+
export declare const SIGIL_ERROR__MISSING_FINALIZE_INSTRUCTION = 6028;
|
|
71
67
|
/** NonTrackedSwapMustReturnStablecoin: Non-stablecoin swap must return stablecoin (balance did not increase) */
|
|
72
|
-
export declare const SIGIL_ERROR__NON_TRACKED_SWAP_MUST_RETURN_STABLECOIN =
|
|
73
|
-
/** SwapSlippageExceeded: Swap slippage exceeds policy max_slippage_bps or quoted output is zero */
|
|
74
|
-
export declare const SIGIL_ERROR__SWAP_SLIPPAGE_EXCEEDED = 6032;
|
|
75
|
-
/** InvalidJupiterInstruction: Cannot parse Jupiter swap instruction data */
|
|
76
|
-
export declare const SIGIL_ERROR__INVALID_JUPITER_INSTRUCTION = 6033;
|
|
68
|
+
export declare const SIGIL_ERROR__NON_TRACKED_SWAP_MUST_RETURN_STABLECOIN = 6029;
|
|
77
69
|
/** UnauthorizedTokenTransfer: Top-level SPL Token transfer not allowed between validate and finalize */
|
|
78
|
-
export declare const SIGIL_ERROR__UNAUTHORIZED_TOKEN_TRANSFER =
|
|
70
|
+
export declare const SIGIL_ERROR__UNAUTHORIZED_TOKEN_TRANSFER = 6030;
|
|
79
71
|
/** SlippageBpsTooHigh: Slippage BPS exceeds maximum (5000 = 50%) */
|
|
80
|
-
export declare const SIGIL_ERROR__SLIPPAGE_BPS_TOO_HIGH =
|
|
72
|
+
export declare const SIGIL_ERROR__SLIPPAGE_BPS_TOO_HIGH = 6031;
|
|
81
73
|
/** ProtocolMismatch: DeFi instruction program does not match declared target_protocol */
|
|
82
|
-
export declare const SIGIL_ERROR__PROTOCOL_MISMATCH =
|
|
74
|
+
export declare const SIGIL_ERROR__PROTOCOL_MISMATCH = 6032;
|
|
83
75
|
/** TooManyDeFiInstructions: Spending allows at most one DeFi instruction */
|
|
84
|
-
export declare const SIGIL_ERROR__TOO_MANY_DE_FI_INSTRUCTIONS =
|
|
76
|
+
export declare const SIGIL_ERROR__TOO_MANY_DE_FI_INSTRUCTIONS = 6033;
|
|
85
77
|
/** MaxAgentsReached: Maximum agents per vault reached (limit: 10) */
|
|
86
|
-
export declare const SIGIL_ERROR__MAX_AGENTS_REACHED =
|
|
78
|
+
export declare const SIGIL_ERROR__MAX_AGENTS_REACHED = 6034;
|
|
87
79
|
/** InsufficientPermissions: Agent lacks permission for this action type */
|
|
88
|
-
export declare const SIGIL_ERROR__INSUFFICIENT_PERMISSIONS =
|
|
80
|
+
export declare const SIGIL_ERROR__INSUFFICIENT_PERMISSIONS = 6035;
|
|
89
81
|
/** InvalidPermissions: Permission bitmask contains invalid bits */
|
|
90
|
-
export declare const SIGIL_ERROR__INVALID_PERMISSIONS =
|
|
91
|
-
/** EscrowNotActive: Escrow is not in Active status */
|
|
92
|
-
export declare const SIGIL_ERROR__ESCROW_NOT_ACTIVE = 6041;
|
|
93
|
-
/** EscrowExpired: Escrow has expired */
|
|
94
|
-
export declare const SIGIL_ERROR__ESCROW_EXPIRED = 6042;
|
|
95
|
-
/** EscrowNotExpired: Escrow has not expired yet */
|
|
96
|
-
export declare const SIGIL_ERROR__ESCROW_NOT_EXPIRED = 6043;
|
|
97
|
-
/** InvalidEscrowVault: Invalid escrow vault */
|
|
98
|
-
export declare const SIGIL_ERROR__INVALID_ESCROW_VAULT = 6044;
|
|
99
|
-
/** EscrowConditionsNotMet: Escrow conditions not met */
|
|
100
|
-
export declare const SIGIL_ERROR__ESCROW_CONDITIONS_NOT_MET = 6045;
|
|
101
|
-
/** EscrowDurationExceeded: Escrow duration exceeds maximum (30 days) */
|
|
102
|
-
export declare const SIGIL_ERROR__ESCROW_DURATION_EXCEEDED = 6046;
|
|
82
|
+
export declare const SIGIL_ERROR__INVALID_PERMISSIONS = 6036;
|
|
103
83
|
/** InvalidConstraintConfig: Invalid constraint configuration: bounds exceeded */
|
|
104
|
-
export declare const SIGIL_ERROR__INVALID_CONSTRAINT_CONFIG =
|
|
105
|
-
/** ConstraintViolated: Instruction constraint violated */
|
|
106
|
-
export declare const SIGIL_ERROR__CONSTRAINT_VIOLATED = 6048;
|
|
107
|
-
/** InvalidConstraintsPda: Invalid constraints PDA: wrong owner or vault */
|
|
108
|
-
export declare const SIGIL_ERROR__INVALID_CONSTRAINTS_PDA = 6049;
|
|
109
|
-
/** InvalidPendingConstraintsPda: Invalid pending constraints PDA: wrong owner or vault */
|
|
110
|
-
export declare const SIGIL_ERROR__INVALID_PENDING_CONSTRAINTS_PDA = 6050;
|
|
84
|
+
export declare const SIGIL_ERROR__INVALID_CONSTRAINT_CONFIG = 6037;
|
|
111
85
|
/** AgentSpendLimitExceeded: Agent rolling 24h spend exceeds per-agent spending limit */
|
|
112
|
-
export declare const SIGIL_ERROR__AGENT_SPEND_LIMIT_EXCEEDED =
|
|
86
|
+
export declare const SIGIL_ERROR__AGENT_SPEND_LIMIT_EXCEEDED = 6038;
|
|
113
87
|
/** OverlaySlotExhausted: Per-agent overlay is full; cannot register agent with spending limit */
|
|
114
|
-
export declare const SIGIL_ERROR__OVERLAY_SLOT_EXHAUSTED =
|
|
88
|
+
export declare const SIGIL_ERROR__OVERLAY_SLOT_EXHAUSTED = 6039;
|
|
115
89
|
/** AgentSlotNotFound: Agent has per-agent spending limit but no overlay tracking slot */
|
|
116
|
-
export declare const SIGIL_ERROR__AGENT_SLOT_NOT_FOUND =
|
|
90
|
+
export declare const SIGIL_ERROR__AGENT_SLOT_NOT_FOUND = 6040;
|
|
117
91
|
/** UnauthorizedTokenApproval: Unauthorized SPL Token Approve between validate and finalize */
|
|
118
|
-
export declare const SIGIL_ERROR__UNAUTHORIZED_TOKEN_APPROVAL =
|
|
119
|
-
/** InvalidSessionExpiry: Session expiry
|
|
120
|
-
export declare const SIGIL_ERROR__INVALID_SESSION_EXPIRY =
|
|
121
|
-
/**
|
|
122
|
-
export declare const
|
|
123
|
-
/** ProtocolCapExceeded: Per-protocol rolling 24h spending cap would be exceeded */
|
|
124
|
-
export declare const SIGIL_ERROR__PROTOCOL_CAP_EXCEEDED = 6057;
|
|
92
|
+
export declare const SIGIL_ERROR__UNAUTHORIZED_TOKEN_APPROVAL = 6041;
|
|
93
|
+
/** InvalidSessionExpiry: Session expiry seconds out of range (5-90) */
|
|
94
|
+
export declare const SIGIL_ERROR__INVALID_SESSION_EXPIRY = 6042;
|
|
95
|
+
/** ProtocolCapExceeded: Per-protocol rolling 24h spending cap would be exceeded — LEGACY counter exhaustion path. New rolling-24h amount-based cap rejections use 6086 ErrDailyCapExceeded */
|
|
96
|
+
export declare const SIGIL_ERROR__PROTOCOL_CAP_EXCEEDED = 6043;
|
|
125
97
|
/** ProtocolCapsMismatch: protocol_caps length must match protocols length when has_protocol_caps is true */
|
|
126
|
-
export declare const SIGIL_ERROR__PROTOCOL_CAPS_MISMATCH =
|
|
127
|
-
/** ActiveEscrowsExist: Cannot close vault with active escrow deposits */
|
|
128
|
-
export declare const SIGIL_ERROR__ACTIVE_ESCROWS_EXIST = 6059;
|
|
129
|
-
/** ConstraintsNotClosed: Instruction constraints must be closed before closing vault */
|
|
130
|
-
export declare const SIGIL_ERROR__CONSTRAINTS_NOT_CLOSED = 6060;
|
|
98
|
+
export declare const SIGIL_ERROR__PROTOCOL_CAPS_MISMATCH = 6044;
|
|
131
99
|
/** PendingPolicyExists: Pending policy update must be applied or cancelled before closing vault */
|
|
132
|
-
export declare const SIGIL_ERROR__PENDING_POLICY_EXISTS =
|
|
100
|
+
export declare const SIGIL_ERROR__PENDING_POLICY_EXISTS = 6045;
|
|
133
101
|
/** AgentPaused: Agent is paused and cannot execute actions */
|
|
134
|
-
export declare const SIGIL_ERROR__AGENT_PAUSED =
|
|
102
|
+
export declare const SIGIL_ERROR__AGENT_PAUSED = 6046;
|
|
135
103
|
/** AgentAlreadyPaused: Agent is already paused */
|
|
136
|
-
export declare const SIGIL_ERROR__AGENT_ALREADY_PAUSED =
|
|
104
|
+
export declare const SIGIL_ERROR__AGENT_ALREADY_PAUSED = 6047;
|
|
137
105
|
/** AgentNotPaused: Agent is not paused */
|
|
138
|
-
export declare const SIGIL_ERROR__AGENT_NOT_PAUSED =
|
|
106
|
+
export declare const SIGIL_ERROR__AGENT_NOT_PAUSED = 6048;
|
|
139
107
|
/** UnauthorizedPostFinalizeInstruction: Instructions after finalize_session must be ComputeBudget or SystemProgram only */
|
|
140
|
-
export declare const SIGIL_ERROR__UNAUTHORIZED_POST_FINALIZE_INSTRUCTION =
|
|
108
|
+
export declare const SIGIL_ERROR__UNAUTHORIZED_POST_FINALIZE_INSTRUCTION = 6049;
|
|
141
109
|
/** UnexpectedBalanceDecrease: Vault balance decreased more than delegated amount — potential CPI attack */
|
|
142
|
-
export declare const SIGIL_ERROR__UNEXPECTED_BALANCE_DECREASE =
|
|
110
|
+
export declare const SIGIL_ERROR__UNEXPECTED_BALANCE_DECREASE = 6050;
|
|
143
111
|
/** TimelockTooShort: Timelock duration below minimum (1800 seconds / 30 minutes) */
|
|
144
|
-
export declare const SIGIL_ERROR__TIMELOCK_TOO_SHORT =
|
|
112
|
+
export declare const SIGIL_ERROR__TIMELOCK_TOO_SHORT = 6051;
|
|
145
113
|
/** PolicyVersionMismatch: Policy version mismatch — policy changed since agent's last RPC read */
|
|
146
|
-
export declare const SIGIL_ERROR__POLICY_VERSION_MISMATCH =
|
|
147
|
-
/** PendingAgentPermsExists: A pending agent permissions update already exists for this agent */
|
|
148
|
-
export declare const SIGIL_ERROR__PENDING_AGENT_PERMS_EXISTS = 6069;
|
|
149
|
-
/** PendingCloseConstraintsExists: A pending close constraints operation already exists for this vault */
|
|
150
|
-
export declare const SIGIL_ERROR__PENDING_CLOSE_CONSTRAINTS_EXISTS = 6070;
|
|
114
|
+
export declare const SIGIL_ERROR__POLICY_VERSION_MISMATCH = 6052;
|
|
151
115
|
/** ActiveSessionsExist: Cannot close vault with active sessions (finalize pending sessions first) */
|
|
152
|
-
export declare const SIGIL_ERROR__ACTIVE_SESSIONS_EXIST =
|
|
116
|
+
export declare const SIGIL_ERROR__ACTIVE_SESSIONS_EXIST = 6053;
|
|
153
117
|
/** PostAssertionFailed: Post-execution assertion failed: account state did not satisfy constraint */
|
|
154
|
-
export declare const SIGIL_ERROR__POST_ASSERTION_FAILED =
|
|
118
|
+
export declare const SIGIL_ERROR__POST_ASSERTION_FAILED = 6054;
|
|
155
119
|
/** InvalidPostAssertionIndex: Post-assertion constraint references invalid instruction index */
|
|
156
|
-
export declare const SIGIL_ERROR__INVALID_POST_ASSERTION_INDEX =
|
|
120
|
+
export declare const SIGIL_ERROR__INVALID_POST_ASSERTION_INDEX = 6055;
|
|
157
121
|
/** UnauthorizedPreValidateInstruction: Non-infrastructure instruction detected before validate_and_authorize */
|
|
158
|
-
export declare const SIGIL_ERROR__UNAUTHORIZED_PRE_VALIDATE_INSTRUCTION =
|
|
122
|
+
export declare const SIGIL_ERROR__UNAUTHORIZED_PRE_VALIDATE_INSTRUCTION = 6056;
|
|
159
123
|
/** SnapshotNotCaptured: Delta assertion snapshot was not captured in validate_and_authorize */
|
|
160
|
-
export declare const SIGIL_ERROR__SNAPSHOT_NOT_CAPTURED =
|
|
161
|
-
/** ConstraintIndexOutOfBounds: Constraint entry index out of bounds for zero-copy array */
|
|
162
|
-
export declare const SIGIL_ERROR__CONSTRAINT_INDEX_OUT_OF_BOUNDS = 6076;
|
|
124
|
+
export declare const SIGIL_ERROR__SNAPSHOT_NOT_CAPTURED = 6057;
|
|
163
125
|
/** InvalidConstraintOperator: Constraint operator value is not a valid ConstraintOperator discriminant */
|
|
164
|
-
export declare const SIGIL_ERROR__INVALID_CONSTRAINT_OPERATOR =
|
|
165
|
-
/**
|
|
166
|
-
export declare const
|
|
167
|
-
/**
|
|
168
|
-
export declare const
|
|
169
|
-
/**
|
|
170
|
-
export declare const
|
|
171
|
-
|
|
126
|
+
export declare const SIGIL_ERROR__INVALID_CONSTRAINT_OPERATOR = 6058;
|
|
127
|
+
/** ZeroCopyVaultMismatch: Zero-copy account vault key mismatch (defense-in-depth) */
|
|
128
|
+
export declare const SIGIL_ERROR__ZERO_COPY_VAULT_MISMATCH = 6059;
|
|
129
|
+
/** QueuedUpdateExpired: Queued update is too old (>MAX_APPLY_AGE_SLOTS / >MAX_APPLY_AGE_SLOTS_TIMELOCKED_ADMIN) — re-queue via the matching queue/initiate ix (queue_policy_update, queue_agent_permissions_update, queue_agent_grant, or initiate_ownership_transfer) to apply. Defends against durable-nonce pre-signing (CH-1 audit 2026-05-23 extended scope to timelocked-admin PDAs). */
|
|
130
|
+
export declare const SIGIL_ERROR__QUEUED_UPDATE_EXPIRED = 6060;
|
|
131
|
+
/** AccountWritabilityMismatch: Account writability flag does not match constraint requirement */
|
|
132
|
+
export declare const SIGIL_ERROR__ACCOUNT_WRITABILITY_MISMATCH = 6061;
|
|
133
|
+
/** SysvarScanBoundExceeded: Sysvar instruction scan exceeded the per-tx safety bound */
|
|
134
|
+
export declare const SIGIL_ERROR__SYSVAR_SCAN_BOUND_EXCEEDED = 6062;
|
|
135
|
+
/** 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. */
|
|
136
|
+
export declare const SIGIL_ERROR__ASYNC_FULFILLMENT_NOT_PERMITTED = 6063;
|
|
137
|
+
/** ConfidentialTransferBlocked: Token-2022 ConfidentialTransfer not permitted between validate and finalize */
|
|
138
|
+
export declare const SIGIL_ERROR__CONFIDENTIAL_TRANSFER_BLOCKED = 6064;
|
|
139
|
+
/** PermanentDelegateBlocked: Token-2022 PermanentDelegate not permitted between validate and finalize */
|
|
140
|
+
export declare const SIGIL_ERROR__PERMANENT_DELEGATE_BLOCKED = 6065;
|
|
141
|
+
/** TransferHookBlocked: Token-2022 TransferHook not permitted between validate and finalize */
|
|
142
|
+
export declare const SIGIL_ERROR__TRANSFER_HOOK_BLOCKED = 6066;
|
|
143
|
+
/** LamportDrainBlocked: Token-2022 destructive-balance ix (opcodes 38/45/46) not permitted between validate and finalize */
|
|
144
|
+
export declare const SIGIL_ERROR__LAMPORT_DRAIN_BLOCKED = 6067;
|
|
145
|
+
/** BatchInstructionBlocked: Token-2022 Batch instruction (opcode 255) is blocked outright — wraps inner instructions and bypasses byte-0 blocklist */
|
|
146
|
+
export declare const SIGIL_ERROR__BATCH_INSTRUCTION_BLOCKED = 6068;
|
|
147
|
+
/** InvalidDestinationMode: Invalid destination mode (must be 0 = RESTRICTED) */
|
|
148
|
+
export declare const SIGIL_ERROR__INVALID_DESTINATION_MODE = 6069;
|
|
149
|
+
/** InvalidCapability: Invalid agent capability value (must be 0 = Disabled, 1 = Observer, or 2 = Operator) */
|
|
150
|
+
export declare const SIGIL_ERROR__INVALID_CAPABILITY = 6070;
|
|
151
|
+
/** PolicyPreviewMismatch: Policy preview digest mismatch — caller's signed digest differs from recomputed canonical digest */
|
|
152
|
+
export declare const SIGIL_ERROR__POLICY_PREVIEW_MISMATCH = 6071;
|
|
153
|
+
/** ObserveOnlyModeBlocksExecute: Vault is in observe_only mode — validate_and_authorize is blocked */
|
|
154
|
+
export declare const SIGIL_ERROR__OBSERVE_ONLY_MODE_BLOCKS_EXECUTE = 6072;
|
|
155
|
+
/** ActiveVaultRequiresAllowlist: Active (non-observe_only) vault must have at least one protocol or destination on the allowlist */
|
|
156
|
+
export declare const SIGIL_ERROR__ACTIVE_VAULT_REQUIRES_ALLOWLIST = 6073;
|
|
157
|
+
/** ErrMintNotPinned: Deposit mint is not a build-time-pinned stablecoin (USDC or USDT) */
|
|
158
|
+
export declare const SIGIL_ERROR__ERR_MINT_NOT_PINNED = 6074;
|
|
159
|
+
/** ErrOutsideOperatingHours: Current UTC hour is outside the policy's operating_hours bitmask */
|
|
160
|
+
export declare const SIGIL_ERROR__ERR_OUTSIDE_OPERATING_HOURS = 6075;
|
|
161
|
+
/** ErrCooldownActive: Agent cooldown period has not elapsed since the last action */
|
|
162
|
+
export declare const SIGIL_ERROR__ERR_COOLDOWN_ACTIVE = 6076;
|
|
163
|
+
/** ErrGraylistFriction: Destination is graylisted (24h friction window — awaiting promote_graylist_destination or unlock) */
|
|
164
|
+
export declare const SIGIL_ERROR__ERR_GRAYLIST_FRICTION = 6077;
|
|
165
|
+
/** ErrGraylistFull: Destination graylist is full (max 10 entries) — wait for an existing entry to unlock or promote */
|
|
166
|
+
export declare const SIGIL_ERROR__ERR_GRAYLIST_FULL = 6078;
|
|
167
|
+
/** ErrToken2022ExtensionForbidden: Token-2022 mint has a forbidden extension (only MemoTransfer + MetadataPointer allowed) */
|
|
168
|
+
export declare const SIGIL_ERROR__ERR_TOKEN2022_EXTENSION_FORBIDDEN = 6079;
|
|
169
|
+
/** ErrCosignRequired: Elevated policy mutation requires an owner-signed cosigning session */
|
|
170
|
+
export declare const SIGIL_ERROR__ERR_COSIGN_REQUIRED = 6080;
|
|
171
|
+
/** ErrAutoRevoked: Agent capability auto-revoked after consecutive policy-violation failures; owner must re-enable */
|
|
172
|
+
export declare const SIGIL_ERROR__ERR_AUTO_REVOKED = 6081;
|
|
173
|
+
/** ErrSandwichIntegrity: Bundle integrity violation: multiple validate_and_authorize instructions for the same (vault, agent, mint) tuple in one transaction */
|
|
174
|
+
export declare const SIGIL_ERROR__ERR_SANDWICH_INTEGRITY = 6082;
|
|
175
|
+
/** ErrProtectedWritable: Protected Sigil PDA passed as writable to a foreign instruction between validate and finalize */
|
|
176
|
+
export declare const SIGIL_ERROR__ERR_PROTECTED_WRITABLE = 6083;
|
|
177
|
+
/** ErrSessionNonceMismatch: Session nonce mismatch — caller's expected_nonce does not match the session's stored nonce (durable-nonce replay defense) */
|
|
178
|
+
export declare const SIGIL_ERROR__ERR_SESSION_NONCE_MISMATCH = 6084;
|
|
179
|
+
/** ErrStableFloorViolation: Stable balance floor violated — combined USDC+USDT balance dropped below policy.stable_balance_floor */
|
|
180
|
+
export declare const SIGIL_ERROR__ERR_STABLE_FLOOR_VIOLATION = 6085;
|
|
181
|
+
/** ErrDailyCapExceeded: Per-protocol daily spending cap would be exceeded (rolling 24h) */
|
|
182
|
+
export declare const SIGIL_ERROR__ERR_DAILY_CAP_EXCEEDED = 6086;
|
|
183
|
+
/** ErrRecipientCapExceeded: Per-recipient daily cap exceeded — recipient outflow would breach policy.per_recipient_daily_cap_usd within the rolling 24h window, or per_recipient array full with no expired slot to evict */
|
|
184
|
+
export declare const SIGIL_ERROR__ERR_RECIPIENT_CAP_EXCEEDED = 6087;
|
|
185
|
+
/** ErrMintDeltaCapExceeded: R-1 MintDeltaCap: vault-mint balance decreased by more than max_net_decrease */
|
|
186
|
+
export declare const SIGIL_ERROR__ERR_MINT_DELTA_CAP_EXCEEDED = 6088;
|
|
187
|
+
/** MintDeltaCapMisconfigured: R-1 MintDeltaCap misconfigured — target account missing, mint mismatch, or owner not vault */
|
|
188
|
+
export declare const SIGIL_ERROR__MINT_DELTA_CAP_MISCONFIGURED = 6089;
|
|
189
|
+
/** ErrAtaAuthorityChanged: R-2 AtaAuthorityPin: vault-owned token account authority changed or account closed/reinitialized mid-sandwich */
|
|
190
|
+
export declare const SIGIL_ERROR__ERR_ATA_AUTHORITY_CHANGED = 6090;
|
|
191
|
+
/** ErrOutputBelowFloor: R-3 OutputBalanceFloor: post-execution balance increase fell below the configured min_increase floor */
|
|
192
|
+
export declare const SIGIL_ERROR__ERR_OUTPUT_BELOW_FLOOR = 6091;
|
|
193
|
+
/** ErrDeclarationInconsistent: R-4 DeclarationConsistency: declared recipient/mint does not match CPI account-meta */
|
|
194
|
+
export declare const SIGIL_ERROR__ERR_DECLARATION_INCONSISTENT = 6092;
|
|
195
|
+
/** IxMetaCountExceeded: Foreign instruction exceeded the account-meta processing budget; the bundle is rejected rather than partially inspected */
|
|
196
|
+
export declare const SIGIL_ERROR__IX_META_COUNT_EXCEEDED = 6093;
|
|
197
|
+
/** ErrPendingOwnershipExists: An ownership transfer is already pending; cancel it first */
|
|
198
|
+
export declare const SIGIL_ERROR__ERR_PENDING_OWNERSHIP_EXISTS = 6094;
|
|
199
|
+
/** ErrPendingOwnershipNotReady: Ownership transfer timelock has not elapsed */
|
|
200
|
+
export declare const SIGIL_ERROR__ERR_PENDING_OWNERSHIP_NOT_READY = 6095;
|
|
201
|
+
/** ErrInvalidFreezeReason: freeze_reason value out of {{0,1,2}} */
|
|
202
|
+
export declare const SIGIL_ERROR__ERR_INVALID_FREEZE_REASON = 6096;
|
|
203
|
+
/** ErrReactivateCooldownActive: Reactivate requires 5-minute observation cooldown to elapse */
|
|
204
|
+
export declare const SIGIL_ERROR__ERR_REACTIVATE_COOLDOWN_ACTIVE = 6097;
|
|
205
|
+
/** ErrInvalidOwnershipTarget: new_owner cannot be system/program/sysvar addresses (Council ISC-128) */
|
|
206
|
+
export declare const SIGIL_ERROR__ERR_INVALID_OWNERSHIP_TARGET = 6098;
|
|
207
|
+
/** ErrTooManyRevokePairs: freeze_internal MAX_REVOKE_PAIRS = 10 exceeded (Council ISC-136) */
|
|
208
|
+
export declare const SIGIL_ERROR__ERR_TOO_MANY_REVOKE_PAIRS = 6099;
|
|
209
|
+
/** ErrPostAssertionsNotClosed: PostExecutionAssertions PDA still active — call close_post_assertions first */
|
|
210
|
+
export declare const SIGIL_ERROR__ERR_POST_ASSERTIONS_NOT_CLOSED = 6100;
|
|
211
|
+
/** ErrDestinationIsProtectedPda: Destination is a Sigil-protected PDA — rejected at queue time */
|
|
212
|
+
export declare const SIGIL_ERROR__ERR_DESTINATION_IS_PROTECTED_PDA = 6101;
|
|
213
|
+
/** ErrIntentDigestMismatch: AL3 intent-digest mismatch — preview digest does not match executed bundle */
|
|
214
|
+
export declare const SIGIL_ERROR__ERR_INTENT_DIGEST_MISMATCH = 6102;
|
|
215
|
+
/** ErrPendingAgentGrantDigestMismatch: PendingAgentGrant digest mismatch between queue and apply */
|
|
216
|
+
export declare const SIGIL_ERROR__ERR_PENDING_AGENT_GRANT_DIGEST_MISMATCH = 6103;
|
|
217
|
+
/** ErrReactivateCosignRequiredForFullCapability: Reactivate with FULL_CAPABILITY new agent requires cosign */
|
|
218
|
+
export declare const SIGIL_ERROR__ERR_REACTIVATE_COSIGN_REQUIRED_FOR_FULL_CAPABILITY = 6104;
|
|
219
|
+
/** DestinationAccountUnresolvable: Writable DeFi account could not be resolved in remaining_accounts — destination set incomplete */
|
|
220
|
+
export declare const SIGIL_ERROR__DESTINATION_ACCOUNT_UNRESOLVABLE = 6105;
|
|
221
|
+
/** ErrToken2022OutputMintUnresolvable: Vault-owned Token-2022 output ATA's mint is absent from remaining_accounts or not Token-2022-owned — cannot vet extensions */
|
|
222
|
+
export declare const SIGIL_ERROR__ERR_TOKEN2022_OUTPUT_MINT_UNRESOLVABLE = 6106;
|
|
223
|
+
/** ErrOperatorGrantRequiresTimelock: OPERATOR grant requires the timelock queue path on this vault — use queue_agent_grant */
|
|
224
|
+
export declare const SIGIL_ERROR__ERR_OPERATOR_GRANT_REQUIRES_TIMELOCK = 6107;
|
|
225
|
+
/** ErrOperatorGrantDelayTooLong: operator_grant_delay_seconds exceeds the maximum (48h) — would brick grant applicability */
|
|
226
|
+
export declare const SIGIL_ERROR__ERR_OPERATOR_GRANT_DELAY_TOO_LONG = 6108;
|
|
227
|
+
/** InvalidOwnerType: vault.owner_type is not a recognized discriminant (expected 0=EOA or 1=multisig) */
|
|
228
|
+
export declare const SIGIL_ERROR__INVALID_OWNER_TYPE = 6109;
|
|
229
|
+
/** SpendAccountingUnderflow: finalize spend accounting underflow: collected fees exceed realized stablecoin outflow */
|
|
230
|
+
export declare const SIGIL_ERROR__SPEND_ACCOUNTING_UNDERFLOW = 6110;
|
|
231
|
+
export type SigilError = typeof SIGIL_ERROR__ACCOUNT_WRITABILITY_MISMATCH | typeof SIGIL_ERROR__ACTIVE_SESSIONS_EXIST | typeof SIGIL_ERROR__ACTIVE_VAULT_REQUIRES_ALLOWLIST | typeof SIGIL_ERROR__AGENT_ALREADY_PAUSED | typeof SIGIL_ERROR__AGENT_ALREADY_REGISTERED | typeof SIGIL_ERROR__AGENT_IS_OWNER | typeof SIGIL_ERROR__AGENT_NOT_PAUSED | typeof SIGIL_ERROR__AGENT_PAUSED | typeof SIGIL_ERROR__AGENT_SLOT_NOT_FOUND | typeof SIGIL_ERROR__AGENT_SPEND_LIMIT_EXCEEDED | typeof SIGIL_ERROR__ASYNC_FULFILLMENT_NOT_PERMITTED | typeof SIGIL_ERROR__BATCH_INSTRUCTION_BLOCKED | typeof SIGIL_ERROR__CONFIDENTIAL_TRANSFER_BLOCKED | typeof SIGIL_ERROR__CPI_CALL_NOT_ALLOWED | typeof SIGIL_ERROR__DESTINATION_ACCOUNT_UNRESOLVABLE | typeof SIGIL_ERROR__DESTINATION_NOT_ALLOWED | typeof SIGIL_ERROR__DEVELOPER_FEE_TOO_HIGH | typeof SIGIL_ERROR__ERR_ATA_AUTHORITY_CHANGED | typeof SIGIL_ERROR__ERR_AUTO_REVOKED | typeof SIGIL_ERROR__ERR_COOLDOWN_ACTIVE | typeof SIGIL_ERROR__ERR_COSIGN_REQUIRED | typeof SIGIL_ERROR__ERR_DAILY_CAP_EXCEEDED | typeof SIGIL_ERROR__ERR_DECLARATION_INCONSISTENT | typeof SIGIL_ERROR__ERR_DESTINATION_IS_PROTECTED_PDA | typeof SIGIL_ERROR__ERR_GRAYLIST_FRICTION | typeof SIGIL_ERROR__ERR_GRAYLIST_FULL | typeof SIGIL_ERROR__ERR_INTENT_DIGEST_MISMATCH | typeof SIGIL_ERROR__ERR_INVALID_FREEZE_REASON | typeof SIGIL_ERROR__ERR_INVALID_OWNERSHIP_TARGET | typeof SIGIL_ERROR__ERR_MINT_DELTA_CAP_EXCEEDED | typeof SIGIL_ERROR__ERR_MINT_NOT_PINNED | typeof SIGIL_ERROR__ERR_OPERATOR_GRANT_DELAY_TOO_LONG | typeof SIGIL_ERROR__ERR_OPERATOR_GRANT_REQUIRES_TIMELOCK | typeof SIGIL_ERROR__ERR_OUTPUT_BELOW_FLOOR | typeof SIGIL_ERROR__ERR_OUTSIDE_OPERATING_HOURS | typeof SIGIL_ERROR__ERR_PENDING_AGENT_GRANT_DIGEST_MISMATCH | typeof SIGIL_ERROR__ERR_PENDING_OWNERSHIP_EXISTS | typeof SIGIL_ERROR__ERR_PENDING_OWNERSHIP_NOT_READY | typeof SIGIL_ERROR__ERR_POST_ASSERTIONS_NOT_CLOSED | typeof SIGIL_ERROR__ERR_PROTECTED_WRITABLE | typeof SIGIL_ERROR__ERR_REACTIVATE_COOLDOWN_ACTIVE | typeof SIGIL_ERROR__ERR_REACTIVATE_COSIGN_REQUIRED_FOR_FULL_CAPABILITY | typeof SIGIL_ERROR__ERR_RECIPIENT_CAP_EXCEEDED | typeof SIGIL_ERROR__ERR_SANDWICH_INTEGRITY | typeof SIGIL_ERROR__ERR_SESSION_NONCE_MISMATCH | typeof SIGIL_ERROR__ERR_STABLE_FLOOR_VIOLATION | typeof SIGIL_ERROR__ERR_TOKEN2022_EXTENSION_FORBIDDEN | typeof SIGIL_ERROR__ERR_TOKEN2022_OUTPUT_MINT_UNRESOLVABLE | typeof SIGIL_ERROR__ERR_TOO_MANY_REVOKE_PAIRS | typeof SIGIL_ERROR__INSUFFICIENT_BALANCE | typeof SIGIL_ERROR__INSUFFICIENT_PERMISSIONS | typeof SIGIL_ERROR__INVALID_AGENT_KEY | typeof SIGIL_ERROR__INVALID_CAPABILITY | typeof SIGIL_ERROR__INVALID_CONSTRAINT_CONFIG | typeof SIGIL_ERROR__INVALID_CONSTRAINT_OPERATOR | typeof SIGIL_ERROR__INVALID_DESTINATION_MODE | typeof SIGIL_ERROR__INVALID_FEE_DESTINATION | typeof SIGIL_ERROR__INVALID_OWNER_TYPE | typeof SIGIL_ERROR__INVALID_PERMISSIONS | typeof SIGIL_ERROR__INVALID_POST_ASSERTION_INDEX | typeof SIGIL_ERROR__INVALID_PROTOCOL_MODE | typeof SIGIL_ERROR__INVALID_PROTOCOL_TREASURY | typeof SIGIL_ERROR__INVALID_SESSION | typeof SIGIL_ERROR__INVALID_SESSION_EXPIRY | typeof SIGIL_ERROR__INVALID_TOKEN_ACCOUNT | typeof SIGIL_ERROR__IX_META_COUNT_EXCEEDED | typeof SIGIL_ERROR__LAMPORT_DRAIN_BLOCKED | typeof SIGIL_ERROR__MAX_AGENTS_REACHED | typeof SIGIL_ERROR__MINT_DELTA_CAP_MISCONFIGURED | typeof SIGIL_ERROR__MISSING_FINALIZE_INSTRUCTION | typeof SIGIL_ERROR__NO_AGENT_REGISTERED | typeof SIGIL_ERROR__NON_TRACKED_SWAP_MUST_RETURN_STABLECOIN | typeof SIGIL_ERROR__NO_TIMELOCK_CONFIGURED | typeof SIGIL_ERROR__OBSERVE_ONLY_MODE_BLOCKS_EXECUTE | typeof SIGIL_ERROR__OVERFLOW | typeof SIGIL_ERROR__OVERLAY_SLOT_EXHAUSTED | typeof SIGIL_ERROR__PENDING_POLICY_EXISTS | typeof SIGIL_ERROR__PERMANENT_DELEGATE_BLOCKED | typeof SIGIL_ERROR__POLICY_PREVIEW_MISMATCH | typeof SIGIL_ERROR__POLICY_VERSION_MISMATCH | typeof SIGIL_ERROR__POST_ASSERTION_FAILED | typeof SIGIL_ERROR__PROTOCOL_CAP_EXCEEDED | typeof SIGIL_ERROR__PROTOCOL_CAPS_MISMATCH | typeof SIGIL_ERROR__PROTOCOL_MISMATCH | typeof SIGIL_ERROR__PROTOCOL_NOT_ALLOWED | typeof SIGIL_ERROR__QUEUED_UPDATE_EXPIRED | typeof SIGIL_ERROR__SESSION_NOT_AUTHORIZED | typeof SIGIL_ERROR__SLIPPAGE_BPS_TOO_HIGH | typeof SIGIL_ERROR__SNAPSHOT_NOT_CAPTURED | typeof SIGIL_ERROR__SPEND_ACCOUNTING_UNDERFLOW | typeof SIGIL_ERROR__SPENDING_CAP_EXCEEDED | typeof SIGIL_ERROR__SYSVAR_SCAN_BOUND_EXCEEDED | typeof SIGIL_ERROR__TIMELOCK_NOT_EXPIRED | typeof SIGIL_ERROR__TIMELOCK_TOO_SHORT | typeof SIGIL_ERROR__TOO_MANY_ALLOWED_PROTOCOLS | typeof SIGIL_ERROR__TOO_MANY_DE_FI_INSTRUCTIONS | typeof SIGIL_ERROR__TOO_MANY_DESTINATIONS | typeof SIGIL_ERROR__TRANSACTION_TOO_LARGE | typeof SIGIL_ERROR__TRANSFER_HOOK_BLOCKED | typeof SIGIL_ERROR__UNAUTHORIZED_AGENT | typeof SIGIL_ERROR__UNAUTHORIZED_OWNER | typeof SIGIL_ERROR__UNAUTHORIZED_POST_FINALIZE_INSTRUCTION | typeof SIGIL_ERROR__UNAUTHORIZED_PRE_VALIDATE_INSTRUCTION | typeof SIGIL_ERROR__UNAUTHORIZED_TOKEN_APPROVAL | typeof SIGIL_ERROR__UNAUTHORIZED_TOKEN_TRANSFER | typeof SIGIL_ERROR__UNEXPECTED_BALANCE_DECREASE | typeof SIGIL_ERROR__UNSUPPORTED_TOKEN | typeof SIGIL_ERROR__VAULT_ALREADY_CLOSED | typeof SIGIL_ERROR__VAULT_NOT_ACTIVE | typeof SIGIL_ERROR__VAULT_NOT_FROZEN | typeof SIGIL_ERROR__ZERO_COPY_VAULT_MISMATCH;
|
|
172
232
|
export declare function getSigilErrorMessage(code: SigilError): string;
|
|
173
233
|
export declare function isSigilError<TProgramErrorCode extends SigilError>(error: unknown, transactionMessage: {
|
|
174
234
|
instructions: Record<number, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sigil.d.ts","sourceRoot":"","sources":["../../../src/generated/errors/sigil.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAEL,KA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