Skip to content

[F11-160] The closeClaim function should be available for calling by the policy authority#35

Merged
ssledz merged 1 commit into
mainfrom
F11-160-the-close-claim-function-should-be-available-for-calling-by-the-policy-authority
Jan 31, 2026
Merged

[F11-160] The closeClaim function should be available for calling by the policy authority#35
ssledz merged 1 commit into
mainfrom
F11-160-the-close-claim-function-should-be-available-for-calling-by-the-policy-authority

Conversation

@ssledz
Copy link
Copy Markdown
Collaborator

@ssledz ssledz commented Jan 31, 2026

The closeClaim function should be available for calling by the policy authority

Renamed verbose error codes to more concise versions:

  • ERROR--VALIDATOR-X -> ERR--X (removed -VALIDATOR suffix)
  • ERROR--MINTING-POLICY-X -> ERR--X (removed -MINTING-POLICY suffix)
  • Further shortened module prefixes for better readability

Specific renamings:

  • OnRisk: ERROR-ON-RISK-VALIDATOR-X -> ERR-ON-RISK-X
  • Funding: ERROR-FUNDING-VALIDATOR-X -> ERR-FUND-X
  • Initiated: ERROR-INITIATED-VALIDATOR-X -> ERR-INIT-X
  • Insurance: ERROR-INSURANCE-MAIN-VALIDATOR-X -> ERR-MAIN-X
  • PiggyBank: ERROR-PIGGY-BANK-VALIDATOR-X -> ERR-PBANK-X
  • Cancelled: ERROR-CANCELLED-VALIDATOR-X -> ERR-CANC-X
  • InsuranceId: ERROR-INSURANCE-ID-MINTING-POLICY-X -> ERR-IID-X
  • SystemId: ERROR-SYSTEM-ID-MINTING-POLICY-X -> ERR-SID-X

This improves code readability and reduces on-chain script sizes.

Renamed verbose error codes to more concise versions:
- ERROR-*-VALIDATOR-X -> ERR-*-X (removed -VALIDATOR suffix)
- ERROR-*-MINTING-POLICY-X -> ERR-*-X (removed -MINTING-POLICY suffix)
- Further shortened module prefixes for better readability

Specific renamings:
- OnRisk: ERROR-ON-RISK-VALIDATOR-X -> ERR-ON-RISK-X
- Funding: ERROR-FUNDING-VALIDATOR-X -> ERR-FUND-X
- Initiated: ERROR-INITIATED-VALIDATOR-X -> ERR-INIT-X
- Insurance: ERROR-INSURANCE-MAIN-VALIDATOR-X -> ERR-MAIN-X
- PiggyBank: ERROR-PIGGY-BANK-VALIDATOR-X -> ERR-PBANK-X
- Cancelled: ERROR-CANCELLED-VALIDATOR-X -> ERR-CANC-X
- InsuranceId: ERROR-INSURANCE-ID-MINTING-POLICY-X -> ERR-IID-X
- SystemId: ERROR-SYSTEM-ID-MINTING-POLICY-X -> ERR-SID-X

This improves code readability and reduces on-chain script sizes.
@ssledz ssledz self-assigned this Jan 31, 2026
@ssledz ssledz marked this pull request as ready for review January 31, 2026 02:29
@ssledz ssledz merged commit 189a1a0 into main Jan 31, 2026
3 checks passed
@ssledz ssledz deleted the F11-160-the-close-claim-function-should-be-available-for-calling-by-the-policy-authority branch January 31, 2026 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant