Skip to content

fix: shorten action contract names to fit 41-char deploy limit#71

Open
dantrevino wants to merge 1 commit intoaibtcdev:mainfrom
dantrevino:fix/shorten-contract-names
Open

fix: shorten action contract names to fit 41-char deploy limit#71
dantrevino wants to merge 1 commit intoaibtcdev:mainfrom
dantrevino:fix/shorten-contract-names

Conversation

@dantrevino
Copy link

Summary

Renames extension action contracts to fit within the 41-character deploy limit required for Stacks blockchain deployment.

Changes

Applied abbreviations from issue #62:

  • actionact
  • configurecfg
  • timed-vaulttv

Renamed Contracts (actions folder)

Old Name New Name
aibtc-action-configure-timed-vault-dao.clar aibtc-act-cfg-tv-dao.clar
aibtc-action-configure-timed-vault-sbtc.clar aibtc-act-cfg-tv-sbtc.clar
aibtc-action-configure-timed-vault-stx.clar aibtc-act-cfg-tv-stx.clar
aibtc-action-pmt-dao-add-resource.clar aibtc-act-pmt-dao-add-resource.clar
aibtc-action-pmt-dao-toggle-resource.clar aibtc-act-pmt-dao-toggle-resource.clar
aibtc-action-pmt-sbtc-add-resource.clar aibtc-act-pmt-sbtc-add-resource.clar
aibtc-action-pmt-sbtc-toggle-resource.clar aibtc-act-pmt-sbtc-toggle-resource.clar
aibtc-action-pmt-stx-add-resource.clar aibtc-act-pmt-stx-add-resource.clar
aibtc-action-pmt-stx-toggle-resource.clar aibtc-act-pmt-stx-toggle-resource.clar
aibtc-action-send-message.clar aibtc-act-send-message.clar
aibtc-action-treasury-allow-asset.clar aibtc-act-treasury-allow-asset.clar

Updated References

  • Clarinet.toml - contract paths and names
  • tests/dao-types.ts - ContractActionType enum
  • contracts/dao/proposals/aibtc-base-bootstrap-initialization.clar
  • contracts/dao/proposals/aibtc-base-bootstrap-initialization-v2.clar
  • contracts/test/disable-onchain-messaging-action.clar
  • tests/aibtc-user-agent-account.test.ts

Testing

Tests pass (457/458 - 1 pre-existing failure unrelated to these changes).

Closes #62

Renames extension action contracts to fit within the 41-character
limit required for deployment. Uses abbreviations:
- action → act
- configure → cfg
- timed-vault → tv

Affected contracts (actions folder):
- aibtc-action-configure-timed-vault-dao → aibtc-act-cfg-tv-dao
- aibtc-action-configure-timed-vault-sbtc → aibtc-act-cfg-tv-sbtc
- aibtc-action-configure-timed-vault-stx → aibtc-act-cfg-tv-stx
- aibtc-action-pmt-* → aibtc-act-pmt-*
- aibtc-action-send-message → aibtc-act-send-message
- aibtc-action-treasury-allow-asset → aibtc-act-treasury-allow-asset

Updates references in Clarinet.toml, tests/dao-types.ts,
bootstrap initialization contracts, and test files.

Closes aibtcdev#62
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

Shorten contract names

1 participant